hostinger-api-sdk 1.25.0 → 1.26.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/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.26.0
6
+ * API Version: 1.27.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.26.0
4
+ * API Version: 1.27.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.26.0
7
+ * API Version: 1.27.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
@@ -4,6 +4,7 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**claimFreeDomainV1**](#claimfreedomainv1) | **POST** /api/domains/v1/portfolio/claim | Claim free domain|
7
8
  |[**disableDomainLockV1**](#disabledomainlockv1) | **DELETE** /api/domains/v1/portfolio/{domain}/domain-lock | Disable domain lock|
8
9
  |[**disablePrivacyProtectionV1**](#disableprivacyprotectionv1) | **DELETE** /api/domains/v1/portfolio/{domain}/privacy-protection | Disable privacy protection|
9
10
  |[**enableDomainLockV1**](#enabledomainlockv1) | **PUT** /api/domains/v1/portfolio/{domain}/domain-lock | Enable domain lock|
@@ -15,6 +16,61 @@ All URIs are relative to *https://developers.hostinger.com*
15
16
  |[**purchaseNewDomainV1**](#purchasenewdomainv1) | **POST** /api/domains/v1/portfolio | Purchase new domain|
16
17
  |[**updateDomainNameserversV1**](#updatedomainnameserversv1) | **PUT** /api/domains/v1/portfolio/{domain}/nameservers | Update domain nameservers|
17
18
 
19
+ # **claimFreeDomainV1**
20
+ > DomainsV1PortfolioClaimResource claimFreeDomainV1(domainsV1PortfolioClaimRequest)
21
+
22
+ Claim a free domain available on your account and register it. Unlike purchasing a domain, this consumes a free domain you already have, so no payment method is required. A successful response means the domain is registered. If registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status. If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Some TLDs require `additional_details` to be provided and these will be validated before claiming. Requests which cannot be fulfilled are rejected with an error code in the response body, for example `2037` when no free domain is available. Use this endpoint to register a domain using a free domain from your account.
23
+
24
+ ### Example
25
+
26
+ ```typescript
27
+ import {
28
+ DomainsPortfolioApi,
29
+ Configuration,
30
+ DomainsV1PortfolioClaimRequest
31
+ } from 'hostinger-api-sdk';
32
+
33
+ const configuration = new Configuration();
34
+ const apiInstance = new DomainsPortfolioApi(configuration);
35
+
36
+ let domainsV1PortfolioClaimRequest: DomainsV1PortfolioClaimRequest; //
37
+
38
+ const { status, data } = await apiInstance.claimFreeDomainV1(
39
+ domainsV1PortfolioClaimRequest
40
+ );
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ |Name | Type | Description | Notes|
46
+ |------------- | ------------- | ------------- | -------------|
47
+ | **domainsV1PortfolioClaimRequest** | **DomainsV1PortfolioClaimRequest**| | |
48
+
49
+
50
+ ### Return type
51
+
52
+ **DomainsV1PortfolioClaimResource**
53
+
54
+ ### Authorization
55
+
56
+ [apiToken](../README.md#apiToken)
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: application/json
61
+ - **Accept**: application/json
62
+
63
+
64
+ ### HTTP response details
65
+ | Status code | Description | Response headers |
66
+ |-------------|-------------|------------------|
67
+ |**200** | Success response | - |
68
+ |**422** | Validation error response | - |
69
+ |**401** | Unauthenticated response | - |
70
+ |**500** | Error response | - |
71
+
72
+ [[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)
73
+
18
74
  # **disableDomainLockV1**
19
75
  > CommonSuccessEmptyResource disableDomainLockV1()
20
76
 
@@ -4,9 +4,65 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**claimFreeDomainTransferV1**](#claimfreedomaintransferv1) | **POST** /api/domains/v1/transfers/claim | Claim free domain transfer|
7
8
  |[**getTransferListV1**](#gettransferlistv1) | **GET** /api/domains/v1/transfers | Get transfer list|
8
9
  |[**getTransferV1**](#gettransferv1) | **GET** /api/domains/v1/transfers/{domain} | Get transfer|
9
10
 
11
+ # **claimFreeDomainTransferV1**
12
+ > DomainsV1TransferTransferResource claimFreeDomainTransferV1(domainsV1TransferClaimRequest)
13
+
14
+ Claim a free domain transfer available on your account and start the transfer. Unlike purchasing a transfer, this consumes a free domain transfer you already have, so no payment method is required. Before making request, unlock the domain at the current registrar and get its authorization code. The transfer is validated first, so domains which cannot be transferred are rejected before the free domain transfer is consumed. A successful response means the transfer has been started. Completion depends on the current registrar and can be followed with the [transfer list endpoint](#tag/domains-transfer). If no WHOIS information is provided, default contact information for that TLD will be used. Before making request, ensure WHOIS information for desired TLD exists in your account. Requests which cannot be fulfilled are rejected with an error code in the response body. Use this endpoint to transfer a domain using a free domain transfer from your account.
15
+
16
+ ### Example
17
+
18
+ ```typescript
19
+ import {
20
+ DomainsTransferApi,
21
+ Configuration,
22
+ DomainsV1TransferClaimRequest
23
+ } from 'hostinger-api-sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new DomainsTransferApi(configuration);
27
+
28
+ let domainsV1TransferClaimRequest: DomainsV1TransferClaimRequest; //
29
+
30
+ const { status, data } = await apiInstance.claimFreeDomainTransferV1(
31
+ domainsV1TransferClaimRequest
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **domainsV1TransferClaimRequest** | **DomainsV1TransferClaimRequest**| | |
40
+
41
+
42
+ ### Return type
43
+
44
+ **DomainsV1TransferTransferResource**
45
+
46
+ ### Authorization
47
+
48
+ [apiToken](../README.md#apiToken)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: application/json
53
+ - **Accept**: application/json
54
+
55
+
56
+ ### HTTP response details
57
+ | Status code | Description | Response headers |
58
+ |-------------|-------------|------------------|
59
+ |**200** | Success response | - |
60
+ |**422** | Validation error response | - |
61
+ |**401** | Unauthenticated response | - |
62
+ |**500** | Error response | - |
63
+
64
+ [[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)
65
+
10
66
  # **getTransferListV1**
11
67
  > Array<DomainsV1TransferTransferResource> getTransferListV1()
12
68
 
@@ -0,0 +1,24 @@
1
+ # DomainsV1PortfolioClaimRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | Domain name | [default to undefined]
9
+ **domain_contacts** | [**DomainsV1PortfolioClaimRequestDomainContacts**](DomainsV1PortfolioClaimRequestDomainContacts.md) | | [optional] [default to undefined]
10
+ **additional_details** | **object** | Additional registration data, possible values depends on TLD | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { DomainsV1PortfolioClaimRequest } from 'hostinger-api-sdk';
16
+
17
+ const instance: DomainsV1PortfolioClaimRequest = {
18
+ domain,
19
+ domain_contacts,
20
+ additional_details,
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)
@@ -1,4 +1,4 @@
1
- # DomainsV1PortfolioPurchaseRequestDomainContacts
1
+ # DomainsV1PortfolioClaimRequestDomainContacts
2
2
 
3
3
  Domain contact information
4
4
 
@@ -14,9 +14,9 @@ Name | Type | Description | Notes
14
14
  ## Example
15
15
 
16
16
  ```typescript
17
- import { DomainsV1PortfolioPurchaseRequestDomainContacts } from 'hostinger-api-sdk';
17
+ import { DomainsV1PortfolioClaimRequestDomainContacts } from 'hostinger-api-sdk';
18
18
 
19
- const instance: DomainsV1PortfolioPurchaseRequestDomainContacts = {
19
+ const instance: DomainsV1PortfolioClaimRequestDomainContacts = {
20
20
  owner_id,
21
21
  admin_id,
22
22
  billing_id,
@@ -0,0 +1,24 @@
1
+ # DomainsV1PortfolioClaimResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | Domain name | [optional] [default to undefined]
9
+ **status** | **string** | Domain status | [optional] [default to undefined]
10
+ **created_at** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { DomainsV1PortfolioClaimResource } from 'hostinger-api-sdk';
16
+
17
+ const instance: DomainsV1PortfolioClaimResource = {
18
+ domain,
19
+ status,
20
+ created_at,
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)
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **domain** | **string** | Domain name | [default to undefined]
9
9
  **item_id** | **string** | Catalog price item ID | [default to undefined]
10
10
  **payment_method_id** | **number** | Payment method ID, default will be used if not provided | [optional] [default to undefined]
11
- **domain_contacts** | [**DomainsV1PortfolioPurchaseRequestDomainContacts**](DomainsV1PortfolioPurchaseRequestDomainContacts.md) | | [optional] [default to undefined]
11
+ **domain_contacts** | [**DomainsV1PortfolioClaimRequestDomainContacts**](DomainsV1PortfolioClaimRequestDomainContacts.md) | | [optional] [default to undefined]
12
12
  **additional_details** | **object** | Additional registration data, possible values depends on TLD | [optional] [default to undefined]
13
13
  **coupons** | **Array&lt;any&gt;** | Discount coupon codes | [optional] [default to undefined]
14
14
 
@@ -0,0 +1,26 @@
1
+ # DomainsV1TransferClaimRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **domain** | **string** | Domain name | [default to undefined]
9
+ **auth_code** | **string** | Authorization code from the current registrar | [default to undefined]
10
+ **domain_contacts** | [**DomainsV1PortfolioClaimRequestDomainContacts**](DomainsV1PortfolioClaimRequestDomainContacts.md) | | [optional] [default to undefined]
11
+ **should_keep_ns** | **boolean** | Keep the existing nameservers of the domain | [optional] [default to true]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { DomainsV1TransferClaimRequest } from 'hostinger-api-sdk';
17
+
18
+ const instance: DomainsV1TransferClaimRequest = {
19
+ domain,
20
+ auth_code,
21
+ domain_contacts,
22
+ should_keep_ns,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.26.0
6
+ * API Version: 1.27.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.25.0",
3
+ "version": "1.26.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {