@atproto/pds 0.4.193 → 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 (82) hide show
  1. package/CHANGELOG.md +32 -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 +806 -6
  19. package/dist/lexicon/lexicons.d.ts.map +1 -1
  20. package/dist/lexicon/lexicons.js +425 -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 +13 -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/lexicon/types/tools/ozone/moderation/scheduleAction.d.ts +10 -0
  45. package/dist/lexicon/types/tools/ozone/moderation/scheduleAction.d.ts.map +1 -1
  46. package/dist/lexicon/types/tools/ozone/moderation/scheduleAction.js.map +1 -1
  47. package/dist/repo/prepare.d.ts.map +1 -1
  48. package/dist/repo/prepare.js +1 -0
  49. package/dist/repo/prepare.js.map +1 -1
  50. package/dist/repo/types.d.ts.map +1 -1
  51. package/dist/repo/types.js +1 -0
  52. package/dist/repo/types.js.map +1 -1
  53. package/dist/sequencer/events.d.ts.map +1 -1
  54. package/dist/sequencer/events.js +1 -0
  55. package/dist/sequencer/events.js.map +1 -1
  56. package/dist/sequencer/sequencer.d.ts.map +1 -1
  57. package/dist/sequencer/sequencer.js +1 -0
  58. package/dist/sequencer/sequencer.js.map +1 -1
  59. package/package.json +18 -16
  60. package/src/actor-store/blob/transactor.ts +2 -0
  61. package/src/actor-store/record/reader.ts +2 -0
  62. package/src/actor-store/record/transactor.ts +2 -0
  63. package/src/api/com/atproto/repo/importRepo.ts +2 -0
  64. package/src/lexicon/index.ts +49 -0
  65. package/src/lexicon/lexicons.ts +458 -3
  66. package/src/lexicon/types/app/bsky/ageassurance/begin.ts +54 -0
  67. package/src/lexicon/types/app/bsky/ageassurance/defs.ts +301 -0
  68. package/src/lexicon/types/app/bsky/ageassurance/getConfig.ts +34 -0
  69. package/src/lexicon/types/app/bsky/ageassurance/getState.ts +42 -0
  70. package/src/lexicon/types/tools/ozone/moderation/defs.ts +13 -2
  71. package/src/lexicon/types/tools/ozone/moderation/queryStatuses.ts +6 -1
  72. package/src/lexicon/types/tools/ozone/moderation/scheduleAction.ts +10 -0
  73. package/src/repo/prepare.ts +2 -0
  74. package/src/repo/types.ts +2 -0
  75. package/src/sequencer/events.ts +2 -0
  76. package/src/sequencer/sequencer.ts +2 -0
  77. package/tests/crud.test.ts +2 -1
  78. package/tests/oauth.test.ts +3 -3
  79. package/tests/sequencer.test.ts +2 -0
  80. package/tests/sync/subscribe-repos.test.ts +3 -1
  81. package/tests/sync/sync.test.ts +2 -0
  82. 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";
@@ -13745,6 +14095,14 @@ export declare const schemaDict: {
13745
14095
  readonly type: "string";
13746
14096
  readonly description: "Severity level of the violation (e.g., 'sev-0', 'sev-1', 'sev-2', etc.).";
13747
14097
  };
14098
+ readonly targetServices: {
14099
+ readonly type: "array";
14100
+ readonly items: {
14101
+ readonly type: "string";
14102
+ readonly knownValues: ["appview", "pds"];
14103
+ };
14104
+ readonly description: "List of services where the takedown should be applied. If empty or not provided, takedown is applied on all configured services.";
14105
+ };
13748
14106
  readonly strikeCount: {
13749
14107
  readonly type: "integer";
13750
14108
  readonly description: "Number of strikes to assign to the user for this violation.";
@@ -13874,14 +14232,26 @@ export declare const schemaDict: {
13874
14232
  readonly format: "datetime";
13875
14233
  readonly description: "The date and time of this write operation.";
13876
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
+ };
13877
14239
  readonly status: {
13878
14240
  readonly type: "string";
13879
- readonly description: "The status of the age assurance process.";
14241
+ readonly description: "The status of the Age Assurance process.";
13880
14242
  readonly knownValues: ["unknown", "pending", "assured"];
13881
14243
  };
13882
- readonly attemptId: {
14244
+ readonly access: {
14245
+ readonly type: "ref";
14246
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
14247
+ };
14248
+ readonly countryCode: {
13883
14249
  readonly type: "string";
13884
- 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.";
13885
14255
  };
13886
14256
  readonly initIp: {
13887
14257
  readonly type: "string";
@@ -13911,6 +14281,10 @@ export declare const schemaDict: {
13911
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.";
13912
14282
  readonly knownValues: ["assured", "reset", "blocked"];
13913
14283
  };
14284
+ readonly access: {
14285
+ readonly type: "ref";
14286
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
14287
+ };
13914
14288
  readonly comment: {
13915
14289
  readonly type: "string";
13916
14290
  readonly description: "Comment describing the reason for the override.";
@@ -14033,6 +14407,10 @@ export declare const schemaDict: {
14033
14407
  readonly format: "datetime";
14034
14408
  readonly description: "When the strike should expire. If not provided, the strike never expires.";
14035
14409
  };
14410
+ readonly isDelivered: {
14411
+ readonly type: "boolean";
14412
+ readonly description: "Indicates whether the email was successfully delivered to the user's inbox.";
14413
+ };
14036
14414
  };
14037
14415
  };
14038
14416
  readonly modEventDivert: {
@@ -15376,6 +15754,7 @@ export declare const schemaDict: {
15376
15754
  readonly reviewState: {
15377
15755
  readonly type: "string";
15378
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"];
15379
15758
  };
15380
15759
  readonly ignoreSubjects: {
15381
15760
  readonly type: "array";
@@ -15569,6 +15948,27 @@ export declare const schemaDict: {
15569
15948
  };
15570
15949
  readonly description: "Names/Keywords of the policies that drove the decision.";
15571
15950
  };
15951
+ readonly severityLevel: {
15952
+ readonly type: "string";
15953
+ readonly description: "Severity level of the violation (e.g., 'sev-0', 'sev-1', 'sev-2', etc.).";
15954
+ };
15955
+ readonly strikeCount: {
15956
+ readonly type: "integer";
15957
+ readonly description: "Number of strikes to assign to the user when takedown is applied.";
15958
+ };
15959
+ readonly strikeExpiresAt: {
15960
+ readonly type: "string";
15961
+ readonly format: "datetime";
15962
+ readonly description: "When the strike should expire. If not provided, the strike never expires.";
15963
+ };
15964
+ readonly emailContent: {
15965
+ readonly type: "string";
15966
+ readonly description: "Email content to be sent to the user upon takedown.";
15967
+ };
15968
+ readonly emailSubject: {
15969
+ readonly type: "string";
15970
+ readonly description: "Subject of the email to be sent to the user upon takedown.";
15971
+ };
15572
15972
  };
15573
15973
  };
15574
15974
  readonly schedulingConfig: {
@@ -18641,6 +19041,352 @@ export declare const schemas: ({
18641
19041
  readonly description: "Advertises an account as currently offering live content.";
18642
19042
  };
18643
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
+ };
18644
19390
  } | {
18645
19391
  readonly lexicon: 1;
18646
19392
  readonly id: "app.bsky.bookmark.createBookmark";
@@ -31024,6 +31770,14 @@ export declare const schemas: ({
31024
31770
  readonly type: "string";
31025
31771
  readonly description: "Severity level of the violation (e.g., 'sev-0', 'sev-1', 'sev-2', etc.).";
31026
31772
  };
31773
+ readonly targetServices: {
31774
+ readonly type: "array";
31775
+ readonly items: {
31776
+ readonly type: "string";
31777
+ readonly knownValues: ["appview", "pds"];
31778
+ };
31779
+ readonly description: "List of services where the takedown should be applied. If empty or not provided, takedown is applied on all configured services.";
31780
+ };
31027
31781
  readonly strikeCount: {
31028
31782
  readonly type: "integer";
31029
31783
  readonly description: "Number of strikes to assign to the user for this violation.";
@@ -31153,14 +31907,26 @@ export declare const schemas: ({
31153
31907
  readonly format: "datetime";
31154
31908
  readonly description: "The date and time of this write operation.";
31155
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
+ };
31156
31914
  readonly status: {
31157
31915
  readonly type: "string";
31158
- readonly description: "The status of the age assurance process.";
31916
+ readonly description: "The status of the Age Assurance process.";
31159
31917
  readonly knownValues: ["unknown", "pending", "assured"];
31160
31918
  };
31161
- readonly attemptId: {
31919
+ readonly access: {
31920
+ readonly type: "ref";
31921
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
31922
+ };
31923
+ readonly countryCode: {
31162
31924
  readonly type: "string";
31163
- 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.";
31164
31930
  };
31165
31931
  readonly initIp: {
31166
31932
  readonly type: "string";
@@ -31190,6 +31956,10 @@ export declare const schemas: ({
31190
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.";
31191
31957
  readonly knownValues: ["assured", "reset", "blocked"];
31192
31958
  };
31959
+ readonly access: {
31960
+ readonly type: "ref";
31961
+ readonly ref: "lex:app.bsky.ageassurance.defs#access";
31962
+ };
31193
31963
  readonly comment: {
31194
31964
  readonly type: "string";
31195
31965
  readonly description: "Comment describing the reason for the override.";
@@ -31312,6 +32082,10 @@ export declare const schemas: ({
31312
32082
  readonly format: "datetime";
31313
32083
  readonly description: "When the strike should expire. If not provided, the strike never expires.";
31314
32084
  };
32085
+ readonly isDelivered: {
32086
+ readonly type: "boolean";
32087
+ readonly description: "Indicates whether the email was successfully delivered to the user's inbox.";
32088
+ };
31315
32089
  };
31316
32090
  };
31317
32091
  readonly modEventDivert: {
@@ -32643,6 +33417,7 @@ export declare const schemas: ({
32643
33417
  readonly reviewState: {
32644
33418
  readonly type: "string";
32645
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"];
32646
33421
  };
32647
33422
  readonly ignoreSubjects: {
32648
33423
  readonly type: "array";
@@ -32835,6 +33610,27 @@ export declare const schemas: ({
32835
33610
  };
32836
33611
  readonly description: "Names/Keywords of the policies that drove the decision.";
32837
33612
  };
33613
+ readonly severityLevel: {
33614
+ readonly type: "string";
33615
+ readonly description: "Severity level of the violation (e.g., 'sev-0', 'sev-1', 'sev-2', etc.).";
33616
+ };
33617
+ readonly strikeCount: {
33618
+ readonly type: "integer";
33619
+ readonly description: "Number of strikes to assign to the user when takedown is applied.";
33620
+ };
33621
+ readonly strikeExpiresAt: {
33622
+ readonly type: "string";
33623
+ readonly format: "datetime";
33624
+ readonly description: "When the strike should expire. If not provided, the strike never expires.";
33625
+ };
33626
+ readonly emailContent: {
33627
+ readonly type: "string";
33628
+ readonly description: "Email content to be sent to the user upon takedown.";
33629
+ };
33630
+ readonly emailSubject: {
33631
+ readonly type: "string";
33632
+ readonly description: "Subject of the email to be sent to the user upon takedown.";
33633
+ };
32838
33634
  };
32839
33635
  };
32840
33636
  readonly schedulingConfig: {
@@ -34778,6 +35574,10 @@ export declare const ids: {
34778
35574
  readonly AppBskyActorSearchActors: "app.bsky.actor.searchActors";
34779
35575
  readonly AppBskyActorSearchActorsTypeahead: "app.bsky.actor.searchActorsTypeahead";
34780
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";
34781
35581
  readonly AppBskyBookmarkCreateBookmark: "app.bsky.bookmark.createBookmark";
34782
35582
  readonly AppBskyBookmarkDefs: "app.bsky.bookmark.defs";
34783
35583
  readonly AppBskyBookmarkDeleteBookmark: "app.bsky.bookmark.deleteBookmark";