@twin.org/immutable-proof-models 0.10.0 → 0.10.1-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.
@@ -24,6 +24,10 @@ export const ImmutableProofMetricIds = {
24
24
  /**
25
25
  * Number of notarizations removed.
26
26
  */
27
- NotarizationsRemoved: "ip_notarizations_removed"
27
+ NotarizationsRemoved: "ip_notarizations_removed",
28
+ /**
29
+ * Time in milliseconds from a proof being requested to its notarization completing.
30
+ */
31
+ ProofCompletionLag: "ip_proof_completion_lag"
28
32
  };
29
33
  //# sourceMappingURL=immutableProofMetricIds.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"immutableProofMetricIds.js","sourceRoot":"","sources":["../../../src/models/immutableProofMetricIds.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACtC;;OAEG;IACH,aAAa,EAAE,mBAAmB;IAElC;;OAEG;IACH,sBAAsB,EAAE,4BAA4B;IAEpD;;OAEG;IACH,mBAAmB,EAAE,yBAAyB;IAE9C;;OAEG;IACH,aAAa,EAAE,mBAAmB;IAElC;;OAEG;IACH,oBAAoB,EAAE,0BAA0B;CACvC,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Metric IDs for the immutable proof service.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ImmutableProofMetricIds = {\n\t/**\n\t * Number of proofs created.\n\t */\n\tProofsCreated: \"ip_proofs_created\",\n\n\t/**\n\t * Number of proof verifications succeeded.\n\t */\n\tVerificationsSucceeded: \"ip_verifications_succeeded\",\n\n\t/**\n\t * Number of proof verifications failed.\n\t */\n\tVerificationsFailed: \"ip_verifications_failed\",\n\n\t/**\n\t * Number of proofs removed.\n\t */\n\tProofsRemoved: \"ip_proofs_removed\",\n\n\t/**\n\t * Number of notarizations removed.\n\t */\n\tNotarizationsRemoved: \"ip_notarizations_removed\"\n} as const;\n\n/**\n * Union type of all immutable proof service metric ID string values.\n */\nexport type ImmutableProofMetricIds =\n\t(typeof ImmutableProofMetricIds)[keyof typeof ImmutableProofMetricIds];\n"]}
1
+ {"version":3,"file":"immutableProofMetricIds.js","sourceRoot":"","sources":["../../../src/models/immutableProofMetricIds.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACtC;;OAEG;IACH,aAAa,EAAE,mBAAmB;IAElC;;OAEG;IACH,sBAAsB,EAAE,4BAA4B;IAEpD;;OAEG;IACH,mBAAmB,EAAE,yBAAyB;IAE9C;;OAEG;IACH,aAAa,EAAE,mBAAmB;IAElC;;OAEG;IACH,oBAAoB,EAAE,0BAA0B;IAEhD;;OAEG;IACH,kBAAkB,EAAE,yBAAyB;CACpC,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Metric IDs for the immutable proof service.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ImmutableProofMetricIds = {\n\t/**\n\t * Number of proofs created.\n\t */\n\tProofsCreated: \"ip_proofs_created\",\n\n\t/**\n\t * Number of proof verifications succeeded.\n\t */\n\tVerificationsSucceeded: \"ip_verifications_succeeded\",\n\n\t/**\n\t * Number of proof verifications failed.\n\t */\n\tVerificationsFailed: \"ip_verifications_failed\",\n\n\t/**\n\t * Number of proofs removed.\n\t */\n\tProofsRemoved: \"ip_proofs_removed\",\n\n\t/**\n\t * Number of notarizations removed.\n\t */\n\tNotarizationsRemoved: \"ip_notarizations_removed\",\n\n\t/**\n\t * Time in milliseconds from a proof being requested to its notarization completing.\n\t */\n\tProofCompletionLag: \"ip_proof_completion_lag\"\n} as const;\n\n/**\n * Union type of all immutable proof service metric ID string values.\n */\nexport type ImmutableProofMetricIds =\n\t(typeof ImmutableProofMetricIds)[keyof typeof ImmutableProofMetricIds];\n"]}
@@ -31,6 +31,12 @@ export const ImmutableProofMetrics = [
31
31
  id: ImmutableProofMetricIds.NotarizationsRemoved,
32
32
  label: "Notarizations removed",
33
33
  type: MetricType.Counter
34
+ },
35
+ {
36
+ id: ImmutableProofMetricIds.ProofCompletionLag,
37
+ label: "Proof completion lag",
38
+ type: MetricType.Gauge,
39
+ unit: "ms"
34
40
  }
35
41
  ];
36
42
  //# sourceMappingURL=immutableProofMetrics.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"immutableProofMetrics.js","sourceRoot":"","sources":["../../../src/models/immutableProofMetrics.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAyB,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,qBAAqB,GAAuB;IACxD;QACC,EAAE,EAAE,uBAAuB,CAAC,aAAa;QACzC,KAAK,EAAE,gBAAgB;QACvB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,uBAAuB,CAAC,sBAAsB;QAClD,KAAK,EAAE,+BAA+B;QACtC,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,uBAAuB,CAAC,mBAAmB;QAC/C,KAAK,EAAE,4BAA4B;QACnC,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,uBAAuB,CAAC,aAAa;QACzC,KAAK,EAAE,gBAAgB;QACvB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,uBAAuB,CAAC,oBAAoB;QAChD,KAAK,EAAE,uBAAuB;QAC9B,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;CACD,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { type ITelemetryMetric, MetricType } from \"@twin.org/telemetry-models\";\nimport { ImmutableProofMetricIds } from \"./immutableProofMetricIds.js\";\n\n/**\n * Metrics registered by the immutable proof service.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ImmutableProofMetrics: ITelemetryMetric[] = [\n\t{\n\t\tid: ImmutableProofMetricIds.ProofsCreated,\n\t\tlabel: \"Proofs created\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: ImmutableProofMetricIds.VerificationsSucceeded,\n\t\tlabel: \"Proof verifications succeeded\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: ImmutableProofMetricIds.VerificationsFailed,\n\t\tlabel: \"Proof verifications failed\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: ImmutableProofMetricIds.ProofsRemoved,\n\t\tlabel: \"Proofs removed\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: ImmutableProofMetricIds.NotarizationsRemoved,\n\t\tlabel: \"Notarizations removed\",\n\t\ttype: MetricType.Counter\n\t}\n];\n"]}
1
+ {"version":3,"file":"immutableProofMetrics.js","sourceRoot":"","sources":["../../../src/models/immutableProofMetrics.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAyB,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,qBAAqB,GAAuB;IACxD;QACC,EAAE,EAAE,uBAAuB,CAAC,aAAa;QACzC,KAAK,EAAE,gBAAgB;QACvB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,uBAAuB,CAAC,sBAAsB;QAClD,KAAK,EAAE,+BAA+B;QACtC,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,uBAAuB,CAAC,mBAAmB;QAC/C,KAAK,EAAE,4BAA4B;QACnC,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,uBAAuB,CAAC,aAAa;QACzC,KAAK,EAAE,gBAAgB;QACvB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,uBAAuB,CAAC,oBAAoB;QAChD,KAAK,EAAE,uBAAuB;QAC9B,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,uBAAuB,CAAC,kBAAkB;QAC9C,KAAK,EAAE,sBAAsB;QAC7B,IAAI,EAAE,UAAU,CAAC,KAAK;QACtB,IAAI,EAAE,IAAI;KACV;CACD,CAAC","sourcesContent":["// Copyright 2026 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { type ITelemetryMetric, MetricType } from \"@twin.org/telemetry-models\";\nimport { ImmutableProofMetricIds } from \"./immutableProofMetricIds.js\";\n\n/**\n * Metrics registered by the immutable proof service.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const ImmutableProofMetrics: ITelemetryMetric[] = [\n\t{\n\t\tid: ImmutableProofMetricIds.ProofsCreated,\n\t\tlabel: \"Proofs created\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: ImmutableProofMetricIds.VerificationsSucceeded,\n\t\tlabel: \"Proof verifications succeeded\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: ImmutableProofMetricIds.VerificationsFailed,\n\t\tlabel: \"Proof verifications failed\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: ImmutableProofMetricIds.ProofsRemoved,\n\t\tlabel: \"Proofs removed\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: ImmutableProofMetricIds.NotarizationsRemoved,\n\t\tlabel: \"Notarizations removed\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: ImmutableProofMetricIds.ProofCompletionLag,\n\t\tlabel: \"Proof completion lag\",\n\t\ttype: MetricType.Gauge,\n\t\tunit: \"ms\"\n\t}\n];\n"]}
@@ -22,6 +22,10 @@ export declare const ImmutableProofMetricIds: {
22
22
  * Number of notarizations removed.
23
23
  */
24
24
  readonly NotarizationsRemoved: "ip_notarizations_removed";
25
+ /**
26
+ * Time in milliseconds from a proof being requested to its notarization completing.
27
+ */
28
+ readonly ProofCompletionLag: "ip_proof_completion_lag";
25
29
  };
26
30
  /**
27
31
  * Union type of all immutable proof service metric ID string values.
package/docs/changelog.md CHANGED
@@ -1,5 +1,49 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.10.1-next.2](https://github.com/iotaledger/twin-immutable-proof/compare/immutable-proof-models-v0.10.1-next.1...immutable-proof-models-v0.10.1-next.2) (2026-09-21)
4
+
5
+
6
+ ### Features
7
+
8
+ * add task worker count option and proof completion lag metric ([#127](https://github.com/iotaledger/twin-immutable-proof/issues/127)) ([806e58d](https://github.com/iotaledger/twin-immutable-proof/commit/806e58dd3ffc48a6104948a861b345695e91607c))
9
+
10
+ ## [0.10.1-next.1](https://github.com/iotaledger/twin-immutable-proof/compare/immutable-proof-models-v0.10.1-next.0...immutable-proof-models-v0.10.1-next.1) (2026-09-18)
11
+
12
+
13
+ ### Features
14
+
15
+ * add context id features ([#14](https://github.com/iotaledger/twin-immutable-proof/issues/14)) ([ed5a594](https://github.com/iotaledger/twin-immutable-proof/commit/ed5a594eaa7d50f74b1c09a7a560d48b33a4ecd1))
16
+ * add event-driven telemetry metrics ([#99](https://github.com/iotaledger/twin-immutable-proof/issues/99)) ([9ceb5dc](https://github.com/iotaledger/twin-immutable-proof/commit/9ceb5dcea75dcd239f5c551208c68d756ecf89a2))
17
+ * add missing proof type registration ([1e9f52b](https://github.com/iotaledger/twin-immutable-proof/commit/1e9f52b88ab201e97c9d2aa7611fb8f77a82d614))
18
+ * add ts-to-jsonld-context tool ([871191b](https://github.com/iotaledger/twin-immutable-proof/commit/871191b75cb82c2f6daaab08a71384ba92f02a64))
19
+ * add validate-locales ([d6a7c07](https://github.com/iotaledger/twin-immutable-proof/commit/d6a7c0794a1922981a42f56cc24724d7cee727f6))
20
+ * enhanced rest testing ([#64](https://github.com/iotaledger/twin-immutable-proof/issues/64)) ([5c389d6](https://github.com/iotaledger/twin-immutable-proof/commit/5c389d6da0292f6ceb3b23f5d1380fc9fb5c652c))
21
+ * eslint migration to flat config ([c8536f2](https://github.com/iotaledger/twin-immutable-proof/commit/c8536f219c7709c6c08b9266e537831f9054dda9))
22
+ * health provider ([#96](https://github.com/iotaledger/twin-immutable-proof/issues/96)) ([b01e203](https://github.com/iotaledger/twin-immutable-proof/commit/b01e203dd8cd65ee31580401b529feb67edfb90f))
23
+ * immutable proof as vc ([#31](https://github.com/iotaledger/twin-immutable-proof/issues/31)) ([79cdb03](https://github.com/iotaledger/twin-immutable-proof/commit/79cdb03eb86c4f6d2ab1d5bf235f74ff74e8b877))
24
+ * remove inline service tracing in favour of the tracing facade ([#113](https://github.com/iotaledger/twin-immutable-proof/issues/113)) ([3117a4e](https://github.com/iotaledger/twin-immutable-proof/commit/3117a4e78a74f077d5dc7facf4bb174ae76826b1))
25
+ * replace verifiable storage with notarization as immutable proof ([#41](https://github.com/iotaledger/twin-immutable-proof/issues/41)) ([54f2154](https://github.com/iotaledger/twin-immutable-proof/commit/54f215469b0bdc9ea94cad572ca13b8533144104))
26
+ * tracing ([#104](https://github.com/iotaledger/twin-immutable-proof/issues/104)) ([63069ac](https://github.com/iotaledger/twin-immutable-proof/commit/63069acf2813da477c0baf31b15ed52ce33129b1))
27
+ * typescript 6 update ([34d8aea](https://github.com/iotaledger/twin-immutable-proof/commit/34d8aea0ea0c1e1252de1882517abb1683d98313))
28
+ * update components ([b950a49](https://github.com/iotaledger/twin-immutable-proof/commit/b950a493c6da4c7e7a18e7c2f67a4f3f73ca4fe8))
29
+ * update contexts ([#22](https://github.com/iotaledger/twin-immutable-proof/issues/22)) ([645b880](https://github.com/iotaledger/twin-immutable-proof/commit/645b8803540408c74e3891b2c5ff9aefd5908d9f))
30
+ * update contexts and namespaces ([#20](https://github.com/iotaledger/twin-immutable-proof/issues/20)) ([d38aa69](https://github.com/iotaledger/twin-immutable-proof/commit/d38aa696c73e4fcc304f08fb458d5900109abcb4))
31
+ * update data types to use fully qualified names ([e94d0f5](https://github.com/iotaledger/twin-immutable-proof/commit/e94d0f5db93856b5b59cfd34e55252fa13a7f4e0))
32
+ * update dependencies ([1ec6b18](https://github.com/iotaledger/twin-immutable-proof/commit/1ec6b18e93198a8fc4935700863cdab1c3df7b64))
33
+ * update dependencies ([7d6b321](https://github.com/iotaledger/twin-immutable-proof/commit/7d6b321928ca0434ee530816b1440f1687b94a6e))
34
+ * update framework core ([e708d4d](https://github.com/iotaledger/twin-immutable-proof/commit/e708d4dd3febcfbcd64663d5be004eab1d26c0fb))
35
+ * update remove methods ([#45](https://github.com/iotaledger/twin-immutable-proof/issues/45)) ([9db19bb](https://github.com/iotaledger/twin-immutable-proof/commit/9db19bb4c8e6f5d66139755e8b8a8071a77c4887))
36
+ * update schemas ([ab0569a](https://github.com/iotaledger/twin-immutable-proof/commit/ab0569adf3419beefd8aef7793fdbe5b2fe2d93e))
37
+ * update ts-to-schema generation ([c4fc864](https://github.com/iotaledger/twin-immutable-proof/commit/c4fc8646e7b8ee040d356f7f0f3b2d6f4ac63e40))
38
+ * update twindev schemas ([d2bb94b](https://github.com/iotaledger/twin-immutable-proof/commit/d2bb94b31e61f899e41dbca1b1aeb2b3bb70b229))
39
+ * use shared store mechanism ([#3](https://github.com/iotaledger/twin-immutable-proof/issues/3)) ([7042a40](https://github.com/iotaledger/twin-immutable-proof/commit/7042a40f0ef8b01463f07aeb1efae4f417162fa1))
40
+
41
+
42
+ ### Bug Fixes
43
+
44
+ * Missing user and node identity on create ([#1](https://github.com/iotaledger/twin-immutable-proof/issues/1)) ([80ea2f9](https://github.com/iotaledger/twin-immutable-proof/commit/80ea2f901afc7531f4a522227a61e6fa1482484d))
45
+ * use async getStore in tests ([ec0b3b3](https://github.com/iotaledger/twin-immutable-proof/commit/ec0b3b38271fddf38a4b521cf871cc9cc01049f4))
46
+
3
47
  ## [0.10.0](https://github.com/iotaledger/twin-immutable-proof/compare/immutable-proof-models-v0.10.0...immutable-proof-models-v0.10.0) (2026-09-16)
4
48
 
5
49
 
@@ -35,3 +35,9 @@ Number of proofs removed.
35
35
  > `readonly` **NotarizationsRemoved**: `"ip_notarizations_removed"` = `"ip_notarizations_removed"`
36
36
 
37
37
  Number of notarizations removed.
38
+
39
+ ### ProofCompletionLag {#proofcompletionlag}
40
+
41
+ > `readonly` **ProofCompletionLag**: `"ip_proof_completion_lag"` = `"ip_proof_completion_lag"`
42
+
43
+ Time in milliseconds from a proof being requested to its notarization completing.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/immutable-proof-models",
3
- "version": "0.10.0",
3
+ "version": "0.10.1-next.2",
4
4
  "description": "Shared model contracts, schema types, and context constants for immutable proof workflows",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,14 +14,14 @@
14
14
  "node": ">=24.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/core": "^0.10.0",
18
- "@twin.org/data-core": "^0.10.0",
19
- "@twin.org/data-json-ld": "^0.10.0",
20
- "@twin.org/entity": "^0.10.0",
21
- "@twin.org/nameof": "^0.10.0",
22
- "@twin.org/standards-w3c-did": "^0.10.0",
23
- "@twin.org/telemetry-models": "^0.10.0",
24
- "@twin.org/web": "^0.10.0"
17
+ "@twin.org/core": "next",
18
+ "@twin.org/data-core": "next",
19
+ "@twin.org/data-json-ld": "next",
20
+ "@twin.org/entity": "next",
21
+ "@twin.org/nameof": "next",
22
+ "@twin.org/standards-w3c-did": "next",
23
+ "@twin.org/telemetry-models": "next",
24
+ "@twin.org/web": "next"
25
25
  },
26
26
  "main": "./dist/es/index.js",
27
27
  "types": "./dist/types/index.d.ts",