@harnessio/react-ssca-manager-client 0.83.10 → 0.83.11
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/dist/ssca-manager/src/services/hooks/useGetArtifactComponentOverviewByPurlQuery.d.ts +22 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentOverviewByPurlQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentRemediationByPurlQuery.d.ts +26 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentRemediationByPurlQuery.js +21 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery.d.ts +2 -2
- package/dist/ssca-manager/src/services/index.d.ts +13 -0
- package/dist/ssca-manager/src/services/index.js +2 -0
- package/dist/ssca-manager/src/services/responses/ArtifactComponentOverviewResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/ArtifactComponentOverviewResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/ArtifactComponentRemediationResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/ArtifactComponentRemediationResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewResponse.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ComponentRemediationResponse.d.ts +41 -0
- package/dist/ssca-manager/src/services/schemas/ComponentRemediationResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComponentVulnerabilityResponse.d.ts +10 -1
- package/dist/ssca-manager/src/services/schemas/DependencyChange.d.ts +20 -0
- package/dist/ssca-manager/src/services/schemas/DependencyChange.js +1 -0
- package/dist/ssca-manager/src/services/schemas/DependencyChanges.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/DependencyChanges.js +1 -0
- package/dist/ssca-manager/src/services/schemas/EolStatus.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/EolStatus.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationWarning.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationWarning.js +4 -0
- package/dist/ssca-manager/src/services/schemas/TargetVersionVulnerability.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/TargetVersionVulnerability.js +1 -0
- package/dist/ssca-manager/src/services/schemas/VulnerabilitySource.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/VulnerabilitySource.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactComponentOverviewResponseBodyResponse } from '../responses/ArtifactComponentOverviewResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetArtifactComponentOverviewByPurlQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
artifact: string;
|
|
9
|
+
purl: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetArtifactComponentOverviewByPurlQueryHeaderParams {
|
|
12
|
+
'Harness-Account': string;
|
|
13
|
+
}
|
|
14
|
+
export type GetArtifactComponentOverviewByPurlOkResponse = ResponseWithPagination<ArtifactComponentOverviewResponseBodyResponse>;
|
|
15
|
+
export type GetArtifactComponentOverviewByPurlErrorResponse = unknown;
|
|
16
|
+
export interface GetArtifactComponentOverviewByPurlProps extends GetArtifactComponentOverviewByPurlQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetArtifactComponentOverviewByPurlQueryHeaderParams>, 'url'> {
|
|
17
|
+
}
|
|
18
|
+
export declare function getArtifactComponentOverviewByPurl(props: GetArtifactComponentOverviewByPurlProps): Promise<GetArtifactComponentOverviewByPurlOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Artifact component overview by PURL
|
|
21
|
+
*/
|
|
22
|
+
export declare function useGetArtifactComponentOverviewByPurlQuery(props: GetArtifactComponentOverviewByPurlProps, options?: Omit<UseQueryOptions<GetArtifactComponentOverviewByPurlOkResponse, GetArtifactComponentOverviewByPurlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactComponentOverviewByPurlOkResponse, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getArtifactComponentOverviewByPurl(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/components/${props.purl}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Artifact component overview by PURL
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactComponentOverviewByPurlQuery(props, options) {
|
|
13
|
+
return useQuery(['getArtifactComponentOverviewByPurl', props.org, props.project, props.artifact, props.purl], ({ signal }) => getArtifactComponentOverviewByPurl(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/ssca-manager/src/services/hooks/useGetArtifactComponentRemediationByPurlQuery.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactComponentRemediationResponseBodyResponse } from '../responses/ArtifactComponentRemediationResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetArtifactComponentRemediationByPurlQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
artifact: string;
|
|
9
|
+
purl: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetArtifactComponentRemediationByPurlQueryQueryParams {
|
|
12
|
+
target_version?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetArtifactComponentRemediationByPurlQueryHeaderParams {
|
|
15
|
+
'Harness-Account': string;
|
|
16
|
+
}
|
|
17
|
+
export type GetArtifactComponentRemediationByPurlOkResponse = ResponseWithPagination<ArtifactComponentRemediationResponseBodyResponse>;
|
|
18
|
+
export type GetArtifactComponentRemediationByPurlErrorResponse = unknown;
|
|
19
|
+
export interface GetArtifactComponentRemediationByPurlProps extends GetArtifactComponentRemediationByPurlQueryPathParams, Omit<FetcherOptions<GetArtifactComponentRemediationByPurlQueryQueryParams, unknown, GetArtifactComponentRemediationByPurlQueryHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: GetArtifactComponentRemediationByPurlQueryQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function getArtifactComponentRemediationByPurl(props: GetArtifactComponentRemediationByPurlProps): Promise<GetArtifactComponentRemediationByPurlOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Artifact component remediation by PURL
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetArtifactComponentRemediationByPurlQuery(props: GetArtifactComponentRemediationByPurlProps, options?: Omit<UseQueryOptions<GetArtifactComponentRemediationByPurlOkResponse, GetArtifactComponentRemediationByPurlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactComponentRemediationByPurlOkResponse, unknown>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
+
// Please do not modify this code directly.
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function getArtifactComponentRemediationByPurl(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/components/${props.purl}/remediation`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Artifact component remediation by PURL
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactComponentRemediationByPurlQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getArtifactComponentRemediationByPurl',
|
|
15
|
+
props.org,
|
|
16
|
+
props.project,
|
|
17
|
+
props.artifact,
|
|
18
|
+
props.purl,
|
|
19
|
+
props.queryParams,
|
|
20
|
+
], ({ signal }) => getArtifactComponentRemediationByPurl(Object.assign(Object.assign({}, props), { signal })), options);
|
|
21
|
+
}
|
|
@@ -12,11 +12,11 @@ export interface GetArtifactV2ComponentVulnerabilityListByPurlQueryQueryParams {
|
|
|
12
12
|
/**
|
|
13
13
|
* @default 30
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
limit?: number;
|
|
16
16
|
/**
|
|
17
17
|
* @default 0
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
page?: number;
|
|
20
20
|
search_term_vulnerabilities?: string;
|
|
21
21
|
sort?: 'severity';
|
|
22
22
|
/**
|
|
@@ -39,6 +39,10 @@ export type { GetAllRepositoriesSummaryErrorResponse, GetAllRepositoriesSummaryO
|
|
|
39
39
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
40
40
|
export type { GetArtifactChainOfCustodyV2ErrorResponse, GetArtifactChainOfCustodyV2OkResponse, GetArtifactChainOfCustodyV2Props, GetArtifactChainOfCustodyV2QueryPathParams, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
41
41
|
export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
42
|
+
export type { GetArtifactComponentOverviewByPurlErrorResponse, GetArtifactComponentOverviewByPurlOkResponse, GetArtifactComponentOverviewByPurlProps, GetArtifactComponentOverviewByPurlQueryPathParams, } from './hooks/useGetArtifactComponentOverviewByPurlQuery';
|
|
43
|
+
export { getArtifactComponentOverviewByPurl, useGetArtifactComponentOverviewByPurlQuery, } from './hooks/useGetArtifactComponentOverviewByPurlQuery';
|
|
44
|
+
export type { GetArtifactComponentRemediationByPurlErrorResponse, GetArtifactComponentRemediationByPurlOkResponse, GetArtifactComponentRemediationByPurlProps, GetArtifactComponentRemediationByPurlQueryPathParams, GetArtifactComponentRemediationByPurlQueryQueryParams, } from './hooks/useGetArtifactComponentRemediationByPurlQuery';
|
|
45
|
+
export { getArtifactComponentRemediationByPurl, useGetArtifactComponentRemediationByPurlQuery, } from './hooks/useGetArtifactComponentRemediationByPurlQuery';
|
|
42
46
|
export type { GetArtifactInRemediationDetailsErrorResponse, GetArtifactInRemediationDetailsOkResponse, GetArtifactInRemediationDetailsProps, GetArtifactInRemediationDetailsQueryPathParams, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
43
47
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
44
48
|
export type { GetArtifactListForRemediationErrorResponse, GetArtifactListForRemediationOkResponse, GetArtifactListForRemediationProps, GetArtifactListForRemediationQueryPathParams, GetArtifactListForRemediationQueryQueryParams, GetArtifactListForRemediationRequestBody, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
@@ -171,6 +175,8 @@ export type { SbomScoreRequestBodyRequestBody } from './requestBodies/SbomScoreR
|
|
|
171
175
|
export type { SbomScorecardRequestBodyRequestBody } from './requestBodies/SbomScorecardRequestBodyRequestBody';
|
|
172
176
|
export type { SlsaVerificationRequestBodyRequestBody } from './requestBodies/SlsaVerificationRequestBodyRequestBody';
|
|
173
177
|
export type { SlsaVerificationRequestBodyV2RequestBody } from './requestBodies/SlsaVerificationRequestBodyV2RequestBody';
|
|
178
|
+
export type { ArtifactComponentOverviewResponseBodyResponse } from './responses/ArtifactComponentOverviewResponseBodyResponse';
|
|
179
|
+
export type { ArtifactComponentRemediationResponseBodyResponse } from './responses/ArtifactComponentRemediationResponseBodyResponse';
|
|
174
180
|
export type { ArtifactComponentViewResponseBodyResponse } from './responses/ArtifactComponentViewResponseBodyResponse';
|
|
175
181
|
export type { ArtifactComponentsResponseBodyResponse } from './responses/ArtifactComponentsResponseBodyResponse';
|
|
176
182
|
export type { ArtifactDeploymentViewResponseBodyResponse } from './responses/ArtifactDeploymentViewResponseBodyResponse';
|
|
@@ -323,6 +329,7 @@ export type { ComponentDrift } from './schemas/ComponentDrift';
|
|
|
323
329
|
export type { ComponentDriftSummary } from './schemas/ComponentDriftSummary';
|
|
324
330
|
export type { ComponentDto } from './schemas/ComponentDto';
|
|
325
331
|
export type { ComponentFilter } from './schemas/ComponentFilter';
|
|
332
|
+
export type { ComponentRemediationResponse } from './schemas/ComponentRemediationResponse';
|
|
326
333
|
export type { ComponentSummary } from './schemas/ComponentSummary';
|
|
327
334
|
export type { ComponentVulnerabilityResponse } from './schemas/ComponentVulnerabilityResponse';
|
|
328
335
|
export type { ConfigInfo } from './schemas/ConfigInfo';
|
|
@@ -340,6 +347,8 @@ export type { CreateTicketResponse } from './schemas/CreateTicketResponse';
|
|
|
340
347
|
export type { CveVulnerability } from './schemas/CveVulnerability';
|
|
341
348
|
export type { DefaultVulnerability } from './schemas/DefaultVulnerability';
|
|
342
349
|
export type { DeleteRepositoriesRequestBody } from './schemas/DeleteRepositoriesRequestBody';
|
|
350
|
+
export type { DependencyChange } from './schemas/DependencyChange';
|
|
351
|
+
export type { DependencyChanges } from './schemas/DependencyChanges';
|
|
343
352
|
export type { DependencyType } from './schemas/DependencyType';
|
|
344
353
|
export type { DeploymentActivity } from './schemas/DeploymentActivity';
|
|
345
354
|
export type { Deployments } from './schemas/Deployments';
|
|
@@ -360,6 +369,7 @@ export type { EnforcementSummaryResponse } from './schemas/EnforcementSummaryRes
|
|
|
360
369
|
export type { EnvironmentInfo } from './schemas/EnvironmentInfo';
|
|
361
370
|
export type { EnvironmentType } from './schemas/EnvironmentType';
|
|
362
371
|
export type { EnvironmentTypeFilter } from './schemas/EnvironmentTypeFilter';
|
|
372
|
+
export type { EolStatus } from './schemas/EolStatus';
|
|
363
373
|
export type { Error } from './schemas/Error';
|
|
364
374
|
export type { ExcludeArtifactRequest } from './schemas/ExcludeArtifactRequest';
|
|
365
375
|
export type { ExecutionContext } from './schemas/ExecutionContext';
|
|
@@ -442,6 +452,7 @@ export type { RemediationTrackerCreateResponseBody } from './schemas/Remediation
|
|
|
442
452
|
export type { RemediationTrackerUpdateRequestBody } from './schemas/RemediationTrackerUpdateRequestBody';
|
|
443
453
|
export type { RemediationTrackerUpdateResponseBody } from './schemas/RemediationTrackerUpdateResponseBody';
|
|
444
454
|
export type { RemediationTrackersOverallSummaryResponseBody } from './schemas/RemediationTrackersOverallSummaryResponseBody';
|
|
455
|
+
export type { RemediationWarning } from './schemas/RemediationWarning';
|
|
445
456
|
export type { RepoDetailsDto } from './schemas/RepoDetailsDto';
|
|
446
457
|
export type { Repositories } from './schemas/Repositories';
|
|
447
458
|
export type { RepositoriesSummary } from './schemas/RepositoriesSummary';
|
|
@@ -479,6 +490,7 @@ export type { SlsaVerificationRequestBody } from './schemas/SlsaVerificationRequ
|
|
|
479
490
|
export type { SlsaVerificationRequestBodyV2 } from './schemas/SlsaVerificationRequestBodyV2';
|
|
480
491
|
export type { SscaSummary } from './schemas/SscaSummary';
|
|
481
492
|
export type { StoIssueCount } from './schemas/StoIssueCount';
|
|
493
|
+
export type { TargetVersionVulnerability } from './schemas/TargetVersionVulnerability';
|
|
482
494
|
export type { TicketInfo } from './schemas/TicketInfo';
|
|
483
495
|
export type { TokenIssueResponseBody } from './schemas/TokenIssueResponseBody';
|
|
484
496
|
export type { TokenIssueTokenResponseBody } from './schemas/TokenIssueTokenResponseBody';
|
|
@@ -490,4 +502,5 @@ export type { Violations } from './schemas/Violations';
|
|
|
490
502
|
export type { VulnerabilityActivity } from './schemas/VulnerabilityActivity';
|
|
491
503
|
export type { VulnerabilityInfo } from './schemas/VulnerabilityInfo';
|
|
492
504
|
export type { VulnerabilitySeverity } from './schemas/VulnerabilitySeverity';
|
|
505
|
+
export type { VulnerabilitySource } from './schemas/VulnerabilitySource';
|
|
493
506
|
export type { WorkflowSource } from './schemas/WorkflowSource';
|
|
@@ -18,6 +18,8 @@ export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hoo
|
|
|
18
18
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
19
19
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
20
20
|
export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
21
|
+
export { getArtifactComponentOverviewByPurl, useGetArtifactComponentOverviewByPurlQuery, } from './hooks/useGetArtifactComponentOverviewByPurlQuery';
|
|
22
|
+
export { getArtifactComponentRemediationByPurl, useGetArtifactComponentRemediationByPurlQuery, } from './hooks/useGetArtifactComponentRemediationByPurlQuery';
|
|
21
23
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
22
24
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
23
25
|
export { getArtifactV2ComponentVulnerabilityListByPurl, useGetArtifactV2ComponentVulnerabilityListByPurlQuery, } from './hooks/useGetArtifactV2ComponentVulnerabilityListByPurlQuery';
|
package/dist/ssca-manager/src/services/responses/ArtifactComponentOverviewResponseBodyResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/ssca-manager/src/services/responses/ArtifactComponentRemediationResponseBodyResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import type { DependencyType } from '../schemas/DependencyType';
|
|
1
2
|
import type { LayerType } from '../schemas/LayerType';
|
|
2
3
|
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
4
|
+
import type { VulnerabilitySource } from '../schemas/VulnerabilitySource';
|
|
3
5
|
export interface ArtifactComponentViewResponse {
|
|
6
|
+
dependency_types?: DependencyType[];
|
|
4
7
|
/**
|
|
5
8
|
* details of the component
|
|
6
9
|
*/
|
|
@@ -38,4 +41,5 @@ export interface ArtifactComponentViewResponse {
|
|
|
38
41
|
package_supplier?: string;
|
|
39
42
|
package_version?: string;
|
|
40
43
|
purl?: string;
|
|
44
|
+
vulnerability_source?: VulnerabilitySource;
|
|
41
45
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { DependencyChanges } from '../schemas/DependencyChanges';
|
|
2
|
+
import type { EolStatus } from '../schemas/EolStatus';
|
|
3
|
+
import type { RemediationWarning } from '../schemas/RemediationWarning';
|
|
4
|
+
import type { TargetVersionVulnerability } from '../schemas/TargetVersionVulnerability';
|
|
5
|
+
export interface ComponentRemediationResponse {
|
|
6
|
+
/**
|
|
7
|
+
* Current version of the component
|
|
8
|
+
*/
|
|
9
|
+
current_version: string;
|
|
10
|
+
dependency_changes?: DependencyChanges;
|
|
11
|
+
eol_status?: EolStatus;
|
|
12
|
+
/**
|
|
13
|
+
* Whether the component is outdated or not
|
|
14
|
+
*/
|
|
15
|
+
is_outdated?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Recommended version to upgrade
|
|
18
|
+
*/
|
|
19
|
+
recommended_version: string;
|
|
20
|
+
/**
|
|
21
|
+
* Remediation information
|
|
22
|
+
*/
|
|
23
|
+
remediation_info?: string;
|
|
24
|
+
/**
|
|
25
|
+
* List of warnings
|
|
26
|
+
*/
|
|
27
|
+
remediation_warnings?: RemediationWarning[];
|
|
28
|
+
/**
|
|
29
|
+
* Summary of the remediation
|
|
30
|
+
*/
|
|
31
|
+
summary: string;
|
|
32
|
+
/**
|
|
33
|
+
* Target version of the component
|
|
34
|
+
*/
|
|
35
|
+
target_version?: string;
|
|
36
|
+
target_version_vulnerability?: TargetVersionVulnerability;
|
|
37
|
+
/**
|
|
38
|
+
* List of versions to upgrade to for fixing the vulnerability
|
|
39
|
+
*/
|
|
40
|
+
target_versions: string[];
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,7 +3,16 @@ export interface ComponentVulnerabilityResponse {
|
|
|
3
3
|
/**
|
|
4
4
|
* List of reference identifiers like CVE IDs, GHSA IDs
|
|
5
5
|
*/
|
|
6
|
-
reference_identifiers?:
|
|
6
|
+
reference_identifiers?: Array<{
|
|
7
|
+
/**
|
|
8
|
+
* The reference identifier value (e.g., CVE-2021-44228)
|
|
9
|
+
*/
|
|
10
|
+
identifier?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The type of identifier (e.g., CVE, GHSA, CWE)
|
|
13
|
+
*/
|
|
14
|
+
type?: string;
|
|
15
|
+
}>;
|
|
7
16
|
severity?: VulnerabilitySeverity;
|
|
8
17
|
/**
|
|
9
18
|
* Numeric severity score (e.g., CVSS score)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
2
|
+
export interface DependencyChange {
|
|
3
|
+
/**
|
|
4
|
+
* Type of change
|
|
5
|
+
*/
|
|
6
|
+
change_type?: 'ADDED' | 'MODIFIED' | 'REMOVED';
|
|
7
|
+
/**
|
|
8
|
+
* Name of the dependency
|
|
9
|
+
*/
|
|
10
|
+
name?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Purl of the dependency
|
|
13
|
+
*/
|
|
14
|
+
purl?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Version of the dependency
|
|
17
|
+
*/
|
|
18
|
+
version?: string;
|
|
19
|
+
vulnerabilities_count?: StoIssueCount;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|