fork of indigo with slightly nicer lexgen
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.setting.upsertOption 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// SettingUpsertOption_Input is the input argument to a tools.ozone.setting.upsertOption call. 14type SettingUpsertOption_Input struct { 15 Description *string `json:"description,omitempty" cborgen:"description,omitempty"` 16 Key string `json:"key" cborgen:"key"` 17 ManagerRole *string `json:"managerRole,omitempty" cborgen:"managerRole,omitempty"` 18 Scope string `json:"scope" cborgen:"scope"` 19 Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"` 20} 21 22// SettingUpsertOption_Output is the output of a tools.ozone.setting.upsertOption call. 23type SettingUpsertOption_Output struct { 24 Option *SettingDefs_Option `json:"option" cborgen:"option"` 25} 26 27// SettingUpsertOption calls the XRPC method "tools.ozone.setting.upsertOption". 28func SettingUpsertOption(ctx context.Context, c util.LexClient, input *SettingUpsertOption_Input) (*SettingUpsertOption_Output, error) { 29 var out SettingUpsertOption_Output 30 if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.setting.upsertOption", nil, input, &out); err != nil { 31 return nil, err 32 } 33 34 return &out, nil 35}