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 13.6.1-4bcf4d3 to 13.6.2-ef22383

13

CHANGELOG.md

@@ -0,1 +1,14 @@

# v11.6.1 (Mon Mar 20 2023)
#### 🐛 Bug Fix
- Sc 68969 immutable stark error [#477](https://github.com/magiclabs/magic-js/pull/477) ([@mattupham](https://github.com/mattupham))
- Update json rpc type ([@mattupham](https://github.com/mattupham))
#### Authors: 1
- Matt Upham ([@mattupham](https://github.com/mattupham))
---
# v11.6.0 (Tue Mar 07 2023)

@@ -2,0 +15,0 @@

2

dist/cjs/index.js

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

"use strict";var p=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var R=(i,n)=>{for(var a in n)p(i,a,{get:n[a],enumerable:!0})},L=(i,n,a,u)=>{if(n&&typeof n=="object"||typeof n=="function")for(let _ of E(n))!N.call(i,_)&&_!==a&&p(i,_,{get:()=>n[_],enumerable:!(u=T(n,_))||u.enumerable});return i};var f=i=>L(p({},"__esModule",{value:!0}),i);var x={};R(x,{EthChainType:()=>A,MagicIncomingWindowMessage:()=>l,MagicOutgoingWindowMessage:()=>I,MagicPayloadMethod:()=>g,RPCErrorCode:()=>c,SDKErrorCode:()=>o,SDKWarningCode:()=>r});module.exports=f(x);var o=(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))(o||{}),r=(_=>(_.SyncWeb3Method="SYNC_WEB3_METHOD",_.DuplicateIframe="DUPLICATE_IFRAME",_.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",_.DeprecationNotice="DEPRECATION_NOTICE",_))(r||{}),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.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=(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))(l||{}),I=(n=>(n.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",n))(I||{});var A=(n=>(n.Harmony="HARMONY",n))(A||{});
"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||{});
//# sourceMappingURL=index.js.map

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

var m=(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))(m||{}),a=(i=>(i.SyncWeb3Method="SYNC_WEB3_METHOD",i.DuplicateIframe="DUPLICATE_IFRAME",i.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",i.DeprecationNotice="DEPRECATION_NOTICE",i))(a||{}),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 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.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.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))(u||{});var o=(_=>(_.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",_.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",_.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",_.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",_.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT",_))(o||{}),r=(s=>(s.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",s))(r||{});var c=(s=>(s.Harmony="HARMONY",s))(c||{});export{c as EthChainType,o as MagicIncomingWindowMessage,r as MagicOutgoingWindowMessage,u as MagicPayloadMethod,p as RPCErrorCode,m as SDKErrorCode,a as SDKWarningCode};
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};
//# sourceMappingURL=index.js.map

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

}
export interface NFTPurchaseRequest {
nft: {
name: string;
price: number;
currencyCode: string;
contractAddress: string;
collection?: string;
imageUrl?: string;
};
identityPrefill: {
firstName: string;
lastName: string;
dateOfBirth: string;
emailAddress: string;
phone: string;
address: {
street1: string;
street2: string;
city: string;
regionCode: string;
postalCode: string;
countryCode: string;
};
};
}
export declare type NFTPurchaseStatus = 'processed' | 'declined' | 'expired';
export interface NFTPurchaseResponse {
status: NFTPurchaseStatus;
}
/**

@@ -70,2 +99,3 @@ * Enum of JSON RPC methods for interacting with the Magic SDK authentication

ShowUI = "mc_wallet",
NFTPurchase = "magic_nft_purchase",
RequestUserInfoWithUI = "mc_request_user_info",

@@ -72,0 +102,0 @@ Disconnect = "mc_disconnect",

{
"name": "@magic-sdk/types",
"version": "13.6.1-4bcf4d3",
"version": "13.6.2-ef22383",
"description": "Core typings for Magic SDK packages.",

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

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