hostinger-api-sdk 1.30.4 → 1.30.6

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 (43) hide show
  1. package/README.md +2 -2
  2. package/api.ts +391 -391
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +239 -239
  7. package/dist/api.js +372 -372
  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 +239 -239
  15. package/dist/esm/api.js +372 -372
  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/AgencyHostingCacheApi.md +4 -4
  27. package/docs/AgencyHostingCronJobsApi.md +13 -13
  28. package/docs/AgencyHostingDatabasesApi.md +21 -21
  29. package/docs/AgencyHostingDatacentersApi.md +4 -4
  30. package/docs/AgencyHostingDomainsApi.md +17 -17
  31. package/docs/AgencyHostingFilesApi.md +4 -4
  32. package/docs/{AgencyHostingListAgencyPlanDomainsV1200Response.md → AgencyHostingListDomainsV1200Response.md} +3 -3
  33. package/docs/{AgencyHostingListAgencyPlanOrdersV1200Response.md → AgencyHostingListOrdersV1200Response.md} +3 -3
  34. package/docs/{AgencyHostingListAgencyPlanWebsiteCronJobsV1200Response.md → AgencyHostingListWebsiteCronJobsV1200Response.md} +3 -3
  35. package/docs/{AgencyHostingListAgencyPlanWebsiteDatabasesV1200Response.md → AgencyHostingListWebsiteDatabasesV1200Response.md} +3 -3
  36. package/docs/AgencyHostingOrdersApi.md +5 -5
  37. package/docs/AgencyHostingWebsiteSetupsApi.md +24 -24
  38. package/docs/AgencyHostingWebsitesApi.md +16 -16
  39. package/docs/AgencyHostingWordPressApi.md +12 -12
  40. package/docs/EcommerceProductsApi.md +1 -1
  41. package/docs/EcommerceV1ProductUploadProductImageRequest.md +2 -2
  42. package/index.ts +1 -1
  43. package/package.json +1 -1
@@ -4,31 +4,32 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**getAgencyPlanWebsiteSetupStatusV1**](#getagencyplanwebsitesetupstatusv1) | **GET** /api/agency-hosting/v1/orders/{order_id}/websites/setups/{setup_uuid} | Get Agency Plan website setup status|
8
- |[**provisionANewAgencyPlanWebsiteV1**](#provisionanewagencyplanwebsitev1) | **POST** /api/agency-hosting/v1/orders/{order_id}/websites/setups | Provision a new Agency Plan website|
7
+ |[**createANewWebsiteV1**](#createanewwebsitev1) | **POST** /api/agency-hosting/v1/orders/{order_id}/websites/setups | Create a new website|
8
+ |[**getWebsiteSetupStatusV1**](#getwebsitesetupstatusv1) | **GET** /api/agency-hosting/v1/orders/{order_id}/websites/setups/{setup_uuid} | Get website setup status|
9
9
 
10
- # **getAgencyPlanWebsiteSetupStatusV1**
11
- > AgencyHostingV1SetupsWebsiteSetupStatusResource getAgencyPlanWebsiteSetupStatusV1()
10
+ # **createANewWebsiteV1**
11
+ > AgencyHostingV1SetupsWebsiteSetupResource createANewWebsiteV1(agencyHostingV1SetupsCreateSetupRequest)
12
12
 
13
- Returns the current status of an Agency Plan website setup started via the setups endpoint. Poll this endpoint using the `setup_uuid` returned from the provisioning request until `status` becomes `completed`, at which point `website_uid` identifies the new website.
13
+ Provisions a new website on one of your Agency Plan hosting orders. Choose the datacenter, stack (`flavor`), and PHP version for the site. Optionally attach your own `domain` — omit it, set it to `null`, or leave it unavailable and a free `*.hostingersite.com` subdomain is generated instead — and/or install WordPress by supplying the `wordpress` details (admin account, site title, and language). Common setups: - **Plain PHP site**: `flavor` set to `php-fpm`, with `settings.php.version`; omit `wordpress` and `type`. - **WordPress site**: `flavor` set to the desired WordPress version (e.g. `wp-7.0`), plus the `wordpress` block (admin account, title, language). - **Static/Node.js frontend app**: `flavor` set to `php-fpm` and `type` set to `node-static`. Provisioning runs in the background, so the response returns immediately with a setup UUID that identifies the job. The new website becomes reachable once provisioning finishes.
14
14
 
15
15
  ### Example
16
16
 
17
17
  ```typescript
18
18
  import {
19
19
  AgencyHostingWebsiteSetupsApi,
20
- Configuration
20
+ Configuration,
21
+ AgencyHostingV1SetupsCreateSetupRequest
21
22
  } from 'hostinger-api-sdk';
22
23
 
23
24
  const configuration = new Configuration();
24
25
  const apiInstance = new AgencyHostingWebsiteSetupsApi(configuration);
25
26
 
26
27
  let orderId: number; //Agency Plan order ID (default to undefined)
27
- let setupUuid: string; //Website setup UUID (default to undefined)
28
+ let agencyHostingV1SetupsCreateSetupRequest: AgencyHostingV1SetupsCreateSetupRequest; //
28
29
 
29
- const { status, data } = await apiInstance.getAgencyPlanWebsiteSetupStatusV1(
30
+ const { status, data } = await apiInstance.createANewWebsiteV1(
30
31
  orderId,
31
- setupUuid
32
+ agencyHostingV1SetupsCreateSetupRequest
32
33
  );
33
34
  ```
34
35
 
@@ -36,13 +37,13 @@ const { status, data } = await apiInstance.getAgencyPlanWebsiteSetupStatusV1(
36
37
 
37
38
  |Name | Type | Description | Notes|
38
39
  |------------- | ------------- | ------------- | -------------|
40
+ | **agencyHostingV1SetupsCreateSetupRequest** | **AgencyHostingV1SetupsCreateSetupRequest**| | |
39
41
  | **orderId** | [**number**] | Agency Plan order ID | defaults to undefined|
40
- | **setupUuid** | [**string**] | Website setup UUID | defaults to undefined|
41
42
 
42
43
 
43
44
  ### Return type
44
45
 
45
- **AgencyHostingV1SetupsWebsiteSetupStatusResource**
46
+ **AgencyHostingV1SetupsWebsiteSetupResource**
46
47
 
47
48
  ### Authorization
48
49
 
@@ -50,7 +51,7 @@ const { status, data } = await apiInstance.getAgencyPlanWebsiteSetupStatusV1(
50
51
 
51
52
  ### HTTP request headers
52
53
 
53
- - **Content-Type**: Not defined
54
+ - **Content-Type**: application/json
54
55
  - **Accept**: application/json
55
56
 
56
57
 
@@ -58,34 +59,34 @@ const { status, data } = await apiInstance.getAgencyPlanWebsiteSetupStatusV1(
58
59
  | Status code | Description | Response headers |
59
60
  |-------------|-------------|------------------|
60
61
  |**200** | Success response | - |
62
+ |**422** | Validation error response | - |
61
63
  |**401** | Unauthenticated response | - |
62
64
  |**500** | Error response | - |
63
65
 
64
66
  [[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
67
 
66
- # **provisionANewAgencyPlanWebsiteV1**
67
- > AgencyHostingV1SetupsWebsiteSetupResource provisionANewAgencyPlanWebsiteV1(agencyHostingV1SetupsCreateSetupRequest)
68
+ # **getWebsiteSetupStatusV1**
69
+ > AgencyHostingV1SetupsWebsiteSetupStatusResource getWebsiteSetupStatusV1()
68
70
 
69
- Provisions a new website on one of your Agency Plan hosting orders. Choose the datacenter, stack (`flavor`), and PHP version for the site. Optionally attach your own `domain` — omit it, set it to `null`, or leave it unavailable and a free `*.hostingersite.com` subdomain is generated instead — and/or install WordPress by supplying the `wordpress` details (admin account, site title, and language). Common setups: - **Plain PHP site**: `flavor` set to `php-fpm`, with `settings.php.version`; omit `wordpress` and `type`. - **WordPress site**: `flavor` set to the desired WordPress version (e.g. `wp-7.0`), plus the `wordpress` block (admin account, title, language). - **Static/Node.js frontend app**: `flavor` set to `php-fpm` and `type` set to `node-static`. Provisioning runs in the background, so the response returns immediately with a setup UUID that identifies the job. The new website becomes reachable once provisioning finishes.
71
+ Returns the current status of an Agency Plan website setup started via the setups endpoint. Poll this endpoint using the `setup_uuid` returned from the provisioning request until `status` becomes `completed`, at which point `website_uid` identifies the new website.
70
72
 
71
73
  ### Example
72
74
 
73
75
  ```typescript
74
76
  import {
75
77
  AgencyHostingWebsiteSetupsApi,
76
- Configuration,
77
- AgencyHostingV1SetupsCreateSetupRequest
78
+ Configuration
78
79
  } from 'hostinger-api-sdk';
79
80
 
80
81
  const configuration = new Configuration();
81
82
  const apiInstance = new AgencyHostingWebsiteSetupsApi(configuration);
82
83
 
83
84
  let orderId: number; //Agency Plan order ID (default to undefined)
84
- let agencyHostingV1SetupsCreateSetupRequest: AgencyHostingV1SetupsCreateSetupRequest; //
85
+ let setupUuid: string; //Website setup UUID (default to undefined)
85
86
 
86
- const { status, data } = await apiInstance.provisionANewAgencyPlanWebsiteV1(
87
+ const { status, data } = await apiInstance.getWebsiteSetupStatusV1(
87
88
  orderId,
88
- agencyHostingV1SetupsCreateSetupRequest
89
+ setupUuid
89
90
  );
90
91
  ```
91
92
 
@@ -93,13 +94,13 @@ const { status, data } = await apiInstance.provisionANewAgencyPlanWebsiteV1(
93
94
 
94
95
  |Name | Type | Description | Notes|
95
96
  |------------- | ------------- | ------------- | -------------|
96
- | **agencyHostingV1SetupsCreateSetupRequest** | **AgencyHostingV1SetupsCreateSetupRequest**| | |
97
97
  | **orderId** | [**number**] | Agency Plan order ID | defaults to undefined|
98
+ | **setupUuid** | [**string**] | Website setup UUID | defaults to undefined|
98
99
 
99
100
 
100
101
  ### Return type
101
102
 
102
- **AgencyHostingV1SetupsWebsiteSetupResource**
103
+ **AgencyHostingV1SetupsWebsiteSetupStatusResource**
103
104
 
104
105
  ### Authorization
105
106
 
@@ -107,7 +108,7 @@ const { status, data } = await apiInstance.provisionANewAgencyPlanWebsiteV1(
107
108
 
108
109
  ### HTTP request headers
109
110
 
110
- - **Content-Type**: application/json
111
+ - **Content-Type**: Not defined
111
112
  - **Accept**: application/json
112
113
 
113
114
 
@@ -115,7 +116,6 @@ const { status, data } = await apiInstance.provisionANewAgencyPlanWebsiteV1(
115
116
  | Status code | Description | Response headers |
116
117
  |-------------|-------------|------------------|
117
118
  |**200** | Success response | - |
118
- |**422** | Validation error response | - |
119
119
  |**401** | Unauthenticated response | - |
120
120
  |**500** | Error response | - |
121
121
 
@@ -4,13 +4,13 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**buildAgencyPlanWebsiteNodeJSAssetsV1**](#buildagencyplanwebsitenodejsassetsv1) | **POST** /api/agency-hosting/v1/websites/{website_uid}/build-assets | Build Agency Plan website NodeJS assets|
8
- |[**deleteAgencyPlanWebsiteV1**](#deleteagencyplanwebsitev1) | **DELETE** /api/agency-hosting/v1/websites/{website_uid} | Delete Agency Plan website|
9
- |[**getAgencyPlanWebsiteDetailsV1**](#getagencyplanwebsitedetailsv1) | **GET** /api/agency-hosting/v1/websites/{website_uid} | Get Agency Plan website details|
10
- |[**listRunningAgencyPlanWebsiteProcessesV1**](#listrunningagencyplanwebsiteprocessesv1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/processes | List running Agency Plan website processes|
7
+ |[**buildWebsiteNodeJSAssetsV1**](#buildwebsitenodejsassetsv1) | **POST** /api/agency-hosting/v1/websites/{website_uid}/build-assets | Build website NodeJS assets|
8
+ |[**deleteWebsiteV1**](#deletewebsitev1) | **DELETE** /api/agency-hosting/v1/websites/{website_uid} | Delete website|
9
+ |[**getWebsiteDetailsV1**](#getwebsitedetailsv1) | **GET** /api/agency-hosting/v1/websites/{website_uid} | Get website details|
10
+ |[**listWebsiteProcessesV1**](#listwebsiteprocessesv1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/processes | List website processes|
11
11
 
12
- # **buildAgencyPlanWebsiteNodeJSAssetsV1**
13
- > CommonSuccessEmptyResource buildAgencyPlanWebsiteNodeJSAssetsV1(agencyHostingV1WebsitesBuildAssetsRequest)
12
+ # **buildWebsiteNodeJSAssetsV1**
13
+ > CommonSuccessEmptyResource buildWebsiteNodeJSAssetsV1(agencyHostingV1WebsitesBuildAssetsRequest)
14
14
 
15
15
  Builds and deploys a Node.js application for an Agency Plan website from an already-uploaded archive. Upload the archive to file browser first, then provide its relative path from document root in this request. Website contents are overwritten by the build result, which is deployed to public_html.
16
16
 
@@ -29,7 +29,7 @@ const apiInstance = new AgencyHostingWebsitesApi(configuration);
29
29
  let websiteUid: string; //Agency Plan website UID (default to undefined)
30
30
  let agencyHostingV1WebsitesBuildAssetsRequest: AgencyHostingV1WebsitesBuildAssetsRequest; //
31
31
 
32
- const { status, data } = await apiInstance.buildAgencyPlanWebsiteNodeJSAssetsV1(
32
+ const { status, data } = await apiInstance.buildWebsiteNodeJSAssetsV1(
33
33
  websiteUid,
34
34
  agencyHostingV1WebsitesBuildAssetsRequest
35
35
  );
@@ -67,8 +67,8 @@ const { status, data } = await apiInstance.buildAgencyPlanWebsiteNodeJSAssetsV1(
67
67
 
68
68
  [[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)
69
69
 
70
- # **deleteAgencyPlanWebsiteV1**
71
- > CommonSuccessEmptyResource deleteAgencyPlanWebsiteV1()
70
+ # **deleteWebsiteV1**
71
+ > CommonSuccessEmptyResource deleteWebsiteV1()
72
72
 
73
73
  Permanently deletes an Agency Plan website. Deletion is processed asynchronously: the website is immediately transitioned to a deleting state and the underlying server resources are removed in the background.
74
74
 
@@ -85,7 +85,7 @@ const apiInstance = new AgencyHostingWebsitesApi(configuration);
85
85
 
86
86
  let websiteUid: string; //Agency Plan website UID (default to undefined)
87
87
 
88
- const { status, data } = await apiInstance.deleteAgencyPlanWebsiteV1(
88
+ const { status, data } = await apiInstance.deleteWebsiteV1(
89
89
  websiteUid
90
90
  );
91
91
  ```
@@ -120,8 +120,8 @@ const { status, data } = await apiInstance.deleteAgencyPlanWebsiteV1(
120
120
 
121
121
  [[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)
122
122
 
123
- # **getAgencyPlanWebsiteDetailsV1**
124
- > AgencyHostingV1WebsitesWebsiteResource getAgencyPlanWebsiteDetailsV1()
123
+ # **getWebsiteDetailsV1**
124
+ > AgencyHostingV1WebsitesWebsiteResource getWebsiteDetailsV1()
125
125
 
126
126
  Retrieves detailed information about a specific Agency Plan website, including configuration, status, metadata, hosting plan details, and resource quotas.
127
127
 
@@ -138,7 +138,7 @@ const apiInstance = new AgencyHostingWebsitesApi(configuration);
138
138
 
139
139
  let websiteUid: string; //Agency Plan website UID (default to undefined)
140
140
 
141
- const { status, data } = await apiInstance.getAgencyPlanWebsiteDetailsV1(
141
+ const { status, data } = await apiInstance.getWebsiteDetailsV1(
142
142
  websiteUid
143
143
  );
144
144
  ```
@@ -173,8 +173,8 @@ const { status, data } = await apiInstance.getAgencyPlanWebsiteDetailsV1(
173
173
 
174
174
  [[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)
175
175
 
176
- # **listRunningAgencyPlanWebsiteProcessesV1**
177
- > Array<AgencyHostingV1WebsitesWebsiteProcessResource> listRunningAgencyPlanWebsiteProcessesV1()
176
+ # **listWebsiteProcessesV1**
177
+ > Array<AgencyHostingV1WebsitesWebsiteProcessResource> listWebsiteProcessesV1()
178
178
 
179
179
  Lists active and recently completed asynchronous processes for an Agency Plan website. Each process has a unique ID (for tracking), a type, and a status (running, completed, failed). Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
180
180
 
@@ -191,7 +191,7 @@ const apiInstance = new AgencyHostingWebsitesApi(configuration);
191
191
 
192
192
  let websiteUid: string; //Agency Plan website UID (default to undefined)
193
193
 
194
- const { status, data } = await apiInstance.listRunningAgencyPlanWebsiteProcessesV1(
194
+ const { status, data } = await apiInstance.listWebsiteProcessesV1(
195
195
  websiteUid
196
196
  );
197
197
  ```
@@ -4,12 +4,12 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**changeAgencyPlanWebsiteWordPressCoreVersionV1**](#changeagencyplanwebsitewordpresscoreversionv1) | **PATCH** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/version | Change Agency Plan website WordPress core version|
8
- |[**getAgencyPlanWebsiteWordPressSettingsV1**](#getagencyplanwebsitewordpresssettingsv1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings | Get Agency Plan website WordPress settings|
9
- |[**listAvailableWordPressVersionsForAnAgencyPlanWebsiteV1**](#listavailablewordpressversionsforanagencyplanwebsitev1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/versions | List available WordPress versions for an Agency Plan website|
7
+ |[**changeWordPressVersionV1**](#changewordpressversionv1) | **PATCH** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/version | Change WordPress version|
8
+ |[**getWordPressSettingsV1**](#getwordpresssettingsv1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings | Get WordPress settings|
9
+ |[**listAvailableWordPressVersionsV1**](#listavailablewordpressversionsv1) | **GET** /api/agency-hosting/v1/websites/{website_uid}/wordpress/settings/versions | List available WordPress versions|
10
10
 
11
- # **changeAgencyPlanWebsiteWordPressCoreVersionV1**
12
- > CommonSuccessEmptyResource changeAgencyPlanWebsiteWordPressCoreVersionV1(agencyHostingV1WordPressChangeVersionRequest)
11
+ # **changeWordPressVersionV1**
12
+ > CommonSuccessEmptyResource changeWordPressVersionV1(agencyHostingV1WordPressChangeVersionRequest)
13
13
 
14
14
  Changes the installed WordPress core version on an Agency Plan website to one of the versions available for installation.
15
15
 
@@ -28,7 +28,7 @@ const apiInstance = new AgencyHostingWordPressApi(configuration);
28
28
  let websiteUid: string; //Agency Plan website UID (default to undefined)
29
29
  let agencyHostingV1WordPressChangeVersionRequest: AgencyHostingV1WordPressChangeVersionRequest; //
30
30
 
31
- const { status, data } = await apiInstance.changeAgencyPlanWebsiteWordPressCoreVersionV1(
31
+ const { status, data } = await apiInstance.changeWordPressVersionV1(
32
32
  websiteUid,
33
33
  agencyHostingV1WordPressChangeVersionRequest
34
34
  );
@@ -66,8 +66,8 @@ const { status, data } = await apiInstance.changeAgencyPlanWebsiteWordPressCoreV
66
66
 
67
67
  [[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)
68
68
 
69
- # **getAgencyPlanWebsiteWordPressSettingsV1**
70
- > AgencyHostingV1WordPressSettingsResource getAgencyPlanWebsiteWordPressSettingsV1()
69
+ # **getWordPressSettingsV1**
70
+ > AgencyHostingV1WordPressSettingsResource getWordPressSettingsV1()
71
71
 
72
72
  Returns the current WordPress settings for an Agency Plan website: installed core version, LiteSpeed Cache plugin status, object cache status, and maintenance mode status.
73
73
 
@@ -84,7 +84,7 @@ const apiInstance = new AgencyHostingWordPressApi(configuration);
84
84
 
85
85
  let websiteUid: string; //Agency Plan website UID (default to undefined)
86
86
 
87
- const { status, data } = await apiInstance.getAgencyPlanWebsiteWordPressSettingsV1(
87
+ const { status, data } = await apiInstance.getWordPressSettingsV1(
88
88
  websiteUid
89
89
  );
90
90
  ```
@@ -119,8 +119,8 @@ const { status, data } = await apiInstance.getAgencyPlanWebsiteWordPressSettings
119
119
 
120
120
  [[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)
121
121
 
122
- # **listAvailableWordPressVersionsForAnAgencyPlanWebsiteV1**
123
- > Array<AgencyHostingV1WordPressVersionResource> listAvailableWordPressVersionsForAnAgencyPlanWebsiteV1()
122
+ # **listAvailableWordPressVersionsV1**
123
+ > Array<AgencyHostingV1WordPressVersionResource> listAvailableWordPressVersionsV1()
124
124
 
125
125
  Lists the WordPress core versions available for installation on an Agency Plan website.
126
126
 
@@ -137,7 +137,7 @@ const apiInstance = new AgencyHostingWordPressApi(configuration);
137
137
 
138
138
  let websiteUid: string; //Agency Plan website UID (default to undefined)
139
139
 
140
- const { status, data } = await apiInstance.listAvailableWordPressVersionsForAnAgencyPlanWebsiteV1(
140
+ const { status, data } = await apiInstance.listAvailableWordPressVersionsV1(
141
141
  websiteUid
142
142
  );
143
143
  ```
@@ -127,7 +127,7 @@ const { status, data } = await apiInstance.createPhysicalProductV1(
127
127
  # **uploadAndAttachAProductImageV1**
128
128
  > EcommerceV1ProductProductImageUploadResource uploadAndAttachAProductImageV1(ecommerceV1ProductUploadProductImageRequest)
129
129
 
130
- Upload a raster image (JPEG, PNG, GIF or WebP, max 15MB) and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
130
+ Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
131
131
 
132
132
  ### Example
133
133
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **image** | **string** | Raster image file (JPEG, PNG, GIF or WebP), maximum 15MB. SVG is not accepted. | [default to undefined]
8
+ **image_url** | **string** | Publicly reachable URL of the raster image (JPEG, PNG, GIF or WebP), maximum 15MB. The image is fetched, virus-scanned and validated by content, then stored on the CDN. SVG is not accepted. | [default to undefined]
9
9
  **is_thumbnail** | **boolean** | When true, the image becomes the product\&#39;s thumbnail (primary image). When omitted, it becomes the thumbnail only if the product does not have one yet. | [optional] [default to undefined]
10
10
 
11
11
  ## Example
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
14
14
  import { EcommerceV1ProductUploadProductImageRequest } from 'hostinger-api-sdk';
15
15
 
16
16
  const instance: EcommerceV1ProductUploadProductImageRequest = {
17
- image,
17
+ image_url,
18
18
  is_thumbnail,
19
19
  };
20
20
  ```
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.32.3
6
+ * API Version: 1.32.5
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "1.30.4",
3
+ "version": "1.30.6",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {