@zendfi/sdk 0.6.0 → 0.7.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.
- package/README.md +111 -8
- package/dist/express.d.mts +1 -1
- package/dist/express.d.ts +1 -1
- package/dist/index.d.mts +208 -3
- package/dist/index.d.ts +208 -3
- package/dist/index.js +679 -6
- package/dist/index.mjs +678 -6
- package/dist/nextjs.d.mts +1 -1
- package/dist/nextjs.d.ts +1 -1
- package/dist/{webhook-handler-DGBeCWT-.d.mts → webhook-handler-D5INiR-l.d.mts} +1 -1
- package/dist/{webhook-handler-DGBeCWT-.d.ts → webhook-handler-D5INiR-l.d.ts} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -26,11 +26,11 @@ console.log(payment.payment_url); // Send customer here
|
|
|
26
26
|
|
|
27
27
|
| Feature | Stripe | PayPal | **ZendFi** |
|
|
28
28
|
|---------|--------|--------|------------|
|
|
29
|
-
| **Fees** | 2.9% + $0.30 | 3.5% + $0.49 | **0.6% flat**
|
|
30
|
-
| **Settlement** | 7 days | 3-5 days | **Instant**
|
|
31
|
-
| **Crypto Native** | Via 3rd party | Via 3rd party | **Built-in**
|
|
32
|
-
| **AI Agent Ready** |
|
|
33
|
-
| **Setup Time** | 30 min | 30 min | **5 min**
|
|
29
|
+
| **Fees** | 2.9% + $0.30 | 3.5% + $0.49 | **0.6% flat** |
|
|
30
|
+
| **Settlement** | 7 days | 3-5 days | **Instant** |
|
|
31
|
+
| **Crypto Native** | Via 3rd party | Via 3rd party | **Built-in** |
|
|
32
|
+
| **AI Agent Ready** | ACP | NO | **Native** |
|
|
33
|
+
| **Setup Time** | 30 min | 30 min | **5 min** |
|
|
34
34
|
|
|
35
35
|
**Save 81% on fees.** Get paid instantly. Scale to AI when ready.
|
|
36
36
|
|
|
@@ -39,6 +39,7 @@ console.log(payment.payment_url); // Send customer here
|
|
|
39
39
|
## Features
|
|
40
40
|
|
|
41
41
|
### **Core Payments** (Start Here)
|
|
42
|
+
- **Embedded Checkout** — Drop-in checkout component for your website/app
|
|
42
43
|
- **Simple Payments** — QR codes, payment links, instant settlements
|
|
43
44
|
- **Payment Links** — Reusable checkout pages for social/email
|
|
44
45
|
- **Webhooks** — Real-time notifications with auto-verification
|
|
@@ -125,6 +126,66 @@ console.log(payment.payment_url);
|
|
|
125
126
|
|
|
126
127
|
---
|
|
127
128
|
|
|
129
|
+
## Embedded Checkout
|
|
130
|
+
|
|
131
|
+
Skip redirects entirely—embed the checkout directly into your website or app. Perfect for seamless user experiences.
|
|
132
|
+
|
|
133
|
+
### Quick Example
|
|
134
|
+
|
|
135
|
+
```typescript
|
|
136
|
+
import { ZendFiEmbeddedCheckout } from '@zendfi/sdk';
|
|
137
|
+
|
|
138
|
+
const checkout = new ZendFiEmbeddedCheckout({
|
|
139
|
+
linkCode: 'your-payment-link-code',
|
|
140
|
+
containerId: 'checkout-container',
|
|
141
|
+
mode: 'test',
|
|
142
|
+
|
|
143
|
+
onSuccess: (payment) => {
|
|
144
|
+
console.log('Payment successful!', payment.transactionSignature);
|
|
145
|
+
// Redirect to success page or show confirmation
|
|
146
|
+
},
|
|
147
|
+
|
|
148
|
+
onError: (error) => {
|
|
149
|
+
console.error('Payment failed:', error.message);
|
|
150
|
+
},
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
// Mount the checkout
|
|
154
|
+
await checkout.mount();
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### HTML Setup
|
|
158
|
+
|
|
159
|
+
```html
|
|
160
|
+
<div id="checkout-container"></div>
|
|
161
|
+
<script type="module">
|
|
162
|
+
import { ZendFiEmbeddedCheckout } from '@zendfi/sdk';
|
|
163
|
+
// ... (setup code above)
|
|
164
|
+
</script>
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### Features
|
|
168
|
+
|
|
169
|
+
- **Drop-in Integration** — Works with React, Vue, Next.js, or vanilla JS
|
|
170
|
+
- **QR Code Generation** — Automatic mobile wallet support
|
|
171
|
+
- **Wallet Connect** — Phantom, Solflare, Backpack support
|
|
172
|
+
- **Real-time Updates** — Live payment confirmation polling
|
|
173
|
+
- **Gasless Transactions** — Optional backend-signed payments
|
|
174
|
+
- **Customizable Theme** — Match your brand colors & styles
|
|
175
|
+
- **TypeScript First** — Full type safety and autocomplete
|
|
176
|
+
|
|
177
|
+
### Complete Documentation
|
|
178
|
+
|
|
179
|
+
For comprehensive guides, React examples, theming, and advanced usage:
|
|
180
|
+
|
|
181
|
+
- **Quick Start:** [`EMBEDDED_CHECKOUT_QUICKSTART.md`](./EMBEDDED_CHECKOUT_QUICKSTART.md)
|
|
182
|
+
- **Full Guide:** [`EMBEDDED_CHECKOUT.md`](./EMBEDDED_CHECKOUT.md)
|
|
183
|
+
- **Implementation Details:** [`EMBEDDED_CHECKOUT_IMPLEMENTATION.md`](./EMBEDDED_CHECKOUT_IMPLEMENTATION.md)
|
|
184
|
+
- **React Example:** [`examples/embedded-checkout-react.tsx`](./examples/embedded-checkout-react.tsx)
|
|
185
|
+
- **Vanilla JS Example:** [`examples/embedded-checkout-vanilla.html`](./examples/embedded-checkout-vanilla.html)
|
|
186
|
+
|
|
187
|
+
---
|
|
188
|
+
|
|
128
189
|
## API Key Modes
|
|
129
190
|
|
|
130
191
|
ZendFi uses **smart API keys** that automatically route to the correct network:
|
|
@@ -172,7 +233,7 @@ This covers:
|
|
|
172
233
|
|
|
173
234
|
---
|
|
174
235
|
|
|
175
|
-
##
|
|
236
|
+
## AI-Ready Features (Optional Advanced)
|
|
176
237
|
|
|
177
238
|
Building AI agents? ZendFi has native support for autonomous payments with cryptographic security and spending limits.
|
|
178
239
|
|
|
@@ -231,7 +292,10 @@ const payment = await zendfi.agent.pay({
|
|
|
231
292
|
### Namespaced APIs
|
|
232
293
|
|
|
233
294
|
```typescript
|
|
234
|
-
import { zendfi } from '@zendfi/sdk';
|
|
295
|
+
import { zendfi, ZendFiEmbeddedCheckout } from '@zendfi/sdk';
|
|
296
|
+
|
|
297
|
+
// Embedded Checkout (New!)
|
|
298
|
+
const checkout = new ZendFiEmbeddedCheckout({...});
|
|
235
299
|
|
|
236
300
|
// Traditional Payments (Most Common)
|
|
237
301
|
zendfi.createPayment(...)
|
|
@@ -814,7 +878,7 @@ await zendfi.cancelInstallmentPlan(plan.id);
|
|
|
814
878
|
|
|
815
879
|
---
|
|
816
880
|
|
|
817
|
-
###
|
|
881
|
+
### Invoices
|
|
818
882
|
|
|
819
883
|
Professional invoices with crypto payment options.
|
|
820
884
|
|
|
@@ -1202,6 +1266,45 @@ console.log('Status:', updated.status); // "Confirmed"
|
|
|
1202
1266
|
|
|
1203
1267
|
## Examples
|
|
1204
1268
|
|
|
1269
|
+
### Embedded Checkout Integration
|
|
1270
|
+
|
|
1271
|
+
```typescript
|
|
1272
|
+
import { ZendFiEmbeddedCheckout } from '@zendfi/sdk';
|
|
1273
|
+
|
|
1274
|
+
// React Component
|
|
1275
|
+
function CheckoutPage({ linkCode }) {
|
|
1276
|
+
const containerRef = useRef(null);
|
|
1277
|
+
|
|
1278
|
+
useEffect(() => {
|
|
1279
|
+
const checkout = new ZendFiEmbeddedCheckout({
|
|
1280
|
+
linkCode,
|
|
1281
|
+
containerId: 'checkout-container',
|
|
1282
|
+
mode: 'test',
|
|
1283
|
+
|
|
1284
|
+
onSuccess: (payment) => {
|
|
1285
|
+
// Payment successful - redirect or show confirmation
|
|
1286
|
+
router.push(`/success?payment=${payment.paymentId}`);
|
|
1287
|
+
},
|
|
1288
|
+
|
|
1289
|
+
onError: (error) => {
|
|
1290
|
+
// Handle errors
|
|
1291
|
+
setError(error.message);
|
|
1292
|
+
},
|
|
1293
|
+
|
|
1294
|
+
theme: {
|
|
1295
|
+
primaryColor: '#8b5cf6',
|
|
1296
|
+
borderRadius: '16px',
|
|
1297
|
+
},
|
|
1298
|
+
});
|
|
1299
|
+
|
|
1300
|
+
checkout.mount();
|
|
1301
|
+
return () => checkout.unmount();
|
|
1302
|
+
}, [linkCode]);
|
|
1303
|
+
|
|
1304
|
+
return <div id="checkout-container" ref={containerRef} />;
|
|
1305
|
+
}
|
|
1306
|
+
```
|
|
1307
|
+
|
|
1205
1308
|
### E-commerce Checkout
|
|
1206
1309
|
|
|
1207
1310
|
```typescript
|
package/dist/express.d.mts
CHANGED
package/dist/express.d.ts
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CreateAgentApiKeyRequest, A as AgentApiKey, b as CreateAgentSessionRequest, c as AgentSession, d as AgentPaymentRequest, e as AgentPaymentResponse, f as AgentAnalytics, g as CreatePaymentIntentRequest, P as PaymentIntent, h as ConfirmPaymentIntentRequest, i as PaymentIntentEvent, j as PPPFactor, k as PricingSuggestionRequest, l as PricingSuggestion, E as EnableAutonomyRequest, m as EnableAutonomyResponse, n as AutonomyStatus, S as SmartPaymentRequest, o as SmartPaymentResponse, p as CreateSessionKeyRequest, q as CreateSessionKeyResponse, r as CreateDeviceBoundSessionKeyRequest$1, s as CreateDeviceBoundSessionKeyResponse$1, t as SubmitSignedTransactionRequest, u as SubmitTransactionResponse, v as SessionKeyStatus, w as SessionKeyListResponse, T as TopUpSessionKeyRequest, x as TopUpSessionKeyResponse, Z as ZendFiConfig, y as CreatePaymentRequest, z as Payment, L as ListPaymentsRequest, B as PaginatedResponse, D as CreateSubscriptionPlanRequest, F as SubscriptionPlan, G as CreateSubscriptionRequest, H as Subscription, I as CreatePaymentLinkRequest, J as PaymentLink, K as CreateInstallmentPlanRequest, M as InstallmentPlan, N as CreateEscrowRequest, O as Escrow, Q as ApproveEscrowRequest, R as RefundEscrowRequest, U as DisputeEscrowRequest, V as CreateInvoiceRequest, X as Invoice, Y as VerifyWebhookRequest, _ as WebhookPayload } from './webhook-handler-
|
|
2
|
-
export {
|
|
1
|
+
import { C as CreateAgentApiKeyRequest, A as AgentApiKey, b as CreateAgentSessionRequest, c as AgentSession, d as AgentPaymentRequest, e as AgentPaymentResponse, f as AgentAnalytics, g as CreatePaymentIntentRequest, P as PaymentIntent, h as ConfirmPaymentIntentRequest, i as PaymentIntentEvent, j as PPPFactor, k as PricingSuggestionRequest, l as PricingSuggestion, E as EnableAutonomyRequest, m as EnableAutonomyResponse, n as AutonomyStatus, S as SmartPaymentRequest, o as SmartPaymentResponse, p as CreateSessionKeyRequest, q as CreateSessionKeyResponse, r as CreateDeviceBoundSessionKeyRequest$1, s as CreateDeviceBoundSessionKeyResponse$1, t as SubmitSignedTransactionRequest, u as SubmitTransactionResponse, v as SessionKeyStatus, w as SessionKeyListResponse, T as TopUpSessionKeyRequest, x as TopUpSessionKeyResponse, Z as ZendFiConfig, y as CreatePaymentRequest, z as Payment, L as ListPaymentsRequest, B as PaginatedResponse, D as CreateSubscriptionPlanRequest, F as SubscriptionPlan, G as CreateSubscriptionRequest, H as Subscription, I as CreatePaymentLinkRequest, J as PaymentLink, K as CreateInstallmentPlanRequest, M as InstallmentPlan, N as CreateEscrowRequest, O as Escrow, Q as ApproveEscrowRequest, R as RefundEscrowRequest, U as DisputeEscrowRequest, V as CreateInvoiceRequest, X as Invoice, Y as VerifyWebhookRequest, _ as WebhookPayload, $ as ApiKeyMode } from './webhook-handler-D5INiR-l.mjs';
|
|
2
|
+
export { a6 as AgentKeyId, aD as ApiKeyScope, aJ as AutonomousDelegate, a3 as Brand, aG as CaptureMethod, aA as CreateInstallmentPlanResponse, ap as Currency, ao as Environment, aa as EscrowId, au as EscrowStatus, ab as InstallmentPlanId, at as InstallmentPlanStatus, az as InstallmentScheduleItem, ad as IntentId, a8 as InvoiceId, aC as InvoiceLineItem, av as InvoiceStatus, aO as LinkedSessionInfo, a7 as MerchantId, aI as PPPConfig, a4 as PaymentId, aF as PaymentIntentStatus, ac as PaymentLinkCode, ar as PaymentStatus, aq as PaymentToken, aB as ReleaseCondition, aK as RevokeAutonomyRequest, aP as SecurityStatus, a5 as SessionId, aM as SessionKeyInstructions, aN as SessionKeySecurityInfo, aQ as SessionKeyStats, aE as SessionLimits, aL as SmartPaymentStatus, ay as SplitRecipient, aw as SplitStatus, a9 as SubscriptionId, as as SubscriptionStatus, aH as UserProfile, ax as WebhookEvent, a2 as WebhookEventHandler, W as WebhookHandlerConfig, a as WebhookHandlers, a1 as WebhookResult, ag as asAgentKeyId, ak as asEscrowId, al as asInstallmentPlanId, an as asIntentId, ai as asInvoiceId, ah as asMerchantId, ae as asPaymentId, am as asPaymentLinkCode, af as asSessionId, aj as asSubscriptionId, a0 as processWebhook } from './webhook-handler-D5INiR-l.mjs';
|
|
3
3
|
import { Transaction, Keypair } from '@solana/web3.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1753,6 +1753,211 @@ declare function verifyExpressWebhook(request: any, secret?: string): Promise<We
|
|
|
1753
1753
|
*/
|
|
1754
1754
|
declare function verifyWebhookSignature(payload: string, signature: string, secret: string): boolean;
|
|
1755
1755
|
|
|
1756
|
+
/**
|
|
1757
|
+
* ZendFi Embedded Checkout
|
|
1758
|
+
*
|
|
1759
|
+
* Embed the ZendFi checkout directly into your website/app
|
|
1760
|
+
* without redirecting to checkout.zendfi.tech
|
|
1761
|
+
*
|
|
1762
|
+
* @example
|
|
1763
|
+
* ```typescript
|
|
1764
|
+
* import { ZendFiEmbeddedCheckout } from '@zendfi/sdk';
|
|
1765
|
+
*
|
|
1766
|
+
* const checkout = new ZendFiEmbeddedCheckout({
|
|
1767
|
+
* linkCode: 'abc123xyz',
|
|
1768
|
+
* containerId: 'zendfi-checkout',
|
|
1769
|
+
* mode: 'live',
|
|
1770
|
+
* onSuccess: (payment) => {
|
|
1771
|
+
* console.log('Payment successful!', payment);
|
|
1772
|
+
* },
|
|
1773
|
+
* onError: (error) => {
|
|
1774
|
+
* console.error('Payment failed:', error);
|
|
1775
|
+
* }
|
|
1776
|
+
* });
|
|
1777
|
+
*
|
|
1778
|
+
* checkout.mount();
|
|
1779
|
+
* ```
|
|
1780
|
+
*/
|
|
1781
|
+
|
|
1782
|
+
interface EmbeddedCheckoutConfig {
|
|
1783
|
+
/** Payment link code or payment ID */
|
|
1784
|
+
linkCode?: string;
|
|
1785
|
+
paymentId?: string;
|
|
1786
|
+
/** Container element ID where checkout will be mounted */
|
|
1787
|
+
containerId: string;
|
|
1788
|
+
/** API mode - 'test' for devnet, 'live' for mainnet */
|
|
1789
|
+
mode?: ApiKeyMode;
|
|
1790
|
+
/** API base URL (defaults to production) */
|
|
1791
|
+
apiUrl?: string;
|
|
1792
|
+
/** Callback when payment is successful */
|
|
1793
|
+
onSuccess?: (payment: PaymentSuccessData) => void;
|
|
1794
|
+
/** Callback when payment fails */
|
|
1795
|
+
onError?: (error: CheckoutError) => void;
|
|
1796
|
+
/** Callback when checkout is loaded */
|
|
1797
|
+
onLoad?: () => void;
|
|
1798
|
+
/** Custom theme overrides */
|
|
1799
|
+
theme?: CheckoutTheme;
|
|
1800
|
+
/** Enable custom amount (Pay What You Want) */
|
|
1801
|
+
allowCustomAmount?: boolean;
|
|
1802
|
+
/** Show/hide specific payment methods */
|
|
1803
|
+
paymentMethods?: {
|
|
1804
|
+
walletConnect?: boolean;
|
|
1805
|
+
qrCode?: boolean;
|
|
1806
|
+
solanaWallet?: boolean;
|
|
1807
|
+
};
|
|
1808
|
+
}
|
|
1809
|
+
interface CheckoutTheme {
|
|
1810
|
+
primaryColor?: string;
|
|
1811
|
+
backgroundColor?: string;
|
|
1812
|
+
borderRadius?: string;
|
|
1813
|
+
fontFamily?: string;
|
|
1814
|
+
textColor?: string;
|
|
1815
|
+
buttonStyle?: 'solid' | 'outlined' | 'minimal';
|
|
1816
|
+
}
|
|
1817
|
+
interface PaymentSuccessData {
|
|
1818
|
+
paymentId: string;
|
|
1819
|
+
transactionSignature: string;
|
|
1820
|
+
amount: number;
|
|
1821
|
+
token: string;
|
|
1822
|
+
merchantName: string;
|
|
1823
|
+
}
|
|
1824
|
+
interface CheckoutError {
|
|
1825
|
+
code: string;
|
|
1826
|
+
message: string;
|
|
1827
|
+
details?: any;
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
* ZendFi Embedded Checkout Component
|
|
1831
|
+
*
|
|
1832
|
+
* Provides a fully-functional checkout experience that can be
|
|
1833
|
+
* embedded directly into any web application.
|
|
1834
|
+
*/
|
|
1835
|
+
declare class ZendFiEmbeddedCheckout {
|
|
1836
|
+
private config;
|
|
1837
|
+
private container;
|
|
1838
|
+
private checkoutData;
|
|
1839
|
+
private pollInterval;
|
|
1840
|
+
private mounted;
|
|
1841
|
+
constructor(config: EmbeddedCheckoutConfig);
|
|
1842
|
+
private getDefaultApiUrl;
|
|
1843
|
+
/**
|
|
1844
|
+
* Mount the checkout to the DOM
|
|
1845
|
+
*/
|
|
1846
|
+
mount(): Promise<void>;
|
|
1847
|
+
/**
|
|
1848
|
+
* Unmount and cleanup
|
|
1849
|
+
*/
|
|
1850
|
+
unmount(): void;
|
|
1851
|
+
/**
|
|
1852
|
+
* Fetch checkout data from API
|
|
1853
|
+
*/
|
|
1854
|
+
private fetchCheckoutData;
|
|
1855
|
+
/**
|
|
1856
|
+
* Poll for payment confirmation
|
|
1857
|
+
*/
|
|
1858
|
+
private startPaymentPolling;
|
|
1859
|
+
/**
|
|
1860
|
+
* Handle successful payment
|
|
1861
|
+
*/
|
|
1862
|
+
private handlePaymentSuccess;
|
|
1863
|
+
/**
|
|
1864
|
+
* Handle payment failure
|
|
1865
|
+
*/
|
|
1866
|
+
private handlePaymentFailure;
|
|
1867
|
+
/**
|
|
1868
|
+
* Handle payment expiration
|
|
1869
|
+
*/
|
|
1870
|
+
private handlePaymentExpired;
|
|
1871
|
+
/**
|
|
1872
|
+
* Render loading state
|
|
1873
|
+
*/
|
|
1874
|
+
private renderLoading;
|
|
1875
|
+
/**
|
|
1876
|
+
* Render the main checkout UI
|
|
1877
|
+
*/
|
|
1878
|
+
private render;
|
|
1879
|
+
/**
|
|
1880
|
+
* Render header section
|
|
1881
|
+
*/
|
|
1882
|
+
private renderHeader;
|
|
1883
|
+
/**
|
|
1884
|
+
* Render payment information
|
|
1885
|
+
*/
|
|
1886
|
+
private renderPaymentInfo;
|
|
1887
|
+
/**
|
|
1888
|
+
* Render custom amount input (Pay What You Want)
|
|
1889
|
+
*/
|
|
1890
|
+
private renderCustomAmountInput;
|
|
1891
|
+
/**
|
|
1892
|
+
* Render payment methods
|
|
1893
|
+
*/
|
|
1894
|
+
private renderPaymentMethods;
|
|
1895
|
+
/**
|
|
1896
|
+
* Render QR code payment method
|
|
1897
|
+
*/
|
|
1898
|
+
private renderQRCodeMethod;
|
|
1899
|
+
/**
|
|
1900
|
+
* Render browser wallet method
|
|
1901
|
+
*/
|
|
1902
|
+
private renderWalletMethod;
|
|
1903
|
+
/**
|
|
1904
|
+
* Render WalletConnect method
|
|
1905
|
+
*/
|
|
1906
|
+
private renderWalletConnectMethod;
|
|
1907
|
+
/**
|
|
1908
|
+
* Render footer
|
|
1909
|
+
*/
|
|
1910
|
+
private renderFooter;
|
|
1911
|
+
/**
|
|
1912
|
+
* Render success state
|
|
1913
|
+
*/
|
|
1914
|
+
private renderSuccess;
|
|
1915
|
+
/**
|
|
1916
|
+
* Render error state
|
|
1917
|
+
*/
|
|
1918
|
+
private renderError;
|
|
1919
|
+
/**
|
|
1920
|
+
* Attach event listeners to interactive elements
|
|
1921
|
+
*/
|
|
1922
|
+
private attachEventListeners;
|
|
1923
|
+
/**
|
|
1924
|
+
* Handle wallet connection and payment
|
|
1925
|
+
*/
|
|
1926
|
+
private handleWalletConnect;
|
|
1927
|
+
/**
|
|
1928
|
+
* Handle mobile wallet connection via Solana Pay deep link
|
|
1929
|
+
*/
|
|
1930
|
+
private handleWalletConnectScan;
|
|
1931
|
+
/**
|
|
1932
|
+
* Generate QR code on canvas using QRious library
|
|
1933
|
+
*/
|
|
1934
|
+
private generateQRCode;
|
|
1935
|
+
/**
|
|
1936
|
+
* Inject custom styles
|
|
1937
|
+
*/
|
|
1938
|
+
private injectStyles;
|
|
1939
|
+
/**
|
|
1940
|
+
* Load external dependencies (QR code library, Solana web3.js)
|
|
1941
|
+
*/
|
|
1942
|
+
private loadDependencies;
|
|
1943
|
+
/**
|
|
1944
|
+
* Load external script
|
|
1945
|
+
*/
|
|
1946
|
+
private loadScript;
|
|
1947
|
+
/**
|
|
1948
|
+
* Get computed theme with defaults
|
|
1949
|
+
*/
|
|
1950
|
+
private getComputedTheme;
|
|
1951
|
+
/**
|
|
1952
|
+
* Style helpers
|
|
1953
|
+
*/
|
|
1954
|
+
private getCheckoutContainerStyles;
|
|
1955
|
+
private getLoadingStyles;
|
|
1956
|
+
private getSpinnerStyles;
|
|
1957
|
+
private getSuccessStyles;
|
|
1958
|
+
private getErrorStyles;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1756
1961
|
/**
|
|
1757
1962
|
* ZendFi SDK Error Classes
|
|
1758
1963
|
*
|
|
@@ -3419,4 +3624,4 @@ declare class PerformanceMonitor {
|
|
|
3419
3624
|
clear(): void;
|
|
3420
3625
|
}
|
|
3421
3626
|
|
|
3422
|
-
export { AgentAPI, AgentAnalytics, AgentApiKey, AgentPaymentRequest, AgentPaymentResponse, AgentSession, AnthropicAdapter, ApiError, ApproveEscrowRequest, AuthenticationError, AutonomyAPI, AutonomyStatus, type CachedKeypair, ConfigLoader, ConfirmPaymentIntentRequest, type ConnectedWallet, CreateAgentApiKeyRequest, CreateAgentSessionRequest, type CreateAndFundConfig, type CreateDeviceBoundSessionKeyRequest, type CreateDeviceBoundSessionKeyResponse, CreateEscrowRequest, CreateInstallmentPlanRequest, CreateInvoiceRequest, CreatePaymentIntentRequest, CreatePaymentLinkRequest, CreatePaymentRequest, CreateSessionKeyRequest, CreateSessionKeyResponse, CreateSubscriptionPlanRequest, CreateSubscriptionRequest, type CustomStorageAdapter, DevTools, DeviceBoundSessionKey, type DeviceBoundSessionKeyOptions, DeviceFingerprintGenerator, DisputeEscrowRequest, ERROR_CODES, EnableAutonomyRequest, EnableAutonomyResponse, type EncryptedSessionKey, type ErrorInterceptor, ErrorRecovery, Escrow, GeminiAdapter, InstallmentPlan, InterceptorManager, type Interceptors, Invoice, type LifecycleConfig, ListPaymentsRequest, LitCryptoSigner, type LitCryptoSignerConfig, type LitNetwork, type MockWallet, NetworkError, OpenAIAdapter, PINRateLimiter, type PINValidationResult, PINValidator, PPPFactor, PaginatedResponse, type ParsedIntent, Payment, PaymentError, PaymentIntent, PaymentIntentEvent, PaymentIntentParser, PaymentIntentsAPI, PaymentLink, type PaymentResult, PerformanceMonitor, type PollingOptions, PricingAPI, PricingSuggestion, PricingSuggestionRequest, QuickCaches, RateLimitError, RateLimiter, type RecoveryQR, RecoveryQRGenerator, RefundEscrowRequest, type RequestConfig, type RequestInterceptor, type ResponseData, type ResponseInterceptor, type RetryOptions, RetryStrategy, SPENDING_LIMIT_ACTION_CID, SecureStorage, SessionKeyCache, type SessionKeyCacheConfig, SessionKeyCrypto, SessionKeyLifecycle, SessionKeyListResponse, type SessionKeyPaymentRequest, SessionKeyStatus, SessionKeysAPI, type SignPaymentParams, type SignPaymentResult, SmartPaymentRequest, SmartPaymentResponse, SmartPaymentsAPI, SubmitSignedTransactionRequest, SubmitTransactionResponse, Subscription, SubscriptionPlan, type TestSessionKey, TopUpSessionKeyRequest, TopUpSessionKeyResponse, TransactionMonitor, TransactionPoller, type TransactionStatus, ValidationError, VerifyWebhookRequest, WalletConnector, WebhookError, WebhookPayload, ZendFiClient, ZendFiConfig, ZendFiError, type ZendFiErrorData, type ZendFiErrorType, ZendFiSessionKeyManager, createWalletHook, createZendFiError, decodeSignatureFromLit, encodeTransactionForLit, generateIdempotencyKey, isZendFiError, requiresLitSigning, setupQuickSessionKey, sleep, verifyExpressWebhook, verifyNextWebhook, verifyWebhookSignature, zendfi };
|
|
3627
|
+
export { AgentAPI, AgentAnalytics, AgentApiKey, AgentPaymentRequest, AgentPaymentResponse, AgentSession, AnthropicAdapter, ApiError, ApiKeyMode, ApproveEscrowRequest, AuthenticationError, AutonomyAPI, AutonomyStatus, type CachedKeypair, type CheckoutError, type CheckoutTheme, ConfigLoader, ConfirmPaymentIntentRequest, type ConnectedWallet, CreateAgentApiKeyRequest, CreateAgentSessionRequest, type CreateAndFundConfig, type CreateDeviceBoundSessionKeyRequest, type CreateDeviceBoundSessionKeyResponse, CreateEscrowRequest, CreateInstallmentPlanRequest, CreateInvoiceRequest, CreatePaymentIntentRequest, CreatePaymentLinkRequest, CreatePaymentRequest, CreateSessionKeyRequest, CreateSessionKeyResponse, CreateSubscriptionPlanRequest, CreateSubscriptionRequest, type CustomStorageAdapter, DevTools, DeviceBoundSessionKey, type DeviceBoundSessionKeyOptions, DeviceFingerprintGenerator, DisputeEscrowRequest, ERROR_CODES, type EmbeddedCheckoutConfig, EnableAutonomyRequest, EnableAutonomyResponse, type EncryptedSessionKey, type ErrorInterceptor, ErrorRecovery, Escrow, GeminiAdapter, InstallmentPlan, InterceptorManager, type Interceptors, Invoice, type LifecycleConfig, ListPaymentsRequest, LitCryptoSigner, type LitCryptoSignerConfig, type LitNetwork, type MockWallet, NetworkError, OpenAIAdapter, PINRateLimiter, type PINValidationResult, PINValidator, PPPFactor, PaginatedResponse, type ParsedIntent, Payment, PaymentError, PaymentIntent, PaymentIntentEvent, PaymentIntentParser, PaymentIntentsAPI, PaymentLink, type PaymentResult, type PaymentSuccessData, PerformanceMonitor, type PollingOptions, PricingAPI, PricingSuggestion, PricingSuggestionRequest, QuickCaches, RateLimitError, RateLimiter, type RecoveryQR, RecoveryQRGenerator, RefundEscrowRequest, type RequestConfig, type RequestInterceptor, type ResponseData, type ResponseInterceptor, type RetryOptions, RetryStrategy, SPENDING_LIMIT_ACTION_CID, SecureStorage, SessionKeyCache, type SessionKeyCacheConfig, SessionKeyCrypto, SessionKeyLifecycle, SessionKeyListResponse, type SessionKeyPaymentRequest, SessionKeyStatus, SessionKeysAPI, type SignPaymentParams, type SignPaymentResult, SmartPaymentRequest, SmartPaymentResponse, SmartPaymentsAPI, SubmitSignedTransactionRequest, SubmitTransactionResponse, Subscription, SubscriptionPlan, type TestSessionKey, TopUpSessionKeyRequest, TopUpSessionKeyResponse, TransactionMonitor, TransactionPoller, type TransactionStatus, ValidationError, VerifyWebhookRequest, WalletConnector, WebhookError, WebhookPayload, ZendFiClient, ZendFiConfig, ZendFiEmbeddedCheckout, ZendFiError, type ZendFiErrorData, type ZendFiErrorType, ZendFiSessionKeyManager, createWalletHook, createZendFiError, decodeSignatureFromLit, encodeTransactionForLit, generateIdempotencyKey, isZendFiError, requiresLitSigning, setupQuickSessionKey, sleep, verifyExpressWebhook, verifyNextWebhook, verifyWebhookSignature, zendfi };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CreateAgentApiKeyRequest, A as AgentApiKey, b as CreateAgentSessionRequest, c as AgentSession, d as AgentPaymentRequest, e as AgentPaymentResponse, f as AgentAnalytics, g as CreatePaymentIntentRequest, P as PaymentIntent, h as ConfirmPaymentIntentRequest, i as PaymentIntentEvent, j as PPPFactor, k as PricingSuggestionRequest, l as PricingSuggestion, E as EnableAutonomyRequest, m as EnableAutonomyResponse, n as AutonomyStatus, S as SmartPaymentRequest, o as SmartPaymentResponse, p as CreateSessionKeyRequest, q as CreateSessionKeyResponse, r as CreateDeviceBoundSessionKeyRequest$1, s as CreateDeviceBoundSessionKeyResponse$1, t as SubmitSignedTransactionRequest, u as SubmitTransactionResponse, v as SessionKeyStatus, w as SessionKeyListResponse, T as TopUpSessionKeyRequest, x as TopUpSessionKeyResponse, Z as ZendFiConfig, y as CreatePaymentRequest, z as Payment, L as ListPaymentsRequest, B as PaginatedResponse, D as CreateSubscriptionPlanRequest, F as SubscriptionPlan, G as CreateSubscriptionRequest, H as Subscription, I as CreatePaymentLinkRequest, J as PaymentLink, K as CreateInstallmentPlanRequest, M as InstallmentPlan, N as CreateEscrowRequest, O as Escrow, Q as ApproveEscrowRequest, R as RefundEscrowRequest, U as DisputeEscrowRequest, V as CreateInvoiceRequest, X as Invoice, Y as VerifyWebhookRequest, _ as WebhookPayload } from './webhook-handler-
|
|
2
|
-
export {
|
|
1
|
+
import { C as CreateAgentApiKeyRequest, A as AgentApiKey, b as CreateAgentSessionRequest, c as AgentSession, d as AgentPaymentRequest, e as AgentPaymentResponse, f as AgentAnalytics, g as CreatePaymentIntentRequest, P as PaymentIntent, h as ConfirmPaymentIntentRequest, i as PaymentIntentEvent, j as PPPFactor, k as PricingSuggestionRequest, l as PricingSuggestion, E as EnableAutonomyRequest, m as EnableAutonomyResponse, n as AutonomyStatus, S as SmartPaymentRequest, o as SmartPaymentResponse, p as CreateSessionKeyRequest, q as CreateSessionKeyResponse, r as CreateDeviceBoundSessionKeyRequest$1, s as CreateDeviceBoundSessionKeyResponse$1, t as SubmitSignedTransactionRequest, u as SubmitTransactionResponse, v as SessionKeyStatus, w as SessionKeyListResponse, T as TopUpSessionKeyRequest, x as TopUpSessionKeyResponse, Z as ZendFiConfig, y as CreatePaymentRequest, z as Payment, L as ListPaymentsRequest, B as PaginatedResponse, D as CreateSubscriptionPlanRequest, F as SubscriptionPlan, G as CreateSubscriptionRequest, H as Subscription, I as CreatePaymentLinkRequest, J as PaymentLink, K as CreateInstallmentPlanRequest, M as InstallmentPlan, N as CreateEscrowRequest, O as Escrow, Q as ApproveEscrowRequest, R as RefundEscrowRequest, U as DisputeEscrowRequest, V as CreateInvoiceRequest, X as Invoice, Y as VerifyWebhookRequest, _ as WebhookPayload, $ as ApiKeyMode } from './webhook-handler-D5INiR-l.js';
|
|
2
|
+
export { a6 as AgentKeyId, aD as ApiKeyScope, aJ as AutonomousDelegate, a3 as Brand, aG as CaptureMethod, aA as CreateInstallmentPlanResponse, ap as Currency, ao as Environment, aa as EscrowId, au as EscrowStatus, ab as InstallmentPlanId, at as InstallmentPlanStatus, az as InstallmentScheduleItem, ad as IntentId, a8 as InvoiceId, aC as InvoiceLineItem, av as InvoiceStatus, aO as LinkedSessionInfo, a7 as MerchantId, aI as PPPConfig, a4 as PaymentId, aF as PaymentIntentStatus, ac as PaymentLinkCode, ar as PaymentStatus, aq as PaymentToken, aB as ReleaseCondition, aK as RevokeAutonomyRequest, aP as SecurityStatus, a5 as SessionId, aM as SessionKeyInstructions, aN as SessionKeySecurityInfo, aQ as SessionKeyStats, aE as SessionLimits, aL as SmartPaymentStatus, ay as SplitRecipient, aw as SplitStatus, a9 as SubscriptionId, as as SubscriptionStatus, aH as UserProfile, ax as WebhookEvent, a2 as WebhookEventHandler, W as WebhookHandlerConfig, a as WebhookHandlers, a1 as WebhookResult, ag as asAgentKeyId, ak as asEscrowId, al as asInstallmentPlanId, an as asIntentId, ai as asInvoiceId, ah as asMerchantId, ae as asPaymentId, am as asPaymentLinkCode, af as asSessionId, aj as asSubscriptionId, a0 as processWebhook } from './webhook-handler-D5INiR-l.js';
|
|
3
3
|
import { Transaction, Keypair } from '@solana/web3.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -1753,6 +1753,211 @@ declare function verifyExpressWebhook(request: any, secret?: string): Promise<We
|
|
|
1753
1753
|
*/
|
|
1754
1754
|
declare function verifyWebhookSignature(payload: string, signature: string, secret: string): boolean;
|
|
1755
1755
|
|
|
1756
|
+
/**
|
|
1757
|
+
* ZendFi Embedded Checkout
|
|
1758
|
+
*
|
|
1759
|
+
* Embed the ZendFi checkout directly into your website/app
|
|
1760
|
+
* without redirecting to checkout.zendfi.tech
|
|
1761
|
+
*
|
|
1762
|
+
* @example
|
|
1763
|
+
* ```typescript
|
|
1764
|
+
* import { ZendFiEmbeddedCheckout } from '@zendfi/sdk';
|
|
1765
|
+
*
|
|
1766
|
+
* const checkout = new ZendFiEmbeddedCheckout({
|
|
1767
|
+
* linkCode: 'abc123xyz',
|
|
1768
|
+
* containerId: 'zendfi-checkout',
|
|
1769
|
+
* mode: 'live',
|
|
1770
|
+
* onSuccess: (payment) => {
|
|
1771
|
+
* console.log('Payment successful!', payment);
|
|
1772
|
+
* },
|
|
1773
|
+
* onError: (error) => {
|
|
1774
|
+
* console.error('Payment failed:', error);
|
|
1775
|
+
* }
|
|
1776
|
+
* });
|
|
1777
|
+
*
|
|
1778
|
+
* checkout.mount();
|
|
1779
|
+
* ```
|
|
1780
|
+
*/
|
|
1781
|
+
|
|
1782
|
+
interface EmbeddedCheckoutConfig {
|
|
1783
|
+
/** Payment link code or payment ID */
|
|
1784
|
+
linkCode?: string;
|
|
1785
|
+
paymentId?: string;
|
|
1786
|
+
/** Container element ID where checkout will be mounted */
|
|
1787
|
+
containerId: string;
|
|
1788
|
+
/** API mode - 'test' for devnet, 'live' for mainnet */
|
|
1789
|
+
mode?: ApiKeyMode;
|
|
1790
|
+
/** API base URL (defaults to production) */
|
|
1791
|
+
apiUrl?: string;
|
|
1792
|
+
/** Callback when payment is successful */
|
|
1793
|
+
onSuccess?: (payment: PaymentSuccessData) => void;
|
|
1794
|
+
/** Callback when payment fails */
|
|
1795
|
+
onError?: (error: CheckoutError) => void;
|
|
1796
|
+
/** Callback when checkout is loaded */
|
|
1797
|
+
onLoad?: () => void;
|
|
1798
|
+
/** Custom theme overrides */
|
|
1799
|
+
theme?: CheckoutTheme;
|
|
1800
|
+
/** Enable custom amount (Pay What You Want) */
|
|
1801
|
+
allowCustomAmount?: boolean;
|
|
1802
|
+
/** Show/hide specific payment methods */
|
|
1803
|
+
paymentMethods?: {
|
|
1804
|
+
walletConnect?: boolean;
|
|
1805
|
+
qrCode?: boolean;
|
|
1806
|
+
solanaWallet?: boolean;
|
|
1807
|
+
};
|
|
1808
|
+
}
|
|
1809
|
+
interface CheckoutTheme {
|
|
1810
|
+
primaryColor?: string;
|
|
1811
|
+
backgroundColor?: string;
|
|
1812
|
+
borderRadius?: string;
|
|
1813
|
+
fontFamily?: string;
|
|
1814
|
+
textColor?: string;
|
|
1815
|
+
buttonStyle?: 'solid' | 'outlined' | 'minimal';
|
|
1816
|
+
}
|
|
1817
|
+
interface PaymentSuccessData {
|
|
1818
|
+
paymentId: string;
|
|
1819
|
+
transactionSignature: string;
|
|
1820
|
+
amount: number;
|
|
1821
|
+
token: string;
|
|
1822
|
+
merchantName: string;
|
|
1823
|
+
}
|
|
1824
|
+
interface CheckoutError {
|
|
1825
|
+
code: string;
|
|
1826
|
+
message: string;
|
|
1827
|
+
details?: any;
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
* ZendFi Embedded Checkout Component
|
|
1831
|
+
*
|
|
1832
|
+
* Provides a fully-functional checkout experience that can be
|
|
1833
|
+
* embedded directly into any web application.
|
|
1834
|
+
*/
|
|
1835
|
+
declare class ZendFiEmbeddedCheckout {
|
|
1836
|
+
private config;
|
|
1837
|
+
private container;
|
|
1838
|
+
private checkoutData;
|
|
1839
|
+
private pollInterval;
|
|
1840
|
+
private mounted;
|
|
1841
|
+
constructor(config: EmbeddedCheckoutConfig);
|
|
1842
|
+
private getDefaultApiUrl;
|
|
1843
|
+
/**
|
|
1844
|
+
* Mount the checkout to the DOM
|
|
1845
|
+
*/
|
|
1846
|
+
mount(): Promise<void>;
|
|
1847
|
+
/**
|
|
1848
|
+
* Unmount and cleanup
|
|
1849
|
+
*/
|
|
1850
|
+
unmount(): void;
|
|
1851
|
+
/**
|
|
1852
|
+
* Fetch checkout data from API
|
|
1853
|
+
*/
|
|
1854
|
+
private fetchCheckoutData;
|
|
1855
|
+
/**
|
|
1856
|
+
* Poll for payment confirmation
|
|
1857
|
+
*/
|
|
1858
|
+
private startPaymentPolling;
|
|
1859
|
+
/**
|
|
1860
|
+
* Handle successful payment
|
|
1861
|
+
*/
|
|
1862
|
+
private handlePaymentSuccess;
|
|
1863
|
+
/**
|
|
1864
|
+
* Handle payment failure
|
|
1865
|
+
*/
|
|
1866
|
+
private handlePaymentFailure;
|
|
1867
|
+
/**
|
|
1868
|
+
* Handle payment expiration
|
|
1869
|
+
*/
|
|
1870
|
+
private handlePaymentExpired;
|
|
1871
|
+
/**
|
|
1872
|
+
* Render loading state
|
|
1873
|
+
*/
|
|
1874
|
+
private renderLoading;
|
|
1875
|
+
/**
|
|
1876
|
+
* Render the main checkout UI
|
|
1877
|
+
*/
|
|
1878
|
+
private render;
|
|
1879
|
+
/**
|
|
1880
|
+
* Render header section
|
|
1881
|
+
*/
|
|
1882
|
+
private renderHeader;
|
|
1883
|
+
/**
|
|
1884
|
+
* Render payment information
|
|
1885
|
+
*/
|
|
1886
|
+
private renderPaymentInfo;
|
|
1887
|
+
/**
|
|
1888
|
+
* Render custom amount input (Pay What You Want)
|
|
1889
|
+
*/
|
|
1890
|
+
private renderCustomAmountInput;
|
|
1891
|
+
/**
|
|
1892
|
+
* Render payment methods
|
|
1893
|
+
*/
|
|
1894
|
+
private renderPaymentMethods;
|
|
1895
|
+
/**
|
|
1896
|
+
* Render QR code payment method
|
|
1897
|
+
*/
|
|
1898
|
+
private renderQRCodeMethod;
|
|
1899
|
+
/**
|
|
1900
|
+
* Render browser wallet method
|
|
1901
|
+
*/
|
|
1902
|
+
private renderWalletMethod;
|
|
1903
|
+
/**
|
|
1904
|
+
* Render WalletConnect method
|
|
1905
|
+
*/
|
|
1906
|
+
private renderWalletConnectMethod;
|
|
1907
|
+
/**
|
|
1908
|
+
* Render footer
|
|
1909
|
+
*/
|
|
1910
|
+
private renderFooter;
|
|
1911
|
+
/**
|
|
1912
|
+
* Render success state
|
|
1913
|
+
*/
|
|
1914
|
+
private renderSuccess;
|
|
1915
|
+
/**
|
|
1916
|
+
* Render error state
|
|
1917
|
+
*/
|
|
1918
|
+
private renderError;
|
|
1919
|
+
/**
|
|
1920
|
+
* Attach event listeners to interactive elements
|
|
1921
|
+
*/
|
|
1922
|
+
private attachEventListeners;
|
|
1923
|
+
/**
|
|
1924
|
+
* Handle wallet connection and payment
|
|
1925
|
+
*/
|
|
1926
|
+
private handleWalletConnect;
|
|
1927
|
+
/**
|
|
1928
|
+
* Handle mobile wallet connection via Solana Pay deep link
|
|
1929
|
+
*/
|
|
1930
|
+
private handleWalletConnectScan;
|
|
1931
|
+
/**
|
|
1932
|
+
* Generate QR code on canvas using QRious library
|
|
1933
|
+
*/
|
|
1934
|
+
private generateQRCode;
|
|
1935
|
+
/**
|
|
1936
|
+
* Inject custom styles
|
|
1937
|
+
*/
|
|
1938
|
+
private injectStyles;
|
|
1939
|
+
/**
|
|
1940
|
+
* Load external dependencies (QR code library, Solana web3.js)
|
|
1941
|
+
*/
|
|
1942
|
+
private loadDependencies;
|
|
1943
|
+
/**
|
|
1944
|
+
* Load external script
|
|
1945
|
+
*/
|
|
1946
|
+
private loadScript;
|
|
1947
|
+
/**
|
|
1948
|
+
* Get computed theme with defaults
|
|
1949
|
+
*/
|
|
1950
|
+
private getComputedTheme;
|
|
1951
|
+
/**
|
|
1952
|
+
* Style helpers
|
|
1953
|
+
*/
|
|
1954
|
+
private getCheckoutContainerStyles;
|
|
1955
|
+
private getLoadingStyles;
|
|
1956
|
+
private getSpinnerStyles;
|
|
1957
|
+
private getSuccessStyles;
|
|
1958
|
+
private getErrorStyles;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1756
1961
|
/**
|
|
1757
1962
|
* ZendFi SDK Error Classes
|
|
1758
1963
|
*
|
|
@@ -3419,4 +3624,4 @@ declare class PerformanceMonitor {
|
|
|
3419
3624
|
clear(): void;
|
|
3420
3625
|
}
|
|
3421
3626
|
|
|
3422
|
-
export { AgentAPI, AgentAnalytics, AgentApiKey, AgentPaymentRequest, AgentPaymentResponse, AgentSession, AnthropicAdapter, ApiError, ApproveEscrowRequest, AuthenticationError, AutonomyAPI, AutonomyStatus, type CachedKeypair, ConfigLoader, ConfirmPaymentIntentRequest, type ConnectedWallet, CreateAgentApiKeyRequest, CreateAgentSessionRequest, type CreateAndFundConfig, type CreateDeviceBoundSessionKeyRequest, type CreateDeviceBoundSessionKeyResponse, CreateEscrowRequest, CreateInstallmentPlanRequest, CreateInvoiceRequest, CreatePaymentIntentRequest, CreatePaymentLinkRequest, CreatePaymentRequest, CreateSessionKeyRequest, CreateSessionKeyResponse, CreateSubscriptionPlanRequest, CreateSubscriptionRequest, type CustomStorageAdapter, DevTools, DeviceBoundSessionKey, type DeviceBoundSessionKeyOptions, DeviceFingerprintGenerator, DisputeEscrowRequest, ERROR_CODES, EnableAutonomyRequest, EnableAutonomyResponse, type EncryptedSessionKey, type ErrorInterceptor, ErrorRecovery, Escrow, GeminiAdapter, InstallmentPlan, InterceptorManager, type Interceptors, Invoice, type LifecycleConfig, ListPaymentsRequest, LitCryptoSigner, type LitCryptoSignerConfig, type LitNetwork, type MockWallet, NetworkError, OpenAIAdapter, PINRateLimiter, type PINValidationResult, PINValidator, PPPFactor, PaginatedResponse, type ParsedIntent, Payment, PaymentError, PaymentIntent, PaymentIntentEvent, PaymentIntentParser, PaymentIntentsAPI, PaymentLink, type PaymentResult, PerformanceMonitor, type PollingOptions, PricingAPI, PricingSuggestion, PricingSuggestionRequest, QuickCaches, RateLimitError, RateLimiter, type RecoveryQR, RecoveryQRGenerator, RefundEscrowRequest, type RequestConfig, type RequestInterceptor, type ResponseData, type ResponseInterceptor, type RetryOptions, RetryStrategy, SPENDING_LIMIT_ACTION_CID, SecureStorage, SessionKeyCache, type SessionKeyCacheConfig, SessionKeyCrypto, SessionKeyLifecycle, SessionKeyListResponse, type SessionKeyPaymentRequest, SessionKeyStatus, SessionKeysAPI, type SignPaymentParams, type SignPaymentResult, SmartPaymentRequest, SmartPaymentResponse, SmartPaymentsAPI, SubmitSignedTransactionRequest, SubmitTransactionResponse, Subscription, SubscriptionPlan, type TestSessionKey, TopUpSessionKeyRequest, TopUpSessionKeyResponse, TransactionMonitor, TransactionPoller, type TransactionStatus, ValidationError, VerifyWebhookRequest, WalletConnector, WebhookError, WebhookPayload, ZendFiClient, ZendFiConfig, ZendFiError, type ZendFiErrorData, type ZendFiErrorType, ZendFiSessionKeyManager, createWalletHook, createZendFiError, decodeSignatureFromLit, encodeTransactionForLit, generateIdempotencyKey, isZendFiError, requiresLitSigning, setupQuickSessionKey, sleep, verifyExpressWebhook, verifyNextWebhook, verifyWebhookSignature, zendfi };
|
|
3627
|
+
export { AgentAPI, AgentAnalytics, AgentApiKey, AgentPaymentRequest, AgentPaymentResponse, AgentSession, AnthropicAdapter, ApiError, ApiKeyMode, ApproveEscrowRequest, AuthenticationError, AutonomyAPI, AutonomyStatus, type CachedKeypair, type CheckoutError, type CheckoutTheme, ConfigLoader, ConfirmPaymentIntentRequest, type ConnectedWallet, CreateAgentApiKeyRequest, CreateAgentSessionRequest, type CreateAndFundConfig, type CreateDeviceBoundSessionKeyRequest, type CreateDeviceBoundSessionKeyResponse, CreateEscrowRequest, CreateInstallmentPlanRequest, CreateInvoiceRequest, CreatePaymentIntentRequest, CreatePaymentLinkRequest, CreatePaymentRequest, CreateSessionKeyRequest, CreateSessionKeyResponse, CreateSubscriptionPlanRequest, CreateSubscriptionRequest, type CustomStorageAdapter, DevTools, DeviceBoundSessionKey, type DeviceBoundSessionKeyOptions, DeviceFingerprintGenerator, DisputeEscrowRequest, ERROR_CODES, type EmbeddedCheckoutConfig, EnableAutonomyRequest, EnableAutonomyResponse, type EncryptedSessionKey, type ErrorInterceptor, ErrorRecovery, Escrow, GeminiAdapter, InstallmentPlan, InterceptorManager, type Interceptors, Invoice, type LifecycleConfig, ListPaymentsRequest, LitCryptoSigner, type LitCryptoSignerConfig, type LitNetwork, type MockWallet, NetworkError, OpenAIAdapter, PINRateLimiter, type PINValidationResult, PINValidator, PPPFactor, PaginatedResponse, type ParsedIntent, Payment, PaymentError, PaymentIntent, PaymentIntentEvent, PaymentIntentParser, PaymentIntentsAPI, PaymentLink, type PaymentResult, type PaymentSuccessData, PerformanceMonitor, type PollingOptions, PricingAPI, PricingSuggestion, PricingSuggestionRequest, QuickCaches, RateLimitError, RateLimiter, type RecoveryQR, RecoveryQRGenerator, RefundEscrowRequest, type RequestConfig, type RequestInterceptor, type ResponseData, type ResponseInterceptor, type RetryOptions, RetryStrategy, SPENDING_LIMIT_ACTION_CID, SecureStorage, SessionKeyCache, type SessionKeyCacheConfig, SessionKeyCrypto, SessionKeyLifecycle, SessionKeyListResponse, type SessionKeyPaymentRequest, SessionKeyStatus, SessionKeysAPI, type SignPaymentParams, type SignPaymentResult, SmartPaymentRequest, SmartPaymentResponse, SmartPaymentsAPI, SubmitSignedTransactionRequest, SubmitTransactionResponse, Subscription, SubscriptionPlan, type TestSessionKey, TopUpSessionKeyRequest, TopUpSessionKeyResponse, TransactionMonitor, TransactionPoller, type TransactionStatus, ValidationError, VerifyWebhookRequest, WalletConnector, WebhookError, WebhookPayload, ZendFiClient, ZendFiConfig, ZendFiEmbeddedCheckout, ZendFiError, type ZendFiErrorData, type ZendFiErrorType, ZendFiSessionKeyManager, createWalletHook, createZendFiError, decodeSignatureFromLit, encodeTransactionForLit, generateIdempotencyKey, isZendFiError, requiresLitSigning, setupQuickSessionKey, sleep, verifyExpressWebhook, verifyNextWebhook, verifyWebhookSignature, zendfi };
|