@twin.org/node-core 0.0.3-next.53 → 0.0.3-next.55

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.
Files changed (113) hide show
  1. package/dist/es/builders/engineEnvBuilder.js +52 -10
  2. package/dist/es/builders/engineEnvBuilder.js.map +1 -1
  3. package/dist/es/builders/engineServerEnvBuilder.js +32 -32
  4. package/dist/es/builders/engineServerEnvBuilder.js.map +1 -1
  5. package/dist/es/builders/extensionsBuilder.js +3 -3
  6. package/dist/es/builders/extensionsBuilder.js.map +1 -1
  7. package/dist/es/cli.js +6 -3
  8. package/dist/es/cli.js.map +1 -1
  9. package/dist/es/commands/bootstrapLegacy.js +173 -116
  10. package/dist/es/commands/bootstrapLegacy.js.map +1 -1
  11. package/dist/es/commands/help.js +1 -0
  12. package/dist/es/commands/help.js.map +1 -1
  13. package/dist/es/commands/identityCreate.js +38 -16
  14. package/dist/es/commands/identityCreate.js.map +1 -1
  15. package/dist/es/commands/identityImports.js +1 -0
  16. package/dist/es/commands/identityImports.js.map +1 -1
  17. package/dist/es/commands/identityVerificationMethodCreate.js +13 -11
  18. package/dist/es/commands/identityVerificationMethodCreate.js.map +1 -1
  19. package/dist/es/commands/identityVerificationMethodImport.js +2 -1
  20. package/dist/es/commands/identityVerificationMethodImport.js.map +1 -1
  21. package/dist/es/commands/nodeSetIdentity.js +5 -0
  22. package/dist/es/commands/nodeSetIdentity.js.map +1 -1
  23. package/dist/es/commands/removeTenantOrgAlias.js +3 -1
  24. package/dist/es/commands/removeTenantOrgAlias.js.map +1 -1
  25. package/dist/es/commands/setNodeOrgId.js +2 -0
  26. package/dist/es/commands/setNodeOrgId.js.map +1 -1
  27. package/dist/es/commands/setTenantOrgId.js +7 -66
  28. package/dist/es/commands/setTenantOrgId.js.map +1 -1
  29. package/dist/es/commands/tenantCreate.js +1 -7
  30. package/dist/es/commands/tenantCreate.js.map +1 -1
  31. package/dist/es/commands/tenantImport.js +17 -4
  32. package/dist/es/commands/tenantImport.js.map +1 -1
  33. package/dist/es/commands/tenantUpdate.js +21 -6
  34. package/dist/es/commands/tenantUpdate.js.map +1 -1
  35. package/dist/es/commands/vaultKeyImport.js +4 -3
  36. package/dist/es/commands/vaultKeyImport.js.map +1 -1
  37. package/dist/es/defaults.js +21 -0
  38. package/dist/es/defaults.js.map +1 -1
  39. package/dist/es/models/ICliArgs.js.map +1 -1
  40. package/dist/es/models/ICliCommand.js.map +1 -1
  41. package/dist/es/models/ICliCommandDefinition.js.map +1 -1
  42. package/dist/es/models/ICliCommandDefinitionParam.js.map +1 -1
  43. package/dist/es/models/IEngineEnvironmentVariables.js.map +1 -1
  44. package/dist/es/models/IEngineServerEnvironmentVariables.js.map +1 -1
  45. package/dist/es/models/nodeExtensionInitialiseEngineMethod.js.map +1 -1
  46. package/dist/es/models/nodeExtensionInitialiseEngineServerMethod.js.map +1 -1
  47. package/dist/es/models/nodeExtensionInitialiseMethod.js.map +1 -1
  48. package/dist/es/models/nodeExtensionShutdownMethod.js.map +1 -1
  49. package/dist/es/node.js +1 -1
  50. package/dist/es/node.js.map +1 -1
  51. package/dist/es/start.js +11 -13
  52. package/dist/es/start.js.map +1 -1
  53. package/dist/es/utils.js +5 -4
  54. package/dist/es/utils.js.map +1 -1
  55. package/dist/types/builders/engineEnvBuilder.d.ts +4 -4
  56. package/dist/types/builders/extensionsBuilder.d.ts +3 -3
  57. package/dist/types/cli.d.ts +2 -2
  58. package/dist/types/commands/bootstrapLegacy.d.ts +8 -7
  59. package/dist/types/commands/help.d.ts +1 -0
  60. package/dist/types/commands/identityCreate.d.ts +2 -0
  61. package/dist/types/commands/identityImports.d.ts +1 -0
  62. package/dist/types/commands/identityVerificationMethodImport.d.ts +2 -1
  63. package/dist/types/commands/nodeSetIdentity.d.ts +1 -0
  64. package/dist/types/commands/removeTenantOrgAlias.d.ts +2 -0
  65. package/dist/types/commands/setNodeOrgId.d.ts +2 -0
  66. package/dist/types/commands/setTenantOrgId.d.ts +5 -22
  67. package/dist/types/commands/tenantImport.d.ts +7 -4
  68. package/dist/types/commands/tenantUpdate.d.ts +5 -2
  69. package/dist/types/commands/vaultKeyImport.d.ts +4 -3
  70. package/dist/types/defaults.d.ts +21 -0
  71. package/dist/types/models/ICliArgs.d.ts +1 -1
  72. package/dist/types/models/ICliCommand.d.ts +1 -1
  73. package/dist/types/models/ICliCommandDefinition.d.ts +2 -2
  74. package/dist/types/models/ICliCommandDefinitionParam.d.ts +1 -1
  75. package/dist/types/models/IEngineEnvironmentVariables.d.ts +0 -4
  76. package/dist/types/models/IEngineServerEnvironmentVariables.d.ts +4 -0
  77. package/dist/types/models/nodeExtensionInitialiseEngineMethod.d.ts +1 -0
  78. package/dist/types/models/nodeExtensionInitialiseEngineServerMethod.d.ts +1 -0
  79. package/dist/types/models/nodeExtensionInitialiseMethod.d.ts +1 -0
  80. package/dist/types/models/nodeExtensionShutdownMethod.d.ts +1 -0
  81. package/dist/types/utils.d.ts +4 -3
  82. package/docs/changelog.md +15 -0
  83. package/docs/reference/functions/extensionsInitialiseEngine.md +1 -1
  84. package/docs/reference/functions/extensionsInitialiseEngineServer.md +1 -1
  85. package/docs/reference/functions/getScriptDirectory.md +1 -1
  86. package/docs/reference/functions/initialiseLocales.md +2 -0
  87. package/docs/reference/functions/isFederatedCatalogueRequired.md +3 -3
  88. package/docs/reference/functions/isRightsManagementRequired.md +1 -1
  89. package/docs/reference/functions/loadJsonFile.md +1 -1
  90. package/docs/reference/functions/loadTextFile.md +1 -1
  91. package/docs/reference/functions/processEnvOptions.md +1 -1
  92. package/docs/reference/functions/registerCommands.md +1 -1
  93. package/docs/reference/functions/shutdownExtensions.md +1 -1
  94. package/docs/reference/interfaces/ICliArgs.md +1 -1
  95. package/docs/reference/interfaces/ICliCommand.md +1 -1
  96. package/docs/reference/interfaces/ICliCommandDefinition.md +2 -2
  97. package/docs/reference/interfaces/ICliCommandDefinitionParam.md +1 -1
  98. package/docs/reference/interfaces/IEngineEnvironmentVariables.md +0 -8
  99. package/docs/reference/interfaces/IEngineServerEnvironmentVariables.md +8 -12
  100. package/docs/reference/interfaces/INodeEnvironmentVariables.md +12 -12
  101. package/docs/reference/type-aliases/NodeExtensionInitialiseEngineMethod.md +2 -0
  102. package/docs/reference/type-aliases/NodeExtensionInitialiseEngineServerMethod.md +2 -0
  103. package/docs/reference/type-aliases/NodeExtensionInitialiseMethod.md +2 -0
  104. package/docs/reference/type-aliases/NodeExtensionShutdownMethod.md +2 -0
  105. package/docs/reference/variables/ATTESTATION_VERIFICATION_METHOD_ID.md +2 -0
  106. package/docs/reference/variables/AUTH_SIGNING_KEY_ID.md +2 -0
  107. package/docs/reference/variables/BLOB_STORAGE_ENCRYPTION_KEY_ID.md +2 -0
  108. package/docs/reference/variables/CONTEXT_ID_HANDLER_FEATURE_DID.md +2 -0
  109. package/docs/reference/variables/CONTEXT_ID_HANDLER_FEATURE_TENANT.md +2 -0
  110. package/docs/reference/variables/IMMUTABLE_PROOF_VERIFICATION_METHOD_ID.md +2 -0
  111. package/docs/reference/variables/TRUST_VERIFICATION_METHOD_ID.md +2 -0
  112. package/locales/en.json +17 -9
  113. package/package.json +1 -1
package/docs/changelog.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.3-next.55](https://github.com/iotaledger/twin-node/compare/node-core-v0.0.3-next.54...node-core-v0.0.3-next.55) (2026-06-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * test endpoints ([2b83ed0](https://github.com/iotaledger/twin-node/commit/2b83ed0d4f1da473a525a95202e01d9680c7d26c))
9
+ * use async getStore in tests ([2189df4](https://github.com/iotaledger/twin-node/commit/2189df49a57637ba8effdee50965473f0a814c6c))
10
+
11
+ ## [0.0.3-next.54](https://github.com/iotaledger/twin-node/compare/node-core-v0.0.3-next.53...node-core-v0.0.3-next.54) (2026-06-12)
12
+
13
+
14
+ ### Features
15
+
16
+ * improved cli commands ([#206](https://github.com/iotaledger/twin-node/issues/206)) ([cf00850](https://github.com/iotaledger/twin-node/commit/cf0085023a66e187aaaaf3889128c845c73a1faf))
17
+
3
18
  ## [0.0.3-next.53](https://github.com/iotaledger/twin-node/compare/node-core-v0.0.3-next.52...node-core-v0.0.3-next.53) (2026-06-11)
4
19
 
5
20
 
@@ -22,4 +22,4 @@ The engine core instance.
22
22
 
23
23
  `Promise`\<`void`\>
24
24
 
25
- Nothing.
25
+ A promise that resolves when all extension engine initialisation methods have completed.
@@ -28,4 +28,4 @@ The engine server instance.
28
28
 
29
29
  `Promise`\<`void`\>
30
30
 
31
- Nothing.
31
+ A promise that resolves when all extension engine-server initialisation methods have completed.
@@ -16,4 +16,4 @@ The command line arguments.
16
16
 
17
17
  `string`
18
18
 
19
- The execution directory.
19
+ The directory containing the entry-point script, or the current working directory if not determinable.
@@ -15,3 +15,5 @@ The directory containing the locales.
15
15
  ## Returns
16
16
 
17
17
  `Promise`\<`void`\>
18
+
19
+ A promise that resolves when the locale dictionary has been loaded.
@@ -2,8 +2,8 @@
2
2
 
3
3
  > **isFederatedCatalogueRequired**(`envVars`): `boolean`
4
4
 
5
- Checks if the immutable proof subsystem is required.
6
- Returns true when any component that depends on the immutable proof subsystem is enabled.
5
+ Checks if the federated catalogue subsystem is required.
6
+ Returns true when the catalogue is explicitly enabled, a remote endpoint is configured, filters are set, or dataspace is enabled.
7
7
 
8
8
  ## Parameters
9
9
 
@@ -17,4 +17,4 @@ The environment variables.
17
17
 
18
18
  `boolean`
19
19
 
20
- True if verifiable storage is enabled.
20
+ True if the federated catalogue is required.
@@ -4,7 +4,7 @@
4
4
 
5
5
  Checks if the rights management subsystem is required.
6
6
  Returns true when any component that depends on the rights management subsystem is enabled.
7
- Note: rights management has no standalone enable flag it is gated entirely on
7
+ Note: rights management has no standalone enable flag - it is gated entirely on
8
8
  `dataspaceEnabled`. Setting `TWIN_RIGHTS_MANAGEMENT_*` env var in isolation does not
9
9
  enable the subsystem; `TWIN_DATASPACE_ENABLED` must also be true.
10
10
 
@@ -22,4 +22,4 @@ The filename of the JSON file to load.
22
22
 
23
23
  `Promise`\<`T`\>
24
24
 
25
- The contents of the JSON file or null if it could not be loaded.
25
+ The parsed JSON content of the file.
@@ -16,4 +16,4 @@ The filename of the text file to load.
16
16
 
17
17
  `Promise`\<`string`\>
18
18
 
19
- The contents of the text file if it could not be loaded.
19
+ The contents of the text file as a UTF-8 string.
@@ -20,7 +20,7 @@ The options.
20
20
 
21
21
  `void`
22
22
 
23
- The processed parameters.
23
+ The substituted options, mutated in place with env variable values resolved.
24
24
 
25
25
  ## Throws
26
26
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  > **registerCommands**(): `void`
4
4
 
5
- Register available CLI commands.
5
+ Register all built-in CLI command definitions into the shared command map.
6
6
 
7
7
  ## Returns
8
8
 
@@ -22,4 +22,4 @@ The engine core instance.
22
22
 
23
23
  `Promise`\<`void`\>
24
24
 
25
- Nothing.
25
+ A promise that resolves when all extension shutdown methods have completed.
@@ -1,6 +1,6 @@
1
1
  # Interface: ICliArgs
2
2
 
3
- Command to execute in the CLI.
3
+ Parsed command line arguments passed to the CLI.
4
4
 
5
5
  ## Properties
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Interface: ICliCommand
2
2
 
3
- Command to execute in the CLI.
3
+ A resolved CLI command ready for execution, pairing a definition with its populated parameters.
4
4
 
5
5
  ## Properties
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Interface: ICliCommandDefinition
2
2
 
3
- Command to execute in the CLI.
3
+ Static definition of a CLI command including its name, parameters, and execution action.
4
4
 
5
5
  ## Properties
6
6
 
@@ -24,7 +24,7 @@ The command description.
24
24
 
25
25
  > **example**: `string`
26
26
 
27
- The example.
27
+ An example invocation string shown in help output.
28
28
 
29
29
  ***
30
30
 
@@ -1,6 +1,6 @@
1
1
  # Interface: ICliCommandDefinitionParam
2
2
 
3
- Command param to execute in the CLI.
3
+ Definition of a single parameter accepted by a CLI command.
4
4
 
5
5
  ## Properties
6
6
 
@@ -40,14 +40,6 @@ The name of the state file.
40
40
 
41
41
  ***
42
42
 
43
- ### nodeIdentityEnabled? {#nodeidentityenabled}
44
-
45
- > `optional` **nodeIdentityEnabled?**: `string`
46
-
47
- Does the node have a unique ID, defaults to true.
48
-
49
- ***
50
-
51
43
  ### tenantEnabled? {#tenantenabled}
52
44
 
53
45
  > `optional` **tenantEnabled?**: `string`
@@ -60,18 +60,6 @@ The name of the state file.
60
60
 
61
61
  ***
62
62
 
63
- ### nodeIdentityEnabled? {#nodeidentityenabled}
64
-
65
- > `optional` **nodeIdentityEnabled?**: `string`
66
-
67
- Does the node have a unique ID, defaults to true.
68
-
69
- #### Inherited from
70
-
71
- [`IEngineEnvironmentVariables`](IEngineEnvironmentVariables.md).[`nodeIdentityEnabled`](IEngineEnvironmentVariables.md#nodeidentityenabled)
72
-
73
- ***
74
-
75
63
  ### tenantEnabled? {#tenantenabled}
76
64
 
77
65
  > `optional` **tenantEnabled?**: `string`
@@ -1872,6 +1860,14 @@ The id of the key in the vault to use for signing in auth operations.
1872
1860
 
1873
1861
  ***
1874
1862
 
1863
+ ### authApiKeyHeader? {#authapikeyheader}
1864
+
1865
+ > `optional` **authApiKeyHeader?**: `string`
1866
+
1867
+ The HTTP header name used to pass the API key on requests, defaults to x-api-key.
1868
+
1869
+ ***
1870
+
1875
1871
  ### hostingParamEncryptionKeyId? {#hostingparamencryptionkeyid}
1876
1872
 
1877
1873
  > `optional` **hostingParamEncryptionKeyId?**: `string`
@@ -56,18 +56,6 @@ The name of the state file.
56
56
 
57
57
  ***
58
58
 
59
- ### nodeIdentityEnabled? {#nodeidentityenabled}
60
-
61
- > `optional` **nodeIdentityEnabled?**: `string`
62
-
63
- Does the node have a unique ID, defaults to true.
64
-
65
- #### Inherited from
66
-
67
- [`IEngineServerEnvironmentVariables`](IEngineServerEnvironmentVariables.md).[`nodeIdentityEnabled`](IEngineServerEnvironmentVariables.md#nodeidentityenabled)
68
-
69
- ***
70
-
71
59
  ### tenantEnabled? {#tenantenabled}
72
60
 
73
61
  > `optional` **tenantEnabled?**: `string`
@@ -1908,6 +1896,18 @@ The id of the key in the vault to use for signing in auth operations.
1908
1896
 
1909
1897
  ***
1910
1898
 
1899
+ ### authApiKeyHeader? {#authapikeyheader}
1900
+
1901
+ > `optional` **authApiKeyHeader?**: `string`
1902
+
1903
+ The HTTP header name used to pass the API key on requests, defaults to x-api-key.
1904
+
1905
+ #### Inherited from
1906
+
1907
+ [`IEngineServerEnvironmentVariables`](IEngineServerEnvironmentVariables.md).[`authApiKeyHeader`](IEngineServerEnvironmentVariables.md#authapikeyheader)
1908
+
1909
+ ***
1910
+
1911
1911
  ### hostingParamEncryptionKeyId? {#hostingparamencryptionkeyid}
1912
1912
 
1913
1913
  > `optional` **hostingParamEncryptionKeyId?**: `string`
@@ -16,3 +16,5 @@ The engine core instance.
16
16
  ## Returns
17
17
 
18
18
  `Promise`\<`void`\>
19
+
20
+ A promise that resolves when the extension engine initialisation is complete.
@@ -22,3 +22,5 @@ The engine server instance.
22
22
  ## Returns
23
23
 
24
24
  `Promise`\<`void`\>
25
+
26
+ A promise that resolves when the extension engine-server initialisation is complete.
@@ -21,3 +21,5 @@ The node engine config.
21
21
  ## Returns
22
22
 
23
23
  `Promise`\<`void`\>
24
+
25
+ A promise that resolves when the extension configuration initialisation is complete.
@@ -8,3 +8,5 @@ This is called when the engine is shutting down.
8
8
  ## Returns
9
9
 
10
10
  `Promise`\<`void`\>
11
+
12
+ A promise that resolves when the extension shutdown is complete.
@@ -1,3 +1,5 @@
1
1
  # Variable: ATTESTATION\_VERIFICATION\_METHOD\_ID
2
2
 
3
3
  > `const` **ATTESTATION\_VERIFICATION\_METHOD\_ID**: `"attestation-assertion"` = `"attestation-assertion"`
4
+
5
+ Default verification method fragment ID for attestation.
@@ -1,3 +1,5 @@
1
1
  # Variable: AUTH\_SIGNING\_KEY\_ID
2
2
 
3
3
  > `const` **AUTH\_SIGNING\_KEY\_ID**: `"auth-signing"` = `"auth-signing"`
4
+
5
+ Default vault key ID used for signing authentication tokens.
@@ -1,3 +1,5 @@
1
1
  # Variable: BLOB\_STORAGE\_ENCRYPTION\_KEY\_ID
2
2
 
3
3
  > `const` **BLOB\_STORAGE\_ENCRYPTION\_KEY\_ID**: `"blob-encryption"` = `"blob-encryption"`
4
+
5
+ Default vault key ID for blob storage encryption.
@@ -1,3 +1,5 @@
1
1
  # Variable: CONTEXT\_ID\_HANDLER\_FEATURE\_DID
2
2
 
3
3
  > `const` **CONTEXT\_ID\_HANDLER\_FEATURE\_DID**: `"did"` = `"did"`
4
+
5
+ Feature tag identifying the DID context ID handler.
@@ -1,3 +1,5 @@
1
1
  # Variable: CONTEXT\_ID\_HANDLER\_FEATURE\_TENANT
2
2
 
3
3
  > `const` **CONTEXT\_ID\_HANDLER\_FEATURE\_TENANT**: `"tenant"` = `"tenant"`
4
+
5
+ Feature tag identifying the tenant context ID handler.
@@ -1,3 +1,5 @@
1
1
  # Variable: IMMUTABLE\_PROOF\_VERIFICATION\_METHOD\_ID
2
2
 
3
3
  > `const` **IMMUTABLE\_PROOF\_VERIFICATION\_METHOD\_ID**: `"immutable-proof-assertion"` = `"immutable-proof-assertion"`
4
+
5
+ Default verification method fragment ID for immutable proofs.
@@ -1,3 +1,5 @@
1
1
  # Variable: TRUST\_VERIFICATION\_METHOD\_ID
2
2
 
3
3
  > `const` **TRUST\_VERIFICATION\_METHOD\_ID**: `"trust-assertion"` = `"trust-assertion"`
4
+
5
+ Default verification method fragment ID for trust assertions.
package/locales/en.json CHANGED
@@ -18,10 +18,11 @@
18
18
  },
19
19
  "bootstrapLegacy": {
20
20
  "noFeaturesEnabled": "No features are enabled in legacy bootstrap mode, at least one feature must be enabled.",
21
- "organizationNotSet": "The organisation identity has not been set. Run bootstrap with the \"node-identity\" feature first."
21
+ "organizationNotSet": "The organisation identity has not been set. Run \"set-node-org-id\"."
22
22
  },
23
23
  "identityCreate": {
24
24
  "invalidMnemonic": "The mnemonic is invalid, it should be 24 words from the standard wordlist.",
25
+ "onlyOneAssignmentOptionAllowed": "Only one of node-id, node-organization-id, or tenant-organization-id can be set at the same time.",
25
26
  "nodeOrganizationIdNotAvailableInMultiTenantMode": "The node-organization-id option is not available in multi-tenant mode, use tenant-organization-id instead."
26
27
  },
27
28
  "identityImport": {
@@ -61,8 +62,7 @@
61
62
  "notAvailableInMultiTenantMode": "The set-node-org-id command is not available in multi-tenant mode, use set-tenant-org-id instead."
62
63
  },
63
64
  "applyOrganizationIdToTenant": {
64
- "tenantAdminComponentNotRegistered": "Multi-tenant support must be enabled to use this command.",
65
- "organizationIdAlreadyInUse": "The organization ID \"{organizationId}\" is already assigned to tenant \"{conflictingTenantId}\"."
65
+ "tenantAdminComponentNotRegistered": "Multi-tenant support must be enabled to use this command."
66
66
  },
67
67
  "removeTenantOrgAlias": {
68
68
  "tenantAdminComponentNotRegistered": "Multi-tenant support must be enabled to use this command.",
@@ -111,14 +111,12 @@
111
111
  "nodeIdentityCreate": "Creating node identity",
112
112
  "nodeAuthKeyCreate": "Creating node auth key",
113
113
  "trustVerificationMethodCreate": "Creating trust verification method for organisation identity",
114
- "nodeIdentitySet": "Setting node identity",
115
114
  "nodeTenantCreate": "Creating node tenant",
116
115
  "organisationCreate": "Creating organisation identity",
117
116
  "blobStorageKeyCreate": "Creating blob storage encryption key for organisation identity",
118
117
  "attestationMethodCreate": "Creating attestation method for organisation identity",
119
118
  "immutableProofMethodCreate": "Creating immutable proof method for organisation identity",
120
119
  "nodeOrganizationIdSet": "Setting node organisation ID",
121
- "tenantOrganizationIdSet": "Setting tenant organisation ID",
122
120
  "adminIdentityCreate": "Creating admin user identity",
123
121
  "adminUserCreate": "Creating admin user",
124
122
  "tenantFallback": "No Node-labelled tenant found; using first available tenant"
@@ -155,6 +153,9 @@
155
153
  "output-env-prefix": {
156
154
  "description": "Prefix to use for variables in the output .env file."
157
155
  },
156
+ "node-id": {
157
+ "description": "If true, set the created identity DID as the node identity."
158
+ },
158
159
  "node-organization-id": {
159
160
  "description": "If true, set the created identity DID as the node organization ID (not available in multi-tenant mode)."
160
161
  },
@@ -167,12 +168,12 @@
167
168
  "processingMnemonic": "Processing mnemonic",
168
169
  "readingMnemonic": "Reading mnemonic",
169
170
  "storingMnemonic": "Storing mnemonic",
170
- "existingMnemonic": "Mnemonic already exists",
171
+ "existingMnemonic": "Mnemonic already exists, skipping creation",
171
172
  "noExistingMnemonic": "No existing mnemonic found",
172
173
  "generatingMnemonic": "Generating mnemonic",
173
174
  "processingIdentity": "Processing identity",
174
175
  "resolvingIdentity": "Resolving identity",
175
- "existingIdentity": "Identity already exists",
176
+ "existingIdentity": "Identity already exists, skipping creation",
176
177
  "noIdentityFound": "No identity found",
177
178
  "creatingIdentity": "Creating identity",
178
179
  "createdIdentity": "Created identity",
@@ -349,7 +350,8 @@
349
350
  },
350
351
  "labels": {
351
352
  "resolvingIdentity": "Resolving identity",
352
- "stored": "The node identity has been stored"
353
+ "stored": "The node identity has been stored",
354
+ "skipping": "The node identity has not changed, skipping"
353
355
  }
354
356
  },
355
357
  "tenant-create": {
@@ -398,7 +400,7 @@
398
400
  },
399
401
  "tenant-import": {
400
402
  "description": "Import a tenant with associated api key",
401
- "example": "tenant-import --tenant-id=\"0011..aabb\" --api-key=\"aabb..0099\" --label=\"My Tenant\" --public-origin=\"https://example.com:1234\"",
403
+ "example": "tenant-import --tenant-id=\"0011..aabb\" --api-key=\"aabb..0099\" --organization-id=\"did:iota:...\" --label=\"My Tenant\" --public-origin=\"https://example.com:1234\"",
402
404
  "params": {
403
405
  "env-prefix": {
404
406
  "description": "Prefix to use for standard .env files e.g. TWIN_."
@@ -409,6 +411,9 @@
409
411
  "api-key": {
410
412
  "description": "The API key to associate with the tenant id."
411
413
  },
414
+ "organization-id": {
415
+ "description": "The organization DID to associate with the tenant."
416
+ },
412
417
  "label": {
413
418
  "description": "A descriptive label for the tenant."
414
419
  },
@@ -437,6 +442,9 @@
437
442
  "api-key": {
438
443
  "description": "The API key to associate with the tenant id."
439
444
  },
445
+ "organization-id": {
446
+ "description": "The organization DID to associate with the tenant."
447
+ },
440
448
  "label": {
441
449
  "description": "A descriptive label for the tenant."
442
450
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/node-core",
3
- "version": "0.0.3-next.53",
3
+ "version": "0.0.3-next.55",
4
4
  "description": "TWIN Node Core for serving APIs using the specified configuration",
5
5
  "repository": {
6
6
  "type": "git",