@harnessio/react-ssca-manager-client 0.44.0 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/ssca-manager/src/services/hooks/useArtifactListV2Query.d.ts +43 -0
  2. package/dist/ssca-manager/src/services/hooks/useArtifactListV2Query.js +14 -0
  3. package/dist/ssca-manager/src/services/hooks/{useGetArtifactV2DetailComponentViewMutation.d.ts → useGetArtifactV2DetailComponentViewQuery.d.ts} +7 -7
  4. package/dist/ssca-manager/src/services/hooks/{useGetArtifactV2DetailComponentViewMutation.js → useGetArtifactV2DetailComponentViewQuery.js} +10 -3
  5. package/dist/ssca-manager/src/services/hooks/useGetArtifactV2DetailDeploymentViewQuery.d.ts +43 -0
  6. package/dist/ssca-manager/src/services/hooks/useGetArtifactV2DetailDeploymentViewQuery.js +21 -0
  7. package/dist/ssca-manager/src/services/hooks/useGetArtifactV2OverviewQuery.d.ts +21 -0
  8. package/dist/ssca-manager/src/services/hooks/useGetArtifactV2OverviewQuery.js +14 -0
  9. package/dist/ssca-manager/src/services/hooks/useGetRepoRulesEvaluationTrendQuery.d.ts +8 -2
  10. package/dist/ssca-manager/src/services/index.d.ts +14 -2
  11. package/dist/ssca-manager/src/services/index.js +4 -1
  12. package/dist/ssca-manager/src/services/responses/ArtifactV2ListingResponseBodyResponse.d.ts +2 -0
  13. package/dist/ssca-manager/src/services/responses/ArtifactV2ListingResponseBodyResponse.js +1 -0
  14. package/dist/ssca-manager/src/services/schemas/ArtifactV2ListingResponse.d.ts +80 -0
  15. package/dist/ssca-manager/src/services/schemas/ArtifactV2ListingResponse.js +1 -0
  16. package/dist/ssca-manager/src/services/schemas/ArtifactV2Overview.d.ts +40 -0
  17. package/dist/ssca-manager/src/services/schemas/ArtifactV2Overview.js +1 -0
  18. package/dist/ssca-manager/src/services/schemas/CodeRepoRulesEvaluation.d.ts +4 -1
  19. package/dist/ssca-manager/src/services/schemas/CodeRepositoryListingResponse.d.ts +1 -14
  20. package/dist/ssca-manager/src/services/schemas/CodeRepositoryOverview.d.ts +11 -5
  21. package/dist/ssca-manager/src/services/schemas/ComplianceEvaluationSummary.d.ts +4 -3
  22. package/dist/ssca-manager/src/services/schemas/DriftDetailsDto.d.ts +6 -0
  23. package/dist/ssca-manager/src/services/schemas/DriftDetailsDto.js +1 -0
  24. package/dist/ssca-manager/src/services/schemas/SlsaDetails.d.ts +5 -0
  25. package/dist/ssca-manager/src/services/schemas/SlsaDetails.js +4 -0
  26. package/dist/ssca-manager/src/services/schemas/Violations.d.ts +4 -0
  27. package/dist/ssca-manager/src/services/schemas/Violations.js +4 -0
  28. package/package.json +1 -1
@@ -0,0 +1,43 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ArtifactV2ListingResponseBodyResponse } from '../responses/ArtifactV2ListingResponseBodyResponse';
3
+ import type { ArtifactListingRequestBodyRequestBody } from '../requestBodies/ArtifactListingRequestBodyRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ArtifactListV2QueryPathParams {
7
+ org: string;
8
+ project: string;
9
+ source: string;
10
+ }
11
+ export interface ArtifactListV2QueryQueryParams {
12
+ /**
13
+ * @default 30
14
+ */
15
+ limit?: number;
16
+ /**
17
+ * @default "ASC"
18
+ */
19
+ order?: 'ASC' | 'DESC';
20
+ /**
21
+ * @default 0
22
+ */
23
+ page?: number;
24
+ /**
25
+ * @default "name"
26
+ */
27
+ sort?: {};
28
+ }
29
+ export interface ArtifactListV2QueryHeaderParams {
30
+ 'Harness-Account': string;
31
+ }
32
+ export type ArtifactListV2RequestBody = ArtifactListingRequestBodyRequestBody;
33
+ export type ArtifactListV2OkResponse = ResponseWithPagination<ArtifactV2ListingResponseBodyResponse>;
34
+ export type ArtifactListV2ErrorResponse = unknown;
35
+ export interface ArtifactListV2Props extends ArtifactListV2QueryPathParams, Omit<FetcherOptions<ArtifactListV2QueryQueryParams, ArtifactListV2RequestBody, ArtifactListV2QueryHeaderParams>, 'url'> {
36
+ queryParams: ArtifactListV2QueryQueryParams;
37
+ body: ArtifactListV2RequestBody;
38
+ }
39
+ export declare function artifactListV2(props: ArtifactListV2Props): Promise<ArtifactListV2OkResponse>;
40
+ /**
41
+ * List artifacts
42
+ */
43
+ export declare function useArtifactListV2Query(props: ArtifactListV2Props, options?: Omit<UseQueryOptions<ArtifactListV2OkResponse, ArtifactListV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ArtifactListV2OkResponse, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function artifactListV2(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifact-sources/${props.source}/artifacts`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * List artifacts
11
+ */
12
+ export function useArtifactListV2Query(props, options) {
13
+ return useQuery(['artifactListV2', props.org, props.project, props.source, props.queryParams, props.body], ({ signal }) => artifactListV2(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -1,14 +1,14 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { ArtifactComponentViewResponseBodyResponse } from '../responses/ArtifactComponentViewResponseBodyResponse';
3
3
  import type { ArtifactComponentViewRequestBody } from '../schemas/ArtifactComponentViewRequestBody';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface GetArtifactV2DetailComponentViewMutationPathParams {
6
+ export interface GetArtifactV2DetailComponentViewQueryPathParams {
7
7
  org: string;
8
8
  project: string;
9
9
  artifact: string;
10
10
  }
11
- export interface GetArtifactV2DetailComponentViewMutationQueryParams {
11
+ export interface GetArtifactV2DetailComponentViewQueryQueryParams {
12
12
  /**
13
13
  * @default 30
14
14
  */
@@ -23,18 +23,18 @@ export interface GetArtifactV2DetailComponentViewMutationQueryParams {
23
23
  page?: number;
24
24
  sort?: string;
25
25
  }
26
- export interface GetArtifactV2DetailComponentViewMutationHeaderParams {
26
+ export interface GetArtifactV2DetailComponentViewQueryHeaderParams {
27
27
  'Harness-Account': string;
28
28
  }
29
29
  export type GetArtifactV2DetailComponentViewRequestBody = ArtifactComponentViewRequestBody;
30
30
  export type GetArtifactV2DetailComponentViewOkResponse = ResponseWithPagination<ArtifactComponentViewResponseBodyResponse>;
31
31
  export type GetArtifactV2DetailComponentViewErrorResponse = unknown;
32
- export interface GetArtifactV2DetailComponentViewProps extends GetArtifactV2DetailComponentViewMutationPathParams, Omit<FetcherOptions<GetArtifactV2DetailComponentViewMutationQueryParams, GetArtifactV2DetailComponentViewRequestBody, GetArtifactV2DetailComponentViewMutationHeaderParams>, 'url'> {
33
- queryParams: GetArtifactV2DetailComponentViewMutationQueryParams;
32
+ export interface GetArtifactV2DetailComponentViewProps extends GetArtifactV2DetailComponentViewQueryPathParams, Omit<FetcherOptions<GetArtifactV2DetailComponentViewQueryQueryParams, GetArtifactV2DetailComponentViewRequestBody, GetArtifactV2DetailComponentViewQueryHeaderParams>, 'url'> {
33
+ queryParams: GetArtifactV2DetailComponentViewQueryQueryParams;
34
34
  body: GetArtifactV2DetailComponentViewRequestBody;
35
35
  }
36
36
  export declare function getArtifactV2DetailComponentView(props: GetArtifactV2DetailComponentViewProps): Promise<GetArtifactV2DetailComponentViewOkResponse>;
37
37
  /**
38
38
  * Get artifactV2 detail component view
39
39
  */
40
- export declare function useGetArtifactV2DetailComponentViewMutation(options?: Omit<UseMutationOptions<GetArtifactV2DetailComponentViewOkResponse, GetArtifactV2DetailComponentViewErrorResponse, GetArtifactV2DetailComponentViewProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetArtifactV2DetailComponentViewOkResponse, unknown, GetArtifactV2DetailComponentViewProps, unknown>;
40
+ export declare function useGetArtifactV2DetailComponentViewQuery(props: GetArtifactV2DetailComponentViewProps, options?: Omit<UseQueryOptions<GetArtifactV2DetailComponentViewOkResponse, GetArtifactV2DetailComponentViewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactV2DetailComponentViewOkResponse, unknown>;
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  // This code is autogenerated using @harnessio/oats-cli.
3
3
  // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
4
+ import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../fetcher/index.js';
6
6
  export function getArtifactV2DetailComponentView(props) {
7
7
  return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/components`, method: 'POST' }, props));
@@ -9,6 +9,13 @@ export function getArtifactV2DetailComponentView(props) {
9
9
  /**
10
10
  * Get artifactV2 detail component view
11
11
  */
12
- export function useGetArtifactV2DetailComponentViewMutation(options) {
13
- return useMutation((mutateProps) => getArtifactV2DetailComponentView(mutateProps), options);
12
+ export function useGetArtifactV2DetailComponentViewQuery(props, options) {
13
+ return useQuery([
14
+ 'getArtifactV2DetailComponentView',
15
+ props.org,
16
+ props.project,
17
+ props.artifact,
18
+ props.queryParams,
19
+ props.body,
20
+ ], ({ signal }) => getArtifactV2DetailComponentView(Object.assign(Object.assign({}, props), { signal })), options);
14
21
  }
@@ -0,0 +1,43 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ArtifactDeploymentViewResponseBodyResponse } from '../responses/ArtifactDeploymentViewResponseBodyResponse';
3
+ import type { ArtifactDeploymentViewRequestBody } from '../schemas/ArtifactDeploymentViewRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetArtifactV2DetailDeploymentViewQueryPathParams {
7
+ org: string;
8
+ project: string;
9
+ artifact: string;
10
+ }
11
+ export interface GetArtifactV2DetailDeploymentViewQueryQueryParams {
12
+ /**
13
+ * @default 30
14
+ */
15
+ limit?: number;
16
+ /**
17
+ * @default "ASC"
18
+ */
19
+ order?: 'ASC' | 'DESC';
20
+ /**
21
+ * @default 0
22
+ */
23
+ page?: number;
24
+ /**
25
+ * @default "env_name"
26
+ */
27
+ sort?: {};
28
+ }
29
+ export interface GetArtifactV2DetailDeploymentViewQueryHeaderParams {
30
+ 'Harness-Account': string;
31
+ }
32
+ export type GetArtifactV2DetailDeploymentViewRequestBody = ArtifactDeploymentViewRequestBody;
33
+ export type GetArtifactV2DetailDeploymentViewOkResponse = ResponseWithPagination<ArtifactDeploymentViewResponseBodyResponse>;
34
+ export type GetArtifactV2DetailDeploymentViewErrorResponse = unknown | ArtifactDeploymentViewResponseBodyResponse;
35
+ export interface GetArtifactV2DetailDeploymentViewProps extends GetArtifactV2DetailDeploymentViewQueryPathParams, Omit<FetcherOptions<GetArtifactV2DetailDeploymentViewQueryQueryParams, GetArtifactV2DetailDeploymentViewRequestBody, GetArtifactV2DetailDeploymentViewQueryHeaderParams>, 'url'> {
36
+ queryParams: GetArtifactV2DetailDeploymentViewQueryQueryParams;
37
+ body: GetArtifactV2DetailDeploymentViewRequestBody;
38
+ }
39
+ export declare function getArtifactV2DetailDeploymentView(props: GetArtifactV2DetailDeploymentViewProps): Promise<GetArtifactV2DetailDeploymentViewOkResponse>;
40
+ /**
41
+ * Get artifactV2 detail deployment view
42
+ */
43
+ export declare function useGetArtifactV2DetailDeploymentViewQuery(props: GetArtifactV2DetailDeploymentViewProps, options?: Omit<UseQueryOptions<GetArtifactV2DetailDeploymentViewOkResponse, GetArtifactV2DetailDeploymentViewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactV2DetailDeploymentViewOkResponse, unknown>;
@@ -0,0 +1,21 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getArtifactV2DetailDeploymentView(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/deployments`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get artifactV2 detail deployment view
11
+ */
12
+ export function useGetArtifactV2DetailDeploymentViewQuery(props, options) {
13
+ return useQuery([
14
+ 'getArtifactV2DetailDeploymentView',
15
+ props.org,
16
+ props.project,
17
+ props.artifact,
18
+ props.queryParams,
19
+ props.body,
20
+ ], ({ signal }) => getArtifactV2DetailDeploymentView(Object.assign(Object.assign({}, props), { signal })), options);
21
+ }
@@ -0,0 +1,21 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ArtifactV2Overview } from '../schemas/ArtifactV2Overview';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetArtifactV2OverviewQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ artifact: string;
9
+ }
10
+ export interface GetArtifactV2OverviewQueryHeaderParams {
11
+ 'Harness-Account': string;
12
+ }
13
+ export type GetArtifactV2OverviewOkResponse = ResponseWithPagination<ArtifactV2Overview>;
14
+ export type GetArtifactV2OverviewErrorResponse = unknown;
15
+ export interface GetArtifactV2OverviewProps extends GetArtifactV2OverviewQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetArtifactV2OverviewQueryHeaderParams>, 'url'> {
16
+ }
17
+ export declare function getArtifactV2Overview(props: GetArtifactV2OverviewProps): Promise<GetArtifactV2OverviewOkResponse>;
18
+ /**
19
+ * Get ArtifactV2 Overview
20
+ */
21
+ export declare function useGetArtifactV2OverviewQuery(props: GetArtifactV2OverviewProps, options?: Omit<UseQueryOptions<GetArtifactV2OverviewOkResponse, GetArtifactV2OverviewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetArtifactV2OverviewOkResponse, unknown>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function getArtifactV2Overview(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/overview`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get ArtifactV2 Overview
11
+ */
12
+ export function useGetArtifactV2OverviewQuery(props, options) {
13
+ return useQuery(['getArtifactV2Overview', props.org, props.project, props.artifact], ({ signal }) => getArtifactV2Overview(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -8,8 +8,14 @@ export interface GetRepoRulesEvaluationTrendQueryPathParams {
8
8
  'code-repo': string;
9
9
  }
10
10
  export interface GetRepoRulesEvaluationTrendQueryQueryParams {
11
- start_time: string;
12
- end_time?: string;
11
+ /**
12
+ * @format int64
13
+ */
14
+ start_time: number;
15
+ /**
16
+ * @format int64
17
+ */
18
+ end_time?: number;
13
19
  }
14
20
  export interface GetRepoRulesEvaluationTrendQueryHeaderParams {
15
21
  'Harness-Account': string;
@@ -1,6 +1,8 @@
1
1
  export type { GetPathParamsType, ResponseWithPagination } from './helpers';
2
2
  export type { ArtifactListErrorResponse, ArtifactListOkResponse, ArtifactListProps, ArtifactListQueryPathParams, ArtifactListQueryQueryParams, ArtifactListRequestBody, } from './hooks/useArtifactListQuery';
3
3
  export { artifactList, useArtifactListQuery } from './hooks/useArtifactListQuery';
4
+ export type { ArtifactListV2ErrorResponse, ArtifactListV2OkResponse, ArtifactListV2Props, ArtifactListV2QueryPathParams, ArtifactListV2QueryQueryParams, ArtifactListV2RequestBody, } from './hooks/useArtifactListV2Query';
5
+ export { artifactListV2, useArtifactListV2Query } from './hooks/useArtifactListV2Query';
4
6
  export type { CalculateDriftForArtifactErrorResponse, CalculateDriftForArtifactMutationPathParams, CalculateDriftForArtifactOkResponse, CalculateDriftForArtifactProps, CalculateDriftForArtifactRequestBody, } from './hooks/useCalculateDriftForArtifactMutation';
5
7
  export { calculateDriftForArtifact, useCalculateDriftForArtifactMutation, } from './hooks/useCalculateDriftForArtifactMutation';
6
8
  export type { CheckArtifactAndDeploymentsErrorResponse, CheckArtifactAndDeploymentsMutationPathParams, CheckArtifactAndDeploymentsOkResponse, CheckArtifactAndDeploymentsProps, CheckArtifactAndDeploymentsRequestBody, } from './hooks/useCheckArtifactAndDeploymentsMutation';
@@ -37,8 +39,12 @@ export type { GetArtifactInRemediationDetailsErrorResponse, GetArtifactInRemedia
37
39
  export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
38
40
  export type { GetArtifactListForRemediationErrorResponse, GetArtifactListForRemediationOkResponse, GetArtifactListForRemediationProps, GetArtifactListForRemediationQueryPathParams, GetArtifactListForRemediationQueryQueryParams, GetArtifactListForRemediationRequestBody, } from './hooks/useGetArtifactListForRemediationQuery';
39
41
  export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
40
- export type { GetArtifactV2DetailComponentViewErrorResponse, GetArtifactV2DetailComponentViewMutationPathParams, GetArtifactV2DetailComponentViewMutationQueryParams, GetArtifactV2DetailComponentViewOkResponse, GetArtifactV2DetailComponentViewProps, GetArtifactV2DetailComponentViewRequestBody, } from './hooks/useGetArtifactV2DetailComponentViewMutation';
41
- export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewMutation, } from './hooks/useGetArtifactV2DetailComponentViewMutation';
42
+ export type { GetArtifactV2DetailComponentViewErrorResponse, GetArtifactV2DetailComponentViewOkResponse, GetArtifactV2DetailComponentViewProps, GetArtifactV2DetailComponentViewQueryPathParams, GetArtifactV2DetailComponentViewQueryQueryParams, GetArtifactV2DetailComponentViewRequestBody, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
43
+ export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
44
+ export type { GetArtifactV2DetailDeploymentViewErrorResponse, GetArtifactV2DetailDeploymentViewOkResponse, GetArtifactV2DetailDeploymentViewProps, GetArtifactV2DetailDeploymentViewQueryPathParams, GetArtifactV2DetailDeploymentViewQueryQueryParams, GetArtifactV2DetailDeploymentViewRequestBody, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
45
+ export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
46
+ export type { GetArtifactV2OverviewErrorResponse, GetArtifactV2OverviewOkResponse, GetArtifactV2OverviewProps, GetArtifactV2OverviewQueryPathParams, } from './hooks/useGetArtifactV2OverviewQuery';
47
+ export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
42
48
  export type { GetBaselineForArtifactErrorResponse, GetBaselineForArtifactOkResponse, GetBaselineForArtifactProps, GetBaselineForArtifactQueryPathParams, } from './hooks/useGetBaselineForArtifactQuery';
43
49
  export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
44
50
  export type { GetCodeRepositoryOverviewErrorResponse, GetCodeRepositoryOverviewOkResponse, GetCodeRepositoryOverviewProps, GetCodeRepositoryOverviewQueryPathParams, } from './hooks/useGetCodeRepositoryOverviewQuery';
@@ -113,6 +119,7 @@ export type { ArtifactListingResponsePipelineBodyResponse } from './responses/Ar
113
119
  export type { ArtifactSbomDriftResponseBodyResponse } from './responses/ArtifactSbomDriftResponseBodyResponse';
114
120
  export type { ArtifactSbomResponseBodyResponse } from './responses/ArtifactSbomResponseBodyResponse';
115
121
  export type { ArtifactSourcesListingResponseResponse } from './responses/ArtifactSourcesListingResponseResponse';
122
+ export type { ArtifactV2ListingResponseBodyResponse } from './responses/ArtifactV2ListingResponseBodyResponse';
116
123
  export type { BaselineResponseBodyResponse } from './responses/BaselineResponseBodyResponse';
117
124
  export type { CodeRepositoryListingResponseBodyResponse } from './responses/CodeRepositoryListingResponseBodyResponse';
118
125
  export type { CodeRepositoryOverviewResponseBodyResponse } from './responses/CodeRepositoryOverviewResponseBodyResponse';
@@ -154,6 +161,8 @@ export type { ArtifactSbomDriftRequestBody } from './schemas/ArtifactSbomDriftRe
154
161
  export type { ArtifactSbomDriftResponse } from './schemas/ArtifactSbomDriftResponse';
155
162
  export type { ArtifactSbomResponseBody } from './schemas/ArtifactSbomResponseBody';
156
163
  export type { ArtifactSourcesListingResponse } from './schemas/ArtifactSourcesListingResponse';
164
+ export type { ArtifactV2ListingResponse } from './schemas/ArtifactV2ListingResponse';
165
+ export type { ArtifactV2Overview } from './schemas/ArtifactV2Overview';
157
166
  export type { ArtifactVariant } from './schemas/ArtifactVariant';
158
167
  export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
159
168
  export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
@@ -182,6 +191,7 @@ export type { CreateTicketRequest } from './schemas/CreateTicketRequest';
182
191
  export type { CreateTicketResponse } from './schemas/CreateTicketResponse';
183
192
  export type { Deployments } from './schemas/Deployments';
184
193
  export type { DeploymentsCount } from './schemas/DeploymentsCount';
194
+ export type { DriftDetailsDto } from './schemas/DriftDetailsDto';
185
195
  export type { EnforcementModelPipeline } from './schemas/EnforcementModelPipeline';
186
196
  export type { EnvironmentInfo } from './schemas/EnvironmentInfo';
187
197
  export type { EnvironmentType } from './schemas/EnvironmentType';
@@ -228,9 +238,11 @@ export type { SbomScorecardResponseBody } from './schemas/SbomScorecardResponseB
228
238
  export type { Scorecard } from './schemas/Scorecard';
229
239
  export type { ScorecardInfo } from './schemas/ScorecardInfo';
230
240
  export type { Slsa } from './schemas/Slsa';
241
+ export type { SlsaDetails } from './schemas/SlsaDetails';
231
242
  export type { SlsaModelPipeline } from './schemas/SlsaModelPipeline';
232
243
  export type { SscaSummary } from './schemas/SscaSummary';
233
244
  export type { StoIssueCount } from './schemas/StoIssueCount';
234
245
  export type { TicketInfo } from './schemas/TicketInfo';
246
+ export type { Violations } from './schemas/Violations';
235
247
  export type { VulnerabilityInfo } from './schemas/VulnerabilityInfo';
236
248
  export type { VulnerabilitySeverity } from './schemas/VulnerabilitySeverity';
@@ -1,4 +1,5 @@
1
1
  export { artifactList, useArtifactListQuery } from './hooks/useArtifactListQuery';
2
+ export { artifactListV2, useArtifactListV2Query } from './hooks/useArtifactListV2Query';
2
3
  export { calculateDriftForArtifact, useCalculateDriftForArtifactMutation, } from './hooks/useCalculateDriftForArtifactMutation';
3
4
  export { checkArtifactAndDeployments, useCheckArtifactAndDeploymentsMutation, } from './hooks/useCheckArtifactAndDeploymentsMutation';
4
5
  export { closeRemediationTracker, useCloseRemediationTrackerMutation, } from './hooks/useCloseRemediationTrackerMutation';
@@ -17,7 +18,9 @@ export { getArtifactDetailDeploymentView, useGetArtifactDetailDeploymentViewQuer
17
18
  export { getArtifactDetails, useGetArtifactDetailsQuery } from './hooks/useGetArtifactDetailsQuery';
18
19
  export { getArtifactInRemediationDetails, useGetArtifactInRemediationDetailsQuery, } from './hooks/useGetArtifactInRemediationDetailsQuery';
19
20
  export { getArtifactListForRemediation, useGetArtifactListForRemediationQuery, } from './hooks/useGetArtifactListForRemediationQuery';
20
- export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewMutation, } from './hooks/useGetArtifactV2DetailComponentViewMutation';
21
+ export { getArtifactV2DetailComponentView, useGetArtifactV2DetailComponentViewQuery, } from './hooks/useGetArtifactV2DetailComponentViewQuery';
22
+ export { getArtifactV2DetailDeploymentView, useGetArtifactV2DetailDeploymentViewQuery, } from './hooks/useGetArtifactV2DetailDeploymentViewQuery';
23
+ export { getArtifactV2Overview, useGetArtifactV2OverviewQuery, } from './hooks/useGetArtifactV2OverviewQuery';
21
24
  export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
22
25
  export { getCodeRepositoryOverview, useGetCodeRepositoryOverviewQuery, } from './hooks/useGetCodeRepositoryOverviewQuery';
23
26
  export { getComplianceStandards, useGetComplianceStandardsMutation, } from './hooks/useGetComplianceStandardsMutation';
@@ -0,0 +1,2 @@
1
+ import type { ArtifactV2ListingResponse } from '../schemas/ArtifactV2ListingResponse';
2
+ export type ArtifactV2ListingResponseBodyResponse = ArtifactV2ListingResponse[];
@@ -0,0 +1,80 @@
1
+ import type { StoIssueCount } from '../schemas/StoIssueCount';
2
+ export interface ArtifactV2ListingResponse {
3
+ /**
4
+ * Number of components of the artifact
5
+ */
6
+ components_count?: number;
7
+ deployment?: {
8
+ /**
9
+ * Count of pre-production environment this artifact is currently deployed.
10
+ */
11
+ non_prod_env_count?: number;
12
+ /**
13
+ * Count of production environment this artifact is currently deployed.
14
+ */
15
+ prod_env_count?: number;
16
+ };
17
+ /**
18
+ * Digest of the Artifact
19
+ */
20
+ digest?: string;
21
+ /**
22
+ * Artifact ID
23
+ */
24
+ id?: string;
25
+ metadata?: {
26
+ [key: string]: any;
27
+ };
28
+ /**
29
+ * Artifact Name
30
+ */
31
+ name?: string;
32
+ orchestration?: {
33
+ /**
34
+ * Orchestration step execution ID for the aritfact.
35
+ */
36
+ id?: string;
37
+ /**
38
+ * Build pipeline execution Id used for orchestration of the artifact
39
+ */
40
+ pipeline_execution_id?: string;
41
+ /**
42
+ * Build pipeline Id used for orchestration of the artifact
43
+ */
44
+ pipeline_id?: string;
45
+ };
46
+ policy_enforcement?: {
47
+ /**
48
+ * Count of the allow list policy violations
49
+ */
50
+ allow_list_violation_count?: string;
51
+ /**
52
+ * Count of the deny list policy violations
53
+ */
54
+ deny_list_violation_count?: string;
55
+ /**
56
+ * Enforcement Step Id for the artifact lastest enfrocement.
57
+ */
58
+ id?: string;
59
+ };
60
+ scorecard?: {
61
+ /**
62
+ * Average score of the artifact SBOM
63
+ */
64
+ avg_score?: string;
65
+ /**
66
+ * Maximum score of the artifact SBOM
67
+ */
68
+ max_score?: string;
69
+ };
70
+ sto_issue_count?: StoIssueCount;
71
+ tags?: string[];
72
+ /**
73
+ * Last updated time of the artifact
74
+ */
75
+ updated?: string;
76
+ /**
77
+ * Artifact Origin URL
78
+ */
79
+ url?: string;
80
+ }
@@ -0,0 +1,40 @@
1
+ import type { Deployments } from '../schemas/Deployments';
2
+ import type { PipelineDetails } from '../schemas/PipelineDetails';
3
+ import type { SbomInfo } from '../schemas/SbomInfo';
4
+ import type { Scorecard } from '../schemas/Scorecard';
5
+ import type { SlsaDetails } from '../schemas/SlsaDetails';
6
+ import type { StoIssueCount } from '../schemas/StoIssueCount';
7
+ import type { Violations } from '../schemas/Violations';
8
+ export interface ArtifactV2Overview {
9
+ deployments?: Deployments;
10
+ /**
11
+ * digest of the artifact
12
+ */
13
+ digest?: string;
14
+ /**
15
+ * Artifact Identifier
16
+ */
17
+ id?: string;
18
+ metadata?: {
19
+ [key: string]: any;
20
+ };
21
+ /**
22
+ * Artifact Name
23
+ */
24
+ name: string;
25
+ pipeline_details?: PipelineDetails;
26
+ sbom_details?: SbomInfo;
27
+ scorecard?: Scorecard;
28
+ slsa_details?: SlsaDetails;
29
+ sto_issue_count?: StoIssueCount;
30
+ tags?: string[];
31
+ /**
32
+ * Last Updated time of artifact
33
+ */
34
+ updated?: string;
35
+ /**
36
+ * Artifact URL
37
+ */
38
+ url: string;
39
+ violations?: Violations;
40
+ }
@@ -4,5 +4,8 @@
4
4
  export interface CodeRepoRulesEvaluation {
5
5
  failed?: number;
6
6
  passed?: number;
7
- time?: string;
7
+ /**
8
+ * @format int64
9
+ */
10
+ time?: number;
8
11
  }
@@ -15,20 +15,7 @@ export interface CodeRepositoryListingResponse {
15
15
  * Code Repository Name
16
16
  */
17
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
- };
18
+ orchestration_id?: string;
32
19
  risk_and_compliance?: RiskAndCompliance;
33
20
  scorecard?: Scorecard;
34
21
  sto_issue_count?: StoIssueCount;
@@ -1,16 +1,22 @@
1
1
  import type { ComplianceEvaluationSummary } from '../schemas/ComplianceEvaluationSummary';
2
- import type { OrchestrationDriftSummary } from '../schemas/OrchestrationDriftSummary';
2
+ import type { DriftDetailsDto } from '../schemas/DriftDetailsDto';
3
3
  import type { SbomInfo } from '../schemas/SbomInfo';
4
4
  import type { Scorecard } from '../schemas/Scorecard';
5
+ import type { ArtifactVariant } from '../schemas/ArtifactVariant';
5
6
  import type { StoIssueCount } from '../schemas/StoIssueCount';
6
7
  export interface CodeRepositoryOverview {
7
- branch?: string;
8
8
  compliance_summary?: ComplianceEvaluationSummary;
9
- drift_summary?: OrchestrationDriftSummary;
9
+ drift_summary?: DriftDetailsDto;
10
10
  last_commit?: string;
11
- last_evaluation?: string;
12
- name?: string;
11
+ /**
12
+ * @format int64
13
+ */
14
+ last_evaluation?: number;
15
+ name: string;
16
+ repo_identifier: string;
13
17
  sbom_details?: SbomInfo;
14
18
  scorecard?: Scorecard;
19
+ url: string;
20
+ variant?: ArtifactVariant;
15
21
  vulnerabilities?: StoIssueCount;
16
22
  }
@@ -1,8 +1,9 @@
1
- /**
2
- *
3
- */
4
1
  export interface ComplianceEvaluationSummary {
5
2
  criticial_failures?: number;
3
+ /**
4
+ * @format int64
5
+ */
6
+ evaluation_time?: number;
6
7
  failed?: number;
7
8
  high_failures?: number;
8
9
  low_failures?: number;
@@ -0,0 +1,6 @@
1
+ import type { OrchestrationDriftSummary } from '../schemas/OrchestrationDriftSummary';
2
+ export interface DriftDetailsDto {
3
+ drift_summary?: OrchestrationDriftSummary;
4
+ org_identifier: string;
5
+ project_identifier: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ export interface SlsaDetails {
2
+ org_id?: string;
3
+ project_id?: string;
4
+ provenance_id?: string;
5
+ }
@@ -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,4 @@
1
+ export interface Violations {
2
+ allow_list_violations?: number;
3
+ deny_list_violations?: number;
4
+ }
@@ -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.44.0",
3
+ "version": "0.45.0",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",