@prosopo/cli 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/dist/RateLimiter.js +59 -57
- package/dist/argv.js +29 -25
- package/dist/bundle/{i18nBackend-DDiD0rVZ.js → i18nBackend-B5QB3n19.js} +48 -45
- package/dist/bundle/provider.cli.bundle.js +65217 -66209
- package/dist/cjs/cli.cjs +1 -4
- package/dist/cli.js +35 -36
- package/dist/commands/index.js +12 -6
- package/dist/commands/providerSetDataset.js +39 -39
- package/dist/commands/siteKeyRegister.js +82 -79
- package/dist/commands/siteKeyRegisterApi.js +90 -81
- package/dist/commands/storeCaptchasExternally.js +23 -24
- package/dist/commands/validators.js +32 -27
- package/dist/commands/version.js +15 -13
- package/dist/files.js +31 -29
- package/dist/index.js +20 -7
- package/dist/process.env.js +38 -37
- package/dist/prosopo.config.js +85 -90
- package/dist/reloader.js +53 -47
- package/dist/start.js +118 -87
- package/package.json +22 -19
- package/vite.cjs.config.ts +4 -1
- package/vite.esm.config.ts +20 -0
- package/dist/RateLimiter.d.ts +0 -55
- package/dist/RateLimiter.d.ts.map +0 -1
- package/dist/RateLimiter.js.map +0 -1
- package/dist/argv.d.ts +0 -22
- package/dist/argv.d.ts.map +0 -1
- package/dist/argv.js.map +0 -1
- package/dist/cli.d.ts +0 -2
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/commands/index.d.ts +0 -6
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/index.js.map +0 -1
- package/dist/commands/providerSetDataset.d.ts +0 -17
- package/dist/commands/providerSetDataset.d.ts.map +0 -1
- package/dist/commands/providerSetDataset.js.map +0 -1
- package/dist/commands/siteKeyRegister.d.ts +0 -57
- package/dist/commands/siteKeyRegister.d.ts.map +0 -1
- package/dist/commands/siteKeyRegister.js.map +0 -1
- package/dist/commands/siteKeyRegisterApi.d.ts +0 -33
- package/dist/commands/siteKeyRegisterApi.d.ts.map +0 -1
- package/dist/commands/siteKeyRegisterApi.js.map +0 -1
- package/dist/commands/storeCaptchasExternally.d.ts +0 -13
- package/dist/commands/storeCaptchasExternally.d.ts.map +0 -1
- package/dist/commands/storeCaptchasExternally.js.map +0 -1
- package/dist/commands/validators.d.ts +0 -18
- package/dist/commands/validators.d.ts.map +0 -1
- package/dist/commands/validators.js.map +0 -1
- package/dist/commands/version.d.ts +0 -12
- package/dist/commands/version.d.ts.map +0 -1
- package/dist/commands/version.js.map +0 -1
- package/dist/files.d.ts +0 -4
- package/dist/files.d.ts.map +0 -1
- package/dist/files.js.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/process.env.d.ts +0 -8
- package/dist/process.env.d.ts.map +0 -1
- package/dist/process.env.js.map +0 -1
- package/dist/prosopo.config.d.ts +0 -3
- package/dist/prosopo.config.d.ts.map +0 -1
- package/dist/prosopo.config.js.map +0 -1
- package/dist/reloader.d.ts +0 -20
- package/dist/reloader.d.ts.map +0 -1
- package/dist/reloader.js.map +0 -1
- package/dist/start.d.ts +0 -4
- package/dist/start.d.ts.map +0 -1
- package/dist/start.js.map +0 -1
- package/dist/tests/bundle/bundle.unit.test.d.ts +0 -2
- package/dist/tests/bundle/bundle.unit.test.d.ts.map +0 -1
- package/dist/tests/bundle/bundle.unit.test.js +0 -14
- package/dist/tests/bundle/bundle.unit.test.js.map +0 -1
package/dist/start.js
CHANGED
|
@@ -1,106 +1,137 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createApiExpressDefaultEndpointAdapter, requestLoggerMiddleware, authMiddleware, apiExpressRouterFactory } from "@prosopo/api-express-router";
|
|
2
2
|
import { parseLogLevel } from "@prosopo/common";
|
|
3
3
|
import { loadEnv } from "@prosopo/dotenv";
|
|
4
4
|
import { ProviderEnvironment } from "@prosopo/env";
|
|
5
5
|
import { getPair } from "@prosopo/keyring";
|
|
6
6
|
import { i18nMiddleware } from "@prosopo/locale";
|
|
7
|
-
import { createApiAdminRoutesProvider,
|
|
8
|
-
import { blockMiddleware, ja4Middleware } from "@prosopo/provider";
|
|
7
|
+
import { createApiAdminRoutesProvider, publicRouter, robotsMiddleware, ignoreMiddleware, ja4Middleware, prosopoVerifyRouter, blockMiddleware, headerCheckMiddleware, domainMiddleware, prosopoRouter, storeCaptchasExternally, getClientList } from "@prosopo/provider";
|
|
9
8
|
import { ClientApiPaths } from "@prosopo/types";
|
|
10
|
-
import { createApiRuleRoutesProvider, getExpressApiRuleRateLimits
|
|
9
|
+
import { createApiRuleRoutesProvider, getExpressApiRuleRateLimits } from "@prosopo/user-access-policy";
|
|
11
10
|
import cors from "cors";
|
|
12
11
|
import express from "express";
|
|
13
12
|
import rateLimit from "express-rate-limit";
|
|
14
13
|
import { getDB, getSecret } from "./process.env.js";
|
|
15
14
|
import getConfig from "./prosopo.config.js";
|
|
16
15
|
const getClientApiPathsExcludingVerify = () => {
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
const paths = Object.values(ClientApiPaths).filter(
|
|
17
|
+
(path) => path.indexOf("verify") === -1
|
|
18
|
+
);
|
|
19
|
+
return paths;
|
|
19
20
|
};
|
|
20
21
|
async function startApi(env, admin = false, port) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
env.
|
|
29
|
-
|
|
30
|
-
|
|
22
|
+
env.logger.info(() => ({ msg: "Starting Prosopo API" }));
|
|
23
|
+
const apiApp = express();
|
|
24
|
+
const apiPort = port || env.config.server.port;
|
|
25
|
+
const apiEndpointAdapter = createApiExpressDefaultEndpointAdapter(
|
|
26
|
+
parseLogLevel(env.config.logLevel)
|
|
27
|
+
);
|
|
28
|
+
const apiRuleRoutesProvider = createApiRuleRoutesProvider(
|
|
29
|
+
env.getDb().getUserAccessRulesStorage()
|
|
30
|
+
);
|
|
31
|
+
const apiAdminRoutesProvider = createApiAdminRoutesProvider(env);
|
|
32
|
+
const clientPathsExcludingVerify = getClientApiPathsExcludingVerify();
|
|
33
|
+
env.logger.debug(() => ({
|
|
34
|
+
msg: "Adding headerCheckMiddleware",
|
|
35
|
+
paths: clientPathsExcludingVerify
|
|
36
|
+
}));
|
|
37
|
+
apiApp.set(
|
|
38
|
+
"trust proxy",
|
|
39
|
+
env.config.proxyCount
|
|
40
|
+
);
|
|
41
|
+
apiApp.use(cors());
|
|
42
|
+
apiApp.use(express.json({ limit: "50mb" }));
|
|
43
|
+
apiApp.use(publicRouter());
|
|
44
|
+
const i18Middleware = await i18nMiddleware({});
|
|
45
|
+
apiApp.use(robotsMiddleware());
|
|
46
|
+
apiApp.use(ignoreMiddleware());
|
|
47
|
+
apiApp.use(requestLoggerMiddleware(env));
|
|
48
|
+
apiApp.use(i18Middleware);
|
|
49
|
+
apiApp.use(ja4Middleware(env));
|
|
50
|
+
apiApp.use(prosopoVerifyRouter(env));
|
|
51
|
+
apiApp.use(blockMiddleware(env));
|
|
52
|
+
apiApp.use(clientPathsExcludingVerify, headerCheckMiddleware(env));
|
|
53
|
+
apiApp.use("/v1/prosopo/provider/client/", domainMiddleware(env));
|
|
54
|
+
apiApp.use(prosopoRouter(env));
|
|
55
|
+
env.logger.info(() => ({ msg: "Enabling admin auth middleware" }));
|
|
56
|
+
apiApp.use(
|
|
57
|
+
"/v1/prosopo/provider/admin",
|
|
58
|
+
authMiddleware(env.pair, env.authAccount)
|
|
59
|
+
);
|
|
60
|
+
const userAccessRuleRoutes = apiRuleRoutesProvider.getRoutes();
|
|
61
|
+
for (const userAccessRuleRoute of userAccessRuleRoutes) {
|
|
62
|
+
apiApp.use(
|
|
63
|
+
userAccessRuleRoute.path,
|
|
64
|
+
authMiddleware(env.pair, env.authAccount)
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
apiApp.use(
|
|
68
|
+
apiExpressRouterFactory.createRouter(
|
|
69
|
+
apiRuleRoutesProvider,
|
|
70
|
+
apiEndpointAdapter
|
|
71
|
+
)
|
|
72
|
+
);
|
|
73
|
+
apiApp.use(
|
|
74
|
+
apiExpressRouterFactory.createRouter(
|
|
75
|
+
apiAdminRoutesProvider,
|
|
76
|
+
// unlike the default one, it should have errorStatusCode as 400
|
|
77
|
+
createApiExpressDefaultEndpointAdapter(
|
|
78
|
+
parseLogLevel(env.config.logLevel),
|
|
79
|
+
400
|
|
80
|
+
)
|
|
81
|
+
)
|
|
82
|
+
);
|
|
83
|
+
const configRateLimits = env.config.rateLimits;
|
|
84
|
+
const rateLimits = { ...configRateLimits, ...getExpressApiRuleRateLimits() };
|
|
85
|
+
for (const [path, limit] of Object.entries(rateLimits)) {
|
|
86
|
+
const enumPath = path;
|
|
87
|
+
apiApp.use(enumPath, rateLimit(limit));
|
|
88
|
+
}
|
|
89
|
+
return apiApp.listen(apiPort, () => {
|
|
90
|
+
env.logger.info(() => ({
|
|
91
|
+
data: { apiPort },
|
|
92
|
+
msg: "Prosopo app listening"
|
|
31
93
|
}));
|
|
32
|
-
|
|
33
|
-
apiApp.use(cors());
|
|
34
|
-
apiApp.use(express.json({ limit: "50mb" }));
|
|
35
|
-
apiApp.use(publicRouter());
|
|
36
|
-
const i18Middleware = await i18nMiddleware({});
|
|
37
|
-
apiApp.use(robotsMiddleware());
|
|
38
|
-
apiApp.use(ignoreMiddleware());
|
|
39
|
-
apiApp.use(requestLoggerMiddleware(env));
|
|
40
|
-
apiApp.use(i18Middleware);
|
|
41
|
-
apiApp.use(ja4Middleware(env));
|
|
42
|
-
apiApp.use(prosopoVerifyRouter(env));
|
|
43
|
-
apiApp.use(blockMiddleware(env));
|
|
44
|
-
apiApp.use(clientPathsExcludingVerify, headerCheckMiddleware(env));
|
|
45
|
-
apiApp.use("/v1/prosopo/provider/client/", domainMiddleware(env));
|
|
46
|
-
apiApp.use(prosopoRouter(env));
|
|
47
|
-
env.logger.info(() => ({ msg: "Enabling admin auth middleware" }));
|
|
48
|
-
apiApp.use("/v1/prosopo/provider/admin", authMiddleware(env.pair, env.authAccount));
|
|
49
|
-
const userAccessRuleRoutes = apiRuleRoutesProvider.getRoutes();
|
|
50
|
-
for (const userAccessRuleRoute of userAccessRuleRoutes) {
|
|
51
|
-
apiApp.use(userAccessRuleRoute.path, authMiddleware(env.pair, env.authAccount));
|
|
52
|
-
}
|
|
53
|
-
apiApp.use(apiExpressRouterFactory.createRouter(apiRuleRoutesProvider, apiEndpointAdapter));
|
|
54
|
-
apiApp.use(apiExpressRouterFactory.createRouter(apiAdminRoutesProvider, createApiExpressDefaultEndpointAdapter(parseLogLevel(env.config.logLevel), 400)));
|
|
55
|
-
const configRateLimits = env.config.rateLimits;
|
|
56
|
-
const rateLimits = { ...configRateLimits, ...getExpressApiRuleRateLimits() };
|
|
57
|
-
for (const [path, limit] of Object.entries(rateLimits)) {
|
|
58
|
-
const enumPath = path;
|
|
59
|
-
apiApp.use(enumPath, rateLimit(limit));
|
|
60
|
-
}
|
|
61
|
-
return apiApp.listen(apiPort, () => {
|
|
62
|
-
env.logger.info(() => ({
|
|
63
|
-
data: { apiPort },
|
|
64
|
-
msg: "Prosopo app listening",
|
|
65
|
-
}));
|
|
66
|
-
});
|
|
94
|
+
});
|
|
67
95
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
const cronScheduleClient = env.config.scheduledTasks?.clientListScheduler?.schedule;
|
|
94
|
-
if (cronScheduleClient) {
|
|
95
|
-
getClientList(env.pair, cronScheduleClient, env.config).catch((err) => {
|
|
96
|
-
env.logger.error(() => ({
|
|
97
|
-
msg: "Failed to start client list scheduler",
|
|
98
|
-
err,
|
|
99
|
-
context: { failedFuncName: getClientList.name },
|
|
100
|
-
}));
|
|
101
|
-
});
|
|
96
|
+
async function start(env, admin, port) {
|
|
97
|
+
if (!env) {
|
|
98
|
+
loadEnv();
|
|
99
|
+
getDB();
|
|
100
|
+
const secret = getSecret();
|
|
101
|
+
const config = getConfig(void 0, {
|
|
102
|
+
solved: { count: 2 },
|
|
103
|
+
unsolved: { count: 0 }
|
|
104
|
+
});
|
|
105
|
+
const pair = getPair(secret);
|
|
106
|
+
const authAccount = getPair(void 0, config.authAccount.address);
|
|
107
|
+
env = new ProviderEnvironment(config, pair, authAccount);
|
|
108
|
+
} else {
|
|
109
|
+
env.logger.debug(() => ({ msg: "Env already defined" }));
|
|
110
|
+
}
|
|
111
|
+
await env.isReady();
|
|
112
|
+
env.cleanup();
|
|
113
|
+
if (env.pair) {
|
|
114
|
+
const cronScheduleStorage = env.config.scheduledTasks?.captchaScheduler?.schedule;
|
|
115
|
+
if (cronScheduleStorage) {
|
|
116
|
+
storeCaptchasExternally(env.pair, cronScheduleStorage, env.config).catch(
|
|
117
|
+
(err) => {
|
|
118
|
+
console.error("Failed to start scheduler:", err);
|
|
102
119
|
}
|
|
120
|
+
);
|
|
103
121
|
}
|
|
104
|
-
|
|
122
|
+
const cronScheduleClient = env.config.scheduledTasks?.clientListScheduler?.schedule;
|
|
123
|
+
if (cronScheduleClient) {
|
|
124
|
+
getClientList(env.pair, cronScheduleClient, env.config).catch((err) => {
|
|
125
|
+
env.logger.error(() => ({
|
|
126
|
+
msg: "Failed to start client list scheduler",
|
|
127
|
+
err,
|
|
128
|
+
context: { failedFuncName: getClientList.name }
|
|
129
|
+
}));
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
return startApi(env, admin, port);
|
|
105
134
|
}
|
|
106
|
-
|
|
135
|
+
export {
|
|
136
|
+
start
|
|
137
|
+
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/cli",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "CLI for Prosopo Provider",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
6
7
|
"type": "module",
|
|
7
8
|
"engines": {
|
|
8
9
|
"node": "20",
|
|
@@ -10,16 +11,19 @@
|
|
|
10
11
|
},
|
|
11
12
|
"exports": {
|
|
12
13
|
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
13
15
|
"import": "./dist/index.js",
|
|
14
16
|
"require": "./dist/cjs/index.cjs"
|
|
15
17
|
}
|
|
16
18
|
},
|
|
17
19
|
"scripts": {
|
|
18
|
-
"clean": "
|
|
19
|
-
"build": "
|
|
20
|
-
"build:
|
|
21
|
-
"
|
|
20
|
+
"clean": "del-cli --verbose dist tsconfig.tsbuildinfo",
|
|
21
|
+
"build": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
|
|
22
|
+
"build:tsc": "tsc --build --verbose",
|
|
23
|
+
"build:cjs": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
|
|
24
|
+
"typecheck": "tsc --build --declaration --emitDeclarationOnly",
|
|
22
25
|
"test": "NODE_ENV=${NODE_ENV:-test}; npx vitest run --config ./vite.test.config.ts",
|
|
26
|
+
"bundle": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.config.ts --mode $NODE_ENV",
|
|
23
27
|
"cli": "node ./dist/cli.js",
|
|
24
28
|
"start": "node ./dist/cli.js --api",
|
|
25
29
|
"start:admin": "node ./dist/cli.js --api --adminApi",
|
|
@@ -27,19 +31,19 @@
|
|
|
27
31
|
},
|
|
28
32
|
"dependencies": {
|
|
29
33
|
"@polkadot/types-codec": "10.13.1",
|
|
30
|
-
"@prosopo/api": "3.1.
|
|
31
|
-
"@prosopo/api-express-router": "3.0.
|
|
32
|
-
"@prosopo/common": "3.0
|
|
33
|
-
"@prosopo/config": "3.1.
|
|
34
|
-
"@prosopo/dotenv": "3.0.
|
|
35
|
-
"@prosopo/env": "3.1.
|
|
36
|
-
"@prosopo/keyring": "2.8.
|
|
37
|
-
"@prosopo/locale": "3.0
|
|
38
|
-
"@prosopo/provider": "3.2.
|
|
39
|
-
"@prosopo/types": "3.0.
|
|
40
|
-
"@prosopo/user-access-policy": "3.3.
|
|
41
|
-
"@prosopo/util": "3.0.
|
|
42
|
-
"@prosopo/util-crypto": "13.5.
|
|
34
|
+
"@prosopo/api": "3.1.1",
|
|
35
|
+
"@prosopo/api-express-router": "3.0.4",
|
|
36
|
+
"@prosopo/common": "3.1.0",
|
|
37
|
+
"@prosopo/config": "3.1.1",
|
|
38
|
+
"@prosopo/dotenv": "3.0.5",
|
|
39
|
+
"@prosopo/env": "3.1.1",
|
|
40
|
+
"@prosopo/keyring": "2.8.7",
|
|
41
|
+
"@prosopo/locale": "3.1.0",
|
|
42
|
+
"@prosopo/provider": "3.2.2",
|
|
43
|
+
"@prosopo/types": "3.0.4",
|
|
44
|
+
"@prosopo/user-access-policy": "3.3.1",
|
|
45
|
+
"@prosopo/util": "3.0.3",
|
|
46
|
+
"@prosopo/util-crypto": "13.5.2",
|
|
43
47
|
"@typegoose/auto-increment": "4.13.0",
|
|
44
48
|
"axios": "1.10.0",
|
|
45
49
|
"cors": "2.8.5",
|
|
@@ -55,7 +59,6 @@
|
|
|
55
59
|
"zod": "3.23.8"
|
|
56
60
|
},
|
|
57
61
|
"devDependencies": {
|
|
58
|
-
"@prosopo/config": "3.1.0",
|
|
59
62
|
"@types/cors": "2.8.17",
|
|
60
63
|
"@types/yargs": "17.0.33",
|
|
61
64
|
"@vitest/coverage-v8": "3.0.9",
|
package/vite.cjs.config.ts
CHANGED
|
@@ -15,5 +15,8 @@ import path from "node:path";
|
|
|
15
15
|
import { ViteCommonJSConfig } from "@prosopo/config";
|
|
16
16
|
|
|
17
17
|
export default function () {
|
|
18
|
-
return ViteCommonJSConfig(
|
|
18
|
+
return ViteCommonJSConfig(
|
|
19
|
+
path.basename("."),
|
|
20
|
+
path.resolve("./tsconfig.json"),
|
|
21
|
+
);
|
|
19
22
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Copyright 2021-2025 Prosopo (UK) Ltd.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
import path from "node:path";
|
|
16
|
+
import { ViteEsmConfig } from "@prosopo/config";
|
|
17
|
+
|
|
18
|
+
export default function () {
|
|
19
|
+
return ViteEsmConfig(path.basename("."), path.resolve("./tsconfig.json"));
|
|
20
|
+
}
|
package/dist/RateLimiter.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
export declare const getRateLimitConfig: () => {
|
|
2
|
-
"/v1/prosopo/provider/client/captcha/image": {
|
|
3
|
-
windowMs: string | undefined;
|
|
4
|
-
limit: string | undefined;
|
|
5
|
-
};
|
|
6
|
-
"/v1/prosopo/provider/client/captcha/pow": {
|
|
7
|
-
windowMs: string | undefined;
|
|
8
|
-
limit: string | undefined;
|
|
9
|
-
};
|
|
10
|
-
"/v1/prosopo/provider/client/solution": {
|
|
11
|
-
windowMs: string | undefined;
|
|
12
|
-
limit: string | undefined;
|
|
13
|
-
};
|
|
14
|
-
"/v1/prosopo/provider/client/pow/solution": {
|
|
15
|
-
windowMs: string | undefined;
|
|
16
|
-
limit: string | undefined;
|
|
17
|
-
};
|
|
18
|
-
"/v1/prosopo/provider/client/pow/verify": {
|
|
19
|
-
windowMs: string | undefined;
|
|
20
|
-
limit: string | undefined;
|
|
21
|
-
};
|
|
22
|
-
"/v1/prosopo/provider/client/image/dapp/verify": {
|
|
23
|
-
windowMs: string | undefined;
|
|
24
|
-
limit: string | undefined;
|
|
25
|
-
};
|
|
26
|
-
"/v1/prosopo/provider/client/status": {
|
|
27
|
-
windowMs: string | undefined;
|
|
28
|
-
limit: string | undefined;
|
|
29
|
-
};
|
|
30
|
-
"/v1/prosopo/provider/public/details": {
|
|
31
|
-
windowMs: string | undefined;
|
|
32
|
-
limit: string | undefined;
|
|
33
|
-
};
|
|
34
|
-
"/v1/prosopo/provider/client/events": {
|
|
35
|
-
windowMs: string | undefined;
|
|
36
|
-
limit: string | undefined;
|
|
37
|
-
};
|
|
38
|
-
"/v1/prosopo/provider/admin/sitekey/register": {
|
|
39
|
-
windowMs: string | undefined;
|
|
40
|
-
limit: string | undefined;
|
|
41
|
-
};
|
|
42
|
-
"/v1/prosopo/provider/admin/detector/update": {
|
|
43
|
-
windowMs: string | undefined;
|
|
44
|
-
limit: string | undefined;
|
|
45
|
-
};
|
|
46
|
-
"/v1/prosopo/provider/admin/detector/remove": {
|
|
47
|
-
windowMs: string | undefined;
|
|
48
|
-
limit: string | undefined;
|
|
49
|
-
};
|
|
50
|
-
"/v1/prosopo/provider/client/captcha/frictionless": {
|
|
51
|
-
windowMs: string | undefined;
|
|
52
|
-
limit: string | undefined;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=RateLimiter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RateLimiter.d.ts","sourceRoot":"","sources":["../src/RateLimiter.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;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
|
-
export type AwaitedProcessedArgs = {
|
|
4
|
-
[x: string]: unknown;
|
|
5
|
-
api: boolean;
|
|
6
|
-
_: (string | number)[];
|
|
7
|
-
$0: string;
|
|
8
|
-
};
|
|
9
|
-
export declare function processArgs(args: string[], pair: KeyringPair, authAccount: KeyringPair, config: ProsopoConfigOutput): {
|
|
10
|
-
[x: string]: unknown;
|
|
11
|
-
api: boolean;
|
|
12
|
-
adminApi: boolean;
|
|
13
|
-
_: (string | number)[];
|
|
14
|
-
$0: string;
|
|
15
|
-
} | Promise<{
|
|
16
|
-
[x: string]: unknown;
|
|
17
|
-
api: boolean;
|
|
18
|
-
adminApi: boolean;
|
|
19
|
-
_: (string | number)[];
|
|
20
|
-
$0: string;
|
|
21
|
-
}>;
|
|
22
|
-
//# sourceMappingURL=argv.d.ts.map
|
package/dist/argv.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"argv.d.ts","sourceRoot":"","sources":["../src/argv.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAW1D,MAAM,MAAM,oBAAoB,GAAG;IAClC,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACrB,GAAG,EAAE,OAAO,CAAC;IACb,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;CACX,CAAC;AAiBF,wBAAgB,WAAW,CAC1B,IAAI,EAAE,MAAM,EAAE,EACd,IAAI,EAAE,WAAW,EACjB,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,mBAAmB;;;;;;;;;;;;GAoB3B"}
|
package/dist/argv.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"argv.js","sourceRoot":"","sources":["../src/argv.ts"],"names":[],"mappings":"AAAA,OAA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WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;IAEhE,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAChC,cAAc,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IAED,OAAO,cAAc,CAAC,KAAK,EAAE,CAAC;AAC/B,CAAC"}
|
package/dist/cli.d.ts
DELETED
package/dist/cli.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":""}
|
package/dist/cli.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAaA,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,SAAS,MAAM,qBAAqB,CAAC;AAC5C,OAAO,YAAY,MAAM,eAAe,CAAC;AAEzC,MAAM,GAAG,GAAG,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAEjD,KAAK,UAAU,IAAI;IAClB,MAAM,OAAO,GAAG,OAAO,EAAE,CAAC;IAG1B,MAAM,MAAM,GAAwB,SAAS,CAAC,SAAS,EAAE;QACxD,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;QACpB,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;K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,EAAE,UAAU,CAAC,EAAE,CAAC;IACzC,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;QAC3B,IAAI,EAAE;aACJ,IAAI,CAAC,GAAG,EAAE;YACV,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,yBAAyB,EAAE,CAAC,CAAC,CAAC;QACtD,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;YAChB,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACJ,CAAC"}
|
package/dist/commands/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default as commandProviderSetDataset } from "./providerSetDataset.js";
|
|
2
|
-
export { default as commandStoreCaptchasExternally } from "./storeCaptchasExternally.js";
|
|
3
|
-
export { default as commandVersion } from "./version.js";
|
|
4
|
-
export { default as commandSiteKeyRegister } from "./siteKeyRegister.js";
|
|
5
|
-
export { default as commandSiteKeyRegisterApi } from "./siteKeyRegisterApi.js";
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type Logger } from "@prosopo/common";
|
|
2
|
-
import type { KeyringPair } from "@prosopo/types";
|
|
3
|
-
import type { ProsopoConfigOutput } from "@prosopo/types";
|
|
4
|
-
import type { ArgumentsCamelCase, Argv } from "yargs";
|
|
5
|
-
declare const _default: (pair: KeyringPair, config: ProsopoConfigOutput, cmdArgs?: {
|
|
6
|
-
logger?: Logger;
|
|
7
|
-
}) => {
|
|
8
|
-
command: string;
|
|
9
|
-
describe: string;
|
|
10
|
-
builder: (yargs: Argv) => Argv<{
|
|
11
|
-
file: string;
|
|
12
|
-
}>;
|
|
13
|
-
handler: (argv: ArgumentsCamelCase) => Promise<void>;
|
|
14
|
-
middlewares: never[];
|
|
15
|
-
};
|
|
16
|
-
export default _default;
|
|
17
|
-
//# sourceMappingURL=providerSetDataset.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"providerSetDataset.d.ts","sourceRoot":"","sources":["../../src/commands/providerSetDataset.ts"],"names":[],"mappings":"AAcA,OAAO,EAAY,KAAK,MAAM,EAAa,MAAM,iBAAiB,CAAC;AAGnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CA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,CAAC;gBAC7B,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACzC,MAAM,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAS,CAAC;gBAC5C,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;oBAClB,IAAI,EAAE,EAAE,IAAI,EAAE;oBACd,GAAG,EAAE,cAAc;iBACnB,CAAC,CAAC,CAAC;gBACJ,MAAM,MAAM,GACX,MAAM,KAAK,CAAC,cAAc,CAAC,0BAA0B,CAAC,QAAQ,CAAC,CAAC;gBACjE,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;oBAClB,IAAI,EAAE,EAAE,IAAI,EAAE;oBACd,GAAG,EAAE,aAAa;iBAClB,CAAC,CAAC,CAAC;YACL,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACd,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;oBACnB,GAAG;oBACH,GAAG,EAAE,oBAAoB;iBACzB,CAAC,CAAC,CAAC;YACL,CAAC;QACF,CAAC;QACD,WAAW,EAAE,EAAE;KACf,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { type Logger } from "@prosopo/common";
|
|
2
|
-
import type { KeyringPair } from "@prosopo/types";
|
|
3
|
-
import { type ProsopoConfigOutput, Tier } from "@prosopo/types";
|
|
4
|
-
import type { ArgumentsCamelCase, Argv } from "yargs";
|
|
5
|
-
import { z } from "zod";
|
|
6
|
-
export declare const SiteKeyRegisterCommandArgsSpec: z.ZodObject<{
|
|
7
|
-
sitekey: z.ZodString;
|
|
8
|
-
tier: z.ZodNativeEnum<typeof Tier>;
|
|
9
|
-
captcha_type: z.ZodNativeEnum<typeof import("@prosopo/types").CaptchaType>;
|
|
10
|
-
frictionless_threshold: z.ZodNumber;
|
|
11
|
-
pow_difficulty: z.ZodNumber;
|
|
12
|
-
domains: z.ZodArray<z.ZodString, "many">;
|
|
13
|
-
image_threshold: z.ZodNumber;
|
|
14
|
-
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
tier: Tier;
|
|
16
|
-
sitekey: string;
|
|
17
|
-
captcha_type: import("@prosopo/types").CaptchaType;
|
|
18
|
-
frictionless_threshold: number;
|
|
19
|
-
pow_difficulty: number;
|
|
20
|
-
domains: string[];
|
|
21
|
-
image_threshold: number;
|
|
22
|
-
}, {
|
|
23
|
-
tier: Tier;
|
|
24
|
-
sitekey: string;
|
|
25
|
-
captcha_type: import("@prosopo/types").CaptchaType;
|
|
26
|
-
frictionless_threshold: number;
|
|
27
|
-
pow_difficulty: number;
|
|
28
|
-
domains: string[];
|
|
29
|
-
image_threshold: number;
|
|
30
|
-
}>;
|
|
31
|
-
declare const _default: (pair: KeyringPair, config: ProsopoConfigOutput, cmdArgs?: {
|
|
32
|
-
logger?: Logger;
|
|
33
|
-
}) => {
|
|
34
|
-
command: string;
|
|
35
|
-
describe: string;
|
|
36
|
-
builder: (yargs: Argv) => Argv<{
|
|
37
|
-
sitekey: string;
|
|
38
|
-
} & {
|
|
39
|
-
tier: string | undefined;
|
|
40
|
-
} & {
|
|
41
|
-
captcha_type: string | undefined;
|
|
42
|
-
} & {
|
|
43
|
-
domains: (string | number)[] | undefined;
|
|
44
|
-
} & {
|
|
45
|
-
frictionless_threshold: number | undefined;
|
|
46
|
-
} & {
|
|
47
|
-
pow_difficulty: number | undefined;
|
|
48
|
-
} & {
|
|
49
|
-
image_threshold: number | undefined;
|
|
50
|
-
}>;
|
|
51
|
-
handler: (argv: ArgumentsCamelCase) => Promise<void>;
|
|
52
|
-
middlewares: ((argv: ArgumentsCamelCase) => {
|
|
53
|
-
sitekey: string;
|
|
54
|
-
})[];
|
|
55
|
-
};
|
|
56
|
-
export default _default;
|
|
57
|
-
//# sourceMappingURL=siteKeyRegister.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"siteKeyRegister.d.ts","sourceRoot":"","sources":["../../src/commands/siteKeyRegister.ts"],"names":[],"mappings":"AAcA,OAAO,EAAY,KAAK,MAAM,EAAa,MAAM,iBAAiB,CAAC;AAGnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAEN,KAAK,mBAAmB,EACxB,IAAI,EACJ,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;EAQzC,CAAC;+BAGI,WAAW,UACT,mBAAmB,YACjB;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE;;;qBAQX,IAAI;;;;;;;;;;;;;;;oBAqCC,kBAAkB;;;;;AAhD1C,wBAkFE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"siteKeyRegister.js","sourceRoot":"","sources":["../../src/commands/siteKeyRegister.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,QAAQ,EAAe,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EACN,eAAe,EAEf,IAAI,GACJ,MAAM,gBAAgB,CAAC;AAExB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC;IACxB,YAAY,EAAE,eAAe;IAC7B,sBAAsB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,WAAW,EAAE,CAAC,eAAe,CAAC;KAC9B,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { type Logger } from "@prosopo/common";
|
|
2
|
-
import type { KeyringPair } from "@prosopo/types";
|
|
3
|
-
import { type ProsopoConfigOutput, Tier } from "@prosopo/types";
|
|
4
|
-
import type { ArgumentsCamelCase, Argv } from "yargs";
|
|
5
|
-
declare const _default: (pair: KeyringPair, authAccount: KeyringPair, config: ProsopoConfigOutput, cmdArgs?: {
|
|
6
|
-
logger?: Logger;
|
|
7
|
-
}) => {
|
|
8
|
-
command: string;
|
|
9
|
-
describe: string;
|
|
10
|
-
builder: (yargs: Argv) => Argv<{
|
|
11
|
-
sitekey: string;
|
|
12
|
-
} & {
|
|
13
|
-
tier: Tier;
|
|
14
|
-
} & {
|
|
15
|
-
url: string;
|
|
16
|
-
} & {
|
|
17
|
-
captcha_type: string | undefined;
|
|
18
|
-
} & {
|
|
19
|
-
frictionless_threshold: number | undefined;
|
|
20
|
-
} & {
|
|
21
|
-
domains: (string | number)[] | undefined;
|
|
22
|
-
} & {
|
|
23
|
-
pow_difficulty: number | undefined;
|
|
24
|
-
} & {
|
|
25
|
-
image_threshold: number | undefined;
|
|
26
|
-
}>;
|
|
27
|
-
handler: (argv: ArgumentsCamelCase) => Promise<void>;
|
|
28
|
-
middlewares: ((argv: ArgumentsCamelCase) => {
|
|
29
|
-
sitekey: string;
|
|
30
|
-
})[];
|
|
31
|
-
};
|
|
32
|
-
export default _default;
|
|
33
|
-
//# sourceMappingURL=siteKeyRegisterApi.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"siteKeyRegisterApi.d.ts","sourceRoot":"","sources":["../../src/commands/siteKeyRegisterApi.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,MAAM,EAAa,MAAM,iBAAiB,CAAC;AAenE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;A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,EACL,OAAO,EACP,YAAY,EACZ,sBAAsB,EACtB,GAAG,EACH,OAAO,EACP,cAAc,EACd,eAAe,GACf,GAAG,iCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBAClD,MAAM,GAAG,GAAG,IAAI,WAAW,CAAC,GAAa,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;gBACzD,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC;gBAClD,MAAM,SAAS,GAAG,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;gBACxD,MAAM,GAAG,CAAC,eAAe,CACxB,OAAiB,EACjB,IAAI,CAAC,IAAY,EACjB;oBACC,WAAW,EAAE,eAAe,CAAC,KAAK,CAAC,YAAY,CAAC;oBAChD,qBAAqB,EAAE,sBAAgC;oBACvD,OAAO,EAAE,OAAO,IAAI,EAAE;oBACtB,aAAa,EAAE,cAAwB;oBACvC,cAAc,EAAE,eAAyB;iBACzC,EACD,SAAS,EACT,SAAS,CACT,CAAC;gBACF,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;oBAClB,IAAI,EAAE,EAAE,OAAO,EAAE;oBACjB,GAAG,EAAE,qBAAqB;iBAC1B,CAAC,CAAC,CAAC;YACL,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACd,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;oBACnB,GAAG;oBACH,GAAG,EAAE,4BAA4B;iBACjC,CAAC,CAAC,CAAC;YACL,CAAC;QACF,CAAC;QACD,WAAW,EAAE,CAAC,eAAe,CAAC;KAC9B,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type Logger } from "@prosopo/common";
|
|
2
|
-
import type { KeyringPair } from "@prosopo/types";
|
|
3
|
-
import type { ProsopoConfigOutput } from "@prosopo/types";
|
|
4
|
-
declare const _default: (pair: KeyringPair, config: ProsopoConfigOutput, cmdArgs?: {
|
|
5
|
-
logger?: Logger;
|
|
6
|
-
}) => {
|
|
7
|
-
command: string;
|
|
8
|
-
describe: string;
|
|
9
|
-
handler: () => Promise<void>;
|
|
10
|
-
middlewares: never[];
|
|
11
|
-
};
|
|
12
|
-
export default _default;
|
|
13
|
-
//# sourceMappingURL=storeCaptchasExternally.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storeCaptchasExternally.d.ts","sourceRoot":"","sources":["../../src/commands/storeCaptchasExternally.ts"],"names":[],"mappings":"AAcA,OAAO,EAAY,KAAK,MAAM,EAAa,MAAM,iBAAiB,CAAC;AAGnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;+BAGnD,WAAW,UACT,mBAAmB,YACjB;IAAE,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE;;;;;;AAH9B,wBA2BE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storeCaptchasExternally.js","sourceRoot":"","sources":["../../src/commands/storeCaptchasExternally.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,QAAQ,EAAe,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAI1C,eAAe,CACd,IAAiB,EACjB,MAA2B,EAC3B,OAA6B,EAC5B,EAAE;IACH,MAAM,MAAM,GACX,OAAO,EAAE,MAAM,IAAI,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;IAExE,OAAO;QACN,OAAO,EAAE,gBAAgB;QACzB,QAAQ,EAAE,uDAAuD;QACjE,OAAO,EAAE,KAAK,IAAI,EAAE;YACnB,IAAI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