@harnessio/react-ssca-manager-client 0.84.25 → 0.84.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/useGetAccountAiWorkflowConfigQuery.d.ts +20 -0
- package/dist/ssca-manager/src/services/hooks/useGetAccountAiWorkflowConfigQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionAffectedTargetsQuery.d.ts +33 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionAffectedTargetsQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionDetailQuery.d.ts +24 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionDetailQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsAccountScopeQuery.d.ts +25 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsAccountScopeQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsAccountScopeQuery.d.ts +41 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsAccountScopeQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useListAgentStatusesQuery.d.ts +20 -0
- package/dist/ssca-manager/src/services/hooks/useListAgentStatusesQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useSaveAccountAiWorkflowConfigMutation.d.ts +22 -0
- package/dist/ssca-manager/src/services/hooks/useSaveAccountAiWorkflowConfigMutation.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useToggleAgentStatusMutation.d.ts +19 -0
- package/dist/ssca-manager/src/services/hooks/useToggleAgentStatusMutation.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +26 -12
- package/dist/ssca-manager/src/services/index.js +8 -4
- package/dist/ssca-manager/src/services/requestBodies/ListSbomComponentsRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/AffectedArtifactInfo.d.ts +20 -0
- package/dist/ssca-manager/src/services/schemas/AgentToggleRequest.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/AgentToggleRequest.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AgentToggleStatus.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/AgentToggleStatus.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AiBomComponentViewResponse.d.ts +28 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigRequest.d.ts +0 -6
- package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigResponse.d.ts +0 -3
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionDetailResponse.d.ts +5 -107
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionRequest.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionSummary.d.ts +6 -62
- package/dist/ssca-manager/src/services/schemas/InternalAffectedArtifact.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/InternalIdentificationResult.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/ListSbomComponentsRequest.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/ListSbomComponentsRequest.js +1 -0
- package/dist/ssca-manager/src/services/schemas/NonContainerListingSpec.d.ts +16 -0
- package/dist/ssca-manager/src/services/schemas/NonContainerListingSpec.js +1 -0
- package/dist/ssca-manager/src/services/schemas/SbomListingArtifactSpec.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/TriageFindingDetail.d.ts +18 -0
- package/dist/ssca-manager/src/services/schemas/TriageFindingDetail.js +1 -0
- package/dist/ssca-manager/src/services/schemas/TriageFindingSummary.d.ts +12 -0
- package/dist/ssca-manager/src/services/schemas/VulnerabilityFindingDetail.d.ts +19 -0
- package/dist/ssca-manager/src/services/schemas/VulnerabilityFindingDetail.js +1 -0
- package/dist/ssca-manager/src/services/schemas/VulnerabilityFindingSummary.d.ts +17 -0
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowConfigQuery.d.ts +0 -25
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowConfigQuery.js +0 -14
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsQuery.d.ts +0 -23
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsQuery.js +0 -14
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsQuery.d.ts +0 -39
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsQuery.js +0 -14
- package/dist/ssca-manager/src/services/hooks/useSaveAiWorkflowConfigMutation.d.ts +0 -28
- package/dist/ssca-manager/src/services/hooks/useSaveAiWorkflowConfigMutation.js +0 -14
- package/dist/ssca-manager/src/services/schemas/BatchAccountResult.d.ts +0 -11
- package/dist/ssca-manager/src/services/schemas/BatchTriggerRequest.d.ts +0 -10
- package/dist/ssca-manager/src/services/schemas/BatchTriggerResponse.d.ts +0 -5
- package/dist/ssca-manager/src/services/schemas/RemediationBatchDetail.d.ts +0 -20
- /package/dist/ssca-manager/src/services/{schemas/RemediationBatchDetail.js → requestBodies/ListSbomComponentsRequestBodyRequestBody.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{BatchAccountResult.js → SbomListingArtifactSpec.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{BatchTriggerRequest.js → TriageFindingSummary.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{BatchTriggerResponse.js → VulnerabilityFindingSummary.js} +0 -0
|
@@ -43,14 +43,38 @@ export interface AiBomComponentViewResponse {
|
|
|
43
43
|
* Total number of source code occurrences
|
|
44
44
|
*/
|
|
45
45
|
occurrence_count?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Component description from the SBOM
|
|
48
|
+
*/
|
|
49
|
+
package_description?: string;
|
|
46
50
|
/**
|
|
47
51
|
* Unique component identifier (bom-ref)
|
|
48
52
|
*/
|
|
49
53
|
package_id?: string;
|
|
54
|
+
/**
|
|
55
|
+
* SPDX license identifiers for this component
|
|
56
|
+
*/
|
|
57
|
+
package_license?: string[];
|
|
58
|
+
/**
|
|
59
|
+
* Package manager/ecosystem parsed from purl (e.g. pypi, golang, maven, npm)
|
|
60
|
+
*/
|
|
61
|
+
package_manager?: string;
|
|
50
62
|
/**
|
|
51
63
|
* Component name (e.g. gpt-4, langchain_openai)
|
|
52
64
|
*/
|
|
53
65
|
package_name?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Package namespace parsed from purl (e.g. com.langchain4j for Maven, github.com/org for Go)
|
|
68
|
+
*/
|
|
69
|
+
package_namespace?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Package originator/author name
|
|
72
|
+
*/
|
|
73
|
+
package_originator_name?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Additional AI-BOM properties serialized as a JSON object (e.g. ai-bom:task, ai-bom:framework)
|
|
76
|
+
*/
|
|
77
|
+
package_properties?: string;
|
|
54
78
|
/**
|
|
55
79
|
* Source file where the component was first detected
|
|
56
80
|
*/
|
|
@@ -60,4 +84,8 @@ export interface AiBomComponentViewResponse {
|
|
|
60
84
|
*/
|
|
61
85
|
package_type?: string;
|
|
62
86
|
package_version?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Package URL (purl) — canonical identifier for the package (e.g. pkg:pypi/langchain@0.3.25)
|
|
89
|
+
*/
|
|
90
|
+
purl?: string;
|
|
63
91
|
}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import type { AiWorkflowAlertConfig } from '../schemas/AiWorkflowAlertConfig';
|
|
2
1
|
import type { AiWorkflowExclusionScope } from '../schemas/AiWorkflowExclusionScope';
|
|
3
2
|
import type { AiWorkflowInfrastructureConfig } from '../schemas/AiWorkflowInfrastructureConfig';
|
|
4
3
|
import type { AiWorkflowTriggerConfig } from '../schemas/AiWorkflowTriggerConfig';
|
|
5
4
|
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
6
5
|
export interface AiWorkflowConfigRequest {
|
|
7
|
-
/**
|
|
8
|
-
* Free-text instructions passed to the LLM enrichment prompt
|
|
9
|
-
*/
|
|
10
|
-
additional_instructions?: string;
|
|
11
|
-
alert_config?: AiWorkflowAlertConfig;
|
|
12
6
|
/**
|
|
13
7
|
* Master on/off switch for the remediation agent
|
|
14
8
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { AiWorkflowAlertConfig } from '../schemas/AiWorkflowAlertConfig';
|
|
2
1
|
import type { AiWorkflowExclusionScope } from '../schemas/AiWorkflowExclusionScope';
|
|
3
2
|
import type { AiWorkflowInfrastructureConfig } from '../schemas/AiWorkflowInfrastructureConfig';
|
|
4
3
|
import type { AiWorkflowTriggerConfig } from '../schemas/AiWorkflowTriggerConfig';
|
|
@@ -8,8 +7,6 @@ export interface AiWorkflowConfigResponse {
|
|
|
8
7
|
* Account identifier
|
|
9
8
|
*/
|
|
10
9
|
account_id?: string;
|
|
11
|
-
additional_instructions?: string;
|
|
12
|
-
alert_config?: AiWorkflowAlertConfig;
|
|
13
10
|
/**
|
|
14
11
|
* Creation timestamp in milliseconds
|
|
15
12
|
* @format int64
|
|
@@ -1,129 +1,27 @@
|
|
|
1
|
-
import type { AffectedArtifactInfo } from '../schemas/AffectedArtifactInfo';
|
|
2
1
|
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
3
|
-
import type { AlertContext } from '../schemas/AlertContext';
|
|
4
2
|
import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
|
|
5
|
-
import type {
|
|
3
|
+
import type { TriageFindingDetail } from '../schemas/TriageFindingDetail';
|
|
4
|
+
import type { VulnerabilityFindingDetail } from '../schemas/VulnerabilityFindingDetail';
|
|
6
5
|
/**
|
|
7
|
-
*
|
|
6
|
+
* Execution detail with type-discriminated nested payload.
|
|
8
7
|
*/
|
|
9
8
|
export interface AiWorkflowExecutionDetailResponse {
|
|
10
|
-
/**
|
|
11
|
-
* VULN / ZERO_DAY only — list of artifacts affected by this execution
|
|
12
|
-
*/
|
|
13
|
-
affected_artifacts?: AffectedArtifactInfo[];
|
|
14
|
-
/**
|
|
15
|
-
* VULN / ZERO_DAY only — total number of affected artifacts
|
|
16
|
-
*/
|
|
17
|
-
affected_targets_count?: number;
|
|
18
|
-
/**
|
|
19
|
-
* Free-form result bag from the agent (FP_TRIAGE: targets_triaged, fps_identified)
|
|
20
|
-
*/
|
|
21
|
-
agent_results?: {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
};
|
|
24
9
|
ai_workflow_type?: AiWorkflowTypeEnum;
|
|
25
|
-
alert_context?: AlertContext;
|
|
26
10
|
/**
|
|
27
|
-
* VULN / ZERO_DAY only — name of the vulnerable component
|
|
28
|
-
*/
|
|
29
|
-
component_name?: string;
|
|
30
|
-
/**
|
|
31
|
-
* VULN / ZERO_DAY only — vulnerable version
|
|
32
|
-
*/
|
|
33
|
-
component_version?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Creation timestamp in milliseconds
|
|
36
11
|
* @format int64
|
|
37
12
|
*/
|
|
38
13
|
created_at?: number;
|
|
39
|
-
/**
|
|
40
|
-
* VULN / ZERO_DAY only — CVE identifier
|
|
41
|
-
*/
|
|
42
|
-
cve_id?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Execution duration in seconds
|
|
45
|
-
*/
|
|
46
14
|
duration?: number;
|
|
47
|
-
/**
|
|
48
|
-
* Stable execution identifier (assigned at creation, never null)
|
|
49
|
-
*/
|
|
50
15
|
execution_id?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Short reason supplied when status transitioned to FAILED
|
|
53
|
-
*/
|
|
54
16
|
failure_reason?: string;
|
|
55
|
-
/**
|
|
56
|
-
* VULN / ZERO_DAY only — recommended fix version
|
|
57
|
-
*/
|
|
58
|
-
fixed_version?: string;
|
|
59
|
-
/**
|
|
60
|
-
* FP_TRIAGE only — number of false positives the agent identified
|
|
61
|
-
*/
|
|
62
|
-
fps_identified_count?: number;
|
|
63
|
-
/**
|
|
64
|
-
* FP_TRIAGE only — org of the originating scan (executes in default/default)
|
|
65
|
-
*/
|
|
66
|
-
originating_org_identifier?: string;
|
|
67
|
-
/**
|
|
68
|
-
* FP_TRIAGE only — project of the originating scan
|
|
69
|
-
*/
|
|
70
|
-
originating_project_identifier?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Harness Pipeline execution ID for deep-linking to PMS; null until PMS assigns
|
|
73
|
-
*/
|
|
74
17
|
pipeline_execution_id?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Sequential per-account run number
|
|
77
|
-
*/
|
|
78
18
|
run_number?: number;
|
|
79
|
-
/**
|
|
80
|
-
* FP_TRIAGE only — scan-completion source scan identifier (deep-link back to the scan)
|
|
81
|
-
*/
|
|
82
|
-
scan_id?: string;
|
|
83
|
-
/**
|
|
84
|
-
* VULN / ZERO_DAY only — vulnerability severity
|
|
85
|
-
*/
|
|
86
|
-
severity?: string;
|
|
87
|
-
/**
|
|
88
|
-
* VULN / ZERO_DAY only — container artifacts skipped (no source repository)
|
|
89
|
-
*/
|
|
90
|
-
skipped_container_artifacts?: number;
|
|
91
|
-
/**
|
|
92
|
-
* VULN / ZERO_DAY only — artifacts skipped due to missing git metadata
|
|
93
|
-
*/
|
|
94
|
-
skipped_no_git_metadata?: number;
|
|
95
19
|
status?: AiWorkflowExecutionStatusEnum;
|
|
96
|
-
|
|
97
|
-
* Per-step lifecycle log inlined to avoid a second round-trip to GET /steps
|
|
98
|
-
*/
|
|
99
|
-
step_executions?: AiWorkflowStepExecution[];
|
|
100
|
-
/**
|
|
101
|
-
* FP_TRIAGE only — scan target (artifact) identifier (UUID)
|
|
102
|
-
*/
|
|
103
|
-
target_id?: string;
|
|
104
|
-
/**
|
|
105
|
-
* FP_TRIAGE only — human-readable artifact name
|
|
106
|
-
*/
|
|
107
|
-
target_name?: string;
|
|
108
|
-
/**
|
|
109
|
-
* VULN / ZERO_DAY only — number of distinct repositories affected
|
|
110
|
-
*/
|
|
111
|
-
total_repositories?: number;
|
|
112
|
-
/**
|
|
113
|
-
* Manual for user-triggered, Zero-Day for batch-triggered, Scan-Completion for scan-completion-triggered (e.g. FP Triage)
|
|
114
|
-
*/
|
|
20
|
+
triage_finding?: TriageFindingDetail;
|
|
115
21
|
trigger_type?: 'Manual' | 'Scan-Completion' | 'Zero-Day';
|
|
116
22
|
/**
|
|
117
|
-
* Epoch ms when the execution was triggered
|
|
118
23
|
* @format int64
|
|
119
24
|
*/
|
|
120
25
|
triggered_at?: number;
|
|
121
|
-
|
|
122
|
-
* FP_TRIAGE only — pipeline execution id of the scan that produced this triage
|
|
123
|
-
*/
|
|
124
|
-
triggering_pipeline_execution_id?: string;
|
|
125
|
-
/**
|
|
126
|
-
* FP_TRIAGE only — pipeline identifier of the scan that produced this triage
|
|
127
|
-
*/
|
|
128
|
-
triggering_pipeline_id?: string;
|
|
26
|
+
vulnerability_finding?: VulnerabilityFindingDetail;
|
|
129
27
|
}
|
|
@@ -2,6 +2,10 @@ import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
|
2
2
|
import type { AiWorkflowResults } from '../schemas/AiWorkflowResults';
|
|
3
3
|
import type { AiWorkflowStepExecution } from '../schemas/AiWorkflowStepExecution';
|
|
4
4
|
export interface AiWorkflowExecutionRequest {
|
|
5
|
+
/**
|
|
6
|
+
* Vulnerability affected version range constraints from the advisory
|
|
7
|
+
*/
|
|
8
|
+
affected_versions?: string[];
|
|
5
9
|
ai_workflow_type: AiWorkflowTypeEnum;
|
|
6
10
|
/**
|
|
7
11
|
* Name of the vulnerable component
|
|
@@ -13,6 +17,10 @@ export interface AiWorkflowExecutionRequest {
|
|
|
13
17
|
* @example "6.5.2"
|
|
14
18
|
*/
|
|
15
19
|
component_version?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Advisory description text
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
16
24
|
/**
|
|
17
25
|
* Workflow duration in seconds
|
|
18
26
|
* @example 330
|
|
@@ -1,87 +1,31 @@
|
|
|
1
1
|
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
2
2
|
import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
|
|
3
|
+
import type { TriageFindingSummary } from '../schemas/TriageFindingSummary';
|
|
4
|
+
import type { VulnerabilityFindingSummary } from '../schemas/VulnerabilityFindingSummary';
|
|
3
5
|
/**
|
|
4
|
-
*
|
|
6
|
+
* Execution summary with type-discriminated nested payload. Branch on ai_workflow_type: VULNERABILITY/ZERO_DAY -> vulnerability_finding; FP_TRIAGE -> triage_finding.
|
|
5
7
|
*/
|
|
6
8
|
export interface AiWorkflowExecutionSummary {
|
|
7
|
-
/**
|
|
8
|
-
* VULN / ZERO_DAY only — number of affected repositories / artifacts
|
|
9
|
-
*/
|
|
10
|
-
affected_targets_count?: number;
|
|
11
9
|
ai_workflow_type?: AiWorkflowTypeEnum;
|
|
12
10
|
/**
|
|
13
|
-
* VULN / ZERO_DAY only — human-readable component name
|
|
14
|
-
*/
|
|
15
|
-
component_name?: string;
|
|
16
|
-
/**
|
|
17
|
-
* VULN / ZERO_DAY only — vulnerable version
|
|
18
|
-
*/
|
|
19
|
-
component_version?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Creation timestamp in milliseconds
|
|
22
11
|
* @format int64
|
|
23
12
|
*/
|
|
24
13
|
created_at?: number;
|
|
25
|
-
/**
|
|
26
|
-
* VULN / ZERO_DAY only — CVE identifier
|
|
27
|
-
*/
|
|
28
|
-
cve_id?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Execution duration in seconds
|
|
31
|
-
*/
|
|
32
14
|
duration?: number;
|
|
33
15
|
/**
|
|
34
|
-
* Stable execution identifier
|
|
16
|
+
* Stable execution identifier
|
|
35
17
|
*/
|
|
36
18
|
execution_id?: string;
|
|
37
|
-
/**
|
|
38
|
-
* VULN / ZERO_DAY only — recommended fix version
|
|
39
|
-
*/
|
|
40
|
-
fixed_version?: string;
|
|
41
|
-
/**
|
|
42
|
-
* FP_TRIAGE only — number of false positives the agent identified (the "FP" column)
|
|
43
|
-
*/
|
|
44
|
-
fps_identified_count?: number;
|
|
45
|
-
/**
|
|
46
|
-
* Originating scan scope org identifier. Used with the fields below to build the "Vuln Link" deep-link.
|
|
47
|
-
*/
|
|
48
|
-
originating_org_identifier?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Originating scan scope project identifier (part of the "Vuln Link" deep-link)
|
|
51
|
-
*/
|
|
52
|
-
originating_project_identifier?: string;
|
|
53
19
|
/**
|
|
54
20
|
* Sequential per-account run number
|
|
55
21
|
*/
|
|
56
22
|
run_number?: number;
|
|
57
|
-
/**
|
|
58
|
-
* VULN / ZERO_DAY only — vulnerability severity
|
|
59
|
-
*/
|
|
60
|
-
severity?: string;
|
|
61
23
|
status?: AiWorkflowExecutionStatusEnum;
|
|
62
|
-
|
|
63
|
-
* FP_TRIAGE only — scan target (artifact) identifier (UUID)
|
|
64
|
-
*/
|
|
65
|
-
target_id?: string;
|
|
66
|
-
/**
|
|
67
|
-
* FP_TRIAGE only — human-readable artifact name shown in the "Target" column
|
|
68
|
-
*/
|
|
69
|
-
target_name?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Manual for user-triggered, Zero-Day for batch-triggered, Scan-Completion for scan-completion-triggered (e.g. FP Triage)
|
|
72
|
-
*/
|
|
24
|
+
triage_finding?: TriageFindingSummary;
|
|
73
25
|
trigger_type?: 'Manual' | 'Scan-Completion' | 'Zero-Day';
|
|
74
26
|
/**
|
|
75
|
-
* Epoch ms when the execution was triggered
|
|
76
27
|
* @format int64
|
|
77
28
|
*/
|
|
78
29
|
triggered_at?: number;
|
|
79
|
-
|
|
80
|
-
* Pipeline execution identifier of the scan that triggered the workflow (part of the "Vuln Link" deep-link)
|
|
81
|
-
*/
|
|
82
|
-
triggering_pipeline_execution_id?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Pipeline identifier of the scan that triggered the workflow (part of the "Vuln Link" deep-link)
|
|
85
|
-
*/
|
|
86
|
-
triggering_pipeline_id?: string;
|
|
30
|
+
vulnerability_finding?: VulnerabilityFindingSummary;
|
|
87
31
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export interface InternalAffectedArtifact {
|
|
2
2
|
artifact_id?: string;
|
|
3
3
|
artifact_name?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Whether this target is a source code repository or a container image
|
|
6
|
+
*/
|
|
7
|
+
artifact_type?: 'CONTAINER' | 'REPOSITORY';
|
|
4
8
|
artifact_version?: string;
|
|
5
9
|
base_branch?: string;
|
|
6
10
|
env_type?: string;
|
|
@@ -3,7 +3,7 @@ export interface InternalIdentificationResult {
|
|
|
3
3
|
affected_artifacts?: InternalAffectedArtifact[];
|
|
4
4
|
outcome?: 'AFFECTED' | 'ZERO_AFFECTED';
|
|
5
5
|
skipped_artifact_not_found?: number;
|
|
6
|
-
skipped_container_artifacts?: number;
|
|
7
6
|
skipped_no_git_metadata?: number;
|
|
7
|
+
skipped_no_metadata?: number;
|
|
8
8
|
truncated?: boolean;
|
|
9
9
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { OwaspFilter } from '../schemas/OwaspFilter';
|
|
2
|
+
import type { SbomListingArtifactSpec } from '../schemas/SbomListingArtifactSpec';
|
|
3
|
+
export interface ListSbomComponentsRequest<T0 extends SbomListingArtifactSpec = SbomListingArtifactSpec> {
|
|
4
|
+
oss_risk_filter?: OwaspFilter[];
|
|
5
|
+
spec: T0;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { SbomListingArtifactSpec } from '../schemas/SbomListingArtifactSpec';
|
|
2
|
+
export interface NonContainerListingSpec extends SbomListingArtifactSpec {
|
|
3
|
+
/**
|
|
4
|
+
* Artifact digest; when present, takes precedence for lookup.
|
|
5
|
+
*/
|
|
6
|
+
digest?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Non-container artifact name.
|
|
9
|
+
*/
|
|
10
|
+
name?: string;
|
|
11
|
+
type: 'NON_CONTAINER';
|
|
12
|
+
/**
|
|
13
|
+
* Non-container artifact version.
|
|
14
|
+
*/
|
|
15
|
+
version?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AiWorkflowStepExecution } from '../schemas/AiWorkflowStepExecution';
|
|
2
|
+
/**
|
|
3
|
+
* FP Triage-specific fields in the execution detail
|
|
4
|
+
*/
|
|
5
|
+
export interface TriageFindingDetail {
|
|
6
|
+
agent_results?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
fps_identified_count?: number;
|
|
10
|
+
originating_org_identifier?: string;
|
|
11
|
+
originating_project_identifier?: string;
|
|
12
|
+
scan_id?: string;
|
|
13
|
+
step_executions?: AiWorkflowStepExecution[];
|
|
14
|
+
target_id?: string;
|
|
15
|
+
target_name?: string;
|
|
16
|
+
triggering_pipeline_execution_id?: string;
|
|
17
|
+
triggering_pipeline_id?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FP Triage-specific fields in the execution summary
|
|
3
|
+
*/
|
|
4
|
+
export interface TriageFindingSummary {
|
|
5
|
+
fps_identified_count?: number;
|
|
6
|
+
originating_org_identifier?: string;
|
|
7
|
+
originating_project_identifier?: string;
|
|
8
|
+
target_id?: string;
|
|
9
|
+
target_name?: string;
|
|
10
|
+
triggering_pipeline_execution_id?: string;
|
|
11
|
+
triggering_pipeline_id?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AlertContext } from '../schemas/AlertContext';
|
|
2
|
+
/**
|
|
3
|
+
* Vulnerability/Zero-Day-specific fields in the execution detail
|
|
4
|
+
*/
|
|
5
|
+
export interface VulnerabilityFindingDetail {
|
|
6
|
+
affected_targets_count?: number;
|
|
7
|
+
affected_versions?: string[];
|
|
8
|
+
alert_context?: AlertContext;
|
|
9
|
+
component_name?: string;
|
|
10
|
+
component_version?: string;
|
|
11
|
+
cve_id?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
ecosystem?: string;
|
|
14
|
+
fixed_version?: string;
|
|
15
|
+
severity?: string;
|
|
16
|
+
skipped_no_git_metadata?: number;
|
|
17
|
+
skipped_no_metadata?: number;
|
|
18
|
+
total_repositories?: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vulnerability/Zero-Day-specific fields in the execution summary
|
|
3
|
+
*/
|
|
4
|
+
export interface VulnerabilityFindingSummary {
|
|
5
|
+
affected_targets_count?: number;
|
|
6
|
+
affected_versions?: string[];
|
|
7
|
+
component_name?: string;
|
|
8
|
+
component_version?: string;
|
|
9
|
+
cve_id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Advisory description text
|
|
12
|
+
*/
|
|
13
|
+
description?: string;
|
|
14
|
+
ecosystem?: string;
|
|
15
|
+
fixed_version?: string;
|
|
16
|
+
severity?: string;
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { AiWorkflowConfigResponse } from '../schemas/AiWorkflowConfigResponse';
|
|
3
|
-
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface GetAiWorkflowConfigQueryPathParams {
|
|
7
|
-
org: string;
|
|
8
|
-
project: string;
|
|
9
|
-
}
|
|
10
|
-
export interface GetAiWorkflowConfigQueryQueryParams {
|
|
11
|
-
workflow_type?: AiWorkflowTypeEnum;
|
|
12
|
-
}
|
|
13
|
-
export interface GetAiWorkflowConfigQueryHeaderParams {
|
|
14
|
-
'Harness-Account': string;
|
|
15
|
-
}
|
|
16
|
-
export type GetAiWorkflowConfigOkResponse = ResponseWithPagination<AiWorkflowConfigResponse>;
|
|
17
|
-
export type GetAiWorkflowConfigErrorResponse = unknown;
|
|
18
|
-
export interface GetAiWorkflowConfigProps extends GetAiWorkflowConfigQueryPathParams, Omit<FetcherOptions<GetAiWorkflowConfigQueryQueryParams, unknown, GetAiWorkflowConfigQueryHeaderParams>, 'url'> {
|
|
19
|
-
queryParams: GetAiWorkflowConfigQueryQueryParams;
|
|
20
|
-
}
|
|
21
|
-
export declare function getAiWorkflowConfig(props: GetAiWorkflowConfigProps): Promise<GetAiWorkflowConfigOkResponse>;
|
|
22
|
-
/**
|
|
23
|
-
* Get AI workflow configuration for the project. Falls back to account-level configuration when no project-scoped config exists.
|
|
24
|
-
*/
|
|
25
|
-
export declare function useGetAiWorkflowConfigQuery(props: GetAiWorkflowConfigProps, options?: Omit<UseQueryOptions<GetAiWorkflowConfigOkResponse, GetAiWorkflowConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAiWorkflowConfigOkResponse, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
-
// Please do not modify this code directly.
|
|
4
|
-
import { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
-
export function getAiWorkflowConfig(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-config`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get AI workflow configuration for the project. Falls back to account-level configuration when no project-scoped config exists.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetAiWorkflowConfigQuery(props, options) {
|
|
13
|
-
return useQuery(['getAIWorkflowConfig', props.org, props.project, props.queryParams], ({ signal }) => getAiWorkflowConfig(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { AiWorkflowExecutionStepsResponse } from '../schemas/AiWorkflowExecutionStepsResponse';
|
|
3
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
-
export interface GetAiWorkflowExecutionStepsQueryPathParams {
|
|
6
|
-
executionId: string;
|
|
7
|
-
}
|
|
8
|
-
export interface GetAiWorkflowExecutionStepsQueryQueryParams {
|
|
9
|
-
ai_workflow_type: string;
|
|
10
|
-
}
|
|
11
|
-
export interface GetAiWorkflowExecutionStepsQueryHeaderParams {
|
|
12
|
-
'Harness-Account': string;
|
|
13
|
-
}
|
|
14
|
-
export type GetAiWorkflowExecutionStepsOkResponse = ResponseWithPagination<AiWorkflowExecutionStepsResponse>;
|
|
15
|
-
export type GetAiWorkflowExecutionStepsErrorResponse = unknown;
|
|
16
|
-
export interface GetAiWorkflowExecutionStepsProps extends GetAiWorkflowExecutionStepsQueryPathParams, Omit<FetcherOptions<GetAiWorkflowExecutionStepsQueryQueryParams, unknown, GetAiWorkflowExecutionStepsQueryHeaderParams>, 'url'> {
|
|
17
|
-
queryParams: GetAiWorkflowExecutionStepsQueryQueryParams;
|
|
18
|
-
}
|
|
19
|
-
export declare function getAiWorkflowExecutionSteps(props: GetAiWorkflowExecutionStepsProps): Promise<GetAiWorkflowExecutionStepsOkResponse>;
|
|
20
|
-
/**
|
|
21
|
-
* Get step details for a specific AI workflow execution.
|
|
22
|
-
*/
|
|
23
|
-
export declare function useGetAiWorkflowExecutionStepsQuery(props: GetAiWorkflowExecutionStepsProps, options?: Omit<UseQueryOptions<GetAiWorkflowExecutionStepsOkResponse, GetAiWorkflowExecutionStepsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAiWorkflowExecutionStepsOkResponse, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
-
// Please do not modify this code directly.
|
|
4
|
-
import { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
-
export function getAiWorkflowExecutionSteps(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/ai-workflow-executions/${props.executionId}/steps`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get step details for a specific AI workflow execution.
|
|
11
|
-
*/
|
|
12
|
-
export function useGetAiWorkflowExecutionStepsQuery(props, options) {
|
|
13
|
-
return useQuery(['getAIWorkflowExecutionSteps', props.executionId, props.queryParams], ({ signal }) => getAiWorkflowExecutionSteps(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { AiWorkflowExecutionSummary } from '../schemas/AiWorkflowExecutionSummary';
|
|
3
|
-
import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
|
|
4
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
-
export interface GetAiWorkflowExecutionsQueryQueryParams {
|
|
7
|
-
ai_workflow_type?: string;
|
|
8
|
-
status?: AiWorkflowExecutionStatusEnum;
|
|
9
|
-
/**
|
|
10
|
-
* @format int64
|
|
11
|
-
*/
|
|
12
|
-
from_timestamp?: number;
|
|
13
|
-
/**
|
|
14
|
-
* @format int64
|
|
15
|
-
*/
|
|
16
|
-
to_timestamp?: number;
|
|
17
|
-
batch_id?: string;
|
|
18
|
-
/**
|
|
19
|
-
* @default 0
|
|
20
|
-
*/
|
|
21
|
-
page?: number;
|
|
22
|
-
/**
|
|
23
|
-
* @default 30
|
|
24
|
-
*/
|
|
25
|
-
limit?: number;
|
|
26
|
-
}
|
|
27
|
-
export interface GetAiWorkflowExecutionsQueryHeaderParams {
|
|
28
|
-
'Harness-Account': string;
|
|
29
|
-
}
|
|
30
|
-
export type GetAiWorkflowExecutionsOkResponse = ResponseWithPagination<AiWorkflowExecutionSummary[]>;
|
|
31
|
-
export type GetAiWorkflowExecutionsErrorResponse = unknown;
|
|
32
|
-
export interface GetAiWorkflowExecutionsProps extends Omit<FetcherOptions<GetAiWorkflowExecutionsQueryQueryParams, unknown, GetAiWorkflowExecutionsQueryHeaderParams>, 'url'> {
|
|
33
|
-
queryParams: GetAiWorkflowExecutionsQueryQueryParams;
|
|
34
|
-
}
|
|
35
|
-
export declare function getAiWorkflowExecutions(props: GetAiWorkflowExecutionsProps): Promise<GetAiWorkflowExecutionsOkResponse>;
|
|
36
|
-
/**
|
|
37
|
-
* Get AI workflow executions with optional filters for status, date range, batch ID, and workflow type
|
|
38
|
-
*/
|
|
39
|
-
export declare function useGetAiWorkflowExecutionsQuery(props: GetAiWorkflowExecutionsProps, options?: Omit<UseQueryOptions<GetAiWorkflowExecutionsOkResponse, GetAiWorkflowExecutionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAiWorkflowExecutionsOkResponse, unknown>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// This code is autogenerated using @harnessio/oats-cli.
|
|
3
|
-
// Please do not modify this code directly.
|
|
4
|
-
import { useQuery } from '@tanstack/react-query';
|
|
5
|
-
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
-
export function getAiWorkflowExecutions(props) {
|
|
7
|
-
return fetcher(Object.assign({ url: `/v1/ai-workflow-executions`, method: 'GET' }, props));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Get AI workflow executions with optional filters for status, date range, batch ID, and workflow type
|
|
11
|
-
*/
|
|
12
|
-
export function useGetAiWorkflowExecutionsQuery(props, options) {
|
|
13
|
-
return useQuery(['getAIWorkflowExecutions', props.queryParams], ({ signal }) => getAiWorkflowExecutions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
-
import type { AiWorkflowConfigResponse } from '../schemas/AiWorkflowConfigResponse';
|
|
3
|
-
import type { AiWorkflowConfigRequest } from '../schemas/AiWorkflowConfigRequest';
|
|
4
|
-
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
5
|
-
import type { ResponseWithPagination } from '../helpers';
|
|
6
|
-
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
7
|
-
export interface SaveAiWorkflowConfigMutationPathParams {
|
|
8
|
-
org: string;
|
|
9
|
-
project: string;
|
|
10
|
-
}
|
|
11
|
-
export interface SaveAiWorkflowConfigMutationQueryParams {
|
|
12
|
-
workflow_type?: AiWorkflowTypeEnum;
|
|
13
|
-
}
|
|
14
|
-
export interface SaveAiWorkflowConfigMutationHeaderParams {
|
|
15
|
-
'Harness-Account': string;
|
|
16
|
-
}
|
|
17
|
-
export type SaveAiWorkflowConfigRequestBody = AiWorkflowConfigRequest;
|
|
18
|
-
export type SaveAiWorkflowConfigOkResponse = ResponseWithPagination<AiWorkflowConfigResponse>;
|
|
19
|
-
export type SaveAiWorkflowConfigErrorResponse = unknown;
|
|
20
|
-
export interface SaveAiWorkflowConfigProps extends SaveAiWorkflowConfigMutationPathParams, Omit<FetcherOptions<SaveAiWorkflowConfigMutationQueryParams, SaveAiWorkflowConfigRequestBody, SaveAiWorkflowConfigMutationHeaderParams>, 'url'> {
|
|
21
|
-
queryParams: SaveAiWorkflowConfigMutationQueryParams;
|
|
22
|
-
body: SaveAiWorkflowConfigRequestBody;
|
|
23
|
-
}
|
|
24
|
-
export declare function saveAiWorkflowConfig(props: SaveAiWorkflowConfigProps): Promise<SaveAiWorkflowConfigOkResponse>;
|
|
25
|
-
/**
|
|
26
|
-
* Create or update AI workflow configuration for the project. The org and project path parameters scope the configuration.
|
|
27
|
-
*/
|
|
28
|
-
export declare function useSaveAiWorkflowConfigMutation(options?: Omit<UseMutationOptions<SaveAiWorkflowConfigOkResponse, SaveAiWorkflowConfigErrorResponse, SaveAiWorkflowConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveAiWorkflowConfigOkResponse, unknown, SaveAiWorkflowConfigProps, unknown>;
|