@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,378 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/attestation/config-report/0.1/payload.schema.json
4
+ */
5
+ import type { Ext } from "../../../../_shared/components.js";
6
+ /**
7
+ * Asks an agent for fresh attestation evidence committing to the configuration it booted, bound to a nonce the verifier chose. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
8
+ */
9
+ export interface VTAAttestationConfigReportPayload {
10
+ /**
11
+ * Thirty-two bytes the verifier generated for this request, lowercase hex. The agent binds exactly this into the evidence.
12
+ */
13
+ nonce: string;
14
+ /**
15
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
16
+ */
17
+ ext?: Ext;
18
+ }
19
+ export interface VTAAttestationConfigReportResponsePayload {
20
+ /**
21
+ * SHA-384 of the decoded configView bytes, base64 (standard). A convenience: the verifier recomputes it, and a mismatch with either the view or the evidence is a refusal.
22
+ */
23
+ configDigestSha384: string;
24
+ /**
25
+ * The canonical, secret-free view of the configuration the agent booted, base64 (standard): the exact bytes whose SHA-384 the evidence binds as its user data.
26
+ */
27
+ configView: string;
28
+ /**
29
+ * The request's nonce, echoed. A verifier checks the nonce inside the evidence, not this.
30
+ */
31
+ nonce: string;
32
+ /**
33
+ * The platform that produced the evidence. Informational and not covered by the evidence.
34
+ */
35
+ teeType: "nitro" | "sev-snp" | "simulated";
36
+ /**
37
+ * The platform's quote, base64 (a COSE_Sign1 attestation document for nitro).
38
+ */
39
+ evidence: string;
40
+ /**
41
+ * When the evidence was produced. Informational: freshness comes from the nonce.
42
+ */
43
+ generatedAt: string;
44
+ /**
45
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
46
+ */
47
+ ext?: Ext;
48
+ }
49
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
50
+ export type { Ext };
51
+ /** Trust Task type URI. */
52
+ export declare const TYPE_URI: "https://trusttasks.org/spec/vta/attestation/config-report/0.1";
53
+ /** Stable alias for this specification's request payload shape. */
54
+ export type Payload = VTAAttestationConfigReportPayload;
55
+ /** Trust Task response type URI (request type URI + "#response"). */
56
+ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/vta/attestation/config-report/0.1#response";
57
+ /** Stable alias for this specification's success-response payload shape. */
58
+ export type Response = VTAAttestationConfigReportResponsePayload;
59
+ /**
60
+ * This specification's payload schema, as a value.
61
+ *
62
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
63
+ * rather than only as a `.json` file because TypeScript types are erased
64
+ * at runtime: without a schema a consumer has nothing to validate, and
65
+ * every REQUIRED payload member is optional in practice. Cross-file
66
+ * `$ref`s are already inlined, so it needs no resolver.
67
+ */
68
+ export declare const PAYLOAD_SCHEMA: {
69
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
70
+ readonly $id: "https://trusttasks.org/spec/vta/attestation/config-report/0.1";
71
+ readonly title: "VTA Attestation — Config Report — payload";
72
+ readonly description: "Asks an agent for fresh attestation evidence committing to the configuration it booted, bound to a nonce the verifier chose. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
73
+ readonly type: "object";
74
+ readonly additionalProperties: false;
75
+ readonly required: readonly ["nonce"];
76
+ readonly properties: {
77
+ readonly nonce: {
78
+ readonly type: "string";
79
+ readonly pattern: "^[0-9a-f]{64}$";
80
+ readonly description: "Thirty-two bytes the verifier generated for this request, lowercase hex. The agent binds exactly this into the evidence.";
81
+ };
82
+ readonly ext: {
83
+ readonly $ref: "#/$defs/Ext";
84
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
85
+ };
86
+ };
87
+ readonly $defs: {
88
+ readonly Response: {
89
+ readonly $anchor: "response";
90
+ readonly title: "VTA Attestation Config Report — response payload";
91
+ readonly type: "object";
92
+ readonly additionalProperties: false;
93
+ readonly required: readonly ["configDigestSha384", "configView", "nonce", "teeType", "evidence", "generatedAt"];
94
+ readonly properties: {
95
+ readonly configDigestSha384: {
96
+ readonly type: "string";
97
+ readonly pattern: "^[A-Za-z0-9+/]{64}$";
98
+ readonly description: "SHA-384 of the decoded configView bytes, base64 (standard). A convenience: the verifier recomputes it, and a mismatch with either the view or the evidence is a refusal.";
99
+ };
100
+ readonly configView: {
101
+ readonly type: "string";
102
+ readonly minLength: 1;
103
+ readonly maxLength: 65536;
104
+ readonly pattern: "^[A-Za-z0-9+/]+={0,2}$";
105
+ readonly description: "The canonical, secret-free view of the configuration the agent booted, base64 (standard): the exact bytes whose SHA-384 the evidence binds as its user data.";
106
+ };
107
+ readonly nonce: {
108
+ readonly type: "string";
109
+ readonly pattern: "^[0-9a-f]{64}$";
110
+ readonly description: "The request's nonce, echoed. A verifier checks the nonce inside the evidence, not this.";
111
+ };
112
+ readonly teeType: {
113
+ readonly type: "string";
114
+ readonly enum: readonly ["nitro", "sev-snp", "simulated"];
115
+ readonly description: "The platform that produced the evidence. Informational and not covered by the evidence.";
116
+ };
117
+ readonly evidence: {
118
+ readonly type: "string";
119
+ readonly minLength: 1;
120
+ readonly maxLength: 65536;
121
+ readonly pattern: "^[A-Za-z0-9+/_-]+={0,2}$";
122
+ readonly description: "The platform's quote, base64 (a COSE_Sign1 attestation document for nitro).";
123
+ };
124
+ readonly generatedAt: {
125
+ readonly type: "string";
126
+ readonly format: "date-time";
127
+ readonly description: "When the evidence was produced. Informational: freshness comes from the nonce.";
128
+ };
129
+ readonly ext: {
130
+ readonly $ref: "#/$defs/Ext";
131
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
132
+ };
133
+ };
134
+ };
135
+ readonly Ext: {
136
+ readonly title: "Ext";
137
+ 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.";
138
+ readonly type: "object";
139
+ readonly minProperties: 1;
140
+ readonly additionalProperties: true;
141
+ readonly propertyNames: {
142
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
143
+ };
144
+ };
145
+ };
146
+ };
147
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
148
+ export declare const RESPONSE_PAYLOAD_SCHEMA: {
149
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
150
+ readonly $ref: "#/$defs/Response";
151
+ readonly $defs: {
152
+ readonly Response: {
153
+ readonly $anchor: "response";
154
+ readonly title: "VTA Attestation Config Report — response payload";
155
+ readonly type: "object";
156
+ readonly additionalProperties: false;
157
+ readonly required: readonly ["configDigestSha384", "configView", "nonce", "teeType", "evidence", "generatedAt"];
158
+ readonly properties: {
159
+ readonly configDigestSha384: {
160
+ readonly type: "string";
161
+ readonly pattern: "^[A-Za-z0-9+/]{64}$";
162
+ readonly description: "SHA-384 of the decoded configView bytes, base64 (standard). A convenience: the verifier recomputes it, and a mismatch with either the view or the evidence is a refusal.";
163
+ };
164
+ readonly configView: {
165
+ readonly type: "string";
166
+ readonly minLength: 1;
167
+ readonly maxLength: 65536;
168
+ readonly pattern: "^[A-Za-z0-9+/]+={0,2}$";
169
+ readonly description: "The canonical, secret-free view of the configuration the agent booted, base64 (standard): the exact bytes whose SHA-384 the evidence binds as its user data.";
170
+ };
171
+ readonly nonce: {
172
+ readonly type: "string";
173
+ readonly pattern: "^[0-9a-f]{64}$";
174
+ readonly description: "The request's nonce, echoed. A verifier checks the nonce inside the evidence, not this.";
175
+ };
176
+ readonly teeType: {
177
+ readonly type: "string";
178
+ readonly enum: readonly ["nitro", "sev-snp", "simulated"];
179
+ readonly description: "The platform that produced the evidence. Informational and not covered by the evidence.";
180
+ };
181
+ readonly evidence: {
182
+ readonly type: "string";
183
+ readonly minLength: 1;
184
+ readonly maxLength: 65536;
185
+ readonly pattern: "^[A-Za-z0-9+/_-]+={0,2}$";
186
+ readonly description: "The platform's quote, base64 (a COSE_Sign1 attestation document for nitro).";
187
+ };
188
+ readonly generatedAt: {
189
+ readonly type: "string";
190
+ readonly format: "date-time";
191
+ readonly description: "When the evidence was produced. Informational: freshness comes from the nonce.";
192
+ };
193
+ readonly ext: {
194
+ readonly $ref: "#/$defs/Ext";
195
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
196
+ };
197
+ };
198
+ };
199
+ readonly Ext: {
200
+ readonly title: "Ext";
201
+ 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.";
202
+ readonly type: "object";
203
+ readonly minProperties: 1;
204
+ readonly additionalProperties: true;
205
+ readonly propertyNames: {
206
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
207
+ };
208
+ };
209
+ };
210
+ };
211
+ /**
212
+ * SPEC.md §7.2 policy for the request variant, from this specification's
213
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
214
+ * per-specification and cannot be derived from the document alone, and
215
+ * item 2 needs the schema this carries.
216
+ */
217
+ export declare const SPEC: {
218
+ readonly typeUri: "https://trusttasks.org/spec/vta/attestation/config-report/0.1";
219
+ readonly isBearer: false;
220
+ readonly isProofRequired: false;
221
+ readonly isRecipientRequired: true;
222
+ readonly isIssuedAtRequired: false;
223
+ readonly payloadSchema: {
224
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
225
+ readonly $id: "https://trusttasks.org/spec/vta/attestation/config-report/0.1";
226
+ readonly title: "VTA Attestation — Config Report — payload";
227
+ readonly description: "Asks an agent for fresh attestation evidence committing to the configuration it booted, bound to a nonce the verifier chose. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.";
228
+ readonly type: "object";
229
+ readonly additionalProperties: false;
230
+ readonly required: readonly ["nonce"];
231
+ readonly properties: {
232
+ readonly nonce: {
233
+ readonly type: "string";
234
+ readonly pattern: "^[0-9a-f]{64}$";
235
+ readonly description: "Thirty-two bytes the verifier generated for this request, lowercase hex. The agent binds exactly this into the evidence.";
236
+ };
237
+ readonly ext: {
238
+ readonly $ref: "#/$defs/Ext";
239
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
240
+ };
241
+ };
242
+ readonly $defs: {
243
+ readonly Response: {
244
+ readonly $anchor: "response";
245
+ readonly title: "VTA Attestation Config Report — response payload";
246
+ readonly type: "object";
247
+ readonly additionalProperties: false;
248
+ readonly required: readonly ["configDigestSha384", "configView", "nonce", "teeType", "evidence", "generatedAt"];
249
+ readonly properties: {
250
+ readonly configDigestSha384: {
251
+ readonly type: "string";
252
+ readonly pattern: "^[A-Za-z0-9+/]{64}$";
253
+ readonly description: "SHA-384 of the decoded configView bytes, base64 (standard). A convenience: the verifier recomputes it, and a mismatch with either the view or the evidence is a refusal.";
254
+ };
255
+ readonly configView: {
256
+ readonly type: "string";
257
+ readonly minLength: 1;
258
+ readonly maxLength: 65536;
259
+ readonly pattern: "^[A-Za-z0-9+/]+={0,2}$";
260
+ readonly description: "The canonical, secret-free view of the configuration the agent booted, base64 (standard): the exact bytes whose SHA-384 the evidence binds as its user data.";
261
+ };
262
+ readonly nonce: {
263
+ readonly type: "string";
264
+ readonly pattern: "^[0-9a-f]{64}$";
265
+ readonly description: "The request's nonce, echoed. A verifier checks the nonce inside the evidence, not this.";
266
+ };
267
+ readonly teeType: {
268
+ readonly type: "string";
269
+ readonly enum: readonly ["nitro", "sev-snp", "simulated"];
270
+ readonly description: "The platform that produced the evidence. Informational and not covered by the evidence.";
271
+ };
272
+ readonly evidence: {
273
+ readonly type: "string";
274
+ readonly minLength: 1;
275
+ readonly maxLength: 65536;
276
+ readonly pattern: "^[A-Za-z0-9+/_-]+={0,2}$";
277
+ readonly description: "The platform's quote, base64 (a COSE_Sign1 attestation document for nitro).";
278
+ };
279
+ readonly generatedAt: {
280
+ readonly type: "string";
281
+ readonly format: "date-time";
282
+ readonly description: "When the evidence was produced. Informational: freshness comes from the nonce.";
283
+ };
284
+ readonly ext: {
285
+ readonly $ref: "#/$defs/Ext";
286
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
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
+ };
301
+ };
302
+ };
303
+ /**
304
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
305
+ * tracks the *issuer* party's requirement because a response swaps the
306
+ * parties (§7.3 item 5).
307
+ */
308
+ export declare const RESPONSE_SPEC: {
309
+ readonly typeUri: "https://trusttasks.org/spec/vta/attestation/config-report/0.1#response";
310
+ readonly isBearer: false;
311
+ readonly isProofRequired: true;
312
+ readonly isRecipientRequired: true;
313
+ readonly isIssuedAtRequired: false;
314
+ readonly payloadSchema: {
315
+ readonly $schema: "https://json-schema.org/draft/2020-12/schema";
316
+ readonly $ref: "#/$defs/Response";
317
+ readonly $defs: {
318
+ readonly Response: {
319
+ readonly $anchor: "response";
320
+ readonly title: "VTA Attestation Config Report — response payload";
321
+ readonly type: "object";
322
+ readonly additionalProperties: false;
323
+ readonly required: readonly ["configDigestSha384", "configView", "nonce", "teeType", "evidence", "generatedAt"];
324
+ readonly properties: {
325
+ readonly configDigestSha384: {
326
+ readonly type: "string";
327
+ readonly pattern: "^[A-Za-z0-9+/]{64}$";
328
+ readonly description: "SHA-384 of the decoded configView bytes, base64 (standard). A convenience: the verifier recomputes it, and a mismatch with either the view or the evidence is a refusal.";
329
+ };
330
+ readonly configView: {
331
+ readonly type: "string";
332
+ readonly minLength: 1;
333
+ readonly maxLength: 65536;
334
+ readonly pattern: "^[A-Za-z0-9+/]+={0,2}$";
335
+ readonly description: "The canonical, secret-free view of the configuration the agent booted, base64 (standard): the exact bytes whose SHA-384 the evidence binds as its user data.";
336
+ };
337
+ readonly nonce: {
338
+ readonly type: "string";
339
+ readonly pattern: "^[0-9a-f]{64}$";
340
+ readonly description: "The request's nonce, echoed. A verifier checks the nonce inside the evidence, not this.";
341
+ };
342
+ readonly teeType: {
343
+ readonly type: "string";
344
+ readonly enum: readonly ["nitro", "sev-snp", "simulated"];
345
+ readonly description: "The platform that produced the evidence. Informational and not covered by the evidence.";
346
+ };
347
+ readonly evidence: {
348
+ readonly type: "string";
349
+ readonly minLength: 1;
350
+ readonly maxLength: 65536;
351
+ readonly pattern: "^[A-Za-z0-9+/_-]+={0,2}$";
352
+ readonly description: "The platform's quote, base64 (a COSE_Sign1 attestation document for nitro).";
353
+ };
354
+ readonly generatedAt: {
355
+ readonly type: "string";
356
+ readonly format: "date-time";
357
+ readonly description: "When the evidence was produced. Informational: freshness comes from the nonce.";
358
+ };
359
+ readonly ext: {
360
+ readonly $ref: "#/$defs/Ext";
361
+ readonly description: "Ecosystem-defined extension members per SPEC.md §4.5.1.";
362
+ };
363
+ };
364
+ };
365
+ readonly Ext: {
366
+ readonly title: "Ext";
367
+ 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.";
368
+ readonly type: "object";
369
+ readonly minProperties: 1;
370
+ readonly additionalProperties: true;
371
+ readonly propertyNames: {
372
+ readonly pattern: "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$";
373
+ };
374
+ };
375
+ };
376
+ };
377
+ };
378
+ //# sourceMappingURL=payload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/attestation/config-report/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AAG7D;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,KAAK,EAAE,MAAM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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
@@ -0,0 +1,212 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/attestation/config-report/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/attestation/config-report/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/attestation/config-report/0.1#response";
9
+ /**
10
+ * This specification's payload schema, as a value.
11
+ *
12
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
13
+ * rather than only as a `.json` file because TypeScript types are erased
14
+ * at runtime: without a schema a consumer has nothing to validate, and
15
+ * every REQUIRED payload member is optional in practice. Cross-file
16
+ * `$ref`s are already inlined, so it needs no resolver.
17
+ */
18
+ export const PAYLOAD_SCHEMA = {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "$id": "https://trusttasks.org/spec/vta/attestation/config-report/0.1",
21
+ "title": "VTA Attestation — Config Report — payload",
22
+ "description": "Asks an agent for fresh attestation evidence committing to the configuration it booted, bound to a nonce the verifier chose. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "nonce"
27
+ ],
28
+ "properties": {
29
+ "nonce": {
30
+ "type": "string",
31
+ "pattern": "^[0-9a-f]{64}$",
32
+ "description": "Thirty-two bytes the verifier generated for this request, lowercase hex. The agent binds exactly this into the evidence."
33
+ },
34
+ "ext": {
35
+ "$ref": "#/$defs/Ext",
36
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
37
+ }
38
+ },
39
+ "$defs": {
40
+ "Response": {
41
+ "$anchor": "response",
42
+ "title": "VTA Attestation Config Report — response payload",
43
+ "type": "object",
44
+ "additionalProperties": false,
45
+ "required": [
46
+ "configDigestSha384",
47
+ "configView",
48
+ "nonce",
49
+ "teeType",
50
+ "evidence",
51
+ "generatedAt"
52
+ ],
53
+ "properties": {
54
+ "configDigestSha384": {
55
+ "type": "string",
56
+ "pattern": "^[A-Za-z0-9+/]{64}$",
57
+ "description": "SHA-384 of the decoded configView bytes, base64 (standard). A convenience: the verifier recomputes it, and a mismatch with either the view or the evidence is a refusal."
58
+ },
59
+ "configView": {
60
+ "type": "string",
61
+ "minLength": 1,
62
+ "maxLength": 65536,
63
+ "pattern": "^[A-Za-z0-9+/]+={0,2}$",
64
+ "description": "The canonical, secret-free view of the configuration the agent booted, base64 (standard): the exact bytes whose SHA-384 the evidence binds as its user data."
65
+ },
66
+ "nonce": {
67
+ "type": "string",
68
+ "pattern": "^[0-9a-f]{64}$",
69
+ "description": "The request's nonce, echoed. A verifier checks the nonce inside the evidence, not this."
70
+ },
71
+ "teeType": {
72
+ "type": "string",
73
+ "enum": [
74
+ "nitro",
75
+ "sev-snp",
76
+ "simulated"
77
+ ],
78
+ "description": "The platform that produced the evidence. Informational and not covered by the evidence."
79
+ },
80
+ "evidence": {
81
+ "type": "string",
82
+ "minLength": 1,
83
+ "maxLength": 65536,
84
+ "pattern": "^[A-Za-z0-9+/_-]+={0,2}$",
85
+ "description": "The platform's quote, base64 (a COSE_Sign1 attestation document for nitro)."
86
+ },
87
+ "generatedAt": {
88
+ "type": "string",
89
+ "format": "date-time",
90
+ "description": "When the evidence was produced. Informational: freshness comes from the nonce."
91
+ },
92
+ "ext": {
93
+ "$ref": "#/$defs/Ext",
94
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
95
+ }
96
+ }
97
+ },
98
+ "Ext": {
99
+ "title": "Ext",
100
+ "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.",
101
+ "type": "object",
102
+ "minProperties": 1,
103
+ "additionalProperties": true,
104
+ "propertyNames": {
105
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
106
+ }
107
+ }
108
+ }
109
+ };
110
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
111
+ export const RESPONSE_PAYLOAD_SCHEMA = {
112
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
113
+ "$ref": "#/$defs/Response",
114
+ "$defs": {
115
+ "Response": {
116
+ "$anchor": "response",
117
+ "title": "VTA Attestation Config Report — response payload",
118
+ "type": "object",
119
+ "additionalProperties": false,
120
+ "required": [
121
+ "configDigestSha384",
122
+ "configView",
123
+ "nonce",
124
+ "teeType",
125
+ "evidence",
126
+ "generatedAt"
127
+ ],
128
+ "properties": {
129
+ "configDigestSha384": {
130
+ "type": "string",
131
+ "pattern": "^[A-Za-z0-9+/]{64}$",
132
+ "description": "SHA-384 of the decoded configView bytes, base64 (standard). A convenience: the verifier recomputes it, and a mismatch with either the view or the evidence is a refusal."
133
+ },
134
+ "configView": {
135
+ "type": "string",
136
+ "minLength": 1,
137
+ "maxLength": 65536,
138
+ "pattern": "^[A-Za-z0-9+/]+={0,2}$",
139
+ "description": "The canonical, secret-free view of the configuration the agent booted, base64 (standard): the exact bytes whose SHA-384 the evidence binds as its user data."
140
+ },
141
+ "nonce": {
142
+ "type": "string",
143
+ "pattern": "^[0-9a-f]{64}$",
144
+ "description": "The request's nonce, echoed. A verifier checks the nonce inside the evidence, not this."
145
+ },
146
+ "teeType": {
147
+ "type": "string",
148
+ "enum": [
149
+ "nitro",
150
+ "sev-snp",
151
+ "simulated"
152
+ ],
153
+ "description": "The platform that produced the evidence. Informational and not covered by the evidence."
154
+ },
155
+ "evidence": {
156
+ "type": "string",
157
+ "minLength": 1,
158
+ "maxLength": 65536,
159
+ "pattern": "^[A-Za-z0-9+/_-]+={0,2}$",
160
+ "description": "The platform's quote, base64 (a COSE_Sign1 attestation document for nitro)."
161
+ },
162
+ "generatedAt": {
163
+ "type": "string",
164
+ "format": "date-time",
165
+ "description": "When the evidence was produced. Informational: freshness comes from the nonce."
166
+ },
167
+ "ext": {
168
+ "$ref": "#/$defs/Ext",
169
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
170
+ }
171
+ }
172
+ },
173
+ "Ext": {
174
+ "title": "Ext",
175
+ "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.",
176
+ "type": "object",
177
+ "minProperties": 1,
178
+ "additionalProperties": true,
179
+ "propertyNames": {
180
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
181
+ }
182
+ }
183
+ }
184
+ };
185
+ /**
186
+ * SPEC.md §7.2 policy for the request variant, from this specification's
187
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
188
+ * per-specification and cannot be derived from the document alone, and
189
+ * item 2 needs the schema this carries.
190
+ */
191
+ export const SPEC = {
192
+ typeUri: TYPE_URI,
193
+ isBearer: false,
194
+ isProofRequired: false,
195
+ isRecipientRequired: true,
196
+ isIssuedAtRequired: false,
197
+ payloadSchema: PAYLOAD_SCHEMA,
198
+ };
199
+ /**
200
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
201
+ * tracks the *issuer* party's requirement because a response swaps the
202
+ * parties (§7.3 item 5).
203
+ */
204
+ export const RESPONSE_SPEC = {
205
+ typeUri: RESPONSE_TYPE_URI,
206
+ isBearer: false,
207
+ isProofRequired: true,
208
+ isRecipientRequired: true,
209
+ isIssuedAtRequired: false,
210
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
211
+ };
212
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/attestation/config-report/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAoDH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,+DAAwE,CAAC;AAKjG,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,G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