@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.
Files changed (148) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/LICENSE.txt +1 -1
  3. package/dist/api/app/bsky/feed/getListFeed.js +1 -1
  4. package/dist/api/app/bsky/feed/getListFeed.js.map +1 -1
  5. package/dist/api/app/bsky/graph/getFollowers.js +1 -1
  6. package/dist/api/app/bsky/graph/getFollowers.js.map +1 -1
  7. package/dist/api/app/bsky/graph/getFollows.js +1 -1
  8. package/dist/api/app/bsky/graph/getFollows.js.map +1 -1
  9. package/dist/api/app/bsky/graph/getList.js +1 -1
  10. package/dist/api/app/bsky/graph/getList.js.map +1 -1
  11. package/dist/api/app/bsky/unspecced/getConfig.d.ts.map +1 -1
  12. package/dist/api/app/bsky/unspecced/getConfig.js +1 -0
  13. package/dist/api/app/bsky/unspecced/getConfig.js.map +1 -1
  14. package/dist/api/app/bsky/unspecced/getSuggestedStarterPacks.js +1 -1
  15. package/dist/api/app/bsky/unspecced/getSuggestedStarterPacks.js.map +1 -1
  16. package/dist/api/app/bsky/unspecced/getSuggestedUsers.js +1 -1
  17. package/dist/api/app/bsky/unspecced/getSuggestedUsers.js.map +1 -1
  18. package/dist/api/app/bsky/unspecced/getTrends.js +1 -1
  19. package/dist/api/app/bsky/unspecced/getTrends.js.map +1 -1
  20. package/dist/api/com/atproto/identity/resolveHandle.d.ts.map +1 -1
  21. package/dist/api/com/atproto/identity/resolveHandle.js +3 -13
  22. package/dist/api/com/atproto/identity/resolveHandle.js.map +1 -1
  23. package/dist/api/health.js +1 -1
  24. package/dist/api/health.js.map +1 -1
  25. package/dist/api/well-known.d.ts.map +1 -1
  26. package/dist/api/well-known.js +4 -1
  27. package/dist/api/well-known.js.map +1 -1
  28. package/dist/config.d.ts +7 -0
  29. package/dist/config.d.ts.map +1 -1
  30. package/dist/config.js +28 -0
  31. package/dist/config.js.map +1 -1
  32. package/dist/data-plane/server/background.js +1 -1
  33. package/dist/data-plane/server/background.js.map +1 -1
  34. package/dist/data-plane/server/indexing/index.d.ts +2 -0
  35. package/dist/data-plane/server/indexing/index.d.ts.map +1 -1
  36. package/dist/data-plane/server/indexing/index.js +2 -0
  37. package/dist/data-plane/server/indexing/index.js.map +1 -1
  38. package/dist/data-plane/server/indexing/plugins/status.d.ts +7 -0
  39. package/dist/data-plane/server/indexing/plugins/status.d.ts.map +1 -0
  40. package/dist/data-plane/server/indexing/plugins/status.js +73 -0
  41. package/dist/data-plane/server/indexing/plugins/status.js.map +1 -0
  42. package/dist/data-plane/server/routes/index.d.ts.map +1 -1
  43. package/dist/data-plane/server/routes/index.js +0 -2
  44. package/dist/data-plane/server/routes/index.js.map +1 -1
  45. package/dist/data-plane/server/routes/profile.d.ts.map +1 -1
  46. package/dist/data-plane/server/routes/profile.js +8 -1
  47. package/dist/data-plane/server/routes/profile.js.map +1 -1
  48. package/dist/data-plane/server/routes/records.d.ts.map +1 -1
  49. package/dist/data-plane/server/routes/records.js +1 -0
  50. package/dist/data-plane/server/routes/records.js.map +1 -1
  51. package/dist/error.js +1 -1
  52. package/dist/error.js.map +1 -1
  53. package/dist/hydration/actor.d.ts +8 -1
  54. package/dist/hydration/actor.d.ts.map +1 -1
  55. package/dist/hydration/actor.js +18 -2
  56. package/dist/hydration/actor.js.map +1 -1
  57. package/dist/hydration/feed.d.ts +2 -2
  58. package/dist/hydration/feed.d.ts.map +1 -1
  59. package/dist/hydration/feed.js +10 -4
  60. package/dist/hydration/feed.js.map +1 -1
  61. package/dist/hydration/hydrator.d.ts +4 -3
  62. package/dist/hydration/hydrator.d.ts.map +1 -1
  63. package/dist/hydration/hydrator.js +47 -22
  64. package/dist/hydration/hydrator.js.map +1 -1
  65. package/dist/hydration/label.d.ts +1 -1
  66. package/dist/hydration/label.d.ts.map +1 -1
  67. package/dist/hydration/label.js +5 -2
  68. package/dist/hydration/label.js.map +1 -1
  69. package/dist/image/server.js +1 -1
  70. package/dist/image/server.js.map +1 -1
  71. package/dist/lexicon/index.d.ts +5 -2
  72. package/dist/lexicon/index.d.ts.map +1 -1
  73. package/dist/lexicon/index.js +8 -5
  74. package/dist/lexicon/index.js.map +1 -1
  75. package/dist/lexicon/lexicons.d.ts +288 -82
  76. package/dist/lexicon/lexicons.d.ts.map +1 -1
  77. package/dist/lexicon/lexicons.js +146 -42
  78. package/dist/lexicon/lexicons.js.map +1 -1
  79. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +21 -0
  80. package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
  81. package/dist/lexicon/types/app/bsky/actor/defs.js +9 -0
  82. package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
  83. package/dist/lexicon/types/app/bsky/actor/status.d.ts +23 -0
  84. package/dist/lexicon/types/app/bsky/actor/status.d.ts.map +1 -0
  85. package/dist/lexicon/types/app/bsky/actor/status.js +19 -0
  86. package/dist/lexicon/types/app/bsky/actor/status.js.map +1 -0
  87. package/dist/lexicon/types/app/bsky/unspecced/getConfig.d.ts +9 -0
  88. package/dist/lexicon/types/app/bsky/unspecced/getConfig.d.ts.map +1 -1
  89. package/dist/lexicon/types/app/bsky/unspecced/getConfig.js +9 -0
  90. package/dist/lexicon/types/app/bsky/unspecced/getConfig.js.map +1 -1
  91. package/dist/proto/bsky_connect.d.ts +10 -12
  92. package/dist/proto/bsky_connect.d.ts.map +1 -1
  93. package/dist/proto/bsky_connect.js +9 -11
  94. package/dist/proto/bsky_connect.js.map +1 -1
  95. package/dist/proto/bsky_pb.d.ts +58 -37
  96. package/dist/proto/bsky_pb.d.ts.map +1 -1
  97. package/dist/proto/bsky_pb.js +189 -115
  98. package/dist/proto/bsky_pb.js.map +1 -1
  99. package/dist/views/index.d.ts +2 -1
  100. package/dist/views/index.d.ts.map +1 -1
  101. package/dist/views/index.js +37 -10
  102. package/dist/views/index.js.map +1 -1
  103. package/package.json +13 -13
  104. package/proto/bsky.proto +16 -17
  105. package/src/api/app/bsky/feed/getListFeed.ts +1 -1
  106. package/src/api/app/bsky/graph/getFollowers.ts +4 -1
  107. package/src/api/app/bsky/graph/getFollows.ts +4 -1
  108. package/src/api/app/bsky/graph/getList.ts +1 -1
  109. package/src/api/app/bsky/unspecced/getConfig.ts +1 -0
  110. package/src/api/app/bsky/unspecced/getSuggestedStarterPacks.ts +1 -1
  111. package/src/api/app/bsky/unspecced/getSuggestedUsers.ts +1 -1
  112. package/src/api/app/bsky/unspecced/getTrends.ts +1 -1
  113. package/src/api/com/atproto/identity/resolveHandle.ts +3 -16
  114. package/src/api/health.ts +1 -1
  115. package/src/api/well-known.ts +4 -1
  116. package/src/config.ts +39 -0
  117. package/src/data-plane/server/background.ts +1 -1
  118. package/src/data-plane/server/indexing/index.ts +3 -0
  119. package/src/data-plane/server/indexing/plugins/status.ts +61 -0
  120. package/src/data-plane/server/routes/index.ts +0 -2
  121. package/src/data-plane/server/routes/profile.ts +43 -27
  122. package/src/data-plane/server/routes/records.ts +1 -0
  123. package/src/error.ts +1 -1
  124. package/src/hydration/actor.ts +27 -2
  125. package/src/hydration/feed.ts +16 -4
  126. package/src/hydration/hydrator.ts +64 -21
  127. package/src/hydration/label.ts +8 -2
  128. package/src/image/server.ts +1 -1
  129. package/src/lexicon/index.ts +12 -9
  130. package/src/lexicon/lexicons.ts +151 -43
  131. package/src/lexicon/types/app/bsky/actor/defs.ts +26 -0
  132. package/src/lexicon/types/app/bsky/actor/status.ts +40 -0
  133. package/src/lexicon/types/app/bsky/unspecced/getConfig.ts +17 -0
  134. package/src/proto/bsky_connect.ts +11 -13
  135. package/src/proto/bsky_pb.ts +173 -119
  136. package/src/views/index.ts +47 -11
  137. package/tests/views/__snapshots__/profile.test.ts.snap +60 -0
  138. package/tests/views/__snapshots__/thread.test.ts.snap +203 -11
  139. package/tests/views/get-config.test.ts +66 -0
  140. package/tests/views/profile.test.ts +189 -1
  141. package/tests/views/thread.test.ts +134 -2
  142. package/tsconfig.build.tsbuildinfo +1 -1
  143. package/tsconfig.tests.tsbuildinfo +1 -1
  144. package/dist/data-plane/server/routes/posts.d.ts +0 -6
  145. package/dist/data-plane/server/routes/posts.d.ts.map +0 -1
  146. package/dist/data-plane/server/routes/posts.js +0 -20
  147. package/dist/data-plane/server/routes/posts.js.map +0 -1
  148. package/src/data-plane/server/routes/posts.ts +0 -21
@@ -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',