@harnessio/react-ssca-manager-client 0.83.13 → 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/useCreateRemediationPullRequestMutation.d.ts +24 -0
- package/dist/ssca-manager/src/services/hooks/useCreateRemediationPullRequestMutation.js +14 -0
- 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/hooks/useGetConnectorConfigQuery.d.ts +22 -0
- package/dist/ssca-manager/src/services/hooks/useGetConnectorConfigQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useSaveConnectorConfigMutation.d.ts +18 -0
- package/dist/ssca-manager/src/services/hooks/useSaveConnectorConfigMutation.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +32 -0
- package/dist/ssca-manager/src/services/index.js +5 -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/requestBodies/RemediationPrRequestBodyRequestBody.d.ts +2 -0
- package/dist/ssca-manager/src/services/requestBodies/RemediationPrRequestBodyRequestBody.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/ComponentRemediationResponse.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ConnectorConfigId.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ConnectorConfigId.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ConnectorConfigRequestBody.d.ts +20 -0
- package/dist/ssca-manager/src/services/schemas/ConnectorConfigRequestBody.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ConnectorConfigResponse.d.ts +16 -0
- package/dist/ssca-manager/src/services/schemas/ConnectorConfigResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/DependencyChange.d.ts +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/dist/ssca-manager/src/services/schemas/RemediationCodePreview.d.ts +34 -0
- package/dist/ssca-manager/src/services/schemas/RemediationCodePreview.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationPrRequest.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/RemediationPrRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/RemediationPrResponse.d.ts +22 -0
- package/dist/ssca-manager/src/services/schemas/RemediationPrResponse.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RemediationPrResponse } from '../schemas/RemediationPrResponse';
|
|
3
|
+
import type { RemediationPrRequestBodyRequestBody } from '../requestBodies/RemediationPrRequestBodyRequestBody';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface CreateRemediationPullRequestMutationPathParams {
|
|
7
|
+
org: string;
|
|
8
|
+
project: string;
|
|
9
|
+
artifact: string;
|
|
10
|
+
}
|
|
11
|
+
export interface CreateRemediationPullRequestMutationHeaderParams {
|
|
12
|
+
'Harness-Account': string;
|
|
13
|
+
}
|
|
14
|
+
export type CreateRemediationPullRequestRequestBody = RemediationPrRequestBodyRequestBody;
|
|
15
|
+
export type CreateRemediationPullRequestOkResponse = ResponseWithPagination<RemediationPrResponse>;
|
|
16
|
+
export type CreateRemediationPullRequestErrorResponse = unknown;
|
|
17
|
+
export interface CreateRemediationPullRequestProps extends CreateRemediationPullRequestMutationPathParams, Omit<FetcherOptions<unknown, CreateRemediationPullRequestRequestBody, CreateRemediationPullRequestMutationHeaderParams>, 'url'> {
|
|
18
|
+
body: CreateRemediationPullRequestRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export declare function createRemediationPullRequest(props: CreateRemediationPullRequestProps): Promise<CreateRemediationPullRequestOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Create a pull request to remediate a component by upgrading it to the target version
|
|
23
|
+
*/
|
|
24
|
+
export declare function useCreateRemediationPullRequestMutation(options?: Omit<UseMutationOptions<CreateRemediationPullRequestOkResponse, CreateRemediationPullRequestErrorResponse, CreateRemediationPullRequestProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateRemediationPullRequestOkResponse, unknown, CreateRemediationPullRequestProps, 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 { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function createRemediationPullRequest(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/artifacts/${props.artifact}/component/remediation/create-pull-request`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create a pull request to remediate a component by upgrading it to the target version
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateRemediationPullRequestMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => createRemediationPullRequest(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ConnectorConfigResponse } from '../schemas/ConnectorConfigResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetConnectorConfigQueryQueryParams {
|
|
6
|
+
org?: string;
|
|
7
|
+
project?: string;
|
|
8
|
+
config_id?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetConnectorConfigQueryHeaderParams {
|
|
11
|
+
'Harness-Account': string;
|
|
12
|
+
}
|
|
13
|
+
export type GetConnectorConfigOkResponse = ResponseWithPagination<ConnectorConfigResponse[]>;
|
|
14
|
+
export type GetConnectorConfigErrorResponse = unknown;
|
|
15
|
+
export interface GetConnectorConfigProps extends Omit<FetcherOptions<GetConnectorConfigQueryQueryParams, unknown, GetConnectorConfigQueryHeaderParams>, 'url'> {
|
|
16
|
+
queryParams: GetConnectorConfigQueryQueryParams;
|
|
17
|
+
}
|
|
18
|
+
export declare function getConnectorConfig(props: GetConnectorConfigProps): Promise<GetConnectorConfigOkResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get connector configuration. If config_id is provided, returns that specific config; otherwise returns all connector configs.
|
|
21
|
+
*/
|
|
22
|
+
export declare function useGetConnectorConfigQuery(props: GetConnectorConfigProps, options?: Omit<UseQueryOptions<GetConnectorConfigOkResponse, GetConnectorConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetConnectorConfigOkResponse, 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 getConnectorConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/ssca-config/connectors`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get connector configuration. If config_id is provided, returns that specific config; otherwise returns all connector configs.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetConnectorConfigQuery(props, options) {
|
|
13
|
+
return useQuery(['getConnectorConfig', props.queryParams], ({ signal }) => getConnectorConfig(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ConnectorConfigRequestBody } from '../schemas/ConnectorConfigRequestBody';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface SaveConnectorConfigMutationHeaderParams {
|
|
6
|
+
'Harness-Account': string;
|
|
7
|
+
}
|
|
8
|
+
export type SaveConnectorConfigRequestBody = ConnectorConfigRequestBody;
|
|
9
|
+
export type SaveConnectorConfigOkResponse = ResponseWithPagination<unknown>;
|
|
10
|
+
export type SaveConnectorConfigErrorResponse = unknown;
|
|
11
|
+
export interface SaveConnectorConfigProps extends Omit<FetcherOptions<unknown, SaveConnectorConfigRequestBody, SaveConnectorConfigMutationHeaderParams>, 'url'> {
|
|
12
|
+
body: SaveConnectorConfigRequestBody;
|
|
13
|
+
}
|
|
14
|
+
export declare function saveConnectorConfig(props: SaveConnectorConfigProps): Promise<SaveConnectorConfigOkResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Configure connectors for different categories (keyless signing, auto PR remediation). Full replacement - send all categories you want to keep.
|
|
17
|
+
*/
|
|
18
|
+
export declare function useSaveConnectorConfigMutation(options?: Omit<UseMutationOptions<SaveConnectorConfigOkResponse, SaveConnectorConfigErrorResponse, SaveConnectorConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveConnectorConfigOkResponse, unknown, SaveConnectorConfigProps, 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 { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../fetcher/index.js';
|
|
6
|
+
export function saveConnectorConfig(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/ssca-config/connectors`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Configure connectors for different categories (keyless signing, auto PR remediation). Full replacement - send all categories you want to keep.
|
|
11
|
+
*/
|
|
12
|
+
export function useSaveConnectorConfigMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => saveConnectorConfig(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -15,6 +15,8 @@ export type { CreateComponentTicketErrorResponse, CreateComponentTicketMutationP
|
|
|
15
15
|
export { createComponentTicket, useCreateComponentTicketMutation, } from './hooks/useCreateComponentTicketMutation';
|
|
16
16
|
export type { CreateIntegrationErrorResponse, CreateIntegrationMutationPathParams, CreateIntegrationOkResponse, CreateIntegrationProps, CreateIntegrationRequestBody, } from './hooks/useCreateIntegrationMutation';
|
|
17
17
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
18
|
+
export type { CreateRemediationPullRequestErrorResponse, CreateRemediationPullRequestMutationPathParams, CreateRemediationPullRequestOkResponse, CreateRemediationPullRequestProps, CreateRemediationPullRequestRequestBody, } from './hooks/useCreateRemediationPullRequestMutation';
|
|
19
|
+
export { createRemediationPullRequest, useCreateRemediationPullRequestMutation, } from './hooks/useCreateRemediationPullRequestMutation';
|
|
18
20
|
export type { CreateRemediationTrackerErrorResponse, CreateRemediationTrackerMutationPathParams, CreateRemediationTrackerOkResponse, CreateRemediationTrackerProps, CreateRemediationTrackerRequestBody, } from './hooks/useCreateRemediationTrackerMutation';
|
|
19
21
|
export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
|
|
20
22
|
export type { CreateTicketErrorResponse, CreateTicketMutationPathParams, CreateTicketOkResponse, CreateTicketProps, CreateTicketRequestBody, } from './hooks/useCreateTicketMutation';
|
|
@@ -35,6 +37,10 @@ export type { FetchPluginsForWorkflowErrorResponse, FetchPluginsForWorkflowOkRes
|
|
|
35
37
|
export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hooks/useFetchPluginsForWorkflowQuery';
|
|
36
38
|
export type { FetchReposInIntegrationErrorResponse, FetchReposInIntegrationOkResponse, FetchReposInIntegrationProps, FetchReposInIntegrationQueryPathParams, FetchReposInIntegrationQueryQueryParams, } from './hooks/useFetchReposInIntegrationQuery';
|
|
37
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';
|
|
38
44
|
export type { GetAllRepositoriesSummaryErrorResponse, GetAllRepositoriesSummaryOkResponse, GetAllRepositoriesSummaryProps, GetAllRepositoriesSummaryQueryPathParams, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
39
45
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
40
46
|
export type { GetArtifactChainOfCustodyV2ErrorResponse, GetArtifactChainOfCustodyV2OkResponse, GetArtifactChainOfCustodyV2Props, GetArtifactChainOfCustodyV2QueryPathParams, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
@@ -83,6 +89,8 @@ export type { GetComponentTicketErrorResponse, GetComponentTicketOkResponse, Get
|
|
|
83
89
|
export { getComponentTicket, useGetComponentTicketQuery } from './hooks/useGetComponentTicketQuery';
|
|
84
90
|
export type { GetComponentsErrorResponse, GetComponentsOkResponse, GetComponentsProps, GetComponentsQueryPathParams, GetComponentsQueryQueryParams, } from './hooks/useGetComponentsQuery';
|
|
85
91
|
export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
|
|
92
|
+
export type { GetConnectorConfigErrorResponse, GetConnectorConfigOkResponse, GetConnectorConfigProps, GetConnectorConfigQueryQueryParams, } from './hooks/useGetConnectorConfigQuery';
|
|
93
|
+
export { getConnectorConfig, useGetConnectorConfigQuery } from './hooks/useGetConnectorConfigQuery';
|
|
86
94
|
export type { GetDeploymentsListForArtifactInRemediationErrorResponse, GetDeploymentsListForArtifactInRemediationOkResponse, GetDeploymentsListForArtifactInRemediationProps, GetDeploymentsListForArtifactInRemediationQueryPathParams, GetDeploymentsListForArtifactInRemediationQueryQueryParams, GetDeploymentsListForArtifactInRemediationRequestBody, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
87
95
|
export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
88
96
|
export type { GetEnvironmentListForRemediationErrorResponse, GetEnvironmentListForRemediationOkResponse, GetEnvironmentListForRemediationProps, GetEnvironmentListForRemediationQueryPathParams, GetEnvironmentListForRemediationQueryQueryParams, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
@@ -121,12 +129,15 @@ export type { PostComplianceResultStatsEvaluationBreakdownArtifactTypeErrorRespo
|
|
|
121
129
|
export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
|
|
122
130
|
export type { PostComplianceResultStatsOverviewErrorResponse, PostComplianceResultStatsOverviewMutationPathParams, PostComplianceResultStatsOverviewMutationQueryParams, PostComplianceResultStatsOverviewOkResponse, PostComplianceResultStatsOverviewProps, PostComplianceResultStatsOverviewRequestBody, } from './hooks/usePostComplianceResultStatsOverviewMutation';
|
|
123
131
|
export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
|
|
132
|
+
export type { SaveConnectorConfigErrorResponse, SaveConnectorConfigOkResponse, SaveConnectorConfigProps, SaveConnectorConfigRequestBody, } from './hooks/useSaveConnectorConfigMutation';
|
|
133
|
+
export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
|
|
124
134
|
export type { SetBaselineForArtifactV2ErrorResponse, SetBaselineForArtifactV2MutationPathParams, SetBaselineForArtifactV2OkResponse, SetBaselineForArtifactV2Props, SetBaselineForArtifactV2RequestBody, } from './hooks/useSetBaselineForArtifactV2Mutation';
|
|
125
135
|
export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
|
|
126
136
|
export type { SscaLicenseUsageErrorResponse, SscaLicenseUsageOkResponse, SscaLicenseUsageProps, SscaLicenseUsageQueryQueryParams, } from './hooks/useSscaLicenseUsageQuery';
|
|
127
137
|
export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
|
|
128
138
|
export type { UpdateRemediationTrackerErrorResponse, UpdateRemediationTrackerMutationPathParams, UpdateRemediationTrackerOkResponse, UpdateRemediationTrackerProps, UpdateRemediationTrackerRequestBody, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
129
139
|
export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
140
|
+
export type { AiWorkflowExecutionRequestBodyRequestBody } from './requestBodies/AiWorkflowExecutionRequestBodyRequestBody';
|
|
130
141
|
export type { ArtifactComponentsRequestBodyRequestBody } from './requestBodies/ArtifactComponentsRequestBodyRequestBody';
|
|
131
142
|
export type { ArtifactListingPipelineRequestBodyRequestBody } from './requestBodies/ArtifactListingPipelineRequestBodyRequestBody';
|
|
132
143
|
export type { ArtifactListingRequestBodyRequestBody } from './requestBodies/ArtifactListingRequestBodyRequestBody';
|
|
@@ -166,6 +177,7 @@ export type { ProvenanceRequestBodyV2RequestBody } from './requestBodies/Provena
|
|
|
166
177
|
export type { RemediationArtifactDeploymentsListingRequestBodyRequestBody } from './requestBodies/RemediationArtifactDeploymentsListingRequestBodyRequestBody';
|
|
167
178
|
export type { RemediationArtifactListingRequestBodyRequestBody } from './requestBodies/RemediationArtifactListingRequestBodyRequestBody';
|
|
168
179
|
export type { RemediationListingRequestBodyRequestBody } from './requestBodies/RemediationListingRequestBodyRequestBody';
|
|
180
|
+
export type { RemediationPrRequestBodyRequestBody } from './requestBodies/RemediationPrRequestBodyRequestBody';
|
|
169
181
|
export type { RemediationTrackerCreateRequestBodyRequestBody } from './requestBodies/RemediationTrackerCreateRequestBodyRequestBody';
|
|
170
182
|
export type { RemediationTrackerUpdateRequestBodyRequestBody } from './requestBodies/RemediationTrackerUpdateRequestBodyRequestBody';
|
|
171
183
|
export type { SaveOrchestrationRequestBodyRequestBody } from './requestBodies/SaveOrchestrationRequestBodyRequestBody';
|
|
@@ -252,6 +264,13 @@ export type { TokenIssueResponseBodyResponse } from './responses/TokenIssueRespo
|
|
|
252
264
|
export type { UpdateIntegrationResponseBodyResponse } from './responses/UpdateIntegrationResponseBodyResponse';
|
|
253
265
|
export type { VersionResponseBodyResponse } from './responses/VersionResponseBodyResponse';
|
|
254
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';
|
|
255
274
|
export type { Artifact } from './schemas/Artifact';
|
|
256
275
|
export type { ArtifactAndDeploymentsResponseBody } from './schemas/ArtifactAndDeploymentsResponseBody';
|
|
257
276
|
export type { ArtifactChainOfCustody } from './schemas/ArtifactChainOfCustody';
|
|
@@ -290,6 +309,9 @@ export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
|
|
|
290
309
|
export type { BaselineV2RequestBody } from './schemas/BaselineV2RequestBody';
|
|
291
310
|
export type { CategoryScorecard } from './schemas/CategoryScorecard';
|
|
292
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';
|
|
293
315
|
export type { CicdHarnessPipelineYamlResponseBody } from './schemas/CicdHarnessPipelineYamlResponseBody';
|
|
294
316
|
export type { CicdOverviewResponseBody } from './schemas/CicdOverviewResponseBody';
|
|
295
317
|
export type { CicdRulesEvaluation } from './schemas/CicdRulesEvaluation';
|
|
@@ -301,6 +323,8 @@ export type { CodeRepoRulesEvaluation } from './schemas/CodeRepoRulesEvaluation'
|
|
|
301
323
|
export type { CodeRepositoryListingRequest } from './schemas/CodeRepositoryListingRequest';
|
|
302
324
|
export type { CodeRepositoryListingResponse } from './schemas/CodeRepositoryListingResponse';
|
|
303
325
|
export type { CodeRepositoryOverview } from './schemas/CodeRepositoryOverview';
|
|
326
|
+
export type { CompleteProcessingRequest } from './schemas/CompleteProcessingRequest';
|
|
327
|
+
export type { CompleteProcessingResult } from './schemas/CompleteProcessingResult';
|
|
304
328
|
export type { ComplianceArtifactType } from './schemas/ComplianceArtifactType';
|
|
305
329
|
export type { ComplianceArtifactWithExecution } from './schemas/ComplianceArtifactWithExecution';
|
|
306
330
|
export type { ComplianceCheck } from './schemas/ComplianceCheck';
|
|
@@ -336,6 +360,9 @@ export type { ConfigInfo } from './schemas/ConfigInfo';
|
|
|
336
360
|
export type { ConfigRequestBody } from './schemas/ConfigRequestBody';
|
|
337
361
|
export type { ConfigResponseBody } from './schemas/ConfigResponseBody';
|
|
338
362
|
export type { ConfigureReposRequest } from './schemas/ConfigureReposRequest';
|
|
363
|
+
export type { ConnectorConfigId } from './schemas/ConnectorConfigId';
|
|
364
|
+
export type { ConnectorConfigRequestBody } from './schemas/ConnectorConfigRequestBody';
|
|
365
|
+
export type { ConnectorConfigResponse } from './schemas/ConnectorConfigResponse';
|
|
339
366
|
export type { ContactInfo } from './schemas/ContactInfo';
|
|
340
367
|
export type { ContainerArtifactFilter } from './schemas/ContainerArtifactFilter';
|
|
341
368
|
export type { ContainerArtifactMetadata } from './schemas/ContainerArtifactMetadata';
|
|
@@ -431,6 +458,8 @@ export type { PluginDto } from './schemas/PluginDto';
|
|
|
431
458
|
export type { PluginResponseBody } from './schemas/PluginResponseBody';
|
|
432
459
|
export type { PolicyViolation } from './schemas/PolicyViolation';
|
|
433
460
|
export type { PolicyViolationRequestBody } from './schemas/PolicyViolationRequestBody';
|
|
461
|
+
export type { ProcessChunkRequest } from './schemas/ProcessChunkRequest';
|
|
462
|
+
export type { ProcessChunkResult } from './schemas/ProcessChunkResult';
|
|
434
463
|
export type { ProvenanceActivity } from './schemas/ProvenanceActivity';
|
|
435
464
|
export type { ProvenanceRequestBody } from './schemas/ProvenanceRequestBody';
|
|
436
465
|
export type { ProvenanceRequestBodyV2 } from './schemas/ProvenanceRequestBodyV2';
|
|
@@ -441,11 +470,14 @@ export type { RemediationArtifactDeploymentsListingResponse } from './schemas/Re
|
|
|
441
470
|
export type { RemediationArtifactDetailsResponse } from './schemas/RemediationArtifactDetailsResponse';
|
|
442
471
|
export type { RemediationArtifactListingRequestBody } from './schemas/RemediationArtifactListingRequestBody';
|
|
443
472
|
export type { RemediationArtifactListingResponse } from './schemas/RemediationArtifactListingResponse';
|
|
473
|
+
export type { RemediationCodePreview } from './schemas/RemediationCodePreview';
|
|
444
474
|
export type { RemediationCondition } from './schemas/RemediationCondition';
|
|
445
475
|
export type { RemediationCount } from './schemas/RemediationCount';
|
|
446
476
|
export type { RemediationDetailsResponse } from './schemas/RemediationDetailsResponse';
|
|
447
477
|
export type { RemediationListingRequestBody } from './schemas/RemediationListingRequestBody';
|
|
448
478
|
export type { RemediationListingResponse } from './schemas/RemediationListingResponse';
|
|
479
|
+
export type { RemediationPrRequest } from './schemas/RemediationPrRequest';
|
|
480
|
+
export type { RemediationPrResponse } from './schemas/RemediationPrResponse';
|
|
449
481
|
export type { RemediationStatus } from './schemas/RemediationStatus';
|
|
450
482
|
export type { RemediationTrackerCreateRequestBody } from './schemas/RemediationTrackerCreateRequestBody';
|
|
451
483
|
export type { RemediationTrackerCreateResponseBody } from './schemas/RemediationTrackerCreateResponseBody';
|
|
@@ -6,6 +6,7 @@ export { configureRepos, useConfigureReposMutation } from './hooks/useConfigureR
|
|
|
6
6
|
export { createComplianceStandards, useCreateComplianceStandardsMutation, } from './hooks/useCreateComplianceStandardsMutation';
|
|
7
7
|
export { createComponentTicket, useCreateComponentTicketMutation, } from './hooks/useCreateComponentTicketMutation';
|
|
8
8
|
export { createIntegration, useCreateIntegrationMutation, } from './hooks/useCreateIntegrationMutation';
|
|
9
|
+
export { createRemediationPullRequest, useCreateRemediationPullRequestMutation, } from './hooks/useCreateRemediationPullRequestMutation';
|
|
9
10
|
export { createRemediationTracker, useCreateRemediationTrackerMutation, } from './hooks/useCreateRemediationTrackerMutation';
|
|
10
11
|
export { createTicket, useCreateTicketMutation } from './hooks/useCreateTicketMutation';
|
|
11
12
|
export { deleteIntegration, useDeleteIntegrationMutation, } from './hooks/useDeleteIntegrationMutation';
|
|
@@ -16,6 +17,8 @@ export { fetchComplianceResultsByComplianceId, useFetchComplianceResultsByCompli
|
|
|
16
17
|
export { fetchComplianceResultsGroupById, useFetchComplianceResultsGroupByIdMutation, } from './hooks/useFetchComplianceResultsGroupByIdMutation';
|
|
17
18
|
export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hooks/useFetchPluginsForWorkflowQuery';
|
|
18
19
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
20
|
+
export { getAiWorkflowExecutionSteps, useGetAiWorkflowExecutionStepsQuery, } from './hooks/useGetAiWorkflowExecutionStepsQuery';
|
|
21
|
+
export { getAiWorkflowExecutions, useGetAiWorkflowExecutionsQuery, } from './hooks/useGetAiWorkflowExecutionsQuery';
|
|
19
22
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
20
23
|
export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
21
24
|
export { getArtifactComponentOverviewByPurl, useGetArtifactComponentOverviewByPurlQuery, } from './hooks/useGetArtifactComponentOverviewByPurlQuery';
|
|
@@ -40,6 +43,7 @@ export { getComplianceStandards, useGetComplianceStandardsMutation, } from './ho
|
|
|
40
43
|
export { getComponentDrift, useGetComponentDriftQuery } from './hooks/useGetComponentDriftQuery';
|
|
41
44
|
export { getComponentTicket, useGetComponentTicketQuery } from './hooks/useGetComponentTicketQuery';
|
|
42
45
|
export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
|
|
46
|
+
export { getConnectorConfig, useGetConnectorConfigQuery } from './hooks/useGetConnectorConfigQuery';
|
|
43
47
|
export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
|
|
44
48
|
export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
|
|
45
49
|
export { getHarnessPipelineIntegration, useGetHarnessPipelineIntegrationQuery, } from './hooks/useGetHarnessPipelineIntegrationQuery';
|
|
@@ -59,6 +63,7 @@ export { listIntegrations, useListIntegrationsQuery } from './hooks/useListInteg
|
|
|
59
63
|
export { listRemediations, useListRemediationsQuery } from './hooks/useListRemediationsQuery';
|
|
60
64
|
export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
|
|
61
65
|
export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
|
|
66
|
+
export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
|
|
62
67
|
export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
|
|
63
68
|
export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
|
|
64
69
|
export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
|
package/dist/ssca-manager/src/services/requestBodies/AiWorkflowExecutionRequestBodyRequestBody.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { DependencyChanges } from '../schemas/DependencyChanges';
|
|
2
2
|
import type { EolStatus } from '../schemas/EolStatus';
|
|
3
|
+
import type { RemediationCodePreview } from '../schemas/RemediationCodePreview';
|
|
4
|
+
import type { RemediationPrResponse } from '../schemas/RemediationPrResponse';
|
|
3
5
|
import type { RemediationWarning } from '../schemas/RemediationWarning';
|
|
4
6
|
import type { TargetVersionVulnerability } from '../schemas/TargetVersionVulnerability';
|
|
5
7
|
export interface ComponentRemediationResponse {
|
|
@@ -17,10 +19,12 @@ export interface ComponentRemediationResponse {
|
|
|
17
19
|
* Recommended version to upgrade
|
|
18
20
|
*/
|
|
19
21
|
recommended_version: string;
|
|
22
|
+
remediation_code_preview?: RemediationCodePreview;
|
|
20
23
|
/**
|
|
21
24
|
* Remediation information
|
|
22
25
|
*/
|
|
23
26
|
remediation_info?: string;
|
|
27
|
+
remediation_pull_request?: RemediationPrResponse;
|
|
24
28
|
/**
|
|
25
29
|
* List of warnings
|
|
26
30
|
*/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ConnectorConfigId } from '../schemas/ConnectorConfigId';
|
|
2
|
+
export interface ConnectorConfigRequestBody {
|
|
3
|
+
/**
|
|
4
|
+
* Allow child scopes to override this configuration
|
|
5
|
+
*/
|
|
6
|
+
allow_override?: boolean;
|
|
7
|
+
config_id: ConnectorConfigId;
|
|
8
|
+
/**
|
|
9
|
+
* The connector reference to use for this config
|
|
10
|
+
*/
|
|
11
|
+
connector_ref: string;
|
|
12
|
+
/**
|
|
13
|
+
* Organization identifier
|
|
14
|
+
*/
|
|
15
|
+
org?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Project identifier
|
|
18
|
+
*/
|
|
19
|
+
project?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ConnectorConfigId } from '../schemas/ConnectorConfigId';
|
|
2
|
+
export interface ConnectorConfigResponse {
|
|
3
|
+
/**
|
|
4
|
+
* Whether child scopes can override this configuration
|
|
5
|
+
*/
|
|
6
|
+
allow_override?: boolean;
|
|
7
|
+
config_id?: ConnectorConfigId;
|
|
8
|
+
/**
|
|
9
|
+
* The connector reference for this config
|
|
10
|
+
*/
|
|
11
|
+
connector_ref?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The scope at which this configuration is set (account/org/project)
|
|
14
|
+
*/
|
|
15
|
+
scope?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -17,4 +17,8 @@ export interface DependencyChange {
|
|
|
17
17
|
*/
|
|
18
18
|
version?: string;
|
|
19
19
|
vulnerabilities_count?: StoIssueCount;
|
|
20
|
+
/**
|
|
21
|
+
* Number of vulnerabilities changed. Negative value indicates vulnerabilities removed, positive value indicates vulnerabilities added.
|
|
22
|
+
*/
|
|
23
|
+
vulnerability_delta?: number;
|
|
20
24
|
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code preview showing removed and added lines for remediation
|
|
3
|
+
*/
|
|
4
|
+
export interface RemediationCodePreview {
|
|
5
|
+
/**
|
|
6
|
+
* Lines of code diff with line numbers
|
|
7
|
+
*/
|
|
8
|
+
diff_lines?: Array<{
|
|
9
|
+
/**
|
|
10
|
+
* Content of the line
|
|
11
|
+
*/
|
|
12
|
+
content?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Line number in the file
|
|
15
|
+
*/
|
|
16
|
+
line_number?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Type of line change (removed with '-', added with '+', unchanged for context)
|
|
19
|
+
*/
|
|
20
|
+
type?: 'added' | 'removed' | 'unchanged';
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* File path of the code preview
|
|
24
|
+
*/
|
|
25
|
+
file_path: string;
|
|
26
|
+
/**
|
|
27
|
+
* Remediation code
|
|
28
|
+
*/
|
|
29
|
+
remediationCode: string;
|
|
30
|
+
/**
|
|
31
|
+
* Existing code in the repository
|
|
32
|
+
*/
|
|
33
|
+
repoContent: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface RemediationPrResponse {
|
|
2
|
+
/**
|
|
3
|
+
* Base branch of the pull request
|
|
4
|
+
*/
|
|
5
|
+
base_branch?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Number of the created pull request
|
|
8
|
+
*/
|
|
9
|
+
pull_request_number?: number;
|
|
10
|
+
/**
|
|
11
|
+
* URL of the created pull request
|
|
12
|
+
*/
|
|
13
|
+
pull_request_url?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Name of the branch created for the pull request
|
|
16
|
+
*/
|
|
17
|
+
remediation_branch?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Name of the repository
|
|
20
|
+
*/
|
|
21
|
+
repo_name?: string;
|
|
22
|
+
}
|