hostinger-api-sdk 1.42.0 → 1.43.0
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 +219 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +130 -1
- package/dist/api.js +159 -1
- 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 +130 -1
- package/dist/esm/api.js +159 -1
- 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/HostingNodeJSApi.md +119 -0
- package/docs/HostingV1NodeJsEnvVarResource.md +22 -0
- package/docs/HostingV1NodeJsSetBuildEnvVarsRequest.md +20 -0
- package/docs/HostingV1NodeJsSetBuildEnvVarsRequestEnvVarsInner.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.44.0
|
|
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
|
|
@@ -14170,6 +14170,42 @@ const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
|
14170
14170
|
options: localVarRequestOptions,
|
|
14171
14171
|
};
|
|
14172
14172
|
}),
|
|
14173
|
+
/**
|
|
14174
|
+
* Lists the Node.js environment variables currently set for the website. Values are always masked as `********` and cannot be read back through this API. Use this endpoint to see which keys are configured or to verify a change, not to read values. To change variables, use the `Replace Node.js environment variables` endpoint. It replaces the whole set, so never copy the masked values from this response into that request; send the full desired set with real values taken from the project `.env` file or the user prompt instead.
|
|
14175
|
+
* @summary List Node.js environment variables
|
|
14176
|
+
* @param {string} username
|
|
14177
|
+
* @param {string} domain Domain name
|
|
14178
|
+
* @param {*} [options] Override http request option.
|
|
14179
|
+
* @throws {RequiredError}
|
|
14180
|
+
*/
|
|
14181
|
+
listNodeJsEnvironmentVariablesV1: (username_1, domain_1, ...args_1) => __awaiter(this, [username_1, domain_1, ...args_1], void 0, function* (username, domain, options = {}) {
|
|
14182
|
+
// verify required parameter 'username' is not null or undefined
|
|
14183
|
+
(0, common_1.assertParamExists)('listNodeJsEnvironmentVariablesV1', 'username', username);
|
|
14184
|
+
// verify required parameter 'domain' is not null or undefined
|
|
14185
|
+
(0, common_1.assertParamExists)('listNodeJsEnvironmentVariablesV1', 'domain', domain);
|
|
14186
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env`
|
|
14187
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14188
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
14189
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14190
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14191
|
+
let baseOptions;
|
|
14192
|
+
if (configuration) {
|
|
14193
|
+
baseOptions = configuration.baseOptions;
|
|
14194
|
+
}
|
|
14195
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14196
|
+
const localVarHeaderParameter = {};
|
|
14197
|
+
const localVarQueryParameter = {};
|
|
14198
|
+
// authentication apiToken required
|
|
14199
|
+
// http bearer authentication required
|
|
14200
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14201
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14202
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14203
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14204
|
+
return {
|
|
14205
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14206
|
+
options: localVarRequestOptions,
|
|
14207
|
+
};
|
|
14208
|
+
}),
|
|
14173
14209
|
/**
|
|
14174
14210
|
* Lists known npm package vulnerabilities detected on a Node.js website, enriched with advisory metadata (severity, CVSS score, CVE, advisory URL). Results are sorted from the most severe to the least severe, then by publish date (newest first). Use the `severities` query parameter to filter. Vulnerabilities with `is_patchable` set to `true` can be auto-fixed via the `Patch Node.js Vulnerabilities` endpoint, which opens a GitHub pull request with updated package versions. Auto-fix is only available for websites deployed from a connected GitHub repository. Vulnerabilities with `is_patching_in_progress` set to `true` are already included in an open patch pull request; while any patch pull request is open, new patch requests for this website are rejected until it is merged or closed. Data comes from periodic dependency scans, so it may lag behind the latest deployment. An empty list means the most recent scan found no vulnerabilities; it does not guarantee the current deployment is vulnerability-free. Available on Business and Cloud Hosting plans.
|
|
14175
14211
|
* @summary List Node.js vulnerabilities
|
|
@@ -14251,6 +14287,47 @@ const HostingNodeJSApiAxiosParamCreator = function (configuration) {
|
|
|
14251
14287
|
options: localVarRequestOptions,
|
|
14252
14288
|
};
|
|
14253
14289
|
}),
|
|
14290
|
+
/**
|
|
14291
|
+
* Replaces the website\'s Node.js environment variables with the ones provided. This is a full replace: any variable not in the request is deleted, and sending an empty `env_vars` array deletes every variable. Saving writes the values and restarts the running Node.js process. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. It is not enough for frameworks that bake variables into the build. Next.js standalone is one of those: build-time values (including `NEXT_PUBLIC_*`) need a fresh build. After this call, use the `Start Node.js build` endpoint so those apps pick up the new values. The `List Node.js environment variables` endpoint returns masked values (`********`), so never copy values from it into this request. Always send the full desired set with real values taken from the project `.env` file or the user prompt.
|
|
14292
|
+
* @summary Replace Node.js environment variables
|
|
14293
|
+
* @param {string} username
|
|
14294
|
+
* @param {string} domain Domain name
|
|
14295
|
+
* @param {HostingV1NodeJsSetBuildEnvVarsRequest} hostingV1NodeJsSetBuildEnvVarsRequest
|
|
14296
|
+
* @param {*} [options] Override http request option.
|
|
14297
|
+
* @throws {RequiredError}
|
|
14298
|
+
*/
|
|
14299
|
+
replaceNodeJsEnvironmentVariablesV1: (username_1, domain_1, hostingV1NodeJsSetBuildEnvVarsRequest_1, ...args_1) => __awaiter(this, [username_1, domain_1, hostingV1NodeJsSetBuildEnvVarsRequest_1, ...args_1], void 0, function* (username, domain, hostingV1NodeJsSetBuildEnvVarsRequest, options = {}) {
|
|
14300
|
+
// verify required parameter 'username' is not null or undefined
|
|
14301
|
+
(0, common_1.assertParamExists)('replaceNodeJsEnvironmentVariablesV1', 'username', username);
|
|
14302
|
+
// verify required parameter 'domain' is not null or undefined
|
|
14303
|
+
(0, common_1.assertParamExists)('replaceNodeJsEnvironmentVariablesV1', 'domain', domain);
|
|
14304
|
+
// verify required parameter 'hostingV1NodeJsSetBuildEnvVarsRequest' is not null or undefined
|
|
14305
|
+
(0, common_1.assertParamExists)('replaceNodeJsEnvironmentVariablesV1', 'hostingV1NodeJsSetBuildEnvVarsRequest', hostingV1NodeJsSetBuildEnvVarsRequest);
|
|
14306
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env`
|
|
14307
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
14308
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
14309
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14310
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14311
|
+
let baseOptions;
|
|
14312
|
+
if (configuration) {
|
|
14313
|
+
baseOptions = configuration.baseOptions;
|
|
14314
|
+
}
|
|
14315
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
14316
|
+
const localVarHeaderParameter = {};
|
|
14317
|
+
const localVarQueryParameter = {};
|
|
14318
|
+
// authentication apiToken required
|
|
14319
|
+
// http bearer authentication required
|
|
14320
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
14321
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14322
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
14323
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14324
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14325
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(hostingV1NodeJsSetBuildEnvVarsRequest, localVarRequestOptions, configuration);
|
|
14326
|
+
return {
|
|
14327
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
14328
|
+
options: localVarRequestOptions,
|
|
14329
|
+
};
|
|
14330
|
+
}),
|
|
14254
14331
|
/**
|
|
14255
14332
|
* Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
|
|
14256
14333
|
* @summary Restart Node.js application
|
|
@@ -14392,6 +14469,22 @@ const HostingNodeJSApiFp = function (configuration) {
|
|
|
14392
14469
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14393
14470
|
});
|
|
14394
14471
|
},
|
|
14472
|
+
/**
|
|
14473
|
+
* Lists the Node.js environment variables currently set for the website. Values are always masked as `********` and cannot be read back through this API. Use this endpoint to see which keys are configured or to verify a change, not to read values. To change variables, use the `Replace Node.js environment variables` endpoint. It replaces the whole set, so never copy the masked values from this response into that request; send the full desired set with real values taken from the project `.env` file or the user prompt instead.
|
|
14474
|
+
* @summary List Node.js environment variables
|
|
14475
|
+
* @param {string} username
|
|
14476
|
+
* @param {string} domain Domain name
|
|
14477
|
+
* @param {*} [options] Override http request option.
|
|
14478
|
+
* @throws {RequiredError}
|
|
14479
|
+
*/
|
|
14480
|
+
listNodeJsEnvironmentVariablesV1(username, domain, options) {
|
|
14481
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14482
|
+
var _a, _b;
|
|
14483
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listNodeJsEnvironmentVariablesV1(username, domain, options);
|
|
14484
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingNodeJSApi.listNodeJsEnvironmentVariablesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14485
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14486
|
+
});
|
|
14487
|
+
},
|
|
14395
14488
|
/**
|
|
14396
14489
|
* Lists known npm package vulnerabilities detected on a Node.js website, enriched with advisory metadata (severity, CVSS score, CVE, advisory URL). Results are sorted from the most severe to the least severe, then by publish date (newest first). Use the `severities` query parameter to filter. Vulnerabilities with `is_patchable` set to `true` can be auto-fixed via the `Patch Node.js Vulnerabilities` endpoint, which opens a GitHub pull request with updated package versions. Auto-fix is only available for websites deployed from a connected GitHub repository. Vulnerabilities with `is_patching_in_progress` set to `true` are already included in an open patch pull request; while any patch pull request is open, new patch requests for this website are rejected until it is merged or closed. Data comes from periodic dependency scans, so it may lag behind the latest deployment. An empty list means the most recent scan found no vulnerabilities; it does not guarantee the current deployment is vulnerability-free. Available on Business and Cloud Hosting plans.
|
|
14397
14490
|
* @summary List Node.js vulnerabilities
|
|
@@ -14426,6 +14519,23 @@ const HostingNodeJSApiFp = function (configuration) {
|
|
|
14426
14519
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14427
14520
|
});
|
|
14428
14521
|
},
|
|
14522
|
+
/**
|
|
14523
|
+
* Replaces the website\'s Node.js environment variables with the ones provided. This is a full replace: any variable not in the request is deleted, and sending an empty `env_vars` array deletes every variable. Saving writes the values and restarts the running Node.js process. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. It is not enough for frameworks that bake variables into the build. Next.js standalone is one of those: build-time values (including `NEXT_PUBLIC_*`) need a fresh build. After this call, use the `Start Node.js build` endpoint so those apps pick up the new values. The `List Node.js environment variables` endpoint returns masked values (`********`), so never copy values from it into this request. Always send the full desired set with real values taken from the project `.env` file or the user prompt.
|
|
14524
|
+
* @summary Replace Node.js environment variables
|
|
14525
|
+
* @param {string} username
|
|
14526
|
+
* @param {string} domain Domain name
|
|
14527
|
+
* @param {HostingV1NodeJsSetBuildEnvVarsRequest} hostingV1NodeJsSetBuildEnvVarsRequest
|
|
14528
|
+
* @param {*} [options] Override http request option.
|
|
14529
|
+
* @throws {RequiredError}
|
|
14530
|
+
*/
|
|
14531
|
+
replaceNodeJsEnvironmentVariablesV1(username, domain, hostingV1NodeJsSetBuildEnvVarsRequest, options) {
|
|
14532
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14533
|
+
var _a, _b;
|
|
14534
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.replaceNodeJsEnvironmentVariablesV1(username, domain, hostingV1NodeJsSetBuildEnvVarsRequest, options);
|
|
14535
|
+
const localVarOperationServerBasePath = (_b = (_a = base_1.operationServerMap['HostingNodeJSApi.replaceNodeJsEnvironmentVariablesV1']) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.url;
|
|
14536
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14537
|
+
});
|
|
14538
|
+
},
|
|
14429
14539
|
/**
|
|
14430
14540
|
* Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
|
|
14431
14541
|
* @summary Restart Node.js application
|
|
@@ -14508,6 +14618,17 @@ const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
|
|
|
14508
14618
|
listNodeJSBuildsV1(username, domain, page, perPage, states, options) {
|
|
14509
14619
|
return localVarFp.listNodeJSBuildsV1(username, domain, page, perPage, states, options).then((request) => request(axios, basePath));
|
|
14510
14620
|
},
|
|
14621
|
+
/**
|
|
14622
|
+
* Lists the Node.js environment variables currently set for the website. Values are always masked as `********` and cannot be read back through this API. Use this endpoint to see which keys are configured or to verify a change, not to read values. To change variables, use the `Replace Node.js environment variables` endpoint. It replaces the whole set, so never copy the masked values from this response into that request; send the full desired set with real values taken from the project `.env` file or the user prompt instead.
|
|
14623
|
+
* @summary List Node.js environment variables
|
|
14624
|
+
* @param {string} username
|
|
14625
|
+
* @param {string} domain Domain name
|
|
14626
|
+
* @param {*} [options] Override http request option.
|
|
14627
|
+
* @throws {RequiredError}
|
|
14628
|
+
*/
|
|
14629
|
+
listNodeJsEnvironmentVariablesV1(username, domain, options) {
|
|
14630
|
+
return localVarFp.listNodeJsEnvironmentVariablesV1(username, domain, options).then((request) => request(axios, basePath));
|
|
14631
|
+
},
|
|
14511
14632
|
/**
|
|
14512
14633
|
* Lists known npm package vulnerabilities detected on a Node.js website, enriched with advisory metadata (severity, CVSS score, CVE, advisory URL). Results are sorted from the most severe to the least severe, then by publish date (newest first). Use the `severities` query parameter to filter. Vulnerabilities with `is_patchable` set to `true` can be auto-fixed via the `Patch Node.js Vulnerabilities` endpoint, which opens a GitHub pull request with updated package versions. Auto-fix is only available for websites deployed from a connected GitHub repository. Vulnerabilities with `is_patching_in_progress` set to `true` are already included in an open patch pull request; while any patch pull request is open, new patch requests for this website are rejected until it is merged or closed. Data comes from periodic dependency scans, so it may lag behind the latest deployment. An empty list means the most recent scan found no vulnerabilities; it does not guarantee the current deployment is vulnerability-free. Available on Business and Cloud Hosting plans.
|
|
14513
14634
|
* @summary List Node.js vulnerabilities
|
|
@@ -14532,6 +14653,18 @@ const HostingNodeJSApiFactory = function (configuration, basePath, axios) {
|
|
|
14532
14653
|
patchNodeJsVulnerabilitiesV1(username, domain, hostingV1NodeJsPatchVulnerabilitiesRequest, options) {
|
|
14533
14654
|
return localVarFp.patchNodeJsVulnerabilitiesV1(username, domain, hostingV1NodeJsPatchVulnerabilitiesRequest, options).then((request) => request(axios, basePath));
|
|
14534
14655
|
},
|
|
14656
|
+
/**
|
|
14657
|
+
* Replaces the website\'s Node.js environment variables with the ones provided. This is a full replace: any variable not in the request is deleted, and sending an empty `env_vars` array deletes every variable. Saving writes the values and restarts the running Node.js process. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. It is not enough for frameworks that bake variables into the build. Next.js standalone is one of those: build-time values (including `NEXT_PUBLIC_*`) need a fresh build. After this call, use the `Start Node.js build` endpoint so those apps pick up the new values. The `List Node.js environment variables` endpoint returns masked values (`********`), so never copy values from it into this request. Always send the full desired set with real values taken from the project `.env` file or the user prompt.
|
|
14658
|
+
* @summary Replace Node.js environment variables
|
|
14659
|
+
* @param {string} username
|
|
14660
|
+
* @param {string} domain Domain name
|
|
14661
|
+
* @param {HostingV1NodeJsSetBuildEnvVarsRequest} hostingV1NodeJsSetBuildEnvVarsRequest
|
|
14662
|
+
* @param {*} [options] Override http request option.
|
|
14663
|
+
* @throws {RequiredError}
|
|
14664
|
+
*/
|
|
14665
|
+
replaceNodeJsEnvironmentVariablesV1(username, domain, hostingV1NodeJsSetBuildEnvVarsRequest, options) {
|
|
14666
|
+
return localVarFp.replaceNodeJsEnvironmentVariablesV1(username, domain, hostingV1NodeJsSetBuildEnvVarsRequest, options).then((request) => request(axios, basePath));
|
|
14667
|
+
},
|
|
14535
14668
|
/**
|
|
14536
14669
|
* Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
|
|
14537
14670
|
* @summary Restart Node.js application
|
|
@@ -14607,6 +14740,18 @@ class HostingNodeJSApi extends base_1.BaseAPI {
|
|
|
14607
14740
|
listNodeJSBuildsV1(username, domain, page, perPage, states, options) {
|
|
14608
14741
|
return (0, exports.HostingNodeJSApiFp)(this.configuration).listNodeJSBuildsV1(username, domain, page, perPage, states, options).then((request) => request(this.axios, this.basePath));
|
|
14609
14742
|
}
|
|
14743
|
+
/**
|
|
14744
|
+
* Lists the Node.js environment variables currently set for the website. Values are always masked as `********` and cannot be read back through this API. Use this endpoint to see which keys are configured or to verify a change, not to read values. To change variables, use the `Replace Node.js environment variables` endpoint. It replaces the whole set, so never copy the masked values from this response into that request; send the full desired set with real values taken from the project `.env` file or the user prompt instead.
|
|
14745
|
+
* @summary List Node.js environment variables
|
|
14746
|
+
* @param {string} username
|
|
14747
|
+
* @param {string} domain Domain name
|
|
14748
|
+
* @param {*} [options] Override http request option.
|
|
14749
|
+
* @throws {RequiredError}
|
|
14750
|
+
* @memberof HostingNodeJSApi
|
|
14751
|
+
*/
|
|
14752
|
+
listNodeJsEnvironmentVariablesV1(username, domain, options) {
|
|
14753
|
+
return (0, exports.HostingNodeJSApiFp)(this.configuration).listNodeJsEnvironmentVariablesV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
14754
|
+
}
|
|
14610
14755
|
/**
|
|
14611
14756
|
* Lists known npm package vulnerabilities detected on a Node.js website, enriched with advisory metadata (severity, CVSS score, CVE, advisory URL). Results are sorted from the most severe to the least severe, then by publish date (newest first). Use the `severities` query parameter to filter. Vulnerabilities with `is_patchable` set to `true` can be auto-fixed via the `Patch Node.js Vulnerabilities` endpoint, which opens a GitHub pull request with updated package versions. Auto-fix is only available for websites deployed from a connected GitHub repository. Vulnerabilities with `is_patching_in_progress` set to `true` are already included in an open patch pull request; while any patch pull request is open, new patch requests for this website are rejected until it is merged or closed. Data comes from periodic dependency scans, so it may lag behind the latest deployment. An empty list means the most recent scan found no vulnerabilities; it does not guarantee the current deployment is vulnerability-free. Available on Business and Cloud Hosting plans.
|
|
14612
14757
|
* @summary List Node.js vulnerabilities
|
|
@@ -14633,6 +14778,19 @@ class HostingNodeJSApi extends base_1.BaseAPI {
|
|
|
14633
14778
|
patchNodeJsVulnerabilitiesV1(username, domain, hostingV1NodeJsPatchVulnerabilitiesRequest, options) {
|
|
14634
14779
|
return (0, exports.HostingNodeJSApiFp)(this.configuration).patchNodeJsVulnerabilitiesV1(username, domain, hostingV1NodeJsPatchVulnerabilitiesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14635
14780
|
}
|
|
14781
|
+
/**
|
|
14782
|
+
* Replaces the website\'s Node.js environment variables with the ones provided. This is a full replace: any variable not in the request is deleted, and sending an empty `env_vars` array deletes every variable. Saving writes the values and restarts the running Node.js process. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. It is not enough for frameworks that bake variables into the build. Next.js standalone is one of those: build-time values (including `NEXT_PUBLIC_*`) need a fresh build. After this call, use the `Start Node.js build` endpoint so those apps pick up the new values. The `List Node.js environment variables` endpoint returns masked values (`********`), so never copy values from it into this request. Always send the full desired set with real values taken from the project `.env` file or the user prompt.
|
|
14783
|
+
* @summary Replace Node.js environment variables
|
|
14784
|
+
* @param {string} username
|
|
14785
|
+
* @param {string} domain Domain name
|
|
14786
|
+
* @param {HostingV1NodeJsSetBuildEnvVarsRequest} hostingV1NodeJsSetBuildEnvVarsRequest
|
|
14787
|
+
* @param {*} [options] Override http request option.
|
|
14788
|
+
* @throws {RequiredError}
|
|
14789
|
+
* @memberof HostingNodeJSApi
|
|
14790
|
+
*/
|
|
14791
|
+
replaceNodeJsEnvironmentVariablesV1(username, domain, hostingV1NodeJsSetBuildEnvVarsRequest, options) {
|
|
14792
|
+
return (0, exports.HostingNodeJSApiFp)(this.configuration).replaceNodeJsEnvironmentVariablesV1(username, domain, hostingV1NodeJsSetBuildEnvVarsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14793
|
+
}
|
|
14636
14794
|
/**
|
|
14637
14795
|
* Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
|
|
14638
14796
|
* @summary Restart Node.js application
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.44.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.44.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.44.0
|
|
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.
|
|
7
|
+
* API Version: 1.44.0
|
|
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/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 1.
|
|
4
|
+
* API Version: 1.44.0
|
|
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/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 1.
|
|
7
|
+
* API Version: 1.44.0
|
|
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.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/1.43.0" }, (_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.
|
|
4
|
+
* API Version: 1.44.0
|
|
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
|
|
@@ -7409,6 +7409,25 @@ export declare const HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum:
|
|
|
7409
7409
|
readonly Pnpm: "pnpm";
|
|
7410
7410
|
};
|
|
7411
7411
|
export type HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = typeof HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum[keyof typeof HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum];
|
|
7412
|
+
/**
|
|
7413
|
+
*
|
|
7414
|
+
* @export
|
|
7415
|
+
* @interface HostingV1NodeJsEnvVarResource
|
|
7416
|
+
*/
|
|
7417
|
+
export interface HostingV1NodeJsEnvVarResource {
|
|
7418
|
+
/**
|
|
7419
|
+
* Environment variable name
|
|
7420
|
+
* @type {string}
|
|
7421
|
+
* @memberof HostingV1NodeJsEnvVarResource
|
|
7422
|
+
*/
|
|
7423
|
+
'key': string;
|
|
7424
|
+
/**
|
|
7425
|
+
* Always the literal string ********. Real values cannot be read back through this API.
|
|
7426
|
+
* @type {string}
|
|
7427
|
+
* @memberof HostingV1NodeJsEnvVarResource
|
|
7428
|
+
*/
|
|
7429
|
+
'value': string;
|
|
7430
|
+
}
|
|
7412
7431
|
/**
|
|
7413
7432
|
*
|
|
7414
7433
|
* @export
|
|
@@ -7466,6 +7485,38 @@ export interface HostingV1NodeJsPatchVulnerabilitiesRequest {
|
|
|
7466
7485
|
*/
|
|
7467
7486
|
'vulnerability_ids': Array<string>;
|
|
7468
7487
|
}
|
|
7488
|
+
/**
|
|
7489
|
+
*
|
|
7490
|
+
* @export
|
|
7491
|
+
* @interface HostingV1NodeJsSetBuildEnvVarsRequest
|
|
7492
|
+
*/
|
|
7493
|
+
export interface HostingV1NodeJsSetBuildEnvVarsRequest {
|
|
7494
|
+
/**
|
|
7495
|
+
* Environment variables to set. This is the full desired set: any variable not in this list is deleted, and an empty array deletes every variable.
|
|
7496
|
+
* @type {Array<HostingV1NodeJsSetBuildEnvVarsRequestEnvVarsInner>}
|
|
7497
|
+
* @memberof HostingV1NodeJsSetBuildEnvVarsRequest
|
|
7498
|
+
*/
|
|
7499
|
+
'env_vars': Array<HostingV1NodeJsSetBuildEnvVarsRequestEnvVarsInner>;
|
|
7500
|
+
}
|
|
7501
|
+
/**
|
|
7502
|
+
*
|
|
7503
|
+
* @export
|
|
7504
|
+
* @interface HostingV1NodeJsSetBuildEnvVarsRequestEnvVarsInner
|
|
7505
|
+
*/
|
|
7506
|
+
export interface HostingV1NodeJsSetBuildEnvVarsRequestEnvVarsInner {
|
|
7507
|
+
/**
|
|
7508
|
+
* Environment variable name. Must start with an uppercase letter or underscore, followed by uppercase letters, digits or underscores.
|
|
7509
|
+
* @type {string}
|
|
7510
|
+
* @memberof HostingV1NodeJsSetBuildEnvVarsRequestEnvVarsInner
|
|
7511
|
+
*/
|
|
7512
|
+
'key': string;
|
|
7513
|
+
/**
|
|
7514
|
+
* Environment variable value.
|
|
7515
|
+
* @type {string}
|
|
7516
|
+
* @memberof HostingV1NodeJsSetBuildEnvVarsRequestEnvVarsInner
|
|
7517
|
+
*/
|
|
7518
|
+
'value': string;
|
|
7519
|
+
}
|
|
7469
7520
|
/**
|
|
7470
7521
|
*
|
|
7471
7522
|
* @export
|
|
@@ -22292,6 +22343,15 @@ export declare const HostingNodeJSApiAxiosParamCreator: (configuration?: Configu
|
|
|
22292
22343
|
* @throws {RequiredError}
|
|
22293
22344
|
*/
|
|
22294
22345
|
listNodeJSBuildsV1: (username: string, domain: string, page?: number, perPage?: number, states?: Array<ListNodeJSBuildsV1StatesEnum>, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22346
|
+
/**
|
|
22347
|
+
* Lists the Node.js environment variables currently set for the website. Values are always masked as `********` and cannot be read back through this API. Use this endpoint to see which keys are configured or to verify a change, not to read values. To change variables, use the `Replace Node.js environment variables` endpoint. It replaces the whole set, so never copy the masked values from this response into that request; send the full desired set with real values taken from the project `.env` file or the user prompt instead.
|
|
22348
|
+
* @summary List Node.js environment variables
|
|
22349
|
+
* @param {string} username
|
|
22350
|
+
* @param {string} domain Domain name
|
|
22351
|
+
* @param {*} [options] Override http request option.
|
|
22352
|
+
* @throws {RequiredError}
|
|
22353
|
+
*/
|
|
22354
|
+
listNodeJsEnvironmentVariablesV1: (username: string, domain: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22295
22355
|
/**
|
|
22296
22356
|
* Lists known npm package vulnerabilities detected on a Node.js website, enriched with advisory metadata (severity, CVSS score, CVE, advisory URL). Results are sorted from the most severe to the least severe, then by publish date (newest first). Use the `severities` query parameter to filter. Vulnerabilities with `is_patchable` set to `true` can be auto-fixed via the `Patch Node.js Vulnerabilities` endpoint, which opens a GitHub pull request with updated package versions. Auto-fix is only available for websites deployed from a connected GitHub repository. Vulnerabilities with `is_patching_in_progress` set to `true` are already included in an open patch pull request; while any patch pull request is open, new patch requests for this website are rejected until it is merged or closed. Data comes from periodic dependency scans, so it may lag behind the latest deployment. An empty list means the most recent scan found no vulnerabilities; it does not guarantee the current deployment is vulnerability-free. Available on Business and Cloud Hosting plans.
|
|
22297
22357
|
* @summary List Node.js vulnerabilities
|
|
@@ -22312,6 +22372,16 @@ export declare const HostingNodeJSApiAxiosParamCreator: (configuration?: Configu
|
|
|
22312
22372
|
* @throws {RequiredError}
|
|
22313
22373
|
*/
|
|
22314
22374
|
patchNodeJsVulnerabilitiesV1: (username: string, domain: string, hostingV1NodeJsPatchVulnerabilitiesRequest: HostingV1NodeJsPatchVulnerabilitiesRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22375
|
+
/**
|
|
22376
|
+
* Replaces the website\'s Node.js environment variables with the ones provided. This is a full replace: any variable not in the request is deleted, and sending an empty `env_vars` array deletes every variable. Saving writes the values and restarts the running Node.js process. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. It is not enough for frameworks that bake variables into the build. Next.js standalone is one of those: build-time values (including `NEXT_PUBLIC_*`) need a fresh build. After this call, use the `Start Node.js build` endpoint so those apps pick up the new values. The `List Node.js environment variables` endpoint returns masked values (`********`), so never copy values from it into this request. Always send the full desired set with real values taken from the project `.env` file or the user prompt.
|
|
22377
|
+
* @summary Replace Node.js environment variables
|
|
22378
|
+
* @param {string} username
|
|
22379
|
+
* @param {string} domain Domain name
|
|
22380
|
+
* @param {HostingV1NodeJsSetBuildEnvVarsRequest} hostingV1NodeJsSetBuildEnvVarsRequest
|
|
22381
|
+
* @param {*} [options] Override http request option.
|
|
22382
|
+
* @throws {RequiredError}
|
|
22383
|
+
*/
|
|
22384
|
+
replaceNodeJsEnvironmentVariablesV1: (username: string, domain: string, hostingV1NodeJsSetBuildEnvVarsRequest: HostingV1NodeJsSetBuildEnvVarsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22315
22385
|
/**
|
|
22316
22386
|
* Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
|
|
22317
22387
|
* @summary Restart Node.js application
|
|
@@ -22370,6 +22440,15 @@ export declare const HostingNodeJSApiFp: (configuration?: Configuration) => {
|
|
|
22370
22440
|
* @throws {RequiredError}
|
|
22371
22441
|
*/
|
|
22372
22442
|
listNodeJSBuildsV1(username: string, domain: string, page?: number, perPage?: number, states?: Array<ListNodeJSBuildsV1StatesEnum>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingListNodeJSBuildsV1200Response>>;
|
|
22443
|
+
/**
|
|
22444
|
+
* Lists the Node.js environment variables currently set for the website. Values are always masked as `********` and cannot be read back through this API. Use this endpoint to see which keys are configured or to verify a change, not to read values. To change variables, use the `Replace Node.js environment variables` endpoint. It replaces the whole set, so never copy the masked values from this response into that request; send the full desired set with real values taken from the project `.env` file or the user prompt instead.
|
|
22445
|
+
* @summary List Node.js environment variables
|
|
22446
|
+
* @param {string} username
|
|
22447
|
+
* @param {string} domain Domain name
|
|
22448
|
+
* @param {*} [options] Override http request option.
|
|
22449
|
+
* @throws {RequiredError}
|
|
22450
|
+
*/
|
|
22451
|
+
listNodeJsEnvironmentVariablesV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HostingV1NodeJsEnvVarResource>>>;
|
|
22373
22452
|
/**
|
|
22374
22453
|
* Lists known npm package vulnerabilities detected on a Node.js website, enriched with advisory metadata (severity, CVSS score, CVE, advisory URL). Results are sorted from the most severe to the least severe, then by publish date (newest first). Use the `severities` query parameter to filter. Vulnerabilities with `is_patchable` set to `true` can be auto-fixed via the `Patch Node.js Vulnerabilities` endpoint, which opens a GitHub pull request with updated package versions. Auto-fix is only available for websites deployed from a connected GitHub repository. Vulnerabilities with `is_patching_in_progress` set to `true` are already included in an open patch pull request; while any patch pull request is open, new patch requests for this website are rejected until it is merged or closed. Data comes from periodic dependency scans, so it may lag behind the latest deployment. An empty list means the most recent scan found no vulnerabilities; it does not guarantee the current deployment is vulnerability-free. Available on Business and Cloud Hosting plans.
|
|
22375
22454
|
* @summary List Node.js vulnerabilities
|
|
@@ -22390,6 +22469,16 @@ export declare const HostingNodeJSApiFp: (configuration?: Configuration) => {
|
|
|
22390
22469
|
* @throws {RequiredError}
|
|
22391
22470
|
*/
|
|
22392
22471
|
patchNodeJsVulnerabilitiesV1(username: string, domain: string, hostingV1NodeJsPatchVulnerabilitiesRequest: HostingV1NodeJsPatchVulnerabilitiesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1NodeJsPatchResultResource>>;
|
|
22472
|
+
/**
|
|
22473
|
+
* Replaces the website\'s Node.js environment variables with the ones provided. This is a full replace: any variable not in the request is deleted, and sending an empty `env_vars` array deletes every variable. Saving writes the values and restarts the running Node.js process. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. It is not enough for frameworks that bake variables into the build. Next.js standalone is one of those: build-time values (including `NEXT_PUBLIC_*`) need a fresh build. After this call, use the `Start Node.js build` endpoint so those apps pick up the new values. The `List Node.js environment variables` endpoint returns masked values (`********`), so never copy values from it into this request. Always send the full desired set with real values taken from the project `.env` file or the user prompt.
|
|
22474
|
+
* @summary Replace Node.js environment variables
|
|
22475
|
+
* @param {string} username
|
|
22476
|
+
* @param {string} domain Domain name
|
|
22477
|
+
* @param {HostingV1NodeJsSetBuildEnvVarsRequest} hostingV1NodeJsSetBuildEnvVarsRequest
|
|
22478
|
+
* @param {*} [options] Override http request option.
|
|
22479
|
+
* @throws {RequiredError}
|
|
22480
|
+
*/
|
|
22481
|
+
replaceNodeJsEnvironmentVariablesV1(username: string, domain: string, hostingV1NodeJsSetBuildEnvVarsRequest: HostingV1NodeJsSetBuildEnvVarsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
22393
22482
|
/**
|
|
22394
22483
|
* Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
|
|
22395
22484
|
* @summary Restart Node.js application
|
|
@@ -22448,6 +22537,15 @@ export declare const HostingNodeJSApiFactory: (configuration?: Configuration, ba
|
|
|
22448
22537
|
* @throws {RequiredError}
|
|
22449
22538
|
*/
|
|
22450
22539
|
listNodeJSBuildsV1(username: string, domain: string, page?: number, perPage?: number, states?: Array<ListNodeJSBuildsV1StatesEnum>, options?: RawAxiosRequestConfig): AxiosPromise<HostingListNodeJSBuildsV1200Response>;
|
|
22540
|
+
/**
|
|
22541
|
+
* Lists the Node.js environment variables currently set for the website. Values are always masked as `********` and cannot be read back through this API. Use this endpoint to see which keys are configured or to verify a change, not to read values. To change variables, use the `Replace Node.js environment variables` endpoint. It replaces the whole set, so never copy the masked values from this response into that request; send the full desired set with real values taken from the project `.env` file or the user prompt instead.
|
|
22542
|
+
* @summary List Node.js environment variables
|
|
22543
|
+
* @param {string} username
|
|
22544
|
+
* @param {string} domain Domain name
|
|
22545
|
+
* @param {*} [options] Override http request option.
|
|
22546
|
+
* @throws {RequiredError}
|
|
22547
|
+
*/
|
|
22548
|
+
listNodeJsEnvironmentVariablesV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1NodeJsEnvVarResource>>;
|
|
22451
22549
|
/**
|
|
22452
22550
|
* Lists known npm package vulnerabilities detected on a Node.js website, enriched with advisory metadata (severity, CVSS score, CVE, advisory URL). Results are sorted from the most severe to the least severe, then by publish date (newest first). Use the `severities` query parameter to filter. Vulnerabilities with `is_patchable` set to `true` can be auto-fixed via the `Patch Node.js Vulnerabilities` endpoint, which opens a GitHub pull request with updated package versions. Auto-fix is only available for websites deployed from a connected GitHub repository. Vulnerabilities with `is_patching_in_progress` set to `true` are already included in an open patch pull request; while any patch pull request is open, new patch requests for this website are rejected until it is merged or closed. Data comes from periodic dependency scans, so it may lag behind the latest deployment. An empty list means the most recent scan found no vulnerabilities; it does not guarantee the current deployment is vulnerability-free. Available on Business and Cloud Hosting plans.
|
|
22453
22551
|
* @summary List Node.js vulnerabilities
|
|
@@ -22468,6 +22566,16 @@ export declare const HostingNodeJSApiFactory: (configuration?: Configuration, ba
|
|
|
22468
22566
|
* @throws {RequiredError}
|
|
22469
22567
|
*/
|
|
22470
22568
|
patchNodeJsVulnerabilitiesV1(username: string, domain: string, hostingV1NodeJsPatchVulnerabilitiesRequest: HostingV1NodeJsPatchVulnerabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1NodeJsPatchResultResource>;
|
|
22569
|
+
/**
|
|
22570
|
+
* Replaces the website\'s Node.js environment variables with the ones provided. This is a full replace: any variable not in the request is deleted, and sending an empty `env_vars` array deletes every variable. Saving writes the values and restarts the running Node.js process. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. It is not enough for frameworks that bake variables into the build. Next.js standalone is one of those: build-time values (including `NEXT_PUBLIC_*`) need a fresh build. After this call, use the `Start Node.js build` endpoint so those apps pick up the new values. The `List Node.js environment variables` endpoint returns masked values (`********`), so never copy values from it into this request. Always send the full desired set with real values taken from the project `.env` file or the user prompt.
|
|
22571
|
+
* @summary Replace Node.js environment variables
|
|
22572
|
+
* @param {string} username
|
|
22573
|
+
* @param {string} domain Domain name
|
|
22574
|
+
* @param {HostingV1NodeJsSetBuildEnvVarsRequest} hostingV1NodeJsSetBuildEnvVarsRequest
|
|
22575
|
+
* @param {*} [options] Override http request option.
|
|
22576
|
+
* @throws {RequiredError}
|
|
22577
|
+
*/
|
|
22578
|
+
replaceNodeJsEnvironmentVariablesV1(username: string, domain: string, hostingV1NodeJsSetBuildEnvVarsRequest: HostingV1NodeJsSetBuildEnvVarsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
22471
22579
|
/**
|
|
22472
22580
|
* Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
|
|
22473
22581
|
* @summary Restart Node.js application
|
|
@@ -22531,6 +22639,16 @@ export declare class HostingNodeJSApi extends BaseAPI {
|
|
|
22531
22639
|
* @memberof HostingNodeJSApi
|
|
22532
22640
|
*/
|
|
22533
22641
|
listNodeJSBuildsV1(username: string, domain: string, page?: number, perPage?: number, states?: Array<ListNodeJSBuildsV1StatesEnum>, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingListNodeJSBuildsV1200Response, any, {}, any>>;
|
|
22642
|
+
/**
|
|
22643
|
+
* Lists the Node.js environment variables currently set for the website. Values are always masked as `********` and cannot be read back through this API. Use this endpoint to see which keys are configured or to verify a change, not to read values. To change variables, use the `Replace Node.js environment variables` endpoint. It replaces the whole set, so never copy the masked values from this response into that request; send the full desired set with real values taken from the project `.env` file or the user prompt instead.
|
|
22644
|
+
* @summary List Node.js environment variables
|
|
22645
|
+
* @param {string} username
|
|
22646
|
+
* @param {string} domain Domain name
|
|
22647
|
+
* @param {*} [options] Override http request option.
|
|
22648
|
+
* @throws {RequiredError}
|
|
22649
|
+
* @memberof HostingNodeJSApi
|
|
22650
|
+
*/
|
|
22651
|
+
listNodeJsEnvironmentVariablesV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1NodeJsEnvVarResource[], any, {}, any>>;
|
|
22534
22652
|
/**
|
|
22535
22653
|
* Lists known npm package vulnerabilities detected on a Node.js website, enriched with advisory metadata (severity, CVSS score, CVE, advisory URL). Results are sorted from the most severe to the least severe, then by publish date (newest first). Use the `severities` query parameter to filter. Vulnerabilities with `is_patchable` set to `true` can be auto-fixed via the `Patch Node.js Vulnerabilities` endpoint, which opens a GitHub pull request with updated package versions. Auto-fix is only available for websites deployed from a connected GitHub repository. Vulnerabilities with `is_patching_in_progress` set to `true` are already included in an open patch pull request; while any patch pull request is open, new patch requests for this website are rejected until it is merged or closed. Data comes from periodic dependency scans, so it may lag behind the latest deployment. An empty list means the most recent scan found no vulnerabilities; it does not guarantee the current deployment is vulnerability-free. Available on Business and Cloud Hosting plans.
|
|
22536
22654
|
* @summary List Node.js vulnerabilities
|
|
@@ -22553,6 +22671,17 @@ export declare class HostingNodeJSApi extends BaseAPI {
|
|
|
22553
22671
|
* @memberof HostingNodeJSApi
|
|
22554
22672
|
*/
|
|
22555
22673
|
patchNodeJsVulnerabilitiesV1(username: string, domain: string, hostingV1NodeJsPatchVulnerabilitiesRequest: HostingV1NodeJsPatchVulnerabilitiesRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HostingV1NodeJsPatchResultResource, any, {}, any>>;
|
|
22674
|
+
/**
|
|
22675
|
+
* Replaces the website\'s Node.js environment variables with the ones provided. This is a full replace: any variable not in the request is deleted, and sending an empty `env_vars` array deletes every variable. Saving writes the values and restarts the running Node.js process. A restart is enough for apps that read environment variables at process start, such as Express or NestJS. It is not enough for frameworks that bake variables into the build. Next.js standalone is one of those: build-time values (including `NEXT_PUBLIC_*`) need a fresh build. After this call, use the `Start Node.js build` endpoint so those apps pick up the new values. The `List Node.js environment variables` endpoint returns masked values (`********`), so never copy values from it into this request. Always send the full desired set with real values taken from the project `.env` file or the user prompt.
|
|
22676
|
+
* @summary Replace Node.js environment variables
|
|
22677
|
+
* @param {string} username
|
|
22678
|
+
* @param {string} domain Domain name
|
|
22679
|
+
* @param {HostingV1NodeJsSetBuildEnvVarsRequest} hostingV1NodeJsSetBuildEnvVarsRequest
|
|
22680
|
+
* @param {*} [options] Override http request option.
|
|
22681
|
+
* @throws {RequiredError}
|
|
22682
|
+
* @memberof HostingNodeJSApi
|
|
22683
|
+
*/
|
|
22684
|
+
replaceNodeJsEnvironmentVariablesV1(username: string, domain: string, hostingV1NodeJsSetBuildEnvVarsRequest: HostingV1NodeJsSetBuildEnvVarsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
22556
22685
|
/**
|
|
22557
22686
|
* Restarts the Node.js server process for the website. Does not rebuild or redeploy the application. Use it to apply environment or configuration changes, or to recover a hung application. Only applicable to server-side applications (Express, Next.js, NestJS, etc.). Static front-end apps (React, Vue, Vite) have no persistent server process, so restarting them has no effect. Returns success even when the website has no server process to restart.
|
|
22558
22687
|
* @summary Restart Node.js application
|