@crossmint/wallets-sdk 1.13.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/__tests__/constants.d.cts +1 -1
- package/dist/api/__tests__/constants.d.ts +1 -1
- package/dist/api/__tests__/test-utils.cjs +1 -1
- package/dist/api/__tests__/test-utils.d.cts +1 -1
- package/dist/api/__tests__/test-utils.d.ts +1 -1
- package/dist/api/__tests__/test-utils.js +1 -1
- package/dist/api/client.cjs +1 -1
- package/dist/api/client.d.cts +1 -1
- package/dist/api/client.d.ts +1 -1
- package/dist/api/client.js +1 -1
- package/dist/api/gen/index.cjs +1 -1
- package/dist/api/gen/index.js +1 -1
- package/dist/api/gen/types.gen.d.cts +346 -25
- package/dist/api/gen/types.gen.d.ts +346 -25
- package/dist/api/index.cjs +1 -1
- package/dist/api/index.d.cts +1 -1
- package/dist/api/index.d.ts +1 -1
- 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 +1 -1
- package/dist/chains/adapters/evm.d.ts +1 -1
- package/dist/chains/adapters/evm.js +1 -1
- package/dist/chains/adapters/solana.cjs +1 -1
- package/dist/chains/adapters/solana.d.cts +1 -1
- package/dist/chains/adapters/solana.d.ts +1 -1
- package/dist/chains/adapters/solana.js +1 -1
- package/dist/chains/adapters/stellar.cjs +1 -1
- package/dist/chains/adapters/stellar.d.cts +1 -1
- package/dist/chains/adapters/stellar.d.ts +1 -1
- package/dist/chains/adapters/stellar.js +1 -1
- package/dist/chains/chain-adapter.cjs +1 -1
- package/dist/chains/chain-adapter.d.cts +1 -1
- package/dist/chains/chain-adapter.d.ts +1 -1
- package/dist/chains/chain-adapter.js +1 -1
- package/dist/chains/chains.cjs +1 -1
- package/dist/chains/chains.js +1 -1
- package/dist/{chunk-7BW7B47N.js → chunk-25TINDQ4.js} +1 -1
- package/dist/{chunk-AK3REMFI.cjs → chunk-2D6B7AZ6.cjs} +1 -1
- package/dist/chunk-2VMMA4Y6.cjs +1 -0
- package/dist/chunk-3DK46BDI.cjs +1 -0
- package/dist/chunk-3KAXLLXJ.js +1 -0
- package/dist/chunk-3L3U3TID.cjs +1 -0
- package/dist/chunk-3RVLLQ4M.cjs +1 -0
- package/dist/{chunk-DHY24KCS.cjs → chunk-3TJEBF5U.cjs} +1 -1
- package/dist/{chunk-LKQX44ZD.cjs → chunk-3TPBVNNF.cjs} +1 -1
- package/dist/{chunk-OE6CWWFM.js → chunk-3UROOLIH.js} +1 -1
- package/dist/{chunk-BHMBFV5Z.cjs → chunk-4I5SLLAX.cjs} +1 -1
- package/dist/{chunk-VYX2NH35.cjs → chunk-4IIZO5PI.cjs} +1 -1
- package/dist/{chunk-R2GZ5L4Q.cjs → chunk-4L7JP2WL.cjs} +1 -1
- package/dist/chunk-4MNSKZHW.cjs +1 -0
- package/dist/{chunk-HO7VI37F.js → chunk-6KW2HYAX.js} +1 -1
- package/dist/{chunk-UCAOZD7R.js → chunk-6OUANX4J.js} +1 -1
- package/dist/{chunk-3QKB6K3J.js → chunk-7KKHT5PF.js} +1 -1
- package/dist/{chunk-DDSCINJX.js → chunk-AB2JJTW4.js} +1 -1
- package/dist/{chunk-W36RYDND.js → chunk-AEO4REZV.js} +1 -1
- package/dist/{chunk-GKQXMDRT.js → chunk-BEGVH4DX.js} +1 -1
- package/dist/chunk-BSZJJNA7.js +1 -0
- package/dist/chunk-BV6IQIQK.js +1 -0
- package/dist/{chunk-4NQ7C2F3.js → chunk-BXEH6VXA.js} +1 -1
- package/dist/{chunk-BZA3LQT4.cjs → chunk-CEP5E7JG.cjs} +1 -1
- package/dist/chunk-CTCUJBU2.js +1 -0
- package/dist/chunk-CZC2MNVK.cjs +1 -0
- package/dist/chunk-D6BFMPZA.cjs +1 -0
- package/dist/{chunk-WOQNCBUX.cjs → chunk-D6UK5JAA.cjs} +1 -1
- package/dist/{chunk-DXBNYAF3.js → chunk-EH75GTUJ.js} +1 -1
- package/dist/{chunk-ARQVCU6M.js → chunk-FTUJ5XHD.js} +1 -1
- package/dist/{chunk-W72CDNMU.cjs → chunk-GAACIEE2.cjs} +1 -1
- package/dist/{chunk-RDXPOGIO.js → chunk-GD5GDQXC.js} +1 -1
- package/dist/{chunk-REFPDFQ6.js → chunk-GVRXRDGC.js} +1 -1
- package/dist/{chunk-GA7EPR4Z.js → chunk-GXUPHO44.js} +1 -1
- package/dist/chunk-HOQ2JQHJ.cjs +1 -0
- package/dist/{chunk-SEOBV6KR.js → chunk-I76IKSS4.js} +1 -1
- package/dist/{chunk-EBQT52SL.cjs → chunk-IQ6EAHDU.cjs} +1 -1
- package/dist/{chunk-PJQCOLKL.js → chunk-IX4EJZH5.js} +1 -1
- package/dist/chunk-IXNKZURT.js +1 -0
- package/dist/{chunk-VILSUI3M.cjs → chunk-IZVYNUFO.cjs} +1 -1
- package/dist/{chunk-STRSYJNY.js → chunk-JLWNRQ4S.js} +1 -1
- package/dist/chunk-JMVDYHTG.cjs +1 -0
- package/dist/{chunk-CXR3NH2D.js → chunk-JNGPW247.js} +1 -1
- package/dist/{chunk-QTWUABUJ.js → chunk-K55HJTOE.js} +1 -1
- package/dist/chunk-KOHPRJDP.js +1 -0
- package/dist/{chunk-GUFTPTSI.cjs → chunk-KQIDRPAB.cjs} +1 -1
- package/dist/chunk-KYR4ZYRD.js +1 -0
- package/dist/chunk-L7RATGRO.js +1 -0
- package/dist/{chunk-FQZXBS7L.cjs → chunk-LXAEBSEY.cjs} +1 -1
- package/dist/chunk-MFCNJSCL.js +1 -0
- package/dist/{chunk-S73R7VRQ.cjs → chunk-MXY4ZKZJ.cjs} +1 -1
- package/dist/chunk-N3HRM33G.cjs +1 -0
- package/dist/{chunk-2Q4WYCJK.js → chunk-NYGW4HYK.js} +1 -1
- package/dist/{chunk-KULR5B4O.cjs → chunk-O2BU2KJD.cjs} +1 -1
- package/dist/chunk-OQFOUCTW.js +1 -0
- package/dist/chunk-OVUX5RFT.js +1 -0
- package/dist/chunk-P22QL24A.js +1 -0
- package/dist/{chunk-JEJYT3WD.cjs → chunk-P5VJ455G.cjs} +1 -1
- package/dist/{chunk-7SOKSLRQ.cjs → chunk-PHIW7FUJ.cjs} +1 -1
- package/dist/{chunk-5HMRFOCH.js → chunk-PKFCOQOM.js} +1 -1
- package/dist/{chunk-X24IHG7P.cjs → chunk-PWVGLO7T.cjs} +1 -1
- package/dist/{chunk-36ZZPH5C.js → chunk-Q3JQUVKI.js} +1 -1
- package/dist/chunk-QP5JU7UO.cjs +1 -0
- package/dist/chunk-QU5AAJAW.js +1 -0
- package/dist/{chunk-UP5EGWNN.cjs → chunk-R2XC4F3M.cjs} +1 -1
- package/dist/{chunk-52DSGFRG.cjs → chunk-RMILQMLJ.cjs} +1 -1
- package/dist/{chunk-5RXSFMFU.js → chunk-RNQMEZIV.js} +1 -1
- package/dist/{chunk-ST63L4FD.js → chunk-S6MOVJXB.js} +1 -1
- package/dist/{chunk-VTTD4HPY.js → chunk-SWQSW2AD.js} +1 -1
- package/dist/{chunk-MIPKK2GZ.cjs → chunk-T5LUBX5J.cjs} +2 -2
- package/dist/{chunk-IW4FVUP5.cjs → chunk-T7DD437D.cjs} +1 -1
- package/dist/chunk-U5DLRN5U.cjs +1 -0
- package/dist/{chunk-OEMMPPUX.js → chunk-VHSQUXJK.js} +1 -1
- package/dist/chunk-VPDZLVMK.cjs +1 -0
- package/dist/chunk-VS6I4S7X.cjs +1 -0
- package/dist/{chunk-CUP4XXMT.cjs → chunk-W4DR7B3L.cjs} +1 -1
- package/dist/chunk-W7IPXUD5.cjs +1 -0
- package/dist/chunk-WEWCIFFY.js +1 -0
- package/dist/{chunk-5NHL2AW6.cjs → chunk-WIAIJCQ2.cjs} +1 -1
- package/dist/chunk-WVKODEVW.js +1 -0
- package/dist/{chunk-TMHT7BAX.js → chunk-YFRKZGZ4.js} +1 -1
- package/dist/{chunk-S26A5F6S.cjs → chunk-YHCEO3GD.cjs} +1 -1
- package/dist/{chunk-NVKEVEOY.cjs → chunk-YJLJ2IHS.cjs} +1 -1
- package/dist/{chunk-UGGVGFV2.cjs → chunk-ZEGNY3K3.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- 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 +2 -2
- package/dist/sdk.d.ts +2 -2
- package/dist/sdk.js +1 -1
- package/dist/signers/descriptors/api-key.cjs +1 -1
- package/dist/signers/descriptors/api-key.d.cts +1 -1
- package/dist/signers/descriptors/api-key.d.ts +1 -1
- package/dist/signers/descriptors/api-key.js +1 -1
- package/dist/signers/descriptors/device.cjs +1 -1
- package/dist/signers/descriptors/device.d.cts +1 -1
- package/dist/signers/descriptors/device.d.ts +1 -1
- package/dist/signers/descriptors/device.js +1 -1
- package/dist/signers/descriptors/email.cjs +1 -1
- package/dist/signers/descriptors/email.d.cts +1 -1
- package/dist/signers/descriptors/email.d.ts +1 -1
- package/dist/signers/descriptors/email.js +1 -1
- package/dist/signers/descriptors/external-wallet.cjs +1 -1
- package/dist/signers/descriptors/external-wallet.d.cts +1 -1
- package/dist/signers/descriptors/external-wallet.d.ts +1 -1
- package/dist/signers/descriptors/external-wallet.js +1 -1
- package/dist/signers/descriptors/index.cjs +1 -1
- package/dist/signers/descriptors/index.d.cts +1 -1
- package/dist/signers/descriptors/index.d.ts +1 -1
- package/dist/signers/descriptors/index.js +1 -1
- package/dist/signers/descriptors/passkey.cjs +1 -1
- package/dist/signers/descriptors/passkey.d.cts +1 -1
- package/dist/signers/descriptors/passkey.d.ts +1 -1
- package/dist/signers/descriptors/passkey.js +1 -1
- package/dist/signers/descriptors/phone.cjs +1 -1
- package/dist/signers/descriptors/phone.d.cts +1 -1
- package/dist/signers/descriptors/phone.d.ts +1 -1
- package/dist/signers/descriptors/phone.js +1 -1
- package/dist/signers/descriptors/server.cjs +1 -1
- package/dist/signers/descriptors/server.d.cts +1 -1
- package/dist/signers/descriptors/server.d.ts +1 -1
- package/dist/signers/descriptors/server.js +1 -1
- package/dist/signers/descriptors/types.d.cts +1 -1
- package/dist/signers/descriptors/types.d.ts +1 -1
- package/dist/signers/device.d.cts +1 -1
- package/dist/signers/device.d.ts +1 -1
- package/dist/signers/evm-api-key.d.cts +1 -1
- package/dist/signers/evm-api-key.d.ts +1 -1
- package/dist/signers/evm-external-wallet.d.cts +1 -1
- package/dist/signers/evm-external-wallet.d.ts +1 -1
- package/dist/signers/external-wallet-signer.d.cts +1 -1
- package/dist/signers/external-wallet-signer.d.ts +1 -1
- package/dist/signers/index.cjs +1 -1
- package/dist/signers/index.d.cts +1 -1
- package/dist/signers/index.d.ts +1 -1
- package/dist/signers/index.js +1 -1
- package/dist/signers/non-custodial/index.cjs +1 -1
- package/dist/signers/non-custodial/index.d.cts +1 -1
- package/dist/signers/non-custodial/index.d.ts +1 -1
- 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 +1 -1
- package/dist/signers/non-custodial/ncs-evm-signer.d.ts +1 -1
- 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 +1 -1
- package/dist/signers/non-custodial/ncs-signer.d.ts +1 -1
- 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 +1 -1
- package/dist/signers/non-custodial/ncs-solana-signer.d.ts +1 -1
- 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 +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.d.ts +1 -1
- package/dist/signers/non-custodial/ncs-stellar-signer.js +1 -1
- package/dist/signers/passkey.cjs +1 -1
- package/dist/signers/passkey.d.cts +1 -1
- package/dist/signers/passkey.d.ts +1 -1
- package/dist/signers/passkey.js +1 -1
- package/dist/signers/server/assemble-server-signer.cjs +1 -1
- package/dist/signers/server/assemble-server-signer.d.cts +1 -1
- package/dist/signers/server/assemble-server-signer.d.ts +1 -1
- package/dist/signers/server/assemble-server-signer.js +1 -1
- package/dist/signers/server/evm-server-signer.d.cts +1 -1
- package/dist/signers/server/evm-server-signer.d.ts +1 -1
- package/dist/signers/server/helpers/derive-server-signer.d.cts +1 -1
- package/dist/signers/server/helpers/derive-server-signer.d.ts +1 -1
- package/dist/signers/server/helpers/index.d.cts +1 -1
- package/dist/signers/server/helpers/index.d.ts +1 -1
- package/dist/signers/server/index.cjs +1 -1
- package/dist/signers/server/index.d.cts +1 -1
- package/dist/signers/server/index.d.ts +1 -1
- package/dist/signers/server/index.js +1 -1
- package/dist/signers/server/resolver.cjs +1 -1
- package/dist/signers/server/resolver.d.cts +13 -5
- package/dist/signers/server/resolver.d.ts +13 -5
- package/dist/signers/server/resolver.js +1 -1
- package/dist/signers/server/solana-server-signer.d.cts +1 -1
- package/dist/signers/server/solana-server-signer.d.ts +1 -1
- package/dist/signers/server/stellar-server-signer.cjs +1 -1
- package/dist/signers/server/stellar-server-signer.d.cts +1 -1
- package/dist/signers/server/stellar-server-signer.d.ts +1 -1
- package/dist/signers/server/stellar-server-signer.js +1 -1
- package/dist/signers/solana-api-key.d.cts +1 -1
- package/dist/signers/solana-api-key.d.ts +1 -1
- package/dist/signers/solana-external-wallet.cjs +1 -1
- package/dist/signers/solana-external-wallet.d.cts +1 -1
- package/dist/signers/solana-external-wallet.d.ts +1 -1
- package/dist/signers/solana-external-wallet.js +1 -1
- package/dist/signers/stellar-external-wallet.d.cts +1 -1
- package/dist/signers/stellar-external-wallet.d.ts +1 -1
- package/dist/signers/types.d.cts +1 -1
- package/dist/signers/types.d.ts +1 -1
- package/dist/{types-BcjKqQz3.d.ts → types-D2ugRtLo.d.ts} +15 -6
- package/dist/{types-86FbKjRz.d.cts → types-r_5ltlhH.d.cts} +15 -6
- 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 +1 -1
- package/dist/utils/device-signers/createDeviceSigner.d.ts +1 -1
- package/dist/utils/device-signers/index.cjs +1 -1
- package/dist/utils/device-signers/index.d.cts +1 -1
- package/dist/utils/device-signers/index.d.ts +1 -1
- package/dist/utils/device-signers/index.js +1 -1
- package/dist/utils/errors.cjs +1 -1
- package/dist/utils/errors.d.cts +33 -2
- package/dist/utils/errors.d.ts +33 -2
- package/dist/utils/errors.js +1 -1
- package/dist/utils/locators.cjs +1 -1
- package/dist/utils/locators.d.cts +1 -1
- package/dist/utils/locators.d.ts +1 -1
- package/dist/utils/locators.js +1 -1
- package/dist/utils/recovery.cjs +1 -0
- package/dist/utils/recovery.d.cts +16 -0
- package/dist/utils/recovery.d.ts +16 -0
- package/dist/utils/recovery.js +1 -0
- package/dist/utils/signer-locator.cjs +1 -1
- package/dist/utils/signer-locator.d.cts +4 -2
- package/dist/utils/signer-locator.d.ts +4 -2
- package/dist/utils/signer-locator.js +1 -1
- package/dist/utils/signer-mapping.d.cts +1 -1
- package/dist/utils/signer-mapping.d.ts +1 -1
- package/dist/utils/signer-validation.cjs +1 -1
- package/dist/utils/signer-validation.js +1 -1
- package/dist/wallets/__tests__/test-helpers.cjs +1 -1
- package/dist/wallets/__tests__/test-helpers.d.cts +2 -2
- package/dist/wallets/__tests__/test-helpers.d.ts +2 -2
- package/dist/wallets/__tests__/test-helpers.js +1 -1
- package/dist/wallets/evm.cjs +1 -1
- package/dist/wallets/evm.d.cts +1 -1
- package/dist/wallets/evm.d.ts +1 -1
- package/dist/wallets/evm.js +1 -1
- package/dist/wallets/services/balance-formatter.cjs +1 -1
- package/dist/wallets/services/balance-formatter.d.cts +1 -1
- package/dist/wallets/services/balance-formatter.d.ts +1 -1
- 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 +1 -1
- package/dist/wallets/services/device-recovery-service.d.ts +1 -1
- 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 +1 -1
- package/dist/wallets/services/operation-poller.d.ts +1 -1
- 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 +29 -5
- package/dist/wallets/services/signer-manager.d.ts +29 -5
- package/dist/wallets/services/signer-manager.js +1 -1
- package/dist/wallets/solana.cjs +1 -1
- package/dist/wallets/solana.d.cts +1 -1
- package/dist/wallets/solana.d.ts +1 -1
- package/dist/wallets/solana.js +1 -1
- package/dist/wallets/stellar.cjs +1 -1
- package/dist/wallets/stellar.d.cts +1 -1
- package/dist/wallets/stellar.d.ts +1 -1
- package/dist/wallets/stellar.js +1 -1
- package/dist/wallets/types.d.cts +1 -1
- package/dist/wallets/types.d.ts +1 -1
- package/dist/wallets/wallet-factory.cjs +1 -1
- package/dist/wallets/wallet-factory.d.cts +20 -1
- package/dist/wallets/wallet-factory.d.ts +20 -1
- package/dist/wallets/wallet-factory.js +1 -1
- package/dist/wallets/wallet.cjs +1 -1
- package/dist/wallets/wallet.d.cts +27 -9
- package/dist/wallets/wallet.d.ts +27 -9
- package/dist/wallets/wallet.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-44ICOOCJ.cjs +0 -1
- package/dist/chunk-5W37U67F.js +0 -1
- package/dist/chunk-6EWYCV4P.cjs +0 -1
- package/dist/chunk-6ZMBFE4T.js +0 -1
- package/dist/chunk-7FEY62ID.js +0 -1
- package/dist/chunk-7GJLRYUQ.cjs +0 -1
- package/dist/chunk-AVX5ICB6.cjs +0 -1
- package/dist/chunk-FL5XTA2Z.js +0 -1
- package/dist/chunk-HGQTXQ5K.cjs +0 -1
- package/dist/chunk-HIZL7OME.js +0 -1
- package/dist/chunk-I3H3U7XW.cjs +0 -1
- package/dist/chunk-JCNQFYND.js +0 -1
- package/dist/chunk-JEKHYLBB.js +0 -1
- package/dist/chunk-JEST5DJZ.cjs +0 -1
- package/dist/chunk-KCR63V4C.cjs +0 -1
- package/dist/chunk-LMCLD76H.js +0 -1
- package/dist/chunk-OMTJMVSG.js +0 -1
- package/dist/chunk-QCJA5FJL.cjs +0 -1
- package/dist/chunk-RCQMAOU6.cjs +0 -1
- package/dist/chunk-RSEM7IWN.js +0 -1
- package/dist/chunk-T5OX7TEH.cjs +0 -1
- package/dist/chunk-TM45QNB3.js +0 -1
- package/dist/chunk-UWX7ID4X.cjs +0 -1
- package/dist/chunk-VCOKK7C2.js +0 -1
- package/dist/chunk-W6L7J3KL.cjs +0 -1
- package/dist/chunk-WL3H2D3J.js +0 -1
- package/dist/chunk-XZ4NKVEB.cjs +0 -1
- package/dist/chunk-ZA6CCBFR.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../../chains/chains.cjs';
|
|
2
|
-
import {
|
|
2
|
+
import { t as ServerSignerConfig, Q as DerivedServerSigner, al as ApiSourcedServerSignerConfig, an as ServerSignerLocator } from '../../types-r_5ltlhH.cjs';
|
|
3
3
|
import '@crossmint/common-sdk-base';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../../api/gen/types.gen.cjs';
|
|
@@ -16,7 +16,7 @@ declare class ServerSignerResolver {
|
|
|
16
16
|
chain: Chain;
|
|
17
17
|
projectId: string;
|
|
18
18
|
environment: string;
|
|
19
|
-
|
|
19
|
+
apiRecoveryAddresses: string[];
|
|
20
20
|
apiDelegatedAddresses: string[];
|
|
21
21
|
knownOnChainAddresses: () => string[];
|
|
22
22
|
});
|
|
@@ -30,24 +30,32 @@ declare class ServerSignerResolver {
|
|
|
30
30
|
* Resolves a server signer with a SINGLE candidate derivation: the same derivation drives the
|
|
31
31
|
* registered check, the recovery selection, and the unregistered wipe, so key material is
|
|
32
32
|
* derived (and wiped) exactly once. `isRecovery` is consulted only after the registered check fails.
|
|
33
|
+
* A recovery resolution reports the derived address that was selected so callers can replace the
|
|
34
|
+
* secret-carrying config with an address-only one.
|
|
33
35
|
*/
|
|
34
36
|
resolveForUseSigner(config: ServerSignerConfig, registeredLocators: string[], isRecovery: () => boolean): {
|
|
35
37
|
kind: "delegated";
|
|
36
38
|
} | {
|
|
37
39
|
kind: "recovery";
|
|
40
|
+
address: string;
|
|
38
41
|
} | {
|
|
39
42
|
kind: "unregistered";
|
|
40
43
|
message: string;
|
|
41
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Caches the derivation behind a recovery server secret without consulting registered signers, and
|
|
47
|
+
* reports the selected address so the caller can drop the secret-carrying config.
|
|
48
|
+
*/
|
|
49
|
+
resolveRecovery(config: ServerSignerConfig): string;
|
|
42
50
|
keyMaterialForAssembly(config: ServerSignerConfig | ApiSourcedServerSignerConfig): {
|
|
43
51
|
derivedKeyBytes: Uint8Array;
|
|
44
52
|
derivedAddress: string;
|
|
45
53
|
};
|
|
46
54
|
candidateAddresses(config: ServerSignerConfig | ApiSourcedServerSignerConfig): string[];
|
|
47
55
|
resetDelegatedCache(): void;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
get
|
|
56
|
+
/** Whether the secret behind the recovery server signer at `address` has been provided via useSigner. */
|
|
57
|
+
hasRecoveryResolutionFor(address: string): boolean;
|
|
58
|
+
get apiRecoveryAddresses(): string[];
|
|
51
59
|
get apiDelegatedAddresses(): string[];
|
|
52
60
|
}
|
|
53
61
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Chain } from '../../chains/chains.js';
|
|
2
|
-
import {
|
|
2
|
+
import { t as ServerSignerConfig, Q as DerivedServerSigner, al as ApiSourcedServerSignerConfig, an as ServerSignerLocator } from '../../types-D2ugRtLo.js';
|
|
3
3
|
import '@crossmint/common-sdk-base';
|
|
4
4
|
import 'viem';
|
|
5
5
|
import '../../api/gen/types.gen.js';
|
|
@@ -16,7 +16,7 @@ declare class ServerSignerResolver {
|
|
|
16
16
|
chain: Chain;
|
|
17
17
|
projectId: string;
|
|
18
18
|
environment: string;
|
|
19
|
-
|
|
19
|
+
apiRecoveryAddresses: string[];
|
|
20
20
|
apiDelegatedAddresses: string[];
|
|
21
21
|
knownOnChainAddresses: () => string[];
|
|
22
22
|
});
|
|
@@ -30,24 +30,32 @@ declare class ServerSignerResolver {
|
|
|
30
30
|
* Resolves a server signer with a SINGLE candidate derivation: the same derivation drives the
|
|
31
31
|
* registered check, the recovery selection, and the unregistered wipe, so key material is
|
|
32
32
|
* derived (and wiped) exactly once. `isRecovery` is consulted only after the registered check fails.
|
|
33
|
+
* A recovery resolution reports the derived address that was selected so callers can replace the
|
|
34
|
+
* secret-carrying config with an address-only one.
|
|
33
35
|
*/
|
|
34
36
|
resolveForUseSigner(config: ServerSignerConfig, registeredLocators: string[], isRecovery: () => boolean): {
|
|
35
37
|
kind: "delegated";
|
|
36
38
|
} | {
|
|
37
39
|
kind: "recovery";
|
|
40
|
+
address: string;
|
|
38
41
|
} | {
|
|
39
42
|
kind: "unregistered";
|
|
40
43
|
message: string;
|
|
41
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Caches the derivation behind a recovery server secret without consulting registered signers, and
|
|
47
|
+
* reports the selected address so the caller can drop the secret-carrying config.
|
|
48
|
+
*/
|
|
49
|
+
resolveRecovery(config: ServerSignerConfig): string;
|
|
42
50
|
keyMaterialForAssembly(config: ServerSignerConfig | ApiSourcedServerSignerConfig): {
|
|
43
51
|
derivedKeyBytes: Uint8Array;
|
|
44
52
|
derivedAddress: string;
|
|
45
53
|
};
|
|
46
54
|
candidateAddresses(config: ServerSignerConfig | ApiSourcedServerSignerConfig): string[];
|
|
47
55
|
resetDelegatedCache(): void;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
get
|
|
56
|
+
/** Whether the secret behind the recovery server signer at `address` has been provided via useSigner. */
|
|
57
|
+
hasRecoveryResolutionFor(address: string): boolean;
|
|
58
|
+
get apiRecoveryAddresses(): string[];
|
|
51
59
|
get apiDelegatedAddresses(): string[];
|
|
52
60
|
}
|
|
53
61
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-OQFOUCTW.js";import"../../chunk-L52GDMSH.js";import"../../chunk-I76IKSS4.js";import"../../chunk-QM3BB4E2.js";import"../../chunk-TSJUK3ED.js";import"../../chunk-277G6KNG.js";import"../../chunk-IQ3QQ4M6.js";import"../../chunk-GXUPHO44.js";import"../../chunk-FJPAMX7L.js";import"../../chunk-E3H6RZHM.js";import"../../chunk-EM3D5Q3A.js";import"../../chunk-DCKFFFPG.js";import"../../chunk-OQZTL6ZG.js";import"../../chunk-NU7VF7MC.js";export{a as ServerSignerResolver};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2D6B7AZ6cjs = require('../../chunk-2D6B7AZ6.cjs');require('../../chunk-LWA3SX6Z.cjs');require('../../chunk-5FH7WFWL.cjs');require('../../chunk-DSIFRRBS.cjs');exports.StellarServerSigner = _chunk2D6B7AZ6cjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-GXUPHO44.js";import"../../chunk-FJPAMX7L.js";import"../../chunk-EM3D5Q3A.js";import"../../chunk-NU7VF7MC.js";export{a as StellarServerSigner};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { w as SignerAdapter, X as ApiKeyInternalSignerConfig, a as ApiKeySignerLocator } from '../types-r_5ltlhH.cjs';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../api/gen/types.gen.cjs';
|
|
4
4
|
import 'ox';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { w as SignerAdapter, X as ApiKeyInternalSignerConfig, a as ApiKeySignerLocator } from '../types-D2ugRtLo.js';
|
|
2
2
|
import 'viem';
|
|
3
3
|
import '../api/gen/types.gen.js';
|
|
4
4
|
import 'ox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkLXAEBSEYcjs = require('../chunk-LXAEBSEY.cjs');require('../chunk-SCEPJO4Q.cjs');require('../chunk-VS6I4S7X.cjs');require('../chunk-DSIFRRBS.cjs');exports.SolanaExternalWalletSigner = _chunkLXAEBSEYcjs.a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Y as ExternalWalletInternalSignerConfig } from '../types-r_5ltlhH.cjs';
|
|
2
2
|
import { SolanaChain } from '../chains/chains.cjs';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.cjs';
|
|
4
4
|
import 'viem';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Y as ExternalWalletInternalSignerConfig } from '../types-D2ugRtLo.js';
|
|
2
2
|
import { SolanaChain } from '../chains/chains.js';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.js';
|
|
4
4
|
import 'viem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-7KKHT5PF.js";import"../chunk-2YLRFJ66.js";import"../chunk-KOHPRJDP.js";import"../chunk-NU7VF7MC.js";export{a as SolanaExternalWalletSigner};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Y as ExternalWalletInternalSignerConfig } from '../types-r_5ltlhH.cjs';
|
|
2
2
|
import { StellarChain } from '../chains/chains.cjs';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.cjs';
|
|
4
4
|
import 'viem';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Y as ExternalWalletInternalSignerConfig } from '../types-D2ugRtLo.js';
|
|
2
2
|
import { StellarChain } from '../chains/chains.js';
|
|
3
3
|
import { ExternalWalletSigner } from './external-wallet-signer.js';
|
|
4
4
|
import 'viem';
|
package/dist/signers/types.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import '@crossmint/client-sdk-window';
|
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
export { EvmExternalWalletSignerConfig, ExternalWalletSignerConfig, SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig } from '@crossmint/common-sdk-base';
|
|
5
5
|
import '../chains/chains.cjs';
|
|
6
|
-
export {
|
|
6
|
+
export { X as ApiKeyInternalSignerConfig, b1 as ApiKeySignerConfig, a as ApiKeySignerLocator, al as ApiSourcedServerSignerConfig, d as AuthRejectedError, ax as BaseSignResult, b2 as BaseSignerConfig, Q as DerivedServerSigner, U as DeviceInternalSignerConfig, V as DeviceSignResult, D as DeviceSignerConfig, g as DeviceSignerLocator, av as EmailInternalSignerConfig, h as EmailSignerConfig, i as EmailSignerLocator, j as ExportSignerTEEConnection, k as ExportableSignerAdapter, Y as ExternalWalletInternalSignerConfig, l as ExternalWalletRegistrationConfig, m as ExternalWalletSignerConfigForChain, n as ExternalWalletSignerLocator, Z as InternalSignerConfig, K as KeyExportError, b3 as NonCustodialSignerType, O as OnboardingSessionExpiredError, o as OtpValidationError, _ as PasskeyInternalSignerConfig, $ as PasskeySignResult, a1 as PasskeySignerConfig, P as PasskeySignerLocator, aw as PhoneInternalSignerConfig, p as PhoneSignerConfig, q as PhoneSignerLocator, R as RecoverySignerConfigForChain, ay as ServerInternalSignerConfig, t as ServerSignerConfig, an as ServerSignerLocator, w as SignerAdapter, x as SignerConfigForChain, y as SignerLocator, F as SignerStatusError, b4 as isApiSourcedServerSignerConfig, N as isExportableSignerAdapter } from '../types-r_5ltlhH.cjs';
|
|
7
7
|
import 'viem';
|
|
8
8
|
import '../api/gen/types.gen.cjs';
|
|
9
9
|
import '@solana/web3.js';
|
package/dist/signers/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import '@crossmint/client-sdk-window';
|
|
|
3
3
|
import '@crossmint/client-signers';
|
|
4
4
|
export { EvmExternalWalletSignerConfig, ExternalWalletSignerConfig, SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig } from '@crossmint/common-sdk-base';
|
|
5
5
|
import '../chains/chains.js';
|
|
6
|
-
export {
|
|
6
|
+
export { X as ApiKeyInternalSignerConfig, b1 as ApiKeySignerConfig, a as ApiKeySignerLocator, al as ApiSourcedServerSignerConfig, d as AuthRejectedError, ax as BaseSignResult, b2 as BaseSignerConfig, Q as DerivedServerSigner, U as DeviceInternalSignerConfig, V as DeviceSignResult, D as DeviceSignerConfig, g as DeviceSignerLocator, av as EmailInternalSignerConfig, h as EmailSignerConfig, i as EmailSignerLocator, j as ExportSignerTEEConnection, k as ExportableSignerAdapter, Y as ExternalWalletInternalSignerConfig, l as ExternalWalletRegistrationConfig, m as ExternalWalletSignerConfigForChain, n as ExternalWalletSignerLocator, Z as InternalSignerConfig, K as KeyExportError, b3 as NonCustodialSignerType, O as OnboardingSessionExpiredError, o as OtpValidationError, _ as PasskeyInternalSignerConfig, $ as PasskeySignResult, a1 as PasskeySignerConfig, P as PasskeySignerLocator, aw as PhoneInternalSignerConfig, p as PhoneSignerConfig, q as PhoneSignerLocator, R as RecoverySignerConfigForChain, ay as ServerInternalSignerConfig, t as ServerSignerConfig, an as ServerSignerLocator, w as SignerAdapter, x as SignerConfigForChain, y as SignerLocator, F as SignerStatusError, b4 as isApiSourcedServerSignerConfig, N as isExportableSignerAdapter } from '../types-D2ugRtLo.js';
|
|
7
7
|
import 'viem';
|
|
8
8
|
import '../api/gen/types.gen.js';
|
|
9
9
|
import '@solana/web3.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TypedDataDefinition, TypedData, Address } from 'viem';
|
|
2
|
-
import { CreateWalletV2025DtoClass, WalletV2025ResponseDtoClass, WalletV1Alpha2ErrorDto, CreateTransactionV2025DtoClass, WalletsTransactionV2025ResponseDtoClass, WalletV1Alpha2TransactionErrorDto, SubmitApprovalV2025Dto, WalletsV2025ControllerSubmitApprovals2Error, WalletsV2025ControllerGetTransaction2Error, CreateSignatureV2025Dto, WalletsSignatureV2025ResponseDto, WalletsV2025ControllerCreateSignatureRequest2Error, WalletsV2025ControllerSubmitSignatureApprovals2Error, WalletsV2025ControllerGetSignature2Error, WalletsMultipleTransactionV2025ResponseDto, WalletsV2025ControllerGetTransactionsWithoutChain2Error, WalletsActivityResponseUnstableDto,
|
|
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, WalletsV2025ControllerGetDelegatedSigner2Error, SendTokenDto, WalletsSendTokenControllerSendToken2Response } from './api/gen/types.gen.js';
|
|
3
3
|
import { WebAuthnP256 } from 'ox';
|
|
4
4
|
import { HandshakeParent } from '@crossmint/client-sdk-window';
|
|
5
5
|
import { signerOutboundEvents, signerInboundEvents, exportSignerOutboundEvents, exportSignerInboundEvents } from '@crossmint/client-signers';
|
|
6
6
|
import { SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig, EvmExternalWalletSignerConfig, Crossmint } from '@crossmint/common-sdk-base';
|
|
7
|
-
import { Chain, StellarChain,
|
|
7
|
+
import { Chain, StellarChain, SolanaChain, EVMSmartWalletChain } from './chains/chains.js';
|
|
8
8
|
import { VersionedTransaction, Keypair } from '@solana/web3.js';
|
|
9
9
|
import { Abi } from 'abitype';
|
|
10
10
|
import { DeviceSignerKeyStorage } from './utils/device-signers/DeviceSignerKeyStorage.js';
|
|
@@ -181,9 +181,16 @@ type WalletArgsFor<C extends Chain> = {
|
|
|
181
181
|
/** Optional wallet alias. */
|
|
182
182
|
alias?: string;
|
|
183
183
|
};
|
|
184
|
+
/** A signer that can be used as a recovery signer. Device signers cannot be recovery signers. */
|
|
185
|
+
type RecoverySignerConfigFor<C extends Chain> = Exclude<SignerConfigForChain<C>, DeviceSignerConfig>;
|
|
186
|
+
/**
|
|
187
|
+
* Solana and Stellar accept a list of recovery signers, each able to authorize on its own.
|
|
188
|
+
* Other chains accept a single recovery signer until their backend DTO supports a list.
|
|
189
|
+
*/
|
|
190
|
+
type RecoveryCreateArg<C extends Chain> = C extends SolanaChain | StellarChain ? RecoverySignerConfigFor<C> | Array<RecoverySignerConfigFor<C>> : RecoverySignerConfigFor<C>;
|
|
184
191
|
type WalletCreateArgs<C extends Chain> = WalletArgsFor<C> & {
|
|
185
|
-
/** Recovery signer
|
|
186
|
-
recovery:
|
|
192
|
+
/** Recovery signer, or list of recovery signers on Solana and Stellar. */
|
|
193
|
+
recovery: RecoveryCreateArg<C>;
|
|
187
194
|
/** Signers to register on the wallet during creation. */
|
|
188
195
|
signers?: Array<SignerConfigForChain<C> | ExternalWalletRegistrationConfig>;
|
|
189
196
|
alias?: string;
|
|
@@ -221,7 +228,7 @@ type TokenBalance<C extends Chain = Chain> = {
|
|
|
221
228
|
amount: string;
|
|
222
229
|
decimals?: number;
|
|
223
230
|
rawAmount?: string;
|
|
224
|
-
} & ChainExtras[ChainToExtrasKey<C>];
|
|
231
|
+
} & Omit<GetBalanceSuccessResponse[number]["chains"][string], "locator" | "amount" | "rawAmount"> & ChainExtras[ChainToExtrasKey<C>];
|
|
225
232
|
type Balances<C extends Chain = Chain> = {
|
|
226
233
|
nativeToken: TokenBalance<C>;
|
|
227
234
|
usdc: TokenBalance<C>;
|
|
@@ -487,10 +494,12 @@ type RegisterSignerParams = {
|
|
|
487
494
|
chain?: RegisterSignerChain;
|
|
488
495
|
scopes?: Scope[];
|
|
489
496
|
deployImmediately?: boolean;
|
|
497
|
+
approver?: CreateSignerV2025InputDtoClass["approver"];
|
|
490
498
|
};
|
|
491
499
|
type RegisterSignerResponse = DelegatedSignerV2025DtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
492
500
|
type RemoveSignerParams = {
|
|
493
501
|
chain?: RegisterSignerChain;
|
|
502
|
+
approver?: CreateSignerV2025InputDtoClass["approver"];
|
|
494
503
|
};
|
|
495
504
|
type RemoveSignerResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
496
505
|
type GetSignerResponse = DelegatedSignerV2025DtoClass | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
@@ -504,4 +513,4 @@ type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
|
504
513
|
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
505
514
|
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
506
515
|
|
|
507
|
-
export { type
|
|
516
|
+
export { type PasskeySignResult as $, type AddSignerOptions as A, type Balances as B, type Callbacks as C, type DeviceSignerConfig as D, type EVMTransactionInput as E, SignerStatusError as F, type SolanaTransactionInput as G, type TransferScope as H, type Transfers as I, type WalletCreateArgs as J, KeyExportError as K, type WalletOptions as L, type WalletPlugin as M, isExportableSignerAdapter as N, OnboardingSessionExpiredError as O, type PasskeySignerLocator as P, type DerivedServerSigner as Q, type RecoverySignerConfigForChain as R, type Scope as S, type Transaction as T, type DeviceInternalSignerConfig as U, type DeviceSignResult as V, type WalletArgsFor as W, type ApiKeyInternalSignerConfig as X, type ExternalWalletInternalSignerConfig as Y, type InternalSignerConfig as Z, type PasskeyInternalSignerConfig as _, type ApiKeySignerLocator as a, type SignerInput as a$, type UserLocator as a0, type PasskeySignerConfig as a1, type Signer as a2, type PendingSignerOperation as a3, type PrepareOnly as a4, type SignMessageInput as a5, type SignTypedDataInput as a6, type TransactionInputOptions as a7, type FundWalletResponse as a8, type GetTransactionsResponse as a9, type GetWalletResponse as aA, type CreateTransactionParams as aB, type CreateTransactionResponse as aC, type ApproveTransactionParams as aD, type ApproveTransactionResponse as aE, type CreateSignatureParams as aF, type CreateSignatureResponse as aG, type ApproveSignatureParams as aH, type GetSignatureResponse as aI, type GetTransfersResponse as aJ, type GetBalanceResponse as aK, type FundWalletParams as aL, type RemoveSignerParams as aM, type RemoveSignerResponse as aN, type SendParams as aO, type CreateTransactionSuccessResponse as aP, type GetSignersResponse as aQ, type GetWalletSuccessResponse as aR, type RecoverySignerConfig as aS, type Approval as aT, type DeviceSignerDescriptor as aU, type FormattedEVMTransaction as aV, type PendingApproval as aW, type RecoveryCreateArg as aX, type RecoverySignerConfigFor as aY, type SendTokenTransactionType as aZ, type SignatureInputOptions as a_, type GetTransactionSuccessResponse as aa, type SendTokenTransactionOptions as ab, type ApproveResult as ac, type AddSignerReturnType as ad, type RemoveSignerReturnType as ae, type WalletLocator as af, type ApproveSignatureResponse as ag, type StellarTransactionInput as ah, type UpgradeOptions as ai, type MigrateOptions as aj, type GetSignerResponse as ak, type ApiSourcedServerSignerConfig as al, type RegisterSignerParams as am, type ServerSignerLocator as an, type RegisterSignerChain as ao, type RegisterSignerResponse as ap, type TokenBalance as aq, type GetTransactionResponse as ar, type SendResponse as as, type CreateWalletResponse as at, type CreateWalletParams as au, type EmailInternalSignerConfig as av, type PhoneInternalSignerConfig as aw, type BaseSignResult as ax, type ServerInternalSignerConfig as ay, type GetBalanceSuccessResponse as az, type ApproveOptions as b, type StellarWalletPlugin as b0, type ApiKeySignerConfig as b1, type BaseSignerConfig as b2, type NonCustodialSignerType as b3, isApiSourcedServerSignerConfig as b4, type ApproveParams as c, AuthRejectedError as d, type ClientSideWalletArgsFor as e, type ClientSideWalletCreateArgs as f, type DeviceSignerLocator as g, type EmailSignerConfig as h, type EmailSignerLocator as i, type ExportSignerTEEConnection as j, type ExportableSignerAdapter as k, type ExternalWalletRegistrationConfig as l, type ExternalWalletSignerConfigForChain as m, type ExternalWalletSignerLocator as n, OtpValidationError as o, type PhoneSignerConfig as p, type PhoneSignerLocator as q, type RegisterSignerPasskeyParams as r, type RemoveSignerOptions as s, type ServerSignerConfig as t, type Signature as u, type Signer$1 as v, type SignerAdapter as w, type SignerConfigForChain as x, type SignerLocator as y, type SignerStatus as z };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TypedDataDefinition, TypedData, Address } from 'viem';
|
|
2
|
-
import { CreateWalletV2025DtoClass, WalletV2025ResponseDtoClass, WalletV1Alpha2ErrorDto, CreateTransactionV2025DtoClass, WalletsTransactionV2025ResponseDtoClass, WalletV1Alpha2TransactionErrorDto, SubmitApprovalV2025Dto, WalletsV2025ControllerSubmitApprovals2Error, WalletsV2025ControllerGetTransaction2Error, CreateSignatureV2025Dto, WalletsSignatureV2025ResponseDto, WalletsV2025ControllerCreateSignatureRequest2Error, WalletsV2025ControllerSubmitSignatureApprovals2Error, WalletsV2025ControllerGetSignature2Error, WalletsMultipleTransactionV2025ResponseDto, WalletsV2025ControllerGetTransactionsWithoutChain2Error, WalletsActivityResponseUnstableDto,
|
|
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, WalletsV2025ControllerGetDelegatedSigner2Error, SendTokenDto, WalletsSendTokenControllerSendToken2Response } from './api/gen/types.gen.cjs';
|
|
3
3
|
import { WebAuthnP256 } from 'ox';
|
|
4
4
|
import { HandshakeParent } from '@crossmint/client-sdk-window';
|
|
5
5
|
import { signerOutboundEvents, signerInboundEvents, exportSignerOutboundEvents, exportSignerInboundEvents } from '@crossmint/client-signers';
|
|
6
6
|
import { SolanaExternalWalletSignerConfig, StellarExternalWalletSignerConfig, EvmExternalWalletSignerConfig, Crossmint } from '@crossmint/common-sdk-base';
|
|
7
|
-
import { Chain, StellarChain,
|
|
7
|
+
import { Chain, StellarChain, SolanaChain, EVMSmartWalletChain } from './chains/chains.cjs';
|
|
8
8
|
import { VersionedTransaction, Keypair } from '@solana/web3.js';
|
|
9
9
|
import { Abi } from 'abitype';
|
|
10
10
|
import { DeviceSignerKeyStorage } from './utils/device-signers/DeviceSignerKeyStorage.cjs';
|
|
@@ -181,9 +181,16 @@ type WalletArgsFor<C extends Chain> = {
|
|
|
181
181
|
/** Optional wallet alias. */
|
|
182
182
|
alias?: string;
|
|
183
183
|
};
|
|
184
|
+
/** A signer that can be used as a recovery signer. Device signers cannot be recovery signers. */
|
|
185
|
+
type RecoverySignerConfigFor<C extends Chain> = Exclude<SignerConfigForChain<C>, DeviceSignerConfig>;
|
|
186
|
+
/**
|
|
187
|
+
* Solana and Stellar accept a list of recovery signers, each able to authorize on its own.
|
|
188
|
+
* Other chains accept a single recovery signer until their backend DTO supports a list.
|
|
189
|
+
*/
|
|
190
|
+
type RecoveryCreateArg<C extends Chain> = C extends SolanaChain | StellarChain ? RecoverySignerConfigFor<C> | Array<RecoverySignerConfigFor<C>> : RecoverySignerConfigFor<C>;
|
|
184
191
|
type WalletCreateArgs<C extends Chain> = WalletArgsFor<C> & {
|
|
185
|
-
/** Recovery signer
|
|
186
|
-
recovery:
|
|
192
|
+
/** Recovery signer, or list of recovery signers on Solana and Stellar. */
|
|
193
|
+
recovery: RecoveryCreateArg<C>;
|
|
187
194
|
/** Signers to register on the wallet during creation. */
|
|
188
195
|
signers?: Array<SignerConfigForChain<C> | ExternalWalletRegistrationConfig>;
|
|
189
196
|
alias?: string;
|
|
@@ -221,7 +228,7 @@ type TokenBalance<C extends Chain = Chain> = {
|
|
|
221
228
|
amount: string;
|
|
222
229
|
decimals?: number;
|
|
223
230
|
rawAmount?: string;
|
|
224
|
-
} & ChainExtras[ChainToExtrasKey<C>];
|
|
231
|
+
} & Omit<GetBalanceSuccessResponse[number]["chains"][string], "locator" | "amount" | "rawAmount"> & ChainExtras[ChainToExtrasKey<C>];
|
|
225
232
|
type Balances<C extends Chain = Chain> = {
|
|
226
233
|
nativeToken: TokenBalance<C>;
|
|
227
234
|
usdc: TokenBalance<C>;
|
|
@@ -487,10 +494,12 @@ type RegisterSignerParams = {
|
|
|
487
494
|
chain?: RegisterSignerChain;
|
|
488
495
|
scopes?: Scope[];
|
|
489
496
|
deployImmediately?: boolean;
|
|
497
|
+
approver?: CreateSignerV2025InputDtoClass["approver"];
|
|
490
498
|
};
|
|
491
499
|
type RegisterSignerResponse = DelegatedSignerV2025DtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
492
500
|
type RemoveSignerParams = {
|
|
493
501
|
chain?: RegisterSignerChain;
|
|
502
|
+
approver?: CreateSignerV2025InputDtoClass["approver"];
|
|
494
503
|
};
|
|
495
504
|
type RemoveSignerResponse = WalletsTransactionV2025ResponseDtoClass | WalletsV2025ControllerCreateDelegatedSigner2Error;
|
|
496
505
|
type GetSignerResponse = DelegatedSignerV2025DtoClass | WalletsV2025ControllerGetDelegatedSigner2Error;
|
|
@@ -504,4 +513,4 @@ type EvmWalletLocator = `me:evm:${WalletType}` | Address;
|
|
|
504
513
|
type SolanaWalletLocator = `me:solana:${WalletType}` | SolanaAddress;
|
|
505
514
|
type WalletLocator = EvmWalletLocator | SolanaWalletLocator;
|
|
506
515
|
|
|
507
|
-
export { type
|
|
516
|
+
export { type PasskeySignResult as $, type AddSignerOptions as A, type Balances as B, type Callbacks as C, type DeviceSignerConfig as D, type EVMTransactionInput as E, SignerStatusError as F, type SolanaTransactionInput as G, type TransferScope as H, type Transfers as I, type WalletCreateArgs as J, KeyExportError as K, type WalletOptions as L, type WalletPlugin as M, isExportableSignerAdapter as N, OnboardingSessionExpiredError as O, type PasskeySignerLocator as P, type DerivedServerSigner as Q, type RecoverySignerConfigForChain as R, type Scope as S, type Transaction as T, type DeviceInternalSignerConfig as U, type DeviceSignResult as V, type WalletArgsFor as W, type ApiKeyInternalSignerConfig as X, type ExternalWalletInternalSignerConfig as Y, type InternalSignerConfig as Z, type PasskeyInternalSignerConfig as _, type ApiKeySignerLocator as a, type SignerInput as a$, type UserLocator as a0, type PasskeySignerConfig as a1, type Signer as a2, type PendingSignerOperation as a3, type PrepareOnly as a4, type SignMessageInput as a5, type SignTypedDataInput as a6, type TransactionInputOptions as a7, type FundWalletResponse as a8, type GetTransactionsResponse as a9, type GetWalletResponse as aA, type CreateTransactionParams as aB, type CreateTransactionResponse as aC, type ApproveTransactionParams as aD, type ApproveTransactionResponse as aE, type CreateSignatureParams as aF, type CreateSignatureResponse as aG, type ApproveSignatureParams as aH, type GetSignatureResponse as aI, type GetTransfersResponse as aJ, type GetBalanceResponse as aK, type FundWalletParams as aL, type RemoveSignerParams as aM, type RemoveSignerResponse as aN, type SendParams as aO, type CreateTransactionSuccessResponse as aP, type GetSignersResponse as aQ, type GetWalletSuccessResponse as aR, type RecoverySignerConfig as aS, type Approval as aT, type DeviceSignerDescriptor as aU, type FormattedEVMTransaction as aV, type PendingApproval as aW, type RecoveryCreateArg as aX, type RecoverySignerConfigFor as aY, type SendTokenTransactionType as aZ, type SignatureInputOptions as a_, type GetTransactionSuccessResponse as aa, type SendTokenTransactionOptions as ab, type ApproveResult as ac, type AddSignerReturnType as ad, type RemoveSignerReturnType as ae, type WalletLocator as af, type ApproveSignatureResponse as ag, type StellarTransactionInput as ah, type UpgradeOptions as ai, type MigrateOptions as aj, type GetSignerResponse as ak, type ApiSourcedServerSignerConfig as al, type RegisterSignerParams as am, type ServerSignerLocator as an, type RegisterSignerChain as ao, type RegisterSignerResponse as ap, type TokenBalance as aq, type GetTransactionResponse as ar, type SendResponse as as, type CreateWalletResponse as at, type CreateWalletParams as au, type EmailInternalSignerConfig as av, type PhoneInternalSignerConfig as aw, type BaseSignResult as ax, type ServerInternalSignerConfig as ay, type GetBalanceSuccessResponse as az, type ApproveOptions as b, type StellarWalletPlugin as b0, type ApiKeySignerConfig as b1, type BaseSignerConfig as b2, type NonCustodialSignerType as b3, isApiSourcedServerSignerConfig as b4, type ApproveParams as c, AuthRejectedError as d, type ClientSideWalletArgsFor as e, type ClientSideWalletCreateArgs as f, type DeviceSignerLocator as g, type EmailSignerConfig as h, type EmailSignerLocator as i, type ExportSignerTEEConnection as j, type ExportableSignerAdapter as k, type ExternalWalletRegistrationConfig as l, type ExternalWalletSignerConfigForChain as m, type ExternalWalletSignerLocator as n, OtpValidationError as o, type PhoneSignerConfig as p, type PhoneSignerLocator as q, type RegisterSignerPasskeyParams as r, type RemoveSignerOptions as s, type ServerSignerConfig as t, type Signature as u, type Signer$1 as v, type SignerAdapter as w, type SignerConfigForChain as x, type SignerLocator as y, type SignerStatus 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 _chunk3TPBVNNFcjs = require('../chunk-3TPBVNNF.cjs');require('../chunk-DSIFRRBS.cjs');exports.SDK_NAME = _chunk3TPBVNNFcjs.c; exports.SDK_VERSION = _chunk3TPBVNNFcjs.b; exports.STATUS_POLLING_INTERVAL_MS = _chunk3TPBVNNFcjs.d; exports.WALLETS_SERVICE = _chunk3TPBVNNFcjs.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-QU5AAJAW.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 _chunkYHCEO3GDcjs = require('../../chunk-YHCEO3GD.cjs');require('../../chunk-GSNFNRH2.cjs');require('../../chunk-3VYGTPRF.cjs');require('../../chunk-VS6I4S7X.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-WIAIJCQ2.cjs');require('../../chunk-3TPBVNNF.cjs');require('../../chunk-DSIFRRBS.cjs');exports.IframeDeviceSignerKeyStorage = _chunkYHCEO3GDcjs.a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-KYR4ZYRD.js";import"../../chunk-NZXYWQE5.js";import"../../chunk-IOSADDL5.js";import"../../chunk-KOHPRJDP.js";import"../../chunk-455NK5LB.js";import"../../chunk-JNGPW247.js";import"../../chunk-QU5AAJAW.js";import"../../chunk-NU7VF7MC.js";export{a as IframeDeviceSignerKeyStorage};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.cjs';
|
|
2
|
-
import { D as DeviceSignerConfig } from '../../types-
|
|
2
|
+
import { D as DeviceSignerConfig } from '../../types-r_5ltlhH.cjs';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.cjs';
|
|
5
5
|
import 'ox';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DeviceSignerKeyStorage } from './DeviceSignerKeyStorage.js';
|
|
2
|
-
import { D as DeviceSignerConfig } from '../../types-
|
|
2
|
+
import { D as DeviceSignerConfig } from '../../types-D2ugRtLo.js';
|
|
3
3
|
import 'viem';
|
|
4
4
|
import '../../api/gen/types.gen.js';
|
|
5
5
|
import 'ox';
|
|
@@ -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 _chunkYHCEO3GDcjs = require('../../chunk-YHCEO3GD.cjs');var _chunkGMU3ZYLScjs = require('../../chunk-GMU3ZYLS.cjs');require('../../chunk-GSNFNRH2.cjs');var _chunk3VYGTPRFcjs = require('../../chunk-3VYGTPRF.cjs');require('../../chunk-VS6I4S7X.cjs');require('../../chunk-CCIGWTAO.cjs');require('../../chunk-WIAIJCQ2.cjs');require('../../chunk-3TPBVNNF.cjs');require('../../chunk-DSIFRRBS.cjs');exports.DeviceSignerKeyStorage = _chunk3VYGTPRFcjs.a; exports.IframeDeviceSignerKeyStorage = _chunkYHCEO3GDcjs.a; exports.createDeviceSigner = _chunkGMU3ZYLScjs.a;
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
+
import '../../types-r_5ltlhH.cjs';
|
|
5
5
|
import 'viem';
|
|
6
6
|
import '../../api/gen/types.gen.cjs';
|
|
7
7
|
import 'ox';
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
+
import '../../types-D2ugRtLo.js';
|
|
5
5
|
import 'viem';
|
|
6
6
|
import '../../api/gen/types.gen.js';
|
|
7
7
|
import 'ox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../../chunk-TOAFCAVT.js";import{a as
|
|
1
|
+
import"../../chunk-TOAFCAVT.js";import{a as b}from"../../chunk-KYR4ZYRD.js";import{a as c}from"../../chunk-5LNDUSMZ.js";import"../../chunk-NZXYWQE5.js";import{a}from"../../chunk-IOSADDL5.js";import"../../chunk-KOHPRJDP.js";import"../../chunk-455NK5LB.js";import"../../chunk-JNGPW247.js";import"../../chunk-QU5AAJAW.js";import"../../chunk-NU7VF7MC.js";export{a as DeviceSignerKeyStorage,b as IframeDeviceSignerKeyStorage,c as createDeviceSigner};
|
package/dist/utils/errors.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVS6I4S7Xcjs = require('../chunk-VS6I4S7X.cjs');require('../chunk-DSIFRRBS.cjs');exports.DEVICE_SIGNER_NOT_SUPPORTED_ERROR_CODE = _chunkVS6I4S7Xcjs.l; exports.DeviceSignerNotSupportedError = _chunkVS6I4S7Xcjs.m; exports.DuplicateRecoverySignerError = _chunkVS6I4S7Xcjs.q; exports.InvalidAddressError = _chunkVS6I4S7Xcjs.P; exports.InvalidApiKeyError = _chunkVS6I4S7Xcjs.a; exports.InvalidChainError = _chunkVS6I4S7Xcjs.c; exports.InvalidEnvironmentError = _chunkVS6I4S7Xcjs.b; exports.InvalidMessageFormatError = _chunkVS6I4S7Xcjs.x; exports.InvalidRecoveryConfigError = _chunkVS6I4S7Xcjs.o; exports.InvalidSignerError = _chunkVS6I4S7Xcjs.j; exports.InvalidTransferAmountError = _chunkVS6I4S7Xcjs.G; exports.InvalidTypedDataError = _chunkVS6I4S7Xcjs.y; exports.InvalidWalletConfigError = _chunkVS6I4S7Xcjs.f; exports.JWTDecryptionError = _chunkVS6I4S7Xcjs.V; exports.JWTExpiredError = _chunkVS6I4S7Xcjs.T; exports.JWTIdentifierError = _chunkVS6I4S7Xcjs.W; exports.JWTInvalidError = _chunkVS6I4S7Xcjs.U; exports.MessageSigningNotSupportedError = _chunkVS6I4S7Xcjs.B; exports.NotAuthorizedError = _chunkVS6I4S7Xcjs.S; exports.NotSupportedOnApiVersionError = _chunkVS6I4S7Xcjs.u; exports.PendingApprovalsError = _chunkVS6I4S7Xcjs.O; exports.QuorumSignerNotSupportedError = _chunkVS6I4S7Xcjs.n; exports.RecoveryAdminSignerConflictError = _chunkVS6I4S7Xcjs.v; exports.RecoveryNotSupportedOnChainError = _chunkVS6I4S7Xcjs.t; exports.RecoverySignerConflictError = _chunkVS6I4S7Xcjs.r; exports.RecoverySignerLimitExceededError = _chunkVS6I4S7Xcjs.p; exports.SignatureConfirmationTimeoutError = _chunkVS6I4S7Xcjs.F; exports.SignatureFailedError = _chunkVS6I4S7Xcjs.E; exports.SignatureNotAvailableError = _chunkVS6I4S7Xcjs.D; exports.SignatureNotCreatedError = _chunkVS6I4S7Xcjs.C; exports.SignatureNotFoundError = _chunkVS6I4S7Xcjs.z; exports.SignerRequiredError = _chunkVS6I4S7Xcjs.s; exports.SignerTypeMismatchError = _chunkVS6I4S7Xcjs.i; exports.SigningFailedError = _chunkVS6I4S7Xcjs.A; exports.TransactionAwaitingApprovalError = _chunkVS6I4S7Xcjs.L; exports.TransactionConfirmationTimeoutError = _chunkVS6I4S7Xcjs.J; exports.TransactionFailedError = _chunkVS6I4S7Xcjs.N; exports.TransactionHashNotFoundError = _chunkVS6I4S7Xcjs.M; exports.TransactionNotAvailableError = _chunkVS6I4S7Xcjs.I; exports.TransactionNotCreatedError = _chunkVS6I4S7Xcjs.H; exports.TransactionSendingFailedError = _chunkVS6I4S7Xcjs.K; exports.UnknownSignerTypeError = _chunkVS6I4S7Xcjs.k; exports.UnsupportedBrowserError = _chunkVS6I4S7Xcjs.w; exports.WalletCreationError = _chunkVS6I4S7Xcjs.g; exports.WalletNotAvailableError = _chunkVS6I4S7Xcjs.e; exports.WalletTypeMismatchError = _chunkVS6I4S7Xcjs.h; exports.WalletTypeNotSupportedError = _chunkVS6I4S7Xcjs.d; exports.throwIfCrossmintApiAuthError = _chunkVS6I4S7Xcjs.Q; exports.throwIfRecoverySignerApiError = _chunkVS6I4S7Xcjs.R;
|
package/dist/utils/errors.d.cts
CHANGED
|
@@ -48,6 +48,31 @@ declare class DeviceSignerNotSupportedError extends CrossmintSDKError {
|
|
|
48
48
|
declare class QuorumSignerNotSupportedError extends CrossmintSDKError {
|
|
49
49
|
constructor(message: string, details?: string);
|
|
50
50
|
}
|
|
51
|
+
/** Thrown for recovery configurations the SDK can reject before calling the API. */
|
|
52
|
+
declare class InvalidRecoveryConfigError extends CrossmintSDKError {
|
|
53
|
+
constructor(message: string, details?: string);
|
|
54
|
+
}
|
|
55
|
+
declare class RecoverySignerLimitExceededError extends CrossmintSDKError {
|
|
56
|
+
constructor(message: string, details?: string);
|
|
57
|
+
}
|
|
58
|
+
declare class DuplicateRecoverySignerError extends CrossmintSDKError {
|
|
59
|
+
constructor(message: string, details?: string);
|
|
60
|
+
}
|
|
61
|
+
declare class RecoverySignerConflictError extends CrossmintSDKError {
|
|
62
|
+
constructor(message: string, details?: string);
|
|
63
|
+
}
|
|
64
|
+
declare class SignerRequiredError extends CrossmintSDKError {
|
|
65
|
+
constructor(message: string, details?: string);
|
|
66
|
+
}
|
|
67
|
+
declare class RecoveryNotSupportedOnChainError extends CrossmintSDKError {
|
|
68
|
+
constructor(message: string, details?: string);
|
|
69
|
+
}
|
|
70
|
+
declare class NotSupportedOnApiVersionError extends CrossmintSDKError {
|
|
71
|
+
constructor(message: string, details?: string);
|
|
72
|
+
}
|
|
73
|
+
declare class RecoveryAdminSignerConflictError extends CrossmintSDKError {
|
|
74
|
+
constructor(message: string, details?: string);
|
|
75
|
+
}
|
|
51
76
|
/**
|
|
52
77
|
* Thrown when the browser does not support third-party storage partitioning,
|
|
53
78
|
* making it unsafe to store device-signer keys in IndexedDB. Consumers should
|
|
@@ -121,6 +146,12 @@ declare class InvalidAddressError extends CrossmintSDKError {
|
|
|
121
146
|
* response is not a recognized auth error, letting callers throw their own contextual error.
|
|
122
147
|
*/
|
|
123
148
|
declare function throwIfCrossmintApiAuthError(response: unknown): void;
|
|
124
|
-
|
|
149
|
+
/**
|
|
150
|
+
* Inspects a Crossmint wallets API error response and, when it carries a recognized recovery-signer
|
|
151
|
+
* error code, throws the corresponding typed error. Returns without throwing for every other
|
|
152
|
+
* response so callers can fall back to their own contextual error.
|
|
153
|
+
*/
|
|
154
|
+
declare function throwIfRecoverySignerApiError(response: unknown): void;
|
|
155
|
+
type WalletError = InvalidTransferAmountError | InvalidApiKeyError | InvalidEnvironmentError | InvalidChainError | WalletTypeNotSupportedError | WalletNotAvailableError | InvalidWalletConfigError | WalletCreationError | WalletTypeMismatchError | SignerTypeMismatchError | InvalidSignerError | UnknownSignerTypeError | DeviceSignerNotSupportedError | InvalidRecoveryConfigError | RecoverySignerLimitExceededError | DuplicateRecoverySignerError | RecoverySignerConflictError | SignerRequiredError | RecoveryNotSupportedOnChainError | NotSupportedOnApiVersionError | RecoveryAdminSignerConflictError | InvalidMessageFormatError | InvalidTypedDataError | SignatureNotFoundError | SigningFailedError | MessageSigningNotSupportedError | SignatureNotCreatedError | SignatureNotAvailableError | SignatureFailedError | TransactionNotCreatedError | TransactionNotAvailableError | TransactionConfirmationTimeoutError | TransactionSendingFailedError | TransactionAwaitingApprovalError | TransactionHashNotFoundError | TransactionFailedError | PendingApprovalsError | InvalidAddressError | UnsupportedBrowserError | NotAuthorizedError | JWTExpiredError | JWTInvalidError | JWTDecryptionError | JWTIdentifierError;
|
|
125
156
|
|
|
126
|
-
export { DEVICE_SIGNER_NOT_SUPPORTED_ERROR_CODE, DeviceSignerNotSupportedError, InvalidAddressError, InvalidApiKeyError, InvalidChainError, InvalidEnvironmentError, InvalidMessageFormatError, InvalidSignerError, InvalidTransferAmountError, InvalidTypedDataError, InvalidWalletConfigError, MessageSigningNotSupportedError, PendingApprovalsError, QuorumSignerNotSupportedError, SignatureConfirmationTimeoutError, SignatureFailedError, SignatureNotAvailableError, SignatureNotCreatedError, SignatureNotFoundError, SignerTypeMismatchError, SigningFailedError, TransactionAwaitingApprovalError, TransactionConfirmationTimeoutError, TransactionFailedError, TransactionHashNotFoundError, TransactionNotAvailableError, TransactionNotCreatedError, TransactionSendingFailedError, UnknownSignerTypeError, UnsupportedBrowserError, WalletCreationError, type WalletError, WalletNotAvailableError, WalletTypeMismatchError, WalletTypeNotSupportedError, throwIfCrossmintApiAuthError };
|
|
157
|
+
export { DEVICE_SIGNER_NOT_SUPPORTED_ERROR_CODE, DeviceSignerNotSupportedError, DuplicateRecoverySignerError, InvalidAddressError, InvalidApiKeyError, InvalidChainError, InvalidEnvironmentError, InvalidMessageFormatError, InvalidRecoveryConfigError, InvalidSignerError, InvalidTransferAmountError, InvalidTypedDataError, InvalidWalletConfigError, MessageSigningNotSupportedError, NotSupportedOnApiVersionError, PendingApprovalsError, QuorumSignerNotSupportedError, RecoveryAdminSignerConflictError, RecoveryNotSupportedOnChainError, RecoverySignerConflictError, RecoverySignerLimitExceededError, SignatureConfirmationTimeoutError, SignatureFailedError, SignatureNotAvailableError, SignatureNotCreatedError, SignatureNotFoundError, SignerRequiredError, SignerTypeMismatchError, SigningFailedError, TransactionAwaitingApprovalError, TransactionConfirmationTimeoutError, TransactionFailedError, TransactionHashNotFoundError, TransactionNotAvailableError, TransactionNotCreatedError, TransactionSendingFailedError, UnknownSignerTypeError, UnsupportedBrowserError, WalletCreationError, type WalletError, WalletNotAvailableError, WalletTypeMismatchError, WalletTypeNotSupportedError, throwIfCrossmintApiAuthError, throwIfRecoverySignerApiError };
|