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/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## hostinger-api-sdk@1.22.1
1
+ ## hostinger-api-sdk@1.23.0
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install hostinger-api-sdk@1.22.1 --save
8
+ npm install hostinger-api-sdk@1.23.0 --save
9
9
  ```
package/api.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
@@ -16151,6 +16151,82 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration?: Config
16151
16151
 
16152
16152
 
16153
16153
 
16154
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16155
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16156
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16157
+
16158
+ return {
16159
+ url: toPathString(localVarUrlObj),
16160
+ options: localVarRequestOptions,
16161
+ };
16162
+ },
16163
+ /**
16164
+ * 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.
16165
+ * @summary Set WHOIS profile as default
16166
+ * @param {number} whoisId WHOIS ID
16167
+ * @param {*} [options] Override http request option.
16168
+ * @throws {RequiredError}
16169
+ */
16170
+ setWHOISProfileAsDefaultV1: async (whoisId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16171
+ // verify required parameter 'whoisId' is not null or undefined
16172
+ assertParamExists('setWHOISProfileAsDefaultV1', 'whoisId', whoisId)
16173
+ const localVarPath = `/api/domains/v1/whois/default/{whoisId}`
16174
+ .replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
16175
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16176
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16177
+ let baseOptions;
16178
+ if (configuration) {
16179
+ baseOptions = configuration.baseOptions;
16180
+ }
16181
+
16182
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
16183
+ const localVarHeaderParameter = {} as any;
16184
+ const localVarQueryParameter = {} as any;
16185
+
16186
+ // authentication apiToken required
16187
+ // http bearer authentication required
16188
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16189
+
16190
+
16191
+
16192
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16193
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16194
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16195
+
16196
+ return {
16197
+ url: toPathString(localVarUrlObj),
16198
+ options: localVarRequestOptions,
16199
+ };
16200
+ },
16201
+ /**
16202
+ * 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.
16203
+ * @summary Unset default WHOIS profile
16204
+ * @param {number} whoisId WHOIS ID
16205
+ * @param {*} [options] Override http request option.
16206
+ * @throws {RequiredError}
16207
+ */
16208
+ unsetDefaultWHOISProfileV1: async (whoisId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16209
+ // verify required parameter 'whoisId' is not null or undefined
16210
+ assertParamExists('unsetDefaultWHOISProfileV1', 'whoisId', whoisId)
16211
+ const localVarPath = `/api/domains/v1/whois/default/{whoisId}`
16212
+ .replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
16213
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16214
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16215
+ let baseOptions;
16216
+ if (configuration) {
16217
+ baseOptions = configuration.baseOptions;
16218
+ }
16219
+
16220
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
16221
+ const localVarHeaderParameter = {} as any;
16222
+ const localVarQueryParameter = {} as any;
16223
+
16224
+ // authentication apiToken required
16225
+ // http bearer authentication required
16226
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16227
+
16228
+
16229
+
16154
16230
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16155
16231
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16156
16232
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -16230,6 +16306,30 @@ export const DomainsWHOISApiFp = function(configuration?: Configuration) {
16230
16306
  const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.getWHOISProfileV1']?.[0]?.url;
16231
16307
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16232
16308
  },
16309
+ /**
16310
+ * 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.
16311
+ * @summary Set WHOIS profile as default
16312
+ * @param {number} whoisId WHOIS ID
16313
+ * @param {*} [options] Override http request option.
16314
+ * @throws {RequiredError}
16315
+ */
16316
+ async setWHOISProfileAsDefaultV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
16317
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setWHOISProfileAsDefaultV1(whoisId, options);
16318
+ const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.setWHOISProfileAsDefaultV1']?.[0]?.url;
16319
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16320
+ },
16321
+ /**
16322
+ * 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.
16323
+ * @summary Unset default WHOIS profile
16324
+ * @param {number} whoisId WHOIS ID
16325
+ * @param {*} [options] Override http request option.
16326
+ * @throws {RequiredError}
16327
+ */
16328
+ async unsetDefaultWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
16329
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unsetDefaultWHOISProfileV1(whoisId, options);
16330
+ const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.unsetDefaultWHOISProfileV1']?.[0]?.url;
16331
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16332
+ },
16233
16333
  }
16234
16334
  };
16235
16335
 
@@ -16290,6 +16390,26 @@ export const DomainsWHOISApiFactory = function (configuration?: Configuration, b
16290
16390
  getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1WHOISProfileResource> {
16291
16391
  return localVarFp.getWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
16292
16392
  },
16393
+ /**
16394
+ * 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.
16395
+ * @summary Set WHOIS profile as default
16396
+ * @param {number} whoisId WHOIS ID
16397
+ * @param {*} [options] Override http request option.
16398
+ * @throws {RequiredError}
16399
+ */
16400
+ setWHOISProfileAsDefaultV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
16401
+ return localVarFp.setWHOISProfileAsDefaultV1(whoisId, options).then((request) => request(axios, basePath));
16402
+ },
16403
+ /**
16404
+ * 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.
16405
+ * @summary Unset default WHOIS profile
16406
+ * @param {number} whoisId WHOIS ID
16407
+ * @param {*} [options] Override http request option.
16408
+ * @throws {RequiredError}
16409
+ */
16410
+ unsetDefaultWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
16411
+ return localVarFp.unsetDefaultWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
16412
+ },
16293
16413
  };
16294
16414
  };
16295
16415
 
@@ -16359,6 +16479,30 @@ export class DomainsWHOISApi extends BaseAPI {
16359
16479
  public getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig) {
16360
16480
  return DomainsWHOISApiFp(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
16361
16481
  }
16482
+
16483
+ /**
16484
+ * 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.
16485
+ * @summary Set WHOIS profile as default
16486
+ * @param {number} whoisId WHOIS ID
16487
+ * @param {*} [options] Override http request option.
16488
+ * @throws {RequiredError}
16489
+ * @memberof DomainsWHOISApi
16490
+ */
16491
+ public setWHOISProfileAsDefaultV1(whoisId: number, options?: RawAxiosRequestConfig) {
16492
+ return DomainsWHOISApiFp(this.configuration).setWHOISProfileAsDefaultV1(whoisId, options).then((request) => request(this.axios, this.basePath));
16493
+ }
16494
+
16495
+ /**
16496
+ * 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.
16497
+ * @summary Unset default WHOIS profile
16498
+ * @param {number} whoisId WHOIS ID
16499
+ * @param {*} [options] Override http request option.
16500
+ * @throws {RequiredError}
16501
+ * @memberof DomainsWHOISApi
16502
+ */
16503
+ public unsetDefaultWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig) {
16504
+ return DomainsWHOISApiFp(this.configuration).unsetDefaultWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
16505
+ }
16362
16506
  }
16363
16507
 
16364
16508
 
@@ -31082,7 +31226,7 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration?: C
31082
31226
  };
31083
31227
  },
31084
31228
  /**
31085
- * 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.
31229
+ * 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.
31086
31230
  * @summary Stop virtual machine
31087
31231
  * @param {number} virtualMachineId Virtual Machine ID
31088
31232
  * @param {*} [options] Override http request option.
@@ -31306,7 +31450,7 @@ export const VPSVirtualMachineApiFp = function(configuration?: Configuration) {
31306
31450
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31307
31451
  },
31308
31452
  /**
31309
- * 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.
31453
+ * 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.
31310
31454
  * @summary Stop virtual machine
31311
31455
  * @param {number} virtualMachineId Virtual Machine ID
31312
31456
  * @param {*} [options] Override http request option.
@@ -31476,7 +31620,7 @@ export const VPSVirtualMachineApiFactory = function (configuration?: Configurati
31476
31620
  return localVarFp.startVirtualMachineV1(virtualMachineId, options).then((request) => request(axios, basePath));
31477
31621
  },
31478
31622
  /**
31479
- * 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.
31623
+ * 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.
31480
31624
  * @summary Stop virtual machine
31481
31625
  * @param {number} virtualMachineId Virtual Machine ID
31482
31626
  * @param {*} [options] Override http request option.
@@ -31672,7 +31816,7 @@ export class VPSVirtualMachineApi extends BaseAPI {
31672
31816
  }
31673
31817
 
31674
31818
  /**
31675
- * 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.
31819
+ * 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.
31676
31820
  * @summary Stop virtual machine
31677
31821
  * @param {number} virtualMachineId Virtual Machine ID
31678
31822
  * @param {*} [options] Override http request option.
package/base.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/common.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/configuration.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
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-typescript-sdk/1.22.1",
51
+ 'User-Agent': "hostinger-typescript-sdk/1.23.0",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };
package/dist/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/api.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
@@ -5837,6 +5837,70 @@ const DomainsWHOISApiAxiosParamCreator = function (configuration) {
5837
5837
  options: localVarRequestOptions,
5838
5838
  };
5839
5839
  }),
5840
+ /**
5841
+ * 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.
5842
+ * @summary Set WHOIS profile as default
5843
+ * @param {number} whoisId WHOIS ID
5844
+ * @param {*} [options] Override http request option.
5845
+ * @throws {RequiredError}
5846
+ */
5847
+ setWHOISProfileAsDefaultV1: (whoisId_1, ...args_1) => __awaiter(this, [whoisId_1, ...args_1], void 0, function* (whoisId, options = {}) {
5848
+ // verify required parameter 'whoisId' is not null or undefined
5849
+ (0, common_1.assertParamExists)('setWHOISProfileAsDefaultV1', 'whoisId', whoisId);
5850
+ const localVarPath = `/api/domains/v1/whois/default/{whoisId}`
5851
+ .replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
5852
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5853
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5854
+ let baseOptions;
5855
+ if (configuration) {
5856
+ baseOptions = configuration.baseOptions;
5857
+ }
5858
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
5859
+ const localVarHeaderParameter = {};
5860
+ const localVarQueryParameter = {};
5861
+ // authentication apiToken required
5862
+ // http bearer authentication required
5863
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5864
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5865
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5866
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5867
+ return {
5868
+ url: (0, common_1.toPathString)(localVarUrlObj),
5869
+ options: localVarRequestOptions,
5870
+ };
5871
+ }),
5872
+ /**
5873
+ * 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.
5874
+ * @summary Unset default WHOIS profile
5875
+ * @param {number} whoisId WHOIS ID
5876
+ * @param {*} [options] Override http request option.
5877
+ * @throws {RequiredError}
5878
+ */
5879
+ unsetDefaultWHOISProfileV1: (whoisId_1, ...args_1) => __awaiter(this, [whoisId_1, ...args_1], void 0, function* (whoisId, options = {}) {
5880
+ // verify required parameter 'whoisId' is not null or undefined
5881
+ (0, common_1.assertParamExists)('unsetDefaultWHOISProfileV1', 'whoisId', whoisId);
5882
+ const localVarPath = `/api/domains/v1/whois/default/{whoisId}`
5883
+ .replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
5884
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5885
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5886
+ let baseOptions;
5887
+ if (configuration) {
5888
+ baseOptions = configuration.baseOptions;
5889
+ }
5890
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5891
+ const localVarHeaderParameter = {};
5892
+ const localVarQueryParameter = {};
5893
+ // authentication apiToken required
5894
+ // http bearer authentication required
5895
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5896
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5897
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5898
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5899
+ return {
5900
+ url: (0, common_1.toPathString)(localVarUrlObj),
5901
+ options: localVarRequestOptions,
5902
+ };
5903
+ }),
5840
5904
  };
5841
5905
  };
5842
5906
  exports.DomainsWHOISApiAxiosParamCreator = DomainsWHOISApiAxiosParamCreator;
@@ -5922,6 +5986,36 @@ const DomainsWHOISApiFp = function (configuration) {
5922
5986
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5923
5987
  });
5924
5988
  },
5989
+ /**
5990
+ * 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.
5991
+ * @summary Set WHOIS profile as default
5992
+ * @param {number} whoisId WHOIS ID
5993
+ * @param {*} [options] Override http request option.
5994
+ * @throws {RequiredError}
5995
+ */
5996
+ setWHOISProfileAsDefaultV1(whoisId, options) {
5997
+ return __awaiter(this, void 0, void 0, function* () {
5998
+ var _a, _b;
5999
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setWHOISProfileAsDefaultV1(whoisId, options);
6000
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsWHOISApi.setWHOISProfileAsDefaultV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6001
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6002
+ });
6003
+ },
6004
+ /**
6005
+ * 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.
6006
+ * @summary Unset default WHOIS profile
6007
+ * @param {number} whoisId WHOIS ID
6008
+ * @param {*} [options] Override http request option.
6009
+ * @throws {RequiredError}
6010
+ */
6011
+ unsetDefaultWHOISProfileV1(whoisId, options) {
6012
+ return __awaiter(this, void 0, void 0, function* () {
6013
+ var _a, _b;
6014
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.unsetDefaultWHOISProfileV1(whoisId, options);
6015
+ const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['DomainsWHOISApi.unsetDefaultWHOISProfileV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
6016
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6017
+ });
6018
+ },
5925
6019
  };
5926
6020
  };
5927
6021
  exports.DomainsWHOISApiFp = DomainsWHOISApiFp;
@@ -5982,6 +6076,26 @@ const DomainsWHOISApiFactory = function (configuration, basePath, axios) {
5982
6076
  getWHOISProfileV1(whoisId, options) {
5983
6077
  return localVarFp.getWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
5984
6078
  },
6079
+ /**
6080
+ * 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.
6081
+ * @summary Set WHOIS profile as default
6082
+ * @param {number} whoisId WHOIS ID
6083
+ * @param {*} [options] Override http request option.
6084
+ * @throws {RequiredError}
6085
+ */
6086
+ setWHOISProfileAsDefaultV1(whoisId, options) {
6087
+ return localVarFp.setWHOISProfileAsDefaultV1(whoisId, options).then((request) => request(axios, basePath));
6088
+ },
6089
+ /**
6090
+ * 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.
6091
+ * @summary Unset default WHOIS profile
6092
+ * @param {number} whoisId WHOIS ID
6093
+ * @param {*} [options] Override http request option.
6094
+ * @throws {RequiredError}
6095
+ */
6096
+ unsetDefaultWHOISProfileV1(whoisId, options) {
6097
+ return localVarFp.unsetDefaultWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
6098
+ },
5985
6099
  };
5986
6100
  };
5987
6101
  exports.DomainsWHOISApiFactory = DomainsWHOISApiFactory;
@@ -6047,6 +6161,28 @@ class DomainsWHOISApi extends base_1.BaseAPI {
6047
6161
  getWHOISProfileV1(whoisId, options) {
6048
6162
  return (0, exports.DomainsWHOISApiFp)(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
6049
6163
  }
6164
+ /**
6165
+ * 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.
6166
+ * @summary Set WHOIS profile as default
6167
+ * @param {number} whoisId WHOIS ID
6168
+ * @param {*} [options] Override http request option.
6169
+ * @throws {RequiredError}
6170
+ * @memberof DomainsWHOISApi
6171
+ */
6172
+ setWHOISProfileAsDefaultV1(whoisId, options) {
6173
+ return (0, exports.DomainsWHOISApiFp)(this.configuration).setWHOISProfileAsDefaultV1(whoisId, options).then((request) => request(this.axios, this.basePath));
6174
+ }
6175
+ /**
6176
+ * 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.
6177
+ * @summary Unset default WHOIS profile
6178
+ * @param {number} whoisId WHOIS ID
6179
+ * @param {*} [options] Override http request option.
6180
+ * @throws {RequiredError}
6181
+ * @memberof DomainsWHOISApi
6182
+ */
6183
+ unsetDefaultWHOISProfileV1(whoisId, options) {
6184
+ return (0, exports.DomainsWHOISApiFp)(this.configuration).unsetDefaultWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
6185
+ }
6050
6186
  }
6051
6187
  exports.DomainsWHOISApi = DomainsWHOISApi;
6052
6188
  /**
@@ -19859,7 +19995,7 @@ const VPSVirtualMachineApiAxiosParamCreator = function (configuration) {
19859
19995
  };
19860
19996
  }),
19861
19997
  /**
19862
- * 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.
19998
+ * 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.
19863
19999
  * @summary Stop virtual machine
19864
20000
  * @param {number} virtualMachineId Virtual Machine ID
19865
20001
  * @param {*} [options] Override http request option.
@@ -20119,7 +20255,7 @@ const VPSVirtualMachineApiFp = function (configuration) {
20119
20255
  });
20120
20256
  },
20121
20257
  /**
20122
- * 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.
20258
+ * 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.
20123
20259
  * @summary Stop virtual machine
20124
20260
  * @param {number} virtualMachineId Virtual Machine ID
20125
20261
  * @param {*} [options] Override http request option.
@@ -20292,7 +20428,7 @@ const VPSVirtualMachineApiFactory = function (configuration, basePath, axios) {
20292
20428
  return localVarFp.startVirtualMachineV1(virtualMachineId, options).then((request) => request(axios, basePath));
20293
20429
  },
20294
20430
  /**
20295
- * 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.
20431
+ * 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.
20296
20432
  * @summary Stop virtual machine
20297
20433
  * @param {number} virtualMachineId Virtual Machine ID
20298
20434
  * @param {*} [options] Override http request option.
@@ -20474,7 +20610,7 @@ class VPSVirtualMachineApi extends base_1.BaseAPI {
20474
20610
  return (0, exports.VPSVirtualMachineApiFp)(this.configuration).startVirtualMachineV1(virtualMachineId, options).then((request) => request(this.axios, this.basePath));
20475
20611
  }
20476
20612
  /**
20477
- * 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.
20613
+ * 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.
20478
20614
  * @summary Stop virtual machine
20479
20615
  * @param {number} virtualMachineId Virtual Machine ID
20480
20616
  * @param {*} [options] Override http request option.
package/dist/base.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/base.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
package/dist/common.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