@seams/wallet 0.20.0 → 0.21.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/.build-inputs.sha256 +1 -1
- package/dist/esm/SeamsWeb/SeamsWeb.js +2 -2
- package/dist/esm/SeamsWeb/operations/recovery/walletRecoveryCodeBackup.js +25 -5
- package/dist/esm/SeamsWeb/operations/tempo/executeEvmFamilyTransaction.js +4 -2
- package/dist/esm/SeamsWeb/walletIframe/client/router.js +5 -2
- package/dist/esm/core/rpcClients/evm/EvmClient.js +11 -9
- package/dist/esm/core/signingEngine/flows/signEvmFamily/thresholdAdmission.js +1 -1
- package/dist/esm/core/signingEngine/uiConfirm/ui/preact/RecoveryCodeBackupSurface.js +20 -9
- package/dist/esm/plugins/SeamsWeb/walletIframe/sanitization.js +18 -0
- package/dist/esm/plugins/plugin-utils.js +5 -2
- package/dist/esm/react/components/AccountMenuButton/AuthenticationMethodsModal.js +3 -9
- package/dist/esm/react/components/AccountMenuButton/LinkedDevicesModal.js +2 -2
- package/dist/esm/react/components/AccountMenuButton/index.js +11 -1
- package/dist/esm/sdk/{ConfirmationDrawer-DCw0m-Iv.js → ConfirmationDrawer-B7RCp58z.js} +1 -1
- package/dist/esm/sdk/{NonceCoordinator-Dq-FZpBz.js → NonceCoordinator-Do23iTzQ.js} +1 -1
- package/dist/esm/sdk/accountLifecycle-CXTlwnAS.js +1 -0
- package/dist/esm/sdk/activeWalletSession-BtEHhe99.js +1 -0
- package/dist/esm/sdk/adapters-La60hveX.js +2 -0
- package/dist/esm/sdk/challengeDelivery-C88JNwKf.js +1 -0
- package/dist/esm/sdk/clientSessionPersistenceState-DFGHXoKK.js +1 -0
- package/dist/esm/sdk/collectAuthenticationCredentialForChallengeB64u-CSwy9csE.js +1 -0
- package/dist/esm/sdk/{commitQueue-BW7BpYyA.js → commitQueue-BQPOhyGl.js} +1 -1
- package/dist/esm/sdk/{display-WtILOPQR.js → display-Dtugjeya.js} +1 -1
- package/dist/esm/sdk/ecdsaCapabilityManifest-B3u6J5gn.js +1 -0
- package/dist/esm/sdk/{ecdsaDerivationClientWasm-DmwKWUEb.js → ecdsaDerivationClientWasm-D1HzwUgV.js} +1 -1
- package/dist/esm/sdk/ecdsaDerivationExport-DrFESeRP.js +1 -0
- package/dist/esm/sdk/ecdsaWalletRecords-BmhuJF1y.js +1 -0
- package/dist/esm/sdk/emailOtpEcdsaDerivationIdentity-DreNrM6n.js +1 -0
- package/dist/esm/sdk/{enrichDisplayModelWithAbi-DSj4NAlY.js → enrichDisplayModelWithAbi-D0o0IL7_.js} +1 -1
- package/dist/esm/sdk/{evmCryptoWasm-DeobzyP-.js → evmCryptoWasm-S2gL5ht4.js} +1 -1
- package/dist/esm/sdk/{export-viewer-host-DsdzagKK.js → export-viewer-host-CVdpEuY6.js} +1 -1
- package/dist/esm/sdk/exportKeypairOperation-gVCqLrDl.js +1 -0
- package/dist/esm/sdk/host-Bz7mRJPZ.js +1 -0
- package/dist/esm/sdk/keyMaterialEnvelope-B3v6HLtz.js +1 -0
- package/dist/esm/sdk/{lanes-BzU7cv2T.js → lanes-l274pbT5.js} +1 -1
- package/dist/esm/sdk/localOnly-TXaYAZj-.js +1 -0
- package/dist/esm/sdk/{mountExportPrivateKeySurface-DQzFzhNu.js → mountExportPrivateKeySurface-DUnKOBQr.js} +1 -1
- package/dist/esm/sdk/mountRecoveryCodeBackupSurface-MGTl6FhG.js +2 -0
- package/dist/esm/sdk/nearEd25519YaoMaterialActivation-BK8_DxHs.js +1 -0
- package/dist/esm/sdk/nearEd25519YaoSigningPreparation-BgCxoh9S.js +1 -0
- package/dist/esm/sdk/{nonceLaneKeys-BzMBVxMU.js → nonceLaneKeys-CR2XEvnk.js} +1 -1
- package/dist/esm/sdk/{normalization-Ct9-AY13.js → normalization-Ctkj80dW.js} +1 -1
- package/dist/esm/sdk/{operationFingerprint-C4VX-0NI.js → operationFingerprint-DRPONhBD.js} +1 -1
- package/dist/esm/sdk/pendingWalletRecoveryCodeBackup-DWeemdJv.js +1 -0
- package/dist/esm/sdk/presignaturePool-DNiA3sgr.js +1 -0
- package/dist/{public/sdk/singletons-CAsc9LvA.js → esm/sdk/presignatures-DGLNs29C.js} +1 -1
- package/dist/esm/sdk/recovery-entrypoint-CNVjXz6A.js +1 -0
- package/dist/esm/sdk/recoveryAuthorization-BplZWc-N.js +1 -0
- package/dist/esm/sdk/{registration-DknFwoqn.js → registration-DVX_lnP7.js} +1 -1
- package/dist/esm/sdk/registration-DeCUrUR9.js +1 -0
- package/dist/esm/sdk/registrationAccounts-BfO6Ztye.js +1 -0
- package/dist/esm/sdk/registrationIntent-DW_kKWlx.js +1 -0
- package/dist/esm/sdk/{registrationSignerPlan-BHkqlian.js → registrationSignerPlan-B66FjqIp.js} +1 -1
- package/dist/esm/sdk/{requireStepUpAuth-CnSCFSOZ.js → requireStepUpAuth-DsNLml1i.js} +1 -1
- package/dist/esm/sdk/routerAbNormalSigning-DSAfCcND.js +1 -0
- package/dist/esm/sdk/runtime-auth-BAGyfscG.js +1 -0
- package/dist/{public/sdk/runtime-device-link-Dn_5hPCq.js → esm/sdk/runtime-device-link-DKkMLVor.js} +1 -1
- package/dist/{public/sdk/runtime-ecdsa-tempo-lTFTb9Rh.js → esm/sdk/runtime-ecdsa-tempo-0TAVH1xg.js} +1 -1
- package/dist/esm/sdk/runtime-email-otp-DoHa8Hif.js +1 -0
- package/dist/esm/sdk/{runtime-export-Brz53_oi.js → runtime-export-CAt17IFH.js} +1 -1
- package/dist/esm/sdk/{runtime-near-Da_xFUXx.js → runtime-near-BQX9Jk9Z.js} +1 -1
- package/dist/esm/sdk/runtime-preferences-BuKTIpv6.js +1 -0
- package/dist/esm/sdk/runtime-recovery-DyxJKKNw.js +1 -0
- package/dist/esm/sdk/runtime-recovery-codes-CWmt0FDB.js +1 -0
- package/dist/esm/sdk/secp256k1-CYu8ENjP.js +1 -0
- package/dist/esm/sdk/sessionObservationRevision-abErAhd6.js +1 -0
- package/dist/esm/sdk/shared-BVps1f3F.js +6 -0
- package/dist/esm/sdk/signEvmFamily-C4XMiSue.js +1 -0
- package/dist/{public/sdk/signEvmFamilyWithUiConfirmForTempo-NYCFU6Li.js → esm/sdk/signEvmFamilyWithUiConfirmForTempo-4A3D9nKv.js} +1 -1
- package/dist/esm/sdk/{signEvmWithUiConfirm-D6nmJr_L.js → signEvmWithUiConfirm-lZyPfrGe.js} +1 -1
- package/dist/esm/sdk/signNear-B_UcqMRf.js +1 -0
- package/dist/esm/sdk/{signatureUses-B_nN17i7.js → signatureUses-CY4U-X6V.js} +1 -1
- package/dist/esm/sdk/{registrationIds-B1OpqRAt.js → signerSlot-CpyIfl3J.js} +1 -1
- package/dist/esm/sdk/signingFlow-Co_QtuHK.js +2 -0
- package/dist/esm/sdk/signingQueue-Cj9sCJLj.js +1 -0
- package/dist/esm/sdk/thresholdEcdsa-LvkD6z8-.js +1 -0
- package/dist/esm/sdk/{trace-CsRMlSh1.js → trace-CWTzEALZ.js} +1 -1
- package/dist/esm/sdk/{transaction-activity-C0nCSW6c.js → transaction-activity-D5f-Yn9t.js} +1 -1
- package/dist/{public/sdk/transactionState-lB2qpkOm.js → esm/sdk/transactionState-BaFSiA9t.js} +1 -1
- package/dist/esm/sdk/{types-CQTWmtqu.js → types-BrEW276O.js} +1 -1
- package/dist/esm/sdk/wallet-iframe-host-ecdsa.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-full.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-near.js +1 -1
- package/dist/esm/sdk/wallet-iframe-host-runtime.js +1 -1
- package/dist/esm/sdk/wallet-recovery-BEui57xM.js +1 -0
- package/dist/esm/sdk/{walletAuthMethodRecord-CWdqdY_s.js → walletAuthMethodRecord-Cv_MYpxt.js} +1 -1
- package/dist/esm/sdk/walletCapabilityBindings-CKOK39sP.js +1 -0
- package/dist/esm/sdk/walletCustodyEcdsaContinuity-5XsLsT8D.js +1 -0
- package/dist/esm/sdk/walletCustodyOperation-BO_tSfGY.js +1 -0
- package/dist/esm/sdk/walletDbName-BVZhb4xF.js +1 -0
- package/dist/esm/sdk/walletOwnershipGeneration-CQzaodhB.js +1 -0
- package/dist/esm/sdk/walletRecoveryAdminProof-CIoLawfC.js +1 -0
- package/dist/esm/sdk/walletRecoveryCommit-B_e4k5Pa.js +1 -0
- package/dist/esm/sdk/walletRegistrationSetupPrewarm-CQow9u8m.js +1 -0
- package/dist/esm/sdk/walletSessionAuthorizationStatus-_KtCVFYW.js +1 -0
- package/dist/esm/sdk/walletSessionAuthorizationStore-DYRMCkiT.js +1 -0
- package/dist/esm/sdk/warmSessionHydration-CY9ofEGr.js +1 -0
- package/dist/{public/sdk/webauthnP256-_ajaNl90.js → esm/sdk/webauthnP256-unqBoZCk.js} +1 -1
- package/dist/esm/shared-ts/src/device-linking/deviceManagement.js +2 -3
- package/dist/esm/shared-ts/src/utils/evmRpcResults.js +5 -3
- package/dist/esm/shared-ts/src/utils/routerAbEcdsaDerivation.js +2 -1
- package/dist/public/headers.manifest.json +1 -1
- package/dist/public/sdk/{ConfirmationDrawer-DCw0m-Iv.js → ConfirmationDrawer-B7RCp58z.js} +1 -1
- package/dist/public/sdk/{NonceCoordinator-Dq-FZpBz.js → NonceCoordinator-Do23iTzQ.js} +1 -1
- package/dist/public/sdk/accountLifecycle-CXTlwnAS.js +1 -0
- package/dist/public/sdk/activeWalletSession-BtEHhe99.js +1 -0
- package/dist/public/sdk/adapters-La60hveX.js +2 -0
- package/dist/public/sdk/challengeDelivery-C88JNwKf.js +1 -0
- package/dist/public/sdk/clientSessionPersistenceState-DFGHXoKK.js +1 -0
- package/dist/public/sdk/collectAuthenticationCredentialForChallengeB64u-CSwy9csE.js +1 -0
- package/dist/public/sdk/{commitQueue-BW7BpYyA.js → commitQueue-BQPOhyGl.js} +1 -1
- package/dist/public/sdk/{display-WtILOPQR.js → display-Dtugjeya.js} +1 -1
- package/dist/public/sdk/ecdsaCapabilityManifest-B3u6J5gn.js +1 -0
- package/dist/public/sdk/{ecdsaDerivationClientWasm-DmwKWUEb.js → ecdsaDerivationClientWasm-D1HzwUgV.js} +1 -1
- package/dist/public/sdk/ecdsaDerivationExport-DrFESeRP.js +1 -0
- package/dist/public/sdk/ecdsaWalletRecords-BmhuJF1y.js +1 -0
- package/dist/public/sdk/emailOtpEcdsaDerivationIdentity-DreNrM6n.js +1 -0
- package/dist/public/sdk/{enrichDisplayModelWithAbi-DSj4NAlY.js → enrichDisplayModelWithAbi-D0o0IL7_.js} +1 -1
- package/dist/public/sdk/{evmCryptoWasm-DeobzyP-.js → evmCryptoWasm-S2gL5ht4.js} +1 -1
- package/dist/public/sdk/{export-viewer-host-DsdzagKK.js → export-viewer-host-CVdpEuY6.js} +1 -1
- package/dist/public/sdk/exportKeypairOperation-gVCqLrDl.js +1 -0
- package/dist/public/sdk/host-Bz7mRJPZ.js +1 -0
- package/dist/public/sdk/keyMaterialEnvelope-B3v6HLtz.js +1 -0
- package/dist/public/sdk/{lanes-BzU7cv2T.js → lanes-l274pbT5.js} +1 -1
- package/dist/public/sdk/localOnly-TXaYAZj-.js +1 -0
- package/dist/public/sdk/{mountExportPrivateKeySurface-DQzFzhNu.js → mountExportPrivateKeySurface-DUnKOBQr.js} +1 -1
- package/dist/public/sdk/mountRecoveryCodeBackupSurface-MGTl6FhG.js +2 -0
- package/dist/public/sdk/nearEd25519YaoMaterialActivation-BK8_DxHs.js +1 -0
- package/dist/public/sdk/nearEd25519YaoSigningPreparation-BgCxoh9S.js +1 -0
- package/dist/public/sdk/{nonceLaneKeys-BzMBVxMU.js → nonceLaneKeys-CR2XEvnk.js} +1 -1
- package/dist/public/sdk/{normalization-Ct9-AY13.js → normalization-Ctkj80dW.js} +1 -1
- package/dist/public/sdk/{operationFingerprint-C4VX-0NI.js → operationFingerprint-DRPONhBD.js} +1 -1
- package/dist/public/sdk/pendingWalletRecoveryCodeBackup-DWeemdJv.js +1 -0
- package/dist/public/sdk/presignaturePool-DNiA3sgr.js +1 -0
- package/dist/{esm/sdk/singletons-CAsc9LvA.js → public/sdk/presignatures-DGLNs29C.js} +1 -1
- package/dist/public/sdk/recovery-entrypoint-CNVjXz6A.js +1 -0
- package/dist/public/sdk/recoveryAuthorization-BplZWc-N.js +1 -0
- package/dist/public/sdk/{registration-DknFwoqn.js → registration-DVX_lnP7.js} +1 -1
- package/dist/public/sdk/registration-DeCUrUR9.js +1 -0
- package/dist/public/sdk/registrationAccounts-BfO6Ztye.js +1 -0
- package/dist/public/sdk/registrationIntent-DW_kKWlx.js +1 -0
- package/dist/public/sdk/{registrationSignerPlan-BHkqlian.js → registrationSignerPlan-B66FjqIp.js} +1 -1
- package/dist/public/sdk/{requireStepUpAuth-CnSCFSOZ.js → requireStepUpAuth-DsNLml1i.js} +1 -1
- package/dist/public/sdk/routerAbNormalSigning-DSAfCcND.js +1 -0
- package/dist/public/sdk/runtime-auth-BAGyfscG.js +1 -0
- package/dist/{esm/sdk/runtime-device-link-Dn_5hPCq.js → public/sdk/runtime-device-link-DKkMLVor.js} +1 -1
- package/dist/{esm/sdk/runtime-ecdsa-tempo-lTFTb9Rh.js → public/sdk/runtime-ecdsa-tempo-0TAVH1xg.js} +1 -1
- package/dist/public/sdk/runtime-email-otp-DoHa8Hif.js +1 -0
- package/dist/public/sdk/{runtime-export-Brz53_oi.js → runtime-export-CAt17IFH.js} +1 -1
- package/dist/public/sdk/{runtime-near-Da_xFUXx.js → runtime-near-BQX9Jk9Z.js} +1 -1
- package/dist/public/sdk/runtime-preferences-BuKTIpv6.js +1 -0
- package/dist/public/sdk/runtime-recovery-DyxJKKNw.js +1 -0
- package/dist/public/sdk/runtime-recovery-codes-CWmt0FDB.js +1 -0
- package/dist/public/sdk/secp256k1-CYu8ENjP.js +1 -0
- package/dist/public/sdk/sessionObservationRevision-abErAhd6.js +1 -0
- package/dist/public/sdk/shared-BVps1f3F.js +6 -0
- package/dist/public/sdk/signEvmFamily-C4XMiSue.js +1 -0
- package/dist/{esm/sdk/signEvmFamilyWithUiConfirmForTempo-NYCFU6Li.js → public/sdk/signEvmFamilyWithUiConfirmForTempo-4A3D9nKv.js} +1 -1
- package/dist/public/sdk/{signEvmWithUiConfirm-D6nmJr_L.js → signEvmWithUiConfirm-lZyPfrGe.js} +1 -1
- package/dist/public/sdk/signNear-B_UcqMRf.js +1 -0
- package/dist/public/sdk/{signatureUses-B_nN17i7.js → signatureUses-CY4U-X6V.js} +1 -1
- package/dist/public/sdk/{registrationIds-B1OpqRAt.js → signerSlot-CpyIfl3J.js} +1 -1
- package/dist/public/sdk/signingFlow-Co_QtuHK.js +2 -0
- package/dist/public/sdk/signingQueue-Cj9sCJLj.js +1 -0
- package/dist/public/sdk/thresholdEcdsa-LvkD6z8-.js +1 -0
- package/dist/public/sdk/{trace-CsRMlSh1.js → trace-CWTzEALZ.js} +1 -1
- package/dist/public/sdk/{transaction-activity-C0nCSW6c.js → transaction-activity-D5f-Yn9t.js} +1 -1
- package/dist/{esm/sdk/transactionState-lB2qpkOm.js → public/sdk/transactionState-BaFSiA9t.js} +1 -1
- package/dist/public/sdk/{types-CQTWmtqu.js → types-BrEW276O.js} +1 -1
- package/dist/public/sdk/wallet-iframe-host-ecdsa.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-full.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-near.js +1 -1
- package/dist/public/sdk/wallet-iframe-host-runtime.js +1 -1
- package/dist/public/sdk/wallet-recovery-BEui57xM.js +1 -0
- package/dist/public/sdk/{walletAuthMethodRecord-CWdqdY_s.js → walletAuthMethodRecord-Cv_MYpxt.js} +1 -1
- package/dist/public/sdk/walletCapabilityBindings-CKOK39sP.js +1 -0
- package/dist/public/sdk/walletCustodyEcdsaContinuity-5XsLsT8D.js +1 -0
- package/dist/public/sdk/walletCustodyOperation-BO_tSfGY.js +1 -0
- package/dist/public/sdk/walletDbName-BVZhb4xF.js +1 -0
- package/dist/public/sdk/walletOwnershipGeneration-CQzaodhB.js +1 -0
- package/dist/public/sdk/walletRecoveryAdminProof-CIoLawfC.js +1 -0
- package/dist/public/sdk/walletRecoveryCommit-B_e4k5Pa.js +1 -0
- package/dist/public/sdk/walletRegistrationSetupPrewarm-CQow9u8m.js +1 -0
- package/dist/public/sdk/walletSessionAuthorizationStatus-_KtCVFYW.js +1 -0
- package/dist/public/sdk/walletSessionAuthorizationStore-DYRMCkiT.js +1 -0
- package/dist/public/sdk/warmSessionHydration-CY9ofEGr.js +1 -0
- package/dist/{esm/sdk/webauthnP256-_ajaNl90.js → public/sdk/webauthnP256-unqBoZCk.js} +1 -1
- package/dist/public/sdk/workers/email-otp.worker.js +6 -1
- package/dist/public/wallet-assets.manifest.json +253 -276
- package/dist/public/wallet-service/index.html +4 -4
- package/dist/types/shared-ts/src/authorization/walletCustodyOperation.d.ts +1 -1
- package/dist/types/shared-ts/src/device-linking/contracts.d.ts +1 -7
- package/dist/types/shared-ts/src/passkey-custody/ceremonyCommitPayload.d.ts +5 -0
- package/dist/types/shared-ts/src/utils/evmRpcResults.d.ts +3 -3
- package/dist/types/shared-ts/src/utils/routerAbEcdsaDerivation.d.ts +1 -1
- package/dist/types/wallet/src/SeamsWeb/operations/recovery/walletRecoveryAdminProof.d.ts +46 -0
- package/dist/types/wallet/src/SeamsWeb/operations/recovery/walletRecoveryCodeBackup.d.ts +4 -1
- package/dist/types/wallet/src/SeamsWeb/operations/recovery/walletRecoveryRotation.d.ts +11 -7
- package/dist/types/wallet/src/SeamsWeb/publicApi/types.d.ts +9 -1
- package/dist/types/wallet/src/SeamsWeb/signingSurface/BrowserSigningSurface.d.ts +4 -3
- package/dist/types/wallet/src/SeamsWeb/signingSurface/ports.d.ts +6 -4
- package/dist/types/wallet/src/SeamsWeb/signingSurface/types.d.ts +2 -2
- package/dist/types/wallet/src/SeamsWeb/walletIframe/client/router.d.ts +2 -6
- package/dist/types/wallet/src/SeamsWeb/walletIframe/host/WalletHostRuntime.d.ts +1 -0
- package/dist/types/wallet/src/SeamsWeb/walletIframe/host/requestWalletMove.d.ts +1 -1
- package/dist/types/wallet/src/SeamsWeb/walletIframe/shared/messages.d.ts +5 -1
- package/dist/types/wallet/src/SeamsWeb/walletIframe/shared/recoveryAuthorization.d.ts +6 -0
- package/dist/types/wallet/src/core/indexedDB/seamsWalletDB/pendingWalletRecoveryCodeBackup.d.ts +14 -3
- package/dist/types/wallet/src/core/rpcClients/relayer/walletRecoveryRotate.d.ts +8 -0
- package/dist/types/wallet/src/core/signingEngine/uiConfirm/ui/preact/RecoveryCodeBackupSurface.d.ts +1 -0
- package/dist/types/wallet/src/core/signingEngine/walletCustody/walletRecoveryRotation.d.ts +22 -3
- package/dist/types/wallet/src/core/signingEngine/workerManager/workerTypes.d.ts +1 -0
- package/dist/types/wallet/src/core/signingEngine/workerManager/workers/email-otp/unlock.d.ts +1 -0
- package/dist/types/wallet/src/core/types/sdkSentEvents.d.ts +8 -2
- package/dist/types/wallet/src/plugins/plugin-utils.d.ts +1 -1
- package/dist/workers/email-otp.worker.js +6 -1
- package/package.json +1 -1
- package/dist/esm/sdk/accountLifecycle-fLNUdjct.js +0 -1
- package/dist/esm/sdk/activeWalletSession-BpbnpU9s.js +0 -1
- package/dist/esm/sdk/adapters-BNmcyf9K.js +0 -2
- package/dist/esm/sdk/challengeDelivery-CG2J5Qxs.js +0 -1
- package/dist/esm/sdk/clientSessionPersistenceState-BgO4P6CZ.js +0 -1
- package/dist/esm/sdk/digestEncoding-aC4dSf_x.js +0 -1
- package/dist/esm/sdk/ecdsaCapabilityManifest-DRc423SV.js +0 -1
- package/dist/esm/sdk/ecdsaDerivationExport-DX89rq_u.js +0 -1
- package/dist/esm/sdk/ecdsaWalletRecords-CxxUt3fS.js +0 -1
- package/dist/esm/sdk/emailOtpEcdsaDerivationIdentity-CupWCKNg.js +0 -1
- package/dist/esm/sdk/exportKeypairOperation-BwW_E4Lt.js +0 -1
- package/dist/esm/sdk/host-DMR4KDy9.js +0 -1
- package/dist/esm/sdk/localOnly-DO191vDh.js +0 -1
- package/dist/esm/sdk/mountRecoveryCodeBackupSurface-B1D0ovqx.js +0 -2
- package/dist/esm/sdk/nearEd25519YaoMaterialActivation-DgWDGRI_.js +0 -1
- package/dist/esm/sdk/nearEd25519YaoSigningPreparation-yKDLQXBS.js +0 -1
- package/dist/esm/sdk/passkey-custody-Ba-NQ_4C.js +0 -1
- package/dist/esm/sdk/pendingWalletRecoveryCodeBackup-DOeIn_Qj.js +0 -1
- package/dist/esm/sdk/presignaturePool-BHoxnbOA.js +0 -1
- package/dist/esm/sdk/presignatures-K-yuzOE0.js +0 -1
- package/dist/esm/sdk/primitives-CTmDwMNc.js +0 -1
- package/dist/esm/sdk/recovery-entrypoint-DWghFZrZ.js +0 -1
- package/dist/esm/sdk/registration-sQndIWRF.js +0 -1
- package/dist/esm/sdk/registrationAccounts-CD1u1ZqZ.js +0 -1
- package/dist/esm/sdk/registrationIntent-D4YDjf2U.js +0 -1
- package/dist/esm/sdk/routerAbNormalSigning-BV1t27aB.js +0 -1
- package/dist/esm/sdk/runtime-auth-BxG-J-BB.js +0 -1
- package/dist/esm/sdk/runtime-email-otp-CPqTCH8Q.js +0 -1
- package/dist/esm/sdk/runtime-preferences-riUZGaTs.js +0 -1
- package/dist/esm/sdk/runtime-recovery-CTj4nDAM.js +0 -1
- package/dist/esm/sdk/runtime-recovery-codes-D8T9LQ7-.js +0 -1
- package/dist/esm/sdk/secp256k1-wOOHtPcK.js +0 -1
- package/dist/esm/sdk/sessionObservationRevision-C7v-wN8_.js +0 -1
- package/dist/esm/sdk/shared-hx7KVyeq.js +0 -6
- package/dist/esm/sdk/signEvmFamily-DT34Vtpa.js +0 -1
- package/dist/esm/sdk/signNear-B000QxBd.js +0 -1
- package/dist/esm/sdk/signerSlot-FJAGOhmg.js +0 -1
- package/dist/esm/sdk/signingFlow-gl85GOW4.js +0 -2
- package/dist/esm/sdk/signingQueue-gW7wmOuL.js +0 -1
- package/dist/esm/sdk/thresholdEcdsa-Ci7yz395.js +0 -1
- package/dist/esm/sdk/wallet-recovery-DFaS3geI.js +0 -1
- package/dist/esm/sdk/walletAuthority-BY3kyKQ-.js +0 -1
- package/dist/esm/sdk/walletCustodyEcdsaContinuity-mGh1Ysko.js +0 -1
- package/dist/esm/sdk/walletDbName-BxWApBQF.js +0 -1
- package/dist/esm/sdk/walletOwnershipGeneration-DSGfjuV2.js +0 -1
- package/dist/esm/sdk/walletRecoveryCommit-DQA_wveK.js +0 -1
- package/dist/esm/sdk/walletRecoveryRotate-zvQThn37.js +0 -1
- package/dist/esm/sdk/walletRegistrationSetupPrewarm-DdVpKccU.js +0 -1
- package/dist/esm/sdk/walletSessionAuthorizationStatus-ONPRiEbK.js +0 -1
- package/dist/esm/sdk/walletSessionAuthorizationStore-DnUMtkev.js +0 -1
- package/dist/esm/sdk/warmSessionHydration-D8Vdro9n.js +0 -1
- package/dist/public/sdk/accountLifecycle-fLNUdjct.js +0 -1
- package/dist/public/sdk/activeWalletSession-BpbnpU9s.js +0 -1
- package/dist/public/sdk/adapters-BNmcyf9K.js +0 -2
- package/dist/public/sdk/challengeDelivery-CG2J5Qxs.js +0 -1
- package/dist/public/sdk/clientSessionPersistenceState-BgO4P6CZ.js +0 -1
- package/dist/public/sdk/digestEncoding-aC4dSf_x.js +0 -1
- package/dist/public/sdk/ecdsaCapabilityManifest-DRc423SV.js +0 -1
- package/dist/public/sdk/ecdsaDerivationExport-DX89rq_u.js +0 -1
- package/dist/public/sdk/ecdsaWalletRecords-CxxUt3fS.js +0 -1
- package/dist/public/sdk/emailOtpEcdsaDerivationIdentity-CupWCKNg.js +0 -1
- package/dist/public/sdk/exportKeypairOperation-BwW_E4Lt.js +0 -1
- package/dist/public/sdk/host-DMR4KDy9.js +0 -1
- package/dist/public/sdk/localOnly-DO191vDh.js +0 -1
- package/dist/public/sdk/mountRecoveryCodeBackupSurface-B1D0ovqx.js +0 -2
- package/dist/public/sdk/nearEd25519YaoMaterialActivation-DgWDGRI_.js +0 -1
- package/dist/public/sdk/nearEd25519YaoSigningPreparation-yKDLQXBS.js +0 -1
- package/dist/public/sdk/passkey-custody-Ba-NQ_4C.js +0 -1
- package/dist/public/sdk/pendingWalletRecoveryCodeBackup-DOeIn_Qj.js +0 -1
- package/dist/public/sdk/presignaturePool-BHoxnbOA.js +0 -1
- package/dist/public/sdk/presignatures-K-yuzOE0.js +0 -1
- package/dist/public/sdk/primitives-CTmDwMNc.js +0 -1
- package/dist/public/sdk/recovery-entrypoint-DWghFZrZ.js +0 -1
- package/dist/public/sdk/registration-sQndIWRF.js +0 -1
- package/dist/public/sdk/registrationAccounts-CD1u1ZqZ.js +0 -1
- package/dist/public/sdk/registrationIntent-D4YDjf2U.js +0 -1
- package/dist/public/sdk/routerAbNormalSigning-BV1t27aB.js +0 -1
- package/dist/public/sdk/runtime-auth-BxG-J-BB.js +0 -1
- package/dist/public/sdk/runtime-email-otp-CPqTCH8Q.js +0 -1
- package/dist/public/sdk/runtime-preferences-riUZGaTs.js +0 -1
- package/dist/public/sdk/runtime-recovery-CTj4nDAM.js +0 -1
- package/dist/public/sdk/runtime-recovery-codes-D8T9LQ7-.js +0 -1
- package/dist/public/sdk/secp256k1-wOOHtPcK.js +0 -1
- package/dist/public/sdk/sessionObservationRevision-C7v-wN8_.js +0 -1
- package/dist/public/sdk/shared-hx7KVyeq.js +0 -6
- package/dist/public/sdk/signEvmFamily-DT34Vtpa.js +0 -1
- package/dist/public/sdk/signNear-B000QxBd.js +0 -1
- package/dist/public/sdk/signerSlot-FJAGOhmg.js +0 -1
- package/dist/public/sdk/signingFlow-gl85GOW4.js +0 -2
- package/dist/public/sdk/signingQueue-gW7wmOuL.js +0 -1
- package/dist/public/sdk/thresholdEcdsa-Ci7yz395.js +0 -1
- package/dist/public/sdk/wallet-recovery-DFaS3geI.js +0 -1
- package/dist/public/sdk/walletAuthority-BY3kyKQ-.js +0 -1
- package/dist/public/sdk/walletCustodyEcdsaContinuity-mGh1Ysko.js +0 -1
- package/dist/public/sdk/walletDbName-BxWApBQF.js +0 -1
- package/dist/public/sdk/walletOwnershipGeneration-DSGfjuV2.js +0 -1
- package/dist/public/sdk/walletRecoveryCommit-DQA_wveK.js +0 -1
- package/dist/public/sdk/walletRecoveryRotate-zvQThn37.js +0 -1
- package/dist/public/sdk/walletRegistrationSetupPrewarm-DdVpKccU.js +0 -1
- package/dist/public/sdk/walletSessionAuthorizationStatus-ONPRiEbK.js +0 -1
- package/dist/public/sdk/walletSessionAuthorizationStore-DnUMtkev.js +0 -1
- package/dist/public/sdk/warmSessionHydration-D8Vdro9n.js +0 -1
- /package/dist/esm/sdk/{accountIds-Cpvlkvbe.js → accountIds-BzZs7YoX.js} +0 -0
- /package/dist/esm/sdk/{appearance-4DmzKUWf.js → appearance-ZGVLwA4N.js} +0 -0
- /package/dist/esm/sdk/{appearance-token-vars-DxBm_cKA.js → appearance-token-vars-Bu6YUWmf.js} +0 -0
- /package/dist/esm/sdk/{authenticatorOptions-2_XK8aXv.js → authenticatorOptions-BB_sU4uA.js} +0 -0
- /package/dist/esm/sdk/{authorizationAdmission-Dd23mTx7.js → authorizationAdmission-D7nx2n4d.js} +0 -0
- /package/dist/esm/sdk/{browser-n3IVr7qu.js → browser-DkCRXFkk.js} +0 -0
- /package/dist/esm/sdk/{bytes-DZRW2UDg.js → bytes-Cv07P0Pu.js} +0 -0
- /package/dist/esm/sdk/{canonicalPrimitives-BMP5yILS.js → canonicalPrimitives-D_1HyEuJ.js} +0 -0
- /package/dist/esm/sdk/{canonicalSignerErrorCode-Cz48v4oy.js → canonicalSignerErrorCode-CqHi6ji6.js} +0 -0
- /package/dist/esm/sdk/{capabilityKinds-D0Yrp9uf.js → capabilityKinds-CqHVzVsJ.js} +0 -0
- /package/dist/esm/sdk/{ecdsaChainTarget-DkOrgv4y.js → ecdsaChainTarget-svSlzhze.js} +0 -0
- /package/dist/esm/sdk/{errors-ADOZT8oV.js → errors-CI1xdN0d.js} +0 -0
- /package/dist/esm/sdk/{executeWorkerOperation-DKCRRq5E.js → executeWorkerOperation-S6glYwAs.js} +0 -0
- /package/dist/esm/sdk/{helpers-DS0bksx9.js → helpers-BXezXx19.js} +0 -0
- /package/dist/esm/sdk/{intentDigest-Rh5Mg8X7.js → intentDigest--FZ63NBy.js} +0 -0
- /package/dist/esm/sdk/{jsonRpc-BVDv1wfm.js → jsonRpc-B5zMY6lE.js} +0 -0
- /package/dist/esm/sdk/{keccak-mS0Mejjx.js → keccak-CaPOCznk.js} +0 -0
- /package/dist/esm/sdk/{normalization-C6fQN6mW.js → normalization-CpLZcL2f.js} +0 -0
- /package/dist/esm/sdk/{prfCache-BAFh1skJ.js → prfCache-D25ZCg5n.js} +0 -0
- /package/dist/esm/sdk/{profileAccountProjection-BNVJLOt2.js → profileAccountProjection-C1z9sKHa.js} +0 -0
- /package/dist/esm/sdk/{promptText-CnyrLxgj.js → promptText-D2f5Rg0h.js} +0 -0
- /package/dist/esm/sdk/{registrationAuthMethodInput-B23_HRil.js → registrationAuthMethodInput-DKz6Mgg4.js} +0 -0
- /package/dist/esm/sdk/{sdkSentEvents-DujYAPEM.js → sdkSentEvents-BzMVO1AR.js} +0 -0
- /package/dist/esm/sdk/{signer-worker-DlK58rEA.js → signer-worker-Bh_5foqX.js} +0 -0
- /package/dist/esm/sdk/{signerDomain-BFqRQ0Jl.js → signerDomain-YEHkugWX.js} +0 -0
- /package/dist/esm/sdk/{surface-measurement-reporter-BJhfiPw6.js → surface-measurement-reporter-F-fVB7d3.js} +0 -0
- /package/dist/esm/sdk/{types-Buoe6179.js → types-BNUuaUtl.js} +0 -0
- /package/dist/esm/sdk/{walletIframeIdentity-Cz82I_Uh.js → walletIframeIdentity-DJ0KOBHg.js} +0 -0
- /package/dist/esm/sdk/{walletSessionAuthorizationProjection-DuU6w0FP.js → walletSessionAuthorizationProjection-UdGeS6x3.js} +0 -0
- /package/dist/esm/sdk/{walletSessionFailure-C6TAQTZn.js → walletSessionFailure-Ct412mDZ.js} +0 -0
- /package/dist/esm/sdk/{webauthnPromptCoordinator-9bVeHcTZ.js → webauthnPromptCoordinator-CBkTiMP0.js} +0 -0
- /package/dist/public/sdk/{accountIds-Cpvlkvbe.js → accountIds-BzZs7YoX.js} +0 -0
- /package/dist/public/sdk/{appearance-4DmzKUWf.js → appearance-ZGVLwA4N.js} +0 -0
- /package/dist/public/sdk/{appearance-token-vars-DxBm_cKA.js → appearance-token-vars-Bu6YUWmf.js} +0 -0
- /package/dist/public/sdk/{authenticatorOptions-2_XK8aXv.js → authenticatorOptions-BB_sU4uA.js} +0 -0
- /package/dist/public/sdk/{authorizationAdmission-Dd23mTx7.js → authorizationAdmission-D7nx2n4d.js} +0 -0
- /package/dist/public/sdk/{browser-n3IVr7qu.js → browser-DkCRXFkk.js} +0 -0
- /package/dist/public/sdk/{bytes-DZRW2UDg.js → bytes-Cv07P0Pu.js} +0 -0
- /package/dist/public/sdk/{canonicalPrimitives-BMP5yILS.js → canonicalPrimitives-D_1HyEuJ.js} +0 -0
- /package/dist/public/sdk/{canonicalSignerErrorCode-Cz48v4oy.js → canonicalSignerErrorCode-CqHi6ji6.js} +0 -0
- /package/dist/public/sdk/{capabilityKinds-D0Yrp9uf.js → capabilityKinds-CqHVzVsJ.js} +0 -0
- /package/dist/public/sdk/{ecdsaChainTarget-DkOrgv4y.js → ecdsaChainTarget-svSlzhze.js} +0 -0
- /package/dist/public/sdk/{errors-ADOZT8oV.js → errors-CI1xdN0d.js} +0 -0
- /package/dist/public/sdk/{executeWorkerOperation-DKCRRq5E.js → executeWorkerOperation-S6glYwAs.js} +0 -0
- /package/dist/public/sdk/{helpers-DS0bksx9.js → helpers-BXezXx19.js} +0 -0
- /package/dist/public/sdk/{intentDigest-Rh5Mg8X7.js → intentDigest--FZ63NBy.js} +0 -0
- /package/dist/public/sdk/{jsonRpc-BVDv1wfm.js → jsonRpc-B5zMY6lE.js} +0 -0
- /package/dist/public/sdk/{keccak-mS0Mejjx.js → keccak-CaPOCznk.js} +0 -0
- /package/dist/public/sdk/{normalization-C6fQN6mW.js → normalization-CpLZcL2f.js} +0 -0
- /package/dist/public/sdk/{prfCache-BAFh1skJ.js → prfCache-D25ZCg5n.js} +0 -0
- /package/dist/public/sdk/{profileAccountProjection-BNVJLOt2.js → profileAccountProjection-C1z9sKHa.js} +0 -0
- /package/dist/public/sdk/{promptText-CnyrLxgj.js → promptText-D2f5Rg0h.js} +0 -0
- /package/dist/public/sdk/{registrationAuthMethodInput-B23_HRil.js → registrationAuthMethodInput-DKz6Mgg4.js} +0 -0
- /package/dist/public/sdk/{sdkSentEvents-DujYAPEM.js → sdkSentEvents-BzMVO1AR.js} +0 -0
- /package/dist/public/sdk/{signer-worker-DlK58rEA.js → signer-worker-Bh_5foqX.js} +0 -0
- /package/dist/public/sdk/{signerDomain-BFqRQ0Jl.js → signerDomain-YEHkugWX.js} +0 -0
- /package/dist/public/sdk/{surface-measurement-reporter-BJhfiPw6.js → surface-measurement-reporter-F-fVB7d3.js} +0 -0
- /package/dist/public/sdk/{types-Buoe6179.js → types-BNUuaUtl.js} +0 -0
- /package/dist/public/sdk/{walletIframeIdentity-Cz82I_Uh.js → walletIframeIdentity-DJ0KOBHg.js} +0 -0
- /package/dist/public/sdk/{walletSessionAuthorizationProjection-DuU6w0FP.js → walletSessionAuthorizationProjection-UdGeS6x3.js} +0 -0
- /package/dist/public/sdk/{walletSessionFailure-C6TAQTZn.js → walletSessionFailure-Ct412mDZ.js} +0 -0
- /package/dist/public/sdk/{webauthnPromptCoordinator-9bVeHcTZ.js → webauthnPromptCoordinator-CBkTiMP0.js} +0 -0
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
6
|
<title>Web3Authn Wallet Service</title>
|
|
7
7
|
<!-- Surface styles are external so strict CSP can keep style-src 'self' -->
|
|
8
|
-
<link rel="stylesheet" href="/sdk/wallet-ui.css?v=0.
|
|
8
|
+
<link rel="stylesheet" href="/sdk/wallet-ui.css?v=0.21.0" />
|
|
9
9
|
<!-- Minimal shims some ESM bundles expect (externalized to enable strict CSP) -->
|
|
10
|
-
<script src="/sdk/wallet-shims.js?v=0.
|
|
10
|
+
<script src="/sdk/wallet-shims.js?v=0.21.0"></script>
|
|
11
11
|
<!-- Hint the browser to fetch the host script earlier -->
|
|
12
|
-
<link rel="modulepreload" href="/sdk/wallet-iframe-host-runtime.js?v=0.
|
|
12
|
+
<link rel="modulepreload" href="/sdk/wallet-iframe-host-runtime.js?v=0.21.0" crossorigin>
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
15
|
<!-- sdkBasePath points to the SDK root (e.g. '/sdk'). Load the host directly. -->
|
|
16
|
-
<script type="module" src="/sdk/wallet-iframe-host-runtime.js?v=0.
|
|
16
|
+
<script type="module" src="/sdk/wallet-iframe-host-runtime.js?v=0.21.0"></script>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DigestB64u } from '../utils/canonicalPrimitives';
|
|
2
|
-
export type WalletCustodyAdminOperation = 'credentials_list' | 'credential_label' | 'recovery_rotate' | 'recovery_read';
|
|
2
|
+
export type WalletCustodyAdminOperation = 'credentials_list' | 'credential_label' | 'recovery_rotate' | 'recovery_read' | 'recovery_status' | 'recovery_backup_acknowledge';
|
|
3
3
|
/** Public challenge digest for a single wallet-administration factor proof. */
|
|
4
4
|
export declare function computeWalletCustodyAdminChallengeDigest(input: {
|
|
5
5
|
readonly walletId: string;
|
|
@@ -429,13 +429,7 @@ export type LinkedOwnerCredentialMetadataV1 = {
|
|
|
429
429
|
} | {
|
|
430
430
|
readonly kind: 'email_otp';
|
|
431
431
|
readonly walletAuthMethodId: WalletAuthMethodId;
|
|
432
|
-
|
|
433
|
-
* The verified address behind this factor. The management projection is
|
|
434
|
-
* served only to an authenticated owner session, and the owner already
|
|
435
|
-
* knows the address they enrolled — this exists so the settings surface
|
|
436
|
-
* can name the factor. Local persistence keeps only the email hash.
|
|
437
|
-
*/
|
|
438
|
-
readonly email: VerifiedEmailAddress;
|
|
432
|
+
readonly email?: never;
|
|
439
433
|
readonly device?: never;
|
|
440
434
|
readonly credentialIdB64u?: never;
|
|
441
435
|
};
|
|
@@ -135,8 +135,10 @@ export type WalletCustodyRegistrationOutcome =
|
|
|
135
135
|
/** No custody payload rode this leg. Registration is unaffected. */
|
|
136
136
|
{
|
|
137
137
|
readonly status: 'not_requested';
|
|
138
|
+
readonly issuedAtMs?: never;
|
|
138
139
|
} | {
|
|
139
140
|
readonly status: 'committed';
|
|
141
|
+
readonly issuedAtMs: number;
|
|
140
142
|
}
|
|
141
143
|
/**
|
|
142
144
|
* A joining run: this key set's manifest digest, with no custody records
|
|
@@ -145,6 +147,7 @@ export type WalletCustodyRegistrationOutcome =
|
|
|
145
147
|
| {
|
|
146
148
|
readonly status: 'joined';
|
|
147
149
|
readonly keyManifestDigestB64u: string;
|
|
150
|
+
readonly issuedAtMs?: never;
|
|
148
151
|
}
|
|
149
152
|
/**
|
|
150
153
|
* Another ceremony established this wallet's custody first. The client must
|
|
@@ -152,11 +155,13 @@ export type WalletCustodyRegistrationOutcome =
|
|
|
152
155
|
*/
|
|
153
156
|
| {
|
|
154
157
|
readonly status: 'custody_already_established';
|
|
158
|
+
readonly issuedAtMs?: never;
|
|
155
159
|
}
|
|
156
160
|
/** The payload was refused. Nothing was written. */
|
|
157
161
|
| {
|
|
158
162
|
readonly status: 'rejected';
|
|
159
163
|
readonly reason: string;
|
|
164
|
+
readonly issuedAtMs?: never;
|
|
160
165
|
};
|
|
161
166
|
/**
|
|
162
167
|
* Reads a commit payload off the wire without judging it.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type EvmTransactionReceipt = {
|
|
2
|
-
transactionHash
|
|
2
|
+
transactionHash: string;
|
|
3
3
|
from?: string | null;
|
|
4
|
-
blockNumber
|
|
5
|
-
status
|
|
4
|
+
blockNumber: string;
|
|
5
|
+
status: string;
|
|
6
6
|
gasUsed?: string | null;
|
|
7
7
|
effectiveGasPrice?: string | null;
|
|
8
8
|
gasPrice?: string | null;
|
|
@@ -441,7 +441,7 @@ type RouterAbEcdsaOperationStepUpWebAuthnCredentialV1Wire = {
|
|
|
441
441
|
readonly signature: string;
|
|
442
442
|
readonly userHandle: string | null;
|
|
443
443
|
};
|
|
444
|
-
readonly clientExtensionResults:
|
|
444
|
+
readonly clientExtensionResults: null;
|
|
445
445
|
};
|
|
446
446
|
export type RouterAbEcdsaOperationStepUpPreparationV1Wire = {
|
|
447
447
|
readonly wallet_id: string;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type WalletCustodyFactorProof, type WalletRecoveryBackupAcknowledgementResult, type WalletRecoveryCodeStatusResult } from '../../../core/rpcClients/relayer/walletRecoveryRotate';
|
|
2
|
+
import type { RegistrationWebContext } from '../../signingSurface/types';
|
|
3
|
+
import type { WalletRecoveryFactorProofRequest } from '../../../core/signingEngine/walletCustody/walletRecoveryRotation';
|
|
4
|
+
type RecoveryAdminRequest = WalletRecoveryFactorProofRequest | {
|
|
5
|
+
readonly operation: 'recovery_backup_acknowledge';
|
|
6
|
+
readonly payload: {
|
|
7
|
+
readonly walletId: string;
|
|
8
|
+
readonly requestId: string;
|
|
9
|
+
readonly expectedIssuedAtMs: number;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare function readWalletRecoveryCodeStatusWithPasskey(args: {
|
|
13
|
+
readonly relayUrl: string;
|
|
14
|
+
readonly walletId: string;
|
|
15
|
+
readonly rpId: string;
|
|
16
|
+
}): Promise<WalletRecoveryCodeStatusResult>;
|
|
17
|
+
export declare function acknowledgeWalletRecoveryBackupWithPasskey(args: {
|
|
18
|
+
readonly relayUrl: string;
|
|
19
|
+
readonly walletId: string;
|
|
20
|
+
readonly rpId: string;
|
|
21
|
+
readonly expectedIssuedAtMs: number;
|
|
22
|
+
}): Promise<WalletRecoveryBackupAcknowledgementResult>;
|
|
23
|
+
export declare function selectedEmailOtpOwnerMethod(walletId: string): Promise<{
|
|
24
|
+
readonly walletAuthMethodId: string;
|
|
25
|
+
readonly providerSubjectId: string;
|
|
26
|
+
}>;
|
|
27
|
+
export declare function createWalletRecoveryAdminEmailOtpProof(args: {
|
|
28
|
+
readonly context: Pick<RegistrationWebContext, 'signingEngine'>;
|
|
29
|
+
readonly relayUrl: string;
|
|
30
|
+
readonly request: RecoveryAdminRequest;
|
|
31
|
+
}): Promise<Extract<WalletCustodyFactorProof, {
|
|
32
|
+
readonly kind: 'email_otp';
|
|
33
|
+
}>>;
|
|
34
|
+
export declare function readWalletRecoveryCodeStatusWithEmailOtp(args: {
|
|
35
|
+
readonly context: Pick<RegistrationWebContext, 'signingEngine'>;
|
|
36
|
+
readonly relayUrl: string;
|
|
37
|
+
readonly walletId: string;
|
|
38
|
+
}): Promise<WalletRecoveryCodeStatusResult>;
|
|
39
|
+
export declare function acknowledgeWalletRecoveryBackupWithEmailOtp(args: {
|
|
40
|
+
readonly context: Pick<RegistrationWebContext, 'signingEngine'>;
|
|
41
|
+
readonly relayUrl: string;
|
|
42
|
+
readonly walletId: string;
|
|
43
|
+
readonly expectedIssuedAtMs: number;
|
|
44
|
+
}): Promise<WalletRecoveryBackupAcknowledgementResult>;
|
|
45
|
+
export {};
|
|
46
|
+
//# sourceMappingURL=walletRecoveryAdminProof.d.ts.map
|
|
@@ -11,6 +11,9 @@ type RecoveryCodeBackupUiOptions = {
|
|
|
11
11
|
readonly shouldCancel?: () => boolean;
|
|
12
12
|
};
|
|
13
13
|
export declare function showWalletRecoveryCodeBackupUi(request: WalletRecoveryCodeBackupRequestV1, measurementBinding?: UiConfirmSurfaceMeasurementBinding): Promise<WalletRecoveryCodeBackupAcknowledgementV1>;
|
|
14
|
-
export declare function showWalletRecoveryCodesUi(request: WalletRecoveryCodesUiRequest, measurementBinding?: UiConfirmSurfaceMeasurementBinding, options?: RecoveryCodeBackupUiOptions): Promise<
|
|
14
|
+
export declare function showWalletRecoveryCodesUi(request: WalletRecoveryCodesUiRequest, measurementBinding?: UiConfirmSurfaceMeasurementBinding, options?: RecoveryCodeBackupUiOptions): Promise<{
|
|
15
|
+
readonly kind: 'wallet_recovery_codes_backed_up_v1';
|
|
16
|
+
readonly issuedAtMs: number;
|
|
17
|
+
}>;
|
|
15
18
|
export {};
|
|
16
19
|
//# sourceMappingURL=walletRecoveryCodeBackup.d.ts.map
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import type { RegistrationWebContext } from '../../signingSurface/types';
|
|
2
2
|
import { type WalletRecoveryRotationOutcome } from '../../../core/signingEngine/walletCustody/walletRecoveryRotation';
|
|
3
|
-
|
|
3
|
+
type NoParentRecoveryProof = {
|
|
4
|
+
readonly providerSubjectId?: never;
|
|
5
|
+
readonly statusProof?: never;
|
|
6
|
+
readonly rotationProof?: never;
|
|
7
|
+
readonly otpCode?: never;
|
|
8
|
+
readonly otp_code?: never;
|
|
9
|
+
};
|
|
10
|
+
export type WalletRecoveryRotationAuthorization = ({
|
|
4
11
|
readonly kind: 'existing_passkey';
|
|
5
|
-
} | {
|
|
12
|
+
} & NoParentRecoveryProof) | ({
|
|
6
13
|
readonly kind: 'email_otp';
|
|
7
|
-
|
|
8
|
-
readonly challengeId: string;
|
|
9
|
-
readonly challenge_digest: string;
|
|
10
|
-
readonly otpCode: string;
|
|
11
|
-
};
|
|
14
|
+
} & NoParentRecoveryProof);
|
|
12
15
|
export declare function rotateWalletRecoveryCodes(args: {
|
|
13
16
|
readonly context: RegistrationWebContext;
|
|
14
17
|
readonly relayUrl: string;
|
|
15
18
|
readonly walletId: string;
|
|
16
19
|
readonly authorization: WalletRecoveryRotationAuthorization;
|
|
17
20
|
}): Promise<WalletRecoveryRotationOutcome>;
|
|
21
|
+
export {};
|
|
18
22
|
//# sourceMappingURL=walletRecoveryRotation.d.ts.map
|
|
@@ -22,6 +22,7 @@ import type { AddEmailOtpHooksOptions, AddEmailOtpResult } from '../operations/a
|
|
|
22
22
|
import type { RevokeAuthMethodResult } from '../operations/authMethods/revokeAuthMethod';
|
|
23
23
|
import type { WalletRecoveryBackupAcknowledgementResult, WalletRecoveryCodeStatusResult, WalletCustodyEmailOtpChallengeResult } from '../../core/rpcClients/relayer/walletRecoveryRotate';
|
|
24
24
|
import type { WalletRecoveryRotationAuthorization } from '../operations/recovery/walletRecoveryRotation';
|
|
25
|
+
import type { WalletCustodyAdminOperation } from '../../../../shared-ts/src/authorization/walletCustodyOperation';
|
|
25
26
|
import type { WalletRecoveryRotationOutcome } from '../../core/signingEngine/walletCustody/walletRecoveryRotation';
|
|
26
27
|
import type { EvmAddress, EvmBytes, EvmSigningRequest } from '../../core/signingEngine/chains/evm/evmSigning.types';
|
|
27
28
|
import type { TempoSigningRequest } from '../../core/signingEngine/chains/tempo/tempoSigning.types';
|
|
@@ -657,6 +658,11 @@ export interface EvmSignerCapability {
|
|
|
657
658
|
/** Post-broadcast lifecycle reporting; `signAndSendTransaction` already drives it. */
|
|
658
659
|
readonly advanced: EvmFamilyAdvancedCapability;
|
|
659
660
|
}
|
|
661
|
+
export type WalletRecoveryOwnerFactor = {
|
|
662
|
+
readonly kind: 'passkey';
|
|
663
|
+
} | {
|
|
664
|
+
readonly kind: 'email_otp';
|
|
665
|
+
};
|
|
660
666
|
export interface RecoveryCapability {
|
|
661
667
|
syncAccount(args: {
|
|
662
668
|
walletId?: string;
|
|
@@ -664,14 +670,16 @@ export interface RecoveryCapability {
|
|
|
664
670
|
}): Promise<SyncAccountResult>;
|
|
665
671
|
getCodeStatus(args: {
|
|
666
672
|
walletId: string;
|
|
673
|
+
authorization: WalletRecoveryOwnerFactor;
|
|
667
674
|
}): Promise<WalletRecoveryCodeStatusResult>;
|
|
668
675
|
confirmBackup(args: {
|
|
669
676
|
walletId: string;
|
|
677
|
+
authorization: WalletRecoveryOwnerFactor;
|
|
670
678
|
}): Promise<WalletRecoveryBackupAcknowledgementResult>;
|
|
671
679
|
requestWalletCustodyEmailOtpChallenge(args: {
|
|
672
680
|
walletId: string;
|
|
673
681
|
providerSubjectId: string;
|
|
674
|
-
operation:
|
|
682
|
+
operation: WalletCustodyAdminOperation;
|
|
675
683
|
payload: Record<string, unknown>;
|
|
676
684
|
requestOrigin?: string;
|
|
677
685
|
}): Promise<WalletCustodyEmailOtpChallengeResult>;
|
|
@@ -14,7 +14,7 @@ import { establishEvmFamilyCustodyV1, joinEvmFamilyCustodyV1 } from '../../core/
|
|
|
14
14
|
import { type WalletSessionEd25519RecoveryBasisV1 } from '../../core/signingEngine/walletCustody/walletRecoveryEd25519';
|
|
15
15
|
import { recoverWalletCustodyManifestV1 } from '../../core/signingEngine/walletCustody/walletRecoveryManifest';
|
|
16
16
|
import { type LoadedWalletCustodyEd25519MaterialV1, type WalletCustodyEd25519MaterialBindingV1, type WalletCustodySealedEd25519MaterialV1 } from '../../core/signingEngine/walletCustody/ed25519SeedMaterial';
|
|
17
|
-
import type { EstablishWalletCustodyNearEd25519KeySetArgs, EstablishedWalletCustodyEvmFamilyKeySetV1, EstablishedWalletCustodyNearEd25519KeySetV1, JoinedWalletCustodyNearEd25519KeySetV1, JoinedWalletCustodyEvmFamilyKeySetV1, RejoinedWalletCustodyEvmFamilyKeySetV1 } from './ports';
|
|
17
|
+
import type { EstablishWalletCustodyNearEd25519KeySetArgs, EstablishedWalletCustodyEvmFamilyKeySetV1, EstablishedWalletCustodyNearEd25519KeySetV1, JoinedWalletCustodyNearEd25519KeySetV1, JoinedWalletCustodyEvmFamilyKeySetV1, RejoinedWalletCustodyEvmFamilyKeySetV1, EmailOtpOwnerConfirmationPurpose } from './ports';
|
|
18
18
|
import { type RouterAbEd25519YaoRegistrationAdmissionRequestV1 } from '../../../../shared-ts/src/utils/routerAbEd25519Yao';
|
|
19
19
|
import type { RouterAbTraceContextV1 } from '../../../../shared-ts/src/utils/routerAbTraceContext';
|
|
20
20
|
import type { SignerWorkerKind, SignerWorkerOperationRequest, SignerWorkerOperationResult, SignerWorkerOperationType, EmailOtpYaoPrewarmRequest, EmailOtpYaoPrewarmOutcome } from '../../core/signingEngine/workerManager/workerTypes';
|
|
@@ -401,7 +401,8 @@ export declare class BrowserSigningSurface {
|
|
|
401
401
|
* typed into the wallet's own surface and never passes through the host
|
|
402
402
|
* application — the reason `addEmail` takes an address and not a code.
|
|
403
403
|
*/
|
|
404
|
-
|
|
404
|
+
requestEmailOtpOwnerConfirmation(params: {
|
|
405
|
+
purpose: EmailOtpOwnerConfirmationPurpose;
|
|
405
406
|
walletId: string;
|
|
406
407
|
emailAddress: string;
|
|
407
408
|
challengeId: string;
|
|
@@ -411,7 +412,7 @@ export declare class BrowserSigningSurface {
|
|
|
411
412
|
body?: string;
|
|
412
413
|
};
|
|
413
414
|
confirmationConfigOverride?: Partial<ConfirmationConfig>;
|
|
414
|
-
onResend
|
|
415
|
+
onResend?: () => Promise<{
|
|
415
416
|
challengeId: string;
|
|
416
417
|
emailHint?: string;
|
|
417
418
|
}>;
|
|
@@ -459,8 +459,10 @@ export type AccountSyncSigningSurface = LocalLoginStateSurface & Ed25519YaoCapab
|
|
|
459
459
|
* any other: the wallet asks, the user types six digits into the wallet's own
|
|
460
460
|
* surface, and the code never passes through the host application.
|
|
461
461
|
*/
|
|
462
|
-
export
|
|
463
|
-
|
|
462
|
+
export type EmailOtpOwnerConfirmationPurpose = 'add_email_code' | 'add_passkey' | 'remove_auth_method' | 'move_wallet' | 'recovery_status' | 'recovery_unlock' | 'recovery_rotate' | 'recovery_backup_acknowledge';
|
|
463
|
+
export interface EmailOtpOwnerConfirmationSurface {
|
|
464
|
+
requestEmailOtpOwnerConfirmation(params: {
|
|
465
|
+
purpose: EmailOtpOwnerConfirmationPurpose;
|
|
464
466
|
walletId: string;
|
|
465
467
|
emailAddress: string;
|
|
466
468
|
challengeId: string;
|
|
@@ -470,7 +472,7 @@ export interface EmailOtpEnrollmentConfirmationSurface {
|
|
|
470
472
|
body?: string;
|
|
471
473
|
};
|
|
472
474
|
confirmationConfigOverride?: Partial<ConfirmationConfig>;
|
|
473
|
-
onResend
|
|
475
|
+
onResend?: () => Promise<{
|
|
474
476
|
challengeId: string;
|
|
475
477
|
emailHint?: string;
|
|
476
478
|
}>;
|
|
@@ -579,7 +581,7 @@ export interface KeyExportSigningSurface {
|
|
|
579
581
|
export interface EmailOtpRegistrationEnrollmentSurface {
|
|
580
582
|
prepareEmailOtpRegistrationEnrollmentMaterialInternal(args: PrepareEmailOtpRegistrationEnrollmentMaterialInternalArgs): Promise<PrepareEmailOtpRegistrationEnrollmentMaterialInternalResult>;
|
|
581
583
|
}
|
|
582
|
-
export type RegistrationSigningSurface = RpIdSurface & EcdsaLoginSessionSurface & WalletIframeSurfaceMeasurementSurface & Ed25519YaoCapabilityActivationSurface & UnlockedEd25519ExportRootCapabilitySurface & WalletCustodyCeremonySurface & Pick<WalletIframeWarmupSurface, 'warmCriticalResources'> & RegistrationResourceWarmupSurface & Pick<SigningSessionSurface, 'hydrateSigningSession' | 'prepareSigningSessionHydration' | 'readPreparedSigningSessionHydration' | 'discardSigningSessionHydration' | 'persistSigningSessionSealForThresholdSession'> & Pick<EmailOtpRegistrationEnrollmentSurface, 'prepareEmailOtpRegistrationEnrollmentMaterialInternal'> & SignerWorkerContextSurface & PasskeyLoginAssertionSurface & Pick<WalletAuthenticationSurface, 'setWalletAuthenticated'> & Pick<UserProfileStoreSurface, 'getUserBySignerSlot'> & Pick<RegistrationAccountSurface, 'storeWalletEd25519RegistrationData' | 'storeWalletEmailOtpEd25519RegistrationData'> & Pick<EcdsaRegistrationSurface, 'storeWalletEcdsaSignerRecords' | 'storeWalletEmailOtpEcdsaSignerRecords' | 'storeWalletEmailOtpEcdsaRegistrationData'> & WebAuthnRegistrationConfirmationSurface &
|
|
584
|
+
export type RegistrationSigningSurface = RpIdSurface & EcdsaLoginSessionSurface & WalletIframeSurfaceMeasurementSurface & Ed25519YaoCapabilityActivationSurface & UnlockedEd25519ExportRootCapabilitySurface & WalletCustodyCeremonySurface & Pick<WalletIframeWarmupSurface, 'warmCriticalResources'> & RegistrationResourceWarmupSurface & Pick<SigningSessionSurface, 'hydrateSigningSession' | 'prepareSigningSessionHydration' | 'readPreparedSigningSessionHydration' | 'discardSigningSessionHydration' | 'persistSigningSessionSealForThresholdSession'> & Pick<EmailOtpRegistrationEnrollmentSurface, 'prepareEmailOtpRegistrationEnrollmentMaterialInternal'> & SignerWorkerContextSurface & PasskeyLoginAssertionSurface & Pick<WalletAuthenticationSurface, 'setWalletAuthenticated'> & Pick<UserProfileStoreSurface, 'getUserBySignerSlot'> & Pick<RegistrationAccountSurface, 'storeWalletEd25519RegistrationData' | 'storeWalletEmailOtpEd25519RegistrationData'> & Pick<EcdsaRegistrationSurface, 'storeWalletEcdsaSignerRecords' | 'storeWalletEmailOtpEcdsaSignerRecords' | 'storeWalletEmailOtpEcdsaRegistrationData'> & WebAuthnRegistrationConfirmationSurface & EmailOtpOwnerConfirmationSurface & RegistrationAccountSurface & EcdsaRegistrationSurface;
|
|
583
585
|
export type SeamsWebBaseContext<TSigningEngine> = {
|
|
584
586
|
signingEngine: TSigningEngine;
|
|
585
587
|
nearClient: NearClient;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { AccountSyncSigningSurface, EcdsaLoginSessionSurface, EcdsaRegistrationSurface, WalletCustodyCeremonySurface, Ed25519YaoCapabilityActivationSurface, EcdsaSessionBootstrapSurface, EcdsaSessionControlSurface, Ed25519SessionConnectionSurface, Ed25519MaterialOwnerQueueSurface, EmailOtpRegistrationEnrollmentSurface, EmailOtpSigningSessionSurface, EvmFamilySigningSurface, KeyExportSigningSurface, NearSigningSurface, NonceCoordinatorSurface, PasskeyLoginAssertionSurface, RegistrationAccountSurface, RegistrationResourceWarmupSurface, RpIdSurface, RuntimeStartupSurface, SeamsWebBaseContext, SigningEngineLifecycleEventSurface, SignerWorkerContextSurface, SigningSessionSurface, TempoNonceLifecycleSurface, UserProfileStoreSurface, WarmSessionStatusSurface, WalletIframeWarmupSurface, WalletIframeSurfaceMeasurementSurface, WalletAuthenticationSurface, WalletLockGenerationSurface, UnlockedEd25519ExportRootCapabilitySurface, WebAuthnRegistrationConfirmationSurface,
|
|
1
|
+
import type { AccountSyncSigningSurface, EcdsaLoginSessionSurface, EcdsaRegistrationSurface, WalletCustodyCeremonySurface, Ed25519YaoCapabilityActivationSurface, EcdsaSessionBootstrapSurface, EcdsaSessionControlSurface, Ed25519SessionConnectionSurface, Ed25519MaterialOwnerQueueSurface, EmailOtpRegistrationEnrollmentSurface, EmailOtpSigningSessionSurface, EvmFamilySigningSurface, KeyExportSigningSurface, NearSigningSurface, NonceCoordinatorSurface, PasskeyLoginAssertionSurface, RegistrationAccountSurface, RegistrationResourceWarmupSurface, RpIdSurface, RuntimeStartupSurface, SeamsWebBaseContext, SigningEngineLifecycleEventSurface, SignerWorkerContextSurface, SigningSessionSurface, TempoNonceLifecycleSurface, UserProfileStoreSurface, WarmSessionStatusSurface, WalletIframeWarmupSurface, WalletIframeSurfaceMeasurementSurface, WalletAuthenticationSurface, WalletLockGenerationSurface, UnlockedEd25519ExportRootCapabilitySurface, WebAuthnRegistrationConfirmationSurface, EmailOtpOwnerConfirmationSurface } from './ports';
|
|
2
2
|
import type { UserPreferencesManager } from '../../core/signingEngine/session/userPreferences';
|
|
3
3
|
import type { UiConfirmSurfaceMeasurementBinding } from '../../core/signingEngine/uiConfirm/uiConfirm.types';
|
|
4
4
|
import type { AppearanceConfig, SeamsConfigsReadonly } from '../../core/types/seams';
|
|
5
5
|
import type { WorkerOperationContext } from '../../core/signingEngine/workerManager/executeWorkerOperation';
|
|
6
6
|
export type { AccountSyncSigningSurface, AccountSyncWebContext, WalletAuthWebContext, DeviceLinkingSigningSurface, DeviceLinkingWebContext, EcdsaLoginSessionSurface, EcdsaRegistrationSurface, Ed25519YaoCapabilityActivationSurface, EcdsaSessionBootstrapSurface, EcdsaSessionControlSurface, Ed25519SessionConnectionSurface, EmailOtpRegistrationEnrollmentSurface, EmailOtpSigningSessionSurface, WalletRecoverySigningSurface, WalletRecoveryWebContext, EvmFamilySigningSurface, LocalLoginStateSurface, LockSigningSurface, LoginUnlockSigningSurface, LoginWarmSigningSurface, LoginWebContext, NearSigningSurface, NearSigningWebContext, NonceCoordinatorSurface, PasskeyLoginAssertionSurface, RecentUnlocksSigningSurface, RecentUnlocksWebContext, RegistrationAccountSurface, RegistrationResourceWarmupSurface, RegistrationSigningSurface, RegistrationWebContext, RpIdSurface, RuntimeStartupSurface, SeamsWebBaseContext, SigningEngineLifecycleEventSurface, SignerWorkerContextSurface, SigningSessionSurface, TempoNonceLifecycleSurface, TempoSigningSurface, UnlockedEd25519ExportRootCapabilitySurface, UserAccountLookupSurface, UserProfileStoreSurface, WalletIframeWarmupSurface, WalletAuthenticationSurface, WalletSessionReadSurface, WalletSessionWebContext, WarmSessionStatusSurface, WebAuthnRegistrationConfirmationSurface, } from './ports';
|
|
7
7
|
export type * from '../publicApi/types';
|
|
8
|
-
export interface SeamsWebSigningSurface extends RpIdSurface, NonceCoordinatorSurface, WalletIframeWarmupSurface, WalletIframeSurfaceMeasurementSurface, WalletAuthenticationSurface, WalletLockGenerationSurface, RuntimeStartupSurface, SigningEngineLifecycleEventSurface, WorkerOperationContext, SigningSessionSurface, Ed25519SessionConnectionSurface, EcdsaSessionBootstrapSurface, EmailOtpSigningSessionSurface, EmailOtpRegistrationEnrollmentSurface, EcdsaLoginSessionSurface, EcdsaSessionControlSurface, SignerWorkerContextSurface, WarmSessionStatusSurface, NearSigningSurface, EvmFamilySigningSurface, TempoNonceLifecycleSurface, UserProfileStoreSurface, RegistrationResourceWarmupSurface, RegistrationAccountSurface, EcdsaRegistrationSurface, Ed25519YaoCapabilityActivationSurface, UnlockedEd25519ExportRootCapabilitySurface, WalletCustodyCeremonySurface, Ed25519MaterialOwnerQueueSurface, Pick<AccountSyncSigningSurface, 'storeNearThresholdKeyMaterial'>, WebAuthnRegistrationConfirmationSurface,
|
|
8
|
+
export interface SeamsWebSigningSurface extends RpIdSurface, NonceCoordinatorSurface, WalletIframeWarmupSurface, WalletIframeSurfaceMeasurementSurface, WalletAuthenticationSurface, WalletLockGenerationSurface, RuntimeStartupSurface, SigningEngineLifecycleEventSurface, WorkerOperationContext, SigningSessionSurface, Ed25519SessionConnectionSurface, EcdsaSessionBootstrapSurface, EmailOtpSigningSessionSurface, EmailOtpRegistrationEnrollmentSurface, EcdsaLoginSessionSurface, EcdsaSessionControlSurface, SignerWorkerContextSurface, WarmSessionStatusSurface, NearSigningSurface, EvmFamilySigningSurface, TempoNonceLifecycleSurface, UserProfileStoreSurface, RegistrationResourceWarmupSurface, RegistrationAccountSurface, EcdsaRegistrationSurface, Ed25519YaoCapabilityActivationSurface, UnlockedEd25519ExportRootCapabilitySurface, WalletCustodyCeremonySurface, Ed25519MaterialOwnerQueueSurface, Pick<AccountSyncSigningSurface, 'storeNearThresholdKeyMaterial'>, WebAuthnRegistrationConfirmationSurface, EmailOtpOwnerConfirmationSurface, PasskeyLoginAssertionSurface, KeyExportSigningSurface {
|
|
9
9
|
readonly seamsWebConfigs: SeamsConfigsReadonly;
|
|
10
10
|
dispose(): void;
|
|
11
11
|
setAppearance(appearance: AppearanceConfig): void;
|
|
@@ -245,12 +245,8 @@ export declare class WalletIframeRouter {
|
|
|
245
245
|
requestEmailCode(payload: Parameters<AuthCapability['requestEmailCode']>[0]): ReturnType<AuthCapability['requestEmailCode']>;
|
|
246
246
|
private googleEmailOtpWalletAuthFlowFromWire;
|
|
247
247
|
startGoogleSignIn(payload: GoogleEmailOtpWalletAuthStartInput): Promise<GoogleEmailOtpWalletAuthResult<GoogleEmailOtpWalletAuthFlow>>;
|
|
248
|
-
getCodeStatus(payload:
|
|
249
|
-
|
|
250
|
-
}): Promise<WalletRecoveryCodeStatusResult>;
|
|
251
|
-
confirmBackup(payload: {
|
|
252
|
-
walletId: string;
|
|
253
|
-
}): Promise<WalletRecoveryBackupAcknowledgementResult>;
|
|
248
|
+
getCodeStatus(payload: Parameters<RecoveryCapability['getCodeStatus']>[0]): Promise<WalletRecoveryCodeStatusResult>;
|
|
249
|
+
confirmBackup(payload: Parameters<RecoveryCapability['confirmBackup']>[0]): Promise<WalletRecoveryBackupAcknowledgementResult>;
|
|
254
250
|
requestWalletCustodyEmailOtpChallenge(payload: {
|
|
255
251
|
walletId: string;
|
|
256
252
|
providerSubjectId: string;
|
|
@@ -74,6 +74,7 @@ export declare class WalletHostRuntime {
|
|
|
74
74
|
private syncAccountDomain;
|
|
75
75
|
private onNearAccountChange;
|
|
76
76
|
private getCodeStatusDomain;
|
|
77
|
+
private preloadedCodeStatusDomain;
|
|
77
78
|
private confirmBackupDomain;
|
|
78
79
|
private loadPendingWalletRecoveryCodeBackupRequest;
|
|
79
80
|
private requestWalletCustodyEmailOtpChallengeDomain;
|
|
@@ -4,7 +4,7 @@ import type { BrowserSigningSurface } from '../../signingSurface/BrowserSigningS
|
|
|
4
4
|
import { type WalletHostManagementRequestV1 } from '../../operations/devices/walletHostOwnerAuthority';
|
|
5
5
|
type Context = WalletPlacementSession & {
|
|
6
6
|
readonly managementRequest: WalletHostManagementRequestV1;
|
|
7
|
-
readonly signingEngine: Pick<BrowserSigningSurface, 'getAuthenticationCredentialsSerialized' | '
|
|
7
|
+
readonly signingEngine: Pick<BrowserSigningSurface, 'getAuthenticationCredentialsSerialized' | 'requestEmailOtpOwnerConfirmation'>;
|
|
8
8
|
};
|
|
9
9
|
export declare function requestWalletMove(host: Context, raw: WalletMoveRequest): Promise<WalletMoveStatusResult>;
|
|
10
10
|
export {};
|
|
@@ -510,6 +510,10 @@ type PMEmailOtpChallengePayload = Omit<Extract<RequestEmailCodeInput, {
|
|
|
510
510
|
}>, 'onEvent'> | Omit<Extract<RequestEmailCodeInput, {
|
|
511
511
|
method: 'email';
|
|
512
512
|
}>, 'onEvent'>;
|
|
513
|
+
interface PMWalletRecoveryOwnerPayload {
|
|
514
|
+
walletId: string;
|
|
515
|
+
authorization: import('../../publicApi/types').WalletRecoveryOwnerFactor;
|
|
516
|
+
}
|
|
513
517
|
interface PMWalletRecoverySessionPayload {
|
|
514
518
|
walletId: string;
|
|
515
519
|
}
|
|
@@ -620,7 +624,7 @@ export type ParentToChildEnvelope = RpcEnvelope<'PM_ACTIVATE_TRANSACTION_REVIEW'
|
|
|
620
624
|
readonly moveId: string;
|
|
621
625
|
}> | RpcEnvelope<'PM_GET_WALLET_PLACEMENT', {
|
|
622
626
|
readonly walletId: string;
|
|
623
|
-
}> | RpcEnvelope<'PM_GET_WALLET_SESSION', PMGetWalletSessionPayload> | RpcEnvelope<'PM_GET_EXACT_WALLET_SESSION_STATE', PMGetExactWalletSessionStatePayload> | RpcEnvelope<'PM_GET_NEAR_PROVISIONING_STATE', PMGetNearProvisioningStatePayload> | RpcEnvelope<'PM_REQUEST_EMAIL_OTP_CHALLENGE', PMEmailOtpChallengePayload> | RpcEnvelope<'PM_BEGIN_GOOGLE_EMAIL_OTP_WALLET_AUTH', PMGoogleEmailOtpWalletAuthStartPayload> | RpcEnvelope<'PM_GOOGLE_EMAIL_OTP_WALLET_AUTH_RESEND', PMGoogleEmailOtpWalletAuthHandlePayload> | RpcEnvelope<'PM_GOOGLE_EMAIL_OTP_WALLET_AUTH_REROLL_WALLET_ID', PMGoogleEmailOtpWalletAuthHandlePayload> | RpcEnvelope<'PM_GOOGLE_EMAIL_OTP_WALLET_AUTH_SUBMIT', PMGoogleEmailOtpWalletAuthSubmitPayload> | RpcEnvelope<'PM_GOOGLE_EMAIL_OTP_WALLET_AUTH_COMPLETE_REGISTRATION', PMGoogleEmailOtpWalletAuthHandlePayload> | RpcEnvelope<'PM_GOOGLE_EMAIL_OTP_WALLET_AUTH_CANCEL', PMGoogleEmailOtpWalletAuthHandlePayload> | RpcEnvelope<'PM_GET_WALLET_RECOVERY_CODE_STATUS',
|
|
627
|
+
}> | RpcEnvelope<'PM_GET_WALLET_SESSION', PMGetWalletSessionPayload> | RpcEnvelope<'PM_GET_EXACT_WALLET_SESSION_STATE', PMGetExactWalletSessionStatePayload> | RpcEnvelope<'PM_GET_NEAR_PROVISIONING_STATE', PMGetNearProvisioningStatePayload> | RpcEnvelope<'PM_REQUEST_EMAIL_OTP_CHALLENGE', PMEmailOtpChallengePayload> | RpcEnvelope<'PM_BEGIN_GOOGLE_EMAIL_OTP_WALLET_AUTH', PMGoogleEmailOtpWalletAuthStartPayload> | RpcEnvelope<'PM_GOOGLE_EMAIL_OTP_WALLET_AUTH_RESEND', PMGoogleEmailOtpWalletAuthHandlePayload> | RpcEnvelope<'PM_GOOGLE_EMAIL_OTP_WALLET_AUTH_REROLL_WALLET_ID', PMGoogleEmailOtpWalletAuthHandlePayload> | RpcEnvelope<'PM_GOOGLE_EMAIL_OTP_WALLET_AUTH_SUBMIT', PMGoogleEmailOtpWalletAuthSubmitPayload> | RpcEnvelope<'PM_GOOGLE_EMAIL_OTP_WALLET_AUTH_COMPLETE_REGISTRATION', PMGoogleEmailOtpWalletAuthHandlePayload> | RpcEnvelope<'PM_GOOGLE_EMAIL_OTP_WALLET_AUTH_CANCEL', PMGoogleEmailOtpWalletAuthHandlePayload> | RpcEnvelope<'PM_GET_WALLET_RECOVERY_CODE_STATUS', PMWalletRecoveryOwnerPayload> | RpcEnvelope<'PM_ACKNOWLEDGE_WALLET_RECOVERY_CODE_BACKUP', PMWalletRecoveryOwnerPayload> | RpcEnvelope<'PM_ROTATE_WALLET_RECOVERY_CODES', PMRotateWalletRecoveryCodesPayload> | RpcEnvelope<'PM_REQUEST_WALLET_CUSTODY_EMAIL_OTP_CHALLENGE', PMRequestWalletCustodyEmailOtpChallengePayload> | RpcEnvelope<'PM_SIGN_TX_WITH_ACTIONS', PMSignTxPayload> | ReviewedTransactionEnvelope<RpcEnvelope<'PM_SIGN_AND_SEND_TX', PMSignAndSendTxPayload>> | RpcEnvelope<'PM_SEND_TRANSACTION', PMSendTxPayload> | RpcEnvelope<'PM_SIGN_DELEGATE_ACTION', PMSignDelegateActionPayload> | RpcEnvelope<'PM_SIGN_NEP413', PMSignNep413Payload> | ReviewedTransactionEnvelope<RpcEnvelope<'PM_SIGN_TEMPO', PMSignTempoPayload>> | RpcEnvelope<'PM_REPORT_TEMPO_BROADCAST_ACCEPTED', PMReportTempoBroadcastAcceptedPayload> | RpcEnvelope<'PM_REPORT_TEMPO_BROADCAST_REJECTED', PMReportTempoBroadcastRejectedPayload> | RpcEnvelope<'PM_REPORT_TEMPO_FINALIZED', PMReportTempoFinalizedPayload> | RpcEnvelope<'PM_REPORT_TEMPO_DROPPED_OR_REPLACED', PMReportTempoDroppedOrReplacedPayload> | RpcEnvelope<'PM_RECONCILE_TEMPO_NONCE_LANE', PMReconcileTempoNonceLanePayload> | RpcEnvelope<'PM_RESOLVE_EXACT_KEY_EXPORT_LANE', PMResolveExactKeyExportLanePayload> | RpcEnvelope<'PM_EXPORT_KEYPAIR_UI', PMExportKeypairUiPayload> | RpcEnvelope<'PM_GET_RECENT_UNLOCKS'> | RpcEnvelope<'PM_SET_CONFIRM_BEHAVIOR', PMSetConfirmBehaviorPayload> | RpcEnvelope<'PM_SET_CONFIRMATION_CONFIG', PMSetConfirmationConfigPayload> | RpcEnvelope<'PM_GET_CONFIRMATION_CONFIG'> | RpcEnvelope<'PM_HAS_PASSKEY', PMHasPasskeyPayload> | RpcEnvelope<'PM_LIST_LINKED_DEVICES', PMListLinkedDevicesPayload> | RpcEnvelope<'PM_REVOKE_LINKED_DEVICE', PMRevokeLinkedDevicePayload> | RpcEnvelope<'PM_SCAN_AND_LINK_DEVICE', {
|
|
624
628
|
qrData: QrLinkedDeviceSessionPayloadV5;
|
|
625
629
|
options?: {
|
|
626
630
|
confirmationConfig?: Partial<ConfirmationConfig>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WalletRecoveryOwnerFactor } from '../../publicApi/types';
|
|
2
|
+
export declare function parseWalletRecoveryRequest(value: unknown): {
|
|
3
|
+
readonly walletId: string;
|
|
4
|
+
readonly authorization: WalletRecoveryOwnerFactor;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=recoveryAuthorization.d.ts.map
|
package/dist/types/wallet/src/core/indexedDB/seamsWalletDB/pendingWalletRecoveryCodeBackup.d.ts
CHANGED
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
import { type WalletRecoveryCodeSet } from '../../../../../shared-ts/src/wallet-recovery';
|
|
2
2
|
type PendingWalletRecoveryCodeBackup = {
|
|
3
|
+
readonly kind: 'awaiting_commit';
|
|
3
4
|
readonly walletId: string;
|
|
4
5
|
readonly recoveryCodes: WalletRecoveryCodeSet;
|
|
6
|
+
readonly issuedAtMs?: never;
|
|
7
|
+
} | {
|
|
8
|
+
readonly kind: 'ready';
|
|
9
|
+
readonly walletId: string;
|
|
10
|
+
readonly recoveryCodes: WalletRecoveryCodeSet;
|
|
11
|
+
readonly issuedAtMs: number;
|
|
12
|
+
};
|
|
13
|
+
export type PendingWalletRecoveryBackupRef = {
|
|
14
|
+
readonly walletId: string;
|
|
15
|
+
readonly pendingBackupId: string;
|
|
5
16
|
};
|
|
6
17
|
declare class PendingWalletRecoveryCodeBackupRepository {
|
|
7
18
|
write(input: {
|
|
8
19
|
readonly walletId: string;
|
|
9
20
|
readonly recoveryCodes: readonly string[];
|
|
10
|
-
|
|
11
|
-
}): Promise<void>;
|
|
21
|
+
}): Promise<PendingWalletRecoveryBackupRef>;
|
|
12
22
|
read(walletIdInput: string): Promise<PendingWalletRecoveryCodeBackup | null>;
|
|
13
23
|
has(walletId: string): Promise<boolean>;
|
|
14
|
-
|
|
24
|
+
bindIssuedAtMs(ref: PendingWalletRecoveryBackupRef, serverIssuedAtMs: number): Promise<void>;
|
|
25
|
+
deleteIssuedAtMs(walletIdInput: string, issuedAtMs: number): Promise<void>;
|
|
15
26
|
}
|
|
16
27
|
export declare const pendingWalletRecoveryCodeBackupRepository: PendingWalletRecoveryCodeBackupRepository;
|
|
17
28
|
export {};
|
|
@@ -59,12 +59,17 @@ export type WalletRecoveryCodeStatusResult = {
|
|
|
59
59
|
export declare function readWalletRecoveryCodeStatus(args: {
|
|
60
60
|
readonly relayUrl: string;
|
|
61
61
|
readonly walletId: string;
|
|
62
|
+
readonly requestId: string;
|
|
63
|
+
readonly factorProof: WalletCustodyFactorProof;
|
|
62
64
|
readonly fetchImpl?: typeof fetch;
|
|
63
65
|
}): Promise<WalletRecoveryCodeStatusResult>;
|
|
64
66
|
export type WalletRecoveryBackupAcknowledgementResult = {
|
|
65
67
|
readonly kind: 'acknowledged';
|
|
66
68
|
readonly walletId: string;
|
|
67
69
|
readonly issuedAtMs: number;
|
|
70
|
+
} | {
|
|
71
|
+
readonly kind: 'conflict';
|
|
72
|
+
readonly message: string;
|
|
68
73
|
} | {
|
|
69
74
|
readonly kind: 'no_recovery_set';
|
|
70
75
|
readonly message: string;
|
|
@@ -78,6 +83,9 @@ export type WalletRecoveryBackupAcknowledgementResult = {
|
|
|
78
83
|
export declare function acknowledgeWalletRecoveryBackup(args: {
|
|
79
84
|
readonly relayUrl: string;
|
|
80
85
|
readonly walletId: string;
|
|
86
|
+
readonly requestId: string;
|
|
87
|
+
readonly expectedIssuedAtMs: number;
|
|
88
|
+
readonly factorProof: WalletCustodyFactorProof;
|
|
81
89
|
readonly fetchImpl?: typeof fetch;
|
|
82
90
|
}): Promise<WalletRecoveryBackupAcknowledgementResult>;
|
|
83
91
|
export type WalletRecoverySetRotateResult = {
|
package/dist/types/wallet/src/core/signingEngine/uiConfirm/ui/preact/RecoveryCodeBackupSurface.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type RecoveryBackupCloseDetail = {
|
|
|
16
16
|
} | {
|
|
17
17
|
readonly kind: 'recovery_codes';
|
|
18
18
|
readonly acknowledged: boolean;
|
|
19
|
+
readonly request: WalletRecoveryCodeBackupRequestV1;
|
|
19
20
|
};
|
|
20
21
|
export type RecoveryBackupStage = 'summary' | 'opening' | 'recovery_codes';
|
|
21
22
|
type SummaryLoadState = {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type WalletRecoverySetRotationWorkerResultV1 } from '../../../../../shared-ts/src/wallet-recovery/walletRecoveryRotation';
|
|
2
2
|
import type { PasskeyCustodyEnvelopeRecord } from '../../../../../shared-ts/src/passkey-custody';
|
|
3
|
+
import type { WalletRecoverySetRotationWireV1 } from '../../../../../shared-ts/src/wallet-recovery/walletRecoveryEnvelopeSet';
|
|
3
4
|
import { type WalletCustodyFactorProof, type WalletRecoverySetRotateResult } from '../../rpcClients/relayer/walletRecoveryRotate';
|
|
4
5
|
type WalletRecoveryRotationWorker = {
|
|
5
6
|
rotateRecoverySet(args: {
|
|
@@ -8,10 +9,26 @@ type WalletRecoveryRotationWorker = {
|
|
|
8
9
|
readonly recoveryCodesJson: string;
|
|
9
10
|
}): Promise<WalletRecoverySetRotationWorkerResultV1>;
|
|
10
11
|
};
|
|
11
|
-
export type
|
|
12
|
+
export type WalletRecoveryFactorProofRequest = {
|
|
13
|
+
readonly operation: 'recovery_status';
|
|
14
|
+
readonly payload: {
|
|
15
|
+
readonly walletId: string;
|
|
16
|
+
readonly requestId: string;
|
|
17
|
+
};
|
|
18
|
+
} | {
|
|
12
19
|
readonly operation: 'recovery_rotate';
|
|
13
|
-
readonly payload:
|
|
14
|
-
|
|
20
|
+
readonly payload: {
|
|
21
|
+
readonly walletId: string;
|
|
22
|
+
readonly expectedStoreVersion: string;
|
|
23
|
+
readonly manifestKekWraps: WalletRecoverySetRotationWireV1['manifestKekWraps'];
|
|
24
|
+
readonly entries: readonly WalletRecoverySetRotationWireV1['entry'][];
|
|
25
|
+
readonly recoveryCodeLocators: readonly {
|
|
26
|
+
readonly locatorB64u: string;
|
|
27
|
+
readonly recoveryKeyId: string;
|
|
28
|
+
}[];
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type WalletRecoveryFactorProofFactory = (request: WalletRecoveryFactorProofRequest) => Promise<WalletCustodyFactorProof>;
|
|
15
32
|
type EmailOtpWalletRecoveryRotationWorker = {
|
|
16
33
|
rotateRecoverySet(args: {
|
|
17
34
|
readonly recoveryCodesJson: string;
|
|
@@ -36,6 +53,7 @@ export declare function rotateWalletRecoverySetWithActiveFactorV1(input: {
|
|
|
36
53
|
readonly relayUrl: string;
|
|
37
54
|
readonly walletId: string;
|
|
38
55
|
readonly factorProof: WalletRecoveryFactorProofFactory;
|
|
56
|
+
readonly statusRequestId: string;
|
|
39
57
|
readonly custodyEnvelope: PasskeyCustodyEnvelopeRecord;
|
|
40
58
|
readonly factorSecret: ArrayBuffer;
|
|
41
59
|
readonly worker: WalletRecoveryRotationWorker;
|
|
@@ -45,6 +63,7 @@ export declare function rotateWalletRecoverySetWithEmailOtpV1(input: {
|
|
|
45
63
|
readonly relayUrl: string;
|
|
46
64
|
readonly walletId: string;
|
|
47
65
|
readonly factorProof: WalletRecoveryFactorProofFactory;
|
|
66
|
+
readonly statusRequestId: string;
|
|
48
67
|
readonly worker: EmailOtpWalletRecoveryRotationWorker;
|
|
49
68
|
readonly fetchImpl?: typeof fetch;
|
|
50
69
|
}): Promise<WalletRecoveryRotationOutcome>;
|
package/dist/types/wallet/src/core/signingEngine/workerManager/workers/email-otp/unlock.d.ts
CHANGED
|
@@ -107,6 +107,7 @@ export declare function loginWithEmailOtpAndUnlockWallet(args: {
|
|
|
107
107
|
export type EmailOtpWalletCustodySeedUnlock = {
|
|
108
108
|
readonly relayUrl: string;
|
|
109
109
|
readonly walletId: string;
|
|
110
|
+
readonly walletAuthMethodId: string;
|
|
110
111
|
readonly userId: string;
|
|
111
112
|
readonly groupId: string;
|
|
112
113
|
readonly routePlan: EmailOtpRoutePlan;
|
|
@@ -280,12 +280,18 @@ export interface AfterCall<T> {
|
|
|
280
280
|
(success: true, result: T): void | Promise<void>;
|
|
281
281
|
(success: false, result?: undefined, error?: Error): void | Promise<void>;
|
|
282
282
|
}
|
|
283
|
-
|
|
283
|
+
type WalletRecoveryCodeBackupRequestBaseV1 = {
|
|
284
284
|
readonly kind: 'wallet_recovery_code_backup_request_v1';
|
|
285
285
|
readonly walletId: string;
|
|
286
286
|
readonly recoveryCodes: readonly string[];
|
|
287
|
-
readonly continuation: 'registration_may_defer' | 'pending_backup_must_finish';
|
|
288
287
|
};
|
|
288
|
+
export type WalletRecoveryCodeBackupRequestV1 = WalletRecoveryCodeBackupRequestBaseV1 & ({
|
|
289
|
+
readonly continuation: 'registration_may_defer';
|
|
290
|
+
readonly issuedAtMs?: never;
|
|
291
|
+
} | {
|
|
292
|
+
readonly continuation: 'pending_backup_must_finish';
|
|
293
|
+
readonly issuedAtMs: number;
|
|
294
|
+
});
|
|
289
295
|
export type WalletRecoveryCodeBackupAcknowledgementV1 = {
|
|
290
296
|
readonly kind: 'wallet_recovery_codes_backed_up_v1';
|
|
291
297
|
} | {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type WalletHostVariant } from '../core/browser/walletIframe/hostVariant';
|
|
2
|
-
export declare function buildWalletServiceHtml(sdkBasePath?: string, assetVersion?: string, walletHostVariant?: WalletHostVariant): string;
|
|
2
|
+
export declare function buildWalletServiceHtml(sdkBasePath?: string, assetVersion?: string, walletHostVariant?: WalletHostVariant, approvedRelayerOrigins?: readonly string[]): string;
|
|
3
3
|
//# sourceMappingURL=plugin-utils.d.ts.map
|
|
@@ -11206,7 +11206,10 @@ async function unlockEmailOtpWalletCustodySeed(args, missingMaterialMessage) {
|
|
|
11206
11206
|
const recovered = await loginWithEmailOtpAndUnlockWallet({
|
|
11207
11207
|
relayUrl: args.relayUrl,
|
|
11208
11208
|
walletId: args.walletId,
|
|
11209
|
-
authoritySelector: {
|
|
11209
|
+
authoritySelector: {
|
|
11210
|
+
kind: "wallet_auth_method",
|
|
11211
|
+
walletAuthMethodId: args.walletAuthMethodId
|
|
11212
|
+
},
|
|
11210
11213
|
userId: args.userId,
|
|
11211
11214
|
groupId: args.groupId,
|
|
11212
11215
|
routePlan: args.routePlan,
|
|
@@ -12430,6 +12433,7 @@ function parseEmailOtpWalletUnlockVerification(value) {
|
|
|
12430
12433
|
var EMAIL_OTP_CUSTODY_SEED_UNLOCK_FIELDS = [
|
|
12431
12434
|
"relayUrl",
|
|
12432
12435
|
"walletId",
|
|
12436
|
+
"walletAuthMethodId",
|
|
12433
12437
|
"userId",
|
|
12434
12438
|
"groupId",
|
|
12435
12439
|
"routePlan",
|
|
@@ -12452,6 +12456,7 @@ function parseEmailOtpWalletCustodySeedUnlock(payload, type, missingOtpMessage)
|
|
|
12452
12456
|
return {
|
|
12453
12457
|
relayUrl: readString(payload.relayUrl, "relayUrl"),
|
|
12454
12458
|
walletId: readString(payload.walletId, "walletId"),
|
|
12459
|
+
walletAuthMethodId: readString(payload.walletAuthMethodId, "walletAuthMethodId"),
|
|
12455
12460
|
userId: readString(payload.userId, "userId"),
|
|
12456
12461
|
groupId: readString(payload.groupId, "groupId"),
|
|
12457
12462
|
routePlan: readRoutePlan(payload.routePlan, type),
|