@unifold/core 0.1.67 → 0.1.68-beta.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.
- package/dist/index.d.mts +527 -14
- package/dist/index.d.ts +527 -14
- package/dist/index.js +681 -194
- package/dist/index.mjs +656 -194
- package/package.json +11 -2
package/dist/index.d.mts
CHANGED
|
@@ -108,9 +108,9 @@ declare enum ExecutionStatus {
|
|
|
108
108
|
}
|
|
109
109
|
interface IconUrl {
|
|
110
110
|
url: string;
|
|
111
|
-
format:
|
|
111
|
+
format: 'svg' | 'png';
|
|
112
112
|
}
|
|
113
|
-
type ProductType =
|
|
113
|
+
type ProductType = 'deposit' | 'payment';
|
|
114
114
|
interface DirectExecutionResponse {
|
|
115
115
|
id: string;
|
|
116
116
|
project_id: string;
|
|
@@ -277,7 +277,7 @@ declare function getTokenMetadata(request: GetTokenMetadataRequest, publishableK
|
|
|
277
277
|
* @param preferredFormat - Preferred format ("svg" or "png"), defaults to "svg"
|
|
278
278
|
* @returns The URL string for the preferred format, or first available if preferred not found
|
|
279
279
|
*/
|
|
280
|
-
declare function getPreferredIconUrl(iconUrls: IconUrl[] | undefined, preferredFormat?:
|
|
280
|
+
declare function getPreferredIconUrl(iconUrls: IconUrl[] | undefined, preferredFormat?: 'svg' | 'png'): string | undefined;
|
|
281
281
|
interface FiatCurrency {
|
|
282
282
|
currency_code: string;
|
|
283
283
|
name: string;
|
|
@@ -340,6 +340,14 @@ interface OnrampQuotesResponse {
|
|
|
340
340
|
* @param publishableKey - Optional publishable key, defaults to configured key
|
|
341
341
|
*/
|
|
342
342
|
declare function getOnrampQuotes(request: OnrampQuotesRequest, publishableKey?: string): Promise<OnrampQuotesResponse>;
|
|
343
|
+
/**
|
|
344
|
+
* Payment method for an onramp session. Defaults to `card` server-side.
|
|
345
|
+
* `sepa` routes the session through SEPA bank transfer (Swapped-only today).
|
|
346
|
+
* `apple_pay` preselects Apple Pay on Coinbase's standard onramp surface
|
|
347
|
+
* (Coinbase only) — useful as a fallback when the headless Apple Pay flow
|
|
348
|
+
* is unavailable.
|
|
349
|
+
*/
|
|
350
|
+
type OnrampSessionPaymentMethod = 'card' | 'sepa' | 'apple_pay';
|
|
343
351
|
interface OnrampSessionRequest {
|
|
344
352
|
service_provider: string;
|
|
345
353
|
country_code: string;
|
|
@@ -352,6 +360,7 @@ interface OnrampSessionRequest {
|
|
|
352
360
|
redirect_url?: string;
|
|
353
361
|
external_id?: string;
|
|
354
362
|
email?: string;
|
|
363
|
+
payment_method?: OnrampSessionPaymentMethod;
|
|
355
364
|
}
|
|
356
365
|
interface OnrampSessionResponse {
|
|
357
366
|
url: string;
|
|
@@ -363,6 +372,73 @@ interface OnrampSessionResponse {
|
|
|
363
372
|
* @param publishableKey - Optional publishable key, defaults to configured key
|
|
364
373
|
*/
|
|
365
374
|
declare function createOnrampSession(request: OnrampSessionRequest, publishableKey?: string): Promise<OnrampSessionResponse>;
|
|
375
|
+
/**
|
|
376
|
+
* A bank-transfer onramp provider returned by `getBankTransferProviders()`.
|
|
377
|
+
* Mirrors the shape of `IntegrationExchangeInfo` so SDK consumers can render
|
|
378
|
+
* exchanges + bank-transfer with the same UI primitives.
|
|
379
|
+
*/
|
|
380
|
+
interface BankTransferProvider {
|
|
381
|
+
service_provider: string;
|
|
382
|
+
service_provider_display_name: string;
|
|
383
|
+
description: string;
|
|
384
|
+
icon_url: string;
|
|
385
|
+
icon_urls: IconUrl[];
|
|
386
|
+
/**
|
|
387
|
+
* True when the provider is configured AND the rail supports the caller's
|
|
388
|
+
* country. Use this to decide whether the row is clickable.
|
|
389
|
+
*/
|
|
390
|
+
enabled: boolean;
|
|
391
|
+
/**
|
|
392
|
+
* Payment methods this provider supports. Forward one of these as
|
|
393
|
+
* `payment_method` when calling `/onramps/sessions`. Stored as an array so
|
|
394
|
+
* a single provider can light up multiple rails (e.g. SEPA + ACH) without
|
|
395
|
+
* forking the row.
|
|
396
|
+
*/
|
|
397
|
+
payment_methods: OnrampSessionPaymentMethod[];
|
|
398
|
+
/** All fiat currencies the rail accepts (e.g. ['eur', 'gbp']). */
|
|
399
|
+
supported_currencies: string[];
|
|
400
|
+
/**
|
|
401
|
+
* Preferred fiat for the caller's country, picked from `supported_currencies`.
|
|
402
|
+
* Forward as `source_currency` to `/onramps/sessions` — avoids the SDK
|
|
403
|
+
* re-implementing the country → fiat mapping.
|
|
404
|
+
*/
|
|
405
|
+
source_currency: string;
|
|
406
|
+
}
|
|
407
|
+
interface BankTransferProvidersResponse {
|
|
408
|
+
data: BankTransferProvider[];
|
|
409
|
+
}
|
|
410
|
+
interface GetBankTransferProvidersOptions {
|
|
411
|
+
/** ISO 3166-1 alpha-2 country code. Drives the `enabled` flag per provider. */
|
|
412
|
+
countryCode?: string;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Get supported bank-transfer onramp providers (SEPA via Swapped today).
|
|
416
|
+
* Each provider's `enabled` flag reflects project config + native integration
|
|
417
|
+
* availability + the caller-supplied country.
|
|
418
|
+
*/
|
|
419
|
+
declare function getBankTransferProviders(publishableKey?: string, options?: GetBankTransferProvidersOptions): Promise<BankTransferProvidersResponse>;
|
|
420
|
+
interface ApplePayProvider {
|
|
421
|
+
service_provider: string;
|
|
422
|
+
service_provider_display_name: string;
|
|
423
|
+
description: string;
|
|
424
|
+
icon_url: string;
|
|
425
|
+
icon_urls: Array<{
|
|
426
|
+
url: string;
|
|
427
|
+
format: string;
|
|
428
|
+
}>;
|
|
429
|
+
enabled: boolean;
|
|
430
|
+
payment_methods: string[];
|
|
431
|
+
supported_countries: string[];
|
|
432
|
+
}
|
|
433
|
+
interface ApplePayProvidersResponse {
|
|
434
|
+
data: ApplePayProvider[];
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Get supported Apple Pay onramp providers. The response is geo-restricted:
|
|
438
|
+
* only returns providers when the caller IP is in a supported region (US
|
|
439
|
+
* excluding NY for Coinbase) and the project has Apple Pay enabled.
|
|
440
|
+
*/
|
|
441
|
+
declare function getApplePayProviders(publishableKey?: string): Promise<ApplePayProvidersResponse>;
|
|
366
442
|
/**
|
|
367
443
|
* Generate a URL for the sessions/start endpoint that redirects to the onramp provider.
|
|
368
444
|
* This is useful for avoiding popup blockers by opening the URL directly via anchor tag.
|
|
@@ -454,6 +530,7 @@ interface FeaturedWallet {
|
|
|
454
530
|
icon_urls: IconUrl[];
|
|
455
531
|
}
|
|
456
532
|
interface ProjectConfigResponse {
|
|
533
|
+
project_id?: string;
|
|
457
534
|
project_name?: string;
|
|
458
535
|
asset_cdn_url: string;
|
|
459
536
|
transfer_crypto: {
|
|
@@ -475,24 +552,58 @@ interface ProjectConfigResponse {
|
|
|
475
552
|
cash_app?: {
|
|
476
553
|
enabled: boolean;
|
|
477
554
|
};
|
|
555
|
+
apple_pay?: {
|
|
556
|
+
enabled: boolean;
|
|
557
|
+
};
|
|
478
558
|
pay_with_exchange?: {
|
|
479
559
|
enabled: boolean;
|
|
480
560
|
};
|
|
481
561
|
fiat_onramp?: {
|
|
562
|
+
/** Developer/merchant-controlled toggle (dashboard + SDK prop). */
|
|
482
563
|
enabled: boolean;
|
|
564
|
+
/**
|
|
565
|
+
* Platform-controlled hard hide, independent of `enabled`. Defaults to
|
|
566
|
+
* false. When true, the fiat on-ramp must be hidden regardless of `enabled`
|
|
567
|
+
* or the SDK prop.
|
|
568
|
+
*/
|
|
569
|
+
is_hidden?: boolean;
|
|
483
570
|
};
|
|
484
571
|
deposit_tracker?: {
|
|
485
572
|
enabled: boolean;
|
|
486
573
|
};
|
|
574
|
+
bank_transfer?: BankTransferConfig;
|
|
487
575
|
hypercore_sponsorship?: {
|
|
488
576
|
enabled: boolean;
|
|
489
577
|
};
|
|
490
578
|
}
|
|
579
|
+
/**
|
|
580
|
+
* Bank-transfer project-level toggle returned by `/projects/config`.
|
|
581
|
+
*
|
|
582
|
+
* Only reflects the dashboard preference — the actual rails available for
|
|
583
|
+
* a given country live under `getBankTransferProviders()`.
|
|
584
|
+
*/
|
|
585
|
+
interface BankTransferConfig {
|
|
586
|
+
enabled: boolean;
|
|
587
|
+
}
|
|
491
588
|
/**
|
|
492
589
|
* Get project configuration
|
|
493
590
|
* @param publishableKey - Optional publishable key, defaults to configured key
|
|
494
591
|
*/
|
|
495
|
-
|
|
592
|
+
/**
|
|
593
|
+
* Optional caller-location hints for {@link getProjectConfig}.
|
|
594
|
+
*
|
|
595
|
+
* When `countryCode` is provided it is sent to the API, which uses it for
|
|
596
|
+
* region-based settings (e.g. whether the fiat on-ramp is hidden) and skips
|
|
597
|
+
* server-side IP geolocation. Omit to let the backend resolve the region from
|
|
598
|
+
* the request IP.
|
|
599
|
+
*/
|
|
600
|
+
interface GetProjectConfigOptions {
|
|
601
|
+
/** ISO 3166-1 alpha-2 country code (e.g. "US"). */
|
|
602
|
+
countryCode?: string;
|
|
603
|
+
/** ISO 3166-2 subdivision code (e.g. "CA"). */
|
|
604
|
+
subdivisionCode?: string;
|
|
605
|
+
}
|
|
606
|
+
declare function getProjectConfig(publishableKey?: string, options?: GetProjectConfigOptions): Promise<ProjectConfigResponse>;
|
|
496
607
|
interface IpAddressResponse {
|
|
497
608
|
alpha2: string;
|
|
498
609
|
alpha3: string;
|
|
@@ -552,9 +663,9 @@ interface AddressBalancesResponse {
|
|
|
552
663
|
*/
|
|
553
664
|
declare function getAddressBalances(address: string, chainType: ChainType, publishableKey?: string): Promise<AddressBalancesResponse>;
|
|
554
665
|
/** Wallet ids supported by the connect-wallet flow. */
|
|
555
|
-
type WalletMobileDeepLinkWallet =
|
|
666
|
+
type WalletMobileDeepLinkWallet = 'phantom' | 'metamask' | 'coinbase' | 'trust' | 'rainbow' | 'rabby' | 'okx';
|
|
556
667
|
/** Chain types an external wallet can connect on. */
|
|
557
|
-
type ExternalWalletChainType =
|
|
668
|
+
type ExternalWalletChainType = 'ethereum' | 'solana';
|
|
558
669
|
/** A supported external (self-custody) wallet from the directory endpoint. */
|
|
559
670
|
interface ExternalWalletInfo {
|
|
560
671
|
id: WalletMobileDeepLinkWallet;
|
|
@@ -564,7 +675,7 @@ interface ExternalWalletInfo {
|
|
|
564
675
|
icon_url: string;
|
|
565
676
|
icon_urls: Array<{
|
|
566
677
|
url: string;
|
|
567
|
-
format:
|
|
678
|
+
format: 'svg' | 'png';
|
|
568
679
|
}>;
|
|
569
680
|
/** Whether the wallet can be opened into its in-app browser on mobile. */
|
|
570
681
|
supports_mobile_browse: boolean;
|
|
@@ -573,7 +684,7 @@ interface ExternalWalletInfo {
|
|
|
573
684
|
* `null` means all platforms; an explicit list (e.g. `["ios"]`) tells the
|
|
574
685
|
* client to only offer mobile-browse on those platforms.
|
|
575
686
|
*/
|
|
576
|
-
mobile_browse_platforms: (
|
|
687
|
+
mobile_browse_platforms: ('ios' | 'android')[] | null;
|
|
577
688
|
}
|
|
578
689
|
interface ExternalWalletsResponse {
|
|
579
690
|
data: ExternalWalletInfo[];
|
|
@@ -794,9 +905,9 @@ interface IntegrationAccount {
|
|
|
794
905
|
icon_urls: IconUrl[];
|
|
795
906
|
}
|
|
796
907
|
type AuthenticateOAuthResult = {
|
|
797
|
-
status:
|
|
908
|
+
status: 'pending';
|
|
798
909
|
} | {
|
|
799
|
-
status:
|
|
910
|
+
status: 'completed';
|
|
800
911
|
accounts: IntegrationAccount[];
|
|
801
912
|
access_token: string;
|
|
802
913
|
expires_at: string;
|
|
@@ -931,13 +1042,13 @@ interface PaymentIntentDepositAddress {
|
|
|
931
1042
|
* this vocabulary; the `awaiting_refund` / `refunding` / `refunded` /
|
|
932
1043
|
* `refund_failed` states are only reachable for `type === 'locked_quote'` in v1.
|
|
933
1044
|
*/
|
|
934
|
-
type PaymentIntentStatus =
|
|
1045
|
+
type PaymentIntentStatus = 'requires_payment' | 'processing' | 'succeeded' | 'canceled' | 'expired' | 'awaiting_refund' | 'refunding' | 'refunded' | 'refund_failed';
|
|
935
1046
|
/**
|
|
936
1047
|
* Product mode of a payment intent. `default` is the standard PI flow.
|
|
937
1048
|
* `locked_quote` adds time-boxed rate locking, source-side amount tracking,
|
|
938
1049
|
* an expiration timer, and a refund flow. Same row, different mode.
|
|
939
1050
|
*/
|
|
940
|
-
type PaymentIntentType =
|
|
1051
|
+
type PaymentIntentType = 'default' | 'locked_quote';
|
|
941
1052
|
interface PaymentIntent {
|
|
942
1053
|
id: string;
|
|
943
1054
|
/** Discriminator — `default` for the standard flow, `locked_quote` for rate-locked. */
|
|
@@ -1258,7 +1369,350 @@ interface CashAppLimits {
|
|
|
1258
1369
|
declare function getCashAppLimits(currency?: string, publishableKey?: string): Promise<CashAppLimits>;
|
|
1259
1370
|
declare function createCashAppSession(request: CashAppSessionRequest, publishableKey?: string): Promise<CashAppSessionResponse>;
|
|
1260
1371
|
declare function getCashAppSessionStatus(externalId: string, publishableKey?: string): Promise<CashAppSessionStatusResponse>;
|
|
1372
|
+
interface StripeConfigResponse {
|
|
1373
|
+
publishable_key: string;
|
|
1374
|
+
merchant_identifier: string | null;
|
|
1375
|
+
}
|
|
1376
|
+
interface StripeAuthIntentResponse {
|
|
1377
|
+
auth_intent_id: string;
|
|
1378
|
+
expires_at: number;
|
|
1379
|
+
}
|
|
1380
|
+
interface StripeAccessTokenResponse {
|
|
1381
|
+
access_token: string;
|
|
1382
|
+
refresh_token?: string;
|
|
1383
|
+
token_type: string;
|
|
1384
|
+
expires_in: number;
|
|
1385
|
+
scope?: string;
|
|
1386
|
+
/** Stripe sometimes nests the refresh token here instead of top-level */
|
|
1387
|
+
refresh?: {
|
|
1388
|
+
refresh_token: string;
|
|
1389
|
+
expires_in: number;
|
|
1390
|
+
};
|
|
1391
|
+
}
|
|
1392
|
+
interface StripeCustomerVerification {
|
|
1393
|
+
name: string;
|
|
1394
|
+
status: 'not_started' | 'pending' | 'rejected' | 'verified';
|
|
1395
|
+
errors: string[];
|
|
1396
|
+
}
|
|
1397
|
+
interface StripeCryptoCustomer {
|
|
1398
|
+
id: string;
|
|
1399
|
+
object: string;
|
|
1400
|
+
provided_fields: string[];
|
|
1401
|
+
verifications: StripeCustomerVerification[];
|
|
1402
|
+
}
|
|
1403
|
+
interface StripeConsumerWallet {
|
|
1404
|
+
id: string;
|
|
1405
|
+
livemode: boolean;
|
|
1406
|
+
network: string;
|
|
1407
|
+
wallet_address: string;
|
|
1408
|
+
chain_type?: string;
|
|
1409
|
+
chain_id?: string;
|
|
1410
|
+
}
|
|
1411
|
+
interface StripePaymentToken {
|
|
1412
|
+
id: string;
|
|
1413
|
+
type: 'card' | 'us_bank_account';
|
|
1414
|
+
card?: {
|
|
1415
|
+
brand?: string;
|
|
1416
|
+
last4?: string;
|
|
1417
|
+
exp_month?: number;
|
|
1418
|
+
exp_year?: number;
|
|
1419
|
+
funding: string;
|
|
1420
|
+
wallet?: {
|
|
1421
|
+
type: string;
|
|
1422
|
+
};
|
|
1423
|
+
};
|
|
1424
|
+
us_bank_account?: {
|
|
1425
|
+
account_type?: string;
|
|
1426
|
+
last4?: string;
|
|
1427
|
+
bank_name?: string;
|
|
1428
|
+
};
|
|
1429
|
+
}
|
|
1430
|
+
interface StripeListResponse<T> {
|
|
1431
|
+
data: T[];
|
|
1432
|
+
has_more: boolean;
|
|
1433
|
+
}
|
|
1434
|
+
interface StripeCreateSessionRequest {
|
|
1435
|
+
cryptoCustomerId: string;
|
|
1436
|
+
paymentToken: string;
|
|
1437
|
+
sourceAmount: number;
|
|
1438
|
+
sourceCurrency: string;
|
|
1439
|
+
destinationCurrency: string;
|
|
1440
|
+
destinationNetwork: string;
|
|
1441
|
+
walletAddress: string;
|
|
1442
|
+
}
|
|
1443
|
+
interface StripeOnrampTransactionDetails {
|
|
1444
|
+
wallet_address?: string;
|
|
1445
|
+
wallet_addresses?: Record<string, string> | null;
|
|
1446
|
+
source_amount?: string;
|
|
1447
|
+
source_currency?: string;
|
|
1448
|
+
destination_amount?: string;
|
|
1449
|
+
destination_currency?: string;
|
|
1450
|
+
destination_network?: string;
|
|
1451
|
+
fees?: {
|
|
1452
|
+
network_fee_amount?: string;
|
|
1453
|
+
transaction_fee_amount?: string;
|
|
1454
|
+
};
|
|
1455
|
+
quote_expiration?: number;
|
|
1456
|
+
transaction_id?: string | null;
|
|
1457
|
+
last_error?: string | null;
|
|
1458
|
+
}
|
|
1459
|
+
interface StripeOnrampSession {
|
|
1460
|
+
id: string;
|
|
1461
|
+
object: string;
|
|
1462
|
+
status: string;
|
|
1463
|
+
client_secret?: string;
|
|
1464
|
+
crypto_customer_id?: string;
|
|
1465
|
+
livemode?: boolean;
|
|
1466
|
+
transaction_details?: StripeOnrampTransactionDetails;
|
|
1467
|
+
}
|
|
1468
|
+
interface StripeConfirmRequest {
|
|
1469
|
+
mandateData?: Record<string, unknown>;
|
|
1470
|
+
}
|
|
1471
|
+
interface StripeDefaultTokenResponse {
|
|
1472
|
+
destination_network: string;
|
|
1473
|
+
destination_currency: string;
|
|
1474
|
+
destination_token_metadata: {
|
|
1475
|
+
icon_url?: string;
|
|
1476
|
+
icon_urls?: Array<{
|
|
1477
|
+
url: string;
|
|
1478
|
+
format: string;
|
|
1479
|
+
}>;
|
|
1480
|
+
decimals?: number;
|
|
1481
|
+
symbol: string;
|
|
1482
|
+
name: string;
|
|
1483
|
+
token_address: string;
|
|
1484
|
+
chain_id: string;
|
|
1485
|
+
chain_type: string;
|
|
1486
|
+
chain_name: string;
|
|
1487
|
+
chain?: {
|
|
1488
|
+
icon_url?: string;
|
|
1489
|
+
icon_urls?: Array<{
|
|
1490
|
+
url: string;
|
|
1491
|
+
format: string;
|
|
1492
|
+
}>;
|
|
1493
|
+
chain_id: string;
|
|
1494
|
+
chain_name: string;
|
|
1495
|
+
chain_type: string;
|
|
1496
|
+
};
|
|
1497
|
+
};
|
|
1498
|
+
estimated_processing_time: number | null;
|
|
1499
|
+
}
|
|
1500
|
+
/**
|
|
1501
|
+
* Get the default token for the Stripe headless onramp flow.
|
|
1502
|
+
* Requires the user's destination token context (same params as the
|
|
1503
|
+
* non-headless default_token endpoint).
|
|
1504
|
+
*/
|
|
1505
|
+
declare function stripeGetDefaultToken(params: {
|
|
1506
|
+
tokenAddress: string;
|
|
1507
|
+
chainId: string;
|
|
1508
|
+
chainType: string;
|
|
1509
|
+
countryCode?: string;
|
|
1510
|
+
}, publishableKey?: string): Promise<StripeDefaultTokenResponse>;
|
|
1511
|
+
interface StripeQuoteRequest {
|
|
1512
|
+
sourceAmount: string;
|
|
1513
|
+
sourceCurrency: string;
|
|
1514
|
+
destinationCurrency: string;
|
|
1515
|
+
destinationNetwork: string;
|
|
1516
|
+
}
|
|
1517
|
+
interface StripeQuotesResponse {
|
|
1518
|
+
source_amount: number;
|
|
1519
|
+
source_currency: string;
|
|
1520
|
+
total_fee: number;
|
|
1521
|
+
source_total_amount: number;
|
|
1522
|
+
destination_amount: number;
|
|
1523
|
+
destination_currency: string;
|
|
1524
|
+
destination_network: string;
|
|
1525
|
+
service_provider: string;
|
|
1526
|
+
service_provider_display_name: string;
|
|
1527
|
+
destination_network_quotes: Record<string, unknown[]>;
|
|
1528
|
+
}
|
|
1529
|
+
/**
|
|
1530
|
+
* Backend error_type values for headless Stripe onramp failures. The SDK can
|
|
1531
|
+
* branch on these instead of string-matching Stripe messages.
|
|
1532
|
+
*/
|
|
1533
|
+
type StripeOnrampErrorType = 'stripe_onramp_missing_minimum_identity_verification' | 'stripe_onramp_missing_identity_verification' | 'stripe_onramp_missing_document_verification' | 'stripe_onramp_purchase_limit_reached' | 'stripe_onramp_bad_request' | 'stripe_onramp_forbidden' | 'stripe_onramp_not_found' | 'stripe_onramp_upstream_error' | (string & NonNullable<unknown>);
|
|
1534
|
+
declare class StripeApiResponseError extends Error {
|
|
1535
|
+
readonly statusCode: number;
|
|
1536
|
+
/** Underlying Stripe error code (e.g. `crypto_onramp_session_error`), when available */
|
|
1537
|
+
readonly stripeCode?: string | undefined;
|
|
1538
|
+
/** Unifold backend error_type (e.g. `stripe_onramp_missing_document_verification`) */
|
|
1539
|
+
readonly errorType?: StripeOnrampErrorType | undefined;
|
|
1540
|
+
constructor(message: string, statusCode: number,
|
|
1541
|
+
/** Underlying Stripe error code (e.g. `crypto_onramp_session_error`), when available */
|
|
1542
|
+
stripeCode?: string | undefined,
|
|
1543
|
+
/** Unifold backend error_type (e.g. `stripe_onramp_missing_document_verification`) */
|
|
1544
|
+
errorType?: StripeOnrampErrorType | undefined);
|
|
1545
|
+
}
|
|
1546
|
+
/**
|
|
1547
|
+
* Fetch Stripe config (publishable key + merchant ID) for SDK initialization.
|
|
1548
|
+
* The Stripe publishable key is stored server-side per project, so consumers
|
|
1549
|
+
* don't need to pass it manually — this endpoint returns it.
|
|
1550
|
+
*/
|
|
1551
|
+
declare function stripeGetConfig(publishableKey?: string): Promise<StripeConfigResponse>;
|
|
1552
|
+
/**
|
|
1553
|
+
* Create a LinkAuthIntent to start the Stripe Link OAuth flow.
|
|
1554
|
+
* Only `email` is required — OAuth scopes are configured server-side.
|
|
1555
|
+
*/
|
|
1556
|
+
declare function stripeCreateAuthIntent(email: string, publishableKey?: string): Promise<StripeAuthIntentResponse>;
|
|
1557
|
+
/**
|
|
1558
|
+
* Exchange a consented LinkAuthIntent for OAuth access tokens.
|
|
1559
|
+
*/
|
|
1560
|
+
declare function stripeExchangeTokens(authIntentId: string, publishableKey?: string): Promise<StripeAccessTokenResponse>;
|
|
1561
|
+
/**
|
|
1562
|
+
* Refresh an expired OAuth access token.
|
|
1563
|
+
*/
|
|
1564
|
+
declare function stripeRefreshToken(refreshToken: string, publishableKey?: string): Promise<StripeAccessTokenResponse>;
|
|
1565
|
+
declare function stripeGetCustomer(customerId: string, oauthToken: string, publishableKey?: string): Promise<StripeCryptoCustomer>;
|
|
1566
|
+
/**
|
|
1567
|
+
* List wallet addresses registered for a CryptoCustomer.
|
|
1568
|
+
* Endpoint: GET /customers/:id/wallet_addresses
|
|
1569
|
+
*/
|
|
1570
|
+
declare function stripeListWallets(customerId: string, oauthToken: string, publishableKey?: string): Promise<StripeListResponse<StripeConsumerWallet>>;
|
|
1571
|
+
declare function stripeListPaymentTokens(customerId: string, oauthToken: string, publishableKey?: string): Promise<StripeListResponse<StripePaymentToken>>;
|
|
1572
|
+
/**
|
|
1573
|
+
* Create a headless CryptoOnrampSession.
|
|
1574
|
+
* Uses `walletAddress` (string) not `wallet_addresses` (object).
|
|
1575
|
+
*/
|
|
1576
|
+
declare function stripeCreateSession(request: StripeCreateSessionRequest, oauthToken: string, publishableKey?: string): Promise<StripeOnrampSession>;
|
|
1577
|
+
/**
|
|
1578
|
+
* Confirm a CryptoOnrampSession to initiate payment.
|
|
1579
|
+
* Endpoint: POST /sessions/:id/confirm (not /checkout)
|
|
1580
|
+
*/
|
|
1581
|
+
declare function stripeConfirmSession(sessionId: string, oauthToken: string, request?: StripeConfirmRequest, publishableKey?: string): Promise<StripeOnrampSession>;
|
|
1582
|
+
declare function stripeRefreshQuote(sessionId: string, oauthToken: string, publishableKey?: string): Promise<StripeOnrampSession>;
|
|
1583
|
+
/**
|
|
1584
|
+
* Retrieve a CryptoOnrampSession by ID.
|
|
1585
|
+
*/
|
|
1586
|
+
declare function stripeGetSession(sessionId: string, oauthToken: string, publishableKey?: string): Promise<StripeOnrampSession>;
|
|
1587
|
+
/**
|
|
1588
|
+
* Get onramp quotes from Stripe — returns quotes grouped by network
|
|
1589
|
+
* with destination amounts, fees, and totals.
|
|
1590
|
+
*/
|
|
1591
|
+
/**
|
|
1592
|
+
* Get onramp quotes from Stripe. Same shape as the unified onramp quotes
|
|
1593
|
+
* (sourceAmount, sourceCurrency, destinationCurrency, destinationNetwork).
|
|
1594
|
+
* OAuth token is optional — without it, returns indicative pricing.
|
|
1595
|
+
*/
|
|
1596
|
+
declare function stripeGetQuotes(request: StripeQuoteRequest, oauthToken?: string, publishableKey?: string): Promise<StripeQuotesResponse>;
|
|
1597
|
+
interface StripeTransactionLimitEntry {
|
|
1598
|
+
limit: number;
|
|
1599
|
+
settlement_speed: 'instant' | 'standard';
|
|
1600
|
+
}
|
|
1601
|
+
/** limits keyed by source currency → payment method → entries */
|
|
1602
|
+
interface StripeTransactionLimitsResponse {
|
|
1603
|
+
object: string;
|
|
1604
|
+
crypto_customer_id: string;
|
|
1605
|
+
livemode: boolean;
|
|
1606
|
+
limits: Record<string, Record<string, StripeTransactionLimitEntry[]>>;
|
|
1607
|
+
}
|
|
1608
|
+
/**
|
|
1609
|
+
* Retrieve the customer's remaining onramp transaction limits.
|
|
1610
|
+
* Use this to proactively detect when a desired amount exceeds the limit
|
|
1611
|
+
* for the customer's current KYC tier before attempting to create a session.
|
|
1612
|
+
*/
|
|
1613
|
+
declare function stripeGetTransactionLimits(params: {
|
|
1614
|
+
cryptoCustomerId: string;
|
|
1615
|
+
destinationNetwork: string;
|
|
1616
|
+
walletAddress: string;
|
|
1617
|
+
destinationTag?: string;
|
|
1618
|
+
refresh?: boolean;
|
|
1619
|
+
}, oauthToken: string, publishableKey?: string): Promise<StripeTransactionLimitsResponse>;
|
|
1261
1620
|
declare function sendHypercoreTransaction(request: SendHypercoreTransactionRequest, publishableKey?: string): Promise<SendHypercoreTransactionResponse>;
|
|
1621
|
+
interface CoinbaseLegalAgreement {
|
|
1622
|
+
key: string;
|
|
1623
|
+
name: string;
|
|
1624
|
+
url: string;
|
|
1625
|
+
}
|
|
1626
|
+
interface CoinbaseLegalAgreementsResponse {
|
|
1627
|
+
agreements: CoinbaseLegalAgreement[];
|
|
1628
|
+
/** Disclosure copy; `{{links}}` is replaced with the joined agreement links. */
|
|
1629
|
+
disclosure: string;
|
|
1630
|
+
}
|
|
1631
|
+
/** Coinbase Guest Checkout ToS / User Agreement / Privacy URLs. Safe to cache. */
|
|
1632
|
+
declare function getCoinbaseLegalAgreements(publishableKey?: string): Promise<CoinbaseLegalAgreementsResponse>;
|
|
1633
|
+
type OnrampVerificationFactorStatus = 'unverified' | 'verified';
|
|
1634
|
+
interface OnrampVerificationFactor {
|
|
1635
|
+
status: OnrampVerificationFactorStatus;
|
|
1636
|
+
verified_at?: string;
|
|
1637
|
+
}
|
|
1638
|
+
type OnrampVerificationStatus = 'requires_input' | 'verified' | 'expired' | 'canceled';
|
|
1639
|
+
interface OnrampVerificationSession {
|
|
1640
|
+
id: string;
|
|
1641
|
+
object: 'onramp.verification_session';
|
|
1642
|
+
status: OnrampVerificationStatus;
|
|
1643
|
+
/** Returned ONLY on creation. Required on all subsequent actions. */
|
|
1644
|
+
client_secret?: string;
|
|
1645
|
+
email: OnrampVerificationFactor;
|
|
1646
|
+
phone: OnrampVerificationFactor;
|
|
1647
|
+
expires_at: string;
|
|
1648
|
+
}
|
|
1649
|
+
interface CreateOnrampVerificationSessionRequest {
|
|
1650
|
+
email: string;
|
|
1651
|
+
/** US phone in E.164 (e.g. +12345678901). */
|
|
1652
|
+
phone: string;
|
|
1653
|
+
terms_accepted: boolean;
|
|
1654
|
+
/** Skip email OTP when the caller has verified the address out-of-band. Phone OTP is never skippable. */
|
|
1655
|
+
email_already_verified?: boolean;
|
|
1656
|
+
/** Optional correlation id for a planned order. */
|
|
1657
|
+
external_id?: string;
|
|
1658
|
+
}
|
|
1659
|
+
interface OnrampVerificationTokenResponse {
|
|
1660
|
+
token: string;
|
|
1661
|
+
token_type: 'Bearer';
|
|
1662
|
+
/** Token lifetime in seconds. */
|
|
1663
|
+
expires_in: number;
|
|
1664
|
+
}
|
|
1665
|
+
declare function createOnrampVerificationSession(request: CreateOnrampVerificationSessionRequest, publishableKey?: string): Promise<OnrampVerificationSession>;
|
|
1666
|
+
declare function sendOnrampVerificationOtp(id: string, factor: 'email' | 'phone', clientSecret: string, publishableKey?: string): Promise<OnrampVerificationSession>;
|
|
1667
|
+
declare function verifyOnrampVerificationOtp(id: string, factor: 'email' | 'phone', clientSecret: string, code: string, publishableKey?: string): Promise<OnrampVerificationSession>;
|
|
1668
|
+
declare function exchangeOnrampVerificationToken(id: string, clientSecret: string, publishableKey?: string): Promise<OnrampVerificationTokenResponse>;
|
|
1669
|
+
declare function getOnrampVerificationSession(id: string, clientSecret: string, publishableKey?: string): Promise<OnrampVerificationSession>;
|
|
1670
|
+
interface CreateCoinbaseApplePaySessionRequest {
|
|
1671
|
+
source_currency: string;
|
|
1672
|
+
/** Mutually exclusive with destination_amount. */
|
|
1673
|
+
source_amount?: string;
|
|
1674
|
+
/** Mutually exclusive with source_amount. */
|
|
1675
|
+
destination_amount?: string;
|
|
1676
|
+
destination_currency: string;
|
|
1677
|
+
destination_network: string;
|
|
1678
|
+
wallet_address: string;
|
|
1679
|
+
/** Optional override; defaults to the verified email on the onramp token. */
|
|
1680
|
+
email?: string;
|
|
1681
|
+
/** Auto-generated when omitted. */
|
|
1682
|
+
external_id?: string;
|
|
1683
|
+
/**
|
|
1684
|
+
* Iframe-embedding origin (CDP-registered + Apple-verified by the merchant).
|
|
1685
|
+
* Reserved for a future iframe checkout — the SDK currently opens the payment
|
|
1686
|
+
* surface in a popup window and ignores this field on the server. Accepted
|
|
1687
|
+
* now so partners can pass it without an SDK upgrade later.
|
|
1688
|
+
*/
|
|
1689
|
+
domain?: string;
|
|
1690
|
+
}
|
|
1691
|
+
interface CoinbaseApplePaySessionResponse {
|
|
1692
|
+
id: string;
|
|
1693
|
+
external_id: string;
|
|
1694
|
+
/** URL to load in a webview/iframe — renders the Apple Pay button. */
|
|
1695
|
+
url: string;
|
|
1696
|
+
service_provider: string;
|
|
1697
|
+
status: string;
|
|
1698
|
+
wallet_address: string;
|
|
1699
|
+
source_currency: string;
|
|
1700
|
+
source_amount: string;
|
|
1701
|
+
destination_currency: string;
|
|
1702
|
+
destination_network: string;
|
|
1703
|
+
destination_amount?: string;
|
|
1704
|
+
total_fee?: number;
|
|
1705
|
+
}
|
|
1706
|
+
/**
|
|
1707
|
+
* Create an Apple Pay onramp session. Requires a fresh `onrampToken` from
|
|
1708
|
+
* `exchangeOnrampVerificationToken`.
|
|
1709
|
+
*
|
|
1710
|
+
* Pass `signal` from an `AbortController` when calling from a debounced /
|
|
1711
|
+
* race-prone code path (e.g. the amount-screen create-on-input loop) so a
|
|
1712
|
+
* superseded in-flight request can be cancelled and its response can't
|
|
1713
|
+
* overwrite a newer one.
|
|
1714
|
+
*/
|
|
1715
|
+
declare function createCoinbaseApplePaySession(request: CreateCoinbaseApplePaySessionRequest, onrampToken: string, publishableKey?: string, signal?: AbortSignal): Promise<CoinbaseApplePaySessionResponse>;
|
|
1262
1716
|
|
|
1263
1717
|
/**
|
|
1264
1718
|
* Format a stablecoin amount to 2 decimal places, ceiling any fractional
|
|
@@ -1296,12 +1750,51 @@ declare enum DepositEventType {
|
|
|
1296
1750
|
declare enum WithdrawEventType {
|
|
1297
1751
|
DIRECT_EXECUTION_SUCCEEDED = "direct_execution.succeeded"
|
|
1298
1752
|
}
|
|
1753
|
+
/** Event types emitted by the checkout flow. */
|
|
1754
|
+
declare enum CheckoutEventType {
|
|
1755
|
+
PAYMENT_INTENT_SUCCEEDED = "payment_intent.succeeded"
|
|
1756
|
+
}
|
|
1299
1757
|
/** Funding method used by a deposit flow. */
|
|
1300
|
-
type DepositMethod =
|
|
1758
|
+
type DepositMethod = 'transfer' | 'card' | 'cashapp' | 'apple_pay' | 'pay_with_exchange' | 'exchange_connect' | 'wallet_connect';
|
|
1759
|
+
/** Funding method used by a checkout flow. */
|
|
1760
|
+
type CheckoutMethod = 'transfer' | 'wallet_connect';
|
|
1301
1761
|
/** `data.object` payload for {@link DepositEventType.ONRAMP_SESSION_CREATED} */
|
|
1302
1762
|
interface OnrampSessionCreatedData {
|
|
1303
1763
|
externalId: string;
|
|
1304
1764
|
}
|
|
1765
|
+
/**
|
|
1766
|
+
* Callback-facing payment intent object.
|
|
1767
|
+
* Mirrors the field-naming conventions used by {@link DirectExecution}
|
|
1768
|
+
* (camelCase, `BaseUnit` / `Usd` amount suffixes, `failureReason`, no currency
|
|
1769
|
+
* code or decimals — derive those from `*TokenAddress` if needed).
|
|
1770
|
+
*/
|
|
1771
|
+
interface CheckoutPaymentIntent {
|
|
1772
|
+
id: string;
|
|
1773
|
+
status: 'succeeded';
|
|
1774
|
+
recipientAddress: string;
|
|
1775
|
+
destinationChainType: string;
|
|
1776
|
+
destinationChainId: string;
|
|
1777
|
+
destinationTokenAddress: string;
|
|
1778
|
+
destinationAmountBaseUnit: string;
|
|
1779
|
+
destinationAmountUsd: string;
|
|
1780
|
+
destinationAmountReceivedBaseUnit: string;
|
|
1781
|
+
destinationAmountReceivedUsd: string;
|
|
1782
|
+
sourceChainType: string | null;
|
|
1783
|
+
sourceChainId: string | null;
|
|
1784
|
+
sourceTokenAddress: string | null;
|
|
1785
|
+
sourceAmountBaseUnit: string | null;
|
|
1786
|
+
sourceAmountUsd: string | null;
|
|
1787
|
+
sourceAmountReceivedBaseUnit: string | null;
|
|
1788
|
+
sourceAmountReceivedUsd: string | null;
|
|
1789
|
+
/** Atomic payout (pool → recipient) hash. Locked-quote only; null until broadcast. */
|
|
1790
|
+
transactionHash: string | null;
|
|
1791
|
+
failureReason: string | null;
|
|
1792
|
+
}
|
|
1793
|
+
/**
|
|
1794
|
+
* `data.object` payload for {@link CheckoutEventType.PAYMENT_INTENT_SUCCEEDED}.
|
|
1795
|
+
* @deprecated Use {@link CheckoutPaymentIntent} — kept as an alias for back-compat.
|
|
1796
|
+
*/
|
|
1797
|
+
type CheckoutPaymentIntentData = CheckoutPaymentIntent;
|
|
1305
1798
|
/**
|
|
1306
1799
|
* Callback-facing direct execution object.
|
|
1307
1800
|
* Intentionally separate from legacy `DirectExecutionResponse` naming.
|
|
@@ -1334,6 +1827,10 @@ interface DepositEventDataMap {
|
|
|
1334
1827
|
interface WithdrawEventDataMap {
|
|
1335
1828
|
[WithdrawEventType.DIRECT_EXECUTION_SUCCEEDED]: DirectExecution;
|
|
1336
1829
|
}
|
|
1830
|
+
/** Map from event type to its `data.object` shape */
|
|
1831
|
+
interface CheckoutEventDataMap {
|
|
1832
|
+
[CheckoutEventType.PAYMENT_INTENT_SUCCEEDED]: CheckoutPaymentIntent;
|
|
1833
|
+
}
|
|
1337
1834
|
/**
|
|
1338
1835
|
* Event envelope emitted by the deposit flow, inspired by the server-side
|
|
1339
1836
|
* webhook payload shape: top-level metadata (`id`, `type`, `created`) with
|
|
@@ -1370,6 +1867,18 @@ type WithdrawEvent = {
|
|
|
1370
1867
|
};
|
|
1371
1868
|
};
|
|
1372
1869
|
}[WithdrawEventType];
|
|
1870
|
+
/** Event envelope emitted by the checkout flow. */
|
|
1871
|
+
type CheckoutEvent = {
|
|
1872
|
+
[K in CheckoutEventType]: {
|
|
1873
|
+
id: string;
|
|
1874
|
+
type: K;
|
|
1875
|
+
created: number;
|
|
1876
|
+
method?: CheckoutMethod;
|
|
1877
|
+
data: {
|
|
1878
|
+
object: CheckoutEventDataMap[K];
|
|
1879
|
+
};
|
|
1880
|
+
};
|
|
1881
|
+
}[CheckoutEventType];
|
|
1373
1882
|
/** Convenience type for a fully-typed `onramp_session.created` event */
|
|
1374
1883
|
type OnrampSessionCreatedEvent = Extract<DepositEvent, {
|
|
1375
1884
|
type: DepositEventType.ONRAMP_SESSION_CREATED;
|
|
@@ -1385,6 +1894,10 @@ type DirectExecutionSucceededEvent = Extract<DepositEvent, {
|
|
|
1385
1894
|
type WithdrawDirectExecutionSucceededEvent = Extract<WithdrawEvent, {
|
|
1386
1895
|
type: WithdrawEventType.DIRECT_EXECUTION_SUCCEEDED;
|
|
1387
1896
|
}>;
|
|
1897
|
+
/** Convenience type for a fully-typed `payment_intent.succeeded` checkout event */
|
|
1898
|
+
type CheckoutPaymentIntentSucceededEvent = Extract<CheckoutEvent, {
|
|
1899
|
+
type: CheckoutEventType.PAYMENT_INTENT_SUCCEEDED;
|
|
1900
|
+
}>;
|
|
1388
1901
|
|
|
1389
1902
|
/**
|
|
1390
1903
|
* User IP information interface
|
|
@@ -1508,4 +2021,4 @@ declare const i18n: {
|
|
|
1508
2021
|
};
|
|
1509
2022
|
type I18nStrings = typeof i18n;
|
|
1510
2023
|
|
|
1511
|
-
export { ActionType, type AddressBalanceResponse, type AddressBalancesResponse, type AddressValidationFailureCode, type AddressValidationMetadata, type AuthenticateOAuthResult, type AutoSwapRequest, type AutoSwapResponse, type BlockedCountrySubdivision, type BuildHypercoreTransactionRequest, type BuildHypercoreTransactionResponse, type BuildSolanaTransactionRequest, type BuildSolanaTransactionResponse, type CashAppLimits, type CashAppSessionRequest, type CashAppSessionResponse, type CashAppSessionStatusResponse, type ChainType, type ConfirmIntegrationTransferResult, type CreateDepositAddressRequest, type CreateExchangeSessionRequest, type CreateExchangeSessionResponse, type CreateIntegrationTransferParams, type CreateIntegrationTransferResult, type DefaultTokenChain, type DefaultTokenMetadata, type DefaultTokenResponse, type DepositAddressResponse, type DepositEvent, DepositEventType, type DepositMethod, type DepositQuote, type DepositQuoteRequest, type DestinationToken, type DestinationTokenChain, type DirectExecution, type DirectExecutionResponse, type DirectExecutionSucceededEvent, type EvmContractCall, type ExchangeProviderInfo, type ExchangeProvidersResponse, type ExchangeSessionStartParams, type ExchangeWalletAddress, ExecutionStatus, type ExternalWalletChainType, type ExternalWalletInfo, type ExternalWalletsResponse, type FeaturedToken, type FeaturedWallet, type FiatCurrenciesResponse, type FiatCurrency, type GetExchangesQuery, type HypercoreActivationRequest, type HypercoreActivationResponse, type I18nStrings, type IconUrl, IneligibilityReason, type IntegrationAccount, type IntegrationExchangeInfo, type IntegrationExchangesResponse, type IntegrationFeeAmount, type IntegrationHoldingsResponse, IntegrationProvider, type IpAddressResponse, type LockedQuoteLimits, type LockedQuotePreview, type LockedQuotePreviewRequest, type OnrampQuote, type OnrampQuotesRequest, type OnrampQuotesResponse, type OnrampSessionCreatedData, type OnrampSessionCreatedEvent, type OnrampSessionRequest, type OnrampSessionResponse, type PaymentIntent, type PaymentIntentDepositAddress, type PaymentIntentExecutionsResponse, type PaymentIntentStatus, type PaymentIntentType, type PaymentNetwork, type PollExecutionsRequest, type PollExecutionsResponse, type ProductType, type ProjectConfigResponse, type QueryExecutionsRequest, type QueryExecutionsResponse, type RefreshIntegrationTokenResult, SOLANA_USDC_ADDRESS, type SendHypercoreTransactionRequest, type SendHypercoreTransactionResponse, type SendSolanaTransactionRequest, type SendSolanaTransactionResponse, type SourceToken, type SourceTokenNetwork, type StartIntegrationOAuthResult, type SupportedChain, type SupportedDepositTokensResponse, type SupportedDestinationTokensResponse, type SupportedSourceTokensQuery, type SupportedSourceTokensResponse, type SupportedToken, type TokenBalance, type TokenChain, type TokenChainIconUrl, type TokenChainsResponse, type TokenIconUrl, type TokenInfo, type TokenMetadata, type TransferDefaultTokenParams, type TransferDefaultTokenResult, type UserIpInfo, type VerifyAddressRequest, type VerifyAddressResponse, type Wallet, type WalletMobileDeepLinkDepositAddress, type WalletMobileDeepLinkResponse, type WalletMobileDeepLinkWallet, type WithdrawDirectExecutionSucceededEvent, type WithdrawEvent, WithdrawEventType, authenticateIntegrationOAuth, buildHypercoreTransaction, buildSolanaTransaction, checkHypercoreActivation, confirmIntegrationTransfer, createCashAppSession, createDepositAddress, createExchangeSession, createIntegrationTransfer, createOnrampSession, formatStablecoinAmount, generateKSUID, generatePrefixedKSUID, getAddressBalance, getAddressBalances, getApiBaseUrl, getCashAppLimits, getCashAppSessionStatus, getChainName, getDefaultOnrampToken, getDepositAddress, getDepositQuote, getExchangeSessionStartUrl, getExchanges, getExternalWallets, getFiatCurrencies, getIconUrl, getIconUrlWithCdn, getIntegrationExchanges, getIntegrationHoldings, getIntegrationTransferDefaultToken, getIpAddress, getOnrampQuotes, getOnrampSessionStartUrl, getPreferredIconUrl, getProjectConfig, getSupportedDepositTokens, getSupportedDestinationTokens, getTokenChains, getTokenMetadata, getWalletByChainType, getWalletMobileDeepLink, i18n, listPaymentIntentExecutions, pollDirectExecutions, queryExecutions, refreshIntegrationToken, retrievePaymentIntent, revokeIntegrationToken, sendHypercoreTransaction, sendSolanaTransaction, setApiConfig, startIntegrationOAuth, useUserIp, verifyRecipientAddress };
|
|
2024
|
+
export { ActionType, type AddressBalanceResponse, type AddressBalancesResponse, type AddressValidationFailureCode, type AddressValidationMetadata, type ApplePayProvider, type ApplePayProvidersResponse, type AuthenticateOAuthResult, type AutoSwapRequest, type AutoSwapResponse, type BankTransferConfig, type BankTransferProvider, type BankTransferProvidersResponse, type BlockedCountrySubdivision, type BuildHypercoreTransactionRequest, type BuildHypercoreTransactionResponse, type BuildSolanaTransactionRequest, type BuildSolanaTransactionResponse, type CashAppLimits, type CashAppSessionRequest, type CashAppSessionResponse, type CashAppSessionStatusResponse, type ChainType, type CheckoutEvent, CheckoutEventType, type CheckoutMethod, type CheckoutPaymentIntent, type CheckoutPaymentIntentData, type CheckoutPaymentIntentSucceededEvent, type CoinbaseApplePaySessionResponse, type CoinbaseLegalAgreement, type CoinbaseLegalAgreementsResponse, type ConfirmIntegrationTransferResult, type CreateCoinbaseApplePaySessionRequest, type CreateDepositAddressRequest, type CreateExchangeSessionRequest, type CreateExchangeSessionResponse, type CreateIntegrationTransferParams, type CreateIntegrationTransferResult, type CreateOnrampVerificationSessionRequest, type DefaultTokenChain, type DefaultTokenMetadata, type DefaultTokenResponse, type DepositAddressResponse, type DepositEvent, DepositEventType, type DepositMethod, type DepositQuote, type DepositQuoteRequest, type DestinationToken, type DestinationTokenChain, type DirectExecution, type DirectExecutionResponse, type DirectExecutionSucceededEvent, type EvmContractCall, type ExchangeProviderInfo, type ExchangeProvidersResponse, type ExchangeSessionStartParams, type ExchangeWalletAddress, ExecutionStatus, type ExternalWalletChainType, type ExternalWalletInfo, type ExternalWalletsResponse, type FeaturedToken, type FeaturedWallet, type FiatCurrenciesResponse, type FiatCurrency, type GetBankTransferProvidersOptions, type GetExchangesQuery, type HypercoreActivationRequest, type HypercoreActivationResponse, type I18nStrings, type IconUrl, IneligibilityReason, type IntegrationAccount, type IntegrationExchangeInfo, type IntegrationExchangesResponse, type IntegrationFeeAmount, type IntegrationHoldingsResponse, IntegrationProvider, type IpAddressResponse, type LockedQuoteLimits, type LockedQuotePreview, type LockedQuotePreviewRequest, type OnrampQuote, type OnrampQuotesRequest, type OnrampQuotesResponse, type OnrampSessionCreatedData, type OnrampSessionCreatedEvent, type OnrampSessionPaymentMethod, type OnrampSessionRequest, type OnrampSessionResponse, type OnrampVerificationFactor, type OnrampVerificationFactorStatus, type OnrampVerificationSession, type OnrampVerificationStatus, type OnrampVerificationTokenResponse, type PaymentIntent, type PaymentIntentDepositAddress, type PaymentIntentExecutionsResponse, type PaymentIntentStatus, type PaymentIntentType, type PaymentNetwork, type PollExecutionsRequest, type PollExecutionsResponse, type ProductType, type ProjectConfigResponse, type QueryExecutionsRequest, type QueryExecutionsResponse, type RefreshIntegrationTokenResult, SOLANA_USDC_ADDRESS, type SendHypercoreTransactionRequest, type SendHypercoreTransactionResponse, type SendSolanaTransactionRequest, type SendSolanaTransactionResponse, type SourceToken, type SourceTokenNetwork, type StartIntegrationOAuthResult, type StripeAccessTokenResponse, StripeApiResponseError, type StripeAuthIntentResponse, type StripeConfigResponse, type StripeConfirmRequest, type StripeConsumerWallet, type StripeCreateSessionRequest, type StripeCryptoCustomer, type StripeCustomerVerification, type StripeDefaultTokenResponse, type StripeListResponse, type StripeOnrampErrorType, type StripeOnrampSession, type StripeOnrampTransactionDetails, type StripePaymentToken, type StripeQuoteRequest, type StripeQuotesResponse, type StripeTransactionLimitEntry, type StripeTransactionLimitsResponse, type SupportedChain, type SupportedDepositTokensResponse, type SupportedDestinationTokensResponse, type SupportedSourceTokensQuery, type SupportedSourceTokensResponse, type SupportedToken, type TokenBalance, type TokenChain, type TokenChainIconUrl, type TokenChainsResponse, type TokenIconUrl, type TokenInfo, type TokenMetadata, type TransferDefaultTokenParams, type TransferDefaultTokenResult, type UserIpInfo, type VerifyAddressRequest, type VerifyAddressResponse, type Wallet, type WalletMobileDeepLinkDepositAddress, type WalletMobileDeepLinkResponse, type WalletMobileDeepLinkWallet, type WithdrawDirectExecutionSucceededEvent, type WithdrawEvent, WithdrawEventType, authenticateIntegrationOAuth, buildHypercoreTransaction, buildSolanaTransaction, checkHypercoreActivation, confirmIntegrationTransfer, createCashAppSession, createCoinbaseApplePaySession, createDepositAddress, createExchangeSession, createIntegrationTransfer, createOnrampSession, createOnrampVerificationSession, exchangeOnrampVerificationToken, formatStablecoinAmount, generateKSUID, generatePrefixedKSUID, getAddressBalance, getAddressBalances, getApiBaseUrl, getApplePayProviders, getBankTransferProviders, getCashAppLimits, getCashAppSessionStatus, getChainName, getCoinbaseLegalAgreements, getDefaultOnrampToken, getDepositAddress, getDepositQuote, getExchangeSessionStartUrl, getExchanges, getExternalWallets, getFiatCurrencies, getIconUrl, getIconUrlWithCdn, getIntegrationExchanges, getIntegrationHoldings, getIntegrationTransferDefaultToken, getIpAddress, getOnrampQuotes, getOnrampSessionStartUrl, getOnrampVerificationSession, getPreferredIconUrl, getProjectConfig, getSupportedDepositTokens, getSupportedDestinationTokens, getTokenChains, getTokenMetadata, getWalletByChainType, getWalletMobileDeepLink, i18n, listPaymentIntentExecutions, pollDirectExecutions, queryExecutions, refreshIntegrationToken, retrievePaymentIntent, revokeIntegrationToken, sendHypercoreTransaction, sendOnrampVerificationOtp, sendSolanaTransaction, setApiConfig, startIntegrationOAuth, stripeConfirmSession, stripeCreateAuthIntent, stripeCreateSession, stripeExchangeTokens, stripeGetConfig, stripeGetCustomer, stripeGetDefaultToken, stripeGetQuotes, stripeGetSession, stripeGetTransactionLimits, stripeListPaymentTokens, stripeListWallets, stripeRefreshQuote, stripeRefreshToken, useUserIp, verifyOnrampVerificationOtp, verifyRecipientAddress };
|