hostinger-api-sdk 2.12.4 → 2.13.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.
- package/README.md +2 -2
- package/api.ts +70 -11
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +67 -11
- package/dist/api.js +27 -22
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +67 -11
- package/dist/esm/api.js +14 -9
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/DomainsPortfolioApi.md +1 -1
- package/docs/DomainsV1DomainDomainContactVerificationChannelResource.md +22 -0
- package/docs/DomainsV1DomainDomainContactVerificationResource.md +24 -0
- package/docs/DomainsV1DomainDomainExtendedResource.md +2 -0
- package/docs/DomainsV1WHOISStoreRequest.md +2 -2
- package/docs/DomainsWHOISApi.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.13.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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.13.1
|
|
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: 2.
|
|
6
|
+
* API Version: 2.13.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
|
|
@@ -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/2.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.13.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.13.1
|
|
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: 2.
|
|
6
|
+
* API Version: 2.13.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/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.13.1
|
|
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: 2.
|
|
7
|
+
* API Version: 2.13.1
|
|
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
|
|
@@ -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. 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.
|
|
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. After registration, the registry may require the owner contact to be verified by email, phone number or contact name before a deadline, after which the domain is suspended. The `contact_verification` field shows what needs verifying, its state and the deadline. Use this endpoint to view comprehensive domain configuration and status.
|
|
403
403
|
|
|
404
404
|
### Example
|
|
405
405
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# DomainsV1DomainDomainContactVerificationChannelResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**status** | **string** | - `pending`: not verified yet. Verify it in [hPanel](https://hpanel.hostinger.com/) before `ends_at`. - `verified`: verified, or never required for this TLD. Nothing to do. - `suspended`: not verified in time, so the domain is suspended until the owner contact is verified in [hPanel](https://hpanel.hostinger.com/). | [optional] [default to undefined]
|
|
9
|
+
**ends_at** | **string** | Deadline to verify by while `status` is `pending`, after which the domain is suspended. It can still hold the past deadline once the channel is `verified` or `suspended`. | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { DomainsV1DomainDomainContactVerificationChannelResource } from '@hostinger/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: DomainsV1DomainDomainContactVerificationChannelResource = {
|
|
17
|
+
status,
|
|
18
|
+
ends_at,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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
|
+
# DomainsV1DomainDomainContactVerificationResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**email** | [**DomainsV1DomainDomainContactVerificationChannelResource**](DomainsV1DomainDomainContactVerificationChannelResource.md) | | [optional] [default to undefined]
|
|
9
|
+
**phone** | [**DomainsV1DomainDomainContactVerificationChannelResource**](DomainsV1DomainDomainContactVerificationChannelResource.md) | | [optional] [default to undefined]
|
|
10
|
+
**contact_name** | [**DomainsV1DomainDomainContactVerificationChannelResource**](DomainsV1DomainDomainContactVerificationChannelResource.md) | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { DomainsV1DomainDomainContactVerificationResource } from '@hostinger/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: DomainsV1DomainDomainContactVerificationResource = {
|
|
18
|
+
email,
|
|
19
|
+
phone,
|
|
20
|
+
contact_name,
|
|
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)
|
|
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
|
|
|
20
20
|
**_60_days_lock_expires_at** | **string** | | [optional] [default to undefined]
|
|
21
21
|
**registered_at** | **string** | | [optional] [default to undefined]
|
|
22
22
|
**expires_at** | **string** | | [optional] [default to undefined]
|
|
23
|
+
**contact_verification** | [**DomainsV1DomainDomainContactVerificationResource**](DomainsV1DomainDomainContactVerificationResource.md) | | [optional] [default to undefined]
|
|
23
24
|
|
|
24
25
|
## Example
|
|
25
26
|
|
|
@@ -42,6 +43,7 @@ const instance: DomainsV1DomainDomainExtendedResource = {
|
|
|
42
43
|
_60_days_lock_expires_at,
|
|
43
44
|
registered_at,
|
|
44
45
|
expires_at,
|
|
46
|
+
contact_verification,
|
|
45
47
|
};
|
|
46
48
|
```
|
|
47
49
|
|
|
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**tld** | **string** | TLD of the domain (without leading dot) | [default to undefined]
|
|
9
9
|
**country** | **string** | ISO 3166 2-letter country code | [default to undefined]
|
|
10
10
|
**entity_type** | **string** | Legal entity type | [default to undefined]
|
|
11
|
-
**tld_details** | **object** | TLD details | [optional] [default to undefined]
|
|
12
|
-
**whois_details** | **object** | WHOIS details | [default to undefined]
|
|
11
|
+
**tld_details** | **object** | TLD-specific details. The required keys depend on the TLD, country and entity type. | [optional] [default to undefined]
|
|
12
|
+
**whois_details** | **object** | WHOIS contact details. The required keys depend on the TLD, country and entity type, and can be country-specific (e.g. `state_lt` and `zip_lt` instead of `state` and `zip` for Lithuania). | [default to undefined]
|
|
13
13
|
|
|
14
14
|
## Example
|
|
15
15
|
|
package/docs/DomainsWHOISApi.md
CHANGED
|
@@ -126,7 +126,7 @@ const { status, data } = await apiInstance.changeWHOISProfileForDomainV1(
|
|
|
126
126
|
# **createWHOISProfileV1**
|
|
127
127
|
> DomainsV1WHOISProfileResource createWHOISProfileV1(domainsV1WHOISStoreRequest)
|
|
128
128
|
|
|
129
|
-
Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration.
|
|
129
|
+
Create WHOIS contact profile. Use this endpoint to add new contact information for domain registration. The keys required in `whois_details` and `tld_details` depend on the TLD, country and entity type, and can be country-specific: for Lithuania, for example, `state_lt` and `zip_lt` are required instead of `state` and `zip`. A 422 response lists every required key that is missing or has an invalid value under `errors.whois_details`, and under `errors.tld_details` when `tld_details` is sent. Each error states the key\'s constraint and, where the key takes a fixed set of values, the allowed values, so all of them can be corrected in one retry.
|
|
130
130
|
|
|
131
131
|
### Example
|
|
132
132
|
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.13.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
|