@atproto/bsky 0.0.170 → 0.0.171

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 (132) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/api/app/bsky/unspecced/getAgeAssuranceState.d.ts +4 -0
  3. package/dist/api/app/bsky/unspecced/getAgeAssuranceState.d.ts.map +1 -0
  4. package/dist/api/app/bsky/unspecced/getAgeAssuranceState.js +36 -0
  5. package/dist/api/app/bsky/unspecced/getAgeAssuranceState.js.map +1 -0
  6. package/dist/api/app/bsky/unspecced/initAgeAssurance.d.ts +4 -0
  7. package/dist/api/app/bsky/unspecced/initAgeAssurance.d.ts.map +1 -0
  8. package/dist/api/app/bsky/unspecced/initAgeAssurance.js +59 -0
  9. package/dist/api/app/bsky/unspecced/initAgeAssurance.js.map +1 -0
  10. package/dist/api/external.d.ts +4 -0
  11. package/dist/api/external.d.ts.map +1 -0
  12. package/dist/api/external.js +47 -0
  13. package/dist/api/external.js.map +1 -0
  14. package/dist/api/index.d.ts +1 -0
  15. package/dist/api/index.d.ts.map +1 -1
  16. package/dist/api/index.js +6 -1
  17. package/dist/api/index.js.map +1 -1
  18. package/dist/api/kws/api.d.ts +4 -0
  19. package/dist/api/kws/api.d.ts.map +1 -0
  20. package/dist/api/kws/api.js +60 -0
  21. package/dist/api/kws/api.js.map +1 -0
  22. package/dist/api/kws/index.d.ts +4 -0
  23. package/dist/api/kws/index.d.ts.map +1 -0
  24. package/dist/api/kws/index.js +21 -0
  25. package/dist/api/kws/index.js.map +1 -0
  26. package/dist/api/kws/types.d.ts +100 -0
  27. package/dist/api/kws/types.d.ts.map +1 -0
  28. package/dist/api/kws/types.js +29 -0
  29. package/dist/api/kws/types.js.map +1 -0
  30. package/dist/api/kws/util.d.ts +21 -0
  31. package/dist/api/kws/util.d.ts.map +1 -0
  32. package/dist/api/kws/util.js +78 -0
  33. package/dist/api/kws/util.js.map +1 -0
  34. package/dist/api/kws/webhook.d.ts +5 -0
  35. package/dist/api/kws/webhook.d.ts.map +1 -0
  36. package/dist/api/kws/webhook.js +80 -0
  37. package/dist/api/kws/webhook.js.map +1 -0
  38. package/dist/config.d.ts +12 -0
  39. package/dist/config.d.ts.map +1 -1
  40. package/dist/config.js +40 -0
  41. package/dist/config.js.map +1 -1
  42. package/dist/context.d.ts +3 -0
  43. package/dist/context.d.ts.map +1 -1
  44. package/dist/context.js +3 -0
  45. package/dist/context.js.map +1 -1
  46. package/dist/data-plane/bsync/index.d.ts.map +1 -1
  47. package/dist/data-plane/bsync/index.js +52 -33
  48. package/dist/data-plane/bsync/index.js.map +1 -1
  49. package/dist/data-plane/server/db/migrations/20250627T025331240Z-add-actor-age-assurance-columns.d.ts +4 -0
  50. package/dist/data-plane/server/db/migrations/20250627T025331240Z-add-actor-age-assurance-columns.d.ts.map +1 -0
  51. package/dist/data-plane/server/db/migrations/20250627T025331240Z-add-actor-age-assurance-columns.js +22 -0
  52. package/dist/data-plane/server/db/migrations/20250627T025331240Z-add-actor-age-assurance-columns.js.map +1 -0
  53. package/dist/data-plane/server/db/migrations/index.d.ts +1 -0
  54. package/dist/data-plane/server/db/migrations/index.d.ts.map +1 -1
  55. package/dist/data-plane/server/db/migrations/index.js +2 -0
  56. package/dist/data-plane/server/db/migrations/index.js.map +1 -1
  57. package/dist/data-plane/server/db/tables/actor.d.ts +2 -0
  58. package/dist/data-plane/server/db/tables/actor.d.ts.map +1 -1
  59. package/dist/data-plane/server/db/tables/actor.js.map +1 -1
  60. package/dist/data-plane/server/routes/profile.d.ts.map +1 -1
  61. package/dist/data-plane/server/routes/profile.js +14 -1
  62. package/dist/data-plane/server/routes/profile.js.map +1 -1
  63. package/dist/feature-gates.d.ts +2 -1
  64. package/dist/feature-gates.d.ts.map +1 -1
  65. package/dist/feature-gates.js +1 -0
  66. package/dist/feature-gates.js.map +1 -1
  67. package/dist/index.d.ts.map +1 -1
  68. package/dist/index.js +5 -0
  69. package/dist/index.js.map +1 -1
  70. package/dist/kws.d.ts +16 -0
  71. package/dist/kws.d.ts.map +1 -0
  72. package/dist/kws.js +86 -0
  73. package/dist/kws.js.map +1 -0
  74. package/dist/lexicon/index.d.ts +6 -2
  75. package/dist/lexicon/index.d.ts.map +1 -1
  76. package/dist/lexicon/index.js +12 -4
  77. package/dist/lexicon/index.js.map +1 -1
  78. package/dist/lexicon/lexicons.d.ts +308 -82
  79. package/dist/lexicon/lexicons.d.ts.map +1 -1
  80. package/dist/lexicon/lexicons.js +157 -42
  81. package/dist/lexicon/lexicons.js.map +1 -1
  82. package/dist/lexicon/types/app/bsky/unspecced/defs.d.ts +32 -0
  83. package/dist/lexicon/types/app/bsky/unspecced/defs.d.ts.map +1 -1
  84. package/dist/lexicon/types/app/bsky/unspecced/defs.js +18 -0
  85. package/dist/lexicon/types/app/bsky/unspecced/defs.js.map +1 -1
  86. package/dist/lexicon/types/app/bsky/unspecced/getAgeAssuranceState.d.ts +18 -0
  87. package/dist/lexicon/types/app/bsky/unspecced/getAgeAssuranceState.d.ts.map +1 -0
  88. package/dist/lexicon/types/app/bsky/unspecced/getAgeAssuranceState.js +7 -0
  89. package/dist/lexicon/types/app/bsky/unspecced/getAgeAssuranceState.js.map +1 -0
  90. package/dist/lexicon/types/app/bsky/unspecced/initAgeAssurance.d.ts +28 -0
  91. package/dist/lexicon/types/app/bsky/unspecced/initAgeAssurance.d.ts.map +1 -0
  92. package/dist/lexicon/types/app/bsky/unspecced/initAgeAssurance.js +7 -0
  93. package/dist/lexicon/types/app/bsky/unspecced/initAgeAssurance.js.map +1 -0
  94. package/dist/proto/bsky_pb.d.ts +29 -0
  95. package/dist/proto/bsky_pb.d.ts.map +1 -1
  96. package/dist/proto/bsky_pb.js +97 -4
  97. package/dist/proto/bsky_pb.js.map +1 -1
  98. package/dist/stash.d.ts +1 -0
  99. package/dist/stash.d.ts.map +1 -1
  100. package/dist/stash.js +1 -0
  101. package/dist/stash.js.map +1 -1
  102. package/package.json +7 -4
  103. package/proto/bsky.proto +7 -0
  104. package/src/api/app/bsky/unspecced/getAgeAssuranceState.ts +46 -0
  105. package/src/api/app/bsky/unspecced/initAgeAssurance.ts +71 -0
  106. package/src/api/external.ts +13 -0
  107. package/src/api/index.ts +6 -0
  108. package/src/api/kws/api.ts +92 -0
  109. package/src/api/kws/index.ts +23 -0
  110. package/src/api/kws/types.ts +67 -0
  111. package/src/api/kws/util.ts +111 -0
  112. package/src/api/kws/webhook.ts +107 -0
  113. package/src/config.ts +59 -0
  114. package/src/context.ts +6 -0
  115. package/src/data-plane/bsync/index.ts +69 -33
  116. package/src/data-plane/server/db/migrations/20250627T025331240Z-add-actor-age-assurance-columns.ts +22 -0
  117. package/src/data-plane/server/db/migrations/index.ts +1 -0
  118. package/src/data-plane/server/db/tables/actor.ts +2 -0
  119. package/src/data-plane/server/routes/profile.ts +16 -1
  120. package/src/feature-gates.ts +1 -0
  121. package/src/index.ts +7 -1
  122. package/src/kws.ts +108 -0
  123. package/src/lexicon/index.ts +37 -11
  124. package/src/lexicon/lexicons.ts +166 -43
  125. package/src/lexicon/types/app/bsky/unspecced/defs.ts +50 -0
  126. package/src/lexicon/types/app/bsky/unspecced/getAgeAssuranceState.ts +34 -0
  127. package/src/lexicon/types/app/bsky/unspecced/initAgeAssurance.ts +47 -0
  128. package/src/proto/bsky_pb.ts +79 -0
  129. package/src/stash.ts +3 -0
  130. package/tests/views/age-assurance.test.ts +425 -0
  131. package/tsconfig.build.tsbuildinfo +1 -1
  132. package/tsconfig.tests.tsbuildinfo +1 -1
@@ -7282,48 +7282,6 @@ export const schemaDict = {
7282
7282
  },
7283
7283
  },
7284
7284
  },
7285
- AppBskyFeedGetPosts: {
7286
- lexicon: 1,
7287
- id: 'app.bsky.feed.getPosts',
7288
- defs: {
7289
- main: {
7290
- type: 'query',
7291
- description:
7292
- "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
7293
- parameters: {
7294
- type: 'params',
7295
- required: ['uris'],
7296
- properties: {
7297
- uris: {
7298
- type: 'array',
7299
- description: 'List of post AT-URIs to return hydrated views for.',
7300
- items: {
7301
- type: 'string',
7302
- format: 'at-uri',
7303
- },
7304
- maxLength: 25,
7305
- },
7306
- },
7307
- },
7308
- output: {
7309
- encoding: 'application/json',
7310
- schema: {
7311
- type: 'object',
7312
- required: ['posts'],
7313
- properties: {
7314
- posts: {
7315
- type: 'array',
7316
- items: {
7317
- type: 'ref',
7318
- ref: 'lex:app.bsky.feed.defs#postView',
7319
- },
7320
- },
7321
- },
7322
- },
7323
- },
7324
- },
7325
- },
7326
- },
7327
7285
  AppBskyFeedGetPostThread: {
7328
7286
  lexicon: 1,
7329
7287
  id: 'app.bsky.feed.getPostThread',
@@ -7388,6 +7346,48 @@ export const schemaDict = {
7388
7346
  },
7389
7347
  },
7390
7348
  },
7349
+ AppBskyFeedGetPosts: {
7350
+ lexicon: 1,
7351
+ id: 'app.bsky.feed.getPosts',
7352
+ defs: {
7353
+ main: {
7354
+ type: 'query',
7355
+ description:
7356
+ "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
7357
+ parameters: {
7358
+ type: 'params',
7359
+ required: ['uris'],
7360
+ properties: {
7361
+ uris: {
7362
+ type: 'array',
7363
+ description: 'List of post AT-URIs to return hydrated views for.',
7364
+ items: {
7365
+ type: 'string',
7366
+ format: 'at-uri',
7367
+ },
7368
+ maxLength: 25,
7369
+ },
7370
+ },
7371
+ },
7372
+ output: {
7373
+ encoding: 'application/json',
7374
+ schema: {
7375
+ type: 'object',
7376
+ required: ['posts'],
7377
+ properties: {
7378
+ posts: {
7379
+ type: 'array',
7380
+ items: {
7381
+ type: 'ref',
7382
+ ref: 'lex:app.bsky.feed.defs#postView',
7383
+ },
7384
+ },
7385
+ },
7386
+ },
7387
+ },
7388
+ },
7389
+ },
7390
+ },
7391
7391
  AppBskyFeedGetQuotes: {
7392
7392
  lexicon: 1,
7393
7393
  id: 'app.bsky.feed.getQuotes',
@@ -10675,6 +10675,84 @@ export const schemaDict = {
10675
10675
  },
10676
10676
  },
10677
10677
  },
10678
+ ageAssuranceState: {
10679
+ type: 'object',
10680
+ description:
10681
+ 'The computed state of the age assurance process, returned to the user in question on certain authenticated requests.',
10682
+ required: ['status'],
10683
+ properties: {
10684
+ lastInitiatedAt: {
10685
+ type: 'string',
10686
+ format: 'datetime',
10687
+ description: 'The timestamp when this state was last updated.',
10688
+ },
10689
+ status: {
10690
+ type: 'string',
10691
+ description: 'The status of the age assurance process.',
10692
+ knownValues: ['unknown', 'pending', 'assured', 'blocked'],
10693
+ },
10694
+ },
10695
+ },
10696
+ ageAssuranceEvent: {
10697
+ type: 'object',
10698
+ description: 'Object used to store age assurance data in stash.',
10699
+ required: ['createdAt', 'status', 'attemptId'],
10700
+ properties: {
10701
+ createdAt: {
10702
+ type: 'string',
10703
+ format: 'datetime',
10704
+ description: 'The date and time of this write operation.',
10705
+ },
10706
+ status: {
10707
+ type: 'string',
10708
+ description: 'The status of the age assurance process.',
10709
+ knownValues: ['unknown', 'pending', 'assured'],
10710
+ },
10711
+ attemptId: {
10712
+ type: 'string',
10713
+ description:
10714
+ 'The unique identifier for this instance of the age assurance flow, in UUID format.',
10715
+ },
10716
+ email: {
10717
+ type: 'string',
10718
+ description: 'The email used for AA.',
10719
+ },
10720
+ initIp: {
10721
+ type: 'string',
10722
+ description: 'The IP address used when initiating the AA flow.',
10723
+ },
10724
+ initUa: {
10725
+ type: 'string',
10726
+ description: 'The user agent used when initiating the AA flow.',
10727
+ },
10728
+ completeIp: {
10729
+ type: 'string',
10730
+ description: 'The IP address used when completing the AA flow.',
10731
+ },
10732
+ completeUa: {
10733
+ type: 'string',
10734
+ description: 'The user agent used when completing the AA flow.',
10735
+ },
10736
+ },
10737
+ },
10738
+ },
10739
+ },
10740
+ AppBskyUnspeccedGetAgeAssuranceState: {
10741
+ lexicon: 1,
10742
+ id: 'app.bsky.unspecced.getAgeAssuranceState',
10743
+ defs: {
10744
+ main: {
10745
+ type: 'query',
10746
+ description:
10747
+ 'Returns the current state of the age assurance process for an account. This is used to check if the user has completed age assurance or if further action is required.',
10748
+ output: {
10749
+ encoding: 'application/json',
10750
+ schema: {
10751
+ type: 'ref',
10752
+ ref: 'lex:app.bsky.unspecced.defs#ageAssuranceState',
10753
+ },
10754
+ },
10755
+ },
10678
10756
  },
10679
10757
  },
10680
10758
  AppBskyUnspeccedGetConfig: {
@@ -11438,6 +11516,48 @@ export const schemaDict = {
11438
11516
  },
11439
11517
  },
11440
11518
  },
11519
+ AppBskyUnspeccedInitAgeAssurance: {
11520
+ lexicon: 1,
11521
+ id: 'app.bsky.unspecced.initAgeAssurance',
11522
+ defs: {
11523
+ main: {
11524
+ type: 'procedure',
11525
+ description:
11526
+ "Initiate age assurance for an account. This is a one-time action that will start the process of verifying the user's age.",
11527
+ input: {
11528
+ encoding: 'application/json',
11529
+ schema: {
11530
+ type: 'object',
11531
+ required: ['email', 'language', 'countryCode'],
11532
+ properties: {
11533
+ email: {
11534
+ type: 'string',
11535
+ description:
11536
+ "The user's email address to receive assurance instructions.",
11537
+ },
11538
+ language: {
11539
+ type: 'string',
11540
+ description:
11541
+ "The user's preferred language for communication during the assurance process.",
11542
+ },
11543
+ countryCode: {
11544
+ type: 'string',
11545
+ description:
11546
+ "An ISO 3166-1 alpha-2 code of the user's location.",
11547
+ },
11548
+ },
11549
+ },
11550
+ },
11551
+ output: {
11552
+ encoding: 'application/json',
11553
+ schema: {
11554
+ type: 'ref',
11555
+ ref: 'lex:app.bsky.unspecced.defs#ageAssuranceState',
11556
+ },
11557
+ },
11558
+ },
11559
+ },
11560
+ },
11441
11561
  AppBskyUnspeccedSearchActorsSkeleton: {
11442
11562
  lexicon: 1,
11443
11563
  id: 'app.bsky.unspecced.searchActorsSkeleton',
@@ -13306,8 +13426,8 @@ export const ids = {
13306
13426
  AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton',
13307
13427
  AppBskyFeedGetLikes: 'app.bsky.feed.getLikes',
13308
13428
  AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed',
13309
- AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
13310
13429
  AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
13430
+ AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
13311
13431
  AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes',
13312
13432
  AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
13313
13433
  AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds',
@@ -13368,6 +13488,8 @@ export const ids = {
13368
13488
  AppBskyNotificationUpdateSeen: 'app.bsky.notification.updateSeen',
13369
13489
  AppBskyRichtextFacet: 'app.bsky.richtext.facet',
13370
13490
  AppBskyUnspeccedDefs: 'app.bsky.unspecced.defs',
13491
+ AppBskyUnspeccedGetAgeAssuranceState:
13492
+ 'app.bsky.unspecced.getAgeAssuranceState',
13371
13493
  AppBskyUnspeccedGetConfig: 'app.bsky.unspecced.getConfig',
13372
13494
  AppBskyUnspeccedGetPopularFeedGenerators:
13373
13495
  'app.bsky.unspecced.getPopularFeedGenerators',
@@ -13391,6 +13513,7 @@ export const ids = {
13391
13513
  AppBskyUnspeccedGetTrendingTopics: 'app.bsky.unspecced.getTrendingTopics',
13392
13514
  AppBskyUnspeccedGetTrends: 'app.bsky.unspecced.getTrends',
13393
13515
  AppBskyUnspeccedGetTrendsSkeleton: 'app.bsky.unspecced.getTrendsSkeleton',
13516
+ AppBskyUnspeccedInitAgeAssurance: 'app.bsky.unspecced.initAgeAssurance',
13394
13517
  AppBskyUnspeccedSearchActorsSkeleton:
13395
13518
  'app.bsky.unspecced.searchActorsSkeleton',
13396
13519
  AppBskyUnspeccedSearchPostsSkeleton: 'app.bsky.unspecced.searchPostsSkeleton',
@@ -198,3 +198,53 @@ export function isThreadItemBlocked<V>(v: V) {
198
198
  export function validateThreadItemBlocked<V>(v: V) {
199
199
  return validate<ThreadItemBlocked & V>(v, id, hashThreadItemBlocked)
200
200
  }
201
+
202
+ /** The computed state of the age assurance process, returned to the user in question on certain authenticated requests. */
203
+ export interface AgeAssuranceState {
204
+ $type?: 'app.bsky.unspecced.defs#ageAssuranceState'
205
+ /** The timestamp when this state was last updated. */
206
+ lastInitiatedAt?: string
207
+ /** The status of the age assurance process. */
208
+ status: 'unknown' | 'pending' | 'assured' | 'blocked' | (string & {})
209
+ }
210
+
211
+ const hashAgeAssuranceState = 'ageAssuranceState'
212
+
213
+ export function isAgeAssuranceState<V>(v: V) {
214
+ return is$typed(v, id, hashAgeAssuranceState)
215
+ }
216
+
217
+ export function validateAgeAssuranceState<V>(v: V) {
218
+ return validate<AgeAssuranceState & V>(v, id, hashAgeAssuranceState)
219
+ }
220
+
221
+ /** Object used to store age assurance data in stash. */
222
+ export interface AgeAssuranceEvent {
223
+ $type?: 'app.bsky.unspecced.defs#ageAssuranceEvent'
224
+ /** The date and time of this write operation. */
225
+ createdAt: string
226
+ /** The status of the age assurance process. */
227
+ status: 'unknown' | 'pending' | 'assured' | (string & {})
228
+ /** The unique identifier for this instance of the age assurance flow, in UUID format. */
229
+ attemptId: string
230
+ /** The email used for AA. */
231
+ email?: string
232
+ /** The IP address used when initiating the AA flow. */
233
+ initIp?: string
234
+ /** The user agent used when initiating the AA flow. */
235
+ initUa?: string
236
+ /** The IP address used when completing the AA flow. */
237
+ completeIp?: string
238
+ /** The user agent used when completing the AA flow. */
239
+ completeUa?: string
240
+ }
241
+
242
+ const hashAgeAssuranceEvent = 'ageAssuranceEvent'
243
+
244
+ export function isAgeAssuranceEvent<V>(v: V) {
245
+ return is$typed(v, id, hashAgeAssuranceEvent)
246
+ }
247
+
248
+ export function validateAgeAssuranceEvent<V>(v: V) {
249
+ return validate<AgeAssuranceEvent & V>(v, id, hashAgeAssuranceEvent)
250
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
5
+ import { CID } from 'multiformats/cid'
6
+ import { validate as _validate } from '../../../../lexicons'
7
+ import {
8
+ type $Typed,
9
+ is$typed as _is$typed,
10
+ type OmitKey,
11
+ } from '../../../../util'
12
+ import type * as AppBskyUnspeccedDefs from './defs.js'
13
+
14
+ const is$typed = _is$typed,
15
+ validate = _validate
16
+ const id = 'app.bsky.unspecced.getAgeAssuranceState'
17
+
18
+ export type QueryParams = {}
19
+ export type InputSchema = undefined
20
+ export type OutputSchema = AppBskyUnspeccedDefs.AgeAssuranceState
21
+ export type HandlerInput = void
22
+
23
+ export interface HandlerSuccess {
24
+ encoding: 'application/json'
25
+ body: OutputSchema
26
+ headers?: { [key: string]: string }
27
+ }
28
+
29
+ export interface HandlerError {
30
+ status: number
31
+ message?: string
32
+ }
33
+
34
+ export type HandlerOutput = HandlerError | HandlerSuccess
@@ -0,0 +1,47 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
5
+ import { CID } from 'multiformats/cid'
6
+ import { validate as _validate } from '../../../../lexicons'
7
+ import {
8
+ type $Typed,
9
+ is$typed as _is$typed,
10
+ type OmitKey,
11
+ } from '../../../../util'
12
+ import type * as AppBskyUnspeccedDefs from './defs.js'
13
+
14
+ const is$typed = _is$typed,
15
+ validate = _validate
16
+ const id = 'app.bsky.unspecced.initAgeAssurance'
17
+
18
+ export type QueryParams = {}
19
+
20
+ export interface InputSchema {
21
+ /** The user's email address to receive assurance instructions. */
22
+ email: string
23
+ /** The user's preferred language for communication during the assurance process. */
24
+ language: string
25
+ /** An ISO 3166-1 alpha-2 code of the user's location. */
26
+ countryCode: string
27
+ }
28
+
29
+ export type OutputSchema = AppBskyUnspeccedDefs.AgeAssuranceState
30
+
31
+ export interface HandlerInput {
32
+ encoding: 'application/json'
33
+ body: InputSchema
34
+ }
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
@@ -5458,6 +5458,11 @@ export class GetActorsRequest extends Message<GetActorsRequest> {
5458
5458
  */
5459
5459
  skipCacheForDids: string[] = []
5460
5460
 
5461
+ /**
5462
+ * @generated from field: repeated string return_age_assurance_for_dids = 3;
5463
+ */
5464
+ returnAgeAssuranceForDids: string[] = []
5465
+
5461
5466
  constructor(data?: PartialMessage<GetActorsRequest>) {
5462
5467
  super()
5463
5468
  proto3.util.initPartial(data, this)
@@ -5480,6 +5485,13 @@ export class GetActorsRequest extends Message<GetActorsRequest> {
5480
5485
  T: 9 /* ScalarType.STRING */,
5481
5486
  repeated: true,
5482
5487
  },
5488
+ {
5489
+ no: 3,
5490
+ name: 'return_age_assurance_for_dids',
5491
+ kind: 'scalar',
5492
+ T: 9 /* ScalarType.STRING */,
5493
+ repeated: true,
5494
+ },
5483
5495
  ])
5484
5496
 
5485
5497
  static fromBinary(
@@ -5609,6 +5621,11 @@ export class ActorInfo extends Message<ActorInfo> {
5609
5621
  */
5610
5622
  allowActivitySubscriptionsFrom = ''
5611
5623
 
5624
+ /**
5625
+ * @generated from field: optional bsky.AgeAssuranceStatus age_assurance_status = 19;
5626
+ */
5627
+ ageAssuranceStatus?: AgeAssuranceStatus
5628
+
5612
5629
  constructor(data?: PartialMessage<ActorInfo>) {
5613
5630
  super()
5614
5631
  proto3.util.initPartial(data, this)
@@ -5683,6 +5700,13 @@ export class ActorInfo extends Message<ActorInfo> {
5683
5700
  kind: 'scalar',
5684
5701
  T: 9 /* ScalarType.STRING */,
5685
5702
  },
5703
+ {
5704
+ no: 19,
5705
+ name: 'age_assurance_status',
5706
+ kind: 'message',
5707
+ T: AgeAssuranceStatus,
5708
+ opt: true,
5709
+ },
5686
5710
  ])
5687
5711
 
5688
5712
  static fromBinary(
@@ -5714,6 +5738,61 @@ export class ActorInfo extends Message<ActorInfo> {
5714
5738
  }
5715
5739
  }
5716
5740
 
5741
+ /**
5742
+ * @generated from message bsky.AgeAssuranceStatus
5743
+ */
5744
+ export class AgeAssuranceStatus extends Message<AgeAssuranceStatus> {
5745
+ /**
5746
+ * @generated from field: string status = 1;
5747
+ */
5748
+ status = ''
5749
+
5750
+ /**
5751
+ * @generated from field: google.protobuf.Timestamp last_initiated_at = 2;
5752
+ */
5753
+ lastInitiatedAt?: Timestamp
5754
+
5755
+ constructor(data?: PartialMessage<AgeAssuranceStatus>) {
5756
+ super()
5757
+ proto3.util.initPartial(data, this)
5758
+ }
5759
+
5760
+ static readonly runtime: typeof proto3 = proto3
5761
+ static readonly typeName = 'bsky.AgeAssuranceStatus'
5762
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
5763
+ { no: 1, name: 'status', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
5764
+ { no: 2, name: 'last_initiated_at', kind: 'message', T: Timestamp },
5765
+ ])
5766
+
5767
+ static fromBinary(
5768
+ bytes: Uint8Array,
5769
+ options?: Partial<BinaryReadOptions>,
5770
+ ): AgeAssuranceStatus {
5771
+ return new AgeAssuranceStatus().fromBinary(bytes, options)
5772
+ }
5773
+
5774
+ static fromJson(
5775
+ jsonValue: JsonValue,
5776
+ options?: Partial<JsonReadOptions>,
5777
+ ): AgeAssuranceStatus {
5778
+ return new AgeAssuranceStatus().fromJson(jsonValue, options)
5779
+ }
5780
+
5781
+ static fromJsonString(
5782
+ jsonString: string,
5783
+ options?: Partial<JsonReadOptions>,
5784
+ ): AgeAssuranceStatus {
5785
+ return new AgeAssuranceStatus().fromJsonString(jsonString, options)
5786
+ }
5787
+
5788
+ static equals(
5789
+ a: AgeAssuranceStatus | PlainMessage<AgeAssuranceStatus> | undefined,
5790
+ b: AgeAssuranceStatus | PlainMessage<AgeAssuranceStatus> | undefined,
5791
+ ): boolean {
5792
+ return proto3.util.equals(AgeAssuranceStatus, a, b)
5793
+ }
5794
+ }
5795
+
5717
5796
  /**
5718
5797
  * @generated from message bsky.GetActorsResponse
5719
5798
  */
package/src/stash.ts CHANGED
@@ -5,6 +5,7 @@ import {
5
5
  Preferences,
6
6
  SubjectActivitySubscription,
7
7
  } from './lexicon/types/app/bsky/notification/defs'
8
+ import { AgeAssuranceEvent } from './lexicon/types/app/bsky/unspecced/defs'
8
9
  import { Method } from './proto/bsync_pb'
9
10
 
10
11
  type PickNSID<T extends { $type?: string }> = Exclude<T['$type'], undefined>
@@ -14,6 +15,8 @@ export const Namespaces = {
14
15
  'app.bsky.notification.defs#preferences' satisfies PickNSID<Preferences>,
15
16
  AppBskyNotificationDefsSubjectActivitySubscription:
16
17
  'app.bsky.notification.defs#subjectActivitySubscription' satisfies PickNSID<SubjectActivitySubscription>,
18
+ AppBskyUnspeccedDefsAgeAssuranceEvent:
19
+ 'app.bsky.unspecced.defs#ageAssuranceEvent' satisfies PickNSID<AgeAssuranceEvent>,
17
20
  }
18
21
 
19
22
  export type Namespace = (typeof Namespaces)[keyof typeof Namespaces]