@harnessio/react-ssca-manager-client 0.86.28 → 1.0.1
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/useGetContainerTargetAiWorkflowConfigQuery.d.ts +33 -0
- package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.js +27 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayConfigQuery.d.ts +16 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayConfigQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionAffectedTargetsQuery.d.ts +34 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionAffectedTargetsQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionDetailQuery.d.ts +25 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionDetailQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionStepsQuery.d.ts +24 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionStepsQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionsQuery.d.ts +41 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionsQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.d.ts +39 -0
- package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.js +24 -0
- package/dist/ssca-manager/src/services/hooks/useSaveZeroDayConfigMutation.d.ts +18 -0
- package/dist/ssca-manager/src/services/hooks/useSaveZeroDayConfigMutation.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +43 -5
- package/dist/ssca-manager/src/services/index.js +8 -0
- package/dist/ssca-manager/src/services/schemas/DependencyRemediationAgentSelection.d.ts +29 -0
- package/dist/ssca-manager/src/services/schemas/DependencyRemediationAgentSelectionFinding.d.ts +15 -0
- package/dist/ssca-manager/src/services/schemas/DependencyRemediationAgentSelectionVulnerability.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/DependencyRemediationFinding.d.ts +23 -1
- package/dist/ssca-manager/src/services/schemas/DependencyRemediationFinding.js +0 -3
- package/dist/ssca-manager/src/services/schemas/DependencyRemediationUnresolvedFinding.d.ts +29 -0
- package/dist/ssca-manager/src/services/schemas/DependencyRemediationVulnerability.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/DependencyRemediationVulnerability.js +4 -0
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentResponse.d.ts +11 -1
- package/dist/ssca-manager/src/services/schemas/RemediationAgentExecution.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/RemediationAgentInitiateContext.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayAlertConfig.d.ts +21 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayAlertConfig.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayBatchAcceptedResponse.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayBatchAcceptedResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayBatchConflictResponse.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayBatchConflictResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayBatchDetailResponse.d.ts +45 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayBatchDetailResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayConfig.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayExecutionSummary.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayExecutionSummary.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayFindingDeleteResponse.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayFindingDeleteResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayFindingResponse.d.ts +25 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayFindingResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayFindingUpdateRequest.d.ts +23 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayFindingUpdateRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInfrastructure.d.ts +25 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInfrastructure.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalAlertContext.d.ts +16 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalAlertContext.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalConflictResponse.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalConflictResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalIdentificationStatusResponse.d.ts +16 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalIdentificationStatusResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalNotifyResponse.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalNotifyResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultRequest.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultResponse.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStartIdentificationResponse.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStartIdentificationResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusRequest.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusResponse.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionRequest.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionResponse.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayTestTriggerRequest.d.ts +20 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayTestTriggerRequest.js +4 -0
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImage.d.ts +0 -8
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfile.d.ts +0 -8
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanExecution.d.ts +0 -15
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanRequest.d.ts +0 -18
- package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanResult.d.ts +0 -17
- /package/dist/ssca-manager/src/services/schemas/{RemediationAgentDockerfile.js → DependencyRemediationAgentSelection.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{RemediationAgentBaseImage.js → DependencyRemediationAgentSelectionFinding.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{RemediationAgentDockerfileScanExecution.js → DependencyRemediationAgentSelectionVulnerability.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{RemediationAgentDockerfileScanRequest.js → DependencyRemediationUnresolvedFinding.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{RemediationAgentDockerfileScanResult.js → ZeroDayConfig.js} +0 -0
|
@@ -1,12 +1,34 @@
|
|
|
1
|
+
import type { DependencyRemediationVulnerability } from '../schemas/DependencyRemediationVulnerability';
|
|
1
2
|
export interface DependencyRemediationFinding {
|
|
3
|
+
/**
|
|
4
|
+
* CVEs this finding's selected version resolves, worst severity first. Empty when the scan carried no per-CVE data, in which case vulnerabilityCount is the only signal.
|
|
5
|
+
*/
|
|
6
|
+
fixedVulnerabilities?: DependencyRemediationVulnerability[];
|
|
2
7
|
/**
|
|
3
8
|
* Scanner issue / CVE identifier
|
|
4
9
|
*/
|
|
5
10
|
issueId: string;
|
|
11
|
+
/**
|
|
12
|
+
* Free-text context for the selected version. On PARTIAL findings, what the selected version leaves unresolved and what it would take to resolve it. On findings whose version the remediation agent chose from the scanner's fix versions, why it chose that version.
|
|
13
|
+
*/
|
|
14
|
+
note?: string;
|
|
6
15
|
packageName: string;
|
|
7
16
|
packageVersion: string;
|
|
8
17
|
/**
|
|
9
|
-
* Upgrade selected by the effective remediation policy for this finding's package/version group: the
|
|
18
|
+
* Upgrade selected by the effective remediation policy for this finding's package/version group: the lowest version within maxVersionUpdate that resolves the most findings in the group, weighted by severity. Fix lists such as "4.0.1, 2.0.1" and ranges such as ">=4.6.0" are understood. Identical for every finding in the same group.
|
|
10
19
|
*/
|
|
11
20
|
selectedFixVersion: string;
|
|
21
|
+
/**
|
|
22
|
+
* Highest severity among the finding's counted issues (CRITICAL, HIGH, MEDIUM or LOW).
|
|
23
|
+
*/
|
|
24
|
+
severity?: string;
|
|
25
|
+
/**
|
|
26
|
+
* FIXED when the selected version resolves every reported issue of this finding, PARTIAL when it resolves only some of them (see note).
|
|
27
|
+
*/
|
|
28
|
+
status?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Number of critical, high, medium and low issues the scan counted for this finding.
|
|
31
|
+
* @format int32
|
|
32
|
+
*/
|
|
33
|
+
vulnerabilityCount?: number;
|
|
12
34
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface DependencyRemediationUnresolvedFinding {
|
|
2
|
+
/**
|
|
3
|
+
* Scanner issue / CVE identifier
|
|
4
|
+
*/
|
|
5
|
+
issueId: string;
|
|
6
|
+
packageName: string;
|
|
7
|
+
packageVersion: string;
|
|
8
|
+
/**
|
|
9
|
+
* Human-readable explanation.
|
|
10
|
+
*/
|
|
11
|
+
reason: string;
|
|
12
|
+
/**
|
|
13
|
+
* Smallest version that would resolve the finding, when one is known.
|
|
14
|
+
*/
|
|
15
|
+
requiredVersion?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Highest severity among the finding's counted issues (CRITICAL, HIGH, MEDIUM or LOW).
|
|
18
|
+
*/
|
|
19
|
+
severity?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Why no upgrade was selected. NEEDS_MINOR or NEEDS_MAJOR means a fix exists but needs a larger bump than maxVersionUpdate allows. NO_FIX means no upgrade could be applied: either the scanner reported no usable fix newer than the installed version, or its fix is within maxVersionUpdate but conflicts with the version chosen for other issues of the same package (see reason). UNPARSEABLE means the installed or fixed version is not a recognizable version format.
|
|
22
|
+
*/
|
|
23
|
+
status: string;
|
|
24
|
+
/**
|
|
25
|
+
* Number of critical, high, medium and low issues the scan counted for this finding.
|
|
26
|
+
* @format int32
|
|
27
|
+
*/
|
|
28
|
+
vulnerabilityCount?: number;
|
|
29
|
+
}
|
|
@@ -1,13 +1,23 @@
|
|
|
1
|
+
import type { DependencyRemediationAgentSelection } from '../schemas/DependencyRemediationAgentSelection';
|
|
1
2
|
import type { RemediationAgentInitiateContext } from '../schemas/RemediationAgentInitiateContext';
|
|
2
3
|
import type { RemediationAgentExecution } from '../schemas/RemediationAgentExecution';
|
|
3
4
|
import type { DependencyRemediationFinding } from '../schemas/DependencyRemediationFinding';
|
|
4
5
|
import type { RemediationAgentTargetConfig } from '../schemas/RemediationAgentTargetConfig';
|
|
6
|
+
import type { DependencyRemediationUnresolvedFinding } from '../schemas/DependencyRemediationUnresolvedFinding';
|
|
5
7
|
export interface InitiateRemediationAgentResponse {
|
|
8
|
+
/**
|
|
9
|
+
* Package groups whose versions the selector cannot rank: the installed version, or every fix string a scanner reported for a requirement, is not a recognizable version. The group is not in findings or unresolvedFindings. The agent chooses one of its candidates, guided by suggestedVersion. Empty or absent when the selector decided every group.
|
|
10
|
+
*/
|
|
11
|
+
agentSelectFindings?: DependencyRemediationAgentSelection[];
|
|
6
12
|
context?: RemediationAgentInitiateContext;
|
|
7
13
|
execution: RemediationAgentExecution;
|
|
8
14
|
/**
|
|
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
|
|
15
|
+
* 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 the package identity, issue id, selected fix and a short outcome summary (status, severity); raw scan evidence remains available server-side under the scan.
|
|
10
16
|
*/
|
|
11
17
|
findings: DependencyRemediationFinding[];
|
|
12
18
|
targetConfig?: RemediationAgentTargetConfig;
|
|
19
|
+
/**
|
|
20
|
+
* Config-eligible findings that no policy-compliant upgrade could address, in source order, each with the reason. These are not part of findings and need manual follow-up. Empty when every eligible finding has a selected fix.
|
|
21
|
+
*/
|
|
22
|
+
unresolvedFindings?: DependencyRemediationUnresolvedFinding[];
|
|
13
23
|
}
|
|
@@ -5,7 +5,7 @@ export interface RemediationAgentExecution {
|
|
|
5
5
|
*/
|
|
6
6
|
failureReason?: string;
|
|
7
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.
|
|
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 and none was handed to the agent to choose; 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
9
|
*/
|
|
10
10
|
status: string;
|
|
11
11
|
targetId?: string;
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* Server-resolved context for this execution; derived data, not configuration.
|
|
3
3
|
*/
|
|
4
4
|
export interface RemediationAgentInitiateContext {
|
|
5
|
+
/**
|
|
6
|
+
* 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
|
+
*/
|
|
8
|
+
dockerfilePath?: string;
|
|
5
9
|
/**
|
|
6
10
|
* 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
11
|
*/
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channels that receive zero-day alerts. Omit to disable alerting.
|
|
3
|
+
*/
|
|
4
|
+
export interface ZeroDayAlertConfig {
|
|
5
|
+
email_addresses?: string[];
|
|
6
|
+
google_chat_connector_refs?: string[];
|
|
7
|
+
ms_teams_connector_refs?: string[];
|
|
8
|
+
pagerduty_connector_ref?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Severities that trigger alerts, e.g. CRITICAL, HIGH
|
|
11
|
+
*/
|
|
12
|
+
severities?: string[];
|
|
13
|
+
/**
|
|
14
|
+
* Slack connector ref to the channel ids that receive the message
|
|
15
|
+
*/
|
|
16
|
+
slack_connector_channels?: {
|
|
17
|
+
[key: string]: string[];
|
|
18
|
+
};
|
|
19
|
+
slack_connector_refs?: string[];
|
|
20
|
+
zoom_connector_refs?: string[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ZeroDayBatchAcceptedResponse {
|
|
2
|
+
accepted_cluster_ids?: string[];
|
|
3
|
+
batch_id?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Rejected findings with a reason such as MISSING_PACKAGE, MISSING_ECOSYSTEM, INVALID_VERSION_RANGES, INVALID_LIST_FIELD, ALREADY_ACCEPTED, WITHDRAWN
|
|
6
|
+
*/
|
|
7
|
+
rejected?: Array<{
|
|
8
|
+
cluster_id?: string;
|
|
9
|
+
index?: number;
|
|
10
|
+
reason?: string;
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* ACCEPTING, QUEUED, or COMPLETED when nothing new was accepted
|
|
14
|
+
*/
|
|
15
|
+
status?: string;
|
|
16
|
+
valid_findings?: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface ZeroDayBatchDetailResponse {
|
|
2
|
+
accepted_cluster_ids?: string[];
|
|
3
|
+
batch_account_results?: Array<{
|
|
4
|
+
account_id?: string;
|
|
5
|
+
execution_id?: string;
|
|
6
|
+
failure_message?: string;
|
|
7
|
+
outcome?: string;
|
|
8
|
+
pipeline_execution_id?: string;
|
|
9
|
+
/**
|
|
10
|
+
* @format int64
|
|
11
|
+
*/
|
|
12
|
+
processed_at?: number;
|
|
13
|
+
state?: string;
|
|
14
|
+
}>;
|
|
15
|
+
batch_id?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @format int64
|
|
18
|
+
*/
|
|
19
|
+
created_at?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Live number of the batch's executions per status
|
|
22
|
+
*/
|
|
23
|
+
execution_status_counts?: {
|
|
24
|
+
[key: string]: number;
|
|
25
|
+
};
|
|
26
|
+
failed_account_count?: number;
|
|
27
|
+
generated_at?: string;
|
|
28
|
+
rejected_cluster_ids?: string[];
|
|
29
|
+
results_truncated?: boolean;
|
|
30
|
+
run_id?: string;
|
|
31
|
+
skipped_account_count?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Dispatch outcome of the batch; unaffected by reruns
|
|
34
|
+
*/
|
|
35
|
+
status?: string;
|
|
36
|
+
target_count?: number;
|
|
37
|
+
total_finding_count?: number;
|
|
38
|
+
triggered_account_count?: number;
|
|
39
|
+
/**
|
|
40
|
+
* @format int64
|
|
41
|
+
*/
|
|
42
|
+
triggered_at?: number;
|
|
43
|
+
triggered_by_principal?: string;
|
|
44
|
+
valid_finding_count?: number;
|
|
45
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ZeroDayAlertConfig } from '../schemas/ZeroDayAlertConfig';
|
|
2
|
+
import type { ZeroDayInfrastructure } from '../schemas/ZeroDayInfrastructure';
|
|
3
|
+
export interface ZeroDayConfig {
|
|
4
|
+
alert_config?: ZeroDayAlertConfig;
|
|
5
|
+
/**
|
|
6
|
+
* Whether zero-day remediation is enabled for the account
|
|
7
|
+
*/
|
|
8
|
+
enabled?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Package name patterns (glob with *) to filter out of dispatch
|
|
11
|
+
*/
|
|
12
|
+
exclude_artifact_patterns?: string[];
|
|
13
|
+
infrastructure?: ZeroDayInfrastructure;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AiWorkflowExecutionSummary } from '../schemas/AiWorkflowExecutionSummary';
|
|
2
|
+
export interface ZeroDayExecutionSummary extends AiWorkflowExecutionSummary {
|
|
3
|
+
/**
|
|
4
|
+
* Finding cluster this row describes
|
|
5
|
+
*/
|
|
6
|
+
cluster_id?: string;
|
|
7
|
+
/**
|
|
8
|
+
* True for runs started by the test trigger
|
|
9
|
+
*/
|
|
10
|
+
test?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface ZeroDayFindingResponse {
|
|
2
|
+
affected_version_ranges?: string[];
|
|
3
|
+
cluster_id: string;
|
|
4
|
+
/**
|
|
5
|
+
* @format int64
|
|
6
|
+
*/
|
|
7
|
+
content_written_at?: number;
|
|
8
|
+
cve_ids?: string[];
|
|
9
|
+
detection_time?: string;
|
|
10
|
+
ecosystem?: string;
|
|
11
|
+
exploit_lookup_status?: string;
|
|
12
|
+
exploit_references?: string[];
|
|
13
|
+
export_kind?: string;
|
|
14
|
+
fix_versions?: string[];
|
|
15
|
+
package_name?: string;
|
|
16
|
+
purl?: string;
|
|
17
|
+
severity?: string;
|
|
18
|
+
source_published_at?: string;
|
|
19
|
+
source_updated_at?: string;
|
|
20
|
+
source_urls?: string[];
|
|
21
|
+
sources?: string[];
|
|
22
|
+
status: 'ACTIVE' | 'WITHDRAWN';
|
|
23
|
+
summary?: string;
|
|
24
|
+
version_validation?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Patch of the editable finding fields; the trailing echo fields are accepted only when equal to the stored value.
|
|
3
|
+
*/
|
|
4
|
+
export interface ZeroDayFindingUpdateRequest {
|
|
5
|
+
affected_version_ranges?: string[];
|
|
6
|
+
cluster_id?: string;
|
|
7
|
+
cve_ids?: string[];
|
|
8
|
+
detection_time?: string;
|
|
9
|
+
ecosystem?: string;
|
|
10
|
+
exploit_lookup_status?: string;
|
|
11
|
+
exploit_references?: string[];
|
|
12
|
+
export_kind?: string;
|
|
13
|
+
fix_versions?: string[];
|
|
14
|
+
package_name?: string;
|
|
15
|
+
purl?: string;
|
|
16
|
+
severity?: string;
|
|
17
|
+
source_published_at?: string;
|
|
18
|
+
source_updated_at?: string;
|
|
19
|
+
source_urls?: string[];
|
|
20
|
+
sources?: string[];
|
|
21
|
+
summary?: string;
|
|
22
|
+
version_validation?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface ZeroDayInfrastructure {
|
|
2
|
+
/**
|
|
3
|
+
* Defaults to true when omitted
|
|
4
|
+
* @default true
|
|
5
|
+
*/
|
|
6
|
+
automount_service_account_token?: boolean;
|
|
7
|
+
connector_ref?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Required for KubernetesDirect
|
|
10
|
+
*/
|
|
11
|
+
namespace?: string;
|
|
12
|
+
node_selector?: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Only Linux is supported
|
|
17
|
+
* @default "Linux"
|
|
18
|
+
*/
|
|
19
|
+
os: 'Linux';
|
|
20
|
+
/**
|
|
21
|
+
* HarnessCloud (default) or KubernetesDirect
|
|
22
|
+
* @default "HarnessCloud"
|
|
23
|
+
*/
|
|
24
|
+
type: 'HarnessCloud' | 'KubernetesDirect';
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface ZeroDayInternalAlertContext {
|
|
2
|
+
attack_surface?: string;
|
|
3
|
+
component_name?: string;
|
|
4
|
+
component_type?: string;
|
|
5
|
+
component_version?: string;
|
|
6
|
+
dependents_count?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
ecosystems?: string[];
|
|
9
|
+
exposure_points?: string;
|
|
10
|
+
notable_consumers?: string;
|
|
11
|
+
popularity?: string;
|
|
12
|
+
repo_url?: string;
|
|
13
|
+
risk_factor?: string;
|
|
14
|
+
risk_pattern?: string;
|
|
15
|
+
use_cases?: string[];
|
|
16
|
+
}
|
package/dist/ssca-manager/src/services/schemas/ZeroDayInternalIdentificationStatusResponse.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface ZeroDayInternalIdentificationStatusResponse {
|
|
2
|
+
error?: string;
|
|
3
|
+
incomplete_clusters?: Array<{
|
|
4
|
+
cluster_id?: string;
|
|
5
|
+
reason?: string;
|
|
6
|
+
}>;
|
|
7
|
+
progress?: {
|
|
8
|
+
processed?: number;
|
|
9
|
+
total?: number;
|
|
10
|
+
};
|
|
11
|
+
result?: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
};
|
|
14
|
+
result_truncated?: boolean;
|
|
15
|
+
state?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface ZeroDayInternalNotifyResponse {
|
|
2
|
+
alreadyNotified?: boolean;
|
|
3
|
+
attempts?: number;
|
|
4
|
+
channelsSent?: string[];
|
|
5
|
+
executionId?: string;
|
|
6
|
+
inFlight?: boolean;
|
|
7
|
+
messagePreview?: string;
|
|
8
|
+
/**
|
|
9
|
+
* @format int64
|
|
10
|
+
*/
|
|
11
|
+
nextAttemptAt?: number;
|
|
12
|
+
notified?: boolean;
|
|
13
|
+
retriesExhausted?: boolean;
|
|
14
|
+
retryScheduled?: boolean;
|
|
15
|
+
skipReasons?: string[];
|
|
16
|
+
subject?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface ZeroDayTestTriggerRequest {
|
|
2
|
+
/**
|
|
3
|
+
* Account the test run targets
|
|
4
|
+
*/
|
|
5
|
+
account_id: string;
|
|
6
|
+
affected_version_ranges: string[];
|
|
7
|
+
cve_ids?: string[];
|
|
8
|
+
fix_versions?: string[];
|
|
9
|
+
/**
|
|
10
|
+
* Required when purl is not given
|
|
11
|
+
*/
|
|
12
|
+
package_ecosystem?: string;
|
|
13
|
+
package_name: string;
|
|
14
|
+
purl?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Defaults to HIGH
|
|
17
|
+
*/
|
|
18
|
+
severity?: string;
|
|
19
|
+
summary?: string;
|
|
20
|
+
}
|
package/package.json
CHANGED