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/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.24.0
4
+ * API Version: 1.25.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.24.0
7
+ * API Version: 1.25.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.24.0
4
+ * API Version: 1.25.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/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.24.0
7
+ * API Version: 1.25.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.24.0
4
+ * API Version: 1.25.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.24.0
7
+ * API Version: 1.25.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -16,7 +16,7 @@ class Configuration {
16
16
  var _a;
17
17
  this.accessToken = param.accessToken;
18
18
  this.basePath = param.basePath;
19
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.23.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.24.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.24.0
4
+ * API Version: 1.25.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
@@ -2682,6 +2682,61 @@ export declare const DomainsV1ForwardingUpdateRequestRedirectTypeEnum: {
2682
2682
  readonly _302: "302";
2683
2683
  };
2684
2684
  export type DomainsV1ForwardingUpdateRequestRedirectTypeEnum = typeof DomainsV1ForwardingUpdateRequestRedirectTypeEnum[keyof typeof DomainsV1ForwardingUpdateRequestRedirectTypeEnum];
2685
+ /**
2686
+ *
2687
+ * @export
2688
+ * @interface DomainsV1IRTPVerificationResource
2689
+ */
2690
+ export interface DomainsV1IRTPVerificationResource {
2691
+ /**
2692
+ * Domain name
2693
+ * @type {string}
2694
+ * @memberof DomainsV1IRTPVerificationResource
2695
+ */
2696
+ 'domain': string;
2697
+ /**
2698
+ * IRTP verification status
2699
+ * @type {string}
2700
+ * @memberof DomainsV1IRTPVerificationResource
2701
+ */
2702
+ 'status': DomainsV1IRTPVerificationResourceStatusEnum;
2703
+ /**
2704
+ * When the old registrant confirmed the change
2705
+ * @type {string}
2706
+ * @memberof DomainsV1IRTPVerificationResource
2707
+ */
2708
+ 'old_confirmed_at': string | null;
2709
+ /**
2710
+ * When the new registrant confirmed the change
2711
+ * @type {string}
2712
+ * @memberof DomainsV1IRTPVerificationResource
2713
+ */
2714
+ 'new_confirmed_at': string | null;
2715
+ /**
2716
+ * Email the old registrant confirmation was sent to
2717
+ * @type {string}
2718
+ * @memberof DomainsV1IRTPVerificationResource
2719
+ */
2720
+ 'old_whois_profile_email': string;
2721
+ /**
2722
+ * Email the new registrant confirmation was sent to
2723
+ * @type {string}
2724
+ * @memberof DomainsV1IRTPVerificationResource
2725
+ */
2726
+ 'new_whois_profile_email': string;
2727
+ /**
2728
+ * When the verification auto-cancels if unconfirmed
2729
+ * @type {string}
2730
+ * @memberof DomainsV1IRTPVerificationResource
2731
+ */
2732
+ 'expires_at': string;
2733
+ }
2734
+ export declare const DomainsV1IRTPVerificationResourceStatusEnum: {
2735
+ readonly Pending: "pending";
2736
+ readonly Completed: "completed";
2737
+ readonly Canceled: "canceled";
2738
+ };
2739
+ export type DomainsV1IRTPVerificationResourceStatusEnum = typeof DomainsV1IRTPVerificationResourceStatusEnum[keyof typeof DomainsV1IRTPVerificationResourceStatusEnum];
2685
2740
  /**
2686
2741
  *
2687
2742
  * @export
@@ -2856,6 +2911,38 @@ export interface DomainsV1TransferTransferResource {
2856
2911
  */
2857
2912
  'completed_at': string | null;
2858
2913
  }
2914
+ /**
2915
+ *
2916
+ * @export
2917
+ * @interface DomainsV1WHOISChangeUpdateRequest
2918
+ */
2919
+ export interface DomainsV1WHOISChangeUpdateRequest {
2920
+ /**
2921
+ * WHOIS profile ID to assign to the domain
2922
+ * @type {number}
2923
+ * @memberof DomainsV1WHOISChangeUpdateRequest
2924
+ */
2925
+ 'new_whois_id': number;
2926
+ /**
2927
+ * Domain name
2928
+ * @type {string}
2929
+ * @memberof DomainsV1WHOISChangeUpdateRequest
2930
+ */
2931
+ 'domain': string;
2932
+ /**
2933
+ * Contact roles to repoint to the new WHOIS profile
2934
+ * @type {Array<string>}
2935
+ * @memberof DomainsV1WHOISChangeUpdateRequest
2936
+ */
2937
+ 'change_for': Array<DomainsV1WHOISChangeUpdateRequestChangeForEnum>;
2938
+ }
2939
+ export declare const DomainsV1WHOISChangeUpdateRequestChangeForEnum: {
2940
+ readonly Owner: "owner";
2941
+ readonly Admin: "admin";
2942
+ readonly Billing: "billing";
2943
+ readonly Tech: "tech";
2944
+ };
2945
+ export type DomainsV1WHOISChangeUpdateRequestChangeForEnum = typeof DomainsV1WHOISChangeUpdateRequestChangeForEnum[keyof typeof DomainsV1WHOISChangeUpdateRequestChangeForEnum];
2859
2946
  /**
2860
2947
  *
2861
2948
  * @export
@@ -12995,6 +13082,22 @@ export declare class DomainsTransferApi extends BaseAPI {
12995
13082
  * @export
12996
13083
  */
12997
13084
  export declare const DomainsWHOISApiAxiosParamCreator: (configuration?: Configuration) => {
13085
+ /**
13086
+ * 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.
13087
+ * @summary Cancel pending IRTP verification
13088
+ * @param {string} domain Domain name
13089
+ * @param {*} [options] Override http request option.
13090
+ * @throws {RequiredError}
13091
+ */
13092
+ cancelPendingIRTPVerificationV1: (domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13093
+ /**
13094
+ * 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.
13095
+ * @summary Change WHOIS profile for domain
13096
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
13097
+ * @param {*} [options] Override http request option.
13098
+ * @throws {RequiredError}
13099
+ */
13100
+ changeWHOISProfileForDomainV1: (domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12998
13101
  /**
12999
13102
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
13000
13103
  * @summary Create WHOIS profile
@@ -13011,6 +13114,14 @@ export declare const DomainsWHOISApiAxiosParamCreator: (configuration?: Configur
13011
13114
  * @throws {RequiredError}
13012
13115
  */
13013
13116
  deleteWHOISProfileV1: (whoisId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13117
+ /**
13118
+ * 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.
13119
+ * @summary Get pending IRTP verification
13120
+ * @param {string} domain Domain name
13121
+ * @param {*} [options] Override http request option.
13122
+ * @throws {RequiredError}
13123
+ */
13124
+ getPendingIRTPVerificationV1: (domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
13014
13125
  /**
13015
13126
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
13016
13127
  * @summary Get WHOIS profile list
@@ -13057,6 +13168,22 @@ export declare const DomainsWHOISApiAxiosParamCreator: (configuration?: Configur
13057
13168
  * @export
13058
13169
  */
13059
13170
  export declare const DomainsWHOISApiFp: (configuration?: Configuration) => {
13171
+ /**
13172
+ * 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.
13173
+ * @summary Cancel pending IRTP verification
13174
+ * @param {string} domain Domain name
13175
+ * @param {*} [options] Override http request option.
13176
+ * @throws {RequiredError}
13177
+ */
13178
+ cancelPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
13179
+ /**
13180
+ * 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.
13181
+ * @summary Change WHOIS profile for domain
13182
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
13183
+ * @param {*} [options] Override http request option.
13184
+ * @throws {RequiredError}
13185
+ */
13186
+ changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
13060
13187
  /**
13061
13188
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
13062
13189
  * @summary Create WHOIS profile
@@ -13073,6 +13200,14 @@ export declare const DomainsWHOISApiFp: (configuration?: Configuration) => {
13073
13200
  * @throws {RequiredError}
13074
13201
  */
13075
13202
  deleteWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
13203
+ /**
13204
+ * 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.
13205
+ * @summary Get pending IRTP verification
13206
+ * @param {string} domain Domain name
13207
+ * @param {*} [options] Override http request option.
13208
+ * @throws {RequiredError}
13209
+ */
13210
+ getPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DomainsV1IRTPVerificationResource>>;
13076
13211
  /**
13077
13212
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
13078
13213
  * @summary Get WHOIS profile list
@@ -13119,6 +13254,22 @@ export declare const DomainsWHOISApiFp: (configuration?: Configuration) => {
13119
13254
  * @export
13120
13255
  */
13121
13256
  export declare const DomainsWHOISApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
13257
+ /**
13258
+ * 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.
13259
+ * @summary Cancel pending IRTP verification
13260
+ * @param {string} domain Domain name
13261
+ * @param {*} [options] Override http request option.
13262
+ * @throws {RequiredError}
13263
+ */
13264
+ cancelPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
13265
+ /**
13266
+ * 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.
13267
+ * @summary Change WHOIS profile for domain
13268
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
13269
+ * @param {*} [options] Override http request option.
13270
+ * @throws {RequiredError}
13271
+ */
13272
+ changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
13122
13273
  /**
13123
13274
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
13124
13275
  * @summary Create WHOIS profile
@@ -13135,6 +13286,14 @@ export declare const DomainsWHOISApiFactory: (configuration?: Configuration, bas
13135
13286
  * @throws {RequiredError}
13136
13287
  */
13137
13288
  deleteWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
13289
+ /**
13290
+ * 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.
13291
+ * @summary Get pending IRTP verification
13292
+ * @param {string} domain Domain name
13293
+ * @param {*} [options] Override http request option.
13294
+ * @throws {RequiredError}
13295
+ */
13296
+ getPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig): AxiosPromise<DomainsV1IRTPVerificationResource>;
13138
13297
  /**
13139
13298
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
13140
13299
  * @summary Get WHOIS profile list
@@ -13183,6 +13342,24 @@ export declare const DomainsWHOISApiFactory: (configuration?: Configuration, bas
13183
13342
  * @extends {BaseAPI}
13184
13343
  */
13185
13344
  export declare class DomainsWHOISApi extends BaseAPI {
13345
+ /**
13346
+ * 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.
13347
+ * @summary Cancel pending IRTP verification
13348
+ * @param {string} domain Domain name
13349
+ * @param {*} [options] Override http request option.
13350
+ * @throws {RequiredError}
13351
+ * @memberof DomainsWHOISApi
13352
+ */
13353
+ cancelPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
13354
+ /**
13355
+ * 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.
13356
+ * @summary Change WHOIS profile for domain
13357
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
13358
+ * @param {*} [options] Override http request option.
13359
+ * @throws {RequiredError}
13360
+ * @memberof DomainsWHOISApi
13361
+ */
13362
+ changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
13186
13363
  /**
13187
13364
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
13188
13365
  * @summary Create WHOIS profile
@@ -13201,6 +13378,15 @@ export declare class DomainsWHOISApi extends BaseAPI {
13201
13378
  * @memberof DomainsWHOISApi
13202
13379
  */
13203
13380
  deleteWHOISProfileV1(whoisId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
13381
+ /**
13382
+ * 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.
13383
+ * @summary Get pending IRTP verification
13384
+ * @param {string} domain Domain name
13385
+ * @param {*} [options] Override http request option.
13386
+ * @throws {RequiredError}
13387
+ * @memberof DomainsWHOISApi
13388
+ */
13389
+ getPendingIRTPVerificationV1(domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DomainsV1IRTPVerificationResource, any, {}, any>>;
13204
13390
  /**
13205
13391
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
13206
13392
  * @summary Get WHOIS profile list
package/dist/esm/api.js 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
@@ -147,6 +147,17 @@ export const DomainsV1ForwardingUpdateRequestRedirectTypeEnum = {
147
147
  _301: '301',
148
148
  _302: '302'
149
149
  };
150
+ export const DomainsV1IRTPVerificationResourceStatusEnum = {
151
+ Pending: 'pending',
152
+ Completed: 'completed',
153
+ Canceled: 'canceled'
154
+ };
155
+ export const DomainsV1WHOISChangeUpdateRequestChangeForEnum = {
156
+ Owner: 'owner',
157
+ Admin: 'admin',
158
+ Billing: 'billing',
159
+ Tech: 'tech'
160
+ };
150
161
  export const DomainsV1WHOISProfileResourceEntityTypeEnum = {
151
162
  Individual: 'individual',
152
163
  Organization: 'organization'
@@ -5582,6 +5593,71 @@ export class DomainsTransferApi extends BaseAPI {
5582
5593
  */
5583
5594
  export const DomainsWHOISApiAxiosParamCreator = function (configuration) {
5584
5595
  return {
5596
+ /**
5597
+ * 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.
5598
+ * @summary Cancel pending IRTP verification
5599
+ * @param {string} domain Domain name
5600
+ * @param {*} [options] Override http request option.
5601
+ * @throws {RequiredError}
5602
+ */
5603
+ cancelPendingIRTPVerificationV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5604
+ // verify required parameter 'domain' is not null or undefined
5605
+ assertParamExists('cancelPendingIRTPVerificationV1', 'domain', domain);
5606
+ const localVarPath = `/api/domains/v1/irtp/{domain}`
5607
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5608
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5609
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5610
+ let baseOptions;
5611
+ if (configuration) {
5612
+ baseOptions = configuration.baseOptions;
5613
+ }
5614
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5615
+ const localVarHeaderParameter = {};
5616
+ const localVarQueryParameter = {};
5617
+ // authentication apiToken required
5618
+ // http bearer authentication required
5619
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5620
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5621
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5622
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5623
+ return {
5624
+ url: toPathString(localVarUrlObj),
5625
+ options: localVarRequestOptions,
5626
+ };
5627
+ }),
5628
+ /**
5629
+ * 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.
5630
+ * @summary Change WHOIS profile for domain
5631
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
5632
+ * @param {*} [options] Override http request option.
5633
+ * @throws {RequiredError}
5634
+ */
5635
+ changeWHOISProfileForDomainV1: (domainsV1WHOISChangeUpdateRequest_1, ...args_1) => __awaiter(this, [domainsV1WHOISChangeUpdateRequest_1, ...args_1], void 0, function* (domainsV1WHOISChangeUpdateRequest, options = {}) {
5636
+ // verify required parameter 'domainsV1WHOISChangeUpdateRequest' is not null or undefined
5637
+ assertParamExists('changeWHOISProfileForDomainV1', 'domainsV1WHOISChangeUpdateRequest', domainsV1WHOISChangeUpdateRequest);
5638
+ const localVarPath = `/api/domains/v1/whois/change`;
5639
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5640
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5641
+ let baseOptions;
5642
+ if (configuration) {
5643
+ baseOptions = configuration.baseOptions;
5644
+ }
5645
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5646
+ const localVarHeaderParameter = {};
5647
+ const localVarQueryParameter = {};
5648
+ // authentication apiToken required
5649
+ // http bearer authentication required
5650
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5651
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5652
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5653
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5654
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5655
+ localVarRequestOptions.data = serializeDataIfNeeded(domainsV1WHOISChangeUpdateRequest, localVarRequestOptions, configuration);
5656
+ return {
5657
+ url: toPathString(localVarUrlObj),
5658
+ options: localVarRequestOptions,
5659
+ };
5660
+ }),
5585
5661
  /**
5586
5662
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
5587
5663
  * @summary Create WHOIS profile
@@ -5647,6 +5723,38 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration) {
5647
5723
  options: localVarRequestOptions,
5648
5724
  };
5649
5725
  }),
5726
+ /**
5727
+ * 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.
5728
+ * @summary Get pending IRTP verification
5729
+ * @param {string} domain Domain name
5730
+ * @param {*} [options] Override http request option.
5731
+ * @throws {RequiredError}
5732
+ */
5733
+ getPendingIRTPVerificationV1: (domain_1, ...args_1) => __awaiter(this, [domain_1, ...args_1], void 0, function* (domain, options = {}) {
5734
+ // verify required parameter 'domain' is not null or undefined
5735
+ assertParamExists('getPendingIRTPVerificationV1', 'domain', domain);
5736
+ const localVarPath = `/api/domains/v1/irtp/{domain}`
5737
+ .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
5738
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5739
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5740
+ let baseOptions;
5741
+ if (configuration) {
5742
+ baseOptions = configuration.baseOptions;
5743
+ }
5744
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5745
+ const localVarHeaderParameter = {};
5746
+ const localVarQueryParameter = {};
5747
+ // authentication apiToken required
5748
+ // http bearer authentication required
5749
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
5750
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5751
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5752
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5753
+ return {
5754
+ url: toPathString(localVarUrlObj),
5755
+ options: localVarRequestOptions,
5756
+ };
5757
+ }),
5650
5758
  /**
5651
5759
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
5652
5760
  * @summary Get WHOIS profile list
@@ -5761,7 +5869,7 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration) {
5761
5869
  if (configuration) {
5762
5870
  baseOptions = configuration.baseOptions;
5763
5871
  }
5764
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
5872
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5765
5873
  const localVarHeaderParameter = {};
5766
5874
  const localVarQueryParameter = {};
5767
5875
  // authentication apiToken required
@@ -5816,6 +5924,36 @@ export const DomainsWHOISApiAxiosParamCreator = function (configuration) {
5816
5924
  export const DomainsWHOISApiFp = function (configuration) {
5817
5925
  const localVarAxiosParamCreator = DomainsWHOISApiAxiosParamCreator(configuration);
5818
5926
  return {
5927
+ /**
5928
+ * 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.
5929
+ * @summary Cancel pending IRTP verification
5930
+ * @param {string} domain Domain name
5931
+ * @param {*} [options] Override http request option.
5932
+ * @throws {RequiredError}
5933
+ */
5934
+ cancelPendingIRTPVerificationV1(domain, options) {
5935
+ return __awaiter(this, void 0, void 0, function* () {
5936
+ var _a, _b;
5937
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelPendingIRTPVerificationV1(domain, options);
5938
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.cancelPendingIRTPVerificationV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5939
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5940
+ });
5941
+ },
5942
+ /**
5943
+ * 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.
5944
+ * @summary Change WHOIS profile for domain
5945
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
5946
+ * @param {*} [options] Override http request option.
5947
+ * @throws {RequiredError}
5948
+ */
5949
+ changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options) {
5950
+ return __awaiter(this, void 0, void 0, function* () {
5951
+ var _a, _b;
5952
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options);
5953
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.changeWHOISProfileForDomainV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5954
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5955
+ });
5956
+ },
5819
5957
  /**
5820
5958
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
5821
5959
  * @summary Create WHOIS profile
@@ -5846,6 +5984,21 @@ export const DomainsWHOISApiFp = function (configuration) {
5846
5984
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5847
5985
  });
5848
5986
  },
5987
+ /**
5988
+ * 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.
5989
+ * @summary Get pending IRTP verification
5990
+ * @param {string} domain Domain name
5991
+ * @param {*} [options] Override http request option.
5992
+ * @throws {RequiredError}
5993
+ */
5994
+ getPendingIRTPVerificationV1(domain, options) {
5995
+ return __awaiter(this, void 0, void 0, function* () {
5996
+ var _a, _b;
5997
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPendingIRTPVerificationV1(domain, options);
5998
+ const localVarOperationServerBasePath = (_b = (_a = operationServerMap['DomainsWHOISApi.getPendingIRTPVerificationV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
5999
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6000
+ });
6001
+ },
5849
6002
  /**
5850
6003
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
5851
6004
  * @summary Get WHOIS profile list
@@ -5930,6 +6083,26 @@ export const DomainsWHOISApiFp = function (configuration) {
5930
6083
  export const DomainsWHOISApiFactory = function (configuration, basePath, axios) {
5931
6084
  const localVarFp = DomainsWHOISApiFp(configuration);
5932
6085
  return {
6086
+ /**
6087
+ * 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.
6088
+ * @summary Cancel pending IRTP verification
6089
+ * @param {string} domain Domain name
6090
+ * @param {*} [options] Override http request option.
6091
+ * @throws {RequiredError}
6092
+ */
6093
+ cancelPendingIRTPVerificationV1(domain, options) {
6094
+ return localVarFp.cancelPendingIRTPVerificationV1(domain, options).then((request) => request(axios, basePath));
6095
+ },
6096
+ /**
6097
+ * 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.
6098
+ * @summary Change WHOIS profile for domain
6099
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
6100
+ * @param {*} [options] Override http request option.
6101
+ * @throws {RequiredError}
6102
+ */
6103
+ changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options) {
6104
+ return localVarFp.changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options).then((request) => request(axios, basePath));
6105
+ },
5933
6106
  /**
5934
6107
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
5935
6108
  * @summary Create WHOIS profile
@@ -5950,6 +6123,16 @@ export const DomainsWHOISApiFactory = function (configuration, basePath, axios)
5950
6123
  deleteWHOISProfileV1(whoisId, options) {
5951
6124
  return localVarFp.deleteWHOISProfileV1(whoisId, options).then((request) => request(axios, basePath));
5952
6125
  },
6126
+ /**
6127
+ * 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.
6128
+ * @summary Get pending IRTP verification
6129
+ * @param {string} domain Domain name
6130
+ * @param {*} [options] Override http request option.
6131
+ * @throws {RequiredError}
6132
+ */
6133
+ getPendingIRTPVerificationV1(domain, options) {
6134
+ return localVarFp.getPendingIRTPVerificationV1(domain, options).then((request) => request(axios, basePath));
6135
+ },
5953
6136
  /**
5954
6137
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
5955
6138
  * @summary Get WHOIS profile list
@@ -6009,6 +6192,28 @@ export const DomainsWHOISApiFactory = function (configuration, basePath, axios)
6009
6192
  * @extends {BaseAPI}
6010
6193
  */
6011
6194
  export class DomainsWHOISApi extends BaseAPI {
6195
+ /**
6196
+ * 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.
6197
+ * @summary Cancel pending IRTP verification
6198
+ * @param {string} domain Domain name
6199
+ * @param {*} [options] Override http request option.
6200
+ * @throws {RequiredError}
6201
+ * @memberof DomainsWHOISApi
6202
+ */
6203
+ cancelPendingIRTPVerificationV1(domain, options) {
6204
+ return DomainsWHOISApiFp(this.configuration).cancelPendingIRTPVerificationV1(domain, options).then((request) => request(this.axios, this.basePath));
6205
+ }
6206
+ /**
6207
+ * 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.
6208
+ * @summary Change WHOIS profile for domain
6209
+ * @param {DomainsV1WHOISChangeUpdateRequest} domainsV1WHOISChangeUpdateRequest
6210
+ * @param {*} [options] Override http request option.
6211
+ * @throws {RequiredError}
6212
+ * @memberof DomainsWHOISApi
6213
+ */
6214
+ changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options) {
6215
+ return DomainsWHOISApiFp(this.configuration).changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest, options).then((request) => request(this.axios, this.basePath));
6216
+ }
6012
6217
  /**
6013
6218
  * Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
6014
6219
  * @summary Create WHOIS profile
@@ -6031,6 +6236,17 @@ export class DomainsWHOISApi extends BaseAPI {
6031
6236
  deleteWHOISProfileV1(whoisId, options) {
6032
6237
  return DomainsWHOISApiFp(this.configuration).deleteWHOISProfileV1(whoisId, options).then((request) => request(this.axios, this.basePath));
6033
6238
  }
6239
+ /**
6240
+ * 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.
6241
+ * @summary Get pending IRTP verification
6242
+ * @param {string} domain Domain name
6243
+ * @param {*} [options] Override http request option.
6244
+ * @throws {RequiredError}
6245
+ * @memberof DomainsWHOISApi
6246
+ */
6247
+ getPendingIRTPVerificationV1(domain, options) {
6248
+ return DomainsWHOISApiFp(this.configuration).getPendingIRTPVerificationV1(domain, options).then((request) => request(this.axios, this.basePath));
6249
+ }
6034
6250
  /**
6035
6251
  * Retrieve WHOIS contact profiles. Use this endpoint to view available contact profiles for domain registration.
6036
6252
  * @summary Get WHOIS profile list
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.24.0
4
+ * API Version: 1.25.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.24.0
4
+ * API Version: 1.25.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