@openfort/openfort-node 0.6.44 → 0.6.45
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/iamApiWrapper.d.ts +47 -4
- package/dist/apis/iamApiWrapper.js +60 -3
- package/dist/apis/iamApiWrapper.js.map +1 -1
- package/dist/generated/apis/AccountsApi.d.ts +2 -2
- package/dist/generated/apis/AccountsApi.js +2 -2
- package/dist/generated/apis/{OAuthApi.d.ts → AdminAuthenticationApi.d.ts} +59 -26
- package/dist/generated/apis/{OAuthApi.js → AdminAuthenticationApi.js} +189 -87
- package/dist/generated/apis/AdminAuthenticationApi.js.map +1 -0
- package/dist/generated/apis/AuthenticationApi.d.ts +194 -16
- package/dist/generated/apis/AuthenticationApi.js +716 -43
- package/dist/generated/apis/AuthenticationApi.js.map +1 -1
- package/dist/generated/apis/EmbeddedApi.d.ts +78 -0
- package/dist/generated/apis/{PlayersAuthenticationApi.js → EmbeddedApi.js} +136 -60
- package/dist/generated/apis/EmbeddedApi.js.map +1 -0
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.js +2 -4
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/models/AuthPlayerResponse.d.ts +2 -6
- package/dist/generated/models/AuthPlayerResponse.js +3 -27
- package/dist/generated/models/AuthPlayerResponse.js.map +1 -1
- package/dist/generated/models/AuthProvider.d.ts +15 -0
- package/dist/generated/models/AuthProvider.js +14 -0
- package/dist/generated/models/AuthProvider.js.map +1 -0
- package/dist/generated/models/AuthResponse.d.ts +6 -4
- package/dist/generated/models/AuthResponse.js +9 -3
- package/dist/generated/models/AuthResponse.js.map +1 -1
- package/dist/generated/models/AuthSessionResponse.d.ts +34 -0
- package/dist/generated/models/{RetrievePlayerEncryptedKeyResponse.js → AuthSessionResponse.js} +29 -23
- package/dist/generated/models/AuthSessionResponse.js.map +1 -0
- package/dist/generated/models/AuthenticateOAuthRequest.d.ts +33 -0
- package/dist/generated/models/AuthenticateOAuthRequest.js +38 -0
- package/dist/generated/models/AuthenticateOAuthRequest.js.map +1 -0
- package/dist/generated/models/BaseEntityListResponseDeviceResponse.d.ts +35 -0
- package/dist/generated/models/BaseEntityListResponseDeviceResponse.js +62 -0
- package/dist/generated/models/BaseEntityListResponseDeviceResponse.js.map +1 -0
- package/dist/generated/models/BaseEntityListResponseShareResponse.d.ts +35 -0
- package/dist/generated/models/BaseEntityListResponseShareResponse.js +62 -0
- package/dist/generated/models/BaseEntityListResponseShareResponse.js.map +1 -0
- package/dist/generated/models/{RegisterPlayerEncryptedKeyResponse.d.ts → CheckoutSubscriptionRequest.d.ts} +4 -5
- package/dist/generated/models/{RegisterPlayerEncryptedKeyRequest.js → CheckoutSubscriptionRequest.js} +13 -13
- package/dist/generated/models/CheckoutSubscriptionRequest.js.map +1 -0
- package/dist/generated/models/CreateAccountRequest.d.ts +1 -1
- package/dist/generated/models/CreateDeviceRequest.d.ts +31 -0
- package/dist/generated/models/{AuthenticatedPlayerResponse.js → CreateDeviceRequest.js} +9 -9
- package/dist/generated/models/CreateDeviceRequest.js.map +1 -0
- package/dist/generated/models/{RegisterPlayerEncryptedKeyRequest.d.ts → CreateShareRequest.d.ts} +7 -9
- package/dist/generated/models/CreateShareRequest.js +44 -0
- package/dist/generated/models/CreateShareRequest.js.map +1 -0
- package/dist/generated/models/{AuthorizeWithOAuthToken200Response.d.ts → DeprecatedAuthenticatedPlayerResponse.d.ts} +2 -2
- package/dist/generated/models/{AuthorizeWithOAuthToken200Response.js → DeprecatedAuthenticatedPlayerResponse.js} +7 -7
- package/dist/generated/models/DeprecatedAuthenticatedPlayerResponse.js.map +1 -0
- package/dist/generated/models/DeviceListQueries.d.ts +41 -0
- package/dist/generated/models/DeviceListQueries.js +50 -0
- package/dist/generated/models/DeviceListQueries.js.map +1 -0
- package/dist/generated/models/{RetrievePlayerEncryptedKeyResponse.d.ts → DeviceResponse.d.ts} +5 -6
- package/dist/generated/models/{RegisterPlayerEncryptedKeyResponse.js → DeviceResponse.js} +17 -17
- package/dist/generated/models/DeviceResponse.js.map +1 -0
- package/dist/generated/models/EntityTypeDEVICE.d.ts +12 -0
- package/dist/generated/models/EntityTypeDEVICE.js +14 -0
- package/dist/generated/models/EntityTypeDEVICE.js.map +1 -0
- package/dist/generated/models/EntityTypeSHARE.d.ts +12 -0
- package/dist/generated/models/EntityTypeSHARE.js +14 -0
- package/dist/generated/models/EntityTypeSHARE.js.map +1 -0
- package/dist/generated/models/JwtKey.d.ts +34 -0
- package/dist/generated/models/JwtKey.js +68 -0
- package/dist/generated/models/JwtKey.js.map +1 -0
- package/dist/generated/models/JwtKeyResponse.d.ts +29 -0
- package/dist/generated/models/JwtKeyResponse.js +32 -0
- package/dist/generated/models/JwtKeyResponse.js.map +1 -0
- package/dist/generated/models/LinkRequest.d.ts +36 -0
- package/dist/generated/models/LinkRequest.js +41 -0
- package/dist/generated/models/LinkRequest.js.map +1 -0
- package/dist/generated/models/LinkedAccountResponse.d.ts +36 -0
- package/dist/generated/models/LinkedAccountResponse.js +68 -0
- package/dist/generated/models/LinkedAccountResponse.js.map +1 -0
- package/dist/generated/models/{AuthenticatedPlayerResponse.d.ts → LogoutRequest.d.ts} +3 -3
- package/dist/generated/models/LogoutRequest.js +32 -0
- package/dist/generated/models/LogoutRequest.js.map +1 -0
- package/dist/generated/models/OAuthInitRequest.d.ts +33 -0
- package/dist/generated/models/OAuthInitRequest.js +38 -0
- package/dist/generated/models/OAuthInitRequest.js.map +1 -0
- package/dist/generated/models/ObjectSerializer.d.ts +29 -5
- package/dist/generated/models/ObjectSerializer.js +84 -15
- package/dist/generated/models/ObjectSerializer.js.map +1 -1
- package/dist/generated/models/Plan.d.ts +33 -0
- package/dist/generated/models/Plan.js +56 -0
- package/dist/generated/models/Plan.js.map +1 -0
- package/dist/generated/models/PlansResponse.d.ts +29 -0
- package/dist/generated/models/PlansResponse.js +32 -0
- package/dist/generated/models/PlansResponse.js.map +1 -0
- package/dist/generated/models/RefreshTokenRequest.d.ts +31 -0
- package/dist/generated/models/RefreshTokenRequest.js +32 -0
- package/dist/generated/models/RefreshTokenRequest.js.map +1 -0
- package/dist/generated/models/SIWEAuthenticateRequest.d.ts +43 -0
- package/dist/generated/models/SIWEAuthenticateRequest.js +50 -0
- package/dist/generated/models/SIWEAuthenticateRequest.js.map +1 -0
- package/dist/generated/models/SIWEInitResponse.d.ts +33 -0
- package/dist/generated/models/SIWEInitResponse.js +44 -0
- package/dist/generated/models/SIWEInitResponse.js.map +1 -0
- package/dist/generated/models/SIWERequest.d.ts +31 -0
- package/dist/generated/models/SIWERequest.js +32 -0
- package/dist/generated/models/SIWERequest.js.map +1 -0
- package/dist/generated/models/ShareResponse.d.ts +35 -0
- package/dist/generated/models/ShareResponse.js +62 -0
- package/dist/generated/models/ShareResponse.js.map +1 -0
- package/dist/generated/models/ShareType.d.ts +12 -0
- package/dist/generated/models/ShareType.js +14 -0
- package/dist/generated/models/ShareType.js.map +1 -0
- package/dist/generated/models/SubscriptionResponse.d.ts +32 -0
- package/dist/generated/models/SubscriptionResponse.js +50 -0
- package/dist/generated/models/SubscriptionResponse.js.map +1 -0
- package/dist/generated/models/SubscriptionResponsePlan.d.ts +30 -0
- package/dist/generated/models/SubscriptionResponsePlan.js +44 -0
- package/dist/generated/models/SubscriptionResponsePlan.js.map +1 -0
- package/dist/generated/models/all.d.ts +29 -5
- package/dist/generated/models/all.js +29 -5
- package/dist/generated/models/all.js.map +1 -1
- package/dist/generated/types/ObjectParamAPI.d.ts +439 -207
- package/dist/generated/types/ObjectParamAPI.js +233 -137
- package/dist/generated/types/ObjectParamAPI.js.map +1 -1
- package/dist/generated/types/ObservableAPI.d.ts +190 -99
- package/dist/generated/types/ObservableAPI.js +534 -264
- package/dist/generated/types/ObservableAPI.js.map +1 -1
- package/dist/generated/types/PromiseAPI.d.ts +188 -95
- package/dist/generated/types/PromiseAPI.js +270 -154
- package/dist/generated/types/PromiseAPI.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -4
- package/dist/index.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/apis/oauthApiWrapper.d.ts +0 -14
- package/dist/apis/oauthApiWrapper.js +0 -38
- package/dist/apis/oauthApiWrapper.js.map +0 -1
- package/dist/generated/apis/GoogleAuthenticationApi.d.ts +0 -37
- package/dist/generated/apis/GoogleAuthenticationApi.js +0 -118
- package/dist/generated/apis/GoogleAuthenticationApi.js.map +0 -1
- package/dist/generated/apis/OAuthApi.js.map +0 -1
- package/dist/generated/apis/PlayersAuthenticationApi.d.ts +0 -56
- package/dist/generated/apis/PlayersAuthenticationApi.js.map +0 -1
- package/dist/generated/models/AuthenticatedPlayerResponse.js.map +0 -1
- package/dist/generated/models/AuthorizeWithOAuthToken200Response.js.map +0 -1
- package/dist/generated/models/RegisterPlayerEncryptedKeyRequest.js.map +0 -1
- package/dist/generated/models/RegisterPlayerEncryptedKeyResponse.js.map +0 -1
- package/dist/generated/models/RetrievePlayerEncryptedKeyResponse.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PromiseWeb3ConnectionsApi = exports.PromiseTransactionIntentsApi = exports.PromiseSettingsApi = exports.PromiseSessionsApi = exports.PromisePolicyRulesApi = exports.PromisePoliciesApi = exports.
|
|
3
|
+
exports.PromiseWeb3ConnectionsApi = exports.PromiseTransactionIntentsApi = exports.PromiseSettingsApi = exports.PromiseSessionsApi = exports.PromisePolicyRulesApi = exports.PromisePoliciesApi = exports.PromisePlayersApi = exports.PromiseNotificationsApi = exports.PromiseNotificationTriggersApi = exports.PromiseNotificationSubscriptionsApi = exports.PromiseInventoriesApi = exports.PromiseEmbeddedApi = exports.PromiseContractsApi = exports.PromiseAuthenticationApi = exports.PromiseAdminAuthenticationApi = exports.PromiseAccountsApi = void 0;
|
|
4
4
|
const ObservableAPI_1 = require("./ObservableAPI");
|
|
5
5
|
class PromiseAccountsApi {
|
|
6
6
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
@@ -35,7 +35,7 @@ class PromiseAccountsApi {
|
|
|
35
35
|
return result.toPromise();
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
|
-
* This endpoint can be used to deploy
|
|
38
|
+
* This endpoint can be used to deploy a smart contract account that was counterfactually generated.
|
|
39
39
|
* Deploy an account.
|
|
40
40
|
* @param id Specifies the unique account ID (starts with acc_).
|
|
41
41
|
* @param deployRequest
|
|
@@ -55,7 +55,7 @@ class PromiseAccountsApi {
|
|
|
55
55
|
return result.toPromise();
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* 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 10 accounts are shown per page.
|
|
58
|
+
* Returns a list of accounts for the given player. This object represents a player\'s account, which is a blockchain smart account that can be used to interact with the blockchain. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of 10 accounts are shown per page.
|
|
59
59
|
* List accounts of a player.
|
|
60
60
|
* @param player Specifies the unique player ID (starts with pla_)
|
|
61
61
|
* @param limit Specifies the maximum number of records to return.
|
|
@@ -108,43 +108,238 @@ class PromiseAccountsApi {
|
|
|
108
108
|
}
|
|
109
109
|
exports.PromiseAccountsApi = PromiseAccountsApi;
|
|
110
110
|
const ObservableAPI_2 = require("./ObservableAPI");
|
|
111
|
-
class
|
|
111
|
+
class PromiseAdminAuthenticationApi {
|
|
112
112
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
113
|
-
this.api = new ObservableAPI_2.
|
|
113
|
+
this.api = new ObservableAPI_2.ObservableAdminAuthenticationApi(configuration, requestFactory, responseProcessor);
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* @param
|
|
116
|
+
* The endpoint creates oauth configuration for the current project environment.
|
|
117
|
+
* Create oauth configuration.
|
|
118
|
+
* @param body Specifies the oauth provider specific configuration.
|
|
119
119
|
*/
|
|
120
|
-
|
|
121
|
-
const result = this.api.
|
|
120
|
+
createOAuthConfig(body, _options) {
|
|
121
|
+
const result = this.api.createOAuthConfig(body, _options);
|
|
122
122
|
return result.toPromise();
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
* @param
|
|
125
|
+
* Deletes a player auth object. It will delete all linked accounts the player is authenticated with.
|
|
126
|
+
* Deletes a player auth object.
|
|
127
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
128
|
+
*/
|
|
129
|
+
deleteAuthPlayer(id, _options) {
|
|
130
|
+
const result = this.api.deleteAuthPlayer(id, _options);
|
|
131
|
+
return result.toPromise();
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* The endpoint deletes oauth configuration for specified provider for the current project environment.
|
|
135
|
+
* Delete oauth configuration.
|
|
136
|
+
* @param provider Specifies the oauth provider type.
|
|
137
|
+
*/
|
|
138
|
+
deleteOAuthConfig(provider, _options) {
|
|
139
|
+
const result = this.api.deleteOAuthConfig(provider, _options);
|
|
140
|
+
return result.toPromise();
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Retrieves a list of authenticated players. Players have linked accounts and are authenticated with a provider.
|
|
144
|
+
* List authenticated players.
|
|
145
|
+
* @param limit Specifies the maximum number of records to return.
|
|
146
|
+
* @param skip Specifies the offset for the first records to return.
|
|
147
|
+
* @param order Specifies the order in which to sort the results.
|
|
148
|
+
* @param email Specifies the email address of the user.
|
|
149
|
+
*/
|
|
150
|
+
getAuthPlayers(limit, skip, order, email, _options) {
|
|
151
|
+
const result = this.api.getAuthPlayers(limit, skip, order, email, _options);
|
|
152
|
+
return result.toPromise();
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* The endpoint retrieves oauth configuration for specified provider for the current project environment.
|
|
156
|
+
* Get oauth configuration.
|
|
157
|
+
* @param provider Specifies the oauth provider type.
|
|
158
|
+
*/
|
|
159
|
+
getOAuthConfig(provider, _options) {
|
|
160
|
+
const result = this.api.getOAuthConfig(provider, _options);
|
|
161
|
+
return result.toPromise();
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* List configured OAuth methods for the current project environment.
|
|
165
|
+
* List of oauth configurations.
|
|
128
166
|
*/
|
|
129
|
-
|
|
130
|
-
const result = this.api.
|
|
167
|
+
listOAuthConfig(_options) {
|
|
168
|
+
const result = this.api.listOAuthConfig(_options);
|
|
131
169
|
return result.toPromise();
|
|
132
170
|
}
|
|
133
171
|
/**
|
|
134
|
-
*
|
|
135
|
-
* Verify
|
|
172
|
+
* Verifies the token generated by Openfort Auth.
|
|
173
|
+
* Verify auth token.
|
|
136
174
|
* @param token Specifies the auth token.
|
|
137
175
|
*/
|
|
138
176
|
verifyAuthToken(token, _options) {
|
|
139
177
|
const result = this.api.verifyAuthToken(token, _options);
|
|
140
178
|
return result.toPromise();
|
|
141
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
182
|
+
* Retrieve player by oauth token.
|
|
183
|
+
* @param authenticateOAuthRequest
|
|
184
|
+
*/
|
|
185
|
+
verifyOAuth(authenticateOAuthRequest, _options) {
|
|
186
|
+
const result = this.api.verifyOAuth(authenticateOAuthRequest, _options);
|
|
187
|
+
return result.toPromise();
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
191
|
+
* Retrieve player by token.
|
|
192
|
+
* @param provider OAuth provider
|
|
193
|
+
* @param oAuthRequest
|
|
194
|
+
*/
|
|
195
|
+
verifyOAuthToken(provider, oAuthRequest, _options) {
|
|
196
|
+
const result = this.api.verifyOAuthToken(provider, oAuthRequest, _options);
|
|
197
|
+
return result.toPromise();
|
|
198
|
+
}
|
|
142
199
|
}
|
|
143
|
-
exports.
|
|
200
|
+
exports.PromiseAdminAuthenticationApi = PromiseAdminAuthenticationApi;
|
|
144
201
|
const ObservableAPI_3 = require("./ObservableAPI");
|
|
202
|
+
class PromiseAuthenticationApi {
|
|
203
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
204
|
+
this.api = new ObservableAPI_3.ObservableAuthenticationApi(configuration, requestFactory, responseProcessor);
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Authenticate player with oauth token.
|
|
208
|
+
* @param authenticateOAuthRequest
|
|
209
|
+
*/
|
|
210
|
+
authenticateOAuth(authenticateOAuthRequest, _options) {
|
|
211
|
+
const result = this.api.authenticateOAuth(authenticateOAuthRequest, _options);
|
|
212
|
+
return result.toPromise();
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Authenticate player with SIWE
|
|
216
|
+
* @param sIWEAuthenticateRequest
|
|
217
|
+
*/
|
|
218
|
+
authenticateSIWE(sIWEAuthenticateRequest, _options) {
|
|
219
|
+
const result = this.api.authenticateSIWE(sIWEAuthenticateRequest, _options);
|
|
220
|
+
return result.toPromise();
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* 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.
|
|
224
|
+
* Authorize player with token.
|
|
225
|
+
* @param provider OAuth provider
|
|
226
|
+
* @param oAuthRequest
|
|
227
|
+
*/
|
|
228
|
+
authorizeWithOAuthToken(provider, oAuthRequest, _options) {
|
|
229
|
+
const result = this.api.authorizeWithOAuthToken(provider, oAuthRequest, _options);
|
|
230
|
+
return result.toPromise();
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Get the jwks.json file. You can use the jwks.json file to verify the signature of a JWT token issued by Openfort Auth.
|
|
234
|
+
* Get the jwks.json file.
|
|
235
|
+
* @param publishableKey Specifies the project publishable key (starts with pk_).
|
|
236
|
+
*/
|
|
237
|
+
getJwks(publishableKey, _options) {
|
|
238
|
+
const result = this.api.getJwks(publishableKey, _options);
|
|
239
|
+
return result.toPromise();
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Initialize OAuth.
|
|
243
|
+
* @param oAuthInitRequest
|
|
244
|
+
*/
|
|
245
|
+
initOAuth(oAuthInitRequest, _options) {
|
|
246
|
+
const result = this.api.initOAuth(oAuthInitRequest, _options);
|
|
247
|
+
return result.toPromise();
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* Create a challenge to link external wallet to the player.
|
|
251
|
+
* Initialize SIWE.
|
|
252
|
+
* @param sIWERequest
|
|
253
|
+
*/
|
|
254
|
+
initSIWE(sIWERequest, _options) {
|
|
255
|
+
const result = this.api.initSIWE(sIWERequest, _options);
|
|
256
|
+
return result.toPromise();
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Link external wallet.
|
|
260
|
+
* @param sIWEAuthenticateRequest
|
|
261
|
+
*/
|
|
262
|
+
linkSIWE(sIWEAuthenticateRequest, _options) {
|
|
263
|
+
const result = this.api.linkSIWE(sIWEAuthenticateRequest, _options);
|
|
264
|
+
return result.toPromise();
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Authenticate a player based on email and password.
|
|
268
|
+
* Email and password login.
|
|
269
|
+
* @param loginRequest
|
|
270
|
+
*/
|
|
271
|
+
loginEmailPassword(loginRequest, _options) {
|
|
272
|
+
const result = this.api.loginEmailPassword(loginRequest, _options);
|
|
273
|
+
return result.toPromise();
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* When using Openfort Auth, the endpoint logs out the player.
|
|
277
|
+
* Log out a player.
|
|
278
|
+
* @param logoutRequest
|
|
279
|
+
*/
|
|
280
|
+
logout(logoutRequest, _options) {
|
|
281
|
+
const result = this.api.logout(logoutRequest, _options);
|
|
282
|
+
return result.toPromise();
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* Get or create a new session for the player based on the refresh token.
|
|
286
|
+
* Refresh or create auth session.
|
|
287
|
+
* @param refreshTokenRequest
|
|
288
|
+
*/
|
|
289
|
+
refresh(refreshTokenRequest, _options) {
|
|
290
|
+
const result = this.api.refresh(refreshTokenRequest, _options);
|
|
291
|
+
return result.toPromise();
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Create and authenticate a player based on email and password.
|
|
295
|
+
* Email and password signup.
|
|
296
|
+
* @param signupRequest
|
|
297
|
+
*/
|
|
298
|
+
signupEmailPassword(signupRequest, _options) {
|
|
299
|
+
const result = this.api.signupEmailPassword(signupRequest, _options);
|
|
300
|
+
return result.toPromise();
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Unlink OAuth account
|
|
304
|
+
* @param linkRequest
|
|
305
|
+
*/
|
|
306
|
+
unlinkOAuth(linkRequest, _options) {
|
|
307
|
+
const result = this.api.unlinkOAuth(linkRequest, _options);
|
|
308
|
+
return result.toPromise();
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Unlink external wallet.
|
|
312
|
+
* @param sIWERequest
|
|
313
|
+
*/
|
|
314
|
+
unlinkSIWE(sIWERequest, _options) {
|
|
315
|
+
const result = this.api.unlinkSIWE(sIWERequest, _options);
|
|
316
|
+
return result.toPromise();
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
320
|
+
* Retrieve player by oauth token.
|
|
321
|
+
* @param authenticateOAuthRequest
|
|
322
|
+
*/
|
|
323
|
+
verifyOAuth(authenticateOAuthRequest, _options) {
|
|
324
|
+
const result = this.api.verifyOAuth(authenticateOAuthRequest, _options);
|
|
325
|
+
return result.toPromise();
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
329
|
+
* Retrieve player by token.
|
|
330
|
+
* @param provider OAuth provider
|
|
331
|
+
* @param oAuthRequest
|
|
332
|
+
*/
|
|
333
|
+
verifyOAuthToken(provider, oAuthRequest, _options) {
|
|
334
|
+
const result = this.api.verifyOAuthToken(provider, oAuthRequest, _options);
|
|
335
|
+
return result.toPromise();
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
exports.PromiseAuthenticationApi = PromiseAuthenticationApi;
|
|
339
|
+
const ObservableAPI_4 = require("./ObservableAPI");
|
|
145
340
|
class PromiseContractsApi {
|
|
146
341
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
147
|
-
this.api = new
|
|
342
|
+
this.api = new ObservableAPI_4.ObservableContractsApi(configuration, requestFactory, responseProcessor);
|
|
148
343
|
}
|
|
149
344
|
/**
|
|
150
345
|
* Add a new contract to your project in Openfort
|
|
@@ -210,32 +405,58 @@ class PromiseContractsApi {
|
|
|
210
405
|
}
|
|
211
406
|
}
|
|
212
407
|
exports.PromiseContractsApi = PromiseContractsApi;
|
|
213
|
-
const
|
|
214
|
-
class
|
|
408
|
+
const ObservableAPI_5 = require("./ObservableAPI");
|
|
409
|
+
class PromiseEmbeddedApi {
|
|
215
410
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
216
|
-
this.api = new
|
|
411
|
+
this.api = new ObservableAPI_5.ObservableEmbeddedApi(configuration, requestFactory, responseProcessor);
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Creates a new device for a given account. This object represents the device that the account owner uses to store the device share. It has an equivalent auth share and recovery share associated with it.
|
|
415
|
+
* Create a device object.
|
|
416
|
+
* @param createDeviceRequest
|
|
417
|
+
*/
|
|
418
|
+
createDevice(createDeviceRequest, _options) {
|
|
419
|
+
const result = this.api.createDevice(createDeviceRequest, _options);
|
|
420
|
+
return result.toPromise();
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Add the share of for existing device.
|
|
424
|
+
* Create a device share.
|
|
425
|
+
* @param id Specifies the unique device ID (starts with dev_).
|
|
426
|
+
* @param createShareRequest
|
|
427
|
+
*/
|
|
428
|
+
createDeviceShare(id, createShareRequest, _options) {
|
|
429
|
+
const result = this.api.createDeviceShare(id, createShareRequest, _options);
|
|
430
|
+
return result.toPromise();
|
|
217
431
|
}
|
|
218
432
|
/**
|
|
219
|
-
*
|
|
433
|
+
* Retrieves the shares of an existing device.
|
|
434
|
+
* Get existing device shares.
|
|
435
|
+
* @param id Specifies the unique device ID (starts with dev_).
|
|
436
|
+
* @param shareType Specifies the type of the share ID
|
|
220
437
|
*/
|
|
221
|
-
|
|
222
|
-
const result = this.api.
|
|
438
|
+
getDeviceShares(id, shareType, _options) {
|
|
439
|
+
const result = this.api.getDeviceShares(id, shareType, _options);
|
|
223
440
|
return result.toPromise();
|
|
224
441
|
}
|
|
225
442
|
/**
|
|
226
|
-
*
|
|
227
|
-
*
|
|
443
|
+
* Returns a list of devices for the given account. This object represents the devices where the account owner has device share stored. Devices are returned sorted by creation date, with the most recently created devices appearing first. By default, a maximum of 10 devices are shown per page.
|
|
444
|
+
* List devices of account.
|
|
445
|
+
* @param account Specifies the unique account ID (starts with acc_)
|
|
446
|
+
* @param limit Specifies the maximum number of records to return.
|
|
447
|
+
* @param skip Specifies the offset for the first records to return.
|
|
448
|
+
* @param order Specifies the order in which to sort the results.
|
|
228
449
|
*/
|
|
229
|
-
|
|
230
|
-
const result = this.api.
|
|
450
|
+
getDevices(account, limit, skip, order, _options) {
|
|
451
|
+
const result = this.api.getDevices(account, limit, skip, order, _options);
|
|
231
452
|
return result.toPromise();
|
|
232
453
|
}
|
|
233
454
|
}
|
|
234
|
-
exports.
|
|
235
|
-
const
|
|
455
|
+
exports.PromiseEmbeddedApi = PromiseEmbeddedApi;
|
|
456
|
+
const ObservableAPI_6 = require("./ObservableAPI");
|
|
236
457
|
class PromiseInventoriesApi {
|
|
237
458
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
238
|
-
this.api = new
|
|
459
|
+
this.api = new ObservableAPI_6.ObservableInventoriesApi(configuration, requestFactory, responseProcessor);
|
|
239
460
|
}
|
|
240
461
|
/**
|
|
241
462
|
* For development purposes only. Under higher load scenarios, this endpoint may be rate limited.
|
|
@@ -312,10 +533,10 @@ class PromiseInventoriesApi {
|
|
|
312
533
|
}
|
|
313
534
|
}
|
|
314
535
|
exports.PromiseInventoriesApi = PromiseInventoriesApi;
|
|
315
|
-
const
|
|
536
|
+
const ObservableAPI_7 = require("./ObservableAPI");
|
|
316
537
|
class PromiseNotificationSubscriptionsApi {
|
|
317
538
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
318
|
-
this.api = new
|
|
539
|
+
this.api = new ObservableAPI_7.ObservableNotificationSubscriptionsApi(configuration, requestFactory, responseProcessor);
|
|
319
540
|
}
|
|
320
541
|
/**
|
|
321
542
|
* Create a subscription for the provided notification.
|
|
@@ -358,10 +579,10 @@ class PromiseNotificationSubscriptionsApi {
|
|
|
358
579
|
}
|
|
359
580
|
}
|
|
360
581
|
exports.PromiseNotificationSubscriptionsApi = PromiseNotificationSubscriptionsApi;
|
|
361
|
-
const
|
|
582
|
+
const ObservableAPI_8 = require("./ObservableAPI");
|
|
362
583
|
class PromiseNotificationTriggersApi {
|
|
363
584
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
364
|
-
this.api = new
|
|
585
|
+
this.api = new ObservableAPI_8.ObservableNotificationTriggersApi(configuration, requestFactory, responseProcessor);
|
|
365
586
|
}
|
|
366
587
|
/**
|
|
367
588
|
* Create a trigger for the provided notification.
|
|
@@ -404,10 +625,10 @@ class PromiseNotificationTriggersApi {
|
|
|
404
625
|
}
|
|
405
626
|
}
|
|
406
627
|
exports.PromiseNotificationTriggersApi = PromiseNotificationTriggersApi;
|
|
407
|
-
const
|
|
628
|
+
const ObservableAPI_9 = require("./ObservableAPI");
|
|
408
629
|
class PromiseNotificationsApi {
|
|
409
630
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
410
|
-
this.api = new
|
|
631
|
+
this.api = new ObservableAPI_9.ObservableNotificationsApi(configuration, requestFactory, responseProcessor);
|
|
411
632
|
}
|
|
412
633
|
/**
|
|
413
634
|
* Create a notification object.
|
|
@@ -453,78 +674,6 @@ class PromiseNotificationsApi {
|
|
|
453
674
|
}
|
|
454
675
|
}
|
|
455
676
|
exports.PromiseNotificationsApi = PromiseNotificationsApi;
|
|
456
|
-
const ObservableAPI_9 = require("./ObservableAPI");
|
|
457
|
-
class PromiseOAuthApi {
|
|
458
|
-
constructor(configuration, requestFactory, responseProcessor) {
|
|
459
|
-
this.api = new ObservableAPI_9.ObservableOAuthApi(configuration, requestFactory, responseProcessor);
|
|
460
|
-
}
|
|
461
|
-
/**
|
|
462
|
-
* 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.
|
|
463
|
-
* Authorize player with token.
|
|
464
|
-
* @param provider OAuth provider
|
|
465
|
-
* @param oAuthRequest
|
|
466
|
-
*/
|
|
467
|
-
authorizeWithOAuthToken(provider, oAuthRequest, _options) {
|
|
468
|
-
const result = this.api.authorizeWithOAuthToken(provider, oAuthRequest, _options);
|
|
469
|
-
return result.toPromise();
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* The endpoint creates oauth configuration for the current project environment.
|
|
473
|
-
* Create oauth configuration.
|
|
474
|
-
* @param body Specifies the oauth provider specific configuration.
|
|
475
|
-
*/
|
|
476
|
-
createOAuthConfig(body, _options) {
|
|
477
|
-
const result = this.api.createOAuthConfig(body, _options);
|
|
478
|
-
return result.toPromise();
|
|
479
|
-
}
|
|
480
|
-
/**
|
|
481
|
-
* The endpoint deletes oauth configuration for specified provider for the current project environment.
|
|
482
|
-
* Delete oauth configuration.
|
|
483
|
-
* @param provider Specifies the oauth provider type.
|
|
484
|
-
*/
|
|
485
|
-
deleteOAuthConfig(provider, _options) {
|
|
486
|
-
const result = this.api.deleteOAuthConfig(provider, _options);
|
|
487
|
-
return result.toPromise();
|
|
488
|
-
}
|
|
489
|
-
/**
|
|
490
|
-
* The endpoint retrieves oauth configuration for specified provider for the current project environment.
|
|
491
|
-
* Get oauth configuration.
|
|
492
|
-
* @param provider Specifies the oauth provider type.
|
|
493
|
-
*/
|
|
494
|
-
getOAuthConfig(provider, _options) {
|
|
495
|
-
const result = this.api.getOAuthConfig(provider, _options);
|
|
496
|
-
return result.toPromise();
|
|
497
|
-
}
|
|
498
|
-
/**
|
|
499
|
-
* Retrieves the player based on his id in the external provider system.
|
|
500
|
-
* Retrieve player by external id.
|
|
501
|
-
* @param provider OAuth provider
|
|
502
|
-
* @param externalUserId External user id
|
|
503
|
-
*/
|
|
504
|
-
getPlayerByExternalId(provider, externalUserId, _options) {
|
|
505
|
-
const result = this.api.getPlayerByExternalId(provider, externalUserId, _options);
|
|
506
|
-
return result.toPromise();
|
|
507
|
-
}
|
|
508
|
-
/**
|
|
509
|
-
* The endpoint retrieves the list of oauth configurations for the current project environment.
|
|
510
|
-
* List of oauth configurations.
|
|
511
|
-
*/
|
|
512
|
-
listOAuthConfig(_options) {
|
|
513
|
-
const result = this.api.listOAuthConfig(_options);
|
|
514
|
-
return result.toPromise();
|
|
515
|
-
}
|
|
516
|
-
/**
|
|
517
|
-
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
518
|
-
* Retrieve player by token.
|
|
519
|
-
* @param provider OAuth provider
|
|
520
|
-
* @param oAuthRequest
|
|
521
|
-
*/
|
|
522
|
-
verifyOAuthToken(provider, oAuthRequest, _options) {
|
|
523
|
-
const result = this.api.verifyOAuthToken(provider, oAuthRequest, _options);
|
|
524
|
-
return result.toPromise();
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
exports.PromiseOAuthApi = PromiseOAuthApi;
|
|
528
677
|
const ObservableAPI_10 = require("./ObservableAPI");
|
|
529
678
|
class PromisePlayersApi {
|
|
530
679
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
@@ -602,42 +751,9 @@ class PromisePlayersApi {
|
|
|
602
751
|
}
|
|
603
752
|
exports.PromisePlayersApi = PromisePlayersApi;
|
|
604
753
|
const ObservableAPI_11 = require("./ObservableAPI");
|
|
605
|
-
class PromisePlayersAuthenticationApi {
|
|
606
|
-
constructor(configuration, requestFactory, responseProcessor) {
|
|
607
|
-
this.api = new ObservableAPI_11.ObservablePlayersAuthenticationApi(configuration, requestFactory, responseProcessor);
|
|
608
|
-
}
|
|
609
|
-
/**
|
|
610
|
-
* List authenticated players.
|
|
611
|
-
* @param limit Specifies the maximum number of records to return.
|
|
612
|
-
* @param skip Specifies the offset for the first records to return.
|
|
613
|
-
* @param order Specifies the order in which to sort the results.
|
|
614
|
-
* @param email Specifies the email address of the user.
|
|
615
|
-
*/
|
|
616
|
-
getAuthenticatedPlayers(limit, skip, order, email, _options) {
|
|
617
|
-
const result = this.api.getAuthenticatedPlayers(limit, skip, order, email, _options);
|
|
618
|
-
return result.toPromise();
|
|
619
|
-
}
|
|
620
|
-
/**
|
|
621
|
-
* Register a key for the authenticated player.
|
|
622
|
-
* @param registerPlayerEncryptedKeyRequest
|
|
623
|
-
*/
|
|
624
|
-
registerKey(registerPlayerEncryptedKeyRequest, _options) {
|
|
625
|
-
const result = this.api.registerKey(registerPlayerEncryptedKeyRequest, _options);
|
|
626
|
-
return result.toPromise();
|
|
627
|
-
}
|
|
628
|
-
/**
|
|
629
|
-
* Retrieve the key for the authenticated player.
|
|
630
|
-
*/
|
|
631
|
-
retrieveKey(_options) {
|
|
632
|
-
const result = this.api.retrieveKey(_options);
|
|
633
|
-
return result.toPromise();
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
exports.PromisePlayersAuthenticationApi = PromisePlayersAuthenticationApi;
|
|
637
|
-
const ObservableAPI_12 = require("./ObservableAPI");
|
|
638
754
|
class PromisePoliciesApi {
|
|
639
755
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
640
|
-
this.api = new
|
|
756
|
+
this.api = new ObservableAPI_11.ObservablePoliciesApi(configuration, requestFactory, responseProcessor);
|
|
641
757
|
}
|
|
642
758
|
/**
|
|
643
759
|
* Create a policy object.
|
|
@@ -735,10 +851,10 @@ class PromisePoliciesApi {
|
|
|
735
851
|
}
|
|
736
852
|
}
|
|
737
853
|
exports.PromisePoliciesApi = PromisePoliciesApi;
|
|
738
|
-
const
|
|
854
|
+
const ObservableAPI_12 = require("./ObservableAPI");
|
|
739
855
|
class PromisePolicyRulesApi {
|
|
740
856
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
741
|
-
this.api = new
|
|
857
|
+
this.api = new ObservableAPI_12.ObservablePolicyRulesApi(configuration, requestFactory, responseProcessor);
|
|
742
858
|
}
|
|
743
859
|
/**
|
|
744
860
|
* Create a policy rule object.
|
|
@@ -780,10 +896,10 @@ class PromisePolicyRulesApi {
|
|
|
780
896
|
}
|
|
781
897
|
}
|
|
782
898
|
exports.PromisePolicyRulesApi = PromisePolicyRulesApi;
|
|
783
|
-
const
|
|
899
|
+
const ObservableAPI_13 = require("./ObservableAPI");
|
|
784
900
|
class PromiseSessionsApi {
|
|
785
901
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
786
|
-
this.api = new
|
|
902
|
+
this.api = new ObservableAPI_13.ObservableSessionsApi(configuration, requestFactory, responseProcessor);
|
|
787
903
|
}
|
|
788
904
|
/**
|
|
789
905
|
* Creates a Session.
|
|
@@ -836,10 +952,10 @@ class PromiseSessionsApi {
|
|
|
836
952
|
}
|
|
837
953
|
}
|
|
838
954
|
exports.PromiseSessionsApi = PromiseSessionsApi;
|
|
839
|
-
const
|
|
955
|
+
const ObservableAPI_14 = require("./ObservableAPI");
|
|
840
956
|
class PromiseSettingsApi {
|
|
841
957
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
842
|
-
this.api = new
|
|
958
|
+
this.api = new ObservableAPI_14.ObservableSettingsApi(configuration, requestFactory, responseProcessor);
|
|
843
959
|
}
|
|
844
960
|
/**
|
|
845
961
|
* 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
|
|
@@ -910,10 +1026,10 @@ class PromiseSettingsApi {
|
|
|
910
1026
|
}
|
|
911
1027
|
}
|
|
912
1028
|
exports.PromiseSettingsApi = PromiseSettingsApi;
|
|
913
|
-
const
|
|
1029
|
+
const ObservableAPI_15 = require("./ObservableAPI");
|
|
914
1030
|
class PromiseTransactionIntentsApi {
|
|
915
1031
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
916
|
-
this.api = new
|
|
1032
|
+
this.api = new ObservableAPI_15.ObservableTransactionIntentsApi(configuration, requestFactory, responseProcessor);
|
|
917
1033
|
}
|
|
918
1034
|
/**
|
|
919
1035
|
* Creates a TransactionIntent. A pending TransactionIntent has the `response` attribute as undefined. After the TransactionIntent is created and broadcasted to the blockchain, `response` will be populated with the transaction hash and a status (1 success, 0 fail). When using a non-custodial account, a `nextAction` attribute is returned with the `userOperationHash` that must be signed by the owner of the account.
|
|
@@ -972,10 +1088,10 @@ class PromiseTransactionIntentsApi {
|
|
|
972
1088
|
}
|
|
973
1089
|
}
|
|
974
1090
|
exports.PromiseTransactionIntentsApi = PromiseTransactionIntentsApi;
|
|
975
|
-
const
|
|
1091
|
+
const ObservableAPI_16 = require("./ObservableAPI");
|
|
976
1092
|
class PromiseWeb3ConnectionsApi {
|
|
977
1093
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
978
|
-
this.api = new
|
|
1094
|
+
this.api = new ObservableAPI_16.ObservableWeb3ConnectionsApi(configuration, requestFactory, responseProcessor);
|
|
979
1095
|
}
|
|
980
1096
|
/**
|
|
981
1097
|
* This endpoint allows you to create a new web3 connection to your Openfort player. Together with the player ID (pla_), you need to provide a chain ID. The chain to use is required because Openfort needs to make sure the account is deployed, as counterfactual addresses cannot use web3 connections. The `uri` body parameter must contain a [WalletConnect pairing URI](https://specs.walletconnect.com/2.0/specs/clients/core/pairing/pairing-uri).
|