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

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 (37) hide show
  1. package/dist/ssca-manager/src/services/hooks/useImportLicenseFamilyConfigMutation.d.ts +23 -0
  2. package/dist/ssca-manager/src/services/hooks/useImportLicenseFamilyConfigMutation.js +14 -0
  3. package/dist/ssca-manager/src/services/hooks/useResetLicenseFamilyConfigMutation.d.ts +24 -0
  4. package/dist/ssca-manager/src/services/hooks/useResetLicenseFamilyConfigMutation.js +14 -0
  5. package/dist/ssca-manager/src/services/index.d.ts +13 -4
  6. package/dist/ssca-manager/src/services/index.js +2 -1
  7. package/dist/ssca-manager/src/services/requestBodies/BatchComponentRemediationRequestBodyRequestBody.d.ts +2 -0
  8. package/dist/ssca-manager/src/services/requestBodies/BatchComponentRemediationRequestBodyRequestBody.js +1 -0
  9. package/dist/ssca-manager/src/services/responses/ComponentSearchResponseBodyResponse.d.ts +2 -0
  10. package/dist/ssca-manager/src/services/responses/ComponentSearchResponseBodyResponse.js +1 -0
  11. package/dist/ssca-manager/src/services/schemas/ActivityDetails.d.ts +1 -1
  12. package/dist/ssca-manager/src/services/schemas/ArtifactComponentViewResponse.d.ts +0 -4
  13. package/dist/ssca-manager/src/services/schemas/AttestationActivity.d.ts +21 -0
  14. package/dist/ssca-manager/src/services/schemas/AttestationActivity.js +1 -0
  15. package/dist/ssca-manager/src/services/schemas/AttestationSource.d.ts +5 -0
  16. package/dist/ssca-manager/src/services/schemas/AttestationType.d.ts +5 -0
  17. package/dist/ssca-manager/src/services/schemas/AttestationUploadRequest.d.ts +4 -0
  18. package/dist/ssca-manager/src/services/schemas/AttestationUploadResponseBody.d.ts +4 -0
  19. package/dist/ssca-manager/src/services/schemas/AutoPrAdvancedRule.d.ts +4 -0
  20. package/dist/ssca-manager/src/services/schemas/BatchComponentRemediationItem.d.ts +16 -0
  21. package/dist/ssca-manager/src/services/schemas/BatchComponentRemediationItem.js +1 -0
  22. package/dist/ssca-manager/src/services/schemas/BatchComponentRemediationRequest.d.ts +10 -0
  23. package/dist/ssca-manager/src/services/schemas/BatchComponentRemediationRequest.js +4 -0
  24. package/dist/ssca-manager/src/services/schemas/BatchComponentRemediationResponse.d.ts +16 -0
  25. package/dist/ssca-manager/src/services/schemas/BatchComponentRemediationResponse.js +1 -0
  26. package/dist/ssca-manager/src/services/schemas/ComponentSearchResult.d.ts +33 -0
  27. package/dist/ssca-manager/src/services/schemas/ComponentSearchResult.js +4 -0
  28. package/dist/ssca-manager/src/services/schemas/LicenseFamilyConfigResponse.d.ts +2 -5
  29. package/dist/ssca-manager/src/services/schemas/LicenseFamilyImportRequest.d.ts +0 -4
  30. package/dist/ssca-manager/src/services/schemas/LicenseFamilyResponse.d.ts +0 -4
  31. package/package.json +1 -1
  32. package/dist/ssca-manager/src/services/hooks/useUpdateLicenseFamilyConfigMutation.d.ts +0 -23
  33. package/dist/ssca-manager/src/services/hooks/useUpdateLicenseFamilyConfigMutation.js +0 -14
  34. package/dist/ssca-manager/src/services/schemas/LicenseFamilyConfigUpdateRequest.d.ts +0 -8
  35. package/dist/ssca-manager/src/services/schemas/LicenseFamilyImportResponse.d.ts +0 -14
  36. /package/dist/ssca-manager/src/services/schemas/{LicenseFamilyConfigUpdateRequest.js → AttestationSource.js} +0 -0
  37. /package/dist/ssca-manager/src/services/schemas/{LicenseFamilyImportResponse.js → AttestationType.js} +0 -0
@@ -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
+ }
@@ -131,6 +131,8 @@ export type { GetSbomScorecardErrorResponse, GetSbomScorecardOkResponse, GetSbom
131
131
  export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
132
132
  export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSummaryProps, GetSscaSummaryQueryPathParams, } from './hooks/useGetSscaSummaryQuery';
133
133
  export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
134
+ export type { ImportLicenseFamilyConfigErrorResponse, ImportLicenseFamilyConfigMutationPathParams, ImportLicenseFamilyConfigOkResponse, ImportLicenseFamilyConfigProps, ImportLicenseFamilyConfigRequestBody, } from './hooks/useImportLicenseFamilyConfigMutation';
135
+ export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
134
136
  export type { ListArtifactSourcesErrorResponse, ListArtifactSourcesOkResponse, ListArtifactSourcesProps, ListArtifactSourcesQueryPathParams, ListArtifactSourcesQueryQueryParams, ListArtifactSourcesRequestBody, } from './hooks/useListArtifactSourcesQuery';
135
137
  export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
136
138
  export type { ListIntegrationsErrorResponse, ListIntegrationsOkResponse, ListIntegrationsProps, ListIntegrationsQueryPathParams, ListIntegrationsQueryQueryParams, } from './hooks/useListIntegrationsQuery';
@@ -141,6 +143,8 @@ export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorRespo
141
143
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
142
144
  export type { PostComplianceResultStatsOverviewErrorResponse, PostComplianceResultStatsOverviewMutationPathParams, PostComplianceResultStatsOverviewMutationQueryParams, PostComplianceResultStatsOverviewOkResponse, PostComplianceResultStatsOverviewProps, PostComplianceResultStatsOverviewRequestBody, } from './hooks/usePostComplianceResultStatsOverviewMutation';
143
145
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
146
+ export type { ResetLicenseFamilyConfigErrorResponse, ResetLicenseFamilyConfigMutationPathParams, ResetLicenseFamilyConfigMutationQueryParams, ResetLicenseFamilyConfigOkResponse, ResetLicenseFamilyConfigProps, } from './hooks/useResetLicenseFamilyConfigMutation';
147
+ export { resetLicenseFamilyConfig, useResetLicenseFamilyConfigMutation, } from './hooks/useResetLicenseFamilyConfigMutation';
144
148
  export type { SaveAutoPrConfigErrorResponse, SaveAutoPrConfigOkResponse, SaveAutoPrConfigProps, SaveAutoPrConfigRequestBody, } from './hooks/useSaveAutoPrConfigMutation';
145
149
  export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
146
150
  export type { SaveConnectorConfigErrorResponse, SaveConnectorConfigOkResponse, SaveConnectorConfigProps, SaveConnectorConfigRequestBody, } from './hooks/useSaveConnectorConfigMutation';
@@ -149,8 +153,6 @@ export type { SetBaselineForArtifactV2ErrorResponse, SetBaselineForArtifactV2Mut
149
153
  export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
150
154
  export type { SscaLicenseUsageErrorResponse, SscaLicenseUsageOkResponse, SscaLicenseUsageProps, SscaLicenseUsageQueryQueryParams, } from './hooks/useSscaLicenseUsageQuery';
151
155
  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
156
  export type { UpdateRemediationTrackerErrorResponse, UpdateRemediationTrackerMutationPathParams, UpdateRemediationTrackerOkResponse, UpdateRemediationTrackerProps, UpdateRemediationTrackerRequestBody, } from './hooks/useUpdateRemediationTrackerMutation';
155
157
  export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
156
158
  export type { AiWorkflowExecutionRequestBodyRequestBody } from './requestBodies/AiWorkflowExecutionRequestBodyRequestBody';
@@ -163,6 +165,7 @@ export type { AttestationUploadRequestBodyRequestBody } from './requestBodies/At
163
165
  export type { AutoPrConfigRequestBodyRequestBody } from './requestBodies/AutoPrConfigRequestBodyRequestBody';
164
166
  export type { BaselineRequestBodyRequestBody } from './requestBodies/BaselineRequestBodyRequestBody';
165
167
  export type { BaselineV2RequestBodyRequestBody } from './requestBodies/BaselineV2RequestBodyRequestBody';
168
+ export type { BatchComponentRemediationRequestBodyRequestBody } from './requestBodies/BatchComponentRemediationRequestBodyRequestBody';
166
169
  export type { ClosePrsRequestBodyRequestBody } from './requestBodies/ClosePrsRequestBodyRequestBody';
167
170
  export type { CodeRepositoryListingRequestBodyRequestBody } from './requestBodies/CodeRepositoryListingRequestBodyRequestBody';
168
171
  export type { ComplianceEvaluationTrendRequestRequestBody } from './requestBodies/ComplianceEvaluationTrendRequestRequestBody';
@@ -241,6 +244,7 @@ export type { ComplianceStandardsResponseBodyResponse } from './responses/Compli
241
244
  export type { ComponentDependenciesResponseBodyResponse } from './responses/ComponentDependenciesResponseBodyResponse';
242
245
  export type { ComponentDriftResponseBodyResponse } from './responses/ComponentDriftResponseBodyResponse';
243
246
  export type { ComponentListResponseBodyResponse } from './responses/ComponentListResponseBodyResponse';
247
+ export type { ComponentSearchResponseBodyResponse } from './responses/ComponentSearchResponseBodyResponse';
244
248
  export type { ComponentVulnerabilityListResponseBodyResponse } from './responses/ComponentVulnerabilityListResponseBodyResponse';
245
249
  export type { ConfigResponseBodyResponse } from './responses/ConfigResponseBodyResponse';
246
250
  export type { CreateIntegrationResponseBodyResponse } from './responses/CreateIntegrationResponseBodyResponse';
@@ -324,7 +328,10 @@ export type { ArtifactV2ListingResponse } from './schemas/ArtifactV2ListingRespo
324
328
  export type { ArtifactV2Overview } from './schemas/ArtifactV2Overview';
325
329
  export type { ArtifactVariant } from './schemas/ArtifactVariant';
326
330
  export type { Attestation } from './schemas/Attestation';
331
+ export type { AttestationActivity } from './schemas/AttestationActivity';
327
332
  export type { AttestationLinks } from './schemas/AttestationLinks';
333
+ export type { AttestationSource } from './schemas/AttestationSource';
334
+ export type { AttestationType } from './schemas/AttestationType';
328
335
  export type { AttestationUploadRequest } from './schemas/AttestationUploadRequest';
329
336
  export type { AttestationUploadResponseBody } from './schemas/AttestationUploadResponseBody';
330
337
  export type { AutoPrAdvancedRule } from './schemas/AutoPrAdvancedRule';
@@ -344,6 +351,9 @@ export type { AutoPrVersioningRule } from './schemas/AutoPrVersioningRule';
344
351
  export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
345
352
  export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
346
353
  export type { BaselineV2RequestBody } from './schemas/BaselineV2RequestBody';
354
+ export type { BatchComponentRemediationItem } from './schemas/BatchComponentRemediationItem';
355
+ export type { BatchComponentRemediationRequest } from './schemas/BatchComponentRemediationRequest';
356
+ export type { BatchComponentRemediationResponse } from './schemas/BatchComponentRemediationResponse';
347
357
  export type { CategoryScorecard } from './schemas/CategoryScorecard';
348
358
  export type { CategoryScorecardCheck } from './schemas/CategoryScorecardCheck';
349
359
  export type { ChunkMetadata } from './schemas/ChunkMetadata';
@@ -393,6 +403,7 @@ export type { ComponentDto } from './schemas/ComponentDto';
393
403
  export type { ComponentFilter } from './schemas/ComponentFilter';
394
404
  export type { ComponentParent } from './schemas/ComponentParent';
395
405
  export type { ComponentRemediationResponse } from './schemas/ComponentRemediationResponse';
406
+ export type { ComponentSearchResult } from './schemas/ComponentSearchResult';
396
407
  export type { ComponentSummary } from './schemas/ComponentSummary';
397
408
  export type { ComponentVulnerabilityResponse } from './schemas/ComponentVulnerabilityResponse';
398
409
  export type { ConfigInfo } from './schemas/ConfigInfo';
@@ -477,9 +488,7 @@ export type { LayerType } from './schemas/LayerType';
477
488
  export type { LicenseDrift } from './schemas/LicenseDrift';
478
489
  export type { LicenseDriftSummary } from './schemas/LicenseDriftSummary';
479
490
  export type { LicenseFamilyConfigResponse } from './schemas/LicenseFamilyConfigResponse';
480
- export type { LicenseFamilyConfigUpdateRequest } from './schemas/LicenseFamilyConfigUpdateRequest';
481
491
  export type { LicenseFamilyImportRequest } from './schemas/LicenseFamilyImportRequest';
482
- export type { LicenseFamilyImportResponse } from './schemas/LicenseFamilyImportResponse';
483
492
  export type { LicenseFamilyResponse } from './schemas/LicenseFamilyResponse';
484
493
  export type { LicenseFilter } from './schemas/LicenseFilter';
485
494
  export type { LicenseUsageResponse } from './schemas/LicenseUsageResponse';
@@ -64,14 +64,15 @@ export { getRemediationDetails, useGetRemediationDetailsQuery, } from './hooks/u
64
64
  export { getRepoRulesEvaluationTrend, useGetRepoRulesEvaluationTrendQuery, } from './hooks/useGetRepoRulesEvaluationTrendQuery';
65
65
  export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
66
66
  export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
67
+ export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
67
68
  export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
68
69
  export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
69
70
  export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
70
71
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
71
72
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
73
+ export { resetLicenseFamilyConfig, useResetLicenseFamilyConfigMutation, } from './hooks/useResetLicenseFamilyConfigMutation';
72
74
  export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
73
75
  export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
74
76
  export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
75
77
  export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
76
- export { updateLicenseFamilyConfig, useUpdateLicenseFamilyConfigMutation, } from './hooks/useUpdateLicenseFamilyConfigMutation';
77
78
  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.11",
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
- }