@prosopo/types 3.6.4 → 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 (145) hide show
  1. package/.turbo/turbo-build$colon$cjs.log +48 -42
  2. package/.turbo/turbo-build$colon$tsc.log +23 -0
  3. package/.turbo/turbo-build.log +53 -43
  4. package/.turbo/turbo-typecheck.log +1 -1
  5. package/CHANGELOG.md +566 -0
  6. package/dist/api/api.d.ts +26 -8
  7. package/dist/api/api.d.ts.map +1 -1
  8. package/dist/api/api.js.map +1 -0
  9. package/dist/api/index.js.map +1 -0
  10. package/dist/api/ipapi.d.ts +2 -1
  11. package/dist/api/ipapi.d.ts.map +1 -1
  12. package/dist/api/ipapi.js.map +1 -0
  13. package/dist/api/params.d.ts +26 -1
  14. package/dist/api/params.d.ts.map +1 -1
  15. package/dist/api/params.js +25 -0
  16. package/dist/api/params.js.map +1 -0
  17. package/dist/cjs/api/params.cjs +25 -0
  18. package/dist/cjs/client/captchaType/captchaType.cjs +16 -1
  19. package/dist/cjs/client/index.cjs +17 -0
  20. package/dist/cjs/client/settings.cjs +88 -6
  21. package/dist/cjs/client/testSiteKeys.cjs +22 -0
  22. package/dist/cjs/config/config.cjs +25 -19
  23. package/dist/cjs/config/index.cjs +6 -2
  24. package/dist/cjs/config/mode.cjs +15 -0
  25. package/dist/cjs/config/timeouts.cjs +6 -0
  26. package/dist/cjs/decisionMachine/index.cjs +85 -0
  27. package/dist/cjs/index.cjs +81 -2
  28. package/dist/cjs/procaptcha/behavioral.cjs +1 -0
  29. package/dist/cjs/procaptcha/index.cjs +1 -0
  30. package/dist/cjs/provider/api.cjs +263 -9
  31. package/dist/cjs/provider/database.cjs +253 -0
  32. package/dist/cjs/provider/index.cjs +43 -0
  33. package/dist/cjs/provider/reasons.cjs +45 -0
  34. package/dist/cjs/provider/scheduler.cjs +1 -0
  35. package/dist/client/captchaType/captchaType.d.ts +3 -2
  36. package/dist/client/captchaType/captchaType.d.ts.map +1 -1
  37. package/dist/client/captchaType/captchaType.js +17 -2
  38. package/dist/client/captchaType/captchaType.js.map +1 -0
  39. package/dist/client/captchaType/captchaTypeSpec.js.map +1 -0
  40. package/dist/client/index.d.ts +1 -0
  41. package/dist/client/index.d.ts.map +1 -1
  42. package/dist/client/index.js +20 -3
  43. package/dist/client/index.js.map +1 -0
  44. package/dist/client/settings.d.ts +278 -2
  45. package/dist/client/settings.d.ts.map +1 -1
  46. package/dist/client/settings.js +89 -7
  47. package/dist/client/settings.js.map +1 -0
  48. package/dist/client/testSiteKeys.d.ts +8 -0
  49. package/dist/client/testSiteKeys.d.ts.map +1 -0
  50. package/dist/client/testSiteKeys.js +22 -0
  51. package/dist/client/testSiteKeys.js.map +1 -0
  52. package/dist/client/user.js.map +1 -0
  53. package/dist/config/config.d.ts +371 -30
  54. package/dist/config/config.d.ts.map +1 -1
  55. package/dist/config/config.js +25 -19
  56. package/dist/config/config.js.map +1 -0
  57. package/dist/config/enumMap.js +6 -0
  58. package/dist/config/enumMap.js.map +1 -0
  59. package/dist/config/frictionless.js.map +1 -0
  60. package/dist/config/index.d.ts +1 -0
  61. package/dist/config/index.d.ts.map +1 -1
  62. package/dist/config/index.js +6 -2
  63. package/dist/config/index.js.map +1 -0
  64. package/dist/config/mode.d.ts +8 -0
  65. package/dist/config/mode.d.ts.map +1 -0
  66. package/dist/config/mode.js +15 -0
  67. package/dist/config/mode.js.map +1 -0
  68. package/dist/config/network.js.map +1 -0
  69. package/dist/config/timeouts.d.ts +3 -0
  70. package/dist/config/timeouts.d.ts.map +1 -1
  71. package/dist/config/timeouts.js +7 -1
  72. package/dist/config/timeouts.js.map +1 -0
  73. package/dist/datasets/assets.js.map +1 -0
  74. package/dist/datasets/captcha.d.ts +2 -2
  75. package/dist/datasets/captcha.d.ts.map +1 -1
  76. package/dist/datasets/captcha.js.map +1 -0
  77. package/dist/datasets/dataset.js.map +1 -0
  78. package/dist/datasets/index.js.map +1 -0
  79. package/dist/datasets/merkle.js.map +1 -0
  80. package/dist/decisionMachine/index.d.ts +174 -0
  81. package/dist/decisionMachine/index.d.ts.map +1 -0
  82. package/dist/decisionMachine/index.js +85 -0
  83. package/dist/decisionMachine/index.js.map +1 -0
  84. package/dist/index.d.ts +1 -0
  85. package/dist/index.d.ts.map +1 -1
  86. package/dist/index.js +85 -6
  87. package/dist/index.js.map +1 -0
  88. package/dist/keyring/index.js.map +1 -0
  89. package/dist/keyring/keyring/types.d.ts +8 -1
  90. package/dist/keyring/keyring/types.d.ts.map +1 -1
  91. package/dist/keyring/keyring/types.js.map +1 -0
  92. package/dist/keyring/pair/types.js.map +1 -0
  93. package/dist/procaptcha/api.d.ts +3 -2
  94. package/dist/procaptcha/api.d.ts.map +1 -1
  95. package/dist/procaptcha/api.js.map +1 -0
  96. package/dist/procaptcha/behavioral.d.ts +49 -0
  97. package/dist/procaptcha/behavioral.d.ts.map +1 -0
  98. package/dist/procaptcha/behavioral.js +1 -0
  99. package/dist/procaptcha/behavioral.js.map +1 -0
  100. package/dist/procaptcha/client.js.map +1 -0
  101. package/dist/procaptcha/collector.js.map +1 -0
  102. package/dist/procaptcha/index.d.ts +1 -0
  103. package/dist/procaptcha/index.d.ts.map +1 -1
  104. package/dist/procaptcha/index.js +1 -0
  105. package/dist/procaptcha/index.js.map +1 -0
  106. package/dist/procaptcha/manager.js.map +1 -0
  107. package/dist/procaptcha/props.d.ts +27 -0
  108. package/dist/procaptcha/props.d.ts.map +1 -1
  109. package/dist/procaptcha/props.js.map +1 -0
  110. package/dist/procaptcha/token.js.map +1 -0
  111. package/dist/procaptcha/utils.js.map +1 -0
  112. package/dist/procaptcha-bundle/index.d.ts +0 -3
  113. package/dist/procaptcha-bundle/index.d.ts.map +1 -1
  114. package/dist/procaptcha-bundle/index.js.map +1 -0
  115. package/dist/procaptcha-frictionless/index.js.map +1 -0
  116. package/dist/procaptcha-frictionless/props.d.ts +23 -0
  117. package/dist/procaptcha-frictionless/props.d.ts.map +1 -1
  118. package/dist/procaptcha-frictionless/props.js.map +1 -0
  119. package/dist/provider/accounts.js.map +1 -0
  120. package/dist/provider/api.d.ts +1663 -116
  121. package/dist/provider/api.d.ts.map +1 -1
  122. package/dist/provider/api.js +263 -9
  123. package/dist/provider/api.js.map +1 -0
  124. package/dist/provider/database.d.ts +1376 -0
  125. package/dist/provider/database.d.ts.map +1 -0
  126. package/dist/provider/database.js +253 -0
  127. package/dist/provider/database.js.map +1 -0
  128. package/dist/provider/detection.d.ts +21 -0
  129. package/dist/provider/detection.d.ts.map +1 -1
  130. package/dist/provider/detection.js.map +1 -0
  131. package/dist/provider/index.d.ts +2 -0
  132. package/dist/provider/index.d.ts.map +1 -1
  133. package/dist/provider/index.js +44 -1
  134. package/dist/provider/index.js.map +1 -0
  135. package/dist/provider/reasons.d.ts +40 -0
  136. package/dist/provider/reasons.d.ts.map +1 -0
  137. package/dist/provider/reasons.js +45 -0
  138. package/dist/provider/reasons.js.map +1 -0
  139. package/dist/provider/scheduler.d.ts +2 -1
  140. package/dist/provider/scheduler.d.ts.map +1 -1
  141. package/dist/provider/scheduler.js +1 -0
  142. package/dist/provider/scheduler.js.map +1 -0
  143. package/package.json +9 -7
  144. package/vite.cjs.config.ts +1 -1
  145. package/vite.esm.config.ts +1 -1
@@ -1,14 +1,17 @@
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;
10
12
  key?: string;
11
13
  code: number;
14
+ data?: Record<string, unknown>;
12
15
  };
13
16
  export declare const ApiPrefix: "/v1/prosopo";
14
17
  export type IPAddress = Address4 | Address6;
@@ -22,21 +25,25 @@ export declare enum ClientApiPaths {
22
25
  SubmitPowCaptchaSolution = "/v1/prosopo/provider/client/pow/solution",
23
26
  VerifyPowCaptchaSolution = "/v1/prosopo/provider/client/pow/verify",
24
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",
25
31
  GetProviderStatus = "/v1/prosopo/provider/client/status",
26
- SubmitUserEvents = "/v1/prosopo/provider/client/events"
32
+ SubmitUserEvents = "/v1/prosopo/provider/client/events",
33
+ CheckSpamEmail = "/v1/prosopo/provider/client/spam/email"
27
34
  }
28
35
  export declare enum PublicApiPaths {
29
36
  Healthz = "/healthz",
30
37
  GetProviderDetails = "/v1/prosopo/provider/public/details"
31
38
  }
32
39
  export declare const providerDetailsSchema: ZodObject<{
33
- version: import("zod").ZodString;
34
- message: import("zod").ZodString;
35
- redis: import("zod").ZodArray<ZodObject<{
36
- actor: import("zod").ZodString;
37
- 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;
38
45
  awaitingTimeSeconds: ZodNumber;
39
- }, "strip", import("zod").ZodTypeAny, {
46
+ }, "strip", z.ZodTypeAny, {
40
47
  actor: string;
41
48
  isReady: boolean;
42
49
  awaitingTimeSeconds: number;
@@ -45,7 +52,7 @@ export declare const providerDetailsSchema: ZodObject<{
45
52
  isReady: boolean;
46
53
  awaitingTimeSeconds: number;
47
54
  }>, "many">;
48
- }, "strip", import("zod").ZodTypeAny, {
55
+ }, "strip", z.ZodTypeAny, {
49
56
  message: string;
50
57
  version: string;
51
58
  redis: {
@@ -67,11 +74,23 @@ export type TGetImageCaptchaChallengePathAndParams = `${ClientApiPaths.GetImageC
67
74
  export type TGetImageCaptchaChallengeURL = `${string}${TGetImageCaptchaChallengePathAndParams}`;
68
75
  export type TGetPowCaptchaChallengeURL = `${string}${ClientApiPaths.GetPowCaptchaChallenge}`;
69
76
  export type TSubmitPowCaptchaSolutionURL = `${string}${ClientApiPaths.SubmitPowCaptchaSolution}`;
77
+ export type TGetPuzzleCaptchaChallengeURL = `${string}${ClientApiPaths.GetPuzzleCaptchaChallenge}`;
78
+ export type TSubmitPuzzleCaptchaSolutionURL = `${string}${ClientApiPaths.SubmitPuzzleCaptchaSolution}`;
70
79
  export declare enum AdminApiPaths {
71
80
  SiteKeyRegister = "/v1/prosopo/provider/admin/sitekey/register",
81
+ SiteKeysRegister = "/v1/prosopo/provider/admin/sitekeys/register",
72
82
  UpdateDetectorKey = "/v1/prosopo/provider/admin/detector/update",
73
83
  RemoveDetectorKey = "/v1/prosopo/provider/admin/detector/remove",
74
- 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"
75
94
  }
76
95
  export type CombinedApiPaths = ClientApiPaths | AdminApiPaths;
77
96
  export declare const ProviderDefaultRateLimits: {
@@ -99,6 +118,18 @@ export declare const ProviderDefaultRateLimits: {
99
118
  windowMs: number;
100
119
  limit: number;
101
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
+ };
102
133
  "/v1/prosopo/provider/client/image/dapp/verify": {
103
134
  windowMs: number;
104
135
  limit: number;
@@ -107,6 +138,10 @@ export declare const ProviderDefaultRateLimits: {
107
138
  windowMs: number;
108
139
  limit: number;
109
140
  };
141
+ "/v1/prosopo/provider/client/spam/email": {
142
+ windowMs: number;
143
+ limit: number;
144
+ };
110
145
  "/v1/prosopo/provider/public/details": {
111
146
  windowMs: number;
112
147
  limit: number;
@@ -119,6 +154,10 @@ export declare const ProviderDefaultRateLimits: {
119
154
  windowMs: number;
120
155
  limit: number;
121
156
  };
157
+ "/v1/prosopo/provider/admin/sitekeys/register": {
158
+ windowMs: number;
159
+ limit: number;
160
+ };
122
161
  "/v1/prosopo/provider/admin/detector/update": {
123
162
  windowMs: number;
124
163
  limit: number;
@@ -131,6 +170,42 @@ export declare const ProviderDefaultRateLimits: {
131
170
  windowMs: number;
132
171
  limit: number;
133
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
+ };
134
209
  };
135
210
  export type RequestHeaders = {
136
211
  [key: string]: string;
@@ -152,7 +227,7 @@ type RateLimitSchemaType = ZodObject<{
152
227
  windowMs: ZodDefault<ZodOptional<ZodNumber>>;
153
228
  limit: ZodDefault<ZodOptional<ZodNumber>>;
154
229
  }>;
155
- export declare const ApiPathRateLimits: ZodObject<Record<CombinedApiPaths, RateLimitSchemaType>, "strip", import("zod").ZodTypeAny, {
230
+ export declare const ApiPathRateLimits: ZodObject<Record<CombinedApiPaths, RateLimitSchemaType>, "strip", z.ZodTypeAny, {
156
231
  "/v1/prosopo/provider/client/captcha/image": {
157
232
  windowMs: number;
158
233
  limit: number;
@@ -181,6 +256,18 @@ export declare const ApiPathRateLimits: ZodObject<Record<CombinedApiPaths, RateL
181
256
  windowMs: number;
182
257
  limit: number;
183
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
+ };
184
271
  "/v1/prosopo/provider/client/status": {
185
272
  windowMs: number;
186
273
  limit: number;
@@ -189,10 +276,18 @@ export declare const ApiPathRateLimits: ZodObject<Record<CombinedApiPaths, RateL
189
276
  windowMs: number;
190
277
  limit: number;
191
278
  };
279
+ "/v1/prosopo/provider/client/spam/email": {
280
+ windowMs: number;
281
+ limit: number;
282
+ };
192
283
  "/v1/prosopo/provider/admin/sitekey/register": {
193
284
  windowMs: number;
194
285
  limit: number;
195
286
  };
287
+ "/v1/prosopo/provider/admin/sitekeys/register": {
288
+ windowMs: number;
289
+ limit: number;
290
+ };
196
291
  "/v1/prosopo/provider/admin/detector/update": {
197
292
  windowMs: number;
198
293
  limit: number;
@@ -205,6 +300,42 @@ export declare const ApiPathRateLimits: ZodObject<Record<CombinedApiPaths, RateL
205
300
  windowMs: number;
206
301
  limit: number;
207
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
+ };
208
339
  }, {
209
340
  "/v1/prosopo/provider/client/captcha/image": {
210
341
  windowMs?: number | undefined;
@@ -234,6 +365,18 @@ export declare const ApiPathRateLimits: ZodObject<Record<CombinedApiPaths, RateL
234
365
  windowMs?: number | undefined;
235
366
  limit?: number | undefined;
236
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
+ };
237
380
  "/v1/prosopo/provider/client/status": {
238
381
  windowMs?: number | undefined;
239
382
  limit?: number | undefined;
@@ -242,10 +385,18 @@ export declare const ApiPathRateLimits: ZodObject<Record<CombinedApiPaths, RateL
242
385
  windowMs?: number | undefined;
243
386
  limit?: number | undefined;
244
387
  };
388
+ "/v1/prosopo/provider/client/spam/email": {
389
+ windowMs?: number | undefined;
390
+ limit?: number | undefined;
391
+ };
245
392
  "/v1/prosopo/provider/admin/sitekey/register": {
246
393
  windowMs?: number | undefined;
247
394
  limit?: number | undefined;
248
395
  };
396
+ "/v1/prosopo/provider/admin/sitekeys/register": {
397
+ windowMs?: number | undefined;
398
+ limit?: number | undefined;
399
+ };
249
400
  "/v1/prosopo/provider/admin/detector/update": {
250
401
  windowMs?: number | undefined;
251
402
  limit?: number | undefined;
@@ -258,6 +409,42 @@ export declare const ApiPathRateLimits: ZodObject<Record<CombinedApiPaths, RateL
258
409
  windowMs?: number | undefined;
259
410
  limit?: number | undefined;
260
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
+ };
261
448
  }>;
262
449
  export interface DappUserSolutionResult {
263
450
  [ApiParams.captchas]: CaptchaIdAndProof[];
@@ -271,20 +458,23 @@ export interface CaptchaIdAndProof {
271
458
  proof: string[][];
272
459
  }
273
460
  export declare const CaptchaRequestBody: ZodObject<{
274
- user: import("zod").ZodString;
275
- dapp: import("zod").ZodString;
276
- datasetId: import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodArray<ZodNumber, "many">]>;
277
- sessionId: ZodOptional<import("zod").ZodString>;
278
- }, "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, {
279
467
  datasetId: string | number[];
280
468
  user: string;
281
469
  dapp: string;
282
470
  sessionId?: string | undefined;
471
+ simdReadings?: string | undefined;
283
472
  }, {
284
473
  datasetId: string | number[];
285
474
  user: string;
286
475
  dapp: string;
287
476
  sessionId?: string | undefined;
477
+ simdReadings?: string | undefined;
288
478
  }>;
289
479
  export type CaptchaRequestBodyType = zInfer<typeof CaptchaRequestBody>;
290
480
  export type CaptchaRequestBodyTypeOutput = output<typeof CaptchaRequestBody>;
@@ -296,15 +486,22 @@ export interface CaptchaResponseBody extends ApiResponse {
296
486
  [ApiParams.provider]: RequestHashSignature;
297
487
  };
298
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
+ }>;
299
496
  export declare const CaptchaSolutionBody: ZodObject<{
300
- user: import("zod").ZodString;
301
- dapp: import("zod").ZodString;
302
- captchas: import("zod").ZodArray<ZodObject<{
303
- captchaId: import("zod").ZodString;
304
- captchaContentId: import("zod").ZodString;
305
- solution: import("zod").ZodArray<import("zod").ZodString, "many">;
306
- salt: import("zod").ZodString;
307
- }, "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, {
308
505
  captchaId: string;
309
506
  captchaContentId: string;
310
507
  salt: string;
@@ -315,24 +512,24 @@ export declare const CaptchaSolutionBody: ZodObject<{
315
512
  salt: string;
316
513
  solution: string[];
317
514
  }>, "many">;
318
- requestHash: import("zod").ZodString;
319
- timestamp: import("zod").ZodString;
515
+ requestHash: z.ZodString;
516
+ timestamp: z.ZodString;
320
517
  signature: ZodObject<{
321
518
  user: ZodObject<{
322
- timestamp: import("zod").ZodString;
323
- }, "strip", import("zod").ZodTypeAny, {
519
+ timestamp: z.ZodString;
520
+ }, "strip", z.ZodTypeAny, {
324
521
  timestamp: string;
325
522
  }, {
326
523
  timestamp: string;
327
524
  }>;
328
525
  provider: ZodObject<{
329
- requestHash: import("zod").ZodString;
330
- }, "strip", import("zod").ZodTypeAny, {
526
+ requestHash: z.ZodString;
527
+ }, "strip", z.ZodTypeAny, {
331
528
  requestHash: string;
332
529
  }, {
333
530
  requestHash: string;
334
531
  }>;
335
- }, "strip", import("zod").ZodTypeAny, {
532
+ }, "strip", z.ZodTypeAny, {
336
533
  user: {
337
534
  timestamp: string;
338
535
  };
@@ -347,7 +544,16 @@ export declare const CaptchaSolutionBody: ZodObject<{
347
544
  requestHash: string;
348
545
  };
349
546
  }>;
350
- }, "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, {
351
557
  user: string;
352
558
  dapp: string;
353
559
  requestHash: string;
@@ -366,6 +572,11 @@ export declare const CaptchaSolutionBody: ZodObject<{
366
572
  requestHash: string;
367
573
  };
368
574
  };
575
+ behavioralData?: string | undefined;
576
+ simdReadings?: string | undefined;
577
+ clientMetaData?: {
578
+ hp?: string | undefined;
579
+ } | undefined;
369
580
  }, {
370
581
  user: string;
371
582
  dapp: string;
@@ -385,23 +596,31 @@ export declare const CaptchaSolutionBody: ZodObject<{
385
596
  requestHash: string;
386
597
  };
387
598
  };
599
+ behavioralData?: string | undefined;
600
+ simdReadings?: string | undefined;
601
+ clientMetaData?: {
602
+ hp?: string | undefined;
603
+ } | undefined;
388
604
  }>;
389
605
  export type CaptchaSolutionBodyType = zInfer<typeof CaptchaSolutionBody>;
390
606
  export declare const VerifySolutionBody: ZodObject<{
391
- token: import("zod").ZodString;
392
- dappSignature: import("zod").ZodString;
607
+ token: z.ZodString;
608
+ dappSignature: z.ZodString;
393
609
  maxVerifiedTime: ZodDefault<ZodOptional<ZodNumber>>;
394
- ip: ZodOptional<import("zod").ZodString>;
395
- }, "strip", import("zod").ZodTypeAny, {
610
+ ip: ZodOptional<z.ZodString>;
611
+ email: ZodOptional<z.ZodString>;
612
+ }, "strip", z.ZodTypeAny, {
396
613
  dappSignature: string;
397
614
  maxVerifiedTime: number;
398
615
  token: string;
399
616
  ip?: string | undefined;
617
+ email?: string | undefined;
400
618
  }, {
401
619
  dappSignature: string;
402
620
  token: string;
403
621
  maxVerifiedTime?: number | undefined;
404
622
  ip?: string | undefined;
623
+ email?: string | undefined;
405
624
  }>;
406
625
  export type VerifySolutionBodyTypeInput = input<typeof VerifySolutionBody>;
407
626
  export type VerifySolutionBodyTypeOutput = output<typeof VerifySolutionBody>;
@@ -418,12 +637,20 @@ export interface ApiResponse {
418
637
  export interface VerificationResponse extends ApiResponse {
419
638
  [ApiParams.verified]: boolean;
420
639
  [ApiParams.score]?: number;
640
+ [ApiParams.reason]?: string;
421
641
  }
422
642
  export interface UpdateDetectorKeyResponse extends ApiResponse {
423
643
  data: {
424
644
  activeDetectorKeys: string[];
425
645
  };
426
646
  }
647
+ export interface UpdateDecisionMachineResponse extends ApiResponse {
648
+ data: {
649
+ scope: DecisionMachineScope;
650
+ dappAccount?: string;
651
+ updatedAt: string;
652
+ };
653
+ }
427
654
  export interface ImageVerificationResponse extends VerificationResponse {
428
655
  [ApiParams.commitmentId]?: Hash;
429
656
  }
@@ -435,66 +662,215 @@ export interface GetPowCaptchaResponse extends ApiResponse {
435
662
  [ApiParams.provider]: ChallengeSignature;
436
663
  };
437
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
+ }
438
681
  export interface GetFrictionlessCaptchaResponse extends ApiResponse {
439
- [ApiParams.captchaType]: CaptchaType.pow | CaptchaType.image;
682
+ [ApiParams.captchaType]: CaptchaType.pow | CaptchaType.image | CaptchaType.puzzle;
440
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;
441
690
  }
442
691
  export interface PowCaptchaSolutionResponse extends ApiResponse {
443
692
  [ApiParams.verified]: boolean;
444
693
  [ApiParams.error]?: ApiJsonError;
694
+ [ApiParams.escalation]?: PowCaptchaSolutionEscalation;
445
695
  }
446
696
  export declare const ServerPowCaptchaVerifyRequestBody: ZodObject<{
447
- token: import("zod").ZodString;
448
- dappSignature: import("zod").ZodString;
697
+ token: z.ZodString;
698
+ dappSignature: z.ZodString;
449
699
  verifiedTimeout: ZodDefault<ZodOptional<ZodNumber>>;
450
- ip: ZodOptional<import("zod").ZodString>;
451
- }, "strip", import("zod").ZodTypeAny, {
700
+ ip: ZodOptional<z.ZodString>;
701
+ email: ZodOptional<z.ZodString>;
702
+ }, "strip", z.ZodTypeAny, {
452
703
  dappSignature: string;
453
704
  verifiedTimeout: number;
454
705
  token: string;
455
706
  ip?: string | undefined;
707
+ email?: string | undefined;
456
708
  }, {
457
709
  dappSignature: string;
458
710
  token: string;
459
711
  verifiedTimeout?: number | undefined;
460
712
  ip?: string | undefined;
713
+ email?: string | undefined;
461
714
  }>;
462
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
+ }
463
836
  export declare const GetPowCaptchaChallengeRequestBody: ZodObject<{
464
- user: import("zod").ZodString;
465
- dapp: import("zod").ZodString;
466
- sessionId: ZodOptional<import("zod").ZodString>;
467
- }, "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, {
468
842
  user: string;
469
843
  dapp: string;
470
844
  sessionId?: string | undefined;
845
+ simdReadings?: string | undefined;
471
846
  }, {
472
847
  user: string;
473
848
  dapp: string;
474
849
  sessionId?: string | undefined;
850
+ simdReadings?: string | undefined;
475
851
  }>;
476
852
  export type GetPowCaptchaChallengeRequestBodyType = zInfer<typeof GetPowCaptchaChallengeRequestBody>;
477
853
  export type GetPowCaptchaChallengeRequestBodyTypeOutput = output<typeof GetPowCaptchaChallengeRequestBody>;
478
854
  export type ServerPowCaptchaVerifyRequestBodyType = zInfer<typeof ServerPowCaptchaVerifyRequestBody>;
479
855
  export declare const SubmitPowCaptchaSolutionBody: ZodObject<{
480
- 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}`>;
481
857
  difficulty: ZodNumber;
482
858
  signature: ZodObject<{
483
859
  user: ZodObject<{
484
- timestamp: import("zod").ZodString;
485
- }, "strip", import("zod").ZodTypeAny, {
860
+ timestamp: z.ZodString;
861
+ }, "strip", z.ZodTypeAny, {
486
862
  timestamp: string;
487
863
  }, {
488
864
  timestamp: string;
489
865
  }>;
490
866
  provider: ZodObject<{
491
- challenge: import("zod").ZodString;
492
- }, "strip", import("zod").ZodTypeAny, {
867
+ challenge: z.ZodString;
868
+ }, "strip", z.ZodTypeAny, {
493
869
  challenge: string;
494
870
  }, {
495
871
  challenge: string;
496
872
  }>;
497
- }, "strip", import("zod").ZodTypeAny, {
873
+ }, "strip", z.ZodTypeAny, {
498
874
  user: {
499
875
  timestamp: string;
500
876
  };
@@ -509,11 +885,21 @@ export declare const SubmitPowCaptchaSolutionBody: ZodObject<{
509
885
  challenge: string;
510
886
  };
511
887
  }>;
512
- user: import("zod").ZodString;
513
- dapp: import("zod").ZodString;
888
+ user: z.ZodString;
889
+ dapp: z.ZodString;
514
890
  nonce: ZodNumber;
515
891
  verifiedTimeout: ZodDefault<ZodOptional<ZodNumber>>;
516
- }, "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, {
517
903
  user: string;
518
904
  dapp: string;
519
905
  verifiedTimeout: number;
@@ -528,6 +914,12 @@ export declare const SubmitPowCaptchaSolutionBody: ZodObject<{
528
914
  challenge: string;
529
915
  };
530
916
  };
917
+ behavioralData?: string | undefined;
918
+ simdReadings?: string | undefined;
919
+ salt?: string | undefined;
920
+ clientMetaData?: {
921
+ hp?: string | undefined;
922
+ } | undefined;
531
923
  }, {
532
924
  user: string;
533
925
  dapp: string;
@@ -543,50 +935,234 @@ export declare const SubmitPowCaptchaSolutionBody: ZodObject<{
543
935
  };
544
936
  };
545
937
  verifiedTimeout?: number | undefined;
938
+ behavioralData?: string | undefined;
939
+ simdReadings?: string | undefined;
940
+ salt?: string | undefined;
941
+ clientMetaData?: {
942
+ hp?: string | undefined;
943
+ } | undefined;
546
944
  }>;
547
- export type SubmitPowCaptchaSolutionBodyType = zInfer<typeof SubmitPowCaptchaSolutionBody>;
945
+ export type SubmitPowCaptchaSolutionBodyType = input<typeof SubmitPowCaptchaSolutionBody>;
548
946
  export declare const GetFrictionlessCaptchaChallengeRequestBody: ZodObject<{
549
- dapp: import("zod").ZodString;
550
- token: import("zod").ZodString;
551
- user: import("zod").ZodString;
552
- headHash: import("zod").ZodString;
553
- }, "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, {
554
954
  user: string;
555
955
  dapp: string;
556
956
  token: string;
557
957
  headHash: string;
958
+ simdReadings?: string | undefined;
959
+ mode?: ModeEnum | undefined;
558
960
  }, {
559
961
  user: string;
560
962
  dapp: string;
561
963
  token: string;
562
964
  headHash: string;
965
+ simdReadings?: string | undefined;
966
+ mode?: ModeEnum | undefined;
563
967
  }>;
564
968
  export type GetFrictionlessCaptchaChallengeRequestBodyOutput = output<typeof GetFrictionlessCaptchaChallengeRequestBody>;
565
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>;
566
1138
  export declare const VerifyPowCaptchaSolutionBody: ZodObject<{
567
- siteKey: import("zod").ZodString;
568
- }, "strip", import("zod").ZodTypeAny, {
1139
+ siteKey: z.ZodString;
1140
+ }, "strip", z.ZodTypeAny, {
569
1141
  siteKey: string;
570
1142
  }, {
571
1143
  siteKey: string;
572
1144
  }>;
573
1145
  export declare const RegisterSitekeyBody: ZodObject<{
574
- siteKey: import("zod").ZodString;
575
- tier: import("zod").ZodNativeEnum<typeof Tier>;
1146
+ siteKey: z.ZodString;
1147
+ tier: z.ZodNativeEnum<typeof Tier>;
576
1148
  settings: ZodOptional<ZodObject<{
577
- captchaType: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof CaptchaType>>>;
578
- domains: ZodDefault<ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>>;
1149
+ captchaType: ZodDefault<ZodOptional<z.ZodNativeEnum<typeof CaptchaType>>>;
1150
+ domains: z.ZodArray<z.ZodString, "many">;
579
1151
  frictionlessThreshold: ZodDefault<ZodOptional<ZodNumber>>;
580
1152
  powDifficulty: ZodDefault<ZodOptional<ZodNumber>>;
581
1153
  imageThreshold: ZodDefault<ZodOptional<ZodNumber>>;
1154
+ imageMaxRounds: ZodDefault<ZodOptional<ZodNumber>>;
1155
+ autoBanScoreThreshold: ZodOptional<ZodNumber>;
1156
+ puzzleTolerance: ZodDefault<ZodOptional<ZodNumber>>;
582
1157
  ipValidationRules: ZodOptional<ZodObject<{
1158
+ enabled: ZodDefault<ZodOptional<z.ZodBoolean>>;
583
1159
  actions: ZodObject<{
584
- countryChangeAction: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
585
- cityChangeAction: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
586
- ispChangeAction: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
587
- distanceExceedAction: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
588
- abuseScoreExceedAction: ZodDefault<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
589
- }, "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, {
590
1166
  countryChangeAction: import("../client/settings.js").IPValidationAction;
591
1167
  cityChangeAction: import("../client/settings.js").IPValidationAction;
592
1168
  ispChangeAction: import("../client/settings.js").IPValidationAction;
@@ -601,15 +1177,15 @@ export declare const RegisterSitekeyBody: ZodObject<{
601
1177
  }>;
602
1178
  distanceThresholdKm: ZodDefault<ZodOptional<ZodNumber>>;
603
1179
  abuseScoreThreshold: ZodDefault<ZodOptional<ZodNumber>>;
604
- requireAllConditions: ZodDefault<ZodOptional<import("zod").ZodBoolean>>;
605
- countryOverrides: ZodOptional<import("zod").ZodRecord<import("zod").ZodString, ZodObject<{
1180
+ requireAllConditions: ZodDefault<ZodOptional<z.ZodBoolean>>;
1181
+ countryOverrides: ZodOptional<z.ZodRecord<z.ZodString, ZodObject<{
606
1182
  actions: ZodObject<{
607
- countryChangeAction: ZodOptional<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
608
- cityChangeAction: ZodOptional<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
609
- ispChangeAction: ZodOptional<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
610
- distanceExceedAction: ZodOptional<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
611
- abuseScoreExceedAction: ZodOptional<ZodOptional<import("zod").ZodNativeEnum<typeof import("../client/settings.js").IPValidationAction>>>;
612
- }, "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, {
613
1189
  countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
614
1190
  cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
615
1191
  ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
@@ -624,8 +1200,8 @@ export declare const RegisterSitekeyBody: ZodObject<{
624
1200
  }>;
625
1201
  distanceThresholdKm: ZodOptional<ZodNumber>;
626
1202
  abuseScoreThreshold: ZodOptional<ZodNumber>;
627
- requireAllConditions: ZodOptional<import("zod").ZodBoolean>;
628
- }, "strip", import("zod").ZodTypeAny, {
1203
+ requireAllConditions: ZodOptional<z.ZodBoolean>;
1204
+ }, "strip", z.ZodTypeAny, {
629
1205
  actions: {
630
1206
  countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
631
1207
  cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
@@ -648,8 +1224,8 @@ export declare const RegisterSitekeyBody: ZodObject<{
648
1224
  abuseScoreThreshold?: number | undefined;
649
1225
  requireAllConditions?: boolean | undefined;
650
1226
  }>>>;
651
- forceConsistentIp: ZodDefault<ZodOptional<import("zod").ZodBoolean>>;
652
- }, "strip", import("zod").ZodTypeAny, {
1227
+ forceConsistentIp: ZodDefault<ZodOptional<z.ZodBoolean>>;
1228
+ }, "strip", z.ZodTypeAny, {
653
1229
  actions: {
654
1230
  countryChangeAction: import("../client/settings.js").IPValidationAction;
655
1231
  cityChangeAction: import("../client/settings.js").IPValidationAction;
@@ -660,6 +1236,7 @@ export declare const RegisterSitekeyBody: ZodObject<{
660
1236
  distanceThresholdKm: number;
661
1237
  abuseScoreThreshold: number;
662
1238
  requireAllConditions: boolean;
1239
+ enabled: boolean;
663
1240
  forceConsistentIp: boolean;
664
1241
  countryOverrides?: Record<string, {
665
1242
  actions: {
@@ -684,6 +1261,7 @@ export declare const RegisterSitekeyBody: ZodObject<{
684
1261
  distanceThresholdKm?: number | undefined;
685
1262
  abuseScoreThreshold?: number | undefined;
686
1263
  requireAllConditions?: boolean | undefined;
1264
+ enabled?: boolean | undefined;
687
1265
  countryOverrides?: Record<string, {
688
1266
  actions: {
689
1267
  countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
@@ -698,20 +1276,20 @@ export declare const RegisterSitekeyBody: ZodObject<{
698
1276
  }> | undefined;
699
1277
  forceConsistentIp?: boolean | undefined;
700
1278
  }>>;
701
- disallowWebView: ZodOptional<ZodDefault<ZodOptional<import("zod").ZodBoolean>>>;
1279
+ disallowWebView: ZodOptional<ZodDefault<ZodOptional<z.ZodBoolean>>>;
702
1280
  contextAware: ZodOptional<ZodObject<{
703
- enabled: ZodDefault<ZodOptional<import("zod").ZodBoolean>>;
704
- contexts: import("zod").ZodRecord<import("zod").ZodEnum<[import("../client/settings.js").ContextType.Default, import("../client/settings.js").ContextType.Webview]>, ZodObject<{
705
- 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>;
706
1284
  threshold: ZodDefault<ZodOptional<ZodNumber>>;
707
- }, "strip", import("zod").ZodTypeAny, {
1285
+ }, "strip", z.ZodTypeAny, {
708
1286
  type: import("../client/settings.js").ContextType;
709
1287
  threshold: number;
710
1288
  }, {
711
1289
  type: import("../client/settings.js").ContextType;
712
1290
  threshold?: number | undefined;
713
1291
  }>>;
714
- }, "strip", import("zod").ZodTypeAny, {
1292
+ }, "strip", z.ZodTypeAny, {
715
1293
  enabled: boolean;
716
1294
  contexts: Partial<Record<import("../client/settings.js").ContextType, {
717
1295
  type: import("../client/settings.js").ContextType;
@@ -724,12 +1302,101 @@ export declare const RegisterSitekeyBody: ZodObject<{
724
1302
  }>>;
725
1303
  enabled?: boolean | undefined;
726
1304
  }>>;
727
- }, "strip", import("zod").ZodTypeAny, {
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, {
728
1392
  captchaType: CaptchaType;
729
1393
  domains: string[];
730
1394
  frictionlessThreshold: number;
731
1395
  powDifficulty: number;
732
1396
  imageThreshold: number;
1397
+ imageMaxRounds: number;
1398
+ puzzleTolerance: number;
1399
+ autoBanScoreThreshold?: number | undefined;
733
1400
  ipValidationRules?: {
734
1401
  actions: {
735
1402
  countryChangeAction: import("../client/settings.js").IPValidationAction;
@@ -741,6 +1408,7 @@ export declare const RegisterSitekeyBody: ZodObject<{
741
1408
  distanceThresholdKm: number;
742
1409
  abuseScoreThreshold: number;
743
1410
  requireAllConditions: boolean;
1411
+ enabled: boolean;
744
1412
  forceConsistentIp: boolean;
745
1413
  countryOverrides?: Record<string, {
746
1414
  actions: {
@@ -763,12 +1431,583 @@ export declare const RegisterSitekeyBody: ZodObject<{
763
1431
  threshold: number;
764
1432
  }>>;
765
1433
  } | undefined;
766
- }, {
767
- captchaType?: CaptchaType | undefined;
768
- domains?: string[] | 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;
1772
+ ispChangeAction: import("../client/settings.js").IPValidationAction;
1773
+ distanceExceedAction: import("../client/settings.js").IPValidationAction;
1774
+ abuseScoreExceedAction: import("../client/settings.js").IPValidationAction;
1775
+ };
1776
+ distanceThresholdKm: number;
1777
+ abuseScoreThreshold: number;
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;
1952
+ forceConsistentIp: boolean;
1953
+ countryOverrides?: Record<string, {
1954
+ actions: {
1955
+ countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1956
+ cityChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1957
+ ispChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
1958
+ distanceExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1959
+ abuseScoreExceedAction?: import("../client/settings.js").IPValidationAction | undefined;
1960
+ };
1961
+ distanceThresholdKm?: number | undefined;
1962
+ abuseScoreThreshold?: number | undefined;
1963
+ requireAllConditions?: boolean | undefined;
1964
+ }> | undefined;
1965
+ } | undefined;
1966
+ disallowWebView?: boolean | undefined;
1967
+ contextAware?: {
1968
+ enabled: boolean;
1969
+ contexts: Partial<Record<import("../client/settings.js").ContextType, {
1970
+ type: import("../client/settings.js").ContextType;
1971
+ threshold: number;
1972
+ }>>;
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;
2002
+ }, {
2003
+ domains: string[];
2004
+ captchaType?: CaptchaType | undefined;
769
2005
  frictionlessThreshold?: number | undefined;
770
2006
  powDifficulty?: number | undefined;
771
2007
  imageThreshold?: number | undefined;
2008
+ imageMaxRounds?: number | undefined;
2009
+ autoBanScoreThreshold?: number | undefined;
2010
+ puzzleTolerance?: number | undefined;
772
2011
  ipValidationRules?: {
773
2012
  actions: {
774
2013
  countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
@@ -780,6 +2019,7 @@ export declare const RegisterSitekeyBody: ZodObject<{
780
2019
  distanceThresholdKm?: number | undefined;
781
2020
  abuseScoreThreshold?: number | undefined;
782
2021
  requireAllConditions?: boolean | undefined;
2022
+ enabled?: boolean | undefined;
783
2023
  countryOverrides?: Record<string, {
784
2024
  actions: {
785
2025
  countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
@@ -802,8 +2042,36 @@ export declare const RegisterSitekeyBody: ZodObject<{
802
2042
  }>>;
803
2043
  enabled?: boolean | undefined;
804
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;
805
2073
  }>>;
806
- }, "strip", import("zod").ZodTypeAny, {
2074
+ }, "strip", z.ZodTypeAny, {
807
2075
  siteKey: string;
808
2076
  tier: Tier;
809
2077
  settings?: {
@@ -812,6 +2080,9 @@ export declare const RegisterSitekeyBody: ZodObject<{
812
2080
  frictionlessThreshold: number;
813
2081
  powDifficulty: number;
814
2082
  imageThreshold: number;
2083
+ imageMaxRounds: number;
2084
+ puzzleTolerance: number;
2085
+ autoBanScoreThreshold?: number | undefined;
815
2086
  ipValidationRules?: {
816
2087
  actions: {
817
2088
  countryChangeAction: import("../client/settings.js").IPValidationAction;
@@ -823,6 +2094,7 @@ export declare const RegisterSitekeyBody: ZodObject<{
823
2094
  distanceThresholdKm: number;
824
2095
  abuseScoreThreshold: number;
825
2096
  requireAllConditions: boolean;
2097
+ enabled: boolean;
826
2098
  forceConsistentIp: boolean;
827
2099
  countryOverrides?: Record<string, {
828
2100
  actions: {
@@ -845,16 +2117,47 @@ export declare const RegisterSitekeyBody: ZodObject<{
845
2117
  threshold: number;
846
2118
  }>>;
847
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;
848
2148
  } | undefined;
849
2149
  }, {
850
2150
  siteKey: string;
851
2151
  tier: Tier;
852
2152
  settings?: {
2153
+ domains: string[];
853
2154
  captchaType?: CaptchaType | undefined;
854
- domains?: string[] | undefined;
855
2155
  frictionlessThreshold?: number | undefined;
856
2156
  powDifficulty?: number | undefined;
857
2157
  imageThreshold?: number | undefined;
2158
+ imageMaxRounds?: number | undefined;
2159
+ autoBanScoreThreshold?: number | undefined;
2160
+ puzzleTolerance?: number | undefined;
858
2161
  ipValidationRules?: {
859
2162
  actions: {
860
2163
  countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
@@ -866,6 +2169,7 @@ export declare const RegisterSitekeyBody: ZodObject<{
866
2169
  distanceThresholdKm?: number | undefined;
867
2170
  abuseScoreThreshold?: number | undefined;
868
2171
  requireAllConditions?: boolean | undefined;
2172
+ enabled?: boolean | undefined;
869
2173
  countryOverrides?: Record<string, {
870
2174
  actions: {
871
2175
  countryChangeAction?: import("../client/settings.js").IPValidationAction | undefined;
@@ -888,19 +2192,258 @@ export declare const RegisterSitekeyBody: ZodObject<{
888
2192
  }>>;
889
2193
  enabled?: boolean | undefined;
890
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;
891
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;
892
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">;
893
2239
  export declare const UpdateDetectorKeyBody: ZodObject<{
894
- detectorKey: import("zod").ZodString;
895
- }, "strip", import("zod").ZodTypeAny, {
2240
+ detectorKey: z.ZodString;
2241
+ }, "strip", z.ZodTypeAny, {
896
2242
  detectorKey: string;
897
2243
  }, {
898
2244
  detectorKey: string;
899
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>;
900
2443
  export declare const RemoveDetectorKeyBodySpec: ZodObject<{
901
- detectorKey: import("zod").ZodString;
2444
+ detectorKey: z.ZodString;
902
2445
  expirationInSeconds: ZodOptional<ZodNumber>;
903
- }, "strip", import("zod").ZodTypeAny, {
2446
+ }, "strip", z.ZodTypeAny, {
904
2447
  detectorKey: string;
905
2448
  expirationInSeconds?: number | undefined;
906
2449
  }, {
@@ -910,30 +2453,34 @@ export declare const RemoveDetectorKeyBodySpec: ZodObject<{
910
2453
  export type RemoveDetectorKeyBodyInput = input<typeof RemoveDetectorKeyBodySpec>;
911
2454
  export type RemoveDetectorKeyBodyOutput = output<typeof RemoveDetectorKeyBodySpec>;
912
2455
  export declare const ToggleMaintenanceModeBody: ZodObject<{
913
- enabled: import("zod").ZodBoolean;
914
- }, "strip", import("zod").ZodTypeAny, {
2456
+ enabled: z.ZodBoolean;
2457
+ }, "strip", z.ZodTypeAny, {
915
2458
  enabled: boolean;
916
2459
  }, {
917
2460
  enabled: boolean;
918
2461
  }>;
919
2462
  export type ToggleMaintenanceModeBodyOutput = output<typeof ToggleMaintenanceModeBody>;
2463
+ export type UpdateDecisionMachineBodyTypeOutput = output<typeof UpdateDecisionMachineBody>;
920
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>;
921
2468
  export declare const ProsopoCaptchaCountConfigSchema: ZodObject<{
922
2469
  solved: ZodDefault<ZodOptional<ZodObject<{
923
2470
  count: ZodNumber;
924
- }, "strip", import("zod").ZodTypeAny, {
2471
+ }, "strip", z.ZodTypeAny, {
925
2472
  count: number;
926
2473
  }, {
927
2474
  count: number;
928
2475
  }>>>;
929
2476
  unsolved: ZodDefault<ZodOptional<ZodObject<{
930
2477
  count: ZodNumber;
931
- }, "strip", import("zod").ZodTypeAny, {
2478
+ }, "strip", z.ZodTypeAny, {
932
2479
  count: number;
933
2480
  }, {
934
2481
  count: number;
935
2482
  }>>>;
936
- }, "strip", import("zod").ZodTypeAny, {
2483
+ }, "strip", z.ZodTypeAny, {
937
2484
  solved: {
938
2485
  count: number;
939
2486
  };
@@ -955,26 +2502,26 @@ export declare enum BlockRuleType {
955
2502
  userAccount = "userAccount"
956
2503
  }
957
2504
  export declare const BlockRuleSpec: ZodObject<{
958
- global: import("zod").ZodBoolean;
959
- hardBlock: import("zod").ZodBoolean;
960
- type: import("zod").ZodNativeEnum<typeof BlockRuleType>;
961
- dappAccount: ZodOptional<import("zod").ZodString>;
2505
+ global: z.ZodBoolean;
2506
+ hardBlock: z.ZodBoolean;
2507
+ type: z.ZodNativeEnum<typeof BlockRuleType>;
2508
+ dappAccount: ZodOptional<z.ZodString>;
962
2509
  captchaConfig: ZodOptional<ZodObject<{
963
2510
  solved: ZodDefault<ZodOptional<ZodObject<{
964
2511
  count: ZodNumber;
965
- }, "strip", import("zod").ZodTypeAny, {
2512
+ }, "strip", z.ZodTypeAny, {
966
2513
  count: number;
967
2514
  }, {
968
2515
  count: number;
969
2516
  }>>>;
970
2517
  unsolved: ZodDefault<ZodOptional<ZodObject<{
971
2518
  count: ZodNumber;
972
- }, "strip", import("zod").ZodTypeAny, {
2519
+ }, "strip", z.ZodTypeAny, {
973
2520
  count: number;
974
2521
  }, {
975
2522
  count: number;
976
2523
  }>>>;
977
- }, "strip", import("zod").ZodTypeAny, {
2524
+ }, "strip", z.ZodTypeAny, {
978
2525
  solved: {
979
2526
  count: number;
980
2527
  };
@@ -989,7 +2536,7 @@ export declare const BlockRuleSpec: ZodObject<{
989
2536
  count: number;
990
2537
  } | undefined;
991
2538
  }>>;
992
- }, "strip", import("zod").ZodTypeAny, {
2539
+ }, "strip", z.ZodTypeAny, {
993
2540
  type: BlockRuleType;
994
2541
  global: boolean;
995
2542
  hardBlock: boolean;
@@ -1018,8 +2565,8 @@ export declare const BlockRuleSpec: ZodObject<{
1018
2565
  }>;
1019
2566
  export type BlockRule = zInfer<typeof BlockRuleSpec>;
1020
2567
  export declare const DappDomainRequestBody: ZodObject<{
1021
- dapp: import("zod").ZodString;
1022
- }, "strip", import("zod").ZodTypeAny, {
2568
+ dapp: z.ZodString;
2569
+ }, "strip", z.ZodTypeAny, {
1023
2570
  dapp: string;
1024
2571
  }, {
1025
2572
  dapp: string;