@twin.org/node-core 0.0.3-next.1 → 0.0.3-next.11

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 (145) hide show
  1. package/dist/es/builders/engineEnvBuilder.js +155 -74
  2. package/dist/es/builders/engineEnvBuilder.js.map +1 -1
  3. package/dist/es/builders/engineServerEnvBuilder.js +24 -15
  4. package/dist/es/builders/engineServerEnvBuilder.js.map +1 -1
  5. package/dist/es/builders/extensionsBuilder.js +26 -17
  6. package/dist/es/builders/extensionsBuilder.js.map +1 -1
  7. package/dist/es/cli.js +255 -0
  8. package/dist/es/cli.js.map +1 -0
  9. package/dist/es/commands/bootstrapLegacy.js +175 -0
  10. package/dist/es/commands/bootstrapLegacy.js.map +1 -0
  11. package/dist/es/commands/help.js +85 -0
  12. package/dist/es/commands/help.js.map +1 -0
  13. package/dist/es/commands/identityCreate.js +310 -0
  14. package/dist/es/commands/identityCreate.js.map +1 -0
  15. package/dist/es/commands/identityImports.js +76 -0
  16. package/dist/es/commands/identityImports.js.map +1 -0
  17. package/dist/es/commands/identityVerifiableCredentialCreate.js +140 -0
  18. package/dist/es/commands/identityVerifiableCredentialCreate.js.map +1 -0
  19. package/dist/es/commands/identityVerificationMethodCreate.js +208 -0
  20. package/dist/es/commands/identityVerificationMethodCreate.js.map +1 -0
  21. package/dist/es/commands/identityVerificationMethodImport.js +120 -0
  22. package/dist/es/commands/identityVerificationMethodImport.js.map +1 -0
  23. package/dist/es/commands/nodeSetIdentity.js +51 -0
  24. package/dist/es/commands/nodeSetIdentity.js.map +1 -0
  25. package/dist/es/commands/nodeSetTenant.js +49 -0
  26. package/dist/es/commands/nodeSetTenant.js.map +1 -0
  27. package/dist/es/commands/tenantCreate.js +120 -0
  28. package/dist/es/commands/tenantCreate.js.map +1 -0
  29. package/dist/es/commands/tenantImport.js +78 -0
  30. package/dist/es/commands/tenantImport.js.map +1 -0
  31. package/dist/es/commands/userCreate.js +197 -0
  32. package/dist/es/commands/userCreate.js.map +1 -0
  33. package/dist/es/commands/vaultKeyCreate.js +185 -0
  34. package/dist/es/commands/vaultKeyCreate.js.map +1 -0
  35. package/dist/es/commands/vaultKeyImport.js +98 -0
  36. package/dist/es/commands/vaultKeyImport.js.map +1 -0
  37. package/dist/es/defaults.js +20 -1
  38. package/dist/es/defaults.js.map +1 -1
  39. package/dist/es/index.js +7 -3
  40. package/dist/es/index.js.map +1 -1
  41. package/dist/es/models/ICliArgs.js +4 -0
  42. package/dist/es/models/ICliArgs.js.map +1 -0
  43. package/dist/es/models/ICliCommand.js +2 -0
  44. package/dist/es/models/ICliCommand.js.map +1 -0
  45. package/dist/es/models/ICliCommandDefinition.js +2 -0
  46. package/dist/es/models/ICliCommandDefinition.js.map +1 -0
  47. package/dist/es/models/ICliCommandDefinitionParam.js +2 -0
  48. package/dist/es/models/ICliCommandDefinitionParam.js.map +1 -0
  49. package/dist/es/models/IEngineEnvironmentVariables.js.map +1 -1
  50. package/dist/es/models/INodeEngineState.js.map +1 -1
  51. package/dist/es/models/INodeEnvironmentVariables.js.map +1 -1
  52. package/dist/es/models/INodeOptions.js.map +1 -1
  53. package/dist/es/models/cliCommandParamType.js +4 -0
  54. package/dist/es/models/cliCommandParamType.js.map +1 -0
  55. package/dist/es/node.js +59 -39
  56. package/dist/es/node.js.map +1 -1
  57. package/dist/es/start.js +128 -0
  58. package/dist/es/start.js.map +1 -0
  59. package/dist/es/utils.js +5 -22
  60. package/dist/es/utils.js.map +1 -1
  61. package/dist/types/builders/engineEnvBuilder.d.ts +4 -1
  62. package/dist/types/builders/engineServerEnvBuilder.d.ts +5 -2
  63. package/dist/types/cli.d.ts +66 -0
  64. package/dist/types/commands/bootstrapLegacy.d.ts +66 -0
  65. package/dist/types/commands/help.d.ts +23 -0
  66. package/dist/types/commands/identityCreate.d.ts +39 -0
  67. package/dist/types/commands/identityImports.d.ts +24 -0
  68. package/dist/types/commands/identityVerifiableCredentialCreate.d.ts +43 -0
  69. package/dist/types/commands/identityVerificationMethodCreate.d.ts +47 -0
  70. package/dist/types/commands/identityVerificationMethodImport.d.ts +31 -0
  71. package/dist/types/commands/nodeSetIdentity.d.ts +22 -0
  72. package/dist/types/commands/nodeSetTenant.d.ts +22 -0
  73. package/dist/types/commands/tenantCreate.d.ts +35 -0
  74. package/dist/types/commands/tenantImport.d.ts +24 -0
  75. package/dist/types/commands/userCreate.d.ts +46 -0
  76. package/dist/types/commands/vaultKeyCreate.d.ts +43 -0
  77. package/dist/types/commands/vaultKeyImport.d.ts +28 -0
  78. package/dist/types/defaults.d.ts +11 -1
  79. package/dist/types/index.d.ts +7 -3
  80. package/dist/types/models/ICliArgs.d.ts +20 -0
  81. package/dist/types/models/ICliCommand.d.ts +17 -0
  82. package/dist/types/models/ICliCommandDefinition.d.ts +46 -0
  83. package/dist/types/models/ICliCommandDefinitionParam.d.ts +35 -0
  84. package/dist/types/models/IEngineEnvironmentVariables.d.ts +51 -42
  85. package/dist/types/models/INodeEngineState.d.ts +0 -8
  86. package/dist/types/models/INodeEnvironmentVariables.d.ts +0 -38
  87. package/dist/types/models/INodeOptions.d.ts +2 -2
  88. package/dist/types/models/cliCommandParamType.d.ts +4 -0
  89. package/dist/types/node.d.ts +8 -4
  90. package/dist/types/{server.d.ts → start.d.ts} +7 -2
  91. package/dist/types/utils.d.ts +2 -9
  92. package/docs/changelog.md +70 -0
  93. package/docs/reference/functions/buildConfiguration.md +3 -3
  94. package/docs/reference/functions/buildEngineConfiguration.md +1 -1
  95. package/docs/reference/functions/buildEngineServerConfiguration.md +3 -3
  96. package/docs/reference/functions/constructCliCommand.md +27 -0
  97. package/docs/reference/functions/executeCommand.md +29 -0
  98. package/docs/reference/functions/getEnvDefaults.md +19 -0
  99. package/docs/reference/functions/getExecutionDirectory.md +9 -1
  100. package/docs/reference/functions/initCli.md +27 -0
  101. package/docs/reference/functions/parseCommandLineArgs.md +19 -0
  102. package/docs/reference/functions/processEnvOptions.md +27 -0
  103. package/docs/reference/functions/registerCommands.md +9 -0
  104. package/docs/reference/functions/run.md +8 -2
  105. package/docs/reference/functions/start.md +10 -4
  106. package/docs/reference/functions/substituteEnvOptions.md +25 -0
  107. package/docs/reference/index.md +15 -12
  108. package/docs/reference/interfaces/ICliArgs.md +35 -0
  109. package/docs/reference/interfaces/ICliCommand.md +23 -0
  110. package/docs/reference/interfaces/ICliCommandDefinition.md +101 -0
  111. package/docs/reference/interfaces/ICliCommandDefinitionParam.md +65 -0
  112. package/docs/reference/interfaces/IEngineEnvironmentVariables.md +90 -65
  113. package/docs/reference/interfaces/IEngineServerEnvironmentVariables.md +129 -88
  114. package/docs/reference/interfaces/INodeEngineState.md +0 -16
  115. package/docs/reference/interfaces/INodeEnvironmentVariables.md +129 -172
  116. package/docs/reference/interfaces/INodeOptions.md +2 -2
  117. package/docs/reference/type-aliases/CliCommandParamType.md +5 -0
  118. package/docs/reference/variables/CONTEXT_ID_HANDLER_FEATURE_DID.md +3 -0
  119. package/docs/reference/variables/CONTEXT_ID_HANDLER_FEATURE_TENANT.md +3 -0
  120. package/docs/reference/variables/VC_AUTHENTICATION_VERIFICATION_METHOD_ID.md +1 -1
  121. package/locales/en.json +463 -30
  122. package/package.json +3 -1
  123. package/dist/es/bootstrap.js +0 -374
  124. package/dist/es/bootstrap.js.map +0 -1
  125. package/dist/es/identity.js +0 -169
  126. package/dist/es/identity.js.map +0 -1
  127. package/dist/es/models/nodeFeatures.js +0 -21
  128. package/dist/es/models/nodeFeatures.js.map +0 -1
  129. package/dist/es/server.js +0 -74
  130. package/dist/es/server.js.map +0 -1
  131. package/dist/types/bootstrap.d.ts +0 -76
  132. package/dist/types/identity.d.ts +0 -14
  133. package/dist/types/models/nodeFeatures.d.ts +0 -21
  134. package/docs/reference/functions/bootstrap.md +0 -29
  135. package/docs/reference/functions/bootstrapAuth.md +0 -35
  136. package/docs/reference/functions/bootstrapBlobEncryption.md +0 -35
  137. package/docs/reference/functions/bootstrapContextIdHandlers.md +0 -35
  138. package/docs/reference/functions/bootstrapImmutableProofMethod.md +0 -35
  139. package/docs/reference/functions/bootstrapNodeAdminUser.md +0 -35
  140. package/docs/reference/functions/bootstrapNodeId.md +0 -35
  141. package/docs/reference/functions/bootstrapSynchronisedStorage.md +0 -35
  142. package/docs/reference/functions/bootstrapTenantId.md +0 -35
  143. package/docs/reference/functions/getFeatures.md +0 -19
  144. package/docs/reference/type-aliases/NodeFeatures.md +0 -5
  145. package/docs/reference/variables/NodeFeatures.md +0 -25
@@ -1,9 +1,17 @@
1
1
  # Function: getExecutionDirectory()
2
2
 
3
- > **getExecutionDirectory**(): `string`
3
+ > **getExecutionDirectory**(`args?`): `string`
4
4
 
5
5
  Get the directory where the application is being executed.
6
6
 
7
+ ## Parameters
8
+
9
+ ### args?
10
+
11
+ `string`[]
12
+
13
+ The command line arguments.
14
+
7
15
  ## Returns
8
16
 
9
17
  `string`
@@ -0,0 +1,27 @@
1
+ # Function: initCli()
2
+
3
+ > **initCli**(`processEnv`, `args?`): [`ICliCommand`](../interfaces/ICliCommand.md) \| `undefined`
4
+
5
+ Initialise the CLI.
6
+
7
+ ## Parameters
8
+
9
+ ### processEnv
10
+
11
+ The environment variables from the process.
12
+
13
+ ### args?
14
+
15
+ `string`[]
16
+
17
+ The command line arguments.
18
+
19
+ ## Returns
20
+
21
+ [`ICliCommand`](../interfaces/ICliCommand.md) \| `undefined`
22
+
23
+ The constructed CLI command if there is one.
24
+
25
+ ## Throws
26
+
27
+ GeneralError if the command is missing or invalid.
@@ -0,0 +1,19 @@
1
+ # Function: parseCommandLineArgs()
2
+
3
+ > **parseCommandLineArgs**(`args?`): [`ICliArgs`](../interfaces/ICliArgs.md)
4
+
5
+ Parse command line arguments.
6
+
7
+ ## Parameters
8
+
9
+ ### args?
10
+
11
+ `string`[]
12
+
13
+ The command line arguments.
14
+
15
+ ## Returns
16
+
17
+ [`ICliArgs`](../interfaces/ICliArgs.md)
18
+
19
+ The parsed command line arguments.
@@ -0,0 +1,27 @@
1
+ # Function: processEnvOptions()
2
+
3
+ > **processEnvOptions**(`processEnv`, `options`): `void`
4
+
5
+ Load the env files and process the options.
6
+
7
+ ## Parameters
8
+
9
+ ### processEnv
10
+
11
+ The environment variables from the process.
12
+
13
+ ### options
14
+
15
+ `object`[]
16
+
17
+ The options.
18
+
19
+ ## Returns
20
+
21
+ `void`
22
+
23
+ The processed parameters.
24
+
25
+ ## Throws
26
+
27
+ GeneralError if an env file has errors.
@@ -0,0 +1,9 @@
1
+ # Function: registerCommands()
2
+
3
+ > **registerCommands**(): `void`
4
+
5
+ Register available CLI commands.
6
+
7
+ ## Returns
8
+
9
+ `void`
@@ -1,8 +1,8 @@
1
1
  # Function: run()
2
2
 
3
- > **run**(`nodeOptions?`): `Promise`\<\{ `engine`: `Engine`\<`IEngineServerConfig`, [`INodeEngineState`](../interfaces/INodeEngineState.md)\>; `server`: `EngineServer`; `shutdown`: () => `Promise`\<`void`\>; \} \| `undefined`\>
3
+ > **run**(`nodeOptions?`, `args?`): `Promise`\<\{ `engine`: `Engine`\<`IEngineServerConfig`, [`INodeEngineState`](../interfaces/INodeEngineState.md)\>; `server`: `EngineServer`; `shutdown`: () => `Promise`\<`void`\>; \} \| `undefined`\>
4
4
 
5
- Run the TWIN Node server.
5
+ Run the TWIN Node.
6
6
 
7
7
  ## Parameters
8
8
 
@@ -12,6 +12,12 @@ Run the TWIN Node server.
12
12
 
13
13
  Optional configuration options for running the server.
14
14
 
15
+ ### args?
16
+
17
+ `string`[]
18
+
19
+ Optional command line arguments.
20
+
15
21
  ## Returns
16
22
 
17
23
  `Promise`\<\{ `engine`: `Engine`\<`IEngineServerConfig`, [`INodeEngineState`](../interfaces/INodeEngineState.md)\>; `server`: `EngineServer`; `shutdown`: () => `Promise`\<`void`\>; \} \| `undefined`\>
@@ -1,6 +1,6 @@
1
1
  # Function: start()
2
2
 
3
- > **start**(`nodeOptions`, `nodeEngineConfig`, `envVars`, `contextIdKeys?`): `Promise`\<\{ `engine`: `Engine`\<`IEngineServerConfig`, [`INodeEngineState`](../interfaces/INodeEngineState.md)\>; `server`: `EngineServer`; `shutdown`: () => `Promise`\<`void`\>; \} \| `undefined`\>
3
+ > **start**(`nodeOptions`, `nodeEngineConfig`, `envVars`, `cliCommand?`, `availableContextIdKeys?`): `Promise`\<\{ `engine`: `Engine`\<`IEngineServerConfig`, [`INodeEngineState`](../interfaces/INodeEngineState.md)\>; `server`: `EngineServer`; `shutdown`: () => `Promise`\<`void`\>; \} \| `undefined`\>
4
4
 
5
5
  Start the engine server.
6
6
 
@@ -24,11 +24,17 @@ The configuration for the engine server.
24
24
 
25
25
  The environment variables.
26
26
 
27
- ### contextIdKeys?
27
+ ### cliCommand?
28
28
 
29
- `string`[]
29
+ [`ICliCommand`](../interfaces/ICliCommand.md)
30
30
 
31
- The context ID keys.
31
+ The constructed CLI command (optional).
32
+
33
+ ### availableContextIdKeys?
34
+
35
+ `object`[]
36
+
37
+ The context ID keys available for operation.
32
38
 
33
39
  ## Returns
34
40
 
@@ -0,0 +1,25 @@
1
+ # Function: substituteEnvOptions()
2
+
3
+ > **substituteEnvOptions**(`processEnv`, `options`): `void`
4
+
5
+ Process options and replace any env variables with their values.
6
+
7
+ ## Parameters
8
+
9
+ ### processEnv
10
+
11
+ The environment variables from the process.
12
+
13
+ ### options
14
+
15
+ `object`[]
16
+
17
+ The options.
18
+
19
+ ## Returns
20
+
21
+ `void`
22
+
23
+ ## Throws
24
+
25
+ GeneralError if an env variable is missing.
@@ -3,6 +3,10 @@
3
3
  ## Interfaces
4
4
 
5
5
  - [ICacheMetadata](interfaces/ICacheMetadata.md)
6
+ - [ICliArgs](interfaces/ICliArgs.md)
7
+ - [ICliCommand](interfaces/ICliCommand.md)
8
+ - [ICliCommandDefinition](interfaces/ICliCommandDefinition.md)
9
+ - [ICliCommandDefinitionParam](interfaces/ICliCommandDefinitionParam.md)
6
10
  - [IEngineEnvironmentVariables](interfaces/IEngineEnvironmentVariables.md)
7
11
  - [IEngineServerEnvironmentVariables](interfaces/IEngineServerEnvironmentVariables.md)
8
12
  - [IModuleProtocol](interfaces/IModuleProtocol.md)
@@ -14,12 +18,12 @@
14
18
 
15
19
  ## Type Aliases
16
20
 
21
+ - [CliCommandParamType](type-aliases/CliCommandParamType.md)
17
22
  - [ModuleProtocol](type-aliases/ModuleProtocol.md)
18
23
  - [NodeExtensionInitialiseMethod](type-aliases/NodeExtensionInitialiseMethod.md)
19
24
  - [NodeExtensionInitialiseEngineMethod](type-aliases/NodeExtensionInitialiseEngineMethod.md)
20
25
  - [NodeExtensionInitialiseEngineServerMethod](type-aliases/NodeExtensionInitialiseEngineServerMethod.md)
21
26
  - [NodeExtensionShutdownMethod](type-aliases/NodeExtensionShutdownMethod.md)
22
- - [NodeFeatures](type-aliases/NodeFeatures.md)
23
27
 
24
28
  ## Variables
25
29
 
@@ -29,26 +33,26 @@
29
33
  - [SYNCHRONISED\_STORAGE\_BLOB\_STORAGE\_ENCRYPTION\_KEY\_ID](variables/SYNCHRONISED_STORAGE_BLOB_STORAGE_ENCRYPTION_KEY_ID.md)
30
34
  - [VC\_AUTHENTICATION\_VERIFICATION\_METHOD\_ID](variables/VC_AUTHENTICATION_VERIFICATION_METHOD_ID.md)
31
35
  - [AUTH\_SIGNING\_KEY\_ID](variables/AUTH_SIGNING_KEY_ID.md)
36
+ - [CONTEXT\_ID\_HANDLER\_FEATURE\_DID](variables/CONTEXT_ID_HANDLER_FEATURE_DID.md)
37
+ - [CONTEXT\_ID\_HANDLER\_FEATURE\_TENANT](variables/CONTEXT_ID_HANDLER_FEATURE_TENANT.md)
32
38
  - [ModuleProtocol](variables/ModuleProtocol.md)
33
- - [NodeFeatures](variables/NodeFeatures.md)
34
39
 
35
40
  ## Functions
36
41
 
37
- - [bootstrap](functions/bootstrap.md)
38
- - [bootstrapContextIdHandlers](functions/bootstrapContextIdHandlers.md)
39
- - [bootstrapNodeId](functions/bootstrapNodeId.md)
40
- - [bootstrapTenantId](functions/bootstrapTenantId.md)
41
- - [bootstrapNodeAdminUser](functions/bootstrapNodeAdminUser.md)
42
- - [bootstrapImmutableProofMethod](functions/bootstrapImmutableProofMethod.md)
43
- - [bootstrapBlobEncryption](functions/bootstrapBlobEncryption.md)
44
- - [bootstrapAuth](functions/bootstrapAuth.md)
45
- - [bootstrapSynchronisedStorage](functions/bootstrapSynchronisedStorage.md)
46
42
  - [buildEngineConfiguration](functions/buildEngineConfiguration.md)
47
43
  - [buildEngineServerConfiguration](functions/buildEngineServerConfiguration.md)
48
44
  - [extensionsConfiguration](functions/extensionsConfiguration.md)
49
45
  - [extensionsInitialiseEngine](functions/extensionsInitialiseEngine.md)
50
46
  - [extensionsInitialiseEngineServer](functions/extensionsInitialiseEngineServer.md)
51
47
  - [shutdownExtensions](functions/shutdownExtensions.md)
48
+ - [initCli](functions/initCli.md)
49
+ - [parseCommandLineArgs](functions/parseCommandLineArgs.md)
50
+ - [constructCliCommand](functions/constructCliCommand.md)
51
+ - [executeCommand](functions/executeCommand.md)
52
+ - [processEnvOptions](functions/processEnvOptions.md)
53
+ - [substituteEnvOptions](functions/substituteEnvOptions.md)
54
+ - [registerCommands](functions/registerCommands.md)
55
+ - [getEnvDefaults](functions/getEnvDefaults.md)
52
56
  - [run](functions/run.md)
53
57
  - [buildConfiguration](functions/buildConfiguration.md)
54
58
  - [overrideModuleImport](functions/overrideModuleImport.md)
@@ -61,7 +65,6 @@
61
65
  - [getFiles](functions/getFiles.md)
62
66
  - [loadTextFile](functions/loadTextFile.md)
63
67
  - [loadJsonFile](functions/loadJsonFile.md)
64
- - [getFeatures](functions/getFeatures.md)
65
68
  - [parseModuleProtocol](functions/parseModuleProtocol.md)
66
69
  - [hashUrl](functions/hashUrl.md)
67
70
  - [getExtensionsCacheDir](functions/getExtensionsCacheDir.md)
@@ -0,0 +1,35 @@
1
+ # Interface: ICliArgs
2
+
3
+ Command to execute in the CLI.
4
+
5
+ ## Properties
6
+
7
+ ### nodePath?
8
+
9
+ > `optional` **nodePath**: `string`
10
+
11
+ The path of the node executable.
12
+
13
+ ***
14
+
15
+ ### scriptPath?
16
+
17
+ > `optional` **scriptPath**: `string`
18
+
19
+ The path of the script to execute.
20
+
21
+ ***
22
+
23
+ ### options?
24
+
25
+ > `optional` **options**: `object`[]
26
+
27
+ The command line options.
28
+
29
+ #### key
30
+
31
+ > **key**: `string`
32
+
33
+ #### value
34
+
35
+ > **value**: `string`
@@ -0,0 +1,23 @@
1
+ # Interface: ICliCommand
2
+
3
+ Command to execute in the CLI.
4
+
5
+ ## Properties
6
+
7
+ ### definition
8
+
9
+ > **definition**: [`ICliCommandDefinition`](ICliCommandDefinition.md)
10
+
11
+ The command to execute.
12
+
13
+ ***
14
+
15
+ ### params
16
+
17
+ > **params**: `object`
18
+
19
+ The params to execute the command with.
20
+
21
+ #### Index Signature
22
+
23
+ \[`id`: `string`\]: [`CliCommandParamType`](../type-aliases/CliCommandParamType.md)
@@ -0,0 +1,101 @@
1
+ # Interface: ICliCommandDefinition
2
+
3
+ Command to execute in the CLI.
4
+
5
+ ## Properties
6
+
7
+ ### command
8
+
9
+ > **command**: `string`
10
+
11
+ The command name.
12
+
13
+ ***
14
+
15
+ ### description
16
+
17
+ > **description**: `string`
18
+
19
+ The command description.
20
+
21
+ ***
22
+
23
+ ### example
24
+
25
+ > **example**: `string`
26
+
27
+ The example.
28
+
29
+ ***
30
+
31
+ ### params
32
+
33
+ > **params**: [`ICliCommandDefinitionParam`](ICliCommandDefinitionParam.md)[]
34
+
35
+ The params available for the command.
36
+
37
+ ***
38
+
39
+ ### action()
40
+
41
+ > **action**: (`engineCore`, `envVars`, `params`) => `Promise`\<`unknown`\>
42
+
43
+ The method to execute for the command.
44
+
45
+ #### Parameters
46
+
47
+ ##### engineCore
48
+
49
+ `IEngineCore`
50
+
51
+ ##### envVars
52
+
53
+ [`INodeEnvironmentVariables`](INodeEnvironmentVariables.md)
54
+
55
+ ##### params
56
+
57
+ #### Returns
58
+
59
+ `Promise`\<`unknown`\>
60
+
61
+ ***
62
+
63
+ ### requiresEngineStarted?
64
+
65
+ > `optional` **requiresEngineStarted**: `boolean`
66
+
67
+ Indicates whether the engine needs to be started before executing the command.
68
+
69
+ #### Default
70
+
71
+ ```ts
72
+ true
73
+ ```
74
+
75
+ ***
76
+
77
+ ### requiresNodeIdentity?
78
+
79
+ > `optional` **requiresNodeIdentity**: `boolean`
80
+
81
+ Indicates whether the engine needs the node identity to be set if configured to use.
82
+
83
+ #### Default
84
+
85
+ ```ts
86
+ true
87
+ ```
88
+
89
+ ***
90
+
91
+ ### requiresTenantId?
92
+
93
+ > `optional` **requiresTenantId**: `boolean`
94
+
95
+ Indicates whether the engine needs the tenant id to be set if configured to use.
96
+
97
+ #### Default
98
+
99
+ ```ts
100
+ true
101
+ ```
@@ -0,0 +1,65 @@
1
+ # Interface: ICliCommandDefinitionParam
2
+
3
+ Command param to execute in the CLI.
4
+
5
+ ## Properties
6
+
7
+ ### key
8
+
9
+ > **key**: `string`
10
+
11
+ The param key.
12
+
13
+ ***
14
+
15
+ ### type
16
+
17
+ > **type**: `"string"` \| `"number"` \| `"boolean"`
18
+
19
+ The param type.
20
+
21
+ ***
22
+
23
+ ### options?
24
+
25
+ > `optional` **options**: `string`[]
26
+
27
+ Possible options for the param.
28
+
29
+ ***
30
+
31
+ ### extendedType?
32
+
33
+ > `optional` **extendedType**: `string`
34
+
35
+ The extended type e.g. hex etc.
36
+
37
+ ***
38
+
39
+ ### required?
40
+
41
+ > `optional` **required**: `boolean`
42
+
43
+ Whether the param is required.
44
+
45
+ #### Default
46
+
47
+ ```ts
48
+ true
49
+ ```
50
+
51
+ ***
52
+
53
+ ### defaultValue?
54
+
55
+ > `optional` **defaultValue**: [`CliCommandParamType`](../type-aliases/CliCommandParamType.md)
56
+
57
+ The default value of the param.
58
+
59
+ ***
60
+
61
+ ### description
62
+
63
+ > **description**: `string`
64
+
65
+ The param description.