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

@magic-sdk/types

Package Overview
Dependencies
Maintainers
11
Versions
566
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 6.0.0-mfa-feature.0 to 6.0.0

dist/modern/index.mjs

112

CHANGELOG.md

@@ -0,1 +1,113 @@

# v6.0.0 (Tue Dec 14 2021)
#### ๐Ÿ’ฅ Breaking Change
- Deprecate test API key [#252](https://github.com/magiclabs/magic-js/pull/252) (harry [@harryEth](https://github.com/harryEth))
#### Authors: 2
- [@harryEth](https://github.com/harryEth)
- harry (harry)
---
# v5.2.0 (Fri Oct 22 2021)
#### ๐Ÿš€ Enhancement
- Add `UserModule#settings` endpoint [#231](https://github.com/magiclabs/magic-js/pull/231) ([@smithki](https://github.com/smithki))
#### Authors: 1
- Ian K Smith ([@smithki](https://github.com/smithki))
---
# v5.1.4 (Thu Oct 21 2021)
#### ๐Ÿ› Bug Fix
- Revert to `.js` extension for ES module builds targeting webpack/CRA [#232](https://github.com/magiclabs/magic-js/pull/232) ([@smithki](https://github.com/smithki))
#### Authors: 1
- Ian K Smith ([@smithki](https://github.com/smithki))
---
# v5.1.3 (Wed Oct 20 2021)
#### โš ๏ธ Pushed to `master`
- Fix dist files glob in package.json ([@smithki](https://github.com/smithki))
- Merge branch 'master' of github.com:magiclabs/magic-js ([@smithki](https://github.com/smithki))
- Force re-publish ([@smithki](https://github.com/smithki))
#### Authors: 1
- Ian K Smith ([@smithki](https://github.com/smithki))
---
# v5.1.2 (Wed Oct 20 2021)
#### ๐Ÿ› Bug Fix
- Use '.mjs' extension for ESM build files [#230](https://github.com/magiclabs/magic-js/pull/230) ([@smithki](https://github.com/smithki))
#### Authors: 1
- Ian K Smith ([@smithki](https://github.com/smithki))
---
# v5.1.1 (Tue Oct 19 2021)
#### ๐Ÿ› Bug Fix
- add typing for metadata phone number [#225](https://github.com/magiclabs/magic-js/pull/225) ([@dgerrellsMagic](https://github.com/dgerrellsMagic))
#### Authors: 1
- [@dgerrellsMagic](https://github.com/dgerrellsMagic)
---
# v5.1.0 (Fri Oct 01 2021)
#### ๐Ÿš€ Enhancement
- Enable SMS login [#223](https://github.com/magiclabs/magic-js/pull/223) ([@dgerrellsMagic](https://github.com/dgerrellsMagic))
#### Authors: 1
- [@dgerrellsMagic](https://github.com/dgerrellsMagic)
---
# v5.0.3 (Thu Sep 23 2021)
#### ๐Ÿ› Bug Fix
- Port `@magic-ext/oauth`, `@magic-ext/react-native-oauth`, `@magic-ext/webauthn` extensions to Magic SDK monorepo [#218](https://github.com/magiclabs/magic-js/pull/218) ([@smithki](https://github.com/smithki))
- Add `@magic-sdk/pnp` package for out-of-the-box login page UIs [#217](https://github.com/magiclabs/magic-js/pull/217) ([@smithki](https://github.com/smithki))
#### Authors: 1
- Ian K Smith ([@smithki](https://github.com/smithki))
---
# v5.0.2 (Fri Sep 17 2021)
#### ๐Ÿ› Bug Fix
- Fix CJS-dependent entry-points using the 'exports' field in package.json [#214](https://github.com/magiclabs/magic-js/pull/214) ([@smithki](https://github.com/smithki))
#### Authors: 1
- Ian K Smith ([@smithki](https://github.com/smithki))
---
# v5.0.1 (Tue Sep 14 2021)

@@ -2,0 +114,0 @@

2

dist/cjs/index.js

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

var e,i,t,a,o;exports.SDKErrorCode=void 0,(e=exports.SDKErrorCode||(exports.SDKErrorCode={})).MissingApiKey="MISSING_API_KEY",e.ModalNotReady="MODAL_NOT_READY",e.MalformedResponse="MALFORMED_RESPONSE",e.InvalidArgument="INVALID_ARGUMENT",e.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",e.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",exports.SDKWarningCode=void 0,(i=exports.SDKWarningCode||(exports.SDKWarningCode={})).SyncWeb3Method="SYNC_WEB3_METHOD",i.DuplicateIframe="DUPLICATE_IFRAME",i.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",i.DeprecationNotice="DEPRECATION_NOTICE",exports.RPCErrorCode=void 0,(t=exports.RPCErrorCode||(exports.RPCErrorCode={}))[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",exports.MagicPayloadMethod=void 0,(a=exports.MagicPayloadMethod||(exports.MagicPayloadMethod={})).EnableMfa="magic_auth_enable_mfa_flow",a.DisableMfa="magic_auth_disable_mfa_flow",a.LoginWithSms="magic_auth_login_with_sms",a.LoginWithMagicLink="magic_auth_login_with_magic_link",a.LoginWithCredential="magic_auth_login_with_credential",a.GetIdToken="magic_auth_get_id_token",a.GenerateIdToken="magic_auth_generate_id_token",a.GetMetadata="magic_auth_get_metadata",a.IsLoggedIn="magic_auth_is_logged_in",a.Logout="magic_auth_logout",a.UpdateEmail="magic_auth_update_email",a.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",a.EnableMfaTestMode="magic_auth_enable_mfa_flow_testing_mode",a.DisableMfaTestMode="magic_auth_disable_mfa_flow_testing_mode",a.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",a.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",a.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",a.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",a.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",a.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",a.LogoutTestMode="magic_auth_logout_testing_mode",a.UpdateEmailTestMode="magic_auth_update_email_testing_mode",exports.MagicIncomingWindowMessage=void 0,(o=exports.MagicIncomingWindowMessage||(exports.MagicIncomingWindowMessage={})).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",exports.MagicOutgoingWindowMessage=void 0,(exports.MagicOutgoingWindowMessage||(exports.MagicOutgoingWindowMessage={})).MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",exports.EthChainType=void 0,(exports.EthChainType||(exports.EthChainType={})).Harmony="HARMONY";
var e,i,t,a,o;exports.SDKErrorCode=void 0,(e=exports.SDKErrorCode||(exports.SDKErrorCode={})).MissingApiKey="MISSING_API_KEY",e.ModalNotReady="MODAL_NOT_READY",e.MalformedResponse="MALFORMED_RESPONSE",e.InvalidArgument="INVALID_ARGUMENT",e.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",e.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS",exports.SDKWarningCode=void 0,(i=exports.SDKWarningCode||(exports.SDKWarningCode={})).SyncWeb3Method="SYNC_WEB3_METHOD",i.DuplicateIframe="DUPLICATE_IFRAME",i.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",i.DeprecationNotice="DEPRECATION_NOTICE",exports.RPCErrorCode=void 0,(t=exports.RPCErrorCode||(exports.RPCErrorCode={}))[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",exports.MagicPayloadMethod=void 0,(a=exports.MagicPayloadMethod||(exports.MagicPayloadMethod={})).LoginWithSms="magic_auth_login_with_sms",a.LoginWithMagicLink="magic_auth_login_with_magic_link",a.LoginWithCredential="magic_auth_login_with_credential",a.GetIdToken="magic_auth_get_id_token",a.GenerateIdToken="magic_auth_generate_id_token",a.GetMetadata="magic_auth_get_metadata",a.IsLoggedIn="magic_auth_is_logged_in",a.Logout="magic_auth_logout",a.UpdateEmail="magic_auth_update_email",a.UserSettings="magic_auth_settings",a.UserSettingsTestMode="magic_auth_settings_testing_mode",a.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",a.LoginWithMagicLinkTestMode="magic_login_with_magic_link_testing_mode",a.LoginWithCredentialTestMode="magic_auth_login_with_credential_testing_mode",a.GetIdTokenTestMode="magic_auth_get_id_token_testing_mode",a.GenerateIdTokenTestMode="magic_auth_generate_id_token_testing_mode",a.GetMetadataTestMode="magic_auth_get_metadata_testing_mode",a.IsLoggedInTestMode="magic_auth_is_logged_in_testing_mode",a.LogoutTestMode="magic_auth_logout_testing_mode",a.UpdateEmailTestMode="magic_auth_update_email_testing_mode",exports.MagicIncomingWindowMessage=void 0,(o=exports.MagicIncomingWindowMessage||(exports.MagicIncomingWindowMessage={})).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",exports.MagicOutgoingWindowMessage=void 0,(exports.MagicOutgoingWindowMessage||(exports.MagicOutgoingWindowMessage={})).MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST",exports.EthChainType=void 0,(exports.EthChainType||(exports.EthChainType={})).Harmony="HARMONY";
//# sourceMappingURL=index.js.map

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

var e,i,t,a,_,n,o;!function(e){e.MissingApiKey="MISSING_API_KEY",e.ModalNotReady="MODAL_NOT_READY",e.MalformedResponse="MALFORMED_RESPONSE",e.InvalidArgument="INVALID_ARGUMENT",e.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",e.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS"}(e||(e={})),function(e){e.SyncWeb3Method="SYNC_WEB3_METHOD",e.DuplicateIframe="DUPLICATE_IFRAME",e.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",e.DeprecationNotice="DEPRECATION_NOTICE"}(i||(i={})),function(e){e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail",e[e.InactiveRecipient=-10010]="InactiveRecipient",e[e.AccessDeniedToUser=-10011]="AccessDeniedToUser"}(t||(t={})),function(e){e.EnableMfa="magic_auth_enable_mfa_flow",e.DisableMfa="magic_auth_disable_mfa_flow",e.LoginWithSms="magic_auth_login_with_sms",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.LoginWithSmsTestMode="magic_auth_login_with_sms_testing_mode",e.EnableMfaTestMode="magic_auth_enable_mfa_flow_testing_mode",e.DisableMfaTestMode="magic_auth_disable_mfa_flow_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"}(a||(a={})),function(e){e.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",e.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",e.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",e.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",e.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT"}(_||(_={})),function(e){e.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST"}(n||(n={})),function(e){e.Harmony="HARMONY"}(o||(o={}));export{o as EthChainType,_ as MagicIncomingWindowMessage,n as MagicOutgoingWindowMessage,a as MagicPayloadMethod,t as RPCErrorCode,e as SDKErrorCode,i as SDKWarningCode};
var e,i,t,_,a,n,o;!function(e){e.MissingApiKey="MISSING_API_KEY",e.ModalNotReady="MODAL_NOT_READY",e.MalformedResponse="MALFORMED_RESPONSE",e.InvalidArgument="INVALID_ARGUMENT",e.ExtensionNotInitialized="EXTENSION_NOT_INITIALIZED",e.IncompatibleExtensions="INCOMPATIBLE_EXTENSIONS"}(e||(e={})),function(e){e.SyncWeb3Method="SYNC_WEB3_METHOD",e.DuplicateIframe="DUPLICATE_IFRAME",e.ReactNativeEndpointConfiguration="REACT_NATIVE_ENDPOINT_CONFIGURATION",e.DeprecationNotice="DEPRECATION_NOTICE"}(i||(i={})),function(e){e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.MagicLinkFailedVerification=-1e4]="MagicLinkFailedVerification",e[e.MagicLinkExpired=-10001]="MagicLinkExpired",e[e.MagicLinkRateLimited=-10002]="MagicLinkRateLimited",e[e.MagicLinkInvalidRedirectURL=-10006]="MagicLinkInvalidRedirectURL",e[e.UserAlreadyLoggedIn=-10003]="UserAlreadyLoggedIn",e[e.UpdateEmailFailed=-10004]="UpdateEmailFailed",e[e.UserRequestEditEmail=-10005]="UserRequestEditEmail",e[e.InactiveRecipient=-10010]="InactiveRecipient",e[e.AccessDeniedToUser=-10011]="AccessDeniedToUser"}(t||(t={})),function(e){e.LoginWithSms="magic_auth_login_with_sms",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.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"}(_||(_={})),function(e){e.MAGIC_HANDLE_RESPONSE="MAGIC_HANDLE_RESPONSE",e.MAGIC_OVERLAY_READY="MAGIC_OVERLAY_READY",e.MAGIC_SHOW_OVERLAY="MAGIC_SHOW_OVERLAY",e.MAGIC_HIDE_OVERLAY="MAGIC_HIDE_OVERLAY",e.MAGIC_HANDLE_EVENT="MAGIC_HANDLE_EVENT"}(a||(a={})),function(e){e.MAGIC_HANDLE_REQUEST="MAGIC_HANDLE_REQUEST"}(n||(n={})),function(e){e.Harmony="HARMONY"}(o||(o={}));export{o as EthChainType,a as MagicIncomingWindowMessage,n as MagicOutgoingWindowMessage,_ as MagicPayloadMethod,t as RPCErrorCode,e as SDKErrorCode,i as SDKWarningCode};
//# sourceMappingURL=index.js.map

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

export declare enum MagicPayloadMethod {
EnableMfa = "magic_auth_enable_mfa_flow",
DisableMfa = "magic_auth_disable_mfa_flow",
LoginWithSms = "magic_auth_login_with_sms",

@@ -43,5 +41,5 @@ LoginWithMagicLink = "magic_auth_login_with_magic_link",

UpdateEmail = "magic_auth_update_email",
UserSettings = "magic_auth_settings",
UserSettingsTestMode = "magic_auth_settings_testing_mode",
LoginWithSmsTestMode = "magic_auth_login_with_sms_testing_mode",
EnableMfaTestMode = "magic_auth_enable_mfa_flow_testing_mode",
DisableMfaTestMode = "magic_auth_disable_mfa_flow_testing_mode",
LoginWithMagicLinkTestMode = "magic_login_with_magic_link_testing_mode",

@@ -48,0 +46,0 @@ LoginWithCredentialTestMode = "magic_auth_login_with_credential_testing_mode",

@@ -19,2 +19,3 @@ export interface GetIdTokenConfiguration {

email: string | null;
phoneNumber: string | null;
}

@@ -21,0 +22,0 @@ export interface UpdateEmailConfiguration {

{
"name": "@magic-sdk/types",
"version": "6.0.0-mfa-feature.0",
"version": "6.0.0",
"description": "Core typings for Magic SDK packages.",

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

"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts"
"dist"
],

@@ -21,5 +19,8 @@ "target": "web",

"module": "./dist/es/index.js",
"exports": "./dist/modern/index.js",
"types": "./dist/types/index.d.ts",
"gitHead": "831fa0dcea304499307d0fc186ab0a06429bc799"
"exports": {
"import": "./dist/modern/index.mjs",
"require": "./dist/cjs/index.js"
},
"gitHead": "a85f41892cbd7985ee1743764f7f905b89004eaa"
}

@@ -0,1 +1,3 @@

<!-- force publish -->
# โœจ Magic JavaScript SDK Types

@@ -2,0 +4,0 @@

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