// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package chat // schema: chat.bsky.convo.updateAllRead import ( "context" "github.com/bluesky-social/indigo/xrpc" ) // ConvoUpdateAllRead_Input is the input argument to a chat.bsky.convo.updateAllRead call. type ConvoUpdateAllRead_Input struct { Status *string `json:"status,omitempty" cborgen:"status,omitempty"` } // ConvoUpdateAllRead_Output is the output of a chat.bsky.convo.updateAllRead call. type ConvoUpdateAllRead_Output struct { // updatedCount: The count of updated convos. UpdatedCount int64 `json:"updatedCount" cborgen:"updatedCount"` } // ConvoUpdateAllRead calls the XRPC method "chat.bsky.convo.updateAllRead". func ConvoUpdateAllRead(ctx context.Context, c *xrpc.Client, input *ConvoUpdateAllRead_Input) (*ConvoUpdateAllRead_Output, error) { var out ConvoUpdateAllRead_Output if err := c.Do(ctx, xrpc.Procedure, "application/json", "chat.bsky.convo.updateAllRead", nil, input, &out); err != nil { return nil, err } return &out, nil }