@atproto/bsky 0.0.68 → 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.
Files changed (109) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/api/app/bsky/feed/getPostThread.d.ts.map +1 -1
  3. package/dist/api/app/bsky/feed/getPostThread.js +7 -2
  4. package/dist/api/app/bsky/feed/getPostThread.js.map +1 -1
  5. package/dist/api/app/bsky/notification/getUnreadCount.js +6 -0
  6. package/dist/api/app/bsky/notification/getUnreadCount.js.map +1 -1
  7. package/dist/api/app/bsky/notification/listNotifications.js +15 -2
  8. package/dist/api/app/bsky/notification/listNotifications.js.map +1 -1
  9. package/dist/api/app/bsky/notification/putPreferences.d.ts +4 -0
  10. package/dist/api/app/bsky/notification/putPreferences.d.ts.map +1 -0
  11. package/dist/api/app/bsky/notification/putPreferences.js +17 -0
  12. package/dist/api/app/bsky/notification/putPreferences.js.map +1 -0
  13. package/dist/api/app/bsky/notification/updateSeen.d.ts.map +1 -1
  14. package/dist/api/app/bsky/notification/updateSeen.js +14 -5
  15. package/dist/api/app/bsky/notification/updateSeen.js.map +1 -1
  16. package/dist/api/index.d.ts.map +1 -1
  17. package/dist/api/index.js +2 -0
  18. package/dist/api/index.js.map +1 -1
  19. package/dist/auth-verifier.d.ts +1 -0
  20. package/dist/auth-verifier.d.ts.map +1 -1
  21. package/dist/auth-verifier.js +3 -2
  22. package/dist/auth-verifier.js.map +1 -1
  23. package/dist/data-plane/bsync/index.js +18 -0
  24. package/dist/data-plane/bsync/index.js.map +1 -1
  25. package/dist/data-plane/server/db/migrations/20240719T203853939Z-priority-notifs.d.ts +4 -0
  26. package/dist/data-plane/server/db/migrations/20240719T203853939Z-priority-notifs.d.ts.map +1 -0
  27. package/dist/data-plane/server/db/migrations/20240719T203853939Z-priority-notifs.js +26 -0
  28. package/dist/data-plane/server/db/migrations/20240719T203853939Z-priority-notifs.js.map +1 -0
  29. package/dist/data-plane/server/db/migrations/index.d.ts +1 -0
  30. package/dist/data-plane/server/db/migrations/index.d.ts.map +1 -1
  31. package/dist/data-plane/server/db/migrations/index.js +2 -1
  32. package/dist/data-plane/server/db/migrations/index.js.map +1 -1
  33. package/dist/data-plane/server/db/tables/actor-state.d.ts +2 -0
  34. package/dist/data-plane/server/db/tables/actor-state.d.ts.map +1 -1
  35. package/dist/data-plane/server/db/tables/actor-state.js.map +1 -1
  36. package/dist/data-plane/server/routes/notifs.d.ts.map +1 -1
  37. package/dist/data-plane/server/routes/notifs.js +55 -12
  38. package/dist/data-plane/server/routes/notifs.js.map +1 -1
  39. package/dist/data-plane/server/routes/profile.d.ts.map +1 -1
  40. package/dist/data-plane/server/routes/profile.js +4 -1
  41. package/dist/data-plane/server/routes/profile.js.map +1 -1
  42. package/dist/hydration/actor.d.ts +1 -0
  43. package/dist/hydration/actor.d.ts.map +1 -1
  44. package/dist/hydration/actor.js +1 -0
  45. package/dist/hydration/actor.js.map +1 -1
  46. package/dist/hydration/hydrator.d.ts +2 -0
  47. package/dist/hydration/hydrator.d.ts.map +1 -1
  48. package/dist/hydration/hydrator.js +7 -0
  49. package/dist/hydration/hydrator.js.map +1 -1
  50. package/dist/lexicon/index.d.ts +2 -0
  51. package/dist/lexicon/index.d.ts.map +1 -1
  52. package/dist/lexicon/index.js +4 -0
  53. package/dist/lexicon/index.js.map +1 -1
  54. package/dist/lexicon/lexicons.d.ts +32 -0
  55. package/dist/lexicon/lexicons.d.ts.map +1 -1
  56. package/dist/lexicon/lexicons.js +32 -0
  57. package/dist/lexicon/lexicons.js.map +1 -1
  58. package/dist/lexicon/types/app/bsky/notification/getUnreadCount.d.ts +1 -0
  59. package/dist/lexicon/types/app/bsky/notification/getUnreadCount.d.ts.map +1 -1
  60. package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts +2 -0
  61. package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts.map +1 -1
  62. package/dist/lexicon/types/app/bsky/notification/listNotifications.js.map +1 -1
  63. package/dist/lexicon/types/app/bsky/notification/putPreferences.d.ts +29 -0
  64. package/dist/lexicon/types/app/bsky/notification/putPreferences.d.ts.map +1 -0
  65. package/dist/lexicon/types/app/bsky/notification/putPreferences.js +3 -0
  66. package/dist/lexicon/types/app/bsky/notification/putPreferences.js.map +1 -0
  67. package/dist/proto/bsky_pb.d.ts +24 -0
  68. package/dist/proto/bsky_pb.d.ts.map +1 -1
  69. package/dist/proto/bsky_pb.js +65 -0
  70. package/dist/proto/bsky_pb.js.map +1 -1
  71. package/dist/proto/bsync_connect.d.ts +19 -1
  72. package/dist/proto/bsync_connect.d.ts.map +1 -1
  73. package/dist/proto/bsync_connect.js +18 -0
  74. package/dist/proto/bsync_connect.js.map +1 -1
  75. package/dist/proto/bsync_pb.d.ts +105 -0
  76. package/dist/proto/bsync_pb.d.ts.map +1 -1
  77. package/dist/proto/bsync_pb.js +324 -1
  78. package/dist/proto/bsync_pb.js.map +1 -1
  79. package/dist/views/index.d.ts.map +1 -1
  80. package/dist/views/index.js +6 -4
  81. package/dist/views/index.js.map +1 -1
  82. package/package.json +4 -4
  83. package/proto/bsky.proto +7 -1
  84. package/src/api/app/bsky/feed/getPostThread.ts +8 -3
  85. package/src/api/app/bsky/notification/getUnreadCount.ts +7 -0
  86. package/src/api/app/bsky/notification/listNotifications.ts +17 -2
  87. package/src/api/app/bsky/notification/putPreferences.ts +16 -0
  88. package/src/api/app/bsky/notification/updateSeen.ts +14 -5
  89. package/src/api/index.ts +2 -0
  90. package/src/auth-verifier.ts +3 -2
  91. package/src/data-plane/bsync/index.ts +22 -0
  92. package/src/data-plane/server/db/migrations/20240719T203853939Z-priority-notifs.ts +25 -0
  93. package/src/data-plane/server/db/migrations/index.ts +1 -0
  94. package/src/data-plane/server/db/tables/actor-state.ts +2 -0
  95. package/src/data-plane/server/routes/notifs.ts +61 -17
  96. package/src/data-plane/server/routes/profile.ts +4 -1
  97. package/src/hydration/actor.ts +2 -1
  98. package/src/hydration/hydrator.ts +3 -1
  99. package/src/lexicon/index.ts +12 -0
  100. package/src/lexicon/lexicons.ts +33 -0
  101. package/src/lexicon/types/app/bsky/notification/getUnreadCount.ts +1 -0
  102. package/src/lexicon/types/app/bsky/notification/listNotifications.ts +2 -0
  103. package/src/lexicon/types/app/bsky/notification/putPreferences.ts +38 -0
  104. package/src/proto/bsky_pb.ts +41 -0
  105. package/src/proto/bsync_connect.ts +22 -0
  106. package/src/proto/bsync_pb.ts +317 -0
  107. package/src/views/index.ts +8 -4
  108. package/tests/views/__snapshots__/notifications.test.ts.snap +415 -0
  109. package/tests/views/notifications.test.ts +42 -1
@@ -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
  /**