@openfort/openfort-node 0.6.69 → 0.6.70
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 +1 -1
- 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 +1 -1
- package/dist/generated/apis/AdminAuthenticationApi.js +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/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/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/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/{PrismaInputJsonValue.d.ts → GoogleNativeOAuthConfig.d.ts} +12 -2
- 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/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/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/{OAuthProviderTELEGRAM.js → OAuthProviderAPPLE.js} +1 -1
- package/dist/generated/models/OAuthProviderAPPLE.js.map +1 -0
- package/dist/generated/models/ObjectSerializer.d.ts +22 -5
- package/dist/generated/models/ObjectSerializer.js +67 -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/{ThirdPartyOAuthProviderTELEGRAMMINIAPP.js → ThirdPartyOAuthProviderAPPLENATIVE.js} +1 -1
- 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/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 +22 -5
- package/dist/generated/models/all.js +22 -5
- package/dist/generated/models/all.js.map +1 -1
- package/dist/generated/types/ObjectParamAPI.d.ts +279 -10
- package/dist/generated/types/ObjectParamAPI.js +124 -28
- package/dist/generated/types/ObjectParamAPI.js.map +1 -1
- package/dist/generated/types/ObservableAPI.d.ts +100 -6
- package/dist/generated/types/ObservableAPI.js +293 -9
- package/dist/generated/types/ObservableAPI.js.map +1 -1
- package/dist/generated/types/PromiseAPI.d.ts +96 -6
- package/dist/generated/types/PromiseAPI.js +156 -32
- package/dist/generated/types/PromiseAPI.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/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
|
*/
|
|
@@ -335,6 +364,12 @@ export declare class ObservableAuthenticationApi {
|
|
|
335
364
|
* @param sIWEAuthenticateRequest
|
|
336
365
|
*/
|
|
337
366
|
linkSIWE(sIWEAuthenticateRequest: SIWEAuthenticateRequest, _options?: Configuration): Observable<AuthPlayerResponse | void>;
|
|
367
|
+
/**
|
|
368
|
+
* Initialize Link OAuth.
|
|
369
|
+
* @param thirdPartyLinkRequest
|
|
370
|
+
* @param xGame
|
|
371
|
+
*/
|
|
372
|
+
linkThirdParty(thirdPartyLinkRequest: ThirdPartyLinkRequest, xGame?: string, _options?: Configuration): Observable<AuthPlayerResponse>;
|
|
338
373
|
/**
|
|
339
374
|
* Authenticate a player based on email and password.
|
|
340
375
|
* Email and password login.
|
|
@@ -369,6 +404,12 @@ export declare class ObservableAuthenticationApi {
|
|
|
369
404
|
* @param refreshTokenRequest
|
|
370
405
|
*/
|
|
371
406
|
refresh(refreshTokenRequest: RefreshTokenRequest, _options?: Configuration): Observable<AuthResponse>;
|
|
407
|
+
/**
|
|
408
|
+
* Create a guest player.
|
|
409
|
+
* Create a guest player.
|
|
410
|
+
* @param xGame
|
|
411
|
+
*/
|
|
412
|
+
registerGuest(xGame?: string, _options?: Configuration): Observable<AuthResponse>;
|
|
372
413
|
/**
|
|
373
414
|
* Start the Email Verification process for a player.
|
|
374
415
|
* Request an Email Verification.
|
|
@@ -498,6 +539,30 @@ export declare class ObservableDefaultApi {
|
|
|
498
539
|
*/
|
|
499
540
|
list(enabled?: boolean, _options?: Configuration): Observable<AuthProviderListResponse>;
|
|
500
541
|
}
|
|
542
|
+
import { DevicesApiRequestFactory, DevicesApiResponseProcessor } from "../apis/DevicesApi";
|
|
543
|
+
export declare class ObservableDevicesApi {
|
|
544
|
+
private requestFactory;
|
|
545
|
+
private responseProcessor;
|
|
546
|
+
private configuration;
|
|
547
|
+
constructor(configuration: Configuration, requestFactory?: DevicesApiRequestFactory, responseProcessor?: DevicesApiResponseProcessor);
|
|
548
|
+
/**
|
|
549
|
+
* @param signerId
|
|
550
|
+
* @param deviceCreateRequest
|
|
551
|
+
*/
|
|
552
|
+
createDevice(signerId: string, deviceCreateRequest: DeviceCreateRequest, _options?: Configuration): Observable<DeviceResponse>;
|
|
553
|
+
/**
|
|
554
|
+
* @param signerId
|
|
555
|
+
* @param deviceId
|
|
556
|
+
*/
|
|
557
|
+
getDevice(signerId: string, deviceId: string, _options?: Configuration): Observable<DeviceResponse>;
|
|
558
|
+
/**
|
|
559
|
+
* @param signerId
|
|
560
|
+
* @param limit
|
|
561
|
+
* @param skip
|
|
562
|
+
* @param order
|
|
563
|
+
*/
|
|
564
|
+
listDevices(signerId: string, limit?: number, skip?: number, order?: 'asc' | 'desc', _options?: Configuration): Observable<BaseEntityListResponseDeviceResponse>;
|
|
565
|
+
}
|
|
501
566
|
import { EventsApiRequestFactory, EventsApiResponseProcessor } from "../apis/EventsApi";
|
|
502
567
|
export declare class ObservableEventsApi {
|
|
503
568
|
private requestFactory;
|
|
@@ -714,6 +779,7 @@ export declare class ObservablePlayersApi {
|
|
|
714
779
|
*/
|
|
715
780
|
createPlayer(playerCreateRequest: PlayerCreateRequest, _options?: Configuration): Observable<PlayerResponse>;
|
|
716
781
|
/**
|
|
782
|
+
* 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
783
|
* Deletes a player object.
|
|
718
784
|
* @param id Specifies the unique player ID (starts with pla_).
|
|
719
785
|
*/
|
|
@@ -819,10 +885,11 @@ export declare class ObservablePoliciesApi {
|
|
|
819
885
|
/**
|
|
820
886
|
* List all gas reports of a policy.
|
|
821
887
|
* @param id Specifies the unique policy ID (starts with pol_).
|
|
822
|
-
* @param
|
|
823
|
-
* @param
|
|
888
|
+
* @param limit Specifies the maximum number of records to return.
|
|
889
|
+
* @param skip Specifies the offset for the first records to return.
|
|
890
|
+
* @param order Specifies the order in which to sort the results.
|
|
824
891
|
*/
|
|
825
|
-
getPolicyTotalGasUsage(id: string,
|
|
892
|
+
getPolicyTotalGasUsage(id: string, limit?: number, skip?: number, order?: SortOrder, _options?: Configuration): Observable<GasReportListResponse>;
|
|
826
893
|
/**
|
|
827
894
|
* Update a policy object.
|
|
828
895
|
* @param id Specifies the unique policy ID (starts with pol_).
|
|
@@ -955,6 +1022,33 @@ export declare class ObservableSettingsApi {
|
|
|
955
1022
|
*/
|
|
956
1023
|
updateDeveloperAccount(id: string, updateDeveloperAccountCreateRequest: UpdateDeveloperAccountCreateRequest, _options?: Configuration): Observable<DeveloperAccountResponse>;
|
|
957
1024
|
}
|
|
1025
|
+
import { SignersApiRequestFactory, SignersApiResponseProcessor } from "../apis/SignersApi";
|
|
1026
|
+
export declare class ObservableSignersApi {
|
|
1027
|
+
private requestFactory;
|
|
1028
|
+
private responseProcessor;
|
|
1029
|
+
private configuration;
|
|
1030
|
+
constructor(configuration: Configuration, requestFactory?: SignersApiRequestFactory, responseProcessor?: SignersApiResponseProcessor);
|
|
1031
|
+
/**
|
|
1032
|
+
* @param createSignerRequest
|
|
1033
|
+
*/
|
|
1034
|
+
createSigner(createSignerRequest: CreateSignerRequest, _options?: Configuration): Observable<SignerResponse>;
|
|
1035
|
+
/**
|
|
1036
|
+
* @param signerId
|
|
1037
|
+
*/
|
|
1038
|
+
exportSigner(signerId: string, _options?: Configuration): Observable<void>;
|
|
1039
|
+
/**
|
|
1040
|
+
* @param signerId
|
|
1041
|
+
*/
|
|
1042
|
+
getSigner(signerId: string, _options?: Configuration): Observable<SignerResponse>;
|
|
1043
|
+
/**
|
|
1044
|
+
* @param limit
|
|
1045
|
+
* @param skip
|
|
1046
|
+
* @param order
|
|
1047
|
+
* @param signerType
|
|
1048
|
+
* @param account
|
|
1049
|
+
*/
|
|
1050
|
+
listSigners(limit?: number, skip?: number, order?: 'asc' | 'desc', signerType?: string, account?: string, _options?: Configuration): Observable<ListResponseSigner>;
|
|
1051
|
+
}
|
|
958
1052
|
import { SubscriptionsApiRequestFactory, SubscriptionsApiResponseProcessor } from "../apis/SubscriptionsApi";
|
|
959
1053
|
export declare class ObservableSubscriptionsApi {
|
|
960
1054
|
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
|
*/
|
|
@@ -689,6 +769,27 @@ class ObservableAuthenticationApi {
|
|
|
689
769
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.linkSIWE(rsp)));
|
|
690
770
|
}));
|
|
691
771
|
}
|
|
772
|
+
/**
|
|
773
|
+
* Initialize Link OAuth.
|
|
774
|
+
* @param thirdPartyLinkRequest
|
|
775
|
+
* @param xGame
|
|
776
|
+
*/
|
|
777
|
+
linkThirdParty(thirdPartyLinkRequest, xGame, _options) {
|
|
778
|
+
const requestContextPromise = this.requestFactory.linkThirdParty(thirdPartyLinkRequest, xGame, _options);
|
|
779
|
+
// build promise chain
|
|
780
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
781
|
+
for (let middleware of this.configuration.middleware) {
|
|
782
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
783
|
+
}
|
|
784
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
785
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
786
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
787
|
+
for (let middleware of this.configuration.middleware) {
|
|
788
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
789
|
+
}
|
|
790
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.linkThirdParty(rsp)));
|
|
791
|
+
}));
|
|
792
|
+
}
|
|
692
793
|
/**
|
|
693
794
|
* Authenticate a player based on email and password.
|
|
694
795
|
* Email and password login.
|
|
@@ -813,6 +914,27 @@ class ObservableAuthenticationApi {
|
|
|
813
914
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.refresh(rsp)));
|
|
814
915
|
}));
|
|
815
916
|
}
|
|
917
|
+
/**
|
|
918
|
+
* Create a guest player.
|
|
919
|
+
* Create a guest player.
|
|
920
|
+
* @param xGame
|
|
921
|
+
*/
|
|
922
|
+
registerGuest(xGame, _options) {
|
|
923
|
+
const requestContextPromise = this.requestFactory.registerGuest(xGame, _options);
|
|
924
|
+
// build promise chain
|
|
925
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
926
|
+
for (let middleware of this.configuration.middleware) {
|
|
927
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
928
|
+
}
|
|
929
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
930
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
931
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
932
|
+
for (let middleware of this.configuration.middleware) {
|
|
933
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
934
|
+
}
|
|
935
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.registerGuest(rsp)));
|
|
936
|
+
}));
|
|
937
|
+
}
|
|
816
938
|
/**
|
|
817
939
|
* Start the Email Verification process for a player.
|
|
818
940
|
* Request an Email Verification.
|
|
@@ -1217,6 +1339,77 @@ class ObservableDefaultApi {
|
|
|
1217
1339
|
}
|
|
1218
1340
|
}
|
|
1219
1341
|
exports.ObservableDefaultApi = ObservableDefaultApi;
|
|
1342
|
+
const DevicesApi_1 = require("../apis/DevicesApi");
|
|
1343
|
+
class ObservableDevicesApi {
|
|
1344
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
1345
|
+
this.configuration = configuration;
|
|
1346
|
+
this.requestFactory = requestFactory || new DevicesApi_1.DevicesApiRequestFactory(configuration);
|
|
1347
|
+
this.responseProcessor = responseProcessor || new DevicesApi_1.DevicesApiResponseProcessor();
|
|
1348
|
+
}
|
|
1349
|
+
/**
|
|
1350
|
+
* @param signerId
|
|
1351
|
+
* @param deviceCreateRequest
|
|
1352
|
+
*/
|
|
1353
|
+
createDevice(signerId, deviceCreateRequest, _options) {
|
|
1354
|
+
const requestContextPromise = this.requestFactory.createDevice(signerId, deviceCreateRequest, _options);
|
|
1355
|
+
// build promise chain
|
|
1356
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1357
|
+
for (let middleware of this.configuration.middleware) {
|
|
1358
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1359
|
+
}
|
|
1360
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1361
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1362
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1363
|
+
for (let middleware of this.configuration.middleware) {
|
|
1364
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1365
|
+
}
|
|
1366
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createDevice(rsp)));
|
|
1367
|
+
}));
|
|
1368
|
+
}
|
|
1369
|
+
/**
|
|
1370
|
+
* @param signerId
|
|
1371
|
+
* @param deviceId
|
|
1372
|
+
*/
|
|
1373
|
+
getDevice(signerId, deviceId, _options) {
|
|
1374
|
+
const requestContextPromise = this.requestFactory.getDevice(signerId, deviceId, _options);
|
|
1375
|
+
// build promise chain
|
|
1376
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1377
|
+
for (let middleware of this.configuration.middleware) {
|
|
1378
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1379
|
+
}
|
|
1380
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1381
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1382
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1383
|
+
for (let middleware of this.configuration.middleware) {
|
|
1384
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1385
|
+
}
|
|
1386
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getDevice(rsp)));
|
|
1387
|
+
}));
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
* @param signerId
|
|
1391
|
+
* @param limit
|
|
1392
|
+
* @param skip
|
|
1393
|
+
* @param order
|
|
1394
|
+
*/
|
|
1395
|
+
listDevices(signerId, limit, skip, order, _options) {
|
|
1396
|
+
const requestContextPromise = this.requestFactory.listDevices(signerId, limit, skip, order, _options);
|
|
1397
|
+
// build promise chain
|
|
1398
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1399
|
+
for (let middleware of this.configuration.middleware) {
|
|
1400
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1401
|
+
}
|
|
1402
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1403
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1404
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1405
|
+
for (let middleware of this.configuration.middleware) {
|
|
1406
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1407
|
+
}
|
|
1408
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.listDevices(rsp)));
|
|
1409
|
+
}));
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
exports.ObservableDevicesApi = ObservableDevicesApi;
|
|
1220
1413
|
const EventsApi_1 = require("../apis/EventsApi");
|
|
1221
1414
|
class ObservableEventsApi {
|
|
1222
1415
|
constructor(configuration, requestFactory, responseProcessor) {
|
|
@@ -1804,6 +1997,7 @@ class ObservablePlayersApi {
|
|
|
1804
1997
|
}));
|
|
1805
1998
|
}
|
|
1806
1999
|
/**
|
|
2000
|
+
* 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
2001
|
* Deletes a player object.
|
|
1808
2002
|
* @param id Specifies the unique player ID (starts with pla_).
|
|
1809
2003
|
*/
|
|
@@ -2121,11 +2315,12 @@ class ObservablePoliciesApi {
|
|
|
2121
2315
|
/**
|
|
2122
2316
|
* List all gas reports of a policy.
|
|
2123
2317
|
* @param id Specifies the unique policy ID (starts with pol_).
|
|
2124
|
-
* @param
|
|
2125
|
-
* @param
|
|
2318
|
+
* @param limit Specifies the maximum number of records to return.
|
|
2319
|
+
* @param skip Specifies the offset for the first records to return.
|
|
2320
|
+
* @param order Specifies the order in which to sort the results.
|
|
2126
2321
|
*/
|
|
2127
|
-
getPolicyTotalGasUsage(id,
|
|
2128
|
-
const requestContextPromise = this.requestFactory.getPolicyTotalGasUsage(id,
|
|
2322
|
+
getPolicyTotalGasUsage(id, limit, skip, order, _options) {
|
|
2323
|
+
const requestContextPromise = this.requestFactory.getPolicyTotalGasUsage(id, limit, skip, order, _options);
|
|
2129
2324
|
// build promise chain
|
|
2130
2325
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
2131
2326
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -2519,6 +2714,95 @@ class ObservableSettingsApi {
|
|
|
2519
2714
|
}
|
|
2520
2715
|
}
|
|
2521
2716
|
exports.ObservableSettingsApi = ObservableSettingsApi;
|
|
2717
|
+
const SignersApi_1 = require("../apis/SignersApi");
|
|
2718
|
+
class ObservableSignersApi {
|
|
2719
|
+
constructor(configuration, requestFactory, responseProcessor) {
|
|
2720
|
+
this.configuration = configuration;
|
|
2721
|
+
this.requestFactory = requestFactory || new SignersApi_1.SignersApiRequestFactory(configuration);
|
|
2722
|
+
this.responseProcessor = responseProcessor || new SignersApi_1.SignersApiResponseProcessor();
|
|
2723
|
+
}
|
|
2724
|
+
/**
|
|
2725
|
+
* @param createSignerRequest
|
|
2726
|
+
*/
|
|
2727
|
+
createSigner(createSignerRequest, _options) {
|
|
2728
|
+
const requestContextPromise = this.requestFactory.createSigner(createSignerRequest, _options);
|
|
2729
|
+
// build promise chain
|
|
2730
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
2731
|
+
for (let middleware of this.configuration.middleware) {
|
|
2732
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
2733
|
+
}
|
|
2734
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
2735
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
2736
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
2737
|
+
for (let middleware of this.configuration.middleware) {
|
|
2738
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
2739
|
+
}
|
|
2740
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createSigner(rsp)));
|
|
2741
|
+
}));
|
|
2742
|
+
}
|
|
2743
|
+
/**
|
|
2744
|
+
* @param signerId
|
|
2745
|
+
*/
|
|
2746
|
+
exportSigner(signerId, _options) {
|
|
2747
|
+
const requestContextPromise = this.requestFactory.exportSigner(signerId, _options);
|
|
2748
|
+
// build promise chain
|
|
2749
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
2750
|
+
for (let middleware of this.configuration.middleware) {
|
|
2751
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
2752
|
+
}
|
|
2753
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
2754
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
2755
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
2756
|
+
for (let middleware of this.configuration.middleware) {
|
|
2757
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
2758
|
+
}
|
|
2759
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.exportSigner(rsp)));
|
|
2760
|
+
}));
|
|
2761
|
+
}
|
|
2762
|
+
/**
|
|
2763
|
+
* @param signerId
|
|
2764
|
+
*/
|
|
2765
|
+
getSigner(signerId, _options) {
|
|
2766
|
+
const requestContextPromise = this.requestFactory.getSigner(signerId, _options);
|
|
2767
|
+
// build promise chain
|
|
2768
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
2769
|
+
for (let middleware of this.configuration.middleware) {
|
|
2770
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
2771
|
+
}
|
|
2772
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
2773
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
2774
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
2775
|
+
for (let middleware of this.configuration.middleware) {
|
|
2776
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
2777
|
+
}
|
|
2778
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getSigner(rsp)));
|
|
2779
|
+
}));
|
|
2780
|
+
}
|
|
2781
|
+
/**
|
|
2782
|
+
* @param limit
|
|
2783
|
+
* @param skip
|
|
2784
|
+
* @param order
|
|
2785
|
+
* @param signerType
|
|
2786
|
+
* @param account
|
|
2787
|
+
*/
|
|
2788
|
+
listSigners(limit, skip, order, signerType, account, _options) {
|
|
2789
|
+
const requestContextPromise = this.requestFactory.listSigners(limit, skip, order, signerType, account, _options);
|
|
2790
|
+
// build promise chain
|
|
2791
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
2792
|
+
for (let middleware of this.configuration.middleware) {
|
|
2793
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
2794
|
+
}
|
|
2795
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
2796
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
2797
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
2798
|
+
for (let middleware of this.configuration.middleware) {
|
|
2799
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
2800
|
+
}
|
|
2801
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.listSigners(rsp)));
|
|
2802
|
+
}));
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
exports.ObservableSignersApi = ObservableSignersApi;
|
|
2522
2806
|
const SubscriptionsApi_1 = require("../apis/SubscriptionsApi");
|
|
2523
2807
|
class ObservableSubscriptionsApi {
|
|
2524
2808
|
constructor(configuration, requestFactory, responseProcessor) {
|