@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.
Files changed (83) hide show
  1. package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.d.ts +33 -0
  2. package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.js +27 -0
  3. package/dist/ssca-manager/src/services/hooks/useGetZeroDayConfigQuery.d.ts +16 -0
  4. package/dist/ssca-manager/src/services/hooks/useGetZeroDayConfigQuery.js +14 -0
  5. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionAffectedTargetsQuery.d.ts +34 -0
  6. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionAffectedTargetsQuery.js +14 -0
  7. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionDetailQuery.d.ts +25 -0
  8. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionDetailQuery.js +14 -0
  9. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionStepsQuery.d.ts +24 -0
  10. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionStepsQuery.js +14 -0
  11. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionsQuery.d.ts +41 -0
  12. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionsQuery.js +14 -0
  13. package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.d.ts +39 -0
  14. package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.js +24 -0
  15. package/dist/ssca-manager/src/services/hooks/useSaveZeroDayConfigMutation.d.ts +18 -0
  16. package/dist/ssca-manager/src/services/hooks/useSaveZeroDayConfigMutation.js +14 -0
  17. package/dist/ssca-manager/src/services/index.d.ts +43 -5
  18. package/dist/ssca-manager/src/services/index.js +8 -0
  19. package/dist/ssca-manager/src/services/schemas/DependencyRemediationAgentSelection.d.ts +29 -0
  20. package/dist/ssca-manager/src/services/schemas/DependencyRemediationAgentSelectionFinding.d.ts +15 -0
  21. package/dist/ssca-manager/src/services/schemas/DependencyRemediationAgentSelectionVulnerability.d.ts +14 -0
  22. package/dist/ssca-manager/src/services/schemas/DependencyRemediationFinding.d.ts +23 -1
  23. package/dist/ssca-manager/src/services/schemas/DependencyRemediationFinding.js +0 -3
  24. package/dist/ssca-manager/src/services/schemas/DependencyRemediationUnresolvedFinding.d.ts +29 -0
  25. package/dist/ssca-manager/src/services/schemas/DependencyRemediationVulnerability.d.ts +10 -0
  26. package/dist/ssca-manager/src/services/schemas/DependencyRemediationVulnerability.js +4 -0
  27. package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentResponse.d.ts +11 -1
  28. package/dist/ssca-manager/src/services/schemas/RemediationAgentExecution.d.ts +1 -1
  29. package/dist/ssca-manager/src/services/schemas/RemediationAgentInitiateContext.d.ts +4 -0
  30. package/dist/ssca-manager/src/services/schemas/ZeroDayAlertConfig.d.ts +21 -0
  31. package/dist/ssca-manager/src/services/schemas/ZeroDayAlertConfig.js +4 -0
  32. package/dist/ssca-manager/src/services/schemas/ZeroDayBatchAcceptedResponse.d.ts +17 -0
  33. package/dist/ssca-manager/src/services/schemas/ZeroDayBatchAcceptedResponse.js +4 -0
  34. package/dist/ssca-manager/src/services/schemas/ZeroDayBatchConflictResponse.d.ts +11 -0
  35. package/dist/ssca-manager/src/services/schemas/ZeroDayBatchConflictResponse.js +4 -0
  36. package/dist/ssca-manager/src/services/schemas/ZeroDayBatchDetailResponse.d.ts +45 -0
  37. package/dist/ssca-manager/src/services/schemas/ZeroDayBatchDetailResponse.js +4 -0
  38. package/dist/ssca-manager/src/services/schemas/ZeroDayConfig.d.ts +14 -0
  39. package/dist/ssca-manager/src/services/schemas/ZeroDayExecutionSummary.d.ts +11 -0
  40. package/dist/ssca-manager/src/services/schemas/ZeroDayExecutionSummary.js +1 -0
  41. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingDeleteResponse.d.ts +8 -0
  42. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingDeleteResponse.js +4 -0
  43. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingResponse.d.ts +25 -0
  44. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingResponse.js +4 -0
  45. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingUpdateRequest.d.ts +23 -0
  46. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingUpdateRequest.js +4 -0
  47. package/dist/ssca-manager/src/services/schemas/ZeroDayInfrastructure.d.ts +25 -0
  48. package/dist/ssca-manager/src/services/schemas/ZeroDayInfrastructure.js +4 -0
  49. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalAlertContext.d.ts +16 -0
  50. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalAlertContext.js +4 -0
  51. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalConflictResponse.d.ts +5 -0
  52. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalConflictResponse.js +4 -0
  53. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalIdentificationStatusResponse.d.ts +16 -0
  54. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalIdentificationStatusResponse.js +4 -0
  55. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalNotifyResponse.d.ts +17 -0
  56. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalNotifyResponse.js +4 -0
  57. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultRequest.d.ts +8 -0
  58. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultRequest.js +4 -0
  59. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultResponse.d.ts +5 -0
  60. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultResponse.js +4 -0
  61. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStartIdentificationResponse.d.ts +5 -0
  62. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStartIdentificationResponse.js +4 -0
  63. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusRequest.d.ts +4 -0
  64. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusRequest.js +4 -0
  65. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusResponse.d.ts +5 -0
  66. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusResponse.js +4 -0
  67. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionRequest.d.ts +6 -0
  68. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionRequest.js +4 -0
  69. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionResponse.d.ts +4 -0
  70. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionResponse.js +4 -0
  71. package/dist/ssca-manager/src/services/schemas/ZeroDayTestTriggerRequest.d.ts +20 -0
  72. package/dist/ssca-manager/src/services/schemas/ZeroDayTestTriggerRequest.js +4 -0
  73. package/package.json +1 -1
  74. package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImage.d.ts +0 -8
  75. package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfile.d.ts +0 -8
  76. package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanExecution.d.ts +0 -15
  77. package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanRequest.d.ts +0 -18
  78. package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanResult.d.ts +0 -17
  79. /package/dist/ssca-manager/src/services/schemas/{RemediationAgentDockerfile.js → DependencyRemediationAgentSelection.js} +0 -0
  80. /package/dist/ssca-manager/src/services/schemas/{RemediationAgentBaseImage.js → DependencyRemediationAgentSelectionFinding.js} +0 -0
  81. /package/dist/ssca-manager/src/services/schemas/{RemediationAgentDockerfileScanExecution.js → DependencyRemediationAgentSelectionVulnerability.js} +0 -0
  82. /package/dist/ssca-manager/src/services/schemas/{RemediationAgentDockerfileScanRequest.js → DependencyRemediationUnresolvedFinding.js} +0 -0
  83. /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 highest strict-SemVer candidate satisfying the configured severity/risk criteria and staying within maxVersionUpdate. Identical for every finding in the same group.
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
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -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
+ }
@@ -0,0 +1,10 @@
1
+ export interface DependencyRemediationVulnerability {
2
+ /**
3
+ * CVE identifier, upper-cased.
4
+ */
5
+ id: string;
6
+ /**
7
+ * CRITICAL, HIGH, MEDIUM, LOW or INFO.
8
+ */
9
+ severity?: string;
10
+ }
@@ -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 {};
@@ -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 only the package identity, issue id and selected fix; raw scan evidence remains available server-side under the scan.
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,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,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,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,11 @@
1
+ export interface ZeroDayBatchConflictResponse {
2
+ batch_id?: string;
3
+ /**
4
+ * @example "Run already accepted"
5
+ */
6
+ reason?: string;
7
+ /**
8
+ * Batch status, or IN_PROGRESS while the first request has not saved the batch yet
9
+ */
10
+ status?: string;
11
+ }
@@ -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,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,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,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,8 @@
1
+ export interface ZeroDayFindingDeleteResponse {
2
+ /**
3
+ * COMPLETED when its matches are removed, PENDING while the background cleanup finishes
4
+ */
5
+ cleanup_status: 'COMPLETED' | 'PENDING';
6
+ cluster_id: string;
7
+ outcome: 'WITHDRAWN';
8
+ }
@@ -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,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,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,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,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,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,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,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
+ }
@@ -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,5 @@
1
+ export interface ZeroDayInternalConflictResponse {
2
+ claimedPipelineExecutionId?: string;
3
+ code?: string;
4
+ message?: string;
5
+ }
@@ -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,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,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,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,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,8 @@
1
+ export interface ZeroDayInternalResultRequest {
2
+ metadata?: {
3
+ [key: string]: any;
4
+ };
5
+ results?: {
6
+ [key: string]: any;
7
+ };
8
+ }
@@ -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,5 @@
1
+ export interface ZeroDayInternalResultResponse {
2
+ alreadyStored?: boolean;
3
+ executionId?: string;
4
+ stored?: boolean;
5
+ }
@@ -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,5 @@
1
+ export interface ZeroDayInternalStartIdentificationResponse {
2
+ execution_id?: string;
3
+ state?: string;
4
+ total?: number;
5
+ }
@@ -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,4 @@
1
+ export interface ZeroDayInternalStatusRequest {
2
+ reason?: string;
3
+ status: string;
4
+ }
@@ -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,5 @@
1
+ export interface ZeroDayInternalStatusResponse {
2
+ executionId?: string;
3
+ message?: string;
4
+ status?: string;
5
+ }
@@ -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,6 @@
1
+ export interface ZeroDayInternalStepExecutionRequest {
2
+ banner?: string;
3
+ details?: string;
4
+ pipelineExecutionId?: string;
5
+ summary?: string;
6
+ }
@@ -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,4 @@
1
+ export interface ZeroDayInternalStepExecutionResponse {
2
+ executionId?: string;
3
+ stepCount?: number;
4
+ }
@@ -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,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
+ }
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.86.28",
3
+ "version": "1.0.1",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,8 +0,0 @@
1
- export interface RemediationAgentBaseImage {
2
- alias?: string;
3
- image: string;
4
- /**
5
- * @format int32
6
- */
7
- line: number;
8
- }