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