@harnessio/react-ssca-manager-client 0.84.10 → 0.84.12

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 (39) hide show
  1. package/dist/ssca-manager/src/services/hooks/useDownloadAttestationQuery.d.ts +21 -0
  2. package/dist/ssca-manager/src/services/hooks/useDownloadAttestationQuery.js +14 -0
  3. package/dist/ssca-manager/src/services/hooks/useImportLicenseFamilyConfigMutation.d.ts +23 -0
  4. package/dist/ssca-manager/src/services/hooks/useImportLicenseFamilyConfigMutation.js +14 -0
  5. package/dist/ssca-manager/src/services/hooks/useResetLicenseFamilyConfigMutation.d.ts +24 -0
  6. package/dist/ssca-manager/src/services/hooks/useResetLicenseFamilyConfigMutation.js +14 -0
  7. package/dist/ssca-manager/src/services/index.d.ts +15 -4
  8. package/dist/ssca-manager/src/services/index.js +3 -1
  9. package/dist/ssca-manager/src/services/requestBodies/BatchComponentRemediationRequestBodyRequestBody.d.ts +2 -0
  10. package/dist/ssca-manager/src/services/requestBodies/BatchComponentRemediationRequestBodyRequestBody.js +1 -0
  11. package/dist/ssca-manager/src/services/responses/ComponentSearchResponseBodyResponse.d.ts +2 -0
  12. package/dist/ssca-manager/src/services/responses/ComponentSearchResponseBodyResponse.js +1 -0
  13. package/dist/ssca-manager/src/services/schemas/ActivityDetails.d.ts +1 -1
  14. package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewResponse.d.ts +0 -4
  15. package/dist/ssca-manager/src/services/schemas/AttestationActivity.d.ts +21 -0
  16. package/dist/ssca-manager/src/services/schemas/AttestationActivity.js +1 -0
  17. package/dist/ssca-manager/src/services/schemas/AttestationSource.d.ts +5 -0
  18. package/dist/ssca-manager/src/services/schemas/AttestationType.d.ts +5 -0
  19. package/dist/ssca-manager/src/services/schemas/AttestationUploadRequest.d.ts +4 -0
  20. package/dist/ssca-manager/src/services/schemas/AttestationUploadResponseBody.d.ts +4 -0
  21. package/dist/ssca-manager/src/services/schemas/AutoPrAdvancedRule.d.ts +4 -0
  22. package/dist/ssca-manager/src/services/schemas/BatchComponentRemediationItem.d.ts +16 -0
  23. package/dist/ssca-manager/src/services/schemas/BatchComponentRemediationItem.js +1 -0
  24. package/dist/ssca-manager/src/services/schemas/BatchComponentRemediationRequest.d.ts +10 -0
  25. package/dist/ssca-manager/src/services/schemas/BatchComponentRemediationRequest.js +4 -0
  26. package/dist/ssca-manager/src/services/schemas/BatchComponentRemediationResponse.d.ts +16 -0
  27. package/dist/ssca-manager/src/services/schemas/BatchComponentRemediationResponse.js +1 -0
  28. package/dist/ssca-manager/src/services/schemas/ComponentSearchResult.d.ts +33 -0
  29. package/dist/ssca-manager/src/services/schemas/ComponentSearchResult.js +4 -0
  30. package/dist/ssca-manager/src/services/schemas/LicenseFamilyConfigResponse.d.ts +2 -5
  31. package/dist/ssca-manager/src/services/schemas/LicenseFamilyImportRequest.d.ts +0 -4
  32. package/dist/ssca-manager/src/services/schemas/LicenseFamilyResponse.d.ts +0 -4
  33. package/package.json +1 -1
  34. package/dist/ssca-manager/src/services/hooks/useUpdateLicenseFamilyConfigMutation.d.ts +0 -23
  35. package/dist/ssca-manager/src/services/hooks/useUpdateLicenseFamilyConfigMutation.js +0 -14
  36. package/dist/ssca-manager/src/services/schemas/LicenseFamilyConfigUpdateRequest.d.ts +0 -8
  37. package/dist/ssca-manager/src/services/schemas/LicenseFamilyImportResponse.d.ts +0 -14
  38. /package/dist/ssca-manager/src/services/schemas/{LicenseFamilyConfigUpdateRequest.js → AttestationSource.js} +0 -0
  39. /package/dist/ssca-manager/src/services/schemas/{LicenseFamilyImportResponse.js → AttestationType.js} +0 -0
@@ -0,0 +1,21 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AttestationDownloadResponseResponse } from '../responses/AttestationDownloadResponseResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface DownloadAttestationQueryPathParams {
6
+ org: string;
7
+ project: string;
8
+ digest: string;
9
+ }
10
+ export interface DownloadAttestationQueryHeaderParams {
11
+ 'Harness-Account': string;
12
+ }
13
+ export type DownloadAttestationOkResponse = ResponseWithPagination<AttestationDownloadResponseResponse>;
14
+ export type DownloadAttestationErrorResponse = unknown;
15
+ export interface DownloadAttestationProps extends DownloadAttestationQueryPathParams, Omit<FetcherOptions<unknown, unknown, DownloadAttestationQueryHeaderParams>, 'url'> {
16
+ }
17
+ export declare function downloadAttestation(props: DownloadAttestationProps): Promise<DownloadAttestationOkResponse>;
18
+ /**
19
+ * Download DSSE attestation envelope by digest
20
+ */
21
+ export declare function useDownloadAttestationQuery(props: DownloadAttestationProps, options?: Omit<UseQueryOptions<DownloadAttestationOkResponse, DownloadAttestationErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<DownloadAttestationOkResponse, 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 downloadAttestation(props) {
7
+ return fetcher(Object.assign({ url: `/v2/orgs/${props.org}/projects/${props.project}/attestations/download/${props.digest}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Download DSSE attestation envelope by digest
11
+ */
12
+ export function useDownloadAttestationQuery(props, options) {
13
+ return useQuery(['downloadAttestation', props.org, props.project, props.digest], ({ signal }) => downloadAttestation(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,23 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { LicenseFamilyConfigResponse } from '../schemas/LicenseFamilyConfigResponse';
3
+ import type { LicenseFamilyImportRequest } from '../schemas/LicenseFamilyImportRequest';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface ImportLicenseFamilyConfigMutationPathParams {
7
+ org: string;
8
+ project: string;
9
+ }
10
+ export interface ImportLicenseFamilyConfigMutationHeaderParams {
11
+ 'Harness-Account': string;
12
+ }
13
+ export type ImportLicenseFamilyConfigRequestBody = LicenseFamilyImportRequest;
14
+ export type ImportLicenseFamilyConfigOkResponse = ResponseWithPagination<LicenseFamilyConfigResponse>;
15
+ export type ImportLicenseFamilyConfigErrorResponse = unknown;
16
+ export interface ImportLicenseFamilyConfigProps extends ImportLicenseFamilyConfigMutationPathParams, Omit<FetcherOptions<unknown, ImportLicenseFamilyConfigRequestBody, ImportLicenseFamilyConfigMutationHeaderParams>, 'url'> {
17
+ body: ImportLicenseFamilyConfigRequestBody;
18
+ }
19
+ export declare function importLicenseFamilyConfig(props: ImportLicenseFamilyConfigProps): Promise<ImportLicenseFamilyConfigOkResponse>;
20
+ /**
21
+ * Bulk import license-to-family mappings from CSV/TSV/newline-separated data
22
+ */
23
+ export declare function useImportLicenseFamilyConfigMutation(options?: Omit<UseMutationOptions<ImportLicenseFamilyConfigOkResponse, ImportLicenseFamilyConfigErrorResponse, ImportLicenseFamilyConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportLicenseFamilyConfigOkResponse, unknown, ImportLicenseFamilyConfigProps, 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 importLicenseFamilyConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/license-family-config/import`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Bulk import license-to-family mappings from CSV/TSV/newline-separated data
11
+ */
12
+ export function useImportLicenseFamilyConfigMutation(options) {
13
+ return useMutation((mutateProps) => importLicenseFamilyConfig(mutateProps), options);
14
+ }
@@ -0,0 +1,24 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { LicenseFamilyConfigResponse } from '../schemas/LicenseFamilyConfigResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface ResetLicenseFamilyConfigMutationPathParams {
6
+ org: string;
7
+ project: string;
8
+ }
9
+ export interface ResetLicenseFamilyConfigMutationQueryParams {
10
+ family: 'Copyleft' | 'Permissive' | 'Unknown/Proprietary' | 'Weak Copyleft';
11
+ }
12
+ export interface ResetLicenseFamilyConfigMutationHeaderParams {
13
+ 'Harness-Account': string;
14
+ }
15
+ export type ResetLicenseFamilyConfigOkResponse = ResponseWithPagination<LicenseFamilyConfigResponse>;
16
+ export type ResetLicenseFamilyConfigErrorResponse = unknown;
17
+ export interface ResetLicenseFamilyConfigProps extends ResetLicenseFamilyConfigMutationPathParams, Omit<FetcherOptions<ResetLicenseFamilyConfigMutationQueryParams, unknown, ResetLicenseFamilyConfigMutationHeaderParams>, 'url'> {
18
+ queryParams: ResetLicenseFamilyConfigMutationQueryParams;
19
+ }
20
+ export declare function resetLicenseFamilyConfig(props: ResetLicenseFamilyConfigProps): Promise<ResetLicenseFamilyConfigOkResponse>;
21
+ /**
22
+ * Reset a specific license family to Harness defaults
23
+ */
24
+ export declare function useResetLicenseFamilyConfigMutation(options?: Omit<UseMutationOptions<ResetLicenseFamilyConfigOkResponse, ResetLicenseFamilyConfigErrorResponse, ResetLicenseFamilyConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ResetLicenseFamilyConfigOkResponse, unknown, ResetLicenseFamilyConfigProps, 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 resetLicenseFamilyConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/license-family-config/reset`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Reset a specific license family to Harness defaults
11
+ */
12
+ export function useResetLicenseFamilyConfigMutation(options) {
13
+ return useMutation((mutateProps) => resetLicenseFamilyConfig(mutateProps), options);
14
+ }
@@ -23,6 +23,8 @@ export type { CreateTicketErrorResponse, CreateTicketMutationPathParams, CreateT
23
23
  export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMutation';
24
24
  export type { DeleteIntegrationErrorResponse, DeleteIntegrationMutationPathParams, DeleteIntegrationOkResponse, DeleteIntegrationProps, } from './hooks/useDeleteIntegrationMutation';
25
25
  export { deleteIntegration, useDeleteIntegrationMutation, } from './hooks/useDeleteIntegrationMutation';
26
+ export type { DownloadAttestationErrorResponse, DownloadAttestationOkResponse, DownloadAttestationProps, DownloadAttestationQueryPathParams, } from './hooks/useDownloadAttestationQuery';
27
+ export { downloadAttestation, useDownloadAttestationQuery, } from './hooks/useDownloadAttestationQuery';
26
28
  export type { DownloadSbomErrorResponse, DownloadSbomOkResponse, DownloadSbomProps, DownloadSbomQueryPathParams, } from './hooks/useDownloadSbomQuery';
27
29
  export { downloadSbom, useDownloadSbomQuery } from './hooks/useDownloadSbomQuery';
28
30
  export type { ExcludeArtifactErrorResponse, ExcludeArtifactMutationPathParams, ExcludeArtifactOkResponse, ExcludeArtifactProps, ExcludeArtifactRequestBody, } from './hooks/useExcludeArtifactMutation';
@@ -131,6 +133,8 @@ export type { GetSbomScorecardErrorResponse, GetSbomScorecardOkResponse, GetSbom
131
133
  export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
132
134
  export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSummaryProps, GetSscaSummaryQueryPathParams, } from './hooks/useGetSscaSummaryQuery';
133
135
  export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
136
+ export type { ImportLicenseFamilyConfigErrorResponse, ImportLicenseFamilyConfigMutationPathParams, ImportLicenseFamilyConfigOkResponse, ImportLicenseFamilyConfigProps, ImportLicenseFamilyConfigRequestBody, } from './hooks/useImportLicenseFamilyConfigMutation';
137
+ export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
134
138
  export type { ListArtifactSourcesErrorResponse, ListArtifactSourcesOkResponse, ListArtifactSourcesProps, ListArtifactSourcesQueryPathParams, ListArtifactSourcesQueryQueryParams, ListArtifactSourcesRequestBody, } from './hooks/useListArtifactSourcesQuery';
135
139
  export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
136
140
  export type { ListIntegrationsErrorResponse, ListIntegrationsOkResponse, ListIntegrationsProps, ListIntegrationsQueryPathParams, ListIntegrationsQueryQueryParams, } from './hooks/useListIntegrationsQuery';
@@ -141,6 +145,8 @@ export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorRespo
141
145
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
142
146
  export type { PostComplianceResultStatsOverviewErrorResponse, PostComplianceResultStatsOverviewMutationPathParams, PostComplianceResultStatsOverviewMutationQueryParams, PostComplianceResultStatsOverviewOkResponse, PostComplianceResultStatsOverviewProps, PostComplianceResultStatsOverviewRequestBody, } from './hooks/usePostComplianceResultStatsOverviewMutation';
143
147
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
148
+ export type { ResetLicenseFamilyConfigErrorResponse, ResetLicenseFamilyConfigMutationPathParams, ResetLicenseFamilyConfigMutationQueryParams, ResetLicenseFamilyConfigOkResponse, ResetLicenseFamilyConfigProps, } from './hooks/useResetLicenseFamilyConfigMutation';
149
+ export { resetLicenseFamilyConfig, useResetLicenseFamilyConfigMutation, } from './hooks/useResetLicenseFamilyConfigMutation';
144
150
  export type { SaveAutoPrConfigErrorResponse, SaveAutoPrConfigOkResponse, SaveAutoPrConfigProps, SaveAutoPrConfigRequestBody, } from './hooks/useSaveAutoPrConfigMutation';
145
151
  export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
146
152
  export type { SaveConnectorConfigErrorResponse, SaveConnectorConfigOkResponse, SaveConnectorConfigProps, SaveConnectorConfigRequestBody, } from './hooks/useSaveConnectorConfigMutation';
@@ -149,8 +155,6 @@ export type { SetBaselineForArtifactV2ErrorResponse, SetBaselineForArtifactV2Mut
149
155
  export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
150
156
  export type { SscaLicenseUsageErrorResponse, SscaLicenseUsageOkResponse, SscaLicenseUsageProps, SscaLicenseUsageQueryQueryParams, } from './hooks/useSscaLicenseUsageQuery';
151
157
  export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
152
- export type { UpdateLicenseFamilyConfigErrorResponse, UpdateLicenseFamilyConfigMutationPathParams, UpdateLicenseFamilyConfigOkResponse, UpdateLicenseFamilyConfigProps, UpdateLicenseFamilyConfigRequestBody, } from './hooks/useUpdateLicenseFamilyConfigMutation';
153
- export { updateLicenseFamilyConfig, useUpdateLicenseFamilyConfigMutation, } from './hooks/useUpdateLicenseFamilyConfigMutation';
154
158
  export type { UpdateRemediationTrackerErrorResponse, UpdateRemediationTrackerMutationPathParams, UpdateRemediationTrackerOkResponse, UpdateRemediationTrackerProps, UpdateRemediationTrackerRequestBody, } from './hooks/useUpdateRemediationTrackerMutation';
155
159
  export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
156
160
  export type { AiWorkflowExecutionRequestBodyRequestBody } from './requestBodies/AiWorkflowExecutionRequestBodyRequestBody';
@@ -163,6 +167,7 @@ export type { AttestationUploadRequestBodyRequestBody } from './requestBodies/At
163
167
  export type { AutoPrConfigRequestBodyRequestBody } from './requestBodies/AutoPrConfigRequestBodyRequestBody';
164
168
  export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
165
169
  export type { BaselineV2RequestBodyRequestBody } from './requestBodies/BaselineV2RequestBodyRequestBody';
170
+ export type { BatchComponentRemediationRequestBodyRequestBody } from './requestBodies/BatchComponentRemediationRequestBodyRequestBody';
166
171
  export type { ClosePrsRequestBodyRequestBody } from './requestBodies/ClosePrsRequestBodyRequestBody';
167
172
  export type { CodeRepositoryListingRequestBodyRequestBody } from './requestBodies/CodeRepositoryListingRequestBodyRequestBody';
168
173
  export type { ComplianceEvaluationTrendRequestRequestBody } from './requestBodies/ComplianceEvaluationTrendRequestRequestBody';
@@ -241,6 +246,7 @@ export type { ComplianceStandardsResponseBodyResponse } from './responses/Compli
241
246
  export type { ComponentDependenciesResponseBodyResponse } from './responses/ComponentDependenciesResponseBodyResponse';
242
247
  export type { ComponentDriftResponseBodyResponse } from './responses/ComponentDriftResponseBodyResponse';
243
248
  export type { ComponentListResponseBodyResponse } from './responses/ComponentListResponseBodyResponse';
249
+ export type { ComponentSearchResponseBodyResponse } from './responses/ComponentSearchResponseBodyResponse';
244
250
  export type { ComponentVulnerabilityListResponseBodyResponse } from './responses/ComponentVulnerabilityListResponseBodyResponse';
245
251
  export type { ConfigResponseBodyResponse } from './responses/ConfigResponseBodyResponse';
246
252
  export type { CreateIntegrationResponseBodyResponse } from './responses/CreateIntegrationResponseBodyResponse';
@@ -324,7 +330,10 @@ export type { ArtifactV2ListingResponse } from './schemas/ArtifactV2ListingRespo
324
330
  export type { ArtifactV2Overview } from './schemas/ArtifactV2Overview';
325
331
  export type { ArtifactVariant } from './schemas/ArtifactVariant';
326
332
  export type { Attestation } from './schemas/Attestation';
333
+ export type { AttestationActivity } from './schemas/AttestationActivity';
327
334
  export type { AttestationLinks } from './schemas/AttestationLinks';
335
+ export type { AttestationSource } from './schemas/AttestationSource';
336
+ export type { AttestationType } from './schemas/AttestationType';
328
337
  export type { AttestationUploadRequest } from './schemas/AttestationUploadRequest';
329
338
  export type { AttestationUploadResponseBody } from './schemas/AttestationUploadResponseBody';
330
339
  export type { AutoPrAdvancedRule } from './schemas/AutoPrAdvancedRule';
@@ -344,6 +353,9 @@ export type { AutoPrVersioningRule } from './schemas/AutoPrVersioningRule';
344
353
  export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
345
354
  export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
346
355
  export type { BaselineV2RequestBody } from './schemas/BaselineV2RequestBody';
356
+ export type { BatchComponentRemediationItem } from './schemas/BatchComponentRemediationItem';
357
+ export type { BatchComponentRemediationRequest } from './schemas/BatchComponentRemediationRequest';
358
+ export type { BatchComponentRemediationResponse } from './schemas/BatchComponentRemediationResponse';
347
359
  export type { CategoryScorecard } from './schemas/CategoryScorecard';
348
360
  export type { CategoryScorecardCheck } from './schemas/CategoryScorecardCheck';
349
361
  export type { ChunkMetadata } from './schemas/ChunkMetadata';
@@ -393,6 +405,7 @@ export type { ComponentDto } from './schemas/ComponentDto';
393
405
  export type { ComponentFilter } from './schemas/ComponentFilter';
394
406
  export type { ComponentParent } from './schemas/ComponentParent';
395
407
  export type { ComponentRemediationResponse } from './schemas/ComponentRemediationResponse';
408
+ export type { ComponentSearchResult } from './schemas/ComponentSearchResult';
396
409
  export type { ComponentSummary } from './schemas/ComponentSummary';
397
410
  export type { ComponentVulnerabilityResponse } from './schemas/ComponentVulnerabilityResponse';
398
411
  export type { ConfigInfo } from './schemas/ConfigInfo';
@@ -477,9 +490,7 @@ export type { LayerType } from './schemas/LayerType';
477
490
  export type { LicenseDrift } from './schemas/LicenseDrift';
478
491
  export type { LicenseDriftSummary } from './schemas/LicenseDriftSummary';
479
492
  export type { LicenseFamilyConfigResponse } from './schemas/LicenseFamilyConfigResponse';
480
- export type { LicenseFamilyConfigUpdateRequest } from './schemas/LicenseFamilyConfigUpdateRequest';
481
493
  export type { LicenseFamilyImportRequest } from './schemas/LicenseFamilyImportRequest';
482
- export type { LicenseFamilyImportResponse } from './schemas/LicenseFamilyImportResponse';
483
494
  export type { LicenseFamilyResponse } from './schemas/LicenseFamilyResponse';
484
495
  export type { LicenseFilter } from './schemas/LicenseFilter';
485
496
  export type { LicenseUsageResponse } from './schemas/LicenseUsageResponse';
@@ -10,6 +10,7 @@ export { createRemediationPullRequest, useCreateRemediationPullRequestMutation,
10
10
  export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
11
11
  export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMutation';
12
12
  export { deleteIntegration, useDeleteIntegrationMutation, } from './hooks/useDeleteIntegrationMutation';
13
+ export { downloadAttestation, useDownloadAttestationQuery, } from './hooks/useDownloadAttestationQuery';
13
14
  export { downloadSbom, useDownloadSbomQuery } from './hooks/useDownloadSbomQuery';
14
15
  export { excludeArtifact, useExcludeArtifactMutation } from './hooks/useExcludeArtifactMutation';
15
16
  export { fetchComplianceResultsByArtifact, useFetchComplianceResultsByArtifactQuery, } from './hooks/useFetchComplianceResultsByArtifactQuery';
@@ -64,14 +65,15 @@ export { getRemediationDetails, useGetRemediationDetailsQuery, } from './hooks/u
64
65
  export { getRepoRulesEvaluationTrend, useGetRepoRulesEvaluationTrendQuery, } from './hooks/useGetRepoRulesEvaluationTrendQuery';
65
66
  export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
66
67
  export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
68
+ export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
67
69
  export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
68
70
  export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
69
71
  export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
70
72
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
71
73
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
74
+ export { resetLicenseFamilyConfig, useResetLicenseFamilyConfigMutation, } from './hooks/useResetLicenseFamilyConfigMutation';
72
75
  export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
73
76
  export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
74
77
  export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
75
78
  export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
76
- export { updateLicenseFamilyConfig, useUpdateLicenseFamilyConfigMutation, } from './hooks/useUpdateLicenseFamilyConfigMutation';
77
79
  export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
@@ -0,0 +1,2 @@
1
+ import type { BatchComponentRemediationRequest } from '../schemas/BatchComponentRemediationRequest';
2
+ export type BatchComponentRemediationRequestBodyRequestBody = BatchComponentRemediationRequest;
@@ -0,0 +1,2 @@
1
+ import type { ComponentSearchResult } from '../schemas/ComponentSearchResult';
2
+ export type ComponentSearchResponseBodyResponse = ComponentSearchResult[];
@@ -1,3 +1,3 @@
1
1
  export interface ActivityDetails {
2
- type: 'deployment' | 'enforcement' | 'integrity_verification' | 'orchestration' | 'provenance' | 'signing' | 'verification' | 'vulnerability';
2
+ type: 'attestation' | 'deployment' | 'enforcement' | 'integrity_verification' | 'orchestration' | 'provenance' | 'signing' | 'verification' | 'vulnerability';
3
3
  }
@@ -48,10 +48,6 @@ export interface ArtifactComponentViewResponse {
48
48
  * License family classification
49
49
  */
50
50
  license_family?: 'Copyleft' | 'Permissive' | 'Unknown/Proprietary' | 'Weak Copyleft';
51
- /**
52
- * Source of the license family mapping
53
- */
54
- license_family_source?: 'custom' | 'harness-default';
55
51
  /**
56
52
  * Source of the malicious package
57
53
  */
@@ -0,0 +1,21 @@
1
+ import type { AttestationType } from '../schemas/AttestationType';
2
+ import type { AttestationSource } from '../schemas/AttestationSource';
3
+ import type { ActivityDetails } from '../schemas/ActivityDetails';
4
+ export interface AttestationActivity extends ActivityDetails {
5
+ attestation_type?: AttestationType;
6
+ /**
7
+ * The gitoid SHA256 hash of the attestation
8
+ */
9
+ gitoid_sha256?: string;
10
+ source?: AttestationSource;
11
+ /**
12
+ * List of subjects in the attestation
13
+ */
14
+ subjects?: Array<{
15
+ [key: string]: any;
16
+ }>;
17
+ /**
18
+ * This specifies the type of activity
19
+ */
20
+ type: 'attestation';
21
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Source CI/CD system that generated the attestation
3
+ * @default "Others"
4
+ */
5
+ export type AttestationSource = 'GithubActions' | 'Harness' | 'Jenkins' | 'Others';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Type/category of the attestation
3
+ * @default "Custom"
4
+ */
5
+ export type AttestationType = 'Build' | 'Code' | 'Custom' | 'Deploy' | 'Security' | 'Test';
@@ -1,8 +1,12 @@
1
1
  import type { Artifact } from '../schemas/Artifact';
2
2
  import type { DsseEnvelope } from '../schemas/DsseEnvelope';
3
3
  import type { ExecutionDetail } from '../schemas/ExecutionDetail';
4
+ import type { AttestationSource } from '../schemas/AttestationSource';
5
+ import type { AttestationType } from '../schemas/AttestationType';
4
6
  export interface AttestationUploadRequest {
5
7
  artifact?: Artifact;
6
8
  envelope: DsseEnvelope;
7
9
  executionContext?: ExecutionDetail;
10
+ source?: AttestationSource;
11
+ type?: AttestationType;
8
12
  }
@@ -1,4 +1,6 @@
1
1
  import type { AttestationLinks } from '../schemas/AttestationLinks';
2
+ import type { AttestationSource } from '../schemas/AttestationSource';
3
+ import type { AttestationType } from '../schemas/AttestationType';
2
4
  export interface AttestationUploadResponseBody {
3
5
  /**
4
6
  * Associated artifact identifier
@@ -18,11 +20,13 @@ export interface AttestationUploadResponseBody {
18
20
  * Orchestration identifier for this attestation
19
21
  */
20
22
  orchestrationId?: string;
23
+ source?: AttestationSource;
21
24
  /**
22
25
  * Ingestion status
23
26
  * @example "ingested"
24
27
  */
25
28
  status?: string;
29
+ type?: AttestationType;
26
30
  /**
27
31
  * Whether the signature was verified
28
32
  * @example true
@@ -4,6 +4,10 @@ export interface AutoPrAdvancedRule {
4
4
  * List of components to exclude (PURL format)
5
5
  */
6
6
  exclude_components?: string[];
7
+ /**
8
+ * List of repository names to exclude from auto PR creation. Supports glob patterns (e.g. "test-*").
9
+ */
10
+ exclude_repositories?: string[];
7
11
  /**
8
12
  * Maximum number of PRs to create
9
13
  */
@@ -0,0 +1,16 @@
1
+ import type { ComponentRemediationResponse } from '../schemas/ComponentRemediationResponse';
2
+ export interface BatchComponentRemediationItem {
3
+ /**
4
+ * Error message if remediation failed for this purl
5
+ */
6
+ error_message?: string;
7
+ /**
8
+ * Package URL of the component
9
+ */
10
+ purl: string;
11
+ remediation?: ComponentRemediationResponse;
12
+ /**
13
+ * Status of the remediation for this purl
14
+ */
15
+ status: 'ERROR' | 'SUCCESS';
16
+ }
@@ -0,0 +1,10 @@
1
+ export interface BatchComponentRemediationRequest {
2
+ /**
3
+ * List of Package URLs to get remediation for
4
+ */
5
+ purls: string[];
6
+ /**
7
+ * Optional target version applied uniformly to all PURLs. Typically omitted so each component uses its auto-recommended version. Only useful when all PURLs refer to the same package at different locations.
8
+ */
9
+ target_version?: 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,16 @@
1
+ import type { BatchComponentRemediationItem } from '../schemas/BatchComponentRemediationItem';
2
+ export interface BatchComponentRemediationResponse {
3
+ /**
4
+ * Number of purls that failed
5
+ */
6
+ failed?: number;
7
+ results: BatchComponentRemediationItem[];
8
+ /**
9
+ * Number of purls that succeeded
10
+ */
11
+ succeeded?: number;
12
+ /**
13
+ * Total number of purls processed
14
+ */
15
+ total?: number;
16
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * A component match with its parent artifact context.
3
+ */
4
+ export interface ComponentSearchResult {
5
+ /**
6
+ * ID of the artifact containing this component.
7
+ */
8
+ artifactId?: string;
9
+ /**
10
+ * Name of the artifact (e.g. image name or repo name).
11
+ */
12
+ artifactName?: string;
13
+ /**
14
+ * Licenses declared by this component.
15
+ */
16
+ license?: string[];
17
+ /**
18
+ * Component package name.
19
+ */
20
+ name?: string;
21
+ /**
22
+ * Package manager (e.g. npm, maven, apk).
23
+ */
24
+ packageManager?: string;
25
+ /**
26
+ * Package URL (purl) uniquely identifying this component version.
27
+ */
28
+ purl?: string;
29
+ /**
30
+ * Component version.
31
+ */
32
+ version?: string;
33
+ }
@@ -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 {};
@@ -1,10 +1,8 @@
1
1
  export interface LicenseFamilyConfigResponse {
2
2
  /**
3
- * Custom license-to-family overrides
3
+ * List of family names that have been customized from Harness defaults
4
4
  */
5
- custom_mappings?: {
6
- [key: string]: string;
7
- };
5
+ customized_families?: string[];
8
6
  /**
9
7
  * Map of family name to list of SPDX license IDs
10
8
  */
@@ -15,5 +13,4 @@ export interface LicenseFamilyConfigResponse {
15
13
  * @format date-time
16
14
  */
17
15
  last_modified_at?: string;
18
- last_modified_by?: string;
19
16
  }
@@ -12,8 +12,4 @@ export interface LicenseFamilyImportRequest {
12
12
  * @default "csv"
13
13
  */
14
14
  format?: 'csv' | 'newline' | 'tsv';
15
- /**
16
- * If true, replace existing licenses in the target family. If false, append.
17
- */
18
- replace?: boolean;
19
15
  }
@@ -7,8 +7,4 @@ export interface LicenseFamilyResponse {
7
7
  * SPDX license identifier
8
8
  */
9
9
  license_id?: string;
10
- /**
11
- * Where the mapping came from
12
- */
13
- source?: 'custom' | 'harness-default';
14
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.84.10",
3
+ "version": "0.84.12",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,23 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { LicenseFamilyConfigResponse } from '../schemas/LicenseFamilyConfigResponse';
3
- import type { LicenseFamilyConfigUpdateRequest } from '../schemas/LicenseFamilyConfigUpdateRequest';
4
- import type { ResponseWithPagination } from '../helpers';
5
- import { FetcherOptions } from '../../../../fetcher/index.js';
6
- export interface UpdateLicenseFamilyConfigMutationPathParams {
7
- org: string;
8
- project: string;
9
- }
10
- export interface UpdateLicenseFamilyConfigMutationHeaderParams {
11
- 'Harness-Account': string;
12
- }
13
- export type UpdateLicenseFamilyConfigRequestBody = LicenseFamilyConfigUpdateRequest;
14
- export type UpdateLicenseFamilyConfigOkResponse = ResponseWithPagination<LicenseFamilyConfigResponse>;
15
- export type UpdateLicenseFamilyConfigErrorResponse = unknown;
16
- export interface UpdateLicenseFamilyConfigProps extends UpdateLicenseFamilyConfigMutationPathParams, Omit<FetcherOptions<unknown, UpdateLicenseFamilyConfigRequestBody, UpdateLicenseFamilyConfigMutationHeaderParams>, 'url'> {
17
- body: UpdateLicenseFamilyConfigRequestBody;
18
- }
19
- export declare function updateLicenseFamilyConfig(props: UpdateLicenseFamilyConfigProps): Promise<UpdateLicenseFamilyConfigOkResponse>;
20
- /**
21
- * Update the license family configuration for a project
22
- */
23
- export declare function useUpdateLicenseFamilyConfigMutation(options?: Omit<UseMutationOptions<UpdateLicenseFamilyConfigOkResponse, UpdateLicenseFamilyConfigErrorResponse, UpdateLicenseFamilyConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateLicenseFamilyConfigOkResponse, unknown, UpdateLicenseFamilyConfigProps, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function updateLicenseFamilyConfig(props) {
7
- return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/license-family-config`, method: 'PUT' }, props));
8
- }
9
- /**
10
- * Update the license family configuration for a project
11
- */
12
- export function useUpdateLicenseFamilyConfigMutation(options) {
13
- return useMutation((mutateProps) => updateLicenseFamilyConfig(mutateProps), options);
14
- }
@@ -1,8 +0,0 @@
1
- export interface LicenseFamilyConfigUpdateRequest {
2
- /**
3
- * Custom license-to-family overrides. Keys are SPDX license IDs, values are family names.
4
- */
5
- custom_mappings?: {
6
- [key: string]: string;
7
- };
8
- }
@@ -1,14 +0,0 @@
1
- export interface LicenseFamilyImportResponse {
2
- /**
3
- * Target family
4
- */
5
- family?: string;
6
- /**
7
- * Number of licenses imported
8
- */
9
- imported_count?: number;
10
- /**
11
- * List of imported license IDs
12
- */
13
- licenses?: string[];
14
- }