@harnessio/react-ssca-manager-client 0.84.24 → 0.84.26

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 (96) hide show
  1. package/dist/ssca-manager/src/services/hooks/useGetAccountAiWorkflowConfigQuery.d.ts +20 -0
  2. package/dist/ssca-manager/src/services/hooks/useGetAccountAiWorkflowConfigQuery.js +14 -0
  3. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionDetailQuery.d.ts +19 -0
  4. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionDetailQuery.js +14 -0
  5. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsAccountScopeQuery.d.ts +23 -0
  6. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsAccountScopeQuery.js +14 -0
  7. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsAccountScopeQuery.d.ts +39 -0
  8. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsAccountScopeQuery.js +14 -0
  9. package/dist/ssca-manager/src/services/hooks/useSaveAccountAiWorkflowConfigMutation.d.ts +22 -0
  10. package/dist/ssca-manager/src/services/hooks/useSaveAccountAiWorkflowConfigMutation.js +14 -0
  11. package/dist/ssca-manager/src/services/index.d.ts +42 -5
  12. package/dist/ssca-manager/src/services/index.js +5 -2
  13. package/dist/ssca-manager/src/services/requestBodies/ListSbomComponentsRequestBodyRequestBody.d.ts +2 -0
  14. package/dist/ssca-manager/src/services/schemas/AiBomComponentViewRequestBody.d.ts +13 -0
  15. package/dist/ssca-manager/src/services/schemas/AiBomComponentViewRequestBody.js +4 -0
  16. package/dist/ssca-manager/src/services/schemas/AiBomComponentViewResponse.d.ts +63 -0
  17. package/dist/ssca-manager/src/services/schemas/AiBomComponentViewResponse.js +1 -0
  18. package/dist/ssca-manager/src/services/schemas/AiBomExternalReference.d.ts +13 -0
  19. package/dist/ssca-manager/src/services/schemas/AiBomExternalReference.js +4 -0
  20. package/dist/ssca-manager/src/services/schemas/AiBomModelCard.d.ts +11 -0
  21. package/dist/ssca-manager/src/services/schemas/AiBomModelCard.js +4 -0
  22. package/dist/ssca-manager/src/services/schemas/AiBomModelPipeline.d.ts +36 -0
  23. package/dist/ssca-manager/src/services/schemas/AiBomModelPipeline.js +4 -0
  24. package/dist/ssca-manager/src/services/schemas/AiBomOccurrence.d.ts +21 -0
  25. package/dist/ssca-manager/src/services/schemas/AiBomOccurrence.js +4 -0
  26. package/dist/ssca-manager/src/services/schemas/AiBomSummaryResponse.d.ts +43 -0
  27. package/dist/ssca-manager/src/services/schemas/AiBomSummaryResponse.js +4 -0
  28. package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigRequest.d.ts +6 -6
  29. package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigResponse.d.ts +14 -3
  30. package/dist/ssca-manager/src/services/schemas/AiWorkflowExcludedScope.d.ts +10 -0
  31. package/dist/ssca-manager/src/services/schemas/AiWorkflowExcludedScope.js +4 -0
  32. package/dist/ssca-manager/src/services/schemas/AiWorkflowExclusionScope.d.ts +13 -0
  33. package/dist/ssca-manager/src/services/schemas/AiWorkflowExclusionScope.js +0 -3
  34. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionDetailResponse.d.ts +67 -13
  35. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionSummary.d.ts +40 -9
  36. package/dist/ssca-manager/src/services/schemas/AiWorkflowInfrastructureConfig.d.ts +23 -0
  37. package/dist/ssca-manager/src/services/schemas/AiWorkflowInfrastructureConfig.js +4 -0
  38. package/dist/ssca-manager/src/services/schemas/AppendAiWorkflowStepExecutionResponse.d.ts +8 -0
  39. package/dist/ssca-manager/src/services/schemas/AppendAiWorkflowStepExecutionResponse.js +4 -0
  40. package/dist/ssca-manager/src/services/schemas/ArtifactListingPipelineResponse.d.ts +2 -0
  41. package/dist/ssca-manager/src/services/schemas/BatchAccountResult.d.ts +11 -0
  42. package/dist/ssca-manager/src/services/schemas/BatchAccountResult.js +4 -0
  43. package/dist/ssca-manager/src/services/schemas/BatchTriggerRequest.d.ts +10 -0
  44. package/dist/ssca-manager/src/services/schemas/BatchTriggerRequest.js +4 -0
  45. package/dist/ssca-manager/src/services/schemas/BatchTriggerResponse.d.ts +5 -0
  46. package/dist/ssca-manager/src/services/schemas/BatchTriggerResponse.js +4 -0
  47. package/dist/ssca-manager/src/services/schemas/ExecutionContextV2.d.ts +1 -1
  48. package/dist/ssca-manager/src/services/schemas/ExecutionDetail.d.ts +2 -0
  49. package/dist/ssca-manager/src/services/schemas/ExecutionType.d.ts +1 -1
  50. package/dist/ssca-manager/src/services/schemas/GitlabExecutionContext.d.ts +16 -0
  51. package/dist/ssca-manager/src/services/schemas/GitlabExecutionContext.js +1 -0
  52. package/dist/ssca-manager/src/services/schemas/GitlabExecutionDetail.d.ts +15 -0
  53. package/dist/ssca-manager/src/services/schemas/GitlabExecutionDetail.js +1 -0
  54. package/dist/ssca-manager/src/services/schemas/GitlabRunner.d.ts +4 -0
  55. package/dist/ssca-manager/src/services/schemas/GitlabRunner.js +4 -0
  56. package/dist/ssca-manager/src/services/schemas/GitlabRunnerDetail.d.ts +9 -0
  57. package/dist/ssca-manager/src/services/schemas/GitlabRunnerDetail.js +1 -0
  58. package/dist/ssca-manager/src/services/schemas/InternalAffectedArtifact.d.ts +15 -0
  59. package/dist/ssca-manager/src/services/schemas/InternalAffectedArtifact.js +4 -0
  60. package/dist/ssca-manager/src/services/schemas/InternalAlertContext.d.ts +16 -0
  61. package/dist/ssca-manager/src/services/schemas/InternalAlertContext.js +4 -0
  62. package/dist/ssca-manager/src/services/schemas/InternalIdentificationResult.d.ts +9 -0
  63. package/dist/ssca-manager/src/services/schemas/InternalIdentificationResult.js +1 -0
  64. package/dist/ssca-manager/src/services/schemas/InternalRecommendedVersion.d.ts +24 -0
  65. package/dist/ssca-manager/src/services/schemas/InternalRecommendedVersion.js +4 -0
  66. package/dist/ssca-manager/src/services/schemas/InternalStepExecution.d.ts +5 -0
  67. package/dist/ssca-manager/src/services/schemas/InternalStepExecution.js +4 -0
  68. package/dist/ssca-manager/src/services/schemas/InternalStoreIdentificationResultRequest.d.ts +9 -0
  69. package/dist/ssca-manager/src/services/schemas/InternalStoreIdentificationResultRequest.js +1 -0
  70. package/dist/ssca-manager/src/services/schemas/ListSbomComponentsRequest.d.ts +6 -0
  71. package/dist/ssca-manager/src/services/schemas/ListSbomComponentsRequest.js +1 -0
  72. package/dist/ssca-manager/src/services/schemas/NonContainerListingSpec.d.ts +16 -0
  73. package/dist/ssca-manager/src/services/schemas/NonContainerListingSpec.js +1 -0
  74. package/dist/ssca-manager/src/services/schemas/RemediationBatchDetail.d.ts +20 -0
  75. package/dist/ssca-manager/src/services/schemas/RemediationBatchDetail.js +1 -0
  76. package/dist/ssca-manager/src/services/schemas/RunnerDetail.d.ts +1 -1
  77. package/dist/ssca-manager/src/services/schemas/SaveOrchestrationRequestV2.d.ts +4 -0
  78. package/dist/ssca-manager/src/services/schemas/SbomComponentRequestDto.d.ts +33 -0
  79. package/dist/ssca-manager/src/services/schemas/SbomListingArtifactSpec.d.ts +3 -0
  80. package/dist/ssca-manager/src/services/schemas/SbomListingArtifactSpec.js +4 -0
  81. package/dist/ssca-manager/src/services/schemas/SscaSummary.d.ts +25 -0
  82. package/dist/ssca-manager/src/services/schemas/StoreAiWorkflowExecutionResultRequest.d.ts +14 -0
  83. package/dist/ssca-manager/src/services/schemas/StoreAiWorkflowExecutionResultRequest.js +4 -0
  84. package/dist/ssca-manager/src/services/schemas/StoreAiWorkflowExecutionResultResponse.d.ts +11 -0
  85. package/dist/ssca-manager/src/services/schemas/StoreAiWorkflowExecutionResultResponse.js +4 -0
  86. package/dist/ssca-manager/src/services/schemas/UpdateAiWorkflowExecutionStatusRequest.d.ts +10 -0
  87. package/dist/ssca-manager/src/services/schemas/UpdateAiWorkflowExecutionStatusRequest.js +4 -0
  88. package/dist/ssca-manager/src/services/schemas/UpdateAiWorkflowExecutionStatusResponse.d.ts +4 -0
  89. package/dist/ssca-manager/src/services/schemas/UpdateAiWorkflowExecutionStatusResponse.js +4 -0
  90. package/package.json +1 -1
  91. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsQuery.d.ts +0 -25
  92. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsQuery.js +0 -14
  93. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsQuery.d.ts +0 -43
  94. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsQuery.js +0 -14
  95. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionListResponse.d.ts +0 -24
  96. /package/dist/ssca-manager/src/services/{schemas/AiWorkflowExecutionListResponse.js → requestBodies/ListSbomComponentsRequestBodyRequestBody.js} +0 -0
@@ -0,0 +1,43 @@
1
+ /**
2
+ * AI-BOM summary with per-type component counts
3
+ */
4
+ export interface AiBomSummaryResponse {
5
+ /**
6
+ * Number of agent components
7
+ * @format int64
8
+ */
9
+ agent_count?: number;
10
+ /**
11
+ * Total number of AI-BOM components
12
+ * @format int64
13
+ */
14
+ component_count?: number;
15
+ /**
16
+ * Number of training dataset components
17
+ * @format int64
18
+ */
19
+ dataset_count?: number;
20
+ /**
21
+ * Number of framework components
22
+ * @format int64
23
+ */
24
+ framework_count?: number;
25
+ /**
26
+ * Number of library/package components
27
+ * @format int64
28
+ */
29
+ library_count?: number;
30
+ /**
31
+ * Number of ML model components
32
+ * @format int64
33
+ */
34
+ model_count?: number;
35
+ /**
36
+ * Name of the AI-BOM tool used
37
+ */
38
+ tool_name?: string;
39
+ /**
40
+ * Version of the AI-BOM tool
41
+ */
42
+ tool_version?: string;
43
+ }
@@ -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,22 +1,22 @@
1
- import type { AiWorkflowAlertConfig } from '../schemas/AiWorkflowAlertConfig';
2
1
  import type { AiWorkflowExclusionScope } from '../schemas/AiWorkflowExclusionScope';
2
+ import type { AiWorkflowInfrastructureConfig } from '../schemas/AiWorkflowInfrastructureConfig';
3
3
  import type { AiWorkflowTriggerConfig } from '../schemas/AiWorkflowTriggerConfig';
4
4
  import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
5
5
  export interface AiWorkflowConfigRequest {
6
- /**
7
- * Free-text instructions passed to the LLM enrichment prompt
8
- */
9
- additional_instructions?: string;
10
- alert_config?: AiWorkflowAlertConfig;
11
6
  /**
12
7
  * Master on/off switch for the remediation agent
13
8
  */
14
9
  enabled: boolean;
15
10
  exclusion_scope?: AiWorkflowExclusionScope;
11
+ infrastructure?: AiWorkflowInfrastructureConfig;
16
12
  /**
17
13
  * Risk categories to monitor (e.g. Remote Code Execution, SQL Injection). Stored in v3; enforcement deferred to v4.
18
14
  */
19
15
  risk_categories?: string[];
16
+ /**
17
+ * FP Triage "Scan Types to Triage" filter. Allowed tokens: SCA, SAST, CONTAINER, SECRET, IAC, DAST. Subset of scan types whose findings the agent triages; empty/absent means all supported types. Forwarded to the pre-plugin and applied at the sto-core occurrences-in-scope query.
18
+ */
19
+ scan_types?: string[];
20
20
  trigger_config?: AiWorkflowTriggerConfig;
21
21
  workflow_type?: AiWorkflowTypeEnum;
22
22
  }
@@ -1,5 +1,5 @@
1
- import type { AiWorkflowAlertConfig } from '../schemas/AiWorkflowAlertConfig';
2
1
  import type { AiWorkflowExclusionScope } from '../schemas/AiWorkflowExclusionScope';
2
+ import type { AiWorkflowInfrastructureConfig } from '../schemas/AiWorkflowInfrastructureConfig';
3
3
  import type { AiWorkflowTriggerConfig } from '../schemas/AiWorkflowTriggerConfig';
4
4
  import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
5
5
  export interface AiWorkflowConfigResponse {
@@ -7,8 +7,6 @@ export interface AiWorkflowConfigResponse {
7
7
  * Account identifier
8
8
  */
9
9
  account_id?: string;
10
- additional_instructions?: string;
11
- alert_config?: AiWorkflowAlertConfig;
12
10
  /**
13
11
  * Creation timestamp in milliseconds
14
12
  * @format int64
@@ -19,7 +17,20 @@ export interface AiWorkflowConfigResponse {
19
17
  */
20
18
  enabled?: boolean;
21
19
  exclusion_scope?: AiWorkflowExclusionScope;
20
+ infrastructure?: AiWorkflowInfrastructureConfig;
21
+ /**
22
+ * Organization identifier (null for account-global configs)
23
+ */
24
+ org_identifier?: string;
25
+ /**
26
+ * Project identifier (null for account-global configs)
27
+ */
28
+ project_identifier?: string;
22
29
  risk_categories?: string[];
30
+ /**
31
+ * FP Triage "Scan Types to Triage" filter. Allowed tokens: SCA, SAST, CONTAINER, SECRET, IAC, DAST. Empty/absent means all supported types.
32
+ */
33
+ scan_types?: string[];
23
34
  trigger_config?: AiWorkflowTriggerConfig;
24
35
  /**
25
36
  * Last updated timestamp in milliseconds
@@ -0,0 +1,10 @@
1
+ export interface AiWorkflowExcludedScope {
2
+ /**
3
+ * Organization identifier to exclude
4
+ */
5
+ org_identifier?: string;
6
+ /**
7
+ * Project identifier to exclude (within the given org)
8
+ */
9
+ project_identifier?: 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,4 +1,13 @@
1
+ import type { AiWorkflowExcludedScope } from '../schemas/AiWorkflowExcludedScope';
1
2
  export interface AiWorkflowExclusionScope {
3
+ /**
4
+ * Artifact name glob patterns to exclude from identification (e.g. "org/frontend-app", "!*-SNAPSHOT")
5
+ */
6
+ exclude_artifact_patterns?: string[];
7
+ /**
8
+ * Repository name glob patterns to exclude from identification (e.g. "*-test", "dev-*")
9
+ */
10
+ exclude_repo_patterns?: string[];
2
11
  /**
3
12
  * Organization identifiers to exclude from identification scans
4
13
  */
@@ -7,4 +16,8 @@ export interface AiWorkflowExclusionScope {
7
16
  * Project identifiers to exclude from identification scans
8
17
  */
9
18
  excluded_project_ids?: string[];
19
+ /**
20
+ * FP Triage account-level exclusion: (org, project) pairs whose scan-completion events are skipped before any agent run. Evaluated against the originating scan scope.
21
+ */
22
+ excluded_scopes?: AiWorkflowExcludedScope[];
10
23
  }
@@ -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 {};
@@ -2,23 +2,33 @@ import type { AffectedArtifactInfo } from '../schemas/AffectedArtifactInfo';
2
2
  import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
3
3
  import type { AlertContext } from '../schemas/AlertContext';
4
4
  import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
5
+ import type { AiWorkflowStepExecution } from '../schemas/AiWorkflowStepExecution';
6
+ /**
7
+ * Workflow-type-aware detail. VULN / ZERO_DAY populate component / cve / alert_context / affected_artifacts; FP_TRIAGE populates target / scan / originating_* / triggering_pipeline_* / agent_results / step_executions. Clients should branch on ai_workflow_type.
8
+ */
5
9
  export interface AiWorkflowExecutionDetailResponse {
6
10
  /**
7
- * List of artifacts affected by this execution
11
+ * VULN / ZERO_DAY only — list of artifacts affected by this execution
8
12
  */
9
13
  affected_artifacts?: AffectedArtifactInfo[];
10
14
  /**
11
- * Total number of affected artifacts
15
+ * VULN / ZERO_DAY only — total number of affected artifacts
12
16
  */
13
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
+ };
14
24
  ai_workflow_type?: AiWorkflowTypeEnum;
15
25
  alert_context?: AlertContext;
16
26
  /**
17
- * Name of the vulnerable component
27
+ * VULN / ZERO_DAY only — name of the vulnerable component
18
28
  */
19
29
  component_name?: string;
20
30
  /**
21
- * Vulnerable version
31
+ * VULN / ZERO_DAY only — vulnerable version
22
32
  */
23
33
  component_version?: string;
24
34
  /**
@@ -27,7 +37,7 @@ export interface AiWorkflowExecutionDetailResponse {
27
37
  */
28
38
  created_at?: number;
29
39
  /**
30
- * CVE identifier
40
+ * VULN / ZERO_DAY only — CVE identifier
31
41
  */
32
42
  cve_id?: string;
33
43
  /**
@@ -35,41 +45,85 @@ export interface AiWorkflowExecutionDetailResponse {
35
45
  */
36
46
  duration?: number;
37
47
  /**
38
- * Unique execution identifier
48
+ * Stable execution identifier (assigned at creation, never null)
39
49
  */
40
50
  execution_id?: string;
41
51
  /**
42
- * Recommended fix version
52
+ * Short reason supplied when status transitioned to FAILED
53
+ */
54
+ failure_reason?: string;
55
+ /**
56
+ * VULN / ZERO_DAY only — recommended fix version
43
57
  */
44
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
+ pipeline_execution_id?: string;
45
75
  /**
46
76
  * Sequential per-account run number
47
77
  */
48
78
  run_number?: number;
49
79
  /**
50
- * Vulnerability severity
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
51
85
  */
52
86
  severity?: string;
53
87
  /**
54
- * Container artifacts skipped (no source repository)
88
+ * VULN / ZERO_DAY only — container artifacts skipped (no source repository)
55
89
  */
56
90
  skipped_container_artifacts?: number;
57
91
  /**
58
- * Artifacts skipped due to missing git metadata
92
+ * VULN / ZERO_DAY only — artifacts skipped due to missing git metadata
59
93
  */
60
94
  skipped_no_git_metadata?: number;
61
95
  status?: AiWorkflowExecutionStatusEnum;
62
96
  /**
63
- * Number of distinct repositories affected
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
64
110
  */
65
111
  total_repositories?: number;
66
112
  /**
67
- * Manual for user-triggered, Zero-Day for batch-triggered
113
+ * Manual for user-triggered, Zero-Day for batch-triggered, Scan-Completion for scan-completion-triggered (e.g. FP Triage)
68
114
  */
69
- trigger_type?: 'Manual' | 'Zero-Day';
115
+ trigger_type?: 'Manual' | 'Scan-Completion' | 'Zero-Day';
70
116
  /**
71
117
  * Epoch ms when the execution was triggered
72
118
  * @format int64
73
119
  */
74
120
  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;
75
129
  }
@@ -1,17 +1,20 @@
1
1
  import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
2
2
  import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
3
+ /**
4
+ * Workflow-type-aware row shape. VULN / ZERO_DAY populate component / cve fields; FP_TRIAGE populates target_id / target_name / fps_identified_count. Clients should branch on ai_workflow_type.
5
+ */
3
6
  export interface AiWorkflowExecutionSummary {
4
7
  /**
5
- * Number of affected repositories/artifacts
8
+ * VULN / ZERO_DAY only — number of affected repositories / artifacts
6
9
  */
7
10
  affected_targets_count?: number;
8
11
  ai_workflow_type?: AiWorkflowTypeEnum;
9
12
  /**
10
- * Human-readable component name
13
+ * VULN / ZERO_DAY only — human-readable component name
11
14
  */
12
15
  component_name?: string;
13
16
  /**
14
- * Vulnerable version
17
+ * VULN / ZERO_DAY only — vulnerable version
15
18
  */
16
19
  component_version?: string;
17
20
  /**
@@ -20,7 +23,7 @@ export interface AiWorkflowExecutionSummary {
20
23
  */
21
24
  created_at?: number;
22
25
  /**
23
- * CVE identifier
26
+ * VULN / ZERO_DAY only — CVE identifier
24
27
  */
25
28
  cve_id?: string;
26
29
  /**
@@ -28,29 +31,57 @@ export interface AiWorkflowExecutionSummary {
28
31
  */
29
32
  duration?: number;
30
33
  /**
31
- * Unique execution identifier (for navigation to detail)
34
+ * Stable execution identifier (assigned at creation; navigation key to detail)
32
35
  */
33
36
  execution_id?: string;
34
37
  /**
35
- * Recommended fix version
38
+ * VULN / ZERO_DAY only — recommended fix version
36
39
  */
37
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;
38
53
  /**
39
54
  * Sequential per-account run number
40
55
  */
41
56
  run_number?: number;
42
57
  /**
43
- * Vulnerability severity
58
+ * VULN / ZERO_DAY only — vulnerability severity
44
59
  */
45
60
  severity?: string;
46
61
  status?: AiWorkflowExecutionStatusEnum;
47
62
  /**
48
- * Manual for user-triggered, Zero-Day for batch-triggered
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)
49
72
  */
50
- trigger_type?: 'Manual' | 'Zero-Day';
73
+ trigger_type?: 'Manual' | 'Scan-Completion' | 'Zero-Day';
51
74
  /**
52
75
  * Epoch ms when the execution was triggered
53
76
  * @format int64
54
77
  */
55
78
  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;
56
87
  }
@@ -0,0 +1,23 @@
1
+ export interface AiWorkflowInfrastructureConfig {
2
+ /**
3
+ * CPU architecture (Harness Cloud only)
4
+ */
5
+ arch?: 'Amd64';
6
+ /**
7
+ * Kubernetes connector reference (required when type is KUBERNETES_DIRECT)
8
+ */
9
+ connector_ref?: string;
10
+ /**
11
+ * Kubernetes namespace (required when type is KUBERNETES_DIRECT)
12
+ */
13
+ namespace?: string;
14
+ /**
15
+ * Operating system
16
+ * @default "Linux"
17
+ */
18
+ os?: string;
19
+ /**
20
+ * Infrastructure type for pipeline execution
21
+ */
22
+ type?: 'HARNESS_CLOUD' | 'KUBERNETES_DIRECT';
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,8 @@
1
+ export interface AppendAiWorkflowStepExecutionResponse {
2
+ appended?: boolean;
3
+ executionId?: string;
4
+ /**
5
+ * Total step entries after this append
6
+ */
7
+ stepCount?: number;
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 {};
@@ -1,9 +1,11 @@
1
+ import type { AiBomModelPipeline } from '../schemas/AiBomModelPipeline';
1
2
  import type { ArtifactModelPipeline } from '../schemas/ArtifactModelPipeline';
2
3
  import type { EnforcementModelPipeline } from '../schemas/EnforcementModelPipeline';
3
4
  import type { OrchestrationModelPipeline } from '../schemas/OrchestrationModelPipeline';
4
5
  import type { SlsaModelPipeline } from '../schemas/SlsaModelPipeline';
5
6
  import type { IntegrityVerificationModelPipeline } from '../schemas/IntegrityVerificationModelPipeline';
6
7
  export interface ArtifactListingPipelineResponse {
8
+ aibom?: AiBomModelPipeline;
7
9
  artifact?: ArtifactModelPipeline;
8
10
  enforcement?: EnforcementModelPipeline;
9
11
  orchestration?: OrchestrationModelPipeline;
@@ -0,0 +1,11 @@
1
+ export interface BatchAccountResult {
2
+ accountId?: string;
3
+ executionId?: string;
4
+ failureMessage?: string;
5
+ outcome?: 'FAILED' | 'SKIPPED_BELOW_THRESHOLD' | 'SKIPPED_DEDUP' | 'SKIPPED_DISABLED' | 'SKIPPED_RECENT_EXECUTION' | 'TRIGGERED';
6
+ pipelineExecutionId?: string;
7
+ /**
8
+ * @format int64
9
+ */
10
+ processedAt?: number;
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,10 @@
1
+ export interface BatchTriggerRequest {
2
+ component_purl: string;
3
+ component_version: string;
4
+ cve_id?: string;
5
+ severity?: string;
6
+ /**
7
+ * @default "EQUALS"
8
+ */
9
+ version_operator?: 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 {};
@@ -0,0 +1,5 @@
1
+ export interface BatchTriggerResponse {
2
+ batchId?: string;
3
+ enumeratedAccountCount?: number;
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 {};
@@ -2,5 +2,5 @@
2
2
  * Details of the Execution Context
3
3
  */
4
4
  export interface ExecutionContextV2 {
5
- type: 'github' | 'harness';
5
+ type: 'github' | 'gitlab' | 'harness';
6
6
  }
@@ -1,8 +1,10 @@
1
1
  import type { GithubExecutionDetail } from '../schemas/GithubExecutionDetail';
2
+ import type { GitlabExecutionDetail } from '../schemas/GitlabExecutionDetail';
2
3
  import type { HarnessExecutionDetail } from '../schemas/HarnessExecutionDetail';
3
4
  import type { ExecutionType } from '../schemas/ExecutionType';
4
5
  export interface ExecutionDetail {
5
6
  github?: GithubExecutionDetail;
7
+ gitlab?: GitlabExecutionDetail;
6
8
  harness?: HarnessExecutionDetail;
7
9
  type: ExecutionType;
8
10
  }
@@ -1 +1 @@
1
- export type ExecutionType = 'github' | 'harness';
1
+ export type ExecutionType = 'github' | 'gitlab' | 'harness';
@@ -0,0 +1,16 @@
1
+ import type { RunnerDetail } from '../schemas/RunnerDetail';
2
+ import type { ExecutionContextV2 } from '../schemas/ExecutionContextV2';
3
+ export interface GitlabExecutionContext<T0 extends RunnerDetail = RunnerDetail> extends ExecutionContextV2 {
4
+ commit_sha?: string;
5
+ job_id?: string;
6
+ job_name?: string;
7
+ pipeline_id?: string;
8
+ pipeline_url?: string;
9
+ project_id?: string;
10
+ project_path?: string;
11
+ runner_detail?: T0;
12
+ /**
13
+ * This specifies the type of context
14
+ */
15
+ type: 'gitlab';
16
+ }
@@ -0,0 +1,15 @@
1
+ import type { GitlabRunner } from '../schemas/GitlabRunner';
2
+ /**
3
+ * GitLab CI Pipeline Execution Details
4
+ */
5
+ export interface GitlabExecutionDetail {
6
+ commit_sha?: string;
7
+ job_id?: string;
8
+ job_name?: string;
9
+ pipeline_id?: string;
10
+ pipeline_url?: string;
11
+ project_id?: string;
12
+ project_path?: string;
13
+ runner_detail?: GitlabRunner;
14
+ type: 'gitlab';
15
+ }
@@ -0,0 +1,4 @@
1
+ export interface GitlabRunner {
2
+ description?: string;
3
+ id?: 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,9 @@
1
+ import type { RunnerDetail } from '../schemas/RunnerDetail';
2
+ export interface GitlabRunnerDetail extends RunnerDetail {
3
+ description?: string;
4
+ id?: string;
5
+ /**
6
+ * This specifies the type of Runner
7
+ */
8
+ type?: 'gitlab';
9
+ }
@@ -0,0 +1,15 @@
1
+ export interface InternalAffectedArtifact {
2
+ artifact_id?: string;
3
+ artifact_name?: string;
4
+ artifact_version?: string;
5
+ base_branch?: string;
6
+ env_type?: string;
7
+ fix_version?: string;
8
+ non_prod_env_names?: string[];
9
+ package_name?: string;
10
+ package_version?: string;
11
+ prod_env_names?: string[];
12
+ purl?: string;
13
+ repo_name?: string;
14
+ repo_url?: string;
15
+ }
@@ -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 InternalAlertContext {
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,9 @@
1
+ import type { InternalAffectedArtifact } from '../schemas/InternalAffectedArtifact';
2
+ export interface InternalIdentificationResult {
3
+ affected_artifacts?: InternalAffectedArtifact[];
4
+ outcome?: 'AFFECTED' | 'ZERO_AFFECTED';
5
+ skipped_artifact_not_found?: number;
6
+ skipped_container_artifacts?: number;
7
+ skipped_no_git_metadata?: number;
8
+ truncated?: boolean;
9
+ }