@prosopo/types 3.5.3 → 3.6.0

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 (40) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/dist/api/params.d.ts +3 -1
  3. package/dist/api/params.d.ts.map +1 -1
  4. package/dist/api/params.js +2 -0
  5. package/dist/cjs/api/params.cjs +2 -0
  6. package/dist/cjs/client/index.cjs +1 -0
  7. package/dist/cjs/client/settings.cjs +10 -2
  8. package/dist/cjs/config/config.cjs +8 -4
  9. package/dist/cjs/config/frictionless.cjs +4 -1
  10. package/dist/cjs/config/index.cjs +1 -0
  11. package/dist/cjs/index.cjs +3 -0
  12. package/dist/cjs/provider/api.cjs +11 -1
  13. package/dist/cjs/provider/index.cjs +1 -0
  14. package/dist/cjs/provider/scheduler.cjs +1 -0
  15. package/dist/client/index.js +2 -1
  16. package/dist/client/settings.d.ts +30 -0
  17. package/dist/client/settings.d.ts.map +1 -1
  18. package/dist/client/settings.js +10 -2
  19. package/dist/client/user.d.ts +2 -3
  20. package/dist/client/user.d.ts.map +1 -1
  21. package/dist/config/config.d.ts +43 -15
  22. package/dist/config/config.d.ts.map +1 -1
  23. package/dist/config/config.js +10 -6
  24. package/dist/config/frictionless.d.ts +4 -0
  25. package/dist/config/frictionless.d.ts.map +1 -1
  26. package/dist/config/frictionless.js +5 -2
  27. package/dist/config/index.js +2 -1
  28. package/dist/datasets/captcha.d.ts +42 -42
  29. package/dist/datasets/dataset.d.ts +28 -28
  30. package/dist/index.js +6 -3
  31. package/dist/provider/api.d.ts +63 -1
  32. package/dist/provider/api.d.ts.map +1 -1
  33. package/dist/provider/api.js +11 -1
  34. package/dist/provider/detection.d.ts +3 -0
  35. package/dist/provider/detection.d.ts.map +1 -1
  36. package/dist/provider/index.js +2 -1
  37. package/dist/provider/scheduler.d.ts +2 -1
  38. package/dist/provider/scheduler.d.ts.map +1 -1
  39. package/dist/provider/scheduler.js +1 -0
  40. package/package.json +14 -14
@@ -139,13 +139,13 @@ export declare const CaptchaItemSchema: import("zod").ZodObject<{
139
139
  data: import("zod").ZodString;
140
140
  type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
141
141
  }, "strip", import("zod").ZodTypeAny, {
142
+ type: CaptchaItemTypes;
142
143
  hash: string;
143
144
  data: string;
144
- type: CaptchaItemTypes;
145
145
  }, {
146
+ type: CaptchaItemTypes;
146
147
  hash: string;
147
148
  data: string;
148
- type: CaptchaItemTypes;
149
149
  }>;
150
150
  export declare const HashedCaptchaItemSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
151
151
  hash: import("zod").ZodString;
@@ -154,13 +154,13 @@ export declare const HashedCaptchaItemSchema: import("zod").ZodObject<import("zo
154
154
  }, {
155
155
  hash: import("zod").ZodString;
156
156
  }>, "strip", import("zod").ZodTypeAny, {
157
+ type: CaptchaItemTypes;
157
158
  hash: string;
158
159
  data: string;
159
- type: CaptchaItemTypes;
160
160
  }, {
161
+ type: CaptchaItemTypes;
161
162
  hash: string;
162
163
  data: string;
163
- type: CaptchaItemTypes;
164
164
  }>;
165
165
  export declare const LabelledItemSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
166
166
  hash: import("zod").ZodString;
@@ -171,14 +171,14 @@ export declare const LabelledItemSchema: import("zod").ZodObject<import("zod").o
171
171
  }>, {
172
172
  label: import("zod").ZodString;
173
173
  }>, "strip", import("zod").ZodTypeAny, {
174
+ type: CaptchaItemTypes;
174
175
  hash: string;
175
176
  data: string;
176
- type: CaptchaItemTypes;
177
177
  label: string;
178
178
  }, {
179
+ type: CaptchaItemTypes;
179
180
  hash: string;
180
181
  data: string;
181
- type: CaptchaItemTypes;
182
182
  label: string;
183
183
  }>;
184
184
  export declare const MaybeLabelledHashedItemSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
@@ -190,14 +190,14 @@ export declare const MaybeLabelledHashedItemSchema: import("zod").ZodObject<impo
190
190
  }>, {
191
191
  label: import("zod").ZodOptional<import("zod").ZodString>;
192
192
  }>, "strip", import("zod").ZodTypeAny, {
193
+ type: CaptchaItemTypes;
193
194
  hash: string;
194
195
  data: string;
195
- type: CaptchaItemTypes;
196
196
  label?: string | undefined;
197
197
  }, {
198
+ type: CaptchaItemTypes;
198
199
  hash: string;
199
200
  data: string;
200
- type: CaptchaItemTypes;
201
201
  label?: string | undefined;
202
202
  }>;
203
203
  export declare const SelectAllCaptchaSchemaRaw: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
@@ -213,20 +213,20 @@ export declare const SelectAllCaptchaSchemaRaw: import("zod").ZodObject<import("
213
213
  data: import("zod").ZodString;
214
214
  type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
215
215
  }, "strip", import("zod").ZodTypeAny, {
216
+ type: CaptchaItemTypes;
216
217
  hash: string;
217
218
  data: string;
218
- type: CaptchaItemTypes;
219
219
  }, {
220
+ type: CaptchaItemTypes;
220
221
  hash: string;
221
222
  data: string;
222
- type: CaptchaItemTypes;
223
223
  }>, "many">;
224
224
  target: import("zod").ZodString;
225
225
  }>, "strip", import("zod").ZodTypeAny, {
226
226
  items: {
227
+ type: CaptchaItemTypes;
227
228
  hash: string;
228
229
  data: string;
229
- type: CaptchaItemTypes;
230
230
  }[];
231
231
  salt: string;
232
232
  target: string;
@@ -237,9 +237,9 @@ export declare const SelectAllCaptchaSchemaRaw: import("zod").ZodObject<import("
237
237
  timeLimit?: number | undefined;
238
238
  }, {
239
239
  items: {
240
+ type: CaptchaItemTypes;
240
241
  hash: string;
241
242
  data: string;
242
- type: CaptchaItemTypes;
243
243
  }[];
244
244
  salt: string;
245
245
  target: string;
@@ -262,13 +262,13 @@ export declare const SelectAllCaptchaSchema: import("zod").ZodObject<import("zod
262
262
  data: import("zod").ZodString;
263
263
  type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
264
264
  }, "strip", import("zod").ZodTypeAny, {
265
+ type: CaptchaItemTypes;
265
266
  hash: string;
266
267
  data: string;
267
- type: CaptchaItemTypes;
268
268
  }, {
269
+ type: CaptchaItemTypes;
269
270
  hash: string;
270
271
  data: string;
271
- type: CaptchaItemTypes;
272
272
  }>, "many">;
273
273
  target: import("zod").ZodString;
274
274
  }>, {
@@ -276,9 +276,9 @@ export declare const SelectAllCaptchaSchema: import("zod").ZodObject<import("zod
276
276
  unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
277
277
  }>, "strip", import("zod").ZodTypeAny, {
278
278
  items: {
279
+ type: CaptchaItemTypes;
279
280
  hash: string;
280
281
  data: string;
281
- type: CaptchaItemTypes;
282
282
  }[];
283
283
  salt: string;
284
284
  target: string;
@@ -289,9 +289,9 @@ export declare const SelectAllCaptchaSchema: import("zod").ZodObject<import("zod
289
289
  timeLimit?: number | undefined;
290
290
  }, {
291
291
  items: {
292
+ type: CaptchaItemTypes;
292
293
  hash: string;
293
294
  data: string;
294
- type: CaptchaItemTypes;
295
295
  }[];
296
296
  salt: string;
297
297
  target: string;
@@ -314,13 +314,13 @@ export declare const SelectAllCaptchaSchemaWithNumericSolution: import("zod").Zo
314
314
  data: import("zod").ZodString;
315
315
  type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
316
316
  }, "strip", import("zod").ZodTypeAny, {
317
+ type: CaptchaItemTypes;
317
318
  hash: string;
318
319
  data: string;
319
- type: CaptchaItemTypes;
320
320
  }, {
321
+ type: CaptchaItemTypes;
321
322
  hash: string;
322
323
  data: string;
323
- type: CaptchaItemTypes;
324
324
  }>, "many">;
325
325
  target: import("zod").ZodString;
326
326
  }>, {
@@ -331,9 +331,9 @@ export declare const SelectAllCaptchaSchemaWithNumericSolution: import("zod").Zo
331
331
  unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
332
332
  }>, "strip", import("zod").ZodTypeAny, {
333
333
  items: {
334
+ type: CaptchaItemTypes;
334
335
  hash: string;
335
336
  data: string;
336
- type: CaptchaItemTypes;
337
337
  }[];
338
338
  salt: string;
339
339
  target: string;
@@ -344,9 +344,9 @@ export declare const SelectAllCaptchaSchemaWithNumericSolution: import("zod").Zo
344
344
  timeLimit?: number | undefined;
345
345
  }, {
346
346
  items: {
347
+ type: CaptchaItemTypes;
347
348
  hash: string;
348
349
  data: string;
349
- type: CaptchaItemTypes;
350
350
  }[];
351
351
  salt: string;
352
352
  target: string;
@@ -369,20 +369,20 @@ export declare const CaptchasSchema: import("zod").ZodArray<import("zod").ZodObj
369
369
  data: import("zod").ZodString;
370
370
  type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
371
371
  }, "strip", import("zod").ZodTypeAny, {
372
+ type: CaptchaItemTypes;
372
373
  hash: string;
373
374
  data: string;
374
- type: CaptchaItemTypes;
375
375
  }, {
376
+ type: CaptchaItemTypes;
376
377
  hash: string;
377
378
  data: string;
378
- type: CaptchaItemTypes;
379
379
  }>, "many">;
380
380
  target: import("zod").ZodString;
381
381
  }>, "strip", import("zod").ZodTypeAny, {
382
382
  items: {
383
+ type: CaptchaItemTypes;
383
384
  hash: string;
384
385
  data: string;
385
- type: CaptchaItemTypes;
386
386
  }[];
387
387
  salt: string;
388
388
  target: string;
@@ -393,9 +393,9 @@ export declare const CaptchasSchema: import("zod").ZodArray<import("zod").ZodObj
393
393
  timeLimit?: number | undefined;
394
394
  }, {
395
395
  items: {
396
+ type: CaptchaItemTypes;
396
397
  hash: string;
397
398
  data: string;
398
- type: CaptchaItemTypes;
399
399
  }[];
400
400
  salt: string;
401
401
  target: string;
@@ -418,13 +418,13 @@ export declare const CaptchasWithNumericSolutionSchema: import("zod").ZodArray<i
418
418
  data: import("zod").ZodString;
419
419
  type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
420
420
  }, "strip", import("zod").ZodTypeAny, {
421
+ type: CaptchaItemTypes;
421
422
  hash: string;
422
423
  data: string;
423
- type: CaptchaItemTypes;
424
424
  }, {
425
+ type: CaptchaItemTypes;
425
426
  hash: string;
426
427
  data: string;
427
- type: CaptchaItemTypes;
428
428
  }>, "many">;
429
429
  target: import("zod").ZodString;
430
430
  }>, {
@@ -435,9 +435,9 @@ export declare const CaptchasWithNumericSolutionSchema: import("zod").ZodArray<i
435
435
  unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
436
436
  }>, "strip", import("zod").ZodTypeAny, {
437
437
  items: {
438
+ type: CaptchaItemTypes;
438
439
  hash: string;
439
440
  data: string;
440
- type: CaptchaItemTypes;
441
441
  }[];
442
442
  salt: string;
443
443
  target: string;
@@ -448,9 +448,9 @@ export declare const CaptchasWithNumericSolutionSchema: import("zod").ZodArray<i
448
448
  timeLimit?: number | undefined;
449
449
  }, {
450
450
  items: {
451
+ type: CaptchaItemTypes;
451
452
  hash: string;
452
453
  data: string;
453
- type: CaptchaItemTypes;
454
454
  }[];
455
455
  salt: string;
456
456
  target: string;
@@ -502,28 +502,28 @@ export declare const DataSchema: import("zod").ZodObject<{
502
502
  }>, {
503
503
  label: import("zod").ZodOptional<import("zod").ZodString>;
504
504
  }>, "strip", import("zod").ZodTypeAny, {
505
+ type: CaptchaItemTypes;
505
506
  hash: string;
506
507
  data: string;
507
- type: CaptchaItemTypes;
508
508
  label?: string | undefined;
509
509
  }, {
510
+ type: CaptchaItemTypes;
510
511
  hash: string;
511
512
  data: string;
512
- type: CaptchaItemTypes;
513
513
  label?: string | undefined;
514
514
  }>, "many">;
515
515
  }, "strip", import("zod").ZodTypeAny, {
516
516
  items: {
517
+ type: CaptchaItemTypes;
517
518
  hash: string;
518
519
  data: string;
519
- type: CaptchaItemTypes;
520
520
  label?: string | undefined;
521
521
  }[];
522
522
  }, {
523
523
  items: {
524
+ type: CaptchaItemTypes;
524
525
  hash: string;
525
526
  data: string;
526
- type: CaptchaItemTypes;
527
527
  label?: string | undefined;
528
528
  }[];
529
529
  }>;
@@ -537,28 +537,28 @@ export declare const LabelledDataSchema: import("zod").ZodObject<{
537
537
  }>, {
538
538
  label: import("zod").ZodString;
539
539
  }>, "strip", import("zod").ZodTypeAny, {
540
+ type: CaptchaItemTypes;
540
541
  hash: string;
541
542
  data: string;
542
- type: CaptchaItemTypes;
543
543
  label: string;
544
544
  }, {
545
+ type: CaptchaItemTypes;
545
546
  hash: string;
546
547
  data: string;
547
- type: CaptchaItemTypes;
548
548
  label: string;
549
549
  }>, "many">;
550
550
  }, "strip", import("zod").ZodTypeAny, {
551
551
  items: {
552
+ type: CaptchaItemTypes;
552
553
  hash: string;
553
554
  data: string;
554
- type: CaptchaItemTypes;
555
555
  label: string;
556
556
  }[];
557
557
  }, {
558
558
  items: {
559
+ type: CaptchaItemTypes;
559
560
  hash: string;
560
561
  data: string;
561
- type: CaptchaItemTypes;
562
562
  label: string;
563
563
  }[];
564
564
  }>;
@@ -576,20 +576,20 @@ export declare const CaptchasContainerSchema: import("zod").ZodObject<{
576
576
  data: import("zod").ZodString;
577
577
  type: import("zod").ZodNativeEnum<typeof CaptchaItemTypes>;
578
578
  }, "strip", import("zod").ZodTypeAny, {
579
+ type: CaptchaItemTypes;
579
580
  hash: string;
580
581
  data: string;
581
- type: CaptchaItemTypes;
582
582
  }, {
583
+ type: CaptchaItemTypes;
583
584
  hash: string;
584
585
  data: string;
585
- type: CaptchaItemTypes;
586
586
  }>, "many">;
587
587
  target: import("zod").ZodString;
588
588
  }>, "strip", import("zod").ZodTypeAny, {
589
589
  items: {
590
+ type: CaptchaItemTypes;
590
591
  hash: string;
591
592
  data: string;
592
- type: CaptchaItemTypes;
593
593
  }[];
594
594
  salt: string;
595
595
  target: string;
@@ -600,9 +600,9 @@ export declare const CaptchasContainerSchema: import("zod").ZodObject<{
600
600
  timeLimit?: number | undefined;
601
601
  }, {
602
602
  items: {
603
+ type: CaptchaItemTypes;
603
604
  hash: string;
604
605
  data: string;
605
- type: CaptchaItemTypes;
606
606
  }[];
607
607
  salt: string;
608
608
  target: string;
@@ -616,9 +616,9 @@ export declare const CaptchasContainerSchema: import("zod").ZodObject<{
616
616
  }, "strip", import("zod").ZodTypeAny, {
617
617
  captchas: {
618
618
  items: {
619
+ type: CaptchaItemTypes;
619
620
  hash: string;
620
621
  data: string;
621
- type: CaptchaItemTypes;
622
622
  }[];
623
623
  salt: string;
624
624
  target: string;
@@ -632,9 +632,9 @@ export declare const CaptchasContainerSchema: import("zod").ZodObject<{
632
632
  }, {
633
633
  captchas: {
634
634
  items: {
635
+ type: CaptchaItemTypes;
635
636
  hash: string;
636
637
  data: string;
637
- type: CaptchaItemTypes;
638
638
  }[];
639
639
  salt: string;
640
640
  target: string;
@@ -40,20 +40,20 @@ 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
53
  items: {
54
+ type: import("./captcha.js").CaptchaItemTypes;
54
55
  hash: string;
55
56
  data: string;
56
- type: import("./captcha.js").CaptchaItemTypes;
57
57
  }[];
58
58
  salt: string;
59
59
  target: string;
@@ -64,9 +64,9 @@ export declare const DatasetSchema: import("zod").ZodObject<{
64
64
  timeLimit?: number | undefined;
65
65
  }, {
66
66
  items: {
67
+ type: import("./captcha.js").CaptchaItemTypes;
67
68
  hash: string;
68
69
  data: string;
69
- type: import("./captcha.js").CaptchaItemTypes;
70
70
  }[];
71
71
  salt: string;
72
72
  target: string;
@@ -83,9 +83,9 @@ export declare const DatasetSchema: import("zod").ZodObject<{
83
83
  }, "strip", import("zod").ZodTypeAny, {
84
84
  captchas: {
85
85
  items: {
86
+ type: import("./captcha.js").CaptchaItemTypes;
86
87
  hash: string;
87
88
  data: string;
88
- type: import("./captcha.js").CaptchaItemTypes;
89
89
  }[];
90
90
  salt: string;
91
91
  target: string;
@@ -104,9 +104,9 @@ export declare const DatasetSchema: import("zod").ZodObject<{
104
104
  }, {
105
105
  captchas: {
106
106
  items: {
107
+ type: import("./captcha.js").CaptchaItemTypes;
107
108
  hash: string;
108
109
  data: string;
109
- type: import("./captcha.js").CaptchaItemTypes;
110
110
  }[];
111
111
  salt: string;
112
112
  target: string;
@@ -139,20 +139,20 @@ 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
152
  items: {
153
+ type: import("./captcha.js").CaptchaItemTypes;
153
154
  hash: string;
154
155
  data: string;
155
- type: import("./captcha.js").CaptchaItemTypes;
156
156
  }[];
157
157
  salt: string;
158
158
  target: string;
@@ -163,9 +163,9 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
163
163
  timeLimit?: number | undefined;
164
164
  }, {
165
165
  items: {
166
+ type: import("./captcha.js").CaptchaItemTypes;
166
167
  hash: string;
167
168
  data: string;
168
- type: import("./captcha.js").CaptchaItemTypes;
169
169
  }[];
170
170
  salt: string;
171
171
  target: string;
@@ -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
  }>, {
@@ -210,9 +210,9 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
210
210
  unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodNumber, "many">>;
211
211
  }>, "strip", import("zod").ZodTypeAny, {
212
212
  items: {
213
+ type: import("./captcha.js").CaptchaItemTypes;
213
214
  hash: string;
214
215
  data: string;
215
- type: import("./captcha.js").CaptchaItemTypes;
216
216
  }[];
217
217
  salt: string;
218
218
  target: string;
@@ -223,9 +223,9 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
223
223
  timeLimit?: number | undefined;
224
224
  }, {
225
225
  items: {
226
+ type: import("./captcha.js").CaptchaItemTypes;
226
227
  hash: string;
227
228
  data: string;
228
- type: import("./captcha.js").CaptchaItemTypes;
229
229
  }[];
230
230
  salt: string;
231
231
  target: string;
@@ -238,9 +238,9 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
238
238
  }>, "strip", import("zod").ZodTypeAny, {
239
239
  captchas: {
240
240
  items: {
241
+ type: import("./captcha.js").CaptchaItemTypes;
241
242
  hash: string;
242
243
  data: string;
243
- type: import("./captcha.js").CaptchaItemTypes;
244
244
  }[];
245
245
  salt: string;
246
246
  target: string;
@@ -259,9 +259,9 @@ export declare const DatasetWithNumericSolutionSchema: import("zod").ZodObject<i
259
259
  }, {
260
260
  captchas: {
261
261
  items: {
262
+ type: import("./captcha.js").CaptchaItemTypes;
262
263
  hash: string;
263
264
  data: string;
264
- type: import("./captcha.js").CaptchaItemTypes;
265
265
  }[];
266
266
  salt: string;
267
267
  target: string;
@@ -294,13 +294,13 @@ 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
  }>, {
@@ -308,9 +308,9 @@ export declare const DatasetWithIdsSchema: import("zod").ZodObject<{
308
308
  unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
309
309
  }>, "strip", import("zod").ZodTypeAny, {
310
310
  items: {
311
+ type: import("./captcha.js").CaptchaItemTypes;
311
312
  hash: string;
312
313
  data: string;
313
- type: import("./captcha.js").CaptchaItemTypes;
314
314
  }[];
315
315
  salt: string;
316
316
  target: string;
@@ -321,9 +321,9 @@ export declare const DatasetWithIdsSchema: import("zod").ZodObject<{
321
321
  timeLimit?: number | undefined;
322
322
  }, {
323
323
  items: {
324
+ type: import("./captcha.js").CaptchaItemTypes;
324
325
  hash: string;
325
326
  data: string;
326
- type: import("./captcha.js").CaptchaItemTypes;
327
327
  }[];
328
328
  salt: string;
329
329
  target: string;
@@ -339,9 +339,9 @@ export declare const DatasetWithIdsSchema: import("zod").ZodObject<{
339
339
  }, "strip", import("zod").ZodTypeAny, {
340
340
  captchas: {
341
341
  items: {
342
+ type: import("./captcha.js").CaptchaItemTypes;
342
343
  hash: string;
343
344
  data: string;
344
- type: import("./captcha.js").CaptchaItemTypes;
345
345
  }[];
346
346
  salt: string;
347
347
  target: string;
@@ -359,9 +359,9 @@ export declare const DatasetWithIdsSchema: import("zod").ZodObject<{
359
359
  }, {
360
360
  captchas: {
361
361
  items: {
362
+ type: import("./captcha.js").CaptchaItemTypes;
362
363
  hash: string;
363
364
  data: string;
364
- type: import("./captcha.js").CaptchaItemTypes;
365
365
  }[];
366
366
  salt: string;
367
367
  target: string;
@@ -393,13 +393,13 @@ 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
  }>, {
@@ -407,9 +407,9 @@ export declare const DatasetWithIdsAndTreeSchema: import("zod").ZodObject<import
407
407
  unlabelled: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
408
408
  }>, "strip", import("zod").ZodTypeAny, {
409
409
  items: {
410
+ type: import("./captcha.js").CaptchaItemTypes;
410
411
  hash: string;
411
412
  data: string;
412
- type: import("./captcha.js").CaptchaItemTypes;
413
413
  }[];
414
414
  salt: string;
415
415
  target: string;
@@ -420,9 +420,9 @@ export declare const DatasetWithIdsAndTreeSchema: import("zod").ZodObject<import
420
420
  timeLimit?: number | undefined;
421
421
  }, {
422
422
  items: {
423
+ type: import("./captcha.js").CaptchaItemTypes;
423
424
  hash: string;
424
425
  data: string;
425
- type: import("./captcha.js").CaptchaItemTypes;
426
426
  }[];
427
427
  salt: string;
428
428
  target: string;
@@ -441,9 +441,9 @@ export declare const DatasetWithIdsAndTreeSchema: import("zod").ZodObject<import
441
441
  }>, "strip", import("zod").ZodTypeAny, {
442
442
  captchas: {
443
443
  items: {
444
+ type: import("./captcha.js").CaptchaItemTypes;
444
445
  hash: string;
445
446
  data: string;
446
- type: import("./captcha.js").CaptchaItemTypes;
447
447
  }[];
448
448
  salt: string;
449
449
  target: string;
@@ -461,9 +461,9 @@ export declare const DatasetWithIdsAndTreeSchema: import("zod").ZodObject<import
461
461
  }, {
462
462
  captchas: {
463
463
  items: {
464
+ type: import("./captcha.js").CaptchaItemTypes;
464
465
  hash: string;
465
466
  data: string;
466
- type: import("./captcha.js").CaptchaItemTypes;
467
467
  }[];
468
468
  salt: string;
469
469
  target: string;
package/dist/index.js CHANGED
@@ -9,16 +9,16 @@ import "./procaptcha-frictionless/index.js";
9
9
  import "./keyring/index.js";
10
10
  import { ApiParams } from "./api/params.js";
11
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";
12
+ import { ClientSettingsSchema, IPValidationAction, IPValidationActionSchema, IPValidationRulesSchema, abuseScoreThresholdDefault, abuseScoreThresholdExceedActionDefault, captchaTypeDefault, cityChangeActionDefault, contextAwareThresholdDefault, countryChangeActionDefault, distanceExceedActionDefault, distanceThresholdKmDefault, domainsDefault, frictionlessThresholdDefault, imageThresholdDefault, ispChangeActionDefault, powDifficultyDefault, requireAllConditionsDefault } from "./client/settings.js";
13
13
  import { CaptchaType, CaptchaTypeSchema } from "./client/captchaType/captchaType.js";
14
14
  import { CaptchaTypeSpec } from "./client/captchaType/captchaTypeSpec.js";
15
15
  import { AccountCreatorConfigSchema, CaptchaTimeoutSchema, DatabaseConfigSchema, DatabaseTypes, EnvironmentTypesSchema, IpApiServiceSpec, Mode, ModeEnum, PolkadotSecretJSONSpec, ProcaptchaConfigSchema, ProsopoApiConfigSchema, ProsopoBaseConfigSchema, ProsopoBasicConfigSchema, ProsopoCaptchaSolutionConfigSchema, ProsopoClientConfigSchema, ProsopoConfigSchema, ProsopoServerConfigSchema } from "./config/config.js";
16
16
  import { NetworkPairTypeSchema } from "./config/network.js";
17
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";
18
+ import { FrictionlessPenalties, PENALTY_ACCESS_RULE_DEFAULT, PENALTY_OLD_TIMESTAMP_DEFAULT, PENALTY_UNVERIFIED_HOST_DEFAULT, PENALTY_WEBVIEW_DEFAULT } from "./config/frictionless.js";
19
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
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";
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, ToggleMaintenanceModeBody, UpdateDetectorKeyBody, VerifyPowCaptchaSolutionBody, VerifySolutionBody, providerDetailsSchema } from "./provider/api.js";
22
22
  import { ScheduledTaskNames, ScheduledTaskStatus } from "./provider/scheduler.js";
23
23
  import { ProcaptchaResponse } from "./procaptcha/manager.js";
24
24
  import { ChallengeSignatureSchema, ProcaptchaOutputSchema, ProcaptchaTokenCodec, ProcaptchaTokenSpec, RequestHashSignatureSchema, SignatureTypesSchema, TimestampSignatureSchema, decodeProcaptchaOutput, encodeProcaptchaOutput } from "./procaptcha/token.js";
@@ -89,6 +89,7 @@ export {
89
89
  PENALTY_ACCESS_RULE_DEFAULT,
90
90
  PENALTY_OLD_TIMESTAMP_DEFAULT,
91
91
  PENALTY_UNVERIFIED_HOST_DEFAULT,
92
+ PENALTY_WEBVIEW_DEFAULT,
92
93
  POW_SEPARATOR,
93
94
  PolkadotSecretJSONSpec,
94
95
  PowChallengeIdSchema,
@@ -124,6 +125,7 @@ export {
124
125
  TierSchema,
125
126
  TimestampSchema,
126
127
  TimestampSignatureSchema,
128
+ ToggleMaintenanceModeBody,
127
129
  UpdateDetectorKeyBody,
128
130
  VerifyPowCaptchaSolutionBody,
129
131
  VerifySolutionBody,
@@ -131,6 +133,7 @@ export {
131
133
  abuseScoreThresholdExceedActionDefault,
132
134
  captchaTypeDefault,
133
135
  cityChangeActionDefault,
136
+ contextAwareThresholdDefault,
134
137
  countryChangeActionDefault,
135
138
  decodeProcaptchaOutput,
136
139
  distanceExceedActionDefault,