@prosopo/types 0.1.14

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 (109) hide show
  1. package/dist/config/config.d.ts +964 -0
  2. package/dist/config/config.d.ts.map +1 -0
  3. package/dist/config/config.js +117 -0
  4. package/dist/config/config.js.map +1 -0
  5. package/dist/config/index.d.ts +2 -0
  6. package/dist/config/index.d.ts.map +1 -0
  7. package/dist/config/index.js +5 -0
  8. package/dist/config/index.js.map +1 -0
  9. package/dist/contract/artifacts.d.ts +3640 -0
  10. package/dist/contract/artifacts.d.ts.map +1 -0
  11. package/dist/contract/artifacts.js +194 -0
  12. package/dist/contract/artifacts.js.map +1 -0
  13. package/dist/contract/batch.d.ts +12 -0
  14. package/dist/contract/batch.d.ts.map +1 -0
  15. package/dist/contract/batch.js +3 -0
  16. package/dist/contract/batch.js.map +1 -0
  17. package/dist/contract/contract.d.ts +14 -0
  18. package/dist/contract/contract.d.ts.map +1 -0
  19. package/dist/contract/contract.js +18 -0
  20. package/dist/contract/contract.js.map +1 -0
  21. package/dist/contract/index.d.ts +6 -0
  22. package/dist/contract/index.d.ts.map +1 -0
  23. package/dist/contract/index.js +24 -0
  24. package/dist/contract/index.js.map +1 -0
  25. package/dist/contract/interface.d.ts +1 -0
  26. package/dist/contract/interface.d.ts.map +1 -0
  27. package/dist/contract/interface.js +39 -0
  28. package/dist/contract/interface.js.map +1 -0
  29. package/dist/contract/typechain/captcha/index.d.ts +3 -0
  30. package/dist/contract/typechain/captcha/index.d.ts.map +1 -0
  31. package/dist/contract/typechain/captcha/index.js +6 -0
  32. package/dist/contract/typechain/captcha/index.js.map +1 -0
  33. package/dist/contract/typechain/captcha/types-arguments/captcha.d.ts +104 -0
  34. package/dist/contract/typechain/captcha/types-arguments/captcha.d.ts.map +1 -0
  35. package/dist/contract/typechain/captcha/types-arguments/captcha.js +61 -0
  36. package/dist/contract/typechain/captcha/types-arguments/captcha.js.map +1 -0
  37. package/dist/contract/typechain/captcha/types-arguments/index.d.ts +2 -0
  38. package/dist/contract/typechain/captcha/types-arguments/index.d.ts.map +1 -0
  39. package/dist/contract/typechain/captcha/types-arguments/index.js +6 -0
  40. package/dist/contract/typechain/captcha/types-arguments/index.js.map +1 -0
  41. package/dist/contract/typechain/captcha/types-returns/captcha.d.ts +104 -0
  42. package/dist/contract/typechain/captcha/types-returns/captcha.d.ts.map +1 -0
  43. package/dist/contract/typechain/captcha/types-returns/captcha.js +61 -0
  44. package/dist/contract/typechain/captcha/types-returns/captcha.js.map +1 -0
  45. package/dist/contract/typechain/captcha/types-returns/index.d.ts +2 -0
  46. package/dist/contract/typechain/captcha/types-returns/index.d.ts.map +1 -0
  47. package/dist/contract/typechain/captcha/types-returns/index.js +5 -0
  48. package/dist/contract/typechain/captcha/types-returns/index.js.map +1 -0
  49. package/dist/contract/typechain/index.d.ts +2 -0
  50. package/dist/contract/typechain/index.d.ts.map +1 -0
  51. package/dist/contract/typechain/index.js +5 -0
  52. package/dist/contract/typechain/index.js.map +1 -0
  53. package/dist/contract/useWeight.d.ts +16 -0
  54. package/dist/contract/useWeight.d.ts.map +1 -0
  55. package/dist/contract/useWeight.js +3 -0
  56. package/dist/contract/useWeight.js.map +1 -0
  57. package/dist/datasets/assets.d.ts +8 -0
  58. package/dist/datasets/assets.d.ts.map +1 -0
  59. package/dist/datasets/assets.js +18 -0
  60. package/dist/datasets/assets.js.map +1 -0
  61. package/dist/datasets/captcha.d.ts +272 -0
  62. package/dist/datasets/captcha.d.ts.map +1 -0
  63. package/dist/datasets/captcha.js +46 -0
  64. package/dist/datasets/captcha.js.map +1 -0
  65. package/dist/datasets/dataset.d.ts +301 -0
  66. package/dist/datasets/dataset.d.ts.map +1 -0
  67. package/dist/datasets/dataset.js +28 -0
  68. package/dist/datasets/dataset.js.map +1 -0
  69. package/dist/datasets/index.d.ts +5 -0
  70. package/dist/datasets/index.d.ts.map +1 -0
  71. package/dist/datasets/index.js +8 -0
  72. package/dist/datasets/index.js.map +1 -0
  73. package/dist/datasets/merkle.d.ts +10 -0
  74. package/dist/datasets/merkle.d.ts.map +1 -0
  75. package/dist/datasets/merkle.js +18 -0
  76. package/dist/datasets/merkle.js.map +1 -0
  77. package/dist/index.d.ts +6 -0
  78. package/dist/index.d.ts.map +1 -0
  79. package/dist/index.js +9 -0
  80. package/dist/index.js.map +1 -0
  81. package/dist/procaptcha/index.d.ts +2 -0
  82. package/dist/procaptcha/index.d.ts.map +1 -0
  83. package/dist/procaptcha/index.js +5 -0
  84. package/dist/procaptcha/index.js.map +1 -0
  85. package/dist/procaptcha/manager.d.ts +64 -0
  86. package/dist/procaptcha/manager.d.ts.map +1 -0
  87. package/dist/procaptcha/manager.js +16 -0
  88. package/dist/procaptcha/manager.js.map +1 -0
  89. package/dist/provider/accounts.d.ts +24 -0
  90. package/dist/provider/accounts.d.ts.map +1 -0
  91. package/dist/provider/accounts.js +3 -0
  92. package/dist/provider/accounts.js.map +1 -0
  93. package/dist/provider/api.d.ts +109 -0
  94. package/dist/provider/api.d.ts.map +1 -0
  95. package/dist/provider/api.js +55 -0
  96. package/dist/provider/api.js.map +1 -0
  97. package/dist/provider/argv.d.ts +8 -0
  98. package/dist/provider/argv.d.ts.map +1 -0
  99. package/dist/provider/argv.js +11 -0
  100. package/dist/provider/argv.js.map +1 -0
  101. package/dist/provider/index.d.ts +5 -0
  102. package/dist/provider/index.d.ts.map +1 -0
  103. package/dist/provider/index.js +21 -0
  104. package/dist/provider/index.js.map +1 -0
  105. package/dist/provider/scheduler.d.ts +15 -0
  106. package/dist/provider/scheduler.d.ts.map +1 -0
  107. package/dist/provider/scheduler.js +16 -0
  108. package/dist/provider/scheduler.js.map +1 -0
  109. package/package.json +39 -0
@@ -0,0 +1,964 @@
1
+ import { LogLevel } from '@prosopo/common';
2
+ import { z } from 'zod';
3
+ export declare const DatabaseTypes: z.ZodEnum<["mongo", "mongoMemory"]>;
4
+ export declare const EnvironmentTypesSchema: z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>;
5
+ export type EnvironmentTypes = z.infer<typeof EnvironmentTypesSchema>;
6
+ export declare const NetworkNamesSchema: z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>;
7
+ export type NetworkNames = typeof NetworkNamesSchema;
8
+ export declare const DatabaseConfigSchema: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>, z.ZodObject<{
9
+ type: z.ZodString;
10
+ endpoint: z.ZodString;
11
+ dbname: z.ZodString;
12
+ authSource: z.ZodString;
13
+ }, "strip", z.ZodTypeAny, {
14
+ type: string;
15
+ endpoint: string;
16
+ dbname: string;
17
+ authSource: string;
18
+ }, {
19
+ type: string;
20
+ endpoint: string;
21
+ dbname: string;
22
+ authSource: string;
23
+ }>>>;
24
+ export declare const BatchCommitConfigSchema: z.ZodObject<{
25
+ interval: z.ZodNumber;
26
+ maxBatchExtrinsicPercentage: z.ZodNumber;
27
+ }, "strip", z.ZodTypeAny, {
28
+ interval: number;
29
+ maxBatchExtrinsicPercentage: number;
30
+ }, {
31
+ interval: number;
32
+ maxBatchExtrinsicPercentage: number;
33
+ }>;
34
+ export type BatchCommitConfig = z.infer<typeof BatchCommitConfigSchema>;
35
+ export type DatabaseConfig = z.infer<typeof DatabaseConfigSchema>;
36
+ export declare const ProsopoBaseConfigSchema: z.ZodObject<{
37
+ logLevel: z.ZodNativeEnum<typeof LogLevel>;
38
+ defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>>;
39
+ account: z.ZodObject<{
40
+ address: z.ZodString;
41
+ secret: z.ZodOptional<z.ZodString>;
42
+ password: z.ZodOptional<z.ZodString>;
43
+ }, "strip", z.ZodTypeAny, {
44
+ address: string;
45
+ secret?: string | undefined;
46
+ password?: string | undefined;
47
+ }, {
48
+ address: string;
49
+ secret?: string | undefined;
50
+ password?: string | undefined;
51
+ }>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ logLevel: LogLevel;
54
+ defaultEnvironment: "development" | "rococo" | "kusama" | "polkadot" | "shiden";
55
+ account: {
56
+ address: string;
57
+ secret?: string | undefined;
58
+ password?: string | undefined;
59
+ };
60
+ }, {
61
+ logLevel: LogLevel;
62
+ account: {
63
+ address: string;
64
+ secret?: string | undefined;
65
+ password?: string | undefined;
66
+ };
67
+ defaultEnvironment?: "development" | "rococo" | "kusama" | "polkadot" | "shiden" | undefined;
68
+ }>;
69
+ export declare const NetworkConfigSchema: z.ZodObject<{
70
+ endpoint: z.ZodString;
71
+ contract: z.ZodObject<{
72
+ address: z.ZodString;
73
+ name: z.ZodString;
74
+ }, "strip", z.ZodTypeAny, {
75
+ address: string;
76
+ name: string;
77
+ }, {
78
+ address: string;
79
+ name: string;
80
+ }>;
81
+ accounts: z.ZodArray<z.ZodString, "many">;
82
+ }, "strip", z.ZodTypeAny, {
83
+ endpoint: string;
84
+ contract: {
85
+ address: string;
86
+ name: string;
87
+ };
88
+ accounts: string[];
89
+ }, {
90
+ endpoint: string;
91
+ contract: {
92
+ address: string;
93
+ name: string;
94
+ };
95
+ accounts: string[];
96
+ }>;
97
+ export type NetworkConfig = z.infer<typeof NetworkConfigSchema>;
98
+ export declare const ProsopoNetworksSchema: z.ZodDefault<z.ZodRecord<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>, z.ZodObject<{
99
+ endpoint: z.ZodString;
100
+ contract: z.ZodObject<{
101
+ address: z.ZodString;
102
+ name: z.ZodString;
103
+ }, "strip", z.ZodTypeAny, {
104
+ address: string;
105
+ name: string;
106
+ }, {
107
+ address: string;
108
+ name: string;
109
+ }>;
110
+ accounts: z.ZodArray<z.ZodString, "many">;
111
+ }, "strip", z.ZodTypeAny, {
112
+ endpoint: string;
113
+ contract: {
114
+ address: string;
115
+ name: string;
116
+ };
117
+ accounts: string[];
118
+ }, {
119
+ endpoint: string;
120
+ contract: {
121
+ address: string;
122
+ name: string;
123
+ };
124
+ accounts: string[];
125
+ }>>>;
126
+ export declare const ProsopoBasicConfigSchema: z.ZodObject<{
127
+ logLevel: z.ZodNativeEnum<typeof LogLevel>;
128
+ defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>>;
129
+ account: z.ZodObject<{
130
+ address: z.ZodString;
131
+ secret: z.ZodOptional<z.ZodString>;
132
+ password: z.ZodOptional<z.ZodString>;
133
+ }, "strip", z.ZodTypeAny, {
134
+ address: string;
135
+ secret?: string | undefined;
136
+ password?: string | undefined;
137
+ }, {
138
+ address: string;
139
+ secret?: string | undefined;
140
+ password?: string | undefined;
141
+ }>;
142
+ networks: z.ZodDefault<z.ZodRecord<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>, z.ZodObject<{
143
+ endpoint: z.ZodString;
144
+ contract: z.ZodObject<{
145
+ address: z.ZodString;
146
+ name: z.ZodString;
147
+ }, "strip", z.ZodTypeAny, {
148
+ address: string;
149
+ name: string;
150
+ }, {
151
+ address: string;
152
+ name: string;
153
+ }>;
154
+ accounts: z.ZodArray<z.ZodString, "many">;
155
+ }, "strip", z.ZodTypeAny, {
156
+ endpoint: string;
157
+ contract: {
158
+ address: string;
159
+ name: string;
160
+ };
161
+ accounts: string[];
162
+ }, {
163
+ endpoint: string;
164
+ contract: {
165
+ address: string;
166
+ name: string;
167
+ };
168
+ accounts: string[];
169
+ }>>>;
170
+ database: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>, z.ZodObject<{
171
+ type: z.ZodString;
172
+ endpoint: z.ZodString;
173
+ dbname: z.ZodString;
174
+ authSource: z.ZodString;
175
+ }, "strip", z.ZodTypeAny, {
176
+ type: string;
177
+ endpoint: string;
178
+ dbname: string;
179
+ authSource: string;
180
+ }, {
181
+ type: string;
182
+ endpoint: string;
183
+ dbname: string;
184
+ authSource: string;
185
+ }>>>>;
186
+ }, "strip", z.ZodTypeAny, {
187
+ logLevel: LogLevel;
188
+ defaultEnvironment: "development" | "rococo" | "kusama" | "polkadot" | "shiden";
189
+ account: {
190
+ address: string;
191
+ secret?: string | undefined;
192
+ password?: string | undefined;
193
+ };
194
+ networks: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
195
+ endpoint: string;
196
+ contract: {
197
+ address: string;
198
+ name: string;
199
+ };
200
+ accounts: string[];
201
+ }>>;
202
+ database?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
203
+ type: string;
204
+ endpoint: string;
205
+ dbname: string;
206
+ authSource: string;
207
+ }>> | undefined;
208
+ }, {
209
+ logLevel: LogLevel;
210
+ account: {
211
+ address: string;
212
+ secret?: string | undefined;
213
+ password?: string | undefined;
214
+ };
215
+ defaultEnvironment?: "development" | "rococo" | "kusama" | "polkadot" | "shiden" | undefined;
216
+ networks?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
217
+ endpoint: string;
218
+ contract: {
219
+ address: string;
220
+ name: string;
221
+ };
222
+ accounts: string[];
223
+ }>> | undefined;
224
+ database?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
225
+ type: string;
226
+ endpoint: string;
227
+ dbname: string;
228
+ authSource: string;
229
+ }>> | undefined;
230
+ }>;
231
+ export type ProsopoBasicConfig = z.infer<typeof ProsopoBasicConfigSchema>;
232
+ export declare const ProsopoCaptchaCountConfigSchema: z.ZodObject<{
233
+ solved: z.ZodObject<{
234
+ count: z.ZodNumber;
235
+ }, "strip", z.ZodTypeAny, {
236
+ count: number;
237
+ }, {
238
+ count: number;
239
+ }>;
240
+ unsolved: z.ZodObject<{
241
+ count: z.ZodNumber;
242
+ }, "strip", z.ZodTypeAny, {
243
+ count: number;
244
+ }, {
245
+ count: number;
246
+ }>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ solved: {
249
+ count: number;
250
+ };
251
+ unsolved: {
252
+ count: number;
253
+ };
254
+ }, {
255
+ solved: {
256
+ count: number;
257
+ };
258
+ unsolved: {
259
+ count: number;
260
+ };
261
+ }>;
262
+ export declare const ProsopoImageServerConfigSchema: z.ZodObject<{
263
+ baseURL: z.ZodString;
264
+ port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
265
+ fileServePaths: z.ZodString;
266
+ }, "strip", z.ZodTypeAny, {
267
+ baseURL: string;
268
+ port: number;
269
+ fileServePaths: string;
270
+ }, {
271
+ baseURL: string;
272
+ fileServePaths: string;
273
+ port?: number | undefined;
274
+ }>;
275
+ export declare const ProsopoCaptchaSolutionConfigSchema: z.ZodObject<{
276
+ requiredNumberOfSolutions: z.ZodNumber;
277
+ solutionWinningPercentage: z.ZodNumber;
278
+ captchaFilePath: z.ZodString;
279
+ captchaBlockRecency: z.ZodNumber;
280
+ }, "strip", z.ZodTypeAny, {
281
+ requiredNumberOfSolutions: number;
282
+ solutionWinningPercentage: number;
283
+ captchaFilePath: string;
284
+ captchaBlockRecency: number;
285
+ }, {
286
+ requiredNumberOfSolutions: number;
287
+ solutionWinningPercentage: number;
288
+ captchaFilePath: string;
289
+ captchaBlockRecency: number;
290
+ }>;
291
+ export declare const ProsopoClientConfigSchema: z.ZodObject<{
292
+ logLevel: z.ZodNativeEnum<typeof LogLevel>;
293
+ defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>>;
294
+ account: z.ZodObject<{
295
+ address: z.ZodString;
296
+ secret: z.ZodOptional<z.ZodString>;
297
+ password: z.ZodOptional<z.ZodString>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ address: string;
300
+ secret?: string | undefined;
301
+ password?: string | undefined;
302
+ }, {
303
+ address: string;
304
+ secret?: string | undefined;
305
+ password?: string | undefined;
306
+ }>;
307
+ networks: z.ZodDefault<z.ZodRecord<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>, z.ZodObject<{
308
+ endpoint: z.ZodString;
309
+ contract: z.ZodObject<{
310
+ address: z.ZodString;
311
+ name: z.ZodString;
312
+ }, "strip", z.ZodTypeAny, {
313
+ address: string;
314
+ name: string;
315
+ }, {
316
+ address: string;
317
+ name: string;
318
+ }>;
319
+ accounts: z.ZodArray<z.ZodString, "many">;
320
+ }, "strip", z.ZodTypeAny, {
321
+ endpoint: string;
322
+ contract: {
323
+ address: string;
324
+ name: string;
325
+ };
326
+ accounts: string[];
327
+ }, {
328
+ endpoint: string;
329
+ contract: {
330
+ address: string;
331
+ name: string;
332
+ };
333
+ accounts: string[];
334
+ }>>>;
335
+ database: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>, z.ZodObject<{
336
+ type: z.ZodString;
337
+ endpoint: z.ZodString;
338
+ dbname: z.ZodString;
339
+ authSource: z.ZodString;
340
+ }, "strip", z.ZodTypeAny, {
341
+ type: string;
342
+ endpoint: string;
343
+ dbname: string;
344
+ authSource: string;
345
+ }, {
346
+ type: string;
347
+ endpoint: string;
348
+ dbname: string;
349
+ authSource: string;
350
+ }>>>>;
351
+ userAccountAddress: z.ZodOptional<z.ZodString>;
352
+ web2: z.ZodBoolean;
353
+ solutionThreshold: z.ZodNumber;
354
+ dappName: z.ZodString;
355
+ }, "strip", z.ZodTypeAny, {
356
+ logLevel: LogLevel;
357
+ defaultEnvironment: "development" | "rococo" | "kusama" | "polkadot" | "shiden";
358
+ account: {
359
+ address: string;
360
+ secret?: string | undefined;
361
+ password?: string | undefined;
362
+ };
363
+ networks: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
364
+ endpoint: string;
365
+ contract: {
366
+ address: string;
367
+ name: string;
368
+ };
369
+ accounts: string[];
370
+ }>>;
371
+ web2: boolean;
372
+ solutionThreshold: number;
373
+ dappName: string;
374
+ database?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
375
+ type: string;
376
+ endpoint: string;
377
+ dbname: string;
378
+ authSource: string;
379
+ }>> | undefined;
380
+ userAccountAddress?: string | undefined;
381
+ }, {
382
+ logLevel: LogLevel;
383
+ account: {
384
+ address: string;
385
+ secret?: string | undefined;
386
+ password?: string | undefined;
387
+ };
388
+ web2: boolean;
389
+ solutionThreshold: number;
390
+ dappName: string;
391
+ defaultEnvironment?: "development" | "rococo" | "kusama" | "polkadot" | "shiden" | undefined;
392
+ networks?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
393
+ endpoint: string;
394
+ contract: {
395
+ address: string;
396
+ name: string;
397
+ };
398
+ accounts: string[];
399
+ }>> | undefined;
400
+ database?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
401
+ type: string;
402
+ endpoint: string;
403
+ dbname: string;
404
+ authSource: string;
405
+ }>> | undefined;
406
+ userAccountAddress?: string | undefined;
407
+ }>;
408
+ export declare const ProsopoServerConfigSchema: z.ZodObject<{
409
+ logLevel: z.ZodNativeEnum<typeof LogLevel>;
410
+ defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>>;
411
+ account: z.ZodObject<{
412
+ address: z.ZodString;
413
+ secret: z.ZodOptional<z.ZodString>;
414
+ password: z.ZodOptional<z.ZodString>;
415
+ }, "strip", z.ZodTypeAny, {
416
+ address: string;
417
+ secret?: string | undefined;
418
+ password?: string | undefined;
419
+ }, {
420
+ address: string;
421
+ secret?: string | undefined;
422
+ password?: string | undefined;
423
+ }>;
424
+ networks: z.ZodDefault<z.ZodRecord<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>, z.ZodObject<{
425
+ endpoint: z.ZodString;
426
+ contract: z.ZodObject<{
427
+ address: z.ZodString;
428
+ name: z.ZodString;
429
+ }, "strip", z.ZodTypeAny, {
430
+ address: string;
431
+ name: string;
432
+ }, {
433
+ address: string;
434
+ name: string;
435
+ }>;
436
+ accounts: z.ZodArray<z.ZodString, "many">;
437
+ }, "strip", z.ZodTypeAny, {
438
+ endpoint: string;
439
+ contract: {
440
+ address: string;
441
+ name: string;
442
+ };
443
+ accounts: string[];
444
+ }, {
445
+ endpoint: string;
446
+ contract: {
447
+ address: string;
448
+ name: string;
449
+ };
450
+ accounts: string[];
451
+ }>>>;
452
+ database: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>, z.ZodObject<{
453
+ type: z.ZodString;
454
+ endpoint: z.ZodString;
455
+ dbname: z.ZodString;
456
+ authSource: z.ZodString;
457
+ }, "strip", z.ZodTypeAny, {
458
+ type: string;
459
+ endpoint: string;
460
+ dbname: string;
461
+ authSource: string;
462
+ }, {
463
+ type: string;
464
+ endpoint: string;
465
+ dbname: string;
466
+ authSource: string;
467
+ }>>>>;
468
+ serverUrl: z.ZodString;
469
+ solutionThreshold: z.ZodNumber;
470
+ }, "strip", z.ZodTypeAny, {
471
+ logLevel: LogLevel;
472
+ defaultEnvironment: "development" | "rococo" | "kusama" | "polkadot" | "shiden";
473
+ account: {
474
+ address: string;
475
+ secret?: string | undefined;
476
+ password?: string | undefined;
477
+ };
478
+ networks: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
479
+ endpoint: string;
480
+ contract: {
481
+ address: string;
482
+ name: string;
483
+ };
484
+ accounts: string[];
485
+ }>>;
486
+ solutionThreshold: number;
487
+ serverUrl: string;
488
+ database?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
489
+ type: string;
490
+ endpoint: string;
491
+ dbname: string;
492
+ authSource: string;
493
+ }>> | undefined;
494
+ }, {
495
+ logLevel: LogLevel;
496
+ account: {
497
+ address: string;
498
+ secret?: string | undefined;
499
+ password?: string | undefined;
500
+ };
501
+ solutionThreshold: number;
502
+ serverUrl: string;
503
+ defaultEnvironment?: "development" | "rococo" | "kusama" | "polkadot" | "shiden" | undefined;
504
+ networks?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
505
+ endpoint: string;
506
+ contract: {
507
+ address: string;
508
+ name: string;
509
+ };
510
+ accounts: string[];
511
+ }>> | undefined;
512
+ database?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
513
+ type: string;
514
+ endpoint: string;
515
+ dbname: string;
516
+ authSource: string;
517
+ }>> | undefined;
518
+ }>;
519
+ export type ProsopoServerConfig = z.infer<typeof ProsopoServerConfigSchema>;
520
+ export declare const AccountCreatorConfigSchema: z.ZodObject<{
521
+ area: z.ZodObject<{
522
+ width: z.ZodNumber;
523
+ height: z.ZodNumber;
524
+ }, "strip", z.ZodTypeAny, {
525
+ width: number;
526
+ height: number;
527
+ }, {
528
+ width: number;
529
+ height: number;
530
+ }>;
531
+ offsetParameter: z.ZodNumber;
532
+ multiplier: z.ZodNumber;
533
+ fontSizeFactor: z.ZodNumber;
534
+ maxShadowBlur: z.ZodNumber;
535
+ numberOfRounds: z.ZodNumber;
536
+ seed: z.ZodNumber;
537
+ }, "strip", z.ZodTypeAny, {
538
+ area: {
539
+ width: number;
540
+ height: number;
541
+ };
542
+ offsetParameter: number;
543
+ multiplier: number;
544
+ fontSizeFactor: number;
545
+ maxShadowBlur: number;
546
+ numberOfRounds: number;
547
+ seed: number;
548
+ }, {
549
+ area: {
550
+ width: number;
551
+ height: number;
552
+ };
553
+ offsetParameter: number;
554
+ multiplier: number;
555
+ fontSizeFactor: number;
556
+ maxShadowBlur: number;
557
+ numberOfRounds: number;
558
+ seed: number;
559
+ }>;
560
+ export type ProsopoClientConfig = z.infer<typeof ProsopoClientConfigSchema>;
561
+ export declare const ProcaptchaConfigSchema: z.ZodObject<{
562
+ logLevel: z.ZodNativeEnum<typeof LogLevel>;
563
+ defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>>;
564
+ account: z.ZodObject<{
565
+ address: z.ZodString;
566
+ secret: z.ZodOptional<z.ZodString>;
567
+ password: z.ZodOptional<z.ZodString>;
568
+ }, "strip", z.ZodTypeAny, {
569
+ address: string;
570
+ secret?: string | undefined;
571
+ password?: string | undefined;
572
+ }, {
573
+ address: string;
574
+ secret?: string | undefined;
575
+ password?: string | undefined;
576
+ }>;
577
+ networks: z.ZodDefault<z.ZodRecord<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>, z.ZodObject<{
578
+ endpoint: z.ZodString;
579
+ contract: z.ZodObject<{
580
+ address: z.ZodString;
581
+ name: z.ZodString;
582
+ }, "strip", z.ZodTypeAny, {
583
+ address: string;
584
+ name: string;
585
+ }, {
586
+ address: string;
587
+ name: string;
588
+ }>;
589
+ accounts: z.ZodArray<z.ZodString, "many">;
590
+ }, "strip", z.ZodTypeAny, {
591
+ endpoint: string;
592
+ contract: {
593
+ address: string;
594
+ name: string;
595
+ };
596
+ accounts: string[];
597
+ }, {
598
+ endpoint: string;
599
+ contract: {
600
+ address: string;
601
+ name: string;
602
+ };
603
+ accounts: string[];
604
+ }>>>;
605
+ database: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>, z.ZodObject<{
606
+ type: z.ZodString;
607
+ endpoint: z.ZodString;
608
+ dbname: z.ZodString;
609
+ authSource: z.ZodString;
610
+ }, "strip", z.ZodTypeAny, {
611
+ type: string;
612
+ endpoint: string;
613
+ dbname: string;
614
+ authSource: string;
615
+ }, {
616
+ type: string;
617
+ endpoint: string;
618
+ dbname: string;
619
+ authSource: string;
620
+ }>>>>;
621
+ userAccountAddress: z.ZodOptional<z.ZodString>;
622
+ web2: z.ZodBoolean;
623
+ solutionThreshold: z.ZodNumber;
624
+ dappName: z.ZodString;
625
+ accountCreator: z.ZodOptional<z.ZodObject<{
626
+ area: z.ZodObject<{
627
+ width: z.ZodNumber;
628
+ height: z.ZodNumber;
629
+ }, "strip", z.ZodTypeAny, {
630
+ width: number;
631
+ height: number;
632
+ }, {
633
+ width: number;
634
+ height: number;
635
+ }>;
636
+ offsetParameter: z.ZodNumber;
637
+ multiplier: z.ZodNumber;
638
+ fontSizeFactor: z.ZodNumber;
639
+ maxShadowBlur: z.ZodNumber;
640
+ numberOfRounds: z.ZodNumber;
641
+ seed: z.ZodNumber;
642
+ }, "strip", z.ZodTypeAny, {
643
+ area: {
644
+ width: number;
645
+ height: number;
646
+ };
647
+ offsetParameter: number;
648
+ multiplier: number;
649
+ fontSizeFactor: number;
650
+ maxShadowBlur: number;
651
+ numberOfRounds: number;
652
+ seed: number;
653
+ }, {
654
+ area: {
655
+ width: number;
656
+ height: number;
657
+ };
658
+ offsetParameter: number;
659
+ multiplier: number;
660
+ fontSizeFactor: number;
661
+ maxShadowBlur: number;
662
+ numberOfRounds: number;
663
+ seed: number;
664
+ }>>;
665
+ }, "strip", z.ZodTypeAny, {
666
+ logLevel: LogLevel;
667
+ defaultEnvironment: "development" | "rococo" | "kusama" | "polkadot" | "shiden";
668
+ account: {
669
+ address: string;
670
+ secret?: string | undefined;
671
+ password?: string | undefined;
672
+ };
673
+ networks: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
674
+ endpoint: string;
675
+ contract: {
676
+ address: string;
677
+ name: string;
678
+ };
679
+ accounts: string[];
680
+ }>>;
681
+ web2: boolean;
682
+ solutionThreshold: number;
683
+ dappName: string;
684
+ database?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
685
+ type: string;
686
+ endpoint: string;
687
+ dbname: string;
688
+ authSource: string;
689
+ }>> | undefined;
690
+ userAccountAddress?: string | undefined;
691
+ accountCreator?: {
692
+ area: {
693
+ width: number;
694
+ height: number;
695
+ };
696
+ offsetParameter: number;
697
+ multiplier: number;
698
+ fontSizeFactor: number;
699
+ maxShadowBlur: number;
700
+ numberOfRounds: number;
701
+ seed: number;
702
+ } | undefined;
703
+ }, {
704
+ logLevel: LogLevel;
705
+ account: {
706
+ address: string;
707
+ secret?: string | undefined;
708
+ password?: string | undefined;
709
+ };
710
+ web2: boolean;
711
+ solutionThreshold: number;
712
+ dappName: string;
713
+ defaultEnvironment?: "development" | "rococo" | "kusama" | "polkadot" | "shiden" | undefined;
714
+ networks?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
715
+ endpoint: string;
716
+ contract: {
717
+ address: string;
718
+ name: string;
719
+ };
720
+ accounts: string[];
721
+ }>> | undefined;
722
+ database?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
723
+ type: string;
724
+ endpoint: string;
725
+ dbname: string;
726
+ authSource: string;
727
+ }>> | undefined;
728
+ userAccountAddress?: string | undefined;
729
+ accountCreator?: {
730
+ area: {
731
+ width: number;
732
+ height: number;
733
+ };
734
+ offsetParameter: number;
735
+ multiplier: number;
736
+ fontSizeFactor: number;
737
+ maxShadowBlur: number;
738
+ numberOfRounds: number;
739
+ seed: number;
740
+ } | undefined;
741
+ }>;
742
+ export type ProcaptchaClientConfig = z.infer<typeof ProcaptchaConfigSchema>;
743
+ export declare const ProsopoConfigSchema: z.ZodObject<{
744
+ logLevel: z.ZodNativeEnum<typeof LogLevel>;
745
+ defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>>;
746
+ account: z.ZodObject<{
747
+ address: z.ZodString;
748
+ secret: z.ZodOptional<z.ZodString>;
749
+ password: z.ZodOptional<z.ZodString>;
750
+ }, "strip", z.ZodTypeAny, {
751
+ address: string;
752
+ secret?: string | undefined;
753
+ password?: string | undefined;
754
+ }, {
755
+ address: string;
756
+ secret?: string | undefined;
757
+ password?: string | undefined;
758
+ }>;
759
+ networks: z.ZodDefault<z.ZodRecord<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>, z.ZodObject<{
760
+ endpoint: z.ZodString;
761
+ contract: z.ZodObject<{
762
+ address: z.ZodString;
763
+ name: z.ZodString;
764
+ }, "strip", z.ZodTypeAny, {
765
+ address: string;
766
+ name: string;
767
+ }, {
768
+ address: string;
769
+ name: string;
770
+ }>;
771
+ accounts: z.ZodArray<z.ZodString, "many">;
772
+ }, "strip", z.ZodTypeAny, {
773
+ endpoint: string;
774
+ contract: {
775
+ address: string;
776
+ name: string;
777
+ };
778
+ accounts: string[];
779
+ }, {
780
+ endpoint: string;
781
+ contract: {
782
+ address: string;
783
+ name: string;
784
+ };
785
+ accounts: string[];
786
+ }>>>;
787
+ database: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "rococo", "kusama", "polkadot", "shiden"]>, z.ZodObject<{
788
+ type: z.ZodString;
789
+ endpoint: z.ZodString;
790
+ dbname: z.ZodString;
791
+ authSource: z.ZodString;
792
+ }, "strip", z.ZodTypeAny, {
793
+ type: string;
794
+ endpoint: string;
795
+ dbname: string;
796
+ authSource: string;
797
+ }, {
798
+ type: string;
799
+ endpoint: string;
800
+ dbname: string;
801
+ authSource: string;
802
+ }>>>>;
803
+ captchas: z.ZodObject<{
804
+ solved: z.ZodObject<{
805
+ count: z.ZodNumber;
806
+ }, "strip", z.ZodTypeAny, {
807
+ count: number;
808
+ }, {
809
+ count: number;
810
+ }>;
811
+ unsolved: z.ZodObject<{
812
+ count: z.ZodNumber;
813
+ }, "strip", z.ZodTypeAny, {
814
+ count: number;
815
+ }, {
816
+ count: number;
817
+ }>;
818
+ }, "strip", z.ZodTypeAny, {
819
+ solved: {
820
+ count: number;
821
+ };
822
+ unsolved: {
823
+ count: number;
824
+ };
825
+ }, {
826
+ solved: {
827
+ count: number;
828
+ };
829
+ unsolved: {
830
+ count: number;
831
+ };
832
+ }>;
833
+ captchaSolutions: z.ZodObject<{
834
+ requiredNumberOfSolutions: z.ZodNumber;
835
+ solutionWinningPercentage: z.ZodNumber;
836
+ captchaFilePath: z.ZodString;
837
+ captchaBlockRecency: z.ZodNumber;
838
+ }, "strip", z.ZodTypeAny, {
839
+ requiredNumberOfSolutions: number;
840
+ solutionWinningPercentage: number;
841
+ captchaFilePath: string;
842
+ captchaBlockRecency: number;
843
+ }, {
844
+ requiredNumberOfSolutions: number;
845
+ solutionWinningPercentage: number;
846
+ captchaFilePath: string;
847
+ captchaBlockRecency: number;
848
+ }>;
849
+ batchCommit: z.ZodObject<{
850
+ interval: z.ZodNumber;
851
+ maxBatchExtrinsicPercentage: z.ZodNumber;
852
+ }, "strip", z.ZodTypeAny, {
853
+ interval: number;
854
+ maxBatchExtrinsicPercentage: number;
855
+ }, {
856
+ interval: number;
857
+ maxBatchExtrinsicPercentage: number;
858
+ }>;
859
+ server: z.ZodObject<{
860
+ baseURL: z.ZodString;
861
+ port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
862
+ fileServePaths: z.ZodString;
863
+ }, "strip", z.ZodTypeAny, {
864
+ baseURL: string;
865
+ port: number;
866
+ fileServePaths: string;
867
+ }, {
868
+ baseURL: string;
869
+ fileServePaths: string;
870
+ port?: number | undefined;
871
+ }>;
872
+ }, "strip", z.ZodTypeAny, {
873
+ logLevel: LogLevel;
874
+ defaultEnvironment: "development" | "rococo" | "kusama" | "polkadot" | "shiden";
875
+ account: {
876
+ address: string;
877
+ secret?: string | undefined;
878
+ password?: string | undefined;
879
+ };
880
+ networks: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
881
+ endpoint: string;
882
+ contract: {
883
+ address: string;
884
+ name: string;
885
+ };
886
+ accounts: string[];
887
+ }>>;
888
+ captchas: {
889
+ solved: {
890
+ count: number;
891
+ };
892
+ unsolved: {
893
+ count: number;
894
+ };
895
+ };
896
+ captchaSolutions: {
897
+ requiredNumberOfSolutions: number;
898
+ solutionWinningPercentage: number;
899
+ captchaFilePath: string;
900
+ captchaBlockRecency: number;
901
+ };
902
+ batchCommit: {
903
+ interval: number;
904
+ maxBatchExtrinsicPercentage: number;
905
+ };
906
+ server: {
907
+ baseURL: string;
908
+ port: number;
909
+ fileServePaths: string;
910
+ };
911
+ database?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
912
+ type: string;
913
+ endpoint: string;
914
+ dbname: string;
915
+ authSource: string;
916
+ }>> | undefined;
917
+ }, {
918
+ logLevel: LogLevel;
919
+ account: {
920
+ address: string;
921
+ secret?: string | undefined;
922
+ password?: string | undefined;
923
+ };
924
+ captchas: {
925
+ solved: {
926
+ count: number;
927
+ };
928
+ unsolved: {
929
+ count: number;
930
+ };
931
+ };
932
+ captchaSolutions: {
933
+ requiredNumberOfSolutions: number;
934
+ solutionWinningPercentage: number;
935
+ captchaFilePath: string;
936
+ captchaBlockRecency: number;
937
+ };
938
+ batchCommit: {
939
+ interval: number;
940
+ maxBatchExtrinsicPercentage: number;
941
+ };
942
+ server: {
943
+ baseURL: string;
944
+ fileServePaths: string;
945
+ port?: number | undefined;
946
+ };
947
+ defaultEnvironment?: "development" | "rococo" | "kusama" | "polkadot" | "shiden" | undefined;
948
+ networks?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
949
+ endpoint: string;
950
+ contract: {
951
+ address: string;
952
+ name: string;
953
+ };
954
+ accounts: string[];
955
+ }>> | undefined;
956
+ database?: Partial<Record<"development" | "rococo" | "kusama" | "polkadot" | "shiden", {
957
+ type: string;
958
+ endpoint: string;
959
+ dbname: string;
960
+ authSource: string;
961
+ }>> | undefined;
962
+ }>;
963
+ export type ProsopoConfig = z.infer<typeof ProsopoConfigSchema>;
964
+ //# sourceMappingURL=config.d.ts.map