hostinger-api-sdk 2.1.0 → 2.1.2

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/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.1.0
6
+ * API Version: 2.1.2
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -559,6 +559,7 @@ export const HostingV1OnboardingsOnboardingResourceStatusEnum = {
559
559
  };
560
560
  export const HostingV1OnboardingsStartOnboardingRequestTypeEnum = {
561
561
  Wordpress: 'wordpress',
562
+ HeadlessEmpty: 'headless_empty',
562
563
  HeadlessWordpress: 'headless_wordpress',
563
564
  HeadlessEcommerce: 'headless_ecommerce',
564
565
  HeadlessPocketbase: 'headless_pocketbase'
@@ -1163,6 +1164,10 @@ export const WordPressV1HostingerPluginsUpdateAiOptionStatusRequestOptionEnum =
1163
1164
  Llmstxt: 'llmstxt',
1164
1165
  Web2agent: 'web2agent'
1165
1166
  };
1167
+ export const WordPressV1InstallationsInstallWordPressRequestTypeEnum = {
1168
+ Default: 'default',
1169
+ Headless: 'headless'
1170
+ };
1166
1171
  export const WordPressV1InstallationsInstallWordPressRequestAutoUpdatesEnum = {
1167
1172
  All: 'all',
1168
1173
  None: 'none',
@@ -12618,6 +12623,340 @@ export class HorizonsWebsitesApi extends BaseAPI {
12618
12623
  return HorizonsWebsitesApiFp(this.configuration).publishWebsiteV1(websiteId, horizonsV1WebsitesPublishWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
12619
12624
  }
12620
12625
  }
12626
+ /**
12627
+ * HostingCDNApi - axios parameter creator
12628
+ * @export
12629
+ */
12630
+ export const HostingCDNApiAxiosParamCreator = function (configuration) {
12631
+ return {
12632
+ /**
12633
+ * Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the website content is served directly from the origin server. Repeating the call is safe; when CDN is already disabled, it applies the DNS change again. Returns 422 for platform-managed domains (for example `*.hostingersite.com` and `*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns 422 while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
12634
+ * @summary Disable CDN
12635
+ * @param {string} username
12636
+ * @param {string} domain Domain name
12637
+ * @param {*} [options] Override http request option.
12638
+ * @throws {RequiredError}
12639
+ */
12640
+ disableCDNV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
12641
+ // verify required parameter 'username' is not null or undefined
12642
+ assertParamExists('disableCDNV1', 'username', username);
12643
+ // verify required parameter 'domain' is not null or undefined
12644
+ assertParamExists('disableCDNV1', 'domain', domain);
12645
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cdn/disable`
12646
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12647
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
12648
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12649
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12650
+ let baseOptions;
12651
+ if (configuration) {
12652
+ baseOptions = configuration.baseOptions;
12653
+ }
12654
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12655
+ const localVarHeaderParameter = {};
12656
+ const localVarQueryParameter = {};
12657
+ // authentication apiToken required
12658
+ // http bearer authentication required
12659
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12660
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12661
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12662
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12663
+ return {
12664
+ url: toPathString(localVarUrlObj),
12665
+ options: localVarRequestOptions,
12666
+ };
12667
+ }),
12668
+ /**
12669
+ * Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the load on the server. Works for the main domain, parked domains and subdomains of the account. Enabling changes the domain\'s DNS records and usually takes a few seconds. After that, DNS propagation can take a few more minutes before visitors are served through the CDN. Repeating the call is safe, for example after a timeout. When CDN is already enabled, it applies the DNS change again and refreshes the CDN SSL certificate. Returns 422 when the account is disabled, while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
12670
+ * @summary Enable CDN
12671
+ * @param {string} username
12672
+ * @param {string} domain Domain name
12673
+ * @param {*} [options] Override http request option.
12674
+ * @throws {RequiredError}
12675
+ */
12676
+ enableCDNV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
12677
+ // verify required parameter 'username' is not null or undefined
12678
+ assertParamExists('enableCDNV1', 'username', username);
12679
+ // verify required parameter 'domain' is not null or undefined
12680
+ assertParamExists('enableCDNV1', 'domain', domain);
12681
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cdn/enable`
12682
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12683
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
12684
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12685
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12686
+ let baseOptions;
12687
+ if (configuration) {
12688
+ baseOptions = configuration.baseOptions;
12689
+ }
12690
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12691
+ const localVarHeaderParameter = {};
12692
+ const localVarQueryParameter = {};
12693
+ // authentication apiToken required
12694
+ // http bearer authentication required
12695
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12696
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12697
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12698
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12699
+ return {
12700
+ url: toPathString(localVarUrlObj),
12701
+ options: localVarRequestOptions,
12702
+ };
12703
+ }),
12704
+ /**
12705
+ * Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
12706
+ * @summary Get CDN status
12707
+ * @param {string} username
12708
+ * @param {string} domain Domain name
12709
+ * @param {*} [options] Override http request option.
12710
+ * @throws {RequiredError}
12711
+ */
12712
+ getCDNStatusV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
12713
+ // verify required parameter 'username' is not null or undefined
12714
+ assertParamExists('getCDNStatusV1', 'username', username);
12715
+ // verify required parameter 'domain' is not null or undefined
12716
+ assertParamExists('getCDNStatusV1', 'domain', domain);
12717
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cdn/status`
12718
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12719
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
12720
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12721
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12722
+ let baseOptions;
12723
+ if (configuration) {
12724
+ baseOptions = configuration.baseOptions;
12725
+ }
12726
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12727
+ const localVarHeaderParameter = {};
12728
+ const localVarQueryParameter = {};
12729
+ // authentication apiToken required
12730
+ // http bearer authentication required
12731
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12732
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12733
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12734
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12735
+ return {
12736
+ url: toPathString(localVarUrlObj),
12737
+ options: localVarRequestOptions,
12738
+ };
12739
+ }),
12740
+ /**
12741
+ * Purges the website\'s content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use `Clear website cache`. Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.
12742
+ * @summary Purge CDN cache
12743
+ * @param {string} username
12744
+ * @param {string} domain Domain name
12745
+ * @param {*} [options] Override http request option.
12746
+ * @throws {RequiredError}
12747
+ */
12748
+ purgeCDNCacheV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
12749
+ // verify required parameter 'username' is not null or undefined
12750
+ assertParamExists('purgeCDNCacheV1', 'username', username);
12751
+ // verify required parameter 'domain' is not null or undefined
12752
+ assertParamExists('purgeCDNCacheV1', 'domain', domain);
12753
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cdn/purge`
12754
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12755
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
12756
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12757
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12758
+ let baseOptions;
12759
+ if (configuration) {
12760
+ baseOptions = configuration.baseOptions;
12761
+ }
12762
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
12763
+ const localVarHeaderParameter = {};
12764
+ const localVarQueryParameter = {};
12765
+ // authentication apiToken required
12766
+ // http bearer authentication required
12767
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12768
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12769
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12770
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12771
+ return {
12772
+ url: toPathString(localVarUrlObj),
12773
+ options: localVarRequestOptions,
12774
+ };
12775
+ }),
12776
+ };
12777
+ };
12778
+ /**
12779
+ * HostingCDNApi - functional programming interface
12780
+ * @export
12781
+ */
12782
+ export const HostingCDNApiFp = function (configuration) {
12783
+ const localVarAxiosParamCreator = HostingCDNApiAxiosParamCreator(configuration);
12784
+ return {
12785
+ /**
12786
+ * Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the website content is served directly from the origin server. Repeating the call is safe; when CDN is already disabled, it applies the DNS change again. Returns 422 for platform-managed domains (for example `*.hostingersite.com` and `*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns 422 while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
12787
+ * @summary Disable CDN
12788
+ * @param {string} username
12789
+ * @param {string} domain Domain name
12790
+ * @param {*} [options] Override http request option.
12791
+ * @throws {RequiredError}
12792
+ */
12793
+ disableCDNV1(username, domain, options) {
12794
+ return __awaiter(this, void 0, void 0, function* () {
12795
+ var _a, _b;
12796
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.disableCDNV1(username, domain, options);
12797
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingCDNApi.disableCDNV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
12798
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12799
+ });
12800
+ },
12801
+ /**
12802
+ * Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the load on the server. Works for the main domain, parked domains and subdomains of the account. Enabling changes the domain\'s DNS records and usually takes a few seconds. After that, DNS propagation can take a few more minutes before visitors are served through the CDN. Repeating the call is safe, for example after a timeout. When CDN is already enabled, it applies the DNS change again and refreshes the CDN SSL certificate. Returns 422 when the account is disabled, while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
12803
+ * @summary Enable CDN
12804
+ * @param {string} username
12805
+ * @param {string} domain Domain name
12806
+ * @param {*} [options] Override http request option.
12807
+ * @throws {RequiredError}
12808
+ */
12809
+ enableCDNV1(username, domain, options) {
12810
+ return __awaiter(this, void 0, void 0, function* () {
12811
+ var _a, _b;
12812
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.enableCDNV1(username, domain, options);
12813
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingCDNApi.enableCDNV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
12814
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12815
+ });
12816
+ },
12817
+ /**
12818
+ * Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
12819
+ * @summary Get CDN status
12820
+ * @param {string} username
12821
+ * @param {string} domain Domain name
12822
+ * @param {*} [options] Override http request option.
12823
+ * @throws {RequiredError}
12824
+ */
12825
+ getCDNStatusV1(username, domain, options) {
12826
+ return __awaiter(this, void 0, void 0, function* () {
12827
+ var _a, _b;
12828
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCDNStatusV1(username, domain, options);
12829
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingCDNApi.getCDNStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
12830
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12831
+ });
12832
+ },
12833
+ /**
12834
+ * Purges the website\'s content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use `Clear website cache`. Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.
12835
+ * @summary Purge CDN cache
12836
+ * @param {string} username
12837
+ * @param {string} domain Domain name
12838
+ * @param {*} [options] Override http request option.
12839
+ * @throws {RequiredError}
12840
+ */
12841
+ purgeCDNCacheV1(username, domain, options) {
12842
+ return __awaiter(this, void 0, void 0, function* () {
12843
+ var _a, _b;
12844
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.purgeCDNCacheV1(username, domain, options);
12845
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingCDNApi.purgeCDNCacheV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
12846
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12847
+ });
12848
+ },
12849
+ };
12850
+ };
12851
+ /**
12852
+ * HostingCDNApi - factory interface
12853
+ * @export
12854
+ */
12855
+ export const HostingCDNApiFactory = function (configuration, basePath, axios) {
12856
+ const localVarFp = HostingCDNApiFp(configuration);
12857
+ return {
12858
+ /**
12859
+ * Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the website content is served directly from the origin server. Repeating the call is safe; when CDN is already disabled, it applies the DNS change again. Returns 422 for platform-managed domains (for example `*.hostingersite.com` and `*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns 422 while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
12860
+ * @summary Disable CDN
12861
+ * @param {string} username
12862
+ * @param {string} domain Domain name
12863
+ * @param {*} [options] Override http request option.
12864
+ * @throws {RequiredError}
12865
+ */
12866
+ disableCDNV1(username, domain, options) {
12867
+ return localVarFp.disableCDNV1(username, domain, options).then((request) => request(axios, basePath));
12868
+ },
12869
+ /**
12870
+ * Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the load on the server. Works for the main domain, parked domains and subdomains of the account. Enabling changes the domain\'s DNS records and usually takes a few seconds. After that, DNS propagation can take a few more minutes before visitors are served through the CDN. Repeating the call is safe, for example after a timeout. When CDN is already enabled, it applies the DNS change again and refreshes the CDN SSL certificate. Returns 422 when the account is disabled, while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
12871
+ * @summary Enable CDN
12872
+ * @param {string} username
12873
+ * @param {string} domain Domain name
12874
+ * @param {*} [options] Override http request option.
12875
+ * @throws {RequiredError}
12876
+ */
12877
+ enableCDNV1(username, domain, options) {
12878
+ return localVarFp.enableCDNV1(username, domain, options).then((request) => request(axios, basePath));
12879
+ },
12880
+ /**
12881
+ * Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
12882
+ * @summary Get CDN status
12883
+ * @param {string} username
12884
+ * @param {string} domain Domain name
12885
+ * @param {*} [options] Override http request option.
12886
+ * @throws {RequiredError}
12887
+ */
12888
+ getCDNStatusV1(username, domain, options) {
12889
+ return localVarFp.getCDNStatusV1(username, domain, options).then((request) => request(axios, basePath));
12890
+ },
12891
+ /**
12892
+ * Purges the website\'s content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use `Clear website cache`. Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.
12893
+ * @summary Purge CDN cache
12894
+ * @param {string} username
12895
+ * @param {string} domain Domain name
12896
+ * @param {*} [options] Override http request option.
12897
+ * @throws {RequiredError}
12898
+ */
12899
+ purgeCDNCacheV1(username, domain, options) {
12900
+ return localVarFp.purgeCDNCacheV1(username, domain, options).then((request) => request(axios, basePath));
12901
+ },
12902
+ };
12903
+ };
12904
+ /**
12905
+ * HostingCDNApi - object-oriented interface
12906
+ * @export
12907
+ * @class HostingCDNApi
12908
+ * @extends {BaseAPI}
12909
+ */
12910
+ export class HostingCDNApi extends BaseAPI {
12911
+ /**
12912
+ * Turns off the Hostinger CDN for the website domain. Once DNS propagation completes, the website content is served directly from the origin server. Repeating the call is safe; when CDN is already disabled, it applies the DNS change again. Returns 422 for platform-managed domains (for example `*.hostingersite.com` and `*.app-preview.com`), where CDN cannot be disabled, even when CDN is already off. Also returns 422 while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
12913
+ * @summary Disable CDN
12914
+ * @param {string} username
12915
+ * @param {string} domain Domain name
12916
+ * @param {*} [options] Override http request option.
12917
+ * @throws {RequiredError}
12918
+ * @memberof HostingCDNApi
12919
+ */
12920
+ disableCDNV1(username, domain, options) {
12921
+ return HostingCDNApiFp(this.configuration).disableCDNV1(username, domain, options).then((request) => request(this.axios, this.basePath));
12922
+ }
12923
+ /**
12924
+ * Turns on the Hostinger CDN for the website domain, which speeds up page loads and reduces the load on the server. Works for the main domain, parked domains and subdomains of the account. Enabling changes the domain\'s DNS records and usually takes a few seconds. After that, DNS propagation can take a few more minutes before visitors are served through the CDN. Repeating the call is safe, for example after a timeout. When CDN is already enabled, it applies the DNS change again and refreshes the CDN SSL certificate. Returns 422 when the account is disabled, while the account is being moved to another server (retry after the move finishes), or when the CDN provider rejects the change. Returns 404 when the domain is not a website on the account.
12925
+ * @summary Enable CDN
12926
+ * @param {string} username
12927
+ * @param {string} domain Domain name
12928
+ * @param {*} [options] Override http request option.
12929
+ * @throws {RequiredError}
12930
+ * @memberof HostingCDNApi
12931
+ */
12932
+ enableCDNV1(username, domain, options) {
12933
+ return HostingCDNApiFp(this.configuration).enableCDNV1(username, domain, options).then((request) => request(this.axios, this.basePath));
12934
+ }
12935
+ /**
12936
+ * Returns whether the Hostinger CDN is enabled for the website domain. Works for the main domain, parked domains and subdomains of the account. The domain must be the exact website name as listed on the account, without a `www.` prefix. Returns 404 when the domain is not a website on the account.
12937
+ * @summary Get CDN status
12938
+ * @param {string} username
12939
+ * @param {string} domain Domain name
12940
+ * @param {*} [options] Override http request option.
12941
+ * @throws {RequiredError}
12942
+ * @memberof HostingCDNApi
12943
+ */
12944
+ getCDNStatusV1(username, domain, options) {
12945
+ return HostingCDNApiFp(this.configuration).getCDNStatusV1(username, domain, options).then((request) => request(this.axios, this.basePath));
12946
+ }
12947
+ /**
12948
+ * Purges the website\'s content from the Hostinger CDN edge cache only. The origin server cache is not touched; to clear both, use `Clear website cache`. Returns 422 when CDN is not enabled on the website. Returns 404 when the domain is not a website on the account.
12949
+ * @summary Purge CDN cache
12950
+ * @param {string} username
12951
+ * @param {string} domain Domain name
12952
+ * @param {*} [options] Override http request option.
12953
+ * @throws {RequiredError}
12954
+ * @memberof HostingCDNApi
12955
+ */
12956
+ purgeCDNCacheV1(username, domain, options) {
12957
+ return HostingCDNApiFp(this.configuration).purgeCDNCacheV1(username, domain, options).then((request) => request(this.axios, this.basePath));
12958
+ }
12959
+ }
12621
12960
  /**
12622
12961
  * HostingCacheApi - axios parameter creator
12623
12962
  * @export
@@ -12625,7 +12964,7 @@ export class HorizonsWebsitesApi extends BaseAPI {
12625
12964
  export const HostingCacheApiAxiosParamCreator = function (configuration) {
12626
12965
  return {
12627
12966
  /**
12628
- * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
12967
+ * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
12629
12968
  * @summary Clear website cache
12630
12969
  * @param {string} username
12631
12970
  * @param {string} domain Domain name
@@ -12756,7 +13095,7 @@ export const HostingCacheApiFp = function (configuration) {
12756
13095
  const localVarAxiosParamCreator = HostingCacheApiAxiosParamCreator(configuration);
12757
13096
  return {
12758
13097
  /**
12759
- * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
13098
+ * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
12760
13099
  * @summary Clear website cache
12761
13100
  * @param {string} username
12762
13101
  * @param {string} domain Domain name
@@ -12816,7 +13155,7 @@ export const HostingCacheApiFactory = function (configuration, basePath, axios)
12816
13155
  const localVarFp = HostingCacheApiFp(configuration);
12817
13156
  return {
12818
13157
  /**
12819
- * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
13158
+ * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
12820
13159
  * @summary Clear website cache
12821
13160
  * @param {string} username
12822
13161
  * @param {string} domain Domain name
@@ -12861,7 +13200,7 @@ export const HostingCacheApiFactory = function (configuration, basePath, axios)
12861
13200
  */
12862
13201
  export class HostingCacheApi extends BaseAPI {
12863
13202
  /**
12864
- * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
13203
+ * Permanently clears all server-side cache for the website at once. Use it when content was updated and needs to be visible immediately, or after making major changes. Also purges the Hostinger CDN cache when CDN is enabled on the website. To purge only the CDN cache and leave the server cache untouched, use `Purge CDN cache`. For a WordPress installation living in a subdirectory, pass the directory query parameter to clear its cache.
12865
13204
  * @summary Clear website cache
12866
13205
  * @param {string} username
12867
13206
  * @param {string} domain Domain name
@@ -18672,7 +19011,7 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration) {
18672
19011
  };
18673
19012
  }),
18674
19013
  /**
18675
- * Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
19014
+ * Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
18676
19015
  * @summary List website setups
18677
19016
  * @param {number | null} [orderId] Order ID
18678
19017
  * @param {string | null} [subscriptionId] Filter by hosting order subscription ID
@@ -18768,7 +19107,7 @@ export const HostingWebsitesApiAxiosParamCreator = function (configuration) {
18768
19107
  };
18769
19108
  }),
18770
19109
  /**
18771
- * Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
19110
+ * Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain. To know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, generate one through `POST /api/hosting/v1/domains/free-subdomains` (`hosting_domains_generate-free-subdomain`) and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
18772
19111
  * @summary Start website setup
18773
19112
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
18774
19113
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -18862,7 +19201,7 @@ export const HostingWebsitesApiFp = function (configuration) {
18862
19201
  });
18863
19202
  },
18864
19203
  /**
18865
- * Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
19204
+ * Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
18866
19205
  * @summary List website setups
18867
19206
  * @param {number | null} [orderId] Order ID
18868
19207
  * @param {string | null} [subscriptionId] Filter by hosting order subscription ID
@@ -18900,7 +19239,7 @@ export const HostingWebsitesApiFp = function (configuration) {
18900
19239
  });
18901
19240
  },
18902
19241
  /**
18903
- * Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
19242
+ * Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain. To know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, generate one through `POST /api/hosting/v1/domains/free-subdomains` (`hosting_domains_generate-free-subdomain`) and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
18904
19243
  * @summary Start website setup
18905
19244
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
18906
19245
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -18958,7 +19297,7 @@ export const HostingWebsitesApiFactory = function (configuration, basePath, axio
18958
19297
  return localVarFp.deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options).then((request) => request(axios, basePath));
18959
19298
  },
18960
19299
  /**
18961
- * Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
19300
+ * Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
18962
19301
  * @summary List website setups
18963
19302
  * @param {number | null} [orderId] Order ID
18964
19303
  * @param {string | null} [subscriptionId] Filter by hosting order subscription ID
@@ -18986,7 +19325,7 @@ export const HostingWebsitesApiFactory = function (configuration, basePath, axio
18986
19325
  return localVarFp.listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(axios, basePath));
18987
19326
  },
18988
19327
  /**
18989
- * Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
19328
+ * Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain. To know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, generate one through `POST /api/hosting/v1/domains/free-subdomains` (`hosting_domains_generate-free-subdomain`) and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
18990
19329
  * @summary Start website setup
18991
19330
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
18992
19331
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -19042,7 +19381,7 @@ export class HostingWebsitesApi extends BaseAPI {
19042
19381
  return HostingWebsitesApiFp(this.configuration).deployStaticSiteArchiveV1(username, domain, hostingV1WebsitesDeployArchiveRequest, options).then((request) => request(this.axios, this.basePath));
19043
19382
  }
19044
19383
  /**
19045
- * Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
19384
+ * Returns the website setups started in the last 24 hours for the hosting accounts accessible to the authenticated client, newest first. Narrow the list with the `order_id`, `subscription_id` or `domain` filters. Meant for polling right after creating a website or starting a website setup: the website shows up in the websites list before its server-side setup has finished, and while the setup is `running` endpoints that operate on that website may respond with `404` or `409`. Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. `failed` means the setup stopped before finishing or has not reported progress for over an hour. Setups older than 24 hours are not listed. `type` is the website type the setup was started with (`wordpress`, `headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`), or `null` for an empty website.
19046
19385
  * @summary List website setups
19047
19386
  * @param {number | null} [orderId] Order ID
19048
19387
  * @param {string | null} [subscriptionId] Filter by hosting order subscription ID
@@ -19072,7 +19411,7 @@ export class HostingWebsitesApi extends BaseAPI {
19072
19411
  return HostingWebsitesApiFp(this.configuration).listWebsitesV1(page, perPage, username, orderId, isEnabled, domain, websiteTypes, options).then((request) => request(this.axios, this.basePath));
19073
19412
  }
19074
19413
  /**
19075
- * Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. Omit `domain` to set the website up on a generated temporary free subdomain. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
19414
+ * Starts a website setup on a Web or Cloud hosting order and returns the created setup right away; the website itself is provisioned asynchronously. Poll the list website setups endpoint (`hosting_websites_list-setups`) with the `domain` filter every 10 to 15 seconds and wait for `status: completed` before uploading files, deploying or creating databases. Omit `type` for an empty website. `type: wordpress` installs WordPress in the website root with the admin user, email and password from `wordpress`, the domain as the site title, and `en_US` when `wordpress.language` is omitted. The headless types (`headless_empty`, `headless_wordpress`, `headless_ecommerce`, `headless_pocketbase`) create a headless website; `headless_wordpress` additionally installs WordPress into the `cms` directory of the website root with generated credentials. `headless_empty` installs nothing: WordPress can be added later through `POST /api/hosting/v1/accounts/{username}/wordpress/installations` (`wordpress_installations_install`) with `type: headless`. Omit `domain` to set the website up on a generated temporary free subdomain. To know the free subdomain before the call, so a timed-out call can be looked up and retried on the same domain, generate one through `POST /api/hosting/v1/domains/free-subdomains` (`hosting_domains_generate-free-subdomain`) and send it as `domain`. It is accepted for 24 hours, only from the client that generated it. When the order has no hosting account yet, the setup creates one first, in the datacenter given by `datacenter_code` or the order\'s default datacenter when it is omitted. Returns 404 when the order does not exist or is not accessible to the authenticated client, and 409 with a `Retry-After` header while a setup for the same domain is still running.
19076
19415
  * @summary Start website setup
19077
19416
  * @param {number} orderId Hosting order ID. List orders to find available IDs.
19078
19417
  * @param {HostingV1OnboardingsStartOnboardingRequest} hostingV1OnboardingsStartOnboardingRequest
@@ -33258,7 +33597,7 @@ export const WordPressInstallationsApiAxiosParamCreator = function (configuratio
33258
33597
  };
33259
33598
  }),
33260
33599
  /**
33261
- * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
33600
+ * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_start-setup`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_start-setup` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
33262
33601
  * @summary Install WordPress
33263
33602
  * @param {string} username
33264
33603
  * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
@@ -33538,7 +33877,7 @@ export const WordPressInstallationsApiFp = function (configuration) {
33538
33877
  });
33539
33878
  },
33540
33879
  /**
33541
- * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
33880
+ * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_start-setup`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_start-setup` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
33542
33881
  * @summary Install WordPress
33543
33882
  * @param {string} username
33544
33883
  * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
@@ -33685,7 +34024,7 @@ export const WordPressInstallationsApiFactory = function (configuration, basePat
33685
34024
  return localVarFp.importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options).then((request) => request(axios, basePath));
33686
34025
  },
33687
34026
  /**
33688
- * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
34027
+ * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_start-setup`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_start-setup` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
33689
34028
  * @summary Install WordPress
33690
34029
  * @param {string} username
33691
34030
  * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
@@ -33812,7 +34151,7 @@ export class WordPressInstallationsApi extends BaseAPI {
33812
34151
  return WordPressInstallationsApiFp(this.configuration).importWordPressWebsiteV1(username, domain, wordPressV1InstallationsImportWordPressRequest, options).then((request) => request(this.axios, this.basePath));
33813
34152
  }
33814
34153
  /**
33815
- * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/websites and poll GET /api/hosting/v1/websites until it appears. Call GET /api/hosting/v1/wordpress/installations filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
34154
+ * Install WordPress on an existing website. The website must already exist before calling this endpoint. To create a new website first, use POST /api/hosting/v1/orders/{order_id}/onboardings (`hosting_websites_start-setup`) and poll GET /api/hosting/v1/onboardings (`hosting_websites_list-setups`) with the `domain` filter until its `status` is `completed`. Send `type: headless` to turn a headless website (for example one created by `hosting_websites_start-setup` with `type: headless_empty`) into a headless WordPress website: WordPress is installed into the `cms` directory with the Hostinger headless MU plugin and the website is marked as a headless WordPress website. `directory` is not allowed with it. The target website must already be headless: the headless install rewrites the root `.htaccess`, so on any other website the request is rejected with 422. Call GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain before proceeding to check whether WordPress is already installed on the target domain/path. If WordPress already exists and `overwrite` is false (the default), the async job will fail. This operation is asynchronous: a successful response only means the install job has been queued, not that WordPress is ready. Installation typically takes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations (`wordpress_installations_list`) filtered by username and domain to track progress. When the installation appears in that list, WordPress is ready. Returns 422 when the account already uses all the databases its plan allows, unless `database.name` is an existing database on the account.
33816
34155
  * @summary Install WordPress
33817
34156
  * @param {string} username
33818
34157
  * @param {WordPressV1InstallationsInstallWordPressRequest} wordPressV1InstallationsInstallWordPressRequest
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.1.0
4
+ * API Version: 2.1.2
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.1.0
6
+ * API Version: 2.1.2
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.1.0
4
+ * API Version: 2.1.2
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.1.0
6
+ * API Version: 2.1.2
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.1.0
4
+ * API Version: 2.1.2
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api