hostinger-api-sdk 1.23.0 → 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.23.0
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.23.0 --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.24.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};
@@ -16179,7 +16388,7 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration?: Config
16179
16388
  baseOptions = configuration.baseOptions;
16180
16389
  }
16181
16390
 
16182
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
16391
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
16183
16392
  const localVarHeaderParameter = {} as any;
16184
16393
  const localVarQueryParameter = {} as any;
16185
16394
 
@@ -16246,6 +16455,30 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration?: Config
16246
16455
  export const DomainsWHOISApiFp = function(configuration?: Configuration) {
16247
16456
  const localVarAxiosParamCreator = DomainsWHOISApiAxiosParamCreator(configuration)
16248
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
+ },
16249
16482
  /**
16250
16483
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
16251
16484
  * @summary Create WHOIS profile
@@ -16270,6 +16503,18 @@ export const DomainsWHOISApiFp = function(configuration?: Configuration) {
16270
16503
  const localVarOperationServerBasePath = operationServerMap['DomainsWHOISApi.deleteWHOISProfileV1']?.[0]?.url;
16271
16504
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16272
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
+ },
16273
16518
  /**
16274
16519
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
16275
16520
  * @summary Get WHOIS profile list
@@ -16340,6 +16585,26 @@ export const DomainsWHOISApiFp = function(configuration?: Configuration) {
16340
16585
  export const DomainsWHOISApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
16341
16586
  const localVarFp = DomainsWHOISApiFp(configuration)
16342
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
+ },
16343
16608
  /**
16344
16609
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
16345
16610
  * @summary Create WHOIS profile
@@ -16360,6 +16625,16 @@ export const DomainsWHOISApiFactory = function (configuration?: Configuration, b
16360
16625
  deleteWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
16361
16626
  return localVarFp.deleteWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
16362
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
+ },
16363
16638
  /**
16364
16639
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
16365
16640
  * @summary Get WHOIS profile list
@@ -16420,6 +16695,30 @@ export const DomainsWHOISApiFactory = function (configuration?: Configuration, b
16420
16695
  * @extends {BaseAPI}
16421
16696
  */
16422
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
+
16423
16722
  /**
16424
16723
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
16425
16724
  * @summary Create WHOIS profile
@@ -16444,6 +16743,18 @@ export class DomainsWHOISApi extends BaseAPI {
16444
16743
  return DomainsWHOISApiFp(this.configuration).deleteWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
16445
16744
  }
16446
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
+
16447
16758
  /**
16448
16759
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
16449
16760
  * @summary Get WHOIS profile list
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.24.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.24.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.24.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.23.0",
51
+ 'User-Agent': "hostinger-typescript-sdk/1.24.0",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };