@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,173 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/did-management/replica/domain/assign/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext } from "../../../../../_shared/components.js";
7
+
8
+
9
+ export interface ReplicaDomainAssignPayload {
10
+ /**
11
+ * The hosting domain, in canonical form (lowercase, IDNA-folded).
12
+ */
13
+ domain: string;
14
+ ext?: Ext;
15
+ }
16
+ export interface ReplicaDomainAssignResponsePayload {
17
+ domain: string;
18
+ status: "applied";
19
+ ext?: Ext;
20
+ }
21
+
22
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
23
+ export type { Ext };
24
+
25
+ /** Trust Task type URI. */
26
+ export const TYPE_URI = "https://trusttasks.org/spec/did-management/replica/domain/assign/0.1" as const;
27
+
28
+ /** Stable alias for this specification's request payload shape. */
29
+ export type Payload = ReplicaDomainAssignPayload;
30
+
31
+ /** Trust Task response type URI (request type URI + "#response"). */
32
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/did-management/replica/domain/assign/0.1#response" as const;
33
+
34
+ /** Stable alias for this specification's success-response payload shape. */
35
+ export type Response = ReplicaDomainAssignResponsePayload;
36
+
37
+ /**
38
+ * This specification's payload schema, as a value.
39
+ *
40
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
41
+ * rather than only as a `.json` file because TypeScript types are erased
42
+ * at runtime: without a schema a consumer has nothing to validate, and
43
+ * every REQUIRED payload member is optional in practice. Cross-file
44
+ * `$ref`s are already inlined, so it needs no resolver.
45
+ */
46
+ export const PAYLOAD_SCHEMA = {
47
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
48
+ "$id": "https://trusttasks.org/spec/did-management/replica/domain/assign/0.1",
49
+ "title": "Replica Domain Assign — payload",
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "required": [
53
+ "domain"
54
+ ],
55
+ "properties": {
56
+ "domain": {
57
+ "type": "string",
58
+ "minLength": 1,
59
+ "maxLength": 253,
60
+ "description": "The hosting domain, in canonical form (lowercase, IDNA-folded)."
61
+ },
62
+ "ext": {
63
+ "$ref": "#/$defs/Ext"
64
+ }
65
+ },
66
+ "$defs": {
67
+ "Response": {
68
+ "$anchor": "response",
69
+ "title": "Replica Domain Assign — response payload",
70
+ "type": "object",
71
+ "additionalProperties": false,
72
+ "required": [
73
+ "domain",
74
+ "status"
75
+ ],
76
+ "properties": {
77
+ "domain": {
78
+ "type": "string"
79
+ },
80
+ "status": {
81
+ "type": "string",
82
+ "enum": [
83
+ "applied"
84
+ ]
85
+ },
86
+ "ext": {
87
+ "$ref": "#/$defs/Ext"
88
+ }
89
+ }
90
+ },
91
+ "Ext": {
92
+ "title": "Ext",
93
+ "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.",
94
+ "type": "object",
95
+ "minProperties": 1,
96
+ "additionalProperties": true,
97
+ "propertyNames": {
98
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
99
+ }
100
+ }
101
+ }
102
+ } as const;
103
+
104
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
105
+ export const RESPONSE_PAYLOAD_SCHEMA = {
106
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
107
+ "$ref": "#/$defs/Response",
108
+ "$defs": {
109
+ "Response": {
110
+ "$anchor": "response",
111
+ "title": "Replica Domain Assign — response payload",
112
+ "type": "object",
113
+ "additionalProperties": false,
114
+ "required": [
115
+ "domain",
116
+ "status"
117
+ ],
118
+ "properties": {
119
+ "domain": {
120
+ "type": "string"
121
+ },
122
+ "status": {
123
+ "type": "string",
124
+ "enum": [
125
+ "applied"
126
+ ]
127
+ },
128
+ "ext": {
129
+ "$ref": "#/$defs/Ext"
130
+ }
131
+ }
132
+ },
133
+ "Ext": {
134
+ "title": "Ext",
135
+ "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.",
136
+ "type": "object",
137
+ "minProperties": 1,
138
+ "additionalProperties": true,
139
+ "propertyNames": {
140
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
141
+ }
142
+ }
143
+ }
144
+ } as const;
145
+
146
+ /**
147
+ * SPEC.md §7.2 policy for the request variant, from this specification's
148
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
149
+ * per-specification and cannot be derived from the document alone, and
150
+ * item 2 needs the schema this carries.
151
+ */
152
+ export const SPEC = {
153
+ typeUri: TYPE_URI,
154
+ isBearer: false,
155
+ isProofRequired: true,
156
+ isRecipientRequired: true,
157
+ isIssuedAtRequired: true,
158
+ payloadSchema: PAYLOAD_SCHEMA,
159
+ } as const;
160
+
161
+ /**
162
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
163
+ * tracks the *issuer* party's requirement because a response swaps the
164
+ * parties (§7.3 item 5).
165
+ */
166
+ export const RESPONSE_SPEC = {
167
+ typeUri: RESPONSE_TYPE_URI,
168
+ isBearer: false,
169
+ isProofRequired: true,
170
+ isRecipientRequired: true,
171
+ isIssuedAtRequired: true,
172
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
173
+ } as const;
@@ -0,0 +1,189 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/did-management/replica/domain/purge/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext } from "../../../../../_shared/components.js";
7
+
8
+
9
+ export interface ReplicaDomainPurgePayload {
10
+ /**
11
+ * The hosting domain, in canonical form (lowercase, IDNA-folded).
12
+ */
13
+ domain: string;
14
+ ext?: Ext;
15
+ }
16
+ export interface ReplicaDomainPurgeResponsePayload {
17
+ domain: string;
18
+ status: "purged";
19
+ /**
20
+ * Slots deleted. Zero when the replica held none on the domain.
21
+ */
22
+ removed: number;
23
+ ext?: Ext;
24
+ }
25
+
26
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
27
+ export type { Ext };
28
+
29
+ /** Trust Task type URI. */
30
+ export const TYPE_URI = "https://trusttasks.org/spec/did-management/replica/domain/purge/0.1" as const;
31
+
32
+ /** Stable alias for this specification's request payload shape. */
33
+ export type Payload = ReplicaDomainPurgePayload;
34
+
35
+ /** Trust Task response type URI (request type URI + "#response"). */
36
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/did-management/replica/domain/purge/0.1#response" as const;
37
+
38
+ /** Stable alias for this specification's success-response payload shape. */
39
+ export type Response = ReplicaDomainPurgeResponsePayload;
40
+
41
+ /**
42
+ * This specification's payload schema, as a value.
43
+ *
44
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
45
+ * rather than only as a `.json` file because TypeScript types are erased
46
+ * at runtime: without a schema a consumer has nothing to validate, and
47
+ * every REQUIRED payload member is optional in practice. Cross-file
48
+ * `$ref`s are already inlined, so it needs no resolver.
49
+ */
50
+ export const PAYLOAD_SCHEMA = {
51
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
52
+ "$id": "https://trusttasks.org/spec/did-management/replica/domain/purge/0.1",
53
+ "title": "Replica Domain Purge — payload",
54
+ "type": "object",
55
+ "additionalProperties": false,
56
+ "required": [
57
+ "domain"
58
+ ],
59
+ "properties": {
60
+ "domain": {
61
+ "type": "string",
62
+ "minLength": 1,
63
+ "maxLength": 253,
64
+ "description": "The hosting domain, in canonical form (lowercase, IDNA-folded)."
65
+ },
66
+ "ext": {
67
+ "$ref": "#/$defs/Ext"
68
+ }
69
+ },
70
+ "$defs": {
71
+ "Response": {
72
+ "$anchor": "response",
73
+ "title": "Replica Domain Purge — response payload",
74
+ "type": "object",
75
+ "additionalProperties": false,
76
+ "required": [
77
+ "domain",
78
+ "status",
79
+ "removed"
80
+ ],
81
+ "properties": {
82
+ "domain": {
83
+ "type": "string"
84
+ },
85
+ "status": {
86
+ "type": "string",
87
+ "enum": [
88
+ "purged"
89
+ ]
90
+ },
91
+ "removed": {
92
+ "type": "integer",
93
+ "minimum": 0,
94
+ "description": "Slots deleted. Zero when the replica held none on the domain."
95
+ },
96
+ "ext": {
97
+ "$ref": "#/$defs/Ext"
98
+ }
99
+ }
100
+ },
101
+ "Ext": {
102
+ "title": "Ext",
103
+ "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.",
104
+ "type": "object",
105
+ "minProperties": 1,
106
+ "additionalProperties": true,
107
+ "propertyNames": {
108
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
109
+ }
110
+ }
111
+ }
112
+ } as const;
113
+
114
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
115
+ export const RESPONSE_PAYLOAD_SCHEMA = {
116
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
117
+ "$ref": "#/$defs/Response",
118
+ "$defs": {
119
+ "Response": {
120
+ "$anchor": "response",
121
+ "title": "Replica Domain Purge — response payload",
122
+ "type": "object",
123
+ "additionalProperties": false,
124
+ "required": [
125
+ "domain",
126
+ "status",
127
+ "removed"
128
+ ],
129
+ "properties": {
130
+ "domain": {
131
+ "type": "string"
132
+ },
133
+ "status": {
134
+ "type": "string",
135
+ "enum": [
136
+ "purged"
137
+ ]
138
+ },
139
+ "removed": {
140
+ "type": "integer",
141
+ "minimum": 0,
142
+ "description": "Slots deleted. Zero when the replica held none on the domain."
143
+ },
144
+ "ext": {
145
+ "$ref": "#/$defs/Ext"
146
+ }
147
+ }
148
+ },
149
+ "Ext": {
150
+ "title": "Ext",
151
+ "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.",
152
+ "type": "object",
153
+ "minProperties": 1,
154
+ "additionalProperties": true,
155
+ "propertyNames": {
156
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
157
+ }
158
+ }
159
+ }
160
+ } as const;
161
+
162
+ /**
163
+ * SPEC.md §7.2 policy for the request variant, from this specification's
164
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
165
+ * per-specification and cannot be derived from the document alone, and
166
+ * item 2 needs the schema this carries.
167
+ */
168
+ export const SPEC = {
169
+ typeUri: TYPE_URI,
170
+ isBearer: false,
171
+ isProofRequired: true,
172
+ isRecipientRequired: true,
173
+ isIssuedAtRequired: true,
174
+ payloadSchema: PAYLOAD_SCHEMA,
175
+ } as const;
176
+
177
+ /**
178
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
179
+ * tracks the *issuer* party's requirement because a response swaps the
180
+ * parties (§7.3 item 5).
181
+ */
182
+ export const RESPONSE_SPEC = {
183
+ typeUri: RESPONSE_TYPE_URI,
184
+ isBearer: false,
185
+ isProofRequired: true,
186
+ isRecipientRequired: true,
187
+ isIssuedAtRequired: true,
188
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
189
+ } as const;
@@ -0,0 +1,189 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/did-management/replica/domain/unassign/0.1/payload.schema.json
4
+ */
5
+
6
+ import type { Ext } from "../../../../../_shared/components.js";
7
+
8
+
9
+ export interface ReplicaDomainUnassignPayload {
10
+ /**
11
+ * The hosting domain, in canonical form (lowercase, IDNA-folded).
12
+ */
13
+ domain: string;
14
+ ext?: Ext;
15
+ }
16
+ export interface ReplicaDomainUnassignResponsePayload {
17
+ domain: string;
18
+ status: "scheduled";
19
+ /**
20
+ * When the replica will delete the domain's content unless the domain is re-assigned first.
21
+ */
22
+ purgeAt: string;
23
+ ext?: Ext;
24
+ }
25
+
26
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
27
+ export type { Ext };
28
+
29
+ /** Trust Task type URI. */
30
+ export const TYPE_URI = "https://trusttasks.org/spec/did-management/replica/domain/unassign/0.1" as const;
31
+
32
+ /** Stable alias for this specification's request payload shape. */
33
+ export type Payload = ReplicaDomainUnassignPayload;
34
+
35
+ /** Trust Task response type URI (request type URI + "#response"). */
36
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/did-management/replica/domain/unassign/0.1#response" as const;
37
+
38
+ /** Stable alias for this specification's success-response payload shape. */
39
+ export type Response = ReplicaDomainUnassignResponsePayload;
40
+
41
+ /**
42
+ * This specification's payload schema, as a value.
43
+ *
44
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
45
+ * rather than only as a `.json` file because TypeScript types are erased
46
+ * at runtime: without a schema a consumer has nothing to validate, and
47
+ * every REQUIRED payload member is optional in practice. Cross-file
48
+ * `$ref`s are already inlined, so it needs no resolver.
49
+ */
50
+ export const PAYLOAD_SCHEMA = {
51
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
52
+ "$id": "https://trusttasks.org/spec/did-management/replica/domain/unassign/0.1",
53
+ "title": "Replica Domain Unassign — payload",
54
+ "type": "object",
55
+ "additionalProperties": false,
56
+ "required": [
57
+ "domain"
58
+ ],
59
+ "properties": {
60
+ "domain": {
61
+ "type": "string",
62
+ "minLength": 1,
63
+ "maxLength": 253,
64
+ "description": "The hosting domain, in canonical form (lowercase, IDNA-folded)."
65
+ },
66
+ "ext": {
67
+ "$ref": "#/$defs/Ext"
68
+ }
69
+ },
70
+ "$defs": {
71
+ "Response": {
72
+ "$anchor": "response",
73
+ "title": "Replica Domain Unassign — response payload",
74
+ "type": "object",
75
+ "additionalProperties": false,
76
+ "required": [
77
+ "domain",
78
+ "status",
79
+ "purgeAt"
80
+ ],
81
+ "properties": {
82
+ "domain": {
83
+ "type": "string"
84
+ },
85
+ "status": {
86
+ "type": "string",
87
+ "enum": [
88
+ "scheduled"
89
+ ]
90
+ },
91
+ "purgeAt": {
92
+ "type": "string",
93
+ "format": "date-time",
94
+ "description": "When the replica will delete the domain's content unless the domain is re-assigned first."
95
+ },
96
+ "ext": {
97
+ "$ref": "#/$defs/Ext"
98
+ }
99
+ }
100
+ },
101
+ "Ext": {
102
+ "title": "Ext",
103
+ "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.",
104
+ "type": "object",
105
+ "minProperties": 1,
106
+ "additionalProperties": true,
107
+ "propertyNames": {
108
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
109
+ }
110
+ }
111
+ }
112
+ } as const;
113
+
114
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
115
+ export const RESPONSE_PAYLOAD_SCHEMA = {
116
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
117
+ "$ref": "#/$defs/Response",
118
+ "$defs": {
119
+ "Response": {
120
+ "$anchor": "response",
121
+ "title": "Replica Domain Unassign — response payload",
122
+ "type": "object",
123
+ "additionalProperties": false,
124
+ "required": [
125
+ "domain",
126
+ "status",
127
+ "purgeAt"
128
+ ],
129
+ "properties": {
130
+ "domain": {
131
+ "type": "string"
132
+ },
133
+ "status": {
134
+ "type": "string",
135
+ "enum": [
136
+ "scheduled"
137
+ ]
138
+ },
139
+ "purgeAt": {
140
+ "type": "string",
141
+ "format": "date-time",
142
+ "description": "When the replica will delete the domain's content unless the domain is re-assigned first."
143
+ },
144
+ "ext": {
145
+ "$ref": "#/$defs/Ext"
146
+ }
147
+ }
148
+ },
149
+ "Ext": {
150
+ "title": "Ext",
151
+ "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.",
152
+ "type": "object",
153
+ "minProperties": 1,
154
+ "additionalProperties": true,
155
+ "propertyNames": {
156
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
157
+ }
158
+ }
159
+ }
160
+ } as const;
161
+
162
+ /**
163
+ * SPEC.md §7.2 policy for the request variant, from this specification's
164
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
165
+ * per-specification and cannot be derived from the document alone, and
166
+ * item 2 needs the schema this carries.
167
+ */
168
+ export const SPEC = {
169
+ typeUri: TYPE_URI,
170
+ isBearer: false,
171
+ isProofRequired: true,
172
+ isRecipientRequired: true,
173
+ isIssuedAtRequired: true,
174
+ payloadSchema: PAYLOAD_SCHEMA,
175
+ } as const;
176
+
177
+ /**
178
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
179
+ * tracks the *issuer* party's requirement because a response swaps the
180
+ * parties (§7.3 item 5).
181
+ */
182
+ export const RESPONSE_SPEC = {
183
+ typeUri: RESPONSE_TYPE_URI,
184
+ isBearer: false,
185
+ isProofRequired: true,
186
+ isRecipientRequired: true,
187
+ isIssuedAtRequired: true,
188
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
189
+ } as const;