hostinger-api-sdk 1.0.0 → 1.1.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.
Files changed (54) hide show
  1. package/README.md +2 -2
  2. package/api.ts +9653 -7541
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +5026 -3721
  7. package/dist/api.js +1671 -214
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +5026 -3721
  15. package/dist/esm/api.js +1655 -206
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/{HostingWordpressApi.md → WordPressInstallationsApi.md} +12 -12
  27. package/docs/WordPressPluginsApi.md +658 -0
  28. package/docs/WordPressThemesApi.md +369 -0
  29. package/docs/WordPressV1CommonVulnerabilityResource.md +28 -0
  30. package/docs/{HostingV1WordpressInstallWordpressRequest.md → WordPressV1InstallationsInstallWordPressRequest.md} +5 -5
  31. package/docs/{HostingV1WordpressInstallWordpressRequestCredentials.md → WordPressV1InstallationsInstallWordPressRequestCredentials.md} +3 -3
  32. package/docs/{HostingV1WordpressInstallWordpressRequestDatabase.md → WordPressV1InstallationsInstallWordPressRequestDatabase.md} +3 -3
  33. package/docs/{HostingV1WordpressWordpressInstallationResource.md → WordPressV1InstallationsWordPressInstallationResource.md} +3 -3
  34. package/docs/WordPressV1PluginsActivatePluginRequest.md +20 -0
  35. package/docs/WordPressV1PluginsAvailablePluginResource.md +38 -0
  36. package/docs/WordPressV1PluginsDeactivatePluginRequest.md +20 -0
  37. package/docs/WordPressV1PluginsInstallPluginsRequest.md +20 -0
  38. package/docs/WordPressV1PluginsInstalledPluginResource.md +30 -0
  39. package/docs/WordPressV1PluginsPluginResource.md +26 -0
  40. package/docs/WordPressV1PluginsPluginResourceIcons.md +23 -0
  41. package/docs/WordPressV1PluginsSuggestedPluginGroupResource.md +22 -0
  42. package/docs/WordPressV1PluginsSuggestedPluginResource.md +40 -0
  43. package/docs/WordPressV1PluginsUninstallPluginsRequest.md +20 -0
  44. package/docs/WordPressV1PluginsUpdateHostingerPluginRequest.md +20 -0
  45. package/docs/WordPressV1PluginsUpdatePluginsRequest.md +20 -0
  46. package/docs/WordPressV1PluginsWoocommerceInstalledResource.md +20 -0
  47. package/docs/WordPressV1ThemesActivateThemeRequest.md +20 -0
  48. package/docs/WordPressV1ThemesInstallThemeRequest.md +26 -0
  49. package/docs/WordPressV1ThemesInstalledThemeResource.md +30 -0
  50. package/docs/WordPressV1ThemesThemeResource.md +34 -0
  51. package/docs/WordPressV1ThemesUninstallThemesRequest.md +20 -0
  52. package/docs/WordPressV1ThemesUpdateThemesRequest.md +20 -0
  53. package/index.ts +1 -1
  54. package/package.json +1 -1
@@ -0,0 +1,369 @@
1
+ # WordPressThemesApi
2
+
3
+ All URIs are relative to *https://developers.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**activateWordPressThemeV1**](#activatewordpressthemev1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/activate | Activate WordPress theme|
8
+ |[**installWordPressThemeV1**](#installwordpressthemev1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install | Install WordPress theme|
9
+ |[**listInstalledWordPressThemesV1**](#listinstalledwordpressthemesv1) | **GET** /api/hosting/v1/accounts/{username}/wordpress/{software}/themes | List installed WordPress themes|
10
+ |[**listWordPressThemesV1**](#listwordpressthemesv1) | **GET** /api/hosting/v1/wordpress/themes | List WordPress themes|
11
+ |[**uninstallWordPressThemesV1**](#uninstallwordpressthemesv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/uninstall | Uninstall WordPress themes|
12
+ |[**updateWordPressThemesV1**](#updatewordpressthemesv1) | **POST** /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/update | Update WordPress themes|
13
+
14
+ # **activateWordPressThemeV1**
15
+ > CommonSuccessEmptyResource activateWordPressThemeV1(wordPressV1ThemesActivateThemeRequest)
16
+
17
+ Activate an installed theme on a 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). This operation is asynchronous: a successful response only means the activation job has been queued.
18
+
19
+ ### Example
20
+
21
+ ```typescript
22
+ import {
23
+ WordPressThemesApi,
24
+ Configuration,
25
+ WordPressV1ThemesActivateThemeRequest
26
+ } from 'hostinger-api-sdk';
27
+
28
+ const configuration = new Configuration();
29
+ const apiInstance = new WordPressThemesApi(configuration);
30
+
31
+ let username: string; // (default to undefined)
32
+ let software: string; //WordPress installation (software) identifier (default to undefined)
33
+ let wordPressV1ThemesActivateThemeRequest: WordPressV1ThemesActivateThemeRequest; //
34
+
35
+ const { status, data } = await apiInstance.activateWordPressThemeV1(
36
+ username,
37
+ software,
38
+ wordPressV1ThemesActivateThemeRequest
39
+ );
40
+ ```
41
+
42
+ ### Parameters
43
+
44
+ |Name | Type | Description | Notes|
45
+ |------------- | ------------- | ------------- | -------------|
46
+ | **wordPressV1ThemesActivateThemeRequest** | **WordPressV1ThemesActivateThemeRequest**| | |
47
+ | **username** | [**string**] | | defaults to undefined|
48
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
49
+
50
+
51
+ ### Return type
52
+
53
+ **CommonSuccessEmptyResource**
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 empty 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
+ # **installWordPressThemeV1**
76
+ > CommonSuccessEmptyResource installWordPressThemeV1(wordPressV1ThemesInstallThemeRequest)
77
+
78
+ Install a theme on an existing 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). When the theme is one of the Hostinger themes (hostinger-blog, hostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`, `layout`, and `font` fields are forwarded to the custom installer (defaults: palette1, layout1, default). For any other theme they are ignored. This operation is asynchronous: a successful response only means the install job has been queued, not that the theme is ready.
79
+
80
+ ### Example
81
+
82
+ ```typescript
83
+ import {
84
+ WordPressThemesApi,
85
+ Configuration,
86
+ WordPressV1ThemesInstallThemeRequest
87
+ } from 'hostinger-api-sdk';
88
+
89
+ const configuration = new Configuration();
90
+ const apiInstance = new WordPressThemesApi(configuration);
91
+
92
+ let username: string; // (default to undefined)
93
+ let software: string; //WordPress installation (software) identifier (default to undefined)
94
+ let wordPressV1ThemesInstallThemeRequest: WordPressV1ThemesInstallThemeRequest; //
95
+
96
+ const { status, data } = await apiInstance.installWordPressThemeV1(
97
+ username,
98
+ software,
99
+ wordPressV1ThemesInstallThemeRequest
100
+ );
101
+ ```
102
+
103
+ ### Parameters
104
+
105
+ |Name | Type | Description | Notes|
106
+ |------------- | ------------- | ------------- | -------------|
107
+ | **wordPressV1ThemesInstallThemeRequest** | **WordPressV1ThemesInstallThemeRequest**| | |
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
+ # **listInstalledWordPressThemesV1**
137
+ > Array<WordPressV1ThemesInstalledThemeResource> listInstalledWordPressThemesV1()
138
+
139
+ List themes installed on a WordPress installation, including their status, available updates and known vulnerabilities. Provide the WordPress installation (software) identifier in the path. It can be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
140
+
141
+ ### Example
142
+
143
+ ```typescript
144
+ import {
145
+ WordPressThemesApi,
146
+ Configuration
147
+ } from 'hostinger-api-sdk';
148
+
149
+ const configuration = new Configuration();
150
+ const apiInstance = new WordPressThemesApi(configuration);
151
+
152
+ let username: string; // (default to undefined)
153
+ let software: string; //WordPress installation (software) identifier (default to undefined)
154
+
155
+ const { status, data } = await apiInstance.listInstalledWordPressThemesV1(
156
+ username,
157
+ software
158
+ );
159
+ ```
160
+
161
+ ### Parameters
162
+
163
+ |Name | Type | Description | Notes|
164
+ |------------- | ------------- | ------------- | -------------|
165
+ | **username** | [**string**] | | defaults to undefined|
166
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
167
+
168
+
169
+ ### Return type
170
+
171
+ **Array<WordPressV1ThemesInstalledThemeResource>**
172
+
173
+ ### Authorization
174
+
175
+ [apiToken](../README.md#apiToken)
176
+
177
+ ### HTTP request headers
178
+
179
+ - **Content-Type**: Not defined
180
+ - **Accept**: application/json
181
+
182
+
183
+ ### HTTP response details
184
+ | Status code | Description | Response headers |
185
+ |-------------|-------------|------------------|
186
+ |**200** | Success response | - |
187
+ |**401** | Unauthenticated response | - |
188
+ |**500** | Error response | - |
189
+
190
+ [[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)
191
+
192
+ # **listWordPressThemesV1**
193
+ > Array<WordPressV1ThemesThemeResource> listWordPressThemesV1()
194
+
195
+ List WordPress themes available to install. Use the returned `slug` values with POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
196
+
197
+ ### Example
198
+
199
+ ```typescript
200
+ import {
201
+ WordPressThemesApi,
202
+ Configuration
203
+ } from 'hostinger-api-sdk';
204
+
205
+ const configuration = new Configuration();
206
+ const apiInstance = new WordPressThemesApi(configuration);
207
+
208
+ let orderId: number; //Optionally scope themes to a specific order. (optional) (default to undefined)
209
+ let search: string; //Search term to match against theme names. (optional) (default to undefined)
210
+
211
+ const { status, data } = await apiInstance.listWordPressThemesV1(
212
+ orderId,
213
+ search
214
+ );
215
+ ```
216
+
217
+ ### Parameters
218
+
219
+ |Name | Type | Description | Notes|
220
+ |------------- | ------------- | ------------- | -------------|
221
+ | **orderId** | [**number**] | Optionally scope themes to a specific order. | (optional) defaults to undefined|
222
+ | **search** | [**string**] | Search term to match against theme names. | (optional) defaults to undefined|
223
+
224
+
225
+ ### Return type
226
+
227
+ **Array<WordPressV1ThemesThemeResource>**
228
+
229
+ ### Authorization
230
+
231
+ [apiToken](../README.md#apiToken)
232
+
233
+ ### HTTP request headers
234
+
235
+ - **Content-Type**: Not defined
236
+ - **Accept**: application/json
237
+
238
+
239
+ ### HTTP response details
240
+ | Status code | Description | Response headers |
241
+ |-------------|-------------|------------------|
242
+ |**200** | Success response | - |
243
+ |**401** | Unauthenticated response | - |
244
+ |**500** | Error response | - |
245
+
246
+ [[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)
247
+
248
+ # **uninstallWordPressThemesV1**
249
+ > CommonSuccessEmptyResource uninstallWordPressThemesV1(wordPressV1ThemesUninstallThemesRequest)
250
+
251
+ Uninstall one or more themes from a 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). This operation is asynchronous: a successful response only means the uninstall job has been queued.
252
+
253
+ ### Example
254
+
255
+ ```typescript
256
+ import {
257
+ WordPressThemesApi,
258
+ Configuration,
259
+ WordPressV1ThemesUninstallThemesRequest
260
+ } from 'hostinger-api-sdk';
261
+
262
+ const configuration = new Configuration();
263
+ const apiInstance = new WordPressThemesApi(configuration);
264
+
265
+ let username: string; // (default to undefined)
266
+ let software: string; //WordPress installation (software) identifier (default to undefined)
267
+ let wordPressV1ThemesUninstallThemesRequest: WordPressV1ThemesUninstallThemesRequest; //
268
+
269
+ const { status, data } = await apiInstance.uninstallWordPressThemesV1(
270
+ username,
271
+ software,
272
+ wordPressV1ThemesUninstallThemesRequest
273
+ );
274
+ ```
275
+
276
+ ### Parameters
277
+
278
+ |Name | Type | Description | Notes|
279
+ |------------- | ------------- | ------------- | -------------|
280
+ | **wordPressV1ThemesUninstallThemesRequest** | **WordPressV1ThemesUninstallThemesRequest**| | |
281
+ | **username** | [**string**] | | defaults to undefined|
282
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
283
+
284
+
285
+ ### Return type
286
+
287
+ **CommonSuccessEmptyResource**
288
+
289
+ ### Authorization
290
+
291
+ [apiToken](../README.md#apiToken)
292
+
293
+ ### HTTP request headers
294
+
295
+ - **Content-Type**: application/json
296
+ - **Accept**: application/json
297
+
298
+
299
+ ### HTTP response details
300
+ | Status code | Description | Response headers |
301
+ |-------------|-------------|------------------|
302
+ |**200** | Success empty response | - |
303
+ |**422** | Validation error response | - |
304
+ |**401** | Unauthenticated response | - |
305
+ |**500** | Error response | - |
306
+
307
+ [[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)
308
+
309
+ # **updateWordPressThemesV1**
310
+ > CommonSuccessEmptyResource updateWordPressThemesV1(wordPressV1ThemesUpdateThemesRequest)
311
+
312
+ Update one or more installed themes to their latest version on a 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). This operation is asynchronous: a successful response only means the update job has been queued.
313
+
314
+ ### Example
315
+
316
+ ```typescript
317
+ import {
318
+ WordPressThemesApi,
319
+ Configuration,
320
+ WordPressV1ThemesUpdateThemesRequest
321
+ } from 'hostinger-api-sdk';
322
+
323
+ const configuration = new Configuration();
324
+ const apiInstance = new WordPressThemesApi(configuration);
325
+
326
+ let username: string; // (default to undefined)
327
+ let software: string; //WordPress installation (software) identifier (default to undefined)
328
+ let wordPressV1ThemesUpdateThemesRequest: WordPressV1ThemesUpdateThemesRequest; //
329
+
330
+ const { status, data } = await apiInstance.updateWordPressThemesV1(
331
+ username,
332
+ software,
333
+ wordPressV1ThemesUpdateThemesRequest
334
+ );
335
+ ```
336
+
337
+ ### Parameters
338
+
339
+ |Name | Type | Description | Notes|
340
+ |------------- | ------------- | ------------- | -------------|
341
+ | **wordPressV1ThemesUpdateThemesRequest** | **WordPressV1ThemesUpdateThemesRequest**| | |
342
+ | **username** | [**string**] | | defaults to undefined|
343
+ | **software** | [**string**] | WordPress installation (software) identifier | defaults to undefined|
344
+
345
+
346
+ ### Return type
347
+
348
+ **CommonSuccessEmptyResource**
349
+
350
+ ### Authorization
351
+
352
+ [apiToken](../README.md#apiToken)
353
+
354
+ ### HTTP request headers
355
+
356
+ - **Content-Type**: application/json
357
+ - **Accept**: application/json
358
+
359
+
360
+ ### HTTP response details
361
+ | Status code | Description | Response headers |
362
+ |-------------|-------------|------------------|
363
+ |**200** | Success empty response | - |
364
+ |**422** | Validation error response | - |
365
+ |**401** | Unauthenticated response | - |
366
+ |**500** | Error response | - |
367
+
368
+ [[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)
369
+
@@ -0,0 +1,28 @@
1
+ # WordPressV1CommonVulnerabilityResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **title** | **string** | Short title of the vulnerability | [optional] [default to undefined]
9
+ **description** | **string** | Details about the vulnerability | [optional] [default to undefined]
10
+ **affected_in** | **string** | Version in which the vulnerability was introduced or is present | [optional] [default to undefined]
11
+ **fixed_in** | **string** | Version in which the vulnerability was fixed | [optional] [default to undefined]
12
+ **direct_url** | **string** | Link to the vulnerability advisory | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { WordPressV1CommonVulnerabilityResource } from 'hostinger-api-sdk';
18
+
19
+ const instance: WordPressV1CommonVulnerabilityResource = {
20
+ title,
21
+ description,
22
+ affected_in,
23
+ fixed_in,
24
+ direct_url,
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)
@@ -1,4 +1,4 @@
1
- # HostingV1WordpressInstallWordpressRequest
1
+ # WordPressV1InstallationsInstallWordPressRequest
2
2
 
3
3
 
4
4
  ## Properties
@@ -12,15 +12,15 @@ Name | Type | Description | Notes
12
12
  **overwrite** | **boolean** | When false (default), does not replace an existing installation. If WordPress is already installed on the domain/path, the async install job fails unless true. | [optional] [default to undefined]
13
13
  **auto_updates** | **string** | WordPress core auto-update policy | [optional] [default to undefined]
14
14
  **version** | **string** | WordPress core version to install. If omitted, the latest core version compatible with the account vhost PHP version is selected. | [optional] [default to undefined]
15
- **credentials** | [**HostingV1WordpressInstallWordpressRequestCredentials**](HostingV1WordpressInstallWordpressRequestCredentials.md) | | [default to undefined]
16
- **database** | [**HostingV1WordpressInstallWordpressRequestDatabase**](HostingV1WordpressInstallWordpressRequestDatabase.md) | | [optional] [default to undefined]
15
+ **credentials** | [**WordPressV1InstallationsInstallWordPressRequestCredentials**](WordPressV1InstallationsInstallWordPressRequestCredentials.md) | | [default to undefined]
16
+ **database** | [**WordPressV1InstallationsInstallWordPressRequestDatabase**](WordPressV1InstallationsInstallWordPressRequestDatabase.md) | | [optional] [default to undefined]
17
17
 
18
18
  ## Example
19
19
 
20
20
  ```typescript
21
- import { HostingV1WordpressInstallWordpressRequest } from 'hostinger-api-sdk';
21
+ import { WordPressV1InstallationsInstallWordPressRequest } from 'hostinger-api-sdk';
22
22
 
23
- const instance: HostingV1WordpressInstallWordpressRequest = {
23
+ const instance: WordPressV1InstallationsInstallWordPressRequest = {
24
24
  domain,
25
25
  site_title,
26
26
  language,
@@ -1,4 +1,4 @@
1
- # HostingV1WordpressInstallWordpressRequestCredentials
1
+ # WordPressV1InstallationsInstallWordPressRequestCredentials
2
2
 
3
3
  WordPress admin credentials
4
4
 
@@ -13,9 +13,9 @@ Name | Type | Description | Notes
13
13
  ## Example
14
14
 
15
15
  ```typescript
16
- import { HostingV1WordpressInstallWordpressRequestCredentials } from 'hostinger-api-sdk';
16
+ import { WordPressV1InstallationsInstallWordPressRequestCredentials } from 'hostinger-api-sdk';
17
17
 
18
- const instance: HostingV1WordpressInstallWordpressRequestCredentials = {
18
+ const instance: WordPressV1InstallationsInstallWordPressRequestCredentials = {
19
19
  email,
20
20
  login,
21
21
  password,
@@ -1,4 +1,4 @@
1
- # HostingV1WordpressInstallWordpressRequestDatabase
1
+ # WordPressV1InstallationsInstallWordPressRequestDatabase
2
2
 
3
3
  Optional. If the named database already exists, it will be used for this WordPress install. Otherwise a new database is created with a generated name and random credentials.
4
4
 
@@ -12,9 +12,9 @@ Name | Type | Description | Notes
12
12
  ## Example
13
13
 
14
14
  ```typescript
15
- import { HostingV1WordpressInstallWordpressRequestDatabase } from 'hostinger-api-sdk';
15
+ import { WordPressV1InstallationsInstallWordPressRequestDatabase } from 'hostinger-api-sdk';
16
16
 
17
- const instance: HostingV1WordpressInstallWordpressRequestDatabase = {
17
+ const instance: WordPressV1InstallationsInstallWordPressRequestDatabase = {
18
18
  name,
19
19
  password,
20
20
  };
@@ -1,4 +1,4 @@
1
- # HostingV1WordpressWordpressInstallationResource
1
+ # WordPressV1InstallationsWordPressInstallationResource
2
2
 
3
3
 
4
4
  ## Properties
@@ -21,9 +21,9 @@ Name | Type | Description | Notes
21
21
  ## Example
22
22
 
23
23
  ```typescript
24
- import { HostingV1WordpressWordpressInstallationResource } from 'hostinger-api-sdk';
24
+ import { WordPressV1InstallationsWordPressInstallationResource } from 'hostinger-api-sdk';
25
25
 
26
- const instance: HostingV1WordpressWordpressInstallationResource = {
26
+ const instance: WordPressV1InstallationsWordPressInstallationResource = {
27
27
  id,
28
28
  username,
29
29
  domain,
@@ -0,0 +1,20 @@
1
+ # WordPressV1PluginsActivatePluginRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **plugin** | **string** | Slug of the installed plugin to activate. | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { WordPressV1PluginsActivatePluginRequest } from 'hostinger-api-sdk';
14
+
15
+ const instance: WordPressV1PluginsActivatePluginRequest = {
16
+ plugin,
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,38 @@
1
+ # WordPressV1PluginsAvailablePluginResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **slug** | **string** | Plugin slug used when installing the plugin | [optional] [default to undefined]
9
+ **title** | **string** | Human readable plugin name | [optional] [default to undefined]
10
+ **description** | **string** | Short plugin description | [optional] [default to undefined]
11
+ **onboarding_description_slug** | **string** | Translation slug for the onboarding description | [optional] [default to undefined]
12
+ **recommended_description_slug** | **string** | Translation slug for the recommended description | [optional] [default to undefined]
13
+ **link** | **string** | Link to the plugin page on WordPress.org | [optional] [default to undefined]
14
+ **version** | **string** | Latest available plugin version | [optional] [default to undefined]
15
+ **required_wordpress_version** | **string** | Minimum WordPress version required by the plugin | [optional] [default to undefined]
16
+ **required_php_version** | **string** | Minimum PHP version required by the plugin | [optional] [default to undefined]
17
+ **is_plan_upgrade_needed** | **boolean** | Whether a hosting plan upgrade is required to use the plugin | [optional] [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { WordPressV1PluginsAvailablePluginResource } from 'hostinger-api-sdk';
23
+
24
+ const instance: WordPressV1PluginsAvailablePluginResource = {
25
+ slug,
26
+ title,
27
+ description,
28
+ onboarding_description_slug,
29
+ recommended_description_slug,
30
+ link,
31
+ version,
32
+ required_wordpress_version,
33
+ required_php_version,
34
+ is_plan_upgrade_needed,
35
+ };
36
+ ```
37
+
38
+ [[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
+ # WordPressV1PluginsDeactivatePluginRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **plugin** | **string** | Slug of the installed plugin to deactivate. | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { WordPressV1PluginsDeactivatePluginRequest } from 'hostinger-api-sdk';
14
+
15
+ const instance: WordPressV1PluginsDeactivatePluginRequest = {
16
+ plugin,
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
+ # WordPressV1PluginsInstallPluginsRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **plugins** | **Array&lt;string&gt;** | Plugin slugs to install. Use GET /api/hosting/v1/wordpress/plugins to discover available slugs. | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { WordPressV1PluginsInstallPluginsRequest } from 'hostinger-api-sdk';
14
+
15
+ const instance: WordPressV1PluginsInstallPluginsRequest = {
16
+ plugins,
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,30 @@
1
+ # WordPressV1PluginsInstalledPluginResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | Plugin slug | [optional] [default to undefined]
9
+ **title** | **string** | Human readable plugin name | [optional] [default to undefined]
10
+ **version** | **string** | Installed plugin version | [optional] [default to undefined]
11
+ **status** | **string** | Whether the plugin is active or inactive | [optional] [default to undefined]
12
+ **update** | **string** | Available update version, or \&quot;none\&quot; when up to date | [optional] [default to undefined]
13
+ **vulnerabilities** | [**Array&lt;WordPressV1CommonVulnerabilityResource&gt;**](WordPressV1CommonVulnerabilityResource.md) | Known vulnerabilities affecting the installed version | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { WordPressV1PluginsInstalledPluginResource } from 'hostinger-api-sdk';
19
+
20
+ const instance: WordPressV1PluginsInstalledPluginResource = {
21
+ name,
22
+ title,
23
+ version,
24
+ status,
25
+ update,
26
+ vulnerabilities,
27
+ };
28
+ ```
29
+
30
+ [[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
+ # WordPressV1PluginsPluginResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **slug** | **string** | Plugin slug used when installing the plugin | [optional] [default to undefined]
9
+ **title** | **string** | Human readable plugin name | [optional] [default to undefined]
10
+ **icons** | [**WordPressV1PluginsPluginResourceIcons**](WordPressV1PluginsPluginResourceIcons.md) | | [optional] [default to undefined]
11
+ **description** | **string** | Short plugin description | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { WordPressV1PluginsPluginResource } from 'hostinger-api-sdk';
17
+
18
+ const instance: WordPressV1PluginsPluginResource = {
19
+ slug,
20
+ title,
21
+ icons,
22
+ description,
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,23 @@
1
+ # WordPressV1PluginsPluginResourceIcons
2
+
3
+ Plugin icon URLs keyed by resolution
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **_1x** | **string** | | [optional] [default to undefined]
10
+ **_2x** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { WordPressV1PluginsPluginResourceIcons } from 'hostinger-api-sdk';
16
+
17
+ const instance: WordPressV1PluginsPluginResourceIcons = {
18
+ _1x,
19
+ _2x,
20
+ };
21
+ ```
22
+
23
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)