@atproto/api 0.15.5 → 0.15.7
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 +17 -0
- package/LICENSE.txt +1 -1
- package/dist/client/index.d.ts +30 -3
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +59 -9
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +288 -82
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +146 -42
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.d.ts +21 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.js +9 -0
- package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/client/types/app/bsky/actor/status.d.ts +23 -0
- package/dist/client/types/app/bsky/actor/status.d.ts.map +1 -0
- package/dist/client/types/app/bsky/actor/status.js +19 -0
- package/dist/client/types/app/bsky/actor/status.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getConfig.d.ts +9 -0
- package/dist/client/types/app/bsky/unspecced/getConfig.d.ts.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getConfig.js +9 -0
- package/dist/client/types/app/bsky/unspecced/getConfig.js.map +1 -1
- package/package.json +5 -5
- package/src/client/index.ts +82 -9
- package/src/client/lexicons.ts +151 -43
- package/src/client/types/app/bsky/actor/defs.ts +26 -0
- package/src/client/types/app/bsky/actor/status.ts +40 -0
- package/src/client/types/app/bsky/unspecced/getConfig.ts +17 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/dist/client/lexicons.js
CHANGED
|
@@ -4395,6 +4395,10 @@ exports.schemaDict = {
|
|
|
4395
4395
|
type: 'ref',
|
|
4396
4396
|
ref: 'lex:app.bsky.actor.defs#verificationState',
|
|
4397
4397
|
},
|
|
4398
|
+
status: {
|
|
4399
|
+
type: 'ref',
|
|
4400
|
+
ref: 'lex:app.bsky.actor.defs#statusView',
|
|
4401
|
+
},
|
|
4398
4402
|
},
|
|
4399
4403
|
},
|
|
4400
4404
|
profileView: {
|
|
@@ -4450,6 +4454,10 @@ exports.schemaDict = {
|
|
|
4450
4454
|
type: 'ref',
|
|
4451
4455
|
ref: 'lex:app.bsky.actor.defs#verificationState',
|
|
4452
4456
|
},
|
|
4457
|
+
status: {
|
|
4458
|
+
type: 'ref',
|
|
4459
|
+
ref: 'lex:app.bsky.actor.defs#statusView',
|
|
4460
|
+
},
|
|
4453
4461
|
},
|
|
4454
4462
|
},
|
|
4455
4463
|
profileViewDetailed: {
|
|
@@ -4526,6 +4534,10 @@ exports.schemaDict = {
|
|
|
4526
4534
|
type: 'ref',
|
|
4527
4535
|
ref: 'lex:app.bsky.actor.defs#verificationState',
|
|
4528
4536
|
},
|
|
4537
|
+
status: {
|
|
4538
|
+
type: 'ref',
|
|
4539
|
+
ref: 'lex:app.bsky.actor.defs#statusView',
|
|
4540
|
+
},
|
|
4529
4541
|
},
|
|
4530
4542
|
},
|
|
4531
4543
|
profileAssociated: {
|
|
@@ -5046,6 +5058,34 @@ exports.schemaDict = {
|
|
|
5046
5058
|
},
|
|
5047
5059
|
},
|
|
5048
5060
|
},
|
|
5061
|
+
statusView: {
|
|
5062
|
+
type: 'object',
|
|
5063
|
+
required: ['status', 'record'],
|
|
5064
|
+
properties: {
|
|
5065
|
+
status: {
|
|
5066
|
+
type: 'string',
|
|
5067
|
+
description: 'The status for the account.',
|
|
5068
|
+
knownValues: ['app.bsky.actor.status#live'],
|
|
5069
|
+
},
|
|
5070
|
+
record: {
|
|
5071
|
+
type: 'unknown',
|
|
5072
|
+
},
|
|
5073
|
+
embed: {
|
|
5074
|
+
type: 'union',
|
|
5075
|
+
description: 'An optional embed associated with the status.',
|
|
5076
|
+
refs: ['lex:app.bsky.embed.external#view'],
|
|
5077
|
+
},
|
|
5078
|
+
expiresAt: {
|
|
5079
|
+
type: 'string',
|
|
5080
|
+
description: 'The date when this status will expire. The application might choose to no longer return the status after expiration.',
|
|
5081
|
+
format: 'datetime',
|
|
5082
|
+
},
|
|
5083
|
+
isActive: {
|
|
5084
|
+
type: 'boolean',
|
|
5085
|
+
description: 'True if the status is not expired, false if it is expired. Only present if expiration was set.',
|
|
5086
|
+
},
|
|
5087
|
+
},
|
|
5088
|
+
},
|
|
5049
5089
|
},
|
|
5050
5090
|
},
|
|
5051
5091
|
AppBskyActorGetPreferences: {
|
|
@@ -5365,6 +5405,46 @@ exports.schemaDict = {
|
|
|
5365
5405
|
},
|
|
5366
5406
|
},
|
|
5367
5407
|
},
|
|
5408
|
+
AppBskyActorStatus: {
|
|
5409
|
+
lexicon: 1,
|
|
5410
|
+
id: 'app.bsky.actor.status',
|
|
5411
|
+
defs: {
|
|
5412
|
+
main: {
|
|
5413
|
+
type: 'record',
|
|
5414
|
+
description: 'A declaration of a Bluesky account status.',
|
|
5415
|
+
key: 'literal:self',
|
|
5416
|
+
record: {
|
|
5417
|
+
type: 'object',
|
|
5418
|
+
required: ['status', 'createdAt'],
|
|
5419
|
+
properties: {
|
|
5420
|
+
status: {
|
|
5421
|
+
type: 'string',
|
|
5422
|
+
description: 'The status for the account.',
|
|
5423
|
+
knownValues: ['app.bsky.actor.status#live'],
|
|
5424
|
+
},
|
|
5425
|
+
embed: {
|
|
5426
|
+
type: 'union',
|
|
5427
|
+
description: 'An optional embed associated with the status.',
|
|
5428
|
+
refs: ['lex:app.bsky.embed.external'],
|
|
5429
|
+
},
|
|
5430
|
+
durationMinutes: {
|
|
5431
|
+
type: 'integer',
|
|
5432
|
+
description: 'The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.',
|
|
5433
|
+
minimum: 1,
|
|
5434
|
+
},
|
|
5435
|
+
createdAt: {
|
|
5436
|
+
type: 'string',
|
|
5437
|
+
format: 'datetime',
|
|
5438
|
+
},
|
|
5439
|
+
},
|
|
5440
|
+
},
|
|
5441
|
+
},
|
|
5442
|
+
live: {
|
|
5443
|
+
type: 'token',
|
|
5444
|
+
description: 'Advertises an account as currently offering live content.',
|
|
5445
|
+
},
|
|
5446
|
+
},
|
|
5447
|
+
},
|
|
5368
5448
|
AppBskyEmbedDefs: {
|
|
5369
5449
|
lexicon: 1,
|
|
5370
5450
|
id: 'app.bsky.embed.defs',
|
|
@@ -6889,6 +6969,47 @@ exports.schemaDict = {
|
|
|
6889
6969
|
},
|
|
6890
6970
|
},
|
|
6891
6971
|
},
|
|
6972
|
+
AppBskyFeedGetPosts: {
|
|
6973
|
+
lexicon: 1,
|
|
6974
|
+
id: 'app.bsky.feed.getPosts',
|
|
6975
|
+
defs: {
|
|
6976
|
+
main: {
|
|
6977
|
+
type: 'query',
|
|
6978
|
+
description: "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
|
|
6979
|
+
parameters: {
|
|
6980
|
+
type: 'params',
|
|
6981
|
+
required: ['uris'],
|
|
6982
|
+
properties: {
|
|
6983
|
+
uris: {
|
|
6984
|
+
type: 'array',
|
|
6985
|
+
description: 'List of post AT-URIs to return hydrated views for.',
|
|
6986
|
+
items: {
|
|
6987
|
+
type: 'string',
|
|
6988
|
+
format: 'at-uri',
|
|
6989
|
+
},
|
|
6990
|
+
maxLength: 25,
|
|
6991
|
+
},
|
|
6992
|
+
},
|
|
6993
|
+
},
|
|
6994
|
+
output: {
|
|
6995
|
+
encoding: 'application/json',
|
|
6996
|
+
schema: {
|
|
6997
|
+
type: 'object',
|
|
6998
|
+
required: ['posts'],
|
|
6999
|
+
properties: {
|
|
7000
|
+
posts: {
|
|
7001
|
+
type: 'array',
|
|
7002
|
+
items: {
|
|
7003
|
+
type: 'ref',
|
|
7004
|
+
ref: 'lex:app.bsky.feed.defs#postView',
|
|
7005
|
+
},
|
|
7006
|
+
},
|
|
7007
|
+
},
|
|
7008
|
+
},
|
|
7009
|
+
},
|
|
7010
|
+
},
|
|
7011
|
+
},
|
|
7012
|
+
},
|
|
6892
7013
|
AppBskyFeedGetPostThread: {
|
|
6893
7014
|
lexicon: 1,
|
|
6894
7015
|
id: 'app.bsky.feed.getPostThread',
|
|
@@ -6950,47 +7071,6 @@ exports.schemaDict = {
|
|
|
6950
7071
|
},
|
|
6951
7072
|
},
|
|
6952
7073
|
},
|
|
6953
|
-
AppBskyFeedGetPosts: {
|
|
6954
|
-
lexicon: 1,
|
|
6955
|
-
id: 'app.bsky.feed.getPosts',
|
|
6956
|
-
defs: {
|
|
6957
|
-
main: {
|
|
6958
|
-
type: 'query',
|
|
6959
|
-
description: "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
|
|
6960
|
-
parameters: {
|
|
6961
|
-
type: 'params',
|
|
6962
|
-
required: ['uris'],
|
|
6963
|
-
properties: {
|
|
6964
|
-
uris: {
|
|
6965
|
-
type: 'array',
|
|
6966
|
-
description: 'List of post AT-URIs to return hydrated views for.',
|
|
6967
|
-
items: {
|
|
6968
|
-
type: 'string',
|
|
6969
|
-
format: 'at-uri',
|
|
6970
|
-
},
|
|
6971
|
-
maxLength: 25,
|
|
6972
|
-
},
|
|
6973
|
-
},
|
|
6974
|
-
},
|
|
6975
|
-
output: {
|
|
6976
|
-
encoding: 'application/json',
|
|
6977
|
-
schema: {
|
|
6978
|
-
type: 'object',
|
|
6979
|
-
required: ['posts'],
|
|
6980
|
-
properties: {
|
|
6981
|
-
posts: {
|
|
6982
|
-
type: 'array',
|
|
6983
|
-
items: {
|
|
6984
|
-
type: 'ref',
|
|
6985
|
-
ref: 'lex:app.bsky.feed.defs#postView',
|
|
6986
|
-
},
|
|
6987
|
-
},
|
|
6988
|
-
},
|
|
6989
|
-
},
|
|
6990
|
-
},
|
|
6991
|
-
},
|
|
6992
|
-
},
|
|
6993
|
-
},
|
|
6994
7074
|
AppBskyFeedGetQuotes: {
|
|
6995
7075
|
lexicon: 1,
|
|
6996
7076
|
id: 'app.bsky.feed.getQuotes',
|
|
@@ -9768,6 +9848,29 @@ exports.schemaDict = {
|
|
|
9768
9848
|
checkEmailConfirmed: {
|
|
9769
9849
|
type: 'boolean',
|
|
9770
9850
|
},
|
|
9851
|
+
liveNow: {
|
|
9852
|
+
type: 'array',
|
|
9853
|
+
items: {
|
|
9854
|
+
type: 'ref',
|
|
9855
|
+
ref: 'lex:app.bsky.unspecced.getConfig#liveNowConfig',
|
|
9856
|
+
},
|
|
9857
|
+
},
|
|
9858
|
+
},
|
|
9859
|
+
},
|
|
9860
|
+
},
|
|
9861
|
+
},
|
|
9862
|
+
liveNowConfig: {
|
|
9863
|
+
type: 'object',
|
|
9864
|
+
required: ['did', 'domains'],
|
|
9865
|
+
properties: {
|
|
9866
|
+
did: {
|
|
9867
|
+
type: 'string',
|
|
9868
|
+
format: 'did',
|
|
9869
|
+
},
|
|
9870
|
+
domains: {
|
|
9871
|
+
type: 'array',
|
|
9872
|
+
items: {
|
|
9873
|
+
type: 'string',
|
|
9771
9874
|
},
|
|
9772
9875
|
},
|
|
9773
9876
|
},
|
|
@@ -15604,6 +15707,7 @@ exports.ids = {
|
|
|
15604
15707
|
AppBskyActorPutPreferences: 'app.bsky.actor.putPreferences',
|
|
15605
15708
|
AppBskyActorSearchActors: 'app.bsky.actor.searchActors',
|
|
15606
15709
|
AppBskyActorSearchActorsTypeahead: 'app.bsky.actor.searchActorsTypeahead',
|
|
15710
|
+
AppBskyActorStatus: 'app.bsky.actor.status',
|
|
15607
15711
|
AppBskyEmbedDefs: 'app.bsky.embed.defs',
|
|
15608
15712
|
AppBskyEmbedExternal: 'app.bsky.embed.external',
|
|
15609
15713
|
AppBskyEmbedImages: 'app.bsky.embed.images',
|
|
@@ -15622,8 +15726,8 @@ exports.ids = {
|
|
|
15622
15726
|
AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton',
|
|
15623
15727
|
AppBskyFeedGetLikes: 'app.bsky.feed.getLikes',
|
|
15624
15728
|
AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed',
|
|
15625
|
-
AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
|
|
15626
15729
|
AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
|
|
15730
|
+
AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
|
|
15627
15731
|
AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes',
|
|
15628
15732
|
AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
|
|
15629
15733
|
AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds',
|