fork of indigo with slightly nicer lexgen
at main 731 B view raw
1// Copied from indigo:api/bsky/actorputPreferences.go 2 3package agnostic 4 5// schema: app.bsky.actor.putPreferences 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// ActorPutPreferences_Input is the input argument to a app.bsky.actor.putPreferences call. 14type ActorPutPreferences_Input struct { 15 Preferences []map[string]any `json:"preferences" cborgen:"preferences"` 16} 17 18// ActorPutPreferences calls the XRPC method "app.bsky.actor.putPreferences". 19func ActorPutPreferences(ctx context.Context, c util.LexClient, input *ActorPutPreferences_Input) error { 20 if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.actor.putPreferences", nil, input, nil); err != nil { 21 return err 22 } 23 24 return nil 25}