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

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 (230) hide show
  1. package/README.md +3 -1
  2. package/dist/es/builders/engineEnvBuilder.js +470 -174
  3. package/dist/es/builders/engineEnvBuilder.js.map +1 -1
  4. package/dist/es/builders/engineServerEnvBuilder.js +87 -39
  5. package/dist/es/builders/engineServerEnvBuilder.js.map +1 -1
  6. package/dist/es/builders/extensionsBuilder.js +3 -3
  7. package/dist/es/builders/extensionsBuilder.js.map +1 -1
  8. package/dist/es/cli.js +254 -0
  9. package/dist/es/cli.js.map +1 -0
  10. package/dist/es/commands/bootstrapLegacy.js +312 -0
  11. package/dist/es/commands/bootstrapLegacy.js.map +1 -0
  12. package/dist/es/commands/help.js +86 -0
  13. package/dist/es/commands/help.js.map +1 -0
  14. package/dist/es/commands/identityCreate.js +377 -0
  15. package/dist/es/commands/identityCreate.js.map +1 -0
  16. package/dist/es/commands/identityImports.js +83 -0
  17. package/dist/es/commands/identityImports.js.map +1 -0
  18. package/dist/es/commands/identityVerifiableCredentialCreate.js +146 -0
  19. package/dist/es/commands/identityVerifiableCredentialCreate.js.map +1 -0
  20. package/dist/es/commands/identityVerificationMethodCreate.js +231 -0
  21. package/dist/es/commands/identityVerificationMethodCreate.js.map +1 -0
  22. package/dist/es/commands/identityVerificationMethodImport.js +127 -0
  23. package/dist/es/commands/identityVerificationMethodImport.js.map +1 -0
  24. package/dist/es/commands/nodeSetIdentity.js +69 -0
  25. package/dist/es/commands/nodeSetIdentity.js.map +1 -0
  26. package/dist/es/commands/removeTenantOrgAlias.js +83 -0
  27. package/dist/es/commands/removeTenantOrgAlias.js.map +1 -0
  28. package/dist/es/commands/setNodeOrgId.js +62 -0
  29. package/dist/es/commands/setNodeOrgId.js.map +1 -0
  30. package/dist/es/commands/setTenantOrgId.js +99 -0
  31. package/dist/es/commands/setTenantOrgId.js.map +1 -0
  32. package/dist/es/commands/tenantCreate.js +165 -0
  33. package/dist/es/commands/tenantCreate.js.map +1 -0
  34. package/dist/es/commands/tenantImport.js +108 -0
  35. package/dist/es/commands/tenantImport.js.map +1 -0
  36. package/dist/es/commands/tenantUpdate.js +108 -0
  37. package/dist/es/commands/tenantUpdate.js.map +1 -0
  38. package/dist/es/commands/userCreate.js +239 -0
  39. package/dist/es/commands/userCreate.js.map +1 -0
  40. package/dist/es/commands/userUpdate.js +154 -0
  41. package/dist/es/commands/userUpdate.js.map +1 -0
  42. package/dist/es/commands/vaultKeyCreate.js +191 -0
  43. package/dist/es/commands/vaultKeyCreate.js.map +1 -0
  44. package/dist/es/commands/vaultKeyImport.js +105 -0
  45. package/dist/es/commands/vaultKeyImport.js.map +1 -0
  46. package/dist/es/defaults.js +37 -2
  47. package/dist/es/defaults.js.map +1 -1
  48. package/dist/es/index.js +13 -4
  49. package/dist/es/index.js.map +1 -1
  50. package/dist/es/models/IBootstrapLegacyEnvironmentVariables.js +4 -0
  51. package/dist/es/models/IBootstrapLegacyEnvironmentVariables.js.map +1 -0
  52. package/dist/es/models/ICliArgs.js +4 -0
  53. package/dist/es/models/ICliArgs.js.map +1 -0
  54. package/dist/es/models/ICliCommand.js +2 -0
  55. package/dist/es/models/ICliCommand.js.map +1 -0
  56. package/dist/es/models/ICliCommandDefinition.js +2 -0
  57. package/dist/es/models/ICliCommandDefinition.js.map +1 -0
  58. package/dist/es/models/ICliCommandDefinitionParam.js +2 -0
  59. package/dist/es/models/ICliCommandDefinitionParam.js.map +1 -0
  60. package/dist/es/models/IEngineEnvironmentVariables.js.map +1 -1
  61. package/dist/es/models/IEngineServerEnvironmentVariables.js +2 -0
  62. package/dist/es/models/IEngineServerEnvironmentVariables.js.map +1 -1
  63. package/dist/es/models/IEnvironmentVariables.js +2 -0
  64. package/dist/es/models/IEnvironmentVariables.js.map +1 -0
  65. package/dist/es/models/INodeEngineState.js.map +1 -1
  66. package/dist/es/models/INodeEnvironmentVariables.js +2 -0
  67. package/dist/es/models/INodeEnvironmentVariables.js.map +1 -1
  68. package/dist/es/models/INodeOptions.js.map +1 -1
  69. package/dist/es/models/bootstrapLegacyEnvironmentVariableKeys.js +24 -0
  70. package/dist/es/models/bootstrapLegacyEnvironmentVariableKeys.js.map +1 -0
  71. package/dist/es/models/cliCommandParamType.js +4 -0
  72. package/dist/es/models/cliCommandParamType.js.map +1 -0
  73. package/dist/es/models/engineEnvironmentVariableKeys.js +202 -0
  74. package/dist/es/models/engineEnvironmentVariableKeys.js.map +1 -0
  75. package/dist/es/models/engineServerEnvironmentVariableKeys.js +35 -0
  76. package/dist/es/models/engineServerEnvironmentVariableKeys.js.map +1 -0
  77. package/dist/es/models/nodeEnvironmentVariableKeys.js +18 -0
  78. package/dist/es/models/nodeEnvironmentVariableKeys.js.map +1 -0
  79. package/dist/es/models/nodeExtensionInitialiseEngineMethod.js +2 -0
  80. package/dist/es/models/nodeExtensionInitialiseEngineMethod.js.map +1 -0
  81. package/dist/es/models/nodeExtensionInitialiseEngineServerMethod.js +2 -0
  82. package/dist/es/models/nodeExtensionInitialiseEngineServerMethod.js.map +1 -0
  83. package/dist/es/models/nodeExtensionInitialiseMethod.js +2 -0
  84. package/dist/es/models/nodeExtensionInitialiseMethod.js.map +1 -0
  85. package/dist/es/models/nodeExtensionShutdownMethod.js +4 -0
  86. package/dist/es/models/nodeExtensionShutdownMethod.js.map +1 -0
  87. package/dist/es/node.js +180 -42
  88. package/dist/es/node.js.map +1 -1
  89. package/dist/es/start.js +189 -0
  90. package/dist/es/start.js.map +1 -0
  91. package/dist/es/utils.js +24 -27
  92. package/dist/es/utils.js.map +1 -1
  93. package/dist/types/builders/engineEnvBuilder.d.ts +60 -5
  94. package/dist/types/builders/engineServerEnvBuilder.d.ts +12 -3
  95. package/dist/types/builders/extensionsBuilder.d.ts +8 -8
  96. package/dist/types/cli.d.ts +56 -0
  97. package/dist/types/commands/bootstrapLegacy.d.ts +20 -0
  98. package/dist/types/commands/help.d.ts +24 -0
  99. package/dist/types/commands/identityCreate.d.ts +45 -0
  100. package/dist/types/commands/identityImports.d.ts +25 -0
  101. package/dist/types/commands/identityVerifiableCredentialCreate.d.ts +43 -0
  102. package/dist/types/commands/identityVerificationMethodCreate.d.ts +47 -0
  103. package/dist/types/commands/identityVerificationMethodImport.d.ts +32 -0
  104. package/dist/types/commands/nodeSetIdentity.d.ts +23 -0
  105. package/dist/types/commands/removeTenantOrgAlias.d.ts +24 -0
  106. package/dist/types/commands/setNodeOrgId.d.ts +24 -0
  107. package/dist/types/commands/setTenantOrgId.d.ts +38 -0
  108. package/dist/types/commands/tenantCreate.d.ts +41 -0
  109. package/dist/types/commands/tenantImport.d.ts +29 -0
  110. package/dist/types/commands/tenantUpdate.d.ts +29 -0
  111. package/dist/types/commands/userCreate.d.ts +51 -0
  112. package/dist/types/commands/userUpdate.d.ts +40 -0
  113. package/dist/types/commands/vaultKeyCreate.d.ts +43 -0
  114. package/dist/types/commands/vaultKeyImport.d.ts +29 -0
  115. package/dist/types/defaults.d.ts +30 -2
  116. package/dist/types/index.d.ts +13 -4
  117. package/dist/types/models/IBootstrapLegacyEnvironmentVariables.d.ts +56 -0
  118. package/dist/types/models/ICliArgs.d.ts +20 -0
  119. package/dist/types/models/ICliCommand.d.ts +17 -0
  120. package/dist/types/models/ICliCommandDefinition.d.ts +46 -0
  121. package/dist/types/models/ICliCommandDefinitionParam.d.ts +35 -0
  122. package/dist/types/models/IEngineEnvironmentVariables.d.ts +199 -96
  123. package/dist/types/models/IEngineServerEnvironmentVariables.d.ts +9 -2
  124. package/dist/types/models/IEnvironmentVariables.d.ts +8 -0
  125. package/dist/types/models/INodeEngineState.d.ts +2 -9
  126. package/dist/types/models/INodeEnvironmentVariables.d.ts +1 -40
  127. package/dist/types/models/INodeOptions.d.ts +9 -5
  128. package/dist/types/models/bootstrapLegacyEnvironmentVariableKeys.d.ts +4 -0
  129. package/dist/types/models/cliCommandParamType.d.ts +4 -0
  130. package/dist/types/models/engineEnvironmentVariableKeys.d.ts +4 -0
  131. package/dist/types/models/engineServerEnvironmentVariableKeys.d.ts +7 -0
  132. package/dist/types/models/nodeEnvironmentVariableKeys.d.ts +5 -0
  133. package/dist/types/models/nodeExtensionInitialiseEngineMethod.d.ts +8 -0
  134. package/dist/types/models/nodeExtensionInitialiseEngineServerMethod.d.ts +9 -0
  135. package/dist/types/models/nodeExtensionInitialiseMethod.d.ts +9 -0
  136. package/dist/types/models/nodeExtensionShutdownMethod.d.ts +6 -0
  137. package/dist/types/node.d.ts +8 -7
  138. package/dist/types/{server.d.ts → start.d.ts} +6 -3
  139. package/dist/types/utils.d.ts +9 -10
  140. package/docs/changelog.md +854 -186
  141. package/docs/examples.md +99 -1
  142. package/docs/reference/functions/buildConfiguration.md +3 -3
  143. package/docs/reference/functions/buildEngineConfiguration.md +1 -7
  144. package/docs/reference/functions/buildEngineServerConfiguration.md +1 -1
  145. package/docs/reference/functions/constructCliCommand.md +27 -0
  146. package/docs/reference/functions/executeCommand.md +29 -0
  147. package/docs/reference/functions/extensionsConfiguration.md +1 -1
  148. package/docs/reference/functions/extensionsInitialiseEngine.md +2 -2
  149. package/docs/reference/functions/extensionsInitialiseEngineServer.md +2 -2
  150. package/docs/reference/functions/getEnvDefaults.md +19 -0
  151. package/docs/reference/functions/getScriptDirectory.md +19 -0
  152. package/docs/reference/functions/initialiseLocales.md +2 -0
  153. package/docs/reference/functions/isAuthEntityStorageRequired.md +20 -0
  154. package/docs/reference/functions/isAutomationRequired.md +20 -0
  155. package/docs/reference/functions/isBackgroundTasksRequired.md +20 -0
  156. package/docs/reference/functions/isFederatedCatalogueRequired.md +20 -0
  157. package/docs/reference/functions/isImmutableProofRequired.md +20 -0
  158. package/docs/reference/functions/isRightsManagementRequired.md +23 -0
  159. package/docs/reference/functions/isTaskSchedulerRequired.md +20 -0
  160. package/docs/reference/functions/isTelemetryRequired.md +20 -0
  161. package/docs/reference/functions/isTrustRequired.md +20 -0
  162. package/docs/reference/functions/loadJsonFile.md +1 -1
  163. package/docs/reference/functions/loadTextFile.md +1 -1
  164. package/docs/reference/functions/overrideModuleImport.md +1 -1
  165. package/docs/reference/functions/parseCommandLineArgs.md +19 -0
  166. package/docs/reference/functions/processEnvOptions.md +27 -0
  167. package/docs/reference/functions/registerCommands.md +9 -0
  168. package/docs/reference/functions/resolvePackageEntryPoint.md +2 -2
  169. package/docs/reference/functions/run.md +8 -2
  170. package/docs/reference/functions/shutdownExtensions.md +2 -2
  171. package/docs/reference/functions/start.md +10 -4
  172. package/docs/reference/functions/substituteEnvOptions.md +25 -0
  173. package/docs/reference/index.md +26 -14
  174. package/docs/reference/interfaces/IBootstrapLegacyEnvironmentVariables.md +117 -0
  175. package/docs/reference/interfaces/ICacheMetadata.md +3 -3
  176. package/docs/reference/interfaces/ICliArgs.md +35 -0
  177. package/docs/reference/interfaces/ICliCommand.md +23 -0
  178. package/docs/reference/interfaces/ICliCommandDefinition.md +101 -0
  179. package/docs/reference/interfaces/ICliCommandDefinitionParam.md +65 -0
  180. package/docs/reference/interfaces/IEngineEnvironmentVariables.md +553 -365
  181. package/docs/reference/interfaces/IEngineServerEnvironmentVariables.md +41 -1746
  182. package/docs/reference/interfaces/IModuleProtocol.md +3 -3
  183. package/docs/reference/interfaces/INodeEngineState.md +6 -21
  184. package/docs/reference/interfaces/INodeEnvironmentVariables.md +10 -1967
  185. package/docs/reference/interfaces/INodeOptions.md +46 -38
  186. package/docs/reference/interfaces/IProtocolHandlerResult.md +2 -2
  187. package/docs/reference/type-aliases/CliCommandParamType.md +5 -0
  188. package/docs/reference/type-aliases/IEnvironmentVariables.md +5 -0
  189. package/docs/reference/type-aliases/NodeExtensionInitialiseEngineMethod.md +3 -1
  190. package/docs/reference/type-aliases/NodeExtensionInitialiseEngineServerMethod.md +3 -1
  191. package/docs/reference/type-aliases/NodeExtensionInitialiseMethod.md +4 -2
  192. package/docs/reference/type-aliases/NodeExtensionShutdownMethod.md +3 -1
  193. package/docs/reference/variables/ATTESTATION_VERIFICATION_METHOD_ID.md +2 -0
  194. package/docs/reference/variables/AUTH_SIGNING_KEY_ID.md +2 -0
  195. package/docs/reference/variables/BLOB_STORAGE_ENCRYPTION_KEY_ID.md +2 -0
  196. package/docs/reference/variables/CONTEXT_ID_HANDLER_FEATURE_DID.md +2 -0
  197. package/docs/reference/variables/CONTEXT_ID_HANDLER_FEATURE_TENANT.md +2 -0
  198. package/docs/reference/variables/IMMUTABLE_PROOF_VERIFICATION_METHOD_ID.md +2 -0
  199. package/docs/reference/variables/ModuleProtocol.md +5 -5
  200. package/docs/reference/variables/TRUST_VERIFICATION_METHOD_ID.md +5 -0
  201. package/locales/en.json +680 -30
  202. package/package.json +30 -27
  203. package/dist/es/bootstrap.js +0 -383
  204. package/dist/es/bootstrap.js.map +0 -1
  205. package/dist/es/identity.js +0 -182
  206. package/dist/es/identity.js.map +0 -1
  207. package/dist/es/models/nodeExtensionMethods.js +0 -2
  208. package/dist/es/models/nodeExtensionMethods.js.map +0 -1
  209. package/dist/es/models/nodeFeatures.js +0 -21
  210. package/dist/es/models/nodeFeatures.js.map +0 -1
  211. package/dist/es/server.js +0 -81
  212. package/dist/es/server.js.map +0 -1
  213. package/dist/types/bootstrap.d.ts +0 -68
  214. package/dist/types/identity.d.ts +0 -14
  215. package/dist/types/models/nodeExtensionMethods.d.ts +0 -27
  216. package/dist/types/models/nodeFeatures.d.ts +0 -21
  217. package/docs/detailed-guide.md +0 -129
  218. package/docs/reference/functions/bootstrap.md +0 -29
  219. package/docs/reference/functions/bootstrapAuth.md +0 -35
  220. package/docs/reference/functions/bootstrapBlobEncryption.md +0 -35
  221. package/docs/reference/functions/bootstrapImmutableProofMethod.md +0 -35
  222. package/docs/reference/functions/bootstrapNodeAdminUser.md +0 -35
  223. package/docs/reference/functions/bootstrapNodeId.md +0 -35
  224. package/docs/reference/functions/bootstrapSynchronisedStorage.md +0 -35
  225. package/docs/reference/functions/bootstrapTenantId.md +0 -35
  226. package/docs/reference/functions/getFeatures.md +0 -19
  227. package/docs/reference/type-aliases/NodeFeatures.md +0 -5
  228. package/docs/reference/variables/NodeFeatures.md +0 -25
  229. package/docs/reference/variables/SYNCHRONISED_STORAGE_BLOB_STORAGE_ENCRYPTION_KEY_ID.md +0 -3
  230. package/docs/reference/variables/VC_AUTHENTICATION_VERIFICATION_METHOD_ID.md +0 -3
@@ -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.
@@ -2,7 +2,12 @@
2
2
 
3
3
  ## Interfaces
4
4
 
5
+ - [IBootstrapLegacyEnvironmentVariables](interfaces/IBootstrapLegacyEnvironmentVariables.md)
5
6
  - [ICacheMetadata](interfaces/ICacheMetadata.md)
7
+ - [ICliArgs](interfaces/ICliArgs.md)
8
+ - [ICliCommand](interfaces/ICliCommand.md)
9
+ - [ICliCommandDefinition](interfaces/ICliCommandDefinition.md)
10
+ - [ICliCommandDefinitionParam](interfaces/ICliCommandDefinitionParam.md)
6
11
  - [IEngineEnvironmentVariables](interfaces/IEngineEnvironmentVariables.md)
7
12
  - [IEngineServerEnvironmentVariables](interfaces/IEngineServerEnvironmentVariables.md)
8
13
  - [IModuleProtocol](interfaces/IModuleProtocol.md)
@@ -14,55 +19,62 @@
14
19
 
15
20
  ## Type Aliases
16
21
 
22
+ - [IEnvironmentVariables](type-aliases/IEnvironmentVariables.md)
23
+ - [CliCommandParamType](type-aliases/CliCommandParamType.md)
17
24
  - [ModuleProtocol](type-aliases/ModuleProtocol.md)
18
- - [NodeExtensionInitialiseMethod](type-aliases/NodeExtensionInitialiseMethod.md)
19
25
  - [NodeExtensionInitialiseEngineMethod](type-aliases/NodeExtensionInitialiseEngineMethod.md)
20
26
  - [NodeExtensionInitialiseEngineServerMethod](type-aliases/NodeExtensionInitialiseEngineServerMethod.md)
27
+ - [NodeExtensionInitialiseMethod](type-aliases/NodeExtensionInitialiseMethod.md)
21
28
  - [NodeExtensionShutdownMethod](type-aliases/NodeExtensionShutdownMethod.md)
22
- - [NodeFeatures](type-aliases/NodeFeatures.md)
23
29
 
24
30
  ## Variables
25
31
 
26
32
  - [ATTESTATION\_VERIFICATION\_METHOD\_ID](variables/ATTESTATION_VERIFICATION_METHOD_ID.md)
27
33
  - [IMMUTABLE\_PROOF\_VERIFICATION\_METHOD\_ID](variables/IMMUTABLE_PROOF_VERIFICATION_METHOD_ID.md)
28
34
  - [BLOB\_STORAGE\_ENCRYPTION\_KEY\_ID](variables/BLOB_STORAGE_ENCRYPTION_KEY_ID.md)
29
- - [SYNCHRONISED\_STORAGE\_BLOB\_STORAGE\_ENCRYPTION\_KEY\_ID](variables/SYNCHRONISED_STORAGE_BLOB_STORAGE_ENCRYPTION_KEY_ID.md)
30
- - [VC\_AUTHENTICATION\_VERIFICATION\_METHOD\_ID](variables/VC_AUTHENTICATION_VERIFICATION_METHOD_ID.md)
35
+ - [TRUST\_VERIFICATION\_METHOD\_ID](variables/TRUST_VERIFICATION_METHOD_ID.md)
31
36
  - [AUTH\_SIGNING\_KEY\_ID](variables/AUTH_SIGNING_KEY_ID.md)
32
37
  - [CONTEXT\_ID\_HANDLER\_FEATURE\_DID](variables/CONTEXT_ID_HANDLER_FEATURE_DID.md)
33
38
  - [CONTEXT\_ID\_HANDLER\_FEATURE\_TENANT](variables/CONTEXT_ID_HANDLER_FEATURE_TENANT.md)
34
39
  - [ModuleProtocol](variables/ModuleProtocol.md)
35
- - [NodeFeatures](variables/NodeFeatures.md)
36
40
 
37
41
  ## Functions
38
42
 
39
- - [bootstrap](functions/bootstrap.md)
40
- - [bootstrapNodeId](functions/bootstrapNodeId.md)
41
- - [bootstrapTenantId](functions/bootstrapTenantId.md)
42
- - [bootstrapNodeAdminUser](functions/bootstrapNodeAdminUser.md)
43
- - [bootstrapImmutableProofMethod](functions/bootstrapImmutableProofMethod.md)
44
- - [bootstrapBlobEncryption](functions/bootstrapBlobEncryption.md)
45
- - [bootstrapAuth](functions/bootstrapAuth.md)
46
- - [bootstrapSynchronisedStorage](functions/bootstrapSynchronisedStorage.md)
47
43
  - [buildEngineConfiguration](functions/buildEngineConfiguration.md)
44
+ - [isTrustRequired](functions/isTrustRequired.md)
45
+ - [isBackgroundTasksRequired](functions/isBackgroundTasksRequired.md)
46
+ - [isImmutableProofRequired](functions/isImmutableProofRequired.md)
47
+ - [isFederatedCatalogueRequired](functions/isFederatedCatalogueRequired.md)
48
+ - [isRightsManagementRequired](functions/isRightsManagementRequired.md)
49
+ - [isTaskSchedulerRequired](functions/isTaskSchedulerRequired.md)
50
+ - [isAutomationRequired](functions/isAutomationRequired.md)
51
+ - [isTelemetryRequired](functions/isTelemetryRequired.md)
48
52
  - [buildEngineServerConfiguration](functions/buildEngineServerConfiguration.md)
53
+ - [isAuthEntityStorageRequired](functions/isAuthEntityStorageRequired.md)
49
54
  - [extensionsConfiguration](functions/extensionsConfiguration.md)
50
55
  - [extensionsInitialiseEngine](functions/extensionsInitialiseEngine.md)
51
56
  - [extensionsInitialiseEngineServer](functions/extensionsInitialiseEngineServer.md)
52
57
  - [shutdownExtensions](functions/shutdownExtensions.md)
58
+ - [parseCommandLineArgs](functions/parseCommandLineArgs.md)
59
+ - [constructCliCommand](functions/constructCliCommand.md)
60
+ - [executeCommand](functions/executeCommand.md)
61
+ - [processEnvOptions](functions/processEnvOptions.md)
62
+ - [substituteEnvOptions](functions/substituteEnvOptions.md)
63
+ - [registerCommands](functions/registerCommands.md)
64
+ - [getEnvDefaults](functions/getEnvDefaults.md)
53
65
  - [run](functions/run.md)
54
66
  - [buildConfiguration](functions/buildConfiguration.md)
55
67
  - [overrideModuleImport](functions/overrideModuleImport.md)
56
68
  - [start](functions/start.md)
57
69
  - [initialiseLocales](functions/initialiseLocales.md)
58
70
  - [getExecutionDirectory](functions/getExecutionDirectory.md)
71
+ - [getScriptDirectory](functions/getScriptDirectory.md)
59
72
  - [fileExists](functions/fileExists.md)
60
73
  - [directoryExists](functions/directoryExists.md)
61
74
  - [getSubFolders](functions/getSubFolders.md)
62
75
  - [getFiles](functions/getFiles.md)
63
76
  - [loadTextFile](functions/loadTextFile.md)
64
77
  - [loadJsonFile](functions/loadJsonFile.md)
65
- - [getFeatures](functions/getFeatures.md)
66
78
  - [parseModuleProtocol](functions/parseModuleProtocol.md)
67
79
  - [hashUrl](functions/hashUrl.md)
68
80
  - [getExtensionsCacheDir](functions/getExtensionsCacheDir.md)
@@ -0,0 +1,117 @@
1
+ # Interface: IBootstrapLegacyEnvironmentVariables
2
+
3
+ The environment variables for the bootstrap legacy.
4
+
5
+ ## Properties
6
+
7
+ ### features? {#features}
8
+
9
+ > `optional` **features?**: `string`
10
+
11
+ The features that are enabled on the node.
12
+
13
+ #### Default
14
+
15
+ ```ts
16
+ []
17
+ ```
18
+
19
+ ***
20
+
21
+ ### nodeIdentity? {#nodeidentity}
22
+
23
+ > `optional` **nodeIdentity?**: `string`
24
+
25
+ The identity of the node which, if empty and node-identity feature is enabled it will be generated.
26
+
27
+ ***
28
+
29
+ ### nodeMnemonic? {#nodemnemonic}
30
+
31
+ > `optional` **nodeMnemonic?**: `string`
32
+
33
+ The mnemonic for the node identity, if empty it will be randomly generated.
34
+
35
+ ***
36
+
37
+ ### tenantId? {#tenantid}
38
+
39
+ > `optional` **tenantId?**: `string`
40
+
41
+ A tenant id to use as a default for the node.
42
+
43
+ ***
44
+
45
+ ### tenantApiKey? {#tenantapikey}
46
+
47
+ > `optional` **tenantApiKey?**: `string`
48
+
49
+ A tenant api key to use as a default for the node.
50
+
51
+ ***
52
+
53
+ ### organizationIdentity? {#organizationidentity}
54
+
55
+ > `optional` **organizationIdentity?**: `string`
56
+
57
+ The organisation identity. If not provided it will be generated.
58
+
59
+ ***
60
+
61
+ ### organizationMnemonic? {#organizationmnemonic}
62
+
63
+ > `optional` **organizationMnemonic?**: `string`
64
+
65
+ The mnemonic for the organisation identity, if empty it will be randomly generated.
66
+
67
+ ***
68
+
69
+ ### adminUserIdentity? {#adminuseridentity}
70
+
71
+ > `optional` **adminUserIdentity?**: `string`
72
+
73
+ If the admin-user feature is enabled, this will be the identity of the user. If not provided it will be generated.
74
+
75
+ ***
76
+
77
+ ### adminUserMnemonic? {#adminusermnemonic}
78
+
79
+ > `optional` **adminUserMnemonic?**: `string`
80
+
81
+ The mnemonic for the admin user, if empty it will be randomly generated.
82
+
83
+ ***
84
+
85
+ ### adminUserName? {#adminusername}
86
+
87
+ > `optional` **adminUserName?**: `string`
88
+
89
+ If the admin-user feature is enabled, this will be the name of the user.
90
+
91
+ #### Default
92
+
93
+ ```ts
94
+ admin@node
95
+ ```
96
+
97
+ ***
98
+
99
+ ### adminUserPassword? {#adminuserpassword}
100
+
101
+ > `optional` **adminUserPassword?**: `string`
102
+
103
+ If the admin-user feature is enabled, this will be the password of the user. If empty it will be randomly generated.
104
+
105
+ ***
106
+
107
+ ### adminUserScope? {#adminuserscope}
108
+
109
+ > `optional` **adminUserScope?**: `string`
110
+
111
+ If the admin-user feature is enabled, this is a comma-separated list of scopes for the user.
112
+
113
+ #### Default
114
+
115
+ ```ts
116
+ tenant-admin,user-admin (when tenant enabled) or user-admin (when tenant disabled)
117
+ ```
@@ -4,7 +4,7 @@ Metadata for cached HTTPS extensions.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### downloadedAt
7
+ ### downloadedAt {#downloadedat}
8
8
 
9
9
  > **downloadedAt**: `number`
10
10
 
@@ -12,7 +12,7 @@ Timestamp when the file was downloaded.
12
12
 
13
13
  ***
14
14
 
15
- ### url
15
+ ### url {#url}
16
16
 
17
17
  > **url**: `string`
18
18
 
@@ -20,7 +20,7 @@ Original URL of the cached file.
20
20
 
21
21
  ***
22
22
 
23
- ### size
23
+ ### size {#size}
24
24
 
25
25
  > **size**: `number`
26
26
 
@@ -0,0 +1,35 @@
1
+ # Interface: ICliArgs
2
+
3
+ Parsed command line arguments passed to the CLI.
4
+
5
+ ## Properties
6
+
7
+ ### nodePath? {#nodepath}
8
+
9
+ > `optional` **nodePath?**: `string`
10
+
11
+ The path of the node executable.
12
+
13
+ ***
14
+
15
+ ### scriptPath? {#scriptpath}
16
+
17
+ > `optional` **scriptPath?**: `string`
18
+
19
+ The path of the script to execute.
20
+
21
+ ***
22
+
23
+ ### options? {#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
+ A resolved CLI command ready for execution, pairing a definition with its populated parameters.
4
+
5
+ ## Properties
6
+
7
+ ### definition {#definition}
8
+
9
+ > **definition**: [`ICliCommandDefinition`](ICliCommandDefinition.md)
10
+
11
+ The command to execute.
12
+
13
+ ***
14
+
15
+ ### params {#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
+ Static definition of a CLI command including its name, parameters, and execution action.
4
+
5
+ ## Properties
6
+
7
+ ### command {#command}
8
+
9
+ > **command**: `string`
10
+
11
+ The command name.
12
+
13
+ ***
14
+
15
+ ### description {#description}
16
+
17
+ > **description**: `string`
18
+
19
+ The command description.
20
+
21
+ ***
22
+
23
+ ### example {#example}
24
+
25
+ > **example**: `string`
26
+
27
+ An example invocation string shown in help output.
28
+
29
+ ***
30
+
31
+ ### params {#params}
32
+
33
+ > **params**: [`ICliCommandDefinitionParam`](ICliCommandDefinitionParam.md)[]
34
+
35
+ The params available for the command.
36
+
37
+ ***
38
+
39
+ ### action {#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
+ [`IEnvironmentVariables`](../type-aliases/IEnvironmentVariables.md)
54
+
55
+ ##### params
56
+
57
+ #### Returns
58
+
59
+ `Promise`\<`unknown`\>
60
+
61
+ ***
62
+
63
+ ### requiresEngineStarted? {#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? {#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
+ ### requiresOrgIdentity? {#requiresorgidentity}
92
+
93
+ > `optional` **requiresOrgIdentity?**: `boolean`
94
+
95
+ Indicates whether the engine needs the organization identity to be set.
96
+
97
+ #### Default
98
+
99
+ ```ts
100
+ true
101
+ ```
@@ -0,0 +1,65 @@
1
+ # Interface: ICliCommandDefinitionParam
2
+
3
+ Definition of a single parameter accepted by a CLI command.
4
+
5
+ ## Properties
6
+
7
+ ### key {#key}
8
+
9
+ > **key**: `string`
10
+
11
+ The param key.
12
+
13
+ ***
14
+
15
+ ### type {#type}
16
+
17
+ > **type**: `"string"` \| `"number"` \| `"boolean"`
18
+
19
+ The param type.
20
+
21
+ ***
22
+
23
+ ### options? {#options}
24
+
25
+ > `optional` **options?**: `string`[]
26
+
27
+ Possible options for the param.
28
+
29
+ ***
30
+
31
+ ### extendedType? {#extendedtype}
32
+
33
+ > `optional` **extendedType?**: `string`
34
+
35
+ The extended type e.g. hex etc.
36
+
37
+ ***
38
+
39
+ ### required? {#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? {#defaultvalue}
54
+
55
+ > `optional` **defaultValue?**: [`CliCommandParamType`](../type-aliases/CliCommandParamType.md)
56
+
57
+ The default value of the param.
58
+
59
+ ***
60
+
61
+ ### description {#description}
62
+
63
+ > **description**: `string`
64
+
65
+ The param description.