@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
|
@@ -11,9 +11,9 @@ class ObservableAccountsApi {
|
|
|
11
11
|
this.responseProcessor = responseProcessor || new AccountsApi_1.AccountsApiResponseProcessor();
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Cancel a pending transfer of ownership.
|
|
15
15
|
* Cancel request to transfer ownership of an account.
|
|
16
|
-
* @param id Specifies the unique account ID.
|
|
16
|
+
* @param id Specifies the unique account ID (starts with acc_).
|
|
17
17
|
* @param cancelTransferOwnershipRequest
|
|
18
18
|
*/
|
|
19
19
|
cancelTransferOwnership(id, cancelTransferOwnershipRequest, _options) {
|
|
@@ -54,7 +54,7 @@ class ObservableAccountsApi {
|
|
|
54
54
|
}));
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* 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.
|
|
58
58
|
* Create an account object.
|
|
59
59
|
* @param createAccountRequest
|
|
60
60
|
*/
|
|
@@ -97,7 +97,7 @@ class ObservableAccountsApi {
|
|
|
97
97
|
}));
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
* Retrieves the details of an existing account.
|
|
100
|
+
* 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.
|
|
101
101
|
* Get existing account.
|
|
102
102
|
* @param id Specifies the unique account ID (starts with acc_).
|
|
103
103
|
* @param expand
|
|
@@ -119,7 +119,7 @@ class ObservableAccountsApi {
|
|
|
119
119
|
}));
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
|
-
* Returns a list of accounts for the given player.
|
|
122
|
+
* 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.
|
|
123
123
|
* List accounts of a player.
|
|
124
124
|
* @param player Specifies the unique player ID (starts with pla_)
|
|
125
125
|
* @param limit Specifies the maximum number of records to return.
|
|
@@ -144,9 +144,9 @@ class ObservableAccountsApi {
|
|
|
144
144
|
}));
|
|
145
145
|
}
|
|
146
146
|
/**
|
|
147
|
-
*
|
|
147
|
+
* Perform a request to change the owner of an account. To perform an update on the owner of an account, first you must provide a new owner address. Once requested, the owner must accept to take ownership by calling `acceptOwnership()` in the smart contract account.
|
|
148
148
|
* Request transfer ownership of account.
|
|
149
|
-
* @param id Specifies the unique account ID.
|
|
149
|
+
* @param id Specifies the unique account ID (starts with acc_).
|
|
150
150
|
* @param transferOwnershipRequest
|
|
151
151
|
*/
|
|
152
152
|
requestTransferOwnership(id, transferOwnershipRequest, _options) {
|
|
@@ -168,7 +168,7 @@ class ObservableAccountsApi {
|
|
|
168
168
|
/**
|
|
169
169
|
* Signs the typed data value with types data structure for domain using the [EIP-712](https://eips.ethereum.org/EIPS/eip-712) specification.
|
|
170
170
|
* Sign a given payload
|
|
171
|
-
* @param id Specifies the unique account ID.
|
|
171
|
+
* @param id Specifies the unique account ID (starts with acc_).
|
|
172
172
|
* @param signPayloadRequest
|
|
173
173
|
*/
|
|
174
174
|
signPayload(id, signPayloadRequest, _options) {
|
|
@@ -209,7 +209,7 @@ class ObservableAccountsApi {
|
|
|
209
209
|
}));
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
|
-
*
|
|
212
|
+
* Synchronize the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not.
|
|
213
213
|
* Sync account state with the blockchain
|
|
214
214
|
* @param id Specifies the unique account ID (starts with acc_).
|
|
215
215
|
*/
|
|
@@ -525,26 +525,6 @@ class ObservableInventoriesApi {
|
|
|
525
525
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getAccountCryptoCurrencyInventory(rsp)));
|
|
526
526
|
}));
|
|
527
527
|
}
|
|
528
|
-
/**
|
|
529
|
-
* Get inventory of account.
|
|
530
|
-
* @param id Specifies the unique account ID (starts with acc_).
|
|
531
|
-
*/
|
|
532
|
-
getAccountInventory(id, _options) {
|
|
533
|
-
const requestContextPromise = this.requestFactory.getAccountInventory(id, _options);
|
|
534
|
-
// build promise chain
|
|
535
|
-
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
536
|
-
for (let middleware of this.configuration.middleware) {
|
|
537
|
-
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
538
|
-
}
|
|
539
|
-
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
540
|
-
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
541
|
-
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
542
|
-
for (let middleware of this.configuration.middleware) {
|
|
543
|
-
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
544
|
-
}
|
|
545
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getAccountInventory(rsp)));
|
|
546
|
-
}));
|
|
547
|
-
}
|
|
548
528
|
/**
|
|
549
529
|
* Retrieves the native asset of an existing account.
|
|
550
530
|
* @param id Specifies the unique account ID.
|
|
@@ -596,10 +576,10 @@ class ObservableInventoriesApi {
|
|
|
596
576
|
* @param limit Specifies the maximum number of records to return.
|
|
597
577
|
* @param skip Specifies the offset for the first records to return.
|
|
598
578
|
* @param order Specifies the order in which to sort the results.
|
|
599
|
-
* @param
|
|
579
|
+
* @param contract Filter by contract ID (starts with con_).
|
|
600
580
|
*/
|
|
601
|
-
getPlayerCryptoCurrencyInventory(id, chainId, limit, skip, order,
|
|
602
|
-
const requestContextPromise = this.requestFactory.getPlayerCryptoCurrencyInventory(id, chainId, limit, skip, order,
|
|
581
|
+
getPlayerCryptoCurrencyInventory(id, chainId, limit, skip, order, contract, _options) {
|
|
582
|
+
const requestContextPromise = this.requestFactory.getPlayerCryptoCurrencyInventory(id, chainId, limit, skip, order, contract, _options);
|
|
603
583
|
// build promise chain
|
|
604
584
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
605
585
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -614,27 +594,6 @@ class ObservableInventoriesApi {
|
|
|
614
594
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getPlayerCryptoCurrencyInventory(rsp)));
|
|
615
595
|
}));
|
|
616
596
|
}
|
|
617
|
-
/**
|
|
618
|
-
* Get inventory of player.
|
|
619
|
-
* @param id Specifies the unique player ID (starts with pla_).
|
|
620
|
-
* @param chainId Filter by chain id.
|
|
621
|
-
*/
|
|
622
|
-
getPlayerInventory(id, chainId, _options) {
|
|
623
|
-
const requestContextPromise = this.requestFactory.getPlayerInventory(id, chainId, _options);
|
|
624
|
-
// build promise chain
|
|
625
|
-
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
626
|
-
for (let middleware of this.configuration.middleware) {
|
|
627
|
-
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
628
|
-
}
|
|
629
|
-
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
630
|
-
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
631
|
-
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
632
|
-
for (let middleware of this.configuration.middleware) {
|
|
633
|
-
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
634
|
-
}
|
|
635
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getPlayerInventory(rsp)));
|
|
636
|
-
}));
|
|
637
|
-
}
|
|
638
597
|
/**
|
|
639
598
|
* Get native token list of player.
|
|
640
599
|
* @param id Specifies the unique player ID (starts with pla_).
|
|
@@ -663,10 +622,10 @@ class ObservableInventoriesApi {
|
|
|
663
622
|
* @param limit Specifies the maximum number of records to return.
|
|
664
623
|
* @param skip Specifies the offset for the first records to return.
|
|
665
624
|
* @param order Specifies the order in which to sort the results.
|
|
666
|
-
* @param
|
|
625
|
+
* @param contract Filter by contract ID (starts with con_).
|
|
667
626
|
*/
|
|
668
|
-
getPlayerNftInventory(id, chainId, limit, skip, order,
|
|
669
|
-
const requestContextPromise = this.requestFactory.getPlayerNftInventory(id, chainId, limit, skip, order,
|
|
627
|
+
getPlayerNftInventory(id, chainId, limit, skip, order, contract, _options) {
|
|
628
|
+
const requestContextPromise = this.requestFactory.getPlayerNftInventory(id, chainId, limit, skip, order, contract, _options);
|
|
670
629
|
// build promise chain
|
|
671
630
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
672
631
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -871,7 +830,7 @@ class ObservablePlayersApi {
|
|
|
871
830
|
}));
|
|
872
831
|
}
|
|
873
832
|
/**
|
|
874
|
-
*
|
|
833
|
+
* Creates a Player.
|
|
875
834
|
* Create a player object.
|
|
876
835
|
* @param playerCreateRequest
|
|
877
836
|
*/
|
|
@@ -891,48 +850,6 @@ class ObservablePlayersApi {
|
|
|
891
850
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createPlayer(rsp)));
|
|
892
851
|
}));
|
|
893
852
|
}
|
|
894
|
-
/**
|
|
895
|
-
* Create account object for a player.
|
|
896
|
-
* @param id Specifies the unique player ID (starts with pla_).
|
|
897
|
-
* @param createPlayerAccountRequest
|
|
898
|
-
*/
|
|
899
|
-
createPlayerAccount(id, createPlayerAccountRequest, _options) {
|
|
900
|
-
const requestContextPromise = this.requestFactory.createPlayerAccount(id, createPlayerAccountRequest, _options);
|
|
901
|
-
// build promise chain
|
|
902
|
-
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
903
|
-
for (let middleware of this.configuration.middleware) {
|
|
904
|
-
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
905
|
-
}
|
|
906
|
-
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
907
|
-
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
908
|
-
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
909
|
-
for (let middleware of this.configuration.middleware) {
|
|
910
|
-
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
911
|
-
}
|
|
912
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createPlayerAccount(rsp)));
|
|
913
|
-
}));
|
|
914
|
-
}
|
|
915
|
-
/**
|
|
916
|
-
* Create session object for a player.
|
|
917
|
-
* @param id Specifies the unique player ID (starts with pla_).
|
|
918
|
-
* @param createPlayerSessionRequest
|
|
919
|
-
*/
|
|
920
|
-
createPlayerSession(id, createPlayerSessionRequest, _options) {
|
|
921
|
-
const requestContextPromise = this.requestFactory.createPlayerSession(id, createPlayerSessionRequest, _options);
|
|
922
|
-
// build promise chain
|
|
923
|
-
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
924
|
-
for (let middleware of this.configuration.middleware) {
|
|
925
|
-
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
926
|
-
}
|
|
927
|
-
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
928
|
-
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
929
|
-
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
930
|
-
for (let middleware of this.configuration.middleware) {
|
|
931
|
-
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
932
|
-
}
|
|
933
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createPlayerSession(rsp)));
|
|
934
|
-
}));
|
|
935
|
-
}
|
|
936
853
|
/**
|
|
937
854
|
* Deletes a player object.
|
|
938
855
|
* @param id Specifies the unique player ID (starts with pla_).
|
|
@@ -974,27 +891,6 @@ class ObservablePlayersApi {
|
|
|
974
891
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getPlayer(rsp)));
|
|
975
892
|
}));
|
|
976
893
|
}
|
|
977
|
-
/**
|
|
978
|
-
* List of accounts of a player.
|
|
979
|
-
* @param id Specifies the unique player ID (starts with pla_).
|
|
980
|
-
* @param expand Specifies the expandable fields.
|
|
981
|
-
*/
|
|
982
|
-
getPlayerAccounts(id, expand, _options) {
|
|
983
|
-
const requestContextPromise = this.requestFactory.getPlayerAccounts(id, expand, _options);
|
|
984
|
-
// build promise chain
|
|
985
|
-
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
986
|
-
for (let middleware of this.configuration.middleware) {
|
|
987
|
-
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
988
|
-
}
|
|
989
|
-
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
990
|
-
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
991
|
-
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
992
|
-
for (let middleware of this.configuration.middleware) {
|
|
993
|
-
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
994
|
-
}
|
|
995
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getPlayerAccounts(rsp)));
|
|
996
|
-
}));
|
|
997
|
-
}
|
|
998
894
|
/**
|
|
999
895
|
* By default, a maximum of ten players are shown.
|
|
1000
896
|
* List players.
|
|
@@ -1043,27 +939,7 @@ class ObservablePlayersApi {
|
|
|
1043
939
|
}));
|
|
1044
940
|
}
|
|
1045
941
|
/**
|
|
1046
|
-
*
|
|
1047
|
-
* @param id Specifies the unique player ID (starts with pla_).
|
|
1048
|
-
* @param revokeSessionPlayerRequest
|
|
1049
|
-
*/
|
|
1050
|
-
revokePlayerSession(id, revokeSessionPlayerRequest, _options) {
|
|
1051
|
-
const requestContextPromise = this.requestFactory.revokePlayerSession(id, revokeSessionPlayerRequest, _options);
|
|
1052
|
-
// build promise chain
|
|
1053
|
-
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1054
|
-
for (let middleware of this.configuration.middleware) {
|
|
1055
|
-
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1056
|
-
}
|
|
1057
|
-
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1058
|
-
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1059
|
-
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1060
|
-
for (let middleware of this.configuration.middleware) {
|
|
1061
|
-
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1062
|
-
}
|
|
1063
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.revokePlayerSession(rsp)));
|
|
1064
|
-
}));
|
|
1065
|
-
}
|
|
1066
|
-
/**
|
|
942
|
+
* Updates the specified Player by setting the values of the parameters passed.
|
|
1067
943
|
* Updates a player object.
|
|
1068
944
|
* @param id Specifies the unique player ID (starts with pla_).
|
|
1069
945
|
* @param playerUpdateRequest
|
|
@@ -1184,27 +1060,6 @@ class ObservablePoliciesApi {
|
|
|
1184
1060
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createPolicy(rsp)));
|
|
1185
1061
|
}));
|
|
1186
1062
|
}
|
|
1187
|
-
/**
|
|
1188
|
-
* Create a policy rule object for a policy.
|
|
1189
|
-
* @param id Specifies the unique policy ID (starts with pol_).
|
|
1190
|
-
* @param createPolicyAllowFunctionRequest
|
|
1191
|
-
*/
|
|
1192
|
-
createPolicyAllowFunction(id, createPolicyAllowFunctionRequest, _options) {
|
|
1193
|
-
const requestContextPromise = this.requestFactory.createPolicyAllowFunction(id, createPolicyAllowFunctionRequest, _options);
|
|
1194
|
-
// build promise chain
|
|
1195
|
-
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1196
|
-
for (let middleware of this.configuration.middleware) {
|
|
1197
|
-
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1198
|
-
}
|
|
1199
|
-
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1200
|
-
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1201
|
-
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1202
|
-
for (let middleware of this.configuration.middleware) {
|
|
1203
|
-
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1204
|
-
}
|
|
1205
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.createPolicyAllowFunction(rsp)));
|
|
1206
|
-
}));
|
|
1207
|
-
}
|
|
1208
1063
|
/**
|
|
1209
1064
|
* Delete a policy object.
|
|
1210
1065
|
* @param id Specifies the unique policy ID (starts with pol_).
|
|
@@ -1266,6 +1121,7 @@ class ObservablePoliciesApi {
|
|
|
1266
1121
|
}));
|
|
1267
1122
|
}
|
|
1268
1123
|
/**
|
|
1124
|
+
* Returns a list of Policies.
|
|
1269
1125
|
* List policies.
|
|
1270
1126
|
* @param limit Specifies the maximum number of records to return.
|
|
1271
1127
|
* @param skip Specifies the offset for the first records to return.
|
|
@@ -1293,6 +1149,7 @@ class ObservablePoliciesApi {
|
|
|
1293
1149
|
}));
|
|
1294
1150
|
}
|
|
1295
1151
|
/**
|
|
1152
|
+
* Retrieves the details of a Policy that has previously been created.
|
|
1296
1153
|
* Get a policy object.
|
|
1297
1154
|
* @param id Specifies the unique policy ID (starts with pol_).
|
|
1298
1155
|
* @param expand Specifies the fields to expand.
|
|
@@ -1313,27 +1170,6 @@ class ObservablePoliciesApi {
|
|
|
1313
1170
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getPolicy(rsp)));
|
|
1314
1171
|
}));
|
|
1315
1172
|
}
|
|
1316
|
-
/**
|
|
1317
|
-
* List policy rules of a policy.
|
|
1318
|
-
* @param id Specifies the unique policy ID (starts with pol_).
|
|
1319
|
-
* @param expand Specifies the fields to expand.
|
|
1320
|
-
*/
|
|
1321
|
-
getPolicyAllowFunctions(id, expand, _options) {
|
|
1322
|
-
const requestContextPromise = this.requestFactory.getPolicyAllowFunctions(id, expand, _options);
|
|
1323
|
-
// build promise chain
|
|
1324
|
-
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1325
|
-
for (let middleware of this.configuration.middleware) {
|
|
1326
|
-
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1327
|
-
}
|
|
1328
|
-
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1329
|
-
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1330
|
-
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1331
|
-
for (let middleware of this.configuration.middleware) {
|
|
1332
|
-
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1333
|
-
}
|
|
1334
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getPolicyAllowFunctions(rsp)));
|
|
1335
|
-
}));
|
|
1336
|
-
}
|
|
1337
1173
|
/**
|
|
1338
1174
|
* List all gas reports of a policy.
|
|
1339
1175
|
* @param id Specifies the unique policy ID (starts with pol_).
|
|
@@ -1375,28 +1211,6 @@ class ObservablePoliciesApi {
|
|
|
1375
1211
|
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updatePolicy(rsp)));
|
|
1376
1212
|
}));
|
|
1377
1213
|
}
|
|
1378
|
-
/**
|
|
1379
|
-
* Update a policy rule object of a policy.
|
|
1380
|
-
* @param policy Specifies the unique policy ID (starts with pol_).
|
|
1381
|
-
* @param policyRule Specifies the unique policy rule ID (starts with afu_).
|
|
1382
|
-
* @param updatePolicyRuleRequest
|
|
1383
|
-
*/
|
|
1384
|
-
updatePolicyAllowFunction(policy, policyRule, updatePolicyRuleRequest, _options) {
|
|
1385
|
-
const requestContextPromise = this.requestFactory.updatePolicyAllowFunction(policy, policyRule, updatePolicyRuleRequest, _options);
|
|
1386
|
-
// build promise chain
|
|
1387
|
-
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1388
|
-
for (let middleware of this.configuration.middleware) {
|
|
1389
|
-
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1390
|
-
}
|
|
1391
|
-
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1392
|
-
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1393
|
-
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1394
|
-
for (let middleware of this.configuration.middleware) {
|
|
1395
|
-
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1396
|
-
}
|
|
1397
|
-
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.updatePolicyAllowFunction(rsp)));
|
|
1398
|
-
}));
|
|
1399
|
-
}
|
|
1400
1214
|
}
|
|
1401
1215
|
exports.ObservablePoliciesApi = ObservablePoliciesApi;
|
|
1402
1216
|
const PolicyRulesApi_1 = require("../apis/PolicyRulesApi");
|
|
@@ -1501,6 +1315,7 @@ class ObservableSessionsApi {
|
|
|
1501
1315
|
this.responseProcessor = responseProcessor || new SessionsApi_1.SessionsApiResponseProcessor();
|
|
1502
1316
|
}
|
|
1503
1317
|
/**
|
|
1318
|
+
* Creates a Session.
|
|
1504
1319
|
* Create a session key.
|
|
1505
1320
|
* @param createSessionRequest
|
|
1506
1321
|
*/
|
|
@@ -1521,6 +1336,7 @@ class ObservableSessionsApi {
|
|
|
1521
1336
|
}));
|
|
1522
1337
|
}
|
|
1523
1338
|
/**
|
|
1339
|
+
* Returns a list of Sessions.
|
|
1524
1340
|
* List session keys of a player.
|
|
1525
1341
|
* @param player The player ID (starts with pla_)
|
|
1526
1342
|
* @param limit Specifies the maximum number of records to return.
|
|
@@ -1545,6 +1361,7 @@ class ObservableSessionsApi {
|
|
|
1545
1361
|
}));
|
|
1546
1362
|
}
|
|
1547
1363
|
/**
|
|
1364
|
+
* Retrieves the details of a Session that has previously been created.
|
|
1548
1365
|
* Returns a player session by session id
|
|
1549
1366
|
* @param id Specifies the unique session ID (starts with ses_).
|
|
1550
1367
|
* @param expand Specifies the fields to expand.
|
|
@@ -1586,7 +1403,7 @@ class ObservableSessionsApi {
|
|
|
1586
1403
|
}));
|
|
1587
1404
|
}
|
|
1588
1405
|
/**
|
|
1589
|
-
* Send signed
|
|
1406
|
+
* Send signed userOperationHash to create session.
|
|
1590
1407
|
* @param id Specifies the unique session ID (starts with ses_).
|
|
1591
1408
|
* @param signatureRequest
|
|
1592
1409
|
*/
|
|
@@ -1659,10 +1476,36 @@ class ObservableSettingsApi {
|
|
|
1659
1476
|
}
|
|
1660
1477
|
/**
|
|
1661
1478
|
* Retrieve the list of the developer accounts for the current project.
|
|
1479
|
+
* Get existing developer account.
|
|
1480
|
+
* @param id
|
|
1481
|
+
* @param expand
|
|
1482
|
+
*/
|
|
1483
|
+
getDeveloperAccount(id, expand, _options) {
|
|
1484
|
+
const requestContextPromise = this.requestFactory.getDeveloperAccount(id, expand, _options);
|
|
1485
|
+
// build promise chain
|
|
1486
|
+
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1487
|
+
for (let middleware of this.configuration.middleware) {
|
|
1488
|
+
middlewarePreObservable = middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => middleware.pre(ctx)));
|
|
1489
|
+
}
|
|
1490
|
+
return middlewarePreObservable.pipe((0, rxjsStub_2.mergeMap)((ctx) => this.configuration.httpApi.send(ctx))).
|
|
1491
|
+
pipe((0, rxjsStub_2.mergeMap)((response) => {
|
|
1492
|
+
let middlewarePostObservable = (0, rxjsStub_1.of)(response);
|
|
1493
|
+
for (let middleware of this.configuration.middleware) {
|
|
1494
|
+
middlewarePostObservable = middlewarePostObservable.pipe((0, rxjsStub_2.mergeMap)((rsp) => middleware.post(rsp)));
|
|
1495
|
+
}
|
|
1496
|
+
return middlewarePostObservable.pipe((0, rxjsStub_2.map)((rsp) => this.responseProcessor.getDeveloperAccount(rsp)));
|
|
1497
|
+
}));
|
|
1498
|
+
}
|
|
1499
|
+
/**
|
|
1500
|
+
* Retrieve the list of the developer accounts for the current project. By default, a maximum of 10 accounts are shown per page.
|
|
1662
1501
|
* List of developer accounts.
|
|
1502
|
+
* @param limit Specifies the maximum number of records to return.
|
|
1503
|
+
* @param skip Specifies the offset for the first records to return.
|
|
1504
|
+
* @param order Specifies the order in which to sort the results.
|
|
1505
|
+
* @param expand Specifies the fields to expand in the response.
|
|
1663
1506
|
*/
|
|
1664
|
-
getDeveloperAccounts(_options) {
|
|
1665
|
-
const requestContextPromise = this.requestFactory.getDeveloperAccounts(_options);
|
|
1507
|
+
getDeveloperAccounts(limit, skip, order, expand, _options) {
|
|
1508
|
+
const requestContextPromise = this.requestFactory.getDeveloperAccounts(limit, skip, order, expand, _options);
|
|
1666
1509
|
// build promise chain
|
|
1667
1510
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1668
1511
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -1749,7 +1592,7 @@ class ObservableTransactionIntentsApi {
|
|
|
1749
1592
|
this.responseProcessor = responseProcessor || new TransactionIntentsApi_1.TransactionIntentsApiResponseProcessor();
|
|
1750
1593
|
}
|
|
1751
1594
|
/**
|
|
1752
|
-
*
|
|
1595
|
+
* 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.
|
|
1753
1596
|
* Create a transaction intent object.
|
|
1754
1597
|
* @param createTransactionIntentRequest
|
|
1755
1598
|
*/
|
|
@@ -1770,7 +1613,7 @@ class ObservableTransactionIntentsApi {
|
|
|
1770
1613
|
}));
|
|
1771
1614
|
}
|
|
1772
1615
|
/**
|
|
1773
|
-
* Estimate the gas cost of
|
|
1616
|
+
* 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.
|
|
1774
1617
|
* Estimate gas cost of creating a transaction
|
|
1775
1618
|
* @param createTransactionIntentRequest
|
|
1776
1619
|
*/
|
|
@@ -1791,6 +1634,7 @@ class ObservableTransactionIntentsApi {
|
|
|
1791
1634
|
}));
|
|
1792
1635
|
}
|
|
1793
1636
|
/**
|
|
1637
|
+
* Retrieves the details of a TransactionIntent that has previously been created.
|
|
1794
1638
|
* Get a transaction intent object.
|
|
1795
1639
|
* @param id Specifies the unique transaction intent ID (starts with tin_).
|
|
1796
1640
|
* @param expand Specifies the expandable fields.
|
|
@@ -1812,18 +1656,19 @@ class ObservableTransactionIntentsApi {
|
|
|
1812
1656
|
}));
|
|
1813
1657
|
}
|
|
1814
1658
|
/**
|
|
1659
|
+
* Returns a list of TransactionIntents.
|
|
1815
1660
|
* List transaction intents.
|
|
1816
1661
|
* @param limit Specifies the maximum number of records to return.
|
|
1817
1662
|
* @param skip Specifies the offset for the first records to return.
|
|
1818
1663
|
* @param order Specifies the order in which to sort the results.
|
|
1819
1664
|
* @param expand Specifies the fields to expand in the response.
|
|
1820
|
-
* @param chainId The chain ID.
|
|
1821
|
-
* @param
|
|
1822
|
-
* @param
|
|
1823
|
-
* @param
|
|
1665
|
+
* @param chainId The chain ID. Must be a [supported chain](/chains).
|
|
1666
|
+
* @param account Filter by account ID or developer account (starts with acc_ or dac_ respectively).
|
|
1667
|
+
* @param player Filter by player ID (starts with pla_).
|
|
1668
|
+
* @param policy Filter by policy ID (starts with pol_).
|
|
1824
1669
|
*/
|
|
1825
|
-
getTransactionIntents(limit, skip, order, expand, chainId,
|
|
1826
|
-
const requestContextPromise = this.requestFactory.getTransactionIntents(limit, skip, order, expand, chainId,
|
|
1670
|
+
getTransactionIntents(limit, skip, order, expand, chainId, account, player, policy, _options) {
|
|
1671
|
+
const requestContextPromise = this.requestFactory.getTransactionIntents(limit, skip, order, expand, chainId, account, player, policy, _options);
|
|
1827
1672
|
// build promise chain
|
|
1828
1673
|
let middlewarePreObservable = (0, rxjsStub_1.from)(requestContextPromise);
|
|
1829
1674
|
for (let middleware of this.configuration.middleware) {
|
|
@@ -1839,7 +1684,7 @@ class ObservableTransactionIntentsApi {
|
|
|
1839
1684
|
}));
|
|
1840
1685
|
}
|
|
1841
1686
|
/**
|
|
1842
|
-
*
|
|
1687
|
+
* Broadcasts a signed TransactionIntent to the blockchain. Use this endpoint to send the signed `userOperationHash`. Openfort will then put it on-chain.
|
|
1843
1688
|
* Send a signed transaction userOperationHash.
|
|
1844
1689
|
* @param id Specifies the unique transaction intent ID (starts with tin_).
|
|
1845
1690
|
* @param signatureRequest
|