@atproto/api 0.16.1 → 0.16.2
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/dist/client/index.d.ts +6 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +13 -5
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +288 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +146 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/graph/getLists.d.ts +2 -0
- package/dist/client/types/app/bsky/graph/getLists.d.ts.map +1 -1
- package/dist/client/types/app/bsky/graph/getLists.js.map +1 -1
- package/dist/client/types/app/bsky/graph/getListsWithMembership.d.ts +38 -0
- package/dist/client/types/app/bsky/graph/getListsWithMembership.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/getListsWithMembership.js +20 -0
- package/dist/client/types/app/bsky/graph/getListsWithMembership.js.map +1 -0
- package/dist/client/types/app/bsky/graph/getStarterPacksWithMembership.d.ts +36 -0
- package/dist/client/types/app/bsky/graph/getStarterPacksWithMembership.d.ts.map +1 -0
- package/dist/client/types/app/bsky/graph/getStarterPacksWithMembership.js +20 -0
- package/dist/client/types/app/bsky/graph/getStarterPacksWithMembership.js.map +1 -0
- package/package.json +1 -1
- package/src/client/index.ts +28 -0
- package/src/client/lexicons.ts +153 -0
- package/src/client/types/app/bsky/graph/getLists.ts +2 -0
- package/src/client/types/app/bsky/graph/getListsWithMembership.ts +64 -0
- package/src/client/types/app/bsky/graph/getStarterPacksWithMembership.ts +66 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -8,6 +8,8 @@ export type QueryParams = {
|
|
|
8
8
|
actor: string;
|
|
9
9
|
limit?: number;
|
|
10
10
|
cursor?: string;
|
|
11
|
+
/** Optional filter by list purpose. If not specified, all supported types are returned. */
|
|
12
|
+
purposes?: 'modlist' | 'curatelist' | (string & {})[];
|
|
11
13
|
};
|
|
12
14
|
export type InputSchema = undefined;
|
|
13
15
|
export interface OutputSchema {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLists.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/graph/getLists.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,gBAAgB,MAAM,WAAW,CAAA;AAMlD,MAAM,MAAM,WAAW,GAAG;IACxB,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"getLists.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/graph/getLists.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,gBAAgB,MAAM,WAAW,CAAA;AAMlD,MAAM,MAAM,WAAW,GAAG;IACxB,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,EAAE,CAAA;CACtD,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,gBAAgB,CAAC,QAAQ,EAAE,CAAA;CACnC;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLists.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/graph/getLists.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"getLists.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/graph/getLists.ts"],"names":[],"mappings":";;AA4CA,gCAEC;AAxCD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yBAAyB,CAAA;AA4BpC,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
import type * as AppBskyGraphDefs from './defs.js';
|
|
7
|
+
export type QueryParams = {
|
|
8
|
+
/** The account (actor) to check for membership. */
|
|
9
|
+
actor: string;
|
|
10
|
+
limit?: number;
|
|
11
|
+
cursor?: string;
|
|
12
|
+
/** Optional filter by list purpose. If not specified, all supported types are returned. */
|
|
13
|
+
purposes?: 'modlist' | 'curatelist' | (string & {})[];
|
|
14
|
+
};
|
|
15
|
+
export type InputSchema = undefined;
|
|
16
|
+
export interface OutputSchema {
|
|
17
|
+
cursor?: string;
|
|
18
|
+
listsWithMembership: ListWithMembership[];
|
|
19
|
+
}
|
|
20
|
+
export interface CallOptions {
|
|
21
|
+
signal?: AbortSignal;
|
|
22
|
+
headers?: HeadersMap;
|
|
23
|
+
}
|
|
24
|
+
export interface Response {
|
|
25
|
+
success: boolean;
|
|
26
|
+
headers: HeadersMap;
|
|
27
|
+
data: OutputSchema;
|
|
28
|
+
}
|
|
29
|
+
export declare function toKnownErr(e: any): any;
|
|
30
|
+
/** A list and an optional list item indicating membership of a target user to that list. */
|
|
31
|
+
export interface ListWithMembership {
|
|
32
|
+
$type?: 'app.bsky.graph.getListsWithMembership#listWithMembership';
|
|
33
|
+
list: AppBskyGraphDefs.ListView;
|
|
34
|
+
listItem?: AppBskyGraphDefs.ListItemView;
|
|
35
|
+
}
|
|
36
|
+
export declare function isListWithMembership<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.graph.getListsWithMembership", "listWithMembership">;
|
|
37
|
+
export declare function validateListWithMembership<V>(v: V): ValidationResult<ListWithMembership & V>;
|
|
38
|
+
//# sourceMappingURL=getListsWithMembership.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getListsWithMembership.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/graph/getListsWithMembership.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,gBAAgB,MAAM,WAAW,CAAA;AAMlD,MAAM,MAAM,WAAW,GAAG;IACxB,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,EAAE,CAAA;CACtD,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mBAAmB,EAAE,kBAAkB,EAAE,CAAA;CAC1C;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;AAED,4FAA4F;AAC5F,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,EAAE,0DAA0D,CAAA;IAClE,IAAI,EAAE,gBAAgB,CAAC,QAAQ,CAAA;IAC/B,QAAQ,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAA;CACzC;AAID,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kHAE3C;AAED,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,4CAEjD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toKnownErr = toKnownErr;
|
|
4
|
+
exports.isListWithMembership = isListWithMembership;
|
|
5
|
+
exports.validateListWithMembership = validateListWithMembership;
|
|
6
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
7
|
+
const util_1 = require("../../../../util");
|
|
8
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
9
|
+
const id = 'app.bsky.graph.getListsWithMembership';
|
|
10
|
+
function toKnownErr(e) {
|
|
11
|
+
return e;
|
|
12
|
+
}
|
|
13
|
+
const hashListWithMembership = 'listWithMembership';
|
|
14
|
+
function isListWithMembership(v) {
|
|
15
|
+
return is$typed(v, id, hashListWithMembership);
|
|
16
|
+
}
|
|
17
|
+
function validateListWithMembership(v) {
|
|
18
|
+
return validate(v, id, hashListWithMembership);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=getListsWithMembership.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getListsWithMembership.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/graph/getListsWithMembership.ts"],"names":[],"mappings":";;AA4CA,gCAEC;AAWD,oDAEC;AAED,gEAEC;AAzDD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,uCAAuC,CAAA;AA4BlD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AASD,MAAM,sBAAsB,GAAG,oBAAoB,CAAA;AAEnD,SAAgB,oBAAoB,CAAI,CAAI;IAC1C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AAChD,CAAC;AAED,SAAgB,0BAA0B,CAAI,CAAI;IAChD,OAAO,QAAQ,CAAyB,CAAC,EAAE,EAAE,EAAE,sBAAsB,CAAC,CAAA;AACxE,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
import type * as AppBskyGraphDefs from './defs.js';
|
|
7
|
+
export type QueryParams = {
|
|
8
|
+
/** The account (actor) to check for membership. */
|
|
9
|
+
actor: string;
|
|
10
|
+
limit?: number;
|
|
11
|
+
cursor?: string;
|
|
12
|
+
};
|
|
13
|
+
export type InputSchema = undefined;
|
|
14
|
+
export interface OutputSchema {
|
|
15
|
+
cursor?: string;
|
|
16
|
+
starterPacksWithMembership: StarterPackWithMembership[];
|
|
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
|
+
/** A starter pack and an optional list item indicating membership of a target user to that starter pack. */
|
|
29
|
+
export interface StarterPackWithMembership {
|
|
30
|
+
$type?: 'app.bsky.graph.getStarterPacksWithMembership#starterPackWithMembership';
|
|
31
|
+
starterPack: AppBskyGraphDefs.StarterPackView;
|
|
32
|
+
listItem?: AppBskyGraphDefs.ListItemView;
|
|
33
|
+
}
|
|
34
|
+
export declare function isStarterPackWithMembership<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.graph.getStarterPacksWithMembership", "starterPackWithMembership">;
|
|
35
|
+
export declare function validateStarterPackWithMembership<V>(v: V): ValidationResult<StarterPackWithMembership & V>;
|
|
36
|
+
//# sourceMappingURL=getStarterPacksWithMembership.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStarterPacksWithMembership.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/graph/getStarterPacksWithMembership.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,gBAAgB,MAAM,WAAW,CAAA;AAMlD,MAAM,MAAM,WAAW,GAAG;IACxB,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,0BAA0B,EAAE,yBAAyB,EAAE,CAAA;CACxD;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;AAED,4GAA4G;AAC5G,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,wEAAwE,CAAA;IAChF,WAAW,EAAE,gBAAgB,CAAC,eAAe,CAAA;IAC7C,QAAQ,CAAC,EAAE,gBAAgB,CAAC,YAAY,CAAA;CACzC;AAID,wBAAgB,2BAA2B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gIAElD;AAED,wBAAgB,iCAAiC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mDAMxD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toKnownErr = toKnownErr;
|
|
4
|
+
exports.isStarterPackWithMembership = isStarterPackWithMembership;
|
|
5
|
+
exports.validateStarterPackWithMembership = validateStarterPackWithMembership;
|
|
6
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
7
|
+
const util_1 = require("../../../../util");
|
|
8
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
9
|
+
const id = 'app.bsky.graph.getStarterPacksWithMembership';
|
|
10
|
+
function toKnownErr(e) {
|
|
11
|
+
return e;
|
|
12
|
+
}
|
|
13
|
+
const hashStarterPackWithMembership = 'starterPackWithMembership';
|
|
14
|
+
function isStarterPackWithMembership(v) {
|
|
15
|
+
return is$typed(v, id, hashStarterPackWithMembership);
|
|
16
|
+
}
|
|
17
|
+
function validateStarterPackWithMembership(v) {
|
|
18
|
+
return validate(v, id, hashStarterPackWithMembership);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=getStarterPacksWithMembership.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStarterPacksWithMembership.js","sourceRoot":"","sources":["../../../../../../src/client/types/app/bsky/graph/getStarterPacksWithMembership.ts"],"names":[],"mappings":";;AA0CA,gCAEC;AAWD,kEAEC;AAED,8EAMC;AA3DD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8CAA8C,CAAA;AA0BzD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AASD,MAAM,6BAA6B,GAAG,2BAA2B,CAAA;AAEjE,SAAgB,2BAA2B,CAAI,CAAI;IACjD,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,6BAA6B,CAAC,CAAA;AACvD,CAAC;AAED,SAAgB,iCAAiC,CAAI,CAAI;IACvD,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,6BAA6B,CAC9B,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
package/src/client/index.ts
CHANGED
|
@@ -154,10 +154,12 @@ import * as AppBskyGraphGetList from './types/app/bsky/graph/getList.js'
|
|
|
154
154
|
import * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks.js'
|
|
155
155
|
import * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes.js'
|
|
156
156
|
import * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists.js'
|
|
157
|
+
import * as AppBskyGraphGetListsWithMembership from './types/app/bsky/graph/getListsWithMembership.js'
|
|
157
158
|
import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes.js'
|
|
158
159
|
import * as AppBskyGraphGetRelationships from './types/app/bsky/graph/getRelationships.js'
|
|
159
160
|
import * as AppBskyGraphGetStarterPack from './types/app/bsky/graph/getStarterPack.js'
|
|
160
161
|
import * as AppBskyGraphGetStarterPacks from './types/app/bsky/graph/getStarterPacks.js'
|
|
162
|
+
import * as AppBskyGraphGetStarterPacksWithMembership from './types/app/bsky/graph/getStarterPacksWithMembership.js'
|
|
161
163
|
import * as AppBskyGraphGetSuggestedFollowsByActor from './types/app/bsky/graph/getSuggestedFollowsByActor.js'
|
|
162
164
|
import * as AppBskyGraphList from './types/app/bsky/graph/list.js'
|
|
163
165
|
import * as AppBskyGraphListblock from './types/app/bsky/graph/listblock.js'
|
|
@@ -433,10 +435,12 @@ export * as AppBskyGraphGetList from './types/app/bsky/graph/getList.js'
|
|
|
433
435
|
export * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks.js'
|
|
434
436
|
export * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes.js'
|
|
435
437
|
export * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists.js'
|
|
438
|
+
export * as AppBskyGraphGetListsWithMembership from './types/app/bsky/graph/getListsWithMembership.js'
|
|
436
439
|
export * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes.js'
|
|
437
440
|
export * as AppBskyGraphGetRelationships from './types/app/bsky/graph/getRelationships.js'
|
|
438
441
|
export * as AppBskyGraphGetStarterPack from './types/app/bsky/graph/getStarterPack.js'
|
|
439
442
|
export * as AppBskyGraphGetStarterPacks from './types/app/bsky/graph/getStarterPacks.js'
|
|
443
|
+
export * as AppBskyGraphGetStarterPacksWithMembership from './types/app/bsky/graph/getStarterPacksWithMembership.js'
|
|
440
444
|
export * as AppBskyGraphGetSuggestedFollowsByActor from './types/app/bsky/graph/getSuggestedFollowsByActor.js'
|
|
441
445
|
export * as AppBskyGraphList from './types/app/bsky/graph/list.js'
|
|
442
446
|
export * as AppBskyGraphListblock from './types/app/bsky/graph/listblock.js'
|
|
@@ -2892,6 +2896,18 @@ export class AppBskyGraphNS {
|
|
|
2892
2896
|
return this._client.call('app.bsky.graph.getLists', params, undefined, opts)
|
|
2893
2897
|
}
|
|
2894
2898
|
|
|
2899
|
+
getListsWithMembership(
|
|
2900
|
+
params?: AppBskyGraphGetListsWithMembership.QueryParams,
|
|
2901
|
+
opts?: AppBskyGraphGetListsWithMembership.CallOptions,
|
|
2902
|
+
): Promise<AppBskyGraphGetListsWithMembership.Response> {
|
|
2903
|
+
return this._client.call(
|
|
2904
|
+
'app.bsky.graph.getListsWithMembership',
|
|
2905
|
+
params,
|
|
2906
|
+
undefined,
|
|
2907
|
+
opts,
|
|
2908
|
+
)
|
|
2909
|
+
}
|
|
2910
|
+
|
|
2895
2911
|
getMutes(
|
|
2896
2912
|
params?: AppBskyGraphGetMutes.QueryParams,
|
|
2897
2913
|
opts?: AppBskyGraphGetMutes.CallOptions,
|
|
@@ -2934,6 +2950,18 @@ export class AppBskyGraphNS {
|
|
|
2934
2950
|
)
|
|
2935
2951
|
}
|
|
2936
2952
|
|
|
2953
|
+
getStarterPacksWithMembership(
|
|
2954
|
+
params?: AppBskyGraphGetStarterPacksWithMembership.QueryParams,
|
|
2955
|
+
opts?: AppBskyGraphGetStarterPacksWithMembership.CallOptions,
|
|
2956
|
+
): Promise<AppBskyGraphGetStarterPacksWithMembership.Response> {
|
|
2957
|
+
return this._client.call(
|
|
2958
|
+
'app.bsky.graph.getStarterPacksWithMembership',
|
|
2959
|
+
params,
|
|
2960
|
+
undefined,
|
|
2961
|
+
opts,
|
|
2962
|
+
)
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2937
2965
|
getSuggestedFollowsByActor(
|
|
2938
2966
|
params?: AppBskyGraphGetSuggestedFollowsByActor.QueryParams,
|
|
2939
2967
|
opts?: AppBskyGraphGetSuggestedFollowsByActor.CallOptions,
|
package/src/client/lexicons.ts
CHANGED
|
@@ -8958,6 +8958,15 @@ export const schemaDict = {
|
|
|
8958
8958
|
cursor: {
|
|
8959
8959
|
type: 'string',
|
|
8960
8960
|
},
|
|
8961
|
+
purposes: {
|
|
8962
|
+
type: 'array',
|
|
8963
|
+
description:
|
|
8964
|
+
'Optional filter by list purpose. If not specified, all supported types are returned.',
|
|
8965
|
+
items: {
|
|
8966
|
+
type: 'string',
|
|
8967
|
+
knownValues: ['modlist', 'curatelist'],
|
|
8968
|
+
},
|
|
8969
|
+
},
|
|
8961
8970
|
},
|
|
8962
8971
|
},
|
|
8963
8972
|
output: {
|
|
@@ -8982,6 +8991,81 @@ export const schemaDict = {
|
|
|
8982
8991
|
},
|
|
8983
8992
|
},
|
|
8984
8993
|
},
|
|
8994
|
+
AppBskyGraphGetListsWithMembership: {
|
|
8995
|
+
lexicon: 1,
|
|
8996
|
+
id: 'app.bsky.graph.getListsWithMembership',
|
|
8997
|
+
defs: {
|
|
8998
|
+
main: {
|
|
8999
|
+
type: 'query',
|
|
9000
|
+
description:
|
|
9001
|
+
'Enumerates the lists created by the session user, and includes membership information about `actor` in those lists. Only supports curation and moderation lists (no reference lists, used in starter packs). Requires auth.',
|
|
9002
|
+
parameters: {
|
|
9003
|
+
type: 'params',
|
|
9004
|
+
required: ['actor'],
|
|
9005
|
+
properties: {
|
|
9006
|
+
actor: {
|
|
9007
|
+
type: 'string',
|
|
9008
|
+
format: 'at-identifier',
|
|
9009
|
+
description: 'The account (actor) to check for membership.',
|
|
9010
|
+
},
|
|
9011
|
+
limit: {
|
|
9012
|
+
type: 'integer',
|
|
9013
|
+
minimum: 1,
|
|
9014
|
+
maximum: 100,
|
|
9015
|
+
default: 50,
|
|
9016
|
+
},
|
|
9017
|
+
cursor: {
|
|
9018
|
+
type: 'string',
|
|
9019
|
+
},
|
|
9020
|
+
purposes: {
|
|
9021
|
+
type: 'array',
|
|
9022
|
+
description:
|
|
9023
|
+
'Optional filter by list purpose. If not specified, all supported types are returned.',
|
|
9024
|
+
items: {
|
|
9025
|
+
type: 'string',
|
|
9026
|
+
knownValues: ['modlist', 'curatelist'],
|
|
9027
|
+
},
|
|
9028
|
+
},
|
|
9029
|
+
},
|
|
9030
|
+
},
|
|
9031
|
+
output: {
|
|
9032
|
+
encoding: 'application/json',
|
|
9033
|
+
schema: {
|
|
9034
|
+
type: 'object',
|
|
9035
|
+
required: ['listsWithMembership'],
|
|
9036
|
+
properties: {
|
|
9037
|
+
cursor: {
|
|
9038
|
+
type: 'string',
|
|
9039
|
+
},
|
|
9040
|
+
listsWithMembership: {
|
|
9041
|
+
type: 'array',
|
|
9042
|
+
items: {
|
|
9043
|
+
type: 'ref',
|
|
9044
|
+
ref: 'lex:app.bsky.graph.getListsWithMembership#listWithMembership',
|
|
9045
|
+
},
|
|
9046
|
+
},
|
|
9047
|
+
},
|
|
9048
|
+
},
|
|
9049
|
+
},
|
|
9050
|
+
},
|
|
9051
|
+
listWithMembership: {
|
|
9052
|
+
description:
|
|
9053
|
+
'A list and an optional list item indicating membership of a target user to that list.',
|
|
9054
|
+
type: 'object',
|
|
9055
|
+
required: ['list'],
|
|
9056
|
+
properties: {
|
|
9057
|
+
list: {
|
|
9058
|
+
type: 'ref',
|
|
9059
|
+
ref: 'lex:app.bsky.graph.defs#listView',
|
|
9060
|
+
},
|
|
9061
|
+
listItem: {
|
|
9062
|
+
type: 'ref',
|
|
9063
|
+
ref: 'lex:app.bsky.graph.defs#listItemView',
|
|
9064
|
+
},
|
|
9065
|
+
},
|
|
9066
|
+
},
|
|
9067
|
+
},
|
|
9068
|
+
},
|
|
8985
9069
|
AppBskyGraphGetMutes: {
|
|
8986
9070
|
lexicon: 1,
|
|
8987
9071
|
id: 'app.bsky.graph.getMutes',
|
|
@@ -9162,6 +9246,72 @@ export const schemaDict = {
|
|
|
9162
9246
|
},
|
|
9163
9247
|
},
|
|
9164
9248
|
},
|
|
9249
|
+
AppBskyGraphGetStarterPacksWithMembership: {
|
|
9250
|
+
lexicon: 1,
|
|
9251
|
+
id: 'app.bsky.graph.getStarterPacksWithMembership',
|
|
9252
|
+
defs: {
|
|
9253
|
+
main: {
|
|
9254
|
+
type: 'query',
|
|
9255
|
+
description:
|
|
9256
|
+
'Enumerates the starter packs created by the session user, and includes membership information about `actor` in those starter packs. Requires auth.',
|
|
9257
|
+
parameters: {
|
|
9258
|
+
type: 'params',
|
|
9259
|
+
required: ['actor'],
|
|
9260
|
+
properties: {
|
|
9261
|
+
actor: {
|
|
9262
|
+
type: 'string',
|
|
9263
|
+
format: 'at-identifier',
|
|
9264
|
+
description: 'The account (actor) to check for membership.',
|
|
9265
|
+
},
|
|
9266
|
+
limit: {
|
|
9267
|
+
type: 'integer',
|
|
9268
|
+
minimum: 1,
|
|
9269
|
+
maximum: 100,
|
|
9270
|
+
default: 50,
|
|
9271
|
+
},
|
|
9272
|
+
cursor: {
|
|
9273
|
+
type: 'string',
|
|
9274
|
+
},
|
|
9275
|
+
},
|
|
9276
|
+
},
|
|
9277
|
+
output: {
|
|
9278
|
+
encoding: 'application/json',
|
|
9279
|
+
schema: {
|
|
9280
|
+
type: 'object',
|
|
9281
|
+
required: ['starterPacksWithMembership'],
|
|
9282
|
+
properties: {
|
|
9283
|
+
cursor: {
|
|
9284
|
+
type: 'string',
|
|
9285
|
+
},
|
|
9286
|
+
starterPacksWithMembership: {
|
|
9287
|
+
type: 'array',
|
|
9288
|
+
items: {
|
|
9289
|
+
type: 'ref',
|
|
9290
|
+
ref: 'lex:app.bsky.graph.getStarterPacksWithMembership#starterPackWithMembership',
|
|
9291
|
+
},
|
|
9292
|
+
},
|
|
9293
|
+
},
|
|
9294
|
+
},
|
|
9295
|
+
},
|
|
9296
|
+
},
|
|
9297
|
+
starterPackWithMembership: {
|
|
9298
|
+
description:
|
|
9299
|
+
'A starter pack and an optional list item indicating membership of a target user to that starter pack.',
|
|
9300
|
+
type: 'object',
|
|
9301
|
+
required: ['starterPack'],
|
|
9302
|
+
properties: {
|
|
9303
|
+
starterPack: {
|
|
9304
|
+
type: 'ref',
|
|
9305
|
+
ref: 'lex:app.bsky.graph.defs#starterPackView',
|
|
9306
|
+
},
|
|
9307
|
+
listItem: {
|
|
9308
|
+
type: 'ref',
|
|
9309
|
+
ref: 'lex:app.bsky.graph.defs#listItemView',
|
|
9310
|
+
},
|
|
9311
|
+
},
|
|
9312
|
+
},
|
|
9313
|
+
},
|
|
9314
|
+
},
|
|
9165
9315
|
AppBskyGraphGetSuggestedFollowsByActor: {
|
|
9166
9316
|
lexicon: 1,
|
|
9167
9317
|
id: 'app.bsky.graph.getSuggestedFollowsByActor',
|
|
@@ -17923,10 +18073,13 @@ export const ids = {
|
|
|
17923
18073
|
AppBskyGraphGetListBlocks: 'app.bsky.graph.getListBlocks',
|
|
17924
18074
|
AppBskyGraphGetListMutes: 'app.bsky.graph.getListMutes',
|
|
17925
18075
|
AppBskyGraphGetLists: 'app.bsky.graph.getLists',
|
|
18076
|
+
AppBskyGraphGetListsWithMembership: 'app.bsky.graph.getListsWithMembership',
|
|
17926
18077
|
AppBskyGraphGetMutes: 'app.bsky.graph.getMutes',
|
|
17927
18078
|
AppBskyGraphGetRelationships: 'app.bsky.graph.getRelationships',
|
|
17928
18079
|
AppBskyGraphGetStarterPack: 'app.bsky.graph.getStarterPack',
|
|
17929
18080
|
AppBskyGraphGetStarterPacks: 'app.bsky.graph.getStarterPacks',
|
|
18081
|
+
AppBskyGraphGetStarterPacksWithMembership:
|
|
18082
|
+
'app.bsky.graph.getStarterPacksWithMembership',
|
|
17930
18083
|
AppBskyGraphGetSuggestedFollowsByActor:
|
|
17931
18084
|
'app.bsky.graph.getSuggestedFollowsByActor',
|
|
17932
18085
|
AppBskyGraphList: 'app.bsky.graph.list',
|
|
@@ -21,6 +21,8 @@ export type QueryParams = {
|
|
|
21
21
|
actor: string
|
|
22
22
|
limit?: number
|
|
23
23
|
cursor?: string
|
|
24
|
+
/** Optional filter by list purpose. If not specified, all supported types are returned. */
|
|
25
|
+
purposes?: 'modlist' | 'curatelist' | (string & {})[]
|
|
24
26
|
}
|
|
25
27
|
export type InputSchema = undefined
|
|
26
28
|
|
|
@@ -0,0 +1,64 @@
|
|
|
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 AppBskyGraphDefs from './defs.js'
|
|
14
|
+
|
|
15
|
+
const is$typed = _is$typed,
|
|
16
|
+
validate = _validate
|
|
17
|
+
const id = 'app.bsky.graph.getListsWithMembership'
|
|
18
|
+
|
|
19
|
+
export type QueryParams = {
|
|
20
|
+
/** The account (actor) to check for membership. */
|
|
21
|
+
actor: string
|
|
22
|
+
limit?: number
|
|
23
|
+
cursor?: string
|
|
24
|
+
/** Optional filter by list purpose. If not specified, all supported types are returned. */
|
|
25
|
+
purposes?: 'modlist' | 'curatelist' | (string & {})[]
|
|
26
|
+
}
|
|
27
|
+
export type InputSchema = undefined
|
|
28
|
+
|
|
29
|
+
export interface OutputSchema {
|
|
30
|
+
cursor?: string
|
|
31
|
+
listsWithMembership: ListWithMembership[]
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface CallOptions {
|
|
35
|
+
signal?: AbortSignal
|
|
36
|
+
headers?: HeadersMap
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface Response {
|
|
40
|
+
success: boolean
|
|
41
|
+
headers: HeadersMap
|
|
42
|
+
data: OutputSchema
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function toKnownErr(e: any) {
|
|
46
|
+
return e
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** A list and an optional list item indicating membership of a target user to that list. */
|
|
50
|
+
export interface ListWithMembership {
|
|
51
|
+
$type?: 'app.bsky.graph.getListsWithMembership#listWithMembership'
|
|
52
|
+
list: AppBskyGraphDefs.ListView
|
|
53
|
+
listItem?: AppBskyGraphDefs.ListItemView
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const hashListWithMembership = 'listWithMembership'
|
|
57
|
+
|
|
58
|
+
export function isListWithMembership<V>(v: V) {
|
|
59
|
+
return is$typed(v, id, hashListWithMembership)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function validateListWithMembership<V>(v: V) {
|
|
63
|
+
return validate<ListWithMembership & V>(v, id, hashListWithMembership)
|
|
64
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 AppBskyGraphDefs from './defs.js'
|
|
14
|
+
|
|
15
|
+
const is$typed = _is$typed,
|
|
16
|
+
validate = _validate
|
|
17
|
+
const id = 'app.bsky.graph.getStarterPacksWithMembership'
|
|
18
|
+
|
|
19
|
+
export type QueryParams = {
|
|
20
|
+
/** The account (actor) to check for membership. */
|
|
21
|
+
actor: string
|
|
22
|
+
limit?: number
|
|
23
|
+
cursor?: string
|
|
24
|
+
}
|
|
25
|
+
export type InputSchema = undefined
|
|
26
|
+
|
|
27
|
+
export interface OutputSchema {
|
|
28
|
+
cursor?: string
|
|
29
|
+
starterPacksWithMembership: StarterPackWithMembership[]
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface CallOptions {
|
|
33
|
+
signal?: AbortSignal
|
|
34
|
+
headers?: HeadersMap
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface Response {
|
|
38
|
+
success: boolean
|
|
39
|
+
headers: HeadersMap
|
|
40
|
+
data: OutputSchema
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function toKnownErr(e: any) {
|
|
44
|
+
return e
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** A starter pack and an optional list item indicating membership of a target user to that starter pack. */
|
|
48
|
+
export interface StarterPackWithMembership {
|
|
49
|
+
$type?: 'app.bsky.graph.getStarterPacksWithMembership#starterPackWithMembership'
|
|
50
|
+
starterPack: AppBskyGraphDefs.StarterPackView
|
|
51
|
+
listItem?: AppBskyGraphDefs.ListItemView
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const hashStarterPackWithMembership = 'starterPackWithMembership'
|
|
55
|
+
|
|
56
|
+
export function isStarterPackWithMembership<V>(v: V) {
|
|
57
|
+
return is$typed(v, id, hashStarterPackWithMembership)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function validateStarterPackWithMembership<V>(v: V) {
|
|
61
|
+
return validate<StarterPackWithMembership & V>(
|
|
62
|
+
v,
|
|
63
|
+
id,
|
|
64
|
+
hashStarterPackWithMembership,
|
|
65
|
+
)
|
|
66
|
+
}
|