@atproto/pds 0.4.194 → 0.4.195

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 (78) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/actor-store/blob/transactor.d.ts.map +1 -1
  3. package/dist/actor-store/blob/transactor.js +1 -0
  4. package/dist/actor-store/blob/transactor.js.map +1 -1
  5. package/dist/actor-store/record/reader.d.ts.map +1 -1
  6. package/dist/actor-store/record/reader.js +1 -0
  7. package/dist/actor-store/record/reader.js.map +1 -1
  8. package/dist/actor-store/record/transactor.d.ts.map +1 -1
  9. package/dist/actor-store/record/transactor.js +1 -0
  10. package/dist/actor-store/record/transactor.js.map +1 -1
  11. package/dist/api/com/atproto/repo/importRepo.d.ts.map +1 -1
  12. package/dist/api/com/atproto/repo/importRepo.js +1 -0
  13. package/dist/api/com/atproto/repo/importRepo.js.map +1 -1
  14. package/dist/lexicon/index.d.ts +11 -0
  15. package/dist/lexicon/index.d.ts.map +1 -1
  16. package/dist/lexicon/index.js +32 -1
  17. package/dist/lexicon/index.js.map +1 -1
  18. package/dist/lexicon/lexicons.d.ts +740 -6
  19. package/dist/lexicon/lexicons.d.ts.map +1 -1
  20. package/dist/lexicon/lexicons.js +392 -3
  21. package/dist/lexicon/lexicons.js.map +1 -1
  22. package/dist/lexicon/types/app/bsky/ageassurance/begin.d.ts +31 -0
  23. package/dist/lexicon/types/app/bsky/ageassurance/begin.d.ts.map +1 -0
  24. package/dist/lexicon/types/app/bsky/ageassurance/begin.js +7 -0
  25. package/dist/lexicon/types/app/bsky/ageassurance/begin.js.map +1 -0
  26. package/dist/lexicon/types/app/bsky/ageassurance/defs.d.ts +138 -0
  27. package/dist/lexicon/types/app/bsky/ageassurance/defs.d.ts.map +1 -0
  28. package/dist/lexicon/types/app/bsky/ageassurance/defs.js +115 -0
  29. package/dist/lexicon/types/app/bsky/ageassurance/defs.js.map +1 -0
  30. package/dist/lexicon/types/app/bsky/ageassurance/getConfig.d.ts +18 -0
  31. package/dist/lexicon/types/app/bsky/ageassurance/getConfig.d.ts.map +1 -0
  32. package/dist/lexicon/types/app/bsky/ageassurance/getConfig.js +7 -0
  33. package/dist/lexicon/types/app/bsky/ageassurance/getConfig.js.map +1 -0
  34. package/dist/lexicon/types/app/bsky/ageassurance/getState.d.ts +24 -0
  35. package/dist/lexicon/types/app/bsky/ageassurance/getState.d.ts.map +1 -0
  36. package/dist/lexicon/types/app/bsky/ageassurance/getState.js +7 -0
  37. package/dist/lexicon/types/app/bsky/ageassurance/getState.js.map +1 -0
  38. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts +9 -2
  39. package/dist/lexicon/types/tools/ozone/moderation/defs.d.ts.map +1 -1
  40. package/dist/lexicon/types/tools/ozone/moderation/defs.js.map +1 -1
  41. package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.d.ts +1 -1
  42. package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.d.ts.map +1 -1
  43. package/dist/lexicon/types/tools/ozone/moderation/queryStatuses.js.map +1 -1
  44. package/dist/repo/prepare.d.ts.map +1 -1
  45. package/dist/repo/prepare.js +1 -0
  46. package/dist/repo/prepare.js.map +1 -1
  47. package/dist/repo/types.d.ts.map +1 -1
  48. package/dist/repo/types.js +1 -0
  49. package/dist/repo/types.js.map +1 -1
  50. package/dist/sequencer/events.d.ts.map +1 -1
  51. package/dist/sequencer/events.js +1 -0
  52. package/dist/sequencer/events.js.map +1 -1
  53. package/dist/sequencer/sequencer.d.ts.map +1 -1
  54. package/dist/sequencer/sequencer.js +1 -0
  55. package/dist/sequencer/sequencer.js.map +1 -1
  56. package/package.json +18 -16
  57. package/src/actor-store/blob/transactor.ts +2 -0
  58. package/src/actor-store/record/reader.ts +2 -0
  59. package/src/actor-store/record/transactor.ts +2 -0
  60. package/src/api/com/atproto/repo/importRepo.ts +2 -0
  61. package/src/lexicon/index.ts +49 -0
  62. package/src/lexicon/lexicons.ts +419 -3
  63. package/src/lexicon/types/app/bsky/ageassurance/begin.ts +54 -0
  64. package/src/lexicon/types/app/bsky/ageassurance/defs.ts +301 -0
  65. package/src/lexicon/types/app/bsky/ageassurance/getConfig.ts +34 -0
  66. package/src/lexicon/types/app/bsky/ageassurance/getState.ts +42 -0
  67. package/src/lexicon/types/tools/ozone/moderation/defs.ts +9 -2
  68. package/src/lexicon/types/tools/ozone/moderation/queryStatuses.ts +6 -1
  69. package/src/repo/prepare.ts +2 -0
  70. package/src/repo/types.ts +2 -0
  71. package/src/sequencer/events.ts +2 -0
  72. package/src/sequencer/sequencer.ts +2 -0
  73. package/tests/crud.test.ts +2 -1
  74. package/tests/oauth.test.ts +3 -3
  75. package/tests/sequencer.test.ts +2 -0
  76. package/tests/sync/subscribe-repos.test.ts +3 -1
  77. package/tests/sync/sync.test.ts +2 -0
  78. package/tsconfig.build.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";
@@ -13882,14 +14232,26 @@ export declare const schemaDict: {
13882
14232
  readonly format: "datetime";
13883
14233
  readonly description: "The date and time of this write operation.";
13884
14234
  };
14235
+ readonly attemptId: {
14236
+ readonly type: "string";
14237
+ readonly description: "The unique identifier for this instance of the age assurance flow, in UUID format.";
14238
+ };
13885
14239
  readonly status: {
13886
14240
  readonly type: "string";
13887
- readonly description: "The status of the age assurance process.";
14241
+ readonly description: "The status of the Age Assurance process.";
13888
14242
  readonly knownValues: ["unknown", "pending", "assured"];
13889
14243
  };
13890
- readonly attemptId: {
14244
+ readonly access: {
14245
+ readonly type: "ref";
14246
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
14247
+ };
14248
+ readonly countryCode: {
13891
14249
  readonly type: "string";
13892
- readonly description: "The unique identifier for this instance of the age assurance flow, in UUID format.";
14250
+ readonly description: "The ISO 3166-1 alpha-2 country code provided when beginning the Age Assurance flow.";
14251
+ };
14252
+ readonly regionCode: {
14253
+ readonly type: "string";
14254
+ readonly description: "The ISO 3166-2 region code provided when beginning the Age Assurance flow.";
13893
14255
  };
13894
14256
  readonly initIp: {
13895
14257
  readonly type: "string";
@@ -13919,6 +14281,10 @@ export declare const schemaDict: {
13919
14281
  readonly description: "The status to be set for the user decided by a moderator, overriding whatever value the user had previously. Use reset to default to original state.";
13920
14282
  readonly knownValues: ["assured", "reset", "blocked"];
13921
14283
  };
14284
+ readonly access: {
14285
+ readonly type: "ref";
14286
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
14287
+ };
13922
14288
  readonly comment: {
13923
14289
  readonly type: "string";
13924
14290
  readonly description: "Comment describing the reason for the override.";
@@ -15388,6 +15754,7 @@ export declare const schemaDict: {
15388
15754
  readonly reviewState: {
15389
15755
  readonly type: "string";
15390
15756
  readonly description: "Specify when fetching subjects in a certain state";
15757
+ readonly knownValues: ["tools.ozone.moderation.defs#reviewOpen", "tools.ozone.moderation.defs#reviewClosed", "tools.ozone.moderation.defs#reviewEscalated", "tools.ozone.moderation.defs#reviewNone"];
15391
15758
  };
15392
15759
  readonly ignoreSubjects: {
15393
15760
  readonly type: "array";
@@ -18674,6 +19041,352 @@ export declare const schemas: ({
18674
19041
  readonly description: "Advertises an account as currently offering live content.";
18675
19042
  };
18676
19043
  };
19044
+ } | {
19045
+ readonly lexicon: 1;
19046
+ readonly id: "app.bsky.ageassurance.begin";
19047
+ readonly defs: {
19048
+ readonly main: {
19049
+ readonly type: "procedure";
19050
+ readonly description: "Initiate Age Assurance for an account.";
19051
+ readonly input: {
19052
+ readonly encoding: "application/json";
19053
+ readonly schema: {
19054
+ readonly type: "object";
19055
+ readonly required: ["email", "language", "countryCode"];
19056
+ readonly properties: {
19057
+ readonly email: {
19058
+ readonly type: "string";
19059
+ readonly description: "The user's email address to receive Age Assurance instructions.";
19060
+ };
19061
+ readonly language: {
19062
+ readonly type: "string";
19063
+ readonly description: "The user's preferred language for communication during the Age Assurance process.";
19064
+ };
19065
+ readonly countryCode: {
19066
+ readonly type: "string";
19067
+ readonly description: "An ISO 3166-1 alpha-2 code of the user's location.";
19068
+ };
19069
+ readonly regionCode: {
19070
+ readonly type: "string";
19071
+ readonly description: "An optional ISO 3166-2 code of the user's region or state within the country.";
19072
+ };
19073
+ };
19074
+ };
19075
+ };
19076
+ readonly output: {
19077
+ readonly encoding: "application/json";
19078
+ readonly schema: {
19079
+ readonly type: "ref";
19080
+ readonly ref: "lex:app.bsky.ageassurance.defs#state";
19081
+ };
19082
+ };
19083
+ readonly errors: [{
19084
+ readonly name: "InvalidEmail";
19085
+ }, {
19086
+ readonly name: "DidTooLong";
19087
+ }, {
19088
+ readonly name: "InvalidInitiation";
19089
+ }, {
19090
+ readonly name: "RegionNotSupported";
19091
+ }];
19092
+ };
19093
+ };
19094
+ } | {
19095
+ readonly lexicon: 1;
19096
+ readonly id: "app.bsky.ageassurance.defs";
19097
+ readonly defs: {
19098
+ readonly access: {
19099
+ readonly description: "The access level granted based on Age Assurance data we've processed.";
19100
+ readonly type: "string";
19101
+ readonly knownValues: ["unknown", "none", "safe", "full"];
19102
+ };
19103
+ readonly status: {
19104
+ readonly type: "string";
19105
+ readonly description: "The status of the Age Assurance process.";
19106
+ readonly knownValues: ["unknown", "pending", "assured", "blocked"];
19107
+ };
19108
+ readonly state: {
19109
+ readonly type: "object";
19110
+ readonly description: "The user's computed Age Assurance state.";
19111
+ readonly required: ["status", "access"];
19112
+ readonly properties: {
19113
+ readonly lastInitiatedAt: {
19114
+ readonly type: "string";
19115
+ readonly format: "datetime";
19116
+ readonly description: "The timestamp when this state was last updated.";
19117
+ };
19118
+ readonly status: {
19119
+ readonly type: "ref";
19120
+ readonly ref: "lex:app.bsky.ageassurance.defs#status";
19121
+ };
19122
+ readonly access: {
19123
+ readonly type: "ref";
19124
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
19125
+ };
19126
+ };
19127
+ };
19128
+ readonly stateMetadata: {
19129
+ readonly type: "object";
19130
+ readonly description: "Additional metadata needed to compute Age Assurance state client-side.";
19131
+ readonly required: [];
19132
+ readonly properties: {
19133
+ readonly accountCreatedAt: {
19134
+ readonly type: "string";
19135
+ readonly format: "datetime";
19136
+ readonly description: "The account creation timestamp.";
19137
+ };
19138
+ };
19139
+ };
19140
+ readonly config: {
19141
+ readonly type: "object";
19142
+ readonly description: "";
19143
+ readonly required: ["regions"];
19144
+ readonly properties: {
19145
+ readonly regions: {
19146
+ readonly type: "array";
19147
+ readonly description: "The per-region Age Assurance configuration.";
19148
+ readonly items: {
19149
+ readonly type: "ref";
19150
+ readonly ref: "lex:app.bsky.ageassurance.defs#configRegion";
19151
+ };
19152
+ };
19153
+ };
19154
+ };
19155
+ readonly configRegion: {
19156
+ readonly type: "object";
19157
+ readonly description: "The Age Assurance configuration for a specific region.";
19158
+ readonly required: ["countryCode", "rules"];
19159
+ readonly properties: {
19160
+ readonly countryCode: {
19161
+ readonly type: "string";
19162
+ readonly description: "The ISO 3166-1 alpha-2 country code this configuration applies to.";
19163
+ };
19164
+ readonly regionCode: {
19165
+ readonly type: "string";
19166
+ readonly description: "The ISO 3166-2 region code this configuration applies to. If omitted, the configuration applies to the entire country.";
19167
+ };
19168
+ readonly rules: {
19169
+ readonly type: "array";
19170
+ 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.";
19171
+ readonly items: {
19172
+ readonly type: "union";
19173
+ 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"];
19174
+ };
19175
+ };
19176
+ };
19177
+ };
19178
+ readonly configRegionRuleDefault: {
19179
+ readonly type: "object";
19180
+ readonly description: "Age Assurance rule that applies by default.";
19181
+ readonly required: ["access"];
19182
+ readonly properties: {
19183
+ readonly access: {
19184
+ readonly type: "ref";
19185
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
19186
+ };
19187
+ };
19188
+ };
19189
+ readonly configRegionRuleIfDeclaredOverAge: {
19190
+ readonly type: "object";
19191
+ readonly description: "Age Assurance rule that applies if the user has declared themselves equal-to or over a certain age.";
19192
+ readonly required: ["age", "access"];
19193
+ readonly properties: {
19194
+ readonly age: {
19195
+ readonly type: "integer";
19196
+ readonly description: "The age threshold as a whole integer.";
19197
+ };
19198
+ readonly access: {
19199
+ readonly type: "ref";
19200
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
19201
+ };
19202
+ };
19203
+ };
19204
+ readonly configRegionRuleIfDeclaredUnderAge: {
19205
+ readonly type: "object";
19206
+ readonly description: "Age Assurance rule that applies if the user has declared themselves under a certain age.";
19207
+ readonly required: ["age", "access"];
19208
+ readonly properties: {
19209
+ readonly age: {
19210
+ readonly type: "integer";
19211
+ readonly description: "The age threshold as a whole integer.";
19212
+ };
19213
+ readonly access: {
19214
+ readonly type: "ref";
19215
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
19216
+ };
19217
+ };
19218
+ };
19219
+ readonly configRegionRuleIfAssuredOverAge: {
19220
+ readonly type: "object";
19221
+ readonly description: "Age Assurance rule that applies if the user has been assured to be equal-to or over a certain age.";
19222
+ readonly required: ["age", "access"];
19223
+ readonly properties: {
19224
+ readonly age: {
19225
+ readonly type: "integer";
19226
+ readonly description: "The age threshold as a whole integer.";
19227
+ };
19228
+ readonly access: {
19229
+ readonly type: "ref";
19230
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
19231
+ };
19232
+ };
19233
+ };
19234
+ readonly configRegionRuleIfAssuredUnderAge: {
19235
+ readonly type: "object";
19236
+ readonly description: "Age Assurance rule that applies if the user has been assured to be under a certain age.";
19237
+ readonly required: ["age", "access"];
19238
+ readonly properties: {
19239
+ readonly age: {
19240
+ readonly type: "integer";
19241
+ readonly description: "The age threshold as a whole integer.";
19242
+ };
19243
+ readonly access: {
19244
+ readonly type: "ref";
19245
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
19246
+ };
19247
+ };
19248
+ };
19249
+ readonly configRegionRuleIfAccountNewerThan: {
19250
+ readonly type: "object";
19251
+ readonly description: "Age Assurance rule that applies if the account is equal-to or newer than a certain date.";
19252
+ readonly required: ["date", "access"];
19253
+ readonly properties: {
19254
+ readonly date: {
19255
+ readonly type: "string";
19256
+ readonly format: "datetime";
19257
+ readonly description: "The date threshold as a datetime string.";
19258
+ };
19259
+ readonly access: {
19260
+ readonly type: "ref";
19261
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
19262
+ };
19263
+ };
19264
+ };
19265
+ readonly configRegionRuleIfAccountOlderThan: {
19266
+ readonly type: "object";
19267
+ readonly description: "Age Assurance rule that applies if the account is older than a certain date.";
19268
+ readonly required: ["date", "access"];
19269
+ readonly properties: {
19270
+ readonly date: {
19271
+ readonly type: "string";
19272
+ readonly format: "datetime";
19273
+ readonly description: "The date threshold as a datetime string.";
19274
+ };
19275
+ readonly access: {
19276
+ readonly type: "ref";
19277
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
19278
+ };
19279
+ };
19280
+ };
19281
+ readonly event: {
19282
+ readonly type: "object";
19283
+ readonly description: "Object used to store Age Assurance data in stash.";
19284
+ readonly required: ["createdAt", "status", "access", "attemptId", "countryCode"];
19285
+ readonly properties: {
19286
+ readonly createdAt: {
19287
+ readonly type: "string";
19288
+ readonly format: "datetime";
19289
+ readonly description: "The date and time of this write operation.";
19290
+ };
19291
+ readonly attemptId: {
19292
+ readonly type: "string";
19293
+ readonly description: "The unique identifier for this instance of the Age Assurance flow, in UUID format.";
19294
+ };
19295
+ readonly status: {
19296
+ readonly type: "string";
19297
+ readonly description: "The status of the Age Assurance process.";
19298
+ readonly knownValues: ["unknown", "pending", "assured", "blocked"];
19299
+ };
19300
+ readonly access: {
19301
+ readonly description: "The access level granted based on Age Assurance data we've processed.";
19302
+ readonly type: "string";
19303
+ readonly knownValues: ["unknown", "none", "safe", "full"];
19304
+ };
19305
+ readonly countryCode: {
19306
+ readonly type: "string";
19307
+ readonly description: "The ISO 3166-1 alpha-2 country code provided when beginning the Age Assurance flow.";
19308
+ };
19309
+ readonly regionCode: {
19310
+ readonly type: "string";
19311
+ readonly description: "The ISO 3166-2 region code provided when beginning the Age Assurance flow.";
19312
+ };
19313
+ readonly email: {
19314
+ readonly type: "string";
19315
+ readonly description: "The email used for Age Assurance.";
19316
+ };
19317
+ readonly initIp: {
19318
+ readonly type: "string";
19319
+ readonly description: "The IP address used when initiating the Age Assurance flow.";
19320
+ };
19321
+ readonly initUa: {
19322
+ readonly type: "string";
19323
+ readonly description: "The user agent used when initiating the Age Assurance flow.";
19324
+ };
19325
+ readonly completeIp: {
19326
+ readonly type: "string";
19327
+ readonly description: "The IP address used when completing the Age Assurance flow.";
19328
+ };
19329
+ readonly completeUa: {
19330
+ readonly type: "string";
19331
+ readonly description: "The user agent used when completing the Age Assurance flow.";
19332
+ };
19333
+ };
19334
+ };
19335
+ };
19336
+ } | {
19337
+ readonly lexicon: 1;
19338
+ readonly id: "app.bsky.ageassurance.getConfig";
19339
+ readonly defs: {
19340
+ readonly main: {
19341
+ readonly type: "query";
19342
+ readonly description: "Returns Age Assurance configuration for use on the client.";
19343
+ readonly output: {
19344
+ readonly encoding: "application/json";
19345
+ readonly schema: {
19346
+ readonly type: "ref";
19347
+ readonly ref: "lex:app.bsky.ageassurance.defs#config";
19348
+ };
19349
+ };
19350
+ };
19351
+ };
19352
+ } | {
19353
+ readonly lexicon: 1;
19354
+ readonly id: "app.bsky.ageassurance.getState";
19355
+ readonly defs: {
19356
+ readonly main: {
19357
+ readonly type: "query";
19358
+ readonly description: "Returns server-computed Age Assurance state, if available, and any additional metadata needed to compute Age Assurance state client-side.";
19359
+ readonly parameters: {
19360
+ readonly type: "params";
19361
+ readonly required: ["countryCode"];
19362
+ readonly properties: {
19363
+ readonly countryCode: {
19364
+ readonly type: "string";
19365
+ };
19366
+ readonly regionCode: {
19367
+ readonly type: "string";
19368
+ };
19369
+ };
19370
+ };
19371
+ readonly output: {
19372
+ readonly encoding: "application/json";
19373
+ readonly schema: {
19374
+ readonly type: "object";
19375
+ readonly required: ["state", "metadata"];
19376
+ readonly properties: {
19377
+ readonly state: {
19378
+ readonly type: "ref";
19379
+ readonly ref: "lex:app.bsky.ageassurance.defs#state";
19380
+ };
19381
+ readonly metadata: {
19382
+ readonly type: "ref";
19383
+ readonly ref: "lex:app.bsky.ageassurance.defs#stateMetadata";
19384
+ };
19385
+ };
19386
+ };
19387
+ };
19388
+ };
19389
+ };
18677
19390
  } | {
18678
19391
  readonly lexicon: 1;
18679
19392
  readonly id: "app.bsky.bookmark.createBookmark";
@@ -31194,14 +31907,26 @@ export declare const schemas: ({
31194
31907
  readonly format: "datetime";
31195
31908
  readonly description: "The date and time of this write operation.";
31196
31909
  };
31910
+ readonly attemptId: {
31911
+ readonly type: "string";
31912
+ readonly description: "The unique identifier for this instance of the age assurance flow, in UUID format.";
31913
+ };
31197
31914
  readonly status: {
31198
31915
  readonly type: "string";
31199
- readonly description: "The status of the age assurance process.";
31916
+ readonly description: "The status of the Age Assurance process.";
31200
31917
  readonly knownValues: ["unknown", "pending", "assured"];
31201
31918
  };
31202
- readonly attemptId: {
31919
+ readonly access: {
31920
+ readonly type: "ref";
31921
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
31922
+ };
31923
+ readonly countryCode: {
31203
31924
  readonly type: "string";
31204
- readonly description: "The unique identifier for this instance of the age assurance flow, in UUID format.";
31925
+ readonly description: "The ISO 3166-1 alpha-2 country code provided when beginning the Age Assurance flow.";
31926
+ };
31927
+ readonly regionCode: {
31928
+ readonly type: "string";
31929
+ readonly description: "The ISO 3166-2 region code provided when beginning the Age Assurance flow.";
31205
31930
  };
31206
31931
  readonly initIp: {
31207
31932
  readonly type: "string";
@@ -31231,6 +31956,10 @@ export declare const schemas: ({
31231
31956
  readonly description: "The status to be set for the user decided by a moderator, overriding whatever value the user had previously. Use reset to default to original state.";
31232
31957
  readonly knownValues: ["assured", "reset", "blocked"];
31233
31958
  };
31959
+ readonly access: {
31960
+ readonly type: "ref";
31961
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
31962
+ };
31234
31963
  readonly comment: {
31235
31964
  readonly type: "string";
31236
31965
  readonly description: "Comment describing the reason for the override.";
@@ -32688,6 +33417,7 @@ export declare const schemas: ({
32688
33417
  readonly reviewState: {
32689
33418
  readonly type: "string";
32690
33419
  readonly description: "Specify when fetching subjects in a certain state";
33420
+ readonly knownValues: ["tools.ozone.moderation.defs#reviewOpen", "tools.ozone.moderation.defs#reviewClosed", "tools.ozone.moderation.defs#reviewEscalated", "tools.ozone.moderation.defs#reviewNone"];
32691
33421
  };
32692
33422
  readonly ignoreSubjects: {
32693
33423
  readonly type: "array";
@@ -34844,6 +35574,10 @@ export declare const ids: {
34844
35574
  readonly AppBskyActorSearchActors: "app.bsky.actor.searchActors";
34845
35575
  readonly AppBskyActorSearchActorsTypeahead: "app.bsky.actor.searchActorsTypeahead";
34846
35576
  readonly AppBskyActorStatus: "app.bsky.actor.status";
35577
+ readonly AppBskyAgeassuranceBegin: "app.bsky.ageassurance.begin";
35578
+ readonly AppBskyAgeassuranceDefs: "app.bsky.ageassurance.defs";
35579
+ readonly AppBskyAgeassuranceGetConfig: "app.bsky.ageassurance.getConfig";
35580
+ readonly AppBskyAgeassuranceGetState: "app.bsky.ageassurance.getState";
34847
35581
  readonly AppBskyBookmarkCreateBookmark: "app.bsky.bookmark.createBookmark";
34848
35582
  readonly AppBskyBookmarkDefs: "app.bsky.bookmark.defs";
34849
35583
  readonly AppBskyBookmarkDeleteBookmark: "app.bsky.bookmark.deleteBookmark";