@zendfi/sdk 1.1.0 → 1.1.1

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 +8 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -257,6 +257,9 @@ zendfi.mintSubAccountDelegationToken(...)
257
257
  zendfi.freezeSubAccount(...)
258
258
  zendfi.drainSubAccount(...)
259
259
  zendfi.withdrawFromSubAccount(...)
260
+ zendfi.withdrawSubAccountToBank(...)
261
+ zendfi.createSubAccountAutomationToken(...)
262
+ zendfi.revokeSubAccountAutomationToken(...)
260
263
  zendfi.closeSubAccount(...)
261
264
  ```
262
265
 
@@ -281,7 +284,11 @@ const token = await zendfi.mintSubAccountDelegationToken(sub.id, {
281
284
  });
282
285
  ```
283
286
 
284
- Sensitive sub-account operations such as `drainSubAccount` and `withdrawFromSubAccount` require `passkey_signature` payloads from your WebAuthn flow.
287
+ Sensitive sub-account operations such as `drainSubAccount`, `withdrawFromSubAccount`, and `withdrawSubAccountToBank` require `passkey_signature` payloads from your WebAuthn flow.
288
+
289
+ `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.
290
+
291
+ For headless automation, mint bounded automation credentials with `createSubAccountAutomationToken`, then pass `automation_token` to `withdrawSubAccountToBank`.
285
292
 
286
293
  Sub-account flows emit webhook lifecycle and transfer events:
287
294
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendfi/sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
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",