@harnessio/react-ssca-manager-client 1.0.7 → 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.
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionAffectedTargetsQuery.d.ts +3 -2
- package/dist/ssca-manager/src/services/hooks/useSaveAccountAiWorkflowConfigMutation.d.ts +1 -1
- package/dist/ssca-manager/src/services/hooks/useSaveAccountAiWorkflowConfigMutation.js +1 -1
- package/dist/ssca-manager/src/services/index.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/AgentExecutionDetail.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/AgentExecutionSummary.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionStatusEnum.d.ts +2 -2
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentRiskItem.d.ts +9 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentRiskItem.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentRiskRequest.d.ts +12 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentRiskRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentRiskResponse.d.ts +12 -0
- package/dist/ssca-manager/src/services/schemas/ArtifactComponentRiskResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentInitiateContext.d.ts +13 -1
- package/dist/ssca-manager/src/services/schemas/SbomComponentRequestDto.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayAffectedTarget.d.ts +75 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayAffectedTarget.js +4 -0
- package/package.json +1 -1
package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionAffectedTargetsQuery.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ZeroDayAffectedTarget } from '../schemas/ZeroDayAffectedTarget';
|
|
3
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
5
|
export interface GetZeroDayExecutionAffectedTargetsQueryPathParams {
|
|
@@ -18,11 +18,12 @@ export interface GetZeroDayExecutionAffectedTargetsQueryQueryParams {
|
|
|
18
18
|
limit?: number;
|
|
19
19
|
org?: string;
|
|
20
20
|
project?: string;
|
|
21
|
+
env_type?: 'N/A' | 'PreProduction' | 'Production';
|
|
21
22
|
}
|
|
22
23
|
export interface GetZeroDayExecutionAffectedTargetsQueryHeaderParams {
|
|
23
24
|
'Harness-Account': string;
|
|
24
25
|
}
|
|
25
|
-
export type GetZeroDayExecutionAffectedTargetsOkResponse = ResponseWithPagination<
|
|
26
|
+
export type GetZeroDayExecutionAffectedTargetsOkResponse = ResponseWithPagination<ZeroDayAffectedTarget[]>;
|
|
26
27
|
export type GetZeroDayExecutionAffectedTargetsErrorResponse = unknown;
|
|
27
28
|
export interface GetZeroDayExecutionAffectedTargetsProps extends GetZeroDayExecutionAffectedTargetsQueryPathParams, Omit<FetcherOptions<GetZeroDayExecutionAffectedTargetsQueryQueryParams, unknown, GetZeroDayExecutionAffectedTargetsQueryHeaderParams>, 'url'> {
|
|
28
29
|
queryParams: GetZeroDayExecutionAffectedTargetsQueryQueryParams;
|
|
@@ -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';
|
|
@@ -946,6 +949,7 @@ export type { VulnerabilitySource } from './schemas/VulnerabilitySource';
|
|
|
946
949
|
export type { VulnerabilitySourceConfigRequestBody } from './schemas/VulnerabilitySourceConfigRequestBody';
|
|
947
950
|
export type { VulnerabilitySourceConfigResponse } from './schemas/VulnerabilitySourceConfigResponse';
|
|
948
951
|
export type { WorkflowSource } from './schemas/WorkflowSource';
|
|
952
|
+
export type { ZeroDayAffectedTarget } from './schemas/ZeroDayAffectedTarget';
|
|
949
953
|
export type { ZeroDayAlertConfig } from './schemas/ZeroDayAlertConfig';
|
|
950
954
|
export type { ZeroDayBackfillRequest } from './schemas/ZeroDayBackfillRequest';
|
|
951
955
|
export type { ZeroDayBackfillResponse } from './schemas/ZeroDayBackfillResponse';
|
|
@@ -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,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,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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export interface ZeroDayAffectedTarget {
|
|
2
|
+
artifact_id?: string;
|
|
3
|
+
artifact_name?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Whether this target is a source code repository, container image, or non-container artifact
|
|
6
|
+
*/
|
|
7
|
+
artifact_type?: 'CONTAINER' | 'NON_CONTAINER' | 'REPOSITORY';
|
|
8
|
+
artifact_version?: string;
|
|
9
|
+
base_branch?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Whether this artifact is deployed to any production environment
|
|
12
|
+
*/
|
|
13
|
+
deployed_to_prod?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Whether deployment-related fields are applicable (false for REPOSITORY artifacts)
|
|
16
|
+
*/
|
|
17
|
+
deployment_applicable?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Dominant environment type: Production when deployed to any production environment, PreProduction when deployed only to non-production environments, N/A when there is no deployment (always N/A for repositories)
|
|
20
|
+
*/
|
|
21
|
+
env_type?: 'N/A' | 'PreProduction' | 'Production';
|
|
22
|
+
fix_version?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Names of non-production environments
|
|
25
|
+
*/
|
|
26
|
+
non_prod_env_names?: string[];
|
|
27
|
+
/**
|
|
28
|
+
* Organization identifier of the affected artifact
|
|
29
|
+
*/
|
|
30
|
+
org_identifier?: string;
|
|
31
|
+
package_name?: string;
|
|
32
|
+
package_version?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Names of production environments
|
|
35
|
+
*/
|
|
36
|
+
prod_env_names?: string[];
|
|
37
|
+
/**
|
|
38
|
+
* Project identifier of the affected artifact
|
|
39
|
+
*/
|
|
40
|
+
project_identifier?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Package URL of the affected component (used in create-PR flow)
|
|
43
|
+
*/
|
|
44
|
+
purl?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Whether this target can be remediated (null = not yet checked)
|
|
47
|
+
*/
|
|
48
|
+
remediation_eligible?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Error message when remediation failed
|
|
51
|
+
*/
|
|
52
|
+
remediation_error_message?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Reason why remediation is not possible (only set when eligible=false)
|
|
55
|
+
*/
|
|
56
|
+
remediation_ineligible_reason?: 'already_latest' | 'eol' | 'malicious' | 'transitive_dependency' | 'typosquatted' | 'unknown_dependency_type' | 'unknown_error' | 'unsupported_artifact_type';
|
|
57
|
+
/**
|
|
58
|
+
* URL of the created remediation pull request (present when status is PR_CREATED or REMEDIATED)
|
|
59
|
+
*/
|
|
60
|
+
remediation_pr_url?: string;
|
|
61
|
+
/**
|
|
62
|
+
* Status of PR remediation for this target
|
|
63
|
+
*/
|
|
64
|
+
remediation_status?: 'FAILED' | 'NOT_STARTED' | 'PR_CREATED' | 'REMEDIATED';
|
|
65
|
+
repo_name?: string;
|
|
66
|
+
repo_url?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Identifier of the artifact source (distinct from artifact_id)
|
|
69
|
+
*/
|
|
70
|
+
source_id?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Vulnerable package version(s) present in this target (one entry per row for now)
|
|
73
|
+
*/
|
|
74
|
+
target_versions?: string[];
|
|
75
|
+
}
|