@hostinger/sdk 1.49.2 → 1.49.3

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.
@@ -0,0 +1,30 @@
1
+ # HorizonsV1WebsitesWebsiteResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **website_id** | **string** | The website ID | [default to undefined]
9
+ **description** | **string** | The website description | [optional] [default to undefined]
10
+ **domain** | **string** | The domain the website is published on, if it has been published | [optional] [default to undefined]
11
+ **status** | **string** | The website status | [default to undefined]
12
+ **created_at** | **string** | The website creation date | [default to undefined]
13
+ **website_url** | **string** | The website URL for the user to access their website in Hostinger Horizons interface | [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { HorizonsV1WebsitesWebsiteResource } from '@hostinger/sdk';
19
+
20
+ const instance: HorizonsV1WebsitesWebsiteResource = {
21
+ website_id,
22
+ description,
23
+ domain,
24
+ status,
25
+ created_at,
26
+ website_url,
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)
@@ -4,13 +4,70 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**cloneWebsiteV1**](#clonewebsitev1) | **POST** /api/horizons/v1/websites/{websiteId}/clone | Clone website|
7
8
  |[**createWebsiteV1**](#createwebsitev1) | **POST** /api/horizons/v1/websites | Create website|
9
+ |[**editWebsiteV1**](#editwebsitev1) | **POST** /api/horizons/v1/websites/{websiteId}/messages | Edit website|
10
+ |[**getWebsiteListV1**](#getwebsitelistv1) | **GET** /api/horizons/v1/websites | Get website list|
8
11
  |[**getWebsiteV1**](#getwebsitev1) | **GET** /api/horizons/v1/websites/{websiteId} | Get website|
12
+ |[**publishWebsiteV1**](#publishwebsitev1) | **POST** /api/horizons/v1/websites/{websiteId}/publish | Publish website|
13
+
14
+ # **cloneWebsiteV1**
15
+ > HorizonsV1WebsitesCreatedWebsiteResource cloneWebsiteV1()
16
+
17
+ Clone a Hostinger Horizons website into a new website.\\n Use this tool when the user wants a copy of an existing website, for example to try out changes without touching the original.\\n This tool returns the ID and URL of the newly created copy. The original website is left untouched.\\n To edit the copy, use the `Edit website` tool with the returned website ID, or the user can open the provided website URL in Hostinger Horizons interface.
18
+
19
+ ### Example
20
+
21
+ ```typescript
22
+ import {
23
+ HorizonsWebsitesApi,
24
+ Configuration
25
+ } from '@hostinger/sdk';
26
+
27
+ const configuration = new Configuration();
28
+ const apiInstance = new HorizonsWebsitesApi(configuration);
29
+
30
+ let websiteId: string; //The website ID (default to undefined)
31
+
32
+ const { status, data } = await apiInstance.cloneWebsiteV1(
33
+ websiteId
34
+ );
35
+ ```
36
+
37
+ ### Parameters
38
+
39
+ |Name | Type | Description | Notes|
40
+ |------------- | ------------- | ------------- | -------------|
41
+ | **websiteId** | [**string**] | The website ID | defaults to undefined|
42
+
43
+
44
+ ### Return type
45
+
46
+ **HorizonsV1WebsitesCreatedWebsiteResource**
47
+
48
+ ### Authorization
49
+
50
+ [apiToken](../README.md#apiToken)
51
+
52
+ ### HTTP request headers
53
+
54
+ - **Content-Type**: Not defined
55
+ - **Accept**: application/json
56
+
57
+
58
+ ### HTTP response details
59
+ | Status code | Description | Response headers |
60
+ |-------------|-------------|------------------|
61
+ |**200** | Success response | - |
62
+ |**401** | Unauthenticated response | - |
63
+ |**500** | Error response | - |
64
+
65
+ [[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
66
 
10
67
  # **createWebsiteV1**
11
68
  > HorizonsV1WebsitesCreatedWebsiteResource createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest)
12
69
 
13
- Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, users must go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
70
+ Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, use the `Edit website` tool with the returned website ID, or the user can go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
14
71
 
15
72
  ### Example
16
73
 
@@ -62,10 +119,114 @@ const { status, data } = await apiInstance.createWebsiteV1(
62
119
 
63
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)
64
121
 
122
+ # **editWebsiteV1**
123
+ > HorizonsV1WebsitesCreatedWebsiteResource editWebsiteV1(horizonsV1WebsitesEditWebsiteRequest)
124
+
125
+ Edit an existing Hostinger Horizons website with a follow-up message.\\n Use this tool when the user wants to change, extend or fix a website that already exists.\\n This tool queues the requested changes and returns the website URL and ID. The changes are applied asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now applying the requested changes and they will be ready in a few minutes, and you should provide the website URL to the user immediately. Do not write code.\\n If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat.
126
+
127
+ ### Example
128
+
129
+ ```typescript
130
+ import {
131
+ HorizonsWebsitesApi,
132
+ Configuration,
133
+ HorizonsV1WebsitesEditWebsiteRequest
134
+ } from '@hostinger/sdk';
135
+
136
+ const configuration = new Configuration();
137
+ const apiInstance = new HorizonsWebsitesApi(configuration);
138
+
139
+ let websiteId: string; //The website ID (default to undefined)
140
+ let horizonsV1WebsitesEditWebsiteRequest: HorizonsV1WebsitesEditWebsiteRequest; //
141
+
142
+ const { status, data } = await apiInstance.editWebsiteV1(
143
+ websiteId,
144
+ horizonsV1WebsitesEditWebsiteRequest
145
+ );
146
+ ```
147
+
148
+ ### Parameters
149
+
150
+ |Name | Type | Description | Notes|
151
+ |------------- | ------------- | ------------- | -------------|
152
+ | **horizonsV1WebsitesEditWebsiteRequest** | **HorizonsV1WebsitesEditWebsiteRequest**| | |
153
+ | **websiteId** | [**string**] | The website ID | defaults to undefined|
154
+
155
+
156
+ ### Return type
157
+
158
+ **HorizonsV1WebsitesCreatedWebsiteResource**
159
+
160
+ ### Authorization
161
+
162
+ [apiToken](../README.md#apiToken)
163
+
164
+ ### HTTP request headers
165
+
166
+ - **Content-Type**: application/json
167
+ - **Accept**: application/json
168
+
169
+
170
+ ### HTTP response details
171
+ | Status code | Description | Response headers |
172
+ |-------------|-------------|------------------|
173
+ |**200** | Success response | - |
174
+ |**422** | Validation error response | - |
175
+ |**401** | Unauthenticated response | - |
176
+ |**500** | Error response | - |
177
+
178
+ [[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)
179
+
180
+ # **getWebsiteListV1**
181
+ > Array<HorizonsV1WebsitesWebsiteResource> getWebsiteListV1()
182
+
183
+ List the Hostinger Horizons websites the user owns.\\n Use this tool when the user asks which websites they have, or when you need a website ID before editing, publishing or cloning a website.\\n Each website is returned with its ID, status, domain and the URL to open it in Hostinger Horizons interface.\\n The complete list of websites is returned in a single response - it is not paginated.
184
+
185
+ ### Example
186
+
187
+ ```typescript
188
+ import {
189
+ HorizonsWebsitesApi,
190
+ Configuration
191
+ } from '@hostinger/sdk';
192
+
193
+ const configuration = new Configuration();
194
+ const apiInstance = new HorizonsWebsitesApi(configuration);
195
+
196
+ const { status, data } = await apiInstance.getWebsiteListV1();
197
+ ```
198
+
199
+ ### Parameters
200
+ This endpoint does not have any parameters.
201
+
202
+
203
+ ### Return type
204
+
205
+ **Array<HorizonsV1WebsitesWebsiteResource>**
206
+
207
+ ### Authorization
208
+
209
+ [apiToken](../README.md#apiToken)
210
+
211
+ ### HTTP request headers
212
+
213
+ - **Content-Type**: Not defined
214
+ - **Accept**: application/json
215
+
216
+
217
+ ### HTTP response details
218
+ | Status code | Description | Response headers |
219
+ |-------------|-------------|------------------|
220
+ |**200** | Success response | - |
221
+ |**401** | Unauthenticated response | - |
222
+ |**500** | Error response | - |
223
+
224
+ [[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)
225
+
65
226
  # **getWebsiteV1**
66
227
  > HorizonsV1WebsitesWebsiteUrlResource getWebsiteV1()
67
228
 
68
- Get a link for the user to edit their website in Hostinger Horizons interface.\\n Use this tool when user wants to modify, edit or add new features to an existing website.\\n Websites can only be edited in Hostinger Horizons interface in the provided website URL.
229
+ Get the link for the user to open their website in Hostinger Horizons interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger Horizons interface in the provided website URL.
69
230
 
70
231
  ### Example
71
232
 
@@ -115,3 +276,56 @@ const { status, data } = await apiInstance.getWebsiteV1(
115
276
 
116
277
  [[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)
117
278
 
279
+ # **publishWebsiteV1**
280
+ > HorizonsV1WebsitesPublishedWebsiteResource publishWebsiteV1()
281
+
282
+ Publish a Hostinger Horizons website so its latest changes go live.\\n Use this tool when the user asks to publish, deploy or make their website live.\\n This tool starts the publish process and returns the URL the website will be live on. Publishing happens asynchronously and takes a few minutes.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that the website is being published and you should provide the published URL to the user immediately.
283
+
284
+ ### Example
285
+
286
+ ```typescript
287
+ import {
288
+ HorizonsWebsitesApi,
289
+ Configuration
290
+ } from '@hostinger/sdk';
291
+
292
+ const configuration = new Configuration();
293
+ const apiInstance = new HorizonsWebsitesApi(configuration);
294
+
295
+ let websiteId: string; //The website ID (default to undefined)
296
+
297
+ const { status, data } = await apiInstance.publishWebsiteV1(
298
+ websiteId
299
+ );
300
+ ```
301
+
302
+ ### Parameters
303
+
304
+ |Name | Type | Description | Notes|
305
+ |------------- | ------------- | ------------- | -------------|
306
+ | **websiteId** | [**string**] | The website ID | defaults to undefined|
307
+
308
+
309
+ ### Return type
310
+
311
+ **HorizonsV1WebsitesPublishedWebsiteResource**
312
+
313
+ ### Authorization
314
+
315
+ [apiToken](../README.md#apiToken)
316
+
317
+ ### HTTP request headers
318
+
319
+ - **Content-Type**: Not defined
320
+ - **Accept**: application/json
321
+
322
+
323
+ ### HTTP response details
324
+ | Status code | Description | Response headers |
325
+ |-------------|-------------|------------------|
326
+ |**200** | Success response | - |
327
+ |**401** | Unauthenticated response | - |
328
+ |**500** | Error response | - |
329
+
330
+ [[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)
331
+
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.49.2
6
+ * API Version: 1.49.3
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/sdk",
3
- "version": "1.49.2",
3
+ "version": "1.49.3",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {