@atproto/api 0.12.15 → 0.12.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/client/index.d.ts +11 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +42 -5
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +108 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +112 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/com/atproto/admin/searchAccounts.d.ts +26 -0
- package/dist/client/types/com/atproto/admin/searchAccounts.d.ts.map +1 -0
- package/dist/client/types/com/atproto/admin/searchAccounts.js +14 -0
- package/dist/client/types/com/atproto/admin/searchAccounts.js.map +1 -0
- package/dist/client/types/com/atproto/admin/updateSubjectStatus.d.ts +1 -0
- package/dist/client/types/com/atproto/admin/updateSubjectStatus.d.ts.map +1 -1
- package/dist/client/types/com/atproto/admin/updateSubjectStatus.js.map +1 -1
- package/dist/client/types/tools/ozone/server/getConfig.d.ts +38 -0
- package/dist/client/types/tools/ozone/server/getConfig.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/server/getConfig.js +36 -0
- package/dist/client/types/tools/ozone/server/getConfig.js.map +1 -0
- package/package.json +1 -1
- package/src/client/index.ts +36 -0
- package/src/client/lexicons.ts +112 -0
- package/src/client/types/com/atproto/admin/searchAccounts.ts +39 -0
- package/src/client/types/com/atproto/admin/updateSubjectStatus.ts +1 -0
- package/src/client/types/tools/ozone/server/getConfig.ts +75 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { Headers } from '@atproto/xrpc';
|
|
5
|
+
import * as ComAtprotoAdminDefs from './defs';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
email?: string;
|
|
8
|
+
cursor?: string;
|
|
9
|
+
limit?: number;
|
|
10
|
+
}
|
|
11
|
+
export type InputSchema = undefined;
|
|
12
|
+
export interface OutputSchema {
|
|
13
|
+
cursor?: string;
|
|
14
|
+
accounts: ComAtprotoAdminDefs.AccountView[];
|
|
15
|
+
[k: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
export interface CallOptions {
|
|
18
|
+
headers?: Headers;
|
|
19
|
+
}
|
|
20
|
+
export interface Response {
|
|
21
|
+
success: boolean;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
data: OutputSchema;
|
|
24
|
+
}
|
|
25
|
+
export declare function toKnownErr(e: any): any;
|
|
26
|
+
//# sourceMappingURL=searchAccounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchAccounts.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/admin/searchAccounts.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,EAAa,MAAM,eAAe,CAAA;AAKlD,OAAO,KAAK,mBAAmB,MAAM,QAAQ,CAAA;AAE7C,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,mBAAmB,CAAC,WAAW,EAAE,CAAA;IAC3C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAIhC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toKnownErr = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
6
|
+
*/
|
|
7
|
+
const xrpc_1 = require("@atproto/xrpc");
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
if (e instanceof xrpc_1.XRPCError) {
|
|
10
|
+
}
|
|
11
|
+
return e;
|
|
12
|
+
}
|
|
13
|
+
exports.toKnownErr = toKnownErr;
|
|
14
|
+
//# sourceMappingURL=searchAccounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchAccounts.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/admin/searchAccounts.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,wCAAkD;AA+BlD,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;IAC7B,CAAC;IACD,OAAO,CAAC,CAAA;AACV,CAAC;AAJD,gCAIC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateSubjectStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/admin/updateSubjectStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,EAAa,MAAM,eAAe,CAAA;AAKlD,OAAO,KAAK,mBAAmB,MAAM,QAAQ,CAAA;AAC7C,OAAO,KAAK,uBAAuB,MAAM,mBAAmB,CAAA;AAE5D,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,OAAO,EACH,mBAAmB,CAAC,OAAO,GAC3B,uBAAuB,CAAC,IAAI,GAC5B,mBAAmB,CAAC,WAAW,GAC/B;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;IAC3C,QAAQ,CAAC,EAAE,mBAAmB,CAAC,UAAU,CAAA;IACzC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EACH,mBAAmB,CAAC,OAAO,GAC3B,uBAAuB,CAAC,IAAI,GAC5B,mBAAmB,CAAC,WAAW,GAC/B;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;IAC3C,QAAQ,CAAC,EAAE,mBAAmB,CAAC,UAAU,CAAA;IACzC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,EAAE,kBAAkB,CAAA;CAC7B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAIhC"}
|
|
1
|
+
{"version":3,"file":"updateSubjectStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/admin/updateSubjectStatus.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,EAAa,MAAM,eAAe,CAAA;AAKlD,OAAO,KAAK,mBAAmB,MAAM,QAAQ,CAAA;AAC7C,OAAO,KAAK,uBAAuB,MAAM,mBAAmB,CAAA;AAE5D,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,OAAO,EACH,mBAAmB,CAAC,OAAO,GAC3B,uBAAuB,CAAC,IAAI,GAC5B,mBAAmB,CAAC,WAAW,GAC/B;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;IAC3C,QAAQ,CAAC,EAAE,mBAAmB,CAAC,UAAU,CAAA;IACzC,WAAW,CAAC,EAAE,mBAAmB,CAAC,UAAU,CAAA;IAC5C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EACH,mBAAmB,CAAC,OAAO,GAC3B,uBAAuB,CAAC,IAAI,GAC5B,mBAAmB,CAAC,WAAW,GAC/B;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAA;IAC3C,QAAQ,CAAC,EAAE,mBAAmB,CAAC,UAAU,CAAA;IACzC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,EAAE,kBAAkB,CAAA;CAC7B;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAIhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateSubjectStatus.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/admin/updateSubjectStatus.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,wCAAkD;
|
|
1
|
+
{"version":3,"file":"updateSubjectStatus.js","sourceRoot":"","sources":["../../../../../../src/client/types/com/atproto/admin/updateSubjectStatus.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,wCAAkD;AA2ClD,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;IAC7B,CAAC;IACD,OAAO,CAAC,CAAA;AACV,CAAC;AAJD,gCAIC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { Headers } from '@atproto/xrpc';
|
|
5
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
}
|
|
8
|
+
export type InputSchema = undefined;
|
|
9
|
+
export interface OutputSchema {
|
|
10
|
+
appview?: ServiceConfig;
|
|
11
|
+
pds?: ServiceConfig;
|
|
12
|
+
blobDivert?: ServiceConfig;
|
|
13
|
+
chat?: ServiceConfig;
|
|
14
|
+
viewer?: ViewerConfig;
|
|
15
|
+
[k: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
export interface CallOptions {
|
|
18
|
+
headers?: Headers;
|
|
19
|
+
}
|
|
20
|
+
export interface Response {
|
|
21
|
+
success: boolean;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
data: OutputSchema;
|
|
24
|
+
}
|
|
25
|
+
export declare function toKnownErr(e: any): any;
|
|
26
|
+
export interface ServiceConfig {
|
|
27
|
+
url?: string;
|
|
28
|
+
[k: string]: unknown;
|
|
29
|
+
}
|
|
30
|
+
export declare function isServiceConfig(v: unknown): v is ServiceConfig;
|
|
31
|
+
export declare function validateServiceConfig(v: unknown): ValidationResult;
|
|
32
|
+
export interface ViewerConfig {
|
|
33
|
+
role?: 'tools.ozone.team.defs#roleAdmin' | 'tools.ozone.team.defs#roleModerator' | 'tools.ozone.team.defs#roleTriage' | (string & {});
|
|
34
|
+
[k: string]: unknown;
|
|
35
|
+
}
|
|
36
|
+
export declare function isViewerConfig(v: unknown): v is ViewerConfig;
|
|
37
|
+
export declare function validateViewerConfig(v: unknown): ValidationResult;
|
|
38
|
+
//# sourceMappingURL=getConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfig.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/server/getConfig.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,EAAa,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAK5D,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,GAAG,CAAC,EAAE,aAAa,CAAA;IACnB,UAAU,CAAC,EAAE,aAAa,CAAA;IAC1B,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAIhC;AAED,MAAM,WAAW,aAAa;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,aAAa,CAM9D;AAED,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAElE;AAED,MAAM,WAAW,YAAY;IAC3B,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,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,YAAY,CAM5D;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAEjE"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateViewerConfig = exports.isViewerConfig = exports.validateServiceConfig = exports.isServiceConfig = exports.toKnownErr = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
6
|
+
*/
|
|
7
|
+
const xrpc_1 = require("@atproto/xrpc");
|
|
8
|
+
const util_1 = require("../../../../util");
|
|
9
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
10
|
+
function toKnownErr(e) {
|
|
11
|
+
if (e instanceof xrpc_1.XRPCError) {
|
|
12
|
+
}
|
|
13
|
+
return e;
|
|
14
|
+
}
|
|
15
|
+
exports.toKnownErr = toKnownErr;
|
|
16
|
+
function isServiceConfig(v) {
|
|
17
|
+
return ((0, util_1.isObj)(v) &&
|
|
18
|
+
(0, util_1.hasProp)(v, '$type') &&
|
|
19
|
+
v.$type === 'tools.ozone.server.getConfig#serviceConfig');
|
|
20
|
+
}
|
|
21
|
+
exports.isServiceConfig = isServiceConfig;
|
|
22
|
+
function validateServiceConfig(v) {
|
|
23
|
+
return lexicons_1.lexicons.validate('tools.ozone.server.getConfig#serviceConfig', v);
|
|
24
|
+
}
|
|
25
|
+
exports.validateServiceConfig = validateServiceConfig;
|
|
26
|
+
function isViewerConfig(v) {
|
|
27
|
+
return ((0, util_1.isObj)(v) &&
|
|
28
|
+
(0, util_1.hasProp)(v, '$type') &&
|
|
29
|
+
v.$type === 'tools.ozone.server.getConfig#viewerConfig');
|
|
30
|
+
}
|
|
31
|
+
exports.isViewerConfig = isViewerConfig;
|
|
32
|
+
function validateViewerConfig(v) {
|
|
33
|
+
return lexicons_1.lexicons.validate('tools.ozone.server.getConfig#viewerConfig', v);
|
|
34
|
+
}
|
|
35
|
+
exports.validateViewerConfig = validateViewerConfig;
|
|
36
|
+
//# sourceMappingURL=getConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getConfig.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/server/getConfig.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,wCAAkD;AAElD,2CAAiD;AACjD,mDAA+C;AA0B/C,SAAgB,UAAU,CAAC,CAAM;IAC/B,IAAI,CAAC,YAAY,gBAAS,EAAE,CAAC;IAC7B,CAAC;IACD,OAAO,CAAC,CAAA;AACV,CAAC;AAJD,gCAIC;AAOD,SAAgB,eAAe,CAAC,CAAU;IACxC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,4CAA4C,CACzD,CAAA;AACH,CAAC;AAND,0CAMC;AAED,SAAgB,qBAAqB,CAAC,CAAU;IAC9C,OAAO,mBAAQ,CAAC,QAAQ,CAAC,4CAA4C,EAAE,CAAC,CAAC,CAAA;AAC3E,CAAC;AAFD,sDAEC;AAWD,SAAgB,cAAc,CAAC,CAAU;IACvC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,2CAA2C,CACxD,CAAA;AACH,CAAC;AAND,wCAMC;AAED,SAAgB,oBAAoB,CAAC,CAAU;IAC7C,OAAO,mBAAQ,CAAC,QAAQ,CAAC,2CAA2C,EAAE,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,oDAEC"}
|
package/package.json
CHANGED
package/src/client/index.ts
CHANGED
|
@@ -16,6 +16,7 @@ import * as ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAcc
|
|
|
16
16
|
import * as ComAtprotoAdminGetAccountInfos from './types/com/atproto/admin/getAccountInfos'
|
|
17
17
|
import * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes'
|
|
18
18
|
import * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus'
|
|
19
|
+
import * as ComAtprotoAdminSearchAccounts from './types/com/atproto/admin/searchAccounts'
|
|
19
20
|
import * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail'
|
|
20
21
|
import * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail'
|
|
21
22
|
import * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle'
|
|
@@ -188,6 +189,7 @@ import * as ToolsOzoneModerationGetRepo from './types/tools/ozone/moderation/get
|
|
|
188
189
|
import * as ToolsOzoneModerationQueryEvents from './types/tools/ozone/moderation/queryEvents'
|
|
189
190
|
import * as ToolsOzoneModerationQueryStatuses from './types/tools/ozone/moderation/queryStatuses'
|
|
190
191
|
import * as ToolsOzoneModerationSearchRepos from './types/tools/ozone/moderation/searchRepos'
|
|
192
|
+
import * as ToolsOzoneServerGetConfig from './types/tools/ozone/server/getConfig'
|
|
191
193
|
|
|
192
194
|
export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs'
|
|
193
195
|
export * as ComAtprotoAdminDeleteAccount from './types/com/atproto/admin/deleteAccount'
|
|
@@ -198,6 +200,7 @@ export * as ComAtprotoAdminGetAccountInfo from './types/com/atproto/admin/getAcc
|
|
|
198
200
|
export * as ComAtprotoAdminGetAccountInfos from './types/com/atproto/admin/getAccountInfos'
|
|
199
201
|
export * as ComAtprotoAdminGetInviteCodes from './types/com/atproto/admin/getInviteCodes'
|
|
200
202
|
export * as ComAtprotoAdminGetSubjectStatus from './types/com/atproto/admin/getSubjectStatus'
|
|
203
|
+
export * as ComAtprotoAdminSearchAccounts from './types/com/atproto/admin/searchAccounts'
|
|
201
204
|
export * as ComAtprotoAdminSendEmail from './types/com/atproto/admin/sendEmail'
|
|
202
205
|
export * as ComAtprotoAdminUpdateAccountEmail from './types/com/atproto/admin/updateAccountEmail'
|
|
203
206
|
export * as ComAtprotoAdminUpdateAccountHandle from './types/com/atproto/admin/updateAccountHandle'
|
|
@@ -370,6 +373,7 @@ export * as ToolsOzoneModerationGetRepo from './types/tools/ozone/moderation/get
|
|
|
370
373
|
export * as ToolsOzoneModerationQueryEvents from './types/tools/ozone/moderation/queryEvents'
|
|
371
374
|
export * as ToolsOzoneModerationQueryStatuses from './types/tools/ozone/moderation/queryStatuses'
|
|
372
375
|
export * as ToolsOzoneModerationSearchRepos from './types/tools/ozone/moderation/searchRepos'
|
|
376
|
+
export * as ToolsOzoneServerGetConfig from './types/tools/ozone/server/getConfig'
|
|
373
377
|
|
|
374
378
|
export const COM_ATPROTO_MODERATION = {
|
|
375
379
|
DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam',
|
|
@@ -568,6 +572,17 @@ export class ComAtprotoAdminNS {
|
|
|
568
572
|
})
|
|
569
573
|
}
|
|
570
574
|
|
|
575
|
+
searchAccounts(
|
|
576
|
+
params?: ComAtprotoAdminSearchAccounts.QueryParams,
|
|
577
|
+
opts?: ComAtprotoAdminSearchAccounts.CallOptions,
|
|
578
|
+
): Promise<ComAtprotoAdminSearchAccounts.Response> {
|
|
579
|
+
return this._service.xrpc
|
|
580
|
+
.call('com.atproto.admin.searchAccounts', params, undefined, opts)
|
|
581
|
+
.catch((e) => {
|
|
582
|
+
throw ComAtprotoAdminSearchAccounts.toKnownErr(e)
|
|
583
|
+
})
|
|
584
|
+
}
|
|
585
|
+
|
|
571
586
|
sendEmail(
|
|
572
587
|
data?: ComAtprotoAdminSendEmail.InputSchema,
|
|
573
588
|
opts?: ComAtprotoAdminSendEmail.CallOptions,
|
|
@@ -3063,11 +3078,13 @@ export class ToolsOzoneNS {
|
|
|
3063
3078
|
_service: AtpServiceClient
|
|
3064
3079
|
communication: ToolsOzoneCommunicationNS
|
|
3065
3080
|
moderation: ToolsOzoneModerationNS
|
|
3081
|
+
server: ToolsOzoneServerNS
|
|
3066
3082
|
|
|
3067
3083
|
constructor(service: AtpServiceClient) {
|
|
3068
3084
|
this._service = service
|
|
3069
3085
|
this.communication = new ToolsOzoneCommunicationNS(service)
|
|
3070
3086
|
this.moderation = new ToolsOzoneModerationNS(service)
|
|
3087
|
+
this.server = new ToolsOzoneServerNS(service)
|
|
3071
3088
|
}
|
|
3072
3089
|
}
|
|
3073
3090
|
|
|
@@ -3207,3 +3224,22 @@ export class ToolsOzoneModerationNS {
|
|
|
3207
3224
|
})
|
|
3208
3225
|
}
|
|
3209
3226
|
}
|
|
3227
|
+
|
|
3228
|
+
export class ToolsOzoneServerNS {
|
|
3229
|
+
_service: AtpServiceClient
|
|
3230
|
+
|
|
3231
|
+
constructor(service: AtpServiceClient) {
|
|
3232
|
+
this._service = service
|
|
3233
|
+
}
|
|
3234
|
+
|
|
3235
|
+
getConfig(
|
|
3236
|
+
params?: ToolsOzoneServerGetConfig.QueryParams,
|
|
3237
|
+
opts?: ToolsOzoneServerGetConfig.CallOptions,
|
|
3238
|
+
): Promise<ToolsOzoneServerGetConfig.Response> {
|
|
3239
|
+
return this._service.xrpc
|
|
3240
|
+
.call('tools.ozone.server.getConfig', params, undefined, opts)
|
|
3241
|
+
.catch((e) => {
|
|
3242
|
+
throw ToolsOzoneServerGetConfig.toKnownErr(e)
|
|
3243
|
+
})
|
|
3244
|
+
}
|
|
3245
|
+
}
|
package/src/client/lexicons.ts
CHANGED
|
@@ -378,6 +378,52 @@ export const schemaDict = {
|
|
|
378
378
|
},
|
|
379
379
|
},
|
|
380
380
|
},
|
|
381
|
+
ComAtprotoAdminSearchAccounts: {
|
|
382
|
+
lexicon: 1,
|
|
383
|
+
id: 'com.atproto.admin.searchAccounts',
|
|
384
|
+
defs: {
|
|
385
|
+
main: {
|
|
386
|
+
type: 'query',
|
|
387
|
+
description: 'Get list of accounts that matches your search query.',
|
|
388
|
+
parameters: {
|
|
389
|
+
type: 'params',
|
|
390
|
+
properties: {
|
|
391
|
+
email: {
|
|
392
|
+
type: 'string',
|
|
393
|
+
},
|
|
394
|
+
cursor: {
|
|
395
|
+
type: 'string',
|
|
396
|
+
},
|
|
397
|
+
limit: {
|
|
398
|
+
type: 'integer',
|
|
399
|
+
minimum: 1,
|
|
400
|
+
maximum: 100,
|
|
401
|
+
default: 50,
|
|
402
|
+
},
|
|
403
|
+
},
|
|
404
|
+
},
|
|
405
|
+
output: {
|
|
406
|
+
encoding: 'application/json',
|
|
407
|
+
schema: {
|
|
408
|
+
type: 'object',
|
|
409
|
+
required: ['accounts'],
|
|
410
|
+
properties: {
|
|
411
|
+
cursor: {
|
|
412
|
+
type: 'string',
|
|
413
|
+
},
|
|
414
|
+
accounts: {
|
|
415
|
+
type: 'array',
|
|
416
|
+
items: {
|
|
417
|
+
type: 'ref',
|
|
418
|
+
ref: 'lex:com.atproto.admin.defs#accountView',
|
|
419
|
+
},
|
|
420
|
+
},
|
|
421
|
+
},
|
|
422
|
+
},
|
|
423
|
+
},
|
|
424
|
+
},
|
|
425
|
+
},
|
|
426
|
+
},
|
|
381
427
|
ComAtprotoAdminSendEmail: {
|
|
382
428
|
lexicon: 1,
|
|
383
429
|
id: 'com.atproto.admin.sendEmail',
|
|
@@ -535,6 +581,10 @@ export const schemaDict = {
|
|
|
535
581
|
type: 'ref',
|
|
536
582
|
ref: 'lex:com.atproto.admin.defs#statusAttr',
|
|
537
583
|
},
|
|
584
|
+
deactivated: {
|
|
585
|
+
type: 'ref',
|
|
586
|
+
ref: 'lex:com.atproto.admin.defs#statusAttr',
|
|
587
|
+
},
|
|
538
588
|
},
|
|
539
589
|
},
|
|
540
590
|
},
|
|
@@ -10770,6 +10820,66 @@ export const schemaDict = {
|
|
|
10770
10820
|
},
|
|
10771
10821
|
},
|
|
10772
10822
|
},
|
|
10823
|
+
ToolsOzoneServerGetConfig: {
|
|
10824
|
+
lexicon: 1,
|
|
10825
|
+
id: 'tools.ozone.server.getConfig',
|
|
10826
|
+
defs: {
|
|
10827
|
+
main: {
|
|
10828
|
+
type: 'query',
|
|
10829
|
+
description: "Get details about ozone's server configuration.",
|
|
10830
|
+
output: {
|
|
10831
|
+
encoding: 'application/json',
|
|
10832
|
+
schema: {
|
|
10833
|
+
type: 'object',
|
|
10834
|
+
properties: {
|
|
10835
|
+
appview: {
|
|
10836
|
+
type: 'ref',
|
|
10837
|
+
ref: 'lex:tools.ozone.server.getConfig#serviceConfig',
|
|
10838
|
+
},
|
|
10839
|
+
pds: {
|
|
10840
|
+
type: 'ref',
|
|
10841
|
+
ref: 'lex:tools.ozone.server.getConfig#serviceConfig',
|
|
10842
|
+
},
|
|
10843
|
+
blobDivert: {
|
|
10844
|
+
type: 'ref',
|
|
10845
|
+
ref: 'lex:tools.ozone.server.getConfig#serviceConfig',
|
|
10846
|
+
},
|
|
10847
|
+
chat: {
|
|
10848
|
+
type: 'ref',
|
|
10849
|
+
ref: 'lex:tools.ozone.server.getConfig#serviceConfig',
|
|
10850
|
+
},
|
|
10851
|
+
viewer: {
|
|
10852
|
+
type: 'ref',
|
|
10853
|
+
ref: 'lex:tools.ozone.server.getConfig#viewerConfig',
|
|
10854
|
+
},
|
|
10855
|
+
},
|
|
10856
|
+
},
|
|
10857
|
+
},
|
|
10858
|
+
},
|
|
10859
|
+
serviceConfig: {
|
|
10860
|
+
type: 'object',
|
|
10861
|
+
properties: {
|
|
10862
|
+
url: {
|
|
10863
|
+
type: 'string',
|
|
10864
|
+
format: 'uri',
|
|
10865
|
+
},
|
|
10866
|
+
},
|
|
10867
|
+
},
|
|
10868
|
+
viewerConfig: {
|
|
10869
|
+
type: 'object',
|
|
10870
|
+
properties: {
|
|
10871
|
+
role: {
|
|
10872
|
+
type: 'string',
|
|
10873
|
+
knownValues: [
|
|
10874
|
+
'tools.ozone.team.defs#roleAdmin',
|
|
10875
|
+
'tools.ozone.team.defs#roleModerator',
|
|
10876
|
+
'tools.ozone.team.defs#roleTriage',
|
|
10877
|
+
],
|
|
10878
|
+
},
|
|
10879
|
+
},
|
|
10880
|
+
},
|
|
10881
|
+
},
|
|
10882
|
+
},
|
|
10773
10883
|
}
|
|
10774
10884
|
export const schemas: LexiconDoc[] = Object.values(schemaDict) as LexiconDoc[]
|
|
10775
10885
|
export const lexicons: Lexicons = new Lexicons(schemas)
|
|
@@ -10784,6 +10894,7 @@ export const ids = {
|
|
|
10784
10894
|
ComAtprotoAdminGetAccountInfos: 'com.atproto.admin.getAccountInfos',
|
|
10785
10895
|
ComAtprotoAdminGetInviteCodes: 'com.atproto.admin.getInviteCodes',
|
|
10786
10896
|
ComAtprotoAdminGetSubjectStatus: 'com.atproto.admin.getSubjectStatus',
|
|
10897
|
+
ComAtprotoAdminSearchAccounts: 'com.atproto.admin.searchAccounts',
|
|
10787
10898
|
ComAtprotoAdminSendEmail: 'com.atproto.admin.sendEmail',
|
|
10788
10899
|
ComAtprotoAdminUpdateAccountEmail: 'com.atproto.admin.updateAccountEmail',
|
|
10789
10900
|
ComAtprotoAdminUpdateAccountHandle: 'com.atproto.admin.updateAccountHandle',
|
|
@@ -10975,4 +11086,5 @@ export const ids = {
|
|
|
10975
11086
|
ToolsOzoneModerationQueryEvents: 'tools.ozone.moderation.queryEvents',
|
|
10976
11087
|
ToolsOzoneModerationQueryStatuses: 'tools.ozone.moderation.queryStatuses',
|
|
10977
11088
|
ToolsOzoneModerationSearchRepos: 'tools.ozone.moderation.searchRepos',
|
|
11089
|
+
ToolsOzoneServerGetConfig: 'tools.ozone.server.getConfig',
|
|
10978
11090
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { Headers, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { isObj, hasProp } from '../../../../util'
|
|
7
|
+
import { lexicons } from '../../../../lexicons'
|
|
8
|
+
import { CID } from 'multiformats/cid'
|
|
9
|
+
import * as ComAtprotoAdminDefs from './defs'
|
|
10
|
+
|
|
11
|
+
export interface QueryParams {
|
|
12
|
+
email?: string
|
|
13
|
+
cursor?: string
|
|
14
|
+
limit?: number
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type InputSchema = undefined
|
|
18
|
+
|
|
19
|
+
export interface OutputSchema {
|
|
20
|
+
cursor?: string
|
|
21
|
+
accounts: ComAtprotoAdminDefs.AccountView[]
|
|
22
|
+
[k: string]: unknown
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface CallOptions {
|
|
26
|
+
headers?: Headers
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface Response {
|
|
30
|
+
success: boolean
|
|
31
|
+
headers: Headers
|
|
32
|
+
data: OutputSchema
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function toKnownErr(e: any) {
|
|
36
|
+
if (e instanceof XRPCError) {
|
|
37
|
+
}
|
|
38
|
+
return e
|
|
39
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { Headers, XRPCError } from '@atproto/xrpc'
|
|
5
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
6
|
+
import { isObj, hasProp } from '../../../../util'
|
|
7
|
+
import { lexicons } from '../../../../lexicons'
|
|
8
|
+
import { CID } from 'multiformats/cid'
|
|
9
|
+
|
|
10
|
+
export interface QueryParams {}
|
|
11
|
+
|
|
12
|
+
export type InputSchema = undefined
|
|
13
|
+
|
|
14
|
+
export interface OutputSchema {
|
|
15
|
+
appview?: ServiceConfig
|
|
16
|
+
pds?: ServiceConfig
|
|
17
|
+
blobDivert?: ServiceConfig
|
|
18
|
+
chat?: ServiceConfig
|
|
19
|
+
viewer?: ViewerConfig
|
|
20
|
+
[k: string]: unknown
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface CallOptions {
|
|
24
|
+
headers?: Headers
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface Response {
|
|
28
|
+
success: boolean
|
|
29
|
+
headers: Headers
|
|
30
|
+
data: OutputSchema
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function toKnownErr(e: any) {
|
|
34
|
+
if (e instanceof XRPCError) {
|
|
35
|
+
}
|
|
36
|
+
return e
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface ServiceConfig {
|
|
40
|
+
url?: string
|
|
41
|
+
[k: string]: unknown
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function isServiceConfig(v: unknown): v is ServiceConfig {
|
|
45
|
+
return (
|
|
46
|
+
isObj(v) &&
|
|
47
|
+
hasProp(v, '$type') &&
|
|
48
|
+
v.$type === 'tools.ozone.server.getConfig#serviceConfig'
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function validateServiceConfig(v: unknown): ValidationResult {
|
|
53
|
+
return lexicons.validate('tools.ozone.server.getConfig#serviceConfig', v)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface ViewerConfig {
|
|
57
|
+
role?:
|
|
58
|
+
| 'tools.ozone.team.defs#roleAdmin'
|
|
59
|
+
| 'tools.ozone.team.defs#roleModerator'
|
|
60
|
+
| 'tools.ozone.team.defs#roleTriage'
|
|
61
|
+
| (string & {})
|
|
62
|
+
[k: string]: unknown
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function isViewerConfig(v: unknown): v is ViewerConfig {
|
|
66
|
+
return (
|
|
67
|
+
isObj(v) &&
|
|
68
|
+
hasProp(v, '$type') &&
|
|
69
|
+
v.$type === 'tools.ozone.server.getConfig#viewerConfig'
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function validateViewerConfig(v: unknown): ValidationResult {
|
|
74
|
+
return lexicons.validate('tools.ozone.server.getConfig#viewerConfig', v)
|
|
75
|
+
}
|