@harnessio/react-ssca-manager-client 0.84.2 → 0.84.3
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/useGetAiWorkflowExecutionStepsQuery.d.ts +25 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsQuery.d.ts +24 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsQuery.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +19 -0
- package/dist/ssca-manager/src/services/index.js +2 -0
- package/dist/ssca-manager/src/services/requestBodies/AiWorkflowExecutionRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/AiWorkflowExecutionRequestBodyRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionListResponse.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionListResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionRequest.d.ts +70 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionRequest.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionStepsResponse.d.ts +13 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionStepsResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionSummary.d.ts +44 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionSummary.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowResults.d.ts +22 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowResults.js +4 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowStepExecution.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowStepExecution.js +4 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowTypeEnum.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowTypeEnum.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ChunkErrorCode.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ChunkErrorCode.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ChunkErrorResponse.d.ts +12 -0
- package/dist/ssca-manager/src/services/schemas/ChunkErrorResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ChunkMetadata.d.ts +15 -0
- package/dist/ssca-manager/src/services/schemas/ChunkMetadata.js +4 -0
- package/dist/ssca-manager/src/services/schemas/CompleteProcessingRequest.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/CompleteProcessingRequest.js +1 -0
- package/dist/ssca-manager/src/services/schemas/CompleteProcessingResult.d.ts +30 -0
- package/dist/ssca-manager/src/services/schemas/CompleteProcessingResult.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ProcessChunkRequest.d.ts +16 -0
- package/dist/ssca-manager/src/services/schemas/ProcessChunkRequest.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ProcessChunkResult.d.ts +31 -0
- package/dist/ssca-manager/src/services/schemas/ProcessChunkResult.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
executionId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetAiWorkflowExecutionStepsQueryQueryParams {
|
|
11
|
+
ai_workflow_type: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetAiWorkflowExecutionStepsQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetAiWorkflowExecutionStepsOkResponse = ResponseWithPagination<AiWorkflowExecutionStepsResponse>;
|
|
17
|
+
export type GetAiWorkflowExecutionStepsErrorResponse = unknown;
|
|
18
|
+
export interface GetAiWorkflowExecutionStepsProps extends GetAiWorkflowExecutionStepsQueryPathParams, Omit<FetcherOptions<GetAiWorkflowExecutionStepsQueryQueryParams, unknown, GetAiWorkflowExecutionStepsQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetAiWorkflowExecutionStepsQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getAiWorkflowExecutionSteps(props: GetAiWorkflowExecutionStepsProps): Promise<GetAiWorkflowExecutionStepsOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Get step details for a specific AI workflow execution
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetAiWorkflowExecutionStepsQuery(props: GetAiWorkflowExecutionStepsProps, options?: Omit<UseQueryOptions<GetAiWorkflowExecutionStepsOkResponse, GetAiWorkflowExecutionStepsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAiWorkflowExecutionStepsOkResponse, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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/orgs/${props.org}/projects/${props.project}/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.org, props.project, props.executionId, props.queryParams], ({ signal }) => getAiWorkflowExecutionSteps(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AiWorkflowExecutionListResponse } from '../schemas/AiWorkflowExecutionListResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetAiWorkflowExecutionsQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
}
|
|
9
|
+
export interface GetAiWorkflowExecutionsQueryQueryParams {
|
|
10
|
+
ai_workflow_type: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetAiWorkflowExecutionsQueryHeaderParams {
|
|
13
|
+
'Harness-Account': string;
|
|
14
|
+
}
|
|
15
|
+
export type GetAiWorkflowExecutionsOkResponse = ResponseWithPagination<AiWorkflowExecutionListResponse>;
|
|
16
|
+
export type GetAiWorkflowExecutionsErrorResponse = unknown;
|
|
17
|
+
export interface GetAiWorkflowExecutionsProps extends GetAiWorkflowExecutionsQueryPathParams, Omit<FetcherOptions<GetAiWorkflowExecutionsQueryQueryParams, unknown, GetAiWorkflowExecutionsQueryHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: GetAiWorkflowExecutionsQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export declare function getAiWorkflowExecutions(props: GetAiWorkflowExecutionsProps): Promise<GetAiWorkflowExecutionsOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Get AI workflow executions filtered by workflow type
|
|
23
|
+
*/
|
|
24
|
+
export declare function useGetAiWorkflowExecutionsQuery(props: GetAiWorkflowExecutionsProps, options?: Omit<UseQueryOptions<GetAiWorkflowExecutionsOkResponse, GetAiWorkflowExecutionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAiWorkflowExecutionsOkResponse, unknown>;
|
|
@@ -0,0 +1,14 @@
|
|
|
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/orgs/${props.org}/projects/${props.project}/ai-workflow-executions`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get AI workflow executions filtered by workflow type
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAiWorkflowExecutionsQuery(props, options) {
|
|
13
|
+
return useQuery(['getAIWorkflowExecutions', props.org, props.project, props.queryParams], ({ signal }) => getAiWorkflowExecutions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -37,6 +37,10 @@ export type { FetchPluginsForWorkflowErrorResponse, FetchPluginsForWorkflowOkRes
|
|
|
37
37
|
export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hooks/useFetchPluginsForWorkflowQuery';
|
|
38
38
|
export type { FetchReposInIntegrationErrorResponse, FetchReposInIntegrationOkResponse, FetchReposInIntegrationProps, FetchReposInIntegrationQueryPathParams, FetchReposInIntegrationQueryQueryParams, } from './hooks/useFetchReposInIntegrationQuery';
|
|
39
39
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
40
|
+
export type { GetAiWorkflowExecutionStepsErrorResponse, GetAiWorkflowExecutionStepsOkResponse, GetAiWorkflowExecutionStepsProps, GetAiWorkflowExecutionStepsQueryPathParams, GetAiWorkflowExecutionStepsQueryQueryParams, } from './hooks/useGetAiWorkflowExecutionStepsQuery';
|
|
41
|
+
export { getAiWorkflowExecutionSteps, useGetAiWorkflowExecutionStepsQuery, } from './hooks/useGetAiWorkflowExecutionStepsQuery';
|
|
42
|
+
export type { GetAiWorkflowExecutionsErrorResponse, GetAiWorkflowExecutionsOkResponse, GetAiWorkflowExecutionsProps, GetAiWorkflowExecutionsQueryPathParams, GetAiWorkflowExecutionsQueryQueryParams, } from './hooks/useGetAiWorkflowExecutionsQuery';
|
|
43
|
+
export { getAiWorkflowExecutions, useGetAiWorkflowExecutionsQuery, } from './hooks/useGetAiWorkflowExecutionsQuery';
|
|
40
44
|
export type { GetAllRepositoriesSummaryErrorResponse, GetAllRepositoriesSummaryOkResponse, GetAllRepositoriesSummaryProps, GetAllRepositoriesSummaryQueryPathParams, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
41
45
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
42
46
|
export type { GetArtifactChainOfCustodyV2ErrorResponse, GetArtifactChainOfCustodyV2OkResponse, GetArtifactChainOfCustodyV2Props, GetArtifactChainOfCustodyV2QueryPathParams, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
@@ -133,6 +137,7 @@ export type { SscaLicenseUsageErrorResponse, SscaLicenseUsageOkResponse, SscaLic
|
|
|
133
137
|
export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
|
|
134
138
|
export type { UpdateRemediationTrackerErrorResponse, UpdateRemediationTrackerMutationPathParams, UpdateRemediationTrackerOkResponse, UpdateRemediationTrackerProps, UpdateRemediationTrackerRequestBody, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
135
139
|
export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
140
|
+
export type { AiWorkflowExecutionRequestBodyRequestBody } from './requestBodies/AiWorkflowExecutionRequestBodyRequestBody';
|
|
136
141
|
export type { ArtifactComponentsRequestBodyRequestBody } from './requestBodies/ArtifactComponentsRequestBodyRequestBody';
|
|
137
142
|
export type { ArtifactListingPipelineRequestBodyRequestBody } from './requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
|
|
138
143
|
export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
@@ -259,6 +264,13 @@ export type { TokenIssueResponseBodyResponse } from './responses/TokenIssueRespo
|
|
|
259
264
|
export type { UpdateIntegrationResponseBodyResponse } from './responses/UpdateIntegrationResponseBodyResponse';
|
|
260
265
|
export type { VersionResponseBodyResponse } from './responses/VersionResponseBodyResponse';
|
|
261
266
|
export type { ActivityDetails } from './schemas/ActivityDetails';
|
|
267
|
+
export type { AiWorkflowExecutionListResponse } from './schemas/AiWorkflowExecutionListResponse';
|
|
268
|
+
export type { AiWorkflowExecutionRequest } from './schemas/AiWorkflowExecutionRequest';
|
|
269
|
+
export type { AiWorkflowExecutionStepsResponse } from './schemas/AiWorkflowExecutionStepsResponse';
|
|
270
|
+
export type { AiWorkflowExecutionSummary } from './schemas/AiWorkflowExecutionSummary';
|
|
271
|
+
export type { AiWorkflowResults } from './schemas/AiWorkflowResults';
|
|
272
|
+
export type { AiWorkflowStepExecution } from './schemas/AiWorkflowStepExecution';
|
|
273
|
+
export type { AiWorkflowTypeEnum } from './schemas/AiWorkflowTypeEnum';
|
|
262
274
|
export type { Artifact } from './schemas/Artifact';
|
|
263
275
|
export type { ArtifactAndDeploymentsResponseBody } from './schemas/ArtifactAndDeploymentsResponseBody';
|
|
264
276
|
export type { ArtifactChainOfCustody } from './schemas/ArtifactChainOfCustody';
|
|
@@ -297,6 +309,9 @@ export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
|
|
|
297
309
|
export type { BaselineV2RequestBody } from './schemas/BaselineV2RequestBody';
|
|
298
310
|
export type { CategoryScorecard } from './schemas/CategoryScorecard';
|
|
299
311
|
export type { CategoryScorecardCheck } from './schemas/CategoryScorecardCheck';
|
|
312
|
+
export type { ChunkErrorCode } from './schemas/ChunkErrorCode';
|
|
313
|
+
export type { ChunkErrorResponse } from './schemas/ChunkErrorResponse';
|
|
314
|
+
export type { ChunkMetadata } from './schemas/ChunkMetadata';
|
|
300
315
|
export type { CicdHarnessPipelineYamlResponseBody } from './schemas/CicdHarnessPipelineYamlResponseBody';
|
|
301
316
|
export type { CicdOverviewResponseBody } from './schemas/CicdOverviewResponseBody';
|
|
302
317
|
export type { CicdRulesEvaluation } from './schemas/CicdRulesEvaluation';
|
|
@@ -308,6 +323,8 @@ export type { CodeRepoRulesEvaluation } from './schemas/CodeRepoRulesEvaluation'
|
|
|
308
323
|
export type { CodeRepositoryListingRequest } from './schemas/CodeRepositoryListingRequest';
|
|
309
324
|
export type { CodeRepositoryListingResponse } from './schemas/CodeRepositoryListingResponse';
|
|
310
325
|
export type { CodeRepositoryOverview } from './schemas/CodeRepositoryOverview';
|
|
326
|
+
export type { CompleteProcessingRequest } from './schemas/CompleteProcessingRequest';
|
|
327
|
+
export type { CompleteProcessingResult } from './schemas/CompleteProcessingResult';
|
|
311
328
|
export type { ComplianceArtifactType } from './schemas/ComplianceArtifactType';
|
|
312
329
|
export type { ComplianceArtifactWithExecution } from './schemas/ComplianceArtifactWithExecution';
|
|
313
330
|
export type { ComplianceCheck } from './schemas/ComplianceCheck';
|
|
@@ -441,6 +458,8 @@ export type { PluginDto } from './schemas/PluginDto';
|
|
|
441
458
|
export type { PluginResponseBody } from './schemas/PluginResponseBody';
|
|
442
459
|
export type { PolicyViolation } from './schemas/PolicyViolation';
|
|
443
460
|
export type { PolicyViolationRequestBody } from './schemas/PolicyViolationRequestBody';
|
|
461
|
+
export type { ProcessChunkRequest } from './schemas/ProcessChunkRequest';
|
|
462
|
+
export type { ProcessChunkResult } from './schemas/ProcessChunkResult';
|
|
444
463
|
export type { ProvenanceActivity } from './schemas/ProvenanceActivity';
|
|
445
464
|
export type { ProvenanceRequestBody } from './schemas/ProvenanceRequestBody';
|
|
446
465
|
export type { ProvenanceRequestBodyV2 } from './schemas/ProvenanceRequestBodyV2';
|
|
@@ -17,6 +17,8 @@ export { fetchComplianceResultsByComplianceId, useFetchComplianceResultsByCompli
|
|
|
17
17
|
export { fetchComplianceResultsGroupById, useFetchComplianceResultsGroupByIdMutation, } from './hooks/useFetchComplianceResultsGroupByIdMutation';
|
|
18
18
|
export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hooks/useFetchPluginsForWorkflowQuery';
|
|
19
19
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
20
|
+
export { getAiWorkflowExecutionSteps, useGetAiWorkflowExecutionStepsQuery, } from './hooks/useGetAiWorkflowExecutionStepsQuery';
|
|
21
|
+
export { getAiWorkflowExecutions, useGetAiWorkflowExecutionsQuery, } from './hooks/useGetAiWorkflowExecutionsQuery';
|
|
20
22
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
21
23
|
export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
22
24
|
export { getArtifactComponentOverviewByPurl, useGetArtifactComponentOverviewByPurlQuery, } from './hooks/useGetArtifactComponentOverviewByPurlQuery';
|
package/dist/ssca-manager/src/services/requestBodies/AiWorkflowExecutionRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
2
|
+
import type { AiWorkflowResults } from '../schemas/AiWorkflowResults';
|
|
3
|
+
import type { AiWorkflowStepExecution } from '../schemas/AiWorkflowStepExecution';
|
|
4
|
+
export interface AiWorkflowExecutionRequest {
|
|
5
|
+
ai_workflow_type: AiWorkflowTypeEnum;
|
|
6
|
+
/**
|
|
7
|
+
* Name of the vulnerable component
|
|
8
|
+
* @example "qs"
|
|
9
|
+
*/
|
|
10
|
+
component_name?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Current/vulnerable version of the component
|
|
13
|
+
* @example "6.5.2"
|
|
14
|
+
*/
|
|
15
|
+
component_version?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Workflow duration in seconds
|
|
18
|
+
* @example 330
|
|
19
|
+
*/
|
|
20
|
+
duration: number;
|
|
21
|
+
/**
|
|
22
|
+
* Unique execution identifier for this workflow run
|
|
23
|
+
* @example "exec-abc123-def456"
|
|
24
|
+
*/
|
|
25
|
+
execution_id: string;
|
|
26
|
+
/**
|
|
27
|
+
* Target fixed version
|
|
28
|
+
* @example "6.5.3"
|
|
29
|
+
*/
|
|
30
|
+
fixed_version?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Orchestration or pipeline execution ID
|
|
33
|
+
* @example "pipeline-exec-abc123"
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
results: AiWorkflowResults;
|
|
37
|
+
/**
|
|
38
|
+
* Output from each workflow step
|
|
39
|
+
*/
|
|
40
|
+
step_executions: AiWorkflowStepExecution[];
|
|
41
|
+
/**
|
|
42
|
+
* Final workflow summary (formatted text)
|
|
43
|
+
*/
|
|
44
|
+
summary?: string;
|
|
45
|
+
targets: {
|
|
46
|
+
/**
|
|
47
|
+
* Harness organization ID
|
|
48
|
+
*/
|
|
49
|
+
org_id: string;
|
|
50
|
+
/**
|
|
51
|
+
* Harness project ID
|
|
52
|
+
*/
|
|
53
|
+
project_id: string;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Workflow start time
|
|
57
|
+
* @format date-time
|
|
58
|
+
*/
|
|
59
|
+
time: string;
|
|
60
|
+
/**
|
|
61
|
+
* Type of workflow execution
|
|
62
|
+
* @example "workflow"
|
|
63
|
+
*/
|
|
64
|
+
type: string;
|
|
65
|
+
/**
|
|
66
|
+
* CVE ID or component information
|
|
67
|
+
* @example "CVE-2022-24999"
|
|
68
|
+
*/
|
|
69
|
+
vulnerability_info?: string;
|
|
70
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
2
|
+
import type { AiWorkflowStepExecution } from '../schemas/AiWorkflowStepExecution';
|
|
3
|
+
export interface AiWorkflowExecutionStepsResponse {
|
|
4
|
+
ai_workflow_type?: AiWorkflowTypeEnum;
|
|
5
|
+
/**
|
|
6
|
+
* Pipeline execution identifier
|
|
7
|
+
*/
|
|
8
|
+
execution_id?: string;
|
|
9
|
+
/**
|
|
10
|
+
* List of workflow step executions
|
|
11
|
+
*/
|
|
12
|
+
steps?: AiWorkflowStepExecution[];
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
2
|
+
import type { AiWorkflowResults } from '../schemas/AiWorkflowResults';
|
|
3
|
+
export interface AiWorkflowExecutionSummary {
|
|
4
|
+
ai_workflow_type?: AiWorkflowTypeEnum;
|
|
5
|
+
/**
|
|
6
|
+
* Name of the vulnerable component
|
|
7
|
+
*/
|
|
8
|
+
component_name?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Current/vulnerable version of the component
|
|
11
|
+
*/
|
|
12
|
+
component_version?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Creation timestamp in milliseconds
|
|
15
|
+
* @format int64
|
|
16
|
+
*/
|
|
17
|
+
created_at?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Workflow duration in seconds
|
|
20
|
+
*/
|
|
21
|
+
duration?: number;
|
|
22
|
+
/**
|
|
23
|
+
* Pipeline execution identifier
|
|
24
|
+
*/
|
|
25
|
+
execution_id?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Target fixed version
|
|
28
|
+
*/
|
|
29
|
+
fixed_version?: string;
|
|
30
|
+
results?: AiWorkflowResults;
|
|
31
|
+
/**
|
|
32
|
+
* Workflow start time
|
|
33
|
+
* @format date-time
|
|
34
|
+
*/
|
|
35
|
+
start_time?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Final workflow summary
|
|
38
|
+
*/
|
|
39
|
+
summary?: string;
|
|
40
|
+
/**
|
|
41
|
+
* CVE ID or component information
|
|
42
|
+
*/
|
|
43
|
+
vulnerability_info?: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface AiWorkflowResults {
|
|
2
|
+
/**
|
|
3
|
+
* Number of failed remediations
|
|
4
|
+
* @example 0
|
|
5
|
+
*/
|
|
6
|
+
failure_count: number;
|
|
7
|
+
/**
|
|
8
|
+
* Number of skipped repositories
|
|
9
|
+
* @example 1
|
|
10
|
+
*/
|
|
11
|
+
skipped_count: number;
|
|
12
|
+
/**
|
|
13
|
+
* Number of successful remediations
|
|
14
|
+
* @example 4
|
|
15
|
+
*/
|
|
16
|
+
success_count: number;
|
|
17
|
+
/**
|
|
18
|
+
* Total number of repositories processed
|
|
19
|
+
* @example 5
|
|
20
|
+
*/
|
|
21
|
+
total_repositories: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface AiWorkflowStepExecution {
|
|
2
|
+
/**
|
|
3
|
+
* Step banner text
|
|
4
|
+
* @example "🔍 STEP 1 Analyzing CVE-2022-24999"
|
|
5
|
+
*/
|
|
6
|
+
banner: string;
|
|
7
|
+
/**
|
|
8
|
+
* Complete formatted output including boxes and tables
|
|
9
|
+
* @example "✅ CVE Analysis Complete\n\n ┌─ SEVERITY & SCORING ────┐\n │ CVSS: 7.5 HIGH │\n │ EPSS: 0.0% │\n └─────────────────────────┘\n"
|
|
10
|
+
*/
|
|
11
|
+
details: string;
|
|
12
|
+
/**
|
|
13
|
+
* Key information and progress messages
|
|
14
|
+
* @example "Component: qs\nCVE ID: CVE-2022-24999\nQuerying LLM for vulnerability analysis...\n"
|
|
15
|
+
*/
|
|
16
|
+
summary: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ChunkErrorCode } from '../schemas/ChunkErrorCode';
|
|
2
|
+
/**
|
|
3
|
+
* Error response for chunked processing operations
|
|
4
|
+
*/
|
|
5
|
+
export interface ChunkErrorResponse {
|
|
6
|
+
code: ChunkErrorCode;
|
|
7
|
+
/**
|
|
8
|
+
* Human-readable error message
|
|
9
|
+
* @example "Session is in COMPLETING state, cannot accept more chunks"
|
|
10
|
+
*/
|
|
11
|
+
message: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Metadata about the current chunk being processed
|
|
3
|
+
*/
|
|
4
|
+
export interface ChunkMetadata {
|
|
5
|
+
/**
|
|
6
|
+
* Unique identifier for this chunk (for idempotency)
|
|
7
|
+
* @example "1706284800000-0"
|
|
8
|
+
*/
|
|
9
|
+
chunk_id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* 0-based index of the chunk
|
|
12
|
+
* @example 0
|
|
13
|
+
*/
|
|
14
|
+
chunk_index?: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Attestation } from '../schemas/Attestation';
|
|
2
|
+
import type { ExecutionDetail } from '../schemas/ExecutionDetail';
|
|
3
|
+
/**
|
|
4
|
+
* Request body for completing the chunked SBOM processing session
|
|
5
|
+
*/
|
|
6
|
+
export interface CompleteProcessingRequest {
|
|
7
|
+
attestation?: Attestation;
|
|
8
|
+
execution_context?: ExecutionDetail;
|
|
9
|
+
/**
|
|
10
|
+
* Expected total number of components (for validation)
|
|
11
|
+
* @example 1500
|
|
12
|
+
*/
|
|
13
|
+
expected_component_count?: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response body after successfully completing the processing session
|
|
3
|
+
*/
|
|
4
|
+
export interface CompleteProcessingResult {
|
|
5
|
+
/**
|
|
6
|
+
* The created artifact identifier
|
|
7
|
+
* @example "art_xyz789"
|
|
8
|
+
*/
|
|
9
|
+
artifact_id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The orchestration session identifier
|
|
12
|
+
* @example "orch_abc123"
|
|
13
|
+
*/
|
|
14
|
+
orchestration_id?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The source identifier
|
|
17
|
+
* @example "src_def456"
|
|
18
|
+
*/
|
|
19
|
+
source_id?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Final status of the processing session
|
|
22
|
+
* @example "COMPLETED"
|
|
23
|
+
*/
|
|
24
|
+
status?: 'COMPLETED';
|
|
25
|
+
/**
|
|
26
|
+
* Total number of components processed
|
|
27
|
+
* @example 1500
|
|
28
|
+
*/
|
|
29
|
+
total_components?: number;
|
|
30
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Artifact } from '../schemas/Artifact';
|
|
2
|
+
import type { ChunkMetadata } from '../schemas/ChunkMetadata';
|
|
3
|
+
import type { SbomComponentRequestDto } from '../schemas/SbomComponentRequestDto';
|
|
4
|
+
import type { SbomMetadataV2 } from '../schemas/SbomMetadataV2';
|
|
5
|
+
/**
|
|
6
|
+
* Request body for uploading a chunk of SBOM components
|
|
7
|
+
*/
|
|
8
|
+
export interface ProcessChunkRequest {
|
|
9
|
+
artifact: Artifact;
|
|
10
|
+
chunk_metadata?: ChunkMetadata;
|
|
11
|
+
/**
|
|
12
|
+
* Array of SBOM components in this chunk
|
|
13
|
+
*/
|
|
14
|
+
components: SbomComponentRequestDto[];
|
|
15
|
+
sbom_metadata: SbomMetadataV2;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response body after successfully processing a chunk
|
|
3
|
+
*/
|
|
4
|
+
export interface ProcessChunkResult {
|
|
5
|
+
/**
|
|
6
|
+
* The ID of the processed chunk
|
|
7
|
+
* @example "1706284800000-0"
|
|
8
|
+
*/
|
|
9
|
+
chunk_id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The orchestration session identifier
|
|
12
|
+
* @example "orch_abc123"
|
|
13
|
+
*/
|
|
14
|
+
orchestration_id?: string;
|
|
15
|
+
/**
|
|
16
|
+
* When the session will expire if not completed
|
|
17
|
+
* @format date-time
|
|
18
|
+
* @example "2024-01-26T12:00:00Z"
|
|
19
|
+
*/
|
|
20
|
+
session_expires_at?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Current status of the processing session
|
|
23
|
+
* @example "RECEIVING"
|
|
24
|
+
*/
|
|
25
|
+
status?: 'RECEIVING';
|
|
26
|
+
/**
|
|
27
|
+
* Total number of components received so far in this session
|
|
28
|
+
* @example 500
|
|
29
|
+
*/
|
|
30
|
+
total_components_received?: number;
|
|
31
|
+
}
|