@twin.org/identity-cli 0.0.3-next.21 → 0.0.3-next.23

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 CHANGED
@@ -37,7 +37,7 @@ export class CLI extends CLIBase {
37
37
  return this.execute({
38
38
  title: "TWIN Identity",
39
39
  appName: "twin-identity",
40
- version: "0.0.3-next.21", // x-release-please-version
40
+ version: "0.0.3-next.23", // x-release-please-version
41
41
  icon: "🌍",
42
42
  supportsEnvFiles: true,
43
43
  overrideOutputWidth: options?.overrideOutputWidth,
@@ -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,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,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,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAClG,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAClG,OAAO,EAAE,wCAAwC,EAAE,MAAM,4CAA4C,CAAC;AACtG,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAClG,OAAO,EAAE,wCAAwC,EAAE,MAAM,4CAA4C,CAAC;AACtG,OAAO,EAAE,wCAAwC,EAAE,MAAM,4CAA4C,CAAC;AACtG,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AAE9F;;GAEG;AACH,MAAM,OAAO,GAAI,SAAQ,OAAO;IAC/B;;;;;;;OAOG;IACI,KAAK,CAAC,GAAG,CACf,IAAc,EACd,gBAAyB,EACzB,OAA0C;QAE1C,OAAO,IAAI,CAAC,OAAO,CAClB;YACC,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,0BAA0B,EAAE;YAC5B,6BAA6B,EAAE;YAC/B,sCAAsC,EAAE;YACxC,wCAAwC,EAAE;YAC1C,wCAAwC,EAAE;YAC1C,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 { buildCommandAlsoKnownAsAdd } from \"./commands/alsoKnownAsAdd.js\";\nimport { buildCommandAlsoKnownAsRemove } from \"./commands/alsoKnownAsRemove.js\";\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 { buildCommandVerifiablePresentationCreate } from \"./commands/verifiablePresentationCreate.js\";\nimport { buildCommandVerifiablePresentationVerify } from \"./commands/verifiablePresentationVerify.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.21\", // 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\tbuildCommandAlsoKnownAsAdd(),\n\t\t\tbuildCommandAlsoKnownAsRemove(),\n\t\t\tbuildCommandVerifiableCredentialCreate(),\n\t\t\tbuildCommandVerifiablePresentationCreate(),\n\t\t\tbuildCommandVerifiablePresentationVerify(),\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"]}
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,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,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,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAClG,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAClG,OAAO,EAAE,wCAAwC,EAAE,MAAM,4CAA4C,CAAC;AACtG,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAClG,OAAO,EAAE,wCAAwC,EAAE,MAAM,4CAA4C,CAAC;AACtG,OAAO,EAAE,wCAAwC,EAAE,MAAM,4CAA4C,CAAC;AACtG,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AAE9F;;GAEG;AACH,MAAM,OAAO,GAAI,SAAQ,OAAO;IAC/B;;;;;;;OAOG;IACI,KAAK,CAAC,GAAG,CACf,IAAc,EACd,gBAAyB,EACzB,OAA0C;QAE1C,OAAO,IAAI,CAAC,OAAO,CAClB;YACC,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,0BAA0B,EAAE;YAC5B,6BAA6B,EAAE;YAC/B,sCAAsC,EAAE;YACxC,wCAAwC,EAAE;YAC1C,wCAAwC,EAAE;YAC1C,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 { buildCommandAlsoKnownAsAdd } from \"./commands/alsoKnownAsAdd.js\";\nimport { buildCommandAlsoKnownAsRemove } from \"./commands/alsoKnownAsRemove.js\";\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 { buildCommandVerifiablePresentationCreate } from \"./commands/verifiablePresentationCreate.js\";\nimport { buildCommandVerifiablePresentationVerify } from \"./commands/verifiablePresentationVerify.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.23\", // 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\tbuildCommandAlsoKnownAsAdd(),\n\t\t\tbuildCommandAlsoKnownAsRemove(),\n\t\t\tbuildCommandVerifiableCredentialCreate(),\n\t\t\tbuildCommandVerifiablePresentationCreate(),\n\t\t\tbuildCommandVerifiablePresentationVerify(),\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"]}
@@ -5,8 +5,6 @@ import { EntityStorageConnectorFactory } from "@twin.org/entity-storage-models";
5
5
  import { IotaIdentityConnector, IotaIdentityResolverConnector } from "@twin.org/identity-connector-iota";
6
6
  import { EntityStorageVaultConnector, initSchema } from "@twin.org/vault-connector-entity-storage";
7
7
  import { VaultConnectorFactory } from "@twin.org/vault-models";
8
- import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
9
- import { IdentityResolverConnectorTypes } from "../models/identityResolverConnectorTypes.js";
10
8
  /**
11
9
  * Setup the vault for use in the CLI commands.
12
10
  */
@@ -32,7 +30,6 @@ export function setupVault() {
32
30
  * @returns The identity connector.
33
31
  */
34
32
  export function setupIdentityConnector(options, connector) {
35
- connector ??= IdentityConnectorTypes.Iota;
36
33
  return new IotaIdentityConnector({
37
34
  config: {
38
35
  clientOptions: {
@@ -53,7 +50,6 @@ export function setupIdentityConnector(options, connector) {
53
50
  * @returns The identity connector.
54
51
  */
55
52
  export function setupIdentityResolverConnector(options, connector) {
56
- connector ??= IdentityResolverConnectorTypes.Iota;
57
53
  return new IotaIdentityResolverConnector({
58
54
  config: {
59
55
  clientOptions: {
@@ -1 +1 @@
1
- {"version":3,"file":"setupCommands.js","sourceRoot":"","sources":["../../../src/commands/setupCommands.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EACN,qBAAqB,EACrB,6BAA6B,EAC7B,MAAM,mCAAmC,CAAC;AAG3C,OAAO,EACN,2BAA2B,EAG3B,UAAU,EACV,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAC7E,OAAO,EAAE,8BAA8B,EAAE,MAAM,6CAA6C,CAAC;AAE7F;;GAEG;AACH,MAAM,UAAU,UAAU;IACzB,UAAU,EAAE,CAAC;IAEb,6BAA6B,CAAC,QAAQ,CACrC,WAAW,EACX,GAAG,EAAE,CACJ,IAAI,4BAA4B,CAAW;QAC1C,YAAY,YAAoB;KAChC,CAAC,CACH,CAAC;IACF,6BAA6B,CAAC,QAAQ,CACrC,cAAc,EACd,GAAG,EAAE,CACJ,IAAI,4BAA4B,CAAc;QAC7C,YAAY,eAAuB;KACnC,CAAC,CACH,CAAC;IAEF,MAAM,cAAc,GAAG,IAAI,2BAA2B,EAAE,CAAC;IACzD,qBAAqB,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC;AAC/D,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,sBAAsB,CACrC,OAAgG,EAChG,SAAkC;IAElC,SAAS,KAAK,sBAAsB,CAAC,IAAI,CAAC;IAE1C,OAAO,IAAI,qBAAqB,CAAC;QAChC,MAAM,EAAE;YACP,aAAa,EAAE;gBACd,GAAG,EAAE,OAAO,CAAC,YAAY;aACzB;YACD,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,EAAE;YAC9B,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,kBAAkB,EAAE,OAAO,CAAC,YAAY;SACxC;KACD,CAAC,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,8BAA8B,CAC7C,OAAmD,EACnD,SAA0C;IAE1C,SAAS,KAAK,8BAA8B,CAAC,IAAI,CAAC;IAElD,OAAO,IAAI,6BAA6B,CAAC;QACxC,MAAM,EAAE;YACP,aAAa,EAAE;gBACd,GAAG,EAAE,OAAO,CAAC,YAAY;aACzB;YACD,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,EAAE;SAC9B;KACD,CAAC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { MemoryEntityStorageConnector } from \"@twin.org/entity-storage-connector-memory\";\nimport { EntityStorageConnectorFactory } from \"@twin.org/entity-storage-models\";\nimport {\n\tIotaIdentityConnector,\n\tIotaIdentityResolverConnector\n} from \"@twin.org/identity-connector-iota\";\nimport type { IIdentityConnector, IIdentityResolverConnector } from \"@twin.org/identity-models\";\nimport { nameof } from \"@twin.org/nameof\";\nimport {\n\tEntityStorageVaultConnector,\n\ttype VaultKey,\n\ttype VaultSecret,\n\tinitSchema\n} from \"@twin.org/vault-connector-entity-storage\";\nimport { VaultConnectorFactory } from \"@twin.org/vault-models\";\nimport { IdentityConnectorTypes } from \"../models/identityConnectorTypes.js\";\nimport { IdentityResolverConnectorTypes } from \"../models/identityResolverConnectorTypes.js\";\n\n/**\n * Setup the vault for use in the CLI commands.\n */\nexport function setupVault(): void {\n\tinitSchema();\n\n\tEntityStorageConnectorFactory.register(\n\t\t\"vault-key\",\n\t\t() =>\n\t\t\tnew MemoryEntityStorageConnector<VaultKey>({\n\t\t\t\tentitySchema: nameof<VaultKey>()\n\t\t\t})\n\t);\n\tEntityStorageConnectorFactory.register(\n\t\t\"vault-secret\",\n\t\t() =>\n\t\t\tnew MemoryEntityStorageConnector<VaultSecret>({\n\t\t\t\tentitySchema: nameof<VaultSecret>()\n\t\t\t})\n\t);\n\n\tconst vaultConnector = new EntityStorageVaultConnector();\n\tVaultConnectorFactory.register(\"vault\", () => vaultConnector);\n}\n\n/**\n * Setup the identity connector for use in the CLI commands.\n * @param options The options for the identity connector.\n * @param options.nodeEndpoint The node endpoint.\n * @param options.network The network.\n * @param options.addressIndex The wallet index.\n * @param options.vaultSeedId The vault seed ID.\n * @param connector The connector to use.\n * @returns The identity connector.\n */\nexport function setupIdentityConnector(\n\toptions: { nodeEndpoint: string; network?: string; addressIndex?: number; vaultSeedId?: string },\n\tconnector?: IdentityConnectorTypes\n): IIdentityConnector {\n\tconnector ??= IdentityConnectorTypes.Iota;\n\n\treturn new IotaIdentityConnector({\n\t\tconfig: {\n\t\t\tclientOptions: {\n\t\t\t\turl: options.nodeEndpoint\n\t\t\t},\n\t\t\tnetwork: options.network ?? \"\",\n\t\t\tvaultSeedId: options.vaultSeedId,\n\t\t\twalletAddressIndex: options.addressIndex\n\t\t}\n\t});\n}\n\n/**\n * Setup the identity resolver connector for use in the CLI commands.\n * @param options The options for the identity connector.\n * @param options.nodeEndpoint The node endpoint.\n * @param options.network The network.\n * @param connector The connector to use.\n * @returns The identity connector.\n */\nexport function setupIdentityResolverConnector(\n\toptions: { nodeEndpoint: string; network?: string },\n\tconnector?: IdentityResolverConnectorTypes\n): IIdentityResolverConnector {\n\tconnector ??= IdentityResolverConnectorTypes.Iota;\n\n\treturn new IotaIdentityResolverConnector({\n\t\tconfig: {\n\t\t\tclientOptions: {\n\t\t\t\turl: options.nodeEndpoint\n\t\t\t},\n\t\t\tnetwork: options.network ?? \"\"\n\t\t}\n\t});\n}\n"]}
1
+ {"version":3,"file":"setupCommands.js","sourceRoot":"","sources":["../../../src/commands/setupCommands.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EACN,qBAAqB,EACrB,6BAA6B,EAC7B,MAAM,mCAAmC,CAAC;AAG3C,OAAO,EACN,2BAA2B,EAG3B,UAAU,EACV,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAI/D;;GAEG;AACH,MAAM,UAAU,UAAU;IACzB,UAAU,EAAE,CAAC;IAEb,6BAA6B,CAAC,QAAQ,CACrC,WAAW,EACX,GAAG,EAAE,CACJ,IAAI,4BAA4B,CAAW;QAC1C,YAAY,YAAoB;KAChC,CAAC,CACH,CAAC;IACF,6BAA6B,CAAC,QAAQ,CACrC,cAAc,EACd,GAAG,EAAE,CACJ,IAAI,4BAA4B,CAAc;QAC7C,YAAY,eAAuB;KACnC,CAAC,CACH,CAAC;IAEF,MAAM,cAAc,GAAG,IAAI,2BAA2B,EAAE,CAAC;IACzD,qBAAqB,CAAC,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC;AAC/D,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,sBAAsB,CACrC,OAAgG,EAChG,SAAkC;IAElC,OAAO,IAAI,qBAAqB,CAAC;QAChC,MAAM,EAAE;YACP,aAAa,EAAE;gBACd,GAAG,EAAE,OAAO,CAAC,YAAY;aACzB;YACD,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,EAAE;YAC9B,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,kBAAkB,EAAE,OAAO,CAAC,YAAY;SACxC;KACD,CAAC,CAAC;AACJ,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,8BAA8B,CAC7C,OAAmD,EACnD,SAA0C;IAE1C,OAAO,IAAI,6BAA6B,CAAC;QACxC,MAAM,EAAE;YACP,aAAa,EAAE;gBACd,GAAG,EAAE,OAAO,CAAC,YAAY;aACzB;YACD,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,EAAE;SAC9B;KACD,CAAC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { MemoryEntityStorageConnector } from \"@twin.org/entity-storage-connector-memory\";\nimport { EntityStorageConnectorFactory } from \"@twin.org/entity-storage-models\";\nimport {\n\tIotaIdentityConnector,\n\tIotaIdentityResolverConnector\n} from \"@twin.org/identity-connector-iota\";\nimport type { IIdentityConnector, IIdentityResolverConnector } from \"@twin.org/identity-models\";\nimport { nameof } from \"@twin.org/nameof\";\nimport {\n\tEntityStorageVaultConnector,\n\ttype VaultKey,\n\ttype VaultSecret,\n\tinitSchema\n} from \"@twin.org/vault-connector-entity-storage\";\nimport { VaultConnectorFactory } from \"@twin.org/vault-models\";\nimport type { IdentityConnectorTypes } from \"../models/identityConnectorTypes.js\";\nimport type { IdentityResolverConnectorTypes } from \"../models/identityResolverConnectorTypes.js\";\n\n/**\n * Setup the vault for use in the CLI commands.\n */\nexport function setupVault(): void {\n\tinitSchema();\n\n\tEntityStorageConnectorFactory.register(\n\t\t\"vault-key\",\n\t\t() =>\n\t\t\tnew MemoryEntityStorageConnector<VaultKey>({\n\t\t\t\tentitySchema: nameof<VaultKey>()\n\t\t\t})\n\t);\n\tEntityStorageConnectorFactory.register(\n\t\t\"vault-secret\",\n\t\t() =>\n\t\t\tnew MemoryEntityStorageConnector<VaultSecret>({\n\t\t\t\tentitySchema: nameof<VaultSecret>()\n\t\t\t})\n\t);\n\n\tconst vaultConnector = new EntityStorageVaultConnector();\n\tVaultConnectorFactory.register(\"vault\", () => vaultConnector);\n}\n\n/**\n * Setup the identity connector for use in the CLI commands.\n * @param options The options for the identity connector.\n * @param options.nodeEndpoint The node endpoint.\n * @param options.network The network.\n * @param options.addressIndex The wallet index.\n * @param options.vaultSeedId The vault seed ID.\n * @param connector The connector to use.\n * @returns The identity connector.\n */\nexport function setupIdentityConnector(\n\toptions: { nodeEndpoint: string; network?: string; addressIndex?: number; vaultSeedId?: string },\n\tconnector?: IdentityConnectorTypes\n): IIdentityConnector {\n\treturn new IotaIdentityConnector({\n\t\tconfig: {\n\t\t\tclientOptions: {\n\t\t\t\turl: options.nodeEndpoint\n\t\t\t},\n\t\t\tnetwork: options.network ?? \"\",\n\t\t\tvaultSeedId: options.vaultSeedId,\n\t\t\twalletAddressIndex: options.addressIndex\n\t\t}\n\t});\n}\n\n/**\n * Setup the identity resolver connector for use in the CLI commands.\n * @param options The options for the identity connector.\n * @param options.nodeEndpoint The node endpoint.\n * @param options.network The network.\n * @param connector The connector to use.\n * @returns The identity connector.\n */\nexport function setupIdentityResolverConnector(\n\toptions: { nodeEndpoint: string; network?: string },\n\tconnector?: IdentityResolverConnectorTypes\n): IIdentityResolverConnector {\n\treturn new IotaIdentityResolverConnector({\n\t\tconfig: {\n\t\t\tclientOptions: {\n\t\t\t\turl: options.nodeEndpoint\n\t\t\t},\n\t\t\tnetwork: options.network ?? \"\"\n\t\t}\n\t});\n}\n"]}
@@ -153,6 +153,9 @@
153
153
  "slip0010": {
154
154
  "invalidSeed": "The seed is invalid \"{seed}\""
155
155
  },
156
+ "pbkdf2": {
157
+ "keyLengthTooSmall": "The key length must be at least 1, it is \"{keyLength}\""
158
+ },
156
159
  "commands": {
157
160
  "common": {
158
161
  "missingEnv": "The \"{option}\" option is configured as an environment variable, but there is no environment variable with the name \"{value}\" set.",
@@ -309,7 +312,9 @@
309
312
  "transactionFailed": "The transaction failed",
310
313
  "addressNotFound": "The address is missing could not be found from the seed \"{address}\"",
311
314
  "gasStationTransactionFailed": "The gas station transaction failed",
312
- "dryRunFailed": "The dry run execution failed"
315
+ "dryRunFailed": "The dry run execution failed",
316
+ "fundingFailed": "Fund the address from faucet failed",
317
+ "faucetRateLimit": "Faucet rate limit exceeded"
313
318
  },
314
319
  "iotaIdentityUtils": {
315
320
  "getControllerCapInfoFailed": "Getting the controller capability info for the identity failed",
@@ -346,10 +351,6 @@
346
351
  },
347
352
  "iotaWalletConnector": {
348
353
  "transferFailed": "The wallet transfer failed."
349
- },
350
- "iotaFaucetConnector": {
351
- "fundingFailed": "Fund the address from faucet failed",
352
- "faucetRateLimit": "Faucet rate limit exceeded"
353
354
  }
354
355
  },
355
356
  "errorNames": {
@@ -1049,19 +1050,19 @@
1049
1050
  },
1050
1051
  "health": {
1051
1052
  "memoryEntityStorageConnector": {
1052
- "healthDescription": "Memory entity storage is always available"
1053
+ "healthDescription": "Memory entity storage for \"{entityType}\" is always available"
1053
1054
  },
1054
1055
  "iotaIdentityConnector": {
1055
- "healthDescription": "Connectivity and availability of the IOTA node",
1056
- "nodeHealthCheckFailed": "Failed to check IOTA node health status"
1056
+ "healthDescription": "Connectivity and availability of the IOTA node \"{endpoint}\"",
1057
+ "nodeHealthCheckFailed": "Failed to check IOTA node health status \"{endpoint}\""
1057
1058
  },
1058
1059
  "iotaIdentityConnectorGasStation": {
1059
- "healthDescription": "Connectivity and availability of the IOTA gas station",
1060
- "healthCheckFailed": "Failed to check gas station health status"
1060
+ "healthDescription": "Connectivity and availability of the IOTA gas station \"{endpoint}\"",
1061
+ "healthCheckFailed": "Failed to check gas station health status \"{endpoint}\""
1061
1062
  },
1062
1063
  "iotaIdentityResolverConnector": {
1063
- "healthDescription": "Connectivity and availability of the IOTA resolver node",
1064
- "nodeHealthCheckFailed": "Failed to check IOTA node health status"
1064
+ "healthDescription": "Connectivity and availability of the IOTA resolver node \"{endpoint}\"",
1065
+ "nodeHealthCheckFailed": "Failed to check IOTA node health status \"{endpoint}\""
1065
1066
  }
1066
1067
  }
1067
1068
  }
@@ -1,6 +1,6 @@
1
1
  import type { IIdentityConnector, IIdentityResolverConnector } from "@twin.org/identity-models";
2
- import { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
3
- import { IdentityResolverConnectorTypes } from "../models/identityResolverConnectorTypes.js";
2
+ import type { IdentityConnectorTypes } from "../models/identityConnectorTypes.js";
3
+ import type { IdentityResolverConnectorTypes } from "../models/identityResolverConnectorTypes.js";
4
4
  /**
5
5
  * Setup the vault for use in the CLI commands.
6
6
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.3-next.23](https://github.com/iotaledger/twin-identity/compare/identity-cli-v0.0.3-next.22...identity-cli-v0.0.3-next.23) (2026-05-12)
4
+
5
+
6
+ ### Features
7
+
8
+ * typescript 6 update ([e8806ad](https://github.com/iotaledger/twin-identity/commit/e8806ad6858c37be3c0f54c41cf654023773bef3))
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.22 to 0.0.3-next.23
16
+ * @twin.org/identity-connector-iota bumped from 0.0.3-next.22 to 0.0.3-next.23
17
+
18
+ ## [0.0.3-next.22](https://github.com/iotaledger/twin-identity/compare/identity-cli-v0.0.3-next.21...identity-cli-v0.0.3-next.22) (2026-05-07)
19
+
20
+
21
+ ### Miscellaneous Chores
22
+
23
+ * **identity-cli:** Synchronize repo versions
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * The following workspace dependencies were updated
29
+ * dependencies
30
+ * @twin.org/identity-models bumped from 0.0.3-next.21 to 0.0.3-next.22
31
+ * @twin.org/identity-connector-iota bumped from 0.0.3-next.21 to 0.0.3-next.22
32
+
3
33
  ## [0.0.3-next.21](https://github.com/iotaledger/twin-identity/compare/identity-cli-v0.0.3-next.20...identity-cli-v0.0.3-next.21) (2026-05-07)
4
34
 
5
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/identity-cli",
3
- "version": "0.0.3-next.21",
3
+ "version": "0.0.3-next.23",
4
4
  "description": "Command line tool for running identity workflows in local development and automation pipelines.",
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.21",
25
- "@twin.org/identity-models": "0.0.3-next.21",
24
+ "@twin.org/identity-connector-iota": "0.0.3-next.23",
25
+ "@twin.org/identity-models": "0.0.3-next.23",
26
26
  "@twin.org/nameof": "next",
27
27
  "@twin.org/standards-w3c-did": "next",
28
28
  "@twin.org/vault-connector-entity-storage": "next",