@harnessio/react-ssca-manager-client 0.30.0 → 0.32.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.
Files changed (40) hide show
  1. package/dist/ssca-manager/src/services/hooks/useGetArtifactDetailDeploymentViewQuery.d.ts +1 -1
  2. package/dist/ssca-manager/src/services/hooks/useGetPipelineArtifactListQuery.d.ts +25 -0
  3. package/dist/ssca-manager/src/services/hooks/useGetPipelineArtifactListQuery.js +21 -0
  4. package/dist/ssca-manager/src/services/hooks/useGetProvenanceQuery.d.ts +21 -0
  5. package/dist/ssca-manager/src/services/hooks/useGetProvenanceQuery.js +14 -0
  6. package/dist/ssca-manager/src/services/hooks/useGetSscaSummaryQuery.d.ts +22 -0
  7. package/dist/ssca-manager/src/services/hooks/useGetSscaSummaryQuery.js +14 -0
  8. package/dist/ssca-manager/src/services/hooks/useListRemediationsQuery.d.ts +5 -5
  9. package/dist/ssca-manager/src/services/index.d.ts +18 -0
  10. package/dist/ssca-manager/src/services/index.js +3 -0
  11. package/dist/ssca-manager/src/services/requestBodies/ArtifactListingPipelineRequestBodyRequestBody.d.ts +2 -0
  12. package/dist/ssca-manager/src/services/requestBodies/ArtifactListingPipelineRequestBodyRequestBody.js +1 -0
  13. package/dist/ssca-manager/src/services/responses/ArtifactListingResponsePipelineBodyResponse.d.ts +2 -0
  14. package/dist/ssca-manager/src/services/responses/ArtifactListingResponsePipelineBodyResponse.js +1 -0
  15. package/dist/ssca-manager/src/services/responses/ProvenanceResponseBodyResponse.d.ts +2 -0
  16. package/dist/ssca-manager/src/services/responses/ProvenanceResponseBodyResponse.js +1 -0
  17. package/dist/ssca-manager/src/services/schemas/ArtifactListingPipelineRequestBody.d.ts +10 -0
  18. package/dist/ssca-manager/src/services/schemas/ArtifactListingPipelineRequestBody.js +4 -0
  19. package/dist/ssca-manager/src/services/schemas/ArtifactListingPipelineResponse.d.ts +14 -0
  20. package/dist/ssca-manager/src/services/schemas/ArtifactListingPipelineResponse.js +1 -0
  21. package/dist/ssca-manager/src/services/schemas/ArtifactModelPipeline.d.ts +9 -0
  22. package/dist/ssca-manager/src/services/schemas/ArtifactModelPipeline.js +1 -0
  23. package/dist/ssca-manager/src/services/schemas/CategoryScorecard.d.ts +2 -7
  24. package/dist/ssca-manager/src/services/schemas/CategoryScorecard.js +0 -3
  25. package/dist/ssca-manager/src/services/schemas/CategoryScorecardCheck.d.ts +7 -0
  26. package/dist/ssca-manager/src/services/schemas/CategoryScorecardCheck.js +4 -0
  27. package/dist/ssca-manager/src/services/schemas/EnforcementModelPipeline.d.ts +13 -0
  28. package/dist/ssca-manager/src/services/schemas/EnforcementModelPipeline.js +4 -0
  29. package/dist/ssca-manager/src/services/schemas/EnvironmentInfo.d.ts +0 -3
  30. package/dist/ssca-manager/src/services/schemas/OrchestrationModelPipeline.d.ts +20 -0
  31. package/dist/ssca-manager/src/services/schemas/OrchestrationModelPipeline.js +4 -0
  32. package/dist/ssca-manager/src/services/schemas/ProvenanceResponseBody.d.ts +3 -0
  33. package/dist/ssca-manager/src/services/schemas/ProvenanceResponseBody.js +4 -0
  34. package/dist/ssca-manager/src/services/schemas/RemediationArtifactListingResponse.d.ts +1 -1
  35. package/dist/ssca-manager/src/services/schemas/RemediationTrackersOverallSummaryResponseBody.d.ts +0 -3
  36. package/dist/ssca-manager/src/services/schemas/SlsaModelPipeline.d.ts +15 -0
  37. package/dist/ssca-manager/src/services/schemas/SlsaModelPipeline.js +4 -0
  38. package/dist/ssca-manager/src/services/schemas/SscaSummary.d.ts +21 -0
  39. package/dist/ssca-manager/src/services/schemas/SscaSummary.js +4 -0
  40. package/package.json +1 -1
@@ -32,7 +32,7 @@ export interface GetArtifactDetailDeploymentViewQueryHeaderParams {
32
32
  }
33
33
  export type GetArtifactDetailDeploymentViewRequestBody = ArtifactDeploymentViewRequestBody;
34
34
  export type GetArtifactDetailDeploymentViewOkResponse = ResponseWithPagination<ArtifactDeploymentViewResponseBodyResponse>;
35
- export type GetArtifactDetailDeploymentViewErrorResponse = unknown;
35
+ export type GetArtifactDetailDeploymentViewErrorResponse = unknown | ArtifactDeploymentViewResponseBodyResponse;
36
36
  export interface GetArtifactDetailDeploymentViewProps extends GetArtifactDetailDeploymentViewQueryPathParams, Omit<FetcherOptions<GetArtifactDetailDeploymentViewQueryQueryParams, GetArtifactDetailDeploymentViewRequestBody, GetArtifactDetailDeploymentViewQueryHeaderParams>, 'url'> {
37
37
  queryParams: GetArtifactDetailDeploymentViewQueryQueryParams;
38
38
  body: GetArtifactDetailDeploymentViewRequestBody;
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ArtifactListingResponsePipelineBodyResponse } from '../responses/ArtifactListingResponsePipelineBodyResponse';
3
+ import type { ArtifactListingPipelineRequestBodyRequestBody } from '../requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetPipelineArtifactListQueryPathParams {
7
+ org: string;
8
+ project: string;
9
+ pipeline: string;
10
+ execution: string;
11
+ }
12
+ export interface GetPipelineArtifactListQueryHeaderParams {
13
+ 'Harness-Account': string;
14
+ }
15
+ export type GetPipelineArtifactListRequestBody = ArtifactListingPipelineRequestBodyRequestBody;
16
+ export type GetPipelineArtifactListOkResponse = ResponseWithPagination<ArtifactListingResponsePipelineBodyResponse>;
17
+ export type GetPipelineArtifactListErrorResponse = unknown;
18
+ export interface GetPipelineArtifactListProps extends GetPipelineArtifactListQueryPathParams, Omit<FetcherOptions<unknown, GetPipelineArtifactListRequestBody, GetPipelineArtifactListQueryHeaderParams>, 'url'> {
19
+ body: GetPipelineArtifactListRequestBody;
20
+ }
21
+ export declare function getPipelineArtifactList(props: GetPipelineArtifactListProps): Promise<GetPipelineArtifactListOkResponse>;
22
+ /**
23
+ * Get Artifact List for Pipeline View
24
+ */
25
+ export declare function useGetPipelineArtifactListQuery(props: GetPipelineArtifactListProps, options?: Omit<UseQueryOptions<GetPipelineArtifactListOkResponse, GetPipelineArtifactListErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetPipelineArtifactListOkResponse, 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 getPipelineArtifactList(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/pipelines/${props.pipeline}/executions/${props.execution}/artifacts`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get Artifact List for Pipeline View
11
+ */
12
+ export function useGetPipelineArtifactListQuery(props, options) {
13
+ return useQuery([
14
+ 'getPipelineArtifactList',
15
+ props.org,
16
+ props.project,
17
+ props.pipeline,
18
+ props.execution,
19
+ props.body,
20
+ ], ({ signal }) => getPipelineArtifactList(Object.assign(Object.assign({}, props), { signal })), options);
21
+ }
@@ -0,0 +1,21 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ProvenanceResponseBodyResponse } from '../responses/ProvenanceResponseBodyResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetProvenanceQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ provenance: string;
9
+ }
10
+ export interface GetProvenanceQueryHeaderParams {
11
+ 'Harness-Account': string;
12
+ }
13
+ export type GetProvenanceOkResponse = ResponseWithPagination<ProvenanceResponseBodyResponse>;
14
+ export type GetProvenanceErrorResponse = unknown;
15
+ export interface GetProvenanceProps extends GetProvenanceQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetProvenanceQueryHeaderParams>, 'url'> {
16
+ }
17
+ export declare function getProvenance(props: GetProvenanceProps): Promise<GetProvenanceOkResponse>;
18
+ /**
19
+ * Get Provenance
20
+ */
21
+ export declare function useGetProvenanceQuery(props: GetProvenanceProps, options?: Omit<UseQueryOptions<GetProvenanceOkResponse, GetProvenanceErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetProvenanceOkResponse, 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 getProvenance(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/provenance/${props.provenance}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Provenance
11
+ */
12
+ export function useGetProvenanceQuery(props, options) {
13
+ return useQuery(['getProvenance', props.org, props.project, props.provenance], ({ signal }) => getProvenance(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,22 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { SscaSummary } from '../schemas/SscaSummary';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetSscaSummaryQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ pipeline: string;
9
+ execution: string;
10
+ }
11
+ export interface GetSscaSummaryQueryHeaderParams {
12
+ 'Harness-Account': string;
13
+ }
14
+ export type GetSscaSummaryOkResponse = ResponseWithPagination<SscaSummary>;
15
+ export type GetSscaSummaryErrorResponse = unknown;
16
+ export interface GetSscaSummaryProps extends GetSscaSummaryQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetSscaSummaryQueryHeaderParams>, 'url'> {
17
+ }
18
+ export declare function getSscaSummary(props: GetSscaSummaryProps): Promise<GetSscaSummaryOkResponse>;
19
+ /**
20
+ * Get Summary for SSCA Tab
21
+ */
22
+ export declare function useGetSscaSummaryQuery(props: GetSscaSummaryProps, options?: Omit<UseQueryOptions<GetSscaSummaryOkResponse, GetSscaSummaryErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetSscaSummaryOkResponse, 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 getSscaSummary(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/pipelines/${props.pipeline}/executions/${props.execution}/ssca-summary`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get Summary for SSCA Tab
11
+ */
12
+ export function useGetSscaSummaryQuery(props, options) {
13
+ return useQuery(['getSSCASummary', props.org, props.project, props.pipeline, props.execution], ({ signal }) => getSscaSummary(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -12,18 +12,18 @@ export interface ListRemediationsQueryQueryParams {
12
12
  * @default 30
13
13
  */
14
14
  limit?: number;
15
- /**
16
- * @default "ASC"
17
- */
18
- order?: 'ASC' | 'DESC';
19
15
  /**
20
16
  * @default 0
21
17
  */
22
18
  page?: number;
23
19
  /**
24
- * @default "component"
20
+ * @default "startTimeMilli"
25
21
  */
26
22
  sort?: {};
23
+ /**
24
+ * @default "DESC"
25
+ */
26
+ order?: {};
27
27
  }
28
28
  export interface ListRemediationsQueryHeaderParams {
29
29
  'Harness-Account': string;
@@ -39,12 +39,18 @@ export type { GetLicenseDriftErrorResponse, GetLicenseDriftOkResponse, GetLicens
39
39
  export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
40
40
  export type { GetOverallSummaryErrorResponse, GetOverallSummaryOkResponse, GetOverallSummaryProps, GetOverallSummaryQueryPathParams, } from './hooks/useGetOverallSummaryQuery';
41
41
  export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
42
+ export type { GetPipelineArtifactListErrorResponse, GetPipelineArtifactListOkResponse, GetPipelineArtifactListProps, GetPipelineArtifactListQueryPathParams, GetPipelineArtifactListRequestBody, } from './hooks/useGetPipelineArtifactListQuery';
43
+ export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
42
44
  export type { GetPolicyViolationsErrorResponse, GetPolicyViolationsOkResponse, GetPolicyViolationsProps, GetPolicyViolationsQueryPathParams, GetPolicyViolationsQueryQueryParams, } from './hooks/useGetPolicyViolationsQuery';
43
45
  export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
46
+ export type { GetProvenanceErrorResponse, GetProvenanceOkResponse, GetProvenanceProps, GetProvenanceQueryPathParams, } from './hooks/useGetProvenanceQuery';
47
+ export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQuery';
44
48
  export type { GetRemediationDetailsErrorResponse, GetRemediationDetailsOkResponse, GetRemediationDetailsProps, GetRemediationDetailsQueryPathParams, } from './hooks/useGetRemediationDetailsQuery';
45
49
  export { getRemediationDetails, useGetRemediationDetailsQuery, } from './hooks/useGetRemediationDetailsQuery';
46
50
  export type { GetSbomScorecardErrorResponse, GetSbomScorecardOkResponse, GetSbomScorecardProps, GetSbomScorecardQueryPathParams, } from './hooks/useGetSbomScorecardQuery';
47
51
  export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
52
+ export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSummaryProps, GetSscaSummaryQueryPathParams, } from './hooks/useGetSscaSummaryQuery';
53
+ export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
48
54
  export type { ListArtifactsErrorResponse, ListArtifactsOkResponse, ListArtifactsProps, ListArtifactsQueryPathParams, ListArtifactsQueryQueryParams, ListArtifactsRequestBody, } from './hooks/useListArtifactsQuery';
49
55
  export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
50
56
  export type { ListLatestArtifactsErrorResponse, ListLatestArtifactsOkResponse, ListLatestArtifactsProps, ListLatestArtifactsQueryPathParams, ListLatestArtifactsQueryQueryParams, } from './hooks/useListLatestArtifactsQuery';
@@ -55,6 +61,7 @@ export type { SetBaselineForArtifactErrorResponse, SetBaselineForArtifactMutatio
55
61
  export { setBaselineForArtifact, useSetBaselineForArtifactMutation, } from './hooks/useSetBaselineForArtifactMutation';
56
62
  export type { UpdateRemediationTrackerErrorResponse, UpdateRemediationTrackerMutationPathParams, UpdateRemediationTrackerOkResponse, UpdateRemediationTrackerProps, UpdateRemediationTrackerRequestBody, } from './hooks/useUpdateRemediationTrackerMutation';
57
63
  export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
64
+ export type { ArtifactListingPipelineRequestBodyRequestBody } from './requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
58
65
  export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
59
66
  export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
60
67
  export type { CreateTicketRequestBodyRequestBody } from './requestBodies/CreateTicketRequestBodyRequestBody';
@@ -69,6 +76,7 @@ export type { ArtifactDeploymentViewResponseBodyResponse } from './responses/Art
69
76
  export type { ArtifactDetailResponseBodyResponse } from './responses/ArtifactDetailResponseBodyResponse';
70
77
  export type { ArtifactListingResponseBodyResponse } from './responses/ArtifactListingResponseBodyResponse';
71
78
  export type { ArtifactListingResponseBodyV2Response } from './responses/ArtifactListingResponseBodyV2Response';
79
+ export type { ArtifactListingResponsePipelineBodyResponse } from './responses/ArtifactListingResponsePipelineBodyResponse';
72
80
  export type { ArtifactSbomDriftResponseBodyResponse } from './responses/ArtifactSbomDriftResponseBodyResponse';
73
81
  export type { ArtifactSbomResponseBodyResponse } from './responses/ArtifactSbomResponseBodyResponse';
74
82
  export type { BaselineResponseBodyResponse } from './responses/BaselineResponseBodyResponse';
@@ -77,6 +85,7 @@ export type { ComponentListResponseBodyResponse } from './responses/ComponentLis
77
85
  export type { CreateTicketResponseBodyResponse } from './responses/CreateTicketResponseBodyResponse';
78
86
  export type { LicenseDriftResponseBodyResponse } from './responses/LicenseDriftResponseBodyResponse';
79
87
  export type { PolicyViolationResponseResponse } from './responses/PolicyViolationResponseResponse';
88
+ export type { ProvenanceResponseBodyResponse } from './responses/ProvenanceResponseBodyResponse';
80
89
  export type { RemediationArtifactDeploymentsListingResponseBodyResponse } from './responses/RemediationArtifactDeploymentsListingResponseBodyResponse';
81
90
  export type { RemediationArtifactDetailResponseBodyResponse } from './responses/RemediationArtifactDetailResponseBodyResponse';
82
91
  export type { RemediationArtifactListingResponseBodyResponse } from './responses/RemediationArtifactListingResponseBodyResponse';
@@ -94,9 +103,12 @@ export type { ArtifactComponentViewResponse } from './schemas/ArtifactComponentV
94
103
  export type { ArtifactDeploymentViewRequestBody } from './schemas/ArtifactDeploymentViewRequestBody';
95
104
  export type { ArtifactDeploymentViewResponse } from './schemas/ArtifactDeploymentViewResponse';
96
105
  export type { ArtifactDetailResponse } from './schemas/ArtifactDetailResponse';
106
+ export type { ArtifactListingPipelineRequestBody } from './schemas/ArtifactListingPipelineRequestBody';
107
+ export type { ArtifactListingPipelineResponse } from './schemas/ArtifactListingPipelineResponse';
97
108
  export type { ArtifactListingRequestBody } from './schemas/ArtifactListingRequestBody';
98
109
  export type { ArtifactListingResponse } from './schemas/ArtifactListingResponse';
99
110
  export type { ArtifactListingResponseV2 } from './schemas/ArtifactListingResponseV2';
111
+ export type { ArtifactModelPipeline } from './schemas/ArtifactModelPipeline';
100
112
  export type { ArtifactSbomDriftRequestBody } from './schemas/ArtifactSbomDriftRequestBody';
101
113
  export type { ArtifactSbomDriftResponse } from './schemas/ArtifactSbomDriftResponse';
102
114
  export type { ArtifactSbomResponseBody } from './schemas/ArtifactSbomResponseBody';
@@ -104,6 +116,7 @@ export type { ArtifactVariant } from './schemas/ArtifactVariant';
104
116
  export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
105
117
  export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
106
118
  export type { CategoryScorecard } from './schemas/CategoryScorecard';
119
+ export type { CategoryScorecardCheck } from './schemas/CategoryScorecardCheck';
107
120
  export type { ComponentDrift } from './schemas/ComponentDrift';
108
121
  export type { ComponentDriftSummary } from './schemas/ComponentDriftSummary';
109
122
  export type { ComponentDto } from './schemas/ComponentDto';
@@ -113,6 +126,7 @@ export type { ContactInfo } from './schemas/ContactInfo';
113
126
  export type { CreateTicketRequest } from './schemas/CreateTicketRequest';
114
127
  export type { CreateTicketResponse } from './schemas/CreateTicketResponse';
115
128
  export type { DeploymentsCount } from './schemas/DeploymentsCount';
129
+ export type { EnforcementModelPipeline } from './schemas/EnforcementModelPipeline';
116
130
  export type { EnvironmentInfo } from './schemas/EnvironmentInfo';
117
131
  export type { EnvironmentType } from './schemas/EnvironmentType';
118
132
  export type { EnvironmentTypeFilter } from './schemas/EnvironmentTypeFilter';
@@ -122,8 +136,10 @@ export type { LicenseDriftSummary } from './schemas/LicenseDriftSummary';
122
136
  export type { LicenseFilter } from './schemas/LicenseFilter';
123
137
  export type { NameOperator } from './schemas/NameOperator';
124
138
  export type { Operator } from './schemas/Operator';
139
+ export type { OrchestrationModelPipeline } from './schemas/OrchestrationModelPipeline';
125
140
  export type { PipelineInfo } from './schemas/PipelineInfo';
126
141
  export type { PolicyViolation } from './schemas/PolicyViolation';
142
+ export type { ProvenanceResponseBody } from './schemas/ProvenanceResponseBody';
127
143
  export type { RemediationArtifactDeploymentsListingRequestBody } from './schemas/RemediationArtifactDeploymentsListingRequestBody';
128
144
  export type { RemediationArtifactDeploymentsListingResponse } from './schemas/RemediationArtifactDeploymentsListingResponse';
129
145
  export type { RemediationArtifactDetailsResponse } from './schemas/RemediationArtifactDetailsResponse';
@@ -145,6 +161,8 @@ export type { SbomDetailsForScorecard } from './schemas/SbomDetailsForScorecard'
145
161
  export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseBody';
146
162
  export type { ScorecardInfo } from './schemas/ScorecardInfo';
147
163
  export type { Slsa } from './schemas/Slsa';
164
+ export type { SlsaModelPipeline } from './schemas/SlsaModelPipeline';
165
+ export type { SscaSummary } from './schemas/SscaSummary';
148
166
  export type { StoIssueCount } from './schemas/StoIssueCount';
149
167
  export type { TicketInfo } from './schemas/TicketInfo';
150
168
  export type { VulnerabilityInfo } from './schemas/VulnerabilityInfo';
@@ -18,9 +18,12 @@ export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArt
18
18
  export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
19
19
  export { getLicenseDrift, useGetLicenseDriftQuery } from './hooks/useGetLicenseDriftQuery';
20
20
  export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
21
+ export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
21
22
  export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
23
+ export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQuery';
22
24
  export { getRemediationDetails, useGetRemediationDetailsQuery, } from './hooks/useGetRemediationDetailsQuery';
23
25
  export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
26
+ export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
24
27
  export { listArtifacts, useListArtifactsQuery } from './hooks/useListArtifactsQuery';
25
28
  export { listLatestArtifacts, useListLatestArtifactsQuery, } from './hooks/useListLatestArtifactsQuery';
26
29
  export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
@@ -0,0 +1,2 @@
1
+ import type { ArtifactListingPipelineRequestBody } from '../schemas/ArtifactListingPipelineRequestBody';
2
+ export type ArtifactListingPipelineRequestBodyRequestBody = ArtifactListingPipelineRequestBody;
@@ -0,0 +1,2 @@
1
+ import type { ArtifactListingPipelineResponse } from '../schemas/ArtifactListingPipelineResponse';
2
+ export type ArtifactListingResponsePipelineBodyResponse = ArtifactListingPipelineResponse[];
@@ -0,0 +1,2 @@
1
+ import type { ProvenanceResponseBody } from '../schemas/ProvenanceResponseBody';
2
+ export type ProvenanceResponseBodyResponse = ProvenanceResponseBody;
@@ -0,0 +1,10 @@
1
+ export interface ArtifactListingPipelineRequestBody {
2
+ /**
3
+ * Filter Artifacts By type
4
+ */
5
+ artifact_type?: 'image' | 'repository';
6
+ /**
7
+ * Search Artifact By name
8
+ */
9
+ search_term?: string;
10
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,14 @@
1
+ import type { ArtifactModelPipeline } from '../schemas/ArtifactModelPipeline';
2
+ import type { EnforcementModelPipeline } from '../schemas/EnforcementModelPipeline';
3
+ import type { OrchestrationModelPipeline } from '../schemas/OrchestrationModelPipeline';
4
+ import type { SlsaModelPipeline } from '../schemas/SlsaModelPipeline';
5
+ export interface ArtifactListingPipelineResponse {
6
+ artifact?: ArtifactModelPipeline;
7
+ enforcement?: EnforcementModelPipeline;
8
+ orchestration?: OrchestrationModelPipeline;
9
+ org_id?: string;
10
+ pipeline_execution_id?: string;
11
+ pipeline_id?: string;
12
+ project_id?: string;
13
+ slsa?: SlsaModelPipeline;
14
+ }
@@ -0,0 +1,9 @@
1
+ import type { ArtifactVariant } from '../schemas/ArtifactVariant';
2
+ export interface ArtifactModelPipeline {
3
+ id?: string;
4
+ name?: string;
5
+ registery_url?: string;
6
+ tag?: string;
7
+ type?: 'image' | 'repository';
8
+ variant?: ArtifactVariant;
9
+ }
@@ -1,11 +1,6 @@
1
+ import type { CategoryScorecardCheck } from '../schemas/CategoryScorecardCheck';
1
2
  export interface CategoryScorecard {
2
- checks?: Array<{
3
- description?: string;
4
- is_enabled?: string;
5
- max_score?: string;
6
- name?: string;
7
- score?: string;
8
- }>;
3
+ checks?: CategoryScorecardCheck[];
9
4
  is_enabled?: string;
10
5
  max_score?: string;
11
6
  name?: string;
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -0,0 +1,7 @@
1
+ export interface CategoryScorecardCheck {
2
+ description?: string;
3
+ is_enabled?: string;
4
+ max_score?: string;
5
+ name?: string;
6
+ score?: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,13 @@
1
+ export interface EnforcementModelPipeline {
2
+ enforcement_id?: string;
3
+ stage_execution_identifier?: string;
4
+ stage_identifier?: string;
5
+ stage_name?: string;
6
+ step_execution_identifier?: string;
7
+ step_identifier?: string;
8
+ step_name?: string;
9
+ violations?: {
10
+ allow_list_violation_count?: number;
11
+ deny_list_violation_count?: number;
12
+ };
13
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -8,8 +8,5 @@ export interface EnvironmentInfo {
8
8
  * Name of the Environment.
9
9
  */
10
10
  name: string;
11
- /**
12
- * Type of the Environment.
13
- */
14
11
  type: EnvironmentType;
15
12
  }
@@ -0,0 +1,20 @@
1
+ export interface OrchestrationModelPipeline {
2
+ drift?: {
3
+ base_tag?: string;
4
+ components?: number;
5
+ drift_id?: string;
6
+ licenses?: number;
7
+ tag?: string;
8
+ };
9
+ orchestration_id?: string;
10
+ scorecard?: {
11
+ avg_score?: string;
12
+ max_score?: string;
13
+ };
14
+ stage_execution_identifier?: string;
15
+ stage_identifier?: string;
16
+ stage_name?: string;
17
+ step_execution_identifier?: string;
18
+ step_identifier?: string;
19
+ step_name?: string;
20
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,3 @@
1
+ export interface ProvenanceResponseBody {
2
+ provenance?: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -9,7 +9,7 @@ export interface RemediationArtifactListingResponse {
9
9
  /**
10
10
  * Whether the artifact is excluded.
11
11
  */
12
- is_excluded?: boolean;
12
+ is_excluded: boolean;
13
13
  /**
14
14
  * Whether the artifact is new.
15
15
  */
@@ -1,9 +1,6 @@
1
1
  import type { DeploymentsCount } from '../schemas/DeploymentsCount';
2
2
  import type { RemediationCount } from '../schemas/RemediationCount';
3
3
  export interface RemediationTrackersOverallSummaryResponseBody {
4
- /**
5
- * Total Deployments Count.
6
- */
7
4
  deployments_count?: DeploymentsCount;
8
5
  /**
9
6
  * Mean time to complete the Remediation in Hours.
@@ -0,0 +1,15 @@
1
+ /**
2
+ *
3
+ */
4
+ export interface SlsaModelPipeline {
5
+ stage_execution_identifier?: string;
6
+ stage_identifier?: string;
7
+ stage_name?: string;
8
+ step_execution_identifier?: string;
9
+ step_identifier?: string;
10
+ step_name?: string;
11
+ verification_details?: {
12
+ policy_enforcement_status?: string;
13
+ verification_status?: 'failed' | 'passed';
14
+ };
15
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Summary Information for SSCA Tab
3
+ */
4
+ export interface SscaSummary {
5
+ artifacts?: {
6
+ containers?: number;
7
+ repositories?: number;
8
+ };
9
+ drifts?: {
10
+ components?: number;
11
+ licenses?: number;
12
+ };
13
+ policy_violations?: {
14
+ allow_list?: number;
15
+ deny_list?: number;
16
+ };
17
+ slsa_verifications?: {
18
+ failures?: number;
19
+ successes?: number;
20
+ };
21
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.30.0",
3
+ "version": "0.32.0",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",