@harnessio/react-ssca-manager-client 0.86.4 → 0.86.6

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 (23) hide show
  1. package/dist/ssca-manager/src/services/hooks/useCreateScannerConfigurationMutation.d.ts +23 -0
  2. package/dist/ssca-manager/src/services/hooks/useCreateScannerConfigurationMutation.js +14 -0
  3. package/dist/ssca-manager/src/services/hooks/useGetPipelineArtifactListV2Query.d.ts +37 -0
  4. package/dist/ssca-manager/src/services/hooks/useGetPipelineArtifactListV2Query.js +23 -0
  5. package/dist/ssca-manager/src/services/hooks/useGetPolicyViolationsQuery.d.ts +1 -0
  6. package/dist/ssca-manager/src/services/hooks/useListScannerConfigurationsQuery.d.ts +24 -0
  7. package/dist/ssca-manager/src/services/hooks/useListScannerConfigurationsQuery.js +14 -0
  8. package/dist/ssca-manager/src/services/hooks/useUpdateScannerConfigurationMutation.d.ts +24 -0
  9. package/dist/ssca-manager/src/services/hooks/useUpdateScannerConfigurationMutation.js +14 -0
  10. package/dist/ssca-manager/src/services/index.d.ts +10 -0
  11. package/dist/ssca-manager/src/services/index.js +4 -0
  12. package/dist/ssca-manager/src/services/responses/ArtifactListingResponsePipelinePaginatedBodyResponse.d.ts +2 -0
  13. package/dist/ssca-manager/src/services/responses/ArtifactListingResponsePipelinePaginatedBodyResponse.js +1 -0
  14. package/dist/ssca-manager/src/services/schemas/CreateIntegrationRequest.d.ts +6 -0
  15. package/dist/ssca-manager/src/services/schemas/EnforceSbomResponseBody.d.ts +5 -0
  16. package/dist/ssca-manager/src/services/schemas/ExemptionCreateRequestBody.d.ts +4 -0
  17. package/dist/ssca-manager/src/services/schemas/ExemptionResponse.d.ts +4 -0
  18. package/dist/ssca-manager/src/services/schemas/Integration.d.ts +6 -0
  19. package/dist/ssca-manager/src/services/schemas/OidcIdTokenRequest.d.ts +5 -0
  20. package/dist/ssca-manager/src/services/schemas/PolicyFailure.d.ts +4 -0
  21. package/dist/ssca-manager/src/services/schemas/PolicyFailure.js +4 -0
  22. package/dist/ssca-manager/src/services/schemas/UpdateIntegrationRspmRequest.d.ts +6 -0
  23. package/package.json +1 -1
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ScannerConfiguration } from '../schemas/ScannerConfiguration';
3
+ import type { CreateScannerConfigurationRequest } from '../schemas/CreateScannerConfigurationRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface CreateScannerConfigurationMutationPathParams {
7
+ org: string;
8
+ project: string;
9
+ }
10
+ export interface CreateScannerConfigurationMutationHeaderParams {
11
+ 'Harness-Account': string;
12
+ }
13
+ export type CreateScannerConfigurationRequestBody = CreateScannerConfigurationRequest;
14
+ export type CreateScannerConfigurationOkResponse = ResponseWithPagination<ScannerConfiguration>;
15
+ export type CreateScannerConfigurationErrorResponse = unknown;
16
+ export interface CreateScannerConfigurationProps extends CreateScannerConfigurationMutationPathParams, Omit<FetcherOptions<unknown, CreateScannerConfigurationRequestBody, CreateScannerConfigurationMutationHeaderParams>, 'url'> {
17
+ body: CreateScannerConfigurationRequestBody;
18
+ }
19
+ export declare function createScannerConfiguration(props: CreateScannerConfigurationProps): Promise<CreateScannerConfigurationOkResponse>;
20
+ /**
21
+ * Create a scanner configuration
22
+ */
23
+ export declare function useCreateScannerConfigurationMutation(options?: Omit<UseMutationOptions<CreateScannerConfigurationOkResponse, CreateScannerConfigurationErrorResponse, CreateScannerConfigurationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateScannerConfigurationOkResponse, unknown, CreateScannerConfigurationProps, 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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function createScannerConfiguration(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/scanner-configurations`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Create a scanner configuration
11
+ */
12
+ export function useCreateScannerConfigurationMutation(options) {
13
+ return useMutation((mutateProps) => createScannerConfiguration(mutateProps), options);
14
+ }
@@ -0,0 +1,37 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ArtifactListingResponsePipelinePaginatedBodyResponse } from '../responses/ArtifactListingResponsePipelinePaginatedBodyResponse';
3
+ import type { ArtifactListingPipelineRequestBodyRequestBody } from '../requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetPipelineArtifactListV2QueryPathParams {
7
+ org: string;
8
+ project: string;
9
+ pipeline: string;
10
+ execution: string;
11
+ }
12
+ export interface GetPipelineArtifactListV2QueryQueryParams {
13
+ /**
14
+ * @default 30
15
+ */
16
+ limit?: number;
17
+ /**
18
+ * @default 0
19
+ */
20
+ page?: number;
21
+ }
22
+ export interface GetPipelineArtifactListV2QueryHeaderParams {
23
+ 'Harness-Account': string;
24
+ }
25
+ export type GetPipelineArtifactListV2RequestBody = ArtifactListingPipelineRequestBodyRequestBody;
26
+ export type GetPipelineArtifactListV2OkResponse = ResponseWithPagination<ArtifactListingResponsePipelinePaginatedBodyResponse>;
27
+ export type GetPipelineArtifactListV2ErrorResponse = unknown;
28
+ export interface GetPipelineArtifactListV2Props extends GetPipelineArtifactListV2QueryPathParams, Omit<FetcherOptions<GetPipelineArtifactListV2QueryQueryParams, GetPipelineArtifactListV2RequestBody, GetPipelineArtifactListV2QueryHeaderParams>, 'url'> {
29
+ queryParams: GetPipelineArtifactListV2QueryQueryParams;
30
+ body: GetPipelineArtifactListV2RequestBody;
31
+ }
32
+ export declare function getPipelineArtifactListV2(props: GetPipelineArtifactListV2Props): Promise<GetPipelineArtifactListV2OkResponse>;
33
+ /**
34
+ * V2 paginated variant of getPipelineArtifactList. Returns the same artifact listing payload with pagination metadata in response headers. Does not change the behavior of the existing v1 /artifacts endpoint.
35
+ *
36
+ */
37
+ export declare function useGetPipelineArtifactListV2Query(props: GetPipelineArtifactListV2Props, options?: Omit<UseQueryOptions<GetPipelineArtifactListV2OkResponse, GetPipelineArtifactListV2ErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetPipelineArtifactListV2OkResponse, unknown>;
@@ -0,0 +1,23 @@
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 getPipelineArtifactListV2(props) {
7
+ return fetcher(Object.assign({ url: `/v2/orgs/${props.org}/projects/${props.project}/pipelines/${props.pipeline}/executions/${props.execution}/artifacts`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * V2 paginated variant of getPipelineArtifactList. Returns the same artifact listing payload with pagination metadata in response headers. Does not change the behavior of the existing v1 /artifacts endpoint.
11
+ *
12
+ */
13
+ export function useGetPipelineArtifactListV2Query(props, options) {
14
+ return useQuery([
15
+ 'getPipelineArtifactListV2',
16
+ props.org,
17
+ props.project,
18
+ props.pipeline,
19
+ props.execution,
20
+ props.queryParams,
21
+ props.body,
22
+ ], ({ signal }) => getPipelineArtifactListV2(Object.assign(Object.assign({}, props), { signal })), options);
23
+ }
@@ -23,6 +23,7 @@ export interface GetPolicyViolationsQueryQueryParams {
23
23
  sort?: {};
24
24
  search_text?: string;
25
25
  image_layer?: 'APP' | 'BASE' | 'DISTRO';
26
+ exclude_exempted?: boolean;
26
27
  }
27
28
  export interface GetPolicyViolationsQueryHeaderParams {
28
29
  'Harness-Account': string;
@@ -0,0 +1,24 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ScannerConfigurationListResponse } from '../schemas/ScannerConfigurationListResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface ListScannerConfigurationsQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ }
9
+ export interface ListScannerConfigurationsQueryQueryParams {
10
+ scanner_id?: string;
11
+ }
12
+ export interface ListScannerConfigurationsQueryHeaderParams {
13
+ 'Harness-Account': string;
14
+ }
15
+ export type ListScannerConfigurationsOkResponse = ResponseWithPagination<ScannerConfigurationListResponse>;
16
+ export type ListScannerConfigurationsErrorResponse = unknown;
17
+ export interface ListScannerConfigurationsProps extends ListScannerConfigurationsQueryPathParams, Omit<FetcherOptions<ListScannerConfigurationsQueryQueryParams, unknown, ListScannerConfigurationsQueryHeaderParams>, 'url'> {
18
+ queryParams: ListScannerConfigurationsQueryQueryParams;
19
+ }
20
+ export declare function listScannerConfigurations(props: ListScannerConfigurationsProps): Promise<ListScannerConfigurationsOkResponse>;
21
+ /**
22
+ * List scanner configurations
23
+ */
24
+ export declare function useListScannerConfigurationsQuery(props: ListScannerConfigurationsProps, options?: Omit<UseQueryOptions<ListScannerConfigurationsOkResponse, ListScannerConfigurationsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListScannerConfigurationsOkResponse, 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 listScannerConfigurations(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/scanner-configurations`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List scanner configurations
11
+ */
12
+ export function useListScannerConfigurationsQuery(props, options) {
13
+ return useQuery(['listScannerConfigurations', props.org, props.project, props.queryParams], ({ signal }) => listScannerConfigurations(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ScannerConfiguration } from '../schemas/ScannerConfiguration';
3
+ import type { UpdateScannerConfigurationRequest } from '../schemas/UpdateScannerConfigurationRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface UpdateScannerConfigurationMutationPathParams {
7
+ org: string;
8
+ project: string;
9
+ configId: string;
10
+ }
11
+ export interface UpdateScannerConfigurationMutationHeaderParams {
12
+ 'Harness-Account': string;
13
+ }
14
+ export type UpdateScannerConfigurationRequestBody = UpdateScannerConfigurationRequest;
15
+ export type UpdateScannerConfigurationOkResponse = ResponseWithPagination<ScannerConfiguration>;
16
+ export type UpdateScannerConfigurationErrorResponse = unknown;
17
+ export interface UpdateScannerConfigurationProps extends UpdateScannerConfigurationMutationPathParams, Omit<FetcherOptions<unknown, UpdateScannerConfigurationRequestBody, UpdateScannerConfigurationMutationHeaderParams>, 'url'> {
18
+ body: UpdateScannerConfigurationRequestBody;
19
+ }
20
+ export declare function updateScannerConfiguration(props: UpdateScannerConfigurationProps): Promise<UpdateScannerConfigurationOkResponse>;
21
+ /**
22
+ * Update a scanner configuration
23
+ */
24
+ export declare function useUpdateScannerConfigurationMutation(options?: Omit<UseMutationOptions<UpdateScannerConfigurationOkResponse, UpdateScannerConfigurationErrorResponse, UpdateScannerConfigurationProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateScannerConfigurationOkResponse, unknown, UpdateScannerConfigurationProps, 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 { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function updateScannerConfiguration(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/scanner-configurations/${props.configId}`, method: 'PATCH' }, props));
8
+ }
9
+ /**
10
+ * Update a scanner configuration
11
+ */
12
+ export function useUpdateScannerConfigurationMutation(options) {
13
+ return useMutation((mutateProps) => updateScannerConfiguration(mutateProps), options);
14
+ }
@@ -27,6 +27,8 @@ export type { CreateRemediationPullRequestErrorResponse, CreateRemediationPullRe
27
27
  export { createRemediationPullRequest, useCreateRemediationPullRequestMutation, } from './hooks/useCreateRemediationPullRequestMutation';
28
28
  export type { CreateRemediationTrackerErrorResponse, CreateRemediationTrackerMutationPathParams, CreateRemediationTrackerOkResponse, CreateRemediationTrackerProps, CreateRemediationTrackerRequestBody, } from './hooks/useCreateRemediationTrackerMutation';
29
29
  export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
30
+ export type { CreateScannerConfigurationErrorResponse, CreateScannerConfigurationMutationPathParams, CreateScannerConfigurationOkResponse, CreateScannerConfigurationProps, CreateScannerConfigurationRequestBody, } from './hooks/useCreateScannerConfigurationMutation';
31
+ export { createScannerConfiguration, useCreateScannerConfigurationMutation, } from './hooks/useCreateScannerConfigurationMutation';
30
32
  export type { CreateTicketErrorResponse, CreateTicketMutationPathParams, CreateTicketOkResponse, CreateTicketProps, CreateTicketRequestBody, } from './hooks/useCreateTicketMutation';
31
33
  export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMutation';
32
34
  export type { DeleteIntegrationErrorResponse, DeleteIntegrationMutationPathParams, DeleteIntegrationOkResponse, DeleteIntegrationProps, } from './hooks/useDeleteIntegrationMutation';
@@ -159,6 +161,8 @@ export type { GetOverallSummaryErrorResponse, GetOverallSummaryOkResponse, GetOv
159
161
  export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
160
162
  export type { GetPipelineArtifactListErrorResponse, GetPipelineArtifactListOkResponse, GetPipelineArtifactListProps, GetPipelineArtifactListQueryPathParams, GetPipelineArtifactListRequestBody, } from './hooks/useGetPipelineArtifactListQuery';
161
163
  export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
164
+ export type { GetPipelineArtifactListV2ErrorResponse, GetPipelineArtifactListV2OkResponse, GetPipelineArtifactListV2Props, GetPipelineArtifactListV2QueryPathParams, GetPipelineArtifactListV2QueryQueryParams, GetPipelineArtifactListV2RequestBody, } from './hooks/useGetPipelineArtifactListV2Query';
165
+ export { getPipelineArtifactListV2, useGetPipelineArtifactListV2Query, } from './hooks/useGetPipelineArtifactListV2Query';
162
166
  export type { GetPolicyViolationsErrorResponse, GetPolicyViolationsOkResponse, GetPolicyViolationsProps, GetPolicyViolationsQueryPathParams, GetPolicyViolationsQueryQueryParams, } from './hooks/useGetPolicyViolationsQuery';
163
167
  export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
164
168
  export type { GetProjectAiWorkflowConfigErrorResponse, GetProjectAiWorkflowConfigOkResponse, GetProjectAiWorkflowConfigProps, GetProjectAiWorkflowConfigQueryPathParams, GetProjectAiWorkflowConfigQueryQueryParams, } from './hooks/useGetProjectAiWorkflowConfigQuery';
@@ -189,6 +193,8 @@ export type { ListIntegrationsErrorResponse, ListIntegrationsOkResponse, ListInt
189
193
  export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
190
194
  export type { ListRemediationsErrorResponse, ListRemediationsOkResponse, ListRemediationsProps, ListRemediationsQueryPathParams, ListRemediationsQueryQueryParams, ListRemediationsRequestBody, } from './hooks/useListRemediationsQuery';
191
195
  export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
196
+ export type { ListScannerConfigurationsErrorResponse, ListScannerConfigurationsOkResponse, ListScannerConfigurationsProps, ListScannerConfigurationsQueryPathParams, ListScannerConfigurationsQueryQueryParams, } from './hooks/useListScannerConfigurationsQuery';
197
+ export { listScannerConfigurations, useListScannerConfigurationsQuery, } from './hooks/useListScannerConfigurationsQuery';
192
198
  export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationPathParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeMutationQueryParams, PostComplianceResultStatsEvaluationBreakdownArtifactTypeOkResponse, PostComplianceResultStatsEvaluationBreakdownArtifactTypeProps, PostComplianceResultStatsEvaluationBreakdownArtifactTypeRequestBody, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
193
199
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
194
200
  export type { PostComplianceResultStatsOverviewErrorResponse, PostComplianceResultStatsOverviewMutationPathParams, PostComplianceResultStatsOverviewMutationQueryParams, PostComplianceResultStatsOverviewOkResponse, PostComplianceResultStatsOverviewProps, PostComplianceResultStatsOverviewRequestBody, } from './hooks/usePostComplianceResultStatsOverviewMutation';
@@ -219,6 +225,8 @@ export type { UpdateExemptionErrorResponse, UpdateExemptionMutationPathParams, U
219
225
  export { updateExemption, useUpdateExemptionMutation } from './hooks/useUpdateExemptionMutation';
220
226
  export type { UpdateRemediationTrackerErrorResponse, UpdateRemediationTrackerMutationPathParams, UpdateRemediationTrackerOkResponse, UpdateRemediationTrackerProps, UpdateRemediationTrackerRequestBody, } from './hooks/useUpdateRemediationTrackerMutation';
221
227
  export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
228
+ export type { UpdateScannerConfigurationErrorResponse, UpdateScannerConfigurationMutationPathParams, UpdateScannerConfigurationOkResponse, UpdateScannerConfigurationProps, UpdateScannerConfigurationRequestBody, } from './hooks/useUpdateScannerConfigurationMutation';
229
+ export { updateScannerConfiguration, useUpdateScannerConfigurationMutation, } from './hooks/useUpdateScannerConfigurationMutation';
222
230
  export type { UpsertEolAutoTicketConfigErrorResponse, UpsertEolAutoTicketConfigMutationPathParams, UpsertEolAutoTicketConfigOkResponse, UpsertEolAutoTicketConfigProps, UpsertEolAutoTicketConfigRequestBody, } from './hooks/useUpsertEolAutoTicketConfigMutation';
223
231
  export { upsertEolAutoTicketConfig, useUpsertEolAutoTicketConfigMutation, } from './hooks/useUpsertEolAutoTicketConfigMutation';
224
232
  export type { AiWorkflowExecutionRequestBodyRequestBody } from './requestBodies/AiWorkflowExecutionRequestBodyRequestBody';
@@ -296,6 +304,7 @@ export type { ArtifactDetailResponseBodyResponse } from './responses/ArtifactDet
296
304
  export type { ArtifactListingResponseBodyResponse } from './responses/ArtifactListingResponseBodyResponse';
297
305
  export type { ArtifactListingResponseBodyV2Response } from './responses/ArtifactListingResponseBodyV2Response';
298
306
  export type { ArtifactListingResponsePipelineBodyResponse } from './responses/ArtifactListingResponsePipelineBodyResponse';
307
+ export type { ArtifactListingResponsePipelinePaginatedBodyResponse } from './responses/ArtifactListingResponsePipelinePaginatedBodyResponse';
299
308
  export type { ArtifactSbomDriftResponseBodyResponse } from './responses/ArtifactSbomDriftResponseBodyResponse';
300
309
  export type { ArtifactSbomResponseBodyResponse } from './responses/ArtifactSbomResponseBodyResponse';
301
310
  export type { ArtifactSourcesListingResponseResponse } from './responses/ArtifactSourcesListingResponseResponse';
@@ -698,6 +707,7 @@ export type { PipelineInfraConfigRequestBody } from './schemas/PipelineInfraConf
698
707
  export type { PipelineStoreConfigRequestBody } from './schemas/PipelineStoreConfigRequestBody';
699
708
  export type { PluginDto } from './schemas/PluginDto';
700
709
  export type { PluginResponseBody } from './schemas/PluginResponseBody';
710
+ export type { PolicyFailure } from './schemas/PolicyFailure';
701
711
  export type { PolicyViolation } from './schemas/PolicyViolation';
702
712
  export type { PolicyViolationRequestBody } from './schemas/PolicyViolationRequestBody';
703
713
  export type { PresignedDownloadResponse } from './schemas/PresignedDownloadResponse';
@@ -12,6 +12,7 @@ export { createExemption, useCreateExemptionMutation } from './hooks/useCreateEx
12
12
  export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
13
13
  export { createRemediationPullRequest, useCreateRemediationPullRequestMutation, } from './hooks/useCreateRemediationPullRequestMutation';
14
14
  export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
15
+ export { createScannerConfiguration, useCreateScannerConfigurationMutation, } from './hooks/useCreateScannerConfigurationMutation';
15
16
  export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMutation';
16
17
  export { deleteIntegration, useDeleteIntegrationMutation, } from './hooks/useDeleteIntegrationMutation';
17
18
  export { downloadAttestation, useDownloadAttestationQuery, } from './hooks/useDownloadAttestationQuery';
@@ -78,6 +79,7 @@ export { getLicenseFamilyConfig, useGetLicenseFamilyConfigQuery, } from './hooks
78
79
  export { getOssScoringCapConfig, useGetOssScoringCapConfigQuery, } from './hooks/useGetOssScoringCapConfigQuery';
79
80
  export { getOverallSummary, useGetOverallSummaryQuery } from './hooks/useGetOverallSummaryQuery';
80
81
  export { getPipelineArtifactList, useGetPipelineArtifactListQuery, } from './hooks/useGetPipelineArtifactListQuery';
82
+ export { getPipelineArtifactListV2, useGetPipelineArtifactListV2Query, } from './hooks/useGetPipelineArtifactListV2Query';
81
83
  export { getPolicyViolations, useGetPolicyViolationsQuery, } from './hooks/useGetPolicyViolationsQuery';
82
84
  export { getProjectAiWorkflowConfig, useGetProjectAiWorkflowConfigQuery, } from './hooks/useGetProjectAiWorkflowConfigQuery';
83
85
  export { getProvenance, useGetProvenanceQuery } from './hooks/useGetProvenanceQuery';
@@ -93,6 +95,7 @@ export { listAttestations, useListAttestationsMutation } from './hooks/useListAt
93
95
  export { listExemptions, useListExemptionsQuery } from './hooks/useListExemptionsQuery';
94
96
  export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
95
97
  export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
98
+ export { listScannerConfigurations, useListScannerConfigurationsQuery, } from './hooks/useListScannerConfigurationsQuery';
96
99
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
97
100
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
98
101
  export { remediateAffectedTarget, useRemediateAffectedTargetQuery, } from './hooks/useRemediateAffectedTargetQuery';
@@ -108,4 +111,5 @@ export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicen
108
111
  export { toggleAgentStatus, useToggleAgentStatusMutation, } from './hooks/useToggleAgentStatusMutation';
109
112
  export { updateExemption, useUpdateExemptionMutation } from './hooks/useUpdateExemptionMutation';
110
113
  export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
114
+ export { updateScannerConfiguration, useUpdateScannerConfigurationMutation, } from './hooks/useUpdateScannerConfigurationMutation';
111
115
  export { upsertEolAutoTicketConfig, useUpsertEolAutoTicketConfigMutation, } from './hooks/useUpsertEolAutoTicketConfigMutation';
@@ -0,0 +1,2 @@
1
+ import type { ArtifactListingPipelineResponse } from '../schemas/ArtifactListingPipelineResponse';
2
+ export type ArtifactListingResponsePipelinePaginatedBodyResponse = ArtifactListingPipelineResponse[];
@@ -16,6 +16,12 @@ export interface CreateIntegrationRequest {
16
16
  enabled_scanners?: string[];
17
17
  infra_config?: InfraConfigDto;
18
18
  installation_id?: string;
19
+ /**
20
+ * Map of scanner identifier to scanner configuration catalog id
21
+ */
22
+ scanner_config_refs?: {
23
+ [key: string]: string;
24
+ };
19
25
  /**
20
26
  * Map of scanner identifier to credential secret refs
21
27
  */
@@ -1,9 +1,14 @@
1
+ import type { PolicyFailure } from '../schemas/PolicyFailure';
1
2
  import type { PluginResponseBody } from '../schemas/PluginResponseBody';
2
3
  export interface EnforceSbomResponseBody {
3
4
  /**
4
5
  * ID of the enforcement of the SBOM
5
6
  */
6
7
  enforcement_id?: string;
8
+ /**
9
+ * Deduplicated policy set and policy identifiers that produced active violations.
10
+ */
11
+ policy_failures?: PolicyFailure[];
7
12
  response?: PluginResponseBody;
8
13
  /**
9
14
  * Status of the enforcement
@@ -27,6 +27,10 @@ export interface ExemptionCreateRequestBody {
27
27
  * Requested duration in days (e.g. 7, 30, 90). null / absent = "All time" (never expires).
28
28
  */
29
29
  duration_days?: number | null;
30
+ /**
31
+ * Package manager / purl type (e.g. "npm", "maven", "pypi"). Omit / null when the exemption applies to any package manager. Prefer the SBOM `package_manager` form when tightening match.
32
+ */
33
+ package_manager?: string | null;
30
34
  reason: ExemptionReasonDto;
31
35
  /**
32
36
  * Link to a Jira / RFC or other supporting reference.
@@ -45,6 +45,10 @@ export interface ExemptionResponse {
45
45
  last_modified_at?: number;
46
46
  org_id?: string | null;
47
47
  org_name?: string | null;
48
+ /**
49
+ * Package manager / purl type (e.g. "npm", "maven", "pypi"). null when the exemption applies to any package manager.
50
+ */
51
+ package_manager?: string | null;
48
52
  project_id?: string | null;
49
53
  project_name?: string | null;
50
54
  reason?: ExemptionReasonDto;
@@ -20,6 +20,12 @@ export interface Integration {
20
20
  */
21
21
  last_scan_at?: number;
22
22
  org?: string;
23
+ /**
24
+ * Map of scanner identifier to scanner configuration catalog id
25
+ */
26
+ scanner_config_refs?: {
27
+ [key: string]: string;
28
+ };
23
29
  /**
24
30
  * Map of scanner identifier to credential secret refs
25
31
  */
@@ -42,6 +42,11 @@ export interface OidcIdTokenRequest {
42
42
  * Environment type
43
43
  */
44
44
  environment_type?: string;
45
+ /**
46
+ * Keyless OIDC token source. When set to non-harness, SSCA Manager resolves the account KEYLESS_SIGNING_CONNECTOR_CONFIG and returns an OIDC ID token minted for that AWS/GCP/Azure OIDC connector. When omitted or harness, mints a custom Harness OIDC ID token from the request attributes.
47
+ *
48
+ */
49
+ keyless_type?: 'harness' | 'non-harness';
45
50
  /**
46
51
  * Organization identifier
47
52
  */
@@ -0,0 +1,4 @@
1
+ export interface PolicyFailure {
2
+ policy_identifier?: string;
3
+ policy_set_identifier?: string;
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 {};
@@ -16,6 +16,12 @@ export interface UpdateIntegrationRspmRequest {
16
16
  */
17
17
  enabled_scanners?: string[];
18
18
  infra_config?: InfraConfigDto;
19
+ /**
20
+ * Map of scanner identifier to scanner configuration catalog id
21
+ */
22
+ scanner_config_refs?: {
23
+ [key: string]: string;
24
+ };
19
25
  /**
20
26
  * Map of scanner identifier to credential secret refs
21
27
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.86.4",
3
+ "version": "0.86.6",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",