@atproto/pds 0.4.55 → 0.4.57

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/api/com/atproto/repo/applyWrites.d.ts.map +1 -1
  3. package/dist/api/com/atproto/repo/applyWrites.js +43 -7
  4. package/dist/api/com/atproto/repo/applyWrites.js.map +1 -1
  5. package/dist/api/com/atproto/repo/createRecord.d.ts.map +1 -1
  6. package/dist/api/com/atproto/repo/createRecord.js +10 -2
  7. package/dist/api/com/atproto/repo/createRecord.js.map +1 -1
  8. package/dist/api/com/atproto/repo/deleteRecord.d.ts.map +1 -1
  9. package/dist/api/com/atproto/repo/deleteRecord.js +11 -0
  10. package/dist/api/com/atproto/repo/deleteRecord.js.map +1 -1
  11. package/dist/api/com/atproto/repo/putRecord.d.ts.map +1 -1
  12. package/dist/api/com/atproto/repo/putRecord.js +7 -0
  13. package/dist/api/com/atproto/repo/putRecord.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 +367 -18
  19. package/dist/lexicon/lexicons.d.ts.map +1 -1
  20. package/dist/lexicon/lexicons.js +390 -24
  21. package/dist/lexicon/lexicons.js.map +1 -1
  22. package/dist/lexicon/types/app/bsky/embed/defs.d.ts +13 -0
  23. package/dist/lexicon/types/app/bsky/embed/defs.d.ts.map +1 -0
  24. package/dist/lexicon/types/app/bsky/embed/defs.js +16 -0
  25. package/dist/lexicon/types/app/bsky/embed/defs.js.map +1 -0
  26. package/dist/lexicon/types/app/bsky/embed/images.d.ts +3 -10
  27. package/dist/lexicon/types/app/bsky/embed/images.d.ts.map +1 -1
  28. package/dist/lexicon/types/app/bsky/embed/images.js +1 -11
  29. package/dist/lexicon/types/app/bsky/embed/images.js.map +1 -1
  30. package/dist/lexicon/types/app/bsky/embed/record.d.ts +2 -1
  31. package/dist/lexicon/types/app/bsky/embed/record.d.ts.map +1 -1
  32. package/dist/lexicon/types/app/bsky/embed/record.js.map +1 -1
  33. package/dist/lexicon/types/app/bsky/embed/recordWithMedia.d.ts +3 -2
  34. package/dist/lexicon/types/app/bsky/embed/recordWithMedia.d.ts.map +1 -1
  35. package/dist/lexicon/types/app/bsky/embed/recordWithMedia.js.map +1 -1
  36. package/dist/lexicon/types/app/bsky/embed/video.d.ts +33 -0
  37. package/dist/lexicon/types/app/bsky/embed/video.d.ts.map +1 -0
  38. package/dist/lexicon/types/app/bsky/embed/video.js +35 -0
  39. package/dist/lexicon/types/app/bsky/embed/video.js.map +1 -0
  40. package/dist/lexicon/types/app/bsky/feed/defs.d.ts +2 -1
  41. package/dist/lexicon/types/app/bsky/feed/defs.d.ts.map +1 -1
  42. package/dist/lexicon/types/app/bsky/feed/defs.js.map +1 -1
  43. package/dist/lexicon/types/app/bsky/feed/post.d.ts +2 -1
  44. package/dist/lexicon/types/app/bsky/feed/post.d.ts.map +1 -1
  45. package/dist/lexicon/types/app/bsky/feed/post.js.map +1 -1
  46. package/dist/lexicon/types/app/bsky/video/defs.d.ts +19 -0
  47. package/dist/lexicon/types/app/bsky/video/defs.d.ts.map +1 -0
  48. package/dist/lexicon/types/app/bsky/video/defs.js +16 -0
  49. package/dist/lexicon/types/app/bsky/video/defs.js.map +1 -0
  50. package/dist/lexicon/types/app/bsky/video/getJobStatus.d.ts +36 -0
  51. package/dist/lexicon/types/app/bsky/video/getJobStatus.d.ts.map +1 -0
  52. package/dist/lexicon/types/app/bsky/video/getJobStatus.js +3 -0
  53. package/dist/lexicon/types/app/bsky/video/getJobStatus.js.map +1 -0
  54. package/dist/lexicon/types/app/bsky/video/getUploadLimits.d.ts +38 -0
  55. package/dist/lexicon/types/app/bsky/video/getUploadLimits.d.ts.map +1 -0
  56. package/dist/lexicon/types/app/bsky/video/getUploadLimits.js +3 -0
  57. package/dist/lexicon/types/app/bsky/video/getUploadLimits.js.map +1 -0
  58. package/dist/lexicon/types/app/bsky/video/uploadVideo.d.ts +41 -0
  59. package/dist/lexicon/types/app/bsky/video/uploadVideo.d.ts.map +1 -0
  60. package/dist/lexicon/types/app/bsky/video/uploadVideo.js +3 -0
  61. package/dist/lexicon/types/app/bsky/video/uploadVideo.js.map +1 -0
  62. package/dist/lexicon/types/com/atproto/repo/applyWrites.d.ts +38 -4
  63. package/dist/lexicon/types/com/atproto/repo/applyWrites.d.ts.map +1 -1
  64. package/dist/lexicon/types/com/atproto/repo/applyWrites.js +31 -1
  65. package/dist/lexicon/types/com/atproto/repo/applyWrites.js.map +1 -1
  66. package/dist/lexicon/types/com/atproto/repo/createRecord.d.ts +5 -2
  67. package/dist/lexicon/types/com/atproto/repo/createRecord.d.ts.map +1 -1
  68. package/dist/lexicon/types/com/atproto/repo/defs.d.ts +12 -0
  69. package/dist/lexicon/types/com/atproto/repo/defs.d.ts.map +1 -0
  70. package/dist/lexicon/types/com/atproto/repo/defs.js +16 -0
  71. package/dist/lexicon/types/com/atproto/repo/defs.js.map +1 -0
  72. package/dist/lexicon/types/com/atproto/repo/deleteRecord.d.ts +14 -2
  73. package/dist/lexicon/types/com/atproto/repo/deleteRecord.d.ts.map +1 -1
  74. package/dist/lexicon/types/com/atproto/repo/putRecord.d.ts +5 -2
  75. package/dist/lexicon/types/com/atproto/repo/putRecord.d.ts.map +1 -1
  76. package/dist/lexicon/types/tools/ozone/communication/createTemplate.d.ts +3 -0
  77. package/dist/lexicon/types/tools/ozone/communication/createTemplate.d.ts.map +1 -1
  78. package/dist/lexicon/types/tools/ozone/communication/defs.d.ts +2 -0
  79. package/dist/lexicon/types/tools/ozone/communication/defs.d.ts.map +1 -1
  80. package/dist/lexicon/types/tools/ozone/communication/defs.js.map +1 -1
  81. package/dist/lexicon/types/tools/ozone/communication/updateTemplate.d.ts +3 -0
  82. package/dist/lexicon/types/tools/ozone/communication/updateTemplate.d.ts.map +1 -1
  83. package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts +1 -1
  84. package/dist/lexicon/types/tools/ozone/moderation/emitEvent.d.ts.map +1 -1
  85. package/dist/read-after-write/viewer.d.ts +4 -4
  86. package/dist/repo/prepare.d.ts +4 -2
  87. package/dist/repo/prepare.d.ts.map +1 -1
  88. package/dist/repo/prepare.js +30 -14
  89. package/dist/repo/prepare.js.map +1 -1
  90. package/dist/repo/types.d.ts +3 -0
  91. package/dist/repo/types.d.ts.map +1 -1
  92. package/dist/repo/types.js.map +1 -1
  93. package/dist/sequencer/events.d.ts +2 -2
  94. package/package.json +4 -4
  95. package/src/api/com/atproto/repo/applyWrites.ts +41 -0
  96. package/src/api/com/atproto/repo/createRecord.ts +16 -7
  97. package/src/api/com/atproto/repo/deleteRecord.ts +11 -0
  98. package/src/api/com/atproto/repo/putRecord.ts +7 -0
  99. package/src/lexicon/index.ts +46 -0
  100. package/src/lexicon/lexicons.ts +393 -25
  101. package/src/lexicon/types/app/bsky/embed/defs.ts +26 -0
  102. package/src/lexicon/types/app/bsky/embed/images.ts +3 -21
  103. package/src/lexicon/types/app/bsky/embed/record.ts +2 -0
  104. package/src/lexicon/types/app/bsky/embed/recordWithMedia.ts +3 -0
  105. package/src/lexicon/types/app/bsky/embed/video.ts +67 -0
  106. package/src/lexicon/types/app/bsky/feed/defs.ts +2 -0
  107. package/src/lexicon/types/app/bsky/feed/post.ts +2 -0
  108. package/src/lexicon/types/app/bsky/video/defs.ts +32 -0
  109. package/src/lexicon/types/app/bsky/video/getJobStatus.ts +46 -0
  110. package/src/lexicon/types/app/bsky/video/getUploadLimits.ts +47 -0
  111. package/src/lexicon/types/app/bsky/video/uploadVideo.ts +48 -0
  112. package/src/lexicon/types/com/atproto/repo/applyWrites.ts +70 -3
  113. package/src/lexicon/types/com/atproto/repo/createRecord.ts +5 -2
  114. package/src/lexicon/types/com/atproto/repo/defs.ts +25 -0
  115. package/src/lexicon/types/com/atproto/repo/deleteRecord.ts +13 -1
  116. package/src/lexicon/types/com/atproto/repo/putRecord.ts +5 -2
  117. package/src/lexicon/types/tools/ozone/communication/createTemplate.ts +3 -0
  118. package/src/lexicon/types/tools/ozone/communication/defs.ts +2 -0
  119. package/src/lexicon/types/tools/ozone/communication/updateTemplate.ts +3 -0
  120. package/src/lexicon/types/tools/ozone/moderation/emitEvent.ts +1 -0
  121. package/src/repo/prepare.ts +31 -13
  122. package/src/repo/types.ts +4 -0
  123. package/tests/crud.test.ts +131 -14
@@ -1254,9 +1254,8 @@ export const schemaDict = {
1254
1254
  },
1255
1255
  validate: {
1256
1256
  type: 'boolean',
1257
- default: true,
1258
1257
  description:
1259
- "Can be set to 'false' to skip Lexicon schema validation of record data, for all operations.",
1258
+ "Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons.",
1260
1259
  },
1261
1260
  writes: {
1262
1261
  type: 'array',
@@ -1279,6 +1278,31 @@ export const schemaDict = {
1279
1278
  },
1280
1279
  },
1281
1280
  },
1281
+ output: {
1282
+ encoding: 'application/json',
1283
+ schema: {
1284
+ type: 'object',
1285
+ required: [],
1286
+ properties: {
1287
+ commit: {
1288
+ type: 'ref',
1289
+ ref: 'lex:com.atproto.repo.defs#commitMeta',
1290
+ },
1291
+ results: {
1292
+ type: 'array',
1293
+ items: {
1294
+ type: 'union',
1295
+ refs: [
1296
+ 'lex:com.atproto.repo.applyWrites#createResult',
1297
+ 'lex:com.atproto.repo.applyWrites#updateResult',
1298
+ 'lex:com.atproto.repo.applyWrites#deleteResult',
1299
+ ],
1300
+ closed: true,
1301
+ },
1302
+ },
1303
+ },
1304
+ },
1305
+ },
1282
1306
  errors: [
1283
1307
  {
1284
1308
  name: 'InvalidSwap',
@@ -1336,6 +1360,47 @@ export const schemaDict = {
1336
1360
  },
1337
1361
  },
1338
1362
  },
1363
+ createResult: {
1364
+ type: 'object',
1365
+ required: ['uri', 'cid'],
1366
+ properties: {
1367
+ uri: {
1368
+ type: 'string',
1369
+ format: 'at-uri',
1370
+ },
1371
+ cid: {
1372
+ type: 'string',
1373
+ format: 'cid',
1374
+ },
1375
+ validationStatus: {
1376
+ type: 'string',
1377
+ knownValues: ['valid', 'unknown'],
1378
+ },
1379
+ },
1380
+ },
1381
+ updateResult: {
1382
+ type: 'object',
1383
+ required: ['uri', 'cid'],
1384
+ properties: {
1385
+ uri: {
1386
+ type: 'string',
1387
+ format: 'at-uri',
1388
+ },
1389
+ cid: {
1390
+ type: 'string',
1391
+ format: 'cid',
1392
+ },
1393
+ validationStatus: {
1394
+ type: 'string',
1395
+ knownValues: ['valid', 'unknown'],
1396
+ },
1397
+ },
1398
+ },
1399
+ deleteResult: {
1400
+ type: 'object',
1401
+ required: [],
1402
+ properties: {},
1403
+ },
1339
1404
  },
1340
1405
  },
1341
1406
  ComAtprotoRepoCreateRecord: {
@@ -1370,9 +1435,8 @@ export const schemaDict = {
1370
1435
  },
1371
1436
  validate: {
1372
1437
  type: 'boolean',
1373
- default: true,
1374
1438
  description:
1375
- "Can be set to 'false' to skip Lexicon schema validation of record data.",
1439
+ "Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons.",
1376
1440
  },
1377
1441
  record: {
1378
1442
  type: 'unknown',
@@ -1401,6 +1465,14 @@ export const schemaDict = {
1401
1465
  type: 'string',
1402
1466
  format: 'cid',
1403
1467
  },
1468
+ commit: {
1469
+ type: 'ref',
1470
+ ref: 'lex:com.atproto.repo.defs#commitMeta',
1471
+ },
1472
+ validationStatus: {
1473
+ type: 'string',
1474
+ knownValues: ['valid', 'unknown'],
1475
+ },
1404
1476
  },
1405
1477
  },
1406
1478
  },
@@ -1414,6 +1486,25 @@ export const schemaDict = {
1414
1486
  },
1415
1487
  },
1416
1488
  },
1489
+ ComAtprotoRepoDefs: {
1490
+ lexicon: 1,
1491
+ id: 'com.atproto.repo.defs',
1492
+ defs: {
1493
+ commitMeta: {
1494
+ type: 'object',
1495
+ required: ['cid', 'rev'],
1496
+ properties: {
1497
+ cid: {
1498
+ type: 'string',
1499
+ format: 'cid',
1500
+ },
1501
+ rev: {
1502
+ type: 'string',
1503
+ },
1504
+ },
1505
+ },
1506
+ },
1507
+ },
1417
1508
  ComAtprotoRepoDeleteRecord: {
1418
1509
  lexicon: 1,
1419
1510
  id: 'com.atproto.repo.deleteRecord',
@@ -1458,6 +1549,18 @@ export const schemaDict = {
1458
1549
  },
1459
1550
  },
1460
1551
  },
1552
+ output: {
1553
+ encoding: 'application/json',
1554
+ schema: {
1555
+ type: 'object',
1556
+ properties: {
1557
+ commit: {
1558
+ type: 'ref',
1559
+ ref: 'lex:com.atproto.repo.defs#commitMeta',
1560
+ },
1561
+ },
1562
+ },
1563
+ },
1461
1564
  errors: [
1462
1565
  {
1463
1566
  name: 'InvalidSwap',
@@ -1778,9 +1881,8 @@ export const schemaDict = {
1778
1881
  },
1779
1882
  validate: {
1780
1883
  type: 'boolean',
1781
- default: true,
1782
1884
  description:
1783
- "Can be set to 'false' to skip Lexicon schema validation of record data.",
1885
+ "Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons.",
1784
1886
  },
1785
1887
  record: {
1786
1888
  type: 'unknown',
@@ -1815,6 +1917,14 @@ export const schemaDict = {
1815
1917
  type: 'string',
1816
1918
  format: 'cid',
1817
1919
  },
1920
+ commit: {
1921
+ type: 'ref',
1922
+ ref: 'lex:com.atproto.repo.defs#commitMeta',
1923
+ },
1924
+ validationStatus: {
1925
+ type: 'string',
1926
+ knownValues: ['valid', 'unknown'],
1927
+ },
1818
1928
  },
1819
1929
  },
1820
1930
  },
@@ -4796,6 +4906,28 @@ export const schemaDict = {
4796
4906
  },
4797
4907
  },
4798
4908
  },
4909
+ AppBskyEmbedDefs: {
4910
+ lexicon: 1,
4911
+ id: 'app.bsky.embed.defs',
4912
+ defs: {
4913
+ aspectRatio: {
4914
+ type: 'object',
4915
+ description:
4916
+ 'width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.',
4917
+ required: ['width', 'height'],
4918
+ properties: {
4919
+ width: {
4920
+ type: 'integer',
4921
+ minimum: 1,
4922
+ },
4923
+ height: {
4924
+ type: 'integer',
4925
+ minimum: 1,
4926
+ },
4927
+ },
4928
+ },
4929
+ },
4930
+ },
4799
4931
  AppBskyEmbedExternal: {
4800
4932
  lexicon: 1,
4801
4933
  id: 'app.bsky.embed.external',
@@ -4900,23 +5032,7 @@ export const schemaDict = {
4900
5032
  },
4901
5033
  aspectRatio: {
4902
5034
  type: 'ref',
4903
- ref: 'lex:app.bsky.embed.images#aspectRatio',
4904
- },
4905
- },
4906
- },
4907
- aspectRatio: {
4908
- type: 'object',
4909
- description:
4910
- 'width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.',
4911
- required: ['width', 'height'],
4912
- properties: {
4913
- width: {
4914
- type: 'integer',
4915
- minimum: 1,
4916
- },
4917
- height: {
4918
- type: 'integer',
4919
- minimum: 1,
5035
+ ref: 'lex:app.bsky.embed.defs#aspectRatio',
4920
5036
  },
4921
5037
  },
4922
5038
  },
@@ -4957,7 +5073,7 @@ export const schemaDict = {
4957
5073
  },
4958
5074
  aspectRatio: {
4959
5075
  type: 'ref',
4960
- ref: 'lex:app.bsky.embed.images#aspectRatio',
5076
+ ref: 'lex:app.bsky.embed.defs#aspectRatio',
4961
5077
  },
4962
5078
  },
4963
5079
  },
@@ -5043,6 +5159,7 @@ export const schemaDict = {
5043
5159
  type: 'union',
5044
5160
  refs: [
5045
5161
  'lex:app.bsky.embed.images#view',
5162
+ 'lex:app.bsky.embed.video#view',
5046
5163
  'lex:app.bsky.embed.external#view',
5047
5164
  'lex:app.bsky.embed.record#view',
5048
5165
  'lex:app.bsky.embed.recordWithMedia#view',
@@ -5119,7 +5236,11 @@ export const schemaDict = {
5119
5236
  },
5120
5237
  media: {
5121
5238
  type: 'union',
5122
- refs: ['lex:app.bsky.embed.images', 'lex:app.bsky.embed.external'],
5239
+ refs: [
5240
+ 'lex:app.bsky.embed.images',
5241
+ 'lex:app.bsky.embed.video',
5242
+ 'lex:app.bsky.embed.external',
5243
+ ],
5123
5244
  },
5124
5245
  },
5125
5246
  },
@@ -5135,6 +5256,7 @@ export const schemaDict = {
5135
5256
  type: 'union',
5136
5257
  refs: [
5137
5258
  'lex:app.bsky.embed.images#view',
5259
+ 'lex:app.bsky.embed.video#view',
5138
5260
  'lex:app.bsky.embed.external#view',
5139
5261
  ],
5140
5262
  },
@@ -5142,6 +5264,85 @@ export const schemaDict = {
5142
5264
  },
5143
5265
  },
5144
5266
  },
5267
+ AppBskyEmbedVideo: {
5268
+ lexicon: 1,
5269
+ id: 'app.bsky.embed.video',
5270
+ description: 'A video embedded in a Bluesky record (eg, a post).',
5271
+ defs: {
5272
+ main: {
5273
+ type: 'object',
5274
+ required: ['video'],
5275
+ properties: {
5276
+ video: {
5277
+ type: 'blob',
5278
+ accept: ['video/mp4'],
5279
+ maxSize: 50000000,
5280
+ },
5281
+ captions: {
5282
+ type: 'array',
5283
+ items: {
5284
+ type: 'ref',
5285
+ ref: 'lex:app.bsky.embed.video#caption',
5286
+ },
5287
+ maxLength: 20,
5288
+ },
5289
+ alt: {
5290
+ type: 'string',
5291
+ description:
5292
+ 'Alt text description of the video, for accessibility.',
5293
+ maxGraphemes: 1000,
5294
+ maxLength: 10000,
5295
+ },
5296
+ aspectRatio: {
5297
+ type: 'ref',
5298
+ ref: 'lex:app.bsky.embed.defs#aspectRatio',
5299
+ },
5300
+ },
5301
+ },
5302
+ caption: {
5303
+ type: 'object',
5304
+ required: ['lang', 'file'],
5305
+ properties: {
5306
+ lang: {
5307
+ type: 'string',
5308
+ format: 'language',
5309
+ },
5310
+ file: {
5311
+ type: 'blob',
5312
+ accept: ['text/vtt'],
5313
+ maxSize: 20000,
5314
+ },
5315
+ },
5316
+ },
5317
+ view: {
5318
+ type: 'object',
5319
+ required: ['cid', 'playlist'],
5320
+ properties: {
5321
+ cid: {
5322
+ type: 'string',
5323
+ format: 'cid',
5324
+ },
5325
+ playlist: {
5326
+ type: 'string',
5327
+ format: 'uri',
5328
+ },
5329
+ thumbnail: {
5330
+ type: 'string',
5331
+ format: 'uri',
5332
+ },
5333
+ alt: {
5334
+ type: 'string',
5335
+ maxGraphemes: 1000,
5336
+ maxLength: 10000,
5337
+ },
5338
+ aspectRatio: {
5339
+ type: 'ref',
5340
+ ref: 'lex:app.bsky.embed.defs#aspectRatio',
5341
+ },
5342
+ },
5343
+ },
5344
+ },
5345
+ },
5145
5346
  AppBskyFeedDefs: {
5146
5347
  lexicon: 1,
5147
5348
  id: 'app.bsky.feed.defs',
@@ -5169,6 +5370,7 @@ export const schemaDict = {
5169
5370
  type: 'union',
5170
5371
  refs: [
5171
5372
  'lex:app.bsky.embed.images#view',
5373
+ 'lex:app.bsky.embed.video#view',
5172
5374
  'lex:app.bsky.embed.external#view',
5173
5375
  'lex:app.bsky.embed.record#view',
5174
5376
  'lex:app.bsky.embed.recordWithMedia#view',
@@ -6596,6 +6798,7 @@ export const schemaDict = {
6596
6798
  type: 'union',
6597
6799
  refs: [
6598
6800
  'lex:app.bsky.embed.images',
6801
+ 'lex:app.bsky.embed.video',
6599
6802
  'lex:app.bsky.embed.external',
6600
6803
  'lex:app.bsky.embed.record',
6601
6804
  'lex:app.bsky.embed.recordWithMedia',
@@ -9199,6 +9402,138 @@ export const schemaDict = {
9199
9402
  },
9200
9403
  },
9201
9404
  },
9405
+ AppBskyVideoDefs: {
9406
+ lexicon: 1,
9407
+ id: 'app.bsky.video.defs',
9408
+ defs: {
9409
+ jobStatus: {
9410
+ type: 'object',
9411
+ required: ['jobId', 'did', 'state'],
9412
+ properties: {
9413
+ jobId: {
9414
+ type: 'string',
9415
+ },
9416
+ did: {
9417
+ type: 'string',
9418
+ format: 'did',
9419
+ },
9420
+ state: {
9421
+ type: 'string',
9422
+ description:
9423
+ 'The state of the video processing job. All values not listed as a known value indicate that the job is in process.',
9424
+ knownValues: ['JOB_STATE_COMPLETED', 'JOB_STATE_FAILED'],
9425
+ },
9426
+ progress: {
9427
+ type: 'integer',
9428
+ minimum: 0,
9429
+ maximum: 100,
9430
+ description: 'Progress within the current processing state.',
9431
+ },
9432
+ blob: {
9433
+ type: 'blob',
9434
+ },
9435
+ error: {
9436
+ type: 'string',
9437
+ },
9438
+ message: {
9439
+ type: 'string',
9440
+ },
9441
+ },
9442
+ },
9443
+ },
9444
+ },
9445
+ AppBskyVideoGetJobStatus: {
9446
+ lexicon: 1,
9447
+ id: 'app.bsky.video.getJobStatus',
9448
+ defs: {
9449
+ main: {
9450
+ type: 'query',
9451
+ description: 'Get status details for a video processing job.',
9452
+ parameters: {
9453
+ type: 'params',
9454
+ required: ['jobId'],
9455
+ properties: {
9456
+ jobId: {
9457
+ type: 'string',
9458
+ },
9459
+ },
9460
+ },
9461
+ output: {
9462
+ encoding: 'application/json',
9463
+ schema: {
9464
+ type: 'object',
9465
+ required: ['jobStatus'],
9466
+ properties: {
9467
+ jobStatus: {
9468
+ type: 'ref',
9469
+ ref: 'lex:app.bsky.video.defs#jobStatus',
9470
+ },
9471
+ },
9472
+ },
9473
+ },
9474
+ },
9475
+ },
9476
+ },
9477
+ AppBskyVideoGetUploadLimits: {
9478
+ lexicon: 1,
9479
+ id: 'app.bsky.video.getUploadLimits',
9480
+ defs: {
9481
+ main: {
9482
+ type: 'query',
9483
+ description: 'Get video upload limits for the authenticated user.',
9484
+ output: {
9485
+ encoding: 'application/json',
9486
+ schema: {
9487
+ type: 'object',
9488
+ required: ['canUpload'],
9489
+ properties: {
9490
+ canUpload: {
9491
+ type: 'boolean',
9492
+ },
9493
+ remainingDailyVideos: {
9494
+ type: 'integer',
9495
+ },
9496
+ remainingDailyBytes: {
9497
+ type: 'integer',
9498
+ },
9499
+ message: {
9500
+ type: 'string',
9501
+ },
9502
+ error: {
9503
+ type: 'string',
9504
+ },
9505
+ },
9506
+ },
9507
+ },
9508
+ },
9509
+ },
9510
+ },
9511
+ AppBskyVideoUploadVideo: {
9512
+ lexicon: 1,
9513
+ id: 'app.bsky.video.uploadVideo',
9514
+ defs: {
9515
+ main: {
9516
+ type: 'procedure',
9517
+ description: 'Upload a video to be processed then stored on the PDS.',
9518
+ input: {
9519
+ encoding: 'video/mp4',
9520
+ },
9521
+ output: {
9522
+ encoding: 'application/json',
9523
+ schema: {
9524
+ type: 'object',
9525
+ required: ['jobStatus'],
9526
+ properties: {
9527
+ jobStatus: {
9528
+ type: 'ref',
9529
+ ref: 'lex:app.bsky.video.defs#jobStatus',
9530
+ },
9531
+ },
9532
+ },
9533
+ },
9534
+ },
9535
+ },
9536
+ },
9202
9537
  ChatBskyActorDeclaration: {
9203
9538
  lexicon: 1,
9204
9539
  id: 'chat.bsky.actor.declaration',
@@ -10131,6 +10466,11 @@ export const schemaDict = {
10131
10466
  type: 'string',
10132
10467
  description: 'Subject of the message, used in emails.',
10133
10468
  },
10469
+ lang: {
10470
+ type: 'string',
10471
+ format: 'language',
10472
+ description: 'Message language.',
10473
+ },
10134
10474
  createdBy: {
10135
10475
  type: 'string',
10136
10476
  format: 'did',
@@ -10146,6 +10486,11 @@ export const schemaDict = {
10146
10486
  ref: 'lex:tools.ozone.communication.defs#templateView',
10147
10487
  },
10148
10488
  },
10489
+ errors: [
10490
+ {
10491
+ name: 'DuplicateTemplateName',
10492
+ },
10493
+ ],
10149
10494
  },
10150
10495
  },
10151
10496
  },
@@ -10184,6 +10529,11 @@ export const schemaDict = {
10184
10529
  disabled: {
10185
10530
  type: 'boolean',
10186
10531
  },
10532
+ lang: {
10533
+ type: 'string',
10534
+ format: 'language',
10535
+ description: 'Message language.',
10536
+ },
10187
10537
  lastUpdatedBy: {
10188
10538
  type: 'string',
10189
10539
  format: 'did',
@@ -10271,6 +10621,11 @@ export const schemaDict = {
10271
10621
  type: 'string',
10272
10622
  description: 'Name of the template.',
10273
10623
  },
10624
+ lang: {
10625
+ type: 'string',
10626
+ format: 'language',
10627
+ description: 'Message language.',
10628
+ },
10274
10629
  contentMarkdown: {
10275
10630
  type: 'string',
10276
10631
  description:
@@ -10298,6 +10653,11 @@ export const schemaDict = {
10298
10653
  ref: 'lex:tools.ozone.communication.defs#templateView',
10299
10654
  },
10300
10655
  },
10656
+ errors: [
10657
+ {
10658
+ name: 'DuplicateTemplateName',
10659
+ },
10660
+ ],
10301
10661
  },
10302
10662
  },
10303
10663
  },
@@ -11097,6 +11457,7 @@ export const schemaDict = {
11097
11457
  'lex:tools.ozone.moderation.defs#modEventMuteReporter',
11098
11458
  'lex:tools.ozone.moderation.defs#modEventUnmuteReporter',
11099
11459
  'lex:tools.ozone.moderation.defs#modEventReverseTakedown',
11460
+ 'lex:tools.ozone.moderation.defs#modEventResolveAppeal',
11100
11461
  'lex:tools.ozone.moderation.defs#modEventEmail',
11101
11462
  'lex:tools.ozone.moderation.defs#modEventTag',
11102
11463
  ],
@@ -11859,6 +12220,7 @@ export const ids = {
11859
12220
  ComAtprotoModerationDefs: 'com.atproto.moderation.defs',
11860
12221
  ComAtprotoRepoApplyWrites: 'com.atproto.repo.applyWrites',
11861
12222
  ComAtprotoRepoCreateRecord: 'com.atproto.repo.createRecord',
12223
+ ComAtprotoRepoDefs: 'com.atproto.repo.defs',
11862
12224
  ComAtprotoRepoDeleteRecord: 'com.atproto.repo.deleteRecord',
11863
12225
  ComAtprotoRepoDescribeRepo: 'com.atproto.repo.describeRepo',
11864
12226
  ComAtprotoRepoGetRecord: 'com.atproto.repo.getRecord',
@@ -11924,10 +12286,12 @@ export const ids = {
11924
12286
  AppBskyActorPutPreferences: 'app.bsky.actor.putPreferences',
11925
12287
  AppBskyActorSearchActors: 'app.bsky.actor.searchActors',
11926
12288
  AppBskyActorSearchActorsTypeahead: 'app.bsky.actor.searchActorsTypeahead',
12289
+ AppBskyEmbedDefs: 'app.bsky.embed.defs',
11927
12290
  AppBskyEmbedExternal: 'app.bsky.embed.external',
11928
12291
  AppBskyEmbedImages: 'app.bsky.embed.images',
11929
12292
  AppBskyEmbedRecord: 'app.bsky.embed.record',
11930
12293
  AppBskyEmbedRecordWithMedia: 'app.bsky.embed.recordWithMedia',
12294
+ AppBskyEmbedVideo: 'app.bsky.embed.video',
11931
12295
  AppBskyFeedDefs: 'app.bsky.feed.defs',
11932
12296
  AppBskyFeedDescribeFeedGenerator: 'app.bsky.feed.describeFeedGenerator',
11933
12297
  AppBskyFeedGenerator: 'app.bsky.feed.generator',
@@ -12001,6 +12365,10 @@ export const ids = {
12001
12365
  AppBskyUnspeccedSearchActorsSkeleton:
12002
12366
  'app.bsky.unspecced.searchActorsSkeleton',
12003
12367
  AppBskyUnspeccedSearchPostsSkeleton: 'app.bsky.unspecced.searchPostsSkeleton',
12368
+ AppBskyVideoDefs: 'app.bsky.video.defs',
12369
+ AppBskyVideoGetJobStatus: 'app.bsky.video.getJobStatus',
12370
+ AppBskyVideoGetUploadLimits: 'app.bsky.video.getUploadLimits',
12371
+ AppBskyVideoUploadVideo: 'app.bsky.video.uploadVideo',
12004
12372
  ChatBskyActorDeclaration: 'chat.bsky.actor.declaration',
12005
12373
  ChatBskyActorDefs: 'chat.bsky.actor.defs',
12006
12374
  ChatBskyActorDeleteAccount: 'chat.bsky.actor.deleteAccount',
@@ -0,0 +1,26 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { ValidationResult, BlobRef } from '@atproto/lexicon'
5
+ import { lexicons } from '../../../../lexicons'
6
+ import { isObj, hasProp } from '../../../../util'
7
+ import { CID } from 'multiformats/cid'
8
+
9
+ /** width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. */
10
+ export interface AspectRatio {
11
+ width: number
12
+ height: number
13
+ [k: string]: unknown
14
+ }
15
+
16
+ export function isAspectRatio(v: unknown): v is AspectRatio {
17
+ return (
18
+ isObj(v) &&
19
+ hasProp(v, '$type') &&
20
+ v.$type === 'app.bsky.embed.defs#aspectRatio'
21
+ )
22
+ }
23
+
24
+ export function validateAspectRatio(v: unknown): ValidationResult {
25
+ return lexicons.validate('app.bsky.embed.defs#aspectRatio', v)
26
+ }
@@ -5,6 +5,7 @@ import { ValidationResult, BlobRef } from '@atproto/lexicon'
5
5
  import { lexicons } from '../../../../lexicons'
6
6
  import { isObj, hasProp } from '../../../../util'
7
7
  import { CID } from 'multiformats/cid'
8
+ import * as AppBskyEmbedDefs from './defs'
8
9
 
9
10
  export interface Main {
10
11
  images: Image[]
@@ -28,7 +29,7 @@ export interface Image {
28
29
  image: BlobRef
29
30
  /** Alt text description of the image, for accessibility. */
30
31
  alt: string
31
- aspectRatio?: AspectRatio
32
+ aspectRatio?: AppBskyEmbedDefs.AspectRatio
32
33
  [k: string]: unknown
33
34
  }
34
35
 
@@ -42,25 +43,6 @@ export function validateImage(v: unknown): ValidationResult {
42
43
  return lexicons.validate('app.bsky.embed.images#image', v)
43
44
  }
44
45
 
45
- /** width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit. */
46
- export interface AspectRatio {
47
- width: number
48
- height: number
49
- [k: string]: unknown
50
- }
51
-
52
- export function isAspectRatio(v: unknown): v is AspectRatio {
53
- return (
54
- isObj(v) &&
55
- hasProp(v, '$type') &&
56
- v.$type === 'app.bsky.embed.images#aspectRatio'
57
- )
58
- }
59
-
60
- export function validateAspectRatio(v: unknown): ValidationResult {
61
- return lexicons.validate('app.bsky.embed.images#aspectRatio', v)
62
- }
63
-
64
46
  export interface View {
65
47
  images: ViewImage[]
66
48
  [k: string]: unknown
@@ -83,7 +65,7 @@ export interface ViewImage {
83
65
  fullsize: string
84
66
  /** Alt text description of the image, for accessibility. */
85
67
  alt: string
86
- aspectRatio?: AspectRatio
68
+ aspectRatio?: AppBskyEmbedDefs.AspectRatio
87
69
  [k: string]: unknown
88
70
  }
89
71
 
@@ -12,6 +12,7 @@ import * as AppBskyLabelerDefs from '../labeler/defs'
12
12
  import * as AppBskyActorDefs from '../actor/defs'
13
13
  import * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs'
14
14
  import * as AppBskyEmbedImages from './images'
15
+ import * as AppBskyEmbedVideo from './video'
15
16
  import * as AppBskyEmbedExternal from './external'
16
17
  import * as AppBskyEmbedRecordWithMedia from './recordWithMedia'
17
18
 
@@ -70,6 +71,7 @@ export interface ViewRecord {
70
71
  quoteCount?: number
71
72
  embeds?: (
72
73
  | AppBskyEmbedImages.View
74
+ | AppBskyEmbedVideo.View
73
75
  | AppBskyEmbedExternal.View
74
76
  | View
75
77
  | AppBskyEmbedRecordWithMedia.View