@openvtc/trust-tasks 0.21.1 → 0.21.3

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 (32) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/dist/index.d.ts +5 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +5 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/vta/attestation/config-report/0.1/payload.d.ts +378 -0
  7. package/dist/vta/attestation/config-report/0.1/payload.d.ts.map +1 -0
  8. package/dist/vta/attestation/config-report/0.1/payload.js +212 -0
  9. package/dist/vta/attestation/config-report/0.1/payload.js.map +1 -0
  10. package/dist/vta/attestation/report/0.1/payload.d.ts +350 -0
  11. package/dist/vta/attestation/report/0.1/payload.d.ts.map +1 -0
  12. package/dist/vta/attestation/report/0.1/payload.js +196 -0
  13. package/dist/vta/attestation/report/0.1/payload.js.map +1 -0
  14. package/dist/vta/attestation/status/0.1/payload.d.ts +274 -0
  15. package/dist/vta/attestation/status/0.1/payload.d.ts.map +1 -0
  16. package/dist/vta/attestation/status/0.1/payload.js +158 -0
  17. package/dist/vta/attestation/status/0.1/payload.js.map +1 -0
  18. package/dist/vta/services/report/0.1/payload.d.ts +618 -0
  19. package/dist/vta/services/report/0.1/payload.d.ts.map +1 -0
  20. package/dist/vta/services/report/0.1/payload.js +322 -0
  21. package/dist/vta/services/report/0.1/payload.js.map +1 -0
  22. package/dist/vta/services/update/1.1/payload.d.ts +490 -0
  23. package/dist/vta/services/update/1.1/payload.d.ts.map +1 -0
  24. package/dist/vta/services/update/1.1/payload.js +269 -0
  25. package/dist/vta/services/update/1.1/payload.js.map +1 -0
  26. package/package.json +1 -1
  27. package/src/index.ts +5 -0
  28. package/src/vta/attestation/config-report/0.1/payload.ts +273 -0
  29. package/src/vta/attestation/report/0.1/payload.ts +253 -0
  30. package/src/vta/attestation/status/0.1/payload.ts +203 -0
  31. package/src/vta/services/report/0.1/payload.ts +419 -0
  32. package/src/vta/services/update/1.1/payload.ts +326 -0
@@ -0,0 +1,490 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/services/update/1.1/payload.schema.json
4
+ */
5
+ import type { Ext, ServiceKind, ServiceMutationResult } from "../../../../_shared/components.js";
6
+ /**
7
+ * Request payload for vta/services/update. Replaces the settings on a transport that is already advertised. Refused when the transport is not currently enabled — that case is `enable`, and conflating the two would let a typo silently advertise a service the operator meant to change.
8
+ */
9
+ export interface VTAServicesUpdatePayload {
10
+ service: ServiceKind;
11
+ /**
12
+ * Kind-specific settings. Which member applies is decided by `service`, and the two must agree — a `rest` request carrying `mediatorDid` is malformed, not a request with an ignored field. `didcomm` and `tsp` take `mediatorDid`; `rest` and `webauthn` take `url`.
13
+ */
14
+ config: {
15
+ /**
16
+ * Mediator to route through. Applies to `didcomm` and `tsp`.
17
+ */
18
+ mediatorDid?: string;
19
+ /**
20
+ * Endpoint to advertise. Applies to `rest` and `webauthn`. MUST be `https://`, with no fragment and no userinfo — the agent refuses anything else, because this value ends up in a signed DID document that clients will fetch.
21
+ */
22
+ url?: string;
23
+ /**
24
+ * `didcomm` only: skip the mediator handshake except for DID resolution. Absent means the handshake runs, which is the safe reading — this carries no schema-level default on purpose, because a default would materialise the field into a `rest` or `webauthn` config where it has no meaning. The handshake is what proves the mediator is reachable and willing, so forcing past it can advertise a mediator that cannot actually deliver.
25
+ */
26
+ force?: boolean;
27
+ /**
28
+ * `didcomm` only: trust-ping round-trip budget. Default 10.
29
+ */
30
+ handshakeTimeoutSecs?: number;
31
+ };
32
+ ext?: Ext;
33
+ /**
34
+ * Mediated transports only (`didcomm`, `tsp`): how long the replaced mediator keeps accepting delivery for correspondents still holding the previous DID document. Refused for `rest` and `webauthn`. Absent takes the agent's default. The agent may raise a value below its floor to the floor — and does, over a request that arrived through the mediator being replaced — and one mediator carrying both mediated transports drains once for both, so read `drainUntil` in the result for the window actually applied.
35
+ */
36
+ drainTtlSecs?: number;
37
+ }
38
+ /**
39
+ * Success response to vta/services/update. Type https://trusttasks.org/spec/vta/services/update/1.1#response.
40
+ */
41
+ export interface VTAServicesUpdateResponsePayload {
42
+ result: ServiceMutationResult;
43
+ ext?: Ext;
44
+ }
45
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
46
+ export type { Ext, ServiceKind, ServiceMutationResult };
47
+ /** Trust Task type URI. */
48
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vta/services/update/1.1";
49
+ /** Stable alias for this specification's request payload shape. */
50
+ export type Payload = VTAServicesUpdatePayload;
51
+ /** Trust Task response type URI (request type URI + "#response"). */
52
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/services/update/1.1#response";
53
+ /** Stable alias for this specification's success-response payload shape. */
54
+ export type Response = VTAServicesUpdateResponsePayload;
55
+ /**
56
+ * This specification's payload schema, as a value.
57
+ *
58
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
59
+ * rather than only as a `.json` file because TypeScript types are erased
60
+ * at runtime: without a schema a consumer has nothing to validate, and
61
+ * every REQUIRED payload member is optional in practice. Cross-file
62
+ * `$ref`s are already inlined, so it needs no resolver.
63
+ */
64
+ export declare const PAYLOAD_SCHEMA: {
65
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
66
+ readonly $id: "https://trusttasks.org/spec/vta/services/update/1.1";
67
+ readonly title: "VTA Services — Update — payload";
68
+ readonly description: "Request payload for vta/services/update. Replaces the settings on a transport that is already advertised. Refused when the transport is not currently enabled — that case is `enable`, and conflating the two would let a typo silently advertise a service the operator meant to change.";
69
+ readonly type: "object";
70
+ readonly additionalProperties: false;
71
+ readonly required: readonly ["service", "config"];
72
+ readonly properties: {
73
+ readonly service: {
74
+ readonly $ref: "#/$defs/ServiceKind";
75
+ };
76
+ readonly config: {
77
+ readonly type: "object";
78
+ readonly additionalProperties: false;
79
+ readonly description: "Kind-specific settings. Which member applies is decided by `service`, and the two must agree — a `rest` request carrying `mediatorDid` is malformed, not a request with an ignored field. `didcomm` and `tsp` take `mediatorDid`; `rest` and `webauthn` take `url`.";
80
+ readonly properties: {
81
+ readonly mediatorDid: {
82
+ readonly type: "string";
83
+ readonly minLength: 1;
84
+ readonly description: "Mediator to route through. Applies to `didcomm` and `tsp`.";
85
+ };
86
+ readonly url: {
87
+ readonly type: "string";
88
+ readonly minLength: 1;
89
+ readonly description: "Endpoint to advertise. Applies to `rest` and `webauthn`. MUST be `https://`, with no fragment and no userinfo — the agent refuses anything else, because this value ends up in a signed DID document that clients will fetch.";
90
+ };
91
+ readonly force: {
92
+ readonly type: "boolean";
93
+ readonly description: "`didcomm` only: skip the mediator handshake except for DID resolution. Absent means the handshake runs, which is the safe reading — this carries no schema-level default on purpose, because a default would materialise the field into a `rest` or `webauthn` config where it has no meaning. The handshake is what proves the mediator is reachable and willing, so forcing past it can advertise a mediator that cannot actually deliver.";
94
+ };
95
+ readonly handshakeTimeoutSecs: {
96
+ readonly type: "integer";
97
+ readonly minimum: 1;
98
+ readonly description: "`didcomm` only: trust-ping round-trip budget. Default 10.";
99
+ };
100
+ };
101
+ };
102
+ readonly ext: {
103
+ readonly $ref: "#/$defs/Ext";
104
+ };
105
+ readonly drainTtlSecs: {
106
+ readonly type: "integer";
107
+ readonly minimum: 0;
108
+ readonly description: "Mediated transports only (`didcomm`, `tsp`): how long the replaced mediator keeps accepting delivery for correspondents still holding the previous DID document. Refused for `rest` and `webauthn`. Absent takes the agent's default. The agent may raise a value below its floor to the floor — and does, over a request that arrived through the mediator being replaced — and one mediator carrying both mediated transports drains once for both, so read `drainUntil` in the result for the window actually applied.";
109
+ };
110
+ };
111
+ readonly $defs: {
112
+ readonly Response: {
113
+ readonly $anchor: "response";
114
+ readonly title: "VTA Services — Update — response payload";
115
+ readonly description: "Success response to vta/services/update. Type https://trusttasks.org/spec/vta/services/update/1.1#response.";
116
+ readonly type: "object";
117
+ readonly additionalProperties: false;
118
+ readonly required: readonly ["result"];
119
+ readonly properties: {
120
+ readonly result: {
121
+ readonly $ref: "#/$defs/ServiceMutationResult";
122
+ };
123
+ readonly ext: {
124
+ readonly $ref: "#/$defs/Ext";
125
+ };
126
+ };
127
+ };
128
+ readonly Ext: {
129
+ readonly title: "Ext";
130
+ 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.";
131
+ readonly type: "object";
132
+ readonly minProperties: 1;
133
+ readonly additionalProperties: true;
134
+ readonly propertyNames: {
135
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
136
+ };
137
+ };
138
+ readonly ServiceMutationResult: {
139
+ readonly title: "ServiceMutationResult";
140
+ 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.";
141
+ readonly type: "object";
142
+ readonly additionalProperties: false;
143
+ readonly required: readonly ["logEntryVersionId", "effectiveAt"];
144
+ readonly properties: {
145
+ readonly logEntryVersionId: {
146
+ readonly type: "string";
147
+ readonly minLength: 1;
148
+ readonly description: "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history.";
149
+ };
150
+ readonly effectiveAt: {
151
+ readonly type: "string";
152
+ readonly format: "date-time";
153
+ readonly description: "RFC 3339 instant the change took effect — the same instant stamped on the new log entry.";
154
+ };
155
+ readonly drainUntil: {
156
+ readonly type: "string";
157
+ readonly format: "date-time";
158
+ 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.";
159
+ };
160
+ readonly drainingMediator: {
161
+ readonly type: "string";
162
+ readonly description: "The mediator being drained, when `drainUntil` is present.";
163
+ };
164
+ readonly vtaDid: {
165
+ readonly type: "string";
166
+ 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.";
167
+ };
168
+ readonly serverless: {
169
+ readonly type: "boolean";
170
+ 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.";
171
+ readonly default: false;
172
+ };
173
+ readonly ext: {
174
+ readonly $ref: "#/$defs/Ext";
175
+ };
176
+ };
177
+ };
178
+ readonly ServiceKind: {
179
+ readonly title: "ServiceKind";
180
+ 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.";
181
+ readonly type: "string";
182
+ readonly enum: readonly ["didcomm", "rest", "tsp", "webauthn"];
183
+ };
184
+ };
185
+ };
186
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
187
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
188
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
189
+ readonly $ref: "#/$defs/Response";
190
+ readonly $defs: {
191
+ readonly Response: {
192
+ readonly $anchor: "response";
193
+ readonly title: "VTA Services — Update — response payload";
194
+ readonly description: "Success response to vta/services/update. Type https://trusttasks.org/spec/vta/services/update/1.1#response.";
195
+ readonly type: "object";
196
+ readonly additionalProperties: false;
197
+ readonly required: readonly ["result"];
198
+ readonly properties: {
199
+ readonly result: {
200
+ readonly $ref: "#/$defs/ServiceMutationResult";
201
+ };
202
+ readonly ext: {
203
+ readonly $ref: "#/$defs/Ext";
204
+ };
205
+ };
206
+ };
207
+ readonly Ext: {
208
+ readonly title: "Ext";
209
+ 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.";
210
+ readonly type: "object";
211
+ readonly minProperties: 1;
212
+ readonly additionalProperties: true;
213
+ readonly propertyNames: {
214
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
215
+ };
216
+ };
217
+ readonly ServiceMutationResult: {
218
+ readonly title: "ServiceMutationResult";
219
+ 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.";
220
+ readonly type: "object";
221
+ readonly additionalProperties: false;
222
+ readonly required: readonly ["logEntryVersionId", "effectiveAt"];
223
+ readonly properties: {
224
+ readonly logEntryVersionId: {
225
+ readonly type: "string";
226
+ readonly minLength: 1;
227
+ readonly description: "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history.";
228
+ };
229
+ readonly effectiveAt: {
230
+ readonly type: "string";
231
+ readonly format: "date-time";
232
+ readonly description: "RFC 3339 instant the change took effect — the same instant stamped on the new log entry.";
233
+ };
234
+ readonly drainUntil: {
235
+ readonly type: "string";
236
+ readonly format: "date-time";
237
+ 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.";
238
+ };
239
+ readonly drainingMediator: {
240
+ readonly type: "string";
241
+ readonly description: "The mediator being drained, when `drainUntil` is present.";
242
+ };
243
+ readonly vtaDid: {
244
+ readonly type: "string";
245
+ 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.";
246
+ };
247
+ readonly serverless: {
248
+ readonly type: "boolean";
249
+ 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.";
250
+ readonly default: false;
251
+ };
252
+ readonly ext: {
253
+ readonly $ref: "#/$defs/Ext";
254
+ };
255
+ };
256
+ };
257
+ readonly ServiceKind: {
258
+ readonly title: "ServiceKind";
259
+ 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.";
260
+ readonly type: "string";
261
+ readonly enum: readonly ["didcomm", "rest", "tsp", "webauthn"];
262
+ };
263
+ };
264
+ };
265
+ /**
266
+ * SPEC.md §7.2 policy for the request variant, from this specification's
267
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
268
+ * per-specification and cannot be derived from the document alone, and
269
+ * item 2 needs the schema this carries.
270
+ */
271
+ export declare const SPEC: {
272
+ readonly typeUri: "https://trusttasks.org/spec/vta/services/update/1.1";
273
+ readonly isBearer: false;
274
+ readonly isProofRequired: true;
275
+ readonly isRecipientRequired: true;
276
+ readonly isIssuedAtRequired: true;
277
+ readonly payloadSchema: {
278
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
279
+ readonly $id: "https://trusttasks.org/spec/vta/services/update/1.1";
280
+ readonly title: "VTA Services — Update — payload";
281
+ readonly description: "Request payload for vta/services/update. Replaces the settings on a transport that is already advertised. Refused when the transport is not currently enabled — that case is `enable`, and conflating the two would let a typo silently advertise a service the operator meant to change.";
282
+ readonly type: "object";
283
+ readonly additionalProperties: false;
284
+ readonly required: readonly ["service", "config"];
285
+ readonly properties: {
286
+ readonly service: {
287
+ readonly $ref: "#/$defs/ServiceKind";
288
+ };
289
+ readonly config: {
290
+ readonly type: "object";
291
+ readonly additionalProperties: false;
292
+ readonly description: "Kind-specific settings. Which member applies is decided by `service`, and the two must agree — a `rest` request carrying `mediatorDid` is malformed, not a request with an ignored field. `didcomm` and `tsp` take `mediatorDid`; `rest` and `webauthn` take `url`.";
293
+ readonly properties: {
294
+ readonly mediatorDid: {
295
+ readonly type: "string";
296
+ readonly minLength: 1;
297
+ readonly description: "Mediator to route through. Applies to `didcomm` and `tsp`.";
298
+ };
299
+ readonly url: {
300
+ readonly type: "string";
301
+ readonly minLength: 1;
302
+ readonly description: "Endpoint to advertise. Applies to `rest` and `webauthn`. MUST be `https://`, with no fragment and no userinfo — the agent refuses anything else, because this value ends up in a signed DID document that clients will fetch.";
303
+ };
304
+ readonly force: {
305
+ readonly type: "boolean";
306
+ readonly description: "`didcomm` only: skip the mediator handshake except for DID resolution. Absent means the handshake runs, which is the safe reading — this carries no schema-level default on purpose, because a default would materialise the field into a `rest` or `webauthn` config where it has no meaning. The handshake is what proves the mediator is reachable and willing, so forcing past it can advertise a mediator that cannot actually deliver.";
307
+ };
308
+ readonly handshakeTimeoutSecs: {
309
+ readonly type: "integer";
310
+ readonly minimum: 1;
311
+ readonly description: "`didcomm` only: trust-ping round-trip budget. Default 10.";
312
+ };
313
+ };
314
+ };
315
+ readonly ext: {
316
+ readonly $ref: "#/$defs/Ext";
317
+ };
318
+ readonly drainTtlSecs: {
319
+ readonly type: "integer";
320
+ readonly minimum: 0;
321
+ readonly description: "Mediated transports only (`didcomm`, `tsp`): how long the replaced mediator keeps accepting delivery for correspondents still holding the previous DID document. Refused for `rest` and `webauthn`. Absent takes the agent's default. The agent may raise a value below its floor to the floor — and does, over a request that arrived through the mediator being replaced — and one mediator carrying both mediated transports drains once for both, so read `drainUntil` in the result for the window actually applied.";
322
+ };
323
+ };
324
+ readonly $defs: {
325
+ readonly Response: {
326
+ readonly $anchor: "response";
327
+ readonly title: "VTA Services — Update — response payload";
328
+ readonly description: "Success response to vta/services/update. Type https://trusttasks.org/spec/vta/services/update/1.1#response.";
329
+ readonly type: "object";
330
+ readonly additionalProperties: false;
331
+ readonly required: readonly ["result"];
332
+ readonly properties: {
333
+ readonly result: {
334
+ readonly $ref: "#/$defs/ServiceMutationResult";
335
+ };
336
+ readonly ext: {
337
+ readonly $ref: "#/$defs/Ext";
338
+ };
339
+ };
340
+ };
341
+ readonly Ext: {
342
+ readonly title: "Ext";
343
+ 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.";
344
+ readonly type: "object";
345
+ readonly minProperties: 1;
346
+ readonly additionalProperties: true;
347
+ readonly propertyNames: {
348
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
349
+ };
350
+ };
351
+ readonly ServiceMutationResult: {
352
+ readonly title: "ServiceMutationResult";
353
+ 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.";
354
+ readonly type: "object";
355
+ readonly additionalProperties: false;
356
+ readonly required: readonly ["logEntryVersionId", "effectiveAt"];
357
+ readonly properties: {
358
+ readonly logEntryVersionId: {
359
+ readonly type: "string";
360
+ readonly minLength: 1;
361
+ readonly description: "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history.";
362
+ };
363
+ readonly effectiveAt: {
364
+ readonly type: "string";
365
+ readonly format: "date-time";
366
+ readonly description: "RFC 3339 instant the change took effect — the same instant stamped on the new log entry.";
367
+ };
368
+ readonly drainUntil: {
369
+ readonly type: "string";
370
+ readonly format: "date-time";
371
+ 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.";
372
+ };
373
+ readonly drainingMediator: {
374
+ readonly type: "string";
375
+ readonly description: "The mediator being drained, when `drainUntil` is present.";
376
+ };
377
+ readonly vtaDid: {
378
+ readonly type: "string";
379
+ 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.";
380
+ };
381
+ readonly serverless: {
382
+ readonly type: "boolean";
383
+ 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.";
384
+ readonly default: false;
385
+ };
386
+ readonly ext: {
387
+ readonly $ref: "#/$defs/Ext";
388
+ };
389
+ };
390
+ };
391
+ readonly ServiceKind: {
392
+ readonly title: "ServiceKind";
393
+ 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.";
394
+ readonly type: "string";
395
+ readonly enum: readonly ["didcomm", "rest", "tsp", "webauthn"];
396
+ };
397
+ };
398
+ };
399
+ };
400
+ /**
401
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
402
+ * tracks the *issuer* party's requirement because a response swaps the
403
+ * parties (§7.3 item 5).
404
+ */
405
+ export declare const RESPONSE_SPEC: {
406
+ readonly typeUri: "https://trusttasks.org/spec/vta/services/update/1.1#response";
407
+ readonly isBearer: false;
408
+ readonly isProofRequired: true;
409
+ readonly isRecipientRequired: true;
410
+ readonly isIssuedAtRequired: true;
411
+ readonly payloadSchema: {
412
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
413
+ readonly $ref: "#/$defs/Response";
414
+ readonly $defs: {
415
+ readonly Response: {
416
+ readonly $anchor: "response";
417
+ readonly title: "VTA Services — Update — response payload";
418
+ readonly description: "Success response to vta/services/update. Type https://trusttasks.org/spec/vta/services/update/1.1#response.";
419
+ readonly type: "object";
420
+ readonly additionalProperties: false;
421
+ readonly required: readonly ["result"];
422
+ readonly properties: {
423
+ readonly result: {
424
+ readonly $ref: "#/$defs/ServiceMutationResult";
425
+ };
426
+ readonly ext: {
427
+ readonly $ref: "#/$defs/Ext";
428
+ };
429
+ };
430
+ };
431
+ readonly Ext: {
432
+ readonly title: "Ext";
433
+ 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.";
434
+ readonly type: "object";
435
+ readonly minProperties: 1;
436
+ readonly additionalProperties: true;
437
+ readonly propertyNames: {
438
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
439
+ };
440
+ };
441
+ readonly ServiceMutationResult: {
442
+ readonly title: "ServiceMutationResult";
443
+ 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.";
444
+ readonly type: "object";
445
+ readonly additionalProperties: false;
446
+ readonly required: readonly ["logEntryVersionId", "effectiveAt"];
447
+ readonly properties: {
448
+ readonly logEntryVersionId: {
449
+ readonly type: "string";
450
+ readonly minLength: 1;
451
+ readonly description: "Version id of the new did:webvh log entry this change wrote. Joins the change to the document's history.";
452
+ };
453
+ readonly effectiveAt: {
454
+ readonly type: "string";
455
+ readonly format: "date-time";
456
+ readonly description: "RFC 3339 instant the change took effect — the same instant stamped on the new log entry.";
457
+ };
458
+ readonly drainUntil: {
459
+ readonly type: "string";
460
+ readonly format: "date-time";
461
+ 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.";
462
+ };
463
+ readonly drainingMediator: {
464
+ readonly type: "string";
465
+ readonly description: "The mediator being drained, when `drainUntil` is present.";
466
+ };
467
+ readonly vtaDid: {
468
+ readonly type: "string";
469
+ 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.";
470
+ };
471
+ readonly serverless: {
472
+ readonly type: "boolean";
473
+ 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.";
474
+ readonly default: false;
475
+ };
476
+ readonly ext: {
477
+ readonly $ref: "#/$defs/Ext";
478
+ };
479
+ };
480
+ };
481
+ readonly ServiceKind: {
482
+ readonly title: "ServiceKind";
483
+ 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.";
484
+ readonly type: "string";
485
+ readonly enum: readonly ["didcomm", "rest", "tsp", "webauthn"];
486
+ };
487
+ };
488
+ };
489
+ };
490
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/services/update/1.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAGjG;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE;QACN;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB;;WAEG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QACb;;WAEG;QACH,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB;;WAEG;QACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;KAC/B,CAAC;IACF,GAAG,CAAC,EAAE,GAAG,CAAC;IACV;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AACD;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,MAAM,EAAE,qBAAqB,CAAC;IAC9B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AAED,kHAAkH;AAClH,YAAY,EAAE,GAAG,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;AAExD,2BAA2B;AAC3B,eAAO,MAAM,QAAQ,EAAG,qDAA8D,CAAC;AAEvF,mEAAmE;AACnE,MAAM,MAAM,OAAO,GAAG,wBAAwB,CAAC;AAE/C,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,EAAG,8DAAuE,CAAC;AAEzG,4EAA4E;AAC5E,MAAM,MAAM,QAAQ,GAAG,gCAAgC,CAAC;AAExD;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsIjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuF1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}