@prosopo/types 3.0.6 → 3.5.11
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 +261 -0
- package/dist/api/api.js +2 -1
- package/dist/api/api.js.map +1 -0
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +4 -5
- package/dist/api/index.js.map +1 -0
- package/dist/api/ipapi.d.ts +171 -0
- package/dist/api/ipapi.d.ts.map +1 -0
- package/dist/api/ipapi.js +2 -0
- package/dist/api/ipapi.js.map +1 -0
- package/dist/api/params.d.ts +4 -1
- package/dist/api/params.d.ts.map +1 -1
- package/dist/api/params.js +44 -43
- package/dist/api/params.js.map +1 -0
- package/dist/cjs/api/index.cjs +1 -0
- package/dist/cjs/api/ipapi.cjs +1 -0
- package/dist/cjs/api/params.cjs +3 -0
- package/dist/cjs/client/index.cjs +11 -0
- package/dist/cjs/client/settings.cjs +67 -1
- package/dist/cjs/config/config.cjs +11 -3
- package/dist/cjs/config/frictionless.cjs +7 -1
- package/dist/cjs/config/index.cjs +3 -0
- package/dist/cjs/datasets/captcha.cjs +1 -1
- package/dist/cjs/index.cjs +17 -0
- package/dist/cjs/provider/api.cjs +26 -1
- package/dist/cjs/provider/detection.cjs +1 -0
- package/dist/cjs/provider/index.cjs +4 -0
- package/dist/client/captchaType/captchaType.js +9 -11
- package/dist/client/captchaType/captchaType.js.map +1 -0
- package/dist/client/captchaType/captchaTypeSpec.js +2 -3
- package/dist/client/captchaType/captchaTypeSpec.js.map +1 -0
- package/dist/client/index.js +5 -18
- package/dist/client/index.js.map +1 -0
- package/dist/client/settings.d.ts +367 -8
- package/dist/client/settings.d.ts.map +1 -1
- package/dist/client/settings.js +69 -20
- package/dist/client/settings.js.map +1 -0
- package/dist/client/user.d.ts +2 -3
- package/dist/client/user.d.ts.map +1 -1
- package/dist/client/user.js +18 -31
- package/dist/client/user.js.map +1 -0
- package/dist/config/config.d.ts +58 -15
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +168 -175
- package/dist/config/config.js.map +1 -0
- package/dist/config/enumMap.js +6 -0
- package/dist/config/enumMap.js.map +1 -0
- package/dist/config/frictionless.d.ts +8 -0
- package/dist/config/frictionless.d.ts.map +1 -1
- package/dist/config/frictionless.js +23 -11
- package/dist/config/frictionless.js.map +1 -0
- package/dist/config/index.js +5 -34
- package/dist/config/index.js.map +1 -0
- package/dist/config/network.js +7 -9
- package/dist/config/network.js.map +1 -0
- package/dist/config/timeouts.js +10 -19
- package/dist/config/timeouts.js.map +1 -0
- package/dist/datasets/assets.js +2 -1
- package/dist/datasets/assets.js.map +1 -0
- package/dist/datasets/captcha.d.ts +56 -56
- package/dist/datasets/captcha.js +94 -122
- package/dist/datasets/captcha.js.map +1 -0
- package/dist/datasets/dataset.d.ts +46 -46
- package/dist/datasets/dataset.js +23 -28
- package/dist/datasets/dataset.js.map +1 -0
- package/dist/datasets/index.js +5 -36
- package/dist/datasets/index.js.map +1 -0
- package/dist/datasets/merkle.js +2 -1
- package/dist/datasets/merkle.js.map +1 -0
- package/dist/index.js +10 -131
- package/dist/index.js.map +1 -0
- package/dist/keyring/index.js +3 -2
- package/dist/keyring/index.js.map +1 -0
- package/dist/keyring/keyring/types.js +2 -1
- package/dist/keyring/keyring/types.js.map +1 -0
- package/dist/keyring/pair/types.js +2 -1
- package/dist/keyring/pair/types.js.map +1 -0
- package/dist/procaptcha/api.js +2 -1
- package/dist/procaptcha/api.js.map +1 -0
- package/dist/procaptcha/client.js +2 -1
- package/dist/procaptcha/client.js.map +1 -0
- package/dist/procaptcha/collector.js +2 -1
- package/dist/procaptcha/collector.js.map +1 -0
- package/dist/procaptcha/index.js +8 -19
- package/dist/procaptcha/index.js.map +1 -0
- package/dist/procaptcha/manager.d.ts +1 -1
- package/dist/procaptcha/manager.d.ts.map +1 -1
- package/dist/procaptcha/manager.js +4 -7
- package/dist/procaptcha/manager.js.map +1 -0
- package/dist/procaptcha/props.d.ts +1 -0
- package/dist/procaptcha/props.d.ts.map +1 -1
- package/dist/procaptcha/props.js +2 -1
- package/dist/procaptcha/props.js.map +1 -0
- package/dist/procaptcha/token.js +62 -77
- package/dist/procaptcha/token.js.map +1 -0
- package/dist/procaptcha/utils.js +2 -1
- package/dist/procaptcha/utils.js.map +1 -0
- package/dist/procaptcha-bundle/index.js +2 -1
- package/dist/procaptcha-bundle/index.js.map +1 -0
- package/dist/procaptcha-frictionless/index.js +2 -1
- package/dist/procaptcha-frictionless/index.js.map +1 -0
- package/dist/procaptcha-frictionless/props.d.ts +1 -1
- package/dist/procaptcha-frictionless/props.d.ts.map +1 -1
- package/dist/procaptcha-frictionless/props.js +2 -1
- package/dist/procaptcha-frictionless/props.js.map +1 -0
- package/dist/provider/accounts.js +2 -1
- package/dist/provider/accounts.js.map +1 -0
- package/dist/provider/api.d.ts +300 -2
- package/dist/provider/api.d.ts.map +1 -1
- package/dist/provider/api.js +176 -220
- package/dist/provider/api.js.map +1 -0
- package/dist/provider/detection.d.ts +11 -0
- package/dist/provider/detection.d.ts.map +1 -0
- package/dist/provider/detection.js +2 -0
- package/dist/provider/detection.js.map +1 -0
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/index.js +5 -29
- package/dist/provider/index.js.map +1 -0
- package/dist/provider/scheduler.js +15 -18
- package/dist/provider/scheduler.js.map +1 -0
- package/package.json +16 -19
package/dist/datasets/captcha.js
CHANGED
|
@@ -1,136 +1,108 @@
|
|
|
1
|
-
import {
|
|
2
|
-
var CaptchaTypes
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})(CaptchaTypes || {});
|
|
6
|
-
var CaptchaItemTypes
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})(CaptchaItemTypes || {});
|
|
11
|
-
var CaptchaStates
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
})(CaptchaStates || {});
|
|
16
|
-
var CaptchaStatus
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})(CaptchaStatus || {});
|
|
22
|
-
var StoredStatusNames
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
})(StoredStatusNames || {});
|
|
29
|
-
var GovernanceStatus
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
})(GovernanceStatus || {});
|
|
34
|
-
var DappPayee
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
})(DappPayee || {});
|
|
40
|
-
const TimestampSchema =
|
|
41
|
-
const POW_SEPARATOR = "___";
|
|
42
|
-
const PowChallengeIdSchema = custom((val) => {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
1
|
+
import { array, custom, nativeEnum, number, object, string, union, number as zNumber, undefined as zUndefined, } from "zod";
|
|
2
|
+
export var CaptchaTypes;
|
|
3
|
+
(function (CaptchaTypes) {
|
|
4
|
+
CaptchaTypes["SelectAll"] = "SelectAll";
|
|
5
|
+
})(CaptchaTypes || (CaptchaTypes = {}));
|
|
6
|
+
export var CaptchaItemTypes;
|
|
7
|
+
(function (CaptchaItemTypes) {
|
|
8
|
+
CaptchaItemTypes["Text"] = "text";
|
|
9
|
+
CaptchaItemTypes["Image"] = "image";
|
|
10
|
+
})(CaptchaItemTypes || (CaptchaItemTypes = {}));
|
|
11
|
+
export var CaptchaStates;
|
|
12
|
+
(function (CaptchaStates) {
|
|
13
|
+
CaptchaStates["Solved"] = "solved";
|
|
14
|
+
CaptchaStates["Unsolved"] = "unsolved";
|
|
15
|
+
})(CaptchaStates || (CaptchaStates = {}));
|
|
16
|
+
export var CaptchaStatus;
|
|
17
|
+
(function (CaptchaStatus) {
|
|
18
|
+
CaptchaStatus["pending"] = "Pending";
|
|
19
|
+
CaptchaStatus["approved"] = "Approved";
|
|
20
|
+
CaptchaStatus["disapproved"] = "Disapproved";
|
|
21
|
+
})(CaptchaStatus || (CaptchaStatus = {}));
|
|
22
|
+
export var StoredStatusNames;
|
|
23
|
+
(function (StoredStatusNames) {
|
|
24
|
+
StoredStatusNames["notStored"] = "notStored";
|
|
25
|
+
StoredStatusNames["userSubmitted"] = "userSubmitted";
|
|
26
|
+
StoredStatusNames["serverChecked"] = "serverChecked";
|
|
27
|
+
StoredStatusNames["stored"] = "stored";
|
|
28
|
+
})(StoredStatusNames || (StoredStatusNames = {}));
|
|
29
|
+
export var GovernanceStatus;
|
|
30
|
+
(function (GovernanceStatus) {
|
|
31
|
+
GovernanceStatus["active"] = "Active";
|
|
32
|
+
GovernanceStatus["inactive"] = "Inactive";
|
|
33
|
+
})(GovernanceStatus || (GovernanceStatus = {}));
|
|
34
|
+
export var DappPayee;
|
|
35
|
+
(function (DappPayee) {
|
|
36
|
+
DappPayee["provider"] = "Provider";
|
|
37
|
+
DappPayee["dapp"] = "Dapp";
|
|
38
|
+
DappPayee["any"] = "Any";
|
|
39
|
+
})(DappPayee || (DappPayee = {}));
|
|
40
|
+
export const TimestampSchema = zNumber();
|
|
41
|
+
export const POW_SEPARATOR = "___";
|
|
42
|
+
export const PowChallengeIdSchema = custom((val) => {
|
|
43
|
+
const valSplit = val.split(POW_SEPARATOR);
|
|
44
|
+
try {
|
|
45
|
+
Number.parseInt(valSplit[0]);
|
|
46
|
+
return valSplit.length === 4;
|
|
47
|
+
}
|
|
48
|
+
catch (e) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
50
51
|
});
|
|
51
|
-
const CaptchaSchema = object({
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
52
|
+
export const CaptchaSchema = object({
|
|
53
|
+
captchaId: union([string(), zUndefined()]),
|
|
54
|
+
captchaContentId: union([string(), zUndefined()]),
|
|
55
|
+
salt: string().min(34),
|
|
56
|
+
solution: number().array().optional(),
|
|
57
|
+
unlabelled: number().array().optional(),
|
|
58
|
+
timeLimit: number().optional(),
|
|
58
59
|
});
|
|
59
|
-
const CaptchaItemSchema = object({
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
export const CaptchaItemSchema = object({
|
|
61
|
+
hash: string(),
|
|
62
|
+
data: string(),
|
|
63
|
+
type: nativeEnum(CaptchaItemTypes),
|
|
63
64
|
});
|
|
64
|
-
const HashedCaptchaItemSchema = CaptchaItemSchema.extend({
|
|
65
|
-
|
|
65
|
+
export const HashedCaptchaItemSchema = CaptchaItemSchema.extend({
|
|
66
|
+
hash: string(),
|
|
66
67
|
});
|
|
67
|
-
const LabelledItemSchema = HashedCaptchaItemSchema.extend({
|
|
68
|
-
|
|
68
|
+
export const LabelledItemSchema = HashedCaptchaItemSchema.extend({
|
|
69
|
+
label: string(),
|
|
69
70
|
});
|
|
70
|
-
const MaybeLabelledHashedItemSchema = HashedCaptchaItemSchema.extend({
|
|
71
|
-
|
|
71
|
+
export const MaybeLabelledHashedItemSchema = HashedCaptchaItemSchema.extend({
|
|
72
|
+
label: string().optional(),
|
|
72
73
|
});
|
|
73
|
-
const SelectAllCaptchaSchemaRaw = CaptchaSchema.extend({
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
export const SelectAllCaptchaSchemaRaw = CaptchaSchema.extend({
|
|
75
|
+
items: array(CaptchaItemSchema),
|
|
76
|
+
target: string(),
|
|
76
77
|
});
|
|
77
|
-
const SelectAllCaptchaSchema = SelectAllCaptchaSchemaRaw.extend({
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
export const SelectAllCaptchaSchema = SelectAllCaptchaSchemaRaw.extend({
|
|
79
|
+
solution: string().array().optional(),
|
|
80
|
+
unlabelled: string().array().optional(),
|
|
80
81
|
});
|
|
81
|
-
const SelectAllCaptchaSchemaWithNumericSolution = SelectAllCaptchaSchema.extend({
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
export const SelectAllCaptchaSchemaWithNumericSolution = SelectAllCaptchaSchema.extend({
|
|
83
|
+
solution: number().array().optional(),
|
|
84
|
+
unlabelled: number().array().optional(),
|
|
84
85
|
});
|
|
85
|
-
const CaptchasSchema = array(SelectAllCaptchaSchemaRaw);
|
|
86
|
-
const CaptchasWithNumericSolutionSchema = array(
|
|
87
|
-
|
|
88
|
-
)
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
solution: string().array(),
|
|
93
|
-
salt: string().min(34)
|
|
86
|
+
export const CaptchasSchema = array(SelectAllCaptchaSchemaRaw);
|
|
87
|
+
export const CaptchasWithNumericSolutionSchema = array(SelectAllCaptchaSchemaWithNumericSolution);
|
|
88
|
+
export const CaptchaSolutionSchema = object({
|
|
89
|
+
captchaId: string(),
|
|
90
|
+
captchaContentId: string(),
|
|
91
|
+
solution: string().array(),
|
|
92
|
+
salt: string(),
|
|
94
93
|
});
|
|
95
|
-
const CaptchaSolutionArraySchema = array(CaptchaSolutionSchema);
|
|
96
|
-
const DataSchema = object({
|
|
97
|
-
|
|
94
|
+
export const CaptchaSolutionArraySchema = array(CaptchaSolutionSchema);
|
|
95
|
+
export const DataSchema = object({
|
|
96
|
+
items: array(MaybeLabelledHashedItemSchema),
|
|
98
97
|
});
|
|
99
|
-
const LabelledDataSchema = object({
|
|
100
|
-
|
|
98
|
+
export const LabelledDataSchema = object({
|
|
99
|
+
items: array(LabelledItemSchema),
|
|
101
100
|
});
|
|
102
|
-
const CaptchasContainerSchema = object({
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
export const CaptchasContainerSchema = object({
|
|
102
|
+
captchas: CaptchasSchema,
|
|
103
|
+
format: nativeEnum(CaptchaTypes),
|
|
105
104
|
});
|
|
106
|
-
const LabelsContainerSchema = object({
|
|
107
|
-
|
|
105
|
+
export const LabelsContainerSchema = object({
|
|
106
|
+
labels: array(string()),
|
|
108
107
|
});
|
|
109
|
-
|
|
110
|
-
CaptchaItemSchema,
|
|
111
|
-
CaptchaItemTypes,
|
|
112
|
-
CaptchaSchema,
|
|
113
|
-
CaptchaSolutionArraySchema,
|
|
114
|
-
CaptchaSolutionSchema,
|
|
115
|
-
CaptchaStates,
|
|
116
|
-
CaptchaStatus,
|
|
117
|
-
CaptchaTypes,
|
|
118
|
-
CaptchasContainerSchema,
|
|
119
|
-
CaptchasSchema,
|
|
120
|
-
CaptchasWithNumericSolutionSchema,
|
|
121
|
-
DappPayee,
|
|
122
|
-
DataSchema,
|
|
123
|
-
GovernanceStatus,
|
|
124
|
-
HashedCaptchaItemSchema,
|
|
125
|
-
LabelledDataSchema,
|
|
126
|
-
LabelledItemSchema,
|
|
127
|
-
LabelsContainerSchema,
|
|
128
|
-
MaybeLabelledHashedItemSchema,
|
|
129
|
-
POW_SEPARATOR,
|
|
130
|
-
PowChallengeIdSchema,
|
|
131
|
-
SelectAllCaptchaSchema,
|
|
132
|
-
SelectAllCaptchaSchemaRaw,
|
|
133
|
-
SelectAllCaptchaSchemaWithNumericSolution,
|
|
134
|
-
StoredStatusNames,
|
|
135
|
-
TimestampSchema
|
|
136
|
-
};
|
|
108
|
+
//# sourceMappingURL=captcha.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"captcha.js","sourceRoot":"","sources":["../../src/datasets/captcha.ts"],"names":[],"mappings":"AAeA,OAAO,EACN,KAAK,EACL,MAAM,EACN,UAAU,EACV,MAAM,EACN,MAAM,EACN,MAAM,EACN,KAAK,EAEL,MAAM,IAAI,OAAO,EACjB,SAAS,IAAI,UAAU,GACvB,MAAM,KAAK,CAAC;AAEb,MAAM,CAAN,IAAY,YAEX;AAFD,WAAY,YAAY;IACvB,uCAAuB,CAAA;AACxB,CAAC,EAFW,YAAY,KAAZ,YAAY,QAEvB;AACD,MAAM,CAAN,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC3B,iCAAa,CAAA;IACb,mCAAe,CAAA;AAChB,CAAC,EAHW,gBAAgB,KAAhB,gBAAgB,QAG3B;AACD,M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EAAE,KAAK,CAAC,MAAM,EAAE,CAAC;CACvB,CAAC,CAAC"}
|
|
@@ -40,22 +40,22 @@ export declare const DatasetSchema: import("zod").ZodObject<{
|
|
|
40
40
|
data: import("zod").ZodString;
|
|
41
41
|
type: import("zod").ZodNativeEnum<typeof import("./captcha.js").CaptchaItemTypes>;
|
|
42
42
|
}, "strip", import("zod").ZodTypeAny, {
|
|
43
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
43
44
|
hash: string;
|
|
44
45
|
data: string;
|
|
45
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
46
46
|
}, {
|
|
47
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
47
48
|
hash: string;
|
|
48
49
|
data: string;
|
|
49
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
50
50
|
}>, "many">;
|
|
51
51
|
target: import("zod").ZodString;
|
|
52
52
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
53
|
+
salt: string;
|
|
53
54
|
items: {
|
|
55
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
54
56
|
hash: string;
|
|
55
57
|
data: string;
|
|
56
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
57
58
|
}[];
|
|
58
|
-
salt: string;
|
|
59
59
|
target: string;
|
|
60
60
|
captchaId?: string | undefined;
|
|
61
61
|
captchaContentId?: string | undefined;
|
|
@@ -63,12 +63,12 @@ export declare const DatasetSchema: import("zod").ZodObject<{
|
|
|
63
63
|
unlabelled?: number[] | undefined;
|
|
64
64
|
timeLimit?: number | undefined;
|
|
65
65
|
}, {
|
|
66
|
+
salt: string;
|
|
66
67
|
items: {
|
|
68
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
67
69
|
hash: string;
|
|
68
70
|
data: string;
|
|
69
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
70
71
|
}[];
|
|
71
|
-
salt: string;
|
|
72
72
|
target: string;
|
|
73
73
|
captchaId?: string | undefined;
|
|
74
74
|
captchaContentId?: string | undefined;
|
|
@@ -82,12 +82,12 @@ export declare const DatasetSchema: import("zod").ZodObject<{
|
|
|
82
82
|
timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
83
83
|
}, "strip", import("zod").ZodTypeAny, {
|
|
84
84
|
captchas: {
|
|
85
|
+
salt: string;
|
|
85
86
|
items: {
|
|
87
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
86
88
|
hash: string;
|
|
87
89
|
data: string;
|
|
88
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
89
90
|
}[];
|
|
90
|
-
salt: string;
|
|
91
91
|
target: string;
|
|
92
92
|
captchaId?: string | undefined;
|
|
93
93
|
captchaContentId?: string | undefined;
|
|
@@ -103,12 +103,12 @@ export declare const DatasetSchema: import("zod").ZodObject<{
|
|
|
103
103
|
contentTree?: string[][] | undefined;
|
|
104
104
|
}, {
|
|
105
105
|
captchas: {
|
|
106
|
+
salt: string;
|
|
106
107
|
items: {
|
|
108
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
107
109
|
hash: string;
|
|
108
110
|
data: string;
|
|
109
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
110
111
|
}[];
|
|
111
|
-
salt: string;
|
|
112
112
|
target: string;
|
|
113
113
|
captchaId?: string | undefined;
|
|
114
114
|
captchaContentId?: string | undefined;
|
|
@@ -139,22 +139,22 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
|
|
|
139
139
|
data: import("zod").ZodString;
|
|
140
140
|
type: import("zod").ZodNativeEnum<typeof import("./captcha.js").CaptchaItemTypes>;
|
|
141
141
|
}, "strip", import("zod").ZodTypeAny, {
|
|
142
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
142
143
|
hash: string;
|
|
143
144
|
data: string;
|
|
144
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
145
145
|
}, {
|
|
146
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
146
147
|
hash: string;
|
|
147
148
|
data: string;
|
|
148
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
149
149
|
}>, "many">;
|
|
150
150
|
target: import("zod").ZodString;
|
|
151
151
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
152
|
+
salt: string;
|
|
152
153
|
items: {
|
|
154
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
153
155
|
hash: string;
|
|
154
156
|
data: string;
|
|
155
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
156
157
|
}[];
|
|
157
|
-
salt: string;
|
|
158
158
|
target: string;
|
|
159
159
|
captchaId?: string | undefined;
|
|
160
160
|
captchaContentId?: string | undefined;
|
|
@@ -162,12 +162,12 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
|
|
|
162
162
|
unlabelled?: number[] | undefined;
|
|
163
163
|
timeLimit?: number | undefined;
|
|
164
164
|
}, {
|
|
165
|
+
salt: string;
|
|
165
166
|
items: {
|
|
167
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
166
168
|
hash: string;
|
|
167
169
|
data: string;
|
|
168
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
169
170
|
}[];
|
|
170
|
-
salt: string;
|
|
171
171
|
target: string;
|
|
172
172
|
captchaId?: string | undefined;
|
|
173
173
|
captchaContentId?: string | undefined;
|
|
@@ -193,13 +193,13 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
|
|
|
193
193
|
data: import("zod").ZodString;
|
|
194
194
|
type: import("zod").ZodNativeEnum<typeof import("./captcha.js").CaptchaItemTypes>;
|
|
195
195
|
}, "strip", import("zod").ZodTypeAny, {
|
|
196
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
196
197
|
hash: string;
|
|
197
198
|
data: string;
|
|
198
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
199
199
|
}, {
|
|
200
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
200
201
|
hash: string;
|
|
201
202
|
data: string;
|
|
202
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
203
203
|
}>, "many">;
|
|
204
204
|
target: import("zod").ZodString;
|
|
205
205
|
}>, {
|
|
@@ -209,12 +209,12 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
|
|
|
209
209
|
solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
210
210
|
unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
211
211
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
212
|
+
salt: string;
|
|
212
213
|
items: {
|
|
214
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
213
215
|
hash: string;
|
|
214
216
|
data: string;
|
|
215
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
216
217
|
}[];
|
|
217
|
-
salt: string;
|
|
218
218
|
target: string;
|
|
219
219
|
captchaId?: string | undefined;
|
|
220
220
|
captchaContentId?: string | undefined;
|
|
@@ -222,12 +222,12 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
|
|
|
222
222
|
unlabelled?: number[] | undefined;
|
|
223
223
|
timeLimit?: number | undefined;
|
|
224
224
|
}, {
|
|
225
|
+
salt: string;
|
|
225
226
|
items: {
|
|
227
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
226
228
|
hash: string;
|
|
227
229
|
data: string;
|
|
228
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
229
230
|
}[];
|
|
230
|
-
salt: string;
|
|
231
231
|
target: string;
|
|
232
232
|
captchaId?: string | undefined;
|
|
233
233
|
captchaContentId?: string | undefined;
|
|
@@ -237,12 +237,12 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
|
|
|
237
237
|
}>, "many">;
|
|
238
238
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
239
239
|
captchas: {
|
|
240
|
+
salt: string;
|
|
240
241
|
items: {
|
|
242
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
241
243
|
hash: string;
|
|
242
244
|
data: string;
|
|
243
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
244
245
|
}[];
|
|
245
|
-
salt: string;
|
|
246
246
|
target: string;
|
|
247
247
|
captchaId?: string | undefined;
|
|
248
248
|
captchaContentId?: string | undefined;
|
|
@@ -258,12 +258,12 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
|
|
|
258
258
|
contentTree?: string[][] | undefined;
|
|
259
259
|
}, {
|
|
260
260
|
captchas: {
|
|
261
|
+
salt: string;
|
|
261
262
|
items: {
|
|
263
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
262
264
|
hash: string;
|
|
263
265
|
data: string;
|
|
264
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
265
266
|
}[];
|
|
266
|
-
salt: string;
|
|
267
267
|
target: string;
|
|
268
268
|
captchaId?: string | undefined;
|
|
269
269
|
captchaContentId?: string | undefined;
|
|
@@ -294,25 +294,25 @@ export declare const DatasetWithIdsSchema: import("zod").ZodObject<{
|
|
|
294
294
|
data: import("zod").ZodString;
|
|
295
295
|
type: import("zod").ZodNativeEnum<typeof import("./captcha.js").CaptchaItemTypes>;
|
|
296
296
|
}, "strip", import("zod").ZodTypeAny, {
|
|
297
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
297
298
|
hash: string;
|
|
298
299
|
data: string;
|
|
299
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
300
300
|
}, {
|
|
301
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
301
302
|
hash: string;
|
|
302
303
|
data: string;
|
|
303
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
304
304
|
}>, "many">;
|
|
305
305
|
target: import("zod").ZodString;
|
|
306
306
|
}>, {
|
|
307
307
|
solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
308
308
|
unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
309
309
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
310
|
+
salt: string;
|
|
310
311
|
items: {
|
|
312
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
311
313
|
hash: string;
|
|
312
314
|
data: string;
|
|
313
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
314
315
|
}[];
|
|
315
|
-
salt: string;
|
|
316
316
|
target: string;
|
|
317
317
|
captchaId?: string | undefined;
|
|
318
318
|
captchaContentId?: string | undefined;
|
|
@@ -320,12 +320,12 @@ export declare const DatasetWithIdsSchema: import("zod").ZodObject<{
|
|
|
320
320
|
unlabelled?: string[] | undefined;
|
|
321
321
|
timeLimit?: number | undefined;
|
|
322
322
|
}, {
|
|
323
|
+
salt: string;
|
|
323
324
|
items: {
|
|
325
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
324
326
|
hash: string;
|
|
325
327
|
data: string;
|
|
326
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
327
328
|
}[];
|
|
328
|
-
salt: string;
|
|
329
329
|
target: string;
|
|
330
330
|
captchaId?: string | undefined;
|
|
331
331
|
captchaContentId?: string | undefined;
|
|
@@ -338,12 +338,12 @@ export declare const DatasetWithIdsSchema: import("zod").ZodObject<{
|
|
|
338
338
|
contentTree: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>;
|
|
339
339
|
}, "strip", import("zod").ZodTypeAny, {
|
|
340
340
|
captchas: {
|
|
341
|
+
salt: string;
|
|
341
342
|
items: {
|
|
343
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
342
344
|
hash: string;
|
|
343
345
|
data: string;
|
|
344
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
345
346
|
}[];
|
|
346
|
-
salt: string;
|
|
347
347
|
target: string;
|
|
348
348
|
captchaId?: string | undefined;
|
|
349
349
|
captchaContentId?: string | undefined;
|
|
@@ -358,12 +358,12 @@ export declare const DatasetWithIdsSchema: import("zod").ZodObject<{
|
|
|
358
358
|
contentTree?: string[][] | undefined;
|
|
359
359
|
}, {
|
|
360
360
|
captchas: {
|
|
361
|
+
salt: string;
|
|
361
362
|
items: {
|
|
363
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
362
364
|
hash: string;
|
|
363
365
|
data: string;
|
|
364
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
365
366
|
}[];
|
|
366
|
-
salt: string;
|
|
367
367
|
target: string;
|
|
368
368
|
captchaId?: string | undefined;
|
|
369
369
|
captchaContentId?: string | undefined;
|
|
@@ -393,25 +393,25 @@ export declare const DatasetWithIdsAndTreeSchema: import("zod").ZodObject<import
|
|
|
393
393
|
data: import("zod").ZodString;
|
|
394
394
|
type: import("zod").ZodNativeEnum<typeof import("./captcha.js").CaptchaItemTypes>;
|
|
395
395
|
}, "strip", import("zod").ZodTypeAny, {
|
|
396
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
396
397
|
hash: string;
|
|
397
398
|
data: string;
|
|
398
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
399
399
|
}, {
|
|
400
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
400
401
|
hash: string;
|
|
401
402
|
data: string;
|
|
402
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
403
403
|
}>, "many">;
|
|
404
404
|
target: import("zod").ZodString;
|
|
405
405
|
}>, {
|
|
406
406
|
solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
407
407
|
unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
408
408
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
409
|
+
salt: string;
|
|
409
410
|
items: {
|
|
411
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
410
412
|
hash: string;
|
|
411
413
|
data: string;
|
|
412
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
413
414
|
}[];
|
|
414
|
-
salt: string;
|
|
415
415
|
target: string;
|
|
416
416
|
captchaId?: string | undefined;
|
|
417
417
|
captchaContentId?: string | undefined;
|
|
@@ -419,12 +419,12 @@ export declare const DatasetWithIdsAndTreeSchema: import("zod").ZodObject<import
|
|
|
419
419
|
unlabelled?: string[] | undefined;
|
|
420
420
|
timeLimit?: number | undefined;
|
|
421
421
|
}, {
|
|
422
|
+
salt: string;
|
|
422
423
|
items: {
|
|
424
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
423
425
|
hash: string;
|
|
424
426
|
data: string;
|
|
425
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
426
427
|
}[];
|
|
427
|
-
salt: string;
|
|
428
428
|
target: string;
|
|
429
429
|
captchaId?: string | undefined;
|
|
430
430
|
captchaContentId?: string | undefined;
|
|
@@ -440,12 +440,12 @@ export declare const DatasetWithIdsAndTreeSchema: import("zod").ZodObject<import
|
|
|
440
440
|
contentTree: import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">;
|
|
441
441
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
442
442
|
captchas: {
|
|
443
|
+
salt: string;
|
|
443
444
|
items: {
|
|
445
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
444
446
|
hash: string;
|
|
445
447
|
data: string;
|
|
446
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
447
448
|
}[];
|
|
448
|
-
salt: string;
|
|
449
449
|
target: string;
|
|
450
450
|
captchaId?: string | undefined;
|
|
451
451
|
captchaContentId?: string | undefined;
|
|
@@ -460,12 +460,12 @@ export declare const DatasetWithIdsAndTreeSchema: import("zod").ZodObject<import
|
|
|
460
460
|
datasetContentId?: string | undefined;
|
|
461
461
|
}, {
|
|
462
462
|
captchas: {
|
|
463
|
+
salt: string;
|
|
463
464
|
items: {
|
|
465
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
464
466
|
hash: string;
|
|
465
467
|
data: string;
|
|
466
|
-
type: import("./captcha.js").CaptchaItemTypes;
|
|
467
468
|
}[];
|
|
468
|
-
salt: string;
|
|
469
469
|
target: string;
|
|
470
470
|
captchaId?: string | undefined;
|
|
471
471
|
captchaContentId?: string | undefined;
|
package/dist/datasets/dataset.js
CHANGED
|
@@ -1,32 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CaptchaTypes, CaptchasSchema, CaptchasWithNumericSolutionSchema, SelectAllCaptchaSchema } from "./captcha.js";
|
|
3
|
-
const DatasetSchema = object({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { array, nativeEnum, number, object, string } from "zod";
|
|
2
|
+
import { CaptchaTypes, CaptchasSchema, CaptchasWithNumericSolutionSchema, SelectAllCaptchaSchema, } from "./captcha.js";
|
|
3
|
+
export const DatasetSchema = object({
|
|
4
|
+
datasetId: string().optional(),
|
|
5
|
+
datasetContentId: string().optional(),
|
|
6
|
+
captchas: CaptchasSchema,
|
|
7
|
+
format: nativeEnum(CaptchaTypes),
|
|
8
|
+
solutionTree: array(array(string())).optional(),
|
|
9
|
+
contentTree: array(array(string())).optional(),
|
|
10
|
+
timeLimit: number().optional(),
|
|
11
11
|
});
|
|
12
|
-
const DatasetWithNumericSolutionSchema = DatasetSchema.extend({
|
|
13
|
-
|
|
12
|
+
export const DatasetWithNumericSolutionSchema = DatasetSchema.extend({
|
|
13
|
+
captchas: CaptchasWithNumericSolutionSchema,
|
|
14
14
|
});
|
|
15
|
-
const DatasetWithIdsSchema = object({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
export const DatasetWithIdsSchema = object({
|
|
16
|
+
datasetId: string(),
|
|
17
|
+
datasetContentId: string().optional(),
|
|
18
|
+
captchas: array(SelectAllCaptchaSchema),
|
|
19
|
+
format: nativeEnum(CaptchaTypes),
|
|
20
|
+
solutionTree: array(array(string())).optional(),
|
|
21
|
+
contentTree: array(array(string())).optional(),
|
|
22
22
|
});
|
|
23
|
-
const DatasetWithIdsAndTreeSchema = DatasetWithIdsSchema.extend({
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
export const DatasetWithIdsAndTreeSchema = DatasetWithIdsSchema.extend({
|
|
24
|
+
solutionTree: array(array(string())),
|
|
25
|
+
contentTree: array(array(string())),
|
|
26
26
|
});
|
|
27
|
-
|
|
28
|
-
DatasetSchema,
|
|
29
|
-
DatasetWithIdsAndTreeSchema,
|
|
30
|
-
DatasetWithIdsSchema,
|
|
31
|
-
DatasetWithNumericSolutionSchema
|
|
32
|
-
};
|
|
27
|
+
//# sourceMappingURL=dataset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataset.js","sourceRoot":"","sources":["../../src/datasets/dataset.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAEhE,OAAO,EAEN,YAAY,EAEZ,cAAc,EACd,iCAAiC,EACjC,sBAAsB,GACtB,MAAM,cAAc,CAAC;AAiCtB,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC;IACnC,SAAS,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,gBAAgB,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,QAAQ,EAAE,cAAc;IACxB,MAAM,EAAE,UAAU,CAAC,YAAY,CAAC;IAChC,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC/C,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC9C,SAAS,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,gCAAgC,GAAG,aAAa,CAAC,MAAM,CAAC;IACpE,QAAQ,EAAE,iCAAiC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