@atproto/api 0.12.28 → 0.12.30-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/CHANGELOG.md +6 -0
- package/dist/bsky-agent.js +1 -1
- package/dist/bsky-agent.js.map +1 -1
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +6 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +114 -15
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +129 -20
- 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 +3 -2
- 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/com/atproto/label/defs.d.ts +1 -1
- package/dist/client/types/com/atproto/server/getServiceAuth.d.ts +8 -1
- package/dist/client/types/com/atproto/server/getServiceAuth.d.ts.map +1 -1
- package/dist/client/types/com/atproto/server/getServiceAuth.js +9 -1
- package/dist/client/types/com/atproto/server/getServiceAuth.js.map +1 -1
- package/dist/moderation/decision.js +1 -1
- package/dist/moderation/decision.js.map +1 -1
- package/docs/moderation.md +1 -1
- package/package.json +5 -5
- package/src/bsky-agent.ts +1 -1
- package/src/client/index.ts +4 -0
- package/src/client/lexicons.ts +134 -21
- 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 +3 -1
- package/src/client/types/app/bsky/feed/post.ts +2 -0
- package/src/client/types/com/atproto/label/defs.ts +1 -1
- package/src/client/types/com/atproto/server/getServiceAuth.ts +11 -0
- package/src/moderation/decision.ts +1 -1
package/dist/client/lexicons.js
CHANGED
|
@@ -870,7 +870,7 @@ exports.schemaDict = {
|
|
|
870
870
|
},
|
|
871
871
|
labelValueDefinition: {
|
|
872
872
|
type: 'object',
|
|
873
|
-
description: 'Declares a label value and its expected
|
|
873
|
+
description: 'Declares a label value and its expected interpretations and behaviors.',
|
|
874
874
|
required: ['identifier', 'severity', 'blurs', 'locales'],
|
|
875
875
|
properties: {
|
|
876
876
|
identifier: {
|
|
@@ -2518,6 +2518,15 @@ exports.schemaDict = {
|
|
|
2518
2518
|
format: 'did',
|
|
2519
2519
|
description: 'The DID of the service that the token will be used to authenticate with',
|
|
2520
2520
|
},
|
|
2521
|
+
exp: {
|
|
2522
|
+
type: 'integer',
|
|
2523
|
+
description: 'The time in Unix Epoch seconds that the JWT expires. Defaults to 60 seconds in the future. The service may enforce certain time bounds on tokens depending on the requested scope.',
|
|
2524
|
+
},
|
|
2525
|
+
lxm: {
|
|
2526
|
+
type: 'string',
|
|
2527
|
+
format: 'nsid',
|
|
2528
|
+
description: 'Lexicon (XRPC) method to bind the requested token to',
|
|
2529
|
+
},
|
|
2521
2530
|
},
|
|
2522
2531
|
},
|
|
2523
2532
|
output: {
|
|
@@ -2532,6 +2541,12 @@ exports.schemaDict = {
|
|
|
2532
2541
|
},
|
|
2533
2542
|
},
|
|
2534
2543
|
},
|
|
2544
|
+
errors: [
|
|
2545
|
+
{
|
|
2546
|
+
name: 'BadExpiration',
|
|
2547
|
+
description: 'Indicates that the requested expiration date is not a valid. May be in the past or may be reliant on the requested scopes.',
|
|
2548
|
+
},
|
|
2549
|
+
],
|
|
2535
2550
|
},
|
|
2536
2551
|
},
|
|
2537
2552
|
},
|
|
@@ -4623,6 +4638,27 @@ exports.schemaDict = {
|
|
|
4623
4638
|
},
|
|
4624
4639
|
},
|
|
4625
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
|
+
},
|
|
4626
4662
|
AppBskyEmbedExternal: {
|
|
4627
4663
|
lexicon: 1,
|
|
4628
4664
|
id: 'app.bsky.embed.external',
|
|
@@ -4725,22 +4761,7 @@ exports.schemaDict = {
|
|
|
4725
4761
|
},
|
|
4726
4762
|
aspectRatio: {
|
|
4727
4763
|
type: 'ref',
|
|
4728
|
-
ref: 'lex:app.bsky.embed.
|
|
4729
|
-
},
|
|
4730
|
-
},
|
|
4731
|
-
},
|
|
4732
|
-
aspectRatio: {
|
|
4733
|
-
type: 'object',
|
|
4734
|
-
description: 'width:height represents an aspect ratio. It may be approximate, and may not correspond to absolute dimensions in any given unit.',
|
|
4735
|
-
required: ['width', 'height'],
|
|
4736
|
-
properties: {
|
|
4737
|
-
width: {
|
|
4738
|
-
type: 'integer',
|
|
4739
|
-
minimum: 1,
|
|
4740
|
-
},
|
|
4741
|
-
height: {
|
|
4742
|
-
type: 'integer',
|
|
4743
|
-
minimum: 1,
|
|
4764
|
+
ref: 'lex:app.bsky.embed.defs#aspectRatio',
|
|
4744
4765
|
},
|
|
4745
4766
|
},
|
|
4746
4767
|
},
|
|
@@ -4778,7 +4799,7 @@ exports.schemaDict = {
|
|
|
4778
4799
|
},
|
|
4779
4800
|
aspectRatio: {
|
|
4780
4801
|
type: 'ref',
|
|
4781
|
-
ref: 'lex:app.bsky.embed.
|
|
4802
|
+
ref: 'lex:app.bsky.embed.defs#aspectRatio',
|
|
4782
4803
|
},
|
|
4783
4804
|
},
|
|
4784
4805
|
},
|
|
@@ -4859,6 +4880,7 @@ exports.schemaDict = {
|
|
|
4859
4880
|
type: 'union',
|
|
4860
4881
|
refs: [
|
|
4861
4882
|
'lex:app.bsky.embed.images#view',
|
|
4883
|
+
'lex:app.bsky.embed.video#view',
|
|
4862
4884
|
'lex:app.bsky.embed.external#view',
|
|
4863
4885
|
'lex:app.bsky.embed.record#view',
|
|
4864
4886
|
'lex:app.bsky.embed.recordWithMedia#view',
|
|
@@ -4920,7 +4942,11 @@ exports.schemaDict = {
|
|
|
4920
4942
|
},
|
|
4921
4943
|
media: {
|
|
4922
4944
|
type: 'union',
|
|
4923
|
-
refs: [
|
|
4945
|
+
refs: [
|
|
4946
|
+
'lex:app.bsky.embed.images',
|
|
4947
|
+
'lex:app.bsky.embed.video',
|
|
4948
|
+
'lex:app.bsky.embed.external',
|
|
4949
|
+
],
|
|
4924
4950
|
},
|
|
4925
4951
|
},
|
|
4926
4952
|
},
|
|
@@ -4936,6 +4962,7 @@ exports.schemaDict = {
|
|
|
4936
4962
|
type: 'union',
|
|
4937
4963
|
refs: [
|
|
4938
4964
|
'lex:app.bsky.embed.images#view',
|
|
4965
|
+
'lex:app.bsky.embed.video#view',
|
|
4939
4966
|
'lex:app.bsky.embed.external#view',
|
|
4940
4967
|
],
|
|
4941
4968
|
},
|
|
@@ -4943,6 +4970,84 @@ exports.schemaDict = {
|
|
|
4943
4970
|
},
|
|
4944
4971
|
},
|
|
4945
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
|
+
},
|
|
4946
5051
|
AppBskyFeedDefs: {
|
|
4947
5052
|
lexicon: 1,
|
|
4948
5053
|
id: 'app.bsky.feed.defs',
|
|
@@ -4970,6 +5075,7 @@ exports.schemaDict = {
|
|
|
4970
5075
|
type: 'union',
|
|
4971
5076
|
refs: [
|
|
4972
5077
|
'lex:app.bsky.embed.images#view',
|
|
5078
|
+
'lex:app.bsky.embed.video#view',
|
|
4973
5079
|
'lex:app.bsky.embed.external#view',
|
|
4974
5080
|
'lex:app.bsky.embed.record#view',
|
|
4975
5081
|
'lex:app.bsky.embed.recordWithMedia#view',
|
|
@@ -5314,7 +5420,7 @@ exports.schemaDict = {
|
|
|
5314
5420
|
},
|
|
5315
5421
|
feedContext: {
|
|
5316
5422
|
type: 'string',
|
|
5317
|
-
description: 'Context on a feed item that was
|
|
5423
|
+
description: 'Context on a feed item that was originally supplied by the feed generator on getFeedSkeleton.',
|
|
5318
5424
|
maxLength: 2000,
|
|
5319
5425
|
},
|
|
5320
5426
|
},
|
|
@@ -6290,6 +6396,7 @@ exports.schemaDict = {
|
|
|
6290
6396
|
type: 'union',
|
|
6291
6397
|
refs: [
|
|
6292
6398
|
'lex:app.bsky.embed.images',
|
|
6399
|
+
'lex:app.bsky.embed.video',
|
|
6293
6400
|
'lex:app.bsky.embed.external',
|
|
6294
6401
|
'lex:app.bsky.embed.record',
|
|
6295
6402
|
'lex:app.bsky.embed.recordWithMedia',
|
|
@@ -11433,10 +11540,12 @@ exports.ids = {
|
|
|
11433
11540
|
AppBskyActorPutPreferences: 'app.bsky.actor.putPreferences',
|
|
11434
11541
|
AppBskyActorSearchActors: 'app.bsky.actor.searchActors',
|
|
11435
11542
|
AppBskyActorSearchActorsTypeahead: 'app.bsky.actor.searchActorsTypeahead',
|
|
11543
|
+
AppBskyEmbedDefs: 'app.bsky.embed.defs',
|
|
11436
11544
|
AppBskyEmbedExternal: 'app.bsky.embed.external',
|
|
11437
11545
|
AppBskyEmbedImages: 'app.bsky.embed.images',
|
|
11438
11546
|
AppBskyEmbedRecord: 'app.bsky.embed.record',
|
|
11439
11547
|
AppBskyEmbedRecordWithMedia: 'app.bsky.embed.recordWithMedia',
|
|
11548
|
+
AppBskyEmbedVideo: 'app.bsky.embed.video',
|
|
11440
11549
|
AppBskyFeedDefs: 'app.bsky.feed.defs',
|
|
11441
11550
|
AppBskyFeedDescribeFeedGenerator: 'app.bsky.feed.describeFeedGenerator',
|
|
11442
11551
|
AppBskyFeedGenerator: 'app.bsky.feed.generator',
|