@atproto/pds 0.4.139 → 0.4.140

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.
@@ -0,0 +1,61 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express';
5
+ import { type ValidationResult } from '@atproto/lexicon';
6
+ import { type $Typed } from '../../../../util';
7
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
8
+ import type * as AppBskyFeedDefs from '../feed/defs.js';
9
+ export interface QueryParams {
10
+ /** Reference (AT-URI) to post record. This is the anchor post. */
11
+ anchor: string;
12
+ }
13
+ export type InputSchema = undefined;
14
+ export interface OutputSchema {
15
+ /** A flat list of thread hidden items. The depth of each item is indicated by the depth property inside the item. */
16
+ thread: ThreadHiddenItem[];
17
+ }
18
+ export type HandlerInput = undefined;
19
+ export interface HandlerSuccess {
20
+ encoding: 'application/json';
21
+ body: OutputSchema;
22
+ headers?: {
23
+ [key: string]: string;
24
+ };
25
+ }
26
+ export interface HandlerError {
27
+ status: number;
28
+ message?: string;
29
+ }
30
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
31
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
32
+ auth: HA;
33
+ params: QueryParams;
34
+ input: HandlerInput;
35
+ req: express.Request;
36
+ res: express.Response;
37
+ resetRouteRateLimits: () => Promise<void>;
38
+ };
39
+ export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
40
+ export interface ThreadHiddenItem {
41
+ $type?: 'app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItem';
42
+ uri: string;
43
+ /** 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. */
44
+ depth: number;
45
+ value: $Typed<ThreadHiddenItemPost> | {
46
+ $type: string;
47
+ };
48
+ }
49
+ export declare function isThreadHiddenItem<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.unspecced.getPostThreadHiddenV2", "threadHiddenItem">;
50
+ export declare function validateThreadHiddenItem<V>(v: V): ValidationResult<ThreadHiddenItem & V>;
51
+ export interface ThreadHiddenItemPost {
52
+ $type?: 'app.bsky.unspecced.getPostThreadHiddenV2#threadHiddenItemPost';
53
+ post: AppBskyFeedDefs.PostView;
54
+ /** The threadgate created by the author indicates this post as a reply to be hidden for everyone consuming the thread. */
55
+ hiddenByThreadgate: boolean;
56
+ /** This is by an account muted by the viewer requesting it. */
57
+ mutedByViewer: boolean;
58
+ }
59
+ export declare function isThreadHiddenItemPost<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.unspecced.getPostThreadHiddenV2", "threadHiddenItemPost">;
60
+ export declare function validateThreadHiddenItemPost<V>(v: V): ValidationResult<ThreadHiddenItemPost & V>;
61
+ //# sourceMappingURL=getPostThreadHiddenV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPostThreadHiddenV2.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,KAAK,eAAe,MAAM,iBAAiB,CAAA;AAMvD,MAAM,WAAW,WAAW;IAC1B,kEAAkE;IAClE,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,qHAAqH;IACrH,MAAM,EAAE,gBAAgB,EAAE,CAAA;CAC3B;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,CAAA;AAE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DAA+D,CAAA;IACvE,IAAI,EAAE,eAAe,CAAC,QAAQ,CAAA;IAC9B,0HAA0H;IAC1H,kBAAkB,EAAE,OAAO,CAAA;IAC3B,+DAA+D;IAC/D,aAAa,EAAE,OAAO,CAAA;CACvB;AAID,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,uHAE7C;AAED,wBAAgB,4BAA4B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8CAEnD"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isThreadHiddenItem = isThreadHiddenItem;
4
+ exports.validateThreadHiddenItem = validateThreadHiddenItem;
5
+ exports.isThreadHiddenItemPost = isThreadHiddenItemPost;
6
+ exports.validateThreadHiddenItemPost = validateThreadHiddenItemPost;
7
+ const lexicons_1 = require("../../../../lexicons");
8
+ const util_1 = require("../../../../util");
9
+ const is$typed = util_1.is$typed, validate = lexicons_1.validate;
10
+ const id = 'app.bsky.unspecced.getPostThreadHiddenV2';
11
+ const hashThreadHiddenItem = 'threadHiddenItem';
12
+ function isThreadHiddenItem(v) {
13
+ return is$typed(v, id, hashThreadHiddenItem);
14
+ }
15
+ function validateThreadHiddenItem(v) {
16
+ return validate(v, id, hashThreadHiddenItem);
17
+ }
18
+ const hashThreadHiddenItemPost = 'threadHiddenItemPost';
19
+ function isThreadHiddenItemPost(v) {
20
+ return is$typed(v, id, hashThreadHiddenItemPost);
21
+ }
22
+ function validateThreadHiddenItemPost(v) {
23
+ return validate(v, id, hashThreadHiddenItemPost);
24
+ }
25
+ //# sourceMappingURL=getPostThreadHiddenV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPostThreadHiddenV2.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/getPostThreadHiddenV2.ts"],"names":[],"mappings":";;AAmEA,gDAEC;AAED,4DAEC;AAaD,wDAEC;AAED,oEAEC;AAtFD,mDAA4D;AAC5D,2CAIyB;AAIzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,0CAA0C,CAAA;AAgDrD,MAAM,oBAAoB,GAAG,kBAAkB,CAAA;AAE/C,SAAgB,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,CAAA;AAC9C,CAAC;AAED,SAAgB,wBAAwB,CAAI,CAAI;IAC9C,OAAO,QAAQ,CAAuB,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,CAAA;AACpE,CAAC;AAWD,MAAM,wBAAwB,GAAG,sBAAsB,CAAA;AAEvD,SAAgB,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAClD,CAAC;AAED,SAAgB,4BAA4B,CAAI,CAAI;IAClD,OAAO,QAAQ,CAA2B,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAC5E,CAAC"}
@@ -0,0 +1,92 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import express from 'express';
5
+ import { type ValidationResult } from '@atproto/lexicon';
6
+ import { type $Typed } from '../../../../util';
7
+ import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
8
+ import type * as AppBskyFeedDefs from '../feed/defs.js';
9
+ export interface QueryParams {
10
+ /** 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. */
11
+ anchor: string;
12
+ /** Whether to include parents above the anchor. */
13
+ above: boolean;
14
+ /** How many levels of replies to include below the anchor. */
15
+ below: number;
16
+ /** 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). */
17
+ branchingFactor: number;
18
+ /** Whether to prioritize posts from followed users. It only has effect when the user is authenticated. */
19
+ prioritizeFollowedUsers: boolean;
20
+ /** Sorting for the thread replies. */
21
+ sort: 'newest' | 'oldest' | 'top' | (string & {});
22
+ }
23
+ export type InputSchema = undefined;
24
+ export interface OutputSchema {
25
+ /** A flat list of thread items. The depth of each item is indicated by the depth property inside the item. */
26
+ thread: ThreadItem[];
27
+ threadgate?: AppBskyFeedDefs.ThreadgateView;
28
+ /** Whether this thread has hidden replies. If true, a call can be made to the `getPostThreadHiddenV2` endpoint to retrieve them. */
29
+ hasHiddenReplies: boolean;
30
+ }
31
+ export type HandlerInput = undefined;
32
+ export interface HandlerSuccess {
33
+ encoding: 'application/json';
34
+ body: OutputSchema;
35
+ headers?: {
36
+ [key: string]: string;
37
+ };
38
+ }
39
+ export interface HandlerError {
40
+ status: number;
41
+ message?: string;
42
+ }
43
+ export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
44
+ export type HandlerReqCtx<HA extends HandlerAuth = never> = {
45
+ auth: HA;
46
+ params: QueryParams;
47
+ input: HandlerInput;
48
+ req: express.Request;
49
+ res: express.Response;
50
+ resetRouteRateLimits: () => Promise<void>;
51
+ };
52
+ export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
53
+ export interface ThreadItem {
54
+ $type?: 'app.bsky.unspecced.getPostThreadV2#threadItem';
55
+ uri: string;
56
+ /** 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. */
57
+ depth: number;
58
+ value: $Typed<ThreadItemPost> | $Typed<ThreadItemNoUnauthenticated> | $Typed<ThreadItemNotFound> | $Typed<ThreadItemBlocked> | {
59
+ $type: string;
60
+ };
61
+ }
62
+ export declare function isThreadItem<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.unspecced.getPostThreadV2", "threadItem">;
63
+ export declare function validateThreadItem<V>(v: V): ValidationResult<ThreadItem & V>;
64
+ export interface ThreadItemPost {
65
+ $type?: 'app.bsky.unspecced.getPostThreadV2#threadItemPost';
66
+ post: AppBskyFeedDefs.PostView;
67
+ /** This post has more parents that were not present in the response. This is just a boolean, without the number of parents. */
68
+ moreParents: boolean;
69
+ /** 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. */
70
+ moreReplies: number;
71
+ /** 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. */
72
+ opThread: boolean;
73
+ }
74
+ export declare function isThreadItemPost<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.unspecced.getPostThreadV2", "threadItemPost">;
75
+ export declare function validateThreadItemPost<V>(v: V): ValidationResult<ThreadItemPost & V>;
76
+ export interface ThreadItemNoUnauthenticated {
77
+ $type?: 'app.bsky.unspecced.getPostThreadV2#threadItemNoUnauthenticated';
78
+ }
79
+ export declare function isThreadItemNoUnauthenticated<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.unspecced.getPostThreadV2", "threadItemNoUnauthenticated">;
80
+ export declare function validateThreadItemNoUnauthenticated<V>(v: V): ValidationResult<ThreadItemNoUnauthenticated & V>;
81
+ export interface ThreadItemNotFound {
82
+ $type?: 'app.bsky.unspecced.getPostThreadV2#threadItemNotFound';
83
+ }
84
+ export declare function isThreadItemNotFound<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.unspecced.getPostThreadV2", "threadItemNotFound">;
85
+ export declare function validateThreadItemNotFound<V>(v: V): ValidationResult<ThreadItemNotFound & V>;
86
+ export interface ThreadItemBlocked {
87
+ $type?: 'app.bsky.unspecced.getPostThreadV2#threadItemBlocked';
88
+ author: AppBskyFeedDefs.BlockedAuthor;
89
+ }
90
+ export declare function isThreadItemBlocked<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.unspecced.getPostThreadV2", "threadItemBlocked">;
91
+ export declare function validateThreadItemBlocked<V>(v: V): ValidationResult<ThreadItemBlocked & V>;
92
+ //# sourceMappingURL=getPostThreadV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPostThreadV2.d.ts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B,wIAAwI;IACxI,QAAQ,EAAE,OAAO,CAAA;CAClB;AAID,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,2GAEvC;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wCAE7C;AAED,MAAM,WAAW,2BAA2B;IAC1C,KAAK,CAAC,EAAE,gEAAgE,CAAA;CACzE;AAID,wBAAgB,6BAA6B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,wHAEpD;AAED,wBAAgB,mCAAmC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qDAM1D;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,uDAAuD,CAAA;CAChE;AAID,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,+GAE3C;AAED,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,4CAEjD;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,sDAAsD,CAAA;IAC9D,MAAM,EAAE,eAAe,CAAC,aAAa,CAAA;CACtC;AAID,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8GAE1C;AAED,wBAAgB,yBAAyB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,2CAEhD"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isThreadItem = isThreadItem;
4
+ exports.validateThreadItem = validateThreadItem;
5
+ exports.isThreadItemPost = isThreadItemPost;
6
+ exports.validateThreadItemPost = validateThreadItemPost;
7
+ exports.isThreadItemNoUnauthenticated = isThreadItemNoUnauthenticated;
8
+ exports.validateThreadItemNoUnauthenticated = validateThreadItemNoUnauthenticated;
9
+ exports.isThreadItemNotFound = isThreadItemNotFound;
10
+ exports.validateThreadItemNotFound = validateThreadItemNotFound;
11
+ exports.isThreadItemBlocked = isThreadItemBlocked;
12
+ exports.validateThreadItemBlocked = validateThreadItemBlocked;
13
+ const lexicons_1 = require("../../../../lexicons");
14
+ const util_1 = require("../../../../util");
15
+ const is$typed = util_1.is$typed, validate = lexicons_1.validate;
16
+ const id = 'app.bsky.unspecced.getPostThreadV2';
17
+ const hashThreadItem = 'threadItem';
18
+ function isThreadItem(v) {
19
+ return is$typed(v, id, hashThreadItem);
20
+ }
21
+ function validateThreadItem(v) {
22
+ return validate(v, id, hashThreadItem);
23
+ }
24
+ const hashThreadItemPost = 'threadItemPost';
25
+ function isThreadItemPost(v) {
26
+ return is$typed(v, id, hashThreadItemPost);
27
+ }
28
+ function validateThreadItemPost(v) {
29
+ return validate(v, id, hashThreadItemPost);
30
+ }
31
+ const hashThreadItemNoUnauthenticated = 'threadItemNoUnauthenticated';
32
+ function isThreadItemNoUnauthenticated(v) {
33
+ return is$typed(v, id, hashThreadItemNoUnauthenticated);
34
+ }
35
+ function validateThreadItemNoUnauthenticated(v) {
36
+ return validate(v, id, hashThreadItemNoUnauthenticated);
37
+ }
38
+ const hashThreadItemNotFound = 'threadItemNotFound';
39
+ function isThreadItemNotFound(v) {
40
+ return is$typed(v, id, hashThreadItemNotFound);
41
+ }
42
+ function validateThreadItemNotFound(v) {
43
+ return validate(v, id, hashThreadItemNotFound);
44
+ }
45
+ const hashThreadItemBlocked = 'threadItemBlocked';
46
+ function isThreadItemBlocked(v) {
47
+ return is$typed(v, id, hashThreadItemBlocked);
48
+ }
49
+ function validateThreadItemBlocked(v) {
50
+ return validate(v, id, hashThreadItemBlocked);
51
+ }
52
+ //# sourceMappingURL=getPostThreadV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPostThreadV2.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/getPostThreadV2.ts"],"names":[],"mappings":";;AAqFA,oCAEC;AAED,gDAEC;AAeD,4CAEC;AAED,wDAEC;AAQD,sEAEC;AAED,kFAMC;AAQD,oDAEC;AAED,gEAEC;AASD,kDAE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D,MAAM,qBAAqB,GAAG,mBAAmB,CAAA;AAEjD,SAAgB,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,qBAAqB,CAAC,CAAA;AAC/C,CAAC;AAED,SAAgB,yBAAyB,CAAI,CAAI;IAC/C,OAAO,QAAQ,CAAwB,CAAC,EAAE,EAAE,EAAE,qBAAqB,CAAC,CAAA;AACtE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/pds",
3
- "version": "0.4.139",
3
+ "version": "0.4.140",
4
4
  "license": "MIT",
5
5
  "description": "Reference implementation of atproto Personal Data Server (PDS)",
6
6
  "keywords": [
@@ -49,7 +49,7 @@
49
49
  "zod": "^3.23.8",
50
50
  "@atproto-labs/fetch-node": "0.1.9",
51
51
  "@atproto-labs/xrpc-utils": "0.0.14",
52
- "@atproto/api": "^0.15.9",
52
+ "@atproto/api": "^0.15.10",
53
53
  "@atproto/aws": "^0.2.21",
54
54
  "@atproto/common": "^0.4.11",
55
55
  "@atproto/crypto": "^0.4.4",
@@ -77,9 +77,9 @@
77
77
  "ts-node": "^10.8.2",
78
78
  "typescript": "^5.6.3",
79
79
  "ws": "^8.12.0",
80
- "@atproto/api": "^0.15.9",
81
- "@atproto/bsky": "^0.0.151",
82
- "@atproto/dev-env": "^0.3.133",
80
+ "@atproto/api": "^0.15.10",
81
+ "@atproto/bsky": "^0.0.152",
82
+ "@atproto/dev-env": "^0.3.134",
83
83
  "@atproto/lex-cli": "^0.8.1",
84
84
  "@atproto/oauth-client-browser-example": "0.0.4"
85
85
  },
@@ -108,8 +108,8 @@ import * as AppBskyFeedGetFeedGenerators from './types/app/bsky/feed/getFeedGene
108
108
  import * as AppBskyFeedGetFeedSkeleton from './types/app/bsky/feed/getFeedSkeleton.js'
109
109
  import * as AppBskyFeedGetLikes from './types/app/bsky/feed/getLikes.js'
110
110
  import * as AppBskyFeedGetListFeed from './types/app/bsky/feed/getListFeed.js'
111
- import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
112
111
  import * as AppBskyFeedGetPostThread from './types/app/bsky/feed/getPostThread.js'
112
+ import * as AppBskyFeedGetPosts from './types/app/bsky/feed/getPosts.js'
113
113
  import * as AppBskyFeedGetQuotes from './types/app/bsky/feed/getQuotes.js'
114
114
  import * as AppBskyFeedGetRepostedBy from './types/app/bsky/feed/getRepostedBy.js'
115
115
  import * as AppBskyFeedGetSuggestedFeeds from './types/app/bsky/feed/getSuggestedFeeds.js'
@@ -145,6 +145,8 @@ import * as AppBskyNotificationRegisterPush from './types/app/bsky/notification/
145
145
  import * as AppBskyNotificationUpdateSeen from './types/app/bsky/notification/updateSeen.js'
146
146
  import * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js'
147
147
  import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators.js'
148
+ import * as AppBskyUnspeccedGetPostThreadHiddenV2 from './types/app/bsky/unspecced/getPostThreadHiddenV2.js'
149
+ import * as AppBskyUnspeccedGetPostThreadV2 from './types/app/bsky/unspecced/getPostThreadV2.js'
148
150
  import * as AppBskyUnspeccedGetSuggestedFeeds from './types/app/bsky/unspecced/getSuggestedFeeds.js'
149
151
  import * as AppBskyUnspeccedGetSuggestedFeedsSkeleton from './types/app/bsky/unspecced/getSuggestedFeedsSkeleton.js'
150
152
  import * as AppBskyUnspeccedGetSuggestedStarterPacks from './types/app/bsky/unspecced/getSuggestedStarterPacks.js'
@@ -1547,25 +1549,25 @@ export class AppBskyFeedNS {
1547
1549
  return this._server.xrpc.method(nsid, cfg)
1548
1550
  }
1549
1551
 
1550
- getPosts<AV extends AuthVerifier>(
1552
+ getPostThread<AV extends AuthVerifier>(
1551
1553
  cfg: ConfigOf<
1552
1554
  AV,
1553
- AppBskyFeedGetPosts.Handler<ExtractAuth<AV>>,
1554
- AppBskyFeedGetPosts.HandlerReqCtx<ExtractAuth<AV>>
1555
+ AppBskyFeedGetPostThread.Handler<ExtractAuth<AV>>,
1556
+ AppBskyFeedGetPostThread.HandlerReqCtx<ExtractAuth<AV>>
1555
1557
  >,
1556
1558
  ) {
1557
- const nsid = 'app.bsky.feed.getPosts' // @ts-ignore
1559
+ const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore
1558
1560
  return this._server.xrpc.method(nsid, cfg)
1559
1561
  }
1560
1562
 
1561
- getPostThread<AV extends AuthVerifier>(
1563
+ getPosts<AV extends AuthVerifier>(
1562
1564
  cfg: ConfigOf<
1563
1565
  AV,
1564
- AppBskyFeedGetPostThread.Handler<ExtractAuth<AV>>,
1565
- AppBskyFeedGetPostThread.HandlerReqCtx<ExtractAuth<AV>>
1566
+ AppBskyFeedGetPosts.Handler<ExtractAuth<AV>>,
1567
+ AppBskyFeedGetPosts.HandlerReqCtx<ExtractAuth<AV>>
1566
1568
  >,
1567
1569
  ) {
1568
- const nsid = 'app.bsky.feed.getPostThread' // @ts-ignore
1570
+ const nsid = 'app.bsky.feed.getPosts' // @ts-ignore
1569
1571
  return this._server.xrpc.method(nsid, cfg)
1570
1572
  }
1571
1573
 
@@ -1994,6 +1996,28 @@ export class AppBskyUnspeccedNS {
1994
1996
  return this._server.xrpc.method(nsid, cfg)
1995
1997
  }
1996
1998
 
1999
+ getPostThreadHiddenV2<AV extends AuthVerifier>(
2000
+ cfg: ConfigOf<
2001
+ AV,
2002
+ AppBskyUnspeccedGetPostThreadHiddenV2.Handler<ExtractAuth<AV>>,
2003
+ AppBskyUnspeccedGetPostThreadHiddenV2.HandlerReqCtx<ExtractAuth<AV>>
2004
+ >,
2005
+ ) {
2006
+ const nsid = 'app.bsky.unspecced.getPostThreadHiddenV2' // @ts-ignore
2007
+ return this._server.xrpc.method(nsid, cfg)
2008
+ }
2009
+
2010
+ getPostThreadV2<AV extends AuthVerifier>(
2011
+ cfg: ConfigOf<
2012
+ AV,
2013
+ AppBskyUnspeccedGetPostThreadV2.Handler<ExtractAuth<AV>>,
2014
+ AppBskyUnspeccedGetPostThreadV2.HandlerReqCtx<ExtractAuth<AV>>
2015
+ >,
2016
+ ) {
2017
+ const nsid = 'app.bsky.unspecced.getPostThreadV2' // @ts-ignore
2018
+ return this._server.xrpc.method(nsid, cfg)
2019
+ }
2020
+
1997
2021
  getSuggestedFeeds<AV extends AuthVerifier>(
1998
2022
  cfg: ConfigOf<
1999
2023
  AV,