hostinger-api-sdk 1.22.1 → 1.24.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.24.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.24.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.25.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
@@ -2742,6 +2742,64 @@ export const DomainsV1ForwardingUpdateRequestRedirectTypeEnum = {
2742
2742
 
2743
2743
  export type DomainsV1ForwardingUpdateRequestRedirectTypeEnum = typeof DomainsV1ForwardingUpdateRequestRedirectTypeEnum[keyof typeof DomainsV1ForwardingUpdateRequestRedirectTypeEnum];
2744
2744
 
2745
+ /**
2746
+ *
2747
+ * @export
2748
+ * @interface DomainsV1IRTPVerificationResource
2749
+ */
2750
+ export interface DomainsV1IRTPVerificationResource {
2751
+ /**
2752
+ * Domain name
2753
+ * @type {string}
2754
+ * @memberof DomainsV1IRTPVerificationResource
2755
+ */
2756
+ 'domain': string;
2757
+ /**
2758
+ * IRTP verification status
2759
+ * @type {string}
2760
+ * @memberof DomainsV1IRTPVerificationResource
2761
+ */
2762
+ 'status': DomainsV1IRTPVerificationResourceStatusEnum;
2763
+ /**
2764
+ * When the old registrant confirmed the change
2765
+ * @type {string}
2766
+ * @memberof DomainsV1IRTPVerificationResource
2767
+ */
2768
+ 'old_confirmed_at': string | null;
2769
+ /**
2770
+ * When the new registrant confirmed the change
2771
+ * @type {string}
2772
+ * @memberof DomainsV1IRTPVerificationResource
2773
+ */
2774
+ 'new_confirmed_at': string | null;
2775
+ /**
2776
+ * Email the old registrant confirmation was sent to
2777
+ * @type {string}
2778
+ * @memberof DomainsV1IRTPVerificationResource
2779
+ */
2780
+ 'old_whois_profile_email': string;
2781
+ /**
2782
+ * Email the new registrant confirmation was sent to
2783
+ * @type {string}
2784
+ * @memberof DomainsV1IRTPVerificationResource
2785
+ */
2786
+ 'new_whois_profile_email': string;
2787
+ /**
2788
+ * When the verification auto-cancels if unconfirmed
2789
+ * @type {string}
2790
+ * @memberof DomainsV1IRTPVerificationResource
2791
+ */
2792
+ 'expires_at': string;
2793
+ }
2794
+
2795
+ export const DomainsV1IRTPVerificationResourceStatusEnum = {
2796
+ Pending: 'pending',
2797
+ Completed: 'completed',
2798
+ Canceled: 'canceled'
2799
+ } as const;
2800
+
2801
+ export type DomainsV1IRTPVerificationResourceStatusEnum = typeof DomainsV1IRTPVerificationResourceStatusEnum[keyof typeof DomainsV1IRTPVerificationResourceStatusEnum];
2802
+
2745
2803
  /**
2746
2804
  *
2747
2805
  * @export
@@ -2916,6 +2974,41 @@ export interface DomainsV1TransferTransferResource {
2916
2974
  */
2917
2975
  'completed_at': string | null;
2918
2976
  }
2977
+ /**
2978
+ *
2979
+ * @export
2980
+ * @interface DomainsV1WHOISChangeUpdateRequest
2981
+ */
2982
+ export interface DomainsV1WHOISChangeUpdateRequest {
2983
+ /**
2984
+ * WHOIS profile ID to assign to the domain
2985
+ * @type {number}
2986
+ * @memberof DomainsV1WHOISChangeUpdateRequest
2987
+ */
2988
+ 'new_whois_id': number;
2989
+ /**
2990
+ * Domain name
2991
+ * @type {string}
2992
+ * @memberof DomainsV1WHOISChangeUpdateRequest
2993
+ */
2994
+ 'domain': string;
2995
+ /**
2996
+ * Contact roles to repoint to the new WHOIS profile
2997
+ * @type {Array<string>}
2998
+ * @memberof DomainsV1WHOISChangeUpdateRequest
2999
+ */
3000
+ 'change_for': Array<DomainsV1WHOISChangeUpdateRequestChangeForEnum>;
3001
+ }
3002
+
3003
+ export const DomainsV1WHOISChangeUpdateRequestChangeForEnum = {
3004
+ Owner: 'owner',
3005
+ Admin: 'admin',
3006
+ Billing: 'billing',
3007
+ Tech: 'tech'
3008
+ } as const;
3009
+
3010
+ export type DomainsV1WHOISChangeUpdateRequestChangeForEnum = typeof DomainsV1WHOISChangeUpdateRequestChangeForEnum[keyof typeof DomainsV1WHOISChangeUpdateRequestChangeForEnum];
3011
+
2919
3012
  /**
2920
3013
  *
2921
3014
  * @export
@@ -15967,6 +16060,84 @@ export class DomainsTransferApi extends BaseAPI {
15967
16060
  */
15968
16061
  export const DomainsWHOISApiAxiosParamCreator = function (configuration?: Configuration) {
15969
16062
  return {
16063
+ /**
16064
+ * Cancel a pending IRTP verification. Use this endpoint to back out of a WHOIS change that is stuck waiting on registrant confirmation, for example when the confirmation email cannot be received, without waiting out the 5-day expiry.
16065
+ * @summary Cancel pending IRTP verification
16066
+ * @param {string} domain Domain name
16067
+ * @param {*} [options] Override http request option.
16068
+ * @throws {RequiredError}
16069
+ */
16070
+ cancelPendingIRTPVerificationV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16071
+ // verify required parameter 'domain' is not null or undefined
16072
+ assertParamExists('cancelPendingIRTPVerificationV1', 'domain', domain)
16073
+ const localVarPath = `/api/domains/v1/irtp/{domain}`
16074
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
16075
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16076
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16077
+ let baseOptions;
16078
+ if (configuration) {
16079
+ baseOptions = configuration.baseOptions;
16080
+ }
16081
+
16082
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
16083
+ const localVarHeaderParameter = {} as any;
16084
+ const localVarQueryParameter = {} as any;
16085
+
16086
+ // authentication apiToken required
16087
+ // http bearer authentication required
16088
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16089
+
16090
+
16091
+
16092
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16093
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16094
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16095
+
16096
+ return {
16097
+ url: toPathString(localVarUrlObj),
16098
+ options: localVarRequestOptions,
16099
+ };
16100
+ },
16101
+ /**
16102
+ * Change WHOIS contact profile for a domain. Repoints the given contact roles to a new WHOIS profile and submits the change to the registry. The profile currently assigned to those roles is resolved automatically; the request fails if the given roles are not all on the same profile today. Changing transfer sensitive fields on the owner contact starts an IRTP verification. The change is processed asynchronously. Use this endpoint to move a registered domain onto different contact information.
16103
+ * @summary Change WHOIS profile for domain
16104
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
16105
+ * @param {*} [options] Override http request option.
16106
+ * @throws {RequiredError}
16107
+ */
16108
+ changeWHOISProfileForDomainV1: async (domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16109
+ // verify required parameter 'domainsV1WHOISChangeUpdateRequest' is not null or undefined
16110
+ assertParamExists('changeWHOISProfileForDomainV1', 'domainsV1WHOISChangeUpdateRequest', domainsV1WHOISChangeUpdateRequest)
16111
+ const localVarPath = `/api/domains/v1/whois/change`;
16112
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16113
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16114
+ let baseOptions;
16115
+ if (configuration) {
16116
+ baseOptions = configuration.baseOptions;
16117
+ }
16118
+
16119
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
16120
+ const localVarHeaderParameter = {} as any;
16121
+ const localVarQueryParameter = {} as any;
16122
+
16123
+ // authentication apiToken required
16124
+ // http bearer authentication required
16125
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16126
+
16127
+
16128
+
16129
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16130
+
16131
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16132
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16133
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16134
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1WHOISChangeUpdateRequest, localVarRequestOptions, configuration)
16135
+
16136
+ return {
16137
+ url: toPathString(localVarUrlObj),
16138
+ options: localVarRequestOptions,
16139
+ };
16140
+ },
15970
16141
  /**
15971
16142
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
15972
16143
  * @summary Create WHOIS profile
@@ -16036,6 +16207,44 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration?: Config
16036
16207
 
16037
16208
 
16038
16209
 
16210
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16211
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16212
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16213
+
16214
+ return {
16215
+ url: toPathString(localVarUrlObj),
16216
+ options: localVarRequestOptions,
16217
+ };
16218
+ },
16219
+ /**
16220
+ * Retrieve a pending IRTP verification for a domain. Both the old and new registrant must confirm it before the WHOIS change takes effect. Use this endpoint to check the status of a WHOIS change awaiting registrant confirmation.
16221
+ * @summary Get pending IRTP verification
16222
+ * @param {string} domain Domain name
16223
+ * @param {*} [options] Override http request option.
16224
+ * @throws {RequiredError}
16225
+ */
16226
+ getPendingIRTPVerificationV1: async (domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16227
+ // verify required parameter 'domain' is not null or undefined
16228
+ assertParamExists('getPendingIRTPVerificationV1', 'domain', domain)
16229
+ const localVarPath = `/api/domains/v1/irtp/{domain}`
16230
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
16231
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16232
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16233
+ let baseOptions;
16234
+ if (configuration) {
16235
+ baseOptions = configuration.baseOptions;
16236
+ }
16237
+
16238
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16239
+ const localVarHeaderParameter = {} as any;
16240
+ const localVarQueryParameter = {} as any;
16241
+
16242
+ // authentication apiToken required
16243
+ // http bearer authentication required
16244
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16245
+
16246
+
16247
+
16039
16248
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16040
16249
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16041
16250
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -16151,6 +16360,82 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration?: Config
16151
16360
 
16152
16361
 
16153
16362
 
16363
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16364
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16365
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16366
+
16367
+ return {
16368
+ url: toPathString(localVarUrlObj),
16369
+ options: localVarRequestOptions,
16370
+ };
16371
+ },
16372
+ /**
16373
+ * 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.
16374
+ * @summary Set WHOIS profile as default
16375
+ * @param {number} whoisId WHOIS ID
16376
+ * @param {*} [options] Override http request option.
16377
+ * @throws {RequiredError}
16378
+ */
16379
+ setWHOISProfileAsDefaultV1: async (whoisId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16380
+ // verify required parameter 'whoisId' is not null or undefined
16381
+ assertParamExists('setWHOISProfileAsDefaultV1', 'whoisId', whoisId)
16382
+ const localVarPath = `/api/domains/v1/whois/default/{whoisId}`
16383
+ .replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
16384
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16385
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16386
+ let baseOptions;
16387
+ if (configuration) {
16388
+ baseOptions = configuration.baseOptions;
16389
+ }
16390
+
16391
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
16392
+ const localVarHeaderParameter = {} as any;
16393
+ const localVarQueryParameter = {} as any;
16394
+
16395
+ // authentication apiToken required
16396
+ // http bearer authentication required
16397
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16398
+
16399
+
16400
+
16401
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16402
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16403
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16404
+
16405
+ return {
16406
+ url: toPathString(localVarUrlObj),
16407
+ options: localVarRequestOptions,
16408
+ };
16409
+ },
16410
+ /**
16411
+ * 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.
16412
+ * @summary Unset default WHOIS profile
16413
+ * @param {number} whoisId WHOIS ID
16414
+ * @param {*} [options] Override http request option.
16415
+ * @throws {RequiredError}
16416
+ */
16417
+ unsetDefaultWHOISProfileV1: async (whoisId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16418
+ // verify required parameter 'whoisId' is not null or undefined
16419
+ assertParamExists('unsetDefaultWHOISProfileV1', 'whoisId', whoisId)
16420
+ const localVarPath = `/api/domains/v1/whois/default/{whoisId}`
16421
+ .replace(`{${"whoisId"}}`, encodeURIComponent(String(whoisId)));
16422
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16423
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16424
+ let baseOptions;
16425
+ if (configuration) {
16426
+ baseOptions = configuration.baseOptions;
16427
+ }
16428
+
16429
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
16430
+ const localVarHeaderParameter = {} as any;
16431
+ const localVarQueryParameter = {} as any;
16432
+
16433
+ // authentication apiToken required
16434
+ // http bearer authentication required
16435
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16436
+
16437
+
16438
+
16154
16439
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16155
16440
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16156
16441
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -16170,6 +16455,30 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration?: Config
16170
16455
  export const DomainsWHOISApiFp = function(configuration?: Configuration) {
16171
16456
  const localVarAxiosParamCreator = DomainsWHOISApiAxiosParamCreator(configuration)
16172
16457
  return {
16458
+ /**
16459
+ * Cancel a pending IRTP verification. Use this endpoint to back out of a WHOIS change that is stuck waiting on registrant confirmation, for example when the confirmation email cannot be received, without waiting out the 5-day expiry.
16460
+ * @summary Cancel pending IRTP verification
16461
+ * @param {string} domain Domain name
16462
+ * @param {*} [options] Override http request option.
16463
+ * @throws {RequiredError}
16464
+ */
16465
+ async cancelPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
16466
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelPendingIRTPVerificationV1(domain, options);
16467
+ const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.cancelPendingIRTPVerificationV1']?.[0]?.url;
16468
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16469
+ },
16470
+ /**
16471
+ * Change WHOIS contact profile for a domain. Repoints the given contact roles to a new WHOIS profile and submits the change to the registry. The profile currently assigned to those roles is resolved automatically; the request fails if the given roles are not all on the same profile today. Changing transfer sensitive fields on the owner contact starts an IRTP verification. The change is processed asynchronously. Use this endpoint to move a registered domain onto different contact information.
16472
+ * @summary Change WHOIS profile for domain
16473
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
16474
+ * @param {*} [options] Override http request option.
16475
+ * @throws {RequiredError}
16476
+ */
16477
+ async changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
16478
+ const localVarAxiosArgs = await localVarAxiosParamCreator.changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options);
16479
+ const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.changeWHOISProfileForDomainV1']?.[0]?.url;
16480
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16481
+ },
16173
16482
  /**
16174
16483
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
16175
16484
  * @summary Create WHOIS profile
@@ -16194,6 +16503,18 @@ export const DomainsWHOISApiFp = function(configuration?: Configuration) {
16194
16503
  const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.deleteWHOISProfileV1']?.[0]?.url;
16195
16504
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16196
16505
  },
16506
+ /**
16507
+ * Retrieve a pending IRTP verification for a domain. Both the old and new registrant must confirm it before the WHOIS change takes effect. Use this endpoint to check the status of a WHOIS change awaiting registrant confirmation.
16508
+ * @summary Get pending IRTP verification
16509
+ * @param {string} domain Domain name
16510
+ * @param {*} [options] Override http request option.
16511
+ * @throws {RequiredError}
16512
+ */
16513
+ async getPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1IRTPVerificationResource>> {
16514
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPendingIRTPVerificationV1(domain, options);
16515
+ const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.getPendingIRTPVerificationV1']?.[0]?.url;
16516
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16517
+ },
16197
16518
  /**
16198
16519
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
16199
16520
  * @summary Get WHOIS profile list
@@ -16230,6 +16551,30 @@ export const DomainsWHOISApiFp = function(configuration?: Configuration) {
16230
16551
  const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.getWHOISProfileV1']?.[0]?.url;
16231
16552
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16232
16553
  },
16554
+ /**
16555
+ * 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.
16556
+ * @summary Set WHOIS profile as default
16557
+ * @param {number} whoisId WHOIS ID
16558
+ * @param {*} [options] Override http request option.
16559
+ * @throws {RequiredError}
16560
+ */
16561
+ async setWHOISProfileAsDefaultV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
16562
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setWHOISProfileAsDefaultV1(whoisId, options);
16563
+ const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.setWHOISProfileAsDefaultV1']?.[0]?.url;
16564
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16565
+ },
16566
+ /**
16567
+ * 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.
16568
+ * @summary Unset default WHOIS profile
16569
+ * @param {number} whoisId WHOIS ID
16570
+ * @param {*} [options] Override http request option.
16571
+ * @throws {RequiredError}
16572
+ */
16573
+ async unsetDefaultWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
16574
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unsetDefaultWHOISProfileV1(whoisId, options);
16575
+ const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.unsetDefaultWHOISProfileV1']?.[0]?.url;
16576
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16577
+ },
16233
16578
  }
16234
16579
  };
16235
16580
 
@@ -16240,6 +16585,26 @@ export const DomainsWHOISApiFp = function(configuration?: Configuration) {
16240
16585
  export const DomainsWHOISApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
16241
16586
  const localVarFp = DomainsWHOISApiFp(configuration)
16242
16587
  return {
16588
+ /**
16589
+ * Cancel a pending IRTP verification. Use this endpoint to back out of a WHOIS change that is stuck waiting on registrant confirmation, for example when the confirmation email cannot be received, without waiting out the 5-day expiry.
16590
+ * @summary Cancel pending IRTP verification
16591
+ * @param {string} domain Domain name
16592
+ * @param {*} [options] Override http request option.
16593
+ * @throws {RequiredError}
16594
+ */
16595
+ cancelPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
16596
+ return localVarFp.cancelPendingIRTPVerificationV1(domain, options).then((request) => request(axios, basePath));
16597
+ },
16598
+ /**
16599
+ * Change WHOIS contact profile for a domain. Repoints the given contact roles to a new WHOIS profile and submits the change to the registry. The profile currently assigned to those roles is resolved automatically; the request fails if the given roles are not all on the same profile today. Changing transfer sensitive fields on the owner contact starts an IRTP verification. The change is processed asynchronously. Use this endpoint to move a registered domain onto different contact information.
16600
+ * @summary Change WHOIS profile for domain
16601
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
16602
+ * @param {*} [options] Override http request option.
16603
+ * @throws {RequiredError}
16604
+ */
16605
+ changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
16606
+ return localVarFp.changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options).then((request) => request(axios, basePath));
16607
+ },
16243
16608
  /**
16244
16609
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
16245
16610
  * @summary Create WHOIS profile
@@ -16260,6 +16625,16 @@ export const DomainsWHOISApiFactory = function (configuration?: Configuration, b
16260
16625
  deleteWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
16261
16626
  return localVarFp.deleteWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
16262
16627
  },
16628
+ /**
16629
+ * Retrieve a pending IRTP verification for a domain. Both the old and new registrant must confirm it before the WHOIS change takes effect. Use this endpoint to check the status of a WHOIS change awaiting registrant confirmation.
16630
+ * @summary Get pending IRTP verification
16631
+ * @param {string} domain Domain name
16632
+ * @param {*} [options] Override http request option.
16633
+ * @throws {RequiredError}
16634
+ */
16635
+ getPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1IRTPVerificationResource> {
16636
+ return localVarFp.getPendingIRTPVerificationV1(domain, options).then((request) => request(axios, basePath));
16637
+ },
16263
16638
  /**
16264
16639
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
16265
16640
  * @summary Get WHOIS profile list
@@ -16290,6 +16665,26 @@ export const DomainsWHOISApiFactory = function (configuration?: Configuration, b
16290
16665
  getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1WHOISProfileResource> {
16291
16666
  return localVarFp.getWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
16292
16667
  },
16668
+ /**
16669
+ * 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.
16670
+ * @summary Set WHOIS profile as default
16671
+ * @param {number} whoisId WHOIS ID
16672
+ * @param {*} [options] Override http request option.
16673
+ * @throws {RequiredError}
16674
+ */
16675
+ setWHOISProfileAsDefaultV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
16676
+ return localVarFp.setWHOISProfileAsDefaultV1(whoisId, options).then((request) => request(axios, basePath));
16677
+ },
16678
+ /**
16679
+ * 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.
16680
+ * @summary Unset default WHOIS profile
16681
+ * @param {number} whoisId WHOIS ID
16682
+ * @param {*} [options] Override http request option.
16683
+ * @throws {RequiredError}
16684
+ */
16685
+ unsetDefaultWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
16686
+ return localVarFp.unsetDefaultWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
16687
+ },
16293
16688
  };
16294
16689
  };
16295
16690
 
@@ -16300,6 +16695,30 @@ export const DomainsWHOISApiFactory = function (configuration?: Configuration, b
16300
16695
  * @extends {BaseAPI}
16301
16696
  */
16302
16697
  export class DomainsWHOISApi extends BaseAPI {
16698
+ /**
16699
+ * Cancel a pending IRTP verification. Use this endpoint to back out of a WHOIS change that is stuck waiting on registrant confirmation, for example when the confirmation email cannot be received, without waiting out the 5-day expiry.
16700
+ * @summary Cancel pending IRTP verification
16701
+ * @param {string} domain Domain name
16702
+ * @param {*} [options] Override http request option.
16703
+ * @throws {RequiredError}
16704
+ * @memberof DomainsWHOISApi
16705
+ */
16706
+ public cancelPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig) {
16707
+ return DomainsWHOISApiFp(this.configuration).cancelPendingIRTPVerificationV1(domain, options).then((request) => request(this.axios, this.basePath));
16708
+ }
16709
+
16710
+ /**
16711
+ * Change WHOIS contact profile for a domain. Repoints the given contact roles to a new WHOIS profile and submits the change to the registry. The profile currently assigned to those roles is resolved automatically; the request fails if the given roles are not all on the same profile today. Changing transfer sensitive fields on the owner contact starts an IRTP verification. The change is processed asynchronously. Use this endpoint to move a registered domain onto different contact information.
16712
+ * @summary Change WHOIS profile for domain
16713
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
16714
+ * @param {*} [options] Override http request option.
16715
+ * @throws {RequiredError}
16716
+ * @memberof DomainsWHOISApi
16717
+ */
16718
+ public changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig) {
16719
+ return DomainsWHOISApiFp(this.configuration).changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options).then((request) => request(this.axios, this.basePath));
16720
+ }
16721
+
16303
16722
  /**
16304
16723
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
16305
16724
  * @summary Create WHOIS profile
@@ -16324,6 +16743,18 @@ export class DomainsWHOISApi extends BaseAPI {
16324
16743
  return DomainsWHOISApiFp(this.configuration).deleteWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
16325
16744
  }
16326
16745
 
16746
+ /**
16747
+ * Retrieve a pending IRTP verification for a domain. Both the old and new registrant must confirm it before the WHOIS change takes effect. Use this endpoint to check the status of a WHOIS change awaiting registrant confirmation.
16748
+ * @summary Get pending IRTP verification
16749
+ * @param {string} domain Domain name
16750
+ * @param {*} [options] Override http request option.
16751
+ * @throws {RequiredError}
16752
+ * @memberof DomainsWHOISApi
16753
+ */
16754
+ public getPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig) {
16755
+ return DomainsWHOISApiFp(this.configuration).getPendingIRTPVerificationV1(domain, options).then((request) => request(this.axios, this.basePath));
16756
+ }
16757
+
16327
16758
  /**
16328
16759
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
16329
16760
  * @summary Get WHOIS profile list
@@ -16359,6 +16790,30 @@ export class DomainsWHOISApi extends BaseAPI {
16359
16790
  public getWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig) {
16360
16791
  return DomainsWHOISApiFp(this.configuration).getWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
16361
16792
  }
16793
+
16794
+ /**
16795
+ * 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.
16796
+ * @summary Set WHOIS profile as default
16797
+ * @param {number} whoisId WHOIS ID
16798
+ * @param {*} [options] Override http request option.
16799
+ * @throws {RequiredError}
16800
+ * @memberof DomainsWHOISApi
16801
+ */
16802
+ public setWHOISProfileAsDefaultV1(whoisId: number, options?: RawAxiosRequestConfig) {
16803
+ return DomainsWHOISApiFp(this.configuration).setWHOISProfileAsDefaultV1(whoisId, options).then((request) => request(this.axios, this.basePath));
16804
+ }
16805
+
16806
+ /**
16807
+ * 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.
16808
+ * @summary Unset default WHOIS profile
16809
+ * @param {number} whoisId WHOIS ID
16810
+ * @param {*} [options] Override http request option.
16811
+ * @throws {RequiredError}
16812
+ * @memberof DomainsWHOISApi
16813
+ */
16814
+ public unsetDefaultWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig) {
16815
+ return DomainsWHOISApiFp(this.configuration).unsetDefaultWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
16816
+ }
16362
16817
  }
16363
16818
 
16364
16819
 
@@ -31082,7 +31537,7 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration?: C
31082
31537
  };
31083
31538
  },
31084
31539
  /**
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.
31540
+ * 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
31541
  * @summary Stop virtual machine
31087
31542
  * @param {number} virtualMachineId Virtual Machine ID
31088
31543
  * @param {*} [options] Override http request option.
@@ -31306,7 +31761,7 @@ export const VPSVirtualMachineApiFp = function(configuration?: Configuration) {
31306
31761
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31307
31762
  },
31308
31763
  /**
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.
31764
+ * 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
31765
  * @summary Stop virtual machine
31311
31766
  * @param {number} virtualMachineId Virtual Machine ID
31312
31767
  * @param {*} [options] Override http request option.
@@ -31476,7 +31931,7 @@ export const VPSVirtualMachineApiFactory = function (configuration?: Configurati
31476
31931
  return localVarFp.startVirtualMachineV1(virtualMachineId, options).then((request) => request(axios, basePath));
31477
31932
  },
31478
31933
  /**
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.
31934
+ * 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
31935
  * @summary Stop virtual machine
31481
31936
  * @param {number} virtualMachineId Virtual Machine ID
31482
31937
  * @param {*} [options] Override http request option.
@@ -31672,7 +32127,7 @@ export class VPSVirtualMachineApi extends BaseAPI {
31672
32127
  }
31673
32128
 
31674
32129
  /**
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.
32130
+ * 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
32131
  * @summary Stop virtual machine
31677
32132
  * @param {number} virtualMachineId Virtual Machine ID
31678
32133
  * @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.25.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.25.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.25.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.24.0",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };