@twin.org/node-core 0.9.1-next.8 → 0.9.1-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.
@@ -15,8 +15,10 @@ export declare function getCommandDefinitionIdentityResolve(commandDefinitions:
15
15
  * @param envVars The environment variables for the node.
16
16
  * @param params The parameters for the command.
17
17
  * @param params.identity The DID to resolve.
18
+ * @param params.outputJson The output .json file to store the resolved DID document.
18
19
  * @returns The resolved DID document.
19
20
  */
20
21
  export declare function identityResolve(engineCore: IEngineCore, envVars: IEnvironmentVariables, params: {
21
22
  identity?: string;
23
+ outputJson?: string;
22
24
  }): Promise<IDidDocument>;
@@ -47,4 +47,8 @@ export interface ICliCommandDefinition {
47
47
  * @default true
48
48
  */
49
49
  requiresOrgIdentity?: boolean;
50
+ /**
51
+ * Indicates whether this command is only available in single-tenant mode.
52
+ */
53
+ singleTenantOnly?: boolean;
50
54
  }
@@ -289,7 +289,7 @@ export interface IEngineEnvironmentVariables {
289
289
  */
290
290
  hashicorpVaultEndpoint?: string;
291
291
  /**
292
- * The type of logging task connector, can be a comma separated list: console, entity-storage.
292
+ * The type of logging task connector, can be a comma separated list: console, entity-storage, otel, file.
293
293
  */
294
294
  loggingConnector?: string;
295
295
  /**
@@ -304,6 +304,22 @@ export interface IEngineEnvironmentVariables {
304
304
  * A list of components to exclude from logging, can be a comma separated list of component Class names e.g. "ComponentA,ComponentB".
305
305
  */
306
306
  loggingSilentComponents?: string;
307
+ /**
308
+ * The directory to write log files into when using the file logging connector. Required when TWIN_LOGGING_CONNECTOR includes "file".
309
+ */
310
+ loggingFileDirectory?: string;
311
+ /**
312
+ * The log filename when using the file logging connector, defaults to "app.log".
313
+ */
314
+ loggingFileFilename?: string;
315
+ /**
316
+ * The maximum log file size in bytes before rotation when using the file logging connector, defaults to 10485760 (10 MB). Set to 0 or negative to disable rotation.
317
+ */
318
+ loggingFileMaxFileSizeBytes?: string;
319
+ /**
320
+ * The number of rotated log files to retain when using the file logging connector, defaults to 5. Set to 0 or negative to keep all rotated files.
321
+ */
322
+ loggingFileMaxRetainedFiles?: string;
307
323
  /**
308
324
  * The name of the OpenTelemetry logger, only required if using open-telemetry as logging connector, defaults to twin-logging.
309
325
  */
@@ -428,6 +444,10 @@ export interface IEngineEnvironmentVariables {
428
444
  * The index of the wallet address to use, defaults to 0.
429
445
  */
430
446
  identityWalletAddressIndex?: string;
447
+ /**
448
+ * The TTL in milliseconds for caching resolved DIDs when using the IOTA identity connector. Omit to use the connector default.
449
+ */
450
+ identityDidResolutionCacheTtlMs?: string;
431
451
  /**
432
452
  * The type of identity resolver connector: entity-storage, iota.
433
453
  */
@@ -448,6 +468,14 @@ export interface IEngineEnvironmentVariables {
448
468
  * IOTA coin type.
449
469
  */
450
470
  iotaCoinType?: string;
471
+ /**
472
+ * IOTA gas budget, in nanos.
473
+ */
474
+ iotaGasBudget?: string;
475
+ /**
476
+ * IOTA gas reservation duration, in seconds.
477
+ */
478
+ iotaGasReservationDuration?: string;
451
479
  /**
452
480
  * IOTA Explorer Endpoint.
453
481
  */
@@ -524,6 +552,10 @@ export interface IEngineEnvironmentVariables {
524
552
  * Federated catalog remote endpoint, if set will use a REST client instead of local service.
525
553
  */
526
554
  federatedCatalogueRemoteEndpoint?: string;
555
+ /**
556
+ * The path prefix used by the federated catalogue REST client when forwarding requests to the remote endpoint, defaults to "federated-catalogue".
557
+ */
558
+ federatedCatalogueRestClientPathPrefix?: string;
527
559
  /**
528
560
  * The trust generators to add to the factory, comma separated list.
529
561
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.1-next.9](https://github.com/iotaledger/twin-node/compare/node-core-v0.9.1-next.8...node-core-v0.9.1-next.9) (2026-07-21)
4
+
5
+
6
+ ### Features
7
+
8
+ * enhanced cli commands ([#288](https://github.com/iotaledger/twin-node/issues/288)) ([479fb34](https://github.com/iotaledger/twin-node/commit/479fb3448c493a134aee35b69ae39458e493a4ad))
9
+ * expose gasBudget and gasReservationDuration as configurable env vars ([#286](https://github.com/iotaledger/twin-node/issues/286)) ([d678b27](https://github.com/iotaledger/twin-node/commit/d678b27d629930a6ce85eeab9caf89d1187c3461))
10
+ * file logging config ([#287](https://github.com/iotaledger/twin-node/issues/287)) ([a567b25](https://github.com/iotaledger/twin-node/commit/a567b253cbb8b9af872bb0e494c013212f4f55a2))
11
+
3
12
  ## [0.9.1-next.8](https://github.com/iotaledger/twin-node/compare/node-core-v0.9.1-next.7...node-core-v0.9.1-next.8) (2026-07-10)
4
13
 
5
14
 
@@ -107,3 +107,11 @@ Indicates whether the engine needs the organization identity to be set.
107
107
  ```ts
108
108
  true
109
109
  ```
110
+
111
+ ***
112
+
113
+ ### singleTenantOnly? {#singletenantonly}
114
+
115
+ > `optional` **singleTenantOnly?**: `boolean`
116
+
117
+ Indicates whether this command is only available in single-tenant mode.
@@ -575,7 +575,7 @@ Hashicorp Vault endpoint.
575
575
 
576
576
  > `optional` **loggingConnector?**: `string`
577
577
 
578
- The type of logging task connector, can be a comma separated list: console, entity-storage.
578
+ The type of logging task connector, can be a comma separated list: console, entity-storage, otel, file.
579
579
 
580
580
  ***
581
581
 
@@ -603,6 +603,38 @@ A list of components to exclude from logging, can be a comma separated list of c
603
603
 
604
604
  ***
605
605
 
606
+ ### loggingFileDirectory? {#loggingfiledirectory}
607
+
608
+ > `optional` **loggingFileDirectory?**: `string`
609
+
610
+ The directory to write log files into when using the file logging connector. Required when TWIN_LOGGING_CONNECTOR includes "file".
611
+
612
+ ***
613
+
614
+ ### loggingFileFilename? {#loggingfilefilename}
615
+
616
+ > `optional` **loggingFileFilename?**: `string`
617
+
618
+ The log filename when using the file logging connector, defaults to "app.log".
619
+
620
+ ***
621
+
622
+ ### loggingFileMaxFileSizeBytes? {#loggingfilemaxfilesizebytes}
623
+
624
+ > `optional` **loggingFileMaxFileSizeBytes?**: `string`
625
+
626
+ The maximum log file size in bytes before rotation when using the file logging connector, defaults to 10485760 (10 MB). Set to 0 or negative to disable rotation.
627
+
628
+ ***
629
+
630
+ ### loggingFileMaxRetainedFiles? {#loggingfilemaxretainedfiles}
631
+
632
+ > `optional` **loggingFileMaxRetainedFiles?**: `string`
633
+
634
+ The number of rotated log files to retain when using the file logging connector, defaults to 5. Set to 0 or negative to keep all rotated files.
635
+
636
+ ***
637
+
606
638
  ### openTelemetryLoggingLoggerName? {#opentelemetryloggingloggername}
607
639
 
608
640
  > `optional` **openTelemetryLoggingLoggerName?**: `string`
@@ -851,6 +883,14 @@ The index of the wallet address to use, defaults to 0.
851
883
 
852
884
  ***
853
885
 
886
+ ### identityDidResolutionCacheTtlMs? {#identitydidresolutioncachettlms}
887
+
888
+ > `optional` **identityDidResolutionCacheTtlMs?**: `string`
889
+
890
+ The TTL in milliseconds for caching resolved DIDs when using the IOTA identity connector. Omit to use the connector default.
891
+
892
+ ***
893
+
854
894
  ### identityResolverConnector? {#identityresolverconnector}
855
895
 
856
896
  > `optional` **identityResolverConnector?**: `string`
@@ -891,6 +931,22 @@ IOTA coin type.
891
931
 
892
932
  ***
893
933
 
934
+ ### iotaGasBudget? {#iotagasbudget}
935
+
936
+ > `optional` **iotaGasBudget?**: `string`
937
+
938
+ IOTA gas budget, in nanos.
939
+
940
+ ***
941
+
942
+ ### iotaGasReservationDuration? {#iotagasreservationduration}
943
+
944
+ > `optional` **iotaGasReservationDuration?**: `string`
945
+
946
+ IOTA gas reservation duration, in seconds.
947
+
948
+ ***
949
+
894
950
  ### iotaExplorerEndpoint? {#iotaexplorerendpoint}
895
951
 
896
952
  > `optional` **iotaExplorerEndpoint?**: `string`
@@ -1043,6 +1099,14 @@ Federated catalog remote endpoint, if set will use a REST client instead of loca
1043
1099
 
1044
1100
  ***
1045
1101
 
1102
+ ### federatedCatalogueRestClientPathPrefix? {#federatedcataloguerestclientpathprefix}
1103
+
1104
+ > `optional` **federatedCatalogueRestClientPathPrefix?**: `string`
1105
+
1106
+ The path prefix used by the federated catalogue REST client when forwarding requests to the remote endpoint, defaults to "federated-catalogue".
1107
+
1108
+ ***
1109
+
1046
1110
  ### trustGenerators? {#trustgenerators}
1047
1111
 
1048
1112
  > `optional` **trustGenerators?**: `string`
package/locales/en.json CHANGED
@@ -125,7 +125,8 @@
125
125
  "optional": "optional",
126
126
  "required": "required",
127
127
  "default": "default",
128
- "options": "options"
128
+ "options": "options",
129
+ "singleTenantOnly": "single-tenant only"
129
130
  }
130
131
  },
131
132
  "bootstrap-legacy": {
@@ -880,12 +881,14 @@
880
881
  },
881
882
  "load-env": {
882
883
  "description": "Comma separated list of paths to .env files to read input parameters from."
884
+ },
885
+ "output-json": {
886
+ "description": "Path to a .json file to store the resolved DID document."
883
887
  }
884
888
  },
885
889
  "labels": {
886
890
  "resolving": "Resolving identity",
887
- "did": "DID",
888
- "verificationMethods": "Verification Methods"
891
+ "did": "DID"
889
892
  }
890
893
  },
891
894
  "org-users-list": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/node-core",
3
- "version": "0.9.1-next.8",
3
+ "version": "0.9.1-next.9",
4
4
  "description": "TWIN Node Core for serving APIs using the specified configuration",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,7 +32,6 @@
32
32
  "@twin.org/identity-models": "next",
33
33
  "@twin.org/logging-connector-opentelemetry": "next",
34
34
  "@twin.org/modules": "next",
35
- "@twin.org/rights-management-rest-client": "next",
36
35
  "@twin.org/standards-w3c-did": "next",
37
36
  "@twin.org/standards-w3c-odrl": "next",
38
37
  "@twin.org/telemetry-connector-opentelemetry": "next",