1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.notification.putPreferencesV2
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// NotificationPutPreferencesV2_Input is the input argument to a app.bsky.notification.putPreferencesV2 call.
14type NotificationPutPreferencesV2_Input struct {
15 Chat *NotificationDefs_ChatPreference `json:"chat,omitempty" cborgen:"chat,omitempty"`
16 Follow *NotificationDefs_FilterablePreference `json:"follow,omitempty" cborgen:"follow,omitempty"`
17 Like *NotificationDefs_FilterablePreference `json:"like,omitempty" cborgen:"like,omitempty"`
18 LikeViaRepost *NotificationDefs_FilterablePreference `json:"likeViaRepost,omitempty" cborgen:"likeViaRepost,omitempty"`
19 Mention *NotificationDefs_FilterablePreference `json:"mention,omitempty" cborgen:"mention,omitempty"`
20 Quote *NotificationDefs_FilterablePreference `json:"quote,omitempty" cborgen:"quote,omitempty"`
21 Reply *NotificationDefs_FilterablePreference `json:"reply,omitempty" cborgen:"reply,omitempty"`
22 Repost *NotificationDefs_FilterablePreference `json:"repost,omitempty" cborgen:"repost,omitempty"`
23 RepostViaRepost *NotificationDefs_FilterablePreference `json:"repostViaRepost,omitempty" cborgen:"repostViaRepost,omitempty"`
24 StarterpackJoined *NotificationDefs_Preference `json:"starterpackJoined,omitempty" cborgen:"starterpackJoined,omitempty"`
25 SubscribedPost *NotificationDefs_Preference `json:"subscribedPost,omitempty" cborgen:"subscribedPost,omitempty"`
26 Unverified *NotificationDefs_Preference `json:"unverified,omitempty" cborgen:"unverified,omitempty"`
27 Verified *NotificationDefs_Preference `json:"verified,omitempty" cborgen:"verified,omitempty"`
28}
29
30// NotificationPutPreferencesV2_Output is the output of a app.bsky.notification.putPreferencesV2 call.
31type NotificationPutPreferencesV2_Output struct {
32 Preferences *NotificationDefs_Preferences `json:"preferences" cborgen:"preferences"`
33}
34
35// NotificationPutPreferencesV2 calls the XRPC method "app.bsky.notification.putPreferencesV2".
36func NotificationPutPreferencesV2(ctx context.Context, c util.LexClient, input *NotificationPutPreferencesV2_Input) (*NotificationPutPreferencesV2_Output, error) {
37 var out NotificationPutPreferencesV2_Output
38 if err := c.LexDo(ctx, util.Procedure, "application/json", "app.bsky.notification.putPreferencesV2", nil, input, &out); err != nil {
39 return nil, err
40 }
41
42 return &out, nil
43}