@magic-sdk/types
Advanced tools
Comparing version 24.10.1-canary.818.11384352581.0 to 24.10.1-canary.818.11387766870.0
@@ -1,2 +0,2 @@ | ||
"use strict";var p=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var Z=Object.prototype.hasOwnProperty;var $=(l,n)=>{for(var a in n)p(l,a,{get:n[a],enumerable:!0})},K=(l,n,a,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of z(n))!Z.call(l,r)&&r!==a&&p(l,r,{get:()=>n[r],enumerable:!(t=X(n,r))||t.enumerable});return l};var M=l=>K(p({},"__esModule",{value:!0}),l);var P={};$(P,{AuthEventOnReceived:()=>C,DeepLinkPage:()=>x,DeviceVerificationEventEmit:()=>T,DeviceVerificationEventOnReceived:()=>b,DisableMFAEventEmit:()=>G,DisableMFAEventOnReceived:()=>D,EnableMFAEventEmit:()=>U,EnableMFAEventOnReceived:()=>L,EthChainType:()=>V,Events:()=>v,FarcasterLoginEventEmit:()=>w,LoginWithEmailOTPEventEmit:()=>I,LoginWithEmailOTPEventOnReceived:()=>h,LoginWithMagicLinkEventEmit:()=>A,LoginWithMagicLinkEventOnReceived:()=>y,LoginWithSmsOTPEventEmit:()=>N,LoginWithSmsOTPEventOnReceived:()=>R,MagicIncomingWindowMessage:()=>g,MagicOutgoingWindowMessage:()=>E,MagicPayloadMethod:()=>f,NftCheckoutIntermediaryEvents:()=>B,RPCErrorCode:()=>_,RecencyCheckEventEmit:()=>O,RecencyCheckEventOnReceived:()=>S,RecoveryFactorEventEmit:()=>J,RecoveryFactorEventOnReceived:()=>W,RecoveryMethodType:()=>Y,SDKErrorCode:()=>m,SDKWarningCode:()=>d,UiEventsEmit:()=>Q,UpdateEmailEventEmit:()=>F,UpdateEmailEventOnReceived:()=>k,UserEventsEmit:()=>H,UserEventsOnReceived:()=>q,WalletEventOnReceived:()=>j,Wallets:()=>u});module.exports=M(P);var m=(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))(m||{}),d=(c=>(c.SyncWeb3Method="SYNC_WEB3_METHOD",c.DuplicateIframe="DUPLICATE_IFRAME",c.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",c.DeprecationNotice="DEPRECATION_NOTICE",c.ProductAnnouncement="ANNOUNCEMENT",c))(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))(_||{});var u=(a=>(a.MetaMask="metamask",a.CoinbaseWallet="coinbase_wallet",a))(u||{}),v=(t=>(t.WalletSelected="wallet_selected",t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",t))(v||{}),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=(a=>(a.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",a.MAGIC_PING="MAGIC_PING",a))(E||{});var x=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(x||{});var A=(n=>(n.Retry="retry",n))(A||{}),y=(a=>(a.EmailSent="email-sent",a.EmailNotDeliverable="email-not-deliverable",a))(y||{}),I=(t=>(t.VerifyEmailOtp="verify-email-otp",t.VerifyMFACode="verify-mfa-code",t.Cancel="cancel",t))(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=(c=>(c.EmailOTPSent="email-otp-sent",c.InvalidEmailOtp="invalid-email-otp",c.InvalidMfaOtp="invalid-mfa-otp",c.ExpiredEmailOtp="expired-email-otp",c.MfaSentHandle="mfa-sent-handle",c))(h||{}),T=(n=>(n.Retry="device-retry",n))(T||{}),b=(r=>(r.DeviceApproved="device-approved",r.DeviceNeedsApproval="device-needs-approval",r.DeviceVerificationLinkExpired="device-verification-link-expired",r.DeviceVerificationEmailSent="device-verification-email-sent",r))(b||{}),O=(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))(O||{}),S=(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))(S||{}),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=(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))(k||{}),C=(n=>(n.IDTokenCreated="Auth/id-token-created",n))(C||{}),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=(a=>(a.VerifyMFACode="verify-mfa-code",a.Cancel="cancel-mfa-setup",a))(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=(r=>(r.EnterNewPhoneNumber="enter-new-phone-number",r.EnterOtpCode="enter-otp-code",r.RecoveryFactorAlreadyExists="recovery-factor-already-exists",r.InvalidOtpCode="invalid-otp-code",r))(W||{}),J=(a=>(a.SendNewPhoneNumber="send-new-phone-number",a.SendOtpCode="send-otp-code",a))(J||{}),Y=(n=>(n.PhoneNumber="phone_number",n))(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=(n=>(n.WalletInfoFetched="Wallet/wallet-info-fetched",n))(j||{});var Q=(n=>(n.CloseMagicWindow="close-magic-window",n))(Q||{}); | ||
"use strict";var p=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var Z=Object.prototype.hasOwnProperty;var $=(l,n)=>{for(var o in n)p(l,o,{get:n[o],enumerable:!0})},K=(l,n,o,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of z(n))!Z.call(l,r)&&r!==o&&p(l,r,{get:()=>n[r],enumerable:!(t=X(n,r))||t.enumerable});return l};var M=l=>K(p({},"__esModule",{value:!0}),l);var P={};$(P,{AuthEventOnReceived:()=>C,DeepLinkPage:()=>x,DeviceVerificationEventEmit:()=>T,DeviceVerificationEventOnReceived:()=>b,DisableMFAEventEmit:()=>G,DisableMFAEventOnReceived:()=>D,EnableMFAEventEmit:()=>U,EnableMFAEventOnReceived:()=>L,EthChainType:()=>V,Events:()=>v,FarcasterLoginEventEmit:()=>w,LoginWithEmailOTPEventEmit:()=>I,LoginWithEmailOTPEventOnReceived:()=>h,LoginWithMagicLinkEventEmit:()=>A,LoginWithMagicLinkEventOnReceived:()=>y,LoginWithSmsOTPEventEmit:()=>N,LoginWithSmsOTPEventOnReceived:()=>R,MagicIncomingWindowMessage:()=>g,MagicOutgoingWindowMessage:()=>E,MagicPayloadMethod:()=>f,NftCheckoutIntermediaryEvents:()=>B,RPCErrorCode:()=>_,RecencyCheckEventEmit:()=>O,RecencyCheckEventOnReceived:()=>S,RecoveryFactorEventEmit:()=>J,RecoveryFactorEventOnReceived:()=>W,RecoveryMethodType:()=>Y,SDKErrorCode:()=>m,SDKWarningCode:()=>d,UiEventsEmit:()=>Q,UpdateEmailEventEmit:()=>F,UpdateEmailEventOnReceived:()=>k,UserEventsEmit:()=>H,UserEventsOnReceived:()=>q,WalletEventOnReceived:()=>j,Wallets:()=>u});module.exports=M(P);var m=(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))(m||{}),d=(c=>(c.SyncWeb3Method="SYNC_WEB3_METHOD",c.DuplicateIframe="DUPLICATE_IFRAME",c.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",c.DeprecationNotice="DEPRECATION_NOTICE",c.ProductAnnouncement="ANNOUNCEMENT",c))(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))(_||{});var u=(o=>(o.MetaMask="metamask",o.CoinbaseWallet="coinbase_wallet",o))(u||{}),v=(t=>(t.WalletSelected="wallet_selected",t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",t))(v||{}),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=(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))(g||{}),E=(o=>(o.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",o.MAGIC_PING="MAGIC_PING",o))(E||{});var x=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(x||{});var A=(n=>(n.Retry="retry",n))(A||{}),y=(o=>(o.EmailSent="email-sent",o.EmailNotDeliverable="email-not-deliverable",o))(y||{}),I=(t=>(t.VerifyEmailOtp="verify-email-otp",t.VerifyMFACode="verify-mfa-code",t.Cancel="cancel",t))(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=(c=>(c.EmailOTPSent="email-otp-sent",c.InvalidEmailOtp="invalid-email-otp",c.InvalidMfaOtp="invalid-mfa-otp",c.ExpiredEmailOtp="expired-email-otp",c.MfaSentHandle="mfa-sent-handle",c))(h||{}),T=(n=>(n.Retry="device-retry",n))(T||{}),b=(r=>(r.DeviceApproved="device-approved",r.DeviceNeedsApproval="device-needs-approval",r.DeviceVerificationLinkExpired="device-verification-link-expired",r.DeviceVerificationEmailSent="device-verification-email-sent",r))(b||{}),O=(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))(O||{}),S=(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))(S||{}),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||{}),C=(n=>(n.IDTokenCreated="Auth/id-token-created",n))(C||{}),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=(o=>(o.VerifyMFACode="verify-mfa-code",o.Cancel="cancel-mfa-setup",o))(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=(r=>(r.EnterNewPhoneNumber="enter-new-phone-number",r.EnterOtpCode="enter-otp-code",r.RecoveryFactorAlreadyExists="recovery-factor-already-exists",r.InvalidOtpCode="invalid-otp-code",r))(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=(r=>(r.Success="nft-checkout-success",r.Failure="nft-checkout-failure",r.Initiated="nft-checkout-initiated",r.Disconnect="disconnect",r))(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 p=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var Z=Object.prototype.hasOwnProperty;var $=(l,n)=>{for(var a in n)p(l,a,{get:n[a],enumerable:!0})},K=(l,n,a,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of z(n))!Z.call(l,r)&&r!==a&&p(l,r,{get:()=>n[r],enumerable:!(t=X(n,r))||t.enumerable});return l};var M=l=>K(p({},"__esModule",{value:!0}),l);var P={};$(P,{AuthEventOnReceived:()=>C,DeepLinkPage:()=>x,DeviceVerificationEventEmit:()=>T,DeviceVerificationEventOnReceived:()=>b,DisableMFAEventEmit:()=>G,DisableMFAEventOnReceived:()=>D,EnableMFAEventEmit:()=>U,EnableMFAEventOnReceived:()=>L,EthChainType:()=>V,Events:()=>v,FarcasterLoginEventEmit:()=>w,LoginWithEmailOTPEventEmit:()=>I,LoginWithEmailOTPEventOnReceived:()=>h,LoginWithMagicLinkEventEmit:()=>A,LoginWithMagicLinkEventOnReceived:()=>y,LoginWithSmsOTPEventEmit:()=>N,LoginWithSmsOTPEventOnReceived:()=>R,MagicIncomingWindowMessage:()=>g,MagicOutgoingWindowMessage:()=>E,MagicPayloadMethod:()=>f,NftCheckoutIntermediaryEvents:()=>B,RPCErrorCode:()=>_,RecencyCheckEventEmit:()=>O,RecencyCheckEventOnReceived:()=>S,RecoveryFactorEventEmit:()=>J,RecoveryFactorEventOnReceived:()=>W,RecoveryMethodType:()=>Y,SDKErrorCode:()=>m,SDKWarningCode:()=>d,UiEventsEmit:()=>Q,UpdateEmailEventEmit:()=>F,UpdateEmailEventOnReceived:()=>k,UserEventsEmit:()=>H,UserEventsOnReceived:()=>q,WalletEventOnReceived:()=>j,Wallets:()=>u});module.exports=M(P);var m=(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))(m||{}),d=(c=>(c.SyncWeb3Method="SYNC_WEB3_METHOD",c.DuplicateIframe="DUPLICATE_IFRAME",c.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",c.DeprecationNotice="DEPRECATION_NOTICE",c.ProductAnnouncement="ANNOUNCEMENT",c))(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))(_||{});var u=(a=>(a.MetaMask="metamask",a.CoinbaseWallet="coinbase_wallet",a))(u||{}),v=(t=>(t.WalletSelected="wallet_selected",t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",t))(v||{}),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=(a=>(a.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",a.MAGIC_PING="MAGIC_PING",a))(E||{});var x=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(x||{});var A=(n=>(n.Retry="retry",n))(A||{}),y=(a=>(a.EmailSent="email-sent",a.EmailNotDeliverable="email-not-deliverable",a))(y||{}),I=(t=>(t.VerifyEmailOtp="verify-email-otp",t.VerifyMFACode="verify-mfa-code",t.Cancel="cancel",t))(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=(c=>(c.EmailOTPSent="email-otp-sent",c.InvalidEmailOtp="invalid-email-otp",c.InvalidMfaOtp="invalid-mfa-otp",c.ExpiredEmailOtp="expired-email-otp",c.MfaSentHandle="mfa-sent-handle",c))(h||{}),T=(n=>(n.Retry="device-retry",n))(T||{}),b=(r=>(r.DeviceApproved="device-approved",r.DeviceNeedsApproval="device-needs-approval",r.DeviceVerificationLinkExpired="device-verification-link-expired",r.DeviceVerificationEmailSent="device-verification-email-sent",r))(b||{}),O=(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))(O||{}),S=(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))(S||{}),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=(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))(k||{}),C=(n=>(n.IDTokenCreated="Auth/id-token-created",n))(C||{}),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=(a=>(a.VerifyMFACode="verify-mfa-code",a.Cancel="cancel-mfa-setup",a))(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=(r=>(r.EnterNewPhoneNumber="enter-new-phone-number",r.EnterOtpCode="enter-otp-code",r.RecoveryFactorAlreadyExists="recovery-factor-already-exists",r.InvalidOtpCode="invalid-otp-code",r))(W||{}),J=(a=>(a.SendNewPhoneNumber="send-new-phone-number",a.SendOtpCode="send-otp-code",a))(J||{}),Y=(n=>(n.PhoneNumber="phone_number",n))(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=(n=>(n.WalletInfoFetched="Wallet/wallet-info-fetched",n))(j||{});var Q=(n=>(n.CloseMagicWindow="close-magic-window",n))(Q||{}); | ||
"use strict";var p=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var Z=Object.prototype.hasOwnProperty;var $=(l,n)=>{for(var o in n)p(l,o,{get:n[o],enumerable:!0})},K=(l,n,o,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of z(n))!Z.call(l,r)&&r!==o&&p(l,r,{get:()=>n[r],enumerable:!(t=X(n,r))||t.enumerable});return l};var M=l=>K(p({},"__esModule",{value:!0}),l);var P={};$(P,{AuthEventOnReceived:()=>C,DeepLinkPage:()=>x,DeviceVerificationEventEmit:()=>T,DeviceVerificationEventOnReceived:()=>b,DisableMFAEventEmit:()=>G,DisableMFAEventOnReceived:()=>D,EnableMFAEventEmit:()=>U,EnableMFAEventOnReceived:()=>L,EthChainType:()=>V,Events:()=>v,FarcasterLoginEventEmit:()=>w,LoginWithEmailOTPEventEmit:()=>I,LoginWithEmailOTPEventOnReceived:()=>h,LoginWithMagicLinkEventEmit:()=>A,LoginWithMagicLinkEventOnReceived:()=>y,LoginWithSmsOTPEventEmit:()=>N,LoginWithSmsOTPEventOnReceived:()=>R,MagicIncomingWindowMessage:()=>g,MagicOutgoingWindowMessage:()=>E,MagicPayloadMethod:()=>f,NftCheckoutIntermediaryEvents:()=>B,RPCErrorCode:()=>_,RecencyCheckEventEmit:()=>O,RecencyCheckEventOnReceived:()=>S,RecoveryFactorEventEmit:()=>J,RecoveryFactorEventOnReceived:()=>W,RecoveryMethodType:()=>Y,SDKErrorCode:()=>m,SDKWarningCode:()=>d,UiEventsEmit:()=>Q,UpdateEmailEventEmit:()=>F,UpdateEmailEventOnReceived:()=>k,UserEventsEmit:()=>H,UserEventsOnReceived:()=>q,WalletEventOnReceived:()=>j,Wallets:()=>u});module.exports=M(P);var m=(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))(m||{}),d=(c=>(c.SyncWeb3Method="SYNC_WEB3_METHOD",c.DuplicateIframe="DUPLICATE_IFRAME",c.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",c.DeprecationNotice="DEPRECATION_NOTICE",c.ProductAnnouncement="ANNOUNCEMENT",c))(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))(_||{});var u=(o=>(o.MetaMask="metamask",o.CoinbaseWallet="coinbase_wallet",o))(u||{}),v=(t=>(t.WalletSelected="wallet_selected",t.WalletConnected="wallet_connected",t.WalletRejected="wallet_rejected",t))(v||{}),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=(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))(g||{}),E=(o=>(o.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",o.MAGIC_PING="MAGIC_PING",o))(E||{});var x=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(x||{});var A=(n=>(n.Retry="retry",n))(A||{}),y=(o=>(o.EmailSent="email-sent",o.EmailNotDeliverable="email-not-deliverable",o))(y||{}),I=(t=>(t.VerifyEmailOtp="verify-email-otp",t.VerifyMFACode="verify-mfa-code",t.Cancel="cancel",t))(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=(c=>(c.EmailOTPSent="email-otp-sent",c.InvalidEmailOtp="invalid-email-otp",c.InvalidMfaOtp="invalid-mfa-otp",c.ExpiredEmailOtp="expired-email-otp",c.MfaSentHandle="mfa-sent-handle",c))(h||{}),T=(n=>(n.Retry="device-retry",n))(T||{}),b=(r=>(r.DeviceApproved="device-approved",r.DeviceNeedsApproval="device-needs-approval",r.DeviceVerificationLinkExpired="device-verification-link-expired",r.DeviceVerificationEmailSent="device-verification-email-sent",r))(b||{}),O=(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))(O||{}),S=(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))(S||{}),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||{}),C=(n=>(n.IDTokenCreated="Auth/id-token-created",n))(C||{}),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=(o=>(o.VerifyMFACode="verify-mfa-code",o.Cancel="cancel-mfa-setup",o))(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=(r=>(r.EnterNewPhoneNumber="enter-new-phone-number",r.EnterOtpCode="enter-otp-code",r.RecoveryFactorAlreadyExists="recovery-factor-already-exists",r.InvalidOtpCode="invalid-otp-code",r))(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=(r=>(r.Success="nft-checkout-success",r.Failure="nft-checkout-failure",r.Initiated="nft-checkout-initiated",r.Disconnect="disconnect",r))(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 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=(c=>(c.SyncWeb3Method="SYNC_WEB3_METHOD",c.DuplicateIframe="DUPLICATE_IFRAME",c.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",c.DeprecationNotice="DEPRECATION_NOTICE",c.ProductAnnouncement="ANNOUNCEMENT",c))(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=(o=>(o.MetaMask="metamask",o.CoinbaseWallet="coinbase_wallet",o))(d||{}),_=(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))(u||{});var v=(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))(v||{}),f=(o=>(o.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",o.MAGIC_PING="MAGIC_PING",o))(f||{});var g=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(g||{});var E=(n=>(n.Retry="retry",n))(E||{}),x=(o=>(o.EmailSent="email-sent",o.EmailNotDeliverable="email-not-deliverable",o))(x||{}),A=(t=>(t.VerifyEmailOtp="verify-email-otp",t.VerifyMFACode="verify-mfa-code",t.Cancel="cancel",t))(A||{}),y=(t=>(t.VerifySmsOtp="verify-sms-otp",t.Cancel="cancel",t.Retry="retry",t))(y||{}),I=(t=>(t.SmsOTPSent="sms-otp-sent",t.InvalidSmsOtp="invalid-sms-otp",t.ExpiredSmsOtp="expired-sms-otp",t))(I||{}),N=(c=>(c.EmailOTPSent="email-otp-sent",c.InvalidEmailOtp="invalid-email-otp",c.InvalidMfaOtp="invalid-mfa-otp",c.ExpiredEmailOtp="expired-email-otp",c.MfaSentHandle="mfa-sent-handle",c))(N||{}),R=(n=>(n.Retry="device-retry",n))(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||{}),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=(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))(S||{}),F=(n=>(n.IDTokenCreated="Auth/id-token-created",n))(F||{}),k=(n=>(n.SuccessSignIn="Farcaster/success_sign_in",n))(k||{}),C=(t=>(t.MFASecretGenerated="mfa-secret-generated",t.InvalidMFAOtp="invalid-mfa-otp",t.MFARecoveryCodes="mfa-recovery-codes",t))(C||{}),w=(o=>(o.VerifyMFACode="verify-mfa-code",o.Cancel="cancel-mfa-setup",o))(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=(n=>(n.Harmony="HARMONY",n))(D||{});var G=(n=>(n.ClosedByUser="closed-by-user",n))(G||{}),V=(n=>(n.ClosedByUser="closed-by-user-on-received",n))(V||{}),H=(r=>(r.EnterNewPhoneNumber="enter-new-phone-number",r.EnterOtpCode="enter-otp-code",r.RecoveryFactorAlreadyExists="recovery-factor-already-exists",r.InvalidOtpCode="invalid-otp-code",r))(H||{}),q=(o=>(o.SendNewPhoneNumber="send-new-phone-number",o.SendOtpCode="send-otp-code",o))(q||{}),W=(n=>(n.PhoneNumber="phone_number",n))(W||{});var J=(r=>(r.Success="nft-checkout-success",r.Failure="nft-checkout-failure",r.Initiated="nft-checkout-initiated",r.Disconnect="disconnect",r))(J||{});var Y=(n=>(n.WalletInfoFetched="Wallet/wallet-info-fetched",n))(Y||{});var B=(n=>(n.CloseMagicWindow="close-magic-window",n))(B||{});export{F as AuthEventOnReceived,g as DeepLinkPage,R as DeviceVerificationEventEmit,h as DeviceVerificationEventOnReceived,U as DisableMFAEventEmit,L as DisableMFAEventOnReceived,w as EnableMFAEventEmit,C as EnableMFAEventOnReceived,D as EthChainType,_ as Events,k as FarcasterLoginEventEmit,A as LoginWithEmailOTPEventEmit,N as LoginWithEmailOTPEventOnReceived,E as LoginWithMagicLinkEventEmit,x as LoginWithMagicLinkEventOnReceived,y as LoginWithSmsOTPEventEmit,I as LoginWithSmsOTPEventOnReceived,v 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}; | ||
var l=(o=>(o.MissingApiKey="MISSING_API_KEY",o.ModalNotReady="MODAL_NOT_READY",o.MalformedResponse="MALFORMED_RESPONSE",o.InvalidArgument="INVALID_ARGUMENT",o.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",o.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",o))(l||{}),p=(c=>(c.SyncWeb3Method="SYNC_WEB3_METHOD",c.DuplicateIframe="DUPLICATE_IFRAME",c.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",c.DeprecationNotice="DEPRECATION_NOTICE",c.ProductAnnouncement="ANNOUNCEMENT",c))(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=(s=>(s.MetaMask="metamask",s.CoinbaseWallet="coinbase_wallet",s))(d||{}),_=(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))(u||{});var v=(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))(v||{}),f=(s=>(s.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",s.MAGIC_PING="MAGIC_PING",s))(f||{});var g=(t=>(t.UpdateEmail="update-email",t.MFA="mfa",t.Recovery="recovery",t))(g||{});var E=(n=>(n.Retry="retry",n))(E||{}),x=(s=>(s.EmailSent="email-sent",s.EmailNotDeliverable="email-not-deliverable",s))(x||{}),A=(t=>(t.VerifyEmailOtp="verify-email-otp",t.VerifyMFACode="verify-mfa-code",t.Cancel="cancel",t))(A||{}),y=(t=>(t.VerifySmsOtp="verify-sms-otp",t.Cancel="cancel",t.Retry="retry",t))(y||{}),I=(t=>(t.SmsOTPSent="sms-otp-sent",t.InvalidSmsOtp="invalid-sms-otp",t.ExpiredSmsOtp="expired-sms-otp",t))(I||{}),N=(c=>(c.EmailOTPSent="email-otp-sent",c.InvalidEmailOtp="invalid-email-otp",c.InvalidMfaOtp="invalid-mfa-otp",c.ExpiredEmailOtp="expired-email-otp",c.MfaSentHandle="mfa-sent-handle",c))(N||{}),R=(n=>(n.Retry="device-retry",n))(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=(o=>(o.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",o.PrimaryAuthFactorVerified="Recency/auth-factor-verified",o.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",o.EmailExpired="Recency/auth-factor-verification-email-expired",o.EmailSent="Recency/auth-factor-verification-email-sent",o.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",o))(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=(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))(S||{}),F=(n=>(n.IDTokenCreated="Auth/id-token-created",n))(F||{}),k=(n=>(n.SuccessSignIn="Farcaster/success_sign_in",n))(k||{}),C=(t=>(t.MFASecretGenerated="mfa-secret-generated",t.InvalidMFAOtp="invalid-mfa-otp",t.MFARecoveryCodes="mfa-recovery-codes",t))(C||{}),w=(s=>(s.VerifyMFACode="verify-mfa-code",s.Cancel="cancel-mfa-setup",s))(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=(n=>(n.Harmony="HARMONY",n))(D||{});var G=(n=>(n.ClosedByUser="closed-by-user",n))(G||{}),V=(n=>(n.ClosedByUser="closed-by-user-on-received",n))(V||{}),H=(r=>(r.EnterNewPhoneNumber="enter-new-phone-number",r.EnterOtpCode="enter-otp-code",r.RecoveryFactorAlreadyExists="recovery-factor-already-exists",r.InvalidOtpCode="invalid-otp-code",r))(H||{}),q=(t=>(t.SendNewPhoneNumber="send-new-phone-number",t.SendOtpCode="send-otp-code",t.StartEditPhoneNumber="start-edit-phone-number",t))(q||{}),W=(n=>(n.PhoneNumber="phone_number",n))(W||{});var J=(r=>(r.Success="nft-checkout-success",r.Failure="nft-checkout-failure",r.Initiated="nft-checkout-initiated",r.Disconnect="disconnect",r))(J||{});var Y=(n=>(n.WalletInfoFetched="Wallet/wallet-info-fetched",n))(Y||{});var B=(n=>(n.CloseMagicWindow="close-magic-window",n))(B||{});export{F as AuthEventOnReceived,g as DeepLinkPage,R as DeviceVerificationEventEmit,h as DeviceVerificationEventOnReceived,U as DisableMFAEventEmit,L as DisableMFAEventOnReceived,w as EnableMFAEventEmit,C as EnableMFAEventOnReceived,D as EthChainType,_ as Events,k as FarcasterLoginEventEmit,A as LoginWithEmailOTPEventEmit,N as LoginWithEmailOTPEventOnReceived,E as LoginWithMagicLinkEventEmit,x as LoginWithMagicLinkEventOnReceived,y as LoginWithSmsOTPEventEmit,I as LoginWithSmsOTPEventOnReceived,v 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 |
@@ -39,3 +39,4 @@ import { RecencyCheckEventHandlers } from './auth-types'; | ||
SendNewPhoneNumber = "send-new-phone-number", | ||
SendOtpCode = "send-otp-code" | ||
SendOtpCode = "send-otp-code", | ||
StartEditPhoneNumber = "start-edit-phone-number" | ||
} | ||
@@ -49,2 +50,3 @@ declare type RecoveryFactor = { | ||
[RecoveryFactorEventEmit.SendOtpCode]: (otp: string) => void; | ||
[RecoveryFactorEventEmit.StartEditPhoneNumber]: () => void; | ||
[RecoveryFactorEventOnReceived.EnterNewPhoneNumber]: () => void; | ||
@@ -51,0 +53,0 @@ [RecoveryFactorEventOnReceived.EnterOtpCode]: () => void; |
{ | ||
"name": "@magic-sdk/types", | ||
"version": "24.10.1-canary.818.11384352581.0", | ||
"version": "24.10.1-canary.818.11387766870.0", | ||
"description": "Core typings for Magic SDK packages.", | ||
@@ -24,3 +24,3 @@ "author": "Magic Labs <team@magic.link> (https://magic.link/)", | ||
}, | ||
"gitHead": "577bb506d6e9f568c4bdb98a075017b2b2408dfa" | ||
"gitHead": "980f666d3121c9412df6d3e27d817867ee01f220" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176389
928