hostinger-api-sdk 1.22.1 → 1.23.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.
package/dist/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.23.0
7
+ * API Version: 1.24.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.23.0
4
+ * API Version: 1.24.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
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.23.0
7
+ * API Version: 1.24.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -16,7 +16,7 @@ class Configuration {
16
16
  var _a;
17
17
  this.accessToken = param.accessToken;
18
18
  this.basePath = param.basePath;
19
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.22.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.23.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.23.0
4
+ * API Version: 1.24.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
@@ -13035,6 +13035,22 @@ export declare const DomainsWHOISApiAxiosParamCreator: (configuration?: Configur
13035
13035
  * @throws {RequiredError}
13036
13036
  */
13037
13037
  getWHOISProfileV1: (whoisId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13038
+ /**
13039
+ * Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
13040
+ * @summary Set WHOIS profile as default
13041
+ * @param {number} whoisId WHOIS ID
13042
+ * @param {*} [options] Override http request option.
13043
+ * @throws {RequiredError}
13044
+ */
13045
+ setWHOISProfileAsDefaultV1: (whoisId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13046
+ /**
13047
+ * Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
13048
+ * @summary Unset default WHOIS profile
13049
+ * @param {number} whoisId WHOIS ID
13050
+ * @param {*} [options] Override http request option.
13051
+ * @throws {RequiredError}
13052
+ */
13053
+ unsetDefaultWHOISProfileV1: (whoisId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13038
13054
  };
13039
13055
  /**
13040
13056
  * DomainsWHOISApi - functional programming interface
@@ -13081,6 +13097,22 @@ export declare const DomainsWHOISApiFp: (configuration?: Configuration) => {
13081
13097
  * @throws {RequiredError}
13082
13098
  */
13083
13099
  getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1WHOISProfileResource>>;
13100
+ /**
13101
+ * Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
13102
+ * @summary Set WHOIS profile as default
13103
+ * @param {number} whoisId WHOIS ID
13104
+ * @param {*} [options] Override http request option.
13105
+ * @throws {RequiredError}
13106
+ */
13107
+ setWHOISProfileAsDefaultV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
13108
+ /**
13109
+ * Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
13110
+ * @summary Unset default WHOIS profile
13111
+ * @param {number} whoisId WHOIS ID
13112
+ * @param {*} [options] Override http request option.
13113
+ * @throws {RequiredError}
13114
+ */
13115
+ unsetDefaultWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
13084
13116
  };
13085
13117
  /**
13086
13118
  * DomainsWHOISApi - factory interface
@@ -13127,6 +13159,22 @@ export declare const DomainsWHOISApiFactory: (configuration?: Configuration, bas
13127
13159
  * @throws {RequiredError}
13128
13160
  */
13129
13161
  getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1WHOISProfileResource>;
13162
+ /**
13163
+ * Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
13164
+ * @summary Set WHOIS profile as default
13165
+ * @param {number} whoisId WHOIS ID
13166
+ * @param {*} [options] Override http request option.
13167
+ * @throws {RequiredError}
13168
+ */
13169
+ setWHOISProfileAsDefaultV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
13170
+ /**
13171
+ * Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
13172
+ * @summary Unset default WHOIS profile
13173
+ * @param {number} whoisId WHOIS ID
13174
+ * @param {*} [options] Override http request option.
13175
+ * @throws {RequiredError}
13176
+ */
13177
+ unsetDefaultWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
13130
13178
  };
13131
13179
  /**
13132
13180
  * DomainsWHOISApi - object-oriented interface
@@ -13180,6 +13228,24 @@ export declare class DomainsWHOISApi extends BaseAPI {
13180
13228
  * @memberof DomainsWHOISApi
13181
13229
  */
13182
13230
  getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DomainsV1WHOISProfileResource, any, {}, any>>;
13231
+ /**
13232
+ * Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
13233
+ * @summary Set WHOIS profile as default
13234
+ * @param {number} whoisId WHOIS ID
13235
+ * @param {*} [options] Override http request option.
13236
+ * @throws {RequiredError}
13237
+ * @memberof DomainsWHOISApi
13238
+ */
13239
+ setWHOISProfileAsDefaultV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
13240
+ /**
13241
+ * Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
13242
+ * @summary Unset default WHOIS profile
13243
+ * @param {number} whoisId WHOIS ID
13244
+ * @param {*} [options] Override http request option.
13245
+ * @throws {RequiredError}
13246
+ * @memberof DomainsWHOISApi
13247
+ */
13248
+ unsetDefaultWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
13183
13249
  }
13184
13250
  /**
13185
13251
  * EcommerceMiscellaneousApi - axios parameter creator
@@ -20212,7 +20278,7 @@ export declare const VPSVirtualMachineApiAxiosParamCreator: (configuration?: Con
20212
20278
  */
20213
20279
  startVirtualMachineV1: (virtualMachineId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
20214
20280
  /**
20215
- * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
20281
+ * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
20216
20282
  * @summary Stop virtual machine
20217
20283
  * @param {number} virtualMachineId Virtual Machine ID
20218
20284
  * @param {*} [options] Override http request option.
@@ -20346,7 +20412,7 @@ export declare const VPSVirtualMachineApiFp: (configuration?: Configuration) =>
20346
20412
  */
20347
20413
  startVirtualMachineV1(virtualMachineId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1ActionActionResource>>;
20348
20414
  /**
20349
- * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
20415
+ * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
20350
20416
  * @summary Stop virtual machine
20351
20417
  * @param {number} virtualMachineId Virtual Machine ID
20352
20418
  * @param {*} [options] Override http request option.
@@ -20480,7 +20546,7 @@ export declare const VPSVirtualMachineApiFactory: (configuration?: Configuration
20480
20546
  */
20481
20547
  startVirtualMachineV1(virtualMachineId: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1ActionActionResource>;
20482
20548
  /**
20483
- * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
20549
+ * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
20484
20550
  * @summary Stop virtual machine
20485
20551
  * @param {number} virtualMachineId Virtual Machine ID
20486
20552
  * @param {*} [options] Override http request option.
@@ -20630,7 +20696,7 @@ export declare class VPSVirtualMachineApi extends BaseAPI {
20630
20696
  */
20631
20697
  startVirtualMachineV1(virtualMachineId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VPSV1ActionActionResource, any, {}, any>>;
20632
20698
  /**
20633
- * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
20699
+ * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
20634
20700
  * @summary Stop virtual machine
20635
20701
  * @param {number} virtualMachineId Virtual Machine ID
20636
20702
  * @param {*} [options] Override http request option.
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.23.0
6
+ * API Version: 1.24.0
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
@@ -5743,6 +5743,70 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration) {
5743
5743
  options: localVarRequestOptions,
5744
5744
  };
5745
5745
  }),
5746
+ /**
5747
+ * Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
5748
+ * @summary Set WHOIS profile as default
5749
+ * @param {number} whoisId WHOIS ID
5750
+ * @param {*} [options] Override http request option.
5751
+ * @throws {RequiredError}
5752
+ */
5753
+ setWHOISProfileAsDefaultV1: (whoisId_1, ...args_1) => __awaiter(this, [whoisId_1, ...args_1], void 0, function* (whoisId, options = {}) {
5754
+ // verify required parameter 'whoisId' is not null or undefined
5755
+ assertParamExists('setWHOISProfileAsDefaultV1', 'whoisId', whoisId);
5756
+ const localVarPath = `/api/domains/v1/whois/default/{whoisId}`
5757
+ .replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
5758
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5759
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5760
+ let baseOptions;
5761
+ if (configuration) {
5762
+ baseOptions = configuration.baseOptions;
5763
+ }
5764
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
5765
+ const localVarHeaderParameter = {};
5766
+ const localVarQueryParameter = {};
5767
+ // authentication apiToken required
5768
+ // http bearer authentication required
5769
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5770
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5771
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5772
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5773
+ return {
5774
+ url: toPathString(localVarUrlObj),
5775
+ options: localVarRequestOptions,
5776
+ };
5777
+ }),
5778
+ /**
5779
+ * Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
5780
+ * @summary Unset default WHOIS profile
5781
+ * @param {number} whoisId WHOIS ID
5782
+ * @param {*} [options] Override http request option.
5783
+ * @throws {RequiredError}
5784
+ */
5785
+ unsetDefaultWHOISProfileV1: (whoisId_1, ...args_1) => __awaiter(this, [whoisId_1, ...args_1], void 0, function* (whoisId, options = {}) {
5786
+ // verify required parameter 'whoisId' is not null or undefined
5787
+ assertParamExists('unsetDefaultWHOISProfileV1', 'whoisId', whoisId);
5788
+ const localVarPath = `/api/domains/v1/whois/default/{whoisId}`
5789
+ .replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
5790
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5791
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5792
+ let baseOptions;
5793
+ if (configuration) {
5794
+ baseOptions = configuration.baseOptions;
5795
+ }
5796
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5797
+ const localVarHeaderParameter = {};
5798
+ const localVarQueryParameter = {};
5799
+ // authentication apiToken required
5800
+ // http bearer authentication required
5801
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5802
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5803
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5804
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5805
+ return {
5806
+ url: toPathString(localVarUrlObj),
5807
+ options: localVarRequestOptions,
5808
+ };
5809
+ }),
5746
5810
  };
5747
5811
  };
5748
5812
  /**
@@ -5827,6 +5891,36 @@ export const DomainsWHOISApiFp = function (configuration) {
5827
5891
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5828
5892
  });
5829
5893
  },
5894
+ /**
5895
+ * Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
5896
+ * @summary Set WHOIS profile as default
5897
+ * @param {number} whoisId WHOIS ID
5898
+ * @param {*} [options] Override http request option.
5899
+ * @throws {RequiredError}
5900
+ */
5901
+ setWHOISProfileAsDefaultV1(whoisId, options) {
5902
+ return __awaiter(this, void 0, void 0, function* () {
5903
+ var _a, _b;
5904
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setWHOISProfileAsDefaultV1(whoisId, options);
5905
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.setWHOISProfileAsDefaultV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5906
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5907
+ });
5908
+ },
5909
+ /**
5910
+ * Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
5911
+ * @summary Unset default WHOIS profile
5912
+ * @param {number} whoisId WHOIS ID
5913
+ * @param {*} [options] Override http request option.
5914
+ * @throws {RequiredError}
5915
+ */
5916
+ unsetDefaultWHOISProfileV1(whoisId, options) {
5917
+ return __awaiter(this, void 0, void 0, function* () {
5918
+ var _a, _b;
5919
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unsetDefaultWHOISProfileV1(whoisId, options);
5920
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.unsetDefaultWHOISProfileV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5921
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5922
+ });
5923
+ },
5830
5924
  };
5831
5925
  };
5832
5926
  /**
@@ -5886,6 +5980,26 @@ export const DomainsWHOISApiFactory = function (configuration, basePath, axios)
5886
5980
  getWHOISProfileV1(whoisId, options) {
5887
5981
  return localVarFp.getWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
5888
5982
  },
5983
+ /**
5984
+ * Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
5985
+ * @summary Set WHOIS profile as default
5986
+ * @param {number} whoisId WHOIS ID
5987
+ * @param {*} [options] Override http request option.
5988
+ * @throws {RequiredError}
5989
+ */
5990
+ setWHOISProfileAsDefaultV1(whoisId, options) {
5991
+ return localVarFp.setWHOISProfileAsDefaultV1(whoisId, options).then((request) => request(axios, basePath));
5992
+ },
5993
+ /**
5994
+ * Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
5995
+ * @summary Unset default WHOIS profile
5996
+ * @param {number} whoisId WHOIS ID
5997
+ * @param {*} [options] Override http request option.
5998
+ * @throws {RequiredError}
5999
+ */
6000
+ unsetDefaultWHOISProfileV1(whoisId, options) {
6001
+ return localVarFp.unsetDefaultWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
6002
+ },
5889
6003
  };
5890
6004
  };
5891
6005
  /**
@@ -5950,6 +6064,28 @@ export class DomainsWHOISApi extends BaseAPI {
5950
6064
  getWHOISProfileV1(whoisId, options) {
5951
6065
  return DomainsWHOISApiFp(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
5952
6066
  }
6067
+ /**
6068
+ * Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
6069
+ * @summary Set WHOIS profile as default
6070
+ * @param {number} whoisId WHOIS ID
6071
+ * @param {*} [options] Override http request option.
6072
+ * @throws {RequiredError}
6073
+ * @memberof DomainsWHOISApi
6074
+ */
6075
+ setWHOISProfileAsDefaultV1(whoisId, options) {
6076
+ return DomainsWHOISApiFp(this.configuration).setWHOISProfileAsDefaultV1(whoisId, options).then((request) => request(this.axios, this.basePath));
6077
+ }
6078
+ /**
6079
+ * Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
6080
+ * @summary Unset default WHOIS profile
6081
+ * @param {number} whoisId WHOIS ID
6082
+ * @param {*} [options] Override http request option.
6083
+ * @throws {RequiredError}
6084
+ * @memberof DomainsWHOISApi
6085
+ */
6086
+ unsetDefaultWHOISProfileV1(whoisId, options) {
6087
+ return DomainsWHOISApiFp(this.configuration).unsetDefaultWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
6088
+ }
5953
6089
  }
5954
6090
  /**
5955
6091
  * EcommerceMiscellaneousApi - axios parameter creator
@@ -19601,7 +19737,7 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
19601
19737
  };
19602
19738
  }),
19603
19739
  /**
19604
- * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
19740
+ * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
19605
19741
  * @summary Stop virtual machine
19606
19742
  * @param {number} virtualMachineId Virtual Machine ID
19607
19743
  * @param {*} [options] Override http request option.
@@ -19860,7 +19996,7 @@ export const VPSVirtualMachineApiFp = function (configuration) {
19860
19996
  });
19861
19997
  },
19862
19998
  /**
19863
- * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
19999
+ * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
19864
20000
  * @summary Stop virtual machine
19865
20001
  * @param {number} virtualMachineId Virtual Machine ID
19866
20002
  * @param {*} [options] Override http request option.
@@ -20032,7 +20168,7 @@ export const VPSVirtualMachineApiFactory = function (configuration, basePath, ax
20032
20168
  return localVarFp.startVirtualMachineV1(virtualMachineId, options).then((request) => request(axios, basePath));
20033
20169
  },
20034
20170
  /**
20035
- * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
20171
+ * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
20036
20172
  * @summary Stop virtual machine
20037
20173
  * @param {number} virtualMachineId Virtual Machine ID
20038
20174
  * @param {*} [options] Override http request option.
@@ -20213,7 +20349,7 @@ export class VPSVirtualMachineApi extends BaseAPI {
20213
20349
  return VPSVirtualMachineApiFp(this.configuration).startVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
20214
20350
  }
20215
20351
  /**
20216
- * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
20352
+ * Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
20217
20353
  * @summary Stop virtual machine
20218
20354
  * @param {number} virtualMachineId Virtual Machine ID
20219
20355
  * @param {*} [options] Override http request option.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.23.0
4
+ * API Version: 1.24.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
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.23.0
6
+ * API Version: 1.24.0
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: 1.23.0
4
+ * API Version: 1.24.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
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.23.0
6
+ * API Version: 1.24.0
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: 1.23.0
4
+ * API Version: 1.24.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
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.23.0
6
+ * API Version: 1.24.0
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/1.22.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/1.23.0" }, (_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: 1.23.0
4
+ * API Version: 1.24.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
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.23.0
6
+ * API Version: 1.24.0
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: 1.23.0
4
+ * API Version: 1.24.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
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.23.0
7
+ * API Version: 1.24.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -9,6 +9,8 @@ All URIs are relative to *https://developers.hostinger.com*
9
9
  |[**getWHOISProfileListV1**](#getwhoisprofilelistv1) | **GET** /api/domains/v1/whois | Get WHOIS profile list|
10
10
  |[**getWHOISProfileUsageV1**](#getwhoisprofileusagev1) | **GET** /api/domains/v1/whois/{whoisId}/usage | Get WHOIS profile usage|
11
11
  |[**getWHOISProfileV1**](#getwhoisprofilev1) | **GET** /api/domains/v1/whois/{whoisId} | Get WHOIS profile|
12
+ |[**setWHOISProfileAsDefaultV1**](#setwhoisprofileasdefaultv1) | **PATCH** /api/domains/v1/whois/default/{whoisId} | Set WHOIS profile as default|
13
+ |[**unsetDefaultWHOISProfileV1**](#unsetdefaultwhoisprofilev1) | **DELETE** /api/domains/v1/whois/default/{whoisId} | Unset default WHOIS profile|
12
14
 
13
15
  # **createWHOISProfileV1**
14
16
  > DomainsV1WHOISProfileResource createWHOISProfileV1(domainsV1WHOISStoreRequest)
@@ -277,3 +279,109 @@ const { status, data } = await apiInstance.getWHOISProfileV1(
277
279
 
278
280
  [[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)
279
281
 
282
+ # **setWHOISProfileAsDefaultV1**
283
+ > CommonSuccessEmptyResource setWHOISProfileAsDefaultV1()
284
+
285
+ Set WHOIS contact profile as default. The default profile is pre-selected for the TLD it belongs to when registering new domains. Use this endpoint to avoid picking contact information for every registration.
286
+
287
+ ### Example
288
+
289
+ ```typescript
290
+ import {
291
+ DomainsWHOISApi,
292
+ Configuration
293
+ } from 'hostinger-api-sdk';
294
+
295
+ const configuration = new Configuration();
296
+ const apiInstance = new DomainsWHOISApi(configuration);
297
+
298
+ let whoisId: number; //WHOIS ID (default to undefined)
299
+
300
+ const { status, data } = await apiInstance.setWHOISProfileAsDefaultV1(
301
+ whoisId
302
+ );
303
+ ```
304
+
305
+ ### Parameters
306
+
307
+ |Name | Type | Description | Notes|
308
+ |------------- | ------------- | ------------- | -------------|
309
+ | **whoisId** | [**number**] | WHOIS ID | defaults to undefined|
310
+
311
+
312
+ ### Return type
313
+
314
+ **CommonSuccessEmptyResource**
315
+
316
+ ### Authorization
317
+
318
+ [apiToken](../README.md#apiToken)
319
+
320
+ ### HTTP request headers
321
+
322
+ - **Content-Type**: Not defined
323
+ - **Accept**: application/json
324
+
325
+
326
+ ### HTTP response details
327
+ | Status code | Description | Response headers |
328
+ |-------------|-------------|------------------|
329
+ |**200** | Success empty response | - |
330
+ |**401** | Unauthenticated response | - |
331
+ |**500** | Error response | - |
332
+
333
+ [[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)
334
+
335
+ # **unsetDefaultWHOISProfileV1**
336
+ > CommonSuccessEmptyResource unsetDefaultWHOISProfileV1()
337
+
338
+ Unset WHOIS contact profile as default. The profile itself is kept, it is only no longer pre-selected for its TLD. Use this endpoint to stop reusing contact information for new registrations.
339
+
340
+ ### Example
341
+
342
+ ```typescript
343
+ import {
344
+ DomainsWHOISApi,
345
+ Configuration
346
+ } from 'hostinger-api-sdk';
347
+
348
+ const configuration = new Configuration();
349
+ const apiInstance = new DomainsWHOISApi(configuration);
350
+
351
+ let whoisId: number; //WHOIS ID (default to undefined)
352
+
353
+ const { status, data } = await apiInstance.unsetDefaultWHOISProfileV1(
354
+ whoisId
355
+ );
356
+ ```
357
+
358
+ ### Parameters
359
+
360
+ |Name | Type | Description | Notes|
361
+ |------------- | ------------- | ------------- | -------------|
362
+ | **whoisId** | [**number**] | WHOIS ID | defaults to undefined|
363
+
364
+
365
+ ### Return type
366
+
367
+ **CommonSuccessEmptyResource**
368
+
369
+ ### Authorization
370
+
371
+ [apiToken](../README.md#apiToken)
372
+
373
+ ### HTTP request headers
374
+
375
+ - **Content-Type**: Not defined
376
+ - **Accept**: application/json
377
+
378
+
379
+ ### HTTP response details
380
+ | Status code | Description | Response headers |
381
+ |-------------|-------------|------------------|
382
+ |**200** | Success empty response | - |
383
+ |**401** | Unauthenticated response | - |
384
+ |**500** | Error response | - |
385
+
386
+ [[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)
387
+
@@ -800,7 +800,7 @@ const { status, data } = await apiInstance.startVirtualMachineV1(
800
800
  # **stopVirtualMachineV1**
801
801
  > VPSV1ActionActionResource stopVirtualMachineV1()
802
802
 
803
- Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. Use this endpoint to power off running VPS instances.
803
+ Stop a specified virtual machine. If the virtual machine is already stopped, the request will still be processed without any effect. This is a compute-only power state change and does not affect billing. To stop future charges, disable auto-renewal on the owning subscription. Use this endpoint to power off running VPS instances.
804
804
 
805
805
  ### Example
806
806
 
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.23.0
6
+ * API Version: 1.24.0
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": "1.22.1",
3
+ "version": "1.23.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {