@twin.org/node-core 0.9.2-next.7 → 0.9.2-next.9

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.
@@ -131,6 +131,14 @@ export interface IEngineEnvironmentVariables {
131
131
  * ScyllaDB port.
132
132
  */
133
133
  scylladbPort?: string;
134
+ /**
135
+ * ScyllaDB connection pool: number of connections per local host.
136
+ */
137
+ scylladbPoolCoreConnectionsPerHost?: string;
138
+ /**
139
+ * ScyllaDB connection pool: maximum requests per connection.
140
+ */
141
+ scylladbPoolMaxRequestsPerConnection?: string;
134
142
  /**
135
143
  * MySQL host.
136
144
  */
@@ -151,6 +159,30 @@ export interface IEngineEnvironmentVariables {
151
159
  * MySQL Database.
152
160
  */
153
161
  mySqlDatabase?: string;
162
+ /**
163
+ * MySQL connection pool: maximum number of connections.
164
+ */
165
+ mySqlPoolConnectionLimit?: string;
166
+ /**
167
+ * MySQL connection pool: maximum number of idle connections.
168
+ */
169
+ mySqlPoolMaxIdle?: string;
170
+ /**
171
+ * MySQL connection pool: milliseconds before an idle connection is removed.
172
+ */
173
+ mySqlPoolIdleTimeout?: string;
174
+ /**
175
+ * MySQL connection pool: enable TCP keep-alive.
176
+ */
177
+ mySqlPoolEnableKeepAlive?: string;
178
+ /**
179
+ * MySQL connection pool: wait for a connection when pool is full.
180
+ */
181
+ mySqlPoolWaitForConnections?: string;
182
+ /**
183
+ * MySQL connection pool: maximum queued requests (0 = unlimited).
184
+ */
185
+ mySqlPoolQueueLimit?: string;
154
186
  /**
155
187
  * MongoDB host.
156
188
  */
@@ -171,6 +203,22 @@ export interface IEngineEnvironmentVariables {
171
203
  * MongoDB Database.
172
204
  */
173
205
  mongoDbDatabase?: string;
206
+ /**
207
+ * MongoDB connection pool: maximum number of connections.
208
+ */
209
+ mongoDbPoolMaxPoolSize?: string;
210
+ /**
211
+ * MongoDB connection pool: minimum number of connections to maintain.
212
+ */
213
+ mongoDbPoolMinPoolSize?: string;
214
+ /**
215
+ * MongoDB connection pool: milliseconds a connection can remain idle before removal.
216
+ */
217
+ mongoDbPoolMaxIdleTime?: string;
218
+ /**
219
+ * MongoDB connection pool: milliseconds to wait for a connection before throwing.
220
+ */
221
+ mongoDbPoolWaitQueueTimeout?: string;
174
222
  /**
175
223
  * PostgreSQl host.
176
224
  */
@@ -191,6 +239,22 @@ export interface IEngineEnvironmentVariables {
191
239
  * PostgreSQl Database.
192
240
  */
193
241
  postgreSqlDatabase?: string;
242
+ /**
243
+ * PostgreSQL connection pool: maximum number of connections.
244
+ */
245
+ postgreSqlPoolMax?: string;
246
+ /**
247
+ * PostgreSQL connection pool: seconds a connection can remain idle before being closed.
248
+ */
249
+ postgreSqlPoolIdleTimeout?: string;
250
+ /**
251
+ * PostgreSQL connection pool: seconds to wait when establishing a connection.
252
+ */
253
+ postgreSqlPoolConnectTimeout?: string;
254
+ /**
255
+ * PostgreSQL connection pool: maximum seconds a connection can remain open.
256
+ */
257
+ postgreSqlPoolMaxLifetime?: string;
194
258
  /**
195
259
  * The security token for accessing IPFS API.
196
260
  */
@@ -503,7 +567,15 @@ export interface IEngineEnvironmentVariables {
503
567
  /**
504
568
  * The TTL in milliseconds for caching resolved DIDs when using the IOTA identity connector. Omit to use the connector default.
505
569
  */
506
- identityDidResolutionCacheTtlMs?: string;
570
+ identityDidResolutionCacheTtl?: string;
571
+ /**
572
+ * The maximum number of DID documents to hold in the resolution cache. Only used when using the IOTA identity connector and caching is enabled.
573
+ */
574
+ identityDidResolutionCacheCapacity?: string;
575
+ /**
576
+ * The mutex timeout in milliseconds for the DID resolution cache. Only used when using the IOTA identity connector and caching is enabled.
577
+ */
578
+ identityDidResolutionCacheMutexTimeout?: string;
507
579
  /**
508
580
  * The type of identity resolver connector: entity-storage, iota.
509
581
  */
@@ -736,6 +808,34 @@ export interface IEngineEnvironmentVariables {
736
808
  * @default 3600
737
809
  */
738
810
  dataspaceActivityLogsCleanupInterval?: string;
811
+ /**
812
+ * The TTL in milliseconds for the dataspace agreement cache.
813
+ */
814
+ dataspaceAgreementCacheTtl?: string;
815
+ /**
816
+ * The mutex timeout in milliseconds for the dataspace agreement cache.
817
+ */
818
+ dataspaceAgreementCacheMutexTimeout?: string;
819
+ /**
820
+ * The number of times to retry failed data plane tasks.
821
+ */
822
+ dataspaceRetryCount?: string;
823
+ /**
824
+ * Maximum HTTP retry attempts per push delivery task execution.
825
+ */
826
+ dataspacePushRetryCount?: string;
827
+ /**
828
+ * Base delay in milliseconds for exponential backoff between push HTTP retries.
829
+ */
830
+ dataspacePushRetryBaseDelay?: string;
831
+ /**
832
+ * Timeout in milliseconds for each push delivery HTTP POST request.
833
+ */
834
+ dataspacePushTimeout?: string;
835
+ /**
836
+ * Interval in milliseconds between orphaned push subscription cleanup scans.
837
+ */
838
+ dataspacePushSubscriptionCleanupInterval?: string;
739
839
  /**
740
840
  * Base route path for the data plane service (path only, not full URL).
741
841
  * Combined with the public origin to form the `dataAddress.endpoint` sent to PULL consumers
@@ -808,7 +908,7 @@ export interface IEngineEnvironmentVariables {
808
908
  /**
809
909
  * The default mutex timeout in milliseconds, used when no component-specific timeout is set, defaults to 5000 if omitted.
810
910
  */
811
- mutexTimeoutMsDefault?: string;
911
+ mutexTimeoutDefault?: string;
812
912
  /**
813
913
  * The mutex timeout in milliseconds for the auditable item graph component.
814
914
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.2-next.9](https://github.com/iotaledger/twin-node/compare/node-core-v0.9.2-next.8...node-core-v0.9.2-next.9) (2026-08-12)
4
+
5
+
6
+ ### Features
7
+
8
+ * pool env vars ([#331](https://github.com/iotaledger/twin-node/issues/331)) ([338ea61](https://github.com/iotaledger/twin-node/commit/338ea612b37aa4d15971c8a09def47bee9395d0c))
9
+
10
+ ## [0.9.2-next.8](https://github.com/iotaledger/twin-node/compare/node-core-v0.9.2-next.7...node-core-v0.9.2-next.8) (2026-08-11)
11
+
12
+
13
+ ### Features
14
+
15
+ * add additional env vars ([#328](https://github.com/iotaledger/twin-node/issues/328)) ([6ca8718](https://github.com/iotaledger/twin-node/commit/6ca87184bc4d78829c957ea055d3c281aca6cf9f))
16
+
3
17
  ## [0.9.2-next.7](https://github.com/iotaledger/twin-node/compare/node-core-v0.9.2-next.6...node-core-v0.9.2-next.7) (2026-08-10)
4
18
 
5
19
 
@@ -258,6 +258,22 @@ ScyllaDB port.
258
258
 
259
259
  ***
260
260
 
261
+ ### scylladbPoolCoreConnectionsPerHost? {#scylladbpoolcoreconnectionsperhost}
262
+
263
+ > `optional` **scylladbPoolCoreConnectionsPerHost?**: `string`
264
+
265
+ ScyllaDB connection pool: number of connections per local host.
266
+
267
+ ***
268
+
269
+ ### scylladbPoolMaxRequestsPerConnection? {#scylladbpoolmaxrequestsperconnection}
270
+
271
+ > `optional` **scylladbPoolMaxRequestsPerConnection?**: `string`
272
+
273
+ ScyllaDB connection pool: maximum requests per connection.
274
+
275
+ ***
276
+
261
277
  ### mySqlHost? {#mysqlhost}
262
278
 
263
279
  > `optional` **mySqlHost?**: `string`
@@ -298,6 +314,54 @@ MySQL Database.
298
314
 
299
315
  ***
300
316
 
317
+ ### mySqlPoolConnectionLimit? {#mysqlpoolconnectionlimit}
318
+
319
+ > `optional` **mySqlPoolConnectionLimit?**: `string`
320
+
321
+ MySQL connection pool: maximum number of connections.
322
+
323
+ ***
324
+
325
+ ### mySqlPoolMaxIdle? {#mysqlpoolmaxidle}
326
+
327
+ > `optional` **mySqlPoolMaxIdle?**: `string`
328
+
329
+ MySQL connection pool: maximum number of idle connections.
330
+
331
+ ***
332
+
333
+ ### mySqlPoolIdleTimeout? {#mysqlpoolidletimeout}
334
+
335
+ > `optional` **mySqlPoolIdleTimeout?**: `string`
336
+
337
+ MySQL connection pool: milliseconds before an idle connection is removed.
338
+
339
+ ***
340
+
341
+ ### mySqlPoolEnableKeepAlive? {#mysqlpoolenablekeepalive}
342
+
343
+ > `optional` **mySqlPoolEnableKeepAlive?**: `string`
344
+
345
+ MySQL connection pool: enable TCP keep-alive.
346
+
347
+ ***
348
+
349
+ ### mySqlPoolWaitForConnections? {#mysqlpoolwaitforconnections}
350
+
351
+ > `optional` **mySqlPoolWaitForConnections?**: `string`
352
+
353
+ MySQL connection pool: wait for a connection when pool is full.
354
+
355
+ ***
356
+
357
+ ### mySqlPoolQueueLimit? {#mysqlpoolqueuelimit}
358
+
359
+ > `optional` **mySqlPoolQueueLimit?**: `string`
360
+
361
+ MySQL connection pool: maximum queued requests (0 = unlimited).
362
+
363
+ ***
364
+
301
365
  ### mongoDbHost? {#mongodbhost}
302
366
 
303
367
  > `optional` **mongoDbHost?**: `string`
@@ -338,6 +402,38 @@ MongoDB Database.
338
402
 
339
403
  ***
340
404
 
405
+ ### mongoDbPoolMaxPoolSize? {#mongodbpoolmaxpoolsize}
406
+
407
+ > `optional` **mongoDbPoolMaxPoolSize?**: `string`
408
+
409
+ MongoDB connection pool: maximum number of connections.
410
+
411
+ ***
412
+
413
+ ### mongoDbPoolMinPoolSize? {#mongodbpoolminpoolsize}
414
+
415
+ > `optional` **mongoDbPoolMinPoolSize?**: `string`
416
+
417
+ MongoDB connection pool: minimum number of connections to maintain.
418
+
419
+ ***
420
+
421
+ ### mongoDbPoolMaxIdleTime? {#mongodbpoolmaxidletime}
422
+
423
+ > `optional` **mongoDbPoolMaxIdleTime?**: `string`
424
+
425
+ MongoDB connection pool: milliseconds a connection can remain idle before removal.
426
+
427
+ ***
428
+
429
+ ### mongoDbPoolWaitQueueTimeout? {#mongodbpoolwaitqueuetimeout}
430
+
431
+ > `optional` **mongoDbPoolWaitQueueTimeout?**: `string`
432
+
433
+ MongoDB connection pool: milliseconds to wait for a connection before throwing.
434
+
435
+ ***
436
+
341
437
  ### postgreSqlHost? {#postgresqlhost}
342
438
 
343
439
  > `optional` **postgreSqlHost?**: `string`
@@ -378,6 +474,38 @@ PostgreSQl Database.
378
474
 
379
475
  ***
380
476
 
477
+ ### postgreSqlPoolMax? {#postgresqlpoolmax}
478
+
479
+ > `optional` **postgreSqlPoolMax?**: `string`
480
+
481
+ PostgreSQL connection pool: maximum number of connections.
482
+
483
+ ***
484
+
485
+ ### postgreSqlPoolIdleTimeout? {#postgresqlpoolidletimeout}
486
+
487
+ > `optional` **postgreSqlPoolIdleTimeout?**: `string`
488
+
489
+ PostgreSQL connection pool: seconds a connection can remain idle before being closed.
490
+
491
+ ***
492
+
493
+ ### postgreSqlPoolConnectTimeout? {#postgresqlpoolconnecttimeout}
494
+
495
+ > `optional` **postgreSqlPoolConnectTimeout?**: `string`
496
+
497
+ PostgreSQL connection pool: seconds to wait when establishing a connection.
498
+
499
+ ***
500
+
501
+ ### postgreSqlPoolMaxLifetime? {#postgresqlpoolmaxlifetime}
502
+
503
+ > `optional` **postgreSqlPoolMaxLifetime?**: `string`
504
+
505
+ PostgreSQL connection pool: maximum seconds a connection can remain open.
506
+
507
+ ***
508
+
381
509
  ### ipfsBearerToken? {#ipfsbearertoken}
382
510
 
383
511
  > `optional` **ipfsBearerToken?**: `string`
@@ -1007,14 +1135,30 @@ The index of the wallet address to use, defaults to 0.
1007
1135
 
1008
1136
  ***
1009
1137
 
1010
- ### identityDidResolutionCacheTtlMs? {#identitydidresolutioncachettlms}
1138
+ ### identityDidResolutionCacheTtl? {#identitydidresolutioncachettl}
1011
1139
 
1012
- > `optional` **identityDidResolutionCacheTtlMs?**: `string`
1140
+ > `optional` **identityDidResolutionCacheTtl?**: `string`
1013
1141
 
1014
1142
  The TTL in milliseconds for caching resolved DIDs when using the IOTA identity connector. Omit to use the connector default.
1015
1143
 
1016
1144
  ***
1017
1145
 
1146
+ ### identityDidResolutionCacheCapacity? {#identitydidresolutioncachecapacity}
1147
+
1148
+ > `optional` **identityDidResolutionCacheCapacity?**: `string`
1149
+
1150
+ The maximum number of DID documents to hold in the resolution cache. Only used when using the IOTA identity connector and caching is enabled.
1151
+
1152
+ ***
1153
+
1154
+ ### identityDidResolutionCacheMutexTimeout? {#identitydidresolutioncachemutextimeout}
1155
+
1156
+ > `optional` **identityDidResolutionCacheMutexTimeout?**: `string`
1157
+
1158
+ The mutex timeout in milliseconds for the DID resolution cache. Only used when using the IOTA identity connector and caching is enabled.
1159
+
1160
+ ***
1161
+
1018
1162
  ### identityResolverConnector? {#identityresolverconnector}
1019
1163
 
1020
1164
  > `optional` **identityResolverConnector?**: `string`
@@ -1509,6 +1653,62 @@ The interval in seconds for cleaning up the activity logs.
1509
1653
 
1510
1654
  ***
1511
1655
 
1656
+ ### dataspaceAgreementCacheTtl? {#dataspaceagreementcachettl}
1657
+
1658
+ > `optional` **dataspaceAgreementCacheTtl?**: `string`
1659
+
1660
+ The TTL in milliseconds for the dataspace agreement cache.
1661
+
1662
+ ***
1663
+
1664
+ ### dataspaceAgreementCacheMutexTimeout? {#dataspaceagreementcachemutextimeout}
1665
+
1666
+ > `optional` **dataspaceAgreementCacheMutexTimeout?**: `string`
1667
+
1668
+ The mutex timeout in milliseconds for the dataspace agreement cache.
1669
+
1670
+ ***
1671
+
1672
+ ### dataspaceRetryCount? {#dataspaceretrycount}
1673
+
1674
+ > `optional` **dataspaceRetryCount?**: `string`
1675
+
1676
+ The number of times to retry failed data plane tasks.
1677
+
1678
+ ***
1679
+
1680
+ ### dataspacePushRetryCount? {#dataspacepushretrycount}
1681
+
1682
+ > `optional` **dataspacePushRetryCount?**: `string`
1683
+
1684
+ Maximum HTTP retry attempts per push delivery task execution.
1685
+
1686
+ ***
1687
+
1688
+ ### dataspacePushRetryBaseDelay? {#dataspacepushretrybasedelay}
1689
+
1690
+ > `optional` **dataspacePushRetryBaseDelay?**: `string`
1691
+
1692
+ Base delay in milliseconds for exponential backoff between push HTTP retries.
1693
+
1694
+ ***
1695
+
1696
+ ### dataspacePushTimeout? {#dataspacepushtimeout}
1697
+
1698
+ > `optional` **dataspacePushTimeout?**: `string`
1699
+
1700
+ Timeout in milliseconds for each push delivery HTTP POST request.
1701
+
1702
+ ***
1703
+
1704
+ ### dataspacePushSubscriptionCleanupInterval? {#dataspacepushsubscriptioncleanupinterval}
1705
+
1706
+ > `optional` **dataspacePushSubscriptionCleanupInterval?**: `string`
1707
+
1708
+ Interval in milliseconds between orphaned push subscription cleanup scans.
1709
+
1710
+ ***
1711
+
1512
1712
  ### dataspaceDataPlanePath? {#dataspacedataplanepath}
1513
1713
 
1514
1714
  > `optional` **dataspaceDataPlanePath?**: `string`
@@ -1646,9 +1846,9 @@ values: fetch
1646
1846
 
1647
1847
  ***
1648
1848
 
1649
- ### mutexTimeoutMsDefault? {#mutextimeoutmsdefault}
1849
+ ### mutexTimeoutDefault? {#mutextimeoutdefault}
1650
1850
 
1651
- > `optional` **mutexTimeoutMsDefault?**: `string`
1851
+ > `optional` **mutexTimeoutDefault?**: `string`
1652
1852
 
1653
1853
  The default mutex timeout in milliseconds, used when no component-specific timeout is set, defaults to 5000 if omitted.
1654
1854
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/node-core",
3
- "version": "0.9.2-next.7",
3
+ "version": "0.9.2-next.9",
4
4
  "description": "TWIN Node Core for serving APIs using the specified configuration",
5
5
  "repository": {
6
6
  "type": "git",