@harnessio/react-ssca-manager-client 1.0.2 → 1.0.4
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/useGetContainerTargetAiWorkflowConfigQuery.d.ts +12 -6
- package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.js +12 -6
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionAffectedTargetsQuery.d.ts +34 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionAffectedTargetsQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionDetailQuery.d.ts +25 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionDetailQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionStepsQuery.d.ts +24 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionStepsQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionsQuery.d.ts +41 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionsQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.d.ts +18 -7
- package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.js +18 -7
- package/dist/ssca-manager/src/services/index.d.ts +26 -0
- package/dist/ssca-manager/src/services/index.js +4 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionDetailResponse.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowTypeEnum.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/ComponentCveCvssV3.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/ComponentCveCvssV3.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ComponentCveImpact.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ComponentCveImpact.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependencyEdge.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependencyEdge.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependencyGraph.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependencyGraph.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependencyNode.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/ComponentDependencyNode.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ComponentInfoRequest.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/ComponentInfoRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ComponentPackageCve.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/ComponentPackageCve.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComponentPackageInfo.d.ts +22 -0
- package/dist/ssca-manager/src/services/schemas/ComponentPackageInfo.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ComponentPackageScore.d.ts +3 -0
- package/dist/ssca-manager/src/services/schemas/ComponentPackageScore.js +4 -0
- package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentRequest.d.ts +10 -2
- package/dist/ssca-manager/src/services/schemas/RemediationAgentExecution.d.ts +5 -2
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherListResponse.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherListResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherMatchField.d.ts +1 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherMatchField.js +4 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherMatchRule.d.ts +7 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherMatchRule.js +1 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherResponse.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherUpsertRequest.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/TrustedPublisherUpsertRequest.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayBackfillRequest.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayBackfillRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayBackfillResponse.d.ts +15 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayBackfillResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayBatchDetailResponse.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayConfigEnabledUpdate.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayConfigEnabledUpdate.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayExecutionSummary.d.ts +15 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayExecutionSummary.js +1 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayFindingResponse.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayFindingUpdateRequest.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayTestTriggerRequest.d.ts +8 -0
- package/package.json +1 -1
package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.d.ts
CHANGED
|
@@ -21,17 +21,23 @@ export interface GetContainerTargetAiWorkflowConfigProps extends GetContainerTar
|
|
|
21
21
|
}
|
|
22
22
|
export declare function getContainerTargetAiWorkflowConfig(props: GetContainerTargetAiWorkflowConfigProps): Promise<GetContainerTargetAiWorkflowConfigOkResponse>;
|
|
23
23
|
/**
|
|
24
|
-
* Get the
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
24
|
+
* Get the effective AI workflow configuration for a STO container target — the account +
|
|
25
|
+
* organization + project merge with the stored target override applied, the same contract
|
|
26
|
+
* as the code-repo GET.
|
|
27
|
+
* remediation (the default — the SCA dependency-remediation surface; the deprecated
|
|
28
|
+
* dependency_remediation spelling selects it too) returns the resolved config:
|
|
29
|
+
* variantScope, repoUrl, dockerfilePath from the target row; scm, the flat
|
|
30
|
+
* agent.validation* keys, remediationCriteria, useStoApprovedBaseImages and
|
|
31
|
+
* maxVersionUpdate leaf-merged from the project agent.sca config with target overrides
|
|
32
|
+
* applied. agent.enabled is the resolved per-target toggle: the stored override when set,
|
|
33
|
+
* otherwise the inherited sca.enabled, otherwise false.
|
|
28
34
|
* fp_triage returns the resolved triage rule as agent.variantScope: the artifact's stored
|
|
29
35
|
* rule when set (mode fixed with values, or mode regex with regex), otherwise mode baseline.
|
|
30
36
|
* agent.enabled comes from the project targetIncludeScope. include_scope_status and
|
|
31
37
|
* account_enabled match the code-repo triage GET. agent.enabled is not stored here.
|
|
32
38
|
* Clearing the triage variantScope restores baseline-only triage.
|
|
33
|
-
* A target with no document returns
|
|
34
|
-
*
|
|
39
|
+
* A target with no document returns the purely inherited project config; with no config
|
|
40
|
+
* anywhere it returns the minimal payload (agent type and enabled: false).
|
|
35
41
|
*
|
|
36
42
|
*/
|
|
37
43
|
export declare function useGetContainerTargetAiWorkflowConfigQuery(props: GetContainerTargetAiWorkflowConfigProps, options?: Omit<UseQueryOptions<GetContainerTargetAiWorkflowConfigOkResponse, GetContainerTargetAiWorkflowConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetContainerTargetAiWorkflowConfigOkResponse, unknown>;
|
|
@@ -7,17 +7,23 @@ export function getContainerTargetAiWorkflowConfig(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-config/container-targets/${props.targetId}`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Get the
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
10
|
+
* Get the effective AI workflow configuration for a STO container target — the account +
|
|
11
|
+
* organization + project merge with the stored target override applied, the same contract
|
|
12
|
+
* as the code-repo GET.
|
|
13
|
+
* remediation (the default — the SCA dependency-remediation surface; the deprecated
|
|
14
|
+
* dependency_remediation spelling selects it too) returns the resolved config:
|
|
15
|
+
* variantScope, repoUrl, dockerfilePath from the target row; scm, the flat
|
|
16
|
+
* agent.validation* keys, remediationCriteria, useStoApprovedBaseImages and
|
|
17
|
+
* maxVersionUpdate leaf-merged from the project agent.sca config with target overrides
|
|
18
|
+
* applied. agent.enabled is the resolved per-target toggle: the stored override when set,
|
|
19
|
+
* otherwise the inherited sca.enabled, otherwise false.
|
|
14
20
|
* fp_triage returns the resolved triage rule as agent.variantScope: the artifact's stored
|
|
15
21
|
* rule when set (mode fixed with values, or mode regex with regex), otherwise mode baseline.
|
|
16
22
|
* agent.enabled comes from the project targetIncludeScope. include_scope_status and
|
|
17
23
|
* account_enabled match the code-repo triage GET. agent.enabled is not stored here.
|
|
18
24
|
* Clearing the triage variantScope restores baseline-only triage.
|
|
19
|
-
* A target with no document returns
|
|
20
|
-
*
|
|
25
|
+
* A target with no document returns the purely inherited project config; with no config
|
|
26
|
+
* anywhere it returns the minimal payload (agent type and enabled: false).
|
|
21
27
|
*
|
|
22
28
|
*/
|
|
23
29
|
export function useGetContainerTargetAiWorkflowConfigQuery(props, options) {
|
|
@@ -0,0 +1,34 @@
|
|
|
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 GetZeroDayExecutionAffectedTargetsQueryPathParams {
|
|
6
|
+
executionId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetZeroDayExecutionAffectedTargetsQueryQueryParams {
|
|
9
|
+
cluster_id: string;
|
|
10
|
+
search?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @default 0
|
|
13
|
+
*/
|
|
14
|
+
page?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @default 30
|
|
17
|
+
*/
|
|
18
|
+
limit?: number;
|
|
19
|
+
org?: string;
|
|
20
|
+
project?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface GetZeroDayExecutionAffectedTargetsQueryHeaderParams {
|
|
23
|
+
'Harness-Account': string;
|
|
24
|
+
}
|
|
25
|
+
export type GetZeroDayExecutionAffectedTargetsOkResponse = ResponseWithPagination<AffectedArtifactInfo[]>;
|
|
26
|
+
export type GetZeroDayExecutionAffectedTargetsErrorResponse = unknown;
|
|
27
|
+
export interface GetZeroDayExecutionAffectedTargetsProps extends GetZeroDayExecutionAffectedTargetsQueryPathParams, Omit<FetcherOptions<GetZeroDayExecutionAffectedTargetsQueryQueryParams, unknown, GetZeroDayExecutionAffectedTargetsQueryHeaderParams>, 'url'> {
|
|
28
|
+
queryParams: GetZeroDayExecutionAffectedTargetsQueryQueryParams;
|
|
29
|
+
}
|
|
30
|
+
export declare function getZeroDayExecutionAffectedTargets(props: GetZeroDayExecutionAffectedTargetsProps): Promise<GetZeroDayExecutionAffectedTargetsOkResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Returns a page of affected targets for one dispatched finding of a zero-day global-findings execution, in the shape of GET /v1/ai-workflow-executions/{executionId}/affected-targets. cluster_id selects the finding. When org and project are given, only targets in that scope are returned. Requires the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag.
|
|
33
|
+
*/
|
|
34
|
+
export declare function useGetZeroDayExecutionAffectedTargetsQuery(props: GetZeroDayExecutionAffectedTargetsProps, options?: Omit<UseQueryOptions<GetZeroDayExecutionAffectedTargetsOkResponse, GetZeroDayExecutionAffectedTargetsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetZeroDayExecutionAffectedTargetsOkResponse, 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 getZeroDayExecutionAffectedTargets(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/zero-day/executions/${props.executionId}/affected-targets`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns a page of affected targets for one dispatched finding of a zero-day global-findings execution, in the shape of GET /v1/ai-workflow-executions/{executionId}/affected-targets. cluster_id selects the finding. When org and project are given, only targets in that scope are returned. Requires the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetZeroDayExecutionAffectedTargetsQuery(props, options) {
|
|
13
|
+
return useQuery(['getZeroDayExecutionAffectedTargets', props.executionId, props.queryParams], ({ signal }) => getZeroDayExecutionAffectedTargets(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AiWorkflowExecutionDetailResponse } from '../schemas/AiWorkflowExecutionDetailResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetZeroDayExecutionDetailQueryPathParams {
|
|
6
|
+
executionId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetZeroDayExecutionDetailQueryQueryParams {
|
|
9
|
+
org?: string;
|
|
10
|
+
project?: string;
|
|
11
|
+
cluster_id: string;
|
|
12
|
+
}
|
|
13
|
+
export interface GetZeroDayExecutionDetailQueryHeaderParams {
|
|
14
|
+
'Harness-Account': string;
|
|
15
|
+
}
|
|
16
|
+
export type GetZeroDayExecutionDetailOkResponse = ResponseWithPagination<AiWorkflowExecutionDetailResponse>;
|
|
17
|
+
export type GetZeroDayExecutionDetailErrorResponse = unknown;
|
|
18
|
+
export interface GetZeroDayExecutionDetailProps extends GetZeroDayExecutionDetailQueryPathParams, Omit<FetcherOptions<GetZeroDayExecutionDetailQueryQueryParams, unknown, GetZeroDayExecutionDetailQueryHeaderParams>, 'url'> {
|
|
19
|
+
queryParams: GetZeroDayExecutionDetailQueryQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export declare function getZeroDayExecutionDetail(props: GetZeroDayExecutionDetailProps): Promise<GetZeroDayExecutionDetailOkResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Returns one dispatched finding of a zero-day global-findings execution in the shape of GET /v1/ai-workflow-executions/{executionId}/detail. cluster_id selects the finding because one execution covers every finding dispatched to the account. When org and project are given, the target count is limited to that scope and a finding with no in-scope target is not found. Requires the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useGetZeroDayExecutionDetailQuery(props: GetZeroDayExecutionDetailProps, options?: Omit<UseQueryOptions<GetZeroDayExecutionDetailOkResponse, GetZeroDayExecutionDetailErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetZeroDayExecutionDetailOkResponse, 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 getZeroDayExecutionDetail(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/zero-day/executions/${props.executionId}/detail`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns one dispatched finding of a zero-day global-findings execution in the shape of GET /v1/ai-workflow-executions/{executionId}/detail. cluster_id selects the finding because one execution covers every finding dispatched to the account. When org and project are given, the target count is limited to that scope and a finding with no in-scope target is not found. Requires the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetZeroDayExecutionDetailQuery(props, options) {
|
|
13
|
+
return useQuery(['getZeroDayExecutionDetail', props.executionId, props.queryParams], ({ signal }) => getZeroDayExecutionDetail(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 GetZeroDayExecutionStepsQueryPathParams {
|
|
6
|
+
executionId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetZeroDayExecutionStepsQueryQueryParams {
|
|
9
|
+
org?: string;
|
|
10
|
+
project?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GetZeroDayExecutionStepsQueryHeaderParams {
|
|
13
|
+
'Harness-Account': string;
|
|
14
|
+
}
|
|
15
|
+
export type GetZeroDayExecutionStepsOkResponse = ResponseWithPagination<AiWorkflowExecutionStepsResponse>;
|
|
16
|
+
export type GetZeroDayExecutionStepsErrorResponse = unknown;
|
|
17
|
+
export interface GetZeroDayExecutionStepsProps extends GetZeroDayExecutionStepsQueryPathParams, Omit<FetcherOptions<GetZeroDayExecutionStepsQueryQueryParams, unknown, GetZeroDayExecutionStepsQueryHeaderParams>, 'url'> {
|
|
18
|
+
queryParams: GetZeroDayExecutionStepsQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export declare function getZeroDayExecutionSteps(props: GetZeroDayExecutionStepsProps): Promise<GetZeroDayExecutionStepsOkResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Returns the stored step entries of a zero-day global-findings execution. Entries from an earlier pipeline are omitted once the execution has a current pipeline execution id. Requires the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useGetZeroDayExecutionStepsQuery(props: GetZeroDayExecutionStepsProps, options?: Omit<UseQueryOptions<GetZeroDayExecutionStepsOkResponse, GetZeroDayExecutionStepsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetZeroDayExecutionStepsOkResponse, 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 getZeroDayExecutionSteps(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/zero-day/executions/${props.executionId}/steps`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Returns the stored step entries of a zero-day global-findings execution. Entries from an earlier pipeline are omitted once the execution has a current pipeline execution id. Requires the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetZeroDayExecutionStepsQuery(props, options) {
|
|
13
|
+
return useQuery(['getZeroDayExecutionSteps', props.executionId, props.queryParams], ({ signal }) => getZeroDayExecutionSteps(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ZeroDayExecutionSummary } from '../schemas/ZeroDayExecutionSummary';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetZeroDayExecutionsQueryQueryParams {
|
|
6
|
+
status?: string;
|
|
7
|
+
/**
|
|
8
|
+
* @format int64
|
|
9
|
+
*/
|
|
10
|
+
from_timestamp?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @format int64
|
|
13
|
+
*/
|
|
14
|
+
to_timestamp?: number;
|
|
15
|
+
batch_id?: string;
|
|
16
|
+
test?: boolean;
|
|
17
|
+
org?: string;
|
|
18
|
+
project?: string;
|
|
19
|
+
search?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @default 0
|
|
22
|
+
*/
|
|
23
|
+
page?: number;
|
|
24
|
+
/**
|
|
25
|
+
* @default 30
|
|
26
|
+
*/
|
|
27
|
+
limit?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface GetZeroDayExecutionsQueryHeaderParams {
|
|
30
|
+
'Harness-Account': string;
|
|
31
|
+
}
|
|
32
|
+
export type GetZeroDayExecutionsOkResponse = ResponseWithPagination<ZeroDayExecutionSummary[]>;
|
|
33
|
+
export type GetZeroDayExecutionsErrorResponse = unknown;
|
|
34
|
+
export interface GetZeroDayExecutionsProps extends Omit<FetcherOptions<GetZeroDayExecutionsQueryQueryParams, unknown, GetZeroDayExecutionsQueryHeaderParams>, 'url'> {
|
|
35
|
+
queryParams: GetZeroDayExecutionsQueryQueryParams;
|
|
36
|
+
}
|
|
37
|
+
export declare function getZeroDayExecutions(props: GetZeroDayExecutionsProps): Promise<GetZeroDayExecutionsOkResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Lists executions of the zero-day global-findings flow for the account, newest first, in the shape of GET /v1/ai-workflow-executions. A dispatched execution yields one row per finding cluster; an execution with no dispatched finding yet yields one row with no cluster_id or vulnerability_finding. When org and project are given, a row is a cluster that has a target in that scope and affected_targets_count is that count. X-Total-Elements is the count of matching rows. Requires the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag.
|
|
40
|
+
*/
|
|
41
|
+
export declare function useGetZeroDayExecutionsQuery(props: GetZeroDayExecutionsProps, options?: Omit<UseQueryOptions<GetZeroDayExecutionsOkResponse, GetZeroDayExecutionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetZeroDayExecutionsOkResponse, 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 getZeroDayExecutions(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/zero-day/executions`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Lists executions of the zero-day global-findings flow for the account, newest first, in the shape of GET /v1/ai-workflow-executions. A dispatched execution yields one row per finding cluster; an execution with no dispatched finding yet yields one row with no cluster_id or vulnerability_finding. When org and project are given, a row is a cluster that has a target in that scope and affected_targets_count is that count. X-Total-Elements is the count of matching rows. Requires the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetZeroDayExecutionsQuery(props, options) {
|
|
13
|
+
return useQuery(['getZeroDayExecutions', props.queryParams], ({ signal }) => getZeroDayExecutions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.d.ts
CHANGED
|
@@ -24,11 +24,22 @@ export interface SaveContainerTargetAiWorkflowConfigProps extends SaveContainerT
|
|
|
24
24
|
}
|
|
25
25
|
export declare function saveContainerTargetAiWorkflowConfig(props: SaveContainerTargetAiWorkflowConfigProps): Promise<SaveContainerTargetAiWorkflowConfigOkResponse>;
|
|
26
26
|
/**
|
|
27
|
-
* Create or update
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
27
|
+
* Create or update the configuration for a STO container target.
|
|
28
|
+
* The document under agent is the complete desired state — the same resolved document
|
|
29
|
+
* the GET returns. Replace semantics: a named value is stored; an omitted or null field
|
|
30
|
+
* clears the stored override and the field goes back to inheriting. A verbatim GET→PUT
|
|
31
|
+
* therefore pins every resolved value as a target override, and a sparse document clears
|
|
32
|
+
* the overrides it does not name. The 'effective' section emitted by earlier versions of
|
|
33
|
+
* this endpoint is rejected on write.
|
|
34
|
+
* remediation (the default — the SCA dependency-remediation surface; the deprecated
|
|
35
|
+
* dependency_remediation spelling is still accepted) accepts agent.enabled (a stored false
|
|
36
|
+
* suppresses remediation for this target), agent.variantScope
|
|
37
|
+
* (baseline|all|fixed|regex),
|
|
38
|
+
* agent.repoUrl, agent.dockerfilePath, agent.scm, the sca selection-policy overrides
|
|
39
|
+
* agent.remediationCriteria (cisaKev, exploitable, reachable, epssProbability —
|
|
40
|
+
* gte_15|gte_5|gte_1 or blank to disable the gate), agent.useStoApprovedBaseImages and
|
|
41
|
+
* agent.maxVersionUpdate (patch|minor|major|none — none blocks every version bump), and the
|
|
42
|
+
* flat validation keys
|
|
32
43
|
* agent.validationMode (agent_validated|deferred), agent.validationPipelineId,
|
|
33
44
|
* agent.validationPipelineOrg, agent.validationPipelineProject, agent.buildStepId and
|
|
34
45
|
* agent.scanStepId.
|
|
@@ -37,8 +48,8 @@ export declare function saveContainerTargetAiWorkflowConfig(props: SaveContainer
|
|
|
37
48
|
* response reports project targetIncludeScope membership, include_scope_status, and
|
|
38
49
|
* account_enabled the same way as code-repo triage. Any other field is rejected.
|
|
39
50
|
* The fp_triage response returns the resolved variant rule (baseline when cleared).
|
|
40
|
-
* The
|
|
41
|
-
* or SCM connectivity check is performed on save.
|
|
51
|
+
* The remediation response returns the resolved view, the same shape as the GET.
|
|
52
|
+
* No STO target or SCM connectivity check is performed on save.
|
|
42
53
|
*
|
|
43
54
|
*/
|
|
44
55
|
export declare function useSaveContainerTargetAiWorkflowConfigMutation(options?: Omit<UseMutationOptions<SaveContainerTargetAiWorkflowConfigOkResponse, SaveContainerTargetAiWorkflowConfigErrorResponse, SaveContainerTargetAiWorkflowConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveContainerTargetAiWorkflowConfigOkResponse, unknown, SaveContainerTargetAiWorkflowConfigProps, unknown>;
|
package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.js
CHANGED
|
@@ -7,11 +7,22 @@ export function saveContainerTargetAiWorkflowConfig(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-config/container-targets/${props.targetId}`, method: 'PUT' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Create or update
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
10
|
+
* Create or update the configuration for a STO container target.
|
|
11
|
+
* The document under agent is the complete desired state — the same resolved document
|
|
12
|
+
* the GET returns. Replace semantics: a named value is stored; an omitted or null field
|
|
13
|
+
* clears the stored override and the field goes back to inheriting. A verbatim GET→PUT
|
|
14
|
+
* therefore pins every resolved value as a target override, and a sparse document clears
|
|
15
|
+
* the overrides it does not name. The 'effective' section emitted by earlier versions of
|
|
16
|
+
* this endpoint is rejected on write.
|
|
17
|
+
* remediation (the default — the SCA dependency-remediation surface; the deprecated
|
|
18
|
+
* dependency_remediation spelling is still accepted) accepts agent.enabled (a stored false
|
|
19
|
+
* suppresses remediation for this target), agent.variantScope
|
|
20
|
+
* (baseline|all|fixed|regex),
|
|
21
|
+
* agent.repoUrl, agent.dockerfilePath, agent.scm, the sca selection-policy overrides
|
|
22
|
+
* agent.remediationCriteria (cisaKev, exploitable, reachable, epssProbability —
|
|
23
|
+
* gte_15|gte_5|gte_1 or blank to disable the gate), agent.useStoApprovedBaseImages and
|
|
24
|
+
* agent.maxVersionUpdate (patch|minor|major|none — none blocks every version bump), and the
|
|
25
|
+
* flat validation keys
|
|
15
26
|
* agent.validationMode (agent_validated|deferred), agent.validationPipelineId,
|
|
16
27
|
* agent.validationPipelineOrg, agent.validationPipelineProject, agent.buildStepId and
|
|
17
28
|
* agent.scanStepId.
|
|
@@ -20,8 +31,8 @@ export function saveContainerTargetAiWorkflowConfig(props) {
|
|
|
20
31
|
* response reports project targetIncludeScope membership, include_scope_status, and
|
|
21
32
|
* account_enabled the same way as code-repo triage. Any other field is rejected.
|
|
22
33
|
* The fp_triage response returns the resolved variant rule (baseline when cleared).
|
|
23
|
-
* The
|
|
24
|
-
* or SCM connectivity check is performed on save.
|
|
34
|
+
* The remediation response returns the resolved view, the same shape as the GET.
|
|
35
|
+
* No STO target or SCM connectivity check is performed on save.
|
|
25
36
|
*
|
|
26
37
|
*/
|
|
27
38
|
export function useSaveContainerTargetAiWorkflowConfigMutation(options) {
|
|
@@ -197,6 +197,14 @@ export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSumm
|
|
|
197
197
|
export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
|
|
198
198
|
export type { GetZeroDayConfigErrorResponse, GetZeroDayConfigOkResponse, GetZeroDayConfigProps, } from './hooks/useGetZeroDayConfigQuery';
|
|
199
199
|
export { getZeroDayConfig, useGetZeroDayConfigQuery } from './hooks/useGetZeroDayConfigQuery';
|
|
200
|
+
export type { GetZeroDayExecutionAffectedTargetsErrorResponse, GetZeroDayExecutionAffectedTargetsOkResponse, GetZeroDayExecutionAffectedTargetsProps, GetZeroDayExecutionAffectedTargetsQueryPathParams, GetZeroDayExecutionAffectedTargetsQueryQueryParams, } from './hooks/useGetZeroDayExecutionAffectedTargetsQuery';
|
|
201
|
+
export { getZeroDayExecutionAffectedTargets, useGetZeroDayExecutionAffectedTargetsQuery, } from './hooks/useGetZeroDayExecutionAffectedTargetsQuery';
|
|
202
|
+
export type { GetZeroDayExecutionDetailErrorResponse, GetZeroDayExecutionDetailOkResponse, GetZeroDayExecutionDetailProps, GetZeroDayExecutionDetailQueryPathParams, GetZeroDayExecutionDetailQueryQueryParams, } from './hooks/useGetZeroDayExecutionDetailQuery';
|
|
203
|
+
export { getZeroDayExecutionDetail, useGetZeroDayExecutionDetailQuery, } from './hooks/useGetZeroDayExecutionDetailQuery';
|
|
204
|
+
export type { GetZeroDayExecutionStepsErrorResponse, GetZeroDayExecutionStepsOkResponse, GetZeroDayExecutionStepsProps, GetZeroDayExecutionStepsQueryPathParams, GetZeroDayExecutionStepsQueryQueryParams, } from './hooks/useGetZeroDayExecutionStepsQuery';
|
|
205
|
+
export { getZeroDayExecutionSteps, useGetZeroDayExecutionStepsQuery, } from './hooks/useGetZeroDayExecutionStepsQuery';
|
|
206
|
+
export type { GetZeroDayExecutionsErrorResponse, GetZeroDayExecutionsOkResponse, GetZeroDayExecutionsProps, GetZeroDayExecutionsQueryQueryParams, } from './hooks/useGetZeroDayExecutionsQuery';
|
|
207
|
+
export { getZeroDayExecutions, useGetZeroDayExecutionsQuery, } from './hooks/useGetZeroDayExecutionsQuery';
|
|
200
208
|
export type { GetZeroDayRerunStatusErrorResponse, GetZeroDayRerunStatusOkResponse, GetZeroDayRerunStatusProps, } from './hooks/useGetZeroDayRerunStatusQuery';
|
|
201
209
|
export { getZeroDayRerunStatus, useGetZeroDayRerunStatusQuery, } from './hooks/useGetZeroDayRerunStatusQuery';
|
|
202
210
|
export type { ImportLicenseFamilyConfigErrorResponse, ImportLicenseFamilyConfigMutationPathParams, ImportLicenseFamilyConfigOkResponse, ImportLicenseFamilyConfigProps, ImportLicenseFamilyConfigRequestBody, } from './hooks/useImportLicenseFamilyConfigMutation';
|
|
@@ -595,13 +603,22 @@ export type { ComplianceScanType } from './schemas/ComplianceScanType';
|
|
|
595
603
|
export type { ComplianceSourcePlatform } from './schemas/ComplianceSourcePlatform';
|
|
596
604
|
export type { ComplianceStandardType } from './schemas/ComplianceStandardType';
|
|
597
605
|
export type { ComplianceStandardsFilterEntity } from './schemas/ComplianceStandardsFilterEntity';
|
|
606
|
+
export type { ComponentCveCvssV3 } from './schemas/ComponentCveCvssV3';
|
|
607
|
+
export type { ComponentCveImpact } from './schemas/ComponentCveImpact';
|
|
598
608
|
export type { ComponentDependenciesResponse } from './schemas/ComponentDependenciesResponse';
|
|
609
|
+
export type { ComponentDependencyEdge } from './schemas/ComponentDependencyEdge';
|
|
610
|
+
export type { ComponentDependencyGraph } from './schemas/ComponentDependencyGraph';
|
|
599
611
|
export type { ComponentDependencyItem } from './schemas/ComponentDependencyItem';
|
|
612
|
+
export type { ComponentDependencyNode } from './schemas/ComponentDependencyNode';
|
|
600
613
|
export type { ComponentDrift } from './schemas/ComponentDrift';
|
|
601
614
|
export type { ComponentDriftSummary } from './schemas/ComponentDriftSummary';
|
|
602
615
|
export type { ComponentDto } from './schemas/ComponentDto';
|
|
603
616
|
export type { ComponentExemptionStatusFilter } from './schemas/ComponentExemptionStatusFilter';
|
|
604
617
|
export type { ComponentFilter } from './schemas/ComponentFilter';
|
|
618
|
+
export type { ComponentInfoRequest } from './schemas/ComponentInfoRequest';
|
|
619
|
+
export type { ComponentPackageCve } from './schemas/ComponentPackageCve';
|
|
620
|
+
export type { ComponentPackageInfo } from './schemas/ComponentPackageInfo';
|
|
621
|
+
export type { ComponentPackageScore } from './schemas/ComponentPackageScore';
|
|
605
622
|
export type { ComponentParent } from './schemas/ComponentParent';
|
|
606
623
|
export type { ComponentRemediationResponse } from './schemas/ComponentRemediationResponse';
|
|
607
624
|
export type { ComponentScore } from './schemas/ComponentScore';
|
|
@@ -888,6 +905,11 @@ export type { TicketInfo } from './schemas/TicketInfo';
|
|
|
888
905
|
export type { TokenIssueResponseBody } from './schemas/TokenIssueResponseBody';
|
|
889
906
|
export type { TokenIssueTokenResponseBody } from './schemas/TokenIssueTokenResponseBody';
|
|
890
907
|
export type { TriggerType } from './schemas/TriggerType';
|
|
908
|
+
export type { TrustedPublisherListResponse } from './schemas/TrustedPublisherListResponse';
|
|
909
|
+
export type { TrustedPublisherMatchField } from './schemas/TrustedPublisherMatchField';
|
|
910
|
+
export type { TrustedPublisherMatchRule } from './schemas/TrustedPublisherMatchRule';
|
|
911
|
+
export type { TrustedPublisherResponse } from './schemas/TrustedPublisherResponse';
|
|
912
|
+
export type { TrustedPublisherUpsertRequest } from './schemas/TrustedPublisherUpsertRequest';
|
|
891
913
|
export type { UpdateAiWorkflowExecutionStatusConflict } from './schemas/UpdateAiWorkflowExecutionStatusConflict';
|
|
892
914
|
export type { UpdateAiWorkflowExecutionStatusRequest } from './schemas/UpdateAiWorkflowExecutionStatusRequest';
|
|
893
915
|
export type { UpdateAiWorkflowExecutionStatusResponse } from './schemas/UpdateAiWorkflowExecutionStatusResponse';
|
|
@@ -909,10 +931,14 @@ export type { VulnerabilitySourceConfigRequestBody } from './schemas/Vulnerabili
|
|
|
909
931
|
export type { VulnerabilitySourceConfigResponse } from './schemas/VulnerabilitySourceConfigResponse';
|
|
910
932
|
export type { WorkflowSource } from './schemas/WorkflowSource';
|
|
911
933
|
export type { ZeroDayAlertConfig } from './schemas/ZeroDayAlertConfig';
|
|
934
|
+
export type { ZeroDayBackfillRequest } from './schemas/ZeroDayBackfillRequest';
|
|
935
|
+
export type { ZeroDayBackfillResponse } from './schemas/ZeroDayBackfillResponse';
|
|
912
936
|
export type { ZeroDayBatchAcceptedResponse } from './schemas/ZeroDayBatchAcceptedResponse';
|
|
913
937
|
export type { ZeroDayBatchConflictResponse } from './schemas/ZeroDayBatchConflictResponse';
|
|
914
938
|
export type { ZeroDayBatchDetailResponse } from './schemas/ZeroDayBatchDetailResponse';
|
|
915
939
|
export type { ZeroDayConfig } from './schemas/ZeroDayConfig';
|
|
940
|
+
export type { ZeroDayConfigEnabledUpdate } from './schemas/ZeroDayConfigEnabledUpdate';
|
|
941
|
+
export type { ZeroDayExecutionSummary } from './schemas/ZeroDayExecutionSummary';
|
|
916
942
|
export type { ZeroDayFindingDeleteResponse } from './schemas/ZeroDayFindingDeleteResponse';
|
|
917
943
|
export type { ZeroDayFindingResponse } from './schemas/ZeroDayFindingResponse';
|
|
918
944
|
export type { ZeroDayFindingUpdateRequest } from './schemas/ZeroDayFindingUpdateRequest';
|
|
@@ -97,6 +97,10 @@ export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomSc
|
|
|
97
97
|
export { getScannerConfiguration, useGetScannerConfigurationQuery, } from './hooks/useGetScannerConfigurationQuery';
|
|
98
98
|
export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
|
|
99
99
|
export { getZeroDayConfig, useGetZeroDayConfigQuery } from './hooks/useGetZeroDayConfigQuery';
|
|
100
|
+
export { getZeroDayExecutionAffectedTargets, useGetZeroDayExecutionAffectedTargetsQuery, } from './hooks/useGetZeroDayExecutionAffectedTargetsQuery';
|
|
101
|
+
export { getZeroDayExecutionDetail, useGetZeroDayExecutionDetailQuery, } from './hooks/useGetZeroDayExecutionDetailQuery';
|
|
102
|
+
export { getZeroDayExecutionSteps, useGetZeroDayExecutionStepsQuery, } from './hooks/useGetZeroDayExecutionStepsQuery';
|
|
103
|
+
export { getZeroDayExecutions, useGetZeroDayExecutionsQuery, } from './hooks/useGetZeroDayExecutionsQuery';
|
|
100
104
|
export { getZeroDayRerunStatus, useGetZeroDayRerunStatusQuery, } from './hooks/useGetZeroDayRerunStatusQuery';
|
|
101
105
|
export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
|
|
102
106
|
export { listAgentStatuses, useListAgentStatusesQuery } from './hooks/useListAgentStatusesQuery';
|
|
@@ -14,6 +14,9 @@ export interface AiWorkflowExecutionDetailResponse {
|
|
|
14
14
|
created_at?: number;
|
|
15
15
|
duration?: number;
|
|
16
16
|
execution_id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Why the run failed, or — on a persisted SKIPPED execution — why nothing was selected.
|
|
19
|
+
*/
|
|
17
20
|
failure_reason?: string;
|
|
18
21
|
pipeline_execution_id?: string;
|
|
19
22
|
run_number?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Type of AI workflow. dependency_remediation is
|
|
2
|
+
* Type of AI workflow. DEPRECATED value: dependency_remediation — the SCA flow folded into remediation and is discriminated by its dispatch placeholder, not the type. The spelling is still accepted on reads and the container-target/config endpoints (where it selects the SCA surface), but write paths that would silently remap it (config save, agent toggle) reject it with a 400 — use remediation, whose agent.sca block carries the SCA dependency-remediation config. The same policy applies to the agent.type key inside the config YAML body: dependency-remediation-agent is rejected on shared config and code-repo saves (the container-target endpoint still accepts it).
|
|
3
3
|
* @example "vulnerability"
|
|
4
4
|
*/
|
|
5
5
|
export type AiWorkflowTypeEnum = 'dependency_remediation' | 'fp_triage' | 'remediation' | 'vulnerability' | 'zero_day';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentDependencyEdge } from '../schemas/ComponentDependencyEdge';
|
|
2
|
+
import type { ComponentDependencyNode } from '../schemas/ComponentDependencyNode';
|
|
3
|
+
export interface ComponentDependencyGraph {
|
|
4
|
+
edges?: ComponentDependencyEdge[];
|
|
5
|
+
nodes?: ComponentDependencyNode[];
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ComponentCveImpact } from '../schemas/ComponentCveImpact';
|
|
2
|
+
export interface ComponentPackageCve {
|
|
3
|
+
affectedVersions?: string;
|
|
4
|
+
fixedVersions?: string[];
|
|
5
|
+
id?: string;
|
|
6
|
+
impact?: ComponentCveImpact;
|
|
7
|
+
/**
|
|
8
|
+
* Advisory id from the source database, for example the GHSA id behind a CVE id.
|
|
9
|
+
*/
|
|
10
|
+
internalId?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ComponentPackageCve } from '../schemas/ComponentPackageCve';
|
|
2
|
+
import type { ComponentDependencyGraph } from '../schemas/ComponentDependencyGraph';
|
|
3
|
+
import type { ComponentPackageScore } from '../schemas/ComponentPackageScore';
|
|
4
|
+
/**
|
|
5
|
+
* The component-data-service package_info entry for one purl. Only the fields the plugin reads are declared; the service returns more, and unknown fields are ignored.
|
|
6
|
+
*/
|
|
7
|
+
export interface ComponentPackageInfo {
|
|
8
|
+
abandoned?: boolean;
|
|
9
|
+
cves?: ComponentPackageCve[];
|
|
10
|
+
dependencyGraph?: ComponentDependencyGraph;
|
|
11
|
+
error?: string;
|
|
12
|
+
isDeprecated?: boolean;
|
|
13
|
+
isMalicious?: boolean;
|
|
14
|
+
latestVersion?: string;
|
|
15
|
+
packageScore?: ComponentPackageScore;
|
|
16
|
+
publishDate?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @format int64
|
|
19
|
+
*/
|
|
20
|
+
publishDateEpoch?: number;
|
|
21
|
+
purl?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { RemediationAgentCriteria } from '../schemas/RemediationAgentCriteria';
|
|
2
2
|
export interface InitiateRemediationAgentRequest {
|
|
3
|
+
/**
|
|
4
|
+
* Other STO scans of the same target that the caller deduplicated with scanId. Requires registerOnly. Stored on the execution so the STO write-back can stamp their occurrences too. Blank entries and copies of scanId are dropped.
|
|
5
|
+
*/
|
|
6
|
+
additionalScanIds?: string[];
|
|
3
7
|
/**
|
|
4
8
|
* Whether a vulnerable package may be upgraded to a pre-release version. Defaults to false.
|
|
5
9
|
*/
|
|
@@ -9,7 +13,7 @@ export interface InitiateRemediationAgentRequest {
|
|
|
9
13
|
*/
|
|
10
14
|
executionId?: string;
|
|
11
15
|
/**
|
|
12
|
-
* Highest semantic-version bump the agent may apply: PATCH, MINOR or
|
|
16
|
+
* Highest semantic-version bump the agent may apply: PATCH, MINOR, MAJOR or NONE (NONE selects no fix). Required when remediationCriteria selects at least one criterion; the request fails with a 400 when it is missing or unknown.
|
|
13
17
|
*/
|
|
14
18
|
maxVersionUpdate?: string;
|
|
15
19
|
/**
|
|
@@ -20,13 +24,17 @@ export interface InitiateRemediationAgentRequest {
|
|
|
20
24
|
* Caller's pipeline ID
|
|
21
25
|
*/
|
|
22
26
|
pipelineId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Register (or continue) the execution and resolve targetConfig and context without selecting findings: the response findings lists are empty, remediationCriteria and maxVersionUpdate are ignored, and the SKIPPED path never applies. Used by the multi-scan flow, where the caller selects fixes from its own deduplicated findings. Defaults to false.
|
|
29
|
+
*/
|
|
30
|
+
registerOnly?: boolean;
|
|
23
31
|
remediationCriteria?: RemediationAgentCriteria;
|
|
24
32
|
/**
|
|
25
33
|
* STO scan ID
|
|
26
34
|
*/
|
|
27
35
|
scanId: string;
|
|
28
36
|
/**
|
|
29
|
-
* Workflow type (
|
|
37
|
+
* Workflow type. The dependency-remediation initiate endpoint accepts remediation (legacy dependency_remediation spellings still resolve).
|
|
30
38
|
*/
|
|
31
39
|
workflowType: string;
|
|
32
40
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export interface RemediationAgentExecution {
|
|
2
|
+
/**
|
|
3
|
+
* The attempt-scoped callback handle of the run this response represents (the row's current correlationId), not the persistent row id. A later initiate that selects work reopens a FAILED or SKIPPED row and issues the new run a fresh handle, which is what that response returns; handles returned for earlier runs stop resolving. Only a synthetic SKIPPED response carries a deterministic `skipped-`-prefixed id that addresses no stored execution.
|
|
4
|
+
*/
|
|
2
5
|
executionId: string;
|
|
3
6
|
/**
|
|
4
|
-
* Why the
|
|
7
|
+
* Why the execution ended without remediation work. Present on FAILED executions (why the last run failed) and on persisted SKIPPED executions (why nothing was selected). Absent on synthetic (`skipped-` id) SKIPPED responses and on non-terminal statuses. A replayed terminal status is informational; callers must not start remediation work under it.
|
|
5
8
|
*/
|
|
6
9
|
failureReason?: string;
|
|
7
10
|
/**
|
|
8
|
-
* QUEUED|PENDING|RUNNING|COMPLETED|FAILED|SKIPPED. SKIPPED
|
|
11
|
+
* QUEUED|PENDING|RUNNING|COMPLETED|FAILED|SKIPPED. SKIPPED has two forms. When the request selected no remediation criterion or no package group resolved to a policy-compliant upgrade and none was handed to the agent to choose, the skip is persisted: executionId addresses a stored execution, failureReason states why nothing was selected, and findings is empty. A later initiate that selects work reopens the stored row back to RUNNING and returns the reopened run's fresh handle; one that still selects nothing replays the stored outcome. A SKIPPED row a worker pipeline step wrote can also be claimed by the scan-completion trigger, reopening as PENDING under that trigger's config. When the scan is an agent validation run, nothing is persisted: executionId is a deterministic synthetic value with a `skipped-` prefix, stable across retries of the same scan+target, and failureReason is absent. A request that selects a criterion without a valid maxVersionUpdate fails with a 400 instead.
|
|
9
12
|
*/
|
|
10
13
|
status: string;
|
|
11
14
|
targetId?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TrustedPublisherMatchField = 'Purl' | 'Supplier';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TrustedPublisherMatchField } from '../schemas/TrustedPublisherMatchField';
|
|
2
|
+
import type { Operator } from '../schemas/Operator';
|
|
3
|
+
export interface TrustedPublisherMatchRule {
|
|
4
|
+
field: TrustedPublisherMatchField;
|
|
5
|
+
operator: Operator;
|
|
6
|
+
value: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CreatedBy } from '../schemas/CreatedBy';
|
|
2
|
+
import type { TrustedPublisherMatchRule } from '../schemas/TrustedPublisherMatchRule';
|
|
3
|
+
export interface TrustedPublisherResponse {
|
|
4
|
+
description?: string;
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
id: string;
|
|
7
|
+
/**
|
|
8
|
+
* @format date-time
|
|
9
|
+
*/
|
|
10
|
+
last_modified_at?: string;
|
|
11
|
+
last_modified_by?: CreatedBy;
|
|
12
|
+
name: string;
|
|
13
|
+
rules: TrustedPublisherMatchRule[];
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TrustedPublisherMatchRule } from '../schemas/TrustedPublisherMatchRule';
|
|
2
|
+
export interface TrustedPublisherUpsertRequest {
|
|
3
|
+
description?: string;
|
|
4
|
+
/**
|
|
5
|
+
* On create, omitted means disabled until explicitly enabled (server default). On update, omitted leaves the current enabled state unchanged.
|
|
6
|
+
*/
|
|
7
|
+
enabled?: boolean;
|
|
8
|
+
name: string;
|
|
9
|
+
rules: TrustedPublisherMatchRule[];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface ZeroDayBackfillResponse {
|
|
2
|
+
account_id?: string;
|
|
3
|
+
/**
|
|
4
|
+
* False means the run completes without sending a notification
|
|
5
|
+
*/
|
|
6
|
+
alert_configured?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* run_in_progress when the account already has an active run
|
|
9
|
+
*/
|
|
10
|
+
reason?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The backfill run's id; set on 202 and on run_in_progress
|
|
13
|
+
*/
|
|
14
|
+
run_id?: string;
|
|
15
|
+
}
|
|
@@ -29,10 +29,18 @@ export interface ZeroDayBatchDetailResponse {
|
|
|
29
29
|
results_truncated?: boolean;
|
|
30
30
|
run_id?: string;
|
|
31
31
|
skipped_account_count?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Where the batch came from. BACKFILL batches target one account and their accepted_cluster_ids are excluded from feed-batch uniqueness and ingest dedup.
|
|
34
|
+
*/
|
|
35
|
+
source?: 'BACKFILL' | 'LIVE';
|
|
32
36
|
/**
|
|
33
37
|
* Dispatch outcome of the batch; unaffected by reruns
|
|
34
38
|
*/
|
|
35
39
|
status?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Accounts a targeted (backfill) batch is restricted to; null for the usual fan-out
|
|
42
|
+
*/
|
|
43
|
+
target_account_ids?: string[];
|
|
36
44
|
target_count?: number;
|
|
37
45
|
total_finding_count?: number;
|
|
38
46
|
triggered_account_count?: number;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AiWorkflowExecutionSummary } from '../schemas/AiWorkflowExecutionSummary';
|
|
2
|
+
export interface ZeroDayExecutionSummary extends AiWorkflowExecutionSummary {
|
|
3
|
+
/**
|
|
4
|
+
* Finding cluster this row describes
|
|
5
|
+
*/
|
|
6
|
+
cluster_id?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Where the execution came from; BACKFILL rows belong to a backfill run
|
|
9
|
+
*/
|
|
10
|
+
source?: 'BACKFILL' | 'LIVE';
|
|
11
|
+
/**
|
|
12
|
+
* True for runs started by the test trigger
|
|
13
|
+
*/
|
|
14
|
+
test?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -18,6 +18,14 @@ export interface ZeroDayFindingUpdateRequest {
|
|
|
18
18
|
source_updated_at?: string;
|
|
19
19
|
source_urls?: string[];
|
|
20
20
|
sources?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Feed-suggested fix version; takes precedence over fix_versions and the version recommendation
|
|
23
|
+
*/
|
|
24
|
+
suggested_fix_version?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Fallback list consulted when suggested_fix_version is blank; first non-blank wins
|
|
27
|
+
*/
|
|
28
|
+
suggested_fix_versions?: string[];
|
|
21
29
|
summary?: string;
|
|
22
30
|
version_validation?: string;
|
|
23
31
|
}
|
|
@@ -16,5 +16,13 @@ export interface ZeroDayTestTriggerRequest {
|
|
|
16
16
|
* Defaults to HIGH
|
|
17
17
|
*/
|
|
18
18
|
severity?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Feed-suggested fix version; takes precedence over fix_versions and the version recommendation
|
|
21
|
+
*/
|
|
22
|
+
suggested_fix_version?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Fallback list consulted when suggested_fix_version is blank; first non-blank wins
|
|
25
|
+
*/
|
|
26
|
+
suggested_fix_versions?: string[];
|
|
19
27
|
summary?: string;
|
|
20
28
|
}
|