@atproto/bsky 0.0.268 → 0.0.270

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 (135) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/api/app/bsky/feed/getFeed.d.ts.map +1 -1
  3. package/dist/api/app/bsky/feed/getFeed.js +2 -0
  4. package/dist/api/app/bsky/feed/getFeed.js.map +1 -1
  5. package/dist/api/app/bsky/feed/getListFeed.d.ts.map +1 -1
  6. package/dist/api/app/bsky/feed/getListFeed.js +2 -0
  7. package/dist/api/app/bsky/feed/getListFeed.js.map +1 -1
  8. package/dist/api/app/bsky/feed/getTimeline.d.ts.map +1 -1
  9. package/dist/api/app/bsky/feed/getTimeline.js +2 -0
  10. package/dist/api/app/bsky/feed/getTimeline.js.map +1 -1
  11. package/dist/api/app/bsky/graph/getMutes.js +29 -9
  12. package/dist/api/app/bsky/graph/getMutes.js.map +1 -1
  13. package/dist/api/app/bsky/graph/muteActor.d.ts.map +1 -1
  14. package/dist/api/app/bsky/graph/muteActor.js +3 -1
  15. package/dist/api/app/bsky/graph/muteActor.js.map +1 -1
  16. package/dist/api/app/bsky/notification/updateSeen.js +3 -4
  17. package/dist/api/app/bsky/notification/updateSeen.js.map +1 -1
  18. package/dist/api/app/bsky/unspecced/getPostThreadV2.js +3 -0
  19. package/dist/api/app/bsky/unspecced/getPostThreadV2.js.map +1 -1
  20. package/dist/data-plane/server/bsync-subscription.d.ts.map +1 -1
  21. package/dist/data-plane/server/bsync-subscription.js +6 -2
  22. package/dist/data-plane/server/bsync-subscription.js.map +1 -1
  23. package/dist/data-plane/server/db/database-schema.d.ts +2 -1
  24. package/dist/data-plane/server/db/database-schema.d.ts.map +1 -1
  25. package/dist/data-plane/server/db/database-schema.js.map +1 -1
  26. package/dist/data-plane/server/db/db.d.ts.map +1 -1
  27. package/dist/data-plane/server/db/db.js +0 -2
  28. package/dist/data-plane/server/db/db.js.map +1 -1
  29. package/dist/data-plane/server/db/migrations/20260618T200000000Z-add-mute-scope.d.ts +4 -0
  30. package/dist/data-plane/server/db/migrations/20260618T200000000Z-add-mute-scope.d.ts.map +1 -0
  31. package/dist/data-plane/server/db/migrations/20260618T200000000Z-add-mute-scope.js +17 -0
  32. package/dist/data-plane/server/db/migrations/20260618T200000000Z-add-mute-scope.js.map +1 -0
  33. package/dist/data-plane/server/db/migrations/20260729T223157563Z-add-op-thread-reply.d.ts +4 -0
  34. package/dist/data-plane/server/db/migrations/20260729T223157563Z-add-op-thread-reply.d.ts.map +1 -0
  35. package/dist/data-plane/server/db/migrations/20260729T223157563Z-add-op-thread-reply.js +14 -0
  36. package/dist/data-plane/server/db/migrations/20260729T223157563Z-add-op-thread-reply.js.map +1 -0
  37. package/dist/data-plane/server/db/migrations/index.d.ts +2 -0
  38. package/dist/data-plane/server/db/migrations/index.d.ts.map +1 -1
  39. package/dist/data-plane/server/db/migrations/index.js +2 -0
  40. package/dist/data-plane/server/db/migrations/index.js.map +1 -1
  41. package/dist/data-plane/server/db/tables/mute.d.ts +2 -0
  42. package/dist/data-plane/server/db/tables/mute.d.ts.map +1 -1
  43. package/dist/data-plane/server/db/tables/mute.js.map +1 -1
  44. package/dist/data-plane/server/db/tables/op-thread-reply.d.ts +12 -0
  45. package/dist/data-plane/server/db/tables/op-thread-reply.d.ts.map +1 -0
  46. package/dist/data-plane/server/db/tables/op-thread-reply.js +3 -0
  47. package/dist/data-plane/server/db/tables/op-thread-reply.js.map +1 -0
  48. package/dist/data-plane/server/db/types.d.ts.map +1 -1
  49. package/dist/data-plane/server/db/types.js.map +1 -1
  50. package/dist/data-plane/server/db/util.d.ts.map +1 -1
  51. package/dist/data-plane/server/db/util.js.map +1 -1
  52. package/dist/data-plane/server/index.d.ts.map +1 -1
  53. package/dist/data-plane/server/index.js +2 -3
  54. package/dist/data-plane/server/index.js.map +1 -1
  55. package/dist/data-plane/server/indexing/plugins/post.d.ts.map +1 -1
  56. package/dist/data-plane/server/indexing/plugins/post.js +22 -0
  57. package/dist/data-plane/server/indexing/plugins/post.js.map +1 -1
  58. package/dist/data-plane/server/routes/drafts.js.map +1 -1
  59. package/dist/data-plane/server/routes/mutes.js +17 -4
  60. package/dist/data-plane/server/routes/mutes.js.map +1 -1
  61. package/dist/data-plane/server/routes/relationships.js +14 -3
  62. package/dist/data-plane/server/routes/relationships.js.map +1 -1
  63. package/dist/data-plane/server/routes/threads.d.ts.map +1 -1
  64. package/dist/data-plane/server/routes/threads.js +89 -2
  65. package/dist/data-plane/server/routes/threads.js.map +1 -1
  66. package/dist/data-plane/server/util.d.ts +4 -4
  67. package/dist/hydration/actor.d.ts +2 -0
  68. package/dist/hydration/actor.d.ts.map +1 -1
  69. package/dist/hydration/actor.js +2 -0
  70. package/dist/hydration/actor.js.map +1 -1
  71. package/dist/hydration/external.d.ts.map +1 -1
  72. package/dist/hydration/external.js.map +1 -1
  73. package/dist/hydration/graph.d.ts.map +1 -1
  74. package/dist/hydration/graph.js.map +1 -1
  75. package/dist/hydration/hydrator.d.ts.map +1 -1
  76. package/dist/hydration/hydrator.js +4 -1
  77. package/dist/hydration/hydrator.js.map +1 -1
  78. package/dist/image/uri.d.ts.map +1 -1
  79. package/dist/image/uri.js.map +1 -1
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +2 -3
  82. package/dist/index.js.map +1 -1
  83. package/dist/lexicons/app/bsky/actor/defs.defs.d.ts +11 -0
  84. package/dist/lexicons/app/bsky/actor/defs.defs.d.ts.map +1 -1
  85. package/dist/lexicons/app/bsky/actor/defs.defs.js +2 -0
  86. package/dist/lexicons/app/bsky/actor/defs.defs.js.map +1 -1
  87. package/dist/lexicons/app/bsky/draft/defs.defs.d.ts.map +1 -1
  88. package/dist/lexicons/app/bsky/draft/defs.defs.js.map +1 -1
  89. package/dist/lexicons/app/bsky/graph/getMutes.defs.d.ts +1 -1
  90. package/dist/lexicons/app/bsky/graph/getMutes.defs.d.ts.map +1 -1
  91. package/dist/lexicons/app/bsky/graph/getMutes.defs.js +1 -1
  92. package/dist/lexicons/app/bsky/graph/getMutes.defs.js.map +1 -1
  93. package/dist/lexicons/app/bsky/graph/muteActor.defs.d.ts +5 -1
  94. package/dist/lexicons/app/bsky/graph/muteActor.defs.d.ts.map +1 -1
  95. package/dist/lexicons/app/bsky/graph/muteActor.defs.js +3 -1
  96. package/dist/lexicons/app/bsky/graph/muteActor.defs.js.map +1 -1
  97. package/dist/lexicons/app/bsky/richtext/facet.defs.d.ts.map +1 -1
  98. package/dist/lexicons/app/bsky/richtext/facet.defs.js.map +1 -1
  99. package/dist/lexicons/app/bsky/unspecced/defs.defs.d.ts +9 -1
  100. package/dist/lexicons/app/bsky/unspecced/defs.defs.d.ts.map +1 -1
  101. package/dist/lexicons/app/bsky/unspecced/defs.defs.js +2 -0
  102. package/dist/lexicons/app/bsky/unspecced/defs.defs.js.map +1 -1
  103. package/dist/lexicons/chat/bsky/convo/defs.defs.d.ts.map +1 -1
  104. package/dist/lexicons/chat/bsky/convo/defs.defs.js.map +1 -1
  105. package/dist/lexicons/chat/bsky/group/createGroup.defs.js +1 -1
  106. package/dist/lexicons/chat/bsky/group/createGroup.defs.js.map +1 -1
  107. package/dist/lexicons/com/atproto/sync/defs.defs.d.ts.map +1 -1
  108. package/dist/lexicons/com/atproto/sync/defs.defs.js.map +1 -1
  109. package/dist/lexicons/tools/ozone/moderation/defs.defs.d.ts.map +1 -1
  110. package/dist/lexicons/tools/ozone/moderation/defs.defs.js.map +1 -1
  111. package/dist/lexicons/tools/ozone/queue/defs.defs.d.ts.map +1 -1
  112. package/dist/lexicons/tools/ozone/queue/defs.defs.js.map +1 -1
  113. package/dist/lexicons/tools/ozone/report/defs.defs.d.ts.map +1 -1
  114. package/dist/lexicons/tools/ozone/report/defs.defs.js.map +1 -1
  115. package/dist/proto/bsky_pb.d.ts +81 -1
  116. package/dist/proto/bsky_pb.d.ts.map +1 -1
  117. package/dist/proto/bsky_pb.js +104 -1
  118. package/dist/proto/bsky_pb.js.map +1 -1
  119. package/dist/proto/bsync_pb.d.ts +23 -0
  120. package/dist/proto/bsync_pb.d.ts.map +1 -1
  121. package/dist/proto/bsync_pb.js +27 -0
  122. package/dist/proto/bsync_pb.js.map +1 -1
  123. package/dist/util/standard-site.d.ts.map +1 -1
  124. package/dist/util/standard-site.js.map +1 -1
  125. package/dist/views/index.d.ts +5 -0
  126. package/dist/views/index.d.ts.map +1 -1
  127. package/dist/views/index.js +59 -3
  128. package/dist/views/index.js.map +1 -1
  129. package/dist/views/threads-v2.d.ts +1 -0
  130. package/dist/views/threads-v2.d.ts.map +1 -1
  131. package/dist/views/threads-v2.js +8 -2
  132. package/dist/views/threads-v2.js.map +1 -1
  133. package/dist/views/types.d.ts.map +1 -1
  134. package/dist/views/types.js.map +1 -1
  135. package/package.json +15 -14
@@ -3381,6 +3381,10 @@ export class Relationships extends Message {
3381
3381
  constructor(data) {
3382
3382
  super();
3383
3383
  /**
3384
+ * whether a full (unscoped) direct mute exists. Mutually exclusive with
3385
+ * the scoped muted_only_* fields: a reposts- or quoteposts-scoped mute reports
3386
+ * muted=false.
3387
+ *
3384
3388
  * @generated from field: bool muted = 1;
3385
3389
  */
3386
3390
  this.muted = false;
@@ -3412,6 +3416,14 @@ export class Relationships extends Message {
3412
3416
  * @generated from field: string followed_by = 8;
3413
3417
  */
3414
3418
  this.followedBy = "";
3419
+ /**
3420
+ * @generated from field: bool muted_only_reposts = 9;
3421
+ */
3422
+ this.mutedOnlyReposts = false;
3423
+ /**
3424
+ * @generated from field: bool muted_only_quoteposts = 10;
3425
+ */
3426
+ this.mutedOnlyQuoteposts = false;
3415
3427
  proto3.util.initPartial(data, this);
3416
3428
  }
3417
3429
  static { this.runtime = proto3; }
@@ -3425,6 +3437,8 @@ export class Relationships extends Message {
3425
3437
  { no: 6, name: "blocking_by_list", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3426
3438
  { no: 7, name: "following", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3427
3439
  { no: 8, name: "followed_by", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3440
+ { no: 9, name: "muted_only_reposts", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
3441
+ { no: 10, name: "muted_only_quoteposts", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
3428
3442
  ]); }
3429
3443
  static fromBinary(bytes, options) {
3430
3444
  return new Relationships().fromBinary(bytes, options);
@@ -3984,15 +3998,28 @@ export class GetActorMutesActorResponse extends Message {
3984
3998
  constructor(data) {
3985
3999
  super();
3986
4000
  /**
4001
+ * whether a full (unscoped) mute exists. Mutually exclusive with the
4002
+ * scoped muted_only_* fields.
4003
+ *
3987
4004
  * @generated from field: bool muted = 1;
3988
4005
  */
3989
4006
  this.muted = false;
4007
+ /**
4008
+ * @generated from field: bool muted_only_reposts = 2;
4009
+ */
4010
+ this.mutedOnlyReposts = false;
4011
+ /**
4012
+ * @generated from field: bool muted_only_quoteposts = 3;
4013
+ */
4014
+ this.mutedOnlyQuoteposts = false;
3990
4015
  proto3.util.initPartial(data, this);
3991
4016
  }
3992
4017
  static { this.runtime = proto3; }
3993
4018
  static { this.typeName = "bsky.GetActorMutesActorResponse"; }
3994
4019
  static { this.fields = proto3.util.newFieldList(() => [
3995
4020
  { no: 1, name: "muted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
4021
+ { no: 2, name: "muted_only_reposts", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
4022
+ { no: 3, name: "muted_only_quoteposts", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
3996
4023
  ]); }
3997
4024
  static fromBinary(bytes, options) {
3998
4025
  return new GetActorMutesActorResponse().fromBinary(bytes, options);
@@ -4007,6 +4034,49 @@ export class GetActorMutesActorResponse extends Message {
4007
4034
  return proto3.util.equals(GetActorMutesActorResponse, a, b);
4008
4035
  }
4009
4036
  }
4037
+ /**
4038
+ * @generated from message bsky.MuteInfo
4039
+ */
4040
+ export class MuteInfo extends Message {
4041
+ constructor(data) {
4042
+ super();
4043
+ /**
4044
+ * @generated from field: string did = 1;
4045
+ */
4046
+ this.did = "";
4047
+ /**
4048
+ * scope restrictions: when any is set, just the scoped content is muted;
4049
+ * when none are set, the subject is fully muted.
4050
+ *
4051
+ * @generated from field: bool only_reposts = 2;
4052
+ */
4053
+ this.onlyReposts = false;
4054
+ /**
4055
+ * @generated from field: bool only_quoteposts = 3;
4056
+ */
4057
+ this.onlyQuoteposts = false;
4058
+ proto3.util.initPartial(data, this);
4059
+ }
4060
+ static { this.runtime = proto3; }
4061
+ static { this.typeName = "bsky.MuteInfo"; }
4062
+ static { this.fields = proto3.util.newFieldList(() => [
4063
+ { no: 1, name: "did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
4064
+ { no: 2, name: "only_reposts", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
4065
+ { no: 3, name: "only_quoteposts", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
4066
+ ]); }
4067
+ static fromBinary(bytes, options) {
4068
+ return new MuteInfo().fromBinary(bytes, options);
4069
+ }
4070
+ static fromJson(jsonValue, options) {
4071
+ return new MuteInfo().fromJson(jsonValue, options);
4072
+ }
4073
+ static fromJsonString(jsonString, options) {
4074
+ return new MuteInfo().fromJsonString(jsonString, options);
4075
+ }
4076
+ static equals(a, b) {
4077
+ return proto3.util.equals(MuteInfo, a, b);
4078
+ }
4079
+ }
4010
4080
  /**
4011
4081
  * - return list of user dids of users who A mutes
4012
4082
  * - `getMutes`
@@ -4057,13 +4127,20 @@ export class GetMutesResponse extends Message {
4057
4127
  constructor(data) {
4058
4128
  super();
4059
4129
  /**
4060
- * @generated from field: repeated string dids = 1;
4130
+ * Deprecated: use mutes, which carries the scope of each mute.
4131
+ *
4132
+ * @generated from field: repeated string dids = 1 [deprecated = true];
4133
+ * @deprecated
4061
4134
  */
4062
4135
  this.dids = [];
4063
4136
  /**
4064
4137
  * @generated from field: string cursor = 2;
4065
4138
  */
4066
4139
  this.cursor = "";
4140
+ /**
4141
+ * @generated from field: repeated bsky.MuteInfo mutes = 3;
4142
+ */
4143
+ this.mutes = [];
4067
4144
  proto3.util.initPartial(data, this);
4068
4145
  }
4069
4146
  static { this.runtime = proto3; }
@@ -4071,6 +4148,7 @@ export class GetMutesResponse extends Message {
4071
4148
  static { this.fields = proto3.util.newFieldList(() => [
4072
4149
  { no: 1, name: "dids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
4073
4150
  { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
4151
+ { no: 3, name: "mutes", kind: "message", T: MuteInfo, repeated: true },
4074
4152
  ]); }
4075
4153
  static fromBinary(bytes, options) {
4076
4154
  return new GetMutesResponse().fromBinary(bytes, options);
@@ -6262,12 +6340,23 @@ export class GetThreadResponse extends Message {
6262
6340
  * @generated from field: repeated string uris = 1;
6263
6341
  */
6264
6342
  this.uris = [];
6343
+ /**
6344
+ * The complete OP thread: the root post followed by the oldest contiguous
6345
+ * chain of OP replies, in chain order. Never trimmed to the posts present
6346
+ * in uris — callers derive a post's position with indexOf and the thread
6347
+ * length with len, so completeness and ordering are load-bearing. Empty
6348
+ * when the thread has no OP replies.
6349
+ *
6350
+ * @generated from field: repeated string op_thread = 2;
6351
+ */
6352
+ this.opThread = [];
6265
6353
  proto3.util.initPartial(data, this);
6266
6354
  }
6267
6355
  static { this.runtime = proto3; }
6268
6356
  static { this.typeName = "bsky.GetThreadResponse"; }
6269
6357
  static { this.fields = proto3.util.newFieldList(() => [
6270
6358
  { no: 1, name: "uris", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
6359
+ { no: 2, name: "op_thread", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
6271
6360
  ]); }
6272
6361
  static fromBinary(bytes, options) {
6273
6362
  return new GetThreadResponse().fromBinary(bytes, options);
@@ -9137,6 +9226,18 @@ export class CreateActorMuteRequest extends Message {
9137
9226
  * @generated from field: string subject_did = 2;
9138
9227
  */
9139
9228
  this.subjectDid = "";
9229
+ /**
9230
+ * scope restrictions: when any is set, just the scoped content is muted;
9231
+ * when none are set, the subject is fully muted. If a mute already exists
9232
+ * for the pair, its stored scope is replaced with this one.
9233
+ *
9234
+ * @generated from field: bool only_reposts = 3;
9235
+ */
9236
+ this.onlyReposts = false;
9237
+ /**
9238
+ * @generated from field: bool only_quoteposts = 4;
9239
+ */
9240
+ this.onlyQuoteposts = false;
9140
9241
  proto3.util.initPartial(data, this);
9141
9242
  }
9142
9243
  static { this.runtime = proto3; }
@@ -9144,6 +9245,8 @@ export class CreateActorMuteRequest extends Message {
9144
9245
  static { this.fields = proto3.util.newFieldList(() => [
9145
9246
  { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9146
9247
  { no: 2, name: "subject_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9248
+ { no: 3, name: "only_reposts", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
9249
+ { no: 4, name: "only_quoteposts", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
9147
9250
  ]); }
9148
9251
  static fromBinary(bytes, options) {
9149
9252
  return new CreateActorMuteRequest().fromBinary(bytes, options);