Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@magic-sdk/types

Package Overview
Dependencies
Maintainers
18
Versions
623
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magic-sdk/types - npm Package Compare versions

Comparing version 24.17.1-canary.742.12672414166.0 to 24.17.1-canary.742.12672559632.0

2

./dist/cjs/index.js

@@ -1,2 +0,2 @@

"use strict";var l=Object.defineProperty;var Z=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var K=(d,r)=>{for(var c in r)l(d,c,{get:r[c],enumerable:!0})},ee=(d,r,c,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of $(r))!M.call(d,i)&&i!==c&&l(d,i,{get:()=>r[i],enumerable:!(t=Z(r,i))||t.enumerable});return d};var te=d=>ee(l({},"__esModule",{value:!0}),d);var ie={};K(ie,{AuthEventOnReceived:()=>k,DeepLinkPage:()=>y,DeviceVerificationEventEmit:()=>O,DeviceVerificationEventOnReceived:()=>S,DisableMFAEventEmit:()=>G,DisableMFAEventOnReceived:()=>V,EnableMFAEventEmit:()=>D,EnableMFAEventOnReceived:()=>L,EthChainType:()=>H,FarcasterLoginEventEmit:()=>w,LocalStorageKeys:()=>_,LoginWithEmailOTPEventEmit:()=>I,LoginWithEmailOTPEventOnReceived:()=>T,LoginWithMagicLinkEventEmit:()=>A,LoginWithMagicLinkEventOnReceived:()=>R,LoginWithSmsOTPEventEmit:()=>N,LoginWithSmsOTPEventOnReceived:()=>h,MagicIncomingWindowMessage:()=>E,MagicOutgoingWindowMessage:()=>x,MagicPayloadMethod:()=>g,NftCheckoutIntermediaryEvents:()=>Q,RPCErrorCode:()=>u,RecencyCheckEventEmit:()=>b,RecencyCheckEventOnReceived:()=>C,RecoverAccountEventEmit:()=>j,RecoverAccountEventOnReceived:()=>P,RecoveryFactorEventEmit:()=>Y,RecoveryFactorEventOnReceived:()=>J,RecoveryMethodType:()=>B,SDKErrorCode:()=>m,SDKWarningCode:()=>v,ThirdPartyWalletEvents:()=>f,UiEventsEmit:()=>z,UpdateEmailEventEmit:()=>F,UpdateEmailEventOnReceived:()=>U,UserEventsEmit:()=>q,UserEventsOnReceived:()=>W,WalletEventOnReceived:()=>X});module.exports=te(ie);var m=(o=>(o.MissingApiKey="MISSING_API_KEY",o.ModalNotReady="MODAL_NOT_READY",o.MalformedResponse="MALFORMED_RESPONSE",o.InvalidArgument="INVALID_ARGUMENT",o.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",o.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",o))(m||{}),v=(a=>(a.SyncWeb3Method="SYNC_WEB3_METHOD",a.DuplicateIframe="DUPLICATE_IFRAME",a.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",a.DeprecationNotice="DEPRECATION_NOTICE",a.ProductAnnouncement="ANNOUNCEMENT",a))(v||{}),u=(n=>(n[n.ParseError=-32700]="ParseError",n[n.InvalidRequest=-32600]="InvalidRequest",n[n.MethodNotFound=-32601]="MethodNotFound",n[n.InvalidParams=-32602]="InvalidParams",n[n.InternalError=-32603]="InternalError",n[n.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",n[n.MagicLinkExpired=-10001]="MagicLinkExpired",n[n.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",n[n.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",n[n.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",n[n.UpdateEmailFailed=-10004]="UpdateEmailFailed",n[n.UserRequestEditEmail=-10005]="UserRequestEditEmail",n[n.InactiveRecipient=-10010]="InactiveRecipient",n[n.AccessDeniedToUser=-10011]="AccessDeniedToUser",n[n.RedirectLoginComplete=-10015]="RedirectLoginComplete",n))(u||{});var _=(t=>(t.PROVIDER="magic_3pw_provider",t.ADDRESS="magic_3pw_address",t.CHAIN_ID="magic_3pw_chainId",t))(_||{}),f=(t=>(t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",t.Web3ModalSelected="web3modal_selected",t))(f||{}),g=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.SetAuthorizationToken="magic_auth_set_authorization_token",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.UserSettings="magic_auth_settings",e.UserSettingsTestMode="magic_auth_settings_testing_mode",e.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",e.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",e.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",e.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",e.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",e.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",e.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",e.LogoutTestMode="magic_auth_logout_testing_mode",e.UpdateEmailTestMode="magic_auth_update_email_testing_mode",e.IntermediaryEvent="magic_intermediary_event",e.RequestAccounts="eth_requestAccounts",e.GetInfo="magic_get_info",e.ShowUI="magic_wallet",e.NFTPurchase="magic_nft_purchase",e.NFTCheckout="magic_nft_checkout",e.NFTTransfer="magic_nft_transfer",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e.MagicBoxHeartBeat="magic_box_heart_beat",e.AutoConnect="mc_auto_connect",e.Login="mc_login",e.EncryptV1="magic_auth_encrypt_v1",e.DecryptV1="magic_auth_decrypt_v1",e.ShowNFTs="magic_show_nfts",e.ShowOnRamp="magic_show_fiat_onramp",e.ShowSendTokensUI="magic_show_send_tokens_ui",e.ShowAddress="magic_show_address",e.ShowBalances="magic_show_balances",e.SendGaslessTransaction="eth_sendGaslessTransaction",e.RevealPK="magic_reveal_key",e.EnableMFA="magic_auth_enable_mfa_flow",e.DisableMFA="magic_auth_disable_mfa_flow",e))(g||{});var E=(p=>(p.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",p.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",p.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",p.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",p.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",p.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",p.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",p.MAGIC_PONG="MAGIC_PONG",p.MAGIC_POPUP_RESPONSE="MAGIC_POPUP_RESPONSE",p.MAGIC_POPUP_OAUTH_VERIFY_RESPONSE="MAGIC_POPUP_OAUTH_VERIFY_RESPONSE",p))(E||{}),x=(c=>(c.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",c.MAGIC_PING="MAGIC_PING",c))(x||{});var y=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(y||{});var A=(r=>(r.Retry="retry",r))(A||{}),R=(c=>(c.EmailSent="email-sent",c.EmailNotDeliverable="email-not-deliverable",c))(R||{}),I=(a=>(a.VerifyEmailOtp="verify-email-otp",a.VerifyMFACode="verify-mfa-code",a.LostDevice="lost-device",a.VerifyRecoveryCode="verify-recovery-code",a.Cancel="cancel",a))(I||{}),N=(t=>(t.VerifySmsOtp="verify-sms-otp",t.Cancel="cancel",t.Retry="retry",t))(N||{}),h=(t=>(t.SmsOTPSent="sms-otp-sent",t.InvalidSmsOtp="invalid-sms-otp",t.ExpiredSmsOtp="expired-sms-otp",t))(h||{}),T=(s=>(s.EmailOTPSent="email-otp-sent",s.InvalidEmailOtp="invalid-email-otp",s.InvalidMfaOtp="invalid-mfa-otp",s.ExpiredEmailOtp="expired-email-otp",s.MfaSentHandle="mfa-sent-handle",s.RecoveryCodeSentHandle="recovery-code-sent-handle",s.InvalidRecoveryCode="invalid-recovery-code",s.RecoveryCodeSuccess="recovery-code-success",s))(T||{}),O=(r=>(r.Retry="device-retry",r))(O||{}),S=(i=>(i.DeviceApproved="device-approved",i.DeviceNeedsApproval="device-needs-approval",i.DeviceVerificationLinkExpired="device-verification-link-expired",i.DeviceVerificationEmailSent="device-verification-email-sent",i))(S||{}),b=(i=>(i.Retry="Recency/auth-factor-retry",i.Cancel="Recency/auth-factor-verification-cancel",i.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",i.VerifyMFACode="Recency/verify-mfa-code",i))(b||{}),C=(o=>(o.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",o.PrimaryAuthFactorVerified="Recency/auth-factor-verified",o.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",o.EmailExpired="Recency/auth-factor-verification-email-expired",o.EmailSent="Recency/auth-factor-verification-email-sent",o.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",o))(C||{}),F=(t=>(t.RetryWithNewEmail="UpdateEmail/retry-with-new-email",t.Cancel="UpdateEmail/new-email-verification-cancel",t.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",t))(F||{}),U=(s=>(s.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",s.EmailUpdated="UpdateEmail/email-updated",s.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",s.EmailExpired="UpdateEmail/new-email-verification-email-expired",s.EmailSent="UpdateEmail/new-email-verification-email-sent",s.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",s.InvalidEmail="UpdateEmail/new-email-invalid",s.EmailAlreadyExists="UpdateEmail/new-email-already-exists",s))(U||{}),k=(r=>(r.IDTokenCreated="Auth/id-token-created",r))(k||{}),w=(r=>(r.Cancel="Farcaster/cancel",r))(w||{}),L=(t=>(t.MFASecretGenerated="mfa-secret-generated",t.InvalidMFAOtp="invalid-mfa-otp",t.MFARecoveryCodes="mfa-recovery-codes",t))(L||{}),D=(c=>(c.VerifyMFACode="verify-mfa-code",c.Cancel="cancel-mfa-setup",c))(D||{}),V=(t=>(t.MFACodeRequested="mfa-code-requested",t.InvalidMFAOtp="invalid-mfa-otp",t.InvalidRecoveryCode="invalid-recovery-code",t))(V||{}),G=(t=>(t.VerifyMFACode="verify-mfa-code",t.LostDevice="lost-device",t.Cancel="cancel-mfa-disable",t))(G||{});var H=(r=>(r.Harmony="HARMONY",r))(H||{});var q=(r=>(r.ClosedByUser="closed-by-user",r))(q||{}),W=(r=>(r.ClosedByUser="closed-by-user-on-received",r))(W||{}),J=(a=>(a.EnterNewPhoneNumber="enter-new-phone-number",a.EnterOtpCode="enter-otp-code",a.RecoveryFactorAlreadyExists="recovery-factor-already-exists",a.MalformedPhoneNumber="malformed-phone-number",a.InvalidOtpCode="invalid-otp-code",a))(J||{}),Y=(i=>(i.SendNewPhoneNumber="send-new-phone-number",i.SendOtpCode="send-otp-code",i.Cancel="cancel",i.StartEditPhoneNumber="start-edit-phone-number",i))(Y||{}),B=(r=>(r.PhoneNumber="phone_number",r))(B||{}),P=(o=>(o.SmsOtpSent="sms-otp-sent",o.LoginThrottled="login-throttled",o.InvalidSmsOtp="invalid-sms-otp",o.SmsVerified="sms-verified",o.AccountRecovered="account-recovered",o.UpdateEmailRequired="update-email-required",o))(P||{}),j=(i=>(i.Cancel="cancel",i.VerifyOtp="verify-otp-code",i.ResendSms="resend-sms-otp",i.UpdateEmail="update-email",i))(j||{});var Q=(i=>(i.Success="nft-checkout-success",i.Failure="nft-checkout-failure",i.Initiated="nft-checkout-initiated",i.Disconnect="disconnect",i))(Q||{});var X=(r=>(r.WalletInfoFetched="Wallet/wallet-info-fetched",r))(X||{});var z=(r=>(r.CloseMagicWindow="close-magic-window",r))(z||{});
"use strict";var l=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames;var $=Object.prototype.hasOwnProperty;var K=(p,r)=>{for(var c in r)l(p,c,{get:r[c],enumerable:!0})},ee=(p,r,c,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Z(r))!$.call(p,i)&&i!==c&&l(p,i,{get:()=>r[i],enumerable:!(t=M(r,i))||t.enumerable});return p};var te=p=>ee(l({},"__esModule",{value:!0}),p);var ne={};K(ne,{AuthEventOnReceived:()=>k,DeepLinkPage:()=>y,DeviceVerificationEventEmit:()=>O,DeviceVerificationEventOnReceived:()=>S,DisableMFAEventEmit:()=>G,DisableMFAEventOnReceived:()=>V,EnableMFAEventEmit:()=>D,EnableMFAEventOnReceived:()=>L,EthChainType:()=>H,FarcasterLoginEventEmit:()=>w,LocalStorageKeys:()=>_,LoginWithEmailOTPEventEmit:()=>I,LoginWithEmailOTPEventOnReceived:()=>T,LoginWithMagicLinkEventEmit:()=>A,LoginWithMagicLinkEventOnReceived:()=>R,LoginWithSmsOTPEventEmit:()=>N,LoginWithSmsOTPEventOnReceived:()=>h,MagicIncomingWindowMessage:()=>E,MagicOutgoingWindowMessage:()=>x,MagicPayloadMethod:()=>g,NftCheckoutIntermediaryEvents:()=>Q,RPCErrorCode:()=>u,RecencyCheckEventEmit:()=>b,RecencyCheckEventOnReceived:()=>C,RecoverAccountEventEmit:()=>j,RecoverAccountEventOnReceived:()=>P,RecoveryFactorEventEmit:()=>Y,RecoveryFactorEventOnReceived:()=>J,RecoveryMethodType:()=>B,SDKErrorCode:()=>m,SDKWarningCode:()=>v,ThirdPartyWalletEvents:()=>f,UiEventsEmit:()=>z,UpdateEmailEventEmit:()=>F,UpdateEmailEventOnReceived:()=>U,UserEventsEmit:()=>q,UserEventsOnReceived:()=>W,WalletEventOnReceived:()=>X,routeToMagicMethods:()=>ie});module.exports=te(ne);var m=(o=>(o.MissingApiKey="MISSING_API_KEY",o.ModalNotReady="MODAL_NOT_READY",o.MalformedResponse="MALFORMED_RESPONSE",o.InvalidArgument="INVALID_ARGUMENT",o.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",o.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",o))(m||{}),v=(a=>(a.SyncWeb3Method="SYNC_WEB3_METHOD",a.DuplicateIframe="DUPLICATE_IFRAME",a.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",a.DeprecationNotice="DEPRECATION_NOTICE",a.ProductAnnouncement="ANNOUNCEMENT",a))(v||{}),u=(n=>(n[n.ParseError=-32700]="ParseError",n[n.InvalidRequest=-32600]="InvalidRequest",n[n.MethodNotFound=-32601]="MethodNotFound",n[n.InvalidParams=-32602]="InvalidParams",n[n.InternalError=-32603]="InternalError",n[n.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",n[n.MagicLinkExpired=-10001]="MagicLinkExpired",n[n.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",n[n.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",n[n.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",n[n.UpdateEmailFailed=-10004]="UpdateEmailFailed",n[n.UserRequestEditEmail=-10005]="UserRequestEditEmail",n[n.InactiveRecipient=-10010]="InactiveRecipient",n[n.AccessDeniedToUser=-10011]="AccessDeniedToUser",n[n.RedirectLoginComplete=-10015]="RedirectLoginComplete",n))(u||{});var _=(t=>(t.PROVIDER="magic_3pw_provider",t.ADDRESS="magic_3pw_address",t.CHAIN_ID="magic_3pw_chainId",t))(_||{}),f=(t=>(t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",t.Web3ModalSelected="web3modal_selected",t))(f||{}),g=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.SetAuthorizationToken="magic_auth_set_authorization_token",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.UserSettings="magic_auth_settings",e.UserSettingsTestMode="magic_auth_settings_testing_mode",e.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",e.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",e.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",e.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",e.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",e.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",e.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",e.LogoutTestMode="magic_auth_logout_testing_mode",e.UpdateEmailTestMode="magic_auth_update_email_testing_mode",e.IntermediaryEvent="magic_intermediary_event",e.RequestAccounts="eth_requestAccounts",e.GetInfo="magic_get_info",e.ShowUI="magic_wallet",e.NFTPurchase="magic_nft_purchase",e.NFTCheckout="magic_nft_checkout",e.NFTTransfer="magic_nft_transfer",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e.MagicBoxHeartBeat="magic_box_heart_beat",e.AutoConnect="mc_auto_connect",e.Login="mc_login",e.EncryptV1="magic_auth_encrypt_v1",e.DecryptV1="magic_auth_decrypt_v1",e.ShowNFTs="magic_show_nfts",e.ShowOnRamp="magic_show_fiat_onramp",e.ShowSendTokensUI="magic_show_send_tokens_ui",e.ShowAddress="magic_show_address",e.ShowBalances="magic_show_balances",e.SendGaslessTransaction="eth_sendGaslessTransaction",e.RevealPK="magic_reveal_key",e.EnableMFA="magic_auth_enable_mfa_flow",e.DisableMFA="magic_auth_disable_mfa_flow",e))(g||{}),ie=["magic_intermediary_event","magic_nft_checkout","mc_login"];var E=(d=>(d.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",d.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",d.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",d.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",d.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",d.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",d.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",d.MAGIC_PONG="MAGIC_PONG",d.MAGIC_POPUP_RESPONSE="MAGIC_POPUP_RESPONSE",d.MAGIC_POPUP_OAUTH_VERIFY_RESPONSE="MAGIC_POPUP_OAUTH_VERIFY_RESPONSE",d))(E||{}),x=(c=>(c.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",c.MAGIC_PING="MAGIC_PING",c))(x||{});var y=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(y||{});var A=(r=>(r.Retry="retry",r))(A||{}),R=(c=>(c.EmailSent="email-sent",c.EmailNotDeliverable="email-not-deliverable",c))(R||{}),I=(a=>(a.VerifyEmailOtp="verify-email-otp",a.VerifyMFACode="verify-mfa-code",a.LostDevice="lost-device",a.VerifyRecoveryCode="verify-recovery-code",a.Cancel="cancel",a))(I||{}),N=(t=>(t.VerifySmsOtp="verify-sms-otp",t.Cancel="cancel",t.Retry="retry",t))(N||{}),h=(t=>(t.SmsOTPSent="sms-otp-sent",t.InvalidSmsOtp="invalid-sms-otp",t.ExpiredSmsOtp="expired-sms-otp",t))(h||{}),T=(s=>(s.EmailOTPSent="email-otp-sent",s.InvalidEmailOtp="invalid-email-otp",s.InvalidMfaOtp="invalid-mfa-otp",s.ExpiredEmailOtp="expired-email-otp",s.MfaSentHandle="mfa-sent-handle",s.RecoveryCodeSentHandle="recovery-code-sent-handle",s.InvalidRecoveryCode="invalid-recovery-code",s.RecoveryCodeSuccess="recovery-code-success",s))(T||{}),O=(r=>(r.Retry="device-retry",r))(O||{}),S=(i=>(i.DeviceApproved="device-approved",i.DeviceNeedsApproval="device-needs-approval",i.DeviceVerificationLinkExpired="device-verification-link-expired",i.DeviceVerificationEmailSent="device-verification-email-sent",i))(S||{}),b=(i=>(i.Retry="Recency/auth-factor-retry",i.Cancel="Recency/auth-factor-verification-cancel",i.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",i.VerifyMFACode="Recency/verify-mfa-code",i))(b||{}),C=(o=>(o.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",o.PrimaryAuthFactorVerified="Recency/auth-factor-verified",o.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",o.EmailExpired="Recency/auth-factor-verification-email-expired",o.EmailSent="Recency/auth-factor-verification-email-sent",o.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",o))(C||{}),F=(t=>(t.RetryWithNewEmail="UpdateEmail/retry-with-new-email",t.Cancel="UpdateEmail/new-email-verification-cancel",t.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",t))(F||{}),U=(s=>(s.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",s.EmailUpdated="UpdateEmail/email-updated",s.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",s.EmailExpired="UpdateEmail/new-email-verification-email-expired",s.EmailSent="UpdateEmail/new-email-verification-email-sent",s.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",s.InvalidEmail="UpdateEmail/new-email-invalid",s.EmailAlreadyExists="UpdateEmail/new-email-already-exists",s))(U||{}),k=(r=>(r.IDTokenCreated="Auth/id-token-created",r))(k||{}),w=(r=>(r.Cancel="Farcaster/cancel",r))(w||{}),L=(t=>(t.MFASecretGenerated="mfa-secret-generated",t.InvalidMFAOtp="invalid-mfa-otp",t.MFARecoveryCodes="mfa-recovery-codes",t))(L||{}),D=(c=>(c.VerifyMFACode="verify-mfa-code",c.Cancel="cancel-mfa-setup",c))(D||{}),V=(t=>(t.MFACodeRequested="mfa-code-requested",t.InvalidMFAOtp="invalid-mfa-otp",t.InvalidRecoveryCode="invalid-recovery-code",t))(V||{}),G=(t=>(t.VerifyMFACode="verify-mfa-code",t.LostDevice="lost-device",t.Cancel="cancel-mfa-disable",t))(G||{});var H=(r=>(r.Harmony="HARMONY",r))(H||{});var q=(r=>(r.ClosedByUser="closed-by-user",r))(q||{}),W=(r=>(r.ClosedByUser="closed-by-user-on-received",r))(W||{}),J=(a=>(a.EnterNewPhoneNumber="enter-new-phone-number",a.EnterOtpCode="enter-otp-code",a.RecoveryFactorAlreadyExists="recovery-factor-already-exists",a.MalformedPhoneNumber="malformed-phone-number",a.InvalidOtpCode="invalid-otp-code",a))(J||{}),Y=(i=>(i.SendNewPhoneNumber="send-new-phone-number",i.SendOtpCode="send-otp-code",i.Cancel="cancel",i.StartEditPhoneNumber="start-edit-phone-number",i))(Y||{}),B=(r=>(r.PhoneNumber="phone_number",r))(B||{}),P=(o=>(o.SmsOtpSent="sms-otp-sent",o.LoginThrottled="login-throttled",o.InvalidSmsOtp="invalid-sms-otp",o.SmsVerified="sms-verified",o.AccountRecovered="account-recovered",o.UpdateEmailRequired="update-email-required",o))(P||{}),j=(i=>(i.Cancel="cancel",i.VerifyOtp="verify-otp-code",i.ResendSms="resend-sms-otp",i.UpdateEmail="update-email",i))(j||{});var Q=(i=>(i.Success="nft-checkout-success",i.Failure="nft-checkout-failure",i.Initiated="nft-checkout-initiated",i.Disconnect="disconnect",i))(Q||{});var X=(r=>(r.WalletInfoFetched="Wallet/wallet-info-fetched",r))(X||{});var z=(r=>(r.CloseMagicWindow="close-magic-window",r))(z||{});
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

"use strict";var l=Object.defineProperty;var Z=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var K=(d,r)=>{for(var c in r)l(d,c,{get:r[c],enumerable:!0})},ee=(d,r,c,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of $(r))!M.call(d,i)&&i!==c&&l(d,i,{get:()=>r[i],enumerable:!(t=Z(r,i))||t.enumerable});return d};var te=d=>ee(l({},"__esModule",{value:!0}),d);var ie={};K(ie,{AuthEventOnReceived:()=>k,DeepLinkPage:()=>y,DeviceVerificationEventEmit:()=>O,DeviceVerificationEventOnReceived:()=>S,DisableMFAEventEmit:()=>G,DisableMFAEventOnReceived:()=>V,EnableMFAEventEmit:()=>D,EnableMFAEventOnReceived:()=>L,EthChainType:()=>H,FarcasterLoginEventEmit:()=>w,LocalStorageKeys:()=>_,LoginWithEmailOTPEventEmit:()=>I,LoginWithEmailOTPEventOnReceived:()=>T,LoginWithMagicLinkEventEmit:()=>A,LoginWithMagicLinkEventOnReceived:()=>R,LoginWithSmsOTPEventEmit:()=>N,LoginWithSmsOTPEventOnReceived:()=>h,MagicIncomingWindowMessage:()=>E,MagicOutgoingWindowMessage:()=>x,MagicPayloadMethod:()=>g,NftCheckoutIntermediaryEvents:()=>Q,RPCErrorCode:()=>u,RecencyCheckEventEmit:()=>b,RecencyCheckEventOnReceived:()=>C,RecoverAccountEventEmit:()=>j,RecoverAccountEventOnReceived:()=>P,RecoveryFactorEventEmit:()=>Y,RecoveryFactorEventOnReceived:()=>J,RecoveryMethodType:()=>B,SDKErrorCode:()=>m,SDKWarningCode:()=>v,ThirdPartyWalletEvents:()=>f,UiEventsEmit:()=>z,UpdateEmailEventEmit:()=>F,UpdateEmailEventOnReceived:()=>U,UserEventsEmit:()=>q,UserEventsOnReceived:()=>W,WalletEventOnReceived:()=>X});module.exports=te(ie);var m=(o=>(o.MissingApiKey="MISSING_API_KEY",o.ModalNotReady="MODAL_NOT_READY",o.MalformedResponse="MALFORMED_RESPONSE",o.InvalidArgument="INVALID_ARGUMENT",o.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",o.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",o))(m||{}),v=(a=>(a.SyncWeb3Method="SYNC_WEB3_METHOD",a.DuplicateIframe="DUPLICATE_IFRAME",a.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",a.DeprecationNotice="DEPRECATION_NOTICE",a.ProductAnnouncement="ANNOUNCEMENT",a))(v||{}),u=(n=>(n[n.ParseError=-32700]="ParseError",n[n.InvalidRequest=-32600]="InvalidRequest",n[n.MethodNotFound=-32601]="MethodNotFound",n[n.InvalidParams=-32602]="InvalidParams",n[n.InternalError=-32603]="InternalError",n[n.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",n[n.MagicLinkExpired=-10001]="MagicLinkExpired",n[n.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",n[n.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",n[n.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",n[n.UpdateEmailFailed=-10004]="UpdateEmailFailed",n[n.UserRequestEditEmail=-10005]="UserRequestEditEmail",n[n.InactiveRecipient=-10010]="InactiveRecipient",n[n.AccessDeniedToUser=-10011]="AccessDeniedToUser",n[n.RedirectLoginComplete=-10015]="RedirectLoginComplete",n))(u||{});var _=(t=>(t.PROVIDER="magic_3pw_provider",t.ADDRESS="magic_3pw_address",t.CHAIN_ID="magic_3pw_chainId",t))(_||{}),f=(t=>(t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",t.Web3ModalSelected="web3modal_selected",t))(f||{}),g=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.SetAuthorizationToken="magic_auth_set_authorization_token",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.UserSettings="magic_auth_settings",e.UserSettingsTestMode="magic_auth_settings_testing_mode",e.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",e.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",e.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",e.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",e.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",e.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",e.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",e.LogoutTestMode="magic_auth_logout_testing_mode",e.UpdateEmailTestMode="magic_auth_update_email_testing_mode",e.IntermediaryEvent="magic_intermediary_event",e.RequestAccounts="eth_requestAccounts",e.GetInfo="magic_get_info",e.ShowUI="magic_wallet",e.NFTPurchase="magic_nft_purchase",e.NFTCheckout="magic_nft_checkout",e.NFTTransfer="magic_nft_transfer",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e.MagicBoxHeartBeat="magic_box_heart_beat",e.AutoConnect="mc_auto_connect",e.Login="mc_login",e.EncryptV1="magic_auth_encrypt_v1",e.DecryptV1="magic_auth_decrypt_v1",e.ShowNFTs="magic_show_nfts",e.ShowOnRamp="magic_show_fiat_onramp",e.ShowSendTokensUI="magic_show_send_tokens_ui",e.ShowAddress="magic_show_address",e.ShowBalances="magic_show_balances",e.SendGaslessTransaction="eth_sendGaslessTransaction",e.RevealPK="magic_reveal_key",e.EnableMFA="magic_auth_enable_mfa_flow",e.DisableMFA="magic_auth_disable_mfa_flow",e))(g||{});var E=(p=>(p.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",p.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",p.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",p.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",p.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",p.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",p.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",p.MAGIC_PONG="MAGIC_PONG",p.MAGIC_POPUP_RESPONSE="MAGIC_POPUP_RESPONSE",p.MAGIC_POPUP_OAUTH_VERIFY_RESPONSE="MAGIC_POPUP_OAUTH_VERIFY_RESPONSE",p))(E||{}),x=(c=>(c.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",c.MAGIC_PING="MAGIC_PING",c))(x||{});var y=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(y||{});var A=(r=>(r.Retry="retry",r))(A||{}),R=(c=>(c.EmailSent="email-sent",c.EmailNotDeliverable="email-not-deliverable",c))(R||{}),I=(a=>(a.VerifyEmailOtp="verify-email-otp",a.VerifyMFACode="verify-mfa-code",a.LostDevice="lost-device",a.VerifyRecoveryCode="verify-recovery-code",a.Cancel="cancel",a))(I||{}),N=(t=>(t.VerifySmsOtp="verify-sms-otp",t.Cancel="cancel",t.Retry="retry",t))(N||{}),h=(t=>(t.SmsOTPSent="sms-otp-sent",t.InvalidSmsOtp="invalid-sms-otp",t.ExpiredSmsOtp="expired-sms-otp",t))(h||{}),T=(s=>(s.EmailOTPSent="email-otp-sent",s.InvalidEmailOtp="invalid-email-otp",s.InvalidMfaOtp="invalid-mfa-otp",s.ExpiredEmailOtp="expired-email-otp",s.MfaSentHandle="mfa-sent-handle",s.RecoveryCodeSentHandle="recovery-code-sent-handle",s.InvalidRecoveryCode="invalid-recovery-code",s.RecoveryCodeSuccess="recovery-code-success",s))(T||{}),O=(r=>(r.Retry="device-retry",r))(O||{}),S=(i=>(i.DeviceApproved="device-approved",i.DeviceNeedsApproval="device-needs-approval",i.DeviceVerificationLinkExpired="device-verification-link-expired",i.DeviceVerificationEmailSent="device-verification-email-sent",i))(S||{}),b=(i=>(i.Retry="Recency/auth-factor-retry",i.Cancel="Recency/auth-factor-verification-cancel",i.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",i.VerifyMFACode="Recency/verify-mfa-code",i))(b||{}),C=(o=>(o.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",o.PrimaryAuthFactorVerified="Recency/auth-factor-verified",o.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",o.EmailExpired="Recency/auth-factor-verification-email-expired",o.EmailSent="Recency/auth-factor-verification-email-sent",o.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",o))(C||{}),F=(t=>(t.RetryWithNewEmail="UpdateEmail/retry-with-new-email",t.Cancel="UpdateEmail/new-email-verification-cancel",t.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",t))(F||{}),U=(s=>(s.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",s.EmailUpdated="UpdateEmail/email-updated",s.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",s.EmailExpired="UpdateEmail/new-email-verification-email-expired",s.EmailSent="UpdateEmail/new-email-verification-email-sent",s.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",s.InvalidEmail="UpdateEmail/new-email-invalid",s.EmailAlreadyExists="UpdateEmail/new-email-already-exists",s))(U||{}),k=(r=>(r.IDTokenCreated="Auth/id-token-created",r))(k||{}),w=(r=>(r.Cancel="Farcaster/cancel",r))(w||{}),L=(t=>(t.MFASecretGenerated="mfa-secret-generated",t.InvalidMFAOtp="invalid-mfa-otp",t.MFARecoveryCodes="mfa-recovery-codes",t))(L||{}),D=(c=>(c.VerifyMFACode="verify-mfa-code",c.Cancel="cancel-mfa-setup",c))(D||{}),V=(t=>(t.MFACodeRequested="mfa-code-requested",t.InvalidMFAOtp="invalid-mfa-otp",t.InvalidRecoveryCode="invalid-recovery-code",t))(V||{}),G=(t=>(t.VerifyMFACode="verify-mfa-code",t.LostDevice="lost-device",t.Cancel="cancel-mfa-disable",t))(G||{});var H=(r=>(r.Harmony="HARMONY",r))(H||{});var q=(r=>(r.ClosedByUser="closed-by-user",r))(q||{}),W=(r=>(r.ClosedByUser="closed-by-user-on-received",r))(W||{}),J=(a=>(a.EnterNewPhoneNumber="enter-new-phone-number",a.EnterOtpCode="enter-otp-code",a.RecoveryFactorAlreadyExists="recovery-factor-already-exists",a.MalformedPhoneNumber="malformed-phone-number",a.InvalidOtpCode="invalid-otp-code",a))(J||{}),Y=(i=>(i.SendNewPhoneNumber="send-new-phone-number",i.SendOtpCode="send-otp-code",i.Cancel="cancel",i.StartEditPhoneNumber="start-edit-phone-number",i))(Y||{}),B=(r=>(r.PhoneNumber="phone_number",r))(B||{}),P=(o=>(o.SmsOtpSent="sms-otp-sent",o.LoginThrottled="login-throttled",o.InvalidSmsOtp="invalid-sms-otp",o.SmsVerified="sms-verified",o.AccountRecovered="account-recovered",o.UpdateEmailRequired="update-email-required",o))(P||{}),j=(i=>(i.Cancel="cancel",i.VerifyOtp="verify-otp-code",i.ResendSms="resend-sms-otp",i.UpdateEmail="update-email",i))(j||{});var Q=(i=>(i.Success="nft-checkout-success",i.Failure="nft-checkout-failure",i.Initiated="nft-checkout-initiated",i.Disconnect="disconnect",i))(Q||{});var X=(r=>(r.WalletInfoFetched="Wallet/wallet-info-fetched",r))(X||{});var z=(r=>(r.CloseMagicWindow="close-magic-window",r))(z||{});
"use strict";var l=Object.defineProperty;var M=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames;var $=Object.prototype.hasOwnProperty;var K=(p,r)=>{for(var c in r)l(p,c,{get:r[c],enumerable:!0})},ee=(p,r,c,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Z(r))!$.call(p,i)&&i!==c&&l(p,i,{get:()=>r[i],enumerable:!(t=M(r,i))||t.enumerable});return p};var te=p=>ee(l({},"__esModule",{value:!0}),p);var ne={};K(ne,{AuthEventOnReceived:()=>k,DeepLinkPage:()=>y,DeviceVerificationEventEmit:()=>O,DeviceVerificationEventOnReceived:()=>S,DisableMFAEventEmit:()=>G,DisableMFAEventOnReceived:()=>V,EnableMFAEventEmit:()=>D,EnableMFAEventOnReceived:()=>L,EthChainType:()=>H,FarcasterLoginEventEmit:()=>w,LocalStorageKeys:()=>_,LoginWithEmailOTPEventEmit:()=>I,LoginWithEmailOTPEventOnReceived:()=>T,LoginWithMagicLinkEventEmit:()=>A,LoginWithMagicLinkEventOnReceived:()=>R,LoginWithSmsOTPEventEmit:()=>N,LoginWithSmsOTPEventOnReceived:()=>h,MagicIncomingWindowMessage:()=>E,MagicOutgoingWindowMessage:()=>x,MagicPayloadMethod:()=>g,NftCheckoutIntermediaryEvents:()=>Q,RPCErrorCode:()=>u,RecencyCheckEventEmit:()=>b,RecencyCheckEventOnReceived:()=>C,RecoverAccountEventEmit:()=>j,RecoverAccountEventOnReceived:()=>P,RecoveryFactorEventEmit:()=>Y,RecoveryFactorEventOnReceived:()=>J,RecoveryMethodType:()=>B,SDKErrorCode:()=>m,SDKWarningCode:()=>v,ThirdPartyWalletEvents:()=>f,UiEventsEmit:()=>z,UpdateEmailEventEmit:()=>F,UpdateEmailEventOnReceived:()=>U,UserEventsEmit:()=>q,UserEventsOnReceived:()=>W,WalletEventOnReceived:()=>X,routeToMagicMethods:()=>ie});module.exports=te(ne);var m=(o=>(o.MissingApiKey="MISSING_API_KEY",o.ModalNotReady="MODAL_NOT_READY",o.MalformedResponse="MALFORMED_RESPONSE",o.InvalidArgument="INVALID_ARGUMENT",o.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",o.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",o))(m||{}),v=(a=>(a.SyncWeb3Method="SYNC_WEB3_METHOD",a.DuplicateIframe="DUPLICATE_IFRAME",a.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",a.DeprecationNotice="DEPRECATION_NOTICE",a.ProductAnnouncement="ANNOUNCEMENT",a))(v||{}),u=(n=>(n[n.ParseError=-32700]="ParseError",n[n.InvalidRequest=-32600]="InvalidRequest",n[n.MethodNotFound=-32601]="MethodNotFound",n[n.InvalidParams=-32602]="InvalidParams",n[n.InternalError=-32603]="InternalError",n[n.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",n[n.MagicLinkExpired=-10001]="MagicLinkExpired",n[n.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",n[n.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",n[n.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",n[n.UpdateEmailFailed=-10004]="UpdateEmailFailed",n[n.UserRequestEditEmail=-10005]="UserRequestEditEmail",n[n.InactiveRecipient=-10010]="InactiveRecipient",n[n.AccessDeniedToUser=-10011]="AccessDeniedToUser",n[n.RedirectLoginComplete=-10015]="RedirectLoginComplete",n))(u||{});var _=(t=>(t.PROVIDER="magic_3pw_provider",t.ADDRESS="magic_3pw_address",t.CHAIN_ID="magic_3pw_chainId",t))(_||{}),f=(t=>(t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",t.Web3ModalSelected="web3modal_selected",t))(f||{}),g=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.SetAuthorizationToken="magic_auth_set_authorization_token",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.UserSettings="magic_auth_settings",e.UserSettingsTestMode="magic_auth_settings_testing_mode",e.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",e.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",e.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",e.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",e.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",e.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",e.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",e.LogoutTestMode="magic_auth_logout_testing_mode",e.UpdateEmailTestMode="magic_auth_update_email_testing_mode",e.IntermediaryEvent="magic_intermediary_event",e.RequestAccounts="eth_requestAccounts",e.GetInfo="magic_get_info",e.ShowUI="magic_wallet",e.NFTPurchase="magic_nft_purchase",e.NFTCheckout="magic_nft_checkout",e.NFTTransfer="magic_nft_transfer",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e.MagicBoxHeartBeat="magic_box_heart_beat",e.AutoConnect="mc_auto_connect",e.Login="mc_login",e.EncryptV1="magic_auth_encrypt_v1",e.DecryptV1="magic_auth_decrypt_v1",e.ShowNFTs="magic_show_nfts",e.ShowOnRamp="magic_show_fiat_onramp",e.ShowSendTokensUI="magic_show_send_tokens_ui",e.ShowAddress="magic_show_address",e.ShowBalances="magic_show_balances",e.SendGaslessTransaction="eth_sendGaslessTransaction",e.RevealPK="magic_reveal_key",e.EnableMFA="magic_auth_enable_mfa_flow",e.DisableMFA="magic_auth_disable_mfa_flow",e))(g||{}),ie=["magic_intermediary_event","magic_nft_checkout","mc_login"];var E=(d=>(d.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",d.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",d.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",d.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",d.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",d.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",d.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",d.MAGIC_PONG="MAGIC_PONG",d.MAGIC_POPUP_RESPONSE="MAGIC_POPUP_RESPONSE",d.MAGIC_POPUP_OAUTH_VERIFY_RESPONSE="MAGIC_POPUP_OAUTH_VERIFY_RESPONSE",d))(E||{}),x=(c=>(c.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",c.MAGIC_PING="MAGIC_PING",c))(x||{});var y=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(y||{});var A=(r=>(r.Retry="retry",r))(A||{}),R=(c=>(c.EmailSent="email-sent",c.EmailNotDeliverable="email-not-deliverable",c))(R||{}),I=(a=>(a.VerifyEmailOtp="verify-email-otp",a.VerifyMFACode="verify-mfa-code",a.LostDevice="lost-device",a.VerifyRecoveryCode="verify-recovery-code",a.Cancel="cancel",a))(I||{}),N=(t=>(t.VerifySmsOtp="verify-sms-otp",t.Cancel="cancel",t.Retry="retry",t))(N||{}),h=(t=>(t.SmsOTPSent="sms-otp-sent",t.InvalidSmsOtp="invalid-sms-otp",t.ExpiredSmsOtp="expired-sms-otp",t))(h||{}),T=(s=>(s.EmailOTPSent="email-otp-sent",s.InvalidEmailOtp="invalid-email-otp",s.InvalidMfaOtp="invalid-mfa-otp",s.ExpiredEmailOtp="expired-email-otp",s.MfaSentHandle="mfa-sent-handle",s.RecoveryCodeSentHandle="recovery-code-sent-handle",s.InvalidRecoveryCode="invalid-recovery-code",s.RecoveryCodeSuccess="recovery-code-success",s))(T||{}),O=(r=>(r.Retry="device-retry",r))(O||{}),S=(i=>(i.DeviceApproved="device-approved",i.DeviceNeedsApproval="device-needs-approval",i.DeviceVerificationLinkExpired="device-verification-link-expired",i.DeviceVerificationEmailSent="device-verification-email-sent",i))(S||{}),b=(i=>(i.Retry="Recency/auth-factor-retry",i.Cancel="Recency/auth-factor-verification-cancel",i.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",i.VerifyMFACode="Recency/verify-mfa-code",i))(b||{}),C=(o=>(o.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",o.PrimaryAuthFactorVerified="Recency/auth-factor-verified",o.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",o.EmailExpired="Recency/auth-factor-verification-email-expired",o.EmailSent="Recency/auth-factor-verification-email-sent",o.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",o))(C||{}),F=(t=>(t.RetryWithNewEmail="UpdateEmail/retry-with-new-email",t.Cancel="UpdateEmail/new-email-verification-cancel",t.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",t))(F||{}),U=(s=>(s.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",s.EmailUpdated="UpdateEmail/email-updated",s.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",s.EmailExpired="UpdateEmail/new-email-verification-email-expired",s.EmailSent="UpdateEmail/new-email-verification-email-sent",s.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",s.InvalidEmail="UpdateEmail/new-email-invalid",s.EmailAlreadyExists="UpdateEmail/new-email-already-exists",s))(U||{}),k=(r=>(r.IDTokenCreated="Auth/id-token-created",r))(k||{}),w=(r=>(r.Cancel="Farcaster/cancel",r))(w||{}),L=(t=>(t.MFASecretGenerated="mfa-secret-generated",t.InvalidMFAOtp="invalid-mfa-otp",t.MFARecoveryCodes="mfa-recovery-codes",t))(L||{}),D=(c=>(c.VerifyMFACode="verify-mfa-code",c.Cancel="cancel-mfa-setup",c))(D||{}),V=(t=>(t.MFACodeRequested="mfa-code-requested",t.InvalidMFAOtp="invalid-mfa-otp",t.InvalidRecoveryCode="invalid-recovery-code",t))(V||{}),G=(t=>(t.VerifyMFACode="verify-mfa-code",t.LostDevice="lost-device",t.Cancel="cancel-mfa-disable",t))(G||{});var H=(r=>(r.Harmony="HARMONY",r))(H||{});var q=(r=>(r.ClosedByUser="closed-by-user",r))(q||{}),W=(r=>(r.ClosedByUser="closed-by-user-on-received",r))(W||{}),J=(a=>(a.EnterNewPhoneNumber="enter-new-phone-number",a.EnterOtpCode="enter-otp-code",a.RecoveryFactorAlreadyExists="recovery-factor-already-exists",a.MalformedPhoneNumber="malformed-phone-number",a.InvalidOtpCode="invalid-otp-code",a))(J||{}),Y=(i=>(i.SendNewPhoneNumber="send-new-phone-number",i.SendOtpCode="send-otp-code",i.Cancel="cancel",i.StartEditPhoneNumber="start-edit-phone-number",i))(Y||{}),B=(r=>(r.PhoneNumber="phone_number",r))(B||{}),P=(o=>(o.SmsOtpSent="sms-otp-sent",o.LoginThrottled="login-throttled",o.InvalidSmsOtp="invalid-sms-otp",o.SmsVerified="sms-verified",o.AccountRecovered="account-recovered",o.UpdateEmailRequired="update-email-required",o))(P||{}),j=(i=>(i.Cancel="cancel",i.VerifyOtp="verify-otp-code",i.ResendSms="resend-sms-otp",i.UpdateEmail="update-email",i))(j||{});var Q=(i=>(i.Success="nft-checkout-success",i.Failure="nft-checkout-failure",i.Initiated="nft-checkout-initiated",i.Disconnect="disconnect",i))(Q||{});var X=(r=>(r.WalletInfoFetched="Wallet/wallet-info-fetched",r))(X||{});var z=(r=>(r.CloseMagicWindow="close-magic-window",r))(z||{});
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

var d=(r=>(r.MissingApiKey="MISSING_API_KEY",r.ModalNotReady="MODAL_NOT_READY",r.MalformedResponse="MALFORMED_RESPONSE",r.InvalidArgument="INVALID_ARGUMENT",r.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",r.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",r))(d||{}),l=(a=>(a.SyncWeb3Method="SYNC_WEB3_METHOD",a.DuplicateIframe="DUPLICATE_IFRAME",a.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",a.DeprecationNotice="DEPRECATION_NOTICE",a.ProductAnnouncement="ANNOUNCEMENT",a))(l||{}),m=(i=>(i[i.ParseError=-32700]="ParseError",i[i.InvalidRequest=-32600]="InvalidRequest",i[i.MethodNotFound=-32601]="MethodNotFound",i[i.InvalidParams=-32602]="InvalidParams",i[i.InternalError=-32603]="InternalError",i[i.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",i[i.MagicLinkExpired=-10001]="MagicLinkExpired",i[i.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",i[i.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",i[i.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",i[i.UpdateEmailFailed=-10004]="UpdateEmailFailed",i[i.UserRequestEditEmail=-10005]="UserRequestEditEmail",i[i.InactiveRecipient=-10010]="InactiveRecipient",i[i.AccessDeniedToUser=-10011]="AccessDeniedToUser",i[i.RedirectLoginComplete=-10015]="RedirectLoginComplete",i))(m||{});var v=(t=>(t.PROVIDER="magic_3pw_provider",t.ADDRESS="magic_3pw_address",t.CHAIN_ID="magic_3pw_chainId",t))(v||{}),u=(t=>(t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",t.Web3ModalSelected="web3modal_selected",t))(u||{}),_=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.SetAuthorizationToken="magic_auth_set_authorization_token",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.UserSettings="magic_auth_settings",e.UserSettingsTestMode="magic_auth_settings_testing_mode",e.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",e.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",e.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",e.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",e.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",e.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",e.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",e.LogoutTestMode="magic_auth_logout_testing_mode",e.UpdateEmailTestMode="magic_auth_update_email_testing_mode",e.IntermediaryEvent="magic_intermediary_event",e.RequestAccounts="eth_requestAccounts",e.GetInfo="magic_get_info",e.ShowUI="magic_wallet",e.NFTPurchase="magic_nft_purchase",e.NFTCheckout="magic_nft_checkout",e.NFTTransfer="magic_nft_transfer",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e.MagicBoxHeartBeat="magic_box_heart_beat",e.AutoConnect="mc_auto_connect",e.Login="mc_login",e.EncryptV1="magic_auth_encrypt_v1",e.DecryptV1="magic_auth_decrypt_v1",e.ShowNFTs="magic_show_nfts",e.ShowOnRamp="magic_show_fiat_onramp",e.ShowSendTokensUI="magic_show_send_tokens_ui",e.ShowAddress="magic_show_address",e.ShowBalances="magic_show_balances",e.SendGaslessTransaction="eth_sendGaslessTransaction",e.RevealPK="magic_reveal_key",e.EnableMFA="magic_auth_enable_mfa_flow",e.DisableMFA="magic_auth_disable_mfa_flow",e))(_||{});var f=(c=>(c.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",c.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",c.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",c.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",c.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",c.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",c.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",c.MAGIC_PONG="MAGIC_PONG",c.MAGIC_POPUP_RESPONSE="MAGIC_POPUP_RESPONSE",c.MAGIC_POPUP_OAUTH_VERIFY_RESPONSE="MAGIC_POPUP_OAUTH_VERIFY_RESPONSE",c))(f||{}),g=(p=>(p.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",p.MAGIC_PING="MAGIC_PING",p))(g||{});var E=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(E||{});var x=(o=>(o.Retry="retry",o))(x||{}),y=(p=>(p.EmailSent="email-sent",p.EmailNotDeliverable="email-not-deliverable",p))(y||{}),A=(a=>(a.VerifyEmailOtp="verify-email-otp",a.VerifyMFACode="verify-mfa-code",a.LostDevice="lost-device",a.VerifyRecoveryCode="verify-recovery-code",a.Cancel="cancel",a))(A||{}),R=(t=>(t.VerifySmsOtp="verify-sms-otp",t.Cancel="cancel",t.Retry="retry",t))(R||{}),I=(t=>(t.SmsOTPSent="sms-otp-sent",t.InvalidSmsOtp="invalid-sms-otp",t.ExpiredSmsOtp="expired-sms-otp",t))(I||{}),N=(s=>(s.EmailOTPSent="email-otp-sent",s.InvalidEmailOtp="invalid-email-otp",s.InvalidMfaOtp="invalid-mfa-otp",s.ExpiredEmailOtp="expired-email-otp",s.MfaSentHandle="mfa-sent-handle",s.RecoveryCodeSentHandle="recovery-code-sent-handle",s.InvalidRecoveryCode="invalid-recovery-code",s.RecoveryCodeSuccess="recovery-code-success",s))(N||{}),h=(o=>(o.Retry="device-retry",o))(h||{}),T=(n=>(n.DeviceApproved="device-approved",n.DeviceNeedsApproval="device-needs-approval",n.DeviceVerificationLinkExpired="device-verification-link-expired",n.DeviceVerificationEmailSent="device-verification-email-sent",n))(T||{}),O=(n=>(n.Retry="Recency/auth-factor-retry",n.Cancel="Recency/auth-factor-verification-cancel",n.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",n.VerifyMFACode="Recency/verify-mfa-code",n))(O||{}),S=(r=>(r.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",r.PrimaryAuthFactorVerified="Recency/auth-factor-verified",r.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",r.EmailExpired="Recency/auth-factor-verification-email-expired",r.EmailSent="Recency/auth-factor-verification-email-sent",r.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",r))(S||{}),b=(t=>(t.RetryWithNewEmail="UpdateEmail/retry-with-new-email",t.Cancel="UpdateEmail/new-email-verification-cancel",t.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",t))(b||{}),C=(s=>(s.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",s.EmailUpdated="UpdateEmail/email-updated",s.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",s.EmailExpired="UpdateEmail/new-email-verification-email-expired",s.EmailSent="UpdateEmail/new-email-verification-email-sent",s.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",s.InvalidEmail="UpdateEmail/new-email-invalid",s.EmailAlreadyExists="UpdateEmail/new-email-already-exists",s))(C||{}),F=(o=>(o.IDTokenCreated="Auth/id-token-created",o))(F||{}),U=(o=>(o.Cancel="Farcaster/cancel",o))(U||{}),k=(t=>(t.MFASecretGenerated="mfa-secret-generated",t.InvalidMFAOtp="invalid-mfa-otp",t.MFARecoveryCodes="mfa-recovery-codes",t))(k||{}),w=(p=>(p.VerifyMFACode="verify-mfa-code",p.Cancel="cancel-mfa-setup",p))(w||{}),L=(t=>(t.MFACodeRequested="mfa-code-requested",t.InvalidMFAOtp="invalid-mfa-otp",t.InvalidRecoveryCode="invalid-recovery-code",t))(L||{}),D=(t=>(t.VerifyMFACode="verify-mfa-code",t.LostDevice="lost-device",t.Cancel="cancel-mfa-disable",t))(D||{});var V=(o=>(o.Harmony="HARMONY",o))(V||{});var G=(o=>(o.ClosedByUser="closed-by-user",o))(G||{}),H=(o=>(o.ClosedByUser="closed-by-user-on-received",o))(H||{}),q=(a=>(a.EnterNewPhoneNumber="enter-new-phone-number",a.EnterOtpCode="enter-otp-code",a.RecoveryFactorAlreadyExists="recovery-factor-already-exists",a.MalformedPhoneNumber="malformed-phone-number",a.InvalidOtpCode="invalid-otp-code",a))(q||{}),W=(n=>(n.SendNewPhoneNumber="send-new-phone-number",n.SendOtpCode="send-otp-code",n.Cancel="cancel",n.StartEditPhoneNumber="start-edit-phone-number",n))(W||{}),J=(o=>(o.PhoneNumber="phone_number",o))(J||{}),Y=(r=>(r.SmsOtpSent="sms-otp-sent",r.LoginThrottled="login-throttled",r.InvalidSmsOtp="invalid-sms-otp",r.SmsVerified="sms-verified",r.AccountRecovered="account-recovered",r.UpdateEmailRequired="update-email-required",r))(Y||{}),B=(n=>(n.Cancel="cancel",n.VerifyOtp="verify-otp-code",n.ResendSms="resend-sms-otp",n.UpdateEmail="update-email",n))(B||{});var P=(n=>(n.Success="nft-checkout-success",n.Failure="nft-checkout-failure",n.Initiated="nft-checkout-initiated",n.Disconnect="disconnect",n))(P||{});var j=(o=>(o.WalletInfoFetched="Wallet/wallet-info-fetched",o))(j||{});var Q=(o=>(o.CloseMagicWindow="close-magic-window",o))(Q||{});export{F as AuthEventOnReceived,E as DeepLinkPage,h as DeviceVerificationEventEmit,T as DeviceVerificationEventOnReceived,D as DisableMFAEventEmit,L as DisableMFAEventOnReceived,w as EnableMFAEventEmit,k as EnableMFAEventOnReceived,V as EthChainType,U as FarcasterLoginEventEmit,v as LocalStorageKeys,A as LoginWithEmailOTPEventEmit,N as LoginWithEmailOTPEventOnReceived,x as LoginWithMagicLinkEventEmit,y as LoginWithMagicLinkEventOnReceived,R as LoginWithSmsOTPEventEmit,I as LoginWithSmsOTPEventOnReceived,f as MagicIncomingWindowMessage,g as MagicOutgoingWindowMessage,_ as MagicPayloadMethod,P as NftCheckoutIntermediaryEvents,m as RPCErrorCode,O as RecencyCheckEventEmit,S as RecencyCheckEventOnReceived,B as RecoverAccountEventEmit,Y as RecoverAccountEventOnReceived,W as RecoveryFactorEventEmit,q as RecoveryFactorEventOnReceived,J as RecoveryMethodType,d as SDKErrorCode,l as SDKWarningCode,u as ThirdPartyWalletEvents,Q as UiEventsEmit,b as UpdateEmailEventEmit,C as UpdateEmailEventOnReceived,G as UserEventsEmit,H as UserEventsOnReceived,j as WalletEventOnReceived};
var p=(r=>(r.MissingApiKey="MISSING_API_KEY",r.ModalNotReady="MODAL_NOT_READY",r.MalformedResponse="MALFORMED_RESPONSE",r.InvalidArgument="INVALID_ARGUMENT",r.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",r.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",r))(p||{}),l=(a=>(a.SyncWeb3Method="SYNC_WEB3_METHOD",a.DuplicateIframe="DUPLICATE_IFRAME",a.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",a.DeprecationNotice="DEPRECATION_NOTICE",a.ProductAnnouncement="ANNOUNCEMENT",a))(l||{}),m=(i=>(i[i.ParseError=-32700]="ParseError",i[i.InvalidRequest=-32600]="InvalidRequest",i[i.MethodNotFound=-32601]="MethodNotFound",i[i.InvalidParams=-32602]="InvalidParams",i[i.InternalError=-32603]="InternalError",i[i.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",i[i.MagicLinkExpired=-10001]="MagicLinkExpired",i[i.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",i[i.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",i[i.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",i[i.UpdateEmailFailed=-10004]="UpdateEmailFailed",i[i.UserRequestEditEmail=-10005]="UserRequestEditEmail",i[i.InactiveRecipient=-10010]="InactiveRecipient",i[i.AccessDeniedToUser=-10011]="AccessDeniedToUser",i[i.RedirectLoginComplete=-10015]="RedirectLoginComplete",i))(m||{});var v=(t=>(t.PROVIDER="magic_3pw_provider",t.ADDRESS="magic_3pw_address",t.CHAIN_ID="magic_3pw_chainId",t))(v||{}),u=(t=>(t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",t.Web3ModalSelected="web3modal_selected",t))(u||{}),_=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.SetAuthorizationToken="magic_auth_set_authorization_token",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_is_logged_in",e.Logout="magic_auth_logout",e.UpdateEmail="magic_auth_update_email",e.UserSettings="magic_auth_settings",e.UserSettingsTestMode="magic_auth_settings_testing_mode",e.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.LoginWithEmailOTPTestMode="magic_auth_login_with_email_otp_testing_mode",e.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",e.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",e.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",e.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",e.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",e.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",e.LogoutTestMode="magic_auth_logout_testing_mode",e.UpdateEmailTestMode="magic_auth_update_email_testing_mode",e.IntermediaryEvent="magic_intermediary_event",e.RequestAccounts="eth_requestAccounts",e.GetInfo="magic_get_info",e.ShowUI="magic_wallet",e.NFTPurchase="magic_nft_purchase",e.NFTCheckout="magic_nft_checkout",e.NFTTransfer="magic_nft_transfer",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e.MagicBoxHeartBeat="magic_box_heart_beat",e.AutoConnect="mc_auto_connect",e.Login="mc_login",e.EncryptV1="magic_auth_encrypt_v1",e.DecryptV1="magic_auth_decrypt_v1",e.ShowNFTs="magic_show_nfts",e.ShowOnRamp="magic_show_fiat_onramp",e.ShowSendTokensUI="magic_show_send_tokens_ui",e.ShowAddress="magic_show_address",e.ShowBalances="magic_show_balances",e.SendGaslessTransaction="eth_sendGaslessTransaction",e.RevealPK="magic_reveal_key",e.EnableMFA="magic_auth_enable_mfa_flow",e.DisableMFA="magic_auth_disable_mfa_flow",e))(_||{}),z=["magic_intermediary_event","magic_nft_checkout","mc_login"];var f=(c=>(c.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",c.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",c.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",c.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",c.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",c.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",c.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",c.MAGIC_PONG="MAGIC_PONG",c.MAGIC_POPUP_RESPONSE="MAGIC_POPUP_RESPONSE",c.MAGIC_POPUP_OAUTH_VERIFY_RESPONSE="MAGIC_POPUP_OAUTH_VERIFY_RESPONSE",c))(f||{}),g=(d=>(d.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",d.MAGIC_PING="MAGIC_PING",d))(g||{});var E=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(E||{});var x=(o=>(o.Retry="retry",o))(x||{}),y=(d=>(d.EmailSent="email-sent",d.EmailNotDeliverable="email-not-deliverable",d))(y||{}),A=(a=>(a.VerifyEmailOtp="verify-email-otp",a.VerifyMFACode="verify-mfa-code",a.LostDevice="lost-device",a.VerifyRecoveryCode="verify-recovery-code",a.Cancel="cancel",a))(A||{}),R=(t=>(t.VerifySmsOtp="verify-sms-otp",t.Cancel="cancel",t.Retry="retry",t))(R||{}),I=(t=>(t.SmsOTPSent="sms-otp-sent",t.InvalidSmsOtp="invalid-sms-otp",t.ExpiredSmsOtp="expired-sms-otp",t))(I||{}),N=(s=>(s.EmailOTPSent="email-otp-sent",s.InvalidEmailOtp="invalid-email-otp",s.InvalidMfaOtp="invalid-mfa-otp",s.ExpiredEmailOtp="expired-email-otp",s.MfaSentHandle="mfa-sent-handle",s.RecoveryCodeSentHandle="recovery-code-sent-handle",s.InvalidRecoveryCode="invalid-recovery-code",s.RecoveryCodeSuccess="recovery-code-success",s))(N||{}),h=(o=>(o.Retry="device-retry",o))(h||{}),T=(n=>(n.DeviceApproved="device-approved",n.DeviceNeedsApproval="device-needs-approval",n.DeviceVerificationLinkExpired="device-verification-link-expired",n.DeviceVerificationEmailSent="device-verification-email-sent",n))(T||{}),O=(n=>(n.Retry="Recency/auth-factor-retry",n.Cancel="Recency/auth-factor-verification-cancel",n.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",n.VerifyMFACode="Recency/verify-mfa-code",n))(O||{}),S=(r=>(r.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",r.PrimaryAuthFactorVerified="Recency/auth-factor-verified",r.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",r.EmailExpired="Recency/auth-factor-verification-email-expired",r.EmailSent="Recency/auth-factor-verification-email-sent",r.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",r))(S||{}),b=(t=>(t.RetryWithNewEmail="UpdateEmail/retry-with-new-email",t.Cancel="UpdateEmail/new-email-verification-cancel",t.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",t))(b||{}),C=(s=>(s.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",s.EmailUpdated="UpdateEmail/email-updated",s.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",s.EmailExpired="UpdateEmail/new-email-verification-email-expired",s.EmailSent="UpdateEmail/new-email-verification-email-sent",s.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",s.InvalidEmail="UpdateEmail/new-email-invalid",s.EmailAlreadyExists="UpdateEmail/new-email-already-exists",s))(C||{}),F=(o=>(o.IDTokenCreated="Auth/id-token-created",o))(F||{}),U=(o=>(o.Cancel="Farcaster/cancel",o))(U||{}),k=(t=>(t.MFASecretGenerated="mfa-secret-generated",t.InvalidMFAOtp="invalid-mfa-otp",t.MFARecoveryCodes="mfa-recovery-codes",t))(k||{}),w=(d=>(d.VerifyMFACode="verify-mfa-code",d.Cancel="cancel-mfa-setup",d))(w||{}),L=(t=>(t.MFACodeRequested="mfa-code-requested",t.InvalidMFAOtp="invalid-mfa-otp",t.InvalidRecoveryCode="invalid-recovery-code",t))(L||{}),D=(t=>(t.VerifyMFACode="verify-mfa-code",t.LostDevice="lost-device",t.Cancel="cancel-mfa-disable",t))(D||{});var V=(o=>(o.Harmony="HARMONY",o))(V||{});var G=(o=>(o.ClosedByUser="closed-by-user",o))(G||{}),H=(o=>(o.ClosedByUser="closed-by-user-on-received",o))(H||{}),q=(a=>(a.EnterNewPhoneNumber="enter-new-phone-number",a.EnterOtpCode="enter-otp-code",a.RecoveryFactorAlreadyExists="recovery-factor-already-exists",a.MalformedPhoneNumber="malformed-phone-number",a.InvalidOtpCode="invalid-otp-code",a))(q||{}),W=(n=>(n.SendNewPhoneNumber="send-new-phone-number",n.SendOtpCode="send-otp-code",n.Cancel="cancel",n.StartEditPhoneNumber="start-edit-phone-number",n))(W||{}),J=(o=>(o.PhoneNumber="phone_number",o))(J||{}),Y=(r=>(r.SmsOtpSent="sms-otp-sent",r.LoginThrottled="login-throttled",r.InvalidSmsOtp="invalid-sms-otp",r.SmsVerified="sms-verified",r.AccountRecovered="account-recovered",r.UpdateEmailRequired="update-email-required",r))(Y||{}),B=(n=>(n.Cancel="cancel",n.VerifyOtp="verify-otp-code",n.ResendSms="resend-sms-otp",n.UpdateEmail="update-email",n))(B||{});var P=(n=>(n.Success="nft-checkout-success",n.Failure="nft-checkout-failure",n.Initiated="nft-checkout-initiated",n.Disconnect="disconnect",n))(P||{});var j=(o=>(o.WalletInfoFetched="Wallet/wallet-info-fetched",o))(j||{});var Q=(o=>(o.CloseMagicWindow="close-magic-window",o))(Q||{});export{F as AuthEventOnReceived,E as DeepLinkPage,h as DeviceVerificationEventEmit,T as DeviceVerificationEventOnReceived,D as DisableMFAEventEmit,L as DisableMFAEventOnReceived,w as EnableMFAEventEmit,k as EnableMFAEventOnReceived,V as EthChainType,U as FarcasterLoginEventEmit,v as LocalStorageKeys,A as LoginWithEmailOTPEventEmit,N as LoginWithEmailOTPEventOnReceived,x as LoginWithMagicLinkEventEmit,y as LoginWithMagicLinkEventOnReceived,R as LoginWithSmsOTPEventEmit,I as LoginWithSmsOTPEventOnReceived,f as MagicIncomingWindowMessage,g as MagicOutgoingWindowMessage,_ as MagicPayloadMethod,P as NftCheckoutIntermediaryEvents,m as RPCErrorCode,O as RecencyCheckEventEmit,S as RecencyCheckEventOnReceived,B as RecoverAccountEventEmit,Y as RecoverAccountEventOnReceived,W as RecoveryFactorEventEmit,q as RecoveryFactorEventOnReceived,J as RecoveryMethodType,p as SDKErrorCode,l as SDKWarningCode,u as ThirdPartyWalletEvents,Q as UiEventsEmit,b as UpdateEmailEventEmit,C as UpdateEmailEventOnReceived,G as UserEventsEmit,H as UserEventsOnReceived,j as WalletEventOnReceived,z as routeToMagicMethods};
//# sourceMappingURL=index.js.map

@@ -115,1 +115,2 @@ import { RPCErrorCode } from './exception-types';

}
export declare const routeToMagicMethods: MagicPayloadMethod[];
{
"name": "@magic-sdk/types",
"version": "24.17.1-canary.742.12672414166.0",
"version": "24.17.1-canary.742.12672559632.0",
"description": "Core typings for Magic SDK packages.",

@@ -24,3 +24,3 @@ "author": "Magic Labs <team@magic.link> (https://magic.link/)",

},
"gitHead": "b71541117187d3236d99bb70725820503d9c3afd"
"gitHead": "58f37f533a6f08775bf75746e36c3a2962aff902"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc