@crossmint/wallets-sdk 1.19.0 → 1.20.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/api/__tests__/constants.d.cts +3 -3
- package/dist/api/__tests__/constants.d.ts +3 -3
- package/dist/api/__tests__/test-utils.cjs +1 -1
- package/dist/api/__tests__/test-utils.d.cts +2 -2
- package/dist/api/__tests__/test-utils.d.ts +2 -2
- package/dist/api/__tests__/test-utils.js +1 -1
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.d.cts +3 -3
- package/dist/api/client.d.ts +3 -3
- package/dist/api/client.js +1 -1
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.d.cts +2 -2
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +1 -1
- package/dist/api/types.d.cts +1 -1
- package/dist/api/types.d.ts +1 -1
- package/dist/chains/adapters/evm.cjs +1 -1
- package/dist/chains/adapters/evm.d.cts +2 -2
- package/dist/chains/adapters/evm.d.ts +2 -2
- package/dist/chains/adapters/evm.js +1 -1
- package/dist/chains/adapters/solana.cjs +1 -1
- package/dist/chains/adapters/solana.d.cts +2 -2
- package/dist/chains/adapters/solana.d.ts +2 -2
- package/dist/chains/adapters/solana.js +1 -1
- package/dist/chains/adapters/stellar.cjs +1 -1
- package/dist/chains/adapters/stellar.d.cts +2 -2
- package/dist/chains/adapters/stellar.d.ts +2 -2
- package/dist/chains/adapters/stellar.js +1 -1
- package/dist/chains/chain-adapter.cjs +1 -1
- package/dist/chains/chain-adapter.d.cts +2 -2
- package/dist/chains/chain-adapter.d.ts +2 -2
- package/dist/chains/chain-adapter.js +1 -1
- package/dist/chains/chains.cjs +1 -1
- package/dist/chains/chains.d.cts +2 -2
- package/dist/chains/chains.d.ts +2 -2
- package/dist/chains/chains.js +1 -1
- package/dist/{chunk-R4LSFTQB.js → chunk-2SQXN4JL.js} +1 -1
- package/dist/{chunk-WY5KEIIJ.cjs → chunk-3E3JUVWL.cjs} +1 -1
- package/dist/{chunk-CMER6QR6.cjs → chunk-3GWEE56X.cjs} +1 -1
- package/dist/{chunk-HUZNB3IW.cjs → chunk-3HUNEWAR.cjs} +1 -1
- package/dist/{chunk-WRXF6ZSY.js → chunk-3RWQHOBG.js} +1 -1
- package/dist/{chunk-P3P5Q5XX.js → chunk-43LFPZII.js} +1 -1
- package/dist/chunk-4M6KYXG7.cjs +1 -0
- package/dist/{chunk-UFYLMDRQ.js → chunk-4VGTYVW7.js} +1 -1
- package/dist/{chunk-X7V2C53V.js → chunk-5T7R5TZO.js} +1 -1
- package/dist/{chunk-HCV4M7X2.cjs → chunk-664ATEWT.cjs} +1 -1
- package/dist/chunk-6CNZXJLK.js +1 -0
- package/dist/{chunk-3F4Z2URU.js → chunk-6EPYTT7A.js} +1 -1
- package/dist/chunk-754XJCSX.cjs +1 -0
- package/dist/chunk-A4F6GFJC.cjs +1 -0
- package/dist/chunk-AI5NDEKL.js +1 -0
- package/dist/chunk-AMGE2J7V.js +1 -0
- package/dist/{chunk-QUPMMNGB.js → chunk-AOZ2VVTT.js} +1 -1
- package/dist/{chunk-XFUCYR24.cjs → chunk-AYCMZ6UJ.cjs} +2 -2
- package/dist/{chunk-YSR4FJK7.js → chunk-BF5VS7HX.js} +1 -1
- package/dist/{chunk-YOF3WB3D.js → chunk-C2R47XW6.js} +1 -1
- package/dist/{chunk-SE5L5SQK.cjs → chunk-DFJ63LIQ.cjs} +1 -1
- package/dist/{chunk-C5LIXILN.js → chunk-DVVGWCH7.js} +1 -1
- package/dist/{chunk-CFRSSHAG.cjs → chunk-ENLWAIYV.cjs} +1 -1
- package/dist/{chunk-3W22A7E7.js → chunk-GFK67DR4.js} +1 -1
- package/dist/{chunk-AEHDAUN4.cjs → chunk-H52MPNZP.cjs} +1 -1
- package/dist/{chunk-LEPWAFFZ.js → chunk-HDVUDIDC.js} +1 -1
- package/dist/{chunk-J5VWZVHL.js → chunk-HODQMDIV.js} +1 -1
- package/dist/chunk-I3FLN7RY.js +1 -0
- package/dist/{chunk-Y5JB3XEX.cjs → chunk-IHIJ7G64.cjs} +1 -1
- package/dist/{chunk-PWHMYEUN.cjs → chunk-IYWWY7T5.cjs} +1 -1
- package/dist/{chunk-WXHLPGEB.js → chunk-J7N56JUE.js} +1 -1
- package/dist/{chunk-PJ76KALO.js → chunk-JAP6U3CJ.js} +1 -1
- package/dist/{chunk-OOMMVXZB.js → chunk-KNAIS6WY.js} +1 -1
- package/dist/{chunk-HHA4QJLV.cjs → chunk-KUT3FS3U.cjs} +1 -1
- package/dist/{chunk-XMV4T3J5.cjs → chunk-LRWKIVXL.cjs} +1 -1
- package/dist/chunk-MFQX2HNH.js +1 -0
- package/dist/{chunk-X2CTI7IK.cjs → chunk-NBZEWJUH.cjs} +1 -1
- package/dist/{chunk-NS7UW4BA.cjs → chunk-NHNNPXP7.cjs} +1 -1
- package/dist/chunk-NULQLE3D.js +1 -0
- package/dist/{chunk-36GZTRZX.cjs → chunk-O673DZDX.cjs} +1 -1
- package/dist/{chunk-6XLTNU2N.cjs → chunk-OAFFHV5G.cjs} +1 -1
- package/dist/{chunk-DCZP3IV7.js → chunk-PEHDJW5W.js} +1 -1
- package/dist/{chunk-GAKX357N.cjs → chunk-PQ4LAXVO.cjs} +1 -1
- package/dist/{chunk-ZACJIS35.cjs → chunk-QD53EMTK.cjs} +1 -1
- package/dist/{chunk-2YLAHC7J.js → chunk-QNNWOOHI.js} +1 -1
- package/dist/{chunk-MT2D5VRF.cjs → chunk-R3CAXQLJ.cjs} +1 -1
- package/dist/{chunk-PH4EWT7R.js → chunk-RAQFOCJT.js} +1 -1
- package/dist/{chunk-PCRZWMYM.js → chunk-RFWRLJEX.js} +1 -1
- package/dist/{chunk-67VE25UL.js → chunk-SGLJQXKH.js} +1 -1
- package/dist/{chunk-MI3DBGDV.cjs → chunk-SINS7Z5F.cjs} +1 -1
- package/dist/chunk-TISVJEJ4.cjs +1 -0
- package/dist/chunk-VRA6S3DJ.cjs +1 -0
- package/dist/{chunk-3FQB7LST.cjs → chunk-VRO4EPRC.cjs} +1 -1
- package/dist/chunk-VUCADC63.cjs +1 -0
- package/dist/{chunk-MVGSX46H.js → chunk-WQ7JSD6A.js} +1 -1
- package/dist/{chunk-3FUVUUXU.cjs → chunk-WS27JTIY.cjs} +1 -1
- package/dist/chunk-XK7Y22KI.cjs +1 -0
- package/dist/{chunk-O2ET3L2R.cjs → chunk-XTYSMO67.cjs} +1 -1
- package/dist/{chunk-HLI46UDR.js → chunk-YHPZJA2F.js} +1 -1
- package/dist/{chunk-2J5RPKHK.js → chunk-YNOT3UTT.js} +1 -1
- package/dist/chunk-Z4OBKN5C.js +1 -0
- package/dist/{chunk-WSCABGVO.cjs → chunk-Z6CVEP22.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/logger/index.cjs +1 -1
- package/dist/logger/index.js +1 -1
- package/dist/logger/init.cjs +1 -1
- package/dist/logger/init.js +1 -1
- package/dist/sdk.cjs +1 -1
- package/dist/sdk.d.cts +8 -5
- package/dist/sdk.d.ts +8 -5
- package/dist/sdk.js +1 -1
- package/dist/signers/descriptors/api-key.d.cts +3 -3
- package/dist/signers/descriptors/api-key.d.ts +3 -3
- package/dist/signers/descriptors/device.d.cts +3 -3
- package/dist/signers/descriptors/device.d.ts +3 -3
- package/dist/signers/descriptors/email.d.cts +3 -3
- package/dist/signers/descriptors/email.d.ts +3 -3
- package/dist/signers/descriptors/external-wallet.d.cts +3 -3
- package/dist/signers/descriptors/external-wallet.d.ts +3 -3
- package/dist/signers/descriptors/index.cjs +1 -1
- package/dist/signers/descriptors/index.d.cts +2 -2
- package/dist/signers/descriptors/index.d.ts +2 -2
- package/dist/signers/descriptors/index.js +1 -1
- package/dist/signers/descriptors/passkey.cjs +1 -1
- package/dist/signers/descriptors/passkey.d.cts +3 -3
- package/dist/signers/descriptors/passkey.d.ts +3 -3
- package/dist/signers/descriptors/passkey.js +1 -1
- package/dist/signers/descriptors/phone.d.cts +3 -3
- package/dist/signers/descriptors/phone.d.ts +3 -3
- package/dist/signers/descriptors/server.cjs +1 -1
- package/dist/signers/descriptors/server.d.cts +3 -3
- package/dist/signers/descriptors/server.d.ts +3 -3
- package/dist/signers/descriptors/server.js +1 -1
- package/dist/signers/descriptors/types.d.cts +4 -3
- package/dist/signers/descriptors/types.d.ts +4 -3
- package/dist/signers/device.d.cts +3 -3
- package/dist/signers/device.d.ts +3 -3
- package/dist/signers/evm-api-key.d.cts +3 -3
- package/dist/signers/evm-api-key.d.ts +3 -3
- package/dist/signers/evm-external-wallet.d.cts +3 -3
- package/dist/signers/evm-external-wallet.d.ts +3 -3
- package/dist/signers/external-wallet-signer.d.cts +2 -2
- package/dist/signers/external-wallet-signer.d.ts +2 -2
- package/dist/signers/index.cjs +1 -1
- package/dist/signers/index.d.cts +2 -2
- package/dist/signers/index.d.ts +2 -2
- package/dist/signers/index.js +1 -1
- package/dist/signers/non-custodial/index.cjs +1 -1
- package/dist/signers/non-custodial/index.d.cts +3 -3
- package/dist/signers/non-custodial/index.d.ts +3 -3
- package/dist/signers/non-custodial/index.js +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.d.cts +3 -3
- package/dist/signers/non-custodial/ncs-evm-signer.d.ts +3 -3
- package/dist/signers/non-custodial/ncs-evm-signer.js +1 -1
- package/dist/signers/non-custodial/ncs-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-signer.d.cts +3 -3
- package/dist/signers/non-custodial/ncs-signer.d.ts +3 -3
- package/dist/signers/non-custodial/ncs-signer.js +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.d.cts +3 -3
- package/dist/signers/non-custodial/ncs-solana-signer.d.ts +3 -3
- package/dist/signers/non-custodial/ncs-solana-signer.js +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.cjs +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.d.cts +3 -3
- package/dist/signers/non-custodial/ncs-stellar-signer.d.ts +3 -3
- package/dist/signers/non-custodial/ncs-stellar-signer.js +1 -1
- package/dist/signers/passkey.cjs +1 -1
- package/dist/signers/passkey.d.cts +3 -3
- package/dist/signers/passkey.d.ts +3 -3
- package/dist/signers/passkey.js +1 -1
- package/dist/signers/server/assemble-server-signer.d.cts +2 -2
- package/dist/signers/server/assemble-server-signer.d.ts +2 -2
- package/dist/signers/server/evm-server-signer.d.cts +3 -3
- package/dist/signers/server/evm-server-signer.d.ts +3 -3
- package/dist/signers/server/helpers/derive-server-signer.d.cts +2 -2
- package/dist/signers/server/helpers/derive-server-signer.d.ts +2 -2
- package/dist/signers/server/helpers/index.d.cts +3 -3
- package/dist/signers/server/helpers/index.d.ts +3 -3
- package/dist/signers/server/index.d.cts +2 -2
- package/dist/signers/server/index.d.ts +2 -2
- package/dist/signers/server/resolver.cjs +1 -1
- package/dist/signers/server/resolver.d.cts +2 -2
- package/dist/signers/server/resolver.d.ts +2 -2
- package/dist/signers/server/resolver.js +1 -1
- package/dist/signers/server/solana-server-signer.d.cts +3 -3
- package/dist/signers/server/solana-server-signer.d.ts +3 -3
- package/dist/signers/server/stellar-server-signer.d.cts +3 -3
- package/dist/signers/server/stellar-server-signer.d.ts +3 -3
- package/dist/signers/solana-api-key.d.cts +3 -3
- package/dist/signers/solana-api-key.d.ts +3 -3
- package/dist/signers/solana-external-wallet.d.cts +3 -3
- package/dist/signers/solana-external-wallet.d.ts +3 -3
- package/dist/signers/stellar-external-wallet.d.cts +3 -3
- package/dist/signers/stellar-external-wallet.d.ts +3 -3
- package/dist/signers/types.cjs +1 -1
- package/dist/signers/types.d.cts +2 -2
- package/dist/signers/types.d.ts +2 -2
- package/dist/signers/types.js +1 -1
- package/dist/{types-D0tKSMr1.d.ts → types-DOG2X_ok.d.ts} +106 -87
- package/dist/{types-BrPpsHHA.d.cts → types-XN1EunoG.d.cts} +106 -87
- package/dist/utils/constants.cjs +1 -1
- package/dist/utils/constants.js +1 -1
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.cjs +1 -1
- package/dist/utils/device-signers/IframeDeviceSignerKeyStorage.js +1 -1
- package/dist/utils/device-signers/createDeviceSigner.d.cts +3 -3
- package/dist/utils/device-signers/createDeviceSigner.d.ts +3 -3
- package/dist/utils/device-signers/index.cjs +1 -1
- package/dist/utils/device-signers/index.d.cts +3 -3
- package/dist/utils/device-signers/index.d.ts +3 -3
- package/dist/utils/device-signers/index.js +1 -1
- package/dist/utils/locators.d.cts +3 -3
- package/dist/utils/locators.d.ts +3 -3
- package/dist/utils/recovery.cjs +1 -1
- package/dist/utils/recovery.d.cts +2 -2
- package/dist/utils/recovery.d.ts +2 -2
- package/dist/utils/recovery.js +1 -1
- package/dist/utils/signer-locator.d.cts +2 -2
- package/dist/utils/signer-locator.d.ts +2 -2
- package/dist/utils/signer-mapping.d.cts +3 -3
- package/dist/utils/signer-mapping.d.ts +3 -3
- package/dist/wallets/__tests__/test-helpers.cjs +1 -1
- package/dist/wallets/__tests__/test-helpers.d.cts +1 -1
- package/dist/wallets/__tests__/test-helpers.d.ts +1 -1
- package/dist/wallets/__tests__/test-helpers.js +1 -1
- package/dist/wallets/evm.cjs +1 -1
- package/dist/wallets/evm.d.cts +2 -2
- package/dist/wallets/evm.d.ts +2 -2
- package/dist/wallets/evm.js +1 -1
- package/dist/wallets/services/balance-formatter.cjs +1 -1
- package/dist/wallets/services/balance-formatter.d.cts +3 -3
- package/dist/wallets/services/balance-formatter.d.ts +3 -3
- package/dist/wallets/services/balance-formatter.js +1 -1
- package/dist/wallets/services/device-recovery-service.cjs +1 -1
- package/dist/wallets/services/device-recovery-service.d.cts +2 -2
- package/dist/wallets/services/device-recovery-service.d.ts +2 -2
- package/dist/wallets/services/device-recovery-service.js +1 -1
- package/dist/wallets/services/operation-poller.cjs +1 -1
- package/dist/wallets/services/operation-poller.d.cts +2 -2
- package/dist/wallets/services/operation-poller.d.ts +2 -2
- package/dist/wallets/services/operation-poller.js +1 -1
- package/dist/wallets/services/signer-manager.cjs +1 -1
- package/dist/wallets/services/signer-manager.d.cts +3 -3
- package/dist/wallets/services/signer-manager.d.ts +3 -3
- package/dist/wallets/services/signer-manager.js +1 -1
- package/dist/wallets/solana.cjs +1 -1
- package/dist/wallets/solana.d.cts +2 -2
- package/dist/wallets/solana.d.ts +2 -2
- package/dist/wallets/solana.js +1 -1
- package/dist/wallets/stellar.cjs +1 -1
- package/dist/wallets/stellar.d.cts +2 -2
- package/dist/wallets/stellar.d.ts +2 -2
- package/dist/wallets/stellar.js +1 -1
- package/dist/wallets/types.d.cts +2 -2
- package/dist/wallets/types.d.ts +2 -2
- package/dist/wallets/wallet-factory.cjs +1 -1
- package/dist/wallets/wallet-factory.d.cts +3 -2
- package/dist/wallets/wallet-factory.d.ts +3 -2
- package/dist/wallets/wallet-factory.js +1 -1
- package/dist/wallets/wallet.cjs +1 -1
- package/dist/wallets/wallet.d.cts +2 -2
- package/dist/wallets/wallet.d.ts +2 -2
- package/dist/wallets/wallet.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-2E6IJLDW.js +0 -1
- package/dist/chunk-4LXZPDTP.cjs +0 -1
- package/dist/chunk-54LGZZX4.js +0 -1
- package/dist/chunk-DBFCNM4F.js +0 -1
- package/dist/chunk-DXF5442W.cjs +0 -1
- package/dist/chunk-FNDMOANS.cjs +0 -1
- package/dist/chunk-GBTTVLK5.cjs +0 -1
- package/dist/chunk-KQDPQXLL.cjs +0 -1
- package/dist/chunk-NM33FBA3.cjs +0 -1
- package/dist/chunk-PA3RU64J.js +0 -1
- package/dist/chunk-PSIZCLMC.js +0 -1
- package/dist/chunk-QYBC7GTA.js +0 -1
- package/dist/chunk-VW24W4N4.js +0 -1
- package/dist/chunk-ZR63HKN6.cjs +0 -1
|
@@ -1,14 +1,94 @@
|
|
|
1
|
-
import { TypedDataDefinition, TypedData, Address } from 'viem';
|
|
2
|
-
import { WalletBalanceV20250609ResponseDto, CreateWalletV2025DtoClass, WalletV2025ResponseDtoClass, WalletV1Alpha2ErrorDto, CreateTransactionV2025DtoClass, WalletsTransactionV2025ResponseDtoClass, WalletV1Alpha2TransactionErrorDto, SubmitApprovalV2025Dto, WalletsV2025ControllerSubmitApprovals2Error, WalletsV2025ControllerGetTransaction2Error, CreateSignatureV2025Dto, WalletsSignatureV2025ResponseDto, WalletsV2025ControllerCreateSignatureRequest2Error, WalletsV2025ControllerSubmitSignatureApprovals2Error, WalletsV2025ControllerGetSignature2Error, WalletsMultipleTransactionV2025ResponseDto, WalletsV2025ControllerGetTransactionsWithoutChain2Error, WalletsActivityResponseUnstableDto, BalanceV20250609ControllerGetBalanceForLocator2Error, FundWalletAmountDto, BalanceControllerFundWallet4Responses, BalanceControllerFundWallet4Error, CreateSignerV2025InputDtoClass, DelegatedSignerV2025DtoClass, WalletsV2025ControllerCreateDelegatedSigner2Error, AddRecoveryMethodsV2025DtoClass, AddRecoveryMethodsResponseV2025DtoClass, WalletsV2025ControllerGetDelegatedSigner2Error, SendTokenDto, WalletsSendTokenControllerSendToken2Response } from './api/gen/types.gen.js';
|
|
3
1
|
import { WebAuthnP256 } from 'ox';
|
|
4
2
|
import { HandshakeParent } from '@crossmint/client-sdk-window';
|
|
5
3
|
import { signerOutboundEvents, signerInboundEvents, exportSignerOutboundEvents, exportSignerInboundEvents } from '@crossmint/client-signers';
|
|
6
4
|
import { SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig, EvmExternalWalletSignerConfig, Crossmint } from '@crossmint/common-sdk-base';
|
|
7
5
|
import { Chain, StellarChain, SolanaChain, EVMSmartWalletChain } from './chains/chains.js';
|
|
8
6
|
import { VersionedTransaction, Keypair } from '@solana/web3.js';
|
|
7
|
+
import { Address, TypedDataDefinition, TypedData } from 'viem';
|
|
9
8
|
import { Abi } from 'abitype';
|
|
9
|
+
import { SubmitApprovalV2025Dto, WalletBalanceV20250609ResponseDto, CreateWalletV2025DtoClass, WalletV2025ResponseDtoClass, WalletV1Alpha2ErrorDto, CreateTransactionV2025DtoClass, WalletsTransactionV2025ResponseDtoClass, WalletV1Alpha2TransactionErrorDto, WalletsV2025ControllerSubmitApprovals2Error, WalletsV2025ControllerGetTransaction2Error, CreateSignatureV2025Dto, WalletsSignatureV2025ResponseDto, WalletsV2025ControllerCreateSignatureRequest2Error, WalletsV2025ControllerSubmitSignatureApprovals2Error, WalletsV2025ControllerGetSignature2Error, WalletsMultipleTransactionV2025ResponseDto, WalletsV2025ControllerGetTransactionsWithoutChain2Error, WalletsActivityResponseUnstableDto, BalanceV20250609ControllerGetBalanceForLocator2Error, FundWalletAmountDto, BalanceControllerFundWallet4Responses, BalanceControllerFundWallet4Error, CreateSignerV2025InputDtoClass, DelegatedSignerV2025DtoClass, WalletsV2025ControllerCreateDelegatedSigner2Error, AddRecoveryMethodsV2025DtoClass, AddRecoveryMethodsResponseV2025DtoClass, WalletsV2025ControllerGetDelegatedSigner2Error, SendTokenDto, WalletsSendTokenControllerSendToken2Response } from './api/gen/types.gen.js';
|
|
10
10
|
import { DeviceSignerKeyStorage } from './utils/device-signers/DeviceSignerKeyStorage.js';
|
|
11
11
|
|
|
12
|
+
type CreateWalletParams = CreateWalletV2025DtoClass;
|
|
13
|
+
type GetWalletSuccessResponse = WalletV2025ResponseDtoClass;
|
|
14
|
+
type CreateWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
15
|
+
type GetWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
16
|
+
type RecoverySignerConfig = NonNullable<Extract<CreateWalletV2025DtoClass, {
|
|
17
|
+
config: {
|
|
18
|
+
adminSigner: Record<string, unknown>;
|
|
19
|
+
};
|
|
20
|
+
}>["config"]>["adminSigner"];
|
|
21
|
+
type CreateTransactionParams = CreateTransactionV2025DtoClass;
|
|
22
|
+
type CreateTransactionSuccessResponse = WalletsTransactionV2025ResponseDtoClass;
|
|
23
|
+
type CreateTransactionResponse = CreateTransactionSuccessResponse | WalletV1Alpha2TransactionErrorDto;
|
|
24
|
+
type ApproveTransactionParams = SubmitApprovalV2025Dto;
|
|
25
|
+
type ApproveTransactionResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerSubmitApprovals2Error;
|
|
26
|
+
type GetTransactionResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerGetTransaction2Error;
|
|
27
|
+
type GetTransactionSuccessResponse = WalletsTransactionV2025ResponseDtoClass;
|
|
28
|
+
type CreateSignatureParams = CreateSignatureV2025Dto;
|
|
29
|
+
type CreateSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerCreateSignatureRequest2Error;
|
|
30
|
+
type ApproveSignatureParams = SubmitApprovalV2025Dto;
|
|
31
|
+
type ApproveSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerSubmitSignatureApprovals2Error;
|
|
32
|
+
type GetSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerGetSignature2Error;
|
|
33
|
+
type GetTransactionsResponse = WalletsMultipleTransactionV2025ResponseDto | WalletsV2025ControllerGetTransactionsWithoutChain2Error;
|
|
34
|
+
type GetBalanceResponse = WalletBalanceV20250609ResponseDto | BalanceV20250609ControllerGetBalanceForLocator2Error;
|
|
35
|
+
type GetBalanceSuccessResponse = WalletBalanceV20250609ResponseDto;
|
|
36
|
+
type GetTransfersResponse = WalletsActivityResponseUnstableDto | WalletV1Alpha2ErrorDto;
|
|
37
|
+
type Transfers = WalletsActivityResponseUnstableDto;
|
|
38
|
+
type FundWalletParams = FundWalletAmountDto;
|
|
39
|
+
type FundWalletResponse = BalanceControllerFundWallet4Responses | BalanceControllerFundWallet4Error;
|
|
40
|
+
type RegisterSignerChain = Extract<CreateSignerV2025InputDtoClass, {
|
|
41
|
+
chain: string;
|
|
42
|
+
}>["chain"];
|
|
43
|
+
type RegisterSignerPasskeyParams = Extract<CreateSignerV2025InputDtoClass["signer"], {
|
|
44
|
+
type: "passkey";
|
|
45
|
+
}>;
|
|
46
|
+
type TransferScope = {
|
|
47
|
+
type: "transfer";
|
|
48
|
+
tokenLocator: string;
|
|
49
|
+
recipients?: string[];
|
|
50
|
+
spendingLimit?: {
|
|
51
|
+
amount: string;
|
|
52
|
+
/** Positive integer representing the reset interval in seconds. Must be >= 1. */
|
|
53
|
+
interval?: number;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type Scope = TransferScope;
|
|
57
|
+
type RegisterSignerParams = {
|
|
58
|
+
signer: SignerLocator | RegisterSignerPasskeyParams | SignerConfigForChain<Chain>;
|
|
59
|
+
chain?: RegisterSignerChain;
|
|
60
|
+
scopes?: Scope[];
|
|
61
|
+
deployImmediately?: boolean;
|
|
62
|
+
approver?: CreateSignerV2025InputDtoClass["approver"];
|
|
63
|
+
};
|
|
64
|
+
type RegisterSignerResponse = DelegatedSignerV2025DtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
65
|
+
type RemoveSignerParams = {
|
|
66
|
+
chain?: RegisterSignerChain;
|
|
67
|
+
approver?: CreateSignerV2025InputDtoClass["approver"];
|
|
68
|
+
};
|
|
69
|
+
type RemoveSignerResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
70
|
+
type GetSignerResponse = DelegatedSignerV2025DtoClass | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
71
|
+
type RegisterRecoveryMethodParams = {
|
|
72
|
+
recoveryMethods: AddRecoveryMethodsV2025DtoClass["recoveryMethods"];
|
|
73
|
+
approver: AddRecoveryMethodsV2025DtoClass["approver"];
|
|
74
|
+
chain?: RegisterSignerChain;
|
|
75
|
+
};
|
|
76
|
+
type RegisterRecoveryMethodResponse = AddRecoveryMethodsResponseV2025DtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
77
|
+
type RemoveRecoveryMethodParams = {
|
|
78
|
+
approver: AddRecoveryMethodsV2025DtoClass["approver"];
|
|
79
|
+
chain?: RegisterSignerChain;
|
|
80
|
+
};
|
|
81
|
+
type RemoveRecoveryMethodResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
82
|
+
type GetSignersResponse = Array<DelegatedSignerV2025DtoClass> | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
83
|
+
type Signer$1 = DelegatedSignerV2025DtoClass;
|
|
84
|
+
type SendParams = SendTokenDto;
|
|
85
|
+
type SendResponse = WalletsSendTokenControllerSendToken2Response;
|
|
86
|
+
type WalletType = "smart" | "mpc";
|
|
87
|
+
type SolanaAddress = string;
|
|
88
|
+
type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
89
|
+
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
90
|
+
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
91
|
+
|
|
12
92
|
type PrepareOnly<T extends boolean = boolean> = {
|
|
13
93
|
prepareOnly: T;
|
|
14
94
|
};
|
|
@@ -31,9 +111,9 @@ type UpgradeOptions = Partial<PrepareOnly> & {
|
|
|
31
111
|
type MigrateOptions = Partial<PrepareOnly> & {
|
|
32
112
|
signer?: string | ServerSignerConfig;
|
|
33
113
|
};
|
|
34
|
-
type AddSignerReturnType<C extends Chain> = C extends "solana" | "stellar" ? Signer
|
|
114
|
+
type AddSignerReturnType<C extends Chain> = C extends "solana" | "stellar" ? Signer & {
|
|
35
115
|
transactionId: string;
|
|
36
|
-
} : Signer
|
|
116
|
+
} : Signer & {
|
|
37
117
|
signatureId?: string;
|
|
38
118
|
transactionId?: string;
|
|
39
119
|
};
|
|
@@ -111,7 +191,7 @@ type PendingSignerOperation = {
|
|
|
111
191
|
type SignerInput = {
|
|
112
192
|
signer: string | ServerSignerConfig;
|
|
113
193
|
};
|
|
114
|
-
type Signer
|
|
194
|
+
type Signer = {
|
|
115
195
|
type: "passkey";
|
|
116
196
|
id: string;
|
|
117
197
|
name: string;
|
|
@@ -179,6 +259,8 @@ type WalletOptions = {
|
|
|
179
259
|
clientTEEConnection?: HandshakeParent<typeof signerOutboundEvents, typeof signerInboundEvents>;
|
|
180
260
|
resetSignerFrame?: () => Promise<void>;
|
|
181
261
|
deviceSignerKeyStorage?: DeviceSignerKeyStorage;
|
|
262
|
+
/** Creates and signs with passkeys where the browser WebAuthn API is not available (e.g. React Native). */
|
|
263
|
+
passkeyProvider?: PasskeyProvider;
|
|
182
264
|
};
|
|
183
265
|
type WalletArgsFor<C extends Chain> = {
|
|
184
266
|
/** The blockchain to create the wallet on (e.g. "base-sepolia"). */
|
|
@@ -370,7 +452,24 @@ type PasskeySignerConfig = {
|
|
|
370
452
|
y: string;
|
|
371
453
|
};
|
|
372
454
|
}>;
|
|
373
|
-
|
|
455
|
+
/** `message` is the hex WebAuthn challenge; `credentialId` is the passkey's credential id when it is known. */
|
|
456
|
+
onSignWithPasskey?: (message: string, credentialId?: string) => Promise<PasskeySignResult>;
|
|
457
|
+
};
|
|
458
|
+
/**
|
|
459
|
+
* Creates passkeys and signs with them where the browser WebAuthn API is not available (e.g. React Native).
|
|
460
|
+
* Passed as the `passkeyProvider` wallet option, it is used for every passkey signer that has no
|
|
461
|
+
* `onCreatePasskey` / `onSignWithPasskey` of its own.
|
|
462
|
+
*/
|
|
463
|
+
type PasskeyProvider = {
|
|
464
|
+
createPasskey: (name: string) => Promise<{
|
|
465
|
+
id: string;
|
|
466
|
+
publicKey: {
|
|
467
|
+
x: string;
|
|
468
|
+
y: string;
|
|
469
|
+
};
|
|
470
|
+
}>;
|
|
471
|
+
/** `message` is the hex WebAuthn challenge; `credentialId` is the passkey to sign with, when it is known. */
|
|
472
|
+
signWithPasskey: (message: string, credentialId?: string) => Promise<PasskeySignResult>;
|
|
374
473
|
};
|
|
375
474
|
type BaseInternalSignerConfig = {
|
|
376
475
|
locator: SignerLocator;
|
|
@@ -468,84 +567,4 @@ interface ExportableSignerAdapter extends SignerAdapter {
|
|
|
468
567
|
declare function isExportableSignerAdapter(signer: SignerAdapter): signer is ExportableSignerAdapter;
|
|
469
568
|
type ExportSignerTEEConnection = HandshakeParent<typeof exportSignerOutboundEvents, typeof exportSignerInboundEvents>;
|
|
470
569
|
|
|
471
|
-
type CreateWalletParams
|
|
472
|
-
type GetWalletSuccessResponse = WalletV2025ResponseDtoClass;
|
|
473
|
-
type CreateWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
474
|
-
type GetWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
475
|
-
type RecoverySignerConfig = NonNullable<Extract<CreateWalletV2025DtoClass, {
|
|
476
|
-
config: {
|
|
477
|
-
adminSigner: Record<string, unknown>;
|
|
478
|
-
};
|
|
479
|
-
}>["config"]>["adminSigner"];
|
|
480
|
-
type CreateTransactionParams = CreateTransactionV2025DtoClass;
|
|
481
|
-
type CreateTransactionSuccessResponse = WalletsTransactionV2025ResponseDtoClass;
|
|
482
|
-
type CreateTransactionResponse = CreateTransactionSuccessResponse | WalletV1Alpha2TransactionErrorDto;
|
|
483
|
-
type ApproveTransactionParams = SubmitApprovalV2025Dto;
|
|
484
|
-
type ApproveTransactionResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerSubmitApprovals2Error;
|
|
485
|
-
type GetTransactionResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerGetTransaction2Error;
|
|
486
|
-
type GetTransactionSuccessResponse = WalletsTransactionV2025ResponseDtoClass;
|
|
487
|
-
type CreateSignatureParams = CreateSignatureV2025Dto;
|
|
488
|
-
type CreateSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerCreateSignatureRequest2Error;
|
|
489
|
-
type ApproveSignatureParams = SubmitApprovalV2025Dto;
|
|
490
|
-
type ApproveSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerSubmitSignatureApprovals2Error;
|
|
491
|
-
type GetSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerGetSignature2Error;
|
|
492
|
-
type GetTransactionsResponse = WalletsMultipleTransactionV2025ResponseDto | WalletsV2025ControllerGetTransactionsWithoutChain2Error;
|
|
493
|
-
type GetBalanceResponse = WalletBalanceV20250609ResponseDto | BalanceV20250609ControllerGetBalanceForLocator2Error;
|
|
494
|
-
type GetBalanceSuccessResponse = WalletBalanceV20250609ResponseDto;
|
|
495
|
-
type GetTransfersResponse = WalletsActivityResponseUnstableDto | WalletV1Alpha2ErrorDto;
|
|
496
|
-
type Transfers = WalletsActivityResponseUnstableDto;
|
|
497
|
-
type FundWalletParams = FundWalletAmountDto;
|
|
498
|
-
type FundWalletResponse = BalanceControllerFundWallet4Responses | BalanceControllerFundWallet4Error;
|
|
499
|
-
type RegisterSignerChain = Extract<CreateSignerV2025InputDtoClass, {
|
|
500
|
-
chain: string;
|
|
501
|
-
}>["chain"];
|
|
502
|
-
type RegisterSignerPasskeyParams = Extract<CreateSignerV2025InputDtoClass["signer"], {
|
|
503
|
-
type: "passkey";
|
|
504
|
-
}>;
|
|
505
|
-
type TransferScope = {
|
|
506
|
-
type: "transfer";
|
|
507
|
-
tokenLocator: string;
|
|
508
|
-
recipients?: string[];
|
|
509
|
-
spendingLimit?: {
|
|
510
|
-
amount: string;
|
|
511
|
-
/** Positive integer representing the reset interval in seconds. Must be >= 1. */
|
|
512
|
-
interval?: number;
|
|
513
|
-
};
|
|
514
|
-
};
|
|
515
|
-
type Scope = TransferScope;
|
|
516
|
-
type RegisterSignerParams = {
|
|
517
|
-
signer: SignerLocator | RegisterSignerPasskeyParams | SignerConfigForChain<Chain>;
|
|
518
|
-
chain?: RegisterSignerChain;
|
|
519
|
-
scopes?: Scope[];
|
|
520
|
-
deployImmediately?: boolean;
|
|
521
|
-
approver?: CreateSignerV2025InputDtoClass["approver"];
|
|
522
|
-
};
|
|
523
|
-
type RegisterSignerResponse = DelegatedSignerV2025DtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
524
|
-
type RemoveSignerParams = {
|
|
525
|
-
chain?: RegisterSignerChain;
|
|
526
|
-
approver?: CreateSignerV2025InputDtoClass["approver"];
|
|
527
|
-
};
|
|
528
|
-
type RemoveSignerResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
529
|
-
type GetSignerResponse = DelegatedSignerV2025DtoClass | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
530
|
-
type RegisterRecoveryMethodParams = {
|
|
531
|
-
recoveryMethods: AddRecoveryMethodsV2025DtoClass["recoveryMethods"];
|
|
532
|
-
approver: AddRecoveryMethodsV2025DtoClass["approver"];
|
|
533
|
-
chain?: RegisterSignerChain;
|
|
534
|
-
};
|
|
535
|
-
type RegisterRecoveryMethodResponse = AddRecoveryMethodsResponseV2025DtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
536
|
-
type RemoveRecoveryMethodParams = {
|
|
537
|
-
approver: AddRecoveryMethodsV2025DtoClass["approver"];
|
|
538
|
-
chain?: RegisterSignerChain;
|
|
539
|
-
};
|
|
540
|
-
type RemoveRecoveryMethodResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
541
|
-
type GetSignersResponse = Array<DelegatedSignerV2025DtoClass> | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
542
|
-
type Signer = DelegatedSignerV2025DtoClass;
|
|
543
|
-
type SendParams = SendTokenDto;
|
|
544
|
-
type SendResponse = WalletsSendTokenControllerSendToken2Response;
|
|
545
|
-
type WalletType = "smart" | "mpc";
|
|
546
|
-
type SolanaAddress = string;
|
|
547
|
-
type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
548
|
-
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
549
|
-
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
550
|
-
|
|
551
|
-
export { type DeviceSignResult as $, type AddRecoveryMethodOptions as A, type Balances as B, type Callbacks as C, type DeviceSignerConfig as D, type EVMTransactionInput as E, type SignerAdapter as F, SignerAuthenticationError as G, type SignerConfigForChain as H, type SignerLocator as I, type SignerStatus as J, KeyExportError as K, SignerStatusError as L, type SolanaTransactionInput as M, type TransferScope as N, OnboardingSessionExpiredError as O, type PasskeySignerLocator as P, type Transfers as Q, type RecoverySignerConfigForChain as R, type Scope as S, type Transaction as T, type WalletCreateArgs as U, type WalletOptions as V, type WalletArgsFor as W, type WalletPlugin as X, isExportableSignerAdapter as Y, type DerivedServerSigner as Z, type DeviceInternalSignerConfig as _, type AddRecoveryMethodReturnType as a, type GetWalletSuccessResponse as a$, type ApiKeyInternalSignerConfig as a0, type ExternalWalletInternalSignerConfig as a1, type InternalSignerConfig as a2, type PasskeyInternalSignerConfig as a3, type PasskeySignResult as a4, type UserLocator as a5, type RecoverySignerConfigFor as a6, type PasskeySignerConfig as a7, type Signer as a8, type PendingSignerOperation as a9, type CreateWalletParams as aA, type EmailInternalSignerConfig as aB, type PhoneInternalSignerConfig as aC, type BaseSignResult as aD, type ServerInternalSignerConfig as aE, type GetBalanceSuccessResponse as aF, type GetWalletResponse as aG, type CreateTransactionParams as aH, type CreateTransactionResponse as aI, type ApproveTransactionParams as aJ, type ApproveTransactionResponse as aK, type CreateSignatureParams as aL, type CreateSignatureResponse as aM, type ApproveSignatureParams as aN, type GetSignatureResponse as aO, type GetTransfersResponse as aP, type GetBalanceResponse as aQ, type FundWalletParams as aR, type RemoveSignerParams as aS, type RemoveSignerResponse as aT, type RegisterRecoveryMethodParams as aU, type RegisterRecoveryMethodResponse as aV, type RemoveRecoveryMethodParams as aW, type RemoveRecoveryMethodResponse as aX, type SendParams as aY, type CreateTransactionSuccessResponse as aZ, type GetSignersResponse as a_, type PrepareOnly as aa, type SignMessageInput as ab, type SignTypedDataInput as ac, type FundWalletResponse as ad, type GetTransactionsResponse as ae, type GetTransactionSuccessResponse as af, type SendTokenTransactionOptions as ag, type ApproveResult as ah, type AddSignerReturnType as ai, type RemoveSignerReturnType as aj, type WalletLocator as ak, type ApproveSignatureResponse as al, type TransactionInputOptions as am, type StellarTransactionInput as an, type UpgradeOptions as ao, type MigrateOptions as ap, type GetSignerResponse as aq, type ApiSourcedServerSignerConfig as ar, type RegisterSignerParams as as, type ServerSignerLocator as at, type RegisterSignerChain as au, type RegisterSignerResponse as av, type TokenBalance as aw, type GetTransactionResponse as ax, type SendResponse as ay, type CreateWalletResponse as az, type AddSignerOptions as b, type RecoverySignerConfig as b0, type Approval as b1, type DeviceSignerDescriptor as b2, type FormattedEVMTransaction as b3, type PendingApproval as b4, type SendTokenTransactionType as b5, type SignatureInputOptions as b6, type SignerInput as b7, type StellarWalletPlugin as b8, type ApiKeySignerConfig as b9, type BaseSignerConfig as ba, type NonCustodialSignerType as bb, isApiSourcedServerSignerConfig as bc, type ApiKeySignerLocator as c, type ApproveOptions as d, type ApproveParams as e, AuthRejectedError as f, type ClientSideWalletArgsFor as g, type ClientSideWalletCreateArgs as h, type DeviceSignerLocator as i, type EmailSignerConfig as j, type EmailSignerLocator as k, type ExportSignerTEEConnection as l, type ExportableSignerAdapter as m, type ExternalWalletRegistrationConfig as n, type ExternalWalletSignerConfigForChain as o, type ExternalWalletSignerLocator as p, OtpValidationError as q, type PhoneSignerConfig as r, type PhoneSignerLocator as s, type RegisterSignerPasskeyParams as t, type RemoveRecoveryMethodOptions as u, type RemoveRecoveryMethodReturnType as v, type RemoveSignerOptions as w, type ServerSignerConfig as x, type Signature as y, type Signer$1 as z };
|
|
570
|
+
export { type Transaction as $, type AddRecoveryMethodOptions as A, type Balances as B, type Callbacks as C, type DeviceSignerConfig as D, type EVMTransactionInput as E, type FundWalletParams as F, type GetBalanceResponse as G, type RegisterSignerPasskeyParams as H, type RemoveRecoveryMethodOptions as I, type RemoveRecoveryMethodReturnType as J, KeyExportError as K, type RemoveSignerOptions as L, type SendResponse as M, type ServerSignerConfig as N, OnboardingSessionExpiredError as O, type PasskeyProvider as P, type Signature as Q, type RecoverySignerConfigForChain as R, type Scope as S, type Signer as T, type SignerAdapter as U, SignerAuthenticationError as V, type SignerConfigForChain as W, type SignerLocator as X, type SignerStatus as Y, SignerStatusError as Z, type SolanaTransactionInput as _, type AddRecoveryMethodReturnType as a, type GetSignersResponse as a$, type TransferScope as a0, type Transfers as a1, type WalletArgsFor as a2, type WalletCreateArgs as a3, type WalletLocator as a4, type WalletOptions as a5, type WalletPlugin as a6, isExportableSignerAdapter as a7, type DerivedServerSigner as a8, type DeviceInternalSignerConfig as a9, type RegisterSignerParams as aA, type ServerSignerLocator as aB, type RegisterSignerChain as aC, type RegisterSignerResponse as aD, type TokenBalance as aE, type EmailInternalSignerConfig as aF, type PhoneInternalSignerConfig as aG, type BaseSignResult as aH, type ServerInternalSignerConfig as aI, type GetBalanceSuccessResponse as aJ, type GetWalletResponse as aK, type CreateTransactionParams as aL, type CreateTransactionResponse as aM, type ApproveTransactionResponse as aN, type CreateSignatureParams as aO, type CreateSignatureResponse as aP, type ApproveSignatureParams as aQ, type GetSignatureResponse as aR, type GetTransfersResponse as aS, type RemoveSignerParams as aT, type RemoveSignerResponse as aU, type RegisterRecoveryMethodParams as aV, type RegisterRecoveryMethodResponse as aW, type RemoveRecoveryMethodParams as aX, type RemoveRecoveryMethodResponse as aY, type SendParams as aZ, type CreateTransactionSuccessResponse as a_, type DeviceSignResult as aa, type ApiKeyInternalSignerConfig as ab, type ExternalWalletInternalSignerConfig as ac, type InternalSignerConfig as ad, type PasskeyInternalSignerConfig as ae, type UserLocator as af, type RecoverySignerConfigFor as ag, type PasskeySignerConfig as ah, type Signer$1 as ai, type PendingSignerOperation as aj, type PrepareOnly as ak, type SignMessageInput as al, type SignTypedDataInput as am, type GetTransactionsResponse as an, type GetTransactionSuccessResponse as ao, type SendTokenTransactionOptions as ap, type ApproveResult as aq, type AddSignerReturnType as ar, type RemoveSignerReturnType as as, type ApproveSignatureResponse as at, type TransactionInputOptions as au, type StellarTransactionInput as av, type UpgradeOptions as aw, type MigrateOptions as ax, type GetSignerResponse as ay, type ApiSourcedServerSignerConfig as az, type AddSignerOptions as b, type GetWalletSuccessResponse as b0, type RecoverySignerConfig as b1, type Approval as b2, type DeviceSignerDescriptor as b3, type FormattedEVMTransaction as b4, type PendingApproval as b5, type SendTokenTransactionType as b6, type SignatureInputOptions as b7, type SignerInput as b8, type StellarWalletPlugin as b9, type ApiKeySignerConfig as ba, type BaseSignerConfig as bb, type NonCustodialSignerType as bc, isApiSourcedServerSignerConfig as bd, type ApiKeySignerLocator as c, type ApproveOptions as d, type ApproveParams as e, type ApproveTransactionParams as f, AuthRejectedError as g, type ClientSideWalletArgsFor as h, type ClientSideWalletCreateArgs as i, type CreateWalletParams as j, type CreateWalletResponse as k, type DeviceSignerLocator as l, type EmailSignerConfig as m, type EmailSignerLocator as n, type ExportSignerTEEConnection as o, type ExportableSignerAdapter as p, type ExternalWalletRegistrationConfig as q, type ExternalWalletSignerConfigForChain as r, type ExternalWalletSignerLocator as s, type FundWalletResponse as t, type GetTransactionResponse as u, OtpValidationError as v, type PasskeySignResult as w, type PasskeySignerLocator as x, type PhoneSignerConfig as y, type PhoneSignerLocator as z };
|
|
@@ -1,14 +1,94 @@
|
|
|
1
|
-
import { TypedDataDefinition, TypedData, Address } from 'viem';
|
|
2
|
-
import { WalletBalanceV20250609ResponseDto, CreateWalletV2025DtoClass, WalletV2025ResponseDtoClass, WalletV1Alpha2ErrorDto, CreateTransactionV2025DtoClass, WalletsTransactionV2025ResponseDtoClass, WalletV1Alpha2TransactionErrorDto, SubmitApprovalV2025Dto, WalletsV2025ControllerSubmitApprovals2Error, WalletsV2025ControllerGetTransaction2Error, CreateSignatureV2025Dto, WalletsSignatureV2025ResponseDto, WalletsV2025ControllerCreateSignatureRequest2Error, WalletsV2025ControllerSubmitSignatureApprovals2Error, WalletsV2025ControllerGetSignature2Error, WalletsMultipleTransactionV2025ResponseDto, WalletsV2025ControllerGetTransactionsWithoutChain2Error, WalletsActivityResponseUnstableDto, BalanceV20250609ControllerGetBalanceForLocator2Error, FundWalletAmountDto, BalanceControllerFundWallet4Responses, BalanceControllerFundWallet4Error, CreateSignerV2025InputDtoClass, DelegatedSignerV2025DtoClass, WalletsV2025ControllerCreateDelegatedSigner2Error, AddRecoveryMethodsV2025DtoClass, AddRecoveryMethodsResponseV2025DtoClass, WalletsV2025ControllerGetDelegatedSigner2Error, SendTokenDto, WalletsSendTokenControllerSendToken2Response } from './api/gen/types.gen.cjs';
|
|
3
1
|
import { WebAuthnP256 } from 'ox';
|
|
4
2
|
import { HandshakeParent } from '@crossmint/client-sdk-window';
|
|
5
3
|
import { signerOutboundEvents, signerInboundEvents, exportSignerOutboundEvents, exportSignerInboundEvents } from '@crossmint/client-signers';
|
|
6
4
|
import { SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig, EvmExternalWalletSignerConfig, Crossmint } from '@crossmint/common-sdk-base';
|
|
7
5
|
import { Chain, StellarChain, SolanaChain, EVMSmartWalletChain } from './chains/chains.cjs';
|
|
8
6
|
import { VersionedTransaction, Keypair } from '@solana/web3.js';
|
|
7
|
+
import { Address, TypedDataDefinition, TypedData } from 'viem';
|
|
9
8
|
import { Abi } from 'abitype';
|
|
9
|
+
import { SubmitApprovalV2025Dto, WalletBalanceV20250609ResponseDto, CreateWalletV2025DtoClass, WalletV2025ResponseDtoClass, WalletV1Alpha2ErrorDto, CreateTransactionV2025DtoClass, WalletsTransactionV2025ResponseDtoClass, WalletV1Alpha2TransactionErrorDto, WalletsV2025ControllerSubmitApprovals2Error, WalletsV2025ControllerGetTransaction2Error, CreateSignatureV2025Dto, WalletsSignatureV2025ResponseDto, WalletsV2025ControllerCreateSignatureRequest2Error, WalletsV2025ControllerSubmitSignatureApprovals2Error, WalletsV2025ControllerGetSignature2Error, WalletsMultipleTransactionV2025ResponseDto, WalletsV2025ControllerGetTransactionsWithoutChain2Error, WalletsActivityResponseUnstableDto, BalanceV20250609ControllerGetBalanceForLocator2Error, FundWalletAmountDto, BalanceControllerFundWallet4Responses, BalanceControllerFundWallet4Error, CreateSignerV2025InputDtoClass, DelegatedSignerV2025DtoClass, WalletsV2025ControllerCreateDelegatedSigner2Error, AddRecoveryMethodsV2025DtoClass, AddRecoveryMethodsResponseV2025DtoClass, WalletsV2025ControllerGetDelegatedSigner2Error, SendTokenDto, WalletsSendTokenControllerSendToken2Response } from './api/gen/types.gen.cjs';
|
|
10
10
|
import { DeviceSignerKeyStorage } from './utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
11
11
|
|
|
12
|
+
type CreateWalletParams = CreateWalletV2025DtoClass;
|
|
13
|
+
type GetWalletSuccessResponse = WalletV2025ResponseDtoClass;
|
|
14
|
+
type CreateWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
15
|
+
type GetWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
16
|
+
type RecoverySignerConfig = NonNullable<Extract<CreateWalletV2025DtoClass, {
|
|
17
|
+
config: {
|
|
18
|
+
adminSigner: Record<string, unknown>;
|
|
19
|
+
};
|
|
20
|
+
}>["config"]>["adminSigner"];
|
|
21
|
+
type CreateTransactionParams = CreateTransactionV2025DtoClass;
|
|
22
|
+
type CreateTransactionSuccessResponse = WalletsTransactionV2025ResponseDtoClass;
|
|
23
|
+
type CreateTransactionResponse = CreateTransactionSuccessResponse | WalletV1Alpha2TransactionErrorDto;
|
|
24
|
+
type ApproveTransactionParams = SubmitApprovalV2025Dto;
|
|
25
|
+
type ApproveTransactionResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerSubmitApprovals2Error;
|
|
26
|
+
type GetTransactionResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerGetTransaction2Error;
|
|
27
|
+
type GetTransactionSuccessResponse = WalletsTransactionV2025ResponseDtoClass;
|
|
28
|
+
type CreateSignatureParams = CreateSignatureV2025Dto;
|
|
29
|
+
type CreateSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerCreateSignatureRequest2Error;
|
|
30
|
+
type ApproveSignatureParams = SubmitApprovalV2025Dto;
|
|
31
|
+
type ApproveSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerSubmitSignatureApprovals2Error;
|
|
32
|
+
type GetSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerGetSignature2Error;
|
|
33
|
+
type GetTransactionsResponse = WalletsMultipleTransactionV2025ResponseDto | WalletsV2025ControllerGetTransactionsWithoutChain2Error;
|
|
34
|
+
type GetBalanceResponse = WalletBalanceV20250609ResponseDto | BalanceV20250609ControllerGetBalanceForLocator2Error;
|
|
35
|
+
type GetBalanceSuccessResponse = WalletBalanceV20250609ResponseDto;
|
|
36
|
+
type GetTransfersResponse = WalletsActivityResponseUnstableDto | WalletV1Alpha2ErrorDto;
|
|
37
|
+
type Transfers = WalletsActivityResponseUnstableDto;
|
|
38
|
+
type FundWalletParams = FundWalletAmountDto;
|
|
39
|
+
type FundWalletResponse = BalanceControllerFundWallet4Responses | BalanceControllerFundWallet4Error;
|
|
40
|
+
type RegisterSignerChain = Extract<CreateSignerV2025InputDtoClass, {
|
|
41
|
+
chain: string;
|
|
42
|
+
}>["chain"];
|
|
43
|
+
type RegisterSignerPasskeyParams = Extract<CreateSignerV2025InputDtoClass["signer"], {
|
|
44
|
+
type: "passkey";
|
|
45
|
+
}>;
|
|
46
|
+
type TransferScope = {
|
|
47
|
+
type: "transfer";
|
|
48
|
+
tokenLocator: string;
|
|
49
|
+
recipients?: string[];
|
|
50
|
+
spendingLimit?: {
|
|
51
|
+
amount: string;
|
|
52
|
+
/** Positive integer representing the reset interval in seconds. Must be >= 1. */
|
|
53
|
+
interval?: number;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
type Scope = TransferScope;
|
|
57
|
+
type RegisterSignerParams = {
|
|
58
|
+
signer: SignerLocator | RegisterSignerPasskeyParams | SignerConfigForChain<Chain>;
|
|
59
|
+
chain?: RegisterSignerChain;
|
|
60
|
+
scopes?: Scope[];
|
|
61
|
+
deployImmediately?: boolean;
|
|
62
|
+
approver?: CreateSignerV2025InputDtoClass["approver"];
|
|
63
|
+
};
|
|
64
|
+
type RegisterSignerResponse = DelegatedSignerV2025DtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
65
|
+
type RemoveSignerParams = {
|
|
66
|
+
chain?: RegisterSignerChain;
|
|
67
|
+
approver?: CreateSignerV2025InputDtoClass["approver"];
|
|
68
|
+
};
|
|
69
|
+
type RemoveSignerResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
70
|
+
type GetSignerResponse = DelegatedSignerV2025DtoClass | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
71
|
+
type RegisterRecoveryMethodParams = {
|
|
72
|
+
recoveryMethods: AddRecoveryMethodsV2025DtoClass["recoveryMethods"];
|
|
73
|
+
approver: AddRecoveryMethodsV2025DtoClass["approver"];
|
|
74
|
+
chain?: RegisterSignerChain;
|
|
75
|
+
};
|
|
76
|
+
type RegisterRecoveryMethodResponse = AddRecoveryMethodsResponseV2025DtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
77
|
+
type RemoveRecoveryMethodParams = {
|
|
78
|
+
approver: AddRecoveryMethodsV2025DtoClass["approver"];
|
|
79
|
+
chain?: RegisterSignerChain;
|
|
80
|
+
};
|
|
81
|
+
type RemoveRecoveryMethodResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
82
|
+
type GetSignersResponse = Array<DelegatedSignerV2025DtoClass> | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
83
|
+
type Signer$1 = DelegatedSignerV2025DtoClass;
|
|
84
|
+
type SendParams = SendTokenDto;
|
|
85
|
+
type SendResponse = WalletsSendTokenControllerSendToken2Response;
|
|
86
|
+
type WalletType = "smart" | "mpc";
|
|
87
|
+
type SolanaAddress = string;
|
|
88
|
+
type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
89
|
+
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
90
|
+
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
91
|
+
|
|
12
92
|
type PrepareOnly<T extends boolean = boolean> = {
|
|
13
93
|
prepareOnly: T;
|
|
14
94
|
};
|
|
@@ -31,9 +111,9 @@ type UpgradeOptions = Partial<PrepareOnly> & {
|
|
|
31
111
|
type MigrateOptions = Partial<PrepareOnly> & {
|
|
32
112
|
signer?: string | ServerSignerConfig;
|
|
33
113
|
};
|
|
34
|
-
type AddSignerReturnType<C extends Chain> = C extends "solana" | "stellar" ? Signer
|
|
114
|
+
type AddSignerReturnType<C extends Chain> = C extends "solana" | "stellar" ? Signer & {
|
|
35
115
|
transactionId: string;
|
|
36
|
-
} : Signer
|
|
116
|
+
} : Signer & {
|
|
37
117
|
signatureId?: string;
|
|
38
118
|
transactionId?: string;
|
|
39
119
|
};
|
|
@@ -111,7 +191,7 @@ type PendingSignerOperation = {
|
|
|
111
191
|
type SignerInput = {
|
|
112
192
|
signer: string | ServerSignerConfig;
|
|
113
193
|
};
|
|
114
|
-
type Signer
|
|
194
|
+
type Signer = {
|
|
115
195
|
type: "passkey";
|
|
116
196
|
id: string;
|
|
117
197
|
name: string;
|
|
@@ -179,6 +259,8 @@ type WalletOptions = {
|
|
|
179
259
|
clientTEEConnection?: HandshakeParent<typeof signerOutboundEvents, typeof signerInboundEvents>;
|
|
180
260
|
resetSignerFrame?: () => Promise<void>;
|
|
181
261
|
deviceSignerKeyStorage?: DeviceSignerKeyStorage;
|
|
262
|
+
/** Creates and signs with passkeys where the browser WebAuthn API is not available (e.g. React Native). */
|
|
263
|
+
passkeyProvider?: PasskeyProvider;
|
|
182
264
|
};
|
|
183
265
|
type WalletArgsFor<C extends Chain> = {
|
|
184
266
|
/** The blockchain to create the wallet on (e.g. "base-sepolia"). */
|
|
@@ -370,7 +452,24 @@ type PasskeySignerConfig = {
|
|
|
370
452
|
y: string;
|
|
371
453
|
};
|
|
372
454
|
}>;
|
|
373
|
-
|
|
455
|
+
/** `message` is the hex WebAuthn challenge; `credentialId` is the passkey's credential id when it is known. */
|
|
456
|
+
onSignWithPasskey?: (message: string, credentialId?: string) => Promise<PasskeySignResult>;
|
|
457
|
+
};
|
|
458
|
+
/**
|
|
459
|
+
* Creates passkeys and signs with them where the browser WebAuthn API is not available (e.g. React Native).
|
|
460
|
+
* Passed as the `passkeyProvider` wallet option, it is used for every passkey signer that has no
|
|
461
|
+
* `onCreatePasskey` / `onSignWithPasskey` of its own.
|
|
462
|
+
*/
|
|
463
|
+
type PasskeyProvider = {
|
|
464
|
+
createPasskey: (name: string) => Promise<{
|
|
465
|
+
id: string;
|
|
466
|
+
publicKey: {
|
|
467
|
+
x: string;
|
|
468
|
+
y: string;
|
|
469
|
+
};
|
|
470
|
+
}>;
|
|
471
|
+
/** `message` is the hex WebAuthn challenge; `credentialId` is the passkey to sign with, when it is known. */
|
|
472
|
+
signWithPasskey: (message: string, credentialId?: string) => Promise<PasskeySignResult>;
|
|
374
473
|
};
|
|
375
474
|
type BaseInternalSignerConfig = {
|
|
376
475
|
locator: SignerLocator;
|
|
@@ -468,84 +567,4 @@ interface ExportableSignerAdapter extends SignerAdapter {
|
|
|
468
567
|
declare function isExportableSignerAdapter(signer: SignerAdapter): signer is ExportableSignerAdapter;
|
|
469
568
|
type ExportSignerTEEConnection = HandshakeParent<typeof exportSignerOutboundEvents, typeof exportSignerInboundEvents>;
|
|
470
569
|
|
|
471
|
-
type CreateWalletParams
|
|
472
|
-
type GetWalletSuccessResponse = WalletV2025ResponseDtoClass;
|
|
473
|
-
type CreateWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
474
|
-
type GetWalletResponse = GetWalletSuccessResponse | WalletV1Alpha2ErrorDto;
|
|
475
|
-
type RecoverySignerConfig = NonNullable<Extract<CreateWalletV2025DtoClass, {
|
|
476
|
-
config: {
|
|
477
|
-
adminSigner: Record<string, unknown>;
|
|
478
|
-
};
|
|
479
|
-
}>["config"]>["adminSigner"];
|
|
480
|
-
type CreateTransactionParams = CreateTransactionV2025DtoClass;
|
|
481
|
-
type CreateTransactionSuccessResponse = WalletsTransactionV2025ResponseDtoClass;
|
|
482
|
-
type CreateTransactionResponse = CreateTransactionSuccessResponse | WalletV1Alpha2TransactionErrorDto;
|
|
483
|
-
type ApproveTransactionParams = SubmitApprovalV2025Dto;
|
|
484
|
-
type ApproveTransactionResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerSubmitApprovals2Error;
|
|
485
|
-
type GetTransactionResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerGetTransaction2Error;
|
|
486
|
-
type GetTransactionSuccessResponse = WalletsTransactionV2025ResponseDtoClass;
|
|
487
|
-
type CreateSignatureParams = CreateSignatureV2025Dto;
|
|
488
|
-
type CreateSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerCreateSignatureRequest2Error;
|
|
489
|
-
type ApproveSignatureParams = SubmitApprovalV2025Dto;
|
|
490
|
-
type ApproveSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerSubmitSignatureApprovals2Error;
|
|
491
|
-
type GetSignatureResponse = WalletsSignatureV2025ResponseDto | WalletsV2025ControllerGetSignature2Error;
|
|
492
|
-
type GetTransactionsResponse = WalletsMultipleTransactionV2025ResponseDto | WalletsV2025ControllerGetTransactionsWithoutChain2Error;
|
|
493
|
-
type GetBalanceResponse = WalletBalanceV20250609ResponseDto | BalanceV20250609ControllerGetBalanceForLocator2Error;
|
|
494
|
-
type GetBalanceSuccessResponse = WalletBalanceV20250609ResponseDto;
|
|
495
|
-
type GetTransfersResponse = WalletsActivityResponseUnstableDto | WalletV1Alpha2ErrorDto;
|
|
496
|
-
type Transfers = WalletsActivityResponseUnstableDto;
|
|
497
|
-
type FundWalletParams = FundWalletAmountDto;
|
|
498
|
-
type FundWalletResponse = BalanceControllerFundWallet4Responses | BalanceControllerFundWallet4Error;
|
|
499
|
-
type RegisterSignerChain = Extract<CreateSignerV2025InputDtoClass, {
|
|
500
|
-
chain: string;
|
|
501
|
-
}>["chain"];
|
|
502
|
-
type RegisterSignerPasskeyParams = Extract<CreateSignerV2025InputDtoClass["signer"], {
|
|
503
|
-
type: "passkey";
|
|
504
|
-
}>;
|
|
505
|
-
type TransferScope = {
|
|
506
|
-
type: "transfer";
|
|
507
|
-
tokenLocator: string;
|
|
508
|
-
recipients?: string[];
|
|
509
|
-
spendingLimit?: {
|
|
510
|
-
amount: string;
|
|
511
|
-
/** Positive integer representing the reset interval in seconds. Must be >= 1. */
|
|
512
|
-
interval?: number;
|
|
513
|
-
};
|
|
514
|
-
};
|
|
515
|
-
type Scope = TransferScope;
|
|
516
|
-
type RegisterSignerParams = {
|
|
517
|
-
signer: SignerLocator | RegisterSignerPasskeyParams | SignerConfigForChain<Chain>;
|
|
518
|
-
chain?: RegisterSignerChain;
|
|
519
|
-
scopes?: Scope[];
|
|
520
|
-
deployImmediately?: boolean;
|
|
521
|
-
approver?: CreateSignerV2025InputDtoClass["approver"];
|
|
522
|
-
};
|
|
523
|
-
type RegisterSignerResponse = DelegatedSignerV2025DtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
524
|
-
type RemoveSignerParams = {
|
|
525
|
-
chain?: RegisterSignerChain;
|
|
526
|
-
approver?: CreateSignerV2025InputDtoClass["approver"];
|
|
527
|
-
};
|
|
528
|
-
type RemoveSignerResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
529
|
-
type GetSignerResponse = DelegatedSignerV2025DtoClass | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
530
|
-
type RegisterRecoveryMethodParams = {
|
|
531
|
-
recoveryMethods: AddRecoveryMethodsV2025DtoClass["recoveryMethods"];
|
|
532
|
-
approver: AddRecoveryMethodsV2025DtoClass["approver"];
|
|
533
|
-
chain?: RegisterSignerChain;
|
|
534
|
-
};
|
|
535
|
-
type RegisterRecoveryMethodResponse = AddRecoveryMethodsResponseV2025DtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
536
|
-
type RemoveRecoveryMethodParams = {
|
|
537
|
-
approver: AddRecoveryMethodsV2025DtoClass["approver"];
|
|
538
|
-
chain?: RegisterSignerChain;
|
|
539
|
-
};
|
|
540
|
-
type RemoveRecoveryMethodResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
541
|
-
type GetSignersResponse = Array<DelegatedSignerV2025DtoClass> | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
542
|
-
type Signer = DelegatedSignerV2025DtoClass;
|
|
543
|
-
type SendParams = SendTokenDto;
|
|
544
|
-
type SendResponse = WalletsSendTokenControllerSendToken2Response;
|
|
545
|
-
type WalletType = "smart" | "mpc";
|
|
546
|
-
type SolanaAddress = string;
|
|
547
|
-
type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
548
|
-
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
549
|
-
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
550
|
-
|
|
551
|
-
export { type DeviceSignResult as $, type AddRecoveryMethodOptions as A, type Balances as B, type Callbacks as C, type DeviceSignerConfig as D, type EVMTransactionInput as E, type SignerAdapter as F, SignerAuthenticationError as G, type SignerConfigForChain as H, type SignerLocator as I, type SignerStatus as J, KeyExportError as K, SignerStatusError as L, type SolanaTransactionInput as M, type TransferScope as N, OnboardingSessionExpiredError as O, type PasskeySignerLocator as P, type Transfers as Q, type RecoverySignerConfigForChain as R, type Scope as S, type Transaction as T, type WalletCreateArgs as U, type WalletOptions as V, type WalletArgsFor as W, type WalletPlugin as X, isExportableSignerAdapter as Y, type DerivedServerSigner as Z, type DeviceInternalSignerConfig as _, type AddRecoveryMethodReturnType as a, type GetWalletSuccessResponse as a$, type ApiKeyInternalSignerConfig as a0, type ExternalWalletInternalSignerConfig as a1, type InternalSignerConfig as a2, type PasskeyInternalSignerConfig as a3, type PasskeySignResult as a4, type UserLocator as a5, type RecoverySignerConfigFor as a6, type PasskeySignerConfig as a7, type Signer as a8, type PendingSignerOperation as a9, type CreateWalletParams as aA, type EmailInternalSignerConfig as aB, type PhoneInternalSignerConfig as aC, type BaseSignResult as aD, type ServerInternalSignerConfig as aE, type GetBalanceSuccessResponse as aF, type GetWalletResponse as aG, type CreateTransactionParams as aH, type CreateTransactionResponse as aI, type ApproveTransactionParams as aJ, type ApproveTransactionResponse as aK, type CreateSignatureParams as aL, type CreateSignatureResponse as aM, type ApproveSignatureParams as aN, type GetSignatureResponse as aO, type GetTransfersResponse as aP, type GetBalanceResponse as aQ, type FundWalletParams as aR, type RemoveSignerParams as aS, type RemoveSignerResponse as aT, type RegisterRecoveryMethodParams as aU, type RegisterRecoveryMethodResponse as aV, type RemoveRecoveryMethodParams as aW, type RemoveRecoveryMethodResponse as aX, type SendParams as aY, type CreateTransactionSuccessResponse as aZ, type GetSignersResponse as a_, type PrepareOnly as aa, type SignMessageInput as ab, type SignTypedDataInput as ac, type FundWalletResponse as ad, type GetTransactionsResponse as ae, type GetTransactionSuccessResponse as af, type SendTokenTransactionOptions as ag, type ApproveResult as ah, type AddSignerReturnType as ai, type RemoveSignerReturnType as aj, type WalletLocator as ak, type ApproveSignatureResponse as al, type TransactionInputOptions as am, type StellarTransactionInput as an, type UpgradeOptions as ao, type MigrateOptions as ap, type GetSignerResponse as aq, type ApiSourcedServerSignerConfig as ar, type RegisterSignerParams as as, type ServerSignerLocator as at, type RegisterSignerChain as au, type RegisterSignerResponse as av, type TokenBalance as aw, type GetTransactionResponse as ax, type SendResponse as ay, type CreateWalletResponse as az, type AddSignerOptions as b, type RecoverySignerConfig as b0, type Approval as b1, type DeviceSignerDescriptor as b2, type FormattedEVMTransaction as b3, type PendingApproval as b4, type SendTokenTransactionType as b5, type SignatureInputOptions as b6, type SignerInput as b7, type StellarWalletPlugin as b8, type ApiKeySignerConfig as b9, type BaseSignerConfig as ba, type NonCustodialSignerType as bb, isApiSourcedServerSignerConfig as bc, type ApiKeySignerLocator as c, type ApproveOptions as d, type ApproveParams as e, AuthRejectedError as f, type ClientSideWalletArgsFor as g, type ClientSideWalletCreateArgs as h, type DeviceSignerLocator as i, type EmailSignerConfig as j, type EmailSignerLocator as k, type ExportSignerTEEConnection as l, type ExportableSignerAdapter as m, type ExternalWalletRegistrationConfig as n, type ExternalWalletSignerConfigForChain as o, type ExternalWalletSignerLocator as p, OtpValidationError as q, type PhoneSignerConfig as r, type PhoneSignerLocator as s, type RegisterSignerPasskeyParams as t, type RemoveRecoveryMethodOptions as u, type RemoveRecoveryMethodReturnType as v, type RemoveSignerOptions as w, type ServerSignerConfig as x, type Signature as y, type Signer$1 as z };
|
|
570
|
+
export { type Transaction as $, type AddRecoveryMethodOptions as A, type Balances as B, type Callbacks as C, type DeviceSignerConfig as D, type EVMTransactionInput as E, type FundWalletParams as F, type GetBalanceResponse as G, type RegisterSignerPasskeyParams as H, type RemoveRecoveryMethodOptions as I, type RemoveRecoveryMethodReturnType as J, KeyExportError as K, type RemoveSignerOptions as L, type SendResponse as M, type ServerSignerConfig as N, OnboardingSessionExpiredError as O, type PasskeyProvider as P, type Signature as Q, type RecoverySignerConfigForChain as R, type Scope as S, type Signer as T, type SignerAdapter as U, SignerAuthenticationError as V, type SignerConfigForChain as W, type SignerLocator as X, type SignerStatus as Y, SignerStatusError as Z, type SolanaTransactionInput as _, type AddRecoveryMethodReturnType as a, type GetSignersResponse as a$, type TransferScope as a0, type Transfers as a1, type WalletArgsFor as a2, type WalletCreateArgs as a3, type WalletLocator as a4, type WalletOptions as a5, type WalletPlugin as a6, isExportableSignerAdapter as a7, type DerivedServerSigner as a8, type DeviceInternalSignerConfig as a9, type RegisterSignerParams as aA, type ServerSignerLocator as aB, type RegisterSignerChain as aC, type RegisterSignerResponse as aD, type TokenBalance as aE, type EmailInternalSignerConfig as aF, type PhoneInternalSignerConfig as aG, type BaseSignResult as aH, type ServerInternalSignerConfig as aI, type GetBalanceSuccessResponse as aJ, type GetWalletResponse as aK, type CreateTransactionParams as aL, type CreateTransactionResponse as aM, type ApproveTransactionResponse as aN, type CreateSignatureParams as aO, type CreateSignatureResponse as aP, type ApproveSignatureParams as aQ, type GetSignatureResponse as aR, type GetTransfersResponse as aS, type RemoveSignerParams as aT, type RemoveSignerResponse as aU, type RegisterRecoveryMethodParams as aV, type RegisterRecoveryMethodResponse as aW, type RemoveRecoveryMethodParams as aX, type RemoveRecoveryMethodResponse as aY, type SendParams as aZ, type CreateTransactionSuccessResponse as a_, type DeviceSignResult as aa, type ApiKeyInternalSignerConfig as ab, type ExternalWalletInternalSignerConfig as ac, type InternalSignerConfig as ad, type PasskeyInternalSignerConfig as ae, type UserLocator as af, type RecoverySignerConfigFor as ag, type PasskeySignerConfig as ah, type Signer$1 as ai, type PendingSignerOperation as aj, type PrepareOnly as ak, type SignMessageInput as al, type SignTypedDataInput as am, type GetTransactionsResponse as an, type GetTransactionSuccessResponse as ao, type SendTokenTransactionOptions as ap, type ApproveResult as aq, type AddSignerReturnType as ar, type RemoveSignerReturnType as as, type ApproveSignatureResponse as at, type TransactionInputOptions as au, type StellarTransactionInput as av, type UpgradeOptions as aw, type MigrateOptions as ax, type GetSignerResponse as ay, type ApiSourcedServerSignerConfig as az, type AddSignerOptions as b, type GetWalletSuccessResponse as b0, type RecoverySignerConfig as b1, type Approval as b2, type DeviceSignerDescriptor as b3, type FormattedEVMTransaction as b4, type PendingApproval as b5, type SendTokenTransactionType as b6, type SignatureInputOptions as b7, type SignerInput as b8, type StellarWalletPlugin as b9, type ApiKeySignerConfig as ba, type BaseSignerConfig as bb, type NonCustodialSignerType as bc, isApiSourcedServerSignerConfig as bd, type ApiKeySignerLocator as c, type ApproveOptions as d, type ApproveParams as e, type ApproveTransactionParams as f, AuthRejectedError as g, type ClientSideWalletArgsFor as h, type ClientSideWalletCreateArgs as i, type CreateWalletParams as j, type CreateWalletResponse as k, type DeviceSignerLocator as l, type EmailSignerConfig as m, type EmailSignerLocator as n, type ExportSignerTEEConnection as o, type ExportableSignerAdapter as p, type ExternalWalletRegistrationConfig as q, type ExternalWalletSignerConfigForChain as r, type ExternalWalletSignerLocator as s, type FundWalletResponse as t, type GetTransactionResponse as u, OtpValidationError as v, type PasskeySignResult as w, type PasskeySignerLocator as x, type PhoneSignerConfig as y, type PhoneSignerLocator as z };
|
package/dist/utils/constants.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkH52MPNZPcjs = require('../chunk-H52MPNZP.cjs');require('../chunk-DSIFRRBS.cjs');exports.SDK_NAME = _chunkH52MPNZPcjs.c; exports.SDK_VERSION = _chunkH52MPNZPcjs.b; exports.STATUS_POLLING_INTERVAL_MS = _chunkH52MPNZPcjs.d; exports.WALLETS_SERVICE = _chunkH52MPNZPcjs.a;
|
package/dist/utils/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-NULQLE3D.js";import"../chunk-NU7VF7MC.js";export{c as SDK_NAME,b as SDK_VERSION,d as STATUS_POLLING_INTERVAL_MS,a as WALLETS_SERVICE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkNHNNPXP7cjs = require('../../chunk-NHNNPXP7.cjs');require('../../chunk-GSNFNRH2.cjs');require('../../chunk-3VYGTPRF.cjs');require('../../chunk-D2S37DJ5.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-O673DZDX.cjs');require('../../chunk-H52MPNZP.cjs');require('../../chunk-DSIFRRBS.cjs');exports.IframeDeviceSignerKeyStorage = _chunkNHNNPXP7cjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-YHPZJA2F.js";import"../../chunk-NZXYWQE5.js";import"../../chunk-IOSADDL5.js";import"../../chunk-4I3EXM4B.js";import"../../chunk-455NK5LB.js";import"../../chunk-QNNWOOHI.js";import"../../chunk-NULQLE3D.js";import"../../chunk-NU7VF7MC.js";export{a as IframeDeviceSignerKeyStorage};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.cjs';
|
|
2
|
-
import { D as DeviceSignerConfig } from '../../types-
|
|
3
|
-
import 'viem';
|
|
4
|
-
import '../../api/gen/types.gen.cjs';
|
|
2
|
+
import { D as DeviceSignerConfig } from '../../types-XN1EunoG.cjs';
|
|
5
3
|
import 'ox';
|
|
6
4
|
import '@crossmint/client-sdk-window';
|
|
7
5
|
import '@crossmint/client-signers';
|
|
8
6
|
import '@crossmint/common-sdk-base';
|
|
9
7
|
import '../../chains/chains.cjs';
|
|
8
|
+
import 'viem';
|
|
10
9
|
import '@solana/web3.js';
|
|
11
10
|
import 'abitype';
|
|
11
|
+
import '../../api/gen/types.gen.cjs';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Creates a device signer by generating a new P-256 key pair via the provided key storage.
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.js';
|
|
2
|
-
import { D as DeviceSignerConfig } from '../../types-
|
|
3
|
-
import 'viem';
|
|
4
|
-
import '../../api/gen/types.gen.js';
|
|
2
|
+
import { D as DeviceSignerConfig } from '../../types-DOG2X_ok.js';
|
|
5
3
|
import 'ox';
|
|
6
4
|
import '@crossmint/client-sdk-window';
|
|
7
5
|
import '@crossmint/client-signers';
|
|
8
6
|
import '@crossmint/common-sdk-base';
|
|
9
7
|
import '../../chains/chains.js';
|
|
8
|
+
import 'viem';
|
|
10
9
|
import '@solana/web3.js';
|
|
11
10
|
import 'abitype';
|
|
11
|
+
import '../../api/gen/types.gen.js';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Creates a device signer by generating a new P-256 key pair via the provided key storage.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-CUHDOBKN.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-CUHDOBKN.cjs');var _chunkNHNNPXP7cjs = require('../../chunk-NHNNPXP7.cjs');require('../../chunk-GSNFNRH2.cjs');var _chunk3VYGTPRFcjs = require('../../chunk-3VYGTPRF.cjs');var _chunkGMU3ZYLScjs = require('../../chunk-GMU3ZYLS.cjs');require('../../chunk-D2S37DJ5.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-O673DZDX.cjs');require('../../chunk-H52MPNZP.cjs');require('../../chunk-DSIFRRBS.cjs');exports.DeviceSignerKeyStorage = _chunk3VYGTPRFcjs.a; exports.IframeDeviceSignerKeyStorage = _chunkNHNNPXP7cjs.a; exports.createDeviceSigner = _chunkGMU3ZYLScjs.a;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { BiometricPolicy, DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.cjs';
|
|
2
2
|
export { BiometricRequestHandler, IframeDeviceSignerKeyStorage } from './IframeDeviceSignerKeyStorage.cjs';
|
|
3
3
|
export { createDeviceSigner } from './createDeviceSigner.cjs';
|
|
4
|
-
import '../../types-
|
|
5
|
-
import 'viem';
|
|
6
|
-
import '../../api/gen/types.gen.cjs';
|
|
4
|
+
import '../../types-XN1EunoG.cjs';
|
|
7
5
|
import 'ox';
|
|
8
6
|
import '@crossmint/client-sdk-window';
|
|
9
7
|
import '@crossmint/client-signers';
|
|
10
8
|
import '@crossmint/common-sdk-base';
|
|
11
9
|
import '../../chains/chains.cjs';
|
|
10
|
+
import 'viem';
|
|
12
11
|
import '@solana/web3.js';
|
|
13
12
|
import 'abitype';
|
|
13
|
+
import '../../api/gen/types.gen.cjs';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export { BiometricPolicy, DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.js';
|
|
2
2
|
export { BiometricRequestHandler, IframeDeviceSignerKeyStorage } from './IframeDeviceSignerKeyStorage.js';
|
|
3
3
|
export { createDeviceSigner } from './createDeviceSigner.js';
|
|
4
|
-
import '../../types-
|
|
5
|
-
import 'viem';
|
|
6
|
-
import '../../api/gen/types.gen.js';
|
|
4
|
+
import '../../types-DOG2X_ok.js';
|
|
7
5
|
import 'ox';
|
|
8
6
|
import '@crossmint/client-sdk-window';
|
|
9
7
|
import '@crossmint/client-signers';
|
|
10
8
|
import '@crossmint/common-sdk-base';
|
|
11
9
|
import '../../chains/chains.js';
|
|
10
|
+
import 'viem';
|
|
12
11
|
import '@solana/web3.js';
|
|
13
12
|
import 'abitype';
|
|
13
|
+
import '../../api/gen/types.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-TOAFCAVT.js";import{a as b}from"../../chunk-
|
|
1
|
+
import"../../chunk-TOAFCAVT.js";import{a as b}from"../../chunk-YHPZJA2F.js";import"../../chunk-NZXYWQE5.js";import{a}from"../../chunk-IOSADDL5.js";import{a as c}from"../../chunk-5LNDUSMZ.js";import"../../chunk-4I3EXM4B.js";import"../../chunk-455NK5LB.js";import"../../chunk-QNNWOOHI.js";import"../../chunk-NULQLE3D.js";import"../../chunk-NU7VF7MC.js";export{a as DeviceSignerKeyStorage,b as IframeDeviceSignerKeyStorage,c as createDeviceSigner};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import 'viem';
|
|
3
|
-
import '../api/gen/types.gen.cjs';
|
|
1
|
+
import { af as UserLocator } from '../types-XN1EunoG.cjs';
|
|
4
2
|
import 'ox';
|
|
5
3
|
import '@crossmint/client-sdk-window';
|
|
6
4
|
import '@crossmint/client-signers';
|
|
7
5
|
import '@crossmint/common-sdk-base';
|
|
8
6
|
import '../chains/chains.cjs';
|
|
7
|
+
import 'viem';
|
|
9
8
|
import '@solana/web3.js';
|
|
10
9
|
import 'abitype';
|
|
10
|
+
import '../api/gen/types.gen.cjs';
|
|
11
11
|
import './device-signers/DeviceSignerKeyStorage.cjs';
|
|
12
12
|
|
|
13
13
|
declare function toRecipientLocator(to: string | UserLocator): string;
|