@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/README.md +2 -2
- package/api.ts +62 -18
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +56 -15
- package/dist/api.js +22 -16
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +56 -15
- package/dist/esm/api.js +22 -16
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/BillingV1SubscriptionSubscriptionResource.md +2 -2
- package/docs/HorizonsV1WebsitesPublishWebsiteRequest.md +20 -0
- package/docs/HorizonsV1WebsitesWebsiteUrlResource.md +8 -0
- package/docs/HorizonsWebsitesApi.md +10 -5
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@1.
|
|
1
|
+
## @hostinger/sdk@1.60.1
|
|
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.
|
|
8
|
+
npm install @hostinger/sdk@1.60.1 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
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
|
|
@@ -2523,13 +2523,13 @@ export interface BillingV1SubscriptionSubscriptionResource {
|
|
|
2523
2523
|
*/
|
|
2524
2524
|
'created_at': string;
|
|
2525
2525
|
/**
|
|
2526
|
-
*
|
|
2526
|
+
* 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.
|
|
2527
2527
|
* @type {string}
|
|
2528
2528
|
* @memberof BillingV1SubscriptionSubscriptionResource
|
|
2529
2529
|
*/
|
|
2530
2530
|
'expires_at': string | null;
|
|
2531
2531
|
/**
|
|
2532
|
-
*
|
|
2532
|
+
* Date when the next charge will happen while the subscription is auto-renewing. Only relevant when `is_auto_renewed` is `true`; ignore it otherwise.
|
|
2533
2533
|
* @type {string}
|
|
2534
2534
|
* @memberof BillingV1SubscriptionSubscriptionResource
|
|
2535
2535
|
*/
|
|
@@ -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.
|
|
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/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
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/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
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
|
|
@@ -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.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/1.60.1",
|
|
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.
|
|
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/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
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
|
|
@@ -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.
|
|
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/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
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
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
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
|