@atproto/api 0.13.9 → 0.13.10
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 +6 -0
- package/dist/client/index.d.ts +15 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +34 -2
- package/dist/client/index.js.map +1 -1
- package/dist/client/lexicons.d.ts +176 -0
- package/dist/client/lexicons.d.ts.map +1 -1
- package/dist/client/lexicons.js +176 -0
- package/dist/client/lexicons.js.map +1 -1
- package/dist/client/types/tools/ozone/signature/defs.d.ts +12 -0
- package/dist/client/types/tools/ozone/signature/defs.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/signature/defs.js +16 -0
- package/dist/client/types/tools/ozone/signature/defs.js.map +1 -0
- package/dist/client/types/tools/ozone/signature/findCorrelation.d.ts +24 -0
- package/dist/client/types/tools/ozone/signature/findCorrelation.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/signature/findCorrelation.js +8 -0
- package/dist/client/types/tools/ozone/signature/findCorrelation.js.map +1 -0
- package/dist/client/types/tools/ozone/signature/findRelatedAccounts.d.ts +36 -0
- package/dist/client/types/tools/ozone/signature/findRelatedAccounts.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/signature/findRelatedAccounts.js +20 -0
- package/dist/client/types/tools/ozone/signature/findRelatedAccounts.js.map +1 -0
- package/dist/client/types/tools/ozone/signature/searchAccounts.d.ts +27 -0
- package/dist/client/types/tools/ozone/signature/searchAccounts.d.ts.map +1 -0
- package/dist/client/types/tools/ozone/signature/searchAccounts.js +8 -0
- package/dist/client/types/tools/ozone/signature/searchAccounts.js.map +1 -0
- package/package.json +1 -1
- package/src/client/index.ts +54 -0
- package/src/client/lexicons.ts +180 -0
- package/src/client/types/tools/ozone/signature/defs.ts +25 -0
- package/src/client/types/tools/ozone/signature/findCorrelation.ts +35 -0
- package/src/client/types/tools/ozone/signature/findRelatedAccounts.ts +60 -0
- package/src/client/types/tools/ozone/signature/searchAccounts.ts +38 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
export interface SigDetail {
|
|
6
|
+
property: string;
|
|
7
|
+
value: string;
|
|
8
|
+
[k: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export declare function isSigDetail(v: unknown): v is SigDetail;
|
|
11
|
+
export declare function validateSigDetail(v: unknown): ValidationResult;
|
|
12
|
+
//# sourceMappingURL=defs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/signature/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAK5D,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,SAAS,CAMtD;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAE9D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateSigDetail = exports.isSigDetail = void 0;
|
|
4
|
+
const util_1 = require("../../../../util");
|
|
5
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
6
|
+
function isSigDetail(v) {
|
|
7
|
+
return ((0, util_1.isObj)(v) &&
|
|
8
|
+
(0, util_1.hasProp)(v, '$type') &&
|
|
9
|
+
v.$type === 'tools.ozone.signature.defs#sigDetail');
|
|
10
|
+
}
|
|
11
|
+
exports.isSigDetail = isSigDetail;
|
|
12
|
+
function validateSigDetail(v) {
|
|
13
|
+
return lexicons_1.lexicons.validate('tools.ozone.signature.defs#sigDetail', v);
|
|
14
|
+
}
|
|
15
|
+
exports.validateSigDetail = validateSigDetail;
|
|
16
|
+
//# sourceMappingURL=defs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/signature/defs.ts"],"names":[],"mappings":";;;AAIA,2CAAiD;AACjD,mDAA+C;AAS/C,SAAgB,WAAW,CAAC,CAAU;IACpC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,sCAAsC,CACnD,CAAA;AACH,CAAC;AAND,kCAMC;AAED,SAAgB,iBAAiB,CAAC,CAAU;IAC1C,OAAO,mBAAQ,CAAC,QAAQ,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAA;AACrE,CAAC;AAFD,8CAEC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import * as ToolsOzoneSignatureDefs from './defs';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
dids: string[];
|
|
8
|
+
}
|
|
9
|
+
export type InputSchema = undefined;
|
|
10
|
+
export interface OutputSchema {
|
|
11
|
+
details: ToolsOzoneSignatureDefs.SigDetail[];
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
export interface CallOptions {
|
|
15
|
+
signal?: AbortSignal;
|
|
16
|
+
headers?: HeadersMap;
|
|
17
|
+
}
|
|
18
|
+
export interface Response {
|
|
19
|
+
success: boolean;
|
|
20
|
+
headers: HeadersMap;
|
|
21
|
+
data: OutputSchema;
|
|
22
|
+
}
|
|
23
|
+
export declare function toKnownErr(e: any): any;
|
|
24
|
+
//# sourceMappingURL=findCorrelation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findCorrelation.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/signature/findCorrelation.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAKrD,OAAO,KAAK,uBAAuB,MAAM,QAAQ,CAAA;AAEjD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,EAAE,CAAA;CACf;AAED,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,uBAAuB,CAAC,SAAS,EAAE,CAAA;IAC5C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;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 @@
|
|
|
1
|
+
{"version":3,"file":"findCorrelation.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/signature/findCorrelation.ts"],"names":[],"mappings":";;;AAgCA,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAFD,gCAEC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import { ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
import * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs';
|
|
7
|
+
import * as ToolsOzoneSignatureDefs from './defs';
|
|
8
|
+
export interface QueryParams {
|
|
9
|
+
did: string;
|
|
10
|
+
cursor?: string;
|
|
11
|
+
limit?: number;
|
|
12
|
+
}
|
|
13
|
+
export type InputSchema = undefined;
|
|
14
|
+
export interface OutputSchema {
|
|
15
|
+
cursor?: string;
|
|
16
|
+
accounts: RelatedAccount[];
|
|
17
|
+
[k: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export interface CallOptions {
|
|
20
|
+
signal?: AbortSignal;
|
|
21
|
+
headers?: HeadersMap;
|
|
22
|
+
}
|
|
23
|
+
export interface Response {
|
|
24
|
+
success: boolean;
|
|
25
|
+
headers: HeadersMap;
|
|
26
|
+
data: OutputSchema;
|
|
27
|
+
}
|
|
28
|
+
export declare function toKnownErr(e: any): any;
|
|
29
|
+
export interface RelatedAccount {
|
|
30
|
+
account: ComAtprotoAdminDefs.AccountView;
|
|
31
|
+
similarities?: ToolsOzoneSignatureDefs.SigDetail[];
|
|
32
|
+
[k: string]: unknown;
|
|
33
|
+
}
|
|
34
|
+
export declare function isRelatedAccount(v: unknown): v is RelatedAccount;
|
|
35
|
+
export declare function validateRelatedAccount(v: unknown): ValidationResult;
|
|
36
|
+
//# sourceMappingURL=findRelatedAccounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findRelatedAccounts.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/signature/findRelatedAccounts.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAI5D,OAAO,KAAK,mBAAmB,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,uBAAuB,MAAM,QAAQ,CAAA;AAEjD,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAA;IACX,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,cAAc,EAAE,CAAA;IAC1B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;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;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,mBAAmB,CAAC,WAAW,CAAA;IACxC,YAAY,CAAC,EAAE,uBAAuB,CAAC,SAAS,EAAE,CAAA;IAClD,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,cAAc,CAMhE;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAKnE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateRelatedAccount = exports.isRelatedAccount = exports.toKnownErr = void 0;
|
|
4
|
+
const util_1 = require("../../../../util");
|
|
5
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
6
|
+
function toKnownErr(e) {
|
|
7
|
+
return e;
|
|
8
|
+
}
|
|
9
|
+
exports.toKnownErr = toKnownErr;
|
|
10
|
+
function isRelatedAccount(v) {
|
|
11
|
+
return ((0, util_1.isObj)(v) &&
|
|
12
|
+
(0, util_1.hasProp)(v, '$type') &&
|
|
13
|
+
v.$type === 'tools.ozone.signature.findRelatedAccounts#relatedAccount');
|
|
14
|
+
}
|
|
15
|
+
exports.isRelatedAccount = isRelatedAccount;
|
|
16
|
+
function validateRelatedAccount(v) {
|
|
17
|
+
return lexicons_1.lexicons.validate('tools.ozone.signature.findRelatedAccounts#relatedAccount', v);
|
|
18
|
+
}
|
|
19
|
+
exports.validateRelatedAccount = validateRelatedAccount;
|
|
20
|
+
//# sourceMappingURL=findRelatedAccounts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"findRelatedAccounts.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/signature/findRelatedAccounts.ts"],"names":[],"mappings":";;;AAKA,2CAAiD;AACjD,mDAA+C;AA8B/C,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAFD,gCAEC;AAQD,SAAgB,gBAAgB,CAAC,CAAU;IACzC,OAAO,CACL,IAAA,YAAK,EAAC,CAAC,CAAC;QACR,IAAA,cAAO,EAAC,CAAC,EAAE,OAAO,CAAC;QACnB,CAAC,CAAC,KAAK,KAAK,0DAA0D,CACvE,CAAA;AACH,CAAC;AAND,4CAMC;AAED,SAAgB,sBAAsB,CAAC,CAAU;IAC/C,OAAO,mBAAQ,CAAC,QAAQ,CACtB,0DAA0D,EAC1D,CAAC,CACF,CAAA;AACH,CAAC;AALD,wDAKC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap } from '@atproto/xrpc';
|
|
5
|
+
import * as ComAtprotoAdminDefs from '../../../com/atproto/admin/defs';
|
|
6
|
+
export interface QueryParams {
|
|
7
|
+
values: 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
|
+
signal?: AbortSignal;
|
|
19
|
+
headers?: HeadersMap;
|
|
20
|
+
}
|
|
21
|
+
export interface Response {
|
|
22
|
+
success: boolean;
|
|
23
|
+
headers: HeadersMap;
|
|
24
|
+
data: OutputSchema;
|
|
25
|
+
}
|
|
26
|
+
export declare function toKnownErr(e: any): any;
|
|
27
|
+
//# sourceMappingURL=searchAccounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchAccounts.d.ts","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/signature/searchAccounts.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAA;AAKrD,OAAO,KAAK,mBAAmB,MAAM,iCAAiC,CAAA;AAEtE,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,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,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 @@
|
|
|
1
|
+
{"version":3,"file":"searchAccounts.js","sourceRoot":"","sources":["../../../../../../src/client/types/tools/ozone/signature/searchAccounts.ts"],"names":[],"mappings":";;;AAmCA,SAAgB,UAAU,CAAC,CAAM;IAC/B,OAAO,CAAC,CAAA;AACV,CAAC;AAFD,gCAEC"}
|
package/package.json
CHANGED
package/src/client/index.ts
CHANGED
|
@@ -206,6 +206,10 @@ import * as ToolsOzoneModerationQueryEvents from './types/tools/ozone/moderation
|
|
|
206
206
|
import * as ToolsOzoneModerationQueryStatuses from './types/tools/ozone/moderation/queryStatuses'
|
|
207
207
|
import * as ToolsOzoneModerationSearchRepos from './types/tools/ozone/moderation/searchRepos'
|
|
208
208
|
import * as ToolsOzoneServerGetConfig from './types/tools/ozone/server/getConfig'
|
|
209
|
+
import * as ToolsOzoneSignatureDefs from './types/tools/ozone/signature/defs'
|
|
210
|
+
import * as ToolsOzoneSignatureFindCorrelation from './types/tools/ozone/signature/findCorrelation'
|
|
211
|
+
import * as ToolsOzoneSignatureFindRelatedAccounts from './types/tools/ozone/signature/findRelatedAccounts'
|
|
212
|
+
import * as ToolsOzoneSignatureSearchAccounts from './types/tools/ozone/signature/searchAccounts'
|
|
209
213
|
import * as ToolsOzoneTeamAddMember from './types/tools/ozone/team/addMember'
|
|
210
214
|
import * as ToolsOzoneTeamDefs from './types/tools/ozone/team/defs'
|
|
211
215
|
import * as ToolsOzoneTeamDeleteMember from './types/tools/ozone/team/deleteMember'
|
|
@@ -414,6 +418,10 @@ export * as ToolsOzoneModerationQueryEvents from './types/tools/ozone/moderation
|
|
|
414
418
|
export * as ToolsOzoneModerationQueryStatuses from './types/tools/ozone/moderation/queryStatuses'
|
|
415
419
|
export * as ToolsOzoneModerationSearchRepos from './types/tools/ozone/moderation/searchRepos'
|
|
416
420
|
export * as ToolsOzoneServerGetConfig from './types/tools/ozone/server/getConfig'
|
|
421
|
+
export * as ToolsOzoneSignatureDefs from './types/tools/ozone/signature/defs'
|
|
422
|
+
export * as ToolsOzoneSignatureFindCorrelation from './types/tools/ozone/signature/findCorrelation'
|
|
423
|
+
export * as ToolsOzoneSignatureFindRelatedAccounts from './types/tools/ozone/signature/findRelatedAccounts'
|
|
424
|
+
export * as ToolsOzoneSignatureSearchAccounts from './types/tools/ozone/signature/searchAccounts'
|
|
417
425
|
export * as ToolsOzoneTeamAddMember from './types/tools/ozone/team/addMember'
|
|
418
426
|
export * as ToolsOzoneTeamDefs from './types/tools/ozone/team/defs'
|
|
419
427
|
export * as ToolsOzoneTeamDeleteMember from './types/tools/ozone/team/deleteMember'
|
|
@@ -3396,6 +3404,7 @@ export class ToolsOzoneNS {
|
|
|
3396
3404
|
communication: ToolsOzoneCommunicationNS
|
|
3397
3405
|
moderation: ToolsOzoneModerationNS
|
|
3398
3406
|
server: ToolsOzoneServerNS
|
|
3407
|
+
signature: ToolsOzoneSignatureNS
|
|
3399
3408
|
team: ToolsOzoneTeamNS
|
|
3400
3409
|
|
|
3401
3410
|
constructor(client: XrpcClient) {
|
|
@@ -3403,6 +3412,7 @@ export class ToolsOzoneNS {
|
|
|
3403
3412
|
this.communication = new ToolsOzoneCommunicationNS(client)
|
|
3404
3413
|
this.moderation = new ToolsOzoneModerationNS(client)
|
|
3405
3414
|
this.server = new ToolsOzoneServerNS(client)
|
|
3415
|
+
this.signature = new ToolsOzoneSignatureNS(client)
|
|
3406
3416
|
this.team = new ToolsOzoneTeamNS(client)
|
|
3407
3417
|
}
|
|
3408
3418
|
}
|
|
@@ -3594,6 +3604,50 @@ export class ToolsOzoneServerNS {
|
|
|
3594
3604
|
}
|
|
3595
3605
|
}
|
|
3596
3606
|
|
|
3607
|
+
export class ToolsOzoneSignatureNS {
|
|
3608
|
+
_client: XrpcClient
|
|
3609
|
+
|
|
3610
|
+
constructor(client: XrpcClient) {
|
|
3611
|
+
this._client = client
|
|
3612
|
+
}
|
|
3613
|
+
|
|
3614
|
+
findCorrelation(
|
|
3615
|
+
params?: ToolsOzoneSignatureFindCorrelation.QueryParams,
|
|
3616
|
+
opts?: ToolsOzoneSignatureFindCorrelation.CallOptions,
|
|
3617
|
+
): Promise<ToolsOzoneSignatureFindCorrelation.Response> {
|
|
3618
|
+
return this._client.call(
|
|
3619
|
+
'tools.ozone.signature.findCorrelation',
|
|
3620
|
+
params,
|
|
3621
|
+
undefined,
|
|
3622
|
+
opts,
|
|
3623
|
+
)
|
|
3624
|
+
}
|
|
3625
|
+
|
|
3626
|
+
findRelatedAccounts(
|
|
3627
|
+
params?: ToolsOzoneSignatureFindRelatedAccounts.QueryParams,
|
|
3628
|
+
opts?: ToolsOzoneSignatureFindRelatedAccounts.CallOptions,
|
|
3629
|
+
): Promise<ToolsOzoneSignatureFindRelatedAccounts.Response> {
|
|
3630
|
+
return this._client.call(
|
|
3631
|
+
'tools.ozone.signature.findRelatedAccounts',
|
|
3632
|
+
params,
|
|
3633
|
+
undefined,
|
|
3634
|
+
opts,
|
|
3635
|
+
)
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3638
|
+
searchAccounts(
|
|
3639
|
+
params?: ToolsOzoneSignatureSearchAccounts.QueryParams,
|
|
3640
|
+
opts?: ToolsOzoneSignatureSearchAccounts.CallOptions,
|
|
3641
|
+
): Promise<ToolsOzoneSignatureSearchAccounts.Response> {
|
|
3642
|
+
return this._client.call(
|
|
3643
|
+
'tools.ozone.signature.searchAccounts',
|
|
3644
|
+
params,
|
|
3645
|
+
undefined,
|
|
3646
|
+
opts,
|
|
3647
|
+
)
|
|
3648
|
+
}
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3597
3651
|
export class ToolsOzoneTeamNS {
|
|
3598
3652
|
_client: XrpcClient
|
|
3599
3653
|
|
package/src/client/lexicons.ts
CHANGED
|
@@ -12139,6 +12139,181 @@ export const schemaDict = {
|
|
|
12139
12139
|
},
|
|
12140
12140
|
},
|
|
12141
12141
|
},
|
|
12142
|
+
ToolsOzoneSignatureDefs: {
|
|
12143
|
+
lexicon: 1,
|
|
12144
|
+
id: 'tools.ozone.signature.defs',
|
|
12145
|
+
defs: {
|
|
12146
|
+
sigDetail: {
|
|
12147
|
+
type: 'object',
|
|
12148
|
+
required: ['property', 'value'],
|
|
12149
|
+
properties: {
|
|
12150
|
+
property: {
|
|
12151
|
+
type: 'string',
|
|
12152
|
+
},
|
|
12153
|
+
value: {
|
|
12154
|
+
type: 'string',
|
|
12155
|
+
},
|
|
12156
|
+
},
|
|
12157
|
+
},
|
|
12158
|
+
},
|
|
12159
|
+
},
|
|
12160
|
+
ToolsOzoneSignatureFindCorrelation: {
|
|
12161
|
+
lexicon: 1,
|
|
12162
|
+
id: 'tools.ozone.signature.findCorrelation',
|
|
12163
|
+
defs: {
|
|
12164
|
+
main: {
|
|
12165
|
+
type: 'query',
|
|
12166
|
+
description:
|
|
12167
|
+
'Find all correlated threat signatures between 2 or more accounts.',
|
|
12168
|
+
parameters: {
|
|
12169
|
+
type: 'params',
|
|
12170
|
+
required: ['dids'],
|
|
12171
|
+
properties: {
|
|
12172
|
+
dids: {
|
|
12173
|
+
type: 'array',
|
|
12174
|
+
items: {
|
|
12175
|
+
type: 'string',
|
|
12176
|
+
format: 'did',
|
|
12177
|
+
},
|
|
12178
|
+
},
|
|
12179
|
+
},
|
|
12180
|
+
},
|
|
12181
|
+
output: {
|
|
12182
|
+
encoding: 'application/json',
|
|
12183
|
+
schema: {
|
|
12184
|
+
type: 'object',
|
|
12185
|
+
required: ['details'],
|
|
12186
|
+
properties: {
|
|
12187
|
+
details: {
|
|
12188
|
+
type: 'array',
|
|
12189
|
+
items: {
|
|
12190
|
+
type: 'ref',
|
|
12191
|
+
ref: 'lex:tools.ozone.signature.defs#sigDetail',
|
|
12192
|
+
},
|
|
12193
|
+
},
|
|
12194
|
+
},
|
|
12195
|
+
},
|
|
12196
|
+
},
|
|
12197
|
+
},
|
|
12198
|
+
},
|
|
12199
|
+
},
|
|
12200
|
+
ToolsOzoneSignatureFindRelatedAccounts: {
|
|
12201
|
+
lexicon: 1,
|
|
12202
|
+
id: 'tools.ozone.signature.findRelatedAccounts',
|
|
12203
|
+
defs: {
|
|
12204
|
+
main: {
|
|
12205
|
+
type: 'query',
|
|
12206
|
+
description:
|
|
12207
|
+
'Get accounts that share some matching threat signatures with the root account.',
|
|
12208
|
+
parameters: {
|
|
12209
|
+
type: 'params',
|
|
12210
|
+
required: ['did'],
|
|
12211
|
+
properties: {
|
|
12212
|
+
did: {
|
|
12213
|
+
type: 'string',
|
|
12214
|
+
format: 'did',
|
|
12215
|
+
},
|
|
12216
|
+
cursor: {
|
|
12217
|
+
type: 'string',
|
|
12218
|
+
},
|
|
12219
|
+
limit: {
|
|
12220
|
+
type: 'integer',
|
|
12221
|
+
minimum: 1,
|
|
12222
|
+
maximum: 100,
|
|
12223
|
+
default: 50,
|
|
12224
|
+
},
|
|
12225
|
+
},
|
|
12226
|
+
},
|
|
12227
|
+
output: {
|
|
12228
|
+
encoding: 'application/json',
|
|
12229
|
+
schema: {
|
|
12230
|
+
type: 'object',
|
|
12231
|
+
required: ['accounts'],
|
|
12232
|
+
properties: {
|
|
12233
|
+
cursor: {
|
|
12234
|
+
type: 'string',
|
|
12235
|
+
},
|
|
12236
|
+
accounts: {
|
|
12237
|
+
type: 'array',
|
|
12238
|
+
items: {
|
|
12239
|
+
type: 'ref',
|
|
12240
|
+
ref: 'lex:tools.ozone.signature.findRelatedAccounts#relatedAccount',
|
|
12241
|
+
},
|
|
12242
|
+
},
|
|
12243
|
+
},
|
|
12244
|
+
},
|
|
12245
|
+
},
|
|
12246
|
+
},
|
|
12247
|
+
relatedAccount: {
|
|
12248
|
+
type: 'object',
|
|
12249
|
+
required: ['account'],
|
|
12250
|
+
properties: {
|
|
12251
|
+
account: {
|
|
12252
|
+
type: 'ref',
|
|
12253
|
+
ref: 'lex:com.atproto.admin.defs#accountView',
|
|
12254
|
+
},
|
|
12255
|
+
similarities: {
|
|
12256
|
+
type: 'array',
|
|
12257
|
+
items: {
|
|
12258
|
+
type: 'ref',
|
|
12259
|
+
ref: 'lex:tools.ozone.signature.defs#sigDetail',
|
|
12260
|
+
},
|
|
12261
|
+
},
|
|
12262
|
+
},
|
|
12263
|
+
},
|
|
12264
|
+
},
|
|
12265
|
+
},
|
|
12266
|
+
ToolsOzoneSignatureSearchAccounts: {
|
|
12267
|
+
lexicon: 1,
|
|
12268
|
+
id: 'tools.ozone.signature.searchAccounts',
|
|
12269
|
+
defs: {
|
|
12270
|
+
main: {
|
|
12271
|
+
type: 'query',
|
|
12272
|
+
description:
|
|
12273
|
+
'Search for accounts that match one or more threat signature values.',
|
|
12274
|
+
parameters: {
|
|
12275
|
+
type: 'params',
|
|
12276
|
+
required: ['values'],
|
|
12277
|
+
properties: {
|
|
12278
|
+
values: {
|
|
12279
|
+
type: 'array',
|
|
12280
|
+
items: {
|
|
12281
|
+
type: 'string',
|
|
12282
|
+
},
|
|
12283
|
+
},
|
|
12284
|
+
cursor: {
|
|
12285
|
+
type: 'string',
|
|
12286
|
+
},
|
|
12287
|
+
limit: {
|
|
12288
|
+
type: 'integer',
|
|
12289
|
+
minimum: 1,
|
|
12290
|
+
maximum: 100,
|
|
12291
|
+
default: 50,
|
|
12292
|
+
},
|
|
12293
|
+
},
|
|
12294
|
+
},
|
|
12295
|
+
output: {
|
|
12296
|
+
encoding: 'application/json',
|
|
12297
|
+
schema: {
|
|
12298
|
+
type: 'object',
|
|
12299
|
+
required: ['accounts'],
|
|
12300
|
+
properties: {
|
|
12301
|
+
cursor: {
|
|
12302
|
+
type: 'string',
|
|
12303
|
+
},
|
|
12304
|
+
accounts: {
|
|
12305
|
+
type: 'array',
|
|
12306
|
+
items: {
|
|
12307
|
+
type: 'ref',
|
|
12308
|
+
ref: 'lex:com.atproto.admin.defs#accountView',
|
|
12309
|
+
},
|
|
12310
|
+
},
|
|
12311
|
+
},
|
|
12312
|
+
},
|
|
12313
|
+
},
|
|
12314
|
+
},
|
|
12315
|
+
},
|
|
12316
|
+
},
|
|
12142
12317
|
ToolsOzoneTeamAddMember: {
|
|
12143
12318
|
lexicon: 1,
|
|
12144
12319
|
id: 'tools.ozone.team.addMember',
|
|
@@ -12589,6 +12764,11 @@ export const ids = {
|
|
|
12589
12764
|
ToolsOzoneModerationQueryStatuses: 'tools.ozone.moderation.queryStatuses',
|
|
12590
12765
|
ToolsOzoneModerationSearchRepos: 'tools.ozone.moderation.searchRepos',
|
|
12591
12766
|
ToolsOzoneServerGetConfig: 'tools.ozone.server.getConfig',
|
|
12767
|
+
ToolsOzoneSignatureDefs: 'tools.ozone.signature.defs',
|
|
12768
|
+
ToolsOzoneSignatureFindCorrelation: 'tools.ozone.signature.findCorrelation',
|
|
12769
|
+
ToolsOzoneSignatureFindRelatedAccounts:
|
|
12770
|
+
'tools.ozone.signature.findRelatedAccounts',
|
|
12771
|
+
ToolsOzoneSignatureSearchAccounts: 'tools.ozone.signature.searchAccounts',
|
|
12592
12772
|
ToolsOzoneTeamAddMember: 'tools.ozone.team.addMember',
|
|
12593
12773
|
ToolsOzoneTeamDefs: 'tools.ozone.team.defs',
|
|
12594
12774
|
ToolsOzoneTeamDeleteMember: 'tools.ozone.team.deleteMember',
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { ValidationResult, BlobRef } from '@atproto/lexicon'
|
|
5
|
+
import { isObj, hasProp } from '../../../../util'
|
|
6
|
+
import { lexicons } from '../../../../lexicons'
|
|
7
|
+
import { CID } from 'multiformats/cid'
|
|
8
|
+
|
|
9
|
+
export interface SigDetail {
|
|
10
|
+
property: string
|
|
11
|
+
value: string
|
|
12
|
+
[k: string]: unknown
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function isSigDetail(v: unknown): v is SigDetail {
|
|
16
|
+
return (
|
|
17
|
+
isObj(v) &&
|
|
18
|
+
hasProp(v, '$type') &&
|
|
19
|
+
v.$type === 'tools.ozone.signature.defs#sigDetail'
|
|
20
|
+
)
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function validateSigDetail(v: unknown): ValidationResult {
|
|
24
|
+
return lexicons.validate('tools.ozone.signature.defs#sigDetail', v)
|
|
25
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, 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 ToolsOzoneSignatureDefs from './defs'
|
|
10
|
+
|
|
11
|
+
export interface QueryParams {
|
|
12
|
+
dids: string[]
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type InputSchema = undefined
|
|
16
|
+
|
|
17
|
+
export interface OutputSchema {
|
|
18
|
+
details: ToolsOzoneSignatureDefs.SigDetail[]
|
|
19
|
+
[k: string]: unknown
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface CallOptions {
|
|
23
|
+
signal?: AbortSignal
|
|
24
|
+
headers?: HeadersMap
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface Response {
|
|
28
|
+
success: boolean
|
|
29
|
+
headers: HeadersMap
|
|
30
|
+
data: OutputSchema
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export function toKnownErr(e: any) {
|
|
34
|
+
return e
|
|
35
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, 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 '../../../com/atproto/admin/defs'
|
|
10
|
+
import * as ToolsOzoneSignatureDefs from './defs'
|
|
11
|
+
|
|
12
|
+
export interface QueryParams {
|
|
13
|
+
did: string
|
|
14
|
+
cursor?: string
|
|
15
|
+
limit?: number
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type InputSchema = undefined
|
|
19
|
+
|
|
20
|
+
export interface OutputSchema {
|
|
21
|
+
cursor?: string
|
|
22
|
+
accounts: RelatedAccount[]
|
|
23
|
+
[k: string]: unknown
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface CallOptions {
|
|
27
|
+
signal?: AbortSignal
|
|
28
|
+
headers?: HeadersMap
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface Response {
|
|
32
|
+
success: boolean
|
|
33
|
+
headers: HeadersMap
|
|
34
|
+
data: OutputSchema
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function toKnownErr(e: any) {
|
|
38
|
+
return e
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface RelatedAccount {
|
|
42
|
+
account: ComAtprotoAdminDefs.AccountView
|
|
43
|
+
similarities?: ToolsOzoneSignatureDefs.SigDetail[]
|
|
44
|
+
[k: string]: unknown
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function isRelatedAccount(v: unknown): v is RelatedAccount {
|
|
48
|
+
return (
|
|
49
|
+
isObj(v) &&
|
|
50
|
+
hasProp(v, '$type') &&
|
|
51
|
+
v.$type === 'tools.ozone.signature.findRelatedAccounts#relatedAccount'
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function validateRelatedAccount(v: unknown): ValidationResult {
|
|
56
|
+
return lexicons.validate(
|
|
57
|
+
'tools.ozone.signature.findRelatedAccounts#relatedAccount',
|
|
58
|
+
v,
|
|
59
|
+
)
|
|
60
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, 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 '../../../com/atproto/admin/defs'
|
|
10
|
+
|
|
11
|
+
export interface QueryParams {
|
|
12
|
+
values: 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
|
+
signal?: AbortSignal
|
|
27
|
+
headers?: HeadersMap
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface Response {
|
|
31
|
+
success: boolean
|
|
32
|
+
headers: HeadersMap
|
|
33
|
+
data: OutputSchema
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function toKnownErr(e: any) {
|
|
37
|
+
return e
|
|
38
|
+
}
|