@twin.org/node-core 0.0.3-next.66 → 0.0.3-next.67

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 (108) hide show
  1. package/dist/es/builders/engineEnvBuilder.js +21 -19
  2. package/dist/es/builders/engineEnvBuilder.js.map +1 -1
  3. package/dist/es/builders/engineServerEnvBuilder.js +1 -0
  4. package/dist/es/builders/engineServerEnvBuilder.js.map +1 -1
  5. package/dist/es/builders/extensionsBuilder.js.map +1 -1
  6. package/dist/es/cli.js.map +1 -1
  7. package/dist/es/commands/bootstrapLegacy.js +2 -1
  8. package/dist/es/commands/bootstrapLegacy.js.map +1 -1
  9. package/dist/es/commands/help.js.map +1 -1
  10. package/dist/es/commands/identityCreate.js.map +1 -1
  11. package/dist/es/commands/identityImports.js.map +1 -1
  12. package/dist/es/commands/identityVerifiableCredentialCreate.js.map +1 -1
  13. package/dist/es/commands/identityVerificationMethodCreate.js.map +1 -1
  14. package/dist/es/commands/identityVerificationMethodImport.js.map +1 -1
  15. package/dist/es/commands/nodeSetIdentity.js.map +1 -1
  16. package/dist/es/commands/removeTenantOrgAlias.js.map +1 -1
  17. package/dist/es/commands/setNodeOrgId.js.map +1 -1
  18. package/dist/es/commands/setTenantOrgId.js.map +1 -1
  19. package/dist/es/commands/tenantCreate.js.map +1 -1
  20. package/dist/es/commands/tenantImport.js.map +1 -1
  21. package/dist/es/commands/tenantUpdate.js.map +1 -1
  22. package/dist/es/commands/userCreate.js.map +1 -1
  23. package/dist/es/commands/userUpdate.js.map +1 -1
  24. package/dist/es/commands/vaultKeyCreate.js.map +1 -1
  25. package/dist/es/commands/vaultKeyImport.js.map +1 -1
  26. package/dist/es/index.js +2 -0
  27. package/dist/es/index.js.map +1 -1
  28. package/dist/es/models/IBootstrapLegacyEnvironmentVariables.js +4 -0
  29. package/dist/es/models/IBootstrapLegacyEnvironmentVariables.js.map +1 -0
  30. package/dist/es/models/ICliCommandDefinition.js.map +1 -1
  31. package/dist/es/models/IEngineEnvironmentVariables.js.map +1 -1
  32. package/dist/es/models/IEngineServerEnvironmentVariables.js +2 -0
  33. package/dist/es/models/IEngineServerEnvironmentVariables.js.map +1 -1
  34. package/dist/es/models/IEnvironmentVariables.js +2 -0
  35. package/dist/es/models/IEnvironmentVariables.js.map +1 -0
  36. package/dist/es/models/INodeEnvironmentVariables.js +2 -0
  37. package/dist/es/models/INodeEnvironmentVariables.js.map +1 -1
  38. package/dist/es/models/INodeOptions.js.map +1 -1
  39. package/dist/es/models/bootstrapLegacyEnvironmentVariableKeys.js +24 -0
  40. package/dist/es/models/bootstrapLegacyEnvironmentVariableKeys.js.map +1 -0
  41. package/dist/es/models/engineEnvironmentVariableKeys.js +202 -0
  42. package/dist/es/models/engineEnvironmentVariableKeys.js.map +1 -0
  43. package/dist/es/models/engineServerEnvironmentVariableKeys.js +35 -0
  44. package/dist/es/models/engineServerEnvironmentVariableKeys.js.map +1 -0
  45. package/dist/es/models/nodeEnvironmentVariableKeys.js +18 -0
  46. package/dist/es/models/nodeEnvironmentVariableKeys.js.map +1 -0
  47. package/dist/es/models/nodeExtensionInitialiseMethod.js.map +1 -1
  48. package/dist/es/node.js +94 -2
  49. package/dist/es/node.js.map +1 -1
  50. package/dist/es/start.js.map +1 -1
  51. package/dist/types/builders/engineServerEnvBuilder.d.ts +3 -3
  52. package/dist/types/builders/extensionsBuilder.d.ts +5 -5
  53. package/dist/types/cli.d.ts +2 -2
  54. package/dist/types/commands/bootstrapLegacy.d.ts +2 -49
  55. package/dist/types/commands/help.d.ts +2 -2
  56. package/dist/types/commands/identityCreate.d.ts +2 -2
  57. package/dist/types/commands/identityImports.d.ts +2 -2
  58. package/dist/types/commands/identityVerifiableCredentialCreate.d.ts +2 -2
  59. package/dist/types/commands/identityVerificationMethodCreate.d.ts +2 -2
  60. package/dist/types/commands/identityVerificationMethodImport.d.ts +2 -2
  61. package/dist/types/commands/nodeSetIdentity.d.ts +2 -2
  62. package/dist/types/commands/removeTenantOrgAlias.d.ts +2 -2
  63. package/dist/types/commands/setNodeOrgId.d.ts +2 -2
  64. package/dist/types/commands/setTenantOrgId.d.ts +2 -2
  65. package/dist/types/commands/tenantCreate.d.ts +2 -2
  66. package/dist/types/commands/tenantImport.d.ts +2 -2
  67. package/dist/types/commands/tenantUpdate.d.ts +2 -2
  68. package/dist/types/commands/userCreate.d.ts +2 -2
  69. package/dist/types/commands/userUpdate.d.ts +2 -2
  70. package/dist/types/commands/vaultKeyCreate.d.ts +2 -2
  71. package/dist/types/commands/vaultKeyImport.d.ts +2 -2
  72. package/dist/types/index.d.ts +2 -0
  73. package/dist/types/models/IBootstrapLegacyEnvironmentVariables.d.ts +56 -0
  74. package/dist/types/models/ICliCommandDefinition.d.ts +2 -2
  75. package/dist/types/models/IEngineEnvironmentVariables.d.ts +39 -22
  76. package/dist/types/models/IEngineServerEnvironmentVariables.d.ts +1 -2
  77. package/dist/types/models/IEnvironmentVariables.d.ts +8 -0
  78. package/dist/types/models/INodeEnvironmentVariables.d.ts +1 -2
  79. package/dist/types/models/INodeOptions.d.ts +3 -3
  80. package/dist/types/models/bootstrapLegacyEnvironmentVariableKeys.d.ts +4 -0
  81. package/dist/types/models/engineEnvironmentVariableKeys.d.ts +4 -0
  82. package/dist/types/models/engineServerEnvironmentVariableKeys.d.ts +7 -0
  83. package/dist/types/models/nodeEnvironmentVariableKeys.d.ts +5 -0
  84. package/dist/types/models/nodeExtensionInitialiseMethod.d.ts +2 -2
  85. package/dist/types/node.d.ts +3 -3
  86. package/dist/types/start.d.ts +3 -2
  87. package/docs/changelog.md +12 -0
  88. package/docs/reference/functions/buildConfiguration.md +2 -2
  89. package/docs/reference/functions/buildEngineServerConfiguration.md +1 -1
  90. package/docs/reference/functions/executeCommand.md +1 -1
  91. package/docs/reference/functions/extensionsConfiguration.md +1 -1
  92. package/docs/reference/functions/extensionsInitialiseEngine.md +1 -1
  93. package/docs/reference/functions/extensionsInitialiseEngineServer.md +1 -1
  94. package/docs/reference/functions/isAuthEntityStorageRequired.md +1 -1
  95. package/docs/reference/functions/overrideModuleImport.md +1 -1
  96. package/docs/reference/functions/shutdownExtensions.md +1 -1
  97. package/docs/reference/functions/start.md +1 -1
  98. package/docs/reference/index.md +2 -0
  99. package/docs/reference/interfaces/IBootstrapLegacyEnvironmentVariables.md +117 -0
  100. package/docs/reference/interfaces/ICliCommandDefinition.md +1 -1
  101. package/docs/reference/interfaces/IEngineEnvironmentVariables.md +71 -40
  102. package/docs/reference/interfaces/IEngineServerEnvironmentVariables.md +0 -1954
  103. package/docs/reference/interfaces/INodeEnvironmentVariables.md +0 -2130
  104. package/docs/reference/interfaces/INodeOptions.md +2 -2
  105. package/docs/reference/type-aliases/IEnvironmentVariables.md +5 -0
  106. package/docs/reference/type-aliases/NodeExtensionInitialiseMethod.md +1 -1
  107. package/locales/en.json +7 -1
  108. package/package.json +1 -1
@@ -2,10 +2,6 @@
2
2
 
3
3
  The engine core environment variables.
4
4
 
5
- ## Extended by
6
-
7
- - [`IEngineServerEnvironmentVariables`](IEngineServerEnvironmentVariables.md)
8
-
9
5
  ## Properties
10
6
 
11
7
  ### debug? {#debug}
@@ -24,6 +20,35 @@ Start the engine in silent mode.
24
20
 
25
21
  ***
26
22
 
23
+ ### strictEnv? {#strictenv}
24
+
25
+ > `optional` **strictEnv?**: `string`
26
+
27
+ Controls how unrecognised TWIN_* environment variables are handled at startup.
28
+ "error" (default): throws a startup error, allowing CI and production deployments
29
+ to hard-fail on misconfigured or misspelled variable names.
30
+ "warn": logs a warning and continues.
31
+ "ignore": skips validation entirely.
32
+ Any other value is rejected at startup.
33
+
34
+ #### Default
35
+
36
+ ```ts
37
+ "error"
38
+ ```
39
+
40
+ ***
41
+
42
+ ### envAllowList? {#envallowlist}
43
+
44
+ > `optional` **envAllowList?**: `string`
45
+
46
+ Comma-separated list of raw environment variable names to exempt from the unknown-key check.
47
+ Use this to allowlist variables introduced by custom extensions that are not part of the
48
+ core interface, e.g. TWIN_MY_EXTENSION_SECRET.
49
+
50
+ ***
51
+
27
52
  ### storageFileRoot? {#storagefileroot}
28
53
 
29
54
  > `optional` **storageFileRoot?**: `string`
@@ -113,11 +138,11 @@ AWS Dynamo DB secret access key.
113
138
 
114
139
  ***
115
140
 
116
- ### awsDynamodbConnectionTimeoutMs? {#awsdynamodbconnectiontimeoutms}
141
+ ### awsDynamodbConnectionTimeout? {#awsdynamodbconnectiontimeout}
117
142
 
118
- > `optional` **awsDynamodbConnectionTimeoutMs?**: `string`
143
+ > `optional` **awsDynamodbConnectionTimeout?**: `string`
119
144
 
120
- AWS Dynamo DB connection timeout.
145
+ AWS Dynamo DB connection timeout in milliseconds.
121
146
 
122
147
  ***
123
148
 
@@ -562,9 +587,9 @@ The batch size for the logging task, set to 1 for no batching.
562
587
 
563
588
  ***
564
589
 
565
- ### loggingBatchFlushIntervalSeconds? {#loggingbatchflushintervalseconds}
590
+ ### loggingBatchFlushInterval? {#loggingbatchflushinterval}
566
591
 
567
- > `optional` **loggingBatchFlushIntervalSeconds?**: `string`
592
+ > `optional` **loggingBatchFlushInterval?**: `string`
568
593
 
569
594
  The batch flush interval in seconds for the logging task, how often to flush the logs when using batching, defaults to 5 seconds.
570
595
 
@@ -714,9 +739,9 @@ The port to use for the Open Telemetry Prometheus metrics server, only required
714
739
 
715
740
  ***
716
741
 
717
- ### telemetryMetricsCollectorIntervalSeconds? {#telemetrymetricscollectorintervalseconds}
742
+ ### telemetryMetricsCollectorInterval? {#telemetrymetricscollectorinterval}
718
743
 
719
- > `optional` **telemetryMetricsCollectorIntervalSeconds?**: `string`
744
+ > `optional` **telemetryMetricsCollectorInterval?**: `string`
720
745
 
721
746
  Polling interval in seconds for the telemetry metrics collector. Defaults to 60.
722
747
 
@@ -1011,11 +1036,11 @@ Defaults to trust-assertion.
1011
1036
 
1012
1037
  ***
1013
1038
 
1014
- ### trustJwtTtlSeconds? {#trustjwtttlseconds}
1039
+ ### trustJwtTtl? {#trustjwtttl}
1015
1040
 
1016
- > `optional` **trustJwtTtlSeconds?**: `string`
1041
+ > `optional` **trustJwtTtl?**: `string`
1017
1042
 
1018
- The trust time to live for generating JWTs.
1043
+ The trust time to live for generating JWTs in seconds.
1019
1044
  Defaults to undefined for never expiring.
1020
1045
 
1021
1046
  ***
@@ -1119,12 +1144,12 @@ Is the dataspace enabled, defaults to false.
1119
1144
 
1120
1145
  > `optional` **dataspaceRetainActivityLogsFor?**: `string`
1121
1146
 
1122
- The length of time to retain the activity logs for in minutes, set to -1 to keep forever.
1147
+ The length of time to retain the activity logs for in seconds, set to -1 to keep forever.
1123
1148
 
1124
1149
  #### Default
1125
1150
 
1126
1151
  ```ts
1127
- 10
1152
+ 600
1128
1153
  ```
1129
1154
 
1130
1155
  ***
@@ -1133,12 +1158,12 @@ The length of time to retain the activity logs for in minutes, set to -1 to keep
1133
1158
 
1134
1159
  > `optional` **dataspaceActivityLogsCleanupInterval?**: `string`
1135
1160
 
1136
- The interval in minutes for cleaning up the activity logs.
1161
+ The interval in seconds for cleaning up the activity logs.
1137
1162
 
1138
1163
  #### Default
1139
1164
 
1140
1165
  ```ts
1141
- 60
1166
+ 3600
1142
1167
  ```
1143
1168
 
1144
1169
  ***
@@ -1173,7 +1198,7 @@ false
1173
1198
 
1174
1199
  > `optional` **dataspaceStalledNegotiationTimeout?**: `string`
1175
1200
 
1176
- How long in minutes a negotiation may sit without progress before it is treated as timed out.
1201
+ How long in seconds a negotiation may sit without progress before it is treated as timed out.
1177
1202
 
1178
1203
  #### Default
1179
1204
 
@@ -1187,7 +1212,7 @@ How long in minutes a negotiation may sit without progress before it is treated
1187
1212
 
1188
1213
  > `optional` **dataspaceStalledTransferTimeout?**: `string`
1189
1214
 
1190
- How long in minutes a consumer-initiated transfer may sit in REQUESTED without the provider
1215
+ How long in seconds a consumer-initiated transfer may sit in REQUESTED without the provider
1191
1216
  progressing it before it is treated as timed out.
1192
1217
 
1193
1218
  #### Default
@@ -1206,6 +1231,12 @@ Path under which the dataspace control plane is mounted (path only, not full URL
1206
1231
  This must match the control-plane REST mount, as it is combined with the public
1207
1232
  origin to build the consumer's advertised callback address.
1208
1233
 
1234
+ #### Default
1235
+
1236
+ ```ts
1237
+ "dataspace-control-plane"
1238
+ ```
1239
+
1209
1240
  ***
1210
1241
 
1211
1242
  ### healthEnabled? {#healthenabled}
@@ -1216,17 +1247,17 @@ Are the health components enabled, defaults to false.
1216
1247
 
1217
1248
  ***
1218
1249
 
1219
- ### healthIntervalSeconds? {#healthintervalseconds}
1250
+ ### healthInterval? {#healthinterval}
1220
1251
 
1221
- > `optional` **healthIntervalSeconds?**: `string`
1252
+ > `optional` **healthInterval?**: `string`
1222
1253
 
1223
1254
  The interval in seconds for performing health checks, defaults to 60.
1224
1255
 
1225
1256
  ***
1226
1257
 
1227
- ### healthStartupIntervalSeconds? {#healthstartupintervalseconds}
1258
+ ### healthStartupInterval? {#healthstartupinterval}
1228
1259
 
1229
- > `optional` **healthStartupIntervalSeconds?**: `string`
1260
+ > `optional` **healthStartupInterval?**: `string`
1230
1261
 
1231
1262
  The interval in seconds for performing health checks at startup, defaults to 2.
1232
1263
  This allows components that take a long time to initialize to be healthy before the first health check is performed.
@@ -1250,65 +1281,65 @@ The default mutex timeout in milliseconds, used when no component-specific timeo
1250
1281
 
1251
1282
  ***
1252
1283
 
1253
- ### auditableItemGraphMutexTimeoutMs? {#auditableitemgraphmutextimeoutms}
1284
+ ### auditableItemGraphMutexTimeout? {#auditableitemgraphmutextimeout}
1254
1285
 
1255
- > `optional` **auditableItemGraphMutexTimeoutMs?**: `string`
1286
+ > `optional` **auditableItemGraphMutexTimeout?**: `string`
1256
1287
 
1257
1288
  The mutex timeout in milliseconds for the auditable item graph component.
1258
1289
 
1259
1290
  ***
1260
1291
 
1261
- ### auditableItemStreamMutexTimeoutMs? {#auditableitemstreammutextimeoutms}
1292
+ ### auditableItemStreamMutexTimeout? {#auditableitemstreammutextimeout}
1262
1293
 
1263
- > `optional` **auditableItemStreamMutexTimeoutMs?**: `string`
1294
+ > `optional` **auditableItemStreamMutexTimeout?**: `string`
1264
1295
 
1265
1296
  The mutex timeout in milliseconds for the auditable item stream component.
1266
1297
 
1267
1298
  ***
1268
1299
 
1269
- ### federatedCatalogueMutexTimeoutMs? {#federatedcataloguemutextimeoutms}
1300
+ ### federatedCatalogueMutexTimeout? {#federatedcataloguemutextimeout}
1270
1301
 
1271
- > `optional` **federatedCatalogueMutexTimeoutMs?**: `string`
1302
+ > `optional` **federatedCatalogueMutexTimeout?**: `string`
1272
1303
 
1273
1304
  The mutex timeout in milliseconds for the federated catalogue component.
1274
1305
 
1275
1306
  ***
1276
1307
 
1277
- ### documentManagementMutexTimeoutMs? {#documentmanagementmutextimeoutms}
1308
+ ### documentManagementMutexTimeout? {#documentmanagementmutextimeout}
1278
1309
 
1279
- > `optional` **documentManagementMutexTimeoutMs?**: `string`
1310
+ > `optional` **documentManagementMutexTimeout?**: `string`
1280
1311
 
1281
1312
  The mutex timeout in milliseconds for the document management component.
1282
1313
 
1283
1314
  ***
1284
1315
 
1285
- ### loggingMutexTimeoutMs? {#loggingmutextimeoutms}
1316
+ ### loggingMutexTimeout? {#loggingmutextimeout}
1286
1317
 
1287
- > `optional` **loggingMutexTimeoutMs?**: `string`
1318
+ > `optional` **loggingMutexTimeout?**: `string`
1288
1319
 
1289
1320
  The mutex timeout in milliseconds for the logging component.
1290
1321
 
1291
1322
  ***
1292
1323
 
1293
- ### entityStorageMemoryMutexTimeoutMs? {#entitystoragememorymutextimeoutms}
1324
+ ### entityStorageMemoryMutexTimeout? {#entitystoragememorymutextimeout}
1294
1325
 
1295
- > `optional` **entityStorageMemoryMutexTimeoutMs?**: `string`
1326
+ > `optional` **entityStorageMemoryMutexTimeout?**: `string`
1296
1327
 
1297
1328
  The mutex timeout in milliseconds for the memory entity storage connector.
1298
1329
 
1299
1330
  ***
1300
1331
 
1301
- ### entityStorageFileMutexTimeoutMs? {#entitystoragefilemutextimeoutms}
1332
+ ### entityStorageFileMutexTimeout? {#entitystoragefilemutextimeout}
1302
1333
 
1303
- > `optional` **entityStorageFileMutexTimeoutMs?**: `string`
1334
+ > `optional` **entityStorageFileMutexTimeout?**: `string`
1304
1335
 
1305
1336
  The mutex timeout in milliseconds for the file entity storage connector.
1306
1337
 
1307
1338
  ***
1308
1339
 
1309
- ### rightsManagementMutexTimeoutMs? {#rightsmanagementmutextimeoutms}
1340
+ ### rightsManagementMutexTimeout? {#rightsmanagementmutextimeout}
1310
1341
 
1311
- > `optional` **rightsManagementMutexTimeoutMs?**: `string`
1342
+ > `optional` **rightsManagementMutexTimeout?**: `string`
1312
1343
 
1313
1344
  The mutex timeout in milliseconds for the rights management component.
1314
1345