@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.
Files changed (147) hide show
  1. package/dist/apis/iamApiWrapper.d.ts +47 -4
  2. package/dist/apis/iamApiWrapper.js +60 -3
  3. package/dist/apis/iamApiWrapper.js.map +1 -1
  4. package/dist/generated/apis/AccountsApi.d.ts +2 -2
  5. package/dist/generated/apis/AccountsApi.js +2 -2
  6. package/dist/generated/apis/{OAuthApi.d.ts → AdminAuthenticationApi.d.ts} +59 -26
  7. package/dist/generated/apis/{OAuthApi.js → AdminAuthenticationApi.js} +189 -87
  8. package/dist/generated/apis/AdminAuthenticationApi.js.map +1 -0
  9. package/dist/generated/apis/AuthenticationApi.d.ts +194 -16
  10. package/dist/generated/apis/AuthenticationApi.js +716 -43
  11. package/dist/generated/apis/AuthenticationApi.js.map +1 -1
  12. package/dist/generated/apis/EmbeddedApi.d.ts +78 -0
  13. package/dist/generated/apis/{PlayersAuthenticationApi.js → EmbeddedApi.js} +136 -60
  14. package/dist/generated/apis/EmbeddedApi.js.map +1 -0
  15. package/dist/generated/index.d.ts +1 -1
  16. package/dist/generated/index.js +2 -4
  17. package/dist/generated/index.js.map +1 -1
  18. package/dist/generated/models/AuthPlayerResponse.d.ts +2 -6
  19. package/dist/generated/models/AuthPlayerResponse.js +3 -27
  20. package/dist/generated/models/AuthPlayerResponse.js.map +1 -1
  21. package/dist/generated/models/AuthProvider.d.ts +15 -0
  22. package/dist/generated/models/AuthProvider.js +14 -0
  23. package/dist/generated/models/AuthProvider.js.map +1 -0
  24. package/dist/generated/models/AuthResponse.d.ts +6 -4
  25. package/dist/generated/models/AuthResponse.js +9 -3
  26. package/dist/generated/models/AuthResponse.js.map +1 -1
  27. package/dist/generated/models/AuthSessionResponse.d.ts +34 -0
  28. package/dist/generated/models/{RetrievePlayerEncryptedKeyResponse.js → AuthSessionResponse.js} +29 -23
  29. package/dist/generated/models/AuthSessionResponse.js.map +1 -0
  30. package/dist/generated/models/AuthenticateOAuthRequest.d.ts +33 -0
  31. package/dist/generated/models/AuthenticateOAuthRequest.js +38 -0
  32. package/dist/generated/models/AuthenticateOAuthRequest.js.map +1 -0
  33. package/dist/generated/models/BaseEntityListResponseDeviceResponse.d.ts +35 -0
  34. package/dist/generated/models/BaseEntityListResponseDeviceResponse.js +62 -0
  35. package/dist/generated/models/BaseEntityListResponseDeviceResponse.js.map +1 -0
  36. package/dist/generated/models/BaseEntityListResponseShareResponse.d.ts +35 -0
  37. package/dist/generated/models/BaseEntityListResponseShareResponse.js +62 -0
  38. package/dist/generated/models/BaseEntityListResponseShareResponse.js.map +1 -0
  39. package/dist/generated/models/{RegisterPlayerEncryptedKeyResponse.d.ts → CheckoutSubscriptionRequest.d.ts} +4 -5
  40. package/dist/generated/models/{RegisterPlayerEncryptedKeyRequest.js → CheckoutSubscriptionRequest.js} +13 -13
  41. package/dist/generated/models/CheckoutSubscriptionRequest.js.map +1 -0
  42. package/dist/generated/models/CreateAccountRequest.d.ts +1 -1
  43. package/dist/generated/models/CreateDeviceRequest.d.ts +31 -0
  44. package/dist/generated/models/{AuthenticatedPlayerResponse.js → CreateDeviceRequest.js} +9 -9
  45. package/dist/generated/models/CreateDeviceRequest.js.map +1 -0
  46. package/dist/generated/models/{RegisterPlayerEncryptedKeyRequest.d.ts → CreateShareRequest.d.ts} +7 -9
  47. package/dist/generated/models/CreateShareRequest.js +44 -0
  48. package/dist/generated/models/CreateShareRequest.js.map +1 -0
  49. package/dist/generated/models/{AuthorizeWithOAuthToken200Response.d.ts → DeprecatedAuthenticatedPlayerResponse.d.ts} +2 -2
  50. package/dist/generated/models/{AuthorizeWithOAuthToken200Response.js → DeprecatedAuthenticatedPlayerResponse.js} +7 -7
  51. package/dist/generated/models/DeprecatedAuthenticatedPlayerResponse.js.map +1 -0
  52. package/dist/generated/models/DeviceListQueries.d.ts +41 -0
  53. package/dist/generated/models/DeviceListQueries.js +50 -0
  54. package/dist/generated/models/DeviceListQueries.js.map +1 -0
  55. package/dist/generated/models/{RetrievePlayerEncryptedKeyResponse.d.ts → DeviceResponse.d.ts} +5 -6
  56. package/dist/generated/models/{RegisterPlayerEncryptedKeyResponse.js → DeviceResponse.js} +17 -17
  57. package/dist/generated/models/DeviceResponse.js.map +1 -0
  58. package/dist/generated/models/EntityTypeDEVICE.d.ts +12 -0
  59. package/dist/generated/models/EntityTypeDEVICE.js +14 -0
  60. package/dist/generated/models/EntityTypeDEVICE.js.map +1 -0
  61. package/dist/generated/models/EntityTypeSHARE.d.ts +12 -0
  62. package/dist/generated/models/EntityTypeSHARE.js +14 -0
  63. package/dist/generated/models/EntityTypeSHARE.js.map +1 -0
  64. package/dist/generated/models/JwtKey.d.ts +34 -0
  65. package/dist/generated/models/JwtKey.js +68 -0
  66. package/dist/generated/models/JwtKey.js.map +1 -0
  67. package/dist/generated/models/JwtKeyResponse.d.ts +29 -0
  68. package/dist/generated/models/JwtKeyResponse.js +32 -0
  69. package/dist/generated/models/JwtKeyResponse.js.map +1 -0
  70. package/dist/generated/models/LinkRequest.d.ts +36 -0
  71. package/dist/generated/models/LinkRequest.js +41 -0
  72. package/dist/generated/models/LinkRequest.js.map +1 -0
  73. package/dist/generated/models/LinkedAccountResponse.d.ts +36 -0
  74. package/dist/generated/models/LinkedAccountResponse.js +68 -0
  75. package/dist/generated/models/LinkedAccountResponse.js.map +1 -0
  76. package/dist/generated/models/{AuthenticatedPlayerResponse.d.ts → LogoutRequest.d.ts} +3 -3
  77. package/dist/generated/models/LogoutRequest.js +32 -0
  78. package/dist/generated/models/LogoutRequest.js.map +1 -0
  79. package/dist/generated/models/OAuthInitRequest.d.ts +33 -0
  80. package/dist/generated/models/OAuthInitRequest.js +38 -0
  81. package/dist/generated/models/OAuthInitRequest.js.map +1 -0
  82. package/dist/generated/models/ObjectSerializer.d.ts +29 -5
  83. package/dist/generated/models/ObjectSerializer.js +84 -15
  84. package/dist/generated/models/ObjectSerializer.js.map +1 -1
  85. package/dist/generated/models/Plan.d.ts +33 -0
  86. package/dist/generated/models/Plan.js +56 -0
  87. package/dist/generated/models/Plan.js.map +1 -0
  88. package/dist/generated/models/PlansResponse.d.ts +29 -0
  89. package/dist/generated/models/PlansResponse.js +32 -0
  90. package/dist/generated/models/PlansResponse.js.map +1 -0
  91. package/dist/generated/models/RefreshTokenRequest.d.ts +31 -0
  92. package/dist/generated/models/RefreshTokenRequest.js +32 -0
  93. package/dist/generated/models/RefreshTokenRequest.js.map +1 -0
  94. package/dist/generated/models/SIWEAuthenticateRequest.d.ts +43 -0
  95. package/dist/generated/models/SIWEAuthenticateRequest.js +50 -0
  96. package/dist/generated/models/SIWEAuthenticateRequest.js.map +1 -0
  97. package/dist/generated/models/SIWEInitResponse.d.ts +33 -0
  98. package/dist/generated/models/SIWEInitResponse.js +44 -0
  99. package/dist/generated/models/SIWEInitResponse.js.map +1 -0
  100. package/dist/generated/models/SIWERequest.d.ts +31 -0
  101. package/dist/generated/models/SIWERequest.js +32 -0
  102. package/dist/generated/models/SIWERequest.js.map +1 -0
  103. package/dist/generated/models/ShareResponse.d.ts +35 -0
  104. package/dist/generated/models/ShareResponse.js +62 -0
  105. package/dist/generated/models/ShareResponse.js.map +1 -0
  106. package/dist/generated/models/ShareType.d.ts +12 -0
  107. package/dist/generated/models/ShareType.js +14 -0
  108. package/dist/generated/models/ShareType.js.map +1 -0
  109. package/dist/generated/models/SubscriptionResponse.d.ts +32 -0
  110. package/dist/generated/models/SubscriptionResponse.js +50 -0
  111. package/dist/generated/models/SubscriptionResponse.js.map +1 -0
  112. package/dist/generated/models/SubscriptionResponsePlan.d.ts +30 -0
  113. package/dist/generated/models/SubscriptionResponsePlan.js +44 -0
  114. package/dist/generated/models/SubscriptionResponsePlan.js.map +1 -0
  115. package/dist/generated/models/all.d.ts +29 -5
  116. package/dist/generated/models/all.js +29 -5
  117. package/dist/generated/models/all.js.map +1 -1
  118. package/dist/generated/types/ObjectParamAPI.d.ts +439 -207
  119. package/dist/generated/types/ObjectParamAPI.js +233 -137
  120. package/dist/generated/types/ObjectParamAPI.js.map +1 -1
  121. package/dist/generated/types/ObservableAPI.d.ts +190 -99
  122. package/dist/generated/types/ObservableAPI.js +534 -264
  123. package/dist/generated/types/ObservableAPI.js.map +1 -1
  124. package/dist/generated/types/PromiseAPI.d.ts +188 -95
  125. package/dist/generated/types/PromiseAPI.js +270 -154
  126. package/dist/generated/types/PromiseAPI.js.map +1 -1
  127. package/dist/index.d.ts +0 -2
  128. package/dist/index.js +0 -4
  129. package/dist/index.js.map +1 -1
  130. package/dist/version.d.ts +1 -1
  131. package/dist/version.js +1 -1
  132. package/package.json +1 -1
  133. package/tsconfig.tsbuildinfo +1 -1
  134. package/dist/apis/oauthApiWrapper.d.ts +0 -14
  135. package/dist/apis/oauthApiWrapper.js +0 -38
  136. package/dist/apis/oauthApiWrapper.js.map +0 -1
  137. package/dist/generated/apis/GoogleAuthenticationApi.d.ts +0 -37
  138. package/dist/generated/apis/GoogleAuthenticationApi.js +0 -118
  139. package/dist/generated/apis/GoogleAuthenticationApi.js.map +0 -1
  140. package/dist/generated/apis/OAuthApi.js.map +0 -1
  141. package/dist/generated/apis/PlayersAuthenticationApi.d.ts +0 -56
  142. package/dist/generated/apis/PlayersAuthenticationApi.js.map +0 -1
  143. package/dist/generated/models/AuthenticatedPlayerResponse.js.map +0 -1
  144. package/dist/generated/models/AuthorizeWithOAuthToken200Response.js.map +0 -1
  145. package/dist/generated/models/RegisterPlayerEncryptedKeyRequest.js.map +0 -1
  146. package/dist/generated/models/RegisterPlayerEncryptedKeyResponse.js.map +0 -1
  147. 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.PromisePlayersAuthenticationApi = exports.PromisePlayersApi = exports.PromiseOAuthApi = exports.PromiseNotificationsApi = exports.PromiseNotificationTriggersApi = exports.PromiseNotificationSubscriptionsApi = exports.PromiseInventoriesApi = exports.PromiseGoogleAuthenticationApi = exports.PromiseContractsApi = exports.PromiseAuthenticationApi = exports.PromiseAccountsApi = void 0;
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 an account that was counterfactually generated.
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 PromiseAuthenticationApi {
111
+ class PromiseAdminAuthenticationApi {
112
112
  constructor(configuration, requestFactory, responseProcessor) {
113
- this.api = new ObservableAPI_2.ObservableAuthenticationApi(configuration, requestFactory, responseProcessor);
113
+ this.api = new ObservableAPI_2.ObservableAdminAuthenticationApi(configuration, requestFactory, responseProcessor);
114
114
  }
115
115
  /**
116
- * 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.
117
- * Login a player.
118
- * @param loginRequest
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
- login(loginRequest, _options) {
121
- const result = this.api.login(loginRequest, _options);
120
+ createOAuthConfig(body, _options) {
121
+ const result = this.api.createOAuthConfig(body, _options);
122
122
  return result.toPromise();
123
123
  }
124
124
  /**
125
- * 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.
126
- * Sign up a player.
127
- * @param signupRequest
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
- signup(signupRequest, _options) {
130
- const result = this.api.signup(signupRequest, _options);
167
+ listOAuthConfig(_options) {
168
+ const result = this.api.listOAuthConfig(_options);
131
169
  return result.toPromise();
132
170
  }
133
171
  /**
134
- * When using Openfort Auth, the endpoint verifies the token generated by Openfort Auth and retrieves a corresponding player.
135
- * Verify an auth token.
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.PromiseAuthenticationApi = PromiseAuthenticationApi;
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 ObservableAPI_3.ObservableContractsApi(configuration, requestFactory, responseProcessor);
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 ObservableAPI_4 = require("./ObservableAPI");
214
- class PromiseGoogleAuthenticationApi {
408
+ const ObservableAPI_5 = require("./ObservableAPI");
409
+ class PromiseEmbeddedApi {
215
410
  constructor(configuration, requestFactory, responseProcessor) {
216
- this.api = new ObservableAPI_4.ObservableGoogleAuthenticationApi(configuration, requestFactory, responseProcessor);
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
- * Get the google oauth signin url.
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
- getSigninUrl(_options) {
222
- const result = this.api.getSigninUrl(_options);
438
+ getDeviceShares(id, shareType, _options) {
439
+ const result = this.api.getDeviceShares(id, shareType, _options);
223
440
  return result.toPromise();
224
441
  }
225
442
  /**
226
- * Get the google oauth token.
227
- * @param key Specifies the oauth key.
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
- getToken(key, _options) {
230
- const result = this.api.getToken(key, _options);
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.PromiseGoogleAuthenticationApi = PromiseGoogleAuthenticationApi;
235
- const ObservableAPI_5 = require("./ObservableAPI");
455
+ exports.PromiseEmbeddedApi = PromiseEmbeddedApi;
456
+ const ObservableAPI_6 = require("./ObservableAPI");
236
457
  class PromiseInventoriesApi {
237
458
  constructor(configuration, requestFactory, responseProcessor) {
238
- this.api = new ObservableAPI_5.ObservableInventoriesApi(configuration, requestFactory, responseProcessor);
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 ObservableAPI_6 = require("./ObservableAPI");
536
+ const ObservableAPI_7 = require("./ObservableAPI");
316
537
  class PromiseNotificationSubscriptionsApi {
317
538
  constructor(configuration, requestFactory, responseProcessor) {
318
- this.api = new ObservableAPI_6.ObservableNotificationSubscriptionsApi(configuration, requestFactory, responseProcessor);
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 ObservableAPI_7 = require("./ObservableAPI");
582
+ const ObservableAPI_8 = require("./ObservableAPI");
362
583
  class PromiseNotificationTriggersApi {
363
584
  constructor(configuration, requestFactory, responseProcessor) {
364
- this.api = new ObservableAPI_7.ObservableNotificationTriggersApi(configuration, requestFactory, responseProcessor);
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 ObservableAPI_8 = require("./ObservableAPI");
628
+ const ObservableAPI_9 = require("./ObservableAPI");
408
629
  class PromiseNotificationsApi {
409
630
  constructor(configuration, requestFactory, responseProcessor) {
410
- this.api = new ObservableAPI_8.ObservableNotificationsApi(configuration, requestFactory, responseProcessor);
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 ObservableAPI_12.ObservablePoliciesApi(configuration, requestFactory, responseProcessor);
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 ObservableAPI_13 = require("./ObservableAPI");
854
+ const ObservableAPI_12 = require("./ObservableAPI");
739
855
  class PromisePolicyRulesApi {
740
856
  constructor(configuration, requestFactory, responseProcessor) {
741
- this.api = new ObservableAPI_13.ObservablePolicyRulesApi(configuration, requestFactory, responseProcessor);
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 ObservableAPI_14 = require("./ObservableAPI");
899
+ const ObservableAPI_13 = require("./ObservableAPI");
784
900
  class PromiseSessionsApi {
785
901
  constructor(configuration, requestFactory, responseProcessor) {
786
- this.api = new ObservableAPI_14.ObservableSessionsApi(configuration, requestFactory, responseProcessor);
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 ObservableAPI_15 = require("./ObservableAPI");
955
+ const ObservableAPI_14 = require("./ObservableAPI");
840
956
  class PromiseSettingsApi {
841
957
  constructor(configuration, requestFactory, responseProcessor) {
842
- this.api = new ObservableAPI_15.ObservableSettingsApi(configuration, requestFactory, responseProcessor);
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 ObservableAPI_16 = require("./ObservableAPI");
1029
+ const ObservableAPI_15 = require("./ObservableAPI");
914
1030
  class PromiseTransactionIntentsApi {
915
1031
  constructor(configuration, requestFactory, responseProcessor) {
916
- this.api = new ObservableAPI_16.ObservableTransactionIntentsApi(configuration, requestFactory, responseProcessor);
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 ObservableAPI_17 = require("./ObservableAPI");
1091
+ const ObservableAPI_16 = require("./ObservableAPI");
976
1092
  class PromiseWeb3ConnectionsApi {
977
1093
  constructor(configuration, requestFactory, responseProcessor) {
978
- this.api = new ObservableAPI_17.ObservableWeb3ConnectionsApi(configuration, requestFactory, responseProcessor);
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).