@zendfi/sdk 1.1.3 → 1.1.4

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 (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -287,17 +287,17 @@ const token = await zendfi.mintSubAccountDelegationToken(sub.id, {
287
287
  });
288
288
  ```
289
289
 
290
- Sensitive sub-account operations such as `drainSubAccount` and `withdrawFromSubAccount` require `passkey_signature` payloads from your WebAuthn flow.
290
+ Sensitive sub-account operations such as `drainSubAccount` require `passkey_signature` payloads from your WebAuthn flow.
291
291
 
292
- For `withdrawSubAccountToBank`, the recommended headless path is:
292
+ For `withdrawFromSubAccount` and `withdrawSubAccountToBank`, the recommended headless path is:
293
293
 
294
294
  1. Mint policy token via `createSubAccountAutomationToken` (or use delegation token).
295
295
  2. Mint signing authorization via `createSubAccountSigningGrant` (one interactive passkey ceremony).
296
- 3. Execute `withdrawSubAccountToBank` using `automation_token`/`delegation_token` + `signing_grant`.
296
+ 3. Execute `withdrawFromSubAccount` or `withdrawSubAccountToBank` using `delegation_token` (or `automation_token` for bank) + `signing_grant`.
297
297
 
298
298
  `withdrawSubAccountToBank` executes PAJ offramp with server-side proxy-email OTP automation (same pattern as split bank withdrawals), so your integration does not need to collect OTP manually.
299
299
 
300
- `passkey_signature` on `withdrawSubAccountToBank` is now optional and should be treated as interactive fallback.
300
+ `passkey_signature` on `withdrawFromSubAccount` and `withdrawSubAccountToBank` is now optional and should be treated as interactive fallback.
301
301
 
302
302
  Sub-account flows emit webhook lifecycle and transfer events:
303
303
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendfi/sdk",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Zero-config TypeScript SDK for ZendFi. Global payments powered by stablecoins!",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",