@openfort/openfort-node 0.6.10 → 0.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apis/iamApiWrapper.d.ts +10 -0
- package/dist/apis/iamApiWrapper.js +33 -0
- package/dist/apis/iamApiWrapper.js.map +1 -0
- package/dist/generated/apis/AccountsApi.d.ts +1 -1
- package/dist/generated/apis/AccountsApi.js +1 -1
- package/dist/generated/apis/ContractsApi.d.ts +3 -3
- package/dist/generated/apis/ContractsApi.js +3 -3
- package/dist/generated/apis/InventoriesApi.d.ts +6 -6
- package/dist/generated/apis/InventoriesApi.js +6 -6
- package/dist/generated/apis/OAuthApi.d.ts +102 -0
- package/dist/generated/apis/OAuthApi.js +358 -0
- package/dist/generated/apis/OAuthApi.js.map +1 -0
- package/dist/generated/apis/PlayersApi.d.ts +8 -8
- package/dist/generated/apis/PlayersApi.js +8 -8
- package/dist/generated/apis/PoliciesApi.d.ts +8 -8
- package/dist/generated/apis/PoliciesApi.js +8 -8
- package/dist/generated/apis/PolicyRulesApi.d.ts +1 -1
- package/dist/generated/apis/PolicyRulesApi.js +1 -1
- package/dist/generated/apis/SessionsApi.d.ts +3 -3
- package/dist/generated/apis/SessionsApi.js +3 -3
- package/dist/generated/apis/TransactionIntentsApi.d.ts +6 -6
- package/dist/generated/apis/TransactionIntentsApi.js +6 -6
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.js +2 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/models/AccelbyteOauthConfig.d.ts +48 -0
- package/dist/generated/models/AccelbyteOauthConfig.js +59 -0
- package/dist/generated/models/AccelbyteOauthConfig.js.map +1 -0
- package/dist/generated/models/AccountListQueries.d.ts +1 -1
- package/dist/generated/models/AuthResponse.d.ts +6 -0
- package/dist/generated/models/AuthResponse.js.map +1 -1
- package/dist/generated/models/CancelTransferOwnershipRequest.d.ts +1 -1
- package/dist/generated/models/CompleteRecoveryRequest.d.ts +1 -1
- package/dist/generated/models/CreateAccountRequest.d.ts +1 -1
- package/dist/generated/models/CreatePlayerSessionRequest.d.ts +1 -1
- package/dist/generated/models/CreateSessionRequest.d.ts +2 -2
- package/dist/generated/models/CreateTransactionIntentRequest.d.ts +2 -2
- package/dist/generated/models/EstimateTransactionIntentGasResult.d.ts +16 -0
- package/dist/generated/models/EstimateTransactionIntentGasResult.js +24 -0
- package/dist/generated/models/EstimateTransactionIntentGasResult.js.map +1 -1
- package/dist/generated/models/OAuthConfigListResponse.d.ts +35 -0
- package/dist/generated/models/OAuthConfigListResponse.js +35 -0
- package/dist/generated/models/OAuthConfigListResponse.js.map +1 -0
- package/dist/generated/models/OAuthConfigRequest.d.ts +32 -0
- package/dist/generated/models/OAuthConfigRequest.js +35 -0
- package/dist/generated/models/OAuthConfigRequest.js.map +1 -0
- package/dist/generated/models/OAuthConfigResponse.d.ts +32 -0
- package/dist/generated/models/OAuthConfigResponse.js +35 -0
- package/dist/generated/models/OAuthConfigResponse.js.map +1 -0
- package/dist/generated/models/OAuthProvider.d.ts +15 -0
- package/dist/generated/models/OAuthProvider.js +14 -0
- package/dist/generated/models/OAuthProvider.js.map +1 -0
- package/dist/generated/models/OAuthProviderACCELBYTE.d.ts +12 -0
- package/dist/generated/models/OAuthProviderACCELBYTE.js +14 -0
- package/dist/generated/models/OAuthProviderACCELBYTE.js.map +1 -0
- package/dist/generated/models/OAuthRequest.d.ts +34 -0
- package/dist/generated/models/OAuthRequest.js +35 -0
- package/dist/generated/models/OAuthRequest.js.map +1 -0
- package/dist/generated/models/ObjectSerializer.d.ts +7 -0
- package/dist/generated/models/ObjectSerializer.js +19 -0
- package/dist/generated/models/ObjectSerializer.js.map +1 -1
- package/dist/generated/models/PlayerCancelTransferOwnershipRequest.d.ts +1 -1
- package/dist/generated/models/PlayerInventoryListQueries.d.ts +1 -1
- package/dist/generated/models/PlayerTransferOwnershipRequest.d.ts +2 -2
- package/dist/generated/models/PolicyRuleListQueries.d.ts +1 -1
- package/dist/generated/models/PolicyStrategyRequest.d.ts +3 -3
- package/dist/generated/models/ResponseResponse.d.ts +2 -2
- package/dist/generated/models/RevokeSessionPlayerRequest.d.ts +1 -1
- package/dist/generated/models/RevokeSessionRequest.d.ts +2 -2
- package/dist/generated/models/SessionListQueries.d.ts +1 -1
- package/dist/generated/models/StartRecoveryRequest.d.ts +1 -1
- package/dist/generated/models/TransactionIntentListQueries.d.ts +2 -2
- package/dist/generated/models/TransactionIntentResponsePlayer.d.ts +1 -1
- package/dist/generated/models/TransactionIntentResponsePlayer.js +1 -1
- package/dist/generated/models/TransactionIntentResponsePolicy.d.ts +1 -1
- package/dist/generated/models/TransactionIntentResponsePolicy.js +1 -1
- package/dist/generated/models/TransferOwnershipRequest.d.ts +1 -1
- package/dist/generated/models/all.d.ts +7 -0
- package/dist/generated/models/all.js +7 -0
- package/dist/generated/models/all.js.map +1 -1
- package/dist/generated/types/ObjectParamAPI.d.ts +142 -36
- package/dist/generated/types/ObjectParamAPI.js +69 -14
- package/dist/generated/types/ObjectParamAPI.js.map +1 -1
- package/dist/generated/types/ObservableAPI.d.ts +86 -36
- package/dist/generated/types/ObservableAPI.js +174 -37
- package/dist/generated/types/ObservableAPI.js.map +1 -1
- package/dist/generated/types/PromiseAPI.d.ts +84 -36
- package/dist/generated/types/PromiseAPI.js +111 -48
- package/dist/generated/types/PromiseAPI.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -25,6 +25,11 @@ import { GetSigninUrlResponse } from '../models/GetSigninUrlResponse';
|
|
|
25
25
|
import { InventoryListResponse } from '../models/InventoryListResponse';
|
|
26
26
|
import { InventoryResponse } from '../models/InventoryResponse';
|
|
27
27
|
import { LoginRequest } from '../models/LoginRequest';
|
|
28
|
+
import { OAuthConfigListResponse } from '../models/OAuthConfigListResponse';
|
|
29
|
+
import { OAuthConfigRequest } from '../models/OAuthConfigRequest';
|
|
30
|
+
import { OAuthConfigResponse } from '../models/OAuthConfigResponse';
|
|
31
|
+
import { OAuthProvider } from '../models/OAuthProvider';
|
|
32
|
+
import { OAuthRequest } from '../models/OAuthRequest';
|
|
28
33
|
import { ObsoleteInventoryResponse } from '../models/ObsoleteInventoryResponse';
|
|
29
34
|
import { PlayerCancelTransferOwnershipRequest } from '../models/PlayerCancelTransferOwnershipRequest';
|
|
30
35
|
import { PlayerListResponse } from '../models/PlayerListResponse';
|
|
@@ -92,7 +97,7 @@ export declare class PromiseAccountsApi {
|
|
|
92
97
|
/**
|
|
93
98
|
* Returns a list of accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of ten accounts are shown per page.
|
|
94
99
|
* List accounts of a player.
|
|
95
|
-
* @param player Specifies the unique player ID
|
|
100
|
+
* @param player Specifies the unique player ID (starts with pla_)
|
|
96
101
|
* @param limit Specifies the maximum number of records to return.
|
|
97
102
|
* @param skip Specifies the offset for the first records to return.
|
|
98
103
|
* @param order Specifies the order in which to sort the results.
|
|
@@ -167,13 +172,13 @@ export declare class PromiseContractsApi {
|
|
|
167
172
|
/**
|
|
168
173
|
* Delete a contract from the project by providing its contract id.
|
|
169
174
|
* Deletes a contract object.
|
|
170
|
-
* @param id Specifies the unique contract ID.
|
|
175
|
+
* @param id Specifies the unique contract ID (starts with con_).
|
|
171
176
|
*/
|
|
172
177
|
deleteContract(id: string, _options?: Configuration): Promise<ContractDeleteResponse>;
|
|
173
178
|
/**
|
|
174
179
|
* Retrieve a contract by providing their contract id.
|
|
175
180
|
* Get a contract.
|
|
176
|
-
* @param id Specifies the unique contract ID.
|
|
181
|
+
* @param id Specifies the unique contract ID (starts with con_).
|
|
177
182
|
*/
|
|
178
183
|
getContract(id: string, _options?: Configuration): Promise<ContractResponse>;
|
|
179
184
|
/**
|
|
@@ -190,7 +195,7 @@ export declare class PromiseContractsApi {
|
|
|
190
195
|
getContracts(limit?: number, skip?: number, order?: SortOrder, name?: string, deleted?: boolean, chainId?: number, address?: string, _options?: Configuration): Promise<ContractListResponse>;
|
|
191
196
|
/**
|
|
192
197
|
* Updates a contract object.
|
|
193
|
-
* @param id Specifies the unique contract ID.
|
|
198
|
+
* @param id Specifies the unique contract ID (starts with con_).
|
|
194
199
|
* @param updateContractRequest
|
|
195
200
|
*/
|
|
196
201
|
updateContract(id: string, updateContractRequest: UpdateContractRequest, _options?: Configuration): Promise<ContractResponse>;
|
|
@@ -243,37 +248,80 @@ export declare class PromiseInventoriesApi {
|
|
|
243
248
|
getAccountNftInventory(id: string, limit?: number, skip?: number, order?: SortOrder, contractId?: Array<string>, _options?: Configuration): Promise<InventoryListResponse>;
|
|
244
249
|
/**
|
|
245
250
|
* Get cryptocurrency list of player.
|
|
246
|
-
* @param id Specifies the unique player ID.
|
|
251
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
247
252
|
* @param chainId Filter by chain id.
|
|
248
253
|
* @param limit Specifies the maximum number of records to return.
|
|
249
254
|
* @param skip Specifies the offset for the first records to return.
|
|
250
255
|
* @param order Specifies the order in which to sort the results.
|
|
251
|
-
* @param contractId Filter by contract ID.
|
|
256
|
+
* @param contractId Filter by contract ID (starts with con_).
|
|
252
257
|
*/
|
|
253
258
|
getPlayerCryptoCurrencyInventory(id: string, chainId: number, limit?: number, skip?: number, order?: SortOrder, contractId?: Array<string>, _options?: Configuration): Promise<InventoryListResponse>;
|
|
254
259
|
/**
|
|
255
260
|
* Get inventory of player.
|
|
256
|
-
* @param id Specifies the unique player ID.
|
|
261
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
257
262
|
* @param chainId Filter by chain id.
|
|
258
263
|
*/
|
|
259
264
|
getPlayerInventory(id: string, chainId: number, _options?: Configuration): Promise<ObsoleteInventoryResponse>;
|
|
260
265
|
/**
|
|
261
266
|
* Get native token list of player.
|
|
262
|
-
* @param id Specifies the unique player ID.
|
|
267
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
263
268
|
* @param chainId Filter by chain id.
|
|
264
269
|
*/
|
|
265
270
|
getPlayerNativeInventory(id: string, chainId: number, _options?: Configuration): Promise<InventoryResponse>;
|
|
266
271
|
/**
|
|
267
272
|
* Get NFTs list of player.
|
|
268
|
-
* @param id Specifies the unique player ID.
|
|
273
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
269
274
|
* @param chainId Filter by chain id.
|
|
270
275
|
* @param limit Specifies the maximum number of records to return.
|
|
271
276
|
* @param skip Specifies the offset for the first records to return.
|
|
272
277
|
* @param order Specifies the order in which to sort the results.
|
|
273
|
-
* @param contractId Filter by contract ID.
|
|
278
|
+
* @param contractId Filter by contract ID (starts with con_).
|
|
274
279
|
*/
|
|
275
280
|
getPlayerNftInventory(id: string, chainId: number, limit?: number, skip?: number, order?: SortOrder, contractId?: Array<string>, _options?: Configuration): Promise<InventoryListResponse>;
|
|
276
281
|
}
|
|
282
|
+
import { OAuthApiRequestFactory, OAuthApiResponseProcessor } from "../apis/OAuthApi";
|
|
283
|
+
export declare class PromiseOAuthApi {
|
|
284
|
+
private api;
|
|
285
|
+
constructor(configuration: Configuration, requestFactory?: OAuthApiRequestFactory, responseProcessor?: OAuthApiResponseProcessor);
|
|
286
|
+
/**
|
|
287
|
+
* The endpoint verifies the token generated by OAuth provider, creates or retrieves a player based on his email, and returns the jwt token for the player together with the player id.
|
|
288
|
+
* Authorize user with token.
|
|
289
|
+
* @param provider OAuth provider
|
|
290
|
+
* @param oAuthRequest Request body
|
|
291
|
+
*/
|
|
292
|
+
auth(provider: OAuthProvider, oAuthRequest: OAuthRequest, _options?: Configuration): Promise<AuthResponse>;
|
|
293
|
+
/**
|
|
294
|
+
* The endpoint creates oauth configuration for the current project environment.
|
|
295
|
+
* Create oauth configuration.
|
|
296
|
+
* @param provider Specifies the oauth provider type.
|
|
297
|
+
* @param oAuthConfigRequest Specifies the oauth provider specific configuration.
|
|
298
|
+
*/
|
|
299
|
+
createOAuthConfig(provider: OAuthProvider, oAuthConfigRequest: OAuthConfigRequest, _options?: Configuration): Promise<void>;
|
|
300
|
+
/**
|
|
301
|
+
* The endpoint deletes oauth configuration for specified provider for the current project environment.
|
|
302
|
+
* Delete oauth configuration.
|
|
303
|
+
* @param provider Specifies the oauth provider type.
|
|
304
|
+
*/
|
|
305
|
+
deleteOAuthConfig(provider: OAuthProvider, _options?: Configuration): Promise<void>;
|
|
306
|
+
/**
|
|
307
|
+
* The endpoint retrieves oauth configuration for specified provider for the current project environment.
|
|
308
|
+
* Get oauth configuration.
|
|
309
|
+
* @param provider Specifies the oauth provider type.
|
|
310
|
+
*/
|
|
311
|
+
getOAuthConfig(provider: OAuthProvider, _options?: Configuration): Promise<OAuthConfigResponse>;
|
|
312
|
+
/**
|
|
313
|
+
* The endpoint retrieves the list of oauth configurations for the current project environment.
|
|
314
|
+
* List of oauth configurations.
|
|
315
|
+
*/
|
|
316
|
+
listOAuthConfig(_options?: Configuration): Promise<OAuthConfigListResponse>;
|
|
317
|
+
/**
|
|
318
|
+
* The endpoint updates oauth configuration for specified provider for the current project environment.
|
|
319
|
+
* Update oauth configuration.
|
|
320
|
+
* @param provider Specifies the oauth provider type.
|
|
321
|
+
* @param oAuthConfigRequest Specifies the oauth provider specific configuration.
|
|
322
|
+
*/
|
|
323
|
+
updateOAuthConfig(provider: OAuthProvider, oAuthConfigRequest: OAuthConfigRequest, _options?: Configuration): Promise<void>;
|
|
324
|
+
}
|
|
277
325
|
import { PlayersApiRequestFactory, PlayersApiResponseProcessor } from "../apis/PlayersApi";
|
|
278
326
|
export declare class PromisePlayersApi {
|
|
279
327
|
private api;
|
|
@@ -293,25 +341,25 @@ export declare class PromisePlayersApi {
|
|
|
293
341
|
createPlayer(createPlayerRequest: CreatePlayerRequest, _options?: Configuration): Promise<PlayerResponse>;
|
|
294
342
|
/**
|
|
295
343
|
* Create account object for a player.
|
|
296
|
-
* @param id Specifies the unique player ID.
|
|
344
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
297
345
|
* @param createPlayerAccountRequest
|
|
298
346
|
*/
|
|
299
347
|
createPlayerAccount(id: string, createPlayerAccountRequest: CreatePlayerAccountRequest, _options?: Configuration): Promise<AccountResponse>;
|
|
300
348
|
/**
|
|
301
349
|
* Create session object for a player.
|
|
302
|
-
* @param id Specifies the unique player ID.
|
|
350
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
303
351
|
* @param createPlayerSessionRequest
|
|
304
352
|
*/
|
|
305
353
|
createPlayerSession(id: string, createPlayerSessionRequest: CreatePlayerSessionRequest, _options?: Configuration): Promise<SessionResponse>;
|
|
306
354
|
/**
|
|
307
355
|
* Retrieves the details of an existing player.
|
|
308
|
-
* @param id Specifies the unique player ID.
|
|
356
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
309
357
|
* @param expand Specifies the expandable fields.
|
|
310
358
|
*/
|
|
311
359
|
getPlayer(id: string, expand?: Array<PlayerResponseExpandable>, _options?: Configuration): Promise<PlayerResponse>;
|
|
312
360
|
/**
|
|
313
361
|
* List of accounts of a player.
|
|
314
|
-
* @param id Specifies the unique player ID.
|
|
362
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
315
363
|
* @param expand Specifies the expandable fields.
|
|
316
364
|
*/
|
|
317
365
|
getPlayerAccounts(id: string, expand?: Array<AccountResponseExpandable>, _options?: Configuration): Promise<AccountListResponse>;
|
|
@@ -335,26 +383,26 @@ export declare class PromisePlayersApi {
|
|
|
335
383
|
/**
|
|
336
384
|
* This endpoint allows you to 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.
|
|
337
385
|
* Request transfer ownership of account.
|
|
338
|
-
* @param id Specifies the unique player ID.
|
|
386
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
339
387
|
* @param playerTransferOwnershipRequest
|
|
340
388
|
*/
|
|
341
389
|
obsoleteRequestTransferAccountOwnership(id: string, playerTransferOwnershipRequest: PlayerTransferOwnershipRequest, _options?: Configuration): Promise<TransactionIntentResponse>;
|
|
342
390
|
/**
|
|
343
391
|
* This endpoint allows you to 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.
|
|
344
392
|
* Request transfer ownership of account.
|
|
345
|
-
* @param id Specifies the unique player ID.
|
|
393
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
346
394
|
* @param playerTransferOwnershipRequest
|
|
347
395
|
*/
|
|
348
396
|
requestTransferAccountOwnership(id: string, playerTransferOwnershipRequest: PlayerTransferOwnershipRequest, _options?: Configuration): Promise<TransactionIntentResponse>;
|
|
349
397
|
/**
|
|
350
398
|
* Revoke session object for a player.
|
|
351
|
-
* @param id Specifies the unique player ID.
|
|
399
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
352
400
|
* @param revokeSessionPlayerRequest
|
|
353
401
|
*/
|
|
354
402
|
revokePlayerSession(id: string, revokeSessionPlayerRequest: RevokeSessionPlayerRequest, _options?: Configuration): Promise<SessionResponse>;
|
|
355
403
|
/**
|
|
356
404
|
* Updates a player object.
|
|
357
|
-
* @param id Specifies the unique player ID.
|
|
405
|
+
* @param id Specifies the unique player ID (starts with pla_).
|
|
358
406
|
* @param playerRequest
|
|
359
407
|
*/
|
|
360
408
|
updatePlayer(id: string, playerRequest: PlayerRequest, _options?: Configuration): Promise<PlayerResponse>;
|
|
@@ -383,23 +431,23 @@ export declare class PromisePoliciesApi {
|
|
|
383
431
|
createPolicy(createPolicyRequest: CreatePolicyRequest, _options?: Configuration): Promise<PolicyResponse>;
|
|
384
432
|
/**
|
|
385
433
|
* Create a policy rule object for a policy.
|
|
386
|
-
* @param id Specifies the unique policy ID.
|
|
434
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
387
435
|
* @param createPolicyAllowFunctionRequest
|
|
388
436
|
*/
|
|
389
437
|
createPolicyAllowFunction(id: string, createPolicyAllowFunctionRequest: CreatePolicyAllowFunctionRequest, _options?: Configuration): Promise<PolicyRuleResponse>;
|
|
390
438
|
/**
|
|
391
439
|
* Delete a policy object.
|
|
392
|
-
* @param id Specifies the unique policy ID.
|
|
440
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
393
441
|
*/
|
|
394
442
|
deletePolicy(id: string, _options?: Configuration): Promise<PolicyDeleteResponse>;
|
|
395
443
|
/**
|
|
396
444
|
* Disable a policy object.
|
|
397
|
-
* @param id Specifies the unique policy ID.
|
|
445
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
398
446
|
*/
|
|
399
447
|
disablePolicy(id: string, _options?: Configuration): Promise<PolicyResponse>;
|
|
400
448
|
/**
|
|
401
449
|
* Enable a policy object.
|
|
402
|
-
* @param id Specifies the unique policy ID.
|
|
450
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
403
451
|
*/
|
|
404
452
|
enablePolicy(id: string, _options?: Configuration): Promise<PolicyResponse>;
|
|
405
453
|
/**
|
|
@@ -416,24 +464,24 @@ export declare class PromisePoliciesApi {
|
|
|
416
464
|
getPolicies(limit?: number, skip?: number, order?: SortOrder, expand?: Array<PolicyResponseExpandable>, name?: string, deleted?: boolean, chainId?: number, enabled?: boolean, _options?: Configuration): Promise<PolicyListResponse>;
|
|
417
465
|
/**
|
|
418
466
|
* Get a policy object.
|
|
419
|
-
* @param id Specifies the unique policy ID.
|
|
467
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
420
468
|
* @param expand Specifies the fields to expand.
|
|
421
469
|
*/
|
|
422
470
|
getPolicy(id: string, expand?: Array<PolicyResponseExpandable>, _options?: Configuration): Promise<PolicyResponse>;
|
|
423
471
|
/**
|
|
424
472
|
* List policy rules of a policy.
|
|
425
|
-
* @param id Specifies the unique policy ID.
|
|
473
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
426
474
|
* @param expand Specifies the fields to expand.
|
|
427
475
|
*/
|
|
428
476
|
getPolicyAllowFunctions(id: string, expand?: Array<'contract'>, _options?: Configuration): Promise<PolicyRuleListResponse>;
|
|
429
477
|
/**
|
|
430
478
|
* List all gas reports of a policy.
|
|
431
|
-
* @param id Specifies the unique policy ID.
|
|
479
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
432
480
|
*/
|
|
433
481
|
getPolicyTotalGasUsage(id: string, _options?: Configuration): Promise<GasReport>;
|
|
434
482
|
/**
|
|
435
483
|
* Update a policy object.
|
|
436
|
-
* @param id Specifies the unique policy ID.
|
|
484
|
+
* @param id Specifies the unique policy ID (starts with pol_).
|
|
437
485
|
* @param updatePolicyRequest
|
|
438
486
|
*/
|
|
439
487
|
updatePolicy(id: string, updatePolicyRequest: UpdatePolicyRequest, _options?: Configuration): Promise<PolicyResponse>;
|
|
@@ -461,7 +509,7 @@ export declare class PromisePolicyRulesApi {
|
|
|
461
509
|
deletePolicyRules(id: string, _options?: Configuration): Promise<PolicyRuleDeleteResponse>;
|
|
462
510
|
/**
|
|
463
511
|
* List policy rules of a policy.
|
|
464
|
-
* @param policy Specifies the unique policy ID.
|
|
512
|
+
* @param policy Specifies the unique policy ID (starts with pol_).
|
|
465
513
|
* @param limit Specifies the maximum number of records to return.
|
|
466
514
|
* @param skip Specifies the offset for the first records to return.
|
|
467
515
|
* @param order Specifies the order in which to sort the results.
|
|
@@ -486,7 +534,7 @@ export declare class PromiseSessionsApi {
|
|
|
486
534
|
createSession(createSessionRequest: CreateSessionRequest, _options?: Configuration): Promise<SessionResponse>;
|
|
487
535
|
/**
|
|
488
536
|
* List session keys of a player.
|
|
489
|
-
* @param player The player ID
|
|
537
|
+
* @param player The player ID (starts with pla_)
|
|
490
538
|
* @param limit Specifies the maximum number of records to return.
|
|
491
539
|
* @param skip Specifies the offset for the first records to return.
|
|
492
540
|
* @param order Specifies the order in which to sort the results.
|
|
@@ -495,7 +543,7 @@ export declare class PromiseSessionsApi {
|
|
|
495
543
|
getPlayerSessions(player: string, limit?: number, skip?: number, order?: SortOrder, expand?: Array<SessionResponseExpandable>, _options?: Configuration): Promise<SessionListResponse>;
|
|
496
544
|
/**
|
|
497
545
|
* Returns a player session by session id
|
|
498
|
-
* @param id Specifies the unique session ID.
|
|
546
|
+
* @param id Specifies the unique session ID (starts with ses_).
|
|
499
547
|
* @param expand Specifies the fields to expand.
|
|
500
548
|
*/
|
|
501
549
|
getSession(id: string, expand?: Array<SessionResponseExpandable>, _options?: Configuration): Promise<SessionResponse>;
|
|
@@ -506,7 +554,7 @@ export declare class PromiseSessionsApi {
|
|
|
506
554
|
revokeSession(revokeSessionRequest: RevokeSessionRequest, _options?: Configuration): Promise<SessionResponse>;
|
|
507
555
|
/**
|
|
508
556
|
* Confirms the creation of a session with an external owner.
|
|
509
|
-
* @param id Specifies the unique session ID.
|
|
557
|
+
* @param id Specifies the unique session ID (starts with ses_).
|
|
510
558
|
* @param signatureRequest
|
|
511
559
|
*/
|
|
512
560
|
signatureSession(id: string, signatureRequest: SignatureRequest, _options?: Configuration): Promise<SessionResponse>;
|
|
@@ -522,14 +570,14 @@ export declare class PromiseTransactionIntentsApi {
|
|
|
522
570
|
*/
|
|
523
571
|
createTransactionIntent(createTransactionIntentRequest: CreateTransactionIntentRequest, _options?: Configuration): Promise<TransactionIntentResponse>;
|
|
524
572
|
/**
|
|
525
|
-
* Estimate the gas cost of creating a transaction intent and putting it
|
|
573
|
+
* Estimate the gas cost of creating a transaction intent and putting it on chain. If a policy that includes payment of gas in ERC-20 tokens is provided, an extra field `estimatedTXGasFeeToken` is returned with the estimated amount of tokens.
|
|
526
574
|
* Estimate gas cost of creating a transaction
|
|
527
575
|
* @param createTransactionIntentRequest
|
|
528
576
|
*/
|
|
529
577
|
estimateTransactionIntentCost(createTransactionIntentRequest: CreateTransactionIntentRequest, _options?: Configuration): Promise<EstimateTransactionIntentGasResult>;
|
|
530
578
|
/**
|
|
531
579
|
* Get a transaction intent object.
|
|
532
|
-
* @param id Specifies the unique transaction intent ID.
|
|
580
|
+
* @param id Specifies the unique transaction intent ID (starts with tin_).
|
|
533
581
|
* @param expand Specifies the expandable fields.
|
|
534
582
|
*/
|
|
535
583
|
getTransactionIntent(id: string, expand?: Array<TransactionIntentResponseExpandable>, _options?: Configuration): Promise<TransactionIntentResponse>;
|
|
@@ -541,14 +589,14 @@ export declare class PromiseTransactionIntentsApi {
|
|
|
541
589
|
* @param expand Specifies the fields to expand in the response.
|
|
542
590
|
* @param chainId The chain ID.
|
|
543
591
|
* @param accountId Filter by account ID.
|
|
544
|
-
* @param playerId Filter by player ID.
|
|
545
|
-
* @param policyId Filter by policy ID.
|
|
592
|
+
* @param playerId Filter by player ID (starts with pla_).
|
|
593
|
+
* @param policyId Filter by policy ID (starts with pol_).
|
|
546
594
|
*/
|
|
547
595
|
getTransactionIntents(limit?: number, skip?: number, order?: SortOrder, expand?: Array<TransactionIntentResponseExpandable>, chainId?: number, accountId?: Array<string>, playerId?: Array<string>, policyId?: Array<string>, _options?: Configuration): Promise<TransactionIntentListResponse>;
|
|
548
596
|
/**
|
|
549
|
-
* This endpoint is used to
|
|
597
|
+
* This endpoint is used to send the signed userOperationHash. For non-custodial smart accounts, each on chain action using their wallet, they must sign the userOperationHash received from the `POST` API endpoint that creates a transactionIntent.
|
|
550
598
|
* Confirms the creation of a transaction intent with an external owner.
|
|
551
|
-
* @param id Specifies the unique transaction intent ID.
|
|
599
|
+
* @param id Specifies the unique transaction intent ID (starts with tin_).
|
|
552
600
|
* @param signatureRequest
|
|
553
601
|
*/
|
|
554
602
|
signature(id: string, signatureRequest: SignatureRequest, _options?: Configuration): Promise<TransactionIntentResponse>;
|