@atproto/bsky 0.0.197 → 0.0.199

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 (188) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/api/age-assurance/const.d.ts +11 -0
  3. package/dist/api/age-assurance/const.d.ts.map +1 -0
  4. package/dist/api/age-assurance/const.js +142 -0
  5. package/dist/api/age-assurance/const.js.map +1 -0
  6. package/dist/api/age-assurance/index.d.ts +4 -0
  7. package/dist/api/age-assurance/index.d.ts.map +1 -0
  8. package/dist/api/age-assurance/index.js +24 -0
  9. package/dist/api/age-assurance/index.js.map +1 -0
  10. package/dist/api/age-assurance/kws/age-verified.d.ts +109 -0
  11. package/dist/api/age-assurance/kws/age-verified.d.ts.map +1 -0
  12. package/dist/api/age-assurance/kws/age-verified.js +63 -0
  13. package/dist/api/age-assurance/kws/age-verified.js.map +1 -0
  14. package/dist/api/age-assurance/kws/const.d.ts +13 -0
  15. package/dist/api/age-assurance/kws/const.d.ts.map +1 -0
  16. package/dist/api/age-assurance/kws/const.js +36 -0
  17. package/dist/api/age-assurance/kws/const.js.map +1 -0
  18. package/dist/api/age-assurance/kws/external-payload.d.ts +75 -0
  19. package/dist/api/age-assurance/kws/external-payload.d.ts.map +1 -0
  20. package/dist/api/age-assurance/kws/external-payload.js +124 -0
  21. package/dist/api/age-assurance/kws/external-payload.js.map +1 -0
  22. package/dist/api/age-assurance/kws/external-payload.test.d.ts +2 -0
  23. package/dist/api/age-assurance/kws/external-payload.test.d.ts.map +1 -0
  24. package/dist/api/age-assurance/kws/external-payload.test.js +65 -0
  25. package/dist/api/age-assurance/kws/external-payload.test.js.map +1 -0
  26. package/dist/api/age-assurance/redirects/kws-age-verified.d.ts +4 -0
  27. package/dist/api/age-assurance/redirects/kws-age-verified.d.ts.map +1 -0
  28. package/dist/api/age-assurance/redirects/kws-age-verified.js +76 -0
  29. package/dist/api/age-assurance/redirects/kws-age-verified.js.map +1 -0
  30. package/dist/api/age-assurance/stash.d.ts +4 -0
  31. package/dist/api/age-assurance/stash.d.ts.map +1 -0
  32. package/dist/api/age-assurance/stash.js +19 -0
  33. package/dist/api/age-assurance/stash.js.map +1 -0
  34. package/dist/api/age-assurance/types.d.ts +10 -0
  35. package/dist/api/age-assurance/types.d.ts.map +1 -0
  36. package/dist/api/age-assurance/types.js +3 -0
  37. package/dist/api/age-assurance/types.js.map +1 -0
  38. package/dist/api/age-assurance/util.d.ts +15 -0
  39. package/dist/api/age-assurance/util.d.ts.map +1 -0
  40. package/dist/api/age-assurance/util.js +54 -0
  41. package/dist/api/age-assurance/util.js.map +1 -0
  42. package/dist/api/age-assurance/webhooks/kws-age-verified.d.ts +4 -0
  43. package/dist/api/age-assurance/webhooks/kws-age-verified.d.ts.map +1 -0
  44. package/dist/api/age-assurance/webhooks/kws-age-verified.js +63 -0
  45. package/dist/api/age-assurance/webhooks/kws-age-verified.js.map +1 -0
  46. package/dist/api/app/bsky/ageassurance/begin.d.ts +4 -0
  47. package/dist/api/app/bsky/ageassurance/begin.d.ts.map +1 -0
  48. package/dist/api/app/bsky/ageassurance/begin.js +131 -0
  49. package/dist/api/app/bsky/ageassurance/begin.js.map +1 -0
  50. package/dist/api/app/bsky/ageassurance/getConfig.d.ts +4 -0
  51. package/dist/api/app/bsky/ageassurance/getConfig.d.ts.map +1 -0
  52. package/dist/api/app/bsky/ageassurance/getConfig.js +16 -0
  53. package/dist/api/app/bsky/ageassurance/getConfig.js.map +1 -0
  54. package/dist/api/app/bsky/ageassurance/getState.d.ts +4 -0
  55. package/dist/api/app/bsky/ageassurance/getState.d.ts.map +1 -0
  56. package/dist/api/app/bsky/ageassurance/getState.js +42 -0
  57. package/dist/api/app/bsky/ageassurance/getState.js.map +1 -0
  58. package/dist/api/external.d.ts.map +1 -1
  59. package/dist/api/external.js +2 -0
  60. package/dist/api/external.js.map +1 -1
  61. package/dist/api/index.d.ts.map +1 -1
  62. package/dist/api/index.js +8 -2
  63. package/dist/api/index.js.map +1 -1
  64. package/dist/api/kws/api.d.ts.map +1 -1
  65. package/dist/api/kws/api.js +44 -26
  66. package/dist/api/kws/api.js.map +1 -1
  67. package/dist/api/kws/index.d.ts.map +1 -1
  68. package/dist/api/kws/index.js +3 -1
  69. package/dist/api/kws/index.js.map +1 -1
  70. package/dist/api/kws/webhook.d.ts +3 -1
  71. package/dist/api/kws/webhook.d.ts.map +1 -1
  72. package/dist/api/kws/webhook.js +48 -20
  73. package/dist/api/kws/webhook.js.map +1 -1
  74. package/dist/config.d.ts +14 -0
  75. package/dist/config.d.ts.map +1 -1
  76. package/dist/config.js +10 -2
  77. package/dist/config.js.map +1 -1
  78. package/dist/data-plane/bsync/index.d.ts.map +1 -1
  79. package/dist/data-plane/bsync/index.js +22 -0
  80. package/dist/data-plane/bsync/index.js.map +1 -1
  81. package/dist/data-plane/server/db/migrations/20251120T004738098Z-update-actor-age-assurance-v2.d.ts +4 -0
  82. package/dist/data-plane/server/db/migrations/20251120T004738098Z-update-actor-age-assurance-v2.d.ts.map +1 -0
  83. package/dist/data-plane/server/db/migrations/20251120T004738098Z-update-actor-age-assurance-v2.js +30 -0
  84. package/dist/data-plane/server/db/migrations/20251120T004738098Z-update-actor-age-assurance-v2.js.map +1 -0
  85. package/dist/data-plane/server/db/migrations/index.d.ts +1 -0
  86. package/dist/data-plane/server/db/migrations/index.d.ts.map +1 -1
  87. package/dist/data-plane/server/db/migrations/index.js +2 -1
  88. package/dist/data-plane/server/db/migrations/index.js.map +1 -1
  89. package/dist/data-plane/server/db/pagination.d.ts +3 -3
  90. package/dist/data-plane/server/db/tables/actor.d.ts +3 -0
  91. package/dist/data-plane/server/db/tables/actor.d.ts.map +1 -1
  92. package/dist/data-plane/server/db/tables/actor.js.map +1 -1
  93. package/dist/data-plane/server/routes/profile.d.ts.map +1 -1
  94. package/dist/data-plane/server/routes/profile.js +13 -1
  95. package/dist/data-plane/server/routes/profile.js.map +1 -1
  96. package/dist/hydration/hydrator.js +1 -1
  97. package/dist/hydration/hydrator.js.map +1 -1
  98. package/dist/kws.d.ts +35 -0
  99. package/dist/kws.d.ts.map +1 -1
  100. package/dist/kws.js +54 -0
  101. package/dist/kws.js.map +1 -1
  102. package/dist/lexicon/index.d.ts +11 -0
  103. package/dist/lexicon/index.d.ts.map +1 -1
  104. package/dist/lexicon/index.js +32 -1
  105. package/dist/lexicon/index.js.map +1 -1
  106. package/dist/lexicon/lexicons.d.ts +700 -0
  107. package/dist/lexicon/lexicons.d.ts.map +1 -1
  108. package/dist/lexicon/lexicons.js +367 -0
  109. package/dist/lexicon/lexicons.js.map +1 -1
  110. package/dist/lexicon/types/app/bsky/ageassurance/begin.d.ts +31 -0
  111. package/dist/lexicon/types/app/bsky/ageassurance/begin.d.ts.map +1 -0
  112. package/dist/lexicon/types/app/bsky/ageassurance/begin.js +7 -0
  113. package/dist/lexicon/types/app/bsky/ageassurance/begin.js.map +1 -0
  114. package/dist/lexicon/types/app/bsky/ageassurance/defs.d.ts +138 -0
  115. package/dist/lexicon/types/app/bsky/ageassurance/defs.d.ts.map +1 -0
  116. package/dist/lexicon/types/app/bsky/ageassurance/defs.js +115 -0
  117. package/dist/lexicon/types/app/bsky/ageassurance/defs.js.map +1 -0
  118. package/dist/lexicon/types/app/bsky/ageassurance/getConfig.d.ts +18 -0
  119. package/dist/lexicon/types/app/bsky/ageassurance/getConfig.d.ts.map +1 -0
  120. package/dist/lexicon/types/app/bsky/ageassurance/getConfig.js +7 -0
  121. package/dist/lexicon/types/app/bsky/ageassurance/getConfig.js.map +1 -0
  122. package/dist/lexicon/types/app/bsky/ageassurance/getState.d.ts +24 -0
  123. package/dist/lexicon/types/app/bsky/ageassurance/getState.d.ts.map +1 -0
  124. package/dist/lexicon/types/app/bsky/ageassurance/getState.js +7 -0
  125. package/dist/lexicon/types/app/bsky/ageassurance/getState.js.map +1 -0
  126. package/dist/logger.d.ts +1 -0
  127. package/dist/logger.d.ts.map +1 -1
  128. package/dist/logger.js +2 -1
  129. package/dist/logger.js.map +1 -1
  130. package/dist/proto/bsky_pb.d.ts +8 -0
  131. package/dist/proto/bsky_pb.d.ts.map +1 -1
  132. package/dist/proto/bsky_pb.js +20 -0
  133. package/dist/proto/bsky_pb.js.map +1 -1
  134. package/dist/stash.d.ts +1 -0
  135. package/dist/stash.d.ts.map +1 -1
  136. package/dist/stash.js +2 -0
  137. package/dist/stash.js.map +1 -1
  138. package/dist/util/uris.d.ts +2 -2
  139. package/dist/util/uris.d.ts.map +1 -1
  140. package/package.json +17 -16
  141. package/proto/bsky.proto +1 -0
  142. package/src/api/age-assurance/const.ts +142 -0
  143. package/src/api/age-assurance/index.ts +34 -0
  144. package/src/api/age-assurance/kws/age-verified.ts +75 -0
  145. package/src/api/age-assurance/kws/const.ts +33 -0
  146. package/src/api/age-assurance/kws/external-payload.test.ts +72 -0
  147. package/src/api/age-assurance/kws/external-payload.ts +149 -0
  148. package/src/api/age-assurance/redirects/kws-age-verified.ts +107 -0
  149. package/src/api/age-assurance/stash.ts +22 -0
  150. package/src/api/age-assurance/types.ts +10 -0
  151. package/src/api/age-assurance/util.ts +66 -0
  152. package/src/api/age-assurance/webhooks/kws-age-verified.ts +75 -0
  153. package/src/api/app/bsky/ageassurance/begin.ts +167 -0
  154. package/src/api/app/bsky/ageassurance/getConfig.ts +15 -0
  155. package/src/api/app/bsky/ageassurance/getState.ts +53 -0
  156. package/src/api/external.ts +2 -0
  157. package/src/api/index.ts +6 -0
  158. package/src/api/kws/api.ts +55 -34
  159. package/src/api/kws/index.ts +7 -1
  160. package/src/api/kws/webhook.ts +57 -34
  161. package/src/config.ts +26 -2
  162. package/src/data-plane/bsync/index.ts +31 -0
  163. package/src/data-plane/server/db/migrations/20251120T004738098Z-update-actor-age-assurance-v2.ts +28 -0
  164. package/src/data-plane/server/db/migrations/index.ts +1 -0
  165. package/src/data-plane/server/db/tables/actor.ts +3 -0
  166. package/src/data-plane/server/routes/profile.ts +12 -1
  167. package/src/hydration/hydrator.ts +1 -1
  168. package/src/kws.ts +81 -0
  169. package/src/lexicon/index.ts +49 -0
  170. package/src/lexicon/lexicons.ts +392 -0
  171. package/src/lexicon/types/app/bsky/ageassurance/begin.ts +54 -0
  172. package/src/lexicon/types/app/bsky/ageassurance/defs.ts +301 -0
  173. package/src/lexicon/types/app/bsky/ageassurance/getConfig.ts +34 -0
  174. package/src/lexicon/types/app/bsky/ageassurance/getState.ts +42 -0
  175. package/src/logger.ts +2 -0
  176. package/src/proto/bsky_pb.ts +12 -0
  177. package/src/stash.ts +5 -0
  178. package/tests/blob-resolver.test.ts +2 -0
  179. package/tests/data-plane/duplicate-records.test.ts +2 -0
  180. package/tests/data-plane/indexing.test.ts +2 -0
  181. package/tests/data-plane/subscription.test.ts +2 -0
  182. package/tests/image/server.test.ts +2 -0
  183. package/tests/image/uri.test.ts +2 -0
  184. package/tests/views/age-assurance-v2.test.ts +745 -0
  185. package/tests/views/age-assurance.test.ts +2 -0
  186. package/tests/views/posts.test.ts +96 -0
  187. package/tsconfig.build.tsbuildinfo +1 -1
  188. package/tsconfig.tests.tsbuildinfo +1 -1
@@ -1126,6 +1126,356 @@ export declare const schemaDict: {
1126
1126
  };
1127
1127
  };
1128
1128
  };
1129
+ readonly AppBskyAgeassuranceBegin: {
1130
+ readonly lexicon: 1;
1131
+ readonly id: "app.bsky.ageassurance.begin";
1132
+ readonly defs: {
1133
+ readonly main: {
1134
+ readonly type: "procedure";
1135
+ readonly description: "Initiate Age Assurance for an account.";
1136
+ readonly input: {
1137
+ readonly encoding: "application/json";
1138
+ readonly schema: {
1139
+ readonly type: "object";
1140
+ readonly required: ["email", "language", "countryCode"];
1141
+ readonly properties: {
1142
+ readonly email: {
1143
+ readonly type: "string";
1144
+ readonly description: "The user's email address to receive Age Assurance instructions.";
1145
+ };
1146
+ readonly language: {
1147
+ readonly type: "string";
1148
+ readonly description: "The user's preferred language for communication during the Age Assurance process.";
1149
+ };
1150
+ readonly countryCode: {
1151
+ readonly type: "string";
1152
+ readonly description: "An ISO 3166-1 alpha-2 code of the user's location.";
1153
+ };
1154
+ readonly regionCode: {
1155
+ readonly type: "string";
1156
+ readonly description: "An optional ISO 3166-2 code of the user's region or state within the country.";
1157
+ };
1158
+ };
1159
+ };
1160
+ };
1161
+ readonly output: {
1162
+ readonly encoding: "application/json";
1163
+ readonly schema: {
1164
+ readonly type: "ref";
1165
+ readonly ref: "lex:app.bsky.ageassurance.defs#state";
1166
+ };
1167
+ };
1168
+ readonly errors: [{
1169
+ readonly name: "InvalidEmail";
1170
+ }, {
1171
+ readonly name: "DidTooLong";
1172
+ }, {
1173
+ readonly name: "InvalidInitiation";
1174
+ }, {
1175
+ readonly name: "RegionNotSupported";
1176
+ }];
1177
+ };
1178
+ };
1179
+ };
1180
+ readonly AppBskyAgeassuranceDefs: {
1181
+ readonly lexicon: 1;
1182
+ readonly id: "app.bsky.ageassurance.defs";
1183
+ readonly defs: {
1184
+ readonly access: {
1185
+ readonly description: "The access level granted based on Age Assurance data we've processed.";
1186
+ readonly type: "string";
1187
+ readonly knownValues: ["unknown", "none", "safe", "full"];
1188
+ };
1189
+ readonly status: {
1190
+ readonly type: "string";
1191
+ readonly description: "The status of the Age Assurance process.";
1192
+ readonly knownValues: ["unknown", "pending", "assured", "blocked"];
1193
+ };
1194
+ readonly state: {
1195
+ readonly type: "object";
1196
+ readonly description: "The user's computed Age Assurance state.";
1197
+ readonly required: ["status", "access"];
1198
+ readonly properties: {
1199
+ readonly lastInitiatedAt: {
1200
+ readonly type: "string";
1201
+ readonly format: "datetime";
1202
+ readonly description: "The timestamp when this state was last updated.";
1203
+ };
1204
+ readonly status: {
1205
+ readonly type: "ref";
1206
+ readonly ref: "lex:app.bsky.ageassurance.defs#status";
1207
+ };
1208
+ readonly access: {
1209
+ readonly type: "ref";
1210
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
1211
+ };
1212
+ };
1213
+ };
1214
+ readonly stateMetadata: {
1215
+ readonly type: "object";
1216
+ readonly description: "Additional metadata needed to compute Age Assurance state client-side.";
1217
+ readonly required: [];
1218
+ readonly properties: {
1219
+ readonly accountCreatedAt: {
1220
+ readonly type: "string";
1221
+ readonly format: "datetime";
1222
+ readonly description: "The account creation timestamp.";
1223
+ };
1224
+ };
1225
+ };
1226
+ readonly config: {
1227
+ readonly type: "object";
1228
+ readonly description: "";
1229
+ readonly required: ["regions"];
1230
+ readonly properties: {
1231
+ readonly regions: {
1232
+ readonly type: "array";
1233
+ readonly description: "The per-region Age Assurance configuration.";
1234
+ readonly items: {
1235
+ readonly type: "ref";
1236
+ readonly ref: "lex:app.bsky.ageassurance.defs#configRegion";
1237
+ };
1238
+ };
1239
+ };
1240
+ };
1241
+ readonly configRegion: {
1242
+ readonly type: "object";
1243
+ readonly description: "The Age Assurance configuration for a specific region.";
1244
+ readonly required: ["countryCode", "rules"];
1245
+ readonly properties: {
1246
+ readonly countryCode: {
1247
+ readonly type: "string";
1248
+ readonly description: "The ISO 3166-1 alpha-2 country code this configuration applies to.";
1249
+ };
1250
+ readonly regionCode: {
1251
+ readonly type: "string";
1252
+ readonly description: "The ISO 3166-2 region code this configuration applies to. If omitted, the configuration applies to the entire country.";
1253
+ };
1254
+ readonly rules: {
1255
+ readonly type: "array";
1256
+ readonly description: "The ordered list of Age Assurance rules that apply to this region. Rules should be applied in order, and the first matching rule determines the access level granted. The rules array should always include a default rule as the last item.";
1257
+ readonly items: {
1258
+ readonly type: "union";
1259
+ readonly refs: ["lex:app.bsky.ageassurance.defs#configRegionRuleDefault", "lex:app.bsky.ageassurance.defs#configRegionRuleIfDeclaredOverAge", "lex:app.bsky.ageassurance.defs#configRegionRuleIfDeclaredUnderAge", "lex:app.bsky.ageassurance.defs#configRegionRuleIfAssuredOverAge", "lex:app.bsky.ageassurance.defs#configRegionRuleIfAssuredUnderAge", "lex:app.bsky.ageassurance.defs#configRegionRuleIfAccountNewerThan", "lex:app.bsky.ageassurance.defs#configRegionRuleIfAccountOlderThan"];
1260
+ };
1261
+ };
1262
+ };
1263
+ };
1264
+ readonly configRegionRuleDefault: {
1265
+ readonly type: "object";
1266
+ readonly description: "Age Assurance rule that applies by default.";
1267
+ readonly required: ["access"];
1268
+ readonly properties: {
1269
+ readonly access: {
1270
+ readonly type: "ref";
1271
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
1272
+ };
1273
+ };
1274
+ };
1275
+ readonly configRegionRuleIfDeclaredOverAge: {
1276
+ readonly type: "object";
1277
+ readonly description: "Age Assurance rule that applies if the user has declared themselves equal-to or over a certain age.";
1278
+ readonly required: ["age", "access"];
1279
+ readonly properties: {
1280
+ readonly age: {
1281
+ readonly type: "integer";
1282
+ readonly description: "The age threshold as a whole integer.";
1283
+ };
1284
+ readonly access: {
1285
+ readonly type: "ref";
1286
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
1287
+ };
1288
+ };
1289
+ };
1290
+ readonly configRegionRuleIfDeclaredUnderAge: {
1291
+ readonly type: "object";
1292
+ readonly description: "Age Assurance rule that applies if the user has declared themselves under a certain age.";
1293
+ readonly required: ["age", "access"];
1294
+ readonly properties: {
1295
+ readonly age: {
1296
+ readonly type: "integer";
1297
+ readonly description: "The age threshold as a whole integer.";
1298
+ };
1299
+ readonly access: {
1300
+ readonly type: "ref";
1301
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
1302
+ };
1303
+ };
1304
+ };
1305
+ readonly configRegionRuleIfAssuredOverAge: {
1306
+ readonly type: "object";
1307
+ readonly description: "Age Assurance rule that applies if the user has been assured to be equal-to or over a certain age.";
1308
+ readonly required: ["age", "access"];
1309
+ readonly properties: {
1310
+ readonly age: {
1311
+ readonly type: "integer";
1312
+ readonly description: "The age threshold as a whole integer.";
1313
+ };
1314
+ readonly access: {
1315
+ readonly type: "ref";
1316
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
1317
+ };
1318
+ };
1319
+ };
1320
+ readonly configRegionRuleIfAssuredUnderAge: {
1321
+ readonly type: "object";
1322
+ readonly description: "Age Assurance rule that applies if the user has been assured to be under a certain age.";
1323
+ readonly required: ["age", "access"];
1324
+ readonly properties: {
1325
+ readonly age: {
1326
+ readonly type: "integer";
1327
+ readonly description: "The age threshold as a whole integer.";
1328
+ };
1329
+ readonly access: {
1330
+ readonly type: "ref";
1331
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
1332
+ };
1333
+ };
1334
+ };
1335
+ readonly configRegionRuleIfAccountNewerThan: {
1336
+ readonly type: "object";
1337
+ readonly description: "Age Assurance rule that applies if the account is equal-to or newer than a certain date.";
1338
+ readonly required: ["date", "access"];
1339
+ readonly properties: {
1340
+ readonly date: {
1341
+ readonly type: "string";
1342
+ readonly format: "datetime";
1343
+ readonly description: "The date threshold as a datetime string.";
1344
+ };
1345
+ readonly access: {
1346
+ readonly type: "ref";
1347
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
1348
+ };
1349
+ };
1350
+ };
1351
+ readonly configRegionRuleIfAccountOlderThan: {
1352
+ readonly type: "object";
1353
+ readonly description: "Age Assurance rule that applies if the account is older than a certain date.";
1354
+ readonly required: ["date", "access"];
1355
+ readonly properties: {
1356
+ readonly date: {
1357
+ readonly type: "string";
1358
+ readonly format: "datetime";
1359
+ readonly description: "The date threshold as a datetime string.";
1360
+ };
1361
+ readonly access: {
1362
+ readonly type: "ref";
1363
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
1364
+ };
1365
+ };
1366
+ };
1367
+ readonly event: {
1368
+ readonly type: "object";
1369
+ readonly description: "Object used to store Age Assurance data in stash.";
1370
+ readonly required: ["createdAt", "status", "access", "attemptId", "countryCode"];
1371
+ readonly properties: {
1372
+ readonly createdAt: {
1373
+ readonly type: "string";
1374
+ readonly format: "datetime";
1375
+ readonly description: "The date and time of this write operation.";
1376
+ };
1377
+ readonly attemptId: {
1378
+ readonly type: "string";
1379
+ readonly description: "The unique identifier for this instance of the Age Assurance flow, in UUID format.";
1380
+ };
1381
+ readonly status: {
1382
+ readonly type: "string";
1383
+ readonly description: "The status of the Age Assurance process.";
1384
+ readonly knownValues: ["unknown", "pending", "assured", "blocked"];
1385
+ };
1386
+ readonly access: {
1387
+ readonly description: "The access level granted based on Age Assurance data we've processed.";
1388
+ readonly type: "string";
1389
+ readonly knownValues: ["unknown", "none", "safe", "full"];
1390
+ };
1391
+ readonly countryCode: {
1392
+ readonly type: "string";
1393
+ readonly description: "The ISO 3166-1 alpha-2 country code provided when beginning the Age Assurance flow.";
1394
+ };
1395
+ readonly regionCode: {
1396
+ readonly type: "string";
1397
+ readonly description: "The ISO 3166-2 region code provided when beginning the Age Assurance flow.";
1398
+ };
1399
+ readonly email: {
1400
+ readonly type: "string";
1401
+ readonly description: "The email used for Age Assurance.";
1402
+ };
1403
+ readonly initIp: {
1404
+ readonly type: "string";
1405
+ readonly description: "The IP address used when initiating the Age Assurance flow.";
1406
+ };
1407
+ readonly initUa: {
1408
+ readonly type: "string";
1409
+ readonly description: "The user agent used when initiating the Age Assurance flow.";
1410
+ };
1411
+ readonly completeIp: {
1412
+ readonly type: "string";
1413
+ readonly description: "The IP address used when completing the Age Assurance flow.";
1414
+ };
1415
+ readonly completeUa: {
1416
+ readonly type: "string";
1417
+ readonly description: "The user agent used when completing the Age Assurance flow.";
1418
+ };
1419
+ };
1420
+ };
1421
+ };
1422
+ };
1423
+ readonly AppBskyAgeassuranceGetConfig: {
1424
+ readonly lexicon: 1;
1425
+ readonly id: "app.bsky.ageassurance.getConfig";
1426
+ readonly defs: {
1427
+ readonly main: {
1428
+ readonly type: "query";
1429
+ readonly description: "Returns Age Assurance configuration for use on the client.";
1430
+ readonly output: {
1431
+ readonly encoding: "application/json";
1432
+ readonly schema: {
1433
+ readonly type: "ref";
1434
+ readonly ref: "lex:app.bsky.ageassurance.defs#config";
1435
+ };
1436
+ };
1437
+ };
1438
+ };
1439
+ };
1440
+ readonly AppBskyAgeassuranceGetState: {
1441
+ readonly lexicon: 1;
1442
+ readonly id: "app.bsky.ageassurance.getState";
1443
+ readonly defs: {
1444
+ readonly main: {
1445
+ readonly type: "query";
1446
+ readonly description: "Returns server-computed Age Assurance state, if available, and any additional metadata needed to compute Age Assurance state client-side.";
1447
+ readonly parameters: {
1448
+ readonly type: "params";
1449
+ readonly required: ["countryCode"];
1450
+ readonly properties: {
1451
+ readonly countryCode: {
1452
+ readonly type: "string";
1453
+ };
1454
+ readonly regionCode: {
1455
+ readonly type: "string";
1456
+ };
1457
+ };
1458
+ };
1459
+ readonly output: {
1460
+ readonly encoding: "application/json";
1461
+ readonly schema: {
1462
+ readonly type: "object";
1463
+ readonly required: ["state", "metadata"];
1464
+ readonly properties: {
1465
+ readonly state: {
1466
+ readonly type: "ref";
1467
+ readonly ref: "lex:app.bsky.ageassurance.defs#state";
1468
+ };
1469
+ readonly metadata: {
1470
+ readonly type: "ref";
1471
+ readonly ref: "lex:app.bsky.ageassurance.defs#stateMetadata";
1472
+ };
1473
+ };
1474
+ };
1475
+ };
1476
+ };
1477
+ };
1478
+ };
1129
1479
  readonly AppBskyBookmarkCreateBookmark: {
1130
1480
  readonly lexicon: 1;
1131
1481
  readonly id: "app.bsky.bookmark.createBookmark";
@@ -14095,6 +14445,352 @@ export declare const schemas: ({
14095
14445
  readonly description: "Advertises an account as currently offering live content.";
14096
14446
  };
14097
14447
  };
14448
+ } | {
14449
+ readonly lexicon: 1;
14450
+ readonly id: "app.bsky.ageassurance.begin";
14451
+ readonly defs: {
14452
+ readonly main: {
14453
+ readonly type: "procedure";
14454
+ readonly description: "Initiate Age Assurance for an account.";
14455
+ readonly input: {
14456
+ readonly encoding: "application/json";
14457
+ readonly schema: {
14458
+ readonly type: "object";
14459
+ readonly required: ["email", "language", "countryCode"];
14460
+ readonly properties: {
14461
+ readonly email: {
14462
+ readonly type: "string";
14463
+ readonly description: "The user's email address to receive Age Assurance instructions.";
14464
+ };
14465
+ readonly language: {
14466
+ readonly type: "string";
14467
+ readonly description: "The user's preferred language for communication during the Age Assurance process.";
14468
+ };
14469
+ readonly countryCode: {
14470
+ readonly type: "string";
14471
+ readonly description: "An ISO 3166-1 alpha-2 code of the user's location.";
14472
+ };
14473
+ readonly regionCode: {
14474
+ readonly type: "string";
14475
+ readonly description: "An optional ISO 3166-2 code of the user's region or state within the country.";
14476
+ };
14477
+ };
14478
+ };
14479
+ };
14480
+ readonly output: {
14481
+ readonly encoding: "application/json";
14482
+ readonly schema: {
14483
+ readonly type: "ref";
14484
+ readonly ref: "lex:app.bsky.ageassurance.defs#state";
14485
+ };
14486
+ };
14487
+ readonly errors: [{
14488
+ readonly name: "InvalidEmail";
14489
+ }, {
14490
+ readonly name: "DidTooLong";
14491
+ }, {
14492
+ readonly name: "InvalidInitiation";
14493
+ }, {
14494
+ readonly name: "RegionNotSupported";
14495
+ }];
14496
+ };
14497
+ };
14498
+ } | {
14499
+ readonly lexicon: 1;
14500
+ readonly id: "app.bsky.ageassurance.defs";
14501
+ readonly defs: {
14502
+ readonly access: {
14503
+ readonly description: "The access level granted based on Age Assurance data we've processed.";
14504
+ readonly type: "string";
14505
+ readonly knownValues: ["unknown", "none", "safe", "full"];
14506
+ };
14507
+ readonly status: {
14508
+ readonly type: "string";
14509
+ readonly description: "The status of the Age Assurance process.";
14510
+ readonly knownValues: ["unknown", "pending", "assured", "blocked"];
14511
+ };
14512
+ readonly state: {
14513
+ readonly type: "object";
14514
+ readonly description: "The user's computed Age Assurance state.";
14515
+ readonly required: ["status", "access"];
14516
+ readonly properties: {
14517
+ readonly lastInitiatedAt: {
14518
+ readonly type: "string";
14519
+ readonly format: "datetime";
14520
+ readonly description: "The timestamp when this state was last updated.";
14521
+ };
14522
+ readonly status: {
14523
+ readonly type: "ref";
14524
+ readonly ref: "lex:app.bsky.ageassurance.defs#status";
14525
+ };
14526
+ readonly access: {
14527
+ readonly type: "ref";
14528
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
14529
+ };
14530
+ };
14531
+ };
14532
+ readonly stateMetadata: {
14533
+ readonly type: "object";
14534
+ readonly description: "Additional metadata needed to compute Age Assurance state client-side.";
14535
+ readonly required: [];
14536
+ readonly properties: {
14537
+ readonly accountCreatedAt: {
14538
+ readonly type: "string";
14539
+ readonly format: "datetime";
14540
+ readonly description: "The account creation timestamp.";
14541
+ };
14542
+ };
14543
+ };
14544
+ readonly config: {
14545
+ readonly type: "object";
14546
+ readonly description: "";
14547
+ readonly required: ["regions"];
14548
+ readonly properties: {
14549
+ readonly regions: {
14550
+ readonly type: "array";
14551
+ readonly description: "The per-region Age Assurance configuration.";
14552
+ readonly items: {
14553
+ readonly type: "ref";
14554
+ readonly ref: "lex:app.bsky.ageassurance.defs#configRegion";
14555
+ };
14556
+ };
14557
+ };
14558
+ };
14559
+ readonly configRegion: {
14560
+ readonly type: "object";
14561
+ readonly description: "The Age Assurance configuration for a specific region.";
14562
+ readonly required: ["countryCode", "rules"];
14563
+ readonly properties: {
14564
+ readonly countryCode: {
14565
+ readonly type: "string";
14566
+ readonly description: "The ISO 3166-1 alpha-2 country code this configuration applies to.";
14567
+ };
14568
+ readonly regionCode: {
14569
+ readonly type: "string";
14570
+ readonly description: "The ISO 3166-2 region code this configuration applies to. If omitted, the configuration applies to the entire country.";
14571
+ };
14572
+ readonly rules: {
14573
+ readonly type: "array";
14574
+ readonly description: "The ordered list of Age Assurance rules that apply to this region. Rules should be applied in order, and the first matching rule determines the access level granted. The rules array should always include a default rule as the last item.";
14575
+ readonly items: {
14576
+ readonly type: "union";
14577
+ readonly refs: ["lex:app.bsky.ageassurance.defs#configRegionRuleDefault", "lex:app.bsky.ageassurance.defs#configRegionRuleIfDeclaredOverAge", "lex:app.bsky.ageassurance.defs#configRegionRuleIfDeclaredUnderAge", "lex:app.bsky.ageassurance.defs#configRegionRuleIfAssuredOverAge", "lex:app.bsky.ageassurance.defs#configRegionRuleIfAssuredUnderAge", "lex:app.bsky.ageassurance.defs#configRegionRuleIfAccountNewerThan", "lex:app.bsky.ageassurance.defs#configRegionRuleIfAccountOlderThan"];
14578
+ };
14579
+ };
14580
+ };
14581
+ };
14582
+ readonly configRegionRuleDefault: {
14583
+ readonly type: "object";
14584
+ readonly description: "Age Assurance rule that applies by default.";
14585
+ readonly required: ["access"];
14586
+ readonly properties: {
14587
+ readonly access: {
14588
+ readonly type: "ref";
14589
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
14590
+ };
14591
+ };
14592
+ };
14593
+ readonly configRegionRuleIfDeclaredOverAge: {
14594
+ readonly type: "object";
14595
+ readonly description: "Age Assurance rule that applies if the user has declared themselves equal-to or over a certain age.";
14596
+ readonly required: ["age", "access"];
14597
+ readonly properties: {
14598
+ readonly age: {
14599
+ readonly type: "integer";
14600
+ readonly description: "The age threshold as a whole integer.";
14601
+ };
14602
+ readonly access: {
14603
+ readonly type: "ref";
14604
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
14605
+ };
14606
+ };
14607
+ };
14608
+ readonly configRegionRuleIfDeclaredUnderAge: {
14609
+ readonly type: "object";
14610
+ readonly description: "Age Assurance rule that applies if the user has declared themselves under a certain age.";
14611
+ readonly required: ["age", "access"];
14612
+ readonly properties: {
14613
+ readonly age: {
14614
+ readonly type: "integer";
14615
+ readonly description: "The age threshold as a whole integer.";
14616
+ };
14617
+ readonly access: {
14618
+ readonly type: "ref";
14619
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
14620
+ };
14621
+ };
14622
+ };
14623
+ readonly configRegionRuleIfAssuredOverAge: {
14624
+ readonly type: "object";
14625
+ readonly description: "Age Assurance rule that applies if the user has been assured to be equal-to or over a certain age.";
14626
+ readonly required: ["age", "access"];
14627
+ readonly properties: {
14628
+ readonly age: {
14629
+ readonly type: "integer";
14630
+ readonly description: "The age threshold as a whole integer.";
14631
+ };
14632
+ readonly access: {
14633
+ readonly type: "ref";
14634
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
14635
+ };
14636
+ };
14637
+ };
14638
+ readonly configRegionRuleIfAssuredUnderAge: {
14639
+ readonly type: "object";
14640
+ readonly description: "Age Assurance rule that applies if the user has been assured to be under a certain age.";
14641
+ readonly required: ["age", "access"];
14642
+ readonly properties: {
14643
+ readonly age: {
14644
+ readonly type: "integer";
14645
+ readonly description: "The age threshold as a whole integer.";
14646
+ };
14647
+ readonly access: {
14648
+ readonly type: "ref";
14649
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
14650
+ };
14651
+ };
14652
+ };
14653
+ readonly configRegionRuleIfAccountNewerThan: {
14654
+ readonly type: "object";
14655
+ readonly description: "Age Assurance rule that applies if the account is equal-to or newer than a certain date.";
14656
+ readonly required: ["date", "access"];
14657
+ readonly properties: {
14658
+ readonly date: {
14659
+ readonly type: "string";
14660
+ readonly format: "datetime";
14661
+ readonly description: "The date threshold as a datetime string.";
14662
+ };
14663
+ readonly access: {
14664
+ readonly type: "ref";
14665
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
14666
+ };
14667
+ };
14668
+ };
14669
+ readonly configRegionRuleIfAccountOlderThan: {
14670
+ readonly type: "object";
14671
+ readonly description: "Age Assurance rule that applies if the account is older than a certain date.";
14672
+ readonly required: ["date", "access"];
14673
+ readonly properties: {
14674
+ readonly date: {
14675
+ readonly type: "string";
14676
+ readonly format: "datetime";
14677
+ readonly description: "The date threshold as a datetime string.";
14678
+ };
14679
+ readonly access: {
14680
+ readonly type: "ref";
14681
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
14682
+ };
14683
+ };
14684
+ };
14685
+ readonly event: {
14686
+ readonly type: "object";
14687
+ readonly description: "Object used to store Age Assurance data in stash.";
14688
+ readonly required: ["createdAt", "status", "access", "attemptId", "countryCode"];
14689
+ readonly properties: {
14690
+ readonly createdAt: {
14691
+ readonly type: "string";
14692
+ readonly format: "datetime";
14693
+ readonly description: "The date and time of this write operation.";
14694
+ };
14695
+ readonly attemptId: {
14696
+ readonly type: "string";
14697
+ readonly description: "The unique identifier for this instance of the Age Assurance flow, in UUID format.";
14698
+ };
14699
+ readonly status: {
14700
+ readonly type: "string";
14701
+ readonly description: "The status of the Age Assurance process.";
14702
+ readonly knownValues: ["unknown", "pending", "assured", "blocked"];
14703
+ };
14704
+ readonly access: {
14705
+ readonly description: "The access level granted based on Age Assurance data we've processed.";
14706
+ readonly type: "string";
14707
+ readonly knownValues: ["unknown", "none", "safe", "full"];
14708
+ };
14709
+ readonly countryCode: {
14710
+ readonly type: "string";
14711
+ readonly description: "The ISO 3166-1 alpha-2 country code provided when beginning the Age Assurance flow.";
14712
+ };
14713
+ readonly regionCode: {
14714
+ readonly type: "string";
14715
+ readonly description: "The ISO 3166-2 region code provided when beginning the Age Assurance flow.";
14716
+ };
14717
+ readonly email: {
14718
+ readonly type: "string";
14719
+ readonly description: "The email used for Age Assurance.";
14720
+ };
14721
+ readonly initIp: {
14722
+ readonly type: "string";
14723
+ readonly description: "The IP address used when initiating the Age Assurance flow.";
14724
+ };
14725
+ readonly initUa: {
14726
+ readonly type: "string";
14727
+ readonly description: "The user agent used when initiating the Age Assurance flow.";
14728
+ };
14729
+ readonly completeIp: {
14730
+ readonly type: "string";
14731
+ readonly description: "The IP address used when completing the Age Assurance flow.";
14732
+ };
14733
+ readonly completeUa: {
14734
+ readonly type: "string";
14735
+ readonly description: "The user agent used when completing the Age Assurance flow.";
14736
+ };
14737
+ };
14738
+ };
14739
+ };
14740
+ } | {
14741
+ readonly lexicon: 1;
14742
+ readonly id: "app.bsky.ageassurance.getConfig";
14743
+ readonly defs: {
14744
+ readonly main: {
14745
+ readonly type: "query";
14746
+ readonly description: "Returns Age Assurance configuration for use on the client.";
14747
+ readonly output: {
14748
+ readonly encoding: "application/json";
14749
+ readonly schema: {
14750
+ readonly type: "ref";
14751
+ readonly ref: "lex:app.bsky.ageassurance.defs#config";
14752
+ };
14753
+ };
14754
+ };
14755
+ };
14756
+ } | {
14757
+ readonly lexicon: 1;
14758
+ readonly id: "app.bsky.ageassurance.getState";
14759
+ readonly defs: {
14760
+ readonly main: {
14761
+ readonly type: "query";
14762
+ readonly description: "Returns server-computed Age Assurance state, if available, and any additional metadata needed to compute Age Assurance state client-side.";
14763
+ readonly parameters: {
14764
+ readonly type: "params";
14765
+ readonly required: ["countryCode"];
14766
+ readonly properties: {
14767
+ readonly countryCode: {
14768
+ readonly type: "string";
14769
+ };
14770
+ readonly regionCode: {
14771
+ readonly type: "string";
14772
+ };
14773
+ };
14774
+ };
14775
+ readonly output: {
14776
+ readonly encoding: "application/json";
14777
+ readonly schema: {
14778
+ readonly type: "object";
14779
+ readonly required: ["state", "metadata"];
14780
+ readonly properties: {
14781
+ readonly state: {
14782
+ readonly type: "ref";
14783
+ readonly ref: "lex:app.bsky.ageassurance.defs#state";
14784
+ };
14785
+ readonly metadata: {
14786
+ readonly type: "ref";
14787
+ readonly ref: "lex:app.bsky.ageassurance.defs#stateMetadata";
14788
+ };
14789
+ };
14790
+ };
14791
+ };
14792
+ };
14793
+ };
14098
14794
  } | {
14099
14795
  readonly lexicon: 1;
14100
14796
  readonly id: "app.bsky.bookmark.createBookmark";
@@ -25740,6 +26436,10 @@ export declare const ids: {
25740
26436
  readonly AppBskyActorSearchActors: "app.bsky.actor.searchActors";
25741
26437
  readonly AppBskyActorSearchActorsTypeahead: "app.bsky.actor.searchActorsTypeahead";
25742
26438
  readonly AppBskyActorStatus: "app.bsky.actor.status";
26439
+ readonly AppBskyAgeassuranceBegin: "app.bsky.ageassurance.begin";
26440
+ readonly AppBskyAgeassuranceDefs: "app.bsky.ageassurance.defs";
26441
+ readonly AppBskyAgeassuranceGetConfig: "app.bsky.ageassurance.getConfig";
26442
+ readonly AppBskyAgeassuranceGetState: "app.bsky.ageassurance.getState";
25743
26443
  readonly AppBskyBookmarkCreateBookmark: "app.bsky.bookmark.createBookmark";
25744
26444
  readonly AppBskyBookmarkDefs: "app.bsky.bookmark.defs";
25745
26445
  readonly AppBskyBookmarkDeleteBookmark: "app.bsky.bookmark.deleteBookmark";