@openvtc/trust-tasks 0.10.0 → 0.12.0

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 (51) hide show
  1. package/dist/index.d.ts +9 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +9 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/vta/_shared/0.1/service.d.ts +11 -0
  6. package/dist/vta/_shared/0.1/service.d.ts.map +1 -0
  7. package/dist/vta/_shared/0.1/service.js +6 -0
  8. package/dist/vta/_shared/0.1/service.js.map +1 -0
  9. package/dist/vta/services/disable/1.0/payload.d.ts +452 -0
  10. package/dist/vta/services/disable/1.0/payload.d.ts.map +1 -0
  11. package/dist/vta/services/disable/1.0/payload.js +240 -0
  12. package/dist/vta/services/disable/1.0/payload.js.map +1 -0
  13. package/dist/vta/services/drain/cancel/1.0/payload.d.ts +234 -0
  14. package/dist/vta/services/drain/cancel/1.0/payload.d.ts.map +1 -0
  15. package/dist/vta/services/drain/cancel/1.0/payload.js +131 -0
  16. package/dist/vta/services/drain/cancel/1.0/payload.js.map +1 -0
  17. package/dist/vta/services/drain/list/1.0/payload.d.ts +352 -0
  18. package/dist/vta/services/drain/list/1.0/payload.d.ts.map +1 -0
  19. package/dist/vta/services/drain/list/1.0/payload.js +189 -0
  20. package/dist/vta/services/drain/list/1.0/payload.js.map +1 -0
  21. package/dist/vta/services/enable/1.0/payload.d.ts +511 -0
  22. package/dist/vta/services/enable/1.0/payload.d.ts.map +1 -0
  23. package/dist/vta/services/enable/1.0/payload.js +262 -0
  24. package/dist/vta/services/enable/1.0/payload.js.map +1 -0
  25. package/dist/vta/services/get/1.0/payload.d.ts +399 -0
  26. package/dist/vta/services/get/1.0/payload.d.ts.map +1 -0
  27. package/dist/vta/services/get/1.0/payload.js +219 -0
  28. package/dist/vta/services/get/1.0/payload.js.map +1 -0
  29. package/dist/vta/services/list/1.0/payload.d.ts +409 -0
  30. package/dist/vta/services/list/1.0/payload.d.ts.map +1 -0
  31. package/dist/vta/services/list/1.0/payload.js +221 -0
  32. package/dist/vta/services/list/1.0/payload.js.map +1 -0
  33. package/dist/vta/services/rollback/1.0/payload.d.ts +458 -0
  34. package/dist/vta/services/rollback/1.0/payload.d.ts.map +1 -0
  35. package/dist/vta/services/rollback/1.0/payload.js +251 -0
  36. package/dist/vta/services/rollback/1.0/payload.js.map +1 -0
  37. package/dist/vta/services/update/1.0/payload.d.ts +511 -0
  38. package/dist/vta/services/update/1.0/payload.d.ts.map +1 -0
  39. package/dist/vta/services/update/1.0/payload.js +262 -0
  40. package/dist/vta/services/update/1.0/payload.js.map +1 -0
  41. package/package.json +1 -1
  42. package/src/index.ts +9 -0
  43. package/src/vta/_shared/0.1/service.ts +11 -0
  44. package/src/vta/services/disable/1.0/payload.ts +311 -0
  45. package/src/vta/services/drain/cancel/1.0/payload.ts +169 -0
  46. package/src/vta/services/drain/list/1.0/payload.ts +241 -0
  47. package/src/vta/services/enable/1.0/payload.ts +350 -0
  48. package/src/vta/services/get/1.0/payload.ts +279 -0
  49. package/src/vta/services/list/1.0/payload.ts +283 -0
  50. package/src/vta/services/rollback/1.0/payload.ts +322 -0
  51. package/src/vta/services/update/1.0/payload.ts +350 -0
@@ -0,0 +1,352 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/services/drain/list/1.0/payload.schema.json
4
+ */
5
+ /**
6
+ * Request payload for vta/services/drain/list. Enumerates DIDComm mediators that are no longer advertised but are still accepting delivery.
7
+ */
8
+ export interface VTAServicesDrainListPayload {
9
+ ext?: Ext;
10
+ }
11
+ /**
12
+ * 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.
13
+ */
14
+ export interface Ext {
15
+ [k: string]: unknown | undefined;
16
+ }
17
+ /**
18
+ * Success response to vta/services/drain/list. Type https://trusttasks.org/spec/vta/services/drain/list/1.0#response.
19
+ */
20
+ export interface VTAServicesDrainListResponsePayload {
21
+ /**
22
+ * Mediators currently draining. An empty array means nothing is draining — which is the ordinary state, not an error.
23
+ */
24
+ entries: DrainEntry[];
25
+ ext?: Ext;
26
+ }
27
+ /**
28
+ * A DIDComm mediator that is no longer advertised but is still accepting delivery, so in-flight messages routed through it are not stranded.
29
+ */
30
+ export interface DrainEntry {
31
+ /**
32
+ * The mediator being drained.
33
+ */
34
+ mediatorDid: string;
35
+ /**
36
+ * Where it is still reachable for the remainder of the drain.
37
+ */
38
+ endpoint: string;
39
+ /**
40
+ * RFC 3339 instant after which the mediator is dropped and messages routed through it are lost.
41
+ */
42
+ drainsUntil: string;
43
+ ext?: Ext;
44
+ }
45
+ /** Trust Task type URI. */
46
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vta/services/drain/list/1.0";
47
+ /** Stable alias for this specification's request payload shape. */
48
+ export type Payload = VTAServicesDrainListPayload;
49
+ /** Trust Task response type URI (request type URI + "#response"). */
50
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/services/drain/list/1.0#response";
51
+ /** Stable alias for this specification's success-response payload shape. */
52
+ export type Response = VTAServicesDrainListResponsePayload;
53
+ /**
54
+ * This specification's payload schema, as a value.
55
+ *
56
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
57
+ * rather than only as a `.json` file because TypeScript types are erased
58
+ * at runtime: without a schema a consumer has nothing to validate, and
59
+ * every REQUIRED payload member is optional in practice. Cross-file
60
+ * `$ref`s are already inlined, so it needs no resolver.
61
+ */
62
+ export declare const PAYLOAD_SCHEMA: {
63
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
64
+ readonly $id: "https://trusttasks.org/spec/vta/services/drain/list/1.0";
65
+ readonly title: "VTA Services Drain — List — payload";
66
+ readonly description: "Request payload for vta/services/drain/list. Enumerates DIDComm mediators that are no longer advertised but are still accepting delivery.";
67
+ readonly type: "object";
68
+ readonly additionalProperties: false;
69
+ readonly properties: {
70
+ readonly ext: {
71
+ readonly $ref: "#/$defs/Ext";
72
+ };
73
+ };
74
+ readonly $defs: {
75
+ readonly Response: {
76
+ readonly $anchor: "response";
77
+ readonly title: "VTA Services Drain — List — response payload";
78
+ readonly description: "Success response to vta/services/drain/list. Type https://trusttasks.org/spec/vta/services/drain/list/1.0#response.";
79
+ readonly type: "object";
80
+ readonly additionalProperties: false;
81
+ readonly required: readonly ["entries"];
82
+ readonly properties: {
83
+ readonly entries: {
84
+ readonly type: "array";
85
+ readonly description: "Mediators currently draining. An empty array means nothing is draining — which is the ordinary state, not an error.";
86
+ readonly items: {
87
+ readonly $ref: "#/$defs/DrainEntry";
88
+ };
89
+ };
90
+ readonly ext: {
91
+ readonly $ref: "#/$defs/Ext";
92
+ };
93
+ };
94
+ };
95
+ readonly Ext: {
96
+ readonly title: "Ext";
97
+ 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.";
98
+ readonly type: "object";
99
+ readonly minProperties: 1;
100
+ readonly additionalProperties: true;
101
+ readonly propertyNames: {
102
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
103
+ };
104
+ };
105
+ readonly DrainEntry: {
106
+ readonly title: "DrainEntry";
107
+ readonly description: "A DIDComm mediator that is no longer advertised but is still accepting delivery, so in-flight messages routed through it are not stranded.";
108
+ readonly type: "object";
109
+ readonly additionalProperties: false;
110
+ readonly required: readonly ["mediatorDid", "endpoint", "drainsUntil"];
111
+ readonly properties: {
112
+ readonly mediatorDid: {
113
+ readonly type: "string";
114
+ readonly minLength: 1;
115
+ readonly description: "The mediator being drained.";
116
+ };
117
+ readonly endpoint: {
118
+ readonly type: "string";
119
+ readonly description: "Where it is still reachable for the remainder of the drain.";
120
+ };
121
+ readonly drainsUntil: {
122
+ readonly type: "string";
123
+ readonly format: "date-time";
124
+ readonly description: "RFC 3339 instant after which the mediator is dropped and messages routed through it are lost.";
125
+ };
126
+ readonly ext: {
127
+ readonly $ref: "#/$defs/Ext";
128
+ };
129
+ };
130
+ };
131
+ };
132
+ };
133
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
134
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
135
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
136
+ readonly $ref: "#/$defs/Response";
137
+ readonly $defs: {
138
+ readonly Response: {
139
+ readonly $anchor: "response";
140
+ readonly title: "VTA Services Drain — List — response payload";
141
+ readonly description: "Success response to vta/services/drain/list. Type https://trusttasks.org/spec/vta/services/drain/list/1.0#response.";
142
+ readonly type: "object";
143
+ readonly additionalProperties: false;
144
+ readonly required: readonly ["entries"];
145
+ readonly properties: {
146
+ readonly entries: {
147
+ readonly type: "array";
148
+ readonly description: "Mediators currently draining. An empty array means nothing is draining — which is the ordinary state, not an error.";
149
+ readonly items: {
150
+ readonly $ref: "#/$defs/DrainEntry";
151
+ };
152
+ };
153
+ readonly ext: {
154
+ readonly $ref: "#/$defs/Ext";
155
+ };
156
+ };
157
+ };
158
+ readonly Ext: {
159
+ readonly title: "Ext";
160
+ 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.";
161
+ readonly type: "object";
162
+ readonly minProperties: 1;
163
+ readonly additionalProperties: true;
164
+ readonly propertyNames: {
165
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
166
+ };
167
+ };
168
+ readonly DrainEntry: {
169
+ readonly title: "DrainEntry";
170
+ readonly description: "A DIDComm mediator that is no longer advertised but is still accepting delivery, so in-flight messages routed through it are not stranded.";
171
+ readonly type: "object";
172
+ readonly additionalProperties: false;
173
+ readonly required: readonly ["mediatorDid", "endpoint", "drainsUntil"];
174
+ readonly properties: {
175
+ readonly mediatorDid: {
176
+ readonly type: "string";
177
+ readonly minLength: 1;
178
+ readonly description: "The mediator being drained.";
179
+ };
180
+ readonly endpoint: {
181
+ readonly type: "string";
182
+ readonly description: "Where it is still reachable for the remainder of the drain.";
183
+ };
184
+ readonly drainsUntil: {
185
+ readonly type: "string";
186
+ readonly format: "date-time";
187
+ readonly description: "RFC 3339 instant after which the mediator is dropped and messages routed through it are lost.";
188
+ };
189
+ readonly ext: {
190
+ readonly $ref: "#/$defs/Ext";
191
+ };
192
+ };
193
+ };
194
+ };
195
+ };
196
+ /**
197
+ * SPEC.md §7.2 policy for the request variant, from this specification's
198
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
199
+ * per-specification and cannot be derived from the document alone, and
200
+ * item 2 needs the schema this carries.
201
+ */
202
+ export declare const SPEC: {
203
+ readonly typeUri: "https://trusttasks.org/spec/vta/services/drain/list/1.0";
204
+ readonly isBearer: false;
205
+ readonly isProofRequired: false;
206
+ readonly isRecipientRequired: true;
207
+ readonly payloadSchema: {
208
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
209
+ readonly $id: "https://trusttasks.org/spec/vta/services/drain/list/1.0";
210
+ readonly title: "VTA Services Drain — List — payload";
211
+ readonly description: "Request payload for vta/services/drain/list. Enumerates DIDComm mediators that are no longer advertised but are still accepting delivery.";
212
+ readonly type: "object";
213
+ readonly additionalProperties: false;
214
+ readonly properties: {
215
+ readonly ext: {
216
+ readonly $ref: "#/$defs/Ext";
217
+ };
218
+ };
219
+ readonly $defs: {
220
+ readonly Response: {
221
+ readonly $anchor: "response";
222
+ readonly title: "VTA Services Drain — List — response payload";
223
+ readonly description: "Success response to vta/services/drain/list. Type https://trusttasks.org/spec/vta/services/drain/list/1.0#response.";
224
+ readonly type: "object";
225
+ readonly additionalProperties: false;
226
+ readonly required: readonly ["entries"];
227
+ readonly properties: {
228
+ readonly entries: {
229
+ readonly type: "array";
230
+ readonly description: "Mediators currently draining. An empty array means nothing is draining — which is the ordinary state, not an error.";
231
+ readonly items: {
232
+ readonly $ref: "#/$defs/DrainEntry";
233
+ };
234
+ };
235
+ readonly ext: {
236
+ readonly $ref: "#/$defs/Ext";
237
+ };
238
+ };
239
+ };
240
+ readonly Ext: {
241
+ readonly title: "Ext";
242
+ 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.";
243
+ readonly type: "object";
244
+ readonly minProperties: 1;
245
+ readonly additionalProperties: true;
246
+ readonly propertyNames: {
247
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
248
+ };
249
+ };
250
+ readonly DrainEntry: {
251
+ readonly title: "DrainEntry";
252
+ readonly description: "A DIDComm mediator that is no longer advertised but is still accepting delivery, so in-flight messages routed through it are not stranded.";
253
+ readonly type: "object";
254
+ readonly additionalProperties: false;
255
+ readonly required: readonly ["mediatorDid", "endpoint", "drainsUntil"];
256
+ readonly properties: {
257
+ readonly mediatorDid: {
258
+ readonly type: "string";
259
+ readonly minLength: 1;
260
+ readonly description: "The mediator being drained.";
261
+ };
262
+ readonly endpoint: {
263
+ readonly type: "string";
264
+ readonly description: "Where it is still reachable for the remainder of the drain.";
265
+ };
266
+ readonly drainsUntil: {
267
+ readonly type: "string";
268
+ readonly format: "date-time";
269
+ readonly description: "RFC 3339 instant after which the mediator is dropped and messages routed through it are lost.";
270
+ };
271
+ readonly ext: {
272
+ readonly $ref: "#/$defs/Ext";
273
+ };
274
+ };
275
+ };
276
+ };
277
+ };
278
+ };
279
+ /**
280
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
281
+ * tracks the *issuer* party's requirement because a response swaps the
282
+ * parties (§7.3 item 5).
283
+ */
284
+ export declare const RESPONSE_SPEC: {
285
+ readonly typeUri: "https://trusttasks.org/spec/vta/services/drain/list/1.0#response";
286
+ readonly isBearer: false;
287
+ readonly isProofRequired: false;
288
+ readonly isRecipientRequired: true;
289
+ readonly payloadSchema: {
290
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
291
+ readonly $ref: "#/$defs/Response";
292
+ readonly $defs: {
293
+ readonly Response: {
294
+ readonly $anchor: "response";
295
+ readonly title: "VTA Services Drain — List — response payload";
296
+ readonly description: "Success response to vta/services/drain/list. Type https://trusttasks.org/spec/vta/services/drain/list/1.0#response.";
297
+ readonly type: "object";
298
+ readonly additionalProperties: false;
299
+ readonly required: readonly ["entries"];
300
+ readonly properties: {
301
+ readonly entries: {
302
+ readonly type: "array";
303
+ readonly description: "Mediators currently draining. An empty array means nothing is draining — which is the ordinary state, not an error.";
304
+ readonly items: {
305
+ readonly $ref: "#/$defs/DrainEntry";
306
+ };
307
+ };
308
+ readonly ext: {
309
+ readonly $ref: "#/$defs/Ext";
310
+ };
311
+ };
312
+ };
313
+ readonly Ext: {
314
+ readonly title: "Ext";
315
+ 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.";
316
+ readonly type: "object";
317
+ readonly minProperties: 1;
318
+ readonly additionalProperties: true;
319
+ readonly propertyNames: {
320
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
321
+ };
322
+ };
323
+ readonly DrainEntry: {
324
+ readonly title: "DrainEntry";
325
+ readonly description: "A DIDComm mediator that is no longer advertised but is still accepting delivery, so in-flight messages routed through it are not stranded.";
326
+ readonly type: "object";
327
+ readonly additionalProperties: false;
328
+ readonly required: readonly ["mediatorDid", "endpoint", "drainsUntil"];
329
+ readonly properties: {
330
+ readonly mediatorDid: {
331
+ readonly type: "string";
332
+ readonly minLength: 1;
333
+ readonly description: "The mediator being drained.";
334
+ };
335
+ readonly endpoint: {
336
+ readonly type: "string";
337
+ readonly description: "Where it is still reachable for the remainder of the drain.";
338
+ };
339
+ readonly drainsUntil: {
340
+ readonly type: "string";
341
+ readonly format: "date-time";
342
+ readonly description: "RFC 3339 instant after which the mediator is dropped and messages routed through it are lost.";
343
+ };
344
+ readonly ext: {
345
+ readonly $ref: "#/$defs/Ext";
346
+ };
347
+ };
348
+ };
349
+ };
350
+ };
351
+ };
352
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../../src/vta/services/drain/list/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,mCAAmC;IAClD;;OAEG;IACH,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,yDAAkE,CAAC;AAE3F,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,2BAA2B,CAAC;AAElD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,kEAA2E,CAAC;AAE7G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,mCAAmC,CAAC;AAE3D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4EjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmE1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
@@ -0,0 +1,189 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/services/drain/list/1.0/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/services/drain/list/1.0";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/services/drain/list/1.0#response";
9
+ /**
10
+ * This specification's payload schema, as a value.
11
+ *
12
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
13
+ * rather than only as a `.json` file because TypeScript types are erased
14
+ * at runtime: without a schema a consumer has nothing to validate, and
15
+ * every REQUIRED payload member is optional in practice. Cross-file
16
+ * `$ref`s are already inlined, so it needs no resolver.
17
+ */
18
+ export const PAYLOAD_SCHEMA = {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "$id": "https://trusttasks.org/spec/vta/services/drain/list/1.0",
21
+ "title": "VTA Services Drain — List — payload",
22
+ "description": "Request payload for vta/services/drain/list. Enumerates DIDComm mediators that are no longer advertised but are still accepting delivery.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "properties": {
26
+ "ext": {
27
+ "$ref": "#/$defs/Ext"
28
+ }
29
+ },
30
+ "$defs": {
31
+ "Response": {
32
+ "$anchor": "response",
33
+ "title": "VTA Services Drain — List — response payload",
34
+ "description": "Success response to vta/services/drain/list. Type https://trusttasks.org/spec/vta/services/drain/list/1.0#response.",
35
+ "type": "object",
36
+ "additionalProperties": false,
37
+ "required": [
38
+ "entries"
39
+ ],
40
+ "properties": {
41
+ "entries": {
42
+ "type": "array",
43
+ "description": "Mediators currently draining. An empty array means nothing is draining — which is the ordinary state, not an error.",
44
+ "items": {
45
+ "$ref": "#/$defs/DrainEntry"
46
+ }
47
+ },
48
+ "ext": {
49
+ "$ref": "#/$defs/Ext"
50
+ }
51
+ }
52
+ },
53
+ "Ext": {
54
+ "title": "Ext",
55
+ "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.",
56
+ "type": "object",
57
+ "minProperties": 1,
58
+ "additionalProperties": true,
59
+ "propertyNames": {
60
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
61
+ }
62
+ },
63
+ "DrainEntry": {
64
+ "title": "DrainEntry",
65
+ "description": "A DIDComm mediator that is no longer advertised but is still accepting delivery, so in-flight messages routed through it are not stranded.",
66
+ "type": "object",
67
+ "additionalProperties": false,
68
+ "required": [
69
+ "mediatorDid",
70
+ "endpoint",
71
+ "drainsUntil"
72
+ ],
73
+ "properties": {
74
+ "mediatorDid": {
75
+ "type": "string",
76
+ "minLength": 1,
77
+ "description": "The mediator being drained."
78
+ },
79
+ "endpoint": {
80
+ "type": "string",
81
+ "description": "Where it is still reachable for the remainder of the drain."
82
+ },
83
+ "drainsUntil": {
84
+ "type": "string",
85
+ "format": "date-time",
86
+ "description": "RFC 3339 instant after which the mediator is dropped and messages routed through it are lost."
87
+ },
88
+ "ext": {
89
+ "$ref": "#/$defs/Ext"
90
+ }
91
+ }
92
+ }
93
+ }
94
+ };
95
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
96
+ export const RESPONSE_PAYLOAD_SCHEMA = {
97
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
98
+ "$ref": "#/$defs/Response",
99
+ "$defs": {
100
+ "Response": {
101
+ "$anchor": "response",
102
+ "title": "VTA Services Drain — List — response payload",
103
+ "description": "Success response to vta/services/drain/list. Type https://trusttasks.org/spec/vta/services/drain/list/1.0#response.",
104
+ "type": "object",
105
+ "additionalProperties": false,
106
+ "required": [
107
+ "entries"
108
+ ],
109
+ "properties": {
110
+ "entries": {
111
+ "type": "array",
112
+ "description": "Mediators currently draining. An empty array means nothing is draining — which is the ordinary state, not an error.",
113
+ "items": {
114
+ "$ref": "#/$defs/DrainEntry"
115
+ }
116
+ },
117
+ "ext": {
118
+ "$ref": "#/$defs/Ext"
119
+ }
120
+ }
121
+ },
122
+ "Ext": {
123
+ "title": "Ext",
124
+ "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.",
125
+ "type": "object",
126
+ "minProperties": 1,
127
+ "additionalProperties": true,
128
+ "propertyNames": {
129
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
130
+ }
131
+ },
132
+ "DrainEntry": {
133
+ "title": "DrainEntry",
134
+ "description": "A DIDComm mediator that is no longer advertised but is still accepting delivery, so in-flight messages routed through it are not stranded.",
135
+ "type": "object",
136
+ "additionalProperties": false,
137
+ "required": [
138
+ "mediatorDid",
139
+ "endpoint",
140
+ "drainsUntil"
141
+ ],
142
+ "properties": {
143
+ "mediatorDid": {
144
+ "type": "string",
145
+ "minLength": 1,
146
+ "description": "The mediator being drained."
147
+ },
148
+ "endpoint": {
149
+ "type": "string",
150
+ "description": "Where it is still reachable for the remainder of the drain."
151
+ },
152
+ "drainsUntil": {
153
+ "type": "string",
154
+ "format": "date-time",
155
+ "description": "RFC 3339 instant after which the mediator is dropped and messages routed through it are lost."
156
+ },
157
+ "ext": {
158
+ "$ref": "#/$defs/Ext"
159
+ }
160
+ }
161
+ }
162
+ }
163
+ };
164
+ /**
165
+ * SPEC.md §7.2 policy for the request variant, from this specification's
166
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
167
+ * per-specification and cannot be derived from the document alone, and
168
+ * item 2 needs the schema this carries.
169
+ */
170
+ export const SPEC = {
171
+ typeUri: TYPE_URI,
172
+ isBearer: false,
173
+ isProofRequired: false,
174
+ isRecipientRequired: true,
175
+ payloadSchema: PAYLOAD_SCHEMA,
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: false,
186
+ isRecipientRequired: true,
187
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
188
+ };
189
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../../src/vta/services/drain/list/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA2CH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,yDAAkE,CAAC;AAK3F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,kEAA2E,CAAC;AAK7G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,yDAAyD;IAChE,OAAO,EAAE,qCAAqC;IAC9C,aAAa,EAAE,2IAA2I;IAC1J,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,YAAY,EAAE;QACZ,KAAK,EAAE;YACL,MAAM,EAAE,aAAa;SACtB;KACF;IACD,OAAO,EAAE;QACP,UAAU,EAAE;YACV,SAAS,EAAE,UAAU;YACrB,OAAO,EAAE,8CAA8C;YACvD,aAAa,EAAE,qHAAqH;YACpI,MAAM,EAAE,QAAQ;YAChB,sBAAsB,EAAE,KAAK;YAC7B,UAAU,EAAE;gBACV,SAAS;aACV;YACD,YAAY,EAAE;gBACZ,SAAS,EAAE;oBACT,MAAM,EAAE,OAAO;oBACf,aAAa,EAAE,qHAAqH;oBACpI,OAAO,EAAE;w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