@openfort/openfort-node 0.6.5 → 0.6.8
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/README.md +1 -1
- package/dist/apis/sessionsApiWrapper.js +1 -1
- package/dist/apis/sessionsApiWrapper.js.map +1 -1
- package/dist/apis/transactionIntentsApiWrapper.d.ts +6 -11
- package/dist/apis/transactionIntentsApiWrapper.js +7 -14
- package/dist/apis/transactionIntentsApiWrapper.js.map +1 -1
- package/dist/generated/apis/AccountsApi.d.ts +15 -10
- package/dist/generated/apis/AccountsApi.js +15 -10
- package/dist/generated/apis/AccountsApi.js.map +1 -1
- package/dist/generated/apis/AuthenticationApi.d.ts +4 -1
- package/dist/generated/apis/AuthenticationApi.js +4 -1
- package/dist/generated/apis/AuthenticationApi.js.map +1 -1
- package/dist/generated/apis/ConfigAuthenticationApi.d.ts +1 -1
- package/dist/generated/apis/ConfigAuthenticationApi.js +1 -1
- package/dist/generated/apis/ContractsApi.d.ts +16 -12
- package/dist/generated/apis/ContractsApi.js +17 -13
- package/dist/generated/apis/ContractsApi.js.map +1 -1
- package/dist/generated/apis/GoogleAuthenticationApi.d.ts +3 -1
- package/dist/generated/apis/GoogleAuthenticationApi.js +3 -1
- package/dist/generated/apis/GoogleAuthenticationApi.js.map +1 -1
- package/dist/generated/apis/InventoryApi.d.ts +26 -26
- package/dist/generated/apis/InventoryApi.js +30 -30
- package/dist/generated/apis/InventoryApi.js.map +1 -1
- package/dist/generated/apis/PlayersApi.d.ts +51 -17
- package/dist/generated/apis/PlayersApi.js +157 -19
- package/dist/generated/apis/PlayersApi.js.map +1 -1
- package/dist/generated/apis/PlayersAuthenticationApi.d.ts +5 -4
- package/dist/generated/apis/PlayersAuthenticationApi.js +5 -4
- package/dist/generated/apis/PlayersAuthenticationApi.js.map +1 -1
- package/dist/generated/apis/PoliciesApi.d.ts +24 -20
- package/dist/generated/apis/PoliciesApi.js +25 -21
- package/dist/generated/apis/PoliciesApi.js.map +1 -1
- package/dist/generated/apis/PolicyRulesApi.d.ts +11 -11
- package/dist/generated/apis/PolicyRulesApi.js +11 -11
- package/dist/generated/apis/SessionsApi.d.ts +12 -13
- package/dist/generated/apis/SessionsApi.js +12 -17
- package/dist/generated/apis/SessionsApi.js.map +1 -1
- package/dist/generated/apis/TransactionIntentsApi.d.ts +31 -37
- package/dist/generated/apis/TransactionIntentsApi.js +71 -106
- package/dist/generated/apis/TransactionIntentsApi.js.map +1 -1
- package/dist/generated/models/Account.d.ts +3 -0
- package/dist/generated/models/Account.js +1 -1
- package/dist/generated/models/Account.js.map +1 -1
- package/dist/generated/models/AccountInventoryListQueries.d.ts +6 -0
- package/dist/generated/models/AccountInventoryListQueries.js.map +1 -1
- package/dist/generated/models/AccountListQueries.d.ts +12 -0
- package/dist/generated/models/AccountListQueries.js.map +1 -1
- package/dist/generated/models/AccountResponse.d.ts +3 -0
- package/dist/generated/models/AccountResponse.js +1 -1
- package/dist/generated/models/AccountResponse.js.map +1 -1
- package/dist/generated/models/AuthPlayerListQueries.d.ts +9 -0
- package/dist/generated/models/AuthPlayerListQueries.js.map +1 -1
- package/dist/generated/models/CheckoutRequest.d.ts +1 -1
- package/dist/generated/models/ContractListQueries.d.ts +18 -0
- package/dist/generated/models/ContractListQueries.js +1 -1
- package/dist/generated/models/ContractListQueries.js.map +1 -1
- package/dist/generated/models/ContractPolicyRuleResponseContract.d.ts +3 -0
- package/dist/generated/models/ContractPolicyRuleResponseContract.js +1 -1
- package/dist/generated/models/ContractPolicyRuleResponseContract.js.map +1 -1
- package/dist/generated/models/ContractResponse.d.ts +3 -0
- package/dist/generated/models/ContractResponse.js +1 -1
- package/dist/generated/models/ContractResponse.js.map +1 -1
- package/dist/generated/models/CreateAccountRequest.js +1 -1
- package/dist/generated/models/CreateAccountRequest.js.map +1 -1
- package/dist/generated/models/CreateContractRequest.d.ts +15 -0
- package/dist/generated/models/CreateContractRequest.js.map +1 -1
- package/dist/generated/models/CreatePlayerAccountRequest.js +1 -1
- package/dist/generated/models/CreatePlayerAccountRequest.js.map +1 -1
- package/dist/generated/models/CreatePlayerRequest.d.ts +6 -0
- package/dist/generated/models/CreatePlayerRequest.js.map +1 -1
- package/dist/generated/models/CreatePlayerSessionRequest.d.ts +27 -0
- package/dist/generated/models/CreatePlayerSessionRequest.js.map +1 -1
- package/dist/generated/models/CreatePolicyAllowFunctionRequest.d.ts +15 -0
- package/dist/generated/models/CreatePolicyAllowFunctionRequest.js.map +1 -1
- package/dist/generated/models/CreatePolicyRequest.d.ts +6 -0
- package/dist/generated/models/CreatePolicyRequest.js +1 -1
- package/dist/generated/models/CreatePolicyRequest.js.map +1 -1
- package/dist/generated/models/CreatePolicyRuleRequest.d.ts +18 -0
- package/dist/generated/models/CreatePolicyRuleRequest.js.map +1 -1
- package/dist/generated/models/CreateProjectRequest.d.ts +30 -0
- package/dist/generated/models/{ProjectRequest.js → CreateProjectRequest.js} +8 -8
- package/dist/generated/models/CreateProjectRequest.js.map +1 -0
- package/dist/generated/models/CreateSessionRequest.d.ts +30 -0
- package/dist/generated/models/CreateSessionRequest.js.map +1 -1
- package/dist/generated/models/CreateTransactionIntentRequest.d.ts +19 -0
- package/dist/generated/models/CreateTransactionIntentRequest.js +6 -0
- package/dist/generated/models/CreateTransactionIntentRequest.js.map +1 -1
- package/dist/generated/models/DomainData.d.ts +3 -0
- package/dist/generated/models/DomainData.js +1 -1
- package/dist/generated/models/DomainData.js.map +1 -1
- package/dist/generated/models/EstimateTransactionIntentGasResult.d.ts +58 -0
- package/dist/generated/models/EstimateTransactionIntentGasResult.js +71 -0
- package/dist/generated/models/EstimateTransactionIntentGasResult.js.map +1 -0
- package/dist/generated/models/GasReport.d.ts +2 -1
- package/dist/generated/models/GasReport.js +1 -1
- package/dist/generated/models/GasReport.js.map +1 -1
- package/dist/generated/models/GasReportDataInner.d.ts +35 -0
- package/dist/generated/models/GasReportDataInner.js +62 -0
- package/dist/generated/models/GasReportDataInner.js.map +1 -0
- package/dist/generated/models/{MemberResponse.d.ts → GasReportDataInnerPeriod.d.ts} +3 -3
- package/dist/generated/models/GasReportDataInnerPeriod.js +38 -0
- package/dist/generated/models/GasReportDataInnerPeriod.js.map +1 -0
- package/dist/generated/models/GasReportDataInnerTransactionIntentsInner.d.ts +32 -0
- package/dist/generated/models/GasReportDataInnerTransactionIntentsInner.js +56 -0
- package/dist/generated/models/GasReportDataInnerTransactionIntentsInner.js.map +1 -0
- package/dist/generated/models/Interaction.d.ts +15 -0
- package/dist/generated/models/Interaction.js.map +1 -1
- package/dist/generated/models/Log.d.ts +1 -0
- package/dist/generated/models/Log.js +6 -0
- package/dist/generated/models/Log.js.map +1 -1
- package/dist/generated/models/LoginRequest.d.ts +6 -0
- package/dist/generated/models/LoginRequest.js.map +1 -1
- package/dist/generated/models/Money.d.ts +1 -1
- package/dist/generated/models/ObjectSerializer.d.ts +13 -5
- package/dist/generated/models/ObjectSerializer.js +37 -13
- package/dist/generated/models/ObjectSerializer.js.map +1 -1
- package/dist/generated/models/PlayerCancelTransferOwnershipRequest.js +1 -1
- package/dist/generated/models/PlayerCancelTransferOwnershipRequest.js.map +1 -1
- package/dist/generated/models/PlayerInventoryListQueries.d.ts +12 -0
- package/dist/generated/models/PlayerInventoryListQueries.js +1 -1
- package/dist/generated/models/PlayerInventoryListQueries.js.map +1 -1
- package/dist/generated/models/PlayerInventoryQueries.d.ts +31 -0
- package/dist/generated/models/PlayerInventoryQueries.js +32 -0
- package/dist/generated/models/PlayerInventoryQueries.js.map +1 -0
- package/dist/generated/models/PlayerListQueries.d.ts +12 -0
- package/dist/generated/models/PlayerListQueries.js.map +1 -1
- package/dist/generated/models/PlayerRequest.d.ts +6 -0
- package/dist/generated/models/PlayerRequest.js.map +1 -1
- package/dist/generated/models/PlayerResponseAccountsInner.d.ts +3 -0
- package/dist/generated/models/PlayerResponseAccountsInner.js +1 -1
- package/dist/generated/models/PlayerResponseAccountsInner.js.map +1 -1
- package/dist/generated/models/PlayerResponseTransactionIntentsInner.d.ts +9 -0
- package/dist/generated/models/PlayerResponseTransactionIntentsInner.js +1 -1
- package/dist/generated/models/PlayerResponseTransactionIntentsInner.js.map +1 -1
- package/dist/generated/models/PlayerTransferOwnershipRequest.js +1 -1
- package/dist/generated/models/PlayerTransferOwnershipRequest.js.map +1 -1
- package/dist/generated/models/Policy.d.ts +3 -0
- package/dist/generated/models/Policy.js +1 -1
- package/dist/generated/models/Policy.js.map +1 -1
- package/dist/generated/models/PolicyListQueries.d.ts +18 -0
- package/dist/generated/models/PolicyListQueries.js +1 -1
- package/dist/generated/models/PolicyListQueries.js.map +1 -1
- package/dist/generated/models/PolicyResponse.d.ts +3 -0
- package/dist/generated/models/PolicyResponse.js +1 -1
- package/dist/generated/models/PolicyResponse.js.map +1 -1
- package/dist/generated/models/PolicyRuleListQueries.d.ts +12 -0
- package/dist/generated/models/PolicyRuleListQueries.js.map +1 -1
- package/dist/generated/models/PolicyStrategyRequest.d.ts +6 -0
- package/dist/generated/models/PolicyStrategyRequest.js.map +1 -1
- package/dist/generated/models/{PKPolicy.d.ts → PrivateKeyPolicy.d.ts} +1 -1
- package/dist/generated/models/{PKPolicy.js → PrivateKeyPolicy.js} +1 -1
- package/dist/generated/models/PrivateKeyPolicy.js.map +1 -0
- package/dist/generated/models/ProjectResponse.d.ts +1 -0
- package/dist/generated/models/ProjectResponse.js +6 -0
- package/dist/generated/models/ProjectResponse.js.map +1 -1
- package/dist/generated/models/ProjectWebhookRequest.d.ts +29 -0
- package/dist/generated/models/ProjectWebhookRequest.js +38 -0
- package/dist/generated/models/ProjectWebhookRequest.js.map +1 -0
- package/dist/generated/models/ProviderRequest.d.ts +9 -0
- package/dist/generated/models/ProviderRequest.js.map +1 -1
- package/dist/generated/models/ResponseResponse.d.ts +27 -0
- package/dist/generated/models/ResponseResponse.js +1 -1
- package/dist/generated/models/ResponseResponse.js.map +1 -1
- package/dist/generated/models/RevokeSessionPlayerRequest.d.ts +12 -0
- package/dist/generated/models/RevokeSessionPlayerRequest.js +1 -1
- package/dist/generated/models/RevokeSessionPlayerRequest.js.map +1 -1
- package/dist/generated/models/RevokeSessionRequest.d.ts +15 -0
- package/dist/generated/models/RevokeSessionRequest.js +1 -1
- package/dist/generated/models/RevokeSessionRequest.js.map +1 -1
- package/dist/generated/models/SessionListQueries.d.ts +12 -1
- package/dist/generated/models/SessionListQueries.js +0 -6
- package/dist/generated/models/SessionListQueries.js.map +1 -1
- package/dist/generated/models/SignatureRequest.d.ts +6 -0
- package/dist/generated/models/SignatureRequest.js.map +1 -1
- package/dist/generated/models/SignupRequest.d.ts +12 -0
- package/dist/generated/models/SignupRequest.js.map +1 -1
- package/dist/generated/models/TransactionIntent.d.ts +9 -0
- package/dist/generated/models/TransactionIntent.js +1 -1
- package/dist/generated/models/TransactionIntent.js.map +1 -1
- package/dist/generated/models/TransactionIntentListQueries.d.ts +21 -0
- package/dist/generated/models/TransactionIntentListQueries.js +1 -1
- package/dist/generated/models/TransactionIntentListQueries.js.map +1 -1
- package/dist/generated/models/TransactionIntentResponse.d.ts +11 -2
- package/dist/generated/models/TransactionIntentResponse.js +2 -2
- package/dist/generated/models/TransactionIntentResponse.js.map +1 -1
- package/dist/generated/models/TransactionIntentResponseAccount.d.ts +46 -0
- package/dist/generated/models/TransactionIntentResponseAccount.js +95 -0
- package/dist/generated/models/TransactionIntentResponseAccount.js.map +1 -0
- package/dist/generated/models/TransactionIntentResponsePlayer.d.ts +3 -0
- package/dist/generated/models/TransactionIntentResponsePlayer.js +3 -0
- package/dist/generated/models/TransactionIntentResponsePlayer.js.map +1 -1
- package/dist/generated/models/TransactionIntentResponsePolicy.d.ts +6 -0
- package/dist/generated/models/TransactionIntentResponsePolicy.js +4 -1
- package/dist/generated/models/TransactionIntentResponsePolicy.js.map +1 -1
- package/dist/generated/models/UpdateContractRequest.d.ts +18 -0
- package/dist/generated/models/UpdateContractRequest.js +1 -1
- package/dist/generated/models/UpdateContractRequest.js.map +1 -1
- package/dist/generated/models/UpdatePolicyRequest.d.ts +9 -0
- package/dist/generated/models/UpdatePolicyRequest.js +1 -1
- package/dist/generated/models/UpdatePolicyRequest.js.map +1 -1
- package/dist/generated/models/UpdatePolicyRuleRequest.d.ts +15 -0
- package/dist/generated/models/UpdatePolicyRuleRequest.js.map +1 -1
- package/dist/generated/models/{ProjectRequest.d.ts → UpdateProjectRequest.d.ts} +1 -3
- package/dist/generated/models/{MemberResponse.js → UpdateProjectRequest.js} +10 -10
- package/dist/generated/models/UpdateProjectRequest.js.map +1 -0
- package/dist/generated/models/{MembersResponse.d.ts → UserListResponse.d.ts} +3 -3
- package/dist/generated/models/{MembersResponse.js → UserListResponse.js} +8 -8
- package/dist/generated/models/UserListResponse.js.map +1 -0
- package/dist/generated/models/{ProjectRole.d.ts → UserProjectRole.d.ts} +1 -1
- package/dist/generated/models/{ProjectRole.js → UserProjectRole.js} +1 -1
- package/dist/generated/models/UserProjectRole.js.map +1 -0
- package/dist/generated/models/UserResponse.d.ts +37 -0
- package/dist/generated/models/UserResponse.js +74 -0
- package/dist/generated/models/UserResponse.js.map +1 -0
- package/dist/generated/models/all.d.ts +13 -5
- package/dist/generated/models/all.js +13 -5
- package/dist/generated/models/all.js.map +1 -1
- package/dist/generated/types/ObjectParamAPI.d.ts +208 -152
- package/dist/generated/types/ObjectParamAPI.js +90 -53
- package/dist/generated/types/ObjectParamAPI.js.map +1 -1
- package/dist/generated/types/ObservableAPI.d.ts +175 -137
- package/dist/generated/types/ObservableAPI.js +216 -164
- package/dist/generated/types/ObservableAPI.js.map +1 -1
- package/dist/generated/types/PromiseAPI.d.ts +175 -137
- package/dist/generated/types/PromiseAPI.js +184 -144
- package/dist/generated/types/PromiseAPI.js.map +1 -1
- package/dist/models/index.d.ts +1 -2
- package/dist/models/index.js +0 -2
- package/dist/models/index.js.map +1 -1
- package/dist/models/updateProjectRequest.d.ts +2 -2
- 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/MemberResponse.js.map +0 -1
- package/dist/generated/models/MembersResponse.js.map +0 -1
- package/dist/generated/models/PKPolicy.js.map +0 -1
- package/dist/generated/models/ProjectRequest.js.map +0 -1
- package/dist/generated/models/ProjectRole.js.map +0 -1
- package/dist/models/updateTransactionIntentRequest.d.ts +0 -3
- package/dist/models/updateTransactionIntentRequest.js +0 -3
- package/dist/models/updateTransactionIntentRequest.js.map +0 -1
|
@@ -7,7 +7,8 @@ class PromiseAccountsApi {
|
|
|
7
7
|
this.api = new ObservableAPI_1.ObservableAccountsApi(configuration, requestFactory, responseProcessor);
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* This endpoint allows you to cancel a pending transfer of ownership.
|
|
11
|
+
* Cancel request of ownership transfer of an account.
|
|
11
12
|
* @param id Specifies the unique account ID.
|
|
12
13
|
* @param cancelTransferOwnershipRequest
|
|
13
14
|
*/
|
|
@@ -25,7 +26,8 @@ class PromiseAccountsApi {
|
|
|
25
26
|
return result.toPromise();
|
|
26
27
|
}
|
|
27
28
|
/**
|
|
28
|
-
*
|
|
29
|
+
* This endpoint allows you to add a new account to your Openfort player. Only one account can be active per chain per player.
|
|
30
|
+
* Create an account object.
|
|
29
31
|
* @param createAccountRequest
|
|
30
32
|
*/
|
|
31
33
|
createAccount(createAccountRequest, _options) {
|
|
@@ -34,27 +36,30 @@ class PromiseAccountsApi {
|
|
|
34
36
|
}
|
|
35
37
|
/**
|
|
36
38
|
* 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.
|
|
39
|
+
* Get existing account.
|
|
37
40
|
* @param id Specifies the unique account ID.
|
|
38
|
-
* @param expand
|
|
41
|
+
* @param expand
|
|
39
42
|
*/
|
|
40
43
|
getAccount(id, expand, _options) {
|
|
41
44
|
const result = this.api.getAccount(id, expand, _options);
|
|
42
45
|
return result.toPromise();
|
|
43
46
|
}
|
|
44
47
|
/**
|
|
45
|
-
* Returns a list of accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first.
|
|
46
|
-
*
|
|
47
|
-
* @param
|
|
48
|
-
* @param
|
|
49
|
-
* @param
|
|
50
|
-
* @param
|
|
48
|
+
* Returns a list of accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of ten accounts are shown per page.
|
|
49
|
+
* List accounts of a player.
|
|
50
|
+
* @param player Specifies the unique player ID
|
|
51
|
+
* @param limit Specifies the maximum number of records to return.
|
|
52
|
+
* @param skip Specifies the offset for the first records to return.
|
|
53
|
+
* @param order Specifies the order in which to sort the results.
|
|
54
|
+
* @param expand Specifies the fields to expand in the response.
|
|
51
55
|
*/
|
|
52
56
|
getAccounts(player, limit, skip, order, expand, _options) {
|
|
53
57
|
const result = this.api.getAccounts(player, limit, skip, order, expand, _options);
|
|
54
58
|
return result.toPromise();
|
|
55
59
|
}
|
|
56
60
|
/**
|
|
57
|
-
*
|
|
61
|
+
* 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.
|
|
62
|
+
* Request ownership transfer of an account.
|
|
58
63
|
* @param id Specifies the unique account ID.
|
|
59
64
|
* @param transferOwnershipRequest
|
|
60
65
|
*/
|
|
@@ -96,6 +101,7 @@ class PromiseAuthenticationApi {
|
|
|
96
101
|
this.api = new ObservableAPI_2.ObservableAuthenticationApi(configuration, requestFactory, responseProcessor);
|
|
97
102
|
}
|
|
98
103
|
/**
|
|
104
|
+
* Login a player.
|
|
99
105
|
* @param loginRequest
|
|
100
106
|
*/
|
|
101
107
|
login(loginRequest, _options) {
|
|
@@ -103,6 +109,7 @@ class PromiseAuthenticationApi {
|
|
|
103
109
|
return result.toPromise();
|
|
104
110
|
}
|
|
105
111
|
/**
|
|
112
|
+
* Sign up a player.
|
|
106
113
|
* @param signupRequest
|
|
107
114
|
*/
|
|
108
115
|
signup(signupRequest, _options) {
|
|
@@ -110,7 +117,8 @@ class PromiseAuthenticationApi {
|
|
|
110
117
|
return result.toPromise();
|
|
111
118
|
}
|
|
112
119
|
/**
|
|
113
|
-
*
|
|
120
|
+
* Verify an auth token.
|
|
121
|
+
* @param token Specifies the auth token.
|
|
114
122
|
*/
|
|
115
123
|
verifyAuthToken(token, _options) {
|
|
116
124
|
const result = this.api.verifyAuthToken(token, _options);
|
|
@@ -124,7 +132,7 @@ class PromiseConfigAuthenticationApi {
|
|
|
124
132
|
this.api = new ObservableAPI_3.ObservableConfigAuthenticationApi(configuration, requestFactory, responseProcessor);
|
|
125
133
|
}
|
|
126
134
|
/**
|
|
127
|
-
* Google
|
|
135
|
+
* Configure Google OAuth2.
|
|
128
136
|
* @param providerRequest
|
|
129
137
|
*/
|
|
130
138
|
editProvider(providerRequest, _options) {
|
|
@@ -139,7 +147,8 @@ class PromiseContractsApi {
|
|
|
139
147
|
this.api = new ObservableAPI_4.ObservableContractsApi(configuration, requestFactory, responseProcessor);
|
|
140
148
|
}
|
|
141
149
|
/**
|
|
142
|
-
*
|
|
150
|
+
* Add a new contract to your project in Openfort
|
|
151
|
+
* Create contract object.
|
|
143
152
|
* @param createContractRequest
|
|
144
153
|
*/
|
|
145
154
|
createContract(createContractRequest, _options) {
|
|
@@ -147,15 +156,17 @@ class PromiseContractsApi {
|
|
|
147
156
|
return result.toPromise();
|
|
148
157
|
}
|
|
149
158
|
/**
|
|
159
|
+
* Delete a contract from the project by providing its contract id.
|
|
150
160
|
* Deletes a contract object.
|
|
151
|
-
* @param id
|
|
161
|
+
* @param id Specifies the unique contract ID.
|
|
152
162
|
*/
|
|
153
163
|
deleteContract(id, _options) {
|
|
154
164
|
const result = this.api.deleteContract(id, _options);
|
|
155
165
|
return result.toPromise();
|
|
156
166
|
}
|
|
157
167
|
/**
|
|
158
|
-
*
|
|
168
|
+
* Retrieve a contract by providing their contract id.
|
|
169
|
+
* Get a contract.
|
|
159
170
|
* @param id Specifies the unique contract ID.
|
|
160
171
|
*/
|
|
161
172
|
getContract(id, _options) {
|
|
@@ -163,14 +174,15 @@ class PromiseContractsApi {
|
|
|
163
174
|
return result.toPromise();
|
|
164
175
|
}
|
|
165
176
|
/**
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
* @param
|
|
169
|
-
* @param
|
|
170
|
-
* @param
|
|
171
|
-
* @param
|
|
172
|
-
* @param
|
|
173
|
-
* @param
|
|
177
|
+
* List of all contracts per project. By default, a maximum of ten contracts are shown.
|
|
178
|
+
* List contracts.
|
|
179
|
+
* @param limit Specifies the maximum number of records to return.
|
|
180
|
+
* @param skip Specifies the offset for the first records to return.
|
|
181
|
+
* @param order Specifies the order in which to sort the results.
|
|
182
|
+
* @param name Specifies the name of the contract.
|
|
183
|
+
* @param deleted Specifies whether to include deleted contracts.
|
|
184
|
+
* @param chainId The chain ID of the contract.
|
|
185
|
+
* @param address Specifies the address of the contract.
|
|
174
186
|
*/
|
|
175
187
|
getContracts(limit, skip, order, name, deleted, chainId, address, _options) {
|
|
176
188
|
const result = this.api.getContracts(limit, skip, order, name, deleted, chainId, address, _options);
|
|
@@ -178,7 +190,7 @@ class PromiseContractsApi {
|
|
|
178
190
|
}
|
|
179
191
|
/**
|
|
180
192
|
* Updates a contract object.
|
|
181
|
-
* @param id
|
|
193
|
+
* @param id Specifies the unique contract ID.
|
|
182
194
|
* @param updateContractRequest
|
|
183
195
|
*/
|
|
184
196
|
updateContract(id, updateContractRequest, _options) {
|
|
@@ -193,13 +205,15 @@ class PromiseGoogleAuthenticationApi {
|
|
|
193
205
|
this.api = new ObservableAPI_5.ObservableGoogleAuthenticationApi(configuration, requestFactory, responseProcessor);
|
|
194
206
|
}
|
|
195
207
|
/**
|
|
208
|
+
* Get the google oauth signin url.
|
|
196
209
|
*/
|
|
197
210
|
getSigninUrl(_options) {
|
|
198
211
|
const result = this.api.getSigninUrl(_options);
|
|
199
212
|
return result.toPromise();
|
|
200
213
|
}
|
|
201
214
|
/**
|
|
202
|
-
*
|
|
215
|
+
* Get the google oauth token.
|
|
216
|
+
* @param key Specifies the oauth key.
|
|
203
217
|
*/
|
|
204
218
|
getToken(key, _options) {
|
|
205
219
|
const result = this.api.getToken(key, _options);
|
|
@@ -213,11 +227,11 @@ class PromiseInventoryApi {
|
|
|
213
227
|
this.api = new ObservableAPI_6.ObservableInventoryApi(configuration, requestFactory, responseProcessor);
|
|
214
228
|
}
|
|
215
229
|
/**
|
|
216
|
-
* Retrieves the cryptocurrency assets of an existing account.
|
|
230
|
+
* Retrieves the cryptocurrency assets of an existing account.
|
|
217
231
|
* @param id Specifies the unique account ID.
|
|
218
|
-
* @param limit
|
|
219
|
-
* @param skip
|
|
220
|
-
* @param order
|
|
232
|
+
* @param limit Specifies the maximum number of records to return.
|
|
233
|
+
* @param skip Specifies the offset for the first records to return.
|
|
234
|
+
* @param order Specifies the order in which to sort the results.
|
|
221
235
|
* @param contractId
|
|
222
236
|
*/
|
|
223
237
|
getAccountCryptoCurrencyInventory(id, limit, skip, order, contractId, _options) {
|
|
@@ -225,7 +239,7 @@ class PromiseInventoryApi {
|
|
|
225
239
|
return result.toPromise();
|
|
226
240
|
}
|
|
227
241
|
/**
|
|
228
|
-
*
|
|
242
|
+
* Get inventory of account.
|
|
229
243
|
* @param id Specifies the unique account ID.
|
|
230
244
|
*/
|
|
231
245
|
getAccountInventory(id, _options) {
|
|
@@ -233,7 +247,7 @@ class PromiseInventoryApi {
|
|
|
233
247
|
return result.toPromise();
|
|
234
248
|
}
|
|
235
249
|
/**
|
|
236
|
-
* Retrieves the native asset of an existing account.
|
|
250
|
+
* Retrieves the native asset of an existing account.
|
|
237
251
|
* @param id Specifies the unique account ID.
|
|
238
252
|
*/
|
|
239
253
|
getAccountNativeInventory(id, _options) {
|
|
@@ -241,11 +255,11 @@ class PromiseInventoryApi {
|
|
|
241
255
|
return result.toPromise();
|
|
242
256
|
}
|
|
243
257
|
/**
|
|
244
|
-
* Retrieves the NFT assets of an existing account.
|
|
258
|
+
* Retrieves the NFT assets of an existing account.
|
|
245
259
|
* @param id Specifies the unique account ID.
|
|
246
|
-
* @param limit
|
|
247
|
-
* @param skip
|
|
248
|
-
* @param order
|
|
260
|
+
* @param limit Specifies the maximum number of records to return.
|
|
261
|
+
* @param skip Specifies the offset for the first records to return.
|
|
262
|
+
* @param order Specifies the order in which to sort the results.
|
|
249
263
|
* @param contractId
|
|
250
264
|
*/
|
|
251
265
|
getAccountNftInventory(id, limit, skip, order, contractId, _options) {
|
|
@@ -253,44 +267,44 @@ class PromiseInventoryApi {
|
|
|
253
267
|
return result.toPromise();
|
|
254
268
|
}
|
|
255
269
|
/**
|
|
256
|
-
*
|
|
270
|
+
* Get cryptocurrency list of player.
|
|
257
271
|
* @param id Specifies the unique player ID.
|
|
258
|
-
* @param chainId
|
|
259
|
-
* @param limit
|
|
260
|
-
* @param skip
|
|
261
|
-
* @param order
|
|
262
|
-
* @param contractId
|
|
272
|
+
* @param chainId Filter by chain id.
|
|
273
|
+
* @param limit Specifies the maximum number of records to return.
|
|
274
|
+
* @param skip Specifies the offset for the first records to return.
|
|
275
|
+
* @param order Specifies the order in which to sort the results.
|
|
276
|
+
* @param contractId Filter by contract ID.
|
|
263
277
|
*/
|
|
264
278
|
getPlayerCryptoCurrencyInventory(id, chainId, limit, skip, order, contractId, _options) {
|
|
265
279
|
const result = this.api.getPlayerCryptoCurrencyInventory(id, chainId, limit, skip, order, contractId, _options);
|
|
266
280
|
return result.toPromise();
|
|
267
281
|
}
|
|
268
282
|
/**
|
|
269
|
-
*
|
|
283
|
+
* Get inventory of player.
|
|
270
284
|
* @param id Specifies the unique player ID.
|
|
271
|
-
* @param chainId
|
|
285
|
+
* @param chainId Filter by chain id.
|
|
272
286
|
*/
|
|
273
287
|
getPlayerInventory(id, chainId, _options) {
|
|
274
288
|
const result = this.api.getPlayerInventory(id, chainId, _options);
|
|
275
289
|
return result.toPromise();
|
|
276
290
|
}
|
|
277
291
|
/**
|
|
278
|
-
*
|
|
292
|
+
* Get native token list of player.
|
|
279
293
|
* @param id Specifies the unique player ID.
|
|
280
|
-
* @param chainId
|
|
294
|
+
* @param chainId Filter by chain id.
|
|
281
295
|
*/
|
|
282
296
|
getPlayerNativeInventory(id, chainId, _options) {
|
|
283
297
|
const result = this.api.getPlayerNativeInventory(id, chainId, _options);
|
|
284
298
|
return result.toPromise();
|
|
285
299
|
}
|
|
286
300
|
/**
|
|
287
|
-
*
|
|
301
|
+
* Get NFTs list of player.
|
|
288
302
|
* @param id Specifies the unique player ID.
|
|
289
|
-
* @param chainId
|
|
290
|
-
* @param limit
|
|
291
|
-
* @param skip
|
|
292
|
-
* @param order
|
|
293
|
-
* @param contractId
|
|
303
|
+
* @param chainId Filter by chain id.
|
|
304
|
+
* @param limit Specifies the maximum number of records to return.
|
|
305
|
+
* @param skip Specifies the offset for the first records to return.
|
|
306
|
+
* @param order Specifies the order in which to sort the results.
|
|
307
|
+
* @param contractId Filter by contract ID.
|
|
294
308
|
*/
|
|
295
309
|
getPlayerNftInventory(id, chainId, limit, skip, order, contractId, _options) {
|
|
296
310
|
const result = this.api.getPlayerNftInventory(id, chainId, limit, skip, order, contractId, _options);
|
|
@@ -304,7 +318,8 @@ class PromisePlayersApi {
|
|
|
304
318
|
this.api = new ObservableAPI_7.ObservablePlayersApi(configuration, requestFactory, responseProcessor);
|
|
305
319
|
}
|
|
306
320
|
/**
|
|
307
|
-
*
|
|
321
|
+
* This endpoint allows you to cancel a pending transfer of ownership.
|
|
322
|
+
* Cancel request to transfer ownership of an account.
|
|
308
323
|
* @param id
|
|
309
324
|
* @param playerCancelTransferOwnershipRequest
|
|
310
325
|
*/
|
|
@@ -313,7 +328,8 @@ class PromisePlayersApi {
|
|
|
313
328
|
return result.toPromise();
|
|
314
329
|
}
|
|
315
330
|
/**
|
|
316
|
-
*
|
|
331
|
+
* Add a new player to your player list in Openfort.
|
|
332
|
+
* Create a player object.
|
|
317
333
|
* @param createPlayerRequest
|
|
318
334
|
*/
|
|
319
335
|
createPlayer(createPlayerRequest, _options) {
|
|
@@ -321,7 +337,7 @@ class PromisePlayersApi {
|
|
|
321
337
|
return result.toPromise();
|
|
322
338
|
}
|
|
323
339
|
/**
|
|
324
|
-
*
|
|
340
|
+
* Create account object for a player.
|
|
325
341
|
* @param id Specifies the unique player ID.
|
|
326
342
|
* @param createPlayerAccountRequest
|
|
327
343
|
*/
|
|
@@ -330,7 +346,7 @@ class PromisePlayersApi {
|
|
|
330
346
|
return result.toPromise();
|
|
331
347
|
}
|
|
332
348
|
/**
|
|
333
|
-
*
|
|
349
|
+
* Create session object for a player.
|
|
334
350
|
* @param id Specifies the unique player ID.
|
|
335
351
|
* @param createPlayerSessionRequest
|
|
336
352
|
*/
|
|
@@ -339,37 +355,59 @@ class PromisePlayersApi {
|
|
|
339
355
|
return result.toPromise();
|
|
340
356
|
}
|
|
341
357
|
/**
|
|
342
|
-
* Retrieves the details of an existing player.
|
|
358
|
+
* Retrieves the details of an existing player.
|
|
343
359
|
* @param id Specifies the unique player ID.
|
|
344
|
-
* @param expand
|
|
360
|
+
* @param expand Specifies the expandable fields.
|
|
345
361
|
*/
|
|
346
362
|
getPlayer(id, expand, _options) {
|
|
347
363
|
const result = this.api.getPlayer(id, expand, _options);
|
|
348
364
|
return result.toPromise();
|
|
349
365
|
}
|
|
350
366
|
/**
|
|
351
|
-
*
|
|
352
|
-
* @param id
|
|
353
|
-
* @param expand
|
|
367
|
+
* List of accounts of a player.
|
|
368
|
+
* @param id Specifies the unique player ID.
|
|
369
|
+
* @param expand Specifies the expandable fields.
|
|
354
370
|
*/
|
|
355
371
|
getPlayerAccounts(id, expand, _options) {
|
|
356
372
|
const result = this.api.getPlayerAccounts(id, expand, _options);
|
|
357
373
|
return result.toPromise();
|
|
358
374
|
}
|
|
359
375
|
/**
|
|
360
|
-
*
|
|
361
|
-
*
|
|
362
|
-
* @param
|
|
363
|
-
* @param
|
|
364
|
-
* @param
|
|
365
|
-
* @param
|
|
376
|
+
* By default, a maximum of ten players are shown.
|
|
377
|
+
* List players.
|
|
378
|
+
* @param limit Specifies the maximum number of records to return.
|
|
379
|
+
* @param skip Specifies the offset for the first records to return.
|
|
380
|
+
* @param order Specifies the order in which to sort the results.
|
|
381
|
+
* @param expand Specifies the fields to expand in the response.
|
|
382
|
+
* @param name Filter by player name.
|
|
366
383
|
*/
|
|
367
384
|
getPlayers(limit, skip, order, expand, name, _options) {
|
|
368
385
|
const result = this.api.getPlayers(limit, skip, order, expand, name, _options);
|
|
369
386
|
return result.toPromise();
|
|
370
387
|
}
|
|
371
388
|
/**
|
|
372
|
-
*
|
|
389
|
+
* This endpoint allows you to cancel a pending transfer of ownership.
|
|
390
|
+
* Cancel request to transfer ownership of an account.
|
|
391
|
+
* @param id
|
|
392
|
+
* @param playerCancelTransferOwnershipRequest
|
|
393
|
+
*/
|
|
394
|
+
obsoleteCancelTransferAccountOwnership(id, playerCancelTransferOwnershipRequest, _options) {
|
|
395
|
+
const result = this.api.obsoleteCancelTransferAccountOwnership(id, playerCancelTransferOwnershipRequest, _options);
|
|
396
|
+
return result.toPromise();
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* 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.
|
|
400
|
+
* Request transfer ownership of account.
|
|
401
|
+
* @param id Specifies the unique player ID.
|
|
402
|
+
* @param playerTransferOwnershipRequest
|
|
403
|
+
*/
|
|
404
|
+
obsoleteRequestTransferAccountOwnership(id, playerTransferOwnershipRequest, _options) {
|
|
405
|
+
const result = this.api.obsoleteRequestTransferAccountOwnership(id, playerTransferOwnershipRequest, _options);
|
|
406
|
+
return result.toPromise();
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* 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.
|
|
410
|
+
* Request transfer ownership of account.
|
|
373
411
|
* @param id Specifies the unique player ID.
|
|
374
412
|
* @param playerTransferOwnershipRequest
|
|
375
413
|
*/
|
|
@@ -378,7 +416,7 @@ class PromisePlayersApi {
|
|
|
378
416
|
return result.toPromise();
|
|
379
417
|
}
|
|
380
418
|
/**
|
|
381
|
-
*
|
|
419
|
+
* Revoke session object for a player.
|
|
382
420
|
* @param id Specifies the unique player ID.
|
|
383
421
|
* @param revokeSessionPlayerRequest
|
|
384
422
|
*/
|
|
@@ -403,10 +441,11 @@ class PromisePlayersAuthenticationApi {
|
|
|
403
441
|
this.api = new ObservableAPI_8.ObservablePlayersAuthenticationApi(configuration, requestFactory, responseProcessor);
|
|
404
442
|
}
|
|
405
443
|
/**
|
|
406
|
-
*
|
|
407
|
-
* @param
|
|
408
|
-
* @param
|
|
409
|
-
* @param
|
|
444
|
+
* List authenticated players.
|
|
445
|
+
* @param limit Specifies the maximum number of records to return.
|
|
446
|
+
* @param skip Specifies the offset for the first records to return.
|
|
447
|
+
* @param order Specifies the order in which to sort the results.
|
|
448
|
+
* @param email Specifies the email address of the user.
|
|
410
449
|
*/
|
|
411
450
|
getAuthenticatedPlayers(limit, skip, order, email, _options) {
|
|
412
451
|
const result = this.api.getAuthenticatedPlayers(limit, skip, order, email, _options);
|
|
@@ -420,7 +459,7 @@ class PromisePoliciesApi {
|
|
|
420
459
|
this.api = new ObservableAPI_9.ObservablePoliciesApi(configuration, requestFactory, responseProcessor);
|
|
421
460
|
}
|
|
422
461
|
/**
|
|
423
|
-
*
|
|
462
|
+
* Create a policy object.
|
|
424
463
|
* @param createPolicyRequest
|
|
425
464
|
*/
|
|
426
465
|
createPolicy(createPolicyRequest, _options) {
|
|
@@ -428,7 +467,8 @@ class PromisePoliciesApi {
|
|
|
428
467
|
return result.toPromise();
|
|
429
468
|
}
|
|
430
469
|
/**
|
|
431
|
-
*
|
|
470
|
+
* Create a policy rule object for a policy.
|
|
471
|
+
* @param id Specifies the unique policy ID.
|
|
432
472
|
* @param createPolicyAllowFunctionRequest
|
|
433
473
|
*/
|
|
434
474
|
createPolicyAllowFunction(id, createPolicyAllowFunctionRequest, _options) {
|
|
@@ -436,54 +476,56 @@ class PromisePoliciesApi {
|
|
|
436
476
|
return result.toPromise();
|
|
437
477
|
}
|
|
438
478
|
/**
|
|
439
|
-
*
|
|
440
|
-
* @param id
|
|
479
|
+
* Delete a policy object.
|
|
480
|
+
* @param id Specifies the unique policy ID.
|
|
441
481
|
*/
|
|
442
482
|
deletePolicy(id, _options) {
|
|
443
483
|
const result = this.api.deletePolicy(id, _options);
|
|
444
484
|
return result.toPromise();
|
|
445
485
|
}
|
|
446
486
|
/**
|
|
447
|
-
*
|
|
448
|
-
* @param limit
|
|
449
|
-
* @param skip
|
|
450
|
-
* @param order
|
|
451
|
-
* @param expand
|
|
452
|
-
* @param name
|
|
453
|
-
* @param deleted
|
|
454
|
-
* @param chainId
|
|
487
|
+
* List policies.
|
|
488
|
+
* @param limit Specifies the maximum number of records to return.
|
|
489
|
+
* @param skip Specifies the offset for the first records to return.
|
|
490
|
+
* @param order Specifies the order in which to sort the results.
|
|
491
|
+
* @param expand Specifies the fields to expand in the response.
|
|
492
|
+
* @param name Specifies the name of the policy.
|
|
493
|
+
* @param deleted Specifies whether to include deleted contracts.
|
|
494
|
+
* @param chainId The chain ID of the policy.
|
|
455
495
|
*/
|
|
456
496
|
getPolicies(limit, skip, order, expand, name, deleted, chainId, _options) {
|
|
457
497
|
const result = this.api.getPolicies(limit, skip, order, expand, name, deleted, chainId, _options);
|
|
458
498
|
return result.toPromise();
|
|
459
499
|
}
|
|
460
500
|
/**
|
|
461
|
-
*
|
|
462
|
-
* @param id
|
|
463
|
-
* @param expand
|
|
501
|
+
* Get a policy object.
|
|
502
|
+
* @param id Specifies the unique policy ID.
|
|
503
|
+
* @param expand Specifies the fields to expand.
|
|
464
504
|
*/
|
|
465
505
|
getPolicy(id, expand, _options) {
|
|
466
506
|
const result = this.api.getPolicy(id, expand, _options);
|
|
467
507
|
return result.toPromise();
|
|
468
508
|
}
|
|
469
509
|
/**
|
|
470
|
-
*
|
|
471
|
-
* @param
|
|
510
|
+
* List policy rules of a policy.
|
|
511
|
+
* @param id Specifies the unique policy ID.
|
|
512
|
+
* @param expand Specifies the fields to expand.
|
|
472
513
|
*/
|
|
473
514
|
getPolicyAllowFunctions(id, expand, _options) {
|
|
474
515
|
const result = this.api.getPolicyAllowFunctions(id, expand, _options);
|
|
475
516
|
return result.toPromise();
|
|
476
517
|
}
|
|
477
518
|
/**
|
|
478
|
-
*
|
|
519
|
+
* List all gas reports of a policy.
|
|
520
|
+
* @param id Specifies the unique policy ID.
|
|
479
521
|
*/
|
|
480
522
|
getPolicyTotalGasUsage(id, _options) {
|
|
481
523
|
const result = this.api.getPolicyTotalGasUsage(id, _options);
|
|
482
524
|
return result.toPromise();
|
|
483
525
|
}
|
|
484
526
|
/**
|
|
485
|
-
*
|
|
486
|
-
* @param id
|
|
527
|
+
* Update a policy object.
|
|
528
|
+
* @param id Specifies the unique policy ID.
|
|
487
529
|
* @param updatePolicyRequest
|
|
488
530
|
*/
|
|
489
531
|
updatePolicy(id, updatePolicyRequest, _options) {
|
|
@@ -491,6 +533,7 @@ class PromisePoliciesApi {
|
|
|
491
533
|
return result.toPromise();
|
|
492
534
|
}
|
|
493
535
|
/**
|
|
536
|
+
* Update a policy rule object of a policy.
|
|
494
537
|
* @param policy
|
|
495
538
|
* @param policyRule
|
|
496
539
|
* @param updatePolicyRuleRequest
|
|
@@ -507,7 +550,7 @@ class PromisePolicyRulesApi {
|
|
|
507
550
|
this.api = new ObservableAPI_10.ObservablePolicyRulesApi(configuration, requestFactory, responseProcessor);
|
|
508
551
|
}
|
|
509
552
|
/**
|
|
510
|
-
*
|
|
553
|
+
* Create a policy rule object.
|
|
511
554
|
* @param createPolicyRuleRequest
|
|
512
555
|
*/
|
|
513
556
|
createPolicyRules(createPolicyRuleRequest, _options) {
|
|
@@ -515,28 +558,28 @@ class PromisePolicyRulesApi {
|
|
|
515
558
|
return result.toPromise();
|
|
516
559
|
}
|
|
517
560
|
/**
|
|
518
|
-
* Deletes
|
|
519
|
-
* @param id
|
|
561
|
+
* Deletes a policy rule object.
|
|
562
|
+
* @param id Specifies the unique policy rule ID.
|
|
520
563
|
*/
|
|
521
564
|
deletePolicyRules(id, _options) {
|
|
522
565
|
const result = this.api.deletePolicyRules(id, _options);
|
|
523
566
|
return result.toPromise();
|
|
524
567
|
}
|
|
525
568
|
/**
|
|
526
|
-
*
|
|
527
|
-
* @param policy
|
|
528
|
-
* @param limit
|
|
529
|
-
* @param skip
|
|
530
|
-
* @param order
|
|
531
|
-
* @param expand
|
|
569
|
+
* List policy rules of a policy.
|
|
570
|
+
* @param policy Specifies the unique policy ID.
|
|
571
|
+
* @param limit Specifies the maximum number of records to return.
|
|
572
|
+
* @param skip Specifies the offset for the first records to return.
|
|
573
|
+
* @param order Specifies the order in which to sort the results.
|
|
574
|
+
* @param expand Specifies the fields to expand in the response.
|
|
532
575
|
*/
|
|
533
576
|
getPolicyRules(policy, limit, skip, order, expand, _options) {
|
|
534
577
|
const result = this.api.getPolicyRules(policy, limit, skip, order, expand, _options);
|
|
535
578
|
return result.toPromise();
|
|
536
579
|
}
|
|
537
580
|
/**
|
|
538
|
-
*
|
|
539
|
-
* @param id Specifies the unique
|
|
581
|
+
* Update a policy rule object.
|
|
582
|
+
* @param id Specifies the unique policy rule ID.
|
|
540
583
|
* @param updatePolicyRuleRequest
|
|
541
584
|
*/
|
|
542
585
|
updatePolicyRules(id, updatePolicyRuleRequest, _options) {
|
|
@@ -551,7 +594,7 @@ class PromiseSessionsApi {
|
|
|
551
594
|
this.api = new ObservableAPI_11.ObservableSessionsApi(configuration, requestFactory, responseProcessor);
|
|
552
595
|
}
|
|
553
596
|
/**
|
|
554
|
-
*
|
|
597
|
+
* Create a session key.
|
|
555
598
|
* @param createSessionRequest
|
|
556
599
|
*/
|
|
557
600
|
createSession(createSessionRequest, _options) {
|
|
@@ -559,29 +602,28 @@ class PromiseSessionsApi {
|
|
|
559
602
|
return result.toPromise();
|
|
560
603
|
}
|
|
561
604
|
/**
|
|
562
|
-
*
|
|
563
|
-
* @param player
|
|
564
|
-
* @param limit
|
|
565
|
-
* @param skip
|
|
566
|
-
* @param order
|
|
567
|
-
* @param expand
|
|
568
|
-
* @param address
|
|
605
|
+
* List session keys of a player.
|
|
606
|
+
* @param player The player ID
|
|
607
|
+
* @param limit Specifies the maximum number of records to return.
|
|
608
|
+
* @param skip Specifies the offset for the first records to return.
|
|
609
|
+
* @param order Specifies the order in which to sort the results.
|
|
610
|
+
* @param expand Specifies the fields to expand in the response.
|
|
569
611
|
*/
|
|
570
|
-
getPlayerSessions(player, limit, skip, order, expand,
|
|
571
|
-
const result = this.api.getPlayerSessions(player, limit, skip, order, expand,
|
|
612
|
+
getPlayerSessions(player, limit, skip, order, expand, _options) {
|
|
613
|
+
const result = this.api.getPlayerSessions(player, limit, skip, order, expand, _options);
|
|
572
614
|
return result.toPromise();
|
|
573
615
|
}
|
|
574
616
|
/**
|
|
575
617
|
* Returns a player session by session id
|
|
576
|
-
* @param id
|
|
577
|
-
* @param expand
|
|
618
|
+
* @param id Specifies the unique session ID.
|
|
619
|
+
* @param expand Specifies the fields to expand.
|
|
578
620
|
*/
|
|
579
621
|
getSession(id, expand, _options) {
|
|
580
622
|
const result = this.api.getSession(id, expand, _options);
|
|
581
623
|
return result.toPromise();
|
|
582
624
|
}
|
|
583
625
|
/**
|
|
584
|
-
*
|
|
626
|
+
* Revoke the session session key.
|
|
585
627
|
* @param revokeSessionRequest
|
|
586
628
|
*/
|
|
587
629
|
revokeSession(revokeSessionRequest, _options) {
|
|
@@ -590,7 +632,7 @@ class PromiseSessionsApi {
|
|
|
590
632
|
}
|
|
591
633
|
/**
|
|
592
634
|
* Confirms the creation of a session with an external owner.
|
|
593
|
-
* @param id
|
|
635
|
+
* @param id Specifies the unique session ID.
|
|
594
636
|
* @param signatureRequest
|
|
595
637
|
*/
|
|
596
638
|
signatureSession(id, signatureRequest, _options) {
|
|
@@ -605,7 +647,8 @@ class PromiseTransactionIntentsApi {
|
|
|
605
647
|
this.api = new ObservableAPI_12.ObservableTransactionIntentsApi(configuration, requestFactory, responseProcessor);
|
|
606
648
|
}
|
|
607
649
|
/**
|
|
608
|
-
*
|
|
650
|
+
* Retrieve a transaction intent by providing their id on Openfort. Transaction intents that have not been processed yet, have the `response` attribute as undefined.
|
|
651
|
+
* Create a transaction intent object.
|
|
609
652
|
* @param createTransactionIntentRequest
|
|
610
653
|
*/
|
|
611
654
|
createTransactionIntent(createTransactionIntentRequest, _options) {
|
|
@@ -613,51 +656,48 @@ class PromiseTransactionIntentsApi {
|
|
|
613
656
|
return result.toPromise();
|
|
614
657
|
}
|
|
615
658
|
/**
|
|
616
|
-
*
|
|
617
|
-
*
|
|
618
|
-
* @param
|
|
659
|
+
* Estimate the gas cost of creating a transaction intent and putting it onchain.
|
|
660
|
+
* Estimate gas cost of creating a transaction
|
|
661
|
+
* @param createTransactionIntentRequest
|
|
662
|
+
*/
|
|
663
|
+
estimateTransactionIntentCost(createTransactionIntentRequest, _options) {
|
|
664
|
+
const result = this.api.estimateTransactionIntentCost(createTransactionIntentRequest, _options);
|
|
665
|
+
return result.toPromise();
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* Get a transaction intent object.
|
|
669
|
+
* @param id Specifies the unique transaction intent ID.
|
|
670
|
+
* @param expand Specifies the expandable fields.
|
|
619
671
|
*/
|
|
620
672
|
getTransactionIntent(id, expand, _options) {
|
|
621
673
|
const result = this.api.getTransactionIntent(id, expand, _options);
|
|
622
674
|
return result.toPromise();
|
|
623
675
|
}
|
|
624
676
|
/**
|
|
625
|
-
*
|
|
626
|
-
* @param limit
|
|
627
|
-
* @param skip
|
|
628
|
-
* @param order
|
|
629
|
-
* @param expand
|
|
630
|
-
* @param chainId
|
|
631
|
-
* @param accountId
|
|
632
|
-
* @param playerId
|
|
633
|
-
* @param policyId
|
|
677
|
+
* List transaction intents.
|
|
678
|
+
* @param limit Specifies the maximum number of records to return.
|
|
679
|
+
* @param skip Specifies the offset for the first records to return.
|
|
680
|
+
* @param order Specifies the order in which to sort the results.
|
|
681
|
+
* @param expand Specifies the fields to expand in the response.
|
|
682
|
+
* @param chainId The chain ID.
|
|
683
|
+
* @param accountId Filter by account ID.
|
|
684
|
+
* @param playerId Filter by player ID.
|
|
685
|
+
* @param policyId Filter by policy ID.
|
|
634
686
|
*/
|
|
635
687
|
getTransactionIntents(limit, skip, order, expand, chainId, accountId, playerId, policyId, _options) {
|
|
636
688
|
const result = this.api.getTransactionIntents(limit, skip, order, expand, chainId, accountId, playerId, policyId, _options);
|
|
637
689
|
return result.toPromise();
|
|
638
690
|
}
|
|
639
691
|
/**
|
|
692
|
+
* This endpoint is used to put a userOperationHash signature on-chain. This means players that have informed (and use) an [externally-owned account (EOA)](https://ethereum.org/en/developers/docs/accounts/) to authorize operations, such as registering a session key, for their gaming accounts. Given that players with non-custodial accounts are the only ones in possession of the private key, they must sign the information inside the `nextAction` value received from the `POST` API endpoint that creates a transaction_intent, even with their session-keys. Once signed, the client needs to send the signed message using the `/signature` endpoint or use one of the available client-side libraries to do so.
|
|
640
693
|
* Confirms the creation of a transaction intent with an external owner.
|
|
641
|
-
* @param id
|
|
694
|
+
* @param id Specifies the unique transaction intent ID.
|
|
642
695
|
* @param signatureRequest
|
|
643
696
|
*/
|
|
644
697
|
signature(id, signatureRequest, _options) {
|
|
645
698
|
const result = this.api.signature(id, signatureRequest, _options);
|
|
646
699
|
return result.toPromise();
|
|
647
700
|
}
|
|
648
|
-
/**
|
|
649
|
-
* @param id
|
|
650
|
-
*/
|
|
651
|
-
updateTransactionIntentResponse(id, _options) {
|
|
652
|
-
const result = this.api.updateTransactionIntentResponse(id, _options);
|
|
653
|
-
return result.toPromise();
|
|
654
|
-
}
|
|
655
|
-
/**
|
|
656
|
-
*/
|
|
657
|
-
updateTransactionIntentsResponse(_options) {
|
|
658
|
-
const result = this.api.updateTransactionIntentsResponse(_options);
|
|
659
|
-
return result.toPromise();
|
|
660
|
-
}
|
|
661
701
|
}
|
|
662
702
|
exports.PromiseTransactionIntentsApi = PromiseTransactionIntentsApi;
|
|
663
703
|
//# sourceMappingURL=PromiseAPI.js.map
|