@harnessio/react-ssca-manager-client 0.43.0 → 0.45.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/useArtifactListV2Query.d.ts +43 -0
- package/dist/ssca-manager/src/services/hooks/useArtifactListV2Query.js +14 -0
- 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/{useGetArtifactV2DetailComponentViewMutation.d.ts → useGetArtifactV2DetailComponentViewQuery.d.ts} +7 -7
- package/dist/ssca-manager/src/services/hooks/{useGetArtifactV2DetailComponentViewMutation.js → useGetArtifactV2DetailComponentViewQuery.js} +10 -3
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2DetailDeploymentViewQuery.d.ts +43 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2DetailDeploymentViewQuery.js +21 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2OverviewQuery.d.ts +21 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2OverviewQuery.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 +32 -0
- package/dist/ssca-manager/src/services/hooks/useGetRepoRulesEvaluationTrendQuery.js +20 -0
- package/dist/ssca-manager/src/services/index.d.ts +33 -2
- package/dist/ssca-manager/src/services/index.js +7 -1
- 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/ArtifactV2ListingResponseBodyResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/responses/ArtifactV2ListingResponseBodyResponse.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/ArtifactV2ListingResponse.d.ts +80 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactV2ListingResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactV2Overview.d.ts +40 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactV2Overview.js +1 -0
- package/dist/ssca-manager/src/services/schemas/CodeRepoRulesEvaluation.d.ts +11 -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 +31 -0
- package/dist/ssca-manager/src/services/schemas/CodeRepositoryListingResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/CodeRepositoryOverview.d.ts +22 -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 +12 -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/DriftDetailsDto.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/DriftDetailsDto.js +1 -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/dist/ssca-manager/src/services/schemas/SlsaDetails.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/SlsaDetails.js +4 -0
- package/dist/ssca-manager/src/services/schemas/Violations.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/Violations.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactV2ListingResponseBodyResponse } from '../responses/ArtifactV2ListingResponseBodyResponse';
|
|
3
|
+
import type { ArtifactListingRequestBodyRequestBody } from '../requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ArtifactListV2QueryPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
source: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ArtifactListV2QueryQueryParams {
|
|
12
|
+
/**
|
|
13
|
+
* @default 30
|
|
14
|
+
*/
|
|
15
|
+
limit?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @default "ASC"
|
|
18
|
+
*/
|
|
19
|
+
order?: 'ASC' | 'DESC';
|
|
20
|
+
/**
|
|
21
|
+
* @default 0
|
|
22
|
+
*/
|
|
23
|
+
page?: number;
|
|
24
|
+
/**
|
|
25
|
+
* @default "name"
|
|
26
|
+
*/
|
|
27
|
+
sort?: {};
|
|
28
|
+
}
|
|
29
|
+
export interface ArtifactListV2QueryHeaderParams {
|
|
30
|
+
'Harness-Account': string;
|
|
31
|
+
}
|
|
32
|
+
export type ArtifactListV2RequestBody = ArtifactListingRequestBodyRequestBody;
|
|
33
|
+
export type ArtifactListV2OkResponse = ResponseWithPagination<ArtifactV2ListingResponseBodyResponse>;
|
|
34
|
+
export type ArtifactListV2ErrorResponse = unknown;
|
|
35
|
+
export interface ArtifactListV2Props extends ArtifactListV2QueryPathParams, Omit<FetcherOptions<ArtifactListV2QueryQueryParams, ArtifactListV2RequestBody, ArtifactListV2QueryHeaderParams>, 'url'> {
|
|
36
|
+
queryParams: ArtifactListV2QueryQueryParams;
|
|
37
|
+
body: ArtifactListV2RequestBody;
|
|
38
|
+
}
|
|
39
|
+
export declare function artifactListV2(props: ArtifactListV2Props): Promise<ArtifactListV2OkResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* List artifacts
|
|
42
|
+
*/
|
|
43
|
+
export declare function useArtifactListV2Query(props: ArtifactListV2Props, options?: Omit<UseQueryOptions<ArtifactListV2OkResponse, ArtifactListV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ArtifactListV2OkResponse, 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 artifactListV2(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifact-sources/${props.source}/artifacts`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List artifacts
|
|
11
|
+
*/
|
|
12
|
+
export function useArtifactListV2Query(props, options) {
|
|
13
|
+
return useQuery(['artifactListV2', props.org, props.project, props.source, props.queryParams, props.body], ({ signal }) => artifactListV2(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { ArtifactComponentViewResponseBodyResponse } from '../responses/ArtifactComponentViewResponseBodyResponse';
|
|
3
3
|
import type { ArtifactComponentViewRequestBody } from '../schemas/ArtifactComponentViewRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface
|
|
6
|
+
export interface GetArtifactV2DetailComponentViewQueryPathParams {
|
|
7
7
|
org: string;
|
|
8
8
|
project: string;
|
|
9
9
|
artifact: string;
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
11
|
+
export interface GetArtifactV2DetailComponentViewQueryQueryParams {
|
|
12
12
|
/**
|
|
13
13
|
* @default 30
|
|
14
14
|
*/
|
|
@@ -23,18 +23,18 @@ export interface GetArtifactV2DetailComponentViewMutationQueryParams {
|
|
|
23
23
|
page?: number;
|
|
24
24
|
sort?: string;
|
|
25
25
|
}
|
|
26
|
-
export interface
|
|
26
|
+
export interface GetArtifactV2DetailComponentViewQueryHeaderParams {
|
|
27
27
|
'Harness-Account': string;
|
|
28
28
|
}
|
|
29
29
|
export type GetArtifactV2DetailComponentViewRequestBody = ArtifactComponentViewRequestBody;
|
|
30
30
|
export type GetArtifactV2DetailComponentViewOkResponse = ResponseWithPagination<ArtifactComponentViewResponseBodyResponse>;
|
|
31
31
|
export type GetArtifactV2DetailComponentViewErrorResponse = unknown;
|
|
32
|
-
export interface GetArtifactV2DetailComponentViewProps extends
|
|
33
|
-
queryParams:
|
|
32
|
+
export interface GetArtifactV2DetailComponentViewProps extends GetArtifactV2DetailComponentViewQueryPathParams, Omit<FetcherOptions<GetArtifactV2DetailComponentViewQueryQueryParams, GetArtifactV2DetailComponentViewRequestBody, GetArtifactV2DetailComponentViewQueryHeaderParams>, 'url'> {
|
|
33
|
+
queryParams: GetArtifactV2DetailComponentViewQueryQueryParams;
|
|
34
34
|
body: GetArtifactV2DetailComponentViewRequestBody;
|
|
35
35
|
}
|
|
36
36
|
export declare function getArtifactV2DetailComponentView(props: GetArtifactV2DetailComponentViewProps): Promise<GetArtifactV2DetailComponentViewOkResponse>;
|
|
37
37
|
/**
|
|
38
38
|
* Get artifactV2 detail component view
|
|
39
39
|
*/
|
|
40
|
-
export declare function
|
|
40
|
+
export declare function useGetArtifactV2DetailComponentViewQuery(props: GetArtifactV2DetailComponentViewProps, options?: Omit<UseQueryOptions<GetArtifactV2DetailComponentViewOkResponse, GetArtifactV2DetailComponentViewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactV2DetailComponentViewOkResponse, unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
3
|
// Please do not modify this code directly.
|
|
4
|
-
import {
|
|
4
|
+
import { useQuery } from '@tanstack/react-query';
|
|
5
5
|
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
6
|
export function getArtifactV2DetailComponentView(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/components`, method: 'POST' }, props));
|
|
@@ -9,6 +9,13 @@ export function getArtifactV2DetailComponentView(props) {
|
|
|
9
9
|
/**
|
|
10
10
|
* Get artifactV2 detail component view
|
|
11
11
|
*/
|
|
12
|
-
export function
|
|
13
|
-
return
|
|
12
|
+
export function useGetArtifactV2DetailComponentViewQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getArtifactV2DetailComponentView',
|
|
15
|
+
props.org,
|
|
16
|
+
props.project,
|
|
17
|
+
props.artifact,
|
|
18
|
+
props.queryParams,
|
|
19
|
+
props.body,
|
|
20
|
+
], ({ signal }) => getArtifactV2DetailComponentView(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
21
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactDeploymentViewResponseBodyResponse } from '../responses/ArtifactDeploymentViewResponseBodyResponse';
|
|
3
|
+
import type { ArtifactDeploymentViewRequestBody } from '../schemas/ArtifactDeploymentViewRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetArtifactV2DetailDeploymentViewQueryPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
artifact: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetArtifactV2DetailDeploymentViewQueryQueryParams {
|
|
12
|
+
/**
|
|
13
|
+
* @default 30
|
|
14
|
+
*/
|
|
15
|
+
limit?: number;
|
|
16
|
+
/**
|
|
17
|
+
* @default "ASC"
|
|
18
|
+
*/
|
|
19
|
+
order?: 'ASC' | 'DESC';
|
|
20
|
+
/**
|
|
21
|
+
* @default 0
|
|
22
|
+
*/
|
|
23
|
+
page?: number;
|
|
24
|
+
/**
|
|
25
|
+
* @default "env_name"
|
|
26
|
+
*/
|
|
27
|
+
sort?: {};
|
|
28
|
+
}
|
|
29
|
+
export interface GetArtifactV2DetailDeploymentViewQueryHeaderParams {
|
|
30
|
+
'Harness-Account': string;
|
|
31
|
+
}
|
|
32
|
+
export type GetArtifactV2DetailDeploymentViewRequestBody = ArtifactDeploymentViewRequestBody;
|
|
33
|
+
export type GetArtifactV2DetailDeploymentViewOkResponse = ResponseWithPagination<ArtifactDeploymentViewResponseBodyResponse>;
|
|
34
|
+
export type GetArtifactV2DetailDeploymentViewErrorResponse = unknown | ArtifactDeploymentViewResponseBodyResponse;
|
|
35
|
+
export interface GetArtifactV2DetailDeploymentViewProps extends GetArtifactV2DetailDeploymentViewQueryPathParams, Omit<FetcherOptions<GetArtifactV2DetailDeploymentViewQueryQueryParams, GetArtifactV2DetailDeploymentViewRequestBody, GetArtifactV2DetailDeploymentViewQueryHeaderParams>, 'url'> {
|
|
36
|
+
queryParams: GetArtifactV2DetailDeploymentViewQueryQueryParams;
|
|
37
|
+
body: GetArtifactV2DetailDeploymentViewRequestBody;
|
|
38
|
+
}
|
|
39
|
+
export declare function getArtifactV2DetailDeploymentView(props: GetArtifactV2DetailDeploymentViewProps): Promise<GetArtifactV2DetailDeploymentViewOkResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Get artifactV2 detail deployment view
|
|
42
|
+
*/
|
|
43
|
+
export declare function useGetArtifactV2DetailDeploymentViewQuery(props: GetArtifactV2DetailDeploymentViewProps, options?: Omit<UseQueryOptions<GetArtifactV2DetailDeploymentViewOkResponse, GetArtifactV2DetailDeploymentViewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactV2DetailDeploymentViewOkResponse, 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 getArtifactV2DetailDeploymentView(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/deployments`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get artifactV2 detail deployment view
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactV2DetailDeploymentViewQuery(props, options) {
|
|
13
|
+
return useQuery([
|
|
14
|
+
'getArtifactV2DetailDeploymentView',
|
|
15
|
+
props.org,
|
|
16
|
+
props.project,
|
|
17
|
+
props.artifact,
|
|
18
|
+
props.queryParams,
|
|
19
|
+
props.body,
|
|
20
|
+
], ({ signal }) => getArtifactV2DetailDeploymentView(Object.assign(Object.assign({}, props), { signal })), options);
|
|
21
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactV2Overview } from '../schemas/ArtifactV2Overview';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetArtifactV2OverviewQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
artifact: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetArtifactV2OverviewQueryHeaderParams {
|
|
11
|
+
'Harness-Account': string;
|
|
12
|
+
}
|
|
13
|
+
export type GetArtifactV2OverviewOkResponse = ResponseWithPagination<ArtifactV2Overview>;
|
|
14
|
+
export type GetArtifactV2OverviewErrorResponse = unknown;
|
|
15
|
+
export interface GetArtifactV2OverviewProps extends GetArtifactV2OverviewQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetArtifactV2OverviewQueryHeaderParams>, 'url'> {
|
|
16
|
+
}
|
|
17
|
+
export declare function getArtifactV2Overview(props: GetArtifactV2OverviewProps): Promise<GetArtifactV2OverviewOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get ArtifactV2 Overview
|
|
20
|
+
*/
|
|
21
|
+
export declare function useGetArtifactV2OverviewQuery(props: GetArtifactV2OverviewProps, options?: Omit<UseQueryOptions<GetArtifactV2OverviewOkResponse, GetArtifactV2OverviewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactV2OverviewOkResponse, 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 getArtifactV2Overview(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/overview`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get ArtifactV2 Overview
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactV2OverviewQuery(props, options) {
|
|
13
|
+
return useQuery(['getArtifactV2Overview', props.org, props.project, props.artifact], ({ signal }) => getArtifactV2Overview(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,32 @@
|
|
|
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
|
+
/**
|
|
12
|
+
* @format int64
|
|
13
|
+
*/
|
|
14
|
+
start_time: number;
|
|
15
|
+
/**
|
|
16
|
+
* @format int64
|
|
17
|
+
*/
|
|
18
|
+
end_time?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface GetRepoRulesEvaluationTrendQueryHeaderParams {
|
|
21
|
+
'Harness-Account': string;
|
|
22
|
+
}
|
|
23
|
+
export type GetRepoRulesEvaluationTrendOkResponse = ResponseWithPagination<CodeRepoRulesEvaluation[]>;
|
|
24
|
+
export type GetRepoRulesEvaluationTrendErrorResponse = unknown;
|
|
25
|
+
export interface GetRepoRulesEvaluationTrendProps extends GetRepoRulesEvaluationTrendQueryPathParams, Omit<FetcherOptions<GetRepoRulesEvaluationTrendQueryQueryParams, unknown, GetRepoRulesEvaluationTrendQueryHeaderParams>, 'url'> {
|
|
26
|
+
queryParams: GetRepoRulesEvaluationTrendQueryQueryParams;
|
|
27
|
+
}
|
|
28
|
+
export declare function getRepoRulesEvaluationTrend(props: GetRepoRulesEvaluationTrendProps): Promise<GetRepoRulesEvaluationTrendOkResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* GET Repo Rules Evaluation Trend
|
|
31
|
+
*/
|
|
32
|
+
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
|
+
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
export type { GetPathParamsType, ResponseWithPagination } from './helpers';
|
|
2
2
|
export type { ArtifactListErrorResponse, ArtifactListOkResponse, ArtifactListProps, ArtifactListQueryPathParams, ArtifactListQueryQueryParams, ArtifactListRequestBody, } from './hooks/useArtifactListQuery';
|
|
3
3
|
export { artifactList, useArtifactListQuery } from './hooks/useArtifactListQuery';
|
|
4
|
+
export type { ArtifactListV2ErrorResponse, ArtifactListV2OkResponse, ArtifactListV2Props, ArtifactListV2QueryPathParams, ArtifactListV2QueryQueryParams, ArtifactListV2RequestBody, } from './hooks/useArtifactListV2Query';
|
|
5
|
+
export { artifactListV2, useArtifactListV2Query } from './hooks/useArtifactListV2Query';
|
|
4
6
|
export type { CalculateDriftForArtifactErrorResponse, CalculateDriftForArtifactMutationPathParams, CalculateDriftForArtifactOkResponse, CalculateDriftForArtifactProps, CalculateDriftForArtifactRequestBody, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
5
7
|
export { calculateDriftForArtifact, useCalculateDriftForArtifactMutation, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
6
8
|
export type { CheckArtifactAndDeploymentsErrorResponse, CheckArtifactAndDeploymentsMutationPathParams, CheckArtifactAndDeploymentsOkResponse, CheckArtifactAndDeploymentsProps, CheckArtifactAndDeploymentsRequestBody, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
7
9
|
export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
8
10
|
export type { CloseRemediationTrackerErrorResponse, CloseRemediationTrackerMutationPathParams, CloseRemediationTrackerOkResponse, CloseRemediationTrackerProps, } from './hooks/useCloseRemediationTrackerMutation';
|
|
9
11
|
export { closeRemediationTracker, useCloseRemediationTrackerMutation, } from './hooks/useCloseRemediationTrackerMutation';
|
|
12
|
+
export type { CodeRepositoriesListErrorResponse, CodeRepositoriesListOkResponse, CodeRepositoriesListProps, CodeRepositoriesListQueryPathParams, CodeRepositoriesListQueryQueryParams, CodeRepositoriesListRequestBody, } from './hooks/useCodeRepositoriesListQuery';
|
|
13
|
+
export { codeRepositoriesList, useCodeRepositoriesListQuery, } from './hooks/useCodeRepositoriesListQuery';
|
|
10
14
|
export type { ConfigureReposErrorResponse, ConfigureReposMutationPathParams, ConfigureReposOkResponse, ConfigureReposProps, ConfigureReposRequestBody, } from './hooks/useConfigureReposMutation';
|
|
11
15
|
export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureReposMutation';
|
|
12
16
|
export type { CreateComplianceStandardsErrorResponse, CreateComplianceStandardsMutationPathParams, CreateComplianceStandardsOkResponse, CreateComplianceStandardsProps, CreateComplianceStandardsRequestBody, } from './hooks/useCreateComplianceStandardsMutation';
|
|
@@ -35,10 +39,16 @@ export type { GetArtifactInRemediationDetailsErrorResponse, GetArtifactInRemedia
|
|
|
35
39
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
36
40
|
export type { GetArtifactListForRemediationErrorResponse, GetArtifactListForRemediationOkResponse, GetArtifactListForRemediationProps, GetArtifactListForRemediationQueryPathParams, GetArtifactListForRemediationQueryQueryParams, GetArtifactListForRemediationRequestBody, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
37
41
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
38
|
-
export type { GetArtifactV2DetailComponentViewErrorResponse,
|
|
39
|
-
export { getArtifactV2DetailComponentView,
|
|
42
|
+
export type { GetArtifactV2DetailComponentViewErrorResponse, GetArtifactV2DetailComponentViewOkResponse, GetArtifactV2DetailComponentViewProps, GetArtifactV2DetailComponentViewQueryPathParams, GetArtifactV2DetailComponentViewQueryQueryParams, GetArtifactV2DetailComponentViewRequestBody, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
43
|
+
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
44
|
+
export type { GetArtifactV2DetailDeploymentViewErrorResponse, GetArtifactV2DetailDeploymentViewOkResponse, GetArtifactV2DetailDeploymentViewProps, GetArtifactV2DetailDeploymentViewQueryPathParams, GetArtifactV2DetailDeploymentViewQueryQueryParams, GetArtifactV2DetailDeploymentViewRequestBody, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
|
|
45
|
+
export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
|
|
46
|
+
export type { GetArtifactV2OverviewErrorResponse, GetArtifactV2OverviewOkResponse, GetArtifactV2OverviewProps, GetArtifactV2OverviewQueryPathParams, } from './hooks/useGetArtifactV2OverviewQuery';
|
|
47
|
+
export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
|
|
40
48
|
export type { GetBaselineForArtifactErrorResponse, GetBaselineForArtifactOkResponse, GetBaselineForArtifactProps, GetBaselineForArtifactQueryPathParams, } from './hooks/useGetBaselineForArtifactQuery';
|
|
41
49
|
export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
|
|
50
|
+
export type { GetCodeRepositoryOverviewErrorResponse, GetCodeRepositoryOverviewOkResponse, GetCodeRepositoryOverviewProps, GetCodeRepositoryOverviewQueryPathParams, } from './hooks/useGetCodeRepositoryOverviewQuery';
|
|
51
|
+
export { getCodeRepositoryOverview, useGetCodeRepositoryOverviewQuery, } from './hooks/useGetCodeRepositoryOverviewQuery';
|
|
42
52
|
export type { GetComplianceStandardsErrorResponse, GetComplianceStandardsMutationPathParams, GetComplianceStandardsMutationQueryParams, GetComplianceStandardsOkResponse, GetComplianceStandardsProps, GetComplianceStandardsRequestBody, } from './hooks/useGetComplianceStandardsMutation';
|
|
43
53
|
export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
|
|
44
54
|
export type { GetComponentDriftErrorResponse, GetComponentDriftOkResponse, GetComponentDriftProps, GetComponentDriftQueryPathParams, GetComponentDriftQueryQueryParams, } from './hooks/useGetComponentDriftQuery';
|
|
@@ -63,6 +73,8 @@ export type { GetProvenanceErrorResponse, GetProvenanceOkResponse, GetProvenance
|
|
|
63
73
|
export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQuery';
|
|
64
74
|
export type { GetRemediationDetailsErrorResponse, GetRemediationDetailsOkResponse, GetRemediationDetailsProps, GetRemediationDetailsQueryPathParams, } from './hooks/useGetRemediationDetailsQuery';
|
|
65
75
|
export { getRemediationDetails, useGetRemediationDetailsQuery, } from './hooks/useGetRemediationDetailsQuery';
|
|
76
|
+
export type { GetRepoRulesEvaluationTrendErrorResponse, GetRepoRulesEvaluationTrendOkResponse, GetRepoRulesEvaluationTrendProps, GetRepoRulesEvaluationTrendQueryPathParams, GetRepoRulesEvaluationTrendQueryQueryParams, } from './hooks/useGetRepoRulesEvaluationTrendQuery';
|
|
77
|
+
export { getRepoRulesEvaluationTrend, useGetRepoRulesEvaluationTrendQuery, } from './hooks/useGetRepoRulesEvaluationTrendQuery';
|
|
66
78
|
export type { GetSbomScorecardErrorResponse, GetSbomScorecardOkResponse, GetSbomScorecardProps, GetSbomScorecardQueryPathParams, } from './hooks/useGetSbomScorecardQuery';
|
|
67
79
|
export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
|
|
68
80
|
export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSummaryProps, GetSscaSummaryQueryPathParams, } from './hooks/useGetSscaSummaryQuery';
|
|
@@ -86,6 +98,7 @@ export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from '
|
|
|
86
98
|
export type { ArtifactListingPipelineRequestBodyRequestBody } from './requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
|
|
87
99
|
export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
88
100
|
export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
|
|
101
|
+
export type { CodeRepositoryListingRequestBodyRequestBody } from './requestBodies/CodeRepositoryListingRequestBodyRequestBody';
|
|
89
102
|
export type { ComplianceStandardsRequestBodyRequestBody } from './requestBodies/ComplianceStandardsRequestBodyRequestBody';
|
|
90
103
|
export type { ConfigureReposRequestRequestBody } from './requestBodies/ConfigureReposRequestRequestBody';
|
|
91
104
|
export type { CreateComplianceStandardRequestBodyRequestBody } from './requestBodies/CreateComplianceStandardRequestBodyRequestBody';
|
|
@@ -106,7 +119,10 @@ export type { ArtifactListingResponsePipelineBodyResponse } from './responses/Ar
|
|
|
106
119
|
export type { ArtifactSbomDriftResponseBodyResponse } from './responses/ArtifactSbomDriftResponseBodyResponse';
|
|
107
120
|
export type { ArtifactSbomResponseBodyResponse } from './responses/ArtifactSbomResponseBodyResponse';
|
|
108
121
|
export type { ArtifactSourcesListingResponseResponse } from './responses/ArtifactSourcesListingResponseResponse';
|
|
122
|
+
export type { ArtifactV2ListingResponseBodyResponse } from './responses/ArtifactV2ListingResponseBodyResponse';
|
|
109
123
|
export type { BaselineResponseBodyResponse } from './responses/BaselineResponseBodyResponse';
|
|
124
|
+
export type { CodeRepositoryListingResponseBodyResponse } from './responses/CodeRepositoryListingResponseBodyResponse';
|
|
125
|
+
export type { CodeRepositoryOverviewResponseBodyResponse } from './responses/CodeRepositoryOverviewResponseBodyResponse';
|
|
110
126
|
export type { ComplianceStandardsResponseBodyResponse } from './responses/ComplianceStandardsResponseBodyResponse';
|
|
111
127
|
export type { ComponentDriftResponseBodyResponse } from './responses/ComponentDriftResponseBodyResponse';
|
|
112
128
|
export type { ComponentListResponseBodyResponse } from './responses/ComponentListResponseBodyResponse';
|
|
@@ -145,15 +161,22 @@ export type { ArtifactSbomDriftRequestBody } from './schemas/ArtifactSbomDriftRe
|
|
|
145
161
|
export type { ArtifactSbomDriftResponse } from './schemas/ArtifactSbomDriftResponse';
|
|
146
162
|
export type { ArtifactSbomResponseBody } from './schemas/ArtifactSbomResponseBody';
|
|
147
163
|
export type { ArtifactSourcesListingResponse } from './schemas/ArtifactSourcesListingResponse';
|
|
164
|
+
export type { ArtifactV2ListingResponse } from './schemas/ArtifactV2ListingResponse';
|
|
165
|
+
export type { ArtifactV2Overview } from './schemas/ArtifactV2Overview';
|
|
148
166
|
export type { ArtifactVariant } from './schemas/ArtifactVariant';
|
|
149
167
|
export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
|
|
150
168
|
export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
|
|
151
169
|
export type { CategoryScorecard } from './schemas/CategoryScorecard';
|
|
152
170
|
export type { CategoryScorecardCheck } from './schemas/CategoryScorecardCheck';
|
|
171
|
+
export type { CodeRepoRulesEvaluation } from './schemas/CodeRepoRulesEvaluation';
|
|
172
|
+
export type { CodeRepositoryListingRequest } from './schemas/CodeRepositoryListingRequest';
|
|
173
|
+
export type { CodeRepositoryListingResponse } from './schemas/CodeRepositoryListingResponse';
|
|
174
|
+
export type { CodeRepositoryOverview } from './schemas/CodeRepositoryOverview';
|
|
153
175
|
export type { ComplianceCheck } from './schemas/ComplianceCheck';
|
|
154
176
|
export type { ComplianceCheckEntityType } from './schemas/ComplianceCheckEntityType';
|
|
155
177
|
export type { ComplianceCheckSeverity } from './schemas/ComplianceCheckSeverity';
|
|
156
178
|
export type { ComplianceCheckType } from './schemas/ComplianceCheckType';
|
|
179
|
+
export type { ComplianceEvaluationSummary } from './schemas/ComplianceEvaluationSummary';
|
|
157
180
|
export type { ComplianceFilter } from './schemas/ComplianceFilter';
|
|
158
181
|
export type { ComplianceStandardType } from './schemas/ComplianceStandardType';
|
|
159
182
|
export type { ComponentDrift } from './schemas/ComponentDrift';
|
|
@@ -168,6 +191,7 @@ export type { CreateTicketRequest } from './schemas/CreateTicketRequest';
|
|
|
168
191
|
export type { CreateTicketResponse } from './schemas/CreateTicketResponse';
|
|
169
192
|
export type { Deployments } from './schemas/Deployments';
|
|
170
193
|
export type { DeploymentsCount } from './schemas/DeploymentsCount';
|
|
194
|
+
export type { DriftDetailsDto } from './schemas/DriftDetailsDto';
|
|
171
195
|
export type { EnforcementModelPipeline } from './schemas/EnforcementModelPipeline';
|
|
172
196
|
export type { EnvironmentInfo } from './schemas/EnvironmentInfo';
|
|
173
197
|
export type { EnvironmentType } from './schemas/EnvironmentType';
|
|
@@ -183,7 +207,9 @@ export type { LicenseUsageResponse } from './schemas/LicenseUsageResponse';
|
|
|
183
207
|
export type { ListIntegrationReposResponse } from './schemas/ListIntegrationReposResponse';
|
|
184
208
|
export type { NameOperator } from './schemas/NameOperator';
|
|
185
209
|
export type { Operator } from './schemas/Operator';
|
|
210
|
+
export type { OrchestrationDriftSummary } from './schemas/OrchestrationDriftSummary';
|
|
186
211
|
export type { OrchestrationModelPipeline } from './schemas/OrchestrationModelPipeline';
|
|
212
|
+
export type { PipelineDetails } from './schemas/PipelineDetails';
|
|
187
213
|
export type { PipelineInfo } from './schemas/PipelineInfo';
|
|
188
214
|
export type { PolicyViolation } from './schemas/PolicyViolation';
|
|
189
215
|
export type { ProvenanceResponseBody } from './schemas/ProvenanceResponseBody';
|
|
@@ -204,14 +230,19 @@ export type { RemediationTrackerUpdateRequestBody } from './schemas/RemediationT
|
|
|
204
230
|
export type { RemediationTrackerUpdateResponseBody } from './schemas/RemediationTrackerUpdateResponseBody';
|
|
205
231
|
export type { RemediationTrackersOverallSummaryResponseBody } from './schemas/RemediationTrackersOverallSummaryResponseBody';
|
|
206
232
|
export type { RepoDetailsDto } from './schemas/RepoDetailsDto';
|
|
233
|
+
export type { RiskAndCompliance } from './schemas/RiskAndCompliance';
|
|
207
234
|
export type { SaveResponse } from './schemas/SaveResponse';
|
|
208
235
|
export type { SbomDetailsForScorecard } from './schemas/SbomDetailsForScorecard';
|
|
236
|
+
export type { SbomInfo } from './schemas/SbomInfo';
|
|
209
237
|
export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseBody';
|
|
238
|
+
export type { Scorecard } from './schemas/Scorecard';
|
|
210
239
|
export type { ScorecardInfo } from './schemas/ScorecardInfo';
|
|
211
240
|
export type { Slsa } from './schemas/Slsa';
|
|
241
|
+
export type { SlsaDetails } from './schemas/SlsaDetails';
|
|
212
242
|
export type { SlsaModelPipeline } from './schemas/SlsaModelPipeline';
|
|
213
243
|
export type { SscaSummary } from './schemas/SscaSummary';
|
|
214
244
|
export type { StoIssueCount } from './schemas/StoIssueCount';
|
|
215
245
|
export type { TicketInfo } from './schemas/TicketInfo';
|
|
246
|
+
export type { Violations } from './schemas/Violations';
|
|
216
247
|
export type { VulnerabilityInfo } from './schemas/VulnerabilityInfo';
|
|
217
248
|
export type { VulnerabilitySeverity } from './schemas/VulnerabilitySeverity';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export { artifactList, useArtifactListQuery } from './hooks/useArtifactListQuery';
|
|
2
|
+
export { artifactListV2, useArtifactListV2Query } from './hooks/useArtifactListV2Query';
|
|
2
3
|
export { calculateDriftForArtifact, useCalculateDriftForArtifactMutation, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
3
4
|
export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
4
5
|
export { closeRemediationTracker, useCloseRemediationTrackerMutation, } from './hooks/useCloseRemediationTrackerMutation';
|
|
6
|
+
export { codeRepositoriesList, useCodeRepositoriesListQuery, } from './hooks/useCodeRepositoriesListQuery';
|
|
5
7
|
export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureReposMutation';
|
|
6
8
|
export { createComplianceStandards, useCreateComplianceStandardsMutation, } from './hooks/useCreateComplianceStandardsMutation';
|
|
7
9
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
@@ -16,8 +18,11 @@ export { getArtifactDetailDeploymentView, useGetArtifactDetailDeploymentViewQuer
|
|
|
16
18
|
export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
|
|
17
19
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
18
20
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
19
|
-
export { getArtifactV2DetailComponentView,
|
|
21
|
+
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
22
|
+
export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
|
|
23
|
+
export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
|
|
20
24
|
export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
|
|
25
|
+
export { getCodeRepositoryOverview, useGetCodeRepositoryOverviewQuery, } from './hooks/useGetCodeRepositoryOverviewQuery';
|
|
21
26
|
export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
|
|
22
27
|
export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
|
|
23
28
|
export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
|
|
@@ -30,6 +35,7 @@ export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hoo
|
|
|
30
35
|
export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
|
|
31
36
|
export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQuery';
|
|
32
37
|
export { getRemediationDetails, useGetRemediationDetailsQuery, } from './hooks/useGetRemediationDetailsQuery';
|
|
38
|
+
export { getRepoRulesEvaluationTrend, useGetRepoRulesEvaluationTrendQuery, } from './hooks/useGetRepoRulesEvaluationTrendQuery';
|
|
33
39
|
export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
|
|
34
40
|
export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
|
|
35
41
|
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 {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/ssca-manager/src/services/responses/CodeRepositoryOverviewResponseBodyResponse.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
2
|
+
export interface ArtifactV2ListingResponse {
|
|
3
|
+
/**
|
|
4
|
+
* Number of components of the artifact
|
|
5
|
+
*/
|
|
6
|
+
components_count?: number;
|
|
7
|
+
deployment?: {
|
|
8
|
+
/**
|
|
9
|
+
* Count of pre-production environment this artifact is currently deployed.
|
|
10
|
+
*/
|
|
11
|
+
non_prod_env_count?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Count of production environment this artifact is currently deployed.
|
|
14
|
+
*/
|
|
15
|
+
prod_env_count?: number;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Digest of the Artifact
|
|
19
|
+
*/
|
|
20
|
+
digest?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Artifact ID
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
metadata?: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Artifact Name
|
|
30
|
+
*/
|
|
31
|
+
name?: string;
|
|
32
|
+
orchestration?: {
|
|
33
|
+
/**
|
|
34
|
+
* Orchestration step execution ID for the aritfact.
|
|
35
|
+
*/
|
|
36
|
+
id?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Build pipeline execution Id used for orchestration of the artifact
|
|
39
|
+
*/
|
|
40
|
+
pipeline_execution_id?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Build pipeline Id used for orchestration of the artifact
|
|
43
|
+
*/
|
|
44
|
+
pipeline_id?: string;
|
|
45
|
+
};
|
|
46
|
+
policy_enforcement?: {
|
|
47
|
+
/**
|
|
48
|
+
* Count of the allow list policy violations
|
|
49
|
+
*/
|
|
50
|
+
allow_list_violation_count?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Count of the deny list policy violations
|
|
53
|
+
*/
|
|
54
|
+
deny_list_violation_count?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Enforcement Step Id for the artifact lastest enfrocement.
|
|
57
|
+
*/
|
|
58
|
+
id?: string;
|
|
59
|
+
};
|
|
60
|
+
scorecard?: {
|
|
61
|
+
/**
|
|
62
|
+
* Average score of the artifact SBOM
|
|
63
|
+
*/
|
|
64
|
+
avg_score?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Maximum score of the artifact SBOM
|
|
67
|
+
*/
|
|
68
|
+
max_score?: string;
|
|
69
|
+
};
|
|
70
|
+
sto_issue_count?: StoIssueCount;
|
|
71
|
+
tags?: string[];
|
|
72
|
+
/**
|
|
73
|
+
* Last updated time of the artifact
|
|
74
|
+
*/
|
|
75
|
+
updated?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Artifact Origin URL
|
|
78
|
+
*/
|
|
79
|
+
url?: string;
|
|
80
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Deployments } from '../schemas/Deployments';
|
|
2
|
+
import type { PipelineDetails } from '../schemas/PipelineDetails';
|
|
3
|
+
import type { SbomInfo } from '../schemas/SbomInfo';
|
|
4
|
+
import type { Scorecard } from '../schemas/Scorecard';
|
|
5
|
+
import type { SlsaDetails } from '../schemas/SlsaDetails';
|
|
6
|
+
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
7
|
+
import type { Violations } from '../schemas/Violations';
|
|
8
|
+
export interface ArtifactV2Overview {
|
|
9
|
+
deployments?: Deployments;
|
|
10
|
+
/**
|
|
11
|
+
* digest of the artifact
|
|
12
|
+
*/
|
|
13
|
+
digest?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Artifact Identifier
|
|
16
|
+
*/
|
|
17
|
+
id?: string;
|
|
18
|
+
metadata?: {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Artifact Name
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
pipeline_details?: PipelineDetails;
|
|
26
|
+
sbom_details?: SbomInfo;
|
|
27
|
+
scorecard?: Scorecard;
|
|
28
|
+
slsa_details?: SlsaDetails;
|
|
29
|
+
sto_issue_count?: StoIssueCount;
|
|
30
|
+
tags?: string[];
|
|
31
|
+
/**
|
|
32
|
+
* Last Updated time of artifact
|
|
33
|
+
*/
|
|
34
|
+
updated?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Artifact URL
|
|
37
|
+
*/
|
|
38
|
+
url: string;
|
|
39
|
+
violations?: Violations;
|
|
40
|
+
}
|
|
@@ -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,31 @@
|
|
|
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_id?: string;
|
|
19
|
+
risk_and_compliance?: RiskAndCompliance;
|
|
20
|
+
scorecard?: Scorecard;
|
|
21
|
+
sto_issue_count?: StoIssueCount;
|
|
22
|
+
/**
|
|
23
|
+
* Last updated time of the repository
|
|
24
|
+
*/
|
|
25
|
+
updated?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Code Repository URL
|
|
28
|
+
*/
|
|
29
|
+
url?: string;
|
|
30
|
+
variant?: ArtifactVariant;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ComplianceEvaluationSummary } from '../schemas/ComplianceEvaluationSummary';
|
|
2
|
+
import type { DriftDetailsDto } from '../schemas/DriftDetailsDto';
|
|
3
|
+
import type { SbomInfo } from '../schemas/SbomInfo';
|
|
4
|
+
import type { Scorecard } from '../schemas/Scorecard';
|
|
5
|
+
import type { ArtifactVariant } from '../schemas/ArtifactVariant';
|
|
6
|
+
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
7
|
+
export interface CodeRepositoryOverview {
|
|
8
|
+
compliance_summary?: ComplianceEvaluationSummary;
|
|
9
|
+
drift_summary?: DriftDetailsDto;
|
|
10
|
+
last_commit?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @format int64
|
|
13
|
+
*/
|
|
14
|
+
last_evaluation?: number;
|
|
15
|
+
name: string;
|
|
16
|
+
repo_identifier: string;
|
|
17
|
+
sbom_details?: SbomInfo;
|
|
18
|
+
scorecard?: Scorecard;
|
|
19
|
+
url: string;
|
|
20
|
+
variant?: ArtifactVariant;
|
|
21
|
+
vulnerabilities?: StoIssueCount;
|
|
22
|
+
}
|
|
@@ -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[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ComplianceEvaluationSummary {
|
|
2
|
+
criticial_failures?: number;
|
|
3
|
+
/**
|
|
4
|
+
* @format int64
|
|
5
|
+
*/
|
|
6
|
+
evaluation_time?: number;
|
|
7
|
+
failed?: number;
|
|
8
|
+
high_failures?: number;
|
|
9
|
+
low_failures?: number;
|
|
10
|
+
medium_failures?: number;
|
|
11
|
+
passed?: number;
|
|
12
|
+
}
|
|
@@ -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 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 {};
|