@hostinger/sdk 1.59.1 → 1.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## @hostinger/sdk@1.59.1
1
+ ## @hostinger/sdk@1.60.0
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.59.1 --save
8
+ npm install @hostinger/sdk@1.60.0 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.59.0
6
+ * API Version: 1.60.0
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
@@ -6588,6 +6588,19 @@ export const HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum = {
6588
6588
 
6589
6589
  export type HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum = typeof HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum[keyof typeof HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum];
6590
6590
 
6591
+ /**
6592
+ *
6593
+ * @export
6594
+ * @interface HorizonsV1WebsitesPublishWebsiteRequest
6595
+ */
6596
+ export interface HorizonsV1WebsitesPublishWebsiteRequest {
6597
+ /**
6598
+ * Set to true to publish the website as a template: its published pages show a \"Use template\" banner that copies the website into the visitor\'s own account. Set to false to remove the banner. Leave it out to keep the current setting.
6599
+ * @type {boolean}
6600
+ * @memberof HorizonsV1WebsitesPublishWebsiteRequest
6601
+ */
6602
+ 'is_template': boolean;
6603
+ }
6591
6604
  /**
6592
6605
  *
6593
6606
  * @export
@@ -6691,6 +6704,30 @@ export interface HorizonsV1WebsitesWebsiteUrlResource {
6691
6704
  * @memberof HorizonsV1WebsitesWebsiteUrlResource
6692
6705
  */
6693
6706
  'website_url': string;
6707
+ /**
6708
+ * When the website was last published, or null if it has never been published
6709
+ * @type {string}
6710
+ * @memberof HorizonsV1WebsitesWebsiteUrlResource
6711
+ */
6712
+ 'published_at': string | null;
6713
+ /**
6714
+ * Whether the website is published as a template, so its published pages show a \"Use template\" banner
6715
+ * @type {boolean}
6716
+ * @memberof HorizonsV1WebsitesWebsiteUrlResource
6717
+ */
6718
+ 'is_template': boolean;
6719
+ /**
6720
+ * 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.
6721
+ * @type {boolean}
6722
+ * @memberof HorizonsV1WebsitesWebsiteUrlResource
6723
+ */
6724
+ 'is_in_progress': boolean;
6725
+ /**
6726
+ * Whether the website has an ecommerce store
6727
+ * @type {boolean}
6728
+ * @memberof HorizonsV1WebsitesWebsiteUrlResource
6729
+ */
6730
+ 'has_ecommerce_store': boolean;
6694
6731
  }
6695
6732
  /**
6696
6733
  *
@@ -29000,7 +29037,7 @@ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration?: Co
29000
29037
  };
29001
29038
  },
29002
29039
  /**
29003
- * 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.
29040
+ * 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. `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.
29004
29041
  * @summary Get website
29005
29042
  * @param {string} websiteId The website ID
29006
29043
  * @param {*} [options] Override http request option.
@@ -29038,13 +29075,14 @@ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration?: Co
29038
29075
  };
29039
29076
  },
29040
29077
  /**
29041
- * 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.
29078
+ * 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.
29042
29079
  * @summary Publish website
29043
29080
  * @param {string} websiteId The website ID
29081
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
29044
29082
  * @param {*} [options] Override http request option.
29045
29083
  * @throws {RequiredError}
29046
29084
  */
29047
- publishWebsiteV1: async (websiteId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29085
+ publishWebsiteV1: async (websiteId: string, horizonsV1WebsitesPublishWebsiteRequest?: HorizonsV1WebsitesPublishWebsiteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
29048
29086
  // verify required parameter 'websiteId' is not null or undefined
29049
29087
  assertParamExists('publishWebsiteV1', 'websiteId', websiteId)
29050
29088
  const localVarPath = `/api/horizons/v1/websites/{websiteId}/publish`
@@ -29066,9 +29104,12 @@ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration?: Co
29066
29104
 
29067
29105
 
29068
29106
 
29107
+ localVarHeaderParameter['Content-Type'] = 'application/json';
29108
+
29069
29109
  setSearchParams(localVarUrlObj, localVarQueryParameter);
29070
29110
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
29071
29111
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
29112
+ localVarRequestOptions.data = serializeDataIfNeeded(horizonsV1WebsitesPublishWebsiteRequest, localVarRequestOptions, configuration)
29072
29113
 
29073
29114
  return {
29074
29115
  url: toPathString(localVarUrlObj),
@@ -29134,7 +29175,7 @@ export const HorizonsWebsitesApiFp = function(configuration?: Configuration) {
29134
29175
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29135
29176
  },
29136
29177
  /**
29137
- * 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.
29178
+ * 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. `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.
29138
29179
  * @summary Get website
29139
29180
  * @param {string} websiteId The website ID
29140
29181
  * @param {*} [options] Override http request option.
@@ -29146,14 +29187,15 @@ export const HorizonsWebsitesApiFp = function(configuration?: Configuration) {
29146
29187
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29147
29188
  },
29148
29189
  /**
29149
- * 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.
29190
+ * 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.
29150
29191
  * @summary Publish website
29151
29192
  * @param {string} websiteId The website ID
29193
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
29152
29194
  * @param {*} [options] Override http request option.
29153
29195
  * @throws {RequiredError}
29154
29196
  */
29155
- async publishWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HorizonsV1WebsitesPublishedWebsiteResource>> {
29156
- const localVarAxiosArgs = await localVarAxiosParamCreator.publishWebsiteV1(websiteId, options);
29197
+ async publishWebsiteV1(websiteId: string, horizonsV1WebsitesPublishWebsiteRequest?: HorizonsV1WebsitesPublishWebsiteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HorizonsV1WebsitesPublishedWebsiteResource>> {
29198
+ const localVarAxiosArgs = await localVarAxiosParamCreator.publishWebsiteV1(websiteId, horizonsV1WebsitesPublishWebsiteRequest, options);
29157
29199
  const localVarOperationServerBasePath = operationServerMap['HorizonsWebsitesApi.publishWebsiteV1']?.[0]?.url;
29158
29200
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29159
29201
  },
@@ -29208,7 +29250,7 @@ export const HorizonsWebsitesApiFactory = function (configuration?: Configuratio
29208
29250
  return localVarFp.getWebsiteListV1(options).then((request) => request(axios, basePath));
29209
29251
  },
29210
29252
  /**
29211
- * 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.
29253
+ * 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. `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.
29212
29254
  * @summary Get website
29213
29255
  * @param {string} websiteId The website ID
29214
29256
  * @param {*} [options] Override http request option.
@@ -29218,14 +29260,15 @@ export const HorizonsWebsitesApiFactory = function (configuration?: Configuratio
29218
29260
  return localVarFp.getWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
29219
29261
  },
29220
29262
  /**
29221
- * 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.
29263
+ * 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.
29222
29264
  * @summary Publish website
29223
29265
  * @param {string} websiteId The website ID
29266
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
29224
29267
  * @param {*} [options] Override http request option.
29225
29268
  * @throws {RequiredError}
29226
29269
  */
29227
- publishWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): AxiosPromise<HorizonsV1WebsitesPublishedWebsiteResource> {
29228
- return localVarFp.publishWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
29270
+ publishWebsiteV1(websiteId: string, horizonsV1WebsitesPublishWebsiteRequest?: HorizonsV1WebsitesPublishWebsiteRequest, options?: RawAxiosRequestConfig): AxiosPromise<HorizonsV1WebsitesPublishedWebsiteResource> {
29271
+ return localVarFp.publishWebsiteV1(websiteId, horizonsV1WebsitesPublishWebsiteRequest, options).then((request) => request(axios, basePath));
29229
29272
  },
29230
29273
  };
29231
29274
  };
@@ -29286,7 +29329,7 @@ export class HorizonsWebsitesApi extends BaseAPI {
29286
29329
  }
29287
29330
 
29288
29331
  /**
29289
- * 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.
29332
+ * 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. `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.
29290
29333
  * @summary Get website
29291
29334
  * @param {string} websiteId The website ID
29292
29335
  * @param {*} [options] Override http request option.
@@ -29298,15 +29341,16 @@ export class HorizonsWebsitesApi extends BaseAPI {
29298
29341
  }
29299
29342
 
29300
29343
  /**
29301
- * 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.
29344
+ * 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.
29302
29345
  * @summary Publish website
29303
29346
  * @param {string} websiteId The website ID
29347
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
29304
29348
  * @param {*} [options] Override http request option.
29305
29349
  * @throws {RequiredError}
29306
29350
  * @memberof HorizonsWebsitesApi
29307
29351
  */
29308
- public publishWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig) {
29309
- return HorizonsWebsitesApiFp(this.configuration).publishWebsiteV1(websiteId, options).then((request) => request(this.axios, this.basePath));
29352
+ public publishWebsiteV1(websiteId: string, horizonsV1WebsitesPublishWebsiteRequest?: HorizonsV1WebsitesPublishWebsiteRequest, options?: RawAxiosRequestConfig) {
29353
+ return HorizonsWebsitesApiFp(this.configuration).publishWebsiteV1(websiteId, horizonsV1WebsitesPublishWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
29310
29354
  }
29311
29355
  }
29312
29356
 
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.59.0
6
+ * API Version: 1.60.0
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/common.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.59.0
6
+ * API Version: 1.60.0
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/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.59.0
6
+ * API Version: 1.60.0
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
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-typescript-sdk/1.59.1",
51
+ 'User-Agent': "hostinger-typescript-sdk/1.60.0",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };
package/dist/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.59.0
4
+ * API Version: 1.60.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -6448,6 +6448,19 @@ export declare const HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum: {
6448
6448
  readonly Text: "text";
6449
6449
  };
6450
6450
  export type HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum = typeof HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum[keyof typeof HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum];
6451
+ /**
6452
+ *
6453
+ * @export
6454
+ * @interface HorizonsV1WebsitesPublishWebsiteRequest
6455
+ */
6456
+ export interface HorizonsV1WebsitesPublishWebsiteRequest {
6457
+ /**
6458
+ * Set to true to publish the website as a template: its published pages show a \"Use template\" banner that copies the website into the visitor\'s own account. Set to false to remove the banner. Leave it out to keep the current setting.
6459
+ * @type {boolean}
6460
+ * @memberof HorizonsV1WebsitesPublishWebsiteRequest
6461
+ */
6462
+ 'is_template': boolean;
6463
+ }
6451
6464
  /**
6452
6465
  *
6453
6466
  * @export
@@ -6545,6 +6558,30 @@ export interface HorizonsV1WebsitesWebsiteUrlResource {
6545
6558
  * @memberof HorizonsV1WebsitesWebsiteUrlResource
6546
6559
  */
6547
6560
  'website_url': string;
6561
+ /**
6562
+ * When the website was last published, or null if it has never been published
6563
+ * @type {string}
6564
+ * @memberof HorizonsV1WebsitesWebsiteUrlResource
6565
+ */
6566
+ 'published_at': string | null;
6567
+ /**
6568
+ * Whether the website is published as a template, so its published pages show a \"Use template\" banner
6569
+ * @type {boolean}
6570
+ * @memberof HorizonsV1WebsitesWebsiteUrlResource
6571
+ */
6572
+ 'is_template': boolean;
6573
+ /**
6574
+ * 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.
6575
+ * @type {boolean}
6576
+ * @memberof HorizonsV1WebsitesWebsiteUrlResource
6577
+ */
6578
+ 'is_in_progress': boolean;
6579
+ /**
6580
+ * Whether the website has an ecommerce store
6581
+ * @type {boolean}
6582
+ * @memberof HorizonsV1WebsitesWebsiteUrlResource
6583
+ */
6584
+ 'has_ecommerce_store': boolean;
6548
6585
  }
6549
6586
  /**
6550
6587
  *
@@ -22628,7 +22665,7 @@ export declare const HorizonsWebsitesApiAxiosParamCreator: (configuration?: Conf
22628
22665
  */
22629
22666
  getWebsiteListV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22630
22667
  /**
22631
- * 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.
22668
+ * 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. `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.
22632
22669
  * @summary Get website
22633
22670
  * @param {string} websiteId The website ID
22634
22671
  * @param {*} [options] Override http request option.
@@ -22636,13 +22673,14 @@ export declare const HorizonsWebsitesApiAxiosParamCreator: (configuration?: Conf
22636
22673
  */
22637
22674
  getWebsiteV1: (websiteId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22638
22675
  /**
22639
- * 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.
22676
+ * 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.
22640
22677
  * @summary Publish website
22641
22678
  * @param {string} websiteId The website ID
22679
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
22642
22680
  * @param {*} [options] Override http request option.
22643
22681
  * @throws {RequiredError}
22644
22682
  */
22645
- publishWebsiteV1: (websiteId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22683
+ publishWebsiteV1: (websiteId: string, horizonsV1WebsitesPublishWebsiteRequest?: HorizonsV1WebsitesPublishWebsiteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22646
22684
  };
22647
22685
  /**
22648
22686
  * HorizonsWebsitesApi - functional programming interface
@@ -22682,7 +22720,7 @@ export declare const HorizonsWebsitesApiFp: (configuration?: Configuration) => {
22682
22720
  */
22683
22721
  getWebsiteListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HorizonsV1WebsitesWebsiteResource>>>;
22684
22722
  /**
22685
- * 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.
22723
+ * 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. `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.
22686
22724
  * @summary Get website
22687
22725
  * @param {string} websiteId The website ID
22688
22726
  * @param {*} [options] Override http request option.
@@ -22690,13 +22728,14 @@ export declare const HorizonsWebsitesApiFp: (configuration?: Configuration) => {
22690
22728
  */
22691
22729
  getWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HorizonsV1WebsitesWebsiteUrlResource>>;
22692
22730
  /**
22693
- * 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.
22731
+ * 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.
22694
22732
  * @summary Publish website
22695
22733
  * @param {string} websiteId The website ID
22734
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
22696
22735
  * @param {*} [options] Override http request option.
22697
22736
  * @throws {RequiredError}
22698
22737
  */
22699
- publishWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HorizonsV1WebsitesPublishedWebsiteResource>>;
22738
+ publishWebsiteV1(websiteId: string, horizonsV1WebsitesPublishWebsiteRequest?: HorizonsV1WebsitesPublishWebsiteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HorizonsV1WebsitesPublishedWebsiteResource>>;
22700
22739
  };
22701
22740
  /**
22702
22741
  * HorizonsWebsitesApi - factory interface
@@ -22736,7 +22775,7 @@ export declare const HorizonsWebsitesApiFactory: (configuration?: Configuration,
22736
22775
  */
22737
22776
  getWebsiteListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<HorizonsV1WebsitesWebsiteResource>>;
22738
22777
  /**
22739
- * 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.
22778
+ * 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. `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.
22740
22779
  * @summary Get website
22741
22780
  * @param {string} websiteId The website ID
22742
22781
  * @param {*} [options] Override http request option.
@@ -22744,13 +22783,14 @@ export declare const HorizonsWebsitesApiFactory: (configuration?: Configuration,
22744
22783
  */
22745
22784
  getWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): AxiosPromise<HorizonsV1WebsitesWebsiteUrlResource>;
22746
22785
  /**
22747
- * 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.
22786
+ * 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.
22748
22787
  * @summary Publish website
22749
22788
  * @param {string} websiteId The website ID
22789
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
22750
22790
  * @param {*} [options] Override http request option.
22751
22791
  * @throws {RequiredError}
22752
22792
  */
22753
- publishWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): AxiosPromise<HorizonsV1WebsitesPublishedWebsiteResource>;
22793
+ publishWebsiteV1(websiteId: string, horizonsV1WebsitesPublishWebsiteRequest?: HorizonsV1WebsitesPublishWebsiteRequest, options?: RawAxiosRequestConfig): AxiosPromise<HorizonsV1WebsitesPublishedWebsiteResource>;
22754
22794
  };
22755
22795
  /**
22756
22796
  * HorizonsWebsitesApi - object-oriented interface
@@ -22796,7 +22836,7 @@ export declare class HorizonsWebsitesApi extends BaseAPI {
22796
22836
  */
22797
22837
  getWebsiteListV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HorizonsV1WebsitesWebsiteResource[], any, {}, any>>;
22798
22838
  /**
22799
- * 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.
22839
+ * 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. `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.
22800
22840
  * @summary Get website
22801
22841
  * @param {string} websiteId The website ID
22802
22842
  * @param {*} [options] Override http request option.
@@ -22805,14 +22845,15 @@ export declare class HorizonsWebsitesApi extends BaseAPI {
22805
22845
  */
22806
22846
  getWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HorizonsV1WebsitesWebsiteUrlResource, any, {}, any>>;
22807
22847
  /**
22808
- * 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.
22848
+ * 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.
22809
22849
  * @summary Publish website
22810
22850
  * @param {string} websiteId The website ID
22851
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
22811
22852
  * @param {*} [options] Override http request option.
22812
22853
  * @throws {RequiredError}
22813
22854
  * @memberof HorizonsWebsitesApi
22814
22855
  */
22815
- publishWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HorizonsV1WebsitesPublishedWebsiteResource, any, {}, any>>;
22856
+ publishWebsiteV1(websiteId: string, horizonsV1WebsitesPublishWebsiteRequest?: HorizonsV1WebsitesPublishWebsiteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HorizonsV1WebsitesPublishedWebsiteResource, any, {}, any>>;
22816
22857
  }
22817
22858
  /**
22818
22859
  * HostingCacheApi - axios parameter creator
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.59.0
7
+ * API Version: 1.60.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -12149,7 +12149,7 @@ const HorizonsWebsitesApiAxiosParamCreator = function (configuration) {
12149
12149
  };
12150
12150
  }),
12151
12151
  /**
12152
- * 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.
12152
+ * 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. `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.
12153
12153
  * @summary Get website
12154
12154
  * @param {string} websiteId The website ID
12155
12155
  * @param {*} [options] Override http request option.
@@ -12181,13 +12181,14 @@ const HorizonsWebsitesApiAxiosParamCreator = function (configuration) {
12181
12181
  };
12182
12182
  }),
12183
12183
  /**
12184
- * 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.
12184
+ * 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.
12185
12185
  * @summary Publish website
12186
12186
  * @param {string} websiteId The website ID
12187
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
12187
12188
  * @param {*} [options] Override http request option.
12188
12189
  * @throws {RequiredError}
12189
12190
  */
12190
- publishWebsiteV1: (websiteId_1, ...args_1) => __awaiter(this, [websiteId_1, ...args_1], void 0, function* (websiteId, options = {}) {
12191
+ publishWebsiteV1: (websiteId_1, horizonsV1WebsitesPublishWebsiteRequest_1, ...args_1) => __awaiter(this, [websiteId_1, horizonsV1WebsitesPublishWebsiteRequest_1, ...args_1], void 0, function* (websiteId, horizonsV1WebsitesPublishWebsiteRequest, options = {}) {
12191
12192
  // verify required parameter 'websiteId' is not null or undefined
12192
12193
  (0, common_1.assertParamExists)('publishWebsiteV1', 'websiteId', websiteId);
12193
12194
  const localVarPath = `/api/horizons/v1/websites/{websiteId}/publish`
@@ -12204,9 +12205,11 @@ const HorizonsWebsitesApiAxiosParamCreator = function (configuration) {
12204
12205
  // authentication apiToken required
12205
12206
  // http bearer authentication required
12206
12207
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12208
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12207
12209
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12208
12210
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12209
12211
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12212
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(horizonsV1WebsitesPublishWebsiteRequest, localVarRequestOptions, configuration);
12210
12213
  return {
12211
12214
  url: (0, common_1.toPathString)(localVarUrlObj),
12212
12215
  options: localVarRequestOptions,
@@ -12283,7 +12286,7 @@ const HorizonsWebsitesApiFp = function (configuration) {
12283
12286
  });
12284
12287
  },
12285
12288
  /**
12286
- * 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.
12289
+ * 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. `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.
12287
12290
  * @summary Get website
12288
12291
  * @param {string} websiteId The website ID
12289
12292
  * @param {*} [options] Override http request option.
@@ -12298,16 +12301,17 @@ const HorizonsWebsitesApiFp = function (configuration) {
12298
12301
  });
12299
12302
  },
12300
12303
  /**
12301
- * 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.
12304
+ * 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.
12302
12305
  * @summary Publish website
12303
12306
  * @param {string} websiteId The website ID
12307
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
12304
12308
  * @param {*} [options] Override http request option.
12305
12309
  * @throws {RequiredError}
12306
12310
  */
12307
- publishWebsiteV1(websiteId, options) {
12311
+ publishWebsiteV1(websiteId, horizonsV1WebsitesPublishWebsiteRequest, options) {
12308
12312
  return __awaiter(this, void 0, void 0, function* () {
12309
12313
  var _a, _b;
12310
- const localVarAxiosArgs = yield localVarAxiosParamCreator.publishWebsiteV1(websiteId, options);
12314
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.publishWebsiteV1(websiteId, horizonsV1WebsitesPublishWebsiteRequest, options);
12311
12315
  const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HorizonsWebsitesApi.publishWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
12312
12316
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12313
12317
  });
@@ -12363,7 +12367,7 @@ const HorizonsWebsitesApiFactory = function (configuration, basePath, axios) {
12363
12367
  return localVarFp.getWebsiteListV1(options).then((request) => request(axios, basePath));
12364
12368
  },
12365
12369
  /**
12366
- * 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.
12370
+ * 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. `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.
12367
12371
  * @summary Get website
12368
12372
  * @param {string} websiteId The website ID
12369
12373
  * @param {*} [options] Override http request option.
@@ -12373,14 +12377,15 @@ const HorizonsWebsitesApiFactory = function (configuration, basePath, axios) {
12373
12377
  return localVarFp.getWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
12374
12378
  },
12375
12379
  /**
12376
- * 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.
12380
+ * 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.
12377
12381
  * @summary Publish website
12378
12382
  * @param {string} websiteId The website ID
12383
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
12379
12384
  * @param {*} [options] Override http request option.
12380
12385
  * @throws {RequiredError}
12381
12386
  */
12382
- publishWebsiteV1(websiteId, options) {
12383
- return localVarFp.publishWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
12387
+ publishWebsiteV1(websiteId, horizonsV1WebsitesPublishWebsiteRequest, options) {
12388
+ return localVarFp.publishWebsiteV1(websiteId, horizonsV1WebsitesPublishWebsiteRequest, options).then((request) => request(axios, basePath));
12384
12389
  },
12385
12390
  };
12386
12391
  };
@@ -12437,7 +12442,7 @@ class HorizonsWebsitesApi extends base_1.BaseAPI {
12437
12442
  return (0, exports.HorizonsWebsitesApiFp)(this.configuration).getWebsiteListV1(options).then((request) => request(this.axios, this.basePath));
12438
12443
  }
12439
12444
  /**
12440
- * 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.
12445
+ * 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. `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.
12441
12446
  * @summary Get website
12442
12447
  * @param {string} websiteId The website ID
12443
12448
  * @param {*} [options] Override http request option.
@@ -12448,15 +12453,16 @@ class HorizonsWebsitesApi extends base_1.BaseAPI {
12448
12453
  return (0, exports.HorizonsWebsitesApiFp)(this.configuration).getWebsiteV1(websiteId, options).then((request) => request(this.axios, this.basePath));
12449
12454
  }
12450
12455
  /**
12451
- * 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.
12456
+ * 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.
12452
12457
  * @summary Publish website
12453
12458
  * @param {string} websiteId The website ID
12459
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
12454
12460
  * @param {*} [options] Override http request option.
12455
12461
  * @throws {RequiredError}
12456
12462
  * @memberof HorizonsWebsitesApi
12457
12463
  */
12458
- publishWebsiteV1(websiteId, options) {
12459
- return (0, exports.HorizonsWebsitesApiFp)(this.configuration).publishWebsiteV1(websiteId, options).then((request) => request(this.axios, this.basePath));
12464
+ publishWebsiteV1(websiteId, horizonsV1WebsitesPublishWebsiteRequest, options) {
12465
+ return (0, exports.HorizonsWebsitesApiFp)(this.configuration).publishWebsiteV1(websiteId, horizonsV1WebsitesPublishWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
12460
12466
  }
12461
12467
  }
12462
12468
  exports.HorizonsWebsitesApi = HorizonsWebsitesApi;
package/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.59.0
4
+ * API Version: 1.60.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.59.0
7
+ * API Version: 1.60.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/common.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.59.0
4
+ * API Version: 1.60.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.59.0
7
+ * API Version: 1.60.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.59.0
4
+ * API Version: 1.60.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.59.0
7
+ * API Version: 1.60.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -16,7 +16,7 @@ class Configuration {
16
16
  var _a;
17
17
  this.accessToken = param.accessToken;
18
18
  this.basePath = param.basePath;
19
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.59.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.60.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.59.0
4
+ * API Version: 1.60.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -6448,6 +6448,19 @@ export declare const HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum: {
6448
6448
  readonly Text: "text";
6449
6449
  };
6450
6450
  export type HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum = typeof HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum[keyof typeof HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum];
6451
+ /**
6452
+ *
6453
+ * @export
6454
+ * @interface HorizonsV1WebsitesPublishWebsiteRequest
6455
+ */
6456
+ export interface HorizonsV1WebsitesPublishWebsiteRequest {
6457
+ /**
6458
+ * Set to true to publish the website as a template: its published pages show a \"Use template\" banner that copies the website into the visitor\'s own account. Set to false to remove the banner. Leave it out to keep the current setting.
6459
+ * @type {boolean}
6460
+ * @memberof HorizonsV1WebsitesPublishWebsiteRequest
6461
+ */
6462
+ 'is_template': boolean;
6463
+ }
6451
6464
  /**
6452
6465
  *
6453
6466
  * @export
@@ -6545,6 +6558,30 @@ export interface HorizonsV1WebsitesWebsiteUrlResource {
6545
6558
  * @memberof HorizonsV1WebsitesWebsiteUrlResource
6546
6559
  */
6547
6560
  'website_url': string;
6561
+ /**
6562
+ * When the website was last published, or null if it has never been published
6563
+ * @type {string}
6564
+ * @memberof HorizonsV1WebsitesWebsiteUrlResource
6565
+ */
6566
+ 'published_at': string | null;
6567
+ /**
6568
+ * Whether the website is published as a template, so its published pages show a \"Use template\" banner
6569
+ * @type {boolean}
6570
+ * @memberof HorizonsV1WebsitesWebsiteUrlResource
6571
+ */
6572
+ 'is_template': boolean;
6573
+ /**
6574
+ * 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.
6575
+ * @type {boolean}
6576
+ * @memberof HorizonsV1WebsitesWebsiteUrlResource
6577
+ */
6578
+ 'is_in_progress': boolean;
6579
+ /**
6580
+ * Whether the website has an ecommerce store
6581
+ * @type {boolean}
6582
+ * @memberof HorizonsV1WebsitesWebsiteUrlResource
6583
+ */
6584
+ 'has_ecommerce_store': boolean;
6548
6585
  }
6549
6586
  /**
6550
6587
  *
@@ -22628,7 +22665,7 @@ export declare const HorizonsWebsitesApiAxiosParamCreator: (configuration?: Conf
22628
22665
  */
22629
22666
  getWebsiteListV1: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22630
22667
  /**
22631
- * 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.
22668
+ * 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. `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.
22632
22669
  * @summary Get website
22633
22670
  * @param {string} websiteId The website ID
22634
22671
  * @param {*} [options] Override http request option.
@@ -22636,13 +22673,14 @@ export declare const HorizonsWebsitesApiAxiosParamCreator: (configuration?: Conf
22636
22673
  */
22637
22674
  getWebsiteV1: (websiteId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22638
22675
  /**
22639
- * 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.
22676
+ * 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.
22640
22677
  * @summary Publish website
22641
22678
  * @param {string} websiteId The website ID
22679
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
22642
22680
  * @param {*} [options] Override http request option.
22643
22681
  * @throws {RequiredError}
22644
22682
  */
22645
- publishWebsiteV1: (websiteId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22683
+ publishWebsiteV1: (websiteId: string, horizonsV1WebsitesPublishWebsiteRequest?: HorizonsV1WebsitesPublishWebsiteRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
22646
22684
  };
22647
22685
  /**
22648
22686
  * HorizonsWebsitesApi - functional programming interface
@@ -22682,7 +22720,7 @@ export declare const HorizonsWebsitesApiFp: (configuration?: Configuration) => {
22682
22720
  */
22683
22721
  getWebsiteListV1(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HorizonsV1WebsitesWebsiteResource>>>;
22684
22722
  /**
22685
- * 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.
22723
+ * 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. `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.
22686
22724
  * @summary Get website
22687
22725
  * @param {string} websiteId The website ID
22688
22726
  * @param {*} [options] Override http request option.
@@ -22690,13 +22728,14 @@ export declare const HorizonsWebsitesApiFp: (configuration?: Configuration) => {
22690
22728
  */
22691
22729
  getWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HorizonsV1WebsitesWebsiteUrlResource>>;
22692
22730
  /**
22693
- * 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.
22731
+ * 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.
22694
22732
  * @summary Publish website
22695
22733
  * @param {string} websiteId The website ID
22734
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
22696
22735
  * @param {*} [options] Override http request option.
22697
22736
  * @throws {RequiredError}
22698
22737
  */
22699
- publishWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HorizonsV1WebsitesPublishedWebsiteResource>>;
22738
+ publishWebsiteV1(websiteId: string, horizonsV1WebsitesPublishWebsiteRequest?: HorizonsV1WebsitesPublishWebsiteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HorizonsV1WebsitesPublishedWebsiteResource>>;
22700
22739
  };
22701
22740
  /**
22702
22741
  * HorizonsWebsitesApi - factory interface
@@ -22736,7 +22775,7 @@ export declare const HorizonsWebsitesApiFactory: (configuration?: Configuration,
22736
22775
  */
22737
22776
  getWebsiteListV1(options?: RawAxiosRequestConfig): AxiosPromise<Array<HorizonsV1WebsitesWebsiteResource>>;
22738
22777
  /**
22739
- * 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.
22778
+ * 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. `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.
22740
22779
  * @summary Get website
22741
22780
  * @param {string} websiteId The website ID
22742
22781
  * @param {*} [options] Override http request option.
@@ -22744,13 +22783,14 @@ export declare const HorizonsWebsitesApiFactory: (configuration?: Configuration,
22744
22783
  */
22745
22784
  getWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): AxiosPromise<HorizonsV1WebsitesWebsiteUrlResource>;
22746
22785
  /**
22747
- * 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.
22786
+ * 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.
22748
22787
  * @summary Publish website
22749
22788
  * @param {string} websiteId The website ID
22789
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
22750
22790
  * @param {*} [options] Override http request option.
22751
22791
  * @throws {RequiredError}
22752
22792
  */
22753
- publishWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): AxiosPromise<HorizonsV1WebsitesPublishedWebsiteResource>;
22793
+ publishWebsiteV1(websiteId: string, horizonsV1WebsitesPublishWebsiteRequest?: HorizonsV1WebsitesPublishWebsiteRequest, options?: RawAxiosRequestConfig): AxiosPromise<HorizonsV1WebsitesPublishedWebsiteResource>;
22754
22794
  };
22755
22795
  /**
22756
22796
  * HorizonsWebsitesApi - object-oriented interface
@@ -22796,7 +22836,7 @@ export declare class HorizonsWebsitesApi extends BaseAPI {
22796
22836
  */
22797
22837
  getWebsiteListV1(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HorizonsV1WebsitesWebsiteResource[], any, {}, any>>;
22798
22838
  /**
22799
- * 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.
22839
+ * 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. `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.
22800
22840
  * @summary Get website
22801
22841
  * @param {string} websiteId The website ID
22802
22842
  * @param {*} [options] Override http request option.
@@ -22805,14 +22845,15 @@ export declare class HorizonsWebsitesApi extends BaseAPI {
22805
22845
  */
22806
22846
  getWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HorizonsV1WebsitesWebsiteUrlResource, any, {}, any>>;
22807
22847
  /**
22808
- * 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.
22848
+ * 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.
22809
22849
  * @summary Publish website
22810
22850
  * @param {string} websiteId The website ID
22851
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
22811
22852
  * @param {*} [options] Override http request option.
22812
22853
  * @throws {RequiredError}
22813
22854
  * @memberof HorizonsWebsitesApi
22814
22855
  */
22815
- publishWebsiteV1(websiteId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HorizonsV1WebsitesPublishedWebsiteResource, any, {}, any>>;
22856
+ publishWebsiteV1(websiteId: string, horizonsV1WebsitesPublishWebsiteRequest?: HorizonsV1WebsitesPublishWebsiteRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HorizonsV1WebsitesPublishedWebsiteResource, any, {}, any>>;
22816
22857
  }
22817
22858
  /**
22818
22859
  * HostingCacheApi - axios parameter creator
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.59.0
6
+ * API Version: 1.60.0
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
@@ -11995,7 +11995,7 @@ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration) {
11995
11995
  };
11996
11996
  }),
11997
11997
  /**
11998
- * 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.
11998
+ * 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. `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.
11999
11999
  * @summary Get website
12000
12000
  * @param {string} websiteId The website ID
12001
12001
  * @param {*} [options] Override http request option.
@@ -12027,13 +12027,14 @@ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration) {
12027
12027
  };
12028
12028
  }),
12029
12029
  /**
12030
- * 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.
12030
+ * 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.
12031
12031
  * @summary Publish website
12032
12032
  * @param {string} websiteId The website ID
12033
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
12033
12034
  * @param {*} [options] Override http request option.
12034
12035
  * @throws {RequiredError}
12035
12036
  */
12036
- publishWebsiteV1: (websiteId_1, ...args_1) => __awaiter(this, [websiteId_1, ...args_1], void 0, function* (websiteId, options = {}) {
12037
+ publishWebsiteV1: (websiteId_1, horizonsV1WebsitesPublishWebsiteRequest_1, ...args_1) => __awaiter(this, [websiteId_1, horizonsV1WebsitesPublishWebsiteRequest_1, ...args_1], void 0, function* (websiteId, horizonsV1WebsitesPublishWebsiteRequest, options = {}) {
12037
12038
  // verify required parameter 'websiteId' is not null or undefined
12038
12039
  assertParamExists('publishWebsiteV1', 'websiteId', websiteId);
12039
12040
  const localVarPath = `/api/horizons/v1/websites/{websiteId}/publish`
@@ -12050,9 +12051,11 @@ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration) {
12050
12051
  // authentication apiToken required
12051
12052
  // http bearer authentication required
12052
12053
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12054
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12053
12055
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12054
12056
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12055
12057
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12058
+ localVarRequestOptions.data = serializeDataIfNeeded(horizonsV1WebsitesPublishWebsiteRequest, localVarRequestOptions, configuration);
12056
12059
  return {
12057
12060
  url: toPathString(localVarUrlObj),
12058
12061
  options: localVarRequestOptions,
@@ -12128,7 +12131,7 @@ export const HorizonsWebsitesApiFp = function (configuration) {
12128
12131
  });
12129
12132
  },
12130
12133
  /**
12131
- * 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.
12134
+ * 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. `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.
12132
12135
  * @summary Get website
12133
12136
  * @param {string} websiteId The website ID
12134
12137
  * @param {*} [options] Override http request option.
@@ -12143,16 +12146,17 @@ export const HorizonsWebsitesApiFp = function (configuration) {
12143
12146
  });
12144
12147
  },
12145
12148
  /**
12146
- * 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.
12149
+ * 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.
12147
12150
  * @summary Publish website
12148
12151
  * @param {string} websiteId The website ID
12152
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
12149
12153
  * @param {*} [options] Override http request option.
12150
12154
  * @throws {RequiredError}
12151
12155
  */
12152
- publishWebsiteV1(websiteId, options) {
12156
+ publishWebsiteV1(websiteId, horizonsV1WebsitesPublishWebsiteRequest, options) {
12153
12157
  return __awaiter(this, void 0, void 0, function* () {
12154
12158
  var _a, _b;
12155
- const localVarAxiosArgs = yield localVarAxiosParamCreator.publishWebsiteV1(websiteId, options);
12159
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.publishWebsiteV1(websiteId, horizonsV1WebsitesPublishWebsiteRequest, options);
12156
12160
  const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HorizonsWebsitesApi.publishWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
12157
12161
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12158
12162
  });
@@ -12207,7 +12211,7 @@ export const HorizonsWebsitesApiFactory = function (configuration, basePath, axi
12207
12211
  return localVarFp.getWebsiteListV1(options).then((request) => request(axios, basePath));
12208
12212
  },
12209
12213
  /**
12210
- * 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.
12214
+ * 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. `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.
12211
12215
  * @summary Get website
12212
12216
  * @param {string} websiteId The website ID
12213
12217
  * @param {*} [options] Override http request option.
@@ -12217,14 +12221,15 @@ export const HorizonsWebsitesApiFactory = function (configuration, basePath, axi
12217
12221
  return localVarFp.getWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
12218
12222
  },
12219
12223
  /**
12220
- * 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.
12224
+ * 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.
12221
12225
  * @summary Publish website
12222
12226
  * @param {string} websiteId The website ID
12227
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
12223
12228
  * @param {*} [options] Override http request option.
12224
12229
  * @throws {RequiredError}
12225
12230
  */
12226
- publishWebsiteV1(websiteId, options) {
12227
- return localVarFp.publishWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
12231
+ publishWebsiteV1(websiteId, horizonsV1WebsitesPublishWebsiteRequest, options) {
12232
+ return localVarFp.publishWebsiteV1(websiteId, horizonsV1WebsitesPublishWebsiteRequest, options).then((request) => request(axios, basePath));
12228
12233
  },
12229
12234
  };
12230
12235
  };
@@ -12280,7 +12285,7 @@ export class HorizonsWebsitesApi extends BaseAPI {
12280
12285
  return HorizonsWebsitesApiFp(this.configuration).getWebsiteListV1(options).then((request) => request(this.axios, this.basePath));
12281
12286
  }
12282
12287
  /**
12283
- * 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.
12288
+ * 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. `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.
12284
12289
  * @summary Get website
12285
12290
  * @param {string} websiteId The website ID
12286
12291
  * @param {*} [options] Override http request option.
@@ -12291,15 +12296,16 @@ export class HorizonsWebsitesApi extends BaseAPI {
12291
12296
  return HorizonsWebsitesApiFp(this.configuration).getWebsiteV1(websiteId, options).then((request) => request(this.axios, this.basePath));
12292
12297
  }
12293
12298
  /**
12294
- * 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.
12299
+ * 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.
12295
12300
  * @summary Publish website
12296
12301
  * @param {string} websiteId The website ID
12302
+ * @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
12297
12303
  * @param {*} [options] Override http request option.
12298
12304
  * @throws {RequiredError}
12299
12305
  * @memberof HorizonsWebsitesApi
12300
12306
  */
12301
- publishWebsiteV1(websiteId, options) {
12302
- return HorizonsWebsitesApiFp(this.configuration).publishWebsiteV1(websiteId, options).then((request) => request(this.axios, this.basePath));
12307
+ publishWebsiteV1(websiteId, horizonsV1WebsitesPublishWebsiteRequest, options) {
12308
+ return HorizonsWebsitesApiFp(this.configuration).publishWebsiteV1(websiteId, horizonsV1WebsitesPublishWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
12303
12309
  }
12304
12310
  }
12305
12311
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.59.0
4
+ * API Version: 1.60.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.59.0
6
+ * API Version: 1.60.0
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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.59.0
4
+ * API Version: 1.60.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.59.0
6
+ * API Version: 1.60.0
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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.59.0
4
+ * API Version: 1.60.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.59.0
6
+ * API Version: 1.60.0
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
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.59.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.60.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.59.0
4
+ * API Version: 1.60.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.59.0
6
+ * API Version: 1.60.0
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/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.59.0
4
+ * API Version: 1.60.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.59.0
7
+ * API Version: 1.60.0
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -0,0 +1,20 @@
1
+ # HorizonsV1WebsitesPublishWebsiteRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **is_template** | **boolean** | Set to true to publish the website as a template: its published pages show a \&quot;Use template\&quot; banner that copies the website into the visitor\&#39;s own account. Set to false to remove the banner. Leave it out to keep the current setting. | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { HorizonsV1WebsitesPublishWebsiteRequest } from '@hostinger/sdk';
14
+
15
+ const instance: HorizonsV1WebsitesPublishWebsiteRequest = {
16
+ is_template,
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)
@@ -6,6 +6,10 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **website_url** | **string** | The website URL for the user to access their website in Hostinger Horizons interface | [default to undefined]
9
+ **published_at** | **string** | When the website was last published, or null if it has never been published | [optional] [default to undefined]
10
+ **is_template** | **boolean** | Whether the website is published as a template, so its published pages show a \&quot;Use template\&quot; 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
+ **has_ecommerce_store** | **boolean** | Whether the website has an ecommerce store | [optional] [default to undefined]
9
13
 
10
14
  ## Example
11
15
 
@@ -14,6 +18,10 @@ import { HorizonsV1WebsitesWebsiteUrlResource } from '@hostinger/sdk';
14
18
 
15
19
  const instance: HorizonsV1WebsitesWebsiteUrlResource = {
16
20
  website_url,
21
+ published_at,
22
+ is_template,
23
+ is_in_progress,
24
+ has_ecommerce_store,
17
25
  };
18
26
  ```
19
27
 
@@ -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 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 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. `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.
230
230
 
231
231
  ### Example
232
232
 
@@ -279,23 +279,26 @@ 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 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 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.
283
283
 
284
284
  ### Example
285
285
 
286
286
  ```typescript
287
287
  import {
288
288
  HorizonsWebsitesApi,
289
- Configuration
289
+ Configuration,
290
+ HorizonsV1WebsitesPublishWebsiteRequest
290
291
  } from '@hostinger/sdk';
291
292
 
292
293
  const configuration = new Configuration();
293
294
  const apiInstance = new HorizonsWebsitesApi(configuration);
294
295
 
295
296
  let websiteId: string; //The website ID (default to undefined)
297
+ let horizonsV1WebsitesPublishWebsiteRequest: HorizonsV1WebsitesPublishWebsiteRequest; // (optional)
296
298
 
297
299
  const { status, data } = await apiInstance.publishWebsiteV1(
298
- websiteId
300
+ websiteId,
301
+ horizonsV1WebsitesPublishWebsiteRequest
299
302
  );
300
303
  ```
301
304
 
@@ -303,6 +306,7 @@ const { status, data } = await apiInstance.publishWebsiteV1(
303
306
 
304
307
  |Name | Type | Description | Notes|
305
308
  |------------- | ------------- | ------------- | -------------|
309
+ | **horizonsV1WebsitesPublishWebsiteRequest** | **HorizonsV1WebsitesPublishWebsiteRequest**| | |
306
310
  | **websiteId** | [**string**] | The website ID | defaults to undefined|
307
311
 
308
312
 
@@ -316,7 +320,7 @@ const { status, data } = await apiInstance.publishWebsiteV1(
316
320
 
317
321
  ### HTTP request headers
318
322
 
319
- - **Content-Type**: Not defined
323
+ - **Content-Type**: application/json
320
324
  - **Accept**: application/json
321
325
 
322
326
 
@@ -324,6 +328,7 @@ const { status, data } = await apiInstance.publishWebsiteV1(
324
328
  | Status code | Description | Response headers |
325
329
  |-------------|-------------|------------------|
326
330
  |**200** | Success response | - |
331
+ |**422** | Validation error response | - |
327
332
  |**401** | Unauthenticated response | - |
328
333
  |**500** | Error response | - |
329
334
 
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.59.0
6
+ * API Version: 1.60.0
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.59.1",
3
+ "version": "1.60.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {