atproto

package
v0.0.0-...-c1b16d4 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0, MIT Imports: 12 Imported by: 66

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminDeleteAccount

func AdminDeleteAccount(ctx context.Context, c *xrpc.Client, input *AdminDeleteAccount_Input) error

AdminDeleteAccount calls the XRPC method "com.atproto.admin.deleteAccount".

func AdminDisableAccountInvites

func AdminDisableAccountInvites(ctx context.Context, c *xrpc.Client, input *AdminDisableAccountInvites_Input) error

AdminDisableAccountInvites calls the XRPC method "com.atproto.admin.disableAccountInvites".

func AdminDisableInviteCodes

func AdminDisableInviteCodes(ctx context.Context, c *xrpc.Client, input *AdminDisableInviteCodes_Input) error

AdminDisableInviteCodes calls the XRPC method "com.atproto.admin.disableInviteCodes".

func AdminEnableAccountInvites

func AdminEnableAccountInvites(ctx context.Context, c *xrpc.Client, input *AdminEnableAccountInvites_Input) error

AdminEnableAccountInvites calls the XRPC method "com.atproto.admin.enableAccountInvites".

func AdminUpdateAccountEmail

func AdminUpdateAccountEmail(ctx context.Context, c *xrpc.Client, input *AdminUpdateAccountEmail_Input) error

AdminUpdateAccountEmail calls the XRPC method "com.atproto.admin.updateAccountEmail".

func AdminUpdateAccountHandle

func AdminUpdateAccountHandle(ctx context.Context, c *xrpc.Client, input *AdminUpdateAccountHandle_Input) error

AdminUpdateAccountHandle calls the XRPC method "com.atproto.admin.updateAccountHandle".

func AdminUpdateAccountPassword

func AdminUpdateAccountPassword(ctx context.Context, c *xrpc.Client, input *AdminUpdateAccountPassword_Input) error

AdminUpdateAccountPassword calls the XRPC method "com.atproto.admin.updateAccountPassword".

func IdentityRequestPlcOperationSignature

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

IdentityRequestPlcOperationSignature calls the XRPC method "com.atproto.identity.requestPlcOperationSignature".

func IdentitySubmitPlcOperation

func IdentitySubmitPlcOperation(ctx context.Context, c *xrpc.Client, input *IdentitySubmitPlcOperation_Input) error

IdentitySubmitPlcOperation calls the XRPC method "com.atproto.identity.submitPlcOperation".

func IdentityUpdateHandle

func IdentityUpdateHandle(ctx context.Context, c *xrpc.Client, input *IdentityUpdateHandle_Input) error

IdentityUpdateHandle calls the XRPC method "com.atproto.identity.updateHandle".

func RepoApplyWrites

func RepoApplyWrites(ctx context.Context, c *xrpc.Client, input *RepoApplyWrites_Input) error

RepoApplyWrites calls the XRPC method "com.atproto.repo.applyWrites".

func RepoDeleteRecord

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

RepoDeleteRecord calls the XRPC method "com.atproto.repo.deleteRecord".

func RepoImportRepo

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

RepoImportRepo calls the XRPC method "com.atproto.repo.importRepo".

func ServerActivateAccount

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

ServerActivateAccount calls the XRPC method "com.atproto.server.activateAccount".

func ServerConfirmEmail

func ServerConfirmEmail(ctx context.Context, c *xrpc.Client, input *ServerConfirmEmail_Input) error

ServerConfirmEmail calls the XRPC method "com.atproto.server.confirmEmail".

func ServerDeactivateAccount

func ServerDeactivateAccount(ctx context.Context, c *xrpc.Client, input *ServerDeactivateAccount_Input) error

ServerDeactivateAccount calls the XRPC method "com.atproto.server.deactivateAccount".

func ServerDeleteAccount

func ServerDeleteAccount(ctx context.Context, c *xrpc.Client, input *ServerDeleteAccount_Input) error

ServerDeleteAccount calls the XRPC method "com.atproto.server.deleteAccount".

func ServerDeleteSession

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

ServerDeleteSession calls the XRPC method "com.atproto.server.deleteSession".

func ServerRequestAccountDelete

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

ServerRequestAccountDelete calls the XRPC method "com.atproto.server.requestAccountDelete".

func ServerRequestEmailConfirmation

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

ServerRequestEmailConfirmation calls the XRPC method "com.atproto.server.requestEmailConfirmation".

func ServerRequestPasswordReset

func ServerRequestPasswordReset(ctx context.Context, c *xrpc.Client, input *ServerRequestPasswordReset_Input) error

ServerRequestPasswordReset calls the XRPC method "com.atproto.server.requestPasswordReset".

func ServerResetPassword

func ServerResetPassword(ctx context.Context, c *xrpc.Client, input *ServerResetPassword_Input) error

ServerResetPassword calls the XRPC method "com.atproto.server.resetPassword".

func ServerRevokeAppPassword

func ServerRevokeAppPassword(ctx context.Context, c *xrpc.Client, input *ServerRevokeAppPassword_Input) error

ServerRevokeAppPassword calls the XRPC method "com.atproto.server.revokeAppPassword".

func ServerUpdateEmail

func ServerUpdateEmail(ctx context.Context, c *xrpc.Client, input *ServerUpdateEmail_Input) error

ServerUpdateEmail calls the XRPC method "com.atproto.server.updateEmail".

func SyncGetBlob

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

SyncGetBlob calls the XRPC method "com.atproto.sync.getBlob".

cid: The CID of the blob to fetch did: The DID of the account.

func SyncGetBlocks

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

SyncGetBlocks calls the XRPC method "com.atproto.sync.getBlocks".

did: The DID of the repo.

func SyncGetCheckout

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

SyncGetCheckout calls the XRPC method "com.atproto.sync.getCheckout".

did: The DID of the repo.

func SyncGetRecord

func SyncGetRecord(ctx context.Context, c *xrpc.Client, collection string, commit string, did string, rkey string) ([]byte, error)

SyncGetRecord calls the XRPC method "com.atproto.sync.getRecord".

commit: DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit did: The DID of the repo. rkey: Record Key

func SyncGetRepo

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

SyncGetRepo calls the XRPC method "com.atproto.sync.getRepo".

did: The DID of the repo. since: The revision ('rev') of the repo to create a diff from.

func SyncNotifyOfUpdate

func SyncNotifyOfUpdate(ctx context.Context, c *xrpc.Client, input *SyncNotifyOfUpdate_Input) error

SyncNotifyOfUpdate calls the XRPC method "com.atproto.sync.notifyOfUpdate".

func SyncRequestCrawl

func SyncRequestCrawl(ctx context.Context, c *xrpc.Client, input *SyncRequestCrawl_Input) error

SyncRequestCrawl calls the XRPC method "com.atproto.sync.requestCrawl".

func TempRequestPhoneVerification

func TempRequestPhoneVerification(ctx context.Context, c *xrpc.Client, input *TempRequestPhoneVerification_Input) error

TempRequestPhoneVerification calls the XRPC method "com.atproto.temp.requestPhoneVerification".

Types

type AdminDefs_AccountView

type AdminDefs_AccountView struct {
	Did              string                     `json:"did" cborgen:"did"`
	Email            *string                    `json:"email,omitempty" cborgen:"email,omitempty"`
	EmailConfirmedAt *string                    `json:"emailConfirmedAt,omitempty" cborgen:"emailConfirmedAt,omitempty"`
	Handle           string                     `json:"handle" cborgen:"handle"`
	IndexedAt        string                     `json:"indexedAt" cborgen:"indexedAt"`
	InviteNote       *string                    `json:"inviteNote,omitempty" cborgen:"inviteNote,omitempty"`
	InvitedBy        *ServerDefs_InviteCode     `json:"invitedBy,omitempty" cborgen:"invitedBy,omitempty"`
	Invites          []*ServerDefs_InviteCode   `json:"invites,omitempty" cborgen:"invites,omitempty"`
	InvitesDisabled  *bool                      `json:"invitesDisabled,omitempty" cborgen:"invitesDisabled,omitempty"`
	RelatedRecords   []*util.LexiconTypeDecoder `json:"relatedRecords,omitempty" cborgen:"relatedRecords,omitempty"`
}

AdminDefs_AccountView is a "accountView" in the com.atproto.admin.defs schema.

func AdminGetAccountInfo

func AdminGetAccountInfo(ctx context.Context, c *xrpc.Client, did string) (*AdminDefs_AccountView, error)

AdminGetAccountInfo calls the XRPC method "com.atproto.admin.getAccountInfo".

type AdminDefs_RepoBlobRef

type AdminDefs_RepoBlobRef struct {
	LexiconTypeID string  `json:"$type,const=com.atproto.admin.defs#repoBlobRef" cborgen:"$type,const=com.atproto.admin.defs#repoBlobRef"`
	Cid           string  `json:"cid" cborgen:"cid"`
	Did           string  `json:"did" cborgen:"did"`
	RecordUri     *string `json:"recordUri,omitempty" cborgen:"recordUri,omitempty"`
}

AdminDefs_RepoBlobRef is a "repoBlobRef" in the com.atproto.admin.defs schema.

RECORDTYPE: AdminDefs_RepoBlobRef

type AdminDefs_RepoRef

type AdminDefs_RepoRef struct {
	LexiconTypeID string `json:"$type,const=com.atproto.admin.defs#repoRef" cborgen:"$type,const=com.atproto.admin.defs#repoRef"`
	Did           string `json:"did" cborgen:"did"`
}

AdminDefs_RepoRef is a "repoRef" in the com.atproto.admin.defs schema.

RECORDTYPE: AdminDefs_RepoRef

type AdminDefs_StatusAttr

type AdminDefs_StatusAttr struct {
	Applied bool    `json:"applied" cborgen:"applied"`
	Ref     *string `json:"ref,omitempty" cborgen:"ref,omitempty"`
}

AdminDefs_StatusAttr is a "statusAttr" in the com.atproto.admin.defs schema.

type AdminDeleteAccount_Input

type AdminDeleteAccount_Input struct {
	Did string `json:"did" cborgen:"did"`
}

AdminDeleteAccount_Input is the input argument to a com.atproto.admin.deleteAccount call.

type AdminDisableAccountInvites_Input

type AdminDisableAccountInvites_Input struct {
	Account string `json:"account" cborgen:"account"`
	// note: Optional reason for disabled invites.
	Note *string `json:"note,omitempty" cborgen:"note,omitempty"`
}

AdminDisableAccountInvites_Input is the input argument to a com.atproto.admin.disableAccountInvites call.

type AdminDisableInviteCodes_Input

type AdminDisableInviteCodes_Input struct {
	Accounts []string `json:"accounts,omitempty" cborgen:"accounts,omitempty"`
	Codes    []string `json:"codes,omitempty" cborgen:"codes,omitempty"`
}

AdminDisableInviteCodes_Input is the input argument to a com.atproto.admin.disableInviteCodes call.

type AdminEnableAccountInvites_Input

type AdminEnableAccountInvites_Input struct {
	Account string `json:"account" cborgen:"account"`
	// note: Optional reason for enabled invites.
	Note *string `json:"note,omitempty" cborgen:"note,omitempty"`
}

AdminEnableAccountInvites_Input is the input argument to a com.atproto.admin.enableAccountInvites call.

type AdminGetAccountInfos_Output

type AdminGetAccountInfos_Output struct {
	Infos []*AdminDefs_AccountView `json:"infos" cborgen:"infos"`
}

AdminGetAccountInfos_Output is the output of a com.atproto.admin.getAccountInfos call.

func AdminGetAccountInfos

func AdminGetAccountInfos(ctx context.Context, c *xrpc.Client, dids []string) (*AdminGetAccountInfos_Output, error)

AdminGetAccountInfos calls the XRPC method "com.atproto.admin.getAccountInfos".

type AdminGetInviteCodes_Output

type AdminGetInviteCodes_Output struct {
	Codes  []*ServerDefs_InviteCode `json:"codes" cborgen:"codes"`
	Cursor *string                  `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
}

AdminGetInviteCodes_Output is the output of a com.atproto.admin.getInviteCodes call.

func AdminGetInviteCodes

func AdminGetInviteCodes(ctx context.Context, c *xrpc.Client, cursor string, limit int64, sort string) (*AdminGetInviteCodes_Output, error)

AdminGetInviteCodes calls the XRPC method "com.atproto.admin.getInviteCodes".

type AdminGetSubjectStatus_Output

type AdminGetSubjectStatus_Output struct {
	Subject  *AdminGetSubjectStatus_Output_Subject `json:"subject" cborgen:"subject"`
	Takedown *AdminDefs_StatusAttr                 `json:"takedown,omitempty" cborgen:"takedown,omitempty"`
}

AdminGetSubjectStatus_Output is the output of a com.atproto.admin.getSubjectStatus call.

func AdminGetSubjectStatus

func AdminGetSubjectStatus(ctx context.Context, c *xrpc.Client, blob string, did string, uri string) (*AdminGetSubjectStatus_Output, error)

AdminGetSubjectStatus calls the XRPC method "com.atproto.admin.getSubjectStatus".

type AdminGetSubjectStatus_Output_Subject

type AdminGetSubjectStatus_Output_Subject struct {
	AdminDefs_RepoRef     *AdminDefs_RepoRef
	RepoStrongRef         *RepoStrongRef
	AdminDefs_RepoBlobRef *AdminDefs_RepoBlobRef
}

func (*AdminGetSubjectStatus_Output_Subject) MarshalJSON

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

func (*AdminGetSubjectStatus_Output_Subject) UnmarshalJSON

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

type AdminSendEmail_Input

type AdminSendEmail_Input struct {
	// comment: Additional comment by the sender that won't be used in the email itself but helpful to provide more context for moderators/reviewers
	Comment      *string `json:"comment,omitempty" cborgen:"comment,omitempty"`
	Content      string  `json:"content" cborgen:"content"`
	RecipientDid string  `json:"recipientDid" cborgen:"recipientDid"`
	SenderDid    string  `json:"senderDid" cborgen:"senderDid"`
	Subject      *string `json:"subject,omitempty" cborgen:"subject,omitempty"`
}

AdminSendEmail_Input is the input argument to a com.atproto.admin.sendEmail call.

type AdminSendEmail_Output

type AdminSendEmail_Output struct {
	Sent bool `json:"sent" cborgen:"sent"`
}

AdminSendEmail_Output is the output of a com.atproto.admin.sendEmail call.

func AdminSendEmail

func AdminSendEmail(ctx context.Context, c *xrpc.Client, input *AdminSendEmail_Input) (*AdminSendEmail_Output, error)

AdminSendEmail calls the XRPC method "com.atproto.admin.sendEmail".

type AdminUpdateAccountEmail_Input

type AdminUpdateAccountEmail_Input struct {
	// account: The handle or DID of the repo.
	Account string `json:"account" cborgen:"account"`
	Email   string `json:"email" cborgen:"email"`
}

AdminUpdateAccountEmail_Input is the input argument to a com.atproto.admin.updateAccountEmail call.

type AdminUpdateAccountHandle_Input

type AdminUpdateAccountHandle_Input struct {
	Did    string `json:"did" cborgen:"did"`
	Handle string `json:"handle" cborgen:"handle"`
}

AdminUpdateAccountHandle_Input is the input argument to a com.atproto.admin.updateAccountHandle call.

type AdminUpdateAccountPassword_Input

type AdminUpdateAccountPassword_Input struct {
	Did      string `json:"did" cborgen:"did"`
	Password string `json:"password" cborgen:"password"`
}

AdminUpdateAccountPassword_Input is the input argument to a com.atproto.admin.updateAccountPassword call.

type AdminUpdateSubjectStatus_Input

type AdminUpdateSubjectStatus_Input struct {
	Subject  *AdminUpdateSubjectStatus_Input_Subject `json:"subject" cborgen:"subject"`
	Takedown *AdminDefs_StatusAttr                   `json:"takedown,omitempty" cborgen:"takedown,omitempty"`
}

AdminUpdateSubjectStatus_Input is the input argument to a com.atproto.admin.updateSubjectStatus call.

type AdminUpdateSubjectStatus_Input_Subject

type AdminUpdateSubjectStatus_Input_Subject struct {
	AdminDefs_RepoRef     *AdminDefs_RepoRef
	RepoStrongRef         *RepoStrongRef
	AdminDefs_RepoBlobRef *AdminDefs_RepoBlobRef
}

func (*AdminUpdateSubjectStatus_Input_Subject) MarshalJSON

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

func (*AdminUpdateSubjectStatus_Input_Subject) UnmarshalJSON

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

type AdminUpdateSubjectStatus_Output

type AdminUpdateSubjectStatus_Output struct {
	Subject  *AdminUpdateSubjectStatus_Output_Subject `json:"subject" cborgen:"subject"`
	Takedown *AdminDefs_StatusAttr                    `json:"takedown,omitempty" cborgen:"takedown,omitempty"`
}

AdminUpdateSubjectStatus_Output is the output of a com.atproto.admin.updateSubjectStatus call.

func AdminUpdateSubjectStatus

AdminUpdateSubjectStatus calls the XRPC method "com.atproto.admin.updateSubjectStatus".

type AdminUpdateSubjectStatus_Output_Subject

type AdminUpdateSubjectStatus_Output_Subject struct {
	AdminDefs_RepoRef     *AdminDefs_RepoRef
	RepoStrongRef         *RepoStrongRef
	AdminDefs_RepoBlobRef *AdminDefs_RepoBlobRef
}

func (*AdminUpdateSubjectStatus_Output_Subject) MarshalJSON

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

func (*AdminUpdateSubjectStatus_Output_Subject) UnmarshalJSON

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

type IdentityGetRecommendedDidCredentials_Output

type IdentityGetRecommendedDidCredentials_Output struct {
	AlsoKnownAs []string `json:"alsoKnownAs,omitempty" cborgen:"alsoKnownAs,omitempty"`
	// rotationKeys: Recommended rotation keys for PLC dids. Should be undefined (or ignored) for did:webs.
	RotationKeys        []string                 `json:"rotationKeys,omitempty" cborgen:"rotationKeys,omitempty"`
	Services            *util.LexiconTypeDecoder `json:"services,omitempty" cborgen:"services,omitempty"`
	VerificationMethods *util.LexiconTypeDecoder `json:"verificationMethods,omitempty" cborgen:"verificationMethods,omitempty"`
}

IdentityGetRecommendedDidCredentials_Output is the output of a com.atproto.identity.getRecommendedDidCredentials call.

func IdentityGetRecommendedDidCredentials

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

IdentityGetRecommendedDidCredentials calls the XRPC method "com.atproto.identity.getRecommendedDidCredentials".

type IdentityResolveHandle_Output

type IdentityResolveHandle_Output struct {
	Did string `json:"did" cborgen:"did"`
}

IdentityResolveHandle_Output is the output of a com.atproto.identity.resolveHandle call.

func IdentityResolveHandle

func IdentityResolveHandle(ctx context.Context, c *xrpc.Client, handle string) (*IdentityResolveHandle_Output, error)

IdentityResolveHandle calls the XRPC method "com.atproto.identity.resolveHandle".

handle: The handle to resolve.

type IdentitySignPlcOperation_Input

type IdentitySignPlcOperation_Input struct {
	AlsoKnownAs  []string                 `json:"alsoKnownAs,omitempty" cborgen:"alsoKnownAs,omitempty"`
	RotationKeys []string                 `json:"rotationKeys,omitempty" cborgen:"rotationKeys,omitempty"`
	Services     *util.LexiconTypeDecoder `json:"services,omitempty" cborgen:"services,omitempty"`
	// token: A token received through com.atproto.identity.requestPlcOperationSignature
	Token               *string                  `json:"token,omitempty" cborgen:"token,omitempty"`
	VerificationMethods *util.LexiconTypeDecoder `json:"verificationMethods,omitempty" cborgen:"verificationMethods,omitempty"`
}

IdentitySignPlcOperation_Input is the input argument to a com.atproto.identity.signPlcOperation call.

type IdentitySignPlcOperation_Output

type IdentitySignPlcOperation_Output struct {
	// operation: A signed DID PLC operation.
	Operation *util.LexiconTypeDecoder `json:"operation" cborgen:"operation"`
}

IdentitySignPlcOperation_Output is the output of a com.atproto.identity.signPlcOperation call.

func IdentitySignPlcOperation

IdentitySignPlcOperation calls the XRPC method "com.atproto.identity.signPlcOperation".

type IdentitySubmitPlcOperation_Input

type IdentitySubmitPlcOperation_Input struct {
	Operation *util.LexiconTypeDecoder `json:"operation" cborgen:"operation"`
}

IdentitySubmitPlcOperation_Input is the input argument to a com.atproto.identity.submitPlcOperation call.

type IdentityUpdateHandle_Input

type IdentityUpdateHandle_Input struct {
	// handle: The new handle.
	Handle string `json:"handle" cborgen:"handle"`
}

IdentityUpdateHandle_Input is the input argument to a com.atproto.identity.updateHandle call.

type LabelDefs_Label

type LabelDefs_Label struct {
	// cid: Optionally, CID specifying the specific version of 'uri' resource this label applies to.
	Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"`
	// cts: Timestamp when this label was created.
	Cts string `json:"cts" cborgen:"cts"`
	// exp: Timestamp at which this label expires (no longer applies).
	Exp *string `json:"exp,omitempty" cborgen:"exp,omitempty"`
	// neg: If true, this is a negation label, overwriting a previous label.
	Neg *bool `json:"neg,omitempty" cborgen:"neg,omitempty"`
	// sig: Signature of dag-cbor encoded label.
	Sig util.LexBytes `json:"sig,omitempty" cborgen:"sig,omitempty"`
	// src: DID of the actor who created this label.
	Src string `json:"src" cborgen:"src"`
	// uri: AT URI of the record, repository (account), or other resource that this label applies to.
	Uri string `json:"uri" cborgen:"uri"`
	// val: The short string name of the value or type of this label.
	Val string `json:"val" cborgen:"val"`
	// ver: The AT Protocol version of the label object.
	Ver *int64 `json:"ver,omitempty" cborgen:"ver,omitempty"`
}

LabelDefs_Label is a "label" in the com.atproto.label.defs schema.

Metadata tag on an atproto resource (eg, repo or record).

func (*LabelDefs_Label) MarshalCBOR

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

func (*LabelDefs_Label) UnmarshalCBOR

func (t *LabelDefs_Label) UnmarshalCBOR(r io.Reader) (err error)

type LabelDefs_LabelValueDefinition

type LabelDefs_LabelValueDefinition struct {
	// adultOnly: Does the user need to have adult content enabled in order to configure this label?
	AdultOnly *bool `json:"adultOnly,omitempty" cborgen:"adultOnly,omitempty"`
	// blurs: What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing.
	Blurs string `json:"blurs" cborgen:"blurs"`
	// defaultSetting: The default setting for this label.
	DefaultSetting *string `json:"defaultSetting,omitempty" cborgen:"defaultSetting,omitempty"`
	// identifier: The value of the label being defined. Must only include lowercase ascii and the '-' character ([a-z-]+).
	Identifier string                                   `json:"identifier" cborgen:"identifier"`
	Locales    []*LabelDefs_LabelValueDefinitionStrings `json:"locales" cborgen:"locales"`
	// severity: How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing.
	Severity string `json:"severity" cborgen:"severity"`
}

LabelDefs_LabelValueDefinition is a "labelValueDefinition" in the com.atproto.label.defs schema.

Declares a label value and its expected interpertations and behaviors.

func (*LabelDefs_LabelValueDefinition) MarshalCBOR

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

func (*LabelDefs_LabelValueDefinition) UnmarshalCBOR

func (t *LabelDefs_LabelValueDefinition) UnmarshalCBOR(r io.Reader) (err error)

type LabelDefs_LabelValueDefinitionStrings

type LabelDefs_LabelValueDefinitionStrings struct {
	// description: A longer description of what the label means and why it might be applied.
	Description string `json:"description" cborgen:"description"`
	// lang: The code of the language these strings are written in.
	Lang string `json:"lang" cborgen:"lang"`
	// name: A short human-readable name for the label.
	Name string `json:"name" cborgen:"name"`
}

LabelDefs_LabelValueDefinitionStrings is a "labelValueDefinitionStrings" in the com.atproto.label.defs schema.

Strings which describe the label in the UI, localized into a specific language.

func (*LabelDefs_LabelValueDefinitionStrings) MarshalCBOR

func (*LabelDefs_LabelValueDefinitionStrings) UnmarshalCBOR

func (t *LabelDefs_LabelValueDefinitionStrings) UnmarshalCBOR(r io.Reader) (err error)

type LabelDefs_SelfLabel

type LabelDefs_SelfLabel struct {
	// val: The short string name of the value or type of this label.
	Val string `json:"val" cborgen:"val"`
}

LabelDefs_SelfLabel is a "selfLabel" in the com.atproto.label.defs schema.

Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel.

func (*LabelDefs_SelfLabel) MarshalCBOR

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

func (*LabelDefs_SelfLabel) UnmarshalCBOR

func (t *LabelDefs_SelfLabel) UnmarshalCBOR(r io.Reader) (err error)

type LabelDefs_SelfLabels

type LabelDefs_SelfLabels struct {
	LexiconTypeID string                 `json:"$type,const=com.atproto.label.defs#selfLabels" cborgen:"$type,const=com.atproto.label.defs#selfLabels"`
	Values        []*LabelDefs_SelfLabel `json:"values" cborgen:"values,preservenil"`
}

LabelDefs_SelfLabels is a "selfLabels" in the com.atproto.label.defs schema.

Metadata tags on an atproto record, published by the author within the record.

RECORDTYPE: LabelDefs_SelfLabels

func (*LabelDefs_SelfLabels) MarshalCBOR

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

func (*LabelDefs_SelfLabels) UnmarshalCBOR

func (t *LabelDefs_SelfLabels) UnmarshalCBOR(r io.Reader) (err error)

type LabelQueryLabels_Output

type LabelQueryLabels_Output struct {
	Cursor *string            `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
	Labels []*LabelDefs_Label `json:"labels" cborgen:"labels"`
}

LabelQueryLabels_Output is the output of a com.atproto.label.queryLabels call.

func LabelQueryLabels

func LabelQueryLabels(ctx context.Context, c *xrpc.Client, cursor string, limit int64, sources []string, uriPatterns []string) (*LabelQueryLabels_Output, error)

LabelQueryLabels calls the XRPC method "com.atproto.label.queryLabels".

sources: Optional list of label sources (DIDs) to filter on. uriPatterns: List of AT URI patterns to match (boolean 'OR'). Each may be a prefix (ending with '*'; will match inclusive of the string leading to '*'), or a full URI.

type LabelSubscribeLabels_Info

type LabelSubscribeLabels_Info struct {
	Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
	Name    string  `json:"name" cborgen:"name"`
}

LabelSubscribeLabels_Info is a "info" in the com.atproto.label.subscribeLabels schema.

func (*LabelSubscribeLabels_Info) MarshalCBOR

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

func (*LabelSubscribeLabels_Info) UnmarshalCBOR

func (t *LabelSubscribeLabels_Info) UnmarshalCBOR(r io.Reader) (err error)

type LabelSubscribeLabels_Labels

type LabelSubscribeLabels_Labels struct {
	Labels []*LabelDefs_Label `json:"labels" cborgen:"labels"`
	Seq    int64              `json:"seq" cborgen:"seq"`
}

LabelSubscribeLabels_Labels is a "labels" in the com.atproto.label.subscribeLabels schema.

func (*LabelSubscribeLabels_Labels) MarshalCBOR

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

func (*LabelSubscribeLabels_Labels) UnmarshalCBOR

func (t *LabelSubscribeLabels_Labels) UnmarshalCBOR(r io.Reader) (err error)

type ModerationCreateReport_Input

type ModerationCreateReport_Input struct {
	// reason: Additional context about the content and violation.
	Reason *string `json:"reason,omitempty" cborgen:"reason,omitempty"`
	// reasonType: Indicates the broad category of violation the report is for.
	ReasonType *string                               `json:"reasonType" cborgen:"reasonType"`
	Subject    *ModerationCreateReport_Input_Subject `json:"subject" cborgen:"subject"`
}

ModerationCreateReport_Input is the input argument to a com.atproto.moderation.createReport call.

type ModerationCreateReport_Input_Subject

type ModerationCreateReport_Input_Subject struct {
	AdminDefs_RepoRef *AdminDefs_RepoRef
	RepoStrongRef     *RepoStrongRef
}

func (*ModerationCreateReport_Input_Subject) MarshalJSON

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

func (*ModerationCreateReport_Input_Subject) UnmarshalJSON

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

type ModerationCreateReport_Output

type ModerationCreateReport_Output struct {
	CreatedAt  string                                 `json:"createdAt" cborgen:"createdAt"`
	Id         int64                                  `json:"id" cborgen:"id"`
	Reason     *string                                `json:"reason,omitempty" cborgen:"reason,omitempty"`
	ReasonType *string                                `json:"reasonType" cborgen:"reasonType"`
	ReportedBy string                                 `json:"reportedBy" cborgen:"reportedBy"`
	Subject    *ModerationCreateReport_Output_Subject `json:"subject" cborgen:"subject"`
}

ModerationCreateReport_Output is the output of a com.atproto.moderation.createReport call.

func ModerationCreateReport

ModerationCreateReport calls the XRPC method "com.atproto.moderation.createReport".

type ModerationCreateReport_Output_Subject

type ModerationCreateReport_Output_Subject struct {
	AdminDefs_RepoRef *AdminDefs_RepoRef
	RepoStrongRef     *RepoStrongRef
}

func (*ModerationCreateReport_Output_Subject) MarshalJSON

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

func (*ModerationCreateReport_Output_Subject) UnmarshalJSON

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

type RepoApplyWrites_Create

type RepoApplyWrites_Create struct {
	LexiconTypeID string                   `json:"$type,const=com.atproto.repo.applyWrites#create" cborgen:"$type,const=com.atproto.repo.applyWrites#create"`
	Collection    string                   `json:"collection" cborgen:"collection"`
	Rkey          *string                  `json:"rkey,omitempty" cborgen:"rkey,omitempty"`
	Value         *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
}

RepoApplyWrites_Create is a "create" in the com.atproto.repo.applyWrites schema.

Operation which creates a new record.

RECORDTYPE: RepoApplyWrites_Create

type RepoApplyWrites_Delete

type RepoApplyWrites_Delete struct {
	LexiconTypeID string `json:"$type,const=com.atproto.repo.applyWrites#delete" cborgen:"$type,const=com.atproto.repo.applyWrites#delete"`
	Collection    string `json:"collection" cborgen:"collection"`
	Rkey          string `json:"rkey" cborgen:"rkey"`
}

RepoApplyWrites_Delete is a "delete" in the com.atproto.repo.applyWrites schema.

Operation which deletes an existing record.

RECORDTYPE: RepoApplyWrites_Delete

type RepoApplyWrites_Input

type RepoApplyWrites_Input struct {
	// repo: The handle or DID of the repo (aka, current account).
	Repo string `json:"repo" cborgen:"repo"`
	// swapCommit: If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations.
	SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
	// validate: Can be set to 'false' to skip Lexicon schema validation of record data, for all operations.
	Validate *bool                                `json:"validate,omitempty" cborgen:"validate,omitempty"`
	Writes   []*RepoApplyWrites_Input_Writes_Elem `json:"writes" cborgen:"writes"`
}

RepoApplyWrites_Input is the input argument to a com.atproto.repo.applyWrites call.

type RepoApplyWrites_Input_Writes_Elem

type RepoApplyWrites_Input_Writes_Elem struct {
	RepoApplyWrites_Create *RepoApplyWrites_Create
	RepoApplyWrites_Update *RepoApplyWrites_Update
	RepoApplyWrites_Delete *RepoApplyWrites_Delete
}

func (*RepoApplyWrites_Input_Writes_Elem) MarshalJSON

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

func (*RepoApplyWrites_Input_Writes_Elem) UnmarshalJSON

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

type RepoApplyWrites_Update

type RepoApplyWrites_Update struct {
	LexiconTypeID string                   `json:"$type,const=com.atproto.repo.applyWrites#update" cborgen:"$type,const=com.atproto.repo.applyWrites#update"`
	Collection    string                   `json:"collection" cborgen:"collection"`
	Rkey          string                   `json:"rkey" cborgen:"rkey"`
	Value         *util.LexiconTypeDecoder `json:"value" cborgen:"value"`
}

RepoApplyWrites_Update is a "update" in the com.atproto.repo.applyWrites schema.

Operation which updates an existing record.

RECORDTYPE: RepoApplyWrites_Update

type RepoCreateRecord_Input

type RepoCreateRecord_Input struct {
	// collection: The NSID of the record collection.
	Collection string `json:"collection" cborgen:"collection"`
	// record: The record itself. Must contain a $type field.
	Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
	// repo: The handle or DID of the repo (aka, current account).
	Repo string `json:"repo" cborgen:"repo"`
	// rkey: The Record Key.
	Rkey *string `json:"rkey,omitempty" cborgen:"rkey,omitempty"`
	// swapCommit: Compare and swap with the previous commit by CID.
	SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
	// validate: Can be set to 'false' to skip Lexicon schema validation of record data.
	Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
}

RepoCreateRecord_Input is the input argument to a com.atproto.repo.createRecord call.

type RepoCreateRecord_Output

type RepoCreateRecord_Output struct {
	Cid string `json:"cid" cborgen:"cid"`
	Uri string `json:"uri" cborgen:"uri"`
}

RepoCreateRecord_Output is the output of a com.atproto.repo.createRecord call.

func RepoCreateRecord

func RepoCreateRecord(ctx context.Context, c *xrpc.Client, input *RepoCreateRecord_Input) (*RepoCreateRecord_Output, error)

RepoCreateRecord calls the XRPC method "com.atproto.repo.createRecord".

type RepoDeleteRecord_Input

type RepoDeleteRecord_Input struct {
	// collection: The NSID of the record collection.
	Collection string `json:"collection" cborgen:"collection"`
	// repo: The handle or DID of the repo (aka, current account).
	Repo string `json:"repo" cborgen:"repo"`
	// rkey: The Record Key.
	Rkey string `json:"rkey" cborgen:"rkey"`
	// swapCommit: Compare and swap with the previous commit by CID.
	SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
	// swapRecord: Compare and swap with the previous record by CID.
	SwapRecord *string `json:"swapRecord,omitempty" cborgen:"swapRecord,omitempty"`
}

RepoDeleteRecord_Input is the input argument to a com.atproto.repo.deleteRecord call.

type RepoDescribeRepo_Output

type RepoDescribeRepo_Output struct {
	// collections: List of all the collections (NSIDs) for which this repo contains at least one record.
	Collections []string `json:"collections" cborgen:"collections"`
	Did         string   `json:"did" cborgen:"did"`
	// didDoc: The complete DID document for this account.
	DidDoc interface{} `json:"didDoc" cborgen:"didDoc"`
	Handle string      `json:"handle" cborgen:"handle"`
	// handleIsCorrect: Indicates if handle is currently valid (resolves bi-directionally)
	HandleIsCorrect bool `json:"handleIsCorrect" cborgen:"handleIsCorrect"`
}

RepoDescribeRepo_Output is the output of a com.atproto.repo.describeRepo call.

func RepoDescribeRepo

func RepoDescribeRepo(ctx context.Context, c *xrpc.Client, repo string) (*RepoDescribeRepo_Output, error)

RepoDescribeRepo calls the XRPC method "com.atproto.repo.describeRepo".

repo: The handle or DID of the repo.

type RepoGetRecord_Output

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

RepoGetRecord_Output is the output of a com.atproto.repo.getRecord call.

func RepoGetRecord

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

RepoGetRecord calls the XRPC method "com.atproto.repo.getRecord".

cid: The CID of the version of the record. If not specified, then return the most recent version. collection: The NSID of the record collection. repo: The handle or DID of the repo. rkey: The Record Key.

type RepoListMissingBlobs_Output

type RepoListMissingBlobs_Output struct {
	Blobs  []*RepoListMissingBlobs_RecordBlob `json:"blobs" cborgen:"blobs"`
	Cursor *string                            `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
}

RepoListMissingBlobs_Output is the output of a com.atproto.repo.listMissingBlobs call.

func RepoListMissingBlobs

func RepoListMissingBlobs(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*RepoListMissingBlobs_Output, error)

RepoListMissingBlobs calls the XRPC method "com.atproto.repo.listMissingBlobs".

type RepoListMissingBlobs_RecordBlob

type RepoListMissingBlobs_RecordBlob struct {
	Cid       string `json:"cid" cborgen:"cid"`
	RecordUri string `json:"recordUri" cborgen:"recordUri"`
}

RepoListMissingBlobs_RecordBlob is a "recordBlob" in the com.atproto.repo.listMissingBlobs schema.

type RepoListRecords_Output

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

RepoListRecords_Output is the output of a com.atproto.repo.listRecords call.

func RepoListRecords

func RepoListRecords(ctx context.Context, c *xrpc.Client, collection string, cursor string, limit int64, repo string, reverse bool, rkeyEnd string, rkeyStart string) (*RepoListRecords_Output, error)

RepoListRecords calls the XRPC method "com.atproto.repo.listRecords".

collection: The NSID of the record type. limit: The number of records to return. repo: The handle or DID of the repo. reverse: Flag to reverse the order of the returned records. rkeyEnd: DEPRECATED: The highest sort-ordered rkey to stop at (exclusive) rkeyStart: DEPRECATED: The lowest sort-ordered rkey to start from (exclusive)

type RepoListRecords_Record

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

RepoListRecords_Record is a "record" in the com.atproto.repo.listRecords schema.

type RepoPutRecord_Input

type RepoPutRecord_Input struct {
	// collection: The NSID of the record collection.
	Collection string `json:"collection" cborgen:"collection"`
	// record: The record to write.
	Record *util.LexiconTypeDecoder `json:"record" cborgen:"record"`
	// repo: The handle or DID of the repo (aka, current account).
	Repo string `json:"repo" cborgen:"repo"`
	// rkey: The Record Key.
	Rkey string `json:"rkey" cborgen:"rkey"`
	// swapCommit: Compare and swap with the previous commit by CID.
	SwapCommit *string `json:"swapCommit,omitempty" cborgen:"swapCommit,omitempty"`
	// swapRecord: Compare and swap with the previous record by CID. WARNING: nullable and optional field; may cause problems with golang implementation
	SwapRecord *string `json:"swapRecord" cborgen:"swapRecord"`
	// validate: Can be set to 'false' to skip Lexicon schema validation of record data.
	Validate *bool `json:"validate,omitempty" cborgen:"validate,omitempty"`
}

RepoPutRecord_Input is the input argument to a com.atproto.repo.putRecord call.

type RepoPutRecord_Output

type RepoPutRecord_Output struct {
	Cid string `json:"cid" cborgen:"cid"`
	Uri string `json:"uri" cborgen:"uri"`
}

RepoPutRecord_Output is the output of a com.atproto.repo.putRecord call.

func RepoPutRecord

func RepoPutRecord(ctx context.Context, c *xrpc.Client, input *RepoPutRecord_Input) (*RepoPutRecord_Output, error)

RepoPutRecord calls the XRPC method "com.atproto.repo.putRecord".

type RepoStrongRef

type RepoStrongRef struct {
	LexiconTypeID string `json:"$type,const=com.atproto.repo.strongRef,omitempty" cborgen:"$type,const=com.atproto.repo.strongRef,omitempty"`
	Cid           string `json:"cid" cborgen:"cid"`
	Uri           string `json:"uri" cborgen:"uri"`
}

RECORDTYPE: RepoStrongRef

func (*RepoStrongRef) MarshalCBOR

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

func (*RepoStrongRef) UnmarshalCBOR

func (t *RepoStrongRef) UnmarshalCBOR(r io.Reader) (err error)

type RepoUploadBlob_Output

type RepoUploadBlob_Output struct {
	Blob *util.LexBlob `json:"blob" cborgen:"blob"`
}

RepoUploadBlob_Output is the output of a com.atproto.repo.uploadBlob call.

func RepoUploadBlob

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

RepoUploadBlob calls the XRPC method "com.atproto.repo.uploadBlob".

type ServerCheckAccountStatus_Output

type ServerCheckAccountStatus_Output struct {
	Activated          bool   `json:"activated" cborgen:"activated"`
	ExpectedBlobs      int64  `json:"expectedBlobs" cborgen:"expectedBlobs"`
	ImportedBlobs      int64  `json:"importedBlobs" cborgen:"importedBlobs"`
	IndexedRecords     int64  `json:"indexedRecords" cborgen:"indexedRecords"`
	PrivateStateValues int64  `json:"privateStateValues" cborgen:"privateStateValues"`
	RepoBlocks         int64  `json:"repoBlocks" cborgen:"repoBlocks"`
	RepoCommit         string `json:"repoCommit" cborgen:"repoCommit"`
	RepoRev            string `json:"repoRev" cborgen:"repoRev"`
	ValidDid           bool   `json:"validDid" cborgen:"validDid"`
}

ServerCheckAccountStatus_Output is the output of a com.atproto.server.checkAccountStatus call.

func ServerCheckAccountStatus

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

ServerCheckAccountStatus calls the XRPC method "com.atproto.server.checkAccountStatus".

type ServerConfirmEmail_Input

type ServerConfirmEmail_Input struct {
	Email string `json:"email" cborgen:"email"`
	Token string `json:"token" cborgen:"token"`
}

ServerConfirmEmail_Input is the input argument to a com.atproto.server.confirmEmail call.

type ServerCreateAccount_Input

type ServerCreateAccount_Input struct {
	// did: Pre-existing atproto DID, being imported to a new account.
	Did   *string `json:"did,omitempty" cborgen:"did,omitempty"`
	Email *string `json:"email,omitempty" cborgen:"email,omitempty"`
	// handle: Requested handle for the account.
	Handle     string  `json:"handle" cborgen:"handle"`
	InviteCode *string `json:"inviteCode,omitempty" cborgen:"inviteCode,omitempty"`
	// password: Initial account password. May need to meet instance-specific password strength requirements.
	Password *string `json:"password,omitempty" cborgen:"password,omitempty"`
	// plcOp: A signed DID PLC operation to be submitted as part of importing an existing account to this instance. NOTE: this optional field may be updated when full account migration is implemented.
	PlcOp *interface{} `json:"plcOp,omitempty" cborgen:"plcOp,omitempty"`
	// recoveryKey: DID PLC rotation key (aka, recovery key) to be included in PLC creation operation.
	RecoveryKey       *string `json:"recoveryKey,omitempty" cborgen:"recoveryKey,omitempty"`
	VerificationCode  *string `json:"verificationCode,omitempty" cborgen:"verificationCode,omitempty"`
	VerificationPhone *string `json:"verificationPhone,omitempty" cborgen:"verificationPhone,omitempty"`
}

ServerCreateAccount_Input is the input argument to a com.atproto.server.createAccount call.

type ServerCreateAccount_Output

type ServerCreateAccount_Output struct {
	AccessJwt string `json:"accessJwt" cborgen:"accessJwt"`
	// did: The DID of the new account.
	Did string `json:"did" cborgen:"did"`
	// didDoc: Complete DID document.
	DidDoc     *interface{} `json:"didDoc,omitempty" cborgen:"didDoc,omitempty"`
	Handle     string       `json:"handle" cborgen:"handle"`
	RefreshJwt string       `json:"refreshJwt" cborgen:"refreshJwt"`
}

ServerCreateAccount_Output is the output of a com.atproto.server.createAccount call.

Account login session returned on successful account creation.

func ServerCreateAccount

func ServerCreateAccount(ctx context.Context, c *xrpc.Client, input *ServerCreateAccount_Input) (*ServerCreateAccount_Output, error)

ServerCreateAccount calls the XRPC method "com.atproto.server.createAccount".

type ServerCreateAppPassword_AppPassword

type ServerCreateAppPassword_AppPassword struct {
	CreatedAt string `json:"createdAt" cborgen:"createdAt"`
	Name      string `json:"name" cborgen:"name"`
	Password  string `json:"password" cborgen:"password"`
}

ServerCreateAppPassword_AppPassword is a "appPassword" in the com.atproto.server.createAppPassword schema.

func ServerCreateAppPassword

ServerCreateAppPassword calls the XRPC method "com.atproto.server.createAppPassword".

type ServerCreateAppPassword_Input

type ServerCreateAppPassword_Input struct {
	// name: A short name for the App Password, to help distinguish them.
	Name string `json:"name" cborgen:"name"`
}

ServerCreateAppPassword_Input is the input argument to a com.atproto.server.createAppPassword call.

type ServerCreateInviteCode_Input

type ServerCreateInviteCode_Input struct {
	ForAccount *string `json:"forAccount,omitempty" cborgen:"forAccount,omitempty"`
	UseCount   int64   `json:"useCount" cborgen:"useCount"`
}

ServerCreateInviteCode_Input is the input argument to a com.atproto.server.createInviteCode call.

type ServerCreateInviteCode_Output

type ServerCreateInviteCode_Output struct {
	Code string `json:"code" cborgen:"code"`
}

ServerCreateInviteCode_Output is the output of a com.atproto.server.createInviteCode call.

func ServerCreateInviteCode

ServerCreateInviteCode calls the XRPC method "com.atproto.server.createInviteCode".

type ServerCreateInviteCodes_AccountCodes

type ServerCreateInviteCodes_AccountCodes struct {
	Account string   `json:"account" cborgen:"account"`
	Codes   []string `json:"codes" cborgen:"codes"`
}

ServerCreateInviteCodes_AccountCodes is a "accountCodes" in the com.atproto.server.createInviteCodes schema.

type ServerCreateInviteCodes_Input

type ServerCreateInviteCodes_Input struct {
	CodeCount   int64    `json:"codeCount" cborgen:"codeCount"`
	ForAccounts []string `json:"forAccounts,omitempty" cborgen:"forAccounts,omitempty"`
	UseCount    int64    `json:"useCount" cborgen:"useCount"`
}

ServerCreateInviteCodes_Input is the input argument to a com.atproto.server.createInviteCodes call.

type ServerCreateInviteCodes_Output

type ServerCreateInviteCodes_Output struct {
	Codes []*ServerCreateInviteCodes_AccountCodes `json:"codes" cborgen:"codes"`
}

ServerCreateInviteCodes_Output is the output of a com.atproto.server.createInviteCodes call.

func ServerCreateInviteCodes

ServerCreateInviteCodes calls the XRPC method "com.atproto.server.createInviteCodes".

type ServerCreateSession_Input

type ServerCreateSession_Input struct {
	AuthFactorToken *string `json:"authFactorToken,omitempty" cborgen:"authFactorToken,omitempty"`
	// identifier: Handle or other identifier supported by the server for the authenticating user.
	Identifier string `json:"identifier" cborgen:"identifier"`
	Password   string `json:"password" cborgen:"password"`
}

ServerCreateSession_Input is the input argument to a com.atproto.server.createSession call.

type ServerCreateSession_Output

type ServerCreateSession_Output struct {
	AccessJwt       string       `json:"accessJwt" cborgen:"accessJwt"`
	Did             string       `json:"did" cborgen:"did"`
	DidDoc          *interface{} `json:"didDoc,omitempty" cborgen:"didDoc,omitempty"`
	Email           *string      `json:"email,omitempty" cborgen:"email,omitempty"`
	EmailAuthFactor *bool        `json:"emailAuthFactor,omitempty" cborgen:"emailAuthFactor,omitempty"`
	EmailConfirmed  *bool        `json:"emailConfirmed,omitempty" cborgen:"emailConfirmed,omitempty"`
	Handle          string       `json:"handle" cborgen:"handle"`
	RefreshJwt      string       `json:"refreshJwt" cborgen:"refreshJwt"`
}

ServerCreateSession_Output is the output of a com.atproto.server.createSession call.

func ServerCreateSession

func ServerCreateSession(ctx context.Context, c *xrpc.Client, input *ServerCreateSession_Input) (*ServerCreateSession_Output, error)

ServerCreateSession calls the XRPC method "com.atproto.server.createSession".

type ServerDeactivateAccount_Input

type ServerDeactivateAccount_Input struct {
	// deleteAfter: A recommendation to server as to how long they should hold onto the deactivated account before deleting.
	DeleteAfter *string `json:"deleteAfter,omitempty" cborgen:"deleteAfter,omitempty"`
}

ServerDeactivateAccount_Input is the input argument to a com.atproto.server.deactivateAccount call.

type ServerDefs_InviteCode

type ServerDefs_InviteCode struct {
	Available  int64                       `json:"available" cborgen:"available"`
	Code       string                      `json:"code" cborgen:"code"`
	CreatedAt  string                      `json:"createdAt" cborgen:"createdAt"`
	CreatedBy  string                      `json:"createdBy" cborgen:"createdBy"`
	Disabled   bool                        `json:"disabled" cborgen:"disabled"`
	ForAccount string                      `json:"forAccount" cborgen:"forAccount"`
	Uses       []*ServerDefs_InviteCodeUse `json:"uses" cborgen:"uses"`
}

ServerDefs_InviteCode is a "inviteCode" in the com.atproto.server.defs schema.

type ServerDefs_InviteCodeUse

type ServerDefs_InviteCodeUse struct {
	UsedAt string `json:"usedAt" cborgen:"usedAt"`
	UsedBy string `json:"usedBy" cborgen:"usedBy"`
}

ServerDefs_InviteCodeUse is a "inviteCodeUse" in the com.atproto.server.defs schema.

type ServerDeleteAccount_Input

type ServerDeleteAccount_Input struct {
	Did      string `json:"did" cborgen:"did"`
	Password string `json:"password" cborgen:"password"`
	Token    string `json:"token" cborgen:"token"`
}

ServerDeleteAccount_Input is the input argument to a com.atproto.server.deleteAccount call.

type ServerDescribeServer_Contact

type ServerDescribeServer_Contact struct {
	Email *string `json:"email,omitempty" cborgen:"email,omitempty"`
}

ServerDescribeServer_Contact is a "contact" in the com.atproto.server.describeServer schema.

type ServerDescribeServer_Links struct {
	PrivacyPolicy  *string `json:"privacyPolicy,omitempty" cborgen:"privacyPolicy,omitempty"`
	TermsOfService *string `json:"termsOfService,omitempty" cborgen:"termsOfService,omitempty"`
}

ServerDescribeServer_Links is a "links" in the com.atproto.server.describeServer schema.

type ServerDescribeServer_Output

type ServerDescribeServer_Output struct {
	// availableUserDomains: List of domain suffixes that can be used in account handles.
	AvailableUserDomains []string `json:"availableUserDomains" cborgen:"availableUserDomains"`
	// contact: Contact information
	Contact *ServerDescribeServer_Contact `json:"contact,omitempty" cborgen:"contact,omitempty"`
	Did     string                        `json:"did" cborgen:"did"`
	// inviteCodeRequired: If true, an invite code must be supplied to create an account on this instance.
	InviteCodeRequired *bool `json:"inviteCodeRequired,omitempty" cborgen:"inviteCodeRequired,omitempty"`
	// links: URLs of service policy documents.
	Links *ServerDescribeServer_Links `json:"links,omitempty" cborgen:"links,omitempty"`
	// phoneVerificationRequired: If true, a phone verification token must be supplied to create an account on this instance.
	PhoneVerificationRequired *bool `json:"phoneVerificationRequired,omitempty" cborgen:"phoneVerificationRequired,omitempty"`
}

ServerDescribeServer_Output is the output of a com.atproto.server.describeServer call.

func ServerDescribeServer

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

ServerDescribeServer calls the XRPC method "com.atproto.server.describeServer".

type ServerGetAccountInviteCodes_Output

type ServerGetAccountInviteCodes_Output struct {
	Codes []*ServerDefs_InviteCode `json:"codes" cborgen:"codes"`
}

ServerGetAccountInviteCodes_Output is the output of a com.atproto.server.getAccountInviteCodes call.

func ServerGetAccountInviteCodes

func ServerGetAccountInviteCodes(ctx context.Context, c *xrpc.Client, createAvailable bool, includeUsed bool) (*ServerGetAccountInviteCodes_Output, error)

ServerGetAccountInviteCodes calls the XRPC method "com.atproto.server.getAccountInviteCodes".

createAvailable: Controls whether any new 'earned' but not 'created' invites should be created.

type ServerGetServiceAuth_Output

type ServerGetServiceAuth_Output struct {
	Token string `json:"token" cborgen:"token"`
}

ServerGetServiceAuth_Output is the output of a com.atproto.server.getServiceAuth call.

func ServerGetServiceAuth

func ServerGetServiceAuth(ctx context.Context, c *xrpc.Client, aud string) (*ServerGetServiceAuth_Output, error)

ServerGetServiceAuth calls the XRPC method "com.atproto.server.getServiceAuth".

aud: The DID of the service that the token will be used to authenticate with

type ServerGetSession_Output

type ServerGetSession_Output struct {
	Did             string       `json:"did" cborgen:"did"`
	DidDoc          *interface{} `json:"didDoc,omitempty" cborgen:"didDoc,omitempty"`
	Email           *string      `json:"email,omitempty" cborgen:"email,omitempty"`
	EmailAuthFactor *bool        `json:"emailAuthFactor,omitempty" cborgen:"emailAuthFactor,omitempty"`
	EmailConfirmed  *bool        `json:"emailConfirmed,omitempty" cborgen:"emailConfirmed,omitempty"`
	Handle          string       `json:"handle" cborgen:"handle"`
}

ServerGetSession_Output is the output of a com.atproto.server.getSession call.

func ServerGetSession

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

ServerGetSession calls the XRPC method "com.atproto.server.getSession".

type ServerListAppPasswords_AppPassword

type ServerListAppPasswords_AppPassword struct {
	CreatedAt string `json:"createdAt" cborgen:"createdAt"`
	Name      string `json:"name" cborgen:"name"`
}

ServerListAppPasswords_AppPassword is a "appPassword" in the com.atproto.server.listAppPasswords schema.

type ServerListAppPasswords_Output

type ServerListAppPasswords_Output struct {
	Passwords []*ServerListAppPasswords_AppPassword `json:"passwords" cborgen:"passwords"`
}

ServerListAppPasswords_Output is the output of a com.atproto.server.listAppPasswords call.

func ServerListAppPasswords

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

ServerListAppPasswords calls the XRPC method "com.atproto.server.listAppPasswords".

type ServerRefreshSession_Output

type ServerRefreshSession_Output struct {
	AccessJwt  string       `json:"accessJwt" cborgen:"accessJwt"`
	Did        string       `json:"did" cborgen:"did"`
	DidDoc     *interface{} `json:"didDoc,omitempty" cborgen:"didDoc,omitempty"`
	Handle     string       `json:"handle" cborgen:"handle"`
	RefreshJwt string       `json:"refreshJwt" cborgen:"refreshJwt"`
}

ServerRefreshSession_Output is the output of a com.atproto.server.refreshSession call.

func ServerRefreshSession

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

ServerRefreshSession calls the XRPC method "com.atproto.server.refreshSession".

type ServerRequestEmailUpdate_Output

type ServerRequestEmailUpdate_Output struct {
	TokenRequired bool `json:"tokenRequired" cborgen:"tokenRequired"`
}

ServerRequestEmailUpdate_Output is the output of a com.atproto.server.requestEmailUpdate call.

func ServerRequestEmailUpdate

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

ServerRequestEmailUpdate calls the XRPC method "com.atproto.server.requestEmailUpdate".

type ServerRequestPasswordReset_Input

type ServerRequestPasswordReset_Input struct {
	Email string `json:"email" cborgen:"email"`
}

ServerRequestPasswordReset_Input is the input argument to a com.atproto.server.requestPasswordReset call.

type ServerReserveSigningKey_Input

type ServerReserveSigningKey_Input struct {
	// did: The DID to reserve a key for.
	Did *string `json:"did,omitempty" cborgen:"did,omitempty"`
}

ServerReserveSigningKey_Input is the input argument to a com.atproto.server.reserveSigningKey call.

type ServerReserveSigningKey_Output

type ServerReserveSigningKey_Output struct {
	// signingKey: The public key for the reserved signing key, in did:key serialization.
	SigningKey string `json:"signingKey" cborgen:"signingKey"`
}

ServerReserveSigningKey_Output is the output of a com.atproto.server.reserveSigningKey call.

func ServerReserveSigningKey

ServerReserveSigningKey calls the XRPC method "com.atproto.server.reserveSigningKey".

type ServerResetPassword_Input

type ServerResetPassword_Input struct {
	Password string `json:"password" cborgen:"password"`
	Token    string `json:"token" cborgen:"token"`
}

ServerResetPassword_Input is the input argument to a com.atproto.server.resetPassword call.

type ServerRevokeAppPassword_Input

type ServerRevokeAppPassword_Input struct {
	Name string `json:"name" cborgen:"name"`
}

ServerRevokeAppPassword_Input is the input argument to a com.atproto.server.revokeAppPassword call.

type ServerUpdateEmail_Input

type ServerUpdateEmail_Input struct {
	Email           string `json:"email" cborgen:"email"`
	EmailAuthFactor *bool  `json:"emailAuthFactor,omitempty" cborgen:"emailAuthFactor,omitempty"`
	// token: Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed.
	Token *string `json:"token,omitempty" cborgen:"token,omitempty"`
}

ServerUpdateEmail_Input is the input argument to a com.atproto.server.updateEmail call.

type SyncGetHead_Output

type SyncGetHead_Output struct {
	Root string `json:"root" cborgen:"root"`
}

SyncGetHead_Output is the output of a com.atproto.sync.getHead call.

func SyncGetHead

func SyncGetHead(ctx context.Context, c *xrpc.Client, did string) (*SyncGetHead_Output, error)

SyncGetHead calls the XRPC method "com.atproto.sync.getHead".

did: The DID of the repo.

type SyncGetLatestCommit_Output

type SyncGetLatestCommit_Output struct {
	Cid string `json:"cid" cborgen:"cid"`
	Rev string `json:"rev" cborgen:"rev"`
}

SyncGetLatestCommit_Output is the output of a com.atproto.sync.getLatestCommit call.

func SyncGetLatestCommit

func SyncGetLatestCommit(ctx context.Context, c *xrpc.Client, did string) (*SyncGetLatestCommit_Output, error)

SyncGetLatestCommit calls the XRPC method "com.atproto.sync.getLatestCommit".

did: The DID of the repo.

type SyncGetRepoStatus_Output

type SyncGetRepoStatus_Output struct {
	Active bool   `json:"active" cborgen:"active"`
	Did    string `json:"did" cborgen:"did"`
	// rev: Optional field, the current rev of the repo, if active=true
	Rev *string `json:"rev,omitempty" cborgen:"rev,omitempty"`
	// status: If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.
	Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
}

SyncGetRepoStatus_Output is the output of a com.atproto.sync.getRepoStatus call.

func SyncGetRepoStatus

func SyncGetRepoStatus(ctx context.Context, c *xrpc.Client, did string) (*SyncGetRepoStatus_Output, error)

SyncGetRepoStatus calls the XRPC method "com.atproto.sync.getRepoStatus".

did: The DID of the repo.

type SyncListBlobs_Output

type SyncListBlobs_Output struct {
	Cids   []string `json:"cids" cborgen:"cids"`
	Cursor *string  `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
}

SyncListBlobs_Output is the output of a com.atproto.sync.listBlobs call.

func SyncListBlobs

func SyncListBlobs(ctx context.Context, c *xrpc.Client, cursor string, did string, limit int64, since string) (*SyncListBlobs_Output, error)

SyncListBlobs calls the XRPC method "com.atproto.sync.listBlobs".

did: The DID of the repo. since: Optional revision of the repo to list blobs since.

type SyncListRepos_Output

type SyncListRepos_Output struct {
	Cursor *string               `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
	Repos  []*SyncListRepos_Repo `json:"repos" cborgen:"repos"`
}

SyncListRepos_Output is the output of a com.atproto.sync.listRepos call.

func SyncListRepos

func SyncListRepos(ctx context.Context, c *xrpc.Client, cursor string, limit int64) (*SyncListRepos_Output, error)

SyncListRepos calls the XRPC method "com.atproto.sync.listRepos".

type SyncListRepos_Repo

type SyncListRepos_Repo struct {
	Active *bool  `json:"active,omitempty" cborgen:"active,omitempty"`
	Did    string `json:"did" cborgen:"did"`
	// head: Current repo commit CID
	Head string `json:"head" cborgen:"head"`
	Rev  string `json:"rev" cborgen:"rev"`
	// status: If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.
	Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
}

SyncListRepos_Repo is a "repo" in the com.atproto.sync.listRepos schema.

type SyncNotifyOfUpdate_Input

type SyncNotifyOfUpdate_Input struct {
	// hostname: Hostname of the current service (usually a PDS) that is notifying of update.
	Hostname string `json:"hostname" cborgen:"hostname"`
}

SyncNotifyOfUpdate_Input is the input argument to a com.atproto.sync.notifyOfUpdate call.

type SyncRequestCrawl_Input

type SyncRequestCrawl_Input struct {
	// hostname: Hostname of the current service (eg, PDS) that is requesting to be crawled.
	Hostname string `json:"hostname" cborgen:"hostname"`
}

SyncRequestCrawl_Input is the input argument to a com.atproto.sync.requestCrawl call.

type SyncSubscribeRepos_Account

type SyncSubscribeRepos_Account struct {
	// active: Indicates that the account has a repository which can be fetched from the host that emitted this event.
	Active bool   `json:"active" cborgen:"active"`
	Did    string `json:"did" cborgen:"did"`
	Seq    int64  `json:"seq" cborgen:"seq"`
	// status: If active=false, this optional field indicates a reason for why the account is not active.
	Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
	Time   string  `json:"time" cborgen:"time"`
}

SyncSubscribeRepos_Account is a "account" in the com.atproto.sync.subscribeRepos schema.

Represents a change to an account's status on a host (eg, PDS or Relay). The semantics of this event are that the status is at the host which emitted the event, not necessarily that at the currently active PDS. Eg, a Relay takedown would emit a takedown with active=false, even if the PDS is still active.

func (*SyncSubscribeRepos_Account) MarshalCBOR

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

func (*SyncSubscribeRepos_Account) UnmarshalCBOR

func (t *SyncSubscribeRepos_Account) UnmarshalCBOR(r io.Reader) (err error)

type SyncSubscribeRepos_Commit

type SyncSubscribeRepos_Commit struct {
	Blobs []util.LexLink `json:"blobs" cborgen:"blobs"`
	// blocks: CAR file containing relevant blocks, as a diff since the previous repo state.
	Blocks util.LexBytes `json:"blocks,omitempty" cborgen:"blocks,omitempty"`
	// commit: Repo commit object CID.
	Commit util.LexLink                 `json:"commit" cborgen:"commit"`
	Ops    []*SyncSubscribeRepos_RepoOp `json:"ops" cborgen:"ops"`
	// prev: DEPRECATED -- unused. WARNING -- nullable and optional; stick with optional to ensure golang interoperability.
	Prev *util.LexLink `json:"prev" cborgen:"prev"`
	// rebase: DEPRECATED -- unused
	Rebase bool `json:"rebase" cborgen:"rebase"`
	// repo: The repo this event comes from.
	Repo string `json:"repo" cborgen:"repo"`
	// rev: The rev of the emitted commit. Note that this information is also in the commit object included in blocks, unless this is a tooBig event.
	Rev string `json:"rev" cborgen:"rev"`
	// seq: The stream sequence number of this message.
	Seq int64 `json:"seq" cborgen:"seq"`
	// since: The rev of the last emitted commit from this repo (if any).
	Since *string `json:"since" cborgen:"since"`
	// time: Timestamp of when this message was originally broadcast.
	Time string `json:"time" cborgen:"time"`
	// tooBig: Indicates that this commit contained too many ops, or data size was too large. Consumers will need to make a separate request to get missing data.
	TooBig bool `json:"tooBig" cborgen:"tooBig"`
}

SyncSubscribeRepos_Commit is a "commit" in the com.atproto.sync.subscribeRepos schema.

Represents an update of repository state. Note that empty commits are allowed, which include no repo data changes, but an update to rev and signature.

func (*SyncSubscribeRepos_Commit) MarshalCBOR

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

func (*SyncSubscribeRepos_Commit) UnmarshalCBOR

func (t *SyncSubscribeRepos_Commit) UnmarshalCBOR(r io.Reader) (err error)

type SyncSubscribeRepos_Handle

type SyncSubscribeRepos_Handle struct {
	Did    string `json:"did" cborgen:"did"`
	Handle string `json:"handle" cborgen:"handle"`
	Seq    int64  `json:"seq" cborgen:"seq"`
	Time   string `json:"time" cborgen:"time"`
}

SyncSubscribeRepos_Handle is a "handle" in the com.atproto.sync.subscribeRepos schema.

DEPRECATED -- Use #identity event instead

func (*SyncSubscribeRepos_Handle) MarshalCBOR

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

func (*SyncSubscribeRepos_Handle) UnmarshalCBOR

func (t *SyncSubscribeRepos_Handle) UnmarshalCBOR(r io.Reader) (err error)

type SyncSubscribeRepos_Identity

type SyncSubscribeRepos_Identity struct {
	Did string `json:"did" cborgen:"did"`
	// handle: The current handle for the account, or 'handle.invalid' if validation fails. This field is optional, might have been validated or passed-through from an upstream source. Semantics and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details.
	Handle *string `json:"handle,omitempty" cborgen:"handle,omitempty"`
	Seq    int64   `json:"seq" cborgen:"seq"`
	Time   string  `json:"time" cborgen:"time"`
}

SyncSubscribeRepos_Identity is a "identity" in the com.atproto.sync.subscribeRepos schema.

Represents a change to an account's identity. Could be an updated handle, signing key, or pds hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache.

func (*SyncSubscribeRepos_Identity) MarshalCBOR

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

func (*SyncSubscribeRepos_Identity) UnmarshalCBOR

func (t *SyncSubscribeRepos_Identity) UnmarshalCBOR(r io.Reader) (err error)

type SyncSubscribeRepos_Info

type SyncSubscribeRepos_Info struct {
	Message *string `json:"message,omitempty" cborgen:"message,omitempty"`
	Name    string  `json:"name" cborgen:"name"`
}

SyncSubscribeRepos_Info is a "info" in the com.atproto.sync.subscribeRepos schema.

func (*SyncSubscribeRepos_Info) MarshalCBOR

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

func (*SyncSubscribeRepos_Info) UnmarshalCBOR

func (t *SyncSubscribeRepos_Info) UnmarshalCBOR(r io.Reader) (err error)

type SyncSubscribeRepos_Migrate

type SyncSubscribeRepos_Migrate struct {
	Did       string  `json:"did" cborgen:"did"`
	MigrateTo *string `json:"migrateTo" cborgen:"migrateTo"`
	Seq       int64   `json:"seq" cborgen:"seq"`
	Time      string  `json:"time" cborgen:"time"`
}

SyncSubscribeRepos_Migrate is a "migrate" in the com.atproto.sync.subscribeRepos schema.

DEPRECATED -- Use #account event instead

func (*SyncSubscribeRepos_Migrate) MarshalCBOR

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

func (*SyncSubscribeRepos_Migrate) UnmarshalCBOR

func (t *SyncSubscribeRepos_Migrate) UnmarshalCBOR(r io.Reader) (err error)

type SyncSubscribeRepos_RepoOp

type SyncSubscribeRepos_RepoOp struct {
	Action string `json:"action" cborgen:"action"`
	// cid: For creates and updates, the new record CID. For deletions, null.
	Cid  *util.LexLink `json:"cid" cborgen:"cid"`
	Path string        `json:"path" cborgen:"path"`
}

SyncSubscribeRepos_RepoOp is a "repoOp" in the com.atproto.sync.subscribeRepos schema.

A repo operation, ie a mutation of a single record.

func (*SyncSubscribeRepos_RepoOp) MarshalCBOR

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

func (*SyncSubscribeRepos_RepoOp) UnmarshalCBOR

func (t *SyncSubscribeRepos_RepoOp) UnmarshalCBOR(r io.Reader) (err error)

type SyncSubscribeRepos_Tombstone

type SyncSubscribeRepos_Tombstone struct {
	Did  string `json:"did" cborgen:"did"`
	Seq  int64  `json:"seq" cborgen:"seq"`
	Time string `json:"time" cborgen:"time"`
}

SyncSubscribeRepos_Tombstone is a "tombstone" in the com.atproto.sync.subscribeRepos schema.

DEPRECATED -- Use #account event instead

func (*SyncSubscribeRepos_Tombstone) MarshalCBOR

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

func (*SyncSubscribeRepos_Tombstone) UnmarshalCBOR

func (t *SyncSubscribeRepos_Tombstone) UnmarshalCBOR(r io.Reader) (err error)

type TempCheckSignupQueue_Output

type TempCheckSignupQueue_Output struct {
	Activated       bool   `json:"activated" cborgen:"activated"`
	EstimatedTimeMs *int64 `json:"estimatedTimeMs,omitempty" cborgen:"estimatedTimeMs,omitempty"`
	PlaceInQueue    *int64 `json:"placeInQueue,omitempty" cborgen:"placeInQueue,omitempty"`
}

TempCheckSignupQueue_Output is the output of a com.atproto.temp.checkSignupQueue call.

func TempCheckSignupQueue

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

TempCheckSignupQueue calls the XRPC method "com.atproto.temp.checkSignupQueue".

type TempFetchLabels_Output

type TempFetchLabels_Output struct {
	Labels []*LabelDefs_Label `json:"labels" cborgen:"labels"`
}

TempFetchLabels_Output is the output of a com.atproto.temp.fetchLabels call.

func TempFetchLabels

func TempFetchLabels(ctx context.Context, c *xrpc.Client, limit int64, since int64) (*TempFetchLabels_Output, error)

TempFetchLabels calls the XRPC method "com.atproto.temp.fetchLabels".

type TempRequestPhoneVerification_Input

type TempRequestPhoneVerification_Input struct {
	PhoneNumber string `json:"phoneNumber" cborgen:"phoneNumber"`
}

TempRequestPhoneVerification_Input is the input argument to a com.atproto.temp.requestPhoneVerification call.

Source Files

Jump to

Keyboard shortcuts

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