@seams/wallet 0.27.0 → 0.29.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/README.md +29 -4
- package/dist/.build-inputs.sha256 +1 -1
- package/dist/esm/SeamsWeb/publicApi/createPublicApi.js +11 -0
- package/dist/esm/SeamsWeb/publicApi/near.js +3 -0
- package/dist/esm/SeamsWeb/publicApi/ownerNearOperation.js +175 -0
- package/dist/esm/SeamsWeb/walletIframe/client/nearCommands.js +4 -0
- package/dist/esm/SeamsWeb/walletIframe/client/ownerNearOperation.js +67 -0
- package/dist/esm/SeamsWeb/walletIframe/client/progress/on-events-progress-bus.js +27 -17
- package/dist/esm/SeamsWeb/walletIframe/client/router.js +63 -2
- package/dist/esm/SeamsWeb/walletIframe/client/sessionCommands.js +20 -0
- package/dist/esm/SeamsWeb/walletIframe/host/walletMutationGuard.js +6 -0
- package/dist/esm/SeamsWeb/walletIframe/shared/exactSessionState.js +42 -5
- package/dist/esm/SeamsWeb/walletIframe/shared/messages.js +1 -1
- package/dist/esm/SeamsWeb/walletIframe/shared/ownerNearOperation.js +152 -0
- package/dist/esm/core/accountData/near/accountProjection.js +1 -1
- package/dist/esm/core/authMethods/plugins.js +8 -2
- package/dist/esm/core/indexedDB/seamsWalletDB/repositories.js +4 -3
- package/dist/esm/core/rpcClients/relayer/walletRegistration.js +1 -1
- package/dist/esm/core/signingEngine/flows/registration/accountLifecycle.js +1 -1
- package/dist/esm/core/signingEngine/flows/shared/signingConfirmation.js +1 -1
- package/dist/esm/core/signingEngine/flows/signEvmFamily/signEvmFamily.js +1 -1
- package/dist/esm/core/signingEngine/flows/signEvmFamily/signingFlow.js +1 -1
- package/dist/esm/core/signingEngine/flows/signNear/shared/ed25519YaoNormalSigning.js +2 -2
- package/dist/esm/core/signingEngine/flows/signNear/signDelegate.js +2 -2
- package/dist/esm/core/signingEngine/flows/signNear/signNear.js +3 -8
- package/dist/esm/core/signingEngine/flows/signNear/signNep413.js +1 -1
- package/dist/esm/core/signingEngine/flows/signNear/signTransactions.js +3 -4
- package/dist/esm/core/signingEngine/session/identity/exactSigningLaneIdentity.js +1 -1
- package/dist/esm/core/ui/messages.js +5 -0
- package/dist/esm/index.js +3 -2
- package/dist/esm/react/boundWallet.js +24 -0
- package/dist/esm/react/components/AccountMenuButton/AccountMenuButtonView.js +35 -22
- package/dist/esm/react/components/AccountMenuButton/AccountSettingsDialog.js +157 -0
- package/dist/esm/react/components/AccountMenuButton/AuthenticationMethodsModal.js +13 -1
- package/dist/esm/react/components/AccountMenuButton/ExternalWalletSettings.js +46 -0
- package/dist/esm/react/components/AccountMenuButton/LinkedDevicesModal.js +14 -2
- package/dist/esm/react/components/AccountMenuButton/WalletSettingsLayout.js +1 -1
- package/dist/esm/react/components/AccountMenuButton/Web3AuthProfileButton.css +154 -5
- package/dist/esm/react/components/AccountMenuButton/index.js +7 -3
- package/dist/esm/react/context/reactLoginStateBuilders.js +20 -0
- package/dist/esm/react/context/useLoginStateRefresher.js +1 -0
- package/dist/esm/react/hooks/useAccountInput.js +1 -1
- package/dist/esm/react/hooks/useOwnerNearOperation.js +10 -0
- package/dist/esm/react/index.js +3 -2
- package/dist/esm/react/styles/styles.css +154 -5
- package/dist/esm/sdk/{ConfirmationDrawer-AZruQmhP.js → ConfirmationDrawer-BRnd5SEf.js} +1 -1
- package/dist/esm/sdk/NonceCoordinator-CNXYrOoy.js +1 -0
- package/dist/{public/sdk/SeamsWordmark-DwvPx2UA.js → esm/sdk/SeamsWordmark-CeEi2RlU.js} +1 -1
- package/dist/esm/sdk/accountLifecycle-B5a9SCM7.js +1 -0
- package/dist/esm/sdk/{adapters-d9yh1bdC.js → adapters-B2k8y0MB.js} +1 -1
- package/dist/esm/sdk/appearance-token-vars-DkF3EBbF.js +1 -0
- package/dist/esm/sdk/authorization-gVWwKwav.js +1 -0
- package/dist/esm/sdk/clientSessionPersistenceState-BxpITYM_.js +1 -0
- package/dist/esm/sdk/{collectAuthenticationCredentialForChallengeB64u-I4wq8OGq.js → collectAuthenticationCredentialForChallengeB64u-BoFVpdRS.js} +1 -1
- package/dist/esm/sdk/{commitQueue-CYruPlkm.js → commitQueue-C1wkey4q.js} +1 -1
- package/dist/esm/sdk/configBuilder-DpChXfDO.js +1 -0
- package/dist/esm/sdk/{configuration-DBEc3bsj.js → configuration-BAad7ngq.js} +1 -1
- package/dist/esm/sdk/confirm-ui-Dx6c4-Rk.js +2 -0
- package/dist/esm/sdk/{device-linking-DiCNt3iA.js → device-linking-_o3_fgiG.js} +1 -1
- package/dist/esm/sdk/{deviceLinkApproval-CfEiotVt.js → deviceLinkApproval-CObsEWBa.js} +1 -1
- package/dist/esm/sdk/{display-D0EPmU4w.js → display-CUWg48tD.js} +1 -1
- package/dist/{public/sdk/ecdsaCapabilityManifest-DAJEVjlP.js → esm/sdk/ecdsaCapabilityManifest--1Ztngfx.js} +1 -1
- package/dist/{public/sdk/ecdsaDerivationClientWasm-AYOJgTJm.js → esm/sdk/ecdsaDerivationClientWasm-DJh2uN-q.js} +1 -1
- package/dist/esm/sdk/ecdsaDerivationExport-BUUUGc6o.js +1 -0
- package/dist/esm/sdk/{ecdsaWalletRecords-WLyq414E.js → ecdsaWalletRecords-CKaXfsVu.js} +1 -1
- package/dist/esm/sdk/ed25519OperationFingerprint-Dev4P6Og.js +1 -0
- package/dist/{public/sdk/emailOtpEcdsaDerivationIdentity-HFQXc1Yw.js → esm/sdk/emailOtpEcdsaDerivationIdentity-Qd4pBwHv.js} +1 -1
- package/dist/esm/sdk/{enrichDisplayModelWithAbi-O6Mw4i2E.js → enrichDisplayModelWithAbi-JeAcpa7r.js} +1 -1
- package/dist/esm/sdk/{evmCryptoWasm-BUPb4hBH.js → evmCryptoWasm-CeH6Qeaa.js} +1 -1
- package/dist/esm/sdk/{export-viewer-host-BtrKVXxu.js → export-viewer-host-O0OV1Oou.js} +1 -1
- package/dist/esm/sdk/exportKeypairOperation-DkqY9Bpf.js +1 -0
- package/dist/esm/sdk/host-BeE2dIU4.js +1 -0
- package/dist/{public/sdk/icons-BlMXolHv.js → esm/sdk/icons-pSZJ5Xrm.js} +1 -1
- package/dist/esm/sdk/indexedDB-CA4tGqkr.js +1 -0
- package/dist/esm/sdk/{intentDigest-HvRsBQ1z.js → intentDigest-gM3r4SVX.js} +1 -1
- package/dist/esm/sdk/{lanes-BU-fGqY4.js → lanes-vBKm6yBJ.js} +1 -1
- package/dist/esm/sdk/{localOnly-BATWJj78.js → localOnly-U_MucUAe.js} +1 -1
- package/dist/{public/sdk/mountExportPrivateKeySurface-CyHU8bVc.js → esm/sdk/mountExportPrivateKeySurface-C2-fnvP6.js} +1 -1
- package/dist/{public/sdk/mountRecoveryCodeBackupSurface-C7aglQxf.js → esm/sdk/mountRecoveryCodeBackupSurface-C_tJNPJX.js} +1 -1
- package/dist/esm/sdk/nearEd25519YaoSigningPreparation-CnbgQfZc.js +1 -0
- package/dist/esm/sdk/{nonceLaneKeys-BF_UpvIy.js → nonceLaneKeys-DtBpxubF.js} +1 -1
- package/dist/esm/sdk/{normalization-Df9fZWJC.js → normalization-DmfGvZ_3.js} +1 -1
- package/dist/esm/sdk/ownerNearOperation-DjNDxW3_.js +1 -0
- package/dist/{public/sdk/pendingWalletRecoveryCodeBackup-Cjx-X-pP.js → esm/sdk/pendingWalletRecoveryCodeBackup-DXFrQmO5.js} +1 -1
- package/dist/esm/sdk/{presignaturePool-BbvqRWYw.js → presignaturePool-Dq4RhzXn.js} +1 -1
- package/dist/{public/sdk/recovery-entrypoint-DJbMDC_m.js → esm/sdk/recovery-entrypoint-s9OoKBcl.js} +1 -1
- package/dist/esm/sdk/registration-CTtTocyo.js +1 -0
- package/dist/esm/sdk/{registration-HSwOHZOo.js → registration-D3p7muCc.js} +1 -1
- package/dist/esm/sdk/{registrationAccounts-4r74gX1l.js → registrationAccounts-Bso0ntMs.js} +1 -1
- package/dist/{public/sdk/registrationIntent-Do1tD1V7.js → esm/sdk/registrationIntent-C1-Kyx_-.js} +1 -1
- package/dist/esm/sdk/{registrationSignerPlan-DK2b3N_p.js → registrationSignerPlan-CeMidFme.js} +1 -1
- package/dist/{public/sdk/requireStepUpAuth-COqCGb1i.js → esm/sdk/requireStepUpAuth-iVo6h_U-.js} +1 -1
- package/dist/esm/sdk/resealedEnvelopeResult-DXDo-72P.js +1 -0
- package/dist/esm/sdk/{routerAbNormalSigning-D-UZmCBS.js → routerAbNormalSigning-DVFFkNhJ.js} +1 -1
- package/dist/esm/sdk/runtime-auth-Dsmw_dUA.js +1 -0
- package/dist/esm/sdk/runtime-device-link-qmYvGep9.js +1 -0
- package/dist/esm/sdk/runtime-ecdsa-tempo-Zh95TuLV.js +1 -0
- package/dist/esm/sdk/runtime-email-otp-CnLuW4H1.js +1 -0
- package/dist/esm/sdk/runtime-export-m8lvrXtw.js +1 -0
- package/dist/esm/sdk/runtime-near-BiXzXXhH.js +1 -0
- package/dist/esm/sdk/runtime-preferences-DlKHDIjb.js +1 -0
- package/dist/esm/sdk/runtime-recovery-C6lS71Jp.js +1 -0
- package/dist/esm/sdk/{runtime-recovery-codes-DeUjQsxZ.js → runtime-recovery-codes-B033ake_.js} +1 -1
- package/dist/esm/sdk/runtimeContext-RNS2E5wy.js +7 -0
- package/dist/{public/sdk/secp256k1-CE7-q9Sn.js → esm/sdk/secp256k1-DPeaOjM0.js} +1 -1
- package/dist/esm/sdk/signEvmFamily-Cksw3RpU.js +1 -0
- package/dist/esm/sdk/{signEvmFamilyWithUiConfirmForTempo-CrMIAXUe.js → signEvmFamilyWithUiConfirmForTempo-B7p9UVix.js} +1 -1
- package/dist/esm/sdk/{signEvmWithUiConfirm-CGrLtMV6.js → signEvmWithUiConfirm-B14zYdwE.js} +1 -1
- package/dist/esm/sdk/signNear-D0rFEYP1.js +1 -0
- package/dist/esm/sdk/{signatureUses-kSrUHSSH.js → signatureUses-BLOoPRsb.js} +1 -1
- package/dist/{public/sdk/signingFlow-BcetvUeS.js → esm/sdk/signingFlow-Bd1X0e-1.js} +2 -2
- package/dist/{public/sdk/signingQueue-dMFOFOP5.js → esm/sdk/signingQueue-DoUBeaCv.js} +1 -1
- package/dist/esm/sdk/{thresholdEcdsa-CqR1fFA-.js → thresholdEcdsa-BxfOZmiR.js} +1 -1
- package/dist/esm/sdk/{trace--mRP2OQc.js → trace-BnhLKxcu.js} +1 -1
- package/dist/esm/sdk/{transaction-activity-DCzHGg3b.js → transaction-activity-BXSxMp1E.js} +1 -1
- package/dist/{public/sdk/transactionState-29T9xfvL.js → esm/sdk/transactionState-G_FPe-U8.js} +1 -1
- package/dist/esm/sdk/tx-confirm-ui.js +8 -0
- package/dist/esm/sdk/{types-f7dyj5N6.js → types-A-w1cYlJ.js} +1 -1
- package/dist/esm/sdk/{unlockedEd25519ExportRootCapability-yzxQjIFd.js → unlockedEd25519ExportRootCapability-5F1egCSv.js} +1 -1
- package/dist/esm/sdk/voiceid-host.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-BZB2Vu3X.js → wallet-recovery-DXdm68_Q.js} +1 -1
- package/dist/{public/sdk/walletAuthMethodRecord-DLBB5fez.js → esm/sdk/walletAuthMethodRecord-BW-XV4fv.js} +1 -1
- package/dist/esm/sdk/{walletAuthority-BTGAuOi8.js → walletAuthority-DbGaSw7D.js} +1 -1
- package/dist/esm/sdk/{walletCapabilityBindings-D5YYB7nN.js → walletCapabilityBindings-mPx-6_r-.js} +1 -1
- package/dist/{public/sdk/walletCustodyEcdsaContinuity-C31YQ9av.js → esm/sdk/walletCustodyEcdsaContinuity-BnyL1Ryu.js} +1 -1
- package/dist/esm/sdk/{walletOwnershipGeneration-CgjCtPrV.js → walletOwnershipGeneration-BZc6UKqX.js} +1 -1
- package/dist/esm/sdk/walletRecoveryAdminProof-DdwikrW3.js +1 -0
- package/dist/esm/sdk/walletRecoveryCommit-DbAoiJp5.js +1 -0
- package/dist/{public/sdk/walletSessionAuthorizationStore-B9Vwkshr.js → esm/sdk/walletSessionAuthorizationStore-BivTUoKY.js} +1 -1
- package/dist/esm/sdk/{webauthnP256-BsQQPurm.js → webauthnP256-BGHikiNl.js} +1 -1
- package/dist/esm/shared-ts/src/auth/externalAuth.js +53 -0
- package/dist/esm/shared-ts/src/utils/index.js +2 -2
- package/dist/esm/voiceid-host.js +2 -2
- package/dist/public/headers.manifest.json +1 -1
- package/dist/public/sdk/{ConfirmationDrawer-AZruQmhP.js → ConfirmationDrawer-BRnd5SEf.js} +1 -1
- package/dist/public/sdk/NonceCoordinator-CNXYrOoy.js +1 -0
- package/dist/{esm/sdk/SeamsWordmark-DwvPx2UA.js → public/sdk/SeamsWordmark-CeEi2RlU.js} +1 -1
- package/dist/public/sdk/accountLifecycle-B5a9SCM7.js +1 -0
- package/dist/public/sdk/{adapters-d9yh1bdC.js → adapters-B2k8y0MB.js} +1 -1
- package/dist/public/sdk/appearance-token-vars-DkF3EBbF.js +1 -0
- package/dist/public/sdk/authorization-gVWwKwav.js +1 -0
- package/dist/public/sdk/clientSessionPersistenceState-BxpITYM_.js +1 -0
- package/dist/public/sdk/{collectAuthenticationCredentialForChallengeB64u-I4wq8OGq.js → collectAuthenticationCredentialForChallengeB64u-BoFVpdRS.js} +1 -1
- package/dist/public/sdk/{commitQueue-CYruPlkm.js → commitQueue-C1wkey4q.js} +1 -1
- package/dist/public/sdk/configBuilder-DpChXfDO.js +1 -0
- package/dist/public/sdk/{configuration-DBEc3bsj.js → configuration-BAad7ngq.js} +1 -1
- package/dist/public/sdk/confirm-ui-Dx6c4-Rk.js +2 -0
- package/dist/public/sdk/{device-linking-DiCNt3iA.js → device-linking-_o3_fgiG.js} +1 -1
- package/dist/public/sdk/{deviceLinkApproval-CfEiotVt.js → deviceLinkApproval-CObsEWBa.js} +1 -1
- package/dist/public/sdk/{display-D0EPmU4w.js → display-CUWg48tD.js} +1 -1
- package/dist/{esm/sdk/ecdsaCapabilityManifest-DAJEVjlP.js → public/sdk/ecdsaCapabilityManifest--1Ztngfx.js} +1 -1
- package/dist/{esm/sdk/ecdsaDerivationClientWasm-AYOJgTJm.js → public/sdk/ecdsaDerivationClientWasm-DJh2uN-q.js} +1 -1
- package/dist/public/sdk/ecdsaDerivationExport-BUUUGc6o.js +1 -0
- package/dist/public/sdk/{ecdsaWalletRecords-WLyq414E.js → ecdsaWalletRecords-CKaXfsVu.js} +1 -1
- package/dist/public/sdk/ed25519OperationFingerprint-Dev4P6Og.js +1 -0
- package/dist/{esm/sdk/emailOtpEcdsaDerivationIdentity-HFQXc1Yw.js → public/sdk/emailOtpEcdsaDerivationIdentity-Qd4pBwHv.js} +1 -1
- package/dist/public/sdk/{enrichDisplayModelWithAbi-O6Mw4i2E.js → enrichDisplayModelWithAbi-JeAcpa7r.js} +1 -1
- package/dist/public/sdk/{evmCryptoWasm-BUPb4hBH.js → evmCryptoWasm-CeH6Qeaa.js} +1 -1
- package/dist/public/sdk/{export-viewer-host-BtrKVXxu.js → export-viewer-host-O0OV1Oou.js} +1 -1
- package/dist/public/sdk/exportKeypairOperation-DkqY9Bpf.js +1 -0
- package/dist/public/sdk/host-BeE2dIU4.js +1 -0
- package/dist/{esm/sdk/icons-BlMXolHv.js → public/sdk/icons-pSZJ5Xrm.js} +1 -1
- package/dist/public/sdk/indexedDB-CA4tGqkr.js +1 -0
- package/dist/public/sdk/{intentDigest-HvRsBQ1z.js → intentDigest-gM3r4SVX.js} +1 -1
- package/dist/public/sdk/{lanes-BU-fGqY4.js → lanes-vBKm6yBJ.js} +1 -1
- package/dist/public/sdk/{localOnly-BATWJj78.js → localOnly-U_MucUAe.js} +1 -1
- package/dist/{esm/sdk/mountExportPrivateKeySurface-CyHU8bVc.js → public/sdk/mountExportPrivateKeySurface-C2-fnvP6.js} +1 -1
- package/dist/{esm/sdk/mountRecoveryCodeBackupSurface-C7aglQxf.js → public/sdk/mountRecoveryCodeBackupSurface-C_tJNPJX.js} +1 -1
- package/dist/public/sdk/nearEd25519YaoSigningPreparation-CnbgQfZc.js +1 -0
- package/dist/public/sdk/{nonceLaneKeys-BF_UpvIy.js → nonceLaneKeys-DtBpxubF.js} +1 -1
- package/dist/public/sdk/{normalization-Df9fZWJC.js → normalization-DmfGvZ_3.js} +1 -1
- package/dist/public/sdk/ownerNearOperation-DjNDxW3_.js +1 -0
- package/dist/{esm/sdk/pendingWalletRecoveryCodeBackup-Cjx-X-pP.js → public/sdk/pendingWalletRecoveryCodeBackup-DXFrQmO5.js} +1 -1
- package/dist/public/sdk/{presignaturePool-BbvqRWYw.js → presignaturePool-Dq4RhzXn.js} +1 -1
- package/dist/{esm/sdk/recovery-entrypoint-DJbMDC_m.js → public/sdk/recovery-entrypoint-s9OoKBcl.js} +1 -1
- package/dist/public/sdk/registration-CTtTocyo.js +1 -0
- package/dist/public/sdk/{registration-HSwOHZOo.js → registration-D3p7muCc.js} +1 -1
- package/dist/public/sdk/{registrationAccounts-4r74gX1l.js → registrationAccounts-Bso0ntMs.js} +1 -1
- package/dist/{esm/sdk/registrationIntent-Do1tD1V7.js → public/sdk/registrationIntent-C1-Kyx_-.js} +1 -1
- package/dist/public/sdk/{registrationSignerPlan-DK2b3N_p.js → registrationSignerPlan-CeMidFme.js} +1 -1
- package/dist/{esm/sdk/requireStepUpAuth-COqCGb1i.js → public/sdk/requireStepUpAuth-iVo6h_U-.js} +1 -1
- package/dist/public/sdk/resealedEnvelopeResult-DXDo-72P.js +1 -0
- package/dist/public/sdk/{routerAbNormalSigning-D-UZmCBS.js → routerAbNormalSigning-DVFFkNhJ.js} +1 -1
- package/dist/public/sdk/runtime-auth-Dsmw_dUA.js +1 -0
- package/dist/public/sdk/runtime-device-link-qmYvGep9.js +1 -0
- package/dist/public/sdk/runtime-ecdsa-tempo-Zh95TuLV.js +1 -0
- package/dist/public/sdk/runtime-email-otp-CnLuW4H1.js +1 -0
- package/dist/public/sdk/runtime-export-m8lvrXtw.js +1 -0
- package/dist/public/sdk/runtime-near-BiXzXXhH.js +1 -0
- package/dist/public/sdk/runtime-preferences-DlKHDIjb.js +1 -0
- package/dist/public/sdk/runtime-recovery-C6lS71Jp.js +1 -0
- package/dist/public/sdk/{runtime-recovery-codes-DeUjQsxZ.js → runtime-recovery-codes-B033ake_.js} +1 -1
- package/dist/public/sdk/runtimeContext-RNS2E5wy.js +7 -0
- package/dist/{esm/sdk/secp256k1-CE7-q9Sn.js → public/sdk/secp256k1-DPeaOjM0.js} +1 -1
- package/dist/public/sdk/signEvmFamily-Cksw3RpU.js +1 -0
- package/dist/public/sdk/{signEvmFamilyWithUiConfirmForTempo-CrMIAXUe.js → signEvmFamilyWithUiConfirmForTempo-B7p9UVix.js} +1 -1
- package/dist/public/sdk/{signEvmWithUiConfirm-CGrLtMV6.js → signEvmWithUiConfirm-B14zYdwE.js} +1 -1
- package/dist/public/sdk/signNear-D0rFEYP1.js +1 -0
- package/dist/public/sdk/{signatureUses-kSrUHSSH.js → signatureUses-BLOoPRsb.js} +1 -1
- package/dist/{esm/sdk/signingFlow-BcetvUeS.js → public/sdk/signingFlow-Bd1X0e-1.js} +2 -2
- package/dist/{esm/sdk/signingQueue-dMFOFOP5.js → public/sdk/signingQueue-DoUBeaCv.js} +1 -1
- package/dist/public/sdk/{thresholdEcdsa-CqR1fFA-.js → thresholdEcdsa-BxfOZmiR.js} +1 -1
- package/dist/public/sdk/{trace--mRP2OQc.js → trace-BnhLKxcu.js} +1 -1
- package/dist/public/sdk/{transaction-activity-DCzHGg3b.js → transaction-activity-BXSxMp1E.js} +1 -1
- package/dist/{esm/sdk/transactionState-29T9xfvL.js → public/sdk/transactionState-G_FPe-U8.js} +1 -1
- package/dist/public/sdk/tx-confirm-ui.js +8 -0
- package/dist/public/sdk/{types-f7dyj5N6.js → types-A-w1cYlJ.js} +1 -1
- package/dist/public/sdk/{unlockedEd25519ExportRootCapability-yzxQjIFd.js → unlockedEd25519ExportRootCapability-5F1egCSv.js} +1 -1
- package/dist/public/sdk/voiceid-host.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-BZB2Vu3X.js → wallet-recovery-DXdm68_Q.js} +1 -1
- package/dist/{esm/sdk/walletAuthMethodRecord-DLBB5fez.js → public/sdk/walletAuthMethodRecord-BW-XV4fv.js} +1 -1
- package/dist/public/sdk/{walletAuthority-BTGAuOi8.js → walletAuthority-DbGaSw7D.js} +1 -1
- package/dist/public/sdk/{walletCapabilityBindings-D5YYB7nN.js → walletCapabilityBindings-mPx-6_r-.js} +1 -1
- package/dist/{esm/sdk/walletCustodyEcdsaContinuity-C31YQ9av.js → public/sdk/walletCustodyEcdsaContinuity-BnyL1Ryu.js} +1 -1
- package/dist/public/sdk/{walletOwnershipGeneration-CgjCtPrV.js → walletOwnershipGeneration-BZc6UKqX.js} +1 -1
- package/dist/public/sdk/walletRecoveryAdminProof-DdwikrW3.js +1 -0
- package/dist/public/sdk/walletRecoveryCommit-DbAoiJp5.js +1 -0
- package/dist/{esm/sdk/walletSessionAuthorizationStore-B9Vwkshr.js → public/sdk/walletSessionAuthorizationStore-BivTUoKY.js} +1 -1
- package/dist/public/sdk/{webauthnP256-BsQQPurm.js → webauthnP256-BGHikiNl.js} +1 -1
- package/dist/public/wallet-assets.manifest.json +262 -262
- package/dist/public/wallet-service/index.html +4 -4
- package/dist/types/shared-ts/src/auth/externalAuth.d.ts +127 -0
- package/dist/types/shared-ts/src/authorization/index.d.ts +1 -1
- package/dist/types/shared-ts/src/authorization/walletOwnerOperation.d.ts +10 -0
- package/dist/types/shared-ts/src/utils/registrationEstablishedSession.d.ts +4 -0
- package/dist/types/shared-ts/src/utils/registrationIntent.d.ts +2 -0
- package/dist/types/shared-ts/src/utils/walletManagementProtocol.d.ts +1 -1
- package/dist/types/wallet/src/SeamsWeb/operations/devices/walletHostOwnerAuthority.d.ts +2 -1
- package/dist/types/wallet/src/SeamsWeb/operations/registration/pendingRegistrationRecovery.d.ts +1 -0
- package/dist/types/wallet/src/SeamsWeb/operations/registration/registration.d.ts +1 -0
- package/dist/types/wallet/src/SeamsWeb/operations/registration/registrationPasskeyMaterial.d.ts +24 -0
- package/dist/types/wallet/src/SeamsWeb/publicApi/auth.d.ts +1 -1
- package/dist/types/wallet/src/SeamsWeb/publicApi/createPublicApi.d.ts +1 -0
- package/dist/types/wallet/src/SeamsWeb/publicApi/nearCommands.d.ts +2 -0
- package/dist/types/wallet/src/SeamsWeb/publicApi/ownerNearOperation.d.ts +58 -0
- package/dist/types/wallet/src/SeamsWeb/publicApi/types.d.ts +21 -2
- package/dist/types/wallet/src/SeamsWeb/signingSurface/BrowserSigningSurface.d.ts +57 -56
- package/dist/types/wallet/src/SeamsWeb/signingSurface/nearOwnerOperation.d.ts +16 -0
- package/dist/types/wallet/src/SeamsWeb/signingSurface/nearPasskeyOperationMaterial.d.ts +72 -0
- package/dist/types/wallet/src/SeamsWeb/signingSurface/types.d.ts +3 -0
- package/dist/types/wallet/src/SeamsWeb/walletIframe/client/ownerNearOperation.d.ts +25 -0
- package/dist/types/wallet/src/SeamsWeb/walletIframe/client/router.d.ts +8 -1
- package/dist/types/wallet/src/SeamsWeb/walletIframe/host/WalletHostRuntime.d.ts +8 -2
- package/dist/types/wallet/src/SeamsWeb/walletIframe/host/createNearCommands.d.ts +2 -1
- package/dist/types/wallet/src/SeamsWeb/walletIframe/host/createSessionCommands.d.ts +9 -2
- package/dist/types/wallet/src/SeamsWeb/walletIframe/host/externalAuth.d.ts +31 -0
- package/dist/types/wallet/src/SeamsWeb/walletIframe/host/externalOwnerApproval.d.ts +24 -0
- package/dist/types/wallet/src/SeamsWeb/walletIframe/host/ownerNearOperation.d.ts +12 -0
- package/dist/types/wallet/src/SeamsWeb/walletIframe/host/requestRouter.d.ts +2 -2
- package/dist/types/wallet/src/SeamsWeb/walletIframe/host/sessionObserver.d.ts +1 -0
- package/dist/types/wallet/src/SeamsWeb/walletIframe/shared/exactSessionState.d.ts +8 -0
- package/dist/types/wallet/src/SeamsWeb/walletIframe/shared/messages.d.ts +17 -7
- package/dist/types/wallet/src/SeamsWeb/walletIframe/shared/ownerNearOperation.d.ts +51 -0
- package/dist/types/wallet/src/core/authMethods/plugins.d.ts +2 -0
- package/dist/types/wallet/src/core/indexedDB/seamsWalletDB/registrationSetup.d.ts +1 -0
- package/dist/types/wallet/src/core/indexedDB/seamsWalletDB/repositories.d.ts +4 -0
- package/dist/types/wallet/src/core/rpcClients/near/NearClient.d.ts +4 -0
- package/dist/types/wallet/src/core/rpcClients/relayer/walletRecoveryRotate.d.ts +2 -2
- package/dist/types/wallet/src/core/rpcClients/relayer/walletRegistration.d.ts +1 -0
- package/dist/types/wallet/src/core/signingEngine/session/passkey/ed25519YaoLocalMaterial.d.ts +21 -0
- package/dist/types/wallet/src/core/types/seams.d.ts +21 -6
- package/dist/types/wallet/src/core/ui/messages.d.ts +1 -1
- package/dist/types/wallet/src/index.d.ts +3 -0
- package/dist/types/wallet/src/react/boundWallet.d.ts +21 -1
- package/dist/types/wallet/src/react/components/AccountMenuButton/AccountMenuButtonView.d.ts +2 -1
- package/dist/types/wallet/src/react/components/AccountMenuButton/AccountSettingsDialog.d.ts +10 -0
- package/dist/types/wallet/src/react/components/AccountMenuButton/AuthenticationMethodsModal.d.ts +1 -2
- package/dist/types/wallet/src/react/components/AccountMenuButton/ExternalWalletSettings.d.ts +10 -0
- package/dist/types/wallet/src/react/components/AccountMenuButton/LinkedDevicesModal.d.ts +1 -2
- package/dist/types/wallet/src/react/components/AccountMenuButton/WalletSettingsLayout.d.ts +1 -0
- package/dist/types/wallet/src/react/components/AccountMenuButton/hooks/useProfileState.d.ts +2 -2
- package/dist/types/wallet/src/react/components/AccountMenuButton/types.d.ts +4 -3
- package/dist/types/wallet/src/react/context/reactLoginStateBuilders.d.ts +1 -1
- package/dist/types/wallet/src/react/hooks/useOwnerNearOperation.d.ts +4 -0
- package/dist/types/wallet/src/react/index.d.ts +3 -0
- package/dist/types/wallet/src/react/types.d.ts +13 -3
- package/dist/types/wallet/src/voiceid-host.d.ts +2 -2
- package/package.json +1 -1
- package/dist/esm/react/components/AccountMenuButton/AccountMenuModal.js +0 -66
- package/dist/esm/sdk/NonceCoordinator-3YhmDTS5.js +0 -1
- package/dist/esm/sdk/accountLifecycle-6DHYWf0v.js +0 -1
- package/dist/esm/sdk/appearance-token-vars-BJydfWT_.js +0 -1
- package/dist/esm/sdk/clientSessionPersistenceState-BCkJAYSz.js +0 -1
- package/dist/esm/sdk/configBuilder-CSwJrmcR.js +0 -1
- package/dist/esm/sdk/confirm-ui-nU6ymgiv.js +0 -2
- package/dist/esm/sdk/ecdsaDerivationExport-DJKOzDbS.js +0 -1
- package/dist/esm/sdk/exportKeypairOperation-CGE9ZU1m.js +0 -1
- package/dist/esm/sdk/host-DayrOrgm.js +0 -1
- package/dist/esm/sdk/indexedDB-C4SDsyOG.js +0 -1
- package/dist/esm/sdk/nearEd25519YaoMaterialActivation-BfXmy3Jr.js +0 -1
- package/dist/esm/sdk/nearEd25519YaoSigningPreparation-DHNk0F8e.js +0 -1
- package/dist/esm/sdk/registration-CNLUYN-p.js +0 -1
- package/dist/esm/sdk/resealedEnvelopeResult-B1p5UkYg.js +0 -1
- package/dist/esm/sdk/runtime-auth-BCoj7_-G.js +0 -1
- package/dist/esm/sdk/runtime-device-link-DAsq5tGT.js +0 -1
- package/dist/esm/sdk/runtime-ecdsa-tempo-CVh_Vwl6.js +0 -1
- package/dist/esm/sdk/runtime-email-otp-BxSKK9AG.js +0 -1
- package/dist/esm/sdk/runtime-export-BWnQXMzT.js +0 -1
- package/dist/esm/sdk/runtime-near-CuzPZrDS.js +0 -1
- package/dist/esm/sdk/runtime-preferences-B-nDWlm3.js +0 -1
- package/dist/esm/sdk/runtime-recovery-DpOdEJ8N.js +0 -1
- package/dist/esm/sdk/runtimeContext-5JcewRo3.js +0 -6
- package/dist/esm/sdk/sessionObservationRevision-JOvVF4Hf.js +0 -1
- package/dist/esm/sdk/signEvmFamily-BY5jlZEG.js +0 -1
- package/dist/esm/sdk/signNear-DMpJFkwF.js +0 -1
- package/dist/esm/sdk/signer-worker-BNodGJKY.js +0 -1
- package/dist/esm/sdk/walletRecoveryAdminProof-CvSYbyg5.js +0 -1
- package/dist/esm/sdk/walletRecoveryCommit-Cc2LAkCS.js +0 -1
- package/dist/public/sdk/NonceCoordinator-3YhmDTS5.js +0 -1
- package/dist/public/sdk/accountLifecycle-6DHYWf0v.js +0 -1
- package/dist/public/sdk/appearance-token-vars-BJydfWT_.js +0 -1
- package/dist/public/sdk/clientSessionPersistenceState-BCkJAYSz.js +0 -1
- package/dist/public/sdk/configBuilder-CSwJrmcR.js +0 -1
- package/dist/public/sdk/confirm-ui-nU6ymgiv.js +0 -2
- package/dist/public/sdk/ecdsaDerivationExport-DJKOzDbS.js +0 -1
- package/dist/public/sdk/exportKeypairOperation-CGE9ZU1m.js +0 -1
- package/dist/public/sdk/host-DayrOrgm.js +0 -1
- package/dist/public/sdk/indexedDB-C4SDsyOG.js +0 -1
- package/dist/public/sdk/nearEd25519YaoMaterialActivation-BfXmy3Jr.js +0 -1
- package/dist/public/sdk/nearEd25519YaoSigningPreparation-DHNk0F8e.js +0 -1
- package/dist/public/sdk/registration-CNLUYN-p.js +0 -1
- package/dist/public/sdk/resealedEnvelopeResult-B1p5UkYg.js +0 -1
- package/dist/public/sdk/runtime-auth-BCoj7_-G.js +0 -1
- package/dist/public/sdk/runtime-device-link-DAsq5tGT.js +0 -1
- package/dist/public/sdk/runtime-ecdsa-tempo-CVh_Vwl6.js +0 -1
- package/dist/public/sdk/runtime-email-otp-BxSKK9AG.js +0 -1
- package/dist/public/sdk/runtime-export-BWnQXMzT.js +0 -1
- package/dist/public/sdk/runtime-near-CuzPZrDS.js +0 -1
- package/dist/public/sdk/runtime-preferences-B-nDWlm3.js +0 -1
- package/dist/public/sdk/runtime-recovery-DpOdEJ8N.js +0 -1
- package/dist/public/sdk/runtimeContext-5JcewRo3.js +0 -6
- package/dist/public/sdk/sessionObservationRevision-JOvVF4Hf.js +0 -1
- package/dist/public/sdk/signEvmFamily-BY5jlZEG.js +0 -1
- package/dist/public/sdk/signNear-DMpJFkwF.js +0 -1
- package/dist/public/sdk/signer-worker-BNodGJKY.js +0 -1
- package/dist/public/sdk/walletRecoveryAdminProof-CvSYbyg5.js +0 -1
- package/dist/public/sdk/walletRecoveryCommit-Cc2LAkCS.js +0 -1
- package/dist/types/shared-ts/src/authorization/walletCustodyOperation.d.ts +0 -10
- package/dist/types/wallet/src/react/components/AccountMenuButton/AccountMenuModal.d.ts +0 -9
- /package/dist/esm/sdk/{accountIds-CW2BP-d9.js → accountIds-DGWFzEnw.js} +0 -0
- /package/dist/esm/sdk/{actions-DrtSTGus.js → actions-7SvZZut1.js} +0 -0
- /package/dist/esm/sdk/{authenticatorOptions-WCDKYRux.js → authenticatorOptions-B4q62CLs.js} +0 -0
- /package/dist/esm/sdk/{confirmTypes-BvVtQs-M.js → confirmTypes-DmEPoxys.js} +0 -0
- /package/dist/esm/sdk/{csp-stylesheet-DUSqfXvZ.js → csp-stylesheet-5LU6VGKK.js} +0 -0
- /package/dist/esm/sdk/{digestEncoding-CqNXPZY9.js → digestEncoding-34kXJoJr.js} +0 -0
- /package/dist/esm/sdk/{ecdsaChainTarget-Bm5X4k-V.js → ecdsaChainTarget-BoRVQtjQ.js} +0 -0
- /package/dist/esm/sdk/{executeWorkerOperation-C9FOCCR7.js → executeWorkerOperation-CAYSt0NA.js} +0 -0
- /package/dist/esm/sdk/{helpers-Dubwo5uK.js → helpers-B7c1zc7h.js} +0 -0
- /package/dist/esm/sdk/{jsonRpc-BVDv1wfm.js → jsonRpc-DGzeiNSa.js} +0 -0
- /package/dist/esm/sdk/{keccak-mS0Mejjx.js → keccak-DGHI1G6t.js} +0 -0
- /package/dist/esm/sdk/{keyMaterialEnvelope-Dm2ZEilb.js → keyMaterialEnvelope-Czkks9Ki.js} +0 -0
- /package/dist/esm/sdk/{presignatures-BCeq56DG.js → presignatures-CkhuZ0YQ.js} +0 -0
- /package/dist/esm/sdk/{profileAccountProjection-C5sNt-s2.js → profileAccountProjection-dvLchPBo.js} +0 -0
- /package/dist/esm/sdk/{registrationAuthMethodInput-BR1WVbK3.js → registrationAuthMethodInput-C4o7yFBJ.js} +0 -0
- /package/dist/esm/sdk/{sdkSentEvents-DjOlKtdW.js → sdkSentEvents-BFwv3mBw.js} +0 -0
- /package/dist/esm/sdk/{signerDomain-BAsLT3XN.js → signerDomain-D-EUTlLK.js} +0 -0
- /package/dist/esm/sdk/{signerSlot-D2RZnb27.js → signerSlot-BlijMq8C.js} +0 -0
- /package/dist/esm/sdk/{surface-measurement-reporter-DXsvq401.js → surface-measurement-reporter-DJ_dQhBV.js} +0 -0
- /package/dist/esm/sdk/{walletCustodyOperation-DimzAbCB.js → walletOwnerOperation-CScYv2K6.js} +0 -0
- /package/dist/esm/sdk/{walletSessionAuthorizationStatus-DG7DPcgR.js → walletSessionAuthorizationStatus-GhcGvDCX.js} +0 -0
- /package/dist/public/sdk/{accountIds-CW2BP-d9.js → accountIds-DGWFzEnw.js} +0 -0
- /package/dist/public/sdk/{actions-DrtSTGus.js → actions-7SvZZut1.js} +0 -0
- /package/dist/public/sdk/{authenticatorOptions-WCDKYRux.js → authenticatorOptions-B4q62CLs.js} +0 -0
- /package/dist/public/sdk/{confirmTypes-BvVtQs-M.js → confirmTypes-DmEPoxys.js} +0 -0
- /package/dist/public/sdk/{csp-stylesheet-DUSqfXvZ.js → csp-stylesheet-5LU6VGKK.js} +0 -0
- /package/dist/public/sdk/{digestEncoding-CqNXPZY9.js → digestEncoding-34kXJoJr.js} +0 -0
- /package/dist/public/sdk/{ecdsaChainTarget-Bm5X4k-V.js → ecdsaChainTarget-BoRVQtjQ.js} +0 -0
- /package/dist/public/sdk/{executeWorkerOperation-C9FOCCR7.js → executeWorkerOperation-CAYSt0NA.js} +0 -0
- /package/dist/public/sdk/{helpers-Dubwo5uK.js → helpers-B7c1zc7h.js} +0 -0
- /package/dist/public/sdk/{jsonRpc-BVDv1wfm.js → jsonRpc-DGzeiNSa.js} +0 -0
- /package/dist/public/sdk/{keccak-mS0Mejjx.js → keccak-DGHI1G6t.js} +0 -0
- /package/dist/public/sdk/{keyMaterialEnvelope-Dm2ZEilb.js → keyMaterialEnvelope-Czkks9Ki.js} +0 -0
- /package/dist/public/sdk/{presignatures-BCeq56DG.js → presignatures-CkhuZ0YQ.js} +0 -0
- /package/dist/public/sdk/{profileAccountProjection-C5sNt-s2.js → profileAccountProjection-dvLchPBo.js} +0 -0
- /package/dist/public/sdk/{registrationAuthMethodInput-BR1WVbK3.js → registrationAuthMethodInput-C4o7yFBJ.js} +0 -0
- /package/dist/public/sdk/{sdkSentEvents-DjOlKtdW.js → sdkSentEvents-BFwv3mBw.js} +0 -0
- /package/dist/public/sdk/{signerDomain-BAsLT3XN.js → signerDomain-D-EUTlLK.js} +0 -0
- /package/dist/public/sdk/{signerSlot-D2RZnb27.js → signerSlot-BlijMq8C.js} +0 -0
- /package/dist/public/sdk/{surface-measurement-reporter-DXsvq401.js → surface-measurement-reporter-DJ_dQhBV.js} +0 -0
- /package/dist/public/sdk/{walletCustodyOperation-DimzAbCB.js → walletOwnerOperation-CScYv2K6.js} +0 -0
- /package/dist/public/sdk/{walletSessionAuthorizationStatus-DG7DPcgR.js → walletSessionAuthorizationStatus-GhcGvDCX.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.29.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.29.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.29.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.29.0"></script>
|
|
17
17
|
</body>
|
|
18
18
|
</html>
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { type WalletId } from '../utils/domainIds';
|
|
2
|
+
import { type Ed25519PublicKeyB64u } from '../passkey-custody/primitives';
|
|
3
|
+
import type { ReadonlyExclusiveUnion } from '../utils/variant';
|
|
4
|
+
import { type DigestB64u } from '../utils/canonicalPrimitives';
|
|
5
|
+
export declare const EXTERNAL_AUTH_PATH = "/wallet/external-auth";
|
|
6
|
+
export type ExternalAuthProvider = ReadonlyExclusiveUnion<{
|
|
7
|
+
kind: 'disabled';
|
|
8
|
+
} | {
|
|
9
|
+
kind: 'google';
|
|
10
|
+
clientId: string;
|
|
11
|
+
} | {
|
|
12
|
+
kind: 'application';
|
|
13
|
+
issuer: string;
|
|
14
|
+
publicKeyB64u: Ed25519PublicKeyB64u;
|
|
15
|
+
}>;
|
|
16
|
+
export type ExternalAuthConfiguration = ExternalAuthProvider & Readonly<{
|
|
17
|
+
revision: number;
|
|
18
|
+
}>;
|
|
19
|
+
export type ExternalIdentity = ReadonlyExclusiveUnion<{
|
|
20
|
+
provider: 'google';
|
|
21
|
+
issuer: 'https://accounts.google.com';
|
|
22
|
+
subject: string;
|
|
23
|
+
} | {
|
|
24
|
+
provider: 'application';
|
|
25
|
+
issuer: string;
|
|
26
|
+
subject: string;
|
|
27
|
+
}>;
|
|
28
|
+
export type ExternalIdentityProof = ReadonlyExclusiveUnion<{
|
|
29
|
+
kind: 'google';
|
|
30
|
+
idToken: string;
|
|
31
|
+
} | {
|
|
32
|
+
kind: 'application';
|
|
33
|
+
assertion: string;
|
|
34
|
+
}>;
|
|
35
|
+
export declare function parseExternalAuthProvider(raw: unknown): ExternalAuthProvider;
|
|
36
|
+
export declare function parseExternalAuthConfiguration(raw: unknown): ExternalAuthConfiguration;
|
|
37
|
+
export declare function serializeExternalIdentity(identity: ExternalIdentity): string;
|
|
38
|
+
export declare function parseStoredExternalIdentity(serialized: string): ExternalIdentity;
|
|
39
|
+
export type ExternalOwnerChallenge = Readonly<{
|
|
40
|
+
walletId: WalletId;
|
|
41
|
+
attemptId: string;
|
|
42
|
+
identity: ExternalIdentity;
|
|
43
|
+
challengeB64u: DigestB64u;
|
|
44
|
+
expiresAtMs: number;
|
|
45
|
+
}> & ReadonlyExclusiveUnion<{
|
|
46
|
+
kind: 'associate';
|
|
47
|
+
} | {
|
|
48
|
+
kind: 'unlink';
|
|
49
|
+
associationId: string;
|
|
50
|
+
}>;
|
|
51
|
+
export declare function parseExternalOwnerChallenge(raw: unknown): ExternalOwnerChallenge;
|
|
52
|
+
type ExternalAuthFailureCode = 'invalid_request' | 'invalid_credential' | 'access_denied' | 'expired' | 'superseded' | 'unavailable' | 'rate_limited' | 'cancelled';
|
|
53
|
+
export type ExternalAuthResult<T> = ReadonlyExclusiveUnion<{
|
|
54
|
+
ok: true;
|
|
55
|
+
value: T;
|
|
56
|
+
} | {
|
|
57
|
+
ok: false;
|
|
58
|
+
code: ExternalAuthFailureCode;
|
|
59
|
+
message: string;
|
|
60
|
+
}>;
|
|
61
|
+
export type ExternalAuthenticateInput = ReadonlyExclusiveUnion<{
|
|
62
|
+
method: 'google';
|
|
63
|
+
walletId: string;
|
|
64
|
+
idToken: string;
|
|
65
|
+
} | {
|
|
66
|
+
method: 'handoff';
|
|
67
|
+
walletId: string;
|
|
68
|
+
attemptId: string;
|
|
69
|
+
code: string;
|
|
70
|
+
}>;
|
|
71
|
+
export type ExternalAuthPurpose = 'authenticate' | 'associate';
|
|
72
|
+
export type ExternalAuthAttempt<Purpose extends ExternalAuthPurpose = 'authenticate'> = Readonly<{
|
|
73
|
+
purpose: Purpose;
|
|
74
|
+
attemptId: string;
|
|
75
|
+
walletId: WalletId;
|
|
76
|
+
expiresAtMs: number;
|
|
77
|
+
}>;
|
|
78
|
+
export type ExternalAuthCommand = ReadonlyExclusiveUnion<{
|
|
79
|
+
action: 'authenticate';
|
|
80
|
+
input: ExternalAuthenticateInput;
|
|
81
|
+
} | {
|
|
82
|
+
action: 'prepare';
|
|
83
|
+
walletId: string;
|
|
84
|
+
} | {
|
|
85
|
+
action: 'prepare_association';
|
|
86
|
+
walletId: string;
|
|
87
|
+
} | {
|
|
88
|
+
action: 'associate';
|
|
89
|
+
input: ExternalAuthenticateInput;
|
|
90
|
+
} | {
|
|
91
|
+
action: 'unlink';
|
|
92
|
+
walletId: string;
|
|
93
|
+
associationId: string;
|
|
94
|
+
}>;
|
|
95
|
+
export declare function parseExternalAuthCommand(raw: unknown): ExternalAuthCommand;
|
|
96
|
+
export type ExternalWalletAuthentication = Readonly<{
|
|
97
|
+
kind: 'external_authenticated';
|
|
98
|
+
walletId: WalletId;
|
|
99
|
+
sessionId: string;
|
|
100
|
+
associationId: string;
|
|
101
|
+
environmentId: string;
|
|
102
|
+
provider: ExternalIdentity['provider'];
|
|
103
|
+
permission: 'wallet_settings_read';
|
|
104
|
+
expiresAtMs: number;
|
|
105
|
+
authMethod?: never;
|
|
106
|
+
}>;
|
|
107
|
+
export type ExternalWalletSettings = Readonly<{
|
|
108
|
+
authentication: ExternalWalletAuthentication;
|
|
109
|
+
accounts: readonly Readonly<{
|
|
110
|
+
family: 'ed25519' | 'ecdsa';
|
|
111
|
+
address: string;
|
|
112
|
+
publicKey: string;
|
|
113
|
+
}>[];
|
|
114
|
+
methods: readonly Readonly<{
|
|
115
|
+
id: string;
|
|
116
|
+
kind: 'passkey' | 'email_otp' | 'voiceid';
|
|
117
|
+
}>[];
|
|
118
|
+
devices: readonly Readonly<{
|
|
119
|
+
id: string;
|
|
120
|
+
}>[];
|
|
121
|
+
}>;
|
|
122
|
+
export declare function parseExternalWalletAuthentication(value: unknown): ExternalWalletAuthentication;
|
|
123
|
+
export declare function externalAuthFailure(code: ExternalAuthFailureCode): ExternalAuthResult<never>;
|
|
124
|
+
export declare function parseExternalAuthFailure(value: unknown): ExternalAuthResult<never>;
|
|
125
|
+
export declare function parseExternalWalletSettings(value: unknown): ExternalWalletSettings;
|
|
126
|
+
export {};
|
|
127
|
+
//# sourceMappingURL=externalAuth.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './capabilityKinds';
|
|
2
2
|
export * from './delegatedAuthority';
|
|
3
3
|
export * from './operationFingerprint';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './walletOwnerOperation';
|
|
5
5
|
export * from './walletAuthority';
|
|
6
6
|
export * from './walletSessionIssuance';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type DigestB64u } from '../utils/canonicalPrimitives';
|
|
2
|
+
export type WalletOwnerAdminOperation = 'external_identity_associate' | 'external_identity_unlink' | 'credentials_list' | 'credential_label' | 'recovery_rotate' | 'recovery_read' | 'recovery_status' | 'recovery_backup_acknowledge';
|
|
3
|
+
/** Public challenge digest for a single wallet-administration factor proof. */
|
|
4
|
+
export declare function computeWalletOwnerAdminChallengeDigest(input: {
|
|
5
|
+
readonly walletId: string;
|
|
6
|
+
readonly operation: WalletOwnerAdminOperation;
|
|
7
|
+
readonly payload: Record<string, unknown>;
|
|
8
|
+
readonly requestOrigin: string;
|
|
9
|
+
}): Promise<DigestB64u>;
|
|
10
|
+
//# sourceMappingURL=walletOwnerOperation.d.ts.map
|
|
@@ -72,6 +72,10 @@ export type RegistrationEstablishedSessionV2 = {
|
|
|
72
72
|
readonly tokens: RegistrationEstablishedSessionProjectionTokensV2;
|
|
73
73
|
};
|
|
74
74
|
export type RegistrationEstablishedSessionResultV2 = {
|
|
75
|
+
readonly kind: 'owner_operations';
|
|
76
|
+
readonly walletId: WalletId;
|
|
77
|
+
readonly session?: never;
|
|
78
|
+
} | {
|
|
75
79
|
readonly kind: 'issued';
|
|
76
80
|
readonly session: RegistrationEstablishedSessionV2;
|
|
77
81
|
} | {
|
|
@@ -18,7 +18,9 @@ export type RuntimePolicyScopeLike = {
|
|
|
18
18
|
envId: string;
|
|
19
19
|
signingRootVersion?: string;
|
|
20
20
|
};
|
|
21
|
+
export type RegistrationCompletion = 'wallet_session' | 'owner_operations';
|
|
21
22
|
export type RegistrationIntentV1 = {
|
|
23
|
+
completion: RegistrationCompletion;
|
|
22
24
|
version: 'registration_intent_v1';
|
|
23
25
|
walletId: WalletId;
|
|
24
26
|
authMethod: RegistrationAuthMethodInput;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DeviceLinkOwnerConfirmation } from '../../walletIframe/host/deviceLinkApproval';
|
|
2
2
|
import type { HttpTransport } from '../../../core/platform/http';
|
|
3
3
|
import type { UnlockedEd25519ExportRootLinkingCapabilityV1 } from '../../../core/signingEngine/workerManager/workerTypes';
|
|
4
|
-
import { type WalletSessionAuthorizationRepository } from '../../../core/indexedDB/seamsWalletDB/walletSessionAuthorizationStore';
|
|
4
|
+
import { type WalletSessionOperationCredentialV1, type WalletSessionAuthorizationRepository } from '../../../core/indexedDB/seamsWalletDB/walletSessionAuthorizationStore';
|
|
5
5
|
import type { ResolveSelectedWalletAuthorityResultV1 } from '../../../core/indexedDB/seamsWalletDB/repositories';
|
|
6
6
|
import type { WalletAuthenticationState } from '../../../core/types/seams';
|
|
7
7
|
import type { DeviceLinkingOwnerAuthorizationPortV1 } from './deviceLinkingPorts';
|
|
@@ -24,6 +24,7 @@ export type WalletHostManagementRequestV1 = {
|
|
|
24
24
|
}>;
|
|
25
25
|
};
|
|
26
26
|
export type WalletHostOwnerAuthoritiesV1 = {
|
|
27
|
+
readonly readOwnerCredential: (walletId: WalletId) => Promise<WalletSessionOperationCredentialV1>;
|
|
27
28
|
readonly ownerAuthorization: DeviceLinkingOwnerAuthorizationPortV1;
|
|
28
29
|
readonly ownerRequest: LinkSessionOwnerAuthenticatedRequestPortV1;
|
|
29
30
|
readonly managementRequest: WalletHostManagementRequestV1;
|
package/dist/types/wallet/src/SeamsWeb/operations/registration/pendingRegistrationRecovery.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ type PendingRegistrationRecoveryResult = {
|
|
|
40
40
|
readonly error: Error;
|
|
41
41
|
};
|
|
42
42
|
export declare function registrationProjectionFromPending(pending: PendingEd25519RegistrationCommit, finalized: FinalizedNearProvisioningResponse): Promise<StoreWalletRegistrationPublicationInputV1>;
|
|
43
|
+
export declare function publicationInputFromPending(pending: PendingEd25519RegistrationCommit, finalized: FinalizedNearProvisioningResponse, registration: StoreWalletRegistrationPublicationInputV1): PublishPendingWalletRegistrationCommitInputV1;
|
|
43
44
|
/** Converts persisted joined material into the current continuation input. */
|
|
44
45
|
export declare function restorePendingNearRegistrationMaterial(args: {
|
|
45
46
|
readonly relayerUrl: string;
|
|
@@ -16,6 +16,7 @@ import { type EmailOtpProvider } from '../../../../../shared-ts/src/utils/wallet
|
|
|
16
16
|
import { RegistrationPasskeyAuthority } from './registrationEd25519Yao';
|
|
17
17
|
export { REGISTRATION_TIMING_LABEL, emitRegistrationTimingSpan, parseYaoServerTimingBuckets, recordStrictEcdsaServerTimingBuckets, } from './registrationTiming';
|
|
18
18
|
type RegisterWalletOperationInput = {
|
|
19
|
+
completion: import('../../../../../shared-ts/src/utils/registrationIntent').RegistrationCompletion;
|
|
19
20
|
context: RegistrationWebContext;
|
|
20
21
|
authMethod: RegistrationAuthMethodInput;
|
|
21
22
|
wallet: RegisterWalletInput;
|
package/dist/types/wallet/src/SeamsWeb/operations/registration/registrationPasskeyMaterial.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { StoreWalletRegistrationPublicationInputV1 } from '../../../core/indexedDB/seamsWalletDB/repositories';
|
|
2
|
+
import { type Ed25519YaoLocalMaterialIdentity } from '../../../core/signingEngine/session/passkey/ed25519YaoLocalMaterial';
|
|
3
|
+
import { type LoadedWalletCustodyEd25519MaterialV1 } from '../../../core/signingEngine/walletCustody/ed25519SeedMaterial';
|
|
4
|
+
import { type WalletCustodyCacheEnvelopeV1 } from '../../../core/signingEngine/walletCustody/openCustodyCache';
|
|
5
|
+
import type { JoinedWalletCustodyNearEd25519KeySetV1 } from '../../signingSurface/ports';
|
|
6
|
+
import type { registrationEd25519MaterialFacts } from './registrationEd25519Yao';
|
|
7
|
+
type PasskeyRegistrationMaterial = {
|
|
8
|
+
metadata: JoinedWalletCustodyNearEd25519KeySetV1['metadata'];
|
|
9
|
+
material: LoadedWalletCustodyEd25519MaterialV1;
|
|
10
|
+
materialFacts: ReturnType<typeof registrationEd25519MaterialFacts>;
|
|
11
|
+
envelope: WalletCustodyCacheEnvelopeV1;
|
|
12
|
+
ownedFactorSecret: Uint8Array;
|
|
13
|
+
};
|
|
14
|
+
export declare function openPasskeyRegistrationEd25519Material(args: PasskeyRegistrationMaterial): Promise<import("../../../core/signingEngine/threshold/ed25519/yaoClient").RouterAbEd25519YaoSealableActiveClientV1>;
|
|
15
|
+
export declare function passkeyRegistrationLocalMaterialIdentity(materialFacts: ReturnType<typeof registrationEd25519MaterialFacts>, rpId: string, credentialIdB64u: string): Ed25519YaoLocalMaterialIdentity;
|
|
16
|
+
/** Include sealed owner material in the registration transaction. No live client escapes this function. */
|
|
17
|
+
export declare function prepareOwnerRegistrationPublication(args: PasskeyRegistrationMaterial & {
|
|
18
|
+
registration: StoreWalletRegistrationPublicationInputV1;
|
|
19
|
+
rpId: string;
|
|
20
|
+
credentialIdB64u: string;
|
|
21
|
+
passkeyPrfFirstB64u: string;
|
|
22
|
+
}): Promise<StoreWalletRegistrationPublicationInputV1>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=registrationPasskeyMaterial.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AuthCapability } from '../signingSurface/types';
|
|
2
2
|
export type WalletAuthCommands = Omit<AuthCapability, 'onSessionChange'>;
|
|
3
|
-
export type WalletSessionCommands = Pick<AuthCapability, 'unlock' | 'unlockWithAuthMethod' | 'lock' | 'getSession' | 'getRecentUnlocks' | 'hasPasskey'>;
|
|
3
|
+
export type WalletSessionCommands = Pick<AuthCapability, 'authenticate' | 'prepareExternalAuth' | 'prepareExternalAssociation' | 'associateExternalAuth' | 'removeExternalAuth' | 'unlock' | 'unlockWithAuthMethod' | 'lock' | 'getSession' | 'getRecentUnlocks' | 'hasPasskey'>;
|
|
4
4
|
export type EmailOtpAuthCommands = Pick<AuthCapability, 'requestEmailCode' | 'unlockWithEmailCode' | 'startGoogleSignIn'>;
|
|
5
5
|
export declare function unlockWithEmailCode(args: Parameters<AuthCapability['unlockWithEmailCode']>[0]): ReturnType<AuthCapability['unlockWithEmailCode']>;
|
|
6
6
|
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -11,6 +11,7 @@ import type { RegisterWalletInput } from '../../../../shared-ts/src/utils/regist
|
|
|
11
11
|
import type { RegistrationSignerSetSelection } from '../../../../shared-ts/src/utils/registrationSignerPlan';
|
|
12
12
|
/** A registration request after public defaults are resolved. */
|
|
13
13
|
export type WalletRegistrationCommand = Omit<Parameters<RegistrationCapability['registerWallet']>[0], 'wallet' | 'signerSelection'> & {
|
|
14
|
+
readonly completion: import('../../../../shared-ts/src/utils/registrationIntent').RegistrationCompletion;
|
|
14
15
|
readonly wallet: RegisterWalletInput;
|
|
15
16
|
readonly signerSelection: RegistrationSignerSetSelection;
|
|
16
17
|
};
|
|
@@ -10,6 +10,8 @@ type ResolvedNearInput<T extends {
|
|
|
10
10
|
options: NonNullable<T['options']>;
|
|
11
11
|
};
|
|
12
12
|
export type NearCommands = {
|
|
13
|
+
ownerOperation: import('./ownerNearOperation').ExecuteOwnerNearOperation;
|
|
14
|
+
} & {
|
|
13
15
|
[K in NearSigningOperation]: (args: ResolvedNearInput<Parameters<NearSignerCapability[K]>[0]>) => ReturnType<NearSignerCapability[K]>;
|
|
14
16
|
};
|
|
15
17
|
export type CreateNearCommands = (dispatch: TransactionDispatch) => NearCommands;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type TransactionInput } from '../../core/types/actions';
|
|
2
|
+
import type { ActionResult } from '../../core/types/seams';
|
|
3
|
+
import type { ExternalWalletAuthentication } from '../../../../shared-ts/src/auth/externalAuth';
|
|
4
|
+
import type { ReadonlyExclusiveUnion } from '../../../../shared-ts/src/utils/variant';
|
|
5
|
+
import { type OwnerNearCommand, type OwnerNearOutcome, type OwnerNearRecovery } from '../walletIframe/shared/ownerNearOperation';
|
|
6
|
+
export type { OwnerNearOutcome, OwnerNearRecovery, } from '../walletIframe/shared/ownerNearOperation';
|
|
7
|
+
export type OwnerNearOperationState = Readonly<{
|
|
8
|
+
recovery: OwnerNearRecovery;
|
|
9
|
+
}> & ReadonlyExclusiveUnion<{
|
|
10
|
+
kind: 'prepared';
|
|
11
|
+
expiresAtMs: number;
|
|
12
|
+
} | {
|
|
13
|
+
kind: 'approval';
|
|
14
|
+
expiresAtMs: number;
|
|
15
|
+
} | {
|
|
16
|
+
kind: 'submitting';
|
|
17
|
+
} | {
|
|
18
|
+
kind: 'unknown';
|
|
19
|
+
} | {
|
|
20
|
+
kind: 'completed';
|
|
21
|
+
result: Extract<ActionResult, {
|
|
22
|
+
success: true;
|
|
23
|
+
}>;
|
|
24
|
+
} | {
|
|
25
|
+
kind: 'reverted';
|
|
26
|
+
transactionId: string;
|
|
27
|
+
error: string;
|
|
28
|
+
} | {
|
|
29
|
+
kind: 'cancelled';
|
|
30
|
+
} | {
|
|
31
|
+
kind: 'expired';
|
|
32
|
+
} | {
|
|
33
|
+
kind: 'failed';
|
|
34
|
+
error: string;
|
|
35
|
+
}>;
|
|
36
|
+
export interface OwnerNearOperation {
|
|
37
|
+
getState(): OwnerNearOperationState;
|
|
38
|
+
subscribe(listener: () => void): () => void;
|
|
39
|
+
approve(): Promise<OwnerNearOutcome>;
|
|
40
|
+
cancel(): void;
|
|
41
|
+
recover(): Promise<OwnerNearOutcome>;
|
|
42
|
+
}
|
|
43
|
+
export type PrepareOwnerNearTransaction = {
|
|
44
|
+
readonly authentication: ExternalWalletAuthentication;
|
|
45
|
+
readonly nearAccountId: string;
|
|
46
|
+
readonly transaction: TransactionInput;
|
|
47
|
+
};
|
|
48
|
+
export type ResumeOwnerNearTransaction = {
|
|
49
|
+
readonly authentication: ExternalWalletAuthentication;
|
|
50
|
+
readonly recovery: OwnerNearRecovery;
|
|
51
|
+
};
|
|
52
|
+
export type ExecuteOwnerNearOperation = (command: OwnerNearCommand, execution: {
|
|
53
|
+
readonly signal: AbortSignal;
|
|
54
|
+
readonly onSubmission: () => void;
|
|
55
|
+
}) => Promise<OwnerNearOutcome>;
|
|
56
|
+
export declare function prepareOwnerNearTransaction(execute: ExecuteOwnerNearOperation, input: PrepareOwnerNearTransaction): OwnerNearOperation;
|
|
57
|
+
export declare function resumeOwnerNearTransaction(execute: ExecuteOwnerNearOperation, input: ResumeOwnerNearTransaction): OwnerNearOperation;
|
|
58
|
+
//# sourceMappingURL=ownerNearOperation.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AuthMethodAvailability } from '../../core/authMethods/availabilityTypes';
|
|
2
2
|
import type { VoiceIdConfirmationOptions } from '../../core/authMethods/plugins';
|
|
3
3
|
import type { SdkLifecycleEventListener } from '../../core/types/sdkSentEvents';
|
|
4
|
+
import type { ExternalAuthenticateInput, ExternalAuthAttempt, ExternalAuthResult, ExternalWalletAuthentication } from '../../../../shared-ts/src/auth/externalAuth';
|
|
4
5
|
import type { HostedAuthMenuOpenRequest, HostedAuthMenuOutcome, HostedAuthMenuSessionId, HostedAuthMenuExternalAuthRequest, HostedAuthMenuExternalAuthResolutionInput } from '../walletIframe/shared/messages';
|
|
5
6
|
import type { NearAccountRef, TempoChainTarget, ThresholdEcdsaChainTarget, WalletSessionRef } from '../../core/signingEngine/interfaces/ecdsaChainTarget';
|
|
6
7
|
import type { EcdsaChainSelector, EvmChainSelector, TempoChainSelector } from './chainTargets';
|
|
@@ -24,7 +25,7 @@ import type { AddEmailOtpHooksOptions, AddEmailOtpResult } from '../operations/a
|
|
|
24
25
|
import type { RevokeAuthMethodResult } from '../operations/authMethods/revokeAuthMethod';
|
|
25
26
|
import type { WalletRecoveryBackupAcknowledgementResult, WalletRecoveryCodeStatusResult, WalletCustodyEmailOtpChallengeResult } from '../../core/rpcClients/relayer/walletRecoveryRotate';
|
|
26
27
|
import type { WalletRecoveryRotationAuthorization } from '../operations/recovery/walletRecoveryRotation';
|
|
27
|
-
import type {
|
|
28
|
+
import type { WalletOwnerAdminOperation } from '../../../../shared-ts/src/authorization/walletOwnerOperation';
|
|
28
29
|
import type { WalletRecoveryRotationOutcome } from '../../core/signingEngine/walletCustody/walletRecoveryRotation';
|
|
29
30
|
import type { EvmAddress, EvmBytes, EvmSigningRequest } from '../../core/signingEngine/chains/evm/evmSigning.types';
|
|
30
31
|
import type { TempoSigningRequest } from '../../core/signingEngine/chains/tempo/tempoSigning.types';
|
|
@@ -492,6 +493,14 @@ export type RequestEmailCodeInput = ExclusiveUnion<{
|
|
|
492
493
|
onEvent?: GoogleEmailOtpWalletAuthStartInput['onEvent'];
|
|
493
494
|
};
|
|
494
495
|
export interface AuthCapability {
|
|
496
|
+
authenticate(input: ExternalAuthenticateInput): Promise<ExternalAuthResult<ExternalWalletAuthentication>>;
|
|
497
|
+
prepareExternalAuth(walletId: string): Promise<ExternalAuthResult<ExternalAuthAttempt>>;
|
|
498
|
+
prepareExternalAssociation(walletId: string): Promise<ExternalAuthResult<ExternalAuthAttempt<'associate'>>>;
|
|
499
|
+
associateExternalAuth(input: ExternalAuthenticateInput): Promise<ExternalAuthResult<null>>;
|
|
500
|
+
removeExternalAuth(input: {
|
|
501
|
+
walletId: string;
|
|
502
|
+
associationId: string;
|
|
503
|
+
}): Promise<ExternalAuthResult<null>>;
|
|
495
504
|
unlockWithAuthMethod(args: {
|
|
496
505
|
walletId: WalletId | string;
|
|
497
506
|
walletAuthMethodId: string;
|
|
@@ -577,6 +586,14 @@ export interface RegistrationCapability {
|
|
|
577
586
|
walletId: WalletId | string;
|
|
578
587
|
walletAuthMethodId: string;
|
|
579
588
|
}): Promise<RevokeAuthMethodResult>;
|
|
589
|
+
registerOwnerWallet(args: {
|
|
590
|
+
authMethod: Extract<RegistrationAuthMethodInput, {
|
|
591
|
+
kind: 'passkey';
|
|
592
|
+
}>;
|
|
593
|
+
wallet?: RegisterWalletInput;
|
|
594
|
+
signerSelection: RegistrationSignerSetSelection;
|
|
595
|
+
options?: RegistrationHooksOptions;
|
|
596
|
+
}): Promise<RegistrationResult>;
|
|
580
597
|
registerWallet(args: {
|
|
581
598
|
authMethod: RegistrationAuthMethodInput;
|
|
582
599
|
/** Omit to let the server assign a new wallet ID. */
|
|
@@ -600,6 +617,8 @@ type NearSubjectInput = {
|
|
|
600
617
|
nearAccount?: NearAccountRef | string;
|
|
601
618
|
};
|
|
602
619
|
export interface NearSignerCapability {
|
|
620
|
+
prepareOwnerTransaction(input: import('./ownerNearOperation').PrepareOwnerNearTransaction): import('./ownerNearOperation').OwnerNearOperation;
|
|
621
|
+
resumeOwnerTransaction(input: import('./ownerNearOperation').ResumeOwnerNearTransaction): import('./ownerNearOperation').OwnerNearOperation;
|
|
603
622
|
/** Returns false only for an absent account; unavailable RPC reads reject. */
|
|
604
623
|
accountExists(accountId: string): Promise<boolean>;
|
|
605
624
|
signAndSendTransaction(args: NearSubjectInput & {
|
|
@@ -704,7 +723,7 @@ export interface RecoveryCapability {
|
|
|
704
723
|
requestWalletCustodyEmailOtpChallenge(args: {
|
|
705
724
|
walletId: string;
|
|
706
725
|
providerSubjectId: string;
|
|
707
|
-
operation:
|
|
726
|
+
operation: WalletOwnerAdminOperation;
|
|
708
727
|
payload: Record<string, unknown>;
|
|
709
728
|
requestOrigin?: string;
|
|
710
729
|
}): Promise<WalletCustodyEmailOtpChallengeResult>;
|
|
@@ -1,71 +1,70 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { OwnerNearCommand } from '../walletIframe/shared/ownerNearOperation';
|
|
2
|
+
import { type StoreNearThresholdKeyMaterialInput } from '../../core/accountData/near/keyMaterial';
|
|
3
|
+
import type { AuthMethodSessionInstaller, AuthMethodUnlockSuccess } from '../../core/authMethods/hostPlugin';
|
|
4
|
+
import { type ImportWalletCustodyEcdsaContinuityInput } from '../../core/indexedDB/seamsWalletDB/walletCustodyEcdsaContinuity';
|
|
2
5
|
import type { NearClient } from '../../core/rpcClients/near/NearClient';
|
|
6
|
+
import type { WalletRecoveryRegistrationOptions } from '../../core/rpcClients/relayer/walletRecoveryPrepare';
|
|
7
|
+
import type { WalletAddAuthMethodRegistrationOptions } from '../../core/rpcClients/relayer/walletRegistration';
|
|
8
|
+
import { WalletSessionStatusReadScope } from '../../core/rpcClients/relayer/walletSessionAuthorizationStatus';
|
|
9
|
+
import type { WorkerResourceWarmupAccountContext, WorkerResourceWarmupDiagnostics } from '../../core/signingEngine/assembly/warmup';
|
|
10
|
+
import type { EvmSignedResult } from '../../core/signingEngine/chains/evm/evmAdapter';
|
|
11
|
+
import type { EvmSigningRequest } from '../../core/signingEngine/chains/evm/evmSigning.types';
|
|
12
|
+
import type { TempoSignedResult } from '../../core/signingEngine/chains/tempo/tempoAdapter';
|
|
13
|
+
import type { TempoSigningRequest } from '../../core/signingEngine/chains/tempo/tempoSigning.types';
|
|
14
|
+
import type { SigningEngineExportKeypairWithUIInput, SigningEngineResolveExactKeyExportLaneInput, SigningEngineResolveExactKeyExportLaneResult } from '../../core/signingEngine/flows/recovery/public';
|
|
15
|
+
import * as registrationAccount from '../../core/signingEngine/flows/registration/accountLifecycle';
|
|
16
|
+
import { finalizeWalletRegistrationEcdsaSessions as finalizeWalletRegistrationEcdsaSessionsOperation } from '../../core/signingEngine/flows/registration/services/ecdsaRegistrationSessions';
|
|
17
|
+
import { type LoginWithEmailOtpEcdsaCapabilityInternalArgs, type LoginWithEmailOtpEcdsaCapabilityInternalResult, type PrepareEmailOtpRegistrationEnrollmentMaterialInternalArgs, type PrepareEmailOtpRegistrationEnrollmentMaterialInternalResult } from '../../core/signingEngine/flows/signEvmFamily/emailOtpPublic';
|
|
18
|
+
import { type ReconcileTempoNonceLaneArgs, type ReportTempoBroadcastAcceptedArgs, type ReportTempoBroadcastRejectedArgs, type ReportTempoDroppedOrReplacedArgs, type ReportTempoFinalizedArgs, type TempoNonceLaneStatus } from '../../core/signingEngine/flows/signEvmFamily/signEvmFamily';
|
|
19
|
+
import { type NearSignIntentRequest, type NearSignIntentResult } from '../../core/signingEngine/flows/signNear/signNear';
|
|
20
|
+
import { type ThresholdEcdsaChainTarget, type WalletId, type WalletSessionRef } from '../../core/signingEngine/interfaces/ecdsaChainTarget';
|
|
21
|
+
import type { NearEd25519YaoOperationMaterial } from '../../core/signingEngine/interfaces/near';
|
|
3
22
|
import type { NonceCoordinator } from '../../core/signingEngine/nonce/NonceCoordinator';
|
|
4
|
-
import { type
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
23
|
+
import { type EmailOtpAuthorityUnlockEd25519Request } from '../../core/signingEngine/session/emailOtp/walletUnlock';
|
|
24
|
+
import type { OwnerLaneScope } from '../../core/signingEngine/session/identity/signingLaneAuthBinding';
|
|
25
|
+
import type { EcdsaRoleLocalPersistedMaterialRef } from '../../core/signingEngine/session/keyMaterialBrands';
|
|
26
|
+
import type { EcdsaBootstrapRequest } from '../../core/signingEngine/session/passkey/ecdsaBootstrap';
|
|
27
|
+
import type { ConnectEd25519SessionArgs } from '../../core/signingEngine/session/passkey/public';
|
|
28
|
+
import type { ExactWalletSessionAuthorization } from '../../core/signingEngine/session/persistence/walletSessionAuthorizationProjection';
|
|
29
|
+
import type { AvailableSigningLanes, DiscoverPersistedSessionsForWalletInput, DiscoverPersistedSessionsForWalletResult, ReadAvailableSigningLanesInput } from '../../core/signingEngine/session/public';
|
|
9
30
|
import type { UserPreferencesManager } from '../../core/signingEngine/session/userPreferences';
|
|
10
|
-
import type
|
|
31
|
+
import { type RouterAbEcdsaDerivationLoginPresignaturePrefillResult } from '../../core/signingEngine/session/warmCapabilities/ecdsaLoginPrefill';
|
|
32
|
+
import * as warmCapabilitiesPublic from '../../core/signingEngine/session/warmCapabilities/public';
|
|
33
|
+
import type { ProvisionWarmEd25519CapabilityResult } from '../../core/signingEngine/session/warmCapabilities/types';
|
|
34
|
+
import type { RegistrationWebAuthnPromptOwner, ReservedRegistrationWebAuthnPrompt, WebAuthnPromptCancellation } from '../../core/signingEngine/stepUpConfirmation/passkeyPrompt/webauthnPromptCoordinator';
|
|
35
|
+
import type { ThresholdEcdsaSessionBootstrapResult } from '../../core/signingEngine/threshold/ecdsa/activation';
|
|
11
36
|
import type { Ed25519YaoActiveClientIdentityV1 } from '../../core/signingEngine/threshold/ed25519/yaoActiveClientRegistry';
|
|
37
|
+
import type { RouterAbEd25519YaoActiveClientMetadataV1 } from '../../core/signingEngine/threshold/ed25519/yaoClient';
|
|
12
38
|
import { type Ed25519YaoPublicCapabilityLaneReferenceV1, type Ed25519YaoPublicCapabilityReferenceV1 } from '../../core/signingEngine/threshold/ed25519/yaoPublicCapabilityReferences';
|
|
13
|
-
import type {
|
|
39
|
+
import type { PasskeyMpcSessionPort, UiConfirmSurfaceMeasurementBinding } from '../../core/signingEngine/uiConfirm/uiConfirm.types';
|
|
40
|
+
import type { LoginWithEmailOtpWalletCustodyEd25519Args } from '../../core/signingEngine/walletCustody/ed25519Login';
|
|
41
|
+
import { type WalletCustodyEd25519Projection } from '../../core/signingEngine/walletCustody/ed25519Projection';
|
|
42
|
+
import { type LoadedWalletCustodyEd25519MaterialV1, type WalletCustodyEd25519MaterialBindingV1, type WalletCustodySealedEd25519MaterialV1 } from '../../core/signingEngine/walletCustody/ed25519SeedMaterial';
|
|
43
|
+
import type { WalletCustodyCacheEnvelopeV1 } from '../../core/signingEngine/walletCustody/openCustodyCache';
|
|
14
44
|
import { establishEvmFamilyCustodyV1, joinEvmFamilyCustodyV1 } from '../../core/signingEngine/walletCustody/registrationCeremony';
|
|
45
|
+
import { type WalletRecoveryReplacementCredential } from '../../core/signingEngine/walletCustody/walletRecoveryCredential';
|
|
15
46
|
import { type WalletSessionEd25519RecoveryBasisV1 } from '../../core/signingEngine/walletCustody/walletRecoveryEd25519';
|
|
16
47
|
import { recoverWalletCustodyManifestV1 } from '../../core/signingEngine/walletCustody/walletRecoveryManifest';
|
|
17
|
-
import { type LoadedWalletCustodyEd25519MaterialV1, type WalletCustodyEd25519MaterialBindingV1, type WalletCustodySealedEd25519MaterialV1 } from '../../core/signingEngine/walletCustody/ed25519SeedMaterial';
|
|
18
|
-
import type { EstablishWalletCustodyNearEd25519KeySetArgs, EstablishedWalletCustodyEvmFamilyKeySetV1, EstablishedWalletCustodyNearEd25519KeySetV1, JoinedWalletCustodyNearEd25519KeySetV1, JoinedWalletCustodyEvmFamilyKeySetV1, RejoinedWalletCustodyEvmFamilyKeySetV1, EmailOtpOwnerConfirmationPurpose } from './ports';
|
|
19
|
-
import { type RouterAbEd25519YaoRegistrationAdmissionRequestV1 } from '../../../../shared-ts/src/utils/routerAbEd25519Yao';
|
|
20
|
-
import type { RouterAbTraceContextV1 } from '../../../../shared-ts/src/utils/routerAbTraceContext';
|
|
21
|
-
import type { SignerWorkerKind, SignerWorkerOperationRequest, SignerWorkerOperationResult, SignerWorkerOperationType, EmailOtpYaoPrewarmRequest, EmailOtpYaoPrewarmOutcome } from '../../core/signingEngine/workerManager/workerTypes';
|
|
22
|
-
import type { WorkerOperationContext } from '../../core/signingEngine/workerManager/executeWorkerOperation';
|
|
23
|
-
import { type ImportWalletCustodyEcdsaContinuityInput } from '../../core/indexedDB/seamsWalletDB/walletCustodyEcdsaContinuity';
|
|
24
|
-
import type { EcdsaRoleLocalPersistedMaterialRef } from '../../core/signingEngine/session/keyMaterialBrands';
|
|
25
|
-
import type { PasskeyMpcSessionPort, UiConfirmSurfaceMeasurementBinding } from '../../core/signingEngine/uiConfirm/uiConfirm.types';
|
|
26
48
|
import type { WebAuthnAllowCredential } from '../../core/signingEngine/webauthnAuth/credentials/collectAuthenticationCredentialForChallengeB64u';
|
|
27
|
-
import type {
|
|
28
|
-
import type { EvmSignedResult } from '../../core/signingEngine/chains/evm/evmAdapter';
|
|
29
|
-
import type { TempoSigningRequest } from '../../core/signingEngine/chains/tempo/tempoSigning.types';
|
|
30
|
-
import type { TempoSignedResult } from '../../core/signingEngine/chains/tempo/tempoAdapter';
|
|
31
|
-
import type { EcdsaBootstrapRequest } from '../../core/signingEngine/session/passkey/ecdsaBootstrap';
|
|
32
|
-
import { type ThresholdEcdsaChainTarget, type WalletId, type WalletSessionRef } from '../../core/signingEngine/interfaces/ecdsaChainTarget';
|
|
33
|
-
import { type RouterAbEcdsaDerivationLoginPresignaturePrefillResult } from '../../core/signingEngine/session/warmCapabilities/ecdsaLoginPrefill';
|
|
34
|
-
import { type NearSignIntentRequest, type NearSignIntentResult } from '../../core/signingEngine/flows/signNear/signNear';
|
|
35
|
-
import { type StoreNearThresholdKeyMaterialInput } from '../../core/accountData/near/keyMaterial';
|
|
36
|
-
import type { WalletAuthMethodId } from '../../../../shared-ts/src/utils/domainIds';
|
|
37
|
-
import { type WalletAuthAuthorityRef } from '../../../../shared-ts/src/utils/walletAuthAuthority';
|
|
38
|
-
import { type MpcMaterialActivationRef } from '../../../../shared-ts/src/utils/domainIds';
|
|
39
|
-
import { WalletSessionStatusReadScope } from '../../core/rpcClients/relayer/walletSessionAuthorizationStatus';
|
|
40
|
-
import { type ReconcileTempoNonceLaneArgs, type ReportTempoBroadcastAcceptedArgs, type ReportTempoBroadcastRejectedArgs, type ReportTempoDroppedOrReplacedArgs, type ReportTempoFinalizedArgs, type TempoNonceLaneStatus } from '../../core/signingEngine/flows/signEvmFamily/signEvmFamily';
|
|
41
|
-
import type { SigningEngineResolveExactKeyExportLaneInput, SigningEngineResolveExactKeyExportLaneResult, SigningEngineExportKeypairWithUIInput } from '../../core/signingEngine/flows/recovery/public';
|
|
49
|
+
import type { WorkerOperationContext } from '../../core/signingEngine/workerManager/executeWorkerOperation';
|
|
42
50
|
import type { RegistrationCredentialConfirmationPayload } from '../../core/signingEngine/workerManager/validation';
|
|
51
|
+
import type { EmailOtpEd25519YaoRecoveryBootstrapV1, EmailOtpYaoPrewarmOutcome, EmailOtpYaoPrewarmRequest, SignerWorkerKind, SignerWorkerOperationRequest, SignerWorkerOperationResult, SignerWorkerOperationType, UnlockedWalletEd25519ExportRootCapabilityDestroyScopeV1 } from '../../core/signingEngine/workerManager/workerTypes';
|
|
52
|
+
import type { WebAuthnAuthenticationCredential } from '../../core/types';
|
|
53
|
+
import { type AccountId } from '../../core/types/accountIds';
|
|
54
|
+
import type { SdkLifecycleEvent, SdkLifecycleEventListener, SigningFlowEvent } from '../../core/types/sdkSentEvents';
|
|
55
|
+
import type { AppearanceConfig, SeamsConfigsReadonly, SigningSessionStatus, WalletAuthenticationState } from '../../core/types/seams';
|
|
43
56
|
import type { ConfirmationConfig } from '../../core/types/signer-worker';
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import type { ExactWalletSessionAuthorization } from '../../core/signingEngine/session/persistence/walletSessionAuthorizationProjection';
|
|
47
|
-
import type { ProvisionWarmEd25519CapabilityResult } from '../../core/signingEngine/session/warmCapabilities/types';
|
|
48
|
-
import type { LoginWithEmailOtpWalletCustodyEd25519Args } from '../../core/signingEngine/walletCustody/ed25519Login';
|
|
49
|
-
import { type EmailOtpAuthorityUnlockEd25519Request } from '../../core/signingEngine/session/emailOtp/walletUnlock';
|
|
50
|
-
import type { WalletCustodyCacheEnvelopeV1 } from '../../core/signingEngine/walletCustody/openCustodyCache';
|
|
51
|
-
import { type WalletCustodyEd25519Projection } from '../../core/signingEngine/walletCustody/ed25519Projection';
|
|
52
|
-
import type { NearEd25519SignerBinding } from '../../../../shared-ts/src/utils/walletCapabilityBindings';
|
|
53
|
-
import type { OwnerLaneScope } from '../../core/signingEngine/session/identity/signingLaneAuthBinding';
|
|
54
|
-
import type { EmailOtpEd25519YaoRecoveryBootstrapV1 } from '../../core/signingEngine/workerManager/workerTypes';
|
|
55
|
-
import type { RouterAbEd25519YaoActiveClientMetadataV1 } from '../../core/signingEngine/threshold/ed25519/yaoClient';
|
|
56
|
-
import type { DiscoverPersistedSessionsForWalletInput, DiscoverPersistedSessionsForWalletResult, ReadAvailableSigningLanesInput, AvailableSigningLanes } from '../../core/signingEngine/session/public';
|
|
57
|
-
import * as warmCapabilitiesPublic from '../../core/signingEngine/session/warmCapabilities/public';
|
|
58
|
-
import type { ConnectEd25519SessionArgs } from '../../core/signingEngine/session/passkey/public';
|
|
57
|
+
import type { WebAuthnRegistrationCredential } from '../../core/types/webauthn';
|
|
58
|
+
import type { WalletSessionHome } from '../../../../shared-ts/src/device-linking/contracts';
|
|
59
59
|
import { type PasskeyCustodyEnvelopeRecord } from '../../../../shared-ts/src/passkey-custody';
|
|
60
|
-
import type {
|
|
60
|
+
import type { WalletAuthMethodId } from '../../../../shared-ts/src/utils/domainIds';
|
|
61
|
+
import { type MpcMaterialActivationRef } from '../../../../shared-ts/src/utils/domainIds';
|
|
62
|
+
import { type RouterAbEd25519YaoRegistrationAdmissionRequestV1 } from '../../../../shared-ts/src/utils/routerAbEd25519Yao';
|
|
63
|
+
import type { RouterAbTraceContextV1 } from '../../../../shared-ts/src/utils/routerAbTraceContext';
|
|
64
|
+
import { type WalletAuthAuthorityRef } from '../../../../shared-ts/src/utils/walletAuthAuthority';
|
|
65
|
+
import type { NearEd25519SignerBinding } from '../../../../shared-ts/src/utils/walletCapabilityBindings';
|
|
61
66
|
import type { BrowserSigningSurfaceConstructorDeps } from '../assembly/browserSigningSurfacePorts';
|
|
62
|
-
import {
|
|
63
|
-
import type { WorkerResourceWarmupAccountContext, WorkerResourceWarmupDiagnostics } from '../../core/signingEngine/assembly/warmup';
|
|
64
|
-
import type { WebAuthnRegistrationCredential } from '../../core/types/webauthn';
|
|
65
|
-
import type { WalletRecoveryRegistrationOptions } from '../../core/rpcClients/relayer/walletRecoveryPrepare';
|
|
66
|
-
import type { WalletAddAuthMethodRegistrationOptions } from '../../core/rpcClients/relayer/walletRegistration';
|
|
67
|
-
import { type WalletRecoveryReplacementCredential } from '../../core/signingEngine/walletCustody/walletRecoveryCredential';
|
|
68
|
-
import type { RegistrationWebAuthnPromptOwner, ReservedRegistrationWebAuthnPrompt, WebAuthnPromptCancellation } from '../../core/signingEngine/stepUpConfirmation/passkeyPrompt/webauthnPromptCoordinator';
|
|
67
|
+
import type { EmailOtpOwnerConfirmationPurpose, EstablishedWalletCustodyEvmFamilyKeySetV1, EstablishedWalletCustodyNearEd25519KeySetV1, EstablishWalletCustodyNearEd25519KeySetArgs, JoinedWalletCustodyEvmFamilyKeySetV1, JoinedWalletCustodyNearEd25519KeySetV1, RejoinedWalletCustodyEvmFamilyKeySetV1 } from './ports';
|
|
69
68
|
type EmailOtpEd25519CustodyCapabilityActivationArgs = {
|
|
70
69
|
readonly commitQueue: 'acquire' | 'already_acquired';
|
|
71
70
|
readonly walletSession: WalletSessionRef;
|
|
@@ -295,6 +294,9 @@ export declare class BrowserSigningSurface {
|
|
|
295
294
|
setWalletIframeSurfaceMeasurementBinding(binding: UiConfirmSurfaceMeasurementBinding): void;
|
|
296
295
|
getWalletIframeSurfaceMeasurementBinding(): UiConfirmSurfaceMeasurementBinding;
|
|
297
296
|
getUserPreferences(): UserPreferencesManager;
|
|
297
|
+
signNearOwnerTransaction(command: Extract<OwnerNearCommand, {
|
|
298
|
+
action: 'approve';
|
|
299
|
+
}>, assertCurrent: () => void, onEvent: (event: SigningFlowEvent) => void): Promise<import("../../core/types").SignTransactionResult>;
|
|
298
300
|
signNear<TRequest extends NearSignIntentRequest>(request: TRequest): Promise<NearSignIntentResult<TRequest>>;
|
|
299
301
|
private terminateWalletStateAfterSigningFailure;
|
|
300
302
|
private ensureNearEd25519YaoCapabilityForSigning;
|
|
@@ -313,7 +315,6 @@ export declare class BrowserSigningSurface {
|
|
|
313
315
|
private authorizeAndRehydrateEmailOtpEd25519OperationMaterial;
|
|
314
316
|
private resolveExactNearEd25519YaoSigningHydration;
|
|
315
317
|
private prepareExactPasskeyEd25519YaoOperationStepUpForSigning;
|
|
316
|
-
private rehydratePreparedPasskeyEd25519YaoOperationStepUp;
|
|
317
318
|
private resolveExactPasskeyEd25519YaoExportContext;
|
|
318
319
|
private resolveLinkedPasskeyEd25519YaoExportContext;
|
|
319
320
|
private readExactEmailOtpEd25519ExportAuthorization;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SigningOperationId } from '../../core/signingEngine/session/operationState/types';
|
|
2
|
+
import type { WalletId } from '../../core/signingEngine/interfaces/ecdsaChainTarget';
|
|
3
|
+
import type { NearSigningApiDeps } from '../../core/signingEngine/interfaces/operationDeps';
|
|
4
|
+
import type { Ed25519YaoPublicCapabilityReferenceStorePort } from '../../core/signingEngine/threshold/ed25519/yaoPublicCapabilityReferences';
|
|
5
|
+
import type { AccountId } from '../../core/types/accountIds';
|
|
6
|
+
type OwnerOperationInput = {
|
|
7
|
+
readonly operationId: SigningOperationId;
|
|
8
|
+
readonly walletId: WalletId;
|
|
9
|
+
readonly nearAccountId: AccountId;
|
|
10
|
+
readonly relayerUrl: string;
|
|
11
|
+
readonly assertCurrent: () => void;
|
|
12
|
+
};
|
|
13
|
+
/** This projection contains durable material and fresh owner proof. It has no reusable authority. */
|
|
14
|
+
export declare function createNearOwnerOperationDeps(base: NearSigningApiDeps, lanes: Pick<Ed25519YaoPublicCapabilityReferenceStorePort, 'listLanes'>, input: OwnerOperationInput): Promise<NearSigningApiDeps>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=nearOwnerOperation.d.ts.map
|