@twin.org/immutable-proof-models 0.10.1-next.1 → 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,12 @@
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
+
3
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)
4
11
 
5
12
 
@@ -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.1-next.1",
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",