@openfort/openfort-node 0.6.33 → 0.6.35
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/README.md +24 -0
- package/dist/apis/inventoriesApiWrapper.js +2 -2
- package/dist/apis/inventoriesApiWrapper.js.map +1 -1
- package/dist/apis/playersApiWrapper.d.ts +1 -21
- package/dist/apis/playersApiWrapper.js +0 -31
- package/dist/apis/playersApiWrapper.js.map +1 -1
- package/dist/apis/policiesApiWrapper.d.ts +1 -16
- package/dist/apis/policiesApiWrapper.js +0 -23
- package/dist/apis/policiesApiWrapper.js.map +1 -1
- package/dist/apis/settingsApiWrapper.d.ts +5 -0
- package/dist/apis/settingsApiWrapper.js +6 -0
- package/dist/apis/settingsApiWrapper.js.map +1 -1
- package/dist/apis/transactionIntentsApiWrapper.js +1 -1
- package/dist/apis/transactionIntentsApiWrapper.js.map +1 -1
- package/dist/generated/apis/AccountsApi.d.ts +9 -9
- package/dist/generated/apis/AccountsApi.js +9 -9
- package/dist/generated/apis/InventoriesApi.d.ts +4 -32
- package/dist/generated/apis/InventoriesApi.js +8 -119
- package/dist/generated/apis/InventoriesApi.js.map +1 -1
- package/dist/generated/apis/PlayersApi.d.ts +2 -64
- package/dist/generated/apis/PlayersApi.js +2 -249
- package/dist/generated/apis/PlayersApi.js.map +1 -1
- package/dist/generated/apis/PoliciesApi.d.ts +2 -47
- package/dist/generated/apis/PoliciesApi.js +2 -197
- package/dist/generated/apis/PoliciesApi.js.map +1 -1
- package/dist/generated/apis/SessionsApi.d.ts +4 -1
- package/dist/generated/apis/SessionsApi.js +4 -1
- package/dist/generated/apis/SessionsApi.js.map +1 -1
- package/dist/generated/apis/SettingsApi.d.ts +22 -1
- package/dist/generated/apis/SettingsApi.js +81 -1
- package/dist/generated/apis/SettingsApi.js.map +1 -1
- package/dist/generated/apis/TransactionIntentsApi.d.ts +10 -8
- package/dist/generated/apis/TransactionIntentsApi.js +16 -14
- package/dist/generated/apis/TransactionIntentsApi.js.map +1 -1
- package/dist/generated/models/CancelTransferOwnershipRequest.d.ts +1 -1
- package/dist/generated/models/CreateAccountRequest.d.ts +6 -6
- package/dist/generated/models/CreateContractRequest.d.ts +1 -1
- package/dist/generated/models/CreatePolicyRequest.d.ts +1 -1
- package/dist/generated/models/CreatePolicyRuleRequest.d.ts +2 -2
- package/dist/generated/models/CreateSessionRequest.d.ts +3 -3
- package/dist/generated/models/CreateTransactionIntentRequest.d.ts +8 -8
- package/dist/generated/models/CreateWeb3ConnectionRequest.d.ts +2 -2
- package/dist/generated/models/{RevokeSessionPlayerRequest.d.ts → DeveloperAccount.d.ts} +9 -16
- package/dist/generated/models/DeveloperAccount.js +68 -0
- package/dist/generated/models/DeveloperAccount.js.map +1 -0
- package/dist/generated/models/{CreatePlayerAccountRequest.d.ts → DeveloperAccountListQueries.d.ts} +10 -15
- package/dist/generated/models/DeveloperAccountListQueries.js +50 -0
- package/dist/generated/models/DeveloperAccountListQueries.js.map +1 -0
- package/dist/generated/models/DeveloperAccountResponse.d.ts +3 -1
- package/dist/generated/models/DeveloperAccountResponse.js +12 -6
- package/dist/generated/models/DeveloperAccountResponse.js.map +1 -1
- package/dist/generated/models/{ObsoleteAssetType.d.ts → DeveloperAccountResponseExpandable.d.ts} +1 -1
- package/dist/generated/models/{ObsoleteAssetType.js → DeveloperAccountResponseExpandable.js} +1 -1
- package/dist/generated/models/DeveloperAccountResponseExpandable.js.map +1 -0
- package/dist/generated/models/Interaction.d.ts +5 -5
- package/dist/generated/models/NextActionPayload.d.ts +8 -0
- package/dist/generated/models/NextActionPayload.js +12 -0
- package/dist/generated/models/NextActionPayload.js.map +1 -1
- package/dist/generated/models/ObjectSerializer.d.ts +3 -7
- package/dist/generated/models/ObjectSerializer.js +8 -20
- package/dist/generated/models/ObjectSerializer.js.map +1 -1
- package/dist/generated/models/PlayerCancelTransferOwnershipRequest.d.ts +2 -2
- package/dist/generated/models/PlayerInventoryListQueries.d.ts +1 -1
- package/dist/generated/models/PlayerInventoryListQueries.js +2 -2
- package/dist/generated/models/PlayerInventoryListQueries.js.map +1 -1
- package/dist/generated/models/PlayerTransferOwnershipRequest.d.ts +3 -3
- package/dist/generated/models/ResponseResponse.d.ts +0 -1
- package/dist/generated/models/ResponseResponse.js +0 -6
- package/dist/generated/models/ResponseResponse.js.map +1 -1
- package/dist/generated/models/RevokeSessionRequest.d.ts +2 -2
- package/dist/generated/models/SignatureRequest.d.ts +1 -1
- package/dist/generated/models/SubmitWeb3ActionRequest.d.ts +1 -1
- package/dist/generated/models/TransactionIntentListQueries.d.ts +5 -5
- package/dist/generated/models/TransactionIntentListQueries.js +6 -6
- package/dist/generated/models/TransactionIntentListQueries.js.map +1 -1
- package/dist/generated/models/TransactionIntentResponseAccount.d.ts +4 -3
- package/dist/generated/models/TransactionIntentResponseAccount.js +9 -3
- package/dist/generated/models/TransactionIntentResponseAccount.js.map +1 -1
- package/dist/generated/models/TransactionIntentResponseExpandable.d.ts +1 -1
- package/dist/generated/models/TransferOwnershipRequest.d.ts +1 -1
- package/dist/generated/models/UpdateContractRequest.d.ts +1 -1
- package/dist/generated/models/UpdatePolicyRequest.d.ts +1 -1
- package/dist/generated/models/UpdatePolicyRuleRequest.d.ts +2 -2
- package/dist/generated/models/all.d.ts +3 -7
- package/dist/generated/models/all.js +3 -7
- package/dist/generated/models/all.js.map +1 -1
- package/dist/generated/types/ObjectParamAPI.d.ts +74 -197
- package/dist/generated/types/ObjectParamAPI.js +31 -78
- package/dist/generated/types/ObjectParamAPI.js.map +1 -1
- package/dist/generated/types/ObservableAPI.d.ts +44 -83
- package/dist/generated/types/ObservableAPI.js +62 -217
- package/dist/generated/types/ObservableAPI.js.map +1 -1
- package/dist/generated/types/PromiseAPI.d.ts +44 -83
- package/dist/generated/types/PromiseAPI.js +50 -109
- package/dist/generated/types/PromiseAPI.js.map +1 -1
- package/dist/models/getDeveloperAccountRequest.d.ts +4 -0
- package/dist/models/{createPlayerSessionRequest.js → getDeveloperAccountRequest.js} +1 -1
- package/dist/models/getDeveloperAccountRequest.js.map +1 -0
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.js +0 -1
- package/dist/models/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/generated/models/CreatePlayerAccountRequest.js +0 -56
- package/dist/generated/models/CreatePlayerAccountRequest.js.map +0 -1
- package/dist/generated/models/CreatePlayerSessionRequest.d.ts +0 -63
- package/dist/generated/models/CreatePlayerSessionRequest.js +0 -80
- package/dist/generated/models/CreatePlayerSessionRequest.js.map +0 -1
- package/dist/generated/models/CreatePolicyAllowFunctionRequest.d.ts +0 -51
- package/dist/generated/models/CreatePolicyAllowFunctionRequest.js +0 -68
- package/dist/generated/models/CreatePolicyAllowFunctionRequest.js.map +0 -1
- package/dist/generated/models/ObsoleteAssetInventory.d.ts +0 -36
- package/dist/generated/models/ObsoleteAssetInventory.js +0 -56
- package/dist/generated/models/ObsoleteAssetInventory.js.map +0 -1
- package/dist/generated/models/ObsoleteAssetType.js.map +0 -1
- package/dist/generated/models/ObsoleteInventoryResponse.d.ts +0 -33
- package/dist/generated/models/ObsoleteInventoryResponse.js +0 -50
- package/dist/generated/models/ObsoleteInventoryResponse.js.map +0 -1
- package/dist/generated/models/RevokeSessionPlayerRequest.js +0 -50
- package/dist/generated/models/RevokeSessionPlayerRequest.js.map +0 -1
- package/dist/models/createPlayerSessionRequest.d.ts +0 -4
- package/dist/models/createPlayerSessionRequest.js.map +0 -1
- package/dist/models/revokePlayerSessionRequest.d.ts +0 -4
- package/dist/models/revokePlayerSessionRequest.js +0 -3
- package/dist/models/revokePlayerSessionRequest.js.map +0 -1
|
@@ -13,9 +13,6 @@ import { ContractReadResponse } from '../models/ContractReadResponse';
|
|
|
13
13
|
import { ContractResponse } from '../models/ContractResponse';
|
|
14
14
|
import { CreateAccountRequest } from '../models/CreateAccountRequest';
|
|
15
15
|
import { CreateContractRequest } from '../models/CreateContractRequest';
|
|
16
|
-
import { CreatePlayerAccountRequest } from '../models/CreatePlayerAccountRequest';
|
|
17
|
-
import { CreatePlayerSessionRequest } from '../models/CreatePlayerSessionRequest';
|
|
18
|
-
import { CreatePolicyAllowFunctionRequest } from '../models/CreatePolicyAllowFunctionRequest';
|
|
19
16
|
import { CreatePolicyRequest } from '../models/CreatePolicyRequest';
|
|
20
17
|
import { CreatePolicyRuleRequest } from '../models/CreatePolicyRuleRequest';
|
|
21
18
|
import { CreateSessionRequest } from '../models/CreateSessionRequest';
|
|
@@ -27,6 +24,7 @@ import { DeveloperAccountDeleteResponse } from '../models/DeveloperAccountDelete
|
|
|
27
24
|
import { DeveloperAccountGetMessageResponse } from '../models/DeveloperAccountGetMessageResponse';
|
|
28
25
|
import { DeveloperAccountListResponse } from '../models/DeveloperAccountListResponse';
|
|
29
26
|
import { DeveloperAccountResponse } from '../models/DeveloperAccountResponse';
|
|
27
|
+
import { DeveloperAccountResponseExpandable } from '../models/DeveloperAccountResponseExpandable';
|
|
30
28
|
import { EstimateTransactionIntentGasResult } from '../models/EstimateTransactionIntentGasResult';
|
|
31
29
|
import { GasReport } from '../models/GasReport';
|
|
32
30
|
import { GetSigninUrlResponse } from '../models/GetSigninUrlResponse';
|
|
@@ -37,7 +35,6 @@ import { OAuthConfig } from '../models/OAuthConfig';
|
|
|
37
35
|
import { OAuthConfigListResponse } from '../models/OAuthConfigListResponse';
|
|
38
36
|
import { OAuthProvider } from '../models/OAuthProvider';
|
|
39
37
|
import { OAuthRequest } from '../models/OAuthRequest';
|
|
40
|
-
import { ObsoleteInventoryResponse } from '../models/ObsoleteInventoryResponse';
|
|
41
38
|
import { PlayerCancelTransferOwnershipRequest } from '../models/PlayerCancelTransferOwnershipRequest';
|
|
42
39
|
import { PlayerCreateRequest } from '../models/PlayerCreateRequest';
|
|
43
40
|
import { PlayerDeleteResponse } from '../models/PlayerDeleteResponse';
|
|
@@ -56,7 +53,6 @@ import { PolicyRuleResponse } from '../models/PolicyRuleResponse';
|
|
|
56
53
|
import { RegisterPlayerEncryptedKeyRequest } from '../models/RegisterPlayerEncryptedKeyRequest';
|
|
57
54
|
import { RegisterPlayerEncryptedKeyResponse } from '../models/RegisterPlayerEncryptedKeyResponse';
|
|
58
55
|
import { RetrievePlayerEncryptedKeyResponse } from '../models/RetrievePlayerEncryptedKeyResponse';
|
|
59
|
-
import { RevokeSessionPlayerRequest } from '../models/RevokeSessionPlayerRequest';
|
|
60
56
|
import { RevokeSessionRequest } from '../models/RevokeSessionRequest';
|
|
61
57
|
import { SessionListResponse } from '../models/SessionListResponse';
|
|
62
58
|
import { SessionResponse } from '../models/SessionResponse';
|
|
@@ -84,7 +80,7 @@ import { Web3ConnectionResponseExpandable } from '../models/Web3ConnectionRespon
|
|
|
84
80
|
import { AccountsApiRequestFactory, AccountsApiResponseProcessor } from "../apis/AccountsApi";
|
|
85
81
|
export interface AccountsApiCancelTransferOwnershipRequest {
|
|
86
82
|
/**
|
|
87
|
-
* Specifies the unique account ID.
|
|
83
|
+
* Specifies the unique account ID (starts with acc_).
|
|
88
84
|
* @type string
|
|
89
85
|
* @memberof AccountsApicancelTransferOwnership
|
|
90
86
|
*/
|
|
@@ -180,7 +176,7 @@ export interface AccountsApiGetAccountsRequest {
|
|
|
180
176
|
}
|
|
181
177
|
export interface AccountsApiRequestTransferOwnershipRequest {
|
|
182
178
|
/**
|
|
183
|
-
* Specifies the unique account ID.
|
|
179
|
+
* Specifies the unique account ID (starts with acc_).
|
|
184
180
|
* @type string
|
|
185
181
|
* @memberof AccountsApirequestTransferOwnership
|
|
186
182
|
*/
|
|
@@ -194,7 +190,7 @@ export interface AccountsApiRequestTransferOwnershipRequest {
|
|
|
194
190
|
}
|
|
195
191
|
export interface AccountsApiSignPayloadRequest {
|
|
196
192
|
/**
|
|
197
|
-
* Specifies the unique account ID.
|
|
193
|
+
* Specifies the unique account ID (starts with acc_).
|
|
198
194
|
* @type string
|
|
199
195
|
* @memberof AccountsApisignPayload
|
|
200
196
|
*/
|
|
@@ -232,7 +228,7 @@ export declare class ObjectAccountsApi {
|
|
|
232
228
|
private api;
|
|
233
229
|
constructor(configuration: Configuration, requestFactory?: AccountsApiRequestFactory, responseProcessor?: AccountsApiResponseProcessor);
|
|
234
230
|
/**
|
|
235
|
-
*
|
|
231
|
+
* Cancel a pending transfer of ownership.
|
|
236
232
|
* Cancel request to transfer ownership of an account.
|
|
237
233
|
* @param param the request object
|
|
238
234
|
*/
|
|
@@ -243,7 +239,7 @@ export declare class ObjectAccountsApi {
|
|
|
243
239
|
*/
|
|
244
240
|
completeRecovery(param: AccountsApiCompleteRecoveryRequest, options?: Configuration): Promise<TransactionIntentResponse>;
|
|
245
241
|
/**
|
|
246
|
-
*
|
|
242
|
+
* Creates a new blockchain account for the provided player. Account creation does not consume any gas. All accounts of a player will use the same address across blockchains. Only one account can per chain per player.
|
|
247
243
|
* Create an account object.
|
|
248
244
|
* @param param the request object
|
|
249
245
|
*/
|
|
@@ -255,19 +251,19 @@ export declare class ObjectAccountsApi {
|
|
|
255
251
|
*/
|
|
256
252
|
deployAccount(param: AccountsApiDeployAccountRequest, options?: Configuration): Promise<AccountResponse>;
|
|
257
253
|
/**
|
|
258
|
-
* Retrieves the details of an existing account.
|
|
254
|
+
* 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.
|
|
259
255
|
* Get existing account.
|
|
260
256
|
* @param param the request object
|
|
261
257
|
*/
|
|
262
258
|
getAccount(param: AccountsApiGetAccountRequest, options?: Configuration): Promise<AccountResponse>;
|
|
263
259
|
/**
|
|
264
|
-
* Returns a list of accounts for the given player.
|
|
260
|
+
* Returns a list of accounts for the given player. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of 10 accounts are shown per page.
|
|
265
261
|
* List accounts of a player.
|
|
266
262
|
* @param param the request object
|
|
267
263
|
*/
|
|
268
264
|
getAccounts(param: AccountsApiGetAccountsRequest, options?: Configuration): Promise<AccountListResponse>;
|
|
269
265
|
/**
|
|
270
|
-
*
|
|
266
|
+
* 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.
|
|
271
267
|
* Request transfer ownership of account.
|
|
272
268
|
* @param param the request object
|
|
273
269
|
*/
|
|
@@ -284,7 +280,7 @@ export declare class ObjectAccountsApi {
|
|
|
284
280
|
*/
|
|
285
281
|
startRecovery(param: AccountsApiStartRecoveryRequest, options?: Configuration): Promise<TransactionIntentResponse>;
|
|
286
282
|
/**
|
|
287
|
-
*
|
|
283
|
+
* Synchronize the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not.
|
|
288
284
|
* Sync account state with the blockchain
|
|
289
285
|
* @param param the request object
|
|
290
286
|
*/
|
|
@@ -537,14 +533,6 @@ export interface InventoriesApiGetAccountCryptoCurrencyInventoryRequest {
|
|
|
537
533
|
*/
|
|
538
534
|
contractId?: Array<string>;
|
|
539
535
|
}
|
|
540
|
-
export interface InventoriesApiGetAccountInventoryRequest {
|
|
541
|
-
/**
|
|
542
|
-
* Specifies the unique account ID (starts with acc_).
|
|
543
|
-
* @type string
|
|
544
|
-
* @memberof InventoriesApigetAccountInventory
|
|
545
|
-
*/
|
|
546
|
-
id: string;
|
|
547
|
-
}
|
|
548
536
|
export interface InventoriesApiGetAccountNativeInventoryRequest {
|
|
549
537
|
/**
|
|
550
538
|
* Specifies the unique account ID.
|
|
@@ -621,21 +609,7 @@ export interface InventoriesApiGetPlayerCryptoCurrencyInventoryRequest {
|
|
|
621
609
|
* @type Array<string>
|
|
622
610
|
* @memberof InventoriesApigetPlayerCryptoCurrencyInventory
|
|
623
611
|
*/
|
|
624
|
-
|
|
625
|
-
}
|
|
626
|
-
export interface InventoriesApiGetPlayerInventoryRequest {
|
|
627
|
-
/**
|
|
628
|
-
* Specifies the unique player ID (starts with pla_).
|
|
629
|
-
* @type string
|
|
630
|
-
* @memberof InventoriesApigetPlayerInventory
|
|
631
|
-
*/
|
|
632
|
-
id: string;
|
|
633
|
-
/**
|
|
634
|
-
* Filter by chain id.
|
|
635
|
-
* @type number
|
|
636
|
-
* @memberof InventoriesApigetPlayerInventory
|
|
637
|
-
*/
|
|
638
|
-
chainId: number;
|
|
612
|
+
contract?: Array<string>;
|
|
639
613
|
}
|
|
640
614
|
export interface InventoriesApiGetPlayerNativeInventoryRequest {
|
|
641
615
|
/**
|
|
@@ -687,7 +661,7 @@ export interface InventoriesApiGetPlayerNftInventoryRequest {
|
|
|
687
661
|
* @type Array<string>
|
|
688
662
|
* @memberof InventoriesApigetPlayerNftInventory
|
|
689
663
|
*/
|
|
690
|
-
|
|
664
|
+
contract?: Array<string>;
|
|
691
665
|
}
|
|
692
666
|
export declare class ObjectInventoriesApi {
|
|
693
667
|
private api;
|
|
@@ -697,11 +671,6 @@ export declare class ObjectInventoriesApi {
|
|
|
697
671
|
* @param param the request object
|
|
698
672
|
*/
|
|
699
673
|
getAccountCryptoCurrencyInventory(param: InventoriesApiGetAccountCryptoCurrencyInventoryRequest, options?: Configuration): Promise<InventoryListResponse>;
|
|
700
|
-
/**
|
|
701
|
-
* Get inventory of account.
|
|
702
|
-
* @param param the request object
|
|
703
|
-
*/
|
|
704
|
-
getAccountInventory(param: InventoriesApiGetAccountInventoryRequest, options?: Configuration): Promise<ObsoleteInventoryResponse>;
|
|
705
674
|
/**
|
|
706
675
|
* Retrieves the native asset of an existing account.
|
|
707
676
|
* @param param the request object
|
|
@@ -717,11 +686,6 @@ export declare class ObjectInventoriesApi {
|
|
|
717
686
|
* @param param the request object
|
|
718
687
|
*/
|
|
719
688
|
getPlayerCryptoCurrencyInventory(param: InventoriesApiGetPlayerCryptoCurrencyInventoryRequest, options?: Configuration): Promise<InventoryListResponse>;
|
|
720
|
-
/**
|
|
721
|
-
* Get inventory of player.
|
|
722
|
-
* @param param the request object
|
|
723
|
-
*/
|
|
724
|
-
getPlayerInventory(param: InventoriesApiGetPlayerInventoryRequest, options?: Configuration): Promise<ObsoleteInventoryResponse>;
|
|
725
689
|
/**
|
|
726
690
|
* Get native token list of player.
|
|
727
691
|
* @param param the request object
|
|
@@ -871,34 +835,6 @@ export interface PlayersApiCreatePlayerRequest {
|
|
|
871
835
|
*/
|
|
872
836
|
playerCreateRequest: PlayerCreateRequest;
|
|
873
837
|
}
|
|
874
|
-
export interface PlayersApiCreatePlayerAccountRequest {
|
|
875
|
-
/**
|
|
876
|
-
* Specifies the unique player ID (starts with pla_).
|
|
877
|
-
* @type string
|
|
878
|
-
* @memberof PlayersApicreatePlayerAccount
|
|
879
|
-
*/
|
|
880
|
-
id: string;
|
|
881
|
-
/**
|
|
882
|
-
*
|
|
883
|
-
* @type CreatePlayerAccountRequest
|
|
884
|
-
* @memberof PlayersApicreatePlayerAccount
|
|
885
|
-
*/
|
|
886
|
-
createPlayerAccountRequest: CreatePlayerAccountRequest;
|
|
887
|
-
}
|
|
888
|
-
export interface PlayersApiCreatePlayerSessionRequest {
|
|
889
|
-
/**
|
|
890
|
-
* Specifies the unique player ID (starts with pla_).
|
|
891
|
-
* @type string
|
|
892
|
-
* @memberof PlayersApicreatePlayerSession
|
|
893
|
-
*/
|
|
894
|
-
id: string;
|
|
895
|
-
/**
|
|
896
|
-
*
|
|
897
|
-
* @type CreatePlayerSessionRequest
|
|
898
|
-
* @memberof PlayersApicreatePlayerSession
|
|
899
|
-
*/
|
|
900
|
-
createPlayerSessionRequest: CreatePlayerSessionRequest;
|
|
901
|
-
}
|
|
902
838
|
export interface PlayersApiDeletePlayerRequest {
|
|
903
839
|
/**
|
|
904
840
|
* Specifies the unique player ID (starts with pla_).
|
|
@@ -921,20 +857,6 @@ export interface PlayersApiGetPlayerRequest {
|
|
|
921
857
|
*/
|
|
922
858
|
expand?: Array<PlayerResponseExpandable>;
|
|
923
859
|
}
|
|
924
|
-
export interface PlayersApiGetPlayerAccountsRequest {
|
|
925
|
-
/**
|
|
926
|
-
* Specifies the unique player ID (starts with pla_).
|
|
927
|
-
* @type string
|
|
928
|
-
* @memberof PlayersApigetPlayerAccounts
|
|
929
|
-
*/
|
|
930
|
-
id: string;
|
|
931
|
-
/**
|
|
932
|
-
* Specifies the expandable fields.
|
|
933
|
-
* @type Array<AccountResponseExpandable>
|
|
934
|
-
* @memberof PlayersApigetPlayerAccounts
|
|
935
|
-
*/
|
|
936
|
-
expand?: Array<AccountResponseExpandable>;
|
|
937
|
-
}
|
|
938
860
|
export interface PlayersApiGetPlayersRequest {
|
|
939
861
|
/**
|
|
940
862
|
* Specifies the maximum number of records to return.
|
|
@@ -981,20 +903,6 @@ export interface PlayersApiRequestTransferAccountOwnershipRequest {
|
|
|
981
903
|
*/
|
|
982
904
|
playerTransferOwnershipRequest: PlayerTransferOwnershipRequest;
|
|
983
905
|
}
|
|
984
|
-
export interface PlayersApiRevokePlayerSessionRequest {
|
|
985
|
-
/**
|
|
986
|
-
* Specifies the unique player ID (starts with pla_).
|
|
987
|
-
* @type string
|
|
988
|
-
* @memberof PlayersApirevokePlayerSession
|
|
989
|
-
*/
|
|
990
|
-
id: string;
|
|
991
|
-
/**
|
|
992
|
-
*
|
|
993
|
-
* @type RevokeSessionPlayerRequest
|
|
994
|
-
* @memberof PlayersApirevokePlayerSession
|
|
995
|
-
*/
|
|
996
|
-
revokeSessionPlayerRequest: RevokeSessionPlayerRequest;
|
|
997
|
-
}
|
|
998
906
|
export interface PlayersApiUpdatePlayerRequest {
|
|
999
907
|
/**
|
|
1000
908
|
* Specifies the unique player ID (starts with pla_).
|
|
@@ -1019,21 +927,11 @@ export declare class ObjectPlayersApi {
|
|
|
1019
927
|
*/
|
|
1020
928
|
cancelTransferAccountOwnership(param: PlayersApiCancelTransferAccountOwnershipRequest, options?: Configuration): Promise<TransactionIntentResponse>;
|
|
1021
929
|
/**
|
|
1022
|
-
*
|
|
930
|
+
* Creates a Player.
|
|
1023
931
|
* Create a player object.
|
|
1024
932
|
* @param param the request object
|
|
1025
933
|
*/
|
|
1026
934
|
createPlayer(param: PlayersApiCreatePlayerRequest, options?: Configuration): Promise<PlayerResponse>;
|
|
1027
|
-
/**
|
|
1028
|
-
* Create account object for a player.
|
|
1029
|
-
* @param param the request object
|
|
1030
|
-
*/
|
|
1031
|
-
createPlayerAccount(param: PlayersApiCreatePlayerAccountRequest, options?: Configuration): Promise<AccountResponse>;
|
|
1032
|
-
/**
|
|
1033
|
-
* Create session object for a player.
|
|
1034
|
-
* @param param the request object
|
|
1035
|
-
*/
|
|
1036
|
-
createPlayerSession(param: PlayersApiCreatePlayerSessionRequest, options?: Configuration): Promise<SessionResponse>;
|
|
1037
935
|
/**
|
|
1038
936
|
* Deletes a player object.
|
|
1039
937
|
* @param param the request object
|
|
@@ -1044,11 +942,6 @@ export declare class ObjectPlayersApi {
|
|
|
1044
942
|
* @param param the request object
|
|
1045
943
|
*/
|
|
1046
944
|
getPlayer(param: PlayersApiGetPlayerRequest, options?: Configuration): Promise<PlayerResponse>;
|
|
1047
|
-
/**
|
|
1048
|
-
* List of accounts of a player.
|
|
1049
|
-
* @param param the request object
|
|
1050
|
-
*/
|
|
1051
|
-
getPlayerAccounts(param: PlayersApiGetPlayerAccountsRequest, options?: Configuration): Promise<AccountListResponse>;
|
|
1052
945
|
/**
|
|
1053
946
|
* By default, a maximum of ten players are shown.
|
|
1054
947
|
* List players.
|
|
@@ -1062,11 +955,7 @@ export declare class ObjectPlayersApi {
|
|
|
1062
955
|
*/
|
|
1063
956
|
requestTransferAccountOwnership(param: PlayersApiRequestTransferAccountOwnershipRequest, options?: Configuration): Promise<TransactionIntentResponse>;
|
|
1064
957
|
/**
|
|
1065
|
-
*
|
|
1066
|
-
* @param param the request object
|
|
1067
|
-
*/
|
|
1068
|
-
revokePlayerSession(param: PlayersApiRevokePlayerSessionRequest, options?: Configuration): Promise<SessionResponse>;
|
|
1069
|
-
/**
|
|
958
|
+
* Updates the specified Player by setting the values of the parameters passed.
|
|
1070
959
|
* Updates a player object.
|
|
1071
960
|
* @param param the request object
|
|
1072
961
|
*/
|
|
@@ -1137,20 +1026,6 @@ export interface PoliciesApiCreatePolicyRequest {
|
|
|
1137
1026
|
*/
|
|
1138
1027
|
createPolicyRequest: CreatePolicyRequest;
|
|
1139
1028
|
}
|
|
1140
|
-
export interface PoliciesApiCreatePolicyAllowFunctionRequest {
|
|
1141
|
-
/**
|
|
1142
|
-
* Specifies the unique policy ID (starts with pol_).
|
|
1143
|
-
* @type string
|
|
1144
|
-
* @memberof PoliciesApicreatePolicyAllowFunction
|
|
1145
|
-
*/
|
|
1146
|
-
id: string;
|
|
1147
|
-
/**
|
|
1148
|
-
*
|
|
1149
|
-
* @type CreatePolicyAllowFunctionRequest
|
|
1150
|
-
* @memberof PoliciesApicreatePolicyAllowFunction
|
|
1151
|
-
*/
|
|
1152
|
-
createPolicyAllowFunctionRequest: CreatePolicyAllowFunctionRequest;
|
|
1153
|
-
}
|
|
1154
1029
|
export interface PoliciesApiDeletePolicyRequest {
|
|
1155
1030
|
/**
|
|
1156
1031
|
* Specifies the unique policy ID (starts with pol_).
|
|
@@ -1239,20 +1114,6 @@ export interface PoliciesApiGetPolicyRequest {
|
|
|
1239
1114
|
*/
|
|
1240
1115
|
expand?: Array<PolicyResponseExpandable>;
|
|
1241
1116
|
}
|
|
1242
|
-
export interface PoliciesApiGetPolicyAllowFunctionsRequest {
|
|
1243
|
-
/**
|
|
1244
|
-
* Specifies the unique policy ID (starts with pol_).
|
|
1245
|
-
* @type string
|
|
1246
|
-
* @memberof PoliciesApigetPolicyAllowFunctions
|
|
1247
|
-
*/
|
|
1248
|
-
id: string;
|
|
1249
|
-
/**
|
|
1250
|
-
* Specifies the fields to expand.
|
|
1251
|
-
* @type Array<'contract'>
|
|
1252
|
-
* @memberof PoliciesApigetPolicyAllowFunctions
|
|
1253
|
-
*/
|
|
1254
|
-
expand?: Array<'contract'>;
|
|
1255
|
-
}
|
|
1256
1117
|
export interface PoliciesApiGetPolicyTotalGasUsageRequest {
|
|
1257
1118
|
/**
|
|
1258
1119
|
* Specifies the unique policy ID (starts with pol_).
|
|
@@ -1275,26 +1136,6 @@ export interface PoliciesApiUpdatePolicyRequest {
|
|
|
1275
1136
|
*/
|
|
1276
1137
|
updatePolicyRequest: UpdatePolicyRequest;
|
|
1277
1138
|
}
|
|
1278
|
-
export interface PoliciesApiUpdatePolicyAllowFunctionRequest {
|
|
1279
|
-
/**
|
|
1280
|
-
* Specifies the unique policy ID (starts with pol_).
|
|
1281
|
-
* @type string
|
|
1282
|
-
* @memberof PoliciesApiupdatePolicyAllowFunction
|
|
1283
|
-
*/
|
|
1284
|
-
policy: string;
|
|
1285
|
-
/**
|
|
1286
|
-
* Specifies the unique policy rule ID (starts with afu_).
|
|
1287
|
-
* @type string
|
|
1288
|
-
* @memberof PoliciesApiupdatePolicyAllowFunction
|
|
1289
|
-
*/
|
|
1290
|
-
policyRule: string;
|
|
1291
|
-
/**
|
|
1292
|
-
*
|
|
1293
|
-
* @type UpdatePolicyRuleRequest
|
|
1294
|
-
* @memberof PoliciesApiupdatePolicyAllowFunction
|
|
1295
|
-
*/
|
|
1296
|
-
updatePolicyRuleRequest: UpdatePolicyRuleRequest;
|
|
1297
|
-
}
|
|
1298
1139
|
export declare class ObjectPoliciesApi {
|
|
1299
1140
|
private api;
|
|
1300
1141
|
constructor(configuration: Configuration, requestFactory?: PoliciesApiRequestFactory, responseProcessor?: PoliciesApiResponseProcessor);
|
|
@@ -1303,11 +1144,6 @@ export declare class ObjectPoliciesApi {
|
|
|
1303
1144
|
* @param param the request object
|
|
1304
1145
|
*/
|
|
1305
1146
|
createPolicy(param: PoliciesApiCreatePolicyRequest, options?: Configuration): Promise<PolicyResponse>;
|
|
1306
|
-
/**
|
|
1307
|
-
* Create a policy rule object for a policy.
|
|
1308
|
-
* @param param the request object
|
|
1309
|
-
*/
|
|
1310
|
-
createPolicyAllowFunction(param: PoliciesApiCreatePolicyAllowFunctionRequest, options?: Configuration): Promise<PolicyRuleResponse>;
|
|
1311
1147
|
/**
|
|
1312
1148
|
* Delete a policy object.
|
|
1313
1149
|
* @param param the request object
|
|
@@ -1324,20 +1160,17 @@ export declare class ObjectPoliciesApi {
|
|
|
1324
1160
|
*/
|
|
1325
1161
|
enablePolicy(param: PoliciesApiEnablePolicyRequest, options?: Configuration): Promise<PolicyResponse>;
|
|
1326
1162
|
/**
|
|
1163
|
+
* Returns a list of Policies.
|
|
1327
1164
|
* List policies.
|
|
1328
1165
|
* @param param the request object
|
|
1329
1166
|
*/
|
|
1330
1167
|
getPolicies(param?: PoliciesApiGetPoliciesRequest, options?: Configuration): Promise<PolicyListResponse>;
|
|
1331
1168
|
/**
|
|
1169
|
+
* Retrieves the details of a Policy that has previously been created.
|
|
1332
1170
|
* Get a policy object.
|
|
1333
1171
|
* @param param the request object
|
|
1334
1172
|
*/
|
|
1335
1173
|
getPolicy(param: PoliciesApiGetPolicyRequest, options?: Configuration): Promise<PolicyResponse>;
|
|
1336
|
-
/**
|
|
1337
|
-
* List policy rules of a policy.
|
|
1338
|
-
* @param param the request object
|
|
1339
|
-
*/
|
|
1340
|
-
getPolicyAllowFunctions(param: PoliciesApiGetPolicyAllowFunctionsRequest, options?: Configuration): Promise<PolicyRuleListResponse>;
|
|
1341
1174
|
/**
|
|
1342
1175
|
* List all gas reports of a policy.
|
|
1343
1176
|
* @param param the request object
|
|
@@ -1348,11 +1181,6 @@ export declare class ObjectPoliciesApi {
|
|
|
1348
1181
|
* @param param the request object
|
|
1349
1182
|
*/
|
|
1350
1183
|
updatePolicy(param: PoliciesApiUpdatePolicyRequest, options?: Configuration): Promise<PolicyResponse>;
|
|
1351
|
-
/**
|
|
1352
|
-
* Update a policy rule object of a policy.
|
|
1353
|
-
* @param param the request object
|
|
1354
|
-
*/
|
|
1355
|
-
updatePolicyAllowFunction(param: PoliciesApiUpdatePolicyAllowFunctionRequest, options?: Configuration): Promise<PolicyRuleResponse>;
|
|
1356
1184
|
}
|
|
1357
1185
|
import { PolicyRulesApiRequestFactory, PolicyRulesApiResponseProcessor } from "../apis/PolicyRulesApi";
|
|
1358
1186
|
export interface PolicyRulesApiCreatePolicyRulesRequest {
|
|
@@ -1522,16 +1350,19 @@ export declare class ObjectSessionsApi {
|
|
|
1522
1350
|
private api;
|
|
1523
1351
|
constructor(configuration: Configuration, requestFactory?: SessionsApiRequestFactory, responseProcessor?: SessionsApiResponseProcessor);
|
|
1524
1352
|
/**
|
|
1353
|
+
* Creates a Session.
|
|
1525
1354
|
* Create a session key.
|
|
1526
1355
|
* @param param the request object
|
|
1527
1356
|
*/
|
|
1528
1357
|
createSession(param: SessionsApiCreateSessionRequest, options?: Configuration): Promise<SessionResponse>;
|
|
1529
1358
|
/**
|
|
1359
|
+
* Returns a list of Sessions.
|
|
1530
1360
|
* List session keys of a player.
|
|
1531
1361
|
* @param param the request object
|
|
1532
1362
|
*/
|
|
1533
1363
|
getPlayerSessions(param: SessionsApiGetPlayerSessionsRequest, options?: Configuration): Promise<SessionListResponse>;
|
|
1534
1364
|
/**
|
|
1365
|
+
* Retrieves the details of a Session that has previously been created.
|
|
1535
1366
|
* Returns a player session by session id
|
|
1536
1367
|
* @param param the request object
|
|
1537
1368
|
*/
|
|
@@ -1542,7 +1373,7 @@ export declare class ObjectSessionsApi {
|
|
|
1542
1373
|
*/
|
|
1543
1374
|
revokeSession(param: SessionsApiRevokeSessionRequest, options?: Configuration): Promise<SessionResponse>;
|
|
1544
1375
|
/**
|
|
1545
|
-
* Send signed
|
|
1376
|
+
* Send signed userOperationHash to create session.
|
|
1546
1377
|
* @param param the request object
|
|
1547
1378
|
*/
|
|
1548
1379
|
signatureSession(param: SessionsApiSignatureSessionRequest, options?: Configuration): Promise<SessionResponse>;
|
|
@@ -1564,7 +1395,45 @@ export interface SettingsApiDeleteDeveloperAccountRequest {
|
|
|
1564
1395
|
*/
|
|
1565
1396
|
id: string;
|
|
1566
1397
|
}
|
|
1398
|
+
export interface SettingsApiGetDeveloperAccountRequest {
|
|
1399
|
+
/**
|
|
1400
|
+
*
|
|
1401
|
+
* @type string
|
|
1402
|
+
* @memberof SettingsApigetDeveloperAccount
|
|
1403
|
+
*/
|
|
1404
|
+
id: string;
|
|
1405
|
+
/**
|
|
1406
|
+
*
|
|
1407
|
+
* @type Array<DeveloperAccountResponseExpandable>
|
|
1408
|
+
* @memberof SettingsApigetDeveloperAccount
|
|
1409
|
+
*/
|
|
1410
|
+
expand?: Array<DeveloperAccountResponseExpandable>;
|
|
1411
|
+
}
|
|
1567
1412
|
export interface SettingsApiGetDeveloperAccountsRequest {
|
|
1413
|
+
/**
|
|
1414
|
+
* Specifies the maximum number of records to return.
|
|
1415
|
+
* @type number
|
|
1416
|
+
* @memberof SettingsApigetDeveloperAccounts
|
|
1417
|
+
*/
|
|
1418
|
+
limit?: number;
|
|
1419
|
+
/**
|
|
1420
|
+
* Specifies the offset for the first records to return.
|
|
1421
|
+
* @type number
|
|
1422
|
+
* @memberof SettingsApigetDeveloperAccounts
|
|
1423
|
+
*/
|
|
1424
|
+
skip?: number;
|
|
1425
|
+
/**
|
|
1426
|
+
* Specifies the order in which to sort the results.
|
|
1427
|
+
* @type SortOrder
|
|
1428
|
+
* @memberof SettingsApigetDeveloperAccounts
|
|
1429
|
+
*/
|
|
1430
|
+
order?: SortOrder;
|
|
1431
|
+
/**
|
|
1432
|
+
* Specifies the fields to expand in the response.
|
|
1433
|
+
* @type Array<DeveloperAccountResponseExpandable>
|
|
1434
|
+
* @memberof SettingsApigetDeveloperAccounts
|
|
1435
|
+
*/
|
|
1436
|
+
expand?: Array<DeveloperAccountResponseExpandable>;
|
|
1568
1437
|
}
|
|
1569
1438
|
export interface SettingsApiGetVerificationPayloadRequest {
|
|
1570
1439
|
/**
|
|
@@ -1601,6 +1470,12 @@ export declare class ObjectSettingsApi {
|
|
|
1601
1470
|
deleteDeveloperAccount(param: SettingsApiDeleteDeveloperAccountRequest, options?: Configuration): Promise<DeveloperAccountDeleteResponse>;
|
|
1602
1471
|
/**
|
|
1603
1472
|
* Retrieve the list of the developer accounts for the current project.
|
|
1473
|
+
* Get existing developer account.
|
|
1474
|
+
* @param param the request object
|
|
1475
|
+
*/
|
|
1476
|
+
getDeveloperAccount(param: SettingsApiGetDeveloperAccountRequest, options?: Configuration): Promise<DeveloperAccountResponse>;
|
|
1477
|
+
/**
|
|
1478
|
+
* Retrieve the list of the developer accounts for the current project. By default, a maximum of 10 accounts are shown per page.
|
|
1604
1479
|
* List of developer accounts.
|
|
1605
1480
|
* @param param the request object
|
|
1606
1481
|
*/
|
|
@@ -1681,29 +1556,29 @@ export interface TransactionIntentsApiGetTransactionIntentsRequest {
|
|
|
1681
1556
|
*/
|
|
1682
1557
|
expand?: Array<TransactionIntentResponseExpandable>;
|
|
1683
1558
|
/**
|
|
1684
|
-
* The chain ID.
|
|
1559
|
+
* The chain ID. Must be a [supported chain](/chains).
|
|
1685
1560
|
* @type number
|
|
1686
1561
|
* @memberof TransactionIntentsApigetTransactionIntents
|
|
1687
1562
|
*/
|
|
1688
1563
|
chainId?: number;
|
|
1689
1564
|
/**
|
|
1690
|
-
* Filter by account ID.
|
|
1565
|
+
* Filter by account ID or developer account (starts with acc_ or dac_ respectively).
|
|
1691
1566
|
* @type Array<string>
|
|
1692
1567
|
* @memberof TransactionIntentsApigetTransactionIntents
|
|
1693
1568
|
*/
|
|
1694
|
-
|
|
1569
|
+
account?: Array<string>;
|
|
1695
1570
|
/**
|
|
1696
1571
|
* Filter by player ID (starts with pla_).
|
|
1697
1572
|
* @type Array<string>
|
|
1698
1573
|
* @memberof TransactionIntentsApigetTransactionIntents
|
|
1699
1574
|
*/
|
|
1700
|
-
|
|
1575
|
+
player?: Array<string>;
|
|
1701
1576
|
/**
|
|
1702
1577
|
* Filter by policy ID (starts with pol_).
|
|
1703
1578
|
* @type Array<string>
|
|
1704
1579
|
* @memberof TransactionIntentsApigetTransactionIntents
|
|
1705
1580
|
*/
|
|
1706
|
-
|
|
1581
|
+
policy?: Array<string>;
|
|
1707
1582
|
}
|
|
1708
1583
|
export interface TransactionIntentsApiSignatureRequest {
|
|
1709
1584
|
/**
|
|
@@ -1723,29 +1598,31 @@ export declare class ObjectTransactionIntentsApi {
|
|
|
1723
1598
|
private api;
|
|
1724
1599
|
constructor(configuration: Configuration, requestFactory?: TransactionIntentsApiRequestFactory, responseProcessor?: TransactionIntentsApiResponseProcessor);
|
|
1725
1600
|
/**
|
|
1726
|
-
*
|
|
1601
|
+
* Creates a TransactionIntent. A pending TransactionIntent has the `response` attribute as undefined. After the TransactionIntent is created and broadcasted to the blockchain, `response` will be populated with the transaction hash and a status (1 success, 0 fail). When using a non-custodial account, a `nextAction` attribute is returned with the `userOperationHash` that must be signed by the owner of the account.
|
|
1727
1602
|
* Create a transaction intent object.
|
|
1728
1603
|
* @param param the request object
|
|
1729
1604
|
*/
|
|
1730
1605
|
createTransactionIntent(param: TransactionIntentsApiCreateTransactionIntentRequest, options?: Configuration): Promise<TransactionIntentResponse>;
|
|
1731
1606
|
/**
|
|
1732
|
-
* Estimate the gas cost of
|
|
1607
|
+
* Estimate the gas cost of broadcasting a TransactionIntent. This is a simulation, it does not send the transaction on-chain. If a Policy ID is used that includes payment of gas in ERC-20 tokens, an extra field `estimatedTXGasFeeToken` is returned with the estimated amount of tokens that will be used.
|
|
1733
1608
|
* Estimate gas cost of creating a transaction
|
|
1734
1609
|
* @param param the request object
|
|
1735
1610
|
*/
|
|
1736
1611
|
estimateTransactionIntentCost(param: TransactionIntentsApiEstimateTransactionIntentCostRequest, options?: Configuration): Promise<EstimateTransactionIntentGasResult>;
|
|
1737
1612
|
/**
|
|
1613
|
+
* Retrieves the details of a TransactionIntent that has previously been created.
|
|
1738
1614
|
* Get a transaction intent object.
|
|
1739
1615
|
* @param param the request object
|
|
1740
1616
|
*/
|
|
1741
1617
|
getTransactionIntent(param: TransactionIntentsApiGetTransactionIntentRequest, options?: Configuration): Promise<TransactionIntentResponse>;
|
|
1742
1618
|
/**
|
|
1619
|
+
* Returns a list of TransactionIntents.
|
|
1743
1620
|
* List transaction intents.
|
|
1744
1621
|
* @param param the request object
|
|
1745
1622
|
*/
|
|
1746
1623
|
getTransactionIntents(param?: TransactionIntentsApiGetTransactionIntentsRequest, options?: Configuration): Promise<TransactionIntentListResponse>;
|
|
1747
1624
|
/**
|
|
1748
|
-
*
|
|
1625
|
+
* Broadcasts a signed TransactionIntent to the blockchain. Use this endpoint to send the signed `userOperationHash`. Openfort will then put it on-chain.
|
|
1749
1626
|
* Send a signed transaction userOperationHash.
|
|
1750
1627
|
* @param param the request object
|
|
1751
1628
|
*/
|