@atproto/pds 0.4.139 → 0.4.141

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 (60) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/account-manager/account-manager.d.ts.map +1 -1
  3. package/dist/account-manager/account-manager.js +3 -0
  4. package/dist/account-manager/account-manager.js.map +1 -1
  5. package/dist/account-manager/helpers/scrypt.d.ts +2 -0
  6. package/dist/account-manager/helpers/scrypt.d.ts.map +1 -1
  7. package/dist/account-manager/helpers/scrypt.js +3 -1
  8. package/dist/account-manager/helpers/scrypt.js.map +1 -1
  9. package/dist/account-manager/oauth-store.js +1 -1
  10. package/dist/account-manager/oauth-store.js.map +1 -1
  11. package/dist/api/com/atproto/admin/updateAccountPassword.d.ts.map +1 -1
  12. package/dist/api/com/atproto/admin/updateAccountPassword.js +5 -0
  13. package/dist/api/com/atproto/admin/updateAccountPassword.js.map +1 -1
  14. package/dist/api/com/atproto/server/createAccount.d.ts.map +1 -1
  15. package/dist/api/com/atproto/server/createAccount.js +4 -0
  16. package/dist/api/com/atproto/server/createAccount.js.map +1 -1
  17. package/dist/api/com/atproto/server/createSession.d.ts.map +1 -1
  18. package/dist/api/com/atproto/server/createSession.js +4 -0
  19. package/dist/api/com/atproto/server/createSession.js.map +1 -1
  20. package/dist/api/com/atproto/server/deleteAccount.d.ts.map +1 -1
  21. package/dist/api/com/atproto/server/deleteAccount.js +4 -0
  22. package/dist/api/com/atproto/server/deleteAccount.js.map +1 -1
  23. package/dist/api/com/atproto/server/resetPassword.d.ts.map +1 -1
  24. package/dist/api/com/atproto/server/resetPassword.js +5 -0
  25. package/dist/api/com/atproto/server/resetPassword.js.map +1 -1
  26. package/dist/lexicon/index.d.ts +6 -2
  27. package/dist/lexicon/index.d.ts.map +1 -1
  28. package/dist/lexicon/index.js +12 -4
  29. package/dist/lexicon/index.js.map +1 -1
  30. package/dist/lexicon/lexicons.d.ts +512 -84
  31. package/dist/lexicon/lexicons.d.ts.map +1 -1
  32. package/dist/lexicon/lexicons.js +266 -42
  33. package/dist/lexicon/lexicons.js.map +1 -1
  34. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.d.ts +63 -0
  35. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.d.ts.map +1 -0
  36. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.js +25 -0
  37. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.js.map +1 -0
  38. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadV2.d.ts +92 -0
  39. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadV2.d.ts.map +1 -0
  40. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadV2.js +52 -0
  41. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadV2.js.map +1 -0
  42. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +1 -1
  43. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
  44. package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
  45. package/package.json +7 -7
  46. package/src/account-manager/account-manager.ts +4 -0
  47. package/src/account-manager/helpers/scrypt.ts +3 -0
  48. package/src/account-manager/oauth-store.ts +1 -1
  49. package/src/api/com/atproto/admin/updateAccountPassword.ts +7 -0
  50. package/src/api/com/atproto/server/createAccount.ts +7 -0
  51. package/src/api/com/atproto/server/createSession.ts +7 -0
  52. package/src/api/com/atproto/server/deleteAccount.ts +5 -0
  53. package/src/api/com/atproto/server/resetPassword.ts +6 -0
  54. package/src/lexicon/index.ts +33 -9
  55. package/src/lexicon/lexicons.ts +286 -43
  56. package/src/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.ts +95 -0
  57. package/src/lexicon/types/app/bsky/unspecced/getPostThreadV2.ts +160 -0
  58. package/src/lexicon/types/tools/ozone/moderation/defs.ts +1 -0
  59. package/tests/proxied/admin.test.ts +1 -1
  60. package/tsconfig.build.tsbuildinfo +1 -1
@@ -108,8 +108,8 @@ import * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGene
108
108
  import * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton.js'
109
109
  import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes.js'
110
110
  import * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed.js'
111
- import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
112
111
  import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
112
+ import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
113
113
  import * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes.js'
114
114
  import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy.js'
115
115
  import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds.js'
@@ -145,6 +145,8 @@ import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/
145
145
  import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen.js'
146
146
  import * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js'
147
147
  import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators.js'
148
+ import * as AppBskyUnspeccedGetPostThreadHiddenV2 from './types/app/bsky/unspecced/getPostThreadHiddenV2.js'
149
+ import * as AppBskyUnspeccedGetPostThreadV2 from './types/app/bsky/unspecced/getPostThreadV2.js'
148
150
  import * as AppBskyUnspeccedGetSuggestedFeeds from './types/app/bsky/unspecced/getSuggestedFeeds.js'
149
151
  import * as AppBskyUnspeccedGetSuggestedFeedsSkeleton from './types/app/bsky/unspecced/getSuggestedFeedsSkeleton.js'
150
152
  import * as AppBskyUnspeccedGetSuggestedStarterPacks from './types/app/bsky/unspecced/getSuggestedStarterPacks.js'
@@ -1547,25 +1549,25 @@ export class AppBskyFeedNS {
1547
1549
  return this._server.xrpc.method(nsid, cfg)
1548
1550
  }
1549
1551
 
1550
- getPosts<AV extends AuthVerifier>(
1552
+ getPostThread<AV extends AuthVerifier>(
1551
1553
  cfg: ConfigOf<
1552
1554
  AV,
1553
- AppBskyFeedGetPosts.Handler<ExtractAuth<AV>>,
1554
- AppBskyFeedGetPosts.HandlerReqCtx<ExtractAuth<AV>>
1555
+ AppBskyFeedGetPostThread.Handler<ExtractAuth<AV>>,
1556
+ AppBskyFeedGetPostThread.HandlerReqCtx<ExtractAuth<AV>>
1555
1557
  >,
1556
1558
  ) {
1557
- const nsid = 'app.bsky.feed.getPosts' // @ts-ignore
1559
+ const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore
1558
1560
  return this._server.xrpc.method(nsid, cfg)
1559
1561
  }
1560
1562
 
1561
- getPostThread<AV extends AuthVerifier>(
1563
+ getPosts<AV extends AuthVerifier>(
1562
1564
  cfg: ConfigOf<
1563
1565
  AV,
1564
- AppBskyFeedGetPostThread.Handler<ExtractAuth<AV>>,
1565
- AppBskyFeedGetPostThread.HandlerReqCtx<ExtractAuth<AV>>
1566
+ AppBskyFeedGetPosts.Handler<ExtractAuth<AV>>,
1567
+ AppBskyFeedGetPosts.HandlerReqCtx<ExtractAuth<AV>>
1566
1568
  >,
1567
1569
  ) {
1568
- const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore
1570
+ const nsid = 'app.bsky.feed.getPosts' // @ts-ignore
1569
1571
  return this._server.xrpc.method(nsid, cfg)
1570
1572
  }
1571
1573
 
@@ -1994,6 +1996,28 @@ export class AppBskyUnspeccedNS {
1994
1996
  return this._server.xrpc.method(nsid, cfg)
1995
1997
  }
1996
1998
 
1999
+ getPostThreadHiddenV2<AV extends AuthVerifier>(
2000
+ cfg: ConfigOf<
2001
+ AV,
2002
+ AppBskyUnspeccedGetPostThreadHiddenV2.Handler<ExtractAuth<AV>>,
2003
+ AppBskyUnspeccedGetPostThreadHiddenV2.HandlerReqCtx<ExtractAuth<AV>>
2004
+ >,
2005
+ ) {
2006
+ const nsid = 'app.bsky.unspecced.getPostThreadHiddenV2' // @ts-ignore
2007
+ return this._server.xrpc.method(nsid, cfg)
2008
+ }
2009
+
2010
+ getPostThreadV2<AV extends AuthVerifier>(
2011
+ cfg: ConfigOf<
2012
+ AV,
2013
+ AppBskyUnspeccedGetPostThreadV2.Handler<ExtractAuth<AV>>,
2014
+ AppBskyUnspeccedGetPostThreadV2.HandlerReqCtx<ExtractAuth<AV>>
2015
+ >,
2016
+ ) {
2017
+ const nsid = 'app.bsky.unspecced.getPostThreadV2' // @ts-ignore
2018
+ return this._server.xrpc.method(nsid, cfg)
2019
+ }
2020
+
1997
2021
  getSuggestedFeeds<AV extends AuthVerifier>(
1998
2022
  cfg: ConfigOf<
1999
2023
  AV,
@@ -7239,48 +7239,6 @@ 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
- },
7284
7242
  AppBskyFeedGetPostThread: {
7285
7243
  lexicon: 1,
7286
7244
  id: 'app.bsky.feed.getPostThread',
@@ -7345,6 +7303,48 @@ export const schemaDict = {
7345
7303
  },
7346
7304
  },
7347
7305
  },
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',
@@ -10294,6 +10294,244 @@ export const schemaDict = {
10294
10294
  },
10295
10295
  },
10296
10296
  },
10297
+ AppBskyUnspeccedGetPostThreadHiddenV2: {
10298
+ lexicon: 1,
10299
+ id: 'app.bsky.unspecced.getPostThreadHiddenV2',
10300
+ defs: {
10301
+ main: {
10302
+ type: 'query',
10303
+ description:
10304
+ "(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.",
10305
+ parameters: {
10306
+ type: 'params',
10307
+ required: ['anchor'],
10308
+ properties: {
10309
+ anchor: {
10310
+ type: 'string',
10311
+ format: 'at-uri',
10312
+ description:
10313
+ 'Reference (AT-URI) to post record. This is the anchor post.',
10314
+ },
10315
+ prioritizeFollowedUsers: {
10316
+ type: 'boolean',
10317
+ description:
10318
+ 'Whether to prioritize posts from followed users. It only has effect when the user is authenticated.',
10319
+ default: false,
10320
+ },
10321
+ },
10322
+ },
10323
+ output: {
10324
+ encoding: 'application/json',
10325
+ schema: {
10326
+ type: 'object',
10327
+ required: ['thread'],
10328
+ properties: {
10329
+ thread: {
10330
+ type: 'array',
10331
+ description:
10332
+ 'A flat list of thread hidden items. The depth of each item is indicated by the depth property inside the item.',
10333
+ items: {
10334
+ type: 'ref',
10335
+ ref: 'lex:app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItem',
10336
+ },
10337
+ },
10338
+ },
10339
+ },
10340
+ },
10341
+ },
10342
+ threadHiddenItem: {
10343
+ type: 'object',
10344
+ required: ['uri', 'depth', 'value'],
10345
+ properties: {
10346
+ uri: {
10347
+ type: 'string',
10348
+ format: 'at-uri',
10349
+ },
10350
+ depth: {
10351
+ type: 'integer',
10352
+ description:
10353
+ '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.',
10354
+ },
10355
+ value: {
10356
+ type: 'union',
10357
+ refs: [
10358
+ 'lex:app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItemPost',
10359
+ ],
10360
+ },
10361
+ },
10362
+ },
10363
+ threadHiddenItemPost: {
10364
+ type: 'object',
10365
+ required: ['post', 'hiddenByThreadgate', 'mutedByViewer'],
10366
+ properties: {
10367
+ post: {
10368
+ type: 'ref',
10369
+ ref: 'lex:app.bsky.feed.defs#postView',
10370
+ },
10371
+ hiddenByThreadgate: {
10372
+ type: 'boolean',
10373
+ description:
10374
+ 'The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread.',
10375
+ },
10376
+ mutedByViewer: {
10377
+ type: 'boolean',
10378
+ description:
10379
+ 'This is by an account muted by the viewer requesting it.',
10380
+ },
10381
+ },
10382
+ },
10383
+ },
10384
+ },
10385
+ AppBskyUnspeccedGetPostThreadV2: {
10386
+ lexicon: 1,
10387
+ id: 'app.bsky.unspecced.getPostThreadV2',
10388
+ defs: {
10389
+ main: {
10390
+ type: 'query',
10391
+ description:
10392
+ "(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 posts in a thread. It is based in an anchor post at any depth of the tree, and returns posts above it (recursively resolving the parent, without further branching to their replies) and below it (recursive replies, with branching to their replies). Does not require auth, but additional metadata and filtering will be applied for authed requests.",
10393
+ parameters: {
10394
+ type: 'params',
10395
+ required: ['anchor'],
10396
+ properties: {
10397
+ anchor: {
10398
+ type: 'string',
10399
+ format: 'at-uri',
10400
+ description:
10401
+ 'Reference (AT-URI) to post record. This is the anchor post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post.',
10402
+ },
10403
+ above: {
10404
+ type: 'boolean',
10405
+ description: 'Whether to include parents above the anchor.',
10406
+ default: true,
10407
+ },
10408
+ below: {
10409
+ type: 'integer',
10410
+ description:
10411
+ 'How many levels of replies to include below the anchor.',
10412
+ default: 6,
10413
+ minimum: 0,
10414
+ maximum: 20,
10415
+ },
10416
+ branchingFactor: {
10417
+ type: 'integer',
10418
+ description:
10419
+ 'Maximum of replies to include at each level of the thread, except for the direct replies to the anchor, which are (NOTE: currently, during unspecced phase) all returned (NOTE: later they might be paginated).',
10420
+ default: 10,
10421
+ minimum: 0,
10422
+ maximum: 100,
10423
+ },
10424
+ prioritizeFollowedUsers: {
10425
+ type: 'boolean',
10426
+ description:
10427
+ 'Whether to prioritize posts from followed users. It only has effect when the user is authenticated.',
10428
+ default: false,
10429
+ },
10430
+ sort: {
10431
+ type: 'string',
10432
+ description: 'Sorting for the thread replies.',
10433
+ knownValues: ['newest', 'oldest', 'top'],
10434
+ default: 'oldest',
10435
+ },
10436
+ },
10437
+ },
10438
+ output: {
10439
+ encoding: 'application/json',
10440
+ schema: {
10441
+ type: 'object',
10442
+ required: ['thread', 'hasHiddenReplies'],
10443
+ properties: {
10444
+ thread: {
10445
+ type: 'array',
10446
+ description:
10447
+ 'A flat list of thread items. The depth of each item is indicated by the depth property inside the item.',
10448
+ items: {
10449
+ type: 'ref',
10450
+ ref: 'lex:app.bsky.unspecced.getPostThreadV2#threadItem',
10451
+ },
10452
+ },
10453
+ threadgate: {
10454
+ type: 'ref',
10455
+ ref: 'lex:app.bsky.feed.defs#threadgateView',
10456
+ },
10457
+ hasHiddenReplies: {
10458
+ type: 'boolean',
10459
+ description:
10460
+ 'Whether this thread has hidden replies. If true, a call can be made to the `getPostThreadHiddenV2` endpoint to retrieve them.',
10461
+ },
10462
+ },
10463
+ },
10464
+ },
10465
+ },
10466
+ threadItem: {
10467
+ type: 'object',
10468
+ required: ['uri', 'depth', 'value'],
10469
+ properties: {
10470
+ uri: {
10471
+ type: 'string',
10472
+ format: 'at-uri',
10473
+ },
10474
+ depth: {
10475
+ type: 'integer',
10476
+ description:
10477
+ '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.',
10478
+ },
10479
+ value: {
10480
+ type: 'union',
10481
+ refs: [
10482
+ 'lex:app.bsky.unspecced.getPostThreadV2#threadItemPost',
10483
+ 'lex:app.bsky.unspecced.getPostThreadV2#threadItemNoUnauthenticated',
10484
+ 'lex:app.bsky.unspecced.getPostThreadV2#threadItemNotFound',
10485
+ 'lex:app.bsky.unspecced.getPostThreadV2#threadItemBlocked',
10486
+ ],
10487
+ },
10488
+ },
10489
+ },
10490
+ threadItemPost: {
10491
+ type: 'object',
10492
+ required: ['post', 'moreParents', 'moreReplies', 'opThread'],
10493
+ properties: {
10494
+ post: {
10495
+ type: 'ref',
10496
+ ref: 'lex:app.bsky.feed.defs#postView',
10497
+ },
10498
+ moreParents: {
10499
+ type: 'boolean',
10500
+ description:
10501
+ 'This post has more parents that were not present in the response. This is just a boolean, without the number of parents.',
10502
+ },
10503
+ moreReplies: {
10504
+ type: 'integer',
10505
+ description:
10506
+ 'This post has more replies that were not present in the response. This is a numeric value, which is best-effort and might not be accurate.',
10507
+ },
10508
+ opThread: {
10509
+ type: 'boolean',
10510
+ description:
10511
+ 'This post is part of a contiguous thread by the OP from the thread root. Many different OP threads can happen in the same thread.',
10512
+ },
10513
+ },
10514
+ },
10515
+ threadItemNoUnauthenticated: {
10516
+ type: 'object',
10517
+ properties: {},
10518
+ },
10519
+ threadItemNotFound: {
10520
+ type: 'object',
10521
+ properties: {},
10522
+ },
10523
+ threadItemBlocked: {
10524
+ type: 'object',
10525
+ required: ['author'],
10526
+ properties: {
10527
+ author: {
10528
+ type: 'ref',
10529
+ ref: 'lex:app.bsky.feed.defs#blockedAuthor',
10530
+ },
10531
+ },
10532
+ },
10533
+ },
10534
+ },
10297
10535
  AppBskyUnspeccedGetSuggestedFeeds: {
10298
10536
  lexicon: 1,
10299
10537
  id: 'app.bsky.unspecced.getSuggestedFeeds',
@@ -12997,6 +13235,7 @@ export const schemaDict = {
12997
13235
  refs: [
12998
13236
  'lex:com.atproto.admin.defs#repoRef',
12999
13237
  'lex:com.atproto.repo.strongRef',
13238
+ 'lex:chat.bsky.convo.defs#messageRef',
13000
13239
  ],
13001
13240
  },
13002
13241
  hosting: {
@@ -15922,6 +16161,7 @@ export const schemaDict = {
15922
16161
  },
15923
16162
  createdAt: {
15924
16163
  type: 'string',
16164
+ format: 'datetime',
15925
16165
  description:
15926
16166
  'Timestamp for verification record. Defaults to current time when not specified.',
15927
16167
  },
@@ -16275,8 +16515,8 @@ export const ids = {
16275
16515
  AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton',
16276
16516
  AppBskyFeedGetLikes: 'app.bsky.feed.getLikes',
16277
16517
  AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed',
16278
- AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
16279
16518
  AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
16519
+ AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
16280
16520
  AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes',
16281
16521
  AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
16282
16522
  AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds',
@@ -16333,6 +16573,9 @@ export const ids = {
16333
16573
  AppBskyUnspeccedGetConfig: 'app.bsky.unspecced.getConfig',
16334
16574
  AppBskyUnspeccedGetPopularFeedGenerators:
16335
16575
  'app.bsky.unspecced.getPopularFeedGenerators',
16576
+ AppBskyUnspeccedGetPostThreadHiddenV2:
16577
+ 'app.bsky.unspecced.getPostThreadHiddenV2',
16578
+ AppBskyUnspeccedGetPostThreadV2: 'app.bsky.unspecced.getPostThreadV2',
16336
16579
  AppBskyUnspeccedGetSuggestedFeeds: 'app.bsky.unspecced.getSuggestedFeeds',
16337
16580
  AppBskyUnspeccedGetSuggestedFeedsSkeleton:
16338
16581
  'app.bsky.unspecced.getSuggestedFeedsSkeleton',
@@ -0,0 +1,95 @@
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 AppBskyFeedDefs from '../feed/defs.js'
15
+
16
+ const is$typed = _is$typed,
17
+ validate = _validate
18
+ const id = 'app.bsky.unspecced.getPostThreadHiddenV2'
19
+
20
+ export interface QueryParams {
21
+ /** Reference (AT-URI) to post record. This is the anchor post. */
22
+ anchor: string
23
+ /** Whether to prioritize posts from followed users. It only has effect when the user is authenticated. */
24
+ prioritizeFollowedUsers: boolean
25
+ }
26
+
27
+ export type InputSchema = undefined
28
+
29
+ export interface OutputSchema {
30
+ /** A flat list of thread hidden items. The depth of each item is indicated by the depth property inside the item. */
31
+ thread: ThreadHiddenItem[]
32
+ }
33
+
34
+ export type HandlerInput = undefined
35
+
36
+ export interface HandlerSuccess {
37
+ encoding: 'application/json'
38
+ body: OutputSchema
39
+ headers?: { [key: string]: string }
40
+ }
41
+
42
+ export interface HandlerError {
43
+ status: number
44
+ message?: string
45
+ }
46
+
47
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough
48
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
49
+ auth: HA
50
+ params: QueryParams
51
+ input: HandlerInput
52
+ req: express.Request
53
+ res: express.Response
54
+ resetRouteRateLimits: () => Promise<void>
55
+ }
56
+ export type Handler<HA extends HandlerAuth = never> = (
57
+ ctx: HandlerReqCtx<HA>,
58
+ ) => Promise<HandlerOutput> | HandlerOutput
59
+
60
+ export interface ThreadHiddenItem {
61
+ $type?: 'app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItem'
62
+ uri: string
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
+ depth: number
65
+ value: $Typed<ThreadHiddenItemPost> | { $type: string }
66
+ }
67
+
68
+ const hashThreadHiddenItem = 'threadHiddenItem'
69
+
70
+ export function isThreadHiddenItem<V>(v: V) {
71
+ return is$typed(v, id, hashThreadHiddenItem)
72
+ }
73
+
74
+ export function validateThreadHiddenItem<V>(v: V) {
75
+ return validate<ThreadHiddenItem & V>(v, id, hashThreadHiddenItem)
76
+ }
77
+
78
+ export interface ThreadHiddenItemPost {
79
+ $type?: 'app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItemPost'
80
+ post: AppBskyFeedDefs.PostView
81
+ /** The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread. */
82
+ hiddenByThreadgate: boolean
83
+ /** This is by an account muted by the viewer requesting it. */
84
+ mutedByViewer: boolean
85
+ }
86
+
87
+ const hashThreadHiddenItemPost = 'threadHiddenItemPost'
88
+
89
+ export function isThreadHiddenItemPost<V>(v: V) {
90
+ return is$typed(v, id, hashThreadHiddenItemPost)
91
+ }
92
+
93
+ export function validateThreadHiddenItemPost<V>(v: V) {
94
+ return validate<ThreadHiddenItemPost & V>(v, id, hashThreadHiddenItemPost)
95
+ }