@atproto/api 0.14.18 → 0.14.20
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 +17 -0
- package/dist/client/index.d.ts +12 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +20 -4
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +332 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +170 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/unspecced/getSuggestedFeeds.d.ts +23 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedFeeds.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedFeeds.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedFeeds.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.d.ts +24 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsers.d.ts +25 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsers.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsers.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsers.js.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersSkeleton.d.ts +26 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersSkeleton.d.ts.map +1 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersSkeleton.js +11 -0
- package/dist/client/types/app/bsky/unspecced/getSuggestedUsersSkeleton.js.map +1 -0
- package/package.json +5 -5
- package/src/client/index.ts +56 -0
- package/src/client/lexicons.ts +176 -0
- package/src/client/types/app/bsky/unspecced/getSuggestedFeeds.ts +42 -0
- package/src/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.ts +43 -0
- package/src/client/types/app/bsky/unspecced/getSuggestedUsers.ts +44 -0
- package/src/client/types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts +45 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import type * as AppBskyFeedDefs from '../feed/defs.js';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
limit?: number;
|
|
8
|
+
}
|
|
9
|
+
export type InputSchema = undefined;
|
|
10
|
+
export interface OutputSchema {
|
|
11
|
+
feeds: AppBskyFeedDefs.GeneratorView[];
|
|
12
|
+
}
|
|
13
|
+
export interface CallOptions {
|
|
14
|
+
signal?: AbortSignal;
|
|
15
|
+
headers?: HeadersMap;
|
|
16
|
+
}
|
|
17
|
+
export interface Response {
|
|
18
|
+
success: boolean;
|
|
19
|
+
headers: HeadersMap;
|
|
20
|
+
data: OutputSchema;
|
|
21
|
+
}
|
|
22
|
+
export declare function toKnownErr(e: any): any;
|
|
23
|
+
//# sourceMappingURL=getSuggestedFeeds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSuggestedFeeds.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getSuggestedFeeds.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,eAAe,MAAM,iBAAiB,CAAA;AAMvD,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,eAAe,CAAC,aAAa,EAAE,CAAA;CACvC;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,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toKnownErr = toKnownErr;
|
|
4
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
5
|
+
const util_1 = require("../../../../util");
|
|
6
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
7
|
+
const id = 'app.bsky.unspecced.getSuggestedFeeds';
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=getSuggestedFeeds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSuggestedFeeds.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getSuggestedFeeds.ts"],"names":[],"mappings":";;AAuCA,gCAEC;AAnCD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sCAAsC,CAAA;AAuBjD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
export interface QueryParams {
|
|
6
|
+
/** DID of the account making the request (not included for public/unauthenticated queries). */
|
|
7
|
+
viewer?: string;
|
|
8
|
+
limit?: number;
|
|
9
|
+
}
|
|
10
|
+
export type InputSchema = undefined;
|
|
11
|
+
export interface OutputSchema {
|
|
12
|
+
feeds: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface CallOptions {
|
|
15
|
+
signal?: AbortSignal;
|
|
16
|
+
headers?: HeadersMap;
|
|
17
|
+
}
|
|
18
|
+
export interface Response {
|
|
19
|
+
success: boolean;
|
|
20
|
+
headers: HeadersMap;
|
|
21
|
+
data: OutputSchema;
|
|
22
|
+
}
|
|
23
|
+
export declare function toKnownErr(e: any): any;
|
|
24
|
+
//# sourceMappingURL=getSuggestedFeedsSkeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSuggestedFeedsSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAcrD,MAAM,WAAW,WAAW;IAC1B,+FAA+F;IAC/F,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,EAAE,CAAA;CAChB;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,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toKnownErr = toKnownErr;
|
|
4
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
5
|
+
const util_1 = require("../../../../util");
|
|
6
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
7
|
+
const id = 'app.bsky.unspecced.getSuggestedFeedsSkeleton';
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=getSuggestedFeedsSkeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSuggestedFeedsSkeleton.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getSuggestedFeedsSkeleton.ts"],"names":[],"mappings":";;AAwCA,gCAEC;AApCD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8CAA8C,CAAA;AAyBzD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import type * as AppBskyActorDefs from '../actor/defs.js';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
/** Category of users to get suggestions for. */
|
|
8
|
+
category?: string;
|
|
9
|
+
limit?: number;
|
|
10
|
+
}
|
|
11
|
+
export type InputSchema = undefined;
|
|
12
|
+
export interface OutputSchema {
|
|
13
|
+
actors: AppBskyActorDefs.ProfileViewBasic[];
|
|
14
|
+
}
|
|
15
|
+
export interface CallOptions {
|
|
16
|
+
signal?: AbortSignal;
|
|
17
|
+
headers?: HeadersMap;
|
|
18
|
+
}
|
|
19
|
+
export interface Response {
|
|
20
|
+
success: boolean;
|
|
21
|
+
headers: HeadersMap;
|
|
22
|
+
data: OutputSchema;
|
|
23
|
+
}
|
|
24
|
+
export declare function toKnownErr(e: any): any;
|
|
25
|
+
//# sourceMappingURL=getSuggestedUsers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSuggestedUsers.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getSuggestedUsers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AAMzD,MAAM,WAAW,WAAW;IAC1B,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,gBAAgB,CAAC,gBAAgB,EAAE,CAAA;CAC5C;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,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toKnownErr = toKnownErr;
|
|
4
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
5
|
+
const util_1 = require("../../../../util");
|
|
6
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
7
|
+
const id = 'app.bsky.unspecced.getSuggestedUsers';
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=getSuggestedUsers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSuggestedUsers.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getSuggestedUsers.ts"],"names":[],"mappings":";;AAyCA,gCAEC;AArCD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,sCAAsC,CAAA;AAyBjD,SAAgB,UAAU,CAAC,CAAM;IAC/B,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
|
+
/** DID of the account making the request (not included for public/unauthenticated queries). */
|
|
7
|
+
viewer?: string;
|
|
8
|
+
/** Category of users to get suggestions for. */
|
|
9
|
+
category?: string;
|
|
10
|
+
limit?: number;
|
|
11
|
+
}
|
|
12
|
+
export type InputSchema = undefined;
|
|
13
|
+
export interface OutputSchema {
|
|
14
|
+
dids: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface CallOptions {
|
|
17
|
+
signal?: AbortSignal;
|
|
18
|
+
headers?: HeadersMap;
|
|
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=getSuggestedUsersSkeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSuggestedUsersSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAcrD,MAAM,WAAW,WAAW;IAC1B,+FAA+F;IAC/F,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAA;CACf;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,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toKnownErr = toKnownErr;
|
|
4
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
5
|
+
const util_1 = require("../../../../util");
|
|
6
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
7
|
+
const id = 'app.bsky.unspecced.getSuggestedUsersSkeleton';
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=getSuggestedUsersSkeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSuggestedUsersSkeleton.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts"],"names":[],"mappings":";;AA0CA,gCAEC;AAtCD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8CAA8C,CAAA;AA2BzD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.20",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"multiformats": "^9.9.0",
|
|
22
22
|
"tlds": "^1.234.0",
|
|
23
23
|
"zod": "^3.23.8",
|
|
24
|
-
"@atproto/common-web": "^0.4.
|
|
25
|
-
"@atproto/lexicon": "^0.4.
|
|
24
|
+
"@atproto/common-web": "^0.4.1",
|
|
25
|
+
"@atproto/lexicon": "^0.4.10",
|
|
26
26
|
"@atproto/syntax": "^0.4.0",
|
|
27
|
-
"@atproto/xrpc": "^0.6.
|
|
27
|
+
"@atproto/xrpc": "^0.6.12"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"jest": "^28.1.2",
|
|
31
31
|
"prettier": "^3.2.5",
|
|
32
32
|
"typescript": "^5.6.3",
|
|
33
|
-
"@atproto/lex-cli": "^0.7.
|
|
33
|
+
"@atproto/lex-cli": "^0.7.2"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"codegen": "node ./scripts/generate-code.mjs && lex gen-api --yes ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/chat/bsky/*/* ../../lexicons/tools/ozone/*/*",
|
package/src/client/index.ts
CHANGED
|
@@ -177,8 +177,12 @@ import * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet.js'
|
|
|
177
177
|
import * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs.js'
|
|
178
178
|
import * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js'
|
|
179
179
|
import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators.js'
|
|
180
|
+
import * as AppBskyUnspeccedGetSuggestedFeeds from './types/app/bsky/unspecced/getSuggestedFeeds.js'
|
|
181
|
+
import * as AppBskyUnspeccedGetSuggestedFeedsSkeleton from './types/app/bsky/unspecced/getSuggestedFeedsSkeleton.js'
|
|
180
182
|
import * as AppBskyUnspeccedGetSuggestedStarterPacks from './types/app/bsky/unspecced/getSuggestedStarterPacks.js'
|
|
181
183
|
import * as AppBskyUnspeccedGetSuggestedStarterPacksSkeleton from './types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js'
|
|
184
|
+
import * as AppBskyUnspeccedGetSuggestedUsers from './types/app/bsky/unspecced/getSuggestedUsers.js'
|
|
185
|
+
import * as AppBskyUnspeccedGetSuggestedUsersSkeleton from './types/app/bsky/unspecced/getSuggestedUsersSkeleton.js'
|
|
182
186
|
import * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspecced/getSuggestionsSkeleton.js'
|
|
183
187
|
import * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions.js'
|
|
184
188
|
import * as AppBskyUnspeccedGetTrendingTopics from './types/app/bsky/unspecced/getTrendingTopics.js'
|
|
@@ -423,8 +427,12 @@ export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet.js'
|
|
|
423
427
|
export * as AppBskyUnspeccedDefs from './types/app/bsky/unspecced/defs.js'
|
|
424
428
|
export * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js'
|
|
425
429
|
export * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators.js'
|
|
430
|
+
export * as AppBskyUnspeccedGetSuggestedFeeds from './types/app/bsky/unspecced/getSuggestedFeeds.js'
|
|
431
|
+
export * as AppBskyUnspeccedGetSuggestedFeedsSkeleton from './types/app/bsky/unspecced/getSuggestedFeedsSkeleton.js'
|
|
426
432
|
export * as AppBskyUnspeccedGetSuggestedStarterPacks from './types/app/bsky/unspecced/getSuggestedStarterPacks.js'
|
|
427
433
|
export * as AppBskyUnspeccedGetSuggestedStarterPacksSkeleton from './types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js'
|
|
434
|
+
export * as AppBskyUnspeccedGetSuggestedUsers from './types/app/bsky/unspecced/getSuggestedUsers.js'
|
|
435
|
+
export * as AppBskyUnspeccedGetSuggestedUsersSkeleton from './types/app/bsky/unspecced/getSuggestedUsersSkeleton.js'
|
|
428
436
|
export * as AppBskyUnspeccedGetSuggestionsSkeleton from './types/app/bsky/unspecced/getSuggestionsSkeleton.js'
|
|
429
437
|
export * as AppBskyUnspeccedGetTaggedSuggestions from './types/app/bsky/unspecced/getTaggedSuggestions.js'
|
|
430
438
|
export * as AppBskyUnspeccedGetTrendingTopics from './types/app/bsky/unspecced/getTrendingTopics.js'
|
|
@@ -3248,6 +3256,30 @@ export class AppBskyUnspeccedNS {
|
|
|
3248
3256
|
)
|
|
3249
3257
|
}
|
|
3250
3258
|
|
|
3259
|
+
getSuggestedFeeds(
|
|
3260
|
+
params?: AppBskyUnspeccedGetSuggestedFeeds.QueryParams,
|
|
3261
|
+
opts?: AppBskyUnspeccedGetSuggestedFeeds.CallOptions,
|
|
3262
|
+
): Promise<AppBskyUnspeccedGetSuggestedFeeds.Response> {
|
|
3263
|
+
return this._client.call(
|
|
3264
|
+
'app.bsky.unspecced.getSuggestedFeeds',
|
|
3265
|
+
params,
|
|
3266
|
+
undefined,
|
|
3267
|
+
opts,
|
|
3268
|
+
)
|
|
3269
|
+
}
|
|
3270
|
+
|
|
3271
|
+
getSuggestedFeedsSkeleton(
|
|
3272
|
+
params?: AppBskyUnspeccedGetSuggestedFeedsSkeleton.QueryParams,
|
|
3273
|
+
opts?: AppBskyUnspeccedGetSuggestedFeedsSkeleton.CallOptions,
|
|
3274
|
+
): Promise<AppBskyUnspeccedGetSuggestedFeedsSkeleton.Response> {
|
|
3275
|
+
return this._client.call(
|
|
3276
|
+
'app.bsky.unspecced.getSuggestedFeedsSkeleton',
|
|
3277
|
+
params,
|
|
3278
|
+
undefined,
|
|
3279
|
+
opts,
|
|
3280
|
+
)
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3251
3283
|
getSuggestedStarterPacks(
|
|
3252
3284
|
params?: AppBskyUnspeccedGetSuggestedStarterPacks.QueryParams,
|
|
3253
3285
|
opts?: AppBskyUnspeccedGetSuggestedStarterPacks.CallOptions,
|
|
@@ -3272,6 +3304,30 @@ export class AppBskyUnspeccedNS {
|
|
|
3272
3304
|
)
|
|
3273
3305
|
}
|
|
3274
3306
|
|
|
3307
|
+
getSuggestedUsers(
|
|
3308
|
+
params?: AppBskyUnspeccedGetSuggestedUsers.QueryParams,
|
|
3309
|
+
opts?: AppBskyUnspeccedGetSuggestedUsers.CallOptions,
|
|
3310
|
+
): Promise<AppBskyUnspeccedGetSuggestedUsers.Response> {
|
|
3311
|
+
return this._client.call(
|
|
3312
|
+
'app.bsky.unspecced.getSuggestedUsers',
|
|
3313
|
+
params,
|
|
3314
|
+
undefined,
|
|
3315
|
+
opts,
|
|
3316
|
+
)
|
|
3317
|
+
}
|
|
3318
|
+
|
|
3319
|
+
getSuggestedUsersSkeleton(
|
|
3320
|
+
params?: AppBskyUnspeccedGetSuggestedUsersSkeleton.QueryParams,
|
|
3321
|
+
opts?: AppBskyUnspeccedGetSuggestedUsersSkeleton.CallOptions,
|
|
3322
|
+
): Promise<AppBskyUnspeccedGetSuggestedUsersSkeleton.Response> {
|
|
3323
|
+
return this._client.call(
|
|
3324
|
+
'app.bsky.unspecced.getSuggestedUsersSkeleton',
|
|
3325
|
+
params,
|
|
3326
|
+
undefined,
|
|
3327
|
+
opts,
|
|
3328
|
+
)
|
|
3329
|
+
}
|
|
3330
|
+
|
|
3275
3331
|
getSuggestionsSkeleton(
|
|
3276
3332
|
params?: AppBskyUnspeccedGetSuggestionsSkeleton.QueryParams,
|
|
3277
3333
|
opts?: AppBskyUnspeccedGetSuggestionsSkeleton.CallOptions,
|
package/src/client/lexicons.ts
CHANGED
|
@@ -9884,6 +9884,87 @@ export const schemaDict = {
|
|
|
9884
9884
|
},
|
|
9885
9885
|
},
|
|
9886
9886
|
},
|
|
9887
|
+
AppBskyUnspeccedGetSuggestedFeeds: {
|
|
9888
|
+
lexicon: 1,
|
|
9889
|
+
id: 'app.bsky.unspecced.getSuggestedFeeds',
|
|
9890
|
+
defs: {
|
|
9891
|
+
main: {
|
|
9892
|
+
type: 'query',
|
|
9893
|
+
description: 'Get a list of suggested feeds',
|
|
9894
|
+
parameters: {
|
|
9895
|
+
type: 'params',
|
|
9896
|
+
properties: {
|
|
9897
|
+
limit: {
|
|
9898
|
+
type: 'integer',
|
|
9899
|
+
minimum: 1,
|
|
9900
|
+
maximum: 25,
|
|
9901
|
+
default: 10,
|
|
9902
|
+
},
|
|
9903
|
+
},
|
|
9904
|
+
},
|
|
9905
|
+
output: {
|
|
9906
|
+
encoding: 'application/json',
|
|
9907
|
+
schema: {
|
|
9908
|
+
type: 'object',
|
|
9909
|
+
required: ['feeds'],
|
|
9910
|
+
properties: {
|
|
9911
|
+
feeds: {
|
|
9912
|
+
type: 'array',
|
|
9913
|
+
items: {
|
|
9914
|
+
type: 'ref',
|
|
9915
|
+
ref: 'lex:app.bsky.feed.defs#generatorView',
|
|
9916
|
+
},
|
|
9917
|
+
},
|
|
9918
|
+
},
|
|
9919
|
+
},
|
|
9920
|
+
},
|
|
9921
|
+
},
|
|
9922
|
+
},
|
|
9923
|
+
},
|
|
9924
|
+
AppBskyUnspeccedGetSuggestedFeedsSkeleton: {
|
|
9925
|
+
lexicon: 1,
|
|
9926
|
+
id: 'app.bsky.unspecced.getSuggestedFeedsSkeleton',
|
|
9927
|
+
defs: {
|
|
9928
|
+
main: {
|
|
9929
|
+
type: 'query',
|
|
9930
|
+
description:
|
|
9931
|
+
'Get a skeleton of suggested feeds. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedFeeds',
|
|
9932
|
+
parameters: {
|
|
9933
|
+
type: 'params',
|
|
9934
|
+
properties: {
|
|
9935
|
+
viewer: {
|
|
9936
|
+
type: 'string',
|
|
9937
|
+
format: 'did',
|
|
9938
|
+
description:
|
|
9939
|
+
'DID of the account making the request (not included for public/unauthenticated queries).',
|
|
9940
|
+
},
|
|
9941
|
+
limit: {
|
|
9942
|
+
type: 'integer',
|
|
9943
|
+
minimum: 1,
|
|
9944
|
+
maximum: 25,
|
|
9945
|
+
default: 10,
|
|
9946
|
+
},
|
|
9947
|
+
},
|
|
9948
|
+
},
|
|
9949
|
+
output: {
|
|
9950
|
+
encoding: 'application/json',
|
|
9951
|
+
schema: {
|
|
9952
|
+
type: 'object',
|
|
9953
|
+
required: ['feeds'],
|
|
9954
|
+
properties: {
|
|
9955
|
+
feeds: {
|
|
9956
|
+
type: 'array',
|
|
9957
|
+
items: {
|
|
9958
|
+
type: 'string',
|
|
9959
|
+
format: 'at-uri',
|
|
9960
|
+
},
|
|
9961
|
+
},
|
|
9962
|
+
},
|
|
9963
|
+
},
|
|
9964
|
+
},
|
|
9965
|
+
},
|
|
9966
|
+
},
|
|
9967
|
+
},
|
|
9887
9968
|
AppBskyUnspeccedGetSuggestedStarterPacks: {
|
|
9888
9969
|
lexicon: 1,
|
|
9889
9970
|
id: 'app.bsky.unspecced.getSuggestedStarterPacks',
|
|
@@ -9965,6 +10046,95 @@ export const schemaDict = {
|
|
|
9965
10046
|
},
|
|
9966
10047
|
},
|
|
9967
10048
|
},
|
|
10049
|
+
AppBskyUnspeccedGetSuggestedUsers: {
|
|
10050
|
+
lexicon: 1,
|
|
10051
|
+
id: 'app.bsky.unspecced.getSuggestedUsers',
|
|
10052
|
+
defs: {
|
|
10053
|
+
main: {
|
|
10054
|
+
type: 'query',
|
|
10055
|
+
description: 'Get a list of suggested users',
|
|
10056
|
+
parameters: {
|
|
10057
|
+
type: 'params',
|
|
10058
|
+
properties: {
|
|
10059
|
+
category: {
|
|
10060
|
+
type: 'string',
|
|
10061
|
+
description: 'Category of users to get suggestions for.',
|
|
10062
|
+
},
|
|
10063
|
+
limit: {
|
|
10064
|
+
type: 'integer',
|
|
10065
|
+
minimum: 1,
|
|
10066
|
+
maximum: 50,
|
|
10067
|
+
default: 25,
|
|
10068
|
+
},
|
|
10069
|
+
},
|
|
10070
|
+
},
|
|
10071
|
+
output: {
|
|
10072
|
+
encoding: 'application/json',
|
|
10073
|
+
schema: {
|
|
10074
|
+
type: 'object',
|
|
10075
|
+
required: ['actors'],
|
|
10076
|
+
properties: {
|
|
10077
|
+
actors: {
|
|
10078
|
+
type: 'array',
|
|
10079
|
+
items: {
|
|
10080
|
+
type: 'ref',
|
|
10081
|
+
ref: 'lex:app.bsky.actor.defs#profileViewBasic',
|
|
10082
|
+
},
|
|
10083
|
+
},
|
|
10084
|
+
},
|
|
10085
|
+
},
|
|
10086
|
+
},
|
|
10087
|
+
},
|
|
10088
|
+
},
|
|
10089
|
+
},
|
|
10090
|
+
AppBskyUnspeccedGetSuggestedUsersSkeleton: {
|
|
10091
|
+
lexicon: 1,
|
|
10092
|
+
id: 'app.bsky.unspecced.getSuggestedUsersSkeleton',
|
|
10093
|
+
defs: {
|
|
10094
|
+
main: {
|
|
10095
|
+
type: 'query',
|
|
10096
|
+
description:
|
|
10097
|
+
'Get a skeleton of suggested users. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedUsers',
|
|
10098
|
+
parameters: {
|
|
10099
|
+
type: 'params',
|
|
10100
|
+
properties: {
|
|
10101
|
+
viewer: {
|
|
10102
|
+
type: 'string',
|
|
10103
|
+
format: 'did',
|
|
10104
|
+
description:
|
|
10105
|
+
'DID of the account making the request (not included for public/unauthenticated queries).',
|
|
10106
|
+
},
|
|
10107
|
+
category: {
|
|
10108
|
+
type: 'string',
|
|
10109
|
+
description: 'Category of users to get suggestions for.',
|
|
10110
|
+
},
|
|
10111
|
+
limit: {
|
|
10112
|
+
type: 'integer',
|
|
10113
|
+
minimum: 1,
|
|
10114
|
+
maximum: 50,
|
|
10115
|
+
default: 25,
|
|
10116
|
+
},
|
|
10117
|
+
},
|
|
10118
|
+
},
|
|
10119
|
+
output: {
|
|
10120
|
+
encoding: 'application/json',
|
|
10121
|
+
schema: {
|
|
10122
|
+
type: 'object',
|
|
10123
|
+
required: ['dids'],
|
|
10124
|
+
properties: {
|
|
10125
|
+
dids: {
|
|
10126
|
+
type: 'array',
|
|
10127
|
+
items: {
|
|
10128
|
+
type: 'string',
|
|
10129
|
+
format: 'did',
|
|
10130
|
+
},
|
|
10131
|
+
},
|
|
10132
|
+
},
|
|
10133
|
+
},
|
|
10134
|
+
},
|
|
10135
|
+
},
|
|
10136
|
+
},
|
|
10137
|
+
},
|
|
9968
10138
|
AppBskyUnspeccedGetSuggestionsSkeleton: {
|
|
9969
10139
|
lexicon: 1,
|
|
9970
10140
|
id: 'app.bsky.unspecced.getSuggestionsSkeleton',
|
|
@@ -15247,10 +15417,16 @@ export const ids = {
|
|
|
15247
15417
|
AppBskyUnspeccedGetConfig: 'app.bsky.unspecced.getConfig',
|
|
15248
15418
|
AppBskyUnspeccedGetPopularFeedGenerators:
|
|
15249
15419
|
'app.bsky.unspecced.getPopularFeedGenerators',
|
|
15420
|
+
AppBskyUnspeccedGetSuggestedFeeds: 'app.bsky.unspecced.getSuggestedFeeds',
|
|
15421
|
+
AppBskyUnspeccedGetSuggestedFeedsSkeleton:
|
|
15422
|
+
'app.bsky.unspecced.getSuggestedFeedsSkeleton',
|
|
15250
15423
|
AppBskyUnspeccedGetSuggestedStarterPacks:
|
|
15251
15424
|
'app.bsky.unspecced.getSuggestedStarterPacks',
|
|
15252
15425
|
AppBskyUnspeccedGetSuggestedStarterPacksSkeleton:
|
|
15253
15426
|
'app.bsky.unspecced.getSuggestedStarterPacksSkeleton',
|
|
15427
|
+
AppBskyUnspeccedGetSuggestedUsers: 'app.bsky.unspecced.getSuggestedUsers',
|
|
15428
|
+
AppBskyUnspeccedGetSuggestedUsersSkeleton:
|
|
15429
|
+
'app.bsky.unspecced.getSuggestedUsersSkeleton',
|
|
15254
15430
|
AppBskyUnspeccedGetSuggestionsSkeleton:
|
|
15255
15431
|
'app.bsky.unspecced.getSuggestionsSkeleton',
|
|
15256
15432
|
AppBskyUnspeccedGetTaggedSuggestions:
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { CID } from 'multiformats/cid'
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons'
|
|
8
|
+
import {
|
|
9
|
+
type $Typed,
|
|
10
|
+
is$typed as _is$typed,
|
|
11
|
+
type OmitKey,
|
|
12
|
+
} from '../../../../util'
|
|
13
|
+
import type * as AppBskyFeedDefs from '../feed/defs.js'
|
|
14
|
+
|
|
15
|
+
const is$typed = _is$typed,
|
|
16
|
+
validate = _validate
|
|
17
|
+
const id = 'app.bsky.unspecced.getSuggestedFeeds'
|
|
18
|
+
|
|
19
|
+
export interface QueryParams {
|
|
20
|
+
limit?: number
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type InputSchema = undefined
|
|
24
|
+
|
|
25
|
+
export interface OutputSchema {
|
|
26
|
+
feeds: AppBskyFeedDefs.GeneratorView[]
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface CallOptions {
|
|
30
|
+
signal?: AbortSignal
|
|
31
|
+
headers?: HeadersMap
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface Response {
|
|
35
|
+
success: boolean
|
|
36
|
+
headers: HeadersMap
|
|
37
|
+
data: OutputSchema
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function toKnownErr(e: any) {
|
|
41
|
+
return e
|
|
42
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { CID } from 'multiformats/cid'
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons'
|
|
8
|
+
import {
|
|
9
|
+
type $Typed,
|
|
10
|
+
is$typed as _is$typed,
|
|
11
|
+
type OmitKey,
|
|
12
|
+
} from '../../../../util'
|
|
13
|
+
|
|
14
|
+
const is$typed = _is$typed,
|
|
15
|
+
validate = _validate
|
|
16
|
+
const id = 'app.bsky.unspecced.getSuggestedFeedsSkeleton'
|
|
17
|
+
|
|
18
|
+
export interface QueryParams {
|
|
19
|
+
/** DID of the account making the request (not included for public/unauthenticated queries). */
|
|
20
|
+
viewer?: string
|
|
21
|
+
limit?: number
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type InputSchema = undefined
|
|
25
|
+
|
|
26
|
+
export interface OutputSchema {
|
|
27
|
+
feeds: string[]
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface CallOptions {
|
|
31
|
+
signal?: AbortSignal
|
|
32
|
+
headers?: HeadersMap
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface Response {
|
|
36
|
+
success: boolean
|
|
37
|
+
headers: HeadersMap
|
|
38
|
+
data: OutputSchema
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function toKnownErr(e: any) {
|
|
42
|
+
return e
|
|
43
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { CID } from 'multiformats/cid'
|
|
7
|
+
import { validate as _validate } from '../../../../lexicons'
|
|
8
|
+
import {
|
|
9
|
+
type $Typed,
|
|
10
|
+
is$typed as _is$typed,
|
|
11
|
+
type OmitKey,
|
|
12
|
+
} from '../../../../util'
|
|
13
|
+
import type * as AppBskyActorDefs from '../actor/defs.js'
|
|
14
|
+
|
|
15
|
+
const is$typed = _is$typed,
|
|
16
|
+
validate = _validate
|
|
17
|
+
const id = 'app.bsky.unspecced.getSuggestedUsers'
|
|
18
|
+
|
|
19
|
+
export interface QueryParams {
|
|
20
|
+
/** Category of users to get suggestions for. */
|
|
21
|
+
category?: string
|
|
22
|
+
limit?: number
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type InputSchema = undefined
|
|
26
|
+
|
|
27
|
+
export interface OutputSchema {
|
|
28
|
+
actors: AppBskyActorDefs.ProfileViewBasic[]
|
|
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 function toKnownErr(e: any) {
|
|
43
|
+
return e
|
|
44
|
+
}
|