hostinger-api-sdk 1.39.0 → 1.40.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 +518 -116
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +440 -66
- package/dist/api.js +199 -121
- 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 +440 -66
- package/dist/esm/api.js +189 -111
- 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/AgencyHostingListAgencyPlanWebsitesV1200Response.md +22 -0
- package/docs/AgencyHostingV1WebsitesBuilderWebsiteDetailsResource.md +28 -0
- package/docs/AgencyHostingV1WebsitesH5gWebsiteDetailsResource.md +46 -0
- package/docs/AgencyHostingV1WebsitesPlanResource.md +25 -0
- package/docs/AgencyHostingV1WebsitesU4sWebsiteDetailsResource.md +36 -0
- package/docs/AgencyHostingV1WebsitesWebsiteListItemResource.md +37 -0
- package/docs/AgencyHostingV1WebsitesWebsiteListItemResourceDetails.md +59 -0
- package/docs/AgencyHostingWebsitesApi.md +69 -0
- package/docs/HostingDatabasesApi.md +2 -2
- package/docs/HostingNodeJSApi.md +0 -62
- package/docs/HostingWebsitesApi.md +7 -4
- package/docs/WordPressInstallationsApi.md +2 -2
- package/docs/WordPressPluginsApi.md +2 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.42.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: 1.
|
|
4
|
+
* API Version: 1.42.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: 1.
|
|
7
|
+
* API Version: 1.42.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
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# AgencyHostingListAgencyPlanWebsitesV1200Response
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**data** | [**Array<AgencyHostingV1WebsitesWebsiteListItemResource>**](AgencyHostingV1WebsitesWebsiteListItemResource.md) | Array of [`AgencyHosting.V1.Websites.WebsiteListItemResource`](#model/agencyhostingv1websiteswebsitelistitemresource) | [optional] [default to undefined]
|
|
9
|
+
**meta** | [**CommonSchemaPaginationMetaSchema**](CommonSchemaPaginationMetaSchema.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AgencyHostingListAgencyPlanWebsitesV1200Response } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: AgencyHostingListAgencyPlanWebsitesV1200Response = {
|
|
17
|
+
data,
|
|
18
|
+
meta,
|
|
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,28 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesBuilderWebsiteDetailsResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | Builder ID | [optional] [default to undefined]
|
|
9
|
+
**vhost** | **string** | Domain name | [optional] [default to undefined]
|
|
10
|
+
**type** | **string** | Detected website type | [optional] [default to undefined]
|
|
11
|
+
**username** | **string** | Account username | [optional] [default to undefined]
|
|
12
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { AgencyHostingV1WebsitesBuilderWebsiteDetailsResource } from 'hostinger-api-sdk';
|
|
18
|
+
|
|
19
|
+
const instance: AgencyHostingV1WebsitesBuilderWebsiteDetailsResource = {
|
|
20
|
+
id,
|
|
21
|
+
vhost,
|
|
22
|
+
type,
|
|
23
|
+
username,
|
|
24
|
+
created_at,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[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,46 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesH5gWebsiteDetailsResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uid** | **string** | Website UID | [optional] [default to undefined]
|
|
9
|
+
**ipv4** | **string** | IPv4 address | [optional] [default to undefined]
|
|
10
|
+
**flavor** | **string** | Setup flavor | [optional] [default to undefined]
|
|
11
|
+
**type** | **string** | Detected website type | [optional] [default to undefined]
|
|
12
|
+
**username** | **string** | Username for this order | [optional] [default to undefined]
|
|
13
|
+
**description** | **string** | Description | [optional] [default to undefined]
|
|
14
|
+
**state** | **string** | Website state | [optional] [default to undefined]
|
|
15
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**settings** | **object** | Website settings, e.g. PHP configuration | [optional] [default to undefined]
|
|
17
|
+
**wordpress** | **object** | WordPress installation details | [optional] [default to undefined]
|
|
18
|
+
**domains** | **Array<object>** | Website domains | [optional] [default to undefined]
|
|
19
|
+
**preview_domain** | **object** | Preview domain | [optional] [default to undefined]
|
|
20
|
+
**processes** | **Array<object>** | Ongoing website processes | [optional] [default to undefined]
|
|
21
|
+
**horizons_uuid** | **string** | Horizons UUID (only for horizons websites) | [optional] [default to undefined]
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import { AgencyHostingV1WebsitesH5gWebsiteDetailsResource } from 'hostinger-api-sdk';
|
|
27
|
+
|
|
28
|
+
const instance: AgencyHostingV1WebsitesH5gWebsiteDetailsResource = {
|
|
29
|
+
uid,
|
|
30
|
+
ipv4,
|
|
31
|
+
flavor,
|
|
32
|
+
type,
|
|
33
|
+
username,
|
|
34
|
+
description,
|
|
35
|
+
state,
|
|
36
|
+
created_at,
|
|
37
|
+
settings,
|
|
38
|
+
wordpress,
|
|
39
|
+
domains,
|
|
40
|
+
preview_domain,
|
|
41
|
+
processes,
|
|
42
|
+
horizons_uuid,
|
|
43
|
+
};
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[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,25 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesPlanResource
|
|
2
|
+
|
|
3
|
+
Website plan details
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**display_name** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**has_cdn** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { AgencyHostingV1WebsitesPlanResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: AgencyHostingV1WebsitesPlanResource = {
|
|
19
|
+
name,
|
|
20
|
+
display_name,
|
|
21
|
+
has_cdn,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[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,36 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesU4sWebsiteDetailsResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**uuid** | **string** | Application UUID | [optional] [default to undefined]
|
|
9
|
+
**title** | **string** | Application title | [optional] [default to undefined]
|
|
10
|
+
**port** | **number** | Application port | [optional] [default to undefined]
|
|
11
|
+
**type** | **string** | Detected website type | [optional] [default to undefined]
|
|
12
|
+
**runtime** | **string** | Application runtime | [optional] [default to undefined]
|
|
13
|
+
**state** | **string** | Application state | [optional] [default to undefined]
|
|
14
|
+
**domains** | **Array<object>** | Application domains | [optional] [default to undefined]
|
|
15
|
+
**horizons_uuid** | **string** | Horizons UUID | [optional] [default to undefined]
|
|
16
|
+
**preview_domain** | **object** | Preview domain | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { AgencyHostingV1WebsitesU4sWebsiteDetailsResource } from 'hostinger-api-sdk';
|
|
22
|
+
|
|
23
|
+
const instance: AgencyHostingV1WebsitesU4sWebsiteDetailsResource = {
|
|
24
|
+
uuid,
|
|
25
|
+
title,
|
|
26
|
+
port,
|
|
27
|
+
type,
|
|
28
|
+
runtime,
|
|
29
|
+
state,
|
|
30
|
+
domains,
|
|
31
|
+
horizons_uuid,
|
|
32
|
+
preview_domain,
|
|
33
|
+
};
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[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,37 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesWebsiteListItemResource
|
|
2
|
+
|
|
3
|
+
Website item. The `details` shape differs per platform — see the `platform` field.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **string** | | [default to undefined]
|
|
10
|
+
**client_id** | **number** | | [default to undefined]
|
|
11
|
+
**order_id** | **number** | | [default to undefined]
|
|
12
|
+
**platform** | **string** | Website platform | [default to undefined]
|
|
13
|
+
**state** | **string** | Website state | [default to undefined]
|
|
14
|
+
**created_at** | **string** | | [default to undefined]
|
|
15
|
+
**plan** | [**AgencyHostingV1WebsitesPlanResource**](AgencyHostingV1WebsitesPlanResource.md) | | [default to undefined]
|
|
16
|
+
**details** | [**AgencyHostingV1WebsitesWebsiteListItemResourceDetails**](AgencyHostingV1WebsitesWebsiteListItemResourceDetails.md) | | [default to undefined]
|
|
17
|
+
**suspension_reason** | **string** | Reason for suspension, only populated for payment related suspensions | [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { AgencyHostingV1WebsitesWebsiteListItemResource } from 'hostinger-api-sdk';
|
|
23
|
+
|
|
24
|
+
const instance: AgencyHostingV1WebsitesWebsiteListItemResource = {
|
|
25
|
+
id,
|
|
26
|
+
client_id,
|
|
27
|
+
order_id,
|
|
28
|
+
platform,
|
|
29
|
+
state,
|
|
30
|
+
created_at,
|
|
31
|
+
plan,
|
|
32
|
+
details,
|
|
33
|
+
suspension_reason,
|
|
34
|
+
};
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[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,59 @@
|
|
|
1
|
+
# AgencyHostingV1WebsitesWebsiteListItemResourceDetails
|
|
2
|
+
|
|
3
|
+
Platform-specific website details. Shape depends on `platform`.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**uid** | **string** | Website UID | [optional] [default to undefined]
|
|
10
|
+
**ipv4** | **string** | IPv4 address | [optional] [default to undefined]
|
|
11
|
+
**flavor** | **string** | Setup flavor | [optional] [default to undefined]
|
|
12
|
+
**type** | **string** | Detected website type | [optional] [default to undefined]
|
|
13
|
+
**username** | **string** | Account username | [optional] [default to undefined]
|
|
14
|
+
**description** | **string** | Description | [optional] [default to undefined]
|
|
15
|
+
**state** | **string** | Application state | [optional] [default to undefined]
|
|
16
|
+
**created_at** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**settings** | **object** | Website settings, e.g. PHP configuration | [optional] [default to undefined]
|
|
18
|
+
**wordpress** | **object** | WordPress installation details | [optional] [default to undefined]
|
|
19
|
+
**domains** | **Array<object>** | Application domains | [optional] [default to undefined]
|
|
20
|
+
**preview_domain** | **object** | Preview domain | [optional] [default to undefined]
|
|
21
|
+
**processes** | **Array<object>** | Ongoing website processes | [optional] [default to undefined]
|
|
22
|
+
**horizons_uuid** | **string** | Horizons UUID | [optional] [default to undefined]
|
|
23
|
+
**id** | **string** | Builder ID | [optional] [default to undefined]
|
|
24
|
+
**vhost** | **string** | Domain name | [optional] [default to undefined]
|
|
25
|
+
**uuid** | **string** | Application UUID | [optional] [default to undefined]
|
|
26
|
+
**title** | **string** | Application title | [optional] [default to undefined]
|
|
27
|
+
**port** | **number** | Application port | [optional] [default to undefined]
|
|
28
|
+
**runtime** | **string** | Application runtime | [optional] [default to undefined]
|
|
29
|
+
|
|
30
|
+
## Example
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
import { AgencyHostingV1WebsitesWebsiteListItemResourceDetails } from 'hostinger-api-sdk';
|
|
34
|
+
|
|
35
|
+
const instance: AgencyHostingV1WebsitesWebsiteListItemResourceDetails = {
|
|
36
|
+
uid,
|
|
37
|
+
ipv4,
|
|
38
|
+
flavor,
|
|
39
|
+
type,
|
|
40
|
+
username,
|
|
41
|
+
description,
|
|
42
|
+
state,
|
|
43
|
+
created_at,
|
|
44
|
+
settings,
|
|
45
|
+
wordpress,
|
|
46
|
+
domains,
|
|
47
|
+
preview_domain,
|
|
48
|
+
processes,
|
|
49
|
+
horizons_uuid,
|
|
50
|
+
id,
|
|
51
|
+
vhost,
|
|
52
|
+
uuid,
|
|
53
|
+
title,
|
|
54
|
+
port,
|
|
55
|
+
runtime,
|
|
56
|
+
};
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -7,6 +7,7 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
7
7
|
|[**buildWebsiteNodeJSAssetsV1**](#buildwebsitenodejsassetsv1) | **POST** /api/agency-hosting/v1/websites/{website_uid}/build-assets | Build website NodeJS assets|
|
|
8
8
|
|[**deleteWebsiteV1**](#deletewebsitev1) | **DELETE** /api/agency-hosting/v1/websites/{website_uid} | Delete website|
|
|
9
9
|
|[**getWebsiteDetailsV1**](#getwebsitedetailsv1) | **GET** /api/agency-hosting/v1/websites/{website_uid} | Get website details|
|
|
10
|
+
|[**listAgencyPlanWebsitesV1**](#listagencyplanwebsitesv1) | **GET** /api/agency-hosting/v1/websites | List Agency Plan websites|
|
|
10
11
|
|[**listWebsiteProcessesV1**](#listwebsiteprocessesv1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/processes | List website processes|
|
|
11
12
|
|
|
12
13
|
# **buildWebsiteNodeJSAssetsV1**
|
|
@@ -164,6 +165,74 @@ const { status, data } = await apiInstance.getWebsiteDetailsV1(
|
|
|
164
165
|
- **Accept**: application/json
|
|
165
166
|
|
|
166
167
|
|
|
168
|
+
### HTTP response details
|
|
169
|
+
| Status code | Description | Response headers |
|
|
170
|
+
|-------------|-------------|------------------|
|
|
171
|
+
|**200** | Success response | - |
|
|
172
|
+
|**401** | Unauthenticated response | - |
|
|
173
|
+
|**500** | Error response | - |
|
|
174
|
+
|
|
175
|
+
[[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)
|
|
176
|
+
|
|
177
|
+
# **listAgencyPlanWebsitesV1**
|
|
178
|
+
> AgencyHostingListAgencyPlanWebsitesV1200Response listAgencyPlanWebsitesV1()
|
|
179
|
+
|
|
180
|
+
Retrieve a paginated list of Agency Plan websites (H5G, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. The response shape differs per platform — see the `platform` field on each item. Use `website_types` to list only websites of a given detected type, e.g. only WordPress websites (`website_types=wordpress`) or only Node.js websites (`website_types=nodejs`). Combine with `order_ids`, `states`, or `domain` for more targeted results.
|
|
181
|
+
|
|
182
|
+
### Example
|
|
183
|
+
|
|
184
|
+
```typescript
|
|
185
|
+
import {
|
|
186
|
+
AgencyHostingWebsitesApi,
|
|
187
|
+
Configuration
|
|
188
|
+
} from 'hostinger-api-sdk';
|
|
189
|
+
|
|
190
|
+
const configuration = new Configuration();
|
|
191
|
+
const apiInstance = new AgencyHostingWebsitesApi(configuration);
|
|
192
|
+
|
|
193
|
+
let page: number; //Page number (optional) (default to undefined)
|
|
194
|
+
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
195
|
+
let orderIds: Array<number>; //Filter by order IDs. Accepts a comma-separated list. (optional) (default to undefined)
|
|
196
|
+
let states: Array<'active' | 'locked' | 'suspended' | 'deleting' | 'deleted'>; //Filter by website state. Accepts a comma-separated list. (optional) (default to undefined)
|
|
197
|
+
let websiteTypes: Array<'wordpress' | 'builder' | 'horizons' | 'nodejs' | 'other'>; //Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list. (optional) (default to undefined)
|
|
198
|
+
let domain: string; //Filter by domain name (case-insensitive substring match) (optional) (default to undefined)
|
|
199
|
+
|
|
200
|
+
const { status, data } = await apiInstance.listAgencyPlanWebsitesV1(
|
|
201
|
+
page,
|
|
202
|
+
perPage,
|
|
203
|
+
orderIds,
|
|
204
|
+
states,
|
|
205
|
+
websiteTypes,
|
|
206
|
+
domain
|
|
207
|
+
);
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### Parameters
|
|
211
|
+
|
|
212
|
+
|Name | Type | Description | Notes|
|
|
213
|
+
|------------- | ------------- | ------------- | -------------|
|
|
214
|
+
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
215
|
+
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
216
|
+
| **orderIds** | **Array<number>** | Filter by order IDs. Accepts a comma-separated list. | (optional) defaults to undefined|
|
|
217
|
+
| **states** | **Array<'active' | 'locked' | 'suspended' | 'deleting' | 'deleted'>** | Filter by website state. Accepts a comma-separated list. | (optional) defaults to undefined|
|
|
218
|
+
| **websiteTypes** | **Array<'wordpress' | 'builder' | 'horizons' | 'nodejs' | 'other'>** | Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list. | (optional) defaults to undefined|
|
|
219
|
+
| **domain** | [**string**] | Filter by domain name (case-insensitive substring match) | (optional) defaults to undefined|
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### Return type
|
|
223
|
+
|
|
224
|
+
**AgencyHostingListAgencyPlanWebsitesV1200Response**
|
|
225
|
+
|
|
226
|
+
### Authorization
|
|
227
|
+
|
|
228
|
+
[apiToken](../README.md#apiToken)
|
|
229
|
+
|
|
230
|
+
### HTTP request headers
|
|
231
|
+
|
|
232
|
+
- **Content-Type**: Not defined
|
|
233
|
+
- **Accept**: application/json
|
|
234
|
+
|
|
235
|
+
|
|
167
236
|
### HTTP response details
|
|
168
237
|
| Status code | Description | Response headers |
|
|
169
238
|
|-------------|-------------|------------------|
|
|
@@ -384,7 +384,7 @@ const apiInstance = new HostingDatabasesApi(configuration);
|
|
|
384
384
|
let username: string; // (default to undefined)
|
|
385
385
|
let page: number; //Page number (optional) (default to undefined)
|
|
386
386
|
let perPage: number; //Number of items per page (optional) (default to 25)
|
|
387
|
-
let domain: string; //Filter by domain name (
|
|
387
|
+
let domain: string; //Filter by domain name (case-insensitive substring match) (optional) (default to undefined)
|
|
388
388
|
let isAssigned: boolean; //When used with domain, return only databases assigned to that domain. (optional) (default to undefined)
|
|
389
389
|
let search: string; //Search databases by name, user, or creation date. (optional) (default to undefined)
|
|
390
390
|
|
|
@@ -405,7 +405,7 @@ const { status, data } = await apiInstance.listAccountDatabasesV1(
|
|
|
405
405
|
| **username** | [**string**] | | defaults to undefined|
|
|
406
406
|
| **page** | [**number**] | Page number | (optional) defaults to undefined|
|
|
407
407
|
| **perPage** | [**number**] | Number of items per page | (optional) defaults to 25|
|
|
408
|
-
| **domain** | [**string**] | Filter by domain name (
|
|
408
|
+
| **domain** | [**string**] | Filter by domain name (case-insensitive substring match) | (optional) defaults to undefined|
|
|
409
409
|
| **isAssigned** | [**boolean**] | When used with domain, return only databases assigned to that domain. | (optional) defaults to undefined|
|
|
410
410
|
| **search** | [**string**] | Search databases by name, user, or creation date. | (optional) defaults to undefined|
|
|
411
411
|
|
package/docs/HostingNodeJSApi.md
CHANGED
|
@@ -4,7 +4,6 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**createNodeJSBuildFromArchiveV1**](#createnodejsbuildfromarchivev1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive | Create NodeJS build from archive|
|
|
8
7
|
|[**getNodeJSBuildLogsV1**](#getnodejsbuildlogsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs | Get NodeJS build logs|
|
|
9
8
|
|[**getNodeJsBuildSettingsFromArchiveV1**](#getnodejsbuildsettingsfromarchivev1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive | Get Node.js build settings from archive|
|
|
10
9
|
|[**listNodeJSBuildsV1**](#listnodejsbuildsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds | List NodeJS builds|
|
|
@@ -13,67 +12,6 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
13
12
|
|[**restartNodeJsApplicationV1**](#restartnodejsapplicationv1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/server/restart | Restart Node.js application|
|
|
14
13
|
|[**startNodeJsBuildV1**](#startnodejsbuildv1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds | Start Node.js build|
|
|
15
14
|
|
|
16
|
-
# **createNodeJSBuildFromArchiveV1**
|
|
17
|
-
> HostingV1NodeJsBuildResource createNodeJSBuildFromArchiveV1(hostingV1NodeJsCreateFromArchiveRequest)
|
|
18
|
-
|
|
19
|
-
Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
|
|
20
|
-
|
|
21
|
-
### Example
|
|
22
|
-
|
|
23
|
-
```typescript
|
|
24
|
-
import {
|
|
25
|
-
HostingNodeJSApi,
|
|
26
|
-
Configuration,
|
|
27
|
-
HostingV1NodeJsCreateFromArchiveRequest
|
|
28
|
-
} from 'hostinger-api-sdk';
|
|
29
|
-
|
|
30
|
-
const configuration = new Configuration();
|
|
31
|
-
const apiInstance = new HostingNodeJSApi(configuration);
|
|
32
|
-
|
|
33
|
-
let username: string; // (default to undefined)
|
|
34
|
-
let domain: string; //Domain name (default to undefined)
|
|
35
|
-
let hostingV1NodeJsCreateFromArchiveRequest: HostingV1NodeJsCreateFromArchiveRequest; //
|
|
36
|
-
|
|
37
|
-
const { status, data } = await apiInstance.createNodeJSBuildFromArchiveV1(
|
|
38
|
-
username,
|
|
39
|
-
domain,
|
|
40
|
-
hostingV1NodeJsCreateFromArchiveRequest
|
|
41
|
-
);
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
### Parameters
|
|
45
|
-
|
|
46
|
-
|Name | Type | Description | Notes|
|
|
47
|
-
|------------- | ------------- | ------------- | -------------|
|
|
48
|
-
| **hostingV1NodeJsCreateFromArchiveRequest** | **HostingV1NodeJsCreateFromArchiveRequest**| | |
|
|
49
|
-
| **username** | [**string**] | | defaults to undefined|
|
|
50
|
-
| **domain** | [**string**] | Domain name | defaults to undefined|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
### Return type
|
|
54
|
-
|
|
55
|
-
**HostingV1NodeJsBuildResource**
|
|
56
|
-
|
|
57
|
-
### Authorization
|
|
58
|
-
|
|
59
|
-
[apiToken](../README.md#apiToken)
|
|
60
|
-
|
|
61
|
-
### HTTP request headers
|
|
62
|
-
|
|
63
|
-
- **Content-Type**: application/json
|
|
64
|
-
- **Accept**: application/json
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
### HTTP response details
|
|
68
|
-
| Status code | Description | Response headers |
|
|
69
|
-
|-------------|-------------|------------------|
|
|
70
|
-
|**200** | Success response | - |
|
|
71
|
-
|**422** | Validation error response | - |
|
|
72
|
-
|**401** | Unauthenticated response | - |
|
|
73
|
-
|**500** | Error response | - |
|
|
74
|
-
|
|
75
|
-
[[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)
|
|
76
|
-
|
|
77
15
|
# **getNodeJSBuildLogsV1**
|
|
78
16
|
> HostingV1NodeJsBuildLogsResource getNodeJSBuildLogsV1()
|
|
79
17
|
|
|
@@ -182,7 +182,7 @@ const { status, data } = await apiInstance.deployStaticSiteArchiveV1(
|
|
|
182
182
|
# **listWebsitesV1**
|
|
183
183
|
> HostingListWebsitesV1200Response listWebsitesV1()
|
|
184
184
|
|
|
185
|
-
Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use the available query parameters to filter
|
|
185
|
+
Retrieve a paginated list of websites (CloudLinux, Builder, and Horizons) accessible to the authenticated client. This endpoint returns websites from your hosting accounts as well as websites from other client hosting accounts that have shared access with you. Each website includes a `website_type` field describing the type of website detected on the underlying platform (`wordpress`, `builder`, `horizons`, `nodejs`, or `other`). Some fields, such as `vhost_type`, `username`, and `root_directory`, only apply to CloudLinux websites and are null for other platforms. Use `website_types` to list only websites of a given detected type, e.g. only WordPress websites (`website_types=wordpress`) or only Node.js websites (`website_types=nodejs`). Combine with the other available query parameters to filter by username, order ID, enabled status, or domain name for more targeted results.
|
|
186
186
|
|
|
187
187
|
### Example
|
|
188
188
|
|
|
@@ -200,7 +200,8 @@ let perPage: number; //Number of items per page (optional) (default to 25)
|
|
|
200
200
|
let username: string; //Filter by specific username (optional) (default to undefined)
|
|
201
201
|
let orderId: number; //Order ID (optional) (default to undefined)
|
|
202
202
|
let isEnabled: boolean; //Filter by enabled status (optional) (default to undefined)
|
|
203
|
-
let domain: string; //Filter by domain name (
|
|
203
|
+
let domain: string; //Filter by domain name (case-insensitive substring match) (optional) (default to undefined)
|
|
204
|
+
let websiteTypes: Array<'wordpress' | 'builder' | 'horizons' | 'nodejs' | 'other'>; //Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list. (optional) (default to undefined)
|
|
204
205
|
|
|
205
206
|
const { status, data } = await apiInstance.listWebsitesV1(
|
|
206
207
|
page,
|
|
@@ -208,7 +209,8 @@ const { status, data } = await apiInstance.listWebsitesV1(
|
|
|
208
209
|
username,
|
|
209
210
|
orderId,
|
|
210
211
|
isEnabled,
|
|
211
|
-
domain
|
|
212
|
+
domain,
|
|
213
|
+
websiteTypes
|
|
212
214
|
);
|
|
213
215
|
```
|
|
214
216
|
|
|
@@ -221,7 +223,8 @@ const { status, data } = await apiInstance.listWebsitesV1(
|
|
|
221
223
|
| **username** | [**string**] | Filter by specific username | (optional) defaults to undefined|
|
|
222
224
|
| **orderId** | [**number**] | Order ID | (optional) defaults to undefined|
|
|
223
225
|
| **isEnabled** | [**boolean**] | Filter by enabled status | (optional) defaults to undefined|
|
|
224
|
-
| **domain** | [**string**] | Filter by domain name (
|
|
226
|
+
| **domain** | [**string**] | Filter by domain name (case-insensitive substring match) | (optional) defaults to undefined|
|
|
227
|
+
| **websiteTypes** | **Array<'wordpress' | 'builder' | 'horizons' | 'nodejs' | 'other'>** | Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list. | (optional) defaults to undefined|
|
|
225
228
|
|
|
226
229
|
|
|
227
230
|
### Return type
|
|
@@ -435,7 +435,7 @@ const configuration = new Configuration();
|
|
|
435
435
|
const apiInstance = new WordPressInstallationsApi(configuration);
|
|
436
436
|
|
|
437
437
|
let username: string; //Filter by specific username (optional) (default to undefined)
|
|
438
|
-
let domain: string; //Filter by domain name (
|
|
438
|
+
let domain: string; //Filter by domain name (case-insensitive substring match) (optional) (default to undefined)
|
|
439
439
|
let ownership: 'owned' | 'managed' | 'all'; //Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations. (optional) (default to undefined)
|
|
440
440
|
|
|
441
441
|
const { status, data } = await apiInstance.listWordPressInstallationsV1(
|
|
@@ -450,7 +450,7 @@ const { status, data } = await apiInstance.listWordPressInstallationsV1(
|
|
|
450
450
|
|Name | Type | Description | Notes|
|
|
451
451
|
|------------- | ------------- | ------------- | -------------|
|
|
452
452
|
| **username** | [**string**] | Filter by specific username | (optional) defaults to undefined|
|
|
453
|
-
| **domain** | [**string**] | Filter by domain name (
|
|
453
|
+
| **domain** | [**string**] | Filter by domain name (case-insensitive substring match) | (optional) defaults to undefined|
|
|
454
454
|
| **ownership** | [**'owned' | 'managed' | 'all'**]**Array<'owned' | 'managed' | 'all'>** | Filter by ownership type. Defaults to \"owned\". Use \"all\" to include both owned and managed installations. | (optional) defaults to undefined|
|
|
455
455
|
|
|
456
456
|
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
const configuration = new Configuration();
|
|
95
95
|
const apiInstance = new WordPressPluginsApi(configuration);
|
|
96
96
|
|
|
97
|
-
let domain: string; //Filter by domain name (
|
|
97
|
+
let domain: string; //Filter by domain name (case-insensitive substring match) (optional) (default to undefined)
|
|
98
98
|
|
|
99
99
|
const { status, data } = await apiInstance.checkIfWooCommerceIsInstalledV1(
|
|
100
100
|
domain
|
|
@@ -105,7 +105,7 @@ const { status, data } = await apiInstance.checkIfWooCommerceIsInstalledV1(
|
|
|
105
105
|
|
|
106
106
|
|Name | Type | Description | Notes|
|
|
107
107
|
|------------- | ------------- | ------------- | -------------|
|
|
108
|
-
| **domain** | [**string**] | Filter by domain name (
|
|
108
|
+
| **domain** | [**string**] | Filter by domain name (case-insensitive substring match) | (optional) defaults to undefined|
|
|
109
109
|
|
|
110
110
|
|
|
111
111
|
### Return type
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.42.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
|