@prosopo/types 0.1.17 → 0.1.18

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