@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.
- package/CHANGELOG.md +7 -0
- package/dist/api/app/bsky/feed/getLikes.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getLikes.js +10 -1
- package/dist/api/app/bsky/feed/getLikes.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/chat-declaration.d.ts +7 -0
- package/dist/data-plane/server/indexing/plugins/chat-declaration.d.ts.map +1 -0
- package/dist/data-plane/server/indexing/plugins/chat-declaration.js +68 -0
- package/dist/data-plane/server/indexing/plugins/chat-declaration.js.map +1 -0
- package/dist/data-plane/server/routes/follows.d.ts.map +1 -1
- package/dist/data-plane/server/routes/follows.js +3 -0
- package/dist/data-plane/server/routes/follows.js.map +1 -1
- package/dist/data-plane/server/routes/labels.d.ts.map +1 -1
- package/dist/data-plane/server/routes/labels.js +3 -0
- package/dist/data-plane/server/routes/labels.js.map +1 -1
- package/dist/data-plane/server/routes/likes.d.ts.map +1 -1
- package/dist/data-plane/server/routes/likes.js +11 -2
- package/dist/data-plane/server/routes/likes.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/hydration/actor.d.ts +6 -1
- package/dist/hydration/actor.d.ts.map +1 -1
- package/dist/hydration/actor.js +10 -0
- package/dist/hydration/actor.js.map +1 -1
- package/dist/hydration/hydrator.d.ts.map +1 -1
- package/dist/hydration/hydrator.js +5 -0
- package/dist/hydration/hydrator.js.map +1 -1
- package/dist/lexicon/index.d.ts +59 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +164 -1
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +907 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +932 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +7 -0
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +11 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts +11 -0
- package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/declaration.js +17 -0
- package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.d.ts +21 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.js +16 -0
- package/dist/lexicon/types/chat/bsky/actor/defs.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/deleteAccount.d.ts +33 -0
- package/dist/lexicon/types/chat/bsky/actor/deleteAccount.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/deleteAccount.js +3 -0
- package/dist/lexicon/types/chat/bsky/actor/deleteAccount.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts +32 -0
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.js +3 -0
- package/dist/lexicon/types/chat/bsky/actor/exportAccountData.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +109 -0
- package/dist/lexicon/types/chat/bsky/convo/defs.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/defs.js +106 -0
- package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts +39 -0
- package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/deleteMessageForSelf.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts +36 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvo.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvo.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvo.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts +36 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/getConvoForMembers.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts +40 -0
- package/dist/lexicon/types/chat/bsky/convo/getLog.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getLog.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/getLog.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts +42 -0
- package/dist/lexicon/types/chat/bsky/convo/getMessages.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/getMessages.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/getMessages.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts +41 -0
- package/dist/lexicon/types/chat/bsky/convo/leaveConvo.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/leaveConvo.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts +38 -0
- package/dist/lexicon/types/chat/bsky/convo/listConvos.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/listConvos.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/listConvos.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts +41 -0
- package/dist/lexicon/types/chat/bsky/convo/muteConvo.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/muteConvo.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/muteConvo.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts +39 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessage.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts +49 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js +16 -0
- package/dist/lexicon/types/chat/bsky/convo/sendMessageBatch.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts +41 -0
- package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/unmuteConvo.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts +42 -0
- package/dist/lexicon/types/chat/bsky/convo/updateRead.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/convo/updateRead.js +3 -0
- package/dist/lexicon/types/chat/bsky/convo/updateRead.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.d.ts +47 -0
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js +16 -0
- package/dist/lexicon/types/chat/bsky/moderation/getActorMetadata.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts +41 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js +3 -0
- package/dist/lexicon/types/chat/bsky/moderation/getMessageContext.js.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.d.ts +31 -0
- package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.d.ts.map +1 -0
- package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.js +3 -0
- package/dist/lexicon/types/chat/bsky/moderation/updateActorAccess.js.map +1 -0
- package/dist/proto/bsky_connect.d.ts +39 -1
- package/dist/proto/bsky_connect.d.ts.map +1 -1
- package/dist/proto/bsky_connect.js +38 -0
- package/dist/proto/bsky_connect.js.map +1 -1
- package/dist/proto/bsky_pb.d.ts +191 -0
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +599 -4
- package/dist/proto/bsky_pb.js.map +1 -1
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +14 -2
- package/dist/views/index.js.map +1 -1
- package/package.json +5 -5
- package/proto/bsky.proto +56 -0
- package/src/api/app/bsky/feed/getLikes.ts +13 -1
- package/src/data-plane/server/indexing/index.ts +3 -0
- package/src/data-plane/server/indexing/plugins/chat-declaration.ts +63 -0
- package/src/data-plane/server/routes/follows.ts +3 -0
- package/src/data-plane/server/routes/labels.ts +4 -0
- package/src/data-plane/server/routes/likes.ts +9 -2
- package/src/data-plane/server/routes/profile.ts +13 -1
- package/src/data-plane/server/routes/records.ts +1 -0
- package/src/hydration/actor.ts +24 -0
- package/src/hydration/hydrator.ts +7 -0
- package/src/lexicon/index.ts +254 -0
- package/src/lexicon/lexicons.ts +933 -0
- package/src/lexicon/types/app/bsky/actor/defs.ts +20 -0
- package/src/lexicon/types/chat/bsky/actor/declaration.ts +25 -0
- package/src/lexicon/types/chat/bsky/actor/defs.ts +34 -0
- package/src/lexicon/types/chat/bsky/actor/deleteAccount.ts +42 -0
- package/src/lexicon/types/chat/bsky/actor/exportAccountData.ts +38 -0
- package/src/lexicon/types/chat/bsky/convo/defs.ts +215 -0
- package/src/lexicon/types/chat/bsky/convo/deleteMessageForSelf.ts +48 -0
- package/src/lexicon/types/chat/bsky/convo/getConvo.ts +46 -0
- package/src/lexicon/types/chat/bsky/convo/getConvoForMembers.ts +46 -0
- package/src/lexicon/types/chat/bsky/convo/getLog.ts +53 -0
- package/src/lexicon/types/chat/bsky/convo/getMessages.ts +53 -0
- package/src/lexicon/types/chat/bsky/convo/leaveConvo.ts +50 -0
- package/src/lexicon/types/chat/bsky/convo/listConvos.ts +48 -0
- package/src/lexicon/types/chat/bsky/convo/muteConvo.ts +50 -0
- package/src/lexicon/types/chat/bsky/convo/sendMessage.ts +48 -0
- package/src/lexicon/types/chat/bsky/convo/sendMessageBatch.ts +68 -0
- package/src/lexicon/types/chat/bsky/convo/unmuteConvo.ts +50 -0
- package/src/lexicon/types/chat/bsky/convo/updateRead.ts +51 -0
- package/src/lexicon/types/chat/bsky/moderation/getActorMetadata.ts +67 -0
- package/src/lexicon/types/chat/bsky/moderation/getMessageContext.ts +52 -0
- package/src/lexicon/types/chat/bsky/moderation/updateActorAccess.ts +40 -0
- package/src/proto/bsky_connect.ts +46 -0
- package/src/proto/bsky_pb.ts +607 -0
- package/src/views/index.ts +15 -2
- package/tests/__snapshots__/feed-generation.test.ts.snap +5 -0
- package/tests/data-plane/__snapshots__/indexing.test.ts.snap +19 -0
- package/tests/views/__snapshots__/author-feed.test.ts.snap +35 -0
- package/tests/views/__snapshots__/block-lists.test.ts.snap +10 -0
- package/tests/views/__snapshots__/blocks.test.ts.snap +5 -0
- package/tests/views/__snapshots__/likes.test.ts.snap +5 -0
- package/tests/views/__snapshots__/list-feed.test.ts.snap +5 -0
- package/tests/views/__snapshots__/mute-lists.test.ts.snap +5 -0
- package/tests/views/__snapshots__/notifications.test.ts.snap +35 -0
- package/tests/views/__snapshots__/posts.test.ts.snap +5 -0
- package/tests/views/__snapshots__/profile.test.ts.snap +6 -0
- package/tests/views/__snapshots__/reposts.test.ts.snap +10 -0
- package/tests/views/__snapshots__/timeline.test.ts.snap +110 -0
package/src/proto/bsky_pb.ts
CHANGED
|
@@ -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
|
*
|
package/src/views/index.ts
CHANGED
|
@@ -110,7 +110,11 @@ export class Views {
|
|
|
110
110
|
associated: {
|
|
111
111
|
lists: profileAggs?.lists,
|
|
112
112
|
feedgens: profileAggs?.feeds,
|
|
113
|
-
labeler: actor
|
|
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:
|
|
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
|
}
|