@trustify-da/trustify-da-javascript-client 0.3.0-ea.7ed8d8c → 0.3.0-ea.7ee4047
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 +388 -20
- package/dist/package.json +39 -26
- package/dist/src/analysis.d.ts +58 -20
- package/dist/src/analysis.js +134 -78
- package/dist/src/batch_opts.d.ts +24 -0
- package/dist/src/batch_opts.js +35 -0
- package/dist/src/cli.js +427 -12
- package/dist/src/config.d.ts +120 -0
- package/dist/src/config.js +260 -0
- package/dist/src/cyclone_dx_sbom.d.ts +30 -2
- package/dist/src/cyclone_dx_sbom.js +95 -9
- package/dist/src/index.d.ts +154 -16
- package/dist/src/index.js +372 -36
- package/dist/src/license/index.d.ts +28 -0
- package/dist/src/license/index.js +106 -0
- package/dist/src/license/license_utils.d.ts +40 -0
- package/dist/src/license/license_utils.js +137 -0
- package/dist/src/license/licenses_api.d.ts +34 -0
- package/dist/src/license/licenses_api.js +98 -0
- package/dist/src/license/project_license.d.ts +20 -0
- package/dist/src/license/project_license.js +62 -0
- package/dist/src/oci_image/images.d.ts +1 -1
- package/dist/src/oci_image/images.js +15 -1
- package/dist/src/oci_image/utils.d.ts +5 -5
- package/dist/src/oci_image/utils.js +11 -2
- package/dist/src/package_version.d.ts +8 -0
- package/dist/src/package_version.js +31 -0
- package/dist/src/provider.d.ts +16 -3
- package/dist/src/provider.js +33 -5
- package/dist/src/providers/base_java.d.ts +67 -12
- package/dist/src/providers/base_java.js +82 -61
- package/dist/src/providers/base_javascript.d.ts +99 -12
- package/dist/src/providers/base_javascript.js +244 -28
- package/dist/src/providers/base_pyproject.d.ts +158 -0
- package/dist/src/providers/base_pyproject.js +322 -0
- package/dist/src/providers/containerfile_parser.d.ts +5 -0
- package/dist/src/providers/containerfile_parser.js +20 -0
- package/dist/src/providers/golang_gomodules.d.ts +30 -13
- package/dist/src/providers/golang_gomodules.js +219 -122
- package/dist/src/providers/gomod_parser.d.ts +4 -0
- package/dist/src/providers/gomod_parser.js +16 -0
- package/dist/src/providers/java_gradle.d.ts +73 -0
- package/dist/src/providers/java_gradle.js +331 -23
- package/dist/src/providers/java_gradle_groovy.d.ts +1 -1
- package/dist/src/providers/java_gradle_kotlin.d.ts +1 -1
- package/dist/src/providers/java_maven.d.ts +44 -9
- package/dist/src/providers/java_maven.js +299 -13
- package/dist/src/providers/javascript_bun.d.ts +22 -0
- package/dist/src/providers/javascript_bun.js +141 -0
- package/dist/src/providers/javascript_npm.d.ts +19 -0
- package/dist/src/providers/javascript_npm.js +61 -1
- package/dist/src/providers/javascript_pnpm.d.ts +14 -1
- package/dist/src/providers/javascript_pnpm.js +55 -5
- package/dist/src/providers/javascript_yarn.d.ts +12 -0
- package/dist/src/providers/javascript_yarn.js +75 -2
- package/dist/src/providers/manifest.d.ts +2 -0
- package/dist/src/providers/manifest.js +28 -7
- package/dist/src/providers/marker_evaluator.d.ts +14 -0
- package/dist/src/providers/marker_evaluator.js +191 -0
- package/dist/src/providers/oci_dockerfile.d.ts +51 -0
- package/dist/src/providers/oci_dockerfile.js +177 -0
- package/dist/src/providers/processors/yarn_berry_processor.d.ts +6 -2
- package/dist/src/providers/processors/yarn_berry_processor.js +91 -7
- package/dist/src/providers/processors/yarn_classic_processor.d.ts +6 -2
- package/dist/src/providers/processors/yarn_classic_processor.js +8 -6
- package/dist/src/providers/python_controller.d.ts +5 -1
- package/dist/src/providers/python_controller.js +69 -8
- package/dist/src/providers/python_pip.d.ts +12 -0
- package/dist/src/providers/python_pip.js +18 -8
- package/dist/src/providers/python_pip_pyproject.d.ts +61 -0
- package/dist/src/providers/python_pip_pyproject.js +146 -0
- package/dist/src/providers/python_poetry.d.ts +98 -0
- package/dist/src/providers/python_poetry.js +286 -0
- package/dist/src/providers/python_uv.d.ts +46 -0
- package/dist/src/providers/python_uv.js +275 -0
- package/dist/src/providers/requirements_parser.js +6 -9
- package/dist/src/providers/rust_cargo.d.ts +56 -0
- package/dist/src/providers/rust_cargo.js +682 -0
- package/dist/src/providers/tree-sitter-containerfile.wasm +0 -0
- package/dist/src/providers/tree-sitter-gomod.wasm +0 -0
- package/dist/src/providers/tree-sitter-requirements.wasm +0 -0
- package/dist/src/remediate.d.ts +107 -0
- package/dist/src/remediate.js +244 -0
- package/dist/src/remediation.d.ts +81 -0
- package/dist/src/remediation.js +475 -0
- package/dist/src/remediation_report.d.ts +23 -0
- package/dist/src/remediation_report.js +180 -0
- package/dist/src/sbom.d.ts +28 -2
- package/dist/src/sbom.js +26 -4
- package/dist/src/tools.d.ts +53 -11
- package/dist/src/tools.js +147 -13
- package/dist/src/updaters/maven_updater.d.ts +58 -0
- package/dist/src/updaters/maven_updater.js +345 -0
- package/dist/src/updaters/toml_updater.d.ts +62 -0
- package/dist/src/updaters/toml_updater.js +276 -0
- package/dist/src/workspace.d.ts +71 -0
- package/dist/src/workspace.js +257 -0
- package/package.json +40 -27
package/dist/src/index.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* 1. Environment Variable
|
|
5
|
-
* 2. (key,value) from opts object
|
|
2
|
+
* Selects the Trustify DA backend URL from opts.TRUSTIFY_DA_BACKEND_URL, then environment
|
|
3
|
+
* variable TRUSTIFY_DA_BACKEND_URL. Options take precedence over environment variables.
|
|
6
4
|
* If TRUSTIFY_DA_BACKEND_URL is not set, the function will throw an error.
|
|
7
5
|
* @param {{TRUSTIFY_DA_DEBUG?: string | undefined; TRUSTIFY_DA_BACKEND_URL?: string | undefined}} [opts={}]
|
|
8
6
|
* @return {string} - The selected Trustify DA backend URL
|
|
@@ -13,16 +11,28 @@ export function selectTrustifyDABackend(opts?: {
|
|
|
13
11
|
TRUSTIFY_DA_DEBUG?: string | undefined;
|
|
14
12
|
TRUSTIFY_DA_BACKEND_URL?: string | undefined;
|
|
15
13
|
}): string;
|
|
14
|
+
/**
|
|
15
|
+
* Generate a CycloneDX SBOM from a manifest file. No backend HTTP request is made.
|
|
16
|
+
*
|
|
17
|
+
* @param {string} manifestPath - path to the manifest file (e.g. pom.xml, package.json)
|
|
18
|
+
* @param {Options} [opts={}] - optional options (e.g. workspace dir, tool paths)
|
|
19
|
+
* @returns {Promise<object>} parsed CycloneDX SBOM JSON object
|
|
20
|
+
* @throws {Error} if the manifest is unsupported or SBOM generation fails
|
|
21
|
+
*/
|
|
22
|
+
export function generateSbom(manifestPath: string, opts?: Options): Promise<object>;
|
|
16
23
|
export { parseImageRef } from "./oci_image/utils.js";
|
|
17
24
|
export { ImageRef } from "./oci_image/images.js";
|
|
18
25
|
declare namespace _default {
|
|
19
26
|
export { componentAnalysis };
|
|
20
27
|
export { stackAnalysis };
|
|
28
|
+
export { stackAnalysisBatch };
|
|
21
29
|
export { imageAnalysis };
|
|
22
30
|
export { validateToken };
|
|
31
|
+
export { generateSbom };
|
|
23
32
|
}
|
|
24
33
|
export default _default;
|
|
25
34
|
export type Options = {
|
|
35
|
+
TRUSTIFY_DA_CARGO_PATH?: string | undefined;
|
|
26
36
|
TRUSTIFY_DA_DOCKER_PATH?: string | undefined;
|
|
27
37
|
TRUSTIFY_DA_GO_MVS_LOGIC_ENABLED?: string | undefined;
|
|
28
38
|
TRUSTIFY_DA_GO_PATH?: string | undefined;
|
|
@@ -41,26 +51,62 @@ export type Options = {
|
|
|
41
51
|
TRUSTIFY_DA_PYTHON_PATH?: string | undefined;
|
|
42
52
|
TRUSTIFY_DA_PYTHON_VIRTUAL_ENV?: string | undefined;
|
|
43
53
|
TRUSTIFY_DA_PYTHON3_PATH?: string | undefined;
|
|
44
|
-
|
|
54
|
+
TRUSTIFY_DA_PROVIDERS?: string | undefined;
|
|
55
|
+
TRUSTIFY_DA_RECOMMEND?: string | undefined;
|
|
56
|
+
TRUSTIFY_DA_SOURCES?: string | undefined;
|
|
45
57
|
TRUSTIFY_DA_SKOPEO_CONFIG_PATH?: string | undefined;
|
|
46
58
|
TRUSTIFY_DA_SKOPEO_PATH?: string | undefined;
|
|
47
59
|
TRUSTIFY_DA_SYFT_CONFIG_PATH?: string | undefined;
|
|
48
60
|
TRUSTIFY_DA_SYFT_PATH?: string | undefined;
|
|
49
61
|
TRUSTIFY_DA_YARN_PATH?: string | undefined;
|
|
62
|
+
TRUSTIFY_DA_WORKSPACE_DIR?: string | undefined;
|
|
63
|
+
TRUSTIFY_DA_LICENSE_CHECK?: string | undefined;
|
|
64
|
+
licenseCheck?: boolean | undefined;
|
|
50
65
|
MATCH_MANIFEST_VERSIONS?: string | undefined;
|
|
51
66
|
TRUSTIFY_DA_SOURCE?: string | undefined;
|
|
52
67
|
TRUSTIFY_DA_TOKEN?: string | undefined;
|
|
53
68
|
TRUSTIFY_DA_TELEMETRY_ID?: string | undefined;
|
|
54
|
-
|
|
69
|
+
batchConcurrency?: number | undefined;
|
|
70
|
+
TRUSTIFY_DA_BATCH_CONCURRENCY?: string | undefined;
|
|
71
|
+
workspaceDiscoveryIgnore?: string[] | undefined;
|
|
72
|
+
TRUSTIFY_DA_WORKSPACE_DISCOVERY_IGNORE?: string | undefined;
|
|
73
|
+
continueOnError?: boolean | undefined;
|
|
74
|
+
TRUSTIFY_DA_CONTINUE_ON_ERROR?: string | undefined;
|
|
75
|
+
batchMetadata?: boolean | undefined;
|
|
76
|
+
TRUSTIFY_DA_BATCH_METADATA?: string | undefined;
|
|
77
|
+
TRUSTIFY_DA_UV_PATH?: string | undefined;
|
|
78
|
+
TRUSTIFY_DA_POETRY_PATH?: string | undefined;
|
|
79
|
+
[key: string]: string | number | boolean | string[] | undefined;
|
|
80
|
+
};
|
|
81
|
+
export type BatchAnalysisMetadata = {
|
|
82
|
+
workspaceRoot: string;
|
|
83
|
+
ecosystem: "javascript" | "cargo" | "pyproject" | "unknown";
|
|
84
|
+
total: number;
|
|
85
|
+
successful: number;
|
|
86
|
+
failed: number;
|
|
87
|
+
errors: Array<{
|
|
88
|
+
manifestPath: string;
|
|
89
|
+
phase: "validation" | "sbom";
|
|
90
|
+
reason: string;
|
|
91
|
+
}>;
|
|
92
|
+
};
|
|
93
|
+
export type SbomResult = {
|
|
94
|
+
ok: true;
|
|
95
|
+
purl: string;
|
|
96
|
+
sbom: object;
|
|
97
|
+
} | {
|
|
98
|
+
ok: false;
|
|
99
|
+
manifestPath: string;
|
|
100
|
+
reason: string;
|
|
55
101
|
};
|
|
56
102
|
/**
|
|
57
103
|
* Get component analysis report for a manifest content.
|
|
58
104
|
* @param {string} manifest - path to the manifest
|
|
59
105
|
* @param {Options} [opts={}] - optional various options to pass along the application
|
|
60
|
-
* @returns {Promise<import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>}
|
|
106
|
+
* @returns {Promise<import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts').AnalysisReport>}
|
|
61
107
|
* @throws {Error} if no matching provider, failed to get create content, or backend request failed
|
|
62
108
|
*/
|
|
63
|
-
declare function componentAnalysis(manifest: string, opts?: Options): Promise<import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport").AnalysisReport>;
|
|
109
|
+
declare function componentAnalysis(manifest: string, opts?: Options): Promise<import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts").AnalysisReport>;
|
|
64
110
|
/**
|
|
65
111
|
* @overload
|
|
66
112
|
* @param {string} manifest
|
|
@@ -75,21 +121,96 @@ declare function stackAnalysis(manifest: string, html: true, opts?: Options | un
|
|
|
75
121
|
* @param {string} manifest
|
|
76
122
|
* @param {false} html
|
|
77
123
|
* @param {Options} [opts={}]
|
|
78
|
-
* @returns {Promise<import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>}
|
|
124
|
+
* @returns {Promise<import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts').AnalysisReport>}
|
|
79
125
|
* @throws {Error}
|
|
80
126
|
*/
|
|
81
|
-
declare function stackAnalysis(manifest: string, html: false, opts?: Options | undefined): Promise<import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport").AnalysisReport>;
|
|
127
|
+
declare function stackAnalysis(manifest: string, html: false, opts?: Options | undefined): Promise<import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts").AnalysisReport>;
|
|
82
128
|
/**
|
|
83
129
|
* Get stack analysis report for a manifest file.
|
|
84
130
|
* @overload
|
|
85
131
|
* @param {string} manifest - path for the manifest
|
|
86
132
|
* @param {boolean} [html=false] - true will return a html string, false will return AnalysisReport object.
|
|
87
133
|
* @param {Options} [opts={}] - optional various options to pass along the application
|
|
88
|
-
* @returns {Promise<string|import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>}
|
|
134
|
+
* @returns {Promise<string|import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts').AnalysisReport>}
|
|
89
135
|
* @throws {Error} if manifest inaccessible, no matching provider, failed to get create content,
|
|
90
136
|
* or backend request failed
|
|
91
137
|
*/
|
|
92
|
-
declare function stackAnalysis(manifest: string, html?: boolean | undefined, opts?: Options | undefined): Promise<string | import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport").AnalysisReport>;
|
|
138
|
+
declare function stackAnalysis(manifest: string, html?: boolean | undefined, opts?: Options | undefined): Promise<string | import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts").AnalysisReport>;
|
|
139
|
+
/**
|
|
140
|
+
* @overload
|
|
141
|
+
* @param {string} workspaceRoot
|
|
142
|
+
* @param {true} html
|
|
143
|
+
* @param {Options & { batchMetadata: true }} opts
|
|
144
|
+
* @returns {Promise<{ analysis: string, metadata: BatchAnalysisMetadata }>}
|
|
145
|
+
* @throws {Error}
|
|
146
|
+
*/
|
|
147
|
+
declare function stackAnalysisBatch(workspaceRoot: string, html: true, opts: Options & {
|
|
148
|
+
batchMetadata: true;
|
|
149
|
+
}): Promise<{
|
|
150
|
+
analysis: string;
|
|
151
|
+
metadata: BatchAnalysisMetadata;
|
|
152
|
+
}>;
|
|
153
|
+
/**
|
|
154
|
+
* @overload
|
|
155
|
+
* @param {string} workspaceRoot
|
|
156
|
+
* @param {true} html
|
|
157
|
+
* @param {Options & { batchMetadata?: false }} [opts={}]
|
|
158
|
+
* @returns {Promise<string>}
|
|
159
|
+
* @throws {Error}
|
|
160
|
+
*/
|
|
161
|
+
declare function stackAnalysisBatch(workspaceRoot: string, html: true, opts?: (Options & {
|
|
162
|
+
batchMetadata?: false;
|
|
163
|
+
}) | undefined): Promise<string>;
|
|
164
|
+
/**
|
|
165
|
+
* @overload
|
|
166
|
+
* @param {string} workspaceRoot
|
|
167
|
+
* @param {false} html
|
|
168
|
+
* @param {Options & { batchMetadata: true }} opts
|
|
169
|
+
* @returns {Promise<{ analysis: Object.<string, import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts').AnalysisReport>, metadata: BatchAnalysisMetadata }>}
|
|
170
|
+
* @throws {Error}
|
|
171
|
+
*/
|
|
172
|
+
declare function stackAnalysisBatch(workspaceRoot: string, html: false, opts: Options & {
|
|
173
|
+
batchMetadata: true;
|
|
174
|
+
}): Promise<{
|
|
175
|
+
analysis: {
|
|
176
|
+
[x: string]: import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts").AnalysisReport;
|
|
177
|
+
};
|
|
178
|
+
metadata: BatchAnalysisMetadata;
|
|
179
|
+
}>;
|
|
180
|
+
/**
|
|
181
|
+
* @overload
|
|
182
|
+
* @param {string} workspaceRoot
|
|
183
|
+
* @param {false} html
|
|
184
|
+
* @param {Options & { batchMetadata?: false }} [opts={}]
|
|
185
|
+
* @returns {Promise<Object.<string, import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts').AnalysisReport>>}
|
|
186
|
+
* @throws {Error}
|
|
187
|
+
*/
|
|
188
|
+
declare function stackAnalysisBatch(workspaceRoot: string, html: false, opts?: (Options & {
|
|
189
|
+
batchMetadata?: false;
|
|
190
|
+
}) | undefined): Promise<{
|
|
191
|
+
[x: string]: import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts").AnalysisReport;
|
|
192
|
+
}>;
|
|
193
|
+
/**
|
|
194
|
+
* Get stack analysis for all workspace packages/crates (batch).
|
|
195
|
+
* Detects ecosystem from workspace root: Cargo (Cargo.toml + Cargo.lock) or JS/TS (package.json + lock file).
|
|
196
|
+
* SBOMs are generated in parallel (see `batchConcurrency`) unless `continueOnError: false` (fail-fast sequential).
|
|
197
|
+
* With `opts.batchMetadata` / `TRUSTIFY_DA_BATCH_METADATA`, returns `{ analysis, metadata }` including validation and SBOM errors.
|
|
198
|
+
*
|
|
199
|
+
* @overload
|
|
200
|
+
* @param {string} workspaceRoot - Path to workspace root (containing lock file and workspace config)
|
|
201
|
+
* @param {boolean} [html=false] - true returns HTML, false returns JSON report
|
|
202
|
+
* @param {Options} [opts={}] - `batchConcurrency`, discovery ignores, `continueOnError` (default true), `batchMetadata` (default false)
|
|
203
|
+
* @returns {Promise<string|Object.<string, import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts').AnalysisReport>|{ analysis: string|Object.<string, import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts').AnalysisReport>, metadata: BatchAnalysisMetadata }>}
|
|
204
|
+
* @throws {Error} if workspace root invalid, no manifests found, no packages pass validation, no SBOMs produced, or backend request failed. When `opts.batchMetadata` is set, `error.batchMetadata` may be set on thrown errors.
|
|
205
|
+
*/
|
|
206
|
+
declare function stackAnalysisBatch(workspaceRoot: string, html?: boolean | undefined, opts?: Options | undefined): Promise<string | {
|
|
207
|
+
[x: string]: import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts").AnalysisReport;
|
|
208
|
+
} | {
|
|
209
|
+
analysis: string | {
|
|
210
|
+
[x: string]: import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts").AnalysisReport;
|
|
211
|
+
};
|
|
212
|
+
metadata: BatchAnalysisMetadata;
|
|
213
|
+
}>;
|
|
93
214
|
/**
|
|
94
215
|
* @overload
|
|
95
216
|
* @param {Array<string>} imageRefs
|
|
@@ -104,11 +225,11 @@ declare function imageAnalysis(imageRefs: Array<string>, html: true, opts?: Opti
|
|
|
104
225
|
* @param {Array<string>} imageRefs
|
|
105
226
|
* @param {false} html
|
|
106
227
|
* @param {Options} [opts={}]
|
|
107
|
-
* @returns {Promise<Object.<string, import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>>}
|
|
228
|
+
* @returns {Promise<Object.<string, import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts').AnalysisReport>>}
|
|
108
229
|
* @throws {Error}
|
|
109
230
|
*/
|
|
110
231
|
declare function imageAnalysis(imageRefs: Array<string>, html: false, opts?: Options | undefined): Promise<{
|
|
111
|
-
[x: string]: import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport").AnalysisReport;
|
|
232
|
+
[x: string]: import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts").AnalysisReport;
|
|
112
233
|
}>;
|
|
113
234
|
/**
|
|
114
235
|
* Get image analysis report for a set of OCI image references.
|
|
@@ -116,12 +237,12 @@ declare function imageAnalysis(imageRefs: Array<string>, html: false, opts?: Opt
|
|
|
116
237
|
* @param {Array<string>} imageRefs - OCI image references
|
|
117
238
|
* @param {boolean} [html=false] - true will return a html string, false will return AnalysisReport
|
|
118
239
|
* @param {Options} [opts={}] - optional various options to pass along the application
|
|
119
|
-
* @returns {Promise<string|Object.<string, import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport').AnalysisReport>>}
|
|
240
|
+
* @returns {Promise<string|Object.<string, import('@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts').AnalysisReport>>}
|
|
120
241
|
* @throws {Error} if manifest inaccessible, no matching provider, failed to get create content,
|
|
121
242
|
* or backend request failed
|
|
122
243
|
*/
|
|
123
244
|
declare function imageAnalysis(imageRefs: Array<string>, html?: boolean | undefined, opts?: Options | undefined): Promise<string | {
|
|
124
|
-
[x: string]: import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport").AnalysisReport;
|
|
245
|
+
[x: string]: import("@trustify-da/trustify-da-api-model/model/v5/AnalysisReport.ts").AnalysisReport;
|
|
125
246
|
}>;
|
|
126
247
|
/**
|
|
127
248
|
* Validates the Exhort token.
|
|
@@ -130,3 +251,20 @@ declare function imageAnalysis(imageRefs: Array<string>, html?: boolean | undefi
|
|
|
130
251
|
* @throws {Error} if the backend request failed.
|
|
131
252
|
*/
|
|
132
253
|
declare function validateToken(opts?: Options): Promise<object>;
|
|
254
|
+
import { discoverMavenModules } from './providers/java_maven.js';
|
|
255
|
+
import { discoverGradleSubprojects } from './providers/java_gradle.js';
|
|
256
|
+
import { discoverGoWorkspaceModules } from './providers/golang_gomodules.js';
|
|
257
|
+
import { discoverUvWorkspaceMembers } from './providers/python_uv.js';
|
|
258
|
+
import { discoverWorkspacePackages } from './workspace.js';
|
|
259
|
+
import { discoverWorkspaceCrates } from './workspace.js';
|
|
260
|
+
import { validatePackageJson } from './workspace.js';
|
|
261
|
+
import { resolveWorkspaceDiscoveryIgnore } from './workspace.js';
|
|
262
|
+
import { filterManifestPathsByDiscoveryIgnore } from './workspace.js';
|
|
263
|
+
import { resolveContinueOnError } from './batch_opts.js';
|
|
264
|
+
import { resolveBatchMetadata } from './batch_opts.js';
|
|
265
|
+
export { discoverMavenModules, discoverGradleSubprojects, discoverGoWorkspaceModules, discoverUvWorkspaceMembers, discoverWorkspacePackages, discoverWorkspaceCrates, validatePackageJson, resolveWorkspaceDiscoveryIgnore, filterManifestPathsByDiscoveryIgnore, resolveContinueOnError, resolveBatchMetadata };
|
|
266
|
+
export { getProjectLicense, findLicenseFilePath, identifyLicense, getLicenseDetails, licensesFromReport, normalizeLicensesResponse, runLicenseCheck, getCompatibility } from "./license/index.js";
|
|
267
|
+
export { extractRemediations, maxSeverity } from "./remediation.js";
|
|
268
|
+
export { generateReport, generateDeduplicationKey } from "./remediation_report.js";
|
|
269
|
+
export { loadConfig, mergeConfig, resolveConfig, CONFIG_FILENAMES } from "./config.js";
|
|
270
|
+
export { runRemediation, findManifests } from "./remediate.js";
|