@openfort/openfort-js 0.8.41 → 0.8.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./openfort.js"),r=require("./errors/openfortError.js"),t=require("./types.js"),o=require("./iframe/types.js"),n=require("./iframe/iframeManager.js"),i=require("./config/config.js");const u=e.Openfort;exports.Openfort=e.Openfort,exports.OpenfortError=r.OpenfortError,Object.defineProperty(exports,"OpenfortErrorType",{enumerable:!0,get:function(){return r.OpenfortErrorType}}),Object.defineProperty(exports,"AuthType",{enumerable:!0,get:function(){return t.AuthType}}),Object.defineProperty(exports,"BasicAuthProvider",{enumerable:!0,get:function(){return t.BasicAuthProvider}}),Object.defineProperty(exports,"EmbeddedState",{enumerable:!0,get:function(){return t.EmbeddedState}}),Object.defineProperty(exports,"OAuthProvider",{enumerable:!0,get:function(){return t.OAuthProvider}}),Object.defineProperty(exports,"RecoveryMethod",{enumerable:!0,get:function(){return t.RecoveryMethod}}),Object.defineProperty(exports,"ThirdPartyOAuthProvider",{enumerable:!0,get:function(){return t.ThirdPartyOAuthProvider}}),Object.defineProperty(exports,"TokenType",{enumerable:!0,get:function(){return t.TokenType}}),Object.defineProperty(exports,"ShieldAuthType",{enumerable:!0,get:function(){return o.ShieldAuthType}}),exports.MissingProjectEntropyError=n.MissingProjectEntropyError,exports.MissingRecoveryPasswordError=n.MissingRecoveryPasswordError,exports.NotConfiguredError=n.NotConfiguredError,exports.WrongRecoveryPasswordError=n.WrongRecoveryPasswordError,exports.OpenfortConfiguration=i.OpenfortConfiguration,exports.SDKConfiguration=i.SDKConfiguration,exports.ShieldConfiguration=i.ShieldConfiguration,exports.default=u;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./openfort.js"),r=require("./errors/openfortError.js"),t=require("./types.js"),o=require("./iframe/types.js"),n=require("./iframe/iframeManager.js"),i=require("./config/config.js");const u=e.Openfort;exports.Openfort=e.Openfort,exports.OpenfortError=r.OpenfortError,Object.defineProperty(exports,"OpenfortErrorType",{enumerable:!0,get:function(){return r.OpenfortErrorType}}),Object.defineProperty(exports,"AuthActionRequiredActions",{enumerable:!0,get:function(){return t.AuthActionRequiredActions}}),Object.defineProperty(exports,"AuthType",{enumerable:!0,get:function(){return t.AuthType}}),Object.defineProperty(exports,"BasicAuthProvider",{enumerable:!0,get:function(){return t.BasicAuthProvider}}),Object.defineProperty(exports,"EmbeddedState",{enumerable:!0,get:function(){return t.EmbeddedState}}),Object.defineProperty(exports,"OAuthProvider",{enumerable:!0,get:function(){return t.OAuthProvider}}),Object.defineProperty(exports,"RecoveryMethod",{enumerable:!0,get:function(){return t.RecoveryMethod}}),Object.defineProperty(exports,"ThirdPartyOAuthProvider",{enumerable:!0,get:function(){return t.ThirdPartyOAuthProvider}}),Object.defineProperty(exports,"TokenType",{enumerable:!0,get:function(){return t.TokenType}}),Object.defineProperty(exports,"ShieldAuthType",{enumerable:!0,get:function(){return o.ShieldAuthType}}),exports.MissingProjectEntropyError=n.MissingProjectEntropyError,exports.MissingRecoveryPasswordError=n.MissingRecoveryPasswordError,exports.NotConfiguredError=n.NotConfiguredError,exports.WrongRecoveryPasswordError=n.WrongRecoveryPasswordError,exports.OpenfortConfiguration=i.OpenfortConfiguration,exports.SDKConfiguration=i.SDKConfiguration,exports.ShieldConfiguration=i.ShieldConfiguration,exports.default=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e,o,t,r,E,A,p,
|
|
1
|
+
"use strict";var e,o,t,r,E,A,d,p,s;exports.EmbeddedState=void 0,(e=exports.EmbeddedState||(exports.EmbeddedState={}))[e.NONE=0]="NONE",e[e.UNAUTHENTICATED=1]="UNAUTHENTICATED",e[e.EMBEDDED_SIGNER_NOT_CONFIGURED=2]="EMBEDDED_SIGNER_NOT_CONFIGURED",e[e.CREATING_ACCOUNT=3]="CREATING_ACCOUNT",e[e.READY=4]="READY",exports.OpenfortEvents=void 0,(exports.OpenfortEvents||(exports.OpenfortEvents={})).LOGGED_OUT="loggedOut",exports.RecoveryMethod=void 0,(o=exports.RecoveryMethod||(exports.RecoveryMethod={})).PASSWORD="password",o.AUTOMATIC="automatic",exports.AccountType=void 0,(t=exports.AccountType||(exports.AccountType={})).UPGRADEABLE_V4="Upgradeable_v04",t.MANAGED_V4="Managed_v04",t.ERC6551_V4="ERC6551_v04",t.ERC6551_V5="ERC6551_v05",t.RECOVERABLE_V4="Recoverable_v04",t.MANAGED_V5="Managed_v05",t.UPGRADEABLE_V5="Upgradeable_v05",t.UPGRADEABLE_V6="Upgradeable_v06",t.ZKSYNC_UPGRADEABLE_V1="zksync_upgradeable_v1",t.ZKSYNC_UPGRADEABLE_V2="zksync_upgradeable_v2",exports.AuthType=void 0,(r=exports.AuthType||(exports.AuthType={})).OPENFORT="openfort",r.THIRD_PARTY="thirdParty",exports.TokenType=void 0,(E=exports.TokenType||(exports.TokenType={})).ID_TOKEN="idToken",E.CUSTOM_TOKEN="customToken",exports.ThirdPartyOAuthProvider=void 0,(A=exports.ThirdPartyOAuthProvider||(exports.ThirdPartyOAuthProvider={})).ACCELBYTE="accelbyte",A.FIREBASE="firebase",A.LOOTLOCKER="lootlocker",A.PLAYFAB="playfab",A.SUPABASE="supabase",A.CUSTOM="custom",A.OIDC="oidc",exports.BasicAuthProvider=void 0,(d=exports.BasicAuthProvider||(exports.BasicAuthProvider={})).EMAIL="email",d.WALLET="wallet",exports.OAuthProvider=void 0,(p=exports.OAuthProvider||(exports.OAuthProvider={})).GOOGLE="google",p.TWITTER="twitter",p.APPLE="apple",p.FACEBOOK="facebook",p.DISCORD="discord",p.EPIC_GAMES="epic_games",p.LINE="line",exports.AuthActionRequiredActions=void 0,(exports.AuthActionRequiredActions||(exports.AuthActionRequiredActions={})).ACTION_VERIFY_EMAIL="verify_email",exports.CodeChallengeMethodEnum=void 0,(s=exports.CodeChallengeMethodEnum||(exports.CodeChallengeMethodEnum={})).PLAIN="plain",s.S256="S256";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.PACKAGE="@openfort/openfort-js",exports.VERSION="0.8.
|
|
1
|
+
"use strict";exports.PACKAGE="@openfort/openfort-js",exports.VERSION="0.8.42";
|
package/dist/index.d.ts
CHANGED
|
@@ -302,11 +302,11 @@ interface AuthResponse {
|
|
|
302
302
|
'token': string;
|
|
303
303
|
'refreshToken': string;
|
|
304
304
|
}
|
|
305
|
-
declare enum
|
|
305
|
+
declare enum AuthActionRequiredActions {
|
|
306
306
|
ACTION_VERIFY_EMAIL = "verify_email"
|
|
307
307
|
}
|
|
308
|
-
interface
|
|
309
|
-
action:
|
|
308
|
+
interface AuthActionRequiredResponse {
|
|
309
|
+
action: AuthActionRequiredActions;
|
|
310
310
|
}
|
|
311
311
|
interface AccountAbstractionV6Details {
|
|
312
312
|
'userOperation': UserOperationV6;
|
|
@@ -584,7 +584,7 @@ declare class Openfort {
|
|
|
584
584
|
email: string;
|
|
585
585
|
password: string;
|
|
586
586
|
ecosystemGame?: string;
|
|
587
|
-
}): Promise<AuthResponse |
|
|
587
|
+
}): Promise<AuthResponse | AuthActionRequiredResponse>;
|
|
588
588
|
/**
|
|
589
589
|
* Registers a new guest user.
|
|
590
590
|
*
|
|
@@ -609,7 +609,7 @@ declare class Openfort {
|
|
|
609
609
|
};
|
|
610
610
|
};
|
|
611
611
|
ecosystemGame?: string;
|
|
612
|
-
}): Promise<AuthResponse |
|
|
612
|
+
}): Promise<AuthResponse | AuthActionRequiredResponse>;
|
|
613
613
|
/**
|
|
614
614
|
* Links an email and password to an existing account using an authentication token.
|
|
615
615
|
*
|
|
@@ -624,7 +624,7 @@ declare class Openfort {
|
|
|
624
624
|
password: string;
|
|
625
625
|
authToken: string;
|
|
626
626
|
ecosystemGame?: string;
|
|
627
|
-
}): Promise<AuthPlayerResponse |
|
|
627
|
+
}): Promise<AuthPlayerResponse | AuthActionRequiredResponse>;
|
|
628
628
|
/**
|
|
629
629
|
* Unlinks an email and password from an existing account using an authentication token.
|
|
630
630
|
*
|
|
@@ -932,4 +932,4 @@ declare class NotConfiguredError extends Error {
|
|
|
932
932
|
*/
|
|
933
933
|
declare const DEPRECATED_OPENFORT: typeof Openfort;
|
|
934
934
|
|
|
935
|
-
export { AuthPlayerResponse, AuthType, BasicAuthProvider, EmbeddedState, InitializeOAuthOptions, MissingProjectEntropyError, MissingRecoveryPasswordError, NotConfiguredError, OAuthProvider, Openfort, OpenfortConfiguration, OpenfortError, OpenfortErrorType, Provider, RecoveryMethod, SDKConfiguration, SDKOverrides, SessionResponse, ShieldAuthOptions, ShieldAuthType, ShieldAuthentication, ShieldConfiguration, ShieldOptions, ThirdPartyOAuthProvider, TokenType, TransactionIntentResponse, TypedDataPayload, WrongRecoveryPasswordError, DEPRECATED_OPENFORT as default };
|
|
935
|
+
export { AuthActionRequiredActions, AuthActionRequiredResponse, AuthPlayerResponse, AuthResponse, AuthType, BasicAuthProvider, EmbeddedState, InitAuthResponse, InitializeOAuthOptions, MissingProjectEntropyError, MissingRecoveryPasswordError, NotConfiguredError, OAuthProvider, Openfort, OpenfortConfiguration, OpenfortError, OpenfortErrorType, Provider, RecoveryMethod, SDKConfiguration, SDKOverrides, SessionResponse, ShieldAuthOptions, ShieldAuthType, ShieldAuthentication, ShieldConfiguration, ShieldOptions, ThirdPartyOAuthProvider, TokenType, TransactionIntentResponse, TypedDataPayload, WrongRecoveryPasswordError, DEPRECATED_OPENFORT as default };
|
package/dist/sdk/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Openfort as r}from"./openfort.js";export{OpenfortError,OpenfortErrorType}from"./errors/openfortError.js";export{AuthType,BasicAuthProvider,EmbeddedState,OAuthProvider,RecoveryMethod,ThirdPartyOAuthProvider,TokenType}from"./types.js";export{ShieldAuthType}from"./iframe/types.js";export{MissingProjectEntropyError,MissingRecoveryPasswordError,NotConfiguredError,WrongRecoveryPasswordError}from"./iframe/iframeManager.js";export{OpenfortConfiguration,SDKConfiguration,ShieldConfiguration}from"./config/config.js";const o=r;export{r as Openfort,o as default};
|
|
1
|
+
import{Openfort as r}from"./openfort.js";export{OpenfortError,OpenfortErrorType}from"./errors/openfortError.js";export{AuthActionRequiredActions,AuthType,BasicAuthProvider,EmbeddedState,OAuthProvider,RecoveryMethod,ThirdPartyOAuthProvider,TokenType}from"./types.js";export{ShieldAuthType}from"./iframe/types.js";export{MissingProjectEntropyError,MissingRecoveryPasswordError,NotConfiguredError,WrongRecoveryPasswordError}from"./iframe/iframeManager.js";export{OpenfortConfiguration,SDKConfiguration,ShieldConfiguration}from"./config/config.js";const o=r;export{r as Openfort,o as default};
|
package/dist/sdk/src/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var E,A,_,e,a,n,o,T,O,R,C;!function(E){E[E.NONE=0]="NONE",E[E.UNAUTHENTICATED=1]="UNAUTHENTICATED",E[E.EMBEDDED_SIGNER_NOT_CONFIGURED=2]="EMBEDDED_SIGNER_NOT_CONFIGURED",E[E.CREATING_ACCOUNT=3]="CREATING_ACCOUNT",E[E.READY=4]="READY"}(E||(E={})),function(E){E.LOGGED_OUT="loggedOut"}(A||(A={})),function(E){E.PASSWORD="password",E.AUTOMATIC="automatic"}(_||(_={})),function(E){E.UPGRADEABLE_V4="Upgradeable_v04",E.MANAGED_V4="Managed_v04",E.ERC6551_V4="ERC6551_v04",E.ERC6551_V5="ERC6551_v05",E.RECOVERABLE_V4="Recoverable_v04",E.MANAGED_V5="Managed_v05",E.UPGRADEABLE_V5="Upgradeable_v05",E.UPGRADEABLE_V6="Upgradeable_v06",E.ZKSYNC_UPGRADEABLE_V1="zksync_upgradeable_v1",E.ZKSYNC_UPGRADEABLE_V2="zksync_upgradeable_v2"}(e||(e={})),function(E){E.OPENFORT="openfort",E.THIRD_PARTY="thirdParty"}(a||(a={})),function(E){E.ID_TOKEN="idToken",E.CUSTOM_TOKEN="customToken"}(n||(n={})),function(E){E.ACCELBYTE="accelbyte",E.FIREBASE="firebase",E.LOOTLOCKER="lootlocker",E.PLAYFAB="playfab",E.SUPABASE="supabase",E.CUSTOM="custom",E.OIDC="oidc"}(o||(o={})),function(E){E.EMAIL="email",E.WALLET="wallet"}(T||(T={})),function(E){E.GOOGLE="google",E.TWITTER="twitter",E.APPLE="apple",E.FACEBOOK="facebook",E.DISCORD="discord",E.EPIC_GAMES="epic_games",E.LINE="line"}(O||(O={})),function(E){E.ACTION_VERIFY_EMAIL="verify_email"}(R||(R={})),function(E){E.PLAIN="plain",E.S256="S256"}(C||(C={}));export{e as AccountType,R as
|
|
1
|
+
var E,A,_,e,a,n,o,T,O,R,C;!function(E){E[E.NONE=0]="NONE",E[E.UNAUTHENTICATED=1]="UNAUTHENTICATED",E[E.EMBEDDED_SIGNER_NOT_CONFIGURED=2]="EMBEDDED_SIGNER_NOT_CONFIGURED",E[E.CREATING_ACCOUNT=3]="CREATING_ACCOUNT",E[E.READY=4]="READY"}(E||(E={})),function(E){E.LOGGED_OUT="loggedOut"}(A||(A={})),function(E){E.PASSWORD="password",E.AUTOMATIC="automatic"}(_||(_={})),function(E){E.UPGRADEABLE_V4="Upgradeable_v04",E.MANAGED_V4="Managed_v04",E.ERC6551_V4="ERC6551_v04",E.ERC6551_V5="ERC6551_v05",E.RECOVERABLE_V4="Recoverable_v04",E.MANAGED_V5="Managed_v05",E.UPGRADEABLE_V5="Upgradeable_v05",E.UPGRADEABLE_V6="Upgradeable_v06",E.ZKSYNC_UPGRADEABLE_V1="zksync_upgradeable_v1",E.ZKSYNC_UPGRADEABLE_V2="zksync_upgradeable_v2"}(e||(e={})),function(E){E.OPENFORT="openfort",E.THIRD_PARTY="thirdParty"}(a||(a={})),function(E){E.ID_TOKEN="idToken",E.CUSTOM_TOKEN="customToken"}(n||(n={})),function(E){E.ACCELBYTE="accelbyte",E.FIREBASE="firebase",E.LOOTLOCKER="lootlocker",E.PLAYFAB="playfab",E.SUPABASE="supabase",E.CUSTOM="custom",E.OIDC="oidc"}(o||(o={})),function(E){E.EMAIL="email",E.WALLET="wallet"}(T||(T={})),function(E){E.GOOGLE="google",E.TWITTER="twitter",E.APPLE="apple",E.FACEBOOK="facebook",E.DISCORD="discord",E.EPIC_GAMES="epic_games",E.LINE="line"}(O||(O={})),function(E){E.ACTION_VERIFY_EMAIL="verify_email"}(R||(R={})),function(E){E.PLAIN="plain",E.S256="S256"}(C||(C={}));export{e as AccountType,R as AuthActionRequiredActions,a as AuthType,T as BasicAuthProvider,C as CodeChallengeMethodEnum,E as EmbeddedState,O as OAuthProvider,A as OpenfortEvents,_ as RecoveryMethod,o as ThirdPartyOAuthProvider,n as TokenType};
|
package/dist/sdk/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const o="0.8.
|
|
1
|
+
const o="0.8.42",t="@openfort/openfort-js";export{t as PACKAGE,o as VERSION};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfort/openfort-js",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.42",
|
|
4
4
|
"author": "Openfort (https://www.openfort.io)",
|
|
5
5
|
"bugs": "https://github.com/openfort-xyz/openfort-js/issues",
|
|
6
6
|
"repository": "openfort-xyz/openfort-js.git",
|
|
@@ -20,14 +20,13 @@
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
"test": "yarn lint && yarn test:unit && yarn typecheck",
|
|
22
22
|
"test:unit": "jest --passWithNoTests",
|
|
23
|
-
"prebuild": "node -p \"'export const VERSION = ' + JSON.stringify(require('./package.json').version) + ';\\nexport const PACKAGE = ' + JSON.stringify(require('./package.json').name) + ';'\" > src/version.ts",
|
|
24
23
|
"test:watch": "jest --watch",
|
|
25
24
|
"packageList": "./scripts/generate-package-list.sh",
|
|
26
25
|
"typecheck": "tsc --noEmit --jsx preserve",
|
|
27
26
|
"dev": "NODE_ENV=development yarn rollup --config rollup.config.js --watch",
|
|
28
27
|
"lint": "eslint 'src/**/*.ts' --fix",
|
|
29
28
|
"clean": "rimraf dist",
|
|
30
|
-
"build": "yarn packageList && yarn clean && NODE_ENV=production yarn rollup --config rollup.config.js && rm -rf dist/types",
|
|
29
|
+
"build": "yarn packageList && node copyVersion.cjs && yarn clean && NODE_ENV=production yarn rollup --config rollup.config.js && rm -rf dist/types",
|
|
31
30
|
"stats": "open ./stats.html"
|
|
32
31
|
},
|
|
33
32
|
"publishConfig": {
|