@atproto/api 0.15.4 → 0.15.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/client/index.d.ts +43 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +88 -5
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +918 -98
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +434 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.d.ts +21 -0
- package/dist/client/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/client/types/app/bsky/actor/defs.js +9 -0
- package/dist/client/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/client/types/app/bsky/actor/status.d.ts +23 -0
- package/dist/client/types/app/bsky/actor/status.d.ts.map +1 -0
- package/dist/client/types/app/bsky/actor/status.js +19 -0
- package/dist/client/types/app/bsky/actor/status.js.map +1 -0
- package/dist/client/types/tools/ozone/server/getConfig.d.ts +3 -1
- package/dist/client/types/tools/ozone/server/getConfig.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/server/getConfig.js.map +1 -1
- package/dist/client/types/tools/ozone/setting/defs.d.ts +1 -1
- package/dist/client/types/tools/ozone/setting/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/setting/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/setting/upsertOption.d.ts +1 -1
- package/dist/client/types/tools/ozone/setting/upsertOption.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/setting/upsertOption.js.map +1 -1
- package/dist/client/types/tools/ozone/team/addMember.d.ts +1 -1
- package/dist/client/types/tools/ozone/team/addMember.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/team/addMember.js.map +1 -1
- package/dist/client/types/tools/ozone/team/defs.d.ts +3 -1
- package/dist/client/types/tools/ozone/team/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/team/defs.js +3 -1
- package/dist/client/types/tools/ozone/team/defs.js.map +1 -1
- package/dist/client/types/tools/ozone/team/updateMember.d.ts +1 -1
- package/dist/client/types/tools/ozone/team/updateMember.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/team/updateMember.js.map +1 -1
- package/dist/client/types/tools/ozone/verification/defs.d.ts +43 -0
- package/dist/client/types/tools/ozone/verification/defs.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/verification/defs.js +16 -0
- package/dist/client/types/tools/ozone/verification/defs.js.map +1 -0
- package/dist/client/types/tools/ozone/verification/grantVerifications.d.ts +52 -0
- package/dist/client/types/tools/ozone/verification/grantVerifications.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/verification/grantVerifications.js +29 -0
- package/dist/client/types/tools/ozone/verification/grantVerifications.js.map +1 -0
- package/dist/client/types/tools/ozone/verification/listVerifications.d.ts +39 -0
- package/dist/client/types/tools/ozone/verification/listVerifications.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/verification/listVerifications.js +11 -0
- package/dist/client/types/tools/ozone/verification/listVerifications.js.map +1 -0
- package/dist/client/types/tools/ozone/verification/revokeVerifications.d.ts +42 -0
- package/dist/client/types/tools/ozone/verification/revokeVerifications.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/verification/revokeVerifications.js +20 -0
- package/dist/client/types/tools/ozone/verification/revokeVerifications.js.map +1 -0
- package/package.json +5 -5
- package/src/client/index.ts +128 -0
- package/src/client/lexicons.ts +457 -0
- package/src/client/types/app/bsky/actor/defs.ts +26 -0
- package/src/client/types/app/bsky/actor/status.ts +40 -0
- package/src/client/types/tools/ozone/server/getConfig.ts +3 -0
- package/src/client/types/tools/ozone/setting/defs.ts +1 -0
- package/src/client/types/tools/ozone/setting/upsertOption.ts +1 -0
- package/src/client/types/tools/ozone/team/addMember.ts +1 -0
- package/src/client/types/tools/ozone/team/defs.ts +3 -0
- package/src/client/types/tools/ozone/team/updateMember.ts +1 -0
- package/src/client/types/tools/ozone/verification/defs.ts +59 -0
- package/src/client/types/tools/ozone/verification/grantVerifications.ts +87 -0
- package/src/client/types/tools/ozone/verification/listVerifications.ts +58 -0
- package/src/client/types/tools/ozone/verification/revokeVerifications.ts +68 -0
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import type * as ToolsOzoneVerificationDefs from './defs.js';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
/** Pagination cursor */
|
|
8
|
+
cursor?: string;
|
|
9
|
+
/** Maximum number of results to return */
|
|
10
|
+
limit?: number;
|
|
11
|
+
/** Filter to verifications created after this timestamp */
|
|
12
|
+
createdAfter?: string;
|
|
13
|
+
/** Filter to verifications created before this timestamp */
|
|
14
|
+
createdBefore?: string;
|
|
15
|
+
/** Filter to verifications from specific issuers */
|
|
16
|
+
issuers?: string[];
|
|
17
|
+
/** Filter to specific verified DIDs */
|
|
18
|
+
subjects?: string[];
|
|
19
|
+
/** Sort direction for creation date */
|
|
20
|
+
sortDirection?: 'asc' | 'desc';
|
|
21
|
+
/** Filter to verifications that are revoked or not. By default, includes both. */
|
|
22
|
+
isRevoked?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export type InputSchema = undefined;
|
|
25
|
+
export interface OutputSchema {
|
|
26
|
+
cursor?: string;
|
|
27
|
+
verifications: ToolsOzoneVerificationDefs.VerificationView[];
|
|
28
|
+
}
|
|
29
|
+
export interface CallOptions {
|
|
30
|
+
signal?: AbortSignal;
|
|
31
|
+
headers?: HeadersMap;
|
|
32
|
+
}
|
|
33
|
+
export interface Response {
|
|
34
|
+
success: boolean;
|
|
35
|
+
headers: HeadersMap;
|
|
36
|
+
data: OutputSchema;
|
|
37
|
+
}
|
|
38
|
+
export declare function toKnownErr(e: any): any;
|
|
39
|
+
//# sourceMappingURL=listVerifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listVerifications.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/verification/listVerifications.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AASrD,OAAO,KAAK,KAAK,0BAA0B,MAAM,WAAW,CAAA;AAM5D,MAAM,WAAW,WAAW;IAC1B,wBAAwB;IACxB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,2DAA2D;IAC3D,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,oDAAoD;IACpD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,uCAAuC;IACvC,aAAa,CAAC,EAAE,KAAK,GAAG,MAAM,CAAA;IAC9B,kFAAkF;IAClF,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,0BAA0B,CAAC,gBAAgB,EAAE,CAAA;CAC7D;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,UAAU,CAAA;IACnB,IAAI,EAAE,YAAY,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,OAEhC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toKnownErr = toKnownErr;
|
|
4
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
5
|
+
const util_1 = require("../../../../util");
|
|
6
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
7
|
+
const id = 'tools.ozone.verification.listVerifications';
|
|
8
|
+
function toKnownErr(e) {
|
|
9
|
+
return e;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=listVerifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listVerifications.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/verification/listVerifications.ts"],"names":[],"mappings":";;AAuDA,gCAEC;AAnDD,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,4CAA4C,CAAA;AAuCvD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
}
|
|
8
|
+
export interface InputSchema {
|
|
9
|
+
/** Array of verification record uris to revoke */
|
|
10
|
+
uris: string[];
|
|
11
|
+
/** Reason for revoking the verification. This is optional and can be omitted if not needed. */
|
|
12
|
+
revokeReason?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface OutputSchema {
|
|
15
|
+
/** List of verification uris successfully revoked */
|
|
16
|
+
revokedVerifications: string[];
|
|
17
|
+
/** List of verification uris that couldn't be revoked, including failure reasons */
|
|
18
|
+
failedRevocations: RevokeError[];
|
|
19
|
+
}
|
|
20
|
+
export interface CallOptions {
|
|
21
|
+
signal?: AbortSignal;
|
|
22
|
+
headers?: HeadersMap;
|
|
23
|
+
qp?: QueryParams;
|
|
24
|
+
encoding?: 'application/json';
|
|
25
|
+
}
|
|
26
|
+
export interface Response {
|
|
27
|
+
success: boolean;
|
|
28
|
+
headers: HeadersMap;
|
|
29
|
+
data: OutputSchema;
|
|
30
|
+
}
|
|
31
|
+
export declare function toKnownErr(e: any): any;
|
|
32
|
+
/** Error object for failed revocations */
|
|
33
|
+
export interface RevokeError {
|
|
34
|
+
$type?: 'tools.ozone.verification.revokeVerifications#revokeError';
|
|
35
|
+
/** The AT-URI of the verification record that failed to revoke. */
|
|
36
|
+
uri: string;
|
|
37
|
+
/** Description of the error that occurred during revocation. */
|
|
38
|
+
error: string;
|
|
39
|
+
}
|
|
40
|
+
export declare function isRevokeError<V>(v: V): v is import("../../../../util").$TypedObject<V, "tools.ozone.verification.revokeVerifications", "revokeError">;
|
|
41
|
+
export declare function validateRevokeError<V>(v: V): ValidationResult<RevokeError & V>;
|
|
42
|
+
//# sourceMappingURL=revokeVerifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revokeVerifications.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/verification/revokeVerifications.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,WAAW;IAC1B,kDAAkD;IAClD,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,+FAA+F;IAC/F,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,qDAAqD;IACrD,oBAAoB,EAAE,MAAM,EAAE,CAAA;IAC9B,oFAAoF;IACpF,iBAAiB,EAAE,WAAW,EAAE,CAAA;CACjC;AAED,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB,EAAE,CAAC,EAAE,WAAW,CAAA;IAChB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;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,0CAA0C;AAC1C,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,0DAA0D,CAAA;IAClE,mEAAmE;IACnE,GAAG,EAAE,MAAM,CAAA;IACX,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAA;CACd;AAID,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,kHAEpC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qCAE1C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toKnownErr = toKnownErr;
|
|
4
|
+
exports.isRevokeError = isRevokeError;
|
|
5
|
+
exports.validateRevokeError = validateRevokeError;
|
|
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 = 'tools.ozone.verification.revokeVerifications';
|
|
10
|
+
function toKnownErr(e) {
|
|
11
|
+
return e;
|
|
12
|
+
}
|
|
13
|
+
const hashRevokeError = 'revokeError';
|
|
14
|
+
function isRevokeError(v) {
|
|
15
|
+
return is$typed(v, id, hashRevokeError);
|
|
16
|
+
}
|
|
17
|
+
function validateRevokeError(v) {
|
|
18
|
+
return validate(v, id, hashRevokeError);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=revokeVerifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revokeVerifications.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/verification/revokeVerifications.ts"],"names":[],"mappings":";;AA8CA,gCAEC;AAaD,sCAEC;AAED,kDAEC;AA7DD,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8CAA8C,CAAA;AA+BzD,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAWD,MAAM,eAAe,GAAG,aAAa,CAAA;AAErC,SAAgB,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AACzC,CAAC;AAED,SAAgB,mBAAmB,CAAI,CAAI;IACzC,OAAO,QAAQ,CAAkB,CAAC,EAAE,EAAE,EAAE,eAAe,CAAC,CAAA;AAC1D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/api",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Client library for atproto and Bluesky",
|
|
6
6
|
"keywords": [
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"multiformats": "^9.9.0",
|
|
22
22
|
"tlds": "^1.234.0",
|
|
23
23
|
"zod": "^3.23.8",
|
|
24
|
-
"@atproto/common-web": "^0.4.
|
|
25
|
-
"@atproto/lexicon": "^0.4.
|
|
24
|
+
"@atproto/common-web": "^0.4.2",
|
|
25
|
+
"@atproto/lexicon": "^0.4.11",
|
|
26
26
|
"@atproto/syntax": "^0.4.0",
|
|
27
|
-
"@atproto/xrpc": "^0.
|
|
27
|
+
"@atproto/xrpc": "^0.7.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"jest": "^28.1.2",
|
|
31
31
|
"prettier": "^3.2.5",
|
|
32
32
|
"typescript": "^5.6.3",
|
|
33
|
-
"@atproto/lex-cli": "^0.8.
|
|
33
|
+
"@atproto/lex-cli": "^0.8.1"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"codegen": "node ./scripts/generate-code.mjs && lex gen-api --yes ./src/client ../../lexicons/com/atproto/*/* ../../lexicons/app/bsky/*/* ../../lexicons/chat/bsky/*/* ../../lexicons/tools/ozone/*/*",
|
package/src/client/index.ts
CHANGED
|
@@ -109,6 +109,7 @@ import * as AppBskyActorProfile from './types/app/bsky/actor/profile.js'
|
|
|
109
109
|
import * as AppBskyActorPutPreferences from './types/app/bsky/actor/putPreferences.js'
|
|
110
110
|
import * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors.js'
|
|
111
111
|
import * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searchActorsTypeahead.js'
|
|
112
|
+
import * as AppBskyActorStatus from './types/app/bsky/actor/status.js'
|
|
112
113
|
import * as AppBskyEmbedDefs from './types/app/bsky/embed/defs.js'
|
|
113
114
|
import * as AppBskyEmbedExternal from './types/app/bsky/embed/external.js'
|
|
114
115
|
import * as AppBskyEmbedImages from './types/app/bsky/embed/images.js'
|
|
@@ -264,6 +265,10 @@ import * as ToolsOzoneTeamDefs from './types/tools/ozone/team/defs.js'
|
|
|
264
265
|
import * as ToolsOzoneTeamDeleteMember from './types/tools/ozone/team/deleteMember.js'
|
|
265
266
|
import * as ToolsOzoneTeamListMembers from './types/tools/ozone/team/listMembers.js'
|
|
266
267
|
import * as ToolsOzoneTeamUpdateMember from './types/tools/ozone/team/updateMember.js'
|
|
268
|
+
import * as ToolsOzoneVerificationDefs from './types/tools/ozone/verification/defs.js'
|
|
269
|
+
import * as ToolsOzoneVerificationGrantVerifications from './types/tools/ozone/verification/grantVerifications.js'
|
|
270
|
+
import * as ToolsOzoneVerificationListVerifications from './types/tools/ozone/verification/listVerifications.js'
|
|
271
|
+
import * as ToolsOzoneVerificationRevokeVerifications from './types/tools/ozone/verification/revokeVerifications.js'
|
|
267
272
|
|
|
268
273
|
export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs.js'
|
|
269
274
|
export * as ComAtprotoAdminDeleteAccount from './types/com/atproto/admin/deleteAccount.js'
|
|
@@ -365,6 +370,7 @@ export * as AppBskyActorProfile from './types/app/bsky/actor/profile.js'
|
|
|
365
370
|
export * as AppBskyActorPutPreferences from './types/app/bsky/actor/putPreferences.js'
|
|
366
371
|
export * as AppBskyActorSearchActors from './types/app/bsky/actor/searchActors.js'
|
|
367
372
|
export * as AppBskyActorSearchActorsTypeahead from './types/app/bsky/actor/searchActorsTypeahead.js'
|
|
373
|
+
export * as AppBskyActorStatus from './types/app/bsky/actor/status.js'
|
|
368
374
|
export * as AppBskyEmbedDefs from './types/app/bsky/embed/defs.js'
|
|
369
375
|
export * as AppBskyEmbedExternal from './types/app/bsky/embed/external.js'
|
|
370
376
|
export * as AppBskyEmbedImages from './types/app/bsky/embed/images.js'
|
|
@@ -520,6 +526,10 @@ export * as ToolsOzoneTeamDefs from './types/tools/ozone/team/defs.js'
|
|
|
520
526
|
export * as ToolsOzoneTeamDeleteMember from './types/tools/ozone/team/deleteMember.js'
|
|
521
527
|
export * as ToolsOzoneTeamListMembers from './types/tools/ozone/team/listMembers.js'
|
|
522
528
|
export * as ToolsOzoneTeamUpdateMember from './types/tools/ozone/team/updateMember.js'
|
|
529
|
+
export * as ToolsOzoneVerificationDefs from './types/tools/ozone/verification/defs.js'
|
|
530
|
+
export * as ToolsOzoneVerificationGrantVerifications from './types/tools/ozone/verification/grantVerifications.js'
|
|
531
|
+
export * as ToolsOzoneVerificationListVerifications from './types/tools/ozone/verification/listVerifications.js'
|
|
532
|
+
export * as ToolsOzoneVerificationRevokeVerifications from './types/tools/ozone/verification/revokeVerifications.js'
|
|
523
533
|
|
|
524
534
|
export const COM_ATPROTO_MODERATION = {
|
|
525
535
|
DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam',
|
|
@@ -530,6 +540,9 @@ export const COM_ATPROTO_MODERATION = {
|
|
|
530
540
|
DefsReasonOther: 'com.atproto.moderation.defs#reasonOther',
|
|
531
541
|
DefsReasonAppeal: 'com.atproto.moderation.defs#reasonAppeal',
|
|
532
542
|
}
|
|
543
|
+
export const APP_BSKY_ACTOR = {
|
|
544
|
+
StatusLive: 'app.bsky.actor.status#live',
|
|
545
|
+
}
|
|
533
546
|
export const APP_BSKY_FEED = {
|
|
534
547
|
DefsRequestLess: 'app.bsky.feed.defs#requestLess',
|
|
535
548
|
DefsRequestMore: 'app.bsky.feed.defs#requestMore',
|
|
@@ -561,6 +574,7 @@ export const TOOLS_OZONE_TEAM = {
|
|
|
561
574
|
DefsRoleAdmin: 'tools.ozone.team.defs#roleAdmin',
|
|
562
575
|
DefsRoleModerator: 'tools.ozone.team.defs#roleModerator',
|
|
563
576
|
DefsRoleTriage: 'tools.ozone.team.defs#roleTriage',
|
|
577
|
+
DefsRoleVerifier: 'tools.ozone.team.defs#roleVerifier',
|
|
564
578
|
}
|
|
565
579
|
|
|
566
580
|
export class AtpBaseClient extends XrpcClient {
|
|
@@ -1727,10 +1741,12 @@ export class AppBskyNS {
|
|
|
1727
1741
|
export class AppBskyActorNS {
|
|
1728
1742
|
_client: XrpcClient
|
|
1729
1743
|
profile: AppBskyActorProfileRecord
|
|
1744
|
+
status: AppBskyActorStatusRecord
|
|
1730
1745
|
|
|
1731
1746
|
constructor(client: XrpcClient) {
|
|
1732
1747
|
this._client = client
|
|
1733
1748
|
this.profile = new AppBskyActorProfileRecord(client)
|
|
1749
|
+
this.status = new AppBskyActorStatusRecord(client)
|
|
1734
1750
|
}
|
|
1735
1751
|
|
|
1736
1752
|
getPreferences(
|
|
@@ -1884,6 +1900,72 @@ export class AppBskyActorProfileRecord {
|
|
|
1884
1900
|
}
|
|
1885
1901
|
}
|
|
1886
1902
|
|
|
1903
|
+
export class AppBskyActorStatusRecord {
|
|
1904
|
+
_client: XrpcClient
|
|
1905
|
+
|
|
1906
|
+
constructor(client: XrpcClient) {
|
|
1907
|
+
this._client = client
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
async list(
|
|
1911
|
+
params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
|
|
1912
|
+
): Promise<{
|
|
1913
|
+
cursor?: string
|
|
1914
|
+
records: { uri: string; value: AppBskyActorStatus.Record }[]
|
|
1915
|
+
}> {
|
|
1916
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1917
|
+
collection: 'app.bsky.actor.status',
|
|
1918
|
+
...params,
|
|
1919
|
+
})
|
|
1920
|
+
return res.data
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
async get(
|
|
1924
|
+
params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
|
|
1925
|
+
): Promise<{ uri: string; cid: string; value: AppBskyActorStatus.Record }> {
|
|
1926
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1927
|
+
collection: 'app.bsky.actor.status',
|
|
1928
|
+
...params,
|
|
1929
|
+
})
|
|
1930
|
+
return res.data
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
async create(
|
|
1934
|
+
params: OmitKey<
|
|
1935
|
+
ComAtprotoRepoCreateRecord.InputSchema,
|
|
1936
|
+
'collection' | 'record'
|
|
1937
|
+
>,
|
|
1938
|
+
record: Un$Typed<AppBskyActorStatus.Record>,
|
|
1939
|
+
headers?: Record<string, string>,
|
|
1940
|
+
): Promise<{ uri: string; cid: string }> {
|
|
1941
|
+
const collection = 'app.bsky.actor.status'
|
|
1942
|
+
const res = await this._client.call(
|
|
1943
|
+
'com.atproto.repo.createRecord',
|
|
1944
|
+
undefined,
|
|
1945
|
+
{
|
|
1946
|
+
collection,
|
|
1947
|
+
rkey: 'self',
|
|
1948
|
+
...params,
|
|
1949
|
+
record: { ...record, $type: collection },
|
|
1950
|
+
},
|
|
1951
|
+
{ encoding: 'application/json', headers },
|
|
1952
|
+
)
|
|
1953
|
+
return res.data
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
async delete(
|
|
1957
|
+
params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
|
|
1958
|
+
headers?: Record<string, string>,
|
|
1959
|
+
): Promise<void> {
|
|
1960
|
+
await this._client.call(
|
|
1961
|
+
'com.atproto.repo.deleteRecord',
|
|
1962
|
+
undefined,
|
|
1963
|
+
{ collection: 'app.bsky.actor.status', ...params },
|
|
1964
|
+
{ headers },
|
|
1965
|
+
)
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1887
1969
|
export class AppBskyEmbedNS {
|
|
1888
1970
|
_client: XrpcClient
|
|
1889
1971
|
|
|
@@ -3949,6 +4031,7 @@ export class ToolsOzoneNS {
|
|
|
3949
4031
|
setting: ToolsOzoneSettingNS
|
|
3950
4032
|
signature: ToolsOzoneSignatureNS
|
|
3951
4033
|
team: ToolsOzoneTeamNS
|
|
4034
|
+
verification: ToolsOzoneVerificationNS
|
|
3952
4035
|
|
|
3953
4036
|
constructor(client: XrpcClient) {
|
|
3954
4037
|
this._client = client
|
|
@@ -3960,6 +4043,7 @@ export class ToolsOzoneNS {
|
|
|
3960
4043
|
this.setting = new ToolsOzoneSettingNS(client)
|
|
3961
4044
|
this.signature = new ToolsOzoneSignatureNS(client)
|
|
3962
4045
|
this.team = new ToolsOzoneTeamNS(client)
|
|
4046
|
+
this.verification = new ToolsOzoneVerificationNS(client)
|
|
3963
4047
|
}
|
|
3964
4048
|
}
|
|
3965
4049
|
|
|
@@ -4401,3 +4485,47 @@ export class ToolsOzoneTeamNS {
|
|
|
4401
4485
|
})
|
|
4402
4486
|
}
|
|
4403
4487
|
}
|
|
4488
|
+
|
|
4489
|
+
export class ToolsOzoneVerificationNS {
|
|
4490
|
+
_client: XrpcClient
|
|
4491
|
+
|
|
4492
|
+
constructor(client: XrpcClient) {
|
|
4493
|
+
this._client = client
|
|
4494
|
+
}
|
|
4495
|
+
|
|
4496
|
+
grantVerifications(
|
|
4497
|
+
data?: ToolsOzoneVerificationGrantVerifications.InputSchema,
|
|
4498
|
+
opts?: ToolsOzoneVerificationGrantVerifications.CallOptions,
|
|
4499
|
+
): Promise<ToolsOzoneVerificationGrantVerifications.Response> {
|
|
4500
|
+
return this._client.call(
|
|
4501
|
+
'tools.ozone.verification.grantVerifications',
|
|
4502
|
+
opts?.qp,
|
|
4503
|
+
data,
|
|
4504
|
+
opts,
|
|
4505
|
+
)
|
|
4506
|
+
}
|
|
4507
|
+
|
|
4508
|
+
listVerifications(
|
|
4509
|
+
params?: ToolsOzoneVerificationListVerifications.QueryParams,
|
|
4510
|
+
opts?: ToolsOzoneVerificationListVerifications.CallOptions,
|
|
4511
|
+
): Promise<ToolsOzoneVerificationListVerifications.Response> {
|
|
4512
|
+
return this._client.call(
|
|
4513
|
+
'tools.ozone.verification.listVerifications',
|
|
4514
|
+
params,
|
|
4515
|
+
undefined,
|
|
4516
|
+
opts,
|
|
4517
|
+
)
|
|
4518
|
+
}
|
|
4519
|
+
|
|
4520
|
+
revokeVerifications(
|
|
4521
|
+
data?: ToolsOzoneVerificationRevokeVerifications.InputSchema,
|
|
4522
|
+
opts?: ToolsOzoneVerificationRevokeVerifications.CallOptions,
|
|
4523
|
+
): Promise<ToolsOzoneVerificationRevokeVerifications.Response> {
|
|
4524
|
+
return this._client.call(
|
|
4525
|
+
'tools.ozone.verification.revokeVerifications',
|
|
4526
|
+
opts?.qp,
|
|
4527
|
+
data,
|
|
4528
|
+
opts,
|
|
4529
|
+
)
|
|
4530
|
+
}
|
|
4531
|
+
}
|