@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,661 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/did-management/registry/list/0.1/payload.schema.json
4
+ */
5
+ import type { Ext, ServiceInstance_DidManagementV0_2 as ServiceInstance, TransportObservation } from "../../../../_shared/components.js";
6
+ export interface RegistryListPayload {
7
+ /**
8
+ * Only instances of this type. Absent means every type.
9
+ */
10
+ serviceType?: "server" | "witness" | "watcher";
11
+ /**
12
+ * Only instances with this health verdict. Absent means every verdict.
13
+ */
14
+ status?: "active" | "degraded" | "unreachable";
15
+ ext?: Ext;
16
+ }
17
+ export interface RegistryListResponsePayload {
18
+ /**
19
+ * Every matching instance, ordered by `instanceId`. Empty when none matches.
20
+ */
21
+ instances: ServiceInstance[];
22
+ ext?: Ext;
23
+ }
24
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
25
+ export type { Ext, ServiceInstance, TransportObservation };
26
+ /** Trust Task type URI. */
27
+ export declare const TYPE_URI: "https://trusttasks.org/spec/did-management/registry/list/0.1";
28
+ /** Stable alias for this specification's request payload shape. */
29
+ export type Payload = RegistryListPayload;
30
+ /** Trust Task response type URI (request type URI + "#response"). */
31
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/did-management/registry/list/0.1#response";
32
+ /** Stable alias for this specification's success-response payload shape. */
33
+ export type Response = RegistryListResponsePayload;
34
+ /**
35
+ * This specification's payload schema, as a value.
36
+ *
37
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
38
+ * rather than only as a `.json` file because TypeScript types are erased
39
+ * at runtime: without a schema a consumer has nothing to validate, and
40
+ * every REQUIRED payload member is optional in practice. Cross-file
41
+ * `$ref`s are already inlined, so it needs no resolver.
42
+ */
43
+ export declare const PAYLOAD_SCHEMA: {
44
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
45
+ readonly $id: "https://trusttasks.org/spec/did-management/registry/list/0.1";
46
+ readonly title: "Registry List — payload";
47
+ readonly type: "object";
48
+ readonly additionalProperties: false;
49
+ readonly properties: {
50
+ readonly serviceType: {
51
+ readonly type: "string";
52
+ readonly enum: readonly ["server", "witness", "watcher"];
53
+ readonly description: "Only instances of this type. Absent means every type.";
54
+ };
55
+ readonly status: {
56
+ readonly type: "string";
57
+ readonly enum: readonly ["active", "degraded", "unreachable"];
58
+ readonly description: "Only instances with this health verdict. Absent means every verdict.";
59
+ };
60
+ readonly ext: {
61
+ readonly $ref: "#/$defs/Ext";
62
+ };
63
+ };
64
+ readonly $defs: {
65
+ readonly Response: {
66
+ readonly $anchor: "response";
67
+ readonly title: "Registry List — response payload";
68
+ readonly type: "object";
69
+ readonly additionalProperties: false;
70
+ readonly required: readonly ["instances"];
71
+ readonly properties: {
72
+ readonly instances: {
73
+ readonly type: "array";
74
+ readonly items: {
75
+ readonly $ref: "#/$defs/ServiceInstance";
76
+ };
77
+ readonly description: "Every matching instance, ordered by `instanceId`. Empty when none matches.";
78
+ };
79
+ readonly ext: {
80
+ readonly $ref: "#/$defs/Ext";
81
+ };
82
+ };
83
+ };
84
+ readonly Ext: {
85
+ readonly title: "Ext";
86
+ 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.";
87
+ readonly type: "object";
88
+ readonly minProperties: 1;
89
+ readonly additionalProperties: true;
90
+ readonly propertyNames: {
91
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
92
+ };
93
+ };
94
+ readonly ServiceInstance: {
95
+ readonly title: "ServiceInstance";
96
+ readonly type: "object";
97
+ readonly additionalProperties: false;
98
+ readonly required: readonly ["instanceId", "did", "serviceType", "status", "registeredAt", "servedDomains"];
99
+ readonly properties: {
100
+ readonly instanceId: {
101
+ readonly type: "string";
102
+ readonly minLength: 1;
103
+ readonly description: "Stable identifier the control plane uses for this instance. SHOULD be derived from the instance's DID so it survives restarts.";
104
+ };
105
+ readonly did: {
106
+ readonly type: "string";
107
+ readonly minLength: 1;
108
+ readonly description: "The instance's own DID — the identity its signed documents are verified against and the one the control plane addresses.";
109
+ };
110
+ readonly serviceType: {
111
+ readonly type: "string";
112
+ readonly enum: readonly ["server", "witness", "watcher"];
113
+ readonly description: "`server` — a hosting server (edge) that resolves DIDs the control plane syncs to it. `witness` — a did:webvh witness. `watcher` — a did:webvh watcher that mirrors logs.";
114
+ };
115
+ readonly label: {
116
+ readonly type: "string";
117
+ readonly maxLength: 256;
118
+ readonly description: "Operator-chosen display label. Untrusted free text.";
119
+ };
120
+ readonly publicUrl: {
121
+ readonly type: "string";
122
+ readonly format: "uri";
123
+ readonly description: "The instance's public base URL, where it serves DID resolution. Absent when the instance registered without one.";
124
+ };
125
+ readonly status: {
126
+ readonly type: "string";
127
+ readonly enum: readonly ["active", "degraded", "unreachable"];
128
+ readonly description: "The control plane's current verdict, from the instance's last answered health probe. `degraded` — answered late; `unreachable` — has not answered within the control plane's configured window.";
129
+ };
130
+ readonly servedDomains: {
131
+ readonly type: "array";
132
+ readonly items: {
133
+ readonly type: "string";
134
+ readonly minLength: 1;
135
+ };
136
+ readonly description: "Hosting domains the instance has acknowledged serving. Always present — empty for an instance that serves none, which includes every `witness` and `watcher`.";
137
+ };
138
+ readonly enabledMethods: {
139
+ readonly type: "array";
140
+ readonly items: {
141
+ readonly type: "string";
142
+ readonly minLength: 1;
143
+ };
144
+ readonly description: "DID methods the instance can host (e.g. `webvh`, `web`, `webs`), as it declared at registration.";
145
+ };
146
+ readonly advertisedServices: {
147
+ readonly type: "array";
148
+ readonly items: {
149
+ readonly type: "string";
150
+ readonly minLength: 1;
151
+ };
152
+ readonly description: "`service[].type` values of the instance's DID document when the control plane last resolved it. Display only: nothing is routed on it. Absent when the document has not been resolved.";
153
+ };
154
+ readonly servicesCheckedAt: {
155
+ readonly type: "string";
156
+ readonly format: "date-time";
157
+ readonly description: "When `advertisedServices` was last resolved. Absent with it.";
158
+ };
159
+ readonly lastInbound: {
160
+ readonly $ref: "#/$defs/TransportObservation";
161
+ readonly description: "The last document the control plane received from this instance. Absent when it has received none.";
162
+ };
163
+ readonly lastOutbound: {
164
+ readonly $ref: "#/$defs/TransportObservation";
165
+ readonly description: "The last document the control plane delivered to this instance. Absent when it has delivered none.";
166
+ };
167
+ readonly lastHealthCheck: {
168
+ readonly type: "string";
169
+ readonly format: "date-time";
170
+ readonly description: "When the instance last answered a health probe. Absent when it never has.";
171
+ };
172
+ readonly registeredAt: {
173
+ readonly type: "string";
174
+ readonly format: "date-time";
175
+ };
176
+ readonly ext: {
177
+ readonly $ref: "#/$defs/Ext";
178
+ };
179
+ };
180
+ };
181
+ readonly TransportObservation: {
182
+ readonly title: "TransportObservation";
183
+ readonly type: "object";
184
+ readonly additionalProperties: false;
185
+ readonly required: readonly ["transport", "at"];
186
+ readonly properties: {
187
+ readonly transport: {
188
+ readonly type: "string";
189
+ readonly enum: readonly ["tsp", "didcomm", "https"];
190
+ readonly description: "The binding the document actually travelled on.";
191
+ };
192
+ readonly at: {
193
+ readonly type: "string";
194
+ readonly format: "date-time";
195
+ };
196
+ };
197
+ };
198
+ };
199
+ };
200
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
201
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
202
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
203
+ readonly $ref: "#/$defs/Response";
204
+ readonly $defs: {
205
+ readonly Response: {
206
+ readonly $anchor: "response";
207
+ readonly title: "Registry List — response payload";
208
+ readonly type: "object";
209
+ readonly additionalProperties: false;
210
+ readonly required: readonly ["instances"];
211
+ readonly properties: {
212
+ readonly instances: {
213
+ readonly type: "array";
214
+ readonly items: {
215
+ readonly $ref: "#/$defs/ServiceInstance";
216
+ };
217
+ readonly description: "Every matching instance, ordered by `instanceId`. Empty when none matches.";
218
+ };
219
+ readonly ext: {
220
+ readonly $ref: "#/$defs/Ext";
221
+ };
222
+ };
223
+ };
224
+ readonly Ext: {
225
+ readonly title: "Ext";
226
+ 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.";
227
+ readonly type: "object";
228
+ readonly minProperties: 1;
229
+ readonly additionalProperties: true;
230
+ readonly propertyNames: {
231
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
232
+ };
233
+ };
234
+ readonly ServiceInstance: {
235
+ readonly title: "ServiceInstance";
236
+ readonly type: "object";
237
+ readonly additionalProperties: false;
238
+ readonly required: readonly ["instanceId", "did", "serviceType", "status", "registeredAt", "servedDomains"];
239
+ readonly properties: {
240
+ readonly instanceId: {
241
+ readonly type: "string";
242
+ readonly minLength: 1;
243
+ readonly description: "Stable identifier the control plane uses for this instance. SHOULD be derived from the instance's DID so it survives restarts.";
244
+ };
245
+ readonly did: {
246
+ readonly type: "string";
247
+ readonly minLength: 1;
248
+ readonly description: "The instance's own DID — the identity its signed documents are verified against and the one the control plane addresses.";
249
+ };
250
+ readonly serviceType: {
251
+ readonly type: "string";
252
+ readonly enum: readonly ["server", "witness", "watcher"];
253
+ readonly description: "`server` — a hosting server (edge) that resolves DIDs the control plane syncs to it. `witness` — a did:webvh witness. `watcher` — a did:webvh watcher that mirrors logs.";
254
+ };
255
+ readonly label: {
256
+ readonly type: "string";
257
+ readonly maxLength: 256;
258
+ readonly description: "Operator-chosen display label. Untrusted free text.";
259
+ };
260
+ readonly publicUrl: {
261
+ readonly type: "string";
262
+ readonly format: "uri";
263
+ readonly description: "The instance's public base URL, where it serves DID resolution. Absent when the instance registered without one.";
264
+ };
265
+ readonly status: {
266
+ readonly type: "string";
267
+ readonly enum: readonly ["active", "degraded", "unreachable"];
268
+ readonly description: "The control plane's current verdict, from the instance's last answered health probe. `degraded` — answered late; `unreachable` — has not answered within the control plane's configured window.";
269
+ };
270
+ readonly servedDomains: {
271
+ readonly type: "array";
272
+ readonly items: {
273
+ readonly type: "string";
274
+ readonly minLength: 1;
275
+ };
276
+ readonly description: "Hosting domains the instance has acknowledged serving. Always present — empty for an instance that serves none, which includes every `witness` and `watcher`.";
277
+ };
278
+ readonly enabledMethods: {
279
+ readonly type: "array";
280
+ readonly items: {
281
+ readonly type: "string";
282
+ readonly minLength: 1;
283
+ };
284
+ readonly description: "DID methods the instance can host (e.g. `webvh`, `web`, `webs`), as it declared at registration.";
285
+ };
286
+ readonly advertisedServices: {
287
+ readonly type: "array";
288
+ readonly items: {
289
+ readonly type: "string";
290
+ readonly minLength: 1;
291
+ };
292
+ readonly description: "`service[].type` values of the instance's DID document when the control plane last resolved it. Display only: nothing is routed on it. Absent when the document has not been resolved.";
293
+ };
294
+ readonly servicesCheckedAt: {
295
+ readonly type: "string";
296
+ readonly format: "date-time";
297
+ readonly description: "When `advertisedServices` was last resolved. Absent with it.";
298
+ };
299
+ readonly lastInbound: {
300
+ readonly $ref: "#/$defs/TransportObservation";
301
+ readonly description: "The last document the control plane received from this instance. Absent when it has received none.";
302
+ };
303
+ readonly lastOutbound: {
304
+ readonly $ref: "#/$defs/TransportObservation";
305
+ readonly description: "The last document the control plane delivered to this instance. Absent when it has delivered none.";
306
+ };
307
+ readonly lastHealthCheck: {
308
+ readonly type: "string";
309
+ readonly format: "date-time";
310
+ readonly description: "When the instance last answered a health probe. Absent when it never has.";
311
+ };
312
+ readonly registeredAt: {
313
+ readonly type: "string";
314
+ readonly format: "date-time";
315
+ };
316
+ readonly ext: {
317
+ readonly $ref: "#/$defs/Ext";
318
+ };
319
+ };
320
+ };
321
+ readonly TransportObservation: {
322
+ readonly title: "TransportObservation";
323
+ readonly type: "object";
324
+ readonly additionalProperties: false;
325
+ readonly required: readonly ["transport", "at"];
326
+ readonly properties: {
327
+ readonly transport: {
328
+ readonly type: "string";
329
+ readonly enum: readonly ["tsp", "didcomm", "https"];
330
+ readonly description: "The binding the document actually travelled on.";
331
+ };
332
+ readonly at: {
333
+ readonly type: "string";
334
+ readonly format: "date-time";
335
+ };
336
+ };
337
+ };
338
+ };
339
+ };
340
+ /**
341
+ * SPEC.md §7.2 policy for the request variant, from this specification's
342
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
343
+ * per-specification and cannot be derived from the document alone, and
344
+ * item 2 needs the schema this carries.
345
+ */
346
+ export declare const SPEC: {
347
+ readonly typeUri: "https://trusttasks.org/spec/did-management/registry/list/0.1";
348
+ readonly isBearer: false;
349
+ readonly isProofRequired: true;
350
+ readonly isRecipientRequired: true;
351
+ readonly isIssuedAtRequired: false;
352
+ readonly payloadSchema: {
353
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
354
+ readonly $id: "https://trusttasks.org/spec/did-management/registry/list/0.1";
355
+ readonly title: "Registry List — payload";
356
+ readonly type: "object";
357
+ readonly additionalProperties: false;
358
+ readonly properties: {
359
+ readonly serviceType: {
360
+ readonly type: "string";
361
+ readonly enum: readonly ["server", "witness", "watcher"];
362
+ readonly description: "Only instances of this type. Absent means every type.";
363
+ };
364
+ readonly status: {
365
+ readonly type: "string";
366
+ readonly enum: readonly ["active", "degraded", "unreachable"];
367
+ readonly description: "Only instances with this health verdict. Absent means every verdict.";
368
+ };
369
+ readonly ext: {
370
+ readonly $ref: "#/$defs/Ext";
371
+ };
372
+ };
373
+ readonly $defs: {
374
+ readonly Response: {
375
+ readonly $anchor: "response";
376
+ readonly title: "Registry List — response payload";
377
+ readonly type: "object";
378
+ readonly additionalProperties: false;
379
+ readonly required: readonly ["instances"];
380
+ readonly properties: {
381
+ readonly instances: {
382
+ readonly type: "array";
383
+ readonly items: {
384
+ readonly $ref: "#/$defs/ServiceInstance";
385
+ };
386
+ readonly description: "Every matching instance, ordered by `instanceId`. Empty when none matches.";
387
+ };
388
+ readonly ext: {
389
+ readonly $ref: "#/$defs/Ext";
390
+ };
391
+ };
392
+ };
393
+ readonly Ext: {
394
+ readonly title: "Ext";
395
+ 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.";
396
+ readonly type: "object";
397
+ readonly minProperties: 1;
398
+ readonly additionalProperties: true;
399
+ readonly propertyNames: {
400
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
401
+ };
402
+ };
403
+ readonly ServiceInstance: {
404
+ readonly title: "ServiceInstance";
405
+ readonly type: "object";
406
+ readonly additionalProperties: false;
407
+ readonly required: readonly ["instanceId", "did", "serviceType", "status", "registeredAt", "servedDomains"];
408
+ readonly properties: {
409
+ readonly instanceId: {
410
+ readonly type: "string";
411
+ readonly minLength: 1;
412
+ readonly description: "Stable identifier the control plane uses for this instance. SHOULD be derived from the instance's DID so it survives restarts.";
413
+ };
414
+ readonly did: {
415
+ readonly type: "string";
416
+ readonly minLength: 1;
417
+ readonly description: "The instance's own DID — the identity its signed documents are verified against and the one the control plane addresses.";
418
+ };
419
+ readonly serviceType: {
420
+ readonly type: "string";
421
+ readonly enum: readonly ["server", "witness", "watcher"];
422
+ readonly description: "`server` — a hosting server (edge) that resolves DIDs the control plane syncs to it. `witness` — a did:webvh witness. `watcher` — a did:webvh watcher that mirrors logs.";
423
+ };
424
+ readonly label: {
425
+ readonly type: "string";
426
+ readonly maxLength: 256;
427
+ readonly description: "Operator-chosen display label. Untrusted free text.";
428
+ };
429
+ readonly publicUrl: {
430
+ readonly type: "string";
431
+ readonly format: "uri";
432
+ readonly description: "The instance's public base URL, where it serves DID resolution. Absent when the instance registered without one.";
433
+ };
434
+ readonly status: {
435
+ readonly type: "string";
436
+ readonly enum: readonly ["active", "degraded", "unreachable"];
437
+ readonly description: "The control plane's current verdict, from the instance's last answered health probe. `degraded` — answered late; `unreachable` — has not answered within the control plane's configured window.";
438
+ };
439
+ readonly servedDomains: {
440
+ readonly type: "array";
441
+ readonly items: {
442
+ readonly type: "string";
443
+ readonly minLength: 1;
444
+ };
445
+ readonly description: "Hosting domains the instance has acknowledged serving. Always present — empty for an instance that serves none, which includes every `witness` and `watcher`.";
446
+ };
447
+ readonly enabledMethods: {
448
+ readonly type: "array";
449
+ readonly items: {
450
+ readonly type: "string";
451
+ readonly minLength: 1;
452
+ };
453
+ readonly description: "DID methods the instance can host (e.g. `webvh`, `web`, `webs`), as it declared at registration.";
454
+ };
455
+ readonly advertisedServices: {
456
+ readonly type: "array";
457
+ readonly items: {
458
+ readonly type: "string";
459
+ readonly minLength: 1;
460
+ };
461
+ readonly description: "`service[].type` values of the instance's DID document when the control plane last resolved it. Display only: nothing is routed on it. Absent when the document has not been resolved.";
462
+ };
463
+ readonly servicesCheckedAt: {
464
+ readonly type: "string";
465
+ readonly format: "date-time";
466
+ readonly description: "When `advertisedServices` was last resolved. Absent with it.";
467
+ };
468
+ readonly lastInbound: {
469
+ readonly $ref: "#/$defs/TransportObservation";
470
+ readonly description: "The last document the control plane received from this instance. Absent when it has received none.";
471
+ };
472
+ readonly lastOutbound: {
473
+ readonly $ref: "#/$defs/TransportObservation";
474
+ readonly description: "The last document the control plane delivered to this instance. Absent when it has delivered none.";
475
+ };
476
+ readonly lastHealthCheck: {
477
+ readonly type: "string";
478
+ readonly format: "date-time";
479
+ readonly description: "When the instance last answered a health probe. Absent when it never has.";
480
+ };
481
+ readonly registeredAt: {
482
+ readonly type: "string";
483
+ readonly format: "date-time";
484
+ };
485
+ readonly ext: {
486
+ readonly $ref: "#/$defs/Ext";
487
+ };
488
+ };
489
+ };
490
+ readonly TransportObservation: {
491
+ readonly title: "TransportObservation";
492
+ readonly type: "object";
493
+ readonly additionalProperties: false;
494
+ readonly required: readonly ["transport", "at"];
495
+ readonly properties: {
496
+ readonly transport: {
497
+ readonly type: "string";
498
+ readonly enum: readonly ["tsp", "didcomm", "https"];
499
+ readonly description: "The binding the document actually travelled on.";
500
+ };
501
+ readonly at: {
502
+ readonly type: "string";
503
+ readonly format: "date-time";
504
+ };
505
+ };
506
+ };
507
+ };
508
+ };
509
+ };
510
+ /**
511
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
512
+ * tracks the *issuer* party's requirement because a response swaps the
513
+ * parties (§7.3 item 5).
514
+ */
515
+ export declare const RESPONSE_SPEC: {
516
+ readonly typeUri: "https://trusttasks.org/spec/did-management/registry/list/0.1#response";
517
+ readonly isBearer: false;
518
+ readonly isProofRequired: true;
519
+ readonly isRecipientRequired: true;
520
+ readonly isIssuedAtRequired: false;
521
+ readonly payloadSchema: {
522
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
523
+ readonly $ref: "#/$defs/Response";
524
+ readonly $defs: {
525
+ readonly Response: {
526
+ readonly $anchor: "response";
527
+ readonly title: "Registry List — response payload";
528
+ readonly type: "object";
529
+ readonly additionalProperties: false;
530
+ readonly required: readonly ["instances"];
531
+ readonly properties: {
532
+ readonly instances: {
533
+ readonly type: "array";
534
+ readonly items: {
535
+ readonly $ref: "#/$defs/ServiceInstance";
536
+ };
537
+ readonly description: "Every matching instance, ordered by `instanceId`. Empty when none matches.";
538
+ };
539
+ readonly ext: {
540
+ readonly $ref: "#/$defs/Ext";
541
+ };
542
+ };
543
+ };
544
+ readonly Ext: {
545
+ readonly title: "Ext";
546
+ 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.";
547
+ readonly type: "object";
548
+ readonly minProperties: 1;
549
+ readonly additionalProperties: true;
550
+ readonly propertyNames: {
551
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
552
+ };
553
+ };
554
+ readonly ServiceInstance: {
555
+ readonly title: "ServiceInstance";
556
+ readonly type: "object";
557
+ readonly additionalProperties: false;
558
+ readonly required: readonly ["instanceId", "did", "serviceType", "status", "registeredAt", "servedDomains"];
559
+ readonly properties: {
560
+ readonly instanceId: {
561
+ readonly type: "string";
562
+ readonly minLength: 1;
563
+ readonly description: "Stable identifier the control plane uses for this instance. SHOULD be derived from the instance's DID so it survives restarts.";
564
+ };
565
+ readonly did: {
566
+ readonly type: "string";
567
+ readonly minLength: 1;
568
+ readonly description: "The instance's own DID — the identity its signed documents are verified against and the one the control plane addresses.";
569
+ };
570
+ readonly serviceType: {
571
+ readonly type: "string";
572
+ readonly enum: readonly ["server", "witness", "watcher"];
573
+ readonly description: "`server` — a hosting server (edge) that resolves DIDs the control plane syncs to it. `witness` — a did:webvh witness. `watcher` — a did:webvh watcher that mirrors logs.";
574
+ };
575
+ readonly label: {
576
+ readonly type: "string";
577
+ readonly maxLength: 256;
578
+ readonly description: "Operator-chosen display label. Untrusted free text.";
579
+ };
580
+ readonly publicUrl: {
581
+ readonly type: "string";
582
+ readonly format: "uri";
583
+ readonly description: "The instance's public base URL, where it serves DID resolution. Absent when the instance registered without one.";
584
+ };
585
+ readonly status: {
586
+ readonly type: "string";
587
+ readonly enum: readonly ["active", "degraded", "unreachable"];
588
+ readonly description: "The control plane's current verdict, from the instance's last answered health probe. `degraded` — answered late; `unreachable` — has not answered within the control plane's configured window.";
589
+ };
590
+ readonly servedDomains: {
591
+ readonly type: "array";
592
+ readonly items: {
593
+ readonly type: "string";
594
+ readonly minLength: 1;
595
+ };
596
+ readonly description: "Hosting domains the instance has acknowledged serving. Always present — empty for an instance that serves none, which includes every `witness` and `watcher`.";
597
+ };
598
+ readonly enabledMethods: {
599
+ readonly type: "array";
600
+ readonly items: {
601
+ readonly type: "string";
602
+ readonly minLength: 1;
603
+ };
604
+ readonly description: "DID methods the instance can host (e.g. `webvh`, `web`, `webs`), as it declared at registration.";
605
+ };
606
+ readonly advertisedServices: {
607
+ readonly type: "array";
608
+ readonly items: {
609
+ readonly type: "string";
610
+ readonly minLength: 1;
611
+ };
612
+ readonly description: "`service[].type` values of the instance's DID document when the control plane last resolved it. Display only: nothing is routed on it. Absent when the document has not been resolved.";
613
+ };
614
+ readonly servicesCheckedAt: {
615
+ readonly type: "string";
616
+ readonly format: "date-time";
617
+ readonly description: "When `advertisedServices` was last resolved. Absent with it.";
618
+ };
619
+ readonly lastInbound: {
620
+ readonly $ref: "#/$defs/TransportObservation";
621
+ readonly description: "The last document the control plane received from this instance. Absent when it has received none.";
622
+ };
623
+ readonly lastOutbound: {
624
+ readonly $ref: "#/$defs/TransportObservation";
625
+ readonly description: "The last document the control plane delivered to this instance. Absent when it has delivered none.";
626
+ };
627
+ readonly lastHealthCheck: {
628
+ readonly type: "string";
629
+ readonly format: "date-time";
630
+ readonly description: "When the instance last answered a health probe. Absent when it never has.";
631
+ };
632
+ readonly registeredAt: {
633
+ readonly type: "string";
634
+ readonly format: "date-time";
635
+ };
636
+ readonly ext: {
637
+ readonly $ref: "#/$defs/Ext";
638
+ };
639
+ };
640
+ };
641
+ readonly TransportObservation: {
642
+ readonly title: "TransportObservation";
643
+ readonly type: "object";
644
+ readonly additionalProperties: false;
645
+ readonly required: readonly ["transport", "at"];
646
+ readonly properties: {
647
+ readonly transport: {
648
+ readonly type: "string";
649
+ readonly enum: readonly ["tsp", "didcomm", "https"];
650
+ readonly description: "The binding the document actually travelled on.";
651
+ };
652
+ readonly at: {
653
+ readonly type: "string";
654
+ readonly format: "date-time";
655
+ };
656
+ };
657
+ };
658
+ };
659
+ };
660
+ };
661
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/did-management/registry/list/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,iCAAiC,IAAI,eAAe,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAGzI,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IAC/C;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,aAAa,CAAC;IAC/C,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,eAAe,EAAE,oBAAoB,EAAE,CAAC;AAE3D,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,8DAAuE,CAAC;AAEhG,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,mBAAmB,CAAC;AAE1C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,uEAAgF,CAAC;AAElH,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,2BAA2B,CAAC;AAEnD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4LjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkK1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}