@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.
- package/dist/es/builders/engineEnvBuilder.js +52 -10
- package/dist/es/builders/engineEnvBuilder.js.map +1 -1
- package/dist/es/builders/engineServerEnvBuilder.js +32 -32
- package/dist/es/builders/engineServerEnvBuilder.js.map +1 -1
- package/dist/es/builders/extensionsBuilder.js +3 -3
- package/dist/es/builders/extensionsBuilder.js.map +1 -1
- package/dist/es/cli.js +6 -3
- package/dist/es/cli.js.map +1 -1
- package/dist/es/commands/bootstrapLegacy.js +173 -116
- package/dist/es/commands/bootstrapLegacy.js.map +1 -1
- package/dist/es/commands/help.js +1 -0
- package/dist/es/commands/help.js.map +1 -1
- package/dist/es/commands/identityCreate.js +38 -16
- package/dist/es/commands/identityCreate.js.map +1 -1
- package/dist/es/commands/identityImports.js +1 -0
- package/dist/es/commands/identityImports.js.map +1 -1
- package/dist/es/commands/identityVerificationMethodCreate.js +13 -11
- package/dist/es/commands/identityVerificationMethodCreate.js.map +1 -1
- package/dist/es/commands/identityVerificationMethodImport.js +2 -1
- package/dist/es/commands/identityVerificationMethodImport.js.map +1 -1
- package/dist/es/commands/nodeSetIdentity.js +5 -0
- package/dist/es/commands/nodeSetIdentity.js.map +1 -1
- package/dist/es/commands/removeTenantOrgAlias.js +3 -1
- package/dist/es/commands/removeTenantOrgAlias.js.map +1 -1
- package/dist/es/commands/setNodeOrgId.js +2 -0
- package/dist/es/commands/setNodeOrgId.js.map +1 -1
- package/dist/es/commands/setTenantOrgId.js +7 -66
- package/dist/es/commands/setTenantOrgId.js.map +1 -1
- package/dist/es/commands/tenantCreate.js +1 -7
- package/dist/es/commands/tenantCreate.js.map +1 -1
- package/dist/es/commands/tenantImport.js +17 -4
- package/dist/es/commands/tenantImport.js.map +1 -1
- package/dist/es/commands/tenantUpdate.js +21 -6
- package/dist/es/commands/tenantUpdate.js.map +1 -1
- package/dist/es/commands/vaultKeyImport.js +4 -3
- package/dist/es/commands/vaultKeyImport.js.map +1 -1
- package/dist/es/defaults.js +21 -0
- package/dist/es/defaults.js.map +1 -1
- package/dist/es/models/ICliArgs.js.map +1 -1
- package/dist/es/models/ICliCommand.js.map +1 -1
- package/dist/es/models/ICliCommandDefinition.js.map +1 -1
- package/dist/es/models/ICliCommandDefinitionParam.js.map +1 -1
- package/dist/es/models/IEngineEnvironmentVariables.js.map +1 -1
- package/dist/es/models/IEngineServerEnvironmentVariables.js.map +1 -1
- package/dist/es/models/nodeExtensionInitialiseEngineMethod.js.map +1 -1
- package/dist/es/models/nodeExtensionInitialiseEngineServerMethod.js.map +1 -1
- package/dist/es/models/nodeExtensionInitialiseMethod.js.map +1 -1
- package/dist/es/models/nodeExtensionShutdownMethod.js.map +1 -1
- package/dist/es/node.js +1 -1
- package/dist/es/node.js.map +1 -1
- package/dist/es/start.js +11 -13
- package/dist/es/start.js.map +1 -1
- package/dist/es/utils.js +5 -4
- package/dist/es/utils.js.map +1 -1
- package/dist/types/builders/engineEnvBuilder.d.ts +4 -4
- package/dist/types/builders/extensionsBuilder.d.ts +3 -3
- package/dist/types/cli.d.ts +2 -2
- package/dist/types/commands/bootstrapLegacy.d.ts +8 -7
- package/dist/types/commands/help.d.ts +1 -0
- package/dist/types/commands/identityCreate.d.ts +2 -0
- package/dist/types/commands/identityImports.d.ts +1 -0
- package/dist/types/commands/identityVerificationMethodImport.d.ts +2 -1
- package/dist/types/commands/nodeSetIdentity.d.ts +1 -0
- package/dist/types/commands/removeTenantOrgAlias.d.ts +2 -0
- package/dist/types/commands/setNodeOrgId.d.ts +2 -0
- package/dist/types/commands/setTenantOrgId.d.ts +5 -22
- package/dist/types/commands/tenantImport.d.ts +7 -4
- package/dist/types/commands/tenantUpdate.d.ts +5 -2
- package/dist/types/commands/vaultKeyImport.d.ts +4 -3
- package/dist/types/defaults.d.ts +21 -0
- package/dist/types/models/ICliArgs.d.ts +1 -1
- package/dist/types/models/ICliCommand.d.ts +1 -1
- package/dist/types/models/ICliCommandDefinition.d.ts +2 -2
- package/dist/types/models/ICliCommandDefinitionParam.d.ts +1 -1
- package/dist/types/models/IEngineEnvironmentVariables.d.ts +0 -4
- package/dist/types/models/IEngineServerEnvironmentVariables.d.ts +4 -0
- package/dist/types/models/nodeExtensionInitialiseEngineMethod.d.ts +1 -0
- package/dist/types/models/nodeExtensionInitialiseEngineServerMethod.d.ts +1 -0
- package/dist/types/models/nodeExtensionInitialiseMethod.d.ts +1 -0
- package/dist/types/models/nodeExtensionShutdownMethod.d.ts +1 -0
- package/dist/types/utils.d.ts +4 -3
- package/docs/changelog.md +15 -0
- package/docs/reference/functions/extensionsInitialiseEngine.md +1 -1
- package/docs/reference/functions/extensionsInitialiseEngineServer.md +1 -1
- package/docs/reference/functions/getScriptDirectory.md +1 -1
- package/docs/reference/functions/initialiseLocales.md +2 -0
- package/docs/reference/functions/isFederatedCatalogueRequired.md +3 -3
- package/docs/reference/functions/isRightsManagementRequired.md +1 -1
- package/docs/reference/functions/loadJsonFile.md +1 -1
- package/docs/reference/functions/loadTextFile.md +1 -1
- package/docs/reference/functions/processEnvOptions.md +1 -1
- package/docs/reference/functions/registerCommands.md +1 -1
- package/docs/reference/functions/shutdownExtensions.md +1 -1
- package/docs/reference/interfaces/ICliArgs.md +1 -1
- package/docs/reference/interfaces/ICliCommand.md +1 -1
- package/docs/reference/interfaces/ICliCommandDefinition.md +2 -2
- package/docs/reference/interfaces/ICliCommandDefinitionParam.md +1 -1
- package/docs/reference/interfaces/IEngineEnvironmentVariables.md +0 -8
- package/docs/reference/interfaces/IEngineServerEnvironmentVariables.md +8 -12
- package/docs/reference/interfaces/INodeEnvironmentVariables.md +12 -12
- package/docs/reference/type-aliases/NodeExtensionInitialiseEngineMethod.md +2 -0
- package/docs/reference/type-aliases/NodeExtensionInitialiseEngineServerMethod.md +2 -0
- package/docs/reference/type-aliases/NodeExtensionInitialiseMethod.md +2 -0
- package/docs/reference/type-aliases/NodeExtensionShutdownMethod.md +2 -0
- package/docs/reference/variables/ATTESTATION_VERIFICATION_METHOD_ID.md +2 -0
- package/docs/reference/variables/AUTH_SIGNING_KEY_ID.md +2 -0
- package/docs/reference/variables/BLOB_STORAGE_ENCRYPTION_KEY_ID.md +2 -0
- package/docs/reference/variables/CONTEXT_ID_HANDLER_FEATURE_DID.md +2 -0
- package/docs/reference/variables/CONTEXT_ID_HANDLER_FEATURE_TENANT.md +2 -0
- package/docs/reference/variables/IMMUTABLE_PROOF_VERIFICATION_METHOD_ID.md +2 -0
- package/docs/reference/variables/TRUST_VERIFICATION_METHOD_ID.md +2 -0
- package/locales/en.json +17 -9
- 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
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
> **isFederatedCatalogueRequired**(`envVars`): `boolean`
|
|
4
4
|
|
|
5
|
-
Checks if the
|
|
6
|
-
Returns true when
|
|
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
|
|
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
|
|
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
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Interface: ICliCommandDefinition
|
|
2
2
|
|
|
3
|
-
|
|
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
|
-
|
|
27
|
+
An example invocation string shown in help output.
|
|
28
28
|
|
|
29
29
|
***
|
|
30
30
|
|
|
@@ -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`
|
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
|
|
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
|
},
|