@openfort/openfort-node 0.6.29 → 0.6.31
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/apis/settingsApiWrapper.d.ts +10 -10
- package/dist/apis/settingsApiWrapper.js +13 -13
- package/dist/apis/settingsApiWrapper.js.map +1 -1
- package/dist/generated/apis/AccountsApi.d.ts +8 -8
- package/dist/generated/apis/AccountsApi.js +8 -8
- package/dist/generated/apis/AuthenticationApi.d.ts +3 -0
- package/dist/generated/apis/AuthenticationApi.js +3 -0
- package/dist/generated/apis/AuthenticationApi.js.map +1 -1
- package/dist/generated/apis/ContractsApi.d.ts +1 -1
- package/dist/generated/apis/ContractsApi.js +1 -1
- package/dist/generated/apis/InventoriesApi.d.ts +1 -1
- package/dist/generated/apis/InventoriesApi.js +1 -1
- package/dist/generated/apis/OAuthApi.d.ts +2 -2
- package/dist/generated/apis/OAuthApi.js +2 -2
- package/dist/generated/apis/PlayersApi.d.ts +2 -2
- package/dist/generated/apis/PlayersApi.js +2 -2
- package/dist/generated/apis/SessionsApi.d.ts +1 -1
- package/dist/generated/apis/SessionsApi.js +1 -1
- package/dist/generated/apis/SettingsApi.d.ts +28 -28
- package/dist/generated/apis/SettingsApi.js +53 -53
- package/dist/generated/apis/SettingsApi.js.map +1 -1
- package/dist/generated/apis/TransactionIntentsApi.d.ts +2 -2
- package/dist/generated/apis/TransactionIntentsApi.js +2 -2
- package/dist/generated/apis/Web3ConnectionsApi.d.ts +1 -1
- package/dist/generated/apis/Web3ConnectionsApi.js +1 -1
- package/dist/generated/models/CompleteRecoveryRequest.d.ts +1 -1
- package/dist/generated/models/ContractReadQueries.d.ts +1 -1
- package/dist/generated/models/CreateApiAuthorizedNetworkRequest.d.ts +6 -0
- package/dist/generated/models/CreateApiAuthorizedNetworkRequest.js.map +1 -1
- package/dist/generated/models/CreatePolicyAllowFunctionRequest.d.ts +2 -2
- package/dist/generated/models/CreatePolicyRuleRequest.d.ts +3 -3
- package/dist/generated/models/CreateProjectRequest.d.ts +3 -0
- package/dist/generated/models/CreateProjectRequest.js.map +1 -1
- package/dist/generated/models/CreateTransactionIntentRequest.d.ts +7 -3
- package/dist/generated/models/CreateTransactionIntentRequest.js +10 -4
- package/dist/generated/models/CreateTransactionIntentRequest.js.map +1 -1
- package/dist/generated/models/CreateWeb3ConnectionRequest.d.ts +1 -1
- package/dist/generated/models/DataAccountTypes.d.ts +1 -1
- package/dist/generated/models/{PaymasterDepositorCreateRequest.d.ts → DeveloperAccountCreateRequest.d.ts} +8 -4
- package/dist/generated/models/{PaymasterDepositorCreateRequest.js → DeveloperAccountCreateRequest.js} +15 -9
- package/dist/generated/models/DeveloperAccountCreateRequest.js.map +1 -0
- package/dist/generated/models/{PaymasterDepositorDeleteResponse.d.ts → DeveloperAccountDeleteResponse.d.ts} +3 -3
- package/dist/generated/models/{PaymasterDepositorDeleteResponse.js → DeveloperAccountDeleteResponse.js} +8 -8
- package/dist/generated/models/DeveloperAccountDeleteResponse.js.map +1 -0
- package/dist/generated/models/{PaymasterDepositorGetMessageResponse.d.ts → DeveloperAccountGetMessageResponse.d.ts} +2 -2
- package/dist/generated/models/{PaymasterDepositorGetMessageResponse.js → DeveloperAccountGetMessageResponse.js} +9 -9
- package/dist/generated/models/DeveloperAccountGetMessageResponse.js.map +1 -0
- package/dist/generated/models/{PaymasterDepositorListResponse.d.ts → DeveloperAccountListResponse.d.ts} +3 -3
- package/dist/generated/models/{PaymasterDepositorListResponse.js → DeveloperAccountListResponse.js} +8 -8
- package/dist/generated/models/DeveloperAccountListResponse.js.map +1 -0
- package/dist/generated/models/DeveloperAccountResponse.d.ts +34 -0
- package/dist/generated/models/DeveloperAccountResponse.js +62 -0
- package/dist/generated/models/DeveloperAccountResponse.js.map +1 -0
- package/dist/generated/models/{EntityTypePAYMASTERDEPOSITOR.d.ts → EntityTypeDEVELOPERACCOUNT.d.ts} +1 -1
- package/dist/generated/models/{EntityTypePAYMASTERDEPOSITOR.js → EntityTypeDEVELOPERACCOUNT.js} +1 -1
- package/dist/generated/models/EntityTypeDEVELOPERACCOUNT.js.map +1 -0
- package/dist/generated/models/Interaction.d.ts +6 -6
- package/dist/generated/models/Interaction.js +4 -4
- package/dist/generated/models/Interaction.js.map +1 -1
- package/dist/generated/models/LootLockerOAuthConfig.d.ts +36 -0
- package/dist/generated/models/LootLockerOAuthConfig.js +41 -0
- package/dist/generated/models/LootLockerOAuthConfig.js.map +1 -0
- package/dist/generated/models/OAuthConfig.d.ts +2 -2
- package/dist/generated/models/OAuthConfig.js +1 -1
- package/dist/generated/models/OAuthConfig.js.map +1 -1
- package/dist/generated/models/OAuthProvider.d.ts +1 -1
- package/dist/generated/models/OAuthProviderLOOTLOCKER.d.ts +12 -0
- package/dist/generated/models/OAuthProviderLOOTLOCKER.js +14 -0
- package/dist/generated/models/OAuthProviderLOOTLOCKER.js.map +1 -0
- package/dist/generated/models/ObjectSerializer.d.ts +11 -6
- package/dist/generated/models/ObjectSerializer.js +32 -17
- package/dist/generated/models/ObjectSerializer.js.map +1 -1
- package/dist/generated/models/PlayerResponseTransactionIntentsInner.d.ts +1 -1
- package/dist/generated/models/PolicyStrategyRequest.d.ts +1 -1
- package/dist/generated/models/ProjectStatsRequest.d.ts +29 -0
- package/dist/generated/models/ProjectStatsRequest.js +32 -0
- package/dist/generated/models/ProjectStatsRequest.js.map +1 -0
- package/dist/generated/models/{PaymasterDepositorResponse.d.ts → ProjectStatsResponse.d.ts} +3 -3
- package/dist/generated/models/ProjectStatsResponse.js +32 -0
- package/dist/generated/models/ProjectStatsResponse.js.map +1 -0
- package/dist/generated/models/ProjectWebhookRequest.d.ts +3 -0
- package/dist/generated/models/ProjectWebhookRequest.js.map +1 -1
- package/dist/generated/models/Stat.d.ts +31 -0
- package/dist/generated/models/{PaymasterDepositorResponse.js → Stat.js} +23 -11
- package/dist/generated/models/Stat.js.map +1 -0
- package/dist/generated/models/TransactionIntent.d.ts +1 -1
- package/dist/generated/models/TransactionIntentResponse.d.ts +1 -1
- package/dist/generated/models/UpdatePolicyRuleRequest.d.ts +2 -2
- package/dist/generated/models/UpdateProjectApiKeyRequest.d.ts +3 -0
- package/dist/generated/models/UpdateProjectApiKeyRequest.js.map +1 -1
- package/dist/generated/models/UpdateProjectRequest.d.ts +3 -0
- package/dist/generated/models/UpdateProjectRequest.js.map +1 -1
- package/dist/generated/models/UserProjectCreateRequest.d.ts +3 -0
- package/dist/generated/models/UserProjectCreateRequest.js.map +1 -1
- package/dist/generated/models/UserProjectCreateRequestRole.d.ts +3 -0
- package/dist/generated/models/UserProjectCreateRequestRole.js +3 -0
- package/dist/generated/models/UserProjectCreateRequestRole.js.map +1 -1
- package/dist/generated/models/all.d.ts +11 -6
- package/dist/generated/models/all.js +11 -6
- package/dist/generated/models/all.js.map +1 -1
- package/dist/generated/types/ObjectParamAPI.d.ts +52 -49
- package/dist/generated/types/ObjectParamAPI.js +28 -25
- package/dist/generated/types/ObjectParamAPI.js.map +1 -1
- package/dist/generated/types/ObservableAPI.d.ts +41 -38
- package/dist/generated/types/ObservableAPI.js +44 -41
- package/dist/generated/types/ObservableAPI.js.map +1 -1
- package/dist/generated/types/PromiseAPI.d.ts +41 -38
- package/dist/generated/types/PromiseAPI.js +40 -37
- package/dist/generated/types/PromiseAPI.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/generated/models/EntityTypePAYMASTERDEPOSITOR.js.map +0 -1
- package/dist/generated/models/PaymasterDepositorCreateRequest.js.map +0 -1
- package/dist/generated/models/PaymasterDepositorDeleteResponse.js.map +0 -1
- package/dist/generated/models/PaymasterDepositorGetMessageResponse.js.map +0 -1
- package/dist/generated/models/PaymasterDepositorListResponse.js.map +0 -1
- package/dist/generated/models/PaymasterDepositorResponse.js.map +0 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DeveloperAccountCreateRequest, DeveloperAccountListResponse, DeveloperAccountDeleteResponse } from "../models";
|
|
2
2
|
import { BaseApiWrapper } from "./baseApiWrapper";
|
|
3
3
|
import { SettingsApi } from "../generated";
|
|
4
4
|
export declare class SettingsApiWrapper extends BaseApiWrapper<SettingsApi> {
|
|
5
5
|
constructor(accessToken: string, basePath?: string);
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Create or add a developer account. Developer accounts can be used as for escrow, minting and transferring assets. To add your own external account, add a signature and the address of the account. This verified account can then be used as a verified depositor
|
|
8
8
|
* @param req Parameters to add a depositor address to s project environment
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
createDeveloperAccount(req: DeveloperAccountCreateRequest): Promise<DeveloperAccountCreateRequest>;
|
|
11
11
|
/**
|
|
12
|
-
* Lists the
|
|
12
|
+
* Lists the developer accounts of a project.
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
getDeveloperAccounts(): Promise<DeveloperAccountListResponse>;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* @param id Id of the
|
|
16
|
+
* Delete a developer account from a project.
|
|
17
|
+
* @param id Id of the developer account
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
deleteDeveloperAccount(id: string): Promise<DeveloperAccountDeleteResponse>;
|
|
20
20
|
/**
|
|
21
21
|
* Generate message, which should be signed for verification of the address ownership.
|
|
22
|
-
* @param address Specifies the
|
|
22
|
+
* @param address Specifies the address
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
getVerificationPayload(address: string): Promise<string>;
|
|
25
25
|
/**
|
|
26
26
|
* Creates or updates webhook address in a project environment configuration.
|
|
27
27
|
* @param url Url of the webhook
|
|
@@ -18,31 +18,31 @@ let SettingsApiWrapper = class SettingsApiWrapper extends baseApiWrapper_1.BaseA
|
|
|
18
18
|
super(generated_1.SettingsApi, accessToken, basePath);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Create or add a developer account. Developer accounts can be used as for escrow, minting and transferring assets. To add your own external account, add a signature and the address of the account. This verified account can then be used as a verified depositor
|
|
22
22
|
* @param req Parameters to add a depositor address to s project environment
|
|
23
23
|
*/
|
|
24
|
-
async
|
|
25
|
-
return await this.api.
|
|
24
|
+
async createDeveloperAccount(req) {
|
|
25
|
+
return await this.api.createDeveloperAccount(req);
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
|
-
* Lists the
|
|
28
|
+
* Lists the developer accounts of a project.
|
|
29
29
|
*/
|
|
30
|
-
async
|
|
31
|
-
return await this.api.
|
|
30
|
+
async getDeveloperAccounts() {
|
|
31
|
+
return await this.api.getDeveloperAccounts();
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
35
|
-
* @param id Id of the
|
|
34
|
+
* Delete a developer account from a project.
|
|
35
|
+
* @param id Id of the developer account
|
|
36
36
|
*/
|
|
37
|
-
async
|
|
38
|
-
return await this.api.
|
|
37
|
+
async deleteDeveloperAccount(id) {
|
|
38
|
+
return await this.api.deleteDeveloperAccount(id);
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* Generate message, which should be signed for verification of the address ownership.
|
|
42
|
-
* @param address Specifies the
|
|
42
|
+
* @param address Specifies the address
|
|
43
43
|
*/
|
|
44
|
-
async
|
|
45
|
-
const result = await this.api.
|
|
44
|
+
async getVerificationPayload(address) {
|
|
45
|
+
const result = await this.api.getVerificationPayload(address);
|
|
46
46
|
return result.message;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settingsApiWrapper.js","sourceRoot":"","sources":["../../src/apis/settingsApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"settingsApiWrapper.js","sourceRoot":"","sources":["../../src/apis/settingsApiWrapper.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qDAAkD;AAClD,4CAA2C;AAC3C,oEAAiE;AAG1D,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,+BAA2B;IAC/D,YAAY,WAAmB,EAAE,QAAiB;QAC9C,KAAK,CAAC,uBAAW,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,sBAAsB,CAAC,GAAkC;QAClE,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,oBAAoB;QAC7B,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,oBAAoB,EAAE,CAAC;IACjD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,sBAAsB,CAAC,EAAU;QAC1C,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,sBAAsB,CAAC,OAAe;QAC/C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;QAC9D,OAAO,MAAM,CAAC,OAAO,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,aAAa,CAAC,GAAW;QAClC,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,aAAa;QACtB,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;IAC1C,CAAC;CACJ,CAAA;AAnDY,kBAAkB;IAD9B,mCAAgB;;GACJ,kBAAkB,CAmD9B;AAnDY,gDAAkB"}
|
|
@@ -20,14 +20,14 @@ import { TransferOwnershipRequest } from '../models/TransferOwnershipRequest';
|
|
|
20
20
|
export declare class AccountsApiRequestFactory extends BaseAPIRequestFactory {
|
|
21
21
|
/**
|
|
22
22
|
* This endpoint allows you to cancel a pending transfer of ownership.
|
|
23
|
-
* Cancel request
|
|
23
|
+
* Cancel request to transfer ownership of an account.
|
|
24
24
|
* @param id Specifies the unique account ID.
|
|
25
25
|
* @param cancelTransferOwnershipRequest
|
|
26
26
|
*/
|
|
27
27
|
cancelTransferOwnership(id: string, cancelTransferOwnershipRequest: CancelTransferOwnershipRequest, _options?: Configuration): Promise<RequestContext>;
|
|
28
28
|
/**
|
|
29
29
|
* Complete a recovery process of a recoverable account.
|
|
30
|
-
* @param id Specifies the unique account ID.
|
|
30
|
+
* @param id Specifies the unique account ID (starts with acc_).
|
|
31
31
|
* @param completeRecoveryRequest
|
|
32
32
|
*/
|
|
33
33
|
completeRecovery(id: string, completeRecoveryRequest: CompleteRecoveryRequest, _options?: Configuration): Promise<RequestContext>;
|
|
@@ -40,14 +40,14 @@ export declare class AccountsApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
40
40
|
/**
|
|
41
41
|
* This endpoint can be used to deploy an account that was counterfactually generated.
|
|
42
42
|
* Deploy an account.
|
|
43
|
-
* @param id Specifies the unique account ID.
|
|
43
|
+
* @param id Specifies the unique account ID (starts with acc_).
|
|
44
44
|
* @param deployRequest
|
|
45
45
|
*/
|
|
46
46
|
deployAccount(id: string, deployRequest: DeployRequest, _options?: Configuration): Promise<RequestContext>;
|
|
47
47
|
/**
|
|
48
48
|
* Retrieves the details of an existing account. Supply the unique account ID from either a account creation request or the account list, and Openfort will return the corresponding account information.
|
|
49
49
|
* Get existing account.
|
|
50
|
-
* @param id Specifies the unique account ID.
|
|
50
|
+
* @param id Specifies the unique account ID (starts with acc_).
|
|
51
51
|
* @param expand
|
|
52
52
|
*/
|
|
53
53
|
getAccount(id: string, expand?: Array<AccountResponseExpandable>, _options?: Configuration): Promise<RequestContext>;
|
|
@@ -63,13 +63,13 @@ export declare class AccountsApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
63
63
|
getAccounts(player: string, limit?: number, skip?: number, order?: SortOrder, expand?: Array<AccountResponseExpandable>, _options?: Configuration): Promise<RequestContext>;
|
|
64
64
|
/**
|
|
65
65
|
* This endpoint allows you to perform a request to change the owner of an account. To perform an update on the owner of an account, first you must provide a new owner address. Once requested, the owner must accept to take ownership by calling `acceptOwnership()` in the smart contract account.
|
|
66
|
-
* Request ownership
|
|
66
|
+
* Request transfer ownership of account.
|
|
67
67
|
* @param id Specifies the unique account ID.
|
|
68
68
|
* @param transferOwnershipRequest
|
|
69
69
|
*/
|
|
70
70
|
requestTransferOwnership(id: string, transferOwnershipRequest: TransferOwnershipRequest, _options?: Configuration): Promise<RequestContext>;
|
|
71
71
|
/**
|
|
72
|
-
* Signs the typed data value with types data structure for domain using the EIP-712
|
|
72
|
+
* Signs the typed data value with types data structure for domain using the [EIP-712](https://eips.ethereum.org/EIPS/eip-712) specification.
|
|
73
73
|
* Sign a given payload
|
|
74
74
|
* @param id Specifies the unique account ID.
|
|
75
75
|
* @param signPayloadRequest
|
|
@@ -77,14 +77,14 @@ export declare class AccountsApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
77
77
|
signPayload(id: string, signPayloadRequest: SignPayloadRequest, _options?: Configuration): Promise<RequestContext>;
|
|
78
78
|
/**
|
|
79
79
|
* Start a recovery process of a recoverable account.
|
|
80
|
-
* @param id Specifies the unique account ID.
|
|
80
|
+
* @param id Specifies the unique account ID (starts with acc_).
|
|
81
81
|
* @param startRecoveryRequest
|
|
82
82
|
*/
|
|
83
83
|
startRecovery(id: string, startRecoveryRequest: StartRecoveryRequest, _options?: Configuration): Promise<RequestContext>;
|
|
84
84
|
/**
|
|
85
85
|
* This endpoint updates the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not.
|
|
86
86
|
* Sync account state with the blockchain
|
|
87
|
-
* @param id Specifies the unique account ID.
|
|
87
|
+
* @param id Specifies the unique account ID (starts with acc_).
|
|
88
88
|
*/
|
|
89
89
|
syncAccount(id: string, _options?: Configuration): Promise<RequestContext>;
|
|
90
90
|
}
|
|
@@ -13,7 +13,7 @@ const util_1 = require("../util");
|
|
|
13
13
|
class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
14
14
|
/**
|
|
15
15
|
* This endpoint allows you to cancel a pending transfer of ownership.
|
|
16
|
-
* Cancel request
|
|
16
|
+
* Cancel request to transfer ownership of an account.
|
|
17
17
|
* @param id Specifies the unique account ID.
|
|
18
18
|
* @param cancelTransferOwnershipRequest
|
|
19
19
|
*/
|
|
@@ -54,7 +54,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Complete a recovery process of a recoverable account.
|
|
57
|
-
* @param id Specifies the unique account ID.
|
|
57
|
+
* @param id Specifies the unique account ID (starts with acc_).
|
|
58
58
|
* @param completeRecoveryRequest
|
|
59
59
|
*/
|
|
60
60
|
async completeRecovery(id, completeRecoveryRequest, _options) {
|
|
@@ -130,7 +130,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
130
130
|
/**
|
|
131
131
|
* This endpoint can be used to deploy an account that was counterfactually generated.
|
|
132
132
|
* Deploy an account.
|
|
133
|
-
* @param id Specifies the unique account ID.
|
|
133
|
+
* @param id Specifies the unique account ID (starts with acc_).
|
|
134
134
|
* @param deployRequest
|
|
135
135
|
*/
|
|
136
136
|
async deployAccount(id, deployRequest, _options) {
|
|
@@ -171,7 +171,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
171
171
|
/**
|
|
172
172
|
* Retrieves the details of an existing account. Supply the unique account ID from either a account creation request or the account list, and Openfort will return the corresponding account information.
|
|
173
173
|
* Get existing account.
|
|
174
|
-
* @param id Specifies the unique account ID.
|
|
174
|
+
* @param id Specifies the unique account ID (starts with acc_).
|
|
175
175
|
* @param expand
|
|
176
176
|
*/
|
|
177
177
|
async getAccount(id, expand, _options) {
|
|
@@ -256,7 +256,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
256
256
|
}
|
|
257
257
|
/**
|
|
258
258
|
* This endpoint allows you to perform a request to change the owner of an account. To perform an update on the owner of an account, first you must provide a new owner address. Once requested, the owner must accept to take ownership by calling `acceptOwnership()` in the smart contract account.
|
|
259
|
-
* Request ownership
|
|
259
|
+
* Request transfer ownership of account.
|
|
260
260
|
* @param id Specifies the unique account ID.
|
|
261
261
|
* @param transferOwnershipRequest
|
|
262
262
|
*/
|
|
@@ -296,7 +296,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
296
296
|
return requestContext;
|
|
297
297
|
}
|
|
298
298
|
/**
|
|
299
|
-
* Signs the typed data value with types data structure for domain using the EIP-712
|
|
299
|
+
* Signs the typed data value with types data structure for domain using the [EIP-712](https://eips.ethereum.org/EIPS/eip-712) specification.
|
|
300
300
|
* Sign a given payload
|
|
301
301
|
* @param id Specifies the unique account ID.
|
|
302
302
|
* @param signPayloadRequest
|
|
@@ -338,7 +338,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
338
338
|
}
|
|
339
339
|
/**
|
|
340
340
|
* Start a recovery process of a recoverable account.
|
|
341
|
-
* @param id Specifies the unique account ID.
|
|
341
|
+
* @param id Specifies the unique account ID (starts with acc_).
|
|
342
342
|
* @param startRecoveryRequest
|
|
343
343
|
*/
|
|
344
344
|
async startRecovery(id, startRecoveryRequest, _options) {
|
|
@@ -379,7 +379,7 @@ class AccountsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
379
379
|
/**
|
|
380
380
|
* This endpoint updates the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not.
|
|
381
381
|
* Sync account state with the blockchain
|
|
382
|
-
* @param id Specifies the unique account ID.
|
|
382
|
+
* @param id Specifies the unique account ID (starts with acc_).
|
|
383
383
|
*/
|
|
384
384
|
async syncAccount(id, _options) {
|
|
385
385
|
let _config = _options || this.configuration;
|
|
@@ -10,16 +10,19 @@ import { SignupRequest } from '../models/SignupRequest';
|
|
|
10
10
|
*/
|
|
11
11
|
export declare class AuthenticationApiRequestFactory extends BaseAPIRequestFactory {
|
|
12
12
|
/**
|
|
13
|
+
* When using Openfort Auth, the endpoint authenticates the player based on his email, and returns the jwt token for the player together with the player id.
|
|
13
14
|
* Login a player.
|
|
14
15
|
* @param loginRequest
|
|
15
16
|
*/
|
|
16
17
|
login(loginRequest: LoginRequest, _options?: Configuration): Promise<RequestContext>;
|
|
17
18
|
/**
|
|
19
|
+
* When using Openfort Auth, the endpoint creates a player based on his email, and returns the jwt token for the player together with the player id.
|
|
18
20
|
* Sign up a player.
|
|
19
21
|
* @param signupRequest
|
|
20
22
|
*/
|
|
21
23
|
signup(signupRequest: SignupRequest, _options?: Configuration): Promise<RequestContext>;
|
|
22
24
|
/**
|
|
25
|
+
* When using Openfort Auth, the endpoint verifies the token generated by Openfort Auth and retrieves a corresponding player.
|
|
23
26
|
* Verify an auth token.
|
|
24
27
|
* @param token Specifies the auth token.
|
|
25
28
|
*/
|
|
@@ -12,6 +12,7 @@ const util_1 = require("../util");
|
|
|
12
12
|
*/
|
|
13
13
|
class AuthenticationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
14
14
|
/**
|
|
15
|
+
* When using Openfort Auth, the endpoint authenticates the player based on his email, and returns the jwt token for the player together with the player id.
|
|
15
16
|
* Login a player.
|
|
16
17
|
* @param loginRequest
|
|
17
18
|
*/
|
|
@@ -46,6 +47,7 @@ class AuthenticationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
46
47
|
return requestContext;
|
|
47
48
|
}
|
|
48
49
|
/**
|
|
50
|
+
* When using Openfort Auth, the endpoint creates a player based on his email, and returns the jwt token for the player together with the player id.
|
|
49
51
|
* Sign up a player.
|
|
50
52
|
* @param signupRequest
|
|
51
53
|
*/
|
|
@@ -80,6 +82,7 @@ class AuthenticationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
80
82
|
return requestContext;
|
|
81
83
|
}
|
|
82
84
|
/**
|
|
85
|
+
* When using Openfort Auth, the endpoint verifies the token generated by Openfort Auth and retrieves a corresponding player.
|
|
83
86
|
* Verify an auth token.
|
|
84
87
|
* @param token Specifies the auth token.
|
|
85
88
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthenticationApi.js","sourceRoot":"","sources":["../../../src/generated/apis/AuthenticationApi.ts"],"names":[],"mappings":";;;AAAA,8BAA8B;AAC9B,uCAAmF;AAEnF,uCAAmF;AAGnF,iEAA4D;AAC5D,2CAAyC;AACzC,kCAAsD;AAStD;;GAEG;AACH,MAAa,+BAAgC,SAAQ,+BAAqB;IAEtE
|
|
1
|
+
{"version":3,"file":"AuthenticationApi.js","sourceRoot":"","sources":["../../../src/generated/apis/AuthenticationApi.ts"],"names":[],"mappings":";;;AAAA,8BAA8B;AAC9B,uCAAmF;AAEnF,uCAAmF;AAGnF,iEAA4D;AAC5D,2CAAyC;AACzC,kCAAsD;AAStD;;GAEG;AACH,MAAa,+BAAgC,SAAQ,+BAAqB;IAEtE;;;;OAIG;IACI,KAAK,CAAC,KAAK,CAAC,YAA0B,EAAE,QAAwB;QACnE,IAAI,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC,aAAa,CAAC;QAE7C,oEAAoE;QACpE,IAAI,YAAY,KAAK,IAAI,IAAI,YAAY,KAAK,SAAS,EAAE;YACrD,MAAM,IAAI,uBAAa,CAAC,mBAAmB,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC;SACzE;QAGD,cAAc;QACd,MAAM,YAAY,GAAG,oBAAoB,CAAC;QAE1C,uBAAuB;QACvB,MAAM,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,YAAY,EAAE,iBAAU,CAAC,IAAI,CAAC,CAAC;QAC5F,cAAc,CAAC,cAAc,CAAC,QAAQ,EAAE,6BAA6B,CAAC,CAAA;QAGtE,cAAc;QACd,MAAM,WAAW,GAAG,mCAAgB,CAAC,qBAAqB,CA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,CAAC,cAAc,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;SAC/F;QAED,6EAA6E;QAC7E,IAAI,QAAQ,CAAC,cAAc,IAAI,GAAG,IAAI,QAAQ,CAAC,cAAc,IAAI,GAAG,EAAE;YAClE,MAAM,IAAI,GAAmB,mCAAgB,CAAC,WAAW,CACrD,mCAAgB,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE,WAAW,CAAC,EAC/D,gBAAgB,EAAE,EAAE,CACL,CAAC;YACpB,OAAO,IAAI,CAAC;SACf;QAED,MAAM,IAAI,wBAAY,CAA8B,QAAQ,CAAC,cAAc,EAAE,0BAA0B,EAAE,MAAM,QAAQ,CAAC,YAAY,EAAE,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC9J,CAAC;CAEJ;AArGD,gFAqGC"}
|
|
@@ -47,7 +47,7 @@ export declare class ContractsApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
47
47
|
* Read on chain contract data.
|
|
48
48
|
* @param id Specifies the unique contract ID (starts with con_).
|
|
49
49
|
* @param functionName The function name of the contract.
|
|
50
|
-
* @param functionArgs The function arguments of the contract.
|
|
50
|
+
* @param functionArgs The function arguments of the contract, in string format. Accepts pla_, con_ and acc_ IDs.
|
|
51
51
|
*/
|
|
52
52
|
readContract(id: string, functionName: string, functionArgs?: Array<any>, _options?: Configuration): Promise<RequestContext>;
|
|
53
53
|
/**
|
|
@@ -167,7 +167,7 @@ class ContractsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
167
167
|
* Read on chain contract data.
|
|
168
168
|
* @param id Specifies the unique contract ID (starts with con_).
|
|
169
169
|
* @param functionName The function name of the contract.
|
|
170
|
-
* @param functionArgs The function arguments of the contract.
|
|
170
|
+
* @param functionArgs The function arguments of the contract, in string format. Accepts pla_, con_ and acc_ IDs.
|
|
171
171
|
*/
|
|
172
172
|
async readContract(id, functionName, functionArgs, _options) {
|
|
173
173
|
let _config = _options || this.configuration;
|
|
@@ -20,7 +20,7 @@ export declare class InventoriesApiRequestFactory extends BaseAPIRequestFactory
|
|
|
20
20
|
getAccountCryptoCurrencyInventory(id: string, limit?: number, skip?: number, order?: SortOrder, contractId?: Array<string>, _options?: Configuration): Promise<RequestContext>;
|
|
21
21
|
/**
|
|
22
22
|
* Get inventory of account.
|
|
23
|
-
* @param id Specifies the unique account ID.
|
|
23
|
+
* @param id Specifies the unique account ID (starts with acc_).
|
|
24
24
|
*/
|
|
25
25
|
getAccountInventory(id: string, _options?: Configuration): Promise<RequestContext>;
|
|
26
26
|
/**
|
|
@@ -61,7 +61,7 @@ class InventoriesApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
63
|
* Get inventory of account.
|
|
64
|
-
* @param id Specifies the unique account ID.
|
|
64
|
+
* @param id Specifies the unique account ID (starts with acc_).
|
|
65
65
|
*/
|
|
66
66
|
async getAccountInventory(id, _options) {
|
|
67
67
|
let _config = _options || this.configuration;
|
|
@@ -15,7 +15,7 @@ export declare class OAuthApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
15
15
|
* The endpoint verifies the token generated by OAuth provider, creates or retrieves a player based on his email, and returns the jwt token for the player together with the player id.
|
|
16
16
|
* Authorize player with token.
|
|
17
17
|
* @param provider OAuth provider
|
|
18
|
-
* @param oAuthRequest
|
|
18
|
+
* @param oAuthRequest
|
|
19
19
|
*/
|
|
20
20
|
authorizeWithOAuthToken(provider: OAuthProvider, oAuthRequest: OAuthRequest, _options?: Configuration): Promise<RequestContext>;
|
|
21
21
|
/**
|
|
@@ -52,7 +52,7 @@ export declare class OAuthApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
52
52
|
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
53
53
|
* Retrieve player by token.
|
|
54
54
|
* @param provider OAuth provider
|
|
55
|
-
* @param oAuthRequest
|
|
55
|
+
* @param oAuthRequest
|
|
56
56
|
*/
|
|
57
57
|
verifyOAuthToken(provider: OAuthProvider, oAuthRequest: OAuthRequest, _options?: Configuration): Promise<RequestContext>;
|
|
58
58
|
}
|
|
@@ -15,7 +15,7 @@ class OAuthApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
15
15
|
* The endpoint verifies the token generated by OAuth provider, creates or retrieves a player based on his email, and returns the jwt token for the player together with the player id.
|
|
16
16
|
* Authorize player with token.
|
|
17
17
|
* @param provider OAuth provider
|
|
18
|
-
* @param oAuthRequest
|
|
18
|
+
* @param oAuthRequest
|
|
19
19
|
*/
|
|
20
20
|
async authorizeWithOAuthToken(provider, oAuthRequest, _options) {
|
|
21
21
|
let _config = _options || this.configuration;
|
|
@@ -212,7 +212,7 @@ class OAuthApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
212
212
|
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
213
213
|
* Retrieve player by token.
|
|
214
214
|
* @param provider OAuth provider
|
|
215
|
-
* @param oAuthRequest
|
|
215
|
+
* @param oAuthRequest
|
|
216
216
|
*/
|
|
217
217
|
async verifyOAuthToken(provider, oAuthRequest, _options) {
|
|
218
218
|
let _config = _options || this.configuration;
|
|
@@ -24,7 +24,7 @@ import { TransactionIntentResponse } from '../models/TransactionIntentResponse';
|
|
|
24
24
|
export declare class PlayersApiRequestFactory extends BaseAPIRequestFactory {
|
|
25
25
|
/**
|
|
26
26
|
* This endpoint allows you to cancel a pending transfer of ownership.
|
|
27
|
-
* Cancel request to transfer ownership of
|
|
27
|
+
* Cancel request to transfer ownership of a player.
|
|
28
28
|
* @param id
|
|
29
29
|
* @param playerCancelTransferOwnershipRequest
|
|
30
30
|
*/
|
|
@@ -76,7 +76,7 @@ export declare class PlayersApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
76
76
|
getPlayers(limit?: number, skip?: number, order?: SortOrder, expand?: Array<PlayerResponseExpandable>, name?: string, _options?: Configuration): Promise<RequestContext>;
|
|
77
77
|
/**
|
|
78
78
|
* This endpoint allows you to perform a request to change the owner of an account. To perform an update on the owner of an account, first you must provide a new owner address. Once requested, the owner must accept to take ownership by calling `acceptOwnership()` in the smart contract account.
|
|
79
|
-
* Request transfer ownership of
|
|
79
|
+
* Request transfer ownership of a player.
|
|
80
80
|
* @param id Specifies the unique player ID (starts with pla_).
|
|
81
81
|
* @param playerTransferOwnershipRequest
|
|
82
82
|
*/
|
|
@@ -13,7 +13,7 @@ const util_1 = require("../util");
|
|
|
13
13
|
class PlayersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
14
14
|
/**
|
|
15
15
|
* This endpoint allows you to cancel a pending transfer of ownership.
|
|
16
|
-
* Cancel request to transfer ownership of
|
|
16
|
+
* Cancel request to transfer ownership of a player.
|
|
17
17
|
* @param id
|
|
18
18
|
* @param playerCancelTransferOwnershipRequest
|
|
19
19
|
*/
|
|
@@ -311,7 +311,7 @@ class PlayersApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
311
311
|
}
|
|
312
312
|
/**
|
|
313
313
|
* This endpoint allows you to perform a request to change the owner of an account. To perform an update on the owner of an account, first you must provide a new owner address. Once requested, the owner must accept to take ownership by calling `acceptOwnership()` in the smart contract account.
|
|
314
|
-
* Request transfer ownership of
|
|
314
|
+
* Request transfer ownership of a player.
|
|
315
315
|
* @param id Specifies the unique player ID (starts with pla_).
|
|
316
316
|
* @param playerTransferOwnershipRequest
|
|
317
317
|
*/
|
|
@@ -38,7 +38,7 @@ export declare class SessionsApiRequestFactory extends BaseAPIRequestFactory {
|
|
|
38
38
|
*/
|
|
39
39
|
revokeSession(revokeSessionRequest: RevokeSessionRequest, _options?: Configuration): Promise<RequestContext>;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Send signed userOpHash to create session.
|
|
42
42
|
* @param id Specifies the unique session ID (starts with ses_).
|
|
43
43
|
* @param signatureRequest
|
|
44
44
|
*/
|
|
@@ -164,7 +164,7 @@ class SessionsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
|
164
164
|
return requestContext;
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
|
-
*
|
|
167
|
+
* Send signed userOpHash to create session.
|
|
168
168
|
* @param id Specifies the unique session ID (starts with ses_).
|
|
169
169
|
* @param signatureRequest
|
|
170
170
|
*/
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { BaseAPIRequestFactory } from './baseapi';
|
|
2
2
|
import { Configuration } from '../configuration';
|
|
3
3
|
import { RequestContext, ResponseContext } from '../http/http';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
4
|
+
import { DeveloperAccountCreateRequest } from '../models/DeveloperAccountCreateRequest';
|
|
5
|
+
import { DeveloperAccountDeleteResponse } from '../models/DeveloperAccountDeleteResponse';
|
|
6
|
+
import { DeveloperAccountGetMessageResponse } from '../models/DeveloperAccountGetMessageResponse';
|
|
7
|
+
import { DeveloperAccountListResponse } from '../models/DeveloperAccountListResponse';
|
|
8
|
+
import { DeveloperAccountResponse } from '../models/DeveloperAccountResponse';
|
|
9
9
|
import { SettingsWebhookUpdateRequest } from '../models/SettingsWebhookUpdateRequest';
|
|
10
10
|
/**
|
|
11
11
|
* no description
|
|
12
12
|
*/
|
|
13
13
|
export declare class SettingsApiRequestFactory extends BaseAPIRequestFactory {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* @param
|
|
15
|
+
* Create or add a developer account. Developer accounts can be used as for escrow, minting and transferring assets. To add your own external account, add a signature and the address of the account. This verified account can then be used as a verified depositor
|
|
16
|
+
* Create a developer account.
|
|
17
|
+
* @param developerAccountCreateRequest
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
createDeveloperAccount(developerAccountCreateRequest: DeveloperAccountCreateRequest, _options?: Configuration): Promise<RequestContext>;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* Delete a developer account from the current project.
|
|
22
|
+
* Delete a developer account.
|
|
23
|
+
* @param id Specifies a unique developer account.
|
|
23
24
|
*/
|
|
24
|
-
|
|
25
|
+
deleteDeveloperAccount(id: string, _options?: Configuration): Promise<RequestContext>;
|
|
25
26
|
/**
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* @param address Specifies the paymaster depositor address
|
|
27
|
+
* Retrieve the list of the developer accounts for the current project.
|
|
28
|
+
* List of developer accounts.
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
getDeveloperAccounts(_options?: Configuration): Promise<RequestContext>;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* @param
|
|
32
|
+
* Generate message, which should be signed by the account your want to add as a developer account.
|
|
33
|
+
* Generate message to sign
|
|
34
|
+
* @param address Specifies the address
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
getVerificationPayload(address: string, _options?: Configuration): Promise<RequestContext>;
|
|
37
37
|
/**
|
|
38
38
|
* Updated the current project environment settings by removing the webhook address. After that system will stop sending events of the transaction intent state changes
|
|
39
39
|
* Removes webhook.
|
|
@@ -51,34 +51,34 @@ export declare class SettingsApiResponseProcessor {
|
|
|
51
51
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
52
52
|
* to the expected objects
|
|
53
53
|
*
|
|
54
|
-
* @params response Response returned by the server for a request to
|
|
54
|
+
* @params response Response returned by the server for a request to createDeveloperAccount
|
|
55
55
|
* @throws ApiException if the response code was not in [200, 299]
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
createDeveloperAccount(response: ResponseContext): Promise<DeveloperAccountResponse>;
|
|
58
58
|
/**
|
|
59
59
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
60
60
|
* to the expected objects
|
|
61
61
|
*
|
|
62
|
-
* @params response Response returned by the server for a request to
|
|
62
|
+
* @params response Response returned by the server for a request to deleteDeveloperAccount
|
|
63
63
|
* @throws ApiException if the response code was not in [200, 299]
|
|
64
64
|
*/
|
|
65
|
-
|
|
65
|
+
deleteDeveloperAccount(response: ResponseContext): Promise<DeveloperAccountDeleteResponse>;
|
|
66
66
|
/**
|
|
67
67
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
68
68
|
* to the expected objects
|
|
69
69
|
*
|
|
70
|
-
* @params response Response returned by the server for a request to
|
|
70
|
+
* @params response Response returned by the server for a request to getDeveloperAccounts
|
|
71
71
|
* @throws ApiException if the response code was not in [200, 299]
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
getDeveloperAccounts(response: ResponseContext): Promise<DeveloperAccountListResponse>;
|
|
74
74
|
/**
|
|
75
75
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
76
76
|
* to the expected objects
|
|
77
77
|
*
|
|
78
|
-
* @params response Response returned by the server for a request to
|
|
78
|
+
* @params response Response returned by the server for a request to getVerificationPayload
|
|
79
79
|
* @throws ApiException if the response code was not in [200, 299]
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
getVerificationPayload(response: ResponseContext): Promise<DeveloperAccountGetMessageResponse>;
|
|
82
82
|
/**
|
|
83
83
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
84
84
|
* to the expected objects
|