@hostinger/sdk 1.59.1 → 1.60.1

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/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.1
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.1
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.1
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.1" }, (_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.1
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
@@ -2468,13 +2468,13 @@ export interface BillingV1SubscriptionSubscriptionResource {
2468
2468
  */
2469
2469
  'created_at': string;
2470
2470
  /**
2471
- *
2471
+ * Final date when the subscription will be or was cancelled and expire. Set when a cancellation is scheduled (e.g. after auto-renewal is disabled) or the subscription is already cancelled; `null` otherwise.
2472
2472
  * @type {string}
2473
2473
  * @memberof BillingV1SubscriptionSubscriptionResource
2474
2474
  */
2475
2475
  'expires_at': string | null;
2476
2476
  /**
2477
- *
2477
+ * Date when the next charge will happen while the subscription is auto-renewing. Only relevant when `is_auto_renewed` is `true`; ignore it otherwise.
2478
2478
  * @type {string}
2479
2479
  * @memberof BillingV1SubscriptionSubscriptionResource
2480
2480
  */
@@ -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.1
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.1
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.1
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.1
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.1
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.1
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.1
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.1" }, (_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.1
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.1
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.1
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.1
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
@@ -15,8 +15,8 @@ Name | Type | Description | Notes
15
15
  **renewal_price** | **number** | Renewal price in cents | [optional] [default to undefined]
16
16
  **is_auto_renewed** | **boolean** | | [optional] [default to undefined]
17
17
  **created_at** | **string** | | [optional] [default to undefined]
18
- **expires_at** | **string** | | [optional] [default to undefined]
19
- **next_billing_at** | **string** | | [optional] [default to undefined]
18
+ **expires_at** | **string** | Final date when the subscription will be or was cancelled and expire. Set when a cancellation is scheduled (e.g. after auto-renewal is disabled) or the subscription is already cancelled; &#x60;null&#x60; otherwise. | [optional] [default to undefined]
19
+ **next_billing_at** | **string** | Date when the next charge will happen while the subscription is auto-renewing. Only relevant when &#x60;is_auto_renewed&#x60; is &#x60;true&#x60;; ignore it otherwise. | [optional] [default to undefined]
20
20
 
21
21
  ## Example
22
22
 
@@ -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.1
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.1",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {