@atproto/api 0.15.12 → 0.15.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/client/index.d.ts +12 -6
  3. package/dist/client/index.d.ts.map +1 -1
  4. package/dist/client/index.js +20 -12
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/lexicons.d.ts +518 -100
  7. package/dist/client/lexicons.d.ts.map +1 -1
  8. package/dist/client/lexicons.js +277 -52
  9. package/dist/client/lexicons.js.map +1 -1
  10. package/dist/client/types/app/bsky/notification/defs.d.ts +40 -0
  11. package/dist/client/types/app/bsky/notification/defs.d.ts.map +1 -1
  12. package/dist/client/types/app/bsky/notification/defs.js +36 -0
  13. package/dist/client/types/app/bsky/notification/defs.js.map +1 -1
  14. package/dist/client/types/app/bsky/notification/getPreferences.d.ts +22 -0
  15. package/dist/client/types/app/bsky/notification/getPreferences.d.ts.map +1 -0
  16. package/dist/client/types/app/bsky/notification/getPreferences.js +11 -0
  17. package/dist/client/types/app/bsky/notification/getPreferences.js.map +1 -0
  18. package/dist/client/types/app/bsky/notification/putPreferencesV2.d.ts +38 -0
  19. package/dist/client/types/app/bsky/notification/putPreferencesV2.d.ts.map +1 -0
  20. package/dist/client/types/app/bsky/notification/putPreferencesV2.js +11 -0
  21. package/dist/client/types/app/bsky/notification/putPreferencesV2.js.map +1 -0
  22. package/dist/client/types/app/bsky/unspecced/{getPostThreadHiddenV2.d.ts → getPostThreadOtherV2.d.ts} +7 -7
  23. package/dist/client/types/app/bsky/unspecced/getPostThreadOtherV2.d.ts.map +1 -0
  24. package/dist/client/types/app/bsky/unspecced/getPostThreadOtherV2.js +20 -0
  25. package/dist/client/types/app/bsky/unspecced/getPostThreadOtherV2.js.map +1 -0
  26. package/dist/client/types/app/bsky/unspecced/getPostThreadV2.d.ts +2 -2
  27. package/dist/client/types/app/bsky/unspecced/getPostThreadV2.d.ts.map +1 -1
  28. package/package.json +1 -1
  29. package/src/client/index.ts +44 -16
  30. package/src/client/lexicons.ts +281 -54
  31. package/src/client/types/app/bsky/notification/defs.ts +76 -0
  32. package/src/client/types/app/bsky/notification/getPreferences.ts +40 -0
  33. package/src/client/types/app/bsky/notification/putPreferencesV2.ts +56 -0
  34. package/src/client/types/app/bsky/unspecced/{getPostThreadHiddenV2.ts → getPostThreadOtherV2.ts} +10 -10
  35. package/src/client/types/app/bsky/unspecced/getPostThreadV2.ts +2 -2
  36. package/tsconfig.build.tsbuildinfo +1 -1
  37. package/tsconfig.tests.tsbuildinfo +1 -1
  38. package/dist/client/types/app/bsky/unspecced/getPostThreadHiddenV2.d.ts.map +0 -1
  39. package/dist/client/types/app/bsky/unspecced/getPostThreadHiddenV2.js +0 -20
  40. package/dist/client/types/app/bsky/unspecced/getPostThreadHiddenV2.js.map +0 -1
@@ -7239,6 +7239,48 @@ export const schemaDict = {
7239
7239
  },
7240
7240
  },
7241
7241
  },
7242
+ AppBskyFeedGetPosts: {
7243
+ lexicon: 1,
7244
+ id: 'app.bsky.feed.getPosts',
7245
+ defs: {
7246
+ main: {
7247
+ type: 'query',
7248
+ description:
7249
+ "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
7250
+ parameters: {
7251
+ type: 'params',
7252
+ required: ['uris'],
7253
+ properties: {
7254
+ uris: {
7255
+ type: 'array',
7256
+ description: 'List of post AT-URIs to return hydrated views for.',
7257
+ items: {
7258
+ type: 'string',
7259
+ format: 'at-uri',
7260
+ },
7261
+ maxLength: 25,
7262
+ },
7263
+ },
7264
+ },
7265
+ output: {
7266
+ encoding: 'application/json',
7267
+ schema: {
7268
+ type: 'object',
7269
+ required: ['posts'],
7270
+ properties: {
7271
+ posts: {
7272
+ type: 'array',
7273
+ items: {
7274
+ type: 'ref',
7275
+ ref: 'lex:app.bsky.feed.defs#postView',
7276
+ },
7277
+ },
7278
+ },
7279
+ },
7280
+ },
7281
+ },
7282
+ },
7283
+ },
7242
7284
  AppBskyFeedGetPostThread: {
7243
7285
  lexicon: 1,
7244
7286
  id: 'app.bsky.feed.getPostThread',
@@ -7303,48 +7345,6 @@ export const schemaDict = {
7303
7345
  },
7304
7346
  },
7305
7347
  },
7306
- AppBskyFeedGetPosts: {
7307
- lexicon: 1,
7308
- id: 'app.bsky.feed.getPosts',
7309
- defs: {
7310
- main: {
7311
- type: 'query',
7312
- description:
7313
- "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
7314
- parameters: {
7315
- type: 'params',
7316
- required: ['uris'],
7317
- properties: {
7318
- uris: {
7319
- type: 'array',
7320
- description: 'List of post AT-URIs to return hydrated views for.',
7321
- items: {
7322
- type: 'string',
7323
- format: 'at-uri',
7324
- },
7325
- maxLength: 25,
7326
- },
7327
- },
7328
- },
7329
- output: {
7330
- encoding: 'application/json',
7331
- schema: {
7332
- type: 'object',
7333
- required: ['posts'],
7334
- properties: {
7335
- posts: {
7336
- type: 'array',
7337
- items: {
7338
- type: 'ref',
7339
- ref: 'lex:app.bsky.feed.defs#postView',
7340
- },
7341
- },
7342
- },
7343
- },
7344
- },
7345
- },
7346
- },
7347
- },
7348
7348
  AppBskyFeedGetQuotes: {
7349
7349
  lexicon: 1,
7350
7350
  id: 'app.bsky.feed.getQuotes',
@@ -9732,6 +9732,147 @@ export const schemaDict = {
9732
9732
  type: 'object',
9733
9733
  properties: {},
9734
9734
  },
9735
+ chatPreference: {
9736
+ type: 'object',
9737
+ required: ['filter', 'push'],
9738
+ properties: {
9739
+ filter: {
9740
+ type: 'string',
9741
+ knownValues: ['all', 'accepted'],
9742
+ },
9743
+ push: {
9744
+ type: 'boolean',
9745
+ },
9746
+ },
9747
+ },
9748
+ filterablePreference: {
9749
+ type: 'object',
9750
+ required: ['filter', 'list', 'push'],
9751
+ properties: {
9752
+ filter: {
9753
+ type: 'string',
9754
+ knownValues: ['all', 'follows'],
9755
+ },
9756
+ list: {
9757
+ type: 'boolean',
9758
+ },
9759
+ push: {
9760
+ type: 'boolean',
9761
+ },
9762
+ },
9763
+ },
9764
+ preference: {
9765
+ type: 'object',
9766
+ required: ['list', 'push'],
9767
+ properties: {
9768
+ list: {
9769
+ type: 'boolean',
9770
+ },
9771
+ push: {
9772
+ type: 'boolean',
9773
+ },
9774
+ },
9775
+ },
9776
+ preferences: {
9777
+ type: 'object',
9778
+ required: [
9779
+ 'chat',
9780
+ 'follow',
9781
+ 'like',
9782
+ 'likeViaRepost',
9783
+ 'mention',
9784
+ 'quote',
9785
+ 'reply',
9786
+ 'repost',
9787
+ 'repostViaRepost',
9788
+ 'starterpackJoined',
9789
+ 'subscribedPost',
9790
+ 'unverified',
9791
+ 'verified',
9792
+ ],
9793
+ properties: {
9794
+ chat: {
9795
+ type: 'ref',
9796
+ ref: 'lex:app.bsky.notification.defs#chatPreference',
9797
+ },
9798
+ follow: {
9799
+ type: 'ref',
9800
+ ref: 'lex:app.bsky.notification.defs#filterablePreference',
9801
+ },
9802
+ like: {
9803
+ type: 'ref',
9804
+ ref: 'lex:app.bsky.notification.defs#filterablePreference',
9805
+ },
9806
+ likeViaRepost: {
9807
+ type: 'ref',
9808
+ ref: 'lex:app.bsky.notification.defs#filterablePreference',
9809
+ },
9810
+ mention: {
9811
+ type: 'ref',
9812
+ ref: 'lex:app.bsky.notification.defs#filterablePreference',
9813
+ },
9814
+ quote: {
9815
+ type: 'ref',
9816
+ ref: 'lex:app.bsky.notification.defs#filterablePreference',
9817
+ },
9818
+ reply: {
9819
+ type: 'ref',
9820
+ ref: 'lex:app.bsky.notification.defs#filterablePreference',
9821
+ },
9822
+ repost: {
9823
+ type: 'ref',
9824
+ ref: 'lex:app.bsky.notification.defs#filterablePreference',
9825
+ },
9826
+ repostViaRepost: {
9827
+ type: 'ref',
9828
+ ref: 'lex:app.bsky.notification.defs#filterablePreference',
9829
+ },
9830
+ starterpackJoined: {
9831
+ type: 'ref',
9832
+ ref: 'lex:app.bsky.notification.defs#preference',
9833
+ },
9834
+ subscribedPost: {
9835
+ type: 'ref',
9836
+ ref: 'lex:app.bsky.notification.defs#preference',
9837
+ },
9838
+ unverified: {
9839
+ type: 'ref',
9840
+ ref: 'lex:app.bsky.notification.defs#preference',
9841
+ },
9842
+ verified: {
9843
+ type: 'ref',
9844
+ ref: 'lex:app.bsky.notification.defs#preference',
9845
+ },
9846
+ },
9847
+ },
9848
+ },
9849
+ },
9850
+ AppBskyNotificationGetPreferences: {
9851
+ lexicon: 1,
9852
+ id: 'app.bsky.notification.getPreferences',
9853
+ defs: {
9854
+ main: {
9855
+ type: 'query',
9856
+ description:
9857
+ 'Get notification-related preferences for an account. Requires auth.',
9858
+ parameters: {
9859
+ type: 'params',
9860
+ properties: {},
9861
+ },
9862
+ output: {
9863
+ encoding: 'application/json',
9864
+ schema: {
9865
+ type: 'object',
9866
+ required: ['preferences'],
9867
+ properties: {
9868
+ preferences: {
9869
+ type: 'ref',
9870
+ ref: 'lex:app.bsky.notification.defs#preferences',
9871
+ },
9872
+ },
9873
+ },
9874
+ },
9875
+ },
9735
9876
  },
9736
9877
  },
9737
9878
  AppBskyNotificationGetUnreadCount: {
@@ -9924,6 +10065,90 @@ export const schemaDict = {
9924
10065
  },
9925
10066
  },
9926
10067
  },
10068
+ AppBskyNotificationPutPreferencesV2: {
10069
+ lexicon: 1,
10070
+ id: 'app.bsky.notification.putPreferencesV2',
10071
+ defs: {
10072
+ main: {
10073
+ type: 'procedure',
10074
+ description:
10075
+ 'Set notification-related preferences for an account. Requires auth.',
10076
+ input: {
10077
+ encoding: 'application/json',
10078
+ schema: {
10079
+ type: 'object',
10080
+ properties: {
10081
+ chat: {
10082
+ type: 'ref',
10083
+ ref: 'lex:app.bsky.notification.defs#chatPreference',
10084
+ },
10085
+ follow: {
10086
+ type: 'ref',
10087
+ ref: 'lex:app.bsky.notification.defs#filterablePreference',
10088
+ },
10089
+ like: {
10090
+ type: 'ref',
10091
+ ref: 'lex:app.bsky.notification.defs#filterablePreference',
10092
+ },
10093
+ likeViaRepost: {
10094
+ type: 'ref',
10095
+ ref: 'lex:app.bsky.notification.defs#filterablePreference',
10096
+ },
10097
+ mention: {
10098
+ type: 'ref',
10099
+ ref: 'lex:app.bsky.notification.defs#filterablePreference',
10100
+ },
10101
+ quote: {
10102
+ type: 'ref',
10103
+ ref: 'lex:app.bsky.notification.defs#filterablePreference',
10104
+ },
10105
+ reply: {
10106
+ type: 'ref',
10107
+ ref: 'lex:app.bsky.notification.defs#filterablePreference',
10108
+ },
10109
+ repost: {
10110
+ type: 'ref',
10111
+ ref: 'lex:app.bsky.notification.defs#filterablePreference',
10112
+ },
10113
+ repostViaRepost: {
10114
+ type: 'ref',
10115
+ ref: 'lex:app.bsky.notification.defs#filterablePreference',
10116
+ },
10117
+ starterpackJoined: {
10118
+ type: 'ref',
10119
+ ref: 'lex:app.bsky.notification.defs#preference',
10120
+ },
10121
+ subscribedPost: {
10122
+ type: 'ref',
10123
+ ref: 'lex:app.bsky.notification.defs#preference',
10124
+ },
10125
+ unverified: {
10126
+ type: 'ref',
10127
+ ref: 'lex:app.bsky.notification.defs#preference',
10128
+ },
10129
+ verified: {
10130
+ type: 'ref',
10131
+ ref: 'lex:app.bsky.notification.defs#preference',
10132
+ },
10133
+ },
10134
+ },
10135
+ },
10136
+ output: {
10137
+ encoding: 'application/json',
10138
+ schema: {
10139
+ type: 'object',
10140
+ required: ['preferences'],
10141
+ properties: {
10142
+ preferences: {
10143
+ type: 'ref',
10144
+ ref: 'lex:app.bsky.notification.defs#preferences',
10145
+ },
10146
+ },
10147
+ },
10148
+ },
10149
+ },
10150
+ },
10151
+ },
9927
10152
  AppBskyNotificationRegisterPush: {
9928
10153
  lexicon: 1,
9929
10154
  id: 'app.bsky.notification.registerPush',
@@ -10354,14 +10579,14 @@ export const schemaDict = {
10354
10579
  },
10355
10580
  },
10356
10581
  },
10357
- AppBskyUnspeccedGetPostThreadHiddenV2: {
10582
+ AppBskyUnspeccedGetPostThreadOtherV2: {
10358
10583
  lexicon: 1,
10359
- id: 'app.bsky.unspecced.getPostThreadHiddenV2',
10584
+ id: 'app.bsky.unspecced.getPostThreadOtherV2',
10360
10585
  defs: {
10361
10586
  main: {
10362
10587
  type: 'query',
10363
10588
  description:
10364
- "(NOTE: this endpoint is under development and WILL change without notice. Don't use it until it is moved out of `unspecced` or your application WILL break) Get the hidden posts in a thread. It is based in an anchor post at any depth of the tree, and returns hidden replies (recursive replies, with branching to their replies) below the anchor. It does not include ancestors nor the anchor. This should be called after exhausting `app.bsky.unspecced.getPostThreadV2`. Does not require auth, but additional metadata and filtering will be applied for authed requests.",
10589
+ "(NOTE: this endpoint is under development and WILL change without notice. Don't use it until it is moved out of `unspecced` or your application WILL break) Get additional posts under a thread e.g. replies hidden by threadgate. Based on an anchor post at any depth of the tree, returns top-level replies below that anchor. It does not include ancestors nor the anchor itself. This should be called after exhausting `app.bsky.unspecced.getPostThreadV2`. Does not require auth, but additional metadata and filtering will be applied for authed requests.",
10365
10590
  parameters: {
10366
10591
  type: 'params',
10367
10592
  required: ['anchor'],
@@ -10389,17 +10614,17 @@ export const schemaDict = {
10389
10614
  thread: {
10390
10615
  type: 'array',
10391
10616
  description:
10392
- 'A flat list of hidden thread items. The depth of each item is indicated by the depth property inside the item.',
10617
+ 'A flat list of other thread items. The depth of each item is indicated by the depth property inside the item.',
10393
10618
  items: {
10394
10619
  type: 'ref',
10395
- ref: 'lex:app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItem',
10620
+ ref: 'lex:app.bsky.unspecced.getPostThreadOtherV2#threadItem',
10396
10621
  },
10397
10622
  },
10398
10623
  },
10399
10624
  },
10400
10625
  },
10401
10626
  },
10402
- threadHiddenItem: {
10627
+ threadItem: {
10403
10628
  type: 'object',
10404
10629
  required: ['uri', 'depth', 'value'],
10405
10630
  properties: {
@@ -10477,7 +10702,7 @@ export const schemaDict = {
10477
10702
  encoding: 'application/json',
10478
10703
  schema: {
10479
10704
  type: 'object',
10480
- required: ['thread', 'hasHiddenReplies'],
10705
+ required: ['thread', 'hasOtherReplies'],
10481
10706
  properties: {
10482
10707
  thread: {
10483
10708
  type: 'array',
@@ -10492,10 +10717,10 @@ export const schemaDict = {
10492
10717
  type: 'ref',
10493
10718
  ref: 'lex:app.bsky.feed.defs#threadgateView',
10494
10719
  },
10495
- hasHiddenReplies: {
10720
+ hasOtherReplies: {
10496
10721
  type: 'boolean',
10497
10722
  description:
10498
- 'Whether this thread has hidden replies. If true, a call can be made to the `getPostThreadHiddenV2` endpoint to retrieve them.',
10723
+ 'Whether this thread has additional replies. If true, a call can be made to the `getPostThreadOtherV2` endpoint to retrieve them.',
10499
10724
  },
10500
10725
  },
10501
10726
  },
@@ -16510,8 +16735,8 @@ export const ids = {
16510
16735
  AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton',
16511
16736
  AppBskyFeedGetLikes: 'app.bsky.feed.getLikes',
16512
16737
  AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed',
16513
- AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
16514
16738
  AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
16739
+ AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
16515
16740
  AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes',
16516
16741
  AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
16517
16742
  AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds',
@@ -16557,10 +16782,12 @@ export const ids = {
16557
16782
  AppBskyLabelerGetServices: 'app.bsky.labeler.getServices',
16558
16783
  AppBskyLabelerService: 'app.bsky.labeler.service',
16559
16784
  AppBskyNotificationDefs: 'app.bsky.notification.defs',
16785
+ AppBskyNotificationGetPreferences: 'app.bsky.notification.getPreferences',
16560
16786
  AppBskyNotificationGetUnreadCount: 'app.bsky.notification.getUnreadCount',
16561
16787
  AppBskyNotificationListNotifications:
16562
16788
  'app.bsky.notification.listNotifications',
16563
16789
  AppBskyNotificationPutPreferences: 'app.bsky.notification.putPreferences',
16790
+ AppBskyNotificationPutPreferencesV2: 'app.bsky.notification.putPreferencesV2',
16564
16791
  AppBskyNotificationRegisterPush: 'app.bsky.notification.registerPush',
16565
16792
  AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',
16566
16793
  AppBskyRichtextFacet: 'app.bsky.richtext.facet',
@@ -16568,8 +16795,8 @@ export const ids = {
16568
16795
  AppBskyUnspeccedGetConfig: 'app.bsky.unspecced.getConfig',
16569
16796
  AppBskyUnspeccedGetPopularFeedGenerators:
16570
16797
  'app.bsky.unspecced.getPopularFeedGenerators',
16571
- AppBskyUnspeccedGetPostThreadHiddenV2:
16572
- 'app.bsky.unspecced.getPostThreadHiddenV2',
16798
+ AppBskyUnspeccedGetPostThreadOtherV2:
16799
+ 'app.bsky.unspecced.getPostThreadOtherV2',
16573
16800
  AppBskyUnspeccedGetPostThreadV2: 'app.bsky.unspecced.getPostThreadV2',
16574
16801
  AppBskyUnspeccedGetSuggestedFeeds: 'app.bsky.unspecced.getSuggestedFeeds',
16575
16802
  AppBskyUnspeccedGetSuggestedFeedsSkeleton:
@@ -27,3 +27,79 @@ export function isRecordDeleted<V>(v: V) {
27
27
  export function validateRecordDeleted<V>(v: V) {
28
28
  return validate<RecordDeleted & V>(v, id, hashRecordDeleted)
29
29
  }
30
+
31
+ export interface ChatPreference {
32
+ $type?: 'app.bsky.notification.defs#chatPreference'
33
+ filter: 'all' | 'accepted' | (string & {})
34
+ push: boolean
35
+ }
36
+
37
+ const hashChatPreference = 'chatPreference'
38
+
39
+ export function isChatPreference<V>(v: V) {
40
+ return is$typed(v, id, hashChatPreference)
41
+ }
42
+
43
+ export function validateChatPreference<V>(v: V) {
44
+ return validate<ChatPreference & V>(v, id, hashChatPreference)
45
+ }
46
+
47
+ export interface FilterablePreference {
48
+ $type?: 'app.bsky.notification.defs#filterablePreference'
49
+ filter: 'all' | 'follows' | (string & {})
50
+ list: boolean
51
+ push: boolean
52
+ }
53
+
54
+ const hashFilterablePreference = 'filterablePreference'
55
+
56
+ export function isFilterablePreference<V>(v: V) {
57
+ return is$typed(v, id, hashFilterablePreference)
58
+ }
59
+
60
+ export function validateFilterablePreference<V>(v: V) {
61
+ return validate<FilterablePreference & V>(v, id, hashFilterablePreference)
62
+ }
63
+
64
+ export interface Preference {
65
+ $type?: 'app.bsky.notification.defs#preference'
66
+ list: boolean
67
+ push: boolean
68
+ }
69
+
70
+ const hashPreference = 'preference'
71
+
72
+ export function isPreference<V>(v: V) {
73
+ return is$typed(v, id, hashPreference)
74
+ }
75
+
76
+ export function validatePreference<V>(v: V) {
77
+ return validate<Preference & V>(v, id, hashPreference)
78
+ }
79
+
80
+ export interface Preferences {
81
+ $type?: 'app.bsky.notification.defs#preferences'
82
+ chat: ChatPreference
83
+ follow: FilterablePreference
84
+ like: FilterablePreference
85
+ likeViaRepost: FilterablePreference
86
+ mention: FilterablePreference
87
+ quote: FilterablePreference
88
+ reply: FilterablePreference
89
+ repost: FilterablePreference
90
+ repostViaRepost: FilterablePreference
91
+ starterpackJoined: Preference
92
+ subscribedPost: Preference
93
+ unverified: Preference
94
+ verified: Preference
95
+ }
96
+
97
+ const hashPreferences = 'preferences'
98
+
99
+ export function isPreferences<V>(v: V) {
100
+ return is$typed(v, id, hashPreferences)
101
+ }
102
+
103
+ export function validatePreferences<V>(v: V) {
104
+ return validate<Preferences & V>(v, id, hashPreferences)
105
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import {
9
+ type $Typed,
10
+ is$typed as _is$typed,
11
+ type OmitKey,
12
+ } from '../../../../util'
13
+ import type * as AppBskyNotificationDefs from './defs.js'
14
+
15
+ const is$typed = _is$typed,
16
+ validate = _validate
17
+ const id = 'app.bsky.notification.getPreferences'
18
+
19
+ export interface QueryParams {}
20
+
21
+ export type InputSchema = undefined
22
+
23
+ export interface OutputSchema {
24
+ preferences: AppBskyNotificationDefs.Preferences
25
+ }
26
+
27
+ export interface CallOptions {
28
+ signal?: AbortSignal
29
+ headers?: HeadersMap
30
+ }
31
+
32
+ export interface Response {
33
+ success: boolean
34
+ headers: HeadersMap
35
+ data: OutputSchema
36
+ }
37
+
38
+ export function toKnownErr(e: any) {
39
+ return e
40
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { HeadersMap, XRPCError } from '@atproto/xrpc'
5
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
6
+ import { CID } from 'multiformats/cid'
7
+ import { validate as _validate } from '../../../../lexicons'
8
+ import {
9
+ type $Typed,
10
+ is$typed as _is$typed,
11
+ type OmitKey,
12
+ } from '../../../../util'
13
+ import type * as AppBskyNotificationDefs from './defs.js'
14
+
15
+ const is$typed = _is$typed,
16
+ validate = _validate
17
+ const id = 'app.bsky.notification.putPreferencesV2'
18
+
19
+ export interface QueryParams {}
20
+
21
+ export interface InputSchema {
22
+ chat?: AppBskyNotificationDefs.ChatPreference
23
+ follow?: AppBskyNotificationDefs.FilterablePreference
24
+ like?: AppBskyNotificationDefs.FilterablePreference
25
+ likeViaRepost?: AppBskyNotificationDefs.FilterablePreference
26
+ mention?: AppBskyNotificationDefs.FilterablePreference
27
+ quote?: AppBskyNotificationDefs.FilterablePreference
28
+ reply?: AppBskyNotificationDefs.FilterablePreference
29
+ repost?: AppBskyNotificationDefs.FilterablePreference
30
+ repostViaRepost?: AppBskyNotificationDefs.FilterablePreference
31
+ starterpackJoined?: AppBskyNotificationDefs.Preference
32
+ subscribedPost?: AppBskyNotificationDefs.Preference
33
+ unverified?: AppBskyNotificationDefs.Preference
34
+ verified?: AppBskyNotificationDefs.Preference
35
+ }
36
+
37
+ export interface OutputSchema {
38
+ preferences: AppBskyNotificationDefs.Preferences
39
+ }
40
+
41
+ export interface CallOptions {
42
+ signal?: AbortSignal
43
+ headers?: HeadersMap
44
+ qp?: QueryParams
45
+ encoding?: 'application/json'
46
+ }
47
+
48
+ export interface Response {
49
+ success: boolean
50
+ headers: HeadersMap
51
+ data: OutputSchema
52
+ }
53
+
54
+ export function toKnownErr(e: any) {
55
+ return e
56
+ }
@@ -14,7 +14,7 @@ import type * as AppBskyUnspeccedDefs from './defs.js'
14
14
 
15
15
  const is$typed = _is$typed,
16
16
  validate = _validate
17
- const id = 'app.bsky.unspecced.getPostThreadHiddenV2'
17
+ const id = 'app.bsky.unspecced.getPostThreadOtherV2'
18
18
 
19
19
  export interface QueryParams {
20
20
  /** Reference (AT-URI) to post record. This is the anchor post. */
@@ -26,8 +26,8 @@ export interface QueryParams {
26
26
  export type InputSchema = undefined
27
27
 
28
28
  export interface OutputSchema {
29
- /** A flat list of hidden thread items. The depth of each item is indicated by the depth property inside the item. */
30
- thread: ThreadHiddenItem[]
29
+ /** A flat list of other thread items. The depth of each item is indicated by the depth property inside the item. */
30
+ thread: ThreadItem[]
31
31
  }
32
32
 
33
33
  export interface CallOptions {
@@ -45,20 +45,20 @@ export function toKnownErr(e: any) {
45
45
  return e
46
46
  }
47
47
 
48
- export interface ThreadHiddenItem {
49
- $type?: 'app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItem'
48
+ export interface ThreadItem {
49
+ $type?: 'app.bsky.unspecced.getPostThreadOtherV2#threadItem'
50
50
  uri: string
51
51
  /** The nesting level of this item in the thread. Depth 0 means the anchor item. Items above have negative depths, items below have positive depths. */
52
52
  depth: number
53
53
  value: $Typed<AppBskyUnspeccedDefs.ThreadItemPost> | { $type: string }
54
54
  }
55
55
 
56
- const hashThreadHiddenItem = 'threadHiddenItem'
56
+ const hashThreadItem = 'threadItem'
57
57
 
58
- export function isThreadHiddenItem<V>(v: V) {
59
- return is$typed(v, id, hashThreadHiddenItem)
58
+ export function isThreadItem<V>(v: V) {
59
+ return is$typed(v, id, hashThreadItem)
60
60
  }
61
61
 
62
- export function validateThreadHiddenItem<V>(v: V) {
63
- return validate<ThreadHiddenItem & V>(v, id, hashThreadHiddenItem)
62
+ export function validateThreadItem<V>(v: V) {
63
+ return validate<ThreadItem & V>(v, id, hashThreadItem)
64
64
  }
@@ -38,8 +38,8 @@ export interface OutputSchema {
38
38
  /** A flat list of thread items. The depth of each item is indicated by the depth property inside the item. */
39
39
  thread: ThreadItem[]
40
40
  threadgate?: AppBskyFeedDefs.ThreadgateView
41
- /** Whether this thread has hidden replies. If true, a call can be made to the `getPostThreadHiddenV2` endpoint to retrieve them. */
42
- hasHiddenReplies: boolean
41
+ /** Whether this thread has additional replies. If true, a call can be made to the `getPostThreadOtherV2` endpoint to retrieve them. */
42
+ hasOtherReplies: boolean
43
43
  }
44
44
 
45
45
  export interface CallOptions {