@atproto/pds 0.4.144 → 0.4.146
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.
- package/CHANGELOG.md +20 -0
- package/dist/auth-verifier.d.ts.map +1 -1
- package/dist/auth-verifier.js +10 -1
- package/dist/auth-verifier.js.map +1 -1
- package/dist/lexicon/index.d.ts +8 -4
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +14 -6
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +518 -100
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +277 -52
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/defs.d.ts +40 -0
- package/dist/lexicon/types/app/bsky/notification/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/defs.js +36 -0
- package/dist/lexicon/types/app/bsky/notification/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/getPreferences.d.ts +35 -0
- package/dist/lexicon/types/app/bsky/notification/getPreferences.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/notification/getPreferences.js +7 -0
- package/dist/lexicon/types/app/bsky/notification/getPreferences.js.map +1 -0
- package/dist/lexicon/types/app/bsky/notification/putPreferencesV2.d.ts +52 -0
- package/dist/lexicon/types/app/bsky/notification/putPreferencesV2.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/notification/putPreferencesV2.js +7 -0
- package/dist/lexicon/types/app/bsky/notification/putPreferencesV2.js.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/{getPostThreadHiddenV2.d.ts → getPostThreadOtherV2.d.ts} +7 -7
- package/dist/lexicon/types/app/bsky/unspecced/getPostThreadOtherV2.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/getPostThreadOtherV2.js +16 -0
- package/dist/lexicon/types/app/bsky/unspecced/getPostThreadOtherV2.js.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/getPostThreadV2.d.ts +2 -2
- package/dist/lexicon/types/app/bsky/unspecced/getPostThreadV2.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/auth-verifier.ts +20 -6
- package/src/lexicon/index.ts +38 -14
- package/src/lexicon/lexicons.ts +281 -54
- package/src/lexicon/types/app/bsky/notification/defs.ts +76 -0
- package/src/lexicon/types/app/bsky/notification/getPreferences.ts +52 -0
- package/src/lexicon/types/app/bsky/notification/putPreferencesV2.ts +69 -0
- package/src/lexicon/types/app/bsky/unspecced/{getPostThreadHiddenV2.ts → getPostThreadOtherV2.ts} +10 -10
- package/src/lexicon/types/app/bsky/unspecced/getPostThreadV2.ts +2 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.d.ts.map +0 -1
- package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.js +0 -16
- package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.js.map +0 -1
package/src/lexicon/lexicons.ts
CHANGED
@@ -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
|
-
|
10582
|
+
AppBskyUnspeccedGetPostThreadOtherV2: {
|
10358
10583
|
lexicon: 1,
|
10359
|
-
id: 'app.bsky.unspecced.
|
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
|
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
|
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.
|
10620
|
+
ref: 'lex:app.bsky.unspecced.getPostThreadOtherV2#threadItem',
|
10396
10621
|
},
|
10397
10622
|
},
|
10398
10623
|
},
|
10399
10624
|
},
|
10400
10625
|
},
|
10401
10626
|
},
|
10402
|
-
|
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', '
|
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
|
-
|
10720
|
+
hasOtherReplies: {
|
10496
10721
|
type: 'boolean',
|
10497
10722
|
description:
|
10498
|
-
'Whether this thread has
|
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
|
-
|
16572
|
-
'app.bsky.unspecced.
|
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,52 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
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 { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
14
|
+
import type * as AppBskyNotificationDefs from './defs.js'
|
15
|
+
|
16
|
+
const is$typed = _is$typed,
|
17
|
+
validate = _validate
|
18
|
+
const id = 'app.bsky.notification.getPreferences'
|
19
|
+
|
20
|
+
export interface QueryParams {}
|
21
|
+
|
22
|
+
export type InputSchema = undefined
|
23
|
+
|
24
|
+
export interface OutputSchema {
|
25
|
+
preferences: AppBskyNotificationDefs.Preferences
|
26
|
+
}
|
27
|
+
|
28
|
+
export type HandlerInput = undefined
|
29
|
+
|
30
|
+
export interface HandlerSuccess {
|
31
|
+
encoding: 'application/json'
|
32
|
+
body: OutputSchema
|
33
|
+
headers?: { [key: string]: string }
|
34
|
+
}
|
35
|
+
|
36
|
+
export interface HandlerError {
|
37
|
+
status: number
|
38
|
+
message?: string
|
39
|
+
}
|
40
|
+
|
41
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
42
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
43
|
+
auth: HA
|
44
|
+
params: QueryParams
|
45
|
+
input: HandlerInput
|
46
|
+
req: express.Request
|
47
|
+
res: express.Response
|
48
|
+
resetRouteRateLimits: () => Promise<void>
|
49
|
+
}
|
50
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
51
|
+
ctx: HandlerReqCtx<HA>,
|
52
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
@@ -0,0 +1,69 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express'
|
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 { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server'
|
14
|
+
import type * as AppBskyNotificationDefs from './defs.js'
|
15
|
+
|
16
|
+
const is$typed = _is$typed,
|
17
|
+
validate = _validate
|
18
|
+
const id = 'app.bsky.notification.putPreferencesV2'
|
19
|
+
|
20
|
+
export interface QueryParams {}
|
21
|
+
|
22
|
+
export interface InputSchema {
|
23
|
+
chat?: AppBskyNotificationDefs.ChatPreference
|
24
|
+
follow?: AppBskyNotificationDefs.FilterablePreference
|
25
|
+
like?: AppBskyNotificationDefs.FilterablePreference
|
26
|
+
likeViaRepost?: AppBskyNotificationDefs.FilterablePreference
|
27
|
+
mention?: AppBskyNotificationDefs.FilterablePreference
|
28
|
+
quote?: AppBskyNotificationDefs.FilterablePreference
|
29
|
+
reply?: AppBskyNotificationDefs.FilterablePreference
|
30
|
+
repost?: AppBskyNotificationDefs.FilterablePreference
|
31
|
+
repostViaRepost?: AppBskyNotificationDefs.FilterablePreference
|
32
|
+
starterpackJoined?: AppBskyNotificationDefs.Preference
|
33
|
+
subscribedPost?: AppBskyNotificationDefs.Preference
|
34
|
+
unverified?: AppBskyNotificationDefs.Preference
|
35
|
+
verified?: AppBskyNotificationDefs.Preference
|
36
|
+
}
|
37
|
+
|
38
|
+
export interface OutputSchema {
|
39
|
+
preferences: AppBskyNotificationDefs.Preferences
|
40
|
+
}
|
41
|
+
|
42
|
+
export interface HandlerInput {
|
43
|
+
encoding: 'application/json'
|
44
|
+
body: InputSchema
|
45
|
+
}
|
46
|
+
|
47
|
+
export interface HandlerSuccess {
|
48
|
+
encoding: 'application/json'
|
49
|
+
body: OutputSchema
|
50
|
+
headers?: { [key: string]: string }
|
51
|
+
}
|
52
|
+
|
53
|
+
export interface HandlerError {
|
54
|
+
status: number
|
55
|
+
message?: string
|
56
|
+
}
|
57
|
+
|
58
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
|
59
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
60
|
+
auth: HA
|
61
|
+
params: QueryParams
|
62
|
+
input: HandlerInput
|
63
|
+
req: express.Request
|
64
|
+
res: express.Response
|
65
|
+
resetRouteRateLimits: () => Promise<void>
|
66
|
+
}
|
67
|
+
export type Handler<HA extends HandlerAuth = never> = (
|
68
|
+
ctx: HandlerReqCtx<HA>,
|
69
|
+
) => Promise<HandlerOutput> | HandlerOutput
|
package/src/lexicon/types/app/bsky/unspecced/{getPostThreadHiddenV2.ts → getPostThreadOtherV2.ts}
RENAMED
@@ -15,7 +15,7 @@ import type * as AppBskyUnspeccedDefs from './defs.js'
|
|
15
15
|
|
16
16
|
const is$typed = _is$typed,
|
17
17
|
validate = _validate
|
18
|
-
const id = 'app.bsky.unspecced.
|
18
|
+
const id = 'app.bsky.unspecced.getPostThreadOtherV2'
|
19
19
|
|
20
20
|
export interface QueryParams {
|
21
21
|
/** Reference (AT-URI) to post record. This is the anchor post. */
|
@@ -27,8 +27,8 @@ export interface QueryParams {
|
|
27
27
|
export type InputSchema = undefined
|
28
28
|
|
29
29
|
export interface OutputSchema {
|
30
|
-
/** A flat list of
|
31
|
-
thread:
|
30
|
+
/** A flat list of other thread items. The depth of each item is indicated by the depth property inside the item. */
|
31
|
+
thread: ThreadItem[]
|
32
32
|
}
|
33
33
|
|
34
34
|
export type HandlerInput = undefined
|
@@ -57,20 +57,20 @@ export type Handler<HA extends HandlerAuth = never> = (
|
|
57
57
|
ctx: HandlerReqCtx<HA>,
|
58
58
|
) => Promise<HandlerOutput> | HandlerOutput
|
59
59
|
|
60
|
-
export interface
|
61
|
-
$type?: 'app.bsky.unspecced.
|
60
|
+
export interface ThreadItem {
|
61
|
+
$type?: 'app.bsky.unspecced.getPostThreadOtherV2#threadItem'
|
62
62
|
uri: string
|
63
63
|
/** 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. */
|
64
64
|
depth: number
|
65
65
|
value: $Typed<AppBskyUnspeccedDefs.ThreadItemPost> | { $type: string }
|
66
66
|
}
|
67
67
|
|
68
|
-
const
|
68
|
+
const hashThreadItem = 'threadItem'
|
69
69
|
|
70
|
-
export function
|
71
|
-
return is$typed(v, id,
|
70
|
+
export function isThreadItem<V>(v: V) {
|
71
|
+
return is$typed(v, id, hashThreadItem)
|
72
72
|
}
|
73
73
|
|
74
|
-
export function
|
75
|
-
return validate<
|
74
|
+
export function validateThreadItem<V>(v: V) {
|
75
|
+
return validate<ThreadItem & V>(v, id, hashThreadItem)
|
76
76
|
}
|
@@ -39,8 +39,8 @@ export interface OutputSchema {
|
|
39
39
|
/** A flat list of thread items. The depth of each item is indicated by the depth property inside the item. */
|
40
40
|
thread: ThreadItem[]
|
41
41
|
threadgate?: AppBskyFeedDefs.ThreadgateView
|
42
|
-
/** Whether this thread has
|
43
|
-
|
42
|
+
/** Whether this thread has additional replies. If true, a call can be made to the `getPostThreadOtherV2` endpoint to retrieve them. */
|
43
|
+
hasOtherReplies: boolean
|
44
44
|
}
|
45
45
|
|
46
46
|
export type HandlerInput = undefined
|