@atproto/api 0.13.1 → 0.13.2-next.0
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/dist/client/index.d.ts +17 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +39 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +236 -15
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +247 -18
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/embed/defs.d.ts +13 -0
- package/dist/client/types/app/bsky/embed/defs.d.ts.map +1 -0
- package/dist/client/types/app/bsky/embed/defs.js +16 -0
- package/dist/client/types/app/bsky/embed/defs.js.map +1 -0
- package/dist/client/types/app/bsky/embed/images.d.ts +3 -10
- package/dist/client/types/app/bsky/embed/images.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/images.js +1 -11
- package/dist/client/types/app/bsky/embed/images.js.map +1 -1
- package/dist/client/types/app/bsky/embed/record.d.ts +2 -1
- package/dist/client/types/app/bsky/embed/record.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/record.js.map +1 -1
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts +3 -2
- package/dist/client/types/app/bsky/embed/recordWithMedia.d.ts.map +1 -1
- package/dist/client/types/app/bsky/embed/recordWithMedia.js.map +1 -1
- package/dist/client/types/app/bsky/embed/video.d.ts +33 -0
- package/dist/client/types/app/bsky/embed/video.d.ts.map +1 -0
- package/dist/client/types/app/bsky/embed/video.js +35 -0
- package/dist/client/types/app/bsky/embed/video.js.map +1 -0
- package/dist/client/types/app/bsky/feed/defs.d.ts +2 -1
- package/dist/client/types/app/bsky/feed/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/defs.js.map +1 -1
- package/dist/client/types/app/bsky/feed/post.d.ts +2 -1
- package/dist/client/types/app/bsky/feed/post.d.ts.map +1 -1
- package/dist/client/types/app/bsky/feed/post.js.map +1 -1
- package/dist/client/types/app/bsky/video/defs.d.ts +19 -0
- package/dist/client/types/app/bsky/video/defs.d.ts.map +1 -0
- package/dist/client/types/app/bsky/video/defs.js +16 -0
- package/dist/client/types/app/bsky/video/defs.js.map +1 -0
- package/dist/client/types/app/bsky/video/getJobStatus.d.ts +24 -0
- package/dist/client/types/app/bsky/video/getJobStatus.d.ts.map +1 -0
- package/dist/client/types/app/bsky/video/getJobStatus.js +8 -0
- package/dist/client/types/app/bsky/video/getJobStatus.js.map +1 -0
- package/dist/client/types/app/bsky/video/getUploadLimits.d.ts +26 -0
- package/dist/client/types/app/bsky/video/getUploadLimits.d.ts.map +1 -0
- package/dist/client/types/app/bsky/video/getUploadLimits.js +8 -0
- package/dist/client/types/app/bsky/video/getUploadLimits.js.map +1 -0
- package/dist/client/types/app/bsky/video/uploadVideo.d.ts +25 -0
- package/dist/client/types/app/bsky/video/uploadVideo.d.ts.map +1 -0
- package/dist/client/types/app/bsky/video/uploadVideo.js +8 -0
- package/dist/client/types/app/bsky/video/uploadVideo.js.map +1 -0
- package/package.json +4 -4
- package/src/client/index.ts +53 -0
- package/src/client/lexicons.ts +250 -19
- package/src/client/types/app/bsky/embed/defs.ts +26 -0
- package/src/client/types/app/bsky/embed/images.ts +3 -21
- package/src/client/types/app/bsky/embed/record.ts +2 -0
- package/src/client/types/app/bsky/embed/recordWithMedia.ts +3 -0
- package/src/client/types/app/bsky/embed/video.ts +67 -0
- package/src/client/types/app/bsky/feed/defs.ts +2 -0
- package/src/client/types/app/bsky/feed/post.ts +2 -0
- package/src/client/types/app/bsky/video/defs.ts +32 -0
- package/src/client/types/app/bsky/video/getJobStatus.ts +35 -0
- package/src/client/types/app/bsky/video/getUploadLimits.ts +36 -0
- package/src/client/types/app/bsky/video/uploadVideo.ts +35 -0
package/dist/client/lexicons.js
CHANGED
|
@@ -4638,6 +4638,27 @@ exports.schemaDict = {
|
|
|
4638
4638
|
},
|
|
4639
4639
|
},
|
|
4640
4640
|
},
|
|
4641
|
+
AppBskyEmbedDefs: {
|
|
4642
|
+
lexicon: 1,
|
|
4643
|
+
id: 'app.bsky.embed.defs',
|
|
4644
|
+
defs: {
|
|
4645
|
+
aspectRatio: {
|
|
4646
|
+
type: 'object',
|
|
4647
|
+
description: 'width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.',
|
|
4648
|
+
required: ['width', 'height'],
|
|
4649
|
+
properties: {
|
|
4650
|
+
width: {
|
|
4651
|
+
type: 'integer',
|
|
4652
|
+
minimum: 1,
|
|
4653
|
+
},
|
|
4654
|
+
height: {
|
|
4655
|
+
type: 'integer',
|
|
4656
|
+
minimum: 1,
|
|
4657
|
+
},
|
|
4658
|
+
},
|
|
4659
|
+
},
|
|
4660
|
+
},
|
|
4661
|
+
},
|
|
4641
4662
|
AppBskyEmbedExternal: {
|
|
4642
4663
|
lexicon: 1,
|
|
4643
4664
|
id: 'app.bsky.embed.external',
|
|
@@ -4740,22 +4761,7 @@ exports.schemaDict = {
|
|
|
4740
4761
|
},
|
|
4741
4762
|
aspectRatio: {
|
|
4742
4763
|
type: 'ref',
|
|
4743
|
-
ref: 'lex:app.bsky.embed.
|
|
4744
|
-
},
|
|
4745
|
-
},
|
|
4746
|
-
},
|
|
4747
|
-
aspectRatio: {
|
|
4748
|
-
type: 'object',
|
|
4749
|
-
description: 'width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.',
|
|
4750
|
-
required: ['width', 'height'],
|
|
4751
|
-
properties: {
|
|
4752
|
-
width: {
|
|
4753
|
-
type: 'integer',
|
|
4754
|
-
minimum: 1,
|
|
4755
|
-
},
|
|
4756
|
-
height: {
|
|
4757
|
-
type: 'integer',
|
|
4758
|
-
minimum: 1,
|
|
4764
|
+
ref: 'lex:app.bsky.embed.defs#aspectRatio',
|
|
4759
4765
|
},
|
|
4760
4766
|
},
|
|
4761
4767
|
},
|
|
@@ -4793,7 +4799,7 @@ exports.schemaDict = {
|
|
|
4793
4799
|
},
|
|
4794
4800
|
aspectRatio: {
|
|
4795
4801
|
type: 'ref',
|
|
4796
|
-
ref: 'lex:app.bsky.embed.
|
|
4802
|
+
ref: 'lex:app.bsky.embed.defs#aspectRatio',
|
|
4797
4803
|
},
|
|
4798
4804
|
},
|
|
4799
4805
|
},
|
|
@@ -4874,6 +4880,7 @@ exports.schemaDict = {
|
|
|
4874
4880
|
type: 'union',
|
|
4875
4881
|
refs: [
|
|
4876
4882
|
'lex:app.bsky.embed.images#view',
|
|
4883
|
+
'lex:app.bsky.embed.video#view',
|
|
4877
4884
|
'lex:app.bsky.embed.external#view',
|
|
4878
4885
|
'lex:app.bsky.embed.record#view',
|
|
4879
4886
|
'lex:app.bsky.embed.recordWithMedia#view',
|
|
@@ -4935,7 +4942,11 @@ exports.schemaDict = {
|
|
|
4935
4942
|
},
|
|
4936
4943
|
media: {
|
|
4937
4944
|
type: 'union',
|
|
4938
|
-
refs: [
|
|
4945
|
+
refs: [
|
|
4946
|
+
'lex:app.bsky.embed.images',
|
|
4947
|
+
'lex:app.bsky.embed.video',
|
|
4948
|
+
'lex:app.bsky.embed.external',
|
|
4949
|
+
],
|
|
4939
4950
|
},
|
|
4940
4951
|
},
|
|
4941
4952
|
},
|
|
@@ -4951,6 +4962,7 @@ exports.schemaDict = {
|
|
|
4951
4962
|
type: 'union',
|
|
4952
4963
|
refs: [
|
|
4953
4964
|
'lex:app.bsky.embed.images#view',
|
|
4965
|
+
'lex:app.bsky.embed.video#view',
|
|
4954
4966
|
'lex:app.bsky.embed.external#view',
|
|
4955
4967
|
],
|
|
4956
4968
|
},
|
|
@@ -4958,6 +4970,84 @@ exports.schemaDict = {
|
|
|
4958
4970
|
},
|
|
4959
4971
|
},
|
|
4960
4972
|
},
|
|
4973
|
+
AppBskyEmbedVideo: {
|
|
4974
|
+
lexicon: 1,
|
|
4975
|
+
id: 'app.bsky.embed.video',
|
|
4976
|
+
description: 'A video embedded in a Bluesky record (eg, a post).',
|
|
4977
|
+
defs: {
|
|
4978
|
+
main: {
|
|
4979
|
+
type: 'object',
|
|
4980
|
+
required: ['video'],
|
|
4981
|
+
properties: {
|
|
4982
|
+
video: {
|
|
4983
|
+
type: 'blob',
|
|
4984
|
+
accept: ['video/mp4'],
|
|
4985
|
+
maxSize: 50000000,
|
|
4986
|
+
},
|
|
4987
|
+
captions: {
|
|
4988
|
+
type: 'array',
|
|
4989
|
+
items: {
|
|
4990
|
+
type: 'ref',
|
|
4991
|
+
ref: 'lex:app.bsky.embed.video#caption',
|
|
4992
|
+
},
|
|
4993
|
+
maxLength: 20,
|
|
4994
|
+
},
|
|
4995
|
+
alt: {
|
|
4996
|
+
type: 'string',
|
|
4997
|
+
description: 'Alt text description of the video, for accessibility.',
|
|
4998
|
+
maxGraphemes: 1000,
|
|
4999
|
+
maxLength: 10000,
|
|
5000
|
+
},
|
|
5001
|
+
aspectRatio: {
|
|
5002
|
+
type: 'ref',
|
|
5003
|
+
ref: 'lex:app.bsky.embed.defs#aspectRatio',
|
|
5004
|
+
},
|
|
5005
|
+
},
|
|
5006
|
+
},
|
|
5007
|
+
caption: {
|
|
5008
|
+
type: 'object',
|
|
5009
|
+
required: ['lang', 'file'],
|
|
5010
|
+
properties: {
|
|
5011
|
+
lang: {
|
|
5012
|
+
type: 'string',
|
|
5013
|
+
format: 'language',
|
|
5014
|
+
},
|
|
5015
|
+
file: {
|
|
5016
|
+
type: 'blob',
|
|
5017
|
+
accept: ['text/vtt'],
|
|
5018
|
+
maxSize: 20000,
|
|
5019
|
+
},
|
|
5020
|
+
},
|
|
5021
|
+
},
|
|
5022
|
+
view: {
|
|
5023
|
+
type: 'object',
|
|
5024
|
+
required: ['cid', 'playlist'],
|
|
5025
|
+
properties: {
|
|
5026
|
+
cid: {
|
|
5027
|
+
type: 'string',
|
|
5028
|
+
format: 'cid',
|
|
5029
|
+
},
|
|
5030
|
+
playlist: {
|
|
5031
|
+
type: 'string',
|
|
5032
|
+
format: 'uri',
|
|
5033
|
+
},
|
|
5034
|
+
thumbnail: {
|
|
5035
|
+
type: 'string',
|
|
5036
|
+
format: 'uri',
|
|
5037
|
+
},
|
|
5038
|
+
alt: {
|
|
5039
|
+
type: 'string',
|
|
5040
|
+
maxGraphemes: 1000,
|
|
5041
|
+
maxLength: 10000,
|
|
5042
|
+
},
|
|
5043
|
+
aspectRatio: {
|
|
5044
|
+
type: 'ref',
|
|
5045
|
+
ref: 'lex:app.bsky.embed.defs#aspectRatio',
|
|
5046
|
+
},
|
|
5047
|
+
},
|
|
5048
|
+
},
|
|
5049
|
+
},
|
|
5050
|
+
},
|
|
4961
5051
|
AppBskyFeedDefs: {
|
|
4962
5052
|
lexicon: 1,
|
|
4963
5053
|
id: 'app.bsky.feed.defs',
|
|
@@ -4985,6 +5075,7 @@ exports.schemaDict = {
|
|
|
4985
5075
|
type: 'union',
|
|
4986
5076
|
refs: [
|
|
4987
5077
|
'lex:app.bsky.embed.images#view',
|
|
5078
|
+
'lex:app.bsky.embed.video#view',
|
|
4988
5079
|
'lex:app.bsky.embed.external#view',
|
|
4989
5080
|
'lex:app.bsky.embed.record#view',
|
|
4990
5081
|
'lex:app.bsky.embed.recordWithMedia#view',
|
|
@@ -6305,6 +6396,7 @@ exports.schemaDict = {
|
|
|
6305
6396
|
type: 'union',
|
|
6306
6397
|
refs: [
|
|
6307
6398
|
'lex:app.bsky.embed.images',
|
|
6399
|
+
'lex:app.bsky.embed.video',
|
|
6308
6400
|
'lex:app.bsky.embed.external',
|
|
6309
6401
|
'lex:app.bsky.embed.record',
|
|
6310
6402
|
'lex:app.bsky.embed.recordWithMedia',
|
|
@@ -8767,6 +8859,137 @@ exports.schemaDict = {
|
|
|
8767
8859
|
},
|
|
8768
8860
|
},
|
|
8769
8861
|
},
|
|
8862
|
+
AppBskyVideoDefs: {
|
|
8863
|
+
lexicon: 1,
|
|
8864
|
+
id: 'app.bsky.video.defs',
|
|
8865
|
+
defs: {
|
|
8866
|
+
jobStatus: {
|
|
8867
|
+
type: 'object',
|
|
8868
|
+
required: ['jobId', 'did', 'state'],
|
|
8869
|
+
properties: {
|
|
8870
|
+
jobId: {
|
|
8871
|
+
type: 'string',
|
|
8872
|
+
},
|
|
8873
|
+
did: {
|
|
8874
|
+
type: 'string',
|
|
8875
|
+
format: 'did',
|
|
8876
|
+
},
|
|
8877
|
+
state: {
|
|
8878
|
+
type: 'string',
|
|
8879
|
+
description: 'The state of the video processing job. All values not listed as a known value indicate that the job is in process.',
|
|
8880
|
+
knownValues: ['JOB_STATE_COMPLETED', 'JOB_STATE_FAILED'],
|
|
8881
|
+
},
|
|
8882
|
+
progress: {
|
|
8883
|
+
type: 'integer',
|
|
8884
|
+
minimum: 0,
|
|
8885
|
+
maximum: 100,
|
|
8886
|
+
description: 'Progress within the current processing state.',
|
|
8887
|
+
},
|
|
8888
|
+
blob: {
|
|
8889
|
+
type: 'blob',
|
|
8890
|
+
},
|
|
8891
|
+
error: {
|
|
8892
|
+
type: 'string',
|
|
8893
|
+
},
|
|
8894
|
+
message: {
|
|
8895
|
+
type: 'string',
|
|
8896
|
+
},
|
|
8897
|
+
},
|
|
8898
|
+
},
|
|
8899
|
+
},
|
|
8900
|
+
},
|
|
8901
|
+
AppBskyVideoGetJobStatus: {
|
|
8902
|
+
lexicon: 1,
|
|
8903
|
+
id: 'app.bsky.video.getJobStatus',
|
|
8904
|
+
defs: {
|
|
8905
|
+
main: {
|
|
8906
|
+
type: 'query',
|
|
8907
|
+
description: 'Get status details for a video processing job.',
|
|
8908
|
+
parameters: {
|
|
8909
|
+
type: 'params',
|
|
8910
|
+
required: ['jobId'],
|
|
8911
|
+
properties: {
|
|
8912
|
+
jobId: {
|
|
8913
|
+
type: 'string',
|
|
8914
|
+
},
|
|
8915
|
+
},
|
|
8916
|
+
},
|
|
8917
|
+
output: {
|
|
8918
|
+
encoding: 'application/json',
|
|
8919
|
+
schema: {
|
|
8920
|
+
type: 'object',
|
|
8921
|
+
required: ['jobStatus'],
|
|
8922
|
+
properties: {
|
|
8923
|
+
jobStatus: {
|
|
8924
|
+
type: 'ref',
|
|
8925
|
+
ref: 'lex:app.bsky.video.defs#jobStatus',
|
|
8926
|
+
},
|
|
8927
|
+
},
|
|
8928
|
+
},
|
|
8929
|
+
},
|
|
8930
|
+
},
|
|
8931
|
+
},
|
|
8932
|
+
},
|
|
8933
|
+
AppBskyVideoGetUploadLimits: {
|
|
8934
|
+
lexicon: 1,
|
|
8935
|
+
id: 'app.bsky.video.getUploadLimits',
|
|
8936
|
+
defs: {
|
|
8937
|
+
main: {
|
|
8938
|
+
type: 'query',
|
|
8939
|
+
description: 'Get video upload limits for the authenticated user.',
|
|
8940
|
+
output: {
|
|
8941
|
+
encoding: 'application/json',
|
|
8942
|
+
schema: {
|
|
8943
|
+
type: 'object',
|
|
8944
|
+
required: ['canUpload'],
|
|
8945
|
+
properties: {
|
|
8946
|
+
canUpload: {
|
|
8947
|
+
type: 'boolean',
|
|
8948
|
+
},
|
|
8949
|
+
remainingDailyVideos: {
|
|
8950
|
+
type: 'integer',
|
|
8951
|
+
},
|
|
8952
|
+
remainingDailyBytes: {
|
|
8953
|
+
type: 'integer',
|
|
8954
|
+
},
|
|
8955
|
+
message: {
|
|
8956
|
+
type: 'string',
|
|
8957
|
+
},
|
|
8958
|
+
error: {
|
|
8959
|
+
type: 'string',
|
|
8960
|
+
},
|
|
8961
|
+
},
|
|
8962
|
+
},
|
|
8963
|
+
},
|
|
8964
|
+
},
|
|
8965
|
+
},
|
|
8966
|
+
},
|
|
8967
|
+
AppBskyVideoUploadVideo: {
|
|
8968
|
+
lexicon: 1,
|
|
8969
|
+
id: 'app.bsky.video.uploadVideo',
|
|
8970
|
+
defs: {
|
|
8971
|
+
main: {
|
|
8972
|
+
type: 'procedure',
|
|
8973
|
+
description: 'Upload a video to be processed then stored on the PDS.',
|
|
8974
|
+
input: {
|
|
8975
|
+
encoding: 'video/mp4',
|
|
8976
|
+
},
|
|
8977
|
+
output: {
|
|
8978
|
+
encoding: 'application/json',
|
|
8979
|
+
schema: {
|
|
8980
|
+
type: 'object',
|
|
8981
|
+
required: ['jobStatus'],
|
|
8982
|
+
properties: {
|
|
8983
|
+
jobStatus: {
|
|
8984
|
+
type: 'ref',
|
|
8985
|
+
ref: 'lex:app.bsky.video.defs#jobStatus',
|
|
8986
|
+
},
|
|
8987
|
+
},
|
|
8988
|
+
},
|
|
8989
|
+
},
|
|
8990
|
+
},
|
|
8991
|
+
},
|
|
8992
|
+
},
|
|
8770
8993
|
ChatBskyActorDeclaration: {
|
|
8771
8994
|
lexicon: 1,
|
|
8772
8995
|
id: 'chat.bsky.actor.declaration',
|
|
@@ -11448,10 +11671,12 @@ exports.ids = {
|
|
|
11448
11671
|
AppBskyActorPutPreferences: 'app.bsky.actor.putPreferences',
|
|
11449
11672
|
AppBskyActorSearchActors: 'app.bsky.actor.searchActors',
|
|
11450
11673
|
AppBskyActorSearchActorsTypeahead: 'app.bsky.actor.searchActorsTypeahead',
|
|
11674
|
+
AppBskyEmbedDefs: 'app.bsky.embed.defs',
|
|
11451
11675
|
AppBskyEmbedExternal: 'app.bsky.embed.external',
|
|
11452
11676
|
AppBskyEmbedImages: 'app.bsky.embed.images',
|
|
11453
11677
|
AppBskyEmbedRecord: 'app.bsky.embed.record',
|
|
11454
11678
|
AppBskyEmbedRecordWithMedia: 'app.bsky.embed.recordWithMedia',
|
|
11679
|
+
AppBskyEmbedVideo: 'app.bsky.embed.video',
|
|
11455
11680
|
AppBskyFeedDefs: 'app.bsky.feed.defs',
|
|
11456
11681
|
AppBskyFeedDescribeFeedGenerator: 'app.bsky.feed.describeFeedGenerator',
|
|
11457
11682
|
AppBskyFeedGenerator: 'app.bsky.feed.generator',
|
|
@@ -11517,6 +11742,10 @@ exports.ids = {
|
|
|
11517
11742
|
AppBskyUnspeccedGetTaggedSuggestions: 'app.bsky.unspecced.getTaggedSuggestions',
|
|
11518
11743
|
AppBskyUnspeccedSearchActorsSkeleton: 'app.bsky.unspecced.searchActorsSkeleton',
|
|
11519
11744
|
AppBskyUnspeccedSearchPostsSkeleton: 'app.bsky.unspecced.searchPostsSkeleton',
|
|
11745
|
+
AppBskyVideoDefs: 'app.bsky.video.defs',
|
|
11746
|
+
AppBskyVideoGetJobStatus: 'app.bsky.video.getJobStatus',
|
|
11747
|
+
AppBskyVideoGetUploadLimits: 'app.bsky.video.getUploadLimits',
|
|
11748
|
+
AppBskyVideoUploadVideo: 'app.bsky.video.uploadVideo',
|
|
11520
11749
|
ChatBskyActorDeclaration: 'chat.bsky.actor.declaration',
|
|
11521
11750
|
ChatBskyActorDefs: 'chat.bsky.actor.defs',
|
|
11522
11751
|
ChatBskyActorDeleteAccount: 'chat.bsky.actor.deleteAccount',
|