1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package atproto
4
5// schema: com.atproto.sync.listBlobs
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// SyncListBlobs_Output is the output of a com.atproto.sync.listBlobs call.
14type SyncListBlobs_Output struct {
15 Cids []string `json:"cids" cborgen:"cids"`
16 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
17}
18
19// SyncListBlobs calls the XRPC method "com.atproto.sync.listBlobs".
20//
21// did: The DID of the repo.
22// since: Optional revision of the repo to list blobs since.
23func SyncListBlobs(ctx context.Context, c util.LexClient, cursor string, did string, limit int64, since string) (*SyncListBlobs_Output, error) {
24 var out SyncListBlobs_Output
25
26 params := map[string]interface{}{}
27 if cursor != "" {
28 params["cursor"] = cursor
29 }
30 params["did"] = did
31 if limit != 0 {
32 params["limit"] = limit
33 }
34 if since != "" {
35 params["since"] = since
36 }
37 if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.listBlobs", params, nil, &out); err != nil {
38 return nil, err
39 }
40
41 return &out, nil
42}