@harnessio/react-ssca-manager-client 0.86.26 → 0.86.27
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/useGetAiWorkflowExecutionsAccountScopeQuery.d.ts +1 -2
- package/dist/ssca-manager/src/services/index.d.ts +9 -0
- package/dist/ssca-manager/src/services/schemas/AgentExecutionSummary.d.ts +21 -0
- package/dist/ssca-manager/src/services/schemas/DependencyRemediationFinding.d.ts +12 -0
- package/dist/ssca-manager/src/services/schemas/DependencyRemediationFinding.js +4 -0
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentRequest.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentRequest.js +0 -3
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentResponse.d.ts +9 -5
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentResponse.js +0 -3
- package/dist/ssca-manager/src/services/schemas/RemediationAgentApprovedBaseImageVariant.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentApprovedBaseImageVariant.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImageApproval.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImageApproval.js +1 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImageApprovalRequest.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImageApprovalRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImageApprovalResponse.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImageApprovalResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentCriteria.d.ts +29 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentCriteria.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanExecution.d.ts +5 -1
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanRequest.d.ts +2 -2
- package/dist/ssca-manager/src/services/schemas/RemediationAgentExecution.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentExecution.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentTargetConfig.d.ts +15 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentTargetConfig.js +1 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentValidation.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentValidation.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ResolveRemediationAgentRepoUrlResponse.d.ts +1 -5
- package/package.json +1 -1
package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsAccountScopeQuery.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { AiWorkflowExecutionSummary } from '../schemas/AiWorkflowExecutionSummary';
|
|
3
|
-
import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
|
|
4
3
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
4
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
5
|
export interface GetAiWorkflowExecutionsAccountScopeQueryQueryParams {
|
|
7
6
|
ai_workflow_type?: string;
|
|
8
|
-
status?:
|
|
7
|
+
status?: string;
|
|
9
8
|
/**
|
|
10
9
|
* @format int64
|
|
11
10
|
*/
|
|
@@ -626,6 +626,7 @@ export type { DefaultVulnerability } from './schemas/DefaultVulnerability';
|
|
|
626
626
|
export type { DeleteRepositoriesRequestBody } from './schemas/DeleteRepositoriesRequestBody';
|
|
627
627
|
export type { DependencyChange } from './schemas/DependencyChange';
|
|
628
628
|
export type { DependencyChanges } from './schemas/DependencyChanges';
|
|
629
|
+
export type { DependencyRemediationFinding } from './schemas/DependencyRemediationFinding';
|
|
629
630
|
export type { DependencyType } from './schemas/DependencyType';
|
|
630
631
|
export type { DeploymentActivity } from './schemas/DeploymentActivity';
|
|
631
632
|
export type { Deployments } from './schemas/Deployments';
|
|
@@ -777,11 +778,19 @@ export type { ProvenanceRequestBody } from './schemas/ProvenanceRequestBody';
|
|
|
777
778
|
export type { ProvenanceRequestBodyV2 } from './schemas/ProvenanceRequestBodyV2';
|
|
778
779
|
export type { ProvenanceResponseBody } from './schemas/ProvenanceResponseBody';
|
|
779
780
|
export type { RekorLog } from './schemas/RekorLog';
|
|
781
|
+
export type { RemediationAgentApprovedBaseImageVariant } from './schemas/RemediationAgentApprovedBaseImageVariant';
|
|
780
782
|
export type { RemediationAgentBaseImage } from './schemas/RemediationAgentBaseImage';
|
|
783
|
+
export type { RemediationAgentBaseImageApproval } from './schemas/RemediationAgentBaseImageApproval';
|
|
784
|
+
export type { RemediationAgentBaseImageApprovalRequest } from './schemas/RemediationAgentBaseImageApprovalRequest';
|
|
785
|
+
export type { RemediationAgentBaseImageApprovalResponse } from './schemas/RemediationAgentBaseImageApprovalResponse';
|
|
786
|
+
export type { RemediationAgentCriteria } from './schemas/RemediationAgentCriteria';
|
|
781
787
|
export type { RemediationAgentDockerfile } from './schemas/RemediationAgentDockerfile';
|
|
782
788
|
export type { RemediationAgentDockerfileScanExecution } from './schemas/RemediationAgentDockerfileScanExecution';
|
|
783
789
|
export type { RemediationAgentDockerfileScanRequest } from './schemas/RemediationAgentDockerfileScanRequest';
|
|
784
790
|
export type { RemediationAgentDockerfileScanResult } from './schemas/RemediationAgentDockerfileScanResult';
|
|
791
|
+
export type { RemediationAgentExecution } from './schemas/RemediationAgentExecution';
|
|
792
|
+
export type { RemediationAgentTargetConfig } from './schemas/RemediationAgentTargetConfig';
|
|
793
|
+
export type { RemediationAgentValidation } from './schemas/RemediationAgentValidation';
|
|
785
794
|
export type { RemediationArtifactDeploymentsListingRequestBody } from './schemas/RemediationArtifactDeploymentsListingRequestBody';
|
|
786
795
|
export type { RemediationArtifactDeploymentsListingResponse } from './schemas/RemediationArtifactDeploymentsListingResponse';
|
|
787
796
|
export type { RemediationArtifactDetailsResponse } from './schemas/RemediationArtifactDetailsResponse';
|
|
@@ -2,6 +2,19 @@
|
|
|
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
|
+
* Agent run cost in USD from agent_results.cost_usd, rounded to 2 decimal places. Null when the run has no stored cost.
|
|
7
|
+
* @format double
|
|
8
|
+
*/
|
|
9
|
+
cost_usd?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Remediation only — occurrences remediated (agent_results.findings_remediated). Null when the run has no stored count.
|
|
12
|
+
*/
|
|
13
|
+
findings_remediated?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Remediation only — occurrences placed in the remediation working set (agent_results.findings_scoped). Null when the run has no stored count.
|
|
16
|
+
*/
|
|
17
|
+
findings_scoped?: number;
|
|
5
18
|
/**
|
|
6
19
|
* FP Triage only — count of false positives identified (null for remediation)
|
|
7
20
|
*/
|
|
@@ -10,6 +23,14 @@ export interface AgentExecutionSummary {
|
|
|
10
23
|
* Issue Types the agent ran with (config scanTypes stamped at trigger time), e.g. SAST, SCA, SECRET. UI may render as a comma-separated column. Empty/omitted for older executions that predate persistence of this snapshot.
|
|
11
24
|
*/
|
|
12
25
|
issue_types?: string[];
|
|
26
|
+
/**
|
|
27
|
+
* Remediation only — distinct scoped issues whose every occurrence was remediated (agent_results.issues_remediated). Null when the run has no stored count.
|
|
28
|
+
*/
|
|
29
|
+
issues_remediated?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Remediation only — distinct issues whose occurrences were scoped for remediation (agent_results.issues_scoped). Null when the run has no stored count.
|
|
32
|
+
*/
|
|
33
|
+
issues_scoped?: number;
|
|
13
34
|
/**
|
|
14
35
|
* FP Triage only — count of occurrences triaged (null for remediation)
|
|
15
36
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface DependencyRemediationFinding {
|
|
2
|
+
/**
|
|
3
|
+
* Scanner issue / CVE identifier
|
|
4
|
+
*/
|
|
5
|
+
issueId: string;
|
|
6
|
+
packageName: string;
|
|
7
|
+
packageVersion: string;
|
|
8
|
+
/**
|
|
9
|
+
* Upgrade selected by the effective remediation policy for this finding's package/version group: the highest strict-SemVer candidate satisfying the configured severity/risk criteria and staying within maxVersionUpdate. Identical for every finding in the same group.
|
|
10
|
+
*/
|
|
11
|
+
selectedFixVersion: string;
|
|
12
|
+
}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
+
import type { RemediationAgentCriteria } from '../schemas/RemediationAgentCriteria';
|
|
1
2
|
export interface InitiateRemediationAgentRequest {
|
|
3
|
+
/**
|
|
4
|
+
* Whether a vulnerable package may be upgraded to a pre-release version. Defaults to false.
|
|
5
|
+
*/
|
|
6
|
+
allowPreRelease?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Highest semantic-version bump the agent may apply: PATCH, MINOR or MAJOR. Required when remediationCriteria selects at least one criterion; the request fails with a 400 when it is missing or unknown.
|
|
9
|
+
*/
|
|
10
|
+
maxVersionUpdate?: string;
|
|
2
11
|
/**
|
|
3
12
|
* Caller's pipeline execution ID
|
|
4
13
|
*/
|
|
@@ -7,6 +16,7 @@ export interface InitiateRemediationAgentRequest {
|
|
|
7
16
|
* Caller's pipeline ID
|
|
8
17
|
*/
|
|
9
18
|
pipelineId?: string;
|
|
19
|
+
remediationCriteria?: RemediationAgentCriteria;
|
|
10
20
|
/**
|
|
11
21
|
* STO scan ID
|
|
12
22
|
*/
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import type { RemediationAgentExecution } from '../schemas/RemediationAgentExecution';
|
|
2
|
+
import type { DependencyRemediationFinding } from '../schemas/DependencyRemediationFinding';
|
|
3
|
+
import type { RemediationAgentTargetConfig } from '../schemas/RemediationAgentTargetConfig';
|
|
1
4
|
export interface InitiateRemediationAgentResponse {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
execution: RemediationAgentExecution;
|
|
6
|
+
/**
|
|
7
|
+
* Config-eligible component findings with a policy-resolved selectedFixVersion, in source order. Fully exempted findings, findings outside the configured severity/risk criteria, and package groups with no compliant upgrade are omitted. Empty when the scan is clean or nothing is remediable: a fresh initiation pairs an empty list with a SKIPPED execution, while a replayed terminal execution keeps its stored status and can also return an empty list. Each item carries only the package identity, issue id and selected fix; raw scan evidence remains available server-side under the scan.
|
|
8
|
+
*/
|
|
9
|
+
findings: DependencyRemediationFinding[];
|
|
10
|
+
targetConfig?: RemediationAgentTargetConfig;
|
|
7
11
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface RemediationAgentApprovedBaseImageVariant {
|
|
2
|
+
/**
|
|
3
|
+
* Unix timestamp of the latest scan of this variant, when known
|
|
4
|
+
* @format int64
|
|
5
|
+
*/
|
|
6
|
+
lastScanned?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Bare STO parameters.variant value (for example 3.21), not "tag: 3.21"
|
|
9
|
+
*/
|
|
10
|
+
variant: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RemediationAgentApprovedBaseImageVariant } from '../schemas/RemediationAgentApprovedBaseImageVariant';
|
|
2
|
+
export interface RemediationAgentBaseImageApproval {
|
|
3
|
+
/**
|
|
4
|
+
* Approved variants of the target name across the account. Empty when the target was never scanned or has no approved variant.
|
|
5
|
+
*/
|
|
6
|
+
approvedVariants: RemediationAgentApprovedBaseImageVariant[];
|
|
7
|
+
/**
|
|
8
|
+
* Requested STO target name
|
|
9
|
+
*/
|
|
10
|
+
targetName: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RemediationAgentBaseImageApproval } from '../schemas/RemediationAgentBaseImageApproval';
|
|
2
|
+
export interface RemediationAgentBaseImageApprovalResponse {
|
|
3
|
+
/**
|
|
4
|
+
* One entry per distinct requested target name, in request order
|
|
5
|
+
*/
|
|
6
|
+
results: RemediationAgentBaseImageApproval[];
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which findings are in scope for remediation. The request is skipped when no criterion is selected.
|
|
3
|
+
*/
|
|
4
|
+
export interface RemediationAgentCriteria {
|
|
5
|
+
/**
|
|
6
|
+
* Include issues on the CISA Known Exploited Vulnerabilities catalog
|
|
7
|
+
*/
|
|
8
|
+
cisaKev?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* One of "0 - 10%", "10 - 20%", "20 - 50%" or "50 - 100%"; used when epssProbability is true
|
|
11
|
+
*/
|
|
12
|
+
epssPercentage?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Include issues in the selected EPSS probability range
|
|
15
|
+
*/
|
|
16
|
+
epssProbability?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Include issues with a known exploit or proof of concept
|
|
19
|
+
*/
|
|
20
|
+
exploitable?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Include issues whose vulnerable code path is reachable
|
|
23
|
+
*/
|
|
24
|
+
reachable?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Severities to remediate (CRITICAL, HIGH, MEDIUM, LOW, INFO). Empty selects no severity.
|
|
27
|
+
*/
|
|
28
|
+
severities?: string[];
|
|
29
|
+
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
export interface RemediationAgentDockerfileScanExecution {
|
|
2
|
+
/**
|
|
3
|
+
* Dockerfile path used for discovery: request override, else SLSA provenance, else omitted when the workspace is walked.
|
|
4
|
+
*/
|
|
5
|
+
dockerfilePath?: string;
|
|
2
6
|
pipelineExecutionId: string;
|
|
3
7
|
/**
|
|
4
|
-
* SCM connector used for the clone
|
|
8
|
+
* SCM connector used for the clone, from the request or DEPENDENCY_REMEDIATION config
|
|
5
9
|
*/
|
|
6
10
|
scmConnectorRef?: string;
|
|
7
11
|
/**
|
|
@@ -4,7 +4,7 @@ export interface RemediationAgentDockerfileScanRequest {
|
|
|
4
4
|
*/
|
|
5
5
|
defaultBranch?: string;
|
|
6
6
|
/**
|
|
7
|
-
* Optional repository-relative Dockerfile path. When omitted, the cloned workspace is walked
|
|
7
|
+
* Optional repository-relative Dockerfile path from the template. When omitted, resolved from SLSA provenance buildMetadata.dockerfile / dockerFile. When still unset the cloned workspace is walked.
|
|
8
8
|
*/
|
|
9
9
|
dockerfilePath?: string;
|
|
10
10
|
/**
|
|
@@ -16,7 +16,7 @@ export interface RemediationAgentDockerfileScanRequest {
|
|
|
16
16
|
*/
|
|
17
17
|
repoUrl: string;
|
|
18
18
|
/**
|
|
19
|
-
* SCM connector used to clone the repository.
|
|
19
|
+
* SCM connector used to clone the repository. The request is rejected when omitted.
|
|
20
20
|
*/
|
|
21
21
|
scmConnectorRef?: string;
|
|
22
22
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface RemediationAgentExecution {
|
|
2
|
+
executionId: string;
|
|
3
|
+
/**
|
|
4
|
+
* Why the last run failed. Present only on FAILED executions, including idempotent terminal replays; a replayed terminal status is informational and callers must not start remediation work under it.
|
|
5
|
+
*/
|
|
6
|
+
failureReason?: string;
|
|
7
|
+
/**
|
|
8
|
+
* QUEUED|PENDING|RUNNING|COMPLETED|FAILED|SKIPPED. SKIPPED means the request selected no remediation criterion or no package group resolved to a policy-compliant upgrade; findings is empty in that case. A request that selects a criterion without a valid maxVersionUpdate fails with a 400 instead. On a SKIPPED execution, executionId is a deterministic synthetic value and is never persisted.
|
|
9
|
+
*/
|
|
10
|
+
status: string;
|
|
11
|
+
targetId?: string;
|
|
12
|
+
targetName?: string;
|
|
13
|
+
targetType?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RemediationAgentValidation } from '../schemas/RemediationAgentValidation';
|
|
2
|
+
/**
|
|
3
|
+
* Overrides stored for the scan's container target. Values are returned as stored, with no account, org or project inheritance, so callers can fill fields they were not given.
|
|
4
|
+
*/
|
|
5
|
+
export interface RemediationAgentTargetConfig {
|
|
6
|
+
/**
|
|
7
|
+
* Repository-relative Dockerfile path override for the target
|
|
8
|
+
*/
|
|
9
|
+
dockerfilePath?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Git remote URL override for the target
|
|
12
|
+
*/
|
|
13
|
+
repoUrl?: string;
|
|
14
|
+
validation?: RemediationAgentValidation;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface RemediationAgentValidation {
|
|
2
|
+
buildStepId?: string;
|
|
3
|
+
/**
|
|
4
|
+
* When absent, the remediation agent plugin treats the flag as false
|
|
5
|
+
*/
|
|
6
|
+
mustPassChecks?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* When absent, the remediation agent plugin treats the flag as false
|
|
9
|
+
*/
|
|
10
|
+
mustVerifyFix?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Identifier of the pipeline that rebuilds and re-scans the remediated image
|
|
13
|
+
*/
|
|
14
|
+
pipeline?: string;
|
|
15
|
+
pushStepId?: string;
|
|
16
|
+
scanStepId?: string;
|
|
17
|
+
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
export interface ResolveRemediationAgentRepoUrlResponse {
|
|
2
2
|
/**
|
|
3
|
-
* Git remote URL from scan
|
|
3
|
+
* Git remote URL resolved from the STO scan or SLSA provenance
|
|
4
4
|
*/
|
|
5
5
|
repoUrl: string;
|
|
6
|
-
/**
|
|
7
|
-
* Effective SCM connector from DEPENDENCY_REMEDIATION AI workflow config
|
|
8
|
-
*/
|
|
9
|
-
scmConnectorRef?: string;
|
|
10
6
|
}
|