@prosopo/types 2.0.0 → 2.0.2
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 +1 -1
- package/dist/api/api.d.ts.map +1 -1
- package/dist/api/params.d.ts.map +1 -1
- package/dist/api/params.js.map +1 -1
- package/dist/cjs/config/config.cjs +0 -4
- package/dist/cjs/config/index.cjs +0 -3
- package/dist/cjs/config/network.cjs +0 -27
- package/dist/cjs/datasets/captcha.cjs +2 -0
- package/dist/cjs/datasets/index.cjs +1 -0
- package/dist/cjs/dist/config/config.cjs +0 -4
- package/dist/cjs/dist/config/index.cjs +0 -3
- package/dist/cjs/dist/config/network.cjs +0 -24
- package/dist/cjs/dist/datasets/captcha.cjs +2 -0
- package/dist/cjs/dist/datasets/index.cjs +1 -0
- package/dist/cjs/dist/index.cjs +2 -4
- package/dist/cjs/dist/procaptcha/index.cjs +3 -0
- package/dist/cjs/dist/procaptcha/token.cjs +33 -11
- package/dist/cjs/dist/provider/api.cjs +4 -9
- package/dist/cjs/dist/provider/scheduler.cjs +1 -0
- package/dist/cjs/index.cjs +6 -7
- package/dist/cjs/procaptcha/index.cjs +3 -0
- package/dist/cjs/procaptcha/token.cjs +33 -11
- package/dist/cjs/provider/api.cjs +4 -9
- package/dist/cjs/provider/scheduler.cjs +1 -0
- package/dist/config/config.d.ts +4 -350
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +0 -4
- package/dist/config/config.js.map +1 -1
- package/dist/config/network.d.ts +0 -82
- package/dist/config/network.d.ts.map +1 -1
- package/dist/config/network.js +1 -22
- package/dist/config/network.js.map +1 -1
- package/dist/datasets/captcha.d.ts +17 -30
- package/dist/datasets/captcha.d.ts.map +1 -1
- package/dist/datasets/captcha.js +2 -1
- package/dist/datasets/captcha.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/procaptcha/api.d.ts +1 -4
- package/dist/procaptcha/api.d.ts.map +1 -1
- package/dist/procaptcha/manager.d.ts +0 -1
- package/dist/procaptcha/manager.d.ts.map +1 -1
- package/dist/procaptcha/token.d.ts +87 -29
- package/dist/procaptcha/token.d.ts.map +1 -1
- package/dist/procaptcha/token.js +29 -10
- package/dist/procaptcha/token.js.map +1 -1
- package/dist/provider/api.d.ts +19 -27
- package/dist/provider/api.d.ts.map +1 -1
- package/dist/provider/api.js +4 -9
- package/dist/provider/api.js.map +1 -1
- package/dist/provider/scheduler.d.ts +2 -1
- package/dist/provider/scheduler.d.ts.map +1 -1
- package/dist/provider/scheduler.js +1 -0
- package/dist/provider/scheduler.js.map +1 -1
- package/package.json +50 -50
- package/dist/cjs/config/enumMap.cjs +0 -8
- package/dist/cjs/dist/config/enumMap.cjs +0 -8
- package/dist/cjs/dist/networks/index.cjs +0 -52
- package/dist/cjs/networks/index.cjs +0 -58
- package/dist/networks/index.d.ts +0 -4
- package/dist/networks/index.d.ts.map +0 -1
- package/dist/networks/index.js +0 -61
- package/dist/networks/index.js.map +0 -1
package/dist/config/config.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import type { input } from "zod";
|
|
|
2
2
|
import type { output } from "zod";
|
|
3
3
|
import type { infer as zInfer } from "zod";
|
|
4
4
|
import z from "zod";
|
|
5
|
-
import { ProsopoNetworkSchema } from "./network.js";
|
|
6
5
|
export declare const DatabaseTypes: z.ZodEnum<["mongo", "mongoMemory"]>;
|
|
7
6
|
export declare const EnvironmentTypesSchema: z.ZodEnum<["development", "staging", "production"]>;
|
|
8
7
|
export type EnvironmentTypes = zInfer<typeof EnvironmentTypesSchema>;
|
|
@@ -39,7 +38,6 @@ export type DatabaseConfigOutput = output<typeof DatabaseConfigSchema>;
|
|
|
39
38
|
export declare const ProsopoBaseConfigSchema: z.ZodObject<{
|
|
40
39
|
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
41
40
|
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
42
|
-
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden", "astar"]>>;
|
|
43
41
|
account: z.ZodObject<{
|
|
44
42
|
address: z.ZodOptional<z.ZodString>;
|
|
45
43
|
secret: z.ZodOptional<z.ZodString>;
|
|
@@ -56,7 +54,6 @@ export declare const ProsopoBaseConfigSchema: z.ZodObject<{
|
|
|
56
54
|
}, "strip", z.ZodTypeAny, {
|
|
57
55
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
58
56
|
defaultEnvironment: "development" | "staging" | "production";
|
|
59
|
-
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
60
57
|
account: {
|
|
61
58
|
secret?: string | undefined;
|
|
62
59
|
address?: string | undefined;
|
|
@@ -70,7 +67,6 @@ export declare const ProsopoBaseConfigSchema: z.ZodObject<{
|
|
|
70
67
|
};
|
|
71
68
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
72
69
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
73
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
74
70
|
}>;
|
|
75
71
|
export declare const PolkadotSecretJSONSpec: z.ZodObject<{
|
|
76
72
|
encoded: z.ZodString;
|
|
@@ -102,26 +98,26 @@ export declare const PolkadotSecretJSONSpec: z.ZodObject<{
|
|
|
102
98
|
whenCreated: number;
|
|
103
99
|
}>;
|
|
104
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
address: string;
|
|
102
|
+
encoded: string;
|
|
105
103
|
encoding: {
|
|
106
104
|
type: string[];
|
|
107
105
|
version: string;
|
|
108
106
|
content: string[];
|
|
109
107
|
};
|
|
110
|
-
address: string;
|
|
111
|
-
encoded: string;
|
|
112
108
|
meta: {
|
|
113
109
|
name: string;
|
|
114
110
|
genesisHash: string;
|
|
115
111
|
whenCreated: number;
|
|
116
112
|
};
|
|
117
113
|
}, {
|
|
114
|
+
address: string;
|
|
115
|
+
encoded: string;
|
|
118
116
|
encoding: {
|
|
119
117
|
type: string[];
|
|
120
118
|
version: string;
|
|
121
119
|
content: string[];
|
|
122
120
|
};
|
|
123
|
-
address: string;
|
|
124
|
-
encoded: string;
|
|
125
121
|
meta: {
|
|
126
122
|
name: string;
|
|
127
123
|
genesisHash: string;
|
|
@@ -132,7 +128,6 @@ export type PolkadotSecretJSON = zInfer<typeof PolkadotSecretJSONSpec>;
|
|
|
132
128
|
export declare const ProsopoBasicConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
133
129
|
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
134
130
|
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
135
|
-
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden", "astar"]>>;
|
|
136
131
|
account: z.ZodObject<{
|
|
137
132
|
address: z.ZodOptional<z.ZodString>;
|
|
138
133
|
secret: z.ZodOptional<z.ZodString>;
|
|
@@ -147,53 +142,6 @@ export declare const ProsopoBasicConfigSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
147
142
|
password?: string | undefined;
|
|
148
143
|
}>;
|
|
149
144
|
}, {
|
|
150
|
-
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
151
|
-
contract: z.ZodObject<{
|
|
152
|
-
address: z.ZodString;
|
|
153
|
-
name: z.ZodString;
|
|
154
|
-
}, "strip", z.ZodTypeAny, {
|
|
155
|
-
name: string;
|
|
156
|
-
address: string;
|
|
157
|
-
}, {
|
|
158
|
-
name: string;
|
|
159
|
-
address: string;
|
|
160
|
-
}>;
|
|
161
|
-
endpoint: z.ZodArray<z.ZodString, "many">;
|
|
162
|
-
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
163
|
-
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
164
|
-
}, "strip", z.ZodTypeAny, {
|
|
165
|
-
contract: {
|
|
166
|
-
name: string;
|
|
167
|
-
address: string;
|
|
168
|
-
};
|
|
169
|
-
endpoint: string[];
|
|
170
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
171
|
-
ss58Format: number;
|
|
172
|
-
}, {
|
|
173
|
-
contract: {
|
|
174
|
-
name: string;
|
|
175
|
-
address: string;
|
|
176
|
-
};
|
|
177
|
-
endpoint: string[];
|
|
178
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
179
|
-
ss58Format?: number | undefined;
|
|
180
|
-
}>>, Record<"development" | "rococo" | "shiden" | "astar", {
|
|
181
|
-
contract: {
|
|
182
|
-
name: string;
|
|
183
|
-
address: string;
|
|
184
|
-
};
|
|
185
|
-
endpoint: string[];
|
|
186
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
187
|
-
ss58Format: number;
|
|
188
|
-
}>, Record<string, {
|
|
189
|
-
contract: {
|
|
190
|
-
name: string;
|
|
191
|
-
address: string;
|
|
192
|
-
};
|
|
193
|
-
endpoint: string[];
|
|
194
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
195
|
-
ss58Format?: number | undefined;
|
|
196
|
-
}>>>;
|
|
197
145
|
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
198
146
|
type: z.ZodString;
|
|
199
147
|
endpoint: z.ZodString;
|
|
@@ -214,21 +162,11 @@ export declare const ProsopoBasicConfigSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
214
162
|
}>, "strip", z.ZodTypeAny, {
|
|
215
163
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
216
164
|
defaultEnvironment: "development" | "staging" | "production";
|
|
217
|
-
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
218
165
|
account: {
|
|
219
166
|
secret?: string | undefined;
|
|
220
167
|
address?: string | undefined;
|
|
221
168
|
password?: string | undefined;
|
|
222
169
|
};
|
|
223
|
-
networks: Record<"development" | "rococo" | "shiden" | "astar", {
|
|
224
|
-
contract: {
|
|
225
|
-
name: string;
|
|
226
|
-
address: string;
|
|
227
|
-
};
|
|
228
|
-
endpoint: string[];
|
|
229
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
230
|
-
ss58Format: number;
|
|
231
|
-
}>;
|
|
232
170
|
database?: Partial<Record<"development" | "staging" | "production", {
|
|
233
171
|
type: string;
|
|
234
172
|
endpoint: string;
|
|
@@ -244,16 +182,6 @@ export declare const ProsopoBasicConfigSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
244
182
|
};
|
|
245
183
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
246
184
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
247
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
248
|
-
networks?: Record<string, {
|
|
249
|
-
contract: {
|
|
250
|
-
name: string;
|
|
251
|
-
address: string;
|
|
252
|
-
};
|
|
253
|
-
endpoint: string[];
|
|
254
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
255
|
-
ss58Format?: number | undefined;
|
|
256
|
-
}> | undefined;
|
|
257
185
|
database?: Partial<Record<"development" | "staging" | "production", {
|
|
258
186
|
type: string;
|
|
259
187
|
endpoint: string;
|
|
@@ -262,8 +190,6 @@ export declare const ProsopoBasicConfigSchema: z.ZodObject<z.objectUtil.extendSh
|
|
|
262
190
|
}>> | undefined;
|
|
263
191
|
devOnlyWatchEvents?: boolean | undefined;
|
|
264
192
|
}>;
|
|
265
|
-
export type ProsopoNetworksSchemaInput = input<typeof ProsopoNetworkSchema>;
|
|
266
|
-
export type ProsopoNetworksSchemaOutput = output<typeof ProsopoNetworkSchema>;
|
|
267
193
|
export type ProsopoBasicConfigInput = input<typeof ProsopoBasicConfigSchema>;
|
|
268
194
|
export type ProsopoBasicConfigOutput = output<typeof ProsopoBasicConfigSchema>;
|
|
269
195
|
export declare const ProsopoCaptchaCountConfigSchema: z.ZodObject<{
|
|
@@ -323,7 +249,6 @@ export declare const ProsopoCaptchaSolutionConfigSchema: z.ZodObject<{
|
|
|
323
249
|
export declare const ProsopoClientConfigSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
324
250
|
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
325
251
|
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
326
|
-
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden", "astar"]>>;
|
|
327
252
|
account: z.ZodObject<{
|
|
328
253
|
address: z.ZodOptional<z.ZodString>;
|
|
329
254
|
secret: z.ZodOptional<z.ZodString>;
|
|
@@ -338,53 +263,6 @@ export declare const ProsopoClientConfigSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
338
263
|
password?: string | undefined;
|
|
339
264
|
}>;
|
|
340
265
|
}, {
|
|
341
|
-
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
342
|
-
contract: z.ZodObject<{
|
|
343
|
-
address: z.ZodString;
|
|
344
|
-
name: z.ZodString;
|
|
345
|
-
}, "strip", z.ZodTypeAny, {
|
|
346
|
-
name: string;
|
|
347
|
-
address: string;
|
|
348
|
-
}, {
|
|
349
|
-
name: string;
|
|
350
|
-
address: string;
|
|
351
|
-
}>;
|
|
352
|
-
endpoint: z.ZodArray<z.ZodString, "many">;
|
|
353
|
-
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
354
|
-
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
355
|
-
}, "strip", z.ZodTypeAny, {
|
|
356
|
-
contract: {
|
|
357
|
-
name: string;
|
|
358
|
-
address: string;
|
|
359
|
-
};
|
|
360
|
-
endpoint: string[];
|
|
361
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
362
|
-
ss58Format: number;
|
|
363
|
-
}, {
|
|
364
|
-
contract: {
|
|
365
|
-
name: string;
|
|
366
|
-
address: string;
|
|
367
|
-
};
|
|
368
|
-
endpoint: string[];
|
|
369
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
370
|
-
ss58Format?: number | undefined;
|
|
371
|
-
}>>, Record<"development" | "rococo" | "shiden" | "astar", {
|
|
372
|
-
contract: {
|
|
373
|
-
name: string;
|
|
374
|
-
address: string;
|
|
375
|
-
};
|
|
376
|
-
endpoint: string[];
|
|
377
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
378
|
-
ss58Format: number;
|
|
379
|
-
}>, Record<string, {
|
|
380
|
-
contract: {
|
|
381
|
-
name: string;
|
|
382
|
-
address: string;
|
|
383
|
-
};
|
|
384
|
-
endpoint: string[];
|
|
385
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
386
|
-
ss58Format?: number | undefined;
|
|
387
|
-
}>>>;
|
|
388
266
|
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
389
267
|
type: z.ZodString;
|
|
390
268
|
endpoint: z.ZodString;
|
|
@@ -411,21 +289,11 @@ export declare const ProsopoClientConfigSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
411
289
|
}>, "strip", z.ZodTypeAny, {
|
|
412
290
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
413
291
|
defaultEnvironment: "development" | "staging" | "production";
|
|
414
|
-
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
415
292
|
account: {
|
|
416
293
|
secret?: string | undefined;
|
|
417
294
|
address?: string | undefined;
|
|
418
295
|
password?: string | undefined;
|
|
419
296
|
};
|
|
420
|
-
networks: Record<"development" | "rococo" | "shiden" | "astar", {
|
|
421
|
-
contract: {
|
|
422
|
-
name: string;
|
|
423
|
-
address: string;
|
|
424
|
-
};
|
|
425
|
-
endpoint: string[];
|
|
426
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
427
|
-
ss58Format: number;
|
|
428
|
-
}>;
|
|
429
297
|
web2: boolean;
|
|
430
298
|
solutionThreshold: number;
|
|
431
299
|
dappName: string;
|
|
@@ -446,16 +314,6 @@ export declare const ProsopoClientConfigSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
446
314
|
};
|
|
447
315
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
448
316
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
449
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
450
|
-
networks?: Record<string, {
|
|
451
|
-
contract: {
|
|
452
|
-
name: string;
|
|
453
|
-
address: string;
|
|
454
|
-
};
|
|
455
|
-
endpoint: string[];
|
|
456
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
457
|
-
ss58Format?: number | undefined;
|
|
458
|
-
}> | undefined;
|
|
459
317
|
database?: Partial<Record<"development" | "staging" | "production", {
|
|
460
318
|
type: string;
|
|
461
319
|
endpoint: string;
|
|
@@ -542,7 +400,6 @@ export type CaptchaTimeoutOutput = output<typeof CaptchaTimeoutSchema>;
|
|
|
542
400
|
export declare const ProsopoServerConfigSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
543
401
|
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
544
402
|
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
545
|
-
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden", "astar"]>>;
|
|
546
403
|
account: z.ZodObject<{
|
|
547
404
|
address: z.ZodOptional<z.ZodString>;
|
|
548
405
|
secret: z.ZodOptional<z.ZodString>;
|
|
@@ -557,53 +414,6 @@ export declare const ProsopoServerConfigSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
557
414
|
password?: string | undefined;
|
|
558
415
|
}>;
|
|
559
416
|
}, {
|
|
560
|
-
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
561
|
-
contract: z.ZodObject<{
|
|
562
|
-
address: z.ZodString;
|
|
563
|
-
name: z.ZodString;
|
|
564
|
-
}, "strip", z.ZodTypeAny, {
|
|
565
|
-
name: string;
|
|
566
|
-
address: string;
|
|
567
|
-
}, {
|
|
568
|
-
name: string;
|
|
569
|
-
address: string;
|
|
570
|
-
}>;
|
|
571
|
-
endpoint: z.ZodArray<z.ZodString, "many">;
|
|
572
|
-
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
573
|
-
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
574
|
-
}, "strip", z.ZodTypeAny, {
|
|
575
|
-
contract: {
|
|
576
|
-
name: string;
|
|
577
|
-
address: string;
|
|
578
|
-
};
|
|
579
|
-
endpoint: string[];
|
|
580
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
581
|
-
ss58Format: number;
|
|
582
|
-
}, {
|
|
583
|
-
contract: {
|
|
584
|
-
name: string;
|
|
585
|
-
address: string;
|
|
586
|
-
};
|
|
587
|
-
endpoint: string[];
|
|
588
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
589
|
-
ss58Format?: number | undefined;
|
|
590
|
-
}>>, Record<"development" | "rococo" | "shiden" | "astar", {
|
|
591
|
-
contract: {
|
|
592
|
-
name: string;
|
|
593
|
-
address: string;
|
|
594
|
-
};
|
|
595
|
-
endpoint: string[];
|
|
596
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
597
|
-
ss58Format: number;
|
|
598
|
-
}>, Record<string, {
|
|
599
|
-
contract: {
|
|
600
|
-
name: string;
|
|
601
|
-
address: string;
|
|
602
|
-
};
|
|
603
|
-
endpoint: string[];
|
|
604
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
605
|
-
ss58Format?: number | undefined;
|
|
606
|
-
}>>>;
|
|
607
417
|
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
608
418
|
type: z.ZodString;
|
|
609
419
|
endpoint: z.ZodString;
|
|
@@ -716,21 +526,11 @@ export declare const ProsopoServerConfigSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
716
526
|
};
|
|
717
527
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
718
528
|
defaultEnvironment: "development" | "staging" | "production";
|
|
719
|
-
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
720
529
|
account: {
|
|
721
530
|
secret?: string | undefined;
|
|
722
531
|
address?: string | undefined;
|
|
723
532
|
password?: string | undefined;
|
|
724
533
|
};
|
|
725
|
-
networks: Record<"development" | "rococo" | "shiden" | "astar", {
|
|
726
|
-
contract: {
|
|
727
|
-
name: string;
|
|
728
|
-
address: string;
|
|
729
|
-
};
|
|
730
|
-
endpoint: string[];
|
|
731
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
732
|
-
ss58Format: number;
|
|
733
|
-
}>;
|
|
734
534
|
web2: boolean;
|
|
735
535
|
solutionThreshold: number;
|
|
736
536
|
dappName: string;
|
|
@@ -767,16 +567,6 @@ export declare const ProsopoServerConfigSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
767
567
|
} | undefined;
|
|
768
568
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
769
569
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
770
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
771
|
-
networks?: Record<string, {
|
|
772
|
-
contract: {
|
|
773
|
-
name: string;
|
|
774
|
-
address: string;
|
|
775
|
-
};
|
|
776
|
-
endpoint: string[];
|
|
777
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
778
|
-
ss58Format?: number | undefined;
|
|
779
|
-
}> | undefined;
|
|
780
570
|
database?: Partial<Record<"development" | "staging" | "production", {
|
|
781
571
|
type: string;
|
|
782
572
|
endpoint: string;
|
|
@@ -837,7 +627,6 @@ export type ProsopoClientConfigOutput = output<typeof ProsopoClientConfigSchema>
|
|
|
837
627
|
export declare const ProcaptchaConfigSchema: z.ZodIntersection<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
838
628
|
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
839
629
|
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
840
|
-
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden", "astar"]>>;
|
|
841
630
|
account: z.ZodObject<{
|
|
842
631
|
address: z.ZodOptional<z.ZodString>;
|
|
843
632
|
secret: z.ZodOptional<z.ZodString>;
|
|
@@ -852,53 +641,6 @@ export declare const ProcaptchaConfigSchema: z.ZodIntersection<z.ZodObject<z.obj
|
|
|
852
641
|
password?: string | undefined;
|
|
853
642
|
}>;
|
|
854
643
|
}, {
|
|
855
|
-
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
856
|
-
contract: z.ZodObject<{
|
|
857
|
-
address: z.ZodString;
|
|
858
|
-
name: z.ZodString;
|
|
859
|
-
}, "strip", z.ZodTypeAny, {
|
|
860
|
-
name: string;
|
|
861
|
-
address: string;
|
|
862
|
-
}, {
|
|
863
|
-
name: string;
|
|
864
|
-
address: string;
|
|
865
|
-
}>;
|
|
866
|
-
endpoint: z.ZodArray<z.ZodString, "many">;
|
|
867
|
-
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
868
|
-
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
869
|
-
}, "strip", z.ZodTypeAny, {
|
|
870
|
-
contract: {
|
|
871
|
-
name: string;
|
|
872
|
-
address: string;
|
|
873
|
-
};
|
|
874
|
-
endpoint: string[];
|
|
875
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
876
|
-
ss58Format: number;
|
|
877
|
-
}, {
|
|
878
|
-
contract: {
|
|
879
|
-
name: string;
|
|
880
|
-
address: string;
|
|
881
|
-
};
|
|
882
|
-
endpoint: string[];
|
|
883
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
884
|
-
ss58Format?: number | undefined;
|
|
885
|
-
}>>, Record<"development" | "rococo" | "shiden" | "astar", {
|
|
886
|
-
contract: {
|
|
887
|
-
name: string;
|
|
888
|
-
address: string;
|
|
889
|
-
};
|
|
890
|
-
endpoint: string[];
|
|
891
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
892
|
-
ss58Format: number;
|
|
893
|
-
}>, Record<string, {
|
|
894
|
-
contract: {
|
|
895
|
-
name: string;
|
|
896
|
-
address: string;
|
|
897
|
-
};
|
|
898
|
-
endpoint: string[];
|
|
899
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
900
|
-
ss58Format?: number | undefined;
|
|
901
|
-
}>>>;
|
|
902
644
|
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
903
645
|
type: z.ZodString;
|
|
904
646
|
endpoint: z.ZodString;
|
|
@@ -925,21 +667,11 @@ export declare const ProcaptchaConfigSchema: z.ZodIntersection<z.ZodObject<z.obj
|
|
|
925
667
|
}>, "strip", z.ZodTypeAny, {
|
|
926
668
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
927
669
|
defaultEnvironment: "development" | "staging" | "production";
|
|
928
|
-
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
929
670
|
account: {
|
|
930
671
|
secret?: string | undefined;
|
|
931
672
|
address?: string | undefined;
|
|
932
673
|
password?: string | undefined;
|
|
933
674
|
};
|
|
934
|
-
networks: Record<"development" | "rococo" | "shiden" | "astar", {
|
|
935
|
-
contract: {
|
|
936
|
-
name: string;
|
|
937
|
-
address: string;
|
|
938
|
-
};
|
|
939
|
-
endpoint: string[];
|
|
940
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
941
|
-
ss58Format: number;
|
|
942
|
-
}>;
|
|
943
675
|
web2: boolean;
|
|
944
676
|
solutionThreshold: number;
|
|
945
677
|
dappName: string;
|
|
@@ -960,16 +692,6 @@ export declare const ProcaptchaConfigSchema: z.ZodIntersection<z.ZodObject<z.obj
|
|
|
960
692
|
};
|
|
961
693
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
962
694
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
963
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
964
|
-
networks?: Record<string, {
|
|
965
|
-
contract: {
|
|
966
|
-
name: string;
|
|
967
|
-
address: string;
|
|
968
|
-
};
|
|
969
|
-
endpoint: string[];
|
|
970
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
971
|
-
ss58Format?: number | undefined;
|
|
972
|
-
}> | undefined;
|
|
973
695
|
database?: Partial<Record<"development" | "staging" | "production", {
|
|
974
696
|
type: string;
|
|
975
697
|
endpoint: string;
|
|
@@ -1158,7 +880,6 @@ export type ProcaptchaClientConfigOutput = output<typeof ProcaptchaConfigSchema>
|
|
|
1158
880
|
export declare const ProsopoConfigSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1159
881
|
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
1160
882
|
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
1161
|
-
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden", "astar"]>>;
|
|
1162
883
|
account: z.ZodObject<{
|
|
1163
884
|
address: z.ZodOptional<z.ZodString>;
|
|
1164
885
|
secret: z.ZodOptional<z.ZodString>;
|
|
@@ -1173,53 +894,6 @@ export declare const ProsopoConfigSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1173
894
|
password?: string | undefined;
|
|
1174
895
|
}>;
|
|
1175
896
|
}, {
|
|
1176
|
-
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1177
|
-
contract: z.ZodObject<{
|
|
1178
|
-
address: z.ZodString;
|
|
1179
|
-
name: z.ZodString;
|
|
1180
|
-
}, "strip", z.ZodTypeAny, {
|
|
1181
|
-
name: string;
|
|
1182
|
-
address: string;
|
|
1183
|
-
}, {
|
|
1184
|
-
name: string;
|
|
1185
|
-
address: string;
|
|
1186
|
-
}>;
|
|
1187
|
-
endpoint: z.ZodArray<z.ZodString, "many">;
|
|
1188
|
-
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
1189
|
-
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
1190
|
-
}, "strip", z.ZodTypeAny, {
|
|
1191
|
-
contract: {
|
|
1192
|
-
name: string;
|
|
1193
|
-
address: string;
|
|
1194
|
-
};
|
|
1195
|
-
endpoint: string[];
|
|
1196
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1197
|
-
ss58Format: number;
|
|
1198
|
-
}, {
|
|
1199
|
-
contract: {
|
|
1200
|
-
name: string;
|
|
1201
|
-
address: string;
|
|
1202
|
-
};
|
|
1203
|
-
endpoint: string[];
|
|
1204
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1205
|
-
ss58Format?: number | undefined;
|
|
1206
|
-
}>>, Record<"development" | "rococo" | "shiden" | "astar", {
|
|
1207
|
-
contract: {
|
|
1208
|
-
name: string;
|
|
1209
|
-
address: string;
|
|
1210
|
-
};
|
|
1211
|
-
endpoint: string[];
|
|
1212
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1213
|
-
ss58Format: number;
|
|
1214
|
-
}>, Record<string, {
|
|
1215
|
-
contract: {
|
|
1216
|
-
name: string;
|
|
1217
|
-
address: string;
|
|
1218
|
-
};
|
|
1219
|
-
endpoint: string[];
|
|
1220
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1221
|
-
ss58Format?: number | undefined;
|
|
1222
|
-
}>>>;
|
|
1223
897
|
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
1224
898
|
type: z.ZodString;
|
|
1225
899
|
endpoint: z.ZodString;
|
|
@@ -1446,21 +1120,11 @@ export declare const ProsopoConfigSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1446
1120
|
};
|
|
1447
1121
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
1448
1122
|
defaultEnvironment: "development" | "staging" | "production";
|
|
1449
|
-
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
1450
1123
|
account: {
|
|
1451
1124
|
secret?: string | undefined;
|
|
1452
1125
|
address?: string | undefined;
|
|
1453
1126
|
password?: string | undefined;
|
|
1454
1127
|
};
|
|
1455
|
-
networks: Record<"development" | "rococo" | "shiden" | "astar", {
|
|
1456
|
-
contract: {
|
|
1457
|
-
name: string;
|
|
1458
|
-
address: string;
|
|
1459
|
-
};
|
|
1460
|
-
endpoint: string[];
|
|
1461
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1462
|
-
ss58Format: number;
|
|
1463
|
-
}>;
|
|
1464
1128
|
captchaSolutions: {
|
|
1465
1129
|
requiredNumberOfSolutions: number;
|
|
1466
1130
|
solutionWinningPercentage: number;
|
|
@@ -1565,16 +1229,6 @@ export declare const ProsopoConfigSchema: z.ZodObject<z.objectUtil.extendShape<z
|
|
|
1565
1229
|
} | undefined;
|
|
1566
1230
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
1567
1231
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
1568
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
1569
|
-
networks?: Record<string, {
|
|
1570
|
-
contract: {
|
|
1571
|
-
name: string;
|
|
1572
|
-
address: string;
|
|
1573
|
-
};
|
|
1574
|
-
endpoint: string[];
|
|
1575
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1576
|
-
ss58Format?: number | undefined;
|
|
1577
|
-
}> | undefined;
|
|
1578
1232
|
database?: Partial<Record<"development" | "staging" | "production", {
|
|
1579
1233
|
type: string;
|
|
1580
1234
|
endpoint: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAIjC,OAAO,KAAK,EAAE,MAAM,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB/B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
package/dist/config/config.js
CHANGED
|
@@ -4,9 +4,7 @@ import { object } from "zod";
|
|
|
4
4
|
import { record, string, enum as zEnum } from "zod";
|
|
5
5
|
import { union } from "zod";
|
|
6
6
|
import z, { boolean } from "zod";
|
|
7
|
-
import networks from "../networks/index.js";
|
|
8
7
|
import { ApiPathRateLimits, ProviderDefaultRateLimits, } from "../provider/index.js";
|
|
9
|
-
import { NetworkNamesSchema, ProsopoNetworkSchema } from "./network.js";
|
|
10
8
|
import { DEFAULT_IMAGE_CAPTCHA_SOLUTION_TIMEOUT, DEFAULT_IMAGE_CAPTCHA_TIMEOUT, DEFAULT_IMAGE_CAPTCHA_VERIFIED_TIMEOUT, DEFAULT_IMAGE_MAX_VERIFIED_TIME_CACHED, DEFAULT_MAX_VERIFIED_TIME_CONTRACT, DEFAULT_POW_CAPTCHA_CACHED_TIMEOUT, DEFAULT_POW_CAPTCHA_SOLUTION_TIMEOUT, DEFAULT_POW_CAPTCHA_VERIFIED_TIMEOUT, } from "./timeouts.js";
|
|
11
9
|
const LogLevel = zEnum([
|
|
12
10
|
"trace",
|
|
@@ -36,7 +34,6 @@ export const BatchCommitConfigSchema = object({
|
|
|
36
34
|
export const ProsopoBaseConfigSchema = object({
|
|
37
35
|
logLevel: LogLevel.optional().default(LogLevel.enum.info),
|
|
38
36
|
defaultEnvironment: EnvironmentTypesSchema.default(EnvironmentTypesSchema.Values.production),
|
|
39
|
-
defaultNetwork: NetworkNamesSchema.default(NetworkNamesSchema.Values.astar),
|
|
40
37
|
account: object({
|
|
41
38
|
address: string().optional(),
|
|
42
39
|
secret: string().optional(),
|
|
@@ -58,7 +55,6 @@ export const PolkadotSecretJSONSpec = z.object({
|
|
|
58
55
|
}),
|
|
59
56
|
});
|
|
60
57
|
export const ProsopoBasicConfigSchema = ProsopoBaseConfigSchema.merge(object({
|
|
61
|
-
networks: ProsopoNetworkSchema.default(networks),
|
|
62
58
|
database: DatabaseConfigSchema.optional(),
|
|
63
59
|
devOnlyWatchEvents: boolean().optional(),
|
|
64
60
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAE5B,OAAO,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAE7B,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAE5B,OAAO,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EACL,iBAAiB,EACjB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,sCAAsC,E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