@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
|
@@ -36,31 +36,24 @@ The name of the state file.
|
|
|
36
36
|
|
|
37
37
|
> `optional` **entityStorageConnectorType**: `string`
|
|
38
38
|
|
|
39
|
-
The type of the
|
|
39
|
+
The type of the entity storage to create, comma separate for more than one connector.
|
|
40
|
+
values: file, memory, aws-dynamodb, azure-cosmosdb, gcp-firestoredb, scylladb, mysql, mongodb, postgresql
|
|
40
41
|
|
|
41
42
|
***
|
|
42
43
|
|
|
43
|
-
###
|
|
44
|
+
### entityStorageConnectorDefault?
|
|
44
45
|
|
|
45
|
-
> `optional` **
|
|
46
|
+
> `optional` **entityStorageConnectorDefault**: `string`
|
|
46
47
|
|
|
47
|
-
|
|
48
|
+
The default entity storage connector to use, defaults to the first one in the list.
|
|
48
49
|
|
|
49
50
|
***
|
|
50
51
|
|
|
51
|
-
###
|
|
52
|
-
|
|
53
|
-
> `optional` **entityFileEnable**: `string`
|
|
54
|
-
|
|
55
|
-
Enable the file entity storage connector.
|
|
56
|
-
|
|
57
|
-
***
|
|
58
|
-
|
|
59
|
-
### entityMemoryEnable?
|
|
52
|
+
### entityStorageTablePrefix?
|
|
60
53
|
|
|
61
|
-
> `optional` **
|
|
54
|
+
> `optional` **entityStorageTablePrefix**: `string`
|
|
62
55
|
|
|
63
|
-
|
|
56
|
+
A prefix for all the table in entity-storage, can be empty.
|
|
64
57
|
|
|
65
58
|
***
|
|
66
59
|
|
|
@@ -192,6 +185,14 @@ ScyllaDB local data center.
|
|
|
192
185
|
|
|
193
186
|
***
|
|
194
187
|
|
|
188
|
+
### scylladbPort?
|
|
189
|
+
|
|
190
|
+
> `optional` **scylladbPort**: `string`
|
|
191
|
+
|
|
192
|
+
ScyllaDB port.
|
|
193
|
+
|
|
194
|
+
***
|
|
195
|
+
|
|
195
196
|
### mySqlHost?
|
|
196
197
|
|
|
197
198
|
> `optional` **mySqlHost**: `string`
|
|
@@ -332,47 +333,57 @@ The url for accessing IPFS API.
|
|
|
332
333
|
|
|
333
334
|
> `optional` **blobStorageConnectorType**: `string`
|
|
334
335
|
|
|
335
|
-
The type of the
|
|
336
|
+
The type of the entity storage to create, comma separate for more than one connector.
|
|
337
|
+
values: memory, file, ipfs, aws-s3, azure-storage, gcp-storage.
|
|
336
338
|
|
|
337
339
|
***
|
|
338
340
|
|
|
339
|
-
###
|
|
341
|
+
### blobStorageConnectorDefault?
|
|
340
342
|
|
|
341
|
-
> `optional` **
|
|
343
|
+
> `optional` **blobStorageConnectorDefault**: `string`
|
|
342
344
|
|
|
343
|
-
|
|
345
|
+
The default blob storage connector to use, defaults to the first one in the list.
|
|
344
346
|
|
|
345
347
|
***
|
|
346
348
|
|
|
347
|
-
###
|
|
349
|
+
### blobStorageConnectorPublic?
|
|
348
350
|
|
|
349
|
-
> `optional` **
|
|
351
|
+
> `optional` **blobStorageConnectorPublic**: `string`
|
|
350
352
|
|
|
351
|
-
|
|
353
|
+
Blog storage connector which has public access.
|
|
352
354
|
|
|
353
355
|
***
|
|
354
356
|
|
|
355
|
-
###
|
|
357
|
+
### blobStorageEnableEncryption?
|
|
356
358
|
|
|
357
|
-
> `optional` **
|
|
359
|
+
> `optional` **blobStorageEnableEncryption**: `string`
|
|
358
360
|
|
|
359
|
-
|
|
361
|
+
Enable encryption for the blob storage.
|
|
360
362
|
|
|
361
363
|
***
|
|
362
364
|
|
|
363
|
-
###
|
|
365
|
+
### blobStorageEncryptionKeyId?
|
|
364
366
|
|
|
365
|
-
> `optional` **
|
|
367
|
+
> `optional` **blobStorageEncryptionKeyId**: `string`
|
|
366
368
|
|
|
367
|
-
|
|
369
|
+
The id of the encryption key for the blob storage.
|
|
368
370
|
|
|
369
371
|
***
|
|
370
372
|
|
|
371
|
-
###
|
|
373
|
+
### blobStorageSymmetricEncryptionKey?
|
|
372
374
|
|
|
373
|
-
> `optional` **
|
|
375
|
+
> `optional` **blobStorageSymmetricEncryptionKey**: `string`
|
|
374
376
|
|
|
375
|
-
|
|
377
|
+
A symmetric encryption key for the blob storage, should be ChaCha20Poly1305 in base64 format.
|
|
378
|
+
If encryption is enabled but a key is not provided one will be generated.
|
|
379
|
+
|
|
380
|
+
***
|
|
381
|
+
|
|
382
|
+
### blobStoragePrefix?
|
|
383
|
+
|
|
384
|
+
> `optional` **blobStoragePrefix**: `string`
|
|
385
|
+
|
|
386
|
+
A prefix for all the blobs in blob-storage, can be empty.
|
|
376
387
|
|
|
377
388
|
***
|
|
378
389
|
|
|
@@ -744,6 +755,123 @@ The type of the default data extractor, can be a comma separated list: json-path
|
|
|
744
755
|
|
|
745
756
|
***
|
|
746
757
|
|
|
758
|
+
### synchronisedStorageEnabled?
|
|
759
|
+
|
|
760
|
+
> `optional` **synchronisedStorageEnabled**: `string`
|
|
761
|
+
|
|
762
|
+
Is the synchronised storage enabled, defaults to false.
|
|
763
|
+
|
|
764
|
+
***
|
|
765
|
+
|
|
766
|
+
### synchronisedStorageTrustedUrl?
|
|
767
|
+
|
|
768
|
+
> `optional` **synchronisedStorageTrustedUrl**: `string`
|
|
769
|
+
|
|
770
|
+
Url which points to the api for a trusted synchronised storage node, not required if this is a trusted node.
|
|
771
|
+
|
|
772
|
+
***
|
|
773
|
+
|
|
774
|
+
### synchronisedStorageVerifiableStorageKeyId?
|
|
775
|
+
|
|
776
|
+
> `optional` **synchronisedStorageVerifiableStorageKeyId**: `string`
|
|
777
|
+
|
|
778
|
+
The key for the smart contract which contains the verifiable storage pointer store for synchronised storage.
|
|
779
|
+
This only required if using a custom verifiable storage item, otherwise it will default the the network name.
|
|
780
|
+
|
|
781
|
+
***
|
|
782
|
+
|
|
783
|
+
### synchronisedStorageVerificationMethodId?
|
|
784
|
+
|
|
785
|
+
> `optional` **synchronisedStorageVerificationMethodId**: `string`
|
|
786
|
+
|
|
787
|
+
The identity verification method id to use with synchronised storage for signing/verifying changesets.
|
|
788
|
+
Defaults to synchronised-storage-assertion.
|
|
789
|
+
|
|
790
|
+
***
|
|
791
|
+
|
|
792
|
+
### synchronisedStorageBlobStorageEncryptionKeyId?
|
|
793
|
+
|
|
794
|
+
> `optional` **synchronisedStorageBlobStorageEncryptionKeyId**: `string`
|
|
795
|
+
|
|
796
|
+
The key from the vault which is used to encrypt the synchronised storage blobs.
|
|
797
|
+
Only required for trusted nodes, as regular nodes will request from the trusted nodes.
|
|
798
|
+
Defaults to synchronised-storage-blob-encryption
|
|
799
|
+
|
|
800
|
+
***
|
|
801
|
+
|
|
802
|
+
### synchronisedStorageBlobStorageKey?
|
|
803
|
+
|
|
804
|
+
> `optional` **synchronisedStorageBlobStorageKey**: `string`
|
|
805
|
+
|
|
806
|
+
The key used for blob encryption, should be ChaCha20Poly1305 encoded as base64.
|
|
807
|
+
Only required for trusted nodes, as regular nodes will not write encrypted data.
|
|
808
|
+
|
|
809
|
+
***
|
|
810
|
+
|
|
811
|
+
### synchronisedStorageEntityUpdateIntervalMinutes?
|
|
812
|
+
|
|
813
|
+
> `optional` **synchronisedStorageEntityUpdateIntervalMinutes**: `string`
|
|
814
|
+
|
|
815
|
+
How often to check for entity updates in minutes.
|
|
816
|
+
|
|
817
|
+
#### Default
|
|
818
|
+
|
|
819
|
+
```ts
|
|
820
|
+
5
|
|
821
|
+
```
|
|
822
|
+
|
|
823
|
+
***
|
|
824
|
+
|
|
825
|
+
### synchronisedStorageConsolidationIntervalMinutes?
|
|
826
|
+
|
|
827
|
+
> `optional` **synchronisedStorageConsolidationIntervalMinutes**: `string`
|
|
828
|
+
|
|
829
|
+
Interval to perform consolidation of changesets, only used if this is a trusted node.
|
|
830
|
+
|
|
831
|
+
#### Default
|
|
832
|
+
|
|
833
|
+
```ts
|
|
834
|
+
60
|
|
835
|
+
```
|
|
836
|
+
|
|
837
|
+
***
|
|
838
|
+
|
|
839
|
+
### synchronisedStorageConsolidationBatchSize?
|
|
840
|
+
|
|
841
|
+
> `optional` **synchronisedStorageConsolidationBatchSize**: `string`
|
|
842
|
+
|
|
843
|
+
The number of entities to process in a single consolidation batch, only used if this is a trusted node.
|
|
844
|
+
|
|
845
|
+
#### Default
|
|
846
|
+
|
|
847
|
+
```ts
|
|
848
|
+
1000
|
|
849
|
+
```
|
|
850
|
+
|
|
851
|
+
***
|
|
852
|
+
|
|
853
|
+
### synchronisedStorageMaxConsolidations?
|
|
854
|
+
|
|
855
|
+
> `optional` **synchronisedStorageMaxConsolidations**: `string`
|
|
856
|
+
|
|
857
|
+
The maximum number of consolidations to keep in storage, only used if this is a trusted node.
|
|
858
|
+
|
|
859
|
+
#### Default
|
|
860
|
+
|
|
861
|
+
```ts
|
|
862
|
+
5
|
|
863
|
+
```
|
|
864
|
+
|
|
865
|
+
***
|
|
866
|
+
|
|
867
|
+
### federatedCatalogueEnabled?
|
|
868
|
+
|
|
869
|
+
> `optional` **federatedCatalogueEnabled**: `string`
|
|
870
|
+
|
|
871
|
+
Is the federated catalogue enabled, defaults to false.
|
|
872
|
+
|
|
873
|
+
***
|
|
874
|
+
|
|
747
875
|
### federatedCatalogueCacheTtlMs?
|
|
748
876
|
|
|
749
877
|
> `optional` **federatedCatalogueCacheTtlMs**: `number`
|
|
@@ -768,8 +896,70 @@ Is the rights management enabled, defaults to false.
|
|
|
768
896
|
|
|
769
897
|
***
|
|
770
898
|
|
|
899
|
+
### rightsManagementNegotiationMethodId?
|
|
900
|
+
|
|
901
|
+
> `optional` **rightsManagementNegotiationMethodId**: `string`
|
|
902
|
+
|
|
903
|
+
The rights management verification method id to use when signing/verifying negotiation requests.
|
|
904
|
+
Defaults to policy-negotiation-assertion.
|
|
905
|
+
|
|
906
|
+
***
|
|
907
|
+
|
|
908
|
+
### rightsManagementNegotiators?
|
|
909
|
+
|
|
910
|
+
> `optional` **rightsManagementNegotiators**: `string`
|
|
911
|
+
|
|
912
|
+
The rights management configuration which includes the negotiator modules to load.
|
|
913
|
+
Use the @json: prefix to specify the path to the JSON configuration file.
|
|
914
|
+
|
|
915
|
+
***
|
|
916
|
+
|
|
917
|
+
### rightsManagementInformationSources?
|
|
918
|
+
|
|
919
|
+
> `optional` **rightsManagementInformationSources**: `string`
|
|
920
|
+
|
|
921
|
+
The rights management configuration which includes the information sources modules to load.
|
|
922
|
+
Use the @json: prefix to specify the path to the JSON configuration file.
|
|
923
|
+
|
|
924
|
+
***
|
|
925
|
+
|
|
926
|
+
### rightsManagementExecutionActions?
|
|
927
|
+
|
|
928
|
+
> `optional` **rightsManagementExecutionActions**: `string`
|
|
929
|
+
|
|
930
|
+
The rights management configuration which includes the execution actions modules to load.
|
|
931
|
+
Use the @json: prefix to specify the path to the JSON configuration file.
|
|
932
|
+
|
|
933
|
+
***
|
|
934
|
+
|
|
935
|
+
### rightsManagementEnforcementProcessors?
|
|
936
|
+
|
|
937
|
+
> `optional` **rightsManagementEnforcementProcessors**: `string`
|
|
938
|
+
|
|
939
|
+
The rights management configuration which includes the enforcement processor modules to load.
|
|
940
|
+
Use the @json: prefix to specify the path to the JSON configuration file.
|
|
941
|
+
|
|
942
|
+
***
|
|
943
|
+
|
|
771
944
|
### taskSchedulerEnabled?
|
|
772
945
|
|
|
773
946
|
> `optional` **taskSchedulerEnabled**: `string`
|
|
774
947
|
|
|
775
|
-
Is the task scheduler enabled, defaults to
|
|
948
|
+
Is the task scheduler enabled, defaults to false.
|
|
949
|
+
|
|
950
|
+
***
|
|
951
|
+
|
|
952
|
+
### dataSpaceConnectorEnabled?
|
|
953
|
+
|
|
954
|
+
> `optional` **dataSpaceConnectorEnabled**: `string`
|
|
955
|
+
|
|
956
|
+
Is the data space connector enabled, defaults to false.
|
|
957
|
+
|
|
958
|
+
***
|
|
959
|
+
|
|
960
|
+
### dataSpaceConnectorApps?
|
|
961
|
+
|
|
962
|
+
> `optional` **dataSpaceConnectorApps**: `string`
|
|
963
|
+
|
|
964
|
+
The application configuration for the data space connector.
|
|
965
|
+
Use the @json: prefix to specify the path to the JSON configuration file.
|