@dynamic-labs-sdk/client 1.30.2 → 1.31.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/{updateAuthFromVerifyResponse-CTvWpZLa.native.esm.js → apiClient-DpzKqY39.native.esm.js} +557 -465
- package/dist/apiClient-DpzKqY39.native.esm.js.map +1 -0
- package/dist/client/types/DynamicClient.d.ts +1 -1
- package/dist/client/types/DynamicClient.d.ts.map +1 -1
- package/dist/core.cjs +121 -61
- package/dist/core.cjs.map +1 -1
- package/dist/core.esm.js +64 -6
- package/dist/core.esm.js.map +1 -1
- package/dist/core.native.esm.js +64 -6
- package/dist/core.native.esm.js.map +1 -1
- package/dist/errors/WaasRbacStaleRetryUnsafeError.d.ts +36 -0
- package/dist/errors/WaasRbacStaleRetryUnsafeError.d.ts.map +1 -0
- package/dist/exports/core.d.ts +6 -0
- package/dist/exports/core.d.ts.map +1 -1
- package/dist/exports/index.d.ts +16 -4
- package/dist/exports/index.d.ts.map +1 -1
- package/dist/exports/waas.d.ts +3 -2
- package/dist/exports/waas.d.ts.map +1 -1
- package/dist/{getNetworkProviderFromNetworkId-CamHn2s3.esm.js → getNetworkProviderFromNetworkId-BN2jUhHm.esm.js} +8 -3
- package/dist/getNetworkProviderFromNetworkId-BN2jUhHm.esm.js.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId-igDf2OPy.cjs → getNetworkProviderFromNetworkId-BoNAPSjx.cjs} +62 -51
- package/dist/getNetworkProviderFromNetworkId-BoNAPSjx.cjs.map +1 -0
- package/dist/{getNetworkProviderFromNetworkId--X0cb1ad.native.esm.js → getNetworkProviderFromNetworkId-DUym3Qq0.native.esm.js} +9 -4
- package/dist/getNetworkProviderFromNetworkId-DUym3Qq0.native.esm.js.map +1 -0
- package/dist/{getSignedSessionId-DGa_pu-i.cjs → getSignedSessionId-9ADIJCl1.cjs} +11 -11
- package/dist/{getSignedSessionId-DGa_pu-i.cjs.map → getSignedSessionId-9ADIJCl1.cjs.map} +1 -1
- package/dist/{getSignedSessionId--XNTxNFo.native.esm.js → getSignedSessionId-Dr4Ic68X.native.esm.js} +3 -3
- package/dist/{getSignedSessionId--XNTxNFo.native.esm.js.map → getSignedSessionId-Dr4Ic68X.native.esm.js.map} +1 -1
- package/dist/{getSignedSessionId-DY-ietfO.esm.js → getSignedSessionId-DxpqG4pv.esm.js} +3 -3
- package/dist/{getSignedSessionId-DY-ietfO.esm.js.map → getSignedSessionId-DxpqG4pv.esm.js.map} +1 -1
- package/dist/{getWalletProviderByKey-DzpmoNlv.cjs → getVerifiedCredentialForWalletAccount-C2o5idph.cjs} +10 -10
- package/dist/getVerifiedCredentialForWalletAccount-C2o5idph.cjs.map +1 -0
- package/dist/{getWalletProviderByKey-xqyD3ybv.esm.js → getVerifiedCredentialForWalletAccount-Cjwoeej7.esm.js} +10 -10
- package/dist/getVerifiedCredentialForWalletAccount-Cjwoeej7.esm.js.map +1 -0
- package/dist/index.cjs +677 -672
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +47 -23
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.esm.js +47 -23
- package/dist/index.native.esm.js.map +1 -1
- package/dist/{isMfaRequiredForAction-CatS60F6.esm.js → isMfaRequiredForAction-BIBmJbV9.esm.js} +2 -2
- package/dist/isMfaRequiredForAction-BIBmJbV9.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-BcJvy7Gw.native.esm.js → isMfaRequiredForAction-DuSU67yq.native.esm.js} +2 -2
- package/dist/isMfaRequiredForAction-DuSU67yq.native.esm.js.map +1 -0
- package/dist/{isMfaRequiredForAction-DKfoMhEk.cjs → isMfaRequiredForAction-yM84r7l7.cjs} +11 -11
- package/dist/isMfaRequiredForAction-yM84r7l7.cjs.map +1 -0
- package/dist/{isUserOnboardingComplete-BWVuE4Jg.native.esm.js → isUserOnboardingComplete-B2Ha2dkP.esm.js} +47 -4
- package/dist/isUserOnboardingComplete-B2Ha2dkP.esm.js.map +1 -0
- package/dist/{isUserOnboardingComplete-jv_idxWY.cjs → isUserOnboardingComplete-BRTOnK8V.cjs} +63 -14
- package/dist/isUserOnboardingComplete-BRTOnK8V.cjs.map +1 -0
- package/dist/{isUserOnboardingComplete-jkAQQVdP.esm.js → isUserOnboardingComplete-DCIlkCub.native.esm.js} +47 -4
- package/dist/isUserOnboardingComplete-DCIlkCub.native.esm.js.map +1 -0
- package/dist/{updateAuthFromVerifyResponse-BLgNMqwN.esm.js → logoutWithReason-DV89zJmJ.esm.js} +679 -587
- package/dist/logoutWithReason-DV89zJmJ.esm.js.map +1 -0
- package/dist/{updateAuthFromVerifyResponse-Dsw-eAro.cjs → logoutWithReason-DlA15deT.cjs} +691 -587
- package/dist/logoutWithReason-DlA15deT.cjs.map +1 -0
- package/dist/{getWalletProviderByKey-Cl6WDOoD.native.esm.js → logoutWithReason-HqGlUccb.native.esm.js} +19 -19
- package/dist/logoutWithReason-HqGlUccb.native.esm.js.map +1 -0
- package/dist/migrateFromFireblocks-CiOS4_Nq.esm.js +128 -0
- package/dist/migrateFromFireblocks-CiOS4_Nq.esm.js.map +1 -0
- package/dist/migrateFromFireblocks-CqIpxGRS.cjs +163 -0
- package/dist/migrateFromFireblocks-CqIpxGRS.cjs.map +1 -0
- package/dist/migrateFromFireblocks-DnQsGmIW.native.esm.js +128 -0
- package/dist/migrateFromFireblocks-DnQsGmIW.native.esm.js.map +1 -0
- package/dist/modules/apiClient/apiClient.types.d.ts +1 -1
- package/dist/modules/apiClient/apiClient.types.d.ts.map +1 -1
- package/dist/modules/apiClient/createApiClient.d.ts.map +1 -1
- package/dist/modules/apiClient/utils/rbacStaleMiddleware/createRbacStaleMiddleware.d.ts +10 -0
- package/dist/modules/apiClient/utils/rbacStaleMiddleware/createRbacStaleMiddleware.d.ts.map +1 -0
- package/dist/modules/auth/auth.types.d.ts +45 -0
- package/dist/modules/auth/auth.types.d.ts.map +1 -0
- package/dist/modules/auth/checkStepUpAuth/checkStepUpAuth.d.ts +2 -1
- package/dist/modules/auth/checkStepUpAuth/checkStepUpAuth.d.ts.map +1 -1
- package/dist/modules/auth/consts.d.ts +9 -0
- package/dist/modules/auth/consts.d.ts.map +1 -1
- package/dist/modules/auth/createVisit/createVisit.d.ts.map +1 -1
- package/dist/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.d.ts +1 -1
- package/dist/modules/auth/externalAuth/requestExternalAuthElevatedToken/requestExternalAuthElevatedToken.d.ts.map +1 -1
- package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts +1 -1
- package/dist/modules/auth/externalAuth/signInWithExternalJwt/signInWithExternalJwt.d.ts.map +1 -1
- package/dist/modules/auth/getActionAuthorizationTokens/getActionAuthorizationTokens.d.ts +2 -1
- package/dist/modules/auth/getActionAuthorizationTokens/getActionAuthorizationTokens.d.ts.map +1 -1
- package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.d.ts +4 -3
- package/dist/modules/auth/mergeUserAccounts/mergeUserAccounts.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/getPasskeys/getPasskeys.d.ts +1 -1
- package/dist/modules/auth/passkeys/getPasskeys/getPasskeys.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts +2 -1
- package/dist/modules/auth/passkeys/registerPasskey/registerPasskey.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.d.ts +3 -1
- package/dist/modules/auth/passkeys/serverAuthenticatePasskey/serverAuthenticatePasskey.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.d.ts +2 -1
- package/dist/modules/auth/passkeys/serverRegisterPasskey/serverRegisterPasskey.d.ts.map +1 -1
- package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts +1 -1
- package/dist/modules/auth/passkeys/signInWithPasskey/signInWithPasskey.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/completeSocialAuthentication/completeSocialAuthentication.d.ts +1 -1
- package/dist/modules/auth/social/oauth/completeSocialAuthentication/completeSocialAuthentication.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.types.d.ts +1 -1
- package/dist/modules/auth/social/oauth/completeSocialRedirect/completeSocialRedirect.types.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts +1 -1
- package/dist/modules/auth/social/oauth/processSocialCallback/processSocialCallback.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.types.d.ts +1 -1
- package/dist/modules/auth/social/oauth/signInWithSocialPopUp/signInWithSocialPopUp.types.d.ts.map +1 -1
- package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts +1 -1
- package/dist/modules/auth/social/oauth/unlinkSocialAccount/unlinkSocialAccount.d.ts.map +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.d.ts +1 -1
- package/dist/modules/auth/updateAuthFromVerifyResponse/updateAuthFromVerifyResponse.d.ts.map +1 -1
- package/dist/modules/balances/balances.types.d.ts +59 -0
- package/dist/modules/balances/balances.types.d.ts.map +1 -0
- package/dist/modules/balances/getMultichainTokenBalances/getMultichainTokenBalances.d.ts +1 -1
- package/dist/modules/balances/getMultichainTokenBalances/getMultichainTokenBalances.d.ts.map +1 -1
- package/dist/modules/balances/getTokenBalances/getTokenBalances.d.ts +1 -1
- package/dist/modules/balances/getTokenBalances/getTokenBalances.d.ts.map +1 -1
- package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts +1 -1
- package/dist/modules/checkout/broadcastCheckoutTransaction/broadcastCheckoutTransaction.d.ts.map +1 -1
- package/dist/modules/checkout/checkout.types.d.ts +10 -2
- package/dist/modules/checkout/checkout.types.d.ts.map +1 -1
- package/dist/modules/deviceRegistration/completeDeviceRegistration/completeDeviceRegistration.d.ts +1 -1
- package/dist/modules/deviceRegistration/completeDeviceRegistration/completeDeviceRegistration.d.ts.map +1 -1
- package/dist/modules/deviceRegistration/deviceRegistration.types.d.ts +9 -0
- package/dist/modules/deviceRegistration/deviceRegistration.types.d.ts.map +1 -0
- package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts +1 -1
- package/dist/modules/deviceRegistration/getRegisteredDevices/getRegisteredDevices.d.ts.map +1 -1
- package/dist/modules/funding/coinbase/coinbase.types.d.ts +2 -40
- package/dist/modules/funding/coinbase/coinbase.types.d.ts.map +1 -1
- package/dist/modules/funding/coinbase/createCoinbaseExchangeTransfer/createCoinbaseExchangeTransfer.d.ts +1 -1
- package/dist/modules/funding/coinbase/createCoinbaseExchangeTransfer/createCoinbaseExchangeTransfer.d.ts.map +1 -1
- package/dist/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.d.ts +2 -2
- package/dist/modules/funding/coinbase/utils/validateUserCredentialsForCoinbaseOnrampOrder/validateUserCredentialsForCoinbaseOnrampOrder.d.ts.map +1 -1
- package/dist/modules/funding/cryptoDotCom/cryptoDotCom.types.d.ts +2 -2
- package/dist/modules/funding/cryptoDotCom/cryptoDotCom.types.d.ts.map +1 -1
- package/dist/modules/funding/funding.types.d.ts +26 -0
- package/dist/modules/funding/funding.types.d.ts.map +1 -0
- package/dist/modules/funding/kraken/createKrakenExchangeTransfer/createKrakenExchangeTransfer.d.ts +4 -4
- package/dist/modules/funding/kraken/createKrakenExchangeTransfer/createKrakenExchangeTransfer.d.ts.map +1 -1
- package/dist/modules/mfa/authenticateMfaRecoveryCode/authenticateMfaRecoveryCode.d.ts +3 -1
- package/dist/modules/mfa/authenticateMfaRecoveryCode/authenticateMfaRecoveryCode.d.ts.map +1 -1
- package/dist/modules/mfa/authenticatePasskeyMFA/authenticatePasskeyMFA.d.ts +3 -1
- package/dist/modules/mfa/authenticatePasskeyMFA/authenticatePasskeyMFA.d.ts.map +1 -1
- package/dist/modules/mfa/authenticateTotpMfaDevice/authenticateTotpMfaDevice.d.ts +3 -1
- package/dist/modules/mfa/authenticateTotpMfaDevice/authenticateTotpMfaDevice.d.ts.map +1 -1
- package/dist/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.d.ts +1 -1
- package/dist/modules/mfa/createNewMfaRecoveryCodes/createNewMfaRecoveryCodes.d.ts.map +1 -1
- package/dist/modules/mfa/getMfaDevices/getMfaDevices.d.ts +1 -1
- package/dist/modules/mfa/getMfaDevices/getMfaDevices.d.ts.map +1 -1
- package/dist/modules/mfa/getMfaMethods/getMfaMethods.d.ts +1 -1
- package/dist/modules/mfa/getMfaMethods/getMfaMethods.d.ts.map +1 -1
- package/dist/modules/mfa/getMfaRecoveryCodes/getMfaRecoveryCodes.d.ts +1 -1
- package/dist/modules/mfa/getMfaRecoveryCodes/getMfaRecoveryCodes.d.ts.map +1 -1
- package/dist/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.d.ts +1 -1
- package/dist/modules/mfa/isMfaRequiredForAction/isMfaRequiredForAction.d.ts.map +1 -1
- package/dist/modules/mfa/mfa.consts.d.ts +10 -0
- package/dist/modules/mfa/mfa.consts.d.ts.map +1 -0
- package/dist/modules/mfa/mfa.types.d.ts +66 -1
- package/dist/modules/mfa/mfa.types.d.ts.map +1 -1
- package/dist/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.d.ts +1 -1
- package/dist/modules/mfa/registerTotpMfaDevice/registerTotpMfaDevice.d.ts.map +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTP.d.ts +2 -1
- package/dist/modules/otp/verifyOTP/verifyOTP.d.ts.map +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.d.ts +1 -1
- package/dist/modules/otp/verifyOTP/verifyOTPForUserSignIn/verifyOTPForUserSignIn.d.ts.map +1 -1
- package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts +1 -1
- package/dist/modules/projectSettings/fetchProjectSettings/fetchProjectSettings.d.ts.map +1 -1
- package/dist/modules/projectSettings/projectSettings.types.d.ts +15 -0
- package/dist/modules/projectSettings/projectSettings.types.d.ts.map +1 -0
- package/dist/modules/simulation/simulation.types.d.ts +27 -1
- package/dist/modules/simulation/simulation.types.d.ts.map +1 -1
- package/dist/modules/storageSync/schema.d.ts +2 -2
- package/dist/modules/storageSync/schema.d.ts.map +1 -1
- package/dist/modules/swap/swap.types.d.ts +15 -2
- package/dist/modules/swap/swap.types.d.ts.map +1 -1
- package/dist/modules/user/refreshAuth/refreshAuth.d.ts +2 -2
- package/dist/modules/user/refreshAuth/refreshAuth.d.ts.map +1 -1
- package/dist/modules/user/refreshUser/refreshUser.d.ts +3 -3
- package/dist/modules/user/refreshUser/refreshUser.d.ts.map +1 -1
- package/dist/modules/user/user.consts.d.ts +19 -0
- package/dist/modules/user/user.consts.d.ts.map +1 -0
- package/dist/modules/user/user.types.d.ts +22 -2
- package/dist/modules/user/user.types.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts +4 -2
- package/dist/modules/waas/businessAccounts/addBusinessAccountSigner/addBusinessAccountSigner.d.ts.map +1 -1
- package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts +1 -1
- package/dist/modules/waas/businessAccounts/businessAccounts.types.d.ts.map +1 -1
- package/dist/modules/waas/createWaasProvider/createWaasProvider.d.ts.map +1 -1
- package/dist/modules/waas/getWalletAccountShareSets/getWalletAccountShareSets.d.ts +2 -2
- package/dist/modules/waas/getWalletAccountShareSets/getWalletAccountShareSets.d.ts.map +1 -1
- package/dist/modules/waas/injectWaasVerifiedCredentialFields/injectWaasVerifiedCredentialFields.d.ts +3 -1
- package/dist/modules/waas/injectWaasVerifiedCredentialFields/injectWaasVerifiedCredentialFields.d.ts.map +1 -1
- package/dist/modules/waas/policies/applyPolicyLayerBatch/applyPolicyLayerBatch.d.ts +2 -1
- package/dist/modules/waas/policies/applyPolicyLayerBatch/applyPolicyLayerBatch.d.ts.map +1 -1
- package/dist/modules/waas/policies/buildAllowAddressesRule/buildAllowAddressesRule.d.ts +1 -2
- package/dist/modules/waas/policies/buildAllowAddressesRule/buildAllowAddressesRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/buildAllowPolicyRule/buildAllowPolicyRule.d.ts +1 -2
- package/dist/modules/waas/policies/buildAllowPolicyRule/buildAllowPolicyRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/buildBlockExportRule/buildBlockExportRule.d.ts +1 -2
- package/dist/modules/waas/policies/buildBlockExportRule/buildBlockExportRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/buildDenyAddressesRule/buildDenyAddressesRule.d.ts +1 -2
- package/dist/modules/waas/policies/buildDenyAddressesRule/buildDenyAddressesRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/buildDenyPolicyRule/buildDenyPolicyRule.d.ts +1 -2
- package/dist/modules/waas/policies/buildDenyPolicyRule/buildDenyPolicyRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/buildMaxAmountPerTransactionRule/buildMaxAmountPerTransactionRule.d.ts +1 -2
- package/dist/modules/waas/policies/buildMaxAmountPerTransactionRule/buildMaxAmountPerTransactionRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/buildOperationForExistingRule/buildOperationForExistingRule.d.ts +3 -2
- package/dist/modules/waas/policies/buildOperationForExistingRule/buildOperationForExistingRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/buildOperationsForRule/buildOperationsForRule.d.ts +2 -2
- package/dist/modules/waas/policies/buildOperationsForRule/buildOperationsForRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/createPolicy/createPolicy.d.ts +2 -1
- package/dist/modules/waas/policies/createPolicy/createPolicy.d.ts.map +1 -1
- package/dist/modules/waas/policies/desugarPolicyRules/desugarPolicyRules.d.ts +1 -2
- package/dist/modules/waas/policies/desugarPolicyRules/desugarPolicyRules.d.ts.map +1 -1
- package/dist/modules/waas/policies/expandPolicyRules/expandPolicyRules.d.ts +2 -2
- package/dist/modules/waas/policies/expandPolicyRules/expandPolicyRules.d.ts.map +1 -1
- package/dist/modules/waas/policies/fillOmittedRuleValues/fillOmittedRuleValues.d.ts +1 -2
- package/dist/modules/waas/policies/fillOmittedRuleValues/fillOmittedRuleValues.d.ts.map +1 -1
- package/dist/modules/waas/policies/findMatchedRuleKind/findMatchedRuleKind.d.ts +1 -2
- package/dist/modules/waas/policies/findMatchedRuleKind/findMatchedRuleKind.d.ts.map +1 -1
- package/dist/modules/waas/policies/getAccountPolicyLayer/getAccountPolicyLayer.d.ts +1 -1
- package/dist/modules/waas/policies/getAccountPolicyLayer/getAccountPolicyLayer.d.ts.map +1 -1
- package/dist/modules/waas/policies/getPolicy/getPolicy.d.ts +2 -2
- package/dist/modules/waas/policies/getPolicy/getPolicy.d.ts.map +1 -1
- package/dist/modules/waas/policies/getResolvedPolicyLayer/getResolvedPolicyLayer.d.ts +1 -1
- package/dist/modules/waas/policies/getResolvedPolicyLayer/getResolvedPolicyLayer.d.ts.map +1 -1
- package/dist/modules/waas/policies/getSignerPolicyLayer/getSignerPolicyLayer.d.ts +1 -1
- package/dist/modules/waas/policies/getSignerPolicyLayer/getSignerPolicyLayer.d.ts.map +1 -1
- package/dist/modules/waas/policies/getWalletPolicyLayer/getWalletPolicyLayer.d.ts +1 -1
- package/dist/modules/waas/policies/getWalletPolicyLayer/getWalletPolicyLayer.d.ts.map +1 -1
- package/dist/modules/waas/policies/hasAddresses/hasAddresses.d.ts +1 -1
- package/dist/modules/waas/policies/hasAddresses/hasAddresses.d.ts.map +1 -1
- package/dist/modules/waas/policies/hasUnrecognizedFields/hasUnrecognizedFields.d.ts +1 -1
- package/dist/modules/waas/policies/hasUnrecognizedFields/hasUnrecognizedFields.d.ts.map +1 -1
- package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/isPolicyRuleDeletionMarker.d.ts +1 -2
- package/dist/modules/waas/policies/isPolicyRuleDeletionMarker/isPolicyRuleDeletionMarker.d.ts.map +1 -1
- package/dist/modules/waas/policies/matchExistingRules/matchExistingRules.d.ts +1 -1
- package/dist/modules/waas/policies/matchExistingRules/matchExistingRules.d.ts.map +1 -1
- package/dist/modules/waas/policies/policies.types.d.ts +17 -1
- package/dist/modules/waas/policies/policies.types.d.ts.map +1 -1
- package/dist/modules/waas/policies/policyRuleKinds.d.ts +1 -2
- package/dist/modules/waas/policies/policyRuleKinds.d.ts.map +1 -1
- package/dist/modules/waas/policies/readAllowAddressesRule/readAllowAddressesRule.d.ts +1 -2
- package/dist/modules/waas/policies/readAllowAddressesRule/readAllowAddressesRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/readBlockExportRule/readBlockExportRule.d.ts +1 -2
- package/dist/modules/waas/policies/readBlockExportRule/readBlockExportRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/readCoveredRule/readCoveredRule.d.ts +1 -2
- package/dist/modules/waas/policies/readCoveredRule/readCoveredRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/readDenyAddressesRule/readDenyAddressesRule.d.ts +1 -2
- package/dist/modules/waas/policies/readDenyAddressesRule/readDenyAddressesRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/readMaxAmountPerTransactionRule/readMaxAmountPerTransactionRule.d.ts +1 -2
- package/dist/modules/waas/policies/readMaxAmountPerTransactionRule/readMaxAmountPerTransactionRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/removeAccountPolicyRule/removeAccountPolicyRule.d.ts +1 -1
- package/dist/modules/waas/policies/removeAccountPolicyRule/removeAccountPolicyRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/removePolicyRules/removePolicyRules.d.ts +2 -1
- package/dist/modules/waas/policies/removePolicyRules/removePolicyRules.d.ts.map +1 -1
- package/dist/modules/waas/policies/removeSignerPolicyRule/removeSignerPolicyRule.d.ts +1 -1
- package/dist/modules/waas/policies/removeSignerPolicyRule/removeSignerPolicyRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/removeWalletPolicyRule/removeWalletPolicyRule.d.ts +1 -1
- package/dist/modules/waas/policies/removeWalletPolicyRule/removeWalletPolicyRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/resolveRuleName/resolveRuleName.d.ts +1 -2
- package/dist/modules/waas/policies/resolveRuleName/resolveRuleName.d.ts.map +1 -1
- package/dist/modules/waas/policies/sortRulesByRuleId/sortRulesByRuleId.d.ts +1 -1
- package/dist/modules/waas/policies/sortRulesByRuleId/sortRulesByRuleId.d.ts.map +1 -1
- package/dist/modules/waas/policies/upsertAccountPolicyRule/upsertAccountPolicyRule.d.ts +2 -1
- package/dist/modules/waas/policies/upsertAccountPolicyRule/upsertAccountPolicyRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/upsertSignerPolicyRule/upsertSignerPolicyRule.d.ts +2 -1
- package/dist/modules/waas/policies/upsertSignerPolicyRule/upsertSignerPolicyRule.d.ts.map +1 -1
- package/dist/modules/waas/policies/upsertWalletPolicyRule/upsertWalletPolicyRule.d.ts +2 -1
- package/dist/modules/waas/policies/upsertWalletPolicyRule/upsertWalletPolicyRule.d.ts.map +1 -1
- package/dist/modules/waas/waas.consts.d.ts +23 -0
- package/dist/modules/waas/waas.consts.d.ts.map +1 -0
- package/dist/modules/waas/waas.types.d.ts +30 -1
- package/dist/modules/waas/waas.types.d.ts.map +1 -1
- package/dist/modules/wallets/getWalletAccounts/getWalletAccountsFromState/getWalletAccountsFromState.d.ts +2 -2
- package/dist/modules/wallets/getWalletAccounts/getWalletAccountsFromState/getWalletAccountsFromState.d.ts.map +1 -1
- package/dist/modules/wallets/networks/getTransactionHistory/getTransactionHistory.d.ts +2 -2
- package/dist/modules/wallets/networks/getTransactionHistory/getTransactionHistory.d.ts.map +1 -1
- package/dist/modules/wallets/screenTransaction/screenTransaction.d.ts +1 -1
- package/dist/modules/wallets/screenTransaction/screenTransaction.d.ts.map +1 -1
- package/dist/modules/wallets/userHasEmbeddedWalletForChain/userHasEmbeddedWalletForChain.d.ts +2 -2
- package/dist/modules/wallets/userHasEmbeddedWalletForChain/userHasEmbeddedWalletForChain.d.ts.map +1 -1
- package/dist/modules/wallets/userHasExternalWallet/userHasExternalWallet.d.ts +2 -2
- package/dist/modules/wallets/userHasExternalWallet/userHasExternalWallet.d.ts.map +1 -1
- package/dist/modules/wallets/utils/formatWalletProviderKey/formatWalletProviderKey.d.ts +1 -1
- package/dist/modules/wallets/utils/formatWalletProviderKey/formatWalletProviderKey.d.ts.map +1 -1
- package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts +5 -3
- package/dist/modules/wallets/verifyMessageSignatureOwnership/verifyMessageSignatureOwnership.d.ts.map +1 -1
- package/dist/modules/wallets/verifyWalletAccount/verifyWalletAccount.d.ts +1 -1
- package/dist/modules/wallets/verifyWalletAccount/verifyWalletAccount.d.ts.map +1 -1
- package/dist/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.d.ts +1 -1
- package/dist/modules/wallets/verifyWalletAccountForSignInOrTransfer/verifyWalletAccountForSignInOrTransfer.d.ts.map +1 -1
- package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts +4 -2
- package/dist/modules/wallets/walletProvider/walletProvider.types.d.ts.map +1 -1
- package/dist/modules/wallets/wallets.types.d.ts +47 -0
- package/dist/modules/wallets/wallets.types.d.ts.map +1 -0
- package/dist/modules/yield/yield.types.d.ts +8 -0
- package/dist/modules/yield/yield.types.d.ts.map +1 -1
- package/dist/services/eventEmitter/createEventEmitter.d.ts +3 -2
- package/dist/services/eventEmitter/createEventEmitter.d.ts.map +1 -1
- package/dist/services/eventEmitter/index.d.ts +1 -1
- package/dist/services/eventEmitter/index.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/utils/createSequenceQueue/createSequenceQueue.d.ts +52 -0
- package/dist/utils/createSequenceQueue/createSequenceQueue.d.ts.map +1 -0
- package/dist/utils/createSequenceQueue/index.d.ts +3 -0
- package/dist/utils/createSequenceQueue/index.d.ts.map +1 -0
- package/dist/waas-BOKafCeH.cjs +2467 -0
- package/dist/waas-BOKafCeH.cjs.map +1 -0
- package/dist/waas-CUDgU2pl.esm.js +2150 -0
- package/dist/waas-CUDgU2pl.esm.js.map +1 -0
- package/dist/waas-CkQYVo6U.native.esm.js +2150 -0
- package/dist/waas-CkQYVo6U.native.esm.js.map +1 -0
- package/dist/waas.cjs +60 -2185
- package/dist/waas.esm.js +5 -2126
- package/dist/waas.native.esm.js +5 -2126
- package/dist/waasCore.cjs +76 -44
- package/dist/waasCore.cjs.map +1 -1
- package/dist/waasCore.esm.js +56 -24
- package/dist/waasCore.esm.js.map +1 -1
- package/dist/waasCore.native.esm.js +56 -24
- package/dist/waasCore.native.esm.js.map +1 -1
- package/package.json +5 -5
- package/dist/getNetworkProviderFromNetworkId--X0cb1ad.native.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-CamHn2s3.esm.js.map +0 -1
- package/dist/getNetworkProviderFromNetworkId-igDf2OPy.cjs.map +0 -1
- package/dist/getWalletProviderByKey-Cl6WDOoD.native.esm.js.map +0 -1
- package/dist/getWalletProviderByKey-DzpmoNlv.cjs.map +0 -1
- package/dist/getWalletProviderByKey-xqyD3ybv.esm.js.map +0 -1
- package/dist/isDynamicWaasEnabled-CMccs1-6.cjs +0 -136
- package/dist/isDynamicWaasEnabled-CMccs1-6.cjs.map +0 -1
- package/dist/isDynamicWaasEnabled-DSqgpEcX.native.esm.js +0 -113
- package/dist/isDynamicWaasEnabled-DSqgpEcX.native.esm.js.map +0 -1
- package/dist/isDynamicWaasEnabled-DYORq7Jc.esm.js +0 -113
- package/dist/isDynamicWaasEnabled-DYORq7Jc.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-BcJvy7Gw.native.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-CatS60F6.esm.js.map +0 -1
- package/dist/isMfaRequiredForAction-DKfoMhEk.cjs.map +0 -1
- package/dist/isUserOnboardingComplete-BWVuE4Jg.native.esm.js.map +0 -1
- package/dist/isUserOnboardingComplete-jkAQQVdP.esm.js.map +0 -1
- package/dist/isUserOnboardingComplete-jv_idxWY.cjs.map +0 -1
- package/dist/migrateFromFireblocks-B-WUs34v.native.esm.js +0 -65
- package/dist/migrateFromFireblocks-B-WUs34v.native.esm.js.map +0 -1
- package/dist/migrateFromFireblocks-D4E9bT2H.esm.js +0 -65
- package/dist/migrateFromFireblocks-D4E9bT2H.esm.js.map +0 -1
- package/dist/migrateFromFireblocks-zp5Jbq2J.cjs +0 -82
- package/dist/migrateFromFireblocks-zp5Jbq2J.cjs.map +0 -1
- package/dist/updateAuthFromVerifyResponse-BLgNMqwN.esm.js.map +0 -1
- package/dist/updateAuthFromVerifyResponse-CTvWpZLa.native.esm.js.map +0 -1
- package/dist/updateAuthFromVerifyResponse-Dsw-eAro.cjs.map +0 -1
- package/dist/waas.cjs.map +0 -1
- package/dist/waas.esm.js.map +0 -1
- package/dist/waas.native.esm.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_logoutWithReason = require('./logoutWithReason-DlA15deT.cjs');
|
|
2
2
|
let _dynamic_labs_sdk_api_core = require("@dynamic-labs/sdk-api-core");
|
|
3
3
|
let zod_mini = require("zod/mini");
|
|
4
|
-
zod_mini =
|
|
4
|
+
zod_mini = require_logoutWithReason.__toESM(zod_mini);
|
|
5
5
|
let buffer = require("buffer");
|
|
6
6
|
let eventemitter3 = require("eventemitter3");
|
|
7
|
-
eventemitter3 =
|
|
7
|
+
eventemitter3 = require_logoutWithReason.__toESM(eventemitter3);
|
|
8
8
|
|
|
9
9
|
//#region src/errors/UnavailableInServerSideError.ts
|
|
10
|
-
var UnavailableInServerSideError = class extends
|
|
10
|
+
var UnavailableInServerSideError = class extends require_logoutWithReason.BaseError {
|
|
11
11
|
constructor(unavailableFeature) {
|
|
12
12
|
super({
|
|
13
13
|
cause: null,
|
|
@@ -48,7 +48,7 @@ const createLocalStorageAdapter = () => {
|
|
|
48
48
|
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region src/errors/InvalidStorageSet.ts
|
|
51
|
-
var InvalidStorageSet = class extends
|
|
51
|
+
var InvalidStorageSet = class extends require_logoutWithReason.BaseError {
|
|
52
52
|
constructor({ key, value }) {
|
|
53
53
|
super({
|
|
54
54
|
cause: null,
|
|
@@ -249,7 +249,7 @@ const createDeferredPromise = () => {
|
|
|
249
249
|
|
|
250
250
|
//#endregion
|
|
251
251
|
//#region src/errors/CannotTrackError.ts
|
|
252
|
-
var CannotTrackError = class extends
|
|
252
|
+
var CannotTrackError = class extends require_logoutWithReason.BaseError {
|
|
253
253
|
constructor() {
|
|
254
254
|
super({
|
|
255
255
|
cause: null,
|
|
@@ -317,6 +317,11 @@ const createCrossTabBroadcast = ({ channelName }) => {
|
|
|
317
317
|
};
|
|
318
318
|
};
|
|
319
319
|
|
|
320
|
+
//#endregion
|
|
321
|
+
//#region src/services/eventEmitter/createEventEmitter.ts
|
|
322
|
+
/** @notInstrumented */
|
|
323
|
+
const createEventEmitter = () => new eventemitter3.default();
|
|
324
|
+
|
|
320
325
|
//#endregion
|
|
321
326
|
//#region src/services/logger/createLogger/createLogger.ts
|
|
322
327
|
/**
|
|
@@ -368,7 +373,7 @@ const createLogger = (options = {}) => {
|
|
|
368
373
|
* that could originate from a poisoned server response or cached project
|
|
369
374
|
* settings flowing into `window.location.href`.
|
|
370
375
|
*/
|
|
371
|
-
var UnsafeNavigationUrlError = class extends
|
|
376
|
+
var UnsafeNavigationUrlError = class extends require_logoutWithReason.BaseError {
|
|
372
377
|
constructor({ scheme }) {
|
|
373
378
|
super({
|
|
374
379
|
cause: null,
|
|
@@ -432,7 +437,7 @@ const compressRawPublicKey = (rawPublicKey) => {
|
|
|
432
437
|
|
|
433
438
|
//#endregion
|
|
434
439
|
//#region src/services/keychain/createKeychainService/KeyNotFoundError.ts
|
|
435
|
-
var KeyNotFoundError = class extends
|
|
440
|
+
var KeyNotFoundError = class extends require_logoutWithReason.BaseError {
|
|
436
441
|
constructor(keyName) {
|
|
437
442
|
super({
|
|
438
443
|
cause: null,
|
|
@@ -665,7 +670,7 @@ const createKeychainService = (params) => {
|
|
|
665
670
|
* an `http(s)` allowlist, preventing DOM XSS through the `window.location.assign`
|
|
666
671
|
* sink while leaving valid wallet deeplinks untouched.
|
|
667
672
|
*/
|
|
668
|
-
var UnsafeDeeplinkUrlError = class extends
|
|
673
|
+
var UnsafeDeeplinkUrlError = class extends require_logoutWithReason.BaseError {
|
|
669
674
|
constructor({ scheme }) {
|
|
670
675
|
super({
|
|
671
676
|
cause: null,
|
|
@@ -713,7 +718,7 @@ const assertSafeDeeplinkUrl = (url) => {
|
|
|
713
718
|
|
|
714
719
|
//#endregion
|
|
715
720
|
//#region src/errors/InvalidRealtimePublishError.ts
|
|
716
|
-
var InvalidRealtimePublishError = class extends
|
|
721
|
+
var InvalidRealtimePublishError = class extends require_logoutWithReason.BaseError {
|
|
717
722
|
constructor({ channel }) {
|
|
718
723
|
super({
|
|
719
724
|
cause: null,
|
|
@@ -728,7 +733,7 @@ var InvalidRealtimePublishError = class extends require_updateAuthFromVerifyResp
|
|
|
728
733
|
|
|
729
734
|
//#endregion
|
|
730
735
|
//#region src/errors/RealtimeNotConnectedError.ts
|
|
731
|
-
var RealtimeNotConnectedError = class extends
|
|
736
|
+
var RealtimeNotConnectedError = class extends require_logoutWithReason.BaseError {
|
|
732
737
|
constructor() {
|
|
733
738
|
super({
|
|
734
739
|
cause: null,
|
|
@@ -795,7 +800,7 @@ const createRealtimeService = () => {
|
|
|
795
800
|
if (isConnecting) return;
|
|
796
801
|
isConnecting = true;
|
|
797
802
|
try {
|
|
798
|
-
const core =
|
|
803
|
+
const core = require_logoutWithReason.getCore(client);
|
|
799
804
|
if (ablyClient) {
|
|
800
805
|
ablyClient.close();
|
|
801
806
|
channels.clear();
|
|
@@ -803,7 +808,7 @@ const createRealtimeService = () => {
|
|
|
803
808
|
const { BaseRealtime: AblyBaseRealtime, FetchRequest, WebSocketTransport } = await import("ably/modular");
|
|
804
809
|
ablyClient = new AblyBaseRealtime({
|
|
805
810
|
authCallback: (_tokenParams, callback) => {
|
|
806
|
-
|
|
811
|
+
require_logoutWithReason.createApiClient({ headers }, client).getRealtimeAuthToken({ environmentId: core.environmentId }).then((response) => {
|
|
807
812
|
callback(null, response.token);
|
|
808
813
|
}).catch((err) => {
|
|
809
814
|
callback(err instanceof Error ? err.message : String(err), null);
|
|
@@ -912,7 +917,7 @@ const getKeychainIndexedDBName = ({ environmentId }) => `dynamic_${environmentId
|
|
|
912
917
|
* @see MergeConflicts
|
|
913
918
|
* @see WalletAlreadyLinkedToAnotherUserError
|
|
914
919
|
*/
|
|
915
|
-
var MergeAccountsConfirmationError = class extends
|
|
920
|
+
var MergeAccountsConfirmationError = class extends require_logoutWithReason.BaseError {
|
|
916
921
|
mergeConflicts;
|
|
917
922
|
walletAddress;
|
|
918
923
|
constructor({ cause, mergeConflicts, walletAddress }) {
|
|
@@ -930,7 +935,7 @@ var MergeAccountsConfirmationError = class extends require_updateAuthFromVerifyR
|
|
|
930
935
|
|
|
931
936
|
//#endregion
|
|
932
937
|
//#region src/errors/NoNetworkProvidersError.ts
|
|
933
|
-
var NoNetworkProvidersError = class extends
|
|
938
|
+
var NoNetworkProvidersError = class extends require_logoutWithReason.BaseError {
|
|
934
939
|
constructor() {
|
|
935
940
|
super({
|
|
936
941
|
cause: null,
|
|
@@ -944,7 +949,7 @@ var NoNetworkProvidersError = class extends require_updateAuthFromVerifyResponse
|
|
|
944
949
|
|
|
945
950
|
//#endregion
|
|
946
951
|
//#region src/errors/WalletAlreadyLinkedToAnotherUserError.ts
|
|
947
|
-
var WalletAlreadyLinkedToAnotherUserError = class extends
|
|
952
|
+
var WalletAlreadyLinkedToAnotherUserError = class extends require_logoutWithReason.BaseError {
|
|
948
953
|
constructor({ cause }) {
|
|
949
954
|
super({
|
|
950
955
|
cause,
|
|
@@ -980,7 +985,7 @@ var WalletAlreadyLinkedToAnotherUserError = class extends require_updateAuthFrom
|
|
|
980
985
|
* @see verifyWalletAccount
|
|
981
986
|
* @see connectAndVerifyWithWalletProvider
|
|
982
987
|
*/
|
|
983
|
-
var WalletScreeningBlockedError = class extends
|
|
988
|
+
var WalletScreeningBlockedError = class extends require_logoutWithReason.BaseError {
|
|
984
989
|
constructor({ cause }) {
|
|
985
990
|
super({
|
|
986
991
|
cause,
|
|
@@ -995,9 +1000,9 @@ var WalletScreeningBlockedError = class extends require_updateAuthFromVerifyResp
|
|
|
995
1000
|
//#endregion
|
|
996
1001
|
//#region src/modules/captcha/isCaptchaRequired/isCaptchaRequired.ts
|
|
997
1002
|
/** @notInstrumented */
|
|
998
|
-
const isCaptchaRequired = (client =
|
|
1003
|
+
const isCaptchaRequired = (client = require_logoutWithReason.getDefaultClient()) => {
|
|
999
1004
|
const projectSettings = client.projectSettings;
|
|
1000
|
-
|
|
1005
|
+
require_logoutWithReason.assertDefined(projectSettings, "Project settings are not available");
|
|
1001
1006
|
const { security } = projectSettings;
|
|
1002
1007
|
return security.captcha?.enabled ?? security.hCaptcha?.enabled ?? false;
|
|
1003
1008
|
};
|
|
@@ -1009,16 +1014,16 @@ const isCaptchaRequired = (client = require_updateAuthFromVerifyResponse.getDefa
|
|
|
1009
1014
|
* @notInstrumented
|
|
1010
1015
|
*/
|
|
1011
1016
|
const consumeCaptchaToken = (client) => {
|
|
1012
|
-
const core =
|
|
1017
|
+
const core = require_logoutWithReason.getCore(client);
|
|
1013
1018
|
const captchaToken = core.state.get().captchaToken;
|
|
1014
|
-
if (isCaptchaRequired(client))
|
|
1019
|
+
if (isCaptchaRequired(client)) require_logoutWithReason.assertDefined(captchaToken, "Captcha token is required");
|
|
1015
1020
|
core.state.set({ captchaToken: null });
|
|
1016
1021
|
return captchaToken ?? void 0;
|
|
1017
1022
|
};
|
|
1018
1023
|
|
|
1019
1024
|
//#endregion
|
|
1020
1025
|
//#region src/errors/MethodNotImplementedError.ts
|
|
1021
|
-
var MethodNotImplementedError = class extends
|
|
1026
|
+
var MethodNotImplementedError = class extends require_logoutWithReason.BaseError {
|
|
1022
1027
|
constructor(methodName) {
|
|
1023
1028
|
super({
|
|
1024
1029
|
cause: null,
|
|
@@ -1039,16 +1044,16 @@ var MethodNotImplementedError = class extends require_updateAuthFromVerifyRespon
|
|
|
1039
1044
|
* @param [client] - The Dynamic client instance. Only required when using multiple Dynamic clients.
|
|
1040
1045
|
* @instrumented
|
|
1041
1046
|
*/
|
|
1042
|
-
const setCaptchaToken = ({ captchaToken }, client =
|
|
1043
|
-
|
|
1047
|
+
const setCaptchaToken = ({ captchaToken }, client = require_logoutWithReason.getDefaultClient()) => {
|
|
1048
|
+
require_logoutWithReason.getCore(client).state.set({ captchaToken });
|
|
1044
1049
|
};
|
|
1045
1050
|
const __setCaptchaToken_impl = setCaptchaToken;
|
|
1046
|
-
const __setCaptchaToken_wrapped =
|
|
1051
|
+
const __setCaptchaToken_wrapped = require_logoutWithReason.instrumentFunction({
|
|
1047
1052
|
fn: __setCaptchaToken_impl,
|
|
1048
1053
|
functionName: "setCaptchaToken",
|
|
1049
1054
|
getCore: () => {
|
|
1050
1055
|
try {
|
|
1051
|
-
return
|
|
1056
|
+
return require_logoutWithReason.getCore(require_logoutWithReason.getDefaultClient());
|
|
1052
1057
|
} catch {
|
|
1053
1058
|
return;
|
|
1054
1059
|
}
|
|
@@ -1068,19 +1073,19 @@ const __setCaptchaToken_wrapped = require_updateAuthFromVerifyResponse.instrumen
|
|
|
1068
1073
|
* @returns True if the extension is applied, false otherwise.
|
|
1069
1074
|
* @notInstrumented
|
|
1070
1075
|
*/
|
|
1071
|
-
const hasExtension = ({ extensionKey }, client =
|
|
1072
|
-
return
|
|
1076
|
+
const hasExtension = ({ extensionKey }, client = require_logoutWithReason.getDefaultClient()) => {
|
|
1077
|
+
return require_logoutWithReason.getCore(client).extensions.has(extensionKey);
|
|
1073
1078
|
};
|
|
1074
1079
|
|
|
1075
1080
|
//#endregion
|
|
1076
1081
|
//#region src/modules/auth/createVisit/createVisit.ts
|
|
1077
1082
|
/** @notInstrumented */
|
|
1078
1083
|
const createVisit = async ({ walletAccount, authMode = _dynamic_labs_sdk_api_core.AuthModeEnum.Only }, client) => {
|
|
1079
|
-
const core =
|
|
1080
|
-
const apiClient =
|
|
1081
|
-
const walletProvider =
|
|
1084
|
+
const core = require_logoutWithReason.getCore(client);
|
|
1085
|
+
const apiClient = require_logoutWithReason.createApiClient({}, client);
|
|
1086
|
+
const walletProvider = require_logoutWithReason.getWalletProviderFromWalletAccount({ walletAccount }, client);
|
|
1082
1087
|
try {
|
|
1083
|
-
const walletName =
|
|
1088
|
+
const walletName = require_logoutWithReason.normalizeWalletNameWithChain({
|
|
1084
1089
|
chain: walletProvider.chain,
|
|
1085
1090
|
displayName: walletProvider.metadata.displayName
|
|
1086
1091
|
});
|
|
@@ -1110,7 +1115,7 @@ const createVisit = async ({ walletAccount, authMode = _dynamic_labs_sdk_api_cor
|
|
|
1110
1115
|
*/
|
|
1111
1116
|
const setUnverifiedWalletAccounts = ({ unverifiedWalletAccountsToUpdate }, client) => {
|
|
1112
1117
|
if (unverifiedWalletAccountsToUpdate.length === 0) return;
|
|
1113
|
-
const core =
|
|
1118
|
+
const core = require_logoutWithReason.getCore(client);
|
|
1114
1119
|
const unverifiedWalletAccountsToUpdateIds = unverifiedWalletAccountsToUpdate.map(({ id }) => id);
|
|
1115
1120
|
const filteredUnverifiedWalletAccounts = core.state.get().unverifiedWalletAccounts.filter((unverifiedWalletAccount) => !unverifiedWalletAccountsToUpdateIds.includes(unverifiedWalletAccount.id));
|
|
1116
1121
|
core.state.set({ unverifiedWalletAccounts: [...filteredUnverifiedWalletAccounts, ...unverifiedWalletAccountsToUpdate] });
|
|
@@ -1120,7 +1125,7 @@ const setUnverifiedWalletAccounts = ({ unverifiedWalletAccountsToUpdate }, clien
|
|
|
1120
1125
|
//#region src/modules/wallets/walletProvider/walletProviderKeyMap/updateWalletProviderKeysForVerifiedCredentials/updateWalletProviderKeysForVerifiedCredentials.ts
|
|
1121
1126
|
/** @notInstrumented */
|
|
1122
1127
|
const updateWalletProviderKeysForVerifiedCredentials = ({ keysToUpdate }, client) => {
|
|
1123
|
-
const core =
|
|
1128
|
+
const core = require_logoutWithReason.getCore(client);
|
|
1124
1129
|
core.state.set({ walletProviderKeyMap: {
|
|
1125
1130
|
...core.state.get().walletProviderKeyMap,
|
|
1126
1131
|
...keysToUpdate
|
|
@@ -1143,7 +1148,7 @@ const updateWalletProviderKeysForVerifiedCredentials = ({ keysToUpdate }, client
|
|
|
1143
1148
|
*/
|
|
1144
1149
|
const reconcileWalletAccountsAgainstClient = ({ addToDynamicWalletAccounts = true, walletAccounts, walletProviderKey }, client) => {
|
|
1145
1150
|
if (walletAccounts.length === 0) return [];
|
|
1146
|
-
const existingWalletAccounts =
|
|
1151
|
+
const existingWalletAccounts = require_logoutWithReason.getWalletAccounts(client);
|
|
1147
1152
|
const newWalletAccounts = [];
|
|
1148
1153
|
const unverifiedWalletAccountsToUpdate = [];
|
|
1149
1154
|
const verifiedCredentialIdToWalletProviderKeyMap = {};
|
|
@@ -1177,7 +1182,7 @@ const reconcileWalletAccountsAgainstClient = ({ addToDynamicWalletAccounts = tru
|
|
|
1177
1182
|
for (const newWalletAccount of newWalletAccounts) createVisit({ walletAccount: newWalletAccount }, client);
|
|
1178
1183
|
}
|
|
1179
1184
|
}
|
|
1180
|
-
if (walletAccountsChanged)
|
|
1185
|
+
if (walletAccountsChanged) require_logoutWithReason.emitWalletAccountsChangedEvent(client);
|
|
1181
1186
|
return reconciledWalletAccounts;
|
|
1182
1187
|
};
|
|
1183
1188
|
|
|
@@ -1191,7 +1196,7 @@ const reconcileWalletAccountsAgainstClient = ({ addToDynamicWalletAccounts = tru
|
|
|
1191
1196
|
* @notInstrumented
|
|
1192
1197
|
*/
|
|
1193
1198
|
const getAppMetadata = (client) => {
|
|
1194
|
-
const core =
|
|
1199
|
+
const core = require_logoutWithReason.getCore(client);
|
|
1195
1200
|
const generalSettings = client.projectSettings?.general;
|
|
1196
1201
|
return {
|
|
1197
1202
|
appLogoUrl: core.metadata?.iconUrl ?? generalSettings?.appLogo ?? void 0,
|
|
@@ -1237,7 +1242,7 @@ const createSignInMessageStatement = (client) => {
|
|
|
1237
1242
|
* @notInstrumented
|
|
1238
1243
|
*/
|
|
1239
1244
|
const removeUnverifiedWalletAccount = ({ unverifiedWalletAccount }, client) => {
|
|
1240
|
-
const core =
|
|
1245
|
+
const core = require_logoutWithReason.getCore(client);
|
|
1241
1246
|
const previousState = core.state.get();
|
|
1242
1247
|
const { unverifiedWalletAccounts } = core.state.get();
|
|
1243
1248
|
const filteredUnverifiedWalletAccounts = unverifiedWalletAccounts.filter((account) => account.id !== unverifiedWalletAccount.id);
|
|
@@ -1246,7 +1251,7 @@ const removeUnverifiedWalletAccount = ({ unverifiedWalletAccount }, client) => {
|
|
|
1246
1251
|
* We check before raising because the wallet account we are removing might still
|
|
1247
1252
|
* be present in wallet accounts due to having been moved to verified credentials.
|
|
1248
1253
|
*/
|
|
1249
|
-
|
|
1254
|
+
require_logoutWithReason.checkAndRaiseWalletAccountsChangedEvent({ previousState }, client);
|
|
1250
1255
|
};
|
|
1251
1256
|
|
|
1252
1257
|
//#endregion
|
|
@@ -1281,9 +1286,9 @@ const isErrorWithCode = (error, code) => {
|
|
|
1281
1286
|
* @notInstrumented
|
|
1282
1287
|
*/
|
|
1283
1288
|
const verifyMessageSignatureOwnership = async ({ messageToSign, walletAddress, addressesWithTypes, signature, chain, isTransfer = false, walletDisplayName, walletProviderType, networkId, requestedScopes }, client) => {
|
|
1284
|
-
const core =
|
|
1285
|
-
const apiClient =
|
|
1286
|
-
const walletName =
|
|
1289
|
+
const core = require_logoutWithReason.getCore(client);
|
|
1290
|
+
const apiClient = require_logoutWithReason.createApiClient({}, client);
|
|
1291
|
+
const walletName = require_logoutWithReason.normalizeWalletNameWithChain({
|
|
1287
1292
|
chain,
|
|
1288
1293
|
displayName: walletDisplayName
|
|
1289
1294
|
});
|
|
@@ -1316,7 +1321,7 @@ const verifyMessageSignatureOwnership = async ({ messageToSign, walletAddress, a
|
|
|
1316
1321
|
core.logger.error("Failed to verify message signature ownership", error);
|
|
1317
1322
|
if (isErrorWithCode(error, "merge_accounts_confirmation")) throw new MergeAccountsConfirmationError({
|
|
1318
1323
|
cause: error,
|
|
1319
|
-
mergeConflicts: error instanceof
|
|
1324
|
+
mergeConflicts: error instanceof require_logoutWithReason.APIError ? error.payload?.mergeConflicts : void 0,
|
|
1320
1325
|
walletAddress
|
|
1321
1326
|
});
|
|
1322
1327
|
if (isErrorWithCode(error, "reassign_wallet_confirm")) throw new WalletAlreadyLinkedToAnotherUserError({ cause: error });
|
|
@@ -1332,7 +1337,7 @@ const verifyMessageSignatureOwnership = async ({ messageToSign, walletAddress, a
|
|
|
1332
1337
|
* @notInstrumented
|
|
1333
1338
|
*/
|
|
1334
1339
|
const getSdkChainFromApiChainName = (chainName) => {
|
|
1335
|
-
return Object.keys(
|
|
1340
|
+
return Object.keys(require_logoutWithReason.CHAINS_INFO_MAP).find((chain) => require_logoutWithReason.CHAINS_INFO_MAP[chain].apiChainName === chainName) || null;
|
|
1336
1341
|
};
|
|
1337
1342
|
|
|
1338
1343
|
//#endregion
|
|
@@ -1349,7 +1354,7 @@ const getSdkChainFromApiChainName = (chainName) => {
|
|
|
1349
1354
|
*/
|
|
1350
1355
|
const networkDataSchema = zod_mini.object({
|
|
1351
1356
|
blockExplorerUrls: zod_mini.array(zod_mini.string()),
|
|
1352
|
-
chain: zod_mini.custom((value) => typeof value === "string" && value in
|
|
1357
|
+
chain: zod_mini.custom((value) => typeof value === "string" && value in require_logoutWithReason.CHAINS_INFO_MAP),
|
|
1353
1358
|
cluster: zod_mini.optional(zod_mini.string()),
|
|
1354
1359
|
displayName: zod_mini.string(),
|
|
1355
1360
|
genesisHash: zod_mini.optional(zod_mini.string()),
|
|
@@ -1387,12 +1392,12 @@ const networkDataSchema = zod_mini.object({
|
|
|
1387
1392
|
* @returns An array of network configuration data for all enabled networks.
|
|
1388
1393
|
* @notInstrumented
|
|
1389
1394
|
*/
|
|
1390
|
-
const getNetworksData = (client =
|
|
1391
|
-
const core =
|
|
1395
|
+
const getNetworksData = (client = require_logoutWithReason.getDefaultClient()) => {
|
|
1396
|
+
const core = require_logoutWithReason.getCore(client);
|
|
1392
1397
|
const { state, transformers } = core;
|
|
1393
1398
|
const networkDataTransformer = transformers?.networkData ?? ((networkData) => networkData);
|
|
1394
1399
|
const { projectSettings } = state.get();
|
|
1395
|
-
|
|
1400
|
+
require_logoutWithReason.assertDefined(projectSettings, "projectSettings not found");
|
|
1396
1401
|
const networksData = (projectSettings.networks ?? []).map((network) => {
|
|
1397
1402
|
if (!network.chainName) return [];
|
|
1398
1403
|
const chain = getSdkChainFromApiChainName(network.chainName);
|
|
@@ -1446,7 +1451,7 @@ const createNetworkProviderBuilderRegistry = () => {
|
|
|
1446
1451
|
|
|
1447
1452
|
//#endregion
|
|
1448
1453
|
//#region src/modules/wallets/networks/networkProviderBuilderRegistry/getNetworkProviderBuilderRegistry/getNetworkProviderBuilderRegistry.ts
|
|
1449
|
-
const getNetworkProviderBuilderRegistry =
|
|
1454
|
+
const getNetworkProviderBuilderRegistry = require_logoutWithReason.createRuntimeServiceAccessKey("networkProviderBuilderRegistry", createNetworkProviderBuilderRegistry);
|
|
1450
1455
|
|
|
1451
1456
|
//#endregion
|
|
1452
1457
|
//#region src/modules/wallets/networks/getNetworkProviders/getNetworkProviders.ts
|
|
@@ -1470,7 +1475,7 @@ const getNetworkProviderFromNetworkId = ({ networkId, chain }, client) => {
|
|
|
1470
1475
|
const networkProviders = getNetworkProviders(client);
|
|
1471
1476
|
if (networkProviders.length === 0) throw new NoNetworkProvidersError();
|
|
1472
1477
|
const networkProvider = networkProviders.find((networkProvider$1) => networkProvider$1.networkId === networkId && networkProvider$1.chain === chain);
|
|
1473
|
-
|
|
1478
|
+
require_logoutWithReason.assertDefined(networkProvider, `No network provider found for chain ${chain} with network id ${networkId}`);
|
|
1474
1479
|
return networkProvider;
|
|
1475
1480
|
};
|
|
1476
1481
|
|
|
@@ -1607,6 +1612,12 @@ Object.defineProperty(exports, 'createDeferredPromise', {
|
|
|
1607
1612
|
return createDeferredPromise;
|
|
1608
1613
|
}
|
|
1609
1614
|
});
|
|
1615
|
+
Object.defineProperty(exports, 'createEventEmitter', {
|
|
1616
|
+
enumerable: true,
|
|
1617
|
+
get: function () {
|
|
1618
|
+
return createEventEmitter;
|
|
1619
|
+
}
|
|
1620
|
+
});
|
|
1610
1621
|
Object.defineProperty(exports, 'createKeychainService', {
|
|
1611
1622
|
enumerable: true,
|
|
1612
1623
|
get: function () {
|
|
@@ -1757,4 +1768,4 @@ Object.defineProperty(exports, 'verifyMessageSignatureOwnership', {
|
|
|
1757
1768
|
return verifyMessageSignatureOwnership;
|
|
1758
1769
|
}
|
|
1759
1770
|
});
|
|
1760
|
-
//# sourceMappingURL=getNetworkProviderFromNetworkId-
|
|
1771
|
+
//# sourceMappingURL=getNetworkProviderFromNetworkId-BoNAPSjx.cjs.map
|