@prosopo/types 0.3.41 → 0.3.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/config/config.cjs +17 -2
- package/dist/cjs/config/index.cjs +2 -1
- package/dist/cjs/config/network.cjs +5 -5
- package/dist/cjs/index.cjs +2 -1
- package/dist/cjs/networks/index.cjs +17 -3
- package/dist/config/config.d.ts +395 -337
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +18 -4
- package/dist/config/config.js.map +1 -1
- package/dist/config/network.d.ts +11 -11
- package/dist/config/network.d.ts.map +1 -1
- package/dist/config/network.js +4 -4
- package/dist/config/network.js.map +1 -1
- package/dist/contract/interface.d.ts +2 -0
- package/dist/contract/interface.d.ts.map +1 -1
- package/dist/networks/index.d.ts.map +1 -1
- package/dist/networks/index.js +25 -3
- package/dist/networks/index.js.map +1 -1
- package/dist/provider/accounts.d.ts +2 -2
- package/dist/provider/accounts.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/config/config.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProsopoNetworkSchema } from './network.js';
|
|
2
2
|
import { input } from 'zod';
|
|
3
3
|
import { output } from 'zod';
|
|
4
4
|
import { infer as zInfer } from 'zod';
|
|
5
|
-
|
|
6
|
-
export declare const
|
|
5
|
+
import z from 'zod';
|
|
6
|
+
export declare const DatabaseTypes: z.ZodEnum<["mongo", "mongoMemory"]>;
|
|
7
|
+
export declare const EnvironmentTypesSchema: z.ZodEnum<["development", "staging", "production"]>;
|
|
7
8
|
export type EnvironmentTypes = zInfer<typeof EnvironmentTypesSchema>;
|
|
8
9
|
export declare const DEFAULT_IMAGE_CAPTCHA_TIMEOUT: number;
|
|
9
10
|
export declare const DEFAULT_IMAGE_CAPTCHA_SOLUTION_TIMEOUT: number;
|
|
@@ -13,12 +14,12 @@ export declare const DEFAULT_POW_CAPTCHA_SOLUTION_TIMEOUT: number;
|
|
|
13
14
|
export declare const DEFAULT_POW_CAPTCHA_VERIFIED_TIMEOUT: number;
|
|
14
15
|
export declare const DEFAULT_POW_CAPTCHA_CACHED_TIMEOUT: number;
|
|
15
16
|
export declare const DEFAULT_MAX_VERIFIED_TIME_CONTRACT: number;
|
|
16
|
-
export declare const DatabaseConfigSchema:
|
|
17
|
-
type:
|
|
18
|
-
endpoint:
|
|
19
|
-
dbname:
|
|
20
|
-
authSource:
|
|
21
|
-
}, "strip",
|
|
17
|
+
export declare const DatabaseConfigSchema: z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
18
|
+
type: z.ZodString;
|
|
19
|
+
endpoint: z.ZodString;
|
|
20
|
+
dbname: z.ZodString;
|
|
21
|
+
authSource: z.ZodString;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
23
|
type: string;
|
|
23
24
|
endpoint: string;
|
|
24
25
|
dbname: string;
|
|
@@ -29,10 +30,10 @@ export declare const DatabaseConfigSchema: import("zod").ZodRecord<import("zod")
|
|
|
29
30
|
dbname: string;
|
|
30
31
|
authSource: string;
|
|
31
32
|
}>>;
|
|
32
|
-
export declare const BatchCommitConfigSchema:
|
|
33
|
-
interval:
|
|
34
|
-
maxBatchExtrinsicPercentage:
|
|
35
|
-
}, "strip",
|
|
33
|
+
export declare const BatchCommitConfigSchema: z.ZodObject<{
|
|
34
|
+
interval: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
35
|
+
maxBatchExtrinsicPercentage: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
37
|
interval: number;
|
|
37
38
|
maxBatchExtrinsicPercentage: number;
|
|
38
39
|
}, {
|
|
@@ -43,15 +44,15 @@ export type BatchCommitConfigInput = input<typeof BatchCommitConfigSchema>;
|
|
|
43
44
|
export type BatchCommitConfigOutput = output<typeof BatchCommitConfigSchema>;
|
|
44
45
|
export type DatabaseConfigInput = input<typeof DatabaseConfigSchema>;
|
|
45
46
|
export type DatabaseConfigOutput = output<typeof DatabaseConfigSchema>;
|
|
46
|
-
export declare const ProsopoBaseConfigSchema:
|
|
47
|
-
logLevel:
|
|
48
|
-
defaultEnvironment:
|
|
49
|
-
defaultNetwork:
|
|
50
|
-
account:
|
|
51
|
-
address:
|
|
52
|
-
secret:
|
|
53
|
-
password:
|
|
54
|
-
}, "strip",
|
|
47
|
+
export declare const ProsopoBaseConfigSchema: z.ZodObject<{
|
|
48
|
+
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
49
|
+
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
50
|
+
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden", "astar"]>>;
|
|
51
|
+
account: z.ZodObject<{
|
|
52
|
+
address: z.ZodOptional<z.ZodString>;
|
|
53
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
54
|
+
password: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
56
|
address?: string | undefined;
|
|
56
57
|
secret?: string | undefined;
|
|
57
58
|
password?: string | undefined;
|
|
@@ -60,10 +61,10 @@ export declare const ProsopoBaseConfigSchema: import("zod").ZodObject<{
|
|
|
60
61
|
secret?: string | undefined;
|
|
61
62
|
password?: string | undefined;
|
|
62
63
|
}>;
|
|
63
|
-
}, "strip",
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
65
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
65
66
|
defaultEnvironment: "development" | "staging" | "production";
|
|
66
|
-
defaultNetwork: "development" | "rococo" | "shiden";
|
|
67
|
+
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
67
68
|
account: {
|
|
68
69
|
address?: string | undefined;
|
|
69
70
|
secret?: string | undefined;
|
|
@@ -77,17 +78,74 @@ export declare const ProsopoBaseConfigSchema: import("zod").ZodObject<{
|
|
|
77
78
|
};
|
|
78
79
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
79
80
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
80
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
81
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
81
82
|
}>;
|
|
82
|
-
export declare const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
83
|
+
export declare const PolkadotSecretJSONSpec: z.ZodObject<{
|
|
84
|
+
encoded: z.ZodString;
|
|
85
|
+
encoding: z.ZodObject<{
|
|
86
|
+
content: z.ZodArray<z.ZodString, "many">;
|
|
87
|
+
type: z.ZodArray<z.ZodString, "many">;
|
|
88
|
+
version: z.ZodString;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
type: string[];
|
|
91
|
+
content: string[];
|
|
92
|
+
version: string;
|
|
93
|
+
}, {
|
|
94
|
+
type: string[];
|
|
95
|
+
content: string[];
|
|
96
|
+
version: string;
|
|
97
|
+
}>;
|
|
98
|
+
address: z.ZodString;
|
|
99
|
+
meta: z.ZodObject<{
|
|
100
|
+
genesisHash: z.ZodString;
|
|
101
|
+
name: z.ZodString;
|
|
102
|
+
whenCreated: z.ZodNumber;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
name: string;
|
|
105
|
+
genesisHash: string;
|
|
106
|
+
whenCreated: number;
|
|
107
|
+
}, {
|
|
108
|
+
name: string;
|
|
109
|
+
genesisHash: string;
|
|
110
|
+
whenCreated: number;
|
|
111
|
+
}>;
|
|
112
|
+
}, "strip", z.ZodTypeAny, {
|
|
113
|
+
address: string;
|
|
114
|
+
encoded: string;
|
|
115
|
+
encoding: {
|
|
116
|
+
type: string[];
|
|
117
|
+
content: string[];
|
|
118
|
+
version: string;
|
|
119
|
+
};
|
|
120
|
+
meta: {
|
|
121
|
+
name: string;
|
|
122
|
+
genesisHash: string;
|
|
123
|
+
whenCreated: number;
|
|
124
|
+
};
|
|
125
|
+
}, {
|
|
126
|
+
address: string;
|
|
127
|
+
encoded: string;
|
|
128
|
+
encoding: {
|
|
129
|
+
type: string[];
|
|
130
|
+
content: string[];
|
|
131
|
+
version: string;
|
|
132
|
+
};
|
|
133
|
+
meta: {
|
|
134
|
+
name: string;
|
|
135
|
+
genesisHash: string;
|
|
136
|
+
whenCreated: number;
|
|
137
|
+
};
|
|
138
|
+
}>;
|
|
139
|
+
export type PolkadotSecretJSON = zInfer<typeof PolkadotSecretJSONSpec>;
|
|
140
|
+
export declare const ProsopoBasicConfigSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
141
|
+
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
142
|
+
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
143
|
+
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden", "astar"]>>;
|
|
144
|
+
account: z.ZodObject<{
|
|
145
|
+
address: z.ZodOptional<z.ZodString>;
|
|
146
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
147
|
+
password: z.ZodOptional<z.ZodString>;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
149
|
address?: string | undefined;
|
|
92
150
|
secret?: string | undefined;
|
|
93
151
|
password?: string | undefined;
|
|
@@ -97,22 +155,22 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<import("z
|
|
|
97
155
|
password?: string | undefined;
|
|
98
156
|
}>;
|
|
99
157
|
}, {
|
|
100
|
-
networks:
|
|
101
|
-
endpoint:
|
|
102
|
-
contract:
|
|
103
|
-
address:
|
|
104
|
-
name:
|
|
105
|
-
}, "strip",
|
|
158
|
+
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
159
|
+
endpoint: z.ZodArray<z.ZodString, "many">;
|
|
160
|
+
contract: z.ZodObject<{
|
|
161
|
+
address: z.ZodString;
|
|
162
|
+
name: z.ZodString;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
164
|
address: string;
|
|
107
165
|
name: string;
|
|
108
166
|
}, {
|
|
109
167
|
address: string;
|
|
110
168
|
name: string;
|
|
111
169
|
}>;
|
|
112
|
-
pairType:
|
|
113
|
-
ss58Format:
|
|
114
|
-
}, "strip",
|
|
115
|
-
endpoint: string;
|
|
170
|
+
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
171
|
+
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
172
|
+
}, "strip", z.ZodTypeAny, {
|
|
173
|
+
endpoint: string[];
|
|
116
174
|
contract: {
|
|
117
175
|
address: string;
|
|
118
176
|
name: string;
|
|
@@ -120,15 +178,15 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<import("z
|
|
|
120
178
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
121
179
|
ss58Format: number;
|
|
122
180
|
}, {
|
|
123
|
-
endpoint: string;
|
|
181
|
+
endpoint: string[];
|
|
124
182
|
contract: {
|
|
125
183
|
address: string;
|
|
126
184
|
name: string;
|
|
127
185
|
};
|
|
128
186
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
129
187
|
ss58Format?: number | undefined;
|
|
130
|
-
}>>, Record<"development" | "rococo" | "shiden", {
|
|
131
|
-
endpoint: string;
|
|
188
|
+
}>>, Record<"development" | "rococo" | "shiden" | "astar", {
|
|
189
|
+
endpoint: string[];
|
|
132
190
|
contract: {
|
|
133
191
|
address: string;
|
|
134
192
|
name: string;
|
|
@@ -136,7 +194,7 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<import("z
|
|
|
136
194
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
137
195
|
ss58Format: number;
|
|
138
196
|
}>, Record<string, {
|
|
139
|
-
endpoint: string;
|
|
197
|
+
endpoint: string[];
|
|
140
198
|
contract: {
|
|
141
199
|
address: string;
|
|
142
200
|
name: string;
|
|
@@ -144,12 +202,12 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<import("z
|
|
|
144
202
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
145
203
|
ss58Format?: number | undefined;
|
|
146
204
|
}>>>;
|
|
147
|
-
database:
|
|
148
|
-
type:
|
|
149
|
-
endpoint:
|
|
150
|
-
dbname:
|
|
151
|
-
authSource:
|
|
152
|
-
}, "strip",
|
|
205
|
+
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
206
|
+
type: z.ZodString;
|
|
207
|
+
endpoint: z.ZodString;
|
|
208
|
+
dbname: z.ZodString;
|
|
209
|
+
authSource: z.ZodString;
|
|
210
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
211
|
type: string;
|
|
154
212
|
endpoint: string;
|
|
155
213
|
dbname: string;
|
|
@@ -160,18 +218,18 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<import("z
|
|
|
160
218
|
dbname: string;
|
|
161
219
|
authSource: string;
|
|
162
220
|
}>>>;
|
|
163
|
-
devOnlyWatchEvents:
|
|
164
|
-
}>, "strip",
|
|
221
|
+
devOnlyWatchEvents: z.ZodOptional<z.ZodBoolean>;
|
|
222
|
+
}>, "strip", z.ZodTypeAny, {
|
|
165
223
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
166
224
|
defaultEnvironment: "development" | "staging" | "production";
|
|
167
|
-
defaultNetwork: "development" | "rococo" | "shiden";
|
|
225
|
+
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
168
226
|
account: {
|
|
169
227
|
address?: string | undefined;
|
|
170
228
|
secret?: string | undefined;
|
|
171
229
|
password?: string | undefined;
|
|
172
230
|
};
|
|
173
|
-
networks: Record<"development" | "rococo" | "shiden", {
|
|
174
|
-
endpoint: string;
|
|
231
|
+
networks: Record<"development" | "rococo" | "shiden" | "astar", {
|
|
232
|
+
endpoint: string[];
|
|
175
233
|
contract: {
|
|
176
234
|
address: string;
|
|
177
235
|
name: string;
|
|
@@ -194,9 +252,9 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<import("z
|
|
|
194
252
|
};
|
|
195
253
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
196
254
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
197
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
255
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
198
256
|
networks?: Record<string, {
|
|
199
|
-
endpoint: string;
|
|
257
|
+
endpoint: string[];
|
|
200
258
|
contract: {
|
|
201
259
|
address: string;
|
|
202
260
|
name: string;
|
|
@@ -212,26 +270,26 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<import("z
|
|
|
212
270
|
}>> | undefined;
|
|
213
271
|
devOnlyWatchEvents?: boolean | undefined;
|
|
214
272
|
}>;
|
|
215
|
-
export type ProsopoNetworksSchemaInput = input<typeof
|
|
216
|
-
export type ProsopoNetworksSchemaOutput = output<typeof
|
|
273
|
+
export type ProsopoNetworksSchemaInput = input<typeof ProsopoNetworkSchema>;
|
|
274
|
+
export type ProsopoNetworksSchemaOutput = output<typeof ProsopoNetworkSchema>;
|
|
217
275
|
export type ProsopoBasicConfigInput = input<typeof ProsopoBasicConfigSchema>;
|
|
218
276
|
export type ProsopoBasicConfigOutput = output<typeof ProsopoBasicConfigSchema>;
|
|
219
|
-
export declare const ProsopoCaptchaCountConfigSchema:
|
|
220
|
-
solved:
|
|
221
|
-
count:
|
|
222
|
-
}, "strip",
|
|
277
|
+
export declare const ProsopoCaptchaCountConfigSchema: z.ZodObject<{
|
|
278
|
+
solved: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
279
|
+
count: z.ZodNumber;
|
|
280
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
281
|
count: number;
|
|
224
282
|
}, {
|
|
225
283
|
count: number;
|
|
226
284
|
}>>>;
|
|
227
|
-
unsolved:
|
|
228
|
-
count:
|
|
229
|
-
}, "strip",
|
|
285
|
+
unsolved: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
286
|
+
count: z.ZodNumber;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
230
288
|
count: number;
|
|
231
289
|
}, {
|
|
232
290
|
count: number;
|
|
233
291
|
}>>>;
|
|
234
|
-
}, "strip",
|
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
|
235
293
|
solved: {
|
|
236
294
|
count: number;
|
|
237
295
|
};
|
|
@@ -247,21 +305,21 @@ export declare const ProsopoCaptchaCountConfigSchema: import("zod").ZodObject<{
|
|
|
247
305
|
} | undefined;
|
|
248
306
|
}>;
|
|
249
307
|
export type ProsopoCaptchaCountConfigSchemaInput = input<typeof ProsopoCaptchaCountConfigSchema>;
|
|
250
|
-
export declare const ProsopoImageServerConfigSchema:
|
|
251
|
-
baseURL:
|
|
252
|
-
port:
|
|
253
|
-
}, "strip",
|
|
308
|
+
export declare const ProsopoImageServerConfigSchema: z.ZodObject<{
|
|
309
|
+
baseURL: z.ZodString;
|
|
310
|
+
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
311
|
+
}, "strip", z.ZodTypeAny, {
|
|
254
312
|
baseURL: string;
|
|
255
313
|
port: number;
|
|
256
314
|
}, {
|
|
257
315
|
baseURL: string;
|
|
258
316
|
port?: number | undefined;
|
|
259
317
|
}>;
|
|
260
|
-
export declare const ProsopoCaptchaSolutionConfigSchema:
|
|
261
|
-
requiredNumberOfSolutions:
|
|
262
|
-
solutionWinningPercentage:
|
|
263
|
-
captchaBlockRecency:
|
|
264
|
-
}, "strip",
|
|
318
|
+
export declare const ProsopoCaptchaSolutionConfigSchema: z.ZodObject<{
|
|
319
|
+
requiredNumberOfSolutions: z.ZodNumber;
|
|
320
|
+
solutionWinningPercentage: z.ZodNumber;
|
|
321
|
+
captchaBlockRecency: z.ZodNumber;
|
|
322
|
+
}, "strip", z.ZodTypeAny, {
|
|
265
323
|
requiredNumberOfSolutions: number;
|
|
266
324
|
solutionWinningPercentage: number;
|
|
267
325
|
captchaBlockRecency: number;
|
|
@@ -270,15 +328,15 @@ export declare const ProsopoCaptchaSolutionConfigSchema: import("zod").ZodObject
|
|
|
270
328
|
solutionWinningPercentage: number;
|
|
271
329
|
captchaBlockRecency: number;
|
|
272
330
|
}>;
|
|
273
|
-
export declare const ProsopoClientConfigSchema:
|
|
274
|
-
logLevel:
|
|
275
|
-
defaultEnvironment:
|
|
276
|
-
defaultNetwork:
|
|
277
|
-
account:
|
|
278
|
-
address:
|
|
279
|
-
secret:
|
|
280
|
-
password:
|
|
281
|
-
}, "strip",
|
|
331
|
+
export declare const ProsopoClientConfigSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
332
|
+
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
333
|
+
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
334
|
+
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden", "astar"]>>;
|
|
335
|
+
account: z.ZodObject<{
|
|
336
|
+
address: z.ZodOptional<z.ZodString>;
|
|
337
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
338
|
+
password: z.ZodOptional<z.ZodString>;
|
|
339
|
+
}, "strip", z.ZodTypeAny, {
|
|
282
340
|
address?: string | undefined;
|
|
283
341
|
secret?: string | undefined;
|
|
284
342
|
password?: string | undefined;
|
|
@@ -288,22 +346,22 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<import("
|
|
|
288
346
|
password?: string | undefined;
|
|
289
347
|
}>;
|
|
290
348
|
}, {
|
|
291
|
-
networks:
|
|
292
|
-
endpoint:
|
|
293
|
-
contract:
|
|
294
|
-
address:
|
|
295
|
-
name:
|
|
296
|
-
}, "strip",
|
|
349
|
+
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
350
|
+
endpoint: z.ZodArray<z.ZodString, "many">;
|
|
351
|
+
contract: z.ZodObject<{
|
|
352
|
+
address: z.ZodString;
|
|
353
|
+
name: z.ZodString;
|
|
354
|
+
}, "strip", z.ZodTypeAny, {
|
|
297
355
|
address: string;
|
|
298
356
|
name: string;
|
|
299
357
|
}, {
|
|
300
358
|
address: string;
|
|
301
359
|
name: string;
|
|
302
360
|
}>;
|
|
303
|
-
pairType:
|
|
304
|
-
ss58Format:
|
|
305
|
-
}, "strip",
|
|
306
|
-
endpoint: string;
|
|
361
|
+
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
362
|
+
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
363
|
+
}, "strip", z.ZodTypeAny, {
|
|
364
|
+
endpoint: string[];
|
|
307
365
|
contract: {
|
|
308
366
|
address: string;
|
|
309
367
|
name: string;
|
|
@@ -311,15 +369,15 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<import("
|
|
|
311
369
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
312
370
|
ss58Format: number;
|
|
313
371
|
}, {
|
|
314
|
-
endpoint: string;
|
|
372
|
+
endpoint: string[];
|
|
315
373
|
contract: {
|
|
316
374
|
address: string;
|
|
317
375
|
name: string;
|
|
318
376
|
};
|
|
319
377
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
320
378
|
ss58Format?: number | undefined;
|
|
321
|
-
}>>, Record<"development" | "rococo" | "shiden", {
|
|
322
|
-
endpoint: string;
|
|
379
|
+
}>>, Record<"development" | "rococo" | "shiden" | "astar", {
|
|
380
|
+
endpoint: string[];
|
|
323
381
|
contract: {
|
|
324
382
|
address: string;
|
|
325
383
|
name: string;
|
|
@@ -327,7 +385,7 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<import("
|
|
|
327
385
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
328
386
|
ss58Format: number;
|
|
329
387
|
}>, Record<string, {
|
|
330
|
-
endpoint: string;
|
|
388
|
+
endpoint: string[];
|
|
331
389
|
contract: {
|
|
332
390
|
address: string;
|
|
333
391
|
name: string;
|
|
@@ -335,12 +393,12 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<import("
|
|
|
335
393
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
336
394
|
ss58Format?: number | undefined;
|
|
337
395
|
}>>>;
|
|
338
|
-
database:
|
|
339
|
-
type:
|
|
340
|
-
endpoint:
|
|
341
|
-
dbname:
|
|
342
|
-
authSource:
|
|
343
|
-
}, "strip",
|
|
396
|
+
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
397
|
+
type: z.ZodString;
|
|
398
|
+
endpoint: z.ZodString;
|
|
399
|
+
dbname: z.ZodString;
|
|
400
|
+
authSource: z.ZodString;
|
|
401
|
+
}, "strip", z.ZodTypeAny, {
|
|
344
402
|
type: string;
|
|
345
403
|
endpoint: string;
|
|
346
404
|
dbname: string;
|
|
@@ -351,24 +409,24 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<import("
|
|
|
351
409
|
dbname: string;
|
|
352
410
|
authSource: string;
|
|
353
411
|
}>>>;
|
|
354
|
-
devOnlyWatchEvents:
|
|
412
|
+
devOnlyWatchEvents: z.ZodOptional<z.ZodBoolean>;
|
|
355
413
|
}>, {
|
|
356
|
-
userAccountAddress:
|
|
357
|
-
web2:
|
|
358
|
-
solutionThreshold:
|
|
359
|
-
dappName:
|
|
360
|
-
serverUrl:
|
|
361
|
-
}>, "strip",
|
|
414
|
+
userAccountAddress: z.ZodOptional<z.ZodString>;
|
|
415
|
+
web2: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
416
|
+
solutionThreshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
417
|
+
dappName: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
418
|
+
serverUrl: z.ZodOptional<z.ZodString>;
|
|
419
|
+
}>, "strip", z.ZodTypeAny, {
|
|
362
420
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
363
421
|
defaultEnvironment: "development" | "staging" | "production";
|
|
364
|
-
defaultNetwork: "development" | "rococo" | "shiden";
|
|
422
|
+
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
365
423
|
account: {
|
|
366
424
|
address?: string | undefined;
|
|
367
425
|
secret?: string | undefined;
|
|
368
426
|
password?: string | undefined;
|
|
369
427
|
};
|
|
370
|
-
networks: Record<"development" | "rococo" | "shiden", {
|
|
371
|
-
endpoint: string;
|
|
428
|
+
networks: Record<"development" | "rococo" | "shiden" | "astar", {
|
|
429
|
+
endpoint: string[];
|
|
372
430
|
contract: {
|
|
373
431
|
address: string;
|
|
374
432
|
name: string;
|
|
@@ -396,9 +454,9 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<import("
|
|
|
396
454
|
};
|
|
397
455
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
398
456
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
399
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
457
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
400
458
|
networks?: Record<string, {
|
|
401
|
-
endpoint: string;
|
|
459
|
+
endpoint: string[];
|
|
402
460
|
contract: {
|
|
403
461
|
address: string;
|
|
404
462
|
name: string;
|
|
@@ -419,13 +477,13 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<import("
|
|
|
419
477
|
dappName?: string | undefined;
|
|
420
478
|
serverUrl?: string | undefined;
|
|
421
479
|
}>;
|
|
422
|
-
export declare const CaptchaTimeoutSchema:
|
|
423
|
-
image:
|
|
424
|
-
challengeTimeout:
|
|
425
|
-
solutionTimeout:
|
|
426
|
-
verifiedTimeout:
|
|
427
|
-
cachedTimeout:
|
|
428
|
-
}, "strip",
|
|
480
|
+
export declare const CaptchaTimeoutSchema: z.ZodDefault<z.ZodObject<{
|
|
481
|
+
image: z.ZodDefault<z.ZodObject<{
|
|
482
|
+
challengeTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
483
|
+
solutionTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
484
|
+
verifiedTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
485
|
+
cachedTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
486
|
+
}, "strip", z.ZodTypeAny, {
|
|
429
487
|
challengeTimeout: number;
|
|
430
488
|
solutionTimeout: number;
|
|
431
489
|
verifiedTimeout: number;
|
|
@@ -436,11 +494,11 @@ export declare const CaptchaTimeoutSchema: import("zod").ZodDefault<import("zod"
|
|
|
436
494
|
verifiedTimeout?: number | undefined;
|
|
437
495
|
cachedTimeout?: number | undefined;
|
|
438
496
|
}>>;
|
|
439
|
-
pow:
|
|
440
|
-
verifiedTimeout:
|
|
441
|
-
solutionTimeout:
|
|
442
|
-
cachedTimeout:
|
|
443
|
-
}, "strip",
|
|
497
|
+
pow: z.ZodDefault<z.ZodObject<{
|
|
498
|
+
verifiedTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
499
|
+
solutionTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
500
|
+
cachedTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
501
|
+
}, "strip", z.ZodTypeAny, {
|
|
444
502
|
solutionTimeout: number;
|
|
445
503
|
verifiedTimeout: number;
|
|
446
504
|
cachedTimeout: number;
|
|
@@ -449,14 +507,14 @@ export declare const CaptchaTimeoutSchema: import("zod").ZodDefault<import("zod"
|
|
|
449
507
|
verifiedTimeout?: number | undefined;
|
|
450
508
|
cachedTimeout?: number | undefined;
|
|
451
509
|
}>>;
|
|
452
|
-
contract:
|
|
453
|
-
maxVerifiedTime:
|
|
454
|
-
}, "strip",
|
|
510
|
+
contract: z.ZodDefault<z.ZodObject<{
|
|
511
|
+
maxVerifiedTime: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
512
|
+
}, "strip", z.ZodTypeAny, {
|
|
455
513
|
maxVerifiedTime: number;
|
|
456
514
|
}, {
|
|
457
515
|
maxVerifiedTime?: number | undefined;
|
|
458
516
|
}>>;
|
|
459
|
-
}, "strip",
|
|
517
|
+
}, "strip", z.ZodTypeAny, {
|
|
460
518
|
image: {
|
|
461
519
|
challengeTimeout: number;
|
|
462
520
|
solutionTimeout: number;
|
|
@@ -489,15 +547,15 @@ export declare const CaptchaTimeoutSchema: import("zod").ZodDefault<import("zod"
|
|
|
489
547
|
}>>;
|
|
490
548
|
export type CaptchaTimeoutInput = input<typeof CaptchaTimeoutSchema>;
|
|
491
549
|
export type CaptchaTimeoutOutput = output<typeof CaptchaTimeoutSchema>;
|
|
492
|
-
export declare const ProsopoServerConfigSchema:
|
|
493
|
-
logLevel:
|
|
494
|
-
defaultEnvironment:
|
|
495
|
-
defaultNetwork:
|
|
496
|
-
account:
|
|
497
|
-
address:
|
|
498
|
-
secret:
|
|
499
|
-
password:
|
|
500
|
-
}, "strip",
|
|
550
|
+
export declare const ProsopoServerConfigSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
551
|
+
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
552
|
+
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
553
|
+
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden", "astar"]>>;
|
|
554
|
+
account: z.ZodObject<{
|
|
555
|
+
address: z.ZodOptional<z.ZodString>;
|
|
556
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
557
|
+
password: z.ZodOptional<z.ZodString>;
|
|
558
|
+
}, "strip", z.ZodTypeAny, {
|
|
501
559
|
address?: string | undefined;
|
|
502
560
|
secret?: string | undefined;
|
|
503
561
|
password?: string | undefined;
|
|
@@ -507,22 +565,22 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<import("
|
|
|
507
565
|
password?: string | undefined;
|
|
508
566
|
}>;
|
|
509
567
|
}, {
|
|
510
|
-
networks:
|
|
511
|
-
endpoint:
|
|
512
|
-
contract:
|
|
513
|
-
address:
|
|
514
|
-
name:
|
|
515
|
-
}, "strip",
|
|
568
|
+
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
569
|
+
endpoint: z.ZodArray<z.ZodString, "many">;
|
|
570
|
+
contract: z.ZodObject<{
|
|
571
|
+
address: z.ZodString;
|
|
572
|
+
name: z.ZodString;
|
|
573
|
+
}, "strip", z.ZodTypeAny, {
|
|
516
574
|
address: string;
|
|
517
575
|
name: string;
|
|
518
576
|
}, {
|
|
519
577
|
address: string;
|
|
520
578
|
name: string;
|
|
521
579
|
}>;
|
|
522
|
-
pairType:
|
|
523
|
-
ss58Format:
|
|
524
|
-
}, "strip",
|
|
525
|
-
endpoint: string;
|
|
580
|
+
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
581
|
+
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
582
|
+
}, "strip", z.ZodTypeAny, {
|
|
583
|
+
endpoint: string[];
|
|
526
584
|
contract: {
|
|
527
585
|
address: string;
|
|
528
586
|
name: string;
|
|
@@ -530,15 +588,15 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<import("
|
|
|
530
588
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
531
589
|
ss58Format: number;
|
|
532
590
|
}, {
|
|
533
|
-
endpoint: string;
|
|
591
|
+
endpoint: string[];
|
|
534
592
|
contract: {
|
|
535
593
|
address: string;
|
|
536
594
|
name: string;
|
|
537
595
|
};
|
|
538
596
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
539
597
|
ss58Format?: number | undefined;
|
|
540
|
-
}>>, Record<"development" | "rococo" | "shiden", {
|
|
541
|
-
endpoint: string;
|
|
598
|
+
}>>, Record<"development" | "rococo" | "shiden" | "astar", {
|
|
599
|
+
endpoint: string[];
|
|
542
600
|
contract: {
|
|
543
601
|
address: string;
|
|
544
602
|
name: string;
|
|
@@ -546,7 +604,7 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<import("
|
|
|
546
604
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
547
605
|
ss58Format: number;
|
|
548
606
|
}>, Record<string, {
|
|
549
|
-
endpoint: string;
|
|
607
|
+
endpoint: string[];
|
|
550
608
|
contract: {
|
|
551
609
|
address: string;
|
|
552
610
|
name: string;
|
|
@@ -554,12 +612,12 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<import("
|
|
|
554
612
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
555
613
|
ss58Format?: number | undefined;
|
|
556
614
|
}>>>;
|
|
557
|
-
database:
|
|
558
|
-
type:
|
|
559
|
-
endpoint:
|
|
560
|
-
dbname:
|
|
561
|
-
authSource:
|
|
562
|
-
}, "strip",
|
|
615
|
+
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
616
|
+
type: z.ZodString;
|
|
617
|
+
endpoint: z.ZodString;
|
|
618
|
+
dbname: z.ZodString;
|
|
619
|
+
authSource: z.ZodString;
|
|
620
|
+
}, "strip", z.ZodTypeAny, {
|
|
563
621
|
type: string;
|
|
564
622
|
endpoint: string;
|
|
565
623
|
dbname: string;
|
|
@@ -570,22 +628,22 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<import("
|
|
|
570
628
|
dbname: string;
|
|
571
629
|
authSource: string;
|
|
572
630
|
}>>>;
|
|
573
|
-
devOnlyWatchEvents:
|
|
631
|
+
devOnlyWatchEvents: z.ZodOptional<z.ZodBoolean>;
|
|
574
632
|
}>, {
|
|
575
|
-
userAccountAddress:
|
|
576
|
-
web2:
|
|
577
|
-
solutionThreshold:
|
|
578
|
-
dappName:
|
|
579
|
-
serverUrl:
|
|
633
|
+
userAccountAddress: z.ZodOptional<z.ZodString>;
|
|
634
|
+
web2: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
635
|
+
solutionThreshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
636
|
+
dappName: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
637
|
+
serverUrl: z.ZodOptional<z.ZodString>;
|
|
580
638
|
}>, {
|
|
581
|
-
serverUrl:
|
|
582
|
-
timeouts:
|
|
583
|
-
image:
|
|
584
|
-
challengeTimeout:
|
|
585
|
-
solutionTimeout:
|
|
586
|
-
verifiedTimeout:
|
|
587
|
-
cachedTimeout:
|
|
588
|
-
}, "strip",
|
|
639
|
+
serverUrl: z.ZodOptional<z.ZodString>;
|
|
640
|
+
timeouts: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
641
|
+
image: z.ZodDefault<z.ZodObject<{
|
|
642
|
+
challengeTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
643
|
+
solutionTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
644
|
+
verifiedTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
645
|
+
cachedTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
646
|
+
}, "strip", z.ZodTypeAny, {
|
|
589
647
|
challengeTimeout: number;
|
|
590
648
|
solutionTimeout: number;
|
|
591
649
|
verifiedTimeout: number;
|
|
@@ -596,11 +654,11 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<import("
|
|
|
596
654
|
verifiedTimeout?: number | undefined;
|
|
597
655
|
cachedTimeout?: number | undefined;
|
|
598
656
|
}>>;
|
|
599
|
-
pow:
|
|
600
|
-
verifiedTimeout:
|
|
601
|
-
solutionTimeout:
|
|
602
|
-
cachedTimeout:
|
|
603
|
-
}, "strip",
|
|
657
|
+
pow: z.ZodDefault<z.ZodObject<{
|
|
658
|
+
verifiedTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
659
|
+
solutionTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
660
|
+
cachedTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
661
|
+
}, "strip", z.ZodTypeAny, {
|
|
604
662
|
solutionTimeout: number;
|
|
605
663
|
verifiedTimeout: number;
|
|
606
664
|
cachedTimeout: number;
|
|
@@ -609,14 +667,14 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<import("
|
|
|
609
667
|
verifiedTimeout?: number | undefined;
|
|
610
668
|
cachedTimeout?: number | undefined;
|
|
611
669
|
}>>;
|
|
612
|
-
contract:
|
|
613
|
-
maxVerifiedTime:
|
|
614
|
-
}, "strip",
|
|
670
|
+
contract: z.ZodDefault<z.ZodObject<{
|
|
671
|
+
maxVerifiedTime: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
672
|
+
}, "strip", z.ZodTypeAny, {
|
|
615
673
|
maxVerifiedTime: number;
|
|
616
674
|
}, {
|
|
617
675
|
maxVerifiedTime?: number | undefined;
|
|
618
676
|
}>>;
|
|
619
|
-
}, "strip",
|
|
677
|
+
}, "strip", z.ZodTypeAny, {
|
|
620
678
|
image: {
|
|
621
679
|
challengeTimeout: number;
|
|
622
680
|
solutionTimeout: number;
|
|
@@ -647,17 +705,17 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<import("
|
|
|
647
705
|
cachedTimeout?: number | undefined;
|
|
648
706
|
} | undefined;
|
|
649
707
|
}>>>>;
|
|
650
|
-
}>, "strip",
|
|
708
|
+
}>, "strip", z.ZodTypeAny, {
|
|
651
709
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
652
710
|
defaultEnvironment: "development" | "staging" | "production";
|
|
653
|
-
defaultNetwork: "development" | "rococo" | "shiden";
|
|
711
|
+
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
654
712
|
account: {
|
|
655
713
|
address?: string | undefined;
|
|
656
714
|
secret?: string | undefined;
|
|
657
715
|
password?: string | undefined;
|
|
658
716
|
};
|
|
659
|
-
networks: Record<"development" | "rococo" | "shiden", {
|
|
660
|
-
endpoint: string;
|
|
717
|
+
networks: Record<"development" | "rococo" | "shiden" | "astar", {
|
|
718
|
+
endpoint: string[];
|
|
661
719
|
contract: {
|
|
662
720
|
address: string;
|
|
663
721
|
name: string;
|
|
@@ -701,9 +759,9 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<import("
|
|
|
701
759
|
};
|
|
702
760
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
703
761
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
704
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
762
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
705
763
|
networks?: Record<string, {
|
|
706
|
-
endpoint: string;
|
|
764
|
+
endpoint: string[];
|
|
707
765
|
contract: {
|
|
708
766
|
address: string;
|
|
709
767
|
name: string;
|
|
@@ -742,24 +800,24 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<import("
|
|
|
742
800
|
}>;
|
|
743
801
|
export type ProsopoServerConfigInput = input<typeof ProsopoServerConfigSchema>;
|
|
744
802
|
export type ProsopoServerConfigOutput = output<typeof ProsopoServerConfigSchema>;
|
|
745
|
-
export declare const AccountCreatorConfigSchema:
|
|
746
|
-
area:
|
|
747
|
-
width:
|
|
748
|
-
height:
|
|
749
|
-
}, "strip",
|
|
803
|
+
export declare const AccountCreatorConfigSchema: z.ZodObject<{
|
|
804
|
+
area: z.ZodObject<{
|
|
805
|
+
width: z.ZodNumber;
|
|
806
|
+
height: z.ZodNumber;
|
|
807
|
+
}, "strip", z.ZodTypeAny, {
|
|
750
808
|
width: number;
|
|
751
809
|
height: number;
|
|
752
810
|
}, {
|
|
753
811
|
width: number;
|
|
754
812
|
height: number;
|
|
755
813
|
}>;
|
|
756
|
-
offsetParameter:
|
|
757
|
-
multiplier:
|
|
758
|
-
fontSizeFactor:
|
|
759
|
-
maxShadowBlur:
|
|
760
|
-
numberOfRounds:
|
|
761
|
-
seed:
|
|
762
|
-
}, "strip",
|
|
814
|
+
offsetParameter: z.ZodNumber;
|
|
815
|
+
multiplier: z.ZodNumber;
|
|
816
|
+
fontSizeFactor: z.ZodNumber;
|
|
817
|
+
maxShadowBlur: z.ZodNumber;
|
|
818
|
+
numberOfRounds: z.ZodNumber;
|
|
819
|
+
seed: z.ZodNumber;
|
|
820
|
+
}, "strip", z.ZodTypeAny, {
|
|
763
821
|
area: {
|
|
764
822
|
width: number;
|
|
765
823
|
height: number;
|
|
@@ -784,15 +842,15 @@ export declare const AccountCreatorConfigSchema: import("zod").ZodObject<{
|
|
|
784
842
|
}>;
|
|
785
843
|
export type ProsopoClientConfigInput = input<typeof ProsopoClientConfigSchema>;
|
|
786
844
|
export type ProsopoClientConfigOutput = output<typeof ProsopoClientConfigSchema>;
|
|
787
|
-
export declare const ProcaptchaConfigSchema:
|
|
788
|
-
logLevel:
|
|
789
|
-
defaultEnvironment:
|
|
790
|
-
defaultNetwork:
|
|
791
|
-
account:
|
|
792
|
-
address:
|
|
793
|
-
secret:
|
|
794
|
-
password:
|
|
795
|
-
}, "strip",
|
|
845
|
+
export declare const ProcaptchaConfigSchema: z.ZodIntersection<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
846
|
+
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
847
|
+
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
848
|
+
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden", "astar"]>>;
|
|
849
|
+
account: z.ZodObject<{
|
|
850
|
+
address: z.ZodOptional<z.ZodString>;
|
|
851
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
852
|
+
password: z.ZodOptional<z.ZodString>;
|
|
853
|
+
}, "strip", z.ZodTypeAny, {
|
|
796
854
|
address?: string | undefined;
|
|
797
855
|
secret?: string | undefined;
|
|
798
856
|
password?: string | undefined;
|
|
@@ -802,22 +860,22 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
802
860
|
password?: string | undefined;
|
|
803
861
|
}>;
|
|
804
862
|
}, {
|
|
805
|
-
networks:
|
|
806
|
-
endpoint:
|
|
807
|
-
contract:
|
|
808
|
-
address:
|
|
809
|
-
name:
|
|
810
|
-
}, "strip",
|
|
863
|
+
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
864
|
+
endpoint: z.ZodArray<z.ZodString, "many">;
|
|
865
|
+
contract: z.ZodObject<{
|
|
866
|
+
address: z.ZodString;
|
|
867
|
+
name: z.ZodString;
|
|
868
|
+
}, "strip", z.ZodTypeAny, {
|
|
811
869
|
address: string;
|
|
812
870
|
name: string;
|
|
813
871
|
}, {
|
|
814
872
|
address: string;
|
|
815
873
|
name: string;
|
|
816
874
|
}>;
|
|
817
|
-
pairType:
|
|
818
|
-
ss58Format:
|
|
819
|
-
}, "strip",
|
|
820
|
-
endpoint: string;
|
|
875
|
+
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
876
|
+
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
877
|
+
}, "strip", z.ZodTypeAny, {
|
|
878
|
+
endpoint: string[];
|
|
821
879
|
contract: {
|
|
822
880
|
address: string;
|
|
823
881
|
name: string;
|
|
@@ -825,15 +883,15 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
825
883
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
826
884
|
ss58Format: number;
|
|
827
885
|
}, {
|
|
828
|
-
endpoint: string;
|
|
886
|
+
endpoint: string[];
|
|
829
887
|
contract: {
|
|
830
888
|
address: string;
|
|
831
889
|
name: string;
|
|
832
890
|
};
|
|
833
891
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
834
892
|
ss58Format?: number | undefined;
|
|
835
|
-
}>>, Record<"development" | "rococo" | "shiden", {
|
|
836
|
-
endpoint: string;
|
|
893
|
+
}>>, Record<"development" | "rococo" | "shiden" | "astar", {
|
|
894
|
+
endpoint: string[];
|
|
837
895
|
contract: {
|
|
838
896
|
address: string;
|
|
839
897
|
name: string;
|
|
@@ -841,7 +899,7 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
841
899
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
842
900
|
ss58Format: number;
|
|
843
901
|
}>, Record<string, {
|
|
844
|
-
endpoint: string;
|
|
902
|
+
endpoint: string[];
|
|
845
903
|
contract: {
|
|
846
904
|
address: string;
|
|
847
905
|
name: string;
|
|
@@ -849,12 +907,12 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
849
907
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
850
908
|
ss58Format?: number | undefined;
|
|
851
909
|
}>>>;
|
|
852
|
-
database:
|
|
853
|
-
type:
|
|
854
|
-
endpoint:
|
|
855
|
-
dbname:
|
|
856
|
-
authSource:
|
|
857
|
-
}, "strip",
|
|
910
|
+
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
911
|
+
type: z.ZodString;
|
|
912
|
+
endpoint: z.ZodString;
|
|
913
|
+
dbname: z.ZodString;
|
|
914
|
+
authSource: z.ZodString;
|
|
915
|
+
}, "strip", z.ZodTypeAny, {
|
|
858
916
|
type: string;
|
|
859
917
|
endpoint: string;
|
|
860
918
|
dbname: string;
|
|
@@ -865,24 +923,24 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
865
923
|
dbname: string;
|
|
866
924
|
authSource: string;
|
|
867
925
|
}>>>;
|
|
868
|
-
devOnlyWatchEvents:
|
|
926
|
+
devOnlyWatchEvents: z.ZodOptional<z.ZodBoolean>;
|
|
869
927
|
}>, {
|
|
870
|
-
userAccountAddress:
|
|
871
|
-
web2:
|
|
872
|
-
solutionThreshold:
|
|
873
|
-
dappName:
|
|
874
|
-
serverUrl:
|
|
875
|
-
}>, "strip",
|
|
928
|
+
userAccountAddress: z.ZodOptional<z.ZodString>;
|
|
929
|
+
web2: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
930
|
+
solutionThreshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
931
|
+
dappName: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
932
|
+
serverUrl: z.ZodOptional<z.ZodString>;
|
|
933
|
+
}>, "strip", z.ZodTypeAny, {
|
|
876
934
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
877
935
|
defaultEnvironment: "development" | "staging" | "production";
|
|
878
|
-
defaultNetwork: "development" | "rococo" | "shiden";
|
|
936
|
+
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
879
937
|
account: {
|
|
880
938
|
address?: string | undefined;
|
|
881
939
|
secret?: string | undefined;
|
|
882
940
|
password?: string | undefined;
|
|
883
941
|
};
|
|
884
|
-
networks: Record<"development" | "rococo" | "shiden", {
|
|
885
|
-
endpoint: string;
|
|
942
|
+
networks: Record<"development" | "rococo" | "shiden" | "astar", {
|
|
943
|
+
endpoint: string[];
|
|
886
944
|
contract: {
|
|
887
945
|
address: string;
|
|
888
946
|
name: string;
|
|
@@ -910,9 +968,9 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
910
968
|
};
|
|
911
969
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
912
970
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
913
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
971
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
914
972
|
networks?: Record<string, {
|
|
915
|
-
endpoint: string;
|
|
973
|
+
endpoint: string[];
|
|
916
974
|
contract: {
|
|
917
975
|
address: string;
|
|
918
976
|
name: string;
|
|
@@ -932,25 +990,25 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
932
990
|
solutionThreshold?: number | undefined;
|
|
933
991
|
dappName?: string | undefined;
|
|
934
992
|
serverUrl?: string | undefined;
|
|
935
|
-
}>,
|
|
936
|
-
accountCreator:
|
|
937
|
-
area:
|
|
938
|
-
width:
|
|
939
|
-
height:
|
|
940
|
-
}, "strip",
|
|
993
|
+
}>, z.ZodObject<{
|
|
994
|
+
accountCreator: z.ZodOptional<z.ZodObject<{
|
|
995
|
+
area: z.ZodObject<{
|
|
996
|
+
width: z.ZodNumber;
|
|
997
|
+
height: z.ZodNumber;
|
|
998
|
+
}, "strip", z.ZodTypeAny, {
|
|
941
999
|
width: number;
|
|
942
1000
|
height: number;
|
|
943
1001
|
}, {
|
|
944
1002
|
width: number;
|
|
945
1003
|
height: number;
|
|
946
1004
|
}>;
|
|
947
|
-
offsetParameter:
|
|
948
|
-
multiplier:
|
|
949
|
-
fontSizeFactor:
|
|
950
|
-
maxShadowBlur:
|
|
951
|
-
numberOfRounds:
|
|
952
|
-
seed:
|
|
953
|
-
}, "strip",
|
|
1005
|
+
offsetParameter: z.ZodNumber;
|
|
1006
|
+
multiplier: z.ZodNumber;
|
|
1007
|
+
fontSizeFactor: z.ZodNumber;
|
|
1008
|
+
maxShadowBlur: z.ZodNumber;
|
|
1009
|
+
numberOfRounds: z.ZodNumber;
|
|
1010
|
+
seed: z.ZodNumber;
|
|
1011
|
+
}, "strip", z.ZodTypeAny, {
|
|
954
1012
|
area: {
|
|
955
1013
|
width: number;
|
|
956
1014
|
height: number;
|
|
@@ -973,14 +1031,14 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
973
1031
|
numberOfRounds: number;
|
|
974
1032
|
seed: number;
|
|
975
1033
|
}>>;
|
|
976
|
-
theme:
|
|
977
|
-
captchas:
|
|
978
|
-
image:
|
|
979
|
-
challengeTimeout:
|
|
980
|
-
solutionTimeout:
|
|
981
|
-
verifiedTimeout:
|
|
982
|
-
cachedTimeout:
|
|
983
|
-
}, "strip",
|
|
1034
|
+
theme: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"light">, z.ZodLiteral<"dark">]>>;
|
|
1035
|
+
captchas: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
1036
|
+
image: z.ZodDefault<z.ZodObject<{
|
|
1037
|
+
challengeTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1038
|
+
solutionTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1039
|
+
verifiedTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1040
|
+
cachedTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1041
|
+
}, "strip", z.ZodTypeAny, {
|
|
984
1042
|
challengeTimeout: number;
|
|
985
1043
|
solutionTimeout: number;
|
|
986
1044
|
verifiedTimeout: number;
|
|
@@ -991,11 +1049,11 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
991
1049
|
verifiedTimeout?: number | undefined;
|
|
992
1050
|
cachedTimeout?: number | undefined;
|
|
993
1051
|
}>>;
|
|
994
|
-
pow:
|
|
995
|
-
verifiedTimeout:
|
|
996
|
-
solutionTimeout:
|
|
997
|
-
cachedTimeout:
|
|
998
|
-
}, "strip",
|
|
1052
|
+
pow: z.ZodDefault<z.ZodObject<{
|
|
1053
|
+
verifiedTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1054
|
+
solutionTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1055
|
+
cachedTimeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1056
|
+
}, "strip", z.ZodTypeAny, {
|
|
999
1057
|
solutionTimeout: number;
|
|
1000
1058
|
verifiedTimeout: number;
|
|
1001
1059
|
cachedTimeout: number;
|
|
@@ -1004,14 +1062,14 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
1004
1062
|
verifiedTimeout?: number | undefined;
|
|
1005
1063
|
cachedTimeout?: number | undefined;
|
|
1006
1064
|
}>>;
|
|
1007
|
-
contract:
|
|
1008
|
-
maxVerifiedTime:
|
|
1009
|
-
}, "strip",
|
|
1065
|
+
contract: z.ZodDefault<z.ZodObject<{
|
|
1066
|
+
maxVerifiedTime: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1067
|
+
}, "strip", z.ZodTypeAny, {
|
|
1010
1068
|
maxVerifiedTime: number;
|
|
1011
1069
|
}, {
|
|
1012
1070
|
maxVerifiedTime?: number | undefined;
|
|
1013
1071
|
}>>;
|
|
1014
|
-
}, "strip",
|
|
1072
|
+
}, "strip", z.ZodTypeAny, {
|
|
1015
1073
|
image: {
|
|
1016
1074
|
challengeTimeout: number;
|
|
1017
1075
|
solutionTimeout: number;
|
|
@@ -1042,7 +1100,7 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
1042
1100
|
cachedTimeout?: number | undefined;
|
|
1043
1101
|
} | undefined;
|
|
1044
1102
|
}>>>>;
|
|
1045
|
-
}, "strip",
|
|
1103
|
+
}, "strip", z.ZodTypeAny, {
|
|
1046
1104
|
captchas: {
|
|
1047
1105
|
image: {
|
|
1048
1106
|
challengeTimeout: number;
|
|
@@ -1105,15 +1163,15 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
1105
1163
|
}>>;
|
|
1106
1164
|
export type ProcaptchaClientConfigInput = input<typeof ProcaptchaConfigSchema>;
|
|
1107
1165
|
export type ProcaptchaClientConfigOutput = output<typeof ProcaptchaConfigSchema>;
|
|
1108
|
-
export declare const ProsopoConfigSchema:
|
|
1109
|
-
logLevel:
|
|
1110
|
-
defaultEnvironment:
|
|
1111
|
-
defaultNetwork:
|
|
1112
|
-
account:
|
|
1113
|
-
address:
|
|
1114
|
-
secret:
|
|
1115
|
-
password:
|
|
1116
|
-
}, "strip",
|
|
1166
|
+
export declare const ProsopoConfigSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
1167
|
+
logLevel: z.ZodDefault<z.ZodOptional<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal", "log"]>>>;
|
|
1168
|
+
defaultEnvironment: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
|
|
1169
|
+
defaultNetwork: z.ZodDefault<z.ZodEnum<["development", "rococo", "shiden", "astar"]>>;
|
|
1170
|
+
account: z.ZodObject<{
|
|
1171
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1172
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
1173
|
+
password: z.ZodOptional<z.ZodString>;
|
|
1174
|
+
}, "strip", z.ZodTypeAny, {
|
|
1117
1175
|
address?: string | undefined;
|
|
1118
1176
|
secret?: string | undefined;
|
|
1119
1177
|
password?: string | undefined;
|
|
@@ -1123,22 +1181,22 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<import("zod").
|
|
|
1123
1181
|
password?: string | undefined;
|
|
1124
1182
|
}>;
|
|
1125
1183
|
}, {
|
|
1126
|
-
networks:
|
|
1127
|
-
endpoint:
|
|
1128
|
-
contract:
|
|
1129
|
-
address:
|
|
1130
|
-
name:
|
|
1131
|
-
}, "strip",
|
|
1184
|
+
networks: z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1185
|
+
endpoint: z.ZodArray<z.ZodString, "many">;
|
|
1186
|
+
contract: z.ZodObject<{
|
|
1187
|
+
address: z.ZodString;
|
|
1188
|
+
name: z.ZodString;
|
|
1189
|
+
}, "strip", z.ZodTypeAny, {
|
|
1132
1190
|
address: string;
|
|
1133
1191
|
name: string;
|
|
1134
1192
|
}, {
|
|
1135
1193
|
address: string;
|
|
1136
1194
|
name: string;
|
|
1137
1195
|
}>;
|
|
1138
|
-
pairType:
|
|
1139
|
-
ss58Format:
|
|
1140
|
-
}, "strip",
|
|
1141
|
-
endpoint: string;
|
|
1196
|
+
pairType: z.ZodUnion<[z.ZodLiteral<"sr25519">, z.ZodLiteral<"ed25519">, z.ZodLiteral<"ecdsa">, z.ZodLiteral<"ethereum">]>;
|
|
1197
|
+
ss58Format: z.ZodDefault<z.ZodNumber>;
|
|
1198
|
+
}, "strip", z.ZodTypeAny, {
|
|
1199
|
+
endpoint: string[];
|
|
1142
1200
|
contract: {
|
|
1143
1201
|
address: string;
|
|
1144
1202
|
name: string;
|
|
@@ -1146,15 +1204,15 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<import("zod").
|
|
|
1146
1204
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1147
1205
|
ss58Format: number;
|
|
1148
1206
|
}, {
|
|
1149
|
-
endpoint: string;
|
|
1207
|
+
endpoint: string[];
|
|
1150
1208
|
contract: {
|
|
1151
1209
|
address: string;
|
|
1152
1210
|
name: string;
|
|
1153
1211
|
};
|
|
1154
1212
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1155
1213
|
ss58Format?: number | undefined;
|
|
1156
|
-
}>>, Record<"development" | "rococo" | "shiden", {
|
|
1157
|
-
endpoint: string;
|
|
1214
|
+
}>>, Record<"development" | "rococo" | "shiden" | "astar", {
|
|
1215
|
+
endpoint: string[];
|
|
1158
1216
|
contract: {
|
|
1159
1217
|
address: string;
|
|
1160
1218
|
name: string;
|
|
@@ -1162,7 +1220,7 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<import("zod").
|
|
|
1162
1220
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1163
1221
|
ss58Format: number;
|
|
1164
1222
|
}>, Record<string, {
|
|
1165
|
-
endpoint: string;
|
|
1223
|
+
endpoint: string[];
|
|
1166
1224
|
contract: {
|
|
1167
1225
|
address: string;
|
|
1168
1226
|
name: string;
|
|
@@ -1170,12 +1228,12 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<import("zod").
|
|
|
1170
1228
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1171
1229
|
ss58Format?: number | undefined;
|
|
1172
1230
|
}>>>;
|
|
1173
|
-
database:
|
|
1174
|
-
type:
|
|
1175
|
-
endpoint:
|
|
1176
|
-
dbname:
|
|
1177
|
-
authSource:
|
|
1178
|
-
}, "strip",
|
|
1231
|
+
database: z.ZodOptional<z.ZodRecord<z.ZodEnum<["development", "staging", "production"]>, z.ZodObject<{
|
|
1232
|
+
type: z.ZodString;
|
|
1233
|
+
endpoint: z.ZodString;
|
|
1234
|
+
dbname: z.ZodString;
|
|
1235
|
+
authSource: z.ZodString;
|
|
1236
|
+
}, "strip", z.ZodTypeAny, {
|
|
1179
1237
|
type: string;
|
|
1180
1238
|
endpoint: string;
|
|
1181
1239
|
dbname: string;
|
|
@@ -1186,24 +1244,24 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<import("zod").
|
|
|
1186
1244
|
dbname: string;
|
|
1187
1245
|
authSource: string;
|
|
1188
1246
|
}>>>;
|
|
1189
|
-
devOnlyWatchEvents:
|
|
1247
|
+
devOnlyWatchEvents: z.ZodOptional<z.ZodBoolean>;
|
|
1190
1248
|
}>, {
|
|
1191
|
-
captchas:
|
|
1192
|
-
solved:
|
|
1193
|
-
count:
|
|
1194
|
-
}, "strip",
|
|
1249
|
+
captchas: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1250
|
+
solved: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1251
|
+
count: z.ZodNumber;
|
|
1252
|
+
}, "strip", z.ZodTypeAny, {
|
|
1195
1253
|
count: number;
|
|
1196
1254
|
}, {
|
|
1197
1255
|
count: number;
|
|
1198
1256
|
}>>>;
|
|
1199
|
-
unsolved:
|
|
1200
|
-
count:
|
|
1201
|
-
}, "strip",
|
|
1257
|
+
unsolved: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1258
|
+
count: z.ZodNumber;
|
|
1259
|
+
}, "strip", z.ZodTypeAny, {
|
|
1202
1260
|
count: number;
|
|
1203
1261
|
}, {
|
|
1204
1262
|
count: number;
|
|
1205
1263
|
}>>>;
|
|
1206
|
-
}, "strip",
|
|
1264
|
+
}, "strip", z.ZodTypeAny, {
|
|
1207
1265
|
solved: {
|
|
1208
1266
|
count: number;
|
|
1209
1267
|
};
|
|
@@ -1218,11 +1276,11 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<import("zod").
|
|
|
1218
1276
|
count: number;
|
|
1219
1277
|
} | undefined;
|
|
1220
1278
|
}>>>;
|
|
1221
|
-
captchaSolutions:
|
|
1222
|
-
requiredNumberOfSolutions:
|
|
1223
|
-
solutionWinningPercentage:
|
|
1224
|
-
captchaBlockRecency:
|
|
1225
|
-
}, "strip",
|
|
1279
|
+
captchaSolutions: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1280
|
+
requiredNumberOfSolutions: z.ZodNumber;
|
|
1281
|
+
solutionWinningPercentage: z.ZodNumber;
|
|
1282
|
+
captchaBlockRecency: z.ZodNumber;
|
|
1283
|
+
}, "strip", z.ZodTypeAny, {
|
|
1226
1284
|
requiredNumberOfSolutions: number;
|
|
1227
1285
|
solutionWinningPercentage: number;
|
|
1228
1286
|
captchaBlockRecency: number;
|
|
@@ -1231,28 +1289,28 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<import("zod").
|
|
|
1231
1289
|
solutionWinningPercentage: number;
|
|
1232
1290
|
captchaBlockRecency: number;
|
|
1233
1291
|
}>>>;
|
|
1234
|
-
batchCommit:
|
|
1235
|
-
interval:
|
|
1236
|
-
maxBatchExtrinsicPercentage:
|
|
1237
|
-
}, "strip",
|
|
1292
|
+
batchCommit: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1293
|
+
interval: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1294
|
+
maxBatchExtrinsicPercentage: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1295
|
+
}, "strip", z.ZodTypeAny, {
|
|
1238
1296
|
interval: number;
|
|
1239
1297
|
maxBatchExtrinsicPercentage: number;
|
|
1240
1298
|
}, {
|
|
1241
1299
|
interval?: number | undefined;
|
|
1242
1300
|
maxBatchExtrinsicPercentage?: number | undefined;
|
|
1243
1301
|
}>>>;
|
|
1244
|
-
server:
|
|
1245
|
-
baseURL:
|
|
1246
|
-
port:
|
|
1247
|
-
}, "strip",
|
|
1302
|
+
server: z.ZodObject<{
|
|
1303
|
+
baseURL: z.ZodString;
|
|
1304
|
+
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1305
|
+
}, "strip", z.ZodTypeAny, {
|
|
1248
1306
|
baseURL: string;
|
|
1249
1307
|
port: number;
|
|
1250
1308
|
}, {
|
|
1251
1309
|
baseURL: string;
|
|
1252
1310
|
port?: number | undefined;
|
|
1253
1311
|
}>;
|
|
1254
|
-
mongoEventsUri:
|
|
1255
|
-
}>, "strip",
|
|
1312
|
+
mongoEventsUri: z.ZodOptional<z.ZodString>;
|
|
1313
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1256
1314
|
captchas: {
|
|
1257
1315
|
solved: {
|
|
1258
1316
|
count: number;
|
|
@@ -1263,14 +1321,14 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<import("zod").
|
|
|
1263
1321
|
};
|
|
1264
1322
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
1265
1323
|
defaultEnvironment: "development" | "staging" | "production";
|
|
1266
|
-
defaultNetwork: "development" | "rococo" | "shiden";
|
|
1324
|
+
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
1267
1325
|
account: {
|
|
1268
1326
|
address?: string | undefined;
|
|
1269
1327
|
secret?: string | undefined;
|
|
1270
1328
|
password?: string | undefined;
|
|
1271
1329
|
};
|
|
1272
|
-
networks: Record<"development" | "rococo" | "shiden", {
|
|
1273
|
-
endpoint: string;
|
|
1330
|
+
networks: Record<"development" | "rococo" | "shiden" | "astar", {
|
|
1331
|
+
endpoint: string[];
|
|
1274
1332
|
contract: {
|
|
1275
1333
|
address: string;
|
|
1276
1334
|
name: string;
|
|
@@ -1319,9 +1377,9 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<import("zod").
|
|
|
1319
1377
|
} | undefined;
|
|
1320
1378
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
1321
1379
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
1322
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
1380
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
1323
1381
|
networks?: Record<string, {
|
|
1324
|
-
endpoint: string;
|
|
1382
|
+
endpoint: string[];
|
|
1325
1383
|
contract: {
|
|
1326
1384
|
address: string;
|
|
1327
1385
|
name: string;
|