@twin.org/identity-cli 0.0.3-next.16 → 0.0.3-next.17
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/es/cli.js +1 -1
- package/dist/es/cli.js.map +1 -1
- package/dist/locales/en.json +26 -24
- package/docs/changelog.md +15 -0
- package/package.json +3 -3
package/dist/es/cli.js
CHANGED
|
@@ -33,7 +33,7 @@ export class CLI extends CLIBase {
|
|
|
33
33
|
return this.execute({
|
|
34
34
|
title: "TWIN Identity",
|
|
35
35
|
appName: "twin-identity",
|
|
36
|
-
version: "0.0.3-next.
|
|
36
|
+
version: "0.0.3-next.17", // x-release-please-version
|
|
37
37
|
icon: "🌍",
|
|
38
38
|
supportsEnvFiles: true,
|
|
39
39
|
overrideOutputWidth: options?.overrideOutputWidth,
|
package/dist/es/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,yBAAyB,E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;YAC1C,uBAAuB,EAAE;YACzB,uBAAuB,EAAE;SACzB,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport path from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { CLIBase } from \"@twin.org/cli-core\";\nimport { buildCommandAddress, buildCommandMnemonic } from \"@twin.org/crypto-cli\";\nimport { buildCommandFaucet, buildCommandTransfer } from \"@twin.org/wallet-cli\";\nimport type { Command } from \"commander\";\nimport { buildCommandIdentityCreate } from \"./commands/identityCreate.js\";\nimport { buildCommandIdentityResolve } from \"./commands/identityResolve.js\";\nimport { buildCommandProofCreate } from \"./commands/proofCreate.js\";\nimport { buildCommandProofVerify } from \"./commands/proofVerify.js\";\nimport { buildCommandServiceAdd } from \"./commands/serviceAdd.js\";\nimport { buildCommandServiceRemove } from \"./commands/serviceRemove.js\";\nimport { buildCommandVerifiableCredentialCreate } from \"./commands/verifiableCredentialCreate.js\";\nimport { buildCommandVerifiableCredentialRevoke } from \"./commands/verifiableCredentialRevoke.js\";\nimport { buildCommandVerifiableCredentialUnrevoke } from \"./commands/verifiableCredentialUnrevoke.js\";\nimport { buildCommandVerifiableCredentialVerify } from \"./commands/verifiableCredentialVerify.js\";\nimport { buildCommandVerificationMethodAdd } from \"./commands/verificationMethodAdd.js\";\nimport { buildCommandVerificationMethodRemove } from \"./commands/verificationMethodRemove.js\";\n\n/**\n * The main entry point for the CLI.\n */\nexport class CLI extends CLIBase {\n\t/**\n\t * Run the app.\n\t * @param argv The process arguments.\n\t * @param localesDirectory The directory for the locales, default to relative to the script.\n\t * @param options Additional options for the CLI.\n\t * @param options.overrideOutputWidth The override output width.\n\t * @returns The exit code.\n\t */\n\tpublic async run(\n\t\targv: string[],\n\t\tlocalesDirectory?: string,\n\t\toptions?: { overrideOutputWidth?: number }\n\t): Promise<number> {\n\t\treturn this.execute(\n\t\t\t{\n\t\t\t\ttitle: \"TWIN Identity\",\n\t\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C,KAAK,EAAE,eAAe;YACtB,OAAO,EAAE,eAAe;YACxB,OAAO,EAAE,eAAe,EAAE,2BAA2B;YACrD,IAAI,EAAE,IAAI;YACV,gBAAgB,EAAE,IAAI;YACtB,mBAAmB,EAAE,OAAO,EAAE,mBAAmB;YACjD,kBAAkB,EAAE,IAAI;SACxB,EACD,gBAAgB,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,YAAY,CAAC,EACzF,IAAI,CACJ,CAAC;IACH,CAAC;IAED;;;;OAIG;IACO,WAAW,CAAC,OAAgB;QACrC,OAAO;YACN,oBAAoB,EAAE;YACtB,mBAAmB,EAAE;YACrB,kBAAkB,EAAE;YACpB,oBAAoB,EAAE;YACtB,0BAA0B,EAAE;YAC5B,2BAA2B,EAAE;YAC7B,iCAAiC,EAAE;YACnC,oCAAoC,EAAE;YACtC,sBAAsB,EAAE;YACxB,yBAAyB,EAAE;YAC3B,sCAAsC,EAAE;YACxC,sCAAsC,EAAE;YACxC,sCAAsC,EAAE;YACxC,wCAAwC,EAAE;YAC1C,uBAAuB,EAAE;YACzB,uBAAuB,EAAE;SACzB,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport path from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { CLIBase } from \"@twin.org/cli-core\";\nimport { buildCommandAddress, buildCommandMnemonic } from \"@twin.org/crypto-cli\";\nimport { buildCommandFaucet, buildCommandTransfer } from \"@twin.org/wallet-cli\";\nimport type { Command } from \"commander\";\nimport { buildCommandIdentityCreate } from \"./commands/identityCreate.js\";\nimport { buildCommandIdentityResolve } from \"./commands/identityResolve.js\";\nimport { buildCommandProofCreate } from \"./commands/proofCreate.js\";\nimport { buildCommandProofVerify } from \"./commands/proofVerify.js\";\nimport { buildCommandServiceAdd } from \"./commands/serviceAdd.js\";\nimport { buildCommandServiceRemove } from \"./commands/serviceRemove.js\";\nimport { buildCommandVerifiableCredentialCreate } from \"./commands/verifiableCredentialCreate.js\";\nimport { buildCommandVerifiableCredentialRevoke } from \"./commands/verifiableCredentialRevoke.js\";\nimport { buildCommandVerifiableCredentialUnrevoke } from \"./commands/verifiableCredentialUnrevoke.js\";\nimport { buildCommandVerifiableCredentialVerify } from \"./commands/verifiableCredentialVerify.js\";\nimport { buildCommandVerificationMethodAdd } from \"./commands/verificationMethodAdd.js\";\nimport { buildCommandVerificationMethodRemove } from \"./commands/verificationMethodRemove.js\";\n\n/**\n * The main entry point for the CLI.\n */\nexport class CLI extends CLIBase {\n\t/**\n\t * Run the app.\n\t * @param argv The process arguments.\n\t * @param localesDirectory The directory for the locales, default to relative to the script.\n\t * @param options Additional options for the CLI.\n\t * @param options.overrideOutputWidth The override output width.\n\t * @returns The exit code.\n\t */\n\tpublic async run(\n\t\targv: string[],\n\t\tlocalesDirectory?: string,\n\t\toptions?: { overrideOutputWidth?: number }\n\t): Promise<number> {\n\t\treturn this.execute(\n\t\t\t{\n\t\t\t\ttitle: \"TWIN Identity\",\n\t\t\t\tappName: \"twin-identity\",\n\t\t\t\tversion: \"0.0.3-next.17\", // x-release-please-version\n\t\t\t\ticon: \"🌍\",\n\t\t\t\tsupportsEnvFiles: true,\n\t\t\t\toverrideOutputWidth: options?.overrideOutputWidth,\n\t\t\t\tshowDevToolWarning: true\n\t\t\t},\n\t\t\tlocalesDirectory ?? path.join(path.dirname(fileURLToPath(import.meta.url)), \"../locales\"),\n\t\t\targv\n\t\t);\n\t}\n\n\t/**\n\t * Get the commands for the CLI.\n\t * @param program The main program to add the commands to.\n\t * @internal\n\t */\n\tprotected getCommands(program: Command): Command[] {\n\t\treturn [\n\t\t\tbuildCommandMnemonic(),\n\t\t\tbuildCommandAddress(),\n\t\t\tbuildCommandFaucet(),\n\t\t\tbuildCommandTransfer(),\n\t\t\tbuildCommandIdentityCreate(),\n\t\t\tbuildCommandIdentityResolve(),\n\t\t\tbuildCommandVerificationMethodAdd(),\n\t\t\tbuildCommandVerificationMethodRemove(),\n\t\t\tbuildCommandServiceAdd(),\n\t\t\tbuildCommandServiceRemove(),\n\t\t\tbuildCommandVerifiableCredentialCreate(),\n\t\t\tbuildCommandVerifiableCredentialVerify(),\n\t\t\tbuildCommandVerifiableCredentialRevoke(),\n\t\t\tbuildCommandVerifiableCredentialUnrevoke(),\n\t\t\tbuildCommandProofCreate(),\n\t\t\tbuildCommandProofVerify()\n\t\t];\n\t}\n}\n"]}
|
package/dist/locales/en.json
CHANGED
|
@@ -99,7 +99,8 @@
|
|
|
99
99
|
},
|
|
100
100
|
"factory": {
|
|
101
101
|
"noUnregister": "There is no {typeName} registered with the name \"{name}\"",
|
|
102
|
-
"noGet": "The requested {typeName} \"{name}\" does not exist in the factory"
|
|
102
|
+
"noGet": "The requested {typeName} \"{name}\" does not exist in the factory",
|
|
103
|
+
"noCreate": "The requested {typeName} \"{name}\" cannot be created by the factory, with params \"{params}\""
|
|
103
104
|
},
|
|
104
105
|
"bitString": {
|
|
105
106
|
"outOfRange": "The index should be >= 0 and less than the length of the bit string, the index is \"{index}\" and the number of bit is \"{numberBits}\""
|
|
@@ -252,37 +253,38 @@
|
|
|
252
253
|
"resolveDocumentFailed": "Resolving the document failed \"{documentId}\""
|
|
253
254
|
},
|
|
254
255
|
"iotaIdentityConnector": {
|
|
255
|
-
"createDocumentFailed": "Creating the document failed",
|
|
256
|
-
"removeDocumentFailed": "Removing the document failed",
|
|
257
|
-
"missingDid": "The full id including DID is required",
|
|
258
|
-
"addVerificationMethodFailed": "Adding the verification method failed",
|
|
259
|
-
"removeVerificationMethodFailed": "Removing the verification method failed",
|
|
260
256
|
"addServiceFailed": "Adding the service failed",
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
"verificationMethodNotFound": "The verification method could not be found",
|
|
264
|
-
"serviceNotFound": "The service could not be found",
|
|
265
|
-
"publicKeyJwkMissing": "The verification method contains no publicKeyJwk in JWK \"{jwk}\"",
|
|
266
|
-
"publicKeyJwkMethodMissing": "The verification method contains no publicKeyJwk in method \"{method}\"",
|
|
267
|
-
"privateKeyMissing": "The verification method contains no privateKey \"{keyId}\"",
|
|
268
|
-
"verificationKeyMissing": "The verification key is missing from the vault for method \"{method}\"",
|
|
269
|
-
"createVerifiableCredentialFailed": "Creating the verifiable credential failed",
|
|
257
|
+
"addVerificationMethodFailed": "Adding the verification method failed",
|
|
258
|
+
"algorithmKeyTypeMismatch": "Algorithm \"{algorithm}\" requires key type \"{expectedKeyType}\", but key \"{keyId}\" has type \"{actualKeyType}\"",
|
|
270
259
|
"checkingVerifiableCredentialFailed": "Checking the verifiable credential failed",
|
|
271
|
-
"createVerifiablePresentationFailed": "Creating the verifiable presentation failed",
|
|
272
260
|
"checkingVerifiablePresentationFailed": "Checking the verifiable presentation failed",
|
|
261
|
+
"createDocumentFailed": "Creating the document failed",
|
|
273
262
|
"createProofFailed": "Creating the signature for the data failed",
|
|
274
|
-
"
|
|
275
|
-
"
|
|
276
|
-
"
|
|
277
|
-
"
|
|
263
|
+
"createVerifiableCredentialFailed": "Creating the verifiable credential failed",
|
|
264
|
+
"createVerifiablePresentationFailed": "Creating the verifiable presentation failed",
|
|
265
|
+
"didExtractionFailed": "Extracting the DID from the document id failed",
|
|
266
|
+
"documentNotFound": "The document could not be found",
|
|
267
|
+
"gasStationTransactionBuildFailed": "Building the gas station transaction failed",
|
|
268
|
+
"identityNotFound": "The identity could not be found \"{notFoundId}\"",
|
|
278
269
|
"invalidSubjectId": "The subject id format is invalid it must be a Url or Urn, it is \"{subjectId}\"",
|
|
270
|
+
"methodMissing": "The verification method specified does not exist \"{method}\"",
|
|
279
271
|
"missingControllerToken": "The controller token is missing",
|
|
280
|
-
"
|
|
272
|
+
"missingDid": "The full id including DID is required",
|
|
273
|
+
"privateKeyMissing": "The verification method contains no privateKey \"{keyId}\"",
|
|
274
|
+
"publicKeyJwkMethodMissing": "The verification method contains no publicKeyJwk in method \"{method}\"",
|
|
275
|
+
"publicKeyJwkMissing": "The verification method contains no publicKeyJwk in JWK \"{jwk}\"",
|
|
276
|
+
"removeDocumentFailed": "Removing the document failed",
|
|
277
|
+
"removeServiceFailed": "Removing the service failed",
|
|
278
|
+
"removeVerificationMethodFailed": "Removing the verification method failed",
|
|
281
279
|
"revocationServiceNotFound": "The revocation service could not be found in the document",
|
|
282
|
-
"
|
|
283
|
-
"
|
|
280
|
+
"revokeVerifiableCredentialsFailed": "Revoking verifiable credentials failed",
|
|
281
|
+
"serviceNotFound": "The service could not be found",
|
|
284
282
|
"transactionBuildFailed": "Building the transaction failed",
|
|
285
|
-
"
|
|
283
|
+
"transactionConfirmationTimeout": "The transaction was not confirmed in the expected time",
|
|
284
|
+
"unrevokeVerifiableCredentialsFailed": "Unrevoking verifiable credentials failed",
|
|
285
|
+
"verificationKeyMissing": "The verification key is missing from the vault for method \"{method}\"",
|
|
286
|
+
"verificationMethodNotFound": "The verification method could not be found",
|
|
287
|
+
"verifyProofFailed": "Verifying the signature for the data failed"
|
|
286
288
|
},
|
|
287
289
|
"iota": {
|
|
288
290
|
"insufficientFunds": "There were insufficient funds to complete the operation",
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @twin.org/identity-cli - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.17](https://github.com/twinfoundation/identity/compare/identity-cli-v0.0.3-next.16...identity-cli-v0.0.3-next.17) (2026-02-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* implement async proof signing with vault security ([#110](https://github.com/twinfoundation/identity/issues/110)) ([9651c24](https://github.com/twinfoundation/identity/commit/9651c2492d63eca6545735f5638d3191e25bd185))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/identity-models bumped from 0.0.3-next.16 to 0.0.3-next.17
|
|
16
|
+
* @twin.org/identity-connector-iota bumped from 0.0.3-next.16 to 0.0.3-next.17
|
|
17
|
+
|
|
3
18
|
## [0.0.3-next.16](https://github.com/twinfoundation/identity/compare/identity-cli-v0.0.3-next.15...identity-cli-v0.0.3-next.16) (2026-02-13)
|
|
4
19
|
|
|
5
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/identity-cli",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.17",
|
|
4
4
|
"description": "A command line interface for interacting with the identity connectors",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@twin.org/data-json-ld": "next",
|
|
22
22
|
"@twin.org/entity": "next",
|
|
23
23
|
"@twin.org/entity-storage-connector-memory": "next",
|
|
24
|
-
"@twin.org/identity-connector-iota": "0.0.3-next.
|
|
25
|
-
"@twin.org/identity-models": "0.0.3-next.
|
|
24
|
+
"@twin.org/identity-connector-iota": "0.0.3-next.17",
|
|
25
|
+
"@twin.org/identity-models": "0.0.3-next.17",
|
|
26
26
|
"@twin.org/nameof": "next",
|
|
27
27
|
"@twin.org/standards-w3c-did": "next",
|
|
28
28
|
"@twin.org/vault-connector-entity-storage": "next",
|