@prosopo/types 3.8.0 → 4.3.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 (105) hide show
  1. package/.turbo/turbo-build$colon$cjs.log +19 -14
  2. package/.turbo/turbo-build$colon$tsc.log +8 -8
  3. package/.turbo/turbo-build.log +49 -44
  4. package/.turbo/turbo-typecheck.log +1 -1
  5. package/CHANGELOG.md +515 -0
  6. package/dist/api/api.d.ts +23 -5
  7. package/dist/api/api.d.ts.map +1 -1
  8. package/dist/api/ipapi.d.ts +2 -1
  9. package/dist/api/ipapi.d.ts.map +1 -1
  10. package/dist/api/params.d.ts +24 -1
  11. package/dist/api/params.d.ts.map +1 -1
  12. package/dist/api/params.js +23 -0
  13. package/dist/api/params.js.map +1 -1
  14. package/dist/cjs/api/params.cjs +23 -0
  15. package/dist/cjs/client/captchaType/captchaType.cjs +16 -0
  16. package/dist/cjs/client/index.cjs +17 -0
  17. package/dist/cjs/client/settings.cjs +83 -1
  18. package/dist/cjs/client/testSiteKeys.cjs +22 -0
  19. package/dist/cjs/config/config.cjs +25 -18
  20. package/dist/cjs/config/index.cjs +6 -2
  21. package/dist/cjs/config/mode.cjs +15 -0
  22. package/dist/cjs/config/timeouts.cjs +6 -0
  23. package/dist/cjs/decisionMachine/index.cjs +85 -0
  24. package/dist/cjs/index.cjs +81 -2
  25. package/dist/cjs/provider/api.cjs +261 -9
  26. package/dist/cjs/provider/database.cjs +253 -0
  27. package/dist/cjs/provider/index.cjs +43 -0
  28. package/dist/cjs/provider/reasons.cjs +45 -0
  29. package/dist/cjs/provider/scheduler.cjs +1 -0
  30. package/dist/client/captchaType/captchaType.d.ts +4 -2
  31. package/dist/client/captchaType/captchaType.d.ts.map +1 -1
  32. package/dist/client/captchaType/captchaType.js +17 -1
  33. package/dist/client/captchaType/captchaType.js.map +1 -1
  34. package/dist/client/index.d.ts +1 -0
  35. package/dist/client/index.d.ts.map +1 -1
  36. package/dist/client/index.js +20 -3
  37. package/dist/client/index.js.map +1 -1
  38. package/dist/client/settings.d.ts +276 -0
  39. package/dist/client/settings.d.ts.map +1 -1
  40. package/dist/client/settings.js +84 -2
  41. package/dist/client/settings.js.map +1 -1
  42. package/dist/client/testSiteKeys.d.ts +8 -0
  43. package/dist/client/testSiteKeys.d.ts.map +1 -0
  44. package/dist/client/testSiteKeys.js +22 -0
  45. package/dist/client/testSiteKeys.js.map +1 -0
  46. package/dist/config/config.d.ts +371 -27
  47. package/dist/config/config.d.ts.map +1 -1
  48. package/dist/config/config.js +25 -18
  49. package/dist/config/config.js.map +1 -1
  50. package/dist/config/index.d.ts +1 -0
  51. package/dist/config/index.d.ts.map +1 -1
  52. package/dist/config/index.js +6 -2
  53. package/dist/config/index.js.map +1 -1
  54. package/dist/config/mode.d.ts +8 -0
  55. package/dist/config/mode.d.ts.map +1 -0
  56. package/dist/config/mode.js +15 -0
  57. package/dist/config/mode.js.map +1 -0
  58. package/dist/config/timeouts.d.ts +3 -0
  59. package/dist/config/timeouts.d.ts.map +1 -1
  60. package/dist/config/timeouts.js +7 -1
  61. package/dist/config/timeouts.js.map +1 -1
  62. package/dist/datasets/captcha.d.ts +2 -2
  63. package/dist/datasets/captcha.d.ts.map +1 -1
  64. package/dist/datasets/captcha.js.map +1 -1
  65. package/dist/decisionMachine/index.d.ts +174 -0
  66. package/dist/decisionMachine/index.d.ts.map +1 -0
  67. package/dist/decisionMachine/index.js +85 -0
  68. package/dist/decisionMachine/index.js.map +1 -0
  69. package/dist/index.d.ts +1 -0
  70. package/dist/index.d.ts.map +1 -1
  71. package/dist/index.js +85 -6
  72. package/dist/index.js.map +1 -1
  73. package/dist/procaptcha/api.d.ts +3 -2
  74. package/dist/procaptcha/api.d.ts.map +1 -1
  75. package/dist/procaptcha/behavioral.d.ts +13 -1
  76. package/dist/procaptcha/behavioral.d.ts.map +1 -1
  77. package/dist/procaptcha/props.d.ts +5 -0
  78. package/dist/procaptcha/props.d.ts.map +1 -1
  79. package/dist/procaptcha-bundle/index.d.ts +0 -3
  80. package/dist/procaptcha-bundle/index.d.ts.map +1 -1
  81. package/dist/procaptcha-frictionless/props.d.ts +1 -0
  82. package/dist/procaptcha-frictionless/props.d.ts.map +1 -1
  83. package/dist/provider/api.d.ts +1662 -122
  84. package/dist/provider/api.d.ts.map +1 -1
  85. package/dist/provider/api.js +261 -9
  86. package/dist/provider/api.js.map +1 -1
  87. package/dist/provider/database.d.ts +1376 -0
  88. package/dist/provider/database.d.ts.map +1 -0
  89. package/dist/provider/database.js +253 -0
  90. package/dist/provider/database.js.map +1 -0
  91. package/dist/provider/detection.d.ts +21 -0
  92. package/dist/provider/detection.d.ts.map +1 -1
  93. package/dist/provider/index.d.ts +2 -0
  94. package/dist/provider/index.d.ts.map +1 -1
  95. package/dist/provider/index.js +44 -1
  96. package/dist/provider/index.js.map +1 -1
  97. package/dist/provider/reasons.d.ts +40 -0
  98. package/dist/provider/reasons.d.ts.map +1 -0
  99. package/dist/provider/reasons.js +45 -0
  100. package/dist/provider/reasons.js.map +1 -0
  101. package/dist/provider/scheduler.d.ts +2 -1
  102. package/dist/provider/scheduler.d.ts.map +1 -1
  103. package/dist/provider/scheduler.js +1 -0
  104. package/dist/provider/scheduler.js.map +1 -1
  105. package/package.json +6 -5
@@ -1,9 +1,11 @@
1
1
  import type { Address4, Address6 } from "ip-address";
2
- import { type ZodDefault, type ZodNumber, type ZodObject, type ZodOptional, type input, type output, type infer as zInfer } from "zod";
2
+ import { type ZodDefault, type ZodNumber, type ZodObject, type ZodOptional, type input, type output, type z, type infer as zInfer } from "zod";
3
3
  import { ApiParams } from "../api/params.js";
4
- import type { CaptchaType } from "../client/captchaType/captchaType.js";
4
+ import { type CaptchaType } from "../client/captchaType/captchaType.js";
5
5
  import { Tier } from "../client/index.js";
6
+ import { ModeEnum } from "../config/mode.js";
6
7
  import { type Captcha, type DappAccount, type DatasetID, type PoWChallengeId, type UserAccount } from "../datasets/index.js";
8
+ import { DecisionMachineLanguage, DecisionMachineRuntime, DecisionMachineScope } from "../decisionMachine/index.js";
7
9
  import { type ChallengeSignature, type RequestHashSignature } from "../procaptcha/index.js";
8
10
  export type ApiJsonError = {
9
11
  message: string;
@@ -23,21 +25,25 @@ export declare enum ClientApiPaths {
23
25
  SubmitPowCaptchaSolution = "/v1/prosopo/provider/client/pow/solution",
24
26
  VerifyPowCaptchaSolution = "/v1/prosopo/provider/client/pow/verify",
25
27
  VerifyImageCaptchaSolutionDapp = "/v1/prosopo/provider/client/image/dapp/verify",
28
+ GetPuzzleCaptchaChallenge = "/v1/prosopo/provider/client/captcha/puzzle",
29
+ SubmitPuzzleCaptchaSolution = "/v1/prosopo/provider/client/puzzle/solution",
30
+ VerifyPuzzleCaptchaSolution = "/v1/prosopo/provider/client/puzzle/verify",
26
31
  GetProviderStatus = "/v1/prosopo/provider/client/status",
27
- SubmitUserEvents = "/v1/prosopo/provider/client/events"
32
+ SubmitUserEvents = "/v1/prosopo/provider/client/events",
33
+ CheckSpamEmail = "/v1/prosopo/provider/client/spam/email"
28
34
  }
29
35
  export declare enum PublicApiPaths {
30
36
  Healthz = "/healthz",
31
37
  GetProviderDetails = "/v1/prosopo/provider/public/details"
32
38
  }
33
39
  export declare const providerDetailsSchema: ZodObject<{
34
- version: import("zod").ZodString;
35
- message: import("zod").ZodString;
36
- redis: import("zod").ZodArray<ZodObject<{
37
- actor: import("zod").ZodString;
38
- isReady: import("zod").ZodBoolean;
40
+ version: z.ZodString;
41
+ message: z.ZodString;
42
+ redis: z.ZodArray<ZodObject<{
43
+ actor: z.ZodString;
44
+ isReady: z.ZodBoolean;
39
45
  awaitingTimeSeconds: ZodNumber;
40
- }, "strip", import("zod").ZodTypeAny, {
46
+ }, "strip", z.ZodTypeAny, {
41
47
  actor: string;
42
48
  isReady: boolean;
43
49
  awaitingTimeSeconds: number;
@@ -46,7 +52,7 @@ export declare const providerDetailsSchema: ZodObject<{
46
52
  isReady: boolean;
47
53
  awaitingTimeSeconds: number;
48
54
  }>, "many">;
49
- }, "strip", import("zod").ZodTypeAny, {
55
+ }, "strip", z.ZodTypeAny, {
50
56
  message: string;
51
57
  version: string;
52
58
  redis: {
@@ -68,11 +74,23 @@ export type TGetImageCaptchaChallengePathAndParams = `${ClientApiPaths.GetImageC
68
74
  export type TGetImageCaptchaChallengeURL = `${string}${TGetImageCaptchaChallengePathAndParams}`;
69
75
  export type TGetPowCaptchaChallengeURL = `${string}${ClientApiPaths.GetPowCaptchaChallenge}`;
70
76
  export type TSubmitPowCaptchaSolutionURL = `${string}${ClientApiPaths.SubmitPowCaptchaSolution}`;
77
+ export type TGetPuzzleCaptchaChallengeURL = `${string}${ClientApiPaths.GetPuzzleCaptchaChallenge}`;
78
+ export type TSubmitPuzzleCaptchaSolutionURL = `${string}${ClientApiPaths.SubmitPuzzleCaptchaSolution}`;
71
79
  export declare enum AdminApiPaths {
72
80
  SiteKeyRegister = "/v1/prosopo/provider/admin/sitekey/register",
81
+ SiteKeysRegister = "/v1/prosopo/provider/admin/sitekeys/register",
73
82
  UpdateDetectorKey = "/v1/prosopo/provider/admin/detector/update",
74
83
  RemoveDetectorKey = "/v1/prosopo/provider/admin/detector/remove",
75
- ToggleMaintenanceMode = "/v1/prosopo/provider/admin/maintenance/toggle"
84
+ ToggleMaintenanceMode = "/v1/prosopo/provider/admin/maintenance/toggle",
85
+ UpdateDecisionMachine = "/v1/prosopo/provider/admin/decision-machine/update",
86
+ GetAllDecisionMachines = "/v1/prosopo/provider/admin/decision-machine/get-all",
87
+ GetDecisionMachine = "/v1/prosopo/provider/admin/decision-machine/get",
88
+ RemoveDecisionMachine = "/v1/prosopo/provider/admin/decision-machine/remove",
89
+ RemoveAllDecisionMachines = "/v1/prosopo/provider/admin/decision-machine/remove-all",
90
+ ClearAllCounters = "/v1/prosopo/provider/admin/counters/clear-all",
91
+ SiteKeyRemove = "/v1/prosopo/provider/admin/sitekey/remove",
92
+ SiteKeysRemove = "/v1/prosopo/provider/admin/sitekeys/remove",
93
+ DnsEvent = "/v1/prosopo/provider/admin/dns/event"
76
94
  }
77
95
  export type CombinedApiPaths = ClientApiPaths | AdminApiPaths;
78
96
  export declare const ProviderDefaultRateLimits: {
@@ -100,6 +118,18 @@ export declare const ProviderDefaultRateLimits: {
100
118
  windowMs: number;
101
119
  limit: number;
102
120
  };
121
+ "/v1/prosopo/provider/client/captcha/puzzle": {
122
+ windowMs: number;
123
+ limit: number;
124
+ };
125
+ "/v1/prosopo/provider/client/puzzle/solution": {
126
+ windowMs: number;
127
+ limit: number;
128
+ };
129
+ "/v1/prosopo/provider/client/puzzle/verify": {
130
+ windowMs: number;
131
+ limit: number;
132
+ };
103
133
  "/v1/prosopo/provider/client/image/dapp/verify": {
104
134
  windowMs: number;
105
135
  limit: number;
@@ -108,6 +138,10 @@ export declare const ProviderDefaultRateLimits: {
108
138
  windowMs: number;
109
139
  limit: number;
110
140
  };
141
+ "/v1/prosopo/provider/client/spam/email": {
142
+ windowMs: number;
143
+ limit: number;
144
+ };
111
145
  "/v1/prosopo/provider/public/details": {
112
146
  windowMs: number;
113
147
  limit: number;
@@ -120,6 +154,10 @@ export declare const ProviderDefaultRateLimits: {
120
154
  windowMs: number;
121
155
  limit: number;
122
156
  };
157
+ "/v1/prosopo/provider/admin/sitekeys/register": {
158
+ windowMs: number;
159
+ limit: number;
160
+ };
123
161
  "/v1/prosopo/provider/admin/detector/update": {
124
162
  windowMs: number;
125
163
  limit: number;
@@ -132,6 +170,42 @@ export declare const ProviderDefaultRateLimits: {
132
170
  windowMs: number;
133
171
  limit: number;
134
172
  };
173
+ "/v1/prosopo/provider/admin/decision-machine/update": {
174
+ windowMs: number;
175
+ limit: number;
176
+ };
177
+ "/v1/prosopo/provider/admin/decision-machine/get-all": {
178
+ windowMs: number;
179
+ limit: number;
180
+ };
181
+ "/v1/prosopo/provider/admin/decision-machine/get": {
182
+ windowMs: number;
183
+ limit: number;
184
+ };
185
+ "/v1/prosopo/provider/admin/decision-machine/remove": {
186
+ windowMs: number;
187
+ limit: number;
188
+ };
189
+ "/v1/prosopo/provider/admin/decision-machine/remove-all": {
190
+ windowMs: number;
191
+ limit: number;
192
+ };
193
+ "/v1/prosopo/provider/admin/counters/clear-all": {
194
+ windowMs: number;
195
+ limit: number;
196
+ };
197
+ "/v1/prosopo/provider/admin/sitekey/remove": {
198
+ windowMs: number;
199
+ limit: number;
200
+ };
201
+ "/v1/prosopo/provider/admin/sitekeys/remove": {
202
+ windowMs: number;
203
+ limit: number;
204
+ };
205
+ "/v1/prosopo/provider/admin/dns/event": {
206
+ windowMs: number;
207
+ limit: number;
208
+ };
135
209
  };
136
210
  export type RequestHeaders = {
137
211
  [key: string]: string;
@@ -153,7 +227,7 @@ type RateLimitSchemaType = ZodObject<{
153
227
  windowMs: ZodDefault<ZodOptional<ZodNumber>>;
154
228
  limit: ZodDefault<ZodOptional<ZodNumber>>;
155
229
  }>;
156
- export declare const ApiPathRateLimits: ZodObject<Record<CombinedApiPaths, RateLimitSchemaType>, "strip", import("zod").ZodTypeAny, {
230
+ export declare const ApiPathRateLimits: ZodObject<Record<CombinedApiPaths, RateLimitSchemaType>, "strip", z.ZodTypeAny, {
157
231
  "/v1/prosopo/provider/client/captcha/image": {
158
232
  windowMs: number;
159
233
  limit: number;
@@ -182,6 +256,18 @@ export declare const ApiPathRateLimits: ZodObject<Record<CombinedApiPaths, RateL
182
256
  windowMs: number;
183
257
  limit: number;
184
258
  };
259
+ "/v1/prosopo/provider/client/captcha/puzzle": {
260
+ windowMs: number;
261
+ limit: number;
262
+ };
263
+ "/v1/prosopo/provider/client/puzzle/solution": {
264
+ windowMs: number;
265
+ limit: number;
266
+ };
267
+ "/v1/prosopo/provider/client/puzzle/verify": {
268
+ windowMs: number;
269
+ limit: number;
270
+ };
185
271
  "/v1/prosopo/provider/client/status": {
186
272
  windowMs: number;
187
273
  limit: number;
@@ -190,10 +276,18 @@ export declare const ApiPathRateLimits: ZodObject<Record<CombinedApiPaths, RateL
190
276
  windowMs: number;
191
277
  limit: number;
192
278
  };
279
+ "/v1/prosopo/provider/client/spam/email": {
280
+ windowMs: number;
281
+ limit: number;
282
+ };
193
283
  "/v1/prosopo/provider/admin/sitekey/register": {
194
284
  windowMs: number;
195
285
  limit: number;
196
286
  };
287
+ "/v1/prosopo/provider/admin/sitekeys/register": {
288
+ windowMs: number;
289
+ limit: number;
290
+ };
197
291
  "/v1/prosopo/provider/admin/detector/update": {
198
292
  windowMs: number;
199
293
  limit: number;
@@ -206,6 +300,42 @@ export declare const ApiPathRateLimits: ZodObject<Record<CombinedApiPaths, RateL
206
300
  windowMs: number;
207
301
  limit: number;
208
302
  };
303
+ "/v1/prosopo/provider/admin/decision-machine/update": {
304
+ windowMs: number;
305
+ limit: number;
306
+ };
307
+ "/v1/prosopo/provider/admin/decision-machine/get-all": {
308
+ windowMs: number;
309
+ limit: number;
310
+ };
311
+ "/v1/prosopo/provider/admin/decision-machine/get": {
312
+ windowMs: number;
313
+ limit: number;
314
+ };
315
+ "/v1/prosopo/provider/admin/decision-machine/remove": {
316
+ windowMs: number;
317
+ limit: number;
318
+ };
319
+ "/v1/prosopo/provider/admin/decision-machine/remove-all": {
320
+ windowMs: number;
321
+ limit: number;
322
+ };
323
+ "/v1/prosopo/provider/admin/counters/clear-all": {
324
+ windowMs: number;
325
+ limit: number;
326
+ };
327
+ "/v1/prosopo/provider/admin/sitekey/remove": {
328
+ windowMs: number;
329
+ limit: number;
330
+ };
331
+ "/v1/prosopo/provider/admin/sitekeys/remove": {
332
+ windowMs: number;
333
+ limit: number;
334
+ };
335
+ "/v1/prosopo/provider/admin/dns/event": {
336
+ windowMs: number;
337
+ limit: number;
338
+ };
209
339
  }, {
210
340
  "/v1/prosopo/provider/client/captcha/image": {
211
341
  windowMs?: number | undefined;
@@ -235,6 +365,18 @@ export declare const ApiPathRateLimits: ZodObject<Record<CombinedApiPaths, RateL
235
365
  windowMs?: number | undefined;
236
366
  limit?: number | undefined;
237
367
  };
368
+ "/v1/prosopo/provider/client/captcha/puzzle": {
369
+ windowMs?: number | undefined;
370
+ limit?: number | undefined;
371
+ };
372
+ "/v1/prosopo/provider/client/puzzle/solution": {
373
+ windowMs?: number | undefined;
374
+ limit?: number | undefined;
375
+ };
376
+ "/v1/prosopo/provider/client/puzzle/verify": {
377
+ windowMs?: number | undefined;
378
+ limit?: number | undefined;
379
+ };
238
380
  "/v1/prosopo/provider/client/status": {
239
381
  windowMs?: number | undefined;
240
382
  limit?: number | undefined;
@@ -243,10 +385,18 @@ export declare const ApiPathRateLimits: ZodObject<Record<CombinedApiPaths, RateL
243
385
  windowMs?: number | undefined;
244
386
  limit?: number | undefined;
245
387
  };
388
+ "/v1/prosopo/provider/client/spam/email": {
389
+ windowMs?: number | undefined;
390
+ limit?: number | undefined;
391
+ };
246
392
  "/v1/prosopo/provider/admin/sitekey/register": {
247
393
  windowMs?: number | undefined;
248
394
  limit?: number | undefined;
249
395
  };
396
+ "/v1/prosopo/provider/admin/sitekeys/register": {
397
+ windowMs?: number | undefined;
398
+ limit?: number | undefined;
399
+ };
250
400
  "/v1/prosopo/provider/admin/detector/update": {
251
401
  windowMs?: number | undefined;
252
402
  limit?: number | undefined;
@@ -259,6 +409,42 @@ export declare const ApiPathRateLimits: ZodObject<Record<CombinedApiPaths, RateL
259
409
  windowMs?: number | undefined;
260
410
  limit?: number | undefined;
261
411
  };
412
+ "/v1/prosopo/provider/admin/decision-machine/update": {
413
+ windowMs?: number | undefined;
414
+ limit?: number | undefined;
415
+ };
416
+ "/v1/prosopo/provider/admin/decision-machine/get-all": {
417
+ windowMs?: number | undefined;
418
+ limit?: number | undefined;
419
+ };
420
+ "/v1/prosopo/provider/admin/decision-machine/get": {
421
+ windowMs?: number | undefined;
422
+ limit?: number | undefined;
423
+ };
424
+ "/v1/prosopo/provider/admin/decision-machine/remove": {
425
+ windowMs?: number | undefined;
426
+ limit?: number | undefined;
427
+ };
428
+ "/v1/prosopo/provider/admin/decision-machine/remove-all": {
429
+ windowMs?: number | undefined;
430
+ limit?: number | undefined;
431
+ };
432
+ "/v1/prosopo/provider/admin/counters/clear-all": {
433
+ windowMs?: number | undefined;
434
+ limit?: number | undefined;
435
+ };
436
+ "/v1/prosopo/provider/admin/sitekey/remove": {
437
+ windowMs?: number | undefined;
438
+ limit?: number | undefined;
439
+ };
440
+ "/v1/prosopo/provider/admin/sitekeys/remove": {
441
+ windowMs?: number | undefined;
442
+ limit?: number | undefined;
443
+ };
444
+ "/v1/prosopo/provider/admin/dns/event": {
445
+ windowMs?: number | undefined;
446
+ limit?: number | undefined;
447
+ };
262
448
  }>;
263
449
  export interface DappUserSolutionResult {
264
450
  [ApiParams.captchas]: CaptchaIdAndProof[];
@@ -272,20 +458,23 @@ export interface CaptchaIdAndProof {
272
458
  proof: string[][];
273
459
  }
274
460
  export declare const CaptchaRequestBody: ZodObject<{
275
- user: import("zod").ZodString;
276
- dapp: import("zod").ZodString;
277
- datasetId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<ZodNumber, "many">]>;
278
- sessionId: ZodOptional<import("zod").ZodString>;
279
- }, "strip", import("zod").ZodTypeAny, {
461
+ user: z.ZodString;
462
+ dapp: z.ZodString;
463
+ datasetId: z.ZodUnion<[z.ZodString, z.ZodArray<ZodNumber, "many">]>;
464
+ sessionId: ZodOptional<z.ZodString>;
465
+ simdReadings: ZodOptional<z.ZodString>;
466
+ }, "strip", z.ZodTypeAny, {
280
467
  datasetId: string | number[];
281
468
  user: string;
282
469
  dapp: string;
283
470
  sessionId?: string | undefined;
471
+ simdReadings?: string | undefined;
284
472
  }, {
285
473
  datasetId: string | number[];
286
474
  user: string;
287
475
  dapp: string;
288
476
  sessionId?: string | undefined;
477
+ simdReadings?: string | undefined;
289
478
  }>;
290
479
  export type CaptchaRequestBodyType = zInfer<typeof CaptchaRequestBody>;
291
480
  export type CaptchaRequestBodyTypeOutput = output<typeof CaptchaRequestBody>;
@@ -297,15 +486,22 @@ export interface CaptchaResponseBody extends ApiResponse {
297
486
  [ApiParams.provider]: RequestHashSignature;
298
487
  };
299
488
  }
489
+ export declare const ClientMetaDataSchema: ZodObject<{
490
+ hp: ZodOptional<z.ZodString>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ hp?: string | undefined;
493
+ }, {
494
+ hp?: string | undefined;
495
+ }>;
300
496
  export declare const CaptchaSolutionBody: ZodObject<{
301
- user: import("zod").ZodString;
302
- dapp: import("zod").ZodString;
303
- captchas: import("zod").ZodArray<ZodObject<{
304
- captchaId: import("zod").ZodString;
305
- captchaContentId: import("zod").ZodString;
306
- solution: import("zod").ZodArray<import("zod").ZodString, "many">;
307
- salt: import("zod").ZodString;
308
- }, "strip", import("zod").ZodTypeAny, {
497
+ user: z.ZodString;
498
+ dapp: z.ZodString;
499
+ captchas: z.ZodArray<ZodObject<{
500
+ captchaId: z.ZodString;
501
+ captchaContentId: z.ZodString;
502
+ solution: z.ZodArray<z.ZodString, "many">;
503
+ salt: z.ZodString;
504
+ }, "strip", z.ZodTypeAny, {
309
505
  captchaId: string;
310
506
  captchaContentId: string;
311
507
  salt: string;
@@ -316,24 +512,24 @@ export declare const CaptchaSolutionBody: ZodObject<{
316
512
  salt: string;
317
513
  solution: string[];
318
514
  }>, "many">;
319
- requestHash: import("zod").ZodString;
320
- timestamp: import("zod").ZodString;
515
+ requestHash: z.ZodString;
516
+ timestamp: z.ZodString;
321
517
  signature: ZodObject<{
322
518
  user: ZodObject<{
323
- timestamp: import("zod").ZodString;
324
- }, "strip", import("zod").ZodTypeAny, {
519
+ timestamp: z.ZodString;
520
+ }, "strip", z.ZodTypeAny, {
325
521
  timestamp: string;
326
522
  }, {
327
523
  timestamp: string;
328
524
  }>;
329
525
  provider: ZodObject<{
330
- requestHash: import("zod").ZodString;
331
- }, "strip", import("zod").ZodTypeAny, {
526
+ requestHash: z.ZodString;
527
+ }, "strip", z.ZodTypeAny, {
332
528
  requestHash: string;
333
529
  }, {
334
530
  requestHash: string;
335
531
  }>;
336
- }, "strip", import("zod").ZodTypeAny, {
532
+ }, "strip", z.ZodTypeAny, {
337
533
  user: {
338
534
  timestamp: string;
339
535
  };
@@ -348,7 +544,16 @@ export declare const CaptchaSolutionBody: ZodObject<{
348
544
  requestHash: string;
349
545
  };
350
546
  }>;
351
- }, "strip", import("zod").ZodTypeAny, {
547
+ behavioralData: ZodOptional<z.ZodString>;
548
+ simdReadings: ZodOptional<z.ZodString>;
549
+ clientMetaData: ZodOptional<ZodObject<{
550
+ hp: ZodOptional<z.ZodString>;
551
+ }, "strip", z.ZodTypeAny, {
552
+ hp?: string | undefined;
553
+ }, {
554
+ hp?: string | undefined;
555
+ }>>;
556
+ }, "strip", z.ZodTypeAny, {
352
557
  user: string;
353
558
  dapp: string;
354
559
  requestHash: string;
@@ -367,6 +572,11 @@ export declare const CaptchaSolutionBody: ZodObject<{
367
572
  requestHash: string;
368
573
  };
369
574
  };
575
+ behavioralData?: string | undefined;
576
+ simdReadings?: string | undefined;
577
+ clientMetaData?: {
578
+ hp?: string | undefined;
579
+ } | undefined;
370
580
  }, {
371
581
  user: string;
372
582
  dapp: string;
@@ -386,23 +596,31 @@ export declare const CaptchaSolutionBody: ZodObject<{
386
596
  requestHash: string;
387
597
  };
388
598
  };
599
+ behavioralData?: string | undefined;
600
+ simdReadings?: string | undefined;
601
+ clientMetaData?: {
602
+ hp?: string | undefined;
603
+ } | undefined;
389
604
  }>;
390
605
  export type CaptchaSolutionBodyType = zInfer<typeof CaptchaSolutionBody>;
391
606
  export declare const VerifySolutionBody: ZodObject<{
392
- token: import("zod").ZodString;
393
- dappSignature: import("zod").ZodString;
607
+ token: z.ZodString;
608
+ dappSignature: z.ZodString;
394
609
  maxVerifiedTime: ZodDefault<ZodOptional<ZodNumber>>;
395
- ip: ZodOptional<import("zod").ZodString>;
396
- }, "strip", import("zod").ZodTypeAny, {
610
+ ip: ZodOptional<z.ZodString>;
611
+ email: ZodOptional<z.ZodString>;
612
+ }, "strip", z.ZodTypeAny, {
397
613
  dappSignature: string;
398
614
  maxVerifiedTime: number;
399
615
  token: string;
400
616
  ip?: string | undefined;
617
+ email?: string | undefined;
401
618
  }, {
402
619
  dappSignature: string;
403
620
  token: string;
404
621
  maxVerifiedTime?: number | undefined;
405
622
  ip?: string | undefined;
623
+ email?: string | undefined;
406
624
  }>;
407
625
  export type VerifySolutionBodyTypeInput = input<typeof VerifySolutionBody>;
408
626
  export type VerifySolutionBodyTypeOutput = output<typeof VerifySolutionBody>;
@@ -419,12 +637,20 @@ export interface ApiResponse {
419
637
  export interface VerificationResponse extends ApiResponse {
420
638
  [ApiParams.verified]: boolean;
421
639
  [ApiParams.score]?: number;
640
+ [ApiParams.reason]?: string;
422
641
  }
423
642
  export interface UpdateDetectorKeyResponse extends ApiResponse {
424
643
  data: {
425
644
  activeDetectorKeys: string[];
426
645
  };
427
646
  }
647
+ export interface UpdateDecisionMachineResponse extends ApiResponse {
648
+ data: {
649
+ scope: DecisionMachineScope;
650
+ dappAccount?: string;
651
+ updatedAt: string;
652
+ };
653
+ }
428
654
  export interface ImageVerificationResponse extends VerificationResponse {
429
655
  [ApiParams.commitmentId]?: Hash;
430
656
  }
@@ -436,66 +662,215 @@ export interface GetPowCaptchaResponse extends ApiResponse {
436
662
  [ApiParams.provider]: ChallengeSignature;
437
663
  };
438
664
  }
665
+ export interface GetPuzzleCaptchaResponse extends ApiResponse {
666
+ [ApiParams.challenge]: PoWChallengeId;
667
+ [ApiParams.targetX]: number;
668
+ [ApiParams.targetY]: number;
669
+ [ApiParams.originX]: number;
670
+ [ApiParams.originY]: number;
671
+ [ApiParams.tolerance]: number;
672
+ [ApiParams.timestamp]: string;
673
+ [ApiParams.signature]: {
674
+ [ApiParams.provider]: ChallengeSignature;
675
+ };
676
+ }
677
+ export interface PuzzleCaptchaSolutionResponse extends ApiResponse {
678
+ [ApiParams.verified]: boolean;
679
+ [ApiParams.error]?: ApiJsonError;
680
+ }
439
681
  export interface GetFrictionlessCaptchaResponse extends ApiResponse {
440
- [ApiParams.captchaType]: CaptchaType.pow | CaptchaType.image;
682
+ [ApiParams.captchaType]: CaptchaType.pow | CaptchaType.image | CaptchaType.puzzle;
441
683
  [ApiParams.sessionId]?: string;
684
+ [ApiParams.hp]?: string;
685
+ dns_url?: string;
686
+ }
687
+ export interface PowCaptchaSolutionEscalation {
688
+ [ApiParams.captchaType]: CaptchaType.image | CaptchaType.puzzle;
689
+ [ApiParams.sessionId]: string;
442
690
  }
443
691
  export interface PowCaptchaSolutionResponse extends ApiResponse {
444
692
  [ApiParams.verified]: boolean;
445
693
  [ApiParams.error]?: ApiJsonError;
694
+ [ApiParams.escalation]?: PowCaptchaSolutionEscalation;
446
695
  }
447
696
  export declare const ServerPowCaptchaVerifyRequestBody: ZodObject<{
448
- token: import("zod").ZodString;
449
- dappSignature: import("zod").ZodString;
697
+ token: z.ZodString;
698
+ dappSignature: z.ZodString;
450
699
  verifiedTimeout: ZodDefault<ZodOptional<ZodNumber>>;
451
- ip: ZodOptional<import("zod").ZodString>;
452
- }, "strip", import("zod").ZodTypeAny, {
700
+ ip: ZodOptional<z.ZodString>;
701
+ email: ZodOptional<z.ZodString>;
702
+ }, "strip", z.ZodTypeAny, {
453
703
  dappSignature: string;
454
704
  verifiedTimeout: number;
455
705
  token: string;
456
706
  ip?: string | undefined;
707
+ email?: string | undefined;
457
708
  }, {
458
709
  dappSignature: string;
459
710
  token: string;
460
711
  verifiedTimeout?: number | undefined;
461
712
  ip?: string | undefined;
713
+ email?: string | undefined;
462
714
  }>;
463
715
  export type ServerPowCaptchaVerifyRequestBodyOutput = output<typeof ServerPowCaptchaVerifyRequestBody>;
716
+ export declare const DnsEventKindSchema: z.ZodUnion<[z.ZodString, z.ZodString]>;
717
+ export type DnsEventKind = "dns" | "http";
718
+ export declare const DnsEventSchema: ZodObject<{
719
+ kind: z.ZodUnion<[z.ZodString, z.ZodString]>;
720
+ ts: z.ZodString;
721
+ src_ip: z.ZodString;
722
+ jti: ZodOptional<z.ZodString>;
723
+ site_key: ZodOptional<z.ZodString>;
724
+ subzone: ZodOptional<z.ZodString>;
725
+ qname: ZodOptional<z.ZodString>;
726
+ qtype: ZodOptional<z.ZodString>;
727
+ sni: ZodOptional<z.ZodString>;
728
+ path: ZodOptional<z.ZodString>;
729
+ user_agent: ZodOptional<z.ZodString>;
730
+ path_valid: ZodOptional<z.ZodBoolean>;
731
+ }, "strip", z.ZodTypeAny, {
732
+ ts: string;
733
+ kind: string;
734
+ src_ip: string;
735
+ path?: string | undefined;
736
+ jti?: string | undefined;
737
+ site_key?: string | undefined;
738
+ subzone?: string | undefined;
739
+ qname?: string | undefined;
740
+ qtype?: string | undefined;
741
+ sni?: string | undefined;
742
+ user_agent?: string | undefined;
743
+ path_valid?: boolean | undefined;
744
+ }, {
745
+ ts: string;
746
+ kind: string;
747
+ src_ip: string;
748
+ path?: string | undefined;
749
+ jti?: string | undefined;
750
+ site_key?: string | undefined;
751
+ subzone?: string | undefined;
752
+ qname?: string | undefined;
753
+ qtype?: string | undefined;
754
+ sni?: string | undefined;
755
+ user_agent?: string | undefined;
756
+ path_valid?: boolean | undefined;
757
+ }>;
758
+ export type DnsEvent = output<typeof DnsEventSchema>;
759
+ export declare const DnsEventBatchSchema: ZodObject<{
760
+ events: z.ZodArray<ZodObject<{
761
+ kind: z.ZodUnion<[z.ZodString, z.ZodString]>;
762
+ ts: z.ZodString;
763
+ src_ip: z.ZodString;
764
+ jti: ZodOptional<z.ZodString>;
765
+ site_key: ZodOptional<z.ZodString>;
766
+ subzone: ZodOptional<z.ZodString>;
767
+ qname: ZodOptional<z.ZodString>;
768
+ qtype: ZodOptional<z.ZodString>;
769
+ sni: ZodOptional<z.ZodString>;
770
+ path: ZodOptional<z.ZodString>;
771
+ user_agent: ZodOptional<z.ZodString>;
772
+ path_valid: ZodOptional<z.ZodBoolean>;
773
+ }, "strip", z.ZodTypeAny, {
774
+ ts: string;
775
+ kind: string;
776
+ src_ip: string;
777
+ path?: string | undefined;
778
+ jti?: string | undefined;
779
+ site_key?: string | undefined;
780
+ subzone?: string | undefined;
781
+ qname?: string | undefined;
782
+ qtype?: string | undefined;
783
+ sni?: string | undefined;
784
+ user_agent?: string | undefined;
785
+ path_valid?: boolean | undefined;
786
+ }, {
787
+ ts: string;
788
+ kind: string;
789
+ src_ip: string;
790
+ path?: string | undefined;
791
+ jti?: string | undefined;
792
+ site_key?: string | undefined;
793
+ subzone?: string | undefined;
794
+ qname?: string | undefined;
795
+ qtype?: string | undefined;
796
+ sni?: string | undefined;
797
+ user_agent?: string | undefined;
798
+ path_valid?: boolean | undefined;
799
+ }>, "many">;
800
+ }, "strip", z.ZodTypeAny, {
801
+ events: {
802
+ ts: string;
803
+ kind: string;
804
+ src_ip: string;
805
+ path?: string | undefined;
806
+ jti?: string | undefined;
807
+ site_key?: string | undefined;
808
+ subzone?: string | undefined;
809
+ qname?: string | undefined;
810
+ qtype?: string | undefined;
811
+ sni?: string | undefined;
812
+ user_agent?: string | undefined;
813
+ path_valid?: boolean | undefined;
814
+ }[];
815
+ }, {
816
+ events: {
817
+ ts: string;
818
+ kind: string;
819
+ src_ip: string;
820
+ path?: string | undefined;
821
+ jti?: string | undefined;
822
+ site_key?: string | undefined;
823
+ subzone?: string | undefined;
824
+ qname?: string | undefined;
825
+ qtype?: string | undefined;
826
+ sni?: string | undefined;
827
+ user_agent?: string | undefined;
828
+ path_valid?: boolean | undefined;
829
+ }[];
830
+ }>;
831
+ export type DnsEventBatch = output<typeof DnsEventBatchSchema>;
832
+ export interface DnsEventResponseBody extends ApiResponse {
833
+ stored: number;
834
+ errors: number;
835
+ }
464
836
  export declare const GetPowCaptchaChallengeRequestBody: ZodObject<{
465
- user: import("zod").ZodString;
466
- dapp: import("zod").ZodString;
467
- sessionId: ZodOptional<import("zod").ZodString>;
468
- }, "strip", import("zod").ZodTypeAny, {
837
+ user: z.ZodString;
838
+ dapp: z.ZodString;
839
+ sessionId: ZodOptional<z.ZodString>;
840
+ simdReadings: ZodOptional<z.ZodString>;
841
+ }, "strip", z.ZodTypeAny, {
469
842
  user: string;
470
843
  dapp: string;
471
844
  sessionId?: string | undefined;
845
+ simdReadings?: string | undefined;
472
846
  }, {
473
847
  user: string;
474
848
  dapp: string;
475
849
  sessionId?: string | undefined;
850
+ simdReadings?: string | undefined;
476
851
  }>;
477
852
  export type GetPowCaptchaChallengeRequestBodyType = zInfer<typeof GetPowCaptchaChallengeRequestBody>;
478
853
  export type GetPowCaptchaChallengeRequestBodyTypeOutput = output<typeof GetPowCaptchaChallengeRequestBody>;
479
854
  export type ServerPowCaptchaVerifyRequestBodyType = zInfer<typeof ServerPowCaptchaVerifyRequestBody>;
480
855
  export declare const SubmitPowCaptchaSolutionBody: ZodObject<{
481
- challenge: import("zod").ZodType<`${number}___${string}___${string}`, import("zod").ZodTypeDef, `${number}___${string}___${string}`>;
856
+ challenge: z.ZodType<`${number}___${string}___${string}`, z.ZodTypeDef, `${number}___${string}___${string}`>;
482
857
  difficulty: ZodNumber;
483
858
  signature: ZodObject<{
484
859
  user: ZodObject<{
485
- timestamp: import("zod").ZodString;
486
- }, "strip", import("zod").ZodTypeAny, {
860
+ timestamp: z.ZodString;
861
+ }, "strip", z.ZodTypeAny, {
487
862
  timestamp: string;
488
863
  }, {
489
864
  timestamp: string;
490
865
  }>;
491
866
  provider: ZodObject<{
492
- challenge: import("zod").ZodString;
493
- }, "strip", import("zod").ZodTypeAny, {
867
+ challenge: z.ZodString;
868
+ }, "strip", z.ZodTypeAny, {
494
869
  challenge: string;
495
870
  }, {
496
871
  challenge: string;
497
872
  }>;
498
- }, "strip", import("zod").ZodTypeAny, {
873
+ }, "strip", z.ZodTypeAny, {
499
874
  user: {
500
875
  timestamp: string;
501
876
  };
@@ -510,13 +885,21 @@ export declare const SubmitPowCaptchaSolutionBody: ZodObject<{
510
885
  challenge: string;
511
886
  };
512
887
  }>;
513
- user: import("zod").ZodString;
514
- dapp: import("zod").ZodString;
888
+ user: z.ZodString;
889
+ dapp: z.ZodString;
515
890
  nonce: ZodNumber;
516
891
  verifiedTimeout: ZodDefault<ZodOptional<ZodNumber>>;
517
- behavioralData: ZodOptional<import("zod").ZodString>;
518
- salt: ZodOptional<import("zod").ZodString>;
519
- }, "strip", import("zod").ZodTypeAny, {
892
+ behavioralData: ZodOptional<z.ZodString>;
893
+ salt: ZodOptional<z.ZodString>;
894
+ simdReadings: ZodOptional<z.ZodString>;
895
+ clientMetaData: ZodOptional<ZodObject<{
896
+ hp: ZodOptional<z.ZodString>;
897
+ }, "strip", z.ZodTypeAny, {
898
+ hp?: string | undefined;
899
+ }, {
900
+ hp?: string | undefined;
901
+ }>>;
902
+ }, "strip", z.ZodTypeAny, {
520
903
  user: string;
521
904
  dapp: string;
522
905
  verifiedTimeout: number;
@@ -532,7 +915,11 @@ export declare const SubmitPowCaptchaSolutionBody: ZodObject<{
532
915
  };
533
916
  };
534
917
  behavioralData?: string | undefined;
918
+ simdReadings?: string | undefined;
535
919
  salt?: string | undefined;
920
+ clientMetaData?: {
921
+ hp?: string | undefined;
922
+ } | undefined;
536
923
  }, {
537
924
  user: string;
538
925
  dapp: string;
@@ -549,51 +936,233 @@ export declare const SubmitPowCaptchaSolutionBody: ZodObject<{
549
936
  };
550
937
  verifiedTimeout?: number | undefined;
551
938
  behavioralData?: string | undefined;
939
+ simdReadings?: string | undefined;
552
940
  salt?: string | undefined;
941
+ clientMetaData?: {
942
+ hp?: string | undefined;
943
+ } | undefined;
553
944
  }>;
554
945
  export type SubmitPowCaptchaSolutionBodyType = input<typeof SubmitPowCaptchaSolutionBody>;
555
946
  export declare const GetFrictionlessCaptchaChallengeRequestBody: ZodObject<{
556
- dapp: import("zod").ZodString;
557
- token: import("zod").ZodString;
558
- user: import("zod").ZodString;
559
- headHash: import("zod").ZodString;
560
- }, "strip", import("zod").ZodTypeAny, {
947
+ dapp: z.ZodString;
948
+ token: z.ZodString;
949
+ user: z.ZodString;
950
+ headHash: z.ZodString;
951
+ mode: ZodOptional<z.ZodNativeEnum<typeof ModeEnum>>;
952
+ simdReadings: ZodOptional<z.ZodString>;
953
+ }, "strip", z.ZodTypeAny, {
561
954
  user: string;
562
955
  dapp: string;
563
956
  token: string;
564
957
  headHash: string;
958
+ simdReadings?: string | undefined;
959
+ mode?: ModeEnum | undefined;
565
960
  }, {
566
961
  user: string;
567
962
  dapp: string;
568
963
  token: string;
569
964
  headHash: string;
965
+ simdReadings?: string | undefined;
966
+ mode?: ModeEnum | undefined;
570
967
  }>;
571
968
  export type GetFrictionlessCaptchaChallengeRequestBodyOutput = output<typeof GetFrictionlessCaptchaChallengeRequestBody>;
572
969
  export type SubmitPowCaptchaSolutionBodyTypeOutput = output<typeof SubmitPowCaptchaSolutionBody>;
970
+ export declare const GetPuzzleCaptchaChallengeRequestBody: ZodObject<{
971
+ user: z.ZodString;
972
+ dapp: z.ZodString;
973
+ sessionId: ZodOptional<z.ZodString>;
974
+ simdReadings: ZodOptional<z.ZodString>;
975
+ }, "strip", z.ZodTypeAny, {
976
+ user: string;
977
+ dapp: string;
978
+ sessionId?: string | undefined;
979
+ simdReadings?: string | undefined;
980
+ }, {
981
+ user: string;
982
+ dapp: string;
983
+ sessionId?: string | undefined;
984
+ simdReadings?: string | undefined;
985
+ }>;
986
+ export type GetPuzzleCaptchaChallengeRequestBodyType = zInfer<typeof GetPuzzleCaptchaChallengeRequestBody>;
987
+ export type GetPuzzleCaptchaChallengeRequestBodyTypeOutput = output<typeof GetPuzzleCaptchaChallengeRequestBody>;
988
+ export declare const PuzzleEventSchema: ZodObject<{
989
+ x: ZodNumber;
990
+ y: ZodNumber;
991
+ t: ZodNumber;
992
+ }, "strip", z.ZodTypeAny, {
993
+ x: number;
994
+ y: number;
995
+ t: number;
996
+ }, {
997
+ x: number;
998
+ y: number;
999
+ t: number;
1000
+ }>;
1001
+ export type PuzzleEvent = zInfer<typeof PuzzleEventSchema>;
1002
+ export declare const SubmitPuzzleCaptchaSolutionBody: ZodObject<{
1003
+ challenge: z.ZodType<`${number}___${string}___${string}`, z.ZodTypeDef, `${number}___${string}___${string}`>;
1004
+ finalX: ZodNumber;
1005
+ finalY: ZodNumber;
1006
+ puzzleEvents: z.ZodArray<ZodObject<{
1007
+ x: ZodNumber;
1008
+ y: ZodNumber;
1009
+ t: ZodNumber;
1010
+ }, "strip", z.ZodTypeAny, {
1011
+ x: number;
1012
+ y: number;
1013
+ t: number;
1014
+ }, {
1015
+ x: number;
1016
+ y: number;
1017
+ t: number;
1018
+ }>, "many">;
1019
+ signature: ZodObject<{
1020
+ user: ZodObject<{
1021
+ timestamp: z.ZodString;
1022
+ }, "strip", z.ZodTypeAny, {
1023
+ timestamp: string;
1024
+ }, {
1025
+ timestamp: string;
1026
+ }>;
1027
+ provider: ZodObject<{
1028
+ challenge: z.ZodString;
1029
+ }, "strip", z.ZodTypeAny, {
1030
+ challenge: string;
1031
+ }, {
1032
+ challenge: string;
1033
+ }>;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ user: {
1036
+ timestamp: string;
1037
+ };
1038
+ provider: {
1039
+ challenge: string;
1040
+ };
1041
+ }, {
1042
+ user: {
1043
+ timestamp: string;
1044
+ };
1045
+ provider: {
1046
+ challenge: string;
1047
+ };
1048
+ }>;
1049
+ user: z.ZodString;
1050
+ dapp: z.ZodString;
1051
+ verifiedTimeout: ZodDefault<ZodOptional<ZodNumber>>;
1052
+ behavioralData: ZodOptional<z.ZodString>;
1053
+ salt: ZodOptional<z.ZodString>;
1054
+ simdReadings: ZodOptional<z.ZodString>;
1055
+ clientMetaData: ZodOptional<ZodObject<{
1056
+ hp: ZodOptional<z.ZodString>;
1057
+ }, "strip", z.ZodTypeAny, {
1058
+ hp?: string | undefined;
1059
+ }, {
1060
+ hp?: string | undefined;
1061
+ }>>;
1062
+ }, "strip", z.ZodTypeAny, {
1063
+ user: string;
1064
+ dapp: string;
1065
+ verifiedTimeout: number;
1066
+ challenge: `${number}___${string}___${string}`;
1067
+ signature: {
1068
+ user: {
1069
+ timestamp: string;
1070
+ };
1071
+ provider: {
1072
+ challenge: string;
1073
+ };
1074
+ };
1075
+ finalX: number;
1076
+ finalY: number;
1077
+ puzzleEvents: {
1078
+ x: number;
1079
+ y: number;
1080
+ t: number;
1081
+ }[];
1082
+ behavioralData?: string | undefined;
1083
+ simdReadings?: string | undefined;
1084
+ salt?: string | undefined;
1085
+ clientMetaData?: {
1086
+ hp?: string | undefined;
1087
+ } | undefined;
1088
+ }, {
1089
+ user: string;
1090
+ dapp: string;
1091
+ challenge: `${number}___${string}___${string}`;
1092
+ signature: {
1093
+ user: {
1094
+ timestamp: string;
1095
+ };
1096
+ provider: {
1097
+ challenge: string;
1098
+ };
1099
+ };
1100
+ finalX: number;
1101
+ finalY: number;
1102
+ puzzleEvents: {
1103
+ x: number;
1104
+ y: number;
1105
+ t: number;
1106
+ }[];
1107
+ verifiedTimeout?: number | undefined;
1108
+ behavioralData?: string | undefined;
1109
+ simdReadings?: string | undefined;
1110
+ salt?: string | undefined;
1111
+ clientMetaData?: {
1112
+ hp?: string | undefined;
1113
+ } | undefined;
1114
+ }>;
1115
+ export type SubmitPuzzleCaptchaSolutionBodyType = input<typeof SubmitPuzzleCaptchaSolutionBody>;
1116
+ export type SubmitPuzzleCaptchaSolutionBodyTypeOutput = output<typeof SubmitPuzzleCaptchaSolutionBody>;
1117
+ export declare const ServerPuzzleCaptchaVerifyRequestBody: ZodObject<{
1118
+ token: z.ZodString;
1119
+ dappSignature: z.ZodString;
1120
+ verifiedTimeout: ZodDefault<ZodOptional<ZodNumber>>;
1121
+ ip: ZodOptional<z.ZodString>;
1122
+ email: ZodOptional<z.ZodString>;
1123
+ }, "strip", z.ZodTypeAny, {
1124
+ dappSignature: string;
1125
+ verifiedTimeout: number;
1126
+ token: string;
1127
+ ip?: string | undefined;
1128
+ email?: string | undefined;
1129
+ }, {
1130
+ dappSignature: string;
1131
+ token: string;
1132
+ verifiedTimeout?: number | undefined;
1133
+ ip?: string | undefined;
1134
+ email?: string | undefined;
1135
+ }>;
1136
+ export type ServerPuzzleCaptchaVerifyRequestBodyType = zInfer<typeof ServerPuzzleCaptchaVerifyRequestBody>;
1137
+ export type ServerPuzzleCaptchaVerifyRequestBodyOutput = output<typeof ServerPuzzleCaptchaVerifyRequestBody>;
573
1138
  export declare const VerifyPowCaptchaSolutionBody: ZodObject<{
574
- siteKey: import("zod").ZodString;
575
- }, "strip", import("zod").ZodTypeAny, {
1139
+ siteKey: z.ZodString;
1140
+ }, "strip", z.ZodTypeAny, {
576
1141
  siteKey: string;
577
1142
  }, {
578
1143
  siteKey: string;
579
1144
  }>;
580
1145
  export declare const RegisterSitekeyBody: ZodObject<{
581
- siteKey: import("zod").ZodString;
582
- tier: import("zod").ZodNativeEnum<typeof Tier>;
1146
+ siteKey: z.ZodString;
1147
+ tier: z.ZodNativeEnum<typeof Tier>;
583
1148
  settings: ZodOptional<ZodObject<{
584
- captchaType: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof CaptchaType>>>;
585
- domains: import("zod").ZodArray<import("zod").ZodString, "many">;
1149
+ captchaType: ZodDefault<ZodOptional<z.ZodNativeEnum<typeof CaptchaType>>>;
1150
+ domains: z.ZodArray<z.ZodString, "many">;
586
1151
  frictionlessThreshold: ZodDefault<ZodOptional<ZodNumber>>;
587
1152
  powDifficulty: ZodDefault<ZodOptional<ZodNumber>>;
588
1153
  imageThreshold: ZodDefault<ZodOptional<ZodNumber>>;
1154
+ imageMaxRounds: ZodDefault<ZodOptional<ZodNumber>>;
1155
+ autoBanScoreThreshold: ZodOptional<ZodNumber>;
1156
+ puzzleTolerance: ZodDefault<ZodOptional<ZodNumber>>;
589
1157
  ipValidationRules: ZodOptional<ZodObject<{
1158
+ enabled: ZodDefault<ZodOptional<z.ZodBoolean>>;
590
1159
  actions: ZodObject<{
591
- countryChangeAction: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
592
- cityChangeAction: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
593
- ispChangeAction: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
594
- distanceExceedAction: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
595
- abuseScoreExceedAction: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
596
- }, "strip", import("zod").ZodTypeAny, {
1160
+ countryChangeAction: ZodDefault<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1161
+ cityChangeAction: ZodDefault<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1162
+ ispChangeAction: ZodDefault<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1163
+ distanceExceedAction: ZodDefault<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1164
+ abuseScoreExceedAction: ZodDefault<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1165
+ }, "strip", z.ZodTypeAny, {
597
1166
  countryChangeAction: import("../client/settings.js").IPValidationAction;
598
1167
  cityChangeAction: import("../client/settings.js").IPValidationAction;
599
1168
  ispChangeAction: import("../client/settings.js").IPValidationAction;
@@ -608,15 +1177,15 @@ export declare const RegisterSitekeyBody: ZodObject<{
608
1177
  }>;
609
1178
  distanceThresholdKm: ZodDefault<ZodOptional<ZodNumber>>;
610
1179
  abuseScoreThreshold: ZodDefault<ZodOptional<ZodNumber>>;
611
- requireAllConditions: ZodDefault<ZodOptional<import("zod").ZodBoolean>>;
612
- countryOverrides: ZodOptional<import("zod").ZodRecord<import("zod").ZodString, ZodObject<{
1180
+ requireAllConditions: ZodDefault<ZodOptional<z.ZodBoolean>>;
1181
+ countryOverrides: ZodOptional<z.ZodRecord<z.ZodString, ZodObject<{
613
1182
  actions: ZodObject<{
614
- countryChangeAction: ZodOptional<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
615
- cityChangeAction: ZodOptional<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
616
- ispChangeAction: ZodOptional<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
617
- distanceExceedAction: ZodOptional<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
618
- abuseScoreExceedAction: ZodOptional<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
619
- }, "strip", import("zod").ZodTypeAny, {
1183
+ countryChangeAction: ZodOptional<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1184
+ cityChangeAction: ZodOptional<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1185
+ ispChangeAction: ZodOptional<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1186
+ distanceExceedAction: ZodOptional<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1187
+ abuseScoreExceedAction: ZodOptional<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1188
+ }, "strip", z.ZodTypeAny, {
620
1189
  countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
621
1190
  cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
622
1191
  ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
@@ -631,8 +1200,8 @@ export declare const RegisterSitekeyBody: ZodObject<{
631
1200
  }>;
632
1201
  distanceThresholdKm: ZodOptional<ZodNumber>;
633
1202
  abuseScoreThreshold: ZodOptional<ZodNumber>;
634
- requireAllConditions: ZodOptional<import("zod").ZodBoolean>;
635
- }, "strip", import("zod").ZodTypeAny, {
1203
+ requireAllConditions: ZodOptional<z.ZodBoolean>;
1204
+ }, "strip", z.ZodTypeAny, {
636
1205
  actions: {
637
1206
  countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
638
1207
  cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
@@ -655,8 +1224,8 @@ export declare const RegisterSitekeyBody: ZodObject<{
655
1224
  abuseScoreThreshold?: number | undefined;
656
1225
  requireAllConditions?: boolean | undefined;
657
1226
  }>>>;
658
- forceConsistentIp: ZodDefault<ZodOptional<import("zod").ZodBoolean>>;
659
- }, "strip", import("zod").ZodTypeAny, {
1227
+ forceConsistentIp: ZodDefault<ZodOptional<z.ZodBoolean>>;
1228
+ }, "strip", z.ZodTypeAny, {
660
1229
  actions: {
661
1230
  countryChangeAction: import("../client/settings.js").IPValidationAction;
662
1231
  cityChangeAction: import("../client/settings.js").IPValidationAction;
@@ -667,6 +1236,7 @@ export declare const RegisterSitekeyBody: ZodObject<{
667
1236
  distanceThresholdKm: number;
668
1237
  abuseScoreThreshold: number;
669
1238
  requireAllConditions: boolean;
1239
+ enabled: boolean;
670
1240
  forceConsistentIp: boolean;
671
1241
  countryOverrides?: Record<string, {
672
1242
  actions: {
@@ -691,6 +1261,7 @@ export declare const RegisterSitekeyBody: ZodObject<{
691
1261
  distanceThresholdKm?: number | undefined;
692
1262
  abuseScoreThreshold?: number | undefined;
693
1263
  requireAllConditions?: boolean | undefined;
1264
+ enabled?: boolean | undefined;
694
1265
  countryOverrides?: Record<string, {
695
1266
  actions: {
696
1267
  countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
@@ -705,20 +1276,20 @@ export declare const RegisterSitekeyBody: ZodObject<{
705
1276
  }> | undefined;
706
1277
  forceConsistentIp?: boolean | undefined;
707
1278
  }>>;
708
- disallowWebView: ZodOptional<ZodDefault<ZodOptional<import("zod").ZodBoolean>>>;
1279
+ disallowWebView: ZodOptional<ZodDefault<ZodOptional<z.ZodBoolean>>>;
709
1280
  contextAware: ZodOptional<ZodObject<{
710
- enabled: ZodDefault<ZodOptional<import("zod").ZodBoolean>>;
711
- contexts: import("zod").ZodRecord<import("zod").ZodEnum<[import("../client/settings.js").ContextType.Default, import("../client/settings.js").ContextType.Webview]>, ZodObject<{
712
- type: import("zod").ZodNativeEnum<typeof import("../client/settings.js").ContextType>;
1281
+ enabled: ZodDefault<ZodOptional<z.ZodBoolean>>;
1282
+ contexts: z.ZodRecord<z.ZodEnum<[import("../client/settings.js").ContextType.Default, import("../client/settings.js").ContextType.Webview]>, ZodObject<{
1283
+ type: z.ZodNativeEnum<typeof import("../client/settings.js").ContextType>;
713
1284
  threshold: ZodDefault<ZodOptional<ZodNumber>>;
714
- }, "strip", import("zod").ZodTypeAny, {
1285
+ }, "strip", z.ZodTypeAny, {
715
1286
  type: import("../client/settings.js").ContextType;
716
1287
  threshold: number;
717
1288
  }, {
718
1289
  type: import("../client/settings.js").ContextType;
719
1290
  threshold?: number | undefined;
720
1291
  }>>;
721
- }, "strip", import("zod").ZodTypeAny, {
1292
+ }, "strip", z.ZodTypeAny, {
722
1293
  enabled: boolean;
723
1294
  contexts: Partial<Record<import("../client/settings.js").ContextType, {
724
1295
  type: import("../client/settings.js").ContextType;
@@ -731,16 +1302,473 @@ export declare const RegisterSitekeyBody: ZodObject<{
731
1302
  }>>;
732
1303
  enabled?: boolean | undefined;
733
1304
  }>>;
734
- }, "strip", import("zod").ZodTypeAny, {
735
- captchaType: CaptchaType;
736
- domains: string[];
737
- frictionlessThreshold: number;
738
- powDifficulty: number;
739
- imageThreshold: number;
740
- ipValidationRules?: {
741
- actions: {
742
- countryChangeAction: import("../client/settings.js").IPValidationAction;
743
- cityChangeAction: import("../client/settings.js").IPValidationAction;
1305
+ spamEmailDomainCheckEnabled: ZodOptional<z.ZodBoolean>;
1306
+ spamFilter: ZodOptional<ZodObject<{
1307
+ enabled: ZodDefault<ZodOptional<z.ZodBoolean>>;
1308
+ emailRules: ZodOptional<ZodObject<{
1309
+ enabled: ZodDefault<ZodOptional<z.ZodBoolean>>;
1310
+ maxLocalPartDots: ZodOptional<ZodNumber>;
1311
+ normaliseGmail: ZodDefault<ZodOptional<z.ZodBoolean>>;
1312
+ useDefaultPatterns: ZodDefault<ZodOptional<z.ZodBoolean>>;
1313
+ customRegexBlocklist: ZodDefault<ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>>;
1314
+ }, "strip", z.ZodTypeAny, {
1315
+ enabled: boolean;
1316
+ normaliseGmail: boolean;
1317
+ useDefaultPatterns: boolean;
1318
+ customRegexBlocklist: string[];
1319
+ maxLocalPartDots?: number | undefined;
1320
+ }, {
1321
+ enabled?: boolean | undefined;
1322
+ maxLocalPartDots?: number | undefined;
1323
+ normaliseGmail?: boolean | undefined;
1324
+ useDefaultPatterns?: boolean | undefined;
1325
+ customRegexBlocklist?: string[] | undefined;
1326
+ }>>;
1327
+ }, "strip", z.ZodTypeAny, {
1328
+ enabled: boolean;
1329
+ emailRules?: {
1330
+ enabled: boolean;
1331
+ normaliseGmail: boolean;
1332
+ useDefaultPatterns: boolean;
1333
+ customRegexBlocklist: string[];
1334
+ maxLocalPartDots?: number | undefined;
1335
+ } | undefined;
1336
+ }, {
1337
+ enabled?: boolean | undefined;
1338
+ emailRules?: {
1339
+ enabled?: boolean | undefined;
1340
+ maxLocalPartDots?: number | undefined;
1341
+ normaliseGmail?: boolean | undefined;
1342
+ useDefaultPatterns?: boolean | undefined;
1343
+ customRegexBlocklist?: string[] | undefined;
1344
+ } | undefined;
1345
+ }>>;
1346
+ trafficFilter: ZodOptional<ZodObject<{
1347
+ blockVpn: ZodDefault<ZodOptional<z.ZodBoolean>>;
1348
+ blockProxy: ZodDefault<ZodOptional<z.ZodBoolean>>;
1349
+ blockTor: ZodDefault<ZodOptional<z.ZodBoolean>>;
1350
+ blockAbuser: ZodDefault<ZodOptional<z.ZodBoolean>>;
1351
+ abuserScoreThreshold: ZodDefault<ZodOptional<ZodNumber>>;
1352
+ blockDatacenter: ZodDefault<ZodOptional<z.ZodBoolean>>;
1353
+ blockMobile: ZodDefault<ZodOptional<z.ZodBoolean>>;
1354
+ blockSatellite: ZodDefault<ZodOptional<z.ZodBoolean>>;
1355
+ blockCrawler: ZodDefault<ZodOptional<z.ZodBoolean>>;
1356
+ }, "strip", z.ZodTypeAny, {
1357
+ blockVpn: boolean;
1358
+ blockProxy: boolean;
1359
+ blockTor: boolean;
1360
+ blockAbuser: boolean;
1361
+ abuserScoreThreshold: number;
1362
+ blockDatacenter: boolean;
1363
+ blockMobile: boolean;
1364
+ blockSatellite: boolean;
1365
+ blockCrawler: boolean;
1366
+ }, {
1367
+ blockVpn?: boolean | undefined;
1368
+ blockProxy?: boolean | undefined;
1369
+ blockTor?: boolean | undefined;
1370
+ blockAbuser?: boolean | undefined;
1371
+ abuserScoreThreshold?: number | undefined;
1372
+ blockDatacenter?: boolean | undefined;
1373
+ blockMobile?: boolean | undefined;
1374
+ blockSatellite?: boolean | undefined;
1375
+ blockCrawler?: boolean | undefined;
1376
+ }>>;
1377
+ storeMetadata: ZodOptional<z.ZodBoolean>;
1378
+ honeypot: ZodOptional<ZodObject<{
1379
+ enabled: ZodDefault<ZodOptional<z.ZodBoolean>>;
1380
+ question: ZodOptional<z.ZodString>;
1381
+ encodingType: ZodDefault<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").EncodingType>>>;
1382
+ }, "strip", z.ZodTypeAny, {
1383
+ enabled: boolean;
1384
+ encodingType: import("../client/settings.js").EncodingType;
1385
+ question?: string | undefined;
1386
+ }, {
1387
+ enabled?: boolean | undefined;
1388
+ question?: string | undefined;
1389
+ encodingType?: import("../client/settings.js").EncodingType | undefined;
1390
+ }>>;
1391
+ }, "strip", z.ZodTypeAny, {
1392
+ captchaType: CaptchaType;
1393
+ domains: string[];
1394
+ frictionlessThreshold: number;
1395
+ powDifficulty: number;
1396
+ imageThreshold: number;
1397
+ imageMaxRounds: number;
1398
+ puzzleTolerance: number;
1399
+ autoBanScoreThreshold?: number | undefined;
1400
+ ipValidationRules?: {
1401
+ actions: {
1402
+ countryChangeAction: import("../client/settings.js").IPValidationAction;
1403
+ cityChangeAction: import("../client/settings.js").IPValidationAction;
1404
+ ispChangeAction: import("../client/settings.js").IPValidationAction;
1405
+ distanceExceedAction: import("../client/settings.js").IPValidationAction;
1406
+ abuseScoreExceedAction: import("../client/settings.js").IPValidationAction;
1407
+ };
1408
+ distanceThresholdKm: number;
1409
+ abuseScoreThreshold: number;
1410
+ requireAllConditions: boolean;
1411
+ enabled: boolean;
1412
+ forceConsistentIp: boolean;
1413
+ countryOverrides?: Record<string, {
1414
+ actions: {
1415
+ countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1416
+ cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1417
+ ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1418
+ distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1419
+ abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1420
+ };
1421
+ distanceThresholdKm?: number | undefined;
1422
+ abuseScoreThreshold?: number | undefined;
1423
+ requireAllConditions?: boolean | undefined;
1424
+ }> | undefined;
1425
+ } | undefined;
1426
+ disallowWebView?: boolean | undefined;
1427
+ contextAware?: {
1428
+ enabled: boolean;
1429
+ contexts: Partial<Record<import("../client/settings.js").ContextType, {
1430
+ type: import("../client/settings.js").ContextType;
1431
+ threshold: number;
1432
+ }>>;
1433
+ } | undefined;
1434
+ spamEmailDomainCheckEnabled?: boolean | undefined;
1435
+ spamFilter?: {
1436
+ enabled: boolean;
1437
+ emailRules?: {
1438
+ enabled: boolean;
1439
+ normaliseGmail: boolean;
1440
+ useDefaultPatterns: boolean;
1441
+ customRegexBlocklist: string[];
1442
+ maxLocalPartDots?: number | undefined;
1443
+ } | undefined;
1444
+ } | undefined;
1445
+ trafficFilter?: {
1446
+ blockVpn: boolean;
1447
+ blockProxy: boolean;
1448
+ blockTor: boolean;
1449
+ blockAbuser: boolean;
1450
+ abuserScoreThreshold: number;
1451
+ blockDatacenter: boolean;
1452
+ blockMobile: boolean;
1453
+ blockSatellite: boolean;
1454
+ blockCrawler: boolean;
1455
+ } | undefined;
1456
+ storeMetadata?: boolean | undefined;
1457
+ honeypot?: {
1458
+ enabled: boolean;
1459
+ encodingType: import("../client/settings.js").EncodingType;
1460
+ question?: string | undefined;
1461
+ } | undefined;
1462
+ }, {
1463
+ domains: string[];
1464
+ captchaType?: CaptchaType | undefined;
1465
+ frictionlessThreshold?: number | undefined;
1466
+ powDifficulty?: number | undefined;
1467
+ imageThreshold?: number | undefined;
1468
+ imageMaxRounds?: number | undefined;
1469
+ autoBanScoreThreshold?: number | undefined;
1470
+ puzzleTolerance?: number | undefined;
1471
+ ipValidationRules?: {
1472
+ actions: {
1473
+ countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1474
+ cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1475
+ ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1476
+ distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1477
+ abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1478
+ };
1479
+ distanceThresholdKm?: number | undefined;
1480
+ abuseScoreThreshold?: number | undefined;
1481
+ requireAllConditions?: boolean | undefined;
1482
+ enabled?: boolean | undefined;
1483
+ countryOverrides?: Record<string, {
1484
+ actions: {
1485
+ countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1486
+ cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1487
+ ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1488
+ distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1489
+ abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1490
+ };
1491
+ distanceThresholdKm?: number | undefined;
1492
+ abuseScoreThreshold?: number | undefined;
1493
+ requireAllConditions?: boolean | undefined;
1494
+ }> | undefined;
1495
+ forceConsistentIp?: boolean | undefined;
1496
+ } | undefined;
1497
+ disallowWebView?: boolean | undefined;
1498
+ contextAware?: {
1499
+ contexts: Partial<Record<import("../client/settings.js").ContextType, {
1500
+ type: import("../client/settings.js").ContextType;
1501
+ threshold?: number | undefined;
1502
+ }>>;
1503
+ enabled?: boolean | undefined;
1504
+ } | undefined;
1505
+ spamEmailDomainCheckEnabled?: boolean | undefined;
1506
+ spamFilter?: {
1507
+ enabled?: boolean | undefined;
1508
+ emailRules?: {
1509
+ enabled?: boolean | undefined;
1510
+ maxLocalPartDots?: number | undefined;
1511
+ normaliseGmail?: boolean | undefined;
1512
+ useDefaultPatterns?: boolean | undefined;
1513
+ customRegexBlocklist?: string[] | undefined;
1514
+ } | undefined;
1515
+ } | undefined;
1516
+ trafficFilter?: {
1517
+ blockVpn?: boolean | undefined;
1518
+ blockProxy?: boolean | undefined;
1519
+ blockTor?: boolean | undefined;
1520
+ blockAbuser?: boolean | undefined;
1521
+ abuserScoreThreshold?: number | undefined;
1522
+ blockDatacenter?: boolean | undefined;
1523
+ blockMobile?: boolean | undefined;
1524
+ blockSatellite?: boolean | undefined;
1525
+ blockCrawler?: boolean | undefined;
1526
+ } | undefined;
1527
+ storeMetadata?: boolean | undefined;
1528
+ honeypot?: {
1529
+ enabled?: boolean | undefined;
1530
+ question?: string | undefined;
1531
+ encodingType?: import("../client/settings.js").EncodingType | undefined;
1532
+ } | undefined;
1533
+ }>>;
1534
+ }, "strip", z.ZodTypeAny, {
1535
+ siteKey: string;
1536
+ tier: Tier;
1537
+ settings?: {
1538
+ captchaType: CaptchaType;
1539
+ domains: string[];
1540
+ frictionlessThreshold: number;
1541
+ powDifficulty: number;
1542
+ imageThreshold: number;
1543
+ imageMaxRounds: number;
1544
+ puzzleTolerance: number;
1545
+ autoBanScoreThreshold?: number | undefined;
1546
+ ipValidationRules?: {
1547
+ actions: {
1548
+ countryChangeAction: import("../client/settings.js").IPValidationAction;
1549
+ cityChangeAction: import("../client/settings.js").IPValidationAction;
1550
+ ispChangeAction: import("../client/settings.js").IPValidationAction;
1551
+ distanceExceedAction: import("../client/settings.js").IPValidationAction;
1552
+ abuseScoreExceedAction: import("../client/settings.js").IPValidationAction;
1553
+ };
1554
+ distanceThresholdKm: number;
1555
+ abuseScoreThreshold: number;
1556
+ requireAllConditions: boolean;
1557
+ enabled: boolean;
1558
+ forceConsistentIp: boolean;
1559
+ countryOverrides?: Record<string, {
1560
+ actions: {
1561
+ countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1562
+ cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1563
+ ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1564
+ distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1565
+ abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1566
+ };
1567
+ distanceThresholdKm?: number | undefined;
1568
+ abuseScoreThreshold?: number | undefined;
1569
+ requireAllConditions?: boolean | undefined;
1570
+ }> | undefined;
1571
+ } | undefined;
1572
+ disallowWebView?: boolean | undefined;
1573
+ contextAware?: {
1574
+ enabled: boolean;
1575
+ contexts: Partial<Record<import("../client/settings.js").ContextType, {
1576
+ type: import("../client/settings.js").ContextType;
1577
+ threshold: number;
1578
+ }>>;
1579
+ } | undefined;
1580
+ spamEmailDomainCheckEnabled?: boolean | undefined;
1581
+ spamFilter?: {
1582
+ enabled: boolean;
1583
+ emailRules?: {
1584
+ enabled: boolean;
1585
+ normaliseGmail: boolean;
1586
+ useDefaultPatterns: boolean;
1587
+ customRegexBlocklist: string[];
1588
+ maxLocalPartDots?: number | undefined;
1589
+ } | undefined;
1590
+ } | undefined;
1591
+ trafficFilter?: {
1592
+ blockVpn: boolean;
1593
+ blockProxy: boolean;
1594
+ blockTor: boolean;
1595
+ blockAbuser: boolean;
1596
+ abuserScoreThreshold: number;
1597
+ blockDatacenter: boolean;
1598
+ blockMobile: boolean;
1599
+ blockSatellite: boolean;
1600
+ blockCrawler: boolean;
1601
+ } | undefined;
1602
+ storeMetadata?: boolean | undefined;
1603
+ honeypot?: {
1604
+ enabled: boolean;
1605
+ encodingType: import("../client/settings.js").EncodingType;
1606
+ question?: string | undefined;
1607
+ } | undefined;
1608
+ } | undefined;
1609
+ }, {
1610
+ siteKey: string;
1611
+ tier: Tier;
1612
+ settings?: {
1613
+ domains: string[];
1614
+ captchaType?: CaptchaType | undefined;
1615
+ frictionlessThreshold?: number | undefined;
1616
+ powDifficulty?: number | undefined;
1617
+ imageThreshold?: number | undefined;
1618
+ imageMaxRounds?: number | undefined;
1619
+ autoBanScoreThreshold?: number | undefined;
1620
+ puzzleTolerance?: number | undefined;
1621
+ ipValidationRules?: {
1622
+ actions: {
1623
+ countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1624
+ cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1625
+ ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1626
+ distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1627
+ abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1628
+ };
1629
+ distanceThresholdKm?: number | undefined;
1630
+ abuseScoreThreshold?: number | undefined;
1631
+ requireAllConditions?: boolean | undefined;
1632
+ enabled?: boolean | undefined;
1633
+ countryOverrides?: Record<string, {
1634
+ actions: {
1635
+ countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1636
+ cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1637
+ ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1638
+ distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1639
+ abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1640
+ };
1641
+ distanceThresholdKm?: number | undefined;
1642
+ abuseScoreThreshold?: number | undefined;
1643
+ requireAllConditions?: boolean | undefined;
1644
+ }> | undefined;
1645
+ forceConsistentIp?: boolean | undefined;
1646
+ } | undefined;
1647
+ disallowWebView?: boolean | undefined;
1648
+ contextAware?: {
1649
+ contexts: Partial<Record<import("../client/settings.js").ContextType, {
1650
+ type: import("../client/settings.js").ContextType;
1651
+ threshold?: number | undefined;
1652
+ }>>;
1653
+ enabled?: boolean | undefined;
1654
+ } | undefined;
1655
+ spamEmailDomainCheckEnabled?: boolean | undefined;
1656
+ spamFilter?: {
1657
+ enabled?: boolean | undefined;
1658
+ emailRules?: {
1659
+ enabled?: boolean | undefined;
1660
+ maxLocalPartDots?: number | undefined;
1661
+ normaliseGmail?: boolean | undefined;
1662
+ useDefaultPatterns?: boolean | undefined;
1663
+ customRegexBlocklist?: string[] | undefined;
1664
+ } | undefined;
1665
+ } | undefined;
1666
+ trafficFilter?: {
1667
+ blockVpn?: boolean | undefined;
1668
+ blockProxy?: boolean | undefined;
1669
+ blockTor?: boolean | undefined;
1670
+ blockAbuser?: boolean | undefined;
1671
+ abuserScoreThreshold?: number | undefined;
1672
+ blockDatacenter?: boolean | undefined;
1673
+ blockMobile?: boolean | undefined;
1674
+ blockSatellite?: boolean | undefined;
1675
+ blockCrawler?: boolean | undefined;
1676
+ } | undefined;
1677
+ storeMetadata?: boolean | undefined;
1678
+ honeypot?: {
1679
+ enabled?: boolean | undefined;
1680
+ question?: string | undefined;
1681
+ encodingType?: import("../client/settings.js").EncodingType | undefined;
1682
+ } | undefined;
1683
+ } | undefined;
1684
+ }>;
1685
+ export declare const RegisterSitekeysBody: z.ZodArray<ZodObject<{
1686
+ siteKey: z.ZodString;
1687
+ tier: z.ZodNativeEnum<typeof Tier>;
1688
+ settings: ZodOptional<ZodObject<{
1689
+ captchaType: ZodDefault<ZodOptional<z.ZodNativeEnum<typeof CaptchaType>>>;
1690
+ domains: z.ZodArray<z.ZodString, "many">;
1691
+ frictionlessThreshold: ZodDefault<ZodOptional<ZodNumber>>;
1692
+ powDifficulty: ZodDefault<ZodOptional<ZodNumber>>;
1693
+ imageThreshold: ZodDefault<ZodOptional<ZodNumber>>;
1694
+ imageMaxRounds: ZodDefault<ZodOptional<ZodNumber>>;
1695
+ autoBanScoreThreshold: ZodOptional<ZodNumber>;
1696
+ puzzleTolerance: ZodDefault<ZodOptional<ZodNumber>>;
1697
+ ipValidationRules: ZodOptional<ZodObject<{
1698
+ enabled: ZodDefault<ZodOptional<z.ZodBoolean>>;
1699
+ actions: ZodObject<{
1700
+ countryChangeAction: ZodDefault<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1701
+ cityChangeAction: ZodDefault<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1702
+ ispChangeAction: ZodDefault<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1703
+ distanceExceedAction: ZodDefault<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1704
+ abuseScoreExceedAction: ZodDefault<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1705
+ }, "strip", z.ZodTypeAny, {
1706
+ countryChangeAction: import("../client/settings.js").IPValidationAction;
1707
+ cityChangeAction: import("../client/settings.js").IPValidationAction;
1708
+ ispChangeAction: import("../client/settings.js").IPValidationAction;
1709
+ distanceExceedAction: import("../client/settings.js").IPValidationAction;
1710
+ abuseScoreExceedAction: import("../client/settings.js").IPValidationAction;
1711
+ }, {
1712
+ countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1713
+ cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1714
+ ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1715
+ distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1716
+ abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1717
+ }>;
1718
+ distanceThresholdKm: ZodDefault<ZodOptional<ZodNumber>>;
1719
+ abuseScoreThreshold: ZodDefault<ZodOptional<ZodNumber>>;
1720
+ requireAllConditions: ZodDefault<ZodOptional<z.ZodBoolean>>;
1721
+ countryOverrides: ZodOptional<z.ZodRecord<z.ZodString, ZodObject<{
1722
+ actions: ZodObject<{
1723
+ countryChangeAction: ZodOptional<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1724
+ cityChangeAction: ZodOptional<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1725
+ ispChangeAction: ZodOptional<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1726
+ distanceExceedAction: ZodOptional<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1727
+ abuseScoreExceedAction: ZodOptional<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
1728
+ }, "strip", z.ZodTypeAny, {
1729
+ countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1730
+ cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1731
+ ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1732
+ distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1733
+ abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1734
+ }, {
1735
+ countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1736
+ cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1737
+ ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1738
+ distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1739
+ abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1740
+ }>;
1741
+ distanceThresholdKm: ZodOptional<ZodNumber>;
1742
+ abuseScoreThreshold: ZodOptional<ZodNumber>;
1743
+ requireAllConditions: ZodOptional<z.ZodBoolean>;
1744
+ }, "strip", z.ZodTypeAny, {
1745
+ actions: {
1746
+ countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1747
+ cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1748
+ ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1749
+ distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1750
+ abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1751
+ };
1752
+ distanceThresholdKm?: number | undefined;
1753
+ abuseScoreThreshold?: number | undefined;
1754
+ requireAllConditions?: boolean | undefined;
1755
+ }, {
1756
+ actions: {
1757
+ countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1758
+ cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1759
+ ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1760
+ distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1761
+ abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1762
+ };
1763
+ distanceThresholdKm?: number | undefined;
1764
+ abuseScoreThreshold?: number | undefined;
1765
+ requireAllConditions?: boolean | undefined;
1766
+ }>>>;
1767
+ forceConsistentIp: ZodDefault<ZodOptional<z.ZodBoolean>>;
1768
+ }, "strip", z.ZodTypeAny, {
1769
+ actions: {
1770
+ countryChangeAction: import("../client/settings.js").IPValidationAction;
1771
+ cityChangeAction: import("../client/settings.js").IPValidationAction;
744
1772
  ispChangeAction: import("../client/settings.js").IPValidationAction;
745
1773
  distanceExceedAction: import("../client/settings.js").IPValidationAction;
746
1774
  abuseScoreExceedAction: import("../client/settings.js").IPValidationAction;
@@ -748,6 +1776,179 @@ export declare const RegisterSitekeyBody: ZodObject<{
748
1776
  distanceThresholdKm: number;
749
1777
  abuseScoreThreshold: number;
750
1778
  requireAllConditions: boolean;
1779
+ enabled: boolean;
1780
+ forceConsistentIp: boolean;
1781
+ countryOverrides?: Record<string, {
1782
+ actions: {
1783
+ countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1784
+ cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1785
+ ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1786
+ distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1787
+ abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1788
+ };
1789
+ distanceThresholdKm?: number | undefined;
1790
+ abuseScoreThreshold?: number | undefined;
1791
+ requireAllConditions?: boolean | undefined;
1792
+ }> | undefined;
1793
+ }, {
1794
+ actions: {
1795
+ countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1796
+ cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1797
+ ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1798
+ distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1799
+ abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1800
+ };
1801
+ distanceThresholdKm?: number | undefined;
1802
+ abuseScoreThreshold?: number | undefined;
1803
+ requireAllConditions?: boolean | undefined;
1804
+ enabled?: boolean | undefined;
1805
+ countryOverrides?: Record<string, {
1806
+ actions: {
1807
+ countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1808
+ cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1809
+ ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1810
+ distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1811
+ abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1812
+ };
1813
+ distanceThresholdKm?: number | undefined;
1814
+ abuseScoreThreshold?: number | undefined;
1815
+ requireAllConditions?: boolean | undefined;
1816
+ }> | undefined;
1817
+ forceConsistentIp?: boolean | undefined;
1818
+ }>>;
1819
+ disallowWebView: ZodOptional<ZodDefault<ZodOptional<z.ZodBoolean>>>;
1820
+ contextAware: ZodOptional<ZodObject<{
1821
+ enabled: ZodDefault<ZodOptional<z.ZodBoolean>>;
1822
+ contexts: z.ZodRecord<z.ZodEnum<[import("../client/settings.js").ContextType.Default, import("../client/settings.js").ContextType.Webview]>, ZodObject<{
1823
+ type: z.ZodNativeEnum<typeof import("../client/settings.js").ContextType>;
1824
+ threshold: ZodDefault<ZodOptional<ZodNumber>>;
1825
+ }, "strip", z.ZodTypeAny, {
1826
+ type: import("../client/settings.js").ContextType;
1827
+ threshold: number;
1828
+ }, {
1829
+ type: import("../client/settings.js").ContextType;
1830
+ threshold?: number | undefined;
1831
+ }>>;
1832
+ }, "strip", z.ZodTypeAny, {
1833
+ enabled: boolean;
1834
+ contexts: Partial<Record<import("../client/settings.js").ContextType, {
1835
+ type: import("../client/settings.js").ContextType;
1836
+ threshold: number;
1837
+ }>>;
1838
+ }, {
1839
+ contexts: Partial<Record<import("../client/settings.js").ContextType, {
1840
+ type: import("../client/settings.js").ContextType;
1841
+ threshold?: number | undefined;
1842
+ }>>;
1843
+ enabled?: boolean | undefined;
1844
+ }>>;
1845
+ spamEmailDomainCheckEnabled: ZodOptional<z.ZodBoolean>;
1846
+ spamFilter: ZodOptional<ZodObject<{
1847
+ enabled: ZodDefault<ZodOptional<z.ZodBoolean>>;
1848
+ emailRules: ZodOptional<ZodObject<{
1849
+ enabled: ZodDefault<ZodOptional<z.ZodBoolean>>;
1850
+ maxLocalPartDots: ZodOptional<ZodNumber>;
1851
+ normaliseGmail: ZodDefault<ZodOptional<z.ZodBoolean>>;
1852
+ useDefaultPatterns: ZodDefault<ZodOptional<z.ZodBoolean>>;
1853
+ customRegexBlocklist: ZodDefault<ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>>;
1854
+ }, "strip", z.ZodTypeAny, {
1855
+ enabled: boolean;
1856
+ normaliseGmail: boolean;
1857
+ useDefaultPatterns: boolean;
1858
+ customRegexBlocklist: string[];
1859
+ maxLocalPartDots?: number | undefined;
1860
+ }, {
1861
+ enabled?: boolean | undefined;
1862
+ maxLocalPartDots?: number | undefined;
1863
+ normaliseGmail?: boolean | undefined;
1864
+ useDefaultPatterns?: boolean | undefined;
1865
+ customRegexBlocklist?: string[] | undefined;
1866
+ }>>;
1867
+ }, "strip", z.ZodTypeAny, {
1868
+ enabled: boolean;
1869
+ emailRules?: {
1870
+ enabled: boolean;
1871
+ normaliseGmail: boolean;
1872
+ useDefaultPatterns: boolean;
1873
+ customRegexBlocklist: string[];
1874
+ maxLocalPartDots?: number | undefined;
1875
+ } | undefined;
1876
+ }, {
1877
+ enabled?: boolean | undefined;
1878
+ emailRules?: {
1879
+ enabled?: boolean | undefined;
1880
+ maxLocalPartDots?: number | undefined;
1881
+ normaliseGmail?: boolean | undefined;
1882
+ useDefaultPatterns?: boolean | undefined;
1883
+ customRegexBlocklist?: string[] | undefined;
1884
+ } | undefined;
1885
+ }>>;
1886
+ trafficFilter: ZodOptional<ZodObject<{
1887
+ blockVpn: ZodDefault<ZodOptional<z.ZodBoolean>>;
1888
+ blockProxy: ZodDefault<ZodOptional<z.ZodBoolean>>;
1889
+ blockTor: ZodDefault<ZodOptional<z.ZodBoolean>>;
1890
+ blockAbuser: ZodDefault<ZodOptional<z.ZodBoolean>>;
1891
+ abuserScoreThreshold: ZodDefault<ZodOptional<ZodNumber>>;
1892
+ blockDatacenter: ZodDefault<ZodOptional<z.ZodBoolean>>;
1893
+ blockMobile: ZodDefault<ZodOptional<z.ZodBoolean>>;
1894
+ blockSatellite: ZodDefault<ZodOptional<z.ZodBoolean>>;
1895
+ blockCrawler: ZodDefault<ZodOptional<z.ZodBoolean>>;
1896
+ }, "strip", z.ZodTypeAny, {
1897
+ blockVpn: boolean;
1898
+ blockProxy: boolean;
1899
+ blockTor: boolean;
1900
+ blockAbuser: boolean;
1901
+ abuserScoreThreshold: number;
1902
+ blockDatacenter: boolean;
1903
+ blockMobile: boolean;
1904
+ blockSatellite: boolean;
1905
+ blockCrawler: boolean;
1906
+ }, {
1907
+ blockVpn?: boolean | undefined;
1908
+ blockProxy?: boolean | undefined;
1909
+ blockTor?: boolean | undefined;
1910
+ blockAbuser?: boolean | undefined;
1911
+ abuserScoreThreshold?: number | undefined;
1912
+ blockDatacenter?: boolean | undefined;
1913
+ blockMobile?: boolean | undefined;
1914
+ blockSatellite?: boolean | undefined;
1915
+ blockCrawler?: boolean | undefined;
1916
+ }>>;
1917
+ storeMetadata: ZodOptional<z.ZodBoolean>;
1918
+ honeypot: ZodOptional<ZodObject<{
1919
+ enabled: ZodDefault<ZodOptional<z.ZodBoolean>>;
1920
+ question: ZodOptional<z.ZodString>;
1921
+ encodingType: ZodDefault<ZodOptional<z.ZodNativeEnum<typeof import("../client/settings.js").EncodingType>>>;
1922
+ }, "strip", z.ZodTypeAny, {
1923
+ enabled: boolean;
1924
+ encodingType: import("../client/settings.js").EncodingType;
1925
+ question?: string | undefined;
1926
+ }, {
1927
+ enabled?: boolean | undefined;
1928
+ question?: string | undefined;
1929
+ encodingType?: import("../client/settings.js").EncodingType | undefined;
1930
+ }>>;
1931
+ }, "strip", z.ZodTypeAny, {
1932
+ captchaType: CaptchaType;
1933
+ domains: string[];
1934
+ frictionlessThreshold: number;
1935
+ powDifficulty: number;
1936
+ imageThreshold: number;
1937
+ imageMaxRounds: number;
1938
+ puzzleTolerance: number;
1939
+ autoBanScoreThreshold?: number | undefined;
1940
+ ipValidationRules?: {
1941
+ actions: {
1942
+ countryChangeAction: import("../client/settings.js").IPValidationAction;
1943
+ cityChangeAction: import("../client/settings.js").IPValidationAction;
1944
+ ispChangeAction: import("../client/settings.js").IPValidationAction;
1945
+ distanceExceedAction: import("../client/settings.js").IPValidationAction;
1946
+ abuseScoreExceedAction: import("../client/settings.js").IPValidationAction;
1947
+ };
1948
+ distanceThresholdKm: number;
1949
+ abuseScoreThreshold: number;
1950
+ requireAllConditions: boolean;
1951
+ enabled: boolean;
751
1952
  forceConsistentIp: boolean;
752
1953
  countryOverrides?: Record<string, {
753
1954
  actions: {
@@ -770,12 +1971,43 @@ export declare const RegisterSitekeyBody: ZodObject<{
770
1971
  threshold: number;
771
1972
  }>>;
772
1973
  } | undefined;
1974
+ spamEmailDomainCheckEnabled?: boolean | undefined;
1975
+ spamFilter?: {
1976
+ enabled: boolean;
1977
+ emailRules?: {
1978
+ enabled: boolean;
1979
+ normaliseGmail: boolean;
1980
+ useDefaultPatterns: boolean;
1981
+ customRegexBlocklist: string[];
1982
+ maxLocalPartDots?: number | undefined;
1983
+ } | undefined;
1984
+ } | undefined;
1985
+ trafficFilter?: {
1986
+ blockVpn: boolean;
1987
+ blockProxy: boolean;
1988
+ blockTor: boolean;
1989
+ blockAbuser: boolean;
1990
+ abuserScoreThreshold: number;
1991
+ blockDatacenter: boolean;
1992
+ blockMobile: boolean;
1993
+ blockSatellite: boolean;
1994
+ blockCrawler: boolean;
1995
+ } | undefined;
1996
+ storeMetadata?: boolean | undefined;
1997
+ honeypot?: {
1998
+ enabled: boolean;
1999
+ encodingType: import("../client/settings.js").EncodingType;
2000
+ question?: string | undefined;
2001
+ } | undefined;
773
2002
  }, {
774
2003
  domains: string[];
775
2004
  captchaType?: CaptchaType | undefined;
776
2005
  frictionlessThreshold?: number | undefined;
777
2006
  powDifficulty?: number | undefined;
778
2007
  imageThreshold?: number | undefined;
2008
+ imageMaxRounds?: number | undefined;
2009
+ autoBanScoreThreshold?: number | undefined;
2010
+ puzzleTolerance?: number | undefined;
779
2011
  ipValidationRules?: {
780
2012
  actions: {
781
2013
  countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
@@ -787,6 +2019,7 @@ export declare const RegisterSitekeyBody: ZodObject<{
787
2019
  distanceThresholdKm?: number | undefined;
788
2020
  abuseScoreThreshold?: number | undefined;
789
2021
  requireAllConditions?: boolean | undefined;
2022
+ enabled?: boolean | undefined;
790
2023
  countryOverrides?: Record<string, {
791
2024
  actions: {
792
2025
  countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
@@ -809,8 +2042,36 @@ export declare const RegisterSitekeyBody: ZodObject<{
809
2042
  }>>;
810
2043
  enabled?: boolean | undefined;
811
2044
  } | undefined;
2045
+ spamEmailDomainCheckEnabled?: boolean | undefined;
2046
+ spamFilter?: {
2047
+ enabled?: boolean | undefined;
2048
+ emailRules?: {
2049
+ enabled?: boolean | undefined;
2050
+ maxLocalPartDots?: number | undefined;
2051
+ normaliseGmail?: boolean | undefined;
2052
+ useDefaultPatterns?: boolean | undefined;
2053
+ customRegexBlocklist?: string[] | undefined;
2054
+ } | undefined;
2055
+ } | undefined;
2056
+ trafficFilter?: {
2057
+ blockVpn?: boolean | undefined;
2058
+ blockProxy?: boolean | undefined;
2059
+ blockTor?: boolean | undefined;
2060
+ blockAbuser?: boolean | undefined;
2061
+ abuserScoreThreshold?: number | undefined;
2062
+ blockDatacenter?: boolean | undefined;
2063
+ blockMobile?: boolean | undefined;
2064
+ blockSatellite?: boolean | undefined;
2065
+ blockCrawler?: boolean | undefined;
2066
+ } | undefined;
2067
+ storeMetadata?: boolean | undefined;
2068
+ honeypot?: {
2069
+ enabled?: boolean | undefined;
2070
+ question?: string | undefined;
2071
+ encodingType?: import("../client/settings.js").EncodingType | undefined;
2072
+ } | undefined;
812
2073
  }>>;
813
- }, "strip", import("zod").ZodTypeAny, {
2074
+ }, "strip", z.ZodTypeAny, {
814
2075
  siteKey: string;
815
2076
  tier: Tier;
816
2077
  settings?: {
@@ -819,6 +2080,9 @@ export declare const RegisterSitekeyBody: ZodObject<{
819
2080
  frictionlessThreshold: number;
820
2081
  powDifficulty: number;
821
2082
  imageThreshold: number;
2083
+ imageMaxRounds: number;
2084
+ puzzleTolerance: number;
2085
+ autoBanScoreThreshold?: number | undefined;
822
2086
  ipValidationRules?: {
823
2087
  actions: {
824
2088
  countryChangeAction: import("../client/settings.js").IPValidationAction;
@@ -830,6 +2094,7 @@ export declare const RegisterSitekeyBody: ZodObject<{
830
2094
  distanceThresholdKm: number;
831
2095
  abuseScoreThreshold: number;
832
2096
  requireAllConditions: boolean;
2097
+ enabled: boolean;
833
2098
  forceConsistentIp: boolean;
834
2099
  countryOverrides?: Record<string, {
835
2100
  actions: {
@@ -852,6 +2117,34 @@ export declare const RegisterSitekeyBody: ZodObject<{
852
2117
  threshold: number;
853
2118
  }>>;
854
2119
  } | undefined;
2120
+ spamEmailDomainCheckEnabled?: boolean | undefined;
2121
+ spamFilter?: {
2122
+ enabled: boolean;
2123
+ emailRules?: {
2124
+ enabled: boolean;
2125
+ normaliseGmail: boolean;
2126
+ useDefaultPatterns: boolean;
2127
+ customRegexBlocklist: string[];
2128
+ maxLocalPartDots?: number | undefined;
2129
+ } | undefined;
2130
+ } | undefined;
2131
+ trafficFilter?: {
2132
+ blockVpn: boolean;
2133
+ blockProxy: boolean;
2134
+ blockTor: boolean;
2135
+ blockAbuser: boolean;
2136
+ abuserScoreThreshold: number;
2137
+ blockDatacenter: boolean;
2138
+ blockMobile: boolean;
2139
+ blockSatellite: boolean;
2140
+ blockCrawler: boolean;
2141
+ } | undefined;
2142
+ storeMetadata?: boolean | undefined;
2143
+ honeypot?: {
2144
+ enabled: boolean;
2145
+ encodingType: import("../client/settings.js").EncodingType;
2146
+ question?: string | undefined;
2147
+ } | undefined;
855
2148
  } | undefined;
856
2149
  }, {
857
2150
  siteKey: string;
@@ -862,6 +2155,9 @@ export declare const RegisterSitekeyBody: ZodObject<{
862
2155
  frictionlessThreshold?: number | undefined;
863
2156
  powDifficulty?: number | undefined;
864
2157
  imageThreshold?: number | undefined;
2158
+ imageMaxRounds?: number | undefined;
2159
+ autoBanScoreThreshold?: number | undefined;
2160
+ puzzleTolerance?: number | undefined;
865
2161
  ipValidationRules?: {
866
2162
  actions: {
867
2163
  countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
@@ -873,6 +2169,7 @@ export declare const RegisterSitekeyBody: ZodObject<{
873
2169
  distanceThresholdKm?: number | undefined;
874
2170
  abuseScoreThreshold?: number | undefined;
875
2171
  requireAllConditions?: boolean | undefined;
2172
+ enabled?: boolean | undefined;
876
2173
  countryOverrides?: Record<string, {
877
2174
  actions: {
878
2175
  countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
@@ -895,19 +2192,258 @@ export declare const RegisterSitekeyBody: ZodObject<{
895
2192
  }>>;
896
2193
  enabled?: boolean | undefined;
897
2194
  } | undefined;
2195
+ spamEmailDomainCheckEnabled?: boolean | undefined;
2196
+ spamFilter?: {
2197
+ enabled?: boolean | undefined;
2198
+ emailRules?: {
2199
+ enabled?: boolean | undefined;
2200
+ maxLocalPartDots?: number | undefined;
2201
+ normaliseGmail?: boolean | undefined;
2202
+ useDefaultPatterns?: boolean | undefined;
2203
+ customRegexBlocklist?: string[] | undefined;
2204
+ } | undefined;
2205
+ } | undefined;
2206
+ trafficFilter?: {
2207
+ blockVpn?: boolean | undefined;
2208
+ blockProxy?: boolean | undefined;
2209
+ blockTor?: boolean | undefined;
2210
+ blockAbuser?: boolean | undefined;
2211
+ abuserScoreThreshold?: number | undefined;
2212
+ blockDatacenter?: boolean | undefined;
2213
+ blockMobile?: boolean | undefined;
2214
+ blockSatellite?: boolean | undefined;
2215
+ blockCrawler?: boolean | undefined;
2216
+ } | undefined;
2217
+ storeMetadata?: boolean | undefined;
2218
+ honeypot?: {
2219
+ enabled?: boolean | undefined;
2220
+ question?: string | undefined;
2221
+ encodingType?: import("../client/settings.js").EncodingType | undefined;
2222
+ } | undefined;
898
2223
  } | undefined;
2224
+ }>, "many">;
2225
+ export declare const RemoveSitekeyBody: ZodObject<{
2226
+ siteKey: z.ZodString;
2227
+ }, "strip", z.ZodTypeAny, {
2228
+ siteKey: string;
2229
+ }, {
2230
+ siteKey: string;
899
2231
  }>;
2232
+ export declare const RemoveSitekeysBody: z.ZodArray<ZodObject<{
2233
+ siteKey: z.ZodString;
2234
+ }, "strip", z.ZodTypeAny, {
2235
+ siteKey: string;
2236
+ }, {
2237
+ siteKey: string;
2238
+ }>, "many">;
900
2239
  export declare const UpdateDetectorKeyBody: ZodObject<{
901
- detectorKey: import("zod").ZodString;
902
- }, "strip", import("zod").ZodTypeAny, {
2240
+ detectorKey: z.ZodString;
2241
+ }, "strip", z.ZodTypeAny, {
903
2242
  detectorKey: string;
904
2243
  }, {
905
2244
  detectorKey: string;
906
2245
  }>;
2246
+ export declare const UpdateDecisionMachineBody: ZodObject<{
2247
+ decisionMachineScope: z.ZodNativeEnum<typeof DecisionMachineScope>;
2248
+ decisionMachineRuntime: z.ZodNativeEnum<typeof DecisionMachineRuntime>;
2249
+ decisionMachineSource: z.ZodString;
2250
+ decisionMachineLanguage: ZodOptional<z.ZodNativeEnum<typeof DecisionMachineLanguage>>;
2251
+ decisionMachineName: ZodOptional<z.ZodString>;
2252
+ decisionMachineVersion: ZodOptional<z.ZodString>;
2253
+ decisionMachineCaptchaType: ZodOptional<z.ZodUnion<[z.ZodLiteral<CaptchaType.pow>, z.ZodLiteral<CaptchaType.image>, z.ZodLiteral<CaptchaType.puzzle>]>>;
2254
+ dapp: ZodOptional<z.ZodString>;
2255
+ }, "strip", z.ZodTypeAny, {
2256
+ decisionMachineScope: DecisionMachineScope;
2257
+ decisionMachineRuntime: DecisionMachineRuntime;
2258
+ decisionMachineSource: string;
2259
+ dapp?: string | undefined;
2260
+ decisionMachineLanguage?: DecisionMachineLanguage | undefined;
2261
+ decisionMachineName?: string | undefined;
2262
+ decisionMachineVersion?: string | undefined;
2263
+ decisionMachineCaptchaType?: CaptchaType.image | CaptchaType.pow | CaptchaType.puzzle | undefined;
2264
+ }, {
2265
+ decisionMachineScope: DecisionMachineScope;
2266
+ decisionMachineRuntime: DecisionMachineRuntime;
2267
+ decisionMachineSource: string;
2268
+ dapp?: string | undefined;
2269
+ decisionMachineLanguage?: DecisionMachineLanguage | undefined;
2270
+ decisionMachineName?: string | undefined;
2271
+ decisionMachineVersion?: string | undefined;
2272
+ decisionMachineCaptchaType?: CaptchaType.image | CaptchaType.pow | CaptchaType.puzzle | undefined;
2273
+ }>;
2274
+ export declare const GetDecisionMachineBody: ZodObject<{
2275
+ id: z.ZodString;
2276
+ }, "strip", z.ZodTypeAny, {
2277
+ id: string;
2278
+ }, {
2279
+ id: string;
2280
+ }>;
2281
+ export declare const GetAllDecisionMachinesBody: ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
2282
+ export declare const RemoveDecisionMachineBody: ZodObject<{
2283
+ id: z.ZodString;
2284
+ }, "strip", z.ZodTypeAny, {
2285
+ id: string;
2286
+ }, {
2287
+ id: string;
2288
+ }>;
2289
+ export declare const RemoveAllDecisionMachinesBody: ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
2290
+ export declare const ClearAllCountersBody: ZodObject<{
2291
+ dapp: ZodOptional<z.ZodString>;
2292
+ }, "strip", z.ZodTypeAny, {
2293
+ dapp?: string | undefined;
2294
+ }, {
2295
+ dapp?: string | undefined;
2296
+ }>;
2297
+ export type ClearAllCountersBodyType = z.infer<typeof ClearAllCountersBody>;
2298
+ export declare const ClearAllCountersResponse: ZodObject<{
2299
+ success: z.ZodBoolean;
2300
+ deletedCount: ZodNumber;
2301
+ scope: z.ZodString;
2302
+ }, "strip", z.ZodTypeAny, {
2303
+ success: boolean;
2304
+ deletedCount: number;
2305
+ scope: string;
2306
+ }, {
2307
+ success: boolean;
2308
+ deletedCount: number;
2309
+ scope: string;
2310
+ }>;
2311
+ export type ClearAllCountersResponseType = z.infer<typeof ClearAllCountersResponse>;
2312
+ export declare const DecisionMachineSummarySchema: ZodObject<{
2313
+ _id: z.ZodString;
2314
+ scope: z.ZodNativeEnum<typeof DecisionMachineScope>;
2315
+ dappAccount: ZodOptional<z.ZodNullable<z.ZodString>>;
2316
+ runtime: z.ZodNativeEnum<typeof DecisionMachineRuntime>;
2317
+ language: ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof DecisionMachineLanguage>>>;
2318
+ name: ZodOptional<z.ZodNullable<z.ZodString>>;
2319
+ version: ZodOptional<z.ZodNullable<z.ZodString>>;
2320
+ captchaType: ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<CaptchaType.pow>, z.ZodLiteral<CaptchaType.image>, z.ZodLiteral<CaptchaType.puzzle>]>>>;
2321
+ createdAt: z.ZodString;
2322
+ updatedAt: z.ZodString;
2323
+ }, "strip", z.ZodTypeAny, {
2324
+ runtime: DecisionMachineRuntime;
2325
+ createdAt: string;
2326
+ scope: DecisionMachineScope;
2327
+ _id: string;
2328
+ updatedAt: string;
2329
+ captchaType?: CaptchaType.image | CaptchaType.pow | CaptchaType.puzzle | null | undefined;
2330
+ language?: DecisionMachineLanguage | null | undefined;
2331
+ name?: string | null | undefined;
2332
+ version?: string | null | undefined;
2333
+ dappAccount?: string | null | undefined;
2334
+ }, {
2335
+ runtime: DecisionMachineRuntime;
2336
+ createdAt: string;
2337
+ scope: DecisionMachineScope;
2338
+ _id: string;
2339
+ updatedAt: string;
2340
+ captchaType?: CaptchaType.image | CaptchaType.pow | CaptchaType.puzzle | null | undefined;
2341
+ language?: DecisionMachineLanguage | null | undefined;
2342
+ name?: string | null | undefined;
2343
+ version?: string | null | undefined;
2344
+ dappAccount?: string | null | undefined;
2345
+ }>;
2346
+ export type DecisionMachineSummary = z.infer<typeof DecisionMachineSummarySchema>;
2347
+ export declare const GetAllDecisionMachinesResponse: z.ZodArray<ZodObject<{
2348
+ _id: z.ZodString;
2349
+ scope: z.ZodNativeEnum<typeof DecisionMachineScope>;
2350
+ dappAccount: ZodOptional<z.ZodNullable<z.ZodString>>;
2351
+ runtime: z.ZodNativeEnum<typeof DecisionMachineRuntime>;
2352
+ language: ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof DecisionMachineLanguage>>>;
2353
+ name: ZodOptional<z.ZodNullable<z.ZodString>>;
2354
+ version: ZodOptional<z.ZodNullable<z.ZodString>>;
2355
+ captchaType: ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<CaptchaType.pow>, z.ZodLiteral<CaptchaType.image>, z.ZodLiteral<CaptchaType.puzzle>]>>>;
2356
+ createdAt: z.ZodString;
2357
+ updatedAt: z.ZodString;
2358
+ }, "strip", z.ZodTypeAny, {
2359
+ runtime: DecisionMachineRuntime;
2360
+ createdAt: string;
2361
+ scope: DecisionMachineScope;
2362
+ _id: string;
2363
+ updatedAt: string;
2364
+ captchaType?: CaptchaType.image | CaptchaType.pow | CaptchaType.puzzle | null | undefined;
2365
+ language?: DecisionMachineLanguage | null | undefined;
2366
+ name?: string | null | undefined;
2367
+ version?: string | null | undefined;
2368
+ dappAccount?: string | null | undefined;
2369
+ }, {
2370
+ runtime: DecisionMachineRuntime;
2371
+ createdAt: string;
2372
+ scope: DecisionMachineScope;
2373
+ _id: string;
2374
+ updatedAt: string;
2375
+ captchaType?: CaptchaType.image | CaptchaType.pow | CaptchaType.puzzle | null | undefined;
2376
+ language?: DecisionMachineLanguage | null | undefined;
2377
+ name?: string | null | undefined;
2378
+ version?: string | null | undefined;
2379
+ dappAccount?: string | null | undefined;
2380
+ }>, "many">;
2381
+ export type GetAllDecisionMachinesResponseType = z.infer<typeof GetAllDecisionMachinesResponse>;
2382
+ export declare const GetDecisionMachineResponse: ZodObject<z.objectUtil.extendShape<{
2383
+ _id: z.ZodString;
2384
+ scope: z.ZodNativeEnum<typeof DecisionMachineScope>;
2385
+ dappAccount: ZodOptional<z.ZodNullable<z.ZodString>>;
2386
+ runtime: z.ZodNativeEnum<typeof DecisionMachineRuntime>;
2387
+ language: ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof DecisionMachineLanguage>>>;
2388
+ name: ZodOptional<z.ZodNullable<z.ZodString>>;
2389
+ version: ZodOptional<z.ZodNullable<z.ZodString>>;
2390
+ captchaType: ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<CaptchaType.pow>, z.ZodLiteral<CaptchaType.image>, z.ZodLiteral<CaptchaType.puzzle>]>>>;
2391
+ createdAt: z.ZodString;
2392
+ updatedAt: z.ZodString;
2393
+ }, {
2394
+ source: z.ZodString;
2395
+ }>, "strip", z.ZodTypeAny, {
2396
+ runtime: DecisionMachineRuntime;
2397
+ source: string;
2398
+ createdAt: string;
2399
+ scope: DecisionMachineScope;
2400
+ _id: string;
2401
+ updatedAt: string;
2402
+ captchaType?: CaptchaType.image | CaptchaType.pow | CaptchaType.puzzle | null | undefined;
2403
+ language?: DecisionMachineLanguage | null | undefined;
2404
+ name?: string | null | undefined;
2405
+ version?: string | null | undefined;
2406
+ dappAccount?: string | null | undefined;
2407
+ }, {
2408
+ runtime: DecisionMachineRuntime;
2409
+ source: string;
2410
+ createdAt: string;
2411
+ scope: DecisionMachineScope;
2412
+ _id: string;
2413
+ updatedAt: string;
2414
+ captchaType?: CaptchaType.image | CaptchaType.pow | CaptchaType.puzzle | null | undefined;
2415
+ language?: DecisionMachineLanguage | null | undefined;
2416
+ name?: string | null | undefined;
2417
+ version?: string | null | undefined;
2418
+ dappAccount?: string | null | undefined;
2419
+ }>;
2420
+ export type GetDecisionMachineResponseType = z.infer<typeof GetDecisionMachineResponse>;
2421
+ export declare const RemoveDecisionMachineResponse: ZodObject<{
2422
+ success: z.ZodBoolean;
2423
+ deletedId: z.ZodString;
2424
+ }, "strip", z.ZodTypeAny, {
2425
+ success: boolean;
2426
+ deletedId: string;
2427
+ }, {
2428
+ success: boolean;
2429
+ deletedId: string;
2430
+ }>;
2431
+ export type RemoveDecisionMachineResponseType = z.infer<typeof RemoveDecisionMachineResponse>;
2432
+ export declare const RemoveAllDecisionMachinesResponse: ZodObject<{
2433
+ success: z.ZodBoolean;
2434
+ deletedCount: ZodNumber;
2435
+ }, "strip", z.ZodTypeAny, {
2436
+ success: boolean;
2437
+ deletedCount: number;
2438
+ }, {
2439
+ success: boolean;
2440
+ deletedCount: number;
2441
+ }>;
2442
+ export type RemoveAllDecisionMachinesResponseType = z.infer<typeof RemoveAllDecisionMachinesResponse>;
907
2443
  export declare const RemoveDetectorKeyBodySpec: ZodObject<{
908
- detectorKey: import("zod").ZodString;
2444
+ detectorKey: z.ZodString;
909
2445
  expirationInSeconds: ZodOptional<ZodNumber>;
910
- }, "strip", import("zod").ZodTypeAny, {
2446
+ }, "strip", z.ZodTypeAny, {
911
2447
  detectorKey: string;
912
2448
  expirationInSeconds?: number | undefined;
913
2449
  }, {
@@ -917,30 +2453,34 @@ export declare const RemoveDetectorKeyBodySpec: ZodObject<{
917
2453
  export type RemoveDetectorKeyBodyInput = input<typeof RemoveDetectorKeyBodySpec>;
918
2454
  export type RemoveDetectorKeyBodyOutput = output<typeof RemoveDetectorKeyBodySpec>;
919
2455
  export declare const ToggleMaintenanceModeBody: ZodObject<{
920
- enabled: import("zod").ZodBoolean;
921
- }, "strip", import("zod").ZodTypeAny, {
2456
+ enabled: z.ZodBoolean;
2457
+ }, "strip", z.ZodTypeAny, {
922
2458
  enabled: boolean;
923
2459
  }, {
924
2460
  enabled: boolean;
925
2461
  }>;
926
2462
  export type ToggleMaintenanceModeBodyOutput = output<typeof ToggleMaintenanceModeBody>;
2463
+ export type UpdateDecisionMachineBodyTypeOutput = output<typeof UpdateDecisionMachineBody>;
927
2464
  export type RegisterSitekeyBodyTypeOutput = output<typeof RegisterSitekeyBody>;
2465
+ export type RegisterSitekeysBodyTypeOutput = output<typeof RegisterSitekeysBody>;
2466
+ export type RemoveSitekeyBodyTypeOutput = output<typeof RemoveSitekeyBody>;
2467
+ export type RemoveSitekeysBodyTypeOutput = output<typeof RemoveSitekeysBody>;
928
2468
  export declare const ProsopoCaptchaCountConfigSchema: ZodObject<{
929
2469
  solved: ZodDefault<ZodOptional<ZodObject<{
930
2470
  count: ZodNumber;
931
- }, "strip", import("zod").ZodTypeAny, {
2471
+ }, "strip", z.ZodTypeAny, {
932
2472
  count: number;
933
2473
  }, {
934
2474
  count: number;
935
2475
  }>>>;
936
2476
  unsolved: ZodDefault<ZodOptional<ZodObject<{
937
2477
  count: ZodNumber;
938
- }, "strip", import("zod").ZodTypeAny, {
2478
+ }, "strip", z.ZodTypeAny, {
939
2479
  count: number;
940
2480
  }, {
941
2481
  count: number;
942
2482
  }>>>;
943
- }, "strip", import("zod").ZodTypeAny, {
2483
+ }, "strip", z.ZodTypeAny, {
944
2484
  solved: {
945
2485
  count: number;
946
2486
  };
@@ -962,26 +2502,26 @@ export declare enum BlockRuleType {
962
2502
  userAccount = "userAccount"
963
2503
  }
964
2504
  export declare const BlockRuleSpec: ZodObject<{
965
- global: import("zod").ZodBoolean;
966
- hardBlock: import("zod").ZodBoolean;
967
- type: import("zod").ZodNativeEnum<typeof BlockRuleType>;
968
- dappAccount: ZodOptional<import("zod").ZodString>;
2505
+ global: z.ZodBoolean;
2506
+ hardBlock: z.ZodBoolean;
2507
+ type: z.ZodNativeEnum<typeof BlockRuleType>;
2508
+ dappAccount: ZodOptional<z.ZodString>;
969
2509
  captchaConfig: ZodOptional<ZodObject<{
970
2510
  solved: ZodDefault<ZodOptional<ZodObject<{
971
2511
  count: ZodNumber;
972
- }, "strip", import("zod").ZodTypeAny, {
2512
+ }, "strip", z.ZodTypeAny, {
973
2513
  count: number;
974
2514
  }, {
975
2515
  count: number;
976
2516
  }>>>;
977
2517
  unsolved: ZodDefault<ZodOptional<ZodObject<{
978
2518
  count: ZodNumber;
979
- }, "strip", import("zod").ZodTypeAny, {
2519
+ }, "strip", z.ZodTypeAny, {
980
2520
  count: number;
981
2521
  }, {
982
2522
  count: number;
983
2523
  }>>>;
984
- }, "strip", import("zod").ZodTypeAny, {
2524
+ }, "strip", z.ZodTypeAny, {
985
2525
  solved: {
986
2526
  count: number;
987
2527
  };
@@ -996,7 +2536,7 @@ export declare const BlockRuleSpec: ZodObject<{
996
2536
  count: number;
997
2537
  } | undefined;
998
2538
  }>>;
999
- }, "strip", import("zod").ZodTypeAny, {
2539
+ }, "strip", z.ZodTypeAny, {
1000
2540
  type: BlockRuleType;
1001
2541
  global: boolean;
1002
2542
  hardBlock: boolean;
@@ -1025,8 +2565,8 @@ export declare const BlockRuleSpec: ZodObject<{
1025
2565
  }>;
1026
2566
  export type BlockRule = zInfer<typeof BlockRuleSpec>;
1027
2567
  export declare const DappDomainRequestBody: ZodObject<{
1028
- dapp: import("zod").ZodString;
1029
- }, "strip", import("zod").ZodTypeAny, {
2568
+ dapp: z.ZodString;
2569
+ }, "strip", z.ZodTypeAny, {
1030
2570
  dapp: string;
1031
2571
  }, {
1032
2572
  dapp: string;