@ledgerhq/vault-cli 1.73.2 → 2.0.0
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/.turbo/turbo-build.log +16 -2
- package/CHANGELOG.md +64 -0
- package/__mocks__/@ledgerhq/vault-common.ts +1 -0
- package/bin/index.js +5615 -15
- package/bin/index.js.map +1 -1
- package/bin/index.mjs +5621 -0
- package/bin/index.mjs.map +1 -0
- package/package.json +6 -7
- package/tsup.config.ts +10 -0
- package/bin/__patchGateOptionsWithEnvVariables.d.ts +0 -4
- package/bin/__patchGateOptionsWithEnvVariables.d.ts.map +0 -1
- package/bin/__patchGateOptionsWithEnvVariables.js +0 -38
- package/bin/__patchGateOptionsWithEnvVariables.js.map +0 -1
- package/bin/__tests__/apdu.test.d.ts +0 -2
- package/bin/__tests__/apdu.test.d.ts.map +0 -1
- package/bin/__tests__/apdu.test.js +0 -33
- package/bin/__tests__/apdu.test.js.map +0 -1
- package/bin/__tests__/approve.test.d.ts +0 -2
- package/bin/__tests__/approve.test.d.ts.map +0 -1
- package/bin/__tests__/approve.test.js +0 -159
- package/bin/__tests__/approve.test.js.map +0 -1
- package/bin/__tests__/backupCompartment.test.d.ts +0 -2
- package/bin/__tests__/backupCompartment.test.d.ts.map +0 -1
- package/bin/__tests__/backupCompartment.test.js +0 -88
- package/bin/__tests__/backupCompartment.test.js.map +0 -1
- package/bin/__tests__/bake.test.d.ts +0 -2
- package/bin/__tests__/bake.test.d.ts.map +0 -1
- package/bin/__tests__/bake.test.js +0 -175
- package/bin/__tests__/bake.test.js.map +0 -1
- package/bin/__tests__/cli.test.d.ts +0 -2
- package/bin/__tests__/cli.test.d.ts.map +0 -1
- package/bin/__tests__/cli.test.js +0 -222
- package/bin/__tests__/cli.test.js.map +0 -1
- package/bin/__tests__/configcat.test.d.ts +0 -2
- package/bin/__tests__/configcat.test.d.ts.map +0 -1
- package/bin/__tests__/configcat.test.js +0 -100
- package/bin/__tests__/configcat.test.js.map +0 -1
- package/bin/__tests__/create.test.d.ts +0 -2
- package/bin/__tests__/create.test.d.ts.map +0 -1
- package/bin/__tests__/create.test.js +0 -264
- package/bin/__tests__/create.test.js.map +0 -1
- package/bin/__tests__/deploy.test.d.ts +0 -2
- package/bin/__tests__/deploy.test.d.ts.map +0 -1
- package/bin/__tests__/deploy.test.js +0 -95
- package/bin/__tests__/deploy.test.js.map +0 -1
- package/bin/__tests__/destroy.test.d.ts +0 -2
- package/bin/__tests__/destroy.test.d.ts.map +0 -1
- package/bin/__tests__/destroy.test.js +0 -44
- package/bin/__tests__/destroy.test.js.map +0 -1
- package/bin/__tests__/drain.test.d.ts +0 -2
- package/bin/__tests__/drain.test.d.ts.map +0 -1
- package/bin/__tests__/drain.test.js +0 -35
- package/bin/__tests__/drain.test.js.map +0 -1
- package/bin/__tests__/faucet.test.d.ts +0 -2
- package/bin/__tests__/faucet.test.d.ts.map +0 -1
- package/bin/__tests__/faucet.test.js +0 -31
- package/bin/__tests__/faucet.test.js.map +0 -1
- package/bin/__tests__/fetch.test.d.ts +0 -2
- package/bin/__tests__/fetch.test.d.ts.map +0 -1
- package/bin/__tests__/fetch.test.js +0 -54
- package/bin/__tests__/fetch.test.js.map +0 -1
- package/bin/__tests__/genKeys.test.d.ts +0 -2
- package/bin/__tests__/genKeys.test.d.ts.map +0 -1
- package/bin/__tests__/genKeys.test.js +0 -17
- package/bin/__tests__/genKeys.test.js.map +0 -1
- package/bin/__tests__/get.test.d.ts +0 -2
- package/bin/__tests__/get.test.d.ts.map +0 -1
- package/bin/__tests__/get.test.js +0 -133
- package/bin/__tests__/get.test.js.map +0 -1
- package/bin/__tests__/getAPIUserTokens.test.d.ts +0 -2
- package/bin/__tests__/getAPIUserTokens.test.d.ts.map +0 -1
- package/bin/__tests__/getAPIUserTokens.test.js +0 -69
- package/bin/__tests__/getAPIUserTokens.test.js.map +0 -1
- package/bin/__tests__/getAuthToken.test.d.ts +0 -2
- package/bin/__tests__/getAuthToken.test.d.ts.map +0 -1
- package/bin/__tests__/getAuthToken.test.js +0 -31
- package/bin/__tests__/getAuthToken.test.js.map +0 -1
- package/bin/__tests__/getCertFromPFX.test.d.ts +0 -2
- package/bin/__tests__/getCertFromPFX.test.d.ts.map +0 -1
- package/bin/__tests__/getCertFromPFX.test.js +0 -54
- package/bin/__tests__/getCertFromPFX.test.js.map +0 -1
- package/bin/__tests__/getMVInstances.test.d.ts +0 -2
- package/bin/__tests__/getMVInstances.test.d.ts.map +0 -1
- package/bin/__tests__/getMVInstances.test.js +0 -72
- package/bin/__tests__/getMVInstances.test.js.map +0 -1
- package/bin/__tests__/getSeeds.test.d.ts +0 -2
- package/bin/__tests__/getSeeds.test.d.ts.map +0 -1
- package/bin/__tests__/getSeeds.test.js +0 -20
- package/bin/__tests__/getSeeds.test.js.map +0 -1
- package/bin/__tests__/getUserID.test.d.ts +0 -2
- package/bin/__tests__/getUserID.test.d.ts.map +0 -1
- package/bin/__tests__/getUserID.test.js +0 -31
- package/bin/__tests__/getUserID.test.js.map +0 -1
- package/bin/__tests__/initCompartment.test.d.ts +0 -2
- package/bin/__tests__/initCompartment.test.d.ts.map +0 -1
- package/bin/__tests__/initCompartment.test.js +0 -86
- package/bin/__tests__/initCompartment.test.js.map +0 -1
- package/bin/__tests__/onboard.test.d.ts +0 -2
- package/bin/__tests__/onboard.test.d.ts.map +0 -1
- package/bin/__tests__/onboard.test.js +0 -63
- package/bin/__tests__/onboard.test.js.map +0 -1
- package/bin/__tests__/pathGateOptionsWithEnvVariables.test.d.ts +0 -2
- package/bin/__tests__/pathGateOptionsWithEnvVariables.test.d.ts.map +0 -1
- package/bin/__tests__/pathGateOptionsWithEnvVariables.test.js +0 -34
- package/bin/__tests__/pathGateOptionsWithEnvVariables.test.js.map +0 -1
- package/bin/__tests__/pledge.test.d.ts +0 -2
- package/bin/__tests__/pledge.test.d.ts.map +0 -1
- package/bin/__tests__/pledge.test.js +0 -110
- package/bin/__tests__/pledge.test.js.map +0 -1
- package/bin/__tests__/proxy.test.d.ts +0 -2
- package/bin/__tests__/proxy.test.d.ts.map +0 -1
- package/bin/__tests__/proxy.test.js +0 -22
- package/bin/__tests__/proxy.test.js.map +0 -1
- package/bin/__tests__/receive.test.d.ts +0 -2
- package/bin/__tests__/receive.test.d.ts.map +0 -1
- package/bin/__tests__/receive.test.js +0 -85
- package/bin/__tests__/receive.test.js.map +0 -1
- package/bin/__tests__/recipe.test.d.ts +0 -2
- package/bin/__tests__/recipe.test.d.ts.map +0 -1
- package/bin/__tests__/recipe.test.js +0 -41
- package/bin/__tests__/recipe.test.js.map +0 -1
- package/bin/__tests__/reject.test.d.ts +0 -2
- package/bin/__tests__/reject.test.d.ts.map +0 -1
- package/bin/__tests__/reject.test.js +0 -214
- package/bin/__tests__/reject.test.js.map +0 -1
- package/bin/__tests__/resetCompartment.test.d.ts +0 -2
- package/bin/__tests__/resetCompartment.test.d.ts.map +0 -1
- package/bin/__tests__/resetCompartment.test.js +0 -88
- package/bin/__tests__/resetCompartment.test.js.map +0 -1
- package/bin/__tests__/restoreCompartment.test.d.ts +0 -2
- package/bin/__tests__/restoreCompartment.test.d.ts.map +0 -1
- package/bin/__tests__/restoreCompartment.test.js +0 -95
- package/bin/__tests__/restoreCompartment.test.js.map +0 -1
- package/bin/__tests__/revoke.test.d.ts +0 -2
- package/bin/__tests__/revoke.test.d.ts.map +0 -1
- package/bin/__tests__/revoke.test.js +0 -62
- package/bin/__tests__/revoke.test.js.map +0 -1
- package/bin/__tests__/send.test.d.ts +0 -2
- package/bin/__tests__/send.test.d.ts.map +0 -1
- package/bin/__tests__/send.test.js +0 -216
- package/bin/__tests__/send.test.js.map +0 -1
- package/bin/__tests__/setQuorum.test.d.ts +0 -2
- package/bin/__tests__/setQuorum.test.d.ts.map +0 -1
- package/bin/__tests__/setQuorum.test.js +0 -32
- package/bin/__tests__/setQuorum.test.js.map +0 -1
- package/bin/__tests__/settle.test.d.ts +0 -2
- package/bin/__tests__/settle.test.d.ts.map +0 -1
- package/bin/__tests__/settle.test.js +0 -123
- package/bin/__tests__/settle.test.js.map +0 -1
- package/bin/__tests__/test-utils.d.ts +0 -19
- package/bin/__tests__/test-utils.d.ts.map +0 -1
- package/bin/__tests__/test-utils.js +0 -39
- package/bin/__tests__/test-utils.js.map +0 -1
- package/bin/__tests__/upgrade.test.d.ts +0 -2
- package/bin/__tests__/upgrade.test.d.ts.map +0 -1
- package/bin/__tests__/upgrade.test.js +0 -57
- package/bin/__tests__/upgrade.test.js.map +0 -1
- package/bin/__tests__/utils.test.d.ts +0 -2
- package/bin/__tests__/utils.test.d.ts.map +0 -1
- package/bin/__tests__/utils.test.js +0 -40
- package/bin/__tests__/utils.test.js.map +0 -1
- package/bin/__tests__/wipe.test.d.ts +0 -2
- package/bin/__tests__/wipe.test.d.ts.map +0 -1
- package/bin/__tests__/wipe.test.js +0 -92
- package/bin/__tests__/wipe.test.js.map +0 -1
- package/bin/cli.d.ts +0 -4
- package/bin/cli.d.ts.map +0 -1
- package/bin/cli.js +0 -152
- package/bin/cli.js.map +0 -1
- package/bin/cliOptions.d.ts +0 -8
- package/bin/cliOptions.d.ts.map +0 -1
- package/bin/cliOptions.js +0 -11
- package/bin/cliOptions.js.map +0 -1
- package/bin/commands/apdu.d.ts +0 -14
- package/bin/commands/apdu.d.ts.map +0 -1
- package/bin/commands/apdu.js +0 -35
- package/bin/commands/apdu.js.map +0 -1
- package/bin/commands/approve.d.ts +0 -34
- package/bin/commands/approve.d.ts.map +0 -1
- package/bin/commands/approve.js +0 -150
- package/bin/commands/approve.js.map +0 -1
- package/bin/commands/backupCompartment.d.ts +0 -31
- package/bin/commands/backupCompartment.d.ts.map +0 -1
- package/bin/commands/backupCompartment.js +0 -70
- package/bin/commands/backupCompartment.js.map +0 -1
- package/bin/commands/bake.d.ts +0 -73
- package/bin/commands/bake.d.ts.map +0 -1
- package/bin/commands/bake.js +0 -232
- package/bin/commands/bake.js.map +0 -1
- package/bin/commands/bridge.d.ts +0 -22
- package/bin/commands/bridge.d.ts.map +0 -1
- package/bin/commands/bridge.js +0 -137
- package/bin/commands/bridge.js.map +0 -1
- package/bin/commands/configcat.d.ts +0 -78
- package/bin/commands/configcat.d.ts.map +0 -1
- package/bin/commands/configcat.js +0 -208
- package/bin/commands/configcat.js.map +0 -1
- package/bin/commands/create.d.ts +0 -207
- package/bin/commands/create.d.ts.map +0 -1
- package/bin/commands/create.js +0 -554
- package/bin/commands/create.js.map +0 -1
- package/bin/commands/deploy.d.ts +0 -60
- package/bin/commands/deploy.d.ts.map +0 -1
- package/bin/commands/deploy.js +0 -106
- package/bin/commands/deploy.js.map +0 -1
- package/bin/commands/destroy.d.ts +0 -36
- package/bin/commands/destroy.d.ts.map +0 -1
- package/bin/commands/destroy.js +0 -58
- package/bin/commands/destroy.js.map +0 -1
- package/bin/commands/drain.d.ts +0 -26
- package/bin/commands/drain.d.ts.map +0 -1
- package/bin/commands/drain.js +0 -64
- package/bin/commands/drain.js.map +0 -1
- package/bin/commands/faucet.d.ts +0 -31
- package/bin/commands/faucet.d.ts.map +0 -1
- package/bin/commands/faucet.js +0 -68
- package/bin/commands/faucet.js.map +0 -1
- package/bin/commands/fetch.d.ts +0 -35
- package/bin/commands/fetch.d.ts.map +0 -1
- package/bin/commands/fetch.js +0 -83
- package/bin/commands/fetch.js.map +0 -1
- package/bin/commands/genKeys.d.ts +0 -14
- package/bin/commands/genKeys.d.ts.map +0 -1
- package/bin/commands/genKeys.js +0 -19
- package/bin/commands/genKeys.js.map +0 -1
- package/bin/commands/get.d.ts +0 -56
- package/bin/commands/get.d.ts.map +0 -1
- package/bin/commands/get.js +0 -211
- package/bin/commands/get.js.map +0 -1
- package/bin/commands/getAPIUserTokens.d.ts +0 -39
- package/bin/commands/getAPIUserTokens.d.ts.map +0 -1
- package/bin/commands/getAPIUserTokens.js +0 -63
- package/bin/commands/getAPIUserTokens.js.map +0 -1
- package/bin/commands/getAuthToken.d.ts +0 -26
- package/bin/commands/getAuthToken.d.ts.map +0 -1
- package/bin/commands/getAuthToken.js +0 -42
- package/bin/commands/getAuthToken.js.map +0 -1
- package/bin/commands/getMVInstances.d.ts +0 -33
- package/bin/commands/getMVInstances.d.ts.map +0 -1
- package/bin/commands/getMVInstances.js +0 -71
- package/bin/commands/getMVInstances.js.map +0 -1
- package/bin/commands/getSeeds.d.ts +0 -19
- package/bin/commands/getSeeds.d.ts.map +0 -1
- package/bin/commands/getSeeds.js +0 -95
- package/bin/commands/getSeeds.js.map +0 -1
- package/bin/commands/getUserID.d.ts +0 -27
- package/bin/commands/getUserID.d.ts.map +0 -1
- package/bin/commands/getUserID.js +0 -32
- package/bin/commands/getUserID.js.map +0 -1
- package/bin/commands/index.d.ts +0 -892
- package/bin/commands/index.d.ts.map +0 -1
- package/bin/commands/index.js +0 -111
- package/bin/commands/index.js.map +0 -1
- package/bin/commands/initCompartment.d.ts +0 -22
- package/bin/commands/initCompartment.d.ts.map +0 -1
- package/bin/commands/initCompartment.js +0 -62
- package/bin/commands/initCompartment.js.map +0 -1
- package/bin/commands/listen.d.ts +0 -31
- package/bin/commands/listen.d.ts.map +0 -1
- package/bin/commands/listen.js +0 -56
- package/bin/commands/listen.js.map +0 -1
- package/bin/commands/onboard.d.ts +0 -30
- package/bin/commands/onboard.d.ts.map +0 -1
- package/bin/commands/onboard.js +0 -68
- package/bin/commands/onboard.js.map +0 -1
- package/bin/commands/pledge.d.ts +0 -38
- package/bin/commands/pledge.d.ts.map +0 -1
- package/bin/commands/pledge.js +0 -89
- package/bin/commands/pledge.js.map +0 -1
- package/bin/commands/proxy.d.ts +0 -17
- package/bin/commands/proxy.d.ts.map +0 -1
- package/bin/commands/proxy.js +0 -227
- package/bin/commands/proxy.js.map +0 -1
- package/bin/commands/receive.d.ts +0 -40
- package/bin/commands/receive.d.ts.map +0 -1
- package/bin/commands/receive.js +0 -60
- package/bin/commands/receive.js.map +0 -1
- package/bin/commands/recipe.d.ts +0 -29
- package/bin/commands/recipe.d.ts.map +0 -1
- package/bin/commands/recipe.js +0 -62
- package/bin/commands/recipe.js.map +0 -1
- package/bin/commands/reject.d.ts +0 -49
- package/bin/commands/reject.d.ts.map +0 -1
- package/bin/commands/reject.js +0 -176
- package/bin/commands/reject.js.map +0 -1
- package/bin/commands/resetCompartment.d.ts +0 -31
- package/bin/commands/resetCompartment.d.ts.map +0 -1
- package/bin/commands/resetCompartment.js +0 -71
- package/bin/commands/resetCompartment.js.map +0 -1
- package/bin/commands/restoreCompartment.d.ts +0 -39
- package/bin/commands/restoreCompartment.d.ts.map +0 -1
- package/bin/commands/restoreCompartment.js +0 -80
- package/bin/commands/restoreCompartment.js.map +0 -1
- package/bin/commands/revoke.d.ts +0 -40
- package/bin/commands/revoke.d.ts.map +0 -1
- package/bin/commands/revoke.js +0 -80
- package/bin/commands/revoke.js.map +0 -1
- package/bin/commands/send.d.ts +0 -54
- package/bin/commands/send.d.ts.map +0 -1
- package/bin/commands/send.js +0 -170
- package/bin/commands/send.js.map +0 -1
- package/bin/commands/setQuorum.d.ts +0 -30
- package/bin/commands/setQuorum.d.ts.map +0 -1
- package/bin/commands/setQuorum.js +0 -44
- package/bin/commands/setQuorum.js.map +0 -1
- package/bin/commands/settle.d.ts +0 -43
- package/bin/commands/settle.d.ts.map +0 -1
- package/bin/commands/settle.js +0 -92
- package/bin/commands/settle.js.map +0 -1
- package/bin/commands/upgrade.d.ts +0 -44
- package/bin/commands/upgrade.d.ts.map +0 -1
- package/bin/commands/upgrade.js +0 -68
- package/bin/commands/upgrade.js.map +0 -1
- package/bin/commands/wipe.d.ts +0 -77
- package/bin/commands/wipe.d.ts.map +0 -1
- package/bin/commands/wipe.js +0 -86
- package/bin/commands/wipe.js.map +0 -1
- package/bin/deviceOption.d.ts +0 -9
- package/bin/deviceOption.d.ts.map +0 -1
- package/bin/deviceOption.js +0 -10
- package/bin/deviceOption.js.map +0 -1
- package/bin/gateOptions.d.ts +0 -39
- package/bin/gateOptions.d.ts.map +0 -1
- package/bin/gateOptions.js +0 -73
- package/bin/gateOptions.js.map +0 -1
- package/bin/getCertFromPFX.d.ts +0 -7
- package/bin/getCertFromPFX.d.ts.map +0 -1
- package/bin/getCertFromPFX.js +0 -43
- package/bin/getCertFromPFX.js.map +0 -1
- package/bin/index.d.ts +0 -3
- package/bin/index.d.ts.map +0 -1
- package/bin/lamOptions.d.ts +0 -15
- package/bin/lamOptions.d.ts.map +0 -1
- package/bin/lamOptions.js +0 -17
- package/bin/lamOptions.js.map +0 -1
- package/bin/logger.d.ts +0 -3
- package/bin/logger.d.ts.map +0 -1
- package/bin/logger.js +0 -5
- package/bin/logger.js.map +0 -1
- package/bin/manifests/beatles.json +0 -46
- package/bin/manifests/empty.json +0 -1
- package/bin/manifests/erc20.json +0 -32
- package/bin/manifests/message-signing.json +0 -36
- package/bin/manifests/mobile.json +0 -43
- package/bin/manifests/polkadot-staking.json +0 -152
- package/bin/manifests/polkadot.json +0 -37
- package/bin/manifests/rawsigning.json +0 -39
- package/bin/manifests/ripple.json +0 -37
- package/bin/manifests/sci.json +0 -146
- package/bin/manifests/solana-dev.json +0 -99
- package/bin/manifests/solana-staking.json +0 -44
- package/bin/manifests/solana.json +0 -30
- package/bin/manifests/stellar.json +0 -37
- package/bin/manifests/tezos.json +0 -51
- package/bin/manifests/tradelink-hsm.json +0 -429
- package/bin/manifests/tradelink.json +0 -361
- package/bin/miscOptions.d.ts +0 -20
- package/bin/miscOptions.d.ts.map +0 -1
- package/bin/miscOptions.js +0 -17
- package/bin/miscOptions.js.map +0 -1
- package/bin/registerTransports.d.ts +0 -2
- package/bin/registerTransports.d.ts.map +0 -1
- package/bin/registerTransports.js +0 -18
- package/bin/registerTransports.js.map +0 -1
- package/bin/types.d.ts +0 -23
- package/bin/types.d.ts.map +0 -1
- package/bin/types.js +0 -3
- package/bin/types.js.map +0 -1
- package/bin/utils.d.ts +0 -22
- package/bin/utils.d.ts.map +0 -1
- package/bin/utils.js +0 -156
- package/bin/utils.js.map +0 -1
package/bin/commands/create.js
DELETED
|
@@ -1,554 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.createEntity = void 0;
|
|
16
|
-
const vault_common_1 = require("@ledgerhq/vault-common");
|
|
17
|
-
const cliOptions_1 = __importDefault(require("../cliOptions"));
|
|
18
|
-
const gateOptions_1 = __importDefault(require("../gateOptions"));
|
|
19
|
-
const lamOptions_1 = __importDefault(require("../lamOptions"));
|
|
20
|
-
const logger_1 = __importDefault(require("../logger"));
|
|
21
|
-
const miscOptions_1 = require("../miscOptions");
|
|
22
|
-
const get_1 = require("./get");
|
|
23
|
-
const entityTypeByCommand = {
|
|
24
|
-
user: "USER",
|
|
25
|
-
group: "GROUP",
|
|
26
|
-
whitelist: "WHITELIST",
|
|
27
|
-
account: "ACCOUNT",
|
|
28
|
-
exchange: "EXCHANGE",
|
|
29
|
-
entity: "VAULT_ENTITY",
|
|
30
|
-
policy: "POLICY",
|
|
31
|
-
};
|
|
32
|
-
const createEntity = (opts) => __awaiter(void 0, void 0, void 0, function* () {
|
|
33
|
-
const poolOptions = {
|
|
34
|
-
salt: opts.salt,
|
|
35
|
-
gate: opts.gate,
|
|
36
|
-
apiGateway: opts.apiGateway,
|
|
37
|
-
transport: opts.transport,
|
|
38
|
-
lamURL: opts.lam,
|
|
39
|
-
lamAPIKey: opts.lamAPIKey,
|
|
40
|
-
deviceAPIURL: opts.deviceAPI,
|
|
41
|
-
psdModel: opts.psdModel,
|
|
42
|
-
};
|
|
43
|
-
const { networkDelay, noApproval, twoStepsRequest } = opts;
|
|
44
|
-
const pool = (0, vault_common_1.createDevicesPool)(Object.assign(Object.assign({}, poolOptions), { lamURL: opts.lam, networkDelay }));
|
|
45
|
-
let manifest = null;
|
|
46
|
-
if (opts.command === "group") {
|
|
47
|
-
const { name, users, description } = opts;
|
|
48
|
-
manifest = {
|
|
49
|
-
groups: [
|
|
50
|
-
{
|
|
51
|
-
name,
|
|
52
|
-
users: users
|
|
53
|
-
.split(",")
|
|
54
|
-
.map((u) => (parseInt(u) == u ? Number(u) : u)),
|
|
55
|
-
description,
|
|
56
|
-
status: noApproval ? "PENDING" : undefined,
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
if (opts.command === "user") {
|
|
62
|
-
const { device, role, name, viewAll, publicKey } = opts;
|
|
63
|
-
const users = {};
|
|
64
|
-
manifest = {};
|
|
65
|
-
if (device === "api") {
|
|
66
|
-
Object.assign(users, {
|
|
67
|
-
apiV2: [
|
|
68
|
-
Object.assign({ name,
|
|
69
|
-
publicKey, role: role || "operator" }, (viewAll ? { viewAll } : {})),
|
|
70
|
-
],
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
else if (device === "lam") {
|
|
74
|
-
Object.assign(users, {
|
|
75
|
-
api: [viewAll ? { name, viewAll } : name],
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
if (isNaN(device)) {
|
|
80
|
-
throw new Error(`Invalid value "${device}" for device, must be either "lam", "api" or a number`);
|
|
81
|
-
}
|
|
82
|
-
if (!role) {
|
|
83
|
-
throw new Error("`role` option is required when creating regular (non-API) user");
|
|
84
|
-
}
|
|
85
|
-
if (["admin", "operator"].indexOf(role) === -1) {
|
|
86
|
-
throw new Error(`invalid role \`${role}\``);
|
|
87
|
-
}
|
|
88
|
-
const key = `${role}s`;
|
|
89
|
-
Object.assign(users, { [key]: [Number(device)] });
|
|
90
|
-
Object.assign(manifest, { customUsernames: { [device]: name } });
|
|
91
|
-
}
|
|
92
|
-
Object.assign(manifest, { users });
|
|
93
|
-
}
|
|
94
|
-
if (opts.command === "whitelist") {
|
|
95
|
-
const { name, addresses, type } = opts;
|
|
96
|
-
manifest = {
|
|
97
|
-
whitelists: [
|
|
98
|
-
{
|
|
99
|
-
name,
|
|
100
|
-
type,
|
|
101
|
-
addresses: addresses.map((a) => {
|
|
102
|
-
const s = a.split("|");
|
|
103
|
-
const result = {
|
|
104
|
-
currency: s[0] || "",
|
|
105
|
-
name: s[1] || "",
|
|
106
|
-
address: s[2] || "",
|
|
107
|
-
};
|
|
108
|
-
if (s.length === 4) {
|
|
109
|
-
const destination_tags = JSON.parse(s[3]);
|
|
110
|
-
return Object.assign(Object.assign({}, result), { destination_tags });
|
|
111
|
-
}
|
|
112
|
-
if (s.length !== 3)
|
|
113
|
-
throw new Error("invalid address format, should be currency|name|address");
|
|
114
|
-
return result;
|
|
115
|
-
}),
|
|
116
|
-
status: noApproval ? "PENDING" : undefined,
|
|
117
|
-
},
|
|
118
|
-
],
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
if (opts.command === "account") {
|
|
122
|
-
let rules;
|
|
123
|
-
if (opts.rules) {
|
|
124
|
-
try {
|
|
125
|
-
rules = JSON.parse(opts.rules);
|
|
126
|
-
}
|
|
127
|
-
catch (_a) {
|
|
128
|
-
throw new Error("Invalid rules given");
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
const manifestAccount = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ name: opts.name, status: noApproval ? "PENDING" : undefined }, (rules ? { rules } : {})), (opts.index !== undefined ? { index: opts.index } : {})), (opts.contractAddress
|
|
132
|
-
? Object.assign({ contractAddress: opts.contractAddress }, (opts.parentAccount
|
|
133
|
-
? {
|
|
134
|
-
parentAccount: opts.parentAccount,
|
|
135
|
-
}
|
|
136
|
-
: {})) : opts.currency
|
|
137
|
-
? Object.assign({ currency: opts.currency }, (opts.derivationMode ? { derivationMode: opts.derivationMode } : {})) : (() => {
|
|
138
|
-
throw new Error(`No currency or contractAddress in account`);
|
|
139
|
-
})())), ("xpub" in opts || "publicKey" in opts || "chainCode" in opts
|
|
140
|
-
? (() => {
|
|
141
|
-
if (!opts.xpub || !opts.publicKey || !opts.chainCode)
|
|
142
|
-
throw new Error("xpub / publicKey / chainCode must be defined together in order to work");
|
|
143
|
-
return {
|
|
144
|
-
readOnly: {
|
|
145
|
-
xpub: opts.xpub,
|
|
146
|
-
publicKey: opts.publicKey,
|
|
147
|
-
chainCode: opts.chainCode,
|
|
148
|
-
},
|
|
149
|
-
};
|
|
150
|
-
})()
|
|
151
|
-
: {})), (opts.accountType ? { accountType: opts.accountType } : {})), (opts.enableNFTGallery ? { config: { nftGallery: true } } : {}));
|
|
152
|
-
manifest = {
|
|
153
|
-
accounts: [manifestAccount],
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
if (opts.command === "entity") {
|
|
157
|
-
const { name, accounts } = opts;
|
|
158
|
-
manifest = {
|
|
159
|
-
entities: [
|
|
160
|
-
{
|
|
161
|
-
name,
|
|
162
|
-
accounts: accounts.split(","),
|
|
163
|
-
status: noApproval ? "PENDING" : undefined,
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
if (opts.command === "exchange") {
|
|
169
|
-
const { name, apiKey, apiSecret, platform, rules: _rules } = opts;
|
|
170
|
-
const rules = _rules ? JSON.parse(_rules) : undefined;
|
|
171
|
-
manifest = {
|
|
172
|
-
exchanges: [
|
|
173
|
-
{
|
|
174
|
-
name,
|
|
175
|
-
platform,
|
|
176
|
-
status: noApproval ? "PENDING" : undefined,
|
|
177
|
-
rules,
|
|
178
|
-
configuration: {
|
|
179
|
-
apiKey,
|
|
180
|
-
apiSecret,
|
|
181
|
-
},
|
|
182
|
-
},
|
|
183
|
-
],
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
if (opts.command === "policy") {
|
|
187
|
-
const { name, currency, rules: _rules } = opts;
|
|
188
|
-
const rules = JSON.parse(_rules);
|
|
189
|
-
manifest = {
|
|
190
|
-
policies: [
|
|
191
|
-
{
|
|
192
|
-
name,
|
|
193
|
-
currency,
|
|
194
|
-
rules,
|
|
195
|
-
},
|
|
196
|
-
],
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
if (!manifest) {
|
|
200
|
-
throw new Error("Nothing to bake");
|
|
201
|
-
}
|
|
202
|
-
yield (0, vault_common_1.bakeManifest)(manifest, pool, {
|
|
203
|
-
noApproval,
|
|
204
|
-
twoStepsRequest,
|
|
205
|
-
waitForActive: "waitForActive" in opts ? opts.waitForActive : undefined,
|
|
206
|
-
logger: opts.format !== "json" ? logger_1.default : undefined,
|
|
207
|
-
});
|
|
208
|
-
yield (0, get_1.queryEntityWithPoolByName)(Object.assign(Object.assign({}, poolOptions), { format: opts.format }), opts.name, entityTypeByCommand[opts.command]);
|
|
209
|
-
});
|
|
210
|
-
exports.createEntity = createEntity;
|
|
211
|
-
exports.default = {
|
|
212
|
-
command: "create",
|
|
213
|
-
description: "Create users, groups, accounts, entities...",
|
|
214
|
-
options: [
|
|
215
|
-
...gateOptions_1.default,
|
|
216
|
-
...lamOptions_1.default,
|
|
217
|
-
...cliOptions_1.default,
|
|
218
|
-
{
|
|
219
|
-
name: "noApproval",
|
|
220
|
-
type: Boolean,
|
|
221
|
-
description: "Create the request without approving it",
|
|
222
|
-
},
|
|
223
|
-
],
|
|
224
|
-
subCommands: [
|
|
225
|
-
{
|
|
226
|
-
command: "user",
|
|
227
|
-
description: "Create a user of the given role",
|
|
228
|
-
help: [
|
|
229
|
-
{
|
|
230
|
-
header: "Examples",
|
|
231
|
-
content: [
|
|
232
|
-
"{blue # Create a regular user:}",
|
|
233
|
-
"{grey $} ledger-vault create user {bold --name} Bob {bold --role} admin {bold --device} 28",
|
|
234
|
-
"",
|
|
235
|
-
"{blue # Create a LAM user:}",
|
|
236
|
-
"{grey $} ledger-vault create user {bold --name} BobLAM {bold --device} lam",
|
|
237
|
-
"",
|
|
238
|
-
"{blue # Create an API user:}",
|
|
239
|
-
"{grey $} ledger-vault create user {bold --name} BobAPI {bold --device} api {bold --publicKey} 04a7629e22eaeeccddf13349a0a88fd401d31e2275c53e4acb526f56510f80a5db82dd52d10c5720779c3d065eaca87c75e0cabbfd2cf9eddd3202d1563db97177",
|
|
240
|
-
],
|
|
241
|
-
},
|
|
242
|
-
],
|
|
243
|
-
options: [
|
|
244
|
-
{
|
|
245
|
-
name: "name",
|
|
246
|
-
type: String,
|
|
247
|
-
description: "User name",
|
|
248
|
-
required: true,
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
name: "role",
|
|
252
|
-
typeLabel: "{underline role}",
|
|
253
|
-
description: "One of: admin, operator",
|
|
254
|
-
type: String,
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
name: "device",
|
|
258
|
-
description: "'lam' for LAM user, 'api' for API user, or device index to generate seed",
|
|
259
|
-
default: 1,
|
|
260
|
-
type: String,
|
|
261
|
-
required: true,
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
name: "viewAll",
|
|
265
|
-
description: "User has view all rights",
|
|
266
|
-
default: false,
|
|
267
|
-
type: Boolean,
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
name: "publicKey",
|
|
271
|
-
description: "API user's secp256r1 public key",
|
|
272
|
-
type: String,
|
|
273
|
-
},
|
|
274
|
-
miscOptions_1.FORMAT_OPTION,
|
|
275
|
-
],
|
|
276
|
-
run: exports.createEntity,
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
command: "group",
|
|
280
|
-
description: "Create a group",
|
|
281
|
-
help: [
|
|
282
|
-
{
|
|
283
|
-
header: "Examples",
|
|
284
|
-
content: [
|
|
285
|
-
'{grey $} ledger-vault create group --name GroupA --users 11,12 --description "Some description here"',
|
|
286
|
-
],
|
|
287
|
-
},
|
|
288
|
-
],
|
|
289
|
-
options: [
|
|
290
|
-
{
|
|
291
|
-
name: "name",
|
|
292
|
-
type: String,
|
|
293
|
-
description: "Group name",
|
|
294
|
-
required: true,
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
name: "description",
|
|
298
|
-
description: "Group description",
|
|
299
|
-
type: String,
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
name: "users",
|
|
303
|
-
description: "List of users device index",
|
|
304
|
-
type: String,
|
|
305
|
-
required: true,
|
|
306
|
-
},
|
|
307
|
-
miscOptions_1.TWO_STEPS_REQUEST_OPTION,
|
|
308
|
-
miscOptions_1.FORMAT_OPTION,
|
|
309
|
-
],
|
|
310
|
-
run: exports.createEntity,
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
command: "account",
|
|
314
|
-
description: "Create an account",
|
|
315
|
-
help: [
|
|
316
|
-
{
|
|
317
|
-
header: "Examples",
|
|
318
|
-
content: [
|
|
319
|
-
"{grey $} ledger-vault create account {bold --name} btc1 {bold --currency} bitcoin",
|
|
320
|
-
"{grey $} ledger-vault create account {bold --name} lgc1 {bold --contractAddress} 0x9549E8A940062615ceE20C0420C98c25Ffa2b214 {bold --parentAccount} eth1",
|
|
321
|
-
],
|
|
322
|
-
},
|
|
323
|
-
],
|
|
324
|
-
options: [
|
|
325
|
-
{
|
|
326
|
-
name: "name",
|
|
327
|
-
type: String,
|
|
328
|
-
description: "Account name",
|
|
329
|
-
required: true,
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
name: "currency",
|
|
333
|
-
description: "Account currency",
|
|
334
|
-
type: String,
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
name: "accountType",
|
|
338
|
-
description: "Specify the account type (see Gate 'account_type')",
|
|
339
|
-
type: String,
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
name: "contractAddress",
|
|
343
|
-
description: "Account contract address",
|
|
344
|
-
type: String,
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
name: "parentAccount",
|
|
348
|
-
description: "Account parent",
|
|
349
|
-
type: String,
|
|
350
|
-
},
|
|
351
|
-
{
|
|
352
|
-
name: "derivationMode",
|
|
353
|
-
type: String,
|
|
354
|
-
description: "Derivation mode: can be '{magenta native_segwit}' (default) or '{magenta standard}' (legacy) (available only for: bitcoin, bitcoin_testnet)",
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
name: "index",
|
|
358
|
-
type: Number,
|
|
359
|
-
description: "Account index",
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
name: "rules",
|
|
363
|
-
type: String,
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
name: "xpub",
|
|
367
|
-
type: String,
|
|
368
|
-
description: "{yellow.bold read-only} Account xPub",
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
name: "address",
|
|
372
|
-
type: String,
|
|
373
|
-
description: "{yellow.bold read-only} Account EVM address",
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
name: "publicKey",
|
|
377
|
-
type: String,
|
|
378
|
-
description: "{yellow.bold read-only} Account public key",
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
name: "chainCode",
|
|
382
|
-
type: String,
|
|
383
|
-
description: "{yellow.bold read-only} Account chain-code",
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
name: "enableNFTGallery",
|
|
387
|
-
type: Boolean,
|
|
388
|
-
description: "If passed, enable NFT gallery for account",
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
name: "waitForActive",
|
|
392
|
-
type: Boolean,
|
|
393
|
-
description: "Wait for account status to be ACTIVE (synced) after creation",
|
|
394
|
-
},
|
|
395
|
-
miscOptions_1.TWO_STEPS_REQUEST_OPTION,
|
|
396
|
-
miscOptions_1.FORMAT_OPTION,
|
|
397
|
-
],
|
|
398
|
-
run: exports.createEntity,
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
command: "whitelist",
|
|
402
|
-
description: "Create a whitelist",
|
|
403
|
-
help: [
|
|
404
|
-
{
|
|
405
|
-
header: "Examples",
|
|
406
|
-
content: [
|
|
407
|
-
'{grey $} ledger-vault create whitelist {bold --name} whitelistname1 {bold --description} someDescription {bold --addresses} "bitcoin|btc_name|1F1tAa...." "dash|my_dash_name|XqHt831..." ',
|
|
408
|
-
],
|
|
409
|
-
},
|
|
410
|
-
],
|
|
411
|
-
options: [
|
|
412
|
-
{
|
|
413
|
-
name: "name",
|
|
414
|
-
type: String,
|
|
415
|
-
description: "Whitelist name",
|
|
416
|
-
required: true,
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
name: "description",
|
|
420
|
-
description: "Whitelist description",
|
|
421
|
-
type: String,
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
name: "type",
|
|
425
|
-
description: "Whitelist type (TRANSACTION|SMART_CONTRACT)",
|
|
426
|
-
type: String,
|
|
427
|
-
},
|
|
428
|
-
{
|
|
429
|
-
name: "addresses",
|
|
430
|
-
description: 'List of addresses with the "currency|name|address" "currency|name|address" ...',
|
|
431
|
-
type: String,
|
|
432
|
-
required: true,
|
|
433
|
-
multiple: true,
|
|
434
|
-
},
|
|
435
|
-
miscOptions_1.TWO_STEPS_REQUEST_OPTION,
|
|
436
|
-
miscOptions_1.FORMAT_OPTION,
|
|
437
|
-
],
|
|
438
|
-
run: exports.createEntity,
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
command: "entity",
|
|
442
|
-
description: "Create an entity",
|
|
443
|
-
help: [
|
|
444
|
-
{
|
|
445
|
-
header: "Examples",
|
|
446
|
-
content: [
|
|
447
|
-
`{grey $} ledger-vault create entity --name EntityA --accounts "BTC Testnet 1,ETH Ropsten 1"`,
|
|
448
|
-
],
|
|
449
|
-
},
|
|
450
|
-
],
|
|
451
|
-
options: [
|
|
452
|
-
{
|
|
453
|
-
name: "name",
|
|
454
|
-
type: String,
|
|
455
|
-
description: "Entity name",
|
|
456
|
-
required: true,
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
name: "accounts",
|
|
460
|
-
description: "List of accounts name, separated by a comma",
|
|
461
|
-
type: String,
|
|
462
|
-
required: true,
|
|
463
|
-
},
|
|
464
|
-
],
|
|
465
|
-
run: exports.createEntity,
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
command: "exchange",
|
|
469
|
-
description: "Import an exchange",
|
|
470
|
-
help: [
|
|
471
|
-
{
|
|
472
|
-
header: "Examples",
|
|
473
|
-
content: [
|
|
474
|
-
"{grey $} ledger-vault create exchange {bold --name} awesome-exchange {bold --platform} binance {bold --apiKey} foo {bold --apiSecret} bar",
|
|
475
|
-
"{grey # With custom rules:}",
|
|
476
|
-
`{grey $} ledger-vault create exchange {bold --name} awesome-exchange {bold --platform} binance {bold --apiKey} foo {bold --apiSecret} bar {bold --rules} '[ [ \\{ "type": "MULTI_AUTHORIZATIONS", "steps": [\\{ "quorum": 1, "users": [10] \\}] \\} ] ]'`,
|
|
477
|
-
],
|
|
478
|
-
},
|
|
479
|
-
],
|
|
480
|
-
options: [
|
|
481
|
-
{
|
|
482
|
-
name: "name",
|
|
483
|
-
type: String,
|
|
484
|
-
description: "Exchange name",
|
|
485
|
-
required: true,
|
|
486
|
-
},
|
|
487
|
-
{
|
|
488
|
-
name: "platform",
|
|
489
|
-
description: "Which platform to connect with (e.g: {magenta binance})",
|
|
490
|
-
type: String,
|
|
491
|
-
required: true,
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
name: "apiKey",
|
|
495
|
-
description: "API key",
|
|
496
|
-
type: String,
|
|
497
|
-
required: true,
|
|
498
|
-
},
|
|
499
|
-
{
|
|
500
|
-
name: "apiSecret",
|
|
501
|
-
description: "API secret",
|
|
502
|
-
type: String,
|
|
503
|
-
required: true,
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
name: "rules",
|
|
507
|
-
description: "Send rules, passed as stringified JSON",
|
|
508
|
-
type: String,
|
|
509
|
-
},
|
|
510
|
-
miscOptions_1.TWO_STEPS_REQUEST_OPTION,
|
|
511
|
-
miscOptions_1.FORMAT_OPTION,
|
|
512
|
-
],
|
|
513
|
-
run: exports.createEntity,
|
|
514
|
-
},
|
|
515
|
-
{
|
|
516
|
-
command: "policy",
|
|
517
|
-
description: "Create a policy",
|
|
518
|
-
help: [
|
|
519
|
-
{
|
|
520
|
-
header: "Examples",
|
|
521
|
-
content: [
|
|
522
|
-
"{grey $} ledger-vault create policy {bold --name} awesome-policy {bold --currency} bitcoin",
|
|
523
|
-
"{grey # With custom rules:}",
|
|
524
|
-
`{grey $} ledger-vault create policy {bold --name} awesome-policy {bold --currency} bitcoin {bold --rules} '[ [ \\{ "type": "MULTI_AUTHORIZATIONS", "steps": [\\{ "quorum": 1, "users": [10] \\}] \\} ] ]'`,
|
|
525
|
-
],
|
|
526
|
-
},
|
|
527
|
-
],
|
|
528
|
-
options: [
|
|
529
|
-
{
|
|
530
|
-
name: "name",
|
|
531
|
-
type: String,
|
|
532
|
-
description: "Policy name",
|
|
533
|
-
required: true,
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
name: "currency",
|
|
537
|
-
description: "Policy currency",
|
|
538
|
-
type: String,
|
|
539
|
-
required: true,
|
|
540
|
-
},
|
|
541
|
-
{
|
|
542
|
-
name: "rules",
|
|
543
|
-
description: "Send rules, passed as stringified JSON",
|
|
544
|
-
type: String,
|
|
545
|
-
required: true,
|
|
546
|
-
},
|
|
547
|
-
miscOptions_1.TWO_STEPS_REQUEST_OPTION,
|
|
548
|
-
miscOptions_1.FORMAT_OPTION,
|
|
549
|
-
],
|
|
550
|
-
run: exports.createEntity,
|
|
551
|
-
},
|
|
552
|
-
],
|
|
553
|
-
};
|
|
554
|
-
//# sourceMappingURL=create.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../src/commands/create.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yDAAyE;AAUzE,+DAAuC;AACvC,iEAAyC;AACzC,+DAAuC;AACvC,uDAA+B;AAC/B,gDAKwB;AAExB,+BAAkD;AAiFlD,MAAM,mBAAmB,GAA+B;IACtD,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,MAAM,EAAE,cAAc;IACtB,MAAM,EAAE,QAAQ;CACjB,CAAC;AAEK,MAAM,YAAY,GAAG,CAAO,IAAkB,EAAiB,EAAE;IACtE,MAAM,WAAW,GAAgB;QAC/B,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,MAAM,EAAE,IAAI,CAAC,GAAG;QAChB,SAAS,EAAE,IAAI,CAAC,SAAS;QACzB,YAAY,EAAE,IAAI,CAAC,SAAS;QAC5B,QAAQ,EAAE,IAAI,CAAC,QAAQ;KACxB,CAAC;IACF,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,GAAG,IAAI,CAAC;IAE3D,MAAM,IAAI,GAAG,IAAA,gCAAiB,kCACzB,WAAW,KACd,MAAM,EAAE,IAAI,CAAC,GAAG,EAChB,YAAY,IACZ,CAAC;IAEH,IAAI,QAAQ,GAAoB,IAAI,CAAC;IAErC,IAAI,IAAI,CAAC,OAAO,KAAK,OAAO,EAAE;QAC5B,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;QAE1C,QAAQ,GAAG;YACT,MAAM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2
|
-
remoteURL: string;
|
|
3
|
-
name: string;
|
|
4
|
-
owner: string;
|
|
5
|
-
expirationHours?: number;
|
|
6
|
-
preset?: string;
|
|
7
|
-
values?: string;
|
|
8
|
-
watchTimeoutMinutes?: number;
|
|
9
|
-
useDedicatedHSMSimu?: boolean;
|
|
10
|
-
useHTTPPolling?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare const deployCommand: (options: DeployCommandOptions) => Promise<void>;
|
|
13
|
-
declare const _default: {
|
|
14
|
-
command: string;
|
|
15
|
-
description: string;
|
|
16
|
-
help: {
|
|
17
|
-
header: string;
|
|
18
|
-
content: string[];
|
|
19
|
-
}[];
|
|
20
|
-
options: ({
|
|
21
|
-
name: string;
|
|
22
|
-
type: StringConstructor;
|
|
23
|
-
description: string;
|
|
24
|
-
required: boolean;
|
|
25
|
-
defaultValue?: undefined;
|
|
26
|
-
} | {
|
|
27
|
-
name: string;
|
|
28
|
-
description: string;
|
|
29
|
-
type: NumberConstructor;
|
|
30
|
-
required: boolean;
|
|
31
|
-
defaultValue: number;
|
|
32
|
-
} | {
|
|
33
|
-
name: string;
|
|
34
|
-
description: string;
|
|
35
|
-
type: StringConstructor;
|
|
36
|
-
required?: undefined;
|
|
37
|
-
defaultValue?: undefined;
|
|
38
|
-
} | {
|
|
39
|
-
name: string;
|
|
40
|
-
description: string;
|
|
41
|
-
type: StringConstructor;
|
|
42
|
-
defaultValue: string;
|
|
43
|
-
required?: undefined;
|
|
44
|
-
} | {
|
|
45
|
-
name: string;
|
|
46
|
-
description: string;
|
|
47
|
-
type: BooleanConstructor;
|
|
48
|
-
defaultValue: boolean;
|
|
49
|
-
required?: undefined;
|
|
50
|
-
} | {
|
|
51
|
-
name: string;
|
|
52
|
-
description: string;
|
|
53
|
-
type: NumberConstructor;
|
|
54
|
-
defaultValue: number;
|
|
55
|
-
required?: undefined;
|
|
56
|
-
})[];
|
|
57
|
-
run: (options: DeployCommandOptions) => Promise<void>;
|
|
58
|
-
};
|
|
59
|
-
export default _default;
|
|
60
|
-
//# sourceMappingURL=deploy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/commands/deploy.ts"],"names":[],"mappings":"AAUA,KAAK,oBAAoB,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,aAAa,YAAmB,oBAAoB,KAAG,QAAQ,IAAI,CAyB/E,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,wBAqEE"}
|