@harnessio/react-ssca-manager-client 1.0.8 → 1.0.9

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.
@@ -23,7 +23,7 @@ export declare function saveAccountAiWorkflowConfig(props: SaveAccountAiWorkflow
23
23
  /**
24
24
  * Create or update account, organization, or project AI workflow configuration.
25
25
  * Set org without project for organization overrides. Set both for project overrides.
26
- * Validation pipeline fields must be saved at project scope.
26
+ * Validation pipeline fields and agent.sca.additionalInstructions must be saved at project scope.
27
27
  *
28
28
  */
29
29
  export declare function useSaveAccountAiWorkflowConfigMutation(options?: Omit<UseMutationOptions<SaveAccountAiWorkflowConfigOkResponse, SaveAccountAiWorkflowConfigErrorResponse, SaveAccountAiWorkflowConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveAccountAiWorkflowConfigOkResponse, unknown, SaveAccountAiWorkflowConfigProps, unknown>;
@@ -9,7 +9,7 @@ export function saveAccountAiWorkflowConfig(props) {
9
9
  /**
10
10
  * Create or update account, organization, or project AI workflow configuration.
11
11
  * Set org without project for organization overrides. Set both for project overrides.
12
- * Validation pipeline fields must be saved at project scope.
12
+ * Validation pipeline fields and agent.sca.additionalInstructions must be saved at project scope.
13
13
  *
14
14
  */
15
15
  export function useSaveAccountAiWorkflowConfigMutation(options) {
@@ -501,6 +501,9 @@ export type { ArtifactAndDeploymentsResponseBody } from './schemas/ArtifactAndDe
501
501
  export type { ArtifactChainOfCustody } from './schemas/ArtifactChainOfCustody';
502
502
  export type { ArtifactChainOfCustodyV2 } from './schemas/ArtifactChainOfCustodyV2';
503
503
  export type { ArtifactComplianceMetrics } from './schemas/ArtifactComplianceMetrics';
504
+ export type { ArtifactComponentRiskItem } from './schemas/ArtifactComponentRiskItem';
505
+ export type { ArtifactComponentRiskRequest } from './schemas/ArtifactComponentRiskRequest';
506
+ export type { ArtifactComponentRiskResponse } from './schemas/ArtifactComponentRiskResponse';
504
507
  export type { ArtifactComponentViewRequestBody } from './schemas/ArtifactComponentViewRequestBody';
505
508
  export type { ArtifactComponentViewResponse } from './schemas/ArtifactComponentViewResponse';
506
509
  export type { ArtifactComponentsRequestBody } from './schemas/ArtifactComponentsRequestBody';
@@ -3,6 +3,10 @@ import type { AiWorkflowStepExecution } from '../schemas/AiWorkflowStepExecution
3
3
  * Shared scan-completion agent payload for FP Triage and SAST Remediation execution detail. Zero-day / vulnerability agents use vulnerability_finding instead.
4
4
  */
5
5
  export interface AgentExecutionDetail {
6
+ /**
7
+ * FP Triage only — other scans of the same target that were deduplicated with scan_id. Omitted when the run covered a single scan.
8
+ */
9
+ additional_scan_ids?: string[];
6
10
  agent_results?: {
7
11
  [key: string]: any;
8
12
  };
@@ -2,6 +2,10 @@
2
2
  * Shared scan-completion agent payload for FP Triage and SAST Remediation execution summaries. Zero-day / vulnerability agents use vulnerability_finding instead.
3
3
  */
4
4
  export interface AgentExecutionSummary {
5
+ /**
6
+ * FP Triage only — other scans of the same target that were deduplicated with scan_id. Omitted when the run covered a single scan.
7
+ */
8
+ additional_scan_ids?: string[];
5
9
  /**
6
10
  * Agent run cost in USD from agent_results.cost_usd, rounded to 2 decimal places. Null when the run has no stored cost.
7
11
  * @format double
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Status of an AI workflow execution. QUEUED = waiting (e.g. SAST remediation waiting for FP triage when onlyTruePositive is set).
2
+ * Status of an AI workflow execution. QUEUED = waiting (e.g. SAST remediation waiting for FP triage when onlyTruePositive is set). WITHDRAWN = the zero-day finding was withdrawn.
3
3
  */
4
- export type AiWorkflowExecutionStatusEnum = 'COMPLETED' | 'FAILED' | 'PENDING' | 'QUEUED' | 'RUNNING' | 'SKIPPED';
4
+ export type AiWorkflowExecutionStatusEnum = 'COMPLETED' | 'FAILED' | 'PENDING' | 'QUEUED' | 'RUNNING' | 'SKIPPED' | 'WITHDRAWN';
@@ -0,0 +1,9 @@
1
+ export interface ArtifactComponentRiskItem {
2
+ eolRiskLevel?: string;
3
+ isMalicious?: boolean;
4
+ maliciousSource?: string;
5
+ packageName?: string;
6
+ packageVersion?: string;
7
+ purl?: string;
8
+ squattedPackage?: string;
9
+ }
@@ -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,12 @@
1
+ export interface ArtifactComponentRiskRequest {
2
+ artifactFingerprint?: string;
3
+ pipelineExecutionId?: string;
4
+ pipelineId?: string;
5
+ targetName?: string;
6
+ /**
7
+ * STO scan target type. Accepted values are image, container, or repository (case-sensitive).
8
+ */
9
+ targetType: string;
10
+ targetUrl?: string;
11
+ variant?: string;
12
+ }
@@ -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,12 @@
1
+ import type { ArtifactComponentRiskItem } from '../schemas/ArtifactComponentRiskItem';
2
+ export interface ArtifactComponentRiskResponse {
3
+ /**
4
+ * Flagged components of the artifact's SBOM. The number of items returned is bounded; flagged components beyond the limit are omitted.
5
+ */
6
+ components?: ArtifactComponentRiskItem[];
7
+ orchestrationId?: string;
8
+ /**
9
+ * Resolution outcome. SBOM_NOT_AVAILABLE means the artifact exists but the SBOM is not yet ingested; callers may retry.
10
+ */
11
+ status: 'ARTIFACT_NOT_FOUND' | 'OK' | 'SBOM_NOT_AVAILABLE';
12
+ }
@@ -1,7 +1,15 @@
1
1
  /**
2
- * Server-resolved context for this execution; derived data, not configuration.
2
+ * Server-resolved context for this execution; derived data, not configuration. Absent only when none of scmProvider, dockerfilePath, additionalInstructions, sourceBranch, or commitSha is set: a present context may carry any subset of fields, so callers must not assume scmProvider is set when the object is present.
3
3
  */
4
4
  export interface RemediationAgentInitiateContext {
5
+ /**
6
+ * SCA instruction text resolved for this execution exactly as dispatch resolves it: the container target's agent.additionalInstructions when non-blank, otherwise the project's agent.sca.additionalInstructions. Account and organization text is never inherited. Absent when neither scope configures any. Callers apply it only when the step environment carries no ADDITIONAL_INSTRUCTIONS, so a worker run without that stage variable still gets the configured text.
7
+ */
8
+ additionalInstructions?: string;
9
+ /**
10
+ * Commit the scan ran against, for repository targets only: the scan's recorded artifactInfo.commitSha. Absent for container targets and when none is recorded.
11
+ */
12
+ commitSha?: string;
5
13
  /**
6
14
  * Repository-relative Dockerfile path recorded by the scanned artifact's provenance. Present only while the execution is still active, and absent when the target config already carries a dockerfilePath or provenance has none.
7
15
  */
@@ -10,4 +18,8 @@ export interface RemediationAgentInitiateContext {
10
18
  * SCM provider for the execution's repository: the scan's recorded artifactInfo.scmProvider, else inferred from the resolved repo URL. Absent when neither is known.
11
19
  */
12
20
  scmProvider?: string;
21
+ /**
22
+ * Branch the scan ran against, for repository targets only: the scan's recorded artifactInfo.sourceBranch, else the STO target variant. Absent for container targets and when neither is known.
23
+ */
24
+ sourceBranch?: string;
13
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",