@hostinger/sdk 1.49.2 → 1.49.3
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 +429 -9
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +262 -9
- package/dist/api.js +305 -20
- 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 +262 -9
- package/dist/esm/api.js +294 -9
- 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/HorizonsV1WebsitesEditWebsiteRequest.md +20 -0
- package/docs/HorizonsV1WebsitesEditWebsiteRequestMessageInner.md +22 -0
- package/docs/HorizonsV1WebsitesPublishedWebsiteResource.md +26 -0
- package/docs/HorizonsV1WebsitesWebsiteResource.md +30 -0
- package/docs/HorizonsWebsitesApi.md +216 -2
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.49.
|
|
6
|
+
* API Version: 1.49.3
|
|
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
|
|
@@ -284,6 +284,18 @@ export const EcommerceV1StoreStoreRequestSalesChannelTypeEnum = {
|
|
|
284
284
|
export const HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = {
|
|
285
285
|
Text: 'text'
|
|
286
286
|
};
|
|
287
|
+
export const HorizonsV1WebsitesEditWebsiteRequestMessageInnerTypeEnum = {
|
|
288
|
+
Text: 'text'
|
|
289
|
+
};
|
|
290
|
+
export const HorizonsV1WebsitesPublishedWebsiteResourceStatusEnum = {
|
|
291
|
+
Publishing: 'publishing'
|
|
292
|
+
};
|
|
293
|
+
export const HorizonsV1WebsitesWebsiteResourceStatusEnum = {
|
|
294
|
+
Active: 'active',
|
|
295
|
+
Suspended: 'suspended',
|
|
296
|
+
Deleting: 'deleting',
|
|
297
|
+
Deleted: 'deleted'
|
|
298
|
+
};
|
|
287
299
|
export const HostingV1DomainsParkedDomainResourceTypeEnum = {
|
|
288
300
|
Domain: 'domain',
|
|
289
301
|
Ip: 'ip'
|
|
@@ -11317,7 +11329,39 @@ export class EcommerceStoresApi extends BaseAPI {
|
|
|
11317
11329
|
export const HorizonsWebsitesApiAxiosParamCreator = function (configuration) {
|
|
11318
11330
|
return {
|
|
11319
11331
|
/**
|
|
11320
|
-
*
|
|
11332
|
+
* Clone a Hostinger Horizons website into a new website.\\n Use this tool when the user wants a copy of an existing website, for example to try out changes without touching the original.\\n This tool returns the ID and URL of the newly created copy. The original website is left untouched.\\n To edit the copy, use the `Edit website` tool with the returned website ID, or the user can open the provided website URL in Hostinger Horizons interface.
|
|
11333
|
+
* @summary Clone website
|
|
11334
|
+
* @param {string} websiteId The website ID
|
|
11335
|
+
* @param {*} [options] Override http request option.
|
|
11336
|
+
* @throws {RequiredError}
|
|
11337
|
+
*/
|
|
11338
|
+
cloneWebsiteV1: (websiteId_1, ...args_1) => __awaiter(this, [websiteId_1, ...args_1], void 0, function* (websiteId, options = {}) {
|
|
11339
|
+
// verify required parameter 'websiteId' is not null or undefined
|
|
11340
|
+
assertParamExists('cloneWebsiteV1', 'websiteId', websiteId);
|
|
11341
|
+
const localVarPath = `/api/horizons/v1/websites/{websiteId}/clone`
|
|
11342
|
+
.replace(`{${"websiteId"}}`, encodeURIComponent(String(websiteId)));
|
|
11343
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11344
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11345
|
+
let baseOptions;
|
|
11346
|
+
if (configuration) {
|
|
11347
|
+
baseOptions = configuration.baseOptions;
|
|
11348
|
+
}
|
|
11349
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11350
|
+
const localVarHeaderParameter = {};
|
|
11351
|
+
const localVarQueryParameter = {};
|
|
11352
|
+
// authentication apiToken required
|
|
11353
|
+
// http bearer authentication required
|
|
11354
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
11355
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11356
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11357
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11358
|
+
return {
|
|
11359
|
+
url: toPathString(localVarUrlObj),
|
|
11360
|
+
options: localVarRequestOptions,
|
|
11361
|
+
};
|
|
11362
|
+
}),
|
|
11363
|
+
/**
|
|
11364
|
+
* Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, use the `Edit website` tool with the returned website ID, or the user can go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
|
|
11321
11365
|
* @summary Create website
|
|
11322
11366
|
* @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
|
|
11323
11367
|
* @param {*} [options] Override http request option.
|
|
@@ -11350,7 +11394,72 @@ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
11350
11394
|
};
|
|
11351
11395
|
}),
|
|
11352
11396
|
/**
|
|
11353
|
-
*
|
|
11397
|
+
* Edit an existing Hostinger Horizons website with a follow-up message.\\n Use this tool when the user wants to change, extend or fix a website that already exists.\\n This tool queues the requested changes and returns the website URL and ID. The changes are applied asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now applying the requested changes and they will be ready in a few minutes, and you should provide the website URL to the user immediately. Do not write code.\\n If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat.
|
|
11398
|
+
* @summary Edit website
|
|
11399
|
+
* @param {string} websiteId The website ID
|
|
11400
|
+
* @param {HorizonsV1WebsitesEditWebsiteRequest} horizonsV1WebsitesEditWebsiteRequest
|
|
11401
|
+
* @param {*} [options] Override http request option.
|
|
11402
|
+
* @throws {RequiredError}
|
|
11403
|
+
*/
|
|
11404
|
+
editWebsiteV1: (websiteId_1, horizonsV1WebsitesEditWebsiteRequest_1, ...args_1) => __awaiter(this, [websiteId_1, horizonsV1WebsitesEditWebsiteRequest_1, ...args_1], void 0, function* (websiteId, horizonsV1WebsitesEditWebsiteRequest, options = {}) {
|
|
11405
|
+
// verify required parameter 'websiteId' is not null or undefined
|
|
11406
|
+
assertParamExists('editWebsiteV1', 'websiteId', websiteId);
|
|
11407
|
+
// verify required parameter 'horizonsV1WebsitesEditWebsiteRequest' is not null or undefined
|
|
11408
|
+
assertParamExists('editWebsiteV1', 'horizonsV1WebsitesEditWebsiteRequest', horizonsV1WebsitesEditWebsiteRequest);
|
|
11409
|
+
const localVarPath = `/api/horizons/v1/websites/{websiteId}/messages`
|
|
11410
|
+
.replace(`{${"websiteId"}}`, encodeURIComponent(String(websiteId)));
|
|
11411
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11412
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11413
|
+
let baseOptions;
|
|
11414
|
+
if (configuration) {
|
|
11415
|
+
baseOptions = configuration.baseOptions;
|
|
11416
|
+
}
|
|
11417
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11418
|
+
const localVarHeaderParameter = {};
|
|
11419
|
+
const localVarQueryParameter = {};
|
|
11420
|
+
// authentication apiToken required
|
|
11421
|
+
// http bearer authentication required
|
|
11422
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
11423
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
11424
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11425
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11426
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11427
|
+
localVarRequestOptions.data = serializeDataIfNeeded(horizonsV1WebsitesEditWebsiteRequest, localVarRequestOptions, configuration);
|
|
11428
|
+
return {
|
|
11429
|
+
url: toPathString(localVarUrlObj),
|
|
11430
|
+
options: localVarRequestOptions,
|
|
11431
|
+
};
|
|
11432
|
+
}),
|
|
11433
|
+
/**
|
|
11434
|
+
* List the Hostinger Horizons websites the user owns.\\n Use this tool when the user asks which websites they have, or when you need a website ID before editing, publishing or cloning a website.\\n Each website is returned with its ID, status, domain and the URL to open it in Hostinger Horizons interface.\\n The complete list of websites is returned in a single response - it is not paginated.
|
|
11435
|
+
* @summary Get website list
|
|
11436
|
+
* @param {*} [options] Override http request option.
|
|
11437
|
+
* @throws {RequiredError}
|
|
11438
|
+
*/
|
|
11439
|
+
getWebsiteListV1: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
11440
|
+
const localVarPath = `/api/horizons/v1/websites`;
|
|
11441
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11442
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11443
|
+
let baseOptions;
|
|
11444
|
+
if (configuration) {
|
|
11445
|
+
baseOptions = configuration.baseOptions;
|
|
11446
|
+
}
|
|
11447
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11448
|
+
const localVarHeaderParameter = {};
|
|
11449
|
+
const localVarQueryParameter = {};
|
|
11450
|
+
// authentication apiToken required
|
|
11451
|
+
// http bearer authentication required
|
|
11452
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
11453
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11454
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11455
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11456
|
+
return {
|
|
11457
|
+
url: toPathString(localVarUrlObj),
|
|
11458
|
+
options: localVarRequestOptions,
|
|
11459
|
+
};
|
|
11460
|
+
}),
|
|
11461
|
+
/**
|
|
11462
|
+
* 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.
|
|
11354
11463
|
* @summary Get website
|
|
11355
11464
|
* @param {string} websiteId The website ID
|
|
11356
11465
|
* @param {*} [options] Override http request option.
|
|
@@ -11381,6 +11490,38 @@ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration) {
|
|
|
11381
11490
|
options: localVarRequestOptions,
|
|
11382
11491
|
};
|
|
11383
11492
|
}),
|
|
11493
|
+
/**
|
|
11494
|
+
* 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.
|
|
11495
|
+
* @summary Publish website
|
|
11496
|
+
* @param {string} websiteId The website ID
|
|
11497
|
+
* @param {*} [options] Override http request option.
|
|
11498
|
+
* @throws {RequiredError}
|
|
11499
|
+
*/
|
|
11500
|
+
publishWebsiteV1: (websiteId_1, ...args_1) => __awaiter(this, [websiteId_1, ...args_1], void 0, function* (websiteId, options = {}) {
|
|
11501
|
+
// verify required parameter 'websiteId' is not null or undefined
|
|
11502
|
+
assertParamExists('publishWebsiteV1', 'websiteId', websiteId);
|
|
11503
|
+
const localVarPath = `/api/horizons/v1/websites/{websiteId}/publish`
|
|
11504
|
+
.replace(`{${"websiteId"}}`, encodeURIComponent(String(websiteId)));
|
|
11505
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11506
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11507
|
+
let baseOptions;
|
|
11508
|
+
if (configuration) {
|
|
11509
|
+
baseOptions = configuration.baseOptions;
|
|
11510
|
+
}
|
|
11511
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11512
|
+
const localVarHeaderParameter = {};
|
|
11513
|
+
const localVarQueryParameter = {};
|
|
11514
|
+
// authentication apiToken required
|
|
11515
|
+
// http bearer authentication required
|
|
11516
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
11517
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11518
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11519
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11520
|
+
return {
|
|
11521
|
+
url: toPathString(localVarUrlObj),
|
|
11522
|
+
options: localVarRequestOptions,
|
|
11523
|
+
};
|
|
11524
|
+
}),
|
|
11384
11525
|
};
|
|
11385
11526
|
};
|
|
11386
11527
|
/**
|
|
@@ -11391,7 +11532,22 @@ export const HorizonsWebsitesApiFp = function (configuration) {
|
|
|
11391
11532
|
const localVarAxiosParamCreator = HorizonsWebsitesApiAxiosParamCreator(configuration);
|
|
11392
11533
|
return {
|
|
11393
11534
|
/**
|
|
11394
|
-
*
|
|
11535
|
+
* Clone a Hostinger Horizons website into a new website.\\n Use this tool when the user wants a copy of an existing website, for example to try out changes without touching the original.\\n This tool returns the ID and URL of the newly created copy. The original website is left untouched.\\n To edit the copy, use the `Edit website` tool with the returned website ID, or the user can open the provided website URL in Hostinger Horizons interface.
|
|
11536
|
+
* @summary Clone website
|
|
11537
|
+
* @param {string} websiteId The website ID
|
|
11538
|
+
* @param {*} [options] Override http request option.
|
|
11539
|
+
* @throws {RequiredError}
|
|
11540
|
+
*/
|
|
11541
|
+
cloneWebsiteV1(websiteId, options) {
|
|
11542
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11543
|
+
var _a, _b;
|
|
11544
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cloneWebsiteV1(websiteId, options);
|
|
11545
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HorizonsWebsitesApi.cloneWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
11546
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11547
|
+
});
|
|
11548
|
+
},
|
|
11549
|
+
/**
|
|
11550
|
+
* Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, use the `Edit website` tool with the returned website ID, or the user can go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
|
|
11395
11551
|
* @summary Create website
|
|
11396
11552
|
* @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
|
|
11397
11553
|
* @param {*} [options] Override http request option.
|
|
@@ -11406,7 +11562,37 @@ export const HorizonsWebsitesApiFp = function (configuration) {
|
|
|
11406
11562
|
});
|
|
11407
11563
|
},
|
|
11408
11564
|
/**
|
|
11409
|
-
*
|
|
11565
|
+
* Edit an existing Hostinger Horizons website with a follow-up message.\\n Use this tool when the user wants to change, extend or fix a website that already exists.\\n This tool queues the requested changes and returns the website URL and ID. The changes are applied asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now applying the requested changes and they will be ready in a few minutes, and you should provide the website URL to the user immediately. Do not write code.\\n If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat.
|
|
11566
|
+
* @summary Edit website
|
|
11567
|
+
* @param {string} websiteId The website ID
|
|
11568
|
+
* @param {HorizonsV1WebsitesEditWebsiteRequest} horizonsV1WebsitesEditWebsiteRequest
|
|
11569
|
+
* @param {*} [options] Override http request option.
|
|
11570
|
+
* @throws {RequiredError}
|
|
11571
|
+
*/
|
|
11572
|
+
editWebsiteV1(websiteId, horizonsV1WebsitesEditWebsiteRequest, options) {
|
|
11573
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11574
|
+
var _a, _b;
|
|
11575
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editWebsiteV1(websiteId, horizonsV1WebsitesEditWebsiteRequest, options);
|
|
11576
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HorizonsWebsitesApi.editWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
11577
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11578
|
+
});
|
|
11579
|
+
},
|
|
11580
|
+
/**
|
|
11581
|
+
* List the Hostinger Horizons websites the user owns.\\n Use this tool when the user asks which websites they have, or when you need a website ID before editing, publishing or cloning a website.\\n Each website is returned with its ID, status, domain and the URL to open it in Hostinger Horizons interface.\\n The complete list of websites is returned in a single response - it is not paginated.
|
|
11582
|
+
* @summary Get website list
|
|
11583
|
+
* @param {*} [options] Override http request option.
|
|
11584
|
+
* @throws {RequiredError}
|
|
11585
|
+
*/
|
|
11586
|
+
getWebsiteListV1(options) {
|
|
11587
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11588
|
+
var _a, _b;
|
|
11589
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWebsiteListV1(options);
|
|
11590
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HorizonsWebsitesApi.getWebsiteListV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
11591
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11592
|
+
});
|
|
11593
|
+
},
|
|
11594
|
+
/**
|
|
11595
|
+
* 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.
|
|
11410
11596
|
* @summary Get website
|
|
11411
11597
|
* @param {string} websiteId The website ID
|
|
11412
11598
|
* @param {*} [options] Override http request option.
|
|
@@ -11420,6 +11606,21 @@ export const HorizonsWebsitesApiFp = function (configuration) {
|
|
|
11420
11606
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11421
11607
|
});
|
|
11422
11608
|
},
|
|
11609
|
+
/**
|
|
11610
|
+
* 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.
|
|
11611
|
+
* @summary Publish website
|
|
11612
|
+
* @param {string} websiteId The website ID
|
|
11613
|
+
* @param {*} [options] Override http request option.
|
|
11614
|
+
* @throws {RequiredError}
|
|
11615
|
+
*/
|
|
11616
|
+
publishWebsiteV1(websiteId, options) {
|
|
11617
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11618
|
+
var _a, _b;
|
|
11619
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.publishWebsiteV1(websiteId, options);
|
|
11620
|
+
const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HorizonsWebsitesApi.publishWebsiteV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
11621
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11622
|
+
});
|
|
11623
|
+
},
|
|
11423
11624
|
};
|
|
11424
11625
|
};
|
|
11425
11626
|
/**
|
|
@@ -11430,7 +11631,17 @@ export const HorizonsWebsitesApiFactory = function (configuration, basePath, axi
|
|
|
11430
11631
|
const localVarFp = HorizonsWebsitesApiFp(configuration);
|
|
11431
11632
|
return {
|
|
11432
11633
|
/**
|
|
11433
|
-
*
|
|
11634
|
+
* Clone a Hostinger Horizons website into a new website.\\n Use this tool when the user wants a copy of an existing website, for example to try out changes without touching the original.\\n This tool returns the ID and URL of the newly created copy. The original website is left untouched.\\n To edit the copy, use the `Edit website` tool with the returned website ID, or the user can open the provided website URL in Hostinger Horizons interface.
|
|
11635
|
+
* @summary Clone website
|
|
11636
|
+
* @param {string} websiteId The website ID
|
|
11637
|
+
* @param {*} [options] Override http request option.
|
|
11638
|
+
* @throws {RequiredError}
|
|
11639
|
+
*/
|
|
11640
|
+
cloneWebsiteV1(websiteId, options) {
|
|
11641
|
+
return localVarFp.cloneWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
|
|
11642
|
+
},
|
|
11643
|
+
/**
|
|
11644
|
+
* Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, use the `Edit website` tool with the returned website ID, or the user can go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
|
|
11434
11645
|
* @summary Create website
|
|
11435
11646
|
* @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
|
|
11436
11647
|
* @param {*} [options] Override http request option.
|
|
@@ -11440,7 +11651,27 @@ export const HorizonsWebsitesApiFactory = function (configuration, basePath, axi
|
|
|
11440
11651
|
return localVarFp.createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options).then((request) => request(axios, basePath));
|
|
11441
11652
|
},
|
|
11442
11653
|
/**
|
|
11443
|
-
*
|
|
11654
|
+
* Edit an existing Hostinger Horizons website with a follow-up message.\\n Use this tool when the user wants to change, extend or fix a website that already exists.\\n This tool queues the requested changes and returns the website URL and ID. The changes are applied asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now applying the requested changes and they will be ready in a few minutes, and you should provide the website URL to the user immediately. Do not write code.\\n If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat.
|
|
11655
|
+
* @summary Edit website
|
|
11656
|
+
* @param {string} websiteId The website ID
|
|
11657
|
+
* @param {HorizonsV1WebsitesEditWebsiteRequest} horizonsV1WebsitesEditWebsiteRequest
|
|
11658
|
+
* @param {*} [options] Override http request option.
|
|
11659
|
+
* @throws {RequiredError}
|
|
11660
|
+
*/
|
|
11661
|
+
editWebsiteV1(websiteId, horizonsV1WebsitesEditWebsiteRequest, options) {
|
|
11662
|
+
return localVarFp.editWebsiteV1(websiteId, horizonsV1WebsitesEditWebsiteRequest, options).then((request) => request(axios, basePath));
|
|
11663
|
+
},
|
|
11664
|
+
/**
|
|
11665
|
+
* List the Hostinger Horizons websites the user owns.\\n Use this tool when the user asks which websites they have, or when you need a website ID before editing, publishing or cloning a website.\\n Each website is returned with its ID, status, domain and the URL to open it in Hostinger Horizons interface.\\n The complete list of websites is returned in a single response - it is not paginated.
|
|
11666
|
+
* @summary Get website list
|
|
11667
|
+
* @param {*} [options] Override http request option.
|
|
11668
|
+
* @throws {RequiredError}
|
|
11669
|
+
*/
|
|
11670
|
+
getWebsiteListV1(options) {
|
|
11671
|
+
return localVarFp.getWebsiteListV1(options).then((request) => request(axios, basePath));
|
|
11672
|
+
},
|
|
11673
|
+
/**
|
|
11674
|
+
* 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.
|
|
11444
11675
|
* @summary Get website
|
|
11445
11676
|
* @param {string} websiteId The website ID
|
|
11446
11677
|
* @param {*} [options] Override http request option.
|
|
@@ -11449,6 +11680,16 @@ export const HorizonsWebsitesApiFactory = function (configuration, basePath, axi
|
|
|
11449
11680
|
getWebsiteV1(websiteId, options) {
|
|
11450
11681
|
return localVarFp.getWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
|
|
11451
11682
|
},
|
|
11683
|
+
/**
|
|
11684
|
+
* 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.
|
|
11685
|
+
* @summary Publish website
|
|
11686
|
+
* @param {string} websiteId The website ID
|
|
11687
|
+
* @param {*} [options] Override http request option.
|
|
11688
|
+
* @throws {RequiredError}
|
|
11689
|
+
*/
|
|
11690
|
+
publishWebsiteV1(websiteId, options) {
|
|
11691
|
+
return localVarFp.publishWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
|
|
11692
|
+
},
|
|
11452
11693
|
};
|
|
11453
11694
|
};
|
|
11454
11695
|
/**
|
|
@@ -11459,7 +11700,18 @@ export const HorizonsWebsitesApiFactory = function (configuration, basePath, axi
|
|
|
11459
11700
|
*/
|
|
11460
11701
|
export class HorizonsWebsitesApi extends BaseAPI {
|
|
11461
11702
|
/**
|
|
11462
|
-
*
|
|
11703
|
+
* Clone a Hostinger Horizons website into a new website.\\n Use this tool when the user wants a copy of an existing website, for example to try out changes without touching the original.\\n This tool returns the ID and URL of the newly created copy. The original website is left untouched.\\n To edit the copy, use the `Edit website` tool with the returned website ID, or the user can open the provided website URL in Hostinger Horizons interface.
|
|
11704
|
+
* @summary Clone website
|
|
11705
|
+
* @param {string} websiteId The website ID
|
|
11706
|
+
* @param {*} [options] Override http request option.
|
|
11707
|
+
* @throws {RequiredError}
|
|
11708
|
+
* @memberof HorizonsWebsitesApi
|
|
11709
|
+
*/
|
|
11710
|
+
cloneWebsiteV1(websiteId, options) {
|
|
11711
|
+
return HorizonsWebsitesApiFp(this.configuration).cloneWebsiteV1(websiteId, options).then((request) => request(this.axios, this.basePath));
|
|
11712
|
+
}
|
|
11713
|
+
/**
|
|
11714
|
+
* Create new Hostinger Horizons website from the given message.\\n Use this tool when user asks you to create a website, landing page, blog or any other type of application.\\n This tool initiates the website creation process and returns a website URL and ID. The generation happens asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now creating their website and it will be ready in a few minutes and you should provide the website URL to the user immediately Do not write code.\\n\\nTo edit afterwards, use the `Edit website` tool with the returned website ID, or the user can go to Hostinger Horizons interface in the provided website URL. If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat. \\n TECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n The environment is limited to the following technologies. You MUST NOT use, suggest, or implement any technology outside this list:\\n \\n - Language: JavaScript ONLY. - Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n - Framework: React.\\n - Navigation: React Router.\\n - Styling: TailwindCSS.\\n - Components: shadcn/ui (built with @radix-ui primitives).\\n - Icons: Lucide React.\\n - Animations: Framer Motion.\\n \\n BACKEND & DATA STORAGE:\\n - Horizons integrated backend is the EXCLUSIVE solution for persistent data storage, authentication, and database needs.\\n - Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n - Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n \\n MAPS:\\n - OpenStreetMap is the default provider.\\n - Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n
|
|
11463
11715
|
* @summary Create website
|
|
11464
11716
|
* @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
|
|
11465
11717
|
* @param {*} [options] Override http request option.
|
|
@@ -11470,7 +11722,29 @@ export class HorizonsWebsitesApi extends BaseAPI {
|
|
|
11470
11722
|
return HorizonsWebsitesApiFp(this.configuration).createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11471
11723
|
}
|
|
11472
11724
|
/**
|
|
11473
|
-
*
|
|
11725
|
+
* Edit an existing Hostinger Horizons website with a follow-up message.\\n Use this tool when the user wants to change, extend or fix a website that already exists.\\n This tool queues the requested changes and returns the website URL and ID. The changes are applied asynchronously.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that Hostinger Horizons is now applying the requested changes and they will be ready in a few minutes, and you should provide the website URL to the user immediately. Do not write code.\\n If the tool call fails with an error, you should provide a clear explanation of the error and do not generate code yourself in the chat.
|
|
11726
|
+
* @summary Edit website
|
|
11727
|
+
* @param {string} websiteId The website ID
|
|
11728
|
+
* @param {HorizonsV1WebsitesEditWebsiteRequest} horizonsV1WebsitesEditWebsiteRequest
|
|
11729
|
+
* @param {*} [options] Override http request option.
|
|
11730
|
+
* @throws {RequiredError}
|
|
11731
|
+
* @memberof HorizonsWebsitesApi
|
|
11732
|
+
*/
|
|
11733
|
+
editWebsiteV1(websiteId, horizonsV1WebsitesEditWebsiteRequest, options) {
|
|
11734
|
+
return HorizonsWebsitesApiFp(this.configuration).editWebsiteV1(websiteId, horizonsV1WebsitesEditWebsiteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11735
|
+
}
|
|
11736
|
+
/**
|
|
11737
|
+
* List the Hostinger Horizons websites the user owns.\\n Use this tool when the user asks which websites they have, or when you need a website ID before editing, publishing or cloning a website.\\n Each website is returned with its ID, status, domain and the URL to open it in Hostinger Horizons interface.\\n The complete list of websites is returned in a single response - it is not paginated.
|
|
11738
|
+
* @summary Get website list
|
|
11739
|
+
* @param {*} [options] Override http request option.
|
|
11740
|
+
* @throws {RequiredError}
|
|
11741
|
+
* @memberof HorizonsWebsitesApi
|
|
11742
|
+
*/
|
|
11743
|
+
getWebsiteListV1(options) {
|
|
11744
|
+
return HorizonsWebsitesApiFp(this.configuration).getWebsiteListV1(options).then((request) => request(this.axios, this.basePath));
|
|
11745
|
+
}
|
|
11746
|
+
/**
|
|
11747
|
+
* 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.
|
|
11474
11748
|
* @summary Get website
|
|
11475
11749
|
* @param {string} websiteId The website ID
|
|
11476
11750
|
* @param {*} [options] Override http request option.
|
|
@@ -11480,6 +11754,17 @@ export class HorizonsWebsitesApi extends BaseAPI {
|
|
|
11480
11754
|
getWebsiteV1(websiteId, options) {
|
|
11481
11755
|
return HorizonsWebsitesApiFp(this.configuration).getWebsiteV1(websiteId, options).then((request) => request(this.axios, this.basePath));
|
|
11482
11756
|
}
|
|
11757
|
+
/**
|
|
11758
|
+
* 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.
|
|
11759
|
+
* @summary Publish website
|
|
11760
|
+
* @param {string} websiteId The website ID
|
|
11761
|
+
* @param {*} [options] Override http request option.
|
|
11762
|
+
* @throws {RequiredError}
|
|
11763
|
+
* @memberof HorizonsWebsitesApi
|
|
11764
|
+
*/
|
|
11765
|
+
publishWebsiteV1(websiteId, options) {
|
|
11766
|
+
return HorizonsWebsitesApiFp(this.configuration).publishWebsiteV1(websiteId, options).then((request) => request(this.axios, this.basePath));
|
|
11767
|
+
}
|
|
11483
11768
|
}
|
|
11484
11769
|
/**
|
|
11485
11770
|
* HostingCacheApi - axios parameter creator
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.49.
|
|
4
|
+
* API Version: 1.49.3
|
|
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.49.
|
|
6
|
+
* API Version: 1.49.3
|
|
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/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.49.
|
|
4
|
+
* API Version: 1.49.3
|
|
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/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.49.
|
|
6
|
+
* API Version: 1.49.3
|
|
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.49.
|
|
4
|
+
* API Version: 1.49.3
|
|
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.49.
|
|
6
|
+
* API Version: 1.49.3
|
|
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.49.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.49.3" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.49.
|
|
4
|
+
* API Version: 1.49.3
|
|
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.49.
|
|
6
|
+
* API Version: 1.49.3
|
|
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.49.
|
|
4
|
+
* API Version: 1.49.3
|
|
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.49.
|
|
7
|
+
* API Version: 1.49.3
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# HorizonsV1WebsitesEditWebsiteRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | [**Array<HorizonsV1WebsitesEditWebsiteRequestMessageInner>**](HorizonsV1WebsitesEditWebsiteRequestMessageInner.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { HorizonsV1WebsitesEditWebsiteRequest } from '@hostinger/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: HorizonsV1WebsitesEditWebsiteRequest = {
|
|
16
|
+
message,
|
|
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)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# HorizonsV1WebsitesEditWebsiteRequestMessageInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | | [default to undefined]
|
|
9
|
+
**text** | **string** | Detailed description of the changes to apply to the website. Include which sections, features, content or design should change and how. The specification should be detailed and comprehensive, covering all requested changes. | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { HorizonsV1WebsitesEditWebsiteRequestMessageInner } from '@hostinger/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: HorizonsV1WebsitesEditWebsiteRequestMessageInner = {
|
|
17
|
+
type,
|
|
18
|
+
text,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# HorizonsV1WebsitesPublishedWebsiteResource
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**status** | **string** | Always `publishing` - the build runs asynchronously after this response | [default to undefined]
|
|
9
|
+
**published_url** | **string** | The URL the published website will be live on in a few minutes | [default to undefined]
|
|
10
|
+
**website_url** | **string** | The website URL for the user to track progress in Hostinger Horizons interface | [default to undefined]
|
|
11
|
+
**website_id** | **string** | The website ID | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { HorizonsV1WebsitesPublishedWebsiteResource } from '@hostinger/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: HorizonsV1WebsitesPublishedWebsiteResource = {
|
|
19
|
+
status,
|
|
20
|
+
published_url,
|
|
21
|
+
website_url,
|
|
22
|
+
website_id,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|