@atproto/api 0.15.3 → 0.15.5
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 +24 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +59 -3
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +976 -80
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +485 -1
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/chat/bsky/actor/defs.d.ts +1 -1
- package/dist/client/types/chat/bsky/actor/defs.d.ts.map +1 -1
- package/dist/client/types/tools/ozone/hosting/getAccountHistory.d.ts +68 -0
- package/dist/client/types/tools/ozone/hosting/getAccountHistory.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/hosting/getAccountHistory.js +65 -0
- package/dist/client/types/tools/ozone/hosting/getAccountHistory.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 +1 -1
- package/src/client/index.ts +79 -0
- package/src/client/lexicons.ts +505 -1
- package/src/client/types/chat/bsky/actor/defs.ts +1 -1
- package/src/client/types/tools/ozone/hosting/getAccountHistory.ts +149 -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,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
package/src/client/index.ts
CHANGED
|
@@ -230,6 +230,7 @@ import * as ToolsOzoneCommunicationDefs from './types/tools/ozone/communication/
|
|
|
230
230
|
import * as ToolsOzoneCommunicationDeleteTemplate from './types/tools/ozone/communication/deleteTemplate.js'
|
|
231
231
|
import * as ToolsOzoneCommunicationListTemplates from './types/tools/ozone/communication/listTemplates.js'
|
|
232
232
|
import * as ToolsOzoneCommunicationUpdateTemplate from './types/tools/ozone/communication/updateTemplate.js'
|
|
233
|
+
import * as ToolsOzoneHostingGetAccountHistory from './types/tools/ozone/hosting/getAccountHistory.js'
|
|
233
234
|
import * as ToolsOzoneModerationDefs from './types/tools/ozone/moderation/defs.js'
|
|
234
235
|
import * as ToolsOzoneModerationEmitEvent from './types/tools/ozone/moderation/emitEvent.js'
|
|
235
236
|
import * as ToolsOzoneModerationGetEvent from './types/tools/ozone/moderation/getEvent.js'
|
|
@@ -263,6 +264,10 @@ import * as ToolsOzoneTeamDefs from './types/tools/ozone/team/defs.js'
|
|
|
263
264
|
import * as ToolsOzoneTeamDeleteMember from './types/tools/ozone/team/deleteMember.js'
|
|
264
265
|
import * as ToolsOzoneTeamListMembers from './types/tools/ozone/team/listMembers.js'
|
|
265
266
|
import * as ToolsOzoneTeamUpdateMember from './types/tools/ozone/team/updateMember.js'
|
|
267
|
+
import * as ToolsOzoneVerificationDefs from './types/tools/ozone/verification/defs.js'
|
|
268
|
+
import * as ToolsOzoneVerificationGrantVerifications from './types/tools/ozone/verification/grantVerifications.js'
|
|
269
|
+
import * as ToolsOzoneVerificationListVerifications from './types/tools/ozone/verification/listVerifications.js'
|
|
270
|
+
import * as ToolsOzoneVerificationRevokeVerifications from './types/tools/ozone/verification/revokeVerifications.js'
|
|
266
271
|
|
|
267
272
|
export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs.js'
|
|
268
273
|
export * as ComAtprotoAdminDeleteAccount from './types/com/atproto/admin/deleteAccount.js'
|
|
@@ -485,6 +490,7 @@ export * as ToolsOzoneCommunicationDefs from './types/tools/ozone/communication/
|
|
|
485
490
|
export * as ToolsOzoneCommunicationDeleteTemplate from './types/tools/ozone/communication/deleteTemplate.js'
|
|
486
491
|
export * as ToolsOzoneCommunicationListTemplates from './types/tools/ozone/communication/listTemplates.js'
|
|
487
492
|
export * as ToolsOzoneCommunicationUpdateTemplate from './types/tools/ozone/communication/updateTemplate.js'
|
|
493
|
+
export * as ToolsOzoneHostingGetAccountHistory from './types/tools/ozone/hosting/getAccountHistory.js'
|
|
488
494
|
export * as ToolsOzoneModerationDefs from './types/tools/ozone/moderation/defs.js'
|
|
489
495
|
export * as ToolsOzoneModerationEmitEvent from './types/tools/ozone/moderation/emitEvent.js'
|
|
490
496
|
export * as ToolsOzoneModerationGetEvent from './types/tools/ozone/moderation/getEvent.js'
|
|
@@ -518,6 +524,10 @@ export * as ToolsOzoneTeamDefs from './types/tools/ozone/team/defs.js'
|
|
|
518
524
|
export * as ToolsOzoneTeamDeleteMember from './types/tools/ozone/team/deleteMember.js'
|
|
519
525
|
export * as ToolsOzoneTeamListMembers from './types/tools/ozone/team/listMembers.js'
|
|
520
526
|
export * as ToolsOzoneTeamUpdateMember from './types/tools/ozone/team/updateMember.js'
|
|
527
|
+
export * as ToolsOzoneVerificationDefs from './types/tools/ozone/verification/defs.js'
|
|
528
|
+
export * as ToolsOzoneVerificationGrantVerifications from './types/tools/ozone/verification/grantVerifications.js'
|
|
529
|
+
export * as ToolsOzoneVerificationListVerifications from './types/tools/ozone/verification/listVerifications.js'
|
|
530
|
+
export * as ToolsOzoneVerificationRevokeVerifications from './types/tools/ozone/verification/revokeVerifications.js'
|
|
521
531
|
|
|
522
532
|
export const COM_ATPROTO_MODERATION = {
|
|
523
533
|
DefsReasonSpam: 'com.atproto.moderation.defs#reasonSpam',
|
|
@@ -559,6 +569,7 @@ export const TOOLS_OZONE_TEAM = {
|
|
|
559
569
|
DefsRoleAdmin: 'tools.ozone.team.defs#roleAdmin',
|
|
560
570
|
DefsRoleModerator: 'tools.ozone.team.defs#roleModerator',
|
|
561
571
|
DefsRoleTriage: 'tools.ozone.team.defs#roleTriage',
|
|
572
|
+
DefsRoleVerifier: 'tools.ozone.team.defs#roleVerifier',
|
|
562
573
|
}
|
|
563
574
|
|
|
564
575
|
export class AtpBaseClient extends XrpcClient {
|
|
@@ -3940,22 +3951,26 @@ export class ToolsNS {
|
|
|
3940
3951
|
export class ToolsOzoneNS {
|
|
3941
3952
|
_client: XrpcClient
|
|
3942
3953
|
communication: ToolsOzoneCommunicationNS
|
|
3954
|
+
hosting: ToolsOzoneHostingNS
|
|
3943
3955
|
moderation: ToolsOzoneModerationNS
|
|
3944
3956
|
server: ToolsOzoneServerNS
|
|
3945
3957
|
set: ToolsOzoneSetNS
|
|
3946
3958
|
setting: ToolsOzoneSettingNS
|
|
3947
3959
|
signature: ToolsOzoneSignatureNS
|
|
3948
3960
|
team: ToolsOzoneTeamNS
|
|
3961
|
+
verification: ToolsOzoneVerificationNS
|
|
3949
3962
|
|
|
3950
3963
|
constructor(client: XrpcClient) {
|
|
3951
3964
|
this._client = client
|
|
3952
3965
|
this.communication = new ToolsOzoneCommunicationNS(client)
|
|
3966
|
+
this.hosting = new ToolsOzoneHostingNS(client)
|
|
3953
3967
|
this.moderation = new ToolsOzoneModerationNS(client)
|
|
3954
3968
|
this.server = new ToolsOzoneServerNS(client)
|
|
3955
3969
|
this.set = new ToolsOzoneSetNS(client)
|
|
3956
3970
|
this.setting = new ToolsOzoneSettingNS(client)
|
|
3957
3971
|
this.signature = new ToolsOzoneSignatureNS(client)
|
|
3958
3972
|
this.team = new ToolsOzoneTeamNS(client)
|
|
3973
|
+
this.verification = new ToolsOzoneVerificationNS(client)
|
|
3959
3974
|
}
|
|
3960
3975
|
}
|
|
3961
3976
|
|
|
@@ -4013,6 +4028,26 @@ export class ToolsOzoneCommunicationNS {
|
|
|
4013
4028
|
}
|
|
4014
4029
|
}
|
|
4015
4030
|
|
|
4031
|
+
export class ToolsOzoneHostingNS {
|
|
4032
|
+
_client: XrpcClient
|
|
4033
|
+
|
|
4034
|
+
constructor(client: XrpcClient) {
|
|
4035
|
+
this._client = client
|
|
4036
|
+
}
|
|
4037
|
+
|
|
4038
|
+
getAccountHistory(
|
|
4039
|
+
params?: ToolsOzoneHostingGetAccountHistory.QueryParams,
|
|
4040
|
+
opts?: ToolsOzoneHostingGetAccountHistory.CallOptions,
|
|
4041
|
+
): Promise<ToolsOzoneHostingGetAccountHistory.Response> {
|
|
4042
|
+
return this._client.call(
|
|
4043
|
+
'tools.ozone.hosting.getAccountHistory',
|
|
4044
|
+
params,
|
|
4045
|
+
undefined,
|
|
4046
|
+
opts,
|
|
4047
|
+
)
|
|
4048
|
+
}
|
|
4049
|
+
}
|
|
4050
|
+
|
|
4016
4051
|
export class ToolsOzoneModerationNS {
|
|
4017
4052
|
_client: XrpcClient
|
|
4018
4053
|
|
|
@@ -4377,3 +4412,47 @@ export class ToolsOzoneTeamNS {
|
|
|
4377
4412
|
})
|
|
4378
4413
|
}
|
|
4379
4414
|
}
|
|
4415
|
+
|
|
4416
|
+
export class ToolsOzoneVerificationNS {
|
|
4417
|
+
_client: XrpcClient
|
|
4418
|
+
|
|
4419
|
+
constructor(client: XrpcClient) {
|
|
4420
|
+
this._client = client
|
|
4421
|
+
}
|
|
4422
|
+
|
|
4423
|
+
grantVerifications(
|
|
4424
|
+
data?: ToolsOzoneVerificationGrantVerifications.InputSchema,
|
|
4425
|
+
opts?: ToolsOzoneVerificationGrantVerifications.CallOptions,
|
|
4426
|
+
): Promise<ToolsOzoneVerificationGrantVerifications.Response> {
|
|
4427
|
+
return this._client.call(
|
|
4428
|
+
'tools.ozone.verification.grantVerifications',
|
|
4429
|
+
opts?.qp,
|
|
4430
|
+
data,
|
|
4431
|
+
opts,
|
|
4432
|
+
)
|
|
4433
|
+
}
|
|
4434
|
+
|
|
4435
|
+
listVerifications(
|
|
4436
|
+
params?: ToolsOzoneVerificationListVerifications.QueryParams,
|
|
4437
|
+
opts?: ToolsOzoneVerificationListVerifications.CallOptions,
|
|
4438
|
+
): Promise<ToolsOzoneVerificationListVerifications.Response> {
|
|
4439
|
+
return this._client.call(
|
|
4440
|
+
'tools.ozone.verification.listVerifications',
|
|
4441
|
+
params,
|
|
4442
|
+
undefined,
|
|
4443
|
+
opts,
|
|
4444
|
+
)
|
|
4445
|
+
}
|
|
4446
|
+
|
|
4447
|
+
revokeVerifications(
|
|
4448
|
+
data?: ToolsOzoneVerificationRevokeVerifications.InputSchema,
|
|
4449
|
+
opts?: ToolsOzoneVerificationRevokeVerifications.CallOptions,
|
|
4450
|
+
): Promise<ToolsOzoneVerificationRevokeVerifications.Response> {
|
|
4451
|
+
return this._client.call(
|
|
4452
|
+
'tools.ozone.verification.revokeVerifications',
|
|
4453
|
+
opts?.qp,
|
|
4454
|
+
data,
|
|
4455
|
+
opts,
|
|
4456
|
+
)
|
|
4457
|
+
}
|
|
4458
|
+
}
|