@prosopo/types 3.5.3 → 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.
Files changed (106) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist/api/api.js +2 -1
  3. package/dist/api/api.js.map +1 -0
  4. package/dist/api/index.js +4 -6
  5. package/dist/api/index.js.map +1 -0
  6. package/dist/api/ipapi.js +2 -1
  7. package/dist/api/ipapi.js.map +1 -0
  8. package/dist/api/params.d.ts +3 -1
  9. package/dist/api/params.d.ts.map +1 -1
  10. package/dist/api/params.js +44 -44
  11. package/dist/api/params.js.map +1 -0
  12. package/dist/cjs/api/params.cjs +2 -0
  13. package/dist/cjs/client/settings.cjs +4 -2
  14. package/dist/cjs/config/config.cjs +3 -3
  15. package/dist/cjs/config/frictionless.cjs +4 -1
  16. package/dist/cjs/config/index.cjs +1 -0
  17. package/dist/cjs/index.cjs +2 -0
  18. package/dist/cjs/provider/api.cjs +11 -1
  19. package/dist/cjs/provider/index.cjs +1 -0
  20. package/dist/client/captchaType/captchaType.js +9 -11
  21. package/dist/client/captchaType/captchaType.js.map +1 -0
  22. package/dist/client/captchaType/captchaTypeSpec.js +2 -3
  23. package/dist/client/captchaType/captchaTypeSpec.js.map +1 -0
  24. package/dist/client/index.js +5 -29
  25. package/dist/client/index.js.map +1 -0
  26. package/dist/client/settings.d.ts +11 -0
  27. package/dist/client/settings.d.ts.map +1 -1
  28. package/dist/client/settings.js +66 -81
  29. package/dist/client/settings.js.map +1 -0
  30. package/dist/client/user.d.ts +2 -3
  31. package/dist/client/user.d.ts.map +1 -1
  32. package/dist/client/user.js +18 -31
  33. package/dist/client/user.js.map +1 -0
  34. package/dist/config/config.d.ts +21 -15
  35. package/dist/config/config.d.ts.map +1 -1
  36. package/dist/config/config.js +165 -180
  37. package/dist/config/config.js.map +1 -0
  38. package/dist/config/enumMap.js +6 -0
  39. package/dist/config/enumMap.js.map +1 -0
  40. package/dist/config/frictionless.d.ts +4 -0
  41. package/dist/config/frictionless.d.ts.map +1 -1
  42. package/dist/config/frictionless.js +23 -14
  43. package/dist/config/frictionless.js.map +1 -0
  44. package/dist/config/index.js +5 -36
  45. package/dist/config/index.js.map +1 -0
  46. package/dist/config/network.js +7 -9
  47. package/dist/config/network.js.map +1 -0
  48. package/dist/config/timeouts.js +10 -19
  49. package/dist/config/timeouts.js.map +1 -0
  50. package/dist/datasets/assets.js +2 -1
  51. package/dist/datasets/assets.js.map +1 -0
  52. package/dist/datasets/captcha.d.ts +56 -56
  53. package/dist/datasets/captcha.js +94 -122
  54. package/dist/datasets/captcha.js.map +1 -0
  55. package/dist/datasets/dataset.d.ts +46 -46
  56. package/dist/datasets/dataset.js +23 -28
  57. package/dist/datasets/dataset.js.map +1 -0
  58. package/dist/datasets/index.js +5 -36
  59. package/dist/datasets/index.js.map +1 -0
  60. package/dist/datasets/merkle.js +2 -1
  61. package/dist/datasets/merkle.js.map +1 -0
  62. package/dist/index.js +10 -146
  63. package/dist/index.js.map +1 -0
  64. package/dist/keyring/index.js +3 -2
  65. package/dist/keyring/index.js.map +1 -0
  66. package/dist/keyring/keyring/types.js +2 -1
  67. package/dist/keyring/keyring/types.js.map +1 -0
  68. package/dist/keyring/pair/types.js +2 -1
  69. package/dist/keyring/pair/types.js.map +1 -0
  70. package/dist/procaptcha/api.js +2 -1
  71. package/dist/procaptcha/api.js.map +1 -0
  72. package/dist/procaptcha/client.js +2 -1
  73. package/dist/procaptcha/client.js.map +1 -0
  74. package/dist/procaptcha/collector.js +2 -1
  75. package/dist/procaptcha/collector.js.map +1 -0
  76. package/dist/procaptcha/index.js +8 -19
  77. package/dist/procaptcha/index.js.map +1 -0
  78. package/dist/procaptcha/manager.js +4 -7
  79. package/dist/procaptcha/manager.js.map +1 -0
  80. package/dist/procaptcha/props.js +2 -1
  81. package/dist/procaptcha/props.js.map +1 -0
  82. package/dist/procaptcha/token.js +62 -77
  83. package/dist/procaptcha/token.js.map +1 -0
  84. package/dist/procaptcha/utils.js +2 -1
  85. package/dist/procaptcha/utils.js.map +1 -0
  86. package/dist/procaptcha-bundle/index.js +2 -1
  87. package/dist/procaptcha-bundle/index.js.map +1 -0
  88. package/dist/procaptcha-frictionless/index.js +2 -1
  89. package/dist/procaptcha-frictionless/index.js.map +1 -0
  90. package/dist/procaptcha-frictionless/props.js +2 -1
  91. package/dist/procaptcha-frictionless/props.js.map +1 -0
  92. package/dist/provider/accounts.js +2 -1
  93. package/dist/provider/accounts.js.map +1 -0
  94. package/dist/provider/api.d.ts +37 -1
  95. package/dist/provider/api.d.ts.map +1 -1
  96. package/dist/provider/api.js +176 -235
  97. package/dist/provider/api.js.map +1 -0
  98. package/dist/provider/detection.d.ts +3 -0
  99. package/dist/provider/detection.d.ts.map +1 -1
  100. package/dist/provider/detection.js +2 -1
  101. package/dist/provider/detection.js.map +1 -0
  102. package/dist/provider/index.js +5 -32
  103. package/dist/provider/index.js.map +1 -0
  104. package/dist/provider/scheduler.js +15 -18
  105. package/dist/provider/scheduler.js.map +1 -0
  106. package/package.json +14 -14
@@ -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;
@@ -1,32 +1,27 @@
1
- import { object, number, array, string, nativeEnum } from "zod";
2
- import { CaptchaTypes, CaptchasSchema, CaptchasWithNumericSolutionSchema, SelectAllCaptchaSchema } from "./captcha.js";
3
- 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()
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
- captchas: CaptchasWithNumericSolutionSchema
12
+ export const DatasetWithNumericSolutionSchema = DatasetSchema.extend({
13
+ captchas: CaptchasWithNumericSolutionSchema,
14
14
  });
15
- 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()
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
- solutionTree: array(array(string())),
25
- contentTree: array(array(string()))
23
+ export const DatasetWithIdsAndTreeSchema = DatasetWithIdsSchema.extend({
24
+ solutionTree: array(array(string())),
25
+ contentTree: array(array(string())),
26
26
  });
27
- export {
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;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"}
@@ -1,36 +1,5 @@
1
- import { CaptchaItemSchema, CaptchaItemTypes, CaptchaSchema, CaptchaSolutionArraySchema, CaptchaSolutionSchema, CaptchaStates, CaptchaStatus, CaptchaTypes, CaptchasContainerSchema, CaptchasSchema, CaptchasWithNumericSolutionSchema, DappPayee, DataSchema, GovernanceStatus, HashedCaptchaItemSchema, LabelledDataSchema, LabelledItemSchema, LabelsContainerSchema, MaybeLabelledHashedItemSchema, POW_SEPARATOR, PowChallengeIdSchema, SelectAllCaptchaSchema, SelectAllCaptchaSchemaRaw, SelectAllCaptchaSchemaWithNumericSolution, StoredStatusNames, TimestampSchema } from "./captcha.js";
2
- import { DatasetSchema, DatasetWithIdsAndTreeSchema, DatasetWithIdsSchema, DatasetWithNumericSolutionSchema } from "./dataset.js";
3
- import "./merkle.js";
4
- import "./assets.js";
5
- export {
6
- CaptchaItemSchema,
7
- CaptchaItemTypes,
8
- CaptchaSchema,
9
- CaptchaSolutionArraySchema,
10
- CaptchaSolutionSchema,
11
- CaptchaStates,
12
- CaptchaStatus,
13
- CaptchaTypes,
14
- CaptchasContainerSchema,
15
- CaptchasSchema,
16
- CaptchasWithNumericSolutionSchema,
17
- DappPayee,
18
- DataSchema,
19
- DatasetSchema,
20
- DatasetWithIdsAndTreeSchema,
21
- DatasetWithIdsSchema,
22
- DatasetWithNumericSolutionSchema,
23
- GovernanceStatus,
24
- HashedCaptchaItemSchema,
25
- LabelledDataSchema,
26
- LabelledItemSchema,
27
- LabelsContainerSchema,
28
- MaybeLabelledHashedItemSchema,
29
- POW_SEPARATOR,
30
- PowChallengeIdSchema,
31
- SelectAllCaptchaSchema,
32
- SelectAllCaptchaSchemaRaw,
33
- SelectAllCaptchaSchemaWithNumericSolution,
34
- StoredStatusNames,
35
- TimestampSchema
36
- };
1
+ export * from "./captcha.js";
2
+ export * from "./dataset.js";
3
+ export * from "./merkle.js";
4
+ export * from "./assets.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/datasets/index.ts"],"names":[],"mappings":"AAaA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
@@ -1 +1,2 @@
1
-
1
+ export {};
2
+ //# sourceMappingURL=merkle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merkle.js","sourceRoot":"","sources":["../../src/datasets/merkle.ts"],"names":[],"mappings":""}
package/dist/index.js CHANGED
@@ -1,146 +1,10 @@
1
- import "./api/index.js";
2
- import "./client/index.js";
3
- import "./config/index.js";
4
- import "./datasets/index.js";
5
- import "./provider/index.js";
6
- import "./procaptcha/index.js";
7
- import "./procaptcha-bundle/index.js";
8
- import "./procaptcha-frictionless/index.js";
9
- import "./keyring/index.js";
10
- import { ApiParams } from "./api/params.js";
11
- import { Tier, TierMonthlyLimits, TierSchema } from "./client/user.js";
12
- import { ClientSettingsSchema, IPValidationAction, IPValidationActionSchema, IPValidationRulesSchema, abuseScoreThresholdDefault, abuseScoreThresholdExceedActionDefault, captchaTypeDefault, cityChangeActionDefault, countryChangeActionDefault, distanceExceedActionDefault, distanceThresholdKmDefault, domainsDefault, frictionlessThresholdDefault, imageThresholdDefault, ispChangeActionDefault, powDifficultyDefault, requireAllConditionsDefault } from "./client/settings.js";
13
- import { CaptchaType, CaptchaTypeSchema } from "./client/captchaType/captchaType.js";
14
- import { CaptchaTypeSpec } from "./client/captchaType/captchaTypeSpec.js";
15
- import { AccountCreatorConfigSchema, CaptchaTimeoutSchema, DatabaseConfigSchema, DatabaseTypes, EnvironmentTypesSchema, IpApiServiceSpec, Mode, ModeEnum, PolkadotSecretJSONSpec, ProcaptchaConfigSchema, ProsopoApiConfigSchema, ProsopoBaseConfigSchema, ProsopoBasicConfigSchema, ProsopoCaptchaSolutionConfigSchema, ProsopoClientConfigSchema, ProsopoConfigSchema, ProsopoServerConfigSchema } from "./config/config.js";
16
- import { NetworkPairTypeSchema } from "./config/network.js";
17
- import { DEFAULT_IMAGE_CAPTCHA_SOLUTION_TIMEOUT, DEFAULT_IMAGE_CAPTCHA_TIMEOUT, DEFAULT_IMAGE_CAPTCHA_VERIFIED_TIMEOUT, DEFAULT_IMAGE_MAX_VERIFIED_TIME_CACHED, DEFAULT_MAX_VERIFIED_TIME_CONTRACT, DEFAULT_POW_CAPTCHA_CACHED_TIMEOUT, DEFAULT_POW_CAPTCHA_SOLUTION_TIMEOUT, DEFAULT_POW_CAPTCHA_VERIFIED_TIMEOUT } from "./config/timeouts.js";
18
- import { FrictionlessPenalties, PENALTY_ACCESS_RULE_DEFAULT, PENALTY_OLD_TIMESTAMP_DEFAULT, PENALTY_UNVERIFIED_HOST_DEFAULT } from "./config/frictionless.js";
19
- import { CaptchaItemSchema, CaptchaItemTypes, CaptchaSchema, CaptchaSolutionArraySchema, CaptchaSolutionSchema, CaptchaStates, CaptchaStatus, CaptchaTypes, CaptchasContainerSchema, CaptchasSchema, CaptchasWithNumericSolutionSchema, DappPayee, DataSchema, GovernanceStatus, HashedCaptchaItemSchema, LabelledDataSchema, LabelledItemSchema, LabelsContainerSchema, MaybeLabelledHashedItemSchema, POW_SEPARATOR, PowChallengeIdSchema, SelectAllCaptchaSchema, SelectAllCaptchaSchemaRaw, SelectAllCaptchaSchemaWithNumericSolution, StoredStatusNames, TimestampSchema } from "./datasets/captcha.js";
20
- import { DatasetSchema, DatasetWithIdsAndTreeSchema, DatasetWithIdsSchema, DatasetWithNumericSolutionSchema } from "./datasets/dataset.js";
21
- import { AdminApiPaths, ApiPathRateLimits, ApiPrefix, BlockRuleSpec, BlockRuleType, CaptchaRequestBody, CaptchaSolutionBody, ClientApiPaths, DEFAULT_SOLVED_COUNT, DEFAULT_UNSOLVED_COUNT, DappDomainRequestBody, GetFrictionlessCaptchaChallengeRequestBody, GetPowCaptchaChallengeRequestBody, ProsopoCaptchaCountConfigSchema, ProviderDefaultRateLimits, PublicApiPaths, RegisterSitekeyBody, RemoveDetectorKeyBodySpec, ServerPowCaptchaVerifyRequestBody, SubmitPowCaptchaSolutionBody, UpdateDetectorKeyBody, VerifyPowCaptchaSolutionBody, VerifySolutionBody, providerDetailsSchema } from "./provider/api.js";
22
- import { ScheduledTaskNames, ScheduledTaskStatus } from "./provider/scheduler.js";
23
- import { ProcaptchaResponse } from "./procaptcha/manager.js";
24
- import { ChallengeSignatureSchema, ProcaptchaOutputSchema, ProcaptchaTokenCodec, ProcaptchaTokenSpec, RequestHashSignatureSchema, SignatureTypesSchema, TimestampSignatureSchema, decodeProcaptchaOutput, encodeProcaptchaOutput } from "./procaptcha/token.js";
25
- export {
26
- AccountCreatorConfigSchema,
27
- AdminApiPaths,
28
- ApiParams,
29
- ApiPathRateLimits,
30
- ApiPrefix,
31
- BlockRuleSpec,
32
- BlockRuleType,
33
- CaptchaItemSchema,
34
- CaptchaItemTypes,
35
- CaptchaRequestBody,
36
- CaptchaSchema,
37
- CaptchaSolutionArraySchema,
38
- CaptchaSolutionBody,
39
- CaptchaSolutionSchema,
40
- CaptchaStates,
41
- CaptchaStatus,
42
- CaptchaTimeoutSchema,
43
- CaptchaType,
44
- CaptchaTypeSchema,
45
- CaptchaTypeSpec,
46
- CaptchaTypes,
47
- CaptchasContainerSchema,
48
- CaptchasSchema,
49
- CaptchasWithNumericSolutionSchema,
50
- ChallengeSignatureSchema,
51
- ClientApiPaths,
52
- ClientSettingsSchema,
53
- DEFAULT_IMAGE_CAPTCHA_SOLUTION_TIMEOUT,
54
- DEFAULT_IMAGE_CAPTCHA_TIMEOUT,
55
- DEFAULT_IMAGE_CAPTCHA_VERIFIED_TIMEOUT,
56
- DEFAULT_IMAGE_MAX_VERIFIED_TIME_CACHED,
57
- DEFAULT_MAX_VERIFIED_TIME_CONTRACT,
58
- DEFAULT_POW_CAPTCHA_CACHED_TIMEOUT,
59
- DEFAULT_POW_CAPTCHA_SOLUTION_TIMEOUT,
60
- DEFAULT_POW_CAPTCHA_VERIFIED_TIMEOUT,
61
- DEFAULT_SOLVED_COUNT,
62
- DEFAULT_UNSOLVED_COUNT,
63
- DappDomainRequestBody,
64
- DappPayee,
65
- DataSchema,
66
- DatabaseConfigSchema,
67
- DatabaseTypes,
68
- DatasetSchema,
69
- DatasetWithIdsAndTreeSchema,
70
- DatasetWithIdsSchema,
71
- DatasetWithNumericSolutionSchema,
72
- EnvironmentTypesSchema,
73
- FrictionlessPenalties,
74
- GetFrictionlessCaptchaChallengeRequestBody,
75
- GetPowCaptchaChallengeRequestBody,
76
- GovernanceStatus,
77
- HashedCaptchaItemSchema,
78
- IPValidationAction,
79
- IPValidationActionSchema,
80
- IPValidationRulesSchema,
81
- IpApiServiceSpec,
82
- LabelledDataSchema,
83
- LabelledItemSchema,
84
- LabelsContainerSchema,
85
- MaybeLabelledHashedItemSchema,
86
- Mode,
87
- ModeEnum,
88
- NetworkPairTypeSchema,
89
- PENALTY_ACCESS_RULE_DEFAULT,
90
- PENALTY_OLD_TIMESTAMP_DEFAULT,
91
- PENALTY_UNVERIFIED_HOST_DEFAULT,
92
- POW_SEPARATOR,
93
- PolkadotSecretJSONSpec,
94
- PowChallengeIdSchema,
95
- ProcaptchaConfigSchema,
96
- ProcaptchaOutputSchema,
97
- ProcaptchaResponse,
98
- ProcaptchaTokenCodec,
99
- ProcaptchaTokenSpec,
100
- ProsopoApiConfigSchema,
101
- ProsopoBaseConfigSchema,
102
- ProsopoBasicConfigSchema,
103
- ProsopoCaptchaCountConfigSchema,
104
- ProsopoCaptchaSolutionConfigSchema,
105
- ProsopoClientConfigSchema,
106
- ProsopoConfigSchema,
107
- ProsopoServerConfigSchema,
108
- ProviderDefaultRateLimits,
109
- PublicApiPaths,
110
- RegisterSitekeyBody,
111
- RemoveDetectorKeyBodySpec,
112
- RequestHashSignatureSchema,
113
- ScheduledTaskNames,
114
- ScheduledTaskStatus,
115
- SelectAllCaptchaSchema,
116
- SelectAllCaptchaSchemaRaw,
117
- SelectAllCaptchaSchemaWithNumericSolution,
118
- ServerPowCaptchaVerifyRequestBody,
119
- SignatureTypesSchema,
120
- StoredStatusNames,
121
- SubmitPowCaptchaSolutionBody,
122
- Tier,
123
- TierMonthlyLimits,
124
- TierSchema,
125
- TimestampSchema,
126
- TimestampSignatureSchema,
127
- UpdateDetectorKeyBody,
128
- VerifyPowCaptchaSolutionBody,
129
- VerifySolutionBody,
130
- abuseScoreThresholdDefault,
131
- abuseScoreThresholdExceedActionDefault,
132
- captchaTypeDefault,
133
- cityChangeActionDefault,
134
- countryChangeActionDefault,
135
- decodeProcaptchaOutput,
136
- distanceExceedActionDefault,
137
- distanceThresholdKmDefault,
138
- domainsDefault,
139
- encodeProcaptchaOutput,
140
- frictionlessThresholdDefault,
141
- imageThresholdDefault,
142
- ispChangeActionDefault,
143
- powDifficultyDefault,
144
- providerDetailsSchema,
145
- requireAllConditionsDefault
146
- };
1
+ export * from "./api/index.js";
2
+ export * from "./client/index.js";
3
+ export * from "./config/index.js";
4
+ export * from "./datasets/index.js";
5
+ export * from "./provider/index.js";
6
+ export * from "./procaptcha/index.js";
7
+ export * from "./procaptcha-bundle/index.js";
8
+ export * from "./procaptcha-frictionless/index.js";
9
+ export * from "./keyring/index.js";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC"}
@@ -1,2 +1,3 @@
1
- import "./keyring/types.js";
2
- import "./pair/types.js";
1
+ export * from "./keyring/types.js";
2
+ export * from "./pair/types.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/keyring/index.ts"],"names":[],"mappings":"AAcA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
@@ -1 +1,2 @@
1
-
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/keyring/keyring/types.ts"],"names":[],"mappings":""}
@@ -1 +1,2 @@
1
-
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/keyring/pair/types.ts"],"names":[],"mappings":""}
@@ -1 +1,2 @@
1
-
1
+ export {};
2
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/procaptcha/api.ts"],"names":[],"mappings":""}
@@ -1 +1,2 @@
1
-
1
+ export {};
2
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/procaptcha/client.ts"],"names":[],"mappings":""}
@@ -1 +1,2 @@
1
-
1
+ export {};
2
+ //# sourceMappingURL=collector.js.map