@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.
Files changed (103) hide show
  1. package/README.md +24 -0
  2. package/dist/apis/playersApiWrapper.d.ts +1 -21
  3. package/dist/apis/playersApiWrapper.js +0 -31
  4. package/dist/apis/playersApiWrapper.js.map +1 -1
  5. package/dist/apis/policiesApiWrapper.d.ts +1 -16
  6. package/dist/apis/policiesApiWrapper.js +0 -23
  7. package/dist/apis/policiesApiWrapper.js.map +1 -1
  8. package/dist/apis/settingsApiWrapper.d.ts +2 -2
  9. package/dist/apis/settingsApiWrapper.js.map +1 -1
  10. package/dist/generated/apis/AccountsApi.d.ts +9 -9
  11. package/dist/generated/apis/AccountsApi.js +9 -9
  12. package/dist/generated/apis/InventoriesApi.d.ts +0 -28
  13. package/dist/generated/apis/InventoriesApi.js +0 -111
  14. package/dist/generated/apis/InventoriesApi.js.map +1 -1
  15. package/dist/generated/apis/PlayersApi.d.ts +2 -64
  16. package/dist/generated/apis/PlayersApi.js +2 -249
  17. package/dist/generated/apis/PlayersApi.js.map +1 -1
  18. package/dist/generated/apis/PoliciesApi.d.ts +2 -47
  19. package/dist/generated/apis/PoliciesApi.js +2 -197
  20. package/dist/generated/apis/PoliciesApi.js.map +1 -1
  21. package/dist/generated/apis/SessionsApi.d.ts +4 -1
  22. package/dist/generated/apis/SessionsApi.js +4 -1
  23. package/dist/generated/apis/SessionsApi.js.map +1 -1
  24. package/dist/generated/apis/TransactionIntentsApi.d.ts +6 -4
  25. package/dist/generated/apis/TransactionIntentsApi.js +6 -4
  26. package/dist/generated/apis/TransactionIntentsApi.js.map +1 -1
  27. package/dist/generated/models/CancelTransferOwnershipRequest.d.ts +1 -1
  28. package/dist/generated/models/CreateAccountRequest.d.ts +6 -6
  29. package/dist/generated/models/CreateContractRequest.d.ts +1 -1
  30. package/dist/generated/models/CreatePolicyRequest.d.ts +1 -1
  31. package/dist/generated/models/CreatePolicyRuleRequest.d.ts +2 -2
  32. package/dist/generated/models/CreateSessionRequest.d.ts +3 -3
  33. package/dist/generated/models/CreateTransactionIntentRequest.d.ts +8 -8
  34. package/dist/generated/models/CreateWeb3ConnectionRequest.d.ts +2 -2
  35. package/dist/generated/models/Interaction.d.ts +5 -5
  36. package/dist/generated/models/NextActionPayload.d.ts +8 -0
  37. package/dist/generated/models/NextActionPayload.js +12 -0
  38. package/dist/generated/models/NextActionPayload.js.map +1 -1
  39. package/dist/generated/models/ObjectSerializer.d.ts +0 -7
  40. package/dist/generated/models/ObjectSerializer.js +0 -20
  41. package/dist/generated/models/ObjectSerializer.js.map +1 -1
  42. package/dist/generated/models/PlayerCancelTransferOwnershipRequest.d.ts +2 -2
  43. package/dist/generated/models/PlayerTransferOwnershipRequest.d.ts +3 -3
  44. package/dist/generated/models/ResponseResponse.d.ts +0 -1
  45. package/dist/generated/models/ResponseResponse.js +0 -6
  46. package/dist/generated/models/ResponseResponse.js.map +1 -1
  47. package/dist/generated/models/RevokeSessionRequest.d.ts +2 -2
  48. package/dist/generated/models/SignatureRequest.d.ts +1 -1
  49. package/dist/generated/models/SubmitWeb3ActionRequest.d.ts +1 -1
  50. package/dist/generated/models/TransactionIntentListQueries.d.ts +1 -1
  51. package/dist/generated/models/TransactionIntentResponseAccount.d.ts +1 -1
  52. package/dist/generated/models/TransactionIntentResponseAccount.js +1 -1
  53. package/dist/generated/models/TransactionIntentResponseExpandable.d.ts +1 -1
  54. package/dist/generated/models/TransferOwnershipRequest.d.ts +1 -1
  55. package/dist/generated/models/UpdateContractRequest.d.ts +1 -1
  56. package/dist/generated/models/UpdatePolicyRequest.d.ts +1 -1
  57. package/dist/generated/models/UpdatePolicyRuleRequest.d.ts +2 -2
  58. package/dist/generated/models/all.d.ts +0 -7
  59. package/dist/generated/models/all.js +0 -7
  60. package/dist/generated/models/all.js.map +1 -1
  61. package/dist/generated/types/ObjectParamAPI.d.ts +23 -191
  62. package/dist/generated/types/ObjectParamAPI.js +19 -74
  63. package/dist/generated/types/ObjectParamAPI.js.map +1 -1
  64. package/dist/generated/types/ObservableAPI.d.ts +23 -74
  65. package/dist/generated/types/ObservableAPI.js +23 -204
  66. package/dist/generated/types/ObservableAPI.js.map +1 -1
  67. package/dist/generated/types/PromiseAPI.d.ts +23 -74
  68. package/dist/generated/types/PromiseAPI.js +23 -96
  69. package/dist/generated/types/PromiseAPI.js.map +1 -1
  70. package/dist/models/index.d.ts +0 -2
  71. package/dist/models/index.js +0 -1
  72. package/dist/models/index.js.map +1 -1
  73. package/dist/version.d.ts +1 -1
  74. package/dist/version.js +1 -1
  75. package/package.json +1 -1
  76. package/tsconfig.tsbuildinfo +1 -1
  77. package/dist/generated/models/CreatePlayerAccountRequest.d.ts +0 -47
  78. package/dist/generated/models/CreatePlayerAccountRequest.js +0 -56
  79. package/dist/generated/models/CreatePlayerAccountRequest.js.map +0 -1
  80. package/dist/generated/models/CreatePlayerSessionRequest.d.ts +0 -63
  81. package/dist/generated/models/CreatePlayerSessionRequest.js +0 -80
  82. package/dist/generated/models/CreatePlayerSessionRequest.js.map +0 -1
  83. package/dist/generated/models/CreatePolicyAllowFunctionRequest.d.ts +0 -51
  84. package/dist/generated/models/CreatePolicyAllowFunctionRequest.js +0 -68
  85. package/dist/generated/models/CreatePolicyAllowFunctionRequest.js.map +0 -1
  86. package/dist/generated/models/ObsoleteAssetInventory.d.ts +0 -36
  87. package/dist/generated/models/ObsoleteAssetInventory.js +0 -56
  88. package/dist/generated/models/ObsoleteAssetInventory.js.map +0 -1
  89. package/dist/generated/models/ObsoleteAssetType.d.ts +0 -12
  90. package/dist/generated/models/ObsoleteAssetType.js +0 -14
  91. package/dist/generated/models/ObsoleteAssetType.js.map +0 -1
  92. package/dist/generated/models/ObsoleteInventoryResponse.d.ts +0 -33
  93. package/dist/generated/models/ObsoleteInventoryResponse.js +0 -50
  94. package/dist/generated/models/ObsoleteInventoryResponse.js.map +0 -1
  95. package/dist/generated/models/RevokeSessionPlayerRequest.d.ts +0 -43
  96. package/dist/generated/models/RevokeSessionPlayerRequest.js +0 -50
  97. package/dist/generated/models/RevokeSessionPlayerRequest.js.map +0 -1
  98. package/dist/models/createPlayerSessionRequest.d.ts +0 -4
  99. package/dist/models/createPlayerSessionRequest.js +0 -3
  100. package/dist/models/createPlayerSessionRequest.js.map +0 -1
  101. package/dist/models/revokePlayerSessionRequest.d.ts +0 -4
  102. package/dist/models/revokePlayerSessionRequest.js +0 -3
  103. 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
- * This endpoint allows you to cancel a pending transfer of ownership.
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
- * This endpoint allows you to add a new account to your Openfort player. Only one account can be active per chain per player.
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. Supply the unique account ID from either a account creation request or the account list, and Openfort will return the corresponding account information.
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. The accounts are returned sorted by creation date, with the most recently created accounts appearing first. By default, a maximum of ten accounts are shown per page.
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
- * This endpoint allows you to perform a request to change the owner of an account. To perform an update on the owner of an account, first you must provide a new owner address. Once requested, the owner must accept to take ownership by calling `acceptOwnership()` in the smart contract account.
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
- * This endpoint updates the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not.
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.
@@ -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_).
@@ -871,7 +830,7 @@ class ObservablePlayersApi {
871
830
  }));
872
831
  }
873
832
  /**
874
- * Add a new player to your player list in Openfort.
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
- * Revoke session object for a player.
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 userOpHash to create session.
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
  */
@@ -1749,7 +1566,7 @@ class ObservableTransactionIntentsApi {
1749
1566
  this.responseProcessor = responseProcessor || new TransactionIntentsApi_1.TransactionIntentsApiResponseProcessor();
1750
1567
  }
1751
1568
  /**
1752
- * Retrieve a transaction intent by providing their id on Openfort. Transaction intents that have not been processed yet, have the `response` attribute as undefined.
1569
+ * 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
1570
  * Create a transaction intent object.
1754
1571
  * @param createTransactionIntentRequest
1755
1572
  */
@@ -1770,7 +1587,7 @@ class ObservableTransactionIntentsApi {
1770
1587
  }));
1771
1588
  }
1772
1589
  /**
1773
- * Estimate the gas cost of creating a transaction intent and putting it on chain. If a policy that includes payment of gas in ERC-20 tokens is provided, an extra field `estimatedTXGasFeeToken` is returned with the estimated amount of tokens.
1590
+ * 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
1591
  * Estimate gas cost of creating a transaction
1775
1592
  * @param createTransactionIntentRequest
1776
1593
  */
@@ -1791,6 +1608,7 @@ class ObservableTransactionIntentsApi {
1791
1608
  }));
1792
1609
  }
1793
1610
  /**
1611
+ * Retrieves the details of a TransactionIntent that has previously been created.
1794
1612
  * Get a transaction intent object.
1795
1613
  * @param id Specifies the unique transaction intent ID (starts with tin_).
1796
1614
  * @param expand Specifies the expandable fields.
@@ -1812,12 +1630,13 @@ class ObservableTransactionIntentsApi {
1812
1630
  }));
1813
1631
  }
1814
1632
  /**
1633
+ * Returns a list of TransactionIntents.
1815
1634
  * List transaction intents.
1816
1635
  * @param limit Specifies the maximum number of records to return.
1817
1636
  * @param skip Specifies the offset for the first records to return.
1818
1637
  * @param order Specifies the order in which to sort the results.
1819
1638
  * @param expand Specifies the fields to expand in the response.
1820
- * @param chainId The chain ID.
1639
+ * @param chainId The chain ID. Must be a [supported chain](/chains).
1821
1640
  * @param accountId Filter by account ID.
1822
1641
  * @param playerId Filter by player ID (starts with pla_).
1823
1642
  * @param policyId Filter by policy ID (starts with pol_).
@@ -1839,7 +1658,7 @@ class ObservableTransactionIntentsApi {
1839
1658
  }));
1840
1659
  }
1841
1660
  /**
1842
- * For non-custodial smart accounts, each on chain action using their wallet, they must sign the userOperationHash received from the `POST` API endpoint that creates a transactionIntent.
1661
+ * Broadcasts a signed TransactionIntent to the blockchain. Use this endpoint to send the signed `userOperationHash`. Openfort will then put it on-chain.
1843
1662
  * Send a signed transaction userOperationHash.
1844
1663
  * @param id Specifies the unique transaction intent ID (starts with tin_).
1845
1664
  * @param signatureRequest