hostinger-api-sdk 3.4.0 → 3.4.2

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.
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **status** | **string** | Always `publishing` - the build runs asynchronously after this response | [default to undefined]
9
9
  **published_url** | **string** | The URL the published website will be live on in a few minutes | [default to undefined]
10
- **website_url** | **string** | The website URL for the user to track progress in Hostinger Horizons interface | [default to undefined]
10
+ **website_url** | **string** | The website URL for the user to track progress in Hostinger AI Builder interface | [default to undefined]
11
11
  **website_id** | **string** | The website ID | [default to undefined]
12
12
 
13
13
  ## Example
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  **domain** | **string** | The domain the website is published on, if it has been published | [optional] [default to undefined]
11
11
  **status** | **string** | The website status | [default to undefined]
12
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]
13
+ **website_url** | **string** | The website URL for the user to access their website in Hostinger AI Builder interface | [default to undefined]
14
14
 
15
15
  ## Example
16
16
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **website_url** | **string** | The website URL for the user to access their website in Hostinger Horizons interface | [default to undefined]
8
+ **website_url** | **string** | The website URL for the user to access their website in Hostinger AI Builder interface | [default to undefined]
9
9
  **published_at** | **string** | When the website was last published, or null if it has never been published | [optional] [default to undefined]
10
10
  **is_template** | **boolean** | Whether the website is published as a template, so its published pages show a \"Use template\" banner | [optional] [default to undefined]
11
- **is_in_progress** | **boolean** | Whether Hostinger Horizons is still generating changes or publishing the website. Publishing is refused while it is true, and editing while changes are being generated. An unfinished template migration also refuses publishing, with its own error, without setting this flag. | [optional] [default to undefined]
12
- **is_generating** | **boolean** | Whether Hostinger Horizons is generating changes to the website. Editing and publishing are refused while it is true | [optional] [default to undefined]
11
+ **is_in_progress** | **boolean** | Whether Hostinger AI Builder is still generating changes or publishing the website. Publishing is refused while it is true, and editing while changes are being generated. An unfinished template migration also refuses publishing, with its own error, without setting this flag. | [optional] [default to undefined]
12
+ **is_generating** | **boolean** | Whether Hostinger AI Builder is generating changes to the website. Editing and publishing are refused while it is true | [optional] [default to undefined]
13
13
  **actions_in_progress** | **Array<string>** | What is running on the website right now: `website_publish` while it is being published right now, when publishing is refused; empty otherwise. An unfinished template migration also refuses publishing, with its own error, without appearing here. | [optional] [default to undefined]
14
14
  **has_ecommerce_store** | **boolean** | Whether the website has an ecommerce store | [optional] [default to undefined]
15
15
 
@@ -14,7 +14,7 @@ All URIs are relative to *https://developers.hostinger.com*
14
14
  # **cloneWebsiteV1**
15
15
  > HorizonsV1WebsitesCreatedWebsiteResource cloneWebsiteV1()
16
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.
17
+ Clone a Hostinger AI Builder 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 AI Builder interface.
18
18
 
19
19
  ### Example
20
20
 
@@ -67,7 +67,7 @@ const { status, data } = await apiInstance.cloneWebsiteV1(
67
67
  # **createWebsiteV1**
68
68
  > HorizonsV1WebsitesCreatedWebsiteResource createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest)
69
69
 
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
70
+ Create new Hostinger AI Builder 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 AI Builder 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 AI Builder 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 - Hostinger AI Builder 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
71
71
 
72
72
  ### Example
73
73
 
@@ -122,7 +122,7 @@ const { status, data } = await apiInstance.createWebsiteV1(
122
122
  # **editWebsiteV1**
123
123
  > HorizonsV1WebsitesCreatedWebsiteResource editWebsiteV1(horizonsV1WebsitesEditWebsiteRequest)
124
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.
125
+ Edit an existing Hostinger AI Builder 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 AI Builder 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
126
 
127
127
  ### Example
128
128
 
@@ -180,7 +180,7 @@ const { status, data } = await apiInstance.editWebsiteV1(
180
180
  # **getWebsiteListV1**
181
181
  > Array<HorizonsV1WebsitesWebsiteResource> getWebsiteListV1()
182
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.
183
+ List the Hostinger AI Builder 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 AI Builder interface.\\n The complete list of websites is returned in a single response - it is not paginated.
184
184
 
185
185
  ### Example
186
186
 
@@ -226,7 +226,7 @@ This endpoint does not have any parameters.
226
226
  # **getWebsiteV1**
227
227
  > HorizonsV1WebsitesWebsiteUrlResource getWebsiteV1()
228
228
 
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 `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `is_generating` is true while changes are being generated, and `actions_in_progress` has `website_publish` while the website is being published. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger Horizons interface in the provided website URL.
229
+ Get the link for the user to open their website in Hostinger AI Builder 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 `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `is_generating` is true while changes are being generated, and `actions_in_progress` has `website_publish` while the website is being published. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger AI Builder interface in the provided website URL.
230
230
 
231
231
  ### Example
232
232
 
@@ -279,7 +279,7 @@ const { status, data } = await apiInstance.getWebsiteV1(
279
279
  # **publishWebsiteV1**
280
280
  > HorizonsV1WebsitesPublishedWebsiteResource publishWebsiteV1()
281
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 Set `is_template` only when the user explicitly asks to share the website as a template: true adds a \"Use template\" banner to its published pages that copies the website into the visitor\'s own account, and false removes it. Leave it out to keep the current setting.\\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.
282
+ Publish a Hostinger AI Builder 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 Set `is_template` only when the user explicitly asks to share the website as a template: true adds a \"Use template\" banner to its published pages that copies the website into the visitor\'s own account, and false removes it. Leave it out to keep the current setting.\\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
283
 
284
284
  ### Example
285
285
 
@@ -4,69 +4,10 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**attachPublicKeyV1**](#attachpublickeyv1) | **POST** /api/vps/v1/public-keys/attach/{virtualMachineId} | Attach public key|
8
7
  |[**createPublicKeyV1**](#createpublickeyv1) | **POST** /api/vps/v1/public-keys | Create public key|
9
8
  |[**deletePublicKeyV1**](#deletepublickeyv1) | **DELETE** /api/vps/v1/public-keys/{publicKeyId} | Delete public key|
10
9
  |[**getPublicKeysV1**](#getpublickeysv1) | **GET** /api/vps/v1/public-keys | Get public keys|
11
10
 
12
- # **attachPublicKeyV1**
13
- > VPSV1ActionActionResource attachPublicKeyV1(vPSV1PublicKeyAttachRequest)
14
-
15
- Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
16
-
17
- ### Example
18
-
19
- ```typescript
20
- import {
21
- VPSPublicKeysApi,
22
- Configuration,
23
- VPSV1PublicKeyAttachRequest
24
- } from '@hostinger/sdk';
25
-
26
- const configuration = new Configuration();
27
- const apiInstance = new VPSPublicKeysApi(configuration);
28
-
29
- let virtualMachineId: number; //Virtual Machine ID (default to undefined)
30
- let vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest; //
31
-
32
- const { status, data } = await apiInstance.attachPublicKeyV1(
33
- virtualMachineId,
34
- vPSV1PublicKeyAttachRequest
35
- );
36
- ```
37
-
38
- ### Parameters
39
-
40
- |Name | Type | Description | Notes|
41
- |------------- | ------------- | ------------- | -------------|
42
- | **vPSV1PublicKeyAttachRequest** | **VPSV1PublicKeyAttachRequest**| | |
43
- | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
44
-
45
-
46
- ### Return type
47
-
48
- **VPSV1ActionActionResource**
49
-
50
- ### Authorization
51
-
52
- [apiToken](../README.md#apiToken)
53
-
54
- ### HTTP request headers
55
-
56
- - **Content-Type**: application/json
57
- - **Accept**: application/json
58
-
59
-
60
- ### HTTP response details
61
- | Status code | Description | Response headers |
62
- |-------------|-------------|------------------|
63
- |**200** | Success response | - |
64
- |**422** | Validation error response | - |
65
- |**401** | Unauthenticated response | - |
66
- |**500** | Error response | - |
67
-
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
-
70
11
  # **createPublicKeyV1**
71
12
  > VPSV1PublicKeyPublicKeyResource createPublicKeyV1(vPSV1PublicKeyStoreRequest)
72
13
 
@@ -4,7 +4,6 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**getAttachedPublicKeysV1**](#getattachedpublickeysv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/public-keys | Get attached public keys|
8
7
  |[**getMetricsV1**](#getmetricsv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId}/metrics | Get metrics|
9
8
  |[**getVirtualMachineDetailsV1**](#getvirtualmachinedetailsv1) | **GET** /api/vps/v1/virtual-machines/{virtualMachineId} | Get virtual machine details|
10
9
  |[**getVirtualMachinesV1**](#getvirtualmachinesv1) | **GET** /api/vps/v1/virtual-machines | Get virtual machines|
@@ -20,62 +19,6 @@ All URIs are relative to *https://developers.hostinger.com*
20
19
  |[**startVirtualMachineV1**](#startvirtualmachinev1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/start | Start virtual machine|
21
20
  |[**stopVirtualMachineV1**](#stopvirtualmachinev1) | **POST** /api/vps/v1/virtual-machines/{virtualMachineId}/stop | Stop virtual machine|
22
21
 
23
- # **getAttachedPublicKeysV1**
24
- > VPSV1PublicKeyListResponse getAttachedPublicKeysV1()
25
-
26
- Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
27
-
28
- ### Example
29
-
30
- ```typescript
31
- import {
32
- VPSVirtualMachineApi,
33
- Configuration
34
- } from '@hostinger/sdk';
35
-
36
- const configuration = new Configuration();
37
- const apiInstance = new VPSVirtualMachineApi(configuration);
38
-
39
- let virtualMachineId: number; //Virtual Machine ID (default to undefined)
40
- let page: number; //Page number (optional) (default to undefined)
41
-
42
- const { status, data } = await apiInstance.getAttachedPublicKeysV1(
43
- virtualMachineId,
44
- page
45
- );
46
- ```
47
-
48
- ### Parameters
49
-
50
- |Name | Type | Description | Notes|
51
- |------------- | ------------- | ------------- | -------------|
52
- | **virtualMachineId** | [**number**] | Virtual Machine ID | defaults to undefined|
53
- | **page** | [**number**] | Page number | (optional) defaults to undefined|
54
-
55
-
56
- ### Return type
57
-
58
- **VPSV1PublicKeyListResponse**
59
-
60
- ### Authorization
61
-
62
- [apiToken](../README.md#apiToken)
63
-
64
- ### HTTP request headers
65
-
66
- - **Content-Type**: Not defined
67
- - **Accept**: application/json
68
-
69
-
70
- ### HTTP response details
71
- | Status code | Description | Response headers |
72
- |-------------|-------------|------------------|
73
- |**200** | Success response | - |
74
- |**401** | Unauthenticated response | - |
75
- |**500** | Error response | - |
76
-
77
- [[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)
78
-
79
22
  # **getMetricsV1**
80
23
  > VPSV1MetricsMetricsCollection getMetricsV1()
81
24
 
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 3.4.0
6
+ * API Version: 3.4.2
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": "3.4.0",
3
+ "version": "3.4.2",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {
@@ -1,20 +0,0 @@
1
- # VPSV1PublicKeyAttachRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **ids** | **Array&lt;number&gt;** | Public Key IDs to attach | [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { VPSV1PublicKeyAttachRequest } from '@hostinger/sdk';
14
-
15
- const instance: VPSV1PublicKeyAttachRequest = {
16
- ids,
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)