this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

update com.atproto lexgen (except for subscribeRepos)

+29 -8
+27
api/atproto/adminupdateAccountSigningKey.go
··· 1 + // Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 + 3 + package atproto 4 + 5 + // schema: com.atproto.admin.updateAccountSigningKey 6 + 7 + import ( 8 + "context" 9 + 10 + "github.com/bluesky-social/indigo/xrpc" 11 + ) 12 + 13 + // AdminUpdateAccountSigningKey_Input is the input argument to a com.atproto.admin.updateAccountSigningKey call. 14 + type AdminUpdateAccountSigningKey_Input struct { 15 + Did string `json:"did" cborgen:"did"` 16 + // signingKey: Did-key formatted public key 17 + SigningKey string `json:"signingKey" cborgen:"signingKey"` 18 + } 19 + 20 + // AdminUpdateAccountSigningKey calls the XRPC method "com.atproto.admin.updateAccountSigningKey". 21 + func AdminUpdateAccountSigningKey(ctx context.Context, c *xrpc.Client, input *AdminUpdateAccountSigningKey_Input) error { 22 + if err := c.Do(ctx, xrpc.Procedure, "application/json", "com.atproto.admin.updateAccountSigningKey", nil, input, nil); err != nil { 23 + return err 24 + } 25 + 26 + return nil 27 + }
+1 -5
api/atproto/repolistRecords.go
··· 30 30 // limit: The number of records to return. 31 31 // repo: The handle or DID of the repo. 32 32 // reverse: Flag to reverse the order of the returned records. 33 - // rkeyEnd: DEPRECATED: The highest sort-ordered rkey to stop at (exclusive) 34 - // rkeyStart: DEPRECATED: The lowest sort-ordered rkey to start from (exclusive) 35 - 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) { 33 + func RepoListRecords(ctx context.Context, c *xrpc.Client, collection string, cursor string, limit int64, repo string, reverse bool) (*RepoListRecords_Output, error) { 36 34 var out RepoListRecords_Output 37 35 38 36 params := map[string]interface{}{ ··· 41 39 "limit": limit, 42 40 "repo": repo, 43 41 "reverse": reverse, 44 - "rkeyEnd": rkeyEnd, 45 - "rkeyStart": rkeyStart, 46 42 } 47 43 if err := c.Do(ctx, xrpc.Query, "", "com.atproto.repo.listRecords", params, nil, &out); err != nil { 48 44 return nil, err
+1 -3
api/atproto/syncgetRecord.go
··· 13 13 14 14 // SyncGetRecord calls the XRPC method "com.atproto.sync.getRecord". 15 15 // 16 - // commit: DEPRECATED: referenced a repo commit by CID, and retrieved record as of that commit 17 16 // did: The DID of the repo. 18 17 // rkey: Record Key 19 - func SyncGetRecord(ctx context.Context, c *xrpc.Client, collection string, commit string, did string, rkey string) ([]byte, error) { 18 + func SyncGetRecord(ctx context.Context, c *xrpc.Client, collection string, did string, rkey string) ([]byte, error) { 20 19 buf := new(bytes.Buffer) 21 20 22 21 params := map[string]interface{}{ 23 22 "collection": collection, 24 - "commit": commit, 25 23 "did": did, 26 24 "rkey": rkey, 27 25 }