A fork of https://github.com/teal-fm/piper
at main 32 lines 1.0 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.updateRead 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// ConvoUpdateRead_Input is the input argument to a chat.bsky.convo.updateRead call. 14type ConvoUpdateRead_Input struct { 15 ConvoId string `json:"convoId" cborgen:"convoId"` 16 MessageId *string `json:"messageId,omitempty" cborgen:"messageId,omitempty"` 17} 18 19// ConvoUpdateRead_Output is the output of a chat.bsky.convo.updateRead call. 20type ConvoUpdateRead_Output struct { 21 Convo *ConvoDefs_ConvoView `json:"convo" cborgen:"convo"` 22} 23 24// ConvoUpdateRead calls the XRPC method "chat.bsky.convo.updateRead". 25func ConvoUpdateRead(ctx context.Context, c *xrpc.Client, input *ConvoUpdateRead_Input) (*ConvoUpdateRead_Output, error) { 26 var out ConvoUpdateRead_Output 27 if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.updateRead", nil, input, &out); err != nil { 28 return nil, err 29 } 30 31 return &out, nil 32}