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

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 (82) hide show
  1. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowConfigQuery.d.ts +25 -0
  2. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowConfigQuery.js +14 -0
  3. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsQuery.d.ts +0 -2
  4. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsQuery.js +2 -2
  5. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsQuery.d.ts +3 -7
  6. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsQuery.js +2 -2
  7. package/dist/ssca-manager/src/services/hooks/useSaveAiWorkflowConfigMutation.d.ts +28 -0
  8. package/dist/ssca-manager/src/services/hooks/useSaveAiWorkflowConfigMutation.js +14 -0
  9. package/dist/ssca-manager/src/services/index.d.ts +33 -2
  10. package/dist/ssca-manager/src/services/index.js +2 -0
  11. package/dist/ssca-manager/src/services/schemas/AiBomComponentViewRequestBody.d.ts +13 -0
  12. package/dist/ssca-manager/src/services/schemas/AiBomComponentViewRequestBody.js +4 -0
  13. package/dist/ssca-manager/src/services/schemas/AiBomComponentViewResponse.d.ts +63 -0
  14. package/dist/ssca-manager/src/services/schemas/AiBomExternalReference.d.ts +13 -0
  15. package/dist/ssca-manager/src/services/schemas/AiBomExternalReference.js +4 -0
  16. package/dist/ssca-manager/src/services/schemas/AiBomModelCard.d.ts +11 -0
  17. package/dist/ssca-manager/src/services/schemas/AiBomModelCard.js +4 -0
  18. package/dist/ssca-manager/src/services/schemas/AiBomModelPipeline.d.ts +36 -0
  19. package/dist/ssca-manager/src/services/schemas/AiBomModelPipeline.js +4 -0
  20. package/dist/ssca-manager/src/services/schemas/AiBomOccurrence.d.ts +21 -0
  21. package/dist/ssca-manager/src/services/schemas/AiBomOccurrence.js +4 -0
  22. package/dist/ssca-manager/src/services/schemas/AiBomSummaryResponse.d.ts +43 -0
  23. package/dist/ssca-manager/src/services/schemas/AiBomSummaryResponse.js +4 -0
  24. package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigRequest.d.ts +6 -0
  25. package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigResponse.d.ts +14 -0
  26. package/dist/ssca-manager/src/services/schemas/AiWorkflowExcludedScope.d.ts +10 -0
  27. package/dist/ssca-manager/src/services/schemas/AiWorkflowExcludedScope.js +4 -0
  28. package/dist/ssca-manager/src/services/schemas/AiWorkflowExclusionScope.d.ts +13 -0
  29. package/dist/ssca-manager/src/services/schemas/AiWorkflowExclusionScope.js +0 -3
  30. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionDetailResponse.d.ts +67 -13
  31. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionSummary.d.ts +40 -9
  32. package/dist/ssca-manager/src/services/schemas/AiWorkflowInfrastructureConfig.d.ts +23 -0
  33. package/dist/ssca-manager/src/services/schemas/AiWorkflowInfrastructureConfig.js +4 -0
  34. package/dist/ssca-manager/src/services/schemas/AppendAiWorkflowStepExecutionResponse.d.ts +8 -0
  35. package/dist/ssca-manager/src/services/schemas/AppendAiWorkflowStepExecutionResponse.js +4 -0
  36. package/dist/ssca-manager/src/services/schemas/ArtifactListingPipelineResponse.d.ts +2 -0
  37. package/dist/ssca-manager/src/services/schemas/BatchAccountResult.d.ts +11 -0
  38. package/dist/ssca-manager/src/services/schemas/BatchAccountResult.js +4 -0
  39. package/dist/ssca-manager/src/services/schemas/BatchTriggerRequest.d.ts +10 -0
  40. package/dist/ssca-manager/src/services/schemas/BatchTriggerRequest.js +4 -0
  41. package/dist/ssca-manager/src/services/schemas/BatchTriggerResponse.d.ts +5 -0
  42. package/dist/ssca-manager/src/services/schemas/BatchTriggerResponse.js +4 -0
  43. package/dist/ssca-manager/src/services/schemas/ExecutionContextV2.d.ts +1 -1
  44. package/dist/ssca-manager/src/services/schemas/ExecutionDetail.d.ts +2 -0
  45. package/dist/ssca-manager/src/services/schemas/ExecutionType.d.ts +1 -1
  46. package/dist/ssca-manager/src/services/schemas/GitlabExecutionContext.d.ts +16 -0
  47. package/dist/ssca-manager/src/services/schemas/GitlabExecutionContext.js +1 -0
  48. package/dist/ssca-manager/src/services/schemas/GitlabExecutionDetail.d.ts +15 -0
  49. package/dist/ssca-manager/src/services/schemas/GitlabExecutionDetail.js +1 -0
  50. package/dist/ssca-manager/src/services/schemas/GitlabRunner.d.ts +4 -0
  51. package/dist/ssca-manager/src/services/schemas/GitlabRunner.js +4 -0
  52. package/dist/ssca-manager/src/services/schemas/GitlabRunnerDetail.d.ts +9 -0
  53. package/dist/ssca-manager/src/services/schemas/GitlabRunnerDetail.js +1 -0
  54. package/dist/ssca-manager/src/services/schemas/InternalAffectedArtifact.d.ts +15 -0
  55. package/dist/ssca-manager/src/services/schemas/InternalAffectedArtifact.js +4 -0
  56. package/dist/ssca-manager/src/services/schemas/InternalAlertContext.d.ts +16 -0
  57. package/dist/ssca-manager/src/services/schemas/InternalAlertContext.js +4 -0
  58. package/dist/ssca-manager/src/services/schemas/InternalIdentificationResult.d.ts +9 -0
  59. package/dist/ssca-manager/src/services/schemas/InternalIdentificationResult.js +1 -0
  60. package/dist/ssca-manager/src/services/schemas/InternalRecommendedVersion.d.ts +24 -0
  61. package/dist/ssca-manager/src/services/schemas/InternalRecommendedVersion.js +4 -0
  62. package/dist/ssca-manager/src/services/schemas/InternalStepExecution.d.ts +5 -0
  63. package/dist/ssca-manager/src/services/schemas/InternalStepExecution.js +4 -0
  64. package/dist/ssca-manager/src/services/schemas/InternalStoreIdentificationResultRequest.d.ts +9 -0
  65. package/dist/ssca-manager/src/services/schemas/InternalStoreIdentificationResultRequest.js +1 -0
  66. package/dist/ssca-manager/src/services/schemas/RemediationBatchDetail.d.ts +20 -0
  67. package/dist/ssca-manager/src/services/schemas/RemediationBatchDetail.js +1 -0
  68. package/dist/ssca-manager/src/services/schemas/RunnerDetail.d.ts +1 -1
  69. package/dist/ssca-manager/src/services/schemas/SaveOrchestrationRequestV2.d.ts +4 -0
  70. package/dist/ssca-manager/src/services/schemas/SbomComponentRequestDto.d.ts +33 -0
  71. package/dist/ssca-manager/src/services/schemas/SscaSummary.d.ts +25 -0
  72. package/dist/ssca-manager/src/services/schemas/StoreAiWorkflowExecutionResultRequest.d.ts +14 -0
  73. package/dist/ssca-manager/src/services/schemas/StoreAiWorkflowExecutionResultRequest.js +4 -0
  74. package/dist/ssca-manager/src/services/schemas/StoreAiWorkflowExecutionResultResponse.d.ts +11 -0
  75. package/dist/ssca-manager/src/services/schemas/StoreAiWorkflowExecutionResultResponse.js +4 -0
  76. package/dist/ssca-manager/src/services/schemas/UpdateAiWorkflowExecutionStatusRequest.d.ts +10 -0
  77. package/dist/ssca-manager/src/services/schemas/UpdateAiWorkflowExecutionStatusRequest.js +4 -0
  78. package/dist/ssca-manager/src/services/schemas/UpdateAiWorkflowExecutionStatusResponse.d.ts +4 -0
  79. package/dist/ssca-manager/src/services/schemas/UpdateAiWorkflowExecutionStatusResponse.js +4 -0
  80. package/package.json +1 -1
  81. package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionListResponse.d.ts +0 -24
  82. /package/dist/ssca-manager/src/services/schemas/{AiWorkflowExecutionListResponse.js → AiBomComponentViewResponse.js} +0 -0
@@ -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_DEDUP' | 'SKIPPED_DISABLED' | 'SKIPPED_MISSING_APPROVER_GROUPS' | '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
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Unreleased internal response schema. JSON field names use snake_case.
3
+ */
4
+ export interface InternalRecommendedVersion {
5
+ available?: boolean;
6
+ filter_trace?: string;
7
+ purl?: string;
8
+ upgrade_candidates?: Array<{
9
+ version?: string;
10
+ vulnerabilities?: {
11
+ critical?: number;
12
+ high?: number;
13
+ low?: number;
14
+ medium?: number;
15
+ };
16
+ }>;
17
+ version?: string;
18
+ vulnerabilities?: {
19
+ critical?: number;
20
+ high?: number;
21
+ low?: number;
22
+ medium?: number;
23
+ };
24
+ }
@@ -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 InternalStepExecution {
2
+ banner?: string;
3
+ details?: string;
4
+ summary?: 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,9 @@
1
+ import type { InternalAffectedArtifact } from '../schemas/InternalAffectedArtifact';
2
+ export interface InternalStoreIdentificationResultRequest {
3
+ affectedArtifacts?: InternalAffectedArtifact[];
4
+ fixedVersion?: string;
5
+ outcome: string;
6
+ skippedContainerArtifacts?: number;
7
+ skippedNoGitMetadata?: number;
8
+ totalRepositories?: number;
9
+ }
@@ -0,0 +1,20 @@
1
+ import type { BatchAccountResult } from '../schemas/BatchAccountResult';
2
+ export interface RemediationBatchDetail {
3
+ batchAccountResults?: BatchAccountResult[];
4
+ componentPurl?: string;
5
+ componentVersion?: string;
6
+ cveId?: string;
7
+ dedupKey?: string;
8
+ enumeratedAccountCount?: number;
9
+ enumeratedAccountIds?: string[];
10
+ id?: string;
11
+ severity?: string;
12
+ skippedAccountCount?: number;
13
+ status?: 'COMPLETED' | 'IN_PROGRESS' | 'STALLED';
14
+ /**
15
+ * @format int64
16
+ */
17
+ triggeredAt?: number;
18
+ triggeredByPrincipal?: string;
19
+ versionOperator?: string;
20
+ }
@@ -1,3 +1,3 @@
1
1
  export interface RunnerDetail {
2
- type?: 'github' | 'harness';
2
+ type?: 'github' | 'gitlab' | 'harness';
3
3
  }
@@ -26,5 +26,9 @@ export interface SaveOrchestrationRequestV2 {
26
26
  * Required for "complete" mode. Must match the total component count received across all chunks.
27
27
  */
28
28
  expected_component_count?: number;
29
+ /**
30
+ * Set to true when this orchestration contains an AI-BOM SBOM. Controls whether latestAiBomSummary is populated on the artifact.
31
+ */
32
+ is_ai_bom?: boolean;
29
33
  sbom_metadata?: SbomMetadataV2;
30
34
  }
@@ -1,9 +1,42 @@
1
+ import type { AiBomExternalReference } from '../schemas/AiBomExternalReference';
2
+ import type { AiBomModelCard } from '../schemas/AiBomModelCard';
3
+ import type { AiBomOccurrence } from '../schemas/AiBomOccurrence';
1
4
  import type { DependencyType } from '../schemas/DependencyType';
2
5
  import type { LayerType } from '../schemas/LayerType';
3
6
  /**
4
7
  * Normalized SBOM Component Details
5
8
  */
6
9
  export interface SbomComponentRequestDto {
10
+ /**
11
+ * AI component classification derived from bom-ref prefix (e.g. model, pkg, agent)
12
+ */
13
+ ai_component_type?: string;
14
+ /**
15
+ * Detection confidence score (0.0 to 1.0)
16
+ * @format float
17
+ */
18
+ ai_detection_confidence?: number;
19
+ /**
20
+ * Detection technique used (e.g. source-code-analysis)
21
+ */
22
+ ai_detection_technique?: string;
23
+ /**
24
+ * External references such as model card URLs
25
+ */
26
+ ai_external_references?: AiBomExternalReference[];
27
+ ai_model_card?: AiBomModelCard;
28
+ /**
29
+ * Canonical model name (e.g. gpt-4o, claude-3-5-sonnet-20240620)
30
+ */
31
+ ai_model_name?: string;
32
+ /**
33
+ * All source code locations where this component was detected
34
+ */
35
+ ai_occurrences?: AiBomOccurrence[];
36
+ /**
37
+ * AI/ML provider name (e.g. OpenAI, Anthropic, HuggingFace)
38
+ */
39
+ ai_provider?: string;
7
40
  dependency_type?: DependencyType;
8
41
  file_path?: string;
9
42
  filter_tags?: LayerType[];