@harnessio/react-ssca-manager-client 0.84.26 → 0.84.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ssca-manager/src/services/hooks/useGetAccountAiWorkflowConfigQuery.d.ts +2 -1
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionAffectedTargetsQuery.d.ts +33 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionAffectedTargetsQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionDetailQuery.d.ts +6 -1
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionDetailQuery.js +1 -1
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsAccountScopeQuery.d.ts +2 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsAccountScopeQuery.d.ts +2 -0
- package/dist/ssca-manager/src/services/hooks/useListAgentStatusesQuery.d.ts +20 -0
- package/dist/ssca-manager/src/services/hooks/useListAgentStatusesQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useSaveAccountAiWorkflowConfigMutation.d.ts +4 -2
- package/dist/ssca-manager/src/services/hooks/useToggleAgentStatusMutation.d.ts +19 -0
- package/dist/ssca-manager/src/services/hooks/useToggleAgentStatusMutation.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +17 -7
- package/dist/ssca-manager/src/services/index.js +3 -0
- package/dist/ssca-manager/src/services/schemas/AffectedArtifactInfo.d.ts +20 -0
- package/dist/ssca-manager/src/services/schemas/AgentToggleRequest.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/AgentToggleStatus.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/AiBomComponentViewResponse.d.ts +28 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigRequest.d.ts +6 -2
- package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigResponse.d.ts +6 -2
- package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigYamlRequest.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigYamlResponse.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionDetailResponse.d.ts +5 -107
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionRequest.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionSummary.d.ts +6 -62
- package/dist/ssca-manager/src/services/schemas/AiWorkflowIncludeScope.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowIncludeScope.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowScopeEntry.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/InternalAffectedArtifact.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/InternalIdentificationResult.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/TriageFindingDetail.d.ts +18 -0
- package/dist/ssca-manager/src/services/schemas/TriageFindingDetail.js +1 -0
- package/dist/ssca-manager/src/services/schemas/TriageFindingSummary.d.ts +12 -0
- package/dist/ssca-manager/src/services/schemas/VulnerabilityFindingDetail.d.ts +19 -0
- package/dist/ssca-manager/src/services/schemas/VulnerabilityFindingDetail.js +1 -0
- package/dist/ssca-manager/src/services/schemas/VulnerabilityFindingSummary.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/VulnerabilityFindingSummary.js +4 -0
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExcludedScope.d.ts +0 -10
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExclusionScope.d.ts +0 -23
- package/dist/ssca-manager/src/services/schemas/BatchAccountResult.d.ts +0 -11
- package/dist/ssca-manager/src/services/schemas/BatchTriggerRequest.d.ts +0 -10
- package/dist/ssca-manager/src/services/schemas/BatchTriggerResponse.d.ts +0 -5
- package/dist/ssca-manager/src/services/schemas/RemediationBatchDetail.d.ts +0 -20
- /package/dist/ssca-manager/src/services/schemas/{AiWorkflowExclusionScope.js → AgentToggleRequest.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{RemediationBatchDetail.js → AgentToggleStatus.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{AiWorkflowExcludedScope.js → AiWorkflowConfigYamlRequest.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{BatchAccountResult.js → AiWorkflowConfigYamlResponse.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{BatchTriggerRequest.js → AiWorkflowScopeEntry.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{BatchTriggerResponse.js → TriageFindingSummary.js} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AiWorkflowConfigYamlResponse } from '../schemas/AiWorkflowConfigYamlResponse';
|
|
2
3
|
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
3
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -8,7 +9,7 @@ export interface GetAccountAiWorkflowConfigQueryQueryParams {
|
|
|
8
9
|
export interface GetAccountAiWorkflowConfigQueryHeaderParams {
|
|
9
10
|
'Harness-Account': string;
|
|
10
11
|
}
|
|
11
|
-
export type GetAccountAiWorkflowConfigOkResponse = ResponseWithPagination<
|
|
12
|
+
export type GetAccountAiWorkflowConfigOkResponse = ResponseWithPagination<AiWorkflowConfigYamlResponse>;
|
|
12
13
|
export type GetAccountAiWorkflowConfigErrorResponse = unknown;
|
|
13
14
|
export interface GetAccountAiWorkflowConfigProps extends Omit<FetcherOptions<GetAccountAiWorkflowConfigQueryQueryParams, unknown, GetAccountAiWorkflowConfigQueryHeaderParams>, 'url'> {
|
|
14
15
|
queryParams: GetAccountAiWorkflowConfigQueryQueryParams;
|
package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionAffectedTargetsQuery.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AffectedArtifactInfo } from '../schemas/AffectedArtifactInfo';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetAiWorkflowExecutionAffectedTargetsQueryPathParams {
|
|
6
|
+
executionId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetAiWorkflowExecutionAffectedTargetsQueryQueryParams {
|
|
9
|
+
search?: string;
|
|
10
|
+
/**
|
|
11
|
+
* @default 0
|
|
12
|
+
*/
|
|
13
|
+
page?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @default 30
|
|
16
|
+
*/
|
|
17
|
+
limit?: number;
|
|
18
|
+
org?: string;
|
|
19
|
+
project?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface GetAiWorkflowExecutionAffectedTargetsQueryHeaderParams {
|
|
22
|
+
'Harness-Account': string;
|
|
23
|
+
}
|
|
24
|
+
export type GetAiWorkflowExecutionAffectedTargetsOkResponse = ResponseWithPagination<AffectedArtifactInfo[]>;
|
|
25
|
+
export type GetAiWorkflowExecutionAffectedTargetsErrorResponse = unknown;
|
|
26
|
+
export interface GetAiWorkflowExecutionAffectedTargetsProps extends GetAiWorkflowExecutionAffectedTargetsQueryPathParams, Omit<FetcherOptions<GetAiWorkflowExecutionAffectedTargetsQueryQueryParams, unknown, GetAiWorkflowExecutionAffectedTargetsQueryHeaderParams>, 'url'> {
|
|
27
|
+
queryParams: GetAiWorkflowExecutionAffectedTargetsQueryQueryParams;
|
|
28
|
+
}
|
|
29
|
+
export declare function getAiWorkflowExecutionAffectedTargets(props: GetAiWorkflowExecutionAffectedTargetsProps): Promise<GetAiWorkflowExecutionAffectedTargetsOkResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Get paginated affected targets for a specific AI workflow execution with optional search filter
|
|
32
|
+
*/
|
|
33
|
+
export declare function useGetAiWorkflowExecutionAffectedTargetsQuery(props: GetAiWorkflowExecutionAffectedTargetsProps, options?: Omit<UseQueryOptions<GetAiWorkflowExecutionAffectedTargetsOkResponse, GetAiWorkflowExecutionAffectedTargetsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAiWorkflowExecutionAffectedTargetsOkResponse, 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 getAiWorkflowExecutionAffectedTargets(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/ai-workflow-executions/${props.executionId}/affected-targets`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get paginated affected targets for a specific AI workflow execution with optional search filter
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAiWorkflowExecutionAffectedTargetsQuery(props, options) {
|
|
13
|
+
return useQuery(['getAIWorkflowExecutionAffectedTargets', props.executionId, props.queryParams], ({ signal }) => getAiWorkflowExecutionAffectedTargets(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -5,12 +5,17 @@ import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
|
5
5
|
export interface GetAiWorkflowExecutionDetailQueryPathParams {
|
|
6
6
|
executionId: string;
|
|
7
7
|
}
|
|
8
|
+
export interface GetAiWorkflowExecutionDetailQueryQueryParams {
|
|
9
|
+
org?: string;
|
|
10
|
+
project?: string;
|
|
11
|
+
}
|
|
8
12
|
export interface GetAiWorkflowExecutionDetailQueryHeaderParams {
|
|
9
13
|
'Harness-Account': string;
|
|
10
14
|
}
|
|
11
15
|
export type GetAiWorkflowExecutionDetailOkResponse = ResponseWithPagination<AiWorkflowExecutionDetailResponse>;
|
|
12
16
|
export type GetAiWorkflowExecutionDetailErrorResponse = unknown;
|
|
13
|
-
export interface GetAiWorkflowExecutionDetailProps extends GetAiWorkflowExecutionDetailQueryPathParams, Omit<FetcherOptions<
|
|
17
|
+
export interface GetAiWorkflowExecutionDetailProps extends GetAiWorkflowExecutionDetailQueryPathParams, Omit<FetcherOptions<GetAiWorkflowExecutionDetailQueryQueryParams, unknown, GetAiWorkflowExecutionDetailQueryHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: GetAiWorkflowExecutionDetailQueryQueryParams;
|
|
14
19
|
}
|
|
15
20
|
export declare function getAiWorkflowExecutionDetail(props: GetAiWorkflowExecutionDetailProps): Promise<GetAiWorkflowExecutionDetailOkResponse>;
|
|
16
21
|
/**
|
|
@@ -10,5 +10,5 @@ export function getAiWorkflowExecutionDetail(props) {
|
|
|
10
10
|
* Get detailed information for a specific AI workflow execution including affected artifacts and production deployment info
|
|
11
11
|
*/
|
|
12
12
|
export function useGetAiWorkflowExecutionDetailQuery(props, options) {
|
|
13
|
-
return useQuery(['getAIWorkflowExecutionDetail', props.executionId], ({ signal }) => getAiWorkflowExecutionDetail(Object.assign(Object.assign({}, props), { signal })), options);
|
|
13
|
+
return useQuery(['getAIWorkflowExecutionDetail', props.executionId, props.queryParams], ({ signal }) => getAiWorkflowExecutionDetail(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
14
|
}
|
package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsAccountScopeQuery.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export interface GetAiWorkflowExecutionStepsAccountScopeQueryPathParams {
|
|
|
7
7
|
}
|
|
8
8
|
export interface GetAiWorkflowExecutionStepsAccountScopeQueryQueryParams {
|
|
9
9
|
ai_workflow_type: string;
|
|
10
|
+
org?: string;
|
|
11
|
+
project?: string;
|
|
10
12
|
}
|
|
11
13
|
export interface GetAiWorkflowExecutionStepsAccountScopeQueryHeaderParams {
|
|
12
14
|
'Harness-Account': string;
|
package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsAccountScopeQuery.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export interface GetAiWorkflowExecutionsAccountScopeQueryQueryParams {
|
|
|
23
23
|
* @default 30
|
|
24
24
|
*/
|
|
25
25
|
limit?: number;
|
|
26
|
+
org?: string;
|
|
27
|
+
project?: string;
|
|
26
28
|
}
|
|
27
29
|
export interface GetAiWorkflowExecutionsAccountScopeQueryHeaderParams {
|
|
28
30
|
'Harness-Account': string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AgentToggleStatus } from '../schemas/AgentToggleStatus';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface ListAgentStatusesQueryQueryParams {
|
|
6
|
+
module: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ListAgentStatusesQueryHeaderParams {
|
|
9
|
+
'Harness-Account': string;
|
|
10
|
+
}
|
|
11
|
+
export type ListAgentStatusesOkResponse = ResponseWithPagination<AgentToggleStatus[]>;
|
|
12
|
+
export type ListAgentStatusesErrorResponse = unknown;
|
|
13
|
+
export interface ListAgentStatusesProps extends Omit<FetcherOptions<ListAgentStatusesQueryQueryParams, unknown, ListAgentStatusesQueryHeaderParams>, 'url'> {
|
|
14
|
+
queryParams: ListAgentStatusesQueryQueryParams;
|
|
15
|
+
}
|
|
16
|
+
export declare function listAgentStatuses(props: ListAgentStatusesProps): Promise<ListAgentStatusesOkResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* List agent toggle statuses for a module
|
|
19
|
+
*/
|
|
20
|
+
export declare function useListAgentStatusesQuery(props: ListAgentStatusesProps, options?: Omit<UseQueryOptions<ListAgentStatusesOkResponse, ListAgentStatusesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListAgentStatusesOkResponse, 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 listAgentStatuses(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/ai-workflow-agents`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* List agent toggle statuses for a module
|
|
11
|
+
*/
|
|
12
|
+
export function useListAgentStatusesQuery(props, options) {
|
|
13
|
+
return useQuery(['listAgentStatuses', props.queryParams], ({ signal }) => listAgentStatuses(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AiWorkflowConfigYamlResponse } from '../schemas/AiWorkflowConfigYamlResponse';
|
|
3
|
+
import type { AiWorkflowConfigYamlRequest } from '../schemas/AiWorkflowConfigYamlRequest';
|
|
2
4
|
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
3
5
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
6
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -8,8 +10,8 @@ export interface SaveAccountAiWorkflowConfigMutationQueryParams {
|
|
|
8
10
|
export interface SaveAccountAiWorkflowConfigMutationHeaderParams {
|
|
9
11
|
'Harness-Account': string;
|
|
10
12
|
}
|
|
11
|
-
export type SaveAccountAiWorkflowConfigRequestBody =
|
|
12
|
-
export type SaveAccountAiWorkflowConfigOkResponse = ResponseWithPagination<
|
|
13
|
+
export type SaveAccountAiWorkflowConfigRequestBody = AiWorkflowConfigYamlRequest;
|
|
14
|
+
export type SaveAccountAiWorkflowConfigOkResponse = ResponseWithPagination<AiWorkflowConfigYamlResponse>;
|
|
13
15
|
export type SaveAccountAiWorkflowConfigErrorResponse = unknown;
|
|
14
16
|
export interface SaveAccountAiWorkflowConfigProps extends Omit<FetcherOptions<SaveAccountAiWorkflowConfigMutationQueryParams, SaveAccountAiWorkflowConfigRequestBody, SaveAccountAiWorkflowConfigMutationHeaderParams>, 'url'> {
|
|
15
17
|
queryParams: SaveAccountAiWorkflowConfigMutationQueryParams;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AgentToggleStatus } from '../schemas/AgentToggleStatus';
|
|
3
|
+
import type { AgentToggleRequest } from '../schemas/AgentToggleRequest';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface ToggleAgentStatusMutationHeaderParams {
|
|
7
|
+
'Harness-Account': string;
|
|
8
|
+
}
|
|
9
|
+
export type ToggleAgentStatusRequestBody = AgentToggleRequest;
|
|
10
|
+
export type ToggleAgentStatusOkResponse = ResponseWithPagination<AgentToggleStatus>;
|
|
11
|
+
export type ToggleAgentStatusErrorResponse = unknown;
|
|
12
|
+
export interface ToggleAgentStatusProps extends Omit<FetcherOptions<unknown, ToggleAgentStatusRequestBody, ToggleAgentStatusMutationHeaderParams>, 'url'> {
|
|
13
|
+
body: ToggleAgentStatusRequestBody;
|
|
14
|
+
}
|
|
15
|
+
export declare function toggleAgentStatus(props: ToggleAgentStatusProps): Promise<ToggleAgentStatusOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Toggle an agent's enabled status
|
|
18
|
+
*/
|
|
19
|
+
export declare function useToggleAgentStatusMutation(options?: Omit<UseMutationOptions<ToggleAgentStatusOkResponse, ToggleAgentStatusErrorResponse, ToggleAgentStatusProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ToggleAgentStatusOkResponse, unknown, ToggleAgentStatusProps, 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 toggleAgentStatus(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/ai-workflow-agents/toggle`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Toggle an agent's enabled status
|
|
11
|
+
*/
|
|
12
|
+
export function useToggleAgentStatusMutation(options) {
|
|
13
|
+
return useMutation((mutateProps) => toggleAgentStatus(mutateProps), options);
|
|
14
|
+
}
|
|
@@ -45,7 +45,9 @@ export type { FetchReposInIntegrationErrorResponse, FetchReposInIntegrationOkRes
|
|
|
45
45
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
46
46
|
export type { GetAccountAiWorkflowConfigErrorResponse, GetAccountAiWorkflowConfigOkResponse, GetAccountAiWorkflowConfigProps, GetAccountAiWorkflowConfigQueryQueryParams, } from './hooks/useGetAccountAiWorkflowConfigQuery';
|
|
47
47
|
export { getAccountAiWorkflowConfig, useGetAccountAiWorkflowConfigQuery, } from './hooks/useGetAccountAiWorkflowConfigQuery';
|
|
48
|
-
export type {
|
|
48
|
+
export type { GetAiWorkflowExecutionAffectedTargetsErrorResponse, GetAiWorkflowExecutionAffectedTargetsOkResponse, GetAiWorkflowExecutionAffectedTargetsProps, GetAiWorkflowExecutionAffectedTargetsQueryPathParams, GetAiWorkflowExecutionAffectedTargetsQueryQueryParams, } from './hooks/useGetAiWorkflowExecutionAffectedTargetsQuery';
|
|
49
|
+
export { getAiWorkflowExecutionAffectedTargets, useGetAiWorkflowExecutionAffectedTargetsQuery, } from './hooks/useGetAiWorkflowExecutionAffectedTargetsQuery';
|
|
50
|
+
export type { GetAiWorkflowExecutionDetailErrorResponse, GetAiWorkflowExecutionDetailOkResponse, GetAiWorkflowExecutionDetailProps, GetAiWorkflowExecutionDetailQueryPathParams, GetAiWorkflowExecutionDetailQueryQueryParams, } from './hooks/useGetAiWorkflowExecutionDetailQuery';
|
|
49
51
|
export { getAiWorkflowExecutionDetail, useGetAiWorkflowExecutionDetailQuery, } from './hooks/useGetAiWorkflowExecutionDetailQuery';
|
|
50
52
|
export type { GetAiWorkflowExecutionStepsAccountScopeErrorResponse, GetAiWorkflowExecutionStepsAccountScopeOkResponse, GetAiWorkflowExecutionStepsAccountScopeProps, GetAiWorkflowExecutionStepsAccountScopeQueryPathParams, GetAiWorkflowExecutionStepsAccountScopeQueryQueryParams, } from './hooks/useGetAiWorkflowExecutionStepsAccountScopeQuery';
|
|
51
53
|
export { getAiWorkflowExecutionStepsAccountScope, useGetAiWorkflowExecutionStepsAccountScopeQuery, } from './hooks/useGetAiWorkflowExecutionStepsAccountScopeQuery';
|
|
@@ -157,6 +159,8 @@ export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSumm
|
|
|
157
159
|
export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
|
|
158
160
|
export type { ImportLicenseFamilyConfigErrorResponse, ImportLicenseFamilyConfigMutationPathParams, ImportLicenseFamilyConfigOkResponse, ImportLicenseFamilyConfigProps, ImportLicenseFamilyConfigRequestBody, } from './hooks/useImportLicenseFamilyConfigMutation';
|
|
159
161
|
export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
|
|
162
|
+
export type { ListAgentStatusesErrorResponse, ListAgentStatusesOkResponse, ListAgentStatusesProps, ListAgentStatusesQueryQueryParams, } from './hooks/useListAgentStatusesQuery';
|
|
163
|
+
export { listAgentStatuses, useListAgentStatusesQuery } from './hooks/useListAgentStatusesQuery';
|
|
160
164
|
export type { ListArtifactSourcesErrorResponse, ListArtifactSourcesOkResponse, ListArtifactSourcesProps, ListArtifactSourcesQueryPathParams, ListArtifactSourcesQueryQueryParams, ListArtifactSourcesRequestBody, } from './hooks/useListArtifactSourcesQuery';
|
|
161
165
|
export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
|
|
162
166
|
export type { ListAttestationsErrorResponse, ListAttestationsMutationPathParams, ListAttestationsMutationQueryParams, ListAttestationsOkResponse, ListAttestationsProps, ListAttestationsRequestBody, } from './hooks/useListAttestationsMutation';
|
|
@@ -181,6 +185,8 @@ export type { SetBaselineForArtifactV2ErrorResponse, SetBaselineForArtifactV2Mut
|
|
|
181
185
|
export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
|
|
182
186
|
export type { SscaLicenseUsageErrorResponse, SscaLicenseUsageOkResponse, SscaLicenseUsageProps, SscaLicenseUsageQueryQueryParams, } from './hooks/useSscaLicenseUsageQuery';
|
|
183
187
|
export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
|
|
188
|
+
export type { ToggleAgentStatusErrorResponse, ToggleAgentStatusOkResponse, ToggleAgentStatusProps, ToggleAgentStatusRequestBody, } from './hooks/useToggleAgentStatusMutation';
|
|
189
|
+
export { toggleAgentStatus, useToggleAgentStatusMutation, } from './hooks/useToggleAgentStatusMutation';
|
|
184
190
|
export type { UpdateRemediationTrackerErrorResponse, UpdateRemediationTrackerMutationPathParams, UpdateRemediationTrackerOkResponse, UpdateRemediationTrackerProps, UpdateRemediationTrackerRequestBody, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
185
191
|
export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
186
192
|
export type { UpsertEolAutoTicketConfigErrorResponse, UpsertEolAutoTicketConfigMutationPathParams, UpsertEolAutoTicketConfigOkResponse, UpsertEolAutoTicketConfigProps, UpsertEolAutoTicketConfigRequestBody, } from './hooks/useUpsertEolAutoTicketConfigMutation';
|
|
@@ -333,6 +339,8 @@ export type { UpdateIntegrationResponseBodyResponse } from './responses/UpdateIn
|
|
|
333
339
|
export type { VersionResponseBodyResponse } from './responses/VersionResponseBodyResponse';
|
|
334
340
|
export type { ActivityDetails } from './schemas/ActivityDetails';
|
|
335
341
|
export type { AffectedArtifactInfo } from './schemas/AffectedArtifactInfo';
|
|
342
|
+
export type { AgentToggleRequest } from './schemas/AgentToggleRequest';
|
|
343
|
+
export type { AgentToggleStatus } from './schemas/AgentToggleStatus';
|
|
336
344
|
export type { AiBomComponentViewRequestBody } from './schemas/AiBomComponentViewRequestBody';
|
|
337
345
|
export type { AiBomComponentViewResponse } from './schemas/AiBomComponentViewResponse';
|
|
338
346
|
export type { AiBomExternalReference } from './schemas/AiBomExternalReference';
|
|
@@ -343,15 +351,17 @@ export type { AiBomSummaryResponse } from './schemas/AiBomSummaryResponse';
|
|
|
343
351
|
export type { AiWorkflowAlertConfig } from './schemas/AiWorkflowAlertConfig';
|
|
344
352
|
export type { AiWorkflowConfigRequest } from './schemas/AiWorkflowConfigRequest';
|
|
345
353
|
export type { AiWorkflowConfigResponse } from './schemas/AiWorkflowConfigResponse';
|
|
346
|
-
export type {
|
|
347
|
-
export type {
|
|
354
|
+
export type { AiWorkflowConfigYamlRequest } from './schemas/AiWorkflowConfigYamlRequest';
|
|
355
|
+
export type { AiWorkflowConfigYamlResponse } from './schemas/AiWorkflowConfigYamlResponse';
|
|
348
356
|
export type { AiWorkflowExecutionDetailResponse } from './schemas/AiWorkflowExecutionDetailResponse';
|
|
349
357
|
export type { AiWorkflowExecutionRequest } from './schemas/AiWorkflowExecutionRequest';
|
|
350
358
|
export type { AiWorkflowExecutionStatusEnum } from './schemas/AiWorkflowExecutionStatusEnum';
|
|
351
359
|
export type { AiWorkflowExecutionStepsResponse } from './schemas/AiWorkflowExecutionStepsResponse';
|
|
352
360
|
export type { AiWorkflowExecutionSummary } from './schemas/AiWorkflowExecutionSummary';
|
|
361
|
+
export type { AiWorkflowIncludeScope } from './schemas/AiWorkflowIncludeScope';
|
|
353
362
|
export type { AiWorkflowInfrastructureConfig } from './schemas/AiWorkflowInfrastructureConfig';
|
|
354
363
|
export type { AiWorkflowResults } from './schemas/AiWorkflowResults';
|
|
364
|
+
export type { AiWorkflowScopeEntry } from './schemas/AiWorkflowScopeEntry';
|
|
355
365
|
export type { AiWorkflowStepExecution } from './schemas/AiWorkflowStepExecution';
|
|
356
366
|
export type { AiWorkflowTriggerConfig } from './schemas/AiWorkflowTriggerConfig';
|
|
357
367
|
export type { AiWorkflowTriggerRequest } from './schemas/AiWorkflowTriggerRequest';
|
|
@@ -428,12 +438,9 @@ export type { AutoPrVersioningRule } from './schemas/AutoPrVersioningRule';
|
|
|
428
438
|
export type { BaselineRequestBody } from './schemas/BaselineRequestBody';
|
|
429
439
|
export type { BaselineResponseBody } from './schemas/BaselineResponseBody';
|
|
430
440
|
export type { BaselineV2RequestBody } from './schemas/BaselineV2RequestBody';
|
|
431
|
-
export type { BatchAccountResult } from './schemas/BatchAccountResult';
|
|
432
441
|
export type { BatchComponentRemediationItem } from './schemas/BatchComponentRemediationItem';
|
|
433
442
|
export type { BatchComponentRemediationRequest } from './schemas/BatchComponentRemediationRequest';
|
|
434
443
|
export type { BatchComponentRemediationResponse } from './schemas/BatchComponentRemediationResponse';
|
|
435
|
-
export type { BatchTriggerRequest } from './schemas/BatchTriggerRequest';
|
|
436
|
-
export type { BatchTriggerResponse } from './schemas/BatchTriggerResponse';
|
|
437
444
|
export type { BulkDownloadJobResponse } from './schemas/BulkDownloadJobResponse';
|
|
438
445
|
export type { CategoryScorecard } from './schemas/CategoryScorecard';
|
|
439
446
|
export type { CategoryScorecardCheck } from './schemas/CategoryScorecardCheck';
|
|
@@ -630,7 +637,6 @@ export type { RemediationArtifactDeploymentsListingResponse } from './schemas/Re
|
|
|
630
637
|
export type { RemediationArtifactDetailsResponse } from './schemas/RemediationArtifactDetailsResponse';
|
|
631
638
|
export type { RemediationArtifactListingRequestBody } from './schemas/RemediationArtifactListingRequestBody';
|
|
632
639
|
export type { RemediationArtifactListingResponse } from './schemas/RemediationArtifactListingResponse';
|
|
633
|
-
export type { RemediationBatchDetail } from './schemas/RemediationBatchDetail';
|
|
634
640
|
export type { RemediationCodePreview } from './schemas/RemediationCodePreview';
|
|
635
641
|
export type { RemediationCondition } from './schemas/RemediationCondition';
|
|
636
642
|
export type { RemediationCount } from './schemas/RemediationCount';
|
|
@@ -699,6 +705,8 @@ export type { TargetVersionVulnerability } from './schemas/TargetVersionVulnerab
|
|
|
699
705
|
export type { TicketInfo } from './schemas/TicketInfo';
|
|
700
706
|
export type { TokenIssueResponseBody } from './schemas/TokenIssueResponseBody';
|
|
701
707
|
export type { TokenIssueTokenResponseBody } from './schemas/TokenIssueTokenResponseBody';
|
|
708
|
+
export type { TriageFindingDetail } from './schemas/TriageFindingDetail';
|
|
709
|
+
export type { TriageFindingSummary } from './schemas/TriageFindingSummary';
|
|
702
710
|
export type { TriggerType } from './schemas/TriggerType';
|
|
703
711
|
export type { UpdateAiWorkflowExecutionStatusRequest } from './schemas/UpdateAiWorkflowExecutionStatusRequest';
|
|
704
712
|
export type { UpdateAiWorkflowExecutionStatusResponse } from './schemas/UpdateAiWorkflowExecutionStatusResponse';
|
|
@@ -708,6 +716,8 @@ export type { VerificationStatus } from './schemas/VerificationStatus';
|
|
|
708
716
|
export type { VersionInfo } from './schemas/VersionInfo';
|
|
709
717
|
export type { Violations } from './schemas/Violations';
|
|
710
718
|
export type { VulnerabilityActivity } from './schemas/VulnerabilityActivity';
|
|
719
|
+
export type { VulnerabilityFindingDetail } from './schemas/VulnerabilityFindingDetail';
|
|
720
|
+
export type { VulnerabilityFindingSummary } from './schemas/VulnerabilityFindingSummary';
|
|
711
721
|
export type { VulnerabilityInfo } from './schemas/VulnerabilityInfo';
|
|
712
722
|
export type { VulnerabilitySeverity } from './schemas/VulnerabilitySeverity';
|
|
713
723
|
export type { VulnerabilitySource } from './schemas/VulnerabilitySource';
|
|
@@ -21,6 +21,7 @@ export { fetchComplianceResultsGroupById, useFetchComplianceResultsGroupByIdMuta
|
|
|
21
21
|
export { fetchPluginsForWorkflow, useFetchPluginsForWorkflowQuery, } from './hooks/useFetchPluginsForWorkflowQuery';
|
|
22
22
|
export { fetchReposInIntegration, useFetchReposInIntegrationQuery, } from './hooks/useFetchReposInIntegrationQuery';
|
|
23
23
|
export { getAccountAiWorkflowConfig, useGetAccountAiWorkflowConfigQuery, } from './hooks/useGetAccountAiWorkflowConfigQuery';
|
|
24
|
+
export { getAiWorkflowExecutionAffectedTargets, useGetAiWorkflowExecutionAffectedTargetsQuery, } from './hooks/useGetAiWorkflowExecutionAffectedTargetsQuery';
|
|
24
25
|
export { getAiWorkflowExecutionDetail, useGetAiWorkflowExecutionDetailQuery, } from './hooks/useGetAiWorkflowExecutionDetailQuery';
|
|
25
26
|
export { getAiWorkflowExecutionStepsAccountScope, useGetAiWorkflowExecutionStepsAccountScopeQuery, } from './hooks/useGetAiWorkflowExecutionStepsAccountScopeQuery';
|
|
26
27
|
export { getAiWorkflowExecutionsAccountScope, useGetAiWorkflowExecutionsAccountScopeQuery, } from './hooks/useGetAiWorkflowExecutionsAccountScopeQuery';
|
|
@@ -77,6 +78,7 @@ export { getRepoRulesEvaluationTrend, useGetRepoRulesEvaluationTrendQuery, } fro
|
|
|
77
78
|
export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
|
|
78
79
|
export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
|
|
79
80
|
export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
|
|
81
|
+
export { listAgentStatuses, useListAgentStatusesQuery } from './hooks/useListAgentStatusesQuery';
|
|
80
82
|
export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
|
|
81
83
|
export { listAttestations, useListAttestationsMutation } from './hooks/useListAttestationsMutation';
|
|
82
84
|
export { listIntegrations, useListIntegrationsQuery } from './hooks/useListIntegrationsQuery';
|
|
@@ -89,5 +91,6 @@ export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAu
|
|
|
89
91
|
export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
|
|
90
92
|
export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
|
|
91
93
|
export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
|
|
94
|
+
export { toggleAgentStatus, useToggleAgentStatusMutation, } from './hooks/useToggleAgentStatusMutation';
|
|
92
95
|
export { updateRemediationTracker, useUpdateRemediationTrackerMutation, } from './hooks/useUpdateRemediationTrackerMutation';
|
|
93
96
|
export { upsertEolAutoTicketConfig, useUpsertEolAutoTicketConfigMutation, } from './hooks/useUpsertEolAutoTicketConfigMutation';
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
export interface AffectedArtifactInfo {
|
|
2
2
|
artifact_id?: string;
|
|
3
3
|
artifact_name?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Whether this target is a source code repository or a container image
|
|
6
|
+
*/
|
|
7
|
+
artifact_type?: 'CONTAINER' | 'REPOSITORY';
|
|
4
8
|
artifact_version?: string;
|
|
5
9
|
base_branch?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Whether this artifact is deployed to any production environment
|
|
12
|
+
*/
|
|
13
|
+
deployed_to_prod?: boolean;
|
|
6
14
|
/**
|
|
7
15
|
* Environment type (Production, NonProduction)
|
|
8
16
|
*/
|
|
@@ -12,12 +20,24 @@ export interface AffectedArtifactInfo {
|
|
|
12
20
|
* Names of non-production environments
|
|
13
21
|
*/
|
|
14
22
|
non_prod_env_names?: string[];
|
|
23
|
+
/**
|
|
24
|
+
* Organization identifier of the affected artifact
|
|
25
|
+
*/
|
|
26
|
+
org_identifier?: string;
|
|
15
27
|
package_name?: string;
|
|
16
28
|
package_version?: string;
|
|
17
29
|
/**
|
|
18
30
|
* Names of production environments
|
|
19
31
|
*/
|
|
20
32
|
prod_env_names?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* Project identifier of the affected artifact
|
|
35
|
+
*/
|
|
36
|
+
project_identifier?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Package URL of the affected component (used in create-PR flow)
|
|
39
|
+
*/
|
|
40
|
+
purl?: string;
|
|
21
41
|
repo_name?: string;
|
|
22
42
|
repo_url?: string;
|
|
23
43
|
}
|
|
@@ -43,14 +43,38 @@ export interface AiBomComponentViewResponse {
|
|
|
43
43
|
* Total number of source code occurrences
|
|
44
44
|
*/
|
|
45
45
|
occurrence_count?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Component description from the SBOM
|
|
48
|
+
*/
|
|
49
|
+
package_description?: string;
|
|
46
50
|
/**
|
|
47
51
|
* Unique component identifier (bom-ref)
|
|
48
52
|
*/
|
|
49
53
|
package_id?: string;
|
|
54
|
+
/**
|
|
55
|
+
* SPDX license identifiers for this component
|
|
56
|
+
*/
|
|
57
|
+
package_license?: string[];
|
|
58
|
+
/**
|
|
59
|
+
* Package manager/ecosystem parsed from purl (e.g. pypi, golang, maven, npm)
|
|
60
|
+
*/
|
|
61
|
+
package_manager?: string;
|
|
50
62
|
/**
|
|
51
63
|
* Component name (e.g. gpt-4, langchain_openai)
|
|
52
64
|
*/
|
|
53
65
|
package_name?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Package namespace parsed from purl (e.g. com.langchain4j for Maven, github.com/org for Go)
|
|
68
|
+
*/
|
|
69
|
+
package_namespace?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Package originator/author name
|
|
72
|
+
*/
|
|
73
|
+
package_originator_name?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Additional AI-BOM properties serialized as a JSON object (e.g. ai-bom:task, ai-bom:framework)
|
|
76
|
+
*/
|
|
77
|
+
package_properties?: string;
|
|
54
78
|
/**
|
|
55
79
|
* Source file where the component was first detected
|
|
56
80
|
*/
|
|
@@ -60,4 +84,8 @@ export interface AiBomComponentViewResponse {
|
|
|
60
84
|
*/
|
|
61
85
|
package_type?: string;
|
|
62
86
|
package_version?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Package URL (purl) — canonical identifier for the package (e.g. pkg:pypi/langchain@0.3.25)
|
|
89
|
+
*/
|
|
90
|
+
purl?: string;
|
|
63
91
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AiWorkflowIncludeScope } from '../schemas/AiWorkflowIncludeScope';
|
|
2
2
|
import type { AiWorkflowInfrastructureConfig } from '../schemas/AiWorkflowInfrastructureConfig';
|
|
3
3
|
import type { AiWorkflowTriggerConfig } from '../schemas/AiWorkflowTriggerConfig';
|
|
4
4
|
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
@@ -7,7 +7,7 @@ export interface AiWorkflowConfigRequest {
|
|
|
7
7
|
* Master on/off switch for the remediation agent
|
|
8
8
|
*/
|
|
9
9
|
enabled: boolean;
|
|
10
|
-
|
|
10
|
+
include_scope?: AiWorkflowIncludeScope;
|
|
11
11
|
infrastructure?: AiWorkflowInfrastructureConfig;
|
|
12
12
|
/**
|
|
13
13
|
* Risk categories to monitor (e.g. Remote Code Execution, SQL Injection). Stored in v3; enforcement deferred to v4.
|
|
@@ -17,6 +17,10 @@ export interface AiWorkflowConfigRequest {
|
|
|
17
17
|
* FP Triage "Scan Types to Triage" filter. Allowed tokens: SCA, SAST, CONTAINER, SECRET, IAC, DAST. Subset of scan types whose findings the agent triages; empty/absent means all supported types. Forwarded to the pre-plugin and applied at the sto-core occurrences-in-scope query.
|
|
18
18
|
*/
|
|
19
19
|
scan_types?: string[];
|
|
20
|
+
/**
|
|
21
|
+
* FP Triage "Severities to Triage" filter. Allowed tokens: CRITICAL, HIGH, MEDIUM, LOW, INFO. Subset of severities whose findings the agent triages; empty/absent means all severities. Forwarded to the pre-plugin and applied at the sto-core occurrences-in-scope query.
|
|
22
|
+
*/
|
|
23
|
+
severity_types?: string[];
|
|
20
24
|
trigger_config?: AiWorkflowTriggerConfig;
|
|
21
25
|
workflow_type?: AiWorkflowTypeEnum;
|
|
22
26
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AiWorkflowIncludeScope } from '../schemas/AiWorkflowIncludeScope';
|
|
2
2
|
import type { AiWorkflowInfrastructureConfig } from '../schemas/AiWorkflowInfrastructureConfig';
|
|
3
3
|
import type { AiWorkflowTriggerConfig } from '../schemas/AiWorkflowTriggerConfig';
|
|
4
4
|
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
@@ -16,7 +16,7 @@ export interface AiWorkflowConfigResponse {
|
|
|
16
16
|
* Whether the AI workflow is enabled for this account
|
|
17
17
|
*/
|
|
18
18
|
enabled?: boolean;
|
|
19
|
-
|
|
19
|
+
include_scope?: AiWorkflowIncludeScope;
|
|
20
20
|
infrastructure?: AiWorkflowInfrastructureConfig;
|
|
21
21
|
/**
|
|
22
22
|
* Organization identifier (null for account-global configs)
|
|
@@ -31,6 +31,10 @@ export interface AiWorkflowConfigResponse {
|
|
|
31
31
|
* FP Triage "Scan Types to Triage" filter. Allowed tokens: SCA, SAST, CONTAINER, SECRET, IAC, DAST. Empty/absent means all supported types.
|
|
32
32
|
*/
|
|
33
33
|
scan_types?: string[];
|
|
34
|
+
/**
|
|
35
|
+
* FP Triage "Severities to Triage" filter. Allowed tokens: CRITICAL, HIGH, MEDIUM, LOW, INFO. Empty/absent means all severities.
|
|
36
|
+
*/
|
|
37
|
+
severity_types?: string[];
|
|
34
38
|
trigger_config?: AiWorkflowTriggerConfig;
|
|
35
39
|
/**
|
|
36
40
|
* Last updated timestamp in milliseconds
|
|
@@ -1,129 +1,27 @@
|
|
|
1
|
-
import type { AffectedArtifactInfo } from '../schemas/AffectedArtifactInfo';
|
|
2
1
|
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
3
|
-
import type { AlertContext } from '../schemas/AlertContext';
|
|
4
2
|
import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
|
|
5
|
-
import type {
|
|
3
|
+
import type { TriageFindingDetail } from '../schemas/TriageFindingDetail';
|
|
4
|
+
import type { VulnerabilityFindingDetail } from '../schemas/VulnerabilityFindingDetail';
|
|
6
5
|
/**
|
|
7
|
-
*
|
|
6
|
+
* Execution detail with type-discriminated nested payload.
|
|
8
7
|
*/
|
|
9
8
|
export interface AiWorkflowExecutionDetailResponse {
|
|
10
|
-
/**
|
|
11
|
-
* VULN / ZERO_DAY only — list of artifacts affected by this execution
|
|
12
|
-
*/
|
|
13
|
-
affected_artifacts?: AffectedArtifactInfo[];
|
|
14
|
-
/**
|
|
15
|
-
* VULN / ZERO_DAY only — total number of affected artifacts
|
|
16
|
-
*/
|
|
17
|
-
affected_targets_count?: number;
|
|
18
|
-
/**
|
|
19
|
-
* Free-form result bag from the agent (FP_TRIAGE: targets_triaged, fps_identified)
|
|
20
|
-
*/
|
|
21
|
-
agent_results?: {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
};
|
|
24
9
|
ai_workflow_type?: AiWorkflowTypeEnum;
|
|
25
|
-
alert_context?: AlertContext;
|
|
26
10
|
/**
|
|
27
|
-
* VULN / ZERO_DAY only — name of the vulnerable component
|
|
28
|
-
*/
|
|
29
|
-
component_name?: string;
|
|
30
|
-
/**
|
|
31
|
-
* VULN / ZERO_DAY only — vulnerable version
|
|
32
|
-
*/
|
|
33
|
-
component_version?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Creation timestamp in milliseconds
|
|
36
11
|
* @format int64
|
|
37
12
|
*/
|
|
38
13
|
created_at?: number;
|
|
39
|
-
/**
|
|
40
|
-
* VULN / ZERO_DAY only — CVE identifier
|
|
41
|
-
*/
|
|
42
|
-
cve_id?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Execution duration in seconds
|
|
45
|
-
*/
|
|
46
14
|
duration?: number;
|
|
47
|
-
/**
|
|
48
|
-
* Stable execution identifier (assigned at creation, never null)
|
|
49
|
-
*/
|
|
50
15
|
execution_id?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Short reason supplied when status transitioned to FAILED
|
|
53
|
-
*/
|
|
54
16
|
failure_reason?: string;
|
|
55
|
-
/**
|
|
56
|
-
* VULN / ZERO_DAY only — recommended fix version
|
|
57
|
-
*/
|
|
58
|
-
fixed_version?: string;
|
|
59
|
-
/**
|
|
60
|
-
* FP_TRIAGE only — number of false positives the agent identified
|
|
61
|
-
*/
|
|
62
|
-
fps_identified_count?: number;
|
|
63
|
-
/**
|
|
64
|
-
* FP_TRIAGE only — org of the originating scan (executes in default/default)
|
|
65
|
-
*/
|
|
66
|
-
originating_org_identifier?: string;
|
|
67
|
-
/**
|
|
68
|
-
* FP_TRIAGE only — project of the originating scan
|
|
69
|
-
*/
|
|
70
|
-
originating_project_identifier?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Harness Pipeline execution ID for deep-linking to PMS; null until PMS assigns
|
|
73
|
-
*/
|
|
74
17
|
pipeline_execution_id?: string;
|
|
75
|
-
/**
|
|
76
|
-
* Sequential per-account run number
|
|
77
|
-
*/
|
|
78
18
|
run_number?: number;
|
|
79
|
-
/**
|
|
80
|
-
* FP_TRIAGE only — scan-completion source scan identifier (deep-link back to the scan)
|
|
81
|
-
*/
|
|
82
|
-
scan_id?: string;
|
|
83
|
-
/**
|
|
84
|
-
* VULN / ZERO_DAY only — vulnerability severity
|
|
85
|
-
*/
|
|
86
|
-
severity?: string;
|
|
87
|
-
/**
|
|
88
|
-
* VULN / ZERO_DAY only — container artifacts skipped (no source repository)
|
|
89
|
-
*/
|
|
90
|
-
skipped_container_artifacts?: number;
|
|
91
|
-
/**
|
|
92
|
-
* VULN / ZERO_DAY only — artifacts skipped due to missing git metadata
|
|
93
|
-
*/
|
|
94
|
-
skipped_no_git_metadata?: number;
|
|
95
19
|
status?: AiWorkflowExecutionStatusEnum;
|
|
96
|
-
|
|
97
|
-
* Per-step lifecycle log inlined to avoid a second round-trip to GET /steps
|
|
98
|
-
*/
|
|
99
|
-
step_executions?: AiWorkflowStepExecution[];
|
|
100
|
-
/**
|
|
101
|
-
* FP_TRIAGE only — scan target (artifact) identifier (UUID)
|
|
102
|
-
*/
|
|
103
|
-
target_id?: string;
|
|
104
|
-
/**
|
|
105
|
-
* FP_TRIAGE only — human-readable artifact name
|
|
106
|
-
*/
|
|
107
|
-
target_name?: string;
|
|
108
|
-
/**
|
|
109
|
-
* VULN / ZERO_DAY only — number of distinct repositories affected
|
|
110
|
-
*/
|
|
111
|
-
total_repositories?: number;
|
|
112
|
-
/**
|
|
113
|
-
* Manual for user-triggered, Zero-Day for batch-triggered, Scan-Completion for scan-completion-triggered (e.g. FP Triage)
|
|
114
|
-
*/
|
|
20
|
+
triage_finding?: TriageFindingDetail;
|
|
115
21
|
trigger_type?: 'Manual' | 'Scan-Completion' | 'Zero-Day';
|
|
116
22
|
/**
|
|
117
|
-
* Epoch ms when the execution was triggered
|
|
118
23
|
* @format int64
|
|
119
24
|
*/
|
|
120
25
|
triggered_at?: number;
|
|
121
|
-
|
|
122
|
-
* FP_TRIAGE only — pipeline execution id of the scan that produced this triage
|
|
123
|
-
*/
|
|
124
|
-
triggering_pipeline_execution_id?: string;
|
|
125
|
-
/**
|
|
126
|
-
* FP_TRIAGE only — pipeline identifier of the scan that produced this triage
|
|
127
|
-
*/
|
|
128
|
-
triggering_pipeline_id?: string;
|
|
26
|
+
vulnerability_finding?: VulnerabilityFindingDetail;
|
|
129
27
|
}
|
|
@@ -2,6 +2,10 @@ import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
|
2
2
|
import type { AiWorkflowResults } from '../schemas/AiWorkflowResults';
|
|
3
3
|
import type { AiWorkflowStepExecution } from '../schemas/AiWorkflowStepExecution';
|
|
4
4
|
export interface AiWorkflowExecutionRequest {
|
|
5
|
+
/**
|
|
6
|
+
* Vulnerability affected version range constraints from the advisory
|
|
7
|
+
*/
|
|
8
|
+
affected_versions?: string[];
|
|
5
9
|
ai_workflow_type: AiWorkflowTypeEnum;
|
|
6
10
|
/**
|
|
7
11
|
* Name of the vulnerable component
|
|
@@ -13,6 +17,10 @@ export interface AiWorkflowExecutionRequest {
|
|
|
13
17
|
* @example "6.5.2"
|
|
14
18
|
*/
|
|
15
19
|
component_version?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Advisory description text
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
16
24
|
/**
|
|
17
25
|
* Workflow duration in seconds
|
|
18
26
|
* @example 330
|
|
@@ -1,87 +1,31 @@
|
|
|
1
1
|
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
2
2
|
import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
|
|
3
|
+
import type { TriageFindingSummary } from '../schemas/TriageFindingSummary';
|
|
4
|
+
import type { VulnerabilityFindingSummary } from '../schemas/VulnerabilityFindingSummary';
|
|
3
5
|
/**
|
|
4
|
-
*
|
|
6
|
+
* Execution summary with type-discriminated nested payload. Branch on ai_workflow_type: VULNERABILITY/ZERO_DAY -> vulnerability_finding; FP_TRIAGE -> triage_finding.
|
|
5
7
|
*/
|
|
6
8
|
export interface AiWorkflowExecutionSummary {
|
|
7
|
-
/**
|
|
8
|
-
* VULN / ZERO_DAY only — number of affected repositories / artifacts
|
|
9
|
-
*/
|
|
10
|
-
affected_targets_count?: number;
|
|
11
9
|
ai_workflow_type?: AiWorkflowTypeEnum;
|
|
12
10
|
/**
|
|
13
|
-
* VULN / ZERO_DAY only — human-readable component name
|
|
14
|
-
*/
|
|
15
|
-
component_name?: string;
|
|
16
|
-
/**
|
|
17
|
-
* VULN / ZERO_DAY only — vulnerable version
|
|
18
|
-
*/
|
|
19
|
-
component_version?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Creation timestamp in milliseconds
|
|
22
11
|
* @format int64
|
|
23
12
|
*/
|
|
24
13
|
created_at?: number;
|
|
25
|
-
/**
|
|
26
|
-
* VULN / ZERO_DAY only — CVE identifier
|
|
27
|
-
*/
|
|
28
|
-
cve_id?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Execution duration in seconds
|
|
31
|
-
*/
|
|
32
14
|
duration?: number;
|
|
33
15
|
/**
|
|
34
|
-
* Stable execution identifier
|
|
16
|
+
* Stable execution identifier
|
|
35
17
|
*/
|
|
36
18
|
execution_id?: string;
|
|
37
|
-
/**
|
|
38
|
-
* VULN / ZERO_DAY only — recommended fix version
|
|
39
|
-
*/
|
|
40
|
-
fixed_version?: string;
|
|
41
|
-
/**
|
|
42
|
-
* FP_TRIAGE only — number of false positives the agent identified (the "FP" column)
|
|
43
|
-
*/
|
|
44
|
-
fps_identified_count?: number;
|
|
45
|
-
/**
|
|
46
|
-
* Originating scan scope org identifier. Used with the fields below to build the "Vuln Link" deep-link.
|
|
47
|
-
*/
|
|
48
|
-
originating_org_identifier?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Originating scan scope project identifier (part of the "Vuln Link" deep-link)
|
|
51
|
-
*/
|
|
52
|
-
originating_project_identifier?: string;
|
|
53
19
|
/**
|
|
54
20
|
* Sequential per-account run number
|
|
55
21
|
*/
|
|
56
22
|
run_number?: number;
|
|
57
|
-
/**
|
|
58
|
-
* VULN / ZERO_DAY only — vulnerability severity
|
|
59
|
-
*/
|
|
60
|
-
severity?: string;
|
|
61
23
|
status?: AiWorkflowExecutionStatusEnum;
|
|
62
|
-
|
|
63
|
-
* FP_TRIAGE only — scan target (artifact) identifier (UUID)
|
|
64
|
-
*/
|
|
65
|
-
target_id?: string;
|
|
66
|
-
/**
|
|
67
|
-
* FP_TRIAGE only — human-readable artifact name shown in the "Target" column
|
|
68
|
-
*/
|
|
69
|
-
target_name?: string;
|
|
70
|
-
/**
|
|
71
|
-
* Manual for user-triggered, Zero-Day for batch-triggered, Scan-Completion for scan-completion-triggered (e.g. FP Triage)
|
|
72
|
-
*/
|
|
24
|
+
triage_finding?: TriageFindingSummary;
|
|
73
25
|
trigger_type?: 'Manual' | 'Scan-Completion' | 'Zero-Day';
|
|
74
26
|
/**
|
|
75
|
-
* Epoch ms when the execution was triggered
|
|
76
27
|
* @format int64
|
|
77
28
|
*/
|
|
78
29
|
triggered_at?: number;
|
|
79
|
-
|
|
80
|
-
* Pipeline execution identifier of the scan that triggered the workflow (part of the "Vuln Link" deep-link)
|
|
81
|
-
*/
|
|
82
|
-
triggering_pipeline_execution_id?: string;
|
|
83
|
-
/**
|
|
84
|
-
* Pipeline identifier of the scan that triggered the workflow (part of the "Vuln Link" deep-link)
|
|
85
|
-
*/
|
|
86
|
-
triggering_pipeline_id?: string;
|
|
30
|
+
vulnerability_finding?: VulnerabilityFindingSummary;
|
|
87
31
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { AiWorkflowScopeEntry } from '../schemas/AiWorkflowScopeEntry';
|
|
2
|
+
/**
|
|
3
|
+
* Inclusion scope for agent triggering. type=ALL (or unset) includes every (org, project); type=SPECIFIC restricts triggering to the listed scopes only.
|
|
4
|
+
*/
|
|
5
|
+
export interface AiWorkflowIncludeScope {
|
|
6
|
+
/**
|
|
7
|
+
* (orgId, projectId) pairs eligible for triggering. Required and non-empty when type=SPECIFIC; ignored when type=ALL.
|
|
8
|
+
*/
|
|
9
|
+
scopes?: AiWorkflowScopeEntry[];
|
|
10
|
+
/**
|
|
11
|
+
* ALL includes every scope; SPECIFIC restricts triggering to the listed scopes.
|
|
12
|
+
*/
|
|
13
|
+
type?: 'ALL' | 'SPECIFIC';
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export interface InternalAffectedArtifact {
|
|
2
2
|
artifact_id?: string;
|
|
3
3
|
artifact_name?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Whether this target is a source code repository or a container image
|
|
6
|
+
*/
|
|
7
|
+
artifact_type?: 'CONTAINER' | 'REPOSITORY';
|
|
4
8
|
artifact_version?: string;
|
|
5
9
|
base_branch?: string;
|
|
6
10
|
env_type?: string;
|
|
@@ -3,7 +3,7 @@ export interface InternalIdentificationResult {
|
|
|
3
3
|
affected_artifacts?: InternalAffectedArtifact[];
|
|
4
4
|
outcome?: 'AFFECTED' | 'ZERO_AFFECTED';
|
|
5
5
|
skipped_artifact_not_found?: number;
|
|
6
|
-
skipped_container_artifacts?: number;
|
|
7
6
|
skipped_no_git_metadata?: number;
|
|
7
|
+
skipped_no_metadata?: number;
|
|
8
8
|
truncated?: boolean;
|
|
9
9
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AiWorkflowStepExecution } from '../schemas/AiWorkflowStepExecution';
|
|
2
|
+
/**
|
|
3
|
+
* FP Triage-specific fields in the execution detail
|
|
4
|
+
*/
|
|
5
|
+
export interface TriageFindingDetail {
|
|
6
|
+
agent_results?: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
fps_identified_count?: number;
|
|
10
|
+
originating_org_identifier?: string;
|
|
11
|
+
originating_project_identifier?: string;
|
|
12
|
+
scan_id?: string;
|
|
13
|
+
step_executions?: AiWorkflowStepExecution[];
|
|
14
|
+
target_id?: string;
|
|
15
|
+
target_name?: string;
|
|
16
|
+
triggering_pipeline_execution_id?: string;
|
|
17
|
+
triggering_pipeline_id?: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FP Triage-specific fields in the execution summary
|
|
3
|
+
*/
|
|
4
|
+
export interface TriageFindingSummary {
|
|
5
|
+
fps_identified_count?: number;
|
|
6
|
+
originating_org_identifier?: string;
|
|
7
|
+
originating_project_identifier?: string;
|
|
8
|
+
target_id?: string;
|
|
9
|
+
target_name?: string;
|
|
10
|
+
triggering_pipeline_execution_id?: string;
|
|
11
|
+
triggering_pipeline_id?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { AlertContext } from '../schemas/AlertContext';
|
|
2
|
+
/**
|
|
3
|
+
* Vulnerability/Zero-Day-specific fields in the execution detail
|
|
4
|
+
*/
|
|
5
|
+
export interface VulnerabilityFindingDetail {
|
|
6
|
+
affected_targets_count?: number;
|
|
7
|
+
affected_versions?: string[];
|
|
8
|
+
alert_context?: AlertContext;
|
|
9
|
+
component_name?: string;
|
|
10
|
+
component_version?: string;
|
|
11
|
+
cve_id?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
ecosystem?: string;
|
|
14
|
+
fixed_version?: string;
|
|
15
|
+
severity?: string;
|
|
16
|
+
skipped_no_git_metadata?: number;
|
|
17
|
+
skipped_no_metadata?: number;
|
|
18
|
+
total_repositories?: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vulnerability/Zero-Day-specific fields in the execution summary
|
|
3
|
+
*/
|
|
4
|
+
export interface VulnerabilityFindingSummary {
|
|
5
|
+
affected_targets_count?: number;
|
|
6
|
+
affected_versions?: string[];
|
|
7
|
+
component_name?: string;
|
|
8
|
+
component_version?: string;
|
|
9
|
+
cve_id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Advisory description text
|
|
12
|
+
*/
|
|
13
|
+
description?: string;
|
|
14
|
+
ecosystem?: string;
|
|
15
|
+
fixed_version?: string;
|
|
16
|
+
severity?: string;
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { AiWorkflowExcludedScope } from '../schemas/AiWorkflowExcludedScope';
|
|
2
|
-
export interface AiWorkflowExclusionScope {
|
|
3
|
-
/**
|
|
4
|
-
* Artifact name glob patterns to exclude from identification (e.g. "org/frontend-app", "!*-SNAPSHOT")
|
|
5
|
-
*/
|
|
6
|
-
exclude_artifact_patterns?: string[];
|
|
7
|
-
/**
|
|
8
|
-
* Repository name glob patterns to exclude from identification (e.g. "*-test", "dev-*")
|
|
9
|
-
*/
|
|
10
|
-
exclude_repo_patterns?: string[];
|
|
11
|
-
/**
|
|
12
|
-
* Organization identifiers to exclude from identification scans
|
|
13
|
-
*/
|
|
14
|
-
excluded_org_ids?: string[];
|
|
15
|
-
/**
|
|
16
|
-
* Project identifiers to exclude from identification scans
|
|
17
|
-
*/
|
|
18
|
-
excluded_project_ids?: string[];
|
|
19
|
-
/**
|
|
20
|
-
* FP Triage account-level exclusion: (org, project) pairs whose scan-completion events are skipped before any agent run. Evaluated against the originating scan scope.
|
|
21
|
-
*/
|
|
22
|
-
excluded_scopes?: AiWorkflowExcludedScope[];
|
|
23
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface BatchAccountResult {
|
|
2
|
-
accountId?: string;
|
|
3
|
-
executionId?: string;
|
|
4
|
-
failureMessage?: string;
|
|
5
|
-
outcome?: 'FAILED' | 'SKIPPED_BELOW_THRESHOLD' | 'SKIPPED_DEDUP' | 'SKIPPED_DISABLED' | 'SKIPPED_RECENT_EXECUTION' | 'TRIGGERED';
|
|
6
|
-
pipelineExecutionId?: string;
|
|
7
|
-
/**
|
|
8
|
-
* @format int64
|
|
9
|
-
*/
|
|
10
|
-
processedAt?: number;
|
|
11
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
}
|
|
File without changes
|
/package/dist/ssca-manager/src/services/schemas/{RemediationBatchDetail.js → AgentToggleStatus.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/ssca-manager/src/services/schemas/{BatchTriggerRequest.js → AiWorkflowScopeEntry.js}
RENAMED
|
File without changes
|
/package/dist/ssca-manager/src/services/schemas/{BatchTriggerResponse.js → TriageFindingSummary.js}
RENAMED
|
File without changes
|