@openvtc/trust-tasks 0.28.0 → 0.28.2
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 +236 -0
- package/dist/_runtime/document.d.ts +13 -0
- package/dist/_runtime/document.d.ts.map +1 -1
- package/dist/_runtime/document.js +17 -2
- package/dist/_runtime/document.js.map +1 -1
- package/dist/_runtime/index.d.ts +1 -1
- package/dist/_runtime/index.d.ts.map +1 -1
- package/dist/_runtime/index.js +1 -1
- package/dist/_runtime/index.js.map +1 -1
- package/dist/auth/step-up/approve-request/0.5/payload.d.ts +3 -3
- package/dist/auth/step-up/approve-request/0.5/payload.js +1 -1
- package/dist/auth/step-up/approve-response/0.1/payload.d.ts +4 -4
- package/dist/auth/step-up/approve-response/0.1/payload.js +1 -1
- package/dist/auth/step-up/approve-response/0.2/payload.d.ts +4 -4
- package/dist/auth/step-up/approve-response/0.2/payload.js +1 -1
- package/dist/auth/step-up/approve-response/0.3/payload.d.ts +4 -4
- package/dist/auth/step-up/approve-response/0.3/payload.js +1 -1
- package/dist/auth/step-up/approve-response/0.4/payload.d.ts +4 -4
- package/dist/auth/step-up/approve-response/0.4/payload.js +1 -1
- package/dist/auth/step-up/approve-response/0.5/payload.d.ts +4 -4
- package/dist/auth/step-up/approve-response/0.5/payload.js +1 -1
- package/dist/auth/step-up/approve-response/0.6/payload.d.ts +14 -2
- package/dist/auth/step-up/approve-response/0.6/payload.d.ts.map +1 -1
- package/dist/auth/step-up/approve-response/0.6/payload.js +1 -1
- package/dist/auth/step-up/approve-response/0.6/payload.js.map +1 -1
- package/dist/auth/step-up/approve-response/0.7/payload.d.ts +988 -0
- package/dist/auth/step-up/approve-response/0.7/payload.d.ts.map +1 -0
- package/dist/auth/step-up/approve-response/0.7/payload.js +566 -0
- package/dist/auth/step-up/approve-response/0.7/payload.js.map +1 -0
- package/dist/auth/step-up/approver/attest/0.1/payload.d.ts +3 -3
- package/dist/auth/step-up/approver/attest/0.1/payload.js +1 -1
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -1
- package/dist/rooms/owner/group/remove/0.1/payload.d.ts +4 -4
- package/dist/rooms/owner/group/remove/0.1/payload.js +1 -1
- package/dist/rooms/owner/group/remove/0.2/payload.d.ts +4 -4
- package/dist/rooms/owner/group/remove/0.2/payload.js +1 -1
- package/dist/rooms/owner/group/remove/0.3/payload.d.ts +14 -2
- package/dist/rooms/owner/group/remove/0.3/payload.d.ts.map +1 -1
- package/dist/rooms/owner/group/remove/0.3/payload.js +1 -1
- package/dist/rooms/owner/group/remove/0.3/payload.js.map +1 -1
- package/dist/rooms/owner/group/remove/0.4/payload.d.ts +634 -0
- package/dist/rooms/owner/group/remove/0.4/payload.d.ts.map +1 -0
- package/dist/rooms/owner/group/remove/0.4/payload.js +331 -0
- package/dist/rooms/owner/group/remove/0.4/payload.js.map +1 -0
- package/dist/task-consent/decision/0.2/payload.d.ts +5 -5
- package/dist/task-consent/decision/0.2/payload.js +2 -2
- package/dist/vta/contexts/delete/1.0/payload.d.ts +13 -2
- package/dist/vta/contexts/delete/1.0/payload.d.ts.map +1 -1
- package/dist/vta/contexts/delete/1.0/payload.js +1 -1
- package/dist/vta/contexts/delete/1.0/payload.js.map +1 -1
- package/dist/vta/contexts/delete/1.1/payload.d.ts +315 -0
- package/dist/vta/contexts/delete/1.1/payload.d.ts.map +1 -0
- package/dist/vta/contexts/delete/1.1/payload.js +178 -0
- package/dist/vta/contexts/delete/1.1/payload.js.map +1 -0
- package/dist/vtc/install/claim/finish/0.2/payload.d.ts +4 -4
- package/dist/vtc/install/claim/finish/0.2/payload.d.ts.map +1 -1
- package/dist/vtc/install/claim/finish/0.2/payload.js +1 -1
- package/dist/vtc/install/claim/finish/0.2/payload.js.map +1 -1
- package/dist/vtc/install/claim/passkey/finish/0.1/payload.d.ts +306 -0
- package/dist/vtc/install/claim/passkey/finish/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/install/claim/passkey/finish/0.1/payload.js +175 -0
- package/dist/vtc/install/claim/passkey/finish/0.1/payload.js.map +1 -0
- package/dist/vtc/install/claim/passkey/start/0.1/payload.d.ts +302 -0
- package/dist/vtc/install/claim/passkey/start/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/install/claim/passkey/start/0.1/payload.js +172 -0
- package/dist/vtc/install/claim/passkey/start/0.1/payload.js.map +1 -0
- package/dist/vtc/install/claim/start/0.2/payload.d.ts +4 -4
- package/dist/vtc/install/claim/start/0.2/payload.d.ts.map +1 -1
- package/dist/vtc/install/claim/start/0.2/payload.js +1 -1
- package/dist/vtc/install/claim/start/0.2/payload.js.map +1 -1
- package/dist/vtc/members/role/set/0.1/payload.d.ts +1867 -0
- package/dist/vtc/members/role/set/0.1/payload.d.ts.map +1 -0
- package/dist/vtc/members/role/set/0.1/payload.js +1060 -0
- package/dist/vtc/members/role/set/0.1/payload.js.map +1 -0
- package/package.json +1 -1
- package/src/_runtime/document.ts +18 -2
- package/src/_runtime/index.ts +1 -0
- package/src/auth/step-up/approve-request/0.5/payload.ts +2 -2
- package/src/auth/step-up/approve-response/0.1/payload.ts +5 -5
- package/src/auth/step-up/approve-response/0.2/payload.ts +5 -5
- package/src/auth/step-up/approve-response/0.3/payload.ts +5 -5
- package/src/auth/step-up/approve-response/0.4/payload.ts +5 -5
- package/src/auth/step-up/approve-response/0.5/payload.ts +5 -5
- package/src/auth/step-up/approve-response/0.6/payload.ts +15 -3
- package/src/auth/step-up/approve-response/0.7/payload.ts +664 -0
- package/src/auth/step-up/approver/attest/0.1/payload.ts +2 -2
- package/src/index.ts +18 -0
- package/src/rooms/owner/group/remove/0.1/payload.ts +5 -5
- package/src/rooms/owner/group/remove/0.2/payload.ts +5 -5
- package/src/rooms/owner/group/remove/0.3/payload.ts +15 -3
- package/src/rooms/owner/group/remove/0.4/payload.ts +442 -0
- package/src/task-consent/decision/0.2/payload.ts +3 -3
- package/src/vta/contexts/delete/1.0/payload.ts +14 -3
- package/src/vta/contexts/delete/1.1/payload.ts +228 -0
- package/src/vtc/install/claim/finish/0.2/payload.ts +5 -5
- package/src/vtc/install/claim/passkey/finish/0.1/payload.ts +228 -0
- package/src/vtc/install/claim/passkey/start/0.1/payload.ts +225 -0
- package/src/vtc/install/claim/start/0.2/payload.ts +5 -5
- package/src/vtc/members/role/set/0.1/payload.ts +1142 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/auth/step-up/approve-response/0.7/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,mCAAmC,EAAE,GAAG,EAAE,gBAAgB,IAAI,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAGhJ;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,cAAc,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,EAAE,UAAU,GAAG,QAAQ,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,WAAW,CAAC;CACnB;AACD,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,UAAU,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,mCAAmC,CAAC;CAChD;AACD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmO1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhB,CAAC"}
|
|
@@ -0,0 +1,566 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
|
|
3
|
+
* Source: specs/auth/step-up/approve-response/0.7/payload.schema.json
|
|
4
|
+
*/
|
|
5
|
+
/** Trust Task type URI. */
|
|
6
|
+
export const TYPE_URI = "https://trusttasks.org/spec/auth/step-up/approve-response/0.7";
|
|
7
|
+
/**
|
|
8
|
+
* The earlier version of this specification that this one declares it
|
|
9
|
+
* extends (front matter `extends`, SPEC §5.2 "Declared extension"), or
|
|
10
|
+
* `null`. Only the direct declaration — follow the chain with
|
|
11
|
+
* `extendsChain` / `readForSpec`.
|
|
12
|
+
*/
|
|
13
|
+
export const EXTENDS = null;
|
|
14
|
+
/**
|
|
15
|
+
* Why this version is deprecated, or `null` while it is current. A
|
|
16
|
+
* superseded or retired version is still supported, and is withdrawn from
|
|
17
|
+
* this package in a later scheduled batch (SPEC "Superseded and Withdrawn
|
|
18
|
+
* Versions").
|
|
19
|
+
*/
|
|
20
|
+
export const DEPRECATION = null;
|
|
21
|
+
/** Trust Task response type URI (request type URI + "#response"). */
|
|
22
|
+
export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/step-up/approve-response/0.7#response";
|
|
23
|
+
/**
|
|
24
|
+
* This specification's payload schema, as a value.
|
|
25
|
+
*
|
|
26
|
+
* SPEC.md §7.2 item 2 is performed against this. It is shipped as data
|
|
27
|
+
* rather than only as a `.json` file because TypeScript types are erased
|
|
28
|
+
* at runtime: without a schema a consumer has nothing to validate, and
|
|
29
|
+
* every REQUIRED payload member is optional in practice. Cross-file
|
|
30
|
+
* `$ref`s are already inlined, so it needs no resolver.
|
|
31
|
+
*/
|
|
32
|
+
export const PAYLOAD_SCHEMA = {
|
|
33
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
34
|
+
"$id": "https://trusttasks.org/spec/auth/step-up/approve-response/0.7",
|
|
35
|
+
"title": "Auth — Step-up Approve Response",
|
|
36
|
+
"description": "The approver's signed ratification of a step-up: subject + challenge (+ sessionId, when the request carried one) are echoed inside a document signed by the approver, backed by the approver's own evidence — its own DID's proof, a WebAuthn assertion by a passkey registered to it, or (beside its own proof) a bound step-up approver's signed statement — so the relying party can elevate the session, or apply the approval to the one operation it was bound to.",
|
|
37
|
+
"type": "object",
|
|
38
|
+
"additionalProperties": false,
|
|
39
|
+
"required": [
|
|
40
|
+
"subject",
|
|
41
|
+
"challenge",
|
|
42
|
+
"decision"
|
|
43
|
+
],
|
|
44
|
+
"properties": {
|
|
45
|
+
"subject": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"minLength": 1,
|
|
48
|
+
"description": "Echoed from the matching approve-request. The relying party verifies it equals the subject bound to the pending step-up. With `approverSigned` evidence it is also the document's issuer: the subject signs as its own DID."
|
|
49
|
+
},
|
|
50
|
+
"sessionId": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"minLength": 1,
|
|
53
|
+
"description": "Echoed from the matching approve-request when that request carried one, and absent when it did not — a step-up bound to an operation that arrived without a session."
|
|
54
|
+
},
|
|
55
|
+
"challenge": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"minLength": 16,
|
|
58
|
+
"description": "Echoed from the matching approve-request. The relying party verifies it equals the bound challenge."
|
|
59
|
+
},
|
|
60
|
+
"decision": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"enum": [
|
|
63
|
+
"approved",
|
|
64
|
+
"denied"
|
|
65
|
+
],
|
|
66
|
+
"description": "`approved` elevates the session, or authorizes the bound operation, per the relying party's policy. `denied` is a signed refusal — useful for audit even though it changes nothing."
|
|
67
|
+
},
|
|
68
|
+
"deniedReason": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"maxLength": 500,
|
|
71
|
+
"description": "Required when decision is `denied`. Human-readable rationale the user provided (or which the approver inferred)."
|
|
72
|
+
},
|
|
73
|
+
"grantedAcr": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "The acr the approver believes it has cryptographically demonstrated. The relying party MAY accept this, MAY upgrade to a lower value, but MUST NOT exceed it. Only a document proved by the approver's own DID can carry it: on a `webauthn` answer with no proof, the relying party derives the acr from the verified assertion and ignores this member."
|
|
76
|
+
},
|
|
77
|
+
"evidence": {
|
|
78
|
+
"$ref": "#/$defs/Evidence",
|
|
79
|
+
"description": "How the approver demonstrated the factor backing this approval. A tagged union on `kind`; absent is equivalent to `didSigned`. For `didSigned` and `approverSigned` the document's framework `proof`, by the approver's own DID, is REQUIRED. For `webauthn` the assertion, by a passkey registered to the approver, is the evidence, and the proof is OPTIONAL — but a proof, when present, MUST also be the approver's own: a delegated key's proof never counts as the approver's."
|
|
80
|
+
},
|
|
81
|
+
"ext": {
|
|
82
|
+
"$ref": "#/$defs/Ext"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"$defs": {
|
|
86
|
+
"Evidence": {
|
|
87
|
+
"$anchor": "evidence",
|
|
88
|
+
"title": "Step-up Evidence",
|
|
89
|
+
"description": "Tagged union over `kind` describing the cryptographic factor the approver presents to back the approval.",
|
|
90
|
+
"oneOf": [
|
|
91
|
+
{
|
|
92
|
+
"title": "DidSigned",
|
|
93
|
+
"type": "object",
|
|
94
|
+
"additionalProperties": false,
|
|
95
|
+
"required": [
|
|
96
|
+
"kind"
|
|
97
|
+
],
|
|
98
|
+
"properties": {
|
|
99
|
+
"kind": {
|
|
100
|
+
"const": "didSigned"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"description": "The approval is gated by the document's framework `proof` alone. The default when `evidence` is omitted. `amr` reflects \"vta\"/\"did\"."
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"title": "WebAuthn",
|
|
107
|
+
"type": "object",
|
|
108
|
+
"additionalProperties": false,
|
|
109
|
+
"required": [
|
|
110
|
+
"kind",
|
|
111
|
+
"assertion"
|
|
112
|
+
],
|
|
113
|
+
"properties": {
|
|
114
|
+
"kind": {
|
|
115
|
+
"const": "webauthn"
|
|
116
|
+
},
|
|
117
|
+
"assertion": {
|
|
118
|
+
"$ref": "#/$defs/AssertionResponse",
|
|
119
|
+
"description": "The unmodified AuthenticatorAssertionResponse from the platform WebAuthn API, made by a passkey the relying party has registered to the approver. Its `clientDataJSON` challenge MUST equal the step-up `challenge`, which the relying party bound to this one approval. Verified per WebAuthn Level 2 §7.2, with user verification required when the document carries no proof by the approver; `amr` reflects \"passkey\"."
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"title": "ApproverSigned",
|
|
125
|
+
"type": "object",
|
|
126
|
+
"additionalProperties": false,
|
|
127
|
+
"required": [
|
|
128
|
+
"kind",
|
|
129
|
+
"statement"
|
|
130
|
+
],
|
|
131
|
+
"properties": {
|
|
132
|
+
"kind": {
|
|
133
|
+
"const": "approverSigned"
|
|
134
|
+
},
|
|
135
|
+
"statement": {
|
|
136
|
+
"$ref": "#/$defs/AttestStatement",
|
|
137
|
+
"description": "A complete, signed auth/step-up/approver/attest/0.1 document with `purpose: stepUp`, issued by one of the subject's bound step-up approvers over the step-up `challenge` and `boundTo`, addressed to the relying party. The statement is the factor; the document carrying it MUST still be proved by the subject's own DID — never a delegated key. Verified as received, in addition to the framework proof; `amr` reflects \"approver\"."
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
"Response": {
|
|
144
|
+
"$anchor": "response",
|
|
145
|
+
"title": "Auth Step-up Approve Response — relying party ack",
|
|
146
|
+
"description": "Acknowledgement the relying party returns after processing the approval. Carried in a Trust Task document whose type is https://trusttasks.org/spec/auth/step-up/approve-response/0.7#response.",
|
|
147
|
+
"type": "object",
|
|
148
|
+
"additionalProperties": false,
|
|
149
|
+
"required": [
|
|
150
|
+
"status"
|
|
151
|
+
],
|
|
152
|
+
"properties": {
|
|
153
|
+
"status": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"enum": [
|
|
156
|
+
"elevated",
|
|
157
|
+
"recorded",
|
|
158
|
+
"rejected"
|
|
159
|
+
],
|
|
160
|
+
"description": "`elevated` — the approval was applied and the session's assurance level was raised. `recorded` — the approval was applied to the single operation it was bound to, and NO session was elevated; see `boundTo`. `rejected` — the approval was not applied."
|
|
161
|
+
},
|
|
162
|
+
"session": {
|
|
163
|
+
"$ref": "#/$defs/Session",
|
|
164
|
+
"description": "Present when status is `elevated`. Absent for `recorded`, which changes no session."
|
|
165
|
+
},
|
|
166
|
+
"boundTo": {
|
|
167
|
+
"type": "string",
|
|
168
|
+
"maxLength": 256,
|
|
169
|
+
"description": "Present when status is `recorded`. The opaque relying-party identifier for the single operation this approval authorised. Not a capability."
|
|
170
|
+
},
|
|
171
|
+
"reason": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"maxLength": 1024,
|
|
174
|
+
"description": "Present when status is `rejected`."
|
|
175
|
+
},
|
|
176
|
+
"ext": {
|
|
177
|
+
"$ref": "#/$defs/Ext"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"Ext": {
|
|
182
|
+
"title": "Ext",
|
|
183
|
+
"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.",
|
|
184
|
+
"type": "object",
|
|
185
|
+
"minProperties": 1,
|
|
186
|
+
"additionalProperties": true,
|
|
187
|
+
"propertyNames": {
|
|
188
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"Session": {
|
|
192
|
+
"$anchor": "session",
|
|
193
|
+
"title": "Session",
|
|
194
|
+
"description": "A logical authentication context bound to a subject. Producers and consumers exchange Session-shaped data in challenge issuance, authentication responses, and introspection (whoami).",
|
|
195
|
+
"type": "object",
|
|
196
|
+
"additionalProperties": false,
|
|
197
|
+
"required": [
|
|
198
|
+
"id",
|
|
199
|
+
"subject",
|
|
200
|
+
"issuedAt",
|
|
201
|
+
"expiresAt"
|
|
202
|
+
],
|
|
203
|
+
"properties": {
|
|
204
|
+
"id": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"minLength": 1,
|
|
207
|
+
"description": "Opaque, server-chosen session identifier. Stable for the lifetime of the session. Consumers MUST treat the value as opaque; no structure is implied."
|
|
208
|
+
},
|
|
209
|
+
"subject": {
|
|
210
|
+
"type": "string",
|
|
211
|
+
"minLength": 1,
|
|
212
|
+
"description": "The authenticated party's VID (typically a DID URL)."
|
|
213
|
+
},
|
|
214
|
+
"issuedAt": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"format": "date-time",
|
|
217
|
+
"description": "ISO-8601 timestamp when the session was created."
|
|
218
|
+
},
|
|
219
|
+
"expiresAt": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"format": "date-time",
|
|
222
|
+
"description": "ISO-8601 timestamp when the session ceases to be valid. Producers SHOULD refresh before this time; consumers MUST reject after."
|
|
223
|
+
},
|
|
224
|
+
"amr": {
|
|
225
|
+
"type": "array",
|
|
226
|
+
"minItems": 1,
|
|
227
|
+
"items": {
|
|
228
|
+
"type": "string",
|
|
229
|
+
"minLength": 1
|
|
230
|
+
},
|
|
231
|
+
"description": "Authentication Methods References per [RFC 8176]. Typical values: \"did\" (challenge-response), \"passkey\" (WebAuthn), \"vta\" (verifiable-trust agent approval). Multi-factor sessions list every method used."
|
|
232
|
+
},
|
|
233
|
+
"acr": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"description": "Authentication Context Class Reference per [OIDC Core §2]. Profiles define their own values; the recommended set is \"aal1\" (single-factor DID auth), \"aal2\" (a second possession-or-biometric factor confirmed), and \"aal3\" (hardware-bound second factor)."
|
|
236
|
+
},
|
|
237
|
+
"ext": {
|
|
238
|
+
"$ref": "#/$defs/Ext",
|
|
239
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"AttestStatement": {
|
|
244
|
+
"title": "AttestStatement",
|
|
245
|
+
"type": "object",
|
|
246
|
+
"minProperties": 1,
|
|
247
|
+
"description": "A complete, signed auth/step-up/approver/attest/0.1 Trust Task document — envelope, payload and proof — issued by the approver. Deliberately an open object here rather than a typed one: the consumer verifies it as a document in its own right (envelope, proof and payload against that specification's schemas), and verifies its proof over the members exactly as received, which a binding that narrowed it to a typed struct and re-serialised it could silently break."
|
|
248
|
+
},
|
|
249
|
+
"AssertionResponse": {
|
|
250
|
+
"$anchor": "assertionResponse",
|
|
251
|
+
"title": "AuthenticatorAssertionResponse (login)",
|
|
252
|
+
"description": "The credential the client returns from `navigator.credentials.get`. Binary fields are base64url-encoded.",
|
|
253
|
+
"type": "object",
|
|
254
|
+
"additionalProperties": false,
|
|
255
|
+
"required": [
|
|
256
|
+
"id",
|
|
257
|
+
"rawId",
|
|
258
|
+
"type",
|
|
259
|
+
"response"
|
|
260
|
+
],
|
|
261
|
+
"properties": {
|
|
262
|
+
"id": {
|
|
263
|
+
"type": "string"
|
|
264
|
+
},
|
|
265
|
+
"rawId": {
|
|
266
|
+
"type": "string"
|
|
267
|
+
},
|
|
268
|
+
"type": {
|
|
269
|
+
"const": "public-key"
|
|
270
|
+
},
|
|
271
|
+
"response": {
|
|
272
|
+
"type": "object",
|
|
273
|
+
"additionalProperties": false,
|
|
274
|
+
"required": [
|
|
275
|
+
"clientDataJSON",
|
|
276
|
+
"authenticatorData",
|
|
277
|
+
"signature"
|
|
278
|
+
],
|
|
279
|
+
"properties": {
|
|
280
|
+
"clientDataJSON": {
|
|
281
|
+
"type": "string"
|
|
282
|
+
},
|
|
283
|
+
"authenticatorData": {
|
|
284
|
+
"type": "string"
|
|
285
|
+
},
|
|
286
|
+
"signature": {
|
|
287
|
+
"type": "string"
|
|
288
|
+
},
|
|
289
|
+
"userHandle": {
|
|
290
|
+
"type": [
|
|
291
|
+
"string",
|
|
292
|
+
"null"
|
|
293
|
+
]
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"authenticatorAttachment": {
|
|
298
|
+
"enum": [
|
|
299
|
+
"platform",
|
|
300
|
+
"cross-platform"
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
"clientExtensionResults": {
|
|
304
|
+
"type": "object"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
/** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
|
|
311
|
+
export const RESPONSE_PAYLOAD_SCHEMA = {
|
|
312
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
313
|
+
"$ref": "#/$defs/Response",
|
|
314
|
+
"$defs": {
|
|
315
|
+
"Evidence": {
|
|
316
|
+
"$anchor": "evidence",
|
|
317
|
+
"title": "Step-up Evidence",
|
|
318
|
+
"description": "Tagged union over `kind` describing the cryptographic factor the approver presents to back the approval.",
|
|
319
|
+
"oneOf": [
|
|
320
|
+
{
|
|
321
|
+
"title": "DidSigned",
|
|
322
|
+
"type": "object",
|
|
323
|
+
"additionalProperties": false,
|
|
324
|
+
"required": [
|
|
325
|
+
"kind"
|
|
326
|
+
],
|
|
327
|
+
"properties": {
|
|
328
|
+
"kind": {
|
|
329
|
+
"const": "didSigned"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"description": "The approval is gated by the document's framework `proof` alone. The default when `evidence` is omitted. `amr` reflects \"vta\"/\"did\"."
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"title": "WebAuthn",
|
|
336
|
+
"type": "object",
|
|
337
|
+
"additionalProperties": false,
|
|
338
|
+
"required": [
|
|
339
|
+
"kind",
|
|
340
|
+
"assertion"
|
|
341
|
+
],
|
|
342
|
+
"properties": {
|
|
343
|
+
"kind": {
|
|
344
|
+
"const": "webauthn"
|
|
345
|
+
},
|
|
346
|
+
"assertion": {
|
|
347
|
+
"$ref": "#/$defs/AssertionResponse",
|
|
348
|
+
"description": "The unmodified AuthenticatorAssertionResponse from the platform WebAuthn API, made by a passkey the relying party has registered to the approver. Its `clientDataJSON` challenge MUST equal the step-up `challenge`, which the relying party bound to this one approval. Verified per WebAuthn Level 2 §7.2, with user verification required when the document carries no proof by the approver; `amr` reflects \"passkey\"."
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"title": "ApproverSigned",
|
|
354
|
+
"type": "object",
|
|
355
|
+
"additionalProperties": false,
|
|
356
|
+
"required": [
|
|
357
|
+
"kind",
|
|
358
|
+
"statement"
|
|
359
|
+
],
|
|
360
|
+
"properties": {
|
|
361
|
+
"kind": {
|
|
362
|
+
"const": "approverSigned"
|
|
363
|
+
},
|
|
364
|
+
"statement": {
|
|
365
|
+
"$ref": "#/$defs/AttestStatement",
|
|
366
|
+
"description": "A complete, signed auth/step-up/approver/attest/0.1 document with `purpose: stepUp`, issued by one of the subject's bound step-up approvers over the step-up `challenge` and `boundTo`, addressed to the relying party. The statement is the factor; the document carrying it MUST still be proved by the subject's own DID — never a delegated key. Verified as received, in addition to the framework proof; `amr` reflects \"approver\"."
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
"Response": {
|
|
373
|
+
"$anchor": "response",
|
|
374
|
+
"title": "Auth Step-up Approve Response — relying party ack",
|
|
375
|
+
"description": "Acknowledgement the relying party returns after processing the approval. Carried in a Trust Task document whose type is https://trusttasks.org/spec/auth/step-up/approve-response/0.7#response.",
|
|
376
|
+
"type": "object",
|
|
377
|
+
"additionalProperties": false,
|
|
378
|
+
"required": [
|
|
379
|
+
"status"
|
|
380
|
+
],
|
|
381
|
+
"properties": {
|
|
382
|
+
"status": {
|
|
383
|
+
"type": "string",
|
|
384
|
+
"enum": [
|
|
385
|
+
"elevated",
|
|
386
|
+
"recorded",
|
|
387
|
+
"rejected"
|
|
388
|
+
],
|
|
389
|
+
"description": "`elevated` — the approval was applied and the session's assurance level was raised. `recorded` — the approval was applied to the single operation it was bound to, and NO session was elevated; see `boundTo`. `rejected` — the approval was not applied."
|
|
390
|
+
},
|
|
391
|
+
"session": {
|
|
392
|
+
"$ref": "#/$defs/Session",
|
|
393
|
+
"description": "Present when status is `elevated`. Absent for `recorded`, which changes no session."
|
|
394
|
+
},
|
|
395
|
+
"boundTo": {
|
|
396
|
+
"type": "string",
|
|
397
|
+
"maxLength": 256,
|
|
398
|
+
"description": "Present when status is `recorded`. The opaque relying-party identifier for the single operation this approval authorised. Not a capability."
|
|
399
|
+
},
|
|
400
|
+
"reason": {
|
|
401
|
+
"type": "string",
|
|
402
|
+
"maxLength": 1024,
|
|
403
|
+
"description": "Present when status is `rejected`."
|
|
404
|
+
},
|
|
405
|
+
"ext": {
|
|
406
|
+
"$ref": "#/$defs/Ext"
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
"Ext": {
|
|
411
|
+
"title": "Ext",
|
|
412
|
+
"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.",
|
|
413
|
+
"type": "object",
|
|
414
|
+
"minProperties": 1,
|
|
415
|
+
"additionalProperties": true,
|
|
416
|
+
"propertyNames": {
|
|
417
|
+
"pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"Session": {
|
|
421
|
+
"$anchor": "session",
|
|
422
|
+
"title": "Session",
|
|
423
|
+
"description": "A logical authentication context bound to a subject. Producers and consumers exchange Session-shaped data in challenge issuance, authentication responses, and introspection (whoami).",
|
|
424
|
+
"type": "object",
|
|
425
|
+
"additionalProperties": false,
|
|
426
|
+
"required": [
|
|
427
|
+
"id",
|
|
428
|
+
"subject",
|
|
429
|
+
"issuedAt",
|
|
430
|
+
"expiresAt"
|
|
431
|
+
],
|
|
432
|
+
"properties": {
|
|
433
|
+
"id": {
|
|
434
|
+
"type": "string",
|
|
435
|
+
"minLength": 1,
|
|
436
|
+
"description": "Opaque, server-chosen session identifier. Stable for the lifetime of the session. Consumers MUST treat the value as opaque; no structure is implied."
|
|
437
|
+
},
|
|
438
|
+
"subject": {
|
|
439
|
+
"type": "string",
|
|
440
|
+
"minLength": 1,
|
|
441
|
+
"description": "The authenticated party's VID (typically a DID URL)."
|
|
442
|
+
},
|
|
443
|
+
"issuedAt": {
|
|
444
|
+
"type": "string",
|
|
445
|
+
"format": "date-time",
|
|
446
|
+
"description": "ISO-8601 timestamp when the session was created."
|
|
447
|
+
},
|
|
448
|
+
"expiresAt": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"format": "date-time",
|
|
451
|
+
"description": "ISO-8601 timestamp when the session ceases to be valid. Producers SHOULD refresh before this time; consumers MUST reject after."
|
|
452
|
+
},
|
|
453
|
+
"amr": {
|
|
454
|
+
"type": "array",
|
|
455
|
+
"minItems": 1,
|
|
456
|
+
"items": {
|
|
457
|
+
"type": "string",
|
|
458
|
+
"minLength": 1
|
|
459
|
+
},
|
|
460
|
+
"description": "Authentication Methods References per [RFC 8176]. Typical values: \"did\" (challenge-response), \"passkey\" (WebAuthn), \"vta\" (verifiable-trust agent approval). Multi-factor sessions list every method used."
|
|
461
|
+
},
|
|
462
|
+
"acr": {
|
|
463
|
+
"type": "string",
|
|
464
|
+
"description": "Authentication Context Class Reference per [OIDC Core §2]. Profiles define their own values; the recommended set is \"aal1\" (single-factor DID auth), \"aal2\" (a second possession-or-biometric factor confirmed), and \"aal3\" (hardware-bound second factor)."
|
|
465
|
+
},
|
|
466
|
+
"ext": {
|
|
467
|
+
"$ref": "#/$defs/Ext",
|
|
468
|
+
"description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
"AttestStatement": {
|
|
473
|
+
"title": "AttestStatement",
|
|
474
|
+
"type": "object",
|
|
475
|
+
"minProperties": 1,
|
|
476
|
+
"description": "A complete, signed auth/step-up/approver/attest/0.1 Trust Task document — envelope, payload and proof — issued by the approver. Deliberately an open object here rather than a typed one: the consumer verifies it as a document in its own right (envelope, proof and payload against that specification's schemas), and verifies its proof over the members exactly as received, which a binding that narrowed it to a typed struct and re-serialised it could silently break."
|
|
477
|
+
},
|
|
478
|
+
"AssertionResponse": {
|
|
479
|
+
"$anchor": "assertionResponse",
|
|
480
|
+
"title": "AuthenticatorAssertionResponse (login)",
|
|
481
|
+
"description": "The credential the client returns from `navigator.credentials.get`. Binary fields are base64url-encoded.",
|
|
482
|
+
"type": "object",
|
|
483
|
+
"additionalProperties": false,
|
|
484
|
+
"required": [
|
|
485
|
+
"id",
|
|
486
|
+
"rawId",
|
|
487
|
+
"type",
|
|
488
|
+
"response"
|
|
489
|
+
],
|
|
490
|
+
"properties": {
|
|
491
|
+
"id": {
|
|
492
|
+
"type": "string"
|
|
493
|
+
},
|
|
494
|
+
"rawId": {
|
|
495
|
+
"type": "string"
|
|
496
|
+
},
|
|
497
|
+
"type": {
|
|
498
|
+
"const": "public-key"
|
|
499
|
+
},
|
|
500
|
+
"response": {
|
|
501
|
+
"type": "object",
|
|
502
|
+
"additionalProperties": false,
|
|
503
|
+
"required": [
|
|
504
|
+
"clientDataJSON",
|
|
505
|
+
"authenticatorData",
|
|
506
|
+
"signature"
|
|
507
|
+
],
|
|
508
|
+
"properties": {
|
|
509
|
+
"clientDataJSON": {
|
|
510
|
+
"type": "string"
|
|
511
|
+
},
|
|
512
|
+
"authenticatorData": {
|
|
513
|
+
"type": "string"
|
|
514
|
+
},
|
|
515
|
+
"signature": {
|
|
516
|
+
"type": "string"
|
|
517
|
+
},
|
|
518
|
+
"userHandle": {
|
|
519
|
+
"type": [
|
|
520
|
+
"string",
|
|
521
|
+
"null"
|
|
522
|
+
]
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
"authenticatorAttachment": {
|
|
527
|
+
"enum": [
|
|
528
|
+
"platform",
|
|
529
|
+
"cross-platform"
|
|
530
|
+
]
|
|
531
|
+
},
|
|
532
|
+
"clientExtensionResults": {
|
|
533
|
+
"type": "object"
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
};
|
|
539
|
+
/**
|
|
540
|
+
* SPEC.md §7.2 policy for the request variant, from this specification's
|
|
541
|
+
* front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
|
|
542
|
+
* per-specification and cannot be derived from the document alone, and
|
|
543
|
+
* item 2 needs the schema this carries.
|
|
544
|
+
*/
|
|
545
|
+
export const SPEC = {
|
|
546
|
+
typeUri: TYPE_URI,
|
|
547
|
+
isBearer: false,
|
|
548
|
+
isProofRequired: false,
|
|
549
|
+
isRecipientRequired: true,
|
|
550
|
+
isIssuedAtRequired: true,
|
|
551
|
+
payloadSchema: PAYLOAD_SCHEMA,
|
|
552
|
+
};
|
|
553
|
+
/**
|
|
554
|
+
* SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
|
|
555
|
+
* tracks the *issuer* party's requirement because a response swaps the
|
|
556
|
+
* parties (§7.3 item 5).
|
|
557
|
+
*/
|
|
558
|
+
export const RESPONSE_SPEC = {
|
|
559
|
+
typeUri: RESPONSE_TYPE_URI,
|
|
560
|
+
isBearer: false,
|
|
561
|
+
isProofRequired: false,
|
|
562
|
+
isRecipientRequired: true,
|
|
563
|
+
isIssuedAtRequired: true,
|
|
564
|
+
payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
|
|
565
|
+
};
|
|
566
|
+
//# sourceMappingURL=payload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/auth/step-up/approve-response/0.7/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAuFH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,+DAAwE,CAAC;AAEjG;;;;;GAKG;AACH,MAAM,CAAC,MAAM,OAAO,GAAkB,IAAI,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAkB,IAAI,CAAC;AAK/C,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,wEAAiF,CAAC;AAKnH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE,8CAA8C;IACzD,KAAK,EAAE,+DAA+D;IACtE,OAAO,EAAE,iCAAiC;IAC1C,aAAa,EAAE,0cAA0c;IACzd,MAAM,EAAE,QAAQ;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE;QACV,SAAS;QACT,WAAW;QACX,U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V,gBAAgB;qBACjB;iBACF;gBACD,wBAAwB,EAAE;oBACxB,MAAM,EAAE,QAAQ;iBACjB;aACF;SACF;KACF;CACO,CAAC;AAEX;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,cAAc;CACrB,CAAC;AAEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,iBAAiB;IAC1B,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,KAAK;IACtB,mBAAmB,EAAE,IAAI;IACzB,kBAAkB,EAAE,IAAI;IACxB,aAAa,EAAE,uBAAuB;CAC9B,CAAC"}
|
|
@@ -8,7 +8,7 @@ import type { Ext } from "../../../../../_shared/components.js";
|
|
|
8
8
|
*/
|
|
9
9
|
export interface AuthStepUpApproverAttestPayload {
|
|
10
10
|
/**
|
|
11
|
-
* What the statement attests. `stepUp`: a re-authentication bound to one operation (carried in auth/step-up/approve-response/0.
|
|
11
|
+
* What the statement attests. `stepUp`: a re-authentication bound to one operation (carried in auth/step-up/approve-response/0.7). `decision`: the factor backing a consent decision (carried in task-consent/decision/0.2 `evidence`). `enrol`: proof of possession of the approver key at enrolment. Signed, so a statement made for one use is refused at another.
|
|
12
12
|
*/
|
|
13
13
|
purpose: "stepUp" | "decision" | "enrol";
|
|
14
14
|
/**
|
|
@@ -70,7 +70,7 @@ export declare const PAYLOAD_SCHEMA: {
|
|
|
70
70
|
readonly purpose: {
|
|
71
71
|
readonly type: "string";
|
|
72
72
|
readonly enum: readonly ["stepUp", "decision", "enrol"];
|
|
73
|
-
readonly description: "What the statement attests. `stepUp`: a re-authentication bound to one operation (carried in auth/step-up/approve-response/0.
|
|
73
|
+
readonly description: "What the statement attests. `stepUp`: a re-authentication bound to one operation (carried in auth/step-up/approve-response/0.7). `decision`: the factor backing a consent decision (carried in task-consent/decision/0.2 `evidence`). `enrol`: proof of possession of the approver key at enrolment. Signed, so a statement made for one use is refused at another.";
|
|
74
74
|
};
|
|
75
75
|
readonly subject: {
|
|
76
76
|
readonly type: "string";
|
|
@@ -139,7 +139,7 @@ export declare const SPEC: {
|
|
|
139
139
|
readonly purpose: {
|
|
140
140
|
readonly type: "string";
|
|
141
141
|
readonly enum: readonly ["stepUp", "decision", "enrol"];
|
|
142
|
-
readonly description: "What the statement attests. `stepUp`: a re-authentication bound to one operation (carried in auth/step-up/approve-response/0.
|
|
142
|
+
readonly description: "What the statement attests. `stepUp`: a re-authentication bound to one operation (carried in auth/step-up/approve-response/0.7). `decision`: the factor backing a consent decision (carried in task-consent/decision/0.2 `evidence`). `enrol`: proof of possession of the approver key at enrolment. Signed, so a statement made for one use is refused at another.";
|
|
143
143
|
};
|
|
144
144
|
readonly subject: {
|
|
145
145
|
readonly type: "string";
|
|
@@ -49,7 +49,7 @@ export const PAYLOAD_SCHEMA = {
|
|
|
49
49
|
"decision",
|
|
50
50
|
"enrol"
|
|
51
51
|
],
|
|
52
|
-
"description": "What the statement attests. `stepUp`: a re-authentication bound to one operation (carried in auth/step-up/approve-response/0.
|
|
52
|
+
"description": "What the statement attests. `stepUp`: a re-authentication bound to one operation (carried in auth/step-up/approve-response/0.7). `decision`: the factor backing a consent decision (carried in task-consent/decision/0.2 `evidence`). `enrol`: proof of possession of the approver key at enrolment. Signed, so a statement made for one use is refused at another."
|
|
53
53
|
},
|
|
54
54
|
"subject": {
|
|
55
55
|
"type": "string",
|