@atproto/pds 0.4.35 → 0.4.37
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/dist/lexicon/index.d.ts +18 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +41 -1
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +204 -0
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +222 -0
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/tools/ozone/team/addMember.d.ts +40 -0
- package/dist/lexicon/types/tools/ozone/team/addMember.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/team/addMember.js +3 -0
- package/dist/lexicon/types/tools/ozone/team/addMember.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/team/defs.d.ts +24 -0
- package/dist/lexicon/types/tools/ozone/team/defs.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/team/defs.js +22 -0
- package/dist/lexicon/types/tools/ozone/team/defs.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/team/deleteMember.d.ts +30 -0
- package/dist/lexicon/types/tools/ozone/team/deleteMember.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/team/deleteMember.js +3 -0
- package/dist/lexicon/types/tools/ozone/team/deleteMember.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/team/listMembers.d.ts +38 -0
- package/dist/lexicon/types/tools/ozone/team/listMembers.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/team/listMembers.js +3 -0
- package/dist/lexicon/types/tools/ozone/team/listMembers.js.map +1 -0
- package/dist/lexicon/types/tools/ozone/team/updateMember.d.ts +41 -0
- package/dist/lexicon/types/tools/ozone/team/updateMember.d.ts.map +1 -0
- package/dist/lexicon/types/tools/ozone/team/updateMember.js +3 -0
- package/dist/lexicon/types/tools/ozone/team/updateMember.js.map +1 -0
- package/dist/pipethrough.d.ts.map +1 -1
- package/dist/pipethrough.js +4 -0
- package/dist/pipethrough.js.map +1 -1
- package/package.json +4 -4
- package/src/lexicon/index.ts +63 -0
- package/src/lexicon/lexicons.ts +225 -0
- package/src/lexicon/types/tools/ozone/team/addMember.ts +53 -0
- package/src/lexicon/types/tools/ozone/team/defs.ts +42 -0
- package/src/lexicon/types/tools/ozone/team/deleteMember.ts +39 -0
- package/src/lexicon/types/tools/ozone/team/listMembers.ts +48 -0
- package/src/lexicon/types/tools/ozone/team/updateMember.ts +54 -0
- package/src/pipethrough.ts +4 -0
- package/tests/proxied/admin.test.ts +1 -1
@@ -0,0 +1,40 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express';
|
5
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
6
|
+
import * as ToolsOzoneTeamDefs from './defs';
|
7
|
+
export interface QueryParams {
|
8
|
+
}
|
9
|
+
export interface InputSchema {
|
10
|
+
did: string;
|
11
|
+
role: 'tools.ozone.team.defs#roleAdmin' | 'tools.ozone.team.defs#roleModerator' | 'tools.ozone.team.defs#roleTriage' | (string & {});
|
12
|
+
[k: string]: unknown;
|
13
|
+
}
|
14
|
+
export type OutputSchema = ToolsOzoneTeamDefs.Member;
|
15
|
+
export interface HandlerInput {
|
16
|
+
encoding: 'application/json';
|
17
|
+
body: InputSchema;
|
18
|
+
}
|
19
|
+
export interface HandlerSuccess {
|
20
|
+
encoding: 'application/json';
|
21
|
+
body: OutputSchema;
|
22
|
+
headers?: {
|
23
|
+
[key: string]: string;
|
24
|
+
};
|
25
|
+
}
|
26
|
+
export interface HandlerError {
|
27
|
+
status: number;
|
28
|
+
message?: string;
|
29
|
+
error?: 'MemberAlreadyExists';
|
30
|
+
}
|
31
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
32
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
33
|
+
auth: HA;
|
34
|
+
params: QueryParams;
|
35
|
+
input: HandlerInput;
|
36
|
+
req: express.Request;
|
37
|
+
res: express.Response;
|
38
|
+
};
|
39
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
40
|
+
//# sourceMappingURL=addMember.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"addMember.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/team/addMember.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,kBAAkB,MAAM,QAAQ,CAAA;AAE5C,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EACA,iCAAiC,GACjC,qCAAqC,GACrC,kCAAkC,GAClC,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,MAAM,YAAY,GAAG,kBAAkB,CAAC,MAAM,CAAA;AAEpD,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,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;IAChB,KAAK,CAAC,EAAE,qBAAqB,CAAA;CAC9B;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAC9E,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;CACtB,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"addMember.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/team/addMember.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import { ValidationResult } from '@atproto/lexicon';
|
5
|
+
import * as AppBskyActorDefs from '../../../app/bsky/actor/defs';
|
6
|
+
export interface Member {
|
7
|
+
did: string;
|
8
|
+
disabled?: boolean;
|
9
|
+
profile?: AppBskyActorDefs.ProfileViewDetailed;
|
10
|
+
createdAt?: string;
|
11
|
+
updatedAt?: string;
|
12
|
+
lastUpdatedBy?: string;
|
13
|
+
role: 'lex:tools.ozone.team.defs#roleAdmin' | 'lex:tools.ozone.team.defs#roleModerator' | 'lex:tools.ozone.team.defs#roleTriage' | (string & {});
|
14
|
+
[k: string]: unknown;
|
15
|
+
}
|
16
|
+
export declare function isMember(v: unknown): v is Member;
|
17
|
+
export declare function validateMember(v: unknown): ValidationResult;
|
18
|
+
/** Admin role. Highest level of access, can perform all actions. */
|
19
|
+
export declare const ROLEADMIN = "tools.ozone.team.defs#roleAdmin";
|
20
|
+
/** Moderator role. Can perform most actions. */
|
21
|
+
export declare const ROLEMODERATOR = "tools.ozone.team.defs#roleModerator";
|
22
|
+
/** Triage role. Mostly intended for monitoring and escalating issues. */
|
23
|
+
export declare const ROLETRIAGE = "tools.ozone.team.defs#roleTriage";
|
24
|
+
//# sourceMappingURL=defs.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/team/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAI5D,OAAO,KAAK,gBAAgB,MAAM,8BAA8B,CAAA;AAEhE,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,gBAAgB,CAAC,mBAAmB,CAAA;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,EACA,qCAAqC,GACrC,yCAAyC,GACzC,sCAAsC,GACtC,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,MAAM,CAMhD;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAE3D;AAED,oEAAoE;AACpE,eAAO,MAAM,SAAS,oCAAoC,CAAA;AAC1D,gDAAgD;AAChD,eAAO,MAAM,aAAa,wCAAwC,CAAA;AAClE,yEAAyE;AACzE,eAAO,MAAM,UAAU,qCAAqC,CAAA"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ROLETRIAGE = exports.ROLEMODERATOR = exports.ROLEADMIN = exports.validateMember = exports.isMember = void 0;
|
4
|
+
const lexicons_1 = require("../../../../lexicons");
|
5
|
+
const util_1 = require("../../../../util");
|
6
|
+
function isMember(v) {
|
7
|
+
return ((0, util_1.isObj)(v) &&
|
8
|
+
(0, util_1.hasProp)(v, '$type') &&
|
9
|
+
v.$type === 'tools.ozone.team.defs#member');
|
10
|
+
}
|
11
|
+
exports.isMember = isMember;
|
12
|
+
function validateMember(v) {
|
13
|
+
return lexicons_1.lexicons.validate('tools.ozone.team.defs#member', v);
|
14
|
+
}
|
15
|
+
exports.validateMember = validateMember;
|
16
|
+
/** Admin role. Highest level of access, can perform all actions. */
|
17
|
+
exports.ROLEADMIN = 'tools.ozone.team.defs#roleAdmin';
|
18
|
+
/** Moderator role. Can perform most actions. */
|
19
|
+
exports.ROLEMODERATOR = 'tools.ozone.team.defs#roleModerator';
|
20
|
+
/** Triage role. Mostly intended for monitoring and escalating issues. */
|
21
|
+
exports.ROLETRIAGE = 'tools.ozone.team.defs#roleTriage';
|
22
|
+
//# sourceMappingURL=defs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/team/defs.ts"],"names":[],"mappings":";;;AAIA,mDAA+C;AAC/C,2CAAiD;AAmBjD,SAAgB,QAAQ,CAAC,CAAU;IACjC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,8BAA8B,CAC3C,CAAA;AACH,CAAC;AAND,4BAMC;AAED,SAAgB,cAAc,CAAC,CAAU;IACvC,OAAO,mBAAQ,CAAC,QAAQ,CAAC,8BAA8B,EAAE,CAAC,CAAC,CAAA;AAC7D,CAAC;AAFD,wCAEC;AAED,oEAAoE;AACvD,QAAA,SAAS,GAAG,iCAAiC,CAAA;AAC1D,gDAAgD;AACnC,QAAA,aAAa,GAAG,qCAAqC,CAAA;AAClE,yEAAyE;AAC5D,QAAA,UAAU,GAAG,kCAAkC,CAAA"}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express';
|
5
|
+
import { HandlerAuth } from '@atproto/xrpc-server';
|
6
|
+
export interface QueryParams {
|
7
|
+
}
|
8
|
+
export interface InputSchema {
|
9
|
+
did: string;
|
10
|
+
[k: string]: unknown;
|
11
|
+
}
|
12
|
+
export interface HandlerInput {
|
13
|
+
encoding: 'application/json';
|
14
|
+
body: InputSchema;
|
15
|
+
}
|
16
|
+
export interface HandlerError {
|
17
|
+
status: number;
|
18
|
+
message?: string;
|
19
|
+
error?: 'MemberNotFound';
|
20
|
+
}
|
21
|
+
export type HandlerOutput = HandlerError | void;
|
22
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
23
|
+
auth: HA;
|
24
|
+
params: QueryParams;
|
25
|
+
input: HandlerInput;
|
26
|
+
req: express.Request;
|
27
|
+
res: express.Response;
|
28
|
+
};
|
29
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
30
|
+
//# sourceMappingURL=deleteMember.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deleteMember.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/team/deleteMember.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAsB,MAAM,sBAAsB,CAAA;AAEtE,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAA;IACX,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,gBAAgB,CAAA;CACzB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,IAAI,CAAA;AAC/C,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;CACtB,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"deleteMember.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/team/deleteMember.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express';
|
5
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
6
|
+
import * as ToolsOzoneTeamDefs from './defs';
|
7
|
+
export interface QueryParams {
|
8
|
+
limit: number;
|
9
|
+
cursor?: string;
|
10
|
+
}
|
11
|
+
export type InputSchema = undefined;
|
12
|
+
export interface OutputSchema {
|
13
|
+
cursor?: string;
|
14
|
+
members: ToolsOzoneTeamDefs.Member[];
|
15
|
+
[k: string]: unknown;
|
16
|
+
}
|
17
|
+
export type HandlerInput = undefined;
|
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 | HandlerPipeThrough;
|
30
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
31
|
+
auth: HA;
|
32
|
+
params: QueryParams;
|
33
|
+
input: HandlerInput;
|
34
|
+
req: express.Request;
|
35
|
+
res: express.Response;
|
36
|
+
};
|
37
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
38
|
+
//# sourceMappingURL=listMembers.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"listMembers.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/team/listMembers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,kBAAkB,MAAM,QAAQ,CAAA;AAE5C,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,kBAAkB,CAAC,MAAM,EAAE,CAAA;IACpC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,CAAA;AAEpC,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,GAAG,kBAAkB,CAAA;AAC9E,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;CACtB,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"listMembers.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/team/listMembers.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/**
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
3
|
+
*/
|
4
|
+
import express from 'express';
|
5
|
+
import { HandlerAuth, HandlerPipeThrough } from '@atproto/xrpc-server';
|
6
|
+
import * as ToolsOzoneTeamDefs from './defs';
|
7
|
+
export interface QueryParams {
|
8
|
+
}
|
9
|
+
export interface InputSchema {
|
10
|
+
did: string;
|
11
|
+
disabled?: boolean;
|
12
|
+
role?: 'tools.ozone.team.defs#roleAdmin' | 'tools.ozone.team.defs#roleModerator' | 'tools.ozone.team.defs#roleTriage' | (string & {});
|
13
|
+
[k: string]: unknown;
|
14
|
+
}
|
15
|
+
export type OutputSchema = ToolsOzoneTeamDefs.Member;
|
16
|
+
export interface HandlerInput {
|
17
|
+
encoding: 'application/json';
|
18
|
+
body: InputSchema;
|
19
|
+
}
|
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
|
+
error?: 'MemberNotFound';
|
31
|
+
}
|
32
|
+
export type HandlerOutput = HandlerError | HandlerSuccess | HandlerPipeThrough;
|
33
|
+
export type HandlerReqCtx<HA extends HandlerAuth = never> = {
|
34
|
+
auth: HA;
|
35
|
+
params: QueryParams;
|
36
|
+
input: HandlerInput;
|
37
|
+
req: express.Request;
|
38
|
+
res: express.Response;
|
39
|
+
};
|
40
|
+
export type Handler<HA extends HandlerAuth = never> = (ctx: HandlerReqCtx<HA>) => Promise<HandlerOutput> | HandlerOutput;
|
41
|
+
//# sourceMappingURL=updateMember.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"updateMember.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/team/updateMember.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACtE,OAAO,KAAK,kBAAkB,MAAM,QAAQ,CAAA;AAE5C,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EACD,iCAAiC,GACjC,qCAAqC,GACrC,kCAAkC,GAClC,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACjB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,MAAM,YAAY,GAAG,kBAAkB,CAAC,MAAM,CAAA;AAEpD,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,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;IAChB,KAAK,CAAC,EAAE,gBAAgB,CAAA;CACzB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,GAAG,kBAAkB,CAAA;AAC9E,MAAM,MAAM,aAAa,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI;IAC1D,IAAI,EAAE,EAAE,CAAA;IACR,MAAM,EAAE,WAAW,CAAA;IACnB,KAAK,EAAE,YAAY,CAAA;IACnB,GAAG,EAAE,OAAO,CAAC,OAAO,CAAA;IACpB,GAAG,EAAE,OAAO,CAAC,QAAQ,CAAA;CACtB,CAAA;AACD,MAAM,MAAM,OAAO,CAAC,EAAE,SAAS,WAAW,GAAG,KAAK,IAAI,CACpD,GAAG,EAAE,aAAa,CAAC,EAAE,CAAC,KACnB,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"updateMember.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/tools/ozone/team/updateMember.ts"],"names":[],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pipethrough.d.ts","sourceRoot":"","sources":["../src/pipethrough.ts"],"names":[],"mappings":";;AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAK7B,OAAO,EAAE,QAAQ,EAA2B,MAAM,kBAAkB,CAAA;AACpE,OAAO,EACL,eAAe,EACf,kB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,MAAM,sBAAsB,CAAA;AAK7B,OAAO,UAAU,MAAM,WAAW,CAAA;AAElC,eAAO,MAAM,YAAY,QAAS,UAAU,KAAG,eAiB9C,CAAA;AAED,eAAO,MAAM,WAAW,QACjB,UAAU,OACV,eAAe,aACT,MAAM,GAAG,IAAI,gBACV,MAAM,KACnB,QAAQ,kBAAkB,CAM5B,CAAA;AAED,eAAO,MAAM,oBAAoB,QAC1B,UAAU,OACV,eAAe,aACT,MAAM,GAAG,IAAI,SACjB,QAAQ,KACd,QAAQ,kBAAkB,CAS5B,CAAA;AAYD,eAAO,MAAM,eAAe,QACrB,UAAU,OACV,eAAe,gBACN,MAAM,KACnB,QAAQ;IAAE,GAAG,EAAE,GAAG,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAanC,CAAA;AAED,eAAO,MAAM,aAAa,QACnB,UAAU,OACV,eAAe,OACf,MAAM,aACA,MAAM,GAAG,IAAI,KACvB,QAAQ;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,CAYpC,CAAA;AA6BD,eAAO,MAAM,gBAAgB,QACtB,UAAU,OACV,eAAe,KACnB,QAAQ;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAgBzD,CAAA;AAKD,eAAO,MAAM,WAAW,QACjB,GAAG,WACC,WAAW,KACnB,QAAQ,QAAQ,CAoBlB,CAAA;AAYD,eAAO,MAAM,YAAY,gBACV,QAAQ,UACb,gBAAgB,kBAwBzB,CAAA;AAED,eAAO,MAAM,aAAa,QAAe,QAAQ;;;;EAWhD,CAAA;AAkCD,eAAO,MAAM,QAAQ,YAAa,MAAM,OAAO,kBAAkB,KAAG,CAKnE,CAAA"}
|
package/dist/pipethrough.js
CHANGED
@@ -223,6 +223,10 @@ exports.parseProxyRes = parseProxyRes;
|
|
223
223
|
const defaultService = (ctx, req) => {
|
224
224
|
const nsid = req.originalUrl.split('?')[0].replace('/xrpc/', '');
|
225
225
|
switch (nsid) {
|
226
|
+
case lexicons_1.ids.ToolsOzoneTeamAddMember:
|
227
|
+
case lexicons_1.ids.ToolsOzoneTeamDeleteMember:
|
228
|
+
case lexicons_1.ids.ToolsOzoneTeamUpdateMember:
|
229
|
+
case lexicons_1.ids.ToolsOzoneTeamListMembers:
|
226
230
|
case lexicons_1.ids.ToolsOzoneCommunicationCreateTemplate:
|
227
231
|
case lexicons_1.ids.ToolsOzoneCommunicationDeleteTemplate:
|
228
232
|
case lexicons_1.ids.ToolsOzoneCommunicationUpdateTemplate:
|
package/dist/pipethrough.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pipethrough.js","sourceRoot":"","sources":["../src/pipethrough.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iDAAkC;AAClC,wDAA0B;AAC1B,8DAAgC;AAEhC,8CAAoE;AACpE,sDAI6B;AAC7B,wCAAuD;AACvD,iDAAkD;AAClD,qCAAqC;AACrC,4CAAqE;AAG9D,MAAM,YAAY,GAAG,CAAC,GAAe,EAAmB,EAAE;IAC/D,MAAM,cAAc,GAAG,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE,CAAA;IACxD,OAAO,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAC9B,IAAI,CAAC;YACH,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM,IAAA,uBAAe,EAAC,GAAG,EAAE,GAAG,CAAC,CAAA;YACpD,MAAM,IAAI,GAAG,MAAM,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,CAAA;YAC1C,MAAM,OAAO,GAAG,MAAM,IAAA,qBAAa,EAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAA;YACxE,MAAM,IAAI,GACR,qBAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;YAC5B,MAAM,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AC,MAAM,CAAC;QACP,OAAO,IAAI,CAAA;IACb,CAAC;AACH,CAAC,CAAA;AAED,MAAM,aAAa,GAAG,CAAC,OAAgB,EAA0B,EAAE;IACjE,MAAM,MAAM,GAAG,EAAE,CAAA;IACjB,KAAK,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,OAAO,EAAE,CAAC;QACjC,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,CAAA;IACnB,CAAC;IACD,OAAO,MAAM,CAAA;AACf,CAAC,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atproto/pds",
|
3
|
-
"version": "0.4.
|
3
|
+
"version": "0.4.37",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Reference implementation of atproto Personal Data Server (PDS)",
|
6
6
|
"keywords": [
|
@@ -44,7 +44,7 @@
|
|
44
44
|
"uint8arrays": "3.0.0",
|
45
45
|
"zod": "^3.23.8",
|
46
46
|
"@atproto-labs/fetch-node": "0.1.0",
|
47
|
-
"@atproto/api": "^0.12.
|
47
|
+
"@atproto/api": "^0.12.21",
|
48
48
|
"@atproto/aws": "^0.2.0",
|
49
49
|
"@atproto/common": "^0.4.0",
|
50
50
|
"@atproto/crypto": "^0.4.0",
|
@@ -72,8 +72,8 @@
|
|
72
72
|
"jest": "^28.1.2",
|
73
73
|
"ts-node": "^10.8.2",
|
74
74
|
"ws": "^8.12.0",
|
75
|
-
"@atproto/api": "^0.12.
|
76
|
-
"@atproto/bsky": "^0.0.
|
75
|
+
"@atproto/api": "^0.12.21",
|
76
|
+
"@atproto/bsky": "^0.0.64",
|
77
77
|
"@atproto/lex-cli": "^0.4.0"
|
78
78
|
},
|
79
79
|
"scripts": {
|
package/src/lexicon/index.ts
CHANGED
@@ -163,6 +163,10 @@ import * as ToolsOzoneModerationQueryEvents from './types/tools/ozone/moderation
|
|
163
163
|
import * as ToolsOzoneModerationQueryStatuses from './types/tools/ozone/moderation/queryStatuses'
|
164
164
|
import * as ToolsOzoneModerationSearchRepos from './types/tools/ozone/moderation/searchRepos'
|
165
165
|
import * as ToolsOzoneServerGetConfig from './types/tools/ozone/server/getConfig'
|
166
|
+
import * as ToolsOzoneTeamAddMember from './types/tools/ozone/team/addMember'
|
167
|
+
import * as ToolsOzoneTeamDeleteMember from './types/tools/ozone/team/deleteMember'
|
168
|
+
import * as ToolsOzoneTeamListMembers from './types/tools/ozone/team/listMembers'
|
169
|
+
import * as ToolsOzoneTeamUpdateMember from './types/tools/ozone/team/updateMember'
|
166
170
|
|
167
171
|
export const COM_ATPROTO_MODERATION = {
|
168
172
|
DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam',
|
@@ -197,6 +201,11 @@ export const TOOLS_OZONE_MODERATION = {
|
|
197
201
|
DefsReviewClosed: 'tools.ozone.moderation.defs#reviewClosed',
|
198
202
|
DefsReviewNone: 'tools.ozone.moderation.defs#reviewNone',
|
199
203
|
}
|
204
|
+
export const TOOLS_OZONE_TEAM = {
|
205
|
+
DefsRoleAdmin: 'tools.ozone.team.defs#roleAdmin',
|
206
|
+
DefsRoleModerator: 'tools.ozone.team.defs#roleModerator',
|
207
|
+
DefsRoleTriage: 'tools.ozone.team.defs#roleTriage',
|
208
|
+
}
|
200
209
|
|
201
210
|
export function createServer(options?: XrpcOptions): Server {
|
202
211
|
return new Server(options)
|
@@ -2043,12 +2052,14 @@ export class ToolsOzoneNS {
|
|
2043
2052
|
communication: ToolsOzoneCommunicationNS
|
2044
2053
|
moderation: ToolsOzoneModerationNS
|
2045
2054
|
server: ToolsOzoneServerNS
|
2055
|
+
team: ToolsOzoneTeamNS
|
2046
2056
|
|
2047
2057
|
constructor(server: Server) {
|
2048
2058
|
this._server = server
|
2049
2059
|
this.communication = new ToolsOzoneCommunicationNS(server)
|
2050
2060
|
this.moderation = new ToolsOzoneModerationNS(server)
|
2051
2061
|
this.server = new ToolsOzoneServerNS(server)
|
2062
|
+
this.team = new ToolsOzoneTeamNS(server)
|
2052
2063
|
}
|
2053
2064
|
}
|
2054
2065
|
|
@@ -2208,6 +2219,58 @@ export class ToolsOzoneServerNS {
|
|
2208
2219
|
}
|
2209
2220
|
}
|
2210
2221
|
|
2222
|
+
export class ToolsOzoneTeamNS {
|
2223
|
+
_server: Server
|
2224
|
+
|
2225
|
+
constructor(server: Server) {
|
2226
|
+
this._server = server
|
2227
|
+
}
|
2228
|
+
|
2229
|
+
addMember<AV extends AuthVerifier>(
|
2230
|
+
cfg: ConfigOf<
|
2231
|
+
AV,
|
2232
|
+
ToolsOzoneTeamAddMember.Handler<ExtractAuth<AV>>,
|
2233
|
+
ToolsOzoneTeamAddMember.HandlerReqCtx<ExtractAuth<AV>>
|
2234
|
+
>,
|
2235
|
+
) {
|
2236
|
+
const nsid = 'tools.ozone.team.addMember' // @ts-ignore
|
2237
|
+
return this._server.xrpc.method(nsid, cfg)
|
2238
|
+
}
|
2239
|
+
|
2240
|
+
deleteMember<AV extends AuthVerifier>(
|
2241
|
+
cfg: ConfigOf<
|
2242
|
+
AV,
|
2243
|
+
ToolsOzoneTeamDeleteMember.Handler<ExtractAuth<AV>>,
|
2244
|
+
ToolsOzoneTeamDeleteMember.HandlerReqCtx<ExtractAuth<AV>>
|
2245
|
+
>,
|
2246
|
+
) {
|
2247
|
+
const nsid = 'tools.ozone.team.deleteMember' // @ts-ignore
|
2248
|
+
return this._server.xrpc.method(nsid, cfg)
|
2249
|
+
}
|
2250
|
+
|
2251
|
+
listMembers<AV extends AuthVerifier>(
|
2252
|
+
cfg: ConfigOf<
|
2253
|
+
AV,
|
2254
|
+
ToolsOzoneTeamListMembers.Handler<ExtractAuth<AV>>,
|
2255
|
+
ToolsOzoneTeamListMembers.HandlerReqCtx<ExtractAuth<AV>>
|
2256
|
+
>,
|
2257
|
+
) {
|
2258
|
+
const nsid = 'tools.ozone.team.listMembers' // @ts-ignore
|
2259
|
+
return this._server.xrpc.method(nsid, cfg)
|
2260
|
+
}
|
2261
|
+
|
2262
|
+
updateMember<AV extends AuthVerifier>(
|
2263
|
+
cfg: ConfigOf<
|
2264
|
+
AV,
|
2265
|
+
ToolsOzoneTeamUpdateMember.Handler<ExtractAuth<AV>>,
|
2266
|
+
ToolsOzoneTeamUpdateMember.HandlerReqCtx<ExtractAuth<AV>>
|
2267
|
+
>,
|
2268
|
+
) {
|
2269
|
+
const nsid = 'tools.ozone.team.updateMember' // @ts-ignore
|
2270
|
+
return this._server.xrpc.method(nsid, cfg)
|
2271
|
+
}
|
2272
|
+
}
|
2273
|
+
|
2211
2274
|
type SharedRateLimitOpts<T> = {
|
2212
2275
|
name: string
|
2213
2276
|
calcKey?: (ctx: T) => string
|