@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
|
@@ -3,8 +3,12 @@ import { AccountListResponse } from '../models/AccountListResponse';
|
|
|
3
3
|
import { AccountResponse } from '../models/AccountResponse';
|
|
4
4
|
import { AccountResponseExpandable } from '../models/AccountResponseExpandable';
|
|
5
5
|
import { AuthPlayerListResponse } from '../models/AuthPlayerListResponse';
|
|
6
|
+
import { AuthPlayerResponse } from '../models/AuthPlayerResponse';
|
|
6
7
|
import { AuthResponse } from '../models/AuthResponse';
|
|
7
|
-
import {
|
|
8
|
+
import { AuthSessionResponse } from '../models/AuthSessionResponse';
|
|
9
|
+
import { AuthenticateOAuthRequest } from '../models/AuthenticateOAuthRequest';
|
|
10
|
+
import { BaseEntityListResponseDeviceResponse } from '../models/BaseEntityListResponseDeviceResponse';
|
|
11
|
+
import { BaseEntityListResponseShareResponse } from '../models/BaseEntityListResponseShareResponse';
|
|
8
12
|
import { CancelTransferOwnershipRequest } from '../models/CancelTransferOwnershipRequest';
|
|
9
13
|
import { CompleteRecoveryRequest } from '../models/CompleteRecoveryRequest';
|
|
10
14
|
import { ContractDeleteResponse } from '../models/ContractDeleteResponse';
|
|
@@ -13,27 +17,34 @@ import { ContractReadResponse } from '../models/ContractReadResponse';
|
|
|
13
17
|
import { ContractResponse } from '../models/ContractResponse';
|
|
14
18
|
import { CreateAccountRequest } from '../models/CreateAccountRequest';
|
|
15
19
|
import { CreateContractRequest } from '../models/CreateContractRequest';
|
|
20
|
+
import { CreateDeviceRequest } from '../models/CreateDeviceRequest';
|
|
16
21
|
import { CreateNotificationRequest } from '../models/CreateNotificationRequest';
|
|
17
22
|
import { CreateNotificationSubscriptionRequest } from '../models/CreateNotificationSubscriptionRequest';
|
|
18
23
|
import { CreateNotificationTriggerRequest } from '../models/CreateNotificationTriggerRequest';
|
|
19
24
|
import { CreatePolicyRequest } from '../models/CreatePolicyRequest';
|
|
20
25
|
import { CreatePolicyRuleRequest } from '../models/CreatePolicyRuleRequest';
|
|
21
26
|
import { CreateSessionRequest } from '../models/CreateSessionRequest';
|
|
27
|
+
import { CreateShareRequest } from '../models/CreateShareRequest';
|
|
22
28
|
import { CreateTransactionIntentRequest } from '../models/CreateTransactionIntentRequest';
|
|
23
29
|
import { CreateWeb3ConnectionRequest } from '../models/CreateWeb3ConnectionRequest';
|
|
24
30
|
import { DeployRequest } from '../models/DeployRequest';
|
|
31
|
+
import { DeprecatedAuthenticatedPlayerResponse } from '../models/DeprecatedAuthenticatedPlayerResponse';
|
|
25
32
|
import { DeveloperAccountCreateRequest } from '../models/DeveloperAccountCreateRequest';
|
|
26
33
|
import { DeveloperAccountDeleteResponse } from '../models/DeveloperAccountDeleteResponse';
|
|
27
34
|
import { DeveloperAccountGetMessageResponse } from '../models/DeveloperAccountGetMessageResponse';
|
|
28
35
|
import { DeveloperAccountListResponse } from '../models/DeveloperAccountListResponse';
|
|
29
36
|
import { DeveloperAccountResponse } from '../models/DeveloperAccountResponse';
|
|
30
37
|
import { DeveloperAccountResponseExpandable } from '../models/DeveloperAccountResponseExpandable';
|
|
38
|
+
import { DeviceResponse } from '../models/DeviceResponse';
|
|
31
39
|
import { EstimateTransactionIntentGasResult } from '../models/EstimateTransactionIntentGasResult';
|
|
32
40
|
import { GasReportListResponse } from '../models/GasReportListResponse';
|
|
33
41
|
import { GetSigninUrlResponse } from '../models/GetSigninUrlResponse';
|
|
34
42
|
import { InventoryListResponse } from '../models/InventoryListResponse';
|
|
35
43
|
import { InventoryResponse } from '../models/InventoryResponse';
|
|
44
|
+
import { JwtKeyResponse } from '../models/JwtKeyResponse';
|
|
45
|
+
import { LinkRequest } from '../models/LinkRequest';
|
|
36
46
|
import { LoginRequest } from '../models/LoginRequest';
|
|
47
|
+
import { LogoutRequest } from '../models/LogoutRequest';
|
|
37
48
|
import { NotificationDeleteResponse } from '../models/NotificationDeleteResponse';
|
|
38
49
|
import { NotificationListResponse } from '../models/NotificationListResponse';
|
|
39
50
|
import { NotificationResponse } from '../models/NotificationResponse';
|
|
@@ -46,6 +57,7 @@ import { NotificationTriggerListResponse } from '../models/NotificationTriggerLi
|
|
|
46
57
|
import { NotificationTriggerResponse } from '../models/NotificationTriggerResponse';
|
|
47
58
|
import { OAuthConfig } from '../models/OAuthConfig';
|
|
48
59
|
import { OAuthConfigListResponse } from '../models/OAuthConfigListResponse';
|
|
60
|
+
import { OAuthInitRequest } from '../models/OAuthInitRequest';
|
|
49
61
|
import { OAuthProvider } from '../models/OAuthProvider';
|
|
50
62
|
import { OAuthRequest } from '../models/OAuthRequest';
|
|
51
63
|
import { PlayerCancelTransferOwnershipRequest } from '../models/PlayerCancelTransferOwnershipRequest';
|
|
@@ -64,14 +76,16 @@ import { PolicyResponseExpandable } from '../models/PolicyResponseExpandable';
|
|
|
64
76
|
import { PolicyRuleDeleteResponse } from '../models/PolicyRuleDeleteResponse';
|
|
65
77
|
import { PolicyRuleListResponse } from '../models/PolicyRuleListResponse';
|
|
66
78
|
import { PolicyRuleResponse } from '../models/PolicyRuleResponse';
|
|
67
|
-
import {
|
|
68
|
-
import { RegisterPlayerEncryptedKeyResponse } from '../models/RegisterPlayerEncryptedKeyResponse';
|
|
69
|
-
import { RetrievePlayerEncryptedKeyResponse } from '../models/RetrievePlayerEncryptedKeyResponse';
|
|
79
|
+
import { RefreshTokenRequest } from '../models/RefreshTokenRequest';
|
|
70
80
|
import { RevokeSessionRequest } from '../models/RevokeSessionRequest';
|
|
81
|
+
import { SIWEAuthenticateRequest } from '../models/SIWEAuthenticateRequest';
|
|
82
|
+
import { SIWEInitResponse } from '../models/SIWEInitResponse';
|
|
83
|
+
import { SIWERequest } from '../models/SIWERequest';
|
|
71
84
|
import { SessionListResponse } from '../models/SessionListResponse';
|
|
72
85
|
import { SessionResponse } from '../models/SessionResponse';
|
|
73
86
|
import { SessionResponseExpandable } from '../models/SessionResponseExpandable';
|
|
74
87
|
import { SettingsWebhookUpdateRequest } from '../models/SettingsWebhookUpdateRequest';
|
|
88
|
+
import { ShareResponse } from '../models/ShareResponse';
|
|
75
89
|
import { SignPayloadRequest } from '../models/SignPayloadRequest';
|
|
76
90
|
import { SignPayloadResponse } from '../models/SignPayloadResponse';
|
|
77
91
|
import { SignatureRequest } from '../models/SignatureRequest';
|
|
@@ -116,7 +130,7 @@ export declare class PromiseAccountsApi {
|
|
|
116
130
|
*/
|
|
117
131
|
createAccount(createAccountRequest: CreateAccountRequest, _options?: Configuration): Promise<AccountResponse>;
|
|
118
132
|
/**
|
|
119
|
-
* This endpoint can be used to deploy
|
|
133
|
+
* This endpoint can be used to deploy a smart contract account that was counterfactually generated.
|
|
120
134
|
* Deploy an account.
|
|
121
135
|
* @param id Specifies the unique account ID (starts with acc_).
|
|
122
136
|
* @param deployRequest
|
|
@@ -130,7 +144,7 @@ export declare class PromiseAccountsApi {
|
|
|
130
144
|
*/
|
|
131
145
|
getAccount(id: string, expand?: Array<AccountResponseExpandable>, _options?: Configuration): Promise<AccountResponse>;
|
|
132
146
|
/**
|
|
133
|
-
* 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.
|
|
147
|
+
* 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.
|
|
134
148
|
* List accounts of a player.
|
|
135
149
|
* @param player Specifies the unique player ID (starts with pla_)
|
|
136
150
|
* @param limit Specifies the maximum number of records to return.
|
|
@@ -166,28 +180,158 @@ export declare class PromiseAccountsApi {
|
|
|
166
180
|
*/
|
|
167
181
|
syncAccount(id: string, _options?: Configuration): Promise<AccountResponse>;
|
|
168
182
|
}
|
|
183
|
+
import { AdminAuthenticationApiRequestFactory, AdminAuthenticationApiResponseProcessor } from "../apis/AdminAuthenticationApi";
|
|
184
|
+
export declare class PromiseAdminAuthenticationApi {
|
|
185
|
+
private api;
|
|
186
|
+
constructor(configuration: Configuration, requestFactory?: AdminAuthenticationApiRequestFactory, responseProcessor?: AdminAuthenticationApiResponseProcessor);
|
|
187
|
+
/**
|
|
188
|
+
* The endpoint creates oauth configuration for the current project environment.
|
|
189
|
+
* Create oauth configuration.
|
|
190
|
+
* @param body Specifies the oauth provider specific configuration.
|
|
191
|
+
*/
|
|
192
|
+
createOAuthConfig(body: OAuthConfig, _options?: Configuration): Promise<OAuthConfig>;
|
|
193
|
+
/**
|
|
194
|
+
* Deletes a player auth object. It will delete all linked accounts the player is authenticated with.
|
|
195
|
+
* Deletes a player auth object.
|
|
196
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
197
|
+
*/
|
|
198
|
+
deleteAuthPlayer(id: string, _options?: Configuration): Promise<PlayerDeleteResponse>;
|
|
199
|
+
/**
|
|
200
|
+
* The endpoint deletes oauth configuration for specified provider for the current project environment.
|
|
201
|
+
* Delete oauth configuration.
|
|
202
|
+
* @param provider Specifies the oauth provider type.
|
|
203
|
+
*/
|
|
204
|
+
deleteOAuthConfig(provider: OAuthProvider, _options?: Configuration): Promise<void>;
|
|
205
|
+
/**
|
|
206
|
+
* Retrieves a list of authenticated players. Players have linked accounts and are authenticated with a provider.
|
|
207
|
+
* List authenticated players.
|
|
208
|
+
* @param limit Specifies the maximum number of records to return.
|
|
209
|
+
* @param skip Specifies the offset for the first records to return.
|
|
210
|
+
* @param order Specifies the order in which to sort the results.
|
|
211
|
+
* @param email Specifies the email address of the user.
|
|
212
|
+
*/
|
|
213
|
+
getAuthPlayers(limit?: number, skip?: number, order?: SortOrder, email?: string, _options?: Configuration): Promise<AuthPlayerListResponse>;
|
|
214
|
+
/**
|
|
215
|
+
* The endpoint retrieves oauth configuration for specified provider for the current project environment.
|
|
216
|
+
* Get oauth configuration.
|
|
217
|
+
* @param provider Specifies the oauth provider type.
|
|
218
|
+
*/
|
|
219
|
+
getOAuthConfig(provider: OAuthProvider, _options?: Configuration): Promise<OAuthConfig>;
|
|
220
|
+
/**
|
|
221
|
+
* List configured OAuth methods for the current project environment.
|
|
222
|
+
* List of oauth configurations.
|
|
223
|
+
*/
|
|
224
|
+
listOAuthConfig(_options?: Configuration): Promise<OAuthConfigListResponse>;
|
|
225
|
+
/**
|
|
226
|
+
* Verifies the token generated by Openfort Auth.
|
|
227
|
+
* Verify auth token.
|
|
228
|
+
* @param token Specifies the auth token.
|
|
229
|
+
*/
|
|
230
|
+
verifyAuthToken(token: string, _options?: Configuration): Promise<AuthSessionResponse>;
|
|
231
|
+
/**
|
|
232
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
233
|
+
* Retrieve player by oauth token.
|
|
234
|
+
* @param authenticateOAuthRequest
|
|
235
|
+
*/
|
|
236
|
+
verifyOAuth(authenticateOAuthRequest: AuthenticateOAuthRequest, _options?: Configuration): Promise<PlayerResponse>;
|
|
237
|
+
/**
|
|
238
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
239
|
+
* Retrieve player by token.
|
|
240
|
+
* @param provider OAuth provider
|
|
241
|
+
* @param oAuthRequest
|
|
242
|
+
*/
|
|
243
|
+
verifyOAuthToken(provider: OAuthProvider, oAuthRequest: OAuthRequest, _options?: Configuration): Promise<PlayerResponse>;
|
|
244
|
+
}
|
|
169
245
|
import { AuthenticationApiRequestFactory, AuthenticationApiResponseProcessor } from "../apis/AuthenticationApi";
|
|
170
246
|
export declare class PromiseAuthenticationApi {
|
|
171
247
|
private api;
|
|
172
248
|
constructor(configuration: Configuration, requestFactory?: AuthenticationApiRequestFactory, responseProcessor?: AuthenticationApiResponseProcessor);
|
|
173
249
|
/**
|
|
174
|
-
*
|
|
175
|
-
*
|
|
250
|
+
* Authenticate player with oauth token.
|
|
251
|
+
* @param authenticateOAuthRequest
|
|
252
|
+
*/
|
|
253
|
+
authenticateOAuth(authenticateOAuthRequest: AuthenticateOAuthRequest, _options?: Configuration): Promise<AuthResponse>;
|
|
254
|
+
/**
|
|
255
|
+
* Authenticate player with SIWE
|
|
256
|
+
* @param sIWEAuthenticateRequest
|
|
257
|
+
*/
|
|
258
|
+
authenticateSIWE(sIWEAuthenticateRequest: SIWEAuthenticateRequest, _options?: Configuration): Promise<void | AuthResponse>;
|
|
259
|
+
/**
|
|
260
|
+
* 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.
|
|
261
|
+
* Authorize player with token.
|
|
262
|
+
* @param provider OAuth provider
|
|
263
|
+
* @param oAuthRequest
|
|
264
|
+
*/
|
|
265
|
+
authorizeWithOAuthToken(provider: OAuthProvider, oAuthRequest: OAuthRequest, _options?: Configuration): Promise<DeprecatedAuthenticatedPlayerResponse>;
|
|
266
|
+
/**
|
|
267
|
+
* Get the jwks.json file. You can use the jwks.json file to verify the signature of a JWT token issued by Openfort Auth.
|
|
268
|
+
* Get the jwks.json file.
|
|
269
|
+
* @param publishableKey Specifies the project publishable key (starts with pk_).
|
|
270
|
+
*/
|
|
271
|
+
getJwks(publishableKey: string, _options?: Configuration): Promise<JwtKeyResponse>;
|
|
272
|
+
/**
|
|
273
|
+
* Initialize OAuth.
|
|
274
|
+
* @param oAuthInitRequest
|
|
275
|
+
*/
|
|
276
|
+
initOAuth(oAuthInitRequest: OAuthInitRequest, _options?: Configuration): Promise<GetSigninUrlResponse>;
|
|
277
|
+
/**
|
|
278
|
+
* Create a challenge to link external wallet to the player.
|
|
279
|
+
* Initialize SIWE.
|
|
280
|
+
* @param sIWERequest
|
|
281
|
+
*/
|
|
282
|
+
initSIWE(sIWERequest: SIWERequest, _options?: Configuration): Promise<SIWEInitResponse>;
|
|
283
|
+
/**
|
|
284
|
+
* Link external wallet.
|
|
285
|
+
* @param sIWEAuthenticateRequest
|
|
286
|
+
*/
|
|
287
|
+
linkSIWE(sIWEAuthenticateRequest: SIWEAuthenticateRequest, _options?: Configuration): Promise<AuthPlayerResponse | void>;
|
|
288
|
+
/**
|
|
289
|
+
* Authenticate a player based on email and password.
|
|
290
|
+
* Email and password login.
|
|
176
291
|
* @param loginRequest
|
|
177
292
|
*/
|
|
178
|
-
|
|
293
|
+
loginEmailPassword(loginRequest: LoginRequest, _options?: Configuration): Promise<AuthResponse>;
|
|
294
|
+
/**
|
|
295
|
+
* When using Openfort Auth, the endpoint logs out the player.
|
|
296
|
+
* Log out a player.
|
|
297
|
+
* @param logoutRequest
|
|
298
|
+
*/
|
|
299
|
+
logout(logoutRequest: LogoutRequest, _options?: Configuration): Promise<void>;
|
|
179
300
|
/**
|
|
180
|
-
*
|
|
181
|
-
*
|
|
301
|
+
* Get or create a new session for the player based on the refresh token.
|
|
302
|
+
* Refresh or create auth session.
|
|
303
|
+
* @param refreshTokenRequest
|
|
304
|
+
*/
|
|
305
|
+
refresh(refreshTokenRequest: RefreshTokenRequest, _options?: Configuration): Promise<AuthResponse>;
|
|
306
|
+
/**
|
|
307
|
+
* Create and authenticate a player based on email and password.
|
|
308
|
+
* Email and password signup.
|
|
182
309
|
* @param signupRequest
|
|
183
310
|
*/
|
|
184
|
-
|
|
311
|
+
signupEmailPassword(signupRequest: SignupRequest, _options?: Configuration): Promise<AuthResponse>;
|
|
185
312
|
/**
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
|
|
313
|
+
* Unlink OAuth account
|
|
314
|
+
* @param linkRequest
|
|
315
|
+
*/
|
|
316
|
+
unlinkOAuth(linkRequest: LinkRequest, _options?: Configuration): Promise<AuthPlayerResponse>;
|
|
317
|
+
/**
|
|
318
|
+
* Unlink external wallet.
|
|
319
|
+
* @param sIWERequest
|
|
320
|
+
*/
|
|
321
|
+
unlinkSIWE(sIWERequest: SIWERequest, _options?: Configuration): Promise<AuthPlayerResponse | void>;
|
|
322
|
+
/**
|
|
323
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
324
|
+
* Retrieve player by oauth token.
|
|
325
|
+
* @param authenticateOAuthRequest
|
|
326
|
+
*/
|
|
327
|
+
verifyOAuth(authenticateOAuthRequest: AuthenticateOAuthRequest, _options?: Configuration): Promise<PlayerResponse>;
|
|
328
|
+
/**
|
|
329
|
+
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
330
|
+
* Retrieve player by token.
|
|
331
|
+
* @param provider OAuth provider
|
|
332
|
+
* @param oAuthRequest
|
|
189
333
|
*/
|
|
190
|
-
|
|
334
|
+
verifyOAuthToken(provider: OAuthProvider, oAuthRequest: OAuthRequest, _options?: Configuration): Promise<PlayerResponse>;
|
|
191
335
|
}
|
|
192
336
|
import { ContractsApiRequestFactory, ContractsApiResponseProcessor } from "../apis/ContractsApi";
|
|
193
337
|
export declare class PromiseContractsApi {
|
|
@@ -238,19 +382,39 @@ export declare class PromiseContractsApi {
|
|
|
238
382
|
*/
|
|
239
383
|
updateContract(id: string, updateContractRequest: UpdateContractRequest, _options?: Configuration): Promise<ContractResponse>;
|
|
240
384
|
}
|
|
241
|
-
import {
|
|
242
|
-
export declare class
|
|
385
|
+
import { EmbeddedApiRequestFactory, EmbeddedApiResponseProcessor } from "../apis/EmbeddedApi";
|
|
386
|
+
export declare class PromiseEmbeddedApi {
|
|
243
387
|
private api;
|
|
244
|
-
constructor(configuration: Configuration, requestFactory?:
|
|
388
|
+
constructor(configuration: Configuration, requestFactory?: EmbeddedApiRequestFactory, responseProcessor?: EmbeddedApiResponseProcessor);
|
|
245
389
|
/**
|
|
246
|
-
*
|
|
390
|
+
* 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.
|
|
391
|
+
* Create a device object.
|
|
392
|
+
* @param createDeviceRequest
|
|
247
393
|
*/
|
|
248
|
-
|
|
394
|
+
createDevice(createDeviceRequest: CreateDeviceRequest, _options?: Configuration): Promise<DeviceResponse>;
|
|
249
395
|
/**
|
|
250
|
-
*
|
|
251
|
-
*
|
|
396
|
+
* Add the share of for existing device.
|
|
397
|
+
* Create a device share.
|
|
398
|
+
* @param id Specifies the unique device ID (starts with dev_).
|
|
399
|
+
* @param createShareRequest
|
|
400
|
+
*/
|
|
401
|
+
createDeviceShare(id: string, createShareRequest: CreateShareRequest, _options?: Configuration): Promise<ShareResponse>;
|
|
402
|
+
/**
|
|
403
|
+
* Retrieves the shares of an existing device.
|
|
404
|
+
* Get existing device shares.
|
|
405
|
+
* @param id Specifies the unique device ID (starts with dev_).
|
|
406
|
+
* @param shareType Specifies the type of the share ID
|
|
407
|
+
*/
|
|
408
|
+
getDeviceShares(id: string, shareType?: string, _options?: Configuration): Promise<BaseEntityListResponseShareResponse>;
|
|
409
|
+
/**
|
|
410
|
+
* 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.
|
|
411
|
+
* List devices of account.
|
|
412
|
+
* @param account Specifies the unique account ID (starts with acc_)
|
|
413
|
+
* @param limit Specifies the maximum number of records to return.
|
|
414
|
+
* @param skip Specifies the offset for the first records to return.
|
|
415
|
+
* @param order Specifies the order in which to sort the results.
|
|
252
416
|
*/
|
|
253
|
-
|
|
417
|
+
getDevices(account: string, limit?: number, skip?: number, order?: SortOrder, _options?: Configuration): Promise<BaseEntityListResponseDeviceResponse>;
|
|
254
418
|
}
|
|
255
419
|
import { InventoriesApiRequestFactory, InventoriesApiResponseProcessor } from "../apis/InventoriesApi";
|
|
256
420
|
export declare class PromiseInventoriesApi {
|
|
@@ -411,55 +575,6 @@ export declare class PromiseNotificationsApi {
|
|
|
411
575
|
*/
|
|
412
576
|
getNotifications(limit?: number, skip?: number, order?: SortOrder, expand?: Array<NotificationResponseExpandable>, deleted?: boolean, name?: string, _options?: Configuration): Promise<NotificationListResponse>;
|
|
413
577
|
}
|
|
414
|
-
import { OAuthApiRequestFactory, OAuthApiResponseProcessor } from "../apis/OAuthApi";
|
|
415
|
-
export declare class PromiseOAuthApi {
|
|
416
|
-
private api;
|
|
417
|
-
constructor(configuration: Configuration, requestFactory?: OAuthApiRequestFactory, responseProcessor?: OAuthApiResponseProcessor);
|
|
418
|
-
/**
|
|
419
|
-
* 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.
|
|
420
|
-
* Authorize player with token.
|
|
421
|
-
* @param provider OAuth provider
|
|
422
|
-
* @param oAuthRequest
|
|
423
|
-
*/
|
|
424
|
-
authorizeWithOAuthToken(provider: OAuthProvider, oAuthRequest: OAuthRequest, _options?: Configuration): Promise<AuthorizeWithOAuthToken200Response>;
|
|
425
|
-
/**
|
|
426
|
-
* The endpoint creates oauth configuration for the current project environment.
|
|
427
|
-
* Create oauth configuration.
|
|
428
|
-
* @param body Specifies the oauth provider specific configuration.
|
|
429
|
-
*/
|
|
430
|
-
createOAuthConfig(body: OAuthConfig, _options?: Configuration): Promise<OAuthConfig>;
|
|
431
|
-
/**
|
|
432
|
-
* The endpoint deletes oauth configuration for specified provider for the current project environment.
|
|
433
|
-
* Delete oauth configuration.
|
|
434
|
-
* @param provider Specifies the oauth provider type.
|
|
435
|
-
*/
|
|
436
|
-
deleteOAuthConfig(provider: OAuthProvider, _options?: Configuration): Promise<void>;
|
|
437
|
-
/**
|
|
438
|
-
* The endpoint retrieves oauth configuration for specified provider for the current project environment.
|
|
439
|
-
* Get oauth configuration.
|
|
440
|
-
* @param provider Specifies the oauth provider type.
|
|
441
|
-
*/
|
|
442
|
-
getOAuthConfig(provider: OAuthProvider, _options?: Configuration): Promise<OAuthConfig>;
|
|
443
|
-
/**
|
|
444
|
-
* Retrieves the player based on his id in the external provider system.
|
|
445
|
-
* Retrieve player by external id.
|
|
446
|
-
* @param provider OAuth provider
|
|
447
|
-
* @param externalUserId External user id
|
|
448
|
-
*/
|
|
449
|
-
getPlayerByExternalId(provider: OAuthProvider, externalUserId: string, _options?: Configuration): Promise<PlayerResponse>;
|
|
450
|
-
/**
|
|
451
|
-
* The endpoint retrieves the list of oauth configurations for the current project environment.
|
|
452
|
-
* List of oauth configurations.
|
|
453
|
-
*/
|
|
454
|
-
listOAuthConfig(_options?: Configuration): Promise<OAuthConfigListResponse>;
|
|
455
|
-
/**
|
|
456
|
-
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
|
|
457
|
-
* Retrieve player by token.
|
|
458
|
-
* @param provider OAuth provider
|
|
459
|
-
* @param oAuthRequest
|
|
460
|
-
*/
|
|
461
|
-
verifyOAuthToken(provider: OAuthProvider, oAuthRequest: OAuthRequest, _options?: Configuration): Promise<PlayerResponse>;
|
|
462
|
-
}
|
|
463
578
|
import { PlayersApiRequestFactory, PlayersApiResponseProcessor } from "../apis/PlayersApi";
|
|
464
579
|
export declare class PromisePlayersApi {
|
|
465
580
|
private api;
|
|
@@ -513,28 +628,6 @@ export declare class PromisePlayersApi {
|
|
|
513
628
|
*/
|
|
514
629
|
updatePlayer(id: string, playerUpdateRequest: PlayerUpdateRequest, _options?: Configuration): Promise<PlayerResponse>;
|
|
515
630
|
}
|
|
516
|
-
import { PlayersAuthenticationApiRequestFactory, PlayersAuthenticationApiResponseProcessor } from "../apis/PlayersAuthenticationApi";
|
|
517
|
-
export declare class PromisePlayersAuthenticationApi {
|
|
518
|
-
private api;
|
|
519
|
-
constructor(configuration: Configuration, requestFactory?: PlayersAuthenticationApiRequestFactory, responseProcessor?: PlayersAuthenticationApiResponseProcessor);
|
|
520
|
-
/**
|
|
521
|
-
* List authenticated players.
|
|
522
|
-
* @param limit Specifies the maximum number of records to return.
|
|
523
|
-
* @param skip Specifies the offset for the first records to return.
|
|
524
|
-
* @param order Specifies the order in which to sort the results.
|
|
525
|
-
* @param email Specifies the email address of the user.
|
|
526
|
-
*/
|
|
527
|
-
getAuthenticatedPlayers(limit?: number, skip?: number, order?: SortOrder, email?: string, _options?: Configuration): Promise<AuthPlayerListResponse>;
|
|
528
|
-
/**
|
|
529
|
-
* Register a key for the authenticated player.
|
|
530
|
-
* @param registerPlayerEncryptedKeyRequest
|
|
531
|
-
*/
|
|
532
|
-
registerKey(registerPlayerEncryptedKeyRequest: RegisterPlayerEncryptedKeyRequest, _options?: Configuration): Promise<RegisterPlayerEncryptedKeyResponse>;
|
|
533
|
-
/**
|
|
534
|
-
* Retrieve the key for the authenticated player.
|
|
535
|
-
*/
|
|
536
|
-
retrieveKey(_options?: Configuration): Promise<RetrievePlayerEncryptedKeyResponse>;
|
|
537
|
-
}
|
|
538
631
|
import { PoliciesApiRequestFactory, PoliciesApiResponseProcessor } from "../apis/PoliciesApi";
|
|
539
632
|
export declare class PromisePoliciesApi {
|
|
540
633
|
private api;
|