hostinger-api-sdk 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +2 -2
  2. package/api.ts +679 -158
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +366 -114
  7. package/dist/api.js +500 -5
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +366 -114
  15. package/dist/esm/api.js +492 -1
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/HostingCacheApi.md +295 -0
  27. package/docs/HostingNodeJSApi.md +57 -0
  28. package/docs/VPSActionsApi.md +2 -2
  29. package/docs/VPSBackupsApi.md +2 -2
  30. package/docs/VPSFirewallApi.md +2 -2
  31. package/docs/VPSPostInstallScriptsApi.md +2 -2
  32. package/docs/VPSPublicKeysApi.md +2 -2
  33. package/docs/{VPSGetActionsV1200Response.md → VPSV1ActionListResponse.md} +3 -3
  34. package/docs/{VPSGetBackupsV1200Response.md → VPSV1BackupListResponse.md} +3 -3
  35. package/docs/{VPSGetFirewallListV1200Response.md → VPSV1FirewallListResponse.md} +3 -3
  36. package/docs/{VPSGetPostInstallScriptsV1200Response.md → VPSV1PostInstallScriptListResponse.md} +3 -3
  37. package/docs/{VPSGetPublicKeysV1200Response.md → VPSV1PublicKeyListResponse.md} +3 -3
  38. package/docs/VPSVirtualMachineApi.md +2 -2
  39. package/index.ts +1 -1
  40. package/package.json +1 -1
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.3.0
4
+ * API Version: 1.5.0
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
@@ -4099,101 +4099,6 @@ export interface ReachV1ProfilesProfileResourceProfilesInner {
4099
4099
  */
4100
4100
  'updated_at': string;
4101
4101
  }
4102
- /**
4103
- *
4104
- * @export
4105
- * @interface VPSGetActionsV1200Response
4106
- */
4107
- export interface VPSGetActionsV1200Response {
4108
- /**
4109
- * Array of [`VPS.V1.Action.ActionResource`](#model/vpsv1actionactionresource)
4110
- * @type {Array<VPSV1ActionActionResource>}
4111
- * @memberof VPSGetActionsV1200Response
4112
- */
4113
- 'data': Array<VPSV1ActionActionResource>;
4114
- /**
4115
- *
4116
- * @type {CommonSchemaPaginationMetaSchema}
4117
- * @memberof VPSGetActionsV1200Response
4118
- */
4119
- 'meta': CommonSchemaPaginationMetaSchema;
4120
- }
4121
- /**
4122
- *
4123
- * @export
4124
- * @interface VPSGetBackupsV1200Response
4125
- */
4126
- export interface VPSGetBackupsV1200Response {
4127
- /**
4128
- * Array of [`VPS.V1.Backup.BackupResource`](#model/vpsv1backupbackupresource)
4129
- * @type {Array<VPSV1BackupBackupResource>}
4130
- * @memberof VPSGetBackupsV1200Response
4131
- */
4132
- 'data': Array<VPSV1BackupBackupResource>;
4133
- /**
4134
- *
4135
- * @type {CommonSchemaPaginationMetaSchema}
4136
- * @memberof VPSGetBackupsV1200Response
4137
- */
4138
- 'meta': CommonSchemaPaginationMetaSchema;
4139
- }
4140
- /**
4141
- *
4142
- * @export
4143
- * @interface VPSGetFirewallListV1200Response
4144
- */
4145
- export interface VPSGetFirewallListV1200Response {
4146
- /**
4147
- * Array of [`VPS.V1.Firewall.FirewallResource`](#model/vpsv1firewallfirewallresource)
4148
- * @type {Array<VPSV1FirewallFirewallResource>}
4149
- * @memberof VPSGetFirewallListV1200Response
4150
- */
4151
- 'data': Array<VPSV1FirewallFirewallResource>;
4152
- /**
4153
- *
4154
- * @type {CommonSchemaPaginationMetaSchema}
4155
- * @memberof VPSGetFirewallListV1200Response
4156
- */
4157
- 'meta': CommonSchemaPaginationMetaSchema;
4158
- }
4159
- /**
4160
- *
4161
- * @export
4162
- * @interface VPSGetPostInstallScriptsV1200Response
4163
- */
4164
- export interface VPSGetPostInstallScriptsV1200Response {
4165
- /**
4166
- * Array of [`VPS.V1.PostInstallScript.PostInstallScriptResource`](#model/vpsv1postinstallscriptpostinstallscriptresource)
4167
- * @type {Array<VPSV1PostInstallScriptPostInstallScriptResource>}
4168
- * @memberof VPSGetPostInstallScriptsV1200Response
4169
- */
4170
- 'data': Array<VPSV1PostInstallScriptPostInstallScriptResource>;
4171
- /**
4172
- *
4173
- * @type {CommonSchemaPaginationMetaSchema}
4174
- * @memberof VPSGetPostInstallScriptsV1200Response
4175
- */
4176
- 'meta': CommonSchemaPaginationMetaSchema;
4177
- }
4178
- /**
4179
- *
4180
- * @export
4181
- * @interface VPSGetPublicKeysV1200Response
4182
- */
4183
- export interface VPSGetPublicKeysV1200Response {
4184
- /**
4185
- * Array of [`VPS.V1.PublicKey.PublicKeyResource`](#model/vpsv1publickeypublickeyresource)
4186
- * @type {Array<VPSV1PublicKeyPublicKeyResource>}
4187
- * @memberof VPSGetPublicKeysV1200Response
4188
- */
4189
- 'data': Array<VPSV1PublicKeyPublicKeyResource>;
4190
- /**
4191
- *
4192
- * @type {CommonSchemaPaginationMetaSchema}
4193
- * @memberof VPSGetPublicKeysV1200Response
4194
- */
4195
- 'meta': CommonSchemaPaginationMetaSchema;
4196
- }
4197
4102
  /**
4198
4103
  *
4199
4104
  * @export
@@ -4239,6 +4144,25 @@ export declare const VPSV1ActionActionResourceStateEnum: {
4239
4144
  readonly Created: "created";
4240
4145
  };
4241
4146
  export type VPSV1ActionActionResourceStateEnum = typeof VPSV1ActionActionResourceStateEnum[keyof typeof VPSV1ActionActionResourceStateEnum];
4147
+ /**
4148
+ *
4149
+ * @export
4150
+ * @interface VPSV1ActionListResponse
4151
+ */
4152
+ export interface VPSV1ActionListResponse {
4153
+ /**
4154
+ * Array of [`VPS.V1.Action.ActionResource`](#model/vpsv1actionactionresource)
4155
+ * @type {Array<VPSV1ActionActionResource>}
4156
+ * @memberof VPSV1ActionListResponse
4157
+ */
4158
+ 'data': Array<VPSV1ActionActionResource>;
4159
+ /**
4160
+ *
4161
+ * @type {CommonSchemaPaginationMetaSchema}
4162
+ * @memberof VPSV1ActionListResponse
4163
+ */
4164
+ 'meta': CommonSchemaPaginationMetaSchema;
4165
+ }
4242
4166
  /**
4243
4167
  *
4244
4168
  * @export
@@ -4276,6 +4200,25 @@ export interface VPSV1BackupBackupResource {
4276
4200
  */
4277
4201
  'created_at': string;
4278
4202
  }
4203
+ /**
4204
+ *
4205
+ * @export
4206
+ * @interface VPSV1BackupListResponse
4207
+ */
4208
+ export interface VPSV1BackupListResponse {
4209
+ /**
4210
+ * Array of [`VPS.V1.Backup.BackupResource`](#model/vpsv1backupbackupresource)
4211
+ * @type {Array<VPSV1BackupBackupResource>}
4212
+ * @memberof VPSV1BackupListResponse
4213
+ */
4214
+ 'data': Array<VPSV1BackupBackupResource>;
4215
+ /**
4216
+ *
4217
+ * @type {CommonSchemaPaginationMetaSchema}
4218
+ * @memberof VPSV1BackupListResponse
4219
+ */
4220
+ 'meta': CommonSchemaPaginationMetaSchema;
4221
+ }
4279
4222
  /**
4280
4223
  *
4281
4224
  * @export
@@ -4716,6 +4659,25 @@ export declare const VPSV1FirewallFirewallRuleResourceProtocolEnum: {
4716
4659
  readonly PostgreSql: "PostgreSQL";
4717
4660
  };
4718
4661
  export type VPSV1FirewallFirewallRuleResourceProtocolEnum = typeof VPSV1FirewallFirewallRuleResourceProtocolEnum[keyof typeof VPSV1FirewallFirewallRuleResourceProtocolEnum];
4662
+ /**
4663
+ *
4664
+ * @export
4665
+ * @interface VPSV1FirewallListResponse
4666
+ */
4667
+ export interface VPSV1FirewallListResponse {
4668
+ /**
4669
+ * Array of [`VPS.V1.Firewall.FirewallResource`](#model/vpsv1firewallfirewallresource)
4670
+ * @type {Array<VPSV1FirewallFirewallResource>}
4671
+ * @memberof VPSV1FirewallListResponse
4672
+ */
4673
+ 'data': Array<VPSV1FirewallFirewallResource>;
4674
+ /**
4675
+ *
4676
+ * @type {CommonSchemaPaginationMetaSchema}
4677
+ * @memberof VPSV1FirewallListResponse
4678
+ */
4679
+ 'meta': CommonSchemaPaginationMetaSchema;
4680
+ }
4719
4681
  /**
4720
4682
  *
4721
4683
  * @export
@@ -4911,6 +4873,25 @@ export interface VPSV1MetricsMetricsResource {
4911
4873
  */
4912
4874
  'usage': object;
4913
4875
  }
4876
+ /**
4877
+ *
4878
+ * @export
4879
+ * @interface VPSV1PostInstallScriptListResponse
4880
+ */
4881
+ export interface VPSV1PostInstallScriptListResponse {
4882
+ /**
4883
+ * Array of [`VPS.V1.PostInstallScript.PostInstallScriptResource`](#model/vpsv1postinstallscriptpostinstallscriptresource)
4884
+ * @type {Array<VPSV1PostInstallScriptPostInstallScriptResource>}
4885
+ * @memberof VPSV1PostInstallScriptListResponse
4886
+ */
4887
+ 'data': Array<VPSV1PostInstallScriptPostInstallScriptResource>;
4888
+ /**
4889
+ *
4890
+ * @type {CommonSchemaPaginationMetaSchema}
4891
+ * @memberof VPSV1PostInstallScriptListResponse
4892
+ */
4893
+ 'meta': CommonSchemaPaginationMetaSchema;
4894
+ }
4914
4895
  /**
4915
4896
  *
4916
4897
  * @export
@@ -4980,6 +4961,25 @@ export interface VPSV1PublicKeyAttachRequest {
4980
4961
  */
4981
4962
  'ids': Array<number>;
4982
4963
  }
4964
+ /**
4965
+ *
4966
+ * @export
4967
+ * @interface VPSV1PublicKeyListResponse
4968
+ */
4969
+ export interface VPSV1PublicKeyListResponse {
4970
+ /**
4971
+ * Array of [`VPS.V1.PublicKey.PublicKeyResource`](#model/vpsv1publickeypublickeyresource)
4972
+ * @type {Array<VPSV1PublicKeyPublicKeyResource>}
4973
+ * @memberof VPSV1PublicKeyListResponse
4974
+ */
4975
+ 'data': Array<VPSV1PublicKeyPublicKeyResource>;
4976
+ /**
4977
+ *
4978
+ * @type {CommonSchemaPaginationMetaSchema}
4979
+ * @memberof VPSV1PublicKeyListResponse
4980
+ */
4981
+ 'meta': CommonSchemaPaginationMetaSchema;
4982
+ }
4983
4983
  /**
4984
4984
  *
4985
4985
  * @export
@@ -8632,6 +8632,221 @@ export declare class HorizonsWebsitesApi extends BaseAPI {
8632
8632
  */
8633
8633
  getWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HorizonsV1WebsitesWebsiteUrlResource, any, {}>>;
8634
8634
  }
8635
+ /**
8636
+ * HostingCacheApi - axios parameter creator
8637
+ * @export
8638
+ */
8639
+ export declare const HostingCacheApiAxiosParamCreator: (configuration?: Configuration) => {
8640
+ /**
8641
+ * 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.
8642
+ * @summary Clear website cache
8643
+ * @param {string} username
8644
+ * @param {string} domain Domain name
8645
+ * @param {string} [directory] Directory of the website installation to clear, relative to the website root. Defaults to the website root.
8646
+ * @param {*} [options] Override http request option.
8647
+ * @throws {RequiredError}
8648
+ */
8649
+ clearWebsiteCacheV1: (username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8650
+ /**
8651
+ * Turns off development (cacheless) mode and returns the website to normal caching. Use it after finishing development work to restore the performance benefits of caching.
8652
+ * @summary Disable cacheless mode
8653
+ * @param {string} username
8654
+ * @param {string} domain Domain name
8655
+ * @param {*} [options] Override http request option.
8656
+ * @throws {RequiredError}
8657
+ */
8658
+ disableCachelessModeV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8659
+ /**
8660
+ * Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
8661
+ * @summary Disable website cache
8662
+ * @param {string} username
8663
+ * @param {string} domain Domain name
8664
+ * @param {*} [options] Override http request option.
8665
+ * @throws {RequiredError}
8666
+ */
8667
+ disableWebsiteCacheV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8668
+ /**
8669
+ * Enables development (cacheless) mode where 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 cacheless mode afterwards to restore normal caching.
8670
+ * @summary Enable cacheless mode
8671
+ * @param {string} username
8672
+ * @param {string} domain Domain name
8673
+ * @param {*} [options] Override http request option.
8674
+ * @throws {RequiredError}
8675
+ */
8676
+ enableCachelessModeV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8677
+ /**
8678
+ * Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
8679
+ * @summary Enable website cache
8680
+ * @param {string} username
8681
+ * @param {string} domain Domain name
8682
+ * @param {*} [options] Override http request option.
8683
+ * @throws {RequiredError}
8684
+ */
8685
+ enableWebsiteCacheV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
8686
+ };
8687
+ /**
8688
+ * HostingCacheApi - functional programming interface
8689
+ * @export
8690
+ */
8691
+ export declare const HostingCacheApiFp: (configuration?: Configuration) => {
8692
+ /**
8693
+ * 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.
8694
+ * @summary Clear website cache
8695
+ * @param {string} username
8696
+ * @param {string} domain Domain name
8697
+ * @param {string} [directory] Directory of the website installation to clear, relative to the website root. Defaults to the website root.
8698
+ * @param {*} [options] Override http request option.
8699
+ * @throws {RequiredError}
8700
+ */
8701
+ clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
8702
+ /**
8703
+ * Turns off development (cacheless) mode and returns the website to normal caching. Use it after finishing development work to restore the performance benefits of caching.
8704
+ * @summary Disable cacheless mode
8705
+ * @param {string} username
8706
+ * @param {string} domain Domain name
8707
+ * @param {*} [options] Override http request option.
8708
+ * @throws {RequiredError}
8709
+ */
8710
+ disableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
8711
+ /**
8712
+ * Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
8713
+ * @summary Disable website cache
8714
+ * @param {string} username
8715
+ * @param {string} domain Domain name
8716
+ * @param {*} [options] Override http request option.
8717
+ * @throws {RequiredError}
8718
+ */
8719
+ disableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
8720
+ /**
8721
+ * Enables development (cacheless) mode where 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 cacheless mode afterwards to restore normal caching.
8722
+ * @summary Enable cacheless mode
8723
+ * @param {string} username
8724
+ * @param {string} domain Domain name
8725
+ * @param {*} [options] Override http request option.
8726
+ * @throws {RequiredError}
8727
+ */
8728
+ enableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
8729
+ /**
8730
+ * Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
8731
+ * @summary Enable website cache
8732
+ * @param {string} username
8733
+ * @param {string} domain Domain name
8734
+ * @param {*} [options] Override http request option.
8735
+ * @throws {RequiredError}
8736
+ */
8737
+ enableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
8738
+ };
8739
+ /**
8740
+ * HostingCacheApi - factory interface
8741
+ * @export
8742
+ */
8743
+ export declare const HostingCacheApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
8744
+ /**
8745
+ * 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.
8746
+ * @summary Clear website cache
8747
+ * @param {string} username
8748
+ * @param {string} domain Domain name
8749
+ * @param {string} [directory] Directory of the website installation to clear, relative to the website root. Defaults to the website root.
8750
+ * @param {*} [options] Override http request option.
8751
+ * @throws {RequiredError}
8752
+ */
8753
+ clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
8754
+ /**
8755
+ * Turns off development (cacheless) mode and returns the website to normal caching. Use it after finishing development work to restore the performance benefits of caching.
8756
+ * @summary Disable cacheless mode
8757
+ * @param {string} username
8758
+ * @param {string} domain Domain name
8759
+ * @param {*} [options] Override http request option.
8760
+ * @throws {RequiredError}
8761
+ */
8762
+ disableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
8763
+ /**
8764
+ * Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
8765
+ * @summary Disable website cache
8766
+ * @param {string} username
8767
+ * @param {string} domain Domain name
8768
+ * @param {*} [options] Override http request option.
8769
+ * @throws {RequiredError}
8770
+ */
8771
+ disableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
8772
+ /**
8773
+ * Enables development (cacheless) mode where 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 cacheless mode afterwards to restore normal caching.
8774
+ * @summary Enable cacheless mode
8775
+ * @param {string} username
8776
+ * @param {string} domain Domain name
8777
+ * @param {*} [options] Override http request option.
8778
+ * @throws {RequiredError}
8779
+ */
8780
+ enableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
8781
+ /**
8782
+ * Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
8783
+ * @summary Enable website cache
8784
+ * @param {string} username
8785
+ * @param {string} domain Domain name
8786
+ * @param {*} [options] Override http request option.
8787
+ * @throws {RequiredError}
8788
+ */
8789
+ enableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
8790
+ };
8791
+ /**
8792
+ * HostingCacheApi - object-oriented interface
8793
+ * @export
8794
+ * @class HostingCacheApi
8795
+ * @extends {BaseAPI}
8796
+ */
8797
+ export declare class HostingCacheApi extends BaseAPI {
8798
+ /**
8799
+ * 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.
8800
+ * @summary Clear website cache
8801
+ * @param {string} username
8802
+ * @param {string} domain Domain name
8803
+ * @param {string} [directory] Directory of the website installation to clear, relative to the website root. Defaults to the website root.
8804
+ * @param {*} [options] Override http request option.
8805
+ * @throws {RequiredError}
8806
+ * @memberof HostingCacheApi
8807
+ */
8808
+ clearWebsiteCacheV1(username: string, domain: string, directory?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
8809
+ /**
8810
+ * Turns off development (cacheless) mode and returns the website to normal caching. Use it after finishing development work to restore the performance benefits of caching.
8811
+ * @summary Disable cacheless mode
8812
+ * @param {string} username
8813
+ * @param {string} domain Domain name
8814
+ * @param {*} [options] Override http request option.
8815
+ * @throws {RequiredError}
8816
+ * @memberof HostingCacheApi
8817
+ */
8818
+ disableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
8819
+ /**
8820
+ * Turns off server-side caching for the website until it is enabled again. May impact performance. Use it when experiencing cache-related issues; to temporarily bypass caching while developing or debugging, prefer enabling cacheless mode instead. Does nothing if caching is already disabled.
8821
+ * @summary Disable website cache
8822
+ * @param {string} username
8823
+ * @param {string} domain Domain name
8824
+ * @param {*} [options] Override http request option.
8825
+ * @throws {RequiredError}
8826
+ * @memberof HostingCacheApi
8827
+ */
8828
+ disableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
8829
+ /**
8830
+ * Enables development (cacheless) mode where 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 cacheless mode afterwards to restore normal caching.
8831
+ * @summary Enable cacheless mode
8832
+ * @param {string} username
8833
+ * @param {string} domain Domain name
8834
+ * @param {*} [options] Override http request option.
8835
+ * @throws {RequiredError}
8836
+ * @memberof HostingCacheApi
8837
+ */
8838
+ enableCachelessModeV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
8839
+ /**
8840
+ * Turns on server-side caching for the website for better performance. Use it for faster page loads, reduced server load, or improved user experience. Recommended for production websites. Does nothing if caching is already enabled.
8841
+ * @summary Enable website cache
8842
+ * @param {string} username
8843
+ * @param {string} domain Domain name
8844
+ * @param {*} [options] Override http request option.
8845
+ * @throws {RequiredError}
8846
+ * @memberof HostingCacheApi
8847
+ */
8848
+ enableWebsiteCacheV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
8849
+ }
8635
8850
  /**
8636
8851
  * HostingCronJobsApi - axios parameter creator
8637
8852
  * @export
@@ -9612,6 +9827,15 @@ export declare const HostingNodeJSApiAxiosParamCreator: (configuration?: Configu
9612
9827
  * @throws {RequiredError}
9613
9828
  */
9614
9829
  listNodeJSBuildsV1: (username: string, domain: string, page?: number, perPage?: number, states?: Array<ListNodeJSBuildsV1StatesEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9830
+ /**
9831
+ * Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
9832
+ * @summary Restart Node.js application
9833
+ * @param {string} username
9834
+ * @param {string} domain Domain name
9835
+ * @param {*} [options] Override http request option.
9836
+ * @throws {RequiredError}
9837
+ */
9838
+ restartNodeJsApplicationV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9615
9839
  };
9616
9840
  /**
9617
9841
  * HostingNodeJSApi - functional programming interface
@@ -9651,6 +9875,15 @@ export declare const HostingNodeJSApiFp: (configuration?: Configuration) => {
9651
9875
  * @throws {RequiredError}
9652
9876
  */
9653
9877
  listNodeJSBuildsV1(username: string, domain: string, page?: number, perPage?: number, states?: Array<ListNodeJSBuildsV1StatesEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingListNodeJSBuildsV1200Response>>;
9878
+ /**
9879
+ * Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
9880
+ * @summary Restart Node.js application
9881
+ * @param {string} username
9882
+ * @param {string} domain Domain name
9883
+ * @param {*} [options] Override http request option.
9884
+ * @throws {RequiredError}
9885
+ */
9886
+ restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
9654
9887
  };
9655
9888
  /**
9656
9889
  * HostingNodeJSApi - factory interface
@@ -9690,6 +9923,15 @@ export declare const HostingNodeJSApiFactory: (configuration?: Configuration, ba
9690
9923
  * @throws {RequiredError}
9691
9924
  */
9692
9925
  listNodeJSBuildsV1(username: string, domain: string, page?: number, perPage?: number, states?: Array<ListNodeJSBuildsV1StatesEnum>, options?: RawAxiosRequestConfig): AxiosPromise<HostingListNodeJSBuildsV1200Response>;
9926
+ /**
9927
+ * Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
9928
+ * @summary Restart Node.js application
9929
+ * @param {string} username
9930
+ * @param {string} domain Domain name
9931
+ * @param {*} [options] Override http request option.
9932
+ * @throws {RequiredError}
9933
+ */
9934
+ restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
9693
9935
  };
9694
9936
  /**
9695
9937
  * HostingNodeJSApi - object-oriented interface
@@ -9734,6 +9976,16 @@ export declare class HostingNodeJSApi extends BaseAPI {
9734
9976
  * @memberof HostingNodeJSApi
9735
9977
  */
9736
9978
  listNodeJSBuildsV1(username: string, domain: string, page?: number, perPage?: number, states?: Array<ListNodeJSBuildsV1StatesEnum>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingListNodeJSBuildsV1200Response, any, {}>>;
9979
+ /**
9980
+ * Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
9981
+ * @summary Restart Node.js application
9982
+ * @param {string} username
9983
+ * @param {string} domain Domain name
9984
+ * @param {*} [options] Override http request option.
9985
+ * @throws {RequiredError}
9986
+ * @memberof HostingNodeJSApi
9987
+ */
9988
+ restartNodeJsApplicationV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}>>;
9737
9989
  }
9738
9990
  /**
9739
9991
  * @export
@@ -10754,7 +11006,7 @@ export declare const VPSActionsApiFp: (configuration?: Configuration) => {
10754
11006
  * @param {*} [options] Override http request option.
10755
11007
  * @throws {RequiredError}
10756
11008
  */
10757
- getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetActionsV1200Response>>;
11009
+ getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1ActionListResponse>>;
10758
11010
  };
10759
11011
  /**
10760
11012
  * VPSActionsApi - factory interface
@@ -10778,7 +11030,7 @@ export declare const VPSActionsApiFactory: (configuration?: Configuration, baseP
10778
11030
  * @param {*} [options] Override http request option.
10779
11031
  * @throws {RequiredError}
10780
11032
  */
10781
- getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetActionsV1200Response>;
11033
+ getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1ActionListResponse>;
10782
11034
  };
10783
11035
  /**
10784
11036
  * VPSActionsApi - object-oriented interface
@@ -10806,7 +11058,7 @@ export declare class VPSActionsApi extends BaseAPI {
10806
11058
  * @throws {RequiredError}
10807
11059
  * @memberof VPSActionsApi
10808
11060
  */
10809
- getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSGetActionsV1200Response, any, {}>>;
11061
+ getActionsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1ActionListResponse, any, {}>>;
10810
11062
  }
10811
11063
  /**
10812
11064
  * VPSBackupsApi - axios parameter creator
@@ -10845,7 +11097,7 @@ export declare const VPSBackupsApiFp: (configuration?: Configuration) => {
10845
11097
  * @param {*} [options] Override http request option.
10846
11098
  * @throws {RequiredError}
10847
11099
  */
10848
- getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetBackupsV1200Response>>;
11100
+ getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1BackupListResponse>>;
10849
11101
  /**
10850
11102
  * Restore a backup for a specified virtual machine. The system will then initiate the restore process, which may take some time depending on the size of the backup. **All data on the virtual machine will be overwritten with the data from the backup.** Use this endpoint to recover VPS data from backup points.
10851
11103
  * @summary Restore backup
@@ -10869,7 +11121,7 @@ export declare const VPSBackupsApiFactory: (configuration?: Configuration, baseP
10869
11121
  * @param {*} [options] Override http request option.
10870
11122
  * @throws {RequiredError}
10871
11123
  */
10872
- getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetBackupsV1200Response>;
11124
+ getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1BackupListResponse>;
10873
11125
  /**
10874
11126
  * Restore a backup for a specified virtual machine. The system will then initiate the restore process, which may take some time depending on the size of the backup. **All data on the virtual machine will be overwritten with the data from the backup.** Use this endpoint to recover VPS data from backup points.
10875
11127
  * @summary Restore backup
@@ -10896,7 +11148,7 @@ export declare class VPSBackupsApi extends BaseAPI {
10896
11148
  * @throws {RequiredError}
10897
11149
  * @memberof VPSBackupsApi
10898
11150
  */
10899
- getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSGetBackupsV1200Response, any, {}>>;
11151
+ getBackupsV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1BackupListResponse, any, {}>>;
10900
11152
  /**
10901
11153
  * Restore a backup for a specified virtual machine. The system will then initiate the restore process, which may take some time depending on the size of the backup. **All data on the virtual machine will be overwritten with the data from the backup.** Use this endpoint to recover VPS data from backup points.
10902
11154
  * @summary Restore backup
@@ -11520,7 +11772,7 @@ export declare const VPSFirewallApiFp: (configuration?: Configuration) => {
11520
11772
  * @param {*} [options] Override http request option.
11521
11773
  * @throws {RequiredError}
11522
11774
  */
11523
- getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetFirewallListV1200Response>>;
11775
+ getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1FirewallListResponse>>;
11524
11776
  /**
11525
11777
  * Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
11526
11778
  * @summary Sync firewall
@@ -11613,7 +11865,7 @@ export declare const VPSFirewallApiFactory: (configuration?: Configuration, base
11613
11865
  * @param {*} [options] Override http request option.
11614
11866
  * @throws {RequiredError}
11615
11867
  */
11616
- getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetFirewallListV1200Response>;
11868
+ getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1FirewallListResponse>;
11617
11869
  /**
11618
11870
  * Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
11619
11871
  * @summary Sync firewall
@@ -11716,7 +11968,7 @@ export declare class VPSFirewallApi extends BaseAPI {
11716
11968
  * @throws {RequiredError}
11717
11969
  * @memberof VPSFirewallApi
11718
11970
  */
11719
- getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSGetFirewallListV1200Response, any, {}>>;
11971
+ getFirewallListV1(page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1FirewallListResponse, any, {}>>;
11720
11972
  /**
11721
11973
  * Sync a firewall for a specified virtual machine. Firewall can lose sync with virtual machine if the firewall has new rules added, removed or updated. Use this endpoint to apply updated firewall rules to VPS instances.
11722
11974
  * @summary Sync firewall
@@ -12139,7 +12391,7 @@ export declare const VPSPostInstallScriptsApiFp: (configuration?: Configuration)
12139
12391
  * @param {*} [options] Override http request option.
12140
12392
  * @throws {RequiredError}
12141
12393
  */
12142
- getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetPostInstallScriptsV1200Response>>;
12394
+ getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PostInstallScriptListResponse>>;
12143
12395
  /**
12144
12396
  * Update a specific post-install script. Use this endpoint to modify existing automation scripts.
12145
12397
  * @summary Update post-install script
@@ -12186,7 +12438,7 @@ export declare const VPSPostInstallScriptsApiFactory: (configuration?: Configura
12186
12438
  * @param {*} [options] Override http request option.
12187
12439
  * @throws {RequiredError}
12188
12440
  */
12189
- getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetPostInstallScriptsV1200Response>;
12441
+ getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PostInstallScriptListResponse>;
12190
12442
  /**
12191
12443
  * Update a specific post-install script. Use this endpoint to modify existing automation scripts.
12192
12444
  * @summary Update post-install script
@@ -12239,7 +12491,7 @@ export declare class VPSPostInstallScriptsApi extends BaseAPI {
12239
12491
  * @throws {RequiredError}
12240
12492
  * @memberof VPSPostInstallScriptsApi
12241
12493
  */
12242
- getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSGetPostInstallScriptsV1200Response, any, {}>>;
12494
+ getPostInstallScriptsV1(page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1PostInstallScriptListResponse, any, {}>>;
12243
12495
  /**
12244
12496
  * Update a specific post-install script. Use this endpoint to modify existing automation scripts.
12245
12497
  * @summary Update post-install script
@@ -12327,7 +12579,7 @@ export declare const VPSPublicKeysApiFp: (configuration?: Configuration) => {
12327
12579
  * @param {*} [options] Override http request option.
12328
12580
  * @throws {RequiredError}
12329
12581
  */
12330
- getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetPublicKeysV1200Response>>;
12582
+ getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PublicKeyListResponse>>;
12331
12583
  };
12332
12584
  /**
12333
12585
  * VPSPublicKeysApi - factory interface
@@ -12366,7 +12618,7 @@ export declare const VPSPublicKeysApiFactory: (configuration?: Configuration, ba
12366
12618
  * @param {*} [options] Override http request option.
12367
12619
  * @throws {RequiredError}
12368
12620
  */
12369
- getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetPublicKeysV1200Response>;
12621
+ getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PublicKeyListResponse>;
12370
12622
  };
12371
12623
  /**
12372
12624
  * VPSPublicKeysApi - object-oriented interface
@@ -12411,7 +12663,7 @@ export declare class VPSPublicKeysApi extends BaseAPI {
12411
12663
  * @throws {RequiredError}
12412
12664
  * @memberof VPSPublicKeysApi
12413
12665
  */
12414
- getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSGetPublicKeysV1200Response, any, {}>>;
12666
+ getPublicKeysV1(page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1PublicKeyListResponse, any, {}>>;
12415
12667
  }
12416
12668
  /**
12417
12669
  * VPSRecoveryApi - axios parameter creator
@@ -12814,7 +13066,7 @@ export declare const VPSVirtualMachineApiFp: (configuration?: Configuration) =>
12814
13066
  * @param {*} [options] Override http request option.
12815
13067
  * @throws {RequiredError}
12816
13068
  */
12817
- getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSGetPublicKeysV1200Response>>;
13069
+ getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PublicKeyListResponse>>;
12818
13070
  /**
12819
13071
  * Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
12820
13072
  * @summary Get metrics
@@ -12948,7 +13200,7 @@ export declare const VPSVirtualMachineApiFactory: (configuration?: Configuration
12948
13200
  * @param {*} [options] Override http request option.
12949
13201
  * @throws {RequiredError}
12950
13202
  */
12951
- getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSGetPublicKeysV1200Response>;
13203
+ getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PublicKeyListResponse>;
12952
13204
  /**
12953
13205
  * Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
12954
13206
  * @summary Get metrics
@@ -13085,7 +13337,7 @@ export declare class VPSVirtualMachineApi extends BaseAPI {
13085
13337
  * @throws {RequiredError}
13086
13338
  * @memberof VPSVirtualMachineApi
13087
13339
  */
13088
- getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSGetPublicKeysV1200Response, any, {}>>;
13340
+ getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1PublicKeyListResponse, any, {}>>;
13089
13341
  /**
13090
13342
  * Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
13091
13343
  * @summary Get metrics