@harnessio/react-ssca-manager-client 0.84.5 → 0.84.7
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/useGetAutoPrConfigQuery.d.ts +5 -4
- package/dist/ssca-manager/src/services/hooks/useGetAutoPrConfigQuery.js +2 -2
- package/dist/ssca-manager/src/services/hooks/useGetComponentDetailsByPurlQuery.d.ts +24 -0
- package/dist/ssca-manager/src/services/hooks/useGetComponentDetailsByPurlQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetComponentVulnerabilitiesByPurlQuery.d.ts +38 -0
- package/dist/ssca-manager/src/services/hooks/useGetComponentVulnerabilitiesByPurlQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useSaveAutoPrConfigMutation.d.ts +1 -5
- package/dist/ssca-manager/src/services/hooks/useSaveAutoPrConfigMutation.js +1 -1
- package/dist/ssca-manager/src/services/index.d.ts +11 -8
- package/dist/ssca-manager/src/services/index.js +2 -0
- package/dist/ssca-manager/src/services/responses/ComponentDependenciesResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewResponse.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/AutoPrConfigRequestBody.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/ChunkingMode.d.ts +9 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependenciesResponse.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependencyItem.d.ts +27 -0
- package/dist/ssca-manager/src/services/schemas/ComponentParent.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/PluginResponseBody.d.ts +30 -3
- package/dist/ssca-manager/src/services/schemas/SaveOrchestrationRequestV2.d.ts +21 -3
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/schemas/ChunkErrorCode.d.ts +0 -4
- package/dist/ssca-manager/src/services/schemas/ChunkErrorResponse.d.ts +0 -12
- package/dist/ssca-manager/src/services/schemas/CompleteProcessingRequest.d.ts +0 -14
- package/dist/ssca-manager/src/services/schemas/CompleteProcessingResult.d.ts +0 -30
- package/dist/ssca-manager/src/services/schemas/ProcessChunkRequest.d.ts +0 -16
- package/dist/ssca-manager/src/services/schemas/ProcessChunkResult.d.ts +0 -31
- package/dist/ssca-manager/src/services/schemas/ProcessChunkResult.js +0 -4
- /package/dist/ssca-manager/src/services/{schemas/ChunkErrorResponse.js → responses/ComponentDependenciesResponseBodyResponse.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{ChunkErrorCode.js → ChunkingMode.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{CompleteProcessingRequest.js → ComponentDependenciesResponse.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{ProcessChunkRequest.js → ComponentDependencyItem.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{CompleteProcessingResult.js → ComponentParent.js} +0 -0
|
@@ -2,16 +2,17 @@ import { UseQueryOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { AutoPrConfigResponseBodyResponse } from '../responses/AutoPrConfigResponseBodyResponse';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export interface GetAutoPrConfigQueryQueryParams {
|
|
6
|
+
orgId?: string;
|
|
7
|
+
projectId?: string;
|
|
8
8
|
}
|
|
9
9
|
export interface GetAutoPrConfigQueryHeaderParams {
|
|
10
10
|
'Harness-Account': string;
|
|
11
11
|
}
|
|
12
12
|
export type GetAutoPrConfigOkResponse = ResponseWithPagination<AutoPrConfigResponseBodyResponse>;
|
|
13
13
|
export type GetAutoPrConfigErrorResponse = unknown;
|
|
14
|
-
export interface GetAutoPrConfigProps extends
|
|
14
|
+
export interface GetAutoPrConfigProps extends Omit<FetcherOptions<GetAutoPrConfigQueryQueryParams, unknown, GetAutoPrConfigQueryHeaderParams>, 'url'> {
|
|
15
|
+
queryParams: GetAutoPrConfigQueryQueryParams;
|
|
15
16
|
}
|
|
16
17
|
export declare function getAutoPrConfig(props: GetAutoPrConfigProps): Promise<GetAutoPrConfigOkResponse>;
|
|
17
18
|
/**
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getAutoPrConfig(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/ssca-config/auto-pr-config`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Get Auto PR Config for the project
|
|
11
11
|
*/
|
|
12
12
|
export function useGetAutoPrConfigQuery(props, options) {
|
|
13
|
-
return useQuery(['getAutoPrConfig', props.
|
|
13
|
+
return useQuery(['getAutoPrConfig', props.queryParams], ({ signal }) => getAutoPrConfig(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 GetComponentDetailsByPurlQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetComponentDetailsByPurlQueryQueryParams {
|
|
10
|
+
purl: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetComponentDetailsByPurlQueryHeaderParams {
|
|
13
|
+
'Harness-Account': string;
|
|
14
|
+
}
|
|
15
|
+
export type GetComponentDetailsByPurlOkResponse = ResponseWithPagination<ArtifactComponentOverviewResponseBodyResponse>;
|
|
16
|
+
export type GetComponentDetailsByPurlErrorResponse = unknown;
|
|
17
|
+
export interface GetComponentDetailsByPurlProps extends GetComponentDetailsByPurlQueryPathParams, Omit<FetcherOptions<GetComponentDetailsByPurlQueryQueryParams, unknown, GetComponentDetailsByPurlQueryHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: GetComponentDetailsByPurlQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export declare function getComponentDetailsByPurl(props: GetComponentDetailsByPurlProps): Promise<GetComponentDetailsByPurlOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Get component details by PURL
|
|
23
|
+
*/
|
|
24
|
+
export declare function useGetComponentDetailsByPurlQuery(props: GetComponentDetailsByPurlProps, options?: Omit<UseQueryOptions<GetComponentDetailsByPurlOkResponse, GetComponentDetailsByPurlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetComponentDetailsByPurlOkResponse, 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 getComponentDetailsByPurl(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/components/details`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get component details by PURL
|
|
11
|
+
*/
|
|
12
|
+
export function useGetComponentDetailsByPurlQuery(props, options) {
|
|
13
|
+
return useQuery(['getComponentDetailsByPurl', props.org, props.project, props.queryParams], ({ signal }) => getComponentDetailsByPurl(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ComponentVulnerabilityListResponseBodyResponse } from '../responses/ComponentVulnerabilityListResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetComponentVulnerabilitiesByPurlQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetComponentVulnerabilitiesByPurlQueryQueryParams {
|
|
10
|
+
purl: string;
|
|
11
|
+
/**
|
|
12
|
+
* @default 30
|
|
13
|
+
*/
|
|
14
|
+
limit?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @default 0
|
|
17
|
+
*/
|
|
18
|
+
page?: number;
|
|
19
|
+
search_term_vulnerabilities?: string;
|
|
20
|
+
sort?: 'severity';
|
|
21
|
+
/**
|
|
22
|
+
* @default "DESC"
|
|
23
|
+
*/
|
|
24
|
+
order?: 'ASC' | 'DESC';
|
|
25
|
+
}
|
|
26
|
+
export interface GetComponentVulnerabilitiesByPurlQueryHeaderParams {
|
|
27
|
+
'Harness-Account': string;
|
|
28
|
+
}
|
|
29
|
+
export type GetComponentVulnerabilitiesByPurlOkResponse = ResponseWithPagination<ComponentVulnerabilityListResponseBodyResponse>;
|
|
30
|
+
export type GetComponentVulnerabilitiesByPurlErrorResponse = unknown;
|
|
31
|
+
export interface GetComponentVulnerabilitiesByPurlProps extends GetComponentVulnerabilitiesByPurlQueryPathParams, Omit<FetcherOptions<GetComponentVulnerabilitiesByPurlQueryQueryParams, unknown, GetComponentVulnerabilitiesByPurlQueryHeaderParams>, 'url'> {
|
|
32
|
+
queryParams: GetComponentVulnerabilitiesByPurlQueryQueryParams;
|
|
33
|
+
}
|
|
34
|
+
export declare function getComponentVulnerabilitiesByPurl(props: GetComponentVulnerabilitiesByPurlProps): Promise<GetComponentVulnerabilitiesByPurlOkResponse>;
|
|
35
|
+
/**
|
|
36
|
+
* Get component vulnerabilities by PURL
|
|
37
|
+
*/
|
|
38
|
+
export declare function useGetComponentVulnerabilitiesByPurlQuery(props: GetComponentVulnerabilitiesByPurlProps, options?: Omit<UseQueryOptions<GetComponentVulnerabilitiesByPurlOkResponse, GetComponentVulnerabilitiesByPurlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetComponentVulnerabilitiesByPurlOkResponse, 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 getComponentVulnerabilitiesByPurl(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/components/vulnerabilities`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get component vulnerabilities by PURL
|
|
11
|
+
*/
|
|
12
|
+
export function useGetComponentVulnerabilitiesByPurlQuery(props, options) {
|
|
13
|
+
return useQuery(['getComponentVulnerabilitiesByPurl', props.org, props.project, props.queryParams], ({ signal }) => getComponentVulnerabilitiesByPurl(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -3,17 +3,13 @@ import type { AutoPrConfigResponseBodyResponse } from '../responses/AutoPrConfig
|
|
|
3
3
|
import type { AutoPrConfigRequestBodyRequestBody } from '../requestBodies/AutoPrConfigRequestBodyRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface SaveAutoPrConfigMutationPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
}
|
|
10
6
|
export interface SaveAutoPrConfigMutationHeaderParams {
|
|
11
7
|
'Harness-Account': string;
|
|
12
8
|
}
|
|
13
9
|
export type SaveAutoPrConfigRequestBody = AutoPrConfigRequestBodyRequestBody;
|
|
14
10
|
export type SaveAutoPrConfigOkResponse = ResponseWithPagination<AutoPrConfigResponseBodyResponse>;
|
|
15
11
|
export type SaveAutoPrConfigErrorResponse = unknown;
|
|
16
|
-
export interface SaveAutoPrConfigProps extends
|
|
12
|
+
export interface SaveAutoPrConfigProps extends Omit<FetcherOptions<unknown, SaveAutoPrConfigRequestBody, SaveAutoPrConfigMutationHeaderParams>, 'url'> {
|
|
17
13
|
body: SaveAutoPrConfigRequestBody;
|
|
18
14
|
}
|
|
19
15
|
export declare function saveAutoPrConfig(props: SaveAutoPrConfigProps): Promise<SaveAutoPrConfigOkResponse>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { useMutation } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function saveAutoPrConfig(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/ssca-config/auto-pr-config`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Create or update Auto PR Config for the project
|
|
@@ -61,7 +61,7 @@ export type { GetArtifactV2DetailDeploymentViewErrorResponse, GetArtifactV2Detai
|
|
|
61
61
|
export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
|
|
62
62
|
export type { GetArtifactV2OverviewErrorResponse, GetArtifactV2OverviewOkResponse, GetArtifactV2OverviewProps, GetArtifactV2OverviewQueryPathParams, } from './hooks/useGetArtifactV2OverviewQuery';
|
|
63
63
|
export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
|
|
64
|
-
export type { GetAutoPrConfigErrorResponse, GetAutoPrConfigOkResponse, GetAutoPrConfigProps,
|
|
64
|
+
export type { GetAutoPrConfigErrorResponse, GetAutoPrConfigOkResponse, GetAutoPrConfigProps, GetAutoPrConfigQueryQueryParams, } from './hooks/useGetAutoPrConfigQuery';
|
|
65
65
|
export { getAutoPrConfig, useGetAutoPrConfigQuery } from './hooks/useGetAutoPrConfigQuery';
|
|
66
66
|
export type { GetBaselineForArtifactErrorResponse, GetBaselineForArtifactOkResponse, GetBaselineForArtifactProps, GetBaselineForArtifactQueryPathParams, } from './hooks/useGetBaselineForArtifactQuery';
|
|
67
67
|
export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
|
|
@@ -85,10 +85,14 @@ export type { GetComplianceStandardsFiltersErrorResponse, GetComplianceStandards
|
|
|
85
85
|
export { getComplianceStandardsFilters, useGetComplianceStandardsFiltersQuery, } from './hooks/useGetComplianceStandardsFiltersQuery';
|
|
86
86
|
export type { GetComplianceStandardsErrorResponse, GetComplianceStandardsMutationPathParams, GetComplianceStandardsMutationQueryParams, GetComplianceStandardsOkResponse, GetComplianceStandardsProps, GetComplianceStandardsRequestBody, } from './hooks/useGetComplianceStandardsMutation';
|
|
87
87
|
export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
|
|
88
|
+
export type { GetComponentDetailsByPurlErrorResponse, GetComponentDetailsByPurlOkResponse, GetComponentDetailsByPurlProps, GetComponentDetailsByPurlQueryPathParams, GetComponentDetailsByPurlQueryQueryParams, } from './hooks/useGetComponentDetailsByPurlQuery';
|
|
89
|
+
export { getComponentDetailsByPurl, useGetComponentDetailsByPurlQuery, } from './hooks/useGetComponentDetailsByPurlQuery';
|
|
88
90
|
export type { GetComponentDriftErrorResponse, GetComponentDriftOkResponse, GetComponentDriftProps, GetComponentDriftQueryPathParams, GetComponentDriftQueryQueryParams, } from './hooks/useGetComponentDriftQuery';
|
|
89
91
|
export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
|
|
90
92
|
export type { GetComponentTicketErrorResponse, GetComponentTicketOkResponse, GetComponentTicketProps, GetComponentTicketQueryPathParams, GetComponentTicketQueryQueryParams, } from './hooks/useGetComponentTicketQuery';
|
|
91
93
|
export { getComponentTicket, useGetComponentTicketQuery } from './hooks/useGetComponentTicketQuery';
|
|
94
|
+
export type { GetComponentVulnerabilitiesByPurlErrorResponse, GetComponentVulnerabilitiesByPurlOkResponse, GetComponentVulnerabilitiesByPurlProps, GetComponentVulnerabilitiesByPurlQueryPathParams, GetComponentVulnerabilitiesByPurlQueryQueryParams, } from './hooks/useGetComponentVulnerabilitiesByPurlQuery';
|
|
95
|
+
export { getComponentVulnerabilitiesByPurl, useGetComponentVulnerabilitiesByPurlQuery, } from './hooks/useGetComponentVulnerabilitiesByPurlQuery';
|
|
92
96
|
export type { GetComponentsErrorResponse, GetComponentsOkResponse, GetComponentsProps, GetComponentsQueryPathParams, GetComponentsQueryQueryParams, } from './hooks/useGetComponentsQuery';
|
|
93
97
|
export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
|
|
94
98
|
export type { GetConnectorConfigErrorResponse, GetConnectorConfigOkResponse, GetConnectorConfigProps, GetConnectorConfigQueryQueryParams, } from './hooks/useGetConnectorConfigQuery';
|
|
@@ -131,7 +135,7 @@ export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorRespo
|
|
|
131
135
|
export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
|
|
132
136
|
export type { PostComplianceResultStatsOverviewErrorResponse, PostComplianceResultStatsOverviewMutationPathParams, PostComplianceResultStatsOverviewMutationQueryParams, PostComplianceResultStatsOverviewOkResponse, PostComplianceResultStatsOverviewProps, PostComplianceResultStatsOverviewRequestBody, } from './hooks/usePostComplianceResultStatsOverviewMutation';
|
|
133
137
|
export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
|
|
134
|
-
export type { SaveAutoPrConfigErrorResponse,
|
|
138
|
+
export type { SaveAutoPrConfigErrorResponse, SaveAutoPrConfigOkResponse, SaveAutoPrConfigProps, SaveAutoPrConfigRequestBody, } from './hooks/useSaveAutoPrConfigMutation';
|
|
135
139
|
export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
|
|
136
140
|
export type { SaveConnectorConfigErrorResponse, SaveConnectorConfigOkResponse, SaveConnectorConfigProps, SaveConnectorConfigRequestBody, } from './hooks/useSaveConnectorConfigMutation';
|
|
137
141
|
export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
|
|
@@ -224,6 +228,7 @@ export type { ComplianceResultsEvaluationBreakdownResponseResponse } from './res
|
|
|
224
228
|
export type { ComplianceResultsGroupByComplianceIdResponseBodyResponse } from './responses/ComplianceResultsGroupByComplianceIdResponseBodyResponse';
|
|
225
229
|
export type { ComplianceStandardByIdResponseBodyResponse } from './responses/ComplianceStandardByIdResponseBodyResponse';
|
|
226
230
|
export type { ComplianceStandardsResponseBodyResponse } from './responses/ComplianceStandardsResponseBodyResponse';
|
|
231
|
+
export type { ComponentDependenciesResponseBodyResponse } from './responses/ComponentDependenciesResponseBodyResponse';
|
|
227
232
|
export type { ComponentDriftResponseBodyResponse } from './responses/ComponentDriftResponseBodyResponse';
|
|
228
233
|
export type { ComponentListResponseBodyResponse } from './responses/ComponentListResponseBodyResponse';
|
|
229
234
|
export type { ComponentVulnerabilityListResponseBodyResponse } from './responses/ComponentVulnerabilityListResponseBodyResponse';
|
|
@@ -327,9 +332,8 @@ export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
|
|
|
327
332
|
export type { BaselineV2RequestBody } from './schemas/BaselineV2RequestBody';
|
|
328
333
|
export type { CategoryScorecard } from './schemas/CategoryScorecard';
|
|
329
334
|
export type { CategoryScorecardCheck } from './schemas/CategoryScorecardCheck';
|
|
330
|
-
export type { ChunkErrorCode } from './schemas/ChunkErrorCode';
|
|
331
|
-
export type { ChunkErrorResponse } from './schemas/ChunkErrorResponse';
|
|
332
335
|
export type { ChunkMetadata } from './schemas/ChunkMetadata';
|
|
336
|
+
export type { ChunkingMode } from './schemas/ChunkingMode';
|
|
333
337
|
export type { CicdHarnessPipelineYamlResponseBody } from './schemas/CicdHarnessPipelineYamlResponseBody';
|
|
334
338
|
export type { CicdOverviewResponseBody } from './schemas/CicdOverviewResponseBody';
|
|
335
339
|
export type { CicdRulesEvaluation } from './schemas/CicdRulesEvaluation';
|
|
@@ -341,8 +345,6 @@ export type { CodeRepoRulesEvaluation } from './schemas/CodeRepoRulesEvaluation'
|
|
|
341
345
|
export type { CodeRepositoryListingRequest } from './schemas/CodeRepositoryListingRequest';
|
|
342
346
|
export type { CodeRepositoryListingResponse } from './schemas/CodeRepositoryListingResponse';
|
|
343
347
|
export type { CodeRepositoryOverview } from './schemas/CodeRepositoryOverview';
|
|
344
|
-
export type { CompleteProcessingRequest } from './schemas/CompleteProcessingRequest';
|
|
345
|
-
export type { CompleteProcessingResult } from './schemas/CompleteProcessingResult';
|
|
346
348
|
export type { ComplianceArtifactType } from './schemas/ComplianceArtifactType';
|
|
347
349
|
export type { ComplianceArtifactWithExecution } from './schemas/ComplianceArtifactWithExecution';
|
|
348
350
|
export type { ComplianceCheck } from './schemas/ComplianceCheck';
|
|
@@ -367,10 +369,13 @@ export type { ComplianceScanType } from './schemas/ComplianceScanType';
|
|
|
367
369
|
export type { ComplianceSourcePlatform } from './schemas/ComplianceSourcePlatform';
|
|
368
370
|
export type { ComplianceStandardType } from './schemas/ComplianceStandardType';
|
|
369
371
|
export type { ComplianceStandardsFilterEntity } from './schemas/ComplianceStandardsFilterEntity';
|
|
372
|
+
export type { ComponentDependenciesResponse } from './schemas/ComponentDependenciesResponse';
|
|
373
|
+
export type { ComponentDependencyItem } from './schemas/ComponentDependencyItem';
|
|
370
374
|
export type { ComponentDrift } from './schemas/ComponentDrift';
|
|
371
375
|
export type { ComponentDriftSummary } from './schemas/ComponentDriftSummary';
|
|
372
376
|
export type { ComponentDto } from './schemas/ComponentDto';
|
|
373
377
|
export type { ComponentFilter } from './schemas/ComponentFilter';
|
|
378
|
+
export type { ComponentParent } from './schemas/ComponentParent';
|
|
374
379
|
export type { ComponentRemediationResponse } from './schemas/ComponentRemediationResponse';
|
|
375
380
|
export type { ComponentSummary } from './schemas/ComponentSummary';
|
|
376
381
|
export type { ComponentVulnerabilityResponse } from './schemas/ComponentVulnerabilityResponse';
|
|
@@ -476,8 +481,6 @@ export type { PluginDto } from './schemas/PluginDto';
|
|
|
476
481
|
export type { PluginResponseBody } from './schemas/PluginResponseBody';
|
|
477
482
|
export type { PolicyViolation } from './schemas/PolicyViolation';
|
|
478
483
|
export type { PolicyViolationRequestBody } from './schemas/PolicyViolationRequestBody';
|
|
479
|
-
export type { ProcessChunkRequest } from './schemas/ProcessChunkRequest';
|
|
480
|
-
export type { ProcessChunkResult } from './schemas/ProcessChunkResult';
|
|
481
484
|
export type { ProvenanceActivity } from './schemas/ProvenanceActivity';
|
|
482
485
|
export type { ProvenanceRequestBody } from './schemas/ProvenanceRequestBody';
|
|
483
486
|
export type { ProvenanceRequestBodyV2 } from './schemas/ProvenanceRequestBodyV2';
|
|
@@ -41,8 +41,10 @@ export { getComplianceEvaluationTrends, useGetComplianceEvaluationTrendsQuery, }
|
|
|
41
41
|
export { getComplianceResultStatsByComplianceChecks, useGetComplianceResultStatsByComplianceChecksMutation, } from './hooks/useGetComplianceResultStatsByComplianceChecksMutation';
|
|
42
42
|
export { getComplianceStandardsFilters, useGetComplianceStandardsFiltersQuery, } from './hooks/useGetComplianceStandardsFiltersQuery';
|
|
43
43
|
export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
|
|
44
|
+
export { getComponentDetailsByPurl, useGetComponentDetailsByPurlQuery, } from './hooks/useGetComponentDetailsByPurlQuery';
|
|
44
45
|
export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
|
|
45
46
|
export { getComponentTicket, useGetComponentTicketQuery } from './hooks/useGetComponentTicketQuery';
|
|
47
|
+
export { getComponentVulnerabilitiesByPurl, useGetComponentVulnerabilitiesByPurlQuery, } from './hooks/useGetComponentVulnerabilitiesByPurlQuery';
|
|
46
48
|
export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
|
|
47
49
|
export { getConnectorConfig, useGetConnectorConfigQuery } from './hooks/useGetConnectorConfigQuery';
|
|
48
50
|
export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { DependencyType } from '../schemas/DependencyType';
|
|
2
2
|
import type { LayerType } from '../schemas/LayerType';
|
|
3
3
|
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
4
|
+
import type { ComponentParent } from '../schemas/ComponentParent';
|
|
4
5
|
import type { VulnerabilitySource } from '../schemas/VulnerabilitySource';
|
|
5
6
|
export interface ArtifactComponentViewResponse {
|
|
6
7
|
dependency_types?: DependencyType[];
|
|
@@ -40,6 +41,10 @@ export interface ArtifactComponentViewResponse {
|
|
|
40
41
|
package_name?: string;
|
|
41
42
|
package_supplier?: string;
|
|
42
43
|
package_version?: string;
|
|
44
|
+
/**
|
|
45
|
+
* List of parent components for the current component
|
|
46
|
+
*/
|
|
47
|
+
parents?: ComponentParent[];
|
|
43
48
|
purl?: string;
|
|
44
49
|
vulnerability_source?: VulnerabilitySource;
|
|
45
50
|
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { AutoPrPreset } from '../schemas/AutoPrPreset';
|
|
2
2
|
import type { AutoPrConfigUpdates } from '../schemas/AutoPrConfigUpdates';
|
|
3
3
|
export interface AutoPrConfigRequestBody {
|
|
4
|
+
/**
|
|
5
|
+
* Organization identifier
|
|
6
|
+
*/
|
|
7
|
+
org_id?: string;
|
|
4
8
|
preset: AutoPrPreset;
|
|
9
|
+
/**
|
|
10
|
+
* Project identifier
|
|
11
|
+
*/
|
|
12
|
+
project_id?: string;
|
|
5
13
|
updates?: AutoPrConfigUpdates;
|
|
6
14
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mode selector for SBOM orchestration requests:
|
|
3
|
+
* - single: Traditional single request with all components (default)
|
|
4
|
+
* - chunk: This request contains a chunk of components
|
|
5
|
+
* - complete: Finalize the chunked session
|
|
6
|
+
*
|
|
7
|
+
* @default "single"
|
|
8
|
+
*/
|
|
9
|
+
export type ChunkingMode = 'chunk' | 'complete' | 'single';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentDependencyItem } from '../schemas/ComponentDependencyItem';
|
|
2
|
+
/**
|
|
3
|
+
* Response containing the parents and dependencies of a component
|
|
4
|
+
*/
|
|
5
|
+
export interface ComponentDependenciesResponse {
|
|
6
|
+
/**
|
|
7
|
+
* List of dependencies of this component
|
|
8
|
+
*/
|
|
9
|
+
dependencies?: ComponentDependencyItem[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
2
|
+
/**
|
|
3
|
+
* A dependency of a component with its relationship and vulnerability info
|
|
4
|
+
*/
|
|
5
|
+
export interface ComponentDependencyItem {
|
|
6
|
+
/**
|
|
7
|
+
* Name of the dependency
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Package URL of the dependency
|
|
12
|
+
*/
|
|
13
|
+
purl?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Whether the dependency is direct or indirect
|
|
16
|
+
*/
|
|
17
|
+
relationship?: 'DIRECT' | 'INDIRECT';
|
|
18
|
+
/**
|
|
19
|
+
* The path through which an indirect dependency is introduced (e.g. "via body-parser")
|
|
20
|
+
*/
|
|
21
|
+
relationship_path?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Version of the dependency
|
|
24
|
+
*/
|
|
25
|
+
version?: string;
|
|
26
|
+
vulnerabilities_count?: StoIssueCount;
|
|
27
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A parent component that depends on this component
|
|
3
|
+
*/
|
|
4
|
+
export interface ComponentParent {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the parent component
|
|
7
|
+
*/
|
|
8
|
+
name?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Package URL of the parent component
|
|
11
|
+
*/
|
|
12
|
+
purl?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Version of the parent component
|
|
15
|
+
*/
|
|
16
|
+
version?: string;
|
|
17
|
+
}
|
|
@@ -1,9 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response fields vary based on the request mode:
|
|
3
|
+
* - For single/complete mode: source_id, artifact, response_url are populated
|
|
4
|
+
* - For chunk mode: session_status, total_components_received, chunk_id are populated
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
1
7
|
export interface PluginResponseBody {
|
|
2
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Artifact details (populated for single/complete mode)
|
|
10
|
+
*/
|
|
11
|
+
artifact?: {
|
|
3
12
|
id?: string;
|
|
4
13
|
name?: string;
|
|
5
14
|
url?: string;
|
|
6
15
|
};
|
|
7
|
-
|
|
8
|
-
|
|
16
|
+
/**
|
|
17
|
+
* The ID of the processed chunk (populated for chunk mode)
|
|
18
|
+
*/
|
|
19
|
+
chunk_id?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Response URL (populated for single/complete mode)
|
|
22
|
+
*/
|
|
23
|
+
response_url?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Session status (populated for chunk mode). RECEIVING indicates chunks are being accepted, COMPLETED indicates all chunks were processed, FAILED indicates the session encountered an error.
|
|
26
|
+
*/
|
|
27
|
+
session_status?: 'COMPLETED' | 'FAILED' | 'RECEIVING';
|
|
28
|
+
/**
|
|
29
|
+
* Source identifier (populated for single/complete mode)
|
|
30
|
+
*/
|
|
31
|
+
source_id?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Total components received so far (populated for chunk mode)
|
|
34
|
+
*/
|
|
35
|
+
total_components_received?: number;
|
|
9
36
|
}
|
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
import type { Artifact } from '../schemas/Artifact';
|
|
2
2
|
import type { Attestation } from '../schemas/Attestation';
|
|
3
|
+
import type { ChunkMetadata } from '../schemas/ChunkMetadata';
|
|
4
|
+
import type { ChunkingMode } from '../schemas/ChunkingMode';
|
|
3
5
|
import type { SbomComponentRequestDto } from '../schemas/SbomComponentRequestDto';
|
|
4
6
|
import type { ExecutionDetail } from '../schemas/ExecutionDetail';
|
|
5
7
|
import type { SbomMetadataV2 } from '../schemas/SbomMetadataV2';
|
|
8
|
+
/**
|
|
9
|
+
* Request body for SBOM orchestration. Fields required depend on chunking_mode:
|
|
10
|
+
* - single: artifact, sbom_metadata, attestation, components required
|
|
11
|
+
* - chunk: components, chunk_metadata (with chunk_id) required
|
|
12
|
+
* - complete: expected_component_count, execution_context, sbom_metadata, attestation required
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
6
15
|
export interface SaveOrchestrationRequestV2 {
|
|
7
|
-
artifact
|
|
8
|
-
attestation
|
|
16
|
+
artifact?: Artifact;
|
|
17
|
+
attestation?: Attestation;
|
|
18
|
+
/**
|
|
19
|
+
* Required when chunking_mode is "chunk"
|
|
20
|
+
*/
|
|
21
|
+
chunk_metadata?: ChunkMetadata;
|
|
22
|
+
chunking_mode?: ChunkingMode;
|
|
9
23
|
components?: SbomComponentRequestDto[];
|
|
10
24
|
execution_context?: ExecutionDetail;
|
|
11
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Required for "complete" mode. Must match the total component count received across all chunks.
|
|
27
|
+
*/
|
|
28
|
+
expected_component_count?: number;
|
|
29
|
+
sbom_metadata?: SbomMetadataV2;
|
|
12
30
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ChunkErrorCode } from '../schemas/ChunkErrorCode';
|
|
2
|
-
/**
|
|
3
|
-
* Error response for chunked processing operations
|
|
4
|
-
*/
|
|
5
|
-
export interface ChunkErrorResponse {
|
|
6
|
-
code: ChunkErrorCode;
|
|
7
|
-
/**
|
|
8
|
-
* Human-readable error message
|
|
9
|
-
* @example "Session is in COMPLETING state, cannot accept more chunks"
|
|
10
|
-
*/
|
|
11
|
-
message: string;
|
|
12
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { Attestation } from '../schemas/Attestation';
|
|
2
|
-
import type { ExecutionDetail } from '../schemas/ExecutionDetail';
|
|
3
|
-
/**
|
|
4
|
-
* Request body for completing the chunked SBOM processing session
|
|
5
|
-
*/
|
|
6
|
-
export interface CompleteProcessingRequest {
|
|
7
|
-
attestation?: Attestation;
|
|
8
|
-
execution_context?: ExecutionDetail;
|
|
9
|
-
/**
|
|
10
|
-
* Expected total number of components (for validation)
|
|
11
|
-
* @example 1500
|
|
12
|
-
*/
|
|
13
|
-
expected_component_count?: number;
|
|
14
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Response body after successfully completing the processing session
|
|
3
|
-
*/
|
|
4
|
-
export interface CompleteProcessingResult {
|
|
5
|
-
/**
|
|
6
|
-
* The created artifact identifier
|
|
7
|
-
* @example "art_xyz789"
|
|
8
|
-
*/
|
|
9
|
-
artifact_id?: string;
|
|
10
|
-
/**
|
|
11
|
-
* The orchestration session identifier
|
|
12
|
-
* @example "orch_abc123"
|
|
13
|
-
*/
|
|
14
|
-
orchestration_id?: string;
|
|
15
|
-
/**
|
|
16
|
-
* The source identifier
|
|
17
|
-
* @example "src_def456"
|
|
18
|
-
*/
|
|
19
|
-
source_id?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Final status of the processing session
|
|
22
|
-
* @example "COMPLETED"
|
|
23
|
-
*/
|
|
24
|
-
status?: 'COMPLETED';
|
|
25
|
-
/**
|
|
26
|
-
* Total number of components processed
|
|
27
|
-
* @example 1500
|
|
28
|
-
*/
|
|
29
|
-
total_components?: number;
|
|
30
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Artifact } from '../schemas/Artifact';
|
|
2
|
-
import type { ChunkMetadata } from '../schemas/ChunkMetadata';
|
|
3
|
-
import type { SbomComponentRequestDto } from '../schemas/SbomComponentRequestDto';
|
|
4
|
-
import type { SbomMetadataV2 } from '../schemas/SbomMetadataV2';
|
|
5
|
-
/**
|
|
6
|
-
* Request body for uploading a chunk of SBOM components
|
|
7
|
-
*/
|
|
8
|
-
export interface ProcessChunkRequest {
|
|
9
|
-
artifact: Artifact;
|
|
10
|
-
chunk_metadata?: ChunkMetadata;
|
|
11
|
-
/**
|
|
12
|
-
* Array of SBOM components in this chunk
|
|
13
|
-
*/
|
|
14
|
-
components: SbomComponentRequestDto[];
|
|
15
|
-
sbom_metadata: SbomMetadataV2;
|
|
16
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Response body after successfully processing a chunk
|
|
3
|
-
*/
|
|
4
|
-
export interface ProcessChunkResult {
|
|
5
|
-
/**
|
|
6
|
-
* The ID of the processed chunk
|
|
7
|
-
* @example "1706284800000-0"
|
|
8
|
-
*/
|
|
9
|
-
chunk_id?: string;
|
|
10
|
-
/**
|
|
11
|
-
* The orchestration session identifier
|
|
12
|
-
* @example "orch_abc123"
|
|
13
|
-
*/
|
|
14
|
-
orchestration_id?: string;
|
|
15
|
-
/**
|
|
16
|
-
* When the session will expire if not completed
|
|
17
|
-
* @format date-time
|
|
18
|
-
* @example "2024-01-26T12:00:00Z"
|
|
19
|
-
*/
|
|
20
|
-
session_expires_at?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Current status of the processing session
|
|
23
|
-
* @example "RECEIVING"
|
|
24
|
-
*/
|
|
25
|
-
status?: 'RECEIVING';
|
|
26
|
-
/**
|
|
27
|
-
* Total number of components received so far in this session
|
|
28
|
-
* @example 500
|
|
29
|
-
*/
|
|
30
|
-
total_components_received?: number;
|
|
31
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/ssca-manager/src/services/schemas/{CompleteProcessingResult.js → ComponentParent.js}
RENAMED
|
File without changes
|