@openfort/openfort-node 0.6.32 → 0.6.34
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/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 +2 -2
- package/dist/apis/settingsApiWrapper.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 +0 -28
- package/dist/generated/apis/InventoriesApi.js +0 -111
- 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/TransactionIntentsApi.d.ts +6 -4
- package/dist/generated/apis/TransactionIntentsApi.js +6 -4
- 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/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 +0 -7
- package/dist/generated/models/ObjectSerializer.js +0 -20
- package/dist/generated/models/ObjectSerializer.js.map +1 -1
- package/dist/generated/models/PlayerCancelTransferOwnershipRequest.d.ts +2 -2
- 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 +1 -1
- package/dist/generated/models/TransactionIntentResponseAccount.d.ts +1 -1
- package/dist/generated/models/TransactionIntentResponseAccount.js +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 +0 -7
- package/dist/generated/models/all.js +0 -7
- package/dist/generated/models/all.js.map +1 -1
- package/dist/generated/types/ObjectParamAPI.d.ts +23 -191
- package/dist/generated/types/ObjectParamAPI.js +19 -74
- package/dist/generated/types/ObjectParamAPI.js.map +1 -1
- package/dist/generated/types/ObservableAPI.d.ts +23 -74
- package/dist/generated/types/ObservableAPI.js +23 -204
- package/dist/generated/types/ObservableAPI.js.map +1 -1
- package/dist/generated/types/PromiseAPI.d.ts +23 -74
- package/dist/generated/types/PromiseAPI.js +23 -96
- package/dist/generated/types/PromiseAPI.js.map +1 -1
- 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.d.ts +0 -47
- 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.d.ts +0 -12
- package/dist/generated/models/ObsoleteAssetType.js +0 -14
- 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.d.ts +0 -43
- 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 +0 -3
- 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';
|
|
@@ -37,7 +34,6 @@ import { OAuthConfig } from '../models/OAuthConfig';
|
|
|
37
34
|
import { OAuthConfigListResponse } from '../models/OAuthConfigListResponse';
|
|
38
35
|
import { OAuthProvider } from '../models/OAuthProvider';
|
|
39
36
|
import { OAuthRequest } from '../models/OAuthRequest';
|
|
40
|
-
import { ObsoleteInventoryResponse } from '../models/ObsoleteInventoryResponse';
|
|
41
37
|
import { PlayerCancelTransferOwnershipRequest } from '../models/PlayerCancelTransferOwnershipRequest';
|
|
42
38
|
import { PlayerCreateRequest } from '../models/PlayerCreateRequest';
|
|
43
39
|
import { PlayerDeleteResponse } from '../models/PlayerDeleteResponse';
|
|
@@ -56,7 +52,6 @@ import { PolicyRuleResponse } from '../models/PolicyRuleResponse';
|
|
|
56
52
|
import { RegisterPlayerEncryptedKeyRequest } from '../models/RegisterPlayerEncryptedKeyRequest';
|
|
57
53
|
import { RegisterPlayerEncryptedKeyResponse } from '../models/RegisterPlayerEncryptedKeyResponse';
|
|
58
54
|
import { RetrievePlayerEncryptedKeyResponse } from '../models/RetrievePlayerEncryptedKeyResponse';
|
|
59
|
-
import { RevokeSessionPlayerRequest } from '../models/RevokeSessionPlayerRequest';
|
|
60
55
|
import { RevokeSessionRequest } from '../models/RevokeSessionRequest';
|
|
61
56
|
import { SessionListResponse } from '../models/SessionListResponse';
|
|
62
57
|
import { SessionResponse } from '../models/SessionResponse';
|
|
@@ -84,7 +79,7 @@ import { Web3ConnectionResponseExpandable } from '../models/Web3ConnectionRespon
|
|
|
84
79
|
import { AccountsApiRequestFactory, AccountsApiResponseProcessor } from "../apis/AccountsApi";
|
|
85
80
|
export interface AccountsApiCancelTransferOwnershipRequest {
|
|
86
81
|
/**
|
|
87
|
-
* Specifies the unique account ID.
|
|
82
|
+
* Specifies the unique account ID (starts with acc_).
|
|
88
83
|
* @type string
|
|
89
84
|
* @memberof AccountsApicancelTransferOwnership
|
|
90
85
|
*/
|
|
@@ -180,7 +175,7 @@ export interface AccountsApiGetAccountsRequest {
|
|
|
180
175
|
}
|
|
181
176
|
export interface AccountsApiRequestTransferOwnershipRequest {
|
|
182
177
|
/**
|
|
183
|
-
* Specifies the unique account ID.
|
|
178
|
+
* Specifies the unique account ID (starts with acc_).
|
|
184
179
|
* @type string
|
|
185
180
|
* @memberof AccountsApirequestTransferOwnership
|
|
186
181
|
*/
|
|
@@ -194,7 +189,7 @@ export interface AccountsApiRequestTransferOwnershipRequest {
|
|
|
194
189
|
}
|
|
195
190
|
export interface AccountsApiSignPayloadRequest {
|
|
196
191
|
/**
|
|
197
|
-
* Specifies the unique account ID.
|
|
192
|
+
* Specifies the unique account ID (starts with acc_).
|
|
198
193
|
* @type string
|
|
199
194
|
* @memberof AccountsApisignPayload
|
|
200
195
|
*/
|
|
@@ -232,7 +227,7 @@ export declare class ObjectAccountsApi {
|
|
|
232
227
|
private api;
|
|
233
228
|
constructor(configuration: Configuration, requestFactory?: AccountsApiRequestFactory, responseProcessor?: AccountsApiResponseProcessor);
|
|
234
229
|
/**
|
|
235
|
-
*
|
|
230
|
+
* Cancel a pending transfer of ownership.
|
|
236
231
|
* Cancel request to transfer ownership of an account.
|
|
237
232
|
* @param param the request object
|
|
238
233
|
*/
|
|
@@ -243,7 +238,7 @@ export declare class ObjectAccountsApi {
|
|
|
243
238
|
*/
|
|
244
239
|
completeRecovery(param: AccountsApiCompleteRecoveryRequest, options?: Configuration): Promise<TransactionIntentResponse>;
|
|
245
240
|
/**
|
|
246
|
-
*
|
|
241
|
+
* 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
242
|
* Create an account object.
|
|
248
243
|
* @param param the request object
|
|
249
244
|
*/
|
|
@@ -255,19 +250,19 @@ export declare class ObjectAccountsApi {
|
|
|
255
250
|
*/
|
|
256
251
|
deployAccount(param: AccountsApiDeployAccountRequest, options?: Configuration): Promise<AccountResponse>;
|
|
257
252
|
/**
|
|
258
|
-
* Retrieves the details of an existing account.
|
|
253
|
+
* 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
254
|
* Get existing account.
|
|
260
255
|
* @param param the request object
|
|
261
256
|
*/
|
|
262
257
|
getAccount(param: AccountsApiGetAccountRequest, options?: Configuration): Promise<AccountResponse>;
|
|
263
258
|
/**
|
|
264
|
-
* Returns a list of accounts for the given player.
|
|
259
|
+
* 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
260
|
* List accounts of a player.
|
|
266
261
|
* @param param the request object
|
|
267
262
|
*/
|
|
268
263
|
getAccounts(param: AccountsApiGetAccountsRequest, options?: Configuration): Promise<AccountListResponse>;
|
|
269
264
|
/**
|
|
270
|
-
*
|
|
265
|
+
* 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
266
|
* Request transfer ownership of account.
|
|
272
267
|
* @param param the request object
|
|
273
268
|
*/
|
|
@@ -284,7 +279,7 @@ export declare class ObjectAccountsApi {
|
|
|
284
279
|
*/
|
|
285
280
|
startRecovery(param: AccountsApiStartRecoveryRequest, options?: Configuration): Promise<TransactionIntentResponse>;
|
|
286
281
|
/**
|
|
287
|
-
*
|
|
282
|
+
* Synchronize the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not.
|
|
288
283
|
* Sync account state with the blockchain
|
|
289
284
|
* @param param the request object
|
|
290
285
|
*/
|
|
@@ -537,14 +532,6 @@ export interface InventoriesApiGetAccountCryptoCurrencyInventoryRequest {
|
|
|
537
532
|
*/
|
|
538
533
|
contractId?: Array<string>;
|
|
539
534
|
}
|
|
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
535
|
export interface InventoriesApiGetAccountNativeInventoryRequest {
|
|
549
536
|
/**
|
|
550
537
|
* Specifies the unique account ID.
|
|
@@ -623,20 +610,6 @@ export interface InventoriesApiGetPlayerCryptoCurrencyInventoryRequest {
|
|
|
623
610
|
*/
|
|
624
611
|
contractId?: Array<string>;
|
|
625
612
|
}
|
|
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;
|
|
639
|
-
}
|
|
640
613
|
export interface InventoriesApiGetPlayerNativeInventoryRequest {
|
|
641
614
|
/**
|
|
642
615
|
* Specifies the unique player ID (starts with pla_).
|
|
@@ -697,11 +670,6 @@ export declare class ObjectInventoriesApi {
|
|
|
697
670
|
* @param param the request object
|
|
698
671
|
*/
|
|
699
672
|
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
673
|
/**
|
|
706
674
|
* Retrieves the native asset of an existing account.
|
|
707
675
|
* @param param the request object
|
|
@@ -717,11 +685,6 @@ export declare class ObjectInventoriesApi {
|
|
|
717
685
|
* @param param the request object
|
|
718
686
|
*/
|
|
719
687
|
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
688
|
/**
|
|
726
689
|
* Get native token list of player.
|
|
727
690
|
* @param param the request object
|
|
@@ -871,34 +834,6 @@ export interface PlayersApiCreatePlayerRequest {
|
|
|
871
834
|
*/
|
|
872
835
|
playerCreateRequest: PlayerCreateRequest;
|
|
873
836
|
}
|
|
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
837
|
export interface PlayersApiDeletePlayerRequest {
|
|
903
838
|
/**
|
|
904
839
|
* Specifies the unique player ID (starts with pla_).
|
|
@@ -921,20 +856,6 @@ export interface PlayersApiGetPlayerRequest {
|
|
|
921
856
|
*/
|
|
922
857
|
expand?: Array<PlayerResponseExpandable>;
|
|
923
858
|
}
|
|
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
859
|
export interface PlayersApiGetPlayersRequest {
|
|
939
860
|
/**
|
|
940
861
|
* Specifies the maximum number of records to return.
|
|
@@ -981,20 +902,6 @@ export interface PlayersApiRequestTransferAccountOwnershipRequest {
|
|
|
981
902
|
*/
|
|
982
903
|
playerTransferOwnershipRequest: PlayerTransferOwnershipRequest;
|
|
983
904
|
}
|
|
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
905
|
export interface PlayersApiUpdatePlayerRequest {
|
|
999
906
|
/**
|
|
1000
907
|
* Specifies the unique player ID (starts with pla_).
|
|
@@ -1019,21 +926,11 @@ export declare class ObjectPlayersApi {
|
|
|
1019
926
|
*/
|
|
1020
927
|
cancelTransferAccountOwnership(param: PlayersApiCancelTransferAccountOwnershipRequest, options?: Configuration): Promise<TransactionIntentResponse>;
|
|
1021
928
|
/**
|
|
1022
|
-
*
|
|
929
|
+
* Creates a Player.
|
|
1023
930
|
* Create a player object.
|
|
1024
931
|
* @param param the request object
|
|
1025
932
|
*/
|
|
1026
933
|
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
934
|
/**
|
|
1038
935
|
* Deletes a player object.
|
|
1039
936
|
* @param param the request object
|
|
@@ -1044,11 +941,6 @@ export declare class ObjectPlayersApi {
|
|
|
1044
941
|
* @param param the request object
|
|
1045
942
|
*/
|
|
1046
943
|
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
944
|
/**
|
|
1053
945
|
* By default, a maximum of ten players are shown.
|
|
1054
946
|
* List players.
|
|
@@ -1062,11 +954,7 @@ export declare class ObjectPlayersApi {
|
|
|
1062
954
|
*/
|
|
1063
955
|
requestTransferAccountOwnership(param: PlayersApiRequestTransferAccountOwnershipRequest, options?: Configuration): Promise<TransactionIntentResponse>;
|
|
1064
956
|
/**
|
|
1065
|
-
*
|
|
1066
|
-
* @param param the request object
|
|
1067
|
-
*/
|
|
1068
|
-
revokePlayerSession(param: PlayersApiRevokePlayerSessionRequest, options?: Configuration): Promise<SessionResponse>;
|
|
1069
|
-
/**
|
|
957
|
+
* Updates the specified Player by setting the values of the parameters passed.
|
|
1070
958
|
* Updates a player object.
|
|
1071
959
|
* @param param the request object
|
|
1072
960
|
*/
|
|
@@ -1137,20 +1025,6 @@ export interface PoliciesApiCreatePolicyRequest {
|
|
|
1137
1025
|
*/
|
|
1138
1026
|
createPolicyRequest: CreatePolicyRequest;
|
|
1139
1027
|
}
|
|
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
1028
|
export interface PoliciesApiDeletePolicyRequest {
|
|
1155
1029
|
/**
|
|
1156
1030
|
* Specifies the unique policy ID (starts with pol_).
|
|
@@ -1239,20 +1113,6 @@ export interface PoliciesApiGetPolicyRequest {
|
|
|
1239
1113
|
*/
|
|
1240
1114
|
expand?: Array<PolicyResponseExpandable>;
|
|
1241
1115
|
}
|
|
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
1116
|
export interface PoliciesApiGetPolicyTotalGasUsageRequest {
|
|
1257
1117
|
/**
|
|
1258
1118
|
* Specifies the unique policy ID (starts with pol_).
|
|
@@ -1275,26 +1135,6 @@ export interface PoliciesApiUpdatePolicyRequest {
|
|
|
1275
1135
|
*/
|
|
1276
1136
|
updatePolicyRequest: UpdatePolicyRequest;
|
|
1277
1137
|
}
|
|
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
1138
|
export declare class ObjectPoliciesApi {
|
|
1299
1139
|
private api;
|
|
1300
1140
|
constructor(configuration: Configuration, requestFactory?: PoliciesApiRequestFactory, responseProcessor?: PoliciesApiResponseProcessor);
|
|
@@ -1303,11 +1143,6 @@ export declare class ObjectPoliciesApi {
|
|
|
1303
1143
|
* @param param the request object
|
|
1304
1144
|
*/
|
|
1305
1145
|
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
1146
|
/**
|
|
1312
1147
|
* Delete a policy object.
|
|
1313
1148
|
* @param param the request object
|
|
@@ -1324,20 +1159,17 @@ export declare class ObjectPoliciesApi {
|
|
|
1324
1159
|
*/
|
|
1325
1160
|
enablePolicy(param: PoliciesApiEnablePolicyRequest, options?: Configuration): Promise<PolicyResponse>;
|
|
1326
1161
|
/**
|
|
1162
|
+
* Returns a list of Policies.
|
|
1327
1163
|
* List policies.
|
|
1328
1164
|
* @param param the request object
|
|
1329
1165
|
*/
|
|
1330
1166
|
getPolicies(param?: PoliciesApiGetPoliciesRequest, options?: Configuration): Promise<PolicyListResponse>;
|
|
1331
1167
|
/**
|
|
1168
|
+
* Retrieves the details of a Policy that has previously been created.
|
|
1332
1169
|
* Get a policy object.
|
|
1333
1170
|
* @param param the request object
|
|
1334
1171
|
*/
|
|
1335
1172
|
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
1173
|
/**
|
|
1342
1174
|
* List all gas reports of a policy.
|
|
1343
1175
|
* @param param the request object
|
|
@@ -1348,11 +1180,6 @@ export declare class ObjectPoliciesApi {
|
|
|
1348
1180
|
* @param param the request object
|
|
1349
1181
|
*/
|
|
1350
1182
|
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
1183
|
}
|
|
1357
1184
|
import { PolicyRulesApiRequestFactory, PolicyRulesApiResponseProcessor } from "../apis/PolicyRulesApi";
|
|
1358
1185
|
export interface PolicyRulesApiCreatePolicyRulesRequest {
|
|
@@ -1522,16 +1349,19 @@ export declare class ObjectSessionsApi {
|
|
|
1522
1349
|
private api;
|
|
1523
1350
|
constructor(configuration: Configuration, requestFactory?: SessionsApiRequestFactory, responseProcessor?: SessionsApiResponseProcessor);
|
|
1524
1351
|
/**
|
|
1352
|
+
* Creates a Session.
|
|
1525
1353
|
* Create a session key.
|
|
1526
1354
|
* @param param the request object
|
|
1527
1355
|
*/
|
|
1528
1356
|
createSession(param: SessionsApiCreateSessionRequest, options?: Configuration): Promise<SessionResponse>;
|
|
1529
1357
|
/**
|
|
1358
|
+
* Returns a list of Sessions.
|
|
1530
1359
|
* List session keys of a player.
|
|
1531
1360
|
* @param param the request object
|
|
1532
1361
|
*/
|
|
1533
1362
|
getPlayerSessions(param: SessionsApiGetPlayerSessionsRequest, options?: Configuration): Promise<SessionListResponse>;
|
|
1534
1363
|
/**
|
|
1364
|
+
* Retrieves the details of a Session that has previously been created.
|
|
1535
1365
|
* Returns a player session by session id
|
|
1536
1366
|
* @param param the request object
|
|
1537
1367
|
*/
|
|
@@ -1542,7 +1372,7 @@ export declare class ObjectSessionsApi {
|
|
|
1542
1372
|
*/
|
|
1543
1373
|
revokeSession(param: SessionsApiRevokeSessionRequest, options?: Configuration): Promise<SessionResponse>;
|
|
1544
1374
|
/**
|
|
1545
|
-
* Send signed
|
|
1375
|
+
* Send signed userOperationHash to create session.
|
|
1546
1376
|
* @param param the request object
|
|
1547
1377
|
*/
|
|
1548
1378
|
signatureSession(param: SessionsApiSignatureSessionRequest, options?: Configuration): Promise<SessionResponse>;
|
|
@@ -1681,7 +1511,7 @@ export interface TransactionIntentsApiGetTransactionIntentsRequest {
|
|
|
1681
1511
|
*/
|
|
1682
1512
|
expand?: Array<TransactionIntentResponseExpandable>;
|
|
1683
1513
|
/**
|
|
1684
|
-
* The chain ID.
|
|
1514
|
+
* The chain ID. Must be a [supported chain](/chains).
|
|
1685
1515
|
* @type number
|
|
1686
1516
|
* @memberof TransactionIntentsApigetTransactionIntents
|
|
1687
1517
|
*/
|
|
@@ -1723,29 +1553,31 @@ export declare class ObjectTransactionIntentsApi {
|
|
|
1723
1553
|
private api;
|
|
1724
1554
|
constructor(configuration: Configuration, requestFactory?: TransactionIntentsApiRequestFactory, responseProcessor?: TransactionIntentsApiResponseProcessor);
|
|
1725
1555
|
/**
|
|
1726
|
-
*
|
|
1556
|
+
* 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
1557
|
* Create a transaction intent object.
|
|
1728
1558
|
* @param param the request object
|
|
1729
1559
|
*/
|
|
1730
1560
|
createTransactionIntent(param: TransactionIntentsApiCreateTransactionIntentRequest, options?: Configuration): Promise<TransactionIntentResponse>;
|
|
1731
1561
|
/**
|
|
1732
|
-
* Estimate the gas cost of
|
|
1562
|
+
* 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
1563
|
* Estimate gas cost of creating a transaction
|
|
1734
1564
|
* @param param the request object
|
|
1735
1565
|
*/
|
|
1736
1566
|
estimateTransactionIntentCost(param: TransactionIntentsApiEstimateTransactionIntentCostRequest, options?: Configuration): Promise<EstimateTransactionIntentGasResult>;
|
|
1737
1567
|
/**
|
|
1568
|
+
* Retrieves the details of a TransactionIntent that has previously been created.
|
|
1738
1569
|
* Get a transaction intent object.
|
|
1739
1570
|
* @param param the request object
|
|
1740
1571
|
*/
|
|
1741
1572
|
getTransactionIntent(param: TransactionIntentsApiGetTransactionIntentRequest, options?: Configuration): Promise<TransactionIntentResponse>;
|
|
1742
1573
|
/**
|
|
1574
|
+
* Returns a list of TransactionIntents.
|
|
1743
1575
|
* List transaction intents.
|
|
1744
1576
|
* @param param the request object
|
|
1745
1577
|
*/
|
|
1746
1578
|
getTransactionIntents(param?: TransactionIntentsApiGetTransactionIntentsRequest, options?: Configuration): Promise<TransactionIntentListResponse>;
|
|
1747
1579
|
/**
|
|
1748
|
-
*
|
|
1580
|
+
* Broadcasts a signed TransactionIntent to the blockchain. Use this endpoint to send the signed `userOperationHash`. Openfort will then put it on-chain.
|
|
1749
1581
|
* Send a signed transaction userOperationHash.
|
|
1750
1582
|
* @param param the request object
|
|
1751
1583
|
*/
|