1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.notification.getPreferences
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// NotificationGetPreferences_Output is the output of a app.bsky.notification.getPreferences call.
14type NotificationGetPreferences_Output struct {
15 Preferences *NotificationDefs_Preferences `json:"preferences" cborgen:"preferences"`
16}
17
18// NotificationGetPreferences calls the XRPC method "app.bsky.notification.getPreferences".
19func NotificationGetPreferences(ctx context.Context, c util.LexClient) (*NotificationGetPreferences_Output, error) {
20 var out NotificationGetPreferences_Output
21
22 params := map[string]interface{}{}
23 if err := c.LexDo(ctx, util.Query, "", "app.bsky.notification.getPreferences", params, nil, &out); err != nil {
24 return nil, err
25 }
26
27 return &out, nil
28}