@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,452 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/services/disable/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/disable. Stops advertising a transport and republishes the log. For `didcomm` this schedules a drain rather than cutting delivery immediately — see `drainUntil` in the result.
11
+ */
12
+ export interface VTAServicesDisablePayload {
13
+ service: ServiceKind;
14
+ ext?: Ext;
15
+ /**
16
+ * `didcomm` only: how long the unadvertised mediator keeps accepting delivery. Absent takes the agent's default. **0 means immediate teardown, and is only honoured when the request did not arrive through the mediator being torn down** — over a DIDComm-carried request the agent enforces a floor (1 hour), because cutting the mediator mid-request would discard the reply to the very task asking for it. A caller cannot rely on 0 being obeyed; read `drainUntil` in the result to learn what actually happened.
17
+ */
18
+ drainTtlSecs?: number;
19
+ }
20
+ /**
21
+ * 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.
22
+ */
23
+ export interface Ext {
24
+ [k: string]: unknown | undefined;
25
+ }
26
+ /**
27
+ * Success response to vta/services/disable. Type https://trusttasks.org/spec/vta/services/disable/1.0#response.
28
+ */
29
+ export interface VTAServicesDisableResponsePayload {
30
+ result: ServiceMutationResult;
31
+ ext?: Ext;
32
+ }
33
+ /**
34
+ * 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.
35
+ */
36
+ export interface ServiceMutationResult {
37
+ /**
38
+ * Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history.
39
+ */
40
+ logEntryVersionId: string;
41
+ /**
42
+ * RFC 3339 instant the change took effect — the same instant stamped on the new log entry.
43
+ */
44
+ effectiveAt: string;
45
+ /**
46
+ * 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.
47
+ */
48
+ drainUntil?: string;
49
+ /**
50
+ * The mediator being drained, when `drainUntil` is present.
51
+ */
52
+ drainingMediator?: string;
53
+ /**
54
+ * 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.
55
+ */
56
+ vtaDid?: string;
57
+ /**
58
+ * 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.
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/disable/1.0";
65
+ /** Stable alias for this specification's request payload shape. */
66
+ export type Payload = VTAServicesDisablePayload;
67
+ /** Trust Task response type URI (request type URI + "#response"). */
68
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/services/disable/1.0#response";
69
+ /** Stable alias for this specification's success-response payload shape. */
70
+ export type Response = VTAServicesDisableResponsePayload;
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/disable/1.0";
83
+ readonly title: "VTA Services — Disable — payload";
84
+ readonly description: "Request payload for vta/services/disable. Stops advertising a transport and republishes the log. For `didcomm` this schedules a drain rather than cutting delivery immediately — see `drainUntil` in the result.";
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
+ readonly drainTtlSecs: {
96
+ readonly type: "integer";
97
+ readonly minimum: 0;
98
+ readonly description: "`didcomm` only: how long the unadvertised mediator keeps accepting delivery. Absent takes the agent's default. **0 means immediate teardown, and is only honoured when the request did not arrive through the mediator being torn down** — over a DIDComm-carried request the agent enforces a floor (1 hour), because cutting the mediator mid-request would discard the reply to the very task asking for it. A caller cannot rely on 0 being obeyed; read `drainUntil` in the result to learn what actually happened.";
99
+ };
100
+ };
101
+ readonly $defs: {
102
+ readonly Response: {
103
+ readonly $anchor: "response";
104
+ readonly title: "VTA Services — Disable — response payload";
105
+ readonly description: "Success response to vta/services/disable. Type https://trusttasks.org/spec/vta/services/disable/1.0#response.";
106
+ readonly type: "object";
107
+ readonly additionalProperties: false;
108
+ readonly required: readonly ["result"];
109
+ readonly properties: {
110
+ readonly result: {
111
+ readonly $ref: "#/$defs/ServiceMutationResult";
112
+ };
113
+ readonly ext: {
114
+ readonly $ref: "#/$defs/Ext";
115
+ };
116
+ };
117
+ };
118
+ readonly Ext: {
119
+ readonly title: "Ext";
120
+ 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.";
121
+ readonly type: "object";
122
+ readonly minProperties: 1;
123
+ readonly additionalProperties: true;
124
+ readonly propertyNames: {
125
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
126
+ };
127
+ };
128
+ readonly ServiceMutationResult: {
129
+ readonly title: "ServiceMutationResult";
130
+ 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.";
131
+ readonly type: "object";
132
+ readonly additionalProperties: false;
133
+ readonly required: readonly ["logEntryVersionId", "effectiveAt"];
134
+ readonly properties: {
135
+ readonly logEntryVersionId: {
136
+ readonly type: "string";
137
+ readonly minLength: 1;
138
+ readonly description: "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history.";
139
+ };
140
+ readonly effectiveAt: {
141
+ readonly type: "string";
142
+ readonly format: "date-time";
143
+ readonly description: "RFC 3339 instant the change took effect — the same instant stamped on the new log entry.";
144
+ };
145
+ readonly drainUntil: {
146
+ readonly type: "string";
147
+ readonly format: "date-time";
148
+ 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.";
149
+ };
150
+ readonly drainingMediator: {
151
+ readonly type: "string";
152
+ readonly description: "The mediator being drained, when `drainUntil` is present.";
153
+ };
154
+ readonly vtaDid: {
155
+ readonly type: "string";
156
+ 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.";
157
+ };
158
+ readonly serverless: {
159
+ readonly type: "boolean";
160
+ 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.";
161
+ readonly default: false;
162
+ };
163
+ readonly ext: {
164
+ readonly $ref: "#/$defs/Ext";
165
+ };
166
+ };
167
+ };
168
+ readonly ServiceKind: {
169
+ readonly title: "ServiceKind";
170
+ 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.";
171
+ readonly type: "string";
172
+ readonly enum: readonly ["didcomm", "rest", "tsp", "webauthn"];
173
+ };
174
+ };
175
+ };
176
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
177
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
178
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
179
+ readonly $ref: "#/$defs/Response";
180
+ readonly $defs: {
181
+ readonly Response: {
182
+ readonly $anchor: "response";
183
+ readonly title: "VTA Services — Disable — response payload";
184
+ readonly description: "Success response to vta/services/disable. Type https://trusttasks.org/spec/vta/services/disable/1.0#response.";
185
+ readonly type: "object";
186
+ readonly additionalProperties: false;
187
+ readonly required: readonly ["result"];
188
+ readonly properties: {
189
+ readonly result: {
190
+ readonly $ref: "#/$defs/ServiceMutationResult";
191
+ };
192
+ readonly ext: {
193
+ readonly $ref: "#/$defs/Ext";
194
+ };
195
+ };
196
+ };
197
+ readonly Ext: {
198
+ readonly title: "Ext";
199
+ 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.";
200
+ readonly type: "object";
201
+ readonly minProperties: 1;
202
+ readonly additionalProperties: true;
203
+ readonly propertyNames: {
204
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
205
+ };
206
+ };
207
+ readonly ServiceMutationResult: {
208
+ readonly title: "ServiceMutationResult";
209
+ 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.";
210
+ readonly type: "object";
211
+ readonly additionalProperties: false;
212
+ readonly required: readonly ["logEntryVersionId", "effectiveAt"];
213
+ readonly properties: {
214
+ readonly logEntryVersionId: {
215
+ readonly type: "string";
216
+ readonly minLength: 1;
217
+ readonly description: "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history.";
218
+ };
219
+ readonly effectiveAt: {
220
+ readonly type: "string";
221
+ readonly format: "date-time";
222
+ readonly description: "RFC 3339 instant the change took effect — the same instant stamped on the new log entry.";
223
+ };
224
+ readonly drainUntil: {
225
+ readonly type: "string";
226
+ readonly format: "date-time";
227
+ 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.";
228
+ };
229
+ readonly drainingMediator: {
230
+ readonly type: "string";
231
+ readonly description: "The mediator being drained, when `drainUntil` is present.";
232
+ };
233
+ readonly vtaDid: {
234
+ readonly type: "string";
235
+ 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.";
236
+ };
237
+ readonly serverless: {
238
+ readonly type: "boolean";
239
+ 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.";
240
+ readonly default: false;
241
+ };
242
+ readonly ext: {
243
+ readonly $ref: "#/$defs/Ext";
244
+ };
245
+ };
246
+ };
247
+ readonly ServiceKind: {
248
+ readonly title: "ServiceKind";
249
+ 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.";
250
+ readonly type: "string";
251
+ readonly enum: readonly ["didcomm", "rest", "tsp", "webauthn"];
252
+ };
253
+ };
254
+ };
255
+ /**
256
+ * SPEC.md §7.2 policy for the request variant, from this specification's
257
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
258
+ * per-specification and cannot be derived from the document alone, and
259
+ * item 2 needs the schema this carries.
260
+ */
261
+ export declare const SPEC: {
262
+ readonly typeUri: "https://trusttasks.org/spec/vta/services/disable/1.0";
263
+ readonly isBearer: false;
264
+ readonly isProofRequired: true;
265
+ readonly isRecipientRequired: true;
266
+ readonly payloadSchema: {
267
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
268
+ readonly $id: "https://trusttasks.org/spec/vta/services/disable/1.0";
269
+ readonly title: "VTA Services — Disable — payload";
270
+ readonly description: "Request payload for vta/services/disable. Stops advertising a transport and republishes the log. For `didcomm` this schedules a drain rather than cutting delivery immediately — see `drainUntil` in the result.";
271
+ readonly type: "object";
272
+ readonly additionalProperties: false;
273
+ readonly required: readonly ["service"];
274
+ readonly properties: {
275
+ readonly service: {
276
+ readonly $ref: "#/$defs/ServiceKind";
277
+ };
278
+ readonly ext: {
279
+ readonly $ref: "#/$defs/Ext";
280
+ };
281
+ readonly drainTtlSecs: {
282
+ readonly type: "integer";
283
+ readonly minimum: 0;
284
+ readonly description: "`didcomm` only: how long the unadvertised mediator keeps accepting delivery. Absent takes the agent's default. **0 means immediate teardown, and is only honoured when the request did not arrive through the mediator being torn down** — over a DIDComm-carried request the agent enforces a floor (1 hour), because cutting the mediator mid-request would discard the reply to the very task asking for it. A caller cannot rely on 0 being obeyed; read `drainUntil` in the result to learn what actually happened.";
285
+ };
286
+ };
287
+ readonly $defs: {
288
+ readonly Response: {
289
+ readonly $anchor: "response";
290
+ readonly title: "VTA Services — Disable — response payload";
291
+ readonly description: "Success response to vta/services/disable. Type https://trusttasks.org/spec/vta/services/disable/1.0#response.";
292
+ readonly type: "object";
293
+ readonly additionalProperties: false;
294
+ readonly required: readonly ["result"];
295
+ readonly properties: {
296
+ readonly result: {
297
+ readonly $ref: "#/$defs/ServiceMutationResult";
298
+ };
299
+ readonly ext: {
300
+ readonly $ref: "#/$defs/Ext";
301
+ };
302
+ };
303
+ };
304
+ readonly Ext: {
305
+ readonly title: "Ext";
306
+ 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.";
307
+ readonly type: "object";
308
+ readonly minProperties: 1;
309
+ readonly additionalProperties: true;
310
+ readonly propertyNames: {
311
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
312
+ };
313
+ };
314
+ readonly ServiceMutationResult: {
315
+ readonly title: "ServiceMutationResult";
316
+ 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.";
317
+ readonly type: "object";
318
+ readonly additionalProperties: false;
319
+ readonly required: readonly ["logEntryVersionId", "effectiveAt"];
320
+ readonly properties: {
321
+ readonly logEntryVersionId: {
322
+ readonly type: "string";
323
+ readonly minLength: 1;
324
+ readonly description: "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history.";
325
+ };
326
+ readonly effectiveAt: {
327
+ readonly type: "string";
328
+ readonly format: "date-time";
329
+ readonly description: "RFC 3339 instant the change took effect — the same instant stamped on the new log entry.";
330
+ };
331
+ readonly drainUntil: {
332
+ readonly type: "string";
333
+ readonly format: "date-time";
334
+ 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.";
335
+ };
336
+ readonly drainingMediator: {
337
+ readonly type: "string";
338
+ readonly description: "The mediator being drained, when `drainUntil` is present.";
339
+ };
340
+ readonly vtaDid: {
341
+ readonly type: "string";
342
+ 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.";
343
+ };
344
+ readonly serverless: {
345
+ readonly type: "boolean";
346
+ 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.";
347
+ readonly default: false;
348
+ };
349
+ readonly ext: {
350
+ readonly $ref: "#/$defs/Ext";
351
+ };
352
+ };
353
+ };
354
+ readonly ServiceKind: {
355
+ readonly title: "ServiceKind";
356
+ 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.";
357
+ readonly type: "string";
358
+ readonly enum: readonly ["didcomm", "rest", "tsp", "webauthn"];
359
+ };
360
+ };
361
+ };
362
+ };
363
+ /**
364
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
365
+ * tracks the *issuer* party's requirement because a response swaps the
366
+ * parties (§7.3 item 5).
367
+ */
368
+ export declare const RESPONSE_SPEC: {
369
+ readonly typeUri: "https://trusttasks.org/spec/vta/services/disable/1.0#response";
370
+ readonly isBearer: false;
371
+ readonly isProofRequired: true;
372
+ readonly isRecipientRequired: true;
373
+ readonly payloadSchema: {
374
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
375
+ readonly $ref: "#/$defs/Response";
376
+ readonly $defs: {
377
+ readonly Response: {
378
+ readonly $anchor: "response";
379
+ readonly title: "VTA Services — Disable — response payload";
380
+ readonly description: "Success response to vta/services/disable. Type https://trusttasks.org/spec/vta/services/disable/1.0#response.";
381
+ readonly type: "object";
382
+ readonly additionalProperties: false;
383
+ readonly required: readonly ["result"];
384
+ readonly properties: {
385
+ readonly result: {
386
+ readonly $ref: "#/$defs/ServiceMutationResult";
387
+ };
388
+ readonly ext: {
389
+ readonly $ref: "#/$defs/Ext";
390
+ };
391
+ };
392
+ };
393
+ readonly Ext: {
394
+ readonly title: "Ext";
395
+ 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.";
396
+ readonly type: "object";
397
+ readonly minProperties: 1;
398
+ readonly additionalProperties: true;
399
+ readonly propertyNames: {
400
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
401
+ };
402
+ };
403
+ readonly ServiceMutationResult: {
404
+ readonly title: "ServiceMutationResult";
405
+ 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.";
406
+ readonly type: "object";
407
+ readonly additionalProperties: false;
408
+ readonly required: readonly ["logEntryVersionId", "effectiveAt"];
409
+ readonly properties: {
410
+ readonly logEntryVersionId: {
411
+ readonly type: "string";
412
+ readonly minLength: 1;
413
+ readonly description: "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history.";
414
+ };
415
+ readonly effectiveAt: {
416
+ readonly type: "string";
417
+ readonly format: "date-time";
418
+ readonly description: "RFC 3339 instant the change took effect — the same instant stamped on the new log entry.";
419
+ };
420
+ readonly drainUntil: {
421
+ readonly type: "string";
422
+ readonly format: "date-time";
423
+ 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.";
424
+ };
425
+ readonly drainingMediator: {
426
+ readonly type: "string";
427
+ readonly description: "The mediator being drained, when `drainUntil` is present.";
428
+ };
429
+ readonly vtaDid: {
430
+ readonly type: "string";
431
+ 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.";
432
+ };
433
+ readonly serverless: {
434
+ readonly type: "boolean";
435
+ 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.";
436
+ readonly default: false;
437
+ };
438
+ readonly ext: {
439
+ readonly $ref: "#/$defs/Ext";
440
+ };
441
+ };
442
+ };
443
+ readonly ServiceKind: {
444
+ readonly title: "ServiceKind";
445
+ 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.";
446
+ readonly type: "string";
447
+ readonly enum: readonly ["didcomm", "rest", "tsp", "webauthn"];
448
+ };
449
+ };
450
+ };
451
+ };
452
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/services/disable/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,yBAAyB;IACxC,OAAO,EAAE,WAAW,CAAC;IACrB,GAAG,CAAC,EAAE,GAAG,CAAC;IACV;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD,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,sDAA+D,CAAC;AAExF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,yBAAyB,CAAC;AAEhD,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,+DAAwE,CAAC;AAE1G,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,iCAAiC,CAAC;AAEzD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2GjB,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"}