@harnessio/react-ssca-manager-client 0.86.27 → 0.86.28
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/useGetIntegrationCountsQuery.d.ts +1 -2
- package/dist/ssca-manager/src/services/hooks/useListIntegrationsQuery.d.ts +2 -0
- package/dist/ssca-manager/src/services/index.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/AgentExecutionDetail.d.ts +9 -0
- package/dist/ssca-manager/src/services/schemas/AgentExecutionSummary.d.ts +6 -2
- package/dist/ssca-manager/src/services/schemas/ArtifactType.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentRequest.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentCriteria.d.ts +3 -3
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanRequest.d.ts +0 -4
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanResult.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentInitiateContext.d.ts +9 -0
- package/dist/ssca-manager/src/services/schemas/RemediationAgentInitiateContext.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ResolveRemediationAgentRepoUrlResponse.d.ts +4 -0
- package/package.json +1 -1
|
@@ -2,7 +2,6 @@ import { UseQueryOptions } from '@tanstack/react-query';
|
|
|
2
2
|
import type { IntegrationCountsResponse } from '../schemas/IntegrationCountsResponse';
|
|
3
3
|
import type { IntegrationCountsView } from '../schemas/IntegrationCountsView';
|
|
4
4
|
import type { IntegrationCountsScannerCategory } from '../schemas/IntegrationCountsScannerCategory';
|
|
5
|
-
import type { IntegrationCountsIntegrationStatus } from '../schemas/IntegrationCountsIntegrationStatus';
|
|
6
5
|
import type { ResponseWithPagination } from '../helpers';
|
|
7
6
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
8
7
|
export interface GetIntegrationCountsQueryPathParams {
|
|
@@ -14,7 +13,7 @@ export interface GetIntegrationCountsQueryQueryParams {
|
|
|
14
13
|
types?: IntegrationCountsScannerCategory;
|
|
15
14
|
scanner_types?: string;
|
|
16
15
|
search_term?: string;
|
|
17
|
-
integration_status?:
|
|
16
|
+
integration_status?: string;
|
|
18
17
|
}
|
|
19
18
|
export interface GetIntegrationCountsQueryHeaderParams {
|
|
20
19
|
'Harness-Account': string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
2
|
import type { IntegrationListingResponseBodyResponse } from '../responses/IntegrationListingResponseBodyResponse';
|
|
3
3
|
import type { IntegrationType } from '../schemas/IntegrationType';
|
|
4
|
+
import type { RspmScannerId } from '../schemas/RspmScannerId';
|
|
4
5
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
6
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
7
|
export interface ListIntegrationsQueryPathParams {
|
|
@@ -24,6 +25,7 @@ export interface ListIntegrationsQueryQueryParams {
|
|
|
24
25
|
status?: 'ACTIVE' | 'INACTIVE';
|
|
25
26
|
type?: IntegrationType[];
|
|
26
27
|
search_term?: string;
|
|
28
|
+
scanner_id?: RspmScannerId[];
|
|
27
29
|
/**
|
|
28
30
|
* @default "last_scan"
|
|
29
31
|
*/
|
|
@@ -789,6 +789,7 @@ export type { RemediationAgentDockerfileScanExecution } from './schemas/Remediat
|
|
|
789
789
|
export type { RemediationAgentDockerfileScanRequest } from './schemas/RemediationAgentDockerfileScanRequest';
|
|
790
790
|
export type { RemediationAgentDockerfileScanResult } from './schemas/RemediationAgentDockerfileScanResult';
|
|
791
791
|
export type { RemediationAgentExecution } from './schemas/RemediationAgentExecution';
|
|
792
|
+
export type { RemediationAgentInitiateContext } from './schemas/RemediationAgentInitiateContext';
|
|
792
793
|
export type { RemediationAgentTargetConfig } from './schemas/RemediationAgentTargetConfig';
|
|
793
794
|
export type { RemediationAgentValidation } from './schemas/RemediationAgentValidation';
|
|
794
795
|
export type { RemediationArtifactDeploymentsListingRequestBody } from './schemas/RemediationArtifactDeploymentsListingRequestBody';
|
|
@@ -6,6 +6,15 @@ export interface AgentExecutionDetail {
|
|
|
6
6
|
agent_results?: {
|
|
7
7
|
[key: string]: any;
|
|
8
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* Agent run cost in USD from agent_results.cost_usd, rounded to 2 decimal places. Null when the run has no stored cost.
|
|
11
|
+
* @format double
|
|
12
|
+
*/
|
|
13
|
+
cost_usd?: number;
|
|
14
|
+
/**
|
|
15
|
+
* First line of the execution failure reason, trimmed to 300 characters. Null when the run did not fail or no reason was recorded. Present for both FP Triage and SAST Remediation.
|
|
16
|
+
*/
|
|
17
|
+
error_message?: string;
|
|
9
18
|
/**
|
|
10
19
|
* FP Triage only — count of false positives identified (null for remediation)
|
|
11
20
|
*/
|
|
@@ -8,7 +8,11 @@ export interface AgentExecutionSummary {
|
|
|
8
8
|
*/
|
|
9
9
|
cost_usd?: number;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* First line of the execution failure reason, trimmed to 300 characters. Null when the run did not fail or no reason was recorded. Present for both FP Triage and SAST Remediation.
|
|
12
|
+
*/
|
|
13
|
+
error_message?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Remediation only — scoped occurrences for which the agent included a fix in the pull request (agent_results.findings_remediated). This does not require validation. Null when the run has no stored count.
|
|
12
16
|
*/
|
|
13
17
|
findings_remediated?: number;
|
|
14
18
|
/**
|
|
@@ -24,7 +28,7 @@ export interface AgentExecutionSummary {
|
|
|
24
28
|
*/
|
|
25
29
|
issue_types?: string[];
|
|
26
30
|
/**
|
|
27
|
-
* Remediation only — distinct scoped issues whose every occurrence
|
|
31
|
+
* Remediation only — distinct scoped issues whose every scoped occurrence has a fix included in the pull request (agent_results.issues_remediated). A partial fix does not count. This does not require validation. Null when the run has no stored count.
|
|
28
32
|
*/
|
|
29
33
|
issues_remediated?: number;
|
|
30
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ArtifactType = 'CONTAINER_IMAGE' | 'HELM' | 'JAR' | 'MANIFEST' | 'UNKNOWN' | 'WAR';
|
|
1
|
+
export type ArtifactType = 'CONTAINER_IMAGE' | 'HELM' | 'JAR' | 'LOCAL_ARCHIVE' | 'LOCAL_IMAGE' | 'MANIFEST' | 'UNKNOWN' | 'WAR';
|
|
@@ -4,6 +4,10 @@ export interface InitiateRemediationAgentRequest {
|
|
|
4
4
|
* Whether a vulnerable package may be upgraded to a pre-release version. Defaults to false.
|
|
5
5
|
*/
|
|
6
6
|
allowPreRelease?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Optional. Set by a dispatched agent pipeline to the execution ssca-manager created for it (the execution_id input). When it matches the scan's active execution and the request's pipelineExecutionId matches the one recorded for it (if any), that execution is returned instead of a 409 conflict. Any other active execution for the scan still conflicts.
|
|
9
|
+
*/
|
|
10
|
+
executionId?: string;
|
|
7
11
|
/**
|
|
8
12
|
* 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
13
|
*/
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { RemediationAgentInitiateContext } from '../schemas/RemediationAgentInitiateContext';
|
|
1
2
|
import type { RemediationAgentExecution } from '../schemas/RemediationAgentExecution';
|
|
2
3
|
import type { DependencyRemediationFinding } from '../schemas/DependencyRemediationFinding';
|
|
3
4
|
import type { RemediationAgentTargetConfig } from '../schemas/RemediationAgentTargetConfig';
|
|
4
5
|
export interface InitiateRemediationAgentResponse {
|
|
6
|
+
context?: RemediationAgentInitiateContext;
|
|
5
7
|
execution: RemediationAgentExecution;
|
|
6
8
|
/**
|
|
7
9
|
* 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.
|
|
@@ -7,11 +7,11 @@ export interface RemediationAgentCriteria {
|
|
|
7
7
|
*/
|
|
8
8
|
cisaKev?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
* One of "0 - 10%", "10 - 20%", "20 - 50%" or "50 - 100%"
|
|
10
|
+
* One of "0 - 10%", "10 - 20%", "20 - 50%" or "50 - 100%". Persisted and echoed for the config, but not yet used to filter findings
|
|
11
11
|
*/
|
|
12
12
|
epssPercentage?: string;
|
|
13
13
|
/**
|
|
14
|
-
* Include issues
|
|
14
|
+
* Include issues that carry an EPSS score. The epssPercentage range is stored but not yet applied when selecting findings
|
|
15
15
|
*/
|
|
16
16
|
epssProbability?: boolean;
|
|
17
17
|
/**
|
|
@@ -23,7 +23,7 @@ export interface RemediationAgentCriteria {
|
|
|
23
23
|
*/
|
|
24
24
|
reachable?: boolean;
|
|
25
25
|
/**
|
|
26
|
-
* Severities to remediate (CRITICAL, HIGH, MEDIUM, LOW, INFO). Empty selects no severity.
|
|
26
|
+
* Severities to remediate (CRITICAL, HIGH, MEDIUM, LOW, INFO). Empty selects no severity here; the scs-remediation-agent plugin sends CRITICAL when the step sets none.
|
|
27
27
|
*/
|
|
28
28
|
severities?: string[];
|
|
29
29
|
}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export interface RemediationAgentDockerfileScanRequest {
|
|
2
|
-
/**
|
|
3
|
-
* Git branch to clone. When omitted, the default branch is resolved from the GitHub connector.
|
|
4
|
-
*/
|
|
5
|
-
defaultBranch?: string;
|
|
6
2
|
/**
|
|
7
3
|
* 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
4
|
*/
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { RemediationAgentDockerfile } from '../schemas/RemediationAgentDockerfile';
|
|
2
2
|
export interface RemediationAgentDockerfileScanResult {
|
|
3
|
+
/**
|
|
4
|
+
* Branch the Dockerfile-discovery clone resolved to, i.e. the repository's default branch. Recorded by CI when the clone lands, so absent on executions that have not cloned yet.
|
|
5
|
+
*/
|
|
6
|
+
defaultBranch?: string;
|
|
3
7
|
dockerfiles: RemediationAgentDockerfile[];
|
|
4
8
|
/**
|
|
5
9
|
* Failure detail when status is FAILED
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Server-resolved context for this execution; derived data, not configuration.
|
|
3
|
+
*/
|
|
4
|
+
export interface RemediationAgentInitiateContext {
|
|
5
|
+
/**
|
|
6
|
+
* 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.
|
|
7
|
+
*/
|
|
8
|
+
scmProvider?: string;
|
|
9
|
+
}
|
|
@@ -3,4 +3,8 @@ export interface ResolveRemediationAgentRepoUrlResponse {
|
|
|
3
3
|
* Git remote URL resolved from the STO scan or SLSA provenance
|
|
4
4
|
*/
|
|
5
5
|
repoUrl: string;
|
|
6
|
+
/**
|
|
7
|
+
* SCM provider for the resolved repoUrl: the scan's recorded artifactInfo.scmProvider, else inferred from the resolved URL. Absent when neither is known.
|
|
8
|
+
*/
|
|
9
|
+
scmProvider?: string;
|
|
6
10
|
}
|