forked from bluesky-social/indigo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommunicationupdateTemplate.go
36 lines (29 loc) · 1.51 KB
/
communicationupdateTemplate.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package ozone
// schema: tools.ozone.communication.updateTemplate
import (
"context"
"github.com/bluesky-social/indigo/xrpc"
)
// CommunicationUpdateTemplate_Input is the input argument to a tools.ozone.communication.updateTemplate call.
type CommunicationUpdateTemplate_Input struct {
// contentMarkdown: Content of the template, markdown supported, can contain variable placeholders.
ContentMarkdown *string `json:"contentMarkdown,omitempty" cborgen:"contentMarkdown,omitempty"`
Disabled *bool `json:"disabled,omitempty" cborgen:"disabled,omitempty"`
// id: ID of the template to be updated.
Id string `json:"id" cborgen:"id"`
// name: Name of the template.
Name *string `json:"name,omitempty" cborgen:"name,omitempty"`
// subject: Subject of the message, used in emails.
Subject *string `json:"subject,omitempty" cborgen:"subject,omitempty"`
// updatedBy: DID of the user who is updating the template.
UpdatedBy *string `json:"updatedBy,omitempty" cborgen:"updatedBy,omitempty"`
}
// CommunicationUpdateTemplate calls the XRPC method "tools.ozone.communication.updateTemplate".
func CommunicationUpdateTemplate(ctx context.Context, c *xrpc.Client, input *CommunicationUpdateTemplate_Input) (*CommunicationDefs_TemplateView, error) {
var out CommunicationDefs_TemplateView
if err := c.Do(ctx, xrpc.Procedure, "application/json", "tools.ozone.communication.updateTemplate", nil, input, &out); err != nil {
return nil, err
}
return &out, nil
}