@prosopo/types 0.3.39 → 0.3.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/config/config.cjs +58 -3
- package/dist/cjs/config/index.cjs +9 -0
- package/dist/cjs/index.cjs +10 -0
- package/dist/cjs/provider/api.cjs +24 -2
- package/dist/cjs/provider/index.cjs +1 -0
- package/dist/config/config.d.ts +394 -108
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +46 -2
- package/dist/config/config.js.map +1 -1
- package/dist/config/network.d.ts +17 -17
- package/dist/contract/artifacts.d.ts +239 -239
- package/dist/datasets/captcha.d.ts +75 -40
- package/dist/datasets/captcha.d.ts.map +1 -1
- package/dist/datasets/dataset.d.ts +109 -40
- package/dist/datasets/dataset.d.ts.map +1 -1
- package/dist/procaptcha/manager.d.ts +6 -6
- package/dist/provider/api.d.ts +20 -2
- package/dist/provider/api.d.ts.map +1 -1
- package/dist/provider/api.js +9 -1
- package/dist/provider/api.js.map +1 -1
- package/package.json +7 -5
package/dist/config/config.d.ts
CHANGED
|
@@ -5,6 +5,14 @@ import { infer as zInfer } from 'zod';
|
|
|
5
5
|
export declare const DatabaseTypes: import("zod").ZodEnum<["mongo", "mongoMemory"]>;
|
|
6
6
|
export declare const EnvironmentTypesSchema: import("zod").ZodEnum<["development", "staging", "production"]>;
|
|
7
7
|
export type EnvironmentTypes = zInfer<typeof EnvironmentTypesSchema>;
|
|
8
|
+
export declare const DEFAULT_IMAGE_CAPTCHA_TIMEOUT: number;
|
|
9
|
+
export declare const DEFAULT_IMAGE_CAPTCHA_SOLUTION_TIMEOUT: number;
|
|
10
|
+
export declare const DEFAULT_IMAGE_CAPTCHA_VERIFIED_TIMEOUT: number;
|
|
11
|
+
export declare const DEFAULT_IMAGE_MAX_VERIFIED_TIME_CACHED: number;
|
|
12
|
+
export declare const DEFAULT_POW_CAPTCHA_SOLUTION_TIMEOUT: number;
|
|
13
|
+
export declare const DEFAULT_POW_CAPTCHA_VERIFIED_TIMEOUT: number;
|
|
14
|
+
export declare const DEFAULT_POW_CAPTCHA_CACHED_TIMEOUT: number;
|
|
15
|
+
export declare const DEFAULT_MAX_VERIFIED_TIME_CONTRACT: number;
|
|
8
16
|
export declare const DatabaseConfigSchema: import("zod").ZodRecord<import("zod").ZodEnum<["development", "staging", "production"]>, import("zod").ZodObject<{
|
|
9
17
|
type: import("zod").ZodString;
|
|
10
18
|
endpoint: import("zod").ZodString;
|
|
@@ -53,7 +61,7 @@ export declare const ProsopoBaseConfigSchema: import("zod").ZodObject<{
|
|
|
53
61
|
password?: string | undefined;
|
|
54
62
|
}>;
|
|
55
63
|
}, "strip", import("zod").ZodTypeAny, {
|
|
56
|
-
logLevel: "
|
|
64
|
+
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
57
65
|
defaultEnvironment: "development" | "staging" | "production";
|
|
58
66
|
defaultNetwork: "development" | "rococo" | "shiden";
|
|
59
67
|
account: {
|
|
@@ -67,11 +75,11 @@ export declare const ProsopoBaseConfigSchema: import("zod").ZodObject<{
|
|
|
67
75
|
secret?: string | undefined;
|
|
68
76
|
password?: string | undefined;
|
|
69
77
|
};
|
|
70
|
-
logLevel?: "
|
|
78
|
+
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
71
79
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
72
80
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
73
81
|
}>;
|
|
74
|
-
export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<{
|
|
82
|
+
export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<{
|
|
75
83
|
logLevel: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
76
84
|
defaultEnvironment: import("zod").ZodDefault<import("zod").ZodEnum<["development", "staging", "production"]>>;
|
|
77
85
|
defaultNetwork: import("zod").ZodDefault<import("zod").ZodEnum<["development", "rococo", "shiden"]>>;
|
|
@@ -88,50 +96,51 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<{
|
|
|
88
96
|
secret?: string | undefined;
|
|
89
97
|
password?: string | undefined;
|
|
90
98
|
}>;
|
|
99
|
+
}, {
|
|
91
100
|
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
101
|
+
endpoint: import("zod").ZodString;
|
|
92
102
|
contract: import("zod").ZodObject<{
|
|
93
103
|
address: import("zod").ZodString;
|
|
94
104
|
name: import("zod").ZodString;
|
|
95
105
|
}, "strip", import("zod").ZodTypeAny, {
|
|
96
|
-
name: string;
|
|
97
106
|
address: string;
|
|
98
|
-
}, {
|
|
99
107
|
name: string;
|
|
108
|
+
}, {
|
|
100
109
|
address: string;
|
|
110
|
+
name: string;
|
|
101
111
|
}>;
|
|
102
|
-
endpoint: import("zod").ZodString;
|
|
103
112
|
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
104
113
|
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
105
114
|
}, "strip", import("zod").ZodTypeAny, {
|
|
115
|
+
endpoint: string;
|
|
106
116
|
contract: {
|
|
107
|
-
name: string;
|
|
108
117
|
address: string;
|
|
118
|
+
name: string;
|
|
109
119
|
};
|
|
110
|
-
endpoint: string;
|
|
111
120
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
112
121
|
ss58Format: number;
|
|
113
122
|
}, {
|
|
123
|
+
endpoint: string;
|
|
114
124
|
contract: {
|
|
115
|
-
name: string;
|
|
116
125
|
address: string;
|
|
126
|
+
name: string;
|
|
117
127
|
};
|
|
118
|
-
endpoint: string;
|
|
119
128
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
120
129
|
ss58Format?: number | undefined;
|
|
121
130
|
}>>, Record<"development" | "rococo" | "shiden", {
|
|
131
|
+
endpoint: string;
|
|
122
132
|
contract: {
|
|
123
|
-
name: string;
|
|
124
133
|
address: string;
|
|
134
|
+
name: string;
|
|
125
135
|
};
|
|
126
|
-
endpoint: string;
|
|
127
136
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
128
137
|
ss58Format: number;
|
|
129
138
|
}>, Record<string, {
|
|
139
|
+
endpoint: string;
|
|
130
140
|
contract: {
|
|
131
|
-
name: string;
|
|
132
141
|
address: string;
|
|
142
|
+
name: string;
|
|
133
143
|
};
|
|
134
|
-
endpoint: string;
|
|
135
144
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
136
145
|
ss58Format?: number | undefined;
|
|
137
146
|
}>>>;
|
|
@@ -152,8 +161,8 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<{
|
|
|
152
161
|
authSource: string;
|
|
153
162
|
}>>>;
|
|
154
163
|
devOnlyWatchEvents: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
155
|
-
}
|
|
156
|
-
logLevel: "
|
|
164
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
165
|
+
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
157
166
|
defaultEnvironment: "development" | "staging" | "production";
|
|
158
167
|
defaultNetwork: "development" | "rococo" | "shiden";
|
|
159
168
|
account: {
|
|
@@ -162,11 +171,11 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<{
|
|
|
162
171
|
password?: string | undefined;
|
|
163
172
|
};
|
|
164
173
|
networks: Record<"development" | "rococo" | "shiden", {
|
|
174
|
+
endpoint: string;
|
|
165
175
|
contract: {
|
|
166
|
-
name: string;
|
|
167
176
|
address: string;
|
|
177
|
+
name: string;
|
|
168
178
|
};
|
|
169
|
-
endpoint: string;
|
|
170
179
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
171
180
|
ss58Format: number;
|
|
172
181
|
}>;
|
|
@@ -183,15 +192,15 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<{
|
|
|
183
192
|
secret?: string | undefined;
|
|
184
193
|
password?: string | undefined;
|
|
185
194
|
};
|
|
186
|
-
logLevel?: "
|
|
195
|
+
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
187
196
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
188
197
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
189
198
|
networks?: Record<string, {
|
|
199
|
+
endpoint: string;
|
|
190
200
|
contract: {
|
|
191
|
-
name: string;
|
|
192
201
|
address: string;
|
|
202
|
+
name: string;
|
|
193
203
|
};
|
|
194
|
-
endpoint: string;
|
|
195
204
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
196
205
|
ss58Format?: number | undefined;
|
|
197
206
|
}> | undefined;
|
|
@@ -261,7 +270,7 @@ export declare const ProsopoCaptchaSolutionConfigSchema: import("zod").ZodObject
|
|
|
261
270
|
solutionWinningPercentage: number;
|
|
262
271
|
captchaBlockRecency: number;
|
|
263
272
|
}>;
|
|
264
|
-
export declare const ProsopoClientConfigSchema: import("zod").ZodObject<{
|
|
273
|
+
export declare const ProsopoClientConfigSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
|
|
265
274
|
logLevel: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
266
275
|
defaultEnvironment: import("zod").ZodDefault<import("zod").ZodEnum<["development", "staging", "production"]>>;
|
|
267
276
|
defaultNetwork: import("zod").ZodDefault<import("zod").ZodEnum<["development", "rococo", "shiden"]>>;
|
|
@@ -278,50 +287,51 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<{
|
|
|
278
287
|
secret?: string | undefined;
|
|
279
288
|
password?: string | undefined;
|
|
280
289
|
}>;
|
|
290
|
+
}, {
|
|
281
291
|
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
292
|
+
endpoint: import("zod").ZodString;
|
|
282
293
|
contract: import("zod").ZodObject<{
|
|
283
294
|
address: import("zod").ZodString;
|
|
284
295
|
name: import("zod").ZodString;
|
|
285
296
|
}, "strip", import("zod").ZodTypeAny, {
|
|
286
|
-
name: string;
|
|
287
297
|
address: string;
|
|
288
|
-
}, {
|
|
289
298
|
name: string;
|
|
299
|
+
}, {
|
|
290
300
|
address: string;
|
|
301
|
+
name: string;
|
|
291
302
|
}>;
|
|
292
|
-
endpoint: import("zod").ZodString;
|
|
293
303
|
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
294
304
|
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
295
305
|
}, "strip", import("zod").ZodTypeAny, {
|
|
306
|
+
endpoint: string;
|
|
296
307
|
contract: {
|
|
297
|
-
name: string;
|
|
298
308
|
address: string;
|
|
309
|
+
name: string;
|
|
299
310
|
};
|
|
300
|
-
endpoint: string;
|
|
301
311
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
302
312
|
ss58Format: number;
|
|
303
313
|
}, {
|
|
314
|
+
endpoint: string;
|
|
304
315
|
contract: {
|
|
305
|
-
name: string;
|
|
306
316
|
address: string;
|
|
317
|
+
name: string;
|
|
307
318
|
};
|
|
308
|
-
endpoint: string;
|
|
309
319
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
310
320
|
ss58Format?: number | undefined;
|
|
311
321
|
}>>, Record<"development" | "rococo" | "shiden", {
|
|
322
|
+
endpoint: string;
|
|
312
323
|
contract: {
|
|
313
|
-
name: string;
|
|
314
324
|
address: string;
|
|
325
|
+
name: string;
|
|
315
326
|
};
|
|
316
|
-
endpoint: string;
|
|
317
327
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
318
328
|
ss58Format: number;
|
|
319
329
|
}>, Record<string, {
|
|
330
|
+
endpoint: string;
|
|
320
331
|
contract: {
|
|
321
|
-
name: string;
|
|
322
332
|
address: string;
|
|
333
|
+
name: string;
|
|
323
334
|
};
|
|
324
|
-
endpoint: string;
|
|
325
335
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
326
336
|
ss58Format?: number | undefined;
|
|
327
337
|
}>>>;
|
|
@@ -342,13 +352,14 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<{
|
|
|
342
352
|
authSource: string;
|
|
343
353
|
}>>>;
|
|
344
354
|
devOnlyWatchEvents: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
355
|
+
}>, {
|
|
345
356
|
userAccountAddress: import("zod").ZodOptional<import("zod").ZodString>;
|
|
346
357
|
web2: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
347
358
|
solutionThreshold: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
348
359
|
dappName: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
349
360
|
serverUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
350
|
-
}
|
|
351
|
-
logLevel: "
|
|
361
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
362
|
+
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
352
363
|
defaultEnvironment: "development" | "staging" | "production";
|
|
353
364
|
defaultNetwork: "development" | "rococo" | "shiden";
|
|
354
365
|
account: {
|
|
@@ -357,11 +368,11 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<{
|
|
|
357
368
|
password?: string | undefined;
|
|
358
369
|
};
|
|
359
370
|
networks: Record<"development" | "rococo" | "shiden", {
|
|
371
|
+
endpoint: string;
|
|
360
372
|
contract: {
|
|
361
|
-
name: string;
|
|
362
373
|
address: string;
|
|
374
|
+
name: string;
|
|
363
375
|
};
|
|
364
|
-
endpoint: string;
|
|
365
376
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
366
377
|
ss58Format: number;
|
|
367
378
|
}>;
|
|
@@ -383,15 +394,15 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<{
|
|
|
383
394
|
secret?: string | undefined;
|
|
384
395
|
password?: string | undefined;
|
|
385
396
|
};
|
|
386
|
-
logLevel?: "
|
|
397
|
+
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
387
398
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
388
399
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
389
400
|
networks?: Record<string, {
|
|
401
|
+
endpoint: string;
|
|
390
402
|
contract: {
|
|
391
|
-
name: string;
|
|
392
403
|
address: string;
|
|
404
|
+
name: string;
|
|
393
405
|
};
|
|
394
|
-
endpoint: string;
|
|
395
406
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
396
407
|
ss58Format?: number | undefined;
|
|
397
408
|
}> | undefined;
|
|
@@ -408,7 +419,77 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<{
|
|
|
408
419
|
dappName?: string | undefined;
|
|
409
420
|
serverUrl?: string | undefined;
|
|
410
421
|
}>;
|
|
411
|
-
export declare const
|
|
422
|
+
export declare const CaptchaTimeoutSchema: import("zod").ZodDefault<import("zod").ZodObject<{
|
|
423
|
+
image: import("zod").ZodDefault<import("zod").ZodObject<{
|
|
424
|
+
challengeTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
425
|
+
solutionTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
426
|
+
verifiedTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
427
|
+
cachedTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
428
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
429
|
+
challengeTimeout: number;
|
|
430
|
+
solutionTimeout: number;
|
|
431
|
+
verifiedTimeout: number;
|
|
432
|
+
cachedTimeout: number;
|
|
433
|
+
}, {
|
|
434
|
+
challengeTimeout?: number | undefined;
|
|
435
|
+
solutionTimeout?: number | undefined;
|
|
436
|
+
verifiedTimeout?: number | undefined;
|
|
437
|
+
cachedTimeout?: number | undefined;
|
|
438
|
+
}>>;
|
|
439
|
+
pow: import("zod").ZodDefault<import("zod").ZodObject<{
|
|
440
|
+
verifiedTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
441
|
+
solutionTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
442
|
+
cachedTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
443
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
444
|
+
solutionTimeout: number;
|
|
445
|
+
verifiedTimeout: number;
|
|
446
|
+
cachedTimeout: number;
|
|
447
|
+
}, {
|
|
448
|
+
solutionTimeout?: number | undefined;
|
|
449
|
+
verifiedTimeout?: number | undefined;
|
|
450
|
+
cachedTimeout?: number | undefined;
|
|
451
|
+
}>>;
|
|
452
|
+
contract: import("zod").ZodDefault<import("zod").ZodObject<{
|
|
453
|
+
maxVerifiedTime: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
454
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
455
|
+
maxVerifiedTime: number;
|
|
456
|
+
}, {
|
|
457
|
+
maxVerifiedTime?: number | undefined;
|
|
458
|
+
}>>;
|
|
459
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
460
|
+
image: {
|
|
461
|
+
challengeTimeout: number;
|
|
462
|
+
solutionTimeout: number;
|
|
463
|
+
verifiedTimeout: number;
|
|
464
|
+
cachedTimeout: number;
|
|
465
|
+
};
|
|
466
|
+
contract: {
|
|
467
|
+
maxVerifiedTime: number;
|
|
468
|
+
};
|
|
469
|
+
pow: {
|
|
470
|
+
solutionTimeout: number;
|
|
471
|
+
verifiedTimeout: number;
|
|
472
|
+
cachedTimeout: number;
|
|
473
|
+
};
|
|
474
|
+
}, {
|
|
475
|
+
image?: {
|
|
476
|
+
challengeTimeout?: number | undefined;
|
|
477
|
+
solutionTimeout?: number | undefined;
|
|
478
|
+
verifiedTimeout?: number | undefined;
|
|
479
|
+
cachedTimeout?: number | undefined;
|
|
480
|
+
} | undefined;
|
|
481
|
+
contract?: {
|
|
482
|
+
maxVerifiedTime?: number | undefined;
|
|
483
|
+
} | undefined;
|
|
484
|
+
pow?: {
|
|
485
|
+
solutionTimeout?: number | undefined;
|
|
486
|
+
verifiedTimeout?: number | undefined;
|
|
487
|
+
cachedTimeout?: number | undefined;
|
|
488
|
+
} | undefined;
|
|
489
|
+
}>>;
|
|
490
|
+
export type CaptchaTimeoutInput = input<typeof CaptchaTimeoutSchema>;
|
|
491
|
+
export type CaptchaTimeoutOutput = output<typeof CaptchaTimeoutSchema>;
|
|
492
|
+
export declare const ProsopoServerConfigSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
|
|
412
493
|
logLevel: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
413
494
|
defaultEnvironment: import("zod").ZodDefault<import("zod").ZodEnum<["development", "staging", "production"]>>;
|
|
414
495
|
defaultNetwork: import("zod").ZodDefault<import("zod").ZodEnum<["development", "rococo", "shiden"]>>;
|
|
@@ -425,50 +506,51 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<{
|
|
|
425
506
|
secret?: string | undefined;
|
|
426
507
|
password?: string | undefined;
|
|
427
508
|
}>;
|
|
509
|
+
}, {
|
|
428
510
|
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
511
|
+
endpoint: import("zod").ZodString;
|
|
429
512
|
contract: import("zod").ZodObject<{
|
|
430
513
|
address: import("zod").ZodString;
|
|
431
514
|
name: import("zod").ZodString;
|
|
432
515
|
}, "strip", import("zod").ZodTypeAny, {
|
|
433
|
-
name: string;
|
|
434
516
|
address: string;
|
|
435
|
-
}, {
|
|
436
517
|
name: string;
|
|
518
|
+
}, {
|
|
437
519
|
address: string;
|
|
520
|
+
name: string;
|
|
438
521
|
}>;
|
|
439
|
-
endpoint: import("zod").ZodString;
|
|
440
522
|
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
441
523
|
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
442
524
|
}, "strip", import("zod").ZodTypeAny, {
|
|
525
|
+
endpoint: string;
|
|
443
526
|
contract: {
|
|
444
|
-
name: string;
|
|
445
527
|
address: string;
|
|
528
|
+
name: string;
|
|
446
529
|
};
|
|
447
|
-
endpoint: string;
|
|
448
530
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
449
531
|
ss58Format: number;
|
|
450
532
|
}, {
|
|
533
|
+
endpoint: string;
|
|
451
534
|
contract: {
|
|
452
|
-
name: string;
|
|
453
535
|
address: string;
|
|
536
|
+
name: string;
|
|
454
537
|
};
|
|
455
|
-
endpoint: string;
|
|
456
538
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
457
539
|
ss58Format?: number | undefined;
|
|
458
540
|
}>>, Record<"development" | "rococo" | "shiden", {
|
|
541
|
+
endpoint: string;
|
|
459
542
|
contract: {
|
|
460
|
-
name: string;
|
|
461
543
|
address: string;
|
|
544
|
+
name: string;
|
|
462
545
|
};
|
|
463
|
-
endpoint: string;
|
|
464
546
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
465
547
|
ss58Format: number;
|
|
466
548
|
}>, Record<string, {
|
|
549
|
+
endpoint: string;
|
|
467
550
|
contract: {
|
|
468
|
-
name: string;
|
|
469
551
|
address: string;
|
|
552
|
+
name: string;
|
|
470
553
|
};
|
|
471
|
-
endpoint: string;
|
|
472
554
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
473
555
|
ss58Format?: number | undefined;
|
|
474
556
|
}>>>;
|
|
@@ -489,13 +571,84 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<{
|
|
|
489
571
|
authSource: string;
|
|
490
572
|
}>>>;
|
|
491
573
|
devOnlyWatchEvents: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
574
|
+
}>, {
|
|
492
575
|
userAccountAddress: import("zod").ZodOptional<import("zod").ZodString>;
|
|
493
576
|
web2: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
494
577
|
solutionThreshold: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
495
578
|
dappName: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
496
579
|
serverUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
497
|
-
}
|
|
498
|
-
|
|
580
|
+
}>, {
|
|
581
|
+
serverUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
582
|
+
timeouts: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodObject<{
|
|
583
|
+
image: import("zod").ZodDefault<import("zod").ZodObject<{
|
|
584
|
+
challengeTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
585
|
+
solutionTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
586
|
+
verifiedTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
587
|
+
cachedTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
588
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
589
|
+
challengeTimeout: number;
|
|
590
|
+
solutionTimeout: number;
|
|
591
|
+
verifiedTimeout: number;
|
|
592
|
+
cachedTimeout: number;
|
|
593
|
+
}, {
|
|
594
|
+
challengeTimeout?: number | undefined;
|
|
595
|
+
solutionTimeout?: number | undefined;
|
|
596
|
+
verifiedTimeout?: number | undefined;
|
|
597
|
+
cachedTimeout?: number | undefined;
|
|
598
|
+
}>>;
|
|
599
|
+
pow: import("zod").ZodDefault<import("zod").ZodObject<{
|
|
600
|
+
verifiedTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
601
|
+
solutionTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
602
|
+
cachedTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
603
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
604
|
+
solutionTimeout: number;
|
|
605
|
+
verifiedTimeout: number;
|
|
606
|
+
cachedTimeout: number;
|
|
607
|
+
}, {
|
|
608
|
+
solutionTimeout?: number | undefined;
|
|
609
|
+
verifiedTimeout?: number | undefined;
|
|
610
|
+
cachedTimeout?: number | undefined;
|
|
611
|
+
}>>;
|
|
612
|
+
contract: import("zod").ZodDefault<import("zod").ZodObject<{
|
|
613
|
+
maxVerifiedTime: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
614
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
615
|
+
maxVerifiedTime: number;
|
|
616
|
+
}, {
|
|
617
|
+
maxVerifiedTime?: number | undefined;
|
|
618
|
+
}>>;
|
|
619
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
620
|
+
image: {
|
|
621
|
+
challengeTimeout: number;
|
|
622
|
+
solutionTimeout: number;
|
|
623
|
+
verifiedTimeout: number;
|
|
624
|
+
cachedTimeout: number;
|
|
625
|
+
};
|
|
626
|
+
contract: {
|
|
627
|
+
maxVerifiedTime: number;
|
|
628
|
+
};
|
|
629
|
+
pow: {
|
|
630
|
+
solutionTimeout: number;
|
|
631
|
+
verifiedTimeout: number;
|
|
632
|
+
cachedTimeout: number;
|
|
633
|
+
};
|
|
634
|
+
}, {
|
|
635
|
+
image?: {
|
|
636
|
+
challengeTimeout?: number | undefined;
|
|
637
|
+
solutionTimeout?: number | undefined;
|
|
638
|
+
verifiedTimeout?: number | undefined;
|
|
639
|
+
cachedTimeout?: number | undefined;
|
|
640
|
+
} | undefined;
|
|
641
|
+
contract?: {
|
|
642
|
+
maxVerifiedTime?: number | undefined;
|
|
643
|
+
} | undefined;
|
|
644
|
+
pow?: {
|
|
645
|
+
solutionTimeout?: number | undefined;
|
|
646
|
+
verifiedTimeout?: number | undefined;
|
|
647
|
+
cachedTimeout?: number | undefined;
|
|
648
|
+
} | undefined;
|
|
649
|
+
}>>>>;
|
|
650
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
651
|
+
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
499
652
|
defaultEnvironment: "development" | "staging" | "production";
|
|
500
653
|
defaultNetwork: "development" | "rococo" | "shiden";
|
|
501
654
|
account: {
|
|
@@ -504,17 +657,33 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<{
|
|
|
504
657
|
password?: string | undefined;
|
|
505
658
|
};
|
|
506
659
|
networks: Record<"development" | "rococo" | "shiden", {
|
|
660
|
+
endpoint: string;
|
|
507
661
|
contract: {
|
|
508
|
-
name: string;
|
|
509
662
|
address: string;
|
|
663
|
+
name: string;
|
|
510
664
|
};
|
|
511
|
-
endpoint: string;
|
|
512
665
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
513
666
|
ss58Format: number;
|
|
514
667
|
}>;
|
|
515
668
|
web2: boolean;
|
|
516
669
|
solutionThreshold: number;
|
|
517
670
|
dappName: string;
|
|
671
|
+
timeouts: {
|
|
672
|
+
image: {
|
|
673
|
+
challengeTimeout: number;
|
|
674
|
+
solutionTimeout: number;
|
|
675
|
+
verifiedTimeout: number;
|
|
676
|
+
cachedTimeout: number;
|
|
677
|
+
};
|
|
678
|
+
contract: {
|
|
679
|
+
maxVerifiedTime: number;
|
|
680
|
+
};
|
|
681
|
+
pow: {
|
|
682
|
+
solutionTimeout: number;
|
|
683
|
+
verifiedTimeout: number;
|
|
684
|
+
cachedTimeout: number;
|
|
685
|
+
};
|
|
686
|
+
};
|
|
518
687
|
database?: Partial<Record<"development" | "staging" | "production", {
|
|
519
688
|
type: string;
|
|
520
689
|
endpoint: string;
|
|
@@ -530,15 +699,15 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<{
|
|
|
530
699
|
secret?: string | undefined;
|
|
531
700
|
password?: string | undefined;
|
|
532
701
|
};
|
|
533
|
-
logLevel?: "
|
|
702
|
+
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
534
703
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
535
704
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
536
705
|
networks?: Record<string, {
|
|
706
|
+
endpoint: string;
|
|
537
707
|
contract: {
|
|
538
|
-
name: string;
|
|
539
708
|
address: string;
|
|
709
|
+
name: string;
|
|
540
710
|
};
|
|
541
|
-
endpoint: string;
|
|
542
711
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
543
712
|
ss58Format?: number | undefined;
|
|
544
713
|
}> | undefined;
|
|
@@ -554,6 +723,22 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<{
|
|
|
554
723
|
solutionThreshold?: number | undefined;
|
|
555
724
|
dappName?: string | undefined;
|
|
556
725
|
serverUrl?: string | undefined;
|
|
726
|
+
timeouts?: {
|
|
727
|
+
image?: {
|
|
728
|
+
challengeTimeout?: number | undefined;
|
|
729
|
+
solutionTimeout?: number | undefined;
|
|
730
|
+
verifiedTimeout?: number | undefined;
|
|
731
|
+
cachedTimeout?: number | undefined;
|
|
732
|
+
} | undefined;
|
|
733
|
+
contract?: {
|
|
734
|
+
maxVerifiedTime?: number | undefined;
|
|
735
|
+
} | undefined;
|
|
736
|
+
pow?: {
|
|
737
|
+
solutionTimeout?: number | undefined;
|
|
738
|
+
verifiedTimeout?: number | undefined;
|
|
739
|
+
cachedTimeout?: number | undefined;
|
|
740
|
+
} | undefined;
|
|
741
|
+
} | undefined;
|
|
557
742
|
}>;
|
|
558
743
|
export type ProsopoServerConfigInput = input<typeof ProsopoServerConfigSchema>;
|
|
559
744
|
export type ProsopoServerConfigOutput = output<typeof ProsopoServerConfigSchema>;
|
|
@@ -599,7 +784,7 @@ export declare const AccountCreatorConfigSchema: import("zod").ZodObject<{
|
|
|
599
784
|
}>;
|
|
600
785
|
export type ProsopoClientConfigInput = input<typeof ProsopoClientConfigSchema>;
|
|
601
786
|
export type ProsopoClientConfigOutput = output<typeof ProsopoClientConfigSchema>;
|
|
602
|
-
export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
787
|
+
export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
|
|
603
788
|
logLevel: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
604
789
|
defaultEnvironment: import("zod").ZodDefault<import("zod").ZodEnum<["development", "staging", "production"]>>;
|
|
605
790
|
defaultNetwork: import("zod").ZodDefault<import("zod").ZodEnum<["development", "rococo", "shiden"]>>;
|
|
@@ -616,50 +801,51 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
616
801
|
secret?: string | undefined;
|
|
617
802
|
password?: string | undefined;
|
|
618
803
|
}>;
|
|
804
|
+
}, {
|
|
619
805
|
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
806
|
+
endpoint: import("zod").ZodString;
|
|
620
807
|
contract: import("zod").ZodObject<{
|
|
621
808
|
address: import("zod").ZodString;
|
|
622
809
|
name: import("zod").ZodString;
|
|
623
810
|
}, "strip", import("zod").ZodTypeAny, {
|
|
624
|
-
name: string;
|
|
625
811
|
address: string;
|
|
626
|
-
}, {
|
|
627
812
|
name: string;
|
|
813
|
+
}, {
|
|
628
814
|
address: string;
|
|
815
|
+
name: string;
|
|
629
816
|
}>;
|
|
630
|
-
endpoint: import("zod").ZodString;
|
|
631
817
|
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
632
818
|
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
633
819
|
}, "strip", import("zod").ZodTypeAny, {
|
|
820
|
+
endpoint: string;
|
|
634
821
|
contract: {
|
|
635
|
-
name: string;
|
|
636
822
|
address: string;
|
|
823
|
+
name: string;
|
|
637
824
|
};
|
|
638
|
-
endpoint: string;
|
|
639
825
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
640
826
|
ss58Format: number;
|
|
641
827
|
}, {
|
|
828
|
+
endpoint: string;
|
|
642
829
|
contract: {
|
|
643
|
-
name: string;
|
|
644
830
|
address: string;
|
|
831
|
+
name: string;
|
|
645
832
|
};
|
|
646
|
-
endpoint: string;
|
|
647
833
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
648
834
|
ss58Format?: number | undefined;
|
|
649
835
|
}>>, Record<"development" | "rococo" | "shiden", {
|
|
836
|
+
endpoint: string;
|
|
650
837
|
contract: {
|
|
651
|
-
name: string;
|
|
652
838
|
address: string;
|
|
839
|
+
name: string;
|
|
653
840
|
};
|
|
654
|
-
endpoint: string;
|
|
655
841
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
656
842
|
ss58Format: number;
|
|
657
843
|
}>, Record<string, {
|
|
844
|
+
endpoint: string;
|
|
658
845
|
contract: {
|
|
659
|
-
name: string;
|
|
660
846
|
address: string;
|
|
847
|
+
name: string;
|
|
661
848
|
};
|
|
662
|
-
endpoint: string;
|
|
663
849
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
664
850
|
ss58Format?: number | undefined;
|
|
665
851
|
}>>>;
|
|
@@ -680,13 +866,14 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
680
866
|
authSource: string;
|
|
681
867
|
}>>>;
|
|
682
868
|
devOnlyWatchEvents: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
869
|
+
}>, {
|
|
683
870
|
userAccountAddress: import("zod").ZodOptional<import("zod").ZodString>;
|
|
684
871
|
web2: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
685
872
|
solutionThreshold: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
686
873
|
dappName: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
687
874
|
serverUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
688
|
-
}
|
|
689
|
-
logLevel: "
|
|
875
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
876
|
+
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
690
877
|
defaultEnvironment: "development" | "staging" | "production";
|
|
691
878
|
defaultNetwork: "development" | "rococo" | "shiden";
|
|
692
879
|
account: {
|
|
@@ -695,11 +882,11 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
695
882
|
password?: string | undefined;
|
|
696
883
|
};
|
|
697
884
|
networks: Record<"development" | "rococo" | "shiden", {
|
|
885
|
+
endpoint: string;
|
|
698
886
|
contract: {
|
|
699
|
-
name: string;
|
|
700
887
|
address: string;
|
|
888
|
+
name: string;
|
|
701
889
|
};
|
|
702
|
-
endpoint: string;
|
|
703
890
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
704
891
|
ss58Format: number;
|
|
705
892
|
}>;
|
|
@@ -721,15 +908,15 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
721
908
|
secret?: string | undefined;
|
|
722
909
|
password?: string | undefined;
|
|
723
910
|
};
|
|
724
|
-
logLevel?: "
|
|
911
|
+
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
725
912
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
726
913
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
727
914
|
networks?: Record<string, {
|
|
915
|
+
endpoint: string;
|
|
728
916
|
contract: {
|
|
729
|
-
name: string;
|
|
730
917
|
address: string;
|
|
918
|
+
name: string;
|
|
731
919
|
};
|
|
732
|
-
endpoint: string;
|
|
733
920
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
734
921
|
ss58Format?: number | undefined;
|
|
735
922
|
}> | undefined;
|
|
@@ -787,9 +974,91 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
787
974
|
seed: number;
|
|
788
975
|
}>>;
|
|
789
976
|
theme: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"light">, import("zod").ZodLiteral<"dark">]>>;
|
|
790
|
-
|
|
977
|
+
captchas: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodObject<{
|
|
978
|
+
image: import("zod").ZodDefault<import("zod").ZodObject<{
|
|
979
|
+
challengeTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
980
|
+
solutionTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
981
|
+
verifiedTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
982
|
+
cachedTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
983
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
984
|
+
challengeTimeout: number;
|
|
985
|
+
solutionTimeout: number;
|
|
986
|
+
verifiedTimeout: number;
|
|
987
|
+
cachedTimeout: number;
|
|
988
|
+
}, {
|
|
989
|
+
challengeTimeout?: number | undefined;
|
|
990
|
+
solutionTimeout?: number | undefined;
|
|
991
|
+
verifiedTimeout?: number | undefined;
|
|
992
|
+
cachedTimeout?: number | undefined;
|
|
993
|
+
}>>;
|
|
994
|
+
pow: import("zod").ZodDefault<import("zod").ZodObject<{
|
|
995
|
+
verifiedTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
996
|
+
solutionTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
997
|
+
cachedTimeout: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
998
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
999
|
+
solutionTimeout: number;
|
|
1000
|
+
verifiedTimeout: number;
|
|
1001
|
+
cachedTimeout: number;
|
|
1002
|
+
}, {
|
|
1003
|
+
solutionTimeout?: number | undefined;
|
|
1004
|
+
verifiedTimeout?: number | undefined;
|
|
1005
|
+
cachedTimeout?: number | undefined;
|
|
1006
|
+
}>>;
|
|
1007
|
+
contract: import("zod").ZodDefault<import("zod").ZodObject<{
|
|
1008
|
+
maxVerifiedTime: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
1009
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1010
|
+
maxVerifiedTime: number;
|
|
1011
|
+
}, {
|
|
1012
|
+
maxVerifiedTime?: number | undefined;
|
|
1013
|
+
}>>;
|
|
1014
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1015
|
+
image: {
|
|
1016
|
+
challengeTimeout: number;
|
|
1017
|
+
solutionTimeout: number;
|
|
1018
|
+
verifiedTimeout: number;
|
|
1019
|
+
cachedTimeout: number;
|
|
1020
|
+
};
|
|
1021
|
+
contract: {
|
|
1022
|
+
maxVerifiedTime: number;
|
|
1023
|
+
};
|
|
1024
|
+
pow: {
|
|
1025
|
+
solutionTimeout: number;
|
|
1026
|
+
verifiedTimeout: number;
|
|
1027
|
+
cachedTimeout: number;
|
|
1028
|
+
};
|
|
1029
|
+
}, {
|
|
1030
|
+
image?: {
|
|
1031
|
+
challengeTimeout?: number | undefined;
|
|
1032
|
+
solutionTimeout?: number | undefined;
|
|
1033
|
+
verifiedTimeout?: number | undefined;
|
|
1034
|
+
cachedTimeout?: number | undefined;
|
|
1035
|
+
} | undefined;
|
|
1036
|
+
contract?: {
|
|
1037
|
+
maxVerifiedTime?: number | undefined;
|
|
1038
|
+
} | undefined;
|
|
1039
|
+
pow?: {
|
|
1040
|
+
solutionTimeout?: number | undefined;
|
|
1041
|
+
verifiedTimeout?: number | undefined;
|
|
1042
|
+
cachedTimeout?: number | undefined;
|
|
1043
|
+
} | undefined;
|
|
1044
|
+
}>>>>;
|
|
791
1045
|
}, "strip", import("zod").ZodTypeAny, {
|
|
792
|
-
|
|
1046
|
+
captchas: {
|
|
1047
|
+
image: {
|
|
1048
|
+
challengeTimeout: number;
|
|
1049
|
+
solutionTimeout: number;
|
|
1050
|
+
verifiedTimeout: number;
|
|
1051
|
+
cachedTimeout: number;
|
|
1052
|
+
};
|
|
1053
|
+
contract: {
|
|
1054
|
+
maxVerifiedTime: number;
|
|
1055
|
+
};
|
|
1056
|
+
pow: {
|
|
1057
|
+
solutionTimeout: number;
|
|
1058
|
+
verifiedTimeout: number;
|
|
1059
|
+
cachedTimeout: number;
|
|
1060
|
+
};
|
|
1061
|
+
};
|
|
793
1062
|
accountCreator?: {
|
|
794
1063
|
area: {
|
|
795
1064
|
width: number;
|
|
@@ -804,6 +1073,22 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
804
1073
|
} | undefined;
|
|
805
1074
|
theme?: "light" | "dark" | undefined;
|
|
806
1075
|
}, {
|
|
1076
|
+
captchas?: {
|
|
1077
|
+
image?: {
|
|
1078
|
+
challengeTimeout?: number | undefined;
|
|
1079
|
+
solutionTimeout?: number | undefined;
|
|
1080
|
+
verifiedTimeout?: number | undefined;
|
|
1081
|
+
cachedTimeout?: number | undefined;
|
|
1082
|
+
} | undefined;
|
|
1083
|
+
contract?: {
|
|
1084
|
+
maxVerifiedTime?: number | undefined;
|
|
1085
|
+
} | undefined;
|
|
1086
|
+
pow?: {
|
|
1087
|
+
solutionTimeout?: number | undefined;
|
|
1088
|
+
verifiedTimeout?: number | undefined;
|
|
1089
|
+
cachedTimeout?: number | undefined;
|
|
1090
|
+
} | undefined;
|
|
1091
|
+
} | undefined;
|
|
807
1092
|
accountCreator?: {
|
|
808
1093
|
area: {
|
|
809
1094
|
width: number;
|
|
@@ -817,11 +1102,10 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
817
1102
|
seed: number;
|
|
818
1103
|
} | undefined;
|
|
819
1104
|
theme?: "light" | "dark" | undefined;
|
|
820
|
-
challengeValidLength?: number | undefined;
|
|
821
1105
|
}>>;
|
|
822
1106
|
export type ProcaptchaClientConfigInput = input<typeof ProcaptchaConfigSchema>;
|
|
823
1107
|
export type ProcaptchaClientConfigOutput = output<typeof ProcaptchaConfigSchema>;
|
|
824
|
-
export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
1108
|
+
export declare const ProsopoConfigSchema: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
|
|
825
1109
|
logLevel: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
826
1110
|
defaultEnvironment: import("zod").ZodDefault<import("zod").ZodEnum<["development", "staging", "production"]>>;
|
|
827
1111
|
defaultNetwork: import("zod").ZodDefault<import("zod").ZodEnum<["development", "rococo", "shiden"]>>;
|
|
@@ -838,50 +1122,51 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
838
1122
|
secret?: string | undefined;
|
|
839
1123
|
password?: string | undefined;
|
|
840
1124
|
}>;
|
|
1125
|
+
}, {
|
|
841
1126
|
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
1127
|
+
endpoint: import("zod").ZodString;
|
|
842
1128
|
contract: import("zod").ZodObject<{
|
|
843
1129
|
address: import("zod").ZodString;
|
|
844
1130
|
name: import("zod").ZodString;
|
|
845
1131
|
}, "strip", import("zod").ZodTypeAny, {
|
|
846
|
-
name: string;
|
|
847
1132
|
address: string;
|
|
848
|
-
}, {
|
|
849
1133
|
name: string;
|
|
1134
|
+
}, {
|
|
850
1135
|
address: string;
|
|
1136
|
+
name: string;
|
|
851
1137
|
}>;
|
|
852
|
-
endpoint: import("zod").ZodString;
|
|
853
1138
|
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
854
1139
|
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
855
1140
|
}, "strip", import("zod").ZodTypeAny, {
|
|
1141
|
+
endpoint: string;
|
|
856
1142
|
contract: {
|
|
857
|
-
name: string;
|
|
858
1143
|
address: string;
|
|
1144
|
+
name: string;
|
|
859
1145
|
};
|
|
860
|
-
endpoint: string;
|
|
861
1146
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
862
1147
|
ss58Format: number;
|
|
863
1148
|
}, {
|
|
1149
|
+
endpoint: string;
|
|
864
1150
|
contract: {
|
|
865
|
-
name: string;
|
|
866
1151
|
address: string;
|
|
1152
|
+
name: string;
|
|
867
1153
|
};
|
|
868
|
-
endpoint: string;
|
|
869
1154
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
870
1155
|
ss58Format?: number | undefined;
|
|
871
1156
|
}>>, Record<"development" | "rococo" | "shiden", {
|
|
1157
|
+
endpoint: string;
|
|
872
1158
|
contract: {
|
|
873
|
-
name: string;
|
|
874
1159
|
address: string;
|
|
1160
|
+
name: string;
|
|
875
1161
|
};
|
|
876
|
-
endpoint: string;
|
|
877
1162
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
878
1163
|
ss58Format: number;
|
|
879
1164
|
}>, Record<string, {
|
|
1165
|
+
endpoint: string;
|
|
880
1166
|
contract: {
|
|
881
|
-
name: string;
|
|
882
1167
|
address: string;
|
|
1168
|
+
name: string;
|
|
883
1169
|
};
|
|
884
|
-
endpoint: string;
|
|
885
1170
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
886
1171
|
ss58Format?: number | undefined;
|
|
887
1172
|
}>>>;
|
|
@@ -902,6 +1187,7 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
902
1187
|
authSource: string;
|
|
903
1188
|
}>>>;
|
|
904
1189
|
devOnlyWatchEvents: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1190
|
+
}>, {
|
|
905
1191
|
captchas: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
906
1192
|
solved: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
907
1193
|
count: import("zod").ZodNumber;
|
|
@@ -966,7 +1252,7 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
966
1252
|
port?: number | undefined;
|
|
967
1253
|
}>;
|
|
968
1254
|
mongoEventsUri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
969
|
-
}
|
|
1255
|
+
}>, "strip", import("zod").ZodTypeAny, {
|
|
970
1256
|
captchas: {
|
|
971
1257
|
solved: {
|
|
972
1258
|
count: number;
|
|
@@ -975,7 +1261,7 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
975
1261
|
count: number;
|
|
976
1262
|
};
|
|
977
1263
|
};
|
|
978
|
-
logLevel: "
|
|
1264
|
+
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
979
1265
|
defaultEnvironment: "development" | "staging" | "production";
|
|
980
1266
|
defaultNetwork: "development" | "rococo" | "shiden";
|
|
981
1267
|
account: {
|
|
@@ -984,11 +1270,11 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
984
1270
|
password?: string | undefined;
|
|
985
1271
|
};
|
|
986
1272
|
networks: Record<"development" | "rococo" | "shiden", {
|
|
1273
|
+
endpoint: string;
|
|
987
1274
|
contract: {
|
|
988
|
-
name: string;
|
|
989
1275
|
address: string;
|
|
1276
|
+
name: string;
|
|
990
1277
|
};
|
|
991
|
-
endpoint: string;
|
|
992
1278
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
993
1279
|
ss58Format: number;
|
|
994
1280
|
}>;
|
|
@@ -1023,15 +1309,23 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
1023
1309
|
baseURL: string;
|
|
1024
1310
|
port?: number | undefined;
|
|
1025
1311
|
};
|
|
1026
|
-
|
|
1312
|
+
captchas?: {
|
|
1313
|
+
solved?: {
|
|
1314
|
+
count: number;
|
|
1315
|
+
} | undefined;
|
|
1316
|
+
unsolved?: {
|
|
1317
|
+
count: number;
|
|
1318
|
+
} | undefined;
|
|
1319
|
+
} | undefined;
|
|
1320
|
+
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
1027
1321
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
1028
1322
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
1029
1323
|
networks?: Record<string, {
|
|
1324
|
+
endpoint: string;
|
|
1030
1325
|
contract: {
|
|
1031
|
-
name: string;
|
|
1032
1326
|
address: string;
|
|
1327
|
+
name: string;
|
|
1033
1328
|
};
|
|
1034
|
-
endpoint: string;
|
|
1035
1329
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1036
1330
|
ss58Format?: number | undefined;
|
|
1037
1331
|
}> | undefined;
|
|
@@ -1042,14 +1336,6 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
1042
1336
|
authSource: string;
|
|
1043
1337
|
}>> | undefined;
|
|
1044
1338
|
devOnlyWatchEvents?: boolean | undefined;
|
|
1045
|
-
captchas?: {
|
|
1046
|
-
solved?: {
|
|
1047
|
-
count: number;
|
|
1048
|
-
} | undefined;
|
|
1049
|
-
unsolved?: {
|
|
1050
|
-
count: number;
|
|
1051
|
-
} | undefined;
|
|
1052
|
-
} | undefined;
|
|
1053
1339
|
captchaSolutions?: {
|
|
1054
1340
|
requiredNumberOfSolutions: number;
|
|
1055
1341
|
solutionWinningPercentage: number;
|