@atproto/bsky 0.0.67 → 0.0.69
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 +21 -0
- package/dist/api/app/bsky/feed/getPostThread.d.ts.map +1 -1
- package/dist/api/app/bsky/feed/getPostThread.js +7 -2
- package/dist/api/app/bsky/feed/getPostThread.js.map +1 -1
- package/dist/api/app/bsky/notification/getUnreadCount.js +6 -0
- package/dist/api/app/bsky/notification/getUnreadCount.js.map +1 -1
- package/dist/api/app/bsky/notification/listNotifications.js +15 -2
- package/dist/api/app/bsky/notification/listNotifications.js.map +1 -1
- package/dist/api/app/bsky/notification/putPreferences.d.ts +4 -0
- package/dist/api/app/bsky/notification/putPreferences.d.ts.map +1 -0
- package/dist/api/app/bsky/notification/putPreferences.js +17 -0
- package/dist/api/app/bsky/notification/putPreferences.js.map +1 -0
- package/dist/api/app/bsky/notification/updateSeen.d.ts.map +1 -1
- package/dist/api/app/bsky/notification/updateSeen.js +14 -5
- package/dist/api/app/bsky/notification/updateSeen.js.map +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +2 -0
- package/dist/api/index.js.map +1 -1
- package/dist/auth-verifier.d.ts +1 -0
- package/dist/auth-verifier.d.ts.map +1 -1
- package/dist/auth-verifier.js +3 -2
- package/dist/auth-verifier.js.map +1 -1
- package/dist/data-plane/bsync/index.js +18 -0
- package/dist/data-plane/bsync/index.js.map +1 -1
- package/dist/data-plane/server/db/migrations/20240719T203853939Z-priority-notifs.d.ts +4 -0
- package/dist/data-plane/server/db/migrations/20240719T203853939Z-priority-notifs.d.ts.map +1 -0
- package/dist/data-plane/server/db/migrations/20240719T203853939Z-priority-notifs.js +26 -0
- package/dist/data-plane/server/db/migrations/20240719T203853939Z-priority-notifs.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/tables/actor-state.d.ts +2 -0
- package/dist/data-plane/server/db/tables/actor-state.d.ts.map +1 -1
- package/dist/data-plane/server/db/tables/actor-state.js.map +1 -1
- package/dist/data-plane/server/routes/notifs.d.ts.map +1 -1
- package/dist/data-plane/server/routes/notifs.js +55 -12
- 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 +4 -1
- package/dist/data-plane/server/routes/profile.js.map +1 -1
- package/dist/hydration/actor.d.ts +1 -0
- package/dist/hydration/actor.d.ts.map +1 -1
- package/dist/hydration/actor.js +1 -0
- package/dist/hydration/actor.js.map +1 -1
- package/dist/hydration/hydrator.d.ts +2 -0
- package/dist/hydration/hydrator.d.ts.map +1 -1
- package/dist/hydration/hydrator.js +7 -0
- package/dist/hydration/hydrator.js.map +1 -1
- package/dist/lexicon/index.d.ts +2 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +4 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +32 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +32 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/getUnreadCount.d.ts +1 -0
- package/dist/lexicon/types/app/bsky/notification/getUnreadCount.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts +2 -0
- package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/listNotifications.js.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/putPreferences.d.ts +29 -0
- package/dist/lexicon/types/app/bsky/notification/putPreferences.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/notification/putPreferences.js +3 -0
- package/dist/lexicon/types/app/bsky/notification/putPreferences.js.map +1 -0
- package/dist/logger.d.ts +3 -1
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +9 -76
- package/dist/logger.js.map +1 -1
- package/dist/proto/bsky_pb.d.ts +24 -0
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +65 -0
- package/dist/proto/bsky_pb.js.map +1 -1
- package/dist/proto/bsync_connect.d.ts +19 -1
- package/dist/proto/bsync_connect.d.ts.map +1 -1
- package/dist/proto/bsync_connect.js +18 -0
- package/dist/proto/bsync_connect.js.map +1 -1
- package/dist/proto/bsync_pb.d.ts +105 -0
- package/dist/proto/bsync_pb.d.ts.map +1 -1
- package/dist/proto/bsync_pb.js +324 -1
- package/dist/proto/bsync_pb.js.map +1 -1
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +6 -4
- package/dist/views/index.js.map +1 -1
- package/package.json +7 -7
- package/proto/bsky.proto +7 -1
- package/src/api/app/bsky/feed/getPostThread.ts +8 -3
- package/src/api/app/bsky/notification/getUnreadCount.ts +7 -0
- package/src/api/app/bsky/notification/listNotifications.ts +17 -2
- package/src/api/app/bsky/notification/putPreferences.ts +16 -0
- package/src/api/app/bsky/notification/updateSeen.ts +14 -5
- package/src/api/index.ts +2 -0
- package/src/auth-verifier.ts +3 -2
- package/src/data-plane/bsync/index.ts +22 -0
- package/src/data-plane/server/db/migrations/20240719T203853939Z-priority-notifs.ts +25 -0
- package/src/data-plane/server/db/migrations/index.ts +1 -0
- package/src/data-plane/server/db/tables/actor-state.ts +2 -0
- package/src/data-plane/server/routes/notifs.ts +61 -17
- package/src/data-plane/server/routes/profile.ts +4 -1
- package/src/hydration/actor.ts +2 -1
- package/src/hydration/hydrator.ts +3 -1
- package/src/lexicon/index.ts +12 -0
- package/src/lexicon/lexicons.ts +33 -0
- package/src/lexicon/types/app/bsky/notification/getUnreadCount.ts +1 -0
- package/src/lexicon/types/app/bsky/notification/listNotifications.ts +2 -0
- package/src/lexicon/types/app/bsky/notification/putPreferences.ts +38 -0
- package/src/logger.ts +11 -81
- package/src/proto/bsky_pb.ts +41 -0
- package/src/proto/bsync_connect.ts +22 -0
- package/src/proto/bsync_pb.ts +317 -0
- package/src/views/index.ts +8 -4
- package/tests/views/__snapshots__/notifications.test.ts.snap +415 -0
- package/tests/views/notifications.test.ts +42 -1
package/dist/proto/bsky_pb.js
CHANGED
|
@@ -4141,6 +4141,15 @@ class ActorInfo extends protobuf_1.Message {
|
|
|
4141
4141
|
writable: true,
|
|
4142
4142
|
value: void 0
|
|
4143
4143
|
});
|
|
4144
|
+
/**
|
|
4145
|
+
* @generated from field: bool priority_notifications = 11;
|
|
4146
|
+
*/
|
|
4147
|
+
Object.defineProperty(this, "priorityNotifications", {
|
|
4148
|
+
enumerable: true,
|
|
4149
|
+
configurable: true,
|
|
4150
|
+
writable: true,
|
|
4151
|
+
value: false
|
|
4152
|
+
});
|
|
4144
4153
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
4145
4154
|
}
|
|
4146
4155
|
static fromBinary(bytes, options) {
|
|
@@ -4199,6 +4208,12 @@ Object.defineProperty(ActorInfo, "fields", {
|
|
|
4199
4208
|
T: 9 /* ScalarType.STRING */,
|
|
4200
4209
|
},
|
|
4201
4210
|
{ no: 10, name: 'created_at', kind: 'message', T: protobuf_1.Timestamp },
|
|
4211
|
+
{
|
|
4212
|
+
no: 11,
|
|
4213
|
+
name: 'priority_notifications',
|
|
4214
|
+
kind: 'scalar',
|
|
4215
|
+
T: 8 /* ScalarType.BOOL */,
|
|
4216
|
+
},
|
|
4202
4217
|
])
|
|
4203
4218
|
});
|
|
4204
4219
|
/**
|
|
@@ -6922,6 +6937,15 @@ class GetNotificationsRequest extends protobuf_1.Message {
|
|
|
6922
6937
|
writable: true,
|
|
6923
6938
|
value: ''
|
|
6924
6939
|
});
|
|
6940
|
+
/**
|
|
6941
|
+
* @generated from field: bool priority = 4;
|
|
6942
|
+
*/
|
|
6943
|
+
Object.defineProperty(this, "priority", {
|
|
6944
|
+
enumerable: true,
|
|
6945
|
+
configurable: true,
|
|
6946
|
+
writable: true,
|
|
6947
|
+
value: false
|
|
6948
|
+
});
|
|
6925
6949
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
6926
6950
|
}
|
|
6927
6951
|
static fromBinary(bytes, options) {
|
|
@@ -6958,6 +6982,7 @@ Object.defineProperty(GetNotificationsRequest, "fields", {
|
|
|
6958
6982
|
{ no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
6959
6983
|
{ no: 2, name: 'limit', kind: 'scalar', T: 5 /* ScalarType.INT32 */ },
|
|
6960
6984
|
{ no: 3, name: 'cursor', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
6985
|
+
{ no: 4, name: 'priority', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
6961
6986
|
])
|
|
6962
6987
|
});
|
|
6963
6988
|
/**
|
|
@@ -7011,6 +7036,15 @@ class Notification extends protobuf_1.Message {
|
|
|
7011
7036
|
writable: true,
|
|
7012
7037
|
value: void 0
|
|
7013
7038
|
});
|
|
7039
|
+
/**
|
|
7040
|
+
* @generated from field: bool priority = 6;
|
|
7041
|
+
*/
|
|
7042
|
+
Object.defineProperty(this, "priority", {
|
|
7043
|
+
enumerable: true,
|
|
7044
|
+
configurable: true,
|
|
7045
|
+
writable: true,
|
|
7046
|
+
value: false
|
|
7047
|
+
});
|
|
7014
7048
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
7015
7049
|
}
|
|
7016
7050
|
static fromBinary(bytes, options) {
|
|
@@ -7059,6 +7093,7 @@ Object.defineProperty(Notification, "fields", {
|
|
|
7059
7093
|
T: 9 /* ScalarType.STRING */,
|
|
7060
7094
|
},
|
|
7061
7095
|
{ no: 5, name: 'timestamp', kind: 'message', T: protobuf_1.Timestamp },
|
|
7096
|
+
{ no: 6, name: 'priority', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
7062
7097
|
])
|
|
7063
7098
|
});
|
|
7064
7099
|
/**
|
|
@@ -7155,6 +7190,15 @@ class UpdateNotificationSeenRequest extends protobuf_1.Message {
|
|
|
7155
7190
|
writable: true,
|
|
7156
7191
|
value: void 0
|
|
7157
7192
|
});
|
|
7193
|
+
/**
|
|
7194
|
+
* @generated from field: bool priority = 3;
|
|
7195
|
+
*/
|
|
7196
|
+
Object.defineProperty(this, "priority", {
|
|
7197
|
+
enumerable: true,
|
|
7198
|
+
configurable: true,
|
|
7199
|
+
writable: true,
|
|
7200
|
+
value: false
|
|
7201
|
+
});
|
|
7158
7202
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
7159
7203
|
}
|
|
7160
7204
|
static fromBinary(bytes, options) {
|
|
@@ -7190,6 +7234,7 @@ Object.defineProperty(UpdateNotificationSeenRequest, "fields", {
|
|
|
7190
7234
|
value: protobuf_1.proto3.util.newFieldList(() => [
|
|
7191
7235
|
{ no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
7192
7236
|
{ no: 2, name: 'timestamp', kind: 'message', T: protobuf_1.Timestamp },
|
|
7237
|
+
{ no: 3, name: 'priority', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
7193
7238
|
])
|
|
7194
7239
|
});
|
|
7195
7240
|
/**
|
|
@@ -7250,6 +7295,15 @@ class GetNotificationSeenRequest extends protobuf_1.Message {
|
|
|
7250
7295
|
writable: true,
|
|
7251
7296
|
value: ''
|
|
7252
7297
|
});
|
|
7298
|
+
/**
|
|
7299
|
+
* @generated from field: bool priority = 2;
|
|
7300
|
+
*/
|
|
7301
|
+
Object.defineProperty(this, "priority", {
|
|
7302
|
+
enumerable: true,
|
|
7303
|
+
configurable: true,
|
|
7304
|
+
writable: true,
|
|
7305
|
+
value: false
|
|
7306
|
+
});
|
|
7253
7307
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
7254
7308
|
}
|
|
7255
7309
|
static fromBinary(bytes, options) {
|
|
@@ -7284,6 +7338,7 @@ Object.defineProperty(GetNotificationSeenRequest, "fields", {
|
|
|
7284
7338
|
writable: true,
|
|
7285
7339
|
value: protobuf_1.proto3.util.newFieldList(() => [
|
|
7286
7340
|
{ no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
7341
|
+
{ no: 2, name: 'priority', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
7287
7342
|
])
|
|
7288
7343
|
});
|
|
7289
7344
|
/**
|
|
@@ -7355,6 +7410,15 @@ class GetUnreadNotificationCountRequest extends protobuf_1.Message {
|
|
|
7355
7410
|
writable: true,
|
|
7356
7411
|
value: ''
|
|
7357
7412
|
});
|
|
7413
|
+
/**
|
|
7414
|
+
* @generated from field: bool priority = 2;
|
|
7415
|
+
*/
|
|
7416
|
+
Object.defineProperty(this, "priority", {
|
|
7417
|
+
enumerable: true,
|
|
7418
|
+
configurable: true,
|
|
7419
|
+
writable: true,
|
|
7420
|
+
value: false
|
|
7421
|
+
});
|
|
7358
7422
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
7359
7423
|
}
|
|
7360
7424
|
static fromBinary(bytes, options) {
|
|
@@ -7389,6 +7453,7 @@ Object.defineProperty(GetUnreadNotificationCountRequest, "fields", {
|
|
|
7389
7453
|
writable: true,
|
|
7390
7454
|
value: protobuf_1.proto3.util.newFieldList(() => [
|
|
7391
7455
|
{ no: 1, name: 'actor_did', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
|
|
7456
|
+
{ no: 2, name: 'priority', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
|
|
7392
7457
|
])
|
|
7393
7458
|
});
|
|
7394
7459
|
/**
|