@openvtc/trust-tasks 0.21.4 → 0.21.5

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.
Files changed (192) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/_shared/components.d.ts +210 -2
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/auth/_shared/0.1/passkey-invite.d.ts +16 -0
  5. package/dist/auth/_shared/0.1/passkey-invite.d.ts.map +1 -0
  6. package/dist/auth/_shared/0.1/passkey-invite.js +6 -0
  7. package/dist/auth/_shared/0.1/passkey-invite.js.map +1 -0
  8. package/dist/auth/passkey/enroll/invite/list/0.1/payload.d.ts +393 -0
  9. package/dist/auth/passkey/enroll/invite/list/0.1/payload.d.ts.map +1 -0
  10. package/dist/auth/passkey/enroll/invite/list/0.1/payload.js +234 -0
  11. package/dist/auth/passkey/enroll/invite/list/0.1/payload.js.map +1 -0
  12. package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.d.ts +228 -0
  13. package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.d.ts.map +1 -0
  14. package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.js +138 -0
  15. package/dist/auth/passkey/enroll/invite/revoke/0.1/payload.js.map +1 -0
  16. package/dist/auth/passkey/enroll/invite/update/0.1/payload.d.ts +459 -0
  17. package/dist/auth/passkey/enroll/invite/update/0.1/payload.d.ts.map +1 -0
  18. package/dist/auth/passkey/enroll/invite/update/0.1/payload.js +286 -0
  19. package/dist/auth/passkey/enroll/invite/update/0.1/payload.js.map +1 -0
  20. package/dist/auth/step-up/start/0.1/payload.d.ts +420 -0
  21. package/dist/auth/step-up/start/0.1/payload.d.ts.map +1 -0
  22. package/dist/auth/step-up/start/0.1/payload.js +232 -0
  23. package/dist/auth/step-up/start/0.1/payload.js.map +1 -0
  24. package/dist/did-management/_shared/0.1/service-instance.d.ts +1 -1
  25. package/dist/did-management/_shared/0.1/service-instance.d.ts.map +1 -1
  26. package/dist/did-management/_shared/0.2/metrics-snapshot.d.ts +16 -0
  27. package/dist/did-management/_shared/0.2/metrics-snapshot.d.ts.map +1 -0
  28. package/dist/did-management/_shared/0.2/metrics-snapshot.js +6 -0
  29. package/dist/did-management/_shared/0.2/metrics-snapshot.js.map +1 -0
  30. package/dist/did-management/_shared/0.2/service-instance.d.ts +16 -0
  31. package/dist/did-management/_shared/0.2/service-instance.d.ts.map +1 -0
  32. package/dist/did-management/_shared/0.2/service-instance.js +6 -0
  33. package/dist/did-management/_shared/0.2/service-instance.js.map +1 -0
  34. package/dist/did-management/agent-name/resolve/0.1/payload.d.ts +318 -0
  35. package/dist/did-management/agent-name/resolve/0.1/payload.d.ts.map +1 -0
  36. package/dist/did-management/agent-name/resolve/0.1/payload.js +179 -0
  37. package/dist/did-management/agent-name/resolve/0.1/payload.js.map +1 -0
  38. package/dist/did-management/did/log/0.1/payload.d.ts +436 -0
  39. package/dist/did-management/did/log/0.1/payload.d.ts.map +1 -0
  40. package/dist/did-management/did/log/0.1/payload.js +228 -0
  41. package/dist/did-management/did/log/0.1/payload.js.map +1 -0
  42. package/dist/did-management/domain/list/0.1/payload.d.ts +423 -0
  43. package/dist/did-management/domain/list/0.1/payload.d.ts.map +1 -0
  44. package/dist/did-management/domain/list/0.1/payload.js +244 -0
  45. package/dist/did-management/domain/list/0.1/payload.js.map +1 -0
  46. package/dist/did-management/identity/list/0.1/payload.d.ts +494 -0
  47. package/dist/did-management/identity/list/0.1/payload.d.ts.map +1 -0
  48. package/dist/did-management/identity/list/0.1/payload.js +274 -0
  49. package/dist/did-management/identity/list/0.1/payload.js.map +1 -0
  50. package/dist/did-management/identity/retire/0.1/payload.d.ts +242 -0
  51. package/dist/did-management/identity/retire/0.1/payload.d.ts.map +1 -0
  52. package/dist/did-management/identity/retire/0.1/payload.js +142 -0
  53. package/dist/did-management/identity/retire/0.1/payload.js.map +1 -0
  54. package/dist/did-management/registry/admin-register/0.1/payload.d.ts +1 -1
  55. package/dist/did-management/registry/admin-register/0.1/payload.d.ts.map +1 -1
  56. package/dist/did-management/registry/check/0.1/payload.d.ts +639 -0
  57. package/dist/did-management/registry/check/0.1/payload.d.ts.map +1 -0
  58. package/dist/did-management/registry/check/0.1/payload.js +383 -0
  59. package/dist/did-management/registry/check/0.1/payload.js.map +1 -0
  60. package/dist/did-management/registry/get/0.1/payload.d.ts +632 -0
  61. package/dist/did-management/registry/get/0.1/payload.d.ts.map +1 -0
  62. package/dist/did-management/registry/get/0.1/payload.js +381 -0
  63. package/dist/did-management/registry/get/0.1/payload.js.map +1 -0
  64. package/dist/did-management/registry/list/0.1/payload.d.ts +661 -0
  65. package/dist/did-management/registry/list/0.1/payload.d.ts.map +1 -0
  66. package/dist/did-management/registry/list/0.1/payload.js +398 -0
  67. package/dist/did-management/registry/list/0.1/payload.js.map +1 -0
  68. package/dist/did-management/registry/purge-domain/0.1/payload.d.ts +269 -0
  69. package/dist/did-management/registry/purge-domain/0.1/payload.d.ts.map +1 -0
  70. package/dist/did-management/registry/purge-domain/0.1/payload.js +160 -0
  71. package/dist/did-management/registry/purge-domain/0.1/payload.js.map +1 -0
  72. package/dist/did-management/replica/domain/assign/0.1/payload.d.ts +233 -0
  73. package/dist/did-management/replica/domain/assign/0.1/payload.d.ts.map +1 -0
  74. package/dist/did-management/replica/domain/assign/0.1/payload.js +143 -0
  75. package/dist/did-management/replica/domain/assign/0.1/payload.js.map +1 -0
  76. package/dist/did-management/replica/domain/purge/0.1/payload.d.ts +257 -0
  77. package/dist/did-management/replica/domain/purge/0.1/payload.d.ts.map +1 -0
  78. package/dist/did-management/replica/domain/purge/0.1/payload.js +155 -0
  79. package/dist/did-management/replica/domain/purge/0.1/payload.js.map +1 -0
  80. package/dist/did-management/replica/domain/unassign/0.1/payload.d.ts +257 -0
  81. package/dist/did-management/replica/domain/unassign/0.1/payload.d.ts.map +1 -0
  82. package/dist/did-management/replica/domain/unassign/0.1/payload.js +155 -0
  83. package/dist/did-management/replica/domain/unassign/0.1/payload.js.map +1 -0
  84. package/dist/did-management/replica/domain/upsert/0.1/payload.d.ts +401 -0
  85. package/dist/did-management/replica/domain/upsert/0.1/payload.d.ts.map +1 -0
  86. package/dist/did-management/replica/domain/upsert/0.1/payload.js +241 -0
  87. package/dist/did-management/replica/domain/upsert/0.1/payload.js.map +1 -0
  88. package/dist/did-management/server/config/0.1/payload.d.ts +838 -0
  89. package/dist/did-management/server/config/0.1/payload.d.ts.map +1 -0
  90. package/dist/did-management/server/config/0.1/payload.js +444 -0
  91. package/dist/did-management/server/config/0.1/payload.js.map +1 -0
  92. package/dist/did-management/server/info/0.1/payload.d.ts +285 -0
  93. package/dist/did-management/server/info/0.1/payload.d.ts.map +1 -0
  94. package/dist/did-management/server/info/0.1/payload.js +160 -0
  95. package/dist/did-management/server/info/0.1/payload.js.map +1 -0
  96. package/dist/did-management/server/metrics/0.1/payload.d.ts +674 -0
  97. package/dist/did-management/server/metrics/0.1/payload.d.ts.map +1 -0
  98. package/dist/did-management/server/metrics/0.1/payload.js +387 -0
  99. package/dist/did-management/server/metrics/0.1/payload.js.map +1 -0
  100. package/dist/did-management/stats/get/0.1/payload.d.ts +349 -0
  101. package/dist/did-management/stats/get/0.1/payload.d.ts.map +1 -0
  102. package/dist/did-management/stats/get/0.1/payload.js +187 -0
  103. package/dist/did-management/stats/get/0.1/payload.js.map +1 -0
  104. package/dist/did-management/stats/timeseries/0.1/payload.d.ts +381 -0
  105. package/dist/did-management/stats/timeseries/0.1/payload.d.ts.map +1 -0
  106. package/dist/did-management/stats/timeseries/0.1/payload.js +227 -0
  107. package/dist/did-management/stats/timeseries/0.1/payload.js.map +1 -0
  108. package/dist/index.d.ts +34 -0
  109. package/dist/index.d.ts.map +1 -1
  110. package/dist/index.js +34 -0
  111. package/dist/index.js.map +1 -1
  112. package/dist/vtc/_shared/0.1/invite.d.ts +1 -1
  113. package/dist/vtc/_shared/0.1/invite.d.ts.map +1 -1
  114. package/dist/vtc/admin/invites/list/0.1/payload.d.ts +1 -1
  115. package/dist/vtc/admin/invites/list/0.1/payload.d.ts.map +1 -1
  116. package/dist/webvh/_shared/0.1/sync-update.d.ts +16 -0
  117. package/dist/webvh/_shared/0.1/sync-update.d.ts.map +1 -0
  118. package/dist/webvh/_shared/0.1/sync-update.js +6 -0
  119. package/dist/webvh/_shared/0.1/sync-update.js.map +1 -0
  120. package/dist/webvh/_shared/0.1/witness-key.d.ts +16 -0
  121. package/dist/webvh/_shared/0.1/witness-key.d.ts.map +1 -0
  122. package/dist/webvh/_shared/0.1/witness-key.js +6 -0
  123. package/dist/webvh/_shared/0.1/witness-key.js.map +1 -0
  124. package/dist/webvh/sync/batch/0.1/payload.d.ts +503 -0
  125. package/dist/webvh/sync/batch/0.1/payload.d.ts.map +1 -0
  126. package/dist/webvh/sync/batch/0.1/payload.js +290 -0
  127. package/dist/webvh/sync/batch/0.1/payload.js.map +1 -0
  128. package/dist/webvh/sync/delete/0.2/payload.d.ts +242 -0
  129. package/dist/webvh/sync/delete/0.2/payload.d.ts.map +1 -0
  130. package/dist/webvh/sync/delete/0.2/payload.js +148 -0
  131. package/dist/webvh/sync/delete/0.2/payload.js.map +1 -0
  132. package/dist/webvh/sync/update/0.2/payload.d.ts +315 -0
  133. package/dist/webvh/sync/update/0.2/payload.d.ts.map +1 -0
  134. package/dist/webvh/sync/update/0.2/payload.js +177 -0
  135. package/dist/webvh/sync/update/0.2/payload.js.map +1 -0
  136. package/dist/webvh/witness/key/create/0.1/payload.d.ts +346 -0
  137. package/dist/webvh/witness/key/create/0.1/payload.d.ts.map +1 -0
  138. package/dist/webvh/witness/key/create/0.1/payload.js +202 -0
  139. package/dist/webvh/witness/key/create/0.1/payload.js.map +1 -0
  140. package/dist/webvh/witness/key/delete/0.1/payload.d.ts +237 -0
  141. package/dist/webvh/witness/key/delete/0.1/payload.d.ts.map +1 -0
  142. package/dist/webvh/witness/key/delete/0.1/payload.js +141 -0
  143. package/dist/webvh/witness/key/delete/0.1/payload.js.map +1 -0
  144. package/dist/webvh/witness/key/list/0.1/payload.d.ts +349 -0
  145. package/dist/webvh/witness/key/list/0.1/payload.d.ts.map +1 -0
  146. package/dist/webvh/witness/key/list/0.1/payload.js +204 -0
  147. package/dist/webvh/witness/key/list/0.1/payload.js.map +1 -0
  148. package/dist/webvh/witness/sign/0.1/payload.d.ts +401 -0
  149. package/dist/webvh/witness/sign/0.1/payload.d.ts.map +1 -0
  150. package/dist/webvh/witness/sign/0.1/payload.js +229 -0
  151. package/dist/webvh/witness/sign/0.1/payload.js.map +1 -0
  152. package/package.json +1 -1
  153. package/src/_shared/components.ts +210 -2
  154. package/src/auth/_shared/0.1/passkey-invite.ts +17 -0
  155. package/src/auth/passkey/enroll/invite/list/0.1/payload.ts +266 -0
  156. package/src/auth/passkey/enroll/invite/revoke/0.1/payload.ts +165 -0
  157. package/src/auth/passkey/enroll/invite/update/0.1/payload.ts +327 -0
  158. package/src/auth/step-up/start/0.1/payload.ts +287 -0
  159. package/src/did-management/_shared/0.1/service-instance.ts +1 -1
  160. package/src/did-management/_shared/0.2/metrics-snapshot.ts +17 -0
  161. package/src/did-management/_shared/0.2/service-instance.ts +17 -0
  162. package/src/did-management/agent-name/resolve/0.1/payload.ts +222 -0
  163. package/src/did-management/did/log/0.1/payload.ts +295 -0
  164. package/src/did-management/domain/list/0.1/payload.ts +280 -0
  165. package/src/did-management/identity/list/0.1/payload.ts +335 -0
  166. package/src/did-management/identity/retire/0.1/payload.ts +175 -0
  167. package/src/did-management/registry/admin-register/0.1/payload.ts +1 -1
  168. package/src/did-management/registry/check/0.1/payload.ts +415 -0
  169. package/src/did-management/registry/get/0.1/payload.ts +410 -0
  170. package/src/did-management/registry/list/0.1/payload.ts +434 -0
  171. package/src/did-management/registry/purge-domain/0.1/payload.ts +198 -0
  172. package/src/did-management/replica/domain/assign/0.1/payload.ts +173 -0
  173. package/src/did-management/replica/domain/purge/0.1/payload.ts +189 -0
  174. package/src/did-management/replica/domain/unassign/0.1/payload.ts +189 -0
  175. package/src/did-management/replica/domain/upsert/0.1/payload.ts +271 -0
  176. package/src/did-management/server/config/0.1/payload.ts +545 -0
  177. package/src/did-management/server/info/0.1/payload.ts +200 -0
  178. package/src/did-management/server/metrics/0.1/payload.ts +418 -0
  179. package/src/did-management/stats/get/0.1/payload.ts +237 -0
  180. package/src/did-management/stats/timeseries/0.1/payload.ts +279 -0
  181. package/src/index.ts +34 -0
  182. package/src/vtc/_shared/0.1/invite.ts +1 -1
  183. package/src/vtc/admin/invites/list/0.1/payload.ts +1 -1
  184. package/src/webvh/_shared/0.1/sync-update.ts +17 -0
  185. package/src/webvh/_shared/0.1/witness-key.ts +17 -0
  186. package/src/webvh/sync/batch/0.1/payload.ts +336 -0
  187. package/src/webvh/sync/delete/0.2/payload.ts +181 -0
  188. package/src/webvh/sync/update/0.2/payload.ts +233 -0
  189. package/src/webvh/witness/key/create/0.1/payload.ts +231 -0
  190. package/src/webvh/witness/key/delete/0.1/payload.ts +171 -0
  191. package/src/webvh/witness/key/list/0.1/payload.ts +232 -0
  192. package/src/webvh/witness/sign/0.1/payload.ts +279 -0
@@ -0,0 +1,674 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/did-management/server/metrics/0.1/payload.schema.json
4
+ */
5
+ import type { Ext, Histogram, HistogramBucket, Metric, MetricsSnapshot } from "../../../../_shared/components.js";
6
+ /**
7
+ * The read takes no selector — the whole snapshot is returned. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface DIDManagementServerMetricsPayload {
10
+ ext?: Ext;
11
+ }
12
+ /**
13
+ * The service's current metrics snapshot. Carried in a Trust Task document whose type is https://trusttasks.org/spec/did-management/server/metrics/0.1#response.
14
+ */
15
+ export interface DIDManagementServerMetricsResponsePayload {
16
+ snapshot: MetricsSnapshot;
17
+ ext?: Ext;
18
+ }
19
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
20
+ export type { Ext, Histogram, HistogramBucket, Metric, MetricsSnapshot };
21
+ /** Trust Task type URI. */
22
+ export declare const TYPE_URI: "https://trusttasks.org/spec/did-management/server/metrics/0.1";
23
+ /** Stable alias for this specification's request payload shape. */
24
+ export type Payload = DIDManagementServerMetricsPayload;
25
+ /** Trust Task response type URI (request type URI + "#response"). */
26
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/did-management/server/metrics/0.1#response";
27
+ /** Stable alias for this specification's success-response payload shape. */
28
+ export type Response = DIDManagementServerMetricsResponsePayload;
29
+ /**
30
+ * This specification's payload schema, as a value.
31
+ *
32
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
33
+ * rather than only as a `.json` file because TypeScript types are erased
34
+ * at runtime: without a schema a consumer has nothing to validate, and
35
+ * every REQUIRED payload member is optional in practice. Cross-file
36
+ * `$ref`s are already inlined, so it needs no resolver.
37
+ */
38
+ export declare const PAYLOAD_SCHEMA: {
39
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
40
+ readonly $id: "https://trusttasks.org/spec/did-management/server/metrics/0.1";
41
+ readonly title: "DID Management — Server Metrics — payload";
42
+ readonly description: "The read takes no selector — the whole snapshot is returned. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
43
+ readonly type: "object";
44
+ readonly additionalProperties: false;
45
+ readonly properties: {
46
+ readonly ext: {
47
+ readonly $ref: "#/$defs/Ext";
48
+ };
49
+ };
50
+ readonly $defs: {
51
+ readonly Response: {
52
+ readonly $anchor: "response";
53
+ readonly title: "DID Management — Server Metrics — response payload";
54
+ readonly description: "The service's current metrics snapshot. Carried in a Trust Task document whose type is https://trusttasks.org/spec/did-management/server/metrics/0.1#response.";
55
+ readonly type: "object";
56
+ readonly additionalProperties: false;
57
+ readonly required: readonly ["snapshot"];
58
+ readonly properties: {
59
+ readonly snapshot: {
60
+ readonly $ref: "#/$defs/MetricsSnapshot";
61
+ };
62
+ readonly ext: {
63
+ readonly $ref: "#/$defs/Ext";
64
+ };
65
+ };
66
+ };
67
+ readonly Ext: {
68
+ readonly title: "Ext";
69
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
70
+ readonly type: "object";
71
+ readonly minProperties: 1;
72
+ readonly additionalProperties: true;
73
+ readonly propertyNames: {
74
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
75
+ };
76
+ };
77
+ readonly MetricsSnapshot: {
78
+ readonly title: "MetricsSnapshot";
79
+ readonly type: "object";
80
+ readonly additionalProperties: false;
81
+ readonly required: readonly ["takenAt", "counters", "gauges", "histograms"];
82
+ readonly properties: {
83
+ readonly takenAt: {
84
+ readonly type: "string";
85
+ readonly format: "date-time";
86
+ readonly description: "When the service read these values from its own instrumentation. Not the same as the envelope's issuedAt when a snapshot is cached briefly before answering.";
87
+ };
88
+ readonly counters: {
89
+ readonly type: "array";
90
+ readonly items: {
91
+ readonly $ref: "#/$defs/Metric";
92
+ };
93
+ readonly description: "Monotonically increasing totals (e.g. requests served, errors raised). Empty when the service exposes none. Always present, so a collector can tell \"no counters\" from \"the field was dropped\".";
94
+ };
95
+ readonly gauges: {
96
+ readonly type: "array";
97
+ readonly items: {
98
+ readonly $ref: "#/$defs/Metric";
99
+ };
100
+ readonly description: "Point-in-time values that can rise or fall (e.g. open connections, queue depth). Empty when the service exposes none. Always present, for the same reason as counters.";
101
+ };
102
+ readonly histograms: {
103
+ readonly type: "array";
104
+ readonly items: {
105
+ readonly $ref: "#/$defs/Histogram";
106
+ };
107
+ readonly description: "Distributions of observed values (e.g. request latency). Empty when the service exposes none. Always present, for the same reason as counters.";
108
+ };
109
+ readonly ext: {
110
+ readonly $ref: "#/$defs/Ext";
111
+ };
112
+ };
113
+ };
114
+ readonly Histogram: {
115
+ readonly title: "Histogram";
116
+ readonly description: "One histogram's distribution, in the Prometheus cumulative-bucket convention: each bucket's `count` includes every observation at or below its `le`.";
117
+ readonly type: "object";
118
+ readonly additionalProperties: false;
119
+ readonly required: readonly ["name", "count", "sum", "buckets"];
120
+ readonly properties: {
121
+ readonly name: {
122
+ readonly type: "string";
123
+ readonly minLength: 1;
124
+ readonly description: "The histogram's stable name (e.g. `did_hosting_resolve_seconds`).";
125
+ };
126
+ readonly labels: {
127
+ readonly type: "object";
128
+ readonly additionalProperties: {
129
+ readonly type: "string";
130
+ };
131
+ readonly description: "Dimensions the distribution is broken down by. Absent or empty when the histogram carries none.";
132
+ };
133
+ readonly count: {
134
+ readonly type: "integer";
135
+ readonly minimum: 0;
136
+ readonly description: "Total number of observations.";
137
+ };
138
+ readonly sum: {
139
+ readonly type: "number";
140
+ readonly description: "Sum of all observed values.";
141
+ };
142
+ readonly buckets: {
143
+ readonly type: "array";
144
+ readonly items: {
145
+ readonly $ref: "#/$defs/HistogramBucket";
146
+ };
147
+ readonly description: "Cumulative buckets, ordered by ascending `le`. Empty when the service exposes no bucket breakdown for this histogram — count and sum still apply. Always present, for the same reason as the snapshot's own arrays.";
148
+ };
149
+ };
150
+ };
151
+ readonly HistogramBucket: {
152
+ readonly title: "HistogramBucket";
153
+ readonly type: "object";
154
+ readonly additionalProperties: false;
155
+ readonly required: readonly ["le", "count"];
156
+ readonly properties: {
157
+ readonly le: {
158
+ readonly type: "number";
159
+ readonly description: "Upper bound of this bucket, inclusive. The final bucket conventionally reports the same value as the histogram's own `count` at whatever `le` the service treats as its ceiling.";
160
+ };
161
+ readonly count: {
162
+ readonly type: "integer";
163
+ readonly minimum: 0;
164
+ readonly description: "Number of observations at or below `le`.";
165
+ };
166
+ };
167
+ };
168
+ readonly Metric: {
169
+ readonly title: "Metric";
170
+ readonly description: "One counter or gauge reading.";
171
+ readonly type: "object";
172
+ readonly additionalProperties: false;
173
+ readonly required: readonly ["name", "value"];
174
+ readonly properties: {
175
+ readonly name: {
176
+ readonly type: "string";
177
+ readonly minLength: 1;
178
+ readonly description: "The metric's stable name (e.g. `did_hosting_requests_total`). Implementation-defined; the framework imposes no vocabulary.";
179
+ };
180
+ readonly value: {
181
+ readonly type: "number";
182
+ readonly description: "The current reading.";
183
+ };
184
+ readonly labels: {
185
+ readonly type: "object";
186
+ readonly additionalProperties: {
187
+ readonly type: "string";
188
+ };
189
+ readonly description: "Dimensions the value is broken down by (e.g. `{\"method\": \"resolve\"}`). Absent or empty when the metric carries none.";
190
+ };
191
+ };
192
+ };
193
+ };
194
+ };
195
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
196
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
197
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
198
+ readonly $ref: "#/$defs/Response";
199
+ readonly $defs: {
200
+ readonly Response: {
201
+ readonly $anchor: "response";
202
+ readonly title: "DID Management — Server Metrics — response payload";
203
+ readonly description: "The service's current metrics snapshot. Carried in a Trust Task document whose type is https://trusttasks.org/spec/did-management/server/metrics/0.1#response.";
204
+ readonly type: "object";
205
+ readonly additionalProperties: false;
206
+ readonly required: readonly ["snapshot"];
207
+ readonly properties: {
208
+ readonly snapshot: {
209
+ readonly $ref: "#/$defs/MetricsSnapshot";
210
+ };
211
+ readonly ext: {
212
+ readonly $ref: "#/$defs/Ext";
213
+ };
214
+ };
215
+ };
216
+ readonly Ext: {
217
+ readonly title: "Ext";
218
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
219
+ readonly type: "object";
220
+ readonly minProperties: 1;
221
+ readonly additionalProperties: true;
222
+ readonly propertyNames: {
223
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
224
+ };
225
+ };
226
+ readonly MetricsSnapshot: {
227
+ readonly title: "MetricsSnapshot";
228
+ readonly type: "object";
229
+ readonly additionalProperties: false;
230
+ readonly required: readonly ["takenAt", "counters", "gauges", "histograms"];
231
+ readonly properties: {
232
+ readonly takenAt: {
233
+ readonly type: "string";
234
+ readonly format: "date-time";
235
+ readonly description: "When the service read these values from its own instrumentation. Not the same as the envelope's issuedAt when a snapshot is cached briefly before answering.";
236
+ };
237
+ readonly counters: {
238
+ readonly type: "array";
239
+ readonly items: {
240
+ readonly $ref: "#/$defs/Metric";
241
+ };
242
+ readonly description: "Monotonically increasing totals (e.g. requests served, errors raised). Empty when the service exposes none. Always present, so a collector can tell \"no counters\" from \"the field was dropped\".";
243
+ };
244
+ readonly gauges: {
245
+ readonly type: "array";
246
+ readonly items: {
247
+ readonly $ref: "#/$defs/Metric";
248
+ };
249
+ readonly description: "Point-in-time values that can rise or fall (e.g. open connections, queue depth). Empty when the service exposes none. Always present, for the same reason as counters.";
250
+ };
251
+ readonly histograms: {
252
+ readonly type: "array";
253
+ readonly items: {
254
+ readonly $ref: "#/$defs/Histogram";
255
+ };
256
+ readonly description: "Distributions of observed values (e.g. request latency). Empty when the service exposes none. Always present, for the same reason as counters.";
257
+ };
258
+ readonly ext: {
259
+ readonly $ref: "#/$defs/Ext";
260
+ };
261
+ };
262
+ };
263
+ readonly Histogram: {
264
+ readonly title: "Histogram";
265
+ readonly description: "One histogram's distribution, in the Prometheus cumulative-bucket convention: each bucket's `count` includes every observation at or below its `le`.";
266
+ readonly type: "object";
267
+ readonly additionalProperties: false;
268
+ readonly required: readonly ["name", "count", "sum", "buckets"];
269
+ readonly properties: {
270
+ readonly name: {
271
+ readonly type: "string";
272
+ readonly minLength: 1;
273
+ readonly description: "The histogram's stable name (e.g. `did_hosting_resolve_seconds`).";
274
+ };
275
+ readonly labels: {
276
+ readonly type: "object";
277
+ readonly additionalProperties: {
278
+ readonly type: "string";
279
+ };
280
+ readonly description: "Dimensions the distribution is broken down by. Absent or empty when the histogram carries none.";
281
+ };
282
+ readonly count: {
283
+ readonly type: "integer";
284
+ readonly minimum: 0;
285
+ readonly description: "Total number of observations.";
286
+ };
287
+ readonly sum: {
288
+ readonly type: "number";
289
+ readonly description: "Sum of all observed values.";
290
+ };
291
+ readonly buckets: {
292
+ readonly type: "array";
293
+ readonly items: {
294
+ readonly $ref: "#/$defs/HistogramBucket";
295
+ };
296
+ readonly description: "Cumulative buckets, ordered by ascending `le`. Empty when the service exposes no bucket breakdown for this histogram — count and sum still apply. Always present, for the same reason as the snapshot's own arrays.";
297
+ };
298
+ };
299
+ };
300
+ readonly HistogramBucket: {
301
+ readonly title: "HistogramBucket";
302
+ readonly type: "object";
303
+ readonly additionalProperties: false;
304
+ readonly required: readonly ["le", "count"];
305
+ readonly properties: {
306
+ readonly le: {
307
+ readonly type: "number";
308
+ readonly description: "Upper bound of this bucket, inclusive. The final bucket conventionally reports the same value as the histogram's own `count` at whatever `le` the service treats as its ceiling.";
309
+ };
310
+ readonly count: {
311
+ readonly type: "integer";
312
+ readonly minimum: 0;
313
+ readonly description: "Number of observations at or below `le`.";
314
+ };
315
+ };
316
+ };
317
+ readonly Metric: {
318
+ readonly title: "Metric";
319
+ readonly description: "One counter or gauge reading.";
320
+ readonly type: "object";
321
+ readonly additionalProperties: false;
322
+ readonly required: readonly ["name", "value"];
323
+ readonly properties: {
324
+ readonly name: {
325
+ readonly type: "string";
326
+ readonly minLength: 1;
327
+ readonly description: "The metric's stable name (e.g. `did_hosting_requests_total`). Implementation-defined; the framework imposes no vocabulary.";
328
+ };
329
+ readonly value: {
330
+ readonly type: "number";
331
+ readonly description: "The current reading.";
332
+ };
333
+ readonly labels: {
334
+ readonly type: "object";
335
+ readonly additionalProperties: {
336
+ readonly type: "string";
337
+ };
338
+ readonly description: "Dimensions the value is broken down by (e.g. `{\"method\": \"resolve\"}`). Absent or empty when the metric carries none.";
339
+ };
340
+ };
341
+ };
342
+ };
343
+ };
344
+ /**
345
+ * SPEC.md §7.2 policy for the request variant, from this specification's
346
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
347
+ * per-specification and cannot be derived from the document alone, and
348
+ * item 2 needs the schema this carries.
349
+ */
350
+ export declare const SPEC: {
351
+ readonly typeUri: "https://trusttasks.org/spec/did-management/server/metrics/0.1";
352
+ readonly isBearer: false;
353
+ readonly isProofRequired: true;
354
+ readonly isRecipientRequired: true;
355
+ readonly isIssuedAtRequired: false;
356
+ readonly payloadSchema: {
357
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
358
+ readonly $id: "https://trusttasks.org/spec/did-management/server/metrics/0.1";
359
+ readonly title: "DID Management — Server Metrics — payload";
360
+ readonly description: "The read takes no selector — the whole snapshot is returned. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
361
+ readonly type: "object";
362
+ readonly additionalProperties: false;
363
+ readonly properties: {
364
+ readonly ext: {
365
+ readonly $ref: "#/$defs/Ext";
366
+ };
367
+ };
368
+ readonly $defs: {
369
+ readonly Response: {
370
+ readonly $anchor: "response";
371
+ readonly title: "DID Management — Server Metrics — response payload";
372
+ readonly description: "The service's current metrics snapshot. Carried in a Trust Task document whose type is https://trusttasks.org/spec/did-management/server/metrics/0.1#response.";
373
+ readonly type: "object";
374
+ readonly additionalProperties: false;
375
+ readonly required: readonly ["snapshot"];
376
+ readonly properties: {
377
+ readonly snapshot: {
378
+ readonly $ref: "#/$defs/MetricsSnapshot";
379
+ };
380
+ readonly ext: {
381
+ readonly $ref: "#/$defs/Ext";
382
+ };
383
+ };
384
+ };
385
+ readonly Ext: {
386
+ readonly title: "Ext";
387
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
388
+ readonly type: "object";
389
+ readonly minProperties: 1;
390
+ readonly additionalProperties: true;
391
+ readonly propertyNames: {
392
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
393
+ };
394
+ };
395
+ readonly MetricsSnapshot: {
396
+ readonly title: "MetricsSnapshot";
397
+ readonly type: "object";
398
+ readonly additionalProperties: false;
399
+ readonly required: readonly ["takenAt", "counters", "gauges", "histograms"];
400
+ readonly properties: {
401
+ readonly takenAt: {
402
+ readonly type: "string";
403
+ readonly format: "date-time";
404
+ readonly description: "When the service read these values from its own instrumentation. Not the same as the envelope's issuedAt when a snapshot is cached briefly before answering.";
405
+ };
406
+ readonly counters: {
407
+ readonly type: "array";
408
+ readonly items: {
409
+ readonly $ref: "#/$defs/Metric";
410
+ };
411
+ readonly description: "Monotonically increasing totals (e.g. requests served, errors raised). Empty when the service exposes none. Always present, so a collector can tell \"no counters\" from \"the field was dropped\".";
412
+ };
413
+ readonly gauges: {
414
+ readonly type: "array";
415
+ readonly items: {
416
+ readonly $ref: "#/$defs/Metric";
417
+ };
418
+ readonly description: "Point-in-time values that can rise or fall (e.g. open connections, queue depth). Empty when the service exposes none. Always present, for the same reason as counters.";
419
+ };
420
+ readonly histograms: {
421
+ readonly type: "array";
422
+ readonly items: {
423
+ readonly $ref: "#/$defs/Histogram";
424
+ };
425
+ readonly description: "Distributions of observed values (e.g. request latency). Empty when the service exposes none. Always present, for the same reason as counters.";
426
+ };
427
+ readonly ext: {
428
+ readonly $ref: "#/$defs/Ext";
429
+ };
430
+ };
431
+ };
432
+ readonly Histogram: {
433
+ readonly title: "Histogram";
434
+ readonly description: "One histogram's distribution, in the Prometheus cumulative-bucket convention: each bucket's `count` includes every observation at or below its `le`.";
435
+ readonly type: "object";
436
+ readonly additionalProperties: false;
437
+ readonly required: readonly ["name", "count", "sum", "buckets"];
438
+ readonly properties: {
439
+ readonly name: {
440
+ readonly type: "string";
441
+ readonly minLength: 1;
442
+ readonly description: "The histogram's stable name (e.g. `did_hosting_resolve_seconds`).";
443
+ };
444
+ readonly labels: {
445
+ readonly type: "object";
446
+ readonly additionalProperties: {
447
+ readonly type: "string";
448
+ };
449
+ readonly description: "Dimensions the distribution is broken down by. Absent or empty when the histogram carries none.";
450
+ };
451
+ readonly count: {
452
+ readonly type: "integer";
453
+ readonly minimum: 0;
454
+ readonly description: "Total number of observations.";
455
+ };
456
+ readonly sum: {
457
+ readonly type: "number";
458
+ readonly description: "Sum of all observed values.";
459
+ };
460
+ readonly buckets: {
461
+ readonly type: "array";
462
+ readonly items: {
463
+ readonly $ref: "#/$defs/HistogramBucket";
464
+ };
465
+ readonly description: "Cumulative buckets, ordered by ascending `le`. Empty when the service exposes no bucket breakdown for this histogram — count and sum still apply. Always present, for the same reason as the snapshot's own arrays.";
466
+ };
467
+ };
468
+ };
469
+ readonly HistogramBucket: {
470
+ readonly title: "HistogramBucket";
471
+ readonly type: "object";
472
+ readonly additionalProperties: false;
473
+ readonly required: readonly ["le", "count"];
474
+ readonly properties: {
475
+ readonly le: {
476
+ readonly type: "number";
477
+ readonly description: "Upper bound of this bucket, inclusive. The final bucket conventionally reports the same value as the histogram's own `count` at whatever `le` the service treats as its ceiling.";
478
+ };
479
+ readonly count: {
480
+ readonly type: "integer";
481
+ readonly minimum: 0;
482
+ readonly description: "Number of observations at or below `le`.";
483
+ };
484
+ };
485
+ };
486
+ readonly Metric: {
487
+ readonly title: "Metric";
488
+ readonly description: "One counter or gauge reading.";
489
+ readonly type: "object";
490
+ readonly additionalProperties: false;
491
+ readonly required: readonly ["name", "value"];
492
+ readonly properties: {
493
+ readonly name: {
494
+ readonly type: "string";
495
+ readonly minLength: 1;
496
+ readonly description: "The metric's stable name (e.g. `did_hosting_requests_total`). Implementation-defined; the framework imposes no vocabulary.";
497
+ };
498
+ readonly value: {
499
+ readonly type: "number";
500
+ readonly description: "The current reading.";
501
+ };
502
+ readonly labels: {
503
+ readonly type: "object";
504
+ readonly additionalProperties: {
505
+ readonly type: "string";
506
+ };
507
+ readonly description: "Dimensions the value is broken down by (e.g. `{\"method\": \"resolve\"}`). Absent or empty when the metric carries none.";
508
+ };
509
+ };
510
+ };
511
+ };
512
+ };
513
+ };
514
+ /**
515
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
516
+ * tracks the *issuer* party's requirement because a response swaps the
517
+ * parties (§7.3 item 5).
518
+ */
519
+ export declare const RESPONSE_SPEC: {
520
+ readonly typeUri: "https://trusttasks.org/spec/did-management/server/metrics/0.1#response";
521
+ readonly isBearer: false;
522
+ readonly isProofRequired: true;
523
+ readonly isRecipientRequired: true;
524
+ readonly isIssuedAtRequired: false;
525
+ readonly payloadSchema: {
526
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
527
+ readonly $ref: "#/$defs/Response";
528
+ readonly $defs: {
529
+ readonly Response: {
530
+ readonly $anchor: "response";
531
+ readonly title: "DID Management — Server Metrics — response payload";
532
+ readonly description: "The service's current metrics snapshot. Carried in a Trust Task document whose type is https://trusttasks.org/spec/did-management/server/metrics/0.1#response.";
533
+ readonly type: "object";
534
+ readonly additionalProperties: false;
535
+ readonly required: readonly ["snapshot"];
536
+ readonly properties: {
537
+ readonly snapshot: {
538
+ readonly $ref: "#/$defs/MetricsSnapshot";
539
+ };
540
+ readonly ext: {
541
+ readonly $ref: "#/$defs/Ext";
542
+ };
543
+ };
544
+ };
545
+ readonly Ext: {
546
+ readonly title: "Ext";
547
+ readonly description: "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.";
548
+ readonly type: "object";
549
+ readonly minProperties: 1;
550
+ readonly additionalProperties: true;
551
+ readonly propertyNames: {
552
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
553
+ };
554
+ };
555
+ readonly MetricsSnapshot: {
556
+ readonly title: "MetricsSnapshot";
557
+ readonly type: "object";
558
+ readonly additionalProperties: false;
559
+ readonly required: readonly ["takenAt", "counters", "gauges", "histograms"];
560
+ readonly properties: {
561
+ readonly takenAt: {
562
+ readonly type: "string";
563
+ readonly format: "date-time";
564
+ readonly description: "When the service read these values from its own instrumentation. Not the same as the envelope's issuedAt when a snapshot is cached briefly before answering.";
565
+ };
566
+ readonly counters: {
567
+ readonly type: "array";
568
+ readonly items: {
569
+ readonly $ref: "#/$defs/Metric";
570
+ };
571
+ readonly description: "Monotonically increasing totals (e.g. requests served, errors raised). Empty when the service exposes none. Always present, so a collector can tell \"no counters\" from \"the field was dropped\".";
572
+ };
573
+ readonly gauges: {
574
+ readonly type: "array";
575
+ readonly items: {
576
+ readonly $ref: "#/$defs/Metric";
577
+ };
578
+ readonly description: "Point-in-time values that can rise or fall (e.g. open connections, queue depth). Empty when the service exposes none. Always present, for the same reason as counters.";
579
+ };
580
+ readonly histograms: {
581
+ readonly type: "array";
582
+ readonly items: {
583
+ readonly $ref: "#/$defs/Histogram";
584
+ };
585
+ readonly description: "Distributions of observed values (e.g. request latency). Empty when the service exposes none. Always present, for the same reason as counters.";
586
+ };
587
+ readonly ext: {
588
+ readonly $ref: "#/$defs/Ext";
589
+ };
590
+ };
591
+ };
592
+ readonly Histogram: {
593
+ readonly title: "Histogram";
594
+ readonly description: "One histogram's distribution, in the Prometheus cumulative-bucket convention: each bucket's `count` includes every observation at or below its `le`.";
595
+ readonly type: "object";
596
+ readonly additionalProperties: false;
597
+ readonly required: readonly ["name", "count", "sum", "buckets"];
598
+ readonly properties: {
599
+ readonly name: {
600
+ readonly type: "string";
601
+ readonly minLength: 1;
602
+ readonly description: "The histogram's stable name (e.g. `did_hosting_resolve_seconds`).";
603
+ };
604
+ readonly labels: {
605
+ readonly type: "object";
606
+ readonly additionalProperties: {
607
+ readonly type: "string";
608
+ };
609
+ readonly description: "Dimensions the distribution is broken down by. Absent or empty when the histogram carries none.";
610
+ };
611
+ readonly count: {
612
+ readonly type: "integer";
613
+ readonly minimum: 0;
614
+ readonly description: "Total number of observations.";
615
+ };
616
+ readonly sum: {
617
+ readonly type: "number";
618
+ readonly description: "Sum of all observed values.";
619
+ };
620
+ readonly buckets: {
621
+ readonly type: "array";
622
+ readonly items: {
623
+ readonly $ref: "#/$defs/HistogramBucket";
624
+ };
625
+ readonly description: "Cumulative buckets, ordered by ascending `le`. Empty when the service exposes no bucket breakdown for this histogram — count and sum still apply. Always present, for the same reason as the snapshot's own arrays.";
626
+ };
627
+ };
628
+ };
629
+ readonly HistogramBucket: {
630
+ readonly title: "HistogramBucket";
631
+ readonly type: "object";
632
+ readonly additionalProperties: false;
633
+ readonly required: readonly ["le", "count"];
634
+ readonly properties: {
635
+ readonly le: {
636
+ readonly type: "number";
637
+ readonly description: "Upper bound of this bucket, inclusive. The final bucket conventionally reports the same value as the histogram's own `count` at whatever `le` the service treats as its ceiling.";
638
+ };
639
+ readonly count: {
640
+ readonly type: "integer";
641
+ readonly minimum: 0;
642
+ readonly description: "Number of observations at or below `le`.";
643
+ };
644
+ };
645
+ };
646
+ readonly Metric: {
647
+ readonly title: "Metric";
648
+ readonly description: "One counter or gauge reading.";
649
+ readonly type: "object";
650
+ readonly additionalProperties: false;
651
+ readonly required: readonly ["name", "value"];
652
+ readonly properties: {
653
+ readonly name: {
654
+ readonly type: "string";
655
+ readonly minLength: 1;
656
+ readonly description: "The metric's stable name (e.g. `did_hosting_requests_total`). Implementation-defined; the framework imposes no vocabulary.";
657
+ };
658
+ readonly value: {
659
+ readonly type: "number";
660
+ readonly description: "The current reading.";
661
+ };
662
+ readonly labels: {
663
+ readonly type: "object";
664
+ readonly additionalProperties: {
665
+ readonly type: "string";
666
+ };
667
+ readonly description: "Dimensions the value is broken down by (e.g. `{\"method\": \"resolve\"}`). Absent or empty when the metric carries none.";
668
+ };
669
+ };
670
+ };
671
+ };
672
+ };
673
+ };
674
+ //# sourceMappingURL=payload.d.ts.map