hostinger-api-sdk 1.2.0 → 1.3.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/README.md +2 -2
- package/api.ts +2249 -120
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1339 -73
- package/dist/api.js +1710 -104
- 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 +1339 -73
- package/dist/esm/api.js +1681 -96
- 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/EcommerceSalesChannelsApi.md +66 -4
- package/docs/EcommerceStoresApi.md +54 -0
- package/docs/EcommerceV1SalesChannelSalesChannelUpdateResource.md +20 -0
- package/docs/EcommerceV1SalesChannelUpdateRequest.md +22 -0
- package/docs/EcommerceV1StoreStoreMetadataResource.md +20 -0
- package/docs/EcommerceV1StoreStoreMetadataResourceMetadata.md +26 -0
- package/docs/EcommerceV1StoreStoreMetadataResourceMetadataDefaultCurrency.md +37 -0
- package/docs/WordPressAIToolsApi.md +129 -0
- package/docs/WordPressInstallationsApi.md +408 -0
- package/docs/WordPressLiteSpeedCacheApi.md +121 -0
- package/docs/WordPressLoginApi.md +64 -0
- package/docs/WordPressMaintenanceApi.md +126 -0
- package/docs/WordPressObjectCacheApi.md +126 -0
- package/docs/WordPressV1HostingerPluginsAiOptionStatusResource.md +22 -0
- package/docs/WordPressV1HostingerPluginsUpdateAiOptionStatusRequest.md +22 -0
- package/docs/WordPressV1InstallationsCheckIsValidRequest.md +22 -0
- package/docs/WordPressV1InstallationsCheckIsValidResultResource.md +22 -0
- package/docs/WordPressV1InstallationsDeleteInstallationRequest.md +22 -0
- package/docs/WordPressV1InstallationsJwtTokenResource.md +26 -0
- package/docs/WordPressV1InstallationsUpdateInstallationRequest.md +22 -0
- package/docs/WordPressV1InstallationsUpdateResource.md +24 -0
- package/docs/WordPressV1InstallationsVersionResource.md +22 -0
- package/docs/WordPressV1LitespeedLitespeedCacheStatusResource.md +22 -0
- package/docs/WordPressV1LoginLoginLinksResource.md +24 -0
- package/docs/WordPressV1MaintenanceMaintenanceStatusResource.md +20 -0
- package/docs/WordPressV1MaintenanceToggleMaintenanceRequest.md +20 -0
- package/docs/WordPressV1MemcachedMemcachedStatusResource.md +20 -0
- package/docs/WordPressV1MemcachedToggleMemcachedRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# WordPressMaintenanceApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**showMaintenanceStatusV1**](#showmaintenancestatusv1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/status | Show maintenance status|
|
|
8
|
+
|[**toggleMaintenanceModeV1**](#togglemaintenancemodev1) | **PATCH** /api/hosting/v1/accounts/{username}/wordpress/{software}/maintenance/toggle | Toggle maintenance mode|
|
|
9
|
+
|
|
10
|
+
# **showMaintenanceStatusV1**
|
|
11
|
+
> WordPressV1MaintenanceMaintenanceStatusResource showMaintenanceStatusV1()
|
|
12
|
+
|
|
13
|
+
Show the maintenance mode status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
WordPressMaintenanceApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from 'hostinger-api-sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new WordPressMaintenanceApi(configuration);
|
|
25
|
+
|
|
26
|
+
let username: string; // (default to undefined)
|
|
27
|
+
let software: string; //WordPress installation (software) identifier (default to undefined)
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.showMaintenanceStatusV1(
|
|
30
|
+
username,
|
|
31
|
+
software
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
40
|
+
| **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**WordPressV1MaintenanceMaintenanceStatusResource**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[apiToken](../README.md#apiToken)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: Not defined
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**200** | Success 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
|
+
|
|
66
|
+
# **toggleMaintenanceModeV1**
|
|
67
|
+
> CommonSuccessEmptyResource toggleMaintenanceModeV1(wordPressV1MaintenanceToggleMaintenanceRequest)
|
|
68
|
+
|
|
69
|
+
Enable or disable maintenance mode for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
WordPressMaintenanceApi,
|
|
76
|
+
Configuration,
|
|
77
|
+
WordPressV1MaintenanceToggleMaintenanceRequest
|
|
78
|
+
} from 'hostinger-api-sdk';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new WordPressMaintenanceApi(configuration);
|
|
82
|
+
|
|
83
|
+
let username: string; // (default to undefined)
|
|
84
|
+
let software: string; //WordPress installation (software) identifier (default to undefined)
|
|
85
|
+
let wordPressV1MaintenanceToggleMaintenanceRequest: WordPressV1MaintenanceToggleMaintenanceRequest; //
|
|
86
|
+
|
|
87
|
+
const { status, data } = await apiInstance.toggleMaintenanceModeV1(
|
|
88
|
+
username,
|
|
89
|
+
software,
|
|
90
|
+
wordPressV1MaintenanceToggleMaintenanceRequest
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **wordPressV1MaintenanceToggleMaintenanceRequest** | **WordPressV1MaintenanceToggleMaintenanceRequest**| | |
|
|
99
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
100
|
+
| **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Return type
|
|
104
|
+
|
|
105
|
+
**CommonSuccessEmptyResource**
|
|
106
|
+
|
|
107
|
+
### Authorization
|
|
108
|
+
|
|
109
|
+
[apiToken](../README.md#apiToken)
|
|
110
|
+
|
|
111
|
+
### HTTP request headers
|
|
112
|
+
|
|
113
|
+
- **Content-Type**: application/json
|
|
114
|
+
- **Accept**: application/json
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### HTTP response details
|
|
118
|
+
| Status code | Description | Response headers |
|
|
119
|
+
|-------------|-------------|------------------|
|
|
120
|
+
|**200** | Success empty response | - |
|
|
121
|
+
|**422** | Validation error response | - |
|
|
122
|
+
|**401** | Unauthenticated response | - |
|
|
123
|
+
|**500** | Error response | - |
|
|
124
|
+
|
|
125
|
+
[[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)
|
|
126
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# WordPressObjectCacheApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**showMemcachedObjectCacheStatusV1**](#showmemcachedobjectcachestatusv1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/memcached/status | Show Memcached object cache status|
|
|
8
|
+
|[**toggleMemcachedObjectCacheV1**](#togglememcachedobjectcachev1) | **PATCH** /api/hosting/v1/accounts/{username}/wordpress/{software}/memcached/toggle | Toggle Memcached object cache|
|
|
9
|
+
|
|
10
|
+
# **showMemcachedObjectCacheStatusV1**
|
|
11
|
+
> WordPressV1MemcachedMemcachedStatusResource showMemcachedObjectCacheStatusV1()
|
|
12
|
+
|
|
13
|
+
Show the Memcached object cache status for the specified WordPress installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
14
|
+
|
|
15
|
+
### Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import {
|
|
19
|
+
WordPressObjectCacheApi,
|
|
20
|
+
Configuration
|
|
21
|
+
} from 'hostinger-api-sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new WordPressObjectCacheApi(configuration);
|
|
25
|
+
|
|
26
|
+
let username: string; // (default to undefined)
|
|
27
|
+
let software: string; //WordPress installation (software) identifier (default to undefined)
|
|
28
|
+
|
|
29
|
+
const { status, data } = await apiInstance.showMemcachedObjectCacheStatusV1(
|
|
30
|
+
username,
|
|
31
|
+
software
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Parameters
|
|
36
|
+
|
|
37
|
+
|Name | Type | Description | Notes|
|
|
38
|
+
|------------- | ------------- | ------------- | -------------|
|
|
39
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
40
|
+
| **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
**WordPressV1MemcachedMemcachedStatusResource**
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[apiToken](../README.md#apiToken)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: Not defined
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**200** | Success 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
|
+
|
|
66
|
+
# **toggleMemcachedObjectCacheV1**
|
|
67
|
+
> CommonSuccessEmptyResource toggleMemcachedObjectCacheV1(wordPressV1MemcachedToggleMemcachedRequest)
|
|
68
|
+
|
|
69
|
+
Activate or deactivate the Memcached object cache for the specified WordPress installation, based on the `enabled` flag. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
70
|
+
|
|
71
|
+
### Example
|
|
72
|
+
|
|
73
|
+
```typescript
|
|
74
|
+
import {
|
|
75
|
+
WordPressObjectCacheApi,
|
|
76
|
+
Configuration,
|
|
77
|
+
WordPressV1MemcachedToggleMemcachedRequest
|
|
78
|
+
} from 'hostinger-api-sdk';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new WordPressObjectCacheApi(configuration);
|
|
82
|
+
|
|
83
|
+
let username: string; // (default to undefined)
|
|
84
|
+
let software: string; //WordPress installation (software) identifier (default to undefined)
|
|
85
|
+
let wordPressV1MemcachedToggleMemcachedRequest: WordPressV1MemcachedToggleMemcachedRequest; //
|
|
86
|
+
|
|
87
|
+
const { status, data } = await apiInstance.toggleMemcachedObjectCacheV1(
|
|
88
|
+
username,
|
|
89
|
+
software,
|
|
90
|
+
wordPressV1MemcachedToggleMemcachedRequest
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **wordPressV1MemcachedToggleMemcachedRequest** | **WordPressV1MemcachedToggleMemcachedRequest**| | |
|
|
99
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
100
|
+
| **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
### Return type
|
|
104
|
+
|
|
105
|
+
**CommonSuccessEmptyResource**
|
|
106
|
+
|
|
107
|
+
### Authorization
|
|
108
|
+
|
|
109
|
+
[apiToken](../README.md#apiToken)
|
|
110
|
+
|
|
111
|
+
### HTTP request headers
|
|
112
|
+
|
|
113
|
+
- **Content-Type**: application/json
|
|
114
|
+
- **Accept**: application/json
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### HTTP response details
|
|
118
|
+
| Status code | Description | Response headers |
|
|
119
|
+
|-------------|-------------|------------------|
|
|
120
|
+
|**200** | Success empty response | - |
|
|
121
|
+
|**422** | Validation error response | - |
|
|
122
|
+
|**401** | Unauthenticated response | - |
|
|
123
|
+
|**500** | Error response | - |
|
|
124
|
+
|
|
125
|
+
[[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)
|
|
126
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# WordPressV1HostingerPluginsAiOptionStatusResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**is_llmstxt_enabled** | **boolean** | Whether the llms.txt AI option is enabled. Present when the option is requested or when no specific option filter is provided. | [optional] [default to undefined]
|
|
9
|
+
**is_web2agent_enabled** | **boolean** | Whether the Web2Agent AI option is enabled. Present when the option is requested or when no specific option filter is provided. | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { WordPressV1HostingerPluginsAiOptionStatusResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: WordPressV1HostingerPluginsAiOptionStatusResource = {
|
|
17
|
+
is_llmstxt_enabled,
|
|
18
|
+
is_web2agent_enabled,
|
|
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,22 @@
|
|
|
1
|
+
# WordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**option** | **string** | AI option name | [default to undefined]
|
|
9
|
+
**enable** | **boolean** | Enable (true) or disable (false) the AI option. | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { WordPressV1HostingerPluginsUpdateAiOptionStatusRequest } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: WordPressV1HostingerPluginsUpdateAiOptionStatusRequest = {
|
|
17
|
+
option,
|
|
18
|
+
enable,
|
|
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,22 @@
|
|
|
1
|
+
# WordPressV1InstallationsCheckIsValidRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**software_ids** | **Array<string>** | WordPress installation (software) identifiers to validate. | [default to undefined]
|
|
9
|
+
**force** | **boolean** | Force fresh validation without cache. Preferable for troubleshooting purposes. | [optional] [default to false]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { WordPressV1InstallationsCheckIsValidRequest } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: WordPressV1InstallationsCheckIsValidRequest = {
|
|
17
|
+
software_ids,
|
|
18
|
+
force,
|
|
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,22 @@
|
|
|
1
|
+
# WordPressV1InstallationsCheckIsValidResultResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**software_id** | **string** | WordPress installation (software) identifier | [optional] [default to undefined]
|
|
9
|
+
**is_valid** | **boolean** | Whether the WordPress installation is valid and working correctly | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { WordPressV1InstallationsCheckIsValidResultResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: WordPressV1InstallationsCheckIsValidResultResource = {
|
|
17
|
+
software_id,
|
|
18
|
+
is_valid,
|
|
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,22 @@
|
|
|
1
|
+
# WordPressV1InstallationsDeleteInstallationRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**delete_files** | **boolean** | Delete installation files from disk. | [optional] [default to false]
|
|
9
|
+
**delete_database** | **boolean** | Delete the installation database. | [optional] [default to false]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { WordPressV1InstallationsDeleteInstallationRequest } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: WordPressV1InstallationsDeleteInstallationRequest = {
|
|
17
|
+
delete_files,
|
|
18
|
+
delete_database,
|
|
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,26 @@
|
|
|
1
|
+
# WordPressV1InstallationsJwtTokenResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**token** | **string** | Signed JWT used to authenticate requests against the WordPress installation | [optional] [default to undefined]
|
|
9
|
+
**expires_in** | **number** | Token lifetime in seconds from the moment it was issued | [optional] [default to undefined]
|
|
10
|
+
**expires_at** | **string** | Date-time at which the token expires, or null when not provided | [optional] [default to undefined]
|
|
11
|
+
**mcp_url** | **string** | MCP (Model Context Protocol) endpoint URL for the WordPress installation, or null when not provided | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { WordPressV1InstallationsJwtTokenResource } from 'hostinger-api-sdk';
|
|
17
|
+
|
|
18
|
+
const instance: WordPressV1InstallationsJwtTokenResource = {
|
|
19
|
+
token,
|
|
20
|
+
expires_in,
|
|
21
|
+
expires_at,
|
|
22
|
+
mcp_url,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# WordPressV1InstallationsUpdateInstallationRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**minor** | **boolean** | Update the minor version only. | [optional] [default to false]
|
|
9
|
+
**version** | **string** | Update to a specific WordPress core version. | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { WordPressV1InstallationsUpdateInstallationRequest } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: WordPressV1InstallationsUpdateInstallationRequest = {
|
|
17
|
+
minor,
|
|
18
|
+
version,
|
|
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
|
+
# WordPressV1InstallationsUpdateResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**version** | **string** | Available WordPress core version | [optional] [default to undefined]
|
|
9
|
+
**type** | **string** | Update type | [optional] [default to undefined]
|
|
10
|
+
**url** | **string** | Download URL for the update package | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { WordPressV1InstallationsUpdateResource } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: WordPressV1InstallationsUpdateResource = {
|
|
18
|
+
version,
|
|
19
|
+
type,
|
|
20
|
+
url,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# WordPressV1InstallationsVersionResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**version** | **string** | Installed WordPress core version | [optional] [default to undefined]
|
|
9
|
+
**vulnerabilities** | [**Array<WordPressV1CommonVulnerabilityResource>**](WordPressV1CommonVulnerabilityResource.md) | Known vulnerabilities affecting the installed core version | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { WordPressV1InstallationsVersionResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: WordPressV1InstallationsVersionResource = {
|
|
17
|
+
version,
|
|
18
|
+
vulnerabilities,
|
|
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,22 @@
|
|
|
1
|
+
# WordPressV1LitespeedLitespeedCacheStatusResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**is_installed** | **boolean** | Whether the LiteSpeed Cache plugin is installed on the WordPress installation | [optional] [default to undefined]
|
|
9
|
+
**is_active** | **boolean** | Whether the LiteSpeed Cache plugin is active on the WordPress installation | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { WordPressV1LitespeedLitespeedCacheStatusResource } from 'hostinger-api-sdk';
|
|
15
|
+
|
|
16
|
+
const instance: WordPressV1LitespeedLitespeedCacheStatusResource = {
|
|
17
|
+
is_installed,
|
|
18
|
+
is_active,
|
|
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
|
+
# WordPressV1LoginLoginLinksResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**login** | **string** | Primary auto-login URL for the WordPress installation | [optional] [default to undefined]
|
|
9
|
+
**fallback** | **string** | Fallback auto-login URL using the temporary Hostinger domain | [optional] [default to undefined]
|
|
10
|
+
**_default** | **string** | Default WordPress admin URL used when auto-login is unavailable | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { WordPressV1LoginLoginLinksResource } from 'hostinger-api-sdk';
|
|
16
|
+
|
|
17
|
+
const instance: WordPressV1LoginLoginLinksResource = {
|
|
18
|
+
login,
|
|
19
|
+
fallback,
|
|
20
|
+
_default,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WordPressV1MaintenanceMaintenanceStatusResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**status** | **string** | Current maintenance mode status for the WordPress installation | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { WordPressV1MaintenanceMaintenanceStatusResource } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: WordPressV1MaintenanceMaintenanceStatusResource = {
|
|
16
|
+
status,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WordPressV1MaintenanceToggleMaintenanceRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**enabled** | **boolean** | Enable (true) or disable (false) maintenance mode for the WordPress installation. | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { WordPressV1MaintenanceToggleMaintenanceRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: WordPressV1MaintenanceToggleMaintenanceRequest = {
|
|
16
|
+
enabled,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WordPressV1MemcachedMemcachedStatusResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**status** | **string** | Current Memcached object cache status for the WordPress installation | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { WordPressV1MemcachedMemcachedStatusResource } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: WordPressV1MemcachedMemcachedStatusResource = {
|
|
16
|
+
status,
|
|
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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# WordPressV1MemcachedToggleMemcachedRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**enabled** | **boolean** | Activate (true) or deactivate (false) the Memcached object cache for the WordPress installation. | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { WordPressV1MemcachedToggleMemcachedRequest } from 'hostinger-api-sdk';
|
|
14
|
+
|
|
15
|
+
const instance: WordPressV1MemcachedToggleMemcachedRequest = {
|
|
16
|
+
enabled,
|
|
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: 1.
|
|
6
|
+
* API Version: 1.3.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
|