1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package atproto
4
5// schema: com.atproto.sync.getCheckout
6
7import (
8 "bytes"
9 "context"
10
11 "github.com/bluesky-social/indigo/lex/util"
12)
13
14// SyncGetCheckout calls the XRPC method "com.atproto.sync.getCheckout".
15//
16// did: The DID of the repo.
17func SyncGetCheckout(ctx context.Context, c util.LexClient, did string) ([]byte, error) {
18 buf := new(bytes.Buffer)
19
20 params := map[string]interface{}{}
21 params["did"] = did
22 if err := c.LexDo(ctx, util.Query, "", "com.atproto.sync.getCheckout", params, nil, buf); err != nil {
23 return nil, err
24 }
25
26 return buf.Bytes(), nil
27}