schemagen

package
v0.0.0-...-45ae864 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountDelete

func AccountDelete(ctx context.Context, c *xrpc.Client) error

func AccountGet

func AccountGet(ctx context.Context, c *xrpc.Client) error

func AccountRequestPasswordReset

func AccountRequestPasswordReset(ctx context.Context, c *xrpc.Client, input *AccountRequestPasswordReset_Input) error

func AccountResetPassword

func AccountResetPassword(ctx context.Context, c *xrpc.Client, input *AccountResetPassword_Input) error

func PeeringFollow

func PeeringFollow(ctx context.Context, c *xrpc.Client, input *PeeringFollow_Input) error

func PeeringInit

func PeeringInit(ctx context.Context, c *xrpc.Client, input *PeeringInit_Input) error

func RepoBatchWrite

func RepoBatchWrite(ctx context.Context, c *xrpc.Client, input *RepoBatchWrite_Input) error

func RepoDeleteRecord

func RepoDeleteRecord(ctx context.Context, c *xrpc.Client, input *RepoDeleteRecord_Input) error

func SessionDelete

func SessionDelete(ctx context.Context, c *xrpc.Client) error

func SyncGetRepo

func SyncGetRepo(ctx context.Context, c *xrpc.Client, did string, from string) ([]byte, error)

func SyncUpdateRepo

func SyncUpdateRepo(ctx context.Context, c *xrpc.Client, input io.Reader, did string) error

Types

type AccountCreateInviteCode_Input

type AccountCreateInviteCode_Input struct {
	LexiconTypeID string `json:"$type,omitempty"`
	UseCount      int64  `json:"useCount" cborgen:"useCount"`
}

type AccountCreateInviteCode_Output

type AccountCreateInviteCode_Output struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Code          string `json:"code" cborgen:"code"`
}

type AccountCreate_Input

type AccountCreate_Input struct {
	LexiconTypeID string  `json:"$type,omitempty"`
	Email         string  `json:"email" cborgen:"email"`
	Handle        string  `json:"handle" cborgen:"handle"`
	InviteCode    *string `json:"inviteCode,omitempty" cborgen:"inviteCode"`
	Password      string  `json:"password" cborgen:"password"`
	RecoveryKey   *string `json:"recoveryKey,omitempty" cborgen:"recoveryKey"`
}

type AccountCreate_Output

type AccountCreate_Output struct {
	LexiconTypeID string `json:"$type,omitempty"`
	AccessJwt     string `json:"accessJwt" cborgen:"accessJwt"`
	Did           string `json:"did" cborgen:"did"`
	Handle        string `json:"handle" cborgen:"handle"`
	RefreshJwt    string `json:"refreshJwt" cborgen:"refreshJwt"`
}

type AccountRequestPasswordReset_Input

type AccountRequestPasswordReset_Input struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Email         string `json:"email" cborgen:"email"`
}

type AccountResetPassword_Input

type AccountResetPassword_Input struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Password      string `json:"password" cborgen:"password"`
	Token         string `json:"token" cborgen:"token"`
}

type BlobUpload_Output

type BlobUpload_Output struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Cid           string `json:"cid" cborgen:"cid"`
}

func BlobUpload

func BlobUpload(ctx context.Context, c *xrpc.Client, input io.Reader) (*BlobUpload_Output, error)

type HandleResolve_Output

type HandleResolve_Output struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Did           string `json:"did" cborgen:"did"`
}

func HandleResolve

func HandleResolve(ctx context.Context, c *xrpc.Client, handle string) (*HandleResolve_Output, error)

type PeeringFollow_Input

type PeeringFollow_Input struct {
	LexiconTypeID string   `json:"$type,omitempty"`
	Users         []string `json:"users" cborgen:"users"`
}

type PeeringInit_Input

type PeeringInit_Input struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Pds           string `json:"pds" cborgen:"pds"`
}

type PeeringList_Output

type PeeringList_Output struct {
	LexiconTypeID string                 `json:"$type,omitempty"`
	Peerings      []*PeeringList_Peering `json:"peerings" cborgen:"peerings"`
}

func PeeringList

func PeeringList(ctx context.Context, c *xrpc.Client) (*PeeringList_Output, error)

type PeeringList_Peering

type PeeringList_Peering struct {
	LexiconTypeID string  `json:"$type,omitempty"`
	Host          *string `json:"host" cborgen:"host"`
	Status        *string `json:"status" cborgen:"status"`
}

type PeeringPropose_Input

type PeeringPropose_Input struct {
	LexiconTypeID string                   `json:"$type,omitempty"`
	Proposal      *PeeringPropose_Proposal `json:"proposal" cborgen:"proposal"`
	Signature     string                   `json:"signature" cborgen:"signature"`
}

type PeeringPropose_Output

type PeeringPropose_Output struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Rejected      bool   `json:"rejected" cborgen:"rejected"`
}

type PeeringPropose_Proposal

type PeeringPropose_Proposal struct {
	LexiconTypeID string  `json:"$type,omitempty"`
	Proposer      *string `json:"proposer" cborgen:"proposer"`
}

type RepoBatchWrite_Create

type RepoBatchWrite_Create struct {
	LexiconTypeID string                  `json:"$type,omitempty"`
	Action        string                  `json:"action" cborgen:"action"`
	Collection    string                  `json:"collection" cborgen:"collection"`
	Rkey          *string                 `json:"rkey,omitempty" cborgen:"rkey"`
	Value         util.LexiconTypeDecoder `json:"value" cborgen:"value"`
}

type RepoBatchWrite_Delete

type RepoBatchWrite_Delete struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Action        string `json:"action" cborgen:"action"`
	Collection    string `json:"collection" cborgen:"collection"`
	Rkey          string `json:"rkey" cborgen:"rkey"`
}

type RepoBatchWrite_Input

type RepoBatchWrite_Input struct {
	LexiconTypeID string                              `json:"$type,omitempty"`
	Did           string                              `json:"did" cborgen:"did"`
	Validate      *bool                               `json:"validate,omitempty" cborgen:"validate"`
	Writes        []*RepoBatchWrite_Input_Writes_Elem `json:"writes" cborgen:"writes"`
}

type RepoBatchWrite_Input_Writes_Elem

type RepoBatchWrite_Input_Writes_Elem struct {
	RepoBatchWrite_Create *RepoBatchWrite_Create
	RepoBatchWrite_Update *RepoBatchWrite_Update
	RepoBatchWrite_Delete *RepoBatchWrite_Delete
}

func (*RepoBatchWrite_Input_Writes_Elem) MarshalJSON

func (t *RepoBatchWrite_Input_Writes_Elem) MarshalJSON() ([]byte, error)

func (*RepoBatchWrite_Input_Writes_Elem) UnmarshalJSON

func (t *RepoBatchWrite_Input_Writes_Elem) UnmarshalJSON(b []byte) error

type RepoBatchWrite_Update

type RepoBatchWrite_Update struct {
	LexiconTypeID string                  `json:"$type,omitempty"`
	Action        string                  `json:"action" cborgen:"action"`
	Collection    string                  `json:"collection" cborgen:"collection"`
	Rkey          string                  `json:"rkey" cborgen:"rkey"`
	Value         util.LexiconTypeDecoder `json:"value" cborgen:"value"`
}

type RepoCreateRecord_Input

type RepoCreateRecord_Input struct {
	LexiconTypeID string                  `json:"$type,omitempty"`
	Collection    string                  `json:"collection" cborgen:"collection"`
	Did           string                  `json:"did" cborgen:"did"`
	Record        util.LexiconTypeDecoder `json:"record" cborgen:"record"`
	Validate      *bool                   `json:"validate,omitempty" cborgen:"validate"`
}

type RepoCreateRecord_Output

type RepoCreateRecord_Output struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Cid           string `json:"cid" cborgen:"cid"`
	Uri           string `json:"uri" cborgen:"uri"`
}

type RepoDeleteRecord_Input

type RepoDeleteRecord_Input struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Collection    string `json:"collection" cborgen:"collection"`
	Did           string `json:"did" cborgen:"did"`
	Rkey          string `json:"rkey" cborgen:"rkey"`
}

type RepoDescribe_Output

type RepoDescribe_Output struct {
	LexiconTypeID   string                  `json:"$type,omitempty"`
	Collections     []string                `json:"collections" cborgen:"collections"`
	Did             string                  `json:"did" cborgen:"did"`
	DidDoc          util.LexiconTypeDecoder `json:"didDoc" cborgen:"didDoc"`
	Handle          string                  `json:"handle" cborgen:"handle"`
	HandleIsCorrect bool                    `json:"handleIsCorrect" cborgen:"handleIsCorrect"`
}

func RepoDescribe

func RepoDescribe(ctx context.Context, c *xrpc.Client, user string) (*RepoDescribe_Output, error)

type RepoGetRecord_Output

type RepoGetRecord_Output struct {
	LexiconTypeID string                  `json:"$type,omitempty"`
	Cid           *string                 `json:"cid,omitempty" cborgen:"cid"`
	Uri           string                  `json:"uri" cborgen:"uri"`
	Value         util.LexiconTypeDecoder `json:"value" cborgen:"value"`
}

func RepoGetRecord

func RepoGetRecord(ctx context.Context, c *xrpc.Client, cid string, collection string, rkey string, user string) (*RepoGetRecord_Output, error)

type RepoListRecords_Output

type RepoListRecords_Output struct {
	LexiconTypeID string                    `json:"$type,omitempty"`
	Cursor        *string                   `json:"cursor,omitempty" cborgen:"cursor"`
	Records       []*RepoListRecords_Record `json:"records" cborgen:"records"`
}

func RepoListRecords

func RepoListRecords(ctx context.Context, c *xrpc.Client, after string, before string, collection string, limit int64, reverse bool, user string) (*RepoListRecords_Output, error)

type RepoListRecords_Record

type RepoListRecords_Record struct {
	LexiconTypeID string                  `json:"$type,omitempty"`
	Cid           string                  `json:"cid" cborgen:"cid"`
	Uri           string                  `json:"uri" cborgen:"uri"`
	Value         util.LexiconTypeDecoder `json:"value" cborgen:"value"`
}

type RepoPutRecord_Input

type RepoPutRecord_Input struct {
	LexiconTypeID string                  `json:"$type,omitempty"`
	Collection    string                  `json:"collection" cborgen:"collection"`
	Did           string                  `json:"did" cborgen:"did"`
	Record        util.LexiconTypeDecoder `json:"record" cborgen:"record"`
	Rkey          string                  `json:"rkey" cborgen:"rkey"`
	Validate      *bool                   `json:"validate,omitempty" cborgen:"validate"`
}

type RepoPutRecord_Output

type RepoPutRecord_Output struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Cid           string `json:"cid" cborgen:"cid"`
	Uri           string `json:"uri" cborgen:"uri"`
}

type RepoStrongRef

type RepoStrongRef struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Cid           string `json:"cid" cborgen:"cid"`
	Uri           string `json:"uri" cborgen:"uri"`
}

func (*RepoStrongRef) MarshalCBOR

func (t *RepoStrongRef) MarshalCBOR(w io.Writer) error

func (*RepoStrongRef) UnmarshalCBOR

func (t *RepoStrongRef) UnmarshalCBOR(r io.Reader) (err error)
type ServerGetAccountsConfig_Links struct {
	LexiconTypeID  string  `json:"$type,omitempty"`
	PrivacyPolicy  *string `json:"privacyPolicy,omitempty" cborgen:"privacyPolicy"`
	TermsOfService *string `json:"termsOfService,omitempty" cborgen:"termsOfService"`
}

type ServerGetAccountsConfig_Output

type ServerGetAccountsConfig_Output struct {
	LexiconTypeID        string                         `json:"$type,omitempty"`
	AvailableUserDomains []string                       `json:"availableUserDomains" cborgen:"availableUserDomains"`
	InviteCodeRequired   *bool                          `json:"inviteCodeRequired,omitempty" cborgen:"inviteCodeRequired"`
	Links                *ServerGetAccountsConfig_Links `json:"links,omitempty" cborgen:"links"`
}

func ServerGetAccountsConfig

func ServerGetAccountsConfig(ctx context.Context, c *xrpc.Client) (*ServerGetAccountsConfig_Output, error)

type SessionCreate_Input

type SessionCreate_Input struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Handle        string `json:"handle" cborgen:"handle"`
	Password      string `json:"password" cborgen:"password"`
}

type SessionCreate_Output

type SessionCreate_Output struct {
	LexiconTypeID string `json:"$type,omitempty"`
	AccessJwt     string `json:"accessJwt" cborgen:"accessJwt"`
	Did           string `json:"did" cborgen:"did"`
	Handle        string `json:"handle" cborgen:"handle"`
	RefreshJwt    string `json:"refreshJwt" cborgen:"refreshJwt"`
}

type SessionGet_Output

type SessionGet_Output struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Did           string `json:"did" cborgen:"did"`
	Handle        string `json:"handle" cborgen:"handle"`
}

func SessionGet

func SessionGet(ctx context.Context, c *xrpc.Client) (*SessionGet_Output, error)

type SessionRefresh_Output

type SessionRefresh_Output struct {
	LexiconTypeID string `json:"$type,omitempty"`
	AccessJwt     string `json:"accessJwt" cborgen:"accessJwt"`
	Did           string `json:"did" cborgen:"did"`
	Handle        string `json:"handle" cborgen:"handle"`
	RefreshJwt    string `json:"refreshJwt" cborgen:"refreshJwt"`
}

func SessionRefresh

func SessionRefresh(ctx context.Context, c *xrpc.Client) (*SessionRefresh_Output, error)

type SyncGetRoot_Output

type SyncGetRoot_Output struct {
	LexiconTypeID string `json:"$type,omitempty"`
	Root          string `json:"root" cborgen:"root"`
}

func SyncGetRoot

func SyncGetRoot(ctx context.Context, c *xrpc.Client, did string) (*SyncGetRoot_Output, error)

Jump to

Keyboard shortcuts

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