json_commands

package
v0.0.0-...-044a9da Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 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 {
	auth.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 {
	auth.AuthorizedCommand
	NumberRequested int `json:"number_requested"`
}

func (*EnterpriseAllocateIdsCommand) CommandName

func (c *EnterpriseAllocateIdsCommand) CommandName() string

type EnterpriseAllocateIdsResponse

type EnterpriseAllocateIdsResponse struct {
	auth.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 {
	auth.AuthorizedCommand
	EnterpriseNode
}

func (*EnterpriseNodeAddCommand) CommandName

func (c *EnterpriseNodeAddCommand) CommandName() string

type EnterpriseNodeDeleteCommand

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

func (*EnterpriseNodeDeleteCommand) CommandName

func (c *EnterpriseNodeDeleteCommand) CommandName() string

type EnterpriseNodeUpdateCommand

type EnterpriseNodeUpdateCommand struct {
	auth.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,omitempty"`
	VisibleBelow   *bool  `json:"visible_below,omitempty"`
	NewUserInherit *bool  `json:"new_user_inherit,omitempty"`
}

type EnterpriseRoleAddCommand

type EnterpriseRoleAddCommand struct {
	auth.AuthorizedCommand
	EnterpriseRole
}

func (*EnterpriseRoleAddCommand) CommandName

func (c *EnterpriseRoleAddCommand) CommandName() string

type EnterpriseRoleDeleteCommand

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

func (*EnterpriseRoleDeleteCommand) CommandName

func (c *EnterpriseRoleDeleteCommand) CommandName() string

type EnterpriseRoleUpdateCommand

type EnterpriseRoleUpdateCommand struct {
	auth.AuthorizedCommand
	EnterpriseRole
}

func (*EnterpriseRoleUpdateCommand) CommandName

func (c *EnterpriseRoleUpdateCommand) 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 {
	auth.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 {
	auth.AuthorizedCommand
	TeamUid string `json:"team_uid"`
}

func (*EnterpriseTeamDeleteCommand) CommandName

func (c *EnterpriseTeamDeleteCommand) CommandName() string

type EnterpriseTeamUpdateCommand

type EnterpriseTeamUpdateCommand struct {
	auth.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 EnterpriseTeamUserRemoveCommand

type EnterpriseTeamUserRemoveCommand struct {
	auth.AuthorizedCommand
	EnterpriseTeamUser
}

func (*EnterpriseTeamUserRemoveCommand) CommandName

func (c *EnterpriseTeamUserRemoveCommand) CommandName() string

type EnterpriseTeamUserUpdateCommand

type EnterpriseTeamUserUpdateCommand struct {
	auth.AuthorizedCommand
	EnterpriseTeamUser
	UserType int `json:"user_type"`
}

func (*EnterpriseTeamUserUpdateCommand) CommandName

func (c *EnterpriseTeamUserUpdateCommand) CommandName() string

type PreDeleteCommand

type PreDeleteCommand struct {
	auth.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 {
	auth.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 {
	auth.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 {
	auth.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 {
	auth.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 {
	auth.KeeperApiResponse
	Downloads []*DownloadObject `json:"downloads"`
}

type RequestUploadCommand

type RequestUploadCommand struct {
	auth.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 {
	auth.KeeperApiResponse
	FileUploads      []*UploadObject `json:"file_uploads"`
	ThumbnailUploads []*UploadObject `json:"thumbnail_uploads"`
}

type ShareAccountCommand

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

func (*ShareAccountCommand) CommandName

func (c *ShareAccountCommand) CommandName() string

type SsoToken

type SsoToken struct {
	Command      string `json:"command"`
	Result       string `json:"result"`
	Email        string `json:"email"`
	Password     string `json:"password"`
	NewPassword  string `json:"new_password"`
	ProviderName string `json:"provider_name"`
	SessionId    string `json:"session_id"`
	LoginToken   string `json:"login_token"`
}

type StatusObject

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

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