[WIP] music platform user data scraper
teal-fm atproto
at main 1.4 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package ozone 4 5// schema: tools.ozone.communication.createTemplate 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// CommunicationCreateTemplate_Input is the input argument to a tools.ozone.communication.createTemplate call. 14type CommunicationCreateTemplate_Input struct { 15 // contentMarkdown: Content of the template, markdown supported, can contain variable placeholders. 16 ContentMarkdown string `json:"contentMarkdown" cborgen:"contentMarkdown"` 17 // createdBy: DID of the user who is creating the template. 18 CreatedBy *string `json:"createdBy,omitempty" cborgen:"createdBy,omitempty"` 19 // lang: Message language. 20 Lang *string `json:"lang,omitempty" cborgen:"lang,omitempty"` 21 // name: Name of the template. 22 Name string `json:"name" cborgen:"name"` 23 // subject: Subject of the message, used in emails. 24 Subject string `json:"subject" cborgen:"subject"` 25} 26 27// CommunicationCreateTemplate calls the XRPC method "tools.ozone.communication.createTemplate". 28func CommunicationCreateTemplate(ctx context.Context, c *xrpc.Client, input *CommunicationCreateTemplate_Input) (*CommunicationDefs_TemplateView, error) { 29 var out CommunicationDefs_TemplateView 30 if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.communication.createTemplate", nil, input, &out); err != nil { 31 return nil, err 32 } 33 34 return &out, nil 35}