porting all github actions from bluesky-social/indigo to tangled CI
at main 893 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package ozone 4 5// schema: tools.ozone.communication.listTemplates 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// CommunicationListTemplates_Output is the output of a tools.ozone.communication.listTemplates call. 14type CommunicationListTemplates_Output struct { 15 CommunicationTemplates []*CommunicationDefs_TemplateView `json:"communicationTemplates" cborgen:"communicationTemplates"` 16} 17 18// CommunicationListTemplates calls the XRPC method "tools.ozone.communication.listTemplates". 19func CommunicationListTemplates(ctx context.Context, c util.LexClient) (*CommunicationListTemplates_Output, error) { 20 var out CommunicationListTemplates_Output 21 if err := c.LexDo(ctx, util.Query, "", "tools.ozone.communication.listTemplates", nil, nil, &out); err != nil { 22 return nil, err 23 } 24 25 return &out, nil 26}