@atproto/bsky 0.0.155 → 0.0.157

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 (144) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/api/app/bsky/{unspecced/getPostThreadHiddenV2.d.ts → notification/getPreferences.d.ts} +1 -1
  3. package/dist/api/app/bsky/notification/getPreferences.d.ts.map +1 -0
  4. package/dist/api/app/bsky/notification/getPreferences.js +39 -0
  5. package/dist/api/app/bsky/notification/getPreferences.js.map +1 -0
  6. package/dist/api/app/bsky/notification/putPreferencesV2.d.ts +4 -0
  7. package/dist/api/app/bsky/notification/putPreferencesV2.d.ts.map +1 -0
  8. package/dist/api/app/bsky/notification/putPreferencesV2.js +47 -0
  9. package/dist/api/app/bsky/notification/putPreferencesV2.js.map +1 -0
  10. package/dist/api/app/bsky/notification/util.d.ts +9 -0
  11. package/dist/api/app/bsky/notification/util.d.ts.map +1 -0
  12. package/dist/api/app/bsky/notification/util.js +84 -0
  13. package/dist/api/app/bsky/notification/util.js.map +1 -0
  14. package/dist/api/app/bsky/unspecced/getPostThreadOtherV2.d.ts +4 -0
  15. package/dist/api/app/bsky/unspecced/getPostThreadOtherV2.d.ts.map +1 -0
  16. package/dist/api/app/bsky/unspecced/{getPostThreadHiddenV2.js → getPostThreadOtherV2.js} +5 -5
  17. package/dist/api/app/bsky/unspecced/getPostThreadOtherV2.js.map +1 -0
  18. package/dist/api/app/bsky/unspecced/getPostThreadV2.js +2 -2
  19. package/dist/api/app/bsky/unspecced/getPostThreadV2.js.map +1 -1
  20. package/dist/api/index.d.ts.map +1 -1
  21. package/dist/api/index.js +6 -2
  22. package/dist/api/index.js.map +1 -1
  23. package/dist/context.d.ts +3 -0
  24. package/dist/context.d.ts.map +1 -1
  25. package/dist/context.js +3 -0
  26. package/dist/context.js.map +1 -1
  27. package/dist/data-plane/bsync/index.d.ts.map +1 -1
  28. package/dist/data-plane/bsync/index.js +84 -0
  29. package/dist/data-plane/bsync/index.js.map +1 -1
  30. package/dist/data-plane/server/db/database-schema.d.ts +2 -1
  31. package/dist/data-plane/server/db/database-schema.d.ts.map +1 -1
  32. package/dist/data-plane/server/db/migrations/20250602T190357447Z-add-private-data.d.ts +4 -0
  33. package/dist/data-plane/server/db/migrations/20250602T190357447Z-add-private-data.d.ts.map +1 -0
  34. package/dist/data-plane/server/db/migrations/20250602T190357447Z-add-private-data.js +24 -0
  35. package/dist/data-plane/server/db/migrations/20250602T190357447Z-add-private-data.js.map +1 -0
  36. package/dist/data-plane/server/db/migrations/index.d.ts +1 -0
  37. package/dist/data-plane/server/db/migrations/index.d.ts.map +1 -1
  38. package/dist/data-plane/server/db/migrations/index.js +2 -1
  39. package/dist/data-plane/server/db/migrations/index.js.map +1 -1
  40. package/dist/data-plane/server/db/tables/private-data.d.ts +13 -0
  41. package/dist/data-plane/server/db/tables/private-data.d.ts.map +1 -0
  42. package/dist/data-plane/server/db/tables/private-data.js +5 -0
  43. package/dist/data-plane/server/db/tables/private-data.js.map +1 -0
  44. package/dist/data-plane/server/routes/index.d.ts.map +1 -1
  45. package/dist/data-plane/server/routes/index.js +2 -0
  46. package/dist/data-plane/server/routes/index.js.map +1 -1
  47. package/dist/data-plane/server/routes/private-data.d.ts +9 -0
  48. package/dist/data-plane/server/routes/private-data.d.ts.map +1 -0
  49. package/dist/data-plane/server/routes/private-data.js +63 -0
  50. package/dist/data-plane/server/routes/private-data.js.map +1 -0
  51. package/dist/data-plane/server/util.d.ts +6 -6
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +3 -0
  54. package/dist/index.js.map +1 -1
  55. package/dist/lexicon/index.d.ts +8 -4
  56. package/dist/lexicon/index.d.ts.map +1 -1
  57. package/dist/lexicon/index.js +14 -6
  58. package/dist/lexicon/index.js.map +1 -1
  59. package/dist/lexicon/lexicons.d.ts +518 -100
  60. package/dist/lexicon/lexicons.d.ts.map +1 -1
  61. package/dist/lexicon/lexicons.js +277 -52
  62. package/dist/lexicon/lexicons.js.map +1 -1
  63. package/dist/lexicon/types/app/bsky/notification/defs.d.ts +40 -0
  64. package/dist/lexicon/types/app/bsky/notification/defs.d.ts.map +1 -1
  65. package/dist/lexicon/types/app/bsky/notification/defs.js +36 -0
  66. package/dist/lexicon/types/app/bsky/notification/defs.js.map +1 -1
  67. package/dist/lexicon/types/app/bsky/notification/getPreferences.d.ts +35 -0
  68. package/dist/lexicon/types/app/bsky/notification/getPreferences.d.ts.map +1 -0
  69. package/dist/lexicon/types/app/bsky/notification/getPreferences.js +7 -0
  70. package/dist/lexicon/types/app/bsky/notification/getPreferences.js.map +1 -0
  71. package/dist/lexicon/types/app/bsky/notification/putPreferencesV2.d.ts +52 -0
  72. package/dist/lexicon/types/app/bsky/notification/putPreferencesV2.d.ts.map +1 -0
  73. package/dist/lexicon/types/app/bsky/notification/putPreferencesV2.js +7 -0
  74. package/dist/lexicon/types/app/bsky/notification/putPreferencesV2.js.map +1 -0
  75. package/dist/lexicon/types/app/bsky/unspecced/{getPostThreadHiddenV2.d.ts → getPostThreadOtherV2.d.ts} +7 -7
  76. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadOtherV2.d.ts.map +1 -0
  77. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadOtherV2.js +16 -0
  78. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadOtherV2.js.map +1 -0
  79. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadV2.d.ts +2 -2
  80. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadV2.d.ts.map +1 -1
  81. package/dist/proto/bsky_connect.d.ts +10 -1
  82. package/dist/proto/bsky_connect.d.ts.map +1 -1
  83. package/dist/proto/bsky_connect.js +9 -0
  84. package/dist/proto/bsky_connect.js.map +1 -1
  85. package/dist/proto/bsky_pb.d.ts +234 -0
  86. package/dist/proto/bsky_pb.d.ts.map +1 -1
  87. package/dist/proto/bsky_pb.js +693 -5
  88. package/dist/proto/bsky_pb.js.map +1 -1
  89. package/dist/proto/bsync_pb.d.ts +10 -10
  90. package/dist/proto/bsync_pb.d.ts.map +1 -1
  91. package/dist/proto/bsync_pb.js +15 -15
  92. package/dist/proto/bsync_pb.js.map +1 -1
  93. package/dist/stash.d.ts +26 -0
  94. package/dist/stash.d.ts.map +1 -0
  95. package/dist/stash.js +56 -0
  96. package/dist/stash.js.map +1 -0
  97. package/dist/views/index.d.ts +8 -8
  98. package/dist/views/index.d.ts.map +1 -1
  99. package/dist/views/index.js +32 -32
  100. package/dist/views/index.js.map +1 -1
  101. package/dist/views/threads-v2.d.ts +11 -11
  102. package/dist/views/threads-v2.d.ts.map +1 -1
  103. package/dist/views/threads-v2.js.map +1 -1
  104. package/package.json +4 -4
  105. package/proto/bsky.proto +61 -0
  106. package/src/api/app/bsky/notification/getPreferences.ts +50 -0
  107. package/src/api/app/bsky/notification/putPreferencesV2.ts +62 -0
  108. package/src/api/app/bsky/notification/util.ts +123 -0
  109. package/src/api/app/bsky/unspecced/{getPostThreadHiddenV2.ts → getPostThreadOtherV2.ts} +5 -5
  110. package/src/api/app/bsky/unspecced/getPostThreadV2.ts +2 -2
  111. package/src/api/index.ts +6 -2
  112. package/src/context.ts +6 -0
  113. package/src/data-plane/bsync/index.ts +109 -1
  114. package/src/data-plane/server/db/database-schema.ts +3 -1
  115. package/src/data-plane/server/db/migrations/20250602T190357447Z-add-private-data.ts +22 -0
  116. package/src/data-plane/server/db/migrations/index.ts +1 -0
  117. package/src/data-plane/server/db/tables/private-data.ts +13 -0
  118. package/src/data-plane/server/routes/index.ts +2 -0
  119. package/src/data-plane/server/routes/private-data.ts +90 -0
  120. package/src/index.ts +4 -0
  121. package/src/lexicon/index.ts +38 -14
  122. package/src/lexicon/lexicons.ts +281 -54
  123. package/src/lexicon/types/app/bsky/notification/defs.ts +76 -0
  124. package/src/lexicon/types/app/bsky/notification/getPreferences.ts +52 -0
  125. package/src/lexicon/types/app/bsky/notification/putPreferencesV2.ts +69 -0
  126. package/src/lexicon/types/app/bsky/unspecced/{getPostThreadHiddenV2.ts → getPostThreadOtherV2.ts} +10 -10
  127. package/src/lexicon/types/app/bsky/unspecced/getPostThreadV2.ts +2 -2
  128. package/src/proto/bsky_connect.ts +11 -0
  129. package/src/proto/bsky_pb.ts +669 -0
  130. package/src/proto/bsync_pb.ts +15 -15
  131. package/src/stash.ts +75 -0
  132. package/src/views/index.ts +46 -46
  133. package/src/views/threads-v2.ts +23 -23
  134. package/tests/stash.test.ts +156 -0
  135. package/tests/views/__snapshots__/thread-v2.test.ts.snap +7 -7
  136. package/tests/views/notifications.test.ts +221 -0
  137. package/tests/views/thread-v2.test.ts +93 -93
  138. package/tsconfig.build.tsbuildinfo +1 -1
  139. package/tsconfig.tests.tsbuildinfo +1 -1
  140. package/dist/api/app/bsky/unspecced/getPostThreadHiddenV2.d.ts.map +0 -1
  141. package/dist/api/app/bsky/unspecced/getPostThreadHiddenV2.js.map +0 -1
  142. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.d.ts.map +0 -1
  143. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.js +0 -16
  144. package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.js.map +0 -1
@@ -6650,6 +6650,47 @@ export declare const schemaDict: {
6650
6650
  };
6651
6651
  };
6652
6652
  };
6653
+ readonly AppBskyFeedGetPosts: {
6654
+ readonly lexicon: 1;
6655
+ readonly id: "app.bsky.feed.getPosts";
6656
+ readonly defs: {
6657
+ readonly main: {
6658
+ readonly type: "query";
6659
+ readonly description: "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.";
6660
+ readonly parameters: {
6661
+ readonly type: "params";
6662
+ readonly required: ["uris"];
6663
+ readonly properties: {
6664
+ readonly uris: {
6665
+ readonly type: "array";
6666
+ readonly description: "List of post AT-URIs to return hydrated views for.";
6667
+ readonly items: {
6668
+ readonly type: "string";
6669
+ readonly format: "at-uri";
6670
+ };
6671
+ readonly maxLength: 25;
6672
+ };
6673
+ };
6674
+ };
6675
+ readonly output: {
6676
+ readonly encoding: "application/json";
6677
+ readonly schema: {
6678
+ readonly type: "object";
6679
+ readonly required: ["posts"];
6680
+ readonly properties: {
6681
+ readonly posts: {
6682
+ readonly type: "array";
6683
+ readonly items: {
6684
+ readonly type: "ref";
6685
+ readonly ref: "lex:app.bsky.feed.defs#postView";
6686
+ };
6687
+ };
6688
+ };
6689
+ };
6690
+ };
6691
+ };
6692
+ };
6693
+ };
6653
6694
  readonly AppBskyFeedGetPostThread: {
6654
6695
  readonly lexicon: 1;
6655
6696
  readonly id: "app.bsky.feed.getPostThread";
@@ -6705,47 +6746,6 @@ export declare const schemaDict: {
6705
6746
  };
6706
6747
  };
6707
6748
  };
6708
- readonly AppBskyFeedGetPosts: {
6709
- readonly lexicon: 1;
6710
- readonly id: "app.bsky.feed.getPosts";
6711
- readonly defs: {
6712
- readonly main: {
6713
- readonly type: "query";
6714
- readonly description: "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.";
6715
- readonly parameters: {
6716
- readonly type: "params";
6717
- readonly required: ["uris"];
6718
- readonly properties: {
6719
- readonly uris: {
6720
- readonly type: "array";
6721
- readonly description: "List of post AT-URIs to return hydrated views for.";
6722
- readonly items: {
6723
- readonly type: "string";
6724
- readonly format: "at-uri";
6725
- };
6726
- readonly maxLength: 25;
6727
- };
6728
- };
6729
- };
6730
- readonly output: {
6731
- readonly encoding: "application/json";
6732
- readonly schema: {
6733
- readonly type: "object";
6734
- readonly required: ["posts"];
6735
- readonly properties: {
6736
- readonly posts: {
6737
- readonly type: "array";
6738
- readonly items: {
6739
- readonly type: "ref";
6740
- readonly ref: "lex:app.bsky.feed.defs#postView";
6741
- };
6742
- };
6743
- };
6744
- };
6745
- };
6746
- };
6747
- };
6748
- };
6749
6749
  readonly AppBskyFeedGetQuotes: {
6750
6750
  readonly lexicon: 1;
6751
6751
  readonly id: "app.bsky.feed.getQuotes";
@@ -9032,6 +9032,132 @@ export declare const schemaDict: {
9032
9032
  readonly type: "object";
9033
9033
  readonly properties: {};
9034
9034
  };
9035
+ readonly chatPreference: {
9036
+ readonly type: "object";
9037
+ readonly required: ["filter", "push"];
9038
+ readonly properties: {
9039
+ readonly filter: {
9040
+ readonly type: "string";
9041
+ readonly knownValues: ["all", "accepted"];
9042
+ };
9043
+ readonly push: {
9044
+ readonly type: "boolean";
9045
+ };
9046
+ };
9047
+ };
9048
+ readonly filterablePreference: {
9049
+ readonly type: "object";
9050
+ readonly required: ["filter", "list", "push"];
9051
+ readonly properties: {
9052
+ readonly filter: {
9053
+ readonly type: "string";
9054
+ readonly knownValues: ["all", "follows"];
9055
+ };
9056
+ readonly list: {
9057
+ readonly type: "boolean";
9058
+ };
9059
+ readonly push: {
9060
+ readonly type: "boolean";
9061
+ };
9062
+ };
9063
+ };
9064
+ readonly preference: {
9065
+ readonly type: "object";
9066
+ readonly required: ["list", "push"];
9067
+ readonly properties: {
9068
+ readonly list: {
9069
+ readonly type: "boolean";
9070
+ };
9071
+ readonly push: {
9072
+ readonly type: "boolean";
9073
+ };
9074
+ };
9075
+ };
9076
+ readonly preferences: {
9077
+ readonly type: "object";
9078
+ readonly required: ["chat", "follow", "like", "likeViaRepost", "mention", "quote", "reply", "repost", "repostViaRepost", "starterpackJoined", "subscribedPost", "unverified", "verified"];
9079
+ readonly properties: {
9080
+ readonly chat: {
9081
+ readonly type: "ref";
9082
+ readonly ref: "lex:app.bsky.notification.defs#chatPreference";
9083
+ };
9084
+ readonly follow: {
9085
+ readonly type: "ref";
9086
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
9087
+ };
9088
+ readonly like: {
9089
+ readonly type: "ref";
9090
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
9091
+ };
9092
+ readonly likeViaRepost: {
9093
+ readonly type: "ref";
9094
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
9095
+ };
9096
+ readonly mention: {
9097
+ readonly type: "ref";
9098
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
9099
+ };
9100
+ readonly quote: {
9101
+ readonly type: "ref";
9102
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
9103
+ };
9104
+ readonly reply: {
9105
+ readonly type: "ref";
9106
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
9107
+ };
9108
+ readonly repost: {
9109
+ readonly type: "ref";
9110
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
9111
+ };
9112
+ readonly repostViaRepost: {
9113
+ readonly type: "ref";
9114
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
9115
+ };
9116
+ readonly starterpackJoined: {
9117
+ readonly type: "ref";
9118
+ readonly ref: "lex:app.bsky.notification.defs#preference";
9119
+ };
9120
+ readonly subscribedPost: {
9121
+ readonly type: "ref";
9122
+ readonly ref: "lex:app.bsky.notification.defs#preference";
9123
+ };
9124
+ readonly unverified: {
9125
+ readonly type: "ref";
9126
+ readonly ref: "lex:app.bsky.notification.defs#preference";
9127
+ };
9128
+ readonly verified: {
9129
+ readonly type: "ref";
9130
+ readonly ref: "lex:app.bsky.notification.defs#preference";
9131
+ };
9132
+ };
9133
+ };
9134
+ };
9135
+ };
9136
+ readonly AppBskyNotificationGetPreferences: {
9137
+ readonly lexicon: 1;
9138
+ readonly id: "app.bsky.notification.getPreferences";
9139
+ readonly defs: {
9140
+ readonly main: {
9141
+ readonly type: "query";
9142
+ readonly description: "Get notification-related preferences for an account. Requires auth.";
9143
+ readonly parameters: {
9144
+ readonly type: "params";
9145
+ readonly properties: {};
9146
+ };
9147
+ readonly output: {
9148
+ readonly encoding: "application/json";
9149
+ readonly schema: {
9150
+ readonly type: "object";
9151
+ readonly required: ["preferences"];
9152
+ readonly properties: {
9153
+ readonly preferences: {
9154
+ readonly type: "ref";
9155
+ readonly ref: "lex:app.bsky.notification.defs#preferences";
9156
+ };
9157
+ };
9158
+ };
9159
+ };
9160
+ };
9035
9161
  };
9036
9162
  };
9037
9163
  readonly AppBskyNotificationGetUnreadCount: {
@@ -9199,6 +9325,89 @@ export declare const schemaDict: {
9199
9325
  };
9200
9326
  };
9201
9327
  };
9328
+ readonly AppBskyNotificationPutPreferencesV2: {
9329
+ readonly lexicon: 1;
9330
+ readonly id: "app.bsky.notification.putPreferencesV2";
9331
+ readonly defs: {
9332
+ readonly main: {
9333
+ readonly type: "procedure";
9334
+ readonly description: "Set notification-related preferences for an account. Requires auth.";
9335
+ readonly input: {
9336
+ readonly encoding: "application/json";
9337
+ readonly schema: {
9338
+ readonly type: "object";
9339
+ readonly properties: {
9340
+ readonly chat: {
9341
+ readonly type: "ref";
9342
+ readonly ref: "lex:app.bsky.notification.defs#chatPreference";
9343
+ };
9344
+ readonly follow: {
9345
+ readonly type: "ref";
9346
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
9347
+ };
9348
+ readonly like: {
9349
+ readonly type: "ref";
9350
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
9351
+ };
9352
+ readonly likeViaRepost: {
9353
+ readonly type: "ref";
9354
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
9355
+ };
9356
+ readonly mention: {
9357
+ readonly type: "ref";
9358
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
9359
+ };
9360
+ readonly quote: {
9361
+ readonly type: "ref";
9362
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
9363
+ };
9364
+ readonly reply: {
9365
+ readonly type: "ref";
9366
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
9367
+ };
9368
+ readonly repost: {
9369
+ readonly type: "ref";
9370
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
9371
+ };
9372
+ readonly repostViaRepost: {
9373
+ readonly type: "ref";
9374
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
9375
+ };
9376
+ readonly starterpackJoined: {
9377
+ readonly type: "ref";
9378
+ readonly ref: "lex:app.bsky.notification.defs#preference";
9379
+ };
9380
+ readonly subscribedPost: {
9381
+ readonly type: "ref";
9382
+ readonly ref: "lex:app.bsky.notification.defs#preference";
9383
+ };
9384
+ readonly unverified: {
9385
+ readonly type: "ref";
9386
+ readonly ref: "lex:app.bsky.notification.defs#preference";
9387
+ };
9388
+ readonly verified: {
9389
+ readonly type: "ref";
9390
+ readonly ref: "lex:app.bsky.notification.defs#preference";
9391
+ };
9392
+ };
9393
+ };
9394
+ };
9395
+ readonly output: {
9396
+ readonly encoding: "application/json";
9397
+ readonly schema: {
9398
+ readonly type: "object";
9399
+ readonly required: ["preferences"];
9400
+ readonly properties: {
9401
+ readonly preferences: {
9402
+ readonly type: "ref";
9403
+ readonly ref: "lex:app.bsky.notification.defs#preferences";
9404
+ };
9405
+ };
9406
+ };
9407
+ };
9408
+ };
9409
+ };
9410
+ };
9202
9411
  readonly AppBskyNotificationRegisterPush: {
9203
9412
  readonly lexicon: 1;
9204
9413
  readonly id: "app.bsky.notification.registerPush";
@@ -9593,13 +9802,13 @@ export declare const schemaDict: {
9593
9802
  };
9594
9803
  };
9595
9804
  };
9596
- readonly AppBskyUnspeccedGetPostThreadHiddenV2: {
9805
+ readonly AppBskyUnspeccedGetPostThreadOtherV2: {
9597
9806
  readonly lexicon: 1;
9598
- readonly id: "app.bsky.unspecced.getPostThreadHiddenV2";
9807
+ readonly id: "app.bsky.unspecced.getPostThreadOtherV2";
9599
9808
  readonly defs: {
9600
9809
  readonly main: {
9601
9810
  readonly type: "query";
9602
- readonly description: "(NOTE: this endpoint is under development and WILL change without notice. Don't use it until it is moved out of `unspecced` or your application WILL break) Get the hidden posts in a thread. It is based in an anchor post at any depth of the tree, and returns hidden replies (recursive replies, with branching to their replies) below the anchor. It does not include ancestors nor the anchor. This should be called after exhausting `app.bsky.unspecced.getPostThreadV2`. Does not require auth, but additional metadata and filtering will be applied for authed requests.";
9811
+ readonly description: "(NOTE: this endpoint is under development and WILL change without notice. Don't use it until it is moved out of `unspecced` or your application WILL break) Get additional posts under a thread e.g. replies hidden by threadgate. Based on an anchor post at any depth of the tree, returns top-level replies below that anchor. It does not include ancestors nor the anchor itself. This should be called after exhausting `app.bsky.unspecced.getPostThreadV2`. Does not require auth, but additional metadata and filtering will be applied for authed requests.";
9603
9812
  readonly parameters: {
9604
9813
  readonly type: "params";
9605
9814
  readonly required: ["anchor"];
@@ -9624,17 +9833,17 @@ export declare const schemaDict: {
9624
9833
  readonly properties: {
9625
9834
  readonly thread: {
9626
9835
  readonly type: "array";
9627
- readonly description: "A flat list of hidden thread items. The depth of each item is indicated by the depth property inside the item.";
9836
+ readonly description: "A flat list of other thread items. The depth of each item is indicated by the depth property inside the item.";
9628
9837
  readonly items: {
9629
9838
  readonly type: "ref";
9630
- readonly ref: "lex:app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItem";
9839
+ readonly ref: "lex:app.bsky.unspecced.getPostThreadOtherV2#threadItem";
9631
9840
  };
9632
9841
  };
9633
9842
  };
9634
9843
  };
9635
9844
  };
9636
9845
  };
9637
- readonly threadHiddenItem: {
9846
+ readonly threadItem: {
9638
9847
  readonly type: "object";
9639
9848
  readonly required: ["uri", "depth", "value"];
9640
9849
  readonly properties: {
@@ -9706,7 +9915,7 @@ export declare const schemaDict: {
9706
9915
  readonly encoding: "application/json";
9707
9916
  readonly schema: {
9708
9917
  readonly type: "object";
9709
- readonly required: ["thread", "hasHiddenReplies"];
9918
+ readonly required: ["thread", "hasOtherReplies"];
9710
9919
  readonly properties: {
9711
9920
  readonly thread: {
9712
9921
  readonly type: "array";
@@ -9720,9 +9929,9 @@ export declare const schemaDict: {
9720
9929
  readonly type: "ref";
9721
9930
  readonly ref: "lex:app.bsky.feed.defs#threadgateView";
9722
9931
  };
9723
- readonly hasHiddenReplies: {
9932
+ readonly hasOtherReplies: {
9724
9933
  readonly type: "boolean";
9725
- readonly description: "Whether this thread has hidden replies. If true, a call can be made to the `getPostThreadHiddenV2` endpoint to retrieve them.";
9934
+ readonly description: "Whether this thread has additional replies. If true, a call can be made to the `getPostThreadOtherV2` endpoint to retrieve them.";
9726
9935
  };
9727
9936
  };
9728
9937
  };
@@ -18378,6 +18587,46 @@ export declare const schemas: ({
18378
18587
  }];
18379
18588
  };
18380
18589
  };
18590
+ } | {
18591
+ readonly lexicon: 1;
18592
+ readonly id: "app.bsky.feed.getPosts";
18593
+ readonly defs: {
18594
+ readonly main: {
18595
+ readonly type: "query";
18596
+ readonly description: "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.";
18597
+ readonly parameters: {
18598
+ readonly type: "params";
18599
+ readonly required: ["uris"];
18600
+ readonly properties: {
18601
+ readonly uris: {
18602
+ readonly type: "array";
18603
+ readonly description: "List of post AT-URIs to return hydrated views for.";
18604
+ readonly items: {
18605
+ readonly type: "string";
18606
+ readonly format: "at-uri";
18607
+ };
18608
+ readonly maxLength: 25;
18609
+ };
18610
+ };
18611
+ };
18612
+ readonly output: {
18613
+ readonly encoding: "application/json";
18614
+ readonly schema: {
18615
+ readonly type: "object";
18616
+ readonly required: ["posts"];
18617
+ readonly properties: {
18618
+ readonly posts: {
18619
+ readonly type: "array";
18620
+ readonly items: {
18621
+ readonly type: "ref";
18622
+ readonly ref: "lex:app.bsky.feed.defs#postView";
18623
+ };
18624
+ };
18625
+ };
18626
+ };
18627
+ };
18628
+ };
18629
+ };
18381
18630
  } | {
18382
18631
  readonly lexicon: 1;
18383
18632
  readonly id: "app.bsky.feed.getPostThread";
@@ -18432,46 +18681,6 @@ export declare const schemas: ({
18432
18681
  }];
18433
18682
  };
18434
18683
  };
18435
- } | {
18436
- readonly lexicon: 1;
18437
- readonly id: "app.bsky.feed.getPosts";
18438
- readonly defs: {
18439
- readonly main: {
18440
- readonly type: "query";
18441
- readonly description: "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.";
18442
- readonly parameters: {
18443
- readonly type: "params";
18444
- readonly required: ["uris"];
18445
- readonly properties: {
18446
- readonly uris: {
18447
- readonly type: "array";
18448
- readonly description: "List of post AT-URIs to return hydrated views for.";
18449
- readonly items: {
18450
- readonly type: "string";
18451
- readonly format: "at-uri";
18452
- };
18453
- readonly maxLength: 25;
18454
- };
18455
- };
18456
- };
18457
- readonly output: {
18458
- readonly encoding: "application/json";
18459
- readonly schema: {
18460
- readonly type: "object";
18461
- readonly required: ["posts"];
18462
- readonly properties: {
18463
- readonly posts: {
18464
- readonly type: "array";
18465
- readonly items: {
18466
- readonly type: "ref";
18467
- readonly ref: "lex:app.bsky.feed.defs#postView";
18468
- };
18469
- };
18470
- };
18471
- };
18472
- };
18473
- };
18474
- };
18475
18684
  } | {
18476
18685
  readonly lexicon: 1;
18477
18686
  readonly id: "app.bsky.feed.getQuotes";
@@ -20715,6 +20924,131 @@ export declare const schemas: ({
20715
20924
  readonly type: "object";
20716
20925
  readonly properties: {};
20717
20926
  };
20927
+ readonly chatPreference: {
20928
+ readonly type: "object";
20929
+ readonly required: ["filter", "push"];
20930
+ readonly properties: {
20931
+ readonly filter: {
20932
+ readonly type: "string";
20933
+ readonly knownValues: ["all", "accepted"];
20934
+ };
20935
+ readonly push: {
20936
+ readonly type: "boolean";
20937
+ };
20938
+ };
20939
+ };
20940
+ readonly filterablePreference: {
20941
+ readonly type: "object";
20942
+ readonly required: ["filter", "list", "push"];
20943
+ readonly properties: {
20944
+ readonly filter: {
20945
+ readonly type: "string";
20946
+ readonly knownValues: ["all", "follows"];
20947
+ };
20948
+ readonly list: {
20949
+ readonly type: "boolean";
20950
+ };
20951
+ readonly push: {
20952
+ readonly type: "boolean";
20953
+ };
20954
+ };
20955
+ };
20956
+ readonly preference: {
20957
+ readonly type: "object";
20958
+ readonly required: ["list", "push"];
20959
+ readonly properties: {
20960
+ readonly list: {
20961
+ readonly type: "boolean";
20962
+ };
20963
+ readonly push: {
20964
+ readonly type: "boolean";
20965
+ };
20966
+ };
20967
+ };
20968
+ readonly preferences: {
20969
+ readonly type: "object";
20970
+ readonly required: ["chat", "follow", "like", "likeViaRepost", "mention", "quote", "reply", "repost", "repostViaRepost", "starterpackJoined", "subscribedPost", "unverified", "verified"];
20971
+ readonly properties: {
20972
+ readonly chat: {
20973
+ readonly type: "ref";
20974
+ readonly ref: "lex:app.bsky.notification.defs#chatPreference";
20975
+ };
20976
+ readonly follow: {
20977
+ readonly type: "ref";
20978
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
20979
+ };
20980
+ readonly like: {
20981
+ readonly type: "ref";
20982
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
20983
+ };
20984
+ readonly likeViaRepost: {
20985
+ readonly type: "ref";
20986
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
20987
+ };
20988
+ readonly mention: {
20989
+ readonly type: "ref";
20990
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
20991
+ };
20992
+ readonly quote: {
20993
+ readonly type: "ref";
20994
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
20995
+ };
20996
+ readonly reply: {
20997
+ readonly type: "ref";
20998
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
20999
+ };
21000
+ readonly repost: {
21001
+ readonly type: "ref";
21002
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
21003
+ };
21004
+ readonly repostViaRepost: {
21005
+ readonly type: "ref";
21006
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
21007
+ };
21008
+ readonly starterpackJoined: {
21009
+ readonly type: "ref";
21010
+ readonly ref: "lex:app.bsky.notification.defs#preference";
21011
+ };
21012
+ readonly subscribedPost: {
21013
+ readonly type: "ref";
21014
+ readonly ref: "lex:app.bsky.notification.defs#preference";
21015
+ };
21016
+ readonly unverified: {
21017
+ readonly type: "ref";
21018
+ readonly ref: "lex:app.bsky.notification.defs#preference";
21019
+ };
21020
+ readonly verified: {
21021
+ readonly type: "ref";
21022
+ readonly ref: "lex:app.bsky.notification.defs#preference";
21023
+ };
21024
+ };
21025
+ };
21026
+ };
21027
+ } | {
21028
+ readonly lexicon: 1;
21029
+ readonly id: "app.bsky.notification.getPreferences";
21030
+ readonly defs: {
21031
+ readonly main: {
21032
+ readonly type: "query";
21033
+ readonly description: "Get notification-related preferences for an account. Requires auth.";
21034
+ readonly parameters: {
21035
+ readonly type: "params";
21036
+ readonly properties: {};
21037
+ };
21038
+ readonly output: {
21039
+ readonly encoding: "application/json";
21040
+ readonly schema: {
21041
+ readonly type: "object";
21042
+ readonly required: ["preferences"];
21043
+ readonly properties: {
21044
+ readonly preferences: {
21045
+ readonly type: "ref";
21046
+ readonly ref: "lex:app.bsky.notification.defs#preferences";
21047
+ };
21048
+ };
21049
+ };
21050
+ };
21051
+ };
20718
21052
  };
20719
21053
  } | {
20720
21054
  readonly lexicon: 1;
@@ -20878,6 +21212,88 @@ export declare const schemas: ({
20878
21212
  };
20879
21213
  };
20880
21214
  };
21215
+ } | {
21216
+ readonly lexicon: 1;
21217
+ readonly id: "app.bsky.notification.putPreferencesV2";
21218
+ readonly defs: {
21219
+ readonly main: {
21220
+ readonly type: "procedure";
21221
+ readonly description: "Set notification-related preferences for an account. Requires auth.";
21222
+ readonly input: {
21223
+ readonly encoding: "application/json";
21224
+ readonly schema: {
21225
+ readonly type: "object";
21226
+ readonly properties: {
21227
+ readonly chat: {
21228
+ readonly type: "ref";
21229
+ readonly ref: "lex:app.bsky.notification.defs#chatPreference";
21230
+ };
21231
+ readonly follow: {
21232
+ readonly type: "ref";
21233
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
21234
+ };
21235
+ readonly like: {
21236
+ readonly type: "ref";
21237
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
21238
+ };
21239
+ readonly likeViaRepost: {
21240
+ readonly type: "ref";
21241
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
21242
+ };
21243
+ readonly mention: {
21244
+ readonly type: "ref";
21245
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
21246
+ };
21247
+ readonly quote: {
21248
+ readonly type: "ref";
21249
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
21250
+ };
21251
+ readonly reply: {
21252
+ readonly type: "ref";
21253
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
21254
+ };
21255
+ readonly repost: {
21256
+ readonly type: "ref";
21257
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
21258
+ };
21259
+ readonly repostViaRepost: {
21260
+ readonly type: "ref";
21261
+ readonly ref: "lex:app.bsky.notification.defs#filterablePreference";
21262
+ };
21263
+ readonly starterpackJoined: {
21264
+ readonly type: "ref";
21265
+ readonly ref: "lex:app.bsky.notification.defs#preference";
21266
+ };
21267
+ readonly subscribedPost: {
21268
+ readonly type: "ref";
21269
+ readonly ref: "lex:app.bsky.notification.defs#preference";
21270
+ };
21271
+ readonly unverified: {
21272
+ readonly type: "ref";
21273
+ readonly ref: "lex:app.bsky.notification.defs#preference";
21274
+ };
21275
+ readonly verified: {
21276
+ readonly type: "ref";
21277
+ readonly ref: "lex:app.bsky.notification.defs#preference";
21278
+ };
21279
+ };
21280
+ };
21281
+ };
21282
+ readonly output: {
21283
+ readonly encoding: "application/json";
21284
+ readonly schema: {
21285
+ readonly type: "object";
21286
+ readonly required: ["preferences"];
21287
+ readonly properties: {
21288
+ readonly preferences: {
21289
+ readonly type: "ref";
21290
+ readonly ref: "lex:app.bsky.notification.defs#preferences";
21291
+ };
21292
+ };
21293
+ };
21294
+ };
21295
+ };
21296
+ };
20881
21297
  } | {
20882
21298
  readonly lexicon: 1;
20883
21299
  readonly id: "app.bsky.notification.registerPush";
@@ -21268,11 +21684,11 @@ export declare const schemas: ({
21268
21684
  };
21269
21685
  } | {
21270
21686
  readonly lexicon: 1;
21271
- readonly id: "app.bsky.unspecced.getPostThreadHiddenV2";
21687
+ readonly id: "app.bsky.unspecced.getPostThreadOtherV2";
21272
21688
  readonly defs: {
21273
21689
  readonly main: {
21274
21690
  readonly type: "query";
21275
- readonly description: "(NOTE: this endpoint is under development and WILL change without notice. Don't use it until it is moved out of `unspecced` or your application WILL break) Get the hidden posts in a thread. It is based in an anchor post at any depth of the tree, and returns hidden replies (recursive replies, with branching to their replies) below the anchor. It does not include ancestors nor the anchor. This should be called after exhausting `app.bsky.unspecced.getPostThreadV2`. Does not require auth, but additional metadata and filtering will be applied for authed requests.";
21691
+ readonly description: "(NOTE: this endpoint is under development and WILL change without notice. Don't use it until it is moved out of `unspecced` or your application WILL break) Get additional posts under a thread e.g. replies hidden by threadgate. Based on an anchor post at any depth of the tree, returns top-level replies below that anchor. It does not include ancestors nor the anchor itself. This should be called after exhausting `app.bsky.unspecced.getPostThreadV2`. Does not require auth, but additional metadata and filtering will be applied for authed requests.";
21276
21692
  readonly parameters: {
21277
21693
  readonly type: "params";
21278
21694
  readonly required: ["anchor"];
@@ -21297,17 +21713,17 @@ export declare const schemas: ({
21297
21713
  readonly properties: {
21298
21714
  readonly thread: {
21299
21715
  readonly type: "array";
21300
- readonly description: "A flat list of hidden thread items. The depth of each item is indicated by the depth property inside the item.";
21716
+ readonly description: "A flat list of other thread items. The depth of each item is indicated by the depth property inside the item.";
21301
21717
  readonly items: {
21302
21718
  readonly type: "ref";
21303
- readonly ref: "lex:app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItem";
21719
+ readonly ref: "lex:app.bsky.unspecced.getPostThreadOtherV2#threadItem";
21304
21720
  };
21305
21721
  };
21306
21722
  };
21307
21723
  };
21308
21724
  };
21309
21725
  };
21310
- readonly threadHiddenItem: {
21726
+ readonly threadItem: {
21311
21727
  readonly type: "object";
21312
21728
  readonly required: ["uri", "depth", "value"];
21313
21729
  readonly properties: {
@@ -21378,7 +21794,7 @@ export declare const schemas: ({
21378
21794
  readonly encoding: "application/json";
21379
21795
  readonly schema: {
21380
21796
  readonly type: "object";
21381
- readonly required: ["thread", "hasHiddenReplies"];
21797
+ readonly required: ["thread", "hasOtherReplies"];
21382
21798
  readonly properties: {
21383
21799
  readonly thread: {
21384
21800
  readonly type: "array";
@@ -21392,9 +21808,9 @@ export declare const schemas: ({
21392
21808
  readonly type: "ref";
21393
21809
  readonly ref: "lex:app.bsky.feed.defs#threadgateView";
21394
21810
  };
21395
- readonly hasHiddenReplies: {
21811
+ readonly hasOtherReplies: {
21396
21812
  readonly type: "boolean";
21397
- readonly description: "Whether this thread has hidden replies. If true, a call can be made to the `getPostThreadHiddenV2` endpoint to retrieve them.";
21813
+ readonly description: "Whether this thread has additional replies. If true, a call can be made to the `getPostThreadOtherV2` endpoint to retrieve them.";
21398
21814
  };
21399
21815
  };
21400
21816
  };
@@ -23605,8 +24021,8 @@ export declare const ids: {
23605
24021
  readonly AppBskyFeedGetFeedSkeleton: "app.bsky.feed.getFeedSkeleton";
23606
24022
  readonly AppBskyFeedGetLikes: "app.bsky.feed.getLikes";
23607
24023
  readonly AppBskyFeedGetListFeed: "app.bsky.feed.getListFeed";
23608
- readonly AppBskyFeedGetPostThread: "app.bsky.feed.getPostThread";
23609
24024
  readonly AppBskyFeedGetPosts: "app.bsky.feed.getPosts";
24025
+ readonly AppBskyFeedGetPostThread: "app.bsky.feed.getPostThread";
23610
24026
  readonly AppBskyFeedGetQuotes: "app.bsky.feed.getQuotes";
23611
24027
  readonly AppBskyFeedGetRepostedBy: "app.bsky.feed.getRepostedBy";
23612
24028
  readonly AppBskyFeedGetSuggestedFeeds: "app.bsky.feed.getSuggestedFeeds";
@@ -23651,16 +24067,18 @@ export declare const ids: {
23651
24067
  readonly AppBskyLabelerGetServices: "app.bsky.labeler.getServices";
23652
24068
  readonly AppBskyLabelerService: "app.bsky.labeler.service";
23653
24069
  readonly AppBskyNotificationDefs: "app.bsky.notification.defs";
24070
+ readonly AppBskyNotificationGetPreferences: "app.bsky.notification.getPreferences";
23654
24071
  readonly AppBskyNotificationGetUnreadCount: "app.bsky.notification.getUnreadCount";
23655
24072
  readonly AppBskyNotificationListNotifications: "app.bsky.notification.listNotifications";
23656
24073
  readonly AppBskyNotificationPutPreferences: "app.bsky.notification.putPreferences";
24074
+ readonly AppBskyNotificationPutPreferencesV2: "app.bsky.notification.putPreferencesV2";
23657
24075
  readonly AppBskyNotificationRegisterPush: "app.bsky.notification.registerPush";
23658
24076
  readonly AppBskyNotificationUpdateSeen: "app.bsky.notification.updateSeen";
23659
24077
  readonly AppBskyRichtextFacet: "app.bsky.richtext.facet";
23660
24078
  readonly AppBskyUnspeccedDefs: "app.bsky.unspecced.defs";
23661
24079
  readonly AppBskyUnspeccedGetConfig: "app.bsky.unspecced.getConfig";
23662
24080
  readonly AppBskyUnspeccedGetPopularFeedGenerators: "app.bsky.unspecced.getPopularFeedGenerators";
23663
- readonly AppBskyUnspeccedGetPostThreadHiddenV2: "app.bsky.unspecced.getPostThreadHiddenV2";
24081
+ readonly AppBskyUnspeccedGetPostThreadOtherV2: "app.bsky.unspecced.getPostThreadOtherV2";
23664
24082
  readonly AppBskyUnspeccedGetPostThreadV2: "app.bsky.unspecced.getPostThreadV2";
23665
24083
  readonly AppBskyUnspeccedGetSuggestedFeeds: "app.bsky.unspecced.getSuggestedFeeds";
23666
24084
  readonly AppBskyUnspeccedGetSuggestedFeedsSkeleton: "app.bsky.unspecced.getSuggestedFeedsSkeleton";