@prosopo/datasets 0.1.9 → 0.1.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/.eslintrc.js +32 -20
- package/.prettierrc.js +7 -0
- package/dist/js/captcha/captcha.d.ts +14 -11
- package/dist/js/captcha/captcha.d.ts.map +1 -1
- package/dist/js/captcha/captcha.js +50 -62
- package/dist/js/captcha/captcha.js.map +1 -1
- package/dist/js/captcha/dataset.d.ts +2 -2
- package/dist/js/captcha/dataset.d.ts.map +1 -1
- package/dist/js/captcha/dataset.js +15 -7
- package/dist/js/captcha/dataset.js.map +1 -1
- package/dist/js/captcha/merkle.d.ts +5 -5
- package/dist/js/captcha/merkle.d.ts.map +1 -1
- package/dist/js/captcha/merkle.js +18 -16
- package/dist/js/captcha/merkle.js.map +1 -1
- package/dist/js/captcha/util.d.ts +4 -0
- package/dist/js/captcha/util.d.ts.map +1 -1
- package/dist/js/captcha/util.js +24 -1
- package/dist/js/captcha/util.js.map +1 -1
- package/dist/js/types/assets.d.ts.map +1 -1
- package/dist/js/types/captcha.d.ts +14 -14
- package/dist/js/types/captcha.d.ts.map +1 -1
- package/dist/js/types/captcha.js +6 -6
- package/dist/js/types/captcha.js.map +1 -1
- package/dist/js/types/dataset.d.ts +6 -7
- package/dist/js/types/dataset.d.ts.map +1 -1
- package/dist/js/types/dataset.js +2 -2
- package/dist/js/types/dataset.js.map +1 -1
- package/dist/js/types/error.d.ts +14 -0
- package/dist/js/types/error.d.ts.map +1 -0
- package/dist/js/types/error.js +51 -0
- package/dist/js/types/error.js.map +1 -0
- package/dist/js/types/index.d.ts +1 -0
- package/dist/js/types/index.d.ts.map +1 -1
- package/dist/js/types/index.js +1 -0
- package/dist/js/types/index.js.map +1 -1
- package/dist/js/types/merkle.d.ts +5 -11
- package/dist/js/types/merkle.d.ts.map +1 -1
- package/dist/js/types/merkle.js +1 -7
- package/dist/js/types/merkle.js.map +1 -1
- package/package.json +3 -3
- package/tsconfig.json +6 -1
- package/captchas.json +0 -184
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../src/js/types/assets.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,KAAK;IAClB,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../src/js/types/assets.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,KAAK;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,IAAI,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,cAAc;IAC3B,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,KAAK,CAAA;CACxC"}
|
|
@@ -12,22 +12,22 @@ export declare enum CaptchaStates {
|
|
|
12
12
|
Solved = "solved",
|
|
13
13
|
Unsolved = "unsolved"
|
|
14
14
|
}
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
|
|
15
|
+
export type RawSolution = number;
|
|
16
|
+
export type HashedSolution = string;
|
|
17
|
+
export type Item = z.infer<typeof CaptchaItemSchema>;
|
|
18
|
+
export interface HashedItem extends Omit<Item, 'hash'> {
|
|
19
|
+
hash: string;
|
|
20
|
+
}
|
|
21
|
+
type CaptchaWithoutIdBase = {
|
|
19
22
|
salt: string;
|
|
20
23
|
items: Item[];
|
|
21
24
|
target: string;
|
|
22
25
|
solved?: boolean;
|
|
23
26
|
};
|
|
24
27
|
export interface CaptchaWithoutId extends CaptchaWithoutIdBase {
|
|
25
|
-
solution?: HashedSolution[];
|
|
26
|
-
}
|
|
27
|
-
export interface CaptchaWithoutIdRaw extends CaptchaWithoutIdBase {
|
|
28
|
-
solution?: RawSolution[];
|
|
28
|
+
solution?: HashedSolution[] | RawSolution[];
|
|
29
29
|
}
|
|
30
|
-
export
|
|
30
|
+
export type CaptchaSolutionToUpdate = {
|
|
31
31
|
captchaId: string;
|
|
32
32
|
captchaContentId: string;
|
|
33
33
|
salt: string;
|
|
@@ -59,7 +59,7 @@ export interface CaptchaSolution {
|
|
|
59
59
|
salt: string;
|
|
60
60
|
solution: HashedSolution[];
|
|
61
61
|
}
|
|
62
|
-
export
|
|
62
|
+
export type CaptchaConfig = {
|
|
63
63
|
solved: {
|
|
64
64
|
count: number;
|
|
65
65
|
};
|
|
@@ -67,13 +67,13 @@ export declare type CaptchaConfig = {
|
|
|
67
67
|
count: number;
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
|
-
export
|
|
70
|
+
export type CaptchaSolutionConfig = {
|
|
71
71
|
requiredNumberOfSolutions: number;
|
|
72
72
|
solutionWinningPercentage: number;
|
|
73
73
|
captchaFilePath: string;
|
|
74
74
|
captchaBlockRecency: number;
|
|
75
75
|
};
|
|
76
|
-
export
|
|
76
|
+
export type LastCorrectCaptcha = {
|
|
77
77
|
before_ms: u32;
|
|
78
78
|
dapp_id: AccountId;
|
|
79
79
|
};
|
|
@@ -249,7 +249,7 @@ export declare const CaptchasSchema: z.ZodArray<z.ZodObject<z.extendShape<{
|
|
|
249
249
|
}[];
|
|
250
250
|
target: string;
|
|
251
251
|
}>, "many">;
|
|
252
|
-
export declare const
|
|
252
|
+
export declare const CaptchaSolutionSchema: z.ZodObject<{
|
|
253
253
|
captchaId: z.ZodString;
|
|
254
254
|
captchaContentId: z.ZodString;
|
|
255
255
|
solution: z.ZodArray<z.ZodString, "many">;
|
|
@@ -265,7 +265,7 @@ export declare const CaptchaSolution: z.ZodObject<{
|
|
|
265
265
|
salt: string;
|
|
266
266
|
solution: string[];
|
|
267
267
|
}>;
|
|
268
|
-
export declare const
|
|
268
|
+
export declare const CaptchaSolutionArraySchema: z.ZodArray<z.ZodObject<{
|
|
269
269
|
captchaId: z.ZodString;
|
|
270
270
|
captchaContentId: z.ZodString;
|
|
271
271
|
solution: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captcha.d.ts","sourceRoot":"","sources":["../../../src/js/types/capt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CAAA;CACrB,CAAA;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;EAMxB,CAAA;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAI5B,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGpC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjC,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAqC,CAAA;AAEhE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAKhC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;WAAiC,CAAA"}
|
package/dist/js/types/captcha.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CaptchaSolutionArraySchema = exports.CaptchaSolutionSchema = exports.CaptchasSchema = exports.SelectAllCaptchaSchema = exports.SelectAllCaptchaSchemaRaw = exports.CaptchaItemSchema = exports.CaptchaSchema = exports.CaptchaStatus = exports.CaptchaStates = exports.CaptchaItemTypes = exports.CaptchaTypes = void 0;
|
|
4
4
|
// Copyright (C) 2021-2022 Prosopo (UK) Ltd.
|
|
5
5
|
// This file is part of provider <https://github.com/prosopo/provider>.
|
|
6
6
|
//
|
|
@@ -42,26 +42,26 @@ exports.CaptchaSchema = zod_1.z.object({
|
|
|
42
42
|
captchaContentId: zod_1.z.union([zod_1.z.string(), zod_1.z.undefined()]),
|
|
43
43
|
salt: zod_1.z.string(),
|
|
44
44
|
solution: zod_1.z.number().array().optional(),
|
|
45
|
-
timeLimit: zod_1.z.number().optional()
|
|
45
|
+
timeLimit: zod_1.z.number().optional(),
|
|
46
46
|
});
|
|
47
47
|
exports.CaptchaItemSchema = zod_1.z.object({
|
|
48
48
|
hash: zod_1.z.string().optional(),
|
|
49
49
|
data: zod_1.z.string(),
|
|
50
|
-
type: zod_1.z.nativeEnum(CaptchaItemTypes)
|
|
50
|
+
type: zod_1.z.nativeEnum(CaptchaItemTypes),
|
|
51
51
|
});
|
|
52
52
|
exports.SelectAllCaptchaSchemaRaw = exports.CaptchaSchema.extend({
|
|
53
53
|
items: zod_1.z.array(exports.CaptchaItemSchema),
|
|
54
|
-
target: zod_1.z.string()
|
|
54
|
+
target: zod_1.z.string(),
|
|
55
55
|
});
|
|
56
56
|
exports.SelectAllCaptchaSchema = exports.SelectAllCaptchaSchemaRaw.extend({
|
|
57
57
|
solution: zod_1.z.string().array().optional(),
|
|
58
58
|
});
|
|
59
59
|
exports.CaptchasSchema = zod_1.z.array(exports.SelectAllCaptchaSchemaRaw);
|
|
60
|
-
exports.
|
|
60
|
+
exports.CaptchaSolutionSchema = zod_1.z.object({
|
|
61
61
|
captchaId: zod_1.z.string(),
|
|
62
62
|
captchaContentId: zod_1.z.string(),
|
|
63
63
|
solution: zod_1.z.string().array(),
|
|
64
64
|
salt: zod_1.z.string(),
|
|
65
65
|
});
|
|
66
|
-
exports.
|
|
66
|
+
exports.CaptchaSolutionArraySchema = zod_1.z.array(exports.CaptchaSolutionSchema);
|
|
67
67
|
//# sourceMappingURL=captcha.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"captcha.js","sourceRoot":"","sources":["../../../src/js/types/captcha.ts"],"names":[],"mappings":";;;AAAA,4CAA4C;AAC5C,uEAAuE;AACvE,EAAE;AACF,mEAAmE;AACnE,uEAAuE;AACvE,oEAAoE;AACpE,sCAAsC;AACtC,EAAE;AACF,8DAA8D;AAC9D,iEAAiE;AACjE,gEAAgE;AAChE,+CAA+C;AAC/C,EAAE;AACF,oEAAoE;AACpE,oEAAoE;AACpE,6BAAuB;AAIvB,IAAY,
|
|
1
|
+
{"version":3,"file":"captc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AE;IACvC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAA;AAEW,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,gBAAgB,CAAC;CACvC,CAAC,CAAA;AAEW,QAAA,yBAAyB,GAAG,qBAAa,CAAC,MAAM,CAAC;IAC1D,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,yBAAiB,CAAC;IACjC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAA;AAEW,QAAA,sBAAsB,GAAG,iCAAyB,CAAC,MAAM,CAAC;IACnE,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAA;AAEW,QAAA,cAAc,GAAG,OAAC,CAAC,KAAK,CAAC,iCAAyB,CAAC,CAAA;AAEnD,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE;IAC5B,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE;IAC5B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAA;AAEW,QAAA,0BAA0B,GAAG,OAAC,CAAC,KAAK,CAAC,6BAAqB,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HexString } from
|
|
2
|
-
import { Captcha, CaptchaTypes, CaptchaWithoutId
|
|
3
|
-
import { z } from
|
|
4
|
-
|
|
1
|
+
import { HexString } from '@polkadot/util/types';
|
|
2
|
+
import { Captcha, CaptchaTypes, CaptchaWithoutId } from './captcha';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
export type DatasetBase = {
|
|
5
5
|
datasetId?: HexString | string | null;
|
|
6
6
|
datasetContentId?: HexString | string | null;
|
|
7
7
|
format: CaptchaTypes;
|
|
@@ -12,9 +12,9 @@ export interface Dataset extends DatasetBase {
|
|
|
12
12
|
captchas: CaptchaWithoutId[] | Captcha[];
|
|
13
13
|
}
|
|
14
14
|
export interface DatasetRaw extends DatasetBase {
|
|
15
|
-
captchas:
|
|
15
|
+
captchas: CaptchaWithoutId[];
|
|
16
16
|
}
|
|
17
|
-
export
|
|
17
|
+
export type DatasetWithIds = {
|
|
18
18
|
datasetId: HexString | string;
|
|
19
19
|
datasetContentId: HexString | string | null;
|
|
20
20
|
captchas: Captcha[];
|
|
@@ -308,5 +308,4 @@ export declare const DatasetWithIdsAndTreeSchema: z.ZodObject<z.extendShape<{
|
|
|
308
308
|
solutionTree: string[][];
|
|
309
309
|
contentTree: string[][];
|
|
310
310
|
}>;
|
|
311
|
-
export {};
|
|
312
311
|
//# sourceMappingURL=dataset.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataset.d.ts","sourceRoot":"","sources":["../../../src/js/types/dataset.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dataset.d.ts","sourceRoot":"","sources":["../../../src/js/types/dataset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAA0C,MAAM,WAAW,CAAA;AAC3G,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,MAAM,WAAW,GAAG;IACtB,SAAS,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI,CAAA;IACrC,gBAAgB,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI,CAAA;IAC5C,MAAM,EAAE,YAAY,CA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
19
19
|
captchas: zod_1.z.array(captcha_1.SelectAllCaptchaSchema),
|
|
20
20
|
format: zod_1.z.nativeEnum(captcha_1.CaptchaTypes),
|
|
21
21
|
solutionTree: zod_1.z.array(zod_1.z.array(zod_1.z.string())).optional(),
|
|
22
|
-
contentTree: zod_1.z.array(zod_1.z.array(zod_1.z.string())).optional()
|
|
22
|
+
contentTree: zod_1.z.array(zod_1.z.array(zod_1.z.string())).optional(),
|
|
23
23
|
});
|
|
24
24
|
exports.DatasetWithIdsAndTreeSchema = exports.DatasetWithIdsSchema.extend({
|
|
25
25
|
solutionTree: zod_1.z.array(zod_1.z.array(zod_1.z.string())),
|
|
26
|
-
contentTree: zod_1.z.array(zod_1.z.array(zod_1.z.string()))
|
|
26
|
+
contentTree: zod_1.z.array(zod_1.z.array(zod_1.z.string())),
|
|
27
27
|
});
|
|
28
28
|
//# sourceMappingURL=dataset.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataset.js","sourceRoot":"","sources":["../../../src/js/types/dataset.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"dataset.js","sourceRoot":"","sources":["../../../src/js/types/dataset.ts"],"names":[],"mappings":";;;AACA,uCAA2G;AAC3G,6BAAuB;AA+BvB,cAAc;AAED,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IAClC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,wBAAc;IACxB,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,sBAAY,CAAC;IAClC,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrD,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IACpD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAA;AAEW,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,gBAAgB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,gCAAsB,CAAC;IACzC,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,sBAAY,CAAC;IAClC,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrD,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAA;AAEW,QAAA,2BAA2B,GAAG,4BAAoB,CAAC,MAAM,CAAC;IACnE,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CAC5C,CAAC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TranslationKey, i18n as i18next } from '@prosopo/i18n';
|
|
2
|
+
export type TOptions = Record<string, string>;
|
|
3
|
+
export declare function translateOrFallback(key: string | undefined, options?: TOptions, fallback?: string, i18n?: import("i18next").i18n): string;
|
|
4
|
+
export declare abstract class ProsopoBaseError extends Error {
|
|
5
|
+
protected tKey: TranslationKey | undefined;
|
|
6
|
+
protected tParams: Record<string, string>;
|
|
7
|
+
getTranslated(i18n: typeof i18next): string;
|
|
8
|
+
}
|
|
9
|
+
export declare class ProsopoEnvError extends ProsopoBaseError {
|
|
10
|
+
constructor(error: ProsopoBaseError);
|
|
11
|
+
constructor(error: Error, context?: TranslationKey, options?: TOptions, ...params: any[]);
|
|
12
|
+
constructor(error: TranslationKey, context?: string, options?: TOptions, ...params: any[]);
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/js/types/error.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAQ,IAAI,IAAI,OAAO,EAAmB,MAAM,eAAe,CAAA;AAEtF,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAE7C,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,yBAAU,GAAG,MAAM,CAU1H;AAED,8BAAsB,gBAAiB,SAAQ,KAAK;IAChD,SAAS,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,CAAA;IAC1C,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAEzC,aAAa,CAAC,IAAI,EAAE,OAAO,OAAO,GAAG,MAAM;CAG9C;AAED,qBAAa,eAAgB,SAAQ,gBAAgB;gBACrC,KAAK,EAAE,gBAAgB;gBACvB,KAAK,EAAE,KAAK,EAAE,OAAO,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE;gBAC5E,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAE,GAAG,EAAE;CA6B5F"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProsopoEnvError = exports.ProsopoBaseError = exports.translateOrFallback = void 0;
|
|
4
|
+
const i18n_1 = require("@prosopo/i18n");
|
|
5
|
+
function translateOrFallback(key, options, fallback, i18n = i18n_1.i18n) {
|
|
6
|
+
try {
|
|
7
|
+
if (key) {
|
|
8
|
+
return i18n.t(key, options);
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
return fallback || key;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
catch (_a) {
|
|
15
|
+
return fallback || key;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.translateOrFallback = translateOrFallback;
|
|
19
|
+
class ProsopoBaseError extends Error {
|
|
20
|
+
getTranslated(i18n) {
|
|
21
|
+
return translateOrFallback(this.tKey, this.tParams, this.message, i18n);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.ProsopoBaseError = ProsopoBaseError;
|
|
25
|
+
class ProsopoEnvError extends ProsopoBaseError {
|
|
26
|
+
constructor(error, context, options, ...params) {
|
|
27
|
+
const isError = error instanceof Error;
|
|
28
|
+
super(isError ? error.message : translateOrFallback(error, options));
|
|
29
|
+
this.name =
|
|
30
|
+
(context && `${ProsopoEnvError.name}@${translateOrFallback(context, options)}`) || ProsopoEnvError.name;
|
|
31
|
+
if (isError) {
|
|
32
|
+
this.cause = error;
|
|
33
|
+
if (error instanceof ProsopoBaseError) {
|
|
34
|
+
this.tKey = error['tKey'];
|
|
35
|
+
this.tParams = error['tParams'];
|
|
36
|
+
}
|
|
37
|
+
else if (i18n_1.translationKeys.includes(context)) {
|
|
38
|
+
this.tKey = context;
|
|
39
|
+
this.tParams = options || {};
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
this.tKey = error;
|
|
44
|
+
this.tParams = options || {};
|
|
45
|
+
}
|
|
46
|
+
console.error('\n********************* ERROR *********************\n');
|
|
47
|
+
console.error(this.cause, this.stack, ...params);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.ProsopoEnvError = ProsopoEnvError;
|
|
51
|
+
//# sourceMappingURL=error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/js/types/error.ts"],"names":[],"mappings":";;;AACA,wCAAsF;AAItF,SAAgB,mBAAmB,CAAC,GAAuB,EAAE,OAAkB,EAAE,QAAiB,EAAE,IAAI,GAAG,WAAO;IAC9G,IAAI;QACA,IAAI,GAAG,EAAE;YACL,OAAO,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;SAC9B;aAAM;YACH,OAAO,QAAQ,IAAI,GAAI,CAAA;SAC1B;KACJ;IAAC,WAAM;QACJ,OAAO,QAAQ,IAAI,GAAI,CAAA;KAC1B;AACL,CAAC;AAVD,kDAUC;AAED,MAAsB,gBAAiB,SAAQ,KAAK;IAIhD,aAAa,CAAC,IAAoB;QAC9B,OAAO,mBAAmB,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;IAC3E,CAAC;CACJ;AAPD,4CAOC;AAED,MAAa,eAAgB,SAAQ,gBAAgB;IAKjD,YACI,KAA6B,EAC7B,OAAiC,EACjC,OAAkB,EAClB,GAAG,MAAa;QAEhB,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAA;QACtC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAA;QACpE,IAAI,CAAC,IAAI;YACL,CAAC,OAAO,IAAI,GAAG,eAAe,CAAC,IAAI,IAAI,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC,IAAI,eAAe,CAAC,IAAI,CAAA;QAC3G,IAAI,OAAO,EAAE;YACT,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;YAClB,IAAI,KAAK,YAAY,gBAAgB,EAAE;gBACnC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;gBACzB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,CAAA;aAClC;iBAAM,IAAI,sBAAe,CAAC,QAAQ,CAAC,OAAyB,CAAC,EAAE;gBAC5D,IAAI,CAAC,IAAI,GAAG,OAAyB,CAAA;gBACrC,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAA;aAC/B;SACJ;aAAM;YACH,IAAI,CAAC,IAAI,GAAG,KAAuB,CAAA;YACnC,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAA;SAC/B;QAED,OAAO,CAAC,KAAK,CAAC,uDAAuD,CAAC,CAAA;QACtE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,MAAM,CAAC,CAAA;IACpD,CAAC;CACJ;AAhCD,0CAgCC"}
|
package/dist/js/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/js/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA"}
|
package/dist/js/types/index.js
CHANGED
|
@@ -5,4 +5,5 @@ tslib_1.__exportStar(require("./captcha"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./dataset"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./merkle"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./assets"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./error"), exports);
|
|
8
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/types/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/js/types/index.ts"],"names":[],"mappings":";;;AAAA,oDAAyB;AACzB,oDAAyB;AACzB,mDAAwB;AACxB,mDAAwB;AACxB,kDAAuB"}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
export interface MerkleNodeInterface {
|
|
3
2
|
hash: string;
|
|
4
3
|
parent: string | null;
|
|
5
4
|
}
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
parent: string | null;
|
|
12
|
-
}, {
|
|
13
|
-
hash: string;
|
|
14
|
-
parent: string | null;
|
|
15
|
-
}>;
|
|
5
|
+
export type MerkleLeaf = string;
|
|
6
|
+
export type MerkleLayer = MerkleLeaf[];
|
|
7
|
+
export type MerkleProofLayer = [MerkleLeaf, MerkleLeaf];
|
|
8
|
+
export type MerkleRootLayer = [MerkleLeaf];
|
|
9
|
+
export type MerkleProof = [...MerkleProofLayer[], MerkleRootLayer];
|
|
16
10
|
//# sourceMappingURL=merkle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merkle.d.ts","sourceRoot":"","sources":["../../../src/js/types/merkle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"merkle.d.ts","sourceRoot":"","sources":["../../../src/js/types/merkle.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,mBAAmB;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAA;AAE/B,MAAM,MAAM,WAAW,GAAG,UAAU,EAAE,CAAA;AAEtC,MAAM,MAAM,gBAAgB,GAAG,CAAC,UAAU,EAAE,UAAU,CAAC,CAAA;AAEvD,MAAM,MAAM,eAAe,GAAG,CAAC,UAAU,CAAC,CAAA;AAE1C,MAAM,MAAM,WAAW,GAAG,CAAC,GAAG,gBAAgB,EAAE,EAAE,eAAe,CAAC,CAAA"}
|
package/dist/js/types/merkle.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MerkleNodeSchema = void 0;
|
|
4
2
|
// Copyright (C) 2021-2022 Prosopo (UK) Ltd.
|
|
5
3
|
// This file is part of provider <https://github.com/prosopo/provider>.
|
|
6
4
|
//
|
|
@@ -16,9 +14,5 @@ exports.MerkleNodeSchema = void 0;
|
|
|
16
14
|
//
|
|
17
15
|
// You should have received a copy of the GNU General Public License
|
|
18
16
|
// along with provider. If not, see <http://www.gnu.org/licenses/>.
|
|
19
|
-
|
|
20
|
-
exports.MerkleNodeSchema = zod_1.z.object({
|
|
21
|
-
hash: zod_1.z.string(),
|
|
22
|
-
parent: zod_1.z.union([zod_1.z.string(), zod_1.z.null()])
|
|
23
|
-
});
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
18
|
//# sourceMappingURL=merkle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merkle.js","sourceRoot":"","sources":["../../../src/js/types/merkle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"merkle.js","sourceRoot":"","sources":["../../../src/js/types/merkle.ts"],"names":[],"mappings":";AAAA,4CAA4C;AAC5C,uEAAuE;AACvE,EAAE;AACF,mEAAmE;AACnE,uEAAuE;AACvE,oEAAoE;AACpE,sCAAsC;AACtC,EAAE;AACF,8DAA8D;AAC9D,iEAAiE;AACjE,gEAAgE;AAChE,+CAA+C;AAC/C,EAAE;AACF,oEAAoE;AACpE,oEAAoE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/datasets",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"author": "PROSOPO LIMITED <info@prosopo.io>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"private": false,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"build": "tsc --build --verbose",
|
|
10
10
|
"lint": "npx eslint .",
|
|
11
11
|
"lint:fix": "npx eslint . --fix",
|
|
12
|
-
"test": "NODE_ENV=test ts-mocha \"tests/**/*.test.ts\" --timeout 120000"
|
|
12
|
+
"test": "NODE_ENV=test ts-mocha \"./tests/js/**/*.test.ts\" --timeout 120000 --recursive --exit"
|
|
13
13
|
},
|
|
14
14
|
"main": "./dist/js/index.js",
|
|
15
15
|
"types": "./dist/js/index.d.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@polkadot/types-create": "^8.13.1",
|
|
38
38
|
"@polkadot/util": "^10.0.2",
|
|
39
39
|
"@polkadot/util-crypto": "^10.0.2",
|
|
40
|
-
"@prosopo/
|
|
40
|
+
"@prosopo/i18n": "^0.1.10",
|
|
41
41
|
"bn.js": "^5.2.1",
|
|
42
42
|
"consola": "^2.15.3",
|
|
43
43
|
"zod": "^3.17.9"
|
package/tsconfig.json
CHANGED
package/captchas.json
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"captchas": [
|
|
3
|
-
{
|
|
4
|
-
"solution": [
|
|
5
|
-
0,
|
|
6
|
-
1,
|
|
7
|
-
2,
|
|
8
|
-
3,
|
|
9
|
-
4,
|
|
10
|
-
5,
|
|
11
|
-
6,
|
|
12
|
-
7,
|
|
13
|
-
8
|
|
14
|
-
],
|
|
15
|
-
"items": [
|
|
16
|
-
{
|
|
17
|
-
"path": "stl10/data/labelled/monkey/4821.train.png",
|
|
18
|
-
"type": "image"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"path": "stl10/data/labelled/monkey/3392.train.png",
|
|
22
|
-
"type": "image"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"path": "stl10/data/labelled/monkey/1259.train.png",
|
|
26
|
-
"type": "image"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"path": "stl10/data/labelled/monkey/7827.test.png",
|
|
30
|
-
"type": "image"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"path": "stl10/data/labelled/monkey/5846.test.png",
|
|
34
|
-
"type": "image"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"path": "stl10/data/labelled/monkey/3615.test.png",
|
|
38
|
-
"type": "image"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"path": "stl10/data/labelled/monkey/3443.train.png",
|
|
42
|
-
"type": "image"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"path": "stl10/data/labelled/monkey/7336.test.png",
|
|
46
|
-
"type": "image"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"path": "stl10/data/labelled/monkey/3429.train.png",
|
|
50
|
-
"type": "image"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
"salt": "243262243132245a387a69466b346276736c62424d3172664d4d39304f",
|
|
54
|
-
"target": "monkey"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"solution": [],
|
|
58
|
-
"items": [
|
|
59
|
-
{
|
|
60
|
-
"path": "stl10/data/labelled/boat/2580.test.png",
|
|
61
|
-
"type": "image"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"path": "stl10/data/labelled/boat/4417.train.png",
|
|
65
|
-
"type": "image"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"path": "stl10/data/labelled/boat/5437.test.png",
|
|
69
|
-
"type": "image"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
"path": "stl10/data/labelled/boat/1344.train.png",
|
|
73
|
-
"type": "image"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"path": "stl10/data/labelled/car/1746.test.png",
|
|
77
|
-
"type": "image"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"path": "stl10/data/labelled/monkey/1000.test.png",
|
|
81
|
-
"type": "image"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"path": "stl10/data/labelled/cat/4086.test.png",
|
|
85
|
-
"type": "image"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"path": "stl10/data/labelled/airplane/4890.train.png",
|
|
89
|
-
"type": "image"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"path": "stl10/data/labelled/dog/51.train.png",
|
|
93
|
-
"type": "image"
|
|
94
|
-
}
|
|
95
|
-
],
|
|
96
|
-
"salt": "243262243132246b4162566c2e486e4775765666705677503959796475",
|
|
97
|
-
"target": "bird"
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
"items": [
|
|
101
|
-
{
|
|
102
|
-
"path": "stl10/data/unlabelled/19993.png",
|
|
103
|
-
"type": "image"
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"path": "stl10/data/unlabelled/27362.png",
|
|
107
|
-
"type": "image"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"path": "stl10/data/unlabelled/32097.png",
|
|
111
|
-
"type": "image"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"path": "stl10/data/unlabelled/34103.png",
|
|
115
|
-
"type": "image"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"path": "stl10/data/unlabelled/41192.png",
|
|
119
|
-
"type": "image"
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"path": "stl10/data/unlabelled/44834.png",
|
|
123
|
-
"type": "image"
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"path": "stl10/data/unlabelled/61310.png",
|
|
127
|
-
"type": "image"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"path": "stl10/data/unlabelled/66765.png",
|
|
131
|
-
"type": "image"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"path": "stl10/data/unlabelled/80178.png",
|
|
135
|
-
"type": "image"
|
|
136
|
-
}
|
|
137
|
-
],
|
|
138
|
-
"salt": "243262243132245556596d756b435355776c47354d3035452f6166654f",
|
|
139
|
-
"target": "airplane"
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"items": [
|
|
143
|
-
{
|
|
144
|
-
"path": "stl10/data/unlabelled/1558.png",
|
|
145
|
-
"type": "image"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
"path": "stl10/data/unlabelled/2035.png",
|
|
149
|
-
"type": "image"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"path": "stl10/data/unlabelled/20224.png",
|
|
153
|
-
"type": "image"
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
"path": "stl10/data/unlabelled/63493.png",
|
|
157
|
-
"type": "image"
|
|
158
|
-
},
|
|
159
|
-
{
|
|
160
|
-
"path": "stl10/data/unlabelled/68980.png",
|
|
161
|
-
"type": "image"
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"path": "stl10/data/unlabelled/76996.png",
|
|
165
|
-
"type": "image"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
"path": "stl10/data/unlabelled/81163.png",
|
|
169
|
-
"type": "image"
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"path": "stl10/data/unlabelled/93912.png",
|
|
173
|
-
"type": "image"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
"path": "stl10/data/unlabelled/94043.png",
|
|
177
|
-
"type": "image"
|
|
178
|
-
}
|
|
179
|
-
],
|
|
180
|
-
"salt": "24326224313224694864426c767572656c6c563649456a7457472f7665",
|
|
181
|
-
"target": "horse"
|
|
182
|
-
}
|
|
183
|
-
]
|
|
184
|
-
}
|