@openfort/openfort-js 0.5.9 → 0.5.10
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.
- package/dist/clients/iframe-client.d.ts +2 -3
- package/dist/clients/iframe-client.js +4 -5
- package/dist/clients/iframe-client.js.map +1 -1
- package/dist/generated/api.d.ts +8 -8
- package/dist/generated/api.js +8 -8
- package/dist/generated/api.js.map +1 -1
- package/dist/generated/base.js.map +1 -1
- package/dist/generated/common.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js.map +1 -1
- package/dist/instanceManager.d.ts +44 -0
- package/dist/instanceManager.js +196 -0
- package/dist/instanceManager.js.map +1 -0
- package/dist/lib/helpers.js.map +1 -1
- package/dist/openfort.d.ts +14 -23
- package/dist/openfort.js +103 -45
- package/dist/openfort.js.map +1 -1
- package/dist/openfortAuth.d.ts +29 -28
- package/dist/openfortAuth.js +46 -40
- package/dist/openfortAuth.js.map +1 -1
- package/dist/signer/embedded.signer.d.ts +4 -7
- package/dist/signer/embedded.signer.js +24 -20
- package/dist/signer/embedded.signer.js.map +1 -1
- package/dist/signer/session.signer.d.ts +3 -3
- package/dist/signer/session.signer.js +5 -6
- package/dist/signer/session.signer.js.map +1 -1
- package/dist/signer/signer.d.ts +2 -1
- package/dist/signer/signer.js +2 -1
- package/dist/signer/signer.js.map +1 -1
- package/dist/storage/{local-storage.js → localStorage.js} +1 -1
- package/dist/storage/localStorage.js.map +1 -0
- package/dist/storage/sessionStorage.d.ts +7 -0
- package/dist/storage/sessionStorage.js +24 -0
- package/dist/storage/sessionStorage.js.map +1 -0
- package/dist/storage/storage.d.ts +5 -0
- package/dist/storage/storage.js +6 -1
- package/dist/storage/storage.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/storage/local-storage.js.map +0 -1
- /package/dist/storage/{local-storage.d.ts → localStorage.d.ts} +0 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export declare class IframeClient {
|
|
2
2
|
private readonly _iframe;
|
|
3
|
-
|
|
4
|
-
constructor(publishableKey: string, accessToken: string, chainId: number, iframeURL?: string);
|
|
3
|
+
constructor(publishableKey: string, accessToken: string);
|
|
5
4
|
isLoaded(): boolean;
|
|
6
5
|
private waitForIframeLoad;
|
|
7
|
-
createAccount(password?: string): Promise<string>;
|
|
6
|
+
createAccount(chainId: number, password?: string): Promise<string>;
|
|
8
7
|
registerDevice(account: string, password?: string): Promise<string>;
|
|
9
8
|
getCurrentDevice(): Promise<string | null>;
|
|
10
9
|
sign(message: string): Promise<string>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IframeClient = void 0;
|
|
4
4
|
class IframeClient {
|
|
5
|
-
constructor(publishableKey, accessToken
|
|
5
|
+
constructor(publishableKey, accessToken) {
|
|
6
6
|
if (!document) {
|
|
7
7
|
throw new Error("must be run in a browser");
|
|
8
8
|
}
|
|
@@ -11,9 +11,8 @@ class IframeClient {
|
|
|
11
11
|
this._iframe = actualIframeURL;
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
|
-
this._chainId = chainId;
|
|
15
14
|
this._iframe = document.createElement("iframe");
|
|
16
|
-
const baseURL =
|
|
15
|
+
const baseURL = "https://iframe.openfort.xyz";
|
|
17
16
|
this._iframe.src = baseURL + "/iframe?accessToken=" + accessToken + "&publishableKey=" + publishableKey;
|
|
18
17
|
this._iframe.style.display = "none";
|
|
19
18
|
this._iframe.id = "openfort-iframe";
|
|
@@ -27,7 +26,7 @@ class IframeClient {
|
|
|
27
26
|
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
|
-
async createAccount(password) {
|
|
29
|
+
async createAccount(chainId, password) {
|
|
31
30
|
await this.waitForIframeLoad();
|
|
32
31
|
return new Promise((resolve, reject) => {
|
|
33
32
|
// Function to handle message event
|
|
@@ -46,7 +45,7 @@ class IframeClient {
|
|
|
46
45
|
this._iframe.contentWindow?.postMessage({
|
|
47
46
|
action: "generateKey",
|
|
48
47
|
password: password,
|
|
49
|
-
chainId:
|
|
48
|
+
chainId: chainId,
|
|
50
49
|
}, "*");
|
|
51
50
|
});
|
|
52
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iframe-client.js","sourceRoot":"","sources":["../../src/clients/iframe-client.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;
|
|
1
|
+
{"version":3,"file":"iframe-client.js","sourceRoot":"","sources":["../../src/clients/iframe-client.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;IAGrB,YAAY,cAAsB,EAAE,WAAmB;QACnD,IAAI,CAAC,QAAQ,EAAE;YACX,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;SAC/C;QAED,MAAM,eAAe,GAAG,QAAQ,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;QACnE,IAAI,eAAe,EAAE;YACjB,IAAI,CAAC,OAAO,GAAG,eAAoC,CAAC;YACpD,OAAO;SACV;QAED,IAAI,CAAC,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAChD,MAAM,OAAO,GAAI,6BAA6B,CAAC;QAC/C,IAAI,CAAC,OAAO,CAAC,GAAG,GAAG,OAAO,GAAG,sBAAsB,GAAG,WAAW,GAAG,kBAAkB,GAAG,cAAc,CAAC;QACxG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;QACpC,IAAI,CAAC,OAAO,CAAC,EAAE,GAAG,iBAAiB,CAAC;QACpC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;IAEM,QAAQ;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,aAAa,KAAK,IAAI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iBAC7C;YACL,CAAC,EAAE,IAAI,CAAC,CAAC;QACb,CAAC,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,KAAa;QACpC,MAAM,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAE/B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACnC,MAAM,aAAa,GAAG,CAAC,KAAmB,EAAE,EAAE;gBAC1C,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,KAAK,uBAAuB,EAAE;oBAC/C,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE;wBACpB,OAAO,EAAE,CAAC;qBACb;yBAAM;wBACH,MAAM,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,IAAI,8BAA8B,CAAC,CAAC,CAAC;qBACzE;oBAED,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;iBACxD;YACL,CAAC,CAAC;YAEF,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;YAElD,UAAU,CAAC,GAAG,EAAE;gBACZ,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;oBAC5B,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,WAAW,CAClC;wBACI,MAAM,EAAE,sBAAsB;wBAC9B,KAAK,EAAE,KAAK;qBACf,EACD,GAAG,CACN,CAAC;iBACL;qBAAM;oBACH,OAAO,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAAC;iBAC7C;YACL,CAAC,EAAE,IAAI,CAAC,CAAC;QACb,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAtOD,oCAsOC"}
|
package/dist/generated/api.d.ts
CHANGED
|
@@ -11525,7 +11525,7 @@ export declare class PolicyRulesApi extends BaseAPI {
|
|
|
11525
11525
|
*/
|
|
11526
11526
|
export declare const SessionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
11527
11527
|
/**
|
|
11528
|
-
* Creates a
|
|
11528
|
+
* Creates a InstanceManager.
|
|
11529
11529
|
* @summary Create a session key.
|
|
11530
11530
|
* @param {CreateSessionRequest} createSessionRequest
|
|
11531
11531
|
* @param {*} [options] Override http request option.
|
|
@@ -11545,7 +11545,7 @@ export declare const SessionsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
11545
11545
|
*/
|
|
11546
11546
|
getPlayerSessions: (player: string, limit?: number, skip?: number, order?: SortOrder, expand?: Array<SessionResponseExpandable>, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
11547
11547
|
/**
|
|
11548
|
-
* Retrieves the details of a
|
|
11548
|
+
* Retrieves the details of a InstanceManager that has previously been created.
|
|
11549
11549
|
* @summary Returns a player session by session id
|
|
11550
11550
|
* @param {string} id Specifies the unique session ID (starts with ses_).
|
|
11551
11551
|
* @param {Array<SessionResponseExpandable>} [expand] Specifies the fields to expand.
|
|
@@ -11577,7 +11577,7 @@ export declare const SessionsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
11577
11577
|
*/
|
|
11578
11578
|
export declare const SessionsApiFp: (configuration?: Configuration) => {
|
|
11579
11579
|
/**
|
|
11580
|
-
* Creates a
|
|
11580
|
+
* Creates a InstanceManager.
|
|
11581
11581
|
* @summary Create a session key.
|
|
11582
11582
|
* @param {CreateSessionRequest} createSessionRequest
|
|
11583
11583
|
* @param {*} [options] Override http request option.
|
|
@@ -11597,7 +11597,7 @@ export declare const SessionsApiFp: (configuration?: Configuration) => {
|
|
|
11597
11597
|
*/
|
|
11598
11598
|
getPlayerSessions(player: string, limit?: number, skip?: number, order?: SortOrder, expand?: Array<SessionResponseExpandable>, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SessionListResponse>>;
|
|
11599
11599
|
/**
|
|
11600
|
-
* Retrieves the details of a
|
|
11600
|
+
* Retrieves the details of a InstanceManager that has previously been created.
|
|
11601
11601
|
* @summary Returns a player session by session id
|
|
11602
11602
|
* @param {string} id Specifies the unique session ID (starts with ses_).
|
|
11603
11603
|
* @param {Array<SessionResponseExpandable>} [expand] Specifies the fields to expand.
|
|
@@ -11629,7 +11629,7 @@ export declare const SessionsApiFp: (configuration?: Configuration) => {
|
|
|
11629
11629
|
*/
|
|
11630
11630
|
export declare const SessionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
11631
11631
|
/**
|
|
11632
|
-
* Creates a
|
|
11632
|
+
* Creates a InstanceManager.
|
|
11633
11633
|
* @summary Create a session key.
|
|
11634
11634
|
* @param {CreateSessionRequest} createSessionRequest
|
|
11635
11635
|
* @param {*} [options] Override http request option.
|
|
@@ -11649,7 +11649,7 @@ export declare const SessionsApiFactory: (configuration?: Configuration, basePat
|
|
|
11649
11649
|
*/
|
|
11650
11650
|
getPlayerSessions(player: string, limit?: number, skip?: number, order?: SortOrder, expand?: Array<SessionResponseExpandable>, options?: any): AxiosPromise<SessionListResponse>;
|
|
11651
11651
|
/**
|
|
11652
|
-
* Retrieves the details of a
|
|
11652
|
+
* Retrieves the details of a InstanceManager that has previously been created.
|
|
11653
11653
|
* @summary Returns a player session by session id
|
|
11654
11654
|
* @param {string} id Specifies the unique session ID (starts with ses_).
|
|
11655
11655
|
* @param {Array<SessionResponseExpandable>} [expand] Specifies the fields to expand.
|
|
@@ -11683,7 +11683,7 @@ export declare const SessionsApiFactory: (configuration?: Configuration, basePat
|
|
|
11683
11683
|
*/
|
|
11684
11684
|
export declare class SessionsApi extends BaseAPI {
|
|
11685
11685
|
/**
|
|
11686
|
-
* Creates a
|
|
11686
|
+
* Creates a InstanceManager.
|
|
11687
11687
|
* @summary Create a session key.
|
|
11688
11688
|
* @param {CreateSessionRequest} createSessionRequest
|
|
11689
11689
|
* @param {*} [options] Override http request option.
|
|
@@ -11705,7 +11705,7 @@ export declare class SessionsApi extends BaseAPI {
|
|
|
11705
11705
|
*/
|
|
11706
11706
|
getPlayerSessions(player: string, limit?: number, skip?: number, order?: SortOrder, expand?: Array<SessionResponseExpandable>, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SessionListResponse, any>>;
|
|
11707
11707
|
/**
|
|
11708
|
-
* Retrieves the details of a
|
|
11708
|
+
* Retrieves the details of a InstanceManager that has previously been created.
|
|
11709
11709
|
* @summary Returns a player session by session id
|
|
11710
11710
|
* @param {string} id Specifies the unique session ID (starts with ses_).
|
|
11711
11711
|
* @param {Array<SessionResponseExpandable>} [expand] Specifies the fields to expand.
|
package/dist/generated/api.js
CHANGED
|
@@ -7017,7 +7017,7 @@ exports.PolicyRulesApi = PolicyRulesApi;
|
|
|
7017
7017
|
const SessionsApiAxiosParamCreator = function (configuration) {
|
|
7018
7018
|
return {
|
|
7019
7019
|
/**
|
|
7020
|
-
* Creates a
|
|
7020
|
+
* Creates a InstanceManager.
|
|
7021
7021
|
* @summary Create a session key.
|
|
7022
7022
|
* @param {CreateSessionRequest} createSessionRequest
|
|
7023
7023
|
* @param {*} [options] Override http request option.
|
|
@@ -7100,7 +7100,7 @@ const SessionsApiAxiosParamCreator = function (configuration) {
|
|
|
7100
7100
|
};
|
|
7101
7101
|
},
|
|
7102
7102
|
/**
|
|
7103
|
-
* Retrieves the details of a
|
|
7103
|
+
* Retrieves the details of a InstanceManager that has previously been created.
|
|
7104
7104
|
* @summary Returns a player session by session id
|
|
7105
7105
|
* @param {string} id Specifies the unique session ID (starts with ses_).
|
|
7106
7106
|
* @param {Array<SessionResponseExpandable>} [expand] Specifies the fields to expand.
|
|
@@ -7219,7 +7219,7 @@ const SessionsApiFp = function (configuration) {
|
|
|
7219
7219
|
const localVarAxiosParamCreator = (0, exports.SessionsApiAxiosParamCreator)(configuration);
|
|
7220
7220
|
return {
|
|
7221
7221
|
/**
|
|
7222
|
-
* Creates a
|
|
7222
|
+
* Creates a InstanceManager.
|
|
7223
7223
|
* @summary Create a session key.
|
|
7224
7224
|
* @param {CreateSessionRequest} createSessionRequest
|
|
7225
7225
|
* @param {*} [options] Override http request option.
|
|
@@ -7245,7 +7245,7 @@ const SessionsApiFp = function (configuration) {
|
|
|
7245
7245
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
7246
7246
|
},
|
|
7247
7247
|
/**
|
|
7248
|
-
* Retrieves the details of a
|
|
7248
|
+
* Retrieves the details of a InstanceManager that has previously been created.
|
|
7249
7249
|
* @summary Returns a player session by session id
|
|
7250
7250
|
* @param {string} id Specifies the unique session ID (starts with ses_).
|
|
7251
7251
|
* @param {Array<SessionResponseExpandable>} [expand] Specifies the fields to expand.
|
|
@@ -7290,7 +7290,7 @@ const SessionsApiFactory = function (configuration, basePath, axios) {
|
|
|
7290
7290
|
const localVarFp = (0, exports.SessionsApiFp)(configuration);
|
|
7291
7291
|
return {
|
|
7292
7292
|
/**
|
|
7293
|
-
* Creates a
|
|
7293
|
+
* Creates a InstanceManager.
|
|
7294
7294
|
* @summary Create a session key.
|
|
7295
7295
|
* @param {CreateSessionRequest} createSessionRequest
|
|
7296
7296
|
* @param {*} [options] Override http request option.
|
|
@@ -7314,7 +7314,7 @@ const SessionsApiFactory = function (configuration, basePath, axios) {
|
|
|
7314
7314
|
return localVarFp.getPlayerSessions(player, limit, skip, order, expand, options).then((request) => request(axios, basePath));
|
|
7315
7315
|
},
|
|
7316
7316
|
/**
|
|
7317
|
-
* Retrieves the details of a
|
|
7317
|
+
* Retrieves the details of a InstanceManager that has previously been created.
|
|
7318
7318
|
* @summary Returns a player session by session id
|
|
7319
7319
|
* @param {string} id Specifies the unique session ID (starts with ses_).
|
|
7320
7320
|
* @param {Array<SessionResponseExpandable>} [expand] Specifies the fields to expand.
|
|
@@ -7356,7 +7356,7 @@ exports.SessionsApiFactory = SessionsApiFactory;
|
|
|
7356
7356
|
*/
|
|
7357
7357
|
class SessionsApi extends base_1.BaseAPI {
|
|
7358
7358
|
/**
|
|
7359
|
-
* Creates a
|
|
7359
|
+
* Creates a InstanceManager.
|
|
7360
7360
|
* @summary Create a session key.
|
|
7361
7361
|
* @param {CreateSessionRequest} createSessionRequest
|
|
7362
7362
|
* @param {*} [options] Override http request option.
|
|
@@ -7382,7 +7382,7 @@ class SessionsApi extends base_1.BaseAPI {
|
|
|
7382
7382
|
return (0, exports.SessionsApiFp)(this.configuration).getPlayerSessions(player, limit, skip, order, expand, options).then((request) => request(this.axios, this.basePath));
|
|
7383
7383
|
}
|
|
7384
7384
|
/**
|
|
7385
|
-
* Retrieves the details of a
|
|
7385
|
+
* Retrieves the details of a InstanceManager that has previously been created.
|
|
7386
7386
|
* @summary Returns a player session by session id
|
|
7387
7387
|
* @param {string} id Specifies the unique session ID (starts with ses_).
|
|
7388
7388
|
* @param {Array<SessionResponseExpandable>} [expand] Specifies the fields to expand.
|