@twin.org/node-core 0.0.1 → 0.0.2-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/cjs/index.cjs +440 -219
- package/dist/esm/index.mjs +439 -221
- package/dist/types/bootstrap.d.ts +9 -9
- package/dist/types/builders/engineServerEnvBuilder.d.ts +2 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/IEngineEnvironmentVariables.d.ts +115 -21
- package/dist/types/models/INodeOptions.d.ts +4 -0
- package/dist/types/models/nodeFeatures.d.ts +4 -0
- package/dist/types/node.d.ts +5 -0
- package/dist/types/utils.d.ts +6 -0
- package/docs/changelog.md +92 -0
- package/docs/reference/functions/{bootstrapAttestationMethod.md → bootstrapSynchronisedStorage.md} +3 -3
- package/docs/reference/functions/buildEngineServerConfiguration.md +43 -0
- package/docs/reference/functions/loadTextFile.md +19 -0
- package/docs/reference/functions/overrideModuleImport.md +17 -0
- package/docs/reference/index.md +4 -1
- package/docs/reference/interfaces/IEngineEnvironmentVariables.md +222 -32
- package/docs/reference/interfaces/INodeEnvironmentVariables.md +309 -43
- package/docs/reference/interfaces/INodeOptions.md +8 -0
- package/docs/reference/variables/NodeFeatures.md +7 -1
- package/locales/en.json +6 -4
- package/package.json +19 -16
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IEngineCore, IEngineCoreContext, IEngineState } from "@twin.org/engine-models";
|
|
2
|
-
import type
|
|
2
|
+
import { type IEngineServerConfig } from "@twin.org/engine-server-types";
|
|
3
3
|
import type { INodeEnvironmentVariables } from "./models/INodeEnvironmentVariables";
|
|
4
4
|
import { NodeFeatures } from "./models/nodeFeatures";
|
|
5
5
|
/**
|
|
@@ -25,14 +25,6 @@ export declare function bootstrapNodeIdentity(engineCore: IEngineCore, context:
|
|
|
25
25
|
* @param features The features that are enabled on the node.
|
|
26
26
|
*/
|
|
27
27
|
export declare function bootstrapNodeUser(engineCore: IEngineCore, context: IEngineCoreContext<IEngineServerConfig, IEngineState>, envVars: INodeEnvironmentVariables, features: NodeFeatures[]): Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* Bootstrap the attestation verification methods.
|
|
30
|
-
* @param engineCore The engine core for the node.
|
|
31
|
-
* @param context The context for the node.
|
|
32
|
-
* @param envVars The environment variables for the node.
|
|
33
|
-
* @param features The features that are enabled on the node.
|
|
34
|
-
*/
|
|
35
|
-
export declare function bootstrapAttestationMethod(engineCore: IEngineCore, context: IEngineCoreContext<IEngineServerConfig, IEngineState>, envVars: INodeEnvironmentVariables, features: NodeFeatures[]): Promise<void>;
|
|
36
28
|
/**
|
|
37
29
|
* Bootstrap the immutable proof verification methods.
|
|
38
30
|
* @param engineCore The engine core for the node.
|
|
@@ -57,3 +49,11 @@ export declare function bootstrapBlobEncryption(engineCore: IEngineCore, context
|
|
|
57
49
|
* @param features The features that are enabled on the node.
|
|
58
50
|
*/
|
|
59
51
|
export declare function bootstrapAuth(engineCore: IEngineCore, context: IEngineCoreContext<IEngineServerConfig, IEngineState>, envVars: INodeEnvironmentVariables, features: NodeFeatures[]): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Bootstrap the synchronised storage blob encryption and verification methods.
|
|
54
|
+
* @param engineCore The engine core for the node.
|
|
55
|
+
* @param context The context for the node.
|
|
56
|
+
* @param envVars The environment variables for the node.
|
|
57
|
+
* @param features The features that are enabled on the node.
|
|
58
|
+
*/
|
|
59
|
+
export declare function bootstrapSynchronisedStorage(engineCore: IEngineCore, context: IEngineCoreContext<IEngineServerConfig, IEngineState>, envVars: INodeEnvironmentVariables, features: NodeFeatures[]): Promise<void>;
|
|
@@ -8,6 +8,7 @@ import type { IEngineServerEnvironmentVariables } from "../models/IEngineServerE
|
|
|
8
8
|
* @param coreEngineConfig The core engine config.
|
|
9
9
|
* @param serverInfo The server information.
|
|
10
10
|
* @param openApiSpecPath The path to the open api spec.
|
|
11
|
+
* @param favIconPath The path to the favicon.
|
|
11
12
|
* @returns The the config for the core and the server.
|
|
12
13
|
*/
|
|
13
|
-
export declare function buildEngineServerConfiguration(envVars: IEngineServerEnvironmentVariables, coreEngineConfig: IEngineCoreConfig, serverInfo: IServerInfo, openApiSpecPath?: string): IEngineServerConfig;
|
|
14
|
+
export declare function buildEngineServerConfiguration(envVars: IEngineServerEnvironmentVariables, coreEngineConfig: IEngineCoreConfig, serverInfo: IServerInfo, openApiSpecPath?: string, favIconPath?: string): IEngineServerConfig;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./bootstrap";
|
|
2
2
|
export * from "./builders/engineEnvBuilder";
|
|
3
|
+
export * from "./builders/engineServerEnvBuilder";
|
|
3
4
|
export * from "./models/IEngineEnvironmentVariables";
|
|
4
5
|
export * from "./models/IEngineServerEnvironmentVariables";
|
|
5
6
|
export * from "./models/INodeEnvironmentVariables";
|
|
@@ -15,21 +15,18 @@ export interface IEngineEnvironmentVariables {
|
|
|
15
15
|
*/
|
|
16
16
|
stateFilename?: string;
|
|
17
17
|
/**
|
|
18
|
-
* The type of the
|
|
18
|
+
* The type of the entity storage to create, comma separate for more than one connector.
|
|
19
|
+
* values: file, memory, aws-dynamodb, azure-cosmosdb, gcp-firestoredb, scylladb, mysql, mongodb, postgresql
|
|
19
20
|
*/
|
|
20
21
|
entityStorageConnectorType?: string;
|
|
21
22
|
/**
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
entityStorageTablePrefix?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Enable the file entity storage connector.
|
|
23
|
+
* The default entity storage connector to use, defaults to the first one in the list.
|
|
27
24
|
*/
|
|
28
|
-
|
|
25
|
+
entityStorageConnectorDefault?: string;
|
|
29
26
|
/**
|
|
30
|
-
*
|
|
27
|
+
* A prefix for all the table in entity-storage, can be empty.
|
|
31
28
|
*/
|
|
32
|
-
|
|
29
|
+
entityStorageTablePrefix?: string;
|
|
33
30
|
/**
|
|
34
31
|
* AWS Dynamo DB access key id.
|
|
35
32
|
*/
|
|
@@ -94,6 +91,10 @@ export interface IEngineEnvironmentVariables {
|
|
|
94
91
|
* ScyllaDB local data center.
|
|
95
92
|
*/
|
|
96
93
|
scylladbLocalDataCenter?: string;
|
|
94
|
+
/**
|
|
95
|
+
* ScyllaDB port.
|
|
96
|
+
*/
|
|
97
|
+
scylladbPort?: string;
|
|
97
98
|
/**
|
|
98
99
|
* MySQL host.
|
|
99
100
|
*/
|
|
@@ -163,29 +164,35 @@ export interface IEngineEnvironmentVariables {
|
|
|
163
164
|
*/
|
|
164
165
|
ipfsApiUrl?: string;
|
|
165
166
|
/**
|
|
166
|
-
* The type of the
|
|
167
|
+
* The type of the entity storage to create, comma separate for more than one connector.
|
|
168
|
+
* values: memory, file, ipfs, aws-s3, azure-storage, gcp-storage.
|
|
167
169
|
*/
|
|
168
170
|
blobStorageConnectorType?: string;
|
|
169
171
|
/**
|
|
170
|
-
*
|
|
172
|
+
* The default blob storage connector to use, defaults to the first one in the list.
|
|
171
173
|
*/
|
|
172
|
-
|
|
174
|
+
blobStorageConnectorDefault?: string;
|
|
173
175
|
/**
|
|
174
|
-
*
|
|
176
|
+
* Blog storage connector which has public access.
|
|
175
177
|
*/
|
|
176
|
-
|
|
178
|
+
blobStorageConnectorPublic?: string;
|
|
177
179
|
/**
|
|
178
|
-
*
|
|
180
|
+
* Enable encryption for the blob storage.
|
|
179
181
|
*/
|
|
180
|
-
|
|
182
|
+
blobStorageEnableEncryption?: string;
|
|
181
183
|
/**
|
|
182
|
-
*
|
|
184
|
+
* The id of the encryption key for the blob storage.
|
|
183
185
|
*/
|
|
184
|
-
|
|
186
|
+
blobStorageEncryptionKeyId?: string;
|
|
185
187
|
/**
|
|
186
|
-
*
|
|
188
|
+
* A symmetric encryption key for the blob storage, should be ChaCha20Poly1305 in base64 format.
|
|
189
|
+
* If encryption is enabled but a key is not provided one will be generated.
|
|
187
190
|
*/
|
|
188
|
-
|
|
191
|
+
blobStorageSymmetricEncryptionKey?: string;
|
|
192
|
+
/**
|
|
193
|
+
* A prefix for all the blobs in blob-storage, can be empty.
|
|
194
|
+
*/
|
|
195
|
+
blobStoragePrefix?: string;
|
|
189
196
|
/**
|
|
190
197
|
* AWS S3 access key id.
|
|
191
198
|
*/
|
|
@@ -370,6 +377,59 @@ export interface IEngineEnvironmentVariables {
|
|
|
370
377
|
* The type of the default data extractor, can be a comma separated list: json-path.
|
|
371
378
|
*/
|
|
372
379
|
dataExtractorConnectors?: string;
|
|
380
|
+
/**
|
|
381
|
+
* Is the synchronised storage enabled, defaults to false.
|
|
382
|
+
*/
|
|
383
|
+
synchronisedStorageEnabled?: string;
|
|
384
|
+
/**
|
|
385
|
+
* Url which points to the api for a trusted synchronised storage node, not required if this is a trusted node.
|
|
386
|
+
*/
|
|
387
|
+
synchronisedStorageTrustedUrl?: string;
|
|
388
|
+
/**
|
|
389
|
+
* The key for the smart contract which contains the verifiable storage pointer store for synchronised storage.
|
|
390
|
+
* This only required if using a custom verifiable storage item, otherwise it will default the the network name.
|
|
391
|
+
*/
|
|
392
|
+
synchronisedStorageVerifiableStorageKeyId?: string;
|
|
393
|
+
/**
|
|
394
|
+
* The identity verification method id to use with synchronised storage for signing/verifying changesets.
|
|
395
|
+
* Defaults to synchronised-storage-assertion.
|
|
396
|
+
*/
|
|
397
|
+
synchronisedStorageVerificationMethodId?: string;
|
|
398
|
+
/**
|
|
399
|
+
* The key from the vault which is used to encrypt the synchronised storage blobs.
|
|
400
|
+
* Only required for trusted nodes, as regular nodes will request from the trusted nodes.
|
|
401
|
+
* Defaults to synchronised-storage-blob-encryption
|
|
402
|
+
*/
|
|
403
|
+
synchronisedStorageBlobStorageEncryptionKeyId?: string;
|
|
404
|
+
/**
|
|
405
|
+
* The key used for blob encryption, should be ChaCha20Poly1305 encoded as base64.
|
|
406
|
+
* Only required for trusted nodes, as regular nodes will not write encrypted data.
|
|
407
|
+
*/
|
|
408
|
+
synchronisedStorageBlobStorageKey?: string;
|
|
409
|
+
/**
|
|
410
|
+
* How often to check for entity updates in minutes.
|
|
411
|
+
* @default 5
|
|
412
|
+
*/
|
|
413
|
+
synchronisedStorageEntityUpdateIntervalMinutes?: string;
|
|
414
|
+
/**
|
|
415
|
+
* Interval to perform consolidation of changesets, only used if this is a trusted node.
|
|
416
|
+
* @default 60
|
|
417
|
+
*/
|
|
418
|
+
synchronisedStorageConsolidationIntervalMinutes?: string;
|
|
419
|
+
/**
|
|
420
|
+
* The number of entities to process in a single consolidation batch, only used if this is a trusted node.
|
|
421
|
+
* @default 1000
|
|
422
|
+
*/
|
|
423
|
+
synchronisedStorageConsolidationBatchSize?: string;
|
|
424
|
+
/**
|
|
425
|
+
* The maximum number of consolidations to keep in storage, only used if this is a trusted node.
|
|
426
|
+
* @default 5
|
|
427
|
+
*/
|
|
428
|
+
synchronisedStorageMaxConsolidations?: string;
|
|
429
|
+
/**
|
|
430
|
+
* Is the federated catalogue enabled, defaults to false.
|
|
431
|
+
*/
|
|
432
|
+
federatedCatalogueEnabled?: string;
|
|
373
433
|
/**
|
|
374
434
|
* Federated catalog TTL for the cache.
|
|
375
435
|
*/
|
|
@@ -383,7 +443,41 @@ export interface IEngineEnvironmentVariables {
|
|
|
383
443
|
*/
|
|
384
444
|
rightsManagementEnabled?: string;
|
|
385
445
|
/**
|
|
386
|
-
*
|
|
446
|
+
* The rights management verification method id to use when signing/verifying negotiation requests.
|
|
447
|
+
* Defaults to policy-negotiation-assertion.
|
|
448
|
+
*/
|
|
449
|
+
rightsManagementNegotiationMethodId?: string;
|
|
450
|
+
/**
|
|
451
|
+
* The rights management configuration which includes the negotiator modules to load.
|
|
452
|
+
* Use the @json: prefix to specify the path to the JSON configuration file.
|
|
453
|
+
*/
|
|
454
|
+
rightsManagementNegotiators?: string;
|
|
455
|
+
/**
|
|
456
|
+
* The rights management configuration which includes the information sources modules to load.
|
|
457
|
+
* Use the @json: prefix to specify the path to the JSON configuration file.
|
|
458
|
+
*/
|
|
459
|
+
rightsManagementInformationSources?: string;
|
|
460
|
+
/**
|
|
461
|
+
* The rights management configuration which includes the execution actions modules to load.
|
|
462
|
+
* Use the @json: prefix to specify the path to the JSON configuration file.
|
|
463
|
+
*/
|
|
464
|
+
rightsManagementExecutionActions?: string;
|
|
465
|
+
/**
|
|
466
|
+
* The rights management configuration which includes the enforcement processor modules to load.
|
|
467
|
+
* Use the @json: prefix to specify the path to the JSON configuration file.
|
|
468
|
+
*/
|
|
469
|
+
rightsManagementEnforcementProcessors?: string;
|
|
470
|
+
/**
|
|
471
|
+
* Is the task scheduler enabled, defaults to false.
|
|
387
472
|
*/
|
|
388
473
|
taskSchedulerEnabled?: string;
|
|
474
|
+
/**
|
|
475
|
+
* Is the data space connector enabled, defaults to false.
|
|
476
|
+
*/
|
|
477
|
+
dataSpaceConnectorEnabled?: string;
|
|
478
|
+
/**
|
|
479
|
+
* The application configuration for the data space connector.
|
|
480
|
+
* Use the @json: prefix to specify the path to the JSON configuration file.
|
|
481
|
+
*/
|
|
482
|
+
dataSpaceConnectorApps?: string;
|
|
389
483
|
}
|
|
@@ -45,6 +45,10 @@ export interface INodeOptions {
|
|
|
45
45
|
* The path to the OpenAPI spec file, defaults to docs/open-api/spec.json.
|
|
46
46
|
*/
|
|
47
47
|
openApiSpecFile?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The path to the favicon, defaults to static/favicon.png.
|
|
50
|
+
*/
|
|
51
|
+
favIconFile?: string;
|
|
48
52
|
/**
|
|
49
53
|
* Method to extend the engine environment variables with any additional custom configuration.
|
|
50
54
|
*/
|
|
@@ -10,6 +10,10 @@ export declare const NodeFeatures: {
|
|
|
10
10
|
* NodeUser - generates a user for the node if not provided in config.
|
|
11
11
|
*/
|
|
12
12
|
readonly NodeUser: "node-user";
|
|
13
|
+
/**
|
|
14
|
+
* NodeWallet - generates a wallet for the node and funds it when there is a faucet available.
|
|
15
|
+
*/
|
|
16
|
+
readonly NodeWallet: "node-wallet";
|
|
13
17
|
};
|
|
14
18
|
/**
|
|
15
19
|
* The features that can be enabled on the node.
|
package/dist/types/node.d.ts
CHANGED
|
@@ -24,3 +24,8 @@ export declare function buildConfiguration(processEnv: {
|
|
|
24
24
|
};
|
|
25
25
|
engineServerConfig: IEngineServerConfig;
|
|
26
26
|
}>;
|
|
27
|
+
/**
|
|
28
|
+
* Override module imports to use local files where possible.
|
|
29
|
+
* @param executionDirectory The execution directory for resolving local module paths.
|
|
30
|
+
*/
|
|
31
|
+
export declare function overrideModuleImport(executionDirectory: string): void;
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -16,6 +16,12 @@ export declare function getExecutionDirectory(): string;
|
|
|
16
16
|
* @returns True if the file exists.
|
|
17
17
|
*/
|
|
18
18
|
export declare function fileExists(filename: string): Promise<boolean>;
|
|
19
|
+
/**
|
|
20
|
+
* Load the text file.
|
|
21
|
+
* @param filename The filename of the text file to load.
|
|
22
|
+
* @returns The contents of the text file if it could not be loaded.
|
|
23
|
+
*/
|
|
24
|
+
export declare function loadTextFile(filename: string): Promise<string>;
|
|
19
25
|
/**
|
|
20
26
|
* Load the JSON file.
|
|
21
27
|
* @param filename The filename of the JSON file to load.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,97 @@
|
|
|
1
1
|
# @twin.org/node-core - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.2-next.10](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.9...node-core-v0.0.2-next.10) (2025-09-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add rights management components ([0fc6293](https://github.com/twinfoundation/node/commit/0fc629332db24494bd73003625c7bf3f939a2597))
|
|
9
|
+
|
|
10
|
+
## [0.0.2-next.9](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.8...node-core-v0.0.2-next.9) (2025-08-31)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* eslint migration to flat config ([080db74](https://github.com/twinfoundation/node/commit/080db746390230f78725d214bc957da2efee9eb1))
|
|
16
|
+
|
|
17
|
+
## [0.0.2-next.8](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.7...node-core-v0.0.2-next.8) (2025-08-27)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* add module override for better local import resolution ([ba00d17](https://github.com/twinfoundation/node/commit/ba00d17beea0a9a1851c89ad7c6a33256051c818))
|
|
23
|
+
|
|
24
|
+
## [0.0.2-next.7](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.6...node-core-v0.0.2-next.7) (2025-08-26)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* add data space connector ([5a57087](https://github.com/twinfoundation/node/commit/5a57087d938265d3a4a812ff7c83d130ea4e103c))
|
|
30
|
+
* add data space connector ([f7a3644](https://github.com/twinfoundation/node/commit/f7a364477ec664e333e5ad018795acec6ee61edc))
|
|
31
|
+
* add data space connector ([157e8b0](https://github.com/twinfoundation/node/commit/157e8b0a76e3a8a63c1991924f7f963eb83e27ae))
|
|
32
|
+
|
|
33
|
+
## [0.0.2-next.6](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.5...node-core-v0.0.2-next.6) (2025-08-22)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* add rights management ([78fba62](https://github.com/twinfoundation/node/commit/78fba62f82afdbe615d55dd90eca8ee70ea62fc0))
|
|
39
|
+
* remove unused properties ([d8344b5](https://github.com/twinfoundation/node/commit/d8344b5aee5dc1c8104d75fad5093097f6530168))
|
|
40
|
+
|
|
41
|
+
## [0.0.2-next.5](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.4...node-core-v0.0.2-next.5) (2025-08-21)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
### Features
|
|
45
|
+
|
|
46
|
+
* update framework core ([8bd769a](https://github.com/twinfoundation/node/commit/8bd769a4451f5f1f6be3f115a5e94eeb05bce7f1))
|
|
47
|
+
|
|
48
|
+
## [0.0.2-next.4](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.3...node-core-v0.0.2-next.4) (2025-08-14)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Features
|
|
52
|
+
|
|
53
|
+
* add synchronised storage config ([e315869](https://github.com/twinfoundation/node/commit/e315869adbffcd7fe5d3ce151dd35f662f6134a9))
|
|
54
|
+
|
|
55
|
+
## [0.0.2-next.3](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.2...node-core-v0.0.2-next.3) (2025-07-21)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
### Features
|
|
59
|
+
|
|
60
|
+
* update to latest engine config ([347386c](https://github.com/twinfoundation/node/commit/347386c0609e717dc20c456ad2264c83df793c59))
|
|
61
|
+
|
|
62
|
+
## [0.0.2-next.2](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.1...node-core-v0.0.2-next.2) (2025-07-17)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Features
|
|
66
|
+
|
|
67
|
+
* support multiple entity and blob storage connectors ([a489f79](https://github.com/twinfoundation/node/commit/a489f7907544aef5708d5111e9f72985e1377bae))
|
|
68
|
+
|
|
69
|
+
## [0.0.2-next.1](https://github.com/twinfoundation/node/compare/node-core-v0.0.2-next.0...node-core-v0.0.2-next.1) (2025-07-15)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Features
|
|
73
|
+
|
|
74
|
+
* add auth admin component ([1661e57](https://github.com/twinfoundation/node/commit/1661e57a699d5cf9ebde333e3cbc3aaea89d7c9c))
|
|
75
|
+
* add extend engine and server methods ([ec09c7e](https://github.com/twinfoundation/node/commit/ec09c7eb882d9f5797f2fd372e96cad1a3716f59))
|
|
76
|
+
* add extend engine and server methods ([0136a6f](https://github.com/twinfoundation/node/commit/0136a6f3f4e1a82b1427ee9618b8a17c79bc7fda))
|
|
77
|
+
* add missing export ([e8eb621](https://github.com/twinfoundation/node/commit/e8eb6213937a202520b164a9970a891004122b61))
|
|
78
|
+
* additional run options ([c35e5bb](https://github.com/twinfoundation/node/commit/c35e5bbb8a80fe6a36628d41f64585b3723d9ad7))
|
|
79
|
+
* additional startup logging ([0740293](https://github.com/twinfoundation/node/commit/0740293b366032f2907046603abf587c9c324aff))
|
|
80
|
+
* improve default options and spec ([b538721](https://github.com/twinfoundation/node/commit/b538721902e7f65021d2715148ba59409ccce035))
|
|
81
|
+
* improve error reporting ([fcd39a1](https://github.com/twinfoundation/node/commit/fcd39a18da2a6ce33965a99ca5f2f36f4aba712f))
|
|
82
|
+
* initial commit ([522f1e5](https://github.com/twinfoundation/node/commit/522f1e515348f9b1dd1eeb3170b1249e2b0b5371))
|
|
83
|
+
* migrate env config from engine to node ([5da29b8](https://github.com/twinfoundation/node/commit/5da29b8d714495308320d237a68e84355bba2b47))
|
|
84
|
+
* node app use JavaScript ([14fe08c](https://github.com/twinfoundation/node/commit/14fe08cb760dd885a5dac9056a4d5dbc3d61df64))
|
|
85
|
+
* update dependencies ([9d25f16](https://github.com/twinfoundation/node/commit/9d25f16f1d554cd38f3bec28fdf7f8fff892ceaf))
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
### Bug Fixes
|
|
89
|
+
|
|
90
|
+
* adding a condition to verify if the password exists when bootstrapping ([6030a42](https://github.com/twinfoundation/node/commit/6030a42bdaf581678d96932fd0b809396bf7b8b0))
|
|
91
|
+
* adding a condition to verify if the password exists when bootstrapping ([c66f396](https://github.com/twinfoundation/node/commit/c66f396717394161a7647d1f08b3d87729d96e96))
|
|
92
|
+
* broken docs ([61479fd](https://github.com/twinfoundation/node/commit/61479fd618f766d22c5aafec5277e1a89e22b453))
|
|
93
|
+
* pr comments [#1](https://github.com/twinfoundation/node/issues/1) ([66e795b](https://github.com/twinfoundation/node/commit/66e795b16c372ab131ec1de30085aee90e4dbbd0))
|
|
94
|
+
|
|
3
95
|
## 0.0.1 (2025-07-11)
|
|
4
96
|
|
|
5
97
|
|
package/docs/reference/functions/{bootstrapAttestationMethod.md → bootstrapSynchronisedStorage.md}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Function:
|
|
1
|
+
# Function: bootstrapSynchronisedStorage()
|
|
2
2
|
|
|
3
|
-
> **
|
|
3
|
+
> **bootstrapSynchronisedStorage**(`engineCore`, `context`, `envVars`, `features`): `Promise`\<`void`\>
|
|
4
4
|
|
|
5
|
-
Bootstrap the
|
|
5
|
+
Bootstrap the synchronised storage blob encryption and verification methods.
|
|
6
6
|
|
|
7
7
|
## Parameters
|
|
8
8
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Function: buildEngineServerConfiguration()
|
|
2
|
+
|
|
3
|
+
> **buildEngineServerConfiguration**(`envVars`, `coreEngineConfig`, `serverInfo`, `openApiSpecPath?`, `favIconPath?`): `IEngineServerConfig`
|
|
4
|
+
|
|
5
|
+
Handles the configuration of the server.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### envVars
|
|
10
|
+
|
|
11
|
+
[`IEngineServerEnvironmentVariables`](../interfaces/IEngineServerEnvironmentVariables.md)
|
|
12
|
+
|
|
13
|
+
The environment variables for the engine server.
|
|
14
|
+
|
|
15
|
+
### coreEngineConfig
|
|
16
|
+
|
|
17
|
+
`IEngineCoreConfig`
|
|
18
|
+
|
|
19
|
+
The core engine config.
|
|
20
|
+
|
|
21
|
+
### serverInfo
|
|
22
|
+
|
|
23
|
+
`IServerInfo`
|
|
24
|
+
|
|
25
|
+
The server information.
|
|
26
|
+
|
|
27
|
+
### openApiSpecPath?
|
|
28
|
+
|
|
29
|
+
`string`
|
|
30
|
+
|
|
31
|
+
The path to the open api spec.
|
|
32
|
+
|
|
33
|
+
### favIconPath?
|
|
34
|
+
|
|
35
|
+
`string`
|
|
36
|
+
|
|
37
|
+
The path to the favicon.
|
|
38
|
+
|
|
39
|
+
## Returns
|
|
40
|
+
|
|
41
|
+
`IEngineServerConfig`
|
|
42
|
+
|
|
43
|
+
The the config for the core and the server.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Function: loadTextFile()
|
|
2
|
+
|
|
3
|
+
> **loadTextFile**(`filename`): `Promise`\<`string`\>
|
|
4
|
+
|
|
5
|
+
Load the text file.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### filename
|
|
10
|
+
|
|
11
|
+
`string`
|
|
12
|
+
|
|
13
|
+
The filename of the text file to load.
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`Promise`\<`string`\>
|
|
18
|
+
|
|
19
|
+
The contents of the text file if it could not be loaded.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Function: overrideModuleImport()
|
|
2
|
+
|
|
3
|
+
> **overrideModuleImport**(`executionDirectory`): `void`
|
|
4
|
+
|
|
5
|
+
Override module imports to use local files where possible.
|
|
6
|
+
|
|
7
|
+
## Parameters
|
|
8
|
+
|
|
9
|
+
### executionDirectory
|
|
10
|
+
|
|
11
|
+
`string`
|
|
12
|
+
|
|
13
|
+
The execution directory for resolving local module paths.
|
|
14
|
+
|
|
15
|
+
## Returns
|
|
16
|
+
|
|
17
|
+
`void`
|
package/docs/reference/index.md
CHANGED
|
@@ -20,16 +20,19 @@
|
|
|
20
20
|
- [bootstrap](functions/bootstrap.md)
|
|
21
21
|
- [bootstrapNodeIdentity](functions/bootstrapNodeIdentity.md)
|
|
22
22
|
- [bootstrapNodeUser](functions/bootstrapNodeUser.md)
|
|
23
|
-
- [bootstrapAttestationMethod](functions/bootstrapAttestationMethod.md)
|
|
24
23
|
- [bootstrapImmutableProofMethod](functions/bootstrapImmutableProofMethod.md)
|
|
25
24
|
- [bootstrapBlobEncryption](functions/bootstrapBlobEncryption.md)
|
|
26
25
|
- [bootstrapAuth](functions/bootstrapAuth.md)
|
|
26
|
+
- [bootstrapSynchronisedStorage](functions/bootstrapSynchronisedStorage.md)
|
|
27
27
|
- [buildEngineConfiguration](functions/buildEngineConfiguration.md)
|
|
28
|
+
- [buildEngineServerConfiguration](functions/buildEngineServerConfiguration.md)
|
|
28
29
|
- [run](functions/run.md)
|
|
29
30
|
- [buildConfiguration](functions/buildConfiguration.md)
|
|
31
|
+
- [overrideModuleImport](functions/overrideModuleImport.md)
|
|
30
32
|
- [start](functions/start.md)
|
|
31
33
|
- [initialiseLocales](functions/initialiseLocales.md)
|
|
32
34
|
- [getExecutionDirectory](functions/getExecutionDirectory.md)
|
|
33
35
|
- [fileExists](functions/fileExists.md)
|
|
36
|
+
- [loadTextFile](functions/loadTextFile.md)
|
|
34
37
|
- [loadJsonFile](functions/loadJsonFile.md)
|
|
35
38
|
- [getFeatures](functions/getFeatures.md)
|