@prosopo/types 0.3.40 → 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 +75 -5
- package/dist/cjs/config/index.cjs +11 -1
- package/dist/cjs/config/network.cjs +5 -5
- package/dist/cjs/index.cjs +11 -1
- package/dist/cjs/networks/index.cjs +17 -3
- package/dist/cjs/provider/api.cjs +14 -3
- package/dist/config/config.d.ts +665 -332
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +64 -6
- package/dist/config/config.js.map +1 -1
- package/dist/config/network.d.ts +21 -21
- 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/artifacts.d.ts +10 -10
- 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/procaptcha/storage.d.ts +2 -2
- package/dist/provider/accounts.d.ts +2 -2
- package/dist/provider/accounts.d.ts.map +1 -1
- package/dist/provider/api.d.ts +9 -2
- package/dist/provider/api.d.ts.map +1 -1
- package/dist/provider/api.js +5 -1
- package/dist/provider/api.js.map +1 -1
- package/package.json +3 -3
package/dist/config/config.d.ts
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
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
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
export declare const DEFAULT_IMAGE_CAPTCHA_TIMEOUT: number;
|
|
10
|
+
export declare const DEFAULT_IMAGE_CAPTCHA_SOLUTION_TIMEOUT: number;
|
|
11
|
+
export declare const DEFAULT_IMAGE_CAPTCHA_VERIFIED_TIMEOUT: number;
|
|
12
|
+
export declare const DEFAULT_IMAGE_MAX_VERIFIED_TIME_CACHED: number;
|
|
13
|
+
export declare const DEFAULT_POW_CAPTCHA_SOLUTION_TIMEOUT: number;
|
|
14
|
+
export declare const DEFAULT_POW_CAPTCHA_VERIFIED_TIMEOUT: number;
|
|
15
|
+
export declare const DEFAULT_POW_CAPTCHA_CACHED_TIMEOUT: number;
|
|
16
|
+
export declare const DEFAULT_MAX_VERIFIED_TIME_CONTRACT: number;
|
|
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, {
|
|
14
23
|
type: string;
|
|
15
24
|
endpoint: string;
|
|
16
25
|
dbname: string;
|
|
@@ -21,10 +30,10 @@ export declare const DatabaseConfigSchema: import("zod").ZodRecord<import("zod")
|
|
|
21
30
|
dbname: string;
|
|
22
31
|
authSource: string;
|
|
23
32
|
}>>;
|
|
24
|
-
export declare const BatchCommitConfigSchema:
|
|
25
|
-
interval:
|
|
26
|
-
maxBatchExtrinsicPercentage:
|
|
27
|
-
}, "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, {
|
|
28
37
|
interval: number;
|
|
29
38
|
maxBatchExtrinsicPercentage: number;
|
|
30
39
|
}, {
|
|
@@ -35,15 +44,15 @@ export type BatchCommitConfigInput = input<typeof BatchCommitConfigSchema>;
|
|
|
35
44
|
export type BatchCommitConfigOutput = output<typeof BatchCommitConfigSchema>;
|
|
36
45
|
export type DatabaseConfigInput = input<typeof DatabaseConfigSchema>;
|
|
37
46
|
export type DatabaseConfigOutput = output<typeof DatabaseConfigSchema>;
|
|
38
|
-
export declare const ProsopoBaseConfigSchema:
|
|
39
|
-
logLevel:
|
|
40
|
-
defaultEnvironment:
|
|
41
|
-
defaultNetwork:
|
|
42
|
-
account:
|
|
43
|
-
address:
|
|
44
|
-
secret:
|
|
45
|
-
password:
|
|
46
|
-
}, "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, {
|
|
47
56
|
address?: string | undefined;
|
|
48
57
|
secret?: string | undefined;
|
|
49
58
|
password?: string | undefined;
|
|
@@ -52,10 +61,10 @@ export declare const ProsopoBaseConfigSchema: import("zod").ZodObject<{
|
|
|
52
61
|
secret?: string | undefined;
|
|
53
62
|
password?: string | undefined;
|
|
54
63
|
}>;
|
|
55
|
-
}, "strip",
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
65
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
57
66
|
defaultEnvironment: "development" | "staging" | "production";
|
|
58
|
-
defaultNetwork: "development" | "rococo" | "shiden";
|
|
67
|
+
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
59
68
|
account: {
|
|
60
69
|
address?: string | undefined;
|
|
61
70
|
secret?: string | undefined;
|
|
@@ -69,17 +78,74 @@ export declare const ProsopoBaseConfigSchema: import("zod").ZodObject<{
|
|
|
69
78
|
};
|
|
70
79
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
71
80
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
72
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
81
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
73
82
|
}>;
|
|
74
|
-
export declare const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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, {
|
|
83
149
|
address?: string | undefined;
|
|
84
150
|
secret?: string | undefined;
|
|
85
151
|
password?: string | undefined;
|
|
@@ -89,59 +155,59 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<import("z
|
|
|
89
155
|
password?: string | undefined;
|
|
90
156
|
}>;
|
|
91
157
|
}, {
|
|
92
|
-
networks:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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, {
|
|
98
164
|
address: string;
|
|
99
|
-
}, {
|
|
100
165
|
name: string;
|
|
166
|
+
}, {
|
|
101
167
|
address: string;
|
|
168
|
+
name: string;
|
|
102
169
|
}>;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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[];
|
|
107
174
|
contract: {
|
|
108
|
-
name: string;
|
|
109
175
|
address: string;
|
|
176
|
+
name: string;
|
|
110
177
|
};
|
|
111
|
-
endpoint: string;
|
|
112
178
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
113
179
|
ss58Format: number;
|
|
114
180
|
}, {
|
|
181
|
+
endpoint: string[];
|
|
115
182
|
contract: {
|
|
116
|
-
name: string;
|
|
117
183
|
address: string;
|
|
184
|
+
name: string;
|
|
118
185
|
};
|
|
119
|
-
endpoint: string;
|
|
120
186
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
121
187
|
ss58Format?: number | undefined;
|
|
122
|
-
}>>, Record<"development" | "rococo" | "shiden", {
|
|
188
|
+
}>>, Record<"development" | "rococo" | "shiden" | "astar", {
|
|
189
|
+
endpoint: string[];
|
|
123
190
|
contract: {
|
|
124
|
-
name: string;
|
|
125
191
|
address: string;
|
|
192
|
+
name: string;
|
|
126
193
|
};
|
|
127
|
-
endpoint: string;
|
|
128
194
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
129
195
|
ss58Format: number;
|
|
130
196
|
}>, Record<string, {
|
|
197
|
+
endpoint: string[];
|
|
131
198
|
contract: {
|
|
132
|
-
name: string;
|
|
133
199
|
address: string;
|
|
200
|
+
name: string;
|
|
134
201
|
};
|
|
135
|
-
endpoint: string;
|
|
136
202
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
137
203
|
ss58Format?: number | undefined;
|
|
138
204
|
}>>>;
|
|
139
|
-
database:
|
|
140
|
-
type:
|
|
141
|
-
endpoint:
|
|
142
|
-
dbname:
|
|
143
|
-
authSource:
|
|
144
|
-
}, "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, {
|
|
145
211
|
type: string;
|
|
146
212
|
endpoint: string;
|
|
147
213
|
dbname: string;
|
|
@@ -152,22 +218,22 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<import("z
|
|
|
152
218
|
dbname: string;
|
|
153
219
|
authSource: string;
|
|
154
220
|
}>>>;
|
|
155
|
-
devOnlyWatchEvents:
|
|
156
|
-
}>, "strip",
|
|
221
|
+
devOnlyWatchEvents: z.ZodOptional<z.ZodBoolean>;
|
|
222
|
+
}>, "strip", z.ZodTypeAny, {
|
|
157
223
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
158
224
|
defaultEnvironment: "development" | "staging" | "production";
|
|
159
|
-
defaultNetwork: "development" | "rococo" | "shiden";
|
|
225
|
+
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
160
226
|
account: {
|
|
161
227
|
address?: string | undefined;
|
|
162
228
|
secret?: string | undefined;
|
|
163
229
|
password?: string | undefined;
|
|
164
230
|
};
|
|
165
|
-
networks: Record<"development" | "rococo" | "shiden", {
|
|
231
|
+
networks: Record<"development" | "rococo" | "shiden" | "astar", {
|
|
232
|
+
endpoint: string[];
|
|
166
233
|
contract: {
|
|
167
|
-
name: string;
|
|
168
234
|
address: string;
|
|
235
|
+
name: string;
|
|
169
236
|
};
|
|
170
|
-
endpoint: string;
|
|
171
237
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
172
238
|
ss58Format: number;
|
|
173
239
|
}>;
|
|
@@ -186,13 +252,13 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<import("z
|
|
|
186
252
|
};
|
|
187
253
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
188
254
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
189
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
255
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
190
256
|
networks?: Record<string, {
|
|
257
|
+
endpoint: string[];
|
|
191
258
|
contract: {
|
|
192
|
-
name: string;
|
|
193
259
|
address: string;
|
|
260
|
+
name: string;
|
|
194
261
|
};
|
|
195
|
-
endpoint: string;
|
|
196
262
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
197
263
|
ss58Format?: number | undefined;
|
|
198
264
|
}> | undefined;
|
|
@@ -204,26 +270,26 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<import("z
|
|
|
204
270
|
}>> | undefined;
|
|
205
271
|
devOnlyWatchEvents?: boolean | undefined;
|
|
206
272
|
}>;
|
|
207
|
-
export type ProsopoNetworksSchemaInput = input<typeof
|
|
208
|
-
export type ProsopoNetworksSchemaOutput = output<typeof
|
|
273
|
+
export type ProsopoNetworksSchemaInput = input<typeof ProsopoNetworkSchema>;
|
|
274
|
+
export type ProsopoNetworksSchemaOutput = output<typeof ProsopoNetworkSchema>;
|
|
209
275
|
export type ProsopoBasicConfigInput = input<typeof ProsopoBasicConfigSchema>;
|
|
210
276
|
export type ProsopoBasicConfigOutput = output<typeof ProsopoBasicConfigSchema>;
|
|
211
|
-
export declare const ProsopoCaptchaCountConfigSchema:
|
|
212
|
-
solved:
|
|
213
|
-
count:
|
|
214
|
-
}, "strip",
|
|
277
|
+
export declare const ProsopoCaptchaCountConfigSchema: z.ZodObject<{
|
|
278
|
+
solved: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
279
|
+
count: z.ZodNumber;
|
|
280
|
+
}, "strip", z.ZodTypeAny, {
|
|
215
281
|
count: number;
|
|
216
282
|
}, {
|
|
217
283
|
count: number;
|
|
218
284
|
}>>>;
|
|
219
|
-
unsolved:
|
|
220
|
-
count:
|
|
221
|
-
}, "strip",
|
|
285
|
+
unsolved: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
286
|
+
count: z.ZodNumber;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
222
288
|
count: number;
|
|
223
289
|
}, {
|
|
224
290
|
count: number;
|
|
225
291
|
}>>>;
|
|
226
|
-
}, "strip",
|
|
292
|
+
}, "strip", z.ZodTypeAny, {
|
|
227
293
|
solved: {
|
|
228
294
|
count: number;
|
|
229
295
|
};
|
|
@@ -239,21 +305,21 @@ export declare const ProsopoCaptchaCountConfigSchema: import("zod").ZodObject<{
|
|
|
239
305
|
} | undefined;
|
|
240
306
|
}>;
|
|
241
307
|
export type ProsopoCaptchaCountConfigSchemaInput = input<typeof ProsopoCaptchaCountConfigSchema>;
|
|
242
|
-
export declare const ProsopoImageServerConfigSchema:
|
|
243
|
-
baseURL:
|
|
244
|
-
port:
|
|
245
|
-
}, "strip",
|
|
308
|
+
export declare const ProsopoImageServerConfigSchema: z.ZodObject<{
|
|
309
|
+
baseURL: z.ZodString;
|
|
310
|
+
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
311
|
+
}, "strip", z.ZodTypeAny, {
|
|
246
312
|
baseURL: string;
|
|
247
313
|
port: number;
|
|
248
314
|
}, {
|
|
249
315
|
baseURL: string;
|
|
250
316
|
port?: number | undefined;
|
|
251
317
|
}>;
|
|
252
|
-
export declare const ProsopoCaptchaSolutionConfigSchema:
|
|
253
|
-
requiredNumberOfSolutions:
|
|
254
|
-
solutionWinningPercentage:
|
|
255
|
-
captchaBlockRecency:
|
|
256
|
-
}, "strip",
|
|
318
|
+
export declare const ProsopoCaptchaSolutionConfigSchema: z.ZodObject<{
|
|
319
|
+
requiredNumberOfSolutions: z.ZodNumber;
|
|
320
|
+
solutionWinningPercentage: z.ZodNumber;
|
|
321
|
+
captchaBlockRecency: z.ZodNumber;
|
|
322
|
+
}, "strip", z.ZodTypeAny, {
|
|
257
323
|
requiredNumberOfSolutions: number;
|
|
258
324
|
solutionWinningPercentage: number;
|
|
259
325
|
captchaBlockRecency: number;
|
|
@@ -262,15 +328,15 @@ export declare const ProsopoCaptchaSolutionConfigSchema: import("zod").ZodObject
|
|
|
262
328
|
solutionWinningPercentage: number;
|
|
263
329
|
captchaBlockRecency: number;
|
|
264
330
|
}>;
|
|
265
|
-
export declare const ProsopoClientConfigSchema:
|
|
266
|
-
logLevel:
|
|
267
|
-
defaultEnvironment:
|
|
268
|
-
defaultNetwork:
|
|
269
|
-
account:
|
|
270
|
-
address:
|
|
271
|
-
secret:
|
|
272
|
-
password:
|
|
273
|
-
}, "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, {
|
|
274
340
|
address?: string | undefined;
|
|
275
341
|
secret?: string | undefined;
|
|
276
342
|
password?: string | undefined;
|
|
@@ -280,59 +346,59 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<import("
|
|
|
280
346
|
password?: string | undefined;
|
|
281
347
|
}>;
|
|
282
348
|
}, {
|
|
283
|
-
networks:
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
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, {
|
|
289
355
|
address: string;
|
|
290
|
-
}, {
|
|
291
356
|
name: string;
|
|
357
|
+
}, {
|
|
292
358
|
address: string;
|
|
359
|
+
name: string;
|
|
293
360
|
}>;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
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[];
|
|
298
365
|
contract: {
|
|
299
|
-
name: string;
|
|
300
366
|
address: string;
|
|
367
|
+
name: string;
|
|
301
368
|
};
|
|
302
|
-
endpoint: string;
|
|
303
369
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
304
370
|
ss58Format: number;
|
|
305
371
|
}, {
|
|
372
|
+
endpoint: string[];
|
|
306
373
|
contract: {
|
|
307
|
-
name: string;
|
|
308
374
|
address: string;
|
|
375
|
+
name: string;
|
|
309
376
|
};
|
|
310
|
-
endpoint: string;
|
|
311
377
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
312
378
|
ss58Format?: number | undefined;
|
|
313
|
-
}>>, Record<"development" | "rococo" | "shiden", {
|
|
379
|
+
}>>, Record<"development" | "rococo" | "shiden" | "astar", {
|
|
380
|
+
endpoint: string[];
|
|
314
381
|
contract: {
|
|
315
|
-
name: string;
|
|
316
382
|
address: string;
|
|
383
|
+
name: string;
|
|
317
384
|
};
|
|
318
|
-
endpoint: string;
|
|
319
385
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
320
386
|
ss58Format: number;
|
|
321
387
|
}>, Record<string, {
|
|
388
|
+
endpoint: string[];
|
|
322
389
|
contract: {
|
|
323
|
-
name: string;
|
|
324
390
|
address: string;
|
|
391
|
+
name: string;
|
|
325
392
|
};
|
|
326
|
-
endpoint: string;
|
|
327
393
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
328
394
|
ss58Format?: number | undefined;
|
|
329
395
|
}>>>;
|
|
330
|
-
database:
|
|
331
|
-
type:
|
|
332
|
-
endpoint:
|
|
333
|
-
dbname:
|
|
334
|
-
authSource:
|
|
335
|
-
}, "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, {
|
|
336
402
|
type: string;
|
|
337
403
|
endpoint: string;
|
|
338
404
|
dbname: string;
|
|
@@ -343,28 +409,28 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<import("
|
|
|
343
409
|
dbname: string;
|
|
344
410
|
authSource: string;
|
|
345
411
|
}>>>;
|
|
346
|
-
devOnlyWatchEvents:
|
|
412
|
+
devOnlyWatchEvents: z.ZodOptional<z.ZodBoolean>;
|
|
347
413
|
}>, {
|
|
348
|
-
userAccountAddress:
|
|
349
|
-
web2:
|
|
350
|
-
solutionThreshold:
|
|
351
|
-
dappName:
|
|
352
|
-
serverUrl:
|
|
353
|
-
}>, "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, {
|
|
354
420
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
355
421
|
defaultEnvironment: "development" | "staging" | "production";
|
|
356
|
-
defaultNetwork: "development" | "rococo" | "shiden";
|
|
422
|
+
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
357
423
|
account: {
|
|
358
424
|
address?: string | undefined;
|
|
359
425
|
secret?: string | undefined;
|
|
360
426
|
password?: string | undefined;
|
|
361
427
|
};
|
|
362
|
-
networks: Record<"development" | "rococo" | "shiden", {
|
|
428
|
+
networks: Record<"development" | "rococo" | "shiden" | "astar", {
|
|
429
|
+
endpoint: string[];
|
|
363
430
|
contract: {
|
|
364
|
-
name: string;
|
|
365
431
|
address: string;
|
|
432
|
+
name: string;
|
|
366
433
|
};
|
|
367
|
-
endpoint: string;
|
|
368
434
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
369
435
|
ss58Format: number;
|
|
370
436
|
}>;
|
|
@@ -388,13 +454,13 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<import("
|
|
|
388
454
|
};
|
|
389
455
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
390
456
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
391
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
457
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
392
458
|
networks?: Record<string, {
|
|
459
|
+
endpoint: string[];
|
|
393
460
|
contract: {
|
|
394
|
-
name: string;
|
|
395
461
|
address: string;
|
|
462
|
+
name: string;
|
|
396
463
|
};
|
|
397
|
-
endpoint: string;
|
|
398
464
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
399
465
|
ss58Format?: number | undefined;
|
|
400
466
|
}> | undefined;
|
|
@@ -411,15 +477,85 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<import("
|
|
|
411
477
|
dappName?: string | undefined;
|
|
412
478
|
serverUrl?: string | undefined;
|
|
413
479
|
}>;
|
|
414
|
-
export declare const
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
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, {
|
|
487
|
+
challengeTimeout: number;
|
|
488
|
+
solutionTimeout: number;
|
|
489
|
+
verifiedTimeout: number;
|
|
490
|
+
cachedTimeout: number;
|
|
491
|
+
}, {
|
|
492
|
+
challengeTimeout?: number | undefined;
|
|
493
|
+
solutionTimeout?: number | undefined;
|
|
494
|
+
verifiedTimeout?: number | undefined;
|
|
495
|
+
cachedTimeout?: number | undefined;
|
|
496
|
+
}>>;
|
|
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, {
|
|
502
|
+
solutionTimeout: number;
|
|
503
|
+
verifiedTimeout: number;
|
|
504
|
+
cachedTimeout: number;
|
|
505
|
+
}, {
|
|
506
|
+
solutionTimeout?: number | undefined;
|
|
507
|
+
verifiedTimeout?: number | undefined;
|
|
508
|
+
cachedTimeout?: number | undefined;
|
|
509
|
+
}>>;
|
|
510
|
+
contract: z.ZodDefault<z.ZodObject<{
|
|
511
|
+
maxVerifiedTime: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
512
|
+
}, "strip", z.ZodTypeAny, {
|
|
513
|
+
maxVerifiedTime: number;
|
|
514
|
+
}, {
|
|
515
|
+
maxVerifiedTime?: number | undefined;
|
|
516
|
+
}>>;
|
|
517
|
+
}, "strip", z.ZodTypeAny, {
|
|
518
|
+
image: {
|
|
519
|
+
challengeTimeout: number;
|
|
520
|
+
solutionTimeout: number;
|
|
521
|
+
verifiedTimeout: number;
|
|
522
|
+
cachedTimeout: number;
|
|
523
|
+
};
|
|
524
|
+
contract: {
|
|
525
|
+
maxVerifiedTime: number;
|
|
526
|
+
};
|
|
527
|
+
pow: {
|
|
528
|
+
solutionTimeout: number;
|
|
529
|
+
verifiedTimeout: number;
|
|
530
|
+
cachedTimeout: number;
|
|
531
|
+
};
|
|
532
|
+
}, {
|
|
533
|
+
image?: {
|
|
534
|
+
challengeTimeout?: number | undefined;
|
|
535
|
+
solutionTimeout?: number | undefined;
|
|
536
|
+
verifiedTimeout?: number | undefined;
|
|
537
|
+
cachedTimeout?: number | undefined;
|
|
538
|
+
} | undefined;
|
|
539
|
+
contract?: {
|
|
540
|
+
maxVerifiedTime?: number | undefined;
|
|
541
|
+
} | undefined;
|
|
542
|
+
pow?: {
|
|
543
|
+
solutionTimeout?: number | undefined;
|
|
544
|
+
verifiedTimeout?: number | undefined;
|
|
545
|
+
cachedTimeout?: number | undefined;
|
|
546
|
+
} | undefined;
|
|
547
|
+
}>>;
|
|
548
|
+
export type CaptchaTimeoutInput = input<typeof CaptchaTimeoutSchema>;
|
|
549
|
+
export type CaptchaTimeoutOutput = output<typeof CaptchaTimeoutSchema>;
|
|
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, {
|
|
423
559
|
address?: string | undefined;
|
|
424
560
|
secret?: string | undefined;
|
|
425
561
|
password?: string | undefined;
|
|
@@ -429,59 +565,59 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<import("
|
|
|
429
565
|
password?: string | undefined;
|
|
430
566
|
}>;
|
|
431
567
|
}, {
|
|
432
|
-
networks:
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
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, {
|
|
438
574
|
address: string;
|
|
439
|
-
}, {
|
|
440
575
|
name: string;
|
|
576
|
+
}, {
|
|
441
577
|
address: string;
|
|
578
|
+
name: string;
|
|
442
579
|
}>;
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
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[];
|
|
447
584
|
contract: {
|
|
448
|
-
name: string;
|
|
449
585
|
address: string;
|
|
586
|
+
name: string;
|
|
450
587
|
};
|
|
451
|
-
endpoint: string;
|
|
452
588
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
453
589
|
ss58Format: number;
|
|
454
590
|
}, {
|
|
591
|
+
endpoint: string[];
|
|
455
592
|
contract: {
|
|
456
|
-
name: string;
|
|
457
593
|
address: string;
|
|
594
|
+
name: string;
|
|
458
595
|
};
|
|
459
|
-
endpoint: string;
|
|
460
596
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
461
597
|
ss58Format?: number | undefined;
|
|
462
|
-
}>>, Record<"development" | "rococo" | "shiden", {
|
|
598
|
+
}>>, Record<"development" | "rococo" | "shiden" | "astar", {
|
|
599
|
+
endpoint: string[];
|
|
463
600
|
contract: {
|
|
464
|
-
name: string;
|
|
465
601
|
address: string;
|
|
602
|
+
name: string;
|
|
466
603
|
};
|
|
467
|
-
endpoint: string;
|
|
468
604
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
469
605
|
ss58Format: number;
|
|
470
606
|
}>, Record<string, {
|
|
607
|
+
endpoint: string[];
|
|
471
608
|
contract: {
|
|
472
|
-
name: string;
|
|
473
609
|
address: string;
|
|
610
|
+
name: string;
|
|
474
611
|
};
|
|
475
|
-
endpoint: string;
|
|
476
612
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
477
613
|
ss58Format?: number | undefined;
|
|
478
614
|
}>>>;
|
|
479
|
-
database:
|
|
480
|
-
type:
|
|
481
|
-
endpoint:
|
|
482
|
-
dbname:
|
|
483
|
-
authSource:
|
|
484
|
-
}, "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, {
|
|
485
621
|
type: string;
|
|
486
622
|
endpoint: string;
|
|
487
623
|
dbname: string;
|
|
@@ -492,36 +628,120 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<import("
|
|
|
492
628
|
dbname: string;
|
|
493
629
|
authSource: string;
|
|
494
630
|
}>>>;
|
|
495
|
-
devOnlyWatchEvents:
|
|
631
|
+
devOnlyWatchEvents: z.ZodOptional<z.ZodBoolean>;
|
|
496
632
|
}>, {
|
|
497
|
-
userAccountAddress:
|
|
498
|
-
web2:
|
|
499
|
-
solutionThreshold:
|
|
500
|
-
dappName:
|
|
501
|
-
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>;
|
|
502
638
|
}>, {
|
|
503
|
-
serverUrl:
|
|
504
|
-
|
|
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, {
|
|
647
|
+
challengeTimeout: number;
|
|
648
|
+
solutionTimeout: number;
|
|
649
|
+
verifiedTimeout: number;
|
|
650
|
+
cachedTimeout: number;
|
|
651
|
+
}, {
|
|
652
|
+
challengeTimeout?: number | undefined;
|
|
653
|
+
solutionTimeout?: number | undefined;
|
|
654
|
+
verifiedTimeout?: number | undefined;
|
|
655
|
+
cachedTimeout?: number | undefined;
|
|
656
|
+
}>>;
|
|
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, {
|
|
662
|
+
solutionTimeout: number;
|
|
663
|
+
verifiedTimeout: number;
|
|
664
|
+
cachedTimeout: number;
|
|
665
|
+
}, {
|
|
666
|
+
solutionTimeout?: number | undefined;
|
|
667
|
+
verifiedTimeout?: number | undefined;
|
|
668
|
+
cachedTimeout?: number | undefined;
|
|
669
|
+
}>>;
|
|
670
|
+
contract: z.ZodDefault<z.ZodObject<{
|
|
671
|
+
maxVerifiedTime: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
672
|
+
}, "strip", z.ZodTypeAny, {
|
|
673
|
+
maxVerifiedTime: number;
|
|
674
|
+
}, {
|
|
675
|
+
maxVerifiedTime?: number | undefined;
|
|
676
|
+
}>>;
|
|
677
|
+
}, "strip", z.ZodTypeAny, {
|
|
678
|
+
image: {
|
|
679
|
+
challengeTimeout: number;
|
|
680
|
+
solutionTimeout: number;
|
|
681
|
+
verifiedTimeout: number;
|
|
682
|
+
cachedTimeout: number;
|
|
683
|
+
};
|
|
684
|
+
contract: {
|
|
685
|
+
maxVerifiedTime: number;
|
|
686
|
+
};
|
|
687
|
+
pow: {
|
|
688
|
+
solutionTimeout: number;
|
|
689
|
+
verifiedTimeout: number;
|
|
690
|
+
cachedTimeout: number;
|
|
691
|
+
};
|
|
692
|
+
}, {
|
|
693
|
+
image?: {
|
|
694
|
+
challengeTimeout?: number | undefined;
|
|
695
|
+
solutionTimeout?: number | undefined;
|
|
696
|
+
verifiedTimeout?: number | undefined;
|
|
697
|
+
cachedTimeout?: number | undefined;
|
|
698
|
+
} | undefined;
|
|
699
|
+
contract?: {
|
|
700
|
+
maxVerifiedTime?: number | undefined;
|
|
701
|
+
} | undefined;
|
|
702
|
+
pow?: {
|
|
703
|
+
solutionTimeout?: number | undefined;
|
|
704
|
+
verifiedTimeout?: number | undefined;
|
|
705
|
+
cachedTimeout?: number | undefined;
|
|
706
|
+
} | undefined;
|
|
707
|
+
}>>>>;
|
|
708
|
+
}>, "strip", z.ZodTypeAny, {
|
|
505
709
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
506
710
|
defaultEnvironment: "development" | "staging" | "production";
|
|
507
|
-
defaultNetwork: "development" | "rococo" | "shiden";
|
|
711
|
+
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
508
712
|
account: {
|
|
509
713
|
address?: string | undefined;
|
|
510
714
|
secret?: string | undefined;
|
|
511
715
|
password?: string | undefined;
|
|
512
716
|
};
|
|
513
|
-
networks: Record<"development" | "rococo" | "shiden", {
|
|
717
|
+
networks: Record<"development" | "rococo" | "shiden" | "astar", {
|
|
718
|
+
endpoint: string[];
|
|
514
719
|
contract: {
|
|
515
|
-
name: string;
|
|
516
720
|
address: string;
|
|
721
|
+
name: string;
|
|
517
722
|
};
|
|
518
|
-
endpoint: string;
|
|
519
723
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
520
724
|
ss58Format: number;
|
|
521
725
|
}>;
|
|
522
726
|
web2: boolean;
|
|
523
727
|
solutionThreshold: number;
|
|
524
728
|
dappName: string;
|
|
729
|
+
timeouts: {
|
|
730
|
+
image: {
|
|
731
|
+
challengeTimeout: number;
|
|
732
|
+
solutionTimeout: number;
|
|
733
|
+
verifiedTimeout: number;
|
|
734
|
+
cachedTimeout: number;
|
|
735
|
+
};
|
|
736
|
+
contract: {
|
|
737
|
+
maxVerifiedTime: number;
|
|
738
|
+
};
|
|
739
|
+
pow: {
|
|
740
|
+
solutionTimeout: number;
|
|
741
|
+
verifiedTimeout: number;
|
|
742
|
+
cachedTimeout: number;
|
|
743
|
+
};
|
|
744
|
+
};
|
|
525
745
|
database?: Partial<Record<"development" | "staging" | "production", {
|
|
526
746
|
type: string;
|
|
527
747
|
endpoint: string;
|
|
@@ -539,13 +759,13 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<import("
|
|
|
539
759
|
};
|
|
540
760
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
541
761
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
542
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
762
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
543
763
|
networks?: Record<string, {
|
|
764
|
+
endpoint: string[];
|
|
544
765
|
contract: {
|
|
545
|
-
name: string;
|
|
546
766
|
address: string;
|
|
767
|
+
name: string;
|
|
547
768
|
};
|
|
548
|
-
endpoint: string;
|
|
549
769
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
550
770
|
ss58Format?: number | undefined;
|
|
551
771
|
}> | undefined;
|
|
@@ -561,27 +781,43 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<import("
|
|
|
561
781
|
solutionThreshold?: number | undefined;
|
|
562
782
|
dappName?: string | undefined;
|
|
563
783
|
serverUrl?: string | undefined;
|
|
784
|
+
timeouts?: {
|
|
785
|
+
image?: {
|
|
786
|
+
challengeTimeout?: number | undefined;
|
|
787
|
+
solutionTimeout?: number | undefined;
|
|
788
|
+
verifiedTimeout?: number | undefined;
|
|
789
|
+
cachedTimeout?: number | undefined;
|
|
790
|
+
} | undefined;
|
|
791
|
+
contract?: {
|
|
792
|
+
maxVerifiedTime?: number | undefined;
|
|
793
|
+
} | undefined;
|
|
794
|
+
pow?: {
|
|
795
|
+
solutionTimeout?: number | undefined;
|
|
796
|
+
verifiedTimeout?: number | undefined;
|
|
797
|
+
cachedTimeout?: number | undefined;
|
|
798
|
+
} | undefined;
|
|
799
|
+
} | undefined;
|
|
564
800
|
}>;
|
|
565
801
|
export type ProsopoServerConfigInput = input<typeof ProsopoServerConfigSchema>;
|
|
566
802
|
export type ProsopoServerConfigOutput = output<typeof ProsopoServerConfigSchema>;
|
|
567
|
-
export declare const AccountCreatorConfigSchema:
|
|
568
|
-
area:
|
|
569
|
-
width:
|
|
570
|
-
height:
|
|
571
|
-
}, "strip",
|
|
803
|
+
export declare const AccountCreatorConfigSchema: z.ZodObject<{
|
|
804
|
+
area: z.ZodObject<{
|
|
805
|
+
width: z.ZodNumber;
|
|
806
|
+
height: z.ZodNumber;
|
|
807
|
+
}, "strip", z.ZodTypeAny, {
|
|
572
808
|
width: number;
|
|
573
809
|
height: number;
|
|
574
810
|
}, {
|
|
575
811
|
width: number;
|
|
576
812
|
height: number;
|
|
577
813
|
}>;
|
|
578
|
-
offsetParameter:
|
|
579
|
-
multiplier:
|
|
580
|
-
fontSizeFactor:
|
|
581
|
-
maxShadowBlur:
|
|
582
|
-
numberOfRounds:
|
|
583
|
-
seed:
|
|
584
|
-
}, "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, {
|
|
585
821
|
area: {
|
|
586
822
|
width: number;
|
|
587
823
|
height: number;
|
|
@@ -606,15 +842,15 @@ export declare const AccountCreatorConfigSchema: import("zod").ZodObject<{
|
|
|
606
842
|
}>;
|
|
607
843
|
export type ProsopoClientConfigInput = input<typeof ProsopoClientConfigSchema>;
|
|
608
844
|
export type ProsopoClientConfigOutput = output<typeof ProsopoClientConfigSchema>;
|
|
609
|
-
export declare const ProcaptchaConfigSchema:
|
|
610
|
-
logLevel:
|
|
611
|
-
defaultEnvironment:
|
|
612
|
-
defaultNetwork:
|
|
613
|
-
account:
|
|
614
|
-
address:
|
|
615
|
-
secret:
|
|
616
|
-
password:
|
|
617
|
-
}, "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, {
|
|
618
854
|
address?: string | undefined;
|
|
619
855
|
secret?: string | undefined;
|
|
620
856
|
password?: string | undefined;
|
|
@@ -624,59 +860,59 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
624
860
|
password?: string | undefined;
|
|
625
861
|
}>;
|
|
626
862
|
}, {
|
|
627
|
-
networks:
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
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, {
|
|
633
869
|
address: string;
|
|
634
|
-
}, {
|
|
635
870
|
name: string;
|
|
871
|
+
}, {
|
|
636
872
|
address: string;
|
|
873
|
+
name: string;
|
|
637
874
|
}>;
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
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[];
|
|
642
879
|
contract: {
|
|
643
|
-
name: string;
|
|
644
880
|
address: string;
|
|
881
|
+
name: string;
|
|
645
882
|
};
|
|
646
|
-
endpoint: string;
|
|
647
883
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
648
884
|
ss58Format: number;
|
|
649
885
|
}, {
|
|
886
|
+
endpoint: string[];
|
|
650
887
|
contract: {
|
|
651
|
-
name: string;
|
|
652
888
|
address: string;
|
|
889
|
+
name: string;
|
|
653
890
|
};
|
|
654
|
-
endpoint: string;
|
|
655
891
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
656
892
|
ss58Format?: number | undefined;
|
|
657
|
-
}>>, Record<"development" | "rococo" | "shiden", {
|
|
893
|
+
}>>, Record<"development" | "rococo" | "shiden" | "astar", {
|
|
894
|
+
endpoint: string[];
|
|
658
895
|
contract: {
|
|
659
|
-
name: string;
|
|
660
896
|
address: string;
|
|
897
|
+
name: string;
|
|
661
898
|
};
|
|
662
|
-
endpoint: string;
|
|
663
899
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
664
900
|
ss58Format: number;
|
|
665
901
|
}>, Record<string, {
|
|
902
|
+
endpoint: string[];
|
|
666
903
|
contract: {
|
|
667
|
-
name: string;
|
|
668
904
|
address: string;
|
|
905
|
+
name: string;
|
|
669
906
|
};
|
|
670
|
-
endpoint: string;
|
|
671
907
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
672
908
|
ss58Format?: number | undefined;
|
|
673
909
|
}>>>;
|
|
674
|
-
database:
|
|
675
|
-
type:
|
|
676
|
-
endpoint:
|
|
677
|
-
dbname:
|
|
678
|
-
authSource:
|
|
679
|
-
}, "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, {
|
|
680
916
|
type: string;
|
|
681
917
|
endpoint: string;
|
|
682
918
|
dbname: string;
|
|
@@ -687,28 +923,28 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
687
923
|
dbname: string;
|
|
688
924
|
authSource: string;
|
|
689
925
|
}>>>;
|
|
690
|
-
devOnlyWatchEvents:
|
|
926
|
+
devOnlyWatchEvents: z.ZodOptional<z.ZodBoolean>;
|
|
691
927
|
}>, {
|
|
692
|
-
userAccountAddress:
|
|
693
|
-
web2:
|
|
694
|
-
solutionThreshold:
|
|
695
|
-
dappName:
|
|
696
|
-
serverUrl:
|
|
697
|
-
}>, "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, {
|
|
698
934
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
699
935
|
defaultEnvironment: "development" | "staging" | "production";
|
|
700
|
-
defaultNetwork: "development" | "rococo" | "shiden";
|
|
936
|
+
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
701
937
|
account: {
|
|
702
938
|
address?: string | undefined;
|
|
703
939
|
secret?: string | undefined;
|
|
704
940
|
password?: string | undefined;
|
|
705
941
|
};
|
|
706
|
-
networks: Record<"development" | "rococo" | "shiden", {
|
|
942
|
+
networks: Record<"development" | "rococo" | "shiden" | "astar", {
|
|
943
|
+
endpoint: string[];
|
|
707
944
|
contract: {
|
|
708
|
-
name: string;
|
|
709
945
|
address: string;
|
|
946
|
+
name: string;
|
|
710
947
|
};
|
|
711
|
-
endpoint: string;
|
|
712
948
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
713
949
|
ss58Format: number;
|
|
714
950
|
}>;
|
|
@@ -732,13 +968,13 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
732
968
|
};
|
|
733
969
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
734
970
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
735
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
971
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
736
972
|
networks?: Record<string, {
|
|
973
|
+
endpoint: string[];
|
|
737
974
|
contract: {
|
|
738
|
-
name: string;
|
|
739
975
|
address: string;
|
|
976
|
+
name: string;
|
|
740
977
|
};
|
|
741
|
-
endpoint: string;
|
|
742
978
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
743
979
|
ss58Format?: number | undefined;
|
|
744
980
|
}> | undefined;
|
|
@@ -754,25 +990,25 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
754
990
|
solutionThreshold?: number | undefined;
|
|
755
991
|
dappName?: string | undefined;
|
|
756
992
|
serverUrl?: string | undefined;
|
|
757
|
-
}>,
|
|
758
|
-
accountCreator:
|
|
759
|
-
area:
|
|
760
|
-
width:
|
|
761
|
-
height:
|
|
762
|
-
}, "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, {
|
|
763
999
|
width: number;
|
|
764
1000
|
height: number;
|
|
765
1001
|
}, {
|
|
766
1002
|
width: number;
|
|
767
1003
|
height: number;
|
|
768
1004
|
}>;
|
|
769
|
-
offsetParameter:
|
|
770
|
-
multiplier:
|
|
771
|
-
fontSizeFactor:
|
|
772
|
-
maxShadowBlur:
|
|
773
|
-
numberOfRounds:
|
|
774
|
-
seed:
|
|
775
|
-
}, "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, {
|
|
776
1012
|
area: {
|
|
777
1013
|
width: number;
|
|
778
1014
|
height: number;
|
|
@@ -795,10 +1031,92 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
795
1031
|
numberOfRounds: number;
|
|
796
1032
|
seed: number;
|
|
797
1033
|
}>>;
|
|
798
|
-
theme:
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
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, {
|
|
1042
|
+
challengeTimeout: number;
|
|
1043
|
+
solutionTimeout: number;
|
|
1044
|
+
verifiedTimeout: number;
|
|
1045
|
+
cachedTimeout: number;
|
|
1046
|
+
}, {
|
|
1047
|
+
challengeTimeout?: number | undefined;
|
|
1048
|
+
solutionTimeout?: number | undefined;
|
|
1049
|
+
verifiedTimeout?: number | undefined;
|
|
1050
|
+
cachedTimeout?: number | undefined;
|
|
1051
|
+
}>>;
|
|
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, {
|
|
1057
|
+
solutionTimeout: number;
|
|
1058
|
+
verifiedTimeout: number;
|
|
1059
|
+
cachedTimeout: number;
|
|
1060
|
+
}, {
|
|
1061
|
+
solutionTimeout?: number | undefined;
|
|
1062
|
+
verifiedTimeout?: number | undefined;
|
|
1063
|
+
cachedTimeout?: number | undefined;
|
|
1064
|
+
}>>;
|
|
1065
|
+
contract: z.ZodDefault<z.ZodObject<{
|
|
1066
|
+
maxVerifiedTime: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1067
|
+
}, "strip", z.ZodTypeAny, {
|
|
1068
|
+
maxVerifiedTime: number;
|
|
1069
|
+
}, {
|
|
1070
|
+
maxVerifiedTime?: number | undefined;
|
|
1071
|
+
}>>;
|
|
1072
|
+
}, "strip", z.ZodTypeAny, {
|
|
1073
|
+
image: {
|
|
1074
|
+
challengeTimeout: number;
|
|
1075
|
+
solutionTimeout: number;
|
|
1076
|
+
verifiedTimeout: number;
|
|
1077
|
+
cachedTimeout: number;
|
|
1078
|
+
};
|
|
1079
|
+
contract: {
|
|
1080
|
+
maxVerifiedTime: number;
|
|
1081
|
+
};
|
|
1082
|
+
pow: {
|
|
1083
|
+
solutionTimeout: number;
|
|
1084
|
+
verifiedTimeout: number;
|
|
1085
|
+
cachedTimeout: number;
|
|
1086
|
+
};
|
|
1087
|
+
}, {
|
|
1088
|
+
image?: {
|
|
1089
|
+
challengeTimeout?: number | undefined;
|
|
1090
|
+
solutionTimeout?: number | undefined;
|
|
1091
|
+
verifiedTimeout?: number | undefined;
|
|
1092
|
+
cachedTimeout?: number | undefined;
|
|
1093
|
+
} | undefined;
|
|
1094
|
+
contract?: {
|
|
1095
|
+
maxVerifiedTime?: number | undefined;
|
|
1096
|
+
} | undefined;
|
|
1097
|
+
pow?: {
|
|
1098
|
+
solutionTimeout?: number | undefined;
|
|
1099
|
+
verifiedTimeout?: number | undefined;
|
|
1100
|
+
cachedTimeout?: number | undefined;
|
|
1101
|
+
} | undefined;
|
|
1102
|
+
}>>>>;
|
|
1103
|
+
}, "strip", z.ZodTypeAny, {
|
|
1104
|
+
captchas: {
|
|
1105
|
+
image: {
|
|
1106
|
+
challengeTimeout: number;
|
|
1107
|
+
solutionTimeout: number;
|
|
1108
|
+
verifiedTimeout: number;
|
|
1109
|
+
cachedTimeout: number;
|
|
1110
|
+
};
|
|
1111
|
+
contract: {
|
|
1112
|
+
maxVerifiedTime: number;
|
|
1113
|
+
};
|
|
1114
|
+
pow: {
|
|
1115
|
+
solutionTimeout: number;
|
|
1116
|
+
verifiedTimeout: number;
|
|
1117
|
+
cachedTimeout: number;
|
|
1118
|
+
};
|
|
1119
|
+
};
|
|
802
1120
|
accountCreator?: {
|
|
803
1121
|
area: {
|
|
804
1122
|
width: number;
|
|
@@ -813,6 +1131,22 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
813
1131
|
} | undefined;
|
|
814
1132
|
theme?: "light" | "dark" | undefined;
|
|
815
1133
|
}, {
|
|
1134
|
+
captchas?: {
|
|
1135
|
+
image?: {
|
|
1136
|
+
challengeTimeout?: number | undefined;
|
|
1137
|
+
solutionTimeout?: number | undefined;
|
|
1138
|
+
verifiedTimeout?: number | undefined;
|
|
1139
|
+
cachedTimeout?: number | undefined;
|
|
1140
|
+
} | undefined;
|
|
1141
|
+
contract?: {
|
|
1142
|
+
maxVerifiedTime?: number | undefined;
|
|
1143
|
+
} | undefined;
|
|
1144
|
+
pow?: {
|
|
1145
|
+
solutionTimeout?: number | undefined;
|
|
1146
|
+
verifiedTimeout?: number | undefined;
|
|
1147
|
+
cachedTimeout?: number | undefined;
|
|
1148
|
+
} | undefined;
|
|
1149
|
+
} | undefined;
|
|
816
1150
|
accountCreator?: {
|
|
817
1151
|
area: {
|
|
818
1152
|
width: number;
|
|
@@ -826,19 +1160,18 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
826
1160
|
seed: number;
|
|
827
1161
|
} | undefined;
|
|
828
1162
|
theme?: "light" | "dark" | undefined;
|
|
829
|
-
challengeValidLength?: number | undefined;
|
|
830
1163
|
}>>;
|
|
831
1164
|
export type ProcaptchaClientConfigInput = input<typeof ProcaptchaConfigSchema>;
|
|
832
1165
|
export type ProcaptchaClientConfigOutput = output<typeof ProcaptchaConfigSchema>;
|
|
833
|
-
export declare const ProsopoConfigSchema:
|
|
834
|
-
logLevel:
|
|
835
|
-
defaultEnvironment:
|
|
836
|
-
defaultNetwork:
|
|
837
|
-
account:
|
|
838
|
-
address:
|
|
839
|
-
secret:
|
|
840
|
-
password:
|
|
841
|
-
}, "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, {
|
|
842
1175
|
address?: string | undefined;
|
|
843
1176
|
secret?: string | undefined;
|
|
844
1177
|
password?: string | undefined;
|
|
@@ -848,59 +1181,59 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<import("zod").
|
|
|
848
1181
|
password?: string | undefined;
|
|
849
1182
|
}>;
|
|
850
1183
|
}, {
|
|
851
|
-
networks:
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
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, {
|
|
857
1190
|
address: string;
|
|
858
|
-
}, {
|
|
859
1191
|
name: string;
|
|
1192
|
+
}, {
|
|
860
1193
|
address: string;
|
|
1194
|
+
name: string;
|
|
861
1195
|
}>;
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
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[];
|
|
866
1200
|
contract: {
|
|
867
|
-
name: string;
|
|
868
1201
|
address: string;
|
|
1202
|
+
name: string;
|
|
869
1203
|
};
|
|
870
|
-
endpoint: string;
|
|
871
1204
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
872
1205
|
ss58Format: number;
|
|
873
1206
|
}, {
|
|
1207
|
+
endpoint: string[];
|
|
874
1208
|
contract: {
|
|
875
|
-
name: string;
|
|
876
1209
|
address: string;
|
|
1210
|
+
name: string;
|
|
877
1211
|
};
|
|
878
|
-
endpoint: string;
|
|
879
1212
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
880
1213
|
ss58Format?: number | undefined;
|
|
881
|
-
}>>, Record<"development" | "rococo" | "shiden", {
|
|
1214
|
+
}>>, Record<"development" | "rococo" | "shiden" | "astar", {
|
|
1215
|
+
endpoint: string[];
|
|
882
1216
|
contract: {
|
|
883
|
-
name: string;
|
|
884
1217
|
address: string;
|
|
1218
|
+
name: string;
|
|
885
1219
|
};
|
|
886
|
-
endpoint: string;
|
|
887
1220
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
888
1221
|
ss58Format: number;
|
|
889
1222
|
}>, Record<string, {
|
|
1223
|
+
endpoint: string[];
|
|
890
1224
|
contract: {
|
|
891
|
-
name: string;
|
|
892
1225
|
address: string;
|
|
1226
|
+
name: string;
|
|
893
1227
|
};
|
|
894
|
-
endpoint: string;
|
|
895
1228
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
896
1229
|
ss58Format?: number | undefined;
|
|
897
1230
|
}>>>;
|
|
898
|
-
database:
|
|
899
|
-
type:
|
|
900
|
-
endpoint:
|
|
901
|
-
dbname:
|
|
902
|
-
authSource:
|
|
903
|
-
}, "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, {
|
|
904
1237
|
type: string;
|
|
905
1238
|
endpoint: string;
|
|
906
1239
|
dbname: string;
|
|
@@ -911,24 +1244,24 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<import("zod").
|
|
|
911
1244
|
dbname: string;
|
|
912
1245
|
authSource: string;
|
|
913
1246
|
}>>>;
|
|
914
|
-
devOnlyWatchEvents:
|
|
1247
|
+
devOnlyWatchEvents: z.ZodOptional<z.ZodBoolean>;
|
|
915
1248
|
}>, {
|
|
916
|
-
captchas:
|
|
917
|
-
solved:
|
|
918
|
-
count:
|
|
919
|
-
}, "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, {
|
|
920
1253
|
count: number;
|
|
921
1254
|
}, {
|
|
922
1255
|
count: number;
|
|
923
1256
|
}>>>;
|
|
924
|
-
unsolved:
|
|
925
|
-
count:
|
|
926
|
-
}, "strip",
|
|
1257
|
+
unsolved: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
1258
|
+
count: z.ZodNumber;
|
|
1259
|
+
}, "strip", z.ZodTypeAny, {
|
|
927
1260
|
count: number;
|
|
928
1261
|
}, {
|
|
929
1262
|
count: number;
|
|
930
1263
|
}>>>;
|
|
931
|
-
}, "strip",
|
|
1264
|
+
}, "strip", z.ZodTypeAny, {
|
|
932
1265
|
solved: {
|
|
933
1266
|
count: number;
|
|
934
1267
|
};
|
|
@@ -943,11 +1276,11 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<import("zod").
|
|
|
943
1276
|
count: number;
|
|
944
1277
|
} | undefined;
|
|
945
1278
|
}>>>;
|
|
946
|
-
captchaSolutions:
|
|
947
|
-
requiredNumberOfSolutions:
|
|
948
|
-
solutionWinningPercentage:
|
|
949
|
-
captchaBlockRecency:
|
|
950
|
-
}, "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, {
|
|
951
1284
|
requiredNumberOfSolutions: number;
|
|
952
1285
|
solutionWinningPercentage: number;
|
|
953
1286
|
captchaBlockRecency: number;
|
|
@@ -956,28 +1289,28 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<import("zod").
|
|
|
956
1289
|
solutionWinningPercentage: number;
|
|
957
1290
|
captchaBlockRecency: number;
|
|
958
1291
|
}>>>;
|
|
959
|
-
batchCommit:
|
|
960
|
-
interval:
|
|
961
|
-
maxBatchExtrinsicPercentage:
|
|
962
|
-
}, "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, {
|
|
963
1296
|
interval: number;
|
|
964
1297
|
maxBatchExtrinsicPercentage: number;
|
|
965
1298
|
}, {
|
|
966
1299
|
interval?: number | undefined;
|
|
967
1300
|
maxBatchExtrinsicPercentage?: number | undefined;
|
|
968
1301
|
}>>>;
|
|
969
|
-
server:
|
|
970
|
-
baseURL:
|
|
971
|
-
port:
|
|
972
|
-
}, "strip",
|
|
1302
|
+
server: z.ZodObject<{
|
|
1303
|
+
baseURL: z.ZodString;
|
|
1304
|
+
port: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1305
|
+
}, "strip", z.ZodTypeAny, {
|
|
973
1306
|
baseURL: string;
|
|
974
1307
|
port: number;
|
|
975
1308
|
}, {
|
|
976
1309
|
baseURL: string;
|
|
977
1310
|
port?: number | undefined;
|
|
978
1311
|
}>;
|
|
979
|
-
mongoEventsUri:
|
|
980
|
-
}>, "strip",
|
|
1312
|
+
mongoEventsUri: z.ZodOptional<z.ZodString>;
|
|
1313
|
+
}>, "strip", z.ZodTypeAny, {
|
|
981
1314
|
captchas: {
|
|
982
1315
|
solved: {
|
|
983
1316
|
count: number;
|
|
@@ -988,18 +1321,18 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<import("zod").
|
|
|
988
1321
|
};
|
|
989
1322
|
logLevel: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log";
|
|
990
1323
|
defaultEnvironment: "development" | "staging" | "production";
|
|
991
|
-
defaultNetwork: "development" | "rococo" | "shiden";
|
|
1324
|
+
defaultNetwork: "development" | "rococo" | "shiden" | "astar";
|
|
992
1325
|
account: {
|
|
993
1326
|
address?: string | undefined;
|
|
994
1327
|
secret?: string | undefined;
|
|
995
1328
|
password?: string | undefined;
|
|
996
1329
|
};
|
|
997
|
-
networks: Record<"development" | "rococo" | "shiden", {
|
|
1330
|
+
networks: Record<"development" | "rococo" | "shiden" | "astar", {
|
|
1331
|
+
endpoint: string[];
|
|
998
1332
|
contract: {
|
|
999
|
-
name: string;
|
|
1000
1333
|
address: string;
|
|
1334
|
+
name: string;
|
|
1001
1335
|
};
|
|
1002
|
-
endpoint: string;
|
|
1003
1336
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1004
1337
|
ss58Format: number;
|
|
1005
1338
|
}>;
|
|
@@ -1044,13 +1377,13 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<import("zod").
|
|
|
1044
1377
|
} | undefined;
|
|
1045
1378
|
logLevel?: "trace" | "debug" | "info" | "warn" | "error" | "fatal" | "log" | undefined;
|
|
1046
1379
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
1047
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
1380
|
+
defaultNetwork?: "development" | "rococo" | "shiden" | "astar" | undefined;
|
|
1048
1381
|
networks?: Record<string, {
|
|
1382
|
+
endpoint: string[];
|
|
1049
1383
|
contract: {
|
|
1050
|
-
name: string;
|
|
1051
1384
|
address: string;
|
|
1385
|
+
name: string;
|
|
1052
1386
|
};
|
|
1053
|
-
endpoint: string;
|
|
1054
1387
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1055
1388
|
ss58Format?: number | undefined;
|
|
1056
1389
|
}> | undefined;
|