hostinger-api-sdk 2.11.1 → 2.12.1

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.
@@ -12,7 +12,7 @@ All URIs are relative to *https://developers.hostinger.com*
12
12
  # **createDomainForwardingV1**
13
13
  > DomainsV1ForwardingForwardingResource createDomainForwardingV1(domainsV1ForwardingStoreRequest)
14
14
 
15
- Create domain forwarding configuration. Use this endpoint to set up domain redirects to other URLs.
15
+ Create domain forwarding configuration. Creating a forwarding changes the domain\'s DNS. If the domain does not use Hostinger nameservers, they are switched to Hostinger\'s nameservers automatically, so website, email and other services whose DNS is hosted elsewhere stop working. The root (@) A and AAAA records in the domain\'s Hostinger DNS zone are also replaced with records pointing to Hostinger, even when the domain already uses Hostinger nameservers. The domain\'s current nameservers are returned by the [domain details endpoint](#tag/domains-portfolio); confirm with the user before creating a forwarding on a domain that uses other nameservers. DNS changes can take some time to propagate. Use this endpoint to set up domain redirects to other URLs.
16
16
 
17
17
  ### Example
18
18
 
@@ -173,7 +173,7 @@ const { status, data } = await apiInstance.getDomainForwardingV1(
173
173
  # **updateDomainForwardingV1**
174
174
  > DomainsV1ForwardingForwardingResource updateDomainForwardingV1(domainsV1ForwardingUpdateRequest)
175
175
 
176
- Update domain forwarding configuration. Use this endpoint to modify existing redirect configuration for domains.
176
+ Update domain forwarding configuration. Updating a forwarding changes the domain\'s DNS. If the domain does not use Hostinger nameservers, they are switched to Hostinger\'s nameservers automatically, so website, email and other services whose DNS is hosted elsewhere stop working. The root (@) A and AAAA records in the domain\'s Hostinger DNS zone are also replaced with records pointing to Hostinger, even when the domain already uses Hostinger nameservers. The domain\'s current nameservers are returned by the [domain details endpoint](#tag/domains-portfolio); confirm with the user before updating a forwarding on a domain that uses other nameservers. DNS changes can take some time to propagate. Use this endpoint to modify existing redirect configuration for domains.
177
177
 
178
178
  ### Example
179
179
 
@@ -75,7 +75,7 @@ const { status, data } = await apiInstance.claimFreeDomainV1(
75
75
  # **completeDomainSetupV1**
76
76
  > CommonSuccessEmptyResource completeDomainSetupV1(domainsV1PortfolioSetupRequest)
77
77
 
78
- Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and with privacy protection. Use `Update domain nameservers` and `Disable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. Use this endpoint to finish registering a domain that is awaiting setup on your account.
78
+ Register a domain you have already paid for but which has not been set up yet. Use this endpoint when an order completed without registering the domain, for example when `Purchase new domain` returned `202 Accepted` and the domain was added to your account without being registered, or when an earlier setup attempt failed. No new order is placed and no payment is taken: the subscription you already own is used, for the period you already paid for. A domain is left awaiting setup when the details needed to register it were missing or invalid as the order completed. Domains ordered elsewhere can be awaiting setup for the same reason. Complete the missing information, then call this endpoint. If the order itself has not completed yet, the domain is not on your account, wait until it appears in `Get domain list`. If `domain_contacts` is omitted, the default WHOIS profile of that TLD is used for all four roles. The profile must exist and be complete for the TLD, an incomplete profile is the most common reason a domain is left awaiting setup. Create one with `Create WHOIS profile`. Some TLDs require `additional_details`. These are validated before setup, so a missing or invalid value is rejected without any registration being attempted. The domain is set up with the default nameservers and with privacy protection. Use `Update domain nameservers` and `Disable privacy protection` afterwards to change either. A successful response means the setup request was accepted, not that the domain is already registered. Poll `Get domain list` for the outcome, the domain appears in `Get domain details` only once it is registered. When the domain is held for verification, its `verification` field in `Get domain list` says what registration waits for. Use this endpoint to finish registering a domain that is awaiting setup on your account.
79
79
 
80
80
  ### Example
81
81
 
@@ -399,7 +399,7 @@ const { status, data } = await apiInstance.getDomainAuthorizationCodeV1(
399
399
  # **getDomainDetailsV1**
400
400
  > DomainsV1DomainDomainExtendedResource getDomainDetailsV1()
401
401
 
402
- Retrieve detailed information for specified domain. Use this endpoint to view comprehensive domain configuration and status.
402
+ Retrieve detailed information for specified domain. A domain is found here only once it is registered. Until then, `Get domain list` shows it, and its `verification` field says what registration waits for when the domain is held for verification. Use this endpoint to view comprehensive domain configuration and status.
403
403
 
404
404
  ### Example
405
405
 
@@ -452,7 +452,7 @@ const { status, data } = await apiInstance.getDomainDetailsV1(
452
452
  # **getDomainListV1**
453
453
  > Array<DomainsV1DomainDomainResource> getDomainListV1()
454
454
 
455
- Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. Use this endpoint to view user\'s domain portfolio.
455
+ Retrieve all domains associated with your account. A plan can include both a free domain (`type: free_domain`) and a free domain transfer (`type: free_domain_transfer`). They are alternatives: claiming one removes the other, which may still be listed for a short time after the claim. A domain held for verification before it is registered has `status: pending_verification`, and its `verification` field says what registration waits for: a manual review, an SMS code, or owner contact verification. Use this endpoint to view user\'s domain portfolio.
456
456
 
457
457
  ### Example
458
458
 
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **status** | **string** | | [optional] [default to undefined]
12
12
  **created_at** | **string** | | [optional] [default to undefined]
13
13
  **expires_at** | **string** | | [optional] [default to undefined]
14
+ **verification** | [**DomainsV1DomainDomainVerificationResource**](DomainsV1DomainDomainVerificationResource.md) | | [optional] [default to undefined]
14
15
 
15
16
  ## Example
16
17
 
@@ -24,6 +25,7 @@ const instance: DomainsV1DomainDomainResource = {
24
25
  status,
25
26
  created_at,
26
27
  expires_at,
28
+ verification,
27
29
  };
28
30
  ```
29
31
 
@@ -0,0 +1,20 @@
1
+ # DomainsV1DomainDomainVerificationResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **type** | **string** | What registration waits for: - &#x60;manual_review&#x60;: a check you cannot complete yourself, such as a review of the order by Hostinger. You have nothing to do. - &#x60;sms_code&#x60;: a code was sent by SMS to the phone number of the owner WHOIS profile. Enter it in [hPanel](https://hpanel.hostinger.com/). - &#x60;contact_verification&#x60;: the registry requires the owner WHOIS profile to be verified first, by email, phone number or contact name. Complete it in [hPanel](https://hpanel.hostinger.com/); registration resumes once the profile is verified. | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { DomainsV1DomainDomainVerificationResource } from '@hostinger/sdk';
14
+
15
+ const instance: DomainsV1DomainDomainVerificationResource = {
16
+ type,
17
+ };
18
+ ```
19
+
20
+ [[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: 2.11.1
6
+ * API Version: 2.12.1
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": "2.11.1",
3
+ "version": "2.12.1",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {