@privy-io/js-sdk-core 0.78.2 → 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.
@@ -3899,7 +3899,7 @@ declare const createCardSignUp: ({ client, environment, walletId, chainId, asset
3899
3899
  walletId: string;
3900
3900
  /** CAIP-2 chain the card funds from. */
3901
3901
  chainId: string;
3902
- /** Asset forwarded to card creation, e.g. `'usdc'` or `'pathusd'`. */
3902
+ /** Asset forwarded to card creation, e.g. `'usdc'`, `'pathusd'`, or `'ousd'`. */
3903
3903
  asset: string;
3904
3904
  platform: CardSignUpPlatform;
3905
3905
  }) => CardSignUp;
@@ -3928,9 +3928,8 @@ type EvmDevSpendApprovalTarget = {
3928
3928
  */
3929
3929
  type SvmDevSpendApprovalTarget = {
3930
3930
  /**
3931
- * SPL stablecoin mint (USDC on the built-in devnet) the delegation source ATA holds. Assumed to be
3932
- * a legacy SPL Token program mint: the ATA and `Approve` are built against `TOKEN_PROGRAM_ID`, so a
3933
- * Token-2022 mint would derive the wrong ATA and fail.
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.
3934
3933
  */
3935
3934
  stablecoinAddress: string;
3936
3935
  /** Bridge card program that owns the delegate PDA. */
@@ -3995,7 +3994,7 @@ declare const formatTransactionDate: ({ unixSeconds }: {
3995
3994
  declare const formatUsdAmount: (cents: number) => string;
3996
3995
  //#endregion
3997
3996
  //#region src/cards/get-card-asset-display-name.d.ts
3998
- /** Display name for a card asset id (`usdc` → `USDC`, `pathusd` → `PathUSD`). */
3997
+ /** Display name for a card asset id (`usdc` → `USDC`, `pathusd` → `PathUSD`, `ousd` → `OUSD`). */
3999
3998
  declare const getCardAssetDisplayName: (asset: string | null | undefined) => string;
4000
3999
  //#endregion
4001
4000
  //#region src/cards/get-card-by-id.d.ts
@@ -4094,8 +4093,9 @@ type SpendApprovalConfig = EvmSpendApprovalConfig | SvmSpendApprovalConfig;
4094
4093
  /**
4095
4094
  * Resolves the spend-approval config for a CAIP-2 chain, or `null` when there is nothing to approve.
4096
4095
  * Uses the developer-supplied `spendApproval` target (required for production) when given, otherwise
4097
- * the built-in {@link TESTNET_SPEND_APPROVAL_TARGETS} for a sandbox testnet/devnet chain. A chain with
4098
- * neither — and a supplied target whose shape doesn't match the chain — resolves to `null`, which the
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
4099
  * onboarding flow surfaces as an unsupported-network error rather than reporting a card that can never
4100
4100
  * spend.
4101
4101
  *
@@ -4103,7 +4103,7 @@ type SpendApprovalConfig = EvmSpendApprovalConfig | SvmSpendApprovalConfig;
4103
4103
  * with a recognized cluster resolves to SVM (adding the resolved `chain` alias), an `eip155:*` chain
4104
4104
  * to EVM. A target whose shape doesn't match the chain's namespace is treated as unsupported.
4105
4105
  */
4106
- declare const getSpendApproval: (chainId: string, spendApproval?: DevSpendApprovalTarget) => SpendApprovalConfig | null;
4106
+ declare const getSpendApproval: (chainId: string, spendApproval?: DevSpendApprovalTarget, asset?: string) => SpendApprovalConfig | null;
4107
4107
  //#endregion
4108
4108
  //#region src/cards/get-transaction-badge.d.ts
4109
4109
  /**
@@ -3899,7 +3899,7 @@ declare const createCardSignUp: ({ client, environment, walletId, chainId, asset
3899
3899
  walletId: string;
3900
3900
  /** CAIP-2 chain the card funds from. */
3901
3901
  chainId: string;
3902
- /** Asset forwarded to card creation, e.g. `'usdc'` or `'pathusd'`. */
3902
+ /** Asset forwarded to card creation, e.g. `'usdc'`, `'pathusd'`, or `'ousd'`. */
3903
3903
  asset: string;
3904
3904
  platform: CardSignUpPlatform;
3905
3905
  }) => CardSignUp;
@@ -3928,9 +3928,8 @@ type EvmDevSpendApprovalTarget = {
3928
3928
  */
3929
3929
  type SvmDevSpendApprovalTarget = {
3930
3930
  /**
3931
- * SPL stablecoin mint (USDC on the built-in devnet) the delegation source ATA holds. Assumed to be
3932
- * a legacy SPL Token program mint: the ATA and `Approve` are built against `TOKEN_PROGRAM_ID`, so a
3933
- * Token-2022 mint would derive the wrong ATA and fail.
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.
3934
3933
  */
3935
3934
  stablecoinAddress: string;
3936
3935
  /** Bridge card program that owns the delegate PDA. */
@@ -3995,7 +3994,7 @@ declare const formatTransactionDate: ({ unixSeconds }: {
3995
3994
  declare const formatUsdAmount: (cents: number) => string;
3996
3995
  //#endregion
3997
3996
  //#region src/cards/get-card-asset-display-name.d.ts
3998
- /** Display name for a card asset id (`usdc` → `USDC`, `pathusd` → `PathUSD`). */
3997
+ /** Display name for a card asset id (`usdc` → `USDC`, `pathusd` → `PathUSD`, `ousd` → `OUSD`). */
3999
3998
  declare const getCardAssetDisplayName: (asset: string | null | undefined) => string;
4000
3999
  //#endregion
4001
4000
  //#region src/cards/get-card-by-id.d.ts
@@ -4094,8 +4093,9 @@ type SpendApprovalConfig = EvmSpendApprovalConfig | SvmSpendApprovalConfig;
4094
4093
  /**
4095
4094
  * Resolves the spend-approval config for a CAIP-2 chain, or `null` when there is nothing to approve.
4096
4095
  * Uses the developer-supplied `spendApproval` target (required for production) when given, otherwise
4097
- * the built-in {@link TESTNET_SPEND_APPROVAL_TARGETS} for a sandbox testnet/devnet chain. A chain with
4098
- * neither — and a supplied target whose shape doesn't match the chain — resolves to `null`, which the
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
4099
  * onboarding flow surfaces as an unsupported-network error rather than reporting a card that can never
4100
4100
  * spend.
4101
4101
  *
@@ -4103,7 +4103,7 @@ type SpendApprovalConfig = EvmSpendApprovalConfig | SvmSpendApprovalConfig;
4103
4103
  * with a recognized cluster resolves to SVM (adding the resolved `chain` alias), an `eip155:*` chain
4104
4104
  * to EVM. A target whose shape doesn't match the chain's namespace is treated as unsupported.
4105
4105
  */
4106
- declare const getSpendApproval: (chainId: string, spendApproval?: DevSpendApprovalTarget) => SpendApprovalConfig | null;
4106
+ declare const getSpendApproval: (chainId: string, spendApproval?: DevSpendApprovalTarget, asset?: string) => SpendApprovalConfig | null;
4107
4107
  //#endregion
4108
4108
  //#region src/cards/get-transaction-badge.d.ts
4109
4109
  /**