@twin.org/node 0.9.4-next.1 → 0.9.4-next.2

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.
@@ -394,7 +394,9 @@
394
394
  "migrationHelper": {
395
395
  "migrateSchemaFailed": "Migration failed for schema \"{schemaName}\".",
396
396
  "transformRequiredForProperty": "A transformation function is required to migrate property \"{from}\" to \"{to}\" of type \"{type}\"",
397
- "coercionProducedUndefined": "Coercion of property \"{property}\" to type \"{type}\" produced undefined but the property is not optional"
397
+ "coercionProducedUndefined": "Coercion of property \"{property}\" to type \"{type}\" produced undefined but the property is not optional",
398
+ "connectorBootstrapFailed": "Connector \"{className}\" failed to bootstrap storage for schema \"{schemaName}\"",
399
+ "maxIdentifierLengthTooSmall": "The maximum identifier length {maxIdentifierLength} must be at least {minimum} to fit the migration name suffix"
398
400
  },
399
401
  "vaultConnectorHelper": {
400
402
  "invalidSignature": "The JSON Web token signature could not be verified"
@@ -556,6 +558,10 @@
556
558
  "spanHelper": {
557
559
  "traceFlagsOutOfRange": "The trace flags value \"{traceFlags}\" is outside the valid range 0 to 255"
558
560
  },
561
+ "tracingHelper": {
562
+ "startSpanFailed": "The span \"{name}\" could not be started, so the operation was not traced",
563
+ "endSpanFailed": "The span \"{name}\" could not be ended"
564
+ },
559
565
  "auditableItemGraphService": {
560
566
  "namespaceMismatch": "The namespace in the urn \"{id}\" does not match the namespace of the Auditable Item Graph service \"{namespace}\"",
561
567
  "createFailed": "Creating the Auditable Item Graph vertex failed",
@@ -940,6 +946,7 @@
940
946
  "conditionalNotSupported": "Conditional operator \"{operator}\" is not supported",
941
947
  "entitySchemaPropertiesUndefined": "The entity schema properties are undefined",
942
948
  "databaseCreateFailed": "Unable to create database \"{databaseName}\"",
949
+ "tableCreateFailed": "Unable to create table \"{tableName}\"",
943
950
  "setBatchFailed": "Unable to set batch of entities",
944
951
  "countFailed": "Unable to count entities",
945
952
  "emptyFailed": "Unable to empty entity storage",
@@ -952,6 +959,7 @@
952
959
  "optimisticLockFailed": "The entity \"{conflictId}\" could not be written because the optimistic lock check failed",
953
960
  "conditionFailed": "The entity \"{conflictId}\" could not be updated because the supplied conditions did not match the stored state",
954
961
  "databaseCreateFailed": "Unable to create database \"{databaseName}\"",
962
+ "tableCreateFailed": "Unable to create table \"{tableName}\"",
955
963
  "setFailed": "Unable to set entity \"{id}\"",
956
964
  "getFailed": "Unable to get entity \"{id}\"",
957
965
  "removeFailed": "Unable to remove entity \"{id}\"",
@@ -1418,7 +1426,13 @@
1418
1426
  "upDownCounterIncOrDecOnly": "An up/down counter metric can only be incremented, decremented or adjusted with an integer",
1419
1427
  "gaugeNoIncDec": "A gauge can not be incremented or decremented",
1420
1428
  "maxHistoryMustBePositiveInteger": "The maxHistory option must be a positive integer",
1421
- "flushFailed": "Failed to flush metric values to storage"
1429
+ "metricValueTaskFailed": "The metric value background task failed \"{taskId}\"",
1430
+ "backgroundTaskComponentMissing": "The metric values cannot be written as no background task component is available"
1431
+ },
1432
+ "metricValueWriter": {
1433
+ "flushFailed": "Failed to flush metric values to storage",
1434
+ "invalidMetricOperation": "The operation \"{operation}\" is not valid for metric \"{id}\" of type \"{type}\"",
1435
+ "trimFailed": "Failed to trim the metric history to its retention cap"
1422
1436
  },
1423
1437
  "openTelemetryTelemetryConnector": {
1424
1438
  "metricNotFound": "The metric could not be found \"{notFoundId}\"",
@@ -1426,7 +1440,9 @@
1426
1440
  "gaugeNoIncDec": "A gauge can not be incremented or decremented"
1427
1441
  },
1428
1442
  "metricsCollectorService": {
1429
- "producerCollectionFailed": "Failed to collect metrics from producer \"{producer}\""
1443
+ "producerCollectionFailed": "Failed to collect metrics from producer \"{producer}\"",
1444
+ "metricRecordFailed": "Failed to record the collected metric values",
1445
+ "collectionCycleFailed": "Failed to run the metrics collection cycle"
1430
1446
  },
1431
1447
  "entityStorageTracingConnector": {
1432
1448
  "spanNotFound": "The span could not be found \"{notFoundId}\"",
@@ -1533,7 +1549,9 @@
1533
1549
  },
1534
1550
  "warn": {
1535
1551
  "node": {
1536
- "unknownEnvVars": "Unknown environment variable properties [{keys}], they will be ignored. Check for typos in variable names, for custom variables use the {prefix}ENV_ALLOW_LIST."
1552
+ "unknownEnvVars": "Unknown environment variable properties [{keys}], they will be ignored. Check for typos in variable names, for custom variables use the {prefix}ENV_ALLOW_LIST.",
1553
+ "deprecatedEnvVar": "The environment variable \"{key}\" is deprecated and no longer has any effect, please use {replacements} instead. This variable will be removed in a future release.",
1554
+ "deprecatedEnvVarNoReplacement": "The environment variable \"{key}\" is deprecated and no longer has any effect. This variable will be removed in a future release."
1537
1555
  },
1538
1556
  "common": {
1539
1557
  "devOnlyTool": "This tool is intended to be used for development purposes, it is not recommended for use in production scenarios."
@@ -1611,6 +1629,9 @@
1611
1629
  "terminatedCallbackFailed": "Failed to notify requester via terminated() for negotiation id: \"{negotiationId}\"",
1612
1630
  "callbackDeliveryFailed": "Failed to deliver the negotiation callback to \"{callbackAddress}\" for negotiation id: \"{negotiationId}\" in state \"{state}\"; the negotiation is unchanged and remains discoverable by polling",
1613
1631
  "sendTerminateFailed": "Failed to send terminate to consumer for negotiation id: \"{id}\", correlation id: \"{correlationId}\""
1632
+ },
1633
+ "entityStorageTelemetryConnector": {
1634
+ "flushTimeout": "The background thread did not confirm the flush within \"{timeoutMs}\" ms for task \"{taskId}\""
1614
1635
  }
1615
1636
  },
1616
1637
  "node": {
@@ -2774,7 +2795,9 @@
2774
2795
  "metricCreated": "The metric was created \"{id}\" with type \"type\" and label \"{label}\"",
2775
2796
  "metricUpdated": "The metric was updated \"{id}\" with type \"type\" and label \"{label}\"",
2776
2797
  "metricRemoved": "The metric was removed \"{id}\"",
2777
- "metricValueCreated": "The metric value was created for \"{id}\" with value \"{value}\""
2798
+ "metricValueCreated": "The metric value was queued for \"{id}\"",
2799
+ "metricValuesCreated": "\"{count}\" metric values were queued",
2800
+ "metricsCreated": "\"{count}\" metrics were created"
2778
2801
  },
2779
2802
  "openTelemetryTelemetryConnector": {
2780
2803
  "connectorStarted": "The connector was started with \"{readerCount}\" metric reader(s)",
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.9.4-next.2](https://github.com/iotaledger/twin-node/compare/node-v0.9.4-next.1...node-v0.9.4-next.2) (2026-09-08)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **node:** Synchronize repo versions
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/node-core bumped from 0.9.4-next.1 to 0.9.4-next.2
16
+
3
17
  ## [0.9.4-next.1](https://github.com/iotaledger/twin-node/compare/node-v0.9.4-next.0...node-v0.9.4-next.1) (2026-09-07)
4
18
 
5
19
 
@@ -6986,7 +6986,7 @@
6986
6986
  "/telemetry/metric": {
6987
6987
  "post": {
6988
6988
  "operationId": "telemetryCreateMetric",
6989
- "summary": "Create a telemetry metric",
6989
+ "summary": "Create one or more telemetry metrics",
6990
6990
  "tags": [
6991
6991
  "Telemetry"
6992
6992
  ],
@@ -6996,12 +6996,12 @@
6996
6996
  }
6997
6997
  ],
6998
6998
  "requestBody": {
6999
- "description": "Create a new telemetry metric.",
6999
+ "description": "Create one or more telemetry metrics.",
7000
7000
  "required": true,
7001
7001
  "content": {
7002
7002
  "application/json": {
7003
7003
  "schema": {
7004
- "$ref": "#/components/schemas/TelemetryMetric"
7004
+ "$ref": "#/components/schemas/TelemetryCreateMetricRequest"
7005
7005
  },
7006
7006
  "examples": {
7007
7007
  "telemetryCreateMetricRequestExample": {
@@ -7010,8 +7010,24 @@
7010
7010
  "label": "My Counter",
7011
7011
  "description": "This is my counter",
7012
7012
  "type": 0,
7013
- "unit": "KG"
7013
+ "unit": "KG",
7014
+ "maxHistory": 1000
7014
7015
  }
7016
+ },
7017
+ "telemetryCreateMetricsRequestExample": {
7018
+ "value": [
7019
+ {
7020
+ "id": "my-counter",
7021
+ "label": "My Counter",
7022
+ "type": 0,
7023
+ "maxHistory": 1000
7024
+ },
7025
+ {
7026
+ "id": "my-gauge",
7027
+ "label": "My Gauge",
7028
+ "type": 2
7029
+ }
7030
+ ]
7015
7031
  }
7016
7032
  }
7017
7033
  }
@@ -24543,6 +24559,20 @@
24543
24559
  ],
24544
24560
  "description": "The data to be used in the update."
24545
24561
  },
24562
+ "TelemetryCreateMetricRequest": {
24563
+ "anyOf": [
24564
+ {
24565
+ "$ref": "#/components/schemas/TelemetryMetric"
24566
+ },
24567
+ {
24568
+ "type": "array",
24569
+ "items": {
24570
+ "$ref": "#/components/schemas/TelemetryMetric"
24571
+ }
24572
+ }
24573
+ ],
24574
+ "description": "The data to be used in the create. A single metric fails if it already exists; an array\ndeclares the set that should exist, creating the ones that are missing."
24575
+ },
24546
24576
  "TelemetryGetMetricResponse": {
24547
24577
  "type": "object",
24548
24578
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/node",
3
- "version": "0.9.4-next.1",
3
+ "version": "0.9.4-next.2",
4
4
  "description": "TWIN Node serving APIs using the specified configuration",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,7 +14,7 @@
14
14
  "node": ">=24.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/node-core": "0.9.4-next.1"
17
+ "@twin.org/node-core": "0.9.4-next.2"
18
18
  },
19
19
  "bugs": {
20
20
  "url": "git+https://github.com/iotaledger/twin-node/issues"