hostinger-api-sdk 2.4.1 → 2.4.3

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.4.1
6
+ * API Version: 2.4.3
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
@@ -579,6 +579,9 @@ export const HostingV1SslSslStatusResourceProviderEnum = {
579
579
  Googlessl: 'googlessl',
580
580
  Hssl: 'hssl'
581
581
  };
582
+ export const HostingV1WebsitesTriggerEventRequestEventNameEnum = {
583
+ HeadlessOnboardingToolConnected: 'headless_onboarding.tool.connected'
584
+ };
582
585
  export const HostingV1WebsitesWebsiteResourceVhostTypeEnum = {
583
586
  Main: 'main',
584
587
  Addon: 'addon',
@@ -13026,7 +13029,43 @@ export const HostingCacheApiAxiosParamCreator = function (configuration) {
13026
13029
  };
13027
13030
  }),
13028
13031
  /**
13029
- * Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching.
13032
+ * Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. 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.
13033
+ * @summary Get cache status
13034
+ * @param {string} username
13035
+ * @param {string} domain Domain name
13036
+ * @param {*} [options] Override http request option.
13037
+ * @throws {RequiredError}
13038
+ */
13039
+ getCacheStatusV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
13040
+ // verify required parameter 'username' is not null or undefined
13041
+ assertParamExists('getCacheStatusV1', 'username', username);
13042
+ // verify required parameter 'domain' is not null or undefined
13043
+ assertParamExists('getCacheStatusV1', 'domain', domain);
13044
+ const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/status`
13045
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)))
13046
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
13047
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13048
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13049
+ let baseOptions;
13050
+ if (configuration) {
13051
+ baseOptions = configuration.baseOptions;
13052
+ }
13053
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13054
+ const localVarHeaderParameter = {};
13055
+ const localVarQueryParameter = {};
13056
+ // authentication apiToken required
13057
+ // http bearer authentication required
13058
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13059
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13060
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13061
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13062
+ return {
13063
+ url: toPathString(localVarUrlObj),
13064
+ options: localVarRequestOptions,
13065
+ };
13066
+ }),
13067
+ /**
13068
+ * Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
13030
13069
  * @summary Toggle cacheless mode
13031
13070
  * @param {string} username
13032
13071
  * @param {string} domain Domain name
@@ -13067,7 +13106,7 @@ export const HostingCacheApiAxiosParamCreator = function (configuration) {
13067
13106
  };
13068
13107
  }),
13069
13108
  /**
13070
- * Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
13109
+ * Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
13071
13110
  * @summary Toggle website cache
13072
13111
  * @param {string} username
13073
13112
  * @param {string} domain Domain name
@@ -13134,7 +13173,23 @@ export const HostingCacheApiFp = function (configuration) {
13134
13173
  });
13135
13174
  },
13136
13175
  /**
13137
- * Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching.
13176
+ * Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. 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.
13177
+ * @summary Get cache status
13178
+ * @param {string} username
13179
+ * @param {string} domain Domain name
13180
+ * @param {*} [options] Override http request option.
13181
+ * @throws {RequiredError}
13182
+ */
13183
+ getCacheStatusV1(username, domain, options) {
13184
+ return __awaiter(this, void 0, void 0, function* () {
13185
+ var _a, _b;
13186
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCacheStatusV1(username, domain, options);
13187
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingCacheApi.getCacheStatusV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
13188
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13189
+ });
13190
+ },
13191
+ /**
13192
+ * Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
13138
13193
  * @summary Toggle cacheless mode
13139
13194
  * @param {string} username
13140
13195
  * @param {string} domain Domain name
@@ -13151,7 +13206,7 @@ export const HostingCacheApiFp = function (configuration) {
13151
13206
  });
13152
13207
  },
13153
13208
  /**
13154
- * Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
13209
+ * Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
13155
13210
  * @summary Toggle website cache
13156
13211
  * @param {string} username
13157
13212
  * @param {string} domain Domain name
@@ -13189,7 +13244,18 @@ export const HostingCacheApiFactory = function (configuration, basePath, axios)
13189
13244
  return localVarFp.clearWebsiteCacheV1(username, domain, directory, options).then((request) => request(axios, basePath));
13190
13245
  },
13191
13246
  /**
13192
- * Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching.
13247
+ * Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. 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.
13248
+ * @summary Get cache status
13249
+ * @param {string} username
13250
+ * @param {string} domain Domain name
13251
+ * @param {*} [options] Override http request option.
13252
+ * @throws {RequiredError}
13253
+ */
13254
+ getCacheStatusV1(username, domain, options) {
13255
+ return localVarFp.getCacheStatusV1(username, domain, options).then((request) => request(axios, basePath));
13256
+ },
13257
+ /**
13258
+ * Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
13193
13259
  * @summary Toggle cacheless mode
13194
13260
  * @param {string} username
13195
13261
  * @param {string} domain Domain name
@@ -13201,7 +13267,7 @@ export const HostingCacheApiFactory = function (configuration, basePath, axios)
13201
13267
  return localVarFp.toggleCachelessModeV1(username, domain, hostingV1CacheToggleCachelessModeRequest, options).then((request) => request(axios, basePath));
13202
13268
  },
13203
13269
  /**
13204
- * Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
13270
+ * Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
13205
13271
  * @summary Toggle website cache
13206
13272
  * @param {string} username
13207
13273
  * @param {string} domain Domain name
@@ -13235,7 +13301,19 @@ export class HostingCacheApi extends BaseAPI {
13235
13301
  return HostingCacheApiFp(this.configuration).clearWebsiteCacheV1(username, domain, directory, options).then((request) => request(this.axios, this.basePath));
13236
13302
  }
13237
13303
  /**
13238
- * Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching.
13304
+ * Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. 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.
13305
+ * @summary Get cache status
13306
+ * @param {string} username
13307
+ * @param {string} domain Domain name
13308
+ * @param {*} [options] Override http request option.
13309
+ * @throws {RequiredError}
13310
+ * @memberof HostingCacheApi
13311
+ */
13312
+ getCacheStatusV1(username, domain, options) {
13313
+ return HostingCacheApiFp(this.configuration).getCacheStatusV1(username, domain, options).then((request) => request(this.axios, this.basePath));
13314
+ }
13315
+ /**
13316
+ * Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
13239
13317
  * @summary Toggle cacheless mode
13240
13318
  * @param {string} username
13241
13319
  * @param {string} domain Domain name
@@ -13248,7 +13326,7 @@ export class HostingCacheApi extends BaseAPI {
13248
13326
  return HostingCacheApiFp(this.configuration).toggleCachelessModeV1(username, domain, hostingV1CacheToggleCachelessModeRequest, options).then((request) => request(this.axios, this.basePath));
13249
13327
  }
13250
13328
  /**
13251
- * Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
13329
+ * Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
13252
13330
  * @summary Toggle website cache
13253
13331
  * @param {string} username
13254
13332
  * @param {string} domain Domain name
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.4.1
4
+ * API Version: 2.4.3
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.4.1
6
+ * API Version: 2.4.3
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.4.1
4
+ * API Version: 2.4.3
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.4.1
6
+ * API Version: 2.4.3
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.4.1
4
+ * API Version: 2.4.3
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.4.1
6
+ * API Version: 2.4.3
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
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.4.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.4.3" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.4.1
4
+ * API Version: 2.4.3
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/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.4.1
6
+ * API Version: 2.4.3
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
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.4.1
4
+ * API Version: 2.4.3
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/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 2.4.1
7
+ * API Version: 2.4.3
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
@@ -5,6 +5,7 @@ All URIs are relative to *https://developers.hostinger.com*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**clearWebsiteCacheV1**](#clearwebsitecachev1) | **DELETE** /api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear | Clear website cache|
8
+ |[**getCacheStatusV1**](#getcachestatusv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/cache/status | Get cache status|
8
9
  |[**toggleCachelessModeV1**](#togglecachelessmodev1) | **PATCH** /api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/toggle | Toggle cacheless mode|
9
10
  |[**toggleWebsiteCacheV1**](#togglewebsitecachev1) | **PATCH** /api/hosting/v1/accounts/{username}/websites/{domain}/cache/toggle | Toggle website cache|
10
11
 
@@ -67,10 +68,66 @@ const { status, data } = await apiInstance.clearWebsiteCacheV1(
67
68
 
68
69
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
69
70
 
71
+ # **getCacheStatusV1**
72
+ > HostingV1CacheCacheStatusResource getCacheStatusV1()
73
+
74
+ Returns the caching state of the website: whether server-side caching is enabled and whether development (cacheless) mode is on. Works for the main domain, addon websites, parked domains and subdomains of the account; each reports its own settings and does not inherit them from its parent website. `is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background, so this flag can take a few minutes to follow it. 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.
75
+
76
+ ### Example
77
+
78
+ ```typescript
79
+ import {
80
+ HostingCacheApi,
81
+ Configuration
82
+ } from '@hostinger/sdk';
83
+
84
+ const configuration = new Configuration();
85
+ const apiInstance = new HostingCacheApi(configuration);
86
+
87
+ let username: string; // (default to undefined)
88
+ let domain: string; //Domain name (default to undefined)
89
+
90
+ const { status, data } = await apiInstance.getCacheStatusV1(
91
+ username,
92
+ domain
93
+ );
94
+ ```
95
+
96
+ ### Parameters
97
+
98
+ |Name | Type | Description | Notes|
99
+ |------------- | ------------- | ------------- | -------------|
100
+ | **username** | [**string**] | | defaults to undefined|
101
+ | **domain** | [**string**] | Domain name | defaults to undefined|
102
+
103
+
104
+ ### Return type
105
+
106
+ **HostingV1CacheCacheStatusResource**
107
+
108
+ ### Authorization
109
+
110
+ [apiToken](../README.md#apiToken)
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: Not defined
115
+ - **Accept**: application/json
116
+
117
+
118
+ ### HTTP response details
119
+ | Status code | Description | Response headers |
120
+ |-------------|-------------|------------------|
121
+ |**200** | Success response | - |
122
+ |**401** | Unauthenticated response | - |
123
+ |**500** | Error response | - |
124
+
125
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
126
+
70
127
  # **toggleCachelessModeV1**
71
128
  > CommonSuccessEmptyResource toggleCachelessModeV1(hostingV1CacheToggleCachelessModeRequest)
72
129
 
73
- Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching.
130
+ Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing is cached, effectively turning off all caching for the website; use it while actively developing, testing changes, debugging issues, or when real-time updates must be visible. Disable it after finishing development work to restore the performance benefits of caching. The change is applied in the background and can take a few minutes. Use `Get cache status` to check the current state.
74
131
 
75
132
  ### Example
76
133
 
@@ -131,7 +188,7 @@ const { status, data } = await apiInstance.toggleCachelessModeV1(
131
188
  # **toggleWebsiteCacheV1**
132
189
  > CommonSuccessEmptyResource toggleWebsiteCacheV1(hostingV1CacheToggleCacheRequest)
133
190
 
134
- Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state.
191
+ Turns server-side caching for the website on or off, based on the enabled flag. Enable it for faster page loads, reduced server load, and improved user experience; recommended for production websites. Disabling may impact performance; to temporarily bypass caching while developing or debugging, prefer toggling cacheless mode instead. Does nothing if caching is already in the requested state. Use `Get cache status` to check the current state.
135
192
 
136
193
  ### Example
137
194
 
@@ -0,0 +1,22 @@
1
+ # HostingV1CacheCacheStatusResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **is_enabled** | **boolean** | Whether server-side caching is enabled for the website | [default to undefined]
9
+ **is_cacheless_mode_enabled** | **boolean** | Whether development (cacheless) mode is on. While it is on, caching is bypassed even when `is_enabled` is true. Can take a few minutes to follow a cacheless mode toggle. | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { HostingV1CacheCacheStatusResource } from '@hostinger/sdk';
15
+
16
+ const instance: HostingV1CacheCacheStatusResource = {
17
+ is_enabled,
18
+ is_cacheless_mode_enabled,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # HostingV1WebsitesTriggerEventRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **event** | [**HostingV1WebsitesTriggerEventRequestEvent**](HostingV1WebsitesTriggerEventRequestEvent.md) | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { HostingV1WebsitesTriggerEventRequest } from '@hostinger/sdk';
14
+
15
+ const instance: HostingV1WebsitesTriggerEventRequest = {
16
+ event,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,23 @@
1
+ # HostingV1WebsitesTriggerEventRequestEvent
2
+
3
+ Event to trigger; `name` decides which `params` it takes
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | Name of the event: - `headless_onboarding.tool.connected`: an AI coding tool started building this website with the Hostinger headless skill. Takes `params.tool`. | [default to undefined]
10
+ **params** | [**HostingV1WebsitesTriggerEventRequestEventParams**](HostingV1WebsitesTriggerEventRequestEventParams.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { HostingV1WebsitesTriggerEventRequestEvent } from '@hostinger/sdk';
16
+
17
+ const instance: HostingV1WebsitesTriggerEventRequestEvent = {
18
+ name,
19
+ params,
20
+ };
21
+ ```
22
+
23
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,21 @@
1
+ # HostingV1WebsitesTriggerEventRequestEventParams
2
+
3
+ Fields of the event
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **tool** | **string** | Lowercase slug of the AI coding tool. Known slugs: `claude` (Claude Code), `cursor` (Cursor), `codex` (Codex), `vscode` (VS Code), `antigravity` (Antigravity) and `devin` (Devin). For any other tool, send its own slug. | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { HostingV1WebsitesTriggerEventRequestEventParams } from '@hostinger/sdk';
15
+
16
+ const instance: HostingV1WebsitesTriggerEventRequestEventParams = {
17
+ tool,
18
+ };
19
+ ```
20
+
21
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.4.1
6
+ * API Version: 2.4.3
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {