@atproto/bsky 0.0.147 → 0.0.149
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 +26 -0
- package/LICENSE.txt +1 -1
- package/dist/api/app/bsky/feed/getListFeed.js +1 -1
- package/dist/api/app/bsky/feed/getListFeed.js.map +1 -1
- package/dist/api/app/bsky/graph/getFollowers.js +1 -1
- package/dist/api/app/bsky/graph/getFollowers.js.map +1 -1
- package/dist/api/app/bsky/graph/getFollows.js +1 -1
- package/dist/api/app/bsky/graph/getFollows.js.map +1 -1
- package/dist/api/app/bsky/graph/getList.js +1 -1
- package/dist/api/app/bsky/graph/getList.js.map +1 -1
- package/dist/api/app/bsky/unspecced/getConfig.d.ts.map +1 -1
- package/dist/api/app/bsky/unspecced/getConfig.js +1 -0
- package/dist/api/app/bsky/unspecced/getConfig.js.map +1 -1
- package/dist/api/app/bsky/unspecced/getSuggestedStarterPacks.js +1 -1
- package/dist/api/app/bsky/unspecced/getSuggestedStarterPacks.js.map +1 -1
- package/dist/api/app/bsky/unspecced/getSuggestedUsers.js +1 -1
- package/dist/api/app/bsky/unspecced/getSuggestedUsers.js.map +1 -1
- package/dist/api/app/bsky/unspecced/getTrends.js +1 -1
- package/dist/api/app/bsky/unspecced/getTrends.js.map +1 -1
- package/dist/api/com/atproto/identity/resolveHandle.d.ts.map +1 -1
- package/dist/api/com/atproto/identity/resolveHandle.js +3 -13
- package/dist/api/com/atproto/identity/resolveHandle.js.map +1 -1
- package/dist/api/health.js +1 -1
- package/dist/api/health.js.map +1 -1
- package/dist/api/well-known.d.ts.map +1 -1
- package/dist/api/well-known.js +4 -1
- package/dist/api/well-known.js.map +1 -1
- package/dist/config.d.ts +7 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +28 -0
- package/dist/config.js.map +1 -1
- package/dist/data-plane/server/background.js +1 -1
- package/dist/data-plane/server/background.js.map +1 -1
- package/dist/data-plane/server/indexing/index.d.ts +2 -0
- package/dist/data-plane/server/indexing/index.d.ts.map +1 -1
- package/dist/data-plane/server/indexing/index.js +2 -0
- package/dist/data-plane/server/indexing/index.js.map +1 -1
- package/dist/data-plane/server/indexing/plugins/status.d.ts +7 -0
- package/dist/data-plane/server/indexing/plugins/status.d.ts.map +1 -0
- package/dist/data-plane/server/indexing/plugins/status.js +73 -0
- package/dist/data-plane/server/indexing/plugins/status.js.map +1 -0
- package/dist/data-plane/server/routes/index.d.ts.map +1 -1
- package/dist/data-plane/server/routes/index.js +0 -2
- package/dist/data-plane/server/routes/index.js.map +1 -1
- package/dist/data-plane/server/routes/profile.d.ts.map +1 -1
- package/dist/data-plane/server/routes/profile.js +8 -1
- package/dist/data-plane/server/routes/profile.js.map +1 -1
- package/dist/data-plane/server/routes/records.d.ts.map +1 -1
- package/dist/data-plane/server/routes/records.js +1 -0
- package/dist/data-plane/server/routes/records.js.map +1 -1
- package/dist/error.js +1 -1
- package/dist/error.js.map +1 -1
- package/dist/hydration/actor.d.ts +8 -1
- package/dist/hydration/actor.d.ts.map +1 -1
- package/dist/hydration/actor.js +18 -2
- package/dist/hydration/actor.js.map +1 -1
- package/dist/hydration/feed.d.ts +2 -2
- package/dist/hydration/feed.d.ts.map +1 -1
- package/dist/hydration/feed.js +10 -4
- package/dist/hydration/feed.js.map +1 -1
- package/dist/hydration/hydrator.d.ts +4 -3
- package/dist/hydration/hydrator.d.ts.map +1 -1
- package/dist/hydration/hydrator.js +47 -22
- package/dist/hydration/hydrator.js.map +1 -1
- package/dist/hydration/label.d.ts +1 -1
- package/dist/hydration/label.d.ts.map +1 -1
- package/dist/hydration/label.js +5 -2
- package/dist/hydration/label.js.map +1 -1
- package/dist/image/server.js +1 -1
- package/dist/image/server.js.map +1 -1
- package/dist/lexicon/index.d.ts +5 -2
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +8 -5
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +288 -82
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +146 -42
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +21 -0
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +9 -0
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/status.d.ts +23 -0
- package/dist/lexicon/types/app/bsky/actor/status.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/actor/status.js +19 -0
- package/dist/lexicon/types/app/bsky/actor/status.js.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/getConfig.d.ts +9 -0
- package/dist/lexicon/types/app/bsky/unspecced/getConfig.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getConfig.js +9 -0
- package/dist/lexicon/types/app/bsky/unspecced/getConfig.js.map +1 -1
- package/dist/proto/bsky_connect.d.ts +10 -12
- package/dist/proto/bsky_connect.d.ts.map +1 -1
- package/dist/proto/bsky_connect.js +9 -11
- package/dist/proto/bsky_connect.js.map +1 -1
- package/dist/proto/bsky_pb.d.ts +58 -37
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +189 -115
- package/dist/proto/bsky_pb.js.map +1 -1
- package/dist/views/index.d.ts +2 -1
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +37 -10
- package/dist/views/index.js.map +1 -1
- package/package.json +13 -13
- package/proto/bsky.proto +16 -17
- package/src/api/app/bsky/feed/getListFeed.ts +1 -1
- package/src/api/app/bsky/graph/getFollowers.ts +4 -1
- package/src/api/app/bsky/graph/getFollows.ts +4 -1
- package/src/api/app/bsky/graph/getList.ts +1 -1
- package/src/api/app/bsky/unspecced/getConfig.ts +1 -0
- package/src/api/app/bsky/unspecced/getSuggestedStarterPacks.ts +1 -1
- package/src/api/app/bsky/unspecced/getSuggestedUsers.ts +1 -1
- package/src/api/app/bsky/unspecced/getTrends.ts +1 -1
- package/src/api/com/atproto/identity/resolveHandle.ts +3 -16
- package/src/api/health.ts +1 -1
- package/src/api/well-known.ts +4 -1
- package/src/config.ts +39 -0
- package/src/data-plane/server/background.ts +1 -1
- package/src/data-plane/server/indexing/index.ts +3 -0
- package/src/data-plane/server/indexing/plugins/status.ts +61 -0
- package/src/data-plane/server/routes/index.ts +0 -2
- package/src/data-plane/server/routes/profile.ts +43 -27
- package/src/data-plane/server/routes/records.ts +1 -0
- package/src/error.ts +1 -1
- package/src/hydration/actor.ts +27 -2
- package/src/hydration/feed.ts +16 -4
- package/src/hydration/hydrator.ts +64 -21
- package/src/hydration/label.ts +8 -2
- package/src/image/server.ts +1 -1
- package/src/lexicon/index.ts +12 -9
- package/src/lexicon/lexicons.ts +151 -43
- package/src/lexicon/types/app/bsky/actor/defs.ts +26 -0
- package/src/lexicon/types/app/bsky/actor/status.ts +40 -0
- package/src/lexicon/types/app/bsky/unspecced/getConfig.ts +17 -0
- package/src/proto/bsky_connect.ts +11 -13
- package/src/proto/bsky_pb.ts +173 -119
- package/src/views/index.ts +47 -11
- package/tests/views/__snapshots__/profile.test.ts.snap +60 -0
- package/tests/views/__snapshots__/thread.test.ts.snap +203 -11
- package/tests/views/get-config.test.ts +66 -0
- package/tests/views/profile.test.ts +189 -1
- package/tests/views/thread.test.ts +134 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +1 -1
- package/dist/data-plane/server/routes/posts.d.ts +0 -6
- package/dist/data-plane/server/routes/posts.d.ts.map +0 -1
- package/dist/data-plane/server/routes/posts.js +0 -20
- package/dist/data-plane/server/routes/posts.js.map +0 -1
- package/src/data-plane/server/routes/posts.ts +0 -21
package/dist/lexicon/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
|
},
|
|
@@ -12086,6 +12189,7 @@ exports.ids = {
|
|
|
12086
12189
|
AppBskyActorPutPreferences: 'app.bsky.actor.putPreferences',
|
|
12087
12190
|
AppBskyActorSearchActors: 'app.bsky.actor.searchActors',
|
|
12088
12191
|
AppBskyActorSearchActorsTypeahead: 'app.bsky.actor.searchActorsTypeahead',
|
|
12192
|
+
AppBskyActorStatus: 'app.bsky.actor.status',
|
|
12089
12193
|
AppBskyEmbedDefs: 'app.bsky.embed.defs',
|
|
12090
12194
|
AppBskyEmbedExternal: 'app.bsky.embed.external',
|
|
12091
12195
|
AppBskyEmbedImages: 'app.bsky.embed.images',
|
|
@@ -12104,8 +12208,8 @@ exports.ids = {
|
|
|
12104
12208
|
AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton',
|
|
12105
12209
|
AppBskyFeedGetLikes: 'app.bsky.feed.getLikes',
|
|
12106
12210
|
AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed',
|
|
12107
|
-
AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
|
|
12108
12211
|
AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
|
|
12212
|
+
AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
|
|
12109
12213
|
AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes',
|
|
12110
12214
|
AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
|
|
12111
12215
|
AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds',
|