fork of indigo with slightly nicer lexgen
at main 791 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.deleteTemplate 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// CommunicationDeleteTemplate_Input is the input argument to a tools.ozone.communication.deleteTemplate call. 14type CommunicationDeleteTemplate_Input struct { 15 Id string `json:"id" cborgen:"id"` 16} 17 18// CommunicationDeleteTemplate calls the XRPC method "tools.ozone.communication.deleteTemplate". 19func CommunicationDeleteTemplate(ctx context.Context, c util.LexClient, input *CommunicationDeleteTemplate_Input) error { 20 if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.communication.deleteTemplate", nil, input, nil); err != nil { 21 return err 22 } 23 24 return nil 25}