porting all github actions from bluesky-social/indigo to tangled CI
at main 1.2 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package ozone 4 5// schema: tools.ozone.safelink.addRule 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// SafelinkAddRule_Input is the input argument to a tools.ozone.safelink.addRule call. 14type SafelinkAddRule_Input struct { 15 Action *string `json:"action" cborgen:"action"` 16 // comment: Optional comment about the decision 17 Comment *string `json:"comment,omitempty" cborgen:"comment,omitempty"` 18 // createdBy: Author DID. Only respected when using admin auth 19 CreatedBy *string `json:"createdBy,omitempty" cborgen:"createdBy,omitempty"` 20 Pattern *string `json:"pattern" cborgen:"pattern"` 21 Reason *string `json:"reason" cborgen:"reason"` 22 // url: The URL or domain to apply the rule to 23 Url string `json:"url" cborgen:"url"` 24} 25 26// SafelinkAddRule calls the XRPC method "tools.ozone.safelink.addRule". 27func SafelinkAddRule(ctx context.Context, c util.LexClient, input *SafelinkAddRule_Input) (*SafelinkDefs_Event, error) { 28 var out SafelinkDefs_Event 29 if err := c.LexDo(ctx, util.Procedure, "application/json", "tools.ozone.safelink.addRule", nil, input, &out); err != nil { 30 return nil, err 31 } 32 33 return &out, nil 34}