@prosopo/types 0.2.13 → 0.2.14
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/dist/cjs/config/config.cjs +56 -52
- package/dist/cjs/config/enumMap.cjs +2 -2
- package/dist/cjs/config/network.cjs +12 -12
- package/dist/cjs/contract/artifacts.cjs +2 -2
- package/dist/cjs/datasets/captcha.cjs +36 -36
- package/dist/cjs/datasets/dataset.cjs +16 -16
- package/dist/cjs/procaptcha/manager.cjs +7 -7
- package/dist/cjs/provider/api.cjs +15 -14
- package/dist/cjs/provider/argv.cjs +2 -3
- package/dist/config/config.d.ts +253 -425
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +59 -54
- package/dist/config/config.js.map +1 -1
- package/dist/config/enumMap.d.ts +2 -2
- package/dist/config/enumMap.d.ts.map +1 -1
- package/dist/config/enumMap.js +2 -2
- package/dist/config/enumMap.js.map +1 -1
- package/dist/config/network.d.ts +23 -23
- package/dist/config/network.d.ts.map +1 -1
- package/dist/config/network.js +13 -13
- package/dist/config/network.js.map +1 -1
- package/dist/contract/artifacts.d.ts +2 -2
- package/dist/contract/artifacts.d.ts.map +1 -1
- package/dist/contract/artifacts.js +1 -1
- package/dist/contract/artifacts.js.map +1 -1
- package/dist/contract/batch.d.ts +2 -2
- package/dist/contract/batch.d.ts.map +1 -1
- package/dist/contract/contract.d.ts +1 -1
- package/dist/contract/contract.d.ts.map +1 -1
- package/dist/contract/useWeight.d.ts +1 -1
- package/dist/contract/useWeight.d.ts.map +1 -1
- package/dist/datasets/captcha.d.ts +158 -158
- package/dist/datasets/captcha.d.ts.map +1 -1
- package/dist/datasets/captcha.js +37 -37
- package/dist/datasets/captcha.js.map +1 -1
- package/dist/datasets/dataset.d.ts +87 -88
- package/dist/datasets/dataset.d.ts.map +1 -1
- package/dist/datasets/dataset.js +17 -17
- package/dist/datasets/dataset.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/procaptcha/manager.d.ts +18 -18
- package/dist/procaptcha/manager.d.ts.map +1 -1
- package/dist/procaptcha/manager.js +8 -8
- package/dist/procaptcha/manager.js.map +1 -1
- package/dist/provider/accounts.d.ts +2 -3
- package/dist/provider/accounts.d.ts.map +1 -1
- package/dist/provider/api.d.ts +32 -26
- package/dist/provider/api.d.ts.map +1 -1
- package/dist/provider/api.js +16 -15
- package/dist/provider/api.js.map +1 -1
- package/dist/provider/argv.d.ts +2 -3
- package/dist/provider/argv.d.ts.map +1 -1
- package/dist/provider/argv.js +3 -3
- package/dist/provider/argv.js.map +1 -1
- package/package.json +3 -3
- package/dist/cjs/contracts/captcha/dist/build-extrinsic/captcha.cjs +0 -339
- package/dist/cjs/contracts/captcha/dist/contract-info/captcha.cjs +0 -6
- package/dist/cjs/contracts/captcha/dist/contracts/captcha.cjs +0 -79
- package/dist/cjs/contracts/captcha/dist/data/captcha.json.cjs +0 -3374
- package/dist/cjs/contracts/captcha/dist/event-data/captcha.json.cjs +0 -3
- package/dist/cjs/contracts/captcha/dist/events/captcha.cjs +0 -23
- package/dist/cjs/contracts/captcha/dist/index.cjs +0 -44
- package/dist/cjs/contracts/captcha/dist/mixed-methods/captcha.cjs +0 -470
- package/dist/cjs/contracts/captcha/dist/query/captcha.cjs +0 -468
- package/dist/cjs/contracts/captcha/dist/shared/utils.cjs +0 -31
- package/dist/cjs/contracts/captcha/dist/tx-sign-and-send/captcha.cjs +0 -426
- package/dist/cjs/contracts/captcha/dist/types-arguments/captcha.cjs +0 -62
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Captcha, CaptchaTypes, CaptchaWithoutId } from './captcha.js';
|
|
2
|
-
import { Hash } from '@prosopo/captcha-contract';
|
|
3
|
-
import { z } from 'zod';
|
|
2
|
+
import { Hash } from '@prosopo/captcha-contract/types-arguments';
|
|
4
3
|
export type DatasetBase = {
|
|
5
4
|
datasetId?: Hash;
|
|
6
5
|
datasetContentId?: Hash;
|
|
@@ -25,21 +24,21 @@ export type DatasetWithIds = {
|
|
|
25
24
|
export interface DatasetWithIdsAndTree extends DatasetWithIds {
|
|
26
25
|
contentTree: string[][];
|
|
27
26
|
}
|
|
28
|
-
export declare const DatasetSchema:
|
|
29
|
-
datasetId:
|
|
30
|
-
datasetContentId:
|
|
31
|
-
captchas:
|
|
32
|
-
captchaId:
|
|
33
|
-
captchaContentId:
|
|
34
|
-
salt:
|
|
35
|
-
solution:
|
|
36
|
-
unlabelled:
|
|
37
|
-
timeLimit:
|
|
38
|
-
items:
|
|
39
|
-
hash:
|
|
40
|
-
data:
|
|
41
|
-
type:
|
|
42
|
-
}, "strip",
|
|
27
|
+
export declare const DatasetSchema: import("zod").ZodObject<{
|
|
28
|
+
datasetId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
29
|
+
datasetContentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
|
+
captchas: import("zod").ZodArray<import("zod").ZodObject<{
|
|
31
|
+
captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
|
|
32
|
+
captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
|
|
33
|
+
salt: import("zod").ZodString;
|
|
34
|
+
solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
35
|
+
unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
36
|
+
timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
37
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
38
|
+
hash: import("zod").ZodString;
|
|
39
|
+
data: import("zod").ZodString;
|
|
40
|
+
type: import("zod").ZodNativeEnum<typeof import("./captcha.js").CaptchaItemTypes>;
|
|
41
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
43
42
|
type: import("./captcha.js").CaptchaItemTypes;
|
|
44
43
|
data: string;
|
|
45
44
|
hash: string;
|
|
@@ -48,8 +47,8 @@ export declare const DatasetSchema: z.ZodObject<{
|
|
|
48
47
|
data: string;
|
|
49
48
|
hash: string;
|
|
50
49
|
}>, "many">;
|
|
51
|
-
target:
|
|
52
|
-
}, "strip",
|
|
50
|
+
target: import("zod").ZodString;
|
|
51
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
53
52
|
items: {
|
|
54
53
|
type: import("./captcha.js").CaptchaItemTypes;
|
|
55
54
|
data: string;
|
|
@@ -76,11 +75,11 @@ export declare const DatasetSchema: z.ZodObject<{
|
|
|
76
75
|
unlabelled?: number[] | undefined;
|
|
77
76
|
timeLimit?: number | undefined;
|
|
78
77
|
}>, "many">;
|
|
79
|
-
format:
|
|
80
|
-
solutionTree:
|
|
81
|
-
contentTree:
|
|
82
|
-
timeLimit:
|
|
83
|
-
}, "strip",
|
|
78
|
+
format: import("zod").ZodNativeEnum<typeof CaptchaTypes>;
|
|
79
|
+
solutionTree: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>;
|
|
80
|
+
contentTree: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>;
|
|
81
|
+
timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
82
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
84
83
|
captchas: {
|
|
85
84
|
items: {
|
|
86
85
|
type: import("./captcha.js").CaptchaItemTypes;
|
|
@@ -123,19 +122,19 @@ export declare const DatasetSchema: z.ZodObject<{
|
|
|
123
122
|
contentTree?: string[][] | undefined;
|
|
124
123
|
timeLimit?: number | undefined;
|
|
125
124
|
}>;
|
|
126
|
-
export declare const DatasetWithNumericSolutionSchema:
|
|
127
|
-
timeLimit:
|
|
128
|
-
format:
|
|
129
|
-
datasetId:
|
|
130
|
-
datasetContentId:
|
|
131
|
-
solutionTree:
|
|
132
|
-
contentTree:
|
|
133
|
-
captchas:
|
|
134
|
-
items:
|
|
135
|
-
hash:
|
|
136
|
-
data:
|
|
137
|
-
type:
|
|
138
|
-
}, "strip",
|
|
125
|
+
export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<{
|
|
126
|
+
timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
127
|
+
format: import("zod").ZodNativeEnum<typeof CaptchaTypes>;
|
|
128
|
+
datasetId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
129
|
+
datasetContentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
130
|
+
solutionTree: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>;
|
|
131
|
+
contentTree: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>;
|
|
132
|
+
captchas: import("zod").ZodArray<import("zod").ZodObject<{
|
|
133
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
134
|
+
hash: import("zod").ZodString;
|
|
135
|
+
data: import("zod").ZodString;
|
|
136
|
+
type: import("zod").ZodNativeEnum<typeof import("./captcha.js").CaptchaItemTypes>;
|
|
137
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
139
138
|
type: import("./captcha.js").CaptchaItemTypes;
|
|
140
139
|
data: string;
|
|
141
140
|
hash: string;
|
|
@@ -144,14 +143,14 @@ export declare const DatasetWithNumericSolutionSchema: z.ZodObject<{
|
|
|
144
143
|
data: string;
|
|
145
144
|
hash: string;
|
|
146
145
|
}>, "many">;
|
|
147
|
-
captchaId:
|
|
148
|
-
captchaContentId:
|
|
149
|
-
salt:
|
|
150
|
-
timeLimit:
|
|
151
|
-
target:
|
|
152
|
-
solution:
|
|
153
|
-
unlabelled:
|
|
154
|
-
}, "strip",
|
|
146
|
+
captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
|
|
147
|
+
captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
|
|
148
|
+
salt: import("zod").ZodString;
|
|
149
|
+
timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
150
|
+
target: import("zod").ZodString;
|
|
151
|
+
solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
152
|
+
unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
|
|
153
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
155
154
|
items: {
|
|
156
155
|
type: import("./captcha.js").CaptchaItemTypes;
|
|
157
156
|
data: string;
|
|
@@ -178,7 +177,7 @@ export declare const DatasetWithNumericSolutionSchema: z.ZodObject<{
|
|
|
178
177
|
solution?: number[] | undefined;
|
|
179
178
|
unlabelled?: number[] | undefined;
|
|
180
179
|
}>, "many">;
|
|
181
|
-
}, "strip",
|
|
180
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
182
181
|
captchas: {
|
|
183
182
|
items: {
|
|
184
183
|
type: import("./captcha.js").CaptchaItemTypes;
|
|
@@ -221,15 +220,15 @@ export declare const DatasetWithNumericSolutionSchema: z.ZodObject<{
|
|
|
221
220
|
solutionTree?: string[][] | undefined;
|
|
222
221
|
contentTree?: string[][] | undefined;
|
|
223
222
|
}>;
|
|
224
|
-
export declare const DatasetWithIdsSchema:
|
|
225
|
-
datasetId:
|
|
226
|
-
datasetContentId:
|
|
227
|
-
captchas:
|
|
228
|
-
items:
|
|
229
|
-
hash:
|
|
230
|
-
data:
|
|
231
|
-
type:
|
|
232
|
-
}, "strip",
|
|
223
|
+
export declare const DatasetWithIdsSchema: import("zod").ZodObject<{
|
|
224
|
+
datasetId: import("zod").ZodString;
|
|
225
|
+
datasetContentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
226
|
+
captchas: import("zod").ZodArray<import("zod").ZodObject<{
|
|
227
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
228
|
+
hash: import("zod").ZodString;
|
|
229
|
+
data: import("zod").ZodString;
|
|
230
|
+
type: import("zod").ZodNativeEnum<typeof import("./captcha.js").CaptchaItemTypes>;
|
|
231
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
233
232
|
type: import("./captcha.js").CaptchaItemTypes;
|
|
234
233
|
data: string;
|
|
235
234
|
hash: string;
|
|
@@ -238,14 +237,14 @@ export declare const DatasetWithIdsSchema: z.ZodObject<{
|
|
|
238
237
|
data: string;
|
|
239
238
|
hash: string;
|
|
240
239
|
}>, "many">;
|
|
241
|
-
captchaId:
|
|
242
|
-
captchaContentId:
|
|
243
|
-
salt:
|
|
244
|
-
timeLimit:
|
|
245
|
-
target:
|
|
246
|
-
solution:
|
|
247
|
-
unlabelled:
|
|
248
|
-
}, "strip",
|
|
240
|
+
captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
|
|
241
|
+
captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
|
|
242
|
+
salt: import("zod").ZodString;
|
|
243
|
+
timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
244
|
+
target: import("zod").ZodString;
|
|
245
|
+
solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
246
|
+
unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
247
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
249
248
|
items: {
|
|
250
249
|
type: import("./captcha.js").CaptchaItemTypes;
|
|
251
250
|
data: string;
|
|
@@ -272,10 +271,10 @@ export declare const DatasetWithIdsSchema: z.ZodObject<{
|
|
|
272
271
|
solution?: string[] | undefined;
|
|
273
272
|
unlabelled?: string[] | undefined;
|
|
274
273
|
}>, "many">;
|
|
275
|
-
format:
|
|
276
|
-
solutionTree:
|
|
277
|
-
contentTree:
|
|
278
|
-
}, "strip",
|
|
274
|
+
format: import("zod").ZodNativeEnum<typeof CaptchaTypes>;
|
|
275
|
+
solutionTree: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>;
|
|
276
|
+
contentTree: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">>;
|
|
277
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
279
278
|
captchas: {
|
|
280
279
|
items: {
|
|
281
280
|
type: import("./captcha.js").CaptchaItemTypes;
|
|
@@ -316,13 +315,13 @@ export declare const DatasetWithIdsSchema: z.ZodObject<{
|
|
|
316
315
|
solutionTree?: string[][] | undefined;
|
|
317
316
|
contentTree?: string[][] | undefined;
|
|
318
317
|
}>;
|
|
319
|
-
export declare const DatasetWithIdsAndTreeSchema:
|
|
320
|
-
captchas:
|
|
321
|
-
items:
|
|
322
|
-
hash:
|
|
323
|
-
data:
|
|
324
|
-
type:
|
|
325
|
-
}, "strip",
|
|
318
|
+
export declare const DatasetWithIdsAndTreeSchema: import("zod").ZodObject<{
|
|
319
|
+
captchas: import("zod").ZodArray<import("zod").ZodObject<{
|
|
320
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
321
|
+
hash: import("zod").ZodString;
|
|
322
|
+
data: import("zod").ZodString;
|
|
323
|
+
type: import("zod").ZodNativeEnum<typeof import("./captcha.js").CaptchaItemTypes>;
|
|
324
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
326
325
|
type: import("./captcha.js").CaptchaItemTypes;
|
|
327
326
|
data: string;
|
|
328
327
|
hash: string;
|
|
@@ -331,14 +330,14 @@ export declare const DatasetWithIdsAndTreeSchema: z.ZodObject<{
|
|
|
331
330
|
data: string;
|
|
332
331
|
hash: string;
|
|
333
332
|
}>, "many">;
|
|
334
|
-
captchaId:
|
|
335
|
-
captchaContentId:
|
|
336
|
-
salt:
|
|
337
|
-
timeLimit:
|
|
338
|
-
target:
|
|
339
|
-
solution:
|
|
340
|
-
unlabelled:
|
|
341
|
-
}, "strip",
|
|
333
|
+
captchaId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
|
|
334
|
+
captchaContentId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodUndefined]>;
|
|
335
|
+
salt: import("zod").ZodString;
|
|
336
|
+
timeLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
337
|
+
target: import("zod").ZodString;
|
|
338
|
+
solution: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
339
|
+
unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
340
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
342
341
|
items: {
|
|
343
342
|
type: import("./captcha.js").CaptchaItemTypes;
|
|
344
343
|
data: string;
|
|
@@ -365,12 +364,12 @@ export declare const DatasetWithIdsAndTreeSchema: z.ZodObject<{
|
|
|
365
364
|
solution?: string[] | undefined;
|
|
366
365
|
unlabelled?: string[] | undefined;
|
|
367
366
|
}>, "many">;
|
|
368
|
-
format:
|
|
369
|
-
datasetId:
|
|
370
|
-
datasetContentId:
|
|
371
|
-
solutionTree:
|
|
372
|
-
contentTree:
|
|
373
|
-
}, "strip",
|
|
367
|
+
format: import("zod").ZodNativeEnum<typeof CaptchaTypes>;
|
|
368
|
+
datasetId: import("zod").ZodString;
|
|
369
|
+
datasetContentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
370
|
+
solutionTree: import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">;
|
|
371
|
+
contentTree: import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodString, "many">, "many">;
|
|
372
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
374
373
|
captchas: {
|
|
375
374
|
items: {
|
|
376
375
|
type: import("./captcha.js").CaptchaItemTypes;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataset.d.ts","sourceRoot":"","sources":["../../src/datasets/dataset.ts"],"names":[],"mappings":"AAaA,OAAO,EACH,OAAO,EACP,YAAY,EACZ,gBAAgB,EAInB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,IAAI,EAAE,MAAM,
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3C,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtC,CAAA"}
|
package/dist/datasets/dataset.js
CHANGED
|
@@ -12,30 +12,30 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
import { CaptchaTypes, CaptchasSchema, CaptchasWithNumericSolutionSchema, SelectAllCaptchaSchema, } from './captcha.js';
|
|
15
|
-
import {
|
|
15
|
+
import { array, nativeEnum, number, object, string } from 'zod';
|
|
16
16
|
// Zod schemas
|
|
17
|
-
export const DatasetSchema =
|
|
18
|
-
datasetId:
|
|
19
|
-
datasetContentId:
|
|
17
|
+
export const DatasetSchema = object({
|
|
18
|
+
datasetId: string().optional(),
|
|
19
|
+
datasetContentId: string().optional(),
|
|
20
20
|
captchas: CaptchasSchema,
|
|
21
|
-
format:
|
|
22
|
-
solutionTree:
|
|
23
|
-
contentTree:
|
|
24
|
-
timeLimit:
|
|
21
|
+
format: nativeEnum(CaptchaTypes),
|
|
22
|
+
solutionTree: array(array(string())).optional(),
|
|
23
|
+
contentTree: array(array(string())).optional(),
|
|
24
|
+
timeLimit: number().optional(),
|
|
25
25
|
});
|
|
26
26
|
export const DatasetWithNumericSolutionSchema = DatasetSchema.extend({
|
|
27
27
|
captchas: CaptchasWithNumericSolutionSchema,
|
|
28
28
|
});
|
|
29
|
-
export const DatasetWithIdsSchema =
|
|
30
|
-
datasetId:
|
|
31
|
-
datasetContentId:
|
|
32
|
-
captchas:
|
|
33
|
-
format:
|
|
34
|
-
solutionTree:
|
|
35
|
-
contentTree:
|
|
29
|
+
export const DatasetWithIdsSchema = object({
|
|
30
|
+
datasetId: string(),
|
|
31
|
+
datasetContentId: string().optional(),
|
|
32
|
+
captchas: array(SelectAllCaptchaSchema),
|
|
33
|
+
format: nativeEnum(CaptchaTypes),
|
|
34
|
+
solutionTree: array(array(string())).optional(),
|
|
35
|
+
contentTree: array(array(string())).optional(),
|
|
36
36
|
});
|
|
37
37
|
export const DatasetWithIdsAndTreeSchema = DatasetWithIdsSchema.extend({
|
|
38
|
-
solutionTree:
|
|
39
|
-
contentTree:
|
|
38
|
+
solutionTree: array(array(string())),
|
|
39
|
+
contentTree: array(array(string())),
|
|
40
40
|
});
|
|
41
41
|
//# sourceMappingURL=dataset.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataset.js","sourceRoot":"","sources":["../../src/datasets/dataset.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,OAAO,EAEH,YAAY,EAEZ,cAAc,EACd,iCAAiC,EACjC,sBAAsB,GACzB,MAAM,cAAc,CAAA;AAErB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"dataset.js","sourceRoot":"","sources":["../../src/datasets/dataset.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,OAAO,EAEH,YAAY,EAEZ,cAAc,EACd,iCAAiC,EACjC,sBAAsB,GACzB,MAAM,cAAc,CAAA;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EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;CACtC,CAAC,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,5 +4,5 @@ export * from './datasets/index.js';
|
|
|
4
4
|
export * from './provider/index.js';
|
|
5
5
|
export * from './procaptcha/index.js';
|
|
6
6
|
export { default as networks } from './networks/index.js';
|
|
7
|
-
export type { Hash, AccountId } from '@prosopo/captcha-contract';
|
|
7
|
+
export type { Hash, AccountId } from '@prosopo/captcha-contract/types-arguments';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACzD,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACzD,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ProcaptchaOutputSchema:
|
|
3
|
-
commitmentId:
|
|
4
|
-
providerUrl:
|
|
5
|
-
dapp:
|
|
6
|
-
user:
|
|
7
|
-
blockNumber:
|
|
8
|
-
}, "strip",
|
|
1
|
+
import { infer as zInfer } from 'zod';
|
|
2
|
+
export declare const ProcaptchaOutputSchema: import("zod").ZodObject<{
|
|
3
|
+
commitmentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
+
providerUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
|
+
dapp: import("zod").ZodString;
|
|
6
|
+
user: import("zod").ZodString;
|
|
7
|
+
blockNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
8
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
9
9
|
user: string;
|
|
10
10
|
dapp: string;
|
|
11
11
|
commitmentId?: string | undefined;
|
|
@@ -23,15 +23,15 @@ export declare const ProcaptchaOutputSchema: z.ZodObject<{
|
|
|
23
23
|
* whether verified by smart contract, a pending commitment in the cache of a
|
|
24
24
|
* provider or a captcha challenge.
|
|
25
25
|
*/
|
|
26
|
-
export type ProcaptchaOutput =
|
|
27
|
-
export declare const ProcaptchaResponse:
|
|
28
|
-
"procaptcha-response":
|
|
29
|
-
commitmentId:
|
|
30
|
-
providerUrl:
|
|
31
|
-
dapp:
|
|
32
|
-
user:
|
|
33
|
-
blockNumber:
|
|
34
|
-
}, "strip",
|
|
26
|
+
export type ProcaptchaOutput = zInfer<typeof ProcaptchaOutputSchema>;
|
|
27
|
+
export declare const ProcaptchaResponse: import("zod").ZodObject<{
|
|
28
|
+
"procaptcha-response": import("zod").ZodObject<{
|
|
29
|
+
commitmentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
30
|
+
providerUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
|
+
dapp: import("zod").ZodString;
|
|
32
|
+
user: import("zod").ZodString;
|
|
33
|
+
blockNumber: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
34
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
35
35
|
user: string;
|
|
36
36
|
dapp: string;
|
|
37
37
|
commitmentId?: string | undefined;
|
|
@@ -44,7 +44,7 @@ export declare const ProcaptchaResponse: z.ZodObject<{
|
|
|
44
44
|
providerUrl?: string | undefined;
|
|
45
45
|
blockNumber?: number | undefined;
|
|
46
46
|
}>;
|
|
47
|
-
}, "strip",
|
|
47
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
48
48
|
"procaptcha-response": {
|
|
49
49
|
user: string;
|
|
50
50
|
dapp: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/procaptcha/manager.ts"],"names":[],"mappings":"AAcA,OAAO,
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/procaptcha/manager.ts"],"names":[],"mappings":"AAcA,OAAO,EAA0B,KAAK,IAAI,MAAM,EAAE,MAAM,KAAK,CAAA;AAE7D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAMjC,CAAA;AAEF;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAEpE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAA"}
|
|
@@ -12,15 +12,15 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
import { ApiParams } from '../provider/index.js';
|
|
15
|
-
import {
|
|
16
|
-
export const ProcaptchaOutputSchema =
|
|
17
|
-
[ApiParams.commitmentId]:
|
|
18
|
-
[ApiParams.providerUrl]:
|
|
19
|
-
[ApiParams.dapp]:
|
|
20
|
-
[ApiParams.user]:
|
|
21
|
-
[ApiParams.blockNumber]:
|
|
15
|
+
import { number, object, string } from 'zod';
|
|
16
|
+
export const ProcaptchaOutputSchema = object({
|
|
17
|
+
[ApiParams.commitmentId]: string().optional(),
|
|
18
|
+
[ApiParams.providerUrl]: string().optional(),
|
|
19
|
+
[ApiParams.dapp]: string(),
|
|
20
|
+
[ApiParams.user]: string(),
|
|
21
|
+
[ApiParams.blockNumber]: number().optional(),
|
|
22
22
|
});
|
|
23
|
-
export const ProcaptchaResponse =
|
|
23
|
+
export const ProcaptchaResponse = object({
|
|
24
24
|
[ApiParams.procaptchaResponse]: ProcaptchaOutputSchema,
|
|
25
25
|
});
|
|
26
26
|
//# sourceMappingURL=manager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.js","sourceRoot":"","sources":["../../src/procaptcha/manager.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"manager.js","sourceRoot":"","sources":["../../src/procaptcha/manager.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAmB,MAAM,KAAK,CAAA;AAE7D,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC;IACzC,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7C,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5C,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE;IAC1B,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE;IAC1B,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAA;AASF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC;IACrC,CAAC,SAAS,CAAC,kBAAkB,CAAC,EAAE,sBAAsB;CACzD,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="bn.js" />
|
|
2
|
-
import { BN } from '@polkadot/util';
|
|
2
|
+
import { BN } from '@polkadot/util/bn';
|
|
3
3
|
import { KeyringPair } from '@polkadot/keyring/types';
|
|
4
|
-
import { Payee } from '@prosopo/captcha-contract';
|
|
4
|
+
import { Payee } from '@prosopo/captcha-contract/types-arguments';
|
|
5
5
|
export interface IUserAccount {
|
|
6
6
|
secret?: string;
|
|
7
7
|
address: string;
|
|
@@ -17,7 +17,6 @@ export interface IProviderAccount extends IUserAccount {
|
|
|
17
17
|
}
|
|
18
18
|
export interface IDappAccount {
|
|
19
19
|
secret: string;
|
|
20
|
-
contractAccount: string;
|
|
21
20
|
fundAmount: number | BN;
|
|
22
21
|
pair?: KeyringPair;
|
|
23
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/provider/accounts.ts"],"names":[],"mappings":";AAaA,OAAO,EAAE,EAAE,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/provider/accounts.ts"],"names":[],"mappings":";AAaA,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAA;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAA;AAEjE,MAAM,WAAW,YAAY;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IAClD,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,GAAG,EAAE,CAAA;IAClB,KAAK,EAAE,KAAK,CAAC,IAAI,CAAA;IACjB,gBAAgB,EAAE,MAAM,CAAA;IACxB,IAAI,CAAC,EAAE,WAAW,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,GAAG,EAAE,CAAA;IACvB,IAAI,CAAC,EAAE,WAAW,CAAA;CACrB"}
|
package/dist/provider/api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CaptchaWithProof } from '../datasets/index.js';
|
|
2
|
+
import { infer as zInfer } from 'zod';
|
|
2
3
|
export declare enum ApiPaths {
|
|
3
4
|
GetCaptchaChallenge = "/v1/prosopo/provider/captcha",
|
|
4
5
|
SubmitCaptchaSolution = "/v1/prosopo/provider/solution",
|
|
@@ -15,6 +16,7 @@ export declare enum ApiParams {
|
|
|
15
16
|
requestHash = "requestHash",
|
|
16
17
|
captchas = "captchas",
|
|
17
18
|
commitmentId = "commitmentId",
|
|
19
|
+
proof = "proof",
|
|
18
20
|
providerUrl = "providerUrl",
|
|
19
21
|
procaptchaResponse = "procaptcha-response"
|
|
20
22
|
}
|
|
@@ -27,12 +29,12 @@ export interface CaptchaIdAndProof {
|
|
|
27
29
|
captchaId: string;
|
|
28
30
|
proof: string[][];
|
|
29
31
|
}
|
|
30
|
-
export declare const CaptchaRequestBody:
|
|
31
|
-
user:
|
|
32
|
-
dapp:
|
|
33
|
-
datasetId:
|
|
34
|
-
blockNumber:
|
|
35
|
-
}, "strip",
|
|
32
|
+
export declare const CaptchaRequestBody: import("zod").ZodObject<{
|
|
33
|
+
user: import("zod").ZodString;
|
|
34
|
+
dapp: import("zod").ZodString;
|
|
35
|
+
datasetId: import("zod").ZodString;
|
|
36
|
+
blockNumber: import("zod").ZodString;
|
|
37
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
36
38
|
datasetId: string;
|
|
37
39
|
user: string;
|
|
38
40
|
dapp: string;
|
|
@@ -43,16 +45,20 @@ export declare const CaptchaRequestBody: z.ZodObject<{
|
|
|
43
45
|
dapp: string;
|
|
44
46
|
blockNumber: string;
|
|
45
47
|
}>;
|
|
46
|
-
export type CaptchaRequestBodyType =
|
|
47
|
-
export
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
export type CaptchaRequestBodyType = zInfer<typeof CaptchaRequestBody>;
|
|
49
|
+
export type CaptchaResponseBody = {
|
|
50
|
+
[ApiParams.captchas]: CaptchaWithProof[];
|
|
51
|
+
[ApiParams.requestHash]: string;
|
|
52
|
+
};
|
|
53
|
+
export declare const CaptchaSolutionBody: import("zod").ZodObject<{
|
|
54
|
+
user: import("zod").ZodString;
|
|
55
|
+
dapp: import("zod").ZodString;
|
|
56
|
+
captchas: import("zod").ZodArray<import("zod").ZodObject<{
|
|
57
|
+
captchaId: import("zod").ZodString;
|
|
58
|
+
captchaContentId: import("zod").ZodString;
|
|
59
|
+
solution: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
60
|
+
salt: import("zod").ZodString;
|
|
61
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
56
62
|
captchaId: string;
|
|
57
63
|
captchaContentId: string;
|
|
58
64
|
salt: string;
|
|
@@ -63,9 +69,9 @@ export declare const CaptchaSolutionBody: z.ZodObject<{
|
|
|
63
69
|
salt: string;
|
|
64
70
|
solution: string[];
|
|
65
71
|
}>, "many">;
|
|
66
|
-
requestHash:
|
|
67
|
-
signature:
|
|
68
|
-
}, "strip",
|
|
72
|
+
requestHash: import("zod").ZodString;
|
|
73
|
+
signature: import("zod").ZodString;
|
|
74
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
69
75
|
user: string;
|
|
70
76
|
dapp: string;
|
|
71
77
|
signature: string;
|
|
@@ -88,18 +94,18 @@ export declare const CaptchaSolutionBody: z.ZodObject<{
|
|
|
88
94
|
solution: string[];
|
|
89
95
|
}[];
|
|
90
96
|
}>;
|
|
91
|
-
export type CaptchaSolutionBodyType =
|
|
92
|
-
export declare const VerifySolutionBody:
|
|
93
|
-
user:
|
|
94
|
-
commitmentId:
|
|
95
|
-
}, "strip",
|
|
97
|
+
export type CaptchaSolutionBodyType = zInfer<typeof CaptchaSolutionBody>;
|
|
98
|
+
export declare const VerifySolutionBody: import("zod").ZodObject<{
|
|
99
|
+
user: import("zod").ZodString;
|
|
100
|
+
commitmentId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
101
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
96
102
|
user: string;
|
|
97
103
|
commitmentId?: string | undefined;
|
|
98
104
|
}, {
|
|
99
105
|
user: string;
|
|
100
106
|
commitmentId?: string | undefined;
|
|
101
107
|
}>;
|
|
102
|
-
export type VerifySolutionBodyType =
|
|
108
|
+
export type VerifySolutionBodyType = zInfer<typeof VerifySolutionBody>;
|
|
103
109
|
export interface PendingCaptchaRequest {
|
|
104
110
|
accountId: string;
|
|
105
111
|
pending: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/provider/api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/provider/api.ts"],"names":[],"mappings":"AAaA,OAAO,EAAyB,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAC9E,OAAO,EAAyB,KAAK,IAAI,MAAM,EAAE,MAAM,KAAK,CAAA;AAE5D,oBAAY,QAAQ;IAChB,mBAAmB,iCAAiC;IACpD,qBAAqB,kCAAkC;IACvD,qBAAqB,gCAAgC;IACrD,iBAAiB,gCAAgC;IACjD,kBAAkB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