@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,295 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/did-management/did/log/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext } from "../../../../_shared/components.js";
7
+
8
+
9
+ export interface DIDLogPayload {
10
+ mnemonic: string;
11
+ /**
12
+ * Disambiguates `mnemonic` per the category conventions. Absent means the domain is resolved by the category's chain.
13
+ */
14
+ domain?: string;
15
+ /**
16
+ * When true, the response also carries the stored artifacts verbatim. Absent or false means parsed entries only.
17
+ */
18
+ raw?: boolean;
19
+ ext?: Ext;
20
+ }
21
+ export interface DIDLogResponsePayload {
22
+ mnemonic: string;
23
+ /**
24
+ * The slot's DID method (`webvh`, `web`, `webs`, …). Determines what an entry is.
25
+ */
26
+ method: string;
27
+ /**
28
+ * The slot's history, oldest first. For did:webvh, one per log line; for a method with no log (did:web) a single entry for the current document; for did:webs one per establishment event that changed the document.
29
+ */
30
+ entries: {
31
+ /**
32
+ * The entry's version identifier. Absent for a method that has none.
33
+ */
34
+ versionId?: string;
35
+ /**
36
+ * When the entry was made, as the entry states it. Absent for a method that records none.
37
+ */
38
+ versionTime?: string;
39
+ /**
40
+ * The DID document as of this entry.
41
+ */
42
+ state: {};
43
+ /**
44
+ * The method's parameters as of this entry (did:webvh log parameters). Absent for a method that has none.
45
+ */
46
+ parameters?: {};
47
+ }[];
48
+ /**
49
+ * The stored primary artifact verbatim — did.jsonl for did:webvh, the key event stream for did:webs, did.json for did:web. Present iff the request set raw: true.
50
+ */
51
+ logContent?: string;
52
+ /**
53
+ * The stored did-witness.json verbatim. Present iff the request set raw: true and the slot holds witness proofs.
54
+ */
55
+ witnessContent?: string;
56
+ ext?: Ext;
57
+ }
58
+
59
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
60
+ export type { Ext };
61
+
62
+ /** Trust Task type URI. */
63
+ export const TYPE_URI = "https://trusttasks.org/spec/did-management/did/log/0.1" as const;
64
+
65
+ /** Stable alias for this specification's request payload shape. */
66
+ export type Payload = DIDLogPayload;
67
+
68
+ /** Trust Task response type URI (request type URI + "#response"). */
69
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/did-management/did/log/0.1#response" as const;
70
+
71
+ /** Stable alias for this specification's success-response payload shape. */
72
+ export type Response = DIDLogResponsePayload;
73
+
74
+ /**
75
+ * This specification's payload schema, as a value.
76
+ *
77
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
78
+ * rather than only as a `.json` file because TypeScript types are erased
79
+ * at runtime: without a schema a consumer has nothing to validate, and
80
+ * every REQUIRED payload member is optional in practice. Cross-file
81
+ * `$ref`s are already inlined, so it needs no resolver.
82
+ */
83
+ export const PAYLOAD_SCHEMA = {
84
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
85
+ "$id": "https://trusttasks.org/spec/did-management/did/log/0.1",
86
+ "title": "DID Log — payload",
87
+ "type": "object",
88
+ "additionalProperties": false,
89
+ "required": [
90
+ "mnemonic"
91
+ ],
92
+ "properties": {
93
+ "mnemonic": {
94
+ "type": "string",
95
+ "minLength": 1,
96
+ "maxLength": 512
97
+ },
98
+ "domain": {
99
+ "type": "string",
100
+ "minLength": 1,
101
+ "maxLength": 253,
102
+ "description": "Disambiguates `mnemonic` per the category conventions. Absent means the domain is resolved by the category's chain."
103
+ },
104
+ "raw": {
105
+ "type": "boolean",
106
+ "description": "When true, the response also carries the stored artifacts verbatim. Absent or false means parsed entries only."
107
+ },
108
+ "ext": {
109
+ "$ref": "#/$defs/Ext"
110
+ }
111
+ },
112
+ "$defs": {
113
+ "Response": {
114
+ "$anchor": "response",
115
+ "title": "DID Log — response payload",
116
+ "type": "object",
117
+ "additionalProperties": false,
118
+ "required": [
119
+ "mnemonic",
120
+ "method",
121
+ "entries"
122
+ ],
123
+ "properties": {
124
+ "mnemonic": {
125
+ "type": "string"
126
+ },
127
+ "method": {
128
+ "type": "string",
129
+ "minLength": 1,
130
+ "description": "The slot's DID method (`webvh`, `web`, `webs`, …). Determines what an entry is."
131
+ },
132
+ "entries": {
133
+ "type": "array",
134
+ "description": "The slot's history, oldest first. For did:webvh, one per log line; for a method with no log (did:web) a single entry for the current document; for did:webs one per establishment event that changed the document.",
135
+ "items": {
136
+ "type": "object",
137
+ "additionalProperties": false,
138
+ "required": [
139
+ "state"
140
+ ],
141
+ "properties": {
142
+ "versionId": {
143
+ "type": "string",
144
+ "description": "The entry's version identifier. Absent for a method that has none."
145
+ },
146
+ "versionTime": {
147
+ "type": "string",
148
+ "format": "date-time",
149
+ "description": "When the entry was made, as the entry states it. Absent for a method that records none."
150
+ },
151
+ "state": {
152
+ "type": "object",
153
+ "description": "The DID document as of this entry."
154
+ },
155
+ "parameters": {
156
+ "type": "object",
157
+ "description": "The method's parameters as of this entry (did:webvh log parameters). Absent for a method that has none."
158
+ }
159
+ }
160
+ }
161
+ },
162
+ "logContent": {
163
+ "type": "string",
164
+ "description": "The stored primary artifact verbatim — did.jsonl for did:webvh, the key event stream for did:webs, did.json for did:web. Present iff the request set raw: true."
165
+ },
166
+ "witnessContent": {
167
+ "type": "string",
168
+ "description": "The stored did-witness.json verbatim. Present iff the request set raw: true and the slot holds witness proofs."
169
+ },
170
+ "ext": {
171
+ "$ref": "#/$defs/Ext"
172
+ }
173
+ }
174
+ },
175
+ "Ext": {
176
+ "title": "Ext",
177
+ "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.",
178
+ "type": "object",
179
+ "minProperties": 1,
180
+ "additionalProperties": true,
181
+ "propertyNames": {
182
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
183
+ }
184
+ }
185
+ }
186
+ } as const;
187
+
188
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
189
+ export const RESPONSE_PAYLOAD_SCHEMA = {
190
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
191
+ "$ref": "#/$defs/Response",
192
+ "$defs": {
193
+ "Response": {
194
+ "$anchor": "response",
195
+ "title": "DID Log — response payload",
196
+ "type": "object",
197
+ "additionalProperties": false,
198
+ "required": [
199
+ "mnemonic",
200
+ "method",
201
+ "entries"
202
+ ],
203
+ "properties": {
204
+ "mnemonic": {
205
+ "type": "string"
206
+ },
207
+ "method": {
208
+ "type": "string",
209
+ "minLength": 1,
210
+ "description": "The slot's DID method (`webvh`, `web`, `webs`, …). Determines what an entry is."
211
+ },
212
+ "entries": {
213
+ "type": "array",
214
+ "description": "The slot's history, oldest first. For did:webvh, one per log line; for a method with no log (did:web) a single entry for the current document; for did:webs one per establishment event that changed the document.",
215
+ "items": {
216
+ "type": "object",
217
+ "additionalProperties": false,
218
+ "required": [
219
+ "state"
220
+ ],
221
+ "properties": {
222
+ "versionId": {
223
+ "type": "string",
224
+ "description": "The entry's version identifier. Absent for a method that has none."
225
+ },
226
+ "versionTime": {
227
+ "type": "string",
228
+ "format": "date-time",
229
+ "description": "When the entry was made, as the entry states it. Absent for a method that records none."
230
+ },
231
+ "state": {
232
+ "type": "object",
233
+ "description": "The DID document as of this entry."
234
+ },
235
+ "parameters": {
236
+ "type": "object",
237
+ "description": "The method's parameters as of this entry (did:webvh log parameters). Absent for a method that has none."
238
+ }
239
+ }
240
+ }
241
+ },
242
+ "logContent": {
243
+ "type": "string",
244
+ "description": "The stored primary artifact verbatim — did.jsonl for did:webvh, the key event stream for did:webs, did.json for did:web. Present iff the request set raw: true."
245
+ },
246
+ "witnessContent": {
247
+ "type": "string",
248
+ "description": "The stored did-witness.json verbatim. Present iff the request set raw: true and the slot holds witness proofs."
249
+ },
250
+ "ext": {
251
+ "$ref": "#/$defs/Ext"
252
+ }
253
+ }
254
+ },
255
+ "Ext": {
256
+ "title": "Ext",
257
+ "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.",
258
+ "type": "object",
259
+ "minProperties": 1,
260
+ "additionalProperties": true,
261
+ "propertyNames": {
262
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
263
+ }
264
+ }
265
+ }
266
+ } as const;
267
+
268
+ /**
269
+ * SPEC.md §7.2 policy for the request variant, from this specification's
270
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
271
+ * per-specification and cannot be derived from the document alone, and
272
+ * item 2 needs the schema this carries.
273
+ */
274
+ export const SPEC = {
275
+ typeUri: TYPE_URI,
276
+ isBearer: false,
277
+ isProofRequired: true,
278
+ isRecipientRequired: true,
279
+ isIssuedAtRequired: false,
280
+ payloadSchema: PAYLOAD_SCHEMA,
281
+ } as const;
282
+
283
+ /**
284
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
285
+ * tracks the *issuer* party's requirement because a response swaps the
286
+ * parties (§7.3 item 5).
287
+ */
288
+ export const RESPONSE_SPEC = {
289
+ typeUri: RESPONSE_TYPE_URI,
290
+ isBearer: false,
291
+ isProofRequired: true,
292
+ isRecipientRequired: true,
293
+ isIssuedAtRequired: false,
294
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
295
+ } as const;
@@ -0,0 +1,280 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/did-management/domain/list/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { DomainEntry, Ext } from "../../../../_shared/components.js";
7
+
8
+
9
+ export interface DomainListPayload {
10
+ /**
11
+ * Only domains in this state. Absent means every state.
12
+ */
13
+ status?: "active" | "disabled";
14
+ ext?: Ext;
15
+ }
16
+ export interface DomainListResponsePayload {
17
+ /**
18
+ * Every matching hosting domain, ordered by name.
19
+ */
20
+ domains: DomainEntry[];
21
+ /**
22
+ * The service's system-default domain. Absent when none is set.
23
+ */
24
+ default?: string;
25
+ ext?: Ext;
26
+ }
27
+
28
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
29
+ export type { DomainEntry, Ext };
30
+
31
+ /** Trust Task type URI. */
32
+ export const TYPE_URI = "https://trusttasks.org/spec/did-management/domain/list/0.1" as const;
33
+
34
+ /** Stable alias for this specification's request payload shape. */
35
+ export type Payload = DomainListPayload;
36
+
37
+ /** Trust Task response type URI (request type URI + "#response"). */
38
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/did-management/domain/list/0.1#response" as const;
39
+
40
+ /** Stable alias for this specification's success-response payload shape. */
41
+ export type Response = DomainListResponsePayload;
42
+
43
+ /**
44
+ * This specification's payload schema, as a value.
45
+ *
46
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
47
+ * rather than only as a `.json` file because TypeScript types are erased
48
+ * at runtime: without a schema a consumer has nothing to validate, and
49
+ * every REQUIRED payload member is optional in practice. Cross-file
50
+ * `$ref`s are already inlined, so it needs no resolver.
51
+ */
52
+ export const PAYLOAD_SCHEMA = {
53
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
54
+ "$id": "https://trusttasks.org/spec/did-management/domain/list/0.1",
55
+ "title": "Domain List — payload",
56
+ "type": "object",
57
+ "additionalProperties": false,
58
+ "properties": {
59
+ "status": {
60
+ "type": "string",
61
+ "enum": [
62
+ "active",
63
+ "disabled"
64
+ ],
65
+ "description": "Only domains in this state. Absent means every state."
66
+ },
67
+ "ext": {
68
+ "$ref": "#/$defs/Ext"
69
+ }
70
+ },
71
+ "$defs": {
72
+ "Response": {
73
+ "$anchor": "response",
74
+ "title": "Domain List — response payload",
75
+ "type": "object",
76
+ "additionalProperties": false,
77
+ "required": [
78
+ "domains"
79
+ ],
80
+ "properties": {
81
+ "domains": {
82
+ "type": "array",
83
+ "items": {
84
+ "$ref": "#/$defs/DomainEntry"
85
+ },
86
+ "description": "Every matching hosting domain, ordered by name."
87
+ },
88
+ "default": {
89
+ "type": "string",
90
+ "description": "The service's system-default domain. Absent when none is set."
91
+ },
92
+ "ext": {
93
+ "$ref": "#/$defs/Ext"
94
+ }
95
+ }
96
+ },
97
+ "Ext": {
98
+ "title": "Ext",
99
+ "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.",
100
+ "type": "object",
101
+ "minProperties": 1,
102
+ "additionalProperties": true,
103
+ "propertyNames": {
104
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
105
+ }
106
+ },
107
+ "DomainEntry": {
108
+ "title": "DomainEntry",
109
+ "type": "object",
110
+ "additionalProperties": false,
111
+ "required": [
112
+ "name",
113
+ "status",
114
+ "createdAt"
115
+ ],
116
+ "properties": {
117
+ "name": {
118
+ "type": "string",
119
+ "description": "Hosting domain name (e.g. `did.example.com`). Compared case-insensitively; producers SHOULD emit lowercase canonical form."
120
+ },
121
+ "label": {
122
+ "type": "string",
123
+ "description": "Optional human-readable label."
124
+ },
125
+ "status": {
126
+ "type": "string",
127
+ "enum": [
128
+ "active",
129
+ "disabled"
130
+ ],
131
+ "description": "Domain lifecycle state. A `disabled` domain still serves existing DIDs in read-only mode for the host's configured grace period before purge becomes eligible."
132
+ },
133
+ "defaultDomain": {
134
+ "type": "boolean",
135
+ "description": "When `true`, this domain is the host's default — new DIDs created without an explicit domain are hosted here. Exactly one entry SHOULD carry `defaultDomain: true`."
136
+ },
137
+ "createdAt": {
138
+ "type": "string",
139
+ "format": "date-time"
140
+ },
141
+ "disabledAt": {
142
+ "type": "string",
143
+ "format": "date-time",
144
+ "description": "Present iff `status === \"disabled\"`."
145
+ },
146
+ "purgeAt": {
147
+ "type": "string",
148
+ "format": "date-time",
149
+ "description": "Earliest RFC3339 timestamp at which the host's background sweep is allowed to purge content for a disabled domain. Operators with administrative authority MAY override the wait via `domain/purge`."
150
+ },
151
+ "ext": {
152
+ "$ref": "#/$defs/Ext",
153
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
154
+ }
155
+ }
156
+ }
157
+ }
158
+ } as const;
159
+
160
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
161
+ export const RESPONSE_PAYLOAD_SCHEMA = {
162
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
163
+ "$ref": "#/$defs/Response",
164
+ "$defs": {
165
+ "Response": {
166
+ "$anchor": "response",
167
+ "title": "Domain List — response payload",
168
+ "type": "object",
169
+ "additionalProperties": false,
170
+ "required": [
171
+ "domains"
172
+ ],
173
+ "properties": {
174
+ "domains": {
175
+ "type": "array",
176
+ "items": {
177
+ "$ref": "#/$defs/DomainEntry"
178
+ },
179
+ "description": "Every matching hosting domain, ordered by name."
180
+ },
181
+ "default": {
182
+ "type": "string",
183
+ "description": "The service's system-default domain. Absent when none is set."
184
+ },
185
+ "ext": {
186
+ "$ref": "#/$defs/Ext"
187
+ }
188
+ }
189
+ },
190
+ "Ext": {
191
+ "title": "Ext",
192
+ "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.",
193
+ "type": "object",
194
+ "minProperties": 1,
195
+ "additionalProperties": true,
196
+ "propertyNames": {
197
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
198
+ }
199
+ },
200
+ "DomainEntry": {
201
+ "title": "DomainEntry",
202
+ "type": "object",
203
+ "additionalProperties": false,
204
+ "required": [
205
+ "name",
206
+ "status",
207
+ "createdAt"
208
+ ],
209
+ "properties": {
210
+ "name": {
211
+ "type": "string",
212
+ "description": "Hosting domain name (e.g. `did.example.com`). Compared case-insensitively; producers SHOULD emit lowercase canonical form."
213
+ },
214
+ "label": {
215
+ "type": "string",
216
+ "description": "Optional human-readable label."
217
+ },
218
+ "status": {
219
+ "type": "string",
220
+ "enum": [
221
+ "active",
222
+ "disabled"
223
+ ],
224
+ "description": "Domain lifecycle state. A `disabled` domain still serves existing DIDs in read-only mode for the host's configured grace period before purge becomes eligible."
225
+ },
226
+ "defaultDomain": {
227
+ "type": "boolean",
228
+ "description": "When `true`, this domain is the host's default — new DIDs created without an explicit domain are hosted here. Exactly one entry SHOULD carry `defaultDomain: true`."
229
+ },
230
+ "createdAt": {
231
+ "type": "string",
232
+ "format": "date-time"
233
+ },
234
+ "disabledAt": {
235
+ "type": "string",
236
+ "format": "date-time",
237
+ "description": "Present iff `status === \"disabled\"`."
238
+ },
239
+ "purgeAt": {
240
+ "type": "string",
241
+ "format": "date-time",
242
+ "description": "Earliest RFC3339 timestamp at which the host's background sweep is allowed to purge content for a disabled domain. Operators with administrative authority MAY override the wait via `domain/purge`."
243
+ },
244
+ "ext": {
245
+ "$ref": "#/$defs/Ext",
246
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
247
+ }
248
+ }
249
+ }
250
+ }
251
+ } as const;
252
+
253
+ /**
254
+ * SPEC.md §7.2 policy for the request variant, from this specification's
255
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
256
+ * per-specification and cannot be derived from the document alone, and
257
+ * item 2 needs the schema this carries.
258
+ */
259
+ export const SPEC = {
260
+ typeUri: TYPE_URI,
261
+ isBearer: false,
262
+ isProofRequired: true,
263
+ isRecipientRequired: true,
264
+ isIssuedAtRequired: false,
265
+ payloadSchema: PAYLOAD_SCHEMA,
266
+ } as const;
267
+
268
+ /**
269
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
270
+ * tracks the *issuer* party's requirement because a response swaps the
271
+ * parties (§7.3 item 5).
272
+ */
273
+ export const RESPONSE_SPEC = {
274
+ typeUri: RESPONSE_TYPE_URI,
275
+ isBearer: false,
276
+ isProofRequired: true,
277
+ isRecipientRequired: true,
278
+ isIssuedAtRequired: false,
279
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
280
+ } as const;