@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.
Files changed (102) hide show
  1. package/CHANGELOG.md +236 -0
  2. package/dist/_runtime/document.d.ts +13 -0
  3. package/dist/_runtime/document.d.ts.map +1 -1
  4. package/dist/_runtime/document.js +17 -2
  5. package/dist/_runtime/document.js.map +1 -1
  6. package/dist/_runtime/index.d.ts +1 -1
  7. package/dist/_runtime/index.d.ts.map +1 -1
  8. package/dist/_runtime/index.js +1 -1
  9. package/dist/_runtime/index.js.map +1 -1
  10. package/dist/auth/step-up/approve-request/0.5/payload.d.ts +3 -3
  11. package/dist/auth/step-up/approve-request/0.5/payload.js +1 -1
  12. package/dist/auth/step-up/approve-response/0.1/payload.d.ts +4 -4
  13. package/dist/auth/step-up/approve-response/0.1/payload.js +1 -1
  14. package/dist/auth/step-up/approve-response/0.2/payload.d.ts +4 -4
  15. package/dist/auth/step-up/approve-response/0.2/payload.js +1 -1
  16. package/dist/auth/step-up/approve-response/0.3/payload.d.ts +4 -4
  17. package/dist/auth/step-up/approve-response/0.3/payload.js +1 -1
  18. package/dist/auth/step-up/approve-response/0.4/payload.d.ts +4 -4
  19. package/dist/auth/step-up/approve-response/0.4/payload.js +1 -1
  20. package/dist/auth/step-up/approve-response/0.5/payload.d.ts +4 -4
  21. package/dist/auth/step-up/approve-response/0.5/payload.js +1 -1
  22. package/dist/auth/step-up/approve-response/0.6/payload.d.ts +14 -2
  23. package/dist/auth/step-up/approve-response/0.6/payload.d.ts.map +1 -1
  24. package/dist/auth/step-up/approve-response/0.6/payload.js +1 -1
  25. package/dist/auth/step-up/approve-response/0.6/payload.js.map +1 -1
  26. package/dist/auth/step-up/approve-response/0.7/payload.d.ts +988 -0
  27. package/dist/auth/step-up/approve-response/0.7/payload.d.ts.map +1 -0
  28. package/dist/auth/step-up/approve-response/0.7/payload.js +566 -0
  29. package/dist/auth/step-up/approve-response/0.7/payload.js.map +1 -0
  30. package/dist/auth/step-up/approver/attest/0.1/payload.d.ts +3 -3
  31. package/dist/auth/step-up/approver/attest/0.1/payload.js +1 -1
  32. package/dist/index.d.ts +18 -0
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +18 -0
  35. package/dist/index.js.map +1 -1
  36. package/dist/rooms/owner/group/remove/0.1/payload.d.ts +4 -4
  37. package/dist/rooms/owner/group/remove/0.1/payload.js +1 -1
  38. package/dist/rooms/owner/group/remove/0.2/payload.d.ts +4 -4
  39. package/dist/rooms/owner/group/remove/0.2/payload.js +1 -1
  40. package/dist/rooms/owner/group/remove/0.3/payload.d.ts +14 -2
  41. package/dist/rooms/owner/group/remove/0.3/payload.d.ts.map +1 -1
  42. package/dist/rooms/owner/group/remove/0.3/payload.js +1 -1
  43. package/dist/rooms/owner/group/remove/0.3/payload.js.map +1 -1
  44. package/dist/rooms/owner/group/remove/0.4/payload.d.ts +634 -0
  45. package/dist/rooms/owner/group/remove/0.4/payload.d.ts.map +1 -0
  46. package/dist/rooms/owner/group/remove/0.4/payload.js +331 -0
  47. package/dist/rooms/owner/group/remove/0.4/payload.js.map +1 -0
  48. package/dist/task-consent/decision/0.2/payload.d.ts +5 -5
  49. package/dist/task-consent/decision/0.2/payload.js +2 -2
  50. package/dist/vta/contexts/delete/1.0/payload.d.ts +13 -2
  51. package/dist/vta/contexts/delete/1.0/payload.d.ts.map +1 -1
  52. package/dist/vta/contexts/delete/1.0/payload.js +1 -1
  53. package/dist/vta/contexts/delete/1.0/payload.js.map +1 -1
  54. package/dist/vta/contexts/delete/1.1/payload.d.ts +315 -0
  55. package/dist/vta/contexts/delete/1.1/payload.d.ts.map +1 -0
  56. package/dist/vta/contexts/delete/1.1/payload.js +178 -0
  57. package/dist/vta/contexts/delete/1.1/payload.js.map +1 -0
  58. package/dist/vtc/install/claim/finish/0.2/payload.d.ts +4 -4
  59. package/dist/vtc/install/claim/finish/0.2/payload.d.ts.map +1 -1
  60. package/dist/vtc/install/claim/finish/0.2/payload.js +1 -1
  61. package/dist/vtc/install/claim/finish/0.2/payload.js.map +1 -1
  62. package/dist/vtc/install/claim/passkey/finish/0.1/payload.d.ts +306 -0
  63. package/dist/vtc/install/claim/passkey/finish/0.1/payload.d.ts.map +1 -0
  64. package/dist/vtc/install/claim/passkey/finish/0.1/payload.js +175 -0
  65. package/dist/vtc/install/claim/passkey/finish/0.1/payload.js.map +1 -0
  66. package/dist/vtc/install/claim/passkey/start/0.1/payload.d.ts +302 -0
  67. package/dist/vtc/install/claim/passkey/start/0.1/payload.d.ts.map +1 -0
  68. package/dist/vtc/install/claim/passkey/start/0.1/payload.js +172 -0
  69. package/dist/vtc/install/claim/passkey/start/0.1/payload.js.map +1 -0
  70. package/dist/vtc/install/claim/start/0.2/payload.d.ts +4 -4
  71. package/dist/vtc/install/claim/start/0.2/payload.d.ts.map +1 -1
  72. package/dist/vtc/install/claim/start/0.2/payload.js +1 -1
  73. package/dist/vtc/install/claim/start/0.2/payload.js.map +1 -1
  74. package/dist/vtc/members/role/set/0.1/payload.d.ts +1867 -0
  75. package/dist/vtc/members/role/set/0.1/payload.d.ts.map +1 -0
  76. package/dist/vtc/members/role/set/0.1/payload.js +1060 -0
  77. package/dist/vtc/members/role/set/0.1/payload.js.map +1 -0
  78. package/package.json +1 -1
  79. package/src/_runtime/document.ts +18 -2
  80. package/src/_runtime/index.ts +1 -0
  81. package/src/auth/step-up/approve-request/0.5/payload.ts +2 -2
  82. package/src/auth/step-up/approve-response/0.1/payload.ts +5 -5
  83. package/src/auth/step-up/approve-response/0.2/payload.ts +5 -5
  84. package/src/auth/step-up/approve-response/0.3/payload.ts +5 -5
  85. package/src/auth/step-up/approve-response/0.4/payload.ts +5 -5
  86. package/src/auth/step-up/approve-response/0.5/payload.ts +5 -5
  87. package/src/auth/step-up/approve-response/0.6/payload.ts +15 -3
  88. package/src/auth/step-up/approve-response/0.7/payload.ts +664 -0
  89. package/src/auth/step-up/approver/attest/0.1/payload.ts +2 -2
  90. package/src/index.ts +18 -0
  91. package/src/rooms/owner/group/remove/0.1/payload.ts +5 -5
  92. package/src/rooms/owner/group/remove/0.2/payload.ts +5 -5
  93. package/src/rooms/owner/group/remove/0.3/payload.ts +15 -3
  94. package/src/rooms/owner/group/remove/0.4/payload.ts +442 -0
  95. package/src/task-consent/decision/0.2/payload.ts +3 -3
  96. package/src/vta/contexts/delete/1.0/payload.ts +14 -3
  97. package/src/vta/contexts/delete/1.1/payload.ts +228 -0
  98. package/src/vtc/install/claim/finish/0.2/payload.ts +5 -5
  99. package/src/vtc/install/claim/passkey/finish/0.1/payload.ts +228 -0
  100. package/src/vtc/install/claim/passkey/start/0.1/payload.ts +225 -0
  101. package/src/vtc/install/claim/start/0.2/payload.ts +5 -5
  102. package/src/vtc/members/role/set/0.1/payload.ts +1142 -0
package/CHANGELOG.md CHANGED
@@ -11,6 +11,242 @@ The package versions over **its own API** — what a consumer compiles against
11
11
  not over `SPEC.md`. Below 1.0 a breaking change bumps the leading non-zero
12
12
  component.
13
13
 
14
+ ## 0.28.2 — 2026-10-29
15
+
16
+
17
+ ### Added
18
+
19
+ - **auth/step-up/approve-response**: 0.7 — the approver's own passkey assertion is evidence on its own (#983)
20
+
21
+ 0.5 and 0.6 required the approver's framework proof on every answer, and 0.6
22
+ counted a console key's proof as the administrator's it acts for, while
23
+ auth/signing-key/enroll/0.2 item 7 forbids a delegated key's proof on any
24
+ approve-response. A console administrator therefore had no conforming answer:
25
+ the console holds only a delegated key.
26
+
27
+ 0.7 resolves the contradiction in enroll's favour:
28
+ - a delegated key's proof never counts as the approver's, for any gate
29
+ (subjectMismatch);
30
+ - approval evidence is the approver's own: a proof by its own DID
31
+ (didSigned, approverSigned, every denial), or a user-verified WebAuthn
32
+ assertion by a passkey the relying party registered to the approver, over
33
+ the step-up challenge it bound to this approval — with no proof required;
34
+ - an answer with no proof decides only what the assertion and the relying
35
+ party's own state determine (decision approved, subject, session, bound
36
+ operation, acr from the assertion; grantedAcr and ext ignored), and the
37
+ pending step-up is taken atomically, since an unproved document's id is the
38
+ sender's to choose;
39
+ - proofRequirement is RECOMMENDED, conditional per gate;
40
+ - assertionInvalid reasons are lowerCamelCase, adding userNotVerified and
41
+ credentialNotAccepted.
42
+
43
+ auth/signing-key/enroll/0.2's reference design (step 2) now answers with 0.7,
44
+ unsigned, naming identityDid as issuer. Prose references to 0.6 elsewhere move
45
+ to 0.7 (npm run fix-stale-references); approve-request/0.5 no longer says the
46
+ answer is always signed.
47
+
48
+ - **vtc/members/role/set**: A community role moves with its own task (#982)
49
+
50
+ vtc/members/role/set/0.1 moves a subject's community role — member,
51
+ moderator, issuer, admin, or a custom role — with a compare-and-swap on
52
+ fromRole. Until now the community role moved with acl/change-role/0.1, which
53
+ 0.2 superseded with a purely administrative-role move; the community role,
54
+ its role credential and the community's role-change policy are the VTC's
55
+ notions, not the access-control list's, so they get a VTC task and
56
+ acl/change-role stays the generic operation.
57
+
58
+ What the move carries:
59
+ - the administrative authority the community role implies, when the entry's
60
+ authority is exactly the one its current role implies; authority stated on
61
+ its own (acl/grant or acl/update 0.2) is kept and only the role moves;
62
+ - a role credential (role VAC) re-issued at the new role for a subject with a
63
+ member record, returned as roleVac and delivered best-effort.
64
+
65
+ - **vtc/install/claim/passkey**: Passkey install ceremony under its own slug (#976)
66
+
67
+ * feat(vtc/install/claim/passkey): passkey install ceremony under its own slug
68
+
69
+ vtc/install/claim/{start,finish} 0.3 is a different ceremony from 0.2: the
70
+ founder claims under a DID they already control, with a step-up approver.
71
+ Because 0.3 is a later version of the same slug, it superseded 0.2, and the
72
+ passkey install was scheduled for withdrawal with it, although 0.3 itself
73
+ says "a passkey install keeps using 0.2".
74
+
75
+ The two cannot share a 0.4: finish 0.3 declares `proof` REQUIRED (the
76
+ founder's signature as their DID is the proof of control, enforced from the
77
+ front matter by every consumer), and the passkey ceremony cannot carry one
78
+ (the installer holds no key until the passkey exists). One version serving
79
+ both would leave the wallet ceremony's proof requirement to prose.
80
+
81
+ So the passkey ceremony moves, wire-unchanged, to
82
+ vtc/install/claim/passkey/{start,finish}/0.1, and each ceremony versions on
83
+ its own:
84
+
85
+ - Payloads are 0.2's; framework Ext re-pinned to 0.4; Security & Privacy,
86
+ Authorization, Request/Response examples written to current conventions.
87
+ - passkey/finish declares the response `proof` REQUIRED and
88
+ `discloses: secret`: it carries the bearer setup-session token (as
89
+ finish 0.3's does). 0.2 declared neither.
90
+ - vtc/install/claim/{start,finish} 0.2 are retired with `supersededBy`
91
+ naming the passkey slug, so their deprecation note points at the right
92
+ successor rather than at the wallet ceremony.
93
+ - start 0.3's `tokenNamesNoDid` and the 0.3 change notes point at the new
94
+ slug instead of 0.2.
95
+
96
+ Also fixes persona/contact/put 1.2's Status paragraph, which still carried
97
+ 1.1's "Version 1.0 remains in force; 1.1 is a backwards-compatible MINOR
98
+ increment".
99
+
100
+ - **rooms/owner/group/remove**: 0.4 — remove a private room's member from the group (#975)
101
+
102
+ 0.2 and 0.3 refused a `private` room with `privateRoom` and sent the owner
103
+ to 0.1, which the spec called the way to remove a member of a private room.
104
+ 0.1 is superseded all the same, so once it is withdrawn no task could take
105
+ a private-room member out of the MLS group.
106
+
107
+ 0.4 takes that tier in. On an `attributed` room it is 0.3: withdraw the
108
+ member's credentials at the host first, then advance. On a `private` room
109
+ it removes the leaf and advances the room, builds no revocation list (the
110
+ host cannot be told whom to refuse), and answers `withdrawn: false`.
111
+
112
+ - `privateRoom` is no longer declared.
113
+ - `signingKeyId` is optional; still required (as `noSigningKey`) on any
114
+ room that is not private.
115
+ - The response gains a required `withdrawn` boolean; `revocation` is
116
+ present only when it is true.
117
+ - Item 8 (settling a pending removal) is 0.3's, with a pending removal that
118
+ carries no list settled by its step 3 alone.
119
+ - A producer MUST NOT report `withdrawn: false` as a withdrawal.
120
+
121
+ Prose links to remove/0.3 in neighbouring rooms specs move to 0.4
122
+ (fix-stale-references). vtc/rooms/community/members/remove 0.2 and
123
+ rooms/owner/revoke 0.1 are clarified in place to allow 0.4 for a private
124
+ room alongside 0.1.
125
+
126
+
127
+
128
+ ### Fixed
129
+
130
+ - Stamp issuedAt in whole seconds in every library (#970) (#979)
131
+
132
+ Rust wrote `issuedAt` with `Utc::now()`, which chrono serializes at the
133
+ clock's precision: nine fractional digits on Linux, on every error response
134
+ `dispatch_or_reject` / `reject_with` built and every response `respond_with`
135
+ built. TypeScript wrote milliseconds with `toISOString()`. SPEC §13.1 item 3
136
+ calls a full-precision timestamp a fingerprint and lets a producer round
137
+ `issuedAt` down; readers with a narrower RFC 3339 profile refused these
138
+ documents.
139
+
140
+ Every instant the framework stamps is now UTC in whole seconds, rounded
141
+ down, the form Go (`SystemClock`) and Dart (`systemClock`) already wrote:
142
+
143
+ - trust-tasks-rs: new `issued_at_now()`, used by `reject_with_recipient`,
144
+ `respond_with` and the dispatchers' error responses.
145
+ - trust-tasks-https: the client's default `issuedAt` and the server's two
146
+ fallback error documents.
147
+ - trust-tasks-capability-client: built documents and `new_attempt`.
148
+ - @openvtc/trust-tasks: new `issuedAtNow()`, the default clock of
149
+ `rejectWithRecipient` / `rejectWith` / `respondWith`.
150
+ - @openvtc/trust-tasks-capability-client: built documents and `newAttempt`.
151
+
152
+ A whole second is inside every acceptance window a consumer applies, so no
153
+ specification has to opt in; the minute or hour §13.1 permits is left to a
154
+ specification that states its skew. Rounding down never future-dates a
155
+ document (§7.2 item 13). Readers are unchanged and keep accepting any RFC
156
+ 3339 precision and offset; received documents are never re-stamped, so
157
+ proofs and item-11 digests are unaffected.
158
+
159
+ The same vectors are pinned in all four libraries (tests/issued_at_precision.rs,
160
+ test/issued-at.test.ts, trusttasks/issued_at_test.go,
161
+ test/issued_at_test.dart): what is written, and that 0, 1, 3, 6 and 9
162
+ fractional digits and an offset are all read.
163
+
164
+
165
+
166
+ ### Specifications
167
+
168
+ - **vta/contexts/delete**: 1.1 bounds its acceptance of 1.0 by 1.0's withdrawal (#981)
169
+
170
+ "A 1.1 consumer MUST still accept 1.0" read as a perpetual obligation. It
171
+ only restated SPEC §5.2, which requires an implementation at M.N to accept
172
+ every earlier MINOR, and §5.3.3 ends that obligation when the earlier version
173
+ is withdrawn. 1.1 now says so: until 1.0 is withdrawn a 1.1 consumer accepts it
174
+ and answers it as 1.0 specifies; afterwards it MAY refuse it with
175
+ unsupportedVersion, and a producer MUST NOT send it.
176
+
177
+ An in-place prose edit: 1.1 is a draft, and the change touches neither its
178
+ schema nor its front matter (SPEC §5.2, editorial changes to a draft).
179
+
180
+ - **vtc/install/claim/passkey**: Prove possession of the passkey before any authority (#978)
181
+
182
+ A WebAuthn registration under the `none` attestation format, which most
183
+ platform passkeys use, signs nothing: it names the key the administrator's
184
+ DID is derived from but does not prove the installer holds it. The passkey
185
+ install now proves possession before a setup-session token is minted or any
186
+ administrator entry is written, whatever the attestation format.
187
+
188
+ - start's response adds `assertionOptions` (required): request options with
189
+ a second fresh challenge (>=128 bits, distinct from the creation
190
+ challenge, single-use, bound to the registration), no allowCredentials.
191
+ - finish's request adds `webauthnAssertion` (required): one
192
+ navigator.credentials.get() assertion by the just-registered credential
193
+ over that challenge. finish verifies it as WebAuthn §7.2 does, against
194
+ the registered key (EdDSA/Ed25519 or ES256/P-256), before consuming the
195
+ token, minting the setup-session token or writing an entry. Refusal:
196
+ new declared code `possessionUnproven`, nothing consumed.
197
+ - For an invitation of an additional administrator (the community already
198
+ has one, so vtc/admin/bootstrap answers alreadyBootstrapped), finish
199
+ writes the entry for the derived DID, after the assertion. On a fresh
200
+ community bootstrap writes it from the setup-session token, as before.
201
+ - Security & Privacy: possession is proven before any authority is granted.
202
+
203
+ Tightened in place: both versions are `draft` and unreleased (merged in
204
+ #976, held in Release PR #977), so SPEC §5.2's draft allowance applies and
205
+ check-published-schemas has no released copy to compare against.
206
+ vtc/admin/bootstrap/0.1 is unchanged and keeps working for its other caller,
207
+ vtc/install/claim/finish 0.3: the assertion rides in finish, not bootstrap,
208
+ because bootstrap never runs for an invited administrator.
209
+
210
+ VTI note: `vtc admin invite` will have two kinds — `--did X` uses the 0.3
211
+ wallet ceremony (token names X); no `--did` is a passkey invite, whose ACL
212
+ entry is written from the derived DID at finish (or at bootstrap on a fresh
213
+ community).
214
+
215
+ ## 0.28.1 — 2026-10-28
216
+
217
+
218
+ ### Added
219
+
220
+ - **vta/contexts/delete**: 1.1 — settle host copies first; abandonHostCopies (#967)
221
+
222
+ 1.0 removed every local record and reported a host copy it could not
223
+ remove in daemonCleanupErrors after the fact, so the caller learned that
224
+ DIDs were still resolving only once the records — and the keys that
225
+ could remove them — were gone. A DID whose hosting server was no longer
226
+ registered refused the whole deletion, with no way to complete it through
227
+ this task: a context whose host had gone for good could not be deleted.
228
+
229
+ 1.1 settles every host copy before anything local is removed. A copy
230
+ that cannot be confirmed removed (host down, refusing, unanswered, or no
231
+ longer known to the VTA) refuses with the new
232
+ vta/contexts/delete:hostCleanupFailed — retryable, details pinned by a
233
+ detailsSchema listing each DID, its server and why — and nothing local
234
+ is deleted. A producer shows those DIDs to a human and asks whether to
235
+ wait for the host or retry with the new abandonHostCopies, which
236
+ completes the deletion and reports the abandoned copies in
237
+ daemonCleanupErrors. A host answering that it no longer holds the log has
238
+ removed it, so a retry after a partial settle completes. The consumer
239
+ SHOULD bound the time spent on hosts, in total, to answer within the
240
+ requester's timeout.
241
+
242
+ abandonHostCopies is an explicitness flag like force, not a privilege,
243
+ and a producer MUST NOT set it on a first attempt without being told to.
244
+ A 1.1 consumer still accepts 1.0 and answers it as 1.0 specifies.
245
+
246
+ Regenerated the Rust, TypeScript, Go and Dart bindings; 1.0 is now
247
+ marked superseded. The stale-reference fixer moved create/1.0 and
248
+ preview-delete/1.0's links to 1.1.
249
+
14
250
  ## 0.28.0 — 2026-10-27
15
251
 
16
252
 
@@ -251,6 +251,19 @@ export declare function enforceAudienceBinding<P>(doc: TrustTaskDocument<P>, spe
251
251
  * issuedAt (§7.3 item 17), then audience binding.
252
252
  */
253
253
  export declare function enforceSpecPolicy<P>(doc: TrustTaskDocument<P>, spec: SpecPolicy): RejectReason | null;
254
+ /**
255
+ * The instant a document this library stamps carries in `issuedAt`: now, in
256
+ * **whole seconds** (`2026-10-28T05:14:12Z`).
257
+ *
258
+ * SPEC §13.1 item 3: a full-precision timestamp is a fingerprint — two documents
259
+ * with unrelated identifiers and the same millisecond came from the same
260
+ * process — and a producer MAY round `issuedAt` down. `toISOString()` writes
261
+ * milliseconds, which is that fingerprint, so the builders below default to
262
+ * this instead. Rounding down never dates a document in the future (§7.2 item
263
+ * 13). The Rust, Go and Dart libraries write the same form. Readers still take
264
+ * any RFC 3339 precision.
265
+ */
266
+ export declare function issuedAtNow(): string;
254
267
  /**
255
268
  * Build the error response for `request`, addressed to an explicit `recipient`.
256
269
  *
@@ -1 +1 @@
1
- {"version":3,"file":"document.d.ts","sourceRoot":"","sources":["../../src/_runtime/document.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAE9D,iFAAiF;AACjF,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB;AAED,yDAAyD;AACzD,MAAM,WAAW,YAAY;IAC3B,qGAAqG;IACrG,EAAE,EAAE,MAAM,CAAC;IACX;;;;;OAKG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,QAAQ;IACvB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,8FAA8F;IAC9F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;I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,GAAG,YAAY,CASjE;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAC9B,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAC7B,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,CAAC,EACV,GAAG,GAAE,MAAM,MAAoB,GAC9B,iBAAiB,CAAC,CAAC,CAAC,CAgBtB"}
@@ -128,6 +128,21 @@ export function enforceSpecPolicy(doc, spec) {
128
128
  }
129
129
  return enforceAudienceBinding(doc, spec);
130
130
  }
131
+ /**
132
+ * The instant a document this library stamps carries in `issuedAt`: now, in
133
+ * **whole seconds** (`2026-10-28T05:14:12Z`).
134
+ *
135
+ * SPEC §13.1 item 3: a full-precision timestamp is a fingerprint — two documents
136
+ * with unrelated identifiers and the same millisecond came from the same
137
+ * process — and a producer MAY round `issuedAt` down. `toISOString()` writes
138
+ * milliseconds, which is that fingerprint, so the builders below default to
139
+ * this instead. Rounding down never dates a document in the future (§7.2 item
140
+ * 13). The Rust, Go and Dart libraries write the same form. Readers still take
141
+ * any RFC 3339 precision.
142
+ */
143
+ export function issuedAtNow() {
144
+ return new Date(Math.floor(Date.now() / 1000) * 1000).toISOString().replace(".000Z", "Z");
145
+ }
131
146
  /**
132
147
  * Build the error response for `request`, addressed to an explicit `recipient`.
133
148
  *
@@ -135,7 +150,7 @@ export function enforceSpecPolicy(doc, spec) {
135
150
  * `identityMismatch`, where §8.1 forbids addressing the contested in-band
136
151
  * issuer — see `TransportHandler.reject` in ./transport.js, which applies that rule.
137
152
  */
138
- export function rejectWithRecipient(request, id, payload, recipient, now = () => new Date().toISOString()) {
153
+ export function rejectWithRecipient(request, id, payload, recipient, now = issuedAtNow) {
139
154
  // §8.2 — name the document this error reports on, so it means something to a
140
155
  // party that did not see the request. Filled here rather than left to the
141
156
  // caller because the builder is the only place that reliably has the
@@ -198,7 +213,7 @@ export function toErrorPayload(reason) {
198
213
  * request's Type URI with the `#response` fragment, the parties swapped, and
199
214
  * the thread continued.
200
215
  */
201
- export function respondWith(request, id, payload, now = () => new Date().toISOString()) {
216
+ export function respondWith(request, id, payload, now = issuedAtNow) {
202
217
  const bare = request.type.split("#")[0];
203
218
  const response = {
204
219
  id,
@@ -1 +1 @@
1
- {"version":3,"file":"document.js","sourceRoot":"","sources":["../../src/_runtime/document.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAqB,MAAM,YAAY,CAAC;AAuM9D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,kDAAkD,CAAC;AAE5F;;;;;;;;;GASG;AACH;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAC,KAAa;IACxC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;QAAE,OAAO,GAAG,CAAC;IACrC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,OAAO,GACX,wEAAwE,CAAC;AAE3E,MAAM,UAAU,aAAa,CAC3B,GAAyB,EACzB,GAAW,EACX,KAAa;IAEb,IAAI,GAAG,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;QAChC,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAC9C,IAAI,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;YAC5B,OAAO;gBACL,IAAI,EAAE,kBAAkB;gBACxB,OAAO,EAAE,6CAA6C;gBACtD,SAAS,EAAE,KAAK;aACjB,CAAC;QACJ,CAAC;QACD,uEAAuE;QACvE,IAAI,SAAS,IAAI,GAAG,EAAE,CAAC;YACrB,OAAO;gBACL,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,uBAAuB,GAAG,CAAC,SAAS,EAAE;gBAC/C,SAAS,EAAE,KAAK;aACjB,CAAC;QACJ,CAAC;IACH,CAAC;IAED,IAAI,GAAG,C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;AAClB,CAAC"}
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * The entry point is {@link consumeInbound}.
11
11
  */
12
- export { TRUST_TASK_ERROR_TYPE_URI, enforceAudienceBinding, enforceSpecPolicy, rejectWith, rejectWithRecipient, respondWith, toErrorPayload, validateBasic, type ErrorPayload, type ErrorResponse, type InResponseTo, type Proof, type RejectReason, type SpecPolicy, type TrustTaskDocument, } from "./document.js";
12
+ export { TRUST_TASK_ERROR_TYPE_URI, enforceAudienceBinding, enforceSpecPolicy, issuedAtNow, rejectWith, rejectWithRecipient, respondWith, toErrorPayload, validateBasic, type ErrorPayload, type ErrorResponse, type InResponseTo, type Proof, type RejectReason, type SpecPolicy, type TrustTaskDocument, } from "./document.js";
13
13
  export { STANDARD_CODES, extendedCode, familyCode, isStandardCode, normalizeCode, slugFromTypeUri, type StandardCode, } from "./codes.js";
14
14
  export { StaticTransport, UnauthenticatedTransport, identityMismatchReason, reject, resolveParties, type ConsistencyError, type ResolvedParties, type TransportContext, type TransportHandler, } from "./transport.js";
15
15
  export { ID_CONFLICT_WIRE_MESSAGE, PROOF_INVALID_WIRE_MESSAGE, PROOF_NOT_ACCEPTED_BY_POLICY, REPLAY_RECORD_UNAVAILABLE, consequentialChecks, consumeInbound, notConsequentialChecks, refuse, type ConsumeChecks, type ConsumeOptions, type ConsumeOutcome, type PayloadPolicy, type PayloadValidator, type ProofPolicy, type ProofVerifier, } from "./consume.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/_runtime/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,iBAAiB,EACjB,UAAU,EACV,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,iBAAiB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,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/_runtime/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,iBAAiB,EACjB,WAAW,EACX,UAAU,EACV,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,iBAAiB,GACvB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,UAAU,EACV,cAAc,EACd,aAAa,EACb,eAAe,EACf,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,sBAAsB,EACtB,MAAM,EACN,cAAc,EACd,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,aAAa,GACnB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,KAAK,OAAO,EACZ,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE1D,OAAO,EACL,cAAc,EACd,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,KAAK,aAAa,EAClB,KAAK,iBAAiB,GACvB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,yBAAyB,EACzB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,KAAK,eAAe,GACrB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC"}
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * The entry point is {@link consumeInbound}.
11
11
  */
12
- export { TRUST_TASK_ERROR_TYPE_URI, enforceAudienceBinding, enforceSpecPolicy, rejectWith, rejectWithRecipient, respondWith, toErrorPayload, validateBasic, } from "./document.js";
12
+ export { TRUST_TASK_ERROR_TYPE_URI, enforceAudienceBinding, enforceSpecPolicy, issuedAtNow, rejectWith, rejectWithRecipient, respondWith, toErrorPayload, validateBasic, } from "./document.js";
13
13
  export { STANDARD_CODES, extendedCode, familyCode, isStandardCode, normalizeCode, slugFromTypeUri, } from "./codes.js";
14
14
  export { StaticTransport, UnauthenticatedTransport, identityMismatchReason, reject, resolveParties, } from "./transport.js";
15
15
  export { ID_CONFLICT_WIRE_MESSAGE, PROOF_INVALID_WIRE_MESSAGE, PROOF_NOT_ACCEPTED_BY_POLICY, REPLAY_RECORD_UNAVAILABLE, consequentialChecks, consumeInbound, notConsequentialChecks, refuse, } from "./consume.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/_runtime/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,iBAAiB,EACjB,UAAU,EACV,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,aAAa,GAQd,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,UAAU,EACV,cAAc,EACd,aAAa,EACb,eAAe,GAEhB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,sBAAsB,EACtB,MAAM,EACN,cAAc,GAKf,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,MAAM,GAQP,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,kBAAkB,GAInB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE1D,OAAO,EACL,cAAc,EACd,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,WAAW,EACX,kBAAkB,GAGnB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,yBAAyB,EACzB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,GAElB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,mBAAmB,EACnB,cAAc,GAIf,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/_runtime/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,iBAAiB,EACjB,WAAW,EACX,UAAU,EACV,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,aAAa,GAQd,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,cAAc,EACd,YAAY,EACZ,UAAU,EACV,cAAc,EACd,aAAa,EACb,eAAe,GAEhB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,sBAAsB,EACtB,MAAM,EACN,cAAc,GAKf,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,MAAM,GAQP,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,wBAAwB,EACxB,2BAA2B,EAC3B,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,kBAAkB,GAInB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE1D,OAAO,EACL,cAAc,EACd,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,WAAW,EACX,kBAAkB,GAGnB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,yBAAyB,EACzB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,GAElB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,mBAAmB,EACnB,cAAc,GAIf,MAAM,aAAa,CAAC"}
@@ -32,7 +32,7 @@ export interface AuthStepUpApproveRequest {
32
32
  */
33
33
  targetAcr?: string;
34
34
  /**
35
- * Every approve-response evidence kind the relying party will accept for this step-up, and no other (see auth/step-up/approve-response/0.6 `evidence`). Replaces 0.3's optional `acceptableEvidence`. An approver that can satisfy none of them SHOULD refuse with `methodUnsupported`.
35
+ * Every approve-response evidence kind the relying party will accept for this step-up, and no other (see auth/step-up/approve-response/0.7 `evidence`). Replaces 0.3's optional `acceptableEvidence`. An approver that can satisfy none of them SHOULD refuse with `methodUnsupported`.
36
36
  *
37
37
  * @minItems 1
38
38
  */
@@ -149,7 +149,7 @@ export declare const PAYLOAD_SCHEMA: {
149
149
  readonly type: "string";
150
150
  readonly enum: readonly ["webauthn", "approverSigned", "didSigned"];
151
151
  };
152
- readonly description: "Every approve-response evidence kind the relying party will accept for this step-up, and no other (see auth/step-up/approve-response/0.6 `evidence`). Replaces 0.3's optional `acceptableEvidence`. An approver that can satisfy none of them SHOULD refuse with `methodUnsupported`.";
152
+ readonly description: "Every approve-response evidence kind the relying party will accept for this step-up, and no other (see auth/step-up/approve-response/0.7 `evidence`). Replaces 0.3's optional `acceptableEvidence`. An approver that can satisfy none of them SHOULD refuse with `methodUnsupported`.";
153
153
  };
154
154
  readonly webauthn: {
155
155
  readonly $ref: "#/$defs/CredentialRequestOptions";
@@ -440,7 +440,7 @@ export declare const SPEC: {
440
440
  readonly type: "string";
441
441
  readonly enum: readonly ["webauthn", "approverSigned", "didSigned"];
442
442
  };
443
- readonly description: "Every approve-response evidence kind the relying party will accept for this step-up, and no other (see auth/step-up/approve-response/0.6 `evidence`). Replaces 0.3's optional `acceptableEvidence`. An approver that can satisfy none of them SHOULD refuse with `methodUnsupported`.";
443
+ readonly description: "Every approve-response evidence kind the relying party will accept for this step-up, and no other (see auth/step-up/approve-response/0.7 `evidence`). Replaces 0.3's optional `acceptableEvidence`. An approver that can satisfy none of them SHOULD refuse with `methodUnsupported`.";
444
444
  };
445
445
  readonly webauthn: {
446
446
  readonly $ref: "#/$defs/CredentialRequestOptions";
@@ -86,7 +86,7 @@ export const PAYLOAD_SCHEMA = {
86
86
  "didSigned"
87
87
  ]
88
88
  },
89
- "description": "Every approve-response evidence kind the relying party will accept for this step-up, and no other (see auth/step-up/approve-response/0.6 `evidence`). Replaces 0.3's optional `acceptableEvidence`. An approver that can satisfy none of them SHOULD refuse with `methodUnsupported`."
89
+ "description": "Every approve-response evidence kind the relying party will accept for this step-up, and no other (see auth/step-up/approve-response/0.7 `evidence`). Replaces 0.3's optional `acceptableEvidence`. An approver that can satisfy none of them SHOULD refuse with `methodUnsupported`."
90
90
  },
91
91
  "webauthn": {
92
92
  "$ref": "#/$defs/CredentialRequestOptions",
@@ -10,7 +10,7 @@ export type StepUpEvidence = DidSigned | WebAuthn;
10
10
  /**
11
11
  * The approver's signed ratification of a step-up: subject + sessionId + challenge are echoed inside a proof-bearing document so the relying party can elevate the session.
12
12
  *
13
- * @deprecated superseded by auth/step-up/approve-response/0.6
13
+ * @deprecated superseded by auth/step-up/approve-response/0.7
14
14
  */
15
15
  export interface AuthStepUpApproveResponse {
16
16
  /**
@@ -56,7 +56,7 @@ export interface WebAuthn {
56
56
  /**
57
57
  * 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.1#response.
58
58
  *
59
- * @deprecated superseded by auth/step-up/approve-response/0.6
59
+ * @deprecated superseded by auth/step-up/approve-response/0.7
60
60
  */
61
61
  export interface AuthStepUpApproveResponseRelyingPartyAck {
62
62
  status: "elevated" | "rejected";
@@ -91,7 +91,7 @@ export declare const DEPRECATION: string | null;
91
91
  /**
92
92
  * Stable alias for this specification's request payload shape.
93
93
  *
94
- * @deprecated superseded by auth/step-up/approve-response/0.6
94
+ * @deprecated superseded by auth/step-up/approve-response/0.7
95
95
  */
96
96
  export type Payload = AuthStepUpApproveResponse;
97
97
  /** Trust Task response type URI (request type URI + "#response"). */
@@ -99,7 +99,7 @@ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/auth/step-u
99
99
  /**
100
100
  * Stable alias for this specification's success-response payload shape.
101
101
  *
102
- * @deprecated superseded by auth/step-up/approve-response/0.6
102
+ * @deprecated superseded by auth/step-up/approve-response/0.7
103
103
  */
104
104
  export type Response = AuthStepUpApproveResponseRelyingPartyAck;
105
105
  /**
@@ -17,7 +17,7 @@ export const EXTENDS = null;
17
17
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
18
18
  * Versions").
19
19
  */
20
- export const DEPRECATION = "superseded by auth/step-up/approve-response/0.6";
20
+ export const DEPRECATION = "superseded by auth/step-up/approve-response/0.7";
21
21
  /** Trust Task response type URI (request type URI + "#response"). */
22
22
  export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/step-up/approve-response/0.1#response";
23
23
  /**
@@ -10,7 +10,7 @@ export type StepUpEvidence = DidSigned | WebAuthn;
10
10
  /**
11
11
  * The approver's signed ratification of a step-up: subject + sessionId + challenge are echoed inside a proof-bearing document so the relying party can elevate the session.
12
12
  *
13
- * @deprecated superseded by auth/step-up/approve-response/0.6
13
+ * @deprecated superseded by auth/step-up/approve-response/0.7
14
14
  */
15
15
  export interface AuthStepUpApproveResponse {
16
16
  /**
@@ -56,7 +56,7 @@ export interface WebAuthn {
56
56
  /**
57
57
  * 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.1#response.
58
58
  *
59
- * @deprecated superseded by auth/step-up/approve-response/0.6
59
+ * @deprecated superseded by auth/step-up/approve-response/0.7
60
60
  */
61
61
  export interface AuthStepUpApproveResponseRelyingPartyAck {
62
62
  status: "elevated" | "rejected";
@@ -91,7 +91,7 @@ export declare const DEPRECATION: string | null;
91
91
  /**
92
92
  * Stable alias for this specification's request payload shape.
93
93
  *
94
- * @deprecated superseded by auth/step-up/approve-response/0.6
94
+ * @deprecated superseded by auth/step-up/approve-response/0.7
95
95
  */
96
96
  export type Payload = AuthStepUpApproveResponse;
97
97
  /** Trust Task response type URI (request type URI + "#response"). */
@@ -99,7 +99,7 @@ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/auth/step-u
99
99
  /**
100
100
  * Stable alias for this specification's success-response payload shape.
101
101
  *
102
- * @deprecated superseded by auth/step-up/approve-response/0.6
102
+ * @deprecated superseded by auth/step-up/approve-response/0.7
103
103
  */
104
104
  export type Response = AuthStepUpApproveResponseRelyingPartyAck;
105
105
  /**
@@ -17,7 +17,7 @@ export const EXTENDS = null;
17
17
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
18
18
  * Versions").
19
19
  */
20
- export const DEPRECATION = "superseded by auth/step-up/approve-response/0.6";
20
+ export const DEPRECATION = "superseded by auth/step-up/approve-response/0.7";
21
21
  /** Trust Task response type URI (request type URI + "#response"). */
22
22
  export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/step-up/approve-response/0.2#response";
23
23
  /**
@@ -10,7 +10,7 @@ export type StepUpEvidence = DidSigned | WebAuthn;
10
10
  /**
11
11
  * The approver's signed ratification of a step-up: subject + sessionId + challenge are echoed inside a proof-bearing document so the relying party can elevate the session.
12
12
  *
13
- * @deprecated superseded by auth/step-up/approve-response/0.6
13
+ * @deprecated superseded by auth/step-up/approve-response/0.7
14
14
  */
15
15
  export interface AuthStepUpApproveResponse {
16
16
  /**
@@ -56,7 +56,7 @@ export interface WebAuthn {
56
56
  /**
57
57
  * 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.3#response.
58
58
  *
59
- * @deprecated superseded by auth/step-up/approve-response/0.6
59
+ * @deprecated superseded by auth/step-up/approve-response/0.7
60
60
  */
61
61
  export interface AuthStepUpApproveResponseRelyingPartyAck {
62
62
  /**
@@ -98,7 +98,7 @@ export declare const DEPRECATION: string | null;
98
98
  /**
99
99
  * Stable alias for this specification's request payload shape.
100
100
  *
101
- * @deprecated superseded by auth/step-up/approve-response/0.6
101
+ * @deprecated superseded by auth/step-up/approve-response/0.7
102
102
  */
103
103
  export type Payload = AuthStepUpApproveResponse;
104
104
  /** Trust Task response type URI (request type URI + "#response"). */
@@ -106,7 +106,7 @@ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/auth/step-u
106
106
  /**
107
107
  * Stable alias for this specification's success-response payload shape.
108
108
  *
109
- * @deprecated superseded by auth/step-up/approve-response/0.6
109
+ * @deprecated superseded by auth/step-up/approve-response/0.7
110
110
  */
111
111
  export type Response = AuthStepUpApproveResponseRelyingPartyAck;
112
112
  /**
@@ -17,7 +17,7 @@ export const EXTENDS = null;
17
17
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
18
18
  * Versions").
19
19
  */
20
- export const DEPRECATION = "superseded by auth/step-up/approve-response/0.6";
20
+ export const DEPRECATION = "superseded by auth/step-up/approve-response/0.7";
21
21
  /** Trust Task response type URI (request type URI + "#response"). */
22
22
  export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/step-up/approve-response/0.3#response";
23
23
  /**
@@ -10,7 +10,7 @@ export type StepUpEvidence = DidSigned | WebAuthn;
10
10
  /**
11
11
  * The approver's signed ratification of a step-up: subject + challenge (+ sessionId, when the request carried one) are echoed inside a gated document so the relying party can elevate the session, or apply the approval to the one operation it was bound to.
12
12
  *
13
- * @deprecated superseded by auth/step-up/approve-response/0.6
13
+ * @deprecated superseded by auth/step-up/approve-response/0.7
14
14
  */
15
15
  export interface AuthStepUpApproveResponse {
16
16
  /**
@@ -56,7 +56,7 @@ export interface WebAuthn {
56
56
  /**
57
57
  * 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.4#response.
58
58
  *
59
- * @deprecated superseded by auth/step-up/approve-response/0.6
59
+ * @deprecated superseded by auth/step-up/approve-response/0.7
60
60
  */
61
61
  export interface AuthStepUpApproveResponseRelyingPartyAck {
62
62
  /**
@@ -98,7 +98,7 @@ export declare const DEPRECATION: string | null;
98
98
  /**
99
99
  * Stable alias for this specification's request payload shape.
100
100
  *
101
- * @deprecated superseded by auth/step-up/approve-response/0.6
101
+ * @deprecated superseded by auth/step-up/approve-response/0.7
102
102
  */
103
103
  export type Payload = AuthStepUpApproveResponse;
104
104
  /** Trust Task response type URI (request type URI + "#response"). */
@@ -106,7 +106,7 @@ export declare const RESPONSE_TYPE_URI: "https://trusttasks.org/spec/auth/step-u
106
106
  /**
107
107
  * Stable alias for this specification's success-response payload shape.
108
108
  *
109
- * @deprecated superseded by auth/step-up/approve-response/0.6
109
+ * @deprecated superseded by auth/step-up/approve-response/0.7
110
110
  */
111
111
  export type Response = AuthStepUpApproveResponseRelyingPartyAck;
112
112
  /**
@@ -17,7 +17,7 @@ export const EXTENDS = null;
17
17
  * this package in a later scheduled batch (SPEC "Superseded and Withdrawn
18
18
  * Versions").
19
19
  */
20
- export const DEPRECATION = "superseded by auth/step-up/approve-response/0.6";
20
+ export const DEPRECATION = "superseded by auth/step-up/approve-response/0.7";
21
21
  /** Trust Task response type URI (request type URI + "#response"). */
22
22
  export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/auth/step-up/approve-response/0.4#response";
23
23
  /**