@prosopo/types 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/api.d.ts +16 -0
- package/dist/api/api.d.ts.map +1 -0
- package/dist/api/api.js +2 -0
- package/dist/api/api.js.map +1 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +2 -0
- package/dist/api/index.js.map +1 -0
- package/dist/cjs/api/api.cjs +1 -0
- package/dist/cjs/api/index.cjs +2 -0
- package/dist/cjs/contract/index.cjs +1 -0
- package/dist/cjs/contract/interface.cjs +1 -0
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/procaptcha/client.cjs +1 -0
- package/dist/cjs/procaptcha/index.cjs +3 -0
- package/dist/cjs/procaptcha/manager.cjs +2 -1
- package/dist/cjs/procaptcha/props.cjs +1 -0
- package/dist/cjs/procaptcha/utils.cjs +1 -0
- package/dist/cjs/provider/api.cjs +14 -1
- package/dist/cjs/provider/index.cjs +1 -0
- package/dist/config/config.d.ts +83 -83
- package/dist/config/network.d.ts +17 -17
- package/dist/contract/artifacts.d.ts +10 -10
- package/dist/contract/index.d.ts +1 -0
- package/dist/contract/index.d.ts.map +1 -1
- package/dist/contract/index.js +1 -0
- package/dist/contract/index.js.map +1 -1
- package/dist/contract/interface.d.ts +28 -0
- package/dist/contract/interface.d.ts.map +1 -0
- package/dist/contract/interface.js +2 -0
- package/dist/contract/interface.js.map +1 -0
- package/dist/datasets/captcha.d.ts +97 -95
- package/dist/datasets/captcha.d.ts.map +1 -1
- package/dist/datasets/captcha.js.map +1 -1
- package/dist/datasets/dataset.d.ts +48 -48
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/procaptcha/api.d.ts +17 -33
- package/dist/procaptcha/api.d.ts.map +1 -1
- package/dist/procaptcha/client.d.ts +4 -0
- package/dist/procaptcha/client.d.ts.map +1 -0
- package/dist/procaptcha/client.js +2 -0
- package/dist/procaptcha/client.js.map +1 -0
- package/dist/procaptcha/index.d.ts +3 -0
- package/dist/procaptcha/index.d.ts.map +1 -1
- package/dist/procaptcha/index.js +3 -0
- package/dist/procaptcha/index.js.map +1 -1
- package/dist/procaptcha/manager.d.ts +30 -0
- package/dist/procaptcha/manager.d.ts.map +1 -1
- package/dist/procaptcha/manager.js +1 -0
- package/dist/procaptcha/manager.js.map +1 -1
- package/dist/procaptcha/props.d.ts +7 -0
- package/dist/procaptcha/props.d.ts.map +1 -0
- package/dist/procaptcha/props.js +2 -0
- package/dist/procaptcha/props.js.map +1 -0
- package/dist/procaptcha/utils.d.ts +2 -0
- package/dist/procaptcha/utils.d.ts.map +1 -0
- package/dist/procaptcha/utils.js +2 -0
- package/dist/procaptcha/utils.js.map +1 -0
- package/dist/provider/api.d.ts +35 -3
- package/dist/provider/api.d.ts.map +1 -1
- package/dist/provider/api.js +7 -1
- package/dist/provider/api.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AccountId } from '@prosopo/captcha-contract';
|
|
2
|
+
import { CaptchaResponseBody, CaptchaSolutionResponse, GetPowCaptchaResponse, ImageVerificationResponse, PowCaptchaSolutionResponse, ProviderRegistered } from '../provider/index.js';
|
|
3
|
+
import { CaptchaSolution } from '../datasets/index.js';
|
|
4
|
+
import { Provider, RandomProvider } from '@prosopo/captcha-contract/types-returns';
|
|
5
|
+
import { StoredEvents } from '../procaptcha/index.js';
|
|
6
|
+
export interface ProviderApiInterface {
|
|
7
|
+
getCaptchaChallenge(userAccount: AccountId, randomProvider: RandomProvider): Promise<CaptchaResponseBody>;
|
|
8
|
+
submitCaptchaSolution(captchas: CaptchaSolution[], requestHash: string, userAccount: AccountId, salt: string, signature?: string): Promise<CaptchaSolutionResponse>;
|
|
9
|
+
verifyDappUser(dapp: AccountId, userAccount: AccountId, commitmentId?: string, maxVerifiedTime?: number): Promise<ImageVerificationResponse>;
|
|
10
|
+
getPowCaptchaChallenge(userAccount: AccountId, dappAccount: AccountId): Promise<GetPowCaptchaResponse>;
|
|
11
|
+
submitPowCaptchaSolution(challenge: GetPowCaptchaResponse, userAccount: AccountId, dappAccount: AccountId, randomProvider: RandomProvider, nonce: number): Promise<PowCaptchaSolutionResponse>;
|
|
12
|
+
submitUserEvents(events: StoredEvents, accountId: AccountId): Promise<unknown>;
|
|
13
|
+
getProviderStatus(): Promise<ProviderRegistered>;
|
|
14
|
+
getProviderDetails(): Promise<Provider>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EACH,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC1B,kBAAkB,EACrB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAA;AAClF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAErD,MAAM,WAAW,oBAAoB;IACjC,mBAAmB,CAAC,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;IACzG,qBAAqB,CACjB,QAAQ,EAAE,eAAe,EAAE,EAC3B,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,SAAS,EACtB,IAAI,EAAE,MAAM,EACZ,SAAS,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,uBAAuB,CAAC,CAAA;IACnC,cAAc,CACV,IAAI,EAAE,SAAS,EACf,WAAW,EAAE,SAAS,EACtB,YAAY,CAAC,EAAE,MAAM,EACrB,eAAe,CAAC,EAAE,MAAM,GACzB,OAAO,CAAC,yBAAyB,CAAC,CAAA;IACrC,sBAAsB,CAAC,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAA;IACtG,wBAAwB,CACpB,SAAS,EAAE,qBAAqB,EAChC,WAAW,EAAE,SAAS,EACtB,WAAW,EAAE,SAAS,EACtB,cAAc,EAAE,cAAc,EAC9B,KAAK,EAAE,MAAM,GACd,OAAO,CAAC,0BAA0B,CAAC,CAAA;IACtC,gBAAgB,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAC9E,iBAAiB,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAAA;IAChD,kBAAkB,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAA;CAC1C"}
|
package/dist/api/api.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAaA,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAaA,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const artifacts = require("./artifacts.cjs");
|
|
4
4
|
require("./contract.cjs");
|
|
5
|
+
require("./interface.cjs");
|
|
5
6
|
require("./useWeight.cjs");
|
|
6
7
|
require("./batch.cjs");
|
|
7
8
|
exports.AbiCellSpec = artifacts.AbiCellSpec;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("./api/index.cjs");
|
|
3
4
|
require("./config/index.cjs");
|
|
4
5
|
require("./contract/index.cjs");
|
|
5
6
|
require("./datasets/index.cjs");
|
|
@@ -79,6 +80,7 @@ exports.ApiParams = api.ApiParams;
|
|
|
79
80
|
exports.ApiPaths = api.ApiPaths;
|
|
80
81
|
exports.CaptchaRequestBody = api.CaptchaRequestBody;
|
|
81
82
|
exports.CaptchaSolutionBody = api.CaptchaSolutionBody;
|
|
83
|
+
exports.ServerPowCaptchaVerifyRequestBody = api.ServerPowCaptchaVerifyRequestBody;
|
|
82
84
|
exports.VerifySolutionBody = api.VerifySolutionBody;
|
|
83
85
|
exports.ScheduledTaskNames = scheduler.ScheduledTaskNames;
|
|
84
86
|
exports.ScheduledTaskStatus = scheduler.ScheduledTaskStatus;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
require("./api.cjs");
|
|
4
|
+
require("./client.cjs");
|
|
4
5
|
require("./collector.cjs");
|
|
5
6
|
const manager = require("./manager.cjs");
|
|
7
|
+
require("./props.cjs");
|
|
8
|
+
require("./utils.cjs");
|
|
6
9
|
exports.ProcaptchaOutputSchema = manager.ProcaptchaOutputSchema;
|
|
7
10
|
exports.ProcaptchaResponse = manager.ProcaptchaResponse;
|
|
@@ -8,7 +8,8 @@ const ProcaptchaOutputSchema = z.object({
|
|
|
8
8
|
[api.ApiParams.providerUrl]: z.string().optional(),
|
|
9
9
|
[api.ApiParams.dapp]: z.string(),
|
|
10
10
|
[api.ApiParams.user]: z.string(),
|
|
11
|
-
[api.ApiParams.blockNumber]: z.number().optional()
|
|
11
|
+
[api.ApiParams.blockNumber]: z.number().optional(),
|
|
12
|
+
[api.ApiParams.challengeId]: z.string().optional()
|
|
12
13
|
});
|
|
13
14
|
const ProcaptchaResponse = z.object({
|
|
14
15
|
[api.ApiParams.procaptchaResponse]: ProcaptchaOutputSchema
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -35,7 +35,9 @@ var ApiParams = /* @__PURE__ */ ((ApiParams2) => {
|
|
|
35
35
|
ApiParams2["providerUrl"] = "providerUrl";
|
|
36
36
|
ApiParams2["procaptchaResponse"] = "procaptcha-response";
|
|
37
37
|
ApiParams2["maxVerifiedTime"] = "maxVerifiedTime";
|
|
38
|
-
ApiParams2["
|
|
38
|
+
ApiParams2["verified"] = "verified";
|
|
39
|
+
ApiParams2["status"] = "status";
|
|
40
|
+
ApiParams2["challengeId"] = "challengeId";
|
|
39
41
|
return ApiParams2;
|
|
40
42
|
})(ApiParams || {});
|
|
41
43
|
const CaptchaRequestBody = z.object({
|
|
@@ -97,9 +99,20 @@ const VerifySolutionBody = z.object({
|
|
|
97
99
|
/* maxVerifiedTime */
|
|
98
100
|
]: z.number().optional()
|
|
99
101
|
});
|
|
102
|
+
const ServerPowCaptchaVerifyRequestBody = z.object({
|
|
103
|
+
[
|
|
104
|
+
"challengeId"
|
|
105
|
+
/* challengeId */
|
|
106
|
+
]: z.string(),
|
|
107
|
+
[
|
|
108
|
+
"dapp"
|
|
109
|
+
/* dapp */
|
|
110
|
+
]: z.string()
|
|
111
|
+
});
|
|
100
112
|
exports.AdminApiPaths = AdminApiPaths;
|
|
101
113
|
exports.ApiParams = ApiParams;
|
|
102
114
|
exports.ApiPaths = ApiPaths;
|
|
103
115
|
exports.CaptchaRequestBody = CaptchaRequestBody;
|
|
104
116
|
exports.CaptchaSolutionBody = CaptchaSolutionBody;
|
|
117
|
+
exports.ServerPowCaptchaVerifyRequestBody = ServerPowCaptchaVerifyRequestBody;
|
|
105
118
|
exports.VerifySolutionBody = VerifySolutionBody;
|
|
@@ -9,6 +9,7 @@ exports.ApiParams = api.ApiParams;
|
|
|
9
9
|
exports.ApiPaths = api.ApiPaths;
|
|
10
10
|
exports.CaptchaRequestBody = api.CaptchaRequestBody;
|
|
11
11
|
exports.CaptchaSolutionBody = api.CaptchaSolutionBody;
|
|
12
|
+
exports.ServerPowCaptchaVerifyRequestBody = api.ServerPowCaptchaVerifyRequestBody;
|
|
12
13
|
exports.VerifySolutionBody = api.VerifySolutionBody;
|
|
13
14
|
exports.ScheduledTaskNames = scheduler.ScheduledTaskNames;
|
|
14
15
|
exports.ScheduledTaskStatus = scheduler.ScheduledTaskStatus;
|
package/dist/config/config.d.ts
CHANGED
|
@@ -89,49 +89,49 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<{
|
|
|
89
89
|
password?: string | undefined;
|
|
90
90
|
}>;
|
|
91
91
|
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
92
|
-
endpoint: import("zod").ZodString;
|
|
93
92
|
contract: import("zod").ZodObject<{
|
|
94
93
|
address: import("zod").ZodString;
|
|
95
94
|
name: import("zod").ZodString;
|
|
96
95
|
}, "strip", import("zod").ZodTypeAny, {
|
|
97
|
-
address: string;
|
|
98
96
|
name: string;
|
|
99
|
-
}, {
|
|
100
97
|
address: string;
|
|
98
|
+
}, {
|
|
101
99
|
name: string;
|
|
100
|
+
address: string;
|
|
102
101
|
}>;
|
|
102
|
+
endpoint: import("zod").ZodString;
|
|
103
103
|
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
104
104
|
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
105
105
|
}, "strip", import("zod").ZodTypeAny, {
|
|
106
|
-
endpoint: string;
|
|
107
106
|
contract: {
|
|
108
|
-
address: string;
|
|
109
107
|
name: string;
|
|
108
|
+
address: string;
|
|
110
109
|
};
|
|
110
|
+
endpoint: string;
|
|
111
111
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
112
112
|
ss58Format: number;
|
|
113
113
|
}, {
|
|
114
|
-
endpoint: string;
|
|
115
114
|
contract: {
|
|
116
|
-
address: string;
|
|
117
115
|
name: string;
|
|
116
|
+
address: string;
|
|
118
117
|
};
|
|
118
|
+
endpoint: string;
|
|
119
119
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
120
120
|
ss58Format?: number | undefined;
|
|
121
121
|
}>>, Record<"development" | "rococo" | "shiden", {
|
|
122
|
-
endpoint: string;
|
|
123
122
|
contract: {
|
|
124
|
-
address: string;
|
|
125
123
|
name: string;
|
|
124
|
+
address: string;
|
|
126
125
|
};
|
|
126
|
+
endpoint: string;
|
|
127
127
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
128
128
|
ss58Format: number;
|
|
129
129
|
}>, Record<string, {
|
|
130
|
-
endpoint: string;
|
|
131
130
|
contract: {
|
|
132
|
-
address: string;
|
|
133
131
|
name: string;
|
|
132
|
+
address: string;
|
|
134
133
|
};
|
|
134
|
+
endpoint: string;
|
|
135
135
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
136
136
|
ss58Format?: number | undefined;
|
|
137
137
|
}>>>;
|
|
@@ -162,11 +162,11 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<{
|
|
|
162
162
|
password?: string | undefined;
|
|
163
163
|
};
|
|
164
164
|
networks: Record<"development" | "rococo" | "shiden", {
|
|
165
|
-
endpoint: string;
|
|
166
165
|
contract: {
|
|
167
|
-
address: string;
|
|
168
166
|
name: string;
|
|
167
|
+
address: string;
|
|
169
168
|
};
|
|
169
|
+
endpoint: string;
|
|
170
170
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
171
171
|
ss58Format: number;
|
|
172
172
|
}>;
|
|
@@ -187,11 +187,11 @@ export declare const ProsopoBasicConfigSchema: import("zod").ZodObject<{
|
|
|
187
187
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
188
188
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
189
189
|
networks?: Record<string, {
|
|
190
|
-
endpoint: string;
|
|
191
190
|
contract: {
|
|
192
|
-
address: string;
|
|
193
191
|
name: string;
|
|
192
|
+
address: string;
|
|
194
193
|
};
|
|
194
|
+
endpoint: string;
|
|
195
195
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
196
196
|
ss58Format?: number | undefined;
|
|
197
197
|
}> | undefined;
|
|
@@ -279,49 +279,49 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<{
|
|
|
279
279
|
password?: string | undefined;
|
|
280
280
|
}>;
|
|
281
281
|
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
282
|
-
endpoint: import("zod").ZodString;
|
|
283
282
|
contract: import("zod").ZodObject<{
|
|
284
283
|
address: import("zod").ZodString;
|
|
285
284
|
name: import("zod").ZodString;
|
|
286
285
|
}, "strip", import("zod").ZodTypeAny, {
|
|
287
|
-
address: string;
|
|
288
286
|
name: string;
|
|
289
|
-
}, {
|
|
290
287
|
address: string;
|
|
288
|
+
}, {
|
|
291
289
|
name: string;
|
|
290
|
+
address: string;
|
|
292
291
|
}>;
|
|
292
|
+
endpoint: import("zod").ZodString;
|
|
293
293
|
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
294
294
|
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
295
295
|
}, "strip", import("zod").ZodTypeAny, {
|
|
296
|
-
endpoint: string;
|
|
297
296
|
contract: {
|
|
298
|
-
address: string;
|
|
299
297
|
name: string;
|
|
298
|
+
address: string;
|
|
300
299
|
};
|
|
300
|
+
endpoint: string;
|
|
301
301
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
302
302
|
ss58Format: number;
|
|
303
303
|
}, {
|
|
304
|
-
endpoint: string;
|
|
305
304
|
contract: {
|
|
306
|
-
address: string;
|
|
307
305
|
name: string;
|
|
306
|
+
address: string;
|
|
308
307
|
};
|
|
308
|
+
endpoint: string;
|
|
309
309
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
310
310
|
ss58Format?: number | undefined;
|
|
311
311
|
}>>, Record<"development" | "rococo" | "shiden", {
|
|
312
|
-
endpoint: string;
|
|
313
312
|
contract: {
|
|
314
|
-
address: string;
|
|
315
313
|
name: string;
|
|
314
|
+
address: string;
|
|
316
315
|
};
|
|
316
|
+
endpoint: string;
|
|
317
317
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
318
318
|
ss58Format: number;
|
|
319
319
|
}>, Record<string, {
|
|
320
|
-
endpoint: string;
|
|
321
320
|
contract: {
|
|
322
|
-
address: string;
|
|
323
321
|
name: string;
|
|
322
|
+
address: string;
|
|
324
323
|
};
|
|
324
|
+
endpoint: string;
|
|
325
325
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
326
326
|
ss58Format?: number | undefined;
|
|
327
327
|
}>>>;
|
|
@@ -357,11 +357,11 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<{
|
|
|
357
357
|
password?: string | undefined;
|
|
358
358
|
};
|
|
359
359
|
networks: Record<"development" | "rococo" | "shiden", {
|
|
360
|
-
endpoint: string;
|
|
361
360
|
contract: {
|
|
362
|
-
address: string;
|
|
363
361
|
name: string;
|
|
362
|
+
address: string;
|
|
364
363
|
};
|
|
364
|
+
endpoint: string;
|
|
365
365
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
366
366
|
ss58Format: number;
|
|
367
367
|
}>;
|
|
@@ -387,11 +387,11 @@ export declare const ProsopoClientConfigSchema: import("zod").ZodObject<{
|
|
|
387
387
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
388
388
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
389
389
|
networks?: Record<string, {
|
|
390
|
-
endpoint: string;
|
|
391
390
|
contract: {
|
|
392
|
-
address: string;
|
|
393
391
|
name: string;
|
|
392
|
+
address: string;
|
|
394
393
|
};
|
|
394
|
+
endpoint: string;
|
|
395
395
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
396
396
|
ss58Format?: number | undefined;
|
|
397
397
|
}> | undefined;
|
|
@@ -426,49 +426,49 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<{
|
|
|
426
426
|
password?: string | undefined;
|
|
427
427
|
}>;
|
|
428
428
|
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
429
|
-
endpoint: import("zod").ZodString;
|
|
430
429
|
contract: import("zod").ZodObject<{
|
|
431
430
|
address: import("zod").ZodString;
|
|
432
431
|
name: import("zod").ZodString;
|
|
433
432
|
}, "strip", import("zod").ZodTypeAny, {
|
|
434
|
-
address: string;
|
|
435
433
|
name: string;
|
|
436
|
-
}, {
|
|
437
434
|
address: string;
|
|
435
|
+
}, {
|
|
438
436
|
name: string;
|
|
437
|
+
address: string;
|
|
439
438
|
}>;
|
|
439
|
+
endpoint: import("zod").ZodString;
|
|
440
440
|
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
441
441
|
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
442
442
|
}, "strip", import("zod").ZodTypeAny, {
|
|
443
|
-
endpoint: string;
|
|
444
443
|
contract: {
|
|
445
|
-
address: string;
|
|
446
444
|
name: string;
|
|
445
|
+
address: string;
|
|
447
446
|
};
|
|
447
|
+
endpoint: string;
|
|
448
448
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
449
449
|
ss58Format: number;
|
|
450
450
|
}, {
|
|
451
|
-
endpoint: string;
|
|
452
451
|
contract: {
|
|
453
|
-
address: string;
|
|
454
452
|
name: string;
|
|
453
|
+
address: string;
|
|
455
454
|
};
|
|
455
|
+
endpoint: string;
|
|
456
456
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
457
457
|
ss58Format?: number | undefined;
|
|
458
458
|
}>>, Record<"development" | "rococo" | "shiden", {
|
|
459
|
-
endpoint: string;
|
|
460
459
|
contract: {
|
|
461
|
-
address: string;
|
|
462
460
|
name: string;
|
|
461
|
+
address: string;
|
|
463
462
|
};
|
|
463
|
+
endpoint: string;
|
|
464
464
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
465
465
|
ss58Format: number;
|
|
466
466
|
}>, Record<string, {
|
|
467
|
-
endpoint: string;
|
|
468
467
|
contract: {
|
|
469
|
-
address: string;
|
|
470
468
|
name: string;
|
|
469
|
+
address: string;
|
|
471
470
|
};
|
|
471
|
+
endpoint: string;
|
|
472
472
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
473
473
|
ss58Format?: number | undefined;
|
|
474
474
|
}>>>;
|
|
@@ -504,11 +504,11 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<{
|
|
|
504
504
|
password?: string | undefined;
|
|
505
505
|
};
|
|
506
506
|
networks: Record<"development" | "rococo" | "shiden", {
|
|
507
|
-
endpoint: string;
|
|
508
507
|
contract: {
|
|
509
|
-
address: string;
|
|
510
508
|
name: string;
|
|
509
|
+
address: string;
|
|
511
510
|
};
|
|
511
|
+
endpoint: string;
|
|
512
512
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
513
513
|
ss58Format: number;
|
|
514
514
|
}>;
|
|
@@ -534,11 +534,11 @@ export declare const ProsopoServerConfigSchema: import("zod").ZodObject<{
|
|
|
534
534
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
535
535
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
536
536
|
networks?: Record<string, {
|
|
537
|
-
endpoint: string;
|
|
538
537
|
contract: {
|
|
539
|
-
address: string;
|
|
540
538
|
name: string;
|
|
539
|
+
address: string;
|
|
541
540
|
};
|
|
541
|
+
endpoint: string;
|
|
542
542
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
543
543
|
ss58Format?: number | undefined;
|
|
544
544
|
}> | undefined;
|
|
@@ -617,49 +617,49 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
617
617
|
password?: string | undefined;
|
|
618
618
|
}>;
|
|
619
619
|
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
620
|
-
endpoint: import("zod").ZodString;
|
|
621
620
|
contract: import("zod").ZodObject<{
|
|
622
621
|
address: import("zod").ZodString;
|
|
623
622
|
name: import("zod").ZodString;
|
|
624
623
|
}, "strip", import("zod").ZodTypeAny, {
|
|
625
|
-
address: string;
|
|
626
624
|
name: string;
|
|
627
|
-
}, {
|
|
628
625
|
address: string;
|
|
626
|
+
}, {
|
|
629
627
|
name: string;
|
|
628
|
+
address: string;
|
|
630
629
|
}>;
|
|
630
|
+
endpoint: import("zod").ZodString;
|
|
631
631
|
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
632
632
|
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
633
633
|
}, "strip", import("zod").ZodTypeAny, {
|
|
634
|
-
endpoint: string;
|
|
635
634
|
contract: {
|
|
636
|
-
address: string;
|
|
637
635
|
name: string;
|
|
636
|
+
address: string;
|
|
638
637
|
};
|
|
638
|
+
endpoint: string;
|
|
639
639
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
640
640
|
ss58Format: number;
|
|
641
641
|
}, {
|
|
642
|
-
endpoint: string;
|
|
643
642
|
contract: {
|
|
644
|
-
address: string;
|
|
645
643
|
name: string;
|
|
644
|
+
address: string;
|
|
646
645
|
};
|
|
646
|
+
endpoint: string;
|
|
647
647
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
648
648
|
ss58Format?: number | undefined;
|
|
649
649
|
}>>, Record<"development" | "rococo" | "shiden", {
|
|
650
|
-
endpoint: string;
|
|
651
650
|
contract: {
|
|
652
|
-
address: string;
|
|
653
651
|
name: string;
|
|
652
|
+
address: string;
|
|
654
653
|
};
|
|
654
|
+
endpoint: string;
|
|
655
655
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
656
656
|
ss58Format: number;
|
|
657
657
|
}>, Record<string, {
|
|
658
|
-
endpoint: string;
|
|
659
658
|
contract: {
|
|
660
|
-
address: string;
|
|
661
659
|
name: string;
|
|
660
|
+
address: string;
|
|
662
661
|
};
|
|
662
|
+
endpoint: string;
|
|
663
663
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
664
664
|
ss58Format?: number | undefined;
|
|
665
665
|
}>>>;
|
|
@@ -695,11 +695,11 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
695
695
|
password?: string | undefined;
|
|
696
696
|
};
|
|
697
697
|
networks: Record<"development" | "rococo" | "shiden", {
|
|
698
|
-
endpoint: string;
|
|
699
698
|
contract: {
|
|
700
|
-
address: string;
|
|
701
699
|
name: string;
|
|
700
|
+
address: string;
|
|
702
701
|
};
|
|
702
|
+
endpoint: string;
|
|
703
703
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
704
704
|
ss58Format: number;
|
|
705
705
|
}>;
|
|
@@ -725,11 +725,11 @@ export declare const ProcaptchaConfigSchema: import("zod").ZodIntersection<impor
|
|
|
725
725
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
726
726
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
727
727
|
networks?: Record<string, {
|
|
728
|
-
endpoint: string;
|
|
729
728
|
contract: {
|
|
730
|
-
address: string;
|
|
731
729
|
name: string;
|
|
730
|
+
address: string;
|
|
732
731
|
};
|
|
732
|
+
endpoint: string;
|
|
733
733
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
734
734
|
ss58Format?: number | undefined;
|
|
735
735
|
}> | undefined;
|
|
@@ -839,49 +839,49 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
839
839
|
password?: string | undefined;
|
|
840
840
|
}>;
|
|
841
841
|
networks: import("zod").ZodDefault<import("zod").ZodEffects<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
842
|
-
endpoint: import("zod").ZodString;
|
|
843
842
|
contract: import("zod").ZodObject<{
|
|
844
843
|
address: import("zod").ZodString;
|
|
845
844
|
name: import("zod").ZodString;
|
|
846
845
|
}, "strip", import("zod").ZodTypeAny, {
|
|
847
|
-
address: string;
|
|
848
846
|
name: string;
|
|
849
|
-
}, {
|
|
850
847
|
address: string;
|
|
848
|
+
}, {
|
|
851
849
|
name: string;
|
|
850
|
+
address: string;
|
|
852
851
|
}>;
|
|
852
|
+
endpoint: import("zod").ZodString;
|
|
853
853
|
pairType: import("zod").ZodUnion<[import("zod").ZodLiteral<"sr25519">, import("zod").ZodLiteral<"ed25519">, import("zod").ZodLiteral<"ecdsa">, import("zod").ZodLiteral<"ethereum">]>;
|
|
854
854
|
ss58Format: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
855
855
|
}, "strip", import("zod").ZodTypeAny, {
|
|
856
|
-
endpoint: string;
|
|
857
856
|
contract: {
|
|
858
|
-
address: string;
|
|
859
857
|
name: string;
|
|
858
|
+
address: string;
|
|
860
859
|
};
|
|
860
|
+
endpoint: string;
|
|
861
861
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
862
862
|
ss58Format: number;
|
|
863
863
|
}, {
|
|
864
|
-
endpoint: string;
|
|
865
864
|
contract: {
|
|
866
|
-
address: string;
|
|
867
865
|
name: string;
|
|
866
|
+
address: string;
|
|
868
867
|
};
|
|
868
|
+
endpoint: string;
|
|
869
869
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
870
870
|
ss58Format?: number | undefined;
|
|
871
871
|
}>>, Record<"development" | "rococo" | "shiden", {
|
|
872
|
-
endpoint: string;
|
|
873
872
|
contract: {
|
|
874
|
-
address: string;
|
|
875
873
|
name: string;
|
|
874
|
+
address: string;
|
|
876
875
|
};
|
|
876
|
+
endpoint: string;
|
|
877
877
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
878
878
|
ss58Format: number;
|
|
879
879
|
}>, Record<string, {
|
|
880
|
-
endpoint: string;
|
|
881
880
|
contract: {
|
|
882
|
-
address: string;
|
|
883
881
|
name: string;
|
|
882
|
+
address: string;
|
|
884
883
|
};
|
|
884
|
+
endpoint: string;
|
|
885
885
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
886
886
|
ss58Format?: number | undefined;
|
|
887
887
|
}>>>;
|
|
@@ -967,6 +967,14 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
967
967
|
}>;
|
|
968
968
|
mongoEventsUri: import("zod").ZodOptional<import("zod").ZodString>;
|
|
969
969
|
}, "strip", import("zod").ZodTypeAny, {
|
|
970
|
+
captchas: {
|
|
971
|
+
solved: {
|
|
972
|
+
count: number;
|
|
973
|
+
};
|
|
974
|
+
unsolved: {
|
|
975
|
+
count: number;
|
|
976
|
+
};
|
|
977
|
+
};
|
|
970
978
|
logLevel: "error" | "trace" | "debug" | "info" | "warn" | "fatal" | "log";
|
|
971
979
|
defaultEnvironment: "development" | "staging" | "production";
|
|
972
980
|
defaultNetwork: "development" | "rococo" | "shiden";
|
|
@@ -976,22 +984,14 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
976
984
|
password?: string | undefined;
|
|
977
985
|
};
|
|
978
986
|
networks: Record<"development" | "rococo" | "shiden", {
|
|
979
|
-
endpoint: string;
|
|
980
987
|
contract: {
|
|
981
|
-
address: string;
|
|
982
988
|
name: string;
|
|
989
|
+
address: string;
|
|
983
990
|
};
|
|
991
|
+
endpoint: string;
|
|
984
992
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
985
993
|
ss58Format: number;
|
|
986
994
|
}>;
|
|
987
|
-
captchas: {
|
|
988
|
-
solved: {
|
|
989
|
-
count: number;
|
|
990
|
-
};
|
|
991
|
-
unsolved: {
|
|
992
|
-
count: number;
|
|
993
|
-
};
|
|
994
|
-
};
|
|
995
995
|
captchaSolutions: {
|
|
996
996
|
requiredNumberOfSolutions: number;
|
|
997
997
|
solutionWinningPercentage: number;
|
|
@@ -1027,11 +1027,11 @@ export declare const ProsopoConfigSchema: import("zod").ZodObject<{
|
|
|
1027
1027
|
defaultEnvironment?: "development" | "staging" | "production" | undefined;
|
|
1028
1028
|
defaultNetwork?: "development" | "rococo" | "shiden" | undefined;
|
|
1029
1029
|
networks?: Record<string, {
|
|
1030
|
-
endpoint: string;
|
|
1031
1030
|
contract: {
|
|
1032
|
-
address: string;
|
|
1033
1031
|
name: string;
|
|
1032
|
+
address: string;
|
|
1034
1033
|
};
|
|
1034
|
+
endpoint: string;
|
|
1035
1035
|
pairType: "sr25519" | "ed25519" | "ecdsa" | "ethereum";
|
|
1036
1036
|
ss58Format?: number | undefined;
|
|
1037
1037
|
}> | undefined;
|