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/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## hostinger-api-sdk@1.
|
|
1
|
+
## hostinger-api-sdk@1.43.0
|
|
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.
|
|
8
|
+
npm install hostinger-api-sdk@1.43.0 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.44.0
|
|
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
|
|
@@ -7563,6 +7563,25 @@ export const HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = {
|
|
|
7563
7563
|
|
|
7564
7564
|
export type HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = typeof HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum[keyof typeof HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum];
|
|
7565
7565
|
|
|
7566
|
+
/**
|
|
7567
|
+
*
|
|
7568
|
+
* @export
|
|
7569
|
+
* @interface HostingV1NodeJsEnvVarResource
|
|
7570
|
+
*/
|
|
7571
|
+
export interface HostingV1NodeJsEnvVarResource {
|
|
7572
|
+
/**
|
|
7573
|
+
* Environment variable name
|
|
7574
|
+
* @type {string}
|
|
7575
|
+
* @memberof HostingV1NodeJsEnvVarResource
|
|
7576
|
+
*/
|
|
7577
|
+
'key': string;
|
|
7578
|
+
/**
|
|
7579
|
+
* Always the literal string ********. Real values cannot be read back through this API.
|
|
7580
|
+
* @type {string}
|
|
7581
|
+
* @memberof HostingV1NodeJsEnvVarResource
|
|
7582
|
+
*/
|
|
7583
|
+
'value': string;
|
|
7584
|
+
}
|
|
7566
7585
|
/**
|
|
7567
7586
|
*
|
|
7568
7587
|
* @export
|
|
@@ -7620,6 +7639,38 @@ export interface HostingV1NodeJsPatchVulnerabilitiesRequest {
|
|
|
7620
7639
|
*/
|
|
7621
7640
|
'vulnerability_ids': Array<string>;
|
|
7622
7641
|
}
|
|
7642
|
+
/**
|
|
7643
|
+
*
|
|
7644
|
+
* @export
|
|
7645
|
+
* @interface HostingV1NodeJsSetBuildEnvVarsRequest
|
|
7646
|
+
*/
|
|
7647
|
+
export interface HostingV1NodeJsSetBuildEnvVarsRequest {
|
|
7648
|
+
/**
|
|
7649
|
+
* 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.
|
|
7650
|
+
* @type {Array<HostingV1NodeJsSetBuildEnvVarsRequestEnvVarsInner>}
|
|
7651
|
+
* @memberof HostingV1NodeJsSetBuildEnvVarsRequest
|
|
7652
|
+
*/
|
|
7653
|
+
'env_vars': Array<HostingV1NodeJsSetBuildEnvVarsRequestEnvVarsInner>;
|
|
7654
|
+
}
|
|
7655
|
+
/**
|
|
7656
|
+
*
|
|
7657
|
+
* @export
|
|
7658
|
+
* @interface HostingV1NodeJsSetBuildEnvVarsRequestEnvVarsInner
|
|
7659
|
+
*/
|
|
7660
|
+
export interface HostingV1NodeJsSetBuildEnvVarsRequestEnvVarsInner {
|
|
7661
|
+
/**
|
|
7662
|
+
* Environment variable name. Must start with an uppercase letter or underscore, followed by uppercase letters, digits or underscores.
|
|
7663
|
+
* @type {string}
|
|
7664
|
+
* @memberof HostingV1NodeJsSetBuildEnvVarsRequestEnvVarsInner
|
|
7665
|
+
*/
|
|
7666
|
+
'key': string;
|
|
7667
|
+
/**
|
|
7668
|
+
* Environment variable value.
|
|
7669
|
+
* @type {string}
|
|
7670
|
+
* @memberof HostingV1NodeJsSetBuildEnvVarsRequestEnvVarsInner
|
|
7671
|
+
*/
|
|
7672
|
+
'value': string;
|
|
7673
|
+
}
|
|
7623
7674
|
/**
|
|
7624
7675
|
*
|
|
7625
7676
|
* @export
|
|
@@ -29785,6 +29836,48 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration?: Confi
|
|
|
29785
29836
|
|
|
29786
29837
|
|
|
29787
29838
|
|
|
29839
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29840
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29841
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
29842
|
+
|
|
29843
|
+
return {
|
|
29844
|
+
url: toPathString(localVarUrlObj),
|
|
29845
|
+
options: localVarRequestOptions,
|
|
29846
|
+
};
|
|
29847
|
+
},
|
|
29848
|
+
/**
|
|
29849
|
+
* 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.
|
|
29850
|
+
* @summary List Node.js environment variables
|
|
29851
|
+
* @param {string} username
|
|
29852
|
+
* @param {string} domain Domain name
|
|
29853
|
+
* @param {*} [options] Override http request option.
|
|
29854
|
+
* @throws {RequiredError}
|
|
29855
|
+
*/
|
|
29856
|
+
listNodeJsEnvironmentVariablesV1: async (username: string, domain: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29857
|
+
// verify required parameter 'username' is not null or undefined
|
|
29858
|
+
assertParamExists('listNodeJsEnvironmentVariablesV1', 'username', username)
|
|
29859
|
+
// verify required parameter 'domain' is not null or undefined
|
|
29860
|
+
assertParamExists('listNodeJsEnvironmentVariablesV1', 'domain', domain)
|
|
29861
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env`
|
|
29862
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
29863
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
29864
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
29865
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
29866
|
+
let baseOptions;
|
|
29867
|
+
if (configuration) {
|
|
29868
|
+
baseOptions = configuration.baseOptions;
|
|
29869
|
+
}
|
|
29870
|
+
|
|
29871
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
29872
|
+
const localVarHeaderParameter = {} as any;
|
|
29873
|
+
const localVarQueryParameter = {} as any;
|
|
29874
|
+
|
|
29875
|
+
// authentication apiToken required
|
|
29876
|
+
// http bearer authentication required
|
|
29877
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
29878
|
+
|
|
29879
|
+
|
|
29880
|
+
|
|
29788
29881
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29789
29882
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29790
29883
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -29889,6 +29982,54 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration?: Confi
|
|
|
29889
29982
|
options: localVarRequestOptions,
|
|
29890
29983
|
};
|
|
29891
29984
|
},
|
|
29985
|
+
/**
|
|
29986
|
+
* 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.
|
|
29987
|
+
* @summary Replace Node.js environment variables
|
|
29988
|
+
* @param {string} username
|
|
29989
|
+
* @param {string} domain Domain name
|
|
29990
|
+
* @param {HostingV1NodeJsSetBuildEnvVarsRequest} hostingV1NodeJsSetBuildEnvVarsRequest
|
|
29991
|
+
* @param {*} [options] Override http request option.
|
|
29992
|
+
* @throws {RequiredError}
|
|
29993
|
+
*/
|
|
29994
|
+
replaceNodeJsEnvironmentVariablesV1: async (username: string, domain: string, hostingV1NodeJsSetBuildEnvVarsRequest: HostingV1NodeJsSetBuildEnvVarsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
29995
|
+
// verify required parameter 'username' is not null or undefined
|
|
29996
|
+
assertParamExists('replaceNodeJsEnvironmentVariablesV1', 'username', username)
|
|
29997
|
+
// verify required parameter 'domain' is not null or undefined
|
|
29998
|
+
assertParamExists('replaceNodeJsEnvironmentVariablesV1', 'domain', domain)
|
|
29999
|
+
// verify required parameter 'hostingV1NodeJsSetBuildEnvVarsRequest' is not null or undefined
|
|
30000
|
+
assertParamExists('replaceNodeJsEnvironmentVariablesV1', 'hostingV1NodeJsSetBuildEnvVarsRequest', hostingV1NodeJsSetBuildEnvVarsRequest)
|
|
30001
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/env`
|
|
30002
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
30003
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
30004
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30005
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30006
|
+
let baseOptions;
|
|
30007
|
+
if (configuration) {
|
|
30008
|
+
baseOptions = configuration.baseOptions;
|
|
30009
|
+
}
|
|
30010
|
+
|
|
30011
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
30012
|
+
const localVarHeaderParameter = {} as any;
|
|
30013
|
+
const localVarQueryParameter = {} as any;
|
|
30014
|
+
|
|
30015
|
+
// authentication apiToken required
|
|
30016
|
+
// http bearer authentication required
|
|
30017
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
30018
|
+
|
|
30019
|
+
|
|
30020
|
+
|
|
30021
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30022
|
+
|
|
30023
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30024
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30025
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30026
|
+
localVarRequestOptions.data = serializeDataIfNeeded(hostingV1NodeJsSetBuildEnvVarsRequest, localVarRequestOptions, configuration)
|
|
30027
|
+
|
|
30028
|
+
return {
|
|
30029
|
+
url: toPathString(localVarUrlObj),
|
|
30030
|
+
options: localVarRequestOptions,
|
|
30031
|
+
};
|
|
30032
|
+
},
|
|
29892
30033
|
/**
|
|
29893
30034
|
* 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.
|
|
29894
30035
|
* @summary Restart Node.js application
|
|
@@ -30034,6 +30175,19 @@ export const HostingNodeJSApiFp = function(configuration?: Configuration) {
|
|
|
30034
30175
|
const localVarOperationServerBasePath = operationServerMap['HostingNodeJSApi.listNodeJSBuildsV1']?.[0]?.url;
|
|
30035
30176
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30036
30177
|
},
|
|
30178
|
+
/**
|
|
30179
|
+
* 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.
|
|
30180
|
+
* @summary List Node.js environment variables
|
|
30181
|
+
* @param {string} username
|
|
30182
|
+
* @param {string} domain Domain name
|
|
30183
|
+
* @param {*} [options] Override http request option.
|
|
30184
|
+
* @throws {RequiredError}
|
|
30185
|
+
*/
|
|
30186
|
+
async listNodeJsEnvironmentVariablesV1(username: string, domain: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<HostingV1NodeJsEnvVarResource>>> {
|
|
30187
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listNodeJsEnvironmentVariablesV1(username, domain, options);
|
|
30188
|
+
const localVarOperationServerBasePath = operationServerMap['HostingNodeJSApi.listNodeJsEnvironmentVariablesV1']?.[0]?.url;
|
|
30189
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30190
|
+
},
|
|
30037
30191
|
/**
|
|
30038
30192
|
* 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.
|
|
30039
30193
|
* @summary List Node.js vulnerabilities
|
|
@@ -30062,6 +30216,20 @@ export const HostingNodeJSApiFp = function(configuration?: Configuration) {
|
|
|
30062
30216
|
const localVarOperationServerBasePath = operationServerMap['HostingNodeJSApi.patchNodeJsVulnerabilitiesV1']?.[0]?.url;
|
|
30063
30217
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30064
30218
|
},
|
|
30219
|
+
/**
|
|
30220
|
+
* 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.
|
|
30221
|
+
* @summary Replace Node.js environment variables
|
|
30222
|
+
* @param {string} username
|
|
30223
|
+
* @param {string} domain Domain name
|
|
30224
|
+
* @param {HostingV1NodeJsSetBuildEnvVarsRequest} hostingV1NodeJsSetBuildEnvVarsRequest
|
|
30225
|
+
* @param {*} [options] Override http request option.
|
|
30226
|
+
* @throws {RequiredError}
|
|
30227
|
+
*/
|
|
30228
|
+
async replaceNodeJsEnvironmentVariablesV1(username: string, domain: string, hostingV1NodeJsSetBuildEnvVarsRequest: HostingV1NodeJsSetBuildEnvVarsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
30229
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.replaceNodeJsEnvironmentVariablesV1(username, domain, hostingV1NodeJsSetBuildEnvVarsRequest, options);
|
|
30230
|
+
const localVarOperationServerBasePath = operationServerMap['HostingNodeJSApi.replaceNodeJsEnvironmentVariablesV1']?.[0]?.url;
|
|
30231
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30232
|
+
},
|
|
30065
30233
|
/**
|
|
30066
30234
|
* 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.
|
|
30067
30235
|
* @summary Restart Node.js application
|
|
@@ -30138,6 +30306,17 @@ export const HostingNodeJSApiFactory = function (configuration?: Configuration,
|
|
|
30138
30306
|
listNodeJSBuildsV1(username: string, domain: string, page?: number, perPage?: number, states?: Array<ListNodeJSBuildsV1StatesEnum>, options?: RawAxiosRequestConfig): AxiosPromise<HostingListNodeJSBuildsV1200Response> {
|
|
30139
30307
|
return localVarFp.listNodeJSBuildsV1(username, domain, page, perPage, states, options).then((request) => request(axios, basePath));
|
|
30140
30308
|
},
|
|
30309
|
+
/**
|
|
30310
|
+
* 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.
|
|
30311
|
+
* @summary List Node.js environment variables
|
|
30312
|
+
* @param {string} username
|
|
30313
|
+
* @param {string} domain Domain name
|
|
30314
|
+
* @param {*} [options] Override http request option.
|
|
30315
|
+
* @throws {RequiredError}
|
|
30316
|
+
*/
|
|
30317
|
+
listNodeJsEnvironmentVariablesV1(username: string, domain: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<HostingV1NodeJsEnvVarResource>> {
|
|
30318
|
+
return localVarFp.listNodeJsEnvironmentVariablesV1(username, domain, options).then((request) => request(axios, basePath));
|
|
30319
|
+
},
|
|
30141
30320
|
/**
|
|
30142
30321
|
* 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.
|
|
30143
30322
|
* @summary List Node.js vulnerabilities
|
|
@@ -30162,6 +30341,18 @@ export const HostingNodeJSApiFactory = function (configuration?: Configuration,
|
|
|
30162
30341
|
patchNodeJsVulnerabilitiesV1(username: string, domain: string, hostingV1NodeJsPatchVulnerabilitiesRequest: HostingV1NodeJsPatchVulnerabilitiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1NodeJsPatchResultResource> {
|
|
30163
30342
|
return localVarFp.patchNodeJsVulnerabilitiesV1(username, domain, hostingV1NodeJsPatchVulnerabilitiesRequest, options).then((request) => request(axios, basePath));
|
|
30164
30343
|
},
|
|
30344
|
+
/**
|
|
30345
|
+
* 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.
|
|
30346
|
+
* @summary Replace Node.js environment variables
|
|
30347
|
+
* @param {string} username
|
|
30348
|
+
* @param {string} domain Domain name
|
|
30349
|
+
* @param {HostingV1NodeJsSetBuildEnvVarsRequest} hostingV1NodeJsSetBuildEnvVarsRequest
|
|
30350
|
+
* @param {*} [options] Override http request option.
|
|
30351
|
+
* @throws {RequiredError}
|
|
30352
|
+
*/
|
|
30353
|
+
replaceNodeJsEnvironmentVariablesV1(username: string, domain: string, hostingV1NodeJsSetBuildEnvVarsRequest: HostingV1NodeJsSetBuildEnvVarsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
30354
|
+
return localVarFp.replaceNodeJsEnvironmentVariablesV1(username, domain, hostingV1NodeJsSetBuildEnvVarsRequest, options).then((request) => request(axios, basePath));
|
|
30355
|
+
},
|
|
30165
30356
|
/**
|
|
30166
30357
|
* 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.
|
|
30167
30358
|
* @summary Restart Node.js application
|
|
@@ -30240,6 +30431,19 @@ export class HostingNodeJSApi extends BaseAPI {
|
|
|
30240
30431
|
return HostingNodeJSApiFp(this.configuration).listNodeJSBuildsV1(username, domain, page, perPage, states, options).then((request) => request(this.axios, this.basePath));
|
|
30241
30432
|
}
|
|
30242
30433
|
|
|
30434
|
+
/**
|
|
30435
|
+
* 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.
|
|
30436
|
+
* @summary List Node.js environment variables
|
|
30437
|
+
* @param {string} username
|
|
30438
|
+
* @param {string} domain Domain name
|
|
30439
|
+
* @param {*} [options] Override http request option.
|
|
30440
|
+
* @throws {RequiredError}
|
|
30441
|
+
* @memberof HostingNodeJSApi
|
|
30442
|
+
*/
|
|
30443
|
+
public listNodeJsEnvironmentVariablesV1(username: string, domain: string, options?: RawAxiosRequestConfig) {
|
|
30444
|
+
return HostingNodeJSApiFp(this.configuration).listNodeJsEnvironmentVariablesV1(username, domain, options).then((request) => request(this.axios, this.basePath));
|
|
30445
|
+
}
|
|
30446
|
+
|
|
30243
30447
|
/**
|
|
30244
30448
|
* 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.
|
|
30245
30449
|
* @summary List Node.js vulnerabilities
|
|
@@ -30268,6 +30472,20 @@ export class HostingNodeJSApi extends BaseAPI {
|
|
|
30268
30472
|
return HostingNodeJSApiFp(this.configuration).patchNodeJsVulnerabilitiesV1(username, domain, hostingV1NodeJsPatchVulnerabilitiesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30269
30473
|
}
|
|
30270
30474
|
|
|
30475
|
+
/**
|
|
30476
|
+
* 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.
|
|
30477
|
+
* @summary Replace Node.js environment variables
|
|
30478
|
+
* @param {string} username
|
|
30479
|
+
* @param {string} domain Domain name
|
|
30480
|
+
* @param {HostingV1NodeJsSetBuildEnvVarsRequest} hostingV1NodeJsSetBuildEnvVarsRequest
|
|
30481
|
+
* @param {*} [options] Override http request option.
|
|
30482
|
+
* @throws {RequiredError}
|
|
30483
|
+
* @memberof HostingNodeJSApi
|
|
30484
|
+
*/
|
|
30485
|
+
public replaceNodeJsEnvironmentVariablesV1(username: string, domain: string, hostingV1NodeJsSetBuildEnvVarsRequest: HostingV1NodeJsSetBuildEnvVarsRequest, options?: RawAxiosRequestConfig) {
|
|
30486
|
+
return HostingNodeJSApiFp(this.configuration).replaceNodeJsEnvironmentVariablesV1(username, domain, hostingV1NodeJsSetBuildEnvVarsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30487
|
+
}
|
|
30488
|
+
|
|
30271
30489
|
/**
|
|
30272
30490
|
* 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.
|
|
30273
30491
|
* @summary Restart Node.js application
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 1.
|
|
6
|
+
* API Version: 1.44.0
|
|
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.
|
|
6
|
+
* API Version: 1.44.0
|
|
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.
|
|
6
|
+
* API Version: 1.44.0
|
|
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.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/1.43.0",
|
|
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.
|
|
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
|