@openvtc/trust-tasks 0.26.5 → 0.26.7

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 (48) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/dist/_shared/components.d.ts +3 -3
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/device/list/0.1/payload.d.ts +4 -4
  5. package/dist/device/list/0.1/payload.d.ts.map +1 -1
  6. package/dist/device/list/0.1/payload.js +4 -2
  7. package/dist/device/list/0.1/payload.js.map +1 -1
  8. package/dist/device/list/0.2/payload.d.ts +4 -4
  9. package/dist/device/list/0.2/payload.d.ts.map +1 -1
  10. package/dist/device/list/0.2/payload.js +4 -2
  11. package/dist/device/list/0.2/payload.js.map +1 -1
  12. package/dist/device/register/0.1/payload.d.ts +4 -4
  13. package/dist/device/register/0.1/payload.d.ts.map +1 -1
  14. package/dist/device/register/0.1/payload.js +4 -2
  15. package/dist/device/register/0.1/payload.js.map +1 -1
  16. package/dist/device/register/0.2/payload.d.ts +4 -4
  17. package/dist/device/register/0.2/payload.d.ts.map +1 -1
  18. package/dist/device/register/0.2/payload.js +4 -2
  19. package/dist/device/register/0.2/payload.js.map +1 -1
  20. package/dist/external/accounts/secret/set/0.1/payload.d.ts +4 -4
  21. package/dist/external/accounts/secret/set/0.1/payload.js +2 -2
  22. package/dist/external/accounts/secret/set/0.1/payload.js.map +1 -1
  23. package/dist/external/credentials/issue/0.1/payload.d.ts +4 -4
  24. package/dist/external/credentials/issue/0.1/payload.js +2 -2
  25. package/dist/external/credentials/issue/0.1/payload.js.map +1 -1
  26. package/dist/external/credentials/issue/0.2/payload.d.ts +1517 -0
  27. package/dist/external/credentials/issue/0.2/payload.d.ts.map +1 -0
  28. package/dist/external/credentials/issue/0.2/payload.js +845 -0
  29. package/dist/external/credentials/issue/0.2/payload.js.map +1 -0
  30. package/dist/index.d.ts +2 -0
  31. package/dist/index.d.ts.map +1 -1
  32. package/dist/index.js +2 -0
  33. package/dist/index.js.map +1 -1
  34. package/dist/vta/witness/request/0.1/payload.d.ts +597 -0
  35. package/dist/vta/witness/request/0.1/payload.d.ts.map +1 -0
  36. package/dist/vta/witness/request/0.1/payload.js +311 -0
  37. package/dist/vta/witness/request/0.1/payload.js.map +1 -0
  38. package/package.json +1 -1
  39. package/src/_shared/components.ts +5 -3
  40. package/src/device/list/0.1/payload.ts +4 -2
  41. package/src/device/list/0.2/payload.ts +4 -2
  42. package/src/device/register/0.1/payload.ts +4 -2
  43. package/src/device/register/0.2/payload.ts +4 -2
  44. package/src/external/accounts/secret/set/0.1/payload.ts +2 -2
  45. package/src/external/credentials/issue/0.1/payload.ts +2 -2
  46. package/src/external/credentials/issue/0.2/payload.ts +995 -0
  47. package/src/index.ts +2 -0
  48. package/src/vta/witness/request/0.1/payload.ts +405 -0
@@ -0,0 +1,311 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/witness/request/0.1/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/witness/request/0.1";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/witness/request/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/witness/request/0.1",
21
+ "title": "VTA Witness — Request — payload",
22
+ "description": "A client asks its VTA to run a witnessed session for one of its principal's relationships: open a witness/session with the named witness as the relationship DID the VTA holds, present the relationship credential (and, optionally, the membership evidence) from its credential vault, verify the Verifiable Witness Credential the witness returns, and store it in the vault with its evidence.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "witness",
27
+ "relationshipDid",
28
+ "counterpartyDid",
29
+ "relationshipThreadId",
30
+ "relationshipCredentialId"
31
+ ],
32
+ "properties": {
33
+ "witness": {
34
+ "type": "string",
35
+ "pattern": "^did:",
36
+ "description": "The witness to run the session with, as its public DID: the recipient of the witness/session and witness/session/submit documents the VTA sends, and the issuer of the VWC it must return. Chosen by the caller, because which witness observes an exchange is the parties' privacy decision (witness/session, Security & Privacy)."
37
+ },
38
+ "relationshipDid": {
39
+ "type": "string",
40
+ "pattern": "^did:",
41
+ "description": "The principal's relationship DID for this relationship: the participating party, and the issuer of both documents the VTA sends to the witness. The VTA signs them, and the relationship presentation, with a key of this DID it holds in a context the caller may act in; never as itself."
42
+ },
43
+ "counterpartyDid": {
44
+ "type": "string",
45
+ "pattern": "^did:",
46
+ "description": "The other party's relationship DID. With relationshipDid it forms the session's `parties` pair, and it is the subject of the relationship credential presented."
47
+ },
48
+ "relationshipThreadId": {
49
+ "type": "string",
50
+ "minLength": 1,
51
+ "maxLength": 256,
52
+ "description": "The threadId of the relationship exchange the session is nested in. The VTA sets it as `parentThreadId` on every document of the session, as witness/session requires of a producer."
53
+ },
54
+ "relationshipCredentialId": {
55
+ "type": "string",
56
+ "minLength": 1,
57
+ "maxLength": 256,
58
+ "description": "The credential-vault handle of the relationship credential (VRC) to present: one issued by relationshipDid whose subject is counterpartyDid. A handle, as vault/credentials/query returns one; the credential itself never travels in this request."
59
+ },
60
+ "membership": {
61
+ "$ref": "#/$defs/Membership",
62
+ "description": "The membership evidence to present beside the relationship credential, for a witness whose policy asks for it. Absent, none is presented."
63
+ },
64
+ "storeAs": {
65
+ "type": "string",
66
+ "minLength": 1,
67
+ "maxLength": 256,
68
+ "description": "The credential-vault handle to store the VWC under. Absent, the VTA derives one. Supplying it lets a caller recognise its own result after an ambiguous failure."
69
+ },
70
+ "ext": {
71
+ "$ref": "#/$defs/Ext"
72
+ }
73
+ },
74
+ "$defs": {
75
+ "Membership": {
76
+ "title": "Membership",
77
+ "description": "A membership credential (VMC) held in the credential vault, and the DID it names. When memberDid is absent the VMC names relationshipDid and is presented in the relationship presentation. When memberDid is present the VMC names that DID, and the VTA builds a second presentation — the member presentation — signed by memberDid and bound to the same session, which discloses memberDid to the witness.",
78
+ "type": "object",
79
+ "additionalProperties": false,
80
+ "required": [
81
+ "credentialId"
82
+ ],
83
+ "properties": {
84
+ "credentialId": {
85
+ "type": "string",
86
+ "minLength": 1,
87
+ "maxLength": 256,
88
+ "description": "The credential-vault handle of the membership credential."
89
+ },
90
+ "memberDid": {
91
+ "type": "string",
92
+ "pattern": "^did:",
93
+ "description": "The member DID the membership credential names, when it is not relationshipDid. The VTA must hold a key of it in a context the caller may act in. Naming it is the caller's explicit choice to disclose it to the witness."
94
+ }
95
+ }
96
+ },
97
+ "Evidence": {
98
+ "title": "Evidence",
99
+ "description": "The two documents a holder ships with the VWC so a verifier can pair it with the session that produced it (witness/session/submit, This response is the outcome evidence). Each is carried exactly as sent or received, never re-serialised.",
100
+ "type": "object",
101
+ "additionalProperties": false,
102
+ "required": [
103
+ "session",
104
+ "outcome"
105
+ ],
106
+ "properties": {
107
+ "session": {
108
+ "type": "object",
109
+ "minProperties": 1,
110
+ "description": "The witness/session document that opened the session, as the VTA sent it. The VWC's taskContext is its id and its taskDigestMultibase is computed over it."
111
+ },
112
+ "outcome": {
113
+ "type": "object",
114
+ "minProperties": 1,
115
+ "description": "The witness/session/submit #response, as the VTA received it, under the witness's proof. It carries the VWC and its vwcDigestMultibase."
116
+ }
117
+ }
118
+ },
119
+ "Response": {
120
+ "$anchor": "response",
121
+ "title": "VTA Witness — Request — response payload",
122
+ "description": "The stored VWC's vault handle, its digest, and the evidence documents that carry it. Sent only once the VWC is verified and stored.",
123
+ "type": "object",
124
+ "additionalProperties": false,
125
+ "required": [
126
+ "credentialId",
127
+ "witness",
128
+ "vwcDigestMultibase",
129
+ "evidence"
130
+ ],
131
+ "properties": {
132
+ "credentialId": {
133
+ "type": "string",
134
+ "minLength": 1,
135
+ "maxLength": 256,
136
+ "description": "The credential-vault handle the VWC is now stored under, with its evidence."
137
+ },
138
+ "witness": {
139
+ "type": "string",
140
+ "pattern": "^did:",
141
+ "description": "The witness that issued the VWC. Equal to the request's witness: a VWC issued by any other party is refused, not stored."
142
+ },
143
+ "vwcDigestMultibase": {
144
+ "$ref": "#/$defs/DigestMultibase",
145
+ "description": "The digest the witness returned for the VWC, which the VTA has checked against the VWC it stored: over the RFC 8785 canonicalization of the VWC, proof included."
146
+ },
147
+ "evidence": {
148
+ "$ref": "#/$defs/Evidence"
149
+ },
150
+ "ext": {
151
+ "$ref": "#/$defs/Ext"
152
+ }
153
+ }
154
+ },
155
+ "Ext": {
156
+ "title": "Ext",
157
+ "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.",
158
+ "type": "object",
159
+ "minProperties": 1,
160
+ "additionalProperties": true,
161
+ "propertyNames": {
162
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
163
+ }
164
+ },
165
+ "DigestMultibase": {
166
+ "title": "DigestMultibase",
167
+ "description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
168
+ "type": "string",
169
+ "minLength": 16,
170
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
171
+ "examples": [
172
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
173
+ ]
174
+ }
175
+ }
176
+ };
177
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
178
+ export const RESPONSE_PAYLOAD_SCHEMA = {
179
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
180
+ "$ref": "#/$defs/Response",
181
+ "$defs": {
182
+ "Membership": {
183
+ "title": "Membership",
184
+ "description": "A membership credential (VMC) held in the credential vault, and the DID it names. When memberDid is absent the VMC names relationshipDid and is presented in the relationship presentation. When memberDid is present the VMC names that DID, and the VTA builds a second presentation — the member presentation — signed by memberDid and bound to the same session, which discloses memberDid to the witness.",
185
+ "type": "object",
186
+ "additionalProperties": false,
187
+ "required": [
188
+ "credentialId"
189
+ ],
190
+ "properties": {
191
+ "credentialId": {
192
+ "type": "string",
193
+ "minLength": 1,
194
+ "maxLength": 256,
195
+ "description": "The credential-vault handle of the membership credential."
196
+ },
197
+ "memberDid": {
198
+ "type": "string",
199
+ "pattern": "^did:",
200
+ "description": "The member DID the membership credential names, when it is not relationshipDid. The VTA must hold a key of it in a context the caller may act in. Naming it is the caller's explicit choice to disclose it to the witness."
201
+ }
202
+ }
203
+ },
204
+ "Evidence": {
205
+ "title": "Evidence",
206
+ "description": "The two documents a holder ships with the VWC so a verifier can pair it with the session that produced it (witness/session/submit, This response is the outcome evidence). Each is carried exactly as sent or received, never re-serialised.",
207
+ "type": "object",
208
+ "additionalProperties": false,
209
+ "required": [
210
+ "session",
211
+ "outcome"
212
+ ],
213
+ "properties": {
214
+ "session": {
215
+ "type": "object",
216
+ "minProperties": 1,
217
+ "description": "The witness/session document that opened the session, as the VTA sent it. The VWC's taskContext is its id and its taskDigestMultibase is computed over it."
218
+ },
219
+ "outcome": {
220
+ "type": "object",
221
+ "minProperties": 1,
222
+ "description": "The witness/session/submit #response, as the VTA received it, under the witness's proof. It carries the VWC and its vwcDigestMultibase."
223
+ }
224
+ }
225
+ },
226
+ "Response": {
227
+ "$anchor": "response",
228
+ "title": "VTA Witness — Request — response payload",
229
+ "description": "The stored VWC's vault handle, its digest, and the evidence documents that carry it. Sent only once the VWC is verified and stored.",
230
+ "type": "object",
231
+ "additionalProperties": false,
232
+ "required": [
233
+ "credentialId",
234
+ "witness",
235
+ "vwcDigestMultibase",
236
+ "evidence"
237
+ ],
238
+ "properties": {
239
+ "credentialId": {
240
+ "type": "string",
241
+ "minLength": 1,
242
+ "maxLength": 256,
243
+ "description": "The credential-vault handle the VWC is now stored under, with its evidence."
244
+ },
245
+ "witness": {
246
+ "type": "string",
247
+ "pattern": "^did:",
248
+ "description": "The witness that issued the VWC. Equal to the request's witness: a VWC issued by any other party is refused, not stored."
249
+ },
250
+ "vwcDigestMultibase": {
251
+ "$ref": "#/$defs/DigestMultibase",
252
+ "description": "The digest the witness returned for the VWC, which the VTA has checked against the VWC it stored: over the RFC 8785 canonicalization of the VWC, proof included."
253
+ },
254
+ "evidence": {
255
+ "$ref": "#/$defs/Evidence"
256
+ },
257
+ "ext": {
258
+ "$ref": "#/$defs/Ext"
259
+ }
260
+ }
261
+ },
262
+ "Ext": {
263
+ "title": "Ext",
264
+ "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.",
265
+ "type": "object",
266
+ "minProperties": 1,
267
+ "additionalProperties": true,
268
+ "propertyNames": {
269
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
270
+ }
271
+ },
272
+ "DigestMultibase": {
273
+ "title": "DigestMultibase",
274
+ "description": "A cryptographic digest as a multibase-encoded multihash — the encoding the W3C Verifiable Credentials Data Model 2.0 defines for `digestMultibase`, and the one `did:webvh` uses for its SCID and entry hashes.\n\nMultihash carries the hash algorithm in-band, so the value is self-describing and the wire format survives an algorithm change without a schema revision; multibase does the same for the base encoding, so a verifier never infers base58 from base64url by context. A bare hex string or a `sha-256:`-style prefix hard-codes one algorithm into the wire contract and is non-conforming here.\n\nThis definition constrains the *encoding only*. What the digest is computed over is stated by each referencing field, because it differs legitimately: a digest over a JSON document is taken over its RFC 8785 (JCS) canonicalization, while a digest over an opaque artifact is taken over its bytes. A field whose input is a JSON document and which does not name a canonicalization is not reproducible.\n\nRestricted to the two multibase headers W3C Controlled Identifiers 1.0 §2.4 normatively requires — `z` (base58btc) and `u` (base64url-no-pad). CID permits others but states that \"interoperability is not guaranteed between implementations using such values\", and a registry whose purpose is interoperability should not mint digests a conforming verifier may be unable to read. The alphabets are enforced rather than assumed: base58btc excludes 0, O, I and l, and an earlier permissive pattern let three published examples carry digests that were not valid base58 at all. base58btc is RECOMMENDED, for consistency with `did:key` and `did:webvh`.",
275
+ "type": "string",
276
+ "minLength": 16,
277
+ "pattern": "^(z[1-9A-HJ-NP-Za-km-z]+|u[A-Za-z0-9_-]+)$",
278
+ "examples": [
279
+ "zQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR"
280
+ ]
281
+ }
282
+ }
283
+ };
284
+ /**
285
+ * SPEC.md §7.2 policy for the request variant, from this specification's
286
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
287
+ * per-specification and cannot be derived from the document alone, and
288
+ * item 2 needs the schema this carries.
289
+ */
290
+ export const SPEC = {
291
+ typeUri: TYPE_URI,
292
+ isBearer: false,
293
+ isProofRequired: true,
294
+ isRecipientRequired: true,
295
+ isIssuedAtRequired: true,
296
+ payloadSchema: PAYLOAD_SCHEMA,
297
+ };
298
+ /**
299
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
300
+ * tracks the *issuer* party's requirement because a response swaps the
301
+ * parties (§7.3 item 5).
302
+ */
303
+ export const RESPONSE_SPEC = {
304
+ typeUri: RESPONSE_TYPE_URI,
305
+ isBearer: false,
306
+ isProofRequired: false,
307
+ isRecipientRequired: true,
308
+ isIssuedAtRequired: true,
309
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
310
+ };
311
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/witness/request/0.1/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAqFH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,qDAA8D,CAAC;AAKvF,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,8DAAuE,CAAC;AAKzG;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,qDAAqD;IAC5D,OAAO,EAAE,iCAAiC;IAC1C,aAAa,EAAE,sYAAsY;IACrZ,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,SAAS;QACT,iBAAiB;QACjB,iBAAiB;QACjB,sBAAsB;QACtB,0BAA0B;KAC3B;IACD,YAAY,EAAE;QACZ,SAAS,EAAE;YACT,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,OAAO;YAClB,aAAa,EAAE,qUAAqU;SACrV;QACD,iBAAiB,EAAE;YACjB,MAAM,EAAE,QAAQ;YAChB,SAAS,EAAE,OAAO;YAClB,aAAa,EAAE,6RAA6R;SAC7S;QACD,iBAAiB,EAAE;YACjB,MAAM,EAAE,QAAQ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C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openvtc/trust-tasks",
3
- "version": "0.26.5",
3
+ "version": "0.26.7",
4
4
  "description": "Generated TypeScript bindings for the Trust Tasks framework registry.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -452,7 +452,8 @@ export type Capability_DeviceV0_1 =
452
452
  | "external-accounts-manage"
453
453
  | "external-auth-use"
454
454
  | "pcs-vetter"
455
- | "pcs-applicant";
455
+ | "pcs-applicant"
456
+ | "witness-request";
456
457
  /**
457
458
  * Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything.
458
459
  */
@@ -478,7 +479,8 @@ export type Capability_DeviceV0_2 =
478
479
  | "externalAccountsManage"
479
480
  | "externalAuthUse"
480
481
  | "pcsVetter"
481
- | "pcsApplicant";
482
+ | "pcsApplicant"
483
+ | "witnessRequest";
482
484
  /**
483
485
  * Number of chunks in the bundle, equal to ceil(expectedSizeBytes / chunkSize). Bounded at 4096 so that the manifest itself — one digest per chunk — fits in the single document that carries it under the same message-size reasoning as a chunk.
484
486
  */
@@ -1151,7 +1153,7 @@ export type SealedEnvelope_VaultV0_2 =
1151
1153
  | HpkeArmoredEnvelope_VaultV0_2
1152
1154
  | TspMessageEnvelope_VaultV0_2;
1153
1155
  /**
1154
- * A sealed-transfer bundle: OpenPGP-style ASCII armor around an HPKE-sealed `SealedPayloadV1` (base mode, X25519-HKDF-SHA256 KEM, HKDF-SHA256 KDF, ChaCha20-Poly1305 AEAD, info string `vta-sealed-transfer/v1`), with a producer assertion and Bundle-Id, Chunk and Digest-Algo headers bound into the associated data. Each task states the key it is sealed to: a single-use wrapping key from keys/import-wrapping-key for external/accounts/secret/set, and the caller's key-agreement key for external/credentials/issue. Its cleartext is an ExternalSecretPayload or an ExternalCredentialPayload. The only form in which secret material crosses the wire in this family, in either direction: the seal is what keeps a terminating proxy, a relay, a request log or a debug dump of "the response" from ever holding a usable secret, whatever transport carried the document.
1156
+ * A sealed-transfer bundle: OpenPGP-style ASCII armor around an HPKE-sealed `SealedPayloadV1` (base mode, X25519-HKDF-SHA256 KEM, HKDF-SHA256 KDF, ChaCha20-Poly1305 AEAD, info string `vta-sealed-transfer/v1`), with a producer assertion and Bundle-Id, Chunk and Digest-Algo headers bound into the associated data. Each task states the key it is sealed to: a single-use wrapping key from keys/import-wrapping-key for external/accounts/secret/set, and the caller's key-agreement key for external/credentials/issue. Its cleartext is an ExternalSecretPayload, an ExternalCredentialPayload or, from external/credentials/issue 0.2 for `s3-static-presign`, a PresignedRequestSet. The only form in which secret material crosses the wire in this family, in either direction: the seal is what keeps a terminating proxy, a relay, a request log or a debug dump of "the response" from ever holding a usable secret, whatever transport carried the document.
1155
1157
  */
1156
1158
  export type SealedTransferBundle = string;
1157
1159
  /**
@@ -255,7 +255,8 @@ export const PAYLOAD_SCHEMA = {
255
255
  "external-accounts-manage",
256
256
  "external-auth-use",
257
257
  "pcs-vetter",
258
- "pcs-applicant"
258
+ "pcs-applicant",
259
+ "witness-request"
259
260
  ],
260
261
  "description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
261
262
  },
@@ -601,7 +602,8 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
601
602
  "external-accounts-manage",
602
603
  "external-auth-use",
603
604
  "pcs-vetter",
604
- "pcs-applicant"
605
+ "pcs-applicant",
606
+ "witness-request"
605
607
  ],
606
608
  "description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
607
609
  },
@@ -255,7 +255,8 @@ export const PAYLOAD_SCHEMA = {
255
255
  "externalAccountsManage",
256
256
  "externalAuthUse",
257
257
  "pcsVetter",
258
- "pcsApplicant"
258
+ "pcsApplicant",
259
+ "witnessRequest"
259
260
  ],
260
261
  "description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
261
262
  },
@@ -601,7 +602,8 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
601
602
  "externalAccountsManage",
602
603
  "externalAuthUse",
603
604
  "pcsVetter",
604
- "pcsApplicant"
605
+ "pcsApplicant",
606
+ "witnessRequest"
605
607
  ],
606
608
  "description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
607
609
  },
@@ -223,7 +223,8 @@ export const PAYLOAD_SCHEMA = {
223
223
  "external-accounts-manage",
224
224
  "external-auth-use",
225
225
  "pcs-vetter",
226
- "pcs-applicant"
226
+ "pcs-applicant",
227
+ "witness-request"
227
228
  ],
228
229
  "description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
229
230
  },
@@ -559,7 +560,8 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
559
560
  "external-accounts-manage",
560
561
  "external-auth-use",
561
562
  "pcs-vetter",
562
- "pcs-applicant"
563
+ "pcs-applicant",
564
+ "witness-request"
563
565
  ],
564
566
  "description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
565
567
  },
@@ -223,7 +223,8 @@ export const PAYLOAD_SCHEMA = {
223
223
  "externalAccountsManage",
224
224
  "externalAuthUse",
225
225
  "pcsVetter",
226
- "pcsApplicant"
226
+ "pcsApplicant",
227
+ "witnessRequest"
227
228
  ],
228
229
  "description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
229
230
  },
@@ -559,7 +560,8 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
559
560
  "externalAccountsManage",
560
561
  "externalAuthUse",
561
562
  "pcsVetter",
562
- "pcsApplicant"
563
+ "pcsApplicant",
564
+ "witnessRequest"
563
565
  ],
564
566
  "description": "Fine-grained capability flag scoped to the device's allowed contexts. See SPEC.md for the full semantics of each. Capability values are additive: a consumer MUST ignore a value it does not recognise rather than reject the binding, and MUST NOT treat an unrecognised value as conferring anything."
565
567
  },
@@ -128,7 +128,7 @@ export const PAYLOAD_SCHEMA = {
128
128
  "minLength": 64,
129
129
  "maxLength": 65536,
130
130
  "pattern": "^-----BEGIN VTA SEALED BUNDLE-----[\\s\\S]+-----END VTA SEALED BUNDLE-----\\s*$",
131
- "description": "A sealed-transfer bundle: OpenPGP-style ASCII armor around an HPKE-sealed `SealedPayloadV1` (base mode, X25519-HKDF-SHA256 KEM, HKDF-SHA256 KDF, ChaCha20-Poly1305 AEAD, info string `vta-sealed-transfer/v1`), with a producer assertion and Bundle-Id, Chunk and Digest-Algo headers bound into the associated data. Each task states the key it is sealed to: a single-use wrapping key from keys/import-wrapping-key for external/accounts/secret/set, and the caller's key-agreement key for external/credentials/issue. Its cleartext is an ExternalSecretPayload or an ExternalCredentialPayload. The only form in which secret material crosses the wire in this family, in either direction: the seal is what keeps a terminating proxy, a relay, a request log or a debug dump of \"the response\" from ever holding a usable secret, whatever transport carried the document."
131
+ "description": "A sealed-transfer bundle: OpenPGP-style ASCII armor around an HPKE-sealed `SealedPayloadV1` (base mode, X25519-HKDF-SHA256 KEM, HKDF-SHA256 KDF, ChaCha20-Poly1305 AEAD, info string `vta-sealed-transfer/v1`), with a producer assertion and Bundle-Id, Chunk and Digest-Algo headers bound into the associated data. Each task states the key it is sealed to: a single-use wrapping key from keys/import-wrapping-key for external/accounts/secret/set, and the caller's key-agreement key for external/credentials/issue. Its cleartext is an ExternalSecretPayload, an ExternalCredentialPayload or, from external/credentials/issue 0.2 for `s3-static-presign`, a PresignedRequestSet. The only form in which secret material crosses the wire in this family, in either direction: the seal is what keeps a terminating proxy, a relay, a request log or a debug dump of \"the response\" from ever holding a usable secret, whatever transport carried the document."
132
132
  },
133
133
  "AccountId": {
134
134
  "title": "AccountId",
@@ -198,7 +198,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
198
198
  "minLength": 64,
199
199
  "maxLength": 65536,
200
200
  "pattern": "^-----BEGIN VTA SEALED BUNDLE-----[\\s\\S]+-----END VTA SEALED BUNDLE-----\\s*$",
201
- "description": "A sealed-transfer bundle: OpenPGP-style ASCII armor around an HPKE-sealed `SealedPayloadV1` (base mode, X25519-HKDF-SHA256 KEM, HKDF-SHA256 KDF, ChaCha20-Poly1305 AEAD, info string `vta-sealed-transfer/v1`), with a producer assertion and Bundle-Id, Chunk and Digest-Algo headers bound into the associated data. Each task states the key it is sealed to: a single-use wrapping key from keys/import-wrapping-key for external/accounts/secret/set, and the caller's key-agreement key for external/credentials/issue. Its cleartext is an ExternalSecretPayload or an ExternalCredentialPayload. The only form in which secret material crosses the wire in this family, in either direction: the seal is what keeps a terminating proxy, a relay, a request log or a debug dump of \"the response\" from ever holding a usable secret, whatever transport carried the document."
201
+ "description": "A sealed-transfer bundle: OpenPGP-style ASCII armor around an HPKE-sealed `SealedPayloadV1` (base mode, X25519-HKDF-SHA256 KEM, HKDF-SHA256 KDF, ChaCha20-Poly1305 AEAD, info string `vta-sealed-transfer/v1`), with a producer assertion and Bundle-Id, Chunk and Digest-Algo headers bound into the associated data. Each task states the key it is sealed to: a single-use wrapping key from keys/import-wrapping-key for external/accounts/secret/set, and the caller's key-agreement key for external/credentials/issue. Its cleartext is an ExternalSecretPayload, an ExternalCredentialPayload or, from external/credentials/issue 0.2 for `s3-static-presign`, a PresignedRequestSet. The only form in which secret material crosses the wire in this family, in either direction: the seal is what keeps a terminating proxy, a relay, a request log or a debug dump of \"the response\" from ever holding a usable secret, whatever transport carried the document."
202
202
  },
203
203
  "AccountId": {
204
204
  "title": "AccountId",
@@ -190,7 +190,7 @@ export const PAYLOAD_SCHEMA = {
190
190
  "minLength": 64,
191
191
  "maxLength": 65536,
192
192
  "pattern": "^-----BEGIN VTA SEALED BUNDLE-----[\\s\\S]+-----END VTA SEALED BUNDLE-----\\s*$",
193
- "description": "A sealed-transfer bundle: OpenPGP-style ASCII armor around an HPKE-sealed `SealedPayloadV1` (base mode, X25519-HKDF-SHA256 KEM, HKDF-SHA256 KDF, ChaCha20-Poly1305 AEAD, info string `vta-sealed-transfer/v1`), with a producer assertion and Bundle-Id, Chunk and Digest-Algo headers bound into the associated data. Each task states the key it is sealed to: a single-use wrapping key from keys/import-wrapping-key for external/accounts/secret/set, and the caller's key-agreement key for external/credentials/issue. Its cleartext is an ExternalSecretPayload or an ExternalCredentialPayload. The only form in which secret material crosses the wire in this family, in either direction: the seal is what keeps a terminating proxy, a relay, a request log or a debug dump of \"the response\" from ever holding a usable secret, whatever transport carried the document."
193
+ "description": "A sealed-transfer bundle: OpenPGP-style ASCII armor around an HPKE-sealed `SealedPayloadV1` (base mode, X25519-HKDF-SHA256 KEM, HKDF-SHA256 KDF, ChaCha20-Poly1305 AEAD, info string `vta-sealed-transfer/v1`), with a producer assertion and Bundle-Id, Chunk and Digest-Algo headers bound into the associated data. Each task states the key it is sealed to: a single-use wrapping key from keys/import-wrapping-key for external/accounts/secret/set, and the caller's key-agreement key for external/credentials/issue. Its cleartext is an ExternalSecretPayload, an ExternalCredentialPayload or, from external/credentials/issue 0.2 for `s3-static-presign`, a PresignedRequestSet. The only form in which secret material crosses the wire in this family, in either direction: the seal is what keeps a terminating proxy, a relay, a request log or a debug dump of \"the response\" from ever holding a usable secret, whatever transport carried the document."
194
194
  },
195
195
  "AccountId": {
196
196
  "title": "AccountId",
@@ -315,7 +315,7 @@ export const RESPONSE_PAYLOAD_SCHEMA = {
315
315
  "minLength": 64,
316
316
  "maxLength": 65536,
317
317
  "pattern": "^-----BEGIN VTA SEALED BUNDLE-----[\\s\\S]+-----END VTA SEALED BUNDLE-----\\s*$",
318
- "description": "A sealed-transfer bundle: OpenPGP-style ASCII armor around an HPKE-sealed `SealedPayloadV1` (base mode, X25519-HKDF-SHA256 KEM, HKDF-SHA256 KDF, ChaCha20-Poly1305 AEAD, info string `vta-sealed-transfer/v1`), with a producer assertion and Bundle-Id, Chunk and Digest-Algo headers bound into the associated data. Each task states the key it is sealed to: a single-use wrapping key from keys/import-wrapping-key for external/accounts/secret/set, and the caller's key-agreement key for external/credentials/issue. Its cleartext is an ExternalSecretPayload or an ExternalCredentialPayload. The only form in which secret material crosses the wire in this family, in either direction: the seal is what keeps a terminating proxy, a relay, a request log or a debug dump of \"the response\" from ever holding a usable secret, whatever transport carried the document."
318
+ "description": "A sealed-transfer bundle: OpenPGP-style ASCII armor around an HPKE-sealed `SealedPayloadV1` (base mode, X25519-HKDF-SHA256 KEM, HKDF-SHA256 KDF, ChaCha20-Poly1305 AEAD, info string `vta-sealed-transfer/v1`), with a producer assertion and Bundle-Id, Chunk and Digest-Algo headers bound into the associated data. Each task states the key it is sealed to: a single-use wrapping key from keys/import-wrapping-key for external/accounts/secret/set, and the caller's key-agreement key for external/credentials/issue. Its cleartext is an ExternalSecretPayload, an ExternalCredentialPayload or, from external/credentials/issue 0.2 for `s3-static-presign`, a PresignedRequestSet. The only form in which secret material crosses the wire in this family, in either direction: the seal is what keeps a terminating proxy, a relay, a request log or a debug dump of \"the response\" from ever holding a usable secret, whatever transport carried the document."
319
319
  },
320
320
  "AccountId": {
321
321
  "title": "AccountId",