porting all github actions from bluesky-social/indigo to tangled CI
at main 1.1 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package chat 4 5// schema: chat.bsky.convo.listConvos 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// ConvoListConvos_Output is the output of a chat.bsky.convo.listConvos call. 14type ConvoListConvos_Output struct { 15 Convos []*ConvoDefs_ConvoView `json:"convos" cborgen:"convos"` 16 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 17} 18 19// ConvoListConvos calls the XRPC method "chat.bsky.convo.listConvos". 20func ConvoListConvos(ctx context.Context, c util.LexClient, cursor string, limit int64, readState string, status string) (*ConvoListConvos_Output, error) { 21 var out ConvoListConvos_Output 22 23 params := map[string]interface{}{} 24 if cursor != "" { 25 params["cursor"] = cursor 26 } 27 if limit != 0 { 28 params["limit"] = limit 29 } 30 if readState != "" { 31 params["readState"] = readState 32 } 33 if status != "" { 34 params["status"] = status 35 } 36 if err := c.LexDo(ctx, util.Query, "", "chat.bsky.convo.listConvos", params, nil, &out); err != nil { 37 return nil, err 38 } 39 40 return &out, nil 41}