@atproto/bsky 0.0.166 → 0.0.167
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/notification/listActivitySubscriptions.d.ts +4 -0
- package/dist/api/app/bsky/notification/listActivitySubscriptions.d.ts.map +1 -0
- package/dist/api/app/bsky/notification/listActivitySubscriptions.js +63 -0
- package/dist/api/app/bsky/notification/listActivitySubscriptions.js.map +1 -0
- package/dist/api/app/bsky/notification/putActivitySubscription.d.ts +4 -0
- package/dist/api/app/bsky/notification/putActivitySubscription.d.ts.map +1 -0
- package/dist/api/app/bsky/notification/putActivitySubscription.js +63 -0
- package/dist/api/app/bsky/notification/putActivitySubscription.js.map +1 -0
- package/dist/api/app/bsky/notification/putPreferencesV2.d.ts.map +1 -1
- package/dist/api/app/bsky/notification/putPreferencesV2.js +2 -1
- package/dist/api/app/bsky/notification/putPreferencesV2.js.map +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +4 -0
- package/dist/api/index.js.map +1 -1
- package/dist/data-plane/bsync/index.d.ts.map +1 -1
- package/dist/data-plane/bsync/index.js +52 -38
- package/dist/data-plane/bsync/index.js.map +1 -1
- package/dist/data-plane/server/db/database-schema.d.ts +2 -1
- package/dist/data-plane/server/db/database-schema.d.ts.map +1 -1
- package/dist/data-plane/server/db/migrations/20250611T140649895Z-add-activity-subscription.d.ts +4 -0
- package/dist/data-plane/server/db/migrations/20250611T140649895Z-add-activity-subscription.d.ts.map +1 -0
- package/dist/data-plane/server/db/migrations/20250611T140649895Z-add-activity-subscription.js +24 -0
- package/dist/data-plane/server/db/migrations/20250611T140649895Z-add-activity-subscription.js.map +1 -0
- package/dist/data-plane/server/db/migrations/index.d.ts +1 -0
- package/dist/data-plane/server/db/migrations/index.d.ts.map +1 -1
- package/dist/data-plane/server/db/migrations/index.js +2 -1
- package/dist/data-plane/server/db/migrations/index.js.map +1 -1
- package/dist/data-plane/server/db/pagination.d.ts +22 -0
- package/dist/data-plane/server/db/pagination.d.ts.map +1 -1
- package/dist/data-plane/server/db/pagination.js +30 -1
- package/dist/data-plane/server/db/pagination.js.map +1 -1
- package/dist/data-plane/server/db/tables/activity-subscription.d.ts +13 -0
- package/dist/data-plane/server/db/tables/activity-subscription.d.ts.map +1 -0
- package/dist/data-plane/server/db/tables/activity-subscription.js +5 -0
- package/dist/data-plane/server/db/tables/activity-subscription.js.map +1 -0
- 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/notif-declaration.d.ts +7 -0
- package/dist/data-plane/server/indexing/plugins/notif-declaration.d.ts.map +1 -0
- package/dist/data-plane/server/indexing/plugins/notif-declaration.js +72 -0
- package/dist/data-plane/server/indexing/plugins/notif-declaration.js.map +1 -0
- package/dist/data-plane/server/routes/activity-subscription.d.ts +6 -0
- package/dist/data-plane/server/routes/activity-subscription.d.ts.map +1 -0
- package/dist/data-plane/server/routes/activity-subscription.js +67 -0
- package/dist/data-plane/server/routes/activity-subscription.js.map +1 -0
- package/dist/data-plane/server/routes/index.js +2 -2
- package/dist/data-plane/server/routes/index.js.map +1 -1
- package/dist/data-plane/server/routes/notifs.d.ts +3 -0
- package/dist/data-plane/server/routes/notifs.d.ts.map +1 -1
- package/dist/data-plane/server/routes/notifs.js +64 -0
- package/dist/data-plane/server/routes/notifs.js.map +1 -1
- package/dist/data-plane/server/routes/profile.d.ts.map +1 -1
- package/dist/data-plane/server/routes/profile.js +20 -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/data-plane/server/util.d.ts +6 -6
- package/dist/hydration/actor.d.ts +20 -6
- package/dist/hydration/actor.d.ts.map +1 -1
- package/dist/hydration/actor.js +44 -1
- package/dist/hydration/actor.js.map +1 -1
- package/dist/hydration/hydrator.d.ts +4 -3
- package/dist/hydration/hydrator.d.ts.map +1 -1
- package/dist/hydration/hydrator.js +16 -2
- package/dist/hydration/hydrator.js.map +1 -1
- package/dist/hydration/util.d.ts +4 -0
- package/dist/hydration/util.d.ts.map +1 -1
- package/dist/hydration/util.js +3 -1
- package/dist/hydration/util.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +4 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +2 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/proto/bsky_connect.d.ts +28 -1
- package/dist/proto/bsky_connect.d.ts.map +1 -1
- package/dist/proto/bsky_connect.js +27 -0
- package/dist/proto/bsky_connect.js.map +1 -1
- package/dist/proto/bsky_pb.d.ts +189 -0
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +598 -5
- package/dist/proto/bsky_pb.js.map +1 -1
- package/dist/stash.d.ts +1 -0
- package/dist/stash.d.ts.map +1 -1
- package/dist/stash.js +1 -0
- package/dist/stash.js.map +1 -1
- package/dist/views/index.d.ts +5 -3
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +29 -9
- package/dist/views/index.js.map +1 -1
- package/package.json +4 -4
- package/proto/bsky.proto +45 -0
- package/src/api/app/bsky/notification/listActivitySubscriptions.ts +110 -0
- package/src/api/app/bsky/notification/putActivitySubscription.ts +69 -0
- package/src/api/app/bsky/notification/putPreferencesV2.ts +2 -1
- package/src/api/index.ts +4 -0
- package/src/data-plane/bsync/index.ts +75 -44
- package/src/data-plane/server/db/database-schema.ts +3 -1
- package/src/data-plane/server/db/migrations/20250611T140649895Z-add-activity-subscription.ts +22 -0
- package/src/data-plane/server/db/migrations/index.ts +1 -0
- package/src/data-plane/server/db/pagination.ts +37 -0
- package/src/data-plane/server/db/tables/activity-subscription.ts +12 -0
- package/src/data-plane/server/indexing/index.ts +3 -0
- package/src/data-plane/server/indexing/plugins/notif-declaration.ts +59 -0
- package/src/data-plane/server/routes/activity-subscription.ts +83 -0
- package/src/data-plane/server/routes/index.ts +2 -2
- package/src/data-plane/server/routes/notifs.ts +95 -0
- package/src/data-plane/server/routes/profile.ts +33 -1
- package/src/data-plane/server/routes/records.ts +4 -0
- package/src/hydration/actor.ts +97 -10
- package/src/hydration/hydrator.ts +32 -6
- package/src/hydration/util.ts +8 -0
- package/src/lexicon/lexicons.ts +4 -0
- package/src/proto/bsky_connect.ts +33 -0
- package/src/proto/bsky_pb.ts +648 -0
- package/src/stash.ts +6 -1
- package/src/views/index.ts +48 -11
- package/tests/__snapshots__/feed-generation.test.ts.snap +213 -0
- package/tests/data-plane/__snapshots__/indexing.test.ts.snap +88 -0
- package/tests/views/__snapshots__/author-feed.test.ts.snap +498 -0
- package/tests/views/__snapshots__/block-lists.test.ts.snap +56 -0
- package/tests/views/__snapshots__/blocks.test.ts.snap +28 -0
- package/tests/views/__snapshots__/follows.test.ts.snap +170 -0
- package/tests/views/__snapshots__/labeler-service.test.ts.snap +15 -0
- package/tests/views/__snapshots__/likes.test.ts.snap +23 -0
- package/tests/views/__snapshots__/list-feed.test.ts.snap +68 -0
- package/tests/views/__snapshots__/lists.test.ts.snap +120 -0
- package/tests/views/__snapshots__/mute-lists.test.ts.snap +63 -0
- package/tests/views/__snapshots__/mutes.test.ts.snap +55 -0
- package/tests/views/__snapshots__/notifications.test.ts.snap +299 -0
- package/tests/views/__snapshots__/posts.test.ts.snap +58 -0
- package/tests/views/__snapshots__/profile.test.ts.snap +74 -0
- package/tests/views/__snapshots__/quotes.test.ts.snap +35 -0
- package/tests/views/__snapshots__/reposts.test.ts.snap +26 -0
- package/tests/views/__snapshots__/starter-packs.test.ts.snap +113 -0
- package/tests/views/__snapshots__/thread-v2.test.ts.snap +115 -0
- package/tests/views/__snapshots__/thread.test.ts.snap +145 -0
- package/tests/views/__snapshots__/timeline.test.ts.snap +566 -0
- package/tests/views/notifications.test.ts +355 -19
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/data-plane/server/routes/private-data.d.ts +0 -9
- package/dist/data-plane/server/routes/private-data.d.ts.map +0 -1
- package/dist/data-plane/server/routes/private-data.js +0 -65
- package/dist/data-plane/server/routes/private-data.js.map +0 -1
- package/src/data-plane/server/routes/private-data.ts +0 -95
package/src/proto/bsky_pb.ts
CHANGED
|
@@ -1486,6 +1486,142 @@ export class GetActorChatDeclarationRecordsResponse extends Message<GetActorChat
|
|
|
1486
1486
|
}
|
|
1487
1487
|
}
|
|
1488
1488
|
|
|
1489
|
+
/**
|
|
1490
|
+
* @generated from message bsky.GetNotificationDeclarationRecordsRequest
|
|
1491
|
+
*/
|
|
1492
|
+
export class GetNotificationDeclarationRecordsRequest extends Message<GetNotificationDeclarationRecordsRequest> {
|
|
1493
|
+
/**
|
|
1494
|
+
* @generated from field: repeated string uris = 1;
|
|
1495
|
+
*/
|
|
1496
|
+
uris: string[] = []
|
|
1497
|
+
|
|
1498
|
+
constructor(data?: PartialMessage<GetNotificationDeclarationRecordsRequest>) {
|
|
1499
|
+
super()
|
|
1500
|
+
proto3.util.initPartial(data, this)
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
static readonly runtime: typeof proto3 = proto3
|
|
1504
|
+
static readonly typeName = 'bsky.GetNotificationDeclarationRecordsRequest'
|
|
1505
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1506
|
+
{
|
|
1507
|
+
no: 1,
|
|
1508
|
+
name: 'uris',
|
|
1509
|
+
kind: 'scalar',
|
|
1510
|
+
T: 9 /* ScalarType.STRING */,
|
|
1511
|
+
repeated: true,
|
|
1512
|
+
},
|
|
1513
|
+
])
|
|
1514
|
+
|
|
1515
|
+
static fromBinary(
|
|
1516
|
+
bytes: Uint8Array,
|
|
1517
|
+
options?: Partial<BinaryReadOptions>,
|
|
1518
|
+
): GetNotificationDeclarationRecordsRequest {
|
|
1519
|
+
return new GetNotificationDeclarationRecordsRequest().fromBinary(
|
|
1520
|
+
bytes,
|
|
1521
|
+
options,
|
|
1522
|
+
)
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
static fromJson(
|
|
1526
|
+
jsonValue: JsonValue,
|
|
1527
|
+
options?: Partial<JsonReadOptions>,
|
|
1528
|
+
): GetNotificationDeclarationRecordsRequest {
|
|
1529
|
+
return new GetNotificationDeclarationRecordsRequest().fromJson(
|
|
1530
|
+
jsonValue,
|
|
1531
|
+
options,
|
|
1532
|
+
)
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
static fromJsonString(
|
|
1536
|
+
jsonString: string,
|
|
1537
|
+
options?: Partial<JsonReadOptions>,
|
|
1538
|
+
): GetNotificationDeclarationRecordsRequest {
|
|
1539
|
+
return new GetNotificationDeclarationRecordsRequest().fromJsonString(
|
|
1540
|
+
jsonString,
|
|
1541
|
+
options,
|
|
1542
|
+
)
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
static equals(
|
|
1546
|
+
a:
|
|
1547
|
+
| GetNotificationDeclarationRecordsRequest
|
|
1548
|
+
| PlainMessage<GetNotificationDeclarationRecordsRequest>
|
|
1549
|
+
| undefined,
|
|
1550
|
+
b:
|
|
1551
|
+
| GetNotificationDeclarationRecordsRequest
|
|
1552
|
+
| PlainMessage<GetNotificationDeclarationRecordsRequest>
|
|
1553
|
+
| undefined,
|
|
1554
|
+
): boolean {
|
|
1555
|
+
return proto3.util.equals(GetNotificationDeclarationRecordsRequest, a, b)
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
/**
|
|
1560
|
+
* @generated from message bsky.GetNotificationDeclarationRecordsResponse
|
|
1561
|
+
*/
|
|
1562
|
+
export class GetNotificationDeclarationRecordsResponse extends Message<GetNotificationDeclarationRecordsResponse> {
|
|
1563
|
+
/**
|
|
1564
|
+
* @generated from field: repeated bsky.Record records = 1;
|
|
1565
|
+
*/
|
|
1566
|
+
records: Record[] = []
|
|
1567
|
+
|
|
1568
|
+
constructor(
|
|
1569
|
+
data?: PartialMessage<GetNotificationDeclarationRecordsResponse>,
|
|
1570
|
+
) {
|
|
1571
|
+
super()
|
|
1572
|
+
proto3.util.initPartial(data, this)
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
static readonly runtime: typeof proto3 = proto3
|
|
1576
|
+
static readonly typeName = 'bsky.GetNotificationDeclarationRecordsResponse'
|
|
1577
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
1578
|
+
{ no: 1, name: 'records', kind: 'message', T: Record, repeated: true },
|
|
1579
|
+
])
|
|
1580
|
+
|
|
1581
|
+
static fromBinary(
|
|
1582
|
+
bytes: Uint8Array,
|
|
1583
|
+
options?: Partial<BinaryReadOptions>,
|
|
1584
|
+
): GetNotificationDeclarationRecordsResponse {
|
|
1585
|
+
return new GetNotificationDeclarationRecordsResponse().fromBinary(
|
|
1586
|
+
bytes,
|
|
1587
|
+
options,
|
|
1588
|
+
)
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
static fromJson(
|
|
1592
|
+
jsonValue: JsonValue,
|
|
1593
|
+
options?: Partial<JsonReadOptions>,
|
|
1594
|
+
): GetNotificationDeclarationRecordsResponse {
|
|
1595
|
+
return new GetNotificationDeclarationRecordsResponse().fromJson(
|
|
1596
|
+
jsonValue,
|
|
1597
|
+
options,
|
|
1598
|
+
)
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
static fromJsonString(
|
|
1602
|
+
jsonString: string,
|
|
1603
|
+
options?: Partial<JsonReadOptions>,
|
|
1604
|
+
): GetNotificationDeclarationRecordsResponse {
|
|
1605
|
+
return new GetNotificationDeclarationRecordsResponse().fromJsonString(
|
|
1606
|
+
jsonString,
|
|
1607
|
+
options,
|
|
1608
|
+
)
|
|
1609
|
+
}
|
|
1610
|
+
|
|
1611
|
+
static equals(
|
|
1612
|
+
a:
|
|
1613
|
+
| GetNotificationDeclarationRecordsResponse
|
|
1614
|
+
| PlainMessage<GetNotificationDeclarationRecordsResponse>
|
|
1615
|
+
| undefined,
|
|
1616
|
+
b:
|
|
1617
|
+
| GetNotificationDeclarationRecordsResponse
|
|
1618
|
+
| PlainMessage<GetNotificationDeclarationRecordsResponse>
|
|
1619
|
+
| undefined,
|
|
1620
|
+
): boolean {
|
|
1621
|
+
return proto3.util.equals(GetNotificationDeclarationRecordsResponse, a, b)
|
|
1622
|
+
}
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1489
1625
|
/**
|
|
1490
1626
|
* @generated from message bsky.GetStatusRecordsRequest
|
|
1491
1627
|
*/
|
|
@@ -5468,6 +5604,11 @@ export class ActorInfo extends Message<ActorInfo> {
|
|
|
5468
5604
|
*/
|
|
5469
5605
|
statusRecord?: Record
|
|
5470
5606
|
|
|
5607
|
+
/**
|
|
5608
|
+
* @generated from field: string allow_activity_subscriptions_from = 18;
|
|
5609
|
+
*/
|
|
5610
|
+
allowActivitySubscriptionsFrom = ''
|
|
5611
|
+
|
|
5471
5612
|
constructor(data?: PartialMessage<ActorInfo>) {
|
|
5472
5613
|
super()
|
|
5473
5614
|
proto3.util.initPartial(data, this)
|
|
@@ -5536,6 +5677,12 @@ export class ActorInfo extends Message<ActorInfo> {
|
|
|
5536
5677
|
repeated: true,
|
|
5537
5678
|
},
|
|
5538
5679
|
{ no: 17, name: 'status_record', kind: 'message', T: Record },
|
|
5680
|
+
{
|
|
5681
|
+
no: 18,
|
|
5682
|
+
name: 'allow_activity_subscriptions_from',
|
|
5683
|
+
kind: 'scalar',
|
|
5684
|
+
T: 9 /* ScalarType.STRING */,
|
|
5685
|
+
},
|
|
5539
5686
|
])
|
|
5540
5687
|
|
|
5541
5688
|
static fromBinary(
|
|
@@ -9460,6 +9607,507 @@ export class GetUnreadNotificationCountResponse extends Message<GetUnreadNotific
|
|
|
9460
9607
|
}
|
|
9461
9608
|
}
|
|
9462
9609
|
|
|
9610
|
+
/**
|
|
9611
|
+
* @generated from message bsky.GetActivitySubscriptionDidsRequest
|
|
9612
|
+
*/
|
|
9613
|
+
export class GetActivitySubscriptionDidsRequest extends Message<GetActivitySubscriptionDidsRequest> {
|
|
9614
|
+
/**
|
|
9615
|
+
* @generated from field: string actor_did = 1;
|
|
9616
|
+
*/
|
|
9617
|
+
actorDid = ''
|
|
9618
|
+
|
|
9619
|
+
/**
|
|
9620
|
+
* @generated from field: int32 limit = 2;
|
|
9621
|
+
*/
|
|
9622
|
+
limit = 0
|
|
9623
|
+
|
|
9624
|
+
/**
|
|
9625
|
+
* @generated from field: string cursor = 3;
|
|
9626
|
+
*/
|
|
9627
|
+
cursor = ''
|
|
9628
|
+
|
|
9629
|
+
constructor(data?: PartialMessage<GetActivitySubscriptionDidsRequest>) {
|
|
9630
|
+
super()
|
|
9631
|
+
proto3.util.initPartial(data, this)
|
|
9632
|
+
}
|
|
9633
|
+
|
|
9634
|
+
static readonly runtime: typeof proto3 = proto3
|
|
9635
|
+
static readonly typeName = 'bsky.GetActivitySubscriptionDidsRequest'
|
|
9636
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
9637
|
+
{ no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
9638
|
+
{ no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ },
|
|
9639
|
+
{ no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
9640
|
+
])
|
|
9641
|
+
|
|
9642
|
+
static fromBinary(
|
|
9643
|
+
bytes: Uint8Array,
|
|
9644
|
+
options?: Partial<BinaryReadOptions>,
|
|
9645
|
+
): GetActivitySubscriptionDidsRequest {
|
|
9646
|
+
return new GetActivitySubscriptionDidsRequest().fromBinary(bytes, options)
|
|
9647
|
+
}
|
|
9648
|
+
|
|
9649
|
+
static fromJson(
|
|
9650
|
+
jsonValue: JsonValue,
|
|
9651
|
+
options?: Partial<JsonReadOptions>,
|
|
9652
|
+
): GetActivitySubscriptionDidsRequest {
|
|
9653
|
+
return new GetActivitySubscriptionDidsRequest().fromJson(jsonValue, options)
|
|
9654
|
+
}
|
|
9655
|
+
|
|
9656
|
+
static fromJsonString(
|
|
9657
|
+
jsonString: string,
|
|
9658
|
+
options?: Partial<JsonReadOptions>,
|
|
9659
|
+
): GetActivitySubscriptionDidsRequest {
|
|
9660
|
+
return new GetActivitySubscriptionDidsRequest().fromJsonString(
|
|
9661
|
+
jsonString,
|
|
9662
|
+
options,
|
|
9663
|
+
)
|
|
9664
|
+
}
|
|
9665
|
+
|
|
9666
|
+
static equals(
|
|
9667
|
+
a:
|
|
9668
|
+
| GetActivitySubscriptionDidsRequest
|
|
9669
|
+
| PlainMessage<GetActivitySubscriptionDidsRequest>
|
|
9670
|
+
| undefined,
|
|
9671
|
+
b:
|
|
9672
|
+
| GetActivitySubscriptionDidsRequest
|
|
9673
|
+
| PlainMessage<GetActivitySubscriptionDidsRequest>
|
|
9674
|
+
| undefined,
|
|
9675
|
+
): boolean {
|
|
9676
|
+
return proto3.util.equals(GetActivitySubscriptionDidsRequest, a, b)
|
|
9677
|
+
}
|
|
9678
|
+
}
|
|
9679
|
+
|
|
9680
|
+
/**
|
|
9681
|
+
* @generated from message bsky.GetActivitySubscriptionDidsResponse
|
|
9682
|
+
*/
|
|
9683
|
+
export class GetActivitySubscriptionDidsResponse extends Message<GetActivitySubscriptionDidsResponse> {
|
|
9684
|
+
/**
|
|
9685
|
+
* @generated from field: repeated string dids = 1;
|
|
9686
|
+
*/
|
|
9687
|
+
dids: string[] = []
|
|
9688
|
+
|
|
9689
|
+
/**
|
|
9690
|
+
* @generated from field: string cursor = 2;
|
|
9691
|
+
*/
|
|
9692
|
+
cursor = ''
|
|
9693
|
+
|
|
9694
|
+
constructor(data?: PartialMessage<GetActivitySubscriptionDidsResponse>) {
|
|
9695
|
+
super()
|
|
9696
|
+
proto3.util.initPartial(data, this)
|
|
9697
|
+
}
|
|
9698
|
+
|
|
9699
|
+
static readonly runtime: typeof proto3 = proto3
|
|
9700
|
+
static readonly typeName = 'bsky.GetActivitySubscriptionDidsResponse'
|
|
9701
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
9702
|
+
{
|
|
9703
|
+
no: 1,
|
|
9704
|
+
name: 'dids',
|
|
9705
|
+
kind: 'scalar',
|
|
9706
|
+
T: 9 /* ScalarType.STRING */,
|
|
9707
|
+
repeated: true,
|
|
9708
|
+
},
|
|
9709
|
+
{ no: 2, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
9710
|
+
])
|
|
9711
|
+
|
|
9712
|
+
static fromBinary(
|
|
9713
|
+
bytes: Uint8Array,
|
|
9714
|
+
options?: Partial<BinaryReadOptions>,
|
|
9715
|
+
): GetActivitySubscriptionDidsResponse {
|
|
9716
|
+
return new GetActivitySubscriptionDidsResponse().fromBinary(bytes, options)
|
|
9717
|
+
}
|
|
9718
|
+
|
|
9719
|
+
static fromJson(
|
|
9720
|
+
jsonValue: JsonValue,
|
|
9721
|
+
options?: Partial<JsonReadOptions>,
|
|
9722
|
+
): GetActivitySubscriptionDidsResponse {
|
|
9723
|
+
return new GetActivitySubscriptionDidsResponse().fromJson(
|
|
9724
|
+
jsonValue,
|
|
9725
|
+
options,
|
|
9726
|
+
)
|
|
9727
|
+
}
|
|
9728
|
+
|
|
9729
|
+
static fromJsonString(
|
|
9730
|
+
jsonString: string,
|
|
9731
|
+
options?: Partial<JsonReadOptions>,
|
|
9732
|
+
): GetActivitySubscriptionDidsResponse {
|
|
9733
|
+
return new GetActivitySubscriptionDidsResponse().fromJsonString(
|
|
9734
|
+
jsonString,
|
|
9735
|
+
options,
|
|
9736
|
+
)
|
|
9737
|
+
}
|
|
9738
|
+
|
|
9739
|
+
static equals(
|
|
9740
|
+
a:
|
|
9741
|
+
| GetActivitySubscriptionDidsResponse
|
|
9742
|
+
| PlainMessage<GetActivitySubscriptionDidsResponse>
|
|
9743
|
+
| undefined,
|
|
9744
|
+
b:
|
|
9745
|
+
| GetActivitySubscriptionDidsResponse
|
|
9746
|
+
| PlainMessage<GetActivitySubscriptionDidsResponse>
|
|
9747
|
+
| undefined,
|
|
9748
|
+
): boolean {
|
|
9749
|
+
return proto3.util.equals(GetActivitySubscriptionDidsResponse, a, b)
|
|
9750
|
+
}
|
|
9751
|
+
}
|
|
9752
|
+
|
|
9753
|
+
/**
|
|
9754
|
+
* @generated from message bsky.PostActivitySubscription
|
|
9755
|
+
*/
|
|
9756
|
+
export class PostActivitySubscription extends Message<PostActivitySubscription> {
|
|
9757
|
+
constructor(data?: PartialMessage<PostActivitySubscription>) {
|
|
9758
|
+
super()
|
|
9759
|
+
proto3.util.initPartial(data, this)
|
|
9760
|
+
}
|
|
9761
|
+
|
|
9762
|
+
static readonly runtime: typeof proto3 = proto3
|
|
9763
|
+
static readonly typeName = 'bsky.PostActivitySubscription'
|
|
9764
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [])
|
|
9765
|
+
|
|
9766
|
+
static fromBinary(
|
|
9767
|
+
bytes: Uint8Array,
|
|
9768
|
+
options?: Partial<BinaryReadOptions>,
|
|
9769
|
+
): PostActivitySubscription {
|
|
9770
|
+
return new PostActivitySubscription().fromBinary(bytes, options)
|
|
9771
|
+
}
|
|
9772
|
+
|
|
9773
|
+
static fromJson(
|
|
9774
|
+
jsonValue: JsonValue,
|
|
9775
|
+
options?: Partial<JsonReadOptions>,
|
|
9776
|
+
): PostActivitySubscription {
|
|
9777
|
+
return new PostActivitySubscription().fromJson(jsonValue, options)
|
|
9778
|
+
}
|
|
9779
|
+
|
|
9780
|
+
static fromJsonString(
|
|
9781
|
+
jsonString: string,
|
|
9782
|
+
options?: Partial<JsonReadOptions>,
|
|
9783
|
+
): PostActivitySubscription {
|
|
9784
|
+
return new PostActivitySubscription().fromJsonString(jsonString, options)
|
|
9785
|
+
}
|
|
9786
|
+
|
|
9787
|
+
static equals(
|
|
9788
|
+
a:
|
|
9789
|
+
| PostActivitySubscription
|
|
9790
|
+
| PlainMessage<PostActivitySubscription>
|
|
9791
|
+
| undefined,
|
|
9792
|
+
b:
|
|
9793
|
+
| PostActivitySubscription
|
|
9794
|
+
| PlainMessage<PostActivitySubscription>
|
|
9795
|
+
| undefined,
|
|
9796
|
+
): boolean {
|
|
9797
|
+
return proto3.util.equals(PostActivitySubscription, a, b)
|
|
9798
|
+
}
|
|
9799
|
+
}
|
|
9800
|
+
|
|
9801
|
+
/**
|
|
9802
|
+
* @generated from message bsky.ReplyActivitySubscription
|
|
9803
|
+
*/
|
|
9804
|
+
export class ReplyActivitySubscription extends Message<ReplyActivitySubscription> {
|
|
9805
|
+
constructor(data?: PartialMessage<ReplyActivitySubscription>) {
|
|
9806
|
+
super()
|
|
9807
|
+
proto3.util.initPartial(data, this)
|
|
9808
|
+
}
|
|
9809
|
+
|
|
9810
|
+
static readonly runtime: typeof proto3 = proto3
|
|
9811
|
+
static readonly typeName = 'bsky.ReplyActivitySubscription'
|
|
9812
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [])
|
|
9813
|
+
|
|
9814
|
+
static fromBinary(
|
|
9815
|
+
bytes: Uint8Array,
|
|
9816
|
+
options?: Partial<BinaryReadOptions>,
|
|
9817
|
+
): ReplyActivitySubscription {
|
|
9818
|
+
return new ReplyActivitySubscription().fromBinary(bytes, options)
|
|
9819
|
+
}
|
|
9820
|
+
|
|
9821
|
+
static fromJson(
|
|
9822
|
+
jsonValue: JsonValue,
|
|
9823
|
+
options?: Partial<JsonReadOptions>,
|
|
9824
|
+
): ReplyActivitySubscription {
|
|
9825
|
+
return new ReplyActivitySubscription().fromJson(jsonValue, options)
|
|
9826
|
+
}
|
|
9827
|
+
|
|
9828
|
+
static fromJsonString(
|
|
9829
|
+
jsonString: string,
|
|
9830
|
+
options?: Partial<JsonReadOptions>,
|
|
9831
|
+
): ReplyActivitySubscription {
|
|
9832
|
+
return new ReplyActivitySubscription().fromJsonString(jsonString, options)
|
|
9833
|
+
}
|
|
9834
|
+
|
|
9835
|
+
static equals(
|
|
9836
|
+
a:
|
|
9837
|
+
| ReplyActivitySubscription
|
|
9838
|
+
| PlainMessage<ReplyActivitySubscription>
|
|
9839
|
+
| undefined,
|
|
9840
|
+
b:
|
|
9841
|
+
| ReplyActivitySubscription
|
|
9842
|
+
| PlainMessage<ReplyActivitySubscription>
|
|
9843
|
+
| undefined,
|
|
9844
|
+
): boolean {
|
|
9845
|
+
return proto3.util.equals(ReplyActivitySubscription, a, b)
|
|
9846
|
+
}
|
|
9847
|
+
}
|
|
9848
|
+
|
|
9849
|
+
/**
|
|
9850
|
+
* @generated from message bsky.ActivitySubscription
|
|
9851
|
+
*/
|
|
9852
|
+
export class ActivitySubscription extends Message<ActivitySubscription> {
|
|
9853
|
+
/**
|
|
9854
|
+
* @generated from field: string actor_did = 1;
|
|
9855
|
+
*/
|
|
9856
|
+
actorDid = ''
|
|
9857
|
+
|
|
9858
|
+
/**
|
|
9859
|
+
* @generated from field: string namespace = 2;
|
|
9860
|
+
*/
|
|
9861
|
+
namespace = ''
|
|
9862
|
+
|
|
9863
|
+
/**
|
|
9864
|
+
* @generated from field: string key = 3;
|
|
9865
|
+
*/
|
|
9866
|
+
key = ''
|
|
9867
|
+
|
|
9868
|
+
/**
|
|
9869
|
+
* @generated from field: optional bsky.PostActivitySubscription post = 4;
|
|
9870
|
+
*/
|
|
9871
|
+
post?: PostActivitySubscription
|
|
9872
|
+
|
|
9873
|
+
/**
|
|
9874
|
+
* @generated from field: optional bsky.ReplyActivitySubscription reply = 5;
|
|
9875
|
+
*/
|
|
9876
|
+
reply?: ReplyActivitySubscription
|
|
9877
|
+
|
|
9878
|
+
/**
|
|
9879
|
+
* @generated from field: string subject_did = 6;
|
|
9880
|
+
*/
|
|
9881
|
+
subjectDid = ''
|
|
9882
|
+
|
|
9883
|
+
/**
|
|
9884
|
+
* @generated from field: google.protobuf.Timestamp indexed_at = 7;
|
|
9885
|
+
*/
|
|
9886
|
+
indexedAt?: Timestamp
|
|
9887
|
+
|
|
9888
|
+
constructor(data?: PartialMessage<ActivitySubscription>) {
|
|
9889
|
+
super()
|
|
9890
|
+
proto3.util.initPartial(data, this)
|
|
9891
|
+
}
|
|
9892
|
+
|
|
9893
|
+
static readonly runtime: typeof proto3 = proto3
|
|
9894
|
+
static readonly typeName = 'bsky.ActivitySubscription'
|
|
9895
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
9896
|
+
{ no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
9897
|
+
{ no: 2, name: 'namespace', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
9898
|
+
{ no: 3, name: 'key', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
9899
|
+
{
|
|
9900
|
+
no: 4,
|
|
9901
|
+
name: 'post',
|
|
9902
|
+
kind: 'message',
|
|
9903
|
+
T: PostActivitySubscription,
|
|
9904
|
+
opt: true,
|
|
9905
|
+
},
|
|
9906
|
+
{
|
|
9907
|
+
no: 5,
|
|
9908
|
+
name: 'reply',
|
|
9909
|
+
kind: 'message',
|
|
9910
|
+
T: ReplyActivitySubscription,
|
|
9911
|
+
opt: true,
|
|
9912
|
+
},
|
|
9913
|
+
{
|
|
9914
|
+
no: 6,
|
|
9915
|
+
name: 'subject_did',
|
|
9916
|
+
kind: 'scalar',
|
|
9917
|
+
T: 9 /* ScalarType.STRING */,
|
|
9918
|
+
},
|
|
9919
|
+
{ no: 7, name: 'indexed_at', kind: 'message', T: Timestamp },
|
|
9920
|
+
])
|
|
9921
|
+
|
|
9922
|
+
static fromBinary(
|
|
9923
|
+
bytes: Uint8Array,
|
|
9924
|
+
options?: Partial<BinaryReadOptions>,
|
|
9925
|
+
): ActivitySubscription {
|
|
9926
|
+
return new ActivitySubscription().fromBinary(bytes, options)
|
|
9927
|
+
}
|
|
9928
|
+
|
|
9929
|
+
static fromJson(
|
|
9930
|
+
jsonValue: JsonValue,
|
|
9931
|
+
options?: Partial<JsonReadOptions>,
|
|
9932
|
+
): ActivitySubscription {
|
|
9933
|
+
return new ActivitySubscription().fromJson(jsonValue, options)
|
|
9934
|
+
}
|
|
9935
|
+
|
|
9936
|
+
static fromJsonString(
|
|
9937
|
+
jsonString: string,
|
|
9938
|
+
options?: Partial<JsonReadOptions>,
|
|
9939
|
+
): ActivitySubscription {
|
|
9940
|
+
return new ActivitySubscription().fromJsonString(jsonString, options)
|
|
9941
|
+
}
|
|
9942
|
+
|
|
9943
|
+
static equals(
|
|
9944
|
+
a: ActivitySubscription | PlainMessage<ActivitySubscription> | undefined,
|
|
9945
|
+
b: ActivitySubscription | PlainMessage<ActivitySubscription> | undefined,
|
|
9946
|
+
): boolean {
|
|
9947
|
+
return proto3.util.equals(ActivitySubscription, a, b)
|
|
9948
|
+
}
|
|
9949
|
+
}
|
|
9950
|
+
|
|
9951
|
+
/**
|
|
9952
|
+
* @generated from message bsky.GetActivitySubscriptionsByActorAndSubjectsRequest
|
|
9953
|
+
*/
|
|
9954
|
+
export class GetActivitySubscriptionsByActorAndSubjectsRequest extends Message<GetActivitySubscriptionsByActorAndSubjectsRequest> {
|
|
9955
|
+
/**
|
|
9956
|
+
* @generated from field: string actor_did = 1;
|
|
9957
|
+
*/
|
|
9958
|
+
actorDid = ''
|
|
9959
|
+
|
|
9960
|
+
/**
|
|
9961
|
+
* @generated from field: repeated string subject_dids = 2;
|
|
9962
|
+
*/
|
|
9963
|
+
subjectDids: string[] = []
|
|
9964
|
+
|
|
9965
|
+
constructor(
|
|
9966
|
+
data?: PartialMessage<GetActivitySubscriptionsByActorAndSubjectsRequest>,
|
|
9967
|
+
) {
|
|
9968
|
+
super()
|
|
9969
|
+
proto3.util.initPartial(data, this)
|
|
9970
|
+
}
|
|
9971
|
+
|
|
9972
|
+
static readonly runtime: typeof proto3 = proto3
|
|
9973
|
+
static readonly typeName =
|
|
9974
|
+
'bsky.GetActivitySubscriptionsByActorAndSubjectsRequest'
|
|
9975
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
9976
|
+
{ no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
9977
|
+
{
|
|
9978
|
+
no: 2,
|
|
9979
|
+
name: 'subject_dids',
|
|
9980
|
+
kind: 'scalar',
|
|
9981
|
+
T: 9 /* ScalarType.STRING */,
|
|
9982
|
+
repeated: true,
|
|
9983
|
+
},
|
|
9984
|
+
])
|
|
9985
|
+
|
|
9986
|
+
static fromBinary(
|
|
9987
|
+
bytes: Uint8Array,
|
|
9988
|
+
options?: Partial<BinaryReadOptions>,
|
|
9989
|
+
): GetActivitySubscriptionsByActorAndSubjectsRequest {
|
|
9990
|
+
return new GetActivitySubscriptionsByActorAndSubjectsRequest().fromBinary(
|
|
9991
|
+
bytes,
|
|
9992
|
+
options,
|
|
9993
|
+
)
|
|
9994
|
+
}
|
|
9995
|
+
|
|
9996
|
+
static fromJson(
|
|
9997
|
+
jsonValue: JsonValue,
|
|
9998
|
+
options?: Partial<JsonReadOptions>,
|
|
9999
|
+
): GetActivitySubscriptionsByActorAndSubjectsRequest {
|
|
10000
|
+
return new GetActivitySubscriptionsByActorAndSubjectsRequest().fromJson(
|
|
10001
|
+
jsonValue,
|
|
10002
|
+
options,
|
|
10003
|
+
)
|
|
10004
|
+
}
|
|
10005
|
+
|
|
10006
|
+
static fromJsonString(
|
|
10007
|
+
jsonString: string,
|
|
10008
|
+
options?: Partial<JsonReadOptions>,
|
|
10009
|
+
): GetActivitySubscriptionsByActorAndSubjectsRequest {
|
|
10010
|
+
return new GetActivitySubscriptionsByActorAndSubjectsRequest().fromJsonString(
|
|
10011
|
+
jsonString,
|
|
10012
|
+
options,
|
|
10013
|
+
)
|
|
10014
|
+
}
|
|
10015
|
+
|
|
10016
|
+
static equals(
|
|
10017
|
+
a:
|
|
10018
|
+
| GetActivitySubscriptionsByActorAndSubjectsRequest
|
|
10019
|
+
| PlainMessage<GetActivitySubscriptionsByActorAndSubjectsRequest>
|
|
10020
|
+
| undefined,
|
|
10021
|
+
b:
|
|
10022
|
+
| GetActivitySubscriptionsByActorAndSubjectsRequest
|
|
10023
|
+
| PlainMessage<GetActivitySubscriptionsByActorAndSubjectsRequest>
|
|
10024
|
+
| undefined,
|
|
10025
|
+
): boolean {
|
|
10026
|
+
return proto3.util.equals(
|
|
10027
|
+
GetActivitySubscriptionsByActorAndSubjectsRequest,
|
|
10028
|
+
a,
|
|
10029
|
+
b,
|
|
10030
|
+
)
|
|
10031
|
+
}
|
|
10032
|
+
}
|
|
10033
|
+
|
|
10034
|
+
/**
|
|
10035
|
+
* @generated from message bsky.GetActivitySubscriptionsByActorAndSubjectsResponse
|
|
10036
|
+
*/
|
|
10037
|
+
export class GetActivitySubscriptionsByActorAndSubjectsResponse extends Message<GetActivitySubscriptionsByActorAndSubjectsResponse> {
|
|
10038
|
+
/**
|
|
10039
|
+
* @generated from field: repeated bsky.ActivitySubscription subscriptions = 1;
|
|
10040
|
+
*/
|
|
10041
|
+
subscriptions: ActivitySubscription[] = []
|
|
10042
|
+
|
|
10043
|
+
constructor(
|
|
10044
|
+
data?: PartialMessage<GetActivitySubscriptionsByActorAndSubjectsResponse>,
|
|
10045
|
+
) {
|
|
10046
|
+
super()
|
|
10047
|
+
proto3.util.initPartial(data, this)
|
|
10048
|
+
}
|
|
10049
|
+
|
|
10050
|
+
static readonly runtime: typeof proto3 = proto3
|
|
10051
|
+
static readonly typeName =
|
|
10052
|
+
'bsky.GetActivitySubscriptionsByActorAndSubjectsResponse'
|
|
10053
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
10054
|
+
{
|
|
10055
|
+
no: 1,
|
|
10056
|
+
name: 'subscriptions',
|
|
10057
|
+
kind: 'message',
|
|
10058
|
+
T: ActivitySubscription,
|
|
10059
|
+
repeated: true,
|
|
10060
|
+
},
|
|
10061
|
+
])
|
|
10062
|
+
|
|
10063
|
+
static fromBinary(
|
|
10064
|
+
bytes: Uint8Array,
|
|
10065
|
+
options?: Partial<BinaryReadOptions>,
|
|
10066
|
+
): GetActivitySubscriptionsByActorAndSubjectsResponse {
|
|
10067
|
+
return new GetActivitySubscriptionsByActorAndSubjectsResponse().fromBinary(
|
|
10068
|
+
bytes,
|
|
10069
|
+
options,
|
|
10070
|
+
)
|
|
10071
|
+
}
|
|
10072
|
+
|
|
10073
|
+
static fromJson(
|
|
10074
|
+
jsonValue: JsonValue,
|
|
10075
|
+
options?: Partial<JsonReadOptions>,
|
|
10076
|
+
): GetActivitySubscriptionsByActorAndSubjectsResponse {
|
|
10077
|
+
return new GetActivitySubscriptionsByActorAndSubjectsResponse().fromJson(
|
|
10078
|
+
jsonValue,
|
|
10079
|
+
options,
|
|
10080
|
+
)
|
|
10081
|
+
}
|
|
10082
|
+
|
|
10083
|
+
static fromJsonString(
|
|
10084
|
+
jsonString: string,
|
|
10085
|
+
options?: Partial<JsonReadOptions>,
|
|
10086
|
+
): GetActivitySubscriptionsByActorAndSubjectsResponse {
|
|
10087
|
+
return new GetActivitySubscriptionsByActorAndSubjectsResponse().fromJsonString(
|
|
10088
|
+
jsonString,
|
|
10089
|
+
options,
|
|
10090
|
+
)
|
|
10091
|
+
}
|
|
10092
|
+
|
|
10093
|
+
static equals(
|
|
10094
|
+
a:
|
|
10095
|
+
| GetActivitySubscriptionsByActorAndSubjectsResponse
|
|
10096
|
+
| PlainMessage<GetActivitySubscriptionsByActorAndSubjectsResponse>
|
|
10097
|
+
| undefined,
|
|
10098
|
+
b:
|
|
10099
|
+
| GetActivitySubscriptionsByActorAndSubjectsResponse
|
|
10100
|
+
| PlainMessage<GetActivitySubscriptionsByActorAndSubjectsResponse>
|
|
10101
|
+
| undefined,
|
|
10102
|
+
): boolean {
|
|
10103
|
+
return proto3.util.equals(
|
|
10104
|
+
GetActivitySubscriptionsByActorAndSubjectsResponse,
|
|
10105
|
+
a,
|
|
10106
|
+
b,
|
|
10107
|
+
)
|
|
10108
|
+
}
|
|
10109
|
+
}
|
|
10110
|
+
|
|
9463
10111
|
/**
|
|
9464
10112
|
* - Return uris of feed generator records created by user A
|
|
9465
10113
|
* - `getActorFeeds`
|
package/src/stash.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { LexValue, stringifyLex } from '@atproto/lexicon'
|
|
2
2
|
import { BsyncClient } from './bsync'
|
|
3
3
|
import { lexicons } from './lexicon/lexicons'
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
Preferences,
|
|
6
|
+
SubjectActivitySubscription,
|
|
7
|
+
} from './lexicon/types/app/bsky/notification/defs'
|
|
5
8
|
import { Method } from './proto/bsync_pb'
|
|
6
9
|
|
|
7
10
|
type PickNSID<T extends { $type?: string }> = Exclude<T['$type'], undefined>
|
|
@@ -9,6 +12,8 @@ type PickNSID<T extends { $type?: string }> = Exclude<T['$type'], undefined>
|
|
|
9
12
|
export const Namespaces = {
|
|
10
13
|
AppBskyNotificationDefsPreferences:
|
|
11
14
|
'app.bsky.notification.defs#preferences' satisfies PickNSID<Preferences>,
|
|
15
|
+
AppBskyNotificationDefsSubjectActivitySubscription:
|
|
16
|
+
'app.bsky.notification.defs#subjectActivitySubscription' satisfies PickNSID<SubjectActivitySubscription>,
|
|
12
17
|
}
|
|
13
18
|
|
|
14
19
|
export type Namespace = (typeof Namespaces)[keyof typeof Namespaces]
|