hostinger-api-sdk 0.0.22 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 0.19.4
7
+ * API Version: 0.21.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -21,9 +21,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.BillingCatalogApiFp = exports.BillingCatalogApiAxiosParamCreator = exports.VPSV1VirtualMachineVirtualMachineResourceActionsLockEnum = exports.VPSV1VirtualMachineVirtualMachineResourceStateEnum = exports.VPSV1FirewallRulesStoreRequestSourceEnum = exports.VPSV1FirewallRulesStoreRequestProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceProtocolEnum = exports.VPSV1FirewallFirewallRuleResourceActionEnum = exports.VPSV1DockerManagerProjectResourceStateEnum = exports.VPSV1DockerManagerContainerResourceHealthEnum = exports.VPSV1DockerManagerContainerResourceStateEnum = exports.VPSV1DockerManagerContainerPortResourceProtocolEnum = exports.VPSV1DockerManagerContainerPortResourceTypeEnum = exports.VPSV1ActionActionResourceStateEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerAttributeEnum = exports.ReachV1ContactsSegmentsStoreRequestConditionsInnerOperatorEnum = exports.ReachV1ContactsSegmentsStoreRequestLogicEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSourceEnum = exports.ReachV1ContactsSegmentsSegmentationContactResourceSubscriptionStatusEnum = exports.ReachV1ContactsContactResourceSourceEnum = exports.ReachV1ContactsContactResourceSubscriptionStatusEnum = exports.HostingV1WordpressInstallWordpressRequestAutoUpdatesEnum = exports.HostingV1WebsitesWebsiteResourceVhostTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = exports.HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = exports.HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = exports.HostingV1NodeJsBuildResourceStateEnum = exports.HostingV1NodeJsBuildOptionsResourceSourceTypeEnum = exports.HostingV1NodeJsBuildOptionsResourcePackageManagerEnum = exports.HostingV1NodeJsBuildOptionsResourceAppTypeEnum = exports.HostingV1DomainsParkedDomainResourceTypeEnum = exports.HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = exports.EcommerceV1StoreStoreRequestSalesChannelTypeEnum = exports.EcommerceV1StoreStoreCreationResourceSalesChannelTypeEnum = exports.EcommerceV1ProductProductCreationResourceProductTypeEnum = exports.DomainsV1WHOISStoreRequestEntityTypeEnum = exports.DomainsV1WHOISProfileResourceEntityTypeEnum = exports.DomainsV1ForwardingStoreRequestRedirectTypeEnum = exports.DomainsV1ForwardingForwardingResourceRedirectTypeEnum = exports.DomainsV1DomainDomainResourceStatusEnum = exports.DomainsV1DomainDomainResourceTypeEnum = exports.DomainsV1DomainDomainExtendedResourceStatusEnum = exports.DNSV1ZoneUpdateRequestZoneInnerTypeEnum = exports.DNSV1ZoneRecordResourceTypeEnum = exports.DNSV1ZoneDestroyRequestFiltersInnerTypeEnum = exports.BillingV1SubscriptionSubscriptionResourceStatusEnum = exports.BillingV1SubscriptionCancelRequestCancelOptionEnum = exports.BillingV1SubscriptionCancelRequestReasonCodeEnum = exports.BillingV1OrderOrderResourceStatusEnum = exports.BillingV1CatalogCatalogItemPriceResourcePeriodUnitEnum = void 0;
23
23
  exports.EcommerceShippingApiFactory = exports.EcommerceShippingApiFp = exports.EcommerceShippingApiAxiosParamCreator = exports.EcommerceProductsApi = exports.EcommerceProductsApiFactory = exports.EcommerceProductsApiFp = exports.EcommerceProductsApiAxiosParamCreator = exports.EcommercePaymentsApi = exports.EcommercePaymentsApiFactory = exports.EcommercePaymentsApiFp = exports.EcommercePaymentsApiAxiosParamCreator = exports.DomainsWHOISApi = exports.DomainsWHOISApiFactory = exports.DomainsWHOISApiFp = exports.DomainsWHOISApiAxiosParamCreator = exports.DomainsPortfolioApi = exports.DomainsPortfolioApiFactory = exports.DomainsPortfolioApiFp = exports.DomainsPortfolioApiAxiosParamCreator = exports.DomainsForwardingApi = exports.DomainsForwardingApiFactory = exports.DomainsForwardingApiFp = exports.DomainsForwardingApiAxiosParamCreator = exports.DomainsAvailabilityApi = exports.DomainsAvailabilityApiFactory = exports.DomainsAvailabilityApiFp = exports.DomainsAvailabilityApiAxiosParamCreator = exports.DomainAccessVerifierVerificationsApi = exports.DomainAccessVerifierVerificationsApiFactory = exports.DomainAccessVerifierVerificationsApiFp = exports.DomainAccessVerifierVerificationsApiAxiosParamCreator = exports.DNSZoneApi = exports.DNSZoneApiFactory = exports.DNSZoneApiFp = exports.DNSZoneApiAxiosParamCreator = exports.DNSSnapshotApi = exports.DNSSnapshotApiFactory = exports.DNSSnapshotApiFp = exports.DNSSnapshotApiAxiosParamCreator = exports.BillingSubscriptionsApi = exports.BillingSubscriptionsApiFactory = exports.BillingSubscriptionsApiFp = exports.BillingSubscriptionsApiAxiosParamCreator = exports.BillingPaymentMethodsApi = exports.BillingPaymentMethodsApiFactory = exports.BillingPaymentMethodsApiFp = exports.BillingPaymentMethodsApiAxiosParamCreator = exports.GetCatalogItemListV1CategoryEnum = exports.BillingCatalogApi = exports.BillingCatalogApiFactory = void 0;
24
- exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.HostingWordpressApi = exports.HostingWordpressApiFactory = exports.HostingWordpressApiFp = exports.HostingWordpressApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = void 0;
25
- exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = void 0;
26
- exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = void 0;
24
+ exports.ReachProfilesApiAxiosParamCreator = exports.ListContactsV1SubscriptionStatusEnum = exports.ReachContactsApi = exports.ReachContactsApiFactory = exports.ReachContactsApiFp = exports.ReachContactsApiAxiosParamCreator = exports.ListWordPressInstallationsV1OwnershipEnum = exports.HostingWordpressApi = exports.HostingWordpressApiFactory = exports.HostingWordpressApiFp = exports.HostingWordpressApiAxiosParamCreator = exports.HostingWebsitesApi = exports.HostingWebsitesApiFactory = exports.HostingWebsitesApiFp = exports.HostingWebsitesApiAxiosParamCreator = exports.ListOrdersV1StatusesEnum = exports.HostingOrdersApi = exports.HostingOrdersApiFactory = exports.HostingOrdersApiFp = exports.HostingOrdersApiAxiosParamCreator = exports.ListNodeJSBuildsV1StatesEnum = exports.HostingNodeJSApi = exports.HostingNodeJSApiFactory = exports.HostingNodeJSApiFp = exports.HostingNodeJSApiAxiosParamCreator = exports.HostingDomainsApi = exports.HostingDomainsApiFactory = exports.HostingDomainsApiFp = exports.HostingDomainsApiAxiosParamCreator = exports.HostingDatacentersApi = exports.HostingDatacentersApiFactory = exports.HostingDatacentersApiFp = exports.HostingDatacentersApiAxiosParamCreator = exports.HostingDatabasesApi = exports.HostingDatabasesApiFactory = exports.HostingDatabasesApiFp = exports.HostingDatabasesApiAxiosParamCreator = exports.HostingCronJobsApi = exports.HostingCronJobsApiFactory = exports.HostingCronJobsApiFp = exports.HostingCronJobsApiAxiosParamCreator = exports.HorizonsWebsitesApi = exports.HorizonsWebsitesApiFactory = exports.HorizonsWebsitesApiFp = exports.HorizonsWebsitesApiAxiosParamCreator = exports.EcommerceStoresApi = exports.EcommerceStoresApiFactory = exports.EcommerceStoresApiFp = exports.EcommerceStoresApiAxiosParamCreator = exports.EcommerceShippingApi = void 0;
25
+ exports.VPSRecoveryApiFactory = exports.VPSRecoveryApiFp = exports.VPSRecoveryApiAxiosParamCreator = exports.VPSPublicKeysApi = exports.VPSPublicKeysApiFactory = exports.VPSPublicKeysApiFp = exports.VPSPublicKeysApiAxiosParamCreator = exports.VPSPostInstallScriptsApi = exports.VPSPostInstallScriptsApiFactory = exports.VPSPostInstallScriptsApiFp = exports.VPSPostInstallScriptsApiAxiosParamCreator = exports.VPSPTRRecordsApi = exports.VPSPTRRecordsApiFactory = exports.VPSPTRRecordsApiFp = exports.VPSPTRRecordsApiAxiosParamCreator = exports.VPSOSTemplatesApi = exports.VPSOSTemplatesApiFactory = exports.VPSOSTemplatesApiFp = exports.VPSOSTemplatesApiAxiosParamCreator = exports.VPSMalwareScannerApi = exports.VPSMalwareScannerApiFactory = exports.VPSMalwareScannerApiFp = exports.VPSMalwareScannerApiAxiosParamCreator = exports.VPSFirewallApi = exports.VPSFirewallApiFactory = exports.VPSFirewallApiFp = exports.VPSFirewallApiAxiosParamCreator = exports.VPSDockerManagerApi = exports.VPSDockerManagerApiFactory = exports.VPSDockerManagerApiFp = exports.VPSDockerManagerApiAxiosParamCreator = exports.VPSDataCentersApi = exports.VPSDataCentersApiFactory = exports.VPSDataCentersApiFp = exports.VPSDataCentersApiAxiosParamCreator = exports.VPSBackupsApi = exports.VPSBackupsApiFactory = exports.VPSBackupsApiFp = exports.VPSBackupsApiAxiosParamCreator = exports.VPSActionsApi = exports.VPSActionsApiFactory = exports.VPSActionsApiFp = exports.VPSActionsApiAxiosParamCreator = exports.ReachSegmentsApi = exports.ReachSegmentsApiFactory = exports.ReachSegmentsApiFp = exports.ReachSegmentsApiAxiosParamCreator = exports.ReachProfilesApi = exports.ReachProfilesApiFactory = exports.ReachProfilesApiFp = void 0;
26
+ exports.VPSVirtualMachineApi = exports.VPSVirtualMachineApiFactory = exports.VPSVirtualMachineApiFp = exports.VPSVirtualMachineApiAxiosParamCreator = exports.VPSSnapshotsApi = exports.VPSSnapshotsApiFactory = exports.VPSSnapshotsApiFp = exports.VPSSnapshotsApiAxiosParamCreator = exports.VPSRecoveryApi = void 0;
27
27
  const axios_1 = require("axios");
28
28
  // Some imports not used depending on template conditions
29
29
  // @ts-ignore
@@ -3899,6 +3899,338 @@ class HorizonsWebsitesApi extends base_1.BaseAPI {
3899
3899
  }
3900
3900
  }
3901
3901
  exports.HorizonsWebsitesApi = HorizonsWebsitesApi;
3902
+ /**
3903
+ * HostingCronJobsApi - axios parameter creator
3904
+ * @export
3905
+ */
3906
+ const HostingCronJobsApiAxiosParamCreator = function (configuration) {
3907
+ return {
3908
+ /**
3909
+ * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
3910
+ * @summary Create account cron job
3911
+ * @param {string} username
3912
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
3913
+ * @param {*} [options] Override http request option.
3914
+ * @throws {RequiredError}
3915
+ */
3916
+ createAccountCronJobV1: (username_1, hostingV1CronJobsCreateCronJobRequest_1, ...args_1) => __awaiter(this, [username_1, hostingV1CronJobsCreateCronJobRequest_1, ...args_1], void 0, function* (username, hostingV1CronJobsCreateCronJobRequest, options = {}) {
3917
+ // verify required parameter 'username' is not null or undefined
3918
+ (0, common_1.assertParamExists)('createAccountCronJobV1', 'username', username);
3919
+ // verify required parameter 'hostingV1CronJobsCreateCronJobRequest' is not null or undefined
3920
+ (0, common_1.assertParamExists)('createAccountCronJobV1', 'hostingV1CronJobsCreateCronJobRequest', hostingV1CronJobsCreateCronJobRequest);
3921
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
3922
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
3923
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3924
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3925
+ let baseOptions;
3926
+ if (configuration) {
3927
+ baseOptions = configuration.baseOptions;
3928
+ }
3929
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3930
+ const localVarHeaderParameter = {};
3931
+ const localVarQueryParameter = {};
3932
+ // authentication apiToken required
3933
+ // http bearer authentication required
3934
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3935
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3936
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3937
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3938
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3939
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1CronJobsCreateCronJobRequest, localVarRequestOptions, configuration);
3940
+ return {
3941
+ url: (0, common_1.toPathString)(localVarUrlObj),
3942
+ options: localVarRequestOptions,
3943
+ };
3944
+ }),
3945
+ /**
3946
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
3947
+ * @summary Delete account cron job
3948
+ * @param {string} username
3949
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
3950
+ * @param {*} [options] Override http request option.
3951
+ * @throws {RequiredError}
3952
+ */
3953
+ deleteAccountCronJobV1: (username_1, uid_1, ...args_1) => __awaiter(this, [username_1, uid_1, ...args_1], void 0, function* (username, uid, options = {}) {
3954
+ // verify required parameter 'username' is not null or undefined
3955
+ (0, common_1.assertParamExists)('deleteAccountCronJobV1', 'username', username);
3956
+ // verify required parameter 'uid' is not null or undefined
3957
+ (0, common_1.assertParamExists)('deleteAccountCronJobV1', 'uid', uid);
3958
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}`
3959
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
3960
+ .replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
3961
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3962
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3963
+ let baseOptions;
3964
+ if (configuration) {
3965
+ baseOptions = configuration.baseOptions;
3966
+ }
3967
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
3968
+ const localVarHeaderParameter = {};
3969
+ const localVarQueryParameter = {};
3970
+ // authentication apiToken required
3971
+ // http bearer authentication required
3972
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3973
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3974
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3975
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3976
+ return {
3977
+ url: (0, common_1.toPathString)(localVarUrlObj),
3978
+ options: localVarRequestOptions,
3979
+ };
3980
+ }),
3981
+ /**
3982
+ * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
3983
+ * @summary Get cron job output
3984
+ * @param {string} username
3985
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
3986
+ * @param {*} [options] Override http request option.
3987
+ * @throws {RequiredError}
3988
+ */
3989
+ getCronJobOutputV1: (username_1, uid_1, ...args_1) => __awaiter(this, [username_1, uid_1, ...args_1], void 0, function* (username, uid, options = {}) {
3990
+ // verify required parameter 'username' is not null or undefined
3991
+ (0, common_1.assertParamExists)('getCronJobOutputV1', 'username', username);
3992
+ // verify required parameter 'uid' is not null or undefined
3993
+ (0, common_1.assertParamExists)('getCronJobOutputV1', 'uid', uid);
3994
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs/{uid}/output`
3995
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
3996
+ .replace(`{${"uid"}}`, encodeURIComponent(String(uid)));
3997
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3998
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3999
+ let baseOptions;
4000
+ if (configuration) {
4001
+ baseOptions = configuration.baseOptions;
4002
+ }
4003
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4004
+ const localVarHeaderParameter = {};
4005
+ const localVarQueryParameter = {};
4006
+ // authentication apiToken required
4007
+ // http bearer authentication required
4008
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4009
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4010
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4011
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4012
+ return {
4013
+ url: (0, common_1.toPathString)(localVarUrlObj),
4014
+ options: localVarRequestOptions,
4015
+ };
4016
+ }),
4017
+ /**
4018
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
4019
+ * @summary List account cron jobs
4020
+ * @param {string} username
4021
+ * @param {*} [options] Override http request option.
4022
+ * @throws {RequiredError}
4023
+ */
4024
+ listAccountCronJobsV1: (username_1, ...args_1) => __awaiter(this, [username_1, ...args_1], void 0, function* (username, options = {}) {
4025
+ // verify required parameter 'username' is not null or undefined
4026
+ (0, common_1.assertParamExists)('listAccountCronJobsV1', 'username', username);
4027
+ const localVarPath = `/api/hosting/v1/accounts/{username}/cron-jobs`
4028
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
4029
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4030
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4031
+ let baseOptions;
4032
+ if (configuration) {
4033
+ baseOptions = configuration.baseOptions;
4034
+ }
4035
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4036
+ const localVarHeaderParameter = {};
4037
+ const localVarQueryParameter = {};
4038
+ // authentication apiToken required
4039
+ // http bearer authentication required
4040
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4041
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4042
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4043
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4044
+ return {
4045
+ url: (0, common_1.toPathString)(localVarUrlObj),
4046
+ options: localVarRequestOptions,
4047
+ };
4048
+ }),
4049
+ };
4050
+ };
4051
+ exports.HostingCronJobsApiAxiosParamCreator = HostingCronJobsApiAxiosParamCreator;
4052
+ /**
4053
+ * HostingCronJobsApi - functional programming interface
4054
+ * @export
4055
+ */
4056
+ const HostingCronJobsApiFp = function (configuration) {
4057
+ const localVarAxiosParamCreator = (0, exports.HostingCronJobsApiAxiosParamCreator)(configuration);
4058
+ return {
4059
+ /**
4060
+ * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
4061
+ * @summary Create account cron job
4062
+ * @param {string} username
4063
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
4064
+ * @param {*} [options] Override http request option.
4065
+ * @throws {RequiredError}
4066
+ */
4067
+ createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options) {
4068
+ return __awaiter(this, void 0, void 0, function* () {
4069
+ var _a, _b;
4070
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options);
4071
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCronJobsApi.createAccountCronJobV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4072
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4073
+ });
4074
+ },
4075
+ /**
4076
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
4077
+ * @summary Delete account cron job
4078
+ * @param {string} username
4079
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
4080
+ * @param {*} [options] Override http request option.
4081
+ * @throws {RequiredError}
4082
+ */
4083
+ deleteAccountCronJobV1(username, uid, options) {
4084
+ return __awaiter(this, void 0, void 0, function* () {
4085
+ var _a, _b;
4086
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAccountCronJobV1(username, uid, options);
4087
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCronJobsApi.deleteAccountCronJobV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4088
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4089
+ });
4090
+ },
4091
+ /**
4092
+ * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
4093
+ * @summary Get cron job output
4094
+ * @param {string} username
4095
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
4096
+ * @param {*} [options] Override http request option.
4097
+ * @throws {RequiredError}
4098
+ */
4099
+ getCronJobOutputV1(username, uid, options) {
4100
+ return __awaiter(this, void 0, void 0, function* () {
4101
+ var _a, _b;
4102
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCronJobOutputV1(username, uid, options);
4103
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCronJobsApi.getCronJobOutputV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4104
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4105
+ });
4106
+ },
4107
+ /**
4108
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
4109
+ * @summary List account cron jobs
4110
+ * @param {string} username
4111
+ * @param {*} [options] Override http request option.
4112
+ * @throws {RequiredError}
4113
+ */
4114
+ listAccountCronJobsV1(username, options) {
4115
+ return __awaiter(this, void 0, void 0, function* () {
4116
+ var _a, _b;
4117
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAccountCronJobsV1(username, options);
4118
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingCronJobsApi.listAccountCronJobsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4119
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4120
+ });
4121
+ },
4122
+ };
4123
+ };
4124
+ exports.HostingCronJobsApiFp = HostingCronJobsApiFp;
4125
+ /**
4126
+ * HostingCronJobsApi - factory interface
4127
+ * @export
4128
+ */
4129
+ const HostingCronJobsApiFactory = function (configuration, basePath, axios) {
4130
+ const localVarFp = (0, exports.HostingCronJobsApiFp)(configuration);
4131
+ return {
4132
+ /**
4133
+ * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
4134
+ * @summary Create account cron job
4135
+ * @param {string} username
4136
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
4137
+ * @param {*} [options] Override http request option.
4138
+ * @throws {RequiredError}
4139
+ */
4140
+ createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options) {
4141
+ return localVarFp.createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options).then((request) => request(axios, basePath));
4142
+ },
4143
+ /**
4144
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
4145
+ * @summary Delete account cron job
4146
+ * @param {string} username
4147
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
4148
+ * @param {*} [options] Override http request option.
4149
+ * @throws {RequiredError}
4150
+ */
4151
+ deleteAccountCronJobV1(username, uid, options) {
4152
+ return localVarFp.deleteAccountCronJobV1(username, uid, options).then((request) => request(axios, basePath));
4153
+ },
4154
+ /**
4155
+ * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
4156
+ * @summary Get cron job output
4157
+ * @param {string} username
4158
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
4159
+ * @param {*} [options] Override http request option.
4160
+ * @throws {RequiredError}
4161
+ */
4162
+ getCronJobOutputV1(username, uid, options) {
4163
+ return localVarFp.getCronJobOutputV1(username, uid, options).then((request) => request(axios, basePath));
4164
+ },
4165
+ /**
4166
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
4167
+ * @summary List account cron jobs
4168
+ * @param {string} username
4169
+ * @param {*} [options] Override http request option.
4170
+ * @throws {RequiredError}
4171
+ */
4172
+ listAccountCronJobsV1(username, options) {
4173
+ return localVarFp.listAccountCronJobsV1(username, options).then((request) => request(axios, basePath));
4174
+ },
4175
+ };
4176
+ };
4177
+ exports.HostingCronJobsApiFactory = HostingCronJobsApiFactory;
4178
+ /**
4179
+ * HostingCronJobsApi - object-oriented interface
4180
+ * @export
4181
+ * @class HostingCronJobsApi
4182
+ * @extends {BaseAPI}
4183
+ */
4184
+ class HostingCronJobsApi extends base_1.BaseAPI {
4185
+ /**
4186
+ * Creates a cron job for the specified account from a schedule expression and a command. Returns the created cron job, including its uid, which is required to delete the cron job or fetch its output.
4187
+ * @summary Create account cron job
4188
+ * @param {string} username
4189
+ * @param {HostingV1CronJobsCreateCronJobRequest} hostingV1CronJobsCreateCronJobRequest
4190
+ * @param {*} [options] Override http request option.
4191
+ * @throws {RequiredError}
4192
+ * @memberof HostingCronJobsApi
4193
+ */
4194
+ createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options) {
4195
+ return (0, exports.HostingCronJobsApiFp)(this.configuration).createAccountCronJobV1(username, hostingV1CronJobsCreateCronJobRequest, options).then((request) => request(this.axios, this.basePath));
4196
+ }
4197
+ /**
4198
+ * Permanently deletes the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
4199
+ * @summary Delete account cron job
4200
+ * @param {string} username
4201
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
4202
+ * @param {*} [options] Override http request option.
4203
+ * @throws {RequiredError}
4204
+ * @memberof HostingCronJobsApi
4205
+ */
4206
+ deleteAccountCronJobV1(username, uid, options) {
4207
+ return (0, exports.HostingCronJobsApiFp)(this.configuration).deleteAccountCronJobV1(username, uid, options).then((request) => request(this.axios, this.basePath));
4208
+ }
4209
+ /**
4210
+ * Returns the output captured from the last execution of the cron job identified by its uid. The uid is returned by the list cron jobs endpoint.
4211
+ * @summary Get cron job output
4212
+ * @param {string} username
4213
+ * @param {string} uid Unique identifier of the cron job as returned by the list cron jobs endpoint.
4214
+ * @param {*} [options] Override http request option.
4215
+ * @throws {RequiredError}
4216
+ * @memberof HostingCronJobsApi
4217
+ */
4218
+ getCronJobOutputV1(username, uid, options) {
4219
+ return (0, exports.HostingCronJobsApiFp)(this.configuration).getCronJobOutputV1(username, uid, options).then((request) => request(this.axios, this.basePath));
4220
+ }
4221
+ /**
4222
+ * Returns the list of cron jobs configured for the specified account, including their schedule and command.
4223
+ * @summary List account cron jobs
4224
+ * @param {string} username
4225
+ * @param {*} [options] Override http request option.
4226
+ * @throws {RequiredError}
4227
+ * @memberof HostingCronJobsApi
4228
+ */
4229
+ listAccountCronJobsV1(username, options) {
4230
+ return (0, exports.HostingCronJobsApiFp)(this.configuration).listAccountCronJobsV1(username, options).then((request) => request(this.axios, this.basePath));
4231
+ }
4232
+ }
4233
+ exports.HostingCronJobsApi = HostingCronJobsApi;
3902
4234
  /**
3903
4235
  * HostingDatabasesApi - axios parameter creator
3904
4236
  * @export
@@ -3946,6 +4278,47 @@ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
3946
4278
  options: localVarRequestOptions,
3947
4279
  };
3948
4280
  }),
4281
+ /**
4282
+ * Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
4283
+ * @summary Create account database remote connection
4284
+ * @param {string} username
4285
+ * @param {string} name Full database name as returned by the list databases endpoint.
4286
+ * @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
4287
+ * @param {*} [options] Override http request option.
4288
+ * @throws {RequiredError}
4289
+ */
4290
+ createAccountDatabaseRemoteConnectionV1: (username_1, name_1, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest_1, ...args_1) => __awaiter(this, [username_1, name_1, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest_1, ...args_1], void 0, function* (username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options = {}) {
4291
+ // verify required parameter 'username' is not null or undefined
4292
+ (0, common_1.assertParamExists)('createAccountDatabaseRemoteConnectionV1', 'username', username);
4293
+ // verify required parameter 'name' is not null or undefined
4294
+ (0, common_1.assertParamExists)('createAccountDatabaseRemoteConnectionV1', 'name', name);
4295
+ // verify required parameter 'hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest' is not null or undefined
4296
+ (0, common_1.assertParamExists)('createAccountDatabaseRemoteConnectionV1', 'hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest', hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest);
4297
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`
4298
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
4299
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
4300
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4301
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4302
+ let baseOptions;
4303
+ if (configuration) {
4304
+ baseOptions = configuration.baseOptions;
4305
+ }
4306
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4307
+ const localVarHeaderParameter = {};
4308
+ const localVarQueryParameter = {};
4309
+ // authentication apiToken required
4310
+ // http bearer authentication required
4311
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4312
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4313
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4314
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4315
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4316
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, localVarRequestOptions, configuration);
4317
+ return {
4318
+ url: (0, common_1.toPathString)(localVarUrlObj),
4319
+ options: localVarRequestOptions,
4320
+ };
4321
+ }),
3949
4322
  /**
3950
4323
  * Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
3951
4324
  * @summary Create account database
@@ -3983,6 +4356,48 @@ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
3983
4356
  options: localVarRequestOptions,
3984
4357
  };
3985
4358
  }),
4359
+ /**
4360
+ * Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
4361
+ * @summary Delete account database remote connection
4362
+ * @param {string} username
4363
+ * @param {string} name Full database name as returned by the list databases endpoint.
4364
+ * @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
4365
+ * @param {*} [options] Override http request option.
4366
+ * @throws {RequiredError}
4367
+ */
4368
+ deleteAccountDatabaseRemoteConnectionV1: (username_1, name_1, ip_1, ...args_1) => __awaiter(this, [username_1, name_1, ip_1, ...args_1], void 0, function* (username, name, ip, options = {}) {
4369
+ // verify required parameter 'username' is not null or undefined
4370
+ (0, common_1.assertParamExists)('deleteAccountDatabaseRemoteConnectionV1', 'username', username);
4371
+ // verify required parameter 'name' is not null or undefined
4372
+ (0, common_1.assertParamExists)('deleteAccountDatabaseRemoteConnectionV1', 'name', name);
4373
+ // verify required parameter 'ip' is not null or undefined
4374
+ (0, common_1.assertParamExists)('deleteAccountDatabaseRemoteConnectionV1', 'ip', ip);
4375
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`
4376
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
4377
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
4378
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4379
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4380
+ let baseOptions;
4381
+ if (configuration) {
4382
+ baseOptions = configuration.baseOptions;
4383
+ }
4384
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4385
+ const localVarHeaderParameter = {};
4386
+ const localVarQueryParameter = {};
4387
+ // authentication apiToken required
4388
+ // http bearer authentication required
4389
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4390
+ if (ip !== undefined) {
4391
+ localVarQueryParameter['ip'] = ip;
4392
+ }
4393
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4394
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4395
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4396
+ return {
4397
+ url: (0, common_1.toPathString)(localVarUrlObj),
4398
+ options: localVarRequestOptions,
4399
+ };
4400
+ }),
3986
4401
  /**
3987
4402
  * Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
3988
4403
  * @summary Delete account database
@@ -4055,6 +4470,42 @@ const HostingDatabasesApiAxiosParamCreator = function (configuration) {
4055
4470
  options: localVarRequestOptions,
4056
4471
  };
4057
4472
  }),
4473
+ /**
4474
+ * Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
4475
+ * @summary List account database remote connections
4476
+ * @param {string} username
4477
+ * @param {string | null} [domain] Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.
4478
+ * @param {*} [options] Override http request option.
4479
+ * @throws {RequiredError}
4480
+ */
4481
+ listAccountDatabaseRemoteConnectionsV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
4482
+ // verify required parameter 'username' is not null or undefined
4483
+ (0, common_1.assertParamExists)('listAccountDatabaseRemoteConnectionsV1', 'username', username);
4484
+ const localVarPath = `/api/hosting/v1/accounts/{username}/databases/remote-connections`
4485
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
4486
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4487
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4488
+ let baseOptions;
4489
+ if (configuration) {
4490
+ baseOptions = configuration.baseOptions;
4491
+ }
4492
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4493
+ const localVarHeaderParameter = {};
4494
+ const localVarQueryParameter = {};
4495
+ // authentication apiToken required
4496
+ // http bearer authentication required
4497
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4498
+ if (domain !== undefined) {
4499
+ localVarQueryParameter['domain'] = domain;
4500
+ }
4501
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4502
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4503
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4504
+ return {
4505
+ url: (0, common_1.toPathString)(localVarUrlObj),
4506
+ options: localVarRequestOptions,
4507
+ };
4508
+ }),
4058
4509
  /**
4059
4510
  * Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
4060
4511
  * @summary List account databases
@@ -4170,6 +4621,23 @@ const HostingDatabasesApiFp = function (configuration) {
4170
4621
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4171
4622
  });
4172
4623
  },
4624
+ /**
4625
+ * Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
4626
+ * @summary Create account database remote connection
4627
+ * @param {string} username
4628
+ * @param {string} name Full database name as returned by the list databases endpoint.
4629
+ * @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
4630
+ * @param {*} [options] Override http request option.
4631
+ * @throws {RequiredError}
4632
+ */
4633
+ createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options) {
4634
+ return __awaiter(this, void 0, void 0, function* () {
4635
+ var _a, _b;
4636
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options);
4637
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.createAccountDatabaseRemoteConnectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4638
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4639
+ });
4640
+ },
4173
4641
  /**
4174
4642
  * Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
4175
4643
  * @summary Create account database
@@ -4186,6 +4654,23 @@ const HostingDatabasesApiFp = function (configuration) {
4186
4654
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4187
4655
  });
4188
4656
  },
4657
+ /**
4658
+ * Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
4659
+ * @summary Delete account database remote connection
4660
+ * @param {string} username
4661
+ * @param {string} name Full database name as returned by the list databases endpoint.
4662
+ * @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
4663
+ * @param {*} [options] Override http request option.
4664
+ * @throws {RequiredError}
4665
+ */
4666
+ deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options) {
4667
+ return __awaiter(this, void 0, void 0, function* () {
4668
+ var _a, _b;
4669
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options);
4670
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.deleteAccountDatabaseRemoteConnectionV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4671
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4672
+ });
4673
+ },
4189
4674
  /**
4190
4675
  * Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
4191
4676
  * @summary Delete account database
@@ -4218,6 +4703,22 @@ const HostingDatabasesApiFp = function (configuration) {
4218
4703
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4219
4704
  });
4220
4705
  },
4706
+ /**
4707
+ * Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
4708
+ * @summary List account database remote connections
4709
+ * @param {string} username
4710
+ * @param {string | null} [domain] Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.
4711
+ * @param {*} [options] Override http request option.
4712
+ * @throws {RequiredError}
4713
+ */
4714
+ listAccountDatabaseRemoteConnectionsV1(username, domain, options) {
4715
+ return __awaiter(this, void 0, void 0, function* () {
4716
+ var _a, _b;
4717
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAccountDatabaseRemoteConnectionsV1(username, domain, options);
4718
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingDatabasesApi.listAccountDatabaseRemoteConnectionsV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
4719
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4720
+ });
4721
+ },
4221
4722
  /**
4222
4723
  * Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
4223
4724
  * @summary List account databases
@@ -4276,6 +4777,18 @@ const HostingDatabasesApiFactory = function (configuration, basePath, axios) {
4276
4777
  changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options) {
4277
4778
  return localVarFp.changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options).then((request) => request(axios, basePath));
4278
4779
  },
4780
+ /**
4781
+ * Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
4782
+ * @summary Create account database remote connection
4783
+ * @param {string} username
4784
+ * @param {string} name Full database name as returned by the list databases endpoint.
4785
+ * @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
4786
+ * @param {*} [options] Override http request option.
4787
+ * @throws {RequiredError}
4788
+ */
4789
+ createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options) {
4790
+ return localVarFp.createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options).then((request) => request(axios, basePath));
4791
+ },
4279
4792
  /**
4280
4793
  * Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
4281
4794
  * @summary Create account database
@@ -4287,6 +4800,18 @@ const HostingDatabasesApiFactory = function (configuration, basePath, axios) {
4287
4800
  createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options) {
4288
4801
  return localVarFp.createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options).then((request) => request(axios, basePath));
4289
4802
  },
4803
+ /**
4804
+ * Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
4805
+ * @summary Delete account database remote connection
4806
+ * @param {string} username
4807
+ * @param {string} name Full database name as returned by the list databases endpoint.
4808
+ * @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
4809
+ * @param {*} [options] Override http request option.
4810
+ * @throws {RequiredError}
4811
+ */
4812
+ deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options) {
4813
+ return localVarFp.deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options).then((request) => request(axios, basePath));
4814
+ },
4290
4815
  /**
4291
4816
  * Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
4292
4817
  * @summary Delete account database
@@ -4309,6 +4834,17 @@ const HostingDatabasesApiFactory = function (configuration, basePath, axios) {
4309
4834
  getPhpMyAdminLinkV1(username, name, options) {
4310
4835
  return localVarFp.getPhpMyAdminLinkV1(username, name, options).then((request) => request(axios, basePath));
4311
4836
  },
4837
+ /**
4838
+ * Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
4839
+ * @summary List account database remote connections
4840
+ * @param {string} username
4841
+ * @param {string | null} [domain] Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.
4842
+ * @param {*} [options] Override http request option.
4843
+ * @throws {RequiredError}
4844
+ */
4845
+ listAccountDatabaseRemoteConnectionsV1(username, domain, options) {
4846
+ return localVarFp.listAccountDatabaseRemoteConnectionsV1(username, domain, options).then((request) => request(axios, basePath));
4847
+ },
4312
4848
  /**
4313
4849
  * Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
4314
4850
  * @summary List account databases
@@ -4358,6 +4894,19 @@ class HostingDatabasesApi extends base_1.BaseAPI {
4358
4894
  changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options) {
4359
4895
  return (0, exports.HostingDatabasesApiFp)(this.configuration).changeDatabasePasswordV1(username, name, hostingV1DatabasesChangeDatabasePasswordRequest, options).then((request) => request(this.axios, this.basePath));
4360
4896
  }
4897
+ /**
4898
+ * Allows a remote host to connect to the specified database. Provide an IPv4/IPv6 address, or \"%\" to allow any host. The database name must be the full name returned by the list databases endpoint.
4899
+ * @summary Create account database remote connection
4900
+ * @param {string} username
4901
+ * @param {string} name Full database name as returned by the list databases endpoint.
4902
+ * @param {HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest} hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
4903
+ * @param {*} [options] Override http request option.
4904
+ * @throws {RequiredError}
4905
+ * @memberof HostingDatabasesApi
4906
+ */
4907
+ createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options) {
4908
+ return (0, exports.HostingDatabasesApiFp)(this.configuration).createAccountDatabaseRemoteConnectionV1(username, name, hostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest, options).then((request) => request(this.axios, this.basePath));
4909
+ }
4361
4910
  /**
4362
4911
  * Creates a database with a database user and password for the specified account. The database name and user are automatically prefixed with the account username when needed.
4363
4912
  * @summary Create account database
@@ -4370,6 +4919,19 @@ class HostingDatabasesApi extends base_1.BaseAPI {
4370
4919
  createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options) {
4371
4920
  return (0, exports.HostingDatabasesApiFp)(this.configuration).createAccountDatabaseV1(username, hostingV1DatabasesCreateDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
4372
4921
  }
4922
+ /**
4923
+ * Permanently removes a remote-access rule, revoking the given host\'s remote access to the database. Identify the rule with the required ip query parameter (the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint). The database name must be the full name returned by the list databases endpoint.
4924
+ * @summary Delete account database remote connection
4925
+ * @param {string} username
4926
+ * @param {string} name Full database name as returned by the list databases endpoint.
4927
+ * @param {string} ip Remote host to revoke: the IPv4/IPv6 address, or \"%\", exactly as returned by the list remote connections endpoint.
4928
+ * @param {*} [options] Override http request option.
4929
+ * @throws {RequiredError}
4930
+ * @memberof HostingDatabasesApi
4931
+ */
4932
+ deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options) {
4933
+ return (0, exports.HostingDatabasesApiFp)(this.configuration).deleteAccountDatabaseRemoteConnectionV1(username, name, ip, options).then((request) => request(this.axios, this.basePath));
4934
+ }
4373
4935
  /**
4374
4936
  * Permanently deletes a database and its remote connections. The database name must be the full name returned by the list databases endpoint.
4375
4937
  * @summary Delete account database
@@ -4394,6 +4956,18 @@ class HostingDatabasesApi extends base_1.BaseAPI {
4394
4956
  getPhpMyAdminLinkV1(username, name, options) {
4395
4957
  return (0, exports.HostingDatabasesApiFp)(this.configuration).getPhpMyAdminLinkV1(username, name, options).then((request) => request(this.axios, this.basePath));
4396
4958
  }
4959
+ /**
4960
+ * Returns the remote-access rules for the specified account: the remote hosts (IPv4/IPv6 addresses, or \"%\" for any host) allowed to connect to the account databases. Use the domain filter to only return rules for databases assigned to a specific domain.
4961
+ * @summary List account database remote connections
4962
+ * @param {string} username
4963
+ * @param {string | null} [domain] Filter remote connections by the domain the database is assigned to. Rules for databases not assigned to any domain are always included.
4964
+ * @param {*} [options] Override http request option.
4965
+ * @throws {RequiredError}
4966
+ * @memberof HostingDatabasesApi
4967
+ */
4968
+ listAccountDatabaseRemoteConnectionsV1(username, domain, options) {
4969
+ return (0, exports.HostingDatabasesApiFp)(this.configuration).listAccountDatabaseRemoteConnectionsV1(username, domain, options).then((request) => request(this.axios, this.basePath));
4970
+ }
4397
4971
  /**
4398
4972
  * Returns a paginated list of databases for the specified account. Use the domain and is_assigned filters to find databases assigned to a specific domain.
4399
4973
  * @summary List account databases