Monorepo for Tangled tangled.org
1

Configure Feed

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

core / api / tangled / graphlistVouchesBy.go
1.3 kB 47 lines
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.graph.listVouchesBy 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 GraphListVouchesByNSID = "sh.tangled.graph.listVouchesBy" 15) 16 17// GraphListVouchesBy_Output is the output of a sh.tangled.graph.listVouchesBy call. 18type GraphListVouchesBy_Output struct { 19 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 20 Items []*GraphListVouches_ListItem `json:"items" cborgen:"items"` 21} 22 23// GraphListVouchesBy calls the XRPC method "sh.tangled.graph.listVouchesBy". 24// 25// cursor: Pagination cursor 26// order: Sort direction by createdAt. 27// subject: Actor DID whose vouch authorings to list. 28func GraphListVouchesBy(ctx context.Context, c util.LexClient, cursor string, limit int64, order string, subject string) (*GraphListVouchesBy_Output, error) { 29 var out GraphListVouchesBy_Output 30 31 params := map[string]interface{}{} 32 if cursor != "" { 33 params["cursor"] = cursor 34 } 35 if limit != 0 { 36 params["limit"] = limit 37 } 38 if order != "" { 39 params["order"] = order 40 } 41 params["subject"] = subject 42 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.graph.listVouchesBy", params, nil, &out); err != nil { 43 return nil, err 44 } 45 46 return &out, nil 47}