@twin.org/node-core 0.0.1-next.9 → 0.0.2-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 (38) hide show
  1. package/dist/cjs/index.cjs +1141 -53
  2. package/dist/esm/index.mjs +1141 -57
  3. package/dist/types/bootstrap.d.ts +9 -10
  4. package/dist/types/builders/engineEnvBuilder.d.ts +8 -0
  5. package/dist/types/builders/engineServerEnvBuilder.d.ts +13 -0
  6. package/dist/types/index.d.ts +6 -3
  7. package/dist/types/models/IEngineEnvironmentVariables.d.ts +389 -0
  8. package/dist/types/models/IEngineServerEnvironmentVariables.d.ts +49 -0
  9. package/dist/types/models/{INodeVariables.d.ts → INodeEnvironmentVariables.d.ts} +3 -3
  10. package/dist/types/models/{IRunOptions.d.ts → INodeOptions.d.ts} +17 -1
  11. package/dist/types/node.d.ts +22 -3
  12. package/dist/types/server.d.ts +7 -14
  13. package/dist/types/utils.d.ts +8 -2
  14. package/docs/changelog.md +68 -0
  15. package/docs/reference/functions/bootstrap.md +2 -2
  16. package/docs/reference/functions/bootstrapAttestationMethod.md +2 -2
  17. package/docs/reference/functions/bootstrapAuth.md +2 -2
  18. package/docs/reference/functions/bootstrapBlobEncryption.md +2 -2
  19. package/docs/reference/functions/bootstrapImmutableProofMethod.md +2 -2
  20. package/docs/reference/functions/bootstrapNodeIdentity.md +2 -2
  21. package/docs/reference/functions/bootstrapNodeUser.md +2 -2
  22. package/docs/reference/functions/buildConfiguration.md +30 -0
  23. package/docs/reference/functions/buildEngineConfiguration.md +19 -0
  24. package/docs/reference/functions/buildEngineServerConfiguration.md +37 -0
  25. package/docs/reference/functions/getFeatures.md +1 -1
  26. package/docs/reference/functions/loadJsonFile.md +25 -0
  27. package/docs/reference/functions/run.md +3 -3
  28. package/docs/reference/functions/start.md +9 -39
  29. package/docs/reference/index.md +8 -3
  30. package/docs/reference/interfaces/IEngineEnvironmentVariables.md +775 -0
  31. package/docs/reference/interfaces/IEngineServerEnvironmentVariables.md +95 -0
  32. package/docs/reference/interfaces/INodeEnvironmentVariables.md +1343 -0
  33. package/docs/reference/interfaces/{IRunOptions.md → INodeOptions.md} +38 -1
  34. package/locales/en.json +0 -1
  35. package/package.json +1 -1
  36. package/dist/types/models/INodeState.d.ts +0 -10
  37. package/docs/reference/interfaces/INodeState.md +0 -15
  38. package/docs/reference/interfaces/INodeVariables.md +0 -59
@@ -0,0 +1,775 @@
1
+ # Interface: IEngineEnvironmentVariables
2
+
3
+ The engine core environment variables.
4
+
5
+ ## Extended by
6
+
7
+ - [`INodeEnvironmentVariables`](INodeEnvironmentVariables.md)
8
+
9
+ ## Properties
10
+
11
+ ### debug?
12
+
13
+ > `optional` **debug**: `string`
14
+
15
+ Start the engine in debug mode.
16
+
17
+ ***
18
+
19
+ ### storageFileRoot?
20
+
21
+ > `optional` **storageFileRoot**: `string`
22
+
23
+ The root directory for storing items like state file.
24
+
25
+ ***
26
+
27
+ ### stateFilename?
28
+
29
+ > `optional` **stateFilename**: `string`
30
+
31
+ The name of the state file.
32
+
33
+ ***
34
+
35
+ ### entityStorageConnectorType?
36
+
37
+ > `optional` **entityStorageConnectorType**: `string`
38
+
39
+ The type of the default entity storage: file, memory, aws-dynamodb, azure-cosmosdb, gcp-firestoredb, scylladb, mysql, mongodb, postgresql.
40
+
41
+ ***
42
+
43
+ ### entityStorageTablePrefix?
44
+
45
+ > `optional` **entityStorageTablePrefix**: `string`
46
+
47
+ A prefix for all the table in entity-storage, can be empty.
48
+
49
+ ***
50
+
51
+ ### entityFileEnable?
52
+
53
+ > `optional` **entityFileEnable**: `string`
54
+
55
+ Enable the file entity storage connector.
56
+
57
+ ***
58
+
59
+ ### entityMemoryEnable?
60
+
61
+ > `optional` **entityMemoryEnable**: `string`
62
+
63
+ Enable the memory entity storage connector.
64
+
65
+ ***
66
+
67
+ ### awsDynamodbAccessKeyId?
68
+
69
+ > `optional` **awsDynamodbAccessKeyId**: `string`
70
+
71
+ AWS Dynamo DB access key id.
72
+
73
+ ***
74
+
75
+ ### awsDynamodbEndpoint?
76
+
77
+ > `optional` **awsDynamodbEndpoint**: `string`
78
+
79
+ AWS Dynamo DB Endpoint if running local instance.
80
+
81
+ ***
82
+
83
+ ### awsDynamodbRegion?
84
+
85
+ > `optional` **awsDynamodbRegion**: `string`
86
+
87
+ AWS Dynamo DB region.
88
+
89
+ ***
90
+
91
+ ### awsDynamodbSecretAccessKey?
92
+
93
+ > `optional` **awsDynamodbSecretAccessKey**: `string`
94
+
95
+ AWS Dynamo DB secret access key.
96
+
97
+ ***
98
+
99
+ ### azureCosmosdbKey?
100
+
101
+ > `optional` **azureCosmosdbKey**: `string`
102
+
103
+ Azure Cosmos DB key.
104
+
105
+ ***
106
+
107
+ ### azureCosmosdbContainerId?
108
+
109
+ > `optional` **azureCosmosdbContainerId**: `string`
110
+
111
+ Azure Cosmos DB container id.
112
+
113
+ ***
114
+
115
+ ### azureCosmosdbDatabaseId?
116
+
117
+ > `optional` **azureCosmosdbDatabaseId**: `string`
118
+
119
+ Azure Cosmos DB database id.
120
+
121
+ ***
122
+
123
+ ### azureCosmosdbEndpoint?
124
+
125
+ > `optional` **azureCosmosdbEndpoint**: `string`
126
+
127
+ Azure Cosmos DB endpoint.
128
+
129
+ ***
130
+
131
+ ### gcpFirestoreCollectionName?
132
+
133
+ > `optional` **gcpFirestoreCollectionName**: `string`
134
+
135
+ GCP Firestore collection name.
136
+
137
+ ***
138
+
139
+ ### gcpFirestoreCredentials?
140
+
141
+ > `optional` **gcpFirestoreCredentials**: `string`
142
+
143
+ GCP Firestore credentials.
144
+
145
+ ***
146
+
147
+ ### gcpFirestoreDatabaseId?
148
+
149
+ > `optional` **gcpFirestoreDatabaseId**: `string`
150
+
151
+ GCP Firestore database id.
152
+
153
+ ***
154
+
155
+ ### gcpFirestoreApiEndpoint?
156
+
157
+ > `optional` **gcpFirestoreApiEndpoint**: `string`
158
+
159
+ GCP Firestore endpoint.
160
+
161
+ ***
162
+
163
+ ### gcpFirestoreProjectId?
164
+
165
+ > `optional` **gcpFirestoreProjectId**: `string`
166
+
167
+ GCP Firestore project id.
168
+
169
+ ***
170
+
171
+ ### scylladbHosts?
172
+
173
+ > `optional` **scylladbHosts**: `string`
174
+
175
+ ScyllaDB hosts as comma separated string.
176
+
177
+ ***
178
+
179
+ ### scylladbKeyspace?
180
+
181
+ > `optional` **scylladbKeyspace**: `string`
182
+
183
+ ScyllaDB keyspace.
184
+
185
+ ***
186
+
187
+ ### scylladbLocalDataCenter?
188
+
189
+ > `optional` **scylladbLocalDataCenter**: `string`
190
+
191
+ ScyllaDB local data center.
192
+
193
+ ***
194
+
195
+ ### mySqlHost?
196
+
197
+ > `optional` **mySqlHost**: `string`
198
+
199
+ MySQL host.
200
+
201
+ ***
202
+
203
+ ### mySqlPort?
204
+
205
+ > `optional` **mySqlPort**: `number`
206
+
207
+ MySQL port.
208
+
209
+ ***
210
+
211
+ ### mySqlUser?
212
+
213
+ > `optional` **mySqlUser**: `string`
214
+
215
+ MySQL username.
216
+
217
+ ***
218
+
219
+ ### mySqlPassword?
220
+
221
+ > `optional` **mySqlPassword**: `string`
222
+
223
+ MySQL password.
224
+
225
+ ***
226
+
227
+ ### mySqlDatabase?
228
+
229
+ > `optional` **mySqlDatabase**: `string`
230
+
231
+ MySQL Database.
232
+
233
+ ***
234
+
235
+ ### mongoDbHost?
236
+
237
+ > `optional` **mongoDbHost**: `string`
238
+
239
+ MongoDB host.
240
+
241
+ ***
242
+
243
+ ### mongoDbPort?
244
+
245
+ > `optional` **mongoDbPort**: `number`
246
+
247
+ MongoDB port.
248
+
249
+ ***
250
+
251
+ ### mongoDbUser?
252
+
253
+ > `optional` **mongoDbUser**: `string`
254
+
255
+ MongoDB username.
256
+
257
+ ***
258
+
259
+ ### mongoDbPassword?
260
+
261
+ > `optional` **mongoDbPassword**: `string`
262
+
263
+ MongoDB password.
264
+
265
+ ***
266
+
267
+ ### mongoDbDatabase?
268
+
269
+ > `optional` **mongoDbDatabase**: `string`
270
+
271
+ MongoDB Database.
272
+
273
+ ***
274
+
275
+ ### postgreSqlHost?
276
+
277
+ > `optional` **postgreSqlHost**: `string`
278
+
279
+ PostgreSQl host.
280
+
281
+ ***
282
+
283
+ ### postgreSqlPort?
284
+
285
+ > `optional` **postgreSqlPort**: `number`
286
+
287
+ PostgreSQl port.
288
+
289
+ ***
290
+
291
+ ### postgreSqlUser?
292
+
293
+ > `optional` **postgreSqlUser**: `string`
294
+
295
+ PostgreSQl username.
296
+
297
+ ***
298
+
299
+ ### postgreSqlPassword?
300
+
301
+ > `optional` **postgreSqlPassword**: `string`
302
+
303
+ PostgreSQl password.
304
+
305
+ ***
306
+
307
+ ### postgreSqlDatabase?
308
+
309
+ > `optional` **postgreSqlDatabase**: `string`
310
+
311
+ PostgreSQl Database.
312
+
313
+ ***
314
+
315
+ ### ipfsBearerToken?
316
+
317
+ > `optional` **ipfsBearerToken**: `string`
318
+
319
+ The security token for accessing IPFS API.
320
+
321
+ ***
322
+
323
+ ### ipfsApiUrl?
324
+
325
+ > `optional` **ipfsApiUrl**: `string`
326
+
327
+ The url for accessing IPFS API.
328
+
329
+ ***
330
+
331
+ ### blobStorageConnectorType?
332
+
333
+ > `optional` **blobStorageConnectorType**: `string`
334
+
335
+ The type of the default blob storage: memory, file, ipfs, aws-s3, azure-storage, gcp-storage.
336
+
337
+ ***
338
+
339
+ ### blobStorageEnableEncryption?
340
+
341
+ > `optional` **blobStorageEnableEncryption**: `string`
342
+
343
+ Enable encryption for the blob storage.
344
+
345
+ ***
346
+
347
+ ### blobStorageEncryptionKey?
348
+
349
+ > `optional` **blobStorageEncryptionKey**: `string`
350
+
351
+ The encryption key for the blob storage.
352
+
353
+ ***
354
+
355
+ ### blobStoragePrefix?
356
+
357
+ > `optional` **blobStoragePrefix**: `string`
358
+
359
+ A prefix for all the blobs in blob-storage, can be empty.
360
+
361
+ ***
362
+
363
+ ### blobFileEnable?
364
+
365
+ > `optional` **blobFileEnable**: `string`
366
+
367
+ Enable the file blob storage connector.
368
+
369
+ ***
370
+
371
+ ### blobMemoryEnable?
372
+
373
+ > `optional` **blobMemoryEnable**: `string`
374
+
375
+ Enable the memory blob storage connector.
376
+
377
+ ***
378
+
379
+ ### awsS3AccessKeyId?
380
+
381
+ > `optional` **awsS3AccessKeyId**: `string`
382
+
383
+ AWS S3 access key id.
384
+
385
+ ***
386
+
387
+ ### awsS3BucketName?
388
+
389
+ > `optional` **awsS3BucketName**: `string`
390
+
391
+ AWS S3 bucket name.
392
+
393
+ ***
394
+
395
+ ### awsS3Endpoint?
396
+
397
+ > `optional` **awsS3Endpoint**: `string`
398
+
399
+ AWS S3 endpoint.
400
+
401
+ ***
402
+
403
+ ### awsS3Region?
404
+
405
+ > `optional` **awsS3Region**: `string`
406
+
407
+ AWS S3 region.
408
+
409
+ ***
410
+
411
+ ### awsS3SecretAccessKey?
412
+
413
+ > `optional` **awsS3SecretAccessKey**: `string`
414
+
415
+ AWS S3 secret access key.
416
+
417
+ ***
418
+
419
+ ### azureStorageAccountKey?
420
+
421
+ > `optional` **azureStorageAccountKey**: `string`
422
+
423
+ Azure Storage account key.
424
+
425
+ ***
426
+
427
+ ### azureStorageAccountName?
428
+
429
+ > `optional` **azureStorageAccountName**: `string`
430
+
431
+ Azure Storage account name.
432
+
433
+ ***
434
+
435
+ ### azureStorageContainerName?
436
+
437
+ > `optional` **azureStorageContainerName**: `string`
438
+
439
+ Azure Storage container.
440
+
441
+ ***
442
+
443
+ ### azureStorageEndpoint?
444
+
445
+ > `optional` **azureStorageEndpoint**: `string`
446
+
447
+ Azure Storage endpoint.
448
+
449
+ ***
450
+
451
+ ### gcpStorageBucketName?
452
+
453
+ > `optional` **gcpStorageBucketName**: `string`
454
+
455
+ GCP Storage bucket.
456
+
457
+ ***
458
+
459
+ ### gcpStorageCredentials?
460
+
461
+ > `optional` **gcpStorageCredentials**: `string`
462
+
463
+ GCP Storage credentials.
464
+
465
+ ***
466
+
467
+ ### gcpStorageEndpoint?
468
+
469
+ > `optional` **gcpStorageEndpoint**: `string`
470
+
471
+ GCP Storage endpoint.
472
+
473
+ ***
474
+
475
+ ### gcpStorageProjectId?
476
+
477
+ > `optional` **gcpStorageProjectId**: `string`
478
+
479
+ GCP Storage project id.
480
+
481
+ ***
482
+
483
+ ### vaultConnector?
484
+
485
+ > `optional` **vaultConnector**: `string`
486
+
487
+ The type of the default vault connector: entity-storage, hashicorp.
488
+
489
+ ***
490
+
491
+ ### hashicorpVaultToken?
492
+
493
+ > `optional` **hashicorpVaultToken**: `string`
494
+
495
+ Hashicorp Vault token.
496
+
497
+ ***
498
+
499
+ ### hashicorpVaultEndpoint?
500
+
501
+ > `optional` **hashicorpVaultEndpoint**: `string`
502
+
503
+ Hashicorp Vault endpoint.
504
+
505
+ ***
506
+
507
+ ### loggingConnector?
508
+
509
+ > `optional` **loggingConnector**: `string`
510
+
511
+ The type of background task connector, can be a comma separated list: console, entity-storage.
512
+
513
+ ***
514
+
515
+ ### backgroundTaskConnector?
516
+
517
+ > `optional` **backgroundTaskConnector**: `string`
518
+
519
+ The type of background task connector: entity-storage.
520
+
521
+ ***
522
+
523
+ ### eventBusConnector?
524
+
525
+ > `optional` **eventBusConnector**: `string`
526
+
527
+ The type of event bus connector: local.
528
+
529
+ ***
530
+
531
+ ### eventBusComponent?
532
+
533
+ > `optional` **eventBusComponent**: `string`
534
+
535
+ The type of event bus component: service.
536
+
537
+ ***
538
+
539
+ ### messagingEmailConnector?
540
+
541
+ > `optional` **messagingEmailConnector**: `string`
542
+
543
+ The type of messaging email connector: entity-storage, aws.
544
+
545
+ ***
546
+
547
+ ### messagingSmsConnector?
548
+
549
+ > `optional` **messagingSmsConnector**: `string`
550
+
551
+ The type of messaging sms connector: entity-storage, aws.
552
+
553
+ ***
554
+
555
+ ### messagingPushNotificationConnector?
556
+
557
+ > `optional` **messagingPushNotificationConnector**: `string`
558
+
559
+ The type of messaging push notification connector: entity-storage, aws.
560
+
561
+ ***
562
+
563
+ ### awsMessagingPushNotificationApplications?
564
+
565
+ > `optional` **awsMessagingPushNotificationApplications**: `string`
566
+
567
+ The applications for the push notifications JSON stringified array of IAwsApplicationSettings.
568
+
569
+ ***
570
+
571
+ ### messagingComponent?
572
+
573
+ > `optional` **messagingComponent**: `string`
574
+
575
+ The type of messaging component: service.
576
+
577
+ ***
578
+
579
+ ### telemetryConnector?
580
+
581
+ > `optional` **telemetryConnector**: `string`
582
+
583
+ The type of telemetry connector: entity-storage.
584
+
585
+ ***
586
+
587
+ ### faucetConnector?
588
+
589
+ > `optional` **faucetConnector**: `string`
590
+
591
+ The type of faucet connector: entity-storage, iota.
592
+
593
+ ***
594
+
595
+ ### walletConnector?
596
+
597
+ > `optional` **walletConnector**: `string`
598
+
599
+ The type of wallet connector: entity-storage, iota.
600
+
601
+ ***
602
+
603
+ ### nftConnector?
604
+
605
+ > `optional` **nftConnector**: `string`
606
+
607
+ The type of NFT connector: entity-storage, iota.
608
+
609
+ ***
610
+
611
+ ### identityConnector?
612
+
613
+ > `optional` **identityConnector**: `string`
614
+
615
+ The type of identity connector: entity-storage, iota.
616
+
617
+ ***
618
+
619
+ ### identityResolverConnector?
620
+
621
+ > `optional` **identityResolverConnector**: `string`
622
+
623
+ The type of identity resolver connector: entity-storage, iota.
624
+
625
+ ***
626
+
627
+ ### verifiableStorageConnector?
628
+
629
+ > `optional` **verifiableStorageConnector**: `string`
630
+
631
+ The type of verifiable storage connector: entity-storage, iota.
632
+
633
+ ***
634
+
635
+ ### iotaFaucetEndpoint?
636
+
637
+ > `optional` **iotaFaucetEndpoint**: `string`
638
+
639
+ IOTA Faucet Endpoint.
640
+
641
+ ***
642
+
643
+ ### iotaNodeEndpoint?
644
+
645
+ > `optional` **iotaNodeEndpoint**: `string`
646
+
647
+ IOTA Node Endpoint.
648
+
649
+ ***
650
+
651
+ ### iotaNetwork?
652
+
653
+ > `optional` **iotaNetwork**: `string`
654
+
655
+ IOTA network.
656
+
657
+ ***
658
+
659
+ ### iotaCoinType?
660
+
661
+ > `optional` **iotaCoinType**: `string`
662
+
663
+ IOTA coin type.
664
+
665
+ ***
666
+
667
+ ### iotaExplorerEndpoint?
668
+
669
+ > `optional` **iotaExplorerEndpoint**: `string`
670
+
671
+ IOTA Explorer Endpoint.
672
+
673
+ ***
674
+
675
+ ### iotaGasStationEndpoint?
676
+
677
+ > `optional` **iotaGasStationEndpoint**: `string`
678
+
679
+ IOTA Gas Station Endpoint.
680
+
681
+ ***
682
+
683
+ ### iotaGasStationAuthToken?
684
+
685
+ > `optional` **iotaGasStationAuthToken**: `string`
686
+
687
+ IOTA Gas Station Authentication Token.
688
+
689
+ ***
690
+
691
+ ### universalResolverEndpoint?
692
+
693
+ > `optional` **universalResolverEndpoint**: `string`
694
+
695
+ Universal Resolver Endpoint.
696
+
697
+ ***
698
+
699
+ ### identityProfileConnector?
700
+
701
+ > `optional` **identityProfileConnector**: `string`
702
+
703
+ The type of identity profile connector: entity-storage.
704
+
705
+ ***
706
+
707
+ ### immutableProofVerificationMethodId?
708
+
709
+ > `optional` **immutableProofVerificationMethodId**: `string`
710
+
711
+ The identity verification method id to use with immutable proofs.
712
+
713
+ ***
714
+
715
+ ### attestationConnector?
716
+
717
+ > `optional` **attestationConnector**: `string`
718
+
719
+ The type of attestation connector: entity-storage, iota.
720
+
721
+ ***
722
+
723
+ ### attestationVerificationMethodId?
724
+
725
+ > `optional` **attestationVerificationMethodId**: `string`
726
+
727
+ The identity verification method id to use with attestation.
728
+
729
+ ***
730
+
731
+ ### dataConverterConnectors?
732
+
733
+ > `optional` **dataConverterConnectors**: `string`
734
+
735
+ The type of the default data converters, can be a comma separated list: json, xml.
736
+
737
+ ***
738
+
739
+ ### dataExtractorConnectors?
740
+
741
+ > `optional` **dataExtractorConnectors**: `string`
742
+
743
+ The type of the default data extractor, can be a comma separated list: json-path.
744
+
745
+ ***
746
+
747
+ ### federatedCatalogueCacheTtlMs?
748
+
749
+ > `optional` **federatedCatalogueCacheTtlMs**: `number`
750
+
751
+ Federated catalog TTL for the cache.
752
+
753
+ ***
754
+
755
+ ### federatedCatalogueClearingHouseApproverList?
756
+
757
+ > `optional` **federatedCatalogueClearingHouseApproverList**: `string`
758
+
759
+ Federated catalog clearing house approver list, stringified array of DIDs.
760
+
761
+ ***
762
+
763
+ ### rightsManagementEnabled?
764
+
765
+ > `optional` **rightsManagementEnabled**: `string`
766
+
767
+ Is the rights management enabled, defaults to false.
768
+
769
+ ***
770
+
771
+ ### taskSchedulerEnabled?
772
+
773
+ > `optional` **taskSchedulerEnabled**: `string`
774
+
775
+ Is the task scheduler enabled, defaults to true.