hostinger-api-sdk 1.40.0 → 1.40.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## hostinger-api-sdk@1.40.0
1
+ ## hostinger-api-sdk@1.40.1
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install hostinger-api-sdk@1.40.0 --save
8
+ npm install hostinger-api-sdk@1.40.1 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.42.0
6
+ * API Version: 1.42.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -26174,54 +26174,6 @@ export type ListWebsiteFilesAndDirectoriesV1FileTypesEnum = typeof ListWebsiteFi
26174
26174
  */
26175
26175
  export const HostingNodeJSApiAxiosParamCreator = function (configuration?: Configuration) {
26176
26176
  return {
26177
- /**
26178
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
26179
- * @summary Create NodeJS build from archive
26180
- * @param {string} username
26181
- * @param {string} domain Domain name
26182
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
26183
- * @param {*} [options] Override http request option.
26184
- * @throws {RequiredError}
26185
- */
26186
- createNodeJSBuildFromArchiveV1: async (username: string, domain: string, hostingV1NodeJsCreateFromArchiveRequest: HostingV1NodeJsCreateFromArchiveRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26187
- // verify required parameter 'username' is not null or undefined
26188
- assertParamExists('createNodeJSBuildFromArchiveV1', 'username', username)
26189
- // verify required parameter 'domain' is not null or undefined
26190
- assertParamExists('createNodeJSBuildFromArchiveV1', 'domain', domain)
26191
- // verify required parameter 'hostingV1NodeJsCreateFromArchiveRequest' is not null or undefined
26192
- assertParamExists('createNodeJSBuildFromArchiveV1', 'hostingV1NodeJsCreateFromArchiveRequest', hostingV1NodeJsCreateFromArchiveRequest)
26193
- const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive`
26194
- .replace(`{${"username"}}`, encodeURIComponent(String(username)))
26195
- .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
26196
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
26197
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26198
- let baseOptions;
26199
- if (configuration) {
26200
- baseOptions = configuration.baseOptions;
26201
- }
26202
-
26203
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
26204
- const localVarHeaderParameter = {} as any;
26205
- const localVarQueryParameter = {} as any;
26206
-
26207
- // authentication apiToken required
26208
- // http bearer authentication required
26209
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
26210
-
26211
-
26212
-
26213
- localVarHeaderParameter['Content-Type'] = 'application/json';
26214
-
26215
- setSearchParams(localVarUrlObj, localVarQueryParameter);
26216
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26217
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26218
- localVarRequestOptions.data = serializeDataIfNeeded(hostingV1NodeJsCreateFromArchiveRequest, localVarRequestOptions, configuration)
26219
-
26220
- return {
26221
- url: toPathString(localVarUrlObj),
26222
- options: localVarRequestOptions,
26223
- };
26224
- },
26225
26177
  /**
26226
26178
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
26227
26179
  * @summary Get NodeJS build logs
@@ -26574,20 +26526,6 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration?: Confi
26574
26526
  export const HostingNodeJSApiFp = function(configuration?: Configuration) {
26575
26527
  const localVarAxiosParamCreator = HostingNodeJSApiAxiosParamCreator(configuration)
26576
26528
  return {
26577
- /**
26578
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
26579
- * @summary Create NodeJS build from archive
26580
- * @param {string} username
26581
- * @param {string} domain Domain name
26582
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
26583
- * @param {*} [options] Override http request option.
26584
- * @throws {RequiredError}
26585
- */
26586
- async createNodeJSBuildFromArchiveV1(username: string, domain: string, hostingV1NodeJsCreateFromArchiveRequest: HostingV1NodeJsCreateFromArchiveRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1NodeJsBuildResource>> {
26587
- const localVarAxiosArgs = await localVarAxiosParamCreator.createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options);
26588
- const localVarOperationServerBasePath = operationServerMap['HostingNodeJSApi.createNodeJSBuildFromArchiveV1']?.[0]?.url;
26589
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26590
- },
26591
26529
  /**
26592
26530
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
26593
26531
  * @summary Get NodeJS build logs
@@ -26698,18 +26636,6 @@ export const HostingNodeJSApiFp = function(configuration?: Configuration) {
26698
26636
  export const HostingNodeJSApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
26699
26637
  const localVarFp = HostingNodeJSApiFp(configuration)
26700
26638
  return {
26701
- /**
26702
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
26703
- * @summary Create NodeJS build from archive
26704
- * @param {string} username
26705
- * @param {string} domain Domain name
26706
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
26707
- * @param {*} [options] Override http request option.
26708
- * @throws {RequiredError}
26709
- */
26710
- createNodeJSBuildFromArchiveV1(username: string, domain: string, hostingV1NodeJsCreateFromArchiveRequest: HostingV1NodeJsCreateFromArchiveRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1NodeJsBuildResource> {
26711
- return localVarFp.createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options).then((request) => request(axios, basePath));
26712
- },
26713
26639
  /**
26714
26640
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
26715
26641
  * @summary Get NodeJS build logs
@@ -26806,20 +26732,6 @@ export const HostingNodeJSApiFactory = function (configuration?: Configuration,
26806
26732
  * @extends {BaseAPI}
26807
26733
  */
26808
26734
  export class HostingNodeJSApi extends BaseAPI {
26809
- /**
26810
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
26811
- * @summary Create NodeJS build from archive
26812
- * @param {string} username
26813
- * @param {string} domain Domain name
26814
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
26815
- * @param {*} [options] Override http request option.
26816
- * @throws {RequiredError}
26817
- * @memberof HostingNodeJSApi
26818
- */
26819
- public createNodeJSBuildFromArchiveV1(username: string, domain: string, hostingV1NodeJsCreateFromArchiveRequest: HostingV1NodeJsCreateFromArchiveRequest, options?: RawAxiosRequestConfig) {
26820
- return HostingNodeJSApiFp(this.configuration).createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options).then((request) => request(this.axios, this.basePath));
26821
- }
26822
-
26823
26735
  /**
26824
26736
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
26825
26737
  * @summary Get NodeJS build logs
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.42.0
6
+ * API Version: 1.42.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/common.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.42.0
6
+ * API Version: 1.42.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.42.0
6
+ * API Version: 1.42.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-typescript-sdk/1.40.0",
51
+ 'User-Agent': "hostinger-typescript-sdk/1.40.1",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };
package/dist/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.42.0
4
+ * API Version: 1.42.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -19589,16 +19589,6 @@ export type ListWebsiteFilesAndDirectoriesV1FileTypesEnum = typeof ListWebsiteFi
19589
19589
  * @export
19590
19590
  */
19591
19591
  export declare const HostingNodeJSApiAxiosParamCreator: (configuration?: Configuration) => {
19592
- /**
19593
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
19594
- * @summary Create NodeJS build from archive
19595
- * @param {string} username
19596
- * @param {string} domain Domain name
19597
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
19598
- * @param {*} [options] Override http request option.
19599
- * @throws {RequiredError}
19600
- */
19601
- createNodeJSBuildFromArchiveV1: (username: string, domain: string, hostingV1NodeJsCreateFromArchiveRequest: HostingV1NodeJsCreateFromArchiveRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19602
19592
  /**
19603
19593
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
19604
19594
  * @summary Get NodeJS build logs
@@ -19677,16 +19667,6 @@ export declare const HostingNodeJSApiAxiosParamCreator: (configuration?: Configu
19677
19667
  * @export
19678
19668
  */
19679
19669
  export declare const HostingNodeJSApiFp: (configuration?: Configuration) => {
19680
- /**
19681
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
19682
- * @summary Create NodeJS build from archive
19683
- * @param {string} username
19684
- * @param {string} domain Domain name
19685
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
19686
- * @param {*} [options] Override http request option.
19687
- * @throws {RequiredError}
19688
- */
19689
- createNodeJSBuildFromArchiveV1(username: string, domain: string, hostingV1NodeJsCreateFromArchiveRequest: HostingV1NodeJsCreateFromArchiveRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1NodeJsBuildResource>>;
19690
19670
  /**
19691
19671
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
19692
19672
  * @summary Get NodeJS build logs
@@ -19765,16 +19745,6 @@ export declare const HostingNodeJSApiFp: (configuration?: Configuration) => {
19765
19745
  * @export
19766
19746
  */
19767
19747
  export declare const HostingNodeJSApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
19768
- /**
19769
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
19770
- * @summary Create NodeJS build from archive
19771
- * @param {string} username
19772
- * @param {string} domain Domain name
19773
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
19774
- * @param {*} [options] Override http request option.
19775
- * @throws {RequiredError}
19776
- */
19777
- createNodeJSBuildFromArchiveV1(username: string, domain: string, hostingV1NodeJsCreateFromArchiveRequest: HostingV1NodeJsCreateFromArchiveRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1NodeJsBuildResource>;
19778
19748
  /**
19779
19749
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
19780
19750
  * @summary Get NodeJS build logs
@@ -19855,17 +19825,6 @@ export declare const HostingNodeJSApiFactory: (configuration?: Configuration, ba
19855
19825
  * @extends {BaseAPI}
19856
19826
  */
19857
19827
  export declare class HostingNodeJSApi extends BaseAPI {
19858
- /**
19859
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
19860
- * @summary Create NodeJS build from archive
19861
- * @param {string} username
19862
- * @param {string} domain Domain name
19863
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
19864
- * @param {*} [options] Override http request option.
19865
- * @throws {RequiredError}
19866
- * @memberof HostingNodeJSApi
19867
- */
19868
- createNodeJSBuildFromArchiveV1(username: string, domain: string, hostingV1NodeJsCreateFromArchiveRequest: HostingV1NodeJsCreateFromArchiveRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1NodeJsBuildResource, any, {}, any>>;
19869
19828
  /**
19870
19829
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
19871
19830
  * @summary Get NodeJS build logs
package/dist/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.42.0
7
+ * API Version: 1.42.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -12443,47 +12443,6 @@ exports.ListWebsiteFilesAndDirectoriesV1FileTypesEnum = {
12443
12443
  */
12444
12444
  const HostingNodeJSApiAxiosParamCreator = function (configuration) {
12445
12445
  return {
12446
- /**
12447
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12448
- * @summary Create NodeJS build from archive
12449
- * @param {string} username
12450
- * @param {string} domain Domain name
12451
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
12452
- * @param {*} [options] Override http request option.
12453
- * @throws {RequiredError}
12454
- */
12455
- createNodeJSBuildFromArchiveV1: (username_1, domain_1, hostingV1NodeJsCreateFromArchiveRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1NodeJsCreateFromArchiveRequest_1, ...args_1], void 0, function* (username, domain, hostingV1NodeJsCreateFromArchiveRequest, options = {}) {
12456
- // verify required parameter 'username' is not null or undefined
12457
- (0, common_1.assertParamExists)('createNodeJSBuildFromArchiveV1', 'username', username);
12458
- // verify required parameter 'domain' is not null or undefined
12459
- (0, common_1.assertParamExists)('createNodeJSBuildFromArchiveV1', 'domain', domain);
12460
- // verify required parameter 'hostingV1NodeJsCreateFromArchiveRequest' is not null or undefined
12461
- (0, common_1.assertParamExists)('createNodeJSBuildFromArchiveV1', 'hostingV1NodeJsCreateFromArchiveRequest', hostingV1NodeJsCreateFromArchiveRequest);
12462
- const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive`
12463
- .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12464
- .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
12465
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12466
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12467
- let baseOptions;
12468
- if (configuration) {
12469
- baseOptions = configuration.baseOptions;
12470
- }
12471
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12472
- const localVarHeaderParameter = {};
12473
- const localVarQueryParameter = {};
12474
- // authentication apiToken required
12475
- // http bearer authentication required
12476
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12477
- localVarHeaderParameter['Content-Type'] = 'application/json';
12478
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12479
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12480
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12481
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1NodeJsCreateFromArchiveRequest, localVarRequestOptions, configuration);
12482
- return {
12483
- url: (0, common_1.toPathString)(localVarUrlObj),
12484
- options: localVarRequestOptions,
12485
- };
12486
- }),
12487
12446
  /**
12488
12447
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
12489
12448
  * @summary Get NodeJS build logs
@@ -12786,23 +12745,6 @@ exports.HostingNodeJSApiAxiosParamCreator = HostingNodeJSApiAxiosParamCreator;
12786
12745
  const HostingNodeJSApiFp = function (configuration) {
12787
12746
  const localVarAxiosParamCreator = (0, exports.HostingNodeJSApiAxiosParamCreator)(configuration);
12788
12747
  return {
12789
- /**
12790
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12791
- * @summary Create NodeJS build from archive
12792
- * @param {string} username
12793
- * @param {string} domain Domain name
12794
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
12795
- * @param {*} [options] Override http request option.
12796
- * @throws {RequiredError}
12797
- */
12798
- createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options) {
12799
- return __awaiter(this, void 0, void 0, function* () {
12800
- var _a, _b;
12801
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options);
12802
- const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingNodeJSApi.createNodeJSBuildFromArchiveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
12803
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12804
- });
12805
- },
12806
12748
  /**
12807
12749
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
12808
12750
  * @summary Get NodeJS build logs
@@ -12934,18 +12876,6 @@ exports.HostingNodeJSApiFp = HostingNodeJSApiFp;
12934
12876
  const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
12935
12877
  const localVarFp = (0, exports.HostingNodeJSApiFp)(configuration);
12936
12878
  return {
12937
- /**
12938
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12939
- * @summary Create NodeJS build from archive
12940
- * @param {string} username
12941
- * @param {string} domain Domain name
12942
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
12943
- * @param {*} [options] Override http request option.
12944
- * @throws {RequiredError}
12945
- */
12946
- createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options) {
12947
- return localVarFp.createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options).then((request) => request(axios, basePath));
12948
- },
12949
12879
  /**
12950
12880
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
12951
12881
  * @summary Get NodeJS build logs
@@ -13042,19 +12972,6 @@ exports.HostingNodeJSApiFactory = HostingNodeJSApiFactory;
13042
12972
  * @extends {BaseAPI}
13043
12973
  */
13044
12974
  class HostingNodeJSApi extends base_1.BaseAPI {
13045
- /**
13046
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
13047
- * @summary Create NodeJS build from archive
13048
- * @param {string} username
13049
- * @param {string} domain Domain name
13050
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
13051
- * @param {*} [options] Override http request option.
13052
- * @throws {RequiredError}
13053
- * @memberof HostingNodeJSApi
13054
- */
13055
- createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options) {
13056
- return (0, exports.HostingNodeJSApiFp)(this.configuration).createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options).then((request) => request(this.axios, this.basePath));
13057
- }
13058
12975
  /**
13059
12976
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
13060
12977
  * @summary Get NodeJS build logs
package/dist/base.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.42.0
4
+ * API Version: 1.42.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.42.0
7
+ * API Version: 1.42.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/common.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.42.0
4
+ * API Version: 1.42.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/common.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.42.0
7
+ * API Version: 1.42.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.42.0
4
+ * API Version: 1.42.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.42.0
7
+ * API Version: 1.42.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -16,7 +16,7 @@ class Configuration {
16
16
  var _a;
17
17
  this.accessToken = param.accessToken;
18
18
  this.basePath = param.basePath;
19
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.40.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
19
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.40.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
20
20
  this.formDataCtor = param.formDataCtor;
21
21
  }
22
22
  /**
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.42.0
4
+ * API Version: 1.42.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -19589,16 +19589,6 @@ export type ListWebsiteFilesAndDirectoriesV1FileTypesEnum = typeof ListWebsiteFi
19589
19589
  * @export
19590
19590
  */
19591
19591
  export declare const HostingNodeJSApiAxiosParamCreator: (configuration?: Configuration) => {
19592
- /**
19593
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
19594
- * @summary Create NodeJS build from archive
19595
- * @param {string} username
19596
- * @param {string} domain Domain name
19597
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
19598
- * @param {*} [options] Override http request option.
19599
- * @throws {RequiredError}
19600
- */
19601
- createNodeJSBuildFromArchiveV1: (username: string, domain: string, hostingV1NodeJsCreateFromArchiveRequest: HostingV1NodeJsCreateFromArchiveRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
19602
19592
  /**
19603
19593
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
19604
19594
  * @summary Get NodeJS build logs
@@ -19677,16 +19667,6 @@ export declare const HostingNodeJSApiAxiosParamCreator: (configuration?: Configu
19677
19667
  * @export
19678
19668
  */
19679
19669
  export declare const HostingNodeJSApiFp: (configuration?: Configuration) => {
19680
- /**
19681
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
19682
- * @summary Create NodeJS build from archive
19683
- * @param {string} username
19684
- * @param {string} domain Domain name
19685
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
19686
- * @param {*} [options] Override http request option.
19687
- * @throws {RequiredError}
19688
- */
19689
- createNodeJSBuildFromArchiveV1(username: string, domain: string, hostingV1NodeJsCreateFromArchiveRequest: HostingV1NodeJsCreateFromArchiveRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1NodeJsBuildResource>>;
19690
19670
  /**
19691
19671
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
19692
19672
  * @summary Get NodeJS build logs
@@ -19765,16 +19745,6 @@ export declare const HostingNodeJSApiFp: (configuration?: Configuration) => {
19765
19745
  * @export
19766
19746
  */
19767
19747
  export declare const HostingNodeJSApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
19768
- /**
19769
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
19770
- * @summary Create NodeJS build from archive
19771
- * @param {string} username
19772
- * @param {string} domain Domain name
19773
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
19774
- * @param {*} [options] Override http request option.
19775
- * @throws {RequiredError}
19776
- */
19777
- createNodeJSBuildFromArchiveV1(username: string, domain: string, hostingV1NodeJsCreateFromArchiveRequest: HostingV1NodeJsCreateFromArchiveRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1NodeJsBuildResource>;
19778
19748
  /**
19779
19749
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
19780
19750
  * @summary Get NodeJS build logs
@@ -19855,17 +19825,6 @@ export declare const HostingNodeJSApiFactory: (configuration?: Configuration, ba
19855
19825
  * @extends {BaseAPI}
19856
19826
  */
19857
19827
  export declare class HostingNodeJSApi extends BaseAPI {
19858
- /**
19859
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
19860
- * @summary Create NodeJS build from archive
19861
- * @param {string} username
19862
- * @param {string} domain Domain name
19863
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
19864
- * @param {*} [options] Override http request option.
19865
- * @throws {RequiredError}
19866
- * @memberof HostingNodeJSApi
19867
- */
19868
- createNodeJSBuildFromArchiveV1(username: string, domain: string, hostingV1NodeJsCreateFromArchiveRequest: HostingV1NodeJsCreateFromArchiveRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1NodeJsBuildResource, any, {}, any>>;
19869
19828
  /**
19870
19829
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
19871
19830
  * @summary Get NodeJS build logs
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.42.0
6
+ * API Version: 1.42.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -12279,47 +12279,6 @@ export const ListWebsiteFilesAndDirectoriesV1FileTypesEnum = {
12279
12279
  */
12280
12280
  export const HostingNodeJSApiAxiosParamCreator = function (configuration) {
12281
12281
  return {
12282
- /**
12283
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12284
- * @summary Create NodeJS build from archive
12285
- * @param {string} username
12286
- * @param {string} domain Domain name
12287
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
12288
- * @param {*} [options] Override http request option.
12289
- * @throws {RequiredError}
12290
- */
12291
- createNodeJSBuildFromArchiveV1: (username_1, domain_1, hostingV1NodeJsCreateFromArchiveRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1NodeJsCreateFromArchiveRequest_1, ...args_1], void 0, function* (username, domain, hostingV1NodeJsCreateFromArchiveRequest, options = {}) {
12292
- // verify required parameter 'username' is not null or undefined
12293
- assertParamExists('createNodeJSBuildFromArchiveV1', 'username', username);
12294
- // verify required parameter 'domain' is not null or undefined
12295
- assertParamExists('createNodeJSBuildFromArchiveV1', 'domain', domain);
12296
- // verify required parameter 'hostingV1NodeJsCreateFromArchiveRequest' is not null or undefined
12297
- assertParamExists('createNodeJSBuildFromArchiveV1', 'hostingV1NodeJsCreateFromArchiveRequest', hostingV1NodeJsCreateFromArchiveRequest);
12298
- const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive`
12299
- .replace(`{${"username"}}`, encodeURIComponent(String(username)))
12300
- .replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
12301
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12302
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12303
- let baseOptions;
12304
- if (configuration) {
12305
- baseOptions = configuration.baseOptions;
12306
- }
12307
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12308
- const localVarHeaderParameter = {};
12309
- const localVarQueryParameter = {};
12310
- // authentication apiToken required
12311
- // http bearer authentication required
12312
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12313
- localVarHeaderParameter['Content-Type'] = 'application/json';
12314
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12315
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12316
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12317
- localVarRequestOptions.data = serializeDataIfNeeded(hostingV1NodeJsCreateFromArchiveRequest, localVarRequestOptions, configuration);
12318
- return {
12319
- url: toPathString(localVarUrlObj),
12320
- options: localVarRequestOptions,
12321
- };
12322
- }),
12323
12282
  /**
12324
12283
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
12325
12284
  * @summary Get NodeJS build logs
@@ -12621,23 +12580,6 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration) {
12621
12580
  export const HostingNodeJSApiFp = function (configuration) {
12622
12581
  const localVarAxiosParamCreator = HostingNodeJSApiAxiosParamCreator(configuration);
12623
12582
  return {
12624
- /**
12625
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12626
- * @summary Create NodeJS build from archive
12627
- * @param {string} username
12628
- * @param {string} domain Domain name
12629
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
12630
- * @param {*} [options] Override http request option.
12631
- * @throws {RequiredError}
12632
- */
12633
- createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options) {
12634
- return __awaiter(this, void 0, void 0, function* () {
12635
- var _a, _b;
12636
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options);
12637
- const localVarOperationServerBasePath = (_b = (_a = operationServerMap['HostingNodeJSApi.createNodeJSBuildFromArchiveV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
12638
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12639
- });
12640
- },
12641
12583
  /**
12642
12584
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
12643
12585
  * @summary Get NodeJS build logs
@@ -12768,18 +12710,6 @@ export const HostingNodeJSApiFp = function (configuration) {
12768
12710
  export const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
12769
12711
  const localVarFp = HostingNodeJSApiFp(configuration);
12770
12712
  return {
12771
- /**
12772
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12773
- * @summary Create NodeJS build from archive
12774
- * @param {string} username
12775
- * @param {string} domain Domain name
12776
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
12777
- * @param {*} [options] Override http request option.
12778
- * @throws {RequiredError}
12779
- */
12780
- createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options) {
12781
- return localVarFp.createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options).then((request) => request(axios, basePath));
12782
- },
12783
12713
  /**
12784
12714
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
12785
12715
  * @summary Get NodeJS build logs
@@ -12875,19 +12805,6 @@ export const HostingNodeJSApiFactory = function (configuration, basePath, axios)
12875
12805
  * @extends {BaseAPI}
12876
12806
  */
12877
12807
  export class HostingNodeJSApi extends BaseAPI {
12878
- /**
12879
- * Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
12880
- * @summary Create NodeJS build from archive
12881
- * @param {string} username
12882
- * @param {string} domain Domain name
12883
- * @param {HostingV1NodeJsCreateFromArchiveRequest} hostingV1NodeJsCreateFromArchiveRequest
12884
- * @param {*} [options] Override http request option.
12885
- * @throws {RequiredError}
12886
- * @memberof HostingNodeJSApi
12887
- */
12888
- createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options) {
12889
- return HostingNodeJSApiFp(this.configuration).createNodeJSBuildFromArchiveV1(username, domain, hostingV1NodeJsCreateFromArchiveRequest, options).then((request) => request(this.axios, this.basePath));
12890
- }
12891
12808
  /**
12892
12809
  * Retrieve logs from a specific Node.js build process. To stream live output while a build is running, poll this endpoint repeatedly while the build state is `running`, passing the previously returned `lines` count as `from_line` to fetch only new output since the last call. Log content may contain ANSI escape sequences (color codes).
12893
12810
  * @summary Get NodeJS build logs
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.42.0
4
+ * API Version: 1.42.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.42.0
6
+ * API Version: 1.42.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.42.0
4
+ * API Version: 1.42.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.42.0
6
+ * API Version: 1.42.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.42.0
4
+ * API Version: 1.42.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.42.0
6
+ * API Version: 1.42.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.40.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.40.1" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.42.0
4
+ * API Version: 1.42.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.42.0
6
+ * API Version: 1.42.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 1.42.0
4
+ * API Version: 1.42.1
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 1.42.0
7
+ * API Version: 1.42.1
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -4,7 +4,6 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**createNodeJSBuildFromArchiveV1**](#createnodejsbuildfromarchivev1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive | Create NodeJS build from archive|
8
7
  |[**getNodeJSBuildLogsV1**](#getnodejsbuildlogsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs | Get NodeJS build logs|
9
8
  |[**getNodeJsBuildSettingsFromArchiveV1**](#getnodejsbuildsettingsfromarchivev1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive | Get Node.js build settings from archive|
10
9
  |[**listNodeJSBuildsV1**](#listnodejsbuildsv1) | **GET** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds | List NodeJS builds|
@@ -13,67 +12,6 @@ All URIs are relative to *https://developers.hostinger.com*
13
12
  |[**restartNodeJsApplicationV1**](#restartnodejsapplicationv1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/server/restart | Restart Node.js application|
14
13
  |[**startNodeJsBuildV1**](#startnodejsbuildv1) | **POST** /api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds | Start Node.js build|
15
14
 
16
- # **createNodeJSBuildFromArchiveV1**
17
- > HostingV1NodeJsBuildResource createNodeJSBuildFromArchiveV1(hostingV1NodeJsCreateFromArchiveRequest)
18
-
19
- Upload a project archive, auto-detect build settings, and immediately start a Node.js build. WARNING: on success this overwrites the website\'s existing contents and cannot be undone — verify this is intended before calling this endpoint. This is the recommended single-step approach for deploying a Node.js application. The archive is uploaded to the website\'s file storage, build settings are auto-detected from the package.json inside the archive, and the build process starts automatically. Optional override fields take precedence over auto-detected values. Maximum archive size is 50MB. Before archiving, exclude `node_modules/` and any build output directories (e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build process runs the install step automatically, and including them unnecessarily increases the archive size. This also helps keep the archive well under the 50MB limit. Example (zip): ``` zip -r archive.zip . --exclude \"node_modules/_*\" --exclude \"dist/_*\" ``` The returned build `uuid` can be used to poll progress and retrieve logs via the `Get Node.js Build Logs` endpoint.
20
-
21
- ### Example
22
-
23
- ```typescript
24
- import {
25
- HostingNodeJSApi,
26
- Configuration,
27
- HostingV1NodeJsCreateFromArchiveRequest
28
- } from 'hostinger-api-sdk';
29
-
30
- const configuration = new Configuration();
31
- const apiInstance = new HostingNodeJSApi(configuration);
32
-
33
- let username: string; // (default to undefined)
34
- let domain: string; //Domain name (default to undefined)
35
- let hostingV1NodeJsCreateFromArchiveRequest: HostingV1NodeJsCreateFromArchiveRequest; //
36
-
37
- const { status, data } = await apiInstance.createNodeJSBuildFromArchiveV1(
38
- username,
39
- domain,
40
- hostingV1NodeJsCreateFromArchiveRequest
41
- );
42
- ```
43
-
44
- ### Parameters
45
-
46
- |Name | Type | Description | Notes|
47
- |------------- | ------------- | ------------- | -------------|
48
- | **hostingV1NodeJsCreateFromArchiveRequest** | **HostingV1NodeJsCreateFromArchiveRequest**| | |
49
- | **username** | [**string**] | | defaults to undefined|
50
- | **domain** | [**string**] | Domain name | defaults to undefined|
51
-
52
-
53
- ### Return type
54
-
55
- **HostingV1NodeJsBuildResource**
56
-
57
- ### Authorization
58
-
59
- [apiToken](../README.md#apiToken)
60
-
61
- ### HTTP request headers
62
-
63
- - **Content-Type**: application/json
64
- - **Accept**: application/json
65
-
66
-
67
- ### HTTP response details
68
- | Status code | Description | Response headers |
69
- |-------------|-------------|------------------|
70
- |**200** | Success response | - |
71
- |**422** | Validation error response | - |
72
- |**401** | Unauthenticated response | - |
73
- |**500** | Error response | - |
74
-
75
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
76
-
77
15
  # **getNodeJSBuildLogsV1**
78
16
  > HostingV1NodeJsBuildLogsResource getNodeJSBuildLogsV1()
79
17
 
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 1.42.0
6
+ * API Version: 1.42.1
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-sdk",
3
- "version": "1.40.0",
3
+ "version": "1.40.1",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {