···12121313// ServerUpdateEmail_Input is the input argument to a com.atproto.server.updateEmail call.
1414type ServerUpdateEmail_Input struct {
1515- Email string `json:"email" cborgen:"email"`
1515+ Email string `json:"email" cborgen:"email"`
1616+ EmailAuthFactor *bool `json:"emailAuthFactor,omitempty" cborgen:"emailAuthFactor,omitempty"`
1617 // token: Requires a token from com.atproto.sever.requestEmailUpdate if the account's email has been confirmed.
1718 Token *string `json:"token,omitempty" cborgen:"token,omitempty"`
1819}
+37
api/atproto/syncgetRepoStatus.go
···11+// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
22+33+package atproto
44+55+// schema: com.atproto.sync.getRepoStatus
66+77+import (
88+ "context"
99+1010+ "github.com/bluesky-social/indigo/xrpc"
1111+)
1212+1313+// SyncGetRepoStatus_Output is the output of a com.atproto.sync.getRepoStatus call.
1414+type SyncGetRepoStatus_Output struct {
1515+ Active bool `json:"active" cborgen:"active"`
1616+ Did string `json:"did" cborgen:"did"`
1717+ // rev: Optional field, the current rev of the repo, if active=true
1818+ Rev *string `json:"rev,omitempty" cborgen:"rev,omitempty"`
1919+ // 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.
2020+ Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
2121+}
2222+2323+// SyncGetRepoStatus calls the XRPC method "com.atproto.sync.getRepoStatus".
2424+//
2525+// did: The DID of the repo.
2626+func SyncGetRepoStatus(ctx context.Context, c *xrpc.Client, did string) (*SyncGetRepoStatus_Output, error) {
2727+ var out SyncGetRepoStatus_Output
2828+2929+ params := map[string]interface{}{
3030+ "did": did,
3131+ }
3232+ if err := c.Do(ctx, xrpc.Query, "", "com.atproto.sync.getRepoStatus", params, nil, &out); err != nil {
3333+ return nil, err
3434+ }
3535+3636+ return &out, nil
3737+}
+4-1
api/atproto/synclistRepos.go
···18181919// SyncListRepos_Repo is a "repo" in the com.atproto.sync.listRepos schema.
2020type SyncListRepos_Repo struct {
2121- Did string `json:"did" cborgen:"did"`
2121+ Active *bool `json:"active,omitempty" cborgen:"active,omitempty"`
2222+ Did string `json:"did" cborgen:"did"`
2223 // head: Current repo commit CID
2324 Head string `json:"head" cborgen:"head"`
2425 Rev string `json:"rev" cborgen:"rev"`
2626+ // 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.
2727+ Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
2528}
26292730// SyncListRepos calls the XRPC method "com.atproto.sync.listRepos".
+21-6
api/atproto/syncsubscribeRepos.go
···88 "github.com/bluesky-social/indigo/lex/util"
99)
10101111+// SyncSubscribeRepos_Account is a "account" in the com.atproto.sync.subscribeRepos schema.
1212+//
1313+// 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.
1414+type SyncSubscribeRepos_Account struct {
1515+ // active: Indicates that the account has a repository which can be fetched from the host that emitted this event.
1616+ Active bool `json:"active" cborgen:"active"`
1717+ Did string `json:"did" cborgen:"did"`
1818+ Seq int64 `json:"seq" cborgen:"seq"`
1919+ // status: If active=false, this optional field indicates a reason for why the account is not active.
2020+ Status *string `json:"status,omitempty" cborgen:"status,omitempty"`
2121+ Time string `json:"time" cborgen:"time"`
2222+}
2323+1124// SyncSubscribeRepos_Commit is a "commit" in the com.atproto.sync.subscribeRepos schema.
1225//
1326// 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.
···38513952// SyncSubscribeRepos_Handle is a "handle" in the com.atproto.sync.subscribeRepos schema.
4053//
4141-// Represents an update of the account's handle, or transition to/from invalid state. NOTE: Will be deprecated in favor of #identity.
5454+// DEPRECATED -- Use #identity event instead
4255type SyncSubscribeRepos_Handle struct {
4356 Did string `json:"did" cborgen:"did"`
4457 Handle string `json:"handle" cborgen:"handle"`
···5063//
5164// 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.
5265type SyncSubscribeRepos_Identity struct {
5353- Did string `json:"did" cborgen:"did"`
5454- Seq int64 `json:"seq" cborgen:"seq"`
5555- Time string `json:"time" cborgen:"time"`
6666+ Did string `json:"did" cborgen:"did"`
6767+ // 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.
6868+ Handle *string `json:"handle,omitempty" cborgen:"handle,omitempty"`
6969+ Seq int64 `json:"seq" cborgen:"seq"`
7070+ Time string `json:"time" cborgen:"time"`
5671}
57725873// SyncSubscribeRepos_Info is a "info" in the com.atproto.sync.subscribeRepos schema.
···63786479// SyncSubscribeRepos_Migrate is a "migrate" in the com.atproto.sync.subscribeRepos schema.
6580//
6666-// Represents an account moving from one PDS instance to another. NOTE: not implemented; account migration uses #identity instead
8181+// DEPRECATED -- Use #account event instead
6782type SyncSubscribeRepos_Migrate struct {
6883 Did string `json:"did" cborgen:"did"`
6984 MigrateTo *string `json:"migrateTo" cborgen:"migrateTo"`
···83988499// SyncSubscribeRepos_Tombstone is a "tombstone" in the com.atproto.sync.subscribeRepos schema.
85100//
8686-// Indicates that an account has been deleted. NOTE: may be deprecated in favor of #identity or a future #account event
101101+// DEPRECATED -- Use #account event instead
87102type SyncSubscribeRepos_Tombstone struct {
88103 Did string `json:"did" cborgen:"did"`
89104 Seq int64 `json:"seq" cborgen:"seq"`