@magic-sdk/types
Advanced tools
Comparing version 24.5.0 to 24.6.0-canary.806.10814729012.0
@@ -1,2 +0,2 @@ | ||
"use strict";var p=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var J=Object.getOwnPropertyNames;var Y=Object.prototype.hasOwnProperty;var B=(l,i)=>{for(var o in i)p(l,o,{get:i[o],enumerable:!0})},j=(l,i,o,n)=>{if(i&&typeof i=="object"||typeof i=="function")for(let a of J(i))!Y.call(l,a)&&a!==o&&p(l,a,{get:()=>i[a],enumerable:!(n=W(i,a))||n.enumerable});return l};var X=l=>j(p({},"__esModule",{value:!0}),l);var z={};B(z,{AuthEventOnReceived:()=>w,DeepLinkPage:()=>I,DeviceVerificationEventEmit:()=>O,DeviceVerificationEventOnReceived:()=>b,EthChainType:()=>D,Events:()=>g,FarcasterLoginEventEmit:()=>F,LoginWithEmailOTPEventEmit:()=>A,LoginWithEmailOTPEventOnReceived:()=>y,LoginWithMagicLinkEventEmit:()=>N,LoginWithMagicLinkEventOnReceived:()=>T,LoginWithSmsOTPEventEmit:()=>R,LoginWithSmsOTPEventOnReceived:()=>h,MagicIncomingWindowMessage:()=>E,MagicOutgoingWindowMessage:()=>x,MagicPayloadMethod:()=>v,NftCheckoutIntermediaryEvents:()=>C,RPCErrorCode:()=>d,RecencyCheckEventEmit:()=>S,RecencyCheckEventOnReceived:()=>k,RecoveryMethodType:()=>H,SDKErrorCode:()=>_,SDKWarningCode:()=>u,UpdateEmailEventEmit:()=>L,UpdateEmailEventOnReceived:()=>U,UserEventsEmit:()=>V,UserEventsOnReceived:()=>G,WalletEventOnReceived:()=>q,Wallets:()=>f});module.exports=X(z);var _=(r=>(r.MissingApiKey="MISSING_API_KEY",r.ModalNotReady="MODAL_NOT_READY",r.MalformedResponse="MALFORMED_RESPONSE",r.InvalidArgument="INVALID_ARGUMENT",r.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",r.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",r))(_||{}),u=(s=>(s.SyncWeb3Method="SYNC_WEB3_METHOD",s.DuplicateIframe="DUPLICATE_IFRAME",s.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",s.DeprecationNotice="DEPRECATION_NOTICE",s.ProductAnnouncement="ANNOUNCEMENT",s))(u||{}),d=(t=>(t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",t[t.MagicLinkExpired=-10001]="MagicLinkExpired",t[t.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",t[t.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",t[t.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",t[t.UpdateEmailFailed=-10004]="UpdateEmailFailed",t[t.UserRequestEditEmail=-10005]="UserRequestEditEmail",t[t.InactiveRecipient=-10010]="InactiveRecipient",t[t.AccessDeniedToUser=-10011]="AccessDeniedToUser",t[t.RedirectLoginComplete=-10015]="RedirectLoginComplete",t))(d||{});var f=(o=>(o.MetaMask="metamask",o.CoinbaseWallet="coinbase_wallet",o))(f||{}),g=(n=>(n.WalletSelected="wallet_selected",n.WalletConnected="wallet_connected",n.WalletRejected="wallet_rejected",n))(g||{}),v=(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))(v||{});var E=(m=>(m.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",m.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",m.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",m.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",m.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",m.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",m.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",m))(E||{}),x=(i=>(i.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",i))(x||{});var I=(n=>(n.UpdateEmail="update-email",n.MFA="mfa",n.Recovery="recovery",n))(I||{});var N=(i=>(i.Retry="retry",i))(N||{}),T=(o=>(o.EmailSent="email-sent",o.EmailNotDeliverable="email-not-deliverable",o))(T||{}),A=(n=>(n.VerifyEmailOtp="verify-email-otp",n.VerifyMFACode="verify-mfa-code",n.Cancel="cancel",n))(A||{}),R=(n=>(n.VerifySmsOtp="verify-sms-otp",n.Cancel="cancel",n.Retry="retry",n))(R||{}),h=(n=>(n.SmsOTPSent="sms-otp-sent",n.InvalidSmsOtp="invalid-sms-otp",n.ExpiredSmsOtp="expired-sms-otp",n))(h||{}),y=(s=>(s.EmailOTPSent="email-otp-sent",s.InvalidEmailOtp="invalid-email-otp",s.InvalidMfaOtp="invalid-mfa-otp",s.ExpiredEmailOtp="expired-email-otp",s.MfaSentHandle="mfa-sent-handle",s))(y||{}),O=(i=>(i.Retry="device-retry",i))(O||{}),b=(a=>(a.DeviceApproved="device-approved",a.DeviceNeedsApproval="device-needs-approval",a.DeviceVerificationLinkExpired="device-verification-link-expired",a.DeviceVerificationEmailSent="device-verification-email-sent",a))(b||{}),S=(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))(S||{}),k=(r=>(r.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",r.PrimaryAuthFactorVerified="Recency/auth-factor-verified",r.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",r.EmailExpired="Recency/auth-factor-verification-email-expired",r.EmailSent="Recency/auth-factor-verification-email-sent",r.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",r))(k||{}),L=(n=>(n.RetryWithNewEmail="UpdateEmail/retry-with-new-email",n.Cancel="UpdateEmail/new-email-verification-cancel",n.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",n))(L||{}),U=(c=>(c.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",c.EmailUpdated="UpdateEmail/email-updated",c.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",c.EmailExpired="UpdateEmail/new-email-verification-email-expired",c.EmailSent="UpdateEmail/new-email-verification-email-sent",c.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",c.InvalidEmail="UpdateEmail/new-email-invalid",c.EmailAlreadyExists="UpdateEmail/new-email-already-exists",c))(U||{}),w=(i=>(i.IDTokenCreated="Auth/id-token-created",i))(w||{}),F=(i=>(i.SuccessSignIn="Farcaster/success_sign_in",i))(F||{});var D=(i=>(i.Harmony="HARMONY",i))(D||{});var V=(i=>(i.ClosedByUser="closed-by-user",i))(V||{}),G=(i=>(i.ClosedByUser="closed-by-user-on-received",i))(G||{}),H=(i=>(i.PhoneNumber="phone_number",i))(H||{});var C=(a=>(a.Success="nft-checkout-success",a.Failure="nft-checkout-failure",a.Initiated="nft-checkout-initiated",a.Disconnect="disconnect",a))(C||{});var q=(i=>(i.WalletInfoFetched="Wallet/wallet-info-fetched",i))(q||{}); | ||
"use strict";var p=Object.defineProperty;var J=Object.getOwnPropertyDescriptor;var Y=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var j=(l,t)=>{for(var o in t)p(l,o,{get:t[o],enumerable:!0})},X=(l,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Y(t))!B.call(l,a)&&a!==o&&p(l,a,{get:()=>t[a],enumerable:!(n=J(t,a))||n.enumerable});return l};var z=l=>X(p({},"__esModule",{value:!0}),l);var Q={};j(Q,{AuthEventOnReceived:()=>U,DeepLinkPage:()=>I,DeviceVerificationEventEmit:()=>O,DeviceVerificationEventOnReceived:()=>b,EthChainType:()=>D,Events:()=>g,FarcasterLoginEventEmit:()=>F,LoginWithEmailOTPEventEmit:()=>A,LoginWithEmailOTPEventOnReceived:()=>y,LoginWithMagicLinkEventEmit:()=>N,LoginWithMagicLinkEventOnReceived:()=>T,LoginWithSmsOTPEventEmit:()=>R,LoginWithSmsOTPEventOnReceived:()=>h,MagicIncomingWindowMessage:()=>E,MagicOutgoingWindowMessage:()=>x,MagicPayloadMethod:()=>v,NftCheckoutIntermediaryEvents:()=>C,RPCErrorCode:()=>d,RecencyCheckEventEmit:()=>S,RecencyCheckEventOnReceived:()=>k,RecoveryMethodType:()=>H,SDKErrorCode:()=>_,SDKWarningCode:()=>u,UiEventsEmit:()=>W,UpdateEmailEventEmit:()=>L,UpdateEmailEventOnReceived:()=>w,UserEventsEmit:()=>V,UserEventsOnReceived:()=>G,WalletEventOnReceived:()=>q,Wallets:()=>f});module.exports=z(Q);var _=(r=>(r.MissingApiKey="MISSING_API_KEY",r.ModalNotReady="MODAL_NOT_READY",r.MalformedResponse="MALFORMED_RESPONSE",r.InvalidArgument="INVALID_ARGUMENT",r.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",r.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",r))(_||{}),u=(s=>(s.SyncWeb3Method="SYNC_WEB3_METHOD",s.DuplicateIframe="DUPLICATE_IFRAME",s.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",s.DeprecationNotice="DEPRECATION_NOTICE",s.ProductAnnouncement="ANNOUNCEMENT",s))(u||{}),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 f=(o=>(o.MetaMask="metamask",o.CoinbaseWallet="coinbase_wallet",o))(f||{}),g=(n=>(n.WalletSelected="wallet_selected",n.WalletConnected="wallet_connected",n.WalletRejected="wallet_rejected",n))(g||{}),v=(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))(v||{});var E=(m=>(m.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",m.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",m.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",m.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",m.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",m.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",m.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",m))(E||{}),x=(t=>(t.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",t))(x||{});var I=(n=>(n.UpdateEmail="update-email",n.MFA="mfa",n.Recovery="recovery",n))(I||{});var N=(t=>(t.Retry="retry",t))(N||{}),T=(o=>(o.EmailSent="email-sent",o.EmailNotDeliverable="email-not-deliverable",o))(T||{}),A=(n=>(n.VerifyEmailOtp="verify-email-otp",n.VerifyMFACode="verify-mfa-code",n.Cancel="cancel",n))(A||{}),R=(n=>(n.VerifySmsOtp="verify-sms-otp",n.Cancel="cancel",n.Retry="retry",n))(R||{}),h=(n=>(n.SmsOTPSent="sms-otp-sent",n.InvalidSmsOtp="invalid-sms-otp",n.ExpiredSmsOtp="expired-sms-otp",n))(h||{}),y=(s=>(s.EmailOTPSent="email-otp-sent",s.InvalidEmailOtp="invalid-email-otp",s.InvalidMfaOtp="invalid-mfa-otp",s.ExpiredEmailOtp="expired-email-otp",s.MfaSentHandle="mfa-sent-handle",s))(y||{}),O=(t=>(t.Retry="device-retry",t))(O||{}),b=(a=>(a.DeviceApproved="device-approved",a.DeviceNeedsApproval="device-needs-approval",a.DeviceVerificationLinkExpired="device-verification-link-expired",a.DeviceVerificationEmailSent="device-verification-email-sent",a))(b||{}),S=(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))(S||{}),k=(r=>(r.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",r.PrimaryAuthFactorVerified="Recency/auth-factor-verified",r.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",r.EmailExpired="Recency/auth-factor-verification-email-expired",r.EmailSent="Recency/auth-factor-verification-email-sent",r.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",r))(k||{}),L=(n=>(n.RetryWithNewEmail="UpdateEmail/retry-with-new-email",n.Cancel="UpdateEmail/new-email-verification-cancel",n.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",n))(L||{}),w=(c=>(c.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",c.EmailUpdated="UpdateEmail/email-updated",c.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",c.EmailExpired="UpdateEmail/new-email-verification-email-expired",c.EmailSent="UpdateEmail/new-email-verification-email-sent",c.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",c.InvalidEmail="UpdateEmail/new-email-invalid",c.EmailAlreadyExists="UpdateEmail/new-email-already-exists",c))(w||{}),U=(t=>(t.IDTokenCreated="Auth/id-token-created",t))(U||{}),F=(t=>(t.SuccessSignIn="Farcaster/success_sign_in",t))(F||{});var D=(t=>(t.Harmony="HARMONY",t))(D||{});var V=(t=>(t.ClosedByUser="closed-by-user",t))(V||{}),G=(t=>(t.ClosedByUser="closed-by-user-on-received",t))(G||{}),H=(t=>(t.PhoneNumber="phone_number",t))(H||{});var C=(a=>(a.Success="nft-checkout-success",a.Failure="nft-checkout-failure",a.Initiated="nft-checkout-initiated",a.Disconnect="disconnect",a))(C||{});var q=(t=>(t.WalletInfoFetched="Wallet/wallet-info-fetched",t))(q||{});var W=(t=>(t.CloseMagicWindow="close-magic-window",t))(W||{}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";var p=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var J=Object.getOwnPropertyNames;var Y=Object.prototype.hasOwnProperty;var B=(l,i)=>{for(var o in i)p(l,o,{get:i[o],enumerable:!0})},j=(l,i,o,n)=>{if(i&&typeof i=="object"||typeof i=="function")for(let a of J(i))!Y.call(l,a)&&a!==o&&p(l,a,{get:()=>i[a],enumerable:!(n=W(i,a))||n.enumerable});return l};var X=l=>j(p({},"__esModule",{value:!0}),l);var z={};B(z,{AuthEventOnReceived:()=>w,DeepLinkPage:()=>I,DeviceVerificationEventEmit:()=>O,DeviceVerificationEventOnReceived:()=>b,EthChainType:()=>D,Events:()=>g,FarcasterLoginEventEmit:()=>F,LoginWithEmailOTPEventEmit:()=>A,LoginWithEmailOTPEventOnReceived:()=>y,LoginWithMagicLinkEventEmit:()=>N,LoginWithMagicLinkEventOnReceived:()=>T,LoginWithSmsOTPEventEmit:()=>R,LoginWithSmsOTPEventOnReceived:()=>h,MagicIncomingWindowMessage:()=>E,MagicOutgoingWindowMessage:()=>x,MagicPayloadMethod:()=>v,NftCheckoutIntermediaryEvents:()=>C,RPCErrorCode:()=>d,RecencyCheckEventEmit:()=>S,RecencyCheckEventOnReceived:()=>k,RecoveryMethodType:()=>H,SDKErrorCode:()=>_,SDKWarningCode:()=>u,UpdateEmailEventEmit:()=>L,UpdateEmailEventOnReceived:()=>U,UserEventsEmit:()=>V,UserEventsOnReceived:()=>G,WalletEventOnReceived:()=>q,Wallets:()=>f});module.exports=X(z);var _=(r=>(r.MissingApiKey="MISSING_API_KEY",r.ModalNotReady="MODAL_NOT_READY",r.MalformedResponse="MALFORMED_RESPONSE",r.InvalidArgument="INVALID_ARGUMENT",r.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",r.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",r))(_||{}),u=(s=>(s.SyncWeb3Method="SYNC_WEB3_METHOD",s.DuplicateIframe="DUPLICATE_IFRAME",s.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",s.DeprecationNotice="DEPRECATION_NOTICE",s.ProductAnnouncement="ANNOUNCEMENT",s))(u||{}),d=(t=>(t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",t[t.MagicLinkExpired=-10001]="MagicLinkExpired",t[t.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",t[t.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",t[t.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",t[t.UpdateEmailFailed=-10004]="UpdateEmailFailed",t[t.UserRequestEditEmail=-10005]="UserRequestEditEmail",t[t.InactiveRecipient=-10010]="InactiveRecipient",t[t.AccessDeniedToUser=-10011]="AccessDeniedToUser",t[t.RedirectLoginComplete=-10015]="RedirectLoginComplete",t))(d||{});var f=(o=>(o.MetaMask="metamask",o.CoinbaseWallet="coinbase_wallet",o))(f||{}),g=(n=>(n.WalletSelected="wallet_selected",n.WalletConnected="wallet_connected",n.WalletRejected="wallet_rejected",n))(g||{}),v=(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))(v||{});var E=(m=>(m.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",m.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",m.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",m.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",m.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",m.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",m.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",m))(E||{}),x=(i=>(i.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",i))(x||{});var I=(n=>(n.UpdateEmail="update-email",n.MFA="mfa",n.Recovery="recovery",n))(I||{});var N=(i=>(i.Retry="retry",i))(N||{}),T=(o=>(o.EmailSent="email-sent",o.EmailNotDeliverable="email-not-deliverable",o))(T||{}),A=(n=>(n.VerifyEmailOtp="verify-email-otp",n.VerifyMFACode="verify-mfa-code",n.Cancel="cancel",n))(A||{}),R=(n=>(n.VerifySmsOtp="verify-sms-otp",n.Cancel="cancel",n.Retry="retry",n))(R||{}),h=(n=>(n.SmsOTPSent="sms-otp-sent",n.InvalidSmsOtp="invalid-sms-otp",n.ExpiredSmsOtp="expired-sms-otp",n))(h||{}),y=(s=>(s.EmailOTPSent="email-otp-sent",s.InvalidEmailOtp="invalid-email-otp",s.InvalidMfaOtp="invalid-mfa-otp",s.ExpiredEmailOtp="expired-email-otp",s.MfaSentHandle="mfa-sent-handle",s))(y||{}),O=(i=>(i.Retry="device-retry",i))(O||{}),b=(a=>(a.DeviceApproved="device-approved",a.DeviceNeedsApproval="device-needs-approval",a.DeviceVerificationLinkExpired="device-verification-link-expired",a.DeviceVerificationEmailSent="device-verification-email-sent",a))(b||{}),S=(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))(S||{}),k=(r=>(r.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",r.PrimaryAuthFactorVerified="Recency/auth-factor-verified",r.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",r.EmailExpired="Recency/auth-factor-verification-email-expired",r.EmailSent="Recency/auth-factor-verification-email-sent",r.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",r))(k||{}),L=(n=>(n.RetryWithNewEmail="UpdateEmail/retry-with-new-email",n.Cancel="UpdateEmail/new-email-verification-cancel",n.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",n))(L||{}),U=(c=>(c.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",c.EmailUpdated="UpdateEmail/email-updated",c.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",c.EmailExpired="UpdateEmail/new-email-verification-email-expired",c.EmailSent="UpdateEmail/new-email-verification-email-sent",c.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",c.InvalidEmail="UpdateEmail/new-email-invalid",c.EmailAlreadyExists="UpdateEmail/new-email-already-exists",c))(U||{}),w=(i=>(i.IDTokenCreated="Auth/id-token-created",i))(w||{}),F=(i=>(i.SuccessSignIn="Farcaster/success_sign_in",i))(F||{});var D=(i=>(i.Harmony="HARMONY",i))(D||{});var V=(i=>(i.ClosedByUser="closed-by-user",i))(V||{}),G=(i=>(i.ClosedByUser="closed-by-user-on-received",i))(G||{}),H=(i=>(i.PhoneNumber="phone_number",i))(H||{});var C=(a=>(a.Success="nft-checkout-success",a.Failure="nft-checkout-failure",a.Initiated="nft-checkout-initiated",a.Disconnect="disconnect",a))(C||{});var q=(i=>(i.WalletInfoFetched="Wallet/wallet-info-fetched",i))(q||{}); | ||
"use strict";var p=Object.defineProperty;var J=Object.getOwnPropertyDescriptor;var Y=Object.getOwnPropertyNames;var B=Object.prototype.hasOwnProperty;var j=(l,t)=>{for(var o in t)p(l,o,{get:t[o],enumerable:!0})},X=(l,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Y(t))!B.call(l,a)&&a!==o&&p(l,a,{get:()=>t[a],enumerable:!(n=J(t,a))||n.enumerable});return l};var z=l=>X(p({},"__esModule",{value:!0}),l);var Q={};j(Q,{AuthEventOnReceived:()=>U,DeepLinkPage:()=>I,DeviceVerificationEventEmit:()=>O,DeviceVerificationEventOnReceived:()=>b,EthChainType:()=>D,Events:()=>g,FarcasterLoginEventEmit:()=>F,LoginWithEmailOTPEventEmit:()=>A,LoginWithEmailOTPEventOnReceived:()=>y,LoginWithMagicLinkEventEmit:()=>N,LoginWithMagicLinkEventOnReceived:()=>T,LoginWithSmsOTPEventEmit:()=>R,LoginWithSmsOTPEventOnReceived:()=>h,MagicIncomingWindowMessage:()=>E,MagicOutgoingWindowMessage:()=>x,MagicPayloadMethod:()=>v,NftCheckoutIntermediaryEvents:()=>C,RPCErrorCode:()=>d,RecencyCheckEventEmit:()=>S,RecencyCheckEventOnReceived:()=>k,RecoveryMethodType:()=>H,SDKErrorCode:()=>_,SDKWarningCode:()=>u,UiEventsEmit:()=>W,UpdateEmailEventEmit:()=>L,UpdateEmailEventOnReceived:()=>w,UserEventsEmit:()=>V,UserEventsOnReceived:()=>G,WalletEventOnReceived:()=>q,Wallets:()=>f});module.exports=z(Q);var _=(r=>(r.MissingApiKey="MISSING_API_KEY",r.ModalNotReady="MODAL_NOT_READY",r.MalformedResponse="MALFORMED_RESPONSE",r.InvalidArgument="INVALID_ARGUMENT",r.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",r.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",r))(_||{}),u=(s=>(s.SyncWeb3Method="SYNC_WEB3_METHOD",s.DuplicateIframe="DUPLICATE_IFRAME",s.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",s.DeprecationNotice="DEPRECATION_NOTICE",s.ProductAnnouncement="ANNOUNCEMENT",s))(u||{}),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 f=(o=>(o.MetaMask="metamask",o.CoinbaseWallet="coinbase_wallet",o))(f||{}),g=(n=>(n.WalletSelected="wallet_selected",n.WalletConnected="wallet_connected",n.WalletRejected="wallet_rejected",n))(g||{}),v=(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))(v||{});var E=(m=>(m.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",m.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",m.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",m.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",m.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",m.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",m.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",m))(E||{}),x=(t=>(t.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",t))(x||{});var I=(n=>(n.UpdateEmail="update-email",n.MFA="mfa",n.Recovery="recovery",n))(I||{});var N=(t=>(t.Retry="retry",t))(N||{}),T=(o=>(o.EmailSent="email-sent",o.EmailNotDeliverable="email-not-deliverable",o))(T||{}),A=(n=>(n.VerifyEmailOtp="verify-email-otp",n.VerifyMFACode="verify-mfa-code",n.Cancel="cancel",n))(A||{}),R=(n=>(n.VerifySmsOtp="verify-sms-otp",n.Cancel="cancel",n.Retry="retry",n))(R||{}),h=(n=>(n.SmsOTPSent="sms-otp-sent",n.InvalidSmsOtp="invalid-sms-otp",n.ExpiredSmsOtp="expired-sms-otp",n))(h||{}),y=(s=>(s.EmailOTPSent="email-otp-sent",s.InvalidEmailOtp="invalid-email-otp",s.InvalidMfaOtp="invalid-mfa-otp",s.ExpiredEmailOtp="expired-email-otp",s.MfaSentHandle="mfa-sent-handle",s))(y||{}),O=(t=>(t.Retry="device-retry",t))(O||{}),b=(a=>(a.DeviceApproved="device-approved",a.DeviceNeedsApproval="device-needs-approval",a.DeviceVerificationLinkExpired="device-verification-link-expired",a.DeviceVerificationEmailSent="device-verification-email-sent",a))(b||{}),S=(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))(S||{}),k=(r=>(r.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",r.PrimaryAuthFactorVerified="Recency/auth-factor-verified",r.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",r.EmailExpired="Recency/auth-factor-verification-email-expired",r.EmailSent="Recency/auth-factor-verification-email-sent",r.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",r))(k||{}),L=(n=>(n.RetryWithNewEmail="UpdateEmail/retry-with-new-email",n.Cancel="UpdateEmail/new-email-verification-cancel",n.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",n))(L||{}),w=(c=>(c.NewAuthFactorNeedsVerification="UpdateEmail/new-email-needs-verification",c.EmailUpdated="UpdateEmail/email-updated",c.InvalidEmailOtp="UpdateEmail/new-email-invalid-email-otp",c.EmailExpired="UpdateEmail/new-email-verification-email-expired",c.EmailSent="UpdateEmail/new-email-verification-email-sent",c.EmailNotDeliverable="UpdateEmail/new-email-verification-email-not-deliverable",c.InvalidEmail="UpdateEmail/new-email-invalid",c.EmailAlreadyExists="UpdateEmail/new-email-already-exists",c))(w||{}),U=(t=>(t.IDTokenCreated="Auth/id-token-created",t))(U||{}),F=(t=>(t.SuccessSignIn="Farcaster/success_sign_in",t))(F||{});var D=(t=>(t.Harmony="HARMONY",t))(D||{});var V=(t=>(t.ClosedByUser="closed-by-user",t))(V||{}),G=(t=>(t.ClosedByUser="closed-by-user-on-received",t))(G||{}),H=(t=>(t.PhoneNumber="phone_number",t))(H||{});var C=(a=>(a.Success="nft-checkout-success",a.Failure="nft-checkout-failure",a.Initiated="nft-checkout-initiated",a.Disconnect="disconnect",a))(C||{});var q=(t=>(t.WalletInfoFetched="Wallet/wallet-info-fetched",t))(q||{});var W=(t=>(t.CloseMagicWindow="close-magic-window",t))(W||{}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
var m=(r=>(r.MissingApiKey="MISSING_API_KEY",r.ModalNotReady="MODAL_NOT_READY",r.MalformedResponse="MALFORMED_RESPONSE",r.InvalidArgument="INVALID_ARGUMENT",r.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",r.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",r))(m||{}),p=(s=>(s.SyncWeb3Method="SYNC_WEB3_METHOD",s.DuplicateIframe="DUPLICATE_IFRAME",s.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",s.DeprecationNotice="DEPRECATION_NOTICE",s.ProductAnnouncement="ANNOUNCEMENT",s))(p||{}),_=(t=>(t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",t[t.MagicLinkExpired=-10001]="MagicLinkExpired",t[t.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",t[t.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",t[t.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",t[t.UpdateEmailFailed=-10004]="UpdateEmailFailed",t[t.UserRequestEditEmail=-10005]="UserRequestEditEmail",t[t.InactiveRecipient=-10010]="InactiveRecipient",t[t.AccessDeniedToUser=-10011]="AccessDeniedToUser",t[t.RedirectLoginComplete=-10015]="RedirectLoginComplete",t))(_||{});var u=(l=>(l.MetaMask="metamask",l.CoinbaseWallet="coinbase_wallet",l))(u||{}),d=(i=>(i.WalletSelected="wallet_selected",i.WalletConnected="wallet_connected",i.WalletRejected="wallet_rejected",i))(d||{}),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=(c=>(c.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",c.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",c.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",c.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",c.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",c.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",c.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",c))(g||{}),v=(n=>(n.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",n))(v||{});var E=(i=>(i.UpdateEmail="update-email",i.MFA="mfa",i.Recovery="recovery",i))(E||{});var x=(n=>(n.Retry="retry",n))(x||{}),I=(l=>(l.EmailSent="email-sent",l.EmailNotDeliverable="email-not-deliverable",l))(I||{}),N=(i=>(i.VerifyEmailOtp="verify-email-otp",i.VerifyMFACode="verify-mfa-code",i.Cancel="cancel",i))(N||{}),T=(i=>(i.VerifySmsOtp="verify-sms-otp",i.Cancel="cancel",i.Retry="retry",i))(T||{}),A=(i=>(i.SmsOTPSent="sms-otp-sent",i.InvalidSmsOtp="invalid-sms-otp",i.ExpiredSmsOtp="expired-sms-otp",i))(A||{}),R=(s=>(s.EmailOTPSent="email-otp-sent",s.InvalidEmailOtp="invalid-email-otp",s.InvalidMfaOtp="invalid-mfa-otp",s.ExpiredEmailOtp="expired-email-otp",s.MfaSentHandle="mfa-sent-handle",s))(R||{}),h=(n=>(n.Retry="device-retry",n))(h||{}),y=(a=>(a.DeviceApproved="device-approved",a.DeviceNeedsApproval="device-needs-approval",a.DeviceVerificationLinkExpired="device-verification-link-expired",a.DeviceVerificationEmailSent="device-verification-email-sent",a))(y||{}),O=(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))(O||{}),b=(r=>(r.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",r.PrimaryAuthFactorVerified="Recency/auth-factor-verified",r.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",r.EmailExpired="Recency/auth-factor-verification-email-expired",r.EmailSent="Recency/auth-factor-verification-email-sent",r.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",r))(b||{}),S=(i=>(i.RetryWithNewEmail="UpdateEmail/retry-with-new-email",i.Cancel="UpdateEmail/new-email-verification-cancel",i.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",i))(S||{}),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||{}),L=(n=>(n.IDTokenCreated="Auth/id-token-created",n))(L||{}),U=(n=>(n.SuccessSignIn="Farcaster/success_sign_in",n))(U||{});var w=(n=>(n.Harmony="HARMONY",n))(w||{});var F=(n=>(n.ClosedByUser="closed-by-user",n))(F||{}),D=(n=>(n.ClosedByUser="closed-by-user-on-received",n))(D||{}),V=(n=>(n.PhoneNumber="phone_number",n))(V||{});var G=(a=>(a.Success="nft-checkout-success",a.Failure="nft-checkout-failure",a.Initiated="nft-checkout-initiated",a.Disconnect="disconnect",a))(G||{});var H=(n=>(n.WalletInfoFetched="Wallet/wallet-info-fetched",n))(H||{});export{L as AuthEventOnReceived,E as DeepLinkPage,h as DeviceVerificationEventEmit,y as DeviceVerificationEventOnReceived,w as EthChainType,d as Events,U as FarcasterLoginEventEmit,N as LoginWithEmailOTPEventEmit,R as LoginWithEmailOTPEventOnReceived,x as LoginWithMagicLinkEventEmit,I as LoginWithMagicLinkEventOnReceived,T as LoginWithSmsOTPEventEmit,A as LoginWithSmsOTPEventOnReceived,g as MagicIncomingWindowMessage,v as MagicOutgoingWindowMessage,f as MagicPayloadMethod,G as NftCheckoutIntermediaryEvents,_ as RPCErrorCode,O as RecencyCheckEventEmit,b as RecencyCheckEventOnReceived,V as RecoveryMethodType,m as SDKErrorCode,p as SDKWarningCode,S as UpdateEmailEventEmit,k as UpdateEmailEventOnReceived,F as UserEventsEmit,D as UserEventsOnReceived,H as WalletEventOnReceived,u as Wallets}; | ||
var m=(r=>(r.MissingApiKey="MISSING_API_KEY",r.ModalNotReady="MODAL_NOT_READY",r.MalformedResponse="MALFORMED_RESPONSE",r.InvalidArgument="INVALID_ARGUMENT",r.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",r.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",r))(m||{}),p=(s=>(s.SyncWeb3Method="SYNC_WEB3_METHOD",s.DuplicateIframe="DUPLICATE_IFRAME",s.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",s.DeprecationNotice="DEPRECATION_NOTICE",s.ProductAnnouncement="ANNOUNCEMENT",s))(p||{}),_=(t=>(t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",t[t.MagicLinkExpired=-10001]="MagicLinkExpired",t[t.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",t[t.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",t[t.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",t[t.UpdateEmailFailed=-10004]="UpdateEmailFailed",t[t.UserRequestEditEmail=-10005]="UserRequestEditEmail",t[t.InactiveRecipient=-10010]="InactiveRecipient",t[t.AccessDeniedToUser=-10011]="AccessDeniedToUser",t[t.RedirectLoginComplete=-10015]="RedirectLoginComplete",t))(_||{});var u=(l=>(l.MetaMask="metamask",l.CoinbaseWallet="coinbase_wallet",l))(u||{}),d=(i=>(i.WalletSelected="wallet_selected",i.WalletConnected="wallet_connected",i.WalletRejected="wallet_rejected",i))(d||{}),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=(c=>(c.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",c.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",c.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",c.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",c.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",c.MAGIC_MG_BOX_SEND_RECEIPT="MAGIC_MG_BOX_SEND_RECEIPT",c.MAGIC_SEND_PRODUCT_ANNOUNCEMENT="MAGIC_SEND_PRODUCT_ANNOUNCEMENT",c))(g||{}),v=(n=>(n.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",n))(v||{});var E=(i=>(i.UpdateEmail="update-email",i.MFA="mfa",i.Recovery="recovery",i))(E||{});var x=(n=>(n.Retry="retry",n))(x||{}),I=(l=>(l.EmailSent="email-sent",l.EmailNotDeliverable="email-not-deliverable",l))(I||{}),N=(i=>(i.VerifyEmailOtp="verify-email-otp",i.VerifyMFACode="verify-mfa-code",i.Cancel="cancel",i))(N||{}),T=(i=>(i.VerifySmsOtp="verify-sms-otp",i.Cancel="cancel",i.Retry="retry",i))(T||{}),A=(i=>(i.SmsOTPSent="sms-otp-sent",i.InvalidSmsOtp="invalid-sms-otp",i.ExpiredSmsOtp="expired-sms-otp",i))(A||{}),R=(s=>(s.EmailOTPSent="email-otp-sent",s.InvalidEmailOtp="invalid-email-otp",s.InvalidMfaOtp="invalid-mfa-otp",s.ExpiredEmailOtp="expired-email-otp",s.MfaSentHandle="mfa-sent-handle",s))(R||{}),h=(n=>(n.Retry="device-retry",n))(h||{}),y=(a=>(a.DeviceApproved="device-approved",a.DeviceNeedsApproval="device-needs-approval",a.DeviceVerificationLinkExpired="device-verification-link-expired",a.DeviceVerificationEmailSent="device-verification-email-sent",a))(y||{}),O=(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))(O||{}),b=(r=>(r.PrimaryAuthFactorNeedsVerification="Recency/auth-factor-needs-verification",r.PrimaryAuthFactorVerified="Recency/auth-factor-verified",r.InvalidEmailOtp="Recency/auth-factor-invalid-email-otp",r.EmailExpired="Recency/auth-factor-verification-email-expired",r.EmailSent="Recency/auth-factor-verification-email-sent",r.EmailNotDeliverable="Recency/auth-factor-verification-email-not-deliverable",r))(b||{}),S=(i=>(i.RetryWithNewEmail="UpdateEmail/retry-with-new-email",i.Cancel="UpdateEmail/new-email-verification-cancel",i.VerifyEmailOtp="UpdateEmail/new-email-verify-otp",i))(S||{}),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||{}),L=(n=>(n.IDTokenCreated="Auth/id-token-created",n))(L||{}),w=(n=>(n.SuccessSignIn="Farcaster/success_sign_in",n))(w||{});var U=(n=>(n.Harmony="HARMONY",n))(U||{});var F=(n=>(n.ClosedByUser="closed-by-user",n))(F||{}),D=(n=>(n.ClosedByUser="closed-by-user-on-received",n))(D||{}),V=(n=>(n.PhoneNumber="phone_number",n))(V||{});var G=(a=>(a.Success="nft-checkout-success",a.Failure="nft-checkout-failure",a.Initiated="nft-checkout-initiated",a.Disconnect="disconnect",a))(G||{});var H=(n=>(n.WalletInfoFetched="Wallet/wallet-info-fetched",n))(H||{});var C=(n=>(n.CloseMagicWindow="close-magic-window",n))(C||{});export{L as AuthEventOnReceived,E as DeepLinkPage,h as DeviceVerificationEventEmit,y as DeviceVerificationEventOnReceived,U as EthChainType,d as Events,w as FarcasterLoginEventEmit,N as LoginWithEmailOTPEventEmit,R as LoginWithEmailOTPEventOnReceived,x as LoginWithMagicLinkEventEmit,I as LoginWithMagicLinkEventOnReceived,T as LoginWithSmsOTPEventEmit,A as LoginWithSmsOTPEventOnReceived,g as MagicIncomingWindowMessage,v as MagicOutgoingWindowMessage,f as MagicPayloadMethod,G as NftCheckoutIntermediaryEvents,_ as RPCErrorCode,O as RecencyCheckEventEmit,b as RecencyCheckEventOnReceived,V as RecoveryMethodType,m as SDKErrorCode,p as SDKWarningCode,C as UiEventsEmit,S as UpdateEmailEventEmit,k as UpdateEmailEventOnReceived,F as UserEventsEmit,D as UserEventsOnReceived,H as WalletEventOnReceived,u as Wallets}; | ||
//# sourceMappingURL=index.js.map |
@@ -13,1 +13,2 @@ export * from './core/exception-types'; | ||
export * from './modules/wallet-types'; | ||
export * from './modules/common-types'; |
{ | ||
"name": "@magic-sdk/types", | ||
"version": "24.5.0", | ||
"version": "24.6.0-canary.806.10814729012.0", | ||
"description": "Core typings for Magic SDK packages.", | ||
@@ -24,3 +24,3 @@ "author": "Magic Labs <team@magic.link> (https://magic.link/)", | ||
}, | ||
"gitHead": "e07dd5ae0f4ec30a77879a1502b847f3db6909ad" | ||
"gitHead": "b742f2111cda3fc2fc565dcc8c92d3ba9cfab991" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
155914
818
1