@harnessio/react-ssca-manager-client 0.53.0 → 0.55.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/useFetchComplianceResultsGroupByIdMutation.d.ts +2 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ChainOfCustodyQuery.d.ts +21 -0
- package/dist/ssca-manager/src/services/hooks/useGetArtifactV2ChainOfCustodyQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetIntegrationsConfigQuery.d.ts +23 -0
- package/dist/ssca-manager/src/services/hooks/useGetIntegrationsConfigQuery.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +7 -0
- package/dist/ssca-manager/src/services/index.js +2 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactChainOfCustody.d.ts +22 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactChainOfCustody.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactV2Details.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactV2Details.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceEvaluationHistory.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/ComplianceEvaluationTrend.d.ts +2 -2
- package/dist/ssca-manager/src/services/schemas/Deployments.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationConfig.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/IntegrationConfig.js +4 -0
- package/dist/ssca-manager/src/services/schemas/SbomInfo.d.ts +1 -0
- package/package.json +1 -1
package/dist/ssca-manager/src/services/hooks/useFetchComplianceResultsGroupByIdMutation.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export interface FetchComplianceResultsGroupByIdMutationQueryParams {
|
|
|
21
21
|
*/
|
|
22
22
|
order?: 'ASC' | 'DESC';
|
|
23
23
|
sort?: 'severity';
|
|
24
|
+
start_time?: string;
|
|
25
|
+
end_time?: string;
|
|
24
26
|
}
|
|
25
27
|
export interface FetchComplianceResultsGroupByIdMutationHeaderParams {
|
|
26
28
|
'Harness-Account': string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ArtifactChainOfCustody } from '../schemas/ArtifactChainOfCustody';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetArtifactV2ChainOfCustodyQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
artifact: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetArtifactV2ChainOfCustodyQueryHeaderParams {
|
|
11
|
+
'Harness-Account': string;
|
|
12
|
+
}
|
|
13
|
+
export type GetArtifactV2ChainOfCustodyOkResponse = ResponseWithPagination<ArtifactChainOfCustody[]>;
|
|
14
|
+
export type GetArtifactV2ChainOfCustodyErrorResponse = unknown;
|
|
15
|
+
export interface GetArtifactV2ChainOfCustodyProps extends GetArtifactV2ChainOfCustodyQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetArtifactV2ChainOfCustodyQueryHeaderParams>, 'url'> {
|
|
16
|
+
}
|
|
17
|
+
export declare function getArtifactV2ChainOfCustody(props: GetArtifactV2ChainOfCustodyProps): Promise<GetArtifactV2ChainOfCustodyOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* get artifactV2 chain of custody
|
|
20
|
+
*/
|
|
21
|
+
export declare function useGetArtifactV2ChainOfCustodyQuery(props: GetArtifactV2ChainOfCustodyProps, options?: Omit<UseQueryOptions<GetArtifactV2ChainOfCustodyOkResponse, GetArtifactV2ChainOfCustodyErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactV2ChainOfCustodyOkResponse, 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 getArtifactV2ChainOfCustody(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/chain-of-custody`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* get artifactV2 chain of custody
|
|
11
|
+
*/
|
|
12
|
+
export function useGetArtifactV2ChainOfCustodyQuery(props, options) {
|
|
13
|
+
return useQuery(['getArtifactV2ChainOfCustody', props.org, props.project, props.artifact], ({ signal }) => getArtifactV2ChainOfCustody(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { IntegrationConfig } from '../schemas/IntegrationConfig';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetIntegrationsConfigQueryQueryParams {
|
|
6
|
+
/**
|
|
7
|
+
* @default "GITHUB"
|
|
8
|
+
*/
|
|
9
|
+
type: 'GITHUB';
|
|
10
|
+
}
|
|
11
|
+
export interface GetIntegrationsConfigQueryHeaderParams {
|
|
12
|
+
'Harness-Account': string;
|
|
13
|
+
}
|
|
14
|
+
export type GetIntegrationsConfigOkResponse = ResponseWithPagination<IntegrationConfig>;
|
|
15
|
+
export type GetIntegrationsConfigErrorResponse = unknown;
|
|
16
|
+
export interface GetIntegrationsConfigProps extends Omit<FetcherOptions<GetIntegrationsConfigQueryQueryParams, unknown, GetIntegrationsConfigQueryHeaderParams>, 'url'> {
|
|
17
|
+
queryParams: GetIntegrationsConfigQueryQueryParams;
|
|
18
|
+
}
|
|
19
|
+
export declare function getIntegrationsConfig(props: GetIntegrationsConfigProps): Promise<GetIntegrationsConfigOkResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* GET Integrations Config
|
|
22
|
+
*/
|
|
23
|
+
export declare function useGetIntegrationsConfigQuery(props: GetIntegrationsConfigProps, options?: Omit<UseQueryOptions<GetIntegrationsConfigOkResponse, GetIntegrationsConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetIntegrationsConfigOkResponse, 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 getIntegrationsConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/integrations/config`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* GET Integrations Config
|
|
11
|
+
*/
|
|
12
|
+
export function useGetIntegrationsConfigQuery(props, options) {
|
|
13
|
+
return useQuery(['getIntegrationsConfig', props.queryParams], ({ signal }) => getIntegrationsConfig(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -47,6 +47,8 @@ export type { GetArtifactInRemediationDetailsErrorResponse, GetArtifactInRemedia
|
|
|
47
47
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
48
48
|
export type { GetArtifactListForRemediationErrorResponse, GetArtifactListForRemediationOkResponse, GetArtifactListForRemediationProps, GetArtifactListForRemediationQueryPathParams, GetArtifactListForRemediationQueryQueryParams, GetArtifactListForRemediationRequestBody, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
49
49
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
50
|
+
export type { GetArtifactV2ChainOfCustodyErrorResponse, GetArtifactV2ChainOfCustodyOkResponse, GetArtifactV2ChainOfCustodyProps, GetArtifactV2ChainOfCustodyQueryPathParams, } from './hooks/useGetArtifactV2ChainOfCustodyQuery';
|
|
51
|
+
export { getArtifactV2ChainOfCustody, useGetArtifactV2ChainOfCustodyQuery, } from './hooks/useGetArtifactV2ChainOfCustodyQuery';
|
|
50
52
|
export type { GetArtifactV2DetailComponentViewErrorResponse, GetArtifactV2DetailComponentViewOkResponse, GetArtifactV2DetailComponentViewProps, GetArtifactV2DetailComponentViewQueryPathParams, GetArtifactV2DetailComponentViewQueryQueryParams, GetArtifactV2DetailComponentViewRequestBody, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
51
53
|
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
52
54
|
export type { GetArtifactV2DetailDeploymentViewErrorResponse, GetArtifactV2DetailDeploymentViewOkResponse, GetArtifactV2DetailDeploymentViewProps, GetArtifactV2DetailDeploymentViewQueryPathParams, GetArtifactV2DetailDeploymentViewQueryQueryParams, GetArtifactV2DetailDeploymentViewRequestBody, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
|
|
@@ -75,6 +77,8 @@ export type { GetEnvironmentListForRemediationErrorResponse, GetEnvironmentListF
|
|
|
75
77
|
export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
76
78
|
export type { GetIntegrationReposErrorResponse, GetIntegrationReposOkResponse, GetIntegrationReposProps, GetIntegrationReposQueryPathParams, } from './hooks/useGetIntegrationReposQuery';
|
|
77
79
|
export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
|
|
80
|
+
export type { GetIntegrationsConfigErrorResponse, GetIntegrationsConfigOkResponse, GetIntegrationsConfigProps, GetIntegrationsConfigQueryQueryParams, } from './hooks/useGetIntegrationsConfigQuery';
|
|
81
|
+
export { getIntegrationsConfig, useGetIntegrationsConfigQuery, } from './hooks/useGetIntegrationsConfigQuery';
|
|
78
82
|
export type { GetLicenseDriftErrorResponse, GetLicenseDriftOkResponse, GetLicenseDriftProps, GetLicenseDriftQueryPathParams, GetLicenseDriftQueryQueryParams, } from './hooks/useGetLicenseDriftQuery';
|
|
79
83
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
80
84
|
export type { GetOverallSummaryErrorResponse, GetOverallSummaryOkResponse, GetOverallSummaryProps, GetOverallSummaryQueryPathParams, } from './hooks/useGetOverallSummaryQuery';
|
|
@@ -178,6 +182,7 @@ export type { RemediationTrackersOverallSummaryResponseBodyResponse } from './re
|
|
|
178
182
|
export type { SaveResponseResponse } from './responses/SaveResponseResponse';
|
|
179
183
|
export type { SbomScorecardResponseBodyResponse } from './responses/SbomScorecardResponseBodyResponse';
|
|
180
184
|
export type { ArtifactAndDeploymentsResponseBody } from './schemas/ArtifactAndDeploymentsResponseBody';
|
|
185
|
+
export type { ArtifactChainOfCustody } from './schemas/ArtifactChainOfCustody';
|
|
181
186
|
export type { ArtifactComplianceMetrics } from './schemas/ArtifactComplianceMetrics';
|
|
182
187
|
export type { ArtifactComponentViewRequestBody } from './schemas/ArtifactComponentViewRequestBody';
|
|
183
188
|
export type { ArtifactComponentViewResponse } from './schemas/ArtifactComponentViewResponse';
|
|
@@ -194,6 +199,7 @@ export type { ArtifactSbomDriftRequestBody } from './schemas/ArtifactSbomDriftRe
|
|
|
194
199
|
export type { ArtifactSbomDriftResponse } from './schemas/ArtifactSbomDriftResponse';
|
|
195
200
|
export type { ArtifactSbomResponseBody } from './schemas/ArtifactSbomResponseBody';
|
|
196
201
|
export type { ArtifactSourcesListingResponse } from './schemas/ArtifactSourcesListingResponse';
|
|
202
|
+
export type { ArtifactV2Details } from './schemas/ArtifactV2Details';
|
|
197
203
|
export type { ArtifactV2ListingResponse } from './schemas/ArtifactV2ListingResponse';
|
|
198
204
|
export type { ArtifactV2Overview } from './schemas/ArtifactV2Overview';
|
|
199
205
|
export type { ArtifactVariant } from './schemas/ArtifactVariant';
|
|
@@ -242,6 +248,7 @@ export type { EnvironmentTypeFilter } from './schemas/EnvironmentTypeFilter';
|
|
|
242
248
|
export type { ExcludeArtifactRequest } from './schemas/ExcludeArtifactRequest';
|
|
243
249
|
export type { FetchComplianceResultByArtifactResponseBody } from './schemas/FetchComplianceResultByArtifactResponseBody';
|
|
244
250
|
export type { Integration } from './schemas/Integration';
|
|
251
|
+
export type { IntegrationConfig } from './schemas/IntegrationConfig';
|
|
245
252
|
export type { IntegrationType } from './schemas/IntegrationType';
|
|
246
253
|
export type { LayerType } from './schemas/LayerType';
|
|
247
254
|
export type { LicenseDrift } from './schemas/LicenseDrift';
|
|
@@ -22,6 +22,7 @@ export { getArtifactDetailDeploymentView, useGetArtifactDetailDeploymentViewQuer
|
|
|
22
22
|
export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
|
|
23
23
|
export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
|
|
24
24
|
export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
|
|
25
|
+
export { getArtifactV2ChainOfCustody, useGetArtifactV2ChainOfCustodyQuery, } from './hooks/useGetArtifactV2ChainOfCustodyQuery';
|
|
25
26
|
export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
|
|
26
27
|
export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
|
|
27
28
|
export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
|
|
@@ -36,6 +37,7 @@ export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQu
|
|
|
36
37
|
export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
37
38
|
export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
38
39
|
export { getIntegrationRepos, useGetIntegrationReposQuery, } from './hooks/useGetIntegrationReposQuery';
|
|
40
|
+
export { getIntegrationsConfig, useGetIntegrationsConfigQuery, } from './hooks/useGetIntegrationsConfigQuery';
|
|
39
41
|
export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
|
|
40
42
|
export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
|
|
41
43
|
export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ArtifactV2Details } from '../schemas/ArtifactV2Details';
|
|
2
|
+
import type { RiskAndCompliance } from '../schemas/RiskAndCompliance';
|
|
3
|
+
import type { Deployments } from '../schemas/Deployments';
|
|
4
|
+
import type { Violations } from '../schemas/Violations';
|
|
5
|
+
import type { SbomInfo } from '../schemas/SbomInfo';
|
|
6
|
+
import type { SlsaDetails } from '../schemas/SlsaDetails';
|
|
7
|
+
import type { StoIssueCount } from '../schemas/StoIssueCount';
|
|
8
|
+
export interface ArtifactChainOfCustody {
|
|
9
|
+
ActivityType?: 'COMPLIANCE' | 'DEPLOYMENT' | 'ENFORCEMENT' | 'ORCHESTRATION' | 'PROVENANCE' | 'VERIFICATION' | 'VULNERABILITY';
|
|
10
|
+
artifact_details?: ArtifactV2Details;
|
|
11
|
+
compliance?: RiskAndCompliance;
|
|
12
|
+
/**
|
|
13
|
+
* @format int64
|
|
14
|
+
*/
|
|
15
|
+
created_at?: number;
|
|
16
|
+
deployment?: Deployments;
|
|
17
|
+
enforcement?: Violations;
|
|
18
|
+
orchestration?: SbomInfo;
|
|
19
|
+
provenance?: SlsaDetails;
|
|
20
|
+
verification?: SlsaDetails;
|
|
21
|
+
vulnerability?: StoIssueCount;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import type { ComplianceResultStatus } from '../schemas/ComplianceResultStatus';
|
|
2
2
|
export interface ComplianceEvaluationHistory {
|
|
3
|
+
/**
|
|
4
|
+
* @format int64
|
|
5
|
+
*/
|
|
6
|
+
created_at?: number;
|
|
7
|
+
description?: string;
|
|
3
8
|
pipeline_execution_id?: string;
|
|
4
9
|
pipeline_id?: string;
|
|
10
|
+
reason?: string;
|
|
11
|
+
remediation?: string;
|
|
5
12
|
stage_execution_id?: string;
|
|
6
13
|
status?: ComplianceResultStatus;
|
|
7
14
|
step_execution_id?: string;
|