@openvtc/trust-tasks 0.10.0 → 0.11.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 +438 -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 +235 -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 +438 -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 +235 -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 +302 -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 +302 -0
  51. package/src/vta/services/update/1.0/payload.ts +350 -0
@@ -0,0 +1,438 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/services/rollback/1.0/payload.schema.json
4
+ */
5
+ /**
6
+ * Which transport a task is acting on. This is the discriminator: it selects which member of `config` is meaningful, and a payload naming one kind with another's config is malformed rather than merely ignored.
7
+ */
8
+ export type ServiceKind = "didcomm" | "rest" | "tsp" | "webauthn";
9
+ /**
10
+ * Request payload for vta/services/rollback. Reverts a transport to its previous advertised settings by writing a NEW log entry — the history is append-only, so a rollback is a forward step that restores an earlier state, never an erasure of what happened.
11
+ */
12
+ export interface VTAServicesRollbackPayload {
13
+ service: ServiceKind;
14
+ ext?: Ext;
15
+ }
16
+ /**
17
+ * 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.
18
+ */
19
+ export interface Ext {
20
+ [k: string]: unknown | undefined;
21
+ }
22
+ /**
23
+ * Success response to vta/services/rollback. Type https://trusttasks.org/spec/vta/services/rollback/1.0#response.
24
+ */
25
+ export interface VTAServicesRollbackResponsePayload {
26
+ result: ServiceMutationResult;
27
+ ext?: Ext;
28
+ }
29
+ /**
30
+ * The outcome of a change to an advertised service. Every member describes the **log entry the change produced**, because that is what the change actually is: the agent's DID document is the record, and a consumer that treats the response as a mere acknowledgement will miss that a redeploy may be required.
31
+ */
32
+ export interface ServiceMutationResult {
33
+ /**
34
+ * Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history.
35
+ */
36
+ logEntryVersionId: string;
37
+ /**
38
+ * RFC 3339 instant the change took effect — the same instant stamped on the new log entry.
39
+ */
40
+ effectiveAt: string;
41
+ /**
42
+ * Present when the change scheduled a DIDComm drain. Its absence means no drain was scheduled, NOT that a drain finished instantly: a consumer reporting 'done' on an absent value would be right, and one reporting it on a present value would be wrong.
43
+ */
44
+ drainUntil?: string;
45
+ /**
46
+ * The mediator being drained, when `drainUntil` is present.
47
+ */
48
+ drainingMediator?: string;
49
+ /**
50
+ * The agent's own DID — subject of the log entry this change wrote. Carried so a caller can follow up without a second round trip.
51
+ */
52
+ vtaDid?: string;
53
+ /**
54
+ * True when the agent's DID is self-hosted. **The change is persisted locally but NOT published**: the operator must fetch the updated `did.jsonl` and redeploy before any verifier sees it. A consumer that ignores this reports success for a change no one else can observe yet.
55
+ */
56
+ serverless?: boolean;
57
+ ext?: Ext;
58
+ }
59
+ /** Trust Task type URI. */
60
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vta/services/rollback/1.0";
61
+ /** Stable alias for this specification's request payload shape. */
62
+ export type Payload = VTAServicesRollbackPayload;
63
+ /** Trust Task response type URI (request type URI + "#response"). */
64
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/services/rollback/1.0#response";
65
+ /** Stable alias for this specification's success-response payload shape. */
66
+ export type Response = VTAServicesRollbackResponsePayload;
67
+ /**
68
+ * This specification's payload schema, as a value.
69
+ *
70
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
71
+ * rather than only as a `.json` file because TypeScript types are erased
72
+ * at runtime: without a schema a consumer has nothing to validate, and
73
+ * every REQUIRED payload member is optional in practice. Cross-file
74
+ * `$ref`s are already inlined, so it needs no resolver.
75
+ */
76
+ export declare const PAYLOAD_SCHEMA: {
77
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
78
+ readonly $id: "https://trusttasks.org/spec/vta/services/rollback/1.0";
79
+ readonly title: "VTA Services — Rollback — payload";
80
+ readonly description: "Request payload for vta/services/rollback. Reverts a transport to its previous advertised settings by writing a NEW log entry — the history is append-only, so a rollback is a forward step that restores an earlier state, never an erasure of what happened.";
81
+ readonly type: "object";
82
+ readonly additionalProperties: false;
83
+ readonly required: readonly ["service"];
84
+ readonly properties: {
85
+ readonly service: {
86
+ readonly $ref: "#/$defs/ServiceKind";
87
+ };
88
+ readonly ext: {
89
+ readonly $ref: "#/$defs/Ext";
90
+ };
91
+ };
92
+ readonly $defs: {
93
+ readonly Response: {
94
+ readonly $anchor: "response";
95
+ readonly title: "VTA Services — Rollback — response payload";
96
+ readonly description: "Success response to vta/services/rollback. Type https://trusttasks.org/spec/vta/services/rollback/1.0#response.";
97
+ readonly type: "object";
98
+ readonly additionalProperties: false;
99
+ readonly required: readonly ["result"];
100
+ readonly properties: {
101
+ readonly result: {
102
+ readonly $ref: "#/$defs/ServiceMutationResult";
103
+ };
104
+ readonly ext: {
105
+ readonly $ref: "#/$defs/Ext";
106
+ };
107
+ };
108
+ };
109
+ readonly Ext: {
110
+ readonly title: "Ext";
111
+ 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.";
112
+ readonly type: "object";
113
+ readonly minProperties: 1;
114
+ readonly additionalProperties: true;
115
+ readonly propertyNames: {
116
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
117
+ };
118
+ };
119
+ readonly ServiceMutationResult: {
120
+ readonly title: "ServiceMutationResult";
121
+ readonly description: "The outcome of a change to an advertised service. Every member describes the **log entry the change produced**, because that is what the change actually is: the agent's DID document is the record, and a consumer that treats the response as a mere acknowledgement will miss that a redeploy may be required.";
122
+ readonly type: "object";
123
+ readonly additionalProperties: false;
124
+ readonly required: readonly ["logEntryVersionId", "effectiveAt"];
125
+ readonly properties: {
126
+ readonly logEntryVersionId: {
127
+ readonly type: "string";
128
+ readonly minLength: 1;
129
+ readonly description: "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history.";
130
+ };
131
+ readonly effectiveAt: {
132
+ readonly type: "string";
133
+ readonly format: "date-time";
134
+ readonly description: "RFC 3339 instant the change took effect — the same instant stamped on the new log entry.";
135
+ };
136
+ readonly drainUntil: {
137
+ readonly type: "string";
138
+ readonly format: "date-time";
139
+ readonly description: "Present when the change scheduled a DIDComm drain. Its absence means no drain was scheduled, NOT that a drain finished instantly: a consumer reporting 'done' on an absent value would be right, and one reporting it on a present value would be wrong.";
140
+ };
141
+ readonly drainingMediator: {
142
+ readonly type: "string";
143
+ readonly description: "The mediator being drained, when `drainUntil` is present.";
144
+ };
145
+ readonly vtaDid: {
146
+ readonly type: "string";
147
+ readonly description: "The agent's own DID — subject of the log entry this change wrote. Carried so a caller can follow up without a second round trip.";
148
+ };
149
+ readonly serverless: {
150
+ readonly type: "boolean";
151
+ readonly description: "True when the agent's DID is self-hosted. **The change is persisted locally but NOT published**: the operator must fetch the updated `did.jsonl` and redeploy before any verifier sees it. A consumer that ignores this reports success for a change no one else can observe yet.";
152
+ readonly default: false;
153
+ };
154
+ readonly ext: {
155
+ readonly $ref: "#/$defs/Ext";
156
+ };
157
+ };
158
+ };
159
+ readonly ServiceKind: {
160
+ readonly title: "ServiceKind";
161
+ readonly description: "Which transport a task is acting on. This is the discriminator: it selects which member of `config` is meaningful, and a payload naming one kind with another's config is malformed rather than merely ignored.";
162
+ readonly type: "string";
163
+ readonly enum: readonly ["didcomm", "rest", "tsp", "webauthn"];
164
+ };
165
+ };
166
+ };
167
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
168
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
169
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
170
+ readonly $ref: "#/$defs/Response";
171
+ readonly $defs: {
172
+ readonly Response: {
173
+ readonly $anchor: "response";
174
+ readonly title: "VTA Services — Rollback — response payload";
175
+ readonly description: "Success response to vta/services/rollback. Type https://trusttasks.org/spec/vta/services/rollback/1.0#response.";
176
+ readonly type: "object";
177
+ readonly additionalProperties: false;
178
+ readonly required: readonly ["result"];
179
+ readonly properties: {
180
+ readonly result: {
181
+ readonly $ref: "#/$defs/ServiceMutationResult";
182
+ };
183
+ readonly ext: {
184
+ readonly $ref: "#/$defs/Ext";
185
+ };
186
+ };
187
+ };
188
+ readonly Ext: {
189
+ readonly title: "Ext";
190
+ 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.";
191
+ readonly type: "object";
192
+ readonly minProperties: 1;
193
+ readonly additionalProperties: true;
194
+ readonly propertyNames: {
195
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
196
+ };
197
+ };
198
+ readonly ServiceMutationResult: {
199
+ readonly title: "ServiceMutationResult";
200
+ readonly description: "The outcome of a change to an advertised service. Every member describes the **log entry the change produced**, because that is what the change actually is: the agent's DID document is the record, and a consumer that treats the response as a mere acknowledgement will miss that a redeploy may be required.";
201
+ readonly type: "object";
202
+ readonly additionalProperties: false;
203
+ readonly required: readonly ["logEntryVersionId", "effectiveAt"];
204
+ readonly properties: {
205
+ readonly logEntryVersionId: {
206
+ readonly type: "string";
207
+ readonly minLength: 1;
208
+ readonly description: "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history.";
209
+ };
210
+ readonly effectiveAt: {
211
+ readonly type: "string";
212
+ readonly format: "date-time";
213
+ readonly description: "RFC 3339 instant the change took effect — the same instant stamped on the new log entry.";
214
+ };
215
+ readonly drainUntil: {
216
+ readonly type: "string";
217
+ readonly format: "date-time";
218
+ readonly description: "Present when the change scheduled a DIDComm drain. Its absence means no drain was scheduled, NOT that a drain finished instantly: a consumer reporting 'done' on an absent value would be right, and one reporting it on a present value would be wrong.";
219
+ };
220
+ readonly drainingMediator: {
221
+ readonly type: "string";
222
+ readonly description: "The mediator being drained, when `drainUntil` is present.";
223
+ };
224
+ readonly vtaDid: {
225
+ readonly type: "string";
226
+ readonly description: "The agent's own DID — subject of the log entry this change wrote. Carried so a caller can follow up without a second round trip.";
227
+ };
228
+ readonly serverless: {
229
+ readonly type: "boolean";
230
+ readonly description: "True when the agent's DID is self-hosted. **The change is persisted locally but NOT published**: the operator must fetch the updated `did.jsonl` and redeploy before any verifier sees it. A consumer that ignores this reports success for a change no one else can observe yet.";
231
+ readonly default: false;
232
+ };
233
+ readonly ext: {
234
+ readonly $ref: "#/$defs/Ext";
235
+ };
236
+ };
237
+ };
238
+ readonly ServiceKind: {
239
+ readonly title: "ServiceKind";
240
+ readonly description: "Which transport a task is acting on. This is the discriminator: it selects which member of `config` is meaningful, and a payload naming one kind with another's config is malformed rather than merely ignored.";
241
+ readonly type: "string";
242
+ readonly enum: readonly ["didcomm", "rest", "tsp", "webauthn"];
243
+ };
244
+ };
245
+ };
246
+ /**
247
+ * SPEC.md §7.2 policy for the request variant, from this specification's
248
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
249
+ * per-specification and cannot be derived from the document alone, and
250
+ * item 2 needs the schema this carries.
251
+ */
252
+ export declare const SPEC: {
253
+ readonly typeUri: "https://trusttasks.org/spec/vta/services/rollback/1.0";
254
+ readonly isBearer: false;
255
+ readonly isProofRequired: true;
256
+ readonly isRecipientRequired: true;
257
+ readonly payloadSchema: {
258
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
259
+ readonly $id: "https://trusttasks.org/spec/vta/services/rollback/1.0";
260
+ readonly title: "VTA Services — Rollback — payload";
261
+ readonly description: "Request payload for vta/services/rollback. Reverts a transport to its previous advertised settings by writing a NEW log entry — the history is append-only, so a rollback is a forward step that restores an earlier state, never an erasure of what happened.";
262
+ readonly type: "object";
263
+ readonly additionalProperties: false;
264
+ readonly required: readonly ["service"];
265
+ readonly properties: {
266
+ readonly service: {
267
+ readonly $ref: "#/$defs/ServiceKind";
268
+ };
269
+ readonly ext: {
270
+ readonly $ref: "#/$defs/Ext";
271
+ };
272
+ };
273
+ readonly $defs: {
274
+ readonly Response: {
275
+ readonly $anchor: "response";
276
+ readonly title: "VTA Services — Rollback — response payload";
277
+ readonly description: "Success response to vta/services/rollback. Type https://trusttasks.org/spec/vta/services/rollback/1.0#response.";
278
+ readonly type: "object";
279
+ readonly additionalProperties: false;
280
+ readonly required: readonly ["result"];
281
+ readonly properties: {
282
+ readonly result: {
283
+ readonly $ref: "#/$defs/ServiceMutationResult";
284
+ };
285
+ readonly ext: {
286
+ readonly $ref: "#/$defs/Ext";
287
+ };
288
+ };
289
+ };
290
+ readonly Ext: {
291
+ readonly title: "Ext";
292
+ 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.";
293
+ readonly type: "object";
294
+ readonly minProperties: 1;
295
+ readonly additionalProperties: true;
296
+ readonly propertyNames: {
297
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
298
+ };
299
+ };
300
+ readonly ServiceMutationResult: {
301
+ readonly title: "ServiceMutationResult";
302
+ readonly description: "The outcome of a change to an advertised service. Every member describes the **log entry the change produced**, because that is what the change actually is: the agent's DID document is the record, and a consumer that treats the response as a mere acknowledgement will miss that a redeploy may be required.";
303
+ readonly type: "object";
304
+ readonly additionalProperties: false;
305
+ readonly required: readonly ["logEntryVersionId", "effectiveAt"];
306
+ readonly properties: {
307
+ readonly logEntryVersionId: {
308
+ readonly type: "string";
309
+ readonly minLength: 1;
310
+ readonly description: "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history.";
311
+ };
312
+ readonly effectiveAt: {
313
+ readonly type: "string";
314
+ readonly format: "date-time";
315
+ readonly description: "RFC 3339 instant the change took effect — the same instant stamped on the new log entry.";
316
+ };
317
+ readonly drainUntil: {
318
+ readonly type: "string";
319
+ readonly format: "date-time";
320
+ readonly description: "Present when the change scheduled a DIDComm drain. Its absence means no drain was scheduled, NOT that a drain finished instantly: a consumer reporting 'done' on an absent value would be right, and one reporting it on a present value would be wrong.";
321
+ };
322
+ readonly drainingMediator: {
323
+ readonly type: "string";
324
+ readonly description: "The mediator being drained, when `drainUntil` is present.";
325
+ };
326
+ readonly vtaDid: {
327
+ readonly type: "string";
328
+ readonly description: "The agent's own DID — subject of the log entry this change wrote. Carried so a caller can follow up without a second round trip.";
329
+ };
330
+ readonly serverless: {
331
+ readonly type: "boolean";
332
+ readonly description: "True when the agent's DID is self-hosted. **The change is persisted locally but NOT published**: the operator must fetch the updated `did.jsonl` and redeploy before any verifier sees it. A consumer that ignores this reports success for a change no one else can observe yet.";
333
+ readonly default: false;
334
+ };
335
+ readonly ext: {
336
+ readonly $ref: "#/$defs/Ext";
337
+ };
338
+ };
339
+ };
340
+ readonly ServiceKind: {
341
+ readonly title: "ServiceKind";
342
+ readonly description: "Which transport a task is acting on. This is the discriminator: it selects which member of `config` is meaningful, and a payload naming one kind with another's config is malformed rather than merely ignored.";
343
+ readonly type: "string";
344
+ readonly enum: readonly ["didcomm", "rest", "tsp", "webauthn"];
345
+ };
346
+ };
347
+ };
348
+ };
349
+ /**
350
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
351
+ * tracks the *issuer* party's requirement because a response swaps the
352
+ * parties (§7.3 item 5).
353
+ */
354
+ export declare const RESPONSE_SPEC: {
355
+ readonly typeUri: "https://trusttasks.org/spec/vta/services/rollback/1.0#response";
356
+ readonly isBearer: false;
357
+ readonly isProofRequired: true;
358
+ readonly isRecipientRequired: true;
359
+ readonly payloadSchema: {
360
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
361
+ readonly $ref: "#/$defs/Response";
362
+ readonly $defs: {
363
+ readonly Response: {
364
+ readonly $anchor: "response";
365
+ readonly title: "VTA Services — Rollback — response payload";
366
+ readonly description: "Success response to vta/services/rollback. Type https://trusttasks.org/spec/vta/services/rollback/1.0#response.";
367
+ readonly type: "object";
368
+ readonly additionalProperties: false;
369
+ readonly required: readonly ["result"];
370
+ readonly properties: {
371
+ readonly result: {
372
+ readonly $ref: "#/$defs/ServiceMutationResult";
373
+ };
374
+ readonly ext: {
375
+ readonly $ref: "#/$defs/Ext";
376
+ };
377
+ };
378
+ };
379
+ readonly Ext: {
380
+ readonly title: "Ext";
381
+ 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.";
382
+ readonly type: "object";
383
+ readonly minProperties: 1;
384
+ readonly additionalProperties: true;
385
+ readonly propertyNames: {
386
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
387
+ };
388
+ };
389
+ readonly ServiceMutationResult: {
390
+ readonly title: "ServiceMutationResult";
391
+ readonly description: "The outcome of a change to an advertised service. Every member describes the **log entry the change produced**, because that is what the change actually is: the agent's DID document is the record, and a consumer that treats the response as a mere acknowledgement will miss that a redeploy may be required.";
392
+ readonly type: "object";
393
+ readonly additionalProperties: false;
394
+ readonly required: readonly ["logEntryVersionId", "effectiveAt"];
395
+ readonly properties: {
396
+ readonly logEntryVersionId: {
397
+ readonly type: "string";
398
+ readonly minLength: 1;
399
+ readonly description: "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history.";
400
+ };
401
+ readonly effectiveAt: {
402
+ readonly type: "string";
403
+ readonly format: "date-time";
404
+ readonly description: "RFC 3339 instant the change took effect — the same instant stamped on the new log entry.";
405
+ };
406
+ readonly drainUntil: {
407
+ readonly type: "string";
408
+ readonly format: "date-time";
409
+ readonly description: "Present when the change scheduled a DIDComm drain. Its absence means no drain was scheduled, NOT that a drain finished instantly: a consumer reporting 'done' on an absent value would be right, and one reporting it on a present value would be wrong.";
410
+ };
411
+ readonly drainingMediator: {
412
+ readonly type: "string";
413
+ readonly description: "The mediator being drained, when `drainUntil` is present.";
414
+ };
415
+ readonly vtaDid: {
416
+ readonly type: "string";
417
+ readonly description: "The agent's own DID — subject of the log entry this change wrote. Carried so a caller can follow up without a second round trip.";
418
+ };
419
+ readonly serverless: {
420
+ readonly type: "boolean";
421
+ readonly description: "True when the agent's DID is self-hosted. **The change is persisted locally but NOT published**: the operator must fetch the updated `did.jsonl` and redeploy before any verifier sees it. A consumer that ignores this reports success for a change no one else can observe yet.";
422
+ readonly default: false;
423
+ };
424
+ readonly ext: {
425
+ readonly $ref: "#/$defs/Ext";
426
+ };
427
+ };
428
+ };
429
+ readonly ServiceKind: {
430
+ readonly title: "ServiceKind";
431
+ readonly description: "Which transport a task is acting on. This is the discriminator: it selects which member of `config` is meaningful, and a payload naming one kind with another's config is malformed rather than merely ignored.";
432
+ readonly type: "string";
433
+ readonly enum: readonly ["didcomm", "rest", "tsp", "webauthn"];
434
+ };
435
+ };
436
+ };
437
+ };
438
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/services/rollback/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,KAAK,GAAG,UAAU,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,WAAW,CAAC;IACrB,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,kCAAkC;IACjD,MAAM,EAAE,qBAAqB,CAAC;IAC9B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,uDAAgE,CAAC;AAEzF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,0BAA0B,CAAC;AAEjD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,gEAAyE,CAAC;AAE3G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,kCAAkC,CAAC;AAE1D;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuF1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}