@prosopo/types 2.3.1 → 2.4.1
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/api/params.d.ts +3 -1
- package/dist/api/params.d.ts.map +1 -1
- package/dist/api/params.js +2 -0
- package/dist/api/params.js.map +1 -1
- package/dist/client/captchaType.d.ts +7 -0
- package/dist/client/captchaType.d.ts.map +1 -0
- package/dist/client/captchaType.js +9 -0
- package/dist/client/captchaType.js.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +2 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/settings.d.ts +20 -0
- package/dist/client/settings.d.ts.map +1 -0
- package/dist/client/settings.js +9 -0
- package/dist/client/settings.js.map +1 -0
- package/dist/client/user.d.ts +1 -6
- package/dist/client/user.d.ts.map +1 -1
- package/dist/client/user.js.map +1 -1
- package/dist/config/config.d.ts +15 -148
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +2 -6
- package/dist/config/config.js.map +1 -1
- package/dist/config/frictionless.d.ts +11 -0
- package/dist/config/frictionless.d.ts.map +1 -0
- package/dist/config/frictionless.js +6 -0
- package/dist/config/frictionless.js.map +1 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +1 -0
- package/dist/config/index.js.map +1 -1
- package/dist/datasets/captcha.d.ts +1 -0
- package/dist/datasets/captcha.d.ts.map +1 -1
- package/dist/datasets/captcha.js.map +1 -1
- package/dist/datasets/dataset.d.ts +34 -34
- package/dist/datasets/dataset.d.ts.map +1 -1
- package/dist/datasets/dataset.js.map +1 -1
- package/dist/procaptcha/api.d.ts +1 -1
- package/dist/procaptcha/api.d.ts.map +1 -1
- package/dist/procaptcha/index.d.ts +0 -1
- package/dist/procaptcha/index.d.ts.map +1 -1
- package/dist/procaptcha/index.js +0 -1
- package/dist/procaptcha/index.js.map +1 -1
- package/dist/procaptcha/manager.d.ts +13 -13
- package/dist/procaptcha/manager.d.ts.map +1 -1
- package/dist/procaptcha/manager.js.map +1 -1
- package/dist/procaptcha/props.d.ts +5 -2
- package/dist/procaptcha/props.d.ts.map +1 -1
- package/dist/procaptcha-bundle/index.d.ts +2 -7
- package/dist/procaptcha-bundle/index.d.ts.map +1 -1
- package/dist/procaptcha-bundle/index.js +1 -6
- package/dist/procaptcha-bundle/index.js.map +1 -1
- package/dist/procaptcha-frictionless/props.d.ts +3 -2
- package/dist/procaptcha-frictionless/props.d.ts.map +1 -1
- package/dist/provider/api.d.ts +26 -300
- package/dist/provider/api.d.ts.map +1 -1
- package/dist/provider/api.js +4 -29
- package/dist/provider/api.js.map +1 -1
- package/package.json +4 -4
- package/dist/procaptcha/storage.d.ts +0 -16
- package/dist/procaptcha/storage.d.ts.map +0 -1
- package/dist/procaptcha/storage.js +0 -7
- package/dist/procaptcha/storage.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Hash } from "
|
|
1
|
+
import type { Hash } from "../provider/api.js";
|
|
2
2
|
import { type Captcha, CaptchaTypes, type CaptchaWithoutId } from "./captcha.js";
|
|
3
3
|
export type DatasetBase = {
|
|
4
4
|
datasetId?: Hash;
|
|
@@ -38,22 +38,22 @@ export declare const DatasetSchema: import("zod").ZodObject<{
|
|
|
38
38
|
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
39
39
|
hash: import("zod").ZodString;
|
|
40
40
|
data: import("zod").ZodString;
|
|
41
|
-
type: import("zod").ZodNativeEnum<typeof import("
|
|
41
|
+
type: import("zod").ZodNativeEnum<typeof import("./captcha.js").CaptchaItemTypes>;
|
|
42
42
|
}, "strip", import("zod").ZodTypeAny, {
|
|
43
43
|
hash: string;
|
|
44
44
|
data: string;
|
|
45
|
-
type: import("
|
|
45
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
46
46
|
}, {
|
|
47
47
|
hash: string;
|
|
48
48
|
data: string;
|
|
49
|
-
type: import("
|
|
49
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
50
50
|
}>, "many">;
|
|
51
51
|
target: import("zod").ZodString;
|
|
52
52
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
53
53
|
items: {
|
|
54
54
|
hash: string;
|
|
55
55
|
data: string;
|
|
56
|
-
type: import("
|
|
56
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
57
57
|
}[];
|
|
58
58
|
salt: string;
|
|
59
59
|
target: string;
|
|
@@ -66,7 +66,7 @@ export declare const DatasetSchema: import("zod").ZodObject<{
|
|
|
66
66
|
items: {
|
|
67
67
|
hash: string;
|
|
68
68
|
data: string;
|
|
69
|
-
type: import("
|
|
69
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
70
70
|
}[];
|
|
71
71
|
salt: string;
|
|
72
72
|
target: string;
|
|
@@ -85,7 +85,7 @@ export declare const DatasetSchema: import("zod").ZodObject<{
|
|
|
85
85
|
items: {
|
|
86
86
|
hash: string;
|
|
87
87
|
data: string;
|
|
88
|
-
type: import("
|
|
88
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
89
89
|
}[];
|
|
90
90
|
salt: string;
|
|
91
91
|
target: string;
|
|
@@ -106,7 +106,7 @@ export declare const DatasetSchema: import("zod").ZodObject<{
|
|
|
106
106
|
items: {
|
|
107
107
|
hash: string;
|
|
108
108
|
data: string;
|
|
109
|
-
type: import("
|
|
109
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
110
110
|
}[];
|
|
111
111
|
salt: string;
|
|
112
112
|
target: string;
|
|
@@ -137,22 +137,22 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
|
|
|
137
137
|
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
138
138
|
hash: import("zod").ZodString;
|
|
139
139
|
data: import("zod").ZodString;
|
|
140
|
-
type: import("zod").ZodNativeEnum<typeof import("
|
|
140
|
+
type: import("zod").ZodNativeEnum<typeof import("./captcha.js").CaptchaItemTypes>;
|
|
141
141
|
}, "strip", import("zod").ZodTypeAny, {
|
|
142
142
|
hash: string;
|
|
143
143
|
data: string;
|
|
144
|
-
type: import("
|
|
144
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
145
145
|
}, {
|
|
146
146
|
hash: string;
|
|
147
147
|
data: string;
|
|
148
|
-
type: import("
|
|
148
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
149
149
|
}>, "many">;
|
|
150
150
|
target: import("zod").ZodString;
|
|
151
151
|
}>, "strip", import("zod").ZodTypeAny, {
|
|
152
152
|
items: {
|
|
153
153
|
hash: string;
|
|
154
154
|
data: string;
|
|
155
|
-
type: import("
|
|
155
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
156
156
|
}[];
|
|
157
157
|
salt: string;
|
|
158
158
|
target: string;
|
|
@@ -165,7 +165,7 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
|
|
|
165
165
|
items: {
|
|
166
166
|
hash: string;
|
|
167
167
|
data: string;
|
|
168
|
-
type: import("
|
|
168
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
169
169
|
}[];
|
|
170
170
|
salt: string;
|
|
171
171
|
target: string;
|
|
@@ -191,15 +191,15 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
|
|
|
191
191
|
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
192
192
|
hash: import("zod").ZodString;
|
|
193
193
|
data: import("zod").ZodString;
|
|
194
|
-
type: import("zod").ZodNativeEnum<typeof import("
|
|
194
|
+
type: import("zod").ZodNativeEnum<typeof import("./captcha.js").CaptchaItemTypes>;
|
|
195
195
|
}, "strip", import("zod").ZodTypeAny, {
|
|
196
196
|
hash: string;
|
|
197
197
|
data: string;
|
|
198
|
-
type: import("
|
|
198
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
199
199
|
}, {
|
|
200
200
|
hash: string;
|
|
201
201
|
data: string;
|
|
202
|
-
type: import("
|
|
202
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
203
203
|
}>, "many">;
|
|
204
204
|
target: import("zod").ZodString;
|
|
205
205
|
}>, {
|
|
@@ -212,7 +212,7 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
|
|
|
212
212
|
items: {
|
|
213
213
|
hash: string;
|
|
214
214
|
data: string;
|
|
215
|
-
type: import("
|
|
215
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
216
216
|
}[];
|
|
217
217
|
salt: string;
|
|
218
218
|
target: string;
|
|
@@ -225,7 +225,7 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
|
|
|
225
225
|
items: {
|
|
226
226
|
hash: string;
|
|
227
227
|
data: string;
|
|
228
|
-
type: import("
|
|
228
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
229
229
|
}[];
|
|
230
230
|
salt: string;
|
|
231
231
|
target: string;
|
|
@@ -240,7 +240,7 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
|
|
|
240
240
|
items: {
|
|
241
241
|
hash: string;
|
|
242
242
|
data: string;
|
|
243
|
-
type: import("
|
|
243
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
244
244
|
}[];
|
|
245
245
|
salt: string;
|
|
246
246
|
target: string;
|
|
@@ -261,7 +261,7 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
|
|
|
261
261
|
items: {
|
|
262
262
|
hash: string;
|
|
263
263
|
data: string;
|
|
264
|
-
type: import("
|
|
264
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
265
265
|
}[];
|
|
266
266
|
salt: string;
|
|
267
267
|
target: string;
|
|
@@ -292,15 +292,15 @@ export declare const DatasetWithIdsSchema: import("zod").ZodObject<{
|
|
|
292
292
|
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
293
293
|
hash: import("zod").ZodString;
|
|
294
294
|
data: import("zod").ZodString;
|
|
295
|
-
type: import("zod").ZodNativeEnum<typeof import("
|
|
295
|
+
type: import("zod").ZodNativeEnum<typeof import("./captcha.js").CaptchaItemTypes>;
|
|
296
296
|
}, "strip", import("zod").ZodTypeAny, {
|
|
297
297
|
hash: string;
|
|
298
298
|
data: string;
|
|
299
|
-
type: import("
|
|
299
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
300
300
|
}, {
|
|
301
301
|
hash: string;
|
|
302
302
|
data: string;
|
|
303
|
-
type: import("
|
|
303
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
304
304
|
}>, "many">;
|
|
305
305
|
target: import("zod").ZodString;
|
|
306
306
|
}>, {
|
|
@@ -310,7 +310,7 @@ export declare const DatasetWithIdsSchema: import("zod").ZodObject<{
|
|
|
310
310
|
items: {
|
|
311
311
|
hash: string;
|
|
312
312
|
data: string;
|
|
313
|
-
type: import("
|
|
313
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
314
314
|
}[];
|
|
315
315
|
salt: string;
|
|
316
316
|
target: string;
|
|
@@ -323,7 +323,7 @@ export declare const DatasetWithIdsSchema: import("zod").ZodObject<{
|
|
|
323
323
|
items: {
|
|
324
324
|
hash: string;
|
|
325
325
|
data: string;
|
|
326
|
-
type: import("
|
|
326
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
327
327
|
}[];
|
|
328
328
|
salt: string;
|
|
329
329
|
target: string;
|
|
@@ -341,7 +341,7 @@ export declare const DatasetWithIdsSchema: import("zod").ZodObject<{
|
|
|
341
341
|
items: {
|
|
342
342
|
hash: string;
|
|
343
343
|
data: string;
|
|
344
|
-
type: import("
|
|
344
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
345
345
|
}[];
|
|
346
346
|
salt: string;
|
|
347
347
|
target: string;
|
|
@@ -361,7 +361,7 @@ export declare const DatasetWithIdsSchema: import("zod").ZodObject<{
|
|
|
361
361
|
items: {
|
|
362
362
|
hash: string;
|
|
363
363
|
data: string;
|
|
364
|
-
type: import("
|
|
364
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
365
365
|
}[];
|
|
366
366
|
salt: string;
|
|
367
367
|
target: string;
|
|
@@ -391,15 +391,15 @@ export declare const DatasetWithIdsAndTreeSchema: import("zod").ZodObject<import
|
|
|
391
391
|
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
392
392
|
hash: import("zod").ZodString;
|
|
393
393
|
data: import("zod").ZodString;
|
|
394
|
-
type: import("zod").ZodNativeEnum<typeof import("
|
|
394
|
+
type: import("zod").ZodNativeEnum<typeof import("./captcha.js").CaptchaItemTypes>;
|
|
395
395
|
}, "strip", import("zod").ZodTypeAny, {
|
|
396
396
|
hash: string;
|
|
397
397
|
data: string;
|
|
398
|
-
type: import("
|
|
398
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
399
399
|
}, {
|
|
400
400
|
hash: string;
|
|
401
401
|
data: string;
|
|
402
|
-
type: import("
|
|
402
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
403
403
|
}>, "many">;
|
|
404
404
|
target: import("zod").ZodString;
|
|
405
405
|
}>, {
|
|
@@ -409,7 +409,7 @@ export declare const DatasetWithIdsAndTreeSchema: import("zod").ZodObject<import
|
|
|
409
409
|
items: {
|
|
410
410
|
hash: string;
|
|
411
411
|
data: string;
|
|
412
|
-
type: import("
|
|
412
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
413
413
|
}[];
|
|
414
414
|
salt: string;
|
|
415
415
|
target: string;
|
|
@@ -422,7 +422,7 @@ export declare const DatasetWithIdsAndTreeSchema: import("zod").ZodObject<import
|
|
|
422
422
|
items: {
|
|
423
423
|
hash: string;
|
|
424
424
|
data: string;
|
|
425
|
-
type: import("
|
|
425
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
426
426
|
}[];
|
|
427
427
|
salt: string;
|
|
428
428
|
target: string;
|
|
@@ -443,7 +443,7 @@ export declare const DatasetWithIdsAndTreeSchema: import("zod").ZodObject<import
|
|
|
443
443
|
items: {
|
|
444
444
|
hash: string;
|
|
445
445
|
data: string;
|
|
446
|
-
type: import("
|
|
446
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
447
447
|
}[];
|
|
448
448
|
salt: string;
|
|
449
449
|
target: string;
|
|
@@ -463,7 +463,7 @@ export declare const DatasetWithIdsAndTreeSchema: import("zod").ZodObject<import
|
|
|
463
463
|
items: {
|
|
464
464
|
hash: string;
|
|
465
465
|
data: string;
|
|
466
|
-
type: import("
|
|
466
|
+
type: import("./captcha.js").CaptchaItemTypes;
|
|
467
467
|
}[];
|
|
468
468
|
salt: string;
|
|
469
469
|
target: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataset.d.ts","sourceRoot":"","sources":["../../src/datasets/dataset.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dataset.d.ts","sourceRoot":"","sources":["../../src/datasets/dataset.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EACN,KAAK,OAAO,EACZ,YAAY,EACZ,KAAK,gBAAgB,EAIrB,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,WAAW,GAAG;IACzB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,gBAAgB,CAAC,EAAE,IAAI,CAAC;IACxB,MAAM,EAAE,YAAY,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;CAC1B,CAAC;AAEF,MAAM,WAAW,OAAQ,SAAQ,WAAW;IAC3C,QAAQ,EAAE,gBAAgB,EAAE,GAAG,OAAO,EAAE,CAAC;CACzC;AAED,MAAM,WAAW,UAAW,SAAQ,WAAW;IAC9C,QAAQ,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED,MAAM,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,IAAI,CAAC;IAChB,gBAAgB,EAAE,IAAI,CAAC;IACvB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,MAAM,EAAE,YAAY,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;CAC1B,CAAC;AAEF,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC5D,WAAW,EAAE,MAAM,EAAE,EAAE,CAAC;CACxB;AAID,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE3C,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataset.js","sourceRoot":"","sources":["../../src/datasets/dataset.ts"],"names":[],"mappings":"
|
|
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;CAC3C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC;IAC1C,SAAS,EAAE,MAAM,EAAE;IACnB,gBAAgB,EAAE,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC;IACvC,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;CAC9C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,2BAA2B,GAAG,oBAAoB,CAAC,MAAM,CAAC;IACtE,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IACpC,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;CACnC,CAAC,CAAC"}
|
package/dist/procaptcha/api.d.ts
CHANGED
|
@@ -9,6 +9,6 @@ export interface ProcaptchaApiInterface {
|
|
|
9
9
|
dappAccount: string;
|
|
10
10
|
web2: boolean;
|
|
11
11
|
submitCaptchaSolution(userTimestampSignature: string, requestHash: string, solutions: CaptchaSolution[], timestamp: string, providerRequestHashSignature: string): Promise<TCaptchaSubmitResult>;
|
|
12
|
-
getCaptchaChallenge(): Promise<CaptchaResponseBody>;
|
|
12
|
+
getCaptchaChallenge(sessionId?: string): Promise<CaptchaResponseBody>;
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/procaptcha/api.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,WAAW,sBAAsB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,EAAE,oBAAoB,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,qBAAqB,CACpB,sBAAsB,EAAE,MAAM,EAC9B,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,eAAe,EAAE,EAC5B,SAAS,EAAE,MAAM,EACjB,4BAA4B,EAAE,MAAM,GAClC,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACjC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/procaptcha/api.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,WAAW,sBAAsB;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,EAAE,oBAAoB,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,qBAAqB,CACpB,sBAAsB,EAAE,MAAM,EAC9B,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,eAAe,EAAE,EAC5B,SAAS,EAAE,MAAM,EACjB,4BAA4B,EAAE,MAAM,GAClC,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACjC,mBAAmB,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/procaptcha/index.ts"],"names":[],"mappings":"AAaA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/procaptcha/index.ts"],"names":[],"mappings":"AAaA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
package/dist/procaptcha/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/procaptcha/index.ts"],"names":[],"mappings":"AAaA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/procaptcha/index.ts"],"names":[],"mappings":"AAaA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
@@ -14,19 +14,6 @@ export declare const ProcaptchaResponse: import("zod").ZodObject<{
|
|
|
14
14
|
}, {
|
|
15
15
|
"procaptcha-response": string;
|
|
16
16
|
}>;
|
|
17
|
-
export type ProcaptchaCallbacks = Partial<ProcaptchaEvents>;
|
|
18
|
-
export interface ProcaptchaEvents {
|
|
19
|
-
onError: (error: Error) => void;
|
|
20
|
-
onHuman: (output: ProcaptchaToken) => void;
|
|
21
|
-
onExtensionNotFound: () => void;
|
|
22
|
-
onChallengeExpired: () => void;
|
|
23
|
-
onExpired: () => void;
|
|
24
|
-
onFailed: () => void;
|
|
25
|
-
onOpen: () => void;
|
|
26
|
-
onClose: () => void;
|
|
27
|
-
onReload: () => void;
|
|
28
|
-
onReset: () => void;
|
|
29
|
-
}
|
|
30
17
|
export interface ProcaptchaState {
|
|
31
18
|
isHuman: boolean;
|
|
32
19
|
index: number;
|
|
@@ -43,6 +30,19 @@ export interface ProcaptchaState {
|
|
|
43
30
|
sendData: boolean;
|
|
44
31
|
attemptCount: number;
|
|
45
32
|
error: string | undefined;
|
|
33
|
+
sessionId: string | undefined;
|
|
46
34
|
}
|
|
47
35
|
export type ProcaptchaStateUpdateFn = (state: Partial<ProcaptchaState>) => void;
|
|
36
|
+
export interface Callbacks {
|
|
37
|
+
onHuman: (token: ProcaptchaToken) => void;
|
|
38
|
+
onExtensionNotFound: () => void;
|
|
39
|
+
onChallengeExpired: () => void;
|
|
40
|
+
onExpired: () => void;
|
|
41
|
+
onError: (error: Error) => void;
|
|
42
|
+
onClose: () => void;
|
|
43
|
+
onOpen: () => void;
|
|
44
|
+
onFailed: () => void;
|
|
45
|
+
onReload: () => void;
|
|
46
|
+
onReset: () => void;
|
|
47
|
+
}
|
|
48
48
|
//# sourceMappingURL=manager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/procaptcha/manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../../src/procaptcha/manager.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACX,eAAe,EACf,iBAAiB,EACjB,MAAM,kCAAkC,CAAC;AAG1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,KAAK,eAAe,EAAuB,MAAM,YAAY,CAAC;AAKvE,MAAM,WAAW,OAAO;IACvB,OAAO,EAAE,eAAe,CAAC;IACzB,SAAS,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAC;AAMH,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,EAAE,EAAE,CAAC;IACtB,UAAU,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAC/C,SAAS,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAC3C,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,UAAU,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC7C,OAAO,EAAE,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;IACpC,2BAA2B,EAAE,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;IACxD,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAQD,MAAM,MAAM,uBAAuB,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,eAAe,CAAC,KAAK,IAAI,CAAC;AAGhF,MAAM,WAAW,SAAS;IACzB,OAAO,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IAC1C,mBAAmB,EAAE,MAAM,IAAI,CAAC;IAChC,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manager.js","sourceRoot":"","sources":["../../src/procaptcha/manager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"manager.js","sourceRoot":"","sources":["../../src/procaptcha/manager.ts"],"names":[],"mappings":"AAkBA,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,OAAO,EAAwB,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAUvE,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC;IACxC,CAAC,SAAS,CAAC,kBAAkB,CAAC,EAAE,mBAAmB;CACnD,CAAC,CAAC"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import type { ProcaptchaClientConfigInput } from "../config/index.js";
|
|
2
2
|
import type { RandomProvider } from "../provider/api.js";
|
|
3
|
-
import type { Account,
|
|
3
|
+
import type { Account, Callbacks } from "./manager.js";
|
|
4
4
|
export type FrictionlessState = {
|
|
5
5
|
provider: RandomProvider;
|
|
6
6
|
userAccount: Account;
|
|
7
|
+
restart: () => void;
|
|
7
8
|
sessionId?: string;
|
|
8
9
|
};
|
|
10
|
+
export type ProcaptchaCallbacks = Partial<Callbacks>;
|
|
9
11
|
export interface ProcaptchaProps {
|
|
10
12
|
config: ProcaptchaClientConfigInput;
|
|
11
|
-
callbacks
|
|
13
|
+
callbacks: ProcaptchaCallbacks;
|
|
12
14
|
frictionlessState?: FrictionlessState;
|
|
15
|
+
errorMessage?: string;
|
|
13
16
|
}
|
|
14
17
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/procaptcha/props.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/procaptcha/props.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG;IAC/B,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAKrD,MAAM,WAAW,eAAe;IAE/B,MAAM,EAAE,2BAA2B,CAAC;IACpC,SAAS,EAAE,mBAAmB,CAAC;IAC/B,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IAEtC,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import type { LanguageSchema } from "@prosopo/locale";
|
|
2
|
-
import type { ProcaptchaToken } from "@prosopo/types";
|
|
3
|
-
export
|
|
4
|
-
Image = "image",
|
|
5
|
-
Pow = "pow",
|
|
6
|
-
Frictionless = "frictionless"
|
|
7
|
-
}
|
|
8
|
-
export type Features = `${FeaturesEnum}`;
|
|
2
|
+
import type { CaptchaType, ProcaptchaToken } from "@prosopo/types";
|
|
3
|
+
export type Features = `${CaptchaType}`;
|
|
9
4
|
export interface ProcaptchaRenderOptions {
|
|
10
5
|
siteKey: string;
|
|
11
6
|
theme?: "light" | "dark";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/procaptcha-bundle/index.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/procaptcha-bundle/index.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEnE,MAAM,MAAM,QAAQ,GAAG,GAAG,WAAW,EAAE,CAAC;AAExC,MAAM,WAAW,uBAAuB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC,CAAC;IACvD,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,sBAAsB,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IAC/C,kBAAkB,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IAC3C,eAAe,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IACxC,gBAAgB,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IACzC,iBAAiB,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IAC1C,gBAAgB,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,cAAc,CAAC;CACjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/procaptcha-bundle/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/procaptcha-bundle/index.ts"],"names":[],"mappings":""}
|
|
@@ -2,13 +2,14 @@ import type { ProcaptchaClientConfigOutput } from "../config/config.js";
|
|
|
2
2
|
import type { Account } from "../procaptcha/manager.js";
|
|
3
3
|
import type { ProcaptchaProps } from "../procaptcha/props.js";
|
|
4
4
|
import type { GetFrictionlessCaptchaResponse, RandomProvider } from "../provider/api.js";
|
|
5
|
-
type BotDetectionFunctionResult = GetFrictionlessCaptchaResponse & {
|
|
5
|
+
export type BotDetectionFunctionResult = GetFrictionlessCaptchaResponse & {
|
|
6
6
|
provider: RandomProvider;
|
|
7
7
|
userAccount: Account;
|
|
8
8
|
};
|
|
9
9
|
export type BotDetectionFunction = (config: ProcaptchaClientConfigOutput) => Promise<BotDetectionFunctionResult>;
|
|
10
10
|
export interface ProcaptchaFrictionlessProps extends ProcaptchaProps {
|
|
11
|
+
restart: () => void;
|
|
11
12
|
detectBot?: BotDetectionFunction;
|
|
13
|
+
detectBotConfig?: ProcaptchaClientConfigOutput;
|
|
12
14
|
}
|
|
13
|
-
export {};
|
|
14
15
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/procaptcha-frictionless/props.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EACX,8BAA8B,EAC9B,cAAc,EACd,MAAM,oBAAoB,CAAC;AAE5B,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/procaptcha-frictionless/props.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EACX,8BAA8B,EAC9B,cAAc,EACd,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,0BAA0B,GAAG,8BAA8B,GAAG;IACzE,QAAQ,EAAE,cAAc,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,CAClC,MAAM,EAAE,4BAA4B,KAChC,OAAO,CAAC,0BAA0B,CAAC,CAAC;AAKzC,MAAM,WAAW,2BAA4B,SAAQ,eAAe;IACnE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,eAAe,CAAC,EAAE,4BAA4B,CAAC;CAC/C"}
|