porting all github actions from bluesky-social/indigo to tangled CI
at main 1.3 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package atproto 4 5// schema: com.atproto.sync.getRepoStatus 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// SyncGetRepoStatus_Output is the output of a com.atproto.sync.getRepoStatus call. 14type SyncGetRepoStatus_Output struct { 15 Active bool `json:"active" cborgen:"active"` 16 Did string `json:"did" cborgen:"did"` 17 // rev: Optional field, the current rev of the repo, if active=true 18 Rev *string `json:"rev,omitempty" cborgen:"rev,omitempty"` 19 // 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. 20 Status *string `json:"status,omitempty" cborgen:"status,omitempty"` 21} 22 23// SyncGetRepoStatus calls the XRPC method "com.atproto.sync.getRepoStatus". 24// 25// did: The DID of the repo. 26func SyncGetRepoStatus(ctx context.Context, c util.LexClient, did string) (*SyncGetRepoStatus_Output, error) { 27 var out SyncGetRepoStatus_Output 28 29 params := map[string]interface{}{} 30 params["did"] = did 31 if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getRepoStatus", params, nil, &out); err != nil { 32 return nil, err 33 } 34 35 return &out, nil 36}