@atproto/pds 0.4.164 → 0.4.165
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 +7 -0
- package/dist/lexicon/index.d.ts +4 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +8 -0
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +288 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +146 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/getLists.d.ts +2 -0
- package/dist/lexicon/types/app/bsky/graph/getLists.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/graph/getListsWithMembership.d.ts +40 -0
- package/dist/lexicon/types/app/bsky/graph/getListsWithMembership.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/getListsWithMembership.js +16 -0
- package/dist/lexicon/types/app/bsky/graph/getListsWithMembership.js.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/getStarterPacksWithMembership.d.ts +38 -0
- package/dist/lexicon/types/app/bsky/graph/getStarterPacksWithMembership.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/graph/getStarterPacksWithMembership.js +16 -0
- package/dist/lexicon/types/app/bsky/graph/getStarterPacksWithMembership.js.map +1 -0
- package/package.json +5 -5
- package/src/lexicon/index.ts +26 -0
- package/src/lexicon/lexicons.ts +153 -0
- package/src/lexicon/types/app/bsky/graph/getLists.ts +2 -0
- package/src/lexicon/types/app/bsky/graph/getListsWithMembership.ts +63 -0
- package/src/lexicon/types/app/bsky/graph/getStarterPacksWithMembership.ts +65 -0
- package/tsconfig.build.tsbuildinfo +1 -1
@@ -4,6 +4,8 @@ export type QueryParams = {
|
|
4
4
|
actor: string;
|
5
5
|
limit: number;
|
6
6
|
cursor?: string;
|
7
|
+
/** Optional filter by list purpose. If not specified, all supported types are returned. */
|
8
|
+
purposes?: 'modlist' | 'curatelist' | (string & {})[];
|
7
9
|
};
|
8
10
|
export type InputSchema = undefined;
|
9
11
|
export interface OutputSchema {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getLists.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getLists.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,gBAAgB,MAAM,WAAW,CAAA;AAMlD,MAAM,MAAM,WAAW,GAAG;IACxB,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"getLists.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getLists.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,gBAAgB,MAAM,WAAW,CAAA;AAMlD,MAAM,MAAM,WAAW,GAAG;IACxB,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,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,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
5
|
+
import type * as AppBskyGraphDefs from './defs.js';
|
6
|
+
export type QueryParams = {
|
7
|
+
/** The account (actor) to check for membership. */
|
8
|
+
actor: string;
|
9
|
+
limit: number;
|
10
|
+
cursor?: string;
|
11
|
+
/** Optional filter by list purpose. If not specified, all supported types are returned. */
|
12
|
+
purposes?: 'modlist' | 'curatelist' | (string & {})[];
|
13
|
+
};
|
14
|
+
export type InputSchema = undefined;
|
15
|
+
export interface OutputSchema {
|
16
|
+
cursor?: string;
|
17
|
+
listsWithMembership: ListWithMembership[];
|
18
|
+
}
|
19
|
+
export type HandlerInput = void;
|
20
|
+
export interface HandlerSuccess {
|
21
|
+
encoding: 'application/json';
|
22
|
+
body: OutputSchema;
|
23
|
+
headers?: {
|
24
|
+
[key: string]: string;
|
25
|
+
};
|
26
|
+
}
|
27
|
+
export interface HandlerError {
|
28
|
+
status: number;
|
29
|
+
message?: string;
|
30
|
+
}
|
31
|
+
export type HandlerOutput = HandlerError | HandlerSuccess;
|
32
|
+
/** A list and an optional list item indicating membership of a target user to that list. */
|
33
|
+
export interface ListWithMembership {
|
34
|
+
$type?: 'app.bsky.graph.getListsWithMembership#listWithMembership';
|
35
|
+
list: AppBskyGraphDefs.ListView;
|
36
|
+
listItem?: AppBskyGraphDefs.ListItemView;
|
37
|
+
}
|
38
|
+
export declare function isListWithMembership<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.graph.getListsWithMembership", "listWithMembership">;
|
39
|
+
export declare function validateListWithMembership<V>(v: V): ValidationResult<ListWithMembership & V>;
|
40
|
+
//# sourceMappingURL=getListsWithMembership.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getListsWithMembership.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getListsWithMembership.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,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,EAAE,MAAM,CAAA;IACb,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,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA;AAEzD,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,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isListWithMembership = isListWithMembership;
|
4
|
+
exports.validateListWithMembership = validateListWithMembership;
|
5
|
+
const lexicons_1 = require("../../../../lexicons");
|
6
|
+
const util_1 = require("../../../../util");
|
7
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
8
|
+
const id = 'app.bsky.graph.getListsWithMembership';
|
9
|
+
const hashListWithMembership = 'listWithMembership';
|
10
|
+
function isListWithMembership(v) {
|
11
|
+
return is$typed(v, id, hashListWithMembership);
|
12
|
+
}
|
13
|
+
function validateListWithMembership(v) {
|
14
|
+
return validate(v, id, hashListWithMembership);
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=getListsWithMembership.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getListsWithMembership.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getListsWithMembership.ts"],"names":[],"mappings":";;AAwDA,oDAEC;AAED,gEAEC;AAzDD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,uCAAuC,CAAA;AAuClD,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,38 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
5
|
+
import type * as AppBskyGraphDefs from './defs.js';
|
6
|
+
export type QueryParams = {
|
7
|
+
/** The account (actor) to check for membership. */
|
8
|
+
actor: string;
|
9
|
+
limit: number;
|
10
|
+
cursor?: string;
|
11
|
+
};
|
12
|
+
export type InputSchema = undefined;
|
13
|
+
export interface OutputSchema {
|
14
|
+
cursor?: string;
|
15
|
+
starterPacksWithMembership: StarterPackWithMembership[];
|
16
|
+
}
|
17
|
+
export type HandlerInput = void;
|
18
|
+
export interface HandlerSuccess {
|
19
|
+
encoding: 'application/json';
|
20
|
+
body: OutputSchema;
|
21
|
+
headers?: {
|
22
|
+
[key: string]: string;
|
23
|
+
};
|
24
|
+
}
|
25
|
+
export interface HandlerError {
|
26
|
+
status: number;
|
27
|
+
message?: string;
|
28
|
+
}
|
29
|
+
export type HandlerOutput = HandlerError | HandlerSuccess;
|
30
|
+
/** A starter pack and an optional list item indicating membership of a target user to that starter pack. */
|
31
|
+
export interface StarterPackWithMembership {
|
32
|
+
$type?: 'app.bsky.graph.getStarterPacksWithMembership#starterPackWithMembership';
|
33
|
+
starterPack: AppBskyGraphDefs.StarterPackView;
|
34
|
+
listItem?: AppBskyGraphDefs.ListItemView;
|
35
|
+
}
|
36
|
+
export declare function isStarterPackWithMembership<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.graph.getStarterPacksWithMembership", "starterPackWithMembership">;
|
37
|
+
export declare function validateStarterPackWithMembership<V>(v: V): ValidationResult<StarterPackWithMembership & V>;
|
38
|
+
//# sourceMappingURL=getStarterPacksWithMembership.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getStarterPacksWithMembership.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getStarterPacksWithMembership.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,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,EAAE,MAAM,CAAA;IACb,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,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA;AAEzD,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,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.isStarterPackWithMembership = isStarterPackWithMembership;
|
4
|
+
exports.validateStarterPackWithMembership = validateStarterPackWithMembership;
|
5
|
+
const lexicons_1 = require("../../../../lexicons");
|
6
|
+
const util_1 = require("../../../../util");
|
7
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
8
|
+
const id = 'app.bsky.graph.getStarterPacksWithMembership';
|
9
|
+
const hashStarterPackWithMembership = 'starterPackWithMembership';
|
10
|
+
function isStarterPackWithMembership(v) {
|
11
|
+
return is$typed(v, id, hashStarterPackWithMembership);
|
12
|
+
}
|
13
|
+
function validateStarterPackWithMembership(v) {
|
14
|
+
return validate(v, id, hashStarterPackWithMembership);
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=getStarterPacksWithMembership.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getStarterPacksWithMembership.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getStarterPacksWithMembership.ts"],"names":[],"mappings":";;AAsDA,kEAEC;AAED,8EAMC;AA3DD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8CAA8C,CAAA;AAqCzD,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
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/pds",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.165",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Reference implementation of atproto Personal Data Server (PDS)",
|
6
6
|
"keywords": [
|
@@ -49,7 +49,7 @@
|
|
49
49
|
"zod": "^3.23.8",
|
50
50
|
"@atproto-labs/fetch-node": "0.1.9",
|
51
51
|
"@atproto-labs/xrpc-utils": "0.0.18",
|
52
|
-
"@atproto/api": "^0.16.
|
52
|
+
"@atproto/api": "^0.16.2",
|
53
53
|
"@atproto/aws": "^0.2.25",
|
54
54
|
"@atproto/common": "^0.4.11",
|
55
55
|
"@atproto/crypto": "^0.4.4",
|
@@ -77,9 +77,9 @@
|
|
77
77
|
"ts-node": "^10.8.2",
|
78
78
|
"typescript": "^5.6.3",
|
79
79
|
"ws": "^8.12.0",
|
80
|
-
"@atproto/api": "^0.16.
|
81
|
-
"@atproto/bsky": "^0.0.
|
82
|
-
"@atproto/dev-env": "^0.3.
|
80
|
+
"@atproto/api": "^0.16.2",
|
81
|
+
"@atproto/bsky": "^0.0.177",
|
82
|
+
"@atproto/dev-env": "^0.3.160",
|
83
83
|
"@atproto/lex-cli": "^0.9.1",
|
84
84
|
"@atproto/oauth-client-browser-example": "0.0.5"
|
85
85
|
},
|
package/src/lexicon/index.ts
CHANGED
@@ -127,10 +127,12 @@ import * as AppBskyGraphGetList from './types/app/bsky/graph/getList.js'
|
|
127
127
|
import * as AppBskyGraphGetListBlocks from './types/app/bsky/graph/getListBlocks.js'
|
128
128
|
import * as AppBskyGraphGetListMutes from './types/app/bsky/graph/getListMutes.js'
|
129
129
|
import * as AppBskyGraphGetLists from './types/app/bsky/graph/getLists.js'
|
130
|
+
import * as AppBskyGraphGetListsWithMembership from './types/app/bsky/graph/getListsWithMembership.js'
|
130
131
|
import * as AppBskyGraphGetMutes from './types/app/bsky/graph/getMutes.js'
|
131
132
|
import * as AppBskyGraphGetRelationships from './types/app/bsky/graph/getRelationships.js'
|
132
133
|
import * as AppBskyGraphGetStarterPack from './types/app/bsky/graph/getStarterPack.js'
|
133
134
|
import * as AppBskyGraphGetStarterPacks from './types/app/bsky/graph/getStarterPacks.js'
|
135
|
+
import * as AppBskyGraphGetStarterPacksWithMembership from './types/app/bsky/graph/getStarterPacksWithMembership.js'
|
134
136
|
import * as AppBskyGraphGetSuggestedFollowsByActor from './types/app/bsky/graph/getSuggestedFollowsByActor.js'
|
135
137
|
import * as AppBskyGraphMuteActor from './types/app/bsky/graph/muteActor.js'
|
136
138
|
import * as AppBskyGraphMuteActorList from './types/app/bsky/graph/muteActorList.js'
|
@@ -1887,6 +1889,18 @@ export class AppBskyGraphNS {
|
|
1887
1889
|
return this._server.xrpc.method(nsid, cfg)
|
1888
1890
|
}
|
1889
1891
|
|
1892
|
+
getListsWithMembership<A extends Auth = void>(
|
1893
|
+
cfg: MethodConfigOrHandler<
|
1894
|
+
A,
|
1895
|
+
AppBskyGraphGetListsWithMembership.QueryParams,
|
1896
|
+
AppBskyGraphGetListsWithMembership.HandlerInput,
|
1897
|
+
AppBskyGraphGetListsWithMembership.HandlerOutput
|
1898
|
+
>,
|
1899
|
+
) {
|
1900
|
+
const nsid = 'app.bsky.graph.getListsWithMembership' // @ts-ignore
|
1901
|
+
return this._server.xrpc.method(nsid, cfg)
|
1902
|
+
}
|
1903
|
+
|
1890
1904
|
getMutes<A extends Auth = void>(
|
1891
1905
|
cfg: MethodConfigOrHandler<
|
1892
1906
|
A,
|
@@ -1935,6 +1949,18 @@ export class AppBskyGraphNS {
|
|
1935
1949
|
return this._server.xrpc.method(nsid, cfg)
|
1936
1950
|
}
|
1937
1951
|
|
1952
|
+
getStarterPacksWithMembership<A extends Auth = void>(
|
1953
|
+
cfg: MethodConfigOrHandler<
|
1954
|
+
A,
|
1955
|
+
AppBskyGraphGetStarterPacksWithMembership.QueryParams,
|
1956
|
+
AppBskyGraphGetStarterPacksWithMembership.HandlerInput,
|
1957
|
+
AppBskyGraphGetStarterPacksWithMembership.HandlerOutput
|
1958
|
+
>,
|
1959
|
+
) {
|
1960
|
+
const nsid = 'app.bsky.graph.getStarterPacksWithMembership' // @ts-ignore
|
1961
|
+
return this._server.xrpc.method(nsid, cfg)
|
1962
|
+
}
|
1963
|
+
|
1938
1964
|
getSuggestedFollowsByActor<A extends Auth = void>(
|
1939
1965
|
cfg: MethodConfigOrHandler<
|
1940
1966
|
A,
|
package/src/lexicon/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',
|
@@ -20,6 +20,8 @@ export type QueryParams = {
|
|
20
20
|
actor: string
|
21
21
|
limit: number
|
22
22
|
cursor?: string
|
23
|
+
/** Optional filter by list purpose. If not specified, all supported types are returned. */
|
24
|
+
purposes?: 'modlist' | 'curatelist' | (string & {})[]
|
23
25
|
}
|
24
26
|
export type InputSchema = undefined
|
25
27
|
|
@@ -0,0 +1,63 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
5
|
+
import { CID } from 'multiformats/cid'
|
6
|
+
import { validate as _validate } from '../../../../lexicons'
|
7
|
+
import {
|
8
|
+
type $Typed,
|
9
|
+
is$typed as _is$typed,
|
10
|
+
type OmitKey,
|
11
|
+
} from '../../../../util'
|
12
|
+
import type * as AppBskyGraphDefs from './defs.js'
|
13
|
+
|
14
|
+
const is$typed = _is$typed,
|
15
|
+
validate = _validate
|
16
|
+
const id = 'app.bsky.graph.getListsWithMembership'
|
17
|
+
|
18
|
+
export type QueryParams = {
|
19
|
+
/** The account (actor) to check for membership. */
|
20
|
+
actor: string
|
21
|
+
limit: number
|
22
|
+
cursor?: string
|
23
|
+
/** Optional filter by list purpose. If not specified, all supported types are returned. */
|
24
|
+
purposes?: 'modlist' | 'curatelist' | (string & {})[]
|
25
|
+
}
|
26
|
+
export type InputSchema = undefined
|
27
|
+
|
28
|
+
export interface OutputSchema {
|
29
|
+
cursor?: string
|
30
|
+
listsWithMembership: ListWithMembership[]
|
31
|
+
}
|
32
|
+
|
33
|
+
export type HandlerInput = void
|
34
|
+
|
35
|
+
export interface HandlerSuccess {
|
36
|
+
encoding: 'application/json'
|
37
|
+
body: OutputSchema
|
38
|
+
headers?: { [key: string]: string }
|
39
|
+
}
|
40
|
+
|
41
|
+
export interface HandlerError {
|
42
|
+
status: number
|
43
|
+
message?: string
|
44
|
+
}
|
45
|
+
|
46
|
+
export type HandlerOutput = HandlerError | HandlerSuccess
|
47
|
+
|
48
|
+
/** A list and an optional list item indicating membership of a target user to that list. */
|
49
|
+
export interface ListWithMembership {
|
50
|
+
$type?: 'app.bsky.graph.getListsWithMembership#listWithMembership'
|
51
|
+
list: AppBskyGraphDefs.ListView
|
52
|
+
listItem?: AppBskyGraphDefs.ListItemView
|
53
|
+
}
|
54
|
+
|
55
|
+
const hashListWithMembership = 'listWithMembership'
|
56
|
+
|
57
|
+
export function isListWithMembership<V>(v: V) {
|
58
|
+
return is$typed(v, id, hashListWithMembership)
|
59
|
+
}
|
60
|
+
|
61
|
+
export function validateListWithMembership<V>(v: V) {
|
62
|
+
return validate<ListWithMembership & V>(v, id, hashListWithMembership)
|
63
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { type ValidationResult, BlobRef } from '@atproto/lexicon'
|
5
|
+
import { CID } from 'multiformats/cid'
|
6
|
+
import { validate as _validate } from '../../../../lexicons'
|
7
|
+
import {
|
8
|
+
type $Typed,
|
9
|
+
is$typed as _is$typed,
|
10
|
+
type OmitKey,
|
11
|
+
} from '../../../../util'
|
12
|
+
import type * as AppBskyGraphDefs from './defs.js'
|
13
|
+
|
14
|
+
const is$typed = _is$typed,
|
15
|
+
validate = _validate
|
16
|
+
const id = 'app.bsky.graph.getStarterPacksWithMembership'
|
17
|
+
|
18
|
+
export type QueryParams = {
|
19
|
+
/** The account (actor) to check for membership. */
|
20
|
+
actor: string
|
21
|
+
limit: number
|
22
|
+
cursor?: string
|
23
|
+
}
|
24
|
+
export type InputSchema = undefined
|
25
|
+
|
26
|
+
export interface OutputSchema {
|
27
|
+
cursor?: string
|
28
|
+
starterPacksWithMembership: StarterPackWithMembership[]
|
29
|
+
}
|
30
|
+
|
31
|
+
export type HandlerInput = void
|
32
|
+
|
33
|
+
export interface HandlerSuccess {
|
34
|
+
encoding: 'application/json'
|
35
|
+
body: OutputSchema
|
36
|
+
headers?: { [key: string]: string }
|
37
|
+
}
|
38
|
+
|
39
|
+
export interface HandlerError {
|
40
|
+
status: number
|
41
|
+
message?: string
|
42
|
+
}
|
43
|
+
|
44
|
+
export type HandlerOutput = HandlerError | HandlerSuccess
|
45
|
+
|
46
|
+
/** A starter pack and an optional list item indicating membership of a target user to that starter pack. */
|
47
|
+
export interface StarterPackWithMembership {
|
48
|
+
$type?: 'app.bsky.graph.getStarterPacksWithMembership#starterPackWithMembership'
|
49
|
+
starterPack: AppBskyGraphDefs.StarterPackView
|
50
|
+
listItem?: AppBskyGraphDefs.ListItemView
|
51
|
+
}
|
52
|
+
|
53
|
+
const hashStarterPackWithMembership = 'starterPackWithMembership'
|
54
|
+
|
55
|
+
export function isStarterPackWithMembership<V>(v: V) {
|
56
|
+
return is$typed(v, id, hashStarterPackWithMembership)
|
57
|
+
}
|
58
|
+
|
59
|
+
export function validateStarterPackWithMembership<V>(v: V) {
|
60
|
+
return validate<StarterPackWithMembership & V>(
|
61
|
+
v,
|
62
|
+
id,
|
63
|
+
hashStarterPackWithMembership,
|
64
|
+
)
|
65
|
+
}
|