fork of indigo with slightly nicer lexgen
at main 785 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package bsky 4 5// schema: app.bsky.notification.putPreferences 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// NotificationPutPreferences_Input is the input argument to a app.bsky.notification.putPreferences call. 14type NotificationPutPreferences_Input struct { 15 Priority bool `json:"priority" cborgen:"priority"` 16} 17 18// NotificationPutPreferences calls the XRPC method "app.bsky.notification.putPreferences". 19func NotificationPutPreferences(ctx context.Context, c util.LexClient, input *NotificationPutPreferences_Input) error { 20 if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.notification.putPreferences", nil, input, nil); err != nil { 21 return err 22 } 23 24 return nil 25}