@hostinger/sdk 1.49.2 → 1.49.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +434 -14
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +267 -14
- package/dist/api.js +309 -24
- 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 +267 -14
- package/dist/esm/api.js +298 -13
- 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/EcommerceProductsApi.md +3 -1
- package/docs/EcommerceV1ProductUploadProductImageRequest.md +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.4
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -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'
|
|
@@ -10256,7 +10268,7 @@ export const EcommerceProductsApiAxiosParamCreator = function (configuration) {
|
|
|
10256
10268
|
};
|
|
10257
10269
|
}),
|
|
10258
10270
|
/**
|
|
10259
|
-
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
10271
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
10260
10272
|
* @summary Upload and attach a product image
|
|
10261
10273
|
* @param {string} storeId The ID of the store the product belongs to.
|
|
10262
10274
|
* @param {string} productId The ID of the product to attach the image to.
|
|
@@ -10407,7 +10419,7 @@ export const EcommerceProductsApiFp = function (configuration) {
|
|
|
10407
10419
|
});
|
|
10408
10420
|
},
|
|
10409
10421
|
/**
|
|
10410
|
-
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
10422
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
10411
10423
|
* @summary Upload and attach a product image
|
|
10412
10424
|
* @param {string} storeId The ID of the store the product belongs to.
|
|
10413
10425
|
* @param {string} productId The ID of the product to attach the image to.
|
|
@@ -10504,7 +10516,7 @@ export const EcommerceProductsApiFactory = function (configuration, basePath, ax
|
|
|
10504
10516
|
return localVarFp.updateAProductV1(storeId, productId, ecommerceV1ProductUpdateRequest, options).then((request) => request(axios, basePath));
|
|
10505
10517
|
},
|
|
10506
10518
|
/**
|
|
10507
|
-
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
10519
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
10508
10520
|
* @summary Upload and attach a product image
|
|
10509
10521
|
* @param {string} storeId The ID of the store the product belongs to.
|
|
10510
10522
|
* @param {string} productId The ID of the product to attach the image to.
|
|
@@ -10602,7 +10614,7 @@ export class EcommerceProductsApi extends BaseAPI {
|
|
|
10602
10614
|
return EcommerceProductsApiFp(this.configuration).updateAProductV1(storeId, productId, ecommerceV1ProductUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
10603
10615
|
}
|
|
10604
10616
|
/**
|
|
10605
|
-
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
10617
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
10606
10618
|
* @summary Upload and attach a product image
|
|
10607
10619
|
* @param {string} storeId The ID of the store the product belongs to.
|
|
10608
10620
|
* @param {string} productId The ID of the product to attach the image to.
|
|
@@ -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.4
|
|
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.4
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
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.4
|
|
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.4
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.49.
|
|
4
|
+
* API Version: 1.49.4
|
|
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.4
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -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.4" }, (_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.4
|
|
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.4
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
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.4
|
|
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.4
|
|
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
|
|
@@ -372,7 +372,7 @@ const { status, data } = await apiInstance.updateAProductV1(
|
|
|
372
372
|
# **uploadAndAttachAProductImageV1**
|
|
373
373
|
> EcommerceV1ProductProductImageUploadResource uploadAndAttachAProductImageV1(ecommerceV1ProductUploadProductImageRequest)
|
|
374
374
|
|
|
375
|
-
Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
375
|
+
Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a single call. Image downloads require HTTPS on port 443 without embedded credentials. At most one redirect is allowed, and its destination must meet the same requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is virus-scanned and validated by content, then stored on the CDN. Set is_thumbnail to make it the product\'s primary image.
|
|
376
376
|
|
|
377
377
|
### Example
|
|
378
378
|
|
|
@@ -424,6 +424,8 @@ const { status, data } = await apiInstance.uploadAndAttachAProductImageV1(
|
|
|
424
424
|
| Status code | Description | Response headers |
|
|
425
425
|
|-------------|-------------|------------------|
|
|
426
426
|
|**200** | Success response | - |
|
|
427
|
+
|**400** | Error response | - |
|
|
428
|
+
|**502** | Error response | - |
|
|
427
429
|
|**422** | Validation error response | - |
|
|
428
430
|
|**401** | Unauthenticated response | - |
|
|
429
431
|
|**500** | Error response | - |
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**image_url** | **string** | Publicly reachable URL of
|
|
8
|
+
**image_url** | **string** | Publicly reachable URL of a raster image (JPEG, PNG, GIF or WebP), maximum 15MB. Fetching the image requires HTTPS on port 443 without embedded credentials. At most one redirect is allowed; its destination must meet the same URL requirements. Private or reserved network destinations, unsupported URLs and longer redirect chains are rejected. The image is fetched, virus-scanned and validated by content, then stored on the CDN. SVG is not accepted. Provide either this or object_name. | [optional] [default to undefined]
|
|
9
9
|
**object_name** | **string** | Key returned by the upload-url endpoint. Provide this instead of image_url to attach an uploaded image. | [optional] [default to undefined]
|
|
10
10
|
**is_thumbnail** | **boolean** | When true, the image becomes the product\'s thumbnail (primary image). When omitted, it becomes the thumbnail only if the product does not have one yet. | [optional] [default to undefined]
|
|
11
11
|
|