New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@magic-sdk/types

Package Overview
Dependencies
Maintainers
22
Versions
624
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magic-sdk/types - npm Package Compare versions

Comparing version 11.6.2 to 12.0.0-2f75fa3

dist/types/core/third-party-wallet-options.d.ts

2

dist/cjs/index.js

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

"use strict";var m=Object.defineProperty;var N=Object.getOwnPropertyDescriptor;var A=Object.getOwnPropertyNames;var R=Object.prototype.hasOwnProperty;var E=(s,n)=>{for(var a in n)m(s,a,{get:n[a],enumerable:!0})},f=(s,n,a,p)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of A(n))!R.call(s,i)&&i!==a&&m(s,i,{get:()=>n[i],enumerable:!(p=N(n,i))||p.enumerable});return s};var x=s=>f(m({},"__esModule",{value:!0}),s);var L={};E(L,{EthChainType:()=>T,MagicIncomingWindowMessage:()=>l,MagicOutgoingWindowMessage:()=>I,MagicPayloadMethod:()=>g,RPCErrorCode:()=>c,SDKErrorCode:()=>u,SDKWarningCode:()=>o});module.exports=x(L);var u=(_=>(_.MissingApiKey="MISSING_API_KEY",_.ModalNotReady="MODAL_NOT_READY",_.MalformedResponse="MALFORMED_RESPONSE",_.InvalidArgument="INVALID_ARGUMENT",_.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",_.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",_))(u||{}),o=(i=>(i.SyncWeb3Method="SYNC_WEB3_METHOD",i.DuplicateIframe="DUPLICATE_IFRAME",i.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",i.DeprecationNotice="DEPRECATION_NOTICE",i))(o||{}),c=(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))(c||{});var g=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_auth_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="mc_get_wallet_info",e.ShowUI="mc_wallet",e.NFTPurchase="magic_nft_purchase",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.UpdatePhoneNumber="magic_auth_update_phone_number",e.UpdatePhoneNumberTestMode="magic_auth_update_phone_number_testing_mode",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e))(g||{});var l=(r=>(r.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",r.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",r.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",r.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",r.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",r))(l||{}),I=(n=>(n.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",n))(I||{});var T=(n=>(n.Harmony="HARMONY",n))(T||{});
"use strict";var m=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var E=Object.prototype.hasOwnProperty;var L=(_,n)=>{for(var a in n)m(_,a,{get:n[a],enumerable:!0})},h=(_,n,a,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of x(n))!E.call(_,s)&&s!==a&&m(_,s,{get:()=>n[s],enumerable:!(r=R(n,s))||r.enumerable});return _};var O=_=>h(m({},"__esModule",{value:!0}),_);var U={};L(U,{Errors:()=>I,EthChainType:()=>f,Events:()=>g,MagicIncomingWindowMessage:()=>A,MagicOutgoingWindowMessage:()=>N,MagicPayloadMethod:()=>T,RPCErrorCode:()=>u,SDKErrorCode:()=>p,SDKWarningCode:()=>c,Wallets:()=>l});module.exports=O(U);var p=(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))(p||{}),c=(s=>(s.SyncWeb3Method="SYNC_WEB3_METHOD",s.DuplicateIframe="DUPLICATE_IFRAME",s.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",s.DeprecationNotice="DEPRECATION_NOTICE",s))(c||{}),u=(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))(u||{});var l=(r=>(r.MetaMask="metamask",r.WalletConnect="wallet_connect",r.CoinbaseWallet="coinbase_wallet",r))(l||{}),g=(i=>(i.WalletSelected="wallet_selected",i.WalletConnected="wallet_connected",i.WalletRejected="wallet_rejected",i.DisplayUri="display_uri",i.Uri="uri",i))(g||{}),I=(a=>(a.WalletConnectError="Missing Wallet Connect Config",a.CoinbaseWalletError="Missing Coinbase Wallet Config",a))(I||{}),T=(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.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_auth_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.AutoConnect="mc_auto_connect",e.Login="mc_login",e.RequestAccounts="eth_requestAccounts",e.GetInfo="mc_get_wallet_info",e.ShowUI="mc_wallet",e.NFTPurchase="magic_nft_purchase",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.UpdatePhoneNumber="magic_auth_update_phone_number",e.UpdatePhoneNumberTestMode="magic_auth_update_phone_number_testing_mode",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e))(T||{});var A=(i=>(i.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",i.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",i.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",i.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",i.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",i))(A||{}),N=(n=>(n.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",n))(N||{});var f=(n=>(n.Harmony="HARMONY",n))(f||{});
//# sourceMappingURL=index.js.map

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

var r=(n=>(n.MissingApiKey="MISSING_API_KEY",n.ModalNotReady="MODAL_NOT_READY",n.MalformedResponse="MALFORMED_RESPONSE",n.InvalidArgument="INVALID_ARGUMENT",n.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",n.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",n))(r||{}),a=(s=>(s.SyncWeb3Method="SYNC_WEB3_METHOD",s.DuplicateIframe="DUPLICATE_IFRAME",s.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",s.DeprecationNotice="DEPRECATION_NOTICE",s))(a||{}),m=(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))(m||{});var p=(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.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_auth_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="mc_get_wallet_info",e.ShowUI="mc_wallet",e.NFTPurchase="magic_nft_purchase",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.UpdatePhoneNumber="magic_auth_update_phone_number",e.UpdatePhoneNumberTestMode="magic_auth_update_phone_number_testing_mode",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e))(p||{});var u=(i=>(i.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",i.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",i.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",i.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",i.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",i))(u||{}),o=(_=>(_.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",_))(o||{});var c=(_=>(_.Harmony="HARMONY",_))(c||{});export{c as EthChainType,u as MagicIncomingWindowMessage,o as MagicOutgoingWindowMessage,p as MagicPayloadMethod,m as RPCErrorCode,r as SDKErrorCode,a as SDKWarningCode};
var o=(i=>(i.MissingApiKey="MISSING_API_KEY",i.ModalNotReady="MODAL_NOT_READY",i.MalformedResponse="MALFORMED_RESPONSE",i.InvalidArgument="INVALID_ARGUMENT",i.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",i.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",i))(o||{}),m=(s=>(s.SyncWeb3Method="SYNC_WEB3_METHOD",s.DuplicateIframe="DUPLICATE_IFRAME",s.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",s.DeprecationNotice="DEPRECATION_NOTICE",s))(m||{}),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))(p||{});var c=(a=>(a.MetaMask="metamask",a.WalletConnect="wallet_connect",a.CoinbaseWallet="coinbase_wallet",a))(c||{}),u=(n=>(n.WalletSelected="wallet_selected",n.WalletConnected="wallet_connected",n.WalletRejected="wallet_rejected",n.DisplayUri="display_uri",n.Uri="uri",n))(u||{}),l=(r=>(r.WalletConnectError="Missing Wallet Connect Config",r.CoinbaseWalletError="Missing Coinbase Wallet Config",r))(l||{}),g=(e=>(e.LoginWithSms="magic_auth_login_with_sms",e.LoginWithEmailOTP="magic_auth_login_with_email_otp",e.LoginWithMagicLink="magic_auth_login_with_magic_link",e.LoginWithCredential="magic_auth_login_with_credential",e.GetIdToken="magic_auth_get_id_token",e.GenerateIdToken="magic_auth_generate_id_token",e.GetMetadata="magic_auth_get_metadata",e.IsLoggedIn="magic_auth_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.AutoConnect="mc_auto_connect",e.Login="mc_login",e.RequestAccounts="eth_requestAccounts",e.GetInfo="mc_get_wallet_info",e.ShowUI="mc_wallet",e.NFTPurchase="magic_nft_purchase",e.RequestUserInfoWithUI="mc_request_user_info",e.Disconnect="mc_disconnect",e.UpdatePhoneNumber="magic_auth_update_phone_number",e.UpdatePhoneNumberTestMode="magic_auth_update_phone_number_testing_mode",e.RecoverAccount="magic_auth_recover_account",e.RecoverAccountTestMode="magic_auth_recover_account_testing_mode",e))(g||{});var I=(n=>(n.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",n.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",n.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",n.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",n.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",n))(I||{}),T=(_=>(_.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",_))(T||{});var A=(_=>(_.Harmony="HARMONY",_))(A||{});export{l as Errors,A as EthChainType,u as Events,I as MagicIncomingWindowMessage,T as MagicOutgoingWindowMessage,g as MagicPayloadMethod,p as RPCErrorCode,o as SDKErrorCode,m as SDKWarningCode,c as Wallets};
//# sourceMappingURL=index.js.map

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

}
export declare enum Wallets {
MetaMask = "metamask",
WalletConnect = "wallet_connect",
CoinbaseWallet = "coinbase_wallet"
}
export declare enum Events {
WalletSelected = "wallet_selected",
WalletConnected = "wallet_connected",
WalletRejected = "wallet_rejected",
DisplayUri = "display_uri",
Uri = "uri"
}
export declare enum Errors {
WalletConnectError = "Missing Wallet Connect Config",
CoinbaseWalletError = "Missing Coinbase Wallet Config"
}
export interface UserEnv {
env: {
isMetaMaskInstalled: boolean;
isCoinbaseWalletInstalled: boolean;
};
}
export interface NFTPurchaseRequest {

@@ -96,2 +118,4 @@ nft: {

IntermediaryEvent = "magic_intermediary_event",
AutoConnect = "mc_auto_connect",
Login = "mc_login",
RequestAccounts = "eth_requestAccounts",

@@ -98,0 +122,0 @@ GetInfo = "mc_get_wallet_info",

@@ -6,2 +6,3 @@ export * from './core/exception-types';

export * from './core/query-types';
export * from './core/third-party-wallet-options';
export * from './modules/auth-types';

@@ -8,0 +9,0 @@ export * from './modules/rpc-provider-types';

{
"name": "@magic-sdk/types",
"version": "11.6.2",
"version": "12.0.0-2f75fa3",
"description": "Core typings for Magic SDK packages.",

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

},
"gitHead": "4cbb97c4441f3c8c833bf714d4afa840097cbb89"
"gitHead": "1ef062ea699d48d5e9a9375a93b7c147632b05ca"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc