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.
@@ -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
@@ -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
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.23.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.24.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.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/index.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
package/dist/index.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/index.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
@@ -0,0 +1,32 @@
1
+ # DomainsV1IRTPVerificationResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | Domain name | [optional] [default to undefined]
9
+ **status** | **string** | IRTP verification status | [optional] [default to undefined]
10
+ **old_confirmed_at** | **string** | When the old registrant confirmed the change | [optional] [default to undefined]
11
+ **new_confirmed_at** | **string** | When the new registrant confirmed the change | [optional] [default to undefined]
12
+ **old_whois_profile_email** | **string** | Email the old registrant confirmation was sent to | [optional] [default to undefined]
13
+ **new_whois_profile_email** | **string** | Email the new registrant confirmation was sent to | [optional] [default to undefined]
14
+ **expires_at** | **string** | When the verification auto-cancels if unconfirmed | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { DomainsV1IRTPVerificationResource } from 'hostinger-api-sdk';
20
+
21
+ const instance: DomainsV1IRTPVerificationResource = {
22
+ domain,
23
+ status,
24
+ old_confirmed_at,
25
+ new_confirmed_at,
26
+ old_whois_profile_email,
27
+ new_whois_profile_email,
28
+ expires_at,
29
+ };
30
+ ```
31
+
32
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # DomainsV1WHOISChangeUpdateRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **new_whois_id** | **number** | WHOIS profile ID to assign to the domain | [default to undefined]
9
+ **domain** | **string** | Domain name | [default to undefined]
10
+ **change_for** | **Array<string>** | Contact roles to repoint to the new WHOIS profile | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { DomainsV1WHOISChangeUpdateRequest } from 'hostinger-api-sdk';
16
+
17
+ const instance: DomainsV1WHOISChangeUpdateRequest = {
18
+ new_whois_id,
19
+ domain,
20
+ change_for,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -4,14 +4,125 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**cancelPendingIRTPVerificationV1**](#cancelpendingirtpverificationv1) | **DELETE** /api/domains/v1/irtp/{domain} | Cancel pending IRTP verification|
8
+ |[**changeWHOISProfileForDomainV1**](#changewhoisprofilefordomainv1) | **PUT** /api/domains/v1/whois/change | Change WHOIS profile for domain|
7
9
  |[**createWHOISProfileV1**](#createwhoisprofilev1) | **POST** /api/domains/v1/whois | Create WHOIS profile|
8
10
  |[**deleteWHOISProfileV1**](#deletewhoisprofilev1) | **DELETE** /api/domains/v1/whois/{whoisId} | Delete WHOIS profile|
11
+ |[**getPendingIRTPVerificationV1**](#getpendingirtpverificationv1) | **GET** /api/domains/v1/irtp/{domain} | Get pending IRTP verification|
9
12
  |[**getWHOISProfileListV1**](#getwhoisprofilelistv1) | **GET** /api/domains/v1/whois | Get WHOIS profile list|
10
13
  |[**getWHOISProfileUsageV1**](#getwhoisprofileusagev1) | **GET** /api/domains/v1/whois/{whoisId}/usage | Get WHOIS profile usage|
11
14
  |[**getWHOISProfileV1**](#getwhoisprofilev1) | **GET** /api/domains/v1/whois/{whoisId} | Get WHOIS profile|
12
- |[**setWHOISProfileAsDefaultV1**](#setwhoisprofileasdefaultv1) | **PATCH** /api/domains/v1/whois/default/{whoisId} | Set WHOIS profile as default|
15
+ |[**setWHOISProfileAsDefaultV1**](#setwhoisprofileasdefaultv1) | **PUT** /api/domains/v1/whois/default/{whoisId} | Set WHOIS profile as default|
13
16
  |[**unsetDefaultWHOISProfileV1**](#unsetdefaultwhoisprofilev1) | **DELETE** /api/domains/v1/whois/default/{whoisId} | Unset default WHOIS profile|
14
17
 
18
+ # **cancelPendingIRTPVerificationV1**
19
+ > CommonSuccessEmptyResource cancelPendingIRTPVerificationV1()
20
+
21
+ 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.
22
+
23
+ ### Example
24
+
25
+ ```typescript
26
+ import {
27
+ DomainsWHOISApi,
28
+ Configuration
29
+ } from 'hostinger-api-sdk';
30
+
31
+ const configuration = new Configuration();
32
+ const apiInstance = new DomainsWHOISApi(configuration);
33
+
34
+ let domain: string; //Domain name (default to undefined)
35
+
36
+ const { status, data } = await apiInstance.cancelPendingIRTPVerificationV1(
37
+ domain
38
+ );
39
+ ```
40
+
41
+ ### Parameters
42
+
43
+ |Name | Type | Description | Notes|
44
+ |------------- | ------------- | ------------- | -------------|
45
+ | **domain** | [**string**] | Domain name | defaults to undefined|
46
+
47
+
48
+ ### Return type
49
+
50
+ **CommonSuccessEmptyResource**
51
+
52
+ ### Authorization
53
+
54
+ [apiToken](../README.md#apiToken)
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: Not defined
59
+ - **Accept**: application/json
60
+
61
+
62
+ ### HTTP response details
63
+ | Status code | Description | Response headers |
64
+ |-------------|-------------|------------------|
65
+ |**200** | Success empty response | - |
66
+ |**401** | Unauthenticated response | - |
67
+ |**500** | Error response | - |
68
+
69
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
70
+
71
+ # **changeWHOISProfileForDomainV1**
72
+ > CommonSuccessEmptyResource changeWHOISProfileForDomainV1(domainsV1WHOISChangeUpdateRequest)
73
+
74
+ 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.
75
+
76
+ ### Example
77
+
78
+ ```typescript
79
+ import {
80
+ DomainsWHOISApi,
81
+ Configuration,
82
+ DomainsV1WHOISChangeUpdateRequest
83
+ } from 'hostinger-api-sdk';
84
+
85
+ const configuration = new Configuration();
86
+ const apiInstance = new DomainsWHOISApi(configuration);
87
+
88
+ let domainsV1WHOISChangeUpdateRequest: DomainsV1WHOISChangeUpdateRequest; //
89
+
90
+ const { status, data } = await apiInstance.changeWHOISProfileForDomainV1(
91
+ domainsV1WHOISChangeUpdateRequest
92
+ );
93
+ ```
94
+
95
+ ### Parameters
96
+
97
+ |Name | Type | Description | Notes|
98
+ |------------- | ------------- | ------------- | -------------|
99
+ | **domainsV1WHOISChangeUpdateRequest** | **DomainsV1WHOISChangeUpdateRequest**| | |
100
+
101
+
102
+ ### Return type
103
+
104
+ **CommonSuccessEmptyResource**
105
+
106
+ ### Authorization
107
+
108
+ [apiToken](../README.md#apiToken)
109
+
110
+ ### HTTP request headers
111
+
112
+ - **Content-Type**: application/json
113
+ - **Accept**: application/json
114
+
115
+
116
+ ### HTTP response details
117
+ | Status code | Description | Response headers |
118
+ |-------------|-------------|------------------|
119
+ |**200** | Success empty response | - |
120
+ |**422** | Validation error response | - |
121
+ |**401** | Unauthenticated response | - |
122
+ |**500** | Error response | - |
123
+
124
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
125
+
15
126
  # **createWHOISProfileV1**
16
127
  > DomainsV1WHOISProfileResource createWHOISProfileV1(domainsV1WHOISStoreRequest)
17
128
 
@@ -111,6 +222,59 @@ const { status, data } = await apiInstance.deleteWHOISProfileV1(
111
222
  - **Accept**: application/json
112
223
 
113
224
 
225
+ ### HTTP response details
226
+ | Status code | Description | Response headers |
227
+ |-------------|-------------|------------------|
228
+ |**200** | Success response | - |
229
+ |**401** | Unauthenticated response | - |
230
+ |**500** | Error response | - |
231
+
232
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
233
+
234
+ # **getPendingIRTPVerificationV1**
235
+ > DomainsV1IRTPVerificationResource getPendingIRTPVerificationV1()
236
+
237
+ 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.
238
+
239
+ ### Example
240
+
241
+ ```typescript
242
+ import {
243
+ DomainsWHOISApi,
244
+ Configuration
245
+ } from 'hostinger-api-sdk';
246
+
247
+ const configuration = new Configuration();
248
+ const apiInstance = new DomainsWHOISApi(configuration);
249
+
250
+ let domain: string; //Domain name (default to undefined)
251
+
252
+ const { status, data } = await apiInstance.getPendingIRTPVerificationV1(
253
+ domain
254
+ );
255
+ ```
256
+
257
+ ### Parameters
258
+
259
+ |Name | Type | Description | Notes|
260
+ |------------- | ------------- | ------------- | -------------|
261
+ | **domain** | [**string**] | Domain name | defaults to undefined|
262
+
263
+
264
+ ### Return type
265
+
266
+ **DomainsV1IRTPVerificationResource**
267
+
268
+ ### Authorization
269
+
270
+ [apiToken](../README.md#apiToken)
271
+
272
+ ### HTTP request headers
273
+
274
+ - **Content-Type**: Not defined
275
+ - **Accept**: application/json
276
+
277
+
114
278
  ### HTTP response details
115
279
  | Status code | Description | Response headers |
116
280
  |-------------|-------------|------------------|
package/index.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "1.23.0",
3
+ "version": "1.24.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {