@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,458 @@
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: RollbackResult;
27
+ ext?: Ext;
28
+ }
29
+ /**
30
+ * The outcome of a rollback. Distinct from ServiceMutationResult because a rollback can legitimately publish nothing: if the previous state already equals the current one there is no change to write, and `kind: "noOp"` says so with `logEntryVersionId` absent. Treating that as a failure would be wrong — the requested state holds — and treating it as an ordinary success would report a log entry that does not exist.
31
+ */
32
+ export interface RollbackResult {
33
+ /**
34
+ * What the rollback did. `disabled` re-disabled the transport, `enabled` re-advertised it at its prior settings, `updated` restored prior settings on an entry that stayed advertised, and `noOp` means the previous state already matched — nothing was written.
35
+ */
36
+ kind: "disabled" | "enabled" | "updated" | "noOp";
37
+ /**
38
+ * Version id of the log entry the rollback wrote. **Absent when `kind` is `noOp`**, and present otherwise.
39
+ */
40
+ logEntryVersionId?: string;
41
+ /**
42
+ * RFC 3339 instant the rollback took effect. Absent for `noOp`.
43
+ */
44
+ effectiveAt?: string;
45
+ /**
46
+ * Present when rolling back DIDComm left a mediator draining.
47
+ */
48
+ drainingMediator?: string;
49
+ /**
50
+ * When that drain completes.
51
+ */
52
+ drainUntil?: string;
53
+ /**
54
+ * The agent's own DID.
55
+ */
56
+ vtaDid?: string;
57
+ /**
58
+ * True when the entry was written locally but not published — the operator must redeploy before any verifier sees it.
59
+ */
60
+ serverless?: boolean;
61
+ ext?: Ext;
62
+ }
63
+ /** Trust Task type URI. */
64
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vta/services/rollback/1.0";
65
+ /** Stable alias for this specification's request payload shape. */
66
+ export type Payload = VTAServicesRollbackPayload;
67
+ /** Trust Task response type URI (request type URI + "#response"). */
68
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/services/rollback/1.0#response";
69
+ /** Stable alias for this specification's success-response payload shape. */
70
+ export type Response = VTAServicesRollbackResponsePayload;
71
+ /**
72
+ * This specification's payload schema, as a value.
73
+ *
74
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
75
+ * rather than only as a `.json` file because TypeScript types are erased
76
+ * at runtime: without a schema a consumer has nothing to validate, and
77
+ * every REQUIRED payload member is optional in practice. Cross-file
78
+ * `$ref`s are already inlined, so it needs no resolver.
79
+ */
80
+ export declare const PAYLOAD_SCHEMA: {
81
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
82
+ readonly $id: "https://trusttasks.org/spec/vta/services/rollback/1.0";
83
+ readonly title: "VTA Services — Rollback — payload";
84
+ 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.";
85
+ readonly type: "object";
86
+ readonly additionalProperties: false;
87
+ readonly required: readonly ["service"];
88
+ readonly properties: {
89
+ readonly service: {
90
+ readonly $ref: "#/$defs/ServiceKind";
91
+ };
92
+ readonly ext: {
93
+ readonly $ref: "#/$defs/Ext";
94
+ };
95
+ };
96
+ readonly $defs: {
97
+ readonly Response: {
98
+ readonly $anchor: "response";
99
+ readonly title: "VTA Services — Rollback — response payload";
100
+ readonly description: "Success response to vta/services/rollback. Type https://trusttasks.org/spec/vta/services/rollback/1.0#response.";
101
+ readonly type: "object";
102
+ readonly additionalProperties: false;
103
+ readonly required: readonly ["result"];
104
+ readonly properties: {
105
+ readonly result: {
106
+ readonly $ref: "#/$defs/RollbackResult";
107
+ };
108
+ readonly ext: {
109
+ readonly $ref: "#/$defs/Ext";
110
+ };
111
+ };
112
+ };
113
+ readonly Ext: {
114
+ readonly title: "Ext";
115
+ 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.";
116
+ readonly type: "object";
117
+ readonly minProperties: 1;
118
+ readonly additionalProperties: true;
119
+ readonly propertyNames: {
120
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
121
+ };
122
+ };
123
+ readonly RollbackResult: {
124
+ readonly title: "RollbackResult";
125
+ readonly description: "The outcome of a rollback. Distinct from ServiceMutationResult because a rollback can legitimately publish nothing: if the previous state already equals the current one there is no change to write, and `kind: \"noOp\"` says so with `logEntryVersionId` absent. Treating that as a failure would be wrong — the requested state holds — and treating it as an ordinary success would report a log entry that does not exist.";
126
+ readonly type: "object";
127
+ readonly additionalProperties: false;
128
+ readonly required: readonly ["kind"];
129
+ readonly properties: {
130
+ readonly kind: {
131
+ readonly type: "string";
132
+ readonly enum: readonly ["disabled", "enabled", "updated", "noOp"];
133
+ readonly description: "What the rollback did. `disabled` re-disabled the transport, `enabled` re-advertised it at its prior settings, `updated` restored prior settings on an entry that stayed advertised, and `noOp` means the previous state already matched — nothing was written.";
134
+ };
135
+ readonly logEntryVersionId: {
136
+ readonly type: "string";
137
+ readonly description: "Version id of the log entry the rollback wrote. **Absent when `kind` is `noOp`**, and present otherwise.";
138
+ };
139
+ readonly effectiveAt: {
140
+ readonly type: "string";
141
+ readonly format: "date-time";
142
+ readonly description: "RFC 3339 instant the rollback took effect. Absent for `noOp`.";
143
+ };
144
+ readonly drainingMediator: {
145
+ readonly type: "string";
146
+ readonly description: "Present when rolling back DIDComm left a mediator draining.";
147
+ };
148
+ readonly drainUntil: {
149
+ readonly type: "string";
150
+ readonly format: "date-time";
151
+ readonly description: "When that drain completes.";
152
+ };
153
+ readonly vtaDid: {
154
+ readonly type: "string";
155
+ readonly description: "The agent's own DID.";
156
+ };
157
+ readonly serverless: {
158
+ readonly type: "boolean";
159
+ readonly default: false;
160
+ readonly description: "True when the entry was written locally but not published — the operator must redeploy before any verifier sees it.";
161
+ };
162
+ readonly ext: {
163
+ readonly $ref: "#/$defs/Ext";
164
+ };
165
+ };
166
+ };
167
+ readonly ServiceKind: {
168
+ readonly title: "ServiceKind";
169
+ 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.";
170
+ readonly type: "string";
171
+ readonly enum: readonly ["didcomm", "rest", "tsp", "webauthn"];
172
+ };
173
+ };
174
+ };
175
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
176
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
177
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
178
+ readonly $ref: "#/$defs/Response";
179
+ readonly $defs: {
180
+ readonly Response: {
181
+ readonly $anchor: "response";
182
+ readonly title: "VTA Services — Rollback — response payload";
183
+ readonly description: "Success response to vta/services/rollback. Type https://trusttasks.org/spec/vta/services/rollback/1.0#response.";
184
+ readonly type: "object";
185
+ readonly additionalProperties: false;
186
+ readonly required: readonly ["result"];
187
+ readonly properties: {
188
+ readonly result: {
189
+ readonly $ref: "#/$defs/RollbackResult";
190
+ };
191
+ readonly ext: {
192
+ readonly $ref: "#/$defs/Ext";
193
+ };
194
+ };
195
+ };
196
+ readonly Ext: {
197
+ readonly title: "Ext";
198
+ 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.";
199
+ readonly type: "object";
200
+ readonly minProperties: 1;
201
+ readonly additionalProperties: true;
202
+ readonly propertyNames: {
203
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
204
+ };
205
+ };
206
+ readonly RollbackResult: {
207
+ readonly title: "RollbackResult";
208
+ readonly description: "The outcome of a rollback. Distinct from ServiceMutationResult because a rollback can legitimately publish nothing: if the previous state already equals the current one there is no change to write, and `kind: \"noOp\"` says so with `logEntryVersionId` absent. Treating that as a failure would be wrong — the requested state holds — and treating it as an ordinary success would report a log entry that does not exist.";
209
+ readonly type: "object";
210
+ readonly additionalProperties: false;
211
+ readonly required: readonly ["kind"];
212
+ readonly properties: {
213
+ readonly kind: {
214
+ readonly type: "string";
215
+ readonly enum: readonly ["disabled", "enabled", "updated", "noOp"];
216
+ readonly description: "What the rollback did. `disabled` re-disabled the transport, `enabled` re-advertised it at its prior settings, `updated` restored prior settings on an entry that stayed advertised, and `noOp` means the previous state already matched — nothing was written.";
217
+ };
218
+ readonly logEntryVersionId: {
219
+ readonly type: "string";
220
+ readonly description: "Version id of the log entry the rollback wrote. **Absent when `kind` is `noOp`**, and present otherwise.";
221
+ };
222
+ readonly effectiveAt: {
223
+ readonly type: "string";
224
+ readonly format: "date-time";
225
+ readonly description: "RFC 3339 instant the rollback took effect. Absent for `noOp`.";
226
+ };
227
+ readonly drainingMediator: {
228
+ readonly type: "string";
229
+ readonly description: "Present when rolling back DIDComm left a mediator draining.";
230
+ };
231
+ readonly drainUntil: {
232
+ readonly type: "string";
233
+ readonly format: "date-time";
234
+ readonly description: "When that drain completes.";
235
+ };
236
+ readonly vtaDid: {
237
+ readonly type: "string";
238
+ readonly description: "The agent's own DID.";
239
+ };
240
+ readonly serverless: {
241
+ readonly type: "boolean";
242
+ readonly default: false;
243
+ readonly description: "True when the entry was written locally but not published — the operator must redeploy before any verifier sees it.";
244
+ };
245
+ readonly ext: {
246
+ readonly $ref: "#/$defs/Ext";
247
+ };
248
+ };
249
+ };
250
+ readonly ServiceKind: {
251
+ readonly title: "ServiceKind";
252
+ 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.";
253
+ readonly type: "string";
254
+ readonly enum: readonly ["didcomm", "rest", "tsp", "webauthn"];
255
+ };
256
+ };
257
+ };
258
+ /**
259
+ * SPEC.md §7.2 policy for the request variant, from this specification's
260
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
261
+ * per-specification and cannot be derived from the document alone, and
262
+ * item 2 needs the schema this carries.
263
+ */
264
+ export declare const SPEC: {
265
+ readonly typeUri: "https://trusttasks.org/spec/vta/services/rollback/1.0";
266
+ readonly isBearer: false;
267
+ readonly isProofRequired: true;
268
+ readonly isRecipientRequired: true;
269
+ readonly payloadSchema: {
270
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
271
+ readonly $id: "https://trusttasks.org/spec/vta/services/rollback/1.0";
272
+ readonly title: "VTA Services — Rollback — payload";
273
+ 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.";
274
+ readonly type: "object";
275
+ readonly additionalProperties: false;
276
+ readonly required: readonly ["service"];
277
+ readonly properties: {
278
+ readonly service: {
279
+ readonly $ref: "#/$defs/ServiceKind";
280
+ };
281
+ readonly ext: {
282
+ readonly $ref: "#/$defs/Ext";
283
+ };
284
+ };
285
+ readonly $defs: {
286
+ readonly Response: {
287
+ readonly $anchor: "response";
288
+ readonly title: "VTA Services — Rollback — response payload";
289
+ readonly description: "Success response to vta/services/rollback. Type https://trusttasks.org/spec/vta/services/rollback/1.0#response.";
290
+ readonly type: "object";
291
+ readonly additionalProperties: false;
292
+ readonly required: readonly ["result"];
293
+ readonly properties: {
294
+ readonly result: {
295
+ readonly $ref: "#/$defs/RollbackResult";
296
+ };
297
+ readonly ext: {
298
+ readonly $ref: "#/$defs/Ext";
299
+ };
300
+ };
301
+ };
302
+ readonly Ext: {
303
+ readonly title: "Ext";
304
+ 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.";
305
+ readonly type: "object";
306
+ readonly minProperties: 1;
307
+ readonly additionalProperties: true;
308
+ readonly propertyNames: {
309
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
310
+ };
311
+ };
312
+ readonly RollbackResult: {
313
+ readonly title: "RollbackResult";
314
+ readonly description: "The outcome of a rollback. Distinct from ServiceMutationResult because a rollback can legitimately publish nothing: if the previous state already equals the current one there is no change to write, and `kind: \"noOp\"` says so with `logEntryVersionId` absent. Treating that as a failure would be wrong — the requested state holds — and treating it as an ordinary success would report a log entry that does not exist.";
315
+ readonly type: "object";
316
+ readonly additionalProperties: false;
317
+ readonly required: readonly ["kind"];
318
+ readonly properties: {
319
+ readonly kind: {
320
+ readonly type: "string";
321
+ readonly enum: readonly ["disabled", "enabled", "updated", "noOp"];
322
+ readonly description: "What the rollback did. `disabled` re-disabled the transport, `enabled` re-advertised it at its prior settings, `updated` restored prior settings on an entry that stayed advertised, and `noOp` means the previous state already matched — nothing was written.";
323
+ };
324
+ readonly logEntryVersionId: {
325
+ readonly type: "string";
326
+ readonly description: "Version id of the log entry the rollback wrote. **Absent when `kind` is `noOp`**, and present otherwise.";
327
+ };
328
+ readonly effectiveAt: {
329
+ readonly type: "string";
330
+ readonly format: "date-time";
331
+ readonly description: "RFC 3339 instant the rollback took effect. Absent for `noOp`.";
332
+ };
333
+ readonly drainingMediator: {
334
+ readonly type: "string";
335
+ readonly description: "Present when rolling back DIDComm left a mediator draining.";
336
+ };
337
+ readonly drainUntil: {
338
+ readonly type: "string";
339
+ readonly format: "date-time";
340
+ readonly description: "When that drain completes.";
341
+ };
342
+ readonly vtaDid: {
343
+ readonly type: "string";
344
+ readonly description: "The agent's own DID.";
345
+ };
346
+ readonly serverless: {
347
+ readonly type: "boolean";
348
+ readonly default: false;
349
+ readonly description: "True when the entry was written locally but not published — the operator must redeploy before any verifier sees it.";
350
+ };
351
+ readonly ext: {
352
+ readonly $ref: "#/$defs/Ext";
353
+ };
354
+ };
355
+ };
356
+ readonly ServiceKind: {
357
+ readonly title: "ServiceKind";
358
+ 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.";
359
+ readonly type: "string";
360
+ readonly enum: readonly ["didcomm", "rest", "tsp", "webauthn"];
361
+ };
362
+ };
363
+ };
364
+ };
365
+ /**
366
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
367
+ * tracks the *issuer* party's requirement because a response swaps the
368
+ * parties (§7.3 item 5).
369
+ */
370
+ export declare const RESPONSE_SPEC: {
371
+ readonly typeUri: "https://trusttasks.org/spec/vta/services/rollback/1.0#response";
372
+ readonly isBearer: false;
373
+ readonly isProofRequired: true;
374
+ readonly isRecipientRequired: true;
375
+ readonly payloadSchema: {
376
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
377
+ readonly $ref: "#/$defs/Response";
378
+ readonly $defs: {
379
+ readonly Response: {
380
+ readonly $anchor: "response";
381
+ readonly title: "VTA Services — Rollback — response payload";
382
+ readonly description: "Success response to vta/services/rollback. Type https://trusttasks.org/spec/vta/services/rollback/1.0#response.";
383
+ readonly type: "object";
384
+ readonly additionalProperties: false;
385
+ readonly required: readonly ["result"];
386
+ readonly properties: {
387
+ readonly result: {
388
+ readonly $ref: "#/$defs/RollbackResult";
389
+ };
390
+ readonly ext: {
391
+ readonly $ref: "#/$defs/Ext";
392
+ };
393
+ };
394
+ };
395
+ readonly Ext: {
396
+ readonly title: "Ext";
397
+ 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.";
398
+ readonly type: "object";
399
+ readonly minProperties: 1;
400
+ readonly additionalProperties: true;
401
+ readonly propertyNames: {
402
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
403
+ };
404
+ };
405
+ readonly RollbackResult: {
406
+ readonly title: "RollbackResult";
407
+ readonly description: "The outcome of a rollback. Distinct from ServiceMutationResult because a rollback can legitimately publish nothing: if the previous state already equals the current one there is no change to write, and `kind: \"noOp\"` says so with `logEntryVersionId` absent. Treating that as a failure would be wrong — the requested state holds — and treating it as an ordinary success would report a log entry that does not exist.";
408
+ readonly type: "object";
409
+ readonly additionalProperties: false;
410
+ readonly required: readonly ["kind"];
411
+ readonly properties: {
412
+ readonly kind: {
413
+ readonly type: "string";
414
+ readonly enum: readonly ["disabled", "enabled", "updated", "noOp"];
415
+ readonly description: "What the rollback did. `disabled` re-disabled the transport, `enabled` re-advertised it at its prior settings, `updated` restored prior settings on an entry that stayed advertised, and `noOp` means the previous state already matched — nothing was written.";
416
+ };
417
+ readonly logEntryVersionId: {
418
+ readonly type: "string";
419
+ readonly description: "Version id of the log entry the rollback wrote. **Absent when `kind` is `noOp`**, and present otherwise.";
420
+ };
421
+ readonly effectiveAt: {
422
+ readonly type: "string";
423
+ readonly format: "date-time";
424
+ readonly description: "RFC 3339 instant the rollback took effect. Absent for `noOp`.";
425
+ };
426
+ readonly drainingMediator: {
427
+ readonly type: "string";
428
+ readonly description: "Present when rolling back DIDComm left a mediator draining.";
429
+ };
430
+ readonly drainUntil: {
431
+ readonly type: "string";
432
+ readonly format: "date-time";
433
+ readonly description: "When that drain completes.";
434
+ };
435
+ readonly vtaDid: {
436
+ readonly type: "string";
437
+ readonly description: "The agent's own DID.";
438
+ };
439
+ readonly serverless: {
440
+ readonly type: "boolean";
441
+ readonly default: false;
442
+ readonly description: "True when the entry was written locally but not published — the operator must redeploy before any verifier sees it.";
443
+ };
444
+ readonly ext: {
445
+ readonly $ref: "#/$defs/Ext";
446
+ };
447
+ };
448
+ };
449
+ readonly ServiceKind: {
450
+ readonly title: "ServiceKind";
451
+ 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.";
452
+ readonly type: "string";
453
+ readonly enum: readonly ["didcomm", "rest", "tsp", "webauthn"];
454
+ };
455
+ };
456
+ };
457
+ };
458
+ //# 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;IACz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