@harnessio/react-ssca-manager-client 0.84.37 → 0.84.39

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.
@@ -8,6 +8,7 @@ export interface GetAiWorkflowExecutionAffectedTargetsQueryPathParams {
8
8
  export interface GetAiWorkflowExecutionAffectedTargetsQueryQueryParams {
9
9
  search?: string;
10
10
  component?: string;
11
+ version?: string;
11
12
  /**
12
13
  * @default 0
13
14
  */
@@ -9,6 +9,7 @@ export interface GetAiWorkflowExecutionDetailQueryQueryParams {
9
9
  org?: string;
10
10
  project?: string;
11
11
  component?: string;
12
+ version?: string;
12
13
  }
13
14
  export interface GetAiWorkflowExecutionDetailQueryHeaderParams {
14
15
  'Harness-Account': string;
@@ -1,6 +1,6 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { AffectedTargetRemediationResponse } from '../schemas/AffectedTargetRemediationResponse';
3
- import type { RemediationPrRequestBodyRequestBody } from '../requestBodies/RemediationPrRequestBodyRequestBody';
3
+ import type { RemediationPrRequest } from '../schemas/RemediationPrRequest';
4
4
  import type { ResponseWithPagination } from '../helpers';
5
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
6
6
  export interface RemediateAffectedTargetQueryPathParams {
@@ -14,7 +14,7 @@ export interface RemediateAffectedTargetQueryQueryParams {
14
14
  export interface RemediateAffectedTargetQueryHeaderParams {
15
15
  'Harness-Account': string;
16
16
  }
17
- export type RemediateAffectedTargetRequestBody = RemediationPrRequestBodyRequestBody;
17
+ export type RemediateAffectedTargetRequestBody = RemediationPrRequest;
18
18
  export type RemediateAffectedTargetOkResponse = ResponseWithPagination<AffectedTargetRemediationResponse>;
19
19
  export type RemediateAffectedTargetErrorResponse = unknown;
20
20
  export interface RemediateAffectedTargetProps extends RemediateAffectedTargetQueryPathParams, Omit<FetcherOptions<RemediateAffectedTargetQueryQueryParams, RemediateAffectedTargetRequestBody, RemediateAffectedTargetQueryHeaderParams>, 'url'> {
@@ -53,8 +53,15 @@ export interface AffectedArtifactInfo {
53
53
  /**
54
54
  * Status of PR remediation for this target
55
55
  */
56
- remediation_status?: 'FAILED' | 'NOT_STARTED' | 'PR_CREATED';
56
+ remediation_status?: 'FAILED' | 'NOT_STARTED' | 'PR_CREATED' | 'REMEDIATED';
57
57
  repo_name?: string;
58
58
  repo_url?: string;
59
+ /**
60
+ * Identifier of the artifact source (distinct from artifact_id)
61
+ */
59
62
  source_id?: string;
63
+ /**
64
+ * List of affected versions present in target
65
+ */
66
+ target_versions?: string[];
60
67
  }
@@ -11,6 +11,10 @@ export interface TriageFindingDetail {
11
11
  originating_org_identifier?: string;
12
12
  originating_project_identifier?: string;
13
13
  scan_id?: string;
14
+ /**
15
+ * Scanner/product name that produced the originating scan (e.g. Bandit, Aqua Trivy)
16
+ */
17
+ scan_tool?: string;
14
18
  step_executions?: AiWorkflowStepExecution[];
15
19
  target_id?: string;
16
20
  target_name?: string;
@@ -7,6 +7,10 @@ export interface TriageFindingSummary {
7
7
  originating_org_identifier?: string;
8
8
  originating_project_identifier?: string;
9
9
  scan_id?: string;
10
+ /**
11
+ * Scanner/product name that produced the originating scan (e.g. Bandit, Aqua Trivy)
12
+ */
13
+ scan_tool?: string;
10
14
  target_id?: string;
11
15
  target_name?: string;
12
16
  triggering_pipeline_execution_id?: string;
@@ -1,17 +1,31 @@
1
1
  import type { AlertContext } from '../schemas/AlertContext';
2
2
  /**
3
- * Vulnerability/Zero-Day-specific fields in the execution detail
3
+ * Vulnerability/Zero-Day-specific fields in the execution detail. Findings are grained per (package, version); purl is the versioned package URL.
4
4
  */
5
5
  export interface VulnerabilityFindingDetail {
6
6
  affected_targets_count?: number;
7
7
  affected_versions?: string[];
8
8
  alert_context?: AlertContext;
9
+ /**
10
+ * Package name for this finding.
11
+ */
9
12
  component_name?: string;
13
+ /**
14
+ * Installed/vulnerable package version for this finding.
15
+ */
10
16
  component_version?: string;
11
17
  cve_id?: string;
12
18
  description?: string;
19
+ /**
20
+ * When the finding was first detected (ISO-8601)
21
+ */
22
+ detection_time?: string;
13
23
  ecosystem?: string;
14
24
  fixed_version?: string;
25
+ /**
26
+ * Versioned Package URL (purl) identifying this specific (package, version) finding.
27
+ */
28
+ purl?: string;
15
29
  severity?: string;
16
30
  skipped_no_git_metadata?: number;
17
31
  skipped_no_metadata?: number;
@@ -1,17 +1,31 @@
1
1
  /**
2
- * Vulnerability/Zero-Day-specific fields in the execution summary
2
+ * Vulnerability/Zero-Day-specific fields in the execution summary. Findings are grained per (package, version); purl is the versioned package URL.
3
3
  */
4
4
  export interface VulnerabilityFindingSummary {
5
5
  affected_targets_count?: number;
6
6
  affected_versions?: string[];
7
+ /**
8
+ * Package name for this finding.
9
+ */
7
10
  component_name?: string;
11
+ /**
12
+ * Installed/vulnerable package version for this finding.
13
+ */
8
14
  component_version?: string;
9
15
  cve_id?: string;
10
16
  /**
11
17
  * Advisory description text
12
18
  */
13
19
  description?: string;
20
+ /**
21
+ * When the finding was first detected (ISO-8601)
22
+ */
23
+ detection_time?: string;
14
24
  ecosystem?: string;
15
25
  fixed_version?: string;
26
+ /**
27
+ * Versioned Package URL (purl) identifying this specific (package, version) finding.
28
+ */
29
+ purl?: string;
16
30
  severity?: string;
17
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.84.37",
3
+ "version": "0.84.39",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",