@openfort/openfort-node 0.6.69 → 0.6.71
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/accountsApiWrapper.js +2 -2
- package/dist/apis/accountsApiWrapper.js.map +1 -1
- package/dist/generated/apis/AccountsApi.d.ts +56 -2
- package/dist/generated/apis/AccountsApi.js +206 -10
- package/dist/generated/apis/AccountsApi.js.map +1 -1
- package/dist/generated/apis/AdminAuthenticationApi.d.ts +15 -1
- package/dist/generated/apis/AdminAuthenticationApi.js +53 -1
- package/dist/generated/apis/AdminAuthenticationApi.js.map +1 -1
- package/dist/generated/apis/AuthenticationApi.d.ts +29 -0
- package/dist/generated/apis/AuthenticationApi.js +106 -0
- package/dist/generated/apis/AuthenticationApi.js.map +1 -1
- package/dist/generated/apis/DevicesApi.d.ts +54 -0
- package/dist/generated/apis/DevicesApi.js +175 -0
- package/dist/generated/apis/DevicesApi.js.map +1 -0
- package/dist/generated/apis/PlayersApi.d.ts +1 -0
- package/dist/generated/apis/PlayersApi.js +1 -0
- package/dist/generated/apis/PlayersApi.js.map +1 -1
- package/dist/generated/apis/PoliciesApi.d.ts +4 -3
- package/dist/generated/apis/PoliciesApi.js +12 -7
- package/dist/generated/apis/PoliciesApi.js.map +1 -1
- package/dist/generated/apis/SignersApi.d.ts +65 -0
- package/dist/generated/apis/SignersApi.js +207 -0
- package/dist/generated/apis/SignersApi.js.map +1 -0
- package/dist/generated/models/AccountCreateRequest.d.ts +30 -0
- package/dist/generated/models/AccountCreateRequest.js +38 -0
- package/dist/generated/models/AccountCreateRequest.js.map +1 -0
- package/dist/generated/models/AccountListQueries.d.ts +8 -4
- package/dist/generated/models/AccountListQueries.js +11 -5
- package/dist/generated/models/AccountListQueries.js.map +1 -1
- package/dist/generated/models/AccountResponse.d.ts +2 -2
- package/dist/generated/models/AccountResponse.js +1 -1
- package/dist/generated/models/AccountResponse.js.map +1 -1
- package/dist/generated/models/AccountResponsePlayer.d.ts +40 -0
- package/dist/generated/models/AccountResponsePlayer.js +74 -0
- package/dist/generated/models/AccountResponsePlayer.js.map +1 -0
- package/dist/generated/models/AccountsListQueries.d.ts +32 -0
- package/dist/generated/models/AccountsListQueries.js +50 -0
- package/dist/generated/models/AccountsListQueries.js.map +1 -0
- package/dist/generated/models/{TelegramThirdPartyConfig.d.ts → AppleNativeOAuthConfig.d.ts} +5 -5
- package/dist/generated/models/{TelegramThirdPartyConfig.js → AppleNativeOAuthConfig.js} +10 -10
- package/dist/generated/models/AppleNativeOAuthConfig.js.map +1 -0
- package/dist/generated/models/{TelegramOAuthConfig.d.ts → AppleOAuthConfig.d.ts} +7 -7
- package/dist/generated/models/{TelegramOAuthConfig.js → AppleOAuthConfig.js} +12 -12
- package/dist/generated/models/AppleOAuthConfig.js.map +1 -0
- package/dist/generated/models/AuthConfig.d.ts +0 -8
- package/dist/generated/models/AuthConfig.js +0 -12
- package/dist/generated/models/AuthConfig.js.map +1 -1
- package/dist/generated/models/AuthMigrationListResponse.d.ts +35 -0
- package/dist/generated/models/AuthMigrationListResponse.js +62 -0
- package/dist/generated/models/AuthMigrationListResponse.js.map +1 -0
- package/dist/generated/models/AuthMigrationResponse.d.ts +49 -0
- package/dist/generated/models/AuthMigrationResponse.js +71 -0
- package/dist/generated/models/AuthMigrationResponse.js.map +1 -0
- package/dist/generated/models/AuthMigrationStatus.d.ts +12 -0
- package/dist/generated/models/{OAuthProviderTELEGRAM.js → AuthMigrationStatus.js} +1 -1
- package/dist/generated/models/AuthMigrationStatus.js.map +1 -0
- package/dist/generated/models/AuthProviderResponse.d.ts +1 -1
- package/dist/generated/models/AuthenticatedPlayerResponse.d.ts +29 -0
- package/dist/generated/models/AuthenticatedPlayerResponse.js +32 -0
- package/dist/generated/models/AuthenticatedPlayerResponse.js.map +1 -0
- package/dist/generated/models/Authorize200Response.d.ts +0 -8
- package/dist/generated/models/Authorize200Response.js +0 -12
- package/dist/generated/models/Authorize200Response.js.map +1 -1
- package/dist/generated/models/CreateAccountRequest.d.ts +1 -1
- package/dist/generated/models/CreateEcosystemConfigurationRequest.d.ts +8 -0
- package/dist/generated/models/CreateEcosystemConfigurationRequest.js +12 -0
- package/dist/generated/models/CreateEcosystemConfigurationRequest.js.map +1 -1
- package/dist/generated/models/{PrismaInputJsonValue.d.ts → CreateMigrationRequest.d.ts} +7 -2
- package/dist/generated/models/CreateMigrationRequest.js +47 -0
- package/dist/generated/models/CreateMigrationRequest.js.map +1 -0
- package/dist/generated/models/CreatePolicyRequest.d.ts +4 -0
- package/dist/generated/models/CreatePolicyRequest.js +6 -0
- package/dist/generated/models/CreatePolicyRequest.js.map +1 -1
- package/dist/generated/models/CreateSignerRequest.d.ts +31 -0
- package/dist/generated/models/CreateSignerRequest.js +44 -0
- package/dist/generated/models/CreateSignerRequest.js.map +1 -0
- package/dist/generated/models/DeviceCreateRequest.d.ts +28 -0
- package/dist/generated/models/DeviceCreateRequest.js +32 -0
- package/dist/generated/models/DeviceCreateRequest.js.map +1 -0
- package/dist/generated/models/EcosystemConfigurationResponse.d.ts +8 -0
- package/dist/generated/models/EcosystemConfigurationResponse.js +12 -0
- package/dist/generated/models/EcosystemConfigurationResponse.js.map +1 -1
- package/dist/generated/models/EstimateTransactionIntentGasResult.d.ts +0 -6
- package/dist/generated/models/EstimateTransactionIntentGasResult.js +0 -36
- package/dist/generated/models/EstimateTransactionIntentGasResult.js.map +1 -1
- package/dist/generated/models/GoogleNativeOAuthConfig.d.ts +40 -0
- package/dist/generated/models/GoogleNativeOAuthConfig.js +47 -0
- package/dist/generated/models/GoogleNativeOAuthConfig.js.map +1 -0
- package/dist/generated/models/LinkedAccountResponse.d.ts +6 -2
- package/dist/generated/models/LinkedAccountResponse.js +13 -1
- package/dist/generated/models/LinkedAccountResponse.js.map +1 -1
- package/dist/generated/models/ListMigrationsRequest.d.ts +48 -0
- package/dist/generated/models/ListMigrationsRequest.js +65 -0
- package/dist/generated/models/ListMigrationsRequest.js.map +1 -0
- package/dist/generated/models/ListQueries.d.ts +31 -0
- package/dist/generated/models/ListQueries.js +44 -0
- package/dist/generated/models/ListQueries.js.map +1 -0
- package/dist/generated/models/ListResponseAccount.d.ts +33 -0
- package/dist/generated/models/ListResponseAccount.js +56 -0
- package/dist/generated/models/ListResponseAccount.js.map +1 -0
- package/dist/generated/models/ListResponseSigner.d.ts +33 -0
- package/dist/generated/models/ListResponseSigner.js +56 -0
- package/dist/generated/models/ListResponseSigner.js.map +1 -0
- package/dist/generated/models/MappingStrategy.d.ts +46 -0
- package/dist/generated/models/MappingStrategy.js +53 -0
- package/dist/generated/models/MappingStrategy.js.map +1 -0
- package/dist/generated/models/OAuthProvders.d.ts +1 -1
- package/dist/generated/models/OAuthProvider.d.ts +1 -1
- package/dist/generated/models/{OAuthProviderTELEGRAM.d.ts → OAuthProviderAPPLE.d.ts} +1 -1
- package/dist/generated/models/{ThirdPartyOAuthProviderTELEGRAMMINIAPP.js → OAuthProviderAPPLE.js} +1 -1
- package/dist/generated/models/OAuthProviderAPPLE.js.map +1 -0
- package/dist/generated/models/ObjectSerializer.d.ts +30 -5
- package/dist/generated/models/ObjectSerializer.js +90 -13
- package/dist/generated/models/ObjectSerializer.js.map +1 -1
- package/dist/generated/models/Policy.d.ts +1 -0
- package/dist/generated/models/Policy.js +6 -0
- package/dist/generated/models/Policy.js.map +1 -1
- package/dist/generated/models/PolicyReportQueries.d.ts +6 -4
- package/dist/generated/models/PolicyReportQueries.js +12 -6
- package/dist/generated/models/PolicyReportQueries.js.map +1 -1
- package/dist/generated/models/PolicyResponse.d.ts +1 -0
- package/dist/generated/models/PolicyResponse.js +6 -0
- package/dist/generated/models/PolicyResponse.js.map +1 -1
- package/dist/generated/models/ShamirParams.d.ts +29 -0
- package/dist/generated/models/ShamirParams.js +38 -0
- package/dist/generated/models/ShamirParams.js.map +1 -0
- package/dist/generated/models/ShamirSigner.d.ts +29 -0
- package/dist/generated/models/ShamirSigner.js +38 -0
- package/dist/generated/models/ShamirSigner.js.map +1 -0
- package/dist/generated/models/Signer.d.ts +33 -0
- package/dist/generated/models/Signer.js +50 -0
- package/dist/generated/models/Signer.js.map +1 -0
- package/dist/generated/models/SignerListQueries.d.ts +33 -0
- package/dist/generated/models/SignerListQueries.js +56 -0
- package/dist/generated/models/SignerListQueries.js.map +1 -0
- package/dist/generated/models/SignerOwner.d.ts +28 -0
- package/dist/generated/models/SignerOwner.js +32 -0
- package/dist/generated/models/SignerOwner.js.map +1 -0
- package/dist/generated/models/SignerResponse.d.ts +29 -0
- package/dist/generated/models/SignerResponse.js +32 -0
- package/dist/generated/models/SignerResponse.js.map +1 -0
- package/dist/generated/models/SwitchChainRequest.d.ts +29 -0
- package/dist/generated/models/SwitchChainRequest.js +38 -0
- package/dist/generated/models/SwitchChainRequest.js.map +1 -0
- package/dist/generated/models/ThirdPartyLinkRequest.d.ts +31 -0
- package/dist/generated/models/ThirdPartyLinkRequest.js +44 -0
- package/dist/generated/models/ThirdPartyLinkRequest.js.map +1 -0
- package/dist/generated/models/ThirdPartyOAuthProvider.d.ts +1 -1
- package/dist/generated/models/{ThirdPartyOAuthProviderTELEGRAMMINIAPP.d.ts → ThirdPartyOAuthProviderAPPLENATIVE.d.ts} +1 -1
- package/dist/generated/models/ThirdPartyOAuthProviderAPPLENATIVE.js +14 -0
- package/dist/generated/models/ThirdPartyOAuthProviderAPPLENATIVE.js.map +1 -0
- package/dist/generated/models/ThirdPartyOAuthProviderGOOGLENATIVE.d.ts +12 -0
- package/dist/generated/models/ThirdPartyOAuthProviderGOOGLENATIVE.js +14 -0
- package/dist/generated/models/ThirdPartyOAuthProviderGOOGLENATIVE.js.map +1 -0
- package/dist/generated/models/TransactionIntentResponsePolicy.d.ts +1 -0
- package/dist/generated/models/TransactionIntentResponsePolicy.js +6 -0
- package/dist/generated/models/TransactionIntentResponsePolicy.js.map +1 -1
- package/dist/generated/models/UpdateMigrationRequest.d.ts +34 -0
- package/dist/generated/models/UpdateMigrationRequest.js +41 -0
- package/dist/generated/models/UpdateMigrationRequest.js.map +1 -0
- package/dist/generated/models/UpdatePolicyRequest.d.ts +4 -0
- package/dist/generated/models/UpdatePolicyRequest.js +6 -0
- package/dist/generated/models/UpdatePolicyRequest.js.map +1 -1
- package/dist/generated/models/all.d.ts +30 -5
- package/dist/generated/models/all.js +30 -5
- package/dist/generated/models/all.js.map +1 -1
- package/dist/generated/types/ObjectParamAPI.d.ts +293 -10
- package/dist/generated/types/ObjectParamAPI.js +132 -28
- package/dist/generated/types/ObjectParamAPI.js.map +1 -1
- package/dist/generated/types/ObservableAPI.d.ts +106 -6
- package/dist/generated/types/ObservableAPI.js +314 -9
- package/dist/generated/types/ObservableAPI.js.map +1 -1
- package/dist/generated/types/PromiseAPI.d.ts +102 -6
- package/dist/generated/types/PromiseAPI.js +165 -32
- package/dist/generated/types/PromiseAPI.js.map +1 -1
- package/dist/models/getAccountRequest.d.ts +2 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/generated/models/OAuthProviderTELEGRAM.js.map +0 -1
- package/dist/generated/models/PrismaInputJsonValue.js +0 -28
- package/dist/generated/models/PrismaInputJsonValue.js.map +0 -1
- package/dist/generated/models/TelegramOAuthConfig.js.map +0 -1
- package/dist/generated/models/TelegramThirdPartyConfig.js.map +0 -1
- package/dist/generated/models/ThirdPartyOAuthProviderTELEGRAMMINIAPP.js.map +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Configuration } from '../configuration';
|
|
2
2
|
import { Observable } from '../rxjsStub';
|
|
3
3
|
import { APITopic } from '../models/APITopic';
|
|
4
|
+
import { AccountCreateRequest } from '../models/AccountCreateRequest';
|
|
4
5
|
import { AccountListResponse } from '../models/AccountListResponse';
|
|
5
6
|
import { AccountResponse } from '../models/AccountResponse';
|
|
6
7
|
import { AccountResponseExpandable } from '../models/AccountResponseExpandable';
|
|
@@ -15,6 +16,7 @@ import { AuthSessionResponse } from '../models/AuthSessionResponse';
|
|
|
15
16
|
import { AuthenticateOAuthRequest } from '../models/AuthenticateOAuthRequest';
|
|
16
17
|
import { Authorize200Response } from '../models/Authorize200Response';
|
|
17
18
|
import { AuthorizePlayerRequest } from '../models/AuthorizePlayerRequest';
|
|
19
|
+
import { BaseEntityListResponseDeviceResponse } from '../models/BaseEntityListResponseDeviceResponse';
|
|
18
20
|
import { BaseEntityListResponseLogResponse } from '../models/BaseEntityListResponseLogResponse';
|
|
19
21
|
import { BaseEntityListResponseTriggerResponse } from '../models/BaseEntityListResponseTriggerResponse';
|
|
20
22
|
import { CancelTransferOwnershipRequest } from '../models/CancelTransferOwnershipRequest';
|
|
@@ -34,6 +36,7 @@ import { CreatePaymasterRequest } from '../models/CreatePaymasterRequest';
|
|
|
34
36
|
import { CreatePolicyRequest } from '../models/CreatePolicyRequest';
|
|
35
37
|
import { CreatePolicyRuleRequest } from '../models/CreatePolicyRuleRequest';
|
|
36
38
|
import { CreateSessionRequest } from '../models/CreateSessionRequest';
|
|
39
|
+
import { CreateSignerRequest } from '../models/CreateSignerRequest';
|
|
37
40
|
import { CreateSubscriptionRequest } from '../models/CreateSubscriptionRequest';
|
|
38
41
|
import { CreateTransactionIntentRequest } from '../models/CreateTransactionIntentRequest';
|
|
39
42
|
import { CreateTriggerRequest } from '../models/CreateTriggerRequest';
|
|
@@ -44,6 +47,8 @@ import { DeveloperAccountGetMessageResponse } from '../models/DeveloperAccountGe
|
|
|
44
47
|
import { DeveloperAccountListResponse } from '../models/DeveloperAccountListResponse';
|
|
45
48
|
import { DeveloperAccountResponse } from '../models/DeveloperAccountResponse';
|
|
46
49
|
import { DeveloperAccountResponseExpandable } from '../models/DeveloperAccountResponseExpandable';
|
|
50
|
+
import { DeviceCreateRequest } from '../models/DeviceCreateRequest';
|
|
51
|
+
import { DeviceResponse } from '../models/DeviceResponse';
|
|
47
52
|
import { EstimateTransactionIntentGasResult } from '../models/EstimateTransactionIntentGasResult';
|
|
48
53
|
import { EventDeleteResponse } from '../models/EventDeleteResponse';
|
|
49
54
|
import { EventListResponse } from '../models/EventListResponse';
|
|
@@ -55,6 +60,8 @@ import { GasReportTransactionIntentsListResponse } from '../models/GasReportTran
|
|
|
55
60
|
import { InventoryListResponse } from '../models/InventoryListResponse';
|
|
56
61
|
import { InventoryResponse } from '../models/InventoryResponse';
|
|
57
62
|
import { JwtKeyResponse } from '../models/JwtKeyResponse';
|
|
63
|
+
import { ListResponseAccount } from '../models/ListResponseAccount';
|
|
64
|
+
import { ListResponseSigner } from '../models/ListResponseSigner';
|
|
58
65
|
import { LoginOIDCRequest } from '../models/LoginOIDCRequest';
|
|
59
66
|
import { LoginRequest } from '../models/LoginRequest';
|
|
60
67
|
import { LogoutRequest } from '../models/LogoutRequest';
|
|
@@ -96,6 +103,7 @@ import { SessionResponseExpandable } from '../models/SessionResponseExpandable';
|
|
|
96
103
|
import { SignPayloadRequest } from '../models/SignPayloadRequest';
|
|
97
104
|
import { SignPayloadResponse } from '../models/SignPayloadResponse';
|
|
98
105
|
import { SignatureRequest } from '../models/SignatureRequest';
|
|
106
|
+
import { SignerResponse } from '../models/SignerResponse';
|
|
99
107
|
import { SignupRequest } from '../models/SignupRequest';
|
|
100
108
|
import { SortOrder } from '../models/SortOrder';
|
|
101
109
|
import { StartRecoveryRequest } from '../models/StartRecoveryRequest';
|
|
@@ -104,6 +112,7 @@ import { SubscriptionDeleteResponse } from '../models/SubscriptionDeleteResponse
|
|
|
104
112
|
import { SubscriptionListResponse } from '../models/SubscriptionListResponse';
|
|
105
113
|
import { SubscriptionResponse } from '../models/SubscriptionResponse';
|
|
106
114
|
import { TestTrigger200Response } from '../models/TestTrigger200Response';
|
|
115
|
+
import { ThirdPartyLinkRequest } from '../models/ThirdPartyLinkRequest';
|
|
107
116
|
import { ThirdPartyOAuthRequest } from '../models/ThirdPartyOAuthRequest';
|
|
108
117
|
import { TransactionIntentListResponse } from '../models/TransactionIntentListResponse';
|
|
109
118
|
import { TransactionIntentResponse } from '../models/TransactionIntentResponse';
|
|
@@ -144,6 +153,10 @@ export declare class ObservableAccountsApi {
|
|
|
144
153
|
* @param createAccountRequest
|
|
145
154
|
*/
|
|
146
155
|
createAccount(createAccountRequest: CreateAccountRequest, _options?: Configuration): Observable<AccountResponse>;
|
|
156
|
+
/**
|
|
157
|
+
* @param accountCreateRequest
|
|
158
|
+
*/
|
|
159
|
+
createAccountV2(accountCreateRequest: AccountCreateRequest, _options?: Configuration): Observable<AccountResponse>;
|
|
147
160
|
/**
|
|
148
161
|
* This endpoint can be used to deploy a smart contract account that was counterfactually generated.
|
|
149
162
|
* Deploy an account.
|
|
@@ -151,6 +164,10 @@ export declare class ObservableAccountsApi {
|
|
|
151
164
|
* @param deployRequest
|
|
152
165
|
*/
|
|
153
166
|
deployAccount(id: string, deployRequest: DeployRequest, _options?: Configuration): Observable<AccountResponse>;
|
|
167
|
+
/**
|
|
168
|
+
* @param id
|
|
169
|
+
*/
|
|
170
|
+
disableAccount(id: string, _options?: Configuration): Observable<void>;
|
|
154
171
|
/**
|
|
155
172
|
* Retrieves the details of an existing account. Supply the unique account ID from either a account creation request or the account list, and Openfort will return the corresponding account information. Returns the latest 10 transaction intents created by this account.
|
|
156
173
|
* Get existing account.
|
|
@@ -158,16 +175,28 @@ export declare class ObservableAccountsApi {
|
|
|
158
175
|
* @param expand
|
|
159
176
|
*/
|
|
160
177
|
getAccount(id: string, expand?: Array<AccountResponseExpandable>, _options?: Configuration): Observable<AccountResponse>;
|
|
178
|
+
/**
|
|
179
|
+
* @param accountId
|
|
180
|
+
*/
|
|
181
|
+
getAccountV2(accountId: string, _options?: Configuration): Observable<AccountResponse>;
|
|
161
182
|
/**
|
|
162
183
|
* 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. Returns the latest 10 transaction intents for each account. By default, a maximum of 10 accounts are shown per page.
|
|
163
184
|
* List accounts of a player.
|
|
164
|
-
* @param player Specifies the unique player ID (starts with pla_)
|
|
165
185
|
* @param limit Specifies the maximum number of records to return.
|
|
166
186
|
* @param skip Specifies the offset for the first records to return.
|
|
167
187
|
* @param order Specifies the order in which to sort the results.
|
|
188
|
+
* @param player Specifies the unique player ID (starts with pla_)
|
|
189
|
+
* @param address Specifies the address of the account
|
|
168
190
|
* @param expand Specifies the fields to expand in the response.
|
|
169
191
|
*/
|
|
170
|
-
getAccounts(
|
|
192
|
+
getAccounts(limit?: number, skip?: number, order?: SortOrder, player?: string, address?: string, expand?: Array<AccountResponseExpandable>, _options?: Configuration): Observable<AccountListResponse>;
|
|
193
|
+
/**
|
|
194
|
+
* @param limit
|
|
195
|
+
* @param skip
|
|
196
|
+
* @param order
|
|
197
|
+
* @param accountType
|
|
198
|
+
*/
|
|
199
|
+
listAccountsV2(limit?: number, skip?: number, order?: 'asc' | 'desc', accountType?: string, _options?: Configuration): Observable<ListResponseAccount>;
|
|
171
200
|
/**
|
|
172
201
|
* Perform a request to change the owner of an account. To perform an update on the owner of an account, first you must provide a new owner address. Once requested, the owner must accept to take ownership by calling `acceptOwnership()` in the smart contract account.
|
|
173
202
|
* Request transfer ownership of account.
|
|
@@ -224,7 +253,7 @@ export declare class ObservableAdminAuthenticationApi {
|
|
|
224
253
|
*/
|
|
225
254
|
createOAuthConfig(body: AuthConfig, _options?: Configuration): Observable<AuthConfig>;
|
|
226
255
|
/**
|
|
227
|
-
* Deletes a player auth object. It will delete all linked accounts the player is authenticated with.
|
|
256
|
+
* Deletes a player auth object. It will delete all linked accounts the player is authenticated with. If the player has a linked embedded signer, it will be deleted as well.
|
|
228
257
|
* Deletes a player auth object.
|
|
229
258
|
* @param id Specifies the unique player ID (starts with pla_).
|
|
230
259
|
*/
|
|
@@ -235,6 +264,12 @@ export declare class ObservableAdminAuthenticationApi {
|
|
|
235
264
|
* @param provider Specifies the oauth provider type.
|
|
236
265
|
*/
|
|
237
266
|
deleteOAuthConfig(provider: OAuthProvider, _options?: Configuration): Observable<void>;
|
|
267
|
+
/**
|
|
268
|
+
* Retrieves an authenticated player. Players have linked accounts and are authenticated with a provider.
|
|
269
|
+
* Authenticated player.
|
|
270
|
+
* @param id
|
|
271
|
+
*/
|
|
272
|
+
getAuthPlayer(id: string, _options?: Configuration): Observable<AuthPlayerResponse>;
|
|
238
273
|
/**
|
|
239
274
|
* Retrieves a list of authenticated players. Players have linked accounts and are authenticated with a provider.
|
|
240
275
|
* List authenticated players.
|
|
@@ -335,6 +370,12 @@ export declare class ObservableAuthenticationApi {
|
|
|
335
370
|
* @param sIWEAuthenticateRequest
|
|
336
371
|
*/
|
|
337
372
|
linkSIWE(sIWEAuthenticateRequest: SIWEAuthenticateRequest, _options?: Configuration): Observable<AuthPlayerResponse | void>;
|
|
373
|
+
/**
|
|
374
|
+
* Initialize Link OAuth.
|
|
375
|
+
* @param thirdPartyLinkRequest
|
|
376
|
+
* @param xGame
|
|
377
|
+
*/
|
|
378
|
+
linkThirdParty(thirdPartyLinkRequest: ThirdPartyLinkRequest, xGame?: string, _options?: Configuration): Observable<AuthPlayerResponse>;
|
|
338
379
|
/**
|
|
339
380
|
* Authenticate a player based on email and password.
|
|
340
381
|
* Email and password login.
|
|
@@ -369,6 +410,12 @@ export declare class ObservableAuthenticationApi {
|
|
|
369
410
|
* @param refreshTokenRequest
|
|
370
411
|
*/
|
|
371
412
|
refresh(refreshTokenRequest: RefreshTokenRequest, _options?: Configuration): Observable<AuthResponse>;
|
|
413
|
+
/**
|
|
414
|
+
* Create a guest player.
|
|
415
|
+
* Create a guest player.
|
|
416
|
+
* @param xGame
|
|
417
|
+
*/
|
|
418
|
+
registerGuest(xGame?: string, _options?: Configuration): Observable<AuthResponse>;
|
|
372
419
|
/**
|
|
373
420
|
* Start the Email Verification process for a player.
|
|
374
421
|
* Request an Email Verification.
|
|
@@ -498,6 +545,30 @@ export declare class ObservableDefaultApi {
|
|
|
498
545
|
*/
|
|
499
546
|
list(enabled?: boolean, _options?: Configuration): Observable<AuthProviderListResponse>;
|
|
500
547
|
}
|
|
548
|
+
import { DevicesApiRequestFactory, DevicesApiResponseProcessor } from "../apis/DevicesApi";
|
|
549
|
+
export declare class ObservableDevicesApi {
|
|
550
|
+
private requestFactory;
|
|
551
|
+
private responseProcessor;
|
|
552
|
+
private configuration;
|
|
553
|
+
constructor(configuration: Configuration, requestFactory?: DevicesApiRequestFactory, responseProcessor?: DevicesApiResponseProcessor);
|
|
554
|
+
/**
|
|
555
|
+
* @param signerId
|
|
556
|
+
* @param deviceCreateRequest
|
|
557
|
+
*/
|
|
558
|
+
createDevice(signerId: string, deviceCreateRequest: DeviceCreateRequest, _options?: Configuration): Observable<DeviceResponse>;
|
|
559
|
+
/**
|
|
560
|
+
* @param signerId
|
|
561
|
+
* @param deviceId
|
|
562
|
+
*/
|
|
563
|
+
getDevice(signerId: string, deviceId: string, _options?: Configuration): Observable<DeviceResponse>;
|
|
564
|
+
/**
|
|
565
|
+
* @param signerId
|
|
566
|
+
* @param limit
|
|
567
|
+
* @param skip
|
|
568
|
+
* @param order
|
|
569
|
+
*/
|
|
570
|
+
listDevices(signerId: string, limit?: number, skip?: number, order?: 'asc' | 'desc', _options?: Configuration): Observable<BaseEntityListResponseDeviceResponse>;
|
|
571
|
+
}
|
|
501
572
|
import { EventsApiRequestFactory, EventsApiResponseProcessor } from "../apis/EventsApi";
|
|
502
573
|
export declare class ObservableEventsApi {
|
|
503
574
|
private requestFactory;
|
|
@@ -714,6 +785,7 @@ export declare class ObservablePlayersApi {
|
|
|
714
785
|
*/
|
|
715
786
|
createPlayer(playerCreateRequest: PlayerCreateRequest, _options?: Configuration): Observable<PlayerResponse>;
|
|
716
787
|
/**
|
|
788
|
+
* It will delete all linked accounts the player is authenticated with. If the player has a linked embedded signer, it will be deleted as well.
|
|
717
789
|
* Deletes a player object.
|
|
718
790
|
* @param id Specifies the unique player ID (starts with pla_).
|
|
719
791
|
*/
|
|
@@ -819,10 +891,11 @@ export declare class ObservablePoliciesApi {
|
|
|
819
891
|
/**
|
|
820
892
|
* List all gas reports of a policy.
|
|
821
893
|
* @param id Specifies the unique policy ID (starts with pol_).
|
|
822
|
-
* @param
|
|
823
|
-
* @param
|
|
894
|
+
* @param limit Specifies the maximum number of records to return.
|
|
895
|
+
* @param skip Specifies the offset for the first records to return.
|
|
896
|
+
* @param order Specifies the order in which to sort the results.
|
|
824
897
|
*/
|
|
825
|
-
getPolicyTotalGasUsage(id: string,
|
|
898
|
+
getPolicyTotalGasUsage(id: string, limit?: number, skip?: number, order?: SortOrder, _options?: Configuration): Observable<GasReportListResponse>;
|
|
826
899
|
/**
|
|
827
900
|
* Update a policy object.
|
|
828
901
|
* @param id Specifies the unique policy ID (starts with pol_).
|
|
@@ -955,6 +1028,33 @@ export declare class ObservableSettingsApi {
|
|
|
955
1028
|
*/
|
|
956
1029
|
updateDeveloperAccount(id: string, updateDeveloperAccountCreateRequest: UpdateDeveloperAccountCreateRequest, _options?: Configuration): Observable<DeveloperAccountResponse>;
|
|
957
1030
|
}
|
|
1031
|
+
import { SignersApiRequestFactory, SignersApiResponseProcessor } from "../apis/SignersApi";
|
|
1032
|
+
export declare class ObservableSignersApi {
|
|
1033
|
+
private requestFactory;
|
|
1034
|
+
private responseProcessor;
|
|
1035
|
+
private configuration;
|
|
1036
|
+
constructor(configuration: Configuration, requestFactory?: SignersApiRequestFactory, responseProcessor?: SignersApiResponseProcessor);
|
|
1037
|
+
/**
|
|
1038
|
+
* @param createSignerRequest
|
|
1039
|
+
*/
|
|
1040
|
+
createSigner(createSignerRequest: CreateSignerRequest, _options?: Configuration): Observable<SignerResponse>;
|
|
1041
|
+
/**
|
|
1042
|
+
* @param signerId
|
|
1043
|
+
*/
|
|
1044
|
+
exportSigner(signerId: string, _options?: Configuration): Observable<void>;
|
|
1045
|
+
/**
|
|
1046
|
+
* @param signerId
|
|
1047
|
+
*/
|
|
1048
|
+
getSigner(signerId: string, _options?: Configuration): Observable<SignerResponse>;
|
|
1049
|
+
/**
|
|
1050
|
+
* @param limit
|
|
1051
|
+
* @param skip
|
|
1052
|
+
* @param order
|
|
1053
|
+
* @param signerType
|
|
1054
|
+
* @param account
|
|
1055
|
+
*/
|
|
1056
|
+
listSigners(limit?: number, skip?: number, order?: 'asc' | 'desc', signerType?: string, account?: string, _options?: Configuration): Observable<ListResponseSigner>;
|
|
1057
|
+
}
|
|
958
1058
|
import { SubscriptionsApiRequestFactory, SubscriptionsApiResponseProcessor } from "../apis/SubscriptionsApi";
|
|
959
1059
|
export declare class ObservableSubscriptionsApi {
|
|
960
1060
|
private requestFactory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ObservableTransactionIntentsApi = exports.ObservableSubscriptionsApi = exports.ObservableSettingsApi = exports.ObservableSessionsApi = exports.ObservablePolicyRulesApi = exports.ObservablePoliciesApi = exports.ObservablePlayersApi = exports.ObservablePaymasterApi = exports.ObservableInventoriesApi = exports.ObservableForwarderContractApi = exports.ObservableExchangeApi = exports.ObservableEventsApi = exports.ObservableDefaultApi = exports.ObservableContractsApi = exports.ObservableAuthenticationApi = exports.ObservableAdminAuthenticationApi = exports.ObservableAccountsApi = void 0;
|
|
3
|
+
exports.ObservableTransactionIntentsApi = exports.ObservableSubscriptionsApi = exports.ObservableSignersApi = exports.ObservableSettingsApi = exports.ObservableSessionsApi = exports.ObservablePolicyRulesApi = exports.ObservablePoliciesApi = exports.ObservablePlayersApi = exports.ObservablePaymasterApi = exports.ObservableInventoriesApi = exports.ObservableForwarderContractApi = exports.ObservableExchangeApi = exports.ObservableEventsApi = exports.ObservableDevicesApi = exports.ObservableDefaultApi = exports.ObservableContractsApi = exports.ObservableAuthenticationApi = exports.ObservableAdminAuthenticationApi = exports.ObservableAccountsApi = void 0;
|
|
4
4
|
const rxjsStub_1 = require("../rxjsStub");
|
|
5
5
|
const rxjsStub_2 = require("../rxjsStub");
|
|
6
6
|
const AccountsApi_1 = require("../apis/AccountsApi");
|
|
@@ -74,6 +74,25 @@ class ObservableAccountsApi {
|
|
|
74
74
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createAccount(rsp)));
|
|
75
75
|
}));
|
|
76
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* @param accountCreateRequest
|
|
79
|
+
*/
|
|
80
|
+
createAccountV2(accountCreateRequest, _options) {
|
|
81
|
+
const requestContextPromise = this.requestFactory.createAccountV2(accountCreateRequest, _options);
|
|
82
|
+
// build promise chain
|
|
83
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
84
|
+
for (let middleware of this.configuration.middleware) {
|
|
85
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
86
|
+
}
|
|
87
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
88
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
89
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
90
|
+
for (let middleware of this.configuration.middleware) {
|
|
91
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
92
|
+
}
|
|
93
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createAccountV2(rsp)));
|
|
94
|
+
}));
|
|
95
|
+
}
|
|
77
96
|
/**
|
|
78
97
|
* This endpoint can be used to deploy a smart contract account that was counterfactually generated.
|
|
79
98
|
* Deploy an account.
|
|
@@ -96,6 +115,25 @@ class ObservableAccountsApi {
|
|
|
96
115
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deployAccount(rsp)));
|
|
97
116
|
}));
|
|
98
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* @param id
|
|
120
|
+
*/
|
|
121
|
+
disableAccount(id, _options) {
|
|
122
|
+
const requestContextPromise = this.requestFactory.disableAccount(id, _options);
|
|
123
|
+
// build promise chain
|
|
124
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
125
|
+
for (let middleware of this.configuration.middleware) {
|
|
126
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
127
|
+
}
|
|
128
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
129
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
130
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
131
|
+
for (let middleware of this.configuration.middleware) {
|
|
132
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
133
|
+
}
|
|
134
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.disableAccount(rsp)));
|
|
135
|
+
}));
|
|
136
|
+
}
|
|
99
137
|
/**
|
|
100
138
|
* Retrieves the details of an existing account. Supply the unique account ID from either a account creation request or the account list, and Openfort will return the corresponding account information. Returns the latest 10 transaction intents created by this account.
|
|
101
139
|
* Get existing account.
|
|
@@ -118,17 +156,37 @@ class ObservableAccountsApi {
|
|
|
118
156
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getAccount(rsp)));
|
|
119
157
|
}));
|
|
120
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* @param accountId
|
|
161
|
+
*/
|
|
162
|
+
getAccountV2(accountId, _options) {
|
|
163
|
+
const requestContextPromise = this.requestFactory.getAccountV2(accountId, _options);
|
|
164
|
+
// build promise chain
|
|
165
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
166
|
+
for (let middleware of this.configuration.middleware) {
|
|
167
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
168
|
+
}
|
|
169
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
170
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
171
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
172
|
+
for (let middleware of this.configuration.middleware) {
|
|
173
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
174
|
+
}
|
|
175
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getAccountV2(rsp)));
|
|
176
|
+
}));
|
|
177
|
+
}
|
|
121
178
|
/**
|
|
122
179
|
* 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. Returns the latest 10 transaction intents for each account. By default, a maximum of 10 accounts are shown per page.
|
|
123
180
|
* List accounts of a player.
|
|
124
|
-
* @param player Specifies the unique player ID (starts with pla_)
|
|
125
181
|
* @param limit Specifies the maximum number of records to return.
|
|
126
182
|
* @param skip Specifies the offset for the first records to return.
|
|
127
183
|
* @param order Specifies the order in which to sort the results.
|
|
184
|
+
* @param player Specifies the unique player ID (starts with pla_)
|
|
185
|
+
* @param address Specifies the address of the account
|
|
128
186
|
* @param expand Specifies the fields to expand in the response.
|
|
129
187
|
*/
|
|
130
|
-
getAccounts(
|
|
131
|
-
const requestContextPromise = this.requestFactory.getAccounts(
|
|
188
|
+
getAccounts(limit, skip, order, player, address, expand, _options) {
|
|
189
|
+
const requestContextPromise = this.requestFactory.getAccounts(limit, skip, order, player, address, expand, _options);
|
|
132
190
|
// build promise chain
|
|
133
191
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
134
192
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -143,6 +201,28 @@ class ObservableAccountsApi {
|
|
|
143
201
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getAccounts(rsp)));
|
|
144
202
|
}));
|
|
145
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* @param limit
|
|
206
|
+
* @param skip
|
|
207
|
+
* @param order
|
|
208
|
+
* @param accountType
|
|
209
|
+
*/
|
|
210
|
+
listAccountsV2(limit, skip, order, accountType, _options) {
|
|
211
|
+
const requestContextPromise = this.requestFactory.listAccountsV2(limit, skip, order, accountType, _options);
|
|
212
|
+
// build promise chain
|
|
213
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
214
|
+
for (let middleware of this.configuration.middleware) {
|
|
215
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
216
|
+
}
|
|
217
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
218
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
219
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
220
|
+
for (let middleware of this.configuration.middleware) {
|
|
221
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
222
|
+
}
|
|
223
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.listAccountsV2(rsp)));
|
|
224
|
+
}));
|
|
225
|
+
}
|
|
146
226
|
/**
|
|
147
227
|
* Perform a request to change the owner of an account. To perform an update on the owner of an account, first you must provide a new owner address. Once requested, the owner must accept to take ownership by calling `acceptOwnership()` in the smart contract account.
|
|
148
228
|
* Request transfer ownership of account.
|
|
@@ -321,7 +401,7 @@ class ObservableAdminAuthenticationApi {
|
|
|
321
401
|
}));
|
|
322
402
|
}
|
|
323
403
|
/**
|
|
324
|
-
* Deletes a player auth object. It will delete all linked accounts the player is authenticated with.
|
|
404
|
+
* Deletes a player auth object. It will delete all linked accounts the player is authenticated with. If the player has a linked embedded signer, it will be deleted as well.
|
|
325
405
|
* Deletes a player auth object.
|
|
326
406
|
* @param id Specifies the unique player ID (starts with pla_).
|
|
327
407
|
*/
|
|
@@ -362,6 +442,27 @@ class ObservableAdminAuthenticationApi {
|
|
|
362
442
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.deleteOAuthConfig(rsp)));
|
|
363
443
|
}));
|
|
364
444
|
}
|
|
445
|
+
/**
|
|
446
|
+
* Retrieves an authenticated player. Players have linked accounts and are authenticated with a provider.
|
|
447
|
+
* Authenticated player.
|
|
448
|
+
* @param id
|
|
449
|
+
*/
|
|
450
|
+
getAuthPlayer(id, _options) {
|
|
451
|
+
const requestContextPromise = this.requestFactory.getAuthPlayer(id, _options);
|
|
452
|
+
// build promise chain
|
|
453
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
454
|
+
for (let middleware of this.configuration.middleware) {
|
|
455
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
456
|
+
}
|
|
457
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
458
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
459
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
460
|
+
for (let middleware of this.configuration.middleware) {
|
|
461
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
462
|
+
}
|
|
463
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getAuthPlayer(rsp)));
|
|
464
|
+
}));
|
|
465
|
+
}
|
|
365
466
|
/**
|
|
366
467
|
* Retrieves a list of authenticated players. Players have linked accounts and are authenticated with a provider.
|
|
367
468
|
* List authenticated players.
|
|
@@ -689,6 +790,27 @@ class ObservableAuthenticationApi {
|
|
|
689
790
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.linkSIWE(rsp)));
|
|
690
791
|
}));
|
|
691
792
|
}
|
|
793
|
+
/**
|
|
794
|
+
* Initialize Link OAuth.
|
|
795
|
+
* @param thirdPartyLinkRequest
|
|
796
|
+
* @param xGame
|
|
797
|
+
*/
|
|
798
|
+
linkThirdParty(thirdPartyLinkRequest, xGame, _options) {
|
|
799
|
+
const requestContextPromise = this.requestFactory.linkThirdParty(thirdPartyLinkRequest, xGame, _options);
|
|
800
|
+
// build promise chain
|
|
801
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
802
|
+
for (let middleware of this.configuration.middleware) {
|
|
803
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
804
|
+
}
|
|
805
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
806
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
807
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
808
|
+
for (let middleware of this.configuration.middleware) {
|
|
809
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
810
|
+
}
|
|
811
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.linkThirdParty(rsp)));
|
|
812
|
+
}));
|
|
813
|
+
}
|
|
692
814
|
/**
|
|
693
815
|
* Authenticate a player based on email and password.
|
|
694
816
|
* Email and password login.
|
|
@@ -813,6 +935,27 @@ class ObservableAuthenticationApi {
|
|
|
813
935
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.refresh(rsp)));
|
|
814
936
|
}));
|
|
815
937
|
}
|
|
938
|
+
/**
|
|
939
|
+
* Create a guest player.
|
|
940
|
+
* Create a guest player.
|
|
941
|
+
* @param xGame
|
|
942
|
+
*/
|
|
943
|
+
registerGuest(xGame, _options) {
|
|
944
|
+
const requestContextPromise = this.requestFactory.registerGuest(xGame, _options);
|
|
945
|
+
// build promise chain
|
|
946
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
947
|
+
for (let middleware of this.configuration.middleware) {
|
|
948
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
949
|
+
}
|
|
950
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
951
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
952
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
953
|
+
for (let middleware of this.configuration.middleware) {
|
|
954
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
955
|
+
}
|
|
956
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.registerGuest(rsp)));
|
|
957
|
+
}));
|
|
958
|
+
}
|
|
816
959
|
/**
|
|
817
960
|
* Start the Email Verification process for a player.
|
|
818
961
|
* Request an Email Verification.
|
|
@@ -1217,6 +1360,77 @@ class ObservableDefaultApi {
|
|
|
1217
1360
|
}
|
|
1218
1361
|
}
|
|
1219
1362
|
exports.ObservableDefaultApi = ObservableDefaultApi;
|
|
1363
|
+
const DevicesApi_1 = require("../apis/DevicesApi");
|
|
1364
|
+
class ObservableDevicesApi {
|
|
1365
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
1366
|
+
this.configuration = configuration;
|
|
1367
|
+
this.requestFactory = requestFactory || new DevicesApi_1.DevicesApiRequestFactory(configuration);
|
|
1368
|
+
this.responseProcessor = responseProcessor || new DevicesApi_1.DevicesApiResponseProcessor();
|
|
1369
|
+
}
|
|
1370
|
+
/**
|
|
1371
|
+
* @param signerId
|
|
1372
|
+
* @param deviceCreateRequest
|
|
1373
|
+
*/
|
|
1374
|
+
createDevice(signerId, deviceCreateRequest, _options) {
|
|
1375
|
+
const requestContextPromise = this.requestFactory.createDevice(signerId, deviceCreateRequest, _options);
|
|
1376
|
+
// build promise chain
|
|
1377
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1378
|
+
for (let middleware of this.configuration.middleware) {
|
|
1379
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1380
|
+
}
|
|
1381
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1382
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1383
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1384
|
+
for (let middleware of this.configuration.middleware) {
|
|
1385
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1386
|
+
}
|
|
1387
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createDevice(rsp)));
|
|
1388
|
+
}));
|
|
1389
|
+
}
|
|
1390
|
+
/**
|
|
1391
|
+
* @param signerId
|
|
1392
|
+
* @param deviceId
|
|
1393
|
+
*/
|
|
1394
|
+
getDevice(signerId, deviceId, _options) {
|
|
1395
|
+
const requestContextPromise = this.requestFactory.getDevice(signerId, deviceId, _options);
|
|
1396
|
+
// build promise chain
|
|
1397
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1398
|
+
for (let middleware of this.configuration.middleware) {
|
|
1399
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1400
|
+
}
|
|
1401
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1402
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1403
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1404
|
+
for (let middleware of this.configuration.middleware) {
|
|
1405
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1406
|
+
}
|
|
1407
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getDevice(rsp)));
|
|
1408
|
+
}));
|
|
1409
|
+
}
|
|
1410
|
+
/**
|
|
1411
|
+
* @param signerId
|
|
1412
|
+
* @param limit
|
|
1413
|
+
* @param skip
|
|
1414
|
+
* @param order
|
|
1415
|
+
*/
|
|
1416
|
+
listDevices(signerId, limit, skip, order, _options) {
|
|
1417
|
+
const requestContextPromise = this.requestFactory.listDevices(signerId, limit, skip, order, _options);
|
|
1418
|
+
// build promise chain
|
|
1419
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1420
|
+
for (let middleware of this.configuration.middleware) {
|
|
1421
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1422
|
+
}
|
|
1423
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1424
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1425
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1426
|
+
for (let middleware of this.configuration.middleware) {
|
|
1427
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1428
|
+
}
|
|
1429
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.listDevices(rsp)));
|
|
1430
|
+
}));
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
exports.ObservableDevicesApi = ObservableDevicesApi;
|
|
1220
1434
|
const EventsApi_1 = require("../apis/EventsApi");
|
|
1221
1435
|
class ObservableEventsApi {
|
|
1222
1436
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
@@ -1804,6 +2018,7 @@ class ObservablePlayersApi {
|
|
|
1804
2018
|
}));
|
|
1805
2019
|
}
|
|
1806
2020
|
/**
|
|
2021
|
+
* It will delete all linked accounts the player is authenticated with. If the player has a linked embedded signer, it will be deleted as well.
|
|
1807
2022
|
* Deletes a player object.
|
|
1808
2023
|
* @param id Specifies the unique player ID (starts with pla_).
|
|
1809
2024
|
*/
|
|
@@ -2121,11 +2336,12 @@ class ObservablePoliciesApi {
|
|
|
2121
2336
|
/**
|
|
2122
2337
|
* List all gas reports of a policy.
|
|
2123
2338
|
* @param id Specifies the unique policy ID (starts with pol_).
|
|
2124
|
-
* @param
|
|
2125
|
-
* @param
|
|
2339
|
+
* @param limit Specifies the maximum number of records to return.
|
|
2340
|
+
* @param skip Specifies the offset for the first records to return.
|
|
2341
|
+
* @param order Specifies the order in which to sort the results.
|
|
2126
2342
|
*/
|
|
2127
|
-
getPolicyTotalGasUsage(id,
|
|
2128
|
-
const requestContextPromise = this.requestFactory.getPolicyTotalGasUsage(id,
|
|
2343
|
+
getPolicyTotalGasUsage(id, limit, skip, order, _options) {
|
|
2344
|
+
const requestContextPromise = this.requestFactory.getPolicyTotalGasUsage(id, limit, skip, order, _options);
|
|
2129
2345
|
// build promise chain
|
|
2130
2346
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
2131
2347
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -2519,6 +2735,95 @@ class ObservableSettingsApi {
|
|
|
2519
2735
|
}
|
|
2520
2736
|
}
|
|
2521
2737
|
exports.ObservableSettingsApi = ObservableSettingsApi;
|
|
2738
|
+
const SignersApi_1 = require("../apis/SignersApi");
|
|
2739
|
+
class ObservableSignersApi {
|
|
2740
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
2741
|
+
this.configuration = configuration;
|
|
2742
|
+
this.requestFactory = requestFactory || new SignersApi_1.SignersApiRequestFactory(configuration);
|
|
2743
|
+
this.responseProcessor = responseProcessor || new SignersApi_1.SignersApiResponseProcessor();
|
|
2744
|
+
}
|
|
2745
|
+
/**
|
|
2746
|
+
* @param createSignerRequest
|
|
2747
|
+
*/
|
|
2748
|
+
createSigner(createSignerRequest, _options) {
|
|
2749
|
+
const requestContextPromise = this.requestFactory.createSigner(createSignerRequest, _options);
|
|
2750
|
+
// build promise chain
|
|
2751
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
2752
|
+
for (let middleware of this.configuration.middleware) {
|
|
2753
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
2754
|
+
}
|
|
2755
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
2756
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
2757
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
2758
|
+
for (let middleware of this.configuration.middleware) {
|
|
2759
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
2760
|
+
}
|
|
2761
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createSigner(rsp)));
|
|
2762
|
+
}));
|
|
2763
|
+
}
|
|
2764
|
+
/**
|
|
2765
|
+
* @param signerId
|
|
2766
|
+
*/
|
|
2767
|
+
exportSigner(signerId, _options) {
|
|
2768
|
+
const requestContextPromise = this.requestFactory.exportSigner(signerId, _options);
|
|
2769
|
+
// build promise chain
|
|
2770
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
2771
|
+
for (let middleware of this.configuration.middleware) {
|
|
2772
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
2773
|
+
}
|
|
2774
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
2775
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
2776
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
2777
|
+
for (let middleware of this.configuration.middleware) {
|
|
2778
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
2779
|
+
}
|
|
2780
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.exportSigner(rsp)));
|
|
2781
|
+
}));
|
|
2782
|
+
}
|
|
2783
|
+
/**
|
|
2784
|
+
* @param signerId
|
|
2785
|
+
*/
|
|
2786
|
+
getSigner(signerId, _options) {
|
|
2787
|
+
const requestContextPromise = this.requestFactory.getSigner(signerId, _options);
|
|
2788
|
+
// build promise chain
|
|
2789
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
2790
|
+
for (let middleware of this.configuration.middleware) {
|
|
2791
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
2792
|
+
}
|
|
2793
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
2794
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
2795
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
2796
|
+
for (let middleware of this.configuration.middleware) {
|
|
2797
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
2798
|
+
}
|
|
2799
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getSigner(rsp)));
|
|
2800
|
+
}));
|
|
2801
|
+
}
|
|
2802
|
+
/**
|
|
2803
|
+
* @param limit
|
|
2804
|
+
* @param skip
|
|
2805
|
+
* @param order
|
|
2806
|
+
* @param signerType
|
|
2807
|
+
* @param account
|
|
2808
|
+
*/
|
|
2809
|
+
listSigners(limit, skip, order, signerType, account, _options) {
|
|
2810
|
+
const requestContextPromise = this.requestFactory.listSigners(limit, skip, order, signerType, account, _options);
|
|
2811
|
+
// build promise chain
|
|
2812
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
2813
|
+
for (let middleware of this.configuration.middleware) {
|
|
2814
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
2815
|
+
}
|
|
2816
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
2817
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
2818
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
2819
|
+
for (let middleware of this.configuration.middleware) {
|
|
2820
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
2821
|
+
}
|
|
2822
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.listSigners(rsp)));
|
|
2823
|
+
}));
|
|
2824
|
+
}
|
|
2825
|
+
}
|
|
2826
|
+
exports.ObservableSignersApi = ObservableSignersApi;
|
|
2522
2827
|
const SubscriptionsApi_1 = require("../apis/SubscriptionsApi");
|
|
2523
2828
|
class ObservableSubscriptionsApi {
|
|
2524
2829
|
constructor(configuration, requestFactory, responseProcessor) {
|