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
611
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.15.0-canary.832.11709014109.0 to 24.15.0-canary.833.11741574387.0

2

./dist/cjs/index.js

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

"use strict";var p=Object.defineProperty;var Z=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var K=(l,r)=>{for(var s in r)p(l,s,{get:r[s],enumerable:!0})},P=(l,r,s,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of $(r))!M.call(l,i)&&i!==s&&p(l,i,{get:()=>r[i],enumerable:!(t=Z(r,i))||t.enumerable});return l};var ee=l=>P(p({},"__esModule",{value:!0}),l);var te={};K(te,{AuthEventOnReceived:()=>k,DeepLinkPage:()=>x,DeviceVerificationEventEmit:()=>T,DeviceVerificationEventOnReceived:()=>b,DisableMFAEventEmit:()=>V,DisableMFAEventOnReceived:()=>D,EnableMFAEventEmit:()=>U,EnableMFAEventOnReceived:()=>w,EthChainType:()=>G,Events:()=>_,FarcasterLoginEventEmit:()=>L,LoginWithEmailOTPEventEmit:()=>I,LoginWithEmailOTPEventOnReceived:()=>h,LoginWithMagicLinkEventEmit:()=>y,LoginWithMagicLinkEventOnReceived:()=>A,LoginWithSmsOTPEventEmit:()=>N,LoginWithSmsOTPEventOnReceived:()=>R,MagicIncomingWindowMessage:()=>g,MagicOutgoingWindowMessage:()=>E,MagicPayloadMethod:()=>f,NftCheckoutIntermediaryEvents:()=>Q,RPCErrorCode:()=>v,RecencyCheckEventEmit:()=>S,RecencyCheckEventOnReceived:()=>O,RecoverAccountEventEmit:()=>j,RecoverAccountEventOnReceived:()=>B,RecoveryFactorEventEmit:()=>J,RecoveryFactorEventOnReceived:()=>W,RecoveryMethodType:()=>Y,SDKErrorCode:()=>m,SDKWarningCode:()=>d,UiEventsEmit:()=>z,UpdateEmailEventEmit:()=>C,UpdateEmailEventOnReceived:()=>F,UserEventsEmit:()=>H,UserEventsOnReceived:()=>q,WalletEventOnReceived:()=>X,Wallets:()=>u});module.exports=ee(te);var m=(c=>(c.MissingApiKey="MISSING_API_KEY",c.ModalNotReady="MODAL_NOT_READY",c.MalformedResponse="MALFORMED_RESPONSE",c.InvalidArgument="INVALID_ARGUMENT",c.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",c.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",c))(m||{}),d=(a=>(a.SyncWeb3Method="SYNC_WEB3_METHOD",a.DuplicateIframe="DUPLICATE_IFRAME",a.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",a.DeprecationNotice="DEPRECATION_NOTICE",a.ProductAnnouncement="ANNOUNCEMENT",a))(d||{}),v=(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))(v||{});var u=(s=>(s.MetaMask="metamask",s.CoinbaseWallet="coinbase_wallet",s))(u||{}),_=(t=>(t.WalletSelected="wallet_selected",t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",t))(_||{}),f=(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))(f||{});var g=(o=>(o.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",o.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",o.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",o.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",o.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",o.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",o.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",o.MAGIC_PONG="MAGIC_PONG",o))(g||{}),E=(s=>(s.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",s.MAGIC_PING="MAGIC_PING",s))(E||{});var x=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(x||{});var y=(r=>(r.Retry="retry",r))(y||{}),A=(s=>(s.EmailSent="email-sent",s.EmailNotDeliverable="email-not-deliverable",s))(A||{}),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||{}),R=(t=>(t.SmsOTPSent="sms-otp-sent",t.InvalidSmsOtp="invalid-sms-otp",t.ExpiredSmsOtp="expired-sms-otp",t))(R||{}),h=(o=>(o.EmailOTPSent="email-otp-sent",o.InvalidEmailOtp="invalid-email-otp",o.InvalidMfaOtp="invalid-mfa-otp",o.ExpiredEmailOtp="expired-email-otp",o.MfaSentHandle="mfa-sent-handle",o.RecoveryCodeSentHandle="recovery-code-sent-handle",o.InvalidRecoveryCode="invalid-recovery-code",o.RecoveryCodeSuccess="recovery-code-success",o))(h||{}),T=(r=>(r.Retry="device-retry",r))(T||{}),b=(i=>(i.DeviceApproved="device-approved",i.DeviceNeedsApproval="device-needs-approval",i.DeviceVerificationLinkExpired="device-verification-link-expired",i.DeviceVerificationEmailSent="device-verification-email-sent",i))(b||{}),S=(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))(S||{}),O=(c=>(c.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",c.PrimaryAuthFactorVerified="Recency/auth-factor-verified",c.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",c.EmailExpired="Recency/auth-factor-verification-email-expired",c.EmailSent="Recency/auth-factor-verification-email-sent",c.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",c))(O||{}),C=(t=>(t.RetryWithNewEmail="UpdateEmail/retry-with-new-email",t.Cancel="UpdateEmail/new-email-verification-cancel",t.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",t))(C||{}),F=(o=>(o.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",o.EmailUpdated="UpdateEmail/email-updated",o.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",o.EmailExpired="UpdateEmail/new-email-verification-email-expired",o.EmailSent="UpdateEmail/new-email-verification-email-sent",o.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",o.InvalidEmail="UpdateEmail/new-email-invalid",o.EmailAlreadyExists="UpdateEmail/new-email-already-exists",o))(F||{}),k=(r=>(r.IDTokenCreated="Auth/id-token-created",r))(k||{}),L=(r=>(r.SuccessSignIn="Farcaster/success_sign_in",r))(L||{}),w=(t=>(t.MFASecretGenerated="mfa-secret-generated",t.InvalidMFAOtp="invalid-mfa-otp",t.MFARecoveryCodes="mfa-recovery-codes",t))(w||{}),U=(s=>(s.VerifyMFACode="verify-mfa-code",s.Cancel="cancel-mfa-setup",s))(U||{}),D=(t=>(t.MFACodeRequested="mfa-code-requested",t.InvalidMFAOtp="invalid-mfa-otp",t.InvalidRecoveryCode="invalid-recovery-code",t))(D||{}),V=(t=>(t.VerifyMFACode="verify-mfa-code",t.LostDevice="lost-device",t.Cancel="cancel-mfa-disable",t))(V||{});var G=(r=>(r.Harmony="HARMONY",r))(G||{});var H=(r=>(r.ClosedByUser="closed-by-user",r))(H||{}),q=(r=>(r.ClosedByUser="closed-by-user-on-received",r))(q||{}),W=(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))(W||{}),J=(i=>(i.SendNewPhoneNumber="send-new-phone-number",i.SendOtpCode="send-otp-code",i.Cancel="cancel",i.StartEditPhoneNumber="start-edit-phone-number",i))(J||{}),Y=(r=>(r.PhoneNumber="phone_number",r))(Y||{}),B=(i=>(i.SmsOtpSent="sms-otp-sent",i.LoginThrottled="login-throttled",i.InvalidSmsOtp="invalid-sms-otp",i.SmsVerified="sms-verified",i))(B||{}),j=(t=>(t.Cancel="cancel",t.VerifyOtp="verify-otp-code",t.ResendSms="resend-sms-otp",t))(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 p=Object.defineProperty;var Z=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var K=(l,r)=>{for(var s in r)p(l,s,{get:r[s],enumerable:!0})},P=(l,r,s,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of $(r))!M.call(l,i)&&i!==s&&p(l,i,{get:()=>r[i],enumerable:!(t=Z(r,i))||t.enumerable});return l};var ee=l=>P(p({},"__esModule",{value:!0}),l);var te={};K(te,{AuthEventOnReceived:()=>k,DeepLinkPage:()=>x,DeviceVerificationEventEmit:()=>T,DeviceVerificationEventOnReceived:()=>b,DisableMFAEventEmit:()=>V,DisableMFAEventOnReceived:()=>D,EnableMFAEventEmit:()=>U,EnableMFAEventOnReceived:()=>w,EthChainType:()=>G,Events:()=>_,FarcasterLoginEventEmit:()=>L,LoginWithEmailOTPEventEmit:()=>I,LoginWithEmailOTPEventOnReceived:()=>h,LoginWithMagicLinkEventEmit:()=>y,LoginWithMagicLinkEventOnReceived:()=>A,LoginWithSmsOTPEventEmit:()=>R,LoginWithSmsOTPEventOnReceived:()=>N,MagicIncomingWindowMessage:()=>g,MagicOutgoingWindowMessage:()=>E,MagicPayloadMethod:()=>f,NftCheckoutIntermediaryEvents:()=>Q,RPCErrorCode:()=>v,RecencyCheckEventEmit:()=>S,RecencyCheckEventOnReceived:()=>O,RecoverAccountEventEmit:()=>j,RecoverAccountEventOnReceived:()=>B,RecoveryFactorEventEmit:()=>J,RecoveryFactorEventOnReceived:()=>W,RecoveryMethodType:()=>Y,SDKErrorCode:()=>m,SDKWarningCode:()=>d,UiEventsEmit:()=>z,UpdateEmailEventEmit:()=>C,UpdateEmailEventOnReceived:()=>F,UserEventsEmit:()=>H,UserEventsOnReceived:()=>q,WalletEventOnReceived:()=>X,Wallets:()=>u});module.exports=ee(te);var m=(c=>(c.MissingApiKey="MISSING_API_KEY",c.ModalNotReady="MODAL_NOT_READY",c.MalformedResponse="MALFORMED_RESPONSE",c.InvalidArgument="INVALID_ARGUMENT",c.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",c.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",c))(m||{}),d=(a=>(a.SyncWeb3Method="SYNC_WEB3_METHOD",a.DuplicateIframe="DUPLICATE_IFRAME",a.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",a.DeprecationNotice="DEPRECATION_NOTICE",a.ProductAnnouncement="ANNOUNCEMENT",a))(d||{}),v=(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))(v||{});var u=(s=>(s.MetaMask="metamask",s.CoinbaseWallet="coinbase_wallet",s))(u||{}),_=(t=>(t.WalletSelected="wallet_selected",t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",t))(_||{}),f=(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))(f||{});var g=(o=>(o.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",o.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",o.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",o.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",o.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",o.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",o.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",o.MAGIC_PONG="MAGIC_PONG",o))(g||{}),E=(s=>(s.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",s.MAGIC_PING="MAGIC_PING",s))(E||{});var x=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(x||{});var y=(r=>(r.Retry="retry",r))(y||{}),A=(s=>(s.EmailSent="email-sent",s.EmailNotDeliverable="email-not-deliverable",s))(A||{}),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||{}),R=(t=>(t.VerifySmsOtp="verify-sms-otp",t.Cancel="cancel",t.Retry="retry",t))(R||{}),N=(t=>(t.SmsOTPSent="sms-otp-sent",t.InvalidSmsOtp="invalid-sms-otp",t.ExpiredSmsOtp="expired-sms-otp",t))(N||{}),h=(o=>(o.EmailOTPSent="email-otp-sent",o.InvalidEmailOtp="invalid-email-otp",o.InvalidMfaOtp="invalid-mfa-otp",o.ExpiredEmailOtp="expired-email-otp",o.MfaSentHandle="mfa-sent-handle",o.RecoveryCodeSentHandle="recovery-code-sent-handle",o.InvalidRecoveryCode="invalid-recovery-code",o.RecoveryCodeSuccess="recovery-code-success",o))(h||{}),T=(r=>(r.Retry="device-retry",r))(T||{}),b=(i=>(i.DeviceApproved="device-approved",i.DeviceNeedsApproval="device-needs-approval",i.DeviceVerificationLinkExpired="device-verification-link-expired",i.DeviceVerificationEmailSent="device-verification-email-sent",i))(b||{}),S=(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))(S||{}),O=(c=>(c.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",c.PrimaryAuthFactorVerified="Recency/auth-factor-verified",c.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",c.EmailExpired="Recency/auth-factor-verification-email-expired",c.EmailSent="Recency/auth-factor-verification-email-sent",c.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",c))(O||{}),C=(t=>(t.RetryWithNewEmail="UpdateEmail/retry-with-new-email",t.Cancel="UpdateEmail/new-email-verification-cancel",t.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",t))(C||{}),F=(o=>(o.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",o.EmailUpdated="UpdateEmail/email-updated",o.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",o.EmailExpired="UpdateEmail/new-email-verification-email-expired",o.EmailSent="UpdateEmail/new-email-verification-email-sent",o.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",o.InvalidEmail="UpdateEmail/new-email-invalid",o.EmailAlreadyExists="UpdateEmail/new-email-already-exists",o))(F||{}),k=(r=>(r.IDTokenCreated="Auth/id-token-created",r))(k||{}),L=(r=>(r.SuccessSignIn="Farcaster/success_sign_in",r))(L||{}),w=(t=>(t.MFASecretGenerated="mfa-secret-generated",t.InvalidMFAOtp="invalid-mfa-otp",t.MFARecoveryCodes="mfa-recovery-codes",t))(w||{}),U=(s=>(s.VerifyMFACode="verify-mfa-code",s.Cancel="cancel-mfa-setup",s))(U||{}),D=(t=>(t.MFACodeRequested="mfa-code-requested",t.InvalidMFAOtp="invalid-mfa-otp",t.InvalidRecoveryCode="invalid-recovery-code",t))(D||{}),V=(t=>(t.VerifyMFACode="verify-mfa-code",t.LostDevice="lost-device",t.Cancel="cancel-mfa-disable",t))(V||{});var G=(r=>(r.Harmony="HARMONY",r))(G||{});var H=(r=>(r.ClosedByUser="closed-by-user",r))(H||{}),q=(r=>(r.ClosedByUser="closed-by-user-on-received",r))(q||{}),W=(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))(W||{}),J=(i=>(i.SendNewPhoneNumber="send-new-phone-number",i.SendOtpCode="send-otp-code",i.Cancel="cancel",i.StartEditPhoneNumber="start-edit-phone-number",i))(J||{}),Y=(r=>(r.PhoneNumber="phone_number",r))(Y||{}),B=(a=>(a.SmsOtpSent="sms-otp-sent",a.LoginThrottled="login-throttled",a.InvalidSmsOtp="invalid-sms-otp",a.SmsVerified="sms-verified",a.AccountRecovered="account-recovered",a))(B||{}),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 p=Object.defineProperty;var Z=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var K=(l,r)=>{for(var s in r)p(l,s,{get:r[s],enumerable:!0})},P=(l,r,s,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of $(r))!M.call(l,i)&&i!==s&&p(l,i,{get:()=>r[i],enumerable:!(t=Z(r,i))||t.enumerable});return l};var ee=l=>P(p({},"__esModule",{value:!0}),l);var te={};K(te,{AuthEventOnReceived:()=>k,DeepLinkPage:()=>x,DeviceVerificationEventEmit:()=>T,DeviceVerificationEventOnReceived:()=>b,DisableMFAEventEmit:()=>V,DisableMFAEventOnReceived:()=>D,EnableMFAEventEmit:()=>U,EnableMFAEventOnReceived:()=>w,EthChainType:()=>G,Events:()=>_,FarcasterLoginEventEmit:()=>L,LoginWithEmailOTPEventEmit:()=>I,LoginWithEmailOTPEventOnReceived:()=>h,LoginWithMagicLinkEventEmit:()=>y,LoginWithMagicLinkEventOnReceived:()=>A,LoginWithSmsOTPEventEmit:()=>N,LoginWithSmsOTPEventOnReceived:()=>R,MagicIncomingWindowMessage:()=>g,MagicOutgoingWindowMessage:()=>E,MagicPayloadMethod:()=>f,NftCheckoutIntermediaryEvents:()=>Q,RPCErrorCode:()=>v,RecencyCheckEventEmit:()=>S,RecencyCheckEventOnReceived:()=>O,RecoverAccountEventEmit:()=>j,RecoverAccountEventOnReceived:()=>B,RecoveryFactorEventEmit:()=>J,RecoveryFactorEventOnReceived:()=>W,RecoveryMethodType:()=>Y,SDKErrorCode:()=>m,SDKWarningCode:()=>d,UiEventsEmit:()=>z,UpdateEmailEventEmit:()=>C,UpdateEmailEventOnReceived:()=>F,UserEventsEmit:()=>H,UserEventsOnReceived:()=>q,WalletEventOnReceived:()=>X,Wallets:()=>u});module.exports=ee(te);var m=(c=>(c.MissingApiKey="MISSING_API_KEY",c.ModalNotReady="MODAL_NOT_READY",c.MalformedResponse="MALFORMED_RESPONSE",c.InvalidArgument="INVALID_ARGUMENT",c.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",c.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",c))(m||{}),d=(a=>(a.SyncWeb3Method="SYNC_WEB3_METHOD",a.DuplicateIframe="DUPLICATE_IFRAME",a.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",a.DeprecationNotice="DEPRECATION_NOTICE",a.ProductAnnouncement="ANNOUNCEMENT",a))(d||{}),v=(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))(v||{});var u=(s=>(s.MetaMask="metamask",s.CoinbaseWallet="coinbase_wallet",s))(u||{}),_=(t=>(t.WalletSelected="wallet_selected",t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",t))(_||{}),f=(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))(f||{});var g=(o=>(o.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",o.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",o.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",o.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",o.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",o.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",o.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",o.MAGIC_PONG="MAGIC_PONG",o))(g||{}),E=(s=>(s.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",s.MAGIC_PING="MAGIC_PING",s))(E||{});var x=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(x||{});var y=(r=>(r.Retry="retry",r))(y||{}),A=(s=>(s.EmailSent="email-sent",s.EmailNotDeliverable="email-not-deliverable",s))(A||{}),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||{}),R=(t=>(t.SmsOTPSent="sms-otp-sent",t.InvalidSmsOtp="invalid-sms-otp",t.ExpiredSmsOtp="expired-sms-otp",t))(R||{}),h=(o=>(o.EmailOTPSent="email-otp-sent",o.InvalidEmailOtp="invalid-email-otp",o.InvalidMfaOtp="invalid-mfa-otp",o.ExpiredEmailOtp="expired-email-otp",o.MfaSentHandle="mfa-sent-handle",o.RecoveryCodeSentHandle="recovery-code-sent-handle",o.InvalidRecoveryCode="invalid-recovery-code",o.RecoveryCodeSuccess="recovery-code-success",o))(h||{}),T=(r=>(r.Retry="device-retry",r))(T||{}),b=(i=>(i.DeviceApproved="device-approved",i.DeviceNeedsApproval="device-needs-approval",i.DeviceVerificationLinkExpired="device-verification-link-expired",i.DeviceVerificationEmailSent="device-verification-email-sent",i))(b||{}),S=(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))(S||{}),O=(c=>(c.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",c.PrimaryAuthFactorVerified="Recency/auth-factor-verified",c.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",c.EmailExpired="Recency/auth-factor-verification-email-expired",c.EmailSent="Recency/auth-factor-verification-email-sent",c.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",c))(O||{}),C=(t=>(t.RetryWithNewEmail="UpdateEmail/retry-with-new-email",t.Cancel="UpdateEmail/new-email-verification-cancel",t.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",t))(C||{}),F=(o=>(o.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",o.EmailUpdated="UpdateEmail/email-updated",o.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",o.EmailExpired="UpdateEmail/new-email-verification-email-expired",o.EmailSent="UpdateEmail/new-email-verification-email-sent",o.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",o.InvalidEmail="UpdateEmail/new-email-invalid",o.EmailAlreadyExists="UpdateEmail/new-email-already-exists",o))(F||{}),k=(r=>(r.IDTokenCreated="Auth/id-token-created",r))(k||{}),L=(r=>(r.SuccessSignIn="Farcaster/success_sign_in",r))(L||{}),w=(t=>(t.MFASecretGenerated="mfa-secret-generated",t.InvalidMFAOtp="invalid-mfa-otp",t.MFARecoveryCodes="mfa-recovery-codes",t))(w||{}),U=(s=>(s.VerifyMFACode="verify-mfa-code",s.Cancel="cancel-mfa-setup",s))(U||{}),D=(t=>(t.MFACodeRequested="mfa-code-requested",t.InvalidMFAOtp="invalid-mfa-otp",t.InvalidRecoveryCode="invalid-recovery-code",t))(D||{}),V=(t=>(t.VerifyMFACode="verify-mfa-code",t.LostDevice="lost-device",t.Cancel="cancel-mfa-disable",t))(V||{});var G=(r=>(r.Harmony="HARMONY",r))(G||{});var H=(r=>(r.ClosedByUser="closed-by-user",r))(H||{}),q=(r=>(r.ClosedByUser="closed-by-user-on-received",r))(q||{}),W=(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))(W||{}),J=(i=>(i.SendNewPhoneNumber="send-new-phone-number",i.SendOtpCode="send-otp-code",i.Cancel="cancel",i.StartEditPhoneNumber="start-edit-phone-number",i))(J||{}),Y=(r=>(r.PhoneNumber="phone_number",r))(Y||{}),B=(i=>(i.SmsOtpSent="sms-otp-sent",i.LoginThrottled="login-throttled",i.InvalidSmsOtp="invalid-sms-otp",i.SmsVerified="sms-verified",i))(B||{}),j=(t=>(t.Cancel="cancel",t.VerifyOtp="verify-otp-code",t.ResendSms="resend-sms-otp",t))(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 p=Object.defineProperty;var Z=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var K=(l,r)=>{for(var s in r)p(l,s,{get:r[s],enumerable:!0})},P=(l,r,s,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of $(r))!M.call(l,i)&&i!==s&&p(l,i,{get:()=>r[i],enumerable:!(t=Z(r,i))||t.enumerable});return l};var ee=l=>P(p({},"__esModule",{value:!0}),l);var te={};K(te,{AuthEventOnReceived:()=>k,DeepLinkPage:()=>x,DeviceVerificationEventEmit:()=>T,DeviceVerificationEventOnReceived:()=>b,DisableMFAEventEmit:()=>V,DisableMFAEventOnReceived:()=>D,EnableMFAEventEmit:()=>U,EnableMFAEventOnReceived:()=>w,EthChainType:()=>G,Events:()=>_,FarcasterLoginEventEmit:()=>L,LoginWithEmailOTPEventEmit:()=>I,LoginWithEmailOTPEventOnReceived:()=>h,LoginWithMagicLinkEventEmit:()=>y,LoginWithMagicLinkEventOnReceived:()=>A,LoginWithSmsOTPEventEmit:()=>R,LoginWithSmsOTPEventOnReceived:()=>N,MagicIncomingWindowMessage:()=>g,MagicOutgoingWindowMessage:()=>E,MagicPayloadMethod:()=>f,NftCheckoutIntermediaryEvents:()=>Q,RPCErrorCode:()=>v,RecencyCheckEventEmit:()=>S,RecencyCheckEventOnReceived:()=>O,RecoverAccountEventEmit:()=>j,RecoverAccountEventOnReceived:()=>B,RecoveryFactorEventEmit:()=>J,RecoveryFactorEventOnReceived:()=>W,RecoveryMethodType:()=>Y,SDKErrorCode:()=>m,SDKWarningCode:()=>d,UiEventsEmit:()=>z,UpdateEmailEventEmit:()=>C,UpdateEmailEventOnReceived:()=>F,UserEventsEmit:()=>H,UserEventsOnReceived:()=>q,WalletEventOnReceived:()=>X,Wallets:()=>u});module.exports=ee(te);var m=(c=>(c.MissingApiKey="MISSING_API_KEY",c.ModalNotReady="MODAL_NOT_READY",c.MalformedResponse="MALFORMED_RESPONSE",c.InvalidArgument="INVALID_ARGUMENT",c.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",c.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",c))(m||{}),d=(a=>(a.SyncWeb3Method="SYNC_WEB3_METHOD",a.DuplicateIframe="DUPLICATE_IFRAME",a.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",a.DeprecationNotice="DEPRECATION_NOTICE",a.ProductAnnouncement="ANNOUNCEMENT",a))(d||{}),v=(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))(v||{});var u=(s=>(s.MetaMask="metamask",s.CoinbaseWallet="coinbase_wallet",s))(u||{}),_=(t=>(t.WalletSelected="wallet_selected",t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",t))(_||{}),f=(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))(f||{});var g=(o=>(o.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",o.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",o.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",o.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",o.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",o.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",o.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",o.MAGIC_PONG="MAGIC_PONG",o))(g||{}),E=(s=>(s.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",s.MAGIC_PING="MAGIC_PING",s))(E||{});var x=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(x||{});var y=(r=>(r.Retry="retry",r))(y||{}),A=(s=>(s.EmailSent="email-sent",s.EmailNotDeliverable="email-not-deliverable",s))(A||{}),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||{}),R=(t=>(t.VerifySmsOtp="verify-sms-otp",t.Cancel="cancel",t.Retry="retry",t))(R||{}),N=(t=>(t.SmsOTPSent="sms-otp-sent",t.InvalidSmsOtp="invalid-sms-otp",t.ExpiredSmsOtp="expired-sms-otp",t))(N||{}),h=(o=>(o.EmailOTPSent="email-otp-sent",o.InvalidEmailOtp="invalid-email-otp",o.InvalidMfaOtp="invalid-mfa-otp",o.ExpiredEmailOtp="expired-email-otp",o.MfaSentHandle="mfa-sent-handle",o.RecoveryCodeSentHandle="recovery-code-sent-handle",o.InvalidRecoveryCode="invalid-recovery-code",o.RecoveryCodeSuccess="recovery-code-success",o))(h||{}),T=(r=>(r.Retry="device-retry",r))(T||{}),b=(i=>(i.DeviceApproved="device-approved",i.DeviceNeedsApproval="device-needs-approval",i.DeviceVerificationLinkExpired="device-verification-link-expired",i.DeviceVerificationEmailSent="device-verification-email-sent",i))(b||{}),S=(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))(S||{}),O=(c=>(c.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",c.PrimaryAuthFactorVerified="Recency/auth-factor-verified",c.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",c.EmailExpired="Recency/auth-factor-verification-email-expired",c.EmailSent="Recency/auth-factor-verification-email-sent",c.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",c))(O||{}),C=(t=>(t.RetryWithNewEmail="UpdateEmail/retry-with-new-email",t.Cancel="UpdateEmail/new-email-verification-cancel",t.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",t))(C||{}),F=(o=>(o.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",o.EmailUpdated="UpdateEmail/email-updated",o.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",o.EmailExpired="UpdateEmail/new-email-verification-email-expired",o.EmailSent="UpdateEmail/new-email-verification-email-sent",o.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",o.InvalidEmail="UpdateEmail/new-email-invalid",o.EmailAlreadyExists="UpdateEmail/new-email-already-exists",o))(F||{}),k=(r=>(r.IDTokenCreated="Auth/id-token-created",r))(k||{}),L=(r=>(r.SuccessSignIn="Farcaster/success_sign_in",r))(L||{}),w=(t=>(t.MFASecretGenerated="mfa-secret-generated",t.InvalidMFAOtp="invalid-mfa-otp",t.MFARecoveryCodes="mfa-recovery-codes",t))(w||{}),U=(s=>(s.VerifyMFACode="verify-mfa-code",s.Cancel="cancel-mfa-setup",s))(U||{}),D=(t=>(t.MFACodeRequested="mfa-code-requested",t.InvalidMFAOtp="invalid-mfa-otp",t.InvalidRecoveryCode="invalid-recovery-code",t))(D||{}),V=(t=>(t.VerifyMFACode="verify-mfa-code",t.LostDevice="lost-device",t.Cancel="cancel-mfa-disable",t))(V||{});var G=(r=>(r.Harmony="HARMONY",r))(G||{});var H=(r=>(r.ClosedByUser="closed-by-user",r))(H||{}),q=(r=>(r.ClosedByUser="closed-by-user-on-received",r))(q||{}),W=(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))(W||{}),J=(i=>(i.SendNewPhoneNumber="send-new-phone-number",i.SendOtpCode="send-otp-code",i.Cancel="cancel",i.StartEditPhoneNumber="start-edit-phone-number",i))(J||{}),Y=(r=>(r.PhoneNumber="phone_number",r))(Y||{}),B=(a=>(a.SmsOtpSent="sms-otp-sent",a.LoginThrottled="login-throttled",a.InvalidSmsOtp="invalid-sms-otp",a.SmsVerified="sms-verified",a.AccountRecovered="account-recovered",a))(B||{}),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 l=(s=>(s.MissingApiKey="MISSING_API_KEY",s.ModalNotReady="MODAL_NOT_READY",s.MalformedResponse="MALFORMED_RESPONSE",s.InvalidArgument="INVALID_ARGUMENT",s.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",s.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",s))(l||{}),p=(a=>(a.SyncWeb3Method="SYNC_WEB3_METHOD",a.DuplicateIframe="DUPLICATE_IFRAME",a.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",a.DeprecationNotice="DEPRECATION_NOTICE",a.ProductAnnouncement="ANNOUNCEMENT",a))(p||{}),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 d=(c=>(c.MetaMask="metamask",c.CoinbaseWallet="coinbase_wallet",c))(d||{}),v=(t=>(t.WalletSelected="wallet_selected",t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",t))(v||{}),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))(u||{});var _=(n=>(n.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",n.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",n.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",n.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",n.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",n.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",n.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",n.MAGIC_PONG="MAGIC_PONG",n))(_||{}),f=(c=>(c.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",c.MAGIC_PING="MAGIC_PING",c))(f||{});var g=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(g||{});var E=(o=>(o.Retry="retry",o))(E||{}),x=(c=>(c.EmailSent="email-sent",c.EmailNotDeliverable="email-not-deliverable",c))(x||{}),y=(a=>(a.VerifyEmailOtp="verify-email-otp",a.VerifyMFACode="verify-mfa-code",a.LostDevice="lost-device",a.VerifyRecoveryCode="verify-recovery-code",a.Cancel="cancel",a))(y||{}),A=(t=>(t.VerifySmsOtp="verify-sms-otp",t.Cancel="cancel",t.Retry="retry",t))(A||{}),I=(t=>(t.SmsOTPSent="sms-otp-sent",t.InvalidSmsOtp="invalid-sms-otp",t.ExpiredSmsOtp="expired-sms-otp",t))(I||{}),N=(n=>(n.EmailOTPSent="email-otp-sent",n.InvalidEmailOtp="invalid-email-otp",n.InvalidMfaOtp="invalid-mfa-otp",n.ExpiredEmailOtp="expired-email-otp",n.MfaSentHandle="mfa-sent-handle",n.RecoveryCodeSentHandle="recovery-code-sent-handle",n.InvalidRecoveryCode="invalid-recovery-code",n.RecoveryCodeSuccess="recovery-code-success",n))(N||{}),R=(o=>(o.Retry="device-retry",o))(R||{}),h=(r=>(r.DeviceApproved="device-approved",r.DeviceNeedsApproval="device-needs-approval",r.DeviceVerificationLinkExpired="device-verification-link-expired",r.DeviceVerificationEmailSent="device-verification-email-sent",r))(h||{}),T=(r=>(r.Retry="Recency/auth-factor-retry",r.Cancel="Recency/auth-factor-verification-cancel",r.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",r.VerifyMFACode="Recency/verify-mfa-code",r))(T||{}),b=(s=>(s.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",s.PrimaryAuthFactorVerified="Recency/auth-factor-verified",s.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",s.EmailExpired="Recency/auth-factor-verification-email-expired",s.EmailSent="Recency/auth-factor-verification-email-sent",s.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",s))(b||{}),S=(t=>(t.RetryWithNewEmail="UpdateEmail/retry-with-new-email",t.Cancel="UpdateEmail/new-email-verification-cancel",t.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",t))(S||{}),O=(n=>(n.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",n.EmailUpdated="UpdateEmail/email-updated",n.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",n.EmailExpired="UpdateEmail/new-email-verification-email-expired",n.EmailSent="UpdateEmail/new-email-verification-email-sent",n.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",n.InvalidEmail="UpdateEmail/new-email-invalid",n.EmailAlreadyExists="UpdateEmail/new-email-already-exists",n))(O||{}),C=(o=>(o.IDTokenCreated="Auth/id-token-created",o))(C||{}),F=(o=>(o.SuccessSignIn="Farcaster/success_sign_in",o))(F||{}),k=(t=>(t.MFASecretGenerated="mfa-secret-generated",t.InvalidMFAOtp="invalid-mfa-otp",t.MFARecoveryCodes="mfa-recovery-codes",t))(k||{}),L=(c=>(c.VerifyMFACode="verify-mfa-code",c.Cancel="cancel-mfa-setup",c))(L||{}),w=(t=>(t.MFACodeRequested="mfa-code-requested",t.InvalidMFAOtp="invalid-mfa-otp",t.InvalidRecoveryCode="invalid-recovery-code",t))(w||{}),U=(t=>(t.VerifyMFACode="verify-mfa-code",t.LostDevice="lost-device",t.Cancel="cancel-mfa-disable",t))(U||{});var D=(o=>(o.Harmony="HARMONY",o))(D||{});var V=(o=>(o.ClosedByUser="closed-by-user",o))(V||{}),G=(o=>(o.ClosedByUser="closed-by-user-on-received",o))(G||{}),H=(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))(H||{}),q=(r=>(r.SendNewPhoneNumber="send-new-phone-number",r.SendOtpCode="send-otp-code",r.Cancel="cancel",r.StartEditPhoneNumber="start-edit-phone-number",r))(q||{}),W=(o=>(o.PhoneNumber="phone_number",o))(W||{}),J=(r=>(r.SmsOtpSent="sms-otp-sent",r.LoginThrottled="login-throttled",r.InvalidSmsOtp="invalid-sms-otp",r.SmsVerified="sms-verified",r))(J||{}),Y=(t=>(t.Cancel="cancel",t.VerifyOtp="verify-otp-code",t.ResendSms="resend-sms-otp",t))(Y||{});var B=(r=>(r.Success="nft-checkout-success",r.Failure="nft-checkout-failure",r.Initiated="nft-checkout-initiated",r.Disconnect="disconnect",r))(B||{});var j=(o=>(o.WalletInfoFetched="Wallet/wallet-info-fetched",o))(j||{});var Q=(o=>(o.CloseMagicWindow="close-magic-window",o))(Q||{});export{C as AuthEventOnReceived,g as DeepLinkPage,R as DeviceVerificationEventEmit,h as DeviceVerificationEventOnReceived,U as DisableMFAEventEmit,w as DisableMFAEventOnReceived,L as EnableMFAEventEmit,k as EnableMFAEventOnReceived,D as EthChainType,v as Events,F as FarcasterLoginEventEmit,y as LoginWithEmailOTPEventEmit,N as LoginWithEmailOTPEventOnReceived,E as LoginWithMagicLinkEventEmit,x as LoginWithMagicLinkEventOnReceived,A as LoginWithSmsOTPEventEmit,I as LoginWithSmsOTPEventOnReceived,_ as MagicIncomingWindowMessage,f as MagicOutgoingWindowMessage,u as MagicPayloadMethod,B as NftCheckoutIntermediaryEvents,m as RPCErrorCode,T as RecencyCheckEventEmit,b as RecencyCheckEventOnReceived,Y as RecoverAccountEventEmit,J as RecoverAccountEventOnReceived,q as RecoveryFactorEventEmit,H as RecoveryFactorEventOnReceived,W as RecoveryMethodType,l as SDKErrorCode,p as SDKWarningCode,Q as UiEventsEmit,S as UpdateEmailEventEmit,O as UpdateEmailEventOnReceived,V as UserEventsEmit,G as UserEventsOnReceived,j as WalletEventOnReceived,d as Wallets};
var l=(s=>(s.MissingApiKey="MISSING_API_KEY",s.ModalNotReady="MODAL_NOT_READY",s.MalformedResponse="MALFORMED_RESPONSE",s.InvalidArgument="INVALID_ARGUMENT",s.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",s.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",s))(l||{}),p=(o=>(o.SyncWeb3Method="SYNC_WEB3_METHOD",o.DuplicateIframe="DUPLICATE_IFRAME",o.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",o.DeprecationNotice="DEPRECATION_NOTICE",o.ProductAnnouncement="ANNOUNCEMENT",o))(p||{}),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 d=(c=>(c.MetaMask="metamask",c.CoinbaseWallet="coinbase_wallet",c))(d||{}),v=(t=>(t.WalletSelected="wallet_selected",t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",t))(v||{}),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))(u||{});var _=(n=>(n.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",n.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",n.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",n.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",n.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",n.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",n.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",n.MAGIC_PONG="MAGIC_PONG",n))(_||{}),f=(c=>(c.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",c.MAGIC_PING="MAGIC_PING",c))(f||{});var g=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(g||{});var E=(a=>(a.Retry="retry",a))(E||{}),x=(c=>(c.EmailSent="email-sent",c.EmailNotDeliverable="email-not-deliverable",c))(x||{}),y=(o=>(o.VerifyEmailOtp="verify-email-otp",o.VerifyMFACode="verify-mfa-code",o.LostDevice="lost-device",o.VerifyRecoveryCode="verify-recovery-code",o.Cancel="cancel",o))(y||{}),A=(t=>(t.VerifySmsOtp="verify-sms-otp",t.Cancel="cancel",t.Retry="retry",t))(A||{}),I=(t=>(t.SmsOTPSent="sms-otp-sent",t.InvalidSmsOtp="invalid-sms-otp",t.ExpiredSmsOtp="expired-sms-otp",t))(I||{}),R=(n=>(n.EmailOTPSent="email-otp-sent",n.InvalidEmailOtp="invalid-email-otp",n.InvalidMfaOtp="invalid-mfa-otp",n.ExpiredEmailOtp="expired-email-otp",n.MfaSentHandle="mfa-sent-handle",n.RecoveryCodeSentHandle="recovery-code-sent-handle",n.InvalidRecoveryCode="invalid-recovery-code",n.RecoveryCodeSuccess="recovery-code-success",n))(R||{}),N=(a=>(a.Retry="device-retry",a))(N||{}),h=(r=>(r.DeviceApproved="device-approved",r.DeviceNeedsApproval="device-needs-approval",r.DeviceVerificationLinkExpired="device-verification-link-expired",r.DeviceVerificationEmailSent="device-verification-email-sent",r))(h||{}),T=(r=>(r.Retry="Recency/auth-factor-retry",r.Cancel="Recency/auth-factor-verification-cancel",r.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",r.VerifyMFACode="Recency/verify-mfa-code",r))(T||{}),b=(s=>(s.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",s.PrimaryAuthFactorVerified="Recency/auth-factor-verified",s.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",s.EmailExpired="Recency/auth-factor-verification-email-expired",s.EmailSent="Recency/auth-factor-verification-email-sent",s.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",s))(b||{}),S=(t=>(t.RetryWithNewEmail="UpdateEmail/retry-with-new-email",t.Cancel="UpdateEmail/new-email-verification-cancel",t.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",t))(S||{}),O=(n=>(n.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",n.EmailUpdated="UpdateEmail/email-updated",n.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",n.EmailExpired="UpdateEmail/new-email-verification-email-expired",n.EmailSent="UpdateEmail/new-email-verification-email-sent",n.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",n.InvalidEmail="UpdateEmail/new-email-invalid",n.EmailAlreadyExists="UpdateEmail/new-email-already-exists",n))(O||{}),C=(a=>(a.IDTokenCreated="Auth/id-token-created",a))(C||{}),F=(a=>(a.SuccessSignIn="Farcaster/success_sign_in",a))(F||{}),k=(t=>(t.MFASecretGenerated="mfa-secret-generated",t.InvalidMFAOtp="invalid-mfa-otp",t.MFARecoveryCodes="mfa-recovery-codes",t))(k||{}),L=(c=>(c.VerifyMFACode="verify-mfa-code",c.Cancel="cancel-mfa-setup",c))(L||{}),w=(t=>(t.MFACodeRequested="mfa-code-requested",t.InvalidMFAOtp="invalid-mfa-otp",t.InvalidRecoveryCode="invalid-recovery-code",t))(w||{}),U=(t=>(t.VerifyMFACode="verify-mfa-code",t.LostDevice="lost-device",t.Cancel="cancel-mfa-disable",t))(U||{});var D=(a=>(a.Harmony="HARMONY",a))(D||{});var V=(a=>(a.ClosedByUser="closed-by-user",a))(V||{}),G=(a=>(a.ClosedByUser="closed-by-user-on-received",a))(G||{}),H=(o=>(o.EnterNewPhoneNumber="enter-new-phone-number",o.EnterOtpCode="enter-otp-code",o.RecoveryFactorAlreadyExists="recovery-factor-already-exists",o.MalformedPhoneNumber="malformed-phone-number",o.InvalidOtpCode="invalid-otp-code",o))(H||{}),q=(r=>(r.SendNewPhoneNumber="send-new-phone-number",r.SendOtpCode="send-otp-code",r.Cancel="cancel",r.StartEditPhoneNumber="start-edit-phone-number",r))(q||{}),W=(a=>(a.PhoneNumber="phone_number",a))(W||{}),J=(o=>(o.SmsOtpSent="sms-otp-sent",o.LoginThrottled="login-throttled",o.InvalidSmsOtp="invalid-sms-otp",o.SmsVerified="sms-verified",o.AccountRecovered="account-recovered",o))(J||{}),Y=(r=>(r.Cancel="cancel",r.VerifyOtp="verify-otp-code",r.ResendSms="resend-sms-otp",r.UpdateEmail="update-email",r))(Y||{});var B=(r=>(r.Success="nft-checkout-success",r.Failure="nft-checkout-failure",r.Initiated="nft-checkout-initiated",r.Disconnect="disconnect",r))(B||{});var j=(a=>(a.WalletInfoFetched="Wallet/wallet-info-fetched",a))(j||{});var Q=(a=>(a.CloseMagicWindow="close-magic-window",a))(Q||{});export{C as AuthEventOnReceived,g as DeepLinkPage,N as DeviceVerificationEventEmit,h as DeviceVerificationEventOnReceived,U as DisableMFAEventEmit,w as DisableMFAEventOnReceived,L as EnableMFAEventEmit,k as EnableMFAEventOnReceived,D as EthChainType,v as Events,F as FarcasterLoginEventEmit,y as LoginWithEmailOTPEventEmit,R as LoginWithEmailOTPEventOnReceived,E as LoginWithMagicLinkEventEmit,x as LoginWithMagicLinkEventOnReceived,A as LoginWithSmsOTPEventEmit,I as LoginWithSmsOTPEventOnReceived,_ as MagicIncomingWindowMessage,f as MagicOutgoingWindowMessage,u as MagicPayloadMethod,B as NftCheckoutIntermediaryEvents,m as RPCErrorCode,T as RecencyCheckEventEmit,b as RecencyCheckEventOnReceived,Y as RecoverAccountEventEmit,J as RecoverAccountEventOnReceived,q as RecoveryFactorEventEmit,H as RecoveryFactorEventOnReceived,W as RecoveryMethodType,l as SDKErrorCode,p as SDKWarningCode,Q as UiEventsEmit,S as UpdateEmailEventEmit,O as UpdateEmailEventOnReceived,V as UserEventsEmit,G as UserEventsOnReceived,j as WalletEventOnReceived,d as Wallets};
//# sourceMappingURL=index.js.map

@@ -102,3 +102,4 @@ import { RecencyCheckEventHandlers } from './auth-types';

InvalidSmsOtp = "invalid-sms-otp",
SmsVerified = "sms-verified"
SmsVerified = "sms-verified",
AccountRecovered = "account-recovered"
}

@@ -108,3 +109,4 @@ export declare enum RecoverAccountEventEmit {

VerifyOtp = "verify-otp-code",
ResendSms = "resend-sms-otp"
ResendSms = "resend-sms-otp",
UpdateEmail = "update-email"
}

@@ -115,2 +117,3 @@ export declare type RecoverAccountEventHandlers = {

[RecoverAccountEventEmit.ResendSms]: () => void;
[RecoverAccountEventEmit.UpdateEmail]: (email: string) => void;
[RecoverAccountEventOnReceived.SmsOtpSent]: ({ phoneNumber }: {

@@ -125,3 +128,4 @@ phoneNumber: string;

[RecoverAccountEventOnReceived.SmsVerified]: () => {};
[RecoverAccountEventOnReceived.AccountRecovered]: () => {};
};
export {};
{
"name": "@magic-sdk/types",
"version": "24.15.0-canary.832.11709014109.0",
"version": "24.15.0-canary.833.11741574387.0",
"description": "Core typings for Magic SDK packages.",

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

},
"gitHead": "57a9a1b6944ce49f07f19010c7c2fcb57340d27d"
"gitHead": "adbff2b119e1b01d3a422be70d2c47528cf7d263"
}

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