@hostinger/sdk 1.49.2 → 1.49.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## @hostinger/sdk@1.49.2
1
+ ## @hostinger/sdk@1.49.4
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install @hostinger/sdk@1.49.2 --save
8
+ npm install @hostinger/sdk@1.49.4 --save
9
9
  ```
package/api.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.4
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
@@ -5450,7 +5450,7 @@ export type EcommerceV1ProductUpdateRequestStatusEnum = typeof EcommerceV1Produc
5450
5450
  */
5451
5451
  export interface EcommerceV1ProductUploadProductImageRequest {
5452
5452
  /**
5453
- * 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. Provide either this or object_name.
5453
+ * Publicly reachable URL of a raster image (JPEG, PNG, GIF or WebP), maximum 15MB. Fetching the image requires HTTPS on port 443 without embedded credentials. At most one redirect is allowed; its destination must meet the same URL requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is fetched, virus-scanned and validated by content, then stored on the CDN. SVG is not accepted. Provide either this or object_name.
5454
5454
  * @type {string}
5455
5455
  * @memberof EcommerceV1ProductUploadProductImageRequest
5456
5456
  */
@@ -6419,6 +6419,136 @@ export interface HorizonsV1WebsitesCreatedWebsiteResource {
6419
6419
  */
6420
6420
  'website_id': string;
6421
6421
  }
6422
+ /**
6423
+ *
6424
+ * @export
6425
+ * @interface HorizonsV1WebsitesEditWebsiteRequest
6426
+ */
6427
+ export interface HorizonsV1WebsitesEditWebsiteRequest {
6428
+ /**
6429
+ *
6430
+ * @type {Array<HorizonsV1WebsitesEditWebsiteRequestMessageInner>}
6431
+ * @memberof HorizonsV1WebsitesEditWebsiteRequest
6432
+ */
6433
+ 'message': Array<HorizonsV1WebsitesEditWebsiteRequestMessageInner>;
6434
+ }
6435
+ /**
6436
+ *
6437
+ * @export
6438
+ * @interface HorizonsV1WebsitesEditWebsiteRequestMessageInner
6439
+ */
6440
+ export interface HorizonsV1WebsitesEditWebsiteRequestMessageInner {
6441
+ /**
6442
+ *
6443
+ * @type {string}
6444
+ * @memberof HorizonsV1WebsitesEditWebsiteRequestMessageInner
6445
+ */
6446
+ 'type': HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum;
6447
+ /**
6448
+ * Detailed description of the changes to apply to the website. Include which sections, features, content or design should change and how. The specification should be detailed and comprehensive, covering all requested changes.
6449
+ * @type {string}
6450
+ * @memberof HorizonsV1WebsitesEditWebsiteRequestMessageInner
6451
+ */
6452
+ 'text': string;
6453
+ }
6454
+
6455
+ export const HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum = {
6456
+ Text: 'text'
6457
+ } as const;
6458
+
6459
+ export type HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum = typeof HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum[keyof typeof HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum];
6460
+
6461
+ /**
6462
+ *
6463
+ * @export
6464
+ * @interface HorizonsV1WebsitesPublishedWebsiteResource
6465
+ */
6466
+ export interface HorizonsV1WebsitesPublishedWebsiteResource {
6467
+ /**
6468
+ * Always `publishing` - the build runs asynchronously after this response
6469
+ * @type {string}
6470
+ * @memberof HorizonsV1WebsitesPublishedWebsiteResource
6471
+ */
6472
+ 'status': HorizonsV1WebsitesPublishedWebsiteResourceStatusEnum;
6473
+ /**
6474
+ * The URL the published website will be live on in a few minutes
6475
+ * @type {string}
6476
+ * @memberof HorizonsV1WebsitesPublishedWebsiteResource
6477
+ */
6478
+ 'published_url': string;
6479
+ /**
6480
+ * The website URL for the user to track progress in Hostinger Horizons interface
6481
+ * @type {string}
6482
+ * @memberof HorizonsV1WebsitesPublishedWebsiteResource
6483
+ */
6484
+ 'website_url': string;
6485
+ /**
6486
+ * The website ID
6487
+ * @type {string}
6488
+ * @memberof HorizonsV1WebsitesPublishedWebsiteResource
6489
+ */
6490
+ 'website_id': string;
6491
+ }
6492
+
6493
+ export const HorizonsV1WebsitesPublishedWebsiteResourceStatusEnum = {
6494
+ Publishing: 'publishing'
6495
+ } as const;
6496
+
6497
+ export type HorizonsV1WebsitesPublishedWebsiteResourceStatusEnum = typeof HorizonsV1WebsitesPublishedWebsiteResourceStatusEnum[keyof typeof HorizonsV1WebsitesPublishedWebsiteResourceStatusEnum];
6498
+
6499
+ /**
6500
+ *
6501
+ * @export
6502
+ * @interface HorizonsV1WebsitesWebsiteResource
6503
+ */
6504
+ export interface HorizonsV1WebsitesWebsiteResource {
6505
+ /**
6506
+ * The website ID
6507
+ * @type {string}
6508
+ * @memberof HorizonsV1WebsitesWebsiteResource
6509
+ */
6510
+ 'website_id': string;
6511
+ /**
6512
+ * The website description
6513
+ * @type {string}
6514
+ * @memberof HorizonsV1WebsitesWebsiteResource
6515
+ */
6516
+ 'description': string | null;
6517
+ /**
6518
+ * The domain the website is published on, if it has been published
6519
+ * @type {string}
6520
+ * @memberof HorizonsV1WebsitesWebsiteResource
6521
+ */
6522
+ 'domain': string | null;
6523
+ /**
6524
+ * The website status
6525
+ * @type {string}
6526
+ * @memberof HorizonsV1WebsitesWebsiteResource
6527
+ */
6528
+ 'status': HorizonsV1WebsitesWebsiteResourceStatusEnum;
6529
+ /**
6530
+ * The website creation date
6531
+ * @type {string}
6532
+ * @memberof HorizonsV1WebsitesWebsiteResource
6533
+ */
6534
+ 'created_at': string;
6535
+ /**
6536
+ * The website URL for the user to access their website in Hostinger Horizons interface
6537
+ * @type {string}
6538
+ * @memberof HorizonsV1WebsitesWebsiteResource
6539
+ */
6540
+ 'website_url': string;
6541
+ }
6542
+
6543
+ export const HorizonsV1WebsitesWebsiteResourceStatusEnum = {
6544
+ Active: 'active',
6545
+ Suspended: 'suspended',
6546
+ Deleting: 'deleting',
6547
+ Deleted: 'deleted'
6548
+ } as const;
6549
+
6550
+ export type HorizonsV1WebsitesWebsiteResourceStatusEnum = typeof HorizonsV1WebsitesWebsiteResourceStatusEnum[keyof typeof HorizonsV1WebsitesWebsiteResourceStatusEnum];
6551
+
6422
6552
  /**
6423
6553
  *
6424
6554
  * @export
@@ -26201,7 +26331,7 @@ export const EcommerceProductsApiAxiosParamCreator = function (configuration?: C
26201
26331
  };
26202
26332
  },
26203
26333
  /**
26204
- * 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.
26334
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. 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.
26205
26335
  * @summary Upload and attach a product image
26206
26336
  * @param {string} storeId The ID of the store the product belongs to.
26207
26337
  * @param {string} productId The ID of the product to attach the image to.
@@ -26342,7 +26472,7 @@ export const EcommerceProductsApiFp = function(configuration?: Configuration) {
26342
26472
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26343
26473
  },
26344
26474
  /**
26345
- * 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.
26475
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. 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.
26346
26476
  * @summary Upload and attach a product image
26347
26477
  * @param {string} storeId The ID of the store the product belongs to.
26348
26478
  * @param {string} productId The ID of the product to attach the image to.
@@ -26437,7 +26567,7 @@ export const EcommerceProductsApiFactory = function (configuration?: Configurati
26437
26567
  return localVarFp.updateAProductV1(storeId, productId, ecommerceV1ProductUpdateRequest, options).then((request) => request(axios, basePath));
26438
26568
  },
26439
26569
  /**
26440
- * 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.
26570
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. 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.
26441
26571
  * @summary Upload and attach a product image
26442
26572
  * @param {string} storeId The ID of the store the product belongs to.
26443
26573
  * @param {string} productId The ID of the product to attach the image to.
@@ -26542,7 +26672,7 @@ export class EcommerceProductsApi extends BaseAPI {
26542
26672
  }
26543
26673
 
26544
26674
  /**
26545
- * 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.
26675
+ * Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. 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.
26546
26676
  * @summary Upload and attach a product image
26547
26677
  * @param {string} storeId The ID of the store the product belongs to.
26548
26678
  * @param {string} productId The ID of the product to attach the image to.
@@ -27314,7 +27444,45 @@ export class EcommerceStoresApi extends BaseAPI {
27314
27444
  export const HorizonsWebsitesApiAxiosParamCreator = function (configuration?: Configuration) {
27315
27445
  return {
27316
27446
  /**
27317
- * 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
27447
+ * 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.
27448
+ * @summary Clone website
27449
+ * @param {string} websiteId The website ID
27450
+ * @param {*} [options] Override http request option.
27451
+ * @throws {RequiredError}
27452
+ */
27453
+ cloneWebsiteV1: async (websiteId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27454
+ // verify required parameter 'websiteId' is not null or undefined
27455
+ assertParamExists('cloneWebsiteV1', 'websiteId', websiteId)
27456
+ const localVarPath = `/api/horizons/v1/websites/{websiteId}/clone`
27457
+ .replace(`{${"websiteId"}}`, encodeURIComponent(String(websiteId)));
27458
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27459
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27460
+ let baseOptions;
27461
+ if (configuration) {
27462
+ baseOptions = configuration.baseOptions;
27463
+ }
27464
+
27465
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
27466
+ const localVarHeaderParameter = {} as any;
27467
+ const localVarQueryParameter = {} as any;
27468
+
27469
+ // authentication apiToken required
27470
+ // http bearer authentication required
27471
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27472
+
27473
+
27474
+
27475
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27476
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27477
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27478
+
27479
+ return {
27480
+ url: toPathString(localVarUrlObj),
27481
+ options: localVarRequestOptions,
27482
+ };
27483
+ },
27484
+ /**
27485
+ * 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
27318
27486
  * @summary Create website
27319
27487
  * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
27320
27488
  * @param {*} [options] Override http request option.
@@ -27354,7 +27522,85 @@ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration?: Co
27354
27522
  };
27355
27523
  },
27356
27524
  /**
27357
- * 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.
27525
+ * 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.
27526
+ * @summary Edit website
27527
+ * @param {string} websiteId The website ID
27528
+ * @param {HorizonsV1WebsitesEditWebsiteRequest} horizonsV1WebsitesEditWebsiteRequest
27529
+ * @param {*} [options] Override http request option.
27530
+ * @throws {RequiredError}
27531
+ */
27532
+ editWebsiteV1: async (websiteId: string, horizonsV1WebsitesEditWebsiteRequest: HorizonsV1WebsitesEditWebsiteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27533
+ // verify required parameter 'websiteId' is not null or undefined
27534
+ assertParamExists('editWebsiteV1', 'websiteId', websiteId)
27535
+ // verify required parameter 'horizonsV1WebsitesEditWebsiteRequest' is not null or undefined
27536
+ assertParamExists('editWebsiteV1', 'horizonsV1WebsitesEditWebsiteRequest', horizonsV1WebsitesEditWebsiteRequest)
27537
+ const localVarPath = `/api/horizons/v1/websites/{websiteId}/messages`
27538
+ .replace(`{${"websiteId"}}`, encodeURIComponent(String(websiteId)));
27539
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27540
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27541
+ let baseOptions;
27542
+ if (configuration) {
27543
+ baseOptions = configuration.baseOptions;
27544
+ }
27545
+
27546
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
27547
+ const localVarHeaderParameter = {} as any;
27548
+ const localVarQueryParameter = {} as any;
27549
+
27550
+ // authentication apiToken required
27551
+ // http bearer authentication required
27552
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27553
+
27554
+
27555
+
27556
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27557
+
27558
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27559
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27560
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27561
+ localVarRequestOptions.data = serializeDataIfNeeded(horizonsV1WebsitesEditWebsiteRequest, localVarRequestOptions, configuration)
27562
+
27563
+ return {
27564
+ url: toPathString(localVarUrlObj),
27565
+ options: localVarRequestOptions,
27566
+ };
27567
+ },
27568
+ /**
27569
+ * 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.
27570
+ * @summary Get website list
27571
+ * @param {*} [options] Override http request option.
27572
+ * @throws {RequiredError}
27573
+ */
27574
+ getWebsiteListV1: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27575
+ const localVarPath = `/api/horizons/v1/websites`;
27576
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27577
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27578
+ let baseOptions;
27579
+ if (configuration) {
27580
+ baseOptions = configuration.baseOptions;
27581
+ }
27582
+
27583
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27584
+ const localVarHeaderParameter = {} as any;
27585
+ const localVarQueryParameter = {} as any;
27586
+
27587
+ // authentication apiToken required
27588
+ // http bearer authentication required
27589
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27590
+
27591
+
27592
+
27593
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27594
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27595
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27596
+
27597
+ return {
27598
+ url: toPathString(localVarUrlObj),
27599
+ options: localVarRequestOptions,
27600
+ };
27601
+ },
27602
+ /**
27603
+ * 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.
27358
27604
  * @summary Get website
27359
27605
  * @param {string} websiteId The website ID
27360
27606
  * @param {*} [options] Override http request option.
@@ -27382,6 +27628,44 @@ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration?: Co
27382
27628
 
27383
27629
 
27384
27630
 
27631
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27632
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27633
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27634
+
27635
+ return {
27636
+ url: toPathString(localVarUrlObj),
27637
+ options: localVarRequestOptions,
27638
+ };
27639
+ },
27640
+ /**
27641
+ * 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.
27642
+ * @summary Publish website
27643
+ * @param {string} websiteId The website ID
27644
+ * @param {*} [options] Override http request option.
27645
+ * @throws {RequiredError}
27646
+ */
27647
+ publishWebsiteV1: async (websiteId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27648
+ // verify required parameter 'websiteId' is not null or undefined
27649
+ assertParamExists('publishWebsiteV1', 'websiteId', websiteId)
27650
+ const localVarPath = `/api/horizons/v1/websites/{websiteId}/publish`
27651
+ .replace(`{${"websiteId"}}`, encodeURIComponent(String(websiteId)));
27652
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27653
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27654
+ let baseOptions;
27655
+ if (configuration) {
27656
+ baseOptions = configuration.baseOptions;
27657
+ }
27658
+
27659
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
27660
+ const localVarHeaderParameter = {} as any;
27661
+ const localVarQueryParameter = {} as any;
27662
+
27663
+ // authentication apiToken required
27664
+ // http bearer authentication required
27665
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27666
+
27667
+
27668
+
27385
27669
  setSearchParams(localVarUrlObj, localVarQueryParameter);
27386
27670
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27387
27671
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -27402,7 +27686,19 @@ export const HorizonsWebsitesApiFp = function(configuration?: Configuration) {
27402
27686
  const localVarAxiosParamCreator = HorizonsWebsitesApiAxiosParamCreator(configuration)
27403
27687
  return {
27404
27688
  /**
27405
- * 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
27689
+ * 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.
27690
+ * @summary Clone website
27691
+ * @param {string} websiteId The website ID
27692
+ * @param {*} [options] Override http request option.
27693
+ * @throws {RequiredError}
27694
+ */
27695
+ async cloneWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HorizonsV1WebsitesCreatedWebsiteResource>> {
27696
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cloneWebsiteV1(websiteId, options);
27697
+ const localVarOperationServerBasePath = operationServerMap['HorizonsWebsitesApi.cloneWebsiteV1']?.[0]?.url;
27698
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27699
+ },
27700
+ /**
27701
+ * 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
27406
27702
  * @summary Create website
27407
27703
  * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
27408
27704
  * @param {*} [options] Override http request option.
@@ -27414,7 +27710,31 @@ export const HorizonsWebsitesApiFp = function(configuration?: Configuration) {
27414
27710
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27415
27711
  },
27416
27712
  /**
27417
- * 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.
27713
+ * 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.
27714
+ * @summary Edit website
27715
+ * @param {string} websiteId The website ID
27716
+ * @param {HorizonsV1WebsitesEditWebsiteRequest} horizonsV1WebsitesEditWebsiteRequest
27717
+ * @param {*} [options] Override http request option.
27718
+ * @throws {RequiredError}
27719
+ */
27720
+ async editWebsiteV1(websiteId: string, horizonsV1WebsitesEditWebsiteRequest: HorizonsV1WebsitesEditWebsiteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HorizonsV1WebsitesCreatedWebsiteResource>> {
27721
+ const localVarAxiosArgs = await localVarAxiosParamCreator.editWebsiteV1(websiteId, horizonsV1WebsitesEditWebsiteRequest, options);
27722
+ const localVarOperationServerBasePath = operationServerMap['HorizonsWebsitesApi.editWebsiteV1']?.[0]?.url;
27723
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27724
+ },
27725
+ /**
27726
+ * 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.
27727
+ * @summary Get website list
27728
+ * @param {*} [options] Override http request option.
27729
+ * @throws {RequiredError}
27730
+ */
27731
+ async getWebsiteListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HorizonsV1WebsitesWebsiteResource>>> {
27732
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getWebsiteListV1(options);
27733
+ const localVarOperationServerBasePath = operationServerMap['HorizonsWebsitesApi.getWebsiteListV1']?.[0]?.url;
27734
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27735
+ },
27736
+ /**
27737
+ * 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.
27418
27738
  * @summary Get website
27419
27739
  * @param {string} websiteId The website ID
27420
27740
  * @param {*} [options] Override http request option.
@@ -27425,6 +27745,18 @@ export const HorizonsWebsitesApiFp = function(configuration?: Configuration) {
27425
27745
  const localVarOperationServerBasePath = operationServerMap['HorizonsWebsitesApi.getWebsiteV1']?.[0]?.url;
27426
27746
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27427
27747
  },
27748
+ /**
27749
+ * 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.
27750
+ * @summary Publish website
27751
+ * @param {string} websiteId The website ID
27752
+ * @param {*} [options] Override http request option.
27753
+ * @throws {RequiredError}
27754
+ */
27755
+ async publishWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HorizonsV1WebsitesPublishedWebsiteResource>> {
27756
+ const localVarAxiosArgs = await localVarAxiosParamCreator.publishWebsiteV1(websiteId, options);
27757
+ const localVarOperationServerBasePath = operationServerMap['HorizonsWebsitesApi.publishWebsiteV1']?.[0]?.url;
27758
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27759
+ },
27428
27760
  }
27429
27761
  };
27430
27762
 
@@ -27436,7 +27768,17 @@ export const HorizonsWebsitesApiFactory = function (configuration?: Configuratio
27436
27768
  const localVarFp = HorizonsWebsitesApiFp(configuration)
27437
27769
  return {
27438
27770
  /**
27439
- * 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
27771
+ * 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.
27772
+ * @summary Clone website
27773
+ * @param {string} websiteId The website ID
27774
+ * @param {*} [options] Override http request option.
27775
+ * @throws {RequiredError}
27776
+ */
27777
+ cloneWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): AxiosPromise<HorizonsV1WebsitesCreatedWebsiteResource> {
27778
+ return localVarFp.cloneWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
27779
+ },
27780
+ /**
27781
+ * 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
27440
27782
  * @summary Create website
27441
27783
  * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
27442
27784
  * @param {*} [options] Override http request option.
@@ -27446,7 +27788,27 @@ export const HorizonsWebsitesApiFactory = function (configuration?: Configuratio
27446
27788
  return localVarFp.createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options).then((request) => request(axios, basePath));
27447
27789
  },
27448
27790
  /**
27449
- * 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.
27791
+ * 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.
27792
+ * @summary Edit website
27793
+ * @param {string} websiteId The website ID
27794
+ * @param {HorizonsV1WebsitesEditWebsiteRequest} horizonsV1WebsitesEditWebsiteRequest
27795
+ * @param {*} [options] Override http request option.
27796
+ * @throws {RequiredError}
27797
+ */
27798
+ editWebsiteV1(websiteId: string, horizonsV1WebsitesEditWebsiteRequest: HorizonsV1WebsitesEditWebsiteRequest, options?: RawAxiosRequestConfig): AxiosPromise<HorizonsV1WebsitesCreatedWebsiteResource> {
27799
+ return localVarFp.editWebsiteV1(websiteId, horizonsV1WebsitesEditWebsiteRequest, options).then((request) => request(axios, basePath));
27800
+ },
27801
+ /**
27802
+ * 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.
27803
+ * @summary Get website list
27804
+ * @param {*} [options] Override http request option.
27805
+ * @throws {RequiredError}
27806
+ */
27807
+ getWebsiteListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<HorizonsV1WebsitesWebsiteResource>> {
27808
+ return localVarFp.getWebsiteListV1(options).then((request) => request(axios, basePath));
27809
+ },
27810
+ /**
27811
+ * 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.
27450
27812
  * @summary Get website
27451
27813
  * @param {string} websiteId The website ID
27452
27814
  * @param {*} [options] Override http request option.
@@ -27455,6 +27817,16 @@ export const HorizonsWebsitesApiFactory = function (configuration?: Configuratio
27455
27817
  getWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): AxiosPromise<HorizonsV1WebsitesWebsiteUrlResource> {
27456
27818
  return localVarFp.getWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
27457
27819
  },
27820
+ /**
27821
+ * 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.
27822
+ * @summary Publish website
27823
+ * @param {string} websiteId The website ID
27824
+ * @param {*} [options] Override http request option.
27825
+ * @throws {RequiredError}
27826
+ */
27827
+ publishWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): AxiosPromise<HorizonsV1WebsitesPublishedWebsiteResource> {
27828
+ return localVarFp.publishWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
27829
+ },
27458
27830
  };
27459
27831
  };
27460
27832
 
@@ -27466,7 +27838,19 @@ export const HorizonsWebsitesApiFactory = function (configuration?: Configuratio
27466
27838
  */
27467
27839
  export class HorizonsWebsitesApi extends BaseAPI {
27468
27840
  /**
27469
- * 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
27841
+ * 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.
27842
+ * @summary Clone website
27843
+ * @param {string} websiteId The website ID
27844
+ * @param {*} [options] Override http request option.
27845
+ * @throws {RequiredError}
27846
+ * @memberof HorizonsWebsitesApi
27847
+ */
27848
+ public cloneWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig) {
27849
+ return HorizonsWebsitesApiFp(this.configuration).cloneWebsiteV1(websiteId, options).then((request) => request(this.axios, this.basePath));
27850
+ }
27851
+
27852
+ /**
27853
+ * 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
27470
27854
  * @summary Create website
27471
27855
  * @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
27472
27856
  * @param {*} [options] Override http request option.
@@ -27478,7 +27862,31 @@ export class HorizonsWebsitesApi extends BaseAPI {
27478
27862
  }
27479
27863
 
27480
27864
  /**
27481
- * 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.
27865
+ * 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.
27866
+ * @summary Edit website
27867
+ * @param {string} websiteId The website ID
27868
+ * @param {HorizonsV1WebsitesEditWebsiteRequest} horizonsV1WebsitesEditWebsiteRequest
27869
+ * @param {*} [options] Override http request option.
27870
+ * @throws {RequiredError}
27871
+ * @memberof HorizonsWebsitesApi
27872
+ */
27873
+ public editWebsiteV1(websiteId: string, horizonsV1WebsitesEditWebsiteRequest: HorizonsV1WebsitesEditWebsiteRequest, options?: RawAxiosRequestConfig) {
27874
+ return HorizonsWebsitesApiFp(this.configuration).editWebsiteV1(websiteId, horizonsV1WebsitesEditWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
27875
+ }
27876
+
27877
+ /**
27878
+ * 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.
27879
+ * @summary Get website list
27880
+ * @param {*} [options] Override http request option.
27881
+ * @throws {RequiredError}
27882
+ * @memberof HorizonsWebsitesApi
27883
+ */
27884
+ public getWebsiteListV1(options?: RawAxiosRequestConfig) {
27885
+ return HorizonsWebsitesApiFp(this.configuration).getWebsiteListV1(options).then((request) => request(this.axios, this.basePath));
27886
+ }
27887
+
27888
+ /**
27889
+ * 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.
27482
27890
  * @summary Get website
27483
27891
  * @param {string} websiteId The website ID
27484
27892
  * @param {*} [options] Override http request option.
@@ -27488,6 +27896,18 @@ export class HorizonsWebsitesApi extends BaseAPI {
27488
27896
  public getWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig) {
27489
27897
  return HorizonsWebsitesApiFp(this.configuration).getWebsiteV1(websiteId, options).then((request) => request(this.axios, this.basePath));
27490
27898
  }
27899
+
27900
+ /**
27901
+ * 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.
27902
+ * @summary Publish website
27903
+ * @param {string} websiteId The website ID
27904
+ * @param {*} [options] Override http request option.
27905
+ * @throws {RequiredError}
27906
+ * @memberof HorizonsWebsitesApi
27907
+ */
27908
+ public publishWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig) {
27909
+ return HorizonsWebsitesApiFp(this.configuration).publishWebsiteV1(websiteId, options).then((request) => request(this.axios, this.basePath));
27910
+ }
27491
27911
  }
27492
27912
 
27493
27913