@atproto/bsky 0.0.79 → 0.0.81
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.
- package/CHANGELOG.md +16 -0
- package/dist/api/app/bsky/feed/getQuotes.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getQuotes.js +3 -1
- package/dist/api/app/bsky/feed/getQuotes.js.map +1 -1
- package/dist/config.d.ts +4 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +12 -0
- package/dist/config.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/lexicon/index.d.ts +11 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +32 -1
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +346 -18
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +364 -24
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/defs.d.ts +13 -0
- package/dist/lexicon/types/app/bsky/embed/defs.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/embed/defs.js +16 -0
- package/dist/lexicon/types/app/bsky/embed/defs.js.map +1 -0
- package/dist/lexicon/types/app/bsky/embed/images.d.ts +3 -10
- package/dist/lexicon/types/app/bsky/embed/images.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/images.js +1 -11
- package/dist/lexicon/types/app/bsky/embed/images.js.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/record.d.ts +2 -1
- package/dist/lexicon/types/app/bsky/embed/record.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/record.js.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/recordWithMedia.d.ts +3 -2
- package/dist/lexicon/types/app/bsky/embed/recordWithMedia.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/recordWithMedia.js.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/video.d.ts +33 -0
- package/dist/lexicon/types/app/bsky/embed/video.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/embed/video.js +35 -0
- package/dist/lexicon/types/app/bsky/embed/video.js.map +1 -0
- package/dist/lexicon/types/app/bsky/feed/defs.d.ts +2 -1
- package/dist/lexicon/types/app/bsky/feed/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/post.d.ts +2 -1
- package/dist/lexicon/types/app/bsky/feed/post.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/feed/post.js.map +1 -1
- package/dist/lexicon/types/app/bsky/video/defs.d.ts +19 -0
- package/dist/lexicon/types/app/bsky/video/defs.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/video/defs.js +16 -0
- package/dist/lexicon/types/app/bsky/video/defs.js.map +1 -0
- package/dist/lexicon/types/app/bsky/video/getJobStatus.d.ts +36 -0
- package/dist/lexicon/types/app/bsky/video/getJobStatus.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/video/getJobStatus.js +3 -0
- package/dist/lexicon/types/app/bsky/video/getJobStatus.js.map +1 -0
- package/dist/lexicon/types/app/bsky/video/getUploadLimits.d.ts +38 -0
- package/dist/lexicon/types/app/bsky/video/getUploadLimits.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/video/getUploadLimits.js +3 -0
- package/dist/lexicon/types/app/bsky/video/getUploadLimits.js.map +1 -0
- package/dist/lexicon/types/app/bsky/video/uploadVideo.d.ts +41 -0
- package/dist/lexicon/types/app/bsky/video/uploadVideo.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/video/uploadVideo.js +3 -0
- package/dist/lexicon/types/app/bsky/video/uploadVideo.js.map +1 -0
- package/dist/lexicon/types/com/atproto/repo/applyWrites.d.ts +38 -4
- package/dist/lexicon/types/com/atproto/repo/applyWrites.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/applyWrites.js +31 -1
- package/dist/lexicon/types/com/atproto/repo/applyWrites.js.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/createRecord.d.ts +5 -2
- package/dist/lexicon/types/com/atproto/repo/createRecord.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/defs.d.ts +12 -0
- package/dist/lexicon/types/com/atproto/repo/defs.d.ts.map +1 -0
- package/dist/lexicon/types/com/atproto/repo/defs.js +16 -0
- package/dist/lexicon/types/com/atproto/repo/defs.js.map +1 -0
- package/dist/lexicon/types/com/atproto/repo/deleteRecord.d.ts +14 -2
- package/dist/lexicon/types/com/atproto/repo/deleteRecord.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/repo/putRecord.d.ts +5 -2
- package/dist/lexicon/types/com/atproto/repo/putRecord.d.ts.map +1 -1
- package/dist/views/index.d.ts +5 -2
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +24 -1
- package/dist/views/index.js.map +1 -1
- package/dist/views/types.d.ts +5 -2
- package/dist/views/types.d.ts.map +1 -1
- package/dist/views/types.js +3 -1
- package/dist/views/types.js.map +1 -1
- package/dist/views/util.d.ts +15 -0
- package/dist/views/util.d.ts.map +1 -1
- package/dist/views/util.js +42 -1
- package/dist/views/util.js.map +1 -1
- package/package.json +4 -4
- package/src/api/app/bsky/feed/getQuotes.ts +4 -1
- package/src/config.ts +17 -0
- package/src/index.ts +10 -1
- package/src/lexicon/index.ts +46 -0
- package/src/lexicon/lexicons.ts +367 -25
- package/src/lexicon/types/app/bsky/embed/defs.ts +26 -0
- package/src/lexicon/types/app/bsky/embed/images.ts +3 -21
- package/src/lexicon/types/app/bsky/embed/record.ts +2 -0
- package/src/lexicon/types/app/bsky/embed/recordWithMedia.ts +3 -0
- package/src/lexicon/types/app/bsky/embed/video.ts +67 -0
- package/src/lexicon/types/app/bsky/feed/defs.ts +2 -0
- package/src/lexicon/types/app/bsky/feed/post.ts +2 -0
- package/src/lexicon/types/app/bsky/video/defs.ts +32 -0
- package/src/lexicon/types/app/bsky/video/getJobStatus.ts +46 -0
- package/src/lexicon/types/app/bsky/video/getUploadLimits.ts +47 -0
- package/src/lexicon/types/app/bsky/video/uploadVideo.ts +48 -0
- package/src/lexicon/types/com/atproto/repo/applyWrites.ts +70 -3
- package/src/lexicon/types/com/atproto/repo/createRecord.ts +5 -2
- package/src/lexicon/types/com/atproto/repo/defs.ts +25 -0
- package/src/lexicon/types/com/atproto/repo/deleteRecord.ts +13 -1
- package/src/lexicon/types/com/atproto/repo/putRecord.ts +5 -2
- package/src/views/index.ts +30 -3
- package/src/views/types.ts +16 -1
- package/src/views/util.ts +24 -0
- package/tests/_util.ts +9 -0
- package/tests/views/__snapshots__/posts.test.ts.snap +190 -0
- package/tests/views/posts.test.ts +75 -0
- package/tests/views/quotes.test.ts +15 -0
package/src/lexicon/lexicons.ts
CHANGED
|
@@ -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
|
|
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.
|
|
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.
|
|
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: [
|
|
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',
|
|
@@ -10141,6 +10476,7 @@ export const ids = {
|
|
|
10141
10476
|
ComAtprotoModerationDefs: 'com.atproto.moderation.defs',
|
|
10142
10477
|
ComAtprotoRepoApplyWrites: 'com.atproto.repo.applyWrites',
|
|
10143
10478
|
ComAtprotoRepoCreateRecord: 'com.atproto.repo.createRecord',
|
|
10479
|
+
ComAtprotoRepoDefs: 'com.atproto.repo.defs',
|
|
10144
10480
|
ComAtprotoRepoDeleteRecord: 'com.atproto.repo.deleteRecord',
|
|
10145
10481
|
ComAtprotoRepoDescribeRepo: 'com.atproto.repo.describeRepo',
|
|
10146
10482
|
ComAtprotoRepoGetRecord: 'com.atproto.repo.getRecord',
|
|
@@ -10206,10 +10542,12 @@ export const ids = {
|
|
|
10206
10542
|
AppBskyActorPutPreferences: 'app.bsky.actor.putPreferences',
|
|
10207
10543
|
AppBskyActorSearchActors: 'app.bsky.actor.searchActors',
|
|
10208
10544
|
AppBskyActorSearchActorsTypeahead: 'app.bsky.actor.searchActorsTypeahead',
|
|
10545
|
+
AppBskyEmbedDefs: 'app.bsky.embed.defs',
|
|
10209
10546
|
AppBskyEmbedExternal: 'app.bsky.embed.external',
|
|
10210
10547
|
AppBskyEmbedImages: 'app.bsky.embed.images',
|
|
10211
10548
|
AppBskyEmbedRecord: 'app.bsky.embed.record',
|
|
10212
10549
|
AppBskyEmbedRecordWithMedia: 'app.bsky.embed.recordWithMedia',
|
|
10550
|
+
AppBskyEmbedVideo: 'app.bsky.embed.video',
|
|
10213
10551
|
AppBskyFeedDefs: 'app.bsky.feed.defs',
|
|
10214
10552
|
AppBskyFeedDescribeFeedGenerator: 'app.bsky.feed.describeFeedGenerator',
|
|
10215
10553
|
AppBskyFeedGenerator: 'app.bsky.feed.generator',
|
|
@@ -10283,6 +10621,10 @@ export const ids = {
|
|
|
10283
10621
|
AppBskyUnspeccedSearchActorsSkeleton:
|
|
10284
10622
|
'app.bsky.unspecced.searchActorsSkeleton',
|
|
10285
10623
|
AppBskyUnspeccedSearchPostsSkeleton: 'app.bsky.unspecced.searchPostsSkeleton',
|
|
10624
|
+
AppBskyVideoDefs: 'app.bsky.video.defs',
|
|
10625
|
+
AppBskyVideoGetJobStatus: 'app.bsky.video.getJobStatus',
|
|
10626
|
+
AppBskyVideoGetUploadLimits: 'app.bsky.video.getUploadLimits',
|
|
10627
|
+
AppBskyVideoUploadVideo: 'app.bsky.video.uploadVideo',
|
|
10286
10628
|
ChatBskyActorDeclaration: 'chat.bsky.actor.declaration',
|
|
10287
10629
|
ChatBskyActorDefs: 'chat.bsky.actor.defs',
|
|
10288
10630
|
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
|
|
@@ -7,12 +7,14 @@ import { isObj, hasProp } from '../../../../util'
|
|
|
7
7
|
import { CID } from 'multiformats/cid'
|
|
8
8
|
import * as AppBskyEmbedRecord from './record'
|
|
9
9
|
import * as AppBskyEmbedImages from './images'
|
|
10
|
+
import * as AppBskyEmbedVideo from './video'
|
|
10
11
|
import * as AppBskyEmbedExternal from './external'
|
|
11
12
|
|
|
12
13
|
export interface Main {
|
|
13
14
|
record: AppBskyEmbedRecord.Main
|
|
14
15
|
media:
|
|
15
16
|
| AppBskyEmbedImages.Main
|
|
17
|
+
| AppBskyEmbedVideo.Main
|
|
16
18
|
| AppBskyEmbedExternal.Main
|
|
17
19
|
| { $type: string; [k: string]: unknown }
|
|
18
20
|
[k: string]: unknown
|
|
@@ -35,6 +37,7 @@ export interface View {
|
|
|
35
37
|
record: AppBskyEmbedRecord.View
|
|
36
38
|
media:
|
|
37
39
|
| AppBskyEmbedImages.View
|
|
40
|
+
| AppBskyEmbedVideo.View
|
|
38
41
|
| AppBskyEmbedExternal.View
|
|
39
42
|
| { $type: string; [k: string]: unknown }
|
|
40
43
|
[k: string]: unknown
|