@openvtc/trust-tasks 0.21.9 → 0.21.11

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 (61) hide show
  1. package/CHANGELOG.md +82 -0
  2. package/dist/_shared/components.d.ts +40 -1
  3. package/dist/_shared/components.d.ts.map +1 -1
  4. package/dist/auth/_shared/0.1/session.d.ts +1 -1
  5. package/dist/auth/_shared/0.1/session.d.ts.map +1 -1
  6. package/dist/auth/_shared/0.2/session.d.ts +16 -0
  7. package/dist/auth/_shared/0.2/session.d.ts.map +1 -0
  8. package/dist/auth/_shared/0.2/session.js +6 -0
  9. package/dist/auth/_shared/0.2/session.js.map +1 -0
  10. package/dist/auth/authenticate/0.1/payload.d.ts +1 -1
  11. package/dist/auth/authenticate/0.1/payload.d.ts.map +1 -1
  12. package/dist/auth/authenticate/0.2/payload.d.ts +715 -0
  13. package/dist/auth/authenticate/0.2/payload.d.ts.map +1 -0
  14. package/dist/auth/authenticate/0.2/payload.js +384 -0
  15. package/dist/auth/authenticate/0.2/payload.js.map +1 -0
  16. package/dist/auth/passkey/login/finish/0.1/payload.d.ts +1 -1
  17. package/dist/auth/passkey/login/finish/0.1/payload.d.ts.map +1 -1
  18. package/dist/auth/passkey/login/finish/0.2/payload.d.ts +1 -1
  19. package/dist/auth/passkey/login/finish/0.2/payload.d.ts.map +1 -1
  20. package/dist/auth/refresh/0.1/payload.d.ts +1 -1
  21. package/dist/auth/refresh/0.1/payload.d.ts.map +1 -1
  22. package/dist/auth/sessions/list/0.1/payload.d.ts +1 -1
  23. package/dist/auth/sessions/list/0.1/payload.d.ts.map +1 -1
  24. package/dist/auth/step-up/approve-response/0.1/payload.d.ts +1 -1
  25. package/dist/auth/step-up/approve-response/0.1/payload.d.ts.map +1 -1
  26. package/dist/auth/step-up/approve-response/0.2/payload.d.ts +1 -1
  27. package/dist/auth/step-up/approve-response/0.2/payload.d.ts.map +1 -1
  28. package/dist/auth/step-up/approve-response/0.3/payload.d.ts +1 -1
  29. package/dist/auth/step-up/approve-response/0.3/payload.d.ts.map +1 -1
  30. package/dist/auth/step-up/approve-response/0.4/payload.d.ts +1 -1
  31. package/dist/auth/step-up/approve-response/0.4/payload.d.ts.map +1 -1
  32. package/dist/auth/step-up/approve-response/0.5/payload.d.ts +1 -1
  33. package/dist/auth/step-up/approve-response/0.5/payload.d.ts.map +1 -1
  34. package/dist/auth/whoami/0.1/payload.d.ts +1 -1
  35. package/dist/auth/whoami/0.1/payload.d.ts.map +1 -1
  36. package/dist/index.d.ts +3 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +3 -0
  39. package/dist/index.js.map +1 -1
  40. package/dist/trust-task-discovery/0.3/payload.d.ts +483 -0
  41. package/dist/trust-task-discovery/0.3/payload.d.ts.map +1 -0
  42. package/dist/trust-task-discovery/0.3/payload.js +242 -0
  43. package/dist/trust-task-discovery/0.3/payload.js.map +1 -0
  44. package/package.json +1 -1
  45. package/src/_shared/components.ts +40 -1
  46. package/src/auth/_shared/0.1/session.ts +1 -1
  47. package/src/auth/_shared/0.2/session.ts +17 -0
  48. package/src/auth/authenticate/0.1/payload.ts +1 -1
  49. package/src/auth/authenticate/0.2/payload.ts +444 -0
  50. package/src/auth/passkey/login/finish/0.1/payload.ts +1 -1
  51. package/src/auth/passkey/login/finish/0.2/payload.ts +1 -1
  52. package/src/auth/refresh/0.1/payload.ts +1 -1
  53. package/src/auth/sessions/list/0.1/payload.ts +1 -1
  54. package/src/auth/step-up/approve-response/0.1/payload.ts +1 -1
  55. package/src/auth/step-up/approve-response/0.2/payload.ts +1 -1
  56. package/src/auth/step-up/approve-response/0.3/payload.ts +1 -1
  57. package/src/auth/step-up/approve-response/0.4/payload.ts +1 -1
  58. package/src/auth/step-up/approve-response/0.5/payload.ts +1 -1
  59. package/src/auth/whoami/0.1/payload.ts +1 -1
  60. package/src/index.ts +3 -0
  61. package/src/trust-task-discovery/0.3/payload.ts +357 -0
@@ -0,0 +1,444 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/auth/authenticate/0.2/payload.schema.json
4
+ */
5
+
6
+ import type { Ext, Session_AuthV0_2 as Session, TokenBundle } from "../../../_shared/components.js";
7
+
8
+
9
+ /**
10
+ * The subject presents a previously-issued challenge along with the framework `proof` that binds the document to their VID. The proof IS the authentication. 0.2 adds the optional `sessionKey` member, a did:key VID the consumer binds to the created session so later documents in that session can be signed with it instead of the subject's own key.
11
+ */
12
+ export interface AuthAuthenticate {
13
+ /**
14
+ * The exact challenge value returned by a prior auth/challenge call. Consumers MUST reject mismatch, expired, or re-used challenges.
15
+ */
16
+ challenge: string;
17
+ /**
18
+ * The sessionId returned alongside the challenge. Consumers use it to look up the server-side challenge binding.
19
+ */
20
+ sessionId: string;
21
+ /**
22
+ * Optional capability tags the subject is requesting on the issued tokens. The consumer's authorization layer decides which are granted; the issued TokenBundle's `scope` MAY be a subset.
23
+ */
24
+ scope?: string[];
25
+ /**
26
+ * A did:key VID the producer asks the consumer to bind to the session this authenticate document creates. The producer MUST hold the corresponding private key and SHOULD keep it non-extractable (for example, a WebCrypto non-extractable key). Once bound, the consumer MUST accept a framework `proof` made by this key, with `proofPurpose: authentication`, as the subject — for this session only, bounded by the session's `expiresAt` and `acr`, and never where a specification requires an `assertionMethod` attestation (SPEC.md §7.2 item 10; see Security & Privacy). The consumer MAY refuse a key type it does not support with `auth/authenticate:sessionKeyUnsupported`. It sits inside `payload`, so the subject's own `authentication` proof on this document covers it — a party cannot bind a session key without signing for it.
27
+ */
28
+ sessionKey?: string;
29
+ /**
30
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
31
+ */
32
+ ext?: Ext;
33
+ }
34
+ /**
35
+ * Issued by the auth service after verifying the proof on the authenticate document. Carried in a Trust Task document whose type is https://trusttasks.org/spec/auth/authenticate/0.2#response.
36
+ */
37
+ export interface AuthAuthenticateResponsePayload {
38
+ /**
39
+ * The session the consumer has just created or refreshed for this subject. Carries `sessionKey` when the request bound one.
40
+ */
41
+ session: Session;
42
+ /**
43
+ * Access + optional refresh tokens. Consumers MAY omit a refresh token when their policy doesn't support refresh.
44
+ */
45
+ tokens: TokenBundle;
46
+ /**
47
+ * Ecosystem-defined extension members per SPEC.md §4.5.1.
48
+ */
49
+ ext?: Ext;
50
+ }
51
+
52
+ /** Shared definitions this specification references, re-exported under the names it used to declare them with. */
53
+ export type { Ext, Session, TokenBundle };
54
+
55
+ /** Trust Task type URI. */
56
+ export const TYPE_URI = "https://trusttasks.org/spec/auth/authenticate/0.2" as const;
57
+
58
+ /** Stable alias for this specification's request payload shape. */
59
+ export type Payload = AuthAuthenticate;
60
+
61
+ /** Trust Task response type URI (request type URI + "#response"). */
62
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/authenticate/0.2#response" as const;
63
+
64
+ /** Stable alias for this specification's success-response payload shape. */
65
+ export type Response = AuthAuthenticateResponsePayload;
66
+
67
+ /**
68
+ * This specification's payload schema, as a value.
69
+ *
70
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
71
+ * rather than only as a `.json` file because TypeScript types are erased
72
+ * at runtime: without a schema a consumer has nothing to validate, and
73
+ * every REQUIRED payload member is optional in practice. Cross-file
74
+ * `$ref`s are already inlined, so it needs no resolver.
75
+ */
76
+ export const PAYLOAD_SCHEMA = {
77
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
78
+ "$id": "https://trusttasks.org/spec/auth/authenticate/0.2",
79
+ "title": "Auth — Authenticate",
80
+ "description": "The subject presents a previously-issued challenge along with the framework `proof` that binds the document to their VID. The proof IS the authentication. 0.2 adds the optional `sessionKey` member, a did:key VID the consumer binds to the created session so later documents in that session can be signed with it instead of the subject's own key.",
81
+ "type": "object",
82
+ "additionalProperties": false,
83
+ "required": [
84
+ "challenge",
85
+ "sessionId"
86
+ ],
87
+ "properties": {
88
+ "challenge": {
89
+ "type": "string",
90
+ "minLength": 16,
91
+ "description": "The exact challenge value returned by a prior auth/challenge call. Consumers MUST reject mismatch, expired, or re-used challenges."
92
+ },
93
+ "sessionId": {
94
+ "type": "string",
95
+ "minLength": 1,
96
+ "description": "The sessionId returned alongside the challenge. Consumers use it to look up the server-side challenge binding."
97
+ },
98
+ "scope": {
99
+ "type": "array",
100
+ "items": {
101
+ "type": "string",
102
+ "minLength": 1
103
+ },
104
+ "description": "Optional capability tags the subject is requesting on the issued tokens. The consumer's authorization layer decides which are granted; the issued TokenBundle's `scope` MAY be a subset."
105
+ },
106
+ "sessionKey": {
107
+ "type": "string",
108
+ "pattern": "^did:key:z[1-9A-HJ-NP-Za-km-z]+$",
109
+ "maxLength": 512,
110
+ "description": "A did:key VID the producer asks the consumer to bind to the session this authenticate document creates. The producer MUST hold the corresponding private key and SHOULD keep it non-extractable (for example, a WebCrypto non-extractable key). Once bound, the consumer MUST accept a framework `proof` made by this key, with `proofPurpose: authentication`, as the subject — for this session only, bounded by the session's `expiresAt` and `acr`, and never where a specification requires an `assertionMethod` attestation (SPEC.md §7.2 item 10; see Security & Privacy). The consumer MAY refuse a key type it does not support with `auth/authenticate:sessionKeyUnsupported`. It sits inside `payload`, so the subject's own `authentication` proof on this document covers it — a party cannot bind a session key without signing for it."
111
+ },
112
+ "ext": {
113
+ "$ref": "#/$defs/Ext",
114
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
115
+ }
116
+ },
117
+ "$defs": {
118
+ "Response": {
119
+ "$anchor": "response",
120
+ "title": "Auth Authenticate — response payload",
121
+ "description": "Issued by the auth service after verifying the proof on the authenticate document. Carried in a Trust Task document whose type is https://trusttasks.org/spec/auth/authenticate/0.2#response.",
122
+ "type": "object",
123
+ "additionalProperties": false,
124
+ "required": [
125
+ "session",
126
+ "tokens"
127
+ ],
128
+ "properties": {
129
+ "session": {
130
+ "$ref": "#/$defs/Session",
131
+ "description": "The session the consumer has just created or refreshed for this subject. Carries `sessionKey` when the request bound one."
132
+ },
133
+ "tokens": {
134
+ "$ref": "#/$defs/TokenBundle",
135
+ "description": "Access + optional refresh tokens. Consumers MAY omit a refresh token when their policy doesn't support refresh."
136
+ },
137
+ "ext": {
138
+ "$ref": "#/$defs/Ext",
139
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
140
+ }
141
+ }
142
+ },
143
+ "Ext": {
144
+ "title": "Ext",
145
+ "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.",
146
+ "type": "object",
147
+ "minProperties": 1,
148
+ "additionalProperties": true,
149
+ "propertyNames": {
150
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
151
+ }
152
+ },
153
+ "TokenBundle": {
154
+ "$anchor": "tokenBundle",
155
+ "title": "TokenBundle",
156
+ "description": "An access token (typically short-lived JWT) paired with an optional refresh token (typically long-lived opaque string). The shapes follow OAuth 2.0 (RFC 6749 §5.1) conventions but are not coupled to any particular OAuth profile.",
157
+ "type": "object",
158
+ "additionalProperties": false,
159
+ "required": [
160
+ "accessToken",
161
+ "tokenType",
162
+ "expiresIn"
163
+ ],
164
+ "properties": {
165
+ "accessToken": {
166
+ "type": "string",
167
+ "minLength": 1,
168
+ "description": "Bearer-style access token. Consumers presenting this token to downstream services prove the holder of the original session. Format is consumer-defined — JWT is common, but opaque strings are also valid."
169
+ },
170
+ "refreshToken": {
171
+ "type": "string",
172
+ "minLength": 1,
173
+ "description": "Long-lived token redeemable via auth/refresh for a new access token. MAY be absent when the issuer does not support refresh."
174
+ },
175
+ "tokenType": {
176
+ "type": "string",
177
+ "minLength": 1,
178
+ "description": "Token presentation scheme. Almost always \"Bearer\"; reserved for future schemes."
179
+ },
180
+ "expiresIn": {
181
+ "type": "integer",
182
+ "minimum": 1,
183
+ "description": "Seconds from issuance until the access token expires."
184
+ },
185
+ "refreshExpiresIn": {
186
+ "type": "integer",
187
+ "minimum": 1,
188
+ "description": "Seconds from issuance until the refresh token expires, when one was issued."
189
+ },
190
+ "scope": {
191
+ "type": "array",
192
+ "items": {
193
+ "type": "string",
194
+ "minLength": 1
195
+ },
196
+ "description": "Capability tags effective on this token. Format is consumer-defined; the framework imposes no syntax."
197
+ },
198
+ "ext": {
199
+ "$ref": "#/$defs/Ext",
200
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
201
+ }
202
+ }
203
+ },
204
+ "Session": {
205
+ "$anchor": "session",
206
+ "title": "Session",
207
+ "description": "A logical authentication context bound to a subject. Producers and consumers exchange Session-shaped data in challenge issuance, authentication responses, and introspection (whoami).",
208
+ "type": "object",
209
+ "additionalProperties": false,
210
+ "required": [
211
+ "id",
212
+ "subject",
213
+ "issuedAt",
214
+ "expiresAt"
215
+ ],
216
+ "properties": {
217
+ "id": {
218
+ "type": "string",
219
+ "minLength": 1,
220
+ "description": "Opaque, server-chosen session identifier. Stable for the lifetime of the session. Consumers MUST treat the value as opaque; no structure is implied."
221
+ },
222
+ "subject": {
223
+ "type": "string",
224
+ "minLength": 1,
225
+ "description": "The authenticated party's VID (typically a DID URL)."
226
+ },
227
+ "issuedAt": {
228
+ "type": "string",
229
+ "format": "date-time",
230
+ "description": "ISO-8601 timestamp when the session was created."
231
+ },
232
+ "expiresAt": {
233
+ "type": "string",
234
+ "format": "date-time",
235
+ "description": "ISO-8601 timestamp when the session ceases to be valid. Producers SHOULD refresh before this time; consumers MUST reject after."
236
+ },
237
+ "amr": {
238
+ "type": "array",
239
+ "minItems": 1,
240
+ "items": {
241
+ "type": "string",
242
+ "minLength": 1
243
+ },
244
+ "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."
245
+ },
246
+ "acr": {
247
+ "type": "string",
248
+ "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)."
249
+ },
250
+ "sessionKey": {
251
+ "type": "string",
252
+ "pattern": "^did:key:z[1-9A-HJ-NP-Za-km-z]+$",
253
+ "maxLength": 512,
254
+ "description": "The did:key VID bound to this session by auth/authenticate/0.2, when the producer registered one. Present here so introspection (auth/whoami, auth/sessions/list) can show the binding a client already holds; it is descriptive, not an additional grant — the binding, its scope and its lifetime are governed entirely by the auth/authenticate/0.2 specification that established it. Absent when the session was established without a session key, or by a specification version that does not carry one."
255
+ },
256
+ "ext": {
257
+ "$ref": "#/$defs/Ext",
258
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
259
+ }
260
+ }
261
+ }
262
+ }
263
+ } as const;
264
+
265
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
266
+ export const RESPONSE_PAYLOAD_SCHEMA = {
267
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
268
+ "$ref": "#/$defs/Response",
269
+ "$defs": {
270
+ "Response": {
271
+ "$anchor": "response",
272
+ "title": "Auth Authenticate — response payload",
273
+ "description": "Issued by the auth service after verifying the proof on the authenticate document. Carried in a Trust Task document whose type is https://trusttasks.org/spec/auth/authenticate/0.2#response.",
274
+ "type": "object",
275
+ "additionalProperties": false,
276
+ "required": [
277
+ "session",
278
+ "tokens"
279
+ ],
280
+ "properties": {
281
+ "session": {
282
+ "$ref": "#/$defs/Session",
283
+ "description": "The session the consumer has just created or refreshed for this subject. Carries `sessionKey` when the request bound one."
284
+ },
285
+ "tokens": {
286
+ "$ref": "#/$defs/TokenBundle",
287
+ "description": "Access + optional refresh tokens. Consumers MAY omit a refresh token when their policy doesn't support refresh."
288
+ },
289
+ "ext": {
290
+ "$ref": "#/$defs/Ext",
291
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
292
+ }
293
+ }
294
+ },
295
+ "Ext": {
296
+ "title": "Ext",
297
+ "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.",
298
+ "type": "object",
299
+ "minProperties": 1,
300
+ "additionalProperties": true,
301
+ "propertyNames": {
302
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
303
+ }
304
+ },
305
+ "TokenBundle": {
306
+ "$anchor": "tokenBundle",
307
+ "title": "TokenBundle",
308
+ "description": "An access token (typically short-lived JWT) paired with an optional refresh token (typically long-lived opaque string). The shapes follow OAuth 2.0 (RFC 6749 §5.1) conventions but are not coupled to any particular OAuth profile.",
309
+ "type": "object",
310
+ "additionalProperties": false,
311
+ "required": [
312
+ "accessToken",
313
+ "tokenType",
314
+ "expiresIn"
315
+ ],
316
+ "properties": {
317
+ "accessToken": {
318
+ "type": "string",
319
+ "minLength": 1,
320
+ "description": "Bearer-style access token. Consumers presenting this token to downstream services prove the holder of the original session. Format is consumer-defined — JWT is common, but opaque strings are also valid."
321
+ },
322
+ "refreshToken": {
323
+ "type": "string",
324
+ "minLength": 1,
325
+ "description": "Long-lived token redeemable via auth/refresh for a new access token. MAY be absent when the issuer does not support refresh."
326
+ },
327
+ "tokenType": {
328
+ "type": "string",
329
+ "minLength": 1,
330
+ "description": "Token presentation scheme. Almost always \"Bearer\"; reserved for future schemes."
331
+ },
332
+ "expiresIn": {
333
+ "type": "integer",
334
+ "minimum": 1,
335
+ "description": "Seconds from issuance until the access token expires."
336
+ },
337
+ "refreshExpiresIn": {
338
+ "type": "integer",
339
+ "minimum": 1,
340
+ "description": "Seconds from issuance until the refresh token expires, when one was issued."
341
+ },
342
+ "scope": {
343
+ "type": "array",
344
+ "items": {
345
+ "type": "string",
346
+ "minLength": 1
347
+ },
348
+ "description": "Capability tags effective on this token. Format is consumer-defined; the framework imposes no syntax."
349
+ },
350
+ "ext": {
351
+ "$ref": "#/$defs/Ext",
352
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
353
+ }
354
+ }
355
+ },
356
+ "Session": {
357
+ "$anchor": "session",
358
+ "title": "Session",
359
+ "description": "A logical authentication context bound to a subject. Producers and consumers exchange Session-shaped data in challenge issuance, authentication responses, and introspection (whoami).",
360
+ "type": "object",
361
+ "additionalProperties": false,
362
+ "required": [
363
+ "id",
364
+ "subject",
365
+ "issuedAt",
366
+ "expiresAt"
367
+ ],
368
+ "properties": {
369
+ "id": {
370
+ "type": "string",
371
+ "minLength": 1,
372
+ "description": "Opaque, server-chosen session identifier. Stable for the lifetime of the session. Consumers MUST treat the value as opaque; no structure is implied."
373
+ },
374
+ "subject": {
375
+ "type": "string",
376
+ "minLength": 1,
377
+ "description": "The authenticated party's VID (typically a DID URL)."
378
+ },
379
+ "issuedAt": {
380
+ "type": "string",
381
+ "format": "date-time",
382
+ "description": "ISO-8601 timestamp when the session was created."
383
+ },
384
+ "expiresAt": {
385
+ "type": "string",
386
+ "format": "date-time",
387
+ "description": "ISO-8601 timestamp when the session ceases to be valid. Producers SHOULD refresh before this time; consumers MUST reject after."
388
+ },
389
+ "amr": {
390
+ "type": "array",
391
+ "minItems": 1,
392
+ "items": {
393
+ "type": "string",
394
+ "minLength": 1
395
+ },
396
+ "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."
397
+ },
398
+ "acr": {
399
+ "type": "string",
400
+ "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)."
401
+ },
402
+ "sessionKey": {
403
+ "type": "string",
404
+ "pattern": "^did:key:z[1-9A-HJ-NP-Za-km-z]+$",
405
+ "maxLength": 512,
406
+ "description": "The did:key VID bound to this session by auth/authenticate/0.2, when the producer registered one. Present here so introspection (auth/whoami, auth/sessions/list) can show the binding a client already holds; it is descriptive, not an additional grant — the binding, its scope and its lifetime are governed entirely by the auth/authenticate/0.2 specification that established it. Absent when the session was established without a session key, or by a specification version that does not carry one."
407
+ },
408
+ "ext": {
409
+ "$ref": "#/$defs/Ext",
410
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
411
+ }
412
+ }
413
+ }
414
+ }
415
+ } as const;
416
+
417
+ /**
418
+ * SPEC.md §7.2 policy for the request variant, from this specification's
419
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
420
+ * per-specification and cannot be derived from the document alone, and
421
+ * item 2 needs the schema this carries.
422
+ */
423
+ export const SPEC = {
424
+ typeUri: TYPE_URI,
425
+ isBearer: false,
426
+ isProofRequired: true,
427
+ isRecipientRequired: true,
428
+ isIssuedAtRequired: true,
429
+ payloadSchema: PAYLOAD_SCHEMA,
430
+ } as const;
431
+
432
+ /**
433
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
434
+ * tracks the *issuer* party's requirement because a response swaps the
435
+ * parties (§7.3 item 5).
436
+ */
437
+ export const RESPONSE_SPEC = {
438
+ typeUri: RESPONSE_TYPE_URI,
439
+ isBearer: false,
440
+ isProofRequired: true,
441
+ isRecipientRequired: true,
442
+ isIssuedAtRequired: true,
443
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
444
+ } as const;
@@ -3,7 +3,7 @@
3
3
  * Source: specs/auth/passkey/login/finish/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { AuthenticatorAssertionResponseLogin, Ext, Session, TokenBundle } from "../../../../../_shared/components.js";
6
+ import type { AuthenticatorAssertionResponseLogin, Ext, Session_AuthV0_1 as Session, TokenBundle } from "../../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  * Source: specs/auth/passkey/login/finish/0.2/payload.schema.json
4
4
  */
5
5
 
6
- import type { AuthenticatorAssertionResponseLogin, Ext, Session, TokenBundle } from "../../../../../_shared/components.js";
6
+ import type { AuthenticatorAssertionResponseLogin, Ext, Session_AuthV0_1 as Session, TokenBundle } from "../../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  * Source: specs/auth/refresh/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { Ext, Session, TokenBundle } from "../../../_shared/components.js";
6
+ import type { Ext, Session_AuthV0_1 as Session, TokenBundle } from "../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  * Source: specs/auth/sessions/list/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { Ext, Session } from "../../../../_shared/components.js";
6
+ import type { Ext, Session_AuthV0_1 as Session } from "../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  * Source: specs/auth/step-up/approve-response/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { AuthenticatorAssertionResponseLogin, Ext, Session } from "../../../../_shared/components.js";
6
+ import type { AuthenticatorAssertionResponseLogin, Ext, Session_AuthV0_1 as Session } from "../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  * Source: specs/auth/step-up/approve-response/0.2/payload.schema.json
4
4
  */
5
5
 
6
- import type { AuthenticatorAssertionResponseLogin, Ext, Session } from "../../../../_shared/components.js";
6
+ import type { AuthenticatorAssertionResponseLogin, Ext, Session_AuthV0_1 as Session } from "../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  * Source: specs/auth/step-up/approve-response/0.3/payload.schema.json
4
4
  */
5
5
 
6
- import type { AuthenticatorAssertionResponseLogin, Ext, Session } from "../../../../_shared/components.js";
6
+ import type { AuthenticatorAssertionResponseLogin, Ext, Session_AuthV0_1 as Session } from "../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  * Source: specs/auth/step-up/approve-response/0.4/payload.schema.json
4
4
  */
5
5
 
6
- import type { AuthenticatorAssertionResponseLogin, Ext, Session } from "../../../../_shared/components.js";
6
+ import type { AuthenticatorAssertionResponseLogin, Ext, Session_AuthV0_1 as Session } from "../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  * Source: specs/auth/step-up/approve-response/0.5/payload.schema.json
4
4
  */
5
5
 
6
- import type { AuthenticatorAssertionResponseLogin, Ext, Session } from "../../../../_shared/components.js";
6
+ import type { AuthenticatorAssertionResponseLogin, Ext, Session_AuthV0_1 as Session } from "../../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
@@ -3,7 +3,7 @@
3
3
  * Source: specs/auth/whoami/0.1/payload.schema.json
4
4
  */
5
5
 
6
- import type { Ext, Session } from "../../../_shared/components.js";
6
+ import type { Ext, Session_AuthV0_1 as Session } from "../../../_shared/components.js";
7
7
 
8
8
 
9
9
  /**
package/src/index.ts CHANGED
@@ -29,7 +29,9 @@ export * as PasskeyInviteShared_v0_1 from "./auth/_shared/0.1/passkey-invite.js"
29
29
  export * as SessionShared_v0_1 from "./auth/_shared/0.1/session.js";
30
30
  export * as TokensShared_v0_1 from "./auth/_shared/0.1/tokens.js";
31
31
  export * as WebauthnShared_v0_1 from "./auth/_shared/0.1/webauthn.js";
32
+ export * as SessionShared_v0_2 from "./auth/_shared/0.2/session.js";
32
33
  export * as AuthAuthenticate_v0_1 from "./auth/authenticate/0.1/payload.js";
34
+ export * as AuthAuthenticate_v0_2 from "./auth/authenticate/0.2/payload.js";
33
35
  export * as AuthChallenge_v0_1 from "./auth/challenge/0.1/payload.js";
34
36
  export * as AuthPasskeyAdminList_v0_1 from "./auth/passkey/admin-list/0.1/payload.js";
35
37
  export * as AuthPasskeyEnrollFinish_v0_1 from "./auth/passkey/enroll/finish/0.1/payload.js";
@@ -394,6 +396,7 @@ export * as TrustCeremonyReceipt_v0_1 from "./trust-ceremony-receipt/0.1/payload
394
396
  export * as TrustTaskControl_v0_1 from "./trust-task-control/0.1/payload.js";
395
397
  export * as TrustTaskDiscovery_v0_1 from "./trust-task-discovery/0.1/payload.js";
396
398
  export * as TrustTaskDiscovery_v0_2 from "./trust-task-discovery/0.2/payload.js";
399
+ export * as TrustTaskDiscovery_v0_3 from "./trust-task-discovery/0.3/payload.js";
397
400
  export * as TrustTaskError_v0_1 from "./trust-task-error/0.1/payload.js";
398
401
  export * as TrustTaskError_v0_2 from "./trust-task-error/0.2/payload.js";
399
402
  export * as TrustTaskError_v0_3 from "./trust-task-error/0.3/payload.js";