// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package tangled // schema: sh.tangled.graph.listNetworkVouches import ( "context" "github.com/bluesky-social/indigo/lex/util" ) const ( GraphListNetworkVouchesNSID = "sh.tangled.graph.listNetworkVouches" ) // GraphListNetworkVouches_ListItem is a "listItem" in the sh.tangled.graph.listNetworkVouches schema. type GraphListNetworkVouches_ListItem struct { // actor: The requested actor this vouch involves. Actor string `json:"actor" cborgen:"actor"` Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` Uri string `json:"uri" cborgen:"uri"` // value: Embedded sh.tangled.graph.vouch record Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"` } // GraphListNetworkVouches_Output is the output of a sh.tangled.graph.listNetworkVouches call. type GraphListNetworkVouches_Output struct { Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` Items []*GraphListNetworkVouches_ListItem `json:"items" cborgen:"items"` } // GraphListNetworkVouches calls the XRPC method "sh.tangled.graph.listNetworkVouches". // // actors: DIDs of the profiles whose network vouches to list. At most 50 per request. // cursor: Pagination cursor. Only accepted when a single actor is requested. // limit: Maximum number of vouches per actor. func GraphListNetworkVouches(ctx context.Context, c util.LexClient, actors []string, cursor string, limit int64) (*GraphListNetworkVouches_Output, error) { var out GraphListNetworkVouches_Output params := map[string]interface{}{} params["actors"] = actors if cursor != "" { params["cursor"] = cursor } if limit != 0 { params["limit"] = limit } if err := c.LexDo(ctx, util.Query, "", "sh.tangled.graph.listNetworkVouches", params, nil, &out); err != nil { return nil, err } return &out, nil }