@atproto/bsky 0.0.151 → 0.0.153
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 +14 -0
- package/dist/api/app/bsky/unspecced/getPostThreadHiddenV2.d.ts +4 -0
- package/dist/api/app/bsky/unspecced/getPostThreadHiddenV2.d.ts.map +1 -0
- package/dist/api/app/bsky/unspecced/getPostThreadHiddenV2.js +77 -0
- package/dist/api/app/bsky/unspecced/getPostThreadHiddenV2.js.map +1 -0
- package/dist/api/app/bsky/unspecced/getPostThreadV2.d.ts +4 -0
- package/dist/api/app/bsky/unspecced/getPostThreadV2.d.ts.map +1 -0
- package/dist/api/app/bsky/unspecced/getPostThreadV2.js +86 -0
- package/dist/api/app/bsky/unspecced/getPostThreadV2.js.map +1 -0
- package/dist/api/com/atproto/repo/getRecord.d.ts.map +1 -1
- package/dist/api/com/atproto/repo/getRecord.js +1 -1
- package/dist/api/com/atproto/repo/getRecord.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/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +17 -0
- package/dist/config.js.map +1 -1
- package/dist/data-plane/server/db/migrations/20250528T221913281Z-add-record-tags.d.ts +4 -0
- package/dist/data-plane/server/db/migrations/20250528T221913281Z-add-record-tags.d.ts.map +1 -0
- package/dist/data-plane/server/db/migrations/20250528T221913281Z-add-record-tags.js +11 -0
- package/dist/data-plane/server/db/migrations/20250528T221913281Z-add-record-tags.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/record.d.ts +1 -0
- package/dist/data-plane/server/db/tables/record.d.ts.map +1 -1
- package/dist/data-plane/server/db/tables/record.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/hydration/feed.d.ts +1 -0
- package/dist/hydration/feed.d.ts.map +1 -1
- package/dist/hydration/feed.js +2 -0
- package/dist/hydration/feed.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lexicon/index.d.ts +6 -2
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +12 -4
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +508 -82
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +264 -42
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.d.ts +63 -0
- package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.js +25 -0
- package/dist/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.js.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/getPostThreadV2.d.ts +92 -0
- package/dist/lexicon/types/app/bsky/unspecced/getPostThreadV2.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/unspecced/getPostThreadV2.js +52 -0
- package/dist/lexicon/types/app/bsky/unspecced/getPostThreadV2.js.map +1 -0
- package/dist/proto/bsky_pb.d.ts +4 -0
- package/dist/proto/bsky_pb.d.ts.map +1 -1
- package/dist/proto/bsky_pb.js +16 -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 +150 -0
- package/dist/proto/bsync_pb.d.ts.map +1 -1
- package/dist/proto/bsync_pb.js +401 -1
- package/dist/proto/bsync_pb.js.map +1 -1
- package/dist/views/index.d.ts +40 -0
- package/dist/views/index.d.ts.map +1 -1
- package/dist/views/index.js +499 -0
- package/dist/views/index.js.map +1 -1
- package/dist/views/threads-v2.d.ts +65 -0
- package/dist/views/threads-v2.d.ts.map +1 -0
- package/dist/views/threads-v2.js +205 -0
- package/dist/views/threads-v2.js.map +1 -0
- package/package.json +5 -5
- package/proto/bsky.proto +1 -0
- package/src/api/app/bsky/unspecced/getPostThreadHiddenV2.ts +117 -0
- package/src/api/app/bsky/unspecced/getPostThreadV2.ts +130 -0
- package/src/api/com/atproto/repo/getRecord.ts +4 -1
- package/src/api/index.ts +4 -0
- package/src/config.ts +24 -0
- package/src/data-plane/server/db/migrations/20250528T221913281Z-add-record-tags.ts +9 -0
- package/src/data-plane/server/db/migrations/index.ts +1 -0
- package/src/data-plane/server/db/tables/record.ts +1 -0
- package/src/data-plane/server/routes/records.ts +1 -0
- package/src/hydration/feed.ts +4 -0
- package/src/index.ts +2 -0
- package/src/lexicon/index.ts +33 -9
- package/src/lexicon/lexicons.ts +284 -43
- package/src/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.ts +95 -0
- package/src/lexicon/types/app/bsky/unspecced/getPostThreadV2.ts +160 -0
- package/src/proto/bsky_pb.ts +12 -0
- package/src/proto/bsync_connect.ts +22 -0
- package/src/proto/bsync_pb.ts +355 -0
- package/src/views/index.ts +780 -0
- package/src/views/threads-v2.ts +381 -0
- package/tests/seed/thread-v2.ts +874 -0
- package/tests/seed/util.ts +52 -0
- package/tests/views/__snapshots__/thread-v2.test.ts.snap +1091 -0
- package/tests/views/thread-v2.test.ts +2121 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +1 -1
|
@@ -6650,47 +6650,6 @@ 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
|
-
};
|
|
6694
6653
|
readonly AppBskyFeedGetPostThread: {
|
|
6695
6654
|
readonly lexicon: 1;
|
|
6696
6655
|
readonly id: "app.bsky.feed.getPostThread";
|
|
@@ -6746,6 +6705,47 @@ export declare const schemaDict: {
|
|
|
6746
6705
|
};
|
|
6747
6706
|
};
|
|
6748
6707
|
};
|
|
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";
|
|
@@ -9545,6 +9545,219 @@ export declare const schemaDict: {
|
|
|
9545
9545
|
};
|
|
9546
9546
|
};
|
|
9547
9547
|
};
|
|
9548
|
+
readonly AppBskyUnspeccedGetPostThreadHiddenV2: {
|
|
9549
|
+
readonly lexicon: 1;
|
|
9550
|
+
readonly id: "app.bsky.unspecced.getPostThreadHiddenV2";
|
|
9551
|
+
readonly defs: {
|
|
9552
|
+
readonly main: {
|
|
9553
|
+
readonly type: "query";
|
|
9554
|
+
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.";
|
|
9555
|
+
readonly parameters: {
|
|
9556
|
+
readonly type: "params";
|
|
9557
|
+
readonly required: ["anchor"];
|
|
9558
|
+
readonly properties: {
|
|
9559
|
+
readonly anchor: {
|
|
9560
|
+
readonly type: "string";
|
|
9561
|
+
readonly format: "at-uri";
|
|
9562
|
+
readonly description: "Reference (AT-URI) to post record. This is the anchor post.";
|
|
9563
|
+
};
|
|
9564
|
+
readonly prioritizeFollowedUsers: {
|
|
9565
|
+
readonly type: "boolean";
|
|
9566
|
+
readonly description: "Whether to prioritize posts from followed users. It only has effect when the user is authenticated.";
|
|
9567
|
+
readonly default: false;
|
|
9568
|
+
};
|
|
9569
|
+
};
|
|
9570
|
+
};
|
|
9571
|
+
readonly output: {
|
|
9572
|
+
readonly encoding: "application/json";
|
|
9573
|
+
readonly schema: {
|
|
9574
|
+
readonly type: "object";
|
|
9575
|
+
readonly required: ["thread"];
|
|
9576
|
+
readonly properties: {
|
|
9577
|
+
readonly thread: {
|
|
9578
|
+
readonly type: "array";
|
|
9579
|
+
readonly description: "A flat list of thread hidden items. The depth of each item is indicated by the depth property inside the item.";
|
|
9580
|
+
readonly items: {
|
|
9581
|
+
readonly type: "ref";
|
|
9582
|
+
readonly ref: "lex:app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItem";
|
|
9583
|
+
};
|
|
9584
|
+
};
|
|
9585
|
+
};
|
|
9586
|
+
};
|
|
9587
|
+
};
|
|
9588
|
+
};
|
|
9589
|
+
readonly threadHiddenItem: {
|
|
9590
|
+
readonly type: "object";
|
|
9591
|
+
readonly required: ["uri", "depth", "value"];
|
|
9592
|
+
readonly properties: {
|
|
9593
|
+
readonly uri: {
|
|
9594
|
+
readonly type: "string";
|
|
9595
|
+
readonly format: "at-uri";
|
|
9596
|
+
};
|
|
9597
|
+
readonly depth: {
|
|
9598
|
+
readonly type: "integer";
|
|
9599
|
+
readonly description: "The nesting level of this item in the thread. Depth 0 means the anchor item. Items above have negative depths, items below have positive depths.";
|
|
9600
|
+
};
|
|
9601
|
+
readonly value: {
|
|
9602
|
+
readonly type: "union";
|
|
9603
|
+
readonly refs: ["lex:app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItemPost"];
|
|
9604
|
+
};
|
|
9605
|
+
};
|
|
9606
|
+
};
|
|
9607
|
+
readonly threadHiddenItemPost: {
|
|
9608
|
+
readonly type: "object";
|
|
9609
|
+
readonly required: ["post", "hiddenByThreadgate", "mutedByViewer"];
|
|
9610
|
+
readonly properties: {
|
|
9611
|
+
readonly post: {
|
|
9612
|
+
readonly type: "ref";
|
|
9613
|
+
readonly ref: "lex:app.bsky.feed.defs#postView";
|
|
9614
|
+
};
|
|
9615
|
+
readonly hiddenByThreadgate: {
|
|
9616
|
+
readonly type: "boolean";
|
|
9617
|
+
readonly description: "The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread.";
|
|
9618
|
+
};
|
|
9619
|
+
readonly mutedByViewer: {
|
|
9620
|
+
readonly type: "boolean";
|
|
9621
|
+
readonly description: "This is by an account muted by the viewer requesting it.";
|
|
9622
|
+
};
|
|
9623
|
+
};
|
|
9624
|
+
};
|
|
9625
|
+
};
|
|
9626
|
+
};
|
|
9627
|
+
readonly AppBskyUnspeccedGetPostThreadV2: {
|
|
9628
|
+
readonly lexicon: 1;
|
|
9629
|
+
readonly id: "app.bsky.unspecced.getPostThreadV2";
|
|
9630
|
+
readonly defs: {
|
|
9631
|
+
readonly main: {
|
|
9632
|
+
readonly type: "query";
|
|
9633
|
+
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 posts in a thread. It is based in an anchor post at any depth of the tree, and returns posts above it (recursively resolving the parent, without further branching to their replies) and below it (recursive replies, with branching to their replies). Does not require auth, but additional metadata and filtering will be applied for authed requests.";
|
|
9634
|
+
readonly parameters: {
|
|
9635
|
+
readonly type: "params";
|
|
9636
|
+
readonly required: ["anchor"];
|
|
9637
|
+
readonly properties: {
|
|
9638
|
+
readonly anchor: {
|
|
9639
|
+
readonly type: "string";
|
|
9640
|
+
readonly format: "at-uri";
|
|
9641
|
+
readonly description: "Reference (AT-URI) to post record. This is the anchor post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post.";
|
|
9642
|
+
};
|
|
9643
|
+
readonly above: {
|
|
9644
|
+
readonly type: "boolean";
|
|
9645
|
+
readonly description: "Whether to include parents above the anchor.";
|
|
9646
|
+
readonly default: true;
|
|
9647
|
+
};
|
|
9648
|
+
readonly below: {
|
|
9649
|
+
readonly type: "integer";
|
|
9650
|
+
readonly description: "How many levels of replies to include below the anchor.";
|
|
9651
|
+
readonly default: 6;
|
|
9652
|
+
readonly minimum: 0;
|
|
9653
|
+
readonly maximum: 20;
|
|
9654
|
+
};
|
|
9655
|
+
readonly branchingFactor: {
|
|
9656
|
+
readonly type: "integer";
|
|
9657
|
+
readonly description: "Maximum of replies to include at each level of the thread, except for the direct replies to the anchor, which are (NOTE: currently, during unspecced phase) all returned (NOTE: later they might be paginated).";
|
|
9658
|
+
readonly default: 10;
|
|
9659
|
+
readonly minimum: 0;
|
|
9660
|
+
readonly maximum: 100;
|
|
9661
|
+
};
|
|
9662
|
+
readonly prioritizeFollowedUsers: {
|
|
9663
|
+
readonly type: "boolean";
|
|
9664
|
+
readonly description: "Whether to prioritize posts from followed users. It only has effect when the user is authenticated.";
|
|
9665
|
+
readonly default: false;
|
|
9666
|
+
};
|
|
9667
|
+
readonly sort: {
|
|
9668
|
+
readonly type: "string";
|
|
9669
|
+
readonly description: "Sorting for the thread replies.";
|
|
9670
|
+
readonly knownValues: ["newest", "oldest", "top"];
|
|
9671
|
+
readonly default: "oldest";
|
|
9672
|
+
};
|
|
9673
|
+
};
|
|
9674
|
+
};
|
|
9675
|
+
readonly output: {
|
|
9676
|
+
readonly encoding: "application/json";
|
|
9677
|
+
readonly schema: {
|
|
9678
|
+
readonly type: "object";
|
|
9679
|
+
readonly required: ["thread", "hasHiddenReplies"];
|
|
9680
|
+
readonly properties: {
|
|
9681
|
+
readonly thread: {
|
|
9682
|
+
readonly type: "array";
|
|
9683
|
+
readonly description: "A flat list of thread items. The depth of each item is indicated by the depth property inside the item.";
|
|
9684
|
+
readonly items: {
|
|
9685
|
+
readonly type: "ref";
|
|
9686
|
+
readonly ref: "lex:app.bsky.unspecced.getPostThreadV2#threadItem";
|
|
9687
|
+
};
|
|
9688
|
+
};
|
|
9689
|
+
readonly threadgate: {
|
|
9690
|
+
readonly type: "ref";
|
|
9691
|
+
readonly ref: "lex:app.bsky.feed.defs#threadgateView";
|
|
9692
|
+
};
|
|
9693
|
+
readonly hasHiddenReplies: {
|
|
9694
|
+
readonly type: "boolean";
|
|
9695
|
+
readonly description: "Whether this thread has hidden replies. If true, a call can be made to the `getPostThreadHiddenV2` endpoint to retrieve them.";
|
|
9696
|
+
};
|
|
9697
|
+
};
|
|
9698
|
+
};
|
|
9699
|
+
};
|
|
9700
|
+
};
|
|
9701
|
+
readonly threadItem: {
|
|
9702
|
+
readonly type: "object";
|
|
9703
|
+
readonly required: ["uri", "depth", "value"];
|
|
9704
|
+
readonly properties: {
|
|
9705
|
+
readonly uri: {
|
|
9706
|
+
readonly type: "string";
|
|
9707
|
+
readonly format: "at-uri";
|
|
9708
|
+
};
|
|
9709
|
+
readonly depth: {
|
|
9710
|
+
readonly type: "integer";
|
|
9711
|
+
readonly description: "The nesting level of this item in the thread. Depth 0 means the anchor item. Items above have negative depths, items below have positive depths.";
|
|
9712
|
+
};
|
|
9713
|
+
readonly value: {
|
|
9714
|
+
readonly type: "union";
|
|
9715
|
+
readonly refs: ["lex:app.bsky.unspecced.getPostThreadV2#threadItemPost", "lex:app.bsky.unspecced.getPostThreadV2#threadItemNoUnauthenticated", "lex:app.bsky.unspecced.getPostThreadV2#threadItemNotFound", "lex:app.bsky.unspecced.getPostThreadV2#threadItemBlocked"];
|
|
9716
|
+
};
|
|
9717
|
+
};
|
|
9718
|
+
};
|
|
9719
|
+
readonly threadItemPost: {
|
|
9720
|
+
readonly type: "object";
|
|
9721
|
+
readonly required: ["post", "moreParents", "moreReplies", "opThread"];
|
|
9722
|
+
readonly properties: {
|
|
9723
|
+
readonly post: {
|
|
9724
|
+
readonly type: "ref";
|
|
9725
|
+
readonly ref: "lex:app.bsky.feed.defs#postView";
|
|
9726
|
+
};
|
|
9727
|
+
readonly moreParents: {
|
|
9728
|
+
readonly type: "boolean";
|
|
9729
|
+
readonly description: "This post has more parents that were not present in the response. This is just a boolean, without the number of parents.";
|
|
9730
|
+
};
|
|
9731
|
+
readonly moreReplies: {
|
|
9732
|
+
readonly type: "integer";
|
|
9733
|
+
readonly description: "This post has more replies that were not present in the response. This is a numeric value, which is best-effort and might not be accurate.";
|
|
9734
|
+
};
|
|
9735
|
+
readonly opThread: {
|
|
9736
|
+
readonly type: "boolean";
|
|
9737
|
+
readonly description: "This post is part of a contiguous thread by the OP from the thread root. Many different OP threads can happen in the same thread.";
|
|
9738
|
+
};
|
|
9739
|
+
};
|
|
9740
|
+
};
|
|
9741
|
+
readonly threadItemNoUnauthenticated: {
|
|
9742
|
+
readonly type: "object";
|
|
9743
|
+
readonly properties: {};
|
|
9744
|
+
};
|
|
9745
|
+
readonly threadItemNotFound: {
|
|
9746
|
+
readonly type: "object";
|
|
9747
|
+
readonly properties: {};
|
|
9748
|
+
};
|
|
9749
|
+
readonly threadItemBlocked: {
|
|
9750
|
+
readonly type: "object";
|
|
9751
|
+
readonly required: ["author"];
|
|
9752
|
+
readonly properties: {
|
|
9753
|
+
readonly author: {
|
|
9754
|
+
readonly type: "ref";
|
|
9755
|
+
readonly ref: "lex:app.bsky.feed.defs#blockedAuthor";
|
|
9756
|
+
};
|
|
9757
|
+
};
|
|
9758
|
+
};
|
|
9759
|
+
};
|
|
9760
|
+
};
|
|
9548
9761
|
readonly AppBskyUnspeccedGetSuggestedFeeds: {
|
|
9549
9762
|
readonly lexicon: 1;
|
|
9550
9763
|
readonly id: "app.bsky.unspecced.getSuggestedFeeds";
|
|
@@ -18175,46 +18388,6 @@ export declare const schemas: ({
|
|
|
18175
18388
|
}];
|
|
18176
18389
|
};
|
|
18177
18390
|
};
|
|
18178
|
-
} | {
|
|
18179
|
-
readonly lexicon: 1;
|
|
18180
|
-
readonly id: "app.bsky.feed.getPosts";
|
|
18181
|
-
readonly defs: {
|
|
18182
|
-
readonly main: {
|
|
18183
|
-
readonly type: "query";
|
|
18184
|
-
readonly description: "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.";
|
|
18185
|
-
readonly parameters: {
|
|
18186
|
-
readonly type: "params";
|
|
18187
|
-
readonly required: ["uris"];
|
|
18188
|
-
readonly properties: {
|
|
18189
|
-
readonly uris: {
|
|
18190
|
-
readonly type: "array";
|
|
18191
|
-
readonly description: "List of post AT-URIs to return hydrated views for.";
|
|
18192
|
-
readonly items: {
|
|
18193
|
-
readonly type: "string";
|
|
18194
|
-
readonly format: "at-uri";
|
|
18195
|
-
};
|
|
18196
|
-
readonly maxLength: 25;
|
|
18197
|
-
};
|
|
18198
|
-
};
|
|
18199
|
-
};
|
|
18200
|
-
readonly output: {
|
|
18201
|
-
readonly encoding: "application/json";
|
|
18202
|
-
readonly schema: {
|
|
18203
|
-
readonly type: "object";
|
|
18204
|
-
readonly required: ["posts"];
|
|
18205
|
-
readonly properties: {
|
|
18206
|
-
readonly posts: {
|
|
18207
|
-
readonly type: "array";
|
|
18208
|
-
readonly items: {
|
|
18209
|
-
readonly type: "ref";
|
|
18210
|
-
readonly ref: "lex:app.bsky.feed.defs#postView";
|
|
18211
|
-
};
|
|
18212
|
-
};
|
|
18213
|
-
};
|
|
18214
|
-
};
|
|
18215
|
-
};
|
|
18216
|
-
};
|
|
18217
|
-
};
|
|
18218
18391
|
} | {
|
|
18219
18392
|
readonly lexicon: 1;
|
|
18220
18393
|
readonly id: "app.bsky.feed.getPostThread";
|
|
@@ -18269,6 +18442,46 @@ export declare const schemas: ({
|
|
|
18269
18442
|
}];
|
|
18270
18443
|
};
|
|
18271
18444
|
};
|
|
18445
|
+
} | {
|
|
18446
|
+
readonly lexicon: 1;
|
|
18447
|
+
readonly id: "app.bsky.feed.getPosts";
|
|
18448
|
+
readonly defs: {
|
|
18449
|
+
readonly main: {
|
|
18450
|
+
readonly type: "query";
|
|
18451
|
+
readonly description: "Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.";
|
|
18452
|
+
readonly parameters: {
|
|
18453
|
+
readonly type: "params";
|
|
18454
|
+
readonly required: ["uris"];
|
|
18455
|
+
readonly properties: {
|
|
18456
|
+
readonly uris: {
|
|
18457
|
+
readonly type: "array";
|
|
18458
|
+
readonly description: "List of post AT-URIs to return hydrated views for.";
|
|
18459
|
+
readonly items: {
|
|
18460
|
+
readonly type: "string";
|
|
18461
|
+
readonly format: "at-uri";
|
|
18462
|
+
};
|
|
18463
|
+
readonly maxLength: 25;
|
|
18464
|
+
};
|
|
18465
|
+
};
|
|
18466
|
+
};
|
|
18467
|
+
readonly output: {
|
|
18468
|
+
readonly encoding: "application/json";
|
|
18469
|
+
readonly schema: {
|
|
18470
|
+
readonly type: "object";
|
|
18471
|
+
readonly required: ["posts"];
|
|
18472
|
+
readonly properties: {
|
|
18473
|
+
readonly posts: {
|
|
18474
|
+
readonly type: "array";
|
|
18475
|
+
readonly items: {
|
|
18476
|
+
readonly type: "ref";
|
|
18477
|
+
readonly ref: "lex:app.bsky.feed.defs#postView";
|
|
18478
|
+
};
|
|
18479
|
+
};
|
|
18480
|
+
};
|
|
18481
|
+
};
|
|
18482
|
+
};
|
|
18483
|
+
};
|
|
18484
|
+
};
|
|
18272
18485
|
} | {
|
|
18273
18486
|
readonly lexicon: 1;
|
|
18274
18487
|
readonly id: "app.bsky.feed.getQuotes";
|
|
@@ -21015,6 +21228,217 @@ export declare const schemas: ({
|
|
|
21015
21228
|
};
|
|
21016
21229
|
};
|
|
21017
21230
|
};
|
|
21231
|
+
} | {
|
|
21232
|
+
readonly lexicon: 1;
|
|
21233
|
+
readonly id: "app.bsky.unspecced.getPostThreadHiddenV2";
|
|
21234
|
+
readonly defs: {
|
|
21235
|
+
readonly main: {
|
|
21236
|
+
readonly type: "query";
|
|
21237
|
+
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.";
|
|
21238
|
+
readonly parameters: {
|
|
21239
|
+
readonly type: "params";
|
|
21240
|
+
readonly required: ["anchor"];
|
|
21241
|
+
readonly properties: {
|
|
21242
|
+
readonly anchor: {
|
|
21243
|
+
readonly type: "string";
|
|
21244
|
+
readonly format: "at-uri";
|
|
21245
|
+
readonly description: "Reference (AT-URI) to post record. This is the anchor post.";
|
|
21246
|
+
};
|
|
21247
|
+
readonly prioritizeFollowedUsers: {
|
|
21248
|
+
readonly type: "boolean";
|
|
21249
|
+
readonly description: "Whether to prioritize posts from followed users. It only has effect when the user is authenticated.";
|
|
21250
|
+
readonly default: false;
|
|
21251
|
+
};
|
|
21252
|
+
};
|
|
21253
|
+
};
|
|
21254
|
+
readonly output: {
|
|
21255
|
+
readonly encoding: "application/json";
|
|
21256
|
+
readonly schema: {
|
|
21257
|
+
readonly type: "object";
|
|
21258
|
+
readonly required: ["thread"];
|
|
21259
|
+
readonly properties: {
|
|
21260
|
+
readonly thread: {
|
|
21261
|
+
readonly type: "array";
|
|
21262
|
+
readonly description: "A flat list of thread hidden items. The depth of each item is indicated by the depth property inside the item.";
|
|
21263
|
+
readonly items: {
|
|
21264
|
+
readonly type: "ref";
|
|
21265
|
+
readonly ref: "lex:app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItem";
|
|
21266
|
+
};
|
|
21267
|
+
};
|
|
21268
|
+
};
|
|
21269
|
+
};
|
|
21270
|
+
};
|
|
21271
|
+
};
|
|
21272
|
+
readonly threadHiddenItem: {
|
|
21273
|
+
readonly type: "object";
|
|
21274
|
+
readonly required: ["uri", "depth", "value"];
|
|
21275
|
+
readonly properties: {
|
|
21276
|
+
readonly uri: {
|
|
21277
|
+
readonly type: "string";
|
|
21278
|
+
readonly format: "at-uri";
|
|
21279
|
+
};
|
|
21280
|
+
readonly depth: {
|
|
21281
|
+
readonly type: "integer";
|
|
21282
|
+
readonly description: "The nesting level of this item in the thread. Depth 0 means the anchor item. Items above have negative depths, items below have positive depths.";
|
|
21283
|
+
};
|
|
21284
|
+
readonly value: {
|
|
21285
|
+
readonly type: "union";
|
|
21286
|
+
readonly refs: ["lex:app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItemPost"];
|
|
21287
|
+
};
|
|
21288
|
+
};
|
|
21289
|
+
};
|
|
21290
|
+
readonly threadHiddenItemPost: {
|
|
21291
|
+
readonly type: "object";
|
|
21292
|
+
readonly required: ["post", "hiddenByThreadgate", "mutedByViewer"];
|
|
21293
|
+
readonly properties: {
|
|
21294
|
+
readonly post: {
|
|
21295
|
+
readonly type: "ref";
|
|
21296
|
+
readonly ref: "lex:app.bsky.feed.defs#postView";
|
|
21297
|
+
};
|
|
21298
|
+
readonly hiddenByThreadgate: {
|
|
21299
|
+
readonly type: "boolean";
|
|
21300
|
+
readonly description: "The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread.";
|
|
21301
|
+
};
|
|
21302
|
+
readonly mutedByViewer: {
|
|
21303
|
+
readonly type: "boolean";
|
|
21304
|
+
readonly description: "This is by an account muted by the viewer requesting it.";
|
|
21305
|
+
};
|
|
21306
|
+
};
|
|
21307
|
+
};
|
|
21308
|
+
};
|
|
21309
|
+
} | {
|
|
21310
|
+
readonly lexicon: 1;
|
|
21311
|
+
readonly id: "app.bsky.unspecced.getPostThreadV2";
|
|
21312
|
+
readonly defs: {
|
|
21313
|
+
readonly main: {
|
|
21314
|
+
readonly type: "query";
|
|
21315
|
+
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 posts in a thread. It is based in an anchor post at any depth of the tree, and returns posts above it (recursively resolving the parent, without further branching to their replies) and below it (recursive replies, with branching to their replies). Does not require auth, but additional metadata and filtering will be applied for authed requests.";
|
|
21316
|
+
readonly parameters: {
|
|
21317
|
+
readonly type: "params";
|
|
21318
|
+
readonly required: ["anchor"];
|
|
21319
|
+
readonly properties: {
|
|
21320
|
+
readonly anchor: {
|
|
21321
|
+
readonly type: "string";
|
|
21322
|
+
readonly format: "at-uri";
|
|
21323
|
+
readonly description: "Reference (AT-URI) to post record. This is the anchor post, and the thread will be built around it. It can be any post in the tree, not necessarily a root post.";
|
|
21324
|
+
};
|
|
21325
|
+
readonly above: {
|
|
21326
|
+
readonly type: "boolean";
|
|
21327
|
+
readonly description: "Whether to include parents above the anchor.";
|
|
21328
|
+
readonly default: true;
|
|
21329
|
+
};
|
|
21330
|
+
readonly below: {
|
|
21331
|
+
readonly type: "integer";
|
|
21332
|
+
readonly description: "How many levels of replies to include below the anchor.";
|
|
21333
|
+
readonly default: 6;
|
|
21334
|
+
readonly minimum: 0;
|
|
21335
|
+
readonly maximum: 20;
|
|
21336
|
+
};
|
|
21337
|
+
readonly branchingFactor: {
|
|
21338
|
+
readonly type: "integer";
|
|
21339
|
+
readonly description: "Maximum of replies to include at each level of the thread, except for the direct replies to the anchor, which are (NOTE: currently, during unspecced phase) all returned (NOTE: later they might be paginated).";
|
|
21340
|
+
readonly default: 10;
|
|
21341
|
+
readonly minimum: 0;
|
|
21342
|
+
readonly maximum: 100;
|
|
21343
|
+
};
|
|
21344
|
+
readonly prioritizeFollowedUsers: {
|
|
21345
|
+
readonly type: "boolean";
|
|
21346
|
+
readonly description: "Whether to prioritize posts from followed users. It only has effect when the user is authenticated.";
|
|
21347
|
+
readonly default: false;
|
|
21348
|
+
};
|
|
21349
|
+
readonly sort: {
|
|
21350
|
+
readonly type: "string";
|
|
21351
|
+
readonly description: "Sorting for the thread replies.";
|
|
21352
|
+
readonly knownValues: ["newest", "oldest", "top"];
|
|
21353
|
+
readonly default: "oldest";
|
|
21354
|
+
};
|
|
21355
|
+
};
|
|
21356
|
+
};
|
|
21357
|
+
readonly output: {
|
|
21358
|
+
readonly encoding: "application/json";
|
|
21359
|
+
readonly schema: {
|
|
21360
|
+
readonly type: "object";
|
|
21361
|
+
readonly required: ["thread", "hasHiddenReplies"];
|
|
21362
|
+
readonly properties: {
|
|
21363
|
+
readonly thread: {
|
|
21364
|
+
readonly type: "array";
|
|
21365
|
+
readonly description: "A flat list of thread items. The depth of each item is indicated by the depth property inside the item.";
|
|
21366
|
+
readonly items: {
|
|
21367
|
+
readonly type: "ref";
|
|
21368
|
+
readonly ref: "lex:app.bsky.unspecced.getPostThreadV2#threadItem";
|
|
21369
|
+
};
|
|
21370
|
+
};
|
|
21371
|
+
readonly threadgate: {
|
|
21372
|
+
readonly type: "ref";
|
|
21373
|
+
readonly ref: "lex:app.bsky.feed.defs#threadgateView";
|
|
21374
|
+
};
|
|
21375
|
+
readonly hasHiddenReplies: {
|
|
21376
|
+
readonly type: "boolean";
|
|
21377
|
+
readonly description: "Whether this thread has hidden replies. If true, a call can be made to the `getPostThreadHiddenV2` endpoint to retrieve them.";
|
|
21378
|
+
};
|
|
21379
|
+
};
|
|
21380
|
+
};
|
|
21381
|
+
};
|
|
21382
|
+
};
|
|
21383
|
+
readonly threadItem: {
|
|
21384
|
+
readonly type: "object";
|
|
21385
|
+
readonly required: ["uri", "depth", "value"];
|
|
21386
|
+
readonly properties: {
|
|
21387
|
+
readonly uri: {
|
|
21388
|
+
readonly type: "string";
|
|
21389
|
+
readonly format: "at-uri";
|
|
21390
|
+
};
|
|
21391
|
+
readonly depth: {
|
|
21392
|
+
readonly type: "integer";
|
|
21393
|
+
readonly description: "The nesting level of this item in the thread. Depth 0 means the anchor item. Items above have negative depths, items below have positive depths.";
|
|
21394
|
+
};
|
|
21395
|
+
readonly value: {
|
|
21396
|
+
readonly type: "union";
|
|
21397
|
+
readonly refs: ["lex:app.bsky.unspecced.getPostThreadV2#threadItemPost", "lex:app.bsky.unspecced.getPostThreadV2#threadItemNoUnauthenticated", "lex:app.bsky.unspecced.getPostThreadV2#threadItemNotFound", "lex:app.bsky.unspecced.getPostThreadV2#threadItemBlocked"];
|
|
21398
|
+
};
|
|
21399
|
+
};
|
|
21400
|
+
};
|
|
21401
|
+
readonly threadItemPost: {
|
|
21402
|
+
readonly type: "object";
|
|
21403
|
+
readonly required: ["post", "moreParents", "moreReplies", "opThread"];
|
|
21404
|
+
readonly properties: {
|
|
21405
|
+
readonly post: {
|
|
21406
|
+
readonly type: "ref";
|
|
21407
|
+
readonly ref: "lex:app.bsky.feed.defs#postView";
|
|
21408
|
+
};
|
|
21409
|
+
readonly moreParents: {
|
|
21410
|
+
readonly type: "boolean";
|
|
21411
|
+
readonly description: "This post has more parents that were not present in the response. This is just a boolean, without the number of parents.";
|
|
21412
|
+
};
|
|
21413
|
+
readonly moreReplies: {
|
|
21414
|
+
readonly type: "integer";
|
|
21415
|
+
readonly description: "This post has more replies that were not present in the response. This is a numeric value, which is best-effort and might not be accurate.";
|
|
21416
|
+
};
|
|
21417
|
+
readonly opThread: {
|
|
21418
|
+
readonly type: "boolean";
|
|
21419
|
+
readonly description: "This post is part of a contiguous thread by the OP from the thread root. Many different OP threads can happen in the same thread.";
|
|
21420
|
+
};
|
|
21421
|
+
};
|
|
21422
|
+
};
|
|
21423
|
+
readonly threadItemNoUnauthenticated: {
|
|
21424
|
+
readonly type: "object";
|
|
21425
|
+
readonly properties: {};
|
|
21426
|
+
};
|
|
21427
|
+
readonly threadItemNotFound: {
|
|
21428
|
+
readonly type: "object";
|
|
21429
|
+
readonly properties: {};
|
|
21430
|
+
};
|
|
21431
|
+
readonly threadItemBlocked: {
|
|
21432
|
+
readonly type: "object";
|
|
21433
|
+
readonly required: ["author"];
|
|
21434
|
+
readonly properties: {
|
|
21435
|
+
readonly author: {
|
|
21436
|
+
readonly type: "ref";
|
|
21437
|
+
readonly ref: "lex:app.bsky.feed.defs#blockedAuthor";
|
|
21438
|
+
};
|
|
21439
|
+
};
|
|
21440
|
+
};
|
|
21441
|
+
};
|
|
21018
21442
|
} | {
|
|
21019
21443
|
readonly lexicon: 1;
|
|
21020
21444
|
readonly id: "app.bsky.unspecced.getSuggestedFeeds";
|
|
@@ -23201,8 +23625,8 @@ export declare const ids: {
|
|
|
23201
23625
|
readonly AppBskyFeedGetFeedSkeleton: "app.bsky.feed.getFeedSkeleton";
|
|
23202
23626
|
readonly AppBskyFeedGetLikes: "app.bsky.feed.getLikes";
|
|
23203
23627
|
readonly AppBskyFeedGetListFeed: "app.bsky.feed.getListFeed";
|
|
23204
|
-
readonly AppBskyFeedGetPosts: "app.bsky.feed.getPosts";
|
|
23205
23628
|
readonly AppBskyFeedGetPostThread: "app.bsky.feed.getPostThread";
|
|
23629
|
+
readonly AppBskyFeedGetPosts: "app.bsky.feed.getPosts";
|
|
23206
23630
|
readonly AppBskyFeedGetQuotes: "app.bsky.feed.getQuotes";
|
|
23207
23631
|
readonly AppBskyFeedGetRepostedBy: "app.bsky.feed.getRepostedBy";
|
|
23208
23632
|
readonly AppBskyFeedGetSuggestedFeeds: "app.bsky.feed.getSuggestedFeeds";
|
|
@@ -23256,6 +23680,8 @@ export declare const ids: {
|
|
|
23256
23680
|
readonly AppBskyUnspeccedDefs: "app.bsky.unspecced.defs";
|
|
23257
23681
|
readonly AppBskyUnspeccedGetConfig: "app.bsky.unspecced.getConfig";
|
|
23258
23682
|
readonly AppBskyUnspeccedGetPopularFeedGenerators: "app.bsky.unspecced.getPopularFeedGenerators";
|
|
23683
|
+
readonly AppBskyUnspeccedGetPostThreadHiddenV2: "app.bsky.unspecced.getPostThreadHiddenV2";
|
|
23684
|
+
readonly AppBskyUnspeccedGetPostThreadV2: "app.bsky.unspecced.getPostThreadV2";
|
|
23259
23685
|
readonly AppBskyUnspeccedGetSuggestedFeeds: "app.bsky.unspecced.getSuggestedFeeds";
|
|
23260
23686
|
readonly AppBskyUnspeccedGetSuggestedFeedsSkeleton: "app.bsky.unspecced.getSuggestedFeedsSkeleton";
|
|
23261
23687
|
readonly AppBskyUnspeccedGetSuggestedStarterPacks: "app.bsky.unspecced.getSuggestedStarterPacks";
|