@harnessio/react-ssca-manager-client 0.43.0 → 0.44.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/dist/ssca-manager/src/services/hooks/useCodeRepositoriesListQuery.d.ts +42 -0
- package/dist/ssca-manager/src/services/hooks/useCodeRepositoriesListQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetCodeRepositoryOverviewQuery.d.ts +21 -0
- package/dist/ssca-manager/src/services/hooks/useGetCodeRepositoryOverviewQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetComplianceStandardsMutation.d.ts +5 -0
- package/dist/ssca-manager/src/services/hooks/useGetRepoRulesEvaluationTrendQuery.d.ts +26 -0
- package/dist/ssca-manager/src/services/hooks/useGetRepoRulesEvaluationTrendQuery.js +20 -0
- package/dist/ssca-manager/src/services/index.d.ts +19 -0
- package/dist/ssca-manager/src/services/index.js +3 -0
- package/dist/ssca-manager/src/services/requestBodies/CodeRepositoryListingRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/CodeRepositoryListingRequestBodyRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/responses/CodeRepositoryListingResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/CodeRepositoryListingResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/responses/CodeRepositoryOverviewResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/CodeRepositoryOverviewResponseBodyResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/CodeRepoRulesEvaluation.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/CodeRepoRulesEvaluation.js +4 -0
- package/dist/ssca-manager/src/services/schemas/CodeRepositoryListingRequest.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/CodeRepositoryListingRequest.js +1 -0
- package/dist/ssca-manager/src/services/schemas/CodeRepositoryListingResponse.d.ts +44 -0
- package/dist/ssca-manager/src/services/schemas/CodeRepositoryListingResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/CodeRepositoryOverview.d.ts +16 -0
- package/dist/ssca-manager/src/services/schemas/CodeRepositoryOverview.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceCheck.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/ComplianceEvaluationSummary.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceEvaluationSummary.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceFilter.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/OrchestrationDriftSummary.d.ts +13 -0
- package/dist/ssca-manager/src/services/schemas/OrchestrationDriftSummary.js +4 -0
- package/dist/ssca-manager/src/services/schemas/PipelineDetails.d.ts +39 -0
- package/dist/ssca-manager/src/services/schemas/PipelineDetails.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RiskAndCompliance.d.ts +24 -0
- package/dist/ssca-manager/src/services/schemas/RiskAndCompliance.js +1 -0
- package/dist/ssca-manager/src/services/schemas/SbomInfo.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/SbomInfo.js +4 -0
- package/dist/ssca-manager/src/services/schemas/Scorecard.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/Scorecard.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { CodeRepositoryListingResponseBodyResponse } from '../responses/CodeRepositoryListingResponseBodyResponse';
|
|
3
|
+
import type { CodeRepositoryListingRequestBodyRequestBody } from '../requestBodies/CodeRepositoryListingRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface CodeRepositoriesListQueryPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
}
|
|
10
|
+
export interface CodeRepositoriesListQueryQueryParams {
|
|
11
|
+
/**
|
|
12
|
+
* @default 30
|
|
13
|
+
*/
|
|
14
|
+
limit?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @default "ASC"
|
|
17
|
+
*/
|
|
18
|
+
order?: 'ASC' | 'DESC';
|
|
19
|
+
/**
|
|
20
|
+
* @default 0
|
|
21
|
+
*/
|
|
22
|
+
page?: number;
|
|
23
|
+
/**
|
|
24
|
+
* @default "last-scan"
|
|
25
|
+
*/
|
|
26
|
+
sort?: 'compliance_results' | 'last_scan' | 'name';
|
|
27
|
+
}
|
|
28
|
+
export interface CodeRepositoriesListQueryHeaderParams {
|
|
29
|
+
'Harness-Account': string;
|
|
30
|
+
}
|
|
31
|
+
export type CodeRepositoriesListRequestBody = CodeRepositoryListingRequestBodyRequestBody;
|
|
32
|
+
export type CodeRepositoriesListOkResponse = ResponseWithPagination<CodeRepositoryListingResponseBodyResponse>;
|
|
33
|
+
export type CodeRepositoriesListErrorResponse = unknown;
|
|
34
|
+
export interface CodeRepositoriesListProps extends CodeRepositoriesListQueryPathParams, Omit<FetcherOptions<CodeRepositoriesListQueryQueryParams, CodeRepositoriesListRequestBody, CodeRepositoriesListQueryHeaderParams>, 'url'> {
|
|
35
|
+
queryParams: CodeRepositoriesListQueryQueryParams;
|
|
36
|
+
body: CodeRepositoriesListRequestBody;
|
|
37
|
+
}
|
|
38
|
+
export declare function codeRepositoriesList(props: CodeRepositoriesListProps): Promise<CodeRepositoriesListOkResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* List Code Repositories
|
|
41
|
+
*/
|
|
42
|
+
export declare function useCodeRepositoriesListQuery(props: CodeRepositoriesListProps, options?: Omit<UseQueryOptions<CodeRepositoriesListOkResponse, CodeRepositoriesListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<CodeRepositoriesListOkResponse, 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 codeRepositoriesList(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/code-repos/list`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List Code Repositories
|
|
11
|
+
*/
|
|
12
|
+
export function useCodeRepositoriesListQuery(props, options) {
|
|
13
|
+
return useQuery(['codeRepositoriesList', props.org, props.project, props.queryParams, props.body], ({ signal }) => codeRepositoriesList(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { CodeRepositoryOverviewResponseBodyResponse } from '../responses/CodeRepositoryOverviewResponseBodyResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetCodeRepositoryOverviewQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
'code-repo': string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetCodeRepositoryOverviewQueryHeaderParams {
|
|
11
|
+
'Harness-Account': string;
|
|
12
|
+
}
|
|
13
|
+
export type GetCodeRepositoryOverviewOkResponse = ResponseWithPagination<CodeRepositoryOverviewResponseBodyResponse>;
|
|
14
|
+
export type GetCodeRepositoryOverviewErrorResponse = unknown;
|
|
15
|
+
export interface GetCodeRepositoryOverviewProps extends GetCodeRepositoryOverviewQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetCodeRepositoryOverviewQueryHeaderParams>, 'url'> {
|
|
16
|
+
}
|
|
17
|
+
export declare function getCodeRepositoryOverview(props: GetCodeRepositoryOverviewProps): Promise<GetCodeRepositoryOverviewOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* This API provides overview details of code repository.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useGetCodeRepositoryOverviewQuery(props: GetCodeRepositoryOverviewProps, options?: Omit<UseQueryOptions<GetCodeRepositoryOverviewOkResponse, GetCodeRepositoryOverviewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetCodeRepositoryOverviewOkResponse, 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 getCodeRepositoryOverview(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/code-repos/${props['code-repo']}/overview`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* This API provides overview details of code repository.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetCodeRepositoryOverviewQuery(props, options) {
|
|
13
|
+
return useQuery(['getCodeRepositoryOverview', props.org, props.project, props['code-repo']], ({ signal }) => getCodeRepositoryOverview(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -16,6 +16,11 @@ export interface GetComplianceStandardsMutationQueryParams {
|
|
|
16
16
|
* @default 0
|
|
17
17
|
*/
|
|
18
18
|
page?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @default "ASC"
|
|
21
|
+
*/
|
|
22
|
+
order?: 'ASC' | 'DESC';
|
|
23
|
+
sort?: string;
|
|
19
24
|
}
|
|
20
25
|
export interface GetComplianceStandardsMutationHeaderParams {
|
|
21
26
|
'Harness-Account': string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { CodeRepoRulesEvaluation } from '../schemas/CodeRepoRulesEvaluation';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetRepoRulesEvaluationTrendQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
'code-repo': string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetRepoRulesEvaluationTrendQueryQueryParams {
|
|
11
|
+
start_time: string;
|
|
12
|
+
end_time?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface GetRepoRulesEvaluationTrendQueryHeaderParams {
|
|
15
|
+
'Harness-Account': string;
|
|
16
|
+
}
|
|
17
|
+
export type GetRepoRulesEvaluationTrendOkResponse = ResponseWithPagination<CodeRepoRulesEvaluation[]>;
|
|
18
|
+
export type GetRepoRulesEvaluationTrendErrorResponse = unknown;
|
|
19
|
+
export interface GetRepoRulesEvaluationTrendProps extends GetRepoRulesEvaluationTrendQueryPathParams, Omit<FetcherOptions<GetRepoRulesEvaluationTrendQueryQueryParams, unknown, GetRepoRulesEvaluationTrendQueryHeaderParams>, 'url'> {
|
|
20
|
+
queryParams: GetRepoRulesEvaluationTrendQueryQueryParams;
|
|
21
|
+
}
|
|
22
|
+
export declare function getRepoRulesEvaluationTrend(props: GetRepoRulesEvaluationTrendProps): Promise<GetRepoRulesEvaluationTrendOkResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* GET Repo Rules Evaluation Trend
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGetRepoRulesEvaluationTrendQuery(props: GetRepoRulesEvaluationTrendProps, options?: Omit<UseQueryOptions<GetRepoRulesEvaluationTrendOkResponse, GetRepoRulesEvaluationTrendErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRepoRulesEvaluationTrendOkResponse, unknown>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 getRepoRulesEvaluationTrend(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/code-repos/${props['code-repo']}/rules/evalution-trend`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* GET Repo Rules Evaluation Trend
|
|
11
|
+
*/
|
|
12
|
+
export function useGetRepoRulesEvaluationTrendQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getRepoRulesEvaluationTrend',
|
|
15
|
+
props.org,
|
|
16
|
+
props.project,
|
|
17
|
+
props['code-repo'],
|
|
18
|
+
props.queryParams,
|
|
19
|
+
], ({ signal }) => getRepoRulesEvaluationTrend(Object.assign(Object.assign({}, props), { signal })), options);
|
|
20
|
+
}
|
|
@@ -7,6 +7,8 @@ export type { CheckArtifactAndDeploymentsErrorResponse, CheckArtifactAndDeployme
|
|
|
7
7
|
export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
8
8
|
export type { CloseRemediationTrackerErrorResponse, CloseRemediationTrackerMutationPathParams, CloseRemediationTrackerOkResponse, CloseRemediationTrackerProps, } from './hooks/useCloseRemediationTrackerMutation';
|
|
9
9
|
export { closeRemediationTracker, useCloseRemediationTrackerMutation, } from './hooks/useCloseRemediationTrackerMutation';
|
|
10
|
+
export type { CodeRepositoriesListErrorResponse, CodeRepositoriesListOkResponse, CodeRepositoriesListProps, CodeRepositoriesListQueryPathParams, CodeRepositoriesListQueryQueryParams, CodeRepositoriesListRequestBody, } from './hooks/useCodeRepositoriesListQuery';
|
|
11
|
+
export { codeRepositoriesList, useCodeRepositoriesListQuery, } from './hooks/useCodeRepositoriesListQuery';
|
|
10
12
|
export type { ConfigureReposErrorResponse, ConfigureReposMutationPathParams, ConfigureReposOkResponse, ConfigureReposProps, ConfigureReposRequestBody, } from './hooks/useConfigureReposMutation';
|
|
11
13
|
export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureReposMutation';
|
|
12
14
|
export type { CreateComplianceStandardsErrorResponse, CreateComplianceStandardsMutationPathParams, CreateComplianceStandardsOkResponse, CreateComplianceStandardsProps, CreateComplianceStandardsRequestBody, } from './hooks/useCreateComplianceStandardsMutation';
|
|
@@ -39,6 +41,8 @@ export type { GetArtifactV2DetailComponentViewErrorResponse, GetArtifactV2Detail
|
|
|
39
41
|
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewMutation, } from './hooks/useGetArtifactV2DetailComponentViewMutation';
|
|
40
42
|
export type { GetBaselineForArtifactErrorResponse, GetBaselineForArtifactOkResponse, GetBaselineForArtifactProps, GetBaselineForArtifactQueryPathParams, } from './hooks/useGetBaselineForArtifactQuery';
|
|
41
43
|
export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
|
|
44
|
+
export type { GetCodeRepositoryOverviewErrorResponse, GetCodeRepositoryOverviewOkResponse, GetCodeRepositoryOverviewProps, GetCodeRepositoryOverviewQueryPathParams, } from './hooks/useGetCodeRepositoryOverviewQuery';
|
|
45
|
+
export { getCodeRepositoryOverview, useGetCodeRepositoryOverviewQuery, } from './hooks/useGetCodeRepositoryOverviewQuery';
|
|
42
46
|
export type { GetComplianceStandardsErrorResponse, GetComplianceStandardsMutationPathParams, GetComplianceStandardsMutationQueryParams, GetComplianceStandardsOkResponse, GetComplianceStandardsProps, GetComplianceStandardsRequestBody, } from './hooks/useGetComplianceStandardsMutation';
|
|
43
47
|
export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
|
|
44
48
|
export type { GetComponentDriftErrorResponse, GetComponentDriftOkResponse, GetComponentDriftProps, GetComponentDriftQueryPathParams, GetComponentDriftQueryQueryParams, } from './hooks/useGetComponentDriftQuery';
|
|
@@ -63,6 +67,8 @@ export type { GetProvenanceErrorResponse, GetProvenanceOkResponse, GetProvenance
|
|
|
63
67
|
export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQuery';
|
|
64
68
|
export type { GetRemediationDetailsErrorResponse, GetRemediationDetailsOkResponse, GetRemediationDetailsProps, GetRemediationDetailsQueryPathParams, } from './hooks/useGetRemediationDetailsQuery';
|
|
65
69
|
export { getRemediationDetails, useGetRemediationDetailsQuery, } from './hooks/useGetRemediationDetailsQuery';
|
|
70
|
+
export type { GetRepoRulesEvaluationTrendErrorResponse, GetRepoRulesEvaluationTrendOkResponse, GetRepoRulesEvaluationTrendProps, GetRepoRulesEvaluationTrendQueryPathParams, GetRepoRulesEvaluationTrendQueryQueryParams, } from './hooks/useGetRepoRulesEvaluationTrendQuery';
|
|
71
|
+
export { getRepoRulesEvaluationTrend, useGetRepoRulesEvaluationTrendQuery, } from './hooks/useGetRepoRulesEvaluationTrendQuery';
|
|
66
72
|
export type { GetSbomScorecardErrorResponse, GetSbomScorecardOkResponse, GetSbomScorecardProps, GetSbomScorecardQueryPathParams, } from './hooks/useGetSbomScorecardQuery';
|
|
67
73
|
export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
|
|
68
74
|
export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSummaryProps, GetSscaSummaryQueryPathParams, } from './hooks/useGetSscaSummaryQuery';
|
|
@@ -86,6 +92,7 @@ export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from '
|
|
|
86
92
|
export type { ArtifactListingPipelineRequestBodyRequestBody } from './requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
|
|
87
93
|
export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
88
94
|
export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
|
|
95
|
+
export type { CodeRepositoryListingRequestBodyRequestBody } from './requestBodies/CodeRepositoryListingRequestBodyRequestBody';
|
|
89
96
|
export type { ComplianceStandardsRequestBodyRequestBody } from './requestBodies/ComplianceStandardsRequestBodyRequestBody';
|
|
90
97
|
export type { ConfigureReposRequestRequestBody } from './requestBodies/ConfigureReposRequestRequestBody';
|
|
91
98
|
export type { CreateComplianceStandardRequestBodyRequestBody } from './requestBodies/CreateComplianceStandardRequestBodyRequestBody';
|
|
@@ -107,6 +114,8 @@ export type { ArtifactSbomDriftResponseBodyResponse } from './responses/Artifact
|
|
|
107
114
|
export type { ArtifactSbomResponseBodyResponse } from './responses/ArtifactSbomResponseBodyResponse';
|
|
108
115
|
export type { ArtifactSourcesListingResponseResponse } from './responses/ArtifactSourcesListingResponseResponse';
|
|
109
116
|
export type { BaselineResponseBodyResponse } from './responses/BaselineResponseBodyResponse';
|
|
117
|
+
export type { CodeRepositoryListingResponseBodyResponse } from './responses/CodeRepositoryListingResponseBodyResponse';
|
|
118
|
+
export type { CodeRepositoryOverviewResponseBodyResponse } from './responses/CodeRepositoryOverviewResponseBodyResponse';
|
|
110
119
|
export type { ComplianceStandardsResponseBodyResponse } from './responses/ComplianceStandardsResponseBodyResponse';
|
|
111
120
|
export type { ComponentDriftResponseBodyResponse } from './responses/ComponentDriftResponseBodyResponse';
|
|
112
121
|
export type { ComponentListResponseBodyResponse } from './responses/ComponentListResponseBodyResponse';
|
|
@@ -150,10 +159,15 @@ export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
|
|
|
150
159
|
export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
|
|
151
160
|
export type { CategoryScorecard } from './schemas/CategoryScorecard';
|
|
152
161
|
export type { CategoryScorecardCheck } from './schemas/CategoryScorecardCheck';
|
|
162
|
+
export type { CodeRepoRulesEvaluation } from './schemas/CodeRepoRulesEvaluation';
|
|
163
|
+
export type { CodeRepositoryListingRequest } from './schemas/CodeRepositoryListingRequest';
|
|
164
|
+
export type { CodeRepositoryListingResponse } from './schemas/CodeRepositoryListingResponse';
|
|
165
|
+
export type { CodeRepositoryOverview } from './schemas/CodeRepositoryOverview';
|
|
153
166
|
export type { ComplianceCheck } from './schemas/ComplianceCheck';
|
|
154
167
|
export type { ComplianceCheckEntityType } from './schemas/ComplianceCheckEntityType';
|
|
155
168
|
export type { ComplianceCheckSeverity } from './schemas/ComplianceCheckSeverity';
|
|
156
169
|
export type { ComplianceCheckType } from './schemas/ComplianceCheckType';
|
|
170
|
+
export type { ComplianceEvaluationSummary } from './schemas/ComplianceEvaluationSummary';
|
|
157
171
|
export type { ComplianceFilter } from './schemas/ComplianceFilter';
|
|
158
172
|
export type { ComplianceStandardType } from './schemas/ComplianceStandardType';
|
|
159
173
|
export type { ComponentDrift } from './schemas/ComponentDrift';
|
|
@@ -183,7 +197,9 @@ export type { LicenseUsageResponse } from './schemas/LicenseUsageResponse';
|
|
|
183
197
|
export type { ListIntegrationReposResponse } from './schemas/ListIntegrationReposResponse';
|
|
184
198
|
export type { NameOperator } from './schemas/NameOperator';
|
|
185
199
|
export type { Operator } from './schemas/Operator';
|
|
200
|
+
export type { OrchestrationDriftSummary } from './schemas/OrchestrationDriftSummary';
|
|
186
201
|
export type { OrchestrationModelPipeline } from './schemas/OrchestrationModelPipeline';
|
|
202
|
+
export type { PipelineDetails } from './schemas/PipelineDetails';
|
|
187
203
|
export type { PipelineInfo } from './schemas/PipelineInfo';
|
|
188
204
|
export type { PolicyViolation } from './schemas/PolicyViolation';
|
|
189
205
|
export type { ProvenanceResponseBody } from './schemas/ProvenanceResponseBody';
|
|
@@ -204,9 +220,12 @@ export type { RemediationTrackerUpdateRequestBody } from './schemas/RemediationT
|
|
|
204
220
|
export type { RemediationTrackerUpdateResponseBody } from './schemas/RemediationTrackerUpdateResponseBody';
|
|
205
221
|
export type { RemediationTrackersOverallSummaryResponseBody } from './schemas/RemediationTrackersOverallSummaryResponseBody';
|
|
206
222
|
export type { RepoDetailsDto } from './schemas/RepoDetailsDto';
|
|
223
|
+
export type { RiskAndCompliance } from './schemas/RiskAndCompliance';
|
|
207
224
|
export type { SaveResponse } from './schemas/SaveResponse';
|
|
208
225
|
export type { SbomDetailsForScorecard } from './schemas/SbomDetailsForScorecard';
|
|
226
|
+
export type { SbomInfo } from './schemas/SbomInfo';
|
|
209
227
|
export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseBody';
|
|
228
|
+
export type { Scorecard } from './schemas/Scorecard';
|
|
210
229
|
export type { ScorecardInfo } from './schemas/ScorecardInfo';
|
|
211
230
|
export type { Slsa } from './schemas/Slsa';
|
|
212
231
|
export type { SlsaModelPipeline } from './schemas/SlsaModelPipeline';
|
|
@@ -2,6 +2,7 @@ export { artifactList, useArtifactListQuery } from './hooks/useArtifactListQuery
|
|
|
2
2
|
export { calculateDriftForArtifact, useCalculateDriftForArtifactMutation, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
3
3
|
export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
4
4
|
export { closeRemediationTracker, useCloseRemediationTrackerMutation, } from './hooks/useCloseRemediationTrackerMutation';
|
|
5
|
+
export { codeRepositoriesList, useCodeRepositoriesListQuery, } from './hooks/useCodeRepositoriesListQuery';
|
|
5
6
|
export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureReposMutation';
|
|
6
7
|
export { createComplianceStandards, useCreateComplianceStandardsMutation, } from './hooks/useCreateComplianceStandardsMutation';
|
|
7
8
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
@@ -18,6 +19,7 @@ export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuer
|
|
|
18
19
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
19
20
|
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewMutation, } from './hooks/useGetArtifactV2DetailComponentViewMutation';
|
|
20
21
|
export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
|
|
22
|
+
export { getCodeRepositoryOverview, useGetCodeRepositoryOverviewQuery, } from './hooks/useGetCodeRepositoryOverviewQuery';
|
|
21
23
|
export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
|
|
22
24
|
export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
|
|
23
25
|
export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
|
|
@@ -30,6 +32,7 @@ export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hoo
|
|
|
30
32
|
export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
|
|
31
33
|
export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQuery';
|
|
32
34
|
export { getRemediationDetails, useGetRemediationDetailsQuery, } from './hooks/useGetRemediationDetailsQuery';
|
|
35
|
+
export { getRepoRulesEvaluationTrend, useGetRepoRulesEvaluationTrendQuery, } from './hooks/useGetRepoRulesEvaluationTrendQuery';
|
|
33
36
|
export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
|
|
34
37
|
export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
|
|
35
38
|
export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
|
package/dist/ssca-manager/src/services/requestBodies/CodeRepositoryListingRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/ssca-manager/src/services/responses/CodeRepositoryOverviewResponseBodyResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentFilter } from '../schemas/ComponentFilter';
|
|
2
|
+
import type { LicenseFilter } from '../schemas/LicenseFilter';
|
|
3
|
+
export interface CodeRepositoryListingRequest {
|
|
4
|
+
dependency_filter?: ComponentFilter[];
|
|
5
|
+
license_filter?: LicenseFilter;
|
|
6
|
+
search_term?: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { RiskAndCompliance } from '../schemas/RiskAndCompliance';
|
|
2
|
+
import type { Scorecard } from '../schemas/Scorecard';
|
|
3
|
+
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
4
|
+
import type { ArtifactVariant } from '../schemas/ArtifactVariant';
|
|
5
|
+
export interface CodeRepositoryListingResponse {
|
|
6
|
+
/**
|
|
7
|
+
* Number of dependencies of the repository
|
|
8
|
+
*/
|
|
9
|
+
dependencies_count?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Code Respository ID
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Code Repository Name
|
|
16
|
+
*/
|
|
17
|
+
name?: string;
|
|
18
|
+
orchestration?: {
|
|
19
|
+
/**
|
|
20
|
+
* Orchestration step execution ID for the aritfact.
|
|
21
|
+
*/
|
|
22
|
+
id?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Build pipeline execution Id used for orchestration of the artifact
|
|
25
|
+
*/
|
|
26
|
+
pipeline_execution_id?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Build pipeline Id used for orchestration of the artifact
|
|
29
|
+
*/
|
|
30
|
+
pipeline_id?: string;
|
|
31
|
+
};
|
|
32
|
+
risk_and_compliance?: RiskAndCompliance;
|
|
33
|
+
scorecard?: Scorecard;
|
|
34
|
+
sto_issue_count?: StoIssueCount;
|
|
35
|
+
/**
|
|
36
|
+
* Last updated time of the repository
|
|
37
|
+
*/
|
|
38
|
+
updated?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Code Repository URL
|
|
41
|
+
*/
|
|
42
|
+
url?: string;
|
|
43
|
+
variant?: ArtifactVariant;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ComplianceEvaluationSummary } from '../schemas/ComplianceEvaluationSummary';
|
|
2
|
+
import type { OrchestrationDriftSummary } from '../schemas/OrchestrationDriftSummary';
|
|
3
|
+
import type { SbomInfo } from '../schemas/SbomInfo';
|
|
4
|
+
import type { Scorecard } from '../schemas/Scorecard';
|
|
5
|
+
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
6
|
+
export interface CodeRepositoryOverview {
|
|
7
|
+
branch?: string;
|
|
8
|
+
compliance_summary?: ComplianceEvaluationSummary;
|
|
9
|
+
drift_summary?: OrchestrationDriftSummary;
|
|
10
|
+
last_commit?: string;
|
|
11
|
+
last_evaluation?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
sbom_details?: SbomInfo;
|
|
14
|
+
scorecard?: Scorecard;
|
|
15
|
+
vulnerabilities?: StoIssueCount;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -12,7 +12,7 @@ export interface ComplianceCheck {
|
|
|
12
12
|
compliance_id: string;
|
|
13
13
|
description: string;
|
|
14
14
|
entity: ComplianceCheckEntityType;
|
|
15
|
-
integrations?: string;
|
|
15
|
+
integrations?: string[];
|
|
16
16
|
remediation?: string;
|
|
17
17
|
severity: ComplianceCheckSeverity;
|
|
18
18
|
standards: ComplianceStandardType[];
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { ComplianceCheckEntityType } from '../schemas/ComplianceCheckEntityType';
|
|
2
|
+
import type { ComplianceCheckSeverity } from '../schemas/ComplianceCheckSeverity';
|
|
2
3
|
import type { ComplianceStandardType } from '../schemas/ComplianceStandardType';
|
|
3
4
|
import type { ComplianceCheckType } from '../schemas/ComplianceCheckType';
|
|
4
5
|
export interface ComplianceFilter {
|
|
5
6
|
entity?: ComplianceCheckEntityType;
|
|
7
|
+
search_term?: string;
|
|
8
|
+
severity?: ComplianceCheckSeverity;
|
|
6
9
|
standards?: ComplianceStandardType[];
|
|
7
10
|
type?: ComplianceCheckType;
|
|
8
11
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface OrchestrationDriftSummary {
|
|
2
|
+
base?: string;
|
|
3
|
+
base_tag?: string;
|
|
4
|
+
component_drifts?: number;
|
|
5
|
+
components_added?: number;
|
|
6
|
+
components_deleted?: number;
|
|
7
|
+
components_modified?: number;
|
|
8
|
+
drift_id?: string;
|
|
9
|
+
license_added?: number;
|
|
10
|
+
license_deleted?: number;
|
|
11
|
+
license_drifts?: number;
|
|
12
|
+
total_drifts?: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface PipelineDetails {
|
|
2
|
+
/**
|
|
3
|
+
* Execution Id of the pipeline.
|
|
4
|
+
*/
|
|
5
|
+
execution_id?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Id of the pipeline.
|
|
8
|
+
*/
|
|
9
|
+
id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Name of the pipeline.
|
|
12
|
+
*/
|
|
13
|
+
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Organisation where pipeline is present.
|
|
16
|
+
*/
|
|
17
|
+
org_id?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Project where pipeline is present.
|
|
20
|
+
*/
|
|
21
|
+
project_id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Time of trigger of the deployment pipeline
|
|
24
|
+
* @format int64
|
|
25
|
+
*/
|
|
26
|
+
triggered_at?: number | null;
|
|
27
|
+
/**
|
|
28
|
+
* Name of who trigger the deployment pipeline
|
|
29
|
+
*/
|
|
30
|
+
triggered_by?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Id of who trigger the deployment pipeline
|
|
33
|
+
*/
|
|
34
|
+
triggered_by_id?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Trigger type of the deployment pipeline
|
|
37
|
+
*/
|
|
38
|
+
triggered_type?: string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { PipelineDetails } from '../schemas/PipelineDetails';
|
|
2
|
+
export interface RiskAndCompliance {
|
|
3
|
+
/**
|
|
4
|
+
* The number of Critical-severity compliance Issues
|
|
5
|
+
*/
|
|
6
|
+
critical?: number;
|
|
7
|
+
/**
|
|
8
|
+
* The number of High-severity compliance Issues
|
|
9
|
+
*/
|
|
10
|
+
high?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Timestamp at which the Respository was last scanned
|
|
13
|
+
*/
|
|
14
|
+
last_scanned?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The number of Low-severity compliance Issues
|
|
17
|
+
*/
|
|
18
|
+
low?: number;
|
|
19
|
+
/**
|
|
20
|
+
* The number of Medium-severity compliance Issues
|
|
21
|
+
*/
|
|
22
|
+
medium?: number;
|
|
23
|
+
pipeline_details?: PipelineDetails;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|