@atproto/bsky 0.0.51 → 0.0.52

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 (188) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/api/app/bsky/feed/getLikes.d.ts.map +1 -1
  3. package/dist/api/app/bsky/feed/getLikes.js +10 -1
  4. package/dist/api/app/bsky/feed/getLikes.js.map +1 -1
  5. package/dist/data-plane/server/indexing/index.d.ts +2 -0
  6. package/dist/data-plane/server/indexing/index.d.ts.map +1 -1
  7. package/dist/data-plane/server/indexing/index.js +2 -0
  8. package/dist/data-plane/server/indexing/index.js.map +1 -1
  9. package/dist/data-plane/server/indexing/plugins/chat-declaration.d.ts +7 -0
  10. package/dist/data-plane/server/indexing/plugins/chat-declaration.d.ts.map +1 -0
  11. package/dist/data-plane/server/indexing/plugins/chat-declaration.js +68 -0
  12. package/dist/data-plane/server/indexing/plugins/chat-declaration.js.map +1 -0
  13. package/dist/data-plane/server/routes/follows.d.ts.map +1 -1
  14. package/dist/data-plane/server/routes/follows.js +3 -0
  15. package/dist/data-plane/server/routes/follows.js.map +1 -1
  16. package/dist/data-plane/server/routes/labels.d.ts.map +1 -1
  17. package/dist/data-plane/server/routes/labels.js +3 -0
  18. package/dist/data-plane/server/routes/labels.js.map +1 -1
  19. package/dist/data-plane/server/routes/likes.d.ts.map +1 -1
  20. package/dist/data-plane/server/routes/likes.js +11 -2
  21. package/dist/data-plane/server/routes/likes.js.map +1 -1
  22. package/dist/data-plane/server/routes/profile.d.ts.map +1 -1
  23. package/dist/data-plane/server/routes/profile.js +8 -1
  24. package/dist/data-plane/server/routes/profile.js.map +1 -1
  25. package/dist/data-plane/server/routes/records.d.ts.map +1 -1
  26. package/dist/data-plane/server/routes/records.js +1 -0
  27. package/dist/data-plane/server/routes/records.js.map +1 -1
  28. package/dist/hydration/actor.d.ts +6 -1
  29. package/dist/hydration/actor.d.ts.map +1 -1
  30. package/dist/hydration/actor.js +10 -0
  31. package/dist/hydration/actor.js.map +1 -1
  32. package/dist/hydration/hydrator.d.ts.map +1 -1
  33. package/dist/hydration/hydrator.js +5 -0
  34. package/dist/hydration/hydrator.js.map +1 -1
  35. package/dist/lexicon/index.d.ts +59 -0
  36. package/dist/lexicon/index.d.ts.map +1 -1
  37. package/dist/lexicon/index.js +164 -1
  38. package/dist/lexicon/index.js.map +1 -1
  39. package/dist/lexicon/lexicons.d.ts +907 -0
  40. package/dist/lexicon/lexicons.d.ts.map +1 -1
  41. package/dist/lexicon/lexicons.js +932 -0
  42. package/dist/lexicon/lexicons.js.map +1 -1
  43. package/dist/lexicon/types/app/bsky/actor/defs.d.ts +7 -0
  44. package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
  45. package/dist/lexicon/types/app/bsky/actor/defs.js +11 -1
  46. package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
  47. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts +11 -0
  48. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts.map +1 -0
  49. package/dist/lexicon/types/chat/bsky/actor/declaration.js +17 -0
  50. package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -0
  51. package/dist/lexicon/types/chat/bsky/actor/defs.d.ts +21 -0
  52. package/dist/lexicon/types/chat/bsky/actor/defs.d.ts.map +1 -0
  53. package/dist/lexicon/types/chat/bsky/actor/defs.js +16 -0
  54. package/dist/lexicon/types/chat/bsky/actor/defs.js.map +1 -0
  55. package/dist/lexicon/types/chat/bsky/actor/deleteAccount.d.ts +33 -0
  56. package/dist/lexicon/types/chat/bsky/actor/deleteAccount.d.ts.map +1 -0
  57. package/dist/lexicon/types/chat/bsky/actor/deleteAccount.js +3 -0
  58. package/dist/lexicon/types/chat/bsky/actor/deleteAccount.js.map +1 -0
  59. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts +32 -0
  60. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts.map +1 -0
  61. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.js +3 -0
  62. package/dist/lexicon/types/chat/bsky/actor/exportAccountData.js.map +1 -0
  63. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +109 -0
  64. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts.map +1 -0
  65. package/dist/lexicon/types/chat/bsky/convo/defs.js +106 -0
  66. package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -0
  67. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts +39 -0
  68. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts.map +1 -0
  69. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js +3 -0
  70. package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js.map +1 -0
  71. package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts +36 -0
  72. package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts.map +1 -0
  73. package/dist/lexicon/types/chat/bsky/convo/getConvo.js +3 -0
  74. package/dist/lexicon/types/chat/bsky/convo/getConvo.js.map +1 -0
  75. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts +36 -0
  76. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts.map +1 -0
  77. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js +3 -0
  78. package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js.map +1 -0
  79. package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts +40 -0
  80. package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts.map +1 -0
  81. package/dist/lexicon/types/chat/bsky/convo/getLog.js +3 -0
  82. package/dist/lexicon/types/chat/bsky/convo/getLog.js.map +1 -0
  83. package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts +42 -0
  84. package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts.map +1 -0
  85. package/dist/lexicon/types/chat/bsky/convo/getMessages.js +3 -0
  86. package/dist/lexicon/types/chat/bsky/convo/getMessages.js.map +1 -0
  87. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts +41 -0
  88. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts.map +1 -0
  89. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js +3 -0
  90. package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js.map +1 -0
  91. package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts +38 -0
  92. package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts.map +1 -0
  93. package/dist/lexicon/types/chat/bsky/convo/listConvos.js +3 -0
  94. package/dist/lexicon/types/chat/bsky/convo/listConvos.js.map +1 -0
  95. package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts +41 -0
  96. package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts.map +1 -0
  97. package/dist/lexicon/types/chat/bsky/convo/muteConvo.js +3 -0
  98. package/dist/lexicon/types/chat/bsky/convo/muteConvo.js.map +1 -0
  99. package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts +39 -0
  100. package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts.map +1 -0
  101. package/dist/lexicon/types/chat/bsky/convo/sendMessage.js +3 -0
  102. package/dist/lexicon/types/chat/bsky/convo/sendMessage.js.map +1 -0
  103. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts +49 -0
  104. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts.map +1 -0
  105. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js +16 -0
  106. package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js.map +1 -0
  107. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts +41 -0
  108. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts.map +1 -0
  109. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js +3 -0
  110. package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js.map +1 -0
  111. package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts +42 -0
  112. package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts.map +1 -0
  113. package/dist/lexicon/types/chat/bsky/convo/updateRead.js +3 -0
  114. package/dist/lexicon/types/chat/bsky/convo/updateRead.js.map +1 -0
  115. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.d.ts +47 -0
  116. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.d.ts.map +1 -0
  117. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js +16 -0
  118. package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js.map +1 -0
  119. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts +41 -0
  120. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -0
  121. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js +3 -0
  122. package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js.map +1 -0
  123. package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.d.ts +31 -0
  124. package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.d.ts.map +1 -0
  125. package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.js +3 -0
  126. package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.js.map +1 -0
  127. package/dist/proto/bsky_connect.d.ts +39 -1
  128. package/dist/proto/bsky_connect.d.ts.map +1 -1
  129. package/dist/proto/bsky_connect.js +38 -0
  130. package/dist/proto/bsky_connect.js.map +1 -1
  131. package/dist/proto/bsky_pb.d.ts +191 -0
  132. package/dist/proto/bsky_pb.d.ts.map +1 -1
  133. package/dist/proto/bsky_pb.js +599 -4
  134. package/dist/proto/bsky_pb.js.map +1 -1
  135. package/dist/views/index.d.ts.map +1 -1
  136. package/dist/views/index.js +14 -2
  137. package/dist/views/index.js.map +1 -1
  138. package/package.json +5 -5
  139. package/proto/bsky.proto +56 -0
  140. package/src/api/app/bsky/feed/getLikes.ts +13 -1
  141. package/src/data-plane/server/indexing/index.ts +3 -0
  142. package/src/data-plane/server/indexing/plugins/chat-declaration.ts +63 -0
  143. package/src/data-plane/server/routes/follows.ts +3 -0
  144. package/src/data-plane/server/routes/labels.ts +4 -0
  145. package/src/data-plane/server/routes/likes.ts +9 -2
  146. package/src/data-plane/server/routes/profile.ts +13 -1
  147. package/src/data-plane/server/routes/records.ts +1 -0
  148. package/src/hydration/actor.ts +24 -0
  149. package/src/hydration/hydrator.ts +7 -0
  150. package/src/lexicon/index.ts +254 -0
  151. package/src/lexicon/lexicons.ts +933 -0
  152. package/src/lexicon/types/app/bsky/actor/defs.ts +20 -0
  153. package/src/lexicon/types/chat/bsky/actor/declaration.ts +25 -0
  154. package/src/lexicon/types/chat/bsky/actor/defs.ts +34 -0
  155. package/src/lexicon/types/chat/bsky/actor/deleteAccount.ts +42 -0
  156. package/src/lexicon/types/chat/bsky/actor/exportAccountData.ts +38 -0
  157. package/src/lexicon/types/chat/bsky/convo/defs.ts +215 -0
  158. package/src/lexicon/types/chat/bsky/convo/deleteMessageForSelf.ts +48 -0
  159. package/src/lexicon/types/chat/bsky/convo/getConvo.ts +46 -0
  160. package/src/lexicon/types/chat/bsky/convo/getConvoForMembers.ts +46 -0
  161. package/src/lexicon/types/chat/bsky/convo/getLog.ts +53 -0
  162. package/src/lexicon/types/chat/bsky/convo/getMessages.ts +53 -0
  163. package/src/lexicon/types/chat/bsky/convo/leaveConvo.ts +50 -0
  164. package/src/lexicon/types/chat/bsky/convo/listConvos.ts +48 -0
  165. package/src/lexicon/types/chat/bsky/convo/muteConvo.ts +50 -0
  166. package/src/lexicon/types/chat/bsky/convo/sendMessage.ts +48 -0
  167. package/src/lexicon/types/chat/bsky/convo/sendMessageBatch.ts +68 -0
  168. package/src/lexicon/types/chat/bsky/convo/unmuteConvo.ts +50 -0
  169. package/src/lexicon/types/chat/bsky/convo/updateRead.ts +51 -0
  170. package/src/lexicon/types/chat/bsky/moderation/getActorMetadata.ts +67 -0
  171. package/src/lexicon/types/chat/bsky/moderation/getMessageContext.ts +52 -0
  172. package/src/lexicon/types/chat/bsky/moderation/updateActorAccess.ts +40 -0
  173. package/src/proto/bsky_connect.ts +46 -0
  174. package/src/proto/bsky_pb.ts +607 -0
  175. package/src/views/index.ts +15 -2
  176. package/tests/__snapshots__/feed-generation.test.ts.snap +5 -0
  177. package/tests/data-plane/__snapshots__/indexing.test.ts.snap +19 -0
  178. package/tests/views/__snapshots__/author-feed.test.ts.snap +35 -0
  179. package/tests/views/__snapshots__/block-lists.test.ts.snap +10 -0
  180. package/tests/views/__snapshots__/blocks.test.ts.snap +5 -0
  181. package/tests/views/__snapshots__/likes.test.ts.snap +5 -0
  182. package/tests/views/__snapshots__/list-feed.test.ts.snap +5 -0
  183. package/tests/views/__snapshots__/mute-lists.test.ts.snap +5 -0
  184. package/tests/views/__snapshots__/notifications.test.ts.snap +35 -0
  185. package/tests/views/__snapshots__/posts.test.ts.snap +5 -0
  186. package/tests/views/__snapshots__/profile.test.ts.snap +6 -0
  187. package/tests/views/__snapshots__/reposts.test.ts.snap +10 -0
  188. package/tests/views/__snapshots__/timeline.test.ts.snap +110 -0
@@ -1239,6 +1239,140 @@ export class GetProfileRecordsResponse extends Message<GetProfileRecordsResponse
1239
1239
  }
1240
1240
  }
1241
1241
 
1242
+ /**
1243
+ * @generated from message bsky.GetActorChatDeclarationRecordsRequest
1244
+ */
1245
+ export class GetActorChatDeclarationRecordsRequest extends Message<GetActorChatDeclarationRecordsRequest> {
1246
+ /**
1247
+ * @generated from field: repeated string uris = 1;
1248
+ */
1249
+ uris: string[] = []
1250
+
1251
+ constructor(data?: PartialMessage<GetActorChatDeclarationRecordsRequest>) {
1252
+ super()
1253
+ proto3.util.initPartial(data, this)
1254
+ }
1255
+
1256
+ static readonly runtime: typeof proto3 = proto3
1257
+ static readonly typeName = 'bsky.GetActorChatDeclarationRecordsRequest'
1258
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1259
+ {
1260
+ no: 1,
1261
+ name: 'uris',
1262
+ kind: 'scalar',
1263
+ T: 9 /* ScalarType.STRING */,
1264
+ repeated: true,
1265
+ },
1266
+ ])
1267
+
1268
+ static fromBinary(
1269
+ bytes: Uint8Array,
1270
+ options?: Partial<BinaryReadOptions>,
1271
+ ): GetActorChatDeclarationRecordsRequest {
1272
+ return new GetActorChatDeclarationRecordsRequest().fromBinary(
1273
+ bytes,
1274
+ options,
1275
+ )
1276
+ }
1277
+
1278
+ static fromJson(
1279
+ jsonValue: JsonValue,
1280
+ options?: Partial<JsonReadOptions>,
1281
+ ): GetActorChatDeclarationRecordsRequest {
1282
+ return new GetActorChatDeclarationRecordsRequest().fromJson(
1283
+ jsonValue,
1284
+ options,
1285
+ )
1286
+ }
1287
+
1288
+ static fromJsonString(
1289
+ jsonString: string,
1290
+ options?: Partial<JsonReadOptions>,
1291
+ ): GetActorChatDeclarationRecordsRequest {
1292
+ return new GetActorChatDeclarationRecordsRequest().fromJsonString(
1293
+ jsonString,
1294
+ options,
1295
+ )
1296
+ }
1297
+
1298
+ static equals(
1299
+ a:
1300
+ | GetActorChatDeclarationRecordsRequest
1301
+ | PlainMessage<GetActorChatDeclarationRecordsRequest>
1302
+ | undefined,
1303
+ b:
1304
+ | GetActorChatDeclarationRecordsRequest
1305
+ | PlainMessage<GetActorChatDeclarationRecordsRequest>
1306
+ | undefined,
1307
+ ): boolean {
1308
+ return proto3.util.equals(GetActorChatDeclarationRecordsRequest, a, b)
1309
+ }
1310
+ }
1311
+
1312
+ /**
1313
+ * @generated from message bsky.GetActorChatDeclarationRecordsResponse
1314
+ */
1315
+ export class GetActorChatDeclarationRecordsResponse extends Message<GetActorChatDeclarationRecordsResponse> {
1316
+ /**
1317
+ * @generated from field: repeated bsky.Record records = 1;
1318
+ */
1319
+ records: Record[] = []
1320
+
1321
+ constructor(data?: PartialMessage<GetActorChatDeclarationRecordsResponse>) {
1322
+ super()
1323
+ proto3.util.initPartial(data, this)
1324
+ }
1325
+
1326
+ static readonly runtime: typeof proto3 = proto3
1327
+ static readonly typeName = 'bsky.GetActorChatDeclarationRecordsResponse'
1328
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1329
+ { no: 1, name: 'records', kind: 'message', T: Record, repeated: true },
1330
+ ])
1331
+
1332
+ static fromBinary(
1333
+ bytes: Uint8Array,
1334
+ options?: Partial<BinaryReadOptions>,
1335
+ ): GetActorChatDeclarationRecordsResponse {
1336
+ return new GetActorChatDeclarationRecordsResponse().fromBinary(
1337
+ bytes,
1338
+ options,
1339
+ )
1340
+ }
1341
+
1342
+ static fromJson(
1343
+ jsonValue: JsonValue,
1344
+ options?: Partial<JsonReadOptions>,
1345
+ ): GetActorChatDeclarationRecordsResponse {
1346
+ return new GetActorChatDeclarationRecordsResponse().fromJson(
1347
+ jsonValue,
1348
+ options,
1349
+ )
1350
+ }
1351
+
1352
+ static fromJsonString(
1353
+ jsonString: string,
1354
+ options?: Partial<JsonReadOptions>,
1355
+ ): GetActorChatDeclarationRecordsResponse {
1356
+ return new GetActorChatDeclarationRecordsResponse().fromJsonString(
1357
+ jsonString,
1358
+ options,
1359
+ )
1360
+ }
1361
+
1362
+ static equals(
1363
+ a:
1364
+ | GetActorChatDeclarationRecordsResponse
1365
+ | PlainMessage<GetActorChatDeclarationRecordsResponse>
1366
+ | undefined,
1367
+ b:
1368
+ | GetActorChatDeclarationRecordsResponse
1369
+ | PlainMessage<GetActorChatDeclarationRecordsResponse>
1370
+ | undefined,
1371
+ ): boolean {
1372
+ return proto3.util.equals(GetActorChatDeclarationRecordsResponse, a, b)
1373
+ }
1374
+ }
1375
+
1242
1376
  /**
1243
1377
  * @generated from message bsky.GetRepostRecordsRequest
1244
1378
  */
@@ -1590,6 +1724,115 @@ export class GetLabelerRecordsResponse extends Message<GetLabelerRecordsResponse
1590
1724
  }
1591
1725
  }
1592
1726
 
1727
+ /**
1728
+ * @generated from message bsky.GetAllLabelersRequest
1729
+ */
1730
+ export class GetAllLabelersRequest extends Message<GetAllLabelersRequest> {
1731
+ constructor(data?: PartialMessage<GetAllLabelersRequest>) {
1732
+ super()
1733
+ proto3.util.initPartial(data, this)
1734
+ }
1735
+
1736
+ static readonly runtime: typeof proto3 = proto3
1737
+ static readonly typeName = 'bsky.GetAllLabelersRequest'
1738
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [])
1739
+
1740
+ static fromBinary(
1741
+ bytes: Uint8Array,
1742
+ options?: Partial<BinaryReadOptions>,
1743
+ ): GetAllLabelersRequest {
1744
+ return new GetAllLabelersRequest().fromBinary(bytes, options)
1745
+ }
1746
+
1747
+ static fromJson(
1748
+ jsonValue: JsonValue,
1749
+ options?: Partial<JsonReadOptions>,
1750
+ ): GetAllLabelersRequest {
1751
+ return new GetAllLabelersRequest().fromJson(jsonValue, options)
1752
+ }
1753
+
1754
+ static fromJsonString(
1755
+ jsonString: string,
1756
+ options?: Partial<JsonReadOptions>,
1757
+ ): GetAllLabelersRequest {
1758
+ return new GetAllLabelersRequest().fromJsonString(jsonString, options)
1759
+ }
1760
+
1761
+ static equals(
1762
+ a: GetAllLabelersRequest | PlainMessage<GetAllLabelersRequest> | undefined,
1763
+ b: GetAllLabelersRequest | PlainMessage<GetAllLabelersRequest> | undefined,
1764
+ ): boolean {
1765
+ return proto3.util.equals(GetAllLabelersRequest, a, b)
1766
+ }
1767
+ }
1768
+
1769
+ /**
1770
+ * @generated from message bsky.GetAllLabelersResponse
1771
+ */
1772
+ export class GetAllLabelersResponse extends Message<GetAllLabelersResponse> {
1773
+ /**
1774
+ * @generated from field: repeated string uris = 1;
1775
+ */
1776
+ uris: string[] = []
1777
+
1778
+ /**
1779
+ * @generated from field: repeated bsky.Record records = 2;
1780
+ */
1781
+ records: Record[] = []
1782
+
1783
+ constructor(data?: PartialMessage<GetAllLabelersResponse>) {
1784
+ super()
1785
+ proto3.util.initPartial(data, this)
1786
+ }
1787
+
1788
+ static readonly runtime: typeof proto3 = proto3
1789
+ static readonly typeName = 'bsky.GetAllLabelersResponse'
1790
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
1791
+ {
1792
+ no: 1,
1793
+ name: 'uris',
1794
+ kind: 'scalar',
1795
+ T: 9 /* ScalarType.STRING */,
1796
+ repeated: true,
1797
+ },
1798
+ { no: 2, name: 'records', kind: 'message', T: Record, repeated: true },
1799
+ ])
1800
+
1801
+ static fromBinary(
1802
+ bytes: Uint8Array,
1803
+ options?: Partial<BinaryReadOptions>,
1804
+ ): GetAllLabelersResponse {
1805
+ return new GetAllLabelersResponse().fromBinary(bytes, options)
1806
+ }
1807
+
1808
+ static fromJson(
1809
+ jsonValue: JsonValue,
1810
+ options?: Partial<JsonReadOptions>,
1811
+ ): GetAllLabelersResponse {
1812
+ return new GetAllLabelersResponse().fromJson(jsonValue, options)
1813
+ }
1814
+
1815
+ static fromJsonString(
1816
+ jsonString: string,
1817
+ options?: Partial<JsonReadOptions>,
1818
+ ): GetAllLabelersResponse {
1819
+ return new GetAllLabelersResponse().fromJsonString(jsonString, options)
1820
+ }
1821
+
1822
+ static equals(
1823
+ a:
1824
+ | GetAllLabelersResponse
1825
+ | PlainMessage<GetAllLabelersResponse>
1826
+ | undefined,
1827
+ b:
1828
+ | GetAllLabelersResponse
1829
+ | PlainMessage<GetAllLabelersResponse>
1830
+ | undefined,
1831
+ ): boolean {
1832
+ return proto3.util.equals(GetAllLabelersResponse, a, b)
1833
+ }
1834
+ }
1835
+
1593
1836
  /**
1594
1837
  * - Return follow uris where user A follows users B, C, D, …
1595
1838
  * - E.g. for viewer state on `getProfiles`
@@ -2174,6 +2417,146 @@ export class GetLikesBySubjectResponse extends Message<GetLikesBySubjectResponse
2174
2417
  }
2175
2418
  }
2176
2419
 
2420
+ /**
2421
+ * @generated from message bsky.GetLikesBySubjectSortedRequest
2422
+ */
2423
+ export class GetLikesBySubjectSortedRequest extends Message<GetLikesBySubjectSortedRequest> {
2424
+ /**
2425
+ * @generated from field: bsky.RecordRef subject = 1;
2426
+ */
2427
+ subject?: RecordRef
2428
+
2429
+ /**
2430
+ * @generated from field: int32 limit = 2;
2431
+ */
2432
+ limit = 0
2433
+
2434
+ /**
2435
+ * @generated from field: string cursor = 3;
2436
+ */
2437
+ cursor = ''
2438
+
2439
+ constructor(data?: PartialMessage<GetLikesBySubjectSortedRequest>) {
2440
+ super()
2441
+ proto3.util.initPartial(data, this)
2442
+ }
2443
+
2444
+ static readonly runtime: typeof proto3 = proto3
2445
+ static readonly typeName = 'bsky.GetLikesBySubjectSortedRequest'
2446
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2447
+ { no: 1, name: 'subject', kind: 'message', T: RecordRef },
2448
+ { no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ },
2449
+ { no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
2450
+ ])
2451
+
2452
+ static fromBinary(
2453
+ bytes: Uint8Array,
2454
+ options?: Partial<BinaryReadOptions>,
2455
+ ): GetLikesBySubjectSortedRequest {
2456
+ return new GetLikesBySubjectSortedRequest().fromBinary(bytes, options)
2457
+ }
2458
+
2459
+ static fromJson(
2460
+ jsonValue: JsonValue,
2461
+ options?: Partial<JsonReadOptions>,
2462
+ ): GetLikesBySubjectSortedRequest {
2463
+ return new GetLikesBySubjectSortedRequest().fromJson(jsonValue, options)
2464
+ }
2465
+
2466
+ static fromJsonString(
2467
+ jsonString: string,
2468
+ options?: Partial<JsonReadOptions>,
2469
+ ): GetLikesBySubjectSortedRequest {
2470
+ return new GetLikesBySubjectSortedRequest().fromJsonString(
2471
+ jsonString,
2472
+ options,
2473
+ )
2474
+ }
2475
+
2476
+ static equals(
2477
+ a:
2478
+ | GetLikesBySubjectSortedRequest
2479
+ | PlainMessage<GetLikesBySubjectSortedRequest>
2480
+ | undefined,
2481
+ b:
2482
+ | GetLikesBySubjectSortedRequest
2483
+ | PlainMessage<GetLikesBySubjectSortedRequest>
2484
+ | undefined,
2485
+ ): boolean {
2486
+ return proto3.util.equals(GetLikesBySubjectSortedRequest, a, b)
2487
+ }
2488
+ }
2489
+
2490
+ /**
2491
+ * @generated from message bsky.GetLikesBySubjectSortedResponse
2492
+ */
2493
+ export class GetLikesBySubjectSortedResponse extends Message<GetLikesBySubjectSortedResponse> {
2494
+ /**
2495
+ * @generated from field: repeated string uris = 1;
2496
+ */
2497
+ uris: string[] = []
2498
+
2499
+ /**
2500
+ * @generated from field: string cursor = 2;
2501
+ */
2502
+ cursor = ''
2503
+
2504
+ constructor(data?: PartialMessage<GetLikesBySubjectSortedResponse>) {
2505
+ super()
2506
+ proto3.util.initPartial(data, this)
2507
+ }
2508
+
2509
+ static readonly runtime: typeof proto3 = proto3
2510
+ static readonly typeName = 'bsky.GetLikesBySubjectSortedResponse'
2511
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
2512
+ {
2513
+ no: 1,
2514
+ name: 'uris',
2515
+ kind: 'scalar',
2516
+ T: 9 /* ScalarType.STRING */,
2517
+ repeated: true,
2518
+ },
2519
+ { no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
2520
+ ])
2521
+
2522
+ static fromBinary(
2523
+ bytes: Uint8Array,
2524
+ options?: Partial<BinaryReadOptions>,
2525
+ ): GetLikesBySubjectSortedResponse {
2526
+ return new GetLikesBySubjectSortedResponse().fromBinary(bytes, options)
2527
+ }
2528
+
2529
+ static fromJson(
2530
+ jsonValue: JsonValue,
2531
+ options?: Partial<JsonReadOptions>,
2532
+ ): GetLikesBySubjectSortedResponse {
2533
+ return new GetLikesBySubjectSortedResponse().fromJson(jsonValue, options)
2534
+ }
2535
+
2536
+ static fromJsonString(
2537
+ jsonString: string,
2538
+ options?: Partial<JsonReadOptions>,
2539
+ ): GetLikesBySubjectSortedResponse {
2540
+ return new GetLikesBySubjectSortedResponse().fromJsonString(
2541
+ jsonString,
2542
+ options,
2543
+ )
2544
+ }
2545
+
2546
+ static equals(
2547
+ a:
2548
+ | GetLikesBySubjectSortedResponse
2549
+ | PlainMessage<GetLikesBySubjectSortedResponse>
2550
+ | undefined,
2551
+ b:
2552
+ | GetLikesBySubjectSortedResponse
2553
+ | PlainMessage<GetLikesBySubjectSortedResponse>
2554
+ | undefined,
2555
+ ): boolean {
2556
+ return proto3.util.equals(GetLikesBySubjectSortedResponse, a, b)
2557
+ }
2558
+ }
2559
+
2177
2560
  /**
2178
2561
  * - return like uris for user A on subject B, C, D...
2179
2562
  * - viewer state on posts
@@ -3372,6 +3755,11 @@ export class ActorInfo extends Message<ActorInfo> {
3372
3755
  */
3373
3756
  labeler = false
3374
3757
 
3758
+ /**
3759
+ * @generated from field: string allow_incoming_chats_from = 8;
3760
+ */
3761
+ allowIncomingChatsFrom = ''
3762
+
3375
3763
  constructor(data?: PartialMessage<ActorInfo>) {
3376
3764
  super()
3377
3765
  proto3.util.initPartial(data, this)
@@ -3392,6 +3780,12 @@ export class ActorInfo extends Message<ActorInfo> {
3392
3780
  },
3393
3781
  { no: 6, name: 'tombstoned_at', kind: 'message', T: Timestamp },
3394
3782
  { no: 7, name: 'labeler', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
3783
+ {
3784
+ no: 8,
3785
+ name: 'allow_incoming_chats_from',
3786
+ kind: 'scalar',
3787
+ T: 9 /* ScalarType.STRING */,
3788
+ },
3395
3789
  ])
3396
3790
 
3397
3791
  static fromBinary(
@@ -3899,6 +4293,83 @@ export class RelationshipPair extends Message<RelationshipPair> {
3899
4293
  }
3900
4294
  }
3901
4295
 
4296
+ /**
4297
+ * @generated from message bsky.BlockExistence
4298
+ */
4299
+ export class BlockExistence extends Message<BlockExistence> {
4300
+ /**
4301
+ * @generated from field: string blocked_by = 1;
4302
+ */
4303
+ blockedBy = ''
4304
+
4305
+ /**
4306
+ * @generated from field: string blocking = 2;
4307
+ */
4308
+ blocking = ''
4309
+
4310
+ /**
4311
+ * @generated from field: string blocked_by_list = 3;
4312
+ */
4313
+ blockedByList = ''
4314
+
4315
+ /**
4316
+ * @generated from field: string blocking_by_list = 4;
4317
+ */
4318
+ blockingByList = ''
4319
+
4320
+ constructor(data?: PartialMessage<BlockExistence>) {
4321
+ super()
4322
+ proto3.util.initPartial(data, this)
4323
+ }
4324
+
4325
+ static readonly runtime: typeof proto3 = proto3
4326
+ static readonly typeName = 'bsky.BlockExistence'
4327
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
4328
+ { no: 1, name: 'blocked_by', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
4329
+ { no: 2, name: 'blocking', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
4330
+ {
4331
+ no: 3,
4332
+ name: 'blocked_by_list',
4333
+ kind: 'scalar',
4334
+ T: 9 /* ScalarType.STRING */,
4335
+ },
4336
+ {
4337
+ no: 4,
4338
+ name: 'blocking_by_list',
4339
+ kind: 'scalar',
4340
+ T: 9 /* ScalarType.STRING */,
4341
+ },
4342
+ ])
4343
+
4344
+ static fromBinary(
4345
+ bytes: Uint8Array,
4346
+ options?: Partial<BinaryReadOptions>,
4347
+ ): BlockExistence {
4348
+ return new BlockExistence().fromBinary(bytes, options)
4349
+ }
4350
+
4351
+ static fromJson(
4352
+ jsonValue: JsonValue,
4353
+ options?: Partial<JsonReadOptions>,
4354
+ ): BlockExistence {
4355
+ return new BlockExistence().fromJson(jsonValue, options)
4356
+ }
4357
+
4358
+ static fromJsonString(
4359
+ jsonString: string,
4360
+ options?: Partial<JsonReadOptions>,
4361
+ ): BlockExistence {
4362
+ return new BlockExistence().fromJsonString(jsonString, options)
4363
+ }
4364
+
4365
+ static equals(
4366
+ a: BlockExistence | PlainMessage<BlockExistence> | undefined,
4367
+ b: BlockExistence | PlainMessage<BlockExistence> | undefined,
4368
+ ): boolean {
4369
+ return proto3.util.equals(BlockExistence, a, b)
4370
+ }
4371
+ }
4372
+
3902
4373
  /**
3903
4374
  * @generated from message bsky.GetBlockExistenceRequest
3904
4375
  */
@@ -3969,6 +4440,11 @@ export class GetBlockExistenceResponse extends Message<GetBlockExistenceResponse
3969
4440
  */
3970
4441
  exists: boolean[] = []
3971
4442
 
4443
+ /**
4444
+ * @generated from field: repeated bsky.BlockExistence blocks = 2;
4445
+ */
4446
+ blocks: BlockExistence[] = []
4447
+
3972
4448
  constructor(data?: PartialMessage<GetBlockExistenceResponse>) {
3973
4449
  super()
3974
4450
  proto3.util.initPartial(data, this)
@@ -3984,6 +4460,13 @@ export class GetBlockExistenceResponse extends Message<GetBlockExistenceResponse
3984
4460
  T: 8 /* ScalarType.BOOL */,
3985
4461
  repeated: true,
3986
4462
  },
4463
+ {
4464
+ no: 2,
4465
+ name: 'blocks',
4466
+ kind: 'message',
4467
+ T: BlockExistence,
4468
+ repeated: true,
4469
+ },
3987
4470
  ])
3988
4471
 
3989
4472
  static fromBinary(
@@ -9314,6 +9797,130 @@ export class GetRecordTakedownResponse extends Message<GetRecordTakedownResponse
9314
9797
  }
9315
9798
  }
9316
9799
 
9800
+ /**
9801
+ * GetFollowsFollowing gets the list of DIDs that the actor follows that also follow the target
9802
+ *
9803
+ * @generated from message bsky.GetFollowsFollowingRequest
9804
+ */
9805
+ export class GetFollowsFollowingRequest extends Message<GetFollowsFollowingRequest> {
9806
+ /**
9807
+ * @generated from field: string actor_did = 1;
9808
+ */
9809
+ actorDid = ''
9810
+
9811
+ /**
9812
+ * @generated from field: string target_did = 2;
9813
+ */
9814
+ targetDid = ''
9815
+
9816
+ constructor(data?: PartialMessage<GetFollowsFollowingRequest>) {
9817
+ super()
9818
+ proto3.util.initPartial(data, this)
9819
+ }
9820
+
9821
+ static readonly runtime: typeof proto3 = proto3
9822
+ static readonly typeName = 'bsky.GetFollowsFollowingRequest'
9823
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
9824
+ { no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
9825
+ { no: 2, name: 'target_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
9826
+ ])
9827
+
9828
+ static fromBinary(
9829
+ bytes: Uint8Array,
9830
+ options?: Partial<BinaryReadOptions>,
9831
+ ): GetFollowsFollowingRequest {
9832
+ return new GetFollowsFollowingRequest().fromBinary(bytes, options)
9833
+ }
9834
+
9835
+ static fromJson(
9836
+ jsonValue: JsonValue,
9837
+ options?: Partial<JsonReadOptions>,
9838
+ ): GetFollowsFollowingRequest {
9839
+ return new GetFollowsFollowingRequest().fromJson(jsonValue, options)
9840
+ }
9841
+
9842
+ static fromJsonString(
9843
+ jsonString: string,
9844
+ options?: Partial<JsonReadOptions>,
9845
+ ): GetFollowsFollowingRequest {
9846
+ return new GetFollowsFollowingRequest().fromJsonString(jsonString, options)
9847
+ }
9848
+
9849
+ static equals(
9850
+ a:
9851
+ | GetFollowsFollowingRequest
9852
+ | PlainMessage<GetFollowsFollowingRequest>
9853
+ | undefined,
9854
+ b:
9855
+ | GetFollowsFollowingRequest
9856
+ | PlainMessage<GetFollowsFollowingRequest>
9857
+ | undefined,
9858
+ ): boolean {
9859
+ return proto3.util.equals(GetFollowsFollowingRequest, a, b)
9860
+ }
9861
+ }
9862
+
9863
+ /**
9864
+ * @generated from message bsky.GetFollowsFollowingResponse
9865
+ */
9866
+ export class GetFollowsFollowingResponse extends Message<GetFollowsFollowingResponse> {
9867
+ /**
9868
+ * @generated from field: repeated string dids = 1;
9869
+ */
9870
+ dids: string[] = []
9871
+
9872
+ constructor(data?: PartialMessage<GetFollowsFollowingResponse>) {
9873
+ super()
9874
+ proto3.util.initPartial(data, this)
9875
+ }
9876
+
9877
+ static readonly runtime: typeof proto3 = proto3
9878
+ static readonly typeName = 'bsky.GetFollowsFollowingResponse'
9879
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
9880
+ {
9881
+ no: 1,
9882
+ name: 'dids',
9883
+ kind: 'scalar',
9884
+ T: 9 /* ScalarType.STRING */,
9885
+ repeated: true,
9886
+ },
9887
+ ])
9888
+
9889
+ static fromBinary(
9890
+ bytes: Uint8Array,
9891
+ options?: Partial<BinaryReadOptions>,
9892
+ ): GetFollowsFollowingResponse {
9893
+ return new GetFollowsFollowingResponse().fromBinary(bytes, options)
9894
+ }
9895
+
9896
+ static fromJson(
9897
+ jsonValue: JsonValue,
9898
+ options?: Partial<JsonReadOptions>,
9899
+ ): GetFollowsFollowingResponse {
9900
+ return new GetFollowsFollowingResponse().fromJson(jsonValue, options)
9901
+ }
9902
+
9903
+ static fromJsonString(
9904
+ jsonString: string,
9905
+ options?: Partial<JsonReadOptions>,
9906
+ ): GetFollowsFollowingResponse {
9907
+ return new GetFollowsFollowingResponse().fromJsonString(jsonString, options)
9908
+ }
9909
+
9910
+ static equals(
9911
+ a:
9912
+ | GetFollowsFollowingResponse
9913
+ | PlainMessage<GetFollowsFollowingResponse>
9914
+ | undefined,
9915
+ b:
9916
+ | GetFollowsFollowingResponse
9917
+ | PlainMessage<GetFollowsFollowingResponse>
9918
+ | undefined,
9919
+ ): boolean {
9920
+ return proto3.util.equals(GetFollowsFollowingResponse, a, b)
9921
+ }
9922
+ }
9923
+
9317
9924
  /**
9318
9925
  * Ping
9319
9926
  *
@@ -110,7 +110,11 @@ export class Views {
110
110
  associated: {
111
111
  lists: profileAggs?.lists,
112
112
  feedgens: profileAggs?.feeds,
113
- labeler: actor?.isLabeler,
113
+ labeler: actor.isLabeler,
114
+ // @TODO apply default chat policy?
115
+ chat: actor.allowIncomingChatsFrom
116
+ ? { allowIncoming: actor.allowIncomingChatsFrom }
117
+ : undefined,
114
118
  },
115
119
  }
116
120
  }
@@ -160,7 +164,16 @@ export class Views {
160
164
  : undefined,
161
165
  // associated.feedgens and associated.lists info not necessarily included
162
166
  // on profile and profile-basic views, but should be on profile-detailed.
163
- associated: actor?.isLabeler ? { labeler: true } : undefined,
167
+ associated:
168
+ actor.isLabeler || actor.allowIncomingChatsFrom
169
+ ? {
170
+ labeler: actor.isLabeler ? true : undefined,
171
+ // @TODO apply default chat policy?
172
+ chat: actor.allowIncomingChatsFrom
173
+ ? { allowIncoming: actor.allowIncomingChatsFrom }
174
+ : undefined,
175
+ }
176
+ : undefined,
164
177
  viewer: this.profileViewer(did, state),
165
178
  labels,
166
179
  }
@@ -685,6 +685,11 @@ Array [
685
685
  "feedContext": "item-5",
686
686
  "post": Object {
687
687
  "author": Object {
688
+ "associated": Object {
689
+ "chat": Object {
690
+ "allowIncoming": "none",
691
+ },
692
+ },
688
693
  "did": "user(6)",
689
694
  "handle": "dan.test",
690
695
  "labels": Array [],