@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.
- package/CHANGELOG.md +66 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/vta/attestation/config-report/0.1/payload.d.ts +378 -0
- package/dist/vta/attestation/config-report/0.1/payload.d.ts.map +1 -0
- package/dist/vta/attestation/config-report/0.1/payload.js +212 -0
- package/dist/vta/attestation/config-report/0.1/payload.js.map +1 -0
- package/dist/vta/attestation/report/0.1/payload.d.ts +350 -0
- package/dist/vta/attestation/report/0.1/payload.d.ts.map +1 -0
- package/dist/vta/attestation/report/0.1/payload.js +196 -0
- package/dist/vta/attestation/report/0.1/payload.js.map +1 -0
- package/dist/vta/attestation/status/0.1/payload.d.ts +274 -0
- package/dist/vta/attestation/status/0.1/payload.d.ts.map +1 -0
- package/dist/vta/attestation/status/0.1/payload.js +158 -0
- package/dist/vta/attestation/status/0.1/payload.js.map +1 -0
- package/dist/vta/services/report/0.1/payload.d.ts +618 -0
- package/dist/vta/services/report/0.1/payload.d.ts.map +1 -0
- package/dist/vta/services/report/0.1/payload.js +322 -0
- package/dist/vta/services/report/0.1/payload.js.map +1 -0
- package/dist/vta/services/update/1.1/payload.d.ts +490 -0
- package/dist/vta/services/update/1.1/payload.d.ts.map +1 -0
- package/dist/vta/services/update/1.1/payload.js +269 -0
- package/dist/vta/services/update/1.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +5 -0
- package/src/vta/attestation/config-report/0.1/payload.ts +273 -0
- package/src/vta/attestation/report/0.1/payload.ts +253 -0
- package/src/vta/attestation/status/0.1/payload.ts +203 -0
- package/src/vta/services/report/0.1/payload.ts +419 -0
- package/src/vta/services/update/1.1/payload.ts +326 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/attestation/report/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Asks an agent for fresh attestation evidence 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.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTAAttestationReportPayload {
|
|
13
|
+
/**
|
|
14
|
+
* Thirty-two bytes the verifier generated for this request, lowercase hex. The agent binds exactly this into the evidence, so no earlier report can answer this request.
|
|
15
|
+
*/
|
|
16
|
+
nonce: string;
|
|
17
|
+
/**
|
|
18
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
19
|
+
*/
|
|
20
|
+
ext?: Ext;
|
|
21
|
+
}
|
|
22
|
+
export interface VTAAttestationReportResponsePayload {
|
|
23
|
+
/**
|
|
24
|
+
* The platform that produced the evidence, and so how to verify it.
|
|
25
|
+
*/
|
|
26
|
+
teeType: "nitro" | "sev-snp" | "simulated";
|
|
27
|
+
/**
|
|
28
|
+
* The platform's quote, base64: a COSE_Sign1 attestation document for nitro, an attestation report for sev-snp. Verified against the vendor's root, never trusted on the agent's word.
|
|
29
|
+
*/
|
|
30
|
+
evidence: string;
|
|
31
|
+
/**
|
|
32
|
+
* The request's nonce, echoed. A verifier checks the nonce inside the evidence, not this.
|
|
33
|
+
*/
|
|
34
|
+
nonce: string;
|
|
35
|
+
/**
|
|
36
|
+
* The DID the evidence binds as its user data. A verifier checks the evidence binds it and that it is the response document's issuer.
|
|
37
|
+
*/
|
|
38
|
+
vtaDid?: string;
|
|
39
|
+
/**
|
|
40
|
+
* When the evidence was produced. Informational: freshness comes from the nonce.
|
|
41
|
+
*/
|
|
42
|
+
generatedAt: string;
|
|
43
|
+
/**
|
|
44
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
45
|
+
*/
|
|
46
|
+
ext?: Ext;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
50
|
+
export type { Ext };
|
|
51
|
+
|
|
52
|
+
/** Trust Task type URI. */
|
|
53
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/attestation/report/0.1" as const;
|
|
54
|
+
|
|
55
|
+
/** Stable alias for this specification's request payload shape. */
|
|
56
|
+
export type Payload = VTAAttestationReportPayload;
|
|
57
|
+
|
|
58
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
59
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/attestation/report/0.1#response" as const;
|
|
60
|
+
|
|
61
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
62
|
+
export type Response = VTAAttestationReportResponsePayload;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* This specification's payload schema, as a value.
|
|
66
|
+
*
|
|
67
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
68
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
69
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
70
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
71
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
72
|
+
*/
|
|
73
|
+
export const PAYLOAD_SCHEMA = {
|
|
74
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
75
|
+
"$id": "https://trusttasks.org/spec/vta/attestation/report/0.1",
|
|
76
|
+
"title": "VTA Attestation — Report — payload",
|
|
77
|
+
"description": "Asks an agent for fresh attestation evidence 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.",
|
|
78
|
+
"type": "object",
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"required": [
|
|
81
|
+
"nonce"
|
|
82
|
+
],
|
|
83
|
+
"properties": {
|
|
84
|
+
"nonce": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
87
|
+
"description": "Thirty-two bytes the verifier generated for this request, lowercase hex. The agent binds exactly this into the evidence, so no earlier report can answer this request."
|
|
88
|
+
},
|
|
89
|
+
"ext": {
|
|
90
|
+
"$ref": "#/$defs/Ext",
|
|
91
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"$defs": {
|
|
95
|
+
"Response": {
|
|
96
|
+
"$anchor": "response",
|
|
97
|
+
"title": "VTA Attestation Report — response payload",
|
|
98
|
+
"type": "object",
|
|
99
|
+
"additionalProperties": false,
|
|
100
|
+
"required": [
|
|
101
|
+
"teeType",
|
|
102
|
+
"evidence",
|
|
103
|
+
"nonce",
|
|
104
|
+
"generatedAt"
|
|
105
|
+
],
|
|
106
|
+
"properties": {
|
|
107
|
+
"teeType": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"enum": [
|
|
110
|
+
"nitro",
|
|
111
|
+
"sev-snp",
|
|
112
|
+
"simulated"
|
|
113
|
+
],
|
|
114
|
+
"description": "The platform that produced the evidence, and so how to verify it."
|
|
115
|
+
},
|
|
116
|
+
"evidence": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"minLength": 1,
|
|
119
|
+
"maxLength": 65536,
|
|
120
|
+
"pattern": "^[A-Za-z0-9+/_-]+={0,2}$",
|
|
121
|
+
"description": "The platform's quote, base64: a COSE_Sign1 attestation document for nitro, an attestation report for sev-snp. Verified against the vendor's root, never trusted on the agent's word."
|
|
122
|
+
},
|
|
123
|
+
"nonce": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
126
|
+
"description": "The request's nonce, echoed. A verifier checks the nonce inside the evidence, not this."
|
|
127
|
+
},
|
|
128
|
+
"vtaDid": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"minLength": 1,
|
|
131
|
+
"maxLength": 1000,
|
|
132
|
+
"description": "The DID the evidence binds as its user data. A verifier checks the evidence binds it and that it is the response document's issuer."
|
|
133
|
+
},
|
|
134
|
+
"generatedAt": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"format": "date-time",
|
|
137
|
+
"description": "When the evidence was produced. Informational: freshness comes from the nonce."
|
|
138
|
+
},
|
|
139
|
+
"ext": {
|
|
140
|
+
"$ref": "#/$defs/Ext",
|
|
141
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"Ext": {
|
|
146
|
+
"title": "Ext",
|
|
147
|
+
"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.",
|
|
148
|
+
"type": "object",
|
|
149
|
+
"minProperties": 1,
|
|
150
|
+
"additionalProperties": true,
|
|
151
|
+
"propertyNames": {
|
|
152
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
} as const;
|
|
157
|
+
|
|
158
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
159
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
160
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
161
|
+
"$ref": "#/$defs/Response",
|
|
162
|
+
"$defs": {
|
|
163
|
+
"Response": {
|
|
164
|
+
"$anchor": "response",
|
|
165
|
+
"title": "VTA Attestation Report — response payload",
|
|
166
|
+
"type": "object",
|
|
167
|
+
"additionalProperties": false,
|
|
168
|
+
"required": [
|
|
169
|
+
"teeType",
|
|
170
|
+
"evidence",
|
|
171
|
+
"nonce",
|
|
172
|
+
"generatedAt"
|
|
173
|
+
],
|
|
174
|
+
"properties": {
|
|
175
|
+
"teeType": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"enum": [
|
|
178
|
+
"nitro",
|
|
179
|
+
"sev-snp",
|
|
180
|
+
"simulated"
|
|
181
|
+
],
|
|
182
|
+
"description": "The platform that produced the evidence, and so how to verify it."
|
|
183
|
+
},
|
|
184
|
+
"evidence": {
|
|
185
|
+
"type": "string",
|
|
186
|
+
"minLength": 1,
|
|
187
|
+
"maxLength": 65536,
|
|
188
|
+
"pattern": "^[A-Za-z0-9+/_-]+={0,2}$",
|
|
189
|
+
"description": "The platform's quote, base64: a COSE_Sign1 attestation document for nitro, an attestation report for sev-snp. Verified against the vendor's root, never trusted on the agent's word."
|
|
190
|
+
},
|
|
191
|
+
"nonce": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
194
|
+
"description": "The request's nonce, echoed. A verifier checks the nonce inside the evidence, not this."
|
|
195
|
+
},
|
|
196
|
+
"vtaDid": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"minLength": 1,
|
|
199
|
+
"maxLength": 1000,
|
|
200
|
+
"description": "The DID the evidence binds as its user data. A verifier checks the evidence binds it and that it is the response document's issuer."
|
|
201
|
+
},
|
|
202
|
+
"generatedAt": {
|
|
203
|
+
"type": "string",
|
|
204
|
+
"format": "date-time",
|
|
205
|
+
"description": "When the evidence was produced. Informational: freshness comes from the nonce."
|
|
206
|
+
},
|
|
207
|
+
"ext": {
|
|
208
|
+
"$ref": "#/$defs/Ext",
|
|
209
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"Ext": {
|
|
214
|
+
"title": "Ext",
|
|
215
|
+
"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.",
|
|
216
|
+
"type": "object",
|
|
217
|
+
"minProperties": 1,
|
|
218
|
+
"additionalProperties": true,
|
|
219
|
+
"propertyNames": {
|
|
220
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
} as const;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
228
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
229
|
+
* per-specification and cannot be derived from the document alone, and
|
|
230
|
+
* item 2 needs the schema this carries.
|
|
231
|
+
*/
|
|
232
|
+
export const SPEC = {
|
|
233
|
+
typeUri: TYPE_URI,
|
|
234
|
+
isBearer: false,
|
|
235
|
+
isProofRequired: false,
|
|
236
|
+
isRecipientRequired: true,
|
|
237
|
+
isIssuedAtRequired: false,
|
|
238
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
239
|
+
} as const;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
243
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
244
|
+
* parties (§7.3 item 5).
|
|
245
|
+
*/
|
|
246
|
+
export const RESPONSE_SPEC = {
|
|
247
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
248
|
+
isBearer: false,
|
|
249
|
+
isProofRequired: true,
|
|
250
|
+
isRecipientRequired: true,
|
|
251
|
+
isIssuedAtRequired: false,
|
|
252
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
253
|
+
} as const;
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/vta/attestation/status/0.1/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { Ext } from "../../../../_shared/components.js";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Asks an agent which trusted execution environment it runs in. The payload carries nothing. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
|
|
11
|
+
*/
|
|
12
|
+
export interface VTAAttestationStatusPayload {
|
|
13
|
+
/**
|
|
14
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
15
|
+
*/
|
|
16
|
+
ext?: Ext;
|
|
17
|
+
}
|
|
18
|
+
export interface VTAAttestationStatusResponsePayload {
|
|
19
|
+
/**
|
|
20
|
+
* The platform whose evidence vta/attestation/report returns: nitro (AWS Nitro Enclaves), sev-snp (AMD SEV-SNP), or simulated (a development build whose evidence no verifier should accept).
|
|
21
|
+
*/
|
|
22
|
+
teeType: "nitro" | "sev-snp" | "simulated";
|
|
23
|
+
/**
|
|
24
|
+
* Whether the agent found the platform at boot. False means it was configured for one it did not find, and it produces no evidence.
|
|
25
|
+
*/
|
|
26
|
+
detected: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* The platform's own version string, when it reports one. Informational.
|
|
29
|
+
*/
|
|
30
|
+
platformVersion?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Ecosystem-defined extension members per SPEC.md §4.5.1.
|
|
33
|
+
*/
|
|
34
|
+
ext?: Ext;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** Shared definitions this specification references, re-exported under the names it used to declare them with. */
|
|
38
|
+
export type { Ext };
|
|
39
|
+
|
|
40
|
+
/** Trust Task type URI. */
|
|
41
|
+
export const TYPE_URI = "https://trusttasks.org/spec/vta/attestation/status/0.1" as const;
|
|
42
|
+
|
|
43
|
+
/** Stable alias for this specification's request payload shape. */
|
|
44
|
+
export type Payload = VTAAttestationStatusPayload;
|
|
45
|
+
|
|
46
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
47
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/attestation/status/0.1#response" as const;
|
|
48
|
+
|
|
49
|
+
/** Stable alias for this specification's success-response payload shape. */
|
|
50
|
+
export type Response = VTAAttestationStatusResponsePayload;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* This specification's payload schema, as a value.
|
|
54
|
+
*
|
|
55
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
56
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
57
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
58
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
59
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
60
|
+
*/
|
|
61
|
+
export const PAYLOAD_SCHEMA = {
|
|
62
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
63
|
+
"$id": "https://trusttasks.org/spec/vta/attestation/status/0.1",
|
|
64
|
+
"title": "VTA Attestation — Status — payload",
|
|
65
|
+
"description": "Asks an agent which trusted execution environment it runs in. The payload carries nothing. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.",
|
|
66
|
+
"type": "object",
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"properties": {
|
|
69
|
+
"ext": {
|
|
70
|
+
"$ref": "#/$defs/Ext",
|
|
71
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"$defs": {
|
|
75
|
+
"Response": {
|
|
76
|
+
"$anchor": "response",
|
|
77
|
+
"title": "VTA Attestation Status — response payload",
|
|
78
|
+
"type": "object",
|
|
79
|
+
"additionalProperties": false,
|
|
80
|
+
"required": [
|
|
81
|
+
"teeType",
|
|
82
|
+
"detected"
|
|
83
|
+
],
|
|
84
|
+
"properties": {
|
|
85
|
+
"teeType": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"enum": [
|
|
88
|
+
"nitro",
|
|
89
|
+
"sev-snp",
|
|
90
|
+
"simulated"
|
|
91
|
+
],
|
|
92
|
+
"description": "The platform whose evidence vta/attestation/report returns: nitro (AWS Nitro Enclaves), sev-snp (AMD SEV-SNP), or simulated (a development build whose evidence no verifier should accept)."
|
|
93
|
+
},
|
|
94
|
+
"detected": {
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"description": "Whether the agent found the platform at boot. False means it was configured for one it did not find, and it produces no evidence."
|
|
97
|
+
},
|
|
98
|
+
"platformVersion": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"minLength": 1,
|
|
101
|
+
"maxLength": 256,
|
|
102
|
+
"description": "The platform's own version string, when it reports one. Informational."
|
|
103
|
+
},
|
|
104
|
+
"ext": {
|
|
105
|
+
"$ref": "#/$defs/Ext",
|
|
106
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"Ext": {
|
|
111
|
+
"title": "Ext",
|
|
112
|
+
"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.",
|
|
113
|
+
"type": "object",
|
|
114
|
+
"minProperties": 1,
|
|
115
|
+
"additionalProperties": true,
|
|
116
|
+
"propertyNames": {
|
|
117
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
} as const;
|
|
122
|
+
|
|
123
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
124
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
125
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
126
|
+
"$ref": "#/$defs/Response",
|
|
127
|
+
"$defs": {
|
|
128
|
+
"Response": {
|
|
129
|
+
"$anchor": "response",
|
|
130
|
+
"title": "VTA Attestation Status — response payload",
|
|
131
|
+
"type": "object",
|
|
132
|
+
"additionalProperties": false,
|
|
133
|
+
"required": [
|
|
134
|
+
"teeType",
|
|
135
|
+
"detected"
|
|
136
|
+
],
|
|
137
|
+
"properties": {
|
|
138
|
+
"teeType": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"enum": [
|
|
141
|
+
"nitro",
|
|
142
|
+
"sev-snp",
|
|
143
|
+
"simulated"
|
|
144
|
+
],
|
|
145
|
+
"description": "The platform whose evidence vta/attestation/report returns: nitro (AWS Nitro Enclaves), sev-snp (AMD SEV-SNP), or simulated (a development build whose evidence no verifier should accept)."
|
|
146
|
+
},
|
|
147
|
+
"detected": {
|
|
148
|
+
"type": "boolean",
|
|
149
|
+
"description": "Whether the agent found the platform at boot. False means it was configured for one it did not find, and it produces no evidence."
|
|
150
|
+
},
|
|
151
|
+
"platformVersion": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"minLength": 1,
|
|
154
|
+
"maxLength": 256,
|
|
155
|
+
"description": "The platform's own version string, when it reports one. Informational."
|
|
156
|
+
},
|
|
157
|
+
"ext": {
|
|
158
|
+
"$ref": "#/$defs/Ext",
|
|
159
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"Ext": {
|
|
164
|
+
"title": "Ext",
|
|
165
|
+
"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.",
|
|
166
|
+
"type": "object",
|
|
167
|
+
"minProperties": 1,
|
|
168
|
+
"additionalProperties": true,
|
|
169
|
+
"propertyNames": {
|
|
170
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
} as const;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
178
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
179
|
+
* per-specification and cannot be derived from the document alone, and
|
|
180
|
+
* item 2 needs the schema this carries.
|
|
181
|
+
*/
|
|
182
|
+
export const SPEC = {
|
|
183
|
+
typeUri: TYPE_URI,
|
|
184
|
+
isBearer: false,
|
|
185
|
+
isProofRequired: false,
|
|
186
|
+
isRecipientRequired: true,
|
|
187
|
+
isIssuedAtRequired: false,
|
|
188
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
189
|
+
} as const;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
193
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
194
|
+
* parties (§7.3 item 5).
|
|
195
|
+
*/
|
|
196
|
+
export const RESPONSE_SPEC = {
|
|
197
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
198
|
+
isBearer: false,
|
|
199
|
+
isProofRequired: true,
|
|
200
|
+
isRecipientRequired: true,
|
|
201
|
+
isIssuedAtRequired: false,
|
|
202
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
203
|
+
} as const;
|