@privy-io/js-sdk-core 0.78.1 → 0.78.3
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/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/dts/index.d.mts +532 -8
- package/dist/dts/index.d.ts +532 -8
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/dts/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AuthenticatedUser, CardIssuingCardResponse, CardIssuingCardStatus, CardIssuingCardsResponse, CardIssuingCustomerResponse, CardIssuingReplacementReason, CardIssuingTransactionsResponse, CoinbaseOnRampInitInput, CoinbaseOnRampInitResponse, CreateCryptoDepositAccountResponse, CryptoDepositAccountConfigResponse, CryptoDepositAddressRoute, CryptoDepositAddressStrategy, CryptoDepositAsset, CryptoDepositAssetFilter, DepositAccountCryptoQuoteResponse, GetCryptoDepositAccountNextOrderResponse, GetCryptoDepositAccountOrderResponse, IntegrationEnvironment, LinkedAccount, LinkedAccountBitcoinSegwitEmbeddedWallet, LinkedAccountBitcoinTaprootEmbeddedWallet, LinkedAccountEmbeddedWallet, LinkedAccountEmbeddedWalletWithID, LinkedAccountEthereumEmbeddedWallet, LinkedAccountSmartWallet, LinkedAccountSolanaEmbeddedWallet, MfaPasskeyInitRequestBody, MfaSMSInitRequestBody, MoonpayOnRampSignInput, OAuthProviderID, OAuthProviderID as OAuthProviderID$1, OAuthTokens, PasskeyAuthenticatorVerifyResponse, RawSignResponse, SmartWalletConfiguration, SmartWalletType as SmartWalletType$1, TransferRequestBody, UnsignedEthereumTransaction, User, Wallet, WalletCreateParams, WalletRawSignParams, WalletRpcParams, WalletRpcResponse, WalletUpdateParams, Wallets } from "@privy-io/api-types";
|
|
1
|
+
import { AuthenticatedUser, CardIssuingBankInfo, CardIssuingCardResponse, CardIssuingCardStatus, CardIssuingCardsResponse, CardIssuingCustomerResponse, CardIssuingReplacementReason, CardIssuingTransactionResponse, CardIssuingTransactionStatus, CardIssuingTransactionsResponse, CoinbaseOnRampInitInput, CoinbaseOnRampInitResponse, CreateCryptoDepositAccountResponse, CryptoDepositAccountConfigResponse, CryptoDepositAddressRoute, CryptoDepositAddressStrategy, CryptoDepositAsset, CryptoDepositAssetFilter, DepositAccountCryptoQuoteResponse, GetCryptoDepositAccountNextOrderResponse, GetCryptoDepositAccountOrderResponse, IntegrationEnvironment, LinkedAccount, LinkedAccountBitcoinSegwitEmbeddedWallet, LinkedAccountBitcoinTaprootEmbeddedWallet, LinkedAccountEmbeddedWallet, LinkedAccountEmbeddedWalletWithID, LinkedAccountEthereumEmbeddedWallet, LinkedAccountSmartWallet, LinkedAccountSolanaEmbeddedWallet, MfaPasskeyInitRequestBody, MfaSMSInitRequestBody, MoonpayOnRampSignInput, OAuthProviderID, OAuthProviderID as OAuthProviderID$1, OAuthTokens, PasskeyAuthenticatorVerifyResponse, RawSignResponse, SmartWalletConfiguration, SmartWalletType as SmartWalletType$1, TransferRequestBody, UnsignedEthereumTransaction, User, Wallet, WalletCreateParams, WalletRawSignParams, WalletRpcParams, WalletRpcResponse, WalletUpdateParams, Wallets } from "@privy-io/api-types";
|
|
2
2
|
import { Chain, RpcConfig } from "@privy-io/chains";
|
|
3
|
-
import { Route } from "@privy-io/routes";
|
|
3
|
+
import { CryptoDepositAccountConfigSearchResponse, Route } from "@privy-io/routes";
|
|
4
4
|
import "@metamask/eth-sig-util";
|
|
5
5
|
import "viem/account-abstraction";
|
|
6
6
|
import { StrictUnsignedTempoTransactionRequest, StrictUnsignedTransactionRequest } from "@privy-io/ethereum";
|
|
@@ -2983,9 +2983,9 @@ interface SendTransactionOutput {
|
|
|
2983
2983
|
/**
|
|
2984
2984
|
* Requests a cross-app wallet to send a transaction, returning the resulting transaction hash.
|
|
2985
2985
|
*/
|
|
2986
|
-
declare const sendTransaction: ({ client, openAuthSession }: SendTransactionDependencies) => ({ user, transaction, address, redirectUrl }: SendTransactionInput) => Promise<SendTransactionOutput>;
|
|
2986
|
+
declare const sendTransaction$1: ({ client, openAuthSession }: SendTransactionDependencies) => ({ user, transaction, address, redirectUrl }: SendTransactionInput) => Promise<SendTransactionOutput>;
|
|
2987
2987
|
declare namespace index_d_exports$4 {
|
|
2988
|
-
export { SendTransactionDependencies, SendTransactionInput, SendTransactionOutput, SignMessageDependencies, SignMessageInput, SignMessageOutput, SignTypedDataDependencies, SignTypedDataInput, SignTypedDataOutput, sendTransaction, signMessage, signTypedData };
|
|
2988
|
+
export { SendTransactionDependencies, SendTransactionInput, SendTransactionOutput, SignMessageDependencies, SignMessageInput, SignMessageOutput, SignTypedDataDependencies, SignTypedDataInput, SignTypedDataOutput, sendTransaction$1 as sendTransaction, signMessage, signTypedData };
|
|
2989
2989
|
}
|
|
2990
2990
|
declare namespace index_d_exports {
|
|
2991
2991
|
export { LinkWithCrossAppAuthDependencies, LinkWithCrossAppAuthInput, LinkWithCrossAppAuthOutput, LoginWithCrossAppAuthDependencies, LoginWithCrossAppAuthInput, LoginWithCrossAppAuthOutput, linkWithCrossAppAuth, loginWithCrossAppAuth, index_d_exports$4 as wallet };
|
|
@@ -3123,6 +3123,7 @@ declare function getConfig(privy: Privy): Promise<DepositConfig>;
|
|
|
3123
3123
|
//#endregion
|
|
3124
3124
|
//#region src/action/cryptoDepositAccount/types.d.ts
|
|
3125
3125
|
type CryptoDepositAccountConfig = CryptoDepositAccountConfigResponse;
|
|
3126
|
+
type CryptoDepositAccountSearchResult = CryptoDepositAccountConfigSearchResponse;
|
|
3126
3127
|
type CryptoDepositAccountQuote = DepositAccountCryptoQuoteResponse;
|
|
3127
3128
|
type CreateCryptoDepositAccountWithConfigInput = {
|
|
3128
3129
|
walletId: string;
|
|
@@ -3209,6 +3210,10 @@ declare function getCryptoDepositAccountQuote(privy: Pick<Privy, 'fetchPrivyRout
|
|
|
3209
3210
|
/** Conversion rate as dest-per-source, or undefined when the quote amounts are not usable. */
|
|
3210
3211
|
declare function indicativeRateFromQuote(quote: CryptoDepositAccountQuote): string | undefined;
|
|
3211
3212
|
//#endregion
|
|
3213
|
+
//#region src/action/cryptoDepositAccount/search.d.ts
|
|
3214
|
+
/** Search deposit-account source tokens by symbol, name, or contract address. */
|
|
3215
|
+
declare function searchCryptoDepositAccountConfig(privy: Pick<Privy, 'fetchPrivyRoute'>, query: string): Promise<CryptoDepositAccountSearchResult>;
|
|
3216
|
+
//#endregion
|
|
3212
3217
|
//#region src/action/cryptoDepositAccount/orders.d.ts
|
|
3213
3218
|
/** Fetches a crypto deposit-account sweep by wallet action ID. */
|
|
3214
3219
|
declare function getCryptoDepositAccountOrder(privy: Pick<Privy, 'fetchPrivyRoute'>, input: GetCryptoDepositAccountOrderInput): Promise<GetCryptoDepositAccountOrderResponse>;
|
|
@@ -3260,7 +3265,7 @@ declare function findCatalogSymbol({ config, chain, asset }: {
|
|
|
3260
3265
|
asset: string;
|
|
3261
3266
|
}): string;
|
|
3262
3267
|
declare namespace index_d_exports$1 {
|
|
3263
|
-
export { CreateCryptoDepositAccountInput, CreateCryptoDepositAccountResponse, CreateCryptoDepositAccountWithConfigInput, CreateCryptoDepositAccountWithRouteInput, CryptoDepositAccountConfig, CryptoDepositAccountQuote, CryptoDepositAccountQuoteInput, CryptoDepositAddressRoute, CryptoDepositAddressStrategy, CryptoDepositAsset, CryptoDepositAssetFilter, GetCryptoDepositAccountNextOrderInput, GetCryptoDepositAccountNextOrderResponse, GetCryptoDepositAccountOrderInput, GetCryptoDepositAccountOrderResponse, createCryptoDepositAccount, filterDepositConfig, findCatalogSymbol, getCryptoDepositAccountNextOrder, getCryptoDepositAccountOrder, getCryptoDepositAccountQuote, indicativeRateFromQuote, isNativeAssetAlias, pickDepositAddressForChain, quoteSourceAsset, resolveChainAlias };
|
|
3268
|
+
export { CreateCryptoDepositAccountInput, CreateCryptoDepositAccountResponse, CreateCryptoDepositAccountWithConfigInput, CreateCryptoDepositAccountWithRouteInput, CryptoDepositAccountConfig, CryptoDepositAccountQuote, CryptoDepositAccountQuoteInput, CryptoDepositAccountSearchResult, CryptoDepositAddressRoute, CryptoDepositAddressStrategy, CryptoDepositAsset, CryptoDepositAssetFilter, GetCryptoDepositAccountNextOrderInput, GetCryptoDepositAccountNextOrderResponse, GetCryptoDepositAccountOrderInput, GetCryptoDepositAccountOrderResponse, createCryptoDepositAccount, filterDepositConfig, findCatalogSymbol, getCryptoDepositAccountNextOrder, getCryptoDepositAccountOrder, getCryptoDepositAccountQuote, indicativeRateFromQuote, isNativeAssetAlias, pickDepositAddressForChain, quoteSourceAsset, resolveChainAlias, searchCryptoDepositAccountConfig };
|
|
3264
3269
|
}
|
|
3265
3270
|
//#endregion
|
|
3266
3271
|
//#region src/wallet-api/generate-authorization-signature.d.ts
|
|
@@ -3553,6 +3558,294 @@ declare const acceptCardConsents: (client: Privy, { environment, acceptElectroni
|
|
|
3553
3558
|
acceptBankTerms?: boolean;
|
|
3554
3559
|
}) => Promise<CardIssuingCustomerResponse['data']>;
|
|
3555
3560
|
//#endregion
|
|
3561
|
+
//#region src/cards/send-spend-approval.d.ts
|
|
3562
|
+
/**
|
|
3563
|
+
* Sends the approval from the funding wallet, through the gas sponsorship policy when `sponsor` is
|
|
3564
|
+
* set and paid by the wallet otherwise.
|
|
3565
|
+
*/
|
|
3566
|
+
type SendSpendApproval = (transaction: {
|
|
3567
|
+
to: string;
|
|
3568
|
+
chainId: number;
|
|
3569
|
+
data: `0x${string}`;
|
|
3570
|
+
}, options: {
|
|
3571
|
+
sponsor: boolean;
|
|
3572
|
+
}) => Promise<{
|
|
3573
|
+
hash: string;
|
|
3574
|
+
}>;
|
|
3575
|
+
//#endregion
|
|
3576
|
+
//#region src/cards/approve-spend.d.ts
|
|
3577
|
+
/**
|
|
3578
|
+
* Grants the spender an unlimited (`maxUint256`) allowance from the funding wallet, letting the card
|
|
3579
|
+
* spend the wallet's balance. Resolves with the approval transaction hash. `sendTransaction` is
|
|
3580
|
+
* called before anything is awaited, so a send from a user's tap stays inside that gesture.
|
|
3581
|
+
*
|
|
3582
|
+
* ##CardApprovalNeedsGas: the approval is the funding wallet's first transaction, so it typically
|
|
3583
|
+
* holds no native gas token — only the stablecoin the card spends. The send is therefore attempted
|
|
3584
|
+
* sponsored first, so the app's gas sponsorship policy covers the fee, and falls back to a pre-funded
|
|
3585
|
+
* send (where the wallet pays) on any sponsored failure.
|
|
3586
|
+
*
|
|
3587
|
+
* The fallback keeps the approval working for an app that has not configured gas sponsorship for the
|
|
3588
|
+
* card's chain — the backend rejects a sponsored send outright in that case (`Gas sponsorship is not
|
|
3589
|
+
* enabled.` / `... not configured for chain <caip2>`, and `App secret is required ...` when the app's
|
|
3590
|
+
* sponsorship config sets `requireAppSecret`, which a client-side call cannot satisfy) rather than
|
|
3591
|
+
* degrading to an unsponsored send. It also leaves the pre-funded path testable against a wallet that
|
|
3592
|
+
* does hold gas. Only if both attempts fail does this reject; a gasless wallet then fails with
|
|
3593
|
+
* `insufficient funds for gas * price + value`, which the onboarding flow surfaces as the generic
|
|
3594
|
+
* approve-error step.
|
|
3595
|
+
*/
|
|
3596
|
+
declare const approveSpend: ({ sendTransaction, evmChainId, stablecoinAddress, spenderAddress }: {
|
|
3597
|
+
sendTransaction: SendSpendApproval;
|
|
3598
|
+
evmChainId: number;
|
|
3599
|
+
stablecoinAddress: string;
|
|
3600
|
+
spenderAddress: string;
|
|
3601
|
+
}) => Promise<{
|
|
3602
|
+
hash: string;
|
|
3603
|
+
}>;
|
|
3604
|
+
//#endregion
|
|
3605
|
+
//#region src/cards/card-funding-source.d.ts
|
|
3606
|
+
/**
|
|
3607
|
+
* Funds a card can spend: its wallet's stablecoin, or its shares in an Earn vault. `selected` marks
|
|
3608
|
+
* what the card spends now.
|
|
3609
|
+
*/
|
|
3610
|
+
type CardFundingSource = {
|
|
3611
|
+
type: 'wallet';
|
|
3612
|
+
selected: boolean;
|
|
3613
|
+
} | {
|
|
3614
|
+
type: 'erc4626_vault';
|
|
3615
|
+
selected: boolean;
|
|
3616
|
+
provider: 'morpho' | 'aave';
|
|
3617
|
+
spender_address: string;
|
|
3618
|
+
/** An ERC-4626 vault, which is its own share token. */
|
|
3619
|
+
share_token_address: string;
|
|
3620
|
+
} | {
|
|
3621
|
+
type: 'tempo_earn_vault';
|
|
3622
|
+
selected: boolean;
|
|
3623
|
+
spender_address: string;
|
|
3624
|
+
share_token_address: string;
|
|
3625
|
+
vault_address: string;
|
|
3626
|
+
/** The vault's underlying token, which is the card's stablecoin. */
|
|
3627
|
+
asset_address: string;
|
|
3628
|
+
};
|
|
3629
|
+
//#endregion
|
|
3630
|
+
//#region src/cards/card-response.d.ts
|
|
3631
|
+
/** A card, with what it can spend from. */
|
|
3632
|
+
type CardResponse = CardIssuingCardResponse & {
|
|
3633
|
+
/**
|
|
3634
|
+
* What the card can spend from. At most one entry is `selected`, and none only when a Tempo Earn
|
|
3635
|
+
* wallet picked a vault outside the app's Earn vaults. Absent from backends that don't list them.
|
|
3636
|
+
*/
|
|
3637
|
+
funding_sources?: CardFundingSource[];
|
|
3638
|
+
};
|
|
3639
|
+
//#endregion
|
|
3640
|
+
//#region src/cards/card-sign-up.d.ts
|
|
3641
|
+
/**
|
|
3642
|
+
* The actions each sign-up screen triggers. Every action takes the open flow's signal: closing the
|
|
3643
|
+
* flow aborts it so in-flight polls and advances stop. Requests can't be cancelled mid-flight, so the
|
|
3644
|
+
* signal only marks a late response unwanted so it never overwrites current state.
|
|
3645
|
+
*/
|
|
3646
|
+
type CardSignUp = {
|
|
3647
|
+
/**
|
|
3648
|
+
* Initial read. Every non-terminal status shows the get-started checklist -- onboarding only
|
|
3649
|
+
* advances once the user starts it, so a returning, already-`ready` user still sees get-started
|
|
3650
|
+
* first rather than jumping into the approval. Only `under_review`, `rejected`, and `error` are
|
|
3651
|
+
* shown directly, and a failed read surfaces the error screen.
|
|
3652
|
+
*/
|
|
3653
|
+
load(signal: AbortSignal): Promise<void>;
|
|
3654
|
+
/** Begins onboarding: get-or-create the customer, then show the first required prompt. */
|
|
3655
|
+
start(signal: AbortSignal): void;
|
|
3656
|
+
/** Records the electronic disclosure acceptance from the `disclosure-prompt` step. */
|
|
3657
|
+
acceptDisclosure(signal: AbortSignal): void;
|
|
3658
|
+
/**
|
|
3659
|
+
* Records the bank agreements acceptance from the `bank-terms-prompt` step, then opens the
|
|
3660
|
+
* provider terms. Must be called from the user's tap so a browser does not block the page.
|
|
3661
|
+
*/
|
|
3662
|
+
acceptBankTerms(signal: AbortSignal): void;
|
|
3663
|
+
/**
|
|
3664
|
+
* Opens the hosted page for the current `*-prompt` step (KYC, or the provider-terms fallback) and
|
|
3665
|
+
* polls until it completes. Must be called from the user's tap.
|
|
3666
|
+
*/
|
|
3667
|
+
proceed(signal: AbortSignal): void;
|
|
3668
|
+
/**
|
|
3669
|
+
* Sends the spend approval from the `approve-prompt` step, and retries it from `approve-error`,
|
|
3670
|
+
* where it first checks whether the earlier send landed. Must be called from the user's tap so a
|
|
3671
|
+
* wallet confirmation is not blocked. A Tempo Earn card opting into Earn then waits for the
|
|
3672
|
+
* approval to land and picks the vault on the spender.
|
|
3673
|
+
*/
|
|
3674
|
+
approve(signal: AbortSignal): void;
|
|
3675
|
+
/** Re-reads customer state, used to recover from a terminal `error`. */
|
|
3676
|
+
retry(signal: AbortSignal): void;
|
|
3677
|
+
};
|
|
3678
|
+
//#endregion
|
|
3679
|
+
//#region src/cards/spend-approval-provider.d.ts
|
|
3680
|
+
/** The EIP-1193 surface the allowance read uses, so any wallet's provider can be passed as is. */
|
|
3681
|
+
type SpendApprovalProvider = {
|
|
3682
|
+
request(args: {
|
|
3683
|
+
method: string;
|
|
3684
|
+
params?: unknown[];
|
|
3685
|
+
}): Promise<unknown>;
|
|
3686
|
+
};
|
|
3687
|
+
//#endregion
|
|
3688
|
+
//#region src/cards/card-sign-up-evm-wallet.d.ts
|
|
3689
|
+
/**
|
|
3690
|
+
* The card's funding wallet on an EVM chain, for the approvals card sign-up sends itself.
|
|
3691
|
+
*/
|
|
3692
|
+
type CardSignUpEvmWallet = {
|
|
3693
|
+
address: `0x${string}`;
|
|
3694
|
+
/** The wallet's provider, which reads go through. */
|
|
3695
|
+
getProvider(): Promise<SpendApprovalProvider>;
|
|
3696
|
+
/**
|
|
3697
|
+
* Sends from the wallet without a confirmation screen, since sign-up's own button gates it. That
|
|
3698
|
+
* also lets a Tempo Earn vault pick go out after the tap's gesture has passed.
|
|
3699
|
+
*/
|
|
3700
|
+
sendTransaction: SendSpendApproval;
|
|
3701
|
+
};
|
|
3702
|
+
//#endregion
|
|
3703
|
+
//#region src/cards/card-sign-up-hosted-page.d.ts
|
|
3704
|
+
/**
|
|
3705
|
+
* A provider-hosted page (Bridge terms or KYC) open for the current step. Bridge and Persona refuse
|
|
3706
|
+
* to be framed, so each platform opens these in its own browser surface.
|
|
3707
|
+
*/
|
|
3708
|
+
type CardSignUpHostedPage = {
|
|
3709
|
+
/** Points the page at `url`, for a page opened before its URL was known. */
|
|
3710
|
+
navigate(url: string): void;
|
|
3711
|
+
/** Whether the user has left the page. */
|
|
3712
|
+
isClosed(): boolean;
|
|
3713
|
+
/** Closes the page where the platform allows it. */
|
|
3714
|
+
dismiss(): void;
|
|
3715
|
+
};
|
|
3716
|
+
//#endregion
|
|
3717
|
+
//#region src/cards/card-sign-up-spend-approval.d.ts
|
|
3718
|
+
/**
|
|
3719
|
+
* The spend approval for the card's chain, or why there is none.
|
|
3720
|
+
*/
|
|
3721
|
+
type CardSignUpSpendApproval = {
|
|
3722
|
+
kind: 'unsupported';
|
|
3723
|
+
/** Shown on the error screen. With none, the screen shows its generic error. */
|
|
3724
|
+
reason?: string;
|
|
3725
|
+
} | {
|
|
3726
|
+
kind: 'supported';
|
|
3727
|
+
/** Whether the funding wallet has already approved spending. */
|
|
3728
|
+
isApproved(): Promise<boolean>;
|
|
3729
|
+
/**
|
|
3730
|
+
* Sends the approval. A first attempt calls it with nothing awaited first, so it runs inside
|
|
3731
|
+
* the user's tap.
|
|
3732
|
+
*/
|
|
3733
|
+
approve(): Promise<void>;
|
|
3734
|
+
};
|
|
3735
|
+
//#endregion
|
|
3736
|
+
//#region src/cards/card-sign-up-step.d.ts
|
|
3737
|
+
/**
|
|
3738
|
+
* The screen card sign-up renders. Derived from the cards customer `status` plus, once `ready`,
|
|
3739
|
+
* whether a card already exists and whether the funding wallet has approved spending. The `*-prompt`
|
|
3740
|
+
* steps ask the user to act (accept a Privy agreement, open a provider page, sign an approval); the
|
|
3741
|
+
* matching in-progress step is set once that action is underway. The disclosure and bank-terms
|
|
3742
|
+
* prompts carry the copy the backend serves for them. `ready` is the final success step. It,
|
|
3743
|
+
* `approve-error`, and an `error` reached once the card exists carry the card's id, so closing still
|
|
3744
|
+
* hands the card back.
|
|
3745
|
+
*/
|
|
3746
|
+
type CardSignUpStep = {
|
|
3747
|
+
status: 'loading';
|
|
3748
|
+
} | {
|
|
3749
|
+
status: 'get-started';
|
|
3750
|
+
pending?: boolean;
|
|
3751
|
+
} | {
|
|
3752
|
+
status: 'disclosure-prompt';
|
|
3753
|
+
disclosureUrl: string;
|
|
3754
|
+
} | {
|
|
3755
|
+
status: 'accepting-disclosure';
|
|
3756
|
+
} | {
|
|
3757
|
+
status: 'bank-terms-prompt';
|
|
3758
|
+
bankInfo: CardIssuingBankInfo;
|
|
3759
|
+
} | {
|
|
3760
|
+
status: 'accepting-bank-terms';
|
|
3761
|
+
} | {
|
|
3762
|
+
status: 'provider-terms-prompt';
|
|
3763
|
+
pending?: boolean;
|
|
3764
|
+
} | {
|
|
3765
|
+
status: 'accepting-provider-terms';
|
|
3766
|
+
} | {
|
|
3767
|
+
status: 'kyc-prompt';
|
|
3768
|
+
pending?: boolean;
|
|
3769
|
+
} | {
|
|
3770
|
+
status: 'verifying-identity';
|
|
3771
|
+
} | {
|
|
3772
|
+
status: 'pending';
|
|
3773
|
+
} | {
|
|
3774
|
+
status: 'under-review';
|
|
3775
|
+
} | {
|
|
3776
|
+
status: 'creating-card';
|
|
3777
|
+
} | {
|
|
3778
|
+
status: 'approve-prompt';
|
|
3779
|
+
pending?: boolean;
|
|
3780
|
+
/** The Earn provider's name when the card spends a vault's shares, or null for the stablecoin. */
|
|
3781
|
+
vaultProvider: string | null;
|
|
3782
|
+
} | {
|
|
3783
|
+
status: 'approve-error';
|
|
3784
|
+
cardId: string;
|
|
3785
|
+
} | {
|
|
3786
|
+
status: 'ready';
|
|
3787
|
+
cardId: string;
|
|
3788
|
+
} | {
|
|
3789
|
+
status: 'rejected';
|
|
3790
|
+
reason?: string;
|
|
3791
|
+
} | {
|
|
3792
|
+
status: 'error';
|
|
3793
|
+
message?: string;
|
|
3794
|
+
cardId?: string;
|
|
3795
|
+
};
|
|
3796
|
+
//#endregion
|
|
3797
|
+
//#region src/cards/card-sign-up-platform.d.ts
|
|
3798
|
+
/**
|
|
3799
|
+
* What card sign-up needs from the platform it runs on.
|
|
3800
|
+
*/
|
|
3801
|
+
type CardSignUpPlatform = {
|
|
3802
|
+
/**
|
|
3803
|
+
* Opens a hosted page, at `url` when it is known. Called from the user's tap with nothing awaited
|
|
3804
|
+
* first, so a browser can open its popup inside the gesture. Returns `null` when it could not
|
|
3805
|
+
* open one.
|
|
3806
|
+
*/
|
|
3807
|
+
openHostedPage(url?: string): CardSignUpHostedPage | null;
|
|
3808
|
+
/**
|
|
3809
|
+
* The spend approval for the card's chain. Synchronous so the approval send starts inside the
|
|
3810
|
+
* user's tap. Throws when the funding wallet can't be resolved.
|
|
3811
|
+
*/
|
|
3812
|
+
resolveSpendApproval(): CardSignUpSpendApproval;
|
|
3813
|
+
/**
|
|
3814
|
+
* The funding wallet on the card's EVM chain, which approves a vault card's share token instead of
|
|
3815
|
+
* the chain's stablecoin, and picks a Tempo Earn vault for a wallet opting into Earn. Synchronous
|
|
3816
|
+
* like `resolveSpendApproval`, and throws the same way.
|
|
3817
|
+
*/
|
|
3818
|
+
resolveEvmWallet(): CardSignUpEvmWallet;
|
|
3819
|
+
/** Shows a step. */
|
|
3820
|
+
setStep(step: CardSignUpStep): void;
|
|
3821
|
+
};
|
|
3822
|
+
//#endregion
|
|
3823
|
+
//#region src/cards/card-transaction-badge.d.ts
|
|
3824
|
+
/** Which badge a transaction row carries. Each UI names and colors it. */
|
|
3825
|
+
type CardTransactionBadge = 'credit' | 'pending' | 'declined' | 'expired' | 'reversed';
|
|
3826
|
+
//#endregion
|
|
3827
|
+
//#region src/cards/card-transaction-row.d.ts
|
|
3828
|
+
/**
|
|
3829
|
+
* One card activity row: the fields a row renders, with the merchant name resolved, plus the ones a
|
|
3830
|
+
* row's details screen reads.
|
|
3831
|
+
*/
|
|
3832
|
+
type CardTransactionRow = {
|
|
3833
|
+
id: string;
|
|
3834
|
+
/** USD cents (#CardAmountUsdCents). Sign carries direction on `posted` rows only. */
|
|
3835
|
+
amount: number;
|
|
3836
|
+
merchant: {
|
|
3837
|
+
name: string;
|
|
3838
|
+
};
|
|
3839
|
+
status: CardIssuingTransactionStatus;
|
|
3840
|
+
created: number;
|
|
3841
|
+
/**
|
|
3842
|
+
* Carried through, but not what the amount is rendered as: rows read every amount as USD cents
|
|
3843
|
+
* (#CardAmountUsdCents). Card activity is USD-only today, so the two cannot disagree yet.
|
|
3844
|
+
*/
|
|
3845
|
+
currency: string;
|
|
3846
|
+
dispute: CardIssuingTransactionResponse['dispute'];
|
|
3847
|
+
};
|
|
3848
|
+
//#endregion
|
|
3556
3849
|
//#region src/cards/cards-config.d.ts
|
|
3557
3850
|
/** Browser-safe card-issuing configuration. */
|
|
3558
3851
|
type CardsConfig = {
|
|
@@ -3563,6 +3856,22 @@ type CardsConfig = {
|
|
|
3563
3856
|
stripeAccount?: string;
|
|
3564
3857
|
};
|
|
3565
3858
|
//#endregion
|
|
3859
|
+
//#region src/cards/choose-tempo-earn-vault.d.ts
|
|
3860
|
+
/**
|
|
3861
|
+
* Has the funding wallet choose `vaultAddress` on a Tempo Earn spender, so the card spends the
|
|
3862
|
+
* vault's shares instead of the stablecoin, or the zero address to spend the stablecoin again. The
|
|
3863
|
+
* spender reverts unless Bridge has allowlisted the vault. Sent like `approveSpend`: sponsored
|
|
3864
|
+
* first since the wallet may hold no gas, then paid by the wallet if that fails.
|
|
3865
|
+
*/
|
|
3866
|
+
declare const chooseTempoEarnVault: ({ sendTransaction, evmChainId, spenderAddress, vaultAddress }: {
|
|
3867
|
+
sendTransaction: SendSpendApproval;
|
|
3868
|
+
evmChainId: number;
|
|
3869
|
+
spenderAddress: string;
|
|
3870
|
+
vaultAddress: string;
|
|
3871
|
+
}) => Promise<{
|
|
3872
|
+
hash: string;
|
|
3873
|
+
}>;
|
|
3874
|
+
//#endregion
|
|
3566
3875
|
//#region src/cards/create-card.d.ts
|
|
3567
3876
|
/**
|
|
3568
3877
|
* Creates the virtual card for a wallet, returning the new card. Only valid once the cards
|
|
@@ -3577,6 +3886,73 @@ declare const createCard: (client: Privy, { environment, walletId, chainId, asse
|
|
|
3577
3886
|
asset: string;
|
|
3578
3887
|
}) => Promise<CardIssuingCardResponse>;
|
|
3579
3888
|
//#endregion
|
|
3889
|
+
//#region src/cards/create-card-sign-up.d.ts
|
|
3890
|
+
/**
|
|
3891
|
+
* Card sign-up: drives the pre-card journey (accept terms -> KYC -> create card -> approve spending)
|
|
3892
|
+
* off the cards customer status, ending in a `ready` step that carries the created card's id. The
|
|
3893
|
+
* React and React Native SDKs run the same flow and supply the platform pieces.
|
|
3894
|
+
*/
|
|
3895
|
+
declare const createCardSignUp: ({ client, environment, walletId, chainId, asset, platform }: {
|
|
3896
|
+
client: Privy;
|
|
3897
|
+
environment: IntegrationEnvironment;
|
|
3898
|
+
/** Wallet the card is created for. */
|
|
3899
|
+
walletId: string;
|
|
3900
|
+
/** CAIP-2 chain the card funds from. */
|
|
3901
|
+
chainId: string;
|
|
3902
|
+
/** Asset forwarded to card creation, e.g. `'usdc'`, `'pathusd'`, or `'ousd'`. */
|
|
3903
|
+
asset: string;
|
|
3904
|
+
platform: CardSignUpPlatform;
|
|
3905
|
+
}) => CardSignUp;
|
|
3906
|
+
//#endregion
|
|
3907
|
+
//#region src/cards/evm-dev-spend-approval-target.d.ts
|
|
3908
|
+
/**
|
|
3909
|
+
* EVM card approval target: the stablecoin ERC-20 contract and the Bridge spender the funding wallet
|
|
3910
|
+
* grants an allowance to. Supplied as the `spendApproval` option when the card's `chainId` is `eip155:*`.
|
|
3911
|
+
*
|
|
3912
|
+
* @experimental This interface may change in a minor version.
|
|
3913
|
+
*/
|
|
3914
|
+
type EvmDevSpendApprovalTarget = {
|
|
3915
|
+
/** ERC-20 stablecoin contract (USDC on the built-in testnets) the allowance is set on. */
|
|
3916
|
+
stablecoinAddress: string;
|
|
3917
|
+
/** Bridge spender contract the allowance is granted to. */
|
|
3918
|
+
spenderAddress: string;
|
|
3919
|
+
};
|
|
3920
|
+
//#endregion
|
|
3921
|
+
//#region src/cards/svm-dev-spend-approval-target.d.ts
|
|
3922
|
+
/**
|
|
3923
|
+
* SVM card approval target: the stablecoin mint and the Bridge card program (with its merchant id)
|
|
3924
|
+
* that owns the per-user delegate PDA. Supplied as the `spendApproval` option when the card's `chainId`
|
|
3925
|
+
* is `solana:*`.
|
|
3926
|
+
*
|
|
3927
|
+
* @experimental This interface may change in a minor version.
|
|
3928
|
+
*/
|
|
3929
|
+
type SvmDevSpendApprovalTarget = {
|
|
3930
|
+
/**
|
|
3931
|
+
* SPL stablecoin mint (USDC on the built-in devnet) the delegation source ATA holds. The Solana
|
|
3932
|
+
* OUSD mint uses Token-2022. Other mints use the classic SPL Token program.
|
|
3933
|
+
*/
|
|
3934
|
+
stablecoinAddress: string;
|
|
3935
|
+
/** Bridge card program that owns the delegate PDA. */
|
|
3936
|
+
programId: string;
|
|
3937
|
+
/**
|
|
3938
|
+
* Bridge merchant id, an LE u64 seed of the delegate PDA. Accepts a `number`, decimal `string`, or
|
|
3939
|
+
* `bigint` so it can be supplied from JSON/env config (a `bigint` literal is not JSON-serializable);
|
|
3940
|
+
* {@link getSpendApproval} normalizes it to a `bigint` before use.
|
|
3941
|
+
*/
|
|
3942
|
+
merchantId: number | string | bigint;
|
|
3943
|
+
};
|
|
3944
|
+
//#endregion
|
|
3945
|
+
//#region src/cards/dev-spend-approval-target.d.ts
|
|
3946
|
+
/**
|
|
3947
|
+
* The card spend-approval target for the chain a card is onboarded on — an {@link
|
|
3948
|
+
* EvmDevSpendApprovalTarget} for an `eip155:*` chain or an {@link SvmDevSpendApprovalTarget} for a
|
|
3949
|
+
* `solana:*` chain. {@link getSpendApproval} resolves its shape against the card's `chainId`.
|
|
3950
|
+
* Production environments require this target because Bridge does not publish the mainnet targets.
|
|
3951
|
+
*
|
|
3952
|
+
* @experimental This interface may change in a minor version.
|
|
3953
|
+
*/
|
|
3954
|
+
type DevSpendApprovalTarget = EvmDevSpendApprovalTarget | SvmDevSpendApprovalTarget;
|
|
3955
|
+
//#endregion
|
|
3580
3956
|
//#region src/cards/download-card-statement.d.ts
|
|
3581
3957
|
/**
|
|
3582
3958
|
* Fetches one month's card statement as a PDF blob.
|
|
@@ -3590,6 +3966,37 @@ declare const downloadCardStatement: (client: Privy, { cardId, environment, stat
|
|
|
3590
3966
|
statementPeriod: string;
|
|
3591
3967
|
}) => Promise<Blob>;
|
|
3592
3968
|
//#endregion
|
|
3969
|
+
//#region src/cards/format-signed-transaction-amount.d.ts
|
|
3970
|
+
/**
|
|
3971
|
+
* Signed amount plus whether it reads as a credit (which colors it). Direction follows
|
|
3972
|
+
* #CardAmountSignByStatus; magnitude is {@link formatUsdAmount}, so `- -$1` never happens. Takes a
|
|
3973
|
+
* bare `{amount, status}` so a list row and a detail view share one signer off different shapes.
|
|
3974
|
+
*/
|
|
3975
|
+
declare const formatSignedTransactionAmount: ({ amount, status }: {
|
|
3976
|
+
amount: number;
|
|
3977
|
+
status: CardIssuingTransactionStatus;
|
|
3978
|
+
}) => {
|
|
3979
|
+
text: string;
|
|
3980
|
+
isCredit: boolean;
|
|
3981
|
+
};
|
|
3982
|
+
//#endregion
|
|
3983
|
+
//#region src/cards/format-transaction-date.d.ts
|
|
3984
|
+
/** Timestamp in the runtime's locale and time zone. Year shown only outside the current one. */
|
|
3985
|
+
declare const formatTransactionDate: ({ unixSeconds }: {
|
|
3986
|
+
unixSeconds: number;
|
|
3987
|
+
}) => string;
|
|
3988
|
+
//#endregion
|
|
3989
|
+
//#region src/cards/format-usd-amount.d.ts
|
|
3990
|
+
/**
|
|
3991
|
+
* Unsigned USD magnitude of a cent amount: `-4703` and `4703` both format `$47.03`. Non-finite
|
|
3992
|
+
* input -> `''`, like the amount cell.
|
|
3993
|
+
*/
|
|
3994
|
+
declare const formatUsdAmount: (cents: number) => string;
|
|
3995
|
+
//#endregion
|
|
3996
|
+
//#region src/cards/get-card-asset-display-name.d.ts
|
|
3997
|
+
/** Display name for a card asset id (`usdc` → `USDC`, `pathusd` → `PathUSD`, `ousd` → `OUSD`). */
|
|
3998
|
+
declare const getCardAssetDisplayName: (asset: string | null | undefined) => string;
|
|
3999
|
+
//#endregion
|
|
3593
4000
|
//#region src/cards/get-card-by-id.d.ts
|
|
3594
4001
|
/**
|
|
3595
4002
|
* One card by id, or null when it is not among the user's first {@link LIST_CARDS_MAX_LIMIT}.
|
|
@@ -3604,7 +4011,7 @@ declare const downloadCardStatement: (client: Privy, { cardId, environment, stat
|
|
|
3604
4011
|
declare const getCardById: (client: Privy, { cardId, environment }: {
|
|
3605
4012
|
cardId: string;
|
|
3606
4013
|
environment: IntegrationEnvironment;
|
|
3607
|
-
}) => Promise<
|
|
4014
|
+
}) => Promise<CardResponse | null>;
|
|
3608
4015
|
//#endregion
|
|
3609
4016
|
//#region src/cards/get-card-customer.d.ts
|
|
3610
4017
|
/**
|
|
@@ -3616,6 +4023,14 @@ declare const getCardCustomer: (client: Privy, { environment }: {
|
|
|
3616
4023
|
environment: IntegrationEnvironment;
|
|
3617
4024
|
}) => Promise<CardIssuingCustomerResponse['data']>;
|
|
3618
4025
|
//#endregion
|
|
4026
|
+
//#region src/cards/get-card-disclosure.d.ts
|
|
4027
|
+
/**
|
|
4028
|
+
* The card program's regulatory disclosure, shown below a card's activity. The copy is fixed
|
|
4029
|
+
* regulatory text; the Platform Provider it names is the app, which should pass its legal entity
|
|
4030
|
+
* name when it has one.
|
|
4031
|
+
*/
|
|
4032
|
+
declare const getCardDisclosure: (platformProviderName: string) => string;
|
|
4033
|
+
//#endregion
|
|
3619
4034
|
//#region src/cards/get-card-ephemeral-key.d.ts
|
|
3620
4035
|
/**
|
|
3621
4036
|
* Mints a single-use Stripe ephemeral key for revealing one card's sensitive fields.
|
|
@@ -3650,6 +4065,79 @@ declare const getOrCreateCardCustomer: (client: Privy, { environment }: {
|
|
|
3650
4065
|
environment: IntegrationEnvironment;
|
|
3651
4066
|
}) => Promise<CardIssuingCustomerResponse['data']>;
|
|
3652
4067
|
//#endregion
|
|
4068
|
+
//#region src/cards/solana-spend-approval-chain.d.ts
|
|
4069
|
+
/** Solana chains with card spend-approval support. */
|
|
4070
|
+
type SolanaSpendApprovalChain = 'solana:mainnet' | 'solana:devnet';
|
|
4071
|
+
//#endregion
|
|
4072
|
+
//#region src/cards/spend-approval-config.d.ts
|
|
4073
|
+
type EvmSpendApprovalConfig = {
|
|
4074
|
+
kind: 'evm';
|
|
4075
|
+
} & EvmDevSpendApprovalTarget;
|
|
4076
|
+
type ResolvedSvmSpendApprovalTarget = Omit<SvmDevSpendApprovalTarget, 'merchantId'> & {
|
|
4077
|
+
/** Normalized from the target's `number | string | bigint` by {@link getSpendApproval}. */
|
|
4078
|
+
merchantId: bigint;
|
|
4079
|
+
};
|
|
4080
|
+
type SvmSpendApprovalConfig = ResolvedSvmSpendApprovalTarget & {
|
|
4081
|
+
kind: 'svm';
|
|
4082
|
+
chain: SolanaSpendApprovalChain;
|
|
4083
|
+
};
|
|
4084
|
+
/**
|
|
4085
|
+
* A {@link DevSpendApprovalTarget} resolved for a specific chain — the target's own fields plus the
|
|
4086
|
+
* `kind` discriminant (inferred from the CAIP-2 key) and, for SVM, the resolved Solana `chain` alias.
|
|
4087
|
+
* {@link getSpendApproval} returns this (or `null` when no target is configured, which the onboarding
|
|
4088
|
+
* flow treats as unsupported rather than approvable); the approve/read helpers consume its fields.
|
|
4089
|
+
*/
|
|
4090
|
+
type SpendApprovalConfig = EvmSpendApprovalConfig | SvmSpendApprovalConfig;
|
|
4091
|
+
//#endregion
|
|
4092
|
+
//#region src/cards/get-spend-approval.d.ts
|
|
4093
|
+
/**
|
|
4094
|
+
* Resolves the spend-approval config for a CAIP-2 chain, or `null` when there is nothing to approve.
|
|
4095
|
+
* Uses the developer-supplied `spendApproval` target (required for production) when given, otherwise
|
|
4096
|
+
* the built-in sandbox target for a testnet/devnet chain. That built-in target follows `asset` on
|
|
4097
|
+
* Tempo Moderato, where `ousd` approves OUSD instead of PathUSD. A chain with neither — and a
|
|
4098
|
+
* supplied target whose shape doesn't match the chain — resolves to `null`, which the
|
|
4099
|
+
* onboarding flow surfaces as an unsupported-network error rather than reporting a card that can never
|
|
4100
|
+
* spend.
|
|
4101
|
+
*
|
|
4102
|
+
* EVM vs SVM is inferred from the `chainId` namespace, not a field on the target: a `solana:*` chain
|
|
4103
|
+
* with a recognized cluster resolves to SVM (adding the resolved `chain` alias), an `eip155:*` chain
|
|
4104
|
+
* to EVM. A target whose shape doesn't match the chain's namespace is treated as unsupported.
|
|
4105
|
+
*/
|
|
4106
|
+
declare const getSpendApproval: (chainId: string, spendApproval?: DevSpendApprovalTarget, asset?: string) => SpendApprovalConfig | null;
|
|
4107
|
+
//#endregion
|
|
4108
|
+
//#region src/cards/get-transaction-badge.d.ts
|
|
4109
|
+
/**
|
|
4110
|
+
* The badge for a transaction, or `null` for a posted debit, which has nothing worth badging.
|
|
4111
|
+
* Status outranks amount: an authorization's positive amount is a charge, not a credit
|
|
4112
|
+
* (#CardAmountSignByStatus), so only a posted credit badges as one.
|
|
4113
|
+
*/
|
|
4114
|
+
declare const getTransactionBadge: (transaction: {
|
|
4115
|
+
amount: number;
|
|
4116
|
+
status: CardIssuingTransactionStatus;
|
|
4117
|
+
}) => CardTransactionBadge | null;
|
|
4118
|
+
//#endregion
|
|
4119
|
+
//#region src/cards/handle-sign-up-close.d.ts
|
|
4120
|
+
/**
|
|
4121
|
+
* Completes card sign-up from the current step: success when a card already exists, otherwise a
|
|
4122
|
+
* step-specific failure. Closing mid-flow is a user cancel.
|
|
4123
|
+
*/
|
|
4124
|
+
declare const handleSignUpClose: ({ step, onSuccess, onFailure }: {
|
|
4125
|
+
step: CardSignUpStep;
|
|
4126
|
+
onSuccess: (result: {
|
|
4127
|
+
id: string;
|
|
4128
|
+
}) => void;
|
|
4129
|
+
onFailure: (error: Error) => void;
|
|
4130
|
+
}) => void;
|
|
4131
|
+
//#endregion
|
|
4132
|
+
//#region src/cards/is-card-expired.d.ts
|
|
4133
|
+
/**
|
|
4134
|
+
* Whether a card's printed expiration has passed. A card is valid through the last day of its
|
|
4135
|
+
* expiration month, so it only counts as expired once the current month is strictly past
|
|
4136
|
+
* `exp_month`/`exp_year`. Returns `false` when either field is unknown, since expiry can't be
|
|
4137
|
+
* judged.
|
|
4138
|
+
*/
|
|
4139
|
+
declare const isCardExpired: ({ exp_month, exp_year }: Pick<CardIssuingCardResponse, 'exp_month' | 'exp_year'>) => boolean;
|
|
4140
|
+
//#endregion
|
|
3653
4141
|
//#region src/cards/list-card-transactions.d.ts
|
|
3654
4142
|
/**
|
|
3655
4143
|
* A page of activity for one card, newest first.
|
|
@@ -3674,7 +4162,35 @@ declare const listCards: (client: Privy, { environment, limit, cursor }: {
|
|
|
3674
4162
|
environment: IntegrationEnvironment;
|
|
3675
4163
|
limit?: number;
|
|
3676
4164
|
cursor?: string;
|
|
3677
|
-
}) => Promise<CardIssuingCardsResponse
|
|
4165
|
+
}) => Promise<Omit<CardIssuingCardsResponse, 'data'> & {
|
|
4166
|
+
data: CardResponse[];
|
|
4167
|
+
}>;
|
|
4168
|
+
//#endregion
|
|
4169
|
+
//#region src/cards/read-spend-allowance.d.ts
|
|
4170
|
+
/**
|
|
4171
|
+
* Reads the current allowance the owner has granted the spender, over an `eth_call` from the
|
|
4172
|
+
* wallet's own provider. Switches the wallet to the target chain first so the read hits the right
|
|
4173
|
+
* network.
|
|
4174
|
+
*/
|
|
4175
|
+
declare const readSpendAllowance: ({ provider, evmChainId, owner, stablecoinAddress, spenderAddress }: {
|
|
4176
|
+
provider: SpendApprovalProvider;
|
|
4177
|
+
evmChainId: number;
|
|
4178
|
+
owner: `0x${string}`;
|
|
4179
|
+
stablecoinAddress: string;
|
|
4180
|
+
spenderAddress: string;
|
|
4181
|
+
}) => Promise<bigint>;
|
|
4182
|
+
//#endregion
|
|
4183
|
+
//#region src/cards/read-tempo-earn-vault.d.ts
|
|
4184
|
+
/**
|
|
4185
|
+
* Reads the vault the owner has chosen on a Tempo Earn spender, or the zero address when it hasn't
|
|
4186
|
+
* chosen one, over an `eth_call` from the wallet's own provider like `readSpendAllowance`.
|
|
4187
|
+
*/
|
|
4188
|
+
declare const readTempoEarnVault: ({ provider, evmChainId, owner, spenderAddress }: {
|
|
4189
|
+
provider: SpendApprovalProvider;
|
|
4190
|
+
evmChainId: number;
|
|
4191
|
+
owner: `0x${string}`;
|
|
4192
|
+
spenderAddress: string;
|
|
4193
|
+
}) => Promise<`0x${string}`>;
|
|
3678
4194
|
//#endregion
|
|
3679
4195
|
//#region src/cards/replace-card.d.ts
|
|
3680
4196
|
/**
|
|
@@ -3687,6 +4203,14 @@ declare const replaceCard: (client: Privy, { cardId, environment, reason }: {
|
|
|
3687
4203
|
reason: CardIssuingReplacementReason;
|
|
3688
4204
|
}) => Promise<CardIssuingCardResponse>;
|
|
3689
4205
|
//#endregion
|
|
4206
|
+
//#region src/cards/to-transaction-row.d.ts
|
|
4207
|
+
/** Maps one API item onto the narrower shape a row renders. */
|
|
4208
|
+
declare const toTransactionRow: ({ transaction, unknownMerchantName }: {
|
|
4209
|
+
transaction: CardIssuingTransactionResponse;
|
|
4210
|
+
/** The API allows a null merchant name; a row's type does not. */
|
|
4211
|
+
unknownMerchantName: string;
|
|
4212
|
+
}) => CardTransactionRow;
|
|
4213
|
+
//#endregion
|
|
3690
4214
|
//#region src/cards/update-card-pin.d.ts
|
|
3691
4215
|
/** Sets one card's PIN from a Stripe-encrypted JWE. The plaintext PIN never enters this request. */
|
|
3692
4216
|
declare const updateCardPin: (client: Privy, { cardId, environment, encryptedNumber }: {
|
|
@@ -3725,4 +4249,4 @@ declare const THIRDWEB: "thirdweb";
|
|
|
3725
4249
|
/** @deprecated {@link SmartWalletType} is a well-typed union, use the `'nexus'` literal instead */
|
|
3726
4250
|
declare const NEXUS: "nexus";
|
|
3727
4251
|
//#endregion
|
|
3728
|
-
export { ALL_WALLET_CLIENT_TYPES, BICONOMY, COINBASE_SMART_WALLET, type CardsConfig, Cluster, type CoinbaseAssetId, CoinbaseWalletClientType, type CompletedDepositAddressOrder, ConnectedStandardSolanaWallet, ConnectorType, CookieWriteBehavior, type CountryCallingCode, type CountryCode, type CreateCryptoDepositAccountInput, type CreateCryptoDepositAccountResponse, type CreateSiwsMessageOpts, type CryptoDepositAccountConfig, type CryptoDepositAccountQuote, type CryptoDepositAccountQuoteInput, type CryptoDepositAddressRoute, type CryptoDepositAddressStrategy, type CryptoDepositAsset, type CryptoDepositAssetFilter, DATA_SUFFIX_PLUGIN_ID, type DataSuffixPlugin, type DepositAddressOrder, type DepositAddressPollingResult, type DepositAddressQuote, type DepositConfig, type EIP1193Provider, type EmbeddedBitcoinWalletProvider, EmbeddedProviderError, EmbeddedWalletClientType, type EmbeddedWalletConfig, type EmbeddedWalletRecoveryOptions, type EntropyIdVerifier, type ErrorMessageMap, ExternalWallet, ExternalWalletMetadata, FundingMethod, FundingProvider, type GenerateAuthorizationSignatureInput, type GenerateAuthorizationSignatureOutput, type GenerateDepositAddressInput, type GetCryptoDepositAccountNextOrderInput, type GetCryptoDepositAccountNextOrderResponse, type GetCryptoDepositAccountOrderInput, type GetCryptoDepositAccountOrderResponse, type GetDepositInput, IdentifierString, InMemoryCache, type IncompleteDepositAddressOrder, InjectedWalletClientType, KERNEL, LIGHT_ACCOUNT, LIST_CARDS_MAX_LIMIT, LocalStorage, type LogLevel, type Logger, type MfaMethod, type MfaPromise, type MfaSubmitArgs, type MfaSubmitPromise, MoonpayApiError, type MoonpayTransactionStatus, type MoonpayTransactionStatusResponse, NEXUS, type OAuthProviderID, OAuthProviderType, type OnNeedsRecovery, type ParsedSolanaOffchainMessage, PaymentOption, type PollOptions, type PollResult, type PreparedTransactionRequest, PrivyApiError, PrivyClientError, PrivyConnectorError, PrivyEmbeddedSolanaWalletProvider, PrivyEmbeddedWalletErrorCode, PrivyEmbeddedWalletProvider, type PrivyPlugin, PrivyProviderRpcError, ProviderErrors, type Quantity, type ResolveRefundAddressError, type ResolveRefundAddressResult, SAFE, SUPPORTED_CONNECTOR_TYPES, type SessionSignerInput, type SetRecoveryInput, SmartWalletType, SolanaClient, SolanaCluster, SolanaSignAndSendTransactionInput, SolanaSignAndSendTransactionMode, SolanaSignAndSendTransactionOptions, SolanaSignAndSendTransactionOutput, SolanaSignMessageInput, SolanaSignMessageOutput, SolanaSignTransactionInput, SolanaSignTransactionOptions, SolanaSignTransactionOutput, SolanaStandardWallet, SolanaTransactionCommitment, SolanaUsdcAddressMap, type Storage, THIRDWEB, type TelegramAuthInput, type TelegramAuthResult, type TelegramWebAppData, UnknownWalletClientType, type UnsignedTransactionRequest, type UnsignedTransactionRequestWithChainId, UsdcAddressMap, type WaitForCompletionInput, type WaitForDepositInput, WalletBranding, WalletClientType, WalletConnectWalletClientType, acceptCardConsents, addSessionSigners, buildSolanaOffchainMessage, chainToMoonpayCurrency, cookies, countryCodesAndNumbers, create, createCard, createDataSuffixPlugin, createErrorFormatter, createSiwsMessage, index_d_exports as crossApp, index_d_exports$1 as cryptoDepositAccount, Privy as default, index_d_exports$2 as delegatedActions, index_d_exports$3 as depositAddress, deriveSolanaApplicationDomain, downloadCardStatement, errorIndicatesMaxMfaRetries, errorIndicatesMfaCanceled, errorIndicatesMfaRateLimit, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, errorIndicatesRecoveryIsNeeded, formatLamportsAmount, formatPhoneNumber, formatTokenAmount, formatWalletAddress, formatWeiAmount, fundingMethodToMoonpayPaymentMethod, generateAuthorizationSignature, generateWalletIdempotencyKey, getAllUserEmbeddedBitcoinWallets, getAllUserEmbeddedEthereumWallets, getAllUserEmbeddedSolanaWallets, getCardById, getCardCustomer, getCardEphemeralKey, getCardsConfig, getCoinbaseOnRampUrl, getCountryCallingCode, getDataSuffixPlugin, getEntropyDetailsFromAccount, getEntropyDetailsFromUser, getFiatOnrampProviderBrand, getFiatOnrampProviderId, getIsTokenUsdc, getJsonRpcEndpointFromChain, getOrCreateCardCustomer, getPhoneCountryCodeAndNumber, getPlaceholderPhoneNumber, getSolanaClusterDisplayName, getSolanaRpcEndpointForCluster, getSolanaUsdcMintAddressForCluster, getUserEmbeddedEthereumWallet, getUserEmbeddedSolanaWallet, getUserEmbeddedWallet, getUserSmartWallet, getWallet, getWalletAction, isEmbeddedWalletAccount, isExtensionContext, isSupportedChainIdForCoinbaseOnramp, isSupportedChainIdForMoonpay, isUnifiedWallet, lastFourDigits, listCardTransactions, listCards, listWalletActions, parseSolanaOffchainMessage, phoneNumberTypingFormatter, poll, rawSign, removeSessionSigners, replaceCard, rpc, shouldWriteSessionCookies, throwIfInvalidRecoveryUpgradePath, toCoinbaseAssetId, toCoinbaseBlockchainFromChainId, toE164, toObjectKeys, toWalletApiUnsignedEthTransaction, transfer, updateCardPin, updateCardStatus, updateWallet, validatePhoneNumber };
|
|
4252
|
+
export { ALL_WALLET_CLIENT_TYPES, BICONOMY, COINBASE_SMART_WALLET, type CardFundingSource, type CardResponse, type CardSignUp, type CardSignUpEvmWallet, type CardSignUpHostedPage, type CardSignUpPlatform, type CardSignUpSpendApproval, type CardSignUpStep, type CardTransactionBadge, type CardTransactionRow, type CardsConfig, Cluster, type CoinbaseAssetId, CoinbaseWalletClientType, type CompletedDepositAddressOrder, ConnectedStandardSolanaWallet, ConnectorType, CookieWriteBehavior, type CountryCallingCode, type CountryCode, type CreateCryptoDepositAccountInput, type CreateCryptoDepositAccountResponse, type CreateSiwsMessageOpts, type CryptoDepositAccountConfig, type CryptoDepositAccountQuote, type CryptoDepositAccountQuoteInput, type CryptoDepositAccountSearchResult, type CryptoDepositAddressRoute, type CryptoDepositAddressStrategy, type CryptoDepositAsset, type CryptoDepositAssetFilter, DATA_SUFFIX_PLUGIN_ID, type DataSuffixPlugin, type DepositAddressOrder, type DepositAddressPollingResult, type DepositAddressQuote, type DepositConfig, type DevSpendApprovalTarget, type EIP1193Provider, type EmbeddedBitcoinWalletProvider, EmbeddedProviderError, EmbeddedWalletClientType, type EmbeddedWalletConfig, type EmbeddedWalletRecoveryOptions, type EntropyIdVerifier, type ErrorMessageMap, type EvmDevSpendApprovalTarget, ExternalWallet, ExternalWalletMetadata, FundingMethod, FundingProvider, type GenerateAuthorizationSignatureInput, type GenerateAuthorizationSignatureOutput, type GenerateDepositAddressInput, type GetCryptoDepositAccountNextOrderInput, type GetCryptoDepositAccountNextOrderResponse, type GetCryptoDepositAccountOrderInput, type GetCryptoDepositAccountOrderResponse, type GetDepositInput, IdentifierString, InMemoryCache, type IncompleteDepositAddressOrder, InjectedWalletClientType, KERNEL, LIGHT_ACCOUNT, LIST_CARDS_MAX_LIMIT, LocalStorage, type LogLevel, type Logger, type MfaMethod, type MfaPromise, type MfaSubmitArgs, type MfaSubmitPromise, MoonpayApiError, type MoonpayTransactionStatus, type MoonpayTransactionStatusResponse, NEXUS, type OAuthProviderID, OAuthProviderType, type OnNeedsRecovery, type ParsedSolanaOffchainMessage, PaymentOption, type PollOptions, type PollResult, type PreparedTransactionRequest, PrivyApiError, PrivyClientError, PrivyConnectorError, PrivyEmbeddedSolanaWalletProvider, PrivyEmbeddedWalletErrorCode, PrivyEmbeddedWalletProvider, type PrivyPlugin, PrivyProviderRpcError, ProviderErrors, type Quantity, type ResolveRefundAddressError, type ResolveRefundAddressResult, SAFE, SUPPORTED_CONNECTOR_TYPES, type SendSpendApproval, type SessionSignerInput, type SetRecoveryInput, SmartWalletType, SolanaClient, SolanaCluster, SolanaSignAndSendTransactionInput, SolanaSignAndSendTransactionMode, SolanaSignAndSendTransactionOptions, SolanaSignAndSendTransactionOutput, SolanaSignMessageInput, SolanaSignMessageOutput, SolanaSignTransactionInput, SolanaSignTransactionOptions, SolanaSignTransactionOutput, type SolanaSpendApprovalChain, SolanaStandardWallet, SolanaTransactionCommitment, SolanaUsdcAddressMap, type SpendApprovalConfig, type SpendApprovalProvider, type Storage, type SvmDevSpendApprovalTarget, THIRDWEB, type TelegramAuthInput, type TelegramAuthResult, type TelegramWebAppData, UnknownWalletClientType, type UnsignedTransactionRequest, type UnsignedTransactionRequestWithChainId, UsdcAddressMap, type WaitForCompletionInput, type WaitForDepositInput, WalletBranding, WalletClientType, WalletConnectWalletClientType, acceptCardConsents, addSessionSigners, approveSpend, buildSolanaOffchainMessage, chainToMoonpayCurrency, chooseTempoEarnVault, cookies, countryCodesAndNumbers, create, createCard, createCardSignUp, createDataSuffixPlugin, createErrorFormatter, createSiwsMessage, index_d_exports as crossApp, index_d_exports$1 as cryptoDepositAccount, Privy as default, index_d_exports$2 as delegatedActions, index_d_exports$3 as depositAddress, deriveSolanaApplicationDomain, downloadCardStatement, errorIndicatesMaxMfaRetries, errorIndicatesMfaCanceled, errorIndicatesMfaRateLimit, errorIndicatesMfaTimeout, errorIndicatesMfaVerificationFailed, errorIndicatesRecoveryIsNeeded, formatLamportsAmount, formatPhoneNumber, formatSignedTransactionAmount, formatTokenAmount, formatTransactionDate, formatUsdAmount, formatWalletAddress, formatWeiAmount, fundingMethodToMoonpayPaymentMethod, generateAuthorizationSignature, generateWalletIdempotencyKey, getAllUserEmbeddedBitcoinWallets, getAllUserEmbeddedEthereumWallets, getAllUserEmbeddedSolanaWallets, getCardAssetDisplayName, getCardById, getCardCustomer, getCardDisclosure, getCardEphemeralKey, getCardsConfig, getCoinbaseOnRampUrl, getCountryCallingCode, getDataSuffixPlugin, getEntropyDetailsFromAccount, getEntropyDetailsFromUser, getFiatOnrampProviderBrand, getFiatOnrampProviderId, getIsTokenUsdc, getJsonRpcEndpointFromChain, getOrCreateCardCustomer, getPhoneCountryCodeAndNumber, getPlaceholderPhoneNumber, getSolanaClusterDisplayName, getSolanaRpcEndpointForCluster, getSolanaUsdcMintAddressForCluster, getSpendApproval, getTransactionBadge, getUserEmbeddedEthereumWallet, getUserEmbeddedSolanaWallet, getUserEmbeddedWallet, getUserSmartWallet, getWallet, getWalletAction, handleSignUpClose, isCardExpired, isEmbeddedWalletAccount, isExtensionContext, isSupportedChainIdForCoinbaseOnramp, isSupportedChainIdForMoonpay, isUnifiedWallet, lastFourDigits, listCardTransactions, listCards, listWalletActions, parseSolanaOffchainMessage, phoneNumberTypingFormatter, poll, rawSign, readSpendAllowance, readTempoEarnVault, removeSessionSigners, replaceCard, rpc, shouldWriteSessionCookies, throwIfInvalidRecoveryUpgradePath, toCoinbaseAssetId, toCoinbaseBlockchainFromChainId, toE164, toObjectKeys, toTransactionRow, toWalletApiUnsignedEthTransaction, transfer, updateCardPin, updateCardStatus, updateWallet, validatePhoneNumber };
|