@ledgerhq/live-cli 24.14.0-nightly.0 → 24.14.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/lib/commands/live/ledgerSync.d.ts +1 -2
- package/lib/commands/live/ledgerSync.d.ts.map +1 -1
- package/lib/commands/live/ledgerSync.js +1 -9
- package/lib/commands/live/ledgerSync.js.map +1 -1
- package/lib/commands-index.d.ts +2 -3
- package/lib/commands-index.d.ts.map +1 -1
- package/package.json +8 -8
|
@@ -3,7 +3,6 @@ export type LedgerSyncJobOpts = Partial<{
|
|
|
3
3
|
pull: boolean;
|
|
4
4
|
pubKey: string;
|
|
5
5
|
privateKey: string;
|
|
6
|
-
deleteData: boolean;
|
|
7
6
|
rootId: string;
|
|
8
7
|
walletSyncEncryptionKey: string;
|
|
9
8
|
applicationPath: string;
|
|
@@ -42,7 +41,7 @@ declare const _default: {
|
|
|
42
41
|
default: string;
|
|
43
42
|
desc: string;
|
|
44
43
|
})[];
|
|
45
|
-
job: ({ push, pull, pubKey, privateKey,
|
|
44
|
+
job: ({ push, pull, pubKey, privateKey, rootId, walletSyncEncryptionKey, applicationPath, data, version, applicationId, name, apiBaseUrl, cloudSyncApiBaseUrl, }: LedgerSyncJobOpts) => Promise<string> | "applicationId is required" | "name is required" | "apiBaseUrl is required" | "pubKey and privateKey are required" | "walletSyncEncryptionKey is required" | "applicationPath is required" | "command does not exist" | "data is required";
|
|
46
45
|
};
|
|
47
46
|
export default _default;
|
|
48
47
|
//# sourceMappingURL=ledgerSync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledgerSync.d.ts","sourceRoot":"","sources":["../../../src/commands/live/ledgerSync.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,
|
|
1
|
+
{"version":3,"file":"ledgerSync.d.ts","sourceRoot":"","sources":["../../../src/commands/live/ledgerSync.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,uBAAuB,EAAE,MAAM,CAAC;IAChC,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sKAyFE,iBAAiB;;AAvFtB,wBA2IE"}
|
|
@@ -41,11 +41,6 @@ exports.default = {
|
|
|
41
41
|
type: Boolean,
|
|
42
42
|
desc: "Get or create a Ledger Key Ring Protocol Tree",
|
|
43
43
|
},
|
|
44
|
-
{
|
|
45
|
-
name: "deleteData",
|
|
46
|
-
type: Boolean,
|
|
47
|
-
desc: "Delete a Ledger Key Ring Protocol Tree",
|
|
48
|
-
},
|
|
49
44
|
{
|
|
50
45
|
name: "pubKey",
|
|
51
46
|
type: String,
|
|
@@ -106,7 +101,7 @@ exports.default = {
|
|
|
106
101
|
desc: "api base url for Cloud Sync",
|
|
107
102
|
},
|
|
108
103
|
],
|
|
109
|
-
job: ({ push, pull, pubKey, privateKey,
|
|
104
|
+
job: ({ push, pull, pubKey, privateKey, rootId, walletSyncEncryptionKey, applicationPath, data, version, applicationId = 16, name = "CLI", apiBaseUrl = (0, live_env_1.getEnv)("TRUSTCHAIN_API_STAGING"), cloudSyncApiBaseUrl = (0, live_env_1.getEnv)("CLOUD_SYNC_API_STAGING"), }) => {
|
|
110
105
|
if (!applicationId)
|
|
111
106
|
return "applicationId is required";
|
|
112
107
|
if (!name)
|
|
@@ -151,9 +146,6 @@ exports.default = {
|
|
|
151
146
|
.pull({ rootId, walletSyncEncryptionKey, applicationPath }, { pubkey: pubKey, privatekey: privateKey })
|
|
152
147
|
.then(result => JSON.stringify({ result, updateEvent: latestUpdateEvent }, null, 2));
|
|
153
148
|
}
|
|
154
|
-
if (deleteData) {
|
|
155
|
-
return cloudSyncSDK.destroy({ rootId, walletSyncEncryptionKey, applicationPath }, { pubkey: pubKey, privatekey: privateKey });
|
|
156
|
-
}
|
|
157
149
|
return "command does not exist";
|
|
158
150
|
},
|
|
159
151
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ledgerSync.js","sourceRoot":"","sources":["../../../src/commands/live/ledgerSync.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAAkE;AAClE,iEAAkF;AAClF,gFAGgD;AAChD,wEAAmE;AACnE,iDAA4C;
|
|
1
|
+
{"version":3,"file":"ledgerSync.js","sourceRoot":"","sources":["../../../src/commands/live/ledgerSync.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oEAAkE;AAClE,iEAAkF;AAClF,gFAGgD;AAChD,wEAAmE;AACnE,iDAA4C;AAkB5C,kBAAe;IACb,WAAW,EAAE,qBAAqB;IAClC,IAAI,EAAE;QACJ;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,sDAAsD;SAC7D;QACD;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,+CAA+C;SACtD;QACD;YACE,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,sFAAsF;SAC7F;QACD;YACE,IAAI,EAAE,YAAY;YAClB,IAAI,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AAE,EAC1C,IAAI,CAAC,KAAK,CAAC,IAAK,CAAa,CAC9B;iBACA,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QACrD,CAAC;QAED,IAAI,IAAI,EAAE,CAAC;YACT,OAAO,YAAY;iBAChB,IAAI,CACH,EAAE,MAAM,EAAE,uBAAuB,EAAE,eAAe,EAAE,EACpD,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,CAC3C;iBACA,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QACzF,CAAC;QAED,OAAO,wBAAwB,CAAC;IAClC,CAAC;CACF,CAAC"}
|
package/lib/commands-index.d.ts
CHANGED
|
@@ -1350,12 +1350,11 @@ declare const _default: {
|
|
|
1350
1350
|
default: string;
|
|
1351
1351
|
desc: string;
|
|
1352
1352
|
})[];
|
|
1353
|
-
job: ({ push, pull, pubKey, privateKey,
|
|
1353
|
+
job: ({ push, pull, pubKey, privateKey, rootId, walletSyncEncryptionKey, applicationPath, data, version, applicationId, name, apiBaseUrl, cloudSyncApiBaseUrl, }: Partial<{
|
|
1354
1354
|
push: boolean;
|
|
1355
1355
|
pull: boolean;
|
|
1356
1356
|
pubKey: string;
|
|
1357
1357
|
privateKey: string;
|
|
1358
|
-
deleteData: boolean;
|
|
1359
1358
|
rootId: string;
|
|
1360
1359
|
walletSyncEncryptionKey: string;
|
|
1361
1360
|
applicationPath: string;
|
|
@@ -1365,7 +1364,7 @@ declare const _default: {
|
|
|
1365
1364
|
name?: string | undefined;
|
|
1366
1365
|
apiBaseUrl?: string | undefined;
|
|
1367
1366
|
cloudSyncApiBaseUrl?: string | undefined;
|
|
1368
|
-
}>) => Promise<string> |
|
|
1367
|
+
}>) => Promise<string> | "applicationId is required" | "name is required" | "apiBaseUrl is required" | "pubKey and privateKey are required" | "walletSyncEncryptionKey is required" | "applicationPath is required" | "command does not exist" | "data is required";
|
|
1369
1368
|
};
|
|
1370
1369
|
liveData: {
|
|
1371
1370
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands-index.d.ts","sourceRoot":"","sources":["../src/commands-index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commands-index.d.ts","sourceRoot":"","sources":["../src/commands-index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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js": "7.8.1",
|
|
35
35
|
"winston": "3.13.0",
|
|
36
36
|
"ws": "8.17.1",
|
|
37
|
-
"@ledgerhq/coin-bitcoin": "^0.12.0
|
|
38
|
-
"@ledgerhq/coin-framework": "^2.3.0
|
|
37
|
+
"@ledgerhq/coin-bitcoin": "^0.12.0",
|
|
38
|
+
"@ledgerhq/coin-framework": "^2.3.0",
|
|
39
39
|
"@ledgerhq/cryptoassets": "^13.13.0",
|
|
40
|
-
"@ledgerhq/device-core": "^0.4.17
|
|
40
|
+
"@ledgerhq/device-core": "^0.4.17",
|
|
41
41
|
"@ledgerhq/devices": "8.4.4",
|
|
42
42
|
"@ledgerhq/errors": "^6.19.1",
|
|
43
43
|
"@ledgerhq/hw-app-btc": "^10.6.0",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"@ledgerhq/hw-transport-node-speculos": "^6.29.4",
|
|
50
50
|
"@ledgerhq/hw-transport-node-speculos-http": "^6.29.4",
|
|
51
51
|
"@ledgerhq/ledger-key-ring-protocol": "^0.5.4",
|
|
52
|
-
"@ledgerhq/live-common": "^34.26.0
|
|
52
|
+
"@ledgerhq/live-common": "^34.26.0",
|
|
53
53
|
"@ledgerhq/live-config": "^3.1.0",
|
|
54
|
-
"@ledgerhq/live-countervalues": "^0.4.4
|
|
54
|
+
"@ledgerhq/live-countervalues": "^0.4.4",
|
|
55
55
|
"@ledgerhq/live-env": "^2.6.0",
|
|
56
56
|
"@ledgerhq/live-network": "^2.0.5",
|
|
57
|
-
"@ledgerhq/live-wallet": "^0.10.0
|
|
57
|
+
"@ledgerhq/live-wallet": "^0.10.0",
|
|
58
58
|
"@ledgerhq/logs": "^6.12.0",
|
|
59
59
|
"@ledgerhq/types-devices": "^6.25.3"
|
|
60
60
|
},
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@types/ws": "8.5.10",
|
|
73
73
|
"ts-node": "10.9.2",
|
|
74
74
|
"@ledgerhq/types-cryptoassets": "^7.20.0",
|
|
75
|
-
"@ledgerhq/types-live": "^6.63.0
|
|
75
|
+
"@ledgerhq/types-live": "^6.63.0"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|
|
78
78
|
"prebuild": "zx ./scripts/gen.mjs",
|