@twin.org/identity-cli 0.0.1 → 0.0.2-next.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/dist/cjs/index.cjs +9 -8
- package/dist/esm/index.mjs +9 -8
- package/dist/locales/en.json +14 -4
- package/docs/changelog.md +44 -0
- package/package.json +18 -18
package/dist/cjs/index.cjs
CHANGED
|
@@ -184,7 +184,7 @@ async function actionCommandIdentityCreate(opts) {
|
|
|
184
184
|
if (opts.connector === IdentityConnectorTypes.Iota) {
|
|
185
185
|
const didUrn = core.Urn.fromValidString(document.id);
|
|
186
186
|
const didParts = didUrn.parts();
|
|
187
|
-
const objectId = didParts[
|
|
187
|
+
const objectId = didParts[didParts.length - 1];
|
|
188
188
|
cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.common.labels.explore"), `${core.StringHelper.trimTrailingSlashes(explorerEndpoint)}/object/${objectId}?network=${network}`);
|
|
189
189
|
}
|
|
190
190
|
cliCore.CLIDisplay.break();
|
|
@@ -264,7 +264,7 @@ async function actionCommandIdentityResolve(opts) {
|
|
|
264
264
|
if (opts.connector === IdentityConnectorTypes.Iota) {
|
|
265
265
|
const didUrn = core.Urn.fromValidString(document.id);
|
|
266
266
|
const didParts = didUrn.parts();
|
|
267
|
-
const objectId = didParts[
|
|
267
|
+
const objectId = didParts[didParts.length - 1];
|
|
268
268
|
cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.common.labels.explore"), `${core.StringHelper.trimTrailingSlashes(explorerEndpoint)}/object/${objectId}?network=${network}`);
|
|
269
269
|
}
|
|
270
270
|
cliCore.CLIDisplay.break();
|
|
@@ -534,7 +534,7 @@ async function actionCommandServiceAdd(opts) {
|
|
|
534
534
|
if (opts.connector === IdentityConnectorTypes.Iota) {
|
|
535
535
|
const didUrn = core.Urn.fromValidString(did);
|
|
536
536
|
const didParts = didUrn.parts();
|
|
537
|
-
const objectId = didParts[
|
|
537
|
+
const objectId = didParts[didParts.length - 1];
|
|
538
538
|
cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.common.labels.explore"), `${core.StringHelper.trimTrailingSlashes(explorerEndpoint)}/object/${objectId}?network=${network}`);
|
|
539
539
|
}
|
|
540
540
|
cliCore.CLIDisplay.break();
|
|
@@ -614,7 +614,7 @@ async function actionCommandServiceRemove(opts) {
|
|
|
614
614
|
if (opts.connector === IdentityConnectorTypes.Iota) {
|
|
615
615
|
const didUrn = core.Urn.fromValidString(did);
|
|
616
616
|
const didParts = didUrn.parts();
|
|
617
|
-
const objectId = didParts[
|
|
617
|
+
const objectId = didParts[didParts.length - 1];
|
|
618
618
|
cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.common.labels.explore"), `${core.StringHelper.trimTrailingSlashes(explorerEndpoint)}/object/${objectId}?network=${network}`);
|
|
619
619
|
}
|
|
620
620
|
cliCore.CLIDisplay.break();
|
|
@@ -1041,7 +1041,7 @@ async function actionCommandVerificationMethodAdd(opts) {
|
|
|
1041
1041
|
if (opts.connector === IdentityConnectorTypes.Iota) {
|
|
1042
1042
|
const didUrn = core.Urn.fromValidString(did);
|
|
1043
1043
|
const didParts = didUrn.parts();
|
|
1044
|
-
const objectId = didParts[
|
|
1044
|
+
const objectId = didParts[didParts.length - 1];
|
|
1045
1045
|
cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.common.labels.explore"), `${core.StringHelper.trimTrailingSlashes(explorerEndpoint)}/object/${objectId}?network=${network}`);
|
|
1046
1046
|
}
|
|
1047
1047
|
cliCore.CLIDisplay.break();
|
|
@@ -1121,7 +1121,7 @@ async function actionCommandVerificationMethodRemove(opts) {
|
|
|
1121
1121
|
if (opts.connector === IdentityConnectorTypes.Iota) {
|
|
1122
1122
|
const didUrn = core.Urn.fromValidString(did);
|
|
1123
1123
|
const didParts = didUrn.parts();
|
|
1124
|
-
const objectId = didParts[
|
|
1124
|
+
const objectId = didParts[didParts.length - 1];
|
|
1125
1125
|
cliCore.CLIDisplay.value(core.I18n.formatMessage("commands.common.labels.explore"), `${core.StringHelper.trimTrailingSlashes(explorerEndpoint)}/object/${objectId}?network=${network}`);
|
|
1126
1126
|
}
|
|
1127
1127
|
cliCore.CLIDisplay.break();
|
|
@@ -1146,10 +1146,11 @@ class CLI extends cliCore.CLIBase {
|
|
|
1146
1146
|
return this.execute({
|
|
1147
1147
|
title: "TWIN Identity",
|
|
1148
1148
|
appName: "twin-identity",
|
|
1149
|
-
version: "0.0.
|
|
1149
|
+
version: "0.0.2-next.2", // x-release-please-version
|
|
1150
1150
|
icon: "🌍",
|
|
1151
1151
|
supportsEnvFiles: true,
|
|
1152
|
-
overrideOutputWidth: options?.overrideOutputWidth
|
|
1152
|
+
overrideOutputWidth: options?.overrideOutputWidth,
|
|
1153
|
+
showDevToolWarning: true
|
|
1153
1154
|
}, localesDirectory ?? path.join(path.dirname(node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)))), "../locales"), argv);
|
|
1154
1155
|
}
|
|
1155
1156
|
/**
|
package/dist/esm/index.mjs
CHANGED
|
@@ -181,7 +181,7 @@ async function actionCommandIdentityCreate(opts) {
|
|
|
181
181
|
if (opts.connector === IdentityConnectorTypes.Iota) {
|
|
182
182
|
const didUrn = Urn.fromValidString(document.id);
|
|
183
183
|
const didParts = didUrn.parts();
|
|
184
|
-
const objectId = didParts[
|
|
184
|
+
const objectId = didParts[didParts.length - 1];
|
|
185
185
|
CLIDisplay.value(I18n.formatMessage("commands.common.labels.explore"), `${StringHelper.trimTrailingSlashes(explorerEndpoint)}/object/${objectId}?network=${network}`);
|
|
186
186
|
}
|
|
187
187
|
CLIDisplay.break();
|
|
@@ -261,7 +261,7 @@ async function actionCommandIdentityResolve(opts) {
|
|
|
261
261
|
if (opts.connector === IdentityConnectorTypes.Iota) {
|
|
262
262
|
const didUrn = Urn.fromValidString(document.id);
|
|
263
263
|
const didParts = didUrn.parts();
|
|
264
|
-
const objectId = didParts[
|
|
264
|
+
const objectId = didParts[didParts.length - 1];
|
|
265
265
|
CLIDisplay.value(I18n.formatMessage("commands.common.labels.explore"), `${StringHelper.trimTrailingSlashes(explorerEndpoint)}/object/${objectId}?network=${network}`);
|
|
266
266
|
}
|
|
267
267
|
CLIDisplay.break();
|
|
@@ -531,7 +531,7 @@ async function actionCommandServiceAdd(opts) {
|
|
|
531
531
|
if (opts.connector === IdentityConnectorTypes.Iota) {
|
|
532
532
|
const didUrn = Urn.fromValidString(did);
|
|
533
533
|
const didParts = didUrn.parts();
|
|
534
|
-
const objectId = didParts[
|
|
534
|
+
const objectId = didParts[didParts.length - 1];
|
|
535
535
|
CLIDisplay.value(I18n.formatMessage("commands.common.labels.explore"), `${StringHelper.trimTrailingSlashes(explorerEndpoint)}/object/${objectId}?network=${network}`);
|
|
536
536
|
}
|
|
537
537
|
CLIDisplay.break();
|
|
@@ -611,7 +611,7 @@ async function actionCommandServiceRemove(opts) {
|
|
|
611
611
|
if (opts.connector === IdentityConnectorTypes.Iota) {
|
|
612
612
|
const didUrn = Urn.fromValidString(did);
|
|
613
613
|
const didParts = didUrn.parts();
|
|
614
|
-
const objectId = didParts[
|
|
614
|
+
const objectId = didParts[didParts.length - 1];
|
|
615
615
|
CLIDisplay.value(I18n.formatMessage("commands.common.labels.explore"), `${StringHelper.trimTrailingSlashes(explorerEndpoint)}/object/${objectId}?network=${network}`);
|
|
616
616
|
}
|
|
617
617
|
CLIDisplay.break();
|
|
@@ -1038,7 +1038,7 @@ async function actionCommandVerificationMethodAdd(opts) {
|
|
|
1038
1038
|
if (opts.connector === IdentityConnectorTypes.Iota) {
|
|
1039
1039
|
const didUrn = Urn.fromValidString(did);
|
|
1040
1040
|
const didParts = didUrn.parts();
|
|
1041
|
-
const objectId = didParts[
|
|
1041
|
+
const objectId = didParts[didParts.length - 1];
|
|
1042
1042
|
CLIDisplay.value(I18n.formatMessage("commands.common.labels.explore"), `${StringHelper.trimTrailingSlashes(explorerEndpoint)}/object/${objectId}?network=${network}`);
|
|
1043
1043
|
}
|
|
1044
1044
|
CLIDisplay.break();
|
|
@@ -1118,7 +1118,7 @@ async function actionCommandVerificationMethodRemove(opts) {
|
|
|
1118
1118
|
if (opts.connector === IdentityConnectorTypes.Iota) {
|
|
1119
1119
|
const didUrn = Urn.fromValidString(did);
|
|
1120
1120
|
const didParts = didUrn.parts();
|
|
1121
|
-
const objectId = didParts[
|
|
1121
|
+
const objectId = didParts[didParts.length - 1];
|
|
1122
1122
|
CLIDisplay.value(I18n.formatMessage("commands.common.labels.explore"), `${StringHelper.trimTrailingSlashes(explorerEndpoint)}/object/${objectId}?network=${network}`);
|
|
1123
1123
|
}
|
|
1124
1124
|
CLIDisplay.break();
|
|
@@ -1143,10 +1143,11 @@ class CLI extends CLIBase {
|
|
|
1143
1143
|
return this.execute({
|
|
1144
1144
|
title: "TWIN Identity",
|
|
1145
1145
|
appName: "twin-identity",
|
|
1146
|
-
version: "0.0.
|
|
1146
|
+
version: "0.0.2-next.2", // x-release-please-version
|
|
1147
1147
|
icon: "🌍",
|
|
1148
1148
|
supportsEnvFiles: true,
|
|
1149
|
-
overrideOutputWidth: options?.overrideOutputWidth
|
|
1149
|
+
overrideOutputWidth: options?.overrideOutputWidth,
|
|
1150
|
+
showDevToolWarning: true
|
|
1150
1151
|
}, localesDirectory ?? path.join(path.dirname(fileURLToPath(import.meta.url)), "../locales"), argv);
|
|
1151
1152
|
}
|
|
1152
1153
|
/**
|
package/dist/locales/en.json
CHANGED
|
@@ -170,6 +170,10 @@
|
|
|
170
170
|
"slip0010": {
|
|
171
171
|
"invalidSeed": "The seed is invalid \"{seed}\""
|
|
172
172
|
},
|
|
173
|
+
"rsa": {
|
|
174
|
+
"noPrivateKey": "Private key is required for this operation",
|
|
175
|
+
"invalidKeySize": "Invalid RSA key size"
|
|
176
|
+
},
|
|
173
177
|
"commands": {
|
|
174
178
|
"common": {
|
|
175
179
|
"missingEnv": "The \"{option}\" option is configured as an environment variable, but there is no environment variable with the name \"{value}\" set.",
|
|
@@ -333,7 +337,8 @@
|
|
|
333
337
|
"transferFailed": "The wallet transfer failed."
|
|
334
338
|
},
|
|
335
339
|
"iotaFaucetConnector": {
|
|
336
|
-
"fundingFailed": "Fund the address from faucet failed"
|
|
340
|
+
"fundingFailed": "Fund the address from faucet failed",
|
|
341
|
+
"faucetRateLimit": "Faucet rate limit exceeded"
|
|
337
342
|
}
|
|
338
343
|
},
|
|
339
344
|
"errorNames": {
|
|
@@ -351,6 +356,11 @@
|
|
|
351
356
|
"validation": {
|
|
352
357
|
"defaultFieldName": "The field"
|
|
353
358
|
},
|
|
359
|
+
"warn": {
|
|
360
|
+
"common": {
|
|
361
|
+
"devOnlyTool": "This tool is intended to be used for development purposes, it is not recommended for use in production scenarios."
|
|
362
|
+
}
|
|
363
|
+
},
|
|
354
364
|
"cli": {
|
|
355
365
|
"progress": {
|
|
356
366
|
"done": "Done.",
|
|
@@ -489,7 +499,7 @@
|
|
|
489
499
|
"options": {
|
|
490
500
|
"address": {
|
|
491
501
|
"param": "--address '<'address'>'",
|
|
492
|
-
"description": "The address to fill from the faucet
|
|
502
|
+
"description": "The address to fill from the faucet in hex format, or start with ! to read environment variable."
|
|
493
503
|
},
|
|
494
504
|
"faucet": {
|
|
495
505
|
"param": "--faucet '<'url'>'",
|
|
@@ -514,11 +524,11 @@
|
|
|
514
524
|
"options": {
|
|
515
525
|
"address": {
|
|
516
526
|
"param": "--address '<'address'>'",
|
|
517
|
-
"description": "The address to send the funds from
|
|
527
|
+
"description": "The address to send the funds from in hex format, or start with ! to read environment variable."
|
|
518
528
|
},
|
|
519
529
|
"dest-address": {
|
|
520
530
|
"param": "--dest-address '<'address'>'",
|
|
521
|
-
"description": "The address to send the funds to
|
|
531
|
+
"description": "The address to send the funds to in hex format, or start with ! to read environment variable."
|
|
522
532
|
},
|
|
523
533
|
"amount": {
|
|
524
534
|
"param": "--amount '<'amount'>'",
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @twin.org/identity-cli - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.2](https://github.com/twinfoundation/identity/compare/identity-cli-v0.0.2-next.1...identity-cli-v0.0.2-next.2) (2025-08-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* update framework core ([c824497](https://github.com/twinfoundation/identity/commit/c82449709af0215eb7af496cf687c93fb30b5ae0))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/identity-models bumped from 0.0.2-next.1 to 0.0.2-next.2
|
|
16
|
+
* @twin.org/identity-connector-iota bumped from 0.0.2-next.1 to 0.0.2-next.2
|
|
17
|
+
|
|
18
|
+
## [0.0.2-next.1](https://github.com/twinfoundation/identity/compare/identity-cli-v0.0.2-next.0...identity-cli-v0.0.2-next.1) (2025-08-18)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* add mainnet support ([af56a38](https://github.com/twinfoundation/identity/commit/af56a382837896cd4e13d5814c0924c46658b99c))
|
|
24
|
+
* identity key separator use slash ([1319d0d](https://github.com/twinfoundation/identity/commit/1319d0d07164a36b3ec279e6421b8835ffefc3d3))
|
|
25
|
+
* iota rebased release ([5d14674](https://github.com/twinfoundation/identity/commit/5d146744ca9eed622ef7eb34a7fa935216f9e975))
|
|
26
|
+
* support mainnet for alias extraction ([1114e0f](https://github.com/twinfoundation/identity/commit/1114e0f518070ef930d7d6ed73a616cce647206c))
|
|
27
|
+
* use new generateKid method ([f0fe779](https://github.com/twinfoundation/identity/commit/f0fe779323b675575bb9f80aa74f1957dc57a094))
|
|
28
|
+
* use shared store mechanism ([#27](https://github.com/twinfoundation/identity/issues/27)) ([ce41f3f](https://github.com/twinfoundation/identity/commit/ce41f3fc3da1b206ec06da7ea5b2c968f788804d))
|
|
29
|
+
* verification method output JWK and hex on CLI ([49db9da](https://github.com/twinfoundation/identity/commit/49db9da2371eafdcd7176ce44303961b9b8b8380))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* correctly display mainnet explorer urls ([45a9f3c](https://github.com/twinfoundation/identity/commit/45a9f3cc041cce7b40a86e98df306931a95f48ea))
|
|
35
|
+
* explorer urls in CLI ([82a745d](https://github.com/twinfoundation/identity/commit/82a745d536e8fe42554e7ad92a7468a653fc0cfb))
|
|
36
|
+
* Import path and bump version ([#21](https://github.com/twinfoundation/identity/issues/21)) ([ccea845](https://github.com/twinfoundation/identity/commit/ccea845bf32562267280bc1b3dde1c9af1a00360))
|
|
37
|
+
* Install sdk-wasm ([#20](https://github.com/twinfoundation/identity/issues/20)) ([75ec14e](https://github.com/twinfoundation/identity/commit/75ec14e072f8c219863a1c028a3b0783802086e9))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Dependencies
|
|
41
|
+
|
|
42
|
+
* The following workspace dependencies were updated
|
|
43
|
+
* dependencies
|
|
44
|
+
* @twin.org/identity-models bumped from 0.0.2-next.0 to 0.0.2-next.1
|
|
45
|
+
* @twin.org/identity-connector-iota bumped from 0.0.2-next.0 to 0.0.2-next.1
|
|
46
|
+
|
|
3
47
|
## 0.0.1 (2025-07-08)
|
|
4
48
|
|
|
5
49
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/identity-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2-next.2",
|
|
4
4
|
"description": "A command line interface for interacting with the identity connectors",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,23 +14,23 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/cli-core": "
|
|
18
|
-
"@twin.org/core": "
|
|
19
|
-
"@twin.org/crypto": "
|
|
20
|
-
"@twin.org/crypto-cli": "
|
|
21
|
-
"@twin.org/data-json-ld": "
|
|
22
|
-
"@twin.org/entity": "
|
|
23
|
-
"@twin.org/entity-storage-connector-memory": "
|
|
24
|
-
"@twin.org/identity-connector-iota": "
|
|
25
|
-
"@twin.org/identity-models": "
|
|
26
|
-
"@twin.org/nameof": "
|
|
27
|
-
"@twin.org/standards-w3c-did": "
|
|
28
|
-
"@twin.org/vault-connector-entity-storage": "
|
|
29
|
-
"@twin.org/vault-models": "
|
|
30
|
-
"@twin.org/wallet-cli": "
|
|
31
|
-
"@twin.org/wallet-connector-iota": "
|
|
32
|
-
"@twin.org/wallet-models": "
|
|
33
|
-
"@twin.org/web": "
|
|
17
|
+
"@twin.org/cli-core": "next",
|
|
18
|
+
"@twin.org/core": "next",
|
|
19
|
+
"@twin.org/crypto": "next",
|
|
20
|
+
"@twin.org/crypto-cli": "next",
|
|
21
|
+
"@twin.org/data-json-ld": "next",
|
|
22
|
+
"@twin.org/entity": "next",
|
|
23
|
+
"@twin.org/entity-storage-connector-memory": "next",
|
|
24
|
+
"@twin.org/identity-connector-iota": "0.0.2-next.2",
|
|
25
|
+
"@twin.org/identity-models": "0.0.2-next.2",
|
|
26
|
+
"@twin.org/nameof": "next",
|
|
27
|
+
"@twin.org/standards-w3c-did": "next",
|
|
28
|
+
"@twin.org/vault-connector-entity-storage": "next",
|
|
29
|
+
"@twin.org/vault-models": "next",
|
|
30
|
+
"@twin.org/wallet-cli": "next",
|
|
31
|
+
"@twin.org/wallet-connector-iota": "next",
|
|
32
|
+
"@twin.org/wallet-models": "next",
|
|
33
|
+
"@twin.org/web": "next",
|
|
34
34
|
"commander": "14.0.0"
|
|
35
35
|
},
|
|
36
36
|
"main": "./dist/cjs/index.cjs",
|