@harnessio/react-ssca-manager-client 0.42.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/hooks/{useListArtifactSourcesMutation.d.ts → useListArtifactSourcesQuery.d.ts} +7 -10
- package/dist/ssca-manager/src/services/hooks/{useListArtifactSourcesMutation.js → useListArtifactSourcesQuery.js} +3 -3
- package/dist/ssca-manager/src/services/index.d.ts +22 -8
- package/dist/ssca-manager/src/services/index.js +4 -3
- 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/ArtifactSourcesListingResponse.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactSourcesListingResponse.js +0 -3
- package/dist/ssca-manager/src/services/schemas/CodeRepoRulesEvaluation.d.ts +8 -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 +4 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceEvaluationSummary.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceFilter.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/Deployments.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/Deployments.js +4 -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
- package/dist/ssca-manager/src/services/hooks/useAskQuestionMutation.d.ts +0 -25
- package/dist/ssca-manager/src/services/hooks/useAskQuestionMutation.js +0 -14
- package/dist/ssca-manager/src/services/hooks/useGetPackageVersionsQuery.d.ts +0 -24
- package/dist/ssca-manager/src/services/hooks/useGetPackageVersionsQuery.js +0 -14
- package/dist/ssca-manager/src/services/schemas/OpenSourcePackageDto.d.ts +0 -13
- package/dist/ssca-manager/src/services/schemas/OpenSourcePackageVersion.d.ts +0 -6
- /package/dist/ssca-manager/src/services/schemas/{OpenSourcePackageDto.js → CodeRepoRulesEvaluation.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{OpenSourcePackageVersion.js → ComplianceEvaluationSummary.js} +0 -0
|
@@ -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
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { ArtifactSourcesListingResponseResponse } from '../responses/ArtifactSourcesListingResponseResponse';
|
|
3
3
|
import type { ArtifactListingRequestBodyRequestBody } from '../requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface
|
|
6
|
+
export interface ListArtifactSourcesQueryPathParams {
|
|
7
7
|
org: string;
|
|
8
8
|
project: string;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface ListArtifactSourcesQueryQueryParams {
|
|
11
11
|
/**
|
|
12
12
|
* @default 30
|
|
13
13
|
*/
|
|
@@ -20,23 +20,20 @@ export interface ListArtifactSourcesMutationQueryParams {
|
|
|
20
20
|
* @default 0
|
|
21
21
|
*/
|
|
22
22
|
page?: number;
|
|
23
|
-
/**
|
|
24
|
-
* @default "name"
|
|
25
|
-
*/
|
|
26
23
|
sort?: {};
|
|
27
24
|
}
|
|
28
|
-
export interface
|
|
25
|
+
export interface ListArtifactSourcesQueryHeaderParams {
|
|
29
26
|
'Harness-Account': string;
|
|
30
27
|
}
|
|
31
28
|
export type ListArtifactSourcesRequestBody = ArtifactListingRequestBodyRequestBody;
|
|
32
29
|
export type ListArtifactSourcesOkResponse = ResponseWithPagination<ArtifactSourcesListingResponseResponse>;
|
|
33
30
|
export type ListArtifactSourcesErrorResponse = unknown;
|
|
34
|
-
export interface ListArtifactSourcesProps extends
|
|
35
|
-
queryParams:
|
|
31
|
+
export interface ListArtifactSourcesProps extends ListArtifactSourcesQueryPathParams, Omit<FetcherOptions<ListArtifactSourcesQueryQueryParams, ListArtifactSourcesRequestBody, ListArtifactSourcesQueryHeaderParams>, 'url'> {
|
|
32
|
+
queryParams: ListArtifactSourcesQueryQueryParams;
|
|
36
33
|
body: ListArtifactSourcesRequestBody;
|
|
37
34
|
}
|
|
38
35
|
export declare function listArtifactSources(props: ListArtifactSourcesProps): Promise<ListArtifactSourcesOkResponse>;
|
|
39
36
|
/**
|
|
40
37
|
* List Artifact Sources and associated artifacts count
|
|
41
38
|
*/
|
|
42
|
-
export declare function
|
|
39
|
+
export declare function useListArtifactSourcesQuery(props: ListArtifactSourcesProps, options?: Omit<UseQueryOptions<ListArtifactSourcesOkResponse, ListArtifactSourcesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListArtifactSourcesOkResponse, 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 listArtifactSources(props) {
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifact-sources`, method: 'POST' }, props));
|
|
@@ -9,6 +9,6 @@ export function listArtifactSources(props) {
|
|
|
9
9
|
/**
|
|
10
10
|
* List Artifact Sources and associated artifacts count
|
|
11
11
|
*/
|
|
12
|
-
export function
|
|
13
|
-
return
|
|
12
|
+
export function useListArtifactSourcesQuery(props, options) {
|
|
13
|
+
return useQuery(['listArtifactSources', props.org, props.project, props.queryParams, props.body], ({ signal }) => listArtifactSources(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
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 { AskQuestionErrorResponse, AskQuestionMutationPathParams, AskQuestionOkResponse, AskQuestionProps, AskQuestionRequestBody, } from './hooks/useAskQuestionMutation';
|
|
5
|
-
export { askQuestion, useAskQuestionMutation } from './hooks/useAskQuestionMutation';
|
|
6
4
|
export type { CalculateDriftForArtifactErrorResponse, CalculateDriftForArtifactMutationPathParams, CalculateDriftForArtifactOkResponse, CalculateDriftForArtifactProps, CalculateDriftForArtifactRequestBody, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
7
5
|
export { calculateDriftForArtifact, useCalculateDriftForArtifactMutation, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
8
6
|
export type { CheckArtifactAndDeploymentsErrorResponse, CheckArtifactAndDeploymentsMutationPathParams, CheckArtifactAndDeploymentsOkResponse, CheckArtifactAndDeploymentsProps, CheckArtifactAndDeploymentsRequestBody, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
9
7
|
export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
10
8
|
export type { CloseRemediationTrackerErrorResponse, CloseRemediationTrackerMutationPathParams, CloseRemediationTrackerOkResponse, CloseRemediationTrackerProps, } from './hooks/useCloseRemediationTrackerMutation';
|
|
11
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';
|
|
12
12
|
export type { ConfigureReposErrorResponse, ConfigureReposMutationPathParams, ConfigureReposOkResponse, ConfigureReposProps, ConfigureReposRequestBody, } from './hooks/useConfigureReposMutation';
|
|
13
13
|
export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureReposMutation';
|
|
14
14
|
export type { CreateComplianceStandardsErrorResponse, CreateComplianceStandardsMutationPathParams, CreateComplianceStandardsOkResponse, CreateComplianceStandardsProps, CreateComplianceStandardsRequestBody, } from './hooks/useCreateComplianceStandardsMutation';
|
|
@@ -41,6 +41,8 @@ export type { GetArtifactV2DetailComponentViewErrorResponse, GetArtifactV2Detail
|
|
|
41
41
|
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewMutation, } from './hooks/useGetArtifactV2DetailComponentViewMutation';
|
|
42
42
|
export type { GetBaselineForArtifactErrorResponse, GetBaselineForArtifactOkResponse, GetBaselineForArtifactProps, GetBaselineForArtifactQueryPathParams, } from './hooks/useGetBaselineForArtifactQuery';
|
|
43
43
|
export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
|
|
44
|
+
export type { GetCodeRepositoryOverviewErrorResponse, GetCodeRepositoryOverviewOkResponse, GetCodeRepositoryOverviewProps, GetCodeRepositoryOverviewQueryPathParams, } from './hooks/useGetCodeRepositoryOverviewQuery';
|
|
45
|
+
export { getCodeRepositoryOverview, useGetCodeRepositoryOverviewQuery, } from './hooks/useGetCodeRepositoryOverviewQuery';
|
|
44
46
|
export type { GetComplianceStandardsErrorResponse, GetComplianceStandardsMutationPathParams, GetComplianceStandardsMutationQueryParams, GetComplianceStandardsOkResponse, GetComplianceStandardsProps, GetComplianceStandardsRequestBody, } from './hooks/useGetComplianceStandardsMutation';
|
|
45
47
|
export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
|
|
46
48
|
export type { GetComponentDriftErrorResponse, GetComponentDriftOkResponse, GetComponentDriftProps, GetComponentDriftQueryPathParams, GetComponentDriftQueryQueryParams, } from './hooks/useGetComponentDriftQuery';
|
|
@@ -57,8 +59,6 @@ export type { GetLicenseDriftErrorResponse, GetLicenseDriftOkResponse, GetLicens
|
|
|
57
59
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
58
60
|
export type { GetOverallSummaryErrorResponse, GetOverallSummaryOkResponse, GetOverallSummaryProps, GetOverallSummaryQueryPathParams, } from './hooks/useGetOverallSummaryQuery';
|
|
59
61
|
export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
|
|
60
|
-
export type { GetPackageVersionsErrorResponse, GetPackageVersionsOkResponse, GetPackageVersionsProps, GetPackageVersionsQueryPathParams, } from './hooks/useGetPackageVersionsQuery';
|
|
61
|
-
export { getPackageVersions, useGetPackageVersionsQuery } from './hooks/useGetPackageVersionsQuery';
|
|
62
62
|
export type { GetPipelineArtifactListErrorResponse, GetPipelineArtifactListOkResponse, GetPipelineArtifactListProps, GetPipelineArtifactListQueryPathParams, GetPipelineArtifactListRequestBody, } from './hooks/useGetPipelineArtifactListQuery';
|
|
63
63
|
export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
|
|
64
64
|
export type { GetPolicyViolationsErrorResponse, GetPolicyViolationsOkResponse, GetPolicyViolationsProps, GetPolicyViolationsQueryPathParams, GetPolicyViolationsQueryQueryParams, } from './hooks/useGetPolicyViolationsQuery';
|
|
@@ -67,12 +67,14 @@ export type { GetProvenanceErrorResponse, GetProvenanceOkResponse, GetProvenance
|
|
|
67
67
|
export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQuery';
|
|
68
68
|
export type { GetRemediationDetailsErrorResponse, GetRemediationDetailsOkResponse, GetRemediationDetailsProps, GetRemediationDetailsQueryPathParams, } from './hooks/useGetRemediationDetailsQuery';
|
|
69
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';
|
|
70
72
|
export type { GetSbomScorecardErrorResponse, GetSbomScorecardOkResponse, GetSbomScorecardProps, GetSbomScorecardQueryPathParams, } from './hooks/useGetSbomScorecardQuery';
|
|
71
73
|
export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
|
|
72
74
|
export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSummaryProps, GetSscaSummaryQueryPathParams, } from './hooks/useGetSscaSummaryQuery';
|
|
73
75
|
export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
|
|
74
|
-
export type { ListArtifactSourcesErrorResponse,
|
|
75
|
-
export { listArtifactSources,
|
|
76
|
+
export type { ListArtifactSourcesErrorResponse, ListArtifactSourcesOkResponse, ListArtifactSourcesProps, ListArtifactSourcesQueryPathParams, ListArtifactSourcesQueryQueryParams, ListArtifactSourcesRequestBody, } from './hooks/useListArtifactSourcesQuery';
|
|
77
|
+
export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
|
|
76
78
|
export type { ListArtifactsErrorResponse, ListArtifactsOkResponse, ListArtifactsProps, ListArtifactsQueryPathParams, ListArtifactsQueryQueryParams, ListArtifactsRequestBody, } from './hooks/useListArtifactsQuery';
|
|
77
79
|
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
78
80
|
export type { ListIntegrationsErrorResponse, ListIntegrationsOkResponse, ListIntegrationsProps, ListIntegrationsQueryPathParams, ListIntegrationsQueryQueryParams, } from './hooks/useListIntegrationsQuery';
|
|
@@ -90,6 +92,7 @@ export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from '
|
|
|
90
92
|
export type { ArtifactListingPipelineRequestBodyRequestBody } from './requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
|
|
91
93
|
export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
92
94
|
export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
|
|
95
|
+
export type { CodeRepositoryListingRequestBodyRequestBody } from './requestBodies/CodeRepositoryListingRequestBodyRequestBody';
|
|
93
96
|
export type { ComplianceStandardsRequestBodyRequestBody } from './requestBodies/ComplianceStandardsRequestBodyRequestBody';
|
|
94
97
|
export type { ConfigureReposRequestRequestBody } from './requestBodies/ConfigureReposRequestRequestBody';
|
|
95
98
|
export type { CreateComplianceStandardRequestBodyRequestBody } from './requestBodies/CreateComplianceStandardRequestBodyRequestBody';
|
|
@@ -111,6 +114,8 @@ export type { ArtifactSbomDriftResponseBodyResponse } from './responses/Artifact
|
|
|
111
114
|
export type { ArtifactSbomResponseBodyResponse } from './responses/ArtifactSbomResponseBodyResponse';
|
|
112
115
|
export type { ArtifactSourcesListingResponseResponse } from './responses/ArtifactSourcesListingResponseResponse';
|
|
113
116
|
export type { BaselineResponseBodyResponse } from './responses/BaselineResponseBodyResponse';
|
|
117
|
+
export type { CodeRepositoryListingResponseBodyResponse } from './responses/CodeRepositoryListingResponseBodyResponse';
|
|
118
|
+
export type { CodeRepositoryOverviewResponseBodyResponse } from './responses/CodeRepositoryOverviewResponseBodyResponse';
|
|
114
119
|
export type { ComplianceStandardsResponseBodyResponse } from './responses/ComplianceStandardsResponseBodyResponse';
|
|
115
120
|
export type { ComponentDriftResponseBodyResponse } from './responses/ComponentDriftResponseBodyResponse';
|
|
116
121
|
export type { ComponentListResponseBodyResponse } from './responses/ComponentListResponseBodyResponse';
|
|
@@ -154,10 +159,15 @@ export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
|
|
|
154
159
|
export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
|
|
155
160
|
export type { CategoryScorecard } from './schemas/CategoryScorecard';
|
|
156
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';
|
|
157
166
|
export type { ComplianceCheck } from './schemas/ComplianceCheck';
|
|
158
167
|
export type { ComplianceCheckEntityType } from './schemas/ComplianceCheckEntityType';
|
|
159
168
|
export type { ComplianceCheckSeverity } from './schemas/ComplianceCheckSeverity';
|
|
160
169
|
export type { ComplianceCheckType } from './schemas/ComplianceCheckType';
|
|
170
|
+
export type { ComplianceEvaluationSummary } from './schemas/ComplianceEvaluationSummary';
|
|
161
171
|
export type { ComplianceFilter } from './schemas/ComplianceFilter';
|
|
162
172
|
export type { ComplianceStandardType } from './schemas/ComplianceStandardType';
|
|
163
173
|
export type { ComponentDrift } from './schemas/ComponentDrift';
|
|
@@ -170,6 +180,7 @@ export type { ContactInfo } from './schemas/ContactInfo';
|
|
|
170
180
|
export type { CreateIntegrationRequest } from './schemas/CreateIntegrationRequest';
|
|
171
181
|
export type { CreateTicketRequest } from './schemas/CreateTicketRequest';
|
|
172
182
|
export type { CreateTicketResponse } from './schemas/CreateTicketResponse';
|
|
183
|
+
export type { Deployments } from './schemas/Deployments';
|
|
173
184
|
export type { DeploymentsCount } from './schemas/DeploymentsCount';
|
|
174
185
|
export type { EnforcementModelPipeline } from './schemas/EnforcementModelPipeline';
|
|
175
186
|
export type { EnvironmentInfo } from './schemas/EnvironmentInfo';
|
|
@@ -185,10 +196,10 @@ export type { LicenseFilter } from './schemas/LicenseFilter';
|
|
|
185
196
|
export type { LicenseUsageResponse } from './schemas/LicenseUsageResponse';
|
|
186
197
|
export type { ListIntegrationReposResponse } from './schemas/ListIntegrationReposResponse';
|
|
187
198
|
export type { NameOperator } from './schemas/NameOperator';
|
|
188
|
-
export type { OpenSourcePackageDto } from './schemas/OpenSourcePackageDto';
|
|
189
|
-
export type { OpenSourcePackageVersion } from './schemas/OpenSourcePackageVersion';
|
|
190
199
|
export type { Operator } from './schemas/Operator';
|
|
200
|
+
export type { OrchestrationDriftSummary } from './schemas/OrchestrationDriftSummary';
|
|
191
201
|
export type { OrchestrationModelPipeline } from './schemas/OrchestrationModelPipeline';
|
|
202
|
+
export type { PipelineDetails } from './schemas/PipelineDetails';
|
|
192
203
|
export type { PipelineInfo } from './schemas/PipelineInfo';
|
|
193
204
|
export type { PolicyViolation } from './schemas/PolicyViolation';
|
|
194
205
|
export type { ProvenanceResponseBody } from './schemas/ProvenanceResponseBody';
|
|
@@ -209,9 +220,12 @@ export type { RemediationTrackerUpdateRequestBody } from './schemas/RemediationT
|
|
|
209
220
|
export type { RemediationTrackerUpdateResponseBody } from './schemas/RemediationTrackerUpdateResponseBody';
|
|
210
221
|
export type { RemediationTrackersOverallSummaryResponseBody } from './schemas/RemediationTrackersOverallSummaryResponseBody';
|
|
211
222
|
export type { RepoDetailsDto } from './schemas/RepoDetailsDto';
|
|
223
|
+
export type { RiskAndCompliance } from './schemas/RiskAndCompliance';
|
|
212
224
|
export type { SaveResponse } from './schemas/SaveResponse';
|
|
213
225
|
export type { SbomDetailsForScorecard } from './schemas/SbomDetailsForScorecard';
|
|
226
|
+
export type { SbomInfo } from './schemas/SbomInfo';
|
|
214
227
|
export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseBody';
|
|
228
|
+
export type { Scorecard } from './schemas/Scorecard';
|
|
215
229
|
export type { ScorecardInfo } from './schemas/ScorecardInfo';
|
|
216
230
|
export type { Slsa } from './schemas/Slsa';
|
|
217
231
|
export type { SlsaModelPipeline } from './schemas/SlsaModelPipeline';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { artifactList, useArtifactListQuery } from './hooks/useArtifactListQuery';
|
|
2
|
-
export { askQuestion, useAskQuestionMutation } from './hooks/useAskQuestionMutation';
|
|
3
2
|
export { calculateDriftForArtifact, useCalculateDriftForArtifactMutation, } from './hooks/useCalculateDriftForArtifactMutation';
|
|
4
3
|
export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
|
|
5
4
|
export { closeRemediationTracker, useCloseRemediationTrackerMutation, } from './hooks/useCloseRemediationTrackerMutation';
|
|
5
|
+
export { codeRepositoriesList, useCodeRepositoriesListQuery, } from './hooks/useCodeRepositoriesListQuery';
|
|
6
6
|
export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureReposMutation';
|
|
7
7
|
export { createComplianceStandards, useCreateComplianceStandardsMutation, } from './hooks/useCreateComplianceStandardsMutation';
|
|
8
8
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
@@ -19,6 +19,7 @@ export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuer
|
|
|
19
19
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
20
20
|
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewMutation, } from './hooks/useGetArtifactV2DetailComponentViewMutation';
|
|
21
21
|
export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
|
|
22
|
+
export { getCodeRepositoryOverview, useGetCodeRepositoryOverviewQuery, } from './hooks/useGetCodeRepositoryOverviewQuery';
|
|
22
23
|
export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
|
|
23
24
|
export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
|
|
24
25
|
export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
|
|
@@ -27,14 +28,14 @@ export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQu
|
|
|
27
28
|
export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
|
|
28
29
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
29
30
|
export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
|
|
30
|
-
export { getPackageVersions, useGetPackageVersionsQuery } from './hooks/useGetPackageVersionsQuery';
|
|
31
31
|
export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
|
|
32
32
|
export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
|
|
33
33
|
export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQuery';
|
|
34
34
|
export { getRemediationDetails, useGetRemediationDetailsQuery, } from './hooks/useGetRemediationDetailsQuery';
|
|
35
|
+
export { getRepoRulesEvaluationTrend, useGetRepoRulesEvaluationTrendQuery, } from './hooks/useGetRepoRulesEvaluationTrendQuery';
|
|
35
36
|
export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
|
|
36
37
|
export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
|
|
37
|
-
export { listArtifactSources,
|
|
38
|
+
export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
|
|
38
39
|
export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
|
|
39
40
|
export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
|
|
40
41
|
export { listLatestArtifacts, useListLatestArtifactsQuery, } from './hooks/useListLatestArtifactsQuery';
|
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 {};
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
+
import type { Deployments } from '../schemas/Deployments';
|
|
2
|
+
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
1
3
|
export interface ArtifactSourcesListingResponse {
|
|
2
4
|
/**
|
|
3
5
|
* Count of artifacts with the given url and name.
|
|
4
6
|
*/
|
|
5
7
|
count?: number;
|
|
8
|
+
deployments?: Deployments;
|
|
6
9
|
/**
|
|
7
10
|
* Artifact name
|
|
8
11
|
*/
|
|
9
12
|
name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Identifier of the Artifact Source
|
|
15
|
+
*/
|
|
16
|
+
source_id?: string;
|
|
17
|
+
sto_issue_count?: StoIssueCount;
|
|
10
18
|
/**
|
|
11
19
|
* Artifact Registry url
|
|
12
20
|
*/
|
|
@@ -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 {};
|
|
@@ -6,14 +6,18 @@ import type { ComplianceCheckType } from '../schemas/ComplianceCheckType';
|
|
|
6
6
|
* Represents Single SSCA Compliance Check
|
|
7
7
|
*/
|
|
8
8
|
export interface ComplianceCheck {
|
|
9
|
+
can_execute: boolean;
|
|
9
10
|
category: string;
|
|
10
11
|
category_id: string;
|
|
11
12
|
compliance_id: string;
|
|
12
13
|
description: string;
|
|
13
14
|
entity: ComplianceCheckEntityType;
|
|
15
|
+
integrations?: string[];
|
|
14
16
|
remediation?: string;
|
|
15
17
|
severity: ComplianceCheckSeverity;
|
|
16
18
|
standards: ComplianceStandardType[];
|
|
19
|
+
sub_category: string;
|
|
20
|
+
sub_category_id: string;
|
|
17
21
|
tags?: string[];
|
|
18
22
|
title: string;
|
|
19
23
|
type: ComplianceCheckType;
|
|
@@ -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 {};
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { OpenSourcePackageDto } from '../schemas/OpenSourcePackageDto';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface AskQuestionMutationPathParams {
|
|
6
|
-
org: string;
|
|
7
|
-
project: string;
|
|
8
|
-
}
|
|
9
|
-
export interface AskQuestionMutationHeaderParams {
|
|
10
|
-
'Harness-Account': string;
|
|
11
|
-
}
|
|
12
|
-
export type AskQuestionRequestBody = {
|
|
13
|
-
question?: string;
|
|
14
|
-
system?: string;
|
|
15
|
-
};
|
|
16
|
-
export type AskQuestionOkResponse = ResponseWithPagination<OpenSourcePackageDto[]>;
|
|
17
|
-
export type AskQuestionErrorResponse = unknown;
|
|
18
|
-
export interface AskQuestionProps extends AskQuestionMutationPathParams, Omit<FetcherOptions<unknown, AskQuestionRequestBody, AskQuestionMutationHeaderParams>, 'url'> {
|
|
19
|
-
body: AskQuestionRequestBody;
|
|
20
|
-
}
|
|
21
|
-
export declare function askQuestion(props: AskQuestionProps): Promise<AskQuestionOkResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Ask Question
|
|
24
|
-
*/
|
|
25
|
-
export declare function useAskQuestionMutation(options?: Omit<UseMutationOptions<AskQuestionOkResponse, AskQuestionErrorResponse, AskQuestionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AskQuestionOkResponse, unknown, AskQuestionProps, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
-
// Please do not modify this code directly.
|
|
4
|
-
import { useMutation } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
-
export function askQuestion(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ossecure-intel`, method: 'POST' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Ask Question
|
|
11
|
-
*/
|
|
12
|
-
export function useAskQuestionMutation(options) {
|
|
13
|
-
return useMutation((mutateProps) => askQuestion(mutateProps), options);
|
|
14
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { OpenSourcePackageVersion } from '../schemas/OpenSourcePackageVersion';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface GetPackageVersionsQueryPathParams {
|
|
6
|
-
org: string;
|
|
7
|
-
project: string;
|
|
8
|
-
package: string;
|
|
9
|
-
}
|
|
10
|
-
export interface GetPackageVersionsQueryHeaderParams {
|
|
11
|
-
'Harness-Account': string;
|
|
12
|
-
}
|
|
13
|
-
export type GetPackageVersionsOkResponse = ResponseWithPagination<{
|
|
14
|
-
name?: string;
|
|
15
|
-
versions?: OpenSourcePackageVersion[];
|
|
16
|
-
}>;
|
|
17
|
-
export type GetPackageVersionsErrorResponse = unknown;
|
|
18
|
-
export interface GetPackageVersionsProps extends GetPackageVersionsQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetPackageVersionsQueryHeaderParams>, 'url'> {
|
|
19
|
-
}
|
|
20
|
-
export declare function getPackageVersions(props: GetPackageVersionsProps): Promise<GetPackageVersionsOkResponse>;
|
|
21
|
-
/**
|
|
22
|
-
* Get Package Versions
|
|
23
|
-
*/
|
|
24
|
-
export declare function useGetPackageVersionsQuery(props: GetPackageVersionsProps, options?: Omit<UseQueryOptions<GetPackageVersionsOkResponse, GetPackageVersionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetPackageVersionsOkResponse, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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 getPackageVersions(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/packages/${props.package}/versions`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get Package Versions
|
|
11
|
-
*/
|
|
12
|
-
export function useGetPackageVersionsQuery(props, options) {
|
|
13
|
-
return useQuery(['getPackageVersions', props.org, props.project, props.package], ({ signal }) => getPackageVersions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface OpenSourcePackageDto {
|
|
2
|
-
default_version?: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
repo_url?: string;
|
|
6
|
-
score?: string;
|
|
7
|
-
system?: string;
|
|
8
|
-
tags?: Array<{
|
|
9
|
-
key?: string;
|
|
10
|
-
value?: string;
|
|
11
|
-
}>;
|
|
12
|
-
total_versions?: string;
|
|
13
|
-
}
|
|
File without changes
|
|
File without changes
|