hostinger-api-sdk 3.4.0 → 3.4.2
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 +31 -213
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +31 -126
- package/dist/api.js +25 -184
- 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 +31 -126
- package/dist/esm/api.js +25 -184
- 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/HorizonsV1WebsitesCreatedWebsiteResource.md +1 -1
- package/docs/HorizonsV1WebsitesPublishedWebsiteResource.md +1 -1
- package/docs/HorizonsV1WebsitesWebsiteResource.md +1 -1
- package/docs/HorizonsV1WebsitesWebsiteUrlResource.md +3 -3
- package/docs/HorizonsWebsitesApi.md +6 -6
- package/docs/VPSPublicKeysApi.md +0 -59
- package/docs/VPSVirtualMachineApi.md +0 -57
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/VPSV1PublicKeyAttachRequest.md +0 -20
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@3.4.
|
|
1
|
+
## @hostinger/sdk@3.4.2
|
|
2
2
|
|
|
3
3
|
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
|
|
4
4
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install @hostinger/sdk@3.4.
|
|
8
|
+
npm install @hostinger/sdk@3.4.2 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 3.4.
|
|
6
|
+
* API Version: 3.4.2
|
|
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
|
|
@@ -7840,7 +7840,7 @@ export type HorizonsV1WebsitesCreateWebsiteRequestMessageInnerTypeEnum = typeof
|
|
|
7840
7840
|
*/
|
|
7841
7841
|
export interface HorizonsV1WebsitesCreatedWebsiteResource {
|
|
7842
7842
|
/**
|
|
7843
|
-
* The website URL for the user to access their website in Hostinger
|
|
7843
|
+
* The website URL for the user to access their website in Hostinger AI Builder interface
|
|
7844
7844
|
* @type {string}
|
|
7845
7845
|
* @memberof HorizonsV1WebsitesCreatedWebsiteResource
|
|
7846
7846
|
*/
|
|
@@ -7923,7 +7923,7 @@ export interface HorizonsV1WebsitesPublishedWebsiteResource {
|
|
|
7923
7923
|
*/
|
|
7924
7924
|
'published_url': string;
|
|
7925
7925
|
/**
|
|
7926
|
-
* The website URL for the user to track progress in Hostinger
|
|
7926
|
+
* The website URL for the user to track progress in Hostinger AI Builder interface
|
|
7927
7927
|
* @type {string}
|
|
7928
7928
|
* @memberof HorizonsV1WebsitesPublishedWebsiteResource
|
|
7929
7929
|
*/
|
|
@@ -7979,7 +7979,7 @@ export interface HorizonsV1WebsitesWebsiteResource {
|
|
|
7979
7979
|
*/
|
|
7980
7980
|
'created_at': string;
|
|
7981
7981
|
/**
|
|
7982
|
-
* The website URL for the user to access their website in Hostinger
|
|
7982
|
+
* The website URL for the user to access their website in Hostinger AI Builder interface
|
|
7983
7983
|
* @type {string}
|
|
7984
7984
|
* @memberof HorizonsV1WebsitesWebsiteResource
|
|
7985
7985
|
*/
|
|
@@ -8002,7 +8002,7 @@ export type HorizonsV1WebsitesWebsiteResourceStatusEnum = typeof HorizonsV1Websi
|
|
|
8002
8002
|
*/
|
|
8003
8003
|
export interface HorizonsV1WebsitesWebsiteUrlResource {
|
|
8004
8004
|
/**
|
|
8005
|
-
* The website URL for the user to access their website in Hostinger
|
|
8005
|
+
* The website URL for the user to access their website in Hostinger AI Builder interface
|
|
8006
8006
|
* @type {string}
|
|
8007
8007
|
* @memberof HorizonsV1WebsitesWebsiteUrlResource
|
|
8008
8008
|
*/
|
|
@@ -8020,13 +8020,13 @@ export interface HorizonsV1WebsitesWebsiteUrlResource {
|
|
|
8020
8020
|
*/
|
|
8021
8021
|
'is_template': boolean;
|
|
8022
8022
|
/**
|
|
8023
|
-
* Whether Hostinger
|
|
8023
|
+
* Whether Hostinger AI Builder is still generating changes or publishing the website. Publishing is refused while it is true, and editing while changes are being generated. An unfinished template migration also refuses publishing, with its own error, without setting this flag.
|
|
8024
8024
|
* @type {boolean}
|
|
8025
8025
|
* @memberof HorizonsV1WebsitesWebsiteUrlResource
|
|
8026
8026
|
*/
|
|
8027
8027
|
'is_in_progress': boolean;
|
|
8028
8028
|
/**
|
|
8029
|
-
* Whether Hostinger
|
|
8029
|
+
* Whether Hostinger AI Builder is generating changes to the website. Editing and publishing are refused while it is true
|
|
8030
8030
|
* @type {boolean}
|
|
8031
8031
|
* @memberof HorizonsV1WebsitesWebsiteUrlResource
|
|
8032
8032
|
*/
|
|
@@ -18166,19 +18166,6 @@ export interface VPSV1PostInstallScriptStoreRequest {
|
|
|
18166
18166
|
*/
|
|
18167
18167
|
'content': string;
|
|
18168
18168
|
}
|
|
18169
|
-
/**
|
|
18170
|
-
*
|
|
18171
|
-
* @export
|
|
18172
|
-
* @interface VPSV1PublicKeyAttachRequest
|
|
18173
|
-
*/
|
|
18174
|
-
export interface VPSV1PublicKeyAttachRequest {
|
|
18175
|
-
/**
|
|
18176
|
-
* Public Key IDs to attach
|
|
18177
|
-
* @type {Array<number>}
|
|
18178
|
-
* @memberof VPSV1PublicKeyAttachRequest
|
|
18179
|
-
*/
|
|
18180
|
-
'ids': Array<number>;
|
|
18181
|
-
}
|
|
18182
18169
|
/**
|
|
18183
18170
|
*
|
|
18184
18171
|
* @export
|
|
@@ -33020,7 +33007,7 @@ export class GPUInstancesApi extends BaseAPI {
|
|
|
33020
33007
|
export const HorizonsWebsitesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
33021
33008
|
return {
|
|
33022
33009
|
/**
|
|
33023
|
-
* Clone a Hostinger
|
|
33010
|
+
* Clone a Hostinger AI Builder 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 AI Builder interface.
|
|
33024
33011
|
* @summary Clone website
|
|
33025
33012
|
* @param {string} websiteId The website ID
|
|
33026
33013
|
* @param {*} [options] Override http request option.
|
|
@@ -33058,7 +33045,7 @@ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration?: Co
|
|
|
33058
33045
|
};
|
|
33059
33046
|
},
|
|
33060
33047
|
/**
|
|
33061
|
-
* Create new Hostinger
|
|
33048
|
+
* Create new Hostinger AI Builder 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 AI Builder 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 AI Builder 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 - Hostinger AI Builder 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
|
|
33062
33049
|
* @summary Create website
|
|
33063
33050
|
* @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
|
|
33064
33051
|
* @param {*} [options] Override http request option.
|
|
@@ -33098,7 +33085,7 @@ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration?: Co
|
|
|
33098
33085
|
};
|
|
33099
33086
|
},
|
|
33100
33087
|
/**
|
|
33101
|
-
* Edit an existing Hostinger
|
|
33088
|
+
* Edit an existing Hostinger AI Builder 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 AI Builder 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.
|
|
33102
33089
|
* @summary Edit website
|
|
33103
33090
|
* @param {string} websiteId The website ID
|
|
33104
33091
|
* @param {HorizonsV1WebsitesEditWebsiteRequest} horizonsV1WebsitesEditWebsiteRequest
|
|
@@ -33142,7 +33129,7 @@ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration?: Co
|
|
|
33142
33129
|
};
|
|
33143
33130
|
},
|
|
33144
33131
|
/**
|
|
33145
|
-
* List the Hostinger
|
|
33132
|
+
* List the Hostinger AI Builder 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 AI Builder interface.\\n The complete list of websites is returned in a single response - it is not paginated.
|
|
33146
33133
|
* @summary Get website list
|
|
33147
33134
|
* @param {*} [options] Override http request option.
|
|
33148
33135
|
* @throws {RequiredError}
|
|
@@ -33176,7 +33163,7 @@ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration?: Co
|
|
|
33176
33163
|
};
|
|
33177
33164
|
},
|
|
33178
33165
|
/**
|
|
33179
|
-
* Get the link for the user to open their website in Hostinger
|
|
33166
|
+
* Get the link for the user to open their website in Hostinger AI Builder interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `is_generating` is true while changes are being generated, and `actions_in_progress` has `website_publish` while the website is being published. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger AI Builder interface in the provided website URL.
|
|
33180
33167
|
* @summary Get website
|
|
33181
33168
|
* @param {string} websiteId The website ID
|
|
33182
33169
|
* @param {*} [options] Override http request option.
|
|
@@ -33214,7 +33201,7 @@ export const HorizonsWebsitesApiAxiosParamCreator = function (configuration?: Co
|
|
|
33214
33201
|
};
|
|
33215
33202
|
},
|
|
33216
33203
|
/**
|
|
33217
|
-
* Publish a Hostinger
|
|
33204
|
+
* Publish a Hostinger AI Builder website so its latest changes go live.\\n Use this tool when the user asks to publish, deploy or make their website live.\\n This tool starts the publish process and returns the URL the website will be live on. Publishing happens asynchronously and takes a few minutes.\\n Set `is_template` only when the user explicitly asks to share the website as a template: true adds a \"Use template\" banner to its published pages that copies the website into the visitor\'s own account, and false removes it. Leave it out to keep the current setting.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that the website is being published and you should provide the published URL to the user immediately.
|
|
33218
33205
|
* @summary Publish website
|
|
33219
33206
|
* @param {string} websiteId The website ID
|
|
33220
33207
|
* @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
|
|
@@ -33266,7 +33253,7 @@ export const HorizonsWebsitesApiFp = function(configuration?: Configuration) {
|
|
|
33266
33253
|
const localVarAxiosParamCreator = HorizonsWebsitesApiAxiosParamCreator(configuration)
|
|
33267
33254
|
return {
|
|
33268
33255
|
/**
|
|
33269
|
-
* Clone a Hostinger
|
|
33256
|
+
* Clone a Hostinger AI Builder 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 AI Builder interface.
|
|
33270
33257
|
* @summary Clone website
|
|
33271
33258
|
* @param {string} websiteId The website ID
|
|
33272
33259
|
* @param {*} [options] Override http request option.
|
|
@@ -33278,7 +33265,7 @@ export const HorizonsWebsitesApiFp = function(configuration?: Configuration) {
|
|
|
33278
33265
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33279
33266
|
},
|
|
33280
33267
|
/**
|
|
33281
|
-
* Create new Hostinger
|
|
33268
|
+
* Create new Hostinger AI Builder 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 AI Builder 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 AI Builder 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 - Hostinger AI Builder 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
|
|
33282
33269
|
* @summary Create website
|
|
33283
33270
|
* @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
|
|
33284
33271
|
* @param {*} [options] Override http request option.
|
|
@@ -33290,7 +33277,7 @@ export const HorizonsWebsitesApiFp = function(configuration?: Configuration) {
|
|
|
33290
33277
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33291
33278
|
},
|
|
33292
33279
|
/**
|
|
33293
|
-
* Edit an existing Hostinger
|
|
33280
|
+
* Edit an existing Hostinger AI Builder 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 AI Builder 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.
|
|
33294
33281
|
* @summary Edit website
|
|
33295
33282
|
* @param {string} websiteId The website ID
|
|
33296
33283
|
* @param {HorizonsV1WebsitesEditWebsiteRequest} horizonsV1WebsitesEditWebsiteRequest
|
|
@@ -33303,7 +33290,7 @@ export const HorizonsWebsitesApiFp = function(configuration?: Configuration) {
|
|
|
33303
33290
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33304
33291
|
},
|
|
33305
33292
|
/**
|
|
33306
|
-
* List the Hostinger
|
|
33293
|
+
* List the Hostinger AI Builder 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 AI Builder interface.\\n The complete list of websites is returned in a single response - it is not paginated.
|
|
33307
33294
|
* @summary Get website list
|
|
33308
33295
|
* @param {*} [options] Override http request option.
|
|
33309
33296
|
* @throws {RequiredError}
|
|
@@ -33314,7 +33301,7 @@ export const HorizonsWebsitesApiFp = function(configuration?: Configuration) {
|
|
|
33314
33301
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33315
33302
|
},
|
|
33316
33303
|
/**
|
|
33317
|
-
* Get the link for the user to open their website in Hostinger
|
|
33304
|
+
* Get the link for the user to open their website in Hostinger AI Builder interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `is_generating` is true while changes are being generated, and `actions_in_progress` has `website_publish` while the website is being published. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger AI Builder interface in the provided website URL.
|
|
33318
33305
|
* @summary Get website
|
|
33319
33306
|
* @param {string} websiteId The website ID
|
|
33320
33307
|
* @param {*} [options] Override http request option.
|
|
@@ -33326,7 +33313,7 @@ export const HorizonsWebsitesApiFp = function(configuration?: Configuration) {
|
|
|
33326
33313
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33327
33314
|
},
|
|
33328
33315
|
/**
|
|
33329
|
-
* Publish a Hostinger
|
|
33316
|
+
* Publish a Hostinger AI Builder website so its latest changes go live.\\n Use this tool when the user asks to publish, deploy or make their website live.\\n This tool starts the publish process and returns the URL the website will be live on. Publishing happens asynchronously and takes a few minutes.\\n Set `is_template` only when the user explicitly asks to share the website as a template: true adds a \"Use template\" banner to its published pages that copies the website into the visitor\'s own account, and false removes it. Leave it out to keep the current setting.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that the website is being published and you should provide the published URL to the user immediately.
|
|
33330
33317
|
* @summary Publish website
|
|
33331
33318
|
* @param {string} websiteId The website ID
|
|
33332
33319
|
* @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
|
|
@@ -33349,7 +33336,7 @@ export const HorizonsWebsitesApiFactory = function (configuration?: Configuratio
|
|
|
33349
33336
|
const localVarFp = HorizonsWebsitesApiFp(configuration)
|
|
33350
33337
|
return {
|
|
33351
33338
|
/**
|
|
33352
|
-
* Clone a Hostinger
|
|
33339
|
+
* Clone a Hostinger AI Builder 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 AI Builder interface.
|
|
33353
33340
|
* @summary Clone website
|
|
33354
33341
|
* @param {string} websiteId The website ID
|
|
33355
33342
|
* @param {*} [options] Override http request option.
|
|
@@ -33359,7 +33346,7 @@ export const HorizonsWebsitesApiFactory = function (configuration?: Configuratio
|
|
|
33359
33346
|
return localVarFp.cloneWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
|
|
33360
33347
|
},
|
|
33361
33348
|
/**
|
|
33362
|
-
* Create new Hostinger
|
|
33349
|
+
* Create new Hostinger AI Builder 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 AI Builder 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 AI Builder 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 - Hostinger AI Builder 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
|
|
33363
33350
|
* @summary Create website
|
|
33364
33351
|
* @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
|
|
33365
33352
|
* @param {*} [options] Override http request option.
|
|
@@ -33369,7 +33356,7 @@ export const HorizonsWebsitesApiFactory = function (configuration?: Configuratio
|
|
|
33369
33356
|
return localVarFp.createWebsiteV1(horizonsV1WebsitesCreateWebsiteRequest, options).then((request) => request(axios, basePath));
|
|
33370
33357
|
},
|
|
33371
33358
|
/**
|
|
33372
|
-
* Edit an existing Hostinger
|
|
33359
|
+
* Edit an existing Hostinger AI Builder 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 AI Builder 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.
|
|
33373
33360
|
* @summary Edit website
|
|
33374
33361
|
* @param {string} websiteId The website ID
|
|
33375
33362
|
* @param {HorizonsV1WebsitesEditWebsiteRequest} horizonsV1WebsitesEditWebsiteRequest
|
|
@@ -33380,7 +33367,7 @@ export const HorizonsWebsitesApiFactory = function (configuration?: Configuratio
|
|
|
33380
33367
|
return localVarFp.editWebsiteV1(websiteId, horizonsV1WebsitesEditWebsiteRequest, options).then((request) => request(axios, basePath));
|
|
33381
33368
|
},
|
|
33382
33369
|
/**
|
|
33383
|
-
* List the Hostinger
|
|
33370
|
+
* List the Hostinger AI Builder 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 AI Builder interface.\\n The complete list of websites is returned in a single response - it is not paginated.
|
|
33384
33371
|
* @summary Get website list
|
|
33385
33372
|
* @param {*} [options] Override http request option.
|
|
33386
33373
|
* @throws {RequiredError}
|
|
@@ -33389,7 +33376,7 @@ export const HorizonsWebsitesApiFactory = function (configuration?: Configuratio
|
|
|
33389
33376
|
return localVarFp.getWebsiteListV1(options).then((request) => request(axios, basePath));
|
|
33390
33377
|
},
|
|
33391
33378
|
/**
|
|
33392
|
-
* Get the link for the user to open their website in Hostinger
|
|
33379
|
+
* Get the link for the user to open their website in Hostinger AI Builder interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `is_generating` is true while changes are being generated, and `actions_in_progress` has `website_publish` while the website is being published. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger AI Builder interface in the provided website URL.
|
|
33393
33380
|
* @summary Get website
|
|
33394
33381
|
* @param {string} websiteId The website ID
|
|
33395
33382
|
* @param {*} [options] Override http request option.
|
|
@@ -33399,7 +33386,7 @@ export const HorizonsWebsitesApiFactory = function (configuration?: Configuratio
|
|
|
33399
33386
|
return localVarFp.getWebsiteV1(websiteId, options).then((request) => request(axios, basePath));
|
|
33400
33387
|
},
|
|
33401
33388
|
/**
|
|
33402
|
-
* Publish a Hostinger
|
|
33389
|
+
* Publish a Hostinger AI Builder website so its latest changes go live.\\n Use this tool when the user asks to publish, deploy or make their website live.\\n This tool starts the publish process and returns the URL the website will be live on. Publishing happens asynchronously and takes a few minutes.\\n Set `is_template` only when the user explicitly asks to share the website as a template: true adds a \"Use template\" banner to its published pages that copies the website into the visitor\'s own account, and false removes it. Leave it out to keep the current setting.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that the website is being published and you should provide the published URL to the user immediately.
|
|
33403
33390
|
* @summary Publish website
|
|
33404
33391
|
* @param {string} websiteId The website ID
|
|
33405
33392
|
* @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
|
|
@@ -33420,7 +33407,7 @@ export const HorizonsWebsitesApiFactory = function (configuration?: Configuratio
|
|
|
33420
33407
|
*/
|
|
33421
33408
|
export class HorizonsWebsitesApi extends BaseAPI {
|
|
33422
33409
|
/**
|
|
33423
|
-
* Clone a Hostinger
|
|
33410
|
+
* Clone a Hostinger AI Builder 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 AI Builder interface.
|
|
33424
33411
|
* @summary Clone website
|
|
33425
33412
|
* @param {string} websiteId The website ID
|
|
33426
33413
|
* @param {*} [options] Override http request option.
|
|
@@ -33432,7 +33419,7 @@ export class HorizonsWebsitesApi extends BaseAPI {
|
|
|
33432
33419
|
}
|
|
33433
33420
|
|
|
33434
33421
|
/**
|
|
33435
|
-
* Create new Hostinger
|
|
33422
|
+
* Create new Hostinger AI Builder 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 AI Builder 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 AI Builder 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 - Hostinger AI Builder 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
|
|
33436
33423
|
* @summary Create website
|
|
33437
33424
|
* @param {HorizonsV1WebsitesCreateWebsiteRequest} horizonsV1WebsitesCreateWebsiteRequest
|
|
33438
33425
|
* @param {*} [options] Override http request option.
|
|
@@ -33444,7 +33431,7 @@ export class HorizonsWebsitesApi extends BaseAPI {
|
|
|
33444
33431
|
}
|
|
33445
33432
|
|
|
33446
33433
|
/**
|
|
33447
|
-
* Edit an existing Hostinger
|
|
33434
|
+
* Edit an existing Hostinger AI Builder 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 AI Builder 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.
|
|
33448
33435
|
* @summary Edit website
|
|
33449
33436
|
* @param {string} websiteId The website ID
|
|
33450
33437
|
* @param {HorizonsV1WebsitesEditWebsiteRequest} horizonsV1WebsitesEditWebsiteRequest
|
|
@@ -33457,7 +33444,7 @@ export class HorizonsWebsitesApi extends BaseAPI {
|
|
|
33457
33444
|
}
|
|
33458
33445
|
|
|
33459
33446
|
/**
|
|
33460
|
-
* List the Hostinger
|
|
33447
|
+
* List the Hostinger AI Builder 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 AI Builder interface.\\n The complete list of websites is returned in a single response - it is not paginated.
|
|
33461
33448
|
* @summary Get website list
|
|
33462
33449
|
* @param {*} [options] Override http request option.
|
|
33463
33450
|
* @throws {RequiredError}
|
|
@@ -33468,7 +33455,7 @@ export class HorizonsWebsitesApi extends BaseAPI {
|
|
|
33468
33455
|
}
|
|
33469
33456
|
|
|
33470
33457
|
/**
|
|
33471
|
-
* Get the link for the user to open their website in Hostinger
|
|
33458
|
+
* Get the link for the user to open their website in Hostinger AI Builder interface.\\n Use this tool when the user wants the link to an existing website, or when you need its website URL before or after editing it.\\n `is_in_progress` is true while changes are being generated or the website is being published; wait until it is false before publishing. `is_generating` is true while changes are being generated, and `actions_in_progress` has `website_publish` while the website is being published. `published_at` is when the website was last published, `is_template` is whether its published pages show the \"Use template\" banner, and `has_ecommerce_store` is whether it has an online store.\\n Websites can be edited with the `Edit website` tool, or by the user in Hostinger AI Builder interface in the provided website URL.
|
|
33472
33459
|
* @summary Get website
|
|
33473
33460
|
* @param {string} websiteId The website ID
|
|
33474
33461
|
* @param {*} [options] Override http request option.
|
|
@@ -33480,7 +33467,7 @@ export class HorizonsWebsitesApi extends BaseAPI {
|
|
|
33480
33467
|
}
|
|
33481
33468
|
|
|
33482
33469
|
/**
|
|
33483
|
-
* Publish a Hostinger
|
|
33470
|
+
* Publish a Hostinger AI Builder website so its latest changes go live.\\n Use this tool when the user asks to publish, deploy or make their website live.\\n This tool starts the publish process and returns the URL the website will be live on. Publishing happens asynchronously and takes a few minutes.\\n Set `is_template` only when the user explicitly asks to share the website as a template: true adds a \"Use template\" banner to its published pages that copies the website into the visitor\'s own account, and false removes it. Leave it out to keep the current setting.\\n After invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing that the website is being published and you should provide the published URL to the user immediately.
|
|
33484
33471
|
* @summary Publish website
|
|
33485
33472
|
* @param {string} websiteId The website ID
|
|
33486
33473
|
* @param {HorizonsV1WebsitesPublishWebsiteRequest} [horizonsV1WebsitesPublishWebsiteRequest]
|
|
@@ -54951,51 +54938,6 @@ export class VPSPostInstallScriptsApi extends BaseAPI {
|
|
|
54951
54938
|
*/
|
|
54952
54939
|
export const VPSPublicKeysApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
54953
54940
|
return {
|
|
54954
|
-
/**
|
|
54955
|
-
* Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
54956
|
-
* @summary Attach public key
|
|
54957
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
54958
|
-
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
54959
|
-
* @param {*} [options] Override http request option.
|
|
54960
|
-
* @deprecated
|
|
54961
|
-
* @throws {RequiredError}
|
|
54962
|
-
*/
|
|
54963
|
-
attachPublicKeyV1: async (virtualMachineId: number, vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54964
|
-
// verify required parameter 'virtualMachineId' is not null or undefined
|
|
54965
|
-
assertParamExists('attachPublicKeyV1', 'virtualMachineId', virtualMachineId)
|
|
54966
|
-
// verify required parameter 'vPSV1PublicKeyAttachRequest' is not null or undefined
|
|
54967
|
-
assertParamExists('attachPublicKeyV1', 'vPSV1PublicKeyAttachRequest', vPSV1PublicKeyAttachRequest)
|
|
54968
|
-
const localVarPath = `/api/vps/v1/public-keys/attach/{virtualMachineId}`
|
|
54969
|
-
.replace(`{${"virtualMachineId"}}`, encodePathParam('virtualMachineId', virtualMachineId));
|
|
54970
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54971
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54972
|
-
let baseOptions;
|
|
54973
|
-
if (configuration) {
|
|
54974
|
-
baseOptions = configuration.baseOptions;
|
|
54975
|
-
}
|
|
54976
|
-
|
|
54977
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
54978
|
-
const localVarHeaderParameter = {} as any;
|
|
54979
|
-
const localVarQueryParameter = {} as any;
|
|
54980
|
-
|
|
54981
|
-
// authentication apiToken required
|
|
54982
|
-
// http bearer authentication required
|
|
54983
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
54984
|
-
|
|
54985
|
-
|
|
54986
|
-
|
|
54987
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
54988
|
-
|
|
54989
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54990
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54991
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
54992
|
-
localVarRequestOptions.data = serializeDataIfNeeded(vPSV1PublicKeyAttachRequest, localVarRequestOptions, configuration)
|
|
54993
|
-
|
|
54994
|
-
return {
|
|
54995
|
-
url: toPathString(localVarUrlObj),
|
|
54996
|
-
options: localVarRequestOptions,
|
|
54997
|
-
};
|
|
54998
|
-
},
|
|
54999
54941
|
/**
|
|
55000
54942
|
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
55001
54943
|
* @summary Create public key
|
|
@@ -55126,20 +55068,6 @@ export const VPSPublicKeysApiAxiosParamCreator = function (configuration?: Confi
|
|
|
55126
55068
|
export const VPSPublicKeysApiFp = function(configuration?: Configuration) {
|
|
55127
55069
|
const localVarAxiosParamCreator = VPSPublicKeysApiAxiosParamCreator(configuration)
|
|
55128
55070
|
return {
|
|
55129
|
-
/**
|
|
55130
|
-
* Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
55131
|
-
* @summary Attach public key
|
|
55132
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
55133
|
-
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
55134
|
-
* @param {*} [options] Override http request option.
|
|
55135
|
-
* @deprecated
|
|
55136
|
-
* @throws {RequiredError}
|
|
55137
|
-
*/
|
|
55138
|
-
async attachPublicKeyV1(virtualMachineId: number, vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1ActionActionResource>> {
|
|
55139
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options);
|
|
55140
|
-
const localVarOperationServerBasePath = operationServerMap['VPSPublicKeysApi.attachPublicKeyV1']?.[0]?.url;
|
|
55141
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
55142
|
-
},
|
|
55143
55071
|
/**
|
|
55144
55072
|
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
55145
55073
|
* @summary Create public key
|
|
@@ -55189,18 +55117,6 @@ export const VPSPublicKeysApiFp = function(configuration?: Configuration) {
|
|
|
55189
55117
|
export const VPSPublicKeysApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
55190
55118
|
const localVarFp = VPSPublicKeysApiFp(configuration)
|
|
55191
55119
|
return {
|
|
55192
|
-
/**
|
|
55193
|
-
* Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
55194
|
-
* @summary Attach public key
|
|
55195
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
55196
|
-
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
55197
|
-
* @param {*} [options] Override http request option.
|
|
55198
|
-
* @deprecated
|
|
55199
|
-
* @throws {RequiredError}
|
|
55200
|
-
*/
|
|
55201
|
-
attachPublicKeyV1(virtualMachineId: number, vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1ActionActionResource> {
|
|
55202
|
-
return localVarFp.attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options).then((request) => request(axios, basePath));
|
|
55203
|
-
},
|
|
55204
55120
|
/**
|
|
55205
55121
|
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
55206
55122
|
* @summary Create public key
|
|
@@ -55244,20 +55160,6 @@ export const VPSPublicKeysApiFactory = function (configuration?: Configuration,
|
|
|
55244
55160
|
* @extends {BaseAPI}
|
|
55245
55161
|
*/
|
|
55246
55162
|
export class VPSPublicKeysApi extends BaseAPI {
|
|
55247
|
-
/**
|
|
55248
|
-
* Deprecated: use `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Attach existing public keys from your account to a specified virtual machine. Multiple keys can be attached to a single virtual machine. Use this endpoint to enable SSH key authentication for VPS instances.
|
|
55249
|
-
* @summary Attach public key
|
|
55250
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
55251
|
-
* @param {VPSV1PublicKeyAttachRequest} vPSV1PublicKeyAttachRequest
|
|
55252
|
-
* @param {*} [options] Override http request option.
|
|
55253
|
-
* @deprecated
|
|
55254
|
-
* @throws {RequiredError}
|
|
55255
|
-
* @memberof VPSPublicKeysApi
|
|
55256
|
-
*/
|
|
55257
|
-
public attachPublicKeyV1(virtualMachineId: number, vPSV1PublicKeyAttachRequest: VPSV1PublicKeyAttachRequest, options?: RawAxiosRequestConfig) {
|
|
55258
|
-
return VPSPublicKeysApiFp(this.configuration).attachPublicKeyV1(virtualMachineId, vPSV1PublicKeyAttachRequest, options).then((request) => request(this.axios, this.basePath));
|
|
55259
|
-
}
|
|
55260
|
-
|
|
55261
55163
|
/**
|
|
55262
55164
|
* Deprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via `POST /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys`. Add a new public key to your account. Use this endpoint to register SSH keys for VPS authentication.
|
|
55263
55165
|
* @summary Create public key
|
|
@@ -56098,50 +56000,6 @@ export class VPSSnapshotsApi extends BaseAPI {
|
|
|
56098
56000
|
*/
|
|
56099
56001
|
export const VPSVirtualMachineApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
56100
56002
|
return {
|
|
56101
|
-
/**
|
|
56102
|
-
* Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
56103
|
-
* @summary Get attached public keys
|
|
56104
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
56105
|
-
* @param {number} [page] Page number
|
|
56106
|
-
* @param {*} [options] Override http request option.
|
|
56107
|
-
* @deprecated
|
|
56108
|
-
* @throws {RequiredError}
|
|
56109
|
-
*/
|
|
56110
|
-
getAttachedPublicKeysV1: async (virtualMachineId: number, page?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
56111
|
-
// verify required parameter 'virtualMachineId' is not null or undefined
|
|
56112
|
-
assertParamExists('getAttachedPublicKeysV1', 'virtualMachineId', virtualMachineId)
|
|
56113
|
-
const localVarPath = `/api/vps/v1/virtual-machines/{virtualMachineId}/public-keys`
|
|
56114
|
-
.replace(`{${"virtualMachineId"}}`, encodePathParam('virtualMachineId', virtualMachineId));
|
|
56115
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56116
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56117
|
-
let baseOptions;
|
|
56118
|
-
if (configuration) {
|
|
56119
|
-
baseOptions = configuration.baseOptions;
|
|
56120
|
-
}
|
|
56121
|
-
|
|
56122
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
56123
|
-
const localVarHeaderParameter = {} as any;
|
|
56124
|
-
const localVarQueryParameter = {} as any;
|
|
56125
|
-
|
|
56126
|
-
// authentication apiToken required
|
|
56127
|
-
// http bearer authentication required
|
|
56128
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
56129
|
-
|
|
56130
|
-
if (page !== undefined) {
|
|
56131
|
-
localVarQueryParameter['page'] = page;
|
|
56132
|
-
}
|
|
56133
|
-
|
|
56134
|
-
|
|
56135
|
-
|
|
56136
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
56137
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
56138
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
56139
|
-
|
|
56140
|
-
return {
|
|
56141
|
-
url: toPathString(localVarUrlObj),
|
|
56142
|
-
options: localVarRequestOptions,
|
|
56143
|
-
};
|
|
56144
|
-
},
|
|
56145
56003
|
/**
|
|
56146
56004
|
* Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
|
|
56147
56005
|
* @summary Get metrics
|
|
@@ -56736,20 +56594,6 @@ export const VPSVirtualMachineApiAxiosParamCreator = function (configuration?: C
|
|
|
56736
56594
|
export const VPSVirtualMachineApiFp = function(configuration?: Configuration) {
|
|
56737
56595
|
const localVarAxiosParamCreator = VPSVirtualMachineApiAxiosParamCreator(configuration)
|
|
56738
56596
|
return {
|
|
56739
|
-
/**
|
|
56740
|
-
* Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
56741
|
-
* @summary Get attached public keys
|
|
56742
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
56743
|
-
* @param {number} [page] Page number
|
|
56744
|
-
* @param {*} [options] Override http request option.
|
|
56745
|
-
* @deprecated
|
|
56746
|
-
* @throws {RequiredError}
|
|
56747
|
-
*/
|
|
56748
|
-
async getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VPSV1PublicKeyListResponse>> {
|
|
56749
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAttachedPublicKeysV1(virtualMachineId, page, options);
|
|
56750
|
-
const localVarOperationServerBasePath = operationServerMap['VPSVirtualMachineApi.getAttachedPublicKeysV1']?.[0]?.url;
|
|
56751
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
56752
|
-
},
|
|
56753
56597
|
/**
|
|
56754
56598
|
* Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
|
|
56755
56599
|
* @summary Get metrics
|
|
@@ -56935,18 +56779,6 @@ export const VPSVirtualMachineApiFp = function(configuration?: Configuration) {
|
|
|
56935
56779
|
export const VPSVirtualMachineApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
56936
56780
|
const localVarFp = VPSVirtualMachineApiFp(configuration)
|
|
56937
56781
|
return {
|
|
56938
|
-
/**
|
|
56939
|
-
* Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
56940
|
-
* @summary Get attached public keys
|
|
56941
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
56942
|
-
* @param {number} [page] Page number
|
|
56943
|
-
* @param {*} [options] Override http request option.
|
|
56944
|
-
* @deprecated
|
|
56945
|
-
* @throws {RequiredError}
|
|
56946
|
-
*/
|
|
56947
|
-
getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<VPSV1PublicKeyListResponse> {
|
|
56948
|
-
return localVarFp.getAttachedPublicKeysV1(virtualMachineId, page, options).then((request) => request(axios, basePath));
|
|
56949
|
-
},
|
|
56950
56782
|
/**
|
|
56951
56783
|
* Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
|
|
56952
56784
|
* @summary Get metrics
|
|
@@ -57104,20 +56936,6 @@ export const VPSVirtualMachineApiFactory = function (configuration?: Configurati
|
|
|
57104
56936
|
* @extends {BaseAPI}
|
|
57105
56937
|
*/
|
|
57106
56938
|
export class VPSVirtualMachineApi extends BaseAPI {
|
|
57107
|
-
/**
|
|
57108
|
-
* Deprecated: use `GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys` instead. Retrieve public keys attached to a specified virtual machine. Use this endpoint to view SSH keys configured for specific VPS instances.
|
|
57109
|
-
* @summary Get attached public keys
|
|
57110
|
-
* @param {number} virtualMachineId Virtual Machine ID
|
|
57111
|
-
* @param {number} [page] Page number
|
|
57112
|
-
* @param {*} [options] Override http request option.
|
|
57113
|
-
* @deprecated
|
|
57114
|
-
* @throws {RequiredError}
|
|
57115
|
-
* @memberof VPSVirtualMachineApi
|
|
57116
|
-
*/
|
|
57117
|
-
public getAttachedPublicKeysV1(virtualMachineId: number, page?: number, options?: RawAxiosRequestConfig) {
|
|
57118
|
-
return VPSVirtualMachineApiFp(this.configuration).getAttachedPublicKeysV1(virtualMachineId, page, options).then((request) => request(this.axios, this.basePath));
|
|
57119
|
-
}
|
|
57120
|
-
|
|
57121
56939
|
/**
|
|
57122
56940
|
* Retrieve historical metrics for a specified virtual machine. It includes the following metrics: - CPU usage - Memory usage - Disk usage - Network usage - Uptime Use this endpoint to monitor VPS performance and resource utilization over time.
|
|
57123
56941
|
* @summary Get metrics
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 3.4.
|
|
6
|
+
* API Version: 3.4.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 3.4.
|
|
6
|
+
* API Version: 3.4.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 3.4.
|
|
6
|
+
* API Version: 3.4.2
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/3.4.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/3.4.2",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|