@atproto/api 0.13.16 → 0.13.17
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 +8 -0
- package/README.md +2 -2
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +22 -5
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +22257 -9700
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +153 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/graph/searchStarterPacks.d.ts +28 -0
- package/dist/client/types/app/bsky/graph/searchStarterPacks.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/searchStarterPacks.js +7 -0
- package/dist/client/types/app/bsky/graph/searchStarterPacks.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/defs.d.ts +6 -0
- package/dist/client/types/app/bsky/unspecced/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/unspecced/defs.js +10 -0
- package/dist/client/types/app/bsky/unspecced/defs.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/searchStarterPacksSkeleton.d.ts +36 -0
- package/dist/client/types/app/bsky/unspecced/searchStarterPacksSkeleton.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/searchStarterPacksSkeleton.js +22 -0
- package/dist/client/types/app/bsky/unspecced/searchStarterPacksSkeleton.js.map +1 -0
- package/dist/client/types/com/atproto/temp/addReservedHandle.d.ts +26 -0
- package/dist/client/types/com/atproto/temp/addReservedHandle.d.ts.map +1 -0
- package/dist/client/types/com/atproto/temp/addReservedHandle.js +7 -0
- package/dist/client/types/com/atproto/temp/addReservedHandle.js.map +1 -0
- package/package.json +1 -1
- package/src/client/index.ts +46 -0
- package/src/client/lexicons.ts +163 -2
- package/src/client/types/app/bsky/graph/searchStarterPacks.ts +39 -0
- package/src/client/types/app/bsky/unspecced/defs.ts +24 -0
- package/src/client/types/app/bsky/unspecced/searchStarterPacksSkeleton.ts +54 -0
- package/src/client/types/com/atproto/temp/addReservedHandle.ts +36 -0
- package/tests/atp-agent.test.ts +1 -1
- package/tests/moderation-prefs.test.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import * as AppBskyGraphDefs from './defs';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
/** Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
|
|
8
|
+
q: string;
|
|
9
|
+
limit?: number;
|
|
10
|
+
cursor?: string;
|
|
11
|
+
}
|
|
12
|
+
export type InputSchema = undefined;
|
|
13
|
+
export interface OutputSchema {
|
|
14
|
+
cursor?: string;
|
|
15
|
+
starterPacks: AppBskyGraphDefs.StarterPackViewBasic[];
|
|
16
|
+
[k: string]: unknown;
|
|
17
|
+
}
|
|
18
|
+
export interface CallOptions {
|
|
19
|
+
signal?: AbortSignal;
|
|
20
|
+
headers?: HeadersMap;
|
|
21
|
+
}
|
|
22
|
+
export interface Response {
|
|
23
|
+
success: boolean;
|
|
24
|
+
headers: HeadersMap;
|
|
25
|
+
data: OutputSchema;
|
|
26
|
+
}
|
|
27
|
+
export declare function toKnownErr(e: any): any;
|
|
28
|
+
//# sourceMappingURL=searchStarterPacks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchStarterPacks.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/graph/searchStarterPacks.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAKrD,OAAO,KAAK,gBAAgB,MAAM,QAAQ,CAAA;AAE1C,MAAM,WAAW,WAAW;IAC1B,yHAAyH;IACzH,CAAC,EAAE,MAAM,CAAA;IACT,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,gBAAgB,CAAC,oBAAoB,EAAE,CAAA;IACrD,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchStarterPacks.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/graph/searchStarterPacks.ts"],"names":[],"mappings":";;AAoCA,gCAEC;AAFD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC"}
|
|
@@ -14,4 +14,10 @@ export interface SkeletonSearchActor {
|
|
|
14
14
|
}
|
|
15
15
|
export declare function isSkeletonSearchActor(v: unknown): v is SkeletonSearchActor;
|
|
16
16
|
export declare function validateSkeletonSearchActor(v: unknown): ValidationResult;
|
|
17
|
+
export interface SkeletonSearchStarterPack {
|
|
18
|
+
uri: string;
|
|
19
|
+
[k: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
export declare function isSkeletonSearchStarterPack(v: unknown): v is SkeletonSearchStarterPack;
|
|
22
|
+
export declare function validateSkeletonSearchStarterPack(v: unknown): ValidationResult;
|
|
17
23
|
//# sourceMappingURL=defs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAK5D,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAA;IACX,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,kBAAkB,CAMxE;AAED,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAEvE;AAED,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAA;IACX,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,mBAAmB,CAM1E;AAED,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAExE"}
|
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAK5D,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAA;IACX,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,kBAAkB,CAMxE;AAED,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAEvE;AAED,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAA;IACX,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,mBAAmB,CAM1E;AAED,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAExE;AAED,MAAM,WAAW,yBAAyB;IACxC,GAAG,EAAE,MAAM,CAAA;IACX,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,2BAA2B,CACzC,CAAC,EAAE,OAAO,GACT,CAAC,IAAI,yBAAyB,CAMhC;AAED,wBAAgB,iCAAiC,CAC/C,CAAC,EAAE,OAAO,GACT,gBAAgB,CAKlB"}
|
|
@@ -4,6 +4,8 @@ exports.isSkeletonSearchPost = isSkeletonSearchPost;
|
|
|
4
4
|
exports.validateSkeletonSearchPost = validateSkeletonSearchPost;
|
|
5
5
|
exports.isSkeletonSearchActor = isSkeletonSearchActor;
|
|
6
6
|
exports.validateSkeletonSearchActor = validateSkeletonSearchActor;
|
|
7
|
+
exports.isSkeletonSearchStarterPack = isSkeletonSearchStarterPack;
|
|
8
|
+
exports.validateSkeletonSearchStarterPack = validateSkeletonSearchStarterPack;
|
|
7
9
|
const util_1 = require("../../../../util");
|
|
8
10
|
const lexicons_1 = require("../../../../lexicons");
|
|
9
11
|
function isSkeletonSearchPost(v) {
|
|
@@ -22,4 +24,12 @@ function isSkeletonSearchActor(v) {
|
|
|
22
24
|
function validateSkeletonSearchActor(v) {
|
|
23
25
|
return lexicons_1.lexicons.validate('app.bsky.unspecced.defs#skeletonSearchActor', v);
|
|
24
26
|
}
|
|
27
|
+
function isSkeletonSearchStarterPack(v) {
|
|
28
|
+
return ((0, util_1.isObj)(v) &&
|
|
29
|
+
(0, util_1.hasProp)(v, '$type') &&
|
|
30
|
+
v.$type === 'app.bsky.unspecced.defs#skeletonSearchStarterPack');
|
|
31
|
+
}
|
|
32
|
+
function validateSkeletonSearchStarterPack(v) {
|
|
33
|
+
return lexicons_1.lexicons.validate('app.bsky.unspecced.defs#skeletonSearchStarterPack', v);
|
|
34
|
+
}
|
|
25
35
|
//# sourceMappingURL=defs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/defs.ts"],"names":[],"mappings":";;AAaA,oDAMC;AAED,gEAEC;AAOD,sDAMC;AAED,kEAEC;
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/defs.ts"],"names":[],"mappings":";;AAaA,oDAMC;AAED,gEAEC;AAOD,sDAMC;AAED,kEAEC;AAOD,kEAQC;AAED,8EAOC;AA5DD,2CAAiD;AACjD,mDAA+C;AAQ/C,SAAgB,oBAAoB,CAAC,CAAU;IAC7C,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,4CAA4C,CACzD,CAAA;AACH,CAAC;AAED,SAAgB,0BAA0B,CAAC,CAAU;IACnD,OAAO,mBAAQ,CAAC,QAAQ,CAAC,4CAA4C,EAAE,CAAC,CAAC,CAAA;AAC3E,CAAC;AAOD,SAAgB,qBAAqB,CAAC,CAAU;IAC9C,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,6CAA6C,CAC1D,CAAA;AACH,CAAC;AAED,SAAgB,2BAA2B,CAAC,CAAU;IACpD,OAAO,mBAAQ,CAAC,QAAQ,CAAC,6CAA6C,EAAE,CAAC,CAAC,CAAA;AAC5E,CAAC;AAOD,SAAgB,2BAA2B,CACzC,CAAU;IAEV,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,mDAAmD,CAChE,CAAA;AACH,CAAC;AAED,SAAgB,iCAAiC,CAC/C,CAAU;IAEV,OAAO,mBAAQ,CAAC,QAAQ,CACtB,mDAAmD,EACnD,CAAC,CACF,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import * as AppBskyUnspeccedDefs from './defs';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
/** Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
|
|
8
|
+
q: string;
|
|
9
|
+
/** DID of the account making the request (not included for public/unauthenticated queries). */
|
|
10
|
+
viewer?: string;
|
|
11
|
+
limit?: number;
|
|
12
|
+
/** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */
|
|
13
|
+
cursor?: string;
|
|
14
|
+
}
|
|
15
|
+
export type InputSchema = undefined;
|
|
16
|
+
export interface OutputSchema {
|
|
17
|
+
cursor?: string;
|
|
18
|
+
/** Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. */
|
|
19
|
+
hitsTotal?: number;
|
|
20
|
+
starterPacks: AppBskyUnspeccedDefs.SkeletonSearchStarterPack[];
|
|
21
|
+
[k: string]: unknown;
|
|
22
|
+
}
|
|
23
|
+
export interface CallOptions {
|
|
24
|
+
signal?: AbortSignal;
|
|
25
|
+
headers?: HeadersMap;
|
|
26
|
+
}
|
|
27
|
+
export interface Response {
|
|
28
|
+
success: boolean;
|
|
29
|
+
headers: HeadersMap;
|
|
30
|
+
data: OutputSchema;
|
|
31
|
+
}
|
|
32
|
+
export declare class BadQueryStringError extends XRPCError {
|
|
33
|
+
constructor(src: XRPCError);
|
|
34
|
+
}
|
|
35
|
+
export declare function toKnownErr(e: any): any;
|
|
36
|
+
//# sourceMappingURL=searchStarterPacksSkeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchStarterPacksSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/searchStarterPacksSkeleton.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAKrD,OAAO,KAAK,oBAAoB,MAAM,QAAQ,CAAA;AAE9C,MAAM,WAAW,WAAW;IAC1B,yHAAyH;IACzH,CAAC,EAAE,MAAM,CAAA;IACT,+FAA+F;IAC/F,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oGAAoG;IACpG,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,sHAAsH;IACtH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,oBAAoB,CAAC,yBAAyB,EAAE,CAAA;IAC9D,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,qBAAa,mBAAoB,SAAQ,SAAS;gBACpC,GAAG,EAAE,SAAS;CAG3B;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAMhC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BadQueryStringError = void 0;
|
|
4
|
+
exports.toKnownErr = toKnownErr;
|
|
5
|
+
/**
|
|
6
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
7
|
+
*/
|
|
8
|
+
const xrpc_1 = require("@atproto/xrpc");
|
|
9
|
+
class BadQueryStringError extends xrpc_1.XRPCError {
|
|
10
|
+
constructor(src) {
|
|
11
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.BadQueryStringError = BadQueryStringError;
|
|
15
|
+
function toKnownErr(e) {
|
|
16
|
+
if (e instanceof xrpc_1.XRPCError) {
|
|
17
|
+
if (e.error === 'BadQueryString')
|
|
18
|
+
return new BadQueryStringError(e);
|
|
19
|
+
}
|
|
20
|
+
return e;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=searchStarterPacksSkeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchStarterPacksSkeleton.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/searchStarterPacksSkeleton.ts"],"names":[],"mappings":";;;AA+CA,gCAMC;AArDD;;GAEG;AACH,wCAAqD;AAsCrD,MAAa,mBAAoB,SAAQ,gBAAS;IAChD,YAAY,GAAc;QACxB,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAA;IACxE,CAAC;CACF;AAJD,kDAIC;AAED,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,KAAK,gBAAgB;YAAE,OAAO,IAAI,mBAAmB,CAAC,CAAC,CAAC,CAAA;IACrE,CAAC;IAED,OAAO,CAAC,CAAA;AACV,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
export interface QueryParams {
|
|
6
|
+
}
|
|
7
|
+
export interface InputSchema {
|
|
8
|
+
handle: string;
|
|
9
|
+
[k: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface OutputSchema {
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
export interface CallOptions {
|
|
15
|
+
signal?: AbortSignal;
|
|
16
|
+
headers?: HeadersMap;
|
|
17
|
+
qp?: QueryParams;
|
|
18
|
+
encoding?: 'application/json';
|
|
19
|
+
}
|
|
20
|
+
export interface Response {
|
|
21
|
+
success: boolean;
|
|
22
|
+
headers: HeadersMap;
|
|
23
|
+
data: OutputSchema;
|
|
24
|
+
}
|
|
25
|
+
export declare function toKnownErr(e: any): any;
|
|
26
|
+
//# sourceMappingURL=addReservedHandle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addReservedHandle.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/temp/addReservedHandle.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAMrD,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addReservedHandle.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/temp/addReservedHandle.ts"],"names":[],"mappings":";;AAiCA,gCAEC;AAFD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC"}
|
package/package.json
CHANGED
package/src/client/index.ts
CHANGED
|
@@ -81,6 +81,7 @@ import * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos'
|
|
|
81
81
|
import * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate'
|
|
82
82
|
import * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl'
|
|
83
83
|
import * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos'
|
|
84
|
+
import * as ComAtprotoTempAddReservedHandle from './types/com/atproto/temp/addReservedHandle'
|
|
84
85
|
import * as ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue'
|
|
85
86
|
import * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels'
|
|
86
87
|
import * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification'
|
|
@@ -147,6 +148,7 @@ import * as AppBskyGraphListitem from './types/app/bsky/graph/listitem'
|
|
|
147
148
|
import * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor'
|
|
148
149
|
import * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList'
|
|
149
150
|
import * as AppBskyGraphMuteThread from './types/app/bsky/graph/muteThread'
|
|
151
|
+
import * as AppBskyGraphSearchStarterPacks from './types/app/bsky/graph/searchStarterPacks'
|
|
150
152
|
import * as AppBskyGraphStarterpack from './types/app/bsky/graph/starterpack'
|
|
151
153
|
import * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor'
|
|
152
154
|
import * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList'
|
|
@@ -167,6 +169,7 @@ import * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspec
|
|
|
167
169
|
import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions'
|
|
168
170
|
import * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
|
|
169
171
|
import * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton'
|
|
172
|
+
import * as AppBskyUnspeccedSearchStarterPacksSkeleton from './types/app/bsky/unspecced/searchStarterPacksSkeleton'
|
|
170
173
|
import * as AppBskyVideoDefs from './types/app/bsky/video/defs'
|
|
171
174
|
import * as AppBskyVideoGetJobStatus from './types/app/bsky/video/getJobStatus'
|
|
172
175
|
import * as AppBskyVideoGetUploadLimits from './types/app/bsky/video/getUploadLimits'
|
|
@@ -305,6 +308,7 @@ export * as ComAtprotoSyncListRepos from './types/com/atproto/sync/listRepos'
|
|
|
305
308
|
export * as ComAtprotoSyncNotifyOfUpdate from './types/com/atproto/sync/notifyOfUpdate'
|
|
306
309
|
export * as ComAtprotoSyncRequestCrawl from './types/com/atproto/sync/requestCrawl'
|
|
307
310
|
export * as ComAtprotoSyncSubscribeRepos from './types/com/atproto/sync/subscribeRepos'
|
|
311
|
+
export * as ComAtprotoTempAddReservedHandle from './types/com/atproto/temp/addReservedHandle'
|
|
308
312
|
export * as ComAtprotoTempCheckSignupQueue from './types/com/atproto/temp/checkSignupQueue'
|
|
309
313
|
export * as ComAtprotoTempFetchLabels from './types/com/atproto/temp/fetchLabels'
|
|
310
314
|
export * as ComAtprotoTempRequestPhoneVerification from './types/com/atproto/temp/requestPhoneVerification'
|
|
@@ -371,6 +375,7 @@ export * as AppBskyGraphListitem from './types/app/bsky/graph/listitem'
|
|
|
371
375
|
export * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor'
|
|
372
376
|
export * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList'
|
|
373
377
|
export * as AppBskyGraphMuteThread from './types/app/bsky/graph/muteThread'
|
|
378
|
+
export * as AppBskyGraphSearchStarterPacks from './types/app/bsky/graph/searchStarterPacks'
|
|
374
379
|
export * as AppBskyGraphStarterpack from './types/app/bsky/graph/starterpack'
|
|
375
380
|
export * as AppBskyGraphUnmuteActor from './types/app/bsky/graph/unmuteActor'
|
|
376
381
|
export * as AppBskyGraphUnmuteActorList from './types/app/bsky/graph/unmuteActorList'
|
|
@@ -391,6 +396,7 @@ export * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspec
|
|
|
391
396
|
export * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions'
|
|
392
397
|
export * as AppBskyUnspeccedSearchActorsSkeleton from './types/app/bsky/unspecced/searchActorsSkeleton'
|
|
393
398
|
export * as AppBskyUnspeccedSearchPostsSkeleton from './types/app/bsky/unspecced/searchPostsSkeleton'
|
|
399
|
+
export * as AppBskyUnspeccedSearchStarterPacksSkeleton from './types/app/bsky/unspecced/searchStarterPacksSkeleton'
|
|
394
400
|
export * as AppBskyVideoDefs from './types/app/bsky/video/defs'
|
|
395
401
|
export * as AppBskyVideoGetJobStatus from './types/app/bsky/video/getJobStatus'
|
|
396
402
|
export * as AppBskyVideoGetUploadLimits from './types/app/bsky/video/getUploadLimits'
|
|
@@ -1413,6 +1419,18 @@ export class ComAtprotoTempNS {
|
|
|
1413
1419
|
this._client = client
|
|
1414
1420
|
}
|
|
1415
1421
|
|
|
1422
|
+
addReservedHandle(
|
|
1423
|
+
data?: ComAtprotoTempAddReservedHandle.InputSchema,
|
|
1424
|
+
opts?: ComAtprotoTempAddReservedHandle.CallOptions,
|
|
1425
|
+
): Promise<ComAtprotoTempAddReservedHandle.Response> {
|
|
1426
|
+
return this._client.call(
|
|
1427
|
+
'com.atproto.temp.addReservedHandle',
|
|
1428
|
+
opts?.qp,
|
|
1429
|
+
data,
|
|
1430
|
+
opts,
|
|
1431
|
+
)
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1416
1434
|
checkSignupQueue(
|
|
1417
1435
|
params?: ComAtprotoTempCheckSignupQueue.QueryParams,
|
|
1418
1436
|
opts?: ComAtprotoTempCheckSignupQueue.CallOptions,
|
|
@@ -2430,6 +2448,18 @@ export class AppBskyGraphNS {
|
|
|
2430
2448
|
return this._client.call('app.bsky.graph.muteThread', opts?.qp, data, opts)
|
|
2431
2449
|
}
|
|
2432
2450
|
|
|
2451
|
+
searchStarterPacks(
|
|
2452
|
+
params?: AppBskyGraphSearchStarterPacks.QueryParams,
|
|
2453
|
+
opts?: AppBskyGraphSearchStarterPacks.CallOptions,
|
|
2454
|
+
): Promise<AppBskyGraphSearchStarterPacks.Response> {
|
|
2455
|
+
return this._client.call(
|
|
2456
|
+
'app.bsky.graph.searchStarterPacks',
|
|
2457
|
+
params,
|
|
2458
|
+
undefined,
|
|
2459
|
+
opts,
|
|
2460
|
+
)
|
|
2461
|
+
}
|
|
2462
|
+
|
|
2433
2463
|
unmuteActor(
|
|
2434
2464
|
data?: AppBskyGraphUnmuteActor.InputSchema,
|
|
2435
2465
|
opts?: AppBskyGraphUnmuteActor.CallOptions,
|
|
@@ -3080,6 +3110,22 @@ export class AppBskyUnspeccedNS {
|
|
|
3080
3110
|
throw AppBskyUnspeccedSearchPostsSkeleton.toKnownErr(e)
|
|
3081
3111
|
})
|
|
3082
3112
|
}
|
|
3113
|
+
|
|
3114
|
+
searchStarterPacksSkeleton(
|
|
3115
|
+
params?: AppBskyUnspeccedSearchStarterPacksSkeleton.QueryParams,
|
|
3116
|
+
opts?: AppBskyUnspeccedSearchStarterPacksSkeleton.CallOptions,
|
|
3117
|
+
): Promise<AppBskyUnspeccedSearchStarterPacksSkeleton.Response> {
|
|
3118
|
+
return this._client
|
|
3119
|
+
.call(
|
|
3120
|
+
'app.bsky.unspecced.searchStarterPacksSkeleton',
|
|
3121
|
+
params,
|
|
3122
|
+
undefined,
|
|
3123
|
+
opts,
|
|
3124
|
+
)
|
|
3125
|
+
.catch((e) => {
|
|
3126
|
+
throw AppBskyUnspeccedSearchStarterPacksSkeleton.toKnownErr(e)
|
|
3127
|
+
})
|
|
3128
|
+
}
|
|
3083
3129
|
}
|
|
3084
3130
|
|
|
3085
3131
|
export class AppBskyVideoNS {
|
package/src/client/lexicons.ts
CHANGED
|
@@ -3959,6 +3959,35 @@ export const schemaDict = {
|
|
|
3959
3959
|
},
|
|
3960
3960
|
},
|
|
3961
3961
|
},
|
|
3962
|
+
ComAtprotoTempAddReservedHandle: {
|
|
3963
|
+
lexicon: 1,
|
|
3964
|
+
id: 'com.atproto.temp.addReservedHandle',
|
|
3965
|
+
defs: {
|
|
3966
|
+
main: {
|
|
3967
|
+
type: 'procedure',
|
|
3968
|
+
description: 'Add a handle to the set of reserved handles.',
|
|
3969
|
+
input: {
|
|
3970
|
+
encoding: 'application/json',
|
|
3971
|
+
schema: {
|
|
3972
|
+
type: 'object',
|
|
3973
|
+
required: ['handle'],
|
|
3974
|
+
properties: {
|
|
3975
|
+
handle: {
|
|
3976
|
+
type: 'string',
|
|
3977
|
+
},
|
|
3978
|
+
},
|
|
3979
|
+
},
|
|
3980
|
+
},
|
|
3981
|
+
output: {
|
|
3982
|
+
encoding: 'application/json',
|
|
3983
|
+
schema: {
|
|
3984
|
+
type: 'object',
|
|
3985
|
+
properties: {},
|
|
3986
|
+
},
|
|
3987
|
+
},
|
|
3988
|
+
},
|
|
3989
|
+
},
|
|
3990
|
+
},
|
|
3962
3991
|
ComAtprotoTempCheckSignupQueue: {
|
|
3963
3992
|
lexicon: 1,
|
|
3964
3993
|
id: 'com.atproto.temp.checkSignupQueue',
|
|
@@ -8488,6 +8517,56 @@ export const schemaDict = {
|
|
|
8488
8517
|
},
|
|
8489
8518
|
},
|
|
8490
8519
|
},
|
|
8520
|
+
AppBskyGraphSearchStarterPacks: {
|
|
8521
|
+
lexicon: 1,
|
|
8522
|
+
id: 'app.bsky.graph.searchStarterPacks',
|
|
8523
|
+
defs: {
|
|
8524
|
+
main: {
|
|
8525
|
+
type: 'query',
|
|
8526
|
+
description:
|
|
8527
|
+
'Find starter packs matching search criteria. Does not require auth.',
|
|
8528
|
+
parameters: {
|
|
8529
|
+
type: 'params',
|
|
8530
|
+
required: ['q'],
|
|
8531
|
+
properties: {
|
|
8532
|
+
q: {
|
|
8533
|
+
type: 'string',
|
|
8534
|
+
description:
|
|
8535
|
+
'Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.',
|
|
8536
|
+
},
|
|
8537
|
+
limit: {
|
|
8538
|
+
type: 'integer',
|
|
8539
|
+
minimum: 1,
|
|
8540
|
+
maximum: 100,
|
|
8541
|
+
default: 25,
|
|
8542
|
+
},
|
|
8543
|
+
cursor: {
|
|
8544
|
+
type: 'string',
|
|
8545
|
+
},
|
|
8546
|
+
},
|
|
8547
|
+
},
|
|
8548
|
+
output: {
|
|
8549
|
+
encoding: 'application/json',
|
|
8550
|
+
schema: {
|
|
8551
|
+
type: 'object',
|
|
8552
|
+
required: ['starterPacks'],
|
|
8553
|
+
properties: {
|
|
8554
|
+
cursor: {
|
|
8555
|
+
type: 'string',
|
|
8556
|
+
},
|
|
8557
|
+
starterPacks: {
|
|
8558
|
+
type: 'array',
|
|
8559
|
+
items: {
|
|
8560
|
+
type: 'ref',
|
|
8561
|
+
ref: 'lex:app.bsky.graph.defs#starterPackViewBasic',
|
|
8562
|
+
},
|
|
8563
|
+
},
|
|
8564
|
+
},
|
|
8565
|
+
},
|
|
8566
|
+
},
|
|
8567
|
+
},
|
|
8568
|
+
},
|
|
8569
|
+
},
|
|
8491
8570
|
AppBskyGraphStarterpack: {
|
|
8492
8571
|
lexicon: 1,
|
|
8493
8572
|
id: 'app.bsky.graph.starterpack',
|
|
@@ -9153,6 +9232,16 @@ export const schemaDict = {
|
|
|
9153
9232
|
},
|
|
9154
9233
|
},
|
|
9155
9234
|
},
|
|
9235
|
+
skeletonSearchStarterPack: {
|
|
9236
|
+
type: 'object',
|
|
9237
|
+
required: ['uri'],
|
|
9238
|
+
properties: {
|
|
9239
|
+
uri: {
|
|
9240
|
+
type: 'string',
|
|
9241
|
+
format: 'at-uri',
|
|
9242
|
+
},
|
|
9243
|
+
},
|
|
9244
|
+
},
|
|
9156
9245
|
},
|
|
9157
9246
|
},
|
|
9158
9247
|
AppBskyUnspeccedGetConfig: {
|
|
@@ -9526,6 +9615,73 @@ export const schemaDict = {
|
|
|
9526
9615
|
},
|
|
9527
9616
|
},
|
|
9528
9617
|
},
|
|
9618
|
+
AppBskyUnspeccedSearchStarterPacksSkeleton: {
|
|
9619
|
+
lexicon: 1,
|
|
9620
|
+
id: 'app.bsky.unspecced.searchStarterPacksSkeleton',
|
|
9621
|
+
defs: {
|
|
9622
|
+
main: {
|
|
9623
|
+
type: 'query',
|
|
9624
|
+
description: 'Backend Starter Pack search, returns only skeleton.',
|
|
9625
|
+
parameters: {
|
|
9626
|
+
type: 'params',
|
|
9627
|
+
required: ['q'],
|
|
9628
|
+
properties: {
|
|
9629
|
+
q: {
|
|
9630
|
+
type: 'string',
|
|
9631
|
+
description:
|
|
9632
|
+
'Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.',
|
|
9633
|
+
},
|
|
9634
|
+
viewer: {
|
|
9635
|
+
type: 'string',
|
|
9636
|
+
format: 'did',
|
|
9637
|
+
description:
|
|
9638
|
+
'DID of the account making the request (not included for public/unauthenticated queries).',
|
|
9639
|
+
},
|
|
9640
|
+
limit: {
|
|
9641
|
+
type: 'integer',
|
|
9642
|
+
minimum: 1,
|
|
9643
|
+
maximum: 100,
|
|
9644
|
+
default: 25,
|
|
9645
|
+
},
|
|
9646
|
+
cursor: {
|
|
9647
|
+
type: 'string',
|
|
9648
|
+
description:
|
|
9649
|
+
'Optional pagination mechanism; may not necessarily allow scrolling through entire result set.',
|
|
9650
|
+
},
|
|
9651
|
+
},
|
|
9652
|
+
},
|
|
9653
|
+
output: {
|
|
9654
|
+
encoding: 'application/json',
|
|
9655
|
+
schema: {
|
|
9656
|
+
type: 'object',
|
|
9657
|
+
required: ['starterPacks'],
|
|
9658
|
+
properties: {
|
|
9659
|
+
cursor: {
|
|
9660
|
+
type: 'string',
|
|
9661
|
+
},
|
|
9662
|
+
hitsTotal: {
|
|
9663
|
+
type: 'integer',
|
|
9664
|
+
description:
|
|
9665
|
+
'Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits.',
|
|
9666
|
+
},
|
|
9667
|
+
starterPacks: {
|
|
9668
|
+
type: 'array',
|
|
9669
|
+
items: {
|
|
9670
|
+
type: 'ref',
|
|
9671
|
+
ref: 'lex:app.bsky.unspecced.defs#skeletonSearchStarterPack',
|
|
9672
|
+
},
|
|
9673
|
+
},
|
|
9674
|
+
},
|
|
9675
|
+
},
|
|
9676
|
+
},
|
|
9677
|
+
errors: [
|
|
9678
|
+
{
|
|
9679
|
+
name: 'BadQueryString',
|
|
9680
|
+
},
|
|
9681
|
+
],
|
|
9682
|
+
},
|
|
9683
|
+
},
|
|
9684
|
+
},
|
|
9529
9685
|
AppBskyVideoDefs: {
|
|
9530
9686
|
lexicon: 1,
|
|
9531
9687
|
id: 'app.bsky.video.defs',
|
|
@@ -13327,8 +13483,9 @@ export const schemaDict = {
|
|
|
13327
13483
|
},
|
|
13328
13484
|
},
|
|
13329
13485
|
},
|
|
13330
|
-
}
|
|
13331
|
-
|
|
13486
|
+
} as const satisfies Record<string, LexiconDoc>
|
|
13487
|
+
|
|
13488
|
+
export const schemas = Object.values(schemaDict)
|
|
13332
13489
|
export const lexicons: Lexicons = new Lexicons(schemas)
|
|
13333
13490
|
export const ids = {
|
|
13334
13491
|
ComAtprotoAdminDefs: 'com.atproto.admin.defs',
|
|
@@ -13417,6 +13574,7 @@ export const ids = {
|
|
|
13417
13574
|
ComAtprotoSyncNotifyOfUpdate: 'com.atproto.sync.notifyOfUpdate',
|
|
13418
13575
|
ComAtprotoSyncRequestCrawl: 'com.atproto.sync.requestCrawl',
|
|
13419
13576
|
ComAtprotoSyncSubscribeRepos: 'com.atproto.sync.subscribeRepos',
|
|
13577
|
+
ComAtprotoTempAddReservedHandle: 'com.atproto.temp.addReservedHandle',
|
|
13420
13578
|
ComAtprotoTempCheckSignupQueue: 'com.atproto.temp.checkSignupQueue',
|
|
13421
13579
|
ComAtprotoTempFetchLabels: 'com.atproto.temp.fetchLabels',
|
|
13422
13580
|
ComAtprotoTempRequestPhoneVerification:
|
|
@@ -13485,6 +13643,7 @@ export const ids = {
|
|
|
13485
13643
|
AppBskyGraphMuteActor: 'app.bsky.graph.muteActor',
|
|
13486
13644
|
AppBskyGraphMuteActorList: 'app.bsky.graph.muteActorList',
|
|
13487
13645
|
AppBskyGraphMuteThread: 'app.bsky.graph.muteThread',
|
|
13646
|
+
AppBskyGraphSearchStarterPacks: 'app.bsky.graph.searchStarterPacks',
|
|
13488
13647
|
AppBskyGraphStarterpack: 'app.bsky.graph.starterpack',
|
|
13489
13648
|
AppBskyGraphUnmuteActor: 'app.bsky.graph.unmuteActor',
|
|
13490
13649
|
AppBskyGraphUnmuteActorList: 'app.bsky.graph.unmuteActorList',
|
|
@@ -13510,6 +13669,8 @@ export const ids = {
|
|
|
13510
13669
|
AppBskyUnspeccedSearchActorsSkeleton:
|
|
13511
13670
|
'app.bsky.unspecced.searchActorsSkeleton',
|
|
13512
13671
|
AppBskyUnspeccedSearchPostsSkeleton: 'app.bsky.unspecced.searchPostsSkeleton',
|
|
13672
|
+
AppBskyUnspeccedSearchStarterPacksSkeleton:
|
|
13673
|
+
'app.bsky.unspecced.searchStarterPacksSkeleton',
|
|
13513
13674
|
AppBskyVideoDefs: 'app.bsky.video.defs',
|
|
13514
13675
|
AppBskyVideoGetJobStatus: 'app.bsky.video.getJobStatus',
|
|
13515
13676
|
AppBskyVideoGetUploadLimits: 'app.bsky.video.getUploadLimits',
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { isObj, hasProp } from '../../../../util'
|
|
7
|
+
import { lexicons } from '../../../../lexicons'
|
|
8
|
+
import { CID } from 'multiformats/cid'
|
|
9
|
+
import * as AppBskyGraphDefs from './defs'
|
|
10
|
+
|
|
11
|
+
export interface QueryParams {
|
|
12
|
+
/** Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
|
|
13
|
+
q: string
|
|
14
|
+
limit?: number
|
|
15
|
+
cursor?: string
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type InputSchema = undefined
|
|
19
|
+
|
|
20
|
+
export interface OutputSchema {
|
|
21
|
+
cursor?: string
|
|
22
|
+
starterPacks: AppBskyGraphDefs.StarterPackViewBasic[]
|
|
23
|
+
[k: string]: unknown
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface CallOptions {
|
|
27
|
+
signal?: AbortSignal
|
|
28
|
+
headers?: HeadersMap
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface Response {
|
|
32
|
+
success: boolean
|
|
33
|
+
headers: HeadersMap
|
|
34
|
+
data: OutputSchema
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function toKnownErr(e: any) {
|
|
38
|
+
return e
|
|
39
|
+
}
|
|
@@ -39,3 +39,27 @@ export function isSkeletonSearchActor(v: unknown): v is SkeletonSearchActor {
|
|
|
39
39
|
export function validateSkeletonSearchActor(v: unknown): ValidationResult {
|
|
40
40
|
return lexicons.validate('app.bsky.unspecced.defs#skeletonSearchActor', v)
|
|
41
41
|
}
|
|
42
|
+
|
|
43
|
+
export interface SkeletonSearchStarterPack {
|
|
44
|
+
uri: string
|
|
45
|
+
[k: string]: unknown
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function isSkeletonSearchStarterPack(
|
|
49
|
+
v: unknown,
|
|
50
|
+
): v is SkeletonSearchStarterPack {
|
|
51
|
+
return (
|
|
52
|
+
isObj(v) &&
|
|
53
|
+
hasProp(v, '$type') &&
|
|
54
|
+
v.$type === 'app.bsky.unspecced.defs#skeletonSearchStarterPack'
|
|
55
|
+
)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function validateSkeletonSearchStarterPack(
|
|
59
|
+
v: unknown,
|
|
60
|
+
): ValidationResult {
|
|
61
|
+
return lexicons.validate(
|
|
62
|
+
'app.bsky.unspecced.defs#skeletonSearchStarterPack',
|
|
63
|
+
v,
|
|
64
|
+
)
|
|
65
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { isObj, hasProp } from '../../../../util'
|
|
7
|
+
import { lexicons } from '../../../../lexicons'
|
|
8
|
+
import { CID } from 'multiformats/cid'
|
|
9
|
+
import * as AppBskyUnspeccedDefs from './defs'
|
|
10
|
+
|
|
11
|
+
export interface QueryParams {
|
|
12
|
+
/** Search query string; syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended. */
|
|
13
|
+
q: string
|
|
14
|
+
/** DID of the account making the request (not included for public/unauthenticated queries). */
|
|
15
|
+
viewer?: string
|
|
16
|
+
limit?: number
|
|
17
|
+
/** Optional pagination mechanism; may not necessarily allow scrolling through entire result set. */
|
|
18
|
+
cursor?: string
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type InputSchema = undefined
|
|
22
|
+
|
|
23
|
+
export interface OutputSchema {
|
|
24
|
+
cursor?: string
|
|
25
|
+
/** Count of search hits. Optional, may be rounded/truncated, and may not be possible to paginate through all hits. */
|
|
26
|
+
hitsTotal?: number
|
|
27
|
+
starterPacks: AppBskyUnspeccedDefs.SkeletonSearchStarterPack[]
|
|
28
|
+
[k: string]: unknown
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface CallOptions {
|
|
32
|
+
signal?: AbortSignal
|
|
33
|
+
headers?: HeadersMap
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface Response {
|
|
37
|
+
success: boolean
|
|
38
|
+
headers: HeadersMap
|
|
39
|
+
data: OutputSchema
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export class BadQueryStringError extends XRPCError {
|
|
43
|
+
constructor(src: XRPCError) {
|
|
44
|
+
super(src.status, src.error, src.message, src.headers, { cause: src })
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function toKnownErr(e: any) {
|
|
49
|
+
if (e instanceof XRPCError) {
|
|
50
|
+
if (e.error === 'BadQueryString') return new BadQueryStringError(e)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return e
|
|
54
|
+
}
|