@t3foundry/tasra-sdk 0.3.1-next.1 → 0.4.0

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 (255) hide show
  1. package/CHANGELOG.md +1067 -28
  2. package/README.md +15 -0
  3. package/dist/app/approvals.d.ts +66 -4
  4. package/dist/app/approvals.js +153 -16
  5. package/dist/app/authorization.d.ts +1 -1
  6. package/dist/app/authorization.js +1 -1
  7. package/dist/app/browser.d.ts +63 -0
  8. package/dist/app/browser.js +242 -0
  9. package/dist/app/client.d.ts +114 -13
  10. package/dist/app/client.js +302 -76
  11. package/dist/app/identity.js +21 -9
  12. package/dist/app/index.d.ts +28 -3
  13. package/dist/app/index.js +16 -1
  14. package/dist/app/memory-store.d.ts +7 -0
  15. package/dist/app/memory-store.js +55 -0
  16. package/dist/app/node.d.ts +34 -6
  17. package/dist/app/node.js +387 -64
  18. package/dist/app/paid-allowance.d.ts +325 -0
  19. package/dist/app/paid-allowance.js +1290 -0
  20. package/dist/app/paid-approval.d.ts +122 -0
  21. package/dist/app/paid-approval.js +379 -0
  22. package/dist/app/paid-journal.d.ts +51 -0
  23. package/dist/app/paid-journal.js +117 -0
  24. package/dist/app/paid-keys.d.ts +12 -0
  25. package/dist/app/paid-keys.js +20 -0
  26. package/dist/app/paid-operation.d.ts +821 -0
  27. package/dist/app/paid-operation.js +1720 -0
  28. package/dist/app/paid-reservation.d.ts +157 -0
  29. package/dist/app/paid-reservation.js +323 -0
  30. package/dist/app/paid-session.d.ts +147 -0
  31. package/dist/app/paid-session.js +578 -0
  32. package/dist/app/payer-queue.d.ts +11 -0
  33. package/dist/app/payer-queue.js +27 -0
  34. package/dist/app/policy-bootstrap.d.ts +342 -0
  35. package/dist/app/policy-bootstrap.js +365 -0
  36. package/dist/app/policy-operation.d.ts +47 -0
  37. package/dist/app/policy-operation.js +101 -0
  38. package/dist/app/ready-slot.d.ts +12 -0
  39. package/dist/app/ready-slot.js +5 -2
  40. package/dist/app/rotation-lock.d.ts +38 -0
  41. package/dist/app/rotation-lock.js +42 -0
  42. package/dist/app/session-decrypt.d.ts +135 -0
  43. package/dist/app/session-decrypt.js +335 -0
  44. package/dist/app/session-grants.d.ts +349 -0
  45. package/dist/app/session-grants.js +811 -0
  46. package/dist/app/signing-intents.d.ts +78 -0
  47. package/dist/app/signing-intents.js +95 -0
  48. package/dist/app/store-commit.d.ts +63 -0
  49. package/dist/app/store-commit.js +126 -0
  50. package/dist/app/store-errors.d.ts +8 -0
  51. package/dist/app/store-errors.js +11 -0
  52. package/dist/app/tasra-client.d.ts +2 -0
  53. package/dist/app/tasra-client.js +1 -1
  54. package/dist/app/wallet.js +4 -1
  55. package/dist/auth/holderProof.d.ts +3 -0
  56. package/dist/auth/holderProof.js +8 -7
  57. package/dist/auth/verifier.d.ts +4 -2
  58. package/dist/auth/verifier.js +5 -2
  59. package/dist/chain/abis/index.d.ts +6178 -4101
  60. package/dist/chain/abis/index.js +3 -0
  61. package/dist/chain/abis/keyRegistry.d.ts +256 -0
  62. package/dist/chain/abis/keyRegistry.js +333 -0
  63. package/dist/chain/abis/prepaidFaultOracle.d.ts +321 -0
  64. package/dist/chain/abis/prepaidFaultOracle.js +413 -0
  65. package/dist/chain/abis/settlement.d.ts +2203 -703
  66. package/dist/chain/abis/settlement.js +2685 -764
  67. package/dist/chain/allowance.d.ts +358 -0
  68. package/dist/chain/allowance.js +800 -0
  69. package/dist/chain/billing.d.ts +85 -0
  70. package/dist/chain/billing.js +197 -0
  71. package/dist/chain/chainId.d.ts +13 -0
  72. package/dist/chain/chainId.js +26 -0
  73. package/dist/chain/client.d.ts +15 -1
  74. package/dist/chain/client.js +57 -1
  75. package/dist/chain/commitmentRecovery.d.ts +51 -0
  76. package/dist/chain/commitmentRecovery.js +38 -0
  77. package/dist/chain/committeeClient.d.ts +17 -10
  78. package/dist/chain/committeeClient.js +64 -16
  79. package/dist/chain/committeeDraw.d.ts +12 -0
  80. package/dist/chain/committeeDraw.js +56 -0
  81. package/dist/chain/custodyHealth.d.ts +212 -0
  82. package/dist/chain/custodyHealth.js +365 -0
  83. package/dist/chain/deployments.js +2 -0
  84. package/dist/chain/events.js +2 -0
  85. package/dist/chain/headFollower.d.ts +77 -0
  86. package/dist/chain/headFollower.js +219 -0
  87. package/dist/chain/headPrefetch.d.ts +23 -0
  88. package/dist/chain/headPrefetch.js +67 -0
  89. package/dist/chain/index.d.ts +50 -8
  90. package/dist/chain/index.js +28 -3
  91. package/dist/chain/keeperExecution.d.ts +44 -0
  92. package/dist/chain/keeperExecution.js +127 -0
  93. package/dist/chain/keeperRecovery.d.ts +78 -0
  94. package/dist/chain/keeperRecovery.js +91 -0
  95. package/dist/chain/node.d.ts +24 -1
  96. package/dist/chain/node.js +88 -43
  97. package/dist/chain/offchain.d.ts +2 -0
  98. package/dist/chain/paidAgentTransport.d.ts +38 -0
  99. package/dist/chain/paidAgentTransport.js +1 -0
  100. package/dist/chain/paidEpoch.d.ts +66 -0
  101. package/dist/chain/paidEpoch.js +139 -0
  102. package/dist/chain/paidPacing.d.ts +81 -0
  103. package/dist/chain/paidPacing.js +136 -0
  104. package/dist/chain/pinnedReads.d.ts +49 -0
  105. package/dist/chain/pinnedReads.js +218 -0
  106. package/dist/chain/prepaid.d.ts +383 -0
  107. package/dist/chain/prepaid.js +1046 -0
  108. package/dist/chain/prepaidEscape.d.ts +274 -0
  109. package/dist/chain/prepaidEscape.js +432 -0
  110. package/dist/chain/prepaidFault.d.ts +94 -0
  111. package/dist/chain/prepaidFault.js +148 -0
  112. package/dist/chain/receipt.d.ts +24 -0
  113. package/dist/chain/receipt.js +82 -0
  114. package/dist/chain/registeredAgent.d.ts +68 -3
  115. package/dist/chain/registeredAgent.js +143 -42
  116. package/dist/chain/registeredOperation.d.ts +10 -1
  117. package/dist/chain/registeredOperation.js +18 -3
  118. package/dist/chain/registeredPaidAgent.d.ts +254 -0
  119. package/dist/chain/registeredPaidAgent.js +889 -0
  120. package/dist/chain/registeredRelay.d.ts +31 -1
  121. package/dist/chain/registeredRelay.js +164 -43
  122. package/dist/chain/relayVoucher.d.ts +64 -0
  123. package/dist/chain/relayVoucher.js +69 -0
  124. package/dist/chain/reservation.d.ts +239 -0
  125. package/dist/chain/reservation.js +746 -0
  126. package/dist/chain/reshareRoster.d.ts +64 -0
  127. package/dist/chain/reshareRoster.js +85 -0
  128. package/dist/chain/revertReason.d.ts +8 -0
  129. package/dist/chain/revertReason.js +2 -1
  130. package/dist/chain/rotationLock.d.ts +130 -0
  131. package/dist/chain/rotationLock.js +168 -0
  132. package/dist/chain/serviceRequestPolicy.d.ts +47 -0
  133. package/dist/chain/serviceRequestPolicy.js +86 -0
  134. package/dist/chain/services.d.ts +7 -0
  135. package/dist/chain/services.js +44 -4
  136. package/dist/chain/slotClient.js +11 -2
  137. package/dist/chain/slotHandoff.d.ts +81 -0
  138. package/dist/chain/slotHandoff.js +166 -0
  139. package/dist/chain/slotSeed.d.ts +47 -5
  140. package/dist/chain/slotSeed.js +173 -42
  141. package/dist/chain/verifierSnapshot.d.ts +36 -0
  142. package/dist/chain/verifierSnapshot.js +197 -0
  143. package/dist/chain/write.d.ts +111 -21
  144. package/dist/chain/write.js +378 -146
  145. package/dist/committee/blsSharing.d.ts +53 -0
  146. package/dist/committee/blsSharing.js +90 -0
  147. package/dist/committee/client.d.ts +62 -23
  148. package/dist/committee/client.js +288 -72
  149. package/dist/committee/dual-operation.d.ts +165 -0
  150. package/dist/committee/dual-operation.js +229 -0
  151. package/dist/committee/dual-sign.d.ts +26 -1
  152. package/dist/committee/dual-sign.js +85 -7
  153. package/dist/committee/ecdsa.d.ts +38 -0
  154. package/dist/committee/ecdsa.js +87 -15
  155. package/dist/committee/evidence.d.ts +30 -0
  156. package/dist/committee/evidence.js +65 -0
  157. package/dist/committee/execution.d.ts +414 -0
  158. package/dist/committee/execution.js +446 -0
  159. package/dist/committee/extraction.js +33 -26
  160. package/dist/committee/index.d.ts +30 -7
  161. package/dist/committee/index.js +18 -6
  162. package/dist/committee/keeperExecution.d.ts +37 -0
  163. package/dist/committee/keeperExecution.js +141 -0
  164. package/dist/committee/oauth.d.ts +14 -4
  165. package/dist/committee/oauth.js +17 -5
  166. package/dist/committee/payment.d.ts +369 -0
  167. package/dist/committee/payment.js +339 -0
  168. package/dist/committee/recovery.d.ts +136 -0
  169. package/dist/committee/recovery.js +204 -0
  170. package/dist/committee/recoveryJson.d.ts +2 -0
  171. package/dist/committee/recoveryJson.js +87 -0
  172. package/dist/committee/request.d.ts +63 -27
  173. package/dist/committee/request.js +77 -66
  174. package/dist/committee/session-grant.d.ts +320 -0
  175. package/dist/committee/session-grant.js +397 -0
  176. package/dist/committee/status-refresh.d.ts +257 -0
  177. package/dist/committee/status-refresh.js +619 -0
  178. package/dist/committee/token.d.ts +163 -15
  179. package/dist/committee/token.js +247 -10
  180. package/dist/crypto/bn254.d.ts +70 -0
  181. package/dist/crypto/bn254.js +222 -0
  182. package/dist/crypto/ibe.d.ts +32 -0
  183. package/dist/crypto/ibe.js +56 -8
  184. package/dist/crypto/index.d.ts +1 -1
  185. package/dist/crypto/index.js +1 -1
  186. package/dist/crypto/kem.d.ts +31 -0
  187. package/dist/crypto/kem.js +113 -7
  188. package/dist/crypto/recipient.d.ts +75 -0
  189. package/dist/crypto/recipient.js +107 -0
  190. package/dist/decryption/client.d.ts +10 -16
  191. package/dist/decryption/client.js +8 -76
  192. package/dist/decryption/index.d.ts +2 -0
  193. package/dist/decryption/index.js +2 -0
  194. package/dist/decryption/sealed.d.ts +72 -0
  195. package/dist/decryption/sealed.js +147 -0
  196. package/dist/decryption/session.d.ts +115 -0
  197. package/dist/decryption/session.js +358 -0
  198. package/dist/errors.d.ts +406 -1
  199. package/dist/errors.js +400 -5
  200. package/dist/index.d.ts +9 -2
  201. package/dist/index.js +6 -1
  202. package/dist/internal/bounded.d.ts +66 -0
  203. package/dist/internal/bounded.js +126 -0
  204. package/dist/internal/network.d.ts +4 -0
  205. package/dist/internal/network.js +40 -0
  206. package/dist/internal/retryAfter.d.ts +8 -0
  207. package/dist/internal/retryAfter.js +28 -0
  208. package/dist/internal/sleep.d.ts +6 -0
  209. package/dist/internal/sleep.js +15 -0
  210. package/dist/internal/typedData.d.ts +13 -0
  211. package/dist/internal/typedData.js +77 -0
  212. package/dist/internal/viemErrors.d.ts +26 -0
  213. package/dist/internal/viemErrors.js +49 -0
  214. package/dist/oid4vp/binding.d.ts +27 -1
  215. package/dist/oid4vp/binding.js +36 -1
  216. package/dist/oid4vp/jose.d.ts +4 -2
  217. package/dist/oid4vp/jose.js +39 -7
  218. package/dist/oid4vp/request-object.d.ts +61 -4
  219. package/dist/oid4vp/request-object.js +140 -5
  220. package/dist/oid4vp/verifier-agent.d.ts +18 -8
  221. package/dist/oid4vp/verifier-agent.js +48 -6
  222. package/dist/oid4vp/wallet.d.ts +2 -4
  223. package/dist/oid4vp/wallet.js +1 -0
  224. package/dist/retry.d.ts +78 -0
  225. package/dist/retry.js +137 -0
  226. package/dist/signing/frost.d.ts +1 -1
  227. package/dist/verifier-agent/index.d.ts +41 -5
  228. package/dist/verifier-agent/index.js +124 -9
  229. package/dist/verifier-agent/payment.d.ts +7 -0
  230. package/dist/verifier-agent/payment.js +17 -0
  231. package/docs/api.md +8 -2
  232. package/docs/application-api.md +25 -2
  233. package/docs/chain.md +155 -9
  234. package/docs/consumer-migrations.md +61 -0
  235. package/docs/encrypted-notes.md +3 -2
  236. package/docs/encryption.md +4 -2
  237. package/docs/errors.md +14 -1
  238. package/docs/flows.md +2 -2
  239. package/docs/funding.md +902 -0
  240. package/docs/native-approvals.md +63 -0
  241. package/docs/reference/README.md +9 -8
  242. package/docs/reference/app-browser.md +232 -0
  243. package/docs/reference/app-node.md +38 -8
  244. package/docs/reference/app.md +4621 -805
  245. package/docs/reference/chain-node.md +74 -16
  246. package/docs/reference/chain.md +6740 -1592
  247. package/docs/reference/committee.md +5630 -987
  248. package/docs/reference/main.md +1439 -140
  249. package/docs/reference/oid4vp.md +297 -144
  250. package/docs/reference/verifier-agent.md +77 -35
  251. package/docs/signing.md +6 -0
  252. package/examples/encrypted-notes.ts +21 -6
  253. package/examples/getting-started.ts +2 -7
  254. package/examples/live-config.ts +24 -17
  255. package/package.json +17 -5
@@ -1,4 +1,4 @@
1
- # @t3foundry/tasra-sdk/oid4vp
1
+ # tasra-sdk/oid4vp
2
2
 
3
3
  Generated from public TypeScript exports.
4
4
 
@@ -21,9 +21,9 @@ A Verifier Agent session did not produce a compound token. `kind` says why;
21
21
  `retryable` is true only for `timeout` and `unavailable` - the session may
22
22
  still complete, so poll again. Extends ` TasraError `.
23
23
 
24
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L134)
24
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L152)
25
25
 
26
- Import: `import {VerifierAgentSessionError} from '@t3foundry/tasra-sdk/oid4vp'`
26
+ Import: `import {VerifierAgentSessionError} from 'tasra-sdk/oid4vp'`
27
27
 
28
28
  ```ts
29
29
  declare class VerifierAgentSessionError {
@@ -52,7 +52,7 @@ declare class VerifierAgentSessionError {
52
52
  Operations you can import and call.
53
53
 
54
54
  <details>
55
- <summary>Browse 64 functions</summary>
55
+ <summary>Browse 66 functions</summary>
56
56
 
57
57
  - [assertCompoundTokenWire](#assertcompoundtokenwire)
58
58
  - [awaitVerifierAgentResult](#awaitverifieragentresult)
@@ -117,6 +117,8 @@ Operations you can import and call.
117
117
  - [verifyCompactJws](#verifycompactjws)
118
118
  - [verifyKbJwt](#verifykbjwt)
119
119
  - [verifyRequestObject](#verifyrequestobject)
120
+ - [vpNonceBound](#vpnoncebound)
121
+ - [vpSessionNonce](#vpsessionnonce)
120
122
  - [waitForSession](#waitforsession)
121
123
 
122
124
  </details>
@@ -126,9 +128,9 @@ Operations you can import and call.
126
128
  The compound token the verifier-agent hands back must be the wire shape the keepers verify -
127
129
  checked field by field before anything is built on it.
128
130
 
129
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L162)
131
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L180)
130
132
 
131
- Import: `import {assertCompoundTokenWire} from '@t3foundry/tasra-sdk/oid4vp'`
133
+ Import: `import {assertCompoundTokenWire} from 'tasra-sdk/oid4vp'`
132
134
 
133
135
  ```ts
134
136
  declare function assertCompoundTokenWire(raw: unknown, correlation: string): Record<string, unknown>;
@@ -149,12 +151,12 @@ refusing side), `timeout`, `unavailable`, `protocol`, `cancelled` - and whose
149
151
  `correlation` is the session id. A token that binds another request than this session
150
152
  opened, or one whose proofs are malformed, is a `protocol` refusal: nothing is built on it.
151
153
 
152
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L196)
154
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L228)
153
155
 
154
- Import: `import {awaitVerifierAgentResult} from '@t3foundry/tasra-sdk/oid4vp'`
156
+ Import: `import {awaitVerifierAgentResult} from 'tasra-sdk/oid4vp'`
155
157
 
156
158
  ```ts
157
- declare function awaitVerifierAgentResult(session: Pick<OpenedVerifierAgentSession, 'verifierAgentUrl' | 'sessionId' | 'pollSecret' | 'requestHash'>, opts?: {
159
+ declare function awaitVerifierAgentResult(session: Pick<OpenedVerifierAgentSession, 'verifierAgentUrl' | 'sessionId' | 'pollSecret' | 'requestHash' | 'paymentHash'>, opts?: {
158
160
  intervalMs?: number;
159
161
  timeoutMs?: number;
160
162
  } & WaitOpts): Promise<VerifierAgentResult>;
@@ -162,7 +164,7 @@ declare function awaitVerifierAgentResult(session: Pick<OpenedVerifierAgentSessi
162
164
 
163
165
  | Parameter | Type | Description |
164
166
  |---|---|---|
165
- | ` session ` | ` Pick<OpenedVerifierAgentSession, 'verifierAgentUrl' \| 'sessionId' \| 'pollSecret' \| 'requestHash'> ` | - Opened session credentials and expected request-binding hash. |
167
+ | ` session ` | ` Pick<OpenedVerifierAgentSession, 'verifierAgentUrl' \| 'sessionId' \| 'pollSecret' \| 'requestHash' \| 'paymentHash'> ` | - Opened session credentials and expected request-binding hash. |
166
168
  | ` opts? ` | ` { intervalMs?: number; timeoutMs?: number; } & WaitOpts ` | - Polling intervals, timeout, cancellation and progress callback. |
167
169
 
168
170
  Returns: ` Promise<VerifierAgentResult> `.
@@ -173,7 +175,7 @@ Encode bytes or UTF-8 text as unpadded base64url.
173
175
 
174
176
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L28)
175
177
 
176
- Import: `import {b64url} from '@t3foundry/tasra-sdk/oid4vp'`
178
+ Import: `import {b64url} from 'tasra-sdk/oid4vp'`
177
179
 
178
180
  ```ts
179
181
  declare function b64url(bytes: Uint8Array | string): string;
@@ -191,7 +193,7 @@ Decode base64url text into bytes.
191
193
 
192
194
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L39)
193
195
 
194
- Import: `import {b64urlDecode} from '@t3foundry/tasra-sdk/oid4vp'`
196
+ Import: `import {b64urlDecode} from 'tasra-sdk/oid4vp'`
195
197
 
196
198
  ```ts
197
199
  declare function b64urlDecode(s: string): Uint8Array;
@@ -207,9 +209,9 @@ Returns: ` Uint8Array `.
207
209
 
208
210
  Decode base58btc text, preserving leading zero bytes and rejecting invalid characters.
209
211
 
210
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L173)
212
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L191)
211
213
 
212
- Import: `import {base58Decode} from '@t3foundry/tasra-sdk/oid4vp'`
214
+ Import: `import {base58Decode} from 'tasra-sdk/oid4vp'`
213
215
 
214
216
  ```ts
215
217
  declare function base58Decode(s: string): Uint8Array;
@@ -225,9 +227,9 @@ Returns: ` Uint8Array `.
225
227
 
226
228
  Encode bytes as base58btc, preserving leading zero bytes.
227
229
 
228
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L154)
230
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L172)
229
231
 
230
- Import: `import {base58Encode} from '@t3foundry/tasra-sdk/oid4vp'`
232
+ Import: `import {base58Encode} from 'tasra-sdk/oid4vp'`
231
233
 
232
234
  ```ts
233
235
  declare function base58Encode(bytes: Uint8Array): string;
@@ -245,7 +247,7 @@ Bind the chosen credential to the request (KB-JWT) and wrap it as the verifier-a
245
247
 
246
248
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/wallet.ts#L119)
247
249
 
248
- Import: `import {buildResponse} from '@t3foundry/tasra-sdk/oid4vp'`
250
+ Import: `import {buildResponse} from 'tasra-sdk/oid4vp'`
249
251
 
250
252
  ```ts
251
253
  declare function buildResponse(opts: BuildResponseOpts): BuiltResponse;
@@ -263,7 +265,7 @@ Concat KDF (NIST SP 800-56A, single-pass SHA-256) - AlgorithmID = `enc` for ECDH
263
265
 
264
266
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jwe.ts#L33)
265
267
 
266
- Import: `import {concatKdf} from '@t3foundry/tasra-sdk/oid4vp'`
268
+ Import: `import {concatKdf} from 'tasra-sdk/oid4vp'`
267
269
 
268
270
  ```ts
269
271
  declare function concatKdf(z: Uint8Array, alg: string, apu: Uint8Array, apv: Uint8Array, keyLen: number): Uint8Array;
@@ -287,9 +289,9 @@ The verifier-agent derives a nonce, generates an ECDH key for JWE, and returns a
287
289
  payload the wallet scans. The session ID and poll secret are used to poll
288
290
  for the result.
289
291
 
290
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L238)
292
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L272)
291
293
 
292
- Import: `import {createOid4vpSession} from '@t3foundry/tasra-sdk/oid4vp'`
294
+ Import: `import {createOid4vpSession} from 'tasra-sdk/oid4vp'`
293
295
 
294
296
  ```ts
295
297
  declare function createOid4vpSession(verifierAgentUrl: string, params: CreateSessionParams): Promise<CreateSessionResult>;
@@ -308,7 +310,7 @@ Decode a base64url JSON value. The generic type is a caller assertion, not runti
308
310
 
309
311
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L48)
310
312
 
311
- Import: `import {decodeJson} from '@t3foundry/tasra-sdk/oid4vp'`
313
+ Import: `import {decodeJson} from 'tasra-sdk/oid4vp'`
312
314
 
313
315
  ```ts
314
316
  declare function decodeJson<T = unknown>(b64: string): T;
@@ -326,7 +328,7 @@ Decrypt a compact JWE produced by [encryptJwe](#encryptjwe) (or a wallet) with t
326
328
 
327
329
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jwe.ts#L80)
328
330
 
329
- Import: `import {decryptJwe} from '@t3foundry/tasra-sdk/oid4vp'`
331
+ Import: `import {decryptJwe} from 'tasra-sdk/oid4vp'`
330
332
 
331
333
  ```ts
332
334
  declare function decryptJwe(compact: string, recipientPrivateKey: Uint8Array): string;
@@ -345,9 +347,9 @@ The `decrypt` action's digest, mirroring the reference decrypt digest:
345
347
  `sha256(DOMAIN || len(u) u64 LE || u || len(aead_ct) u64 LE || aead_ct)` - the AEAD nonce is
346
348
  deliberately excluded (it is not authorised content).
347
349
 
348
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/binding.ts#L149)
350
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/binding.ts#L174)
349
351
 
350
- Import: `import {decryptPayloadDigest} from '@t3foundry/tasra-sdk/oid4vp'`
352
+ Import: `import {decryptPayloadDigest} from 'tasra-sdk/oid4vp'`
351
353
 
352
354
  ```ts
353
355
  declare function decryptPayloadDigest(u: Uint8Array, aeadCt: Uint8Array): Uint8Array;
@@ -364,9 +366,9 @@ Returns: ` Uint8Array `.
364
366
 
365
367
  Create a signing-key resolver that fetches did:web keys and decodes did:key or did:jwk keys.
366
368
 
367
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L85)
369
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L87)
368
370
 
369
- Import: `import {defaultKeyResolver} from '@t3foundry/tasra-sdk/oid4vp'`
371
+ Import: `import {defaultKeyResolver} from 'tasra-sdk/oid4vp'`
370
372
 
371
373
  ```ts
372
374
  declare function defaultKeyResolver(opts?: ResolveOpts): KeyResolver;
@@ -386,7 +388,7 @@ nonce a KB-JWT must carry (the reference vp-nonce derivation, domain v2).
386
388
 
387
389
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/binding.ts#L89)
388
390
 
389
- Import: `import {derivedNonce} from '@t3foundry/tasra-sdk/oid4vp'`
391
+ Import: `import {derivedNonce} from 'tasra-sdk/oid4vp'`
390
392
 
391
393
  ```ts
392
394
  declare function derivedNonce(reqHash: Uint8Array, random: Uint8Array, ctx: NonceContext): string;
@@ -406,7 +408,7 @@ Returns: ` string `.
406
408
 
407
409
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L118)
408
410
 
409
- Import: `import {didJwk} from '@t3foundry/tasra-sdk/oid4vp'`
411
+ Import: `import {didJwk} from 'tasra-sdk/oid4vp'`
410
412
 
411
413
  ```ts
412
414
  declare function didJwk(jwk: Jwk): string;
@@ -424,7 +426,7 @@ A P-256/ES256 `did:jwk` issuer from a private scalar. Other issuer algorithms ar
424
426
 
425
427
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/sd-jwt.ts#L217)
426
428
 
427
- Import: `import {didJwkIssuer} from '@t3foundry/tasra-sdk/oid4vp'`
429
+ Import: `import {didJwkIssuer} from 'tasra-sdk/oid4vp'`
428
430
 
429
431
  ```ts
430
432
  declare function didJwkIssuer(privateKey: Uint8Array, alg?: 'ES256'): SdJwtIssuer;
@@ -443,7 +445,7 @@ The HTTPS URL a `did:web` resolves from (W3C did:web method).
443
445
 
444
446
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/did-web.ts#L23)
445
447
 
446
- Import: `import {didWebUrl} from '@t3foundry/tasra-sdk/oid4vp'`
448
+ Import: `import {didWebUrl} from 'tasra-sdk/oid4vp'`
447
449
 
448
450
  ```ts
449
451
  declare function didWebUrl(did: string): string;
@@ -461,7 +463,7 @@ Compute the base64url SHA-256 digest of an encoded SD-JWT disclosure.
461
463
 
462
464
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/sd-jwt.ts#L48)
463
465
 
464
- Import: `import {disclosureDigest} from '@t3foundry/tasra-sdk/oid4vp'`
466
+ Import: `import {disclosureDigest} from 'tasra-sdk/oid4vp'`
465
467
 
466
468
  ```ts
467
469
  declare function disclosureDigest(encoded: string): string;
@@ -477,9 +479,9 @@ Returns: ` string `.
477
479
 
478
480
  `did:key` of an Ed25519 public key (multicodec 0xed01).
479
481
 
480
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L198)
482
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L216)
481
483
 
482
- Import: `import {ed25519DidKey} from '@t3foundry/tasra-sdk/oid4vp'`
484
+ Import: `import {ed25519DidKey} from 'tasra-sdk/oid4vp'`
483
485
 
484
486
  ```ts
485
487
  declare function ed25519DidKey(publicKey: Uint8Array): string;
@@ -495,9 +497,9 @@ Returns: ` string `.
495
497
 
496
498
  The 32-byte Ed25519 key inside a `did:key:z6Mk...`; throws for any other key type.
497
499
 
498
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L215)
500
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L233)
499
501
 
500
- Import: `import {ed25519FromDidKey} from '@t3foundry/tasra-sdk/oid4vp'`
502
+ Import: `import {ed25519FromDidKey} from 'tasra-sdk/oid4vp'`
501
503
 
502
504
  ```ts
503
505
  declare function ed25519FromDidKey(did: string): Uint8Array;
@@ -513,9 +515,9 @@ Returns: ` Uint8Array `.
513
515
 
514
516
  An Ed25519 holder key from a 32-byte seed - the shape `tasra-cli vc issue-sd-jwt` binds.
515
517
 
516
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L137)
518
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L151)
517
519
 
518
- Import: `import {ed25519HolderKey} from '@t3foundry/tasra-sdk/oid4vp'`
520
+ Import: `import {ed25519HolderKey} from 'tasra-sdk/oid4vp'`
519
521
 
520
522
  ```ts
521
523
  declare function ed25519HolderKey(seed: Uint8Array): HolderKey;
@@ -523,7 +525,7 @@ declare function ed25519HolderKey(seed: Uint8Array): HolderKey;
523
525
 
524
526
  | Parameter | Type | Description |
525
527
  |---|---|---|
526
- | ` seed ` | ` Uint8Array ` | - 32-byte Ed25519 secret seed. |
528
+ | ` seed ` | ` Uint8Array ` | - 32-byte Ed25519 secret seed. Copied: the holder's `privateKey` never shares memory with it, so the caller may wipe its bytes once this returns. |
527
529
 
528
530
  Returns: ` HolderKey `.
529
531
 
@@ -534,7 +536,7 @@ as `header..iv.ciphertext.tag`. A fresh sender key per call; `kid` echoed when t
534
536
 
535
537
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jwe.ts#L58)
536
538
 
537
- Import: `import {encryptJwe} from '@t3foundry/tasra-sdk/oid4vp'`
539
+ Import: `import {encryptJwe} from 'tasra-sdk/oid4vp'`
538
540
 
539
541
  ```ts
540
542
  declare function encryptJwe(plaintext: string, recipient: EcJwk, enc?: JweEnc, random?: (n: number) => Uint8Array): string;
@@ -553,20 +555,34 @@ Returns: ` string `.
553
555
 
554
556
  Fetch a JAR from `request_uri` (`Accept: application/oauth-authz-req+jwt`) and verify it.
555
557
 
556
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L149)
558
+ While a paid verifier exchange that this request started is still running, the verifier-agent
559
+ answers HTTP 503 with the exact ` REQUEST_OBJECT_IN_PROGRESS ` message and `Retry-After`.
560
+ When it is at its paid-exchange capacity it refuses before sending or billing anything with the
561
+ exact ` REQUEST_OBJECT_AT_CAPACITY ` message. Only these two answers are retried, in any mix
562
+ and under one shared budget, by repeating the identical GET (same URL and headers; nothing is
563
+ posted, presented or paid). The wait follows `Retry-After` (delta-seconds or HTTP-date; 2 s when
564
+ absent or malformed) clamped to `minDelayMs`..`maxDelayMs` (default 0.5..5 s), within
565
+ `maxAttempts` (default 64) and a wall-clock budget (default 120 s, which covers the agent's
566
+ longest detached exchange) that ends early at `notAfterMs`. A repeated GET still running at the
567
+ end of the budget is aborted. `signal` cancels the in-flight GET or the wait at once. When the
568
+ budget or attempts run out, the last 503 is thrown; the paid work may still complete on the agent.
569
+ Authorization refusals, any other 503 (including an uncertain paid outcome), other statuses, a
570
+ reply from a redirected URL and network errors are final. Every GET, including the first and
571
+ its response body, shares that deadline and cancellation signal. An expired budget sends
572
+ nothing. A 200 is verified exactly as before.
573
+
574
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L254)
557
575
 
558
- Import: `import {fetchRequestObject} from '@t3foundry/tasra-sdk/oid4vp'`
576
+ Import: `import {fetchRequestObject} from 'tasra-sdk/oid4vp'`
559
577
 
560
578
  ```ts
561
- declare function fetchRequestObject(requestUri: string, opts?: VerifyRequestObjectOpts & {
562
- fetchImpl?: typeof fetch;
563
- }): Promise<VerifiedRequestObject>;
579
+ declare function fetchRequestObject(requestUri: string, opts?: FetchRequestObjectOpts): Promise<VerifiedRequestObject>;
564
580
  ```
565
581
 
566
582
  | Parameter | Type | Description |
567
583
  |---|---|---|
568
584
  | ` requestUri ` | ` string ` | - URL from the OpenID4VP request_uri parameter. |
569
- | ` opts? ` | ` VerifyRequestObjectOpts & { fetchImpl?: typeof fetch; } ` | - Request signature verification settings and optional fetch implementation. |
585
+ | ` opts? ` | ` FetchRequestObjectOpts ` | - Request signature verification settings, fetch implementation, cancellation and retry limits. |
570
586
 
571
587
  Returns: ` Promise<VerifiedRequestObject> `.
572
588
 
@@ -576,7 +592,7 @@ Decode UTF-8 bytes into text using replacement characters for invalid sequences.
576
592
 
577
593
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L21)
578
594
 
579
- Import: `import {fromUtf8} from '@t3foundry/tasra-sdk/oid4vp'`
595
+ Import: `import {fromUtf8} from 'tasra-sdk/oid4vp'`
580
596
 
581
597
  ```ts
582
598
  declare function fromUtf8(b: Uint8Array): string;
@@ -594,7 +610,7 @@ The `cnf` a holder key binds to: `{kid: "<did:jwk>#0"}`, exactly as the Hovi wal
594
610
 
595
611
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/sd-jwt.ts#L193)
596
612
 
597
- Import: `import {holderCnf} from '@t3foundry/tasra-sdk/oid4vp'`
613
+ Import: `import {holderCnf} from 'tasra-sdk/oid4vp'`
598
614
 
599
615
  ```ts
600
616
  declare function holderCnf(holder: Pick<HolderKey, 'did'>): {
@@ -622,7 +638,7 @@ outside the P-256 profile exist: `tasra-cli vc issue-sd-jwt` binds an Ed25519 ho
622
638
 
623
639
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L100)
624
640
 
625
- Import: `import {holderSigner} from '@t3foundry/tasra-sdk/oid4vp'`
641
+ Import: `import {holderSigner} from 'tasra-sdk/oid4vp'`
626
642
 
627
643
  ```ts
628
644
  declare function holderSigner(holder: HolderKey): JwsSigner;
@@ -640,7 +656,7 @@ Mint a compact SD-JWT VC `issuer~d1~...~` with one disclosure per selectively di
640
656
 
641
657
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/sd-jwt.ts#L158)
642
658
 
643
- Import: `import {issueSdJwtVc} from '@t3foundry/tasra-sdk/oid4vp'`
659
+ Import: `import {issueSdJwtVc} from 'tasra-sdk/oid4vp'`
644
660
 
645
661
  ```ts
646
662
  declare function issueSdJwtVc(opts: IssueSdJwtVcOpts): string;
@@ -656,9 +672,9 @@ Returns: ` string `.
656
672
 
657
673
  The public JWK inside a `did:jwk` or a `did:key` (Ed25519 / P-256); a `#fragment` is ignored.
658
674
 
659
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L228)
675
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L246)
660
676
 
661
- Import: `import {jwkFromDid} from '@t3foundry/tasra-sdk/oid4vp'`
677
+ Import: `import {jwkFromDid} from 'tasra-sdk/oid4vp'`
662
678
 
663
679
  ```ts
664
680
  declare function jwkFromDid(did: string): Jwk;
@@ -675,9 +691,9 @@ Returns: ` Jwk `.
675
691
  The next polling delay: geometric growth (times1.5) capped at `max`, plus or minus20 % full jitter.
676
692
  Pure, so the schedule is testable without timers.
677
693
 
678
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L499)
694
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L589)
679
695
 
680
- Import: `import {nextPollDelay} from '@t3foundry/tasra-sdk/oid4vp'`
696
+ Import: `import {nextPollDelay} from 'tasra-sdk/oid4vp'`
681
697
 
682
698
  ```ts
683
699
  declare function nextPollDelay(previousMs: number, baseMs: number, maxMs: number, random?: () => number): number;
@@ -696,9 +712,9 @@ Returns: ` number `.
696
712
 
697
713
  Sign the operation and open a session; hand `qrPayload` to the wallet.
698
714
 
699
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L138)
715
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L165)
700
716
 
701
- Import: `import {openVerifierAgentSession} from '@t3foundry/tasra-sdk/oid4vp'`
717
+ Import: `import {openVerifierAgentSession} from 'tasra-sdk/oid4vp'`
702
718
 
703
719
  ```ts
704
720
  declare function openVerifierAgentSession(opts: OpenVerifierAgentSessionOpts): Promise<OpenedVerifierAgentSession>;
@@ -714,9 +730,9 @@ Returns: ` Promise<OpenedVerifierAgentSession> `.
714
730
 
715
731
  `did:key` of a P-256 public key (multicodec 0x1200 to varint `80 24`, compressed point) - Hovi's issuer shape.
716
732
 
717
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L206)
733
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L224)
718
734
 
719
- Import: `import {p256DidKey} from '@t3foundry/tasra-sdk/oid4vp'`
735
+ Import: `import {p256DidKey} from 'tasra-sdk/oid4vp'`
720
736
 
721
737
  ```ts
722
738
  declare function p256DidKey(publicKeyUncompressedOrCompressed: Uint8Array): string;
@@ -734,7 +750,7 @@ A P-256 issuer as `did:key` (Hovi Studio's issuer shape) from a private scalar.
734
750
 
735
751
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/sd-jwt.ts#L203)
736
752
 
737
- Import: `import {p256DidKeyIssuer} from '@t3foundry/tasra-sdk/oid4vp'`
753
+ Import: `import {p256DidKeyIssuer} from 'tasra-sdk/oid4vp'`
738
754
 
739
755
  ```ts
740
756
  declare function p256DidKeyIssuer(privateKey: Uint8Array, opts?: {
@@ -753,9 +769,9 @@ Returns: ` SdJwtIssuer `.
753
769
 
754
770
  Construct a holder identity from a 32-byte P-256 private scalar.
755
771
 
756
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L127)
772
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L137)
757
773
 
758
- Import: `import {p256HolderKey} from '@t3foundry/tasra-sdk/oid4vp'`
774
+ Import: `import {p256HolderKey} from 'tasra-sdk/oid4vp'`
759
775
 
760
776
  ```ts
761
777
  declare function p256HolderKey(privateKey: Uint8Array): HolderKey;
@@ -763,7 +779,7 @@ declare function p256HolderKey(privateKey: Uint8Array): HolderKey;
763
779
 
764
780
  | Parameter | Type | Description |
765
781
  |---|---|---|
766
- | ` privateKey ` | ` Uint8Array ` | - 32-byte P-256 private scalar. |
782
+ | ` privateKey ` | ` Uint8Array ` | - 32-byte P-256 private scalar. Copied: the holder's `privateKey` never shares memory with it, so the caller may wipe its bytes once this returns. |
767
783
 
768
784
  Returns: ` HolderKey `.
769
785
 
@@ -773,7 +789,7 @@ Derive a public P-256 JSON Web Key from a private scalar.
773
789
 
774
790
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L109)
775
791
 
776
- Import: `import {p256PublicJwk} from '@t3foundry/tasra-sdk/oid4vp'`
792
+ Import: `import {p256PublicJwk} from 'tasra-sdk/oid4vp'`
777
793
 
778
794
  ```ts
779
795
  declare function p256PublicJwk(privateKey: Uint8Array): EcJwk;
@@ -791,7 +807,7 @@ Parse an `openid-credential-offer://?credential_offer=...` or `...?credential_of
791
807
 
792
808
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/oid4vci.ts#L27)
793
809
 
794
- Import: `import {parseCredentialOfferUri} from '@t3foundry/tasra-sdk/oid4vp'`
810
+ Import: `import {parseCredentialOfferUri} from 'tasra-sdk/oid4vp'`
795
811
 
796
812
  ```ts
797
813
  declare function parseCredentialOfferUri(uri: string): {
@@ -817,9 +833,9 @@ Returns:
817
833
 
818
834
  `openid4vp://?client_id=...&request_uri=...` (a QR payload or deep link) to its two parameters.
819
835
 
820
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L69)
836
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L71)
821
837
 
822
- Import: `import {parseOpenid4vpUri} from '@t3foundry/tasra-sdk/oid4vp'`
838
+ Import: `import {parseOpenid4vpUri} from 'tasra-sdk/oid4vp'`
823
839
 
824
840
  ```ts
825
841
  declare function parseOpenid4vpUri(uri: string): {
@@ -847,7 +863,7 @@ Parse a compact SD-JWT and check each disclosed claim against the issuer payload
847
863
 
848
864
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/sd-jwt.ts#L64)
849
865
 
850
- Import: `import {parseSdJwt} from '@t3foundry/tasra-sdk/oid4vp'`
866
+ Import: `import {parseSdJwt} from 'tasra-sdk/oid4vp'`
851
867
 
852
868
  ```ts
853
869
  declare function parseSdJwt(compact: string): ParsedSdJwt;
@@ -866,9 +882,9 @@ Compute the `payload_digest` for a given action and message.
866
882
  For `sign` and `ibe-extract`, this is `sha256(message_bytes)` as 0x-hex.
867
883
  Other actions should supply the digest directly.
868
884
 
869
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L215)
885
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L249)
870
886
 
871
- Import: `import {payloadDigest} from '@t3foundry/tasra-sdk/oid4vp'`
887
+ Import: `import {payloadDigest} from 'tasra-sdk/oid4vp'`
872
888
 
873
889
  ```ts
874
890
  declare function payloadDigest(action: string, messageHex: string): string;
@@ -888,9 +904,9 @@ The per-action `payload_digest` the keeper recomputes at `enforce_request_bindin
888
904
  digest ([decryptPayloadDigest](#decryptpayloaddigest)), `dual-approve` = the digest the caller already
889
905
  holds. Pass exactly one of the inputs the action needs.
890
906
 
891
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/binding.ts#L119)
907
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/binding.ts#L144)
892
908
 
893
- Import: `import {payloadDigestFor} from '@t3foundry/tasra-sdk/oid4vp'`
909
+ Import: `import {payloadDigestFor} from 'tasra-sdk/oid4vp'`
894
910
 
895
911
  ```ts
896
912
  declare function payloadDigestFor(action: CommitteeAction, args: {
@@ -913,7 +929,7 @@ Decode (no verification) the issuer JWT's payload of a compact SD-JWT - for disp
913
929
 
914
930
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/sd-jwt.ts#L295)
915
931
 
916
- Import: `import {peekSdJwt} from '@t3foundry/tasra-sdk/oid4vp'`
932
+ Import: `import {peekSdJwt} from 'tasra-sdk/oid4vp'`
917
933
 
918
934
  ```ts
919
935
  declare function peekSdJwt(compact: string): {
@@ -946,7 +962,7 @@ Advisory: the drawn verifiers decide; a wrong local answer costs a wasted reques
946
962
 
947
963
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/wallet.ts#L50)
948
964
 
949
- Import: `import {planPresentation} from '@t3foundry/tasra-sdk/oid4vp'`
965
+ Import: `import {planPresentation} from 'tasra-sdk/oid4vp'`
950
966
 
951
967
  ```ts
952
968
  declare function planPresentation(ro: Pick<VerifiedRequestObject, 'claims'>, held: readonly HeldSdJwt[], nowSecs?: number): PresentationPlan;
@@ -962,14 +978,14 @@ Returns: ` PresentationPlan `.
962
978
 
963
979
  ### pollOid4vpSession
964
980
 
965
- Fetch and validate one authorization session status. Transport failures and HTTP 502, 503 or 504 produce an unavailable error; malformed or other failed replies produce a protocol error. The polling secret is sent in the Authorization header.
981
+ Fetch and validate one authorization session status. Transport failures, a request that exceeds its timeout and HTTP 502, 503 or 504 produce an unavailable error; malformed or other failed replies produce a protocol error; an aborted signal produces a cancelled error. The polling secret is sent in the Authorization header.
966
982
 
967
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L424)
983
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L483)
968
984
 
969
- Import: `import {pollOid4vpSession} from '@t3foundry/tasra-sdk/oid4vp'`
985
+ Import: `import {pollOid4vpSession} from 'tasra-sdk/oid4vp'`
970
986
 
971
987
  ```ts
972
- declare function pollOid4vpSession(verifierAgentUrl: string, sessionId: string, pollSecret: string): Promise<SessionStatusResult>;
988
+ declare function pollOid4vpSession(verifierAgentUrl: string, sessionId: string, pollSecret: string, opts?: PollSessionOpts): Promise<SessionStatusResult>;
973
989
  ```
974
990
 
975
991
  | Parameter | Type | Description |
@@ -977,6 +993,7 @@ declare function pollOid4vpSession(verifierAgentUrl: string, sessionId: string,
977
993
  | ` verifierAgentUrl ` | ` string ` | - Verifier-agent HTTP base URL. |
978
994
  | ` sessionId ` | ` string ` | - Opened session identifier. |
979
995
  | ` pollSecret ` | ` string ` | - Secret returned at session creation; do not expose it in logs. |
996
+ | ` opts? ` | ` PollSessionOpts ` | - Long-poll request, cancellation and per-request timeout. |
980
997
 
981
998
  Returns: ` Promise<SessionStatusResult> `.
982
999
 
@@ -984,9 +1001,9 @@ Returns: ` Promise<SessionStatusResult> `.
984
1001
 
985
1002
  The typed data a creator (or delegate) signs, plus the wire operation and the verifier-agent's `message_hex`.
986
1003
 
987
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L78)
1004
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L85)
988
1005
 
989
- Import: `import {presentationOperationTypedData} from '@t3foundry/tasra-sdk/oid4vp'`
1006
+ Import: `import {presentationOperationTypedData} from 'tasra-sdk/oid4vp'`
990
1007
 
991
1008
  ```ts
992
1009
  declare function presentationOperationTypedData(input: OperationInput): {
@@ -1018,7 +1035,7 @@ Build the presentation `issuer~selected...~kb-jwt`, the KB-JWT signed by the hol
1018
1035
 
1019
1036
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/sd-jwt.ts#L248)
1020
1037
 
1021
- Import: `import {presentSdJwt} from '@t3foundry/tasra-sdk/oid4vp'`
1038
+ Import: `import {presentSdJwt} from 'tasra-sdk/oid4vp'`
1022
1039
 
1023
1040
  ```ts
1024
1041
  declare function presentSdJwt(opts: PresentSdJwtOpts): string;
@@ -1035,9 +1052,9 @@ Returns: ` string `.
1035
1052
  The whole wallet flow for one QR / deep link: fetch + verify the JAR, plan, let the caller
1036
1053
  choose (consent screen), bind, encrypt, POST.
1037
1054
 
1038
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/wallet.ts#L171)
1055
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/wallet.ts#L169)
1039
1056
 
1040
- Import: `import {presentToRequestUri} from '@t3foundry/tasra-sdk/oid4vp'`
1057
+ Import: `import {presentToRequestUri} from 'tasra-sdk/oid4vp'`
1041
1058
 
1042
1059
  ```ts
1043
1060
  declare function presentToRequestUri(requestUriOrOpenid4vp: string, held: readonly HeldSdJwt[], holder: HolderKey, opts?: PresentOpts): Promise<{
@@ -1070,9 +1087,9 @@ Promise<{
1070
1087
 
1071
1088
  Generate a random P-256 holder key and its did:jwk identifier.
1072
1089
 
1073
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L143)
1090
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L160)
1074
1091
 
1075
- Import: `import {randomHolderKey} from '@t3foundry/tasra-sdk/oid4vp'`
1092
+ Import: `import {randomHolderKey} from 'tasra-sdk/oid4vp'`
1076
1093
 
1077
1094
  ```ts
1078
1095
  declare function randomHolderKey(): HolderKey;
@@ -1086,7 +1103,7 @@ Run the pre-authorized code flow end to end and return the issued credential.
1086
1103
 
1087
1104
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/oid4vci.ts#L92)
1088
1105
 
1089
- Import: `import {receiveCredential} from '@t3foundry/tasra-sdk/oid4vp'`
1106
+ Import: `import {receiveCredential} from 'tasra-sdk/oid4vp'`
1090
1107
 
1091
1108
  ```ts
1092
1109
  declare function receiveCredential(opts: ReceiveCredentialOpts): Promise<ReceivedCredential>;
@@ -1104,7 +1121,7 @@ The top-level claim names a credential query asks to see.
1104
1121
 
1105
1122
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/wallet.ts#L81)
1106
1123
 
1107
- Import: `import {requestedClaimNames} from '@t3foundry/tasra-sdk/oid4vp'`
1124
+ Import: `import {requestedClaimNames} from 'tasra-sdk/oid4vp'`
1108
1125
 
1109
1126
  ```ts
1110
1127
  declare function requestedClaimNames(query: Query, queryId: string): string[];
@@ -1125,17 +1142,17 @@ accountant audit and this SDK compute. The wallet's request body is deliberately
1125
1142
 
1126
1143
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/binding.ts#L51)
1127
1144
 
1128
- Import: `import {requestHash} from '@t3foundry/tasra-sdk/oid4vp'`
1145
+ Import: `import {requestHash} from 'tasra-sdk/oid4vp'`
1129
1146
 
1130
1147
  ```ts
1131
- declare function requestHash(chainId: number | bigint, slotId: Uint8Array, action: CommitteeAction, payloadDigest: Uint8Array): Uint8Array;
1148
+ declare function requestHash(chainId: number | bigint, slotId: Uint8Array, action: CommitteeAction | 'relay', payloadDigest: Uint8Array): Uint8Array;
1132
1149
  ```
1133
1150
 
1134
1151
  | Parameter | Type | Description |
1135
1152
  |---|---|---|
1136
1153
  | ` chainId ` | ` number \| bigint ` | - EVM chain identifier. |
1137
1154
  | ` slotId ` | ` Uint8Array ` | - 32-byte slot identifier. |
1138
- | ` action ` | ` CommitteeAction ` | - Operation name bound into the request. |
1155
+ | ` action ` | ` CommitteeAction \| 'relay' ` | - Operation name bound into the request. |
1139
1156
  | ` payloadDigest ` | ` Uint8Array ` | - 32-byte action-specific payload digest. |
1140
1157
 
1141
1158
  Returns: ` Uint8Array `.
@@ -1146,7 +1163,7 @@ Fetch and minimally validate a `did:web` document.
1146
1163
 
1147
1164
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/did-web.ts#L46)
1148
1165
 
1149
- Import: `import {resolveDidWeb} from '@t3foundry/tasra-sdk/oid4vp'`
1166
+ Import: `import {resolveDidWeb} from 'tasra-sdk/oid4vp'`
1150
1167
 
1151
1168
  ```ts
1152
1169
  declare function resolveDidWeb(did: string, opts?: ResolveOpts): Promise<DidDocument>;
@@ -1163,9 +1180,9 @@ Returns: ` Promise<DidDocument> `.
1163
1180
 
1164
1181
  The ephemeral P-256 key the wallet must encrypt its response to, when the verifier-agent served one.
1165
1182
 
1166
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L138)
1183
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L140)
1167
1184
 
1168
- Import: `import {responseEncryptionKey} from '@t3foundry/tasra-sdk/oid4vp'`
1185
+ Import: `import {responseEncryptionKey} from 'tasra-sdk/oid4vp'`
1169
1186
 
1170
1187
  ```ts
1171
1188
  declare function responseEncryptionKey(ro: Pick<VerifiedRequestObject, 'claims'>): EcJwk | undefined;
@@ -1183,7 +1200,7 @@ Returns: ` EcJwk | undefined `.
1183
1200
 
1184
1201
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/sd-jwt.ts#L114)
1185
1202
 
1186
- Import: `import {sdHash} from '@t3foundry/tasra-sdk/oid4vp'`
1203
+ Import: `import {sdHash} from 'tasra-sdk/oid4vp'`
1187
1204
 
1188
1205
  ```ts
1189
1206
  declare function sdHash(prefix: string): string;
@@ -1201,7 +1218,7 @@ The credential's claims as the verifier sees them: plain payload claims + disclo
1201
1218
 
1202
1219
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/sd-jwt.ts#L88)
1203
1220
 
1204
- Import: `import {sdJwtClaims} from '@t3foundry/tasra-sdk/oid4vp'`
1221
+ Import: `import {sdJwtClaims} from 'tasra-sdk/oid4vp'`
1205
1222
 
1206
1223
  ```ts
1207
1224
  declare function sdJwtClaims(parsed: ParsedSdJwt): Record<string, unknown>;
@@ -1219,7 +1236,7 @@ A ` CredentialView ` for the DCQL evaluator: format `dc+sd-jwt`, `types` = [`vct
1219
1236
 
1220
1237
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/sd-jwt.ts#L103)
1221
1238
 
1222
- Import: `import {sdJwtCredentialView} from '@t3foundry/tasra-sdk/oid4vp'`
1239
+ Import: `import {sdJwtCredentialView} from 'tasra-sdk/oid4vp'`
1223
1240
 
1224
1241
  ```ts
1225
1242
  declare function sdJwtCredentialView(parsed: ParsedSdJwt): CredentialView;
@@ -1235,9 +1252,9 @@ Returns: ` CredentialView `.
1235
1252
 
1236
1253
  Sign a JSON payload as compact JWS. Set the header algorithm from the supplied signer.
1237
1254
 
1238
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L262)
1255
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L280)
1239
1256
 
1240
- Import: `import {signCompactJws} from '@t3foundry/tasra-sdk/oid4vp'`
1257
+ Import: `import {signCompactJws} from 'tasra-sdk/oid4vp'`
1241
1258
 
1242
1259
  ```ts
1243
1260
  declare function signCompactJws(header: Record<string, unknown>, payload: Record<string, unknown>, signer: JwsSigner): string;
@@ -1257,7 +1274,7 @@ POST the built response to `response_uri`; returns the verifier-agent's `redirec
1257
1274
 
1258
1275
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/wallet.ts#L141)
1259
1276
 
1260
- Import: `import {submitResponse} from '@t3foundry/tasra-sdk/oid4vp'`
1277
+ Import: `import {submitResponse} from 'tasra-sdk/oid4vp'`
1261
1278
 
1262
1279
  ```ts
1263
1280
  declare function submitResponse(ro: Pick<VerifiedRequestObject, 'claims'>, built: Pick<BuiltResponse, 'form'>, fetchImpl?: typeof fetch): Promise<{
@@ -1285,7 +1302,7 @@ Encode text as UTF-8 bytes.
1285
1302
 
1286
1303
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L15)
1287
1304
 
1288
- Import: `import {utf8} from '@t3foundry/tasra-sdk/oid4vp'`
1305
+ Import: `import {utf8} from 'tasra-sdk/oid4vp'`
1289
1306
 
1290
1307
  ```ts
1291
1308
  declare function utf8(s: string): Uint8Array;
@@ -1303,7 +1320,7 @@ The JWK behind `kid` (a full DID URL or a `#fragment`) in `doc`.
1303
1320
 
1304
1321
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/did-web.ts#L63)
1305
1322
 
1306
- Import: `import {verificationKey} from '@t3foundry/tasra-sdk/oid4vp'`
1323
+ Import: `import {verificationKey} from 'tasra-sdk/oid4vp'`
1307
1324
 
1308
1325
  ```ts
1309
1326
  declare function verificationKey(doc: DidDocument, kid: string): Jwk;
@@ -1320,17 +1337,17 @@ Returns: ` Jwk `.
1320
1337
 
1321
1338
  Validate request binding and proof encoding after either URL or registered-session polling.
1322
1339
 
1323
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L208)
1340
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L240)
1324
1341
 
1325
- Import: `import {verifierAgentResult} from '@t3foundry/tasra-sdk/oid4vp'`
1342
+ Import: `import {verifierAgentResult} from 'tasra-sdk/oid4vp'`
1326
1343
 
1327
1344
  ```ts
1328
- declare function verifierAgentResult(session: Pick<OpenedVerifierAgentSession, 'sessionId' | 'requestHash'>, r: SessionStatusResult): VerifierAgentResult;
1345
+ declare function verifierAgentResult(session: Pick<OpenedVerifierAgentSession, 'sessionId' | 'requestHash' | 'paymentHash'>, r: SessionStatusResult): VerifierAgentResult;
1329
1346
  ```
1330
1347
 
1331
1348
  | Parameter | Type | Description |
1332
1349
  |---|---|---|
1333
- | ` session ` | ` Pick<OpenedVerifierAgentSession, 'sessionId' \| 'requestHash'> ` | - Session identifier and expected request-binding hash. |
1350
+ | ` session ` | ` Pick<OpenedVerifierAgentSession, 'sessionId' \| 'requestHash' \| 'paymentHash'> ` | - Session identifier and expected request-binding hash. |
1334
1351
  | ` r ` | ` SessionStatusResult ` | - Completed session status to validate and decode. |
1335
1352
 
1336
1353
  Returns: ` VerifierAgentResult `.
@@ -1339,9 +1356,9 @@ Returns: ` VerifierAgentResult `.
1339
1356
 
1340
1357
  The verifier-agent's `verifier_proofs` DTO (`{verifier_index, operator, pubkey, proof}`) to the SDK shape.
1341
1358
 
1342
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L171)
1359
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L203)
1343
1360
 
1344
- Import: `import {verifierAgentVerifierProofs} from '@t3foundry/tasra-sdk/oid4vp'`
1361
+ Import: `import {verifierAgentVerifierProofs} from 'tasra-sdk/oid4vp'`
1345
1362
 
1346
1363
  ```ts
1347
1364
  declare function verifierAgentVerifierProofs(raw: unknown): VerifierProof[] | undefined;
@@ -1357,9 +1374,9 @@ Returns: ` VerifierProof[] | undefined `.
1357
1374
 
1358
1375
  Verify a compact JWS under `jwk` and return its decoded payload; throws on any failure.
1359
1376
 
1360
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L277)
1377
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L295)
1361
1378
 
1362
- Import: `import {verifyCompactJws} from '@t3foundry/tasra-sdk/oid4vp'`
1379
+ Import: `import {verifyCompactJws} from 'tasra-sdk/oid4vp'`
1363
1380
 
1364
1381
  ```ts
1365
1382
  declare function verifyCompactJws<T = Record<string, unknown>>(jws: string, jwk: Jwk): {
@@ -1388,7 +1405,7 @@ Verify the holder signature, presentation hash, nonce and audience of a key-bind
1388
1405
 
1389
1406
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/sd-jwt.ts#L272)
1390
1407
 
1391
- Import: `import {verifyKbJwt} from '@t3foundry/tasra-sdk/oid4vp'`
1408
+ Import: `import {verifyKbJwt} from 'tasra-sdk/oid4vp'`
1392
1409
 
1393
1410
  ```ts
1394
1411
  declare function verifyKbJwt(presentation: string, expected: {
@@ -1420,9 +1437,9 @@ Verify the request signature, JOSE type and agreement between client_id and the
1420
1437
  issuer DID. Check expiration only when exp is a number; absence or a nonnumeric
1421
1438
  value is not rejected by this helper. Require a nonce, response URI and DCQL query.
1422
1439
 
1423
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L113)
1440
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L115)
1424
1441
 
1425
- Import: `import {verifyRequestObject} from '@t3foundry/tasra-sdk/oid4vp'`
1442
+ Import: `import {verifyRequestObject} from 'tasra-sdk/oid4vp'`
1426
1443
 
1427
1444
  ```ts
1428
1445
  declare function verifyRequestObject(jwt: string, opts?: VerifyRequestObjectOpts): Promise<VerifiedRequestObject>;
@@ -1435,18 +1452,72 @@ declare function verifyRequestObject(jwt: string, opts?: VerifyRequestObjectOpts
1435
1452
 
1436
1453
  Returns: ` Promise<VerifiedRequestObject> `.
1437
1454
 
1455
+ ### vpNonceBound
1456
+
1457
+ The nonce a presentation must carry: [vpSessionNonce](#vpsessionnonce) when it opens a session (a session key
1458
+ thumbprint is named), else [derivedNonce](#derivednonce). The reference `vp_nonce_bound`.
1459
+
1460
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/binding.ts#L123)
1461
+
1462
+ Import: `import {vpNonceBound} from 'tasra-sdk/oid4vp'`
1463
+
1464
+ ```ts
1465
+ declare function vpNonceBound(reqHash: Uint8Array, random: Uint8Array, ctx: NonceContext, sessionKeyThumbprint?: Uint8Array): string;
1466
+ ```
1467
+
1468
+ | Parameter | Type | Description |
1469
+ |---|---|---|
1470
+ | ` reqHash ` | ` Uint8Array ` | - 32-byte request-binding hash. |
1471
+ | ` random ` | ` Uint8Array ` | - The session's 32-byte random. |
1472
+ | ` ctx ` | ` NonceContext ` | - Nonce context. |
1473
+ | ` sessionKeyThumbprint? ` | ` Uint8Array ` | - The fresh session key's thumbprint, only when a session grant is requested. |
1474
+
1475
+ Returns: ` string `.
1476
+
1477
+ ### vpSessionNonce
1478
+
1479
+ The nonce of a presentation that also OPENS a session grant:
1480
+ `base64url(keccak256("keykeeper/vp-session-nonce/v1" || request_hash || random || epoch u64 BE ||
1481
+ snapshot_root || registry_size u32 BE || committee u32 BE || quorum u32 BE || operation_exp i64 BE
1482
+ || session_key_thumbprint))`, unpadded. The holder key that signs the KB-JWT (or the DPoP proof)
1483
+ thereby authorizes exactly the session key with that RFC 7638 thumbprint. Mirrors the reference
1484
+ `vp_session_nonce`; vectors: `test/vp-session-nonce-vectors.json`.
1485
+
1486
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/binding.ts#L109)
1487
+
1488
+ Import: `import {vpSessionNonce} from 'tasra-sdk/oid4vp'`
1489
+
1490
+ ```ts
1491
+ declare function vpSessionNonce(reqHash: Uint8Array, random: Uint8Array, ctx: NonceContext, sessionKeyThumbprint: Uint8Array): string;
1492
+ ```
1493
+
1494
+ | Parameter | Type | Description |
1495
+ |---|---|---|
1496
+ | ` reqHash ` | ` Uint8Array ` | - 32-byte request-binding hash. |
1497
+ | ` random ` | ` Uint8Array ` | - The session's 32-byte random. |
1498
+ | ` ctx ` | ` NonceContext ` | - Beacon epoch, verifier snapshot, committee policy and operation expiry to bind. |
1499
+ | ` sessionKeyThumbprint ` | ` Uint8Array ` | - 32-byte RFC 7638 SHA-256 thumbprint of the fresh session key. |
1500
+
1501
+ Returns: ` string `.
1502
+
1438
1503
  ### waitForSession
1439
1504
 
1440
1505
  Poll until the session reaches a terminal state (done or failed) - bounded by
1441
1506
  `timeoutMs`, with a growing jittered interval so many clients never poll in lock-step.
1507
+ Every request asks the verifier-agent to hold its reply until the session moves
1508
+ (`?wait=1`). A reply whose phase moved forward is followed by the next request at once;
1509
+ an unchanged reply is followed by the backoff sleep, unless it took 15 s or more (the
1510
+ server's hold ended), when the next request also goes at once. A server without long-poll
1511
+ support answers at once and is polled on the backoff schedule. Any phase change resets the
1512
+ backoff to `intervalMs`.
1442
1513
  A transient `unavailable` answer (a 503, a dropped connection) is retried within the
1443
1514
  deadline; a `protocol` answer stops at once; the deadline is a `timeout` error; the
1444
1515
  caller's `signal` is a `cancelled` error. A terminal `failed` is RETURNED (the caller
1445
1516
  decides how to explain it) - see `awaitVerifierAgentResult` for the version that throws `refused`.
1446
1517
 
1447
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L521)
1518
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L620)
1448
1519
 
1449
- Import: `import {waitForSession} from '@t3foundry/tasra-sdk/oid4vp'`
1520
+ Import: `import {waitForSession} from 'tasra-sdk/oid4vp'`
1450
1521
 
1451
1522
  ```ts
1452
1523
  declare function waitForSession(verifierAgentUrl: string, sessionId: string, pollSecret: string, intervalMs?: number, timeoutMs?: number, opts?: WaitOpts): Promise<SessionStatusResult>;
@@ -1468,7 +1539,7 @@ Returns: ` Promise<SessionStatusResult> `.
1468
1539
  Options, data structures and return types.
1469
1540
 
1470
1541
  <details>
1471
- <summary>Browse 43 types</summary>
1542
+ <summary>Browse 45 types</summary>
1472
1543
 
1473
1544
  - [BuildResponseOpts](#buildresponseopts)
1474
1545
  - [BuiltResponse](#builtresponse)
@@ -1479,6 +1550,7 @@ Options, data structures and return types.
1479
1550
  - [DidDocument](#diddocument)
1480
1551
  - [Disclosure](#disclosure)
1481
1552
  - [EcJwk](#ecjwk)
1553
+ - [FetchRequestObjectOpts](#fetchrequestobjectopts)
1482
1554
  - [HeldSdJwt](#heldsdjwt)
1483
1555
  - [HolderKey](#holderkey)
1484
1556
  - [IssuerMetadata](#issuermetadata)
@@ -1503,6 +1575,7 @@ Options, data structures and return types.
1503
1575
  - [ReceiveCredentialOpts](#receivecredentialopts)
1504
1576
  - [ReceivedCredential](#receivedcredential)
1505
1577
  - [RequestObjectClaims](#requestobjectclaims)
1578
+ - [RequestObjectRetryPolicy](#requestobjectretrypolicy)
1506
1579
  - [ResolveOpts](#resolveopts)
1507
1580
  - [SdJwtIssuer](#sdjwtissuer)
1508
1581
  - [SessionPhase](#sessionphase)
@@ -1578,10 +1651,13 @@ export type CommitteeAction = 'sign' | 'decrypt' | 'ibe-extract' | 'dual-approve
1578
1651
 
1579
1652
  Signed operation, optional delegation and payload submitted to the verifier agent.
1580
1653
 
1581
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L56)
1654
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L63)
1582
1655
 
1583
1656
  ```ts
1584
1657
  export interface CreateSessionParams {
1658
+ decryption?: DecryptionBindingWire;
1659
+ payment?: PaymentIntentWire;
1660
+ random?: string;
1585
1661
  operation: PresentationOperation;
1586
1662
  operationSig: string;
1587
1663
  delegation?: PresentationDelegation;
@@ -1591,6 +1667,9 @@ export interface CreateSessionParams {
1591
1667
 
1592
1668
  Fields:
1593
1669
 
1670
+ - **` decryption `**: Public decryption binding committed by the signed operation; never include private recipient material.
1671
+ - **` payment `**: Creator-signed intent for an already reserved TASRA payment. Requires random.
1672
+ - **` random `**: Fixed 32-byte hex presentation random committed before reservation.
1594
1673
  - **` operation `**: Signed operation details presented for authorization.
1595
1674
  - **` operationSig `**: 0x-hex 65-byte EIP-712 signature over the operation
1596
1675
  - **` delegation `**: Optional EIP-712 delegation from the slot creator
@@ -1600,7 +1679,7 @@ Fields:
1600
1679
 
1601
1680
  Wallet presentation link and polling credentials for an opened authorization session.
1602
1681
 
1603
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L68)
1682
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L81)
1604
1683
 
1605
1684
  ```ts
1606
1685
  export interface CreateSessionResult {
@@ -1730,6 +1809,29 @@ Fields:
1730
1809
  - **` alg `**: JOSE signing algorithm identifier.
1731
1810
  - **` use `**: Optional JOSE key-use hint.
1732
1811
 
1812
+ ### FetchRequestObjectOpts
1813
+
1814
+ Request verification, transport, cancellation and retry options for [fetchRequestObject](#fetchrequestobject).
1815
+
1816
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L186)
1817
+
1818
+ ```ts
1819
+ export interface FetchRequestObjectOpts extends VerifyRequestObjectOpts {
1820
+ fetchImpl?: typeof fetch;
1821
+ signal?: AbortSignal;
1822
+ inProgressRetry?: RequestObjectRetryPolicy;
1823
+ }
1824
+ ```
1825
+
1826
+ Fields:
1827
+
1828
+ - **` fetchImpl `**: HTTP transport override; defaults to the global fetch implementation.
1829
+ - **` signal `**: Cancels an in-flight GET and any wait between GETs; the promise rejects with the signal's reason.
1830
+ - **` inProgressRetry `**: Limits for the in-progress and at-capacity retry; see [RequestObjectRetryPolicy](#requestobjectretrypolicy).
1831
+ - **` resolveKey `**: Resolver supplying a trusted public key for the request issuer and key identifier.
1832
+ - **` nowSecs `**: Current time override in Unix seconds.
1833
+ - **` leewaySecs `**: Seconds of clock skew tolerated on `exp`.
1834
+
1733
1835
  ### HeldSdJwt
1734
1836
 
1735
1837
  A credential the wallet holds.
@@ -1865,7 +1967,7 @@ Fields:
1865
1967
 
1866
1968
  Supported compact JWS algorithms: ES256 for P-256 or EdDSA for Ed25519.
1867
1969
 
1868
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L246)
1970
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L264)
1869
1971
 
1870
1972
  ```ts
1871
1973
  export type JwsAlg = 'ES256' | 'EdDSA';
@@ -1875,7 +1977,7 @@ export type JwsAlg = 'ES256' | 'EdDSA';
1875
1977
 
1876
1978
  A signer for a compact JWS: a raw private key of the named curve.
1877
1979
 
1878
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L248)
1980
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/jose.ts#L266)
1879
1981
 
1880
1982
  ```ts
1881
1983
  export interface JwsSigner {
@@ -1893,7 +1995,7 @@ Fields:
1893
1995
 
1894
1996
  Resolve the signing key a JAR's `kid` names: `did:web` documents online, `did:key`/`did:jwk` offline.
1895
1997
 
1896
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L78)
1998
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L80)
1897
1999
 
1898
2000
  ```ts
1899
2001
  export type KeyResolver = (did: string, kid: string | undefined) => Promise<Jwk>;
@@ -1956,10 +2058,11 @@ Fields:
1956
2058
 
1957
2059
  Opened wallet session with its signed operation and expected request-binding hash.
1958
2060
 
1959
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L124)
2061
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L149)
1960
2062
 
1961
2063
  ```ts
1962
2064
  export interface OpenedVerifierAgentSession extends CreateSessionResult {
2065
+ paymentHash?: string;
1963
2066
  operation: PresentationOperation;
1964
2067
  requestHash: Uint8Array;
1965
2068
  verifierAgentUrl: string;
@@ -1968,6 +2071,7 @@ export interface OpenedVerifierAgentSession extends CreateSessionResult {
1968
2071
 
1969
2072
  Fields:
1970
2073
 
2074
+ - **` paymentHash `**: Expected payment commitment; a result may not change or discard it.
1971
2075
  - **` operation `**: Signed operation details presented for authorization.
1972
2076
  - **` requestHash `**: The binding hash the token will carry - compare with the token's `request_hash`.
1973
2077
  - **` verifierAgentUrl `**: Verifier-agent HTTP base URL for the selected network.
@@ -1980,10 +2084,12 @@ Fields:
1980
2084
 
1981
2085
  Operation, signing wallet and verifier-agent endpoint for opening a presentation session.
1982
2086
 
1983
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L114)
2087
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L135)
1984
2088
 
1985
2089
  ```ts
1986
2090
  export interface OpenVerifierAgentSessionOpts extends OperationInput {
2091
+ payment?: PaymentIntentWire;
2092
+ random?: string;
1987
2093
  verifierAgentUrl: string;
1988
2094
  signer: TypedDataSigner;
1989
2095
  delegation?: PresentationDelegation;
@@ -1992,9 +2098,12 @@ export interface OpenVerifierAgentSessionOpts extends OperationInput {
1992
2098
 
1993
2099
  Fields:
1994
2100
 
2101
+ - **` payment `**: Already reserved creator payment, fixed before opening the session.
2102
+ - **` random `**: Random committed in payment.session_commitment. Required with payment.
1995
2103
  - **` verifierAgentUrl `**: Verifier-agent HTTP base URL for the selected network.
1996
2104
  - **` signer `**: The slot creator's key, or a delegate's (with `delegation`).
1997
2105
  - **` delegation `**: Optional creator-signed delegation authorizing the signing wallet.
2106
+ - **` decryption `**: Public recipient and epoch metadata bound into the operation digest before creator authorization.
1998
2107
  - **` chainId `**: EVM chain identifier.
1999
2108
  - **` keyRegistry `**: The KeyRegistry address - the EIP-712 `verifyingContract`.
2000
2109
  - **` slotId `**: 32-byte slot identifier.
@@ -2010,10 +2119,11 @@ Fields:
2010
2119
 
2011
2120
  Slot operation, payload context and authorization lifetime used to construct EIP-712 typed data.
2012
2121
 
2013
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L50)
2122
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L55)
2014
2123
 
2015
2124
  ```ts
2016
2125
  export interface OperationInput {
2126
+ decryption?: DecryptionBindingWire;
2017
2127
  chainId: number;
2018
2128
  keyRegistry: `0x${string}`;
2019
2129
  slotId: `0x${string}` | Uint8Array;
@@ -2029,6 +2139,7 @@ export interface OperationInput {
2029
2139
 
2030
2140
  Fields:
2031
2141
 
2142
+ - **` decryption `**: Public recipient and epoch metadata bound into the operation digest before creator authorization.
2032
2143
  - **` chainId `**: EVM chain identifier.
2033
2144
  - **` keyRegistry `**: The KeyRegistry address - the EIP-712 `verifyingContract`.
2034
2145
  - **` slotId `**: 32-byte slot identifier.
@@ -2092,7 +2203,7 @@ Fields:
2092
2203
 
2093
2204
  EIP-712 delegation from the slot creator to a delegate address.
2094
2205
 
2095
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L38)
2206
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L45)
2096
2207
 
2097
2208
  ```ts
2098
2209
  export interface PresentationDelegation {
@@ -2120,7 +2231,7 @@ Fields:
2120
2231
 
2121
2232
  Operation details signed by a slot creator or delegate for credential authorization.
2122
2233
 
2123
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L22)
2234
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L29)
2124
2235
 
2125
2236
  ```ts
2126
2237
  export interface PresentationOperation {
@@ -2171,8 +2282,7 @@ Request verification, credential selection and disclosure options for a wallet p
2171
2282
  [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/wallet.ts#L153)
2172
2283
 
2173
2284
  ```ts
2174
- export interface PresentOpts extends VerifyRequestObjectOpts {
2175
- fetchImpl?: typeof fetch;
2285
+ export interface PresentOpts extends FetchRequestObjectOpts {
2176
2286
  choose?: (plan: PresentationPlan) => PresentationCandidate | undefined | Promise<PresentationCandidate | undefined>;
2177
2287
  disclose?: 'all' | readonly string[];
2178
2288
  }
@@ -2180,9 +2290,11 @@ export interface PresentOpts extends VerifyRequestObjectOpts {
2180
2290
 
2181
2291
  Fields:
2182
2292
 
2183
- - **` fetchImpl `**: HTTP transport override; defaults to the global fetch implementation.
2184
2293
  - **` choose `**: Pick among the candidates (default: the evaluator's choice). Return `undefined` to abort.
2185
2294
  - **` disclose `**: Claim names to disclose, or all; defaults to the selected query's requested claims.
2295
+ - **` fetchImpl `**: HTTP transport override; defaults to the global fetch implementation.
2296
+ - **` signal `**: Cancels an in-flight GET and any wait between GETs; the promise rejects with the signal's reason.
2297
+ - **` inProgressRetry `**: Limits for the in-progress and at-capacity retry; see [RequestObjectRetryPolicy](#requestobjectretrypolicy).
2186
2298
  - **` resolveKey `**: Resolver supplying a trusted public key for the request issuer and key identifier.
2187
2299
  - **` nowSecs `**: Current time override in Unix seconds.
2188
2300
  - **` leewaySecs `**: Seconds of clock skew tolerated on `exp`.
@@ -2269,7 +2381,7 @@ Fields:
2269
2381
 
2270
2382
  OpenID4VP request claims carrying the credential query and wallet response context.
2271
2383
 
2272
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L17)
2384
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L19)
2273
2385
 
2274
2386
  ```ts
2275
2387
  export interface RequestObjectClaims {
@@ -2311,6 +2423,36 @@ Fields:
2311
2423
  - **` client_metadata `**: Verifier metadata, including optional response encryption keys.
2312
2424
  - **` transaction_data `**: Encoded operation context displayed or bound by the wallet.
2313
2425
 
2426
+ ### RequestObjectRetryPolicy
2427
+
2428
+ Limits for repeating the identical `request_uri` GET while the verifier-agent reports work in progress
2429
+ or that it is at capacity.
2430
+
2431
+ The default budget is 120 s because the agent's detached paid exchange may legitimately run up to
2432
+ about 118 s (its deadline is the earlier of the session authority's expiry and dispatch + 120 s,
2433
+ less 2 s). The budget ends at the earliest of `maxTotalMs`, `notAfterMs` and the caller's
2434
+ `AbortSignal`; pass the session's (authority's) expiry as `notAfterMs` when you know it.
2435
+
2436
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L172)
2437
+
2438
+ ```ts
2439
+ export interface RequestObjectRetryPolicy {
2440
+ maxAttempts?: number;
2441
+ maxTotalMs?: number;
2442
+ notAfterMs?: number;
2443
+ minDelayMs?: number;
2444
+ maxDelayMs?: number;
2445
+ }
2446
+ ```
2447
+
2448
+ Fields:
2449
+
2450
+ - **` maxAttempts `**: Total GETs including the first, 1..256 (default 64; 120 s at the agent's 2 s hint is 60). 1 disables the retry.
2451
+ - **` maxTotalMs `**: Wall-clock budget from the first GET in ms, 0..300000 (default 120000). Every GET and body read is bounded; zero sends nothing.
2452
+ - **` notAfterMs `**: Absolute end of the budget in Unix ms, such as the session's expiry; the earlier of this and `maxTotalMs` applies.
2453
+ - **` minDelayMs `**: Shortest wait in ms, 100..5000 (default 500). A smaller `Retry-After` is raised to it.
2454
+ - **` maxDelayMs `**: Longest wait in ms, `minDelayMs`..10000 (default 5000). A larger `Retry-After` is lowered to it.
2455
+
2314
2456
  ### ResolveOpts
2315
2457
 
2316
2458
  Fetch implementation and optional loopback HTTP permission for did:web resolution.
@@ -2353,7 +2495,7 @@ Fields:
2353
2495
 
2354
2496
  Displayable authorization progress. A done phase means the committee answered; it does not mean the requested signing or decryption operation executed.
2355
2497
 
2356
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L94)
2498
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L107)
2357
2499
 
2358
2500
  ```ts
2359
2501
  export type SessionPhase = 'awaiting_wallet' | 'verifying' | 'done' | 'failed';
@@ -2363,35 +2505,43 @@ export type SessionPhase = 'awaiting_wallet' | 'verifying' | 'done' | 'failed';
2363
2505
 
2364
2506
  Authorization session progress and optional committee result or failure detail.
2365
2507
 
2366
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L97)
2508
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L110)
2367
2509
 
2368
2510
  ```ts
2369
2511
  export interface SessionStatusResult {
2512
+ evidenceCt?: string;
2370
2513
  status: 'pending' | 'done' | 'failed';
2371
2514
  phase: SessionPhase;
2372
2515
  compoundToken?: Record<string, unknown>;
2373
2516
  verifierProofs?: unknown;
2374
2517
  bindingPreimage?: Record<string, unknown>;
2375
2518
  error?: string;
2376
- evidenceCt?: string;
2519
+ sessionGrant?: {
2520
+ grant?: {
2521
+ session_grant: SessionGrantWire;
2522
+ refresh_seq: 0;
2523
+ };
2524
+ error?: string;
2525
+ };
2377
2526
  }
2378
2527
  ```
2379
2528
 
2380
2529
  Fields:
2381
2530
 
2531
+ - **` evidenceCt `**: Sealed presentation (base64url `bincode(Ciphertext)`) the token's `evidence_hash` names, retained unchanged and posted to the keeper beside the token as `evidence_ct`.
2382
2532
  - **` status `**: Pending, completed or failed authorization state.
2383
2533
  - **` phase `**: Displayable progress within the authorization lifecycle.
2384
2534
  - **` compoundToken `**: Committee token returned after successful authorization.
2385
2535
  - **` verifierProofs `**: Verifier membership proofs for the selected snapshot.
2386
2536
  - **` bindingPreimage `**: Operation context used to derive the request-binding hash.
2387
2537
  - **` error `**: Optional failure detail reported by the verifier agent.
2388
- - **` evidenceCt `**: the sealed presentation (base64url `bincode(Ciphertext)`) the token's `evidence_hash` names — post it to the keeper beside the token as `evidence_ct`.
2538
+ - **` sessionGrant `**: Session mode, once `done`: the grant the paid session client verified against the anchored draw (`refresh_seq` 0), or why none came with the token. Absent otherwise.
2389
2539
 
2390
2540
  ### TypedDataSigner
2391
2541
 
2392
2542
  Anything that signs EIP-712 typed data for an address - a viem `LocalAccount` or `WalletClient`-bound account fits.
2393
2543
 
2394
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L37)
2544
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L42)
2395
2545
 
2396
2546
  ```ts
2397
2547
  export interface TypedDataSigner {
@@ -2426,7 +2576,7 @@ Fields:
2426
2576
 
2427
2577
  Request JWT, decoded claims and signing identity after request-object validation.
2428
2578
 
2429
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L51)
2579
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L53)
2430
2580
 
2431
2581
  ```ts
2432
2582
  export interface VerifiedRequestObject {
@@ -2454,30 +2604,30 @@ Fields:
2454
2604
 
2455
2605
  Compound committee token with optional request preimage and verifier membership proofs.
2456
2606
 
2457
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L147)
2607
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L179)
2458
2608
 
2459
2609
  ```ts
2460
2610
  export interface VerifierAgentResult {
2611
+ evidenceCt?: string;
2461
2612
  token: CompoundTokenWire;
2462
2613
  bindingPreimage?: Record<string, unknown>;
2463
2614
  verifierProofs?: VerifierProof[];
2464
- evidenceCt?: string;
2465
2615
  }
2466
2616
  ```
2467
2617
 
2468
2618
  Fields:
2469
2619
 
2620
+ - **` evidenceCt `**: Sealed presentation ciphertext the token's `evidence_hash` binds, when the committee sealed one: retain it and forward it unchanged to every keeper call (`evidenceCt`); a keeper with `require_committee_evidence` refuses the token without it.
2470
2621
  - **` token `**: Compound committee authorization token.
2471
2622
  - **` bindingPreimage `**: Operation context used to derive the request-binding hash.
2472
2623
  - **` verifierProofs `**: The drawn verifiers' snapshot membership proofs the verifier-agent built at session creation - hand them to every keeper call (`verifierProofs`): a keeper in snapshot-required mode (`api.require_verifier_proofs`) refuses a committee request without them.
2473
- - **` evidenceCt `**: the sealed presentation the token's `evidence_hash` binds, when the committee sealed one — hand it to every keeper call (`evidenceCt`); a keeper with `require_committee_evidence` refuses the token without it.
2474
2624
 
2475
2625
  ### VerifierAgentSessionErrorKind
2476
2626
 
2477
2627
  Why a session did not yield a token - the class the UI explains, with a NON-SECRET
2478
2628
  correlation reference (the session id; the poll secret is never part of an error).
2479
2629
 
2480
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L117)
2630
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L135)
2481
2631
 
2482
2632
  ```ts
2483
2633
  export type VerifierAgentSessionErrorKind = 'timeout' | 'refused' | 'unavailable' | 'protocol' | 'cancelled';
@@ -2487,7 +2637,7 @@ export type VerifierAgentSessionErrorKind = 'timeout' | 'refused' | 'unavailable
2487
2637
 
2488
2638
  Signing-key resolver, evaluation time and expiration tolerance for request validation.
2489
2639
 
2490
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L96)
2640
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L98)
2491
2641
 
2492
2642
  ```ts
2493
2643
  export interface VerifyRequestObjectOpts {
@@ -2507,7 +2657,7 @@ Fields:
2507
2657
 
2508
2658
  Polling backoff, cancellation, progress callback and randomness options.
2509
2659
 
2510
- [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L479)
2660
+ [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/verifier-agent/index.ts#L569)
2511
2661
 
2512
2662
  ```ts
2513
2663
  export interface WaitOpts {
@@ -2531,17 +2681,20 @@ Shared values and contract definitions.
2531
2681
 
2532
2682
  | Export | Description | Definition |
2533
2683
  |---|---|---|
2534
- | `CLIENT_ID_PREFIX_DID` | OpenID4VP client identifier prefix for a DID-based verifier. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L14) |
2684
+ | `CLIENT_ID_PREFIX_DID` | OpenID4VP client identifier prefix for a DID-based verifier. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L16) |
2535
2685
  | `COMMITTEE_ACTIONS` | Supported operation names accepted by request-binding validation. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/binding.ts#L19) |
2536
2686
  | `CREDENTIAL_OFFER_SCHEME` | URI scheme for a wallet credential offer. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/oid4vci.ts#L6) |
2537
2687
  | `DECRYPT_DIGEST_DOMAIN` | Domain separator for the ciphertext digest used in decryption authorization. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/binding.ts#L14) |
2538
2688
  | `KB_JWT_TYP` | JOSE type identifier for the holder key-binding JWT. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/sd-jwt.ts#L11) |
2539
2689
  | `PRE_AUTHORIZED_GRANT` | OAuth grant identifier for credential issuance using a pre-authorized code. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/oid4vci.ts#L8) |
2540
- | `PRESENTATION_EIP712_NAME` | EIP-712 domain name for creator-signed presentation operations. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L20) |
2541
- | `PRESENTATION_EIP712_VERSION` | EIP-712 domain version for creator-signed presentation operations. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L22) |
2542
- | `PRESENTATION_OPERATION_TYPES` | The EIP-712 types mirrored from the reference presentation-auth types - do not reorder. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L25) |
2690
+ | `PRESENTATION_EIP712_NAME` | EIP-712 domain name for creator-signed presentation operations. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L25) |
2691
+ | `PRESENTATION_EIP712_VERSION` | EIP-712 domain version for creator-signed presentation operations. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L27) |
2692
+ | `PRESENTATION_OPERATION_TYPES` | The EIP-712 types mirrored from the reference presentation-auth types - do not reorder. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/verifier-agent.ts#L30) |
2543
2693
  | `PROOF_TYP` | JOSE type identifier for an OpenID4VCI proof of key possession. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/oid4vci.ts#L10) |
2544
2694
  | `REQUEST_BINDING_DOMAIN` | Domain separator for binding chain, slot, action and payload digest. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/binding.ts#L10) |
2545
- | `REQUEST_OBJECT_TYP` | JOSE type identifier for a signed authorization request object. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L12) |
2695
+ | `REQUEST_OBJECT_AT_CAPACITY` | The `error` message of the verifier-agent's HTTP 503 meaning "this agent is at its paid-exchange capacity": the request was refused before anything was dispatched, sent or billed, and the approval stands, so repeating the same request is safe. It must equal the agent's text byte for byte. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L158) |
2696
+ | `REQUEST_OBJECT_IN_PROGRESS` | The `error` message of the verifier-agent's HTTP 503 meaning "the paid exchange this request started is still running; repeating this same request joins it and never sends or pays again". It must equal the agent's text byte for byte. Any other 503 (for example an uncertain paid outcome awaiting reconciliation) is final. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L151) |
2697
+ | `REQUEST_OBJECT_TYP` | JOSE type identifier for a signed authorization request object. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/request-object.ts#L14) |
2546
2698
  | `SD_JWT_TYP` | JOSE type identifier for a selectively disclosable verifiable credential. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/sd-jwt.ts#L9) |
2547
2699
  | `VP_NONCE_DOMAIN` | Domain separator for deriving a wallet presentation nonce from the operation context. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/binding.ts#L12) |
2700
+ | `VP_SESSION_NONCE_DOMAIN` | Domain of the session-mode nonce ([vpSessionNonce](#vpsessionnonce)): a new name, so it never equals a plain nonce. | [Source](https://github.com/t3foundry/tasra-sdk/blob/develop/src/oid4vp/binding.ts#L94) |