@prosopo/types 0.3.1 → 0.3.3
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/api/api.d.ts +16 -0
- package/dist/api/api.d.ts.map +1 -0
- package/dist/api/api.js +2 -0
- package/dist/api/api.js.map +1 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +2 -0
- package/dist/api/index.js.map +1 -0
- package/dist/cjs/api/api.cjs +1 -0
- package/dist/cjs/api/index.cjs +2 -0
- package/dist/cjs/config/config.cjs +4 -4
- package/dist/cjs/contract/index.cjs +1 -0
- package/dist/cjs/contract/interface.cjs +1 -0
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/procaptcha/client.cjs +1 -0
- package/dist/cjs/procaptcha/index.cjs +3 -0
- package/dist/cjs/procaptcha/manager.cjs +2 -1
- package/dist/cjs/procaptcha/props.cjs +1 -0
- package/dist/cjs/procaptcha/utils.cjs +1 -0
- package/dist/cjs/procaptcha-bundle/index.cjs +1 -0
- package/dist/cjs/provider/api.cjs +14 -0
- package/dist/cjs/provider/index.cjs +1 -0
- package/dist/config/config.d.ts +101 -89
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +2 -2
- package/dist/config/config.js.map +1 -1
- package/dist/config/enumMap.d.ts.map +1 -1
- package/dist/config/enumMap.js.map +1 -1
- package/dist/config/network.d.ts +17 -17
- package/dist/config/network.d.ts.map +1 -1
- package/dist/config/network.js.map +1 -1
- package/dist/contract/artifacts.d.ts +10 -10
- package/dist/contract/index.d.ts +1 -0
- package/dist/contract/index.d.ts.map +1 -1
- package/dist/contract/index.js +1 -0
- package/dist/contract/index.js.map +1 -1
- package/dist/contract/interface.d.ts +28 -0
- package/dist/contract/interface.d.ts.map +1 -0
- package/dist/contract/interface.js +2 -0
- package/dist/contract/interface.js.map +1 -0
- package/dist/datasets/captcha.d.ts +97 -95
- package/dist/datasets/captcha.d.ts.map +1 -1
- package/dist/datasets/captcha.js.map +1 -1
- package/dist/datasets/dataset.d.ts +48 -48
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/networks/index.d.ts.map +1 -1
- package/dist/networks/index.js.map +1 -1
- package/dist/procaptcha/api.d.ts +17 -33
- package/dist/procaptcha/api.d.ts.map +1 -1
- package/dist/procaptcha/client.d.ts +4 -0
- package/dist/procaptcha/client.d.ts.map +1 -0
- package/dist/procaptcha/client.js +2 -0
- package/dist/procaptcha/client.js.map +1 -0
- package/dist/procaptcha/collector.d.ts +1 -1
- package/dist/procaptcha/collector.d.ts.map +1 -1
- package/dist/procaptcha/index.d.ts +3 -0
- package/dist/procaptcha/index.d.ts.map +1 -1
- package/dist/procaptcha/index.js +3 -0
- package/dist/procaptcha/index.js.map +1 -1
- package/dist/procaptcha/manager.d.ts +41 -0
- package/dist/procaptcha/manager.d.ts.map +1 -1
- package/dist/procaptcha/manager.js +1 -0
- package/dist/procaptcha/manager.js.map +1 -1
- package/dist/procaptcha/props.d.ts +7 -0
- package/dist/procaptcha/props.d.ts.map +1 -0
- package/dist/procaptcha/props.js +2 -0
- package/dist/procaptcha/props.js.map +1 -0
- package/dist/procaptcha/utils.d.ts +2 -0
- package/dist/procaptcha/utils.d.ts.map +1 -0
- package/dist/procaptcha/utils.js +2 -0
- package/dist/procaptcha/utils.js.map +1 -0
- package/dist/procaptcha-bundle/index.d.ts +2 -1
- package/dist/procaptcha-bundle/index.d.ts.map +1 -1
- package/dist/procaptcha-bundle/index.js +1 -0
- package/dist/procaptcha-bundle/index.js.map +1 -1
- package/dist/provider/api.d.ts +36 -3
- package/dist/provider/api.d.ts.map +1 -1
- package/dist/provider/api.js +7 -0
- package/dist/provider/api.js.map +1 -1
- package/package.json +3 -3
- package/typedoc.config.js +13 -0
- package/vite.cjs.config.ts +13 -0
package/dist/config/config.d.ts
CHANGED
|
@@ -89,49 +89,49 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<{
|
|
|
89
89
|
password?: string | undefined;
|
|
90
90
|
}>;
|
|
91
91
|
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
92
|
-
endpoint: import("zod").ZodString;
|
|
93
92
|
contract: import("zod").ZodObject<{
|
|
94
93
|
address: import("zod").ZodString;
|
|
95
94
|
name: import("zod").ZodString;
|
|
96
95
|
}, "strip", import("zod").ZodTypeAny, {
|
|
97
|
-
address: string;
|
|
98
96
|
name: string;
|
|
99
|
-
}, {
|
|
100
97
|
address: string;
|
|
98
|
+
}, {
|
|
101
99
|
name: string;
|
|
100
|
+
address: string;
|
|
102
101
|
}>;
|
|
102
|
+
endpoint: import("zod").ZodString;
|
|
103
103
|
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
104
104
|
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
105
105
|
}, "strip", import("zod").ZodTypeAny, {
|
|
106
|
-
endpoint: string;
|
|
107
106
|
contract: {
|
|
108
|
-
address: string;
|
|
109
107
|
name: string;
|
|
108
|
+
address: string;
|
|
110
109
|
};
|
|
110
|
+
endpoint: string;
|
|
111
111
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
112
112
|
ss58Format: number;
|
|
113
113
|
}, {
|
|
114
|
-
endpoint: string;
|
|
115
114
|
contract: {
|
|
116
|
-
address: string;
|
|
117
115
|
name: string;
|
|
116
|
+
address: string;
|
|
118
117
|
};
|
|
118
|
+
endpoint: string;
|
|
119
119
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
120
120
|
ss58Format?: number | undefined;
|
|
121
121
|
}>>, Record<"development" | "rococo" | "shiden", {
|
|
122
|
-
endpoint: string;
|
|
123
122
|
contract: {
|
|
124
|
-
address: string;
|
|
125
123
|
name: string;
|
|
124
|
+
address: string;
|
|
126
125
|
};
|
|
126
|
+
endpoint: string;
|
|
127
127
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
128
128
|
ss58Format: number;
|
|
129
129
|
}>, Record<string, {
|
|
130
|
-
endpoint: string;
|
|
131
130
|
contract: {
|
|
132
|
-
address: string;
|
|
133
131
|
name: string;
|
|
132
|
+
address: string;
|
|
134
133
|
};
|
|
134
|
+
endpoint: string;
|
|
135
135
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
136
136
|
ss58Format?: number | undefined;
|
|
137
137
|
}>>>;
|
|
@@ -151,6 +151,7 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<{
|
|
|
151
151
|
dbname: string;
|
|
152
152
|
authSource: string;
|
|
153
153
|
}>>>;
|
|
154
|
+
devOnlyWatchEvents: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
154
155
|
}, "strip", import("zod").ZodTypeAny, {
|
|
155
156
|
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | "log";
|
|
156
157
|
defaultEnvironment: "development" | "staging" | "production";
|
|
@@ -161,11 +162,11 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<{
|
|
|
161
162
|
password?: string | undefined;
|
|
162
163
|
};
|
|
163
164
|
networks: Record<"development" | "rococo" | "shiden", {
|
|
164
|
-
endpoint: string;
|
|
165
165
|
contract: {
|
|
166
|
-
address: string;
|
|
167
166
|
name: string;
|
|
167
|
+
address: string;
|
|
168
168
|
};
|
|
169
|
+
endpoint: string;
|
|
169
170
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
170
171
|
ss58Format: number;
|
|
171
172
|
}>;
|
|
@@ -175,6 +176,7 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<{
|
|
|
175
176
|
dbname: string;
|
|
176
177
|
authSource: string;
|
|
177
178
|
}>> | undefined;
|
|
179
|
+
devOnlyWatchEvents?: boolean | undefined;
|
|
178
180
|
}, {
|
|
179
181
|
account: {
|
|
180
182
|
address?: string | undefined;
|
|
@@ -185,11 +187,11 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<{
|
|
|
185
187
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
186
188
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
187
189
|
networks?: Record<string, {
|
|
188
|
-
endpoint: string;
|
|
189
190
|
contract: {
|
|
190
|
-
address: string;
|
|
191
191
|
name: string;
|
|
192
|
+
address: string;
|
|
192
193
|
};
|
|
194
|
+
endpoint: string;
|
|
193
195
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
194
196
|
ss58Format?: number | undefined;
|
|
195
197
|
}> | undefined;
|
|
@@ -199,6 +201,7 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<{
|
|
|
199
201
|
dbname: string;
|
|
200
202
|
authSource: string;
|
|
201
203
|
}>> | undefined;
|
|
204
|
+
devOnlyWatchEvents?: boolean | undefined;
|
|
202
205
|
}>;
|
|
203
206
|
export type ProsopoNetworksSchemaInput = input<typeof ProsopoNetworksSchema>;
|
|
204
207
|
export type ProsopoNetworksSchemaOutput = output<typeof ProsopoNetworksSchema>;
|
|
@@ -276,49 +279,49 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<{
|
|
|
276
279
|
password?: string | undefined;
|
|
277
280
|
}>;
|
|
278
281
|
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
279
|
-
endpoint: import("zod").ZodString;
|
|
280
282
|
contract: import("zod").ZodObject<{
|
|
281
283
|
address: import("zod").ZodString;
|
|
282
284
|
name: import("zod").ZodString;
|
|
283
285
|
}, "strip", import("zod").ZodTypeAny, {
|
|
284
|
-
address: string;
|
|
285
286
|
name: string;
|
|
286
|
-
}, {
|
|
287
287
|
address: string;
|
|
288
|
+
}, {
|
|
288
289
|
name: string;
|
|
290
|
+
address: string;
|
|
289
291
|
}>;
|
|
292
|
+
endpoint: import("zod").ZodString;
|
|
290
293
|
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
291
294
|
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
292
295
|
}, "strip", import("zod").ZodTypeAny, {
|
|
293
|
-
endpoint: string;
|
|
294
296
|
contract: {
|
|
295
|
-
address: string;
|
|
296
297
|
name: string;
|
|
298
|
+
address: string;
|
|
297
299
|
};
|
|
300
|
+
endpoint: string;
|
|
298
301
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
299
302
|
ss58Format: number;
|
|
300
303
|
}, {
|
|
301
|
-
endpoint: string;
|
|
302
304
|
contract: {
|
|
303
|
-
address: string;
|
|
304
305
|
name: string;
|
|
306
|
+
address: string;
|
|
305
307
|
};
|
|
308
|
+
endpoint: string;
|
|
306
309
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
307
310
|
ss58Format?: number | undefined;
|
|
308
311
|
}>>, Record<"development" | "rococo" | "shiden", {
|
|
309
|
-
endpoint: string;
|
|
310
312
|
contract: {
|
|
311
|
-
address: string;
|
|
312
313
|
name: string;
|
|
314
|
+
address: string;
|
|
313
315
|
};
|
|
316
|
+
endpoint: string;
|
|
314
317
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
315
318
|
ss58Format: number;
|
|
316
319
|
}>, Record<string, {
|
|
317
|
-
endpoint: string;
|
|
318
320
|
contract: {
|
|
319
|
-
address: string;
|
|
320
321
|
name: string;
|
|
322
|
+
address: string;
|
|
321
323
|
};
|
|
324
|
+
endpoint: string;
|
|
322
325
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
323
326
|
ss58Format?: number | undefined;
|
|
324
327
|
}>>>;
|
|
@@ -338,6 +341,7 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<{
|
|
|
338
341
|
dbname: string;
|
|
339
342
|
authSource: string;
|
|
340
343
|
}>>>;
|
|
344
|
+
devOnlyWatchEvents: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
341
345
|
userAccountAddress: import("zod").ZodOptional<import("zod").ZodString>;
|
|
342
346
|
web2: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
343
347
|
solutionThreshold: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
@@ -353,11 +357,11 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<{
|
|
|
353
357
|
password?: string | undefined;
|
|
354
358
|
};
|
|
355
359
|
networks: Record<"development" | "rococo" | "shiden", {
|
|
356
|
-
endpoint: string;
|
|
357
360
|
contract: {
|
|
358
|
-
address: string;
|
|
359
361
|
name: string;
|
|
362
|
+
address: string;
|
|
360
363
|
};
|
|
364
|
+
endpoint: string;
|
|
361
365
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
362
366
|
ss58Format: number;
|
|
363
367
|
}>;
|
|
@@ -370,6 +374,7 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<{
|
|
|
370
374
|
dbname: string;
|
|
371
375
|
authSource: string;
|
|
372
376
|
}>> | undefined;
|
|
377
|
+
devOnlyWatchEvents?: boolean | undefined;
|
|
373
378
|
userAccountAddress?: string | undefined;
|
|
374
379
|
serverUrl?: string | undefined;
|
|
375
380
|
}, {
|
|
@@ -382,11 +387,11 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<{
|
|
|
382
387
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
383
388
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
384
389
|
networks?: Record<string, {
|
|
385
|
-
endpoint: string;
|
|
386
390
|
contract: {
|
|
387
|
-
address: string;
|
|
388
391
|
name: string;
|
|
392
|
+
address: string;
|
|
389
393
|
};
|
|
394
|
+
endpoint: string;
|
|
390
395
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
391
396
|
ss58Format?: number | undefined;
|
|
392
397
|
}> | undefined;
|
|
@@ -396,6 +401,7 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<{
|
|
|
396
401
|
dbname: string;
|
|
397
402
|
authSource: string;
|
|
398
403
|
}>> | undefined;
|
|
404
|
+
devOnlyWatchEvents?: boolean | undefined;
|
|
399
405
|
userAccountAddress?: string | undefined;
|
|
400
406
|
web2?: boolean | undefined;
|
|
401
407
|
solutionThreshold?: number | undefined;
|
|
@@ -420,49 +426,49 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<{
|
|
|
420
426
|
password?: string | undefined;
|
|
421
427
|
}>;
|
|
422
428
|
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
423
|
-
endpoint: import("zod").ZodString;
|
|
424
429
|
contract: import("zod").ZodObject<{
|
|
425
430
|
address: import("zod").ZodString;
|
|
426
431
|
name: import("zod").ZodString;
|
|
427
432
|
}, "strip", import("zod").ZodTypeAny, {
|
|
428
|
-
address: string;
|
|
429
433
|
name: string;
|
|
430
|
-
}, {
|
|
431
434
|
address: string;
|
|
435
|
+
}, {
|
|
432
436
|
name: string;
|
|
437
|
+
address: string;
|
|
433
438
|
}>;
|
|
439
|
+
endpoint: import("zod").ZodString;
|
|
434
440
|
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
435
441
|
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
436
442
|
}, "strip", import("zod").ZodTypeAny, {
|
|
437
|
-
endpoint: string;
|
|
438
443
|
contract: {
|
|
439
|
-
address: string;
|
|
440
444
|
name: string;
|
|
445
|
+
address: string;
|
|
441
446
|
};
|
|
447
|
+
endpoint: string;
|
|
442
448
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
443
449
|
ss58Format: number;
|
|
444
450
|
}, {
|
|
445
|
-
endpoint: string;
|
|
446
451
|
contract: {
|
|
447
|
-
address: string;
|
|
448
452
|
name: string;
|
|
453
|
+
address: string;
|
|
449
454
|
};
|
|
455
|
+
endpoint: string;
|
|
450
456
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
451
457
|
ss58Format?: number | undefined;
|
|
452
458
|
}>>, Record<"development" | "rococo" | "shiden", {
|
|
453
|
-
endpoint: string;
|
|
454
459
|
contract: {
|
|
455
|
-
address: string;
|
|
456
460
|
name: string;
|
|
461
|
+
address: string;
|
|
457
462
|
};
|
|
463
|
+
endpoint: string;
|
|
458
464
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
459
465
|
ss58Format: number;
|
|
460
466
|
}>, Record<string, {
|
|
461
|
-
endpoint: string;
|
|
462
467
|
contract: {
|
|
463
|
-
address: string;
|
|
464
468
|
name: string;
|
|
469
|
+
address: string;
|
|
465
470
|
};
|
|
471
|
+
endpoint: string;
|
|
466
472
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
467
473
|
ss58Format?: number | undefined;
|
|
468
474
|
}>>>;
|
|
@@ -482,6 +488,7 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<{
|
|
|
482
488
|
dbname: string;
|
|
483
489
|
authSource: string;
|
|
484
490
|
}>>>;
|
|
491
|
+
devOnlyWatchEvents: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
485
492
|
userAccountAddress: import("zod").ZodOptional<import("zod").ZodString>;
|
|
486
493
|
web2: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
487
494
|
solutionThreshold: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
@@ -497,11 +504,11 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<{
|
|
|
497
504
|
password?: string | undefined;
|
|
498
505
|
};
|
|
499
506
|
networks: Record<"development" | "rococo" | "shiden", {
|
|
500
|
-
endpoint: string;
|
|
501
507
|
contract: {
|
|
502
|
-
address: string;
|
|
503
508
|
name: string;
|
|
509
|
+
address: string;
|
|
504
510
|
};
|
|
511
|
+
endpoint: string;
|
|
505
512
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
506
513
|
ss58Format: number;
|
|
507
514
|
}>;
|
|
@@ -514,6 +521,7 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<{
|
|
|
514
521
|
dbname: string;
|
|
515
522
|
authSource: string;
|
|
516
523
|
}>> | undefined;
|
|
524
|
+
devOnlyWatchEvents?: boolean | undefined;
|
|
517
525
|
userAccountAddress?: string | undefined;
|
|
518
526
|
serverUrl?: string | undefined;
|
|
519
527
|
}, {
|
|
@@ -526,11 +534,11 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<{
|
|
|
526
534
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
527
535
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
528
536
|
networks?: Record<string, {
|
|
529
|
-
endpoint: string;
|
|
530
537
|
contract: {
|
|
531
|
-
address: string;
|
|
532
538
|
name: string;
|
|
539
|
+
address: string;
|
|
533
540
|
};
|
|
541
|
+
endpoint: string;
|
|
534
542
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
535
543
|
ss58Format?: number | undefined;
|
|
536
544
|
}> | undefined;
|
|
@@ -540,6 +548,7 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<{
|
|
|
540
548
|
dbname: string;
|
|
541
549
|
authSource: string;
|
|
542
550
|
}>> | undefined;
|
|
551
|
+
devOnlyWatchEvents?: boolean | undefined;
|
|
543
552
|
userAccountAddress?: string | undefined;
|
|
544
553
|
web2?: boolean | undefined;
|
|
545
554
|
solutionThreshold?: number | undefined;
|
|
@@ -608,49 +617,49 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
608
617
|
password?: string | undefined;
|
|
609
618
|
}>;
|
|
610
619
|
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
611
|
-
endpoint: import("zod").ZodString;
|
|
612
620
|
contract: import("zod").ZodObject<{
|
|
613
621
|
address: import("zod").ZodString;
|
|
614
622
|
name: import("zod").ZodString;
|
|
615
623
|
}, "strip", import("zod").ZodTypeAny, {
|
|
616
|
-
address: string;
|
|
617
624
|
name: string;
|
|
618
|
-
}, {
|
|
619
625
|
address: string;
|
|
626
|
+
}, {
|
|
620
627
|
name: string;
|
|
628
|
+
address: string;
|
|
621
629
|
}>;
|
|
630
|
+
endpoint: import("zod").ZodString;
|
|
622
631
|
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
623
632
|
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
624
633
|
}, "strip", import("zod").ZodTypeAny, {
|
|
625
|
-
endpoint: string;
|
|
626
634
|
contract: {
|
|
627
|
-
address: string;
|
|
628
635
|
name: string;
|
|
636
|
+
address: string;
|
|
629
637
|
};
|
|
638
|
+
endpoint: string;
|
|
630
639
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
631
640
|
ss58Format: number;
|
|
632
641
|
}, {
|
|
633
|
-
endpoint: string;
|
|
634
642
|
contract: {
|
|
635
|
-
address: string;
|
|
636
643
|
name: string;
|
|
644
|
+
address: string;
|
|
637
645
|
};
|
|
646
|
+
endpoint: string;
|
|
638
647
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
639
648
|
ss58Format?: number | undefined;
|
|
640
649
|
}>>, Record<"development" | "rococo" | "shiden", {
|
|
641
|
-
endpoint: string;
|
|
642
650
|
contract: {
|
|
643
|
-
address: string;
|
|
644
651
|
name: string;
|
|
652
|
+
address: string;
|
|
645
653
|
};
|
|
654
|
+
endpoint: string;
|
|
646
655
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
647
656
|
ss58Format: number;
|
|
648
657
|
}>, Record<string, {
|
|
649
|
-
endpoint: string;
|
|
650
658
|
contract: {
|
|
651
|
-
address: string;
|
|
652
659
|
name: string;
|
|
660
|
+
address: string;
|
|
653
661
|
};
|
|
662
|
+
endpoint: string;
|
|
654
663
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
655
664
|
ss58Format?: number | undefined;
|
|
656
665
|
}>>>;
|
|
@@ -670,6 +679,7 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
670
679
|
dbname: string;
|
|
671
680
|
authSource: string;
|
|
672
681
|
}>>>;
|
|
682
|
+
devOnlyWatchEvents: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
673
683
|
userAccountAddress: import("zod").ZodOptional<import("zod").ZodString>;
|
|
674
684
|
web2: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
675
685
|
solutionThreshold: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
@@ -685,11 +695,11 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
685
695
|
password?: string | undefined;
|
|
686
696
|
};
|
|
687
697
|
networks: Record<"development" | "rococo" | "shiden", {
|
|
688
|
-
endpoint: string;
|
|
689
698
|
contract: {
|
|
690
|
-
address: string;
|
|
691
699
|
name: string;
|
|
700
|
+
address: string;
|
|
692
701
|
};
|
|
702
|
+
endpoint: string;
|
|
693
703
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
694
704
|
ss58Format: number;
|
|
695
705
|
}>;
|
|
@@ -702,6 +712,7 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
702
712
|
dbname: string;
|
|
703
713
|
authSource: string;
|
|
704
714
|
}>> | undefined;
|
|
715
|
+
devOnlyWatchEvents?: boolean | undefined;
|
|
705
716
|
userAccountAddress?: string | undefined;
|
|
706
717
|
serverUrl?: string | undefined;
|
|
707
718
|
}, {
|
|
@@ -714,11 +725,11 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
714
725
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
715
726
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
716
727
|
networks?: Record<string, {
|
|
717
|
-
endpoint: string;
|
|
718
728
|
contract: {
|
|
719
|
-
address: string;
|
|
720
729
|
name: string;
|
|
730
|
+
address: string;
|
|
721
731
|
};
|
|
732
|
+
endpoint: string;
|
|
722
733
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
723
734
|
ss58Format?: number | undefined;
|
|
724
735
|
}> | undefined;
|
|
@@ -728,6 +739,7 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
728
739
|
dbname: string;
|
|
729
740
|
authSource: string;
|
|
730
741
|
}>> | undefined;
|
|
742
|
+
devOnlyWatchEvents?: boolean | undefined;
|
|
731
743
|
userAccountAddress?: string | undefined;
|
|
732
744
|
web2?: boolean | undefined;
|
|
733
745
|
solutionThreshold?: number | undefined;
|
|
@@ -776,7 +788,6 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
776
788
|
}>>;
|
|
777
789
|
theme: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"light">, import("zod").ZodLiteral<"dark">]>>;
|
|
778
790
|
challengeValidLength: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
779
|
-
devOnlyWatchEvents: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
780
791
|
}, "strip", import("zod").ZodTypeAny, {
|
|
781
792
|
accountCreator?: {
|
|
782
793
|
area: {
|
|
@@ -792,7 +803,6 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
792
803
|
} | undefined;
|
|
793
804
|
theme?: "light" | "dark" | undefined;
|
|
794
805
|
challengeValidLength?: number | undefined;
|
|
795
|
-
devOnlyWatchEvents?: boolean | undefined;
|
|
796
806
|
}, {
|
|
797
807
|
accountCreator?: {
|
|
798
808
|
area: {
|
|
@@ -808,7 +818,6 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
808
818
|
} | undefined;
|
|
809
819
|
theme?: "light" | "dark" | undefined;
|
|
810
820
|
challengeValidLength?: number | undefined;
|
|
811
|
-
devOnlyWatchEvents?: boolean | undefined;
|
|
812
821
|
}>>;
|
|
813
822
|
export type ProcaptchaClientConfigInput = input<typeof ProcaptchaConfigSchema>;
|
|
814
823
|
export type ProcaptchaClientConfigOutput = output<typeof ProcaptchaConfigSchema>;
|
|
@@ -830,49 +839,49 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
830
839
|
password?: string | undefined;
|
|
831
840
|
}>;
|
|
832
841
|
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
833
|
-
endpoint: import("zod").ZodString;
|
|
834
842
|
contract: import("zod").ZodObject<{
|
|
835
843
|
address: import("zod").ZodString;
|
|
836
844
|
name: import("zod").ZodString;
|
|
837
845
|
}, "strip", import("zod").ZodTypeAny, {
|
|
838
|
-
address: string;
|
|
839
846
|
name: string;
|
|
840
|
-
}, {
|
|
841
847
|
address: string;
|
|
848
|
+
}, {
|
|
842
849
|
name: string;
|
|
850
|
+
address: string;
|
|
843
851
|
}>;
|
|
852
|
+
endpoint: import("zod").ZodString;
|
|
844
853
|
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
845
854
|
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
846
855
|
}, "strip", import("zod").ZodTypeAny, {
|
|
847
|
-
endpoint: string;
|
|
848
856
|
contract: {
|
|
849
|
-
address: string;
|
|
850
857
|
name: string;
|
|
858
|
+
address: string;
|
|
851
859
|
};
|
|
860
|
+
endpoint: string;
|
|
852
861
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
853
862
|
ss58Format: number;
|
|
854
863
|
}, {
|
|
855
|
-
endpoint: string;
|
|
856
864
|
contract: {
|
|
857
|
-
address: string;
|
|
858
865
|
name: string;
|
|
866
|
+
address: string;
|
|
859
867
|
};
|
|
868
|
+
endpoint: string;
|
|
860
869
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
861
870
|
ss58Format?: number | undefined;
|
|
862
871
|
}>>, Record<"development" | "rococo" | "shiden", {
|
|
863
|
-
endpoint: string;
|
|
864
872
|
contract: {
|
|
865
|
-
address: string;
|
|
866
873
|
name: string;
|
|
874
|
+
address: string;
|
|
867
875
|
};
|
|
876
|
+
endpoint: string;
|
|
868
877
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
869
878
|
ss58Format: number;
|
|
870
879
|
}>, Record<string, {
|
|
871
|
-
endpoint: string;
|
|
872
880
|
contract: {
|
|
873
|
-
address: string;
|
|
874
881
|
name: string;
|
|
882
|
+
address: string;
|
|
875
883
|
};
|
|
884
|
+
endpoint: string;
|
|
876
885
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
877
886
|
ss58Format?: number | undefined;
|
|
878
887
|
}>>>;
|
|
@@ -892,6 +901,7 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
892
901
|
dbname: string;
|
|
893
902
|
authSource: string;
|
|
894
903
|
}>>>;
|
|
904
|
+
devOnlyWatchEvents: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
895
905
|
captchas: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
896
906
|
solved: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
897
907
|
count: import("zod").ZodNumber;
|
|
@@ -955,8 +965,16 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
955
965
|
baseURL: string;
|
|
956
966
|
port?: number | undefined;
|
|
957
967
|
}>;
|
|
958
|
-
|
|
968
|
+
mongoEventsUri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
959
969
|
}, "strip", import("zod").ZodTypeAny, {
|
|
970
|
+
captchas: {
|
|
971
|
+
solved: {
|
|
972
|
+
count: number;
|
|
973
|
+
};
|
|
974
|
+
unsolved: {
|
|
975
|
+
count: number;
|
|
976
|
+
};
|
|
977
|
+
};
|
|
960
978
|
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | "log";
|
|
961
979
|
defaultEnvironment: "development" | "staging" | "production";
|
|
962
980
|
defaultNetwork: "development" | "rococo" | "shiden";
|
|
@@ -966,22 +984,14 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
966
984
|
password?: string | undefined;
|
|
967
985
|
};
|
|
968
986
|
networks: Record<"development" | "rococo" | "shiden", {
|
|
969
|
-
endpoint: string;
|
|
970
987
|
contract: {
|
|
971
|
-
address: string;
|
|
972
988
|
name: string;
|
|
989
|
+
address: string;
|
|
973
990
|
};
|
|
991
|
+
endpoint: string;
|
|
974
992
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
975
993
|
ss58Format: number;
|
|
976
994
|
}>;
|
|
977
|
-
captchas: {
|
|
978
|
-
solved: {
|
|
979
|
-
count: number;
|
|
980
|
-
};
|
|
981
|
-
unsolved: {
|
|
982
|
-
count: number;
|
|
983
|
-
};
|
|
984
|
-
};
|
|
985
995
|
captchaSolutions: {
|
|
986
996
|
requiredNumberOfSolutions: number;
|
|
987
997
|
solutionWinningPercentage: number;
|
|
@@ -1001,7 +1011,8 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
1001
1011
|
dbname: string;
|
|
1002
1012
|
authSource: string;
|
|
1003
1013
|
}>> | undefined;
|
|
1004
|
-
|
|
1014
|
+
devOnlyWatchEvents?: boolean | undefined;
|
|
1015
|
+
mongoEventsUri?: string | undefined;
|
|
1005
1016
|
}, {
|
|
1006
1017
|
account: {
|
|
1007
1018
|
address?: string | undefined;
|
|
@@ -1016,11 +1027,11 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
1016
1027
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
1017
1028
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
1018
1029
|
networks?: Record<string, {
|
|
1019
|
-
endpoint: string;
|
|
1020
1030
|
contract: {
|
|
1021
|
-
address: string;
|
|
1022
1031
|
name: string;
|
|
1032
|
+
address: string;
|
|
1023
1033
|
};
|
|
1034
|
+
endpoint: string;
|
|
1024
1035
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1025
1036
|
ss58Format?: number | undefined;
|
|
1026
1037
|
}> | undefined;
|
|
@@ -1030,6 +1041,7 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
1030
1041
|
dbname: string;
|
|
1031
1042
|
authSource: string;
|
|
1032
1043
|
}>> | undefined;
|
|
1044
|
+
devOnlyWatchEvents?: boolean | undefined;
|
|
1033
1045
|
captchas?: {
|
|
1034
1046
|
solved?: {
|
|
1035
1047
|
count: number;
|
|
@@ -1047,7 +1059,7 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
1047
1059
|
interval?: number | undefined;
|
|
1048
1060
|
maxBatchExtrinsicPercentage?: number | undefined;
|
|
1049
1061
|
} | undefined;
|
|
1050
|
-
|
|
1062
|
+
mongoEventsUri?: string | undefined;
|
|
1051
1063
|
}>;
|
|
1052
1064
|
export type ProsopoConfigInput = input<typeof ProsopoConfigSchema>;
|
|
1053
1065
|
export type ProsopoConfigOutput = output<typeof ProsopoConfigSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAcA,OAAO,EAAsB,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAExE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAA;AAI3B,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAA;AAG5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,KAAK,CAAA;AAKrC,eAAO,MAAM,aAAa,iDAAkC,CAAA;AAE5D,eAAO,MAAM,sBAAsB,iEAAkD,CAAA;AAErF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAEpE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;GAQhC,CAAA;AAED,eAAO,MAAM,uBAAuB;;;;;;;;;EAGlC,CAAA;AAEF,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAC1E,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE5E,MAAM,MAAM,mBAAmB,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AACpE,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEtE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUlC,CAAA;AAEF,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"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"}
|
package/dist/config/config.js
CHANGED
|
@@ -32,6 +32,7 @@ export const ProsopoBaseConfigSchema = object({
|
|
|
32
32
|
export const ProsopoBasicConfigSchema = ProsopoBaseConfigSchema.merge(object({
|
|
33
33
|
networks: ProsopoNetworksSchema.default(networks),
|
|
34
34
|
database: DatabaseConfigSchema.optional(),
|
|
35
|
+
devOnlyWatchEvents: boolean().optional(),
|
|
35
36
|
}));
|
|
36
37
|
export const ProsopoCaptchaCountConfigSchema = object({
|
|
37
38
|
solved: object({
|
|
@@ -81,7 +82,6 @@ export const ProcaptchaConfigSchema = ProsopoClientConfigSchema.and(object({
|
|
|
81
82
|
accountCreator: AccountCreatorConfigSchema.optional(),
|
|
82
83
|
theme: ThemeType.optional(),
|
|
83
84
|
challengeValidLength: number().positive().optional(),
|
|
84
|
-
devOnlyWatchEvents: boolean().optional(),
|
|
85
85
|
}));
|
|
86
86
|
export const ProsopoConfigSchema = ProsopoBasicConfigSchema.merge(object({
|
|
87
87
|
captchas: ProsopoCaptchaCountConfigSchema.optional().default({
|
|
@@ -98,6 +98,6 @@ export const ProsopoConfigSchema = ProsopoBasicConfigSchema.merge(object({
|
|
|
98
98
|
maxBatchExtrinsicPercentage: 59,
|
|
99
99
|
}),
|
|
100
100
|
server: ProsopoImageServerConfigSchema,
|
|
101
|
-
|
|
101
|
+
mongoEventsUri: string().optional(),
|
|
102
102
|
}));
|
|
103
103
|
//# sourceMappingURL=config.js.map
|