@twin.org/node-core 0.0.3-next.1 → 0.0.3-next.10
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 +155 -74
- package/dist/es/builders/engineEnvBuilder.js.map +1 -1
- package/dist/es/builders/engineServerEnvBuilder.js +24 -15
- package/dist/es/builders/engineServerEnvBuilder.js.map +1 -1
- package/dist/es/builders/extensionsBuilder.js +26 -17
- package/dist/es/builders/extensionsBuilder.js.map +1 -1
- package/dist/es/cli.js +255 -0
- package/dist/es/cli.js.map +1 -0
- package/dist/es/commands/bootstrapLegacy.js +175 -0
- package/dist/es/commands/bootstrapLegacy.js.map +1 -0
- package/dist/es/commands/help.js +85 -0
- package/dist/es/commands/help.js.map +1 -0
- package/dist/es/commands/identityCreate.js +310 -0
- package/dist/es/commands/identityCreate.js.map +1 -0
- package/dist/es/commands/identityImports.js +76 -0
- package/dist/es/commands/identityImports.js.map +1 -0
- package/dist/es/commands/identityVerifiableCredentialCreate.js +140 -0
- package/dist/es/commands/identityVerifiableCredentialCreate.js.map +1 -0
- package/dist/es/commands/identityVerificationMethodCreate.js +208 -0
- package/dist/es/commands/identityVerificationMethodCreate.js.map +1 -0
- package/dist/es/commands/identityVerificationMethodImport.js +120 -0
- package/dist/es/commands/identityVerificationMethodImport.js.map +1 -0
- package/dist/es/commands/nodeSetIdentity.js +51 -0
- package/dist/es/commands/nodeSetIdentity.js.map +1 -0
- package/dist/es/commands/nodeSetTenant.js +49 -0
- package/dist/es/commands/nodeSetTenant.js.map +1 -0
- package/dist/es/commands/tenantCreate.js +120 -0
- package/dist/es/commands/tenantCreate.js.map +1 -0
- package/dist/es/commands/tenantImport.js +78 -0
- package/dist/es/commands/tenantImport.js.map +1 -0
- package/dist/es/commands/userCreate.js +197 -0
- package/dist/es/commands/userCreate.js.map +1 -0
- package/dist/es/commands/vaultKeyCreate.js +185 -0
- package/dist/es/commands/vaultKeyCreate.js.map +1 -0
- package/dist/es/commands/vaultKeyImport.js +98 -0
- package/dist/es/commands/vaultKeyImport.js.map +1 -0
- package/dist/es/defaults.js +20 -1
- package/dist/es/defaults.js.map +1 -1
- package/dist/es/index.js +7 -3
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/ICliArgs.js +4 -0
- package/dist/es/models/ICliArgs.js.map +1 -0
- package/dist/es/models/ICliCommand.js +2 -0
- package/dist/es/models/ICliCommand.js.map +1 -0
- package/dist/es/models/ICliCommandDefinition.js +2 -0
- package/dist/es/models/ICliCommandDefinition.js.map +1 -0
- package/dist/es/models/ICliCommandDefinitionParam.js +2 -0
- package/dist/es/models/ICliCommandDefinitionParam.js.map +1 -0
- package/dist/es/models/IEngineEnvironmentVariables.js.map +1 -1
- package/dist/es/models/INodeEngineState.js.map +1 -1
- package/dist/es/models/INodeEnvironmentVariables.js.map +1 -1
- package/dist/es/models/cliCommandParamType.js +4 -0
- package/dist/es/models/cliCommandParamType.js.map +1 -0
- package/dist/es/node.js +55 -35
- package/dist/es/node.js.map +1 -1
- package/dist/es/start.js +128 -0
- package/dist/es/start.js.map +1 -0
- package/dist/es/utils.js +1 -22
- package/dist/es/utils.js.map +1 -1
- package/dist/types/builders/engineEnvBuilder.d.ts +4 -1
- package/dist/types/builders/engineServerEnvBuilder.d.ts +5 -2
- package/dist/types/cli.d.ts +66 -0
- package/dist/types/commands/bootstrapLegacy.d.ts +66 -0
- package/dist/types/commands/help.d.ts +23 -0
- package/dist/types/commands/identityCreate.d.ts +39 -0
- package/dist/types/commands/identityImports.d.ts +24 -0
- package/dist/types/commands/identityVerifiableCredentialCreate.d.ts +43 -0
- package/dist/types/commands/identityVerificationMethodCreate.d.ts +47 -0
- package/dist/types/commands/identityVerificationMethodImport.d.ts +31 -0
- package/dist/types/commands/nodeSetIdentity.d.ts +22 -0
- package/dist/types/commands/nodeSetTenant.d.ts +22 -0
- package/dist/types/commands/tenantCreate.d.ts +35 -0
- package/dist/types/commands/tenantImport.d.ts +24 -0
- package/dist/types/commands/userCreate.d.ts +46 -0
- package/dist/types/commands/vaultKeyCreate.d.ts +43 -0
- package/dist/types/commands/vaultKeyImport.d.ts +28 -0
- package/dist/types/defaults.d.ts +11 -1
- package/dist/types/index.d.ts +7 -3
- package/dist/types/models/ICliArgs.d.ts +20 -0
- package/dist/types/models/ICliCommand.d.ts +17 -0
- package/dist/types/models/ICliCommandDefinition.d.ts +46 -0
- package/dist/types/models/ICliCommandDefinitionParam.d.ts +35 -0
- package/dist/types/models/IEngineEnvironmentVariables.d.ts +51 -42
- package/dist/types/models/INodeEngineState.d.ts +0 -8
- package/dist/types/models/INodeEnvironmentVariables.d.ts +0 -38
- package/dist/types/models/cliCommandParamType.d.ts +4 -0
- package/dist/types/node.d.ts +6 -2
- package/dist/types/{server.d.ts → start.d.ts} +7 -2
- package/dist/types/utils.d.ts +0 -8
- package/docs/changelog.md +63 -0
- package/docs/reference/functions/buildConfiguration.md +2 -2
- package/docs/reference/functions/buildEngineConfiguration.md +1 -1
- package/docs/reference/functions/buildEngineServerConfiguration.md +3 -3
- package/docs/reference/functions/constructCliCommand.md +27 -0
- package/docs/reference/functions/executeCommand.md +29 -0
- package/docs/reference/functions/getEnvDefaults.md +19 -0
- package/docs/reference/functions/initCli.md +27 -0
- package/docs/reference/functions/parseCommandLineArgs.md +19 -0
- package/docs/reference/functions/processEnvOptions.md +27 -0
- package/docs/reference/functions/registerCommands.md +9 -0
- package/docs/reference/functions/run.md +7 -1
- package/docs/reference/functions/start.md +10 -4
- package/docs/reference/functions/substituteEnvOptions.md +25 -0
- package/docs/reference/index.md +15 -12
- package/docs/reference/interfaces/ICliArgs.md +35 -0
- package/docs/reference/interfaces/ICliCommand.md +23 -0
- package/docs/reference/interfaces/ICliCommandDefinition.md +101 -0
- package/docs/reference/interfaces/ICliCommandDefinitionParam.md +65 -0
- package/docs/reference/interfaces/IEngineEnvironmentVariables.md +90 -65
- package/docs/reference/interfaces/IEngineServerEnvironmentVariables.md +129 -88
- package/docs/reference/interfaces/INodeEngineState.md +0 -16
- package/docs/reference/interfaces/INodeEnvironmentVariables.md +129 -172
- package/docs/reference/type-aliases/CliCommandParamType.md +5 -0
- package/docs/reference/variables/CONTEXT_ID_HANDLER_FEATURE_DID.md +3 -0
- package/docs/reference/variables/CONTEXT_ID_HANDLER_FEATURE_TENANT.md +3 -0
- package/docs/reference/variables/VC_AUTHENTICATION_VERIFICATION_METHOD_ID.md +1 -1
- package/locales/en.json +463 -30
- package/package.json +3 -1
- package/dist/es/bootstrap.js +0 -374
- package/dist/es/bootstrap.js.map +0 -1
- package/dist/es/identity.js +0 -169
- package/dist/es/identity.js.map +0 -1
- package/dist/es/models/nodeFeatures.js +0 -21
- package/dist/es/models/nodeFeatures.js.map +0 -1
- package/dist/es/server.js +0 -74
- package/dist/es/server.js.map +0 -1
- package/dist/types/bootstrap.d.ts +0 -76
- package/dist/types/identity.d.ts +0 -14
- package/dist/types/models/nodeFeatures.d.ts +0 -21
- package/docs/reference/functions/bootstrap.md +0 -29
- package/docs/reference/functions/bootstrapAuth.md +0 -35
- package/docs/reference/functions/bootstrapBlobEncryption.md +0 -35
- package/docs/reference/functions/bootstrapContextIdHandlers.md +0 -35
- package/docs/reference/functions/bootstrapImmutableProofMethod.md +0 -35
- package/docs/reference/functions/bootstrapNodeAdminUser.md +0 -35
- package/docs/reference/functions/bootstrapNodeId.md +0 -35
- package/docs/reference/functions/bootstrapSynchronisedStorage.md +0 -35
- package/docs/reference/functions/bootstrapTenantId.md +0 -35
- package/docs/reference/functions/getFeatures.md +0 -19
- package/docs/reference/type-aliases/NodeFeatures.md +0 -5
- package/docs/reference/variables/NodeFeatures.md +0 -25
|
@@ -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.
|
|
@@ -1,6 +1,6 @@
|
|
|
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
5
|
Run the TWIN Node server.
|
|
6
6
|
|
|
@@ -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`, `
|
|
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
|
-
###
|
|
27
|
+
### cliCommand?
|
|
28
28
|
|
|
29
|
-
`
|
|
29
|
+
[`ICliCommand`](../interfaces/ICliCommand.md)
|
|
30
30
|
|
|
31
|
-
The
|
|
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.
|
package/docs/reference/index.md
CHANGED
|
@@ -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.
|
|
@@ -16,6 +16,14 @@ Start the engine in debug mode.
|
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
|
+
### silent?
|
|
20
|
+
|
|
21
|
+
> `optional` **silent**: `string`
|
|
22
|
+
|
|
23
|
+
Start the engine in silent mode.
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
19
27
|
### storageFileRoot?
|
|
20
28
|
|
|
21
29
|
> `optional` **storageFileRoot**: `string`
|
|
@@ -32,27 +40,19 @@ The name of the state file.
|
|
|
32
40
|
|
|
33
41
|
***
|
|
34
42
|
|
|
35
|
-
###
|
|
43
|
+
### nodeIdentityEnabled?
|
|
36
44
|
|
|
37
|
-
> `optional` **
|
|
45
|
+
> `optional` **nodeIdentityEnabled**: `string`
|
|
38
46
|
|
|
39
|
-
|
|
47
|
+
Does the node have a unique ID, defaults to true.
|
|
40
48
|
|
|
41
49
|
***
|
|
42
50
|
|
|
43
|
-
###
|
|
44
|
-
|
|
45
|
-
> `optional` **tenantId**: `string`
|
|
46
|
-
|
|
47
|
-
A tenant id to use as a default for the node.
|
|
48
|
-
|
|
49
|
-
***
|
|
50
|
-
|
|
51
|
-
### tenantApiKey?
|
|
51
|
+
### tenantEnabled?
|
|
52
52
|
|
|
53
|
-
> `optional` **
|
|
53
|
+
> `optional` **tenantEnabled**: `string`
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
Is multi-tenant support enabled, defaults to false.
|
|
56
56
|
|
|
57
57
|
***
|
|
58
58
|
|
|
@@ -121,6 +121,14 @@ AWS Dynamo DB secret access key.
|
|
|
121
121
|
|
|
122
122
|
***
|
|
123
123
|
|
|
124
|
+
### awsDynamodbConnectionTimeoutMs?
|
|
125
|
+
|
|
126
|
+
> `optional` **awsDynamodbConnectionTimeoutMs**: `string`
|
|
127
|
+
|
|
128
|
+
AWS Dynamo DB connection timeout.
|
|
129
|
+
|
|
130
|
+
***
|
|
131
|
+
|
|
124
132
|
### azureCosmosdbKey?
|
|
125
133
|
|
|
126
134
|
> `optional` **azureCosmosdbKey**: `string`
|
|
@@ -402,15 +410,6 @@ The id of the encryption key for the blob storage.
|
|
|
402
410
|
|
|
403
411
|
***
|
|
404
412
|
|
|
405
|
-
### blobStorageSymmetricEncryptionKey?
|
|
406
|
-
|
|
407
|
-
> `optional` **blobStorageSymmetricEncryptionKey**: `string`
|
|
408
|
-
|
|
409
|
-
A symmetric encryption key for the blob storage, should be ChaCha20Poly1305 in base64 format.
|
|
410
|
-
If encryption is enabled but a key is not provided one will be generated.
|
|
411
|
-
|
|
412
|
-
***
|
|
413
|
-
|
|
414
413
|
### blobStoragePrefix?
|
|
415
414
|
|
|
416
415
|
> `optional` **blobStoragePrefix**: `string`
|
|
@@ -563,14 +562,6 @@ The type of logging task connector, can be a comma separated list: console, enti
|
|
|
563
562
|
|
|
564
563
|
***
|
|
565
564
|
|
|
566
|
-
### backgroundTaskConnector?
|
|
567
|
-
|
|
568
|
-
> `optional` **backgroundTaskConnector**: `string`
|
|
569
|
-
|
|
570
|
-
The type of background task connector: entity-storage.
|
|
571
|
-
|
|
572
|
-
***
|
|
573
|
-
|
|
574
565
|
### eventBusConnector?
|
|
575
566
|
|
|
576
567
|
> `optional` **eventBusConnector**: `string`
|
|
@@ -707,6 +698,14 @@ The type of identity connector: entity-storage, iota.
|
|
|
707
698
|
|
|
708
699
|
***
|
|
709
700
|
|
|
701
|
+
### identityWalletAddressIndex?
|
|
702
|
+
|
|
703
|
+
> `optional` **identityWalletAddressIndex**: `string`
|
|
704
|
+
|
|
705
|
+
The index of the wallet address to use, defaults to 0.
|
|
706
|
+
|
|
707
|
+
***
|
|
708
|
+
|
|
710
709
|
### identityResolverConnector?
|
|
711
710
|
|
|
712
711
|
> `optional` **identityResolverConnector**: `string`
|
|
@@ -975,19 +974,44 @@ Is the federated catalogue enabled, defaults to false.
|
|
|
975
974
|
|
|
976
975
|
***
|
|
977
976
|
|
|
978
|
-
###
|
|
977
|
+
### federatedCatalogueFilters?
|
|
978
|
+
|
|
979
|
+
> `optional` **federatedCatalogueFilters**: `string`
|
|
980
|
+
|
|
981
|
+
Federated catalog filters, command separated list of filters to add.
|
|
982
|
+
|
|
983
|
+
***
|
|
984
|
+
|
|
985
|
+
### trustEnabled?
|
|
986
|
+
|
|
987
|
+
> `optional` **trustEnabled**: `string`
|
|
988
|
+
|
|
989
|
+
Is the trust management enabled, defaults to false.
|
|
990
|
+
|
|
991
|
+
***
|
|
992
|
+
|
|
993
|
+
### trustGenerators?
|
|
994
|
+
|
|
995
|
+
> `optional` **trustGenerators**: `string`
|
|
996
|
+
|
|
997
|
+
The trust generators to add to the factory, comma separated list.
|
|
998
|
+
|
|
999
|
+
***
|
|
1000
|
+
|
|
1001
|
+
### trustVerifiers?
|
|
979
1002
|
|
|
980
|
-
> `optional` **
|
|
1003
|
+
> `optional` **trustVerifiers**: `string`
|
|
981
1004
|
|
|
982
|
-
|
|
1005
|
+
The trust verifiers to add to the factory, comma separated list.
|
|
983
1006
|
|
|
984
1007
|
***
|
|
985
1008
|
|
|
986
|
-
###
|
|
1009
|
+
### trustVerificationMethodId?
|
|
987
1010
|
|
|
988
|
-
> `optional` **
|
|
1011
|
+
> `optional` **trustVerificationMethodId**: `string`
|
|
989
1012
|
|
|
990
|
-
|
|
1013
|
+
The verification method to use for trust identities.
|
|
1014
|
+
Defaults to node-authentication-assertion.
|
|
991
1015
|
|
|
992
1016
|
***
|
|
993
1017
|
|
|
@@ -1007,66 +1031,67 @@ What is the base callback url for rights management negotiations e.g. https://my
|
|
|
1007
1031
|
|
|
1008
1032
|
***
|
|
1009
1033
|
|
|
1010
|
-
###
|
|
1034
|
+
### rightsManagementPolicyInformationSources?
|
|
1035
|
+
|
|
1036
|
+
> `optional` **rightsManagementPolicyInformationSources**: `string`
|
|
1037
|
+
|
|
1038
|
+
The rights management policy information sources to add to the factory.
|
|
1039
|
+
|
|
1040
|
+
***
|
|
1041
|
+
|
|
1042
|
+
### rightsManagementPolicyNegotiators?
|
|
1011
1043
|
|
|
1012
|
-
> `optional` **
|
|
1044
|
+
> `optional` **rightsManagementPolicyNegotiators**: `string`
|
|
1013
1045
|
|
|
1014
|
-
The rights management
|
|
1015
|
-
Use the @json: prefix to specify the path to the JSON configuration file.
|
|
1046
|
+
The rights management policy negotiators sources to add to the factory.
|
|
1016
1047
|
|
|
1017
1048
|
***
|
|
1018
1049
|
|
|
1019
|
-
###
|
|
1050
|
+
### rightsManagementPolicyRequesters?
|
|
1020
1051
|
|
|
1021
|
-
> `optional` **
|
|
1052
|
+
> `optional` **rightsManagementPolicyRequesters**: `string`
|
|
1022
1053
|
|
|
1023
|
-
The rights management
|
|
1024
|
-
Use the @json: prefix to specify the path to the JSON configuration file.
|
|
1054
|
+
The rights management policy requesters to add to the factory.
|
|
1025
1055
|
|
|
1026
1056
|
***
|
|
1027
1057
|
|
|
1028
|
-
###
|
|
1058
|
+
### rightsManagementPolicyExecutionActions?
|
|
1029
1059
|
|
|
1030
|
-
> `optional` **
|
|
1060
|
+
> `optional` **rightsManagementPolicyExecutionActions**: `string`
|
|
1031
1061
|
|
|
1032
|
-
The rights management
|
|
1033
|
-
Use the @json: prefix to specify the path to the JSON configuration file.
|
|
1062
|
+
The rights management policy execution actions to add to the factory.
|
|
1034
1063
|
|
|
1035
1064
|
***
|
|
1036
1065
|
|
|
1037
|
-
###
|
|
1066
|
+
### rightsManagementPolicyEnforcementProcessors?
|
|
1038
1067
|
|
|
1039
|
-
> `optional` **
|
|
1068
|
+
> `optional` **rightsManagementPolicyEnforcementProcessors**: `string`
|
|
1040
1069
|
|
|
1041
|
-
The rights management
|
|
1042
|
-
Use the @json: prefix to specify the path to the JSON configuration file.
|
|
1070
|
+
The rights management policy enforcement processors to add to the factory.
|
|
1043
1071
|
|
|
1044
1072
|
***
|
|
1045
1073
|
|
|
1046
|
-
###
|
|
1074
|
+
### rightsManagementPolicyArbiters?
|
|
1047
1075
|
|
|
1048
|
-
> `optional` **
|
|
1076
|
+
> `optional` **rightsManagementPolicyArbiters**: `string`
|
|
1049
1077
|
|
|
1050
|
-
The rights management
|
|
1051
|
-
Use the @json: prefix to specify the path to the JSON configuration file.
|
|
1078
|
+
The rights management policy arbiters to add to the factory.
|
|
1052
1079
|
|
|
1053
1080
|
***
|
|
1054
1081
|
|
|
1055
|
-
###
|
|
1082
|
+
### rightsManagementDataAccessHandlers?
|
|
1056
1083
|
|
|
1057
|
-
> `optional` **
|
|
1084
|
+
> `optional` **rightsManagementDataAccessHandlers**: `string`
|
|
1058
1085
|
|
|
1059
|
-
The rights management
|
|
1060
|
-
Use the @json: prefix to specify the path to the JSON configuration file.
|
|
1086
|
+
The rights management data access handlers to add to the factory.
|
|
1061
1087
|
|
|
1062
1088
|
***
|
|
1063
1089
|
|
|
1064
|
-
###
|
|
1090
|
+
### backgroundTasksEnabled?
|
|
1065
1091
|
|
|
1066
|
-
> `optional` **
|
|
1092
|
+
> `optional` **backgroundTasksEnabled**: `string`
|
|
1067
1093
|
|
|
1068
|
-
|
|
1069
|
-
Use the @json: prefix to specify the path to the JSON configuration file.
|
|
1094
|
+
Are background tasks enabled, defaults to false.
|
|
1070
1095
|
|
|
1071
1096
|
***
|
|
1072
1097
|
|