@openfort/openfort-js 0.3.3 → 0.3.4

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.
@@ -16,9 +16,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  return (mod && mod.__esModule) ? mod : { "default": mod };
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.UserProjectRole = exports.TransactionIntentResponseExpandable = exports.TimeIntervalType = exports.SponsorSchemaPAYFORUSER = exports.SponsorSchemaFIXEDRATE = exports.SponsorSchemaCHARGECUSTOMTOKENS = exports.SponsorSchema = exports.SortOrder = exports.SessionResponseExpandable = exports.ResponseTypeLIST = exports.PrivateKeyPolicy = exports.PolicyRuleTypeRATELIMIT = exports.PolicyRuleTypeCONTRACT = exports.PolicyRuleTypeACCOUNT = exports.PolicyRuleType = exports.PolicyRuleListQueriesExpandEnum = exports.PolicyResponseExpandable = exports.PolicyRateLimitGASPERTRANSACTION = exports.PolicyRateLimitGASPERINTERVAL = exports.PolicyRateLimitCOUNTPERINTERVAL = exports.PolicyRateLimit = exports.PlayerResponseExpandable = exports.ObsoleteAssetType = exports.OAuthProviderPLAYFAB = exports.OAuthProviderGOOGLE = exports.OAuthProviderFIREBASE = exports.OAuthProviderACCELBYTE = exports.OAuthProvider = exports.NextActionType = exports.ErrorTypeINVALIDREQUESTERROR = exports.EntityTypeWEB3CONNECTION = exports.EntityTypeWEB3ACTION = exports.EntityTypeUSER = exports.EntityTypeTRANSACTIONINTENT = exports.EntityTypeSIGNATURE = exports.EntityTypeSESSION = exports.EntityTypeREADCONTRACT = exports.EntityTypePROJECT = exports.EntityTypePOLICYRULE = exports.EntityTypePOLICY = exports.EntityTypePLAYER = exports.EntityTypePAYMASTERDEPOSITOR = exports.EntityTypeINVENTORY = exports.EntityTypeCONTRACT = exports.EntityTypeACCOUNT = exports.DataAccountTypes = exports.Currency = exports.AssetType = exports.ApiKeyType = exports.AccountResponseExpandable = void 0;
20
- exports.SettingsApiFp = exports.SettingsApiAxiosParamCreator = exports.SessionsApi = exports.SessionsApiFactory = exports.SessionsApiFp = exports.SessionsApiAxiosParamCreator = exports.PolicyRulesApi = exports.PolicyRulesApiFactory = exports.PolicyRulesApiFp = exports.PolicyRulesApiAxiosParamCreator = exports.PoliciesApi = exports.PoliciesApiFactory = exports.PoliciesApiFp = exports.PoliciesApiAxiosParamCreator = exports.PlayersAuthenticationApi = exports.PlayersAuthenticationApiFactory = exports.PlayersAuthenticationApiFp = exports.PlayersAuthenticationApiAxiosParamCreator = exports.PlayersApi = exports.PlayersApiFactory = exports.PlayersApiFp = exports.PlayersApiAxiosParamCreator = exports.OAuthApi = exports.OAuthApiFactory = exports.OAuthApiFp = exports.OAuthApiAxiosParamCreator = exports.InventoriesApi = exports.InventoriesApiFactory = exports.InventoriesApiFp = exports.InventoriesApiAxiosParamCreator = exports.GoogleAuthenticationApi = exports.GoogleAuthenticationApiFactory = exports.GoogleAuthenticationApiFp = exports.GoogleAuthenticationApiAxiosParamCreator = exports.ContractsApi = exports.ContractsApiFactory = exports.ContractsApiFp = exports.ContractsApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.Web3ConnectionResponseExpandable = exports.Web3ActionStatusEnum = exports.UserProjectRoleMEMBER = exports.UserProjectRoleADMIN = void 0;
21
- exports.Web3ConnectionsApi = exports.Web3ConnectionsApiFactory = exports.Web3ConnectionsApiFp = exports.Web3ConnectionsApiAxiosParamCreator = exports.TransactionIntentsApi = exports.TransactionIntentsApiFactory = exports.TransactionIntentsApiFp = exports.TransactionIntentsApiAxiosParamCreator = exports.SettingsApi = exports.SettingsApiFactory = void 0;
19
+ exports.TransactionIntentResponseExpandable = exports.TimeIntervalType = exports.SponsorSchemaPAYFORUSER = exports.SponsorSchemaFIXEDRATE = exports.SponsorSchemaCHARGECUSTOMTOKENS = exports.SponsorSchema = exports.SortOrder = exports.SessionResponseExpandable = exports.ResponseTypeLIST = exports.PrivateKeyPolicy = exports.PolicyRuleTypeRATELIMIT = exports.PolicyRuleTypeCONTRACT = exports.PolicyRuleTypeACCOUNT = exports.PolicyRuleType = exports.PolicyRuleListQueriesExpandEnum = exports.PolicyResponseExpandable = exports.PolicyRateLimitGASPERTRANSACTION = exports.PolicyRateLimitGASPERINTERVAL = exports.PolicyRateLimitCOUNTPERINTERVAL = exports.PolicyRateLimit = exports.PlayerResponseExpandable = exports.ObsoleteAssetType = exports.OAuthProviderPLAYFAB = exports.OAuthProviderLOOTLOCKER = exports.OAuthProviderGOOGLE = exports.OAuthProviderFIREBASE = exports.OAuthProviderACCELBYTE = exports.OAuthProvider = exports.NextActionType = exports.ErrorTypeINVALIDREQUESTERROR = exports.EntityTypeWEB3CONNECTION = exports.EntityTypeWEB3ACTION = exports.EntityTypeUSER = exports.EntityTypeTRANSACTIONINTENT = exports.EntityTypeSIGNATURE = exports.EntityTypeSESSION = exports.EntityTypeREADCONTRACT = exports.EntityTypePROJECT = exports.EntityTypePOLICYRULE = exports.EntityTypePOLICY = exports.EntityTypePLAYER = exports.EntityTypePAYMASTERDEPOSITOR = exports.EntityTypeINVENTORY = exports.EntityTypeCONTRACT = exports.EntityTypeACCOUNT = exports.DataAccountTypes = exports.Currency = exports.AssetType = exports.ApiKeyType = exports.AccountResponseExpandable = void 0;
20
+ exports.SettingsApiAxiosParamCreator = exports.SessionsApi = exports.SessionsApiFactory = exports.SessionsApiFp = exports.SessionsApiAxiosParamCreator = exports.PolicyRulesApi = exports.PolicyRulesApiFactory = exports.PolicyRulesApiFp = exports.PolicyRulesApiAxiosParamCreator = exports.PoliciesApi = exports.PoliciesApiFactory = exports.PoliciesApiFp = exports.PoliciesApiAxiosParamCreator = exports.PlayersAuthenticationApi = exports.PlayersAuthenticationApiFactory = exports.PlayersAuthenticationApiFp = exports.PlayersAuthenticationApiAxiosParamCreator = exports.PlayersApi = exports.PlayersApiFactory = exports.PlayersApiFp = exports.PlayersApiAxiosParamCreator = exports.OAuthApi = exports.OAuthApiFactory = exports.OAuthApiFp = exports.OAuthApiAxiosParamCreator = exports.InventoriesApi = exports.InventoriesApiFactory = exports.InventoriesApiFp = exports.InventoriesApiAxiosParamCreator = exports.GoogleAuthenticationApi = exports.GoogleAuthenticationApiFactory = exports.GoogleAuthenticationApiFp = exports.GoogleAuthenticationApiAxiosParamCreator = exports.ContractsApi = exports.ContractsApiFactory = exports.ContractsApiFp = exports.ContractsApiAxiosParamCreator = exports.AuthenticationApi = exports.AuthenticationApiFactory = exports.AuthenticationApiFp = exports.AuthenticationApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.Web3ConnectionResponseExpandable = exports.Web3ActionStatusEnum = exports.UserProjectRoleMEMBER = exports.UserProjectRoleADMIN = exports.UserProjectRole = void 0;
21
+ exports.Web3ConnectionsApi = exports.Web3ConnectionsApiFactory = exports.Web3ConnectionsApiFp = exports.Web3ConnectionsApiAxiosParamCreator = exports.TransactionIntentsApi = exports.TransactionIntentsApiFactory = exports.TransactionIntentsApiFp = exports.TransactionIntentsApiAxiosParamCreator = exports.SettingsApi = exports.SettingsApiFactory = exports.SettingsApiFp = void 0;
22
22
  const axios_1 = __importDefault(require("axios"));
23
23
  // Some imports not used depending on template conditions
24
24
  // @ts-ignore
@@ -217,6 +217,7 @@ exports.OAuthProvider = {
217
217
  Accelbyte: 'accelbyte',
218
218
  Firebase: 'firebase',
219
219
  Google: 'google',
220
+ Lootlocker: 'lootlocker',
220
221
  Playfab: 'playfab'
221
222
  };
222
223
  /**
@@ -243,6 +244,14 @@ exports.OAuthProviderFIREBASE = {
243
244
  exports.OAuthProviderGOOGLE = {
244
245
  Google: 'google'
245
246
  };
247
+ /**
248
+ *
249
+ * @export
250
+ * @enum {string}
251
+ */
252
+ exports.OAuthProviderLOOTLOCKER = {
253
+ Lootlocker: 'lootlocker'
254
+ };
246
255
  /**
247
256
  *
248
257
  * @export
@@ -496,7 +505,7 @@ const AccountsApiAxiosParamCreator = function (configuration) {
496
505
  return {
497
506
  /**
498
507
  * This endpoint allows you to cancel a pending transfer of ownership.
499
- * @summary Cancel request of ownership transfer of an account.
508
+ * @summary Cancel request to transfer ownership of an account.
500
509
  * @param {string} id Specifies the unique account ID.
501
510
  * @param {CancelTransferOwnershipRequest} cancelTransferOwnershipRequest
502
511
  * @param {*} [options] Override http request option.
@@ -601,6 +610,43 @@ const AccountsApiAxiosParamCreator = function (configuration) {
601
610
  options: localVarRequestOptions,
602
611
  };
603
612
  },
613
+ /**
614
+ * This endpoint can be used to deploy an account that was counterfactually generated.
615
+ * @summary Deploy an account.
616
+ * @param {string} id Specifies the unique account ID.
617
+ * @param {DeployRequest} deployRequest
618
+ * @param {*} [options] Override http request option.
619
+ * @throws {RequiredError}
620
+ */
621
+ deployAccount: async (id, deployRequest, options = {}) => {
622
+ // verify required parameter 'id' is not null or undefined
623
+ (0, common_1.assertParamExists)('deployAccount', 'id', id);
624
+ // verify required parameter 'deployRequest' is not null or undefined
625
+ (0, common_1.assertParamExists)('deployAccount', 'deployRequest', deployRequest);
626
+ const localVarPath = `/v1/accounts/{id}/deploy`
627
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
628
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
629
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
630
+ let baseOptions;
631
+ if (configuration) {
632
+ baseOptions = configuration.baseOptions;
633
+ }
634
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
635
+ const localVarHeaderParameter = {};
636
+ const localVarQueryParameter = {};
637
+ // authentication sk required
638
+ // http bearer authentication required
639
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
640
+ localVarHeaderParameter['Content-Type'] = 'application/json';
641
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
642
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
643
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
644
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deployRequest, localVarRequestOptions, configuration);
645
+ return {
646
+ url: (0, common_1.toPathString)(localVarUrlObj),
647
+ options: localVarRequestOptions,
648
+ };
649
+ },
604
650
  /**
605
651
  * 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.
606
652
  * @summary Get existing account.
@@ -689,7 +735,7 @@ const AccountsApiAxiosParamCreator = function (configuration) {
689
735
  },
690
736
  /**
691
737
  * 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.
692
- * @summary Request ownership transfer of an account.
738
+ * @summary Request transfer ownership of account.
693
739
  * @param {string} id Specifies the unique account ID.
694
740
  * @param {TransferOwnershipRequest} transferOwnershipRequest
695
741
  * @param {*} [options] Override http request option.
@@ -725,7 +771,7 @@ const AccountsApiAxiosParamCreator = function (configuration) {
725
771
  };
726
772
  },
727
773
  /**
728
- *
774
+ * Signs the typed data value with types data structure for domain using the EIP-712 (https://eips.ethereum.org/EIPS/eip-712) specification.
729
775
  * @summary Sign a given payload
730
776
  * @param {string} id Specifies the unique account ID.
731
777
  * @param {SignPayloadRequest} signPayloadRequest
@@ -799,7 +845,7 @@ const AccountsApiAxiosParamCreator = function (configuration) {
799
845
  };
800
846
  },
801
847
  /**
802
- *
848
+ * This endpoint updates the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not.
803
849
  * @summary Sync account state with the blockchain
804
850
  * @param {string} id Specifies the unique account ID.
805
851
  * @param {*} [options] Override http request option.
@@ -842,7 +888,7 @@ const AccountsApiFp = function (configuration) {
842
888
  return {
843
889
  /**
844
890
  * This endpoint allows you to cancel a pending transfer of ownership.
845
- * @summary Cancel request of ownership transfer of an account.
891
+ * @summary Cancel request to transfer ownership of an account.
846
892
  * @param {string} id Specifies the unique account ID.
847
893
  * @param {CancelTransferOwnershipRequest} cancelTransferOwnershipRequest
848
894
  * @param {*} [options] Override http request option.
@@ -875,6 +921,18 @@ const AccountsApiFp = function (configuration) {
875
921
  const localVarAxiosArgs = await localVarAxiosParamCreator.createAccount(createAccountRequest, options);
876
922
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
877
923
  },
924
+ /**
925
+ * This endpoint can be used to deploy an account that was counterfactually generated.
926
+ * @summary Deploy an account.
927
+ * @param {string} id Specifies the unique account ID.
928
+ * @param {DeployRequest} deployRequest
929
+ * @param {*} [options] Override http request option.
930
+ * @throws {RequiredError}
931
+ */
932
+ async deployAccount(id, deployRequest, options) {
933
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deployAccount(id, deployRequest, options);
934
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
935
+ },
878
936
  /**
879
937
  * 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.
880
938
  * @summary Get existing account.
@@ -904,7 +962,7 @@ const AccountsApiFp = function (configuration) {
904
962
  },
905
963
  /**
906
964
  * 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.
907
- * @summary Request ownership transfer of an account.
965
+ * @summary Request transfer ownership of account.
908
966
  * @param {string} id Specifies the unique account ID.
909
967
  * @param {TransferOwnershipRequest} transferOwnershipRequest
910
968
  * @param {*} [options] Override http request option.
@@ -915,7 +973,7 @@ const AccountsApiFp = function (configuration) {
915
973
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
916
974
  },
917
975
  /**
918
- *
976
+ * Signs the typed data value with types data structure for domain using the EIP-712 (https://eips.ethereum.org/EIPS/eip-712) specification.
919
977
  * @summary Sign a given payload
920
978
  * @param {string} id Specifies the unique account ID.
921
979
  * @param {SignPayloadRequest} signPayloadRequest
@@ -939,7 +997,7 @@ const AccountsApiFp = function (configuration) {
939
997
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
940
998
  },
941
999
  /**
942
- *
1000
+ * This endpoint updates the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not.
943
1001
  * @summary Sync account state with the blockchain
944
1002
  * @param {string} id Specifies the unique account ID.
945
1003
  * @param {*} [options] Override http request option.
@@ -961,7 +1019,7 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
961
1019
  return {
962
1020
  /**
963
1021
  * This endpoint allows you to cancel a pending transfer of ownership.
964
- * @summary Cancel request of ownership transfer of an account.
1022
+ * @summary Cancel request to transfer ownership of an account.
965
1023
  * @param {string} id Specifies the unique account ID.
966
1024
  * @param {CancelTransferOwnershipRequest} cancelTransferOwnershipRequest
967
1025
  * @param {*} [options] Override http request option.
@@ -991,6 +1049,17 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
991
1049
  createAccount(createAccountRequest, options) {
992
1050
  return localVarFp.createAccount(createAccountRequest, options).then((request) => request(axios, basePath));
993
1051
  },
1052
+ /**
1053
+ * This endpoint can be used to deploy an account that was counterfactually generated.
1054
+ * @summary Deploy an account.
1055
+ * @param {string} id Specifies the unique account ID.
1056
+ * @param {DeployRequest} deployRequest
1057
+ * @param {*} [options] Override http request option.
1058
+ * @throws {RequiredError}
1059
+ */
1060
+ deployAccount(id, deployRequest, options) {
1061
+ return localVarFp.deployAccount(id, deployRequest, options).then((request) => request(axios, basePath));
1062
+ },
994
1063
  /**
995
1064
  * 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.
996
1065
  * @summary Get existing account.
@@ -1018,7 +1087,7 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
1018
1087
  },
1019
1088
  /**
1020
1089
  * 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.
1021
- * @summary Request ownership transfer of an account.
1090
+ * @summary Request transfer ownership of account.
1022
1091
  * @param {string} id Specifies the unique account ID.
1023
1092
  * @param {TransferOwnershipRequest} transferOwnershipRequest
1024
1093
  * @param {*} [options] Override http request option.
@@ -1028,7 +1097,7 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
1028
1097
  return localVarFp.requestTransferOwnership(id, transferOwnershipRequest, options).then((request) => request(axios, basePath));
1029
1098
  },
1030
1099
  /**
1031
- *
1100
+ * Signs the typed data value with types data structure for domain using the EIP-712 (https://eips.ethereum.org/EIPS/eip-712) specification.
1032
1101
  * @summary Sign a given payload
1033
1102
  * @param {string} id Specifies the unique account ID.
1034
1103
  * @param {SignPayloadRequest} signPayloadRequest
@@ -1050,7 +1119,7 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
1050
1119
  return localVarFp.startRecovery(id, startRecoveryRequest, options).then((request) => request(axios, basePath));
1051
1120
  },
1052
1121
  /**
1053
- *
1122
+ * This endpoint updates the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not.
1054
1123
  * @summary Sync account state with the blockchain
1055
1124
  * @param {string} id Specifies the unique account ID.
1056
1125
  * @param {*} [options] Override http request option.
@@ -1071,7 +1140,7 @@ exports.AccountsApiFactory = AccountsApiFactory;
1071
1140
  class AccountsApi extends base_1.BaseAPI {
1072
1141
  /**
1073
1142
  * This endpoint allows you to cancel a pending transfer of ownership.
1074
- * @summary Cancel request of ownership transfer of an account.
1143
+ * @summary Cancel request to transfer ownership of an account.
1075
1144
  * @param {string} id Specifies the unique account ID.
1076
1145
  * @param {CancelTransferOwnershipRequest} cancelTransferOwnershipRequest
1077
1146
  * @param {*} [options] Override http request option.
@@ -1104,6 +1173,18 @@ class AccountsApi extends base_1.BaseAPI {
1104
1173
  createAccount(createAccountRequest, options) {
1105
1174
  return (0, exports.AccountsApiFp)(this.configuration).createAccount(createAccountRequest, options).then((request) => request(this.axios, this.basePath));
1106
1175
  }
1176
+ /**
1177
+ * This endpoint can be used to deploy an account that was counterfactually generated.
1178
+ * @summary Deploy an account.
1179
+ * @param {string} id Specifies the unique account ID.
1180
+ * @param {DeployRequest} deployRequest
1181
+ * @param {*} [options] Override http request option.
1182
+ * @throws {RequiredError}
1183
+ * @memberof AccountsApi
1184
+ */
1185
+ deployAccount(id, deployRequest, options) {
1186
+ return (0, exports.AccountsApiFp)(this.configuration).deployAccount(id, deployRequest, options).then((request) => request(this.axios, this.basePath));
1187
+ }
1107
1188
  /**
1108
1189
  * 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.
1109
1190
  * @summary Get existing account.
@@ -1133,7 +1214,7 @@ class AccountsApi extends base_1.BaseAPI {
1133
1214
  }
1134
1215
  /**
1135
1216
  * 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.
1136
- * @summary Request ownership transfer of an account.
1217
+ * @summary Request transfer ownership of account.
1137
1218
  * @param {string} id Specifies the unique account ID.
1138
1219
  * @param {TransferOwnershipRequest} transferOwnershipRequest
1139
1220
  * @param {*} [options] Override http request option.
@@ -1144,7 +1225,7 @@ class AccountsApi extends base_1.BaseAPI {
1144
1225
  return (0, exports.AccountsApiFp)(this.configuration).requestTransferOwnership(id, transferOwnershipRequest, options).then((request) => request(this.axios, this.basePath));
1145
1226
  }
1146
1227
  /**
1147
- *
1228
+ * Signs the typed data value with types data structure for domain using the EIP-712 (https://eips.ethereum.org/EIPS/eip-712) specification.
1148
1229
  * @summary Sign a given payload
1149
1230
  * @param {string} id Specifies the unique account ID.
1150
1231
  * @param {SignPayloadRequest} signPayloadRequest
@@ -1168,7 +1249,7 @@ class AccountsApi extends base_1.BaseAPI {
1168
1249
  return (0, exports.AccountsApiFp)(this.configuration).startRecovery(id, startRecoveryRequest, options).then((request) => request(this.axios, this.basePath));
1169
1250
  }
1170
1251
  /**
1171
- *
1252
+ * This endpoint updates the account state with the blockchain. Specifically, it updates the account owner and whether its deployed or not.
1172
1253
  * @summary Sync account state with the blockchain
1173
1254
  * @param {string} id Specifies the unique account ID.
1174
1255
  * @param {*} [options] Override http request option.
@@ -2859,7 +2940,7 @@ const OAuthApiAxiosParamCreator = function (configuration) {
2859
2940
  deleteOAuthConfig: async (provider, options = {}) => {
2860
2941
  // verify required parameter 'provider' is not null or undefined
2861
2942
  (0, common_1.assertParamExists)('deleteOAuthConfig', 'provider', provider);
2862
- const localVarPath = `/iam/v1/oauth/{provider}/config`
2943
+ const localVarPath = `/iam/v1/oauth/{provider}`
2863
2944
  .replace(`{${"provider"}}`, encodeURIComponent(String(provider)));
2864
2945
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2865
2946
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -3581,82 +3662,6 @@ const PlayersApiAxiosParamCreator = function (configuration) {
3581
3662
  options: localVarRequestOptions,
3582
3663
  };
3583
3664
  },
3584
- /**
3585
- * This endpoint allows you to cancel a pending transfer of ownership.
3586
- * @summary Cancel request to transfer ownership of an account.
3587
- * @param {string} id
3588
- * @param {PlayerCancelTransferOwnershipRequest} playerCancelTransferOwnershipRequest
3589
- * @param {*} [options] Override http request option.
3590
- * @deprecated
3591
- * @throws {RequiredError}
3592
- */
3593
- obsoleteCancelTransferAccountOwnership: async (id, playerCancelTransferOwnershipRequest, options = {}) => {
3594
- // verify required parameter 'id' is not null or undefined
3595
- (0, common_1.assertParamExists)('obsoleteCancelTransferAccountOwnership', 'id', id);
3596
- // verify required parameter 'playerCancelTransferOwnershipRequest' is not null or undefined
3597
- (0, common_1.assertParamExists)('obsoleteCancelTransferAccountOwnership', 'playerCancelTransferOwnershipRequest', playerCancelTransferOwnershipRequest);
3598
- const localVarPath = `/v1/players/{id}/cancel-transfer-ownership`
3599
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3600
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3601
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3602
- let baseOptions;
3603
- if (configuration) {
3604
- baseOptions = configuration.baseOptions;
3605
- }
3606
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3607
- const localVarHeaderParameter = {};
3608
- const localVarQueryParameter = {};
3609
- // authentication sk required
3610
- // http bearer authentication required
3611
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3612
- localVarHeaderParameter['Content-Type'] = 'application/json';
3613
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3614
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3615
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3616
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(playerCancelTransferOwnershipRequest, localVarRequestOptions, configuration);
3617
- return {
3618
- url: (0, common_1.toPathString)(localVarUrlObj),
3619
- options: localVarRequestOptions,
3620
- };
3621
- },
3622
- /**
3623
- * 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.
3624
- * @summary Request transfer ownership of account.
3625
- * @param {string} id Specifies the unique player ID (starts with pla_).
3626
- * @param {PlayerTransferOwnershipRequest} playerTransferOwnershipRequest
3627
- * @param {*} [options] Override http request option.
3628
- * @deprecated
3629
- * @throws {RequiredError}
3630
- */
3631
- obsoleteRequestTransferAccountOwnership: async (id, playerTransferOwnershipRequest, options = {}) => {
3632
- // verify required parameter 'id' is not null or undefined
3633
- (0, common_1.assertParamExists)('obsoleteRequestTransferAccountOwnership', 'id', id);
3634
- // verify required parameter 'playerTransferOwnershipRequest' is not null or undefined
3635
- (0, common_1.assertParamExists)('obsoleteRequestTransferAccountOwnership', 'playerTransferOwnershipRequest', playerTransferOwnershipRequest);
3636
- const localVarPath = `/v1/players/{id}/request-transfer-ownership`
3637
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
3638
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3639
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3640
- let baseOptions;
3641
- if (configuration) {
3642
- baseOptions = configuration.baseOptions;
3643
- }
3644
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
3645
- const localVarHeaderParameter = {};
3646
- const localVarQueryParameter = {};
3647
- // authentication sk required
3648
- // http bearer authentication required
3649
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3650
- localVarHeaderParameter['Content-Type'] = 'application/json';
3651
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3652
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3653
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
3654
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(playerTransferOwnershipRequest, localVarRequestOptions, configuration);
3655
- return {
3656
- url: (0, common_1.toPathString)(localVarUrlObj),
3657
- options: localVarRequestOptions,
3658
- };
3659
- },
3660
3665
  /**
3661
3666
  * 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.
3662
3667
  * @summary Request transfer ownership of account.
@@ -3875,32 +3880,6 @@ const PlayersApiFp = function (configuration) {
3875
3880
  const localVarAxiosArgs = await localVarAxiosParamCreator.getPlayers(limit, skip, order, expand, name, options);
3876
3881
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3877
3882
  },
3878
- /**
3879
- * This endpoint allows you to cancel a pending transfer of ownership.
3880
- * @summary Cancel request to transfer ownership of an account.
3881
- * @param {string} id
3882
- * @param {PlayerCancelTransferOwnershipRequest} playerCancelTransferOwnershipRequest
3883
- * @param {*} [options] Override http request option.
3884
- * @deprecated
3885
- * @throws {RequiredError}
3886
- */
3887
- async obsoleteCancelTransferAccountOwnership(id, playerCancelTransferOwnershipRequest, options) {
3888
- const localVarAxiosArgs = await localVarAxiosParamCreator.obsoleteCancelTransferAccountOwnership(id, playerCancelTransferOwnershipRequest, options);
3889
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3890
- },
3891
- /**
3892
- * 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.
3893
- * @summary Request transfer ownership of account.
3894
- * @param {string} id Specifies the unique player ID (starts with pla_).
3895
- * @param {PlayerTransferOwnershipRequest} playerTransferOwnershipRequest
3896
- * @param {*} [options] Override http request option.
3897
- * @deprecated
3898
- * @throws {RequiredError}
3899
- */
3900
- async obsoleteRequestTransferAccountOwnership(id, playerTransferOwnershipRequest, options) {
3901
- const localVarAxiosArgs = await localVarAxiosParamCreator.obsoleteRequestTransferAccountOwnership(id, playerTransferOwnershipRequest, options);
3902
- return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3903
- },
3904
3883
  /**
3905
3884
  * 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.
3906
3885
  * @summary Request transfer ownership of account.
@@ -4036,30 +4015,6 @@ const PlayersApiFactory = function (configuration, basePath, axios) {
4036
4015
  getPlayers(limit, skip, order, expand, name, options) {
4037
4016
  return localVarFp.getPlayers(limit, skip, order, expand, name, options).then((request) => request(axios, basePath));
4038
4017
  },
4039
- /**
4040
- * This endpoint allows you to cancel a pending transfer of ownership.
4041
- * @summary Cancel request to transfer ownership of an account.
4042
- * @param {string} id
4043
- * @param {PlayerCancelTransferOwnershipRequest} playerCancelTransferOwnershipRequest
4044
- * @param {*} [options] Override http request option.
4045
- * @deprecated
4046
- * @throws {RequiredError}
4047
- */
4048
- obsoleteCancelTransferAccountOwnership(id, playerCancelTransferOwnershipRequest, options) {
4049
- return localVarFp.obsoleteCancelTransferAccountOwnership(id, playerCancelTransferOwnershipRequest, options).then((request) => request(axios, basePath));
4050
- },
4051
- /**
4052
- * 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.
4053
- * @summary Request transfer ownership of account.
4054
- * @param {string} id Specifies the unique player ID (starts with pla_).
4055
- * @param {PlayerTransferOwnershipRequest} playerTransferOwnershipRequest
4056
- * @param {*} [options] Override http request option.
4057
- * @deprecated
4058
- * @throws {RequiredError}
4059
- */
4060
- obsoleteRequestTransferAccountOwnership(id, playerTransferOwnershipRequest, options) {
4061
- return localVarFp.obsoleteRequestTransferAccountOwnership(id, playerTransferOwnershipRequest, options).then((request) => request(axios, basePath));
4062
- },
4063
4018
  /**
4064
4019
  * 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.
4065
4020
  * @summary Request transfer ownership of account.
@@ -4200,32 +4155,6 @@ class PlayersApi extends base_1.BaseAPI {
4200
4155
  getPlayers(limit, skip, order, expand, name, options) {
4201
4156
  return (0, exports.PlayersApiFp)(this.configuration).getPlayers(limit, skip, order, expand, name, options).then((request) => request(this.axios, this.basePath));
4202
4157
  }
4203
- /**
4204
- * This endpoint allows you to cancel a pending transfer of ownership.
4205
- * @summary Cancel request to transfer ownership of an account.
4206
- * @param {string} id
4207
- * @param {PlayerCancelTransferOwnershipRequest} playerCancelTransferOwnershipRequest
4208
- * @param {*} [options] Override http request option.
4209
- * @deprecated
4210
- * @throws {RequiredError}
4211
- * @memberof PlayersApi
4212
- */
4213
- obsoleteCancelTransferAccountOwnership(id, playerCancelTransferOwnershipRequest, options) {
4214
- return (0, exports.PlayersApiFp)(this.configuration).obsoleteCancelTransferAccountOwnership(id, playerCancelTransferOwnershipRequest, options).then((request) => request(this.axios, this.basePath));
4215
- }
4216
- /**
4217
- * 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.
4218
- * @summary Request transfer ownership of account.
4219
- * @param {string} id Specifies the unique player ID (starts with pla_).
4220
- * @param {PlayerTransferOwnershipRequest} playerTransferOwnershipRequest
4221
- * @param {*} [options] Override http request option.
4222
- * @deprecated
4223
- * @throws {RequiredError}
4224
- * @memberof PlayersApi
4225
- */
4226
- obsoleteRequestTransferAccountOwnership(id, playerTransferOwnershipRequest, options) {
4227
- return (0, exports.PlayersApiFp)(this.configuration).obsoleteRequestTransferAccountOwnership(id, playerTransferOwnershipRequest, options).then((request) => request(this.axios, this.basePath));
4228
- }
4229
4158
  /**
4230
4159
  * 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.
4231
4160
  * @summary Request transfer ownership of account.
@@ -4314,6 +4243,61 @@ const PlayersAuthenticationApiAxiosParamCreator = function (configuration) {
4314
4243
  options: localVarRequestOptions,
4315
4244
  };
4316
4245
  },
4246
+ /**
4247
+ *
4248
+ * @summary Register a key for the authenticated player.
4249
+ * @param {RegisterPlayerEncryptedKeyRequest} registerPlayerEncryptedKeyRequest
4250
+ * @param {*} [options] Override http request option.
4251
+ * @throws {RequiredError}
4252
+ */
4253
+ registerKey: async (registerPlayerEncryptedKeyRequest, options = {}) => {
4254
+ // verify required parameter 'registerPlayerEncryptedKeyRequest' is not null or undefined
4255
+ (0, common_1.assertParamExists)('registerKey', 'registerPlayerEncryptedKeyRequest', registerPlayerEncryptedKeyRequest);
4256
+ const localVarPath = `/iam/v1/players/register_key`;
4257
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4258
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4259
+ let baseOptions;
4260
+ if (configuration) {
4261
+ baseOptions = configuration.baseOptions;
4262
+ }
4263
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
4264
+ const localVarHeaderParameter = {};
4265
+ const localVarQueryParameter = {};
4266
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4267
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4268
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4269
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4270
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(registerPlayerEncryptedKeyRequest, localVarRequestOptions, configuration);
4271
+ return {
4272
+ url: (0, common_1.toPathString)(localVarUrlObj),
4273
+ options: localVarRequestOptions,
4274
+ };
4275
+ },
4276
+ /**
4277
+ *
4278
+ * @summary Retrieve the key for the authenticated player.
4279
+ * @param {*} [options] Override http request option.
4280
+ * @throws {RequiredError}
4281
+ */
4282
+ retrieveKey: async (options = {}) => {
4283
+ const localVarPath = `/iam/v1/players/retrieve_key`;
4284
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4285
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4286
+ let baseOptions;
4287
+ if (configuration) {
4288
+ baseOptions = configuration.baseOptions;
4289
+ }
4290
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
4291
+ const localVarHeaderParameter = {};
4292
+ const localVarQueryParameter = {};
4293
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4294
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4295
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
4296
+ return {
4297
+ url: (0, common_1.toPathString)(localVarUrlObj),
4298
+ options: localVarRequestOptions,
4299
+ };
4300
+ },
4317
4301
  };
4318
4302
  };
4319
4303
  exports.PlayersAuthenticationApiAxiosParamCreator = PlayersAuthenticationApiAxiosParamCreator;
@@ -4338,6 +4322,27 @@ const PlayersAuthenticationApiFp = function (configuration) {
4338
4322
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAuthenticatedPlayers(limit, skip, order, email, options);
4339
4323
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
4340
4324
  },
4325
+ /**
4326
+ *
4327
+ * @summary Register a key for the authenticated player.
4328
+ * @param {RegisterPlayerEncryptedKeyRequest} registerPlayerEncryptedKeyRequest
4329
+ * @param {*} [options] Override http request option.
4330
+ * @throws {RequiredError}
4331
+ */
4332
+ async registerKey(registerPlayerEncryptedKeyRequest, options) {
4333
+ const localVarAxiosArgs = await localVarAxiosParamCreator.registerKey(registerPlayerEncryptedKeyRequest, options);
4334
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
4335
+ },
4336
+ /**
4337
+ *
4338
+ * @summary Retrieve the key for the authenticated player.
4339
+ * @param {*} [options] Override http request option.
4340
+ * @throws {RequiredError}
4341
+ */
4342
+ async retrieveKey(options) {
4343
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveKey(options);
4344
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
4345
+ },
4341
4346
  };
4342
4347
  };
4343
4348
  exports.PlayersAuthenticationApiFp = PlayersAuthenticationApiFp;
@@ -4361,6 +4366,25 @@ const PlayersAuthenticationApiFactory = function (configuration, basePath, axios
4361
4366
  getAuthenticatedPlayers(limit, skip, order, email, options) {
4362
4367
  return localVarFp.getAuthenticatedPlayers(limit, skip, order, email, options).then((request) => request(axios, basePath));
4363
4368
  },
4369
+ /**
4370
+ *
4371
+ * @summary Register a key for the authenticated player.
4372
+ * @param {RegisterPlayerEncryptedKeyRequest} registerPlayerEncryptedKeyRequest
4373
+ * @param {*} [options] Override http request option.
4374
+ * @throws {RequiredError}
4375
+ */
4376
+ registerKey(registerPlayerEncryptedKeyRequest, options) {
4377
+ return localVarFp.registerKey(registerPlayerEncryptedKeyRequest, options).then((request) => request(axios, basePath));
4378
+ },
4379
+ /**
4380
+ *
4381
+ * @summary Retrieve the key for the authenticated player.
4382
+ * @param {*} [options] Override http request option.
4383
+ * @throws {RequiredError}
4384
+ */
4385
+ retrieveKey(options) {
4386
+ return localVarFp.retrieveKey(options).then((request) => request(axios, basePath));
4387
+ },
4364
4388
  };
4365
4389
  };
4366
4390
  exports.PlayersAuthenticationApiFactory = PlayersAuthenticationApiFactory;
@@ -4385,6 +4409,27 @@ class PlayersAuthenticationApi extends base_1.BaseAPI {
4385
4409
  getAuthenticatedPlayers(limit, skip, order, email, options) {
4386
4410
  return (0, exports.PlayersAuthenticationApiFp)(this.configuration).getAuthenticatedPlayers(limit, skip, order, email, options).then((request) => request(this.axios, this.basePath));
4387
4411
  }
4412
+ /**
4413
+ *
4414
+ * @summary Register a key for the authenticated player.
4415
+ * @param {RegisterPlayerEncryptedKeyRequest} registerPlayerEncryptedKeyRequest
4416
+ * @param {*} [options] Override http request option.
4417
+ * @throws {RequiredError}
4418
+ * @memberof PlayersAuthenticationApi
4419
+ */
4420
+ registerKey(registerPlayerEncryptedKeyRequest, options) {
4421
+ return (0, exports.PlayersAuthenticationApiFp)(this.configuration).registerKey(registerPlayerEncryptedKeyRequest, options).then((request) => request(this.axios, this.basePath));
4422
+ }
4423
+ /**
4424
+ *
4425
+ * @summary Retrieve the key for the authenticated player.
4426
+ * @param {*} [options] Override http request option.
4427
+ * @throws {RequiredError}
4428
+ * @memberof PlayersAuthenticationApi
4429
+ */
4430
+ retrieveKey(options) {
4431
+ return (0, exports.PlayersAuthenticationApiFp)(this.configuration).retrieveKey(options).then((request) => request(this.axios, this.basePath));
4432
+ }
4388
4433
  }
4389
4434
  exports.PlayersAuthenticationApi = PlayersAuthenticationApi;
4390
4435
  /**
@@ -4763,8 +4808,8 @@ const PoliciesApiAxiosParamCreator = function (configuration) {
4763
4808
  /**
4764
4809
  *
4765
4810
  * @summary Update a policy rule object of a policy.
4766
- * @param {string} policy
4767
- * @param {string} policyRule
4811
+ * @param {string} policy Specifies the unique policy ID (starts with pol_).
4812
+ * @param {string} policyRule Specifies the unique policy rule ID (starts with afu_).
4768
4813
  * @param {UpdatePolicyRuleRequest} updatePolicyRuleRequest
4769
4814
  * @param {*} [options] Override http request option.
4770
4815
  * @throws {RequiredError}
@@ -4935,8 +4980,8 @@ const PoliciesApiFp = function (configuration) {
4935
4980
  /**
4936
4981
  *
4937
4982
  * @summary Update a policy rule object of a policy.
4938
- * @param {string} policy
4939
- * @param {string} policyRule
4983
+ * @param {string} policy Specifies the unique policy ID (starts with pol_).
4984
+ * @param {string} policyRule Specifies the unique policy rule ID (starts with afu_).
4940
4985
  * @param {UpdatePolicyRuleRequest} updatePolicyRuleRequest
4941
4986
  * @param {*} [options] Override http request option.
4942
4987
  * @throws {RequiredError}
@@ -5069,8 +5114,8 @@ const PoliciesApiFactory = function (configuration, basePath, axios) {
5069
5114
  /**
5070
5115
  *
5071
5116
  * @summary Update a policy rule object of a policy.
5072
- * @param {string} policy
5073
- * @param {string} policyRule
5117
+ * @param {string} policy Specifies the unique policy ID (starts with pol_).
5118
+ * @param {string} policyRule Specifies the unique policy rule ID (starts with afu_).
5074
5119
  * @param {UpdatePolicyRuleRequest} updatePolicyRuleRequest
5075
5120
  * @param {*} [options] Override http request option.
5076
5121
  * @throws {RequiredError}
@@ -5212,8 +5257,8 @@ class PoliciesApi extends base_1.BaseAPI {
5212
5257
  /**
5213
5258
  *
5214
5259
  * @summary Update a policy rule object of a policy.
5215
- * @param {string} policy
5216
- * @param {string} policyRule
5260
+ * @param {string} policy Specifies the unique policy ID (starts with pol_).
5261
+ * @param {string} policyRule Specifies the unique policy rule ID (starts with afu_).
5217
5262
  * @param {UpdatePolicyRuleRequest} updatePolicyRuleRequest
5218
5263
  * @param {*} [options] Override http request option.
5219
5264
  * @throws {RequiredError}
@@ -5266,7 +5311,7 @@ const PolicyRulesApiAxiosParamCreator = function (configuration) {
5266
5311
  /**
5267
5312
  *
5268
5313
  * @summary Deletes a policy rule object.
5269
- * @param {string} id Specifies the unique policy rule ID.
5314
+ * @param {string} id Specifies the unique policy rule ID (starts with afu_).
5270
5315
  * @param {*} [options] Override http request option.
5271
5316
  * @throws {RequiredError}
5272
5317
  */
@@ -5348,7 +5393,7 @@ const PolicyRulesApiAxiosParamCreator = function (configuration) {
5348
5393
  /**
5349
5394
  *
5350
5395
  * @summary Update a policy rule object.
5351
- * @param {string} id Specifies the unique policy rule ID.
5396
+ * @param {string} id Specifies the unique policy rule ID (starts with afu_).
5352
5397
  * @param {UpdatePolicyRuleRequest} updatePolicyRuleRequest
5353
5398
  * @param {*} [options] Override http request option.
5354
5399
  * @throws {RequiredError}
@@ -5406,7 +5451,7 @@ const PolicyRulesApiFp = function (configuration) {
5406
5451
  /**
5407
5452
  *
5408
5453
  * @summary Deletes a policy rule object.
5409
- * @param {string} id Specifies the unique policy rule ID.
5454
+ * @param {string} id Specifies the unique policy rule ID (starts with afu_).
5410
5455
  * @param {*} [options] Override http request option.
5411
5456
  * @throws {RequiredError}
5412
5457
  */
@@ -5432,7 +5477,7 @@ const PolicyRulesApiFp = function (configuration) {
5432
5477
  /**
5433
5478
  *
5434
5479
  * @summary Update a policy rule object.
5435
- * @param {string} id Specifies the unique policy rule ID.
5480
+ * @param {string} id Specifies the unique policy rule ID (starts with afu_).
5436
5481
  * @param {UpdatePolicyRuleRequest} updatePolicyRuleRequest
5437
5482
  * @param {*} [options] Override http request option.
5438
5483
  * @throws {RequiredError}
@@ -5464,7 +5509,7 @@ const PolicyRulesApiFactory = function (configuration, basePath, axios) {
5464
5509
  /**
5465
5510
  *
5466
5511
  * @summary Deletes a policy rule object.
5467
- * @param {string} id Specifies the unique policy rule ID.
5512
+ * @param {string} id Specifies the unique policy rule ID (starts with afu_).
5468
5513
  * @param {*} [options] Override http request option.
5469
5514
  * @throws {RequiredError}
5470
5515
  */
@@ -5488,7 +5533,7 @@ const PolicyRulesApiFactory = function (configuration, basePath, axios) {
5488
5533
  /**
5489
5534
  *
5490
5535
  * @summary Update a policy rule object.
5491
- * @param {string} id Specifies the unique policy rule ID.
5536
+ * @param {string} id Specifies the unique policy rule ID (starts with afu_).
5492
5537
  * @param {UpdatePolicyRuleRequest} updatePolicyRuleRequest
5493
5538
  * @param {*} [options] Override http request option.
5494
5539
  * @throws {RequiredError}
@@ -5520,7 +5565,7 @@ class PolicyRulesApi extends base_1.BaseAPI {
5520
5565
  /**
5521
5566
  *
5522
5567
  * @summary Deletes a policy rule object.
5523
- * @param {string} id Specifies the unique policy rule ID.
5568
+ * @param {string} id Specifies the unique policy rule ID (starts with afu_).
5524
5569
  * @param {*} [options] Override http request option.
5525
5570
  * @throws {RequiredError}
5526
5571
  * @memberof PolicyRulesApi
@@ -5546,7 +5591,7 @@ class PolicyRulesApi extends base_1.BaseAPI {
5546
5591
  /**
5547
5592
  *
5548
5593
  * @summary Update a policy rule object.
5549
- * @param {string} id Specifies the unique policy rule ID.
5594
+ * @param {string} id Specifies the unique policy rule ID (starts with afu_).
5550
5595
  * @param {UpdatePolicyRuleRequest} updatePolicyRuleRequest
5551
5596
  * @param {*} [options] Override http request option.
5552
5597
  * @throws {RequiredError}
@@ -6846,7 +6891,7 @@ const Web3ConnectionsApiAxiosParamCreator = function (configuration) {
6846
6891
  /**
6847
6892
  * Returns a list of web3 actions for the given web3 connection. The actions are returned sorted by creation date, with the most recently received action appearing first. By default, a maximum of ten actions are shown per page.
6848
6893
  * @summary List Web3 actions from a web3 connection.
6849
- * @param {string} id
6894
+ * @param {string} id Specifies the web3Connection ID (starts with web3_).
6850
6895
  * @param {*} [options] Override http request option.
6851
6896
  * @throws {RequiredError}
6852
6897
  */
@@ -6914,17 +6959,15 @@ const Web3ConnectionsApiAxiosParamCreator = function (configuration) {
6914
6959
  /**
6915
6960
  * Returns a list of web3 connections for the given player. The connections are returned sorted by creation date, with the most recently created connections appearing first. By default, a maximum of ten connections are shown per page.
6916
6961
  * @summary List Web3 connections.
6917
- * @param {string} player Specifies the unique player ID (starts with pla_)
6918
6962
  * @param {number} [limit] Specifies the maximum number of records to return.
6919
6963
  * @param {number} [skip] Specifies the offset for the first records to return.
6920
6964
  * @param {SortOrder} [order] Specifies the order in which to sort the results.
6965
+ * @param {string} [player] Specifies the unique player ID (starts with pla_)
6921
6966
  * @param {boolean} [disconnected] Specifies connection status
6922
6967
  * @param {*} [options] Override http request option.
6923
6968
  * @throws {RequiredError}
6924
6969
  */
6925
- getWeb3Connections: async (player, limit, skip, order, disconnected, options = {}) => {
6926
- // verify required parameter 'player' is not null or undefined
6927
- (0, common_1.assertParamExists)('getWeb3Connections', 'player', player);
6970
+ getWeb3Connections: async (limit, skip, order, player, disconnected, options = {}) => {
6928
6971
  const localVarPath = `/v1/web3_connections`;
6929
6972
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6930
6973
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -6964,8 +7007,8 @@ const Web3ConnectionsApiAxiosParamCreator = function (configuration) {
6964
7007
  /**
6965
7008
  * Approve or Reject a web3 action for the given web3 connection.
6966
7009
  * @summary Approve or Reject a web3 action
6967
- * @param {string} id
6968
- * @param {string} web3Action
7010
+ * @param {string} id Specifies the web3Connection ID (starts with web3_).
7011
+ * @param {string} web3Action Specifies web3_action (starts with act_).
6969
7012
  * @param {SubmitWeb3ActionRequest} submitWeb3ActionRequest
6970
7013
  * @param {*} [options] Override http request option.
6971
7014
  * @throws {RequiredError}
@@ -7026,7 +7069,7 @@ const Web3ConnectionsApiFp = function (configuration) {
7026
7069
  /**
7027
7070
  * Returns a list of web3 actions for the given web3 connection. The actions are returned sorted by creation date, with the most recently received action appearing first. By default, a maximum of ten actions are shown per page.
7028
7071
  * @summary List Web3 actions from a web3 connection.
7029
- * @param {string} id
7072
+ * @param {string} id Specifies the web3Connection ID (starts with web3_).
7030
7073
  * @param {*} [options] Override http request option.
7031
7074
  * @throws {RequiredError}
7032
7075
  */
@@ -7049,23 +7092,23 @@ const Web3ConnectionsApiFp = function (configuration) {
7049
7092
  /**
7050
7093
  * Returns a list of web3 connections for the given player. The connections are returned sorted by creation date, with the most recently created connections appearing first. By default, a maximum of ten connections are shown per page.
7051
7094
  * @summary List Web3 connections.
7052
- * @param {string} player Specifies the unique player ID (starts with pla_)
7053
7095
  * @param {number} [limit] Specifies the maximum number of records to return.
7054
7096
  * @param {number} [skip] Specifies the offset for the first records to return.
7055
7097
  * @param {SortOrder} [order] Specifies the order in which to sort the results.
7098
+ * @param {string} [player] Specifies the unique player ID (starts with pla_)
7056
7099
  * @param {boolean} [disconnected] Specifies connection status
7057
7100
  * @param {*} [options] Override http request option.
7058
7101
  * @throws {RequiredError}
7059
7102
  */
7060
- async getWeb3Connections(player, limit, skip, order, disconnected, options) {
7061
- const localVarAxiosArgs = await localVarAxiosParamCreator.getWeb3Connections(player, limit, skip, order, disconnected, options);
7103
+ async getWeb3Connections(limit, skip, order, player, disconnected, options) {
7104
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getWeb3Connections(limit, skip, order, player, disconnected, options);
7062
7105
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
7063
7106
  },
7064
7107
  /**
7065
7108
  * Approve or Reject a web3 action for the given web3 connection.
7066
7109
  * @summary Approve or Reject a web3 action
7067
- * @param {string} id
7068
- * @param {string} web3Action
7110
+ * @param {string} id Specifies the web3Connection ID (starts with web3_).
7111
+ * @param {string} web3Action Specifies web3_action (starts with act_).
7069
7112
  * @param {SubmitWeb3ActionRequest} submitWeb3ActionRequest
7070
7113
  * @param {*} [options] Override http request option.
7071
7114
  * @throws {RequiredError}
@@ -7097,7 +7140,7 @@ const Web3ConnectionsApiFactory = function (configuration, basePath, axios) {
7097
7140
  /**
7098
7141
  * Returns a list of web3 actions for the given web3 connection. The actions are returned sorted by creation date, with the most recently received action appearing first. By default, a maximum of ten actions are shown per page.
7099
7142
  * @summary List Web3 actions from a web3 connection.
7100
- * @param {string} id
7143
+ * @param {string} id Specifies the web3Connection ID (starts with web3_).
7101
7144
  * @param {*} [options] Override http request option.
7102
7145
  * @throws {RequiredError}
7103
7146
  */
@@ -7118,22 +7161,22 @@ const Web3ConnectionsApiFactory = function (configuration, basePath, axios) {
7118
7161
  /**
7119
7162
  * Returns a list of web3 connections for the given player. The connections are returned sorted by creation date, with the most recently created connections appearing first. By default, a maximum of ten connections are shown per page.
7120
7163
  * @summary List Web3 connections.
7121
- * @param {string} player Specifies the unique player ID (starts with pla_)
7122
7164
  * @param {number} [limit] Specifies the maximum number of records to return.
7123
7165
  * @param {number} [skip] Specifies the offset for the first records to return.
7124
7166
  * @param {SortOrder} [order] Specifies the order in which to sort the results.
7167
+ * @param {string} [player] Specifies the unique player ID (starts with pla_)
7125
7168
  * @param {boolean} [disconnected] Specifies connection status
7126
7169
  * @param {*} [options] Override http request option.
7127
7170
  * @throws {RequiredError}
7128
7171
  */
7129
- getWeb3Connections(player, limit, skip, order, disconnected, options) {
7130
- return localVarFp.getWeb3Connections(player, limit, skip, order, disconnected, options).then((request) => request(axios, basePath));
7172
+ getWeb3Connections(limit, skip, order, player, disconnected, options) {
7173
+ return localVarFp.getWeb3Connections(limit, skip, order, player, disconnected, options).then((request) => request(axios, basePath));
7131
7174
  },
7132
7175
  /**
7133
7176
  * Approve or Reject a web3 action for the given web3 connection.
7134
7177
  * @summary Approve or Reject a web3 action
7135
- * @param {string} id
7136
- * @param {string} web3Action
7178
+ * @param {string} id Specifies the web3Connection ID (starts with web3_).
7179
+ * @param {string} web3Action Specifies web3_action (starts with act_).
7137
7180
  * @param {SubmitWeb3ActionRequest} submitWeb3ActionRequest
7138
7181
  * @param {*} [options] Override http request option.
7139
7182
  * @throws {RequiredError}
@@ -7165,7 +7208,7 @@ class Web3ConnectionsApi extends base_1.BaseAPI {
7165
7208
  /**
7166
7209
  * Returns a list of web3 actions for the given web3 connection. The actions are returned sorted by creation date, with the most recently received action appearing first. By default, a maximum of ten actions are shown per page.
7167
7210
  * @summary List Web3 actions from a web3 connection.
7168
- * @param {string} id
7211
+ * @param {string} id Specifies the web3Connection ID (starts with web3_).
7169
7212
  * @param {*} [options] Override http request option.
7170
7213
  * @throws {RequiredError}
7171
7214
  * @memberof Web3ConnectionsApi
@@ -7188,23 +7231,23 @@ class Web3ConnectionsApi extends base_1.BaseAPI {
7188
7231
  /**
7189
7232
  * Returns a list of web3 connections for the given player. The connections are returned sorted by creation date, with the most recently created connections appearing first. By default, a maximum of ten connections are shown per page.
7190
7233
  * @summary List Web3 connections.
7191
- * @param {string} player Specifies the unique player ID (starts with pla_)
7192
7234
  * @param {number} [limit] Specifies the maximum number of records to return.
7193
7235
  * @param {number} [skip] Specifies the offset for the first records to return.
7194
7236
  * @param {SortOrder} [order] Specifies the order in which to sort the results.
7237
+ * @param {string} [player] Specifies the unique player ID (starts with pla_)
7195
7238
  * @param {boolean} [disconnected] Specifies connection status
7196
7239
  * @param {*} [options] Override http request option.
7197
7240
  * @throws {RequiredError}
7198
7241
  * @memberof Web3ConnectionsApi
7199
7242
  */
7200
- getWeb3Connections(player, limit, skip, order, disconnected, options) {
7201
- return (0, exports.Web3ConnectionsApiFp)(this.configuration).getWeb3Connections(player, limit, skip, order, disconnected, options).then((request) => request(this.axios, this.basePath));
7243
+ getWeb3Connections(limit, skip, order, player, disconnected, options) {
7244
+ return (0, exports.Web3ConnectionsApiFp)(this.configuration).getWeb3Connections(limit, skip, order, player, disconnected, options).then((request) => request(this.axios, this.basePath));
7202
7245
  }
7203
7246
  /**
7204
7247
  * Approve or Reject a web3 action for the given web3 connection.
7205
7248
  * @summary Approve or Reject a web3 action
7206
- * @param {string} id
7207
- * @param {string} web3Action
7249
+ * @param {string} id Specifies the web3Connection ID (starts with web3_).
7250
+ * @param {string} web3Action Specifies web3_action (starts with act_).
7208
7251
  * @param {SubmitWeb3ActionRequest} submitWeb3ActionRequest
7209
7252
  * @param {*} [options] Override http request option.
7210
7253
  * @throws {RequiredError}