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

@magic-sdk/types

Package Overview
Dependencies
Maintainers
19
Versions
562
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.13.0-canary.826.11478226542.0 to 24.13.0-canary.826.11499188475.0

2

./dist/cjs/index.js

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

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

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

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

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

var p=(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))(p||{}),m=(r=>(r.SyncWeb3Method="SYNC_WEB3_METHOD",r.DuplicateIframe="DUPLICATE_IFRAME",r.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",r.DeprecationNotice="DEPRECATION_NOTICE",r.ProductAnnouncement="ANNOUNCEMENT",r))(m||{}),d=(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))(d||{});var v=(c=>(c.MetaMask="metamask",c.CoinbaseWallet="coinbase_wallet",c))(v||{}),u=(t=>(t.WalletSelected="wallet_selected",t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",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=(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))(f||{}),g=(c=>(c.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",c.MAGIC_PING="MAGIC_PING",c))(g||{});var E=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(E||{});var x=(n=>(n.Retry="retry",n))(x||{}),y=(c=>(c.EmailSent="email-sent",c.EmailNotDeliverable="email-not-deliverable",c))(y||{}),A=(r=>(r.VerifyEmailOtp="verify-email-otp",r.VerifyMFACode="verify-mfa-code",r.LostDevice="lost-device",r.VerifyRecoveryCode="verify-recovery-code",r.Cancel="cancel",r))(A||{}),I=(t=>(t.VerifySmsOtp="verify-sms-otp",t.Cancel="cancel",t.Retry="retry",t))(I||{}),N=(t=>(t.SmsOTPSent="sms-otp-sent",t.InvalidSmsOtp="invalid-sms-otp",t.ExpiredSmsOtp="expired-sms-otp",t))(N||{}),R=(l=>(l.EmailOTPSent="email-otp-sent",l.InvalidEmailOtp="invalid-email-otp",l.InvalidMfaOtp="invalid-mfa-otp",l.ExpiredEmailOtp="expired-email-otp",l.MfaSentHandle="mfa-sent-handle",l.RecoveryCodeSentHandle="recovery-code-sent-handle",l.InvalidRecoveryCode="invalid-recovery-code",l))(R||{}),h=(n=>(n.Retry="device-retry",n))(h||{}),T=(a=>(a.DeviceApproved="device-approved",a.DeviceNeedsApproval="device-needs-approval",a.DeviceVerificationLinkExpired="device-verification-link-expired",a.DeviceVerificationEmailSent="device-verification-email-sent",a))(T||{}),b=(a=>(a.Retry="Recency/auth-factor-retry",a.Cancel="Recency/auth-factor-verification-cancel",a.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",a.VerifyMFACode="Recency/verify-mfa-code",a))(b||{}),O=(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))(O||{}),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||{}),C=(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))(C||{}),F=(n=>(n.IDTokenCreated="Auth/id-token-created",n))(F||{}),k=(n=>(n.SuccessSignIn="Farcaster/success_sign_in",n))(k||{}),w=(t=>(t.MFASecretGenerated="mfa-secret-generated",t.InvalidMFAOtp="invalid-mfa-otp",t.MFARecoveryCodes="mfa-recovery-codes",t))(w||{}),L=(c=>(c.VerifyMFACode="verify-mfa-code",c.Cancel="cancel-mfa-setup",c))(L||{}),U=(t=>(t.MFACodeRequested="mfa-code-requested",t.InvalidMFAOtp="invalid-mfa-otp",t.InvalidRecoveryCode="invalid-recovery-code",t))(U||{}),D=(t=>(t.VerifyMFACode="verify-mfa-code",t.LostDevice="lost-device",t.Cancel="cancel-mfa-disable",t))(D||{});var G=(n=>(n.Harmony="HARMONY",n))(G||{});var V=(n=>(n.ClosedByUser="closed-by-user",n))(V||{}),H=(n=>(n.ClosedByUser="closed-by-user-on-received",n))(H||{}),q=(r=>(r.EnterNewPhoneNumber="enter-new-phone-number",r.EnterOtpCode="enter-otp-code",r.RecoveryFactorAlreadyExists="recovery-factor-already-exists",r.MalformedPhoneNumber="malformed-phone-number",r.InvalidOtpCode="invalid-otp-code",r))(q||{}),W=(t=>(t.SendNewPhoneNumber="send-new-phone-number",t.SendOtpCode="send-otp-code",t.StartEditPhoneNumber="start-edit-phone-number",t))(W||{}),J=(n=>(n.PhoneNumber="phone_number",n))(J||{});var Y=(a=>(a.Success="nft-checkout-success",a.Failure="nft-checkout-failure",a.Initiated="nft-checkout-initiated",a.Disconnect="disconnect",a))(Y||{});var B=(n=>(n.WalletInfoFetched="Wallet/wallet-info-fetched",n))(B||{});var j=(n=>(n.CloseMagicWindow="close-magic-window",n))(j||{});export{F as AuthEventOnReceived,E as DeepLinkPage,h as DeviceVerificationEventEmit,T as DeviceVerificationEventOnReceived,D as DisableMFAEventEmit,U as DisableMFAEventOnReceived,L as EnableMFAEventEmit,w as EnableMFAEventOnReceived,G as EthChainType,u as Events,k as FarcasterLoginEventEmit,A as LoginWithEmailOTPEventEmit,R as LoginWithEmailOTPEventOnReceived,x as LoginWithMagicLinkEventEmit,y as LoginWithMagicLinkEventOnReceived,I as LoginWithSmsOTPEventEmit,N as LoginWithSmsOTPEventOnReceived,f as MagicIncomingWindowMessage,g as MagicOutgoingWindowMessage,_ as MagicPayloadMethod,Y as NftCheckoutIntermediaryEvents,d as RPCErrorCode,b as RecencyCheckEventEmit,O as RecencyCheckEventOnReceived,W as RecoveryFactorEventEmit,q as RecoveryFactorEventOnReceived,J as RecoveryMethodType,p as SDKErrorCode,m as SDKWarningCode,j as UiEventsEmit,S as UpdateEmailEventEmit,C as UpdateEmailEventOnReceived,V as UserEventsEmit,H as UserEventsOnReceived,B as WalletEventOnReceived,v 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=(r=>(r.Retry="retry",r))(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||{}),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=(r=>(r.Retry="device-retry",r))(R||{}),h=(a=>(a.DeviceApproved="device-approved",a.DeviceNeedsApproval="device-needs-approval",a.DeviceVerificationLinkExpired="device-verification-link-expired",a.DeviceVerificationEmailSent="device-verification-email-sent",a))(h||{}),T=(a=>(a.Retry="Recency/auth-factor-retry",a.Cancel="Recency/auth-factor-verification-cancel",a.VerifyEmailOtp="Recency/auth-factor-verify-email-otp",a.VerifyMFACode="Recency/verify-mfa-code",a))(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||{}),O=(t=>(t.RetryWithNewEmail="UpdateEmail/retry-with-new-email",t.Cancel="UpdateEmail/new-email-verification-cancel",t.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",t))(O||{}),S=(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))(S||{}),C=(r=>(r.IDTokenCreated="Auth/id-token-created",r))(C||{}),F=(r=>(r.SuccessSignIn="Farcaster/success_sign_in",r))(F||{}),k=(t=>(t.MFASecretGenerated="mfa-secret-generated",t.InvalidMFAOtp="invalid-mfa-otp",t.MFARecoveryCodes="mfa-recovery-codes",t))(k||{}),w=(c=>(c.VerifyMFACode="verify-mfa-code",c.Cancel="cancel-mfa-setup",c))(w||{}),L=(t=>(t.MFACodeRequested="mfa-code-requested",t.InvalidMFAOtp="invalid-mfa-otp",t.InvalidRecoveryCode="invalid-recovery-code",t))(L||{}),U=(t=>(t.VerifyMFACode="verify-mfa-code",t.LostDevice="lost-device",t.Cancel="cancel-mfa-disable",t))(U||{});var D=(r=>(r.Harmony="HARMONY",r))(D||{});var G=(r=>(r.ClosedByUser="closed-by-user",r))(G||{}),V=(r=>(r.ClosedByUser="closed-by-user-on-received",r))(V||{}),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=(t=>(t.SendNewPhoneNumber="send-new-phone-number",t.SendOtpCode="send-otp-code",t.StartEditPhoneNumber="start-edit-phone-number",t))(q||{}),W=(r=>(r.PhoneNumber="phone_number",r))(W||{});var J=(a=>(a.Success="nft-checkout-success",a.Failure="nft-checkout-failure",a.Initiated="nft-checkout-initiated",a.Disconnect="disconnect",a))(J||{});var Y=(r=>(r.WalletInfoFetched="Wallet/wallet-info-fetched",r))(Y||{});var B=(r=>(r.CloseMagicWindow="close-magic-window",r))(B||{});export{C as AuthEventOnReceived,g as DeepLinkPage,R as DeviceVerificationEventEmit,h as DeviceVerificationEventOnReceived,U as DisableMFAEventEmit,L as DisableMFAEventOnReceived,w 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,J as NftCheckoutIntermediaryEvents,m as RPCErrorCode,T as RecencyCheckEventEmit,b as RecencyCheckEventOnReceived,q as RecoveryFactorEventEmit,H as RecoveryFactorEventOnReceived,W as RecoveryMethodType,l as SDKErrorCode,p as SDKWarningCode,B as UiEventsEmit,O as UpdateEmailEventEmit,S as UpdateEmailEventOnReceived,G as UserEventsEmit,V as UserEventsOnReceived,Y as WalletEventOnReceived,d as Wallets};
//# sourceMappingURL=index.js.map

@@ -152,3 +152,4 @@ import { WalletEventOnReceived } from './wallet-types';

RecoveryCodeSentHandle = "recovery-code-sent-handle",
InvalidRecoveryCode = "invalid-recovery-code"
InvalidRecoveryCode = "invalid-recovery-code",
RecoveryCodeSuccess = "recovery-code-success"
}

@@ -242,2 +243,3 @@ export declare enum DeviceVerificationEventEmit {

[LoginWithEmailOTPEventOnReceived.InvalidRecoveryCode]: () => void;
[LoginWithEmailOTPEventOnReceived.RecoveryCodeSuccess]: () => void;
[AuthEventOnReceived.IDTokenCreated]: (idToken: string) => void;

@@ -244,0 +246,0 @@ [WalletEventOnReceived.WalletInfoFetched]: () => void;

{
"name": "@magic-sdk/types",
"version": "24.13.0-canary.826.11478226542.0",
"version": "24.13.0-canary.826.11499188475.0",
"description": "Core typings for Magic SDK packages.",

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

},
"gitHead": "7579cd493cf23124f99a9a131cdd6941bbb4a741"
"gitHead": "7d3a820d7ffe4c2811d4c407b63ccd281f08c9c4"
}

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