json_commands

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeMasterPasswordCommand

type ChangeMasterPasswordCommand struct {
	api.AuthorizedCommand
	AuthVerifier     string `json:"auth_verifier"`
	EncryptionParams string `json:"encryption_params"`
}

func (*ChangeMasterPasswordCommand) CommandName

func (c *ChangeMasterPasswordCommand) CommandName() string

type DownloadObject

type DownloadObject struct {
	Url string `json:"url"`
}

type EnterpriseAllocateIdsCommand

type EnterpriseAllocateIdsCommand struct {
	api.AuthorizedCommand
	NumberRequested int `json:"number_requested"`
}

func (*EnterpriseAllocateIdsCommand) CommandName

func (c *EnterpriseAllocateIdsCommand) CommandName() string

type EnterpriseAllocateIdsResponse

type EnterpriseAllocateIdsResponse struct {
	api.KeeperApiResponse
	NumberAllocated int   `json:"number_allocated"`
	BaseId          int64 `json:"base_id"`
}

type EnterpriseNode

type EnterpriseNode struct {
	NodeId             int64   `json:"node_id"`
	ParentId           int64   `json:"parent_id"`
	EncryptedData      string  `json:"encrypted_data"`
	RestrictVisibility *string `json:"restrict_visibility,omitempty"`
}

type EnterpriseNodeAddCommand

type EnterpriseNodeAddCommand struct {
	api.AuthorizedCommand
	EnterpriseNode
}

func (*EnterpriseNodeAddCommand) CommandName

func (c *EnterpriseNodeAddCommand) CommandName() string

type EnterpriseNodeDeleteCommand

type EnterpriseNodeDeleteCommand struct {
	api.AuthorizedCommand
	NodeId int64 `json:"node_id"`
}

func (*EnterpriseNodeDeleteCommand) CommandName

func (c *EnterpriseNodeDeleteCommand) CommandName() string

type EnterpriseNodeUpdateCommand

type EnterpriseNodeUpdateCommand struct {
	api.AuthorizedCommand
	EnterpriseNode
}

func (*EnterpriseNodeUpdateCommand) CommandName

func (c *EnterpriseNodeUpdateCommand) CommandName() string

type EnterpriseRole

type EnterpriseRole struct {
	RoleId         int64  `json:"role_id"`
	EncryptedData  string `json:"encrypted_data"`
	NodeId         int64  `json:"node_id"`
	VisibleBelow   *bool  `json:"visible_below,omitempty"`
	NewUserInherit *bool  `json:"new_user_inherit,omitempty"`
}

type EnterpriseRoleAddCommand

type EnterpriseRoleAddCommand struct {
	api.AuthorizedCommand
	EnterpriseRole
}

func (*EnterpriseRoleAddCommand) CommandName

func (c *EnterpriseRoleAddCommand) CommandName() string

type EnterpriseRoleDeleteCommand

type EnterpriseRoleDeleteCommand struct {
	api.AuthorizedCommand
	RoleId int64 `json:"role_id"`
}

func (*EnterpriseRoleDeleteCommand) CommandName

func (c *EnterpriseRoleDeleteCommand) CommandName() string

type EnterpriseRoleUpdateCommand

type EnterpriseRoleUpdateCommand struct {
	api.AuthorizedCommand
	EnterpriseRole
}

func (*EnterpriseRoleUpdateCommand) CommandName

func (c *EnterpriseRoleUpdateCommand) CommandName() string

type EnterpriseRoleUser

type EnterpriseRoleUser struct {
	RoleId           int64 `json:"role_id"`
	EnterpriseUserId int64 `json:"enterprise_user_id"`
}

type EnterpriseRoleUserAddCommand

type EnterpriseRoleUserAddCommand struct {
	api.AuthorizedCommand
	EnterpriseRoleUser
	TreeKey      string `json:"tree_key"`
	RoleAdminKey string `json:"role_admin_key"`
}

func (*EnterpriseRoleUserAddCommand) CommandName

func (c *EnterpriseRoleUserAddCommand) CommandName() string

type EnterpriseRoleUserRemoveCommand

type EnterpriseRoleUserRemoveCommand struct {
	api.AuthorizedCommand
	EnterpriseRoleUser
}

func (*EnterpriseRoleUserRemoveCommand) CommandName

func (c *EnterpriseRoleUserRemoveCommand) CommandName() string

type EnterpriseTeam

type EnterpriseTeam struct {
	TeamUid       string `json:"team_uid"`
	TeamName      string `json:"team_name"`
	NodeId        *int64 `json:"node_id,omitempty"`
	RestrictShare bool   `json:"restrict_share"`
	RestrictEdit  bool   `json:"restrict_edit"`
	RestrictView  bool   `json:"restrict_view"`
}

type EnterpriseTeamAddCommand

type EnterpriseTeamAddCommand struct {
	api.AuthorizedCommand
	EnterpriseTeam
	PublicKey        string `json:"public_key"`
	PrivateKey       string `json:"private_key"`
	TeamKey          string `json:"team_key"`
	ManageOnly       bool   `json:"manage_only"`
	EncryptedTeamKey string `json:"encrypted_team_key"`
}

func (*EnterpriseTeamAddCommand) CommandName

func (c *EnterpriseTeamAddCommand) CommandName() string

type EnterpriseTeamDeleteCommand

type EnterpriseTeamDeleteCommand struct {
	api.AuthorizedCommand
	TeamUid string `json:"team_uid"`
}

func (*EnterpriseTeamDeleteCommand) CommandName

func (c *EnterpriseTeamDeleteCommand) CommandName() string

type EnterpriseTeamUpdateCommand

type EnterpriseTeamUpdateCommand struct {
	api.AuthorizedCommand
	EnterpriseTeam
}

func (*EnterpriseTeamUpdateCommand) CommandName

func (c *EnterpriseTeamUpdateCommand) CommandName() string

type EnterpriseTeamUser

type EnterpriseTeamUser struct {
	TeamUid          string `json:"team_uid"`
	EnterpriseUserId int64  `json:"enterprise_user_id"`
}

type EnterpriseTeamUserAddCommand

type EnterpriseTeamUserAddCommand struct {
	api.AuthorizedCommand
	EnterpriseTeamUser
	TeamKey  string `json:"team_key"`
	UserType int32  `json:"user_type"`
}

func (*EnterpriseTeamUserAddCommand) CommandName

func (c *EnterpriseTeamUserAddCommand) CommandName() string

type EnterpriseTeamUserRemoveCommand

type EnterpriseTeamUserRemoveCommand struct {
	api.AuthorizedCommand
	EnterpriseTeamUser
}

func (*EnterpriseTeamUserRemoveCommand) CommandName

func (c *EnterpriseTeamUserRemoveCommand) CommandName() string

type EnterpriseTeamUserUpdateCommand

type EnterpriseTeamUserUpdateCommand struct {
	api.AuthorizedCommand
	EnterpriseTeamUser
	UserType int32 `json:"user_type"`
}

func (*EnterpriseTeamUserUpdateCommand) CommandName

func (c *EnterpriseTeamUserUpdateCommand) CommandName() string

type ExecuteCommand

type ExecuteCommand struct {
	api.AuthorizedCommand
	Requests []api.IKeeperCommand `json:"requests"`
}

func (*ExecuteCommand) CommandName

func (c *ExecuteCommand) CommandName() string

type ExecuteResponse

type ExecuteResponse struct {
	api.KeeperApiResponse
	Responses []*api.KeeperApiResponse `json:"results"`
}

type ManagedNode

type ManagedNode struct {
	RoleId        int64 `json:"role_id"`
	ManagedNodeId int64 `json:"managed_node_id"`
}

type ManagedNodePrivilege

type ManagedNodePrivilege struct {
	ManagedNode
	Privilege string `json:"privilege"`
}

type ManagedNodePrivilegeAddCommand

type ManagedNodePrivilegeAddCommand struct {
	api.AuthorizedCommand
	ManagedNodePrivilege
	RolePublicKey         *string        `json:"role_public_key,omitempty"`
	RolePrivateKey        *string        `json:"role_private_key,omitempty"`
	RoleKeyEncWithTreeKey *string        `json:"role_key_enc_with_tree_key,omitempty"`
	RoleKeys              []*RoleUserKey `json:"role_keys,omitempty"`
}

func (*ManagedNodePrivilegeAddCommand) CommandName

func (c *ManagedNodePrivilegeAddCommand) CommandName() string

type ManagedNodePrivilegeRemoveCommand

type ManagedNodePrivilegeRemoveCommand struct {
	api.AuthorizedCommand
	ManagedNodePrivilege
}

func (*ManagedNodePrivilegeRemoveCommand) CommandName

func (c *ManagedNodePrivilegeRemoveCommand) CommandName() string

type PreDeleteCommand

type PreDeleteCommand struct {
	api.KeeperApiResponse
	Objects []*PreDeleteObject `json:"objects,omitempty"`
}

type PreDeleteObject

type PreDeleteObject struct {
	ObjectUid        string `json:"object_uid,omitempty"`
	ObjectType       string `json:"object_type,omitempty"`
	FromUid          string `json:"from_uid,omitempty"`
	FromType         string `json:"from_type,omitempty"`
	DeleteResolution string `json:"delete_resolution,omitempty"`
}

type RecordAddCommand

type RecordAddCommand struct {
	api.AuthorizedCommand
	RecordUid  string                 `json:"record_uid"`
	RecordType string                 `json:"record_type"`
	RecordKey  string                 `json:"record_key"`
	HowLongAgo float64                `json:"how_long_ago"`
	FolderType string                 `json:"folder_type"`
	FolderUid  string                 `json:"folder_uid"`
	FolderKey  string                 `json:"folder_key"`
	Data       string                 `json:"data"`
	Extra      string                 `json:"extra"`
	Udata      map[string]interface{} `json:"udata"`
}

func (*RecordAddCommand) CommandName

func (c *RecordAddCommand) CommandName() string

type RecordObject

type RecordObject struct {
	RecordUid          string                 `json:"record_uid"`
	SharedFolderUid    string                 `json:"shared_folder_uid"`
	TeamUid            string                 `json:"team_uid"`
	Version            int32                  `json:"version"`
	Revision           int64                  `json:"revision"`
	RecordKey          string                 `json:"record_key"`
	ClientModifiedTime float64                `json:"client_modified_time"`
	Data               string                 `json:"data"`
	Extra              string                 `json:"extra"`
	Udata              map[string]interface{} `json:"udata,omitempty"`
	NonSharedData      string                 `json:"non_shared_data,omitempty"`
}

type RecordUpdateCommand

type RecordUpdateCommand struct {
	api.AuthorizedCommand
	DeviceId      string          `json:"device_id,omitempty"`
	Pt            string          `json:"pt,omitempty"`
	ClientTime    float64         `json:"client_time,omitempty"`
	AddRecords    []*RecordObject `json:"add_records,omitempty"`
	UpdateRecords []*RecordObject `json:"update_records,omitempty"`
	RemoveRecords []string        `json:"remove_records,omitempty"`
	DeleteRecords []string        `json:"delete_records,omitempty"`
}

func (*RecordUpdateCommand) CommandName

func (c *RecordUpdateCommand) CommandName() string

type RecordUpdateResponse

type RecordUpdateResponse struct {
	api.KeeperApiResponse
	AddRecords    []*StatusObject `json:"add_records,omitempty"`
	UpdateRecords []*StatusObject `json:"update_records,omitempty"`
	RemoveRecords []*StatusObject `json:"remove_records,omitempty"`
	DeleteRecords []*StatusObject `json:"delete_records,omitempty"`
}

type RequestDownloadCommand

type RequestDownloadCommand struct {
	api.AuthorizedCommand
	RecordUid       string   `json:"record_uid,omitempty"`
	SharedFolderUid string   `json:"shared_folder_uid,omitempty"`
	TeamUid         string   `json:"team_uid,omitempty"`
	FileIds         []string `json:"file_ids,omitempty"`
}

func (*RequestDownloadCommand) CommandName

func (c *RequestDownloadCommand) CommandName() string

type RequestDownloadResponse

type RequestDownloadResponse struct {
	api.KeeperApiResponse
	Downloads []*DownloadObject `json:"downloads"`
}

type RequestUploadCommand

type RequestUploadCommand struct {
	api.AuthorizedCommand
	FileCount      int `json:"file_count,omitempty"`
	ThumbnailCount int `json:"thumbnail_count,omitempty"`
}

func (*RequestUploadCommand) CommandName

func (c *RequestUploadCommand) CommandName() string

type RequestUploadResponse

type RequestUploadResponse struct {
	api.KeeperApiResponse
	FileUploads      []*UploadObject `json:"file_uploads"`
	ThumbnailUploads []*UploadObject `json:"thumbnail_uploads"`
}

type RoleEnforcement

type RoleEnforcement struct {
	RoleId      int64  `json:"role_id"`
	Enforcement string `json:"enforcement"`
}

type RoleEnforcementAddCommand

type RoleEnforcementAddCommand struct {
	api.AuthorizedCommand
	RoleEnforcement
	Value interface{} `json:"value,omitempty"`
}

func (*RoleEnforcementAddCommand) CommandName

func (c *RoleEnforcementAddCommand) CommandName() string

type RoleEnforcementRemoveCommand

type RoleEnforcementRemoveCommand struct {
	api.AuthorizedCommand
	RoleEnforcement
}

func (*RoleEnforcementRemoveCommand) CommandName

func (c *RoleEnforcementRemoveCommand) CommandName() string

type RoleEnforcementUpdateCommand

type RoleEnforcementUpdateCommand struct {
	api.AuthorizedCommand
	RoleEnforcement
	Value interface{} `json:"value,omitempty"`
}

func (*RoleEnforcementUpdateCommand) CommandName

func (c *RoleEnforcementUpdateCommand) CommandName() string

type RoleManagedNodeAddCommand

type RoleManagedNodeAddCommand struct {
	api.AuthorizedCommand
	ManagedNode
	CascadeNodeManagement bool           `json:"cascade_node_management"`
	TreeKeys              []*RoleUserKey `json:"role_keys"`
}

func (*RoleManagedNodeAddCommand) CommandName

func (c *RoleManagedNodeAddCommand) CommandName() string

type RoleManagedNodeRemoveCommand

type RoleManagedNodeRemoveCommand struct {
	api.AuthorizedCommand
	ManagedNode
}

func (*RoleManagedNodeRemoveCommand) CommandName

func (c *RoleManagedNodeRemoveCommand) CommandName() string

type RoleManagedNodeUpdateCommand

type RoleManagedNodeUpdateCommand struct {
	api.AuthorizedCommand
	ManagedNode
	CascadeNodeManagement bool `json:"cascade_node_management"`
}

func (*RoleManagedNodeUpdateCommand) CommandName

func (c *RoleManagedNodeUpdateCommand) CommandName() string

type RoleUserKey

type RoleUserKey struct {
	EnterpriseUserId int64  `json:"enterprise_user_id"`
	RoleKey          string `json:"role_key"`
}

type ShareAccountCommand

type ShareAccountCommand struct {
	api.AuthorizedCommand
	ToRoleId    int64  `json:"to_role_id"`
	TransferKey string `json:"transfer_key"`
}

func (*ShareAccountCommand) CommandName

func (c *ShareAccountCommand) CommandName() string

type StatusObject

type StatusObject struct {
	RecordUid string `json:"record_uid,omitempty"`
	Status    string `json:"status,omitempty"`
}

type TeamGetKeysCommand

type TeamGetKeysCommand struct {
	api.AuthorizedCommand
	Teams []string `json:"teams"`
}

func (*TeamGetKeysCommand) CommandName

func (c *TeamGetKeysCommand) CommandName() string

type TeamGetKeysResponse

type TeamGetKeysResponse struct {
	api.KeeperApiResponse
	Keys []TeamKeyResponse `json:"keys"`
}

type TeamKeyResponse

type TeamKeyResponse struct {
	TeamId string `json:"team_id"`
	Key    string `json:"key"`
	Type   int    `json:"type"`
	Result string `json:"result"`
}

type UploadObject

type UploadObject struct {
	MaxSize           float64                `json:"max_size"`
	Url               string                 `json:"url"`
	SuccessStatusCode int                    `json:"success_status_code"`
	FileId            string                 `json:"file_id"`
	FileParameter     string                 `json:"file_parameter"`
	Parameters        map[string]interface{} `json:"parameters"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL