@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
@@ -108,8 +108,8 @@ import * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGene
108
108
  import * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton.js'
109
109
  import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes.js'
110
110
  import * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed.js'
111
- import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
112
111
  import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
112
+ import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
113
113
  import * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes.js'
114
114
  import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy.js'
115
115
  import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds.js'
@@ -194,6 +194,9 @@ export const COM_ATPROTO_MODERATION = {
194
194
  DefsReasonOther: 'com.atproto.moderation.defs#reasonOther',
195
195
  DefsReasonAppeal: 'com.atproto.moderation.defs#reasonAppeal',
196
196
  }
197
+ export const APP_BSKY_ACTOR = {
198
+ StatusLive: 'app.bsky.actor.status#live',
199
+ }
197
200
  export const APP_BSKY_FEED = {
198
201
  DefsRequestLess: 'app.bsky.feed.defs#requestLess',
199
202
  DefsRequestMore: 'app.bsky.feed.defs#requestMore',
@@ -1494,25 +1497,25 @@ export class AppBskyFeedNS {
1494
1497
  return this._server.xrpc.method(nsid, cfg)
1495
1498
  }
1496
1499
 
1497
- getPostThread<AV extends AuthVerifier>(
1500
+ getPosts<AV extends AuthVerifier>(
1498
1501
  cfg: ConfigOf<
1499
1502
  AV,
1500
- AppBskyFeedGetPostThread.Handler<ExtractAuth<AV>>,
1501
- AppBskyFeedGetPostThread.HandlerReqCtx<ExtractAuth<AV>>
1503
+ AppBskyFeedGetPosts.Handler<ExtractAuth<AV>>,
1504
+ AppBskyFeedGetPosts.HandlerReqCtx<ExtractAuth<AV>>
1502
1505
  >,
1503
1506
  ) {
1504
- const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore
1507
+ const nsid = 'app.bsky.feed.getPosts' // @ts-ignore
1505
1508
  return this._server.xrpc.method(nsid, cfg)
1506
1509
  }
1507
1510
 
1508
- getPosts<AV extends AuthVerifier>(
1511
+ getPostThread<AV extends AuthVerifier>(
1509
1512
  cfg: ConfigOf<
1510
1513
  AV,
1511
- AppBskyFeedGetPosts.Handler<ExtractAuth<AV>>,
1512
- AppBskyFeedGetPosts.HandlerReqCtx<ExtractAuth<AV>>
1514
+ AppBskyFeedGetPostThread.Handler<ExtractAuth<AV>>,
1515
+ AppBskyFeedGetPostThread.HandlerReqCtx<ExtractAuth<AV>>
1513
1516
  >,
1514
1517
  ) {
1515
- const nsid = 'app.bsky.feed.getPosts' // @ts-ignore
1518
+ const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore
1516
1519
  return this._server.xrpc.method(nsid, cfg)
1517
1520
  }
1518
1521
 
@@ -4568,6 +4568,10 @@ export const schemaDict = {
4568
4568
  type: 'ref',
4569
4569
  ref: 'lex:app.bsky.actor.defs#verificationState',
4570
4570
  },
4571
+ status: {
4572
+ type: 'ref',
4573
+ ref: 'lex:app.bsky.actor.defs#statusView',
4574
+ },
4571
4575
  },
4572
4576
  },
4573
4577
  profileView: {
@@ -4623,6 +4627,10 @@ export const schemaDict = {
4623
4627
  type: 'ref',
4624
4628
  ref: 'lex:app.bsky.actor.defs#verificationState',
4625
4629
  },
4630
+ status: {
4631
+ type: 'ref',
4632
+ ref: 'lex:app.bsky.actor.defs#statusView',
4633
+ },
4626
4634
  },
4627
4635
  },
4628
4636
  profileViewDetailed: {
@@ -4699,6 +4707,10 @@ export const schemaDict = {
4699
4707
  type: 'ref',
4700
4708
  ref: 'lex:app.bsky.actor.defs#verificationState',
4701
4709
  },
4710
+ status: {
4711
+ type: 'ref',
4712
+ ref: 'lex:app.bsky.actor.defs#statusView',
4713
+ },
4702
4714
  },
4703
4715
  },
4704
4716
  profileAssociated: {
@@ -5240,6 +5252,36 @@ export const schemaDict = {
5240
5252
  },
5241
5253
  },
5242
5254
  },
5255
+ statusView: {
5256
+ type: 'object',
5257
+ required: ['status', 'record'],
5258
+ properties: {
5259
+ status: {
5260
+ type: 'string',
5261
+ description: 'The status for the account.',
5262
+ knownValues: ['app.bsky.actor.status#live'],
5263
+ },
5264
+ record: {
5265
+ type: 'unknown',
5266
+ },
5267
+ embed: {
5268
+ type: 'union',
5269
+ description: 'An optional embed associated with the status.',
5270
+ refs: ['lex:app.bsky.embed.external#view'],
5271
+ },
5272
+ expiresAt: {
5273
+ type: 'string',
5274
+ description:
5275
+ 'The date when this status will expire. The application might choose to no longer return the status after expiration.',
5276
+ format: 'datetime',
5277
+ },
5278
+ isActive: {
5279
+ type: 'boolean',
5280
+ description:
5281
+ 'True if the status is not expired, false if it is expired. Only present if expiration was set.',
5282
+ },
5283
+ },
5284
+ },
5243
5285
  },
5244
5286
  },
5245
5287
  AppBskyActorGetPreferences: {
@@ -5569,6 +5611,48 @@ export const schemaDict = {
5569
5611
  },
5570
5612
  },
5571
5613
  },
5614
+ AppBskyActorStatus: {
5615
+ lexicon: 1,
5616
+ id: 'app.bsky.actor.status',
5617
+ defs: {
5618
+ main: {
5619
+ type: 'record',
5620
+ description: 'A declaration of a Bluesky account status.',
5621
+ key: 'literal:self',
5622
+ record: {
5623
+ type: 'object',
5624
+ required: ['status', 'createdAt'],
5625
+ properties: {
5626
+ status: {
5627
+ type: 'string',
5628
+ description: 'The status for the account.',
5629
+ knownValues: ['app.bsky.actor.status#live'],
5630
+ },
5631
+ embed: {
5632
+ type: 'union',
5633
+ description: 'An optional embed associated with the status.',
5634
+ refs: ['lex:app.bsky.embed.external'],
5635
+ },
5636
+ durationMinutes: {
5637
+ type: 'integer',
5638
+ description:
5639
+ 'The duration of the status in minutes. Applications can choose to impose minimum and maximum limits.',
5640
+ minimum: 1,
5641
+ },
5642
+ createdAt: {
5643
+ type: 'string',
5644
+ format: 'datetime',
5645
+ },
5646
+ },
5647
+ },
5648
+ },
5649
+ live: {
5650
+ type: 'token',
5651
+ description:
5652
+ 'Advertises an account as currently offering live content.',
5653
+ },
5654
+ },
5655
+ },
5572
5656
  AppBskyEmbedDefs: {
5573
5657
  lexicon: 1,
5574
5658
  id: 'app.bsky.embed.defs',
@@ -7129,6 +7213,48 @@ export const schemaDict = {
7129
7213
  },
7130
7214
  },
7131
7215
  },
7216
+ AppBskyFeedGetPosts: {
7217
+ lexicon: 1,
7218
+ id: 'app.bsky.feed.getPosts',
7219
+ defs: {
7220
+ main: {
7221
+ type: 'query',
7222
+ description:
7223
+ "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
7224
+ parameters: {
7225
+ type: 'params',
7226
+ required: ['uris'],
7227
+ properties: {
7228
+ uris: {
7229
+ type: 'array',
7230
+ description: 'List of post AT-URIs to return hydrated views for.',
7231
+ items: {
7232
+ type: 'string',
7233
+ format: 'at-uri',
7234
+ },
7235
+ maxLength: 25,
7236
+ },
7237
+ },
7238
+ },
7239
+ output: {
7240
+ encoding: 'application/json',
7241
+ schema: {
7242
+ type: 'object',
7243
+ required: ['posts'],
7244
+ properties: {
7245
+ posts: {
7246
+ type: 'array',
7247
+ items: {
7248
+ type: 'ref',
7249
+ ref: 'lex:app.bsky.feed.defs#postView',
7250
+ },
7251
+ },
7252
+ },
7253
+ },
7254
+ },
7255
+ },
7256
+ },
7257
+ },
7132
7258
  AppBskyFeedGetPostThread: {
7133
7259
  lexicon: 1,
7134
7260
  id: 'app.bsky.feed.getPostThread',
@@ -7193,48 +7319,6 @@ export const schemaDict = {
7193
7319
  },
7194
7320
  },
7195
7321
  },
7196
- AppBskyFeedGetPosts: {
7197
- lexicon: 1,
7198
- id: 'app.bsky.feed.getPosts',
7199
- defs: {
7200
- main: {
7201
- type: 'query',
7202
- description:
7203
- "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.",
7204
- parameters: {
7205
- type: 'params',
7206
- required: ['uris'],
7207
- properties: {
7208
- uris: {
7209
- type: 'array',
7210
- description: 'List of post AT-URIs to return hydrated views for.',
7211
- items: {
7212
- type: 'string',
7213
- format: 'at-uri',
7214
- },
7215
- maxLength: 25,
7216
- },
7217
- },
7218
- },
7219
- output: {
7220
- encoding: 'application/json',
7221
- schema: {
7222
- type: 'object',
7223
- required: ['posts'],
7224
- properties: {
7225
- posts: {
7226
- type: 'array',
7227
- items: {
7228
- type: 'ref',
7229
- ref: 'lex:app.bsky.feed.defs#postView',
7230
- },
7231
- },
7232
- },
7233
- },
7234
- },
7235
- },
7236
- },
7237
- },
7238
7322
  AppBskyFeedGetQuotes: {
7239
7323
  lexicon: 1,
7240
7324
  id: 'app.bsky.feed.getQuotes',
@@ -10099,6 +10183,29 @@ export const schemaDict = {
10099
10183
  checkEmailConfirmed: {
10100
10184
  type: 'boolean',
10101
10185
  },
10186
+ liveNow: {
10187
+ type: 'array',
10188
+ items: {
10189
+ type: 'ref',
10190
+ ref: 'lex:app.bsky.unspecced.getConfig#liveNowConfig',
10191
+ },
10192
+ },
10193
+ },
10194
+ },
10195
+ },
10196
+ },
10197
+ liveNowConfig: {
10198
+ type: 'object',
10199
+ required: ['did', 'domains'],
10200
+ properties: {
10201
+ did: {
10202
+ type: 'string',
10203
+ format: 'did',
10204
+ },
10205
+ domains: {
10206
+ type: 'array',
10207
+ items: {
10208
+ type: 'string',
10102
10209
  },
10103
10210
  },
10104
10211
  },
@@ -12497,6 +12604,7 @@ export const ids = {
12497
12604
  AppBskyActorPutPreferences: 'app.bsky.actor.putPreferences',
12498
12605
  AppBskyActorSearchActors: 'app.bsky.actor.searchActors',
12499
12606
  AppBskyActorSearchActorsTypeahead: 'app.bsky.actor.searchActorsTypeahead',
12607
+ AppBskyActorStatus: 'app.bsky.actor.status',
12500
12608
  AppBskyEmbedDefs: 'app.bsky.embed.defs',
12501
12609
  AppBskyEmbedExternal: 'app.bsky.embed.external',
12502
12610
  AppBskyEmbedImages: 'app.bsky.embed.images',
@@ -12515,8 +12623,8 @@ export const ids = {
12515
12623
  AppBskyFeedGetFeedSkeleton: 'app.bsky.feed.getFeedSkeleton',
12516
12624
  AppBskyFeedGetLikes: 'app.bsky.feed.getLikes',
12517
12625
  AppBskyFeedGetListFeed: 'app.bsky.feed.getListFeed',
12518
- AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
12519
12626
  AppBskyFeedGetPosts: 'app.bsky.feed.getPosts',
12627
+ AppBskyFeedGetPostThread: 'app.bsky.feed.getPostThread',
12520
12628
  AppBskyFeedGetQuotes: 'app.bsky.feed.getQuotes',
12521
12629
  AppBskyFeedGetRepostedBy: 'app.bsky.feed.getRepostedBy',
12522
12630
  AppBskyFeedGetSuggestedFeeds: 'app.bsky.feed.getSuggestedFeeds',
@@ -14,6 +14,7 @@ import type * as AppBskyGraphDefs from '../graph/defs.js'
14
14
  import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js'
15
15
  import type * as AppBskyFeedThreadgate from '../feed/threadgate.js'
16
16
  import type * as AppBskyFeedPostgate from '../feed/postgate.js'
17
+ import type * as AppBskyEmbedExternal from '../embed/external.js'
17
18
 
18
19
  const is$typed = _is$typed,
19
20
  validate = _validate
@@ -30,6 +31,7 @@ export interface ProfileViewBasic {
30
31
  labels?: ComAtprotoLabelDefs.Label[]
31
32
  createdAt?: string
32
33
  verification?: VerificationState
34
+ status?: StatusView
33
35
  }
34
36
 
35
37
  const hashProfileViewBasic = 'profileViewBasic'
@@ -55,6 +57,7 @@ export interface ProfileView {
55
57
  viewer?: ViewerState
56
58
  labels?: ComAtprotoLabelDefs.Label[]
57
59
  verification?: VerificationState
60
+ status?: StatusView
58
61
  }
59
62
 
60
63
  const hashProfileView = 'profileView'
@@ -86,6 +89,7 @@ export interface ProfileViewDetailed {
86
89
  labels?: ComAtprotoLabelDefs.Label[]
87
90
  pinnedPost?: ComAtprotoRepoStrongRef.Main
88
91
  verification?: VerificationState
92
+ status?: StatusView
89
93
  }
90
94
 
91
95
  const hashProfileViewDetailed = 'profileViewDetailed'
@@ -592,3 +596,25 @@ export function validatePostInteractionSettingsPref<V>(v: V) {
592
596
  hashPostInteractionSettingsPref,
593
597
  )
594
598
  }
599
+
600
+ export interface StatusView {
601
+ $type?: 'app.bsky.actor.defs#statusView'
602
+ /** The status for the account. */
603
+ status: 'app.bsky.actor.status#live' | (string & {})
604
+ record: { [_ in string]: unknown }
605
+ embed?: $Typed<AppBskyEmbedExternal.View> | { $type: string }
606
+ /** The date when this status will expire. The application might choose to no longer return the status after expiration. */
607
+ expiresAt?: string
608
+ /** True if the status is not expired, false if it is expired. Only present if expiration was set. */
609
+ isActive?: boolean
610
+ }
611
+
612
+ const hashStatusView = 'statusView'
613
+
614
+ export function isStatusView<V>(v: V) {
615
+ return is$typed(v, id, hashStatusView)
616
+ }
617
+
618
+ export function validateStatusView<V>(v: V) {
619
+ return validate<StatusView & V>(v, id, hashStatusView)
620
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon'
5
+ import { CID } from 'multiformats/cid'
6
+ import { validate as _validate } from '../../../../lexicons'
7
+ import {
8
+ type $Typed,
9
+ is$typed as _is$typed,
10
+ type OmitKey,
11
+ } from '../../../../util'
12
+ import type * as AppBskyEmbedExternal from '../embed/external.js'
13
+
14
+ const is$typed = _is$typed,
15
+ validate = _validate
16
+ const id = 'app.bsky.actor.status'
17
+
18
+ export interface Record {
19
+ $type: 'app.bsky.actor.status'
20
+ /** The status for the account. */
21
+ status: 'app.bsky.actor.status#live' | (string & {})
22
+ embed?: $Typed<AppBskyEmbedExternal.Main> | { $type: string }
23
+ /** The duration of the status in minutes. Applications can choose to impose minimum and maximum limits. */
24
+ durationMinutes?: number
25
+ createdAt: string
26
+ [k: string]: unknown
27
+ }
28
+
29
+ const hashRecord = 'main'
30
+
31
+ export function isRecord<V>(v: V) {
32
+ return is$typed(v, id, hashRecord)
33
+ }
34
+
35
+ export function validateRecord<V>(v: V) {
36
+ return validate<Record & V>(v, id, hashRecord, true)
37
+ }
38
+
39
+ /** Advertises an account as currently offering live content. */
40
+ export const LIVE = `${id}#live`
@@ -22,6 +22,7 @@ export type InputSchema = undefined
22
22
 
23
23
  export interface OutputSchema {
24
24
  checkEmailConfirmed?: boolean
25
+ liveNow?: LiveNowConfig[]
25
26
  }
26
27
 
27
28
  export type HandlerInput = undefined
@@ -49,3 +50,19 @@ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
49
50
  export type Handler<HA extends HandlerAuth = never> = (
50
51
  ctx: HandlerReqCtx<HA>,
51
52
  ) => Promise<HandlerOutput> | HandlerOutput
53
+
54
+ export interface LiveNowConfig {
55
+ $type?: 'app.bsky.unspecced.getConfig#liveNowConfig'
56
+ did: string
57
+ domains: string[]
58
+ }
59
+
60
+ const hashLiveNowConfig = 'liveNowConfig'
61
+
62
+ export function isLiveNowConfig<V>(v: V) {
63
+ return is$typed(v, id, hashLiveNowConfig)
64
+ }
65
+
66
+ export function validateLiveNowConfig<V>(v: V) {
67
+ return validate<LiveNowConfig & V>(v, id, hashLiveNowConfig)
68
+ }
@@ -134,8 +134,6 @@ import {
134
134
  GetPostgateRecordsResponse,
135
135
  GetPostRecordsRequest,
136
136
  GetPostRecordsResponse,
137
- GetPostReplyCountsRequest,
138
- GetPostReplyCountsResponse,
139
137
  GetProfileRecordsRequest,
140
138
  GetProfileRecordsResponse,
141
139
  GetQuotesBySubjectSortedRequest,
@@ -154,6 +152,8 @@ import {
154
152
  GetStarterPackCountsResponse,
155
153
  GetStarterPackRecordsRequest,
156
154
  GetStarterPackRecordsResponse,
155
+ GetStatusRecordsRequest,
156
+ GetStatusRecordsResponse,
157
157
  GetSuggestedEntitiesRequest,
158
158
  GetSuggestedEntitiesResponse,
159
159
  GetSuggestedFeedsRequest,
@@ -305,6 +305,15 @@ export const Service = {
305
305
  O: GetActorChatDeclarationRecordsResponse,
306
306
  kind: MethodKind.Unary,
307
307
  },
308
+ /**
309
+ * @generated from rpc bsky.Service.GetStatusRecords
310
+ */
311
+ getStatusRecords: {
312
+ name: 'GetStatusRecords',
313
+ I: GetStatusRecordsRequest,
314
+ O: GetStatusRecordsResponse,
315
+ kind: MethodKind.Unary,
316
+ },
308
317
  /**
309
318
  * @generated from rpc bsky.Service.GetRepostRecords
310
319
  */
@@ -885,17 +894,6 @@ export const Service = {
885
894
  O: GetSuggestedEntitiesResponse,
886
895
  kind: MethodKind.Unary,
887
896
  },
888
- /**
889
- * Posts
890
- *
891
- * @generated from rpc bsky.Service.GetPostReplyCounts
892
- */
893
- getPostReplyCounts: {
894
- name: 'GetPostReplyCounts',
895
- I: GetPostReplyCountsRequest,
896
- O: GetPostReplyCountsResponse,
897
- kind: MethodKind.Unary,
898
- },
899
897
  /**
900
898
  * Labels
901
899
  *