@prosopo/types 0.2.11 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/config/config.cjs +56 -52
- package/dist/cjs/config/enumMap.cjs +2 -2
- package/dist/cjs/config/network.cjs +12 -12
- package/dist/cjs/contract/artifacts.cjs +2 -2
- package/dist/cjs/datasets/captcha.cjs +36 -36
- package/dist/cjs/datasets/dataset.cjs +16 -16
- package/dist/cjs/procaptcha/manager.cjs +7 -7
- package/dist/cjs/provider/api.cjs +15 -14
- package/dist/cjs/provider/argv.cjs +2 -3
- package/dist/config/config.d.ts +253 -425
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +59 -54
- package/dist/config/config.js.map +1 -1
- package/dist/config/enumMap.d.ts +2 -2
- package/dist/config/enumMap.d.ts.map +1 -1
- package/dist/config/enumMap.js +2 -2
- package/dist/config/enumMap.js.map +1 -1
- package/dist/config/network.d.ts +23 -23
- package/dist/config/network.d.ts.map +1 -1
- package/dist/config/network.js +13 -13
- package/dist/config/network.js.map +1 -1
- package/dist/contract/artifacts.d.ts +2 -2
- package/dist/contract/artifacts.d.ts.map +1 -1
- package/dist/contract/artifacts.js +1 -1
- package/dist/contract/artifacts.js.map +1 -1
- package/dist/contract/batch.d.ts +2 -2
- package/dist/contract/batch.d.ts.map +1 -1
- package/dist/contract/contract.d.ts +1 -1
- package/dist/contract/contract.d.ts.map +1 -1
- package/dist/contract/useWeight.d.ts +1 -1
- package/dist/contract/useWeight.d.ts.map +1 -1
- package/dist/datasets/captcha.d.ts +158 -158
- package/dist/datasets/captcha.d.ts.map +1 -1
- package/dist/datasets/captcha.js +37 -37
- package/dist/datasets/captcha.js.map +1 -1
- package/dist/datasets/dataset.d.ts +87 -88
- package/dist/datasets/dataset.d.ts.map +1 -1
- package/dist/datasets/dataset.js +17 -17
- package/dist/datasets/dataset.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/procaptcha/manager.d.ts +18 -18
- package/dist/procaptcha/manager.d.ts.map +1 -1
- package/dist/procaptcha/manager.js +8 -8
- package/dist/procaptcha/manager.js.map +1 -1
- package/dist/provider/accounts.d.ts +2 -3
- package/dist/provider/accounts.d.ts.map +1 -1
- package/dist/provider/api.d.ts +32 -26
- package/dist/provider/api.d.ts.map +1 -1
- package/dist/provider/api.js +16 -15
- package/dist/provider/api.js.map +1 -1
- package/dist/provider/argv.d.ts +2 -3
- package/dist/provider/argv.d.ts.map +1 -1
- package/dist/provider/argv.js +3 -3
- package/dist/provider/argv.js.map +1 -1
- package/package.json +7 -7
- package/dist/cjs/contracts/captcha/dist/build-extrinsic/captcha.cjs +0 -339
- package/dist/cjs/contracts/captcha/dist/contract-info/captcha.cjs +0 -6
- package/dist/cjs/contracts/captcha/dist/contracts/captcha.cjs +0 -79
- package/dist/cjs/contracts/captcha/dist/data/captcha.json.cjs +0 -3374
- package/dist/cjs/contracts/captcha/dist/event-data/captcha.json.cjs +0 -3
- package/dist/cjs/contracts/captcha/dist/events/captcha.cjs +0 -23
- package/dist/cjs/contracts/captcha/dist/index.cjs +0 -44
- package/dist/cjs/contracts/captcha/dist/mixed-methods/captcha.cjs +0 -470
- package/dist/cjs/contracts/captcha/dist/query/captcha.cjs +0 -468
- package/dist/cjs/contracts/captcha/dist/shared/utils.cjs +0 -31
- package/dist/cjs/contracts/captcha/dist/tx-sign-and-send/captcha.cjs +0 -426
- package/dist/cjs/contracts/captcha/dist/types-arguments/captcha.cjs +0 -62
package/dist/config/config.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { ProsopoNetworksSchema } from './network.js';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
export declare const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
import { input } from 'zod';
|
|
3
|
+
import { output } from 'zod';
|
|
4
|
+
import { infer as zInfer } from 'zod';
|
|
5
|
+
export declare const DatabaseTypes: import("zod").ZodEnum<["mongo", "mongoMemory"]>;
|
|
6
|
+
export declare const EnvironmentTypesSchema: import("zod").ZodEnum<["development", "staging", "production"]>;
|
|
7
|
+
export type EnvironmentTypes = zInfer<typeof EnvironmentTypesSchema>;
|
|
8
|
+
export declare const DatabaseConfigSchema: import("zod").ZodRecord<import("zod").ZodEnum<["development", "staging", "production"]>, import("zod").ZodObject<{
|
|
9
|
+
type: import("zod").ZodString;
|
|
10
|
+
endpoint: import("zod").ZodString;
|
|
11
|
+
dbname: import("zod").ZodString;
|
|
12
|
+
authSource: import("zod").ZodString;
|
|
13
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
12
14
|
type: string;
|
|
13
15
|
endpoint: string;
|
|
14
16
|
dbname: string;
|
|
@@ -19,29 +21,29 @@ export declare const DatabaseConfigSchema: z.ZodRecord<z.ZodEnum<["development",
|
|
|
19
21
|
dbname: string;
|
|
20
22
|
authSource: string;
|
|
21
23
|
}>>;
|
|
22
|
-
export declare const BatchCommitConfigSchema:
|
|
23
|
-
interval:
|
|
24
|
-
maxBatchExtrinsicPercentage:
|
|
25
|
-
}, "strip",
|
|
24
|
+
export declare const BatchCommitConfigSchema: import("zod").ZodObject<{
|
|
25
|
+
interval: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
26
|
+
maxBatchExtrinsicPercentage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
27
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
26
28
|
interval: number;
|
|
27
29
|
maxBatchExtrinsicPercentage: number;
|
|
28
30
|
}, {
|
|
29
31
|
interval?: number | undefined;
|
|
30
32
|
maxBatchExtrinsicPercentage?: number | undefined;
|
|
31
33
|
}>;
|
|
32
|
-
export type BatchCommitConfigInput =
|
|
33
|
-
export type BatchCommitConfigOutput =
|
|
34
|
-
export type DatabaseConfigInput =
|
|
35
|
-
export type DatabaseConfigOutput =
|
|
36
|
-
export declare const ProsopoBaseConfigSchema:
|
|
37
|
-
logLevel:
|
|
38
|
-
defaultEnvironment:
|
|
39
|
-
defaultNetwork:
|
|
40
|
-
account:
|
|
41
|
-
address:
|
|
42
|
-
secret:
|
|
43
|
-
password:
|
|
44
|
-
}, "strip",
|
|
34
|
+
export type BatchCommitConfigInput = input<typeof BatchCommitConfigSchema>;
|
|
35
|
+
export type BatchCommitConfigOutput = output<typeof BatchCommitConfigSchema>;
|
|
36
|
+
export type DatabaseConfigInput = input<typeof DatabaseConfigSchema>;
|
|
37
|
+
export type DatabaseConfigOutput = output<typeof DatabaseConfigSchema>;
|
|
38
|
+
export declare const ProsopoBaseConfigSchema: import("zod").ZodObject<{
|
|
39
|
+
logLevel: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>>;
|
|
40
|
+
defaultEnvironment: import("zod").ZodDefault<import("zod").ZodEnum<["development", "staging", "production"]>>;
|
|
41
|
+
defaultNetwork: import("zod").ZodDefault<import("zod").ZodEnum<["development", "rococo", "shiden"]>>;
|
|
42
|
+
account: import("zod").ZodObject<{
|
|
43
|
+
address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
44
|
+
secret: import("zod").ZodOptional<import("zod").ZodString>;
|
|
45
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
45
47
|
address?: string | undefined;
|
|
46
48
|
secret?: string | undefined;
|
|
47
49
|
password?: string | undefined;
|
|
@@ -50,7 +52,7 @@ export declare const ProsopoBaseConfigSchema: z.ZodObject<{
|
|
|
50
52
|
secret?: string | undefined;
|
|
51
53
|
password?: string | undefined;
|
|
52
54
|
}>;
|
|
53
|
-
}, "strip",
|
|
55
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
54
56
|
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
55
57
|
defaultEnvironment: "development" | "staging" | "production";
|
|
56
58
|
defaultNetwork: "development" | "rococo" | "shiden";
|
|
@@ -69,15 +71,15 @@ export declare const ProsopoBaseConfigSchema: z.ZodObject<{
|
|
|
69
71
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
70
72
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
71
73
|
}>;
|
|
72
|
-
export declare const ProsopoBasicConfigSchema:
|
|
73
|
-
logLevel:
|
|
74
|
-
defaultEnvironment:
|
|
75
|
-
defaultNetwork:
|
|
76
|
-
account:
|
|
77
|
-
address:
|
|
78
|
-
secret:
|
|
79
|
-
password:
|
|
80
|
-
}, "strip",
|
|
74
|
+
export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<{
|
|
75
|
+
logLevel: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>>;
|
|
76
|
+
defaultEnvironment: import("zod").ZodDefault<import("zod").ZodEnum<["development", "staging", "production"]>>;
|
|
77
|
+
defaultNetwork: import("zod").ZodDefault<import("zod").ZodEnum<["development", "rococo", "shiden"]>>;
|
|
78
|
+
account: import("zod").ZodObject<{
|
|
79
|
+
address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
80
|
+
secret: import("zod").ZodOptional<import("zod").ZodString>;
|
|
81
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
82
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
81
83
|
address?: string | undefined;
|
|
82
84
|
secret?: string | undefined;
|
|
83
85
|
password?: string | undefined;
|
|
@@ -86,21 +88,21 @@ export declare const ProsopoBasicConfigSchema: z.ZodObject<{
|
|
|
86
88
|
secret?: string | undefined;
|
|
87
89
|
password?: string | undefined;
|
|
88
90
|
}>;
|
|
89
|
-
networks:
|
|
90
|
-
endpoint:
|
|
91
|
-
contract:
|
|
92
|
-
address:
|
|
93
|
-
name:
|
|
94
|
-
}, "strip",
|
|
91
|
+
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
92
|
+
endpoint: import("zod").ZodString;
|
|
93
|
+
contract: import("zod").ZodObject<{
|
|
94
|
+
address: import("zod").ZodString;
|
|
95
|
+
name: import("zod").ZodString;
|
|
96
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
95
97
|
address: string;
|
|
96
98
|
name: string;
|
|
97
99
|
}, {
|
|
98
100
|
address: string;
|
|
99
101
|
name: string;
|
|
100
102
|
}>;
|
|
101
|
-
pairType:
|
|
102
|
-
ss58Format:
|
|
103
|
-
}, "strip",
|
|
103
|
+
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
104
|
+
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
105
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
104
106
|
endpoint: string;
|
|
105
107
|
contract: {
|
|
106
108
|
address: string;
|
|
@@ -133,12 +135,12 @@ export declare const ProsopoBasicConfigSchema: z.ZodObject<{
|
|
|
133
135
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
134
136
|
ss58Format?: number | undefined;
|
|
135
137
|
}>>>;
|
|
136
|
-
database:
|
|
137
|
-
type:
|
|
138
|
-
endpoint:
|
|
139
|
-
dbname:
|
|
140
|
-
authSource:
|
|
141
|
-
}, "strip",
|
|
138
|
+
database: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodEnum<["development", "staging", "production"]>, import("zod").ZodObject<{
|
|
139
|
+
type: import("zod").ZodString;
|
|
140
|
+
endpoint: import("zod").ZodString;
|
|
141
|
+
dbname: import("zod").ZodString;
|
|
142
|
+
authSource: import("zod").ZodString;
|
|
143
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
142
144
|
type: string;
|
|
143
145
|
endpoint: string;
|
|
144
146
|
dbname: string;
|
|
@@ -149,7 +151,7 @@ export declare const ProsopoBasicConfigSchema: z.ZodObject<{
|
|
|
149
151
|
dbname: string;
|
|
150
152
|
authSource: string;
|
|
151
153
|
}>>>;
|
|
152
|
-
}, "strip",
|
|
154
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
153
155
|
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
154
156
|
defaultEnvironment: "development" | "staging" | "production";
|
|
155
157
|
defaultNetwork: "development" | "rococo" | "shiden";
|
|
@@ -198,26 +200,26 @@ export declare const ProsopoBasicConfigSchema: z.ZodObject<{
|
|
|
198
200
|
authSource: string;
|
|
199
201
|
}>> | undefined;
|
|
200
202
|
}>;
|
|
201
|
-
export type ProsopoNetworksSchemaInput =
|
|
202
|
-
export type ProsopoNetworksSchemaOutput =
|
|
203
|
-
export type ProsopoBasicConfigInput =
|
|
204
|
-
export type ProsopoBasicConfigOutput =
|
|
205
|
-
export declare const ProsopoCaptchaCountConfigSchema:
|
|
206
|
-
solved:
|
|
207
|
-
count:
|
|
208
|
-
}, "strip",
|
|
203
|
+
export type ProsopoNetworksSchemaInput = input<typeof ProsopoNetworksSchema>;
|
|
204
|
+
export type ProsopoNetworksSchemaOutput = output<typeof ProsopoNetworksSchema>;
|
|
205
|
+
export type ProsopoBasicConfigInput = input<typeof ProsopoBasicConfigSchema>;
|
|
206
|
+
export type ProsopoBasicConfigOutput = output<typeof ProsopoBasicConfigSchema>;
|
|
207
|
+
export declare const ProsopoCaptchaCountConfigSchema: import("zod").ZodObject<{
|
|
208
|
+
solved: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
209
|
+
count: import("zod").ZodNumber;
|
|
210
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
209
211
|
count: number;
|
|
210
212
|
}, {
|
|
211
213
|
count: number;
|
|
212
214
|
}>>>;
|
|
213
|
-
unsolved:
|
|
214
|
-
count:
|
|
215
|
-
}, "strip",
|
|
215
|
+
unsolved: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
216
|
+
count: import("zod").ZodNumber;
|
|
217
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
216
218
|
count: number;
|
|
217
219
|
}, {
|
|
218
220
|
count: number;
|
|
219
221
|
}>>>;
|
|
220
|
-
}, "strip",
|
|
222
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
221
223
|
solved: {
|
|
222
224
|
count: number;
|
|
223
225
|
};
|
|
@@ -232,22 +234,22 @@ export declare const ProsopoCaptchaCountConfigSchema: z.ZodObject<{
|
|
|
232
234
|
count: number;
|
|
233
235
|
} | undefined;
|
|
234
236
|
}>;
|
|
235
|
-
export type ProsopoCaptchaCountConfigSchemaInput =
|
|
236
|
-
export declare const ProsopoImageServerConfigSchema:
|
|
237
|
-
baseURL:
|
|
238
|
-
port:
|
|
239
|
-
}, "strip",
|
|
237
|
+
export type ProsopoCaptchaCountConfigSchemaInput = input<typeof ProsopoCaptchaCountConfigSchema>;
|
|
238
|
+
export declare const ProsopoImageServerConfigSchema: import("zod").ZodObject<{
|
|
239
|
+
baseURL: import("zod").ZodString;
|
|
240
|
+
port: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
241
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
240
242
|
baseURL: string;
|
|
241
243
|
port: number;
|
|
242
244
|
}, {
|
|
243
245
|
baseURL: string;
|
|
244
246
|
port?: number | undefined;
|
|
245
247
|
}>;
|
|
246
|
-
export declare const ProsopoCaptchaSolutionConfigSchema:
|
|
247
|
-
requiredNumberOfSolutions:
|
|
248
|
-
solutionWinningPercentage:
|
|
249
|
-
captchaBlockRecency:
|
|
250
|
-
}, "strip",
|
|
248
|
+
export declare const ProsopoCaptchaSolutionConfigSchema: import("zod").ZodObject<{
|
|
249
|
+
requiredNumberOfSolutions: import("zod").ZodNumber;
|
|
250
|
+
solutionWinningPercentage: import("zod").ZodNumber;
|
|
251
|
+
captchaBlockRecency: import("zod").ZodNumber;
|
|
252
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
251
253
|
requiredNumberOfSolutions: number;
|
|
252
254
|
solutionWinningPercentage: number;
|
|
253
255
|
captchaBlockRecency: number;
|
|
@@ -256,15 +258,15 @@ export declare const ProsopoCaptchaSolutionConfigSchema: z.ZodObject<{
|
|
|
256
258
|
solutionWinningPercentage: number;
|
|
257
259
|
captchaBlockRecency: number;
|
|
258
260
|
}>;
|
|
259
|
-
export declare const ProsopoClientConfigSchema:
|
|
260
|
-
logLevel:
|
|
261
|
-
defaultEnvironment:
|
|
262
|
-
defaultNetwork:
|
|
263
|
-
account:
|
|
264
|
-
address:
|
|
265
|
-
secret:
|
|
266
|
-
password:
|
|
267
|
-
}, "strip",
|
|
261
|
+
export declare const ProsopoClientConfigSchema: import("zod").ZodObject<{
|
|
262
|
+
logLevel: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>>;
|
|
263
|
+
defaultEnvironment: import("zod").ZodDefault<import("zod").ZodEnum<["development", "staging", "production"]>>;
|
|
264
|
+
defaultNetwork: import("zod").ZodDefault<import("zod").ZodEnum<["development", "rococo", "shiden"]>>;
|
|
265
|
+
account: import("zod").ZodObject<{
|
|
266
|
+
address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
267
|
+
secret: import("zod").ZodOptional<import("zod").ZodString>;
|
|
268
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
269
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
268
270
|
address?: string | undefined;
|
|
269
271
|
secret?: string | undefined;
|
|
270
272
|
password?: string | undefined;
|
|
@@ -273,21 +275,21 @@ export declare const ProsopoClientConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
273
275
|
secret?: string | undefined;
|
|
274
276
|
password?: string | undefined;
|
|
275
277
|
}>;
|
|
276
|
-
networks:
|
|
277
|
-
endpoint:
|
|
278
|
-
contract:
|
|
279
|
-
address:
|
|
280
|
-
name:
|
|
281
|
-
}, "strip",
|
|
278
|
+
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
279
|
+
endpoint: import("zod").ZodString;
|
|
280
|
+
contract: import("zod").ZodObject<{
|
|
281
|
+
address: import("zod").ZodString;
|
|
282
|
+
name: import("zod").ZodString;
|
|
283
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
282
284
|
address: string;
|
|
283
285
|
name: string;
|
|
284
286
|
}, {
|
|
285
287
|
address: string;
|
|
286
288
|
name: string;
|
|
287
289
|
}>;
|
|
288
|
-
pairType:
|
|
289
|
-
ss58Format:
|
|
290
|
-
}, "strip",
|
|
290
|
+
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
291
|
+
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
292
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
291
293
|
endpoint: string;
|
|
292
294
|
contract: {
|
|
293
295
|
address: string;
|
|
@@ -320,12 +322,12 @@ export declare const ProsopoClientConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
320
322
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
321
323
|
ss58Format?: number | undefined;
|
|
322
324
|
}>>>;
|
|
323
|
-
database:
|
|
324
|
-
type:
|
|
325
|
-
endpoint:
|
|
326
|
-
dbname:
|
|
327
|
-
authSource:
|
|
328
|
-
}, "strip",
|
|
325
|
+
database: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodEnum<["development", "staging", "production"]>, import("zod").ZodObject<{
|
|
326
|
+
type: import("zod").ZodString;
|
|
327
|
+
endpoint: import("zod").ZodString;
|
|
328
|
+
dbname: import("zod").ZodString;
|
|
329
|
+
authSource: import("zod").ZodString;
|
|
330
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
329
331
|
type: string;
|
|
330
332
|
endpoint: string;
|
|
331
333
|
dbname: string;
|
|
@@ -336,12 +338,12 @@ export declare const ProsopoClientConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
336
338
|
dbname: string;
|
|
337
339
|
authSource: string;
|
|
338
340
|
}>>>;
|
|
339
|
-
userAccountAddress:
|
|
340
|
-
web2:
|
|
341
|
-
solutionThreshold:
|
|
342
|
-
dappName:
|
|
343
|
-
serverUrl:
|
|
344
|
-
}, "strip",
|
|
341
|
+
userAccountAddress: import("zod").ZodOptional<import("zod").ZodString>;
|
|
342
|
+
web2: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
343
|
+
solutionThreshold: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
344
|
+
dappName: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
345
|
+
serverUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
346
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
345
347
|
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
346
348
|
defaultEnvironment: "development" | "staging" | "production";
|
|
347
349
|
defaultNetwork: "development" | "rococo" | "shiden";
|
|
@@ -362,65 +364,6 @@ export declare const ProsopoClientConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
362
364
|
web2: boolean;
|
|
363
365
|
solutionThreshold: number;
|
|
364
366
|
dappName: string;
|
|
365
|
-
serverUrl: string;
|
|
366
|
-
database?: Partial<Record<"development" | "staging" | "production", {
|
|
367
|
-
type: string;
|
|
368
|
-
endpoint: string;
|
|
369
|
-
dbname: string;
|
|
370
|
-
authSource: string;
|
|
371
|
-
}>> | undefined;
|
|
372
|
-
userAccountAddress?: string | undefined;
|
|
373
|
-
}, {
|
|
374
|
-
account: {
|
|
375
|
-
address?: string | undefined;
|
|
376
|
-
secret?: string | undefined;
|
|
377
|
-
password?: string | undefined;
|
|
378
|
-
};
|
|
379
|
-
serverUrl: string;
|
|
380
|
-
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
381
|
-
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
382
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
383
|
-
networks?: Record<string, {
|
|
384
|
-
endpoint: string;
|
|
385
|
-
contract: {
|
|
386
|
-
address: string;
|
|
387
|
-
name: string;
|
|
388
|
-
};
|
|
389
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
390
|
-
ss58Format?: number | undefined;
|
|
391
|
-
}> | undefined;
|
|
392
|
-
database?: Partial<Record<"development" | "staging" | "production", {
|
|
393
|
-
type: string;
|
|
394
|
-
endpoint: string;
|
|
395
|
-
dbname: string;
|
|
396
|
-
authSource: string;
|
|
397
|
-
}>> | undefined;
|
|
398
|
-
userAccountAddress?: string | undefined;
|
|
399
|
-
web2?: boolean | undefined;
|
|
400
|
-
solutionThreshold?: number | undefined;
|
|
401
|
-
dappName?: string | undefined;
|
|
402
|
-
}>, {
|
|
403
|
-
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
404
|
-
defaultEnvironment: "development" | "staging" | "production";
|
|
405
|
-
defaultNetwork: "development" | "rococo" | "shiden";
|
|
406
|
-
account: {
|
|
407
|
-
address?: string | undefined;
|
|
408
|
-
secret?: string | undefined;
|
|
409
|
-
password?: string | undefined;
|
|
410
|
-
};
|
|
411
|
-
networks: Record<"development" | "rococo" | "shiden", {
|
|
412
|
-
endpoint: string;
|
|
413
|
-
contract: {
|
|
414
|
-
address: string;
|
|
415
|
-
name: string;
|
|
416
|
-
};
|
|
417
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
418
|
-
ss58Format: number;
|
|
419
|
-
}>;
|
|
420
|
-
web2: boolean;
|
|
421
|
-
solutionThreshold: number;
|
|
422
|
-
dappName: string;
|
|
423
|
-
serverUrl: string;
|
|
424
367
|
database?: Partial<Record<"development" | "staging" | "production", {
|
|
425
368
|
type: string;
|
|
426
369
|
endpoint: string;
|
|
@@ -428,13 +371,13 @@ export declare const ProsopoClientConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
428
371
|
authSource: string;
|
|
429
372
|
}>> | undefined;
|
|
430
373
|
userAccountAddress?: string | undefined;
|
|
374
|
+
serverUrl?: string | undefined;
|
|
431
375
|
}, {
|
|
432
376
|
account: {
|
|
433
377
|
address?: string | undefined;
|
|
434
378
|
secret?: string | undefined;
|
|
435
379
|
password?: string | undefined;
|
|
436
380
|
};
|
|
437
|
-
serverUrl: string;
|
|
438
381
|
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
439
382
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
440
383
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
@@ -457,16 +400,17 @@ export declare const ProsopoClientConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
457
400
|
web2?: boolean | undefined;
|
|
458
401
|
solutionThreshold?: number | undefined;
|
|
459
402
|
dappName?: string | undefined;
|
|
403
|
+
serverUrl?: string | undefined;
|
|
460
404
|
}>;
|
|
461
|
-
export declare const ProsopoServerConfigSchema:
|
|
462
|
-
logLevel:
|
|
463
|
-
defaultEnvironment:
|
|
464
|
-
defaultNetwork:
|
|
465
|
-
account:
|
|
466
|
-
address:
|
|
467
|
-
secret:
|
|
468
|
-
password:
|
|
469
|
-
}, "strip",
|
|
405
|
+
export declare const ProsopoServerConfigSchema: import("zod").ZodObject<{
|
|
406
|
+
logLevel: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>>;
|
|
407
|
+
defaultEnvironment: import("zod").ZodDefault<import("zod").ZodEnum<["development", "staging", "production"]>>;
|
|
408
|
+
defaultNetwork: import("zod").ZodDefault<import("zod").ZodEnum<["development", "rococo", "shiden"]>>;
|
|
409
|
+
account: import("zod").ZodObject<{
|
|
410
|
+
address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
411
|
+
secret: import("zod").ZodOptional<import("zod").ZodString>;
|
|
412
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
413
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
470
414
|
address?: string | undefined;
|
|
471
415
|
secret?: string | undefined;
|
|
472
416
|
password?: string | undefined;
|
|
@@ -475,21 +419,21 @@ export declare const ProsopoServerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
475
419
|
secret?: string | undefined;
|
|
476
420
|
password?: string | undefined;
|
|
477
421
|
}>;
|
|
478
|
-
networks:
|
|
479
|
-
endpoint:
|
|
480
|
-
contract:
|
|
481
|
-
address:
|
|
482
|
-
name:
|
|
483
|
-
}, "strip",
|
|
422
|
+
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
423
|
+
endpoint: import("zod").ZodString;
|
|
424
|
+
contract: import("zod").ZodObject<{
|
|
425
|
+
address: import("zod").ZodString;
|
|
426
|
+
name: import("zod").ZodString;
|
|
427
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
484
428
|
address: string;
|
|
485
429
|
name: string;
|
|
486
430
|
}, {
|
|
487
431
|
address: string;
|
|
488
432
|
name: string;
|
|
489
433
|
}>;
|
|
490
|
-
pairType:
|
|
491
|
-
ss58Format:
|
|
492
|
-
}, "strip",
|
|
434
|
+
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
435
|
+
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
436
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
493
437
|
endpoint: string;
|
|
494
438
|
contract: {
|
|
495
439
|
address: string;
|
|
@@ -522,12 +466,12 @@ export declare const ProsopoServerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
522
466
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
523
467
|
ss58Format?: number | undefined;
|
|
524
468
|
}>>>;
|
|
525
|
-
database:
|
|
526
|
-
type:
|
|
527
|
-
endpoint:
|
|
528
|
-
dbname:
|
|
529
|
-
authSource:
|
|
530
|
-
}, "strip",
|
|
469
|
+
database: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodEnum<["development", "staging", "production"]>, import("zod").ZodObject<{
|
|
470
|
+
type: import("zod").ZodString;
|
|
471
|
+
endpoint: import("zod").ZodString;
|
|
472
|
+
dbname: import("zod").ZodString;
|
|
473
|
+
authSource: import("zod").ZodString;
|
|
474
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
531
475
|
type: string;
|
|
532
476
|
endpoint: string;
|
|
533
477
|
dbname: string;
|
|
@@ -538,70 +482,12 @@ export declare const ProsopoServerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
538
482
|
dbname: string;
|
|
539
483
|
authSource: string;
|
|
540
484
|
}>>>;
|
|
541
|
-
userAccountAddress:
|
|
542
|
-
web2:
|
|
543
|
-
solutionThreshold:
|
|
544
|
-
dappName:
|
|
545
|
-
serverUrl:
|
|
546
|
-
}, "strip",
|
|
547
|
-
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
548
|
-
defaultEnvironment: "development" | "staging" | "production";
|
|
549
|
-
defaultNetwork: "development" | "rococo" | "shiden";
|
|
550
|
-
account: {
|
|
551
|
-
address?: string | undefined;
|
|
552
|
-
secret?: string | undefined;
|
|
553
|
-
password?: string | undefined;
|
|
554
|
-
};
|
|
555
|
-
networks: Record<"development" | "rococo" | "shiden", {
|
|
556
|
-
endpoint: string;
|
|
557
|
-
contract: {
|
|
558
|
-
address: string;
|
|
559
|
-
name: string;
|
|
560
|
-
};
|
|
561
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
562
|
-
ss58Format: number;
|
|
563
|
-
}>;
|
|
564
|
-
web2: boolean;
|
|
565
|
-
solutionThreshold: number;
|
|
566
|
-
dappName: string;
|
|
567
|
-
serverUrl: string;
|
|
568
|
-
database?: Partial<Record<"development" | "staging" | "production", {
|
|
569
|
-
type: string;
|
|
570
|
-
endpoint: string;
|
|
571
|
-
dbname: string;
|
|
572
|
-
authSource: string;
|
|
573
|
-
}>> | undefined;
|
|
574
|
-
userAccountAddress?: string | undefined;
|
|
575
|
-
}, {
|
|
576
|
-
account: {
|
|
577
|
-
address?: string | undefined;
|
|
578
|
-
secret?: string | undefined;
|
|
579
|
-
password?: string | undefined;
|
|
580
|
-
};
|
|
581
|
-
serverUrl: string;
|
|
582
|
-
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
583
|
-
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
584
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
585
|
-
networks?: Record<string, {
|
|
586
|
-
endpoint: string;
|
|
587
|
-
contract: {
|
|
588
|
-
address: string;
|
|
589
|
-
name: string;
|
|
590
|
-
};
|
|
591
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
592
|
-
ss58Format?: number | undefined;
|
|
593
|
-
}> | undefined;
|
|
594
|
-
database?: Partial<Record<"development" | "staging" | "production", {
|
|
595
|
-
type: string;
|
|
596
|
-
endpoint: string;
|
|
597
|
-
dbname: string;
|
|
598
|
-
authSource: string;
|
|
599
|
-
}>> | undefined;
|
|
600
|
-
userAccountAddress?: string | undefined;
|
|
601
|
-
web2?: boolean | undefined;
|
|
602
|
-
solutionThreshold?: number | undefined;
|
|
603
|
-
dappName?: string | undefined;
|
|
604
|
-
}>, {
|
|
485
|
+
userAccountAddress: import("zod").ZodOptional<import("zod").ZodString>;
|
|
486
|
+
web2: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
487
|
+
solutionThreshold: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
488
|
+
dappName: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
489
|
+
serverUrl: import("zod").ZodString;
|
|
490
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
605
491
|
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
606
492
|
defaultEnvironment: "development" | "staging" | "production";
|
|
607
493
|
defaultNetwork: "development" | "rococo" | "shiden";
|
|
@@ -660,26 +546,26 @@ export declare const ProsopoServerConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
660
546
|
solutionThreshold?: number | undefined;
|
|
661
547
|
dappName?: string | undefined;
|
|
662
548
|
}>;
|
|
663
|
-
export type ProsopoServerConfigInput =
|
|
664
|
-
export type ProsopoServerConfigOutput =
|
|
665
|
-
export declare const AccountCreatorConfigSchema:
|
|
666
|
-
area:
|
|
667
|
-
width:
|
|
668
|
-
height:
|
|
669
|
-
}, "strip",
|
|
549
|
+
export type ProsopoServerConfigInput = input<typeof ProsopoServerConfigSchema>;
|
|
550
|
+
export type ProsopoServerConfigOutput = output<typeof ProsopoServerConfigSchema>;
|
|
551
|
+
export declare const AccountCreatorConfigSchema: import("zod").ZodObject<{
|
|
552
|
+
area: import("zod").ZodObject<{
|
|
553
|
+
width: import("zod").ZodNumber;
|
|
554
|
+
height: import("zod").ZodNumber;
|
|
555
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
670
556
|
width: number;
|
|
671
557
|
height: number;
|
|
672
558
|
}, {
|
|
673
559
|
width: number;
|
|
674
560
|
height: number;
|
|
675
561
|
}>;
|
|
676
|
-
offsetParameter:
|
|
677
|
-
multiplier:
|
|
678
|
-
fontSizeFactor:
|
|
679
|
-
maxShadowBlur:
|
|
680
|
-
numberOfRounds:
|
|
681
|
-
seed:
|
|
682
|
-
}, "strip",
|
|
562
|
+
offsetParameter: import("zod").ZodNumber;
|
|
563
|
+
multiplier: import("zod").ZodNumber;
|
|
564
|
+
fontSizeFactor: import("zod").ZodNumber;
|
|
565
|
+
maxShadowBlur: import("zod").ZodNumber;
|
|
566
|
+
numberOfRounds: import("zod").ZodNumber;
|
|
567
|
+
seed: import("zod").ZodNumber;
|
|
568
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
683
569
|
area: {
|
|
684
570
|
width: number;
|
|
685
571
|
height: number;
|
|
@@ -702,17 +588,17 @@ export declare const AccountCreatorConfigSchema: z.ZodObject<{
|
|
|
702
588
|
numberOfRounds: number;
|
|
703
589
|
seed: number;
|
|
704
590
|
}>;
|
|
705
|
-
export type ProsopoClientConfigInput =
|
|
706
|
-
export type ProsopoClientConfigOutput =
|
|
707
|
-
export declare const ProcaptchaConfigSchema:
|
|
708
|
-
logLevel:
|
|
709
|
-
defaultEnvironment:
|
|
710
|
-
defaultNetwork:
|
|
711
|
-
account:
|
|
712
|
-
address:
|
|
713
|
-
secret:
|
|
714
|
-
password:
|
|
715
|
-
}, "strip",
|
|
591
|
+
export type ProsopoClientConfigInput = input<typeof ProsopoClientConfigSchema>;
|
|
592
|
+
export type ProsopoClientConfigOutput = output<typeof ProsopoClientConfigSchema>;
|
|
593
|
+
export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
594
|
+
logLevel: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>>;
|
|
595
|
+
defaultEnvironment: import("zod").ZodDefault<import("zod").ZodEnum<["development", "staging", "production"]>>;
|
|
596
|
+
defaultNetwork: import("zod").ZodDefault<import("zod").ZodEnum<["development", "rococo", "shiden"]>>;
|
|
597
|
+
account: import("zod").ZodObject<{
|
|
598
|
+
address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
599
|
+
secret: import("zod").ZodOptional<import("zod").ZodString>;
|
|
600
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
601
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
716
602
|
address?: string | undefined;
|
|
717
603
|
secret?: string | undefined;
|
|
718
604
|
password?: string | undefined;
|
|
@@ -721,21 +607,21 @@ export declare const ProcaptchaConfigSchema: z.ZodIntersection<z.ZodEffects<z.Zo
|
|
|
721
607
|
secret?: string | undefined;
|
|
722
608
|
password?: string | undefined;
|
|
723
609
|
}>;
|
|
724
|
-
networks:
|
|
725
|
-
endpoint:
|
|
726
|
-
contract:
|
|
727
|
-
address:
|
|
728
|
-
name:
|
|
729
|
-
}, "strip",
|
|
610
|
+
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
611
|
+
endpoint: import("zod").ZodString;
|
|
612
|
+
contract: import("zod").ZodObject<{
|
|
613
|
+
address: import("zod").ZodString;
|
|
614
|
+
name: import("zod").ZodString;
|
|
615
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
730
616
|
address: string;
|
|
731
617
|
name: string;
|
|
732
618
|
}, {
|
|
733
619
|
address: string;
|
|
734
620
|
name: string;
|
|
735
621
|
}>;
|
|
736
|
-
pairType:
|
|
737
|
-
ss58Format:
|
|
738
|
-
}, "strip",
|
|
622
|
+
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
623
|
+
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
624
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
739
625
|
endpoint: string;
|
|
740
626
|
contract: {
|
|
741
627
|
address: string;
|
|
@@ -768,12 +654,12 @@ export declare const ProcaptchaConfigSchema: z.ZodIntersection<z.ZodEffects<z.Zo
|
|
|
768
654
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
769
655
|
ss58Format?: number | undefined;
|
|
770
656
|
}>>>;
|
|
771
|
-
database:
|
|
772
|
-
type:
|
|
773
|
-
endpoint:
|
|
774
|
-
dbname:
|
|
775
|
-
authSource:
|
|
776
|
-
}, "strip",
|
|
657
|
+
database: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodEnum<["development", "staging", "production"]>, import("zod").ZodObject<{
|
|
658
|
+
type: import("zod").ZodString;
|
|
659
|
+
endpoint: import("zod").ZodString;
|
|
660
|
+
dbname: import("zod").ZodString;
|
|
661
|
+
authSource: import("zod").ZodString;
|
|
662
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
777
663
|
type: string;
|
|
778
664
|
endpoint: string;
|
|
779
665
|
dbname: string;
|
|
@@ -784,12 +670,12 @@ export declare const ProcaptchaConfigSchema: z.ZodIntersection<z.ZodEffects<z.Zo
|
|
|
784
670
|
dbname: string;
|
|
785
671
|
authSource: string;
|
|
786
672
|
}>>>;
|
|
787
|
-
userAccountAddress:
|
|
788
|
-
web2:
|
|
789
|
-
solutionThreshold:
|
|
790
|
-
dappName:
|
|
791
|
-
serverUrl:
|
|
792
|
-
}, "strip",
|
|
673
|
+
userAccountAddress: import("zod").ZodOptional<import("zod").ZodString>;
|
|
674
|
+
web2: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
|
|
675
|
+
solutionThreshold: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
676
|
+
dappName: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
677
|
+
serverUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
678
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
793
679
|
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
794
680
|
defaultEnvironment: "development" | "staging" | "production";
|
|
795
681
|
defaultNetwork: "development" | "rococo" | "shiden";
|
|
@@ -810,7 +696,6 @@ export declare const ProcaptchaConfigSchema: z.ZodIntersection<z.ZodEffects<z.Zo
|
|
|
810
696
|
web2: boolean;
|
|
811
697
|
solutionThreshold: number;
|
|
812
698
|
dappName: string;
|
|
813
|
-
serverUrl: string;
|
|
814
699
|
database?: Partial<Record<"development" | "staging" | "production", {
|
|
815
700
|
type: string;
|
|
816
701
|
endpoint: string;
|
|
@@ -818,71 +703,13 @@ export declare const ProcaptchaConfigSchema: z.ZodIntersection<z.ZodEffects<z.Zo
|
|
|
818
703
|
authSource: string;
|
|
819
704
|
}>> | undefined;
|
|
820
705
|
userAccountAddress?: string | undefined;
|
|
706
|
+
serverUrl?: string | undefined;
|
|
821
707
|
}, {
|
|
822
708
|
account: {
|
|
823
709
|
address?: string | undefined;
|
|
824
710
|
secret?: string | undefined;
|
|
825
711
|
password?: string | undefined;
|
|
826
712
|
};
|
|
827
|
-
serverUrl: string;
|
|
828
|
-
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
829
|
-
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
830
|
-
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
831
|
-
networks?: Record<string, {
|
|
832
|
-
endpoint: string;
|
|
833
|
-
contract: {
|
|
834
|
-
address: string;
|
|
835
|
-
name: string;
|
|
836
|
-
};
|
|
837
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
838
|
-
ss58Format?: number | undefined;
|
|
839
|
-
}> | undefined;
|
|
840
|
-
database?: Partial<Record<"development" | "staging" | "production", {
|
|
841
|
-
type: string;
|
|
842
|
-
endpoint: string;
|
|
843
|
-
dbname: string;
|
|
844
|
-
authSource: string;
|
|
845
|
-
}>> | undefined;
|
|
846
|
-
userAccountAddress?: string | undefined;
|
|
847
|
-
web2?: boolean | undefined;
|
|
848
|
-
solutionThreshold?: number | undefined;
|
|
849
|
-
dappName?: string | undefined;
|
|
850
|
-
}>, {
|
|
851
|
-
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
852
|
-
defaultEnvironment: "development" | "staging" | "production";
|
|
853
|
-
defaultNetwork: "development" | "rococo" | "shiden";
|
|
854
|
-
account: {
|
|
855
|
-
address?: string | undefined;
|
|
856
|
-
secret?: string | undefined;
|
|
857
|
-
password?: string | undefined;
|
|
858
|
-
};
|
|
859
|
-
networks: Record<"development" | "rococo" | "shiden", {
|
|
860
|
-
endpoint: string;
|
|
861
|
-
contract: {
|
|
862
|
-
address: string;
|
|
863
|
-
name: string;
|
|
864
|
-
};
|
|
865
|
-
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
866
|
-
ss58Format: number;
|
|
867
|
-
}>;
|
|
868
|
-
web2: boolean;
|
|
869
|
-
solutionThreshold: number;
|
|
870
|
-
dappName: string;
|
|
871
|
-
serverUrl: string;
|
|
872
|
-
database?: Partial<Record<"development" | "staging" | "production", {
|
|
873
|
-
type: string;
|
|
874
|
-
endpoint: string;
|
|
875
|
-
dbname: string;
|
|
876
|
-
authSource: string;
|
|
877
|
-
}>> | undefined;
|
|
878
|
-
userAccountAddress?: string | undefined;
|
|
879
|
-
}, {
|
|
880
|
-
account: {
|
|
881
|
-
address?: string | undefined;
|
|
882
|
-
secret?: string | undefined;
|
|
883
|
-
password?: string | undefined;
|
|
884
|
-
};
|
|
885
|
-
serverUrl: string;
|
|
886
713
|
logLevel?: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | undefined;
|
|
887
714
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
888
715
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
@@ -905,25 +732,26 @@ export declare const ProcaptchaConfigSchema: z.ZodIntersection<z.ZodEffects<z.Zo
|
|
|
905
732
|
web2?: boolean | undefined;
|
|
906
733
|
solutionThreshold?: number | undefined;
|
|
907
734
|
dappName?: string | undefined;
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
735
|
+
serverUrl?: string | undefined;
|
|
736
|
+
}>, import("zod").ZodObject<{
|
|
737
|
+
accountCreator: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
738
|
+
area: import("zod").ZodObject<{
|
|
739
|
+
width: import("zod").ZodNumber;
|
|
740
|
+
height: import("zod").ZodNumber;
|
|
741
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
914
742
|
width: number;
|
|
915
743
|
height: number;
|
|
916
744
|
}, {
|
|
917
745
|
width: number;
|
|
918
746
|
height: number;
|
|
919
747
|
}>;
|
|
920
|
-
offsetParameter:
|
|
921
|
-
multiplier:
|
|
922
|
-
fontSizeFactor:
|
|
923
|
-
maxShadowBlur:
|
|
924
|
-
numberOfRounds:
|
|
925
|
-
seed:
|
|
926
|
-
}, "strip",
|
|
748
|
+
offsetParameter: import("zod").ZodNumber;
|
|
749
|
+
multiplier: import("zod").ZodNumber;
|
|
750
|
+
fontSizeFactor: import("zod").ZodNumber;
|
|
751
|
+
maxShadowBlur: import("zod").ZodNumber;
|
|
752
|
+
numberOfRounds: import("zod").ZodNumber;
|
|
753
|
+
seed: import("zod").ZodNumber;
|
|
754
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
927
755
|
area: {
|
|
928
756
|
width: number;
|
|
929
757
|
height: number;
|
|
@@ -946,9 +774,9 @@ export declare const ProcaptchaConfigSchema: z.ZodIntersection<z.ZodEffects<z.Zo
|
|
|
946
774
|
numberOfRounds: number;
|
|
947
775
|
seed: number;
|
|
948
776
|
}>>;
|
|
949
|
-
theme:
|
|
950
|
-
challengeValidLength:
|
|
951
|
-
}, "strip",
|
|
777
|
+
theme: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodLiteral<"light">, import("zod").ZodLiteral<"dark">]>>;
|
|
778
|
+
challengeValidLength: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
779
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
952
780
|
accountCreator?: {
|
|
953
781
|
area: {
|
|
954
782
|
width: number;
|
|
@@ -979,17 +807,17 @@ export declare const ProcaptchaConfigSchema: z.ZodIntersection<z.ZodEffects<z.Zo
|
|
|
979
807
|
theme?: "light" | "dark" | undefined;
|
|
980
808
|
challengeValidLength?: number | undefined;
|
|
981
809
|
}>>;
|
|
982
|
-
export type ProcaptchaClientConfigInput =
|
|
983
|
-
export type ProcaptchaClientConfigOutput =
|
|
984
|
-
export declare const ProsopoConfigSchema:
|
|
985
|
-
logLevel:
|
|
986
|
-
defaultEnvironment:
|
|
987
|
-
defaultNetwork:
|
|
988
|
-
account:
|
|
989
|
-
address:
|
|
990
|
-
secret:
|
|
991
|
-
password:
|
|
992
|
-
}, "strip",
|
|
810
|
+
export type ProcaptchaClientConfigInput = input<typeof ProcaptchaConfigSchema>;
|
|
811
|
+
export type ProcaptchaClientConfigOutput = output<typeof ProcaptchaConfigSchema>;
|
|
812
|
+
export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
813
|
+
logLevel: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>>;
|
|
814
|
+
defaultEnvironment: import("zod").ZodDefault<import("zod").ZodEnum<["development", "staging", "production"]>>;
|
|
815
|
+
defaultNetwork: import("zod").ZodDefault<import("zod").ZodEnum<["development", "rococo", "shiden"]>>;
|
|
816
|
+
account: import("zod").ZodObject<{
|
|
817
|
+
address: import("zod").ZodOptional<import("zod").ZodString>;
|
|
818
|
+
secret: import("zod").ZodOptional<import("zod").ZodString>;
|
|
819
|
+
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
820
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
993
821
|
address?: string | undefined;
|
|
994
822
|
secret?: string | undefined;
|
|
995
823
|
password?: string | undefined;
|
|
@@ -998,21 +826,21 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
998
826
|
secret?: string | undefined;
|
|
999
827
|
password?: string | undefined;
|
|
1000
828
|
}>;
|
|
1001
|
-
networks:
|
|
1002
|
-
endpoint:
|
|
1003
|
-
contract:
|
|
1004
|
-
address:
|
|
1005
|
-
name:
|
|
1006
|
-
}, "strip",
|
|
829
|
+
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
830
|
+
endpoint: import("zod").ZodString;
|
|
831
|
+
contract: import("zod").ZodObject<{
|
|
832
|
+
address: import("zod").ZodString;
|
|
833
|
+
name: import("zod").ZodString;
|
|
834
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1007
835
|
address: string;
|
|
1008
836
|
name: string;
|
|
1009
837
|
}, {
|
|
1010
838
|
address: string;
|
|
1011
839
|
name: string;
|
|
1012
840
|
}>;
|
|
1013
|
-
pairType:
|
|
1014
|
-
ss58Format:
|
|
1015
|
-
}, "strip",
|
|
841
|
+
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
842
|
+
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
843
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1016
844
|
endpoint: string;
|
|
1017
845
|
contract: {
|
|
1018
846
|
address: string;
|
|
@@ -1045,12 +873,12 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
1045
873
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1046
874
|
ss58Format?: number | undefined;
|
|
1047
875
|
}>>>;
|
|
1048
|
-
database:
|
|
1049
|
-
type:
|
|
1050
|
-
endpoint:
|
|
1051
|
-
dbname:
|
|
1052
|
-
authSource:
|
|
1053
|
-
}, "strip",
|
|
876
|
+
database: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodEnum<["development", "staging", "production"]>, import("zod").ZodObject<{
|
|
877
|
+
type: import("zod").ZodString;
|
|
878
|
+
endpoint: import("zod").ZodString;
|
|
879
|
+
dbname: import("zod").ZodString;
|
|
880
|
+
authSource: import("zod").ZodString;
|
|
881
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1054
882
|
type: string;
|
|
1055
883
|
endpoint: string;
|
|
1056
884
|
dbname: string;
|
|
@@ -1061,22 +889,22 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
1061
889
|
dbname: string;
|
|
1062
890
|
authSource: string;
|
|
1063
891
|
}>>>;
|
|
1064
|
-
captchas:
|
|
1065
|
-
solved:
|
|
1066
|
-
count:
|
|
1067
|
-
}, "strip",
|
|
892
|
+
captchas: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
893
|
+
solved: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
894
|
+
count: import("zod").ZodNumber;
|
|
895
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1068
896
|
count: number;
|
|
1069
897
|
}, {
|
|
1070
898
|
count: number;
|
|
1071
899
|
}>>>;
|
|
1072
|
-
unsolved:
|
|
1073
|
-
count:
|
|
1074
|
-
}, "strip",
|
|
900
|
+
unsolved: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
901
|
+
count: import("zod").ZodNumber;
|
|
902
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1075
903
|
count: number;
|
|
1076
904
|
}, {
|
|
1077
905
|
count: number;
|
|
1078
906
|
}>>>;
|
|
1079
|
-
}, "strip",
|
|
907
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1080
908
|
solved: {
|
|
1081
909
|
count: number;
|
|
1082
910
|
};
|
|
@@ -1091,11 +919,11 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
1091
919
|
count: number;
|
|
1092
920
|
} | undefined;
|
|
1093
921
|
}>>>;
|
|
1094
|
-
captchaSolutions:
|
|
1095
|
-
requiredNumberOfSolutions:
|
|
1096
|
-
solutionWinningPercentage:
|
|
1097
|
-
captchaBlockRecency:
|
|
1098
|
-
}, "strip",
|
|
922
|
+
captchaSolutions: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
923
|
+
requiredNumberOfSolutions: import("zod").ZodNumber;
|
|
924
|
+
solutionWinningPercentage: import("zod").ZodNumber;
|
|
925
|
+
captchaBlockRecency: import("zod").ZodNumber;
|
|
926
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1099
927
|
requiredNumberOfSolutions: number;
|
|
1100
928
|
solutionWinningPercentage: number;
|
|
1101
929
|
captchaBlockRecency: number;
|
|
@@ -1104,27 +932,27 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
1104
932
|
solutionWinningPercentage: number;
|
|
1105
933
|
captchaBlockRecency: number;
|
|
1106
934
|
}>>>;
|
|
1107
|
-
batchCommit:
|
|
1108
|
-
interval:
|
|
1109
|
-
maxBatchExtrinsicPercentage:
|
|
1110
|
-
}, "strip",
|
|
935
|
+
batchCommit: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodObject<{
|
|
936
|
+
interval: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
937
|
+
maxBatchExtrinsicPercentage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
938
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1111
939
|
interval: number;
|
|
1112
940
|
maxBatchExtrinsicPercentage: number;
|
|
1113
941
|
}, {
|
|
1114
942
|
interval?: number | undefined;
|
|
1115
943
|
maxBatchExtrinsicPercentage?: number | undefined;
|
|
1116
944
|
}>>>;
|
|
1117
|
-
server:
|
|
1118
|
-
baseURL:
|
|
1119
|
-
port:
|
|
1120
|
-
}, "strip",
|
|
945
|
+
server: import("zod").ZodObject<{
|
|
946
|
+
baseURL: import("zod").ZodString;
|
|
947
|
+
port: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodNumber>>;
|
|
948
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1121
949
|
baseURL: string;
|
|
1122
950
|
port: number;
|
|
1123
951
|
}, {
|
|
1124
952
|
baseURL: string;
|
|
1125
953
|
port?: number | undefined;
|
|
1126
954
|
}>;
|
|
1127
|
-
}, "strip",
|
|
955
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
1128
956
|
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal";
|
|
1129
957
|
defaultEnvironment: "development" | "staging" | "production";
|
|
1130
958
|
defaultNetwork: "development" | "rococo" | "shiden";
|
|
@@ -1215,6 +1043,6 @@ export declare const ProsopoConfigSchema: z.ZodObject<{
|
|
|
1215
1043
|
maxBatchExtrinsicPercentage?: number | undefined;
|
|
1216
1044
|
} | undefined;
|
|
1217
1045
|
}>;
|
|
1218
|
-
export type ProsopoConfigInput =
|
|
1219
|
-
export type ProsopoConfigOutput =
|
|
1046
|
+
export type ProsopoConfigInput = input<typeof ProsopoConfigSchema>;
|
|
1047
|
+
export type ProsopoConfigOutput = output<typeof ProsopoConfigSchema>;
|
|
1220
1048
|
//# sourceMappingURL=config.d.ts.map
|