hostinger-api-sdk 1.2.1 → 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 +1917 -85
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +1112 -57
- package/dist/api.js +1545 -90
- 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 +1112 -57
- package/dist/esm/api.js +1516 -82
- 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/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
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.3.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/esm/base.js
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
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.3.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/esm/common.js
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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.3.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
|
|
@@ -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
|
|
@@ -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/1.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.3.0" }, (_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: 1.
|
|
4
|
+
* API Version: 1.3.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/esm/index.js
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
|
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.3.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.
|
|
7
|
+
* API Version: 1.3.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
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# WordPressAIToolsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://developers.hostinger.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**setAIOptionStatusV1**](#setaioptionstatusv1) | **PATCH** /api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/status | Set AI option status|
|
|
8
|
+
|[**showAIOptionStatusV1**](#showaioptionstatusv1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/hostinger-plugins/ai-option/status | Show AI option status|
|
|
9
|
+
|
|
10
|
+
# **setAIOptionStatusV1**
|
|
11
|
+
> CommonSuccessEmptyResource setAIOptionStatusV1(wordPressV1HostingerPluginsUpdateAiOptionStatusRequest)
|
|
12
|
+
|
|
13
|
+
Enable or disable an AI option for the Hostinger Tools plugin on 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
|
+
WordPressAIToolsApi,
|
|
20
|
+
Configuration,
|
|
21
|
+
WordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
22
|
+
} from 'hostinger-api-sdk';
|
|
23
|
+
|
|
24
|
+
const configuration = new Configuration();
|
|
25
|
+
const apiInstance = new WordPressAIToolsApi(configuration);
|
|
26
|
+
|
|
27
|
+
let username: string; // (default to undefined)
|
|
28
|
+
let software: string; //WordPress installation (software) identifier (default to undefined)
|
|
29
|
+
let wordPressV1HostingerPluginsUpdateAiOptionStatusRequest: WordPressV1HostingerPluginsUpdateAiOptionStatusRequest; //
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.setAIOptionStatusV1(
|
|
32
|
+
username,
|
|
33
|
+
software,
|
|
34
|
+
wordPressV1HostingerPluginsUpdateAiOptionStatusRequest
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Parameters
|
|
39
|
+
|
|
40
|
+
|Name | Type | Description | Notes|
|
|
41
|
+
|------------- | ------------- | ------------- | -------------|
|
|
42
|
+
| **wordPressV1HostingerPluginsUpdateAiOptionStatusRequest** | **WordPressV1HostingerPluginsUpdateAiOptionStatusRequest**| | |
|
|
43
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
44
|
+
| **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
### Return type
|
|
48
|
+
|
|
49
|
+
**CommonSuccessEmptyResource**
|
|
50
|
+
|
|
51
|
+
### Authorization
|
|
52
|
+
|
|
53
|
+
[apiToken](../README.md#apiToken)
|
|
54
|
+
|
|
55
|
+
### HTTP request headers
|
|
56
|
+
|
|
57
|
+
- **Content-Type**: application/json
|
|
58
|
+
- **Accept**: application/json
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
### HTTP response details
|
|
62
|
+
| Status code | Description | Response headers |
|
|
63
|
+
|-------------|-------------|------------------|
|
|
64
|
+
|**200** | Success empty response | - |
|
|
65
|
+
|**422** | Validation error response | - |
|
|
66
|
+
|**401** | Unauthenticated response | - |
|
|
67
|
+
|**500** | Error response | - |
|
|
68
|
+
|
|
69
|
+
[[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)
|
|
70
|
+
|
|
71
|
+
# **showAIOptionStatusV1**
|
|
72
|
+
> WordPressV1HostingerPluginsAiOptionStatusResource showAIOptionStatusV1()
|
|
73
|
+
|
|
74
|
+
Show the current AI option status for the Hostinger Tools plugin on the specified WordPress installation. Filter by `option` to return a single option, or omit it to return all options. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
75
|
+
|
|
76
|
+
### Example
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
import {
|
|
80
|
+
WordPressAIToolsApi,
|
|
81
|
+
Configuration
|
|
82
|
+
} from 'hostinger-api-sdk';
|
|
83
|
+
|
|
84
|
+
const configuration = new Configuration();
|
|
85
|
+
const apiInstance = new WordPressAIToolsApi(configuration);
|
|
86
|
+
|
|
87
|
+
let username: string; // (default to undefined)
|
|
88
|
+
let software: string; //WordPress installation (software) identifier (default to undefined)
|
|
89
|
+
let option: 'llmstxt' | 'web2agent'; //Filter the status by a single AI option. (optional) (default to undefined)
|
|
90
|
+
|
|
91
|
+
const { status, data } = await apiInstance.showAIOptionStatusV1(
|
|
92
|
+
username,
|
|
93
|
+
software,
|
|
94
|
+
option
|
|
95
|
+
);
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Parameters
|
|
99
|
+
|
|
100
|
+
|Name | Type | Description | Notes|
|
|
101
|
+
|------------- | ------------- | ------------- | -------------|
|
|
102
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
103
|
+
| **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
|
|
104
|
+
| **option** | [**'llmstxt' | 'web2agent'**]**Array<'llmstxt' | 'web2agent'>** | Filter the status by a single AI option. | (optional) defaults to undefined|
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
### Return type
|
|
108
|
+
|
|
109
|
+
**WordPressV1HostingerPluginsAiOptionStatusResource**
|
|
110
|
+
|
|
111
|
+
### Authorization
|
|
112
|
+
|
|
113
|
+
[apiToken](../README.md#apiToken)
|
|
114
|
+
|
|
115
|
+
### HTTP request headers
|
|
116
|
+
|
|
117
|
+
- **Content-Type**: Not defined
|
|
118
|
+
- **Accept**: application/json
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### HTTP response details
|
|
122
|
+
| Status code | Description | Response headers |
|
|
123
|
+
|-------------|-------------|------------------|
|
|
124
|
+
|**200** | Success response | - |
|
|
125
|
+
|**401** | Unauthenticated response | - |
|
|
126
|
+
|**500** | Error response | - |
|
|
127
|
+
|
|
128
|
+
[[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)
|
|
129
|
+
|
|
@@ -4,8 +4,243 @@ All URIs are relative to *https://developers.hostinger.com*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**checkIfWordPressInstallationsAreValidV1**](#checkifwordpressinstallationsarevalidv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/installations/check-is-valid | Check if WordPress installations are valid|
|
|
8
|
+
|[**deleteWordPressInstallationV1**](#deletewordpressinstallationv1) | **DELETE** /api/hosting/v1/accounts/{username}/wordpress/{software} | Delete WordPress installation|
|
|
9
|
+
|[**detectWordPressInstallationsV1**](#detectwordpressinstallationsv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/installations/detect | Detect WordPress installations|
|
|
10
|
+
|[**getInstallationJWTTokenV1**](#getinstallationjwttokenv1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/jwt-token | Get installation JWT token|
|
|
7
11
|
|[**installWordPressV1**](#installwordpressv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/installations | Install WordPress|
|
|
12
|
+
|[**listAvailableWordPressCoreUpdatesV1**](#listavailablewordpresscoreupdatesv1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/updates | List available WordPress core updates|
|
|
8
13
|
|[**listWordPressInstallationsV1**](#listwordpressinstallationsv1) | **GET** /api/hosting/v1/wordpress/installations | List WordPress installations|
|
|
14
|
+
|[**showWordPressCoreVersionV1**](#showwordpresscoreversionv1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/version | Show WordPress core version|
|
|
15
|
+
|[**updateWordPressCoreV1**](#updatewordpresscorev1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/update | Update WordPress core|
|
|
16
|
+
|
|
17
|
+
# **checkIfWordPressInstallationsAreValidV1**
|
|
18
|
+
> Array<WordPressV1InstallationsCheckIsValidResultResource> checkIfWordPressInstallationsAreValidV1(wordPressV1InstallationsCheckIsValidRequest)
|
|
19
|
+
|
|
20
|
+
Check whether one or more WordPress installations are valid and working correctly. Detects broken installations caused by missing files, broken plugins, themes and similar issues. Provide the WordPress installation (software) identifiers in the body. They can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
21
|
+
|
|
22
|
+
### Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import {
|
|
26
|
+
WordPressInstallationsApi,
|
|
27
|
+
Configuration,
|
|
28
|
+
WordPressV1InstallationsCheckIsValidRequest
|
|
29
|
+
} from 'hostinger-api-sdk';
|
|
30
|
+
|
|
31
|
+
const configuration = new Configuration();
|
|
32
|
+
const apiInstance = new WordPressInstallationsApi(configuration);
|
|
33
|
+
|
|
34
|
+
let username: string; // (default to undefined)
|
|
35
|
+
let wordPressV1InstallationsCheckIsValidRequest: WordPressV1InstallationsCheckIsValidRequest; //
|
|
36
|
+
|
|
37
|
+
const { status, data } = await apiInstance.checkIfWordPressInstallationsAreValidV1(
|
|
38
|
+
username,
|
|
39
|
+
wordPressV1InstallationsCheckIsValidRequest
|
|
40
|
+
);
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Parameters
|
|
44
|
+
|
|
45
|
+
|Name | Type | Description | Notes|
|
|
46
|
+
|------------- | ------------- | ------------- | -------------|
|
|
47
|
+
| **wordPressV1InstallationsCheckIsValidRequest** | **WordPressV1InstallationsCheckIsValidRequest**| | |
|
|
48
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Return type
|
|
52
|
+
|
|
53
|
+
**Array<WordPressV1InstallationsCheckIsValidResultResource>**
|
|
54
|
+
|
|
55
|
+
### Authorization
|
|
56
|
+
|
|
57
|
+
[apiToken](../README.md#apiToken)
|
|
58
|
+
|
|
59
|
+
### HTTP request headers
|
|
60
|
+
|
|
61
|
+
- **Content-Type**: application/json
|
|
62
|
+
- **Accept**: application/json
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### HTTP response details
|
|
66
|
+
| Status code | Description | Response headers |
|
|
67
|
+
|-------------|-------------|------------------|
|
|
68
|
+
|**200** | Success response | - |
|
|
69
|
+
|**422** | Validation error response | - |
|
|
70
|
+
|**401** | Unauthenticated response | - |
|
|
71
|
+
|**500** | Error response | - |
|
|
72
|
+
|
|
73
|
+
[[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)
|
|
74
|
+
|
|
75
|
+
# **deleteWordPressInstallationV1**
|
|
76
|
+
> CommonSuccessEmptyResource deleteWordPressInstallationV1(wordPressV1InstallationsDeleteInstallationRequest)
|
|
77
|
+
|
|
78
|
+
Delete the specified WordPress installation, with optional file and database removal. This removes all associated components including plugins, themes, staging websites and any other related data. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
79
|
+
|
|
80
|
+
### Example
|
|
81
|
+
|
|
82
|
+
```typescript
|
|
83
|
+
import {
|
|
84
|
+
WordPressInstallationsApi,
|
|
85
|
+
Configuration,
|
|
86
|
+
WordPressV1InstallationsDeleteInstallationRequest
|
|
87
|
+
} from 'hostinger-api-sdk';
|
|
88
|
+
|
|
89
|
+
const configuration = new Configuration();
|
|
90
|
+
const apiInstance = new WordPressInstallationsApi(configuration);
|
|
91
|
+
|
|
92
|
+
let username: string; // (default to undefined)
|
|
93
|
+
let software: string; //WordPress installation (software) identifier (default to undefined)
|
|
94
|
+
let wordPressV1InstallationsDeleteInstallationRequest: WordPressV1InstallationsDeleteInstallationRequest; //
|
|
95
|
+
|
|
96
|
+
const { status, data } = await apiInstance.deleteWordPressInstallationV1(
|
|
97
|
+
username,
|
|
98
|
+
software,
|
|
99
|
+
wordPressV1InstallationsDeleteInstallationRequest
|
|
100
|
+
);
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Parameters
|
|
104
|
+
|
|
105
|
+
|Name | Type | Description | Notes|
|
|
106
|
+
|------------- | ------------- | ------------- | -------------|
|
|
107
|
+
| **wordPressV1InstallationsDeleteInstallationRequest** | **WordPressV1InstallationsDeleteInstallationRequest**| | |
|
|
108
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
109
|
+
| **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Return type
|
|
113
|
+
|
|
114
|
+
**CommonSuccessEmptyResource**
|
|
115
|
+
|
|
116
|
+
### Authorization
|
|
117
|
+
|
|
118
|
+
[apiToken](../README.md#apiToken)
|
|
119
|
+
|
|
120
|
+
### HTTP request headers
|
|
121
|
+
|
|
122
|
+
- **Content-Type**: application/json
|
|
123
|
+
- **Accept**: application/json
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### HTTP response details
|
|
127
|
+
| Status code | Description | Response headers |
|
|
128
|
+
|-------------|-------------|------------------|
|
|
129
|
+
|**200** | Success empty response | - |
|
|
130
|
+
|**422** | Validation error response | - |
|
|
131
|
+
|**401** | Unauthenticated response | - |
|
|
132
|
+
|**500** | Error response | - |
|
|
133
|
+
|
|
134
|
+
[[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)
|
|
135
|
+
|
|
136
|
+
# **detectWordPressInstallationsV1**
|
|
137
|
+
> CommonSuccessEmptyResource detectWordPressInstallationsV1()
|
|
138
|
+
|
|
139
|
+
Trigger a background scan to detect WordPress installations for the account. This operation is asynchronous: a successful response only means the scan has been queued. Poll GET /api/hosting/v1/wordpress/installations to fetch the detected installations once the scan completes.
|
|
140
|
+
|
|
141
|
+
### Example
|
|
142
|
+
|
|
143
|
+
```typescript
|
|
144
|
+
import {
|
|
145
|
+
WordPressInstallationsApi,
|
|
146
|
+
Configuration
|
|
147
|
+
} from 'hostinger-api-sdk';
|
|
148
|
+
|
|
149
|
+
const configuration = new Configuration();
|
|
150
|
+
const apiInstance = new WordPressInstallationsApi(configuration);
|
|
151
|
+
|
|
152
|
+
let username: string; // (default to undefined)
|
|
153
|
+
|
|
154
|
+
const { status, data } = await apiInstance.detectWordPressInstallationsV1(
|
|
155
|
+
username
|
|
156
|
+
);
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### Parameters
|
|
160
|
+
|
|
161
|
+
|Name | Type | Description | Notes|
|
|
162
|
+
|------------- | ------------- | ------------- | -------------|
|
|
163
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
### Return type
|
|
167
|
+
|
|
168
|
+
**CommonSuccessEmptyResource**
|
|
169
|
+
|
|
170
|
+
### Authorization
|
|
171
|
+
|
|
172
|
+
[apiToken](../README.md#apiToken)
|
|
173
|
+
|
|
174
|
+
### HTTP request headers
|
|
175
|
+
|
|
176
|
+
- **Content-Type**: Not defined
|
|
177
|
+
- **Accept**: application/json
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
### HTTP response details
|
|
181
|
+
| Status code | Description | Response headers |
|
|
182
|
+
|-------------|-------------|------------------|
|
|
183
|
+
|**200** | Success empty response | - |
|
|
184
|
+
|**401** | Unauthenticated response | - |
|
|
185
|
+
|**500** | Error response | - |
|
|
186
|
+
|
|
187
|
+
[[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)
|
|
188
|
+
|
|
189
|
+
# **getInstallationJWTTokenV1**
|
|
190
|
+
> WordPressV1InstallationsJwtTokenResource getInstallationJWTTokenV1()
|
|
191
|
+
|
|
192
|
+
Return a JWT token used to authenticate requests against the specified WordPress installation, including its MCP (Model Context Protocol) endpoint. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
193
|
+
|
|
194
|
+
### Example
|
|
195
|
+
|
|
196
|
+
```typescript
|
|
197
|
+
import {
|
|
198
|
+
WordPressInstallationsApi,
|
|
199
|
+
Configuration
|
|
200
|
+
} from 'hostinger-api-sdk';
|
|
201
|
+
|
|
202
|
+
const configuration = new Configuration();
|
|
203
|
+
const apiInstance = new WordPressInstallationsApi(configuration);
|
|
204
|
+
|
|
205
|
+
let username: string; // (default to undefined)
|
|
206
|
+
let software: string; //WordPress installation (software) identifier (default to undefined)
|
|
207
|
+
|
|
208
|
+
const { status, data } = await apiInstance.getInstallationJWTTokenV1(
|
|
209
|
+
username,
|
|
210
|
+
software
|
|
211
|
+
);
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### Parameters
|
|
215
|
+
|
|
216
|
+
|Name | Type | Description | Notes|
|
|
217
|
+
|------------- | ------------- | ------------- | -------------|
|
|
218
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
219
|
+
| **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### Return type
|
|
223
|
+
|
|
224
|
+
**WordPressV1InstallationsJwtTokenResource**
|
|
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
|
+
|
|
236
|
+
### HTTP response details
|
|
237
|
+
| Status code | Description | Response headers |
|
|
238
|
+
|-------------|-------------|------------------|
|
|
239
|
+
|**200** | Success response | - |
|
|
240
|
+
|**401** | Unauthenticated response | - |
|
|
241
|
+
|**500** | Error response | - |
|
|
242
|
+
|
|
243
|
+
[[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)
|
|
9
244
|
|
|
10
245
|
# **installWordPressV1**
|
|
11
246
|
> CommonSuccessEmptyResource installWordPressV1(wordPressV1InstallationsInstallWordPressRequest)
|
|
@@ -65,6 +300,62 @@ const { status, data } = await apiInstance.installWordPressV1(
|
|
|
65
300
|
|
|
66
301
|
[[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)
|
|
67
302
|
|
|
303
|
+
# **listAvailableWordPressCoreUpdatesV1**
|
|
304
|
+
> Array<WordPressV1InstallationsUpdateResource> listAvailableWordPressCoreUpdatesV1()
|
|
305
|
+
|
|
306
|
+
List available WordPress core updates for the specified installation. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
307
|
+
|
|
308
|
+
### Example
|
|
309
|
+
|
|
310
|
+
```typescript
|
|
311
|
+
import {
|
|
312
|
+
WordPressInstallationsApi,
|
|
313
|
+
Configuration
|
|
314
|
+
} from 'hostinger-api-sdk';
|
|
315
|
+
|
|
316
|
+
const configuration = new Configuration();
|
|
317
|
+
const apiInstance = new WordPressInstallationsApi(configuration);
|
|
318
|
+
|
|
319
|
+
let username: string; // (default to undefined)
|
|
320
|
+
let software: string; //WordPress installation (software) identifier (default to undefined)
|
|
321
|
+
|
|
322
|
+
const { status, data } = await apiInstance.listAvailableWordPressCoreUpdatesV1(
|
|
323
|
+
username,
|
|
324
|
+
software
|
|
325
|
+
);
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
### Parameters
|
|
329
|
+
|
|
330
|
+
|Name | Type | Description | Notes|
|
|
331
|
+
|------------- | ------------- | ------------- | -------------|
|
|
332
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
333
|
+
| **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
### Return type
|
|
337
|
+
|
|
338
|
+
**Array<WordPressV1InstallationsUpdateResource>**
|
|
339
|
+
|
|
340
|
+
### Authorization
|
|
341
|
+
|
|
342
|
+
[apiToken](../README.md#apiToken)
|
|
343
|
+
|
|
344
|
+
### HTTP request headers
|
|
345
|
+
|
|
346
|
+
- **Content-Type**: Not defined
|
|
347
|
+
- **Accept**: application/json
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
### HTTP response details
|
|
351
|
+
| Status code | Description | Response headers |
|
|
352
|
+
|-------------|-------------|------------------|
|
|
353
|
+
|**200** | Success response | - |
|
|
354
|
+
|**401** | Unauthenticated response | - |
|
|
355
|
+
|**500** | Error response | - |
|
|
356
|
+
|
|
357
|
+
[[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)
|
|
358
|
+
|
|
68
359
|
# **listWordPressInstallationsV1**
|
|
69
360
|
> Array<WordPressV1InstallationsWordPressInstallationResource> listWordPressInstallationsV1()
|
|
70
361
|
|
|
@@ -124,3 +415,120 @@ const { status, data } = await apiInstance.listWordPressInstallationsV1(
|
|
|
124
415
|
|
|
125
416
|
[[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
417
|
|
|
418
|
+
# **showWordPressCoreVersionV1**
|
|
419
|
+
> WordPressV1InstallationsVersionResource showWordPressCoreVersionV1()
|
|
420
|
+
|
|
421
|
+
Show the WordPress core version for the specified installation, along with known vulnerabilities affecting it. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
422
|
+
|
|
423
|
+
### Example
|
|
424
|
+
|
|
425
|
+
```typescript
|
|
426
|
+
import {
|
|
427
|
+
WordPressInstallationsApi,
|
|
428
|
+
Configuration
|
|
429
|
+
} from 'hostinger-api-sdk';
|
|
430
|
+
|
|
431
|
+
const configuration = new Configuration();
|
|
432
|
+
const apiInstance = new WordPressInstallationsApi(configuration);
|
|
433
|
+
|
|
434
|
+
let username: string; // (default to undefined)
|
|
435
|
+
let software: string; //WordPress installation (software) identifier (default to undefined)
|
|
436
|
+
|
|
437
|
+
const { status, data } = await apiInstance.showWordPressCoreVersionV1(
|
|
438
|
+
username,
|
|
439
|
+
software
|
|
440
|
+
);
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
### Parameters
|
|
444
|
+
|
|
445
|
+
|Name | Type | Description | Notes|
|
|
446
|
+
|------------- | ------------- | ------------- | -------------|
|
|
447
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
448
|
+
| **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
### Return type
|
|
452
|
+
|
|
453
|
+
**WordPressV1InstallationsVersionResource**
|
|
454
|
+
|
|
455
|
+
### Authorization
|
|
456
|
+
|
|
457
|
+
[apiToken](../README.md#apiToken)
|
|
458
|
+
|
|
459
|
+
### HTTP request headers
|
|
460
|
+
|
|
461
|
+
- **Content-Type**: Not defined
|
|
462
|
+
- **Accept**: application/json
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
### HTTP response details
|
|
466
|
+
| Status code | Description | Response headers |
|
|
467
|
+
|-------------|-------------|------------------|
|
|
468
|
+
|**200** | Success response | - |
|
|
469
|
+
|**401** | Unauthenticated response | - |
|
|
470
|
+
|**500** | Error response | - |
|
|
471
|
+
|
|
472
|
+
[[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)
|
|
473
|
+
|
|
474
|
+
# **updateWordPressCoreV1**
|
|
475
|
+
> CommonSuccessEmptyResource updateWordPressCoreV1(wordPressV1InstallationsUpdateInstallationRequest)
|
|
476
|
+
|
|
477
|
+
Update the WordPress core for the specified installation (minor update or a specific version). Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field). This operation is asynchronous: a successful response only means the update job has been queued.
|
|
478
|
+
|
|
479
|
+
### Example
|
|
480
|
+
|
|
481
|
+
```typescript
|
|
482
|
+
import {
|
|
483
|
+
WordPressInstallationsApi,
|
|
484
|
+
Configuration,
|
|
485
|
+
WordPressV1InstallationsUpdateInstallationRequest
|
|
486
|
+
} from 'hostinger-api-sdk';
|
|
487
|
+
|
|
488
|
+
const configuration = new Configuration();
|
|
489
|
+
const apiInstance = new WordPressInstallationsApi(configuration);
|
|
490
|
+
|
|
491
|
+
let username: string; // (default to undefined)
|
|
492
|
+
let software: string; //WordPress installation (software) identifier (default to undefined)
|
|
493
|
+
let wordPressV1InstallationsUpdateInstallationRequest: WordPressV1InstallationsUpdateInstallationRequest; //
|
|
494
|
+
|
|
495
|
+
const { status, data } = await apiInstance.updateWordPressCoreV1(
|
|
496
|
+
username,
|
|
497
|
+
software,
|
|
498
|
+
wordPressV1InstallationsUpdateInstallationRequest
|
|
499
|
+
);
|
|
500
|
+
```
|
|
501
|
+
|
|
502
|
+
### Parameters
|
|
503
|
+
|
|
504
|
+
|Name | Type | Description | Notes|
|
|
505
|
+
|------------- | ------------- | ------------- | -------------|
|
|
506
|
+
| **wordPressV1InstallationsUpdateInstallationRequest** | **WordPressV1InstallationsUpdateInstallationRequest**| | |
|
|
507
|
+
| **username** | [**string**] | | defaults to undefined|
|
|
508
|
+
| **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
|
|
509
|
+
|
|
510
|
+
|
|
511
|
+
### Return type
|
|
512
|
+
|
|
513
|
+
**CommonSuccessEmptyResource**
|
|
514
|
+
|
|
515
|
+
### Authorization
|
|
516
|
+
|
|
517
|
+
[apiToken](../README.md#apiToken)
|
|
518
|
+
|
|
519
|
+
### HTTP request headers
|
|
520
|
+
|
|
521
|
+
- **Content-Type**: application/json
|
|
522
|
+
- **Accept**: application/json
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
### HTTP response details
|
|
526
|
+
| Status code | Description | Response headers |
|
|
527
|
+
|-------------|-------------|------------------|
|
|
528
|
+
|**200** | Success empty response | - |
|
|
529
|
+
|**422** | Validation error response | - |
|
|
530
|
+
|**401** | Unauthenticated response | - |
|
|
531
|
+
|**500** | Error response | - |
|
|
532
|
+
|
|
533
|
+
[[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)
|
|
534
|
+
|