@harnessio/react-ssca-manager-client 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (19) hide show
  1. package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.d.ts +4 -2
  2. package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.js +4 -2
  3. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionAffectedTargetsQuery.d.ts +34 -0
  4. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionAffectedTargetsQuery.js +14 -0
  5. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionDetailQuery.d.ts +25 -0
  6. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionDetailQuery.js +14 -0
  7. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionStepsQuery.d.ts +24 -0
  8. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionStepsQuery.js +14 -0
  9. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionsQuery.d.ts +41 -0
  10. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionsQuery.js +14 -0
  11. package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.d.ts +10 -3
  12. package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.js +10 -3
  13. package/dist/ssca-manager/src/services/index.d.ts +9 -0
  14. package/dist/ssca-manager/src/services/index.js +4 -0
  15. package/dist/ssca-manager/src/services/schemas/AiWorkflowTypeEnum.d.ts +1 -1
  16. package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentRequest.d.ts +2 -2
  17. package/dist/ssca-manager/src/services/schemas/ZeroDayExecutionSummary.d.ts +11 -0
  18. package/dist/ssca-manager/src/services/schemas/ZeroDayExecutionSummary.js +1 -0
  19. package/package.json +1 -1
@@ -22,8 +22,10 @@ export interface GetContainerTargetAiWorkflowConfigProps extends GetContainerTar
22
22
  export declare function getContainerTargetAiWorkflowConfig(props: GetContainerTargetAiWorkflowConfigProps): Promise<GetContainerTargetAiWorkflowConfigOkResponse>;
23
23
  /**
24
24
  * Get the raw overrides stored for a STO container target.
25
- * dependency_remediation (the default) returns target-owned fields only — variantScope,
26
- * repoUrl, dockerfilePath, scm, and the flat agent.validation* keys — not the effective
25
+ * remediation (the default — the SCA dependency-remediation surface; the deprecated
26
+ * dependency_remediation spelling selects it too) returns target-owned fields only —
27
+ * enabled, variantScope, repoUrl, dockerfilePath, scm, the flat agent.validation* keys,
28
+ * remediationCriteria, useStoApprovedBaseImages and maxVersionUpdate — not the effective
27
29
  * merged config.
28
30
  * fp_triage returns the resolved triage rule as agent.variantScope: the artifact's stored
29
31
  * rule when set (mode fixed with values, or mode regex with regex), otherwise mode baseline.
@@ -8,8 +8,10 @@ export function getContainerTargetAiWorkflowConfig(props) {
8
8
  }
9
9
  /**
10
10
  * Get the raw overrides stored for a STO container target.
11
- * dependency_remediation (the default) returns target-owned fields only — variantScope,
12
- * repoUrl, dockerfilePath, scm, and the flat agent.validation* keys — not the effective
11
+ * remediation (the default — the SCA dependency-remediation surface; the deprecated
12
+ * dependency_remediation spelling selects it too) returns target-owned fields only —
13
+ * enabled, variantScope, repoUrl, dockerfilePath, scm, the flat agent.validation* keys,
14
+ * remediationCriteria, useStoApprovedBaseImages and maxVersionUpdate — not the effective
13
15
  * merged config.
14
16
  * fp_triage returns the resolved triage rule as agent.variantScope: the artifact's stored
15
17
  * rule when set (mode fixed with values, or mode regex with regex), otherwise mode baseline.
@@ -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
+ }
@@ -27,8 +27,15 @@ export declare function saveContainerTargetAiWorkflowConfig(props: SaveContainer
27
27
  * Create or update overrides for a STO container target.
28
28
  * Presence-aware semantics: an omitted field preserves the stored override, an explicit
29
29
  * null or blank value clears it, and a value sets it.
30
- * dependency_remediation (the default) accepts agent.variantScope (baseline|all|fixed|regex),
31
- * agent.repoUrl, agent.dockerfilePath, agent.scm, and the flat validation keys
30
+ * remediation (the default — the SCA dependency-remediation surface; the deprecated
31
+ * dependency_remediation spelling is still accepted) accepts agent.enabled (a stored false
32
+ * suppresses remediation for this target; null inherits), agent.variantScope
33
+ * (baseline|all|fixed|regex),
34
+ * agent.repoUrl, agent.dockerfilePath, agent.scm, the sca selection-policy overrides
35
+ * agent.remediationCriteria (cisaKev, exploitable, reachable, epssProbability —
36
+ * gte_15|gte_5|gte_1 or blank to disable the gate), agent.useStoApprovedBaseImages and
37
+ * agent.maxVersionUpdate (patch|minor|major|none — none blocks every version bump), and the
38
+ * flat validation keys
32
39
  * agent.validationMode (agent_validated|deferred), agent.validationPipelineId,
33
40
  * agent.validationPipelineOrg, agent.validationPipelineProject, agent.buildStepId and
34
41
  * agent.scanStepId.
@@ -37,7 +44,7 @@ export declare function saveContainerTargetAiWorkflowConfig(props: SaveContainer
37
44
  * response reports project targetIncludeScope membership, include_scope_status, and
38
45
  * account_enabled the same way as code-repo triage. Any other field is rejected.
39
46
  * The fp_triage response returns the resolved variant rule (baseline when cleared).
40
- * The dependency_remediation response returns the stored raw overrides. No STO target
47
+ * The remediation response returns the stored raw overrides. No STO target
41
48
  * or SCM connectivity check is performed on save.
42
49
  *
43
50
  */
@@ -10,8 +10,15 @@ export function saveContainerTargetAiWorkflowConfig(props) {
10
10
  * Create or update overrides for a STO container target.
11
11
  * Presence-aware semantics: an omitted field preserves the stored override, an explicit
12
12
  * null or blank value clears it, and a value sets it.
13
- * dependency_remediation (the default) accepts agent.variantScope (baseline|all|fixed|regex),
14
- * agent.repoUrl, agent.dockerfilePath, agent.scm, and the flat validation keys
13
+ * remediation (the default — the SCA dependency-remediation surface; the deprecated
14
+ * dependency_remediation spelling is still accepted) accepts agent.enabled (a stored false
15
+ * suppresses remediation for this target; null inherits), agent.variantScope
16
+ * (baseline|all|fixed|regex),
17
+ * agent.repoUrl, agent.dockerfilePath, agent.scm, the sca selection-policy overrides
18
+ * agent.remediationCriteria (cisaKev, exploitable, reachable, epssProbability —
19
+ * gte_15|gte_5|gte_1 or blank to disable the gate), agent.useStoApprovedBaseImages and
20
+ * agent.maxVersionUpdate (patch|minor|major|none — none blocks every version bump), and the
21
+ * flat validation keys
15
22
  * agent.validationMode (agent_validated|deferred), agent.validationPipelineId,
16
23
  * agent.validationPipelineOrg, agent.validationPipelineProject, agent.buildStepId and
17
24
  * agent.scanStepId.
@@ -20,7 +27,7 @@ export function saveContainerTargetAiWorkflowConfig(props) {
20
27
  * response reports project targetIncludeScope membership, include_scope_status, and
21
28
  * account_enabled the same way as code-repo triage. Any other field is rejected.
22
29
  * The fp_triage response returns the resolved variant rule (baseline when cleared).
23
- * The dependency_remediation response returns the stored raw overrides. No STO target
30
+ * The remediation response returns the stored raw overrides. No STO target
24
31
  * or SCM connectivity check is performed on save.
25
32
  *
26
33
  */
@@ -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';
@@ -913,6 +921,7 @@ export type { ZeroDayBatchAcceptedResponse } from './schemas/ZeroDayBatchAccepte
913
921
  export type { ZeroDayBatchConflictResponse } from './schemas/ZeroDayBatchConflictResponse';
914
922
  export type { ZeroDayBatchDetailResponse } from './schemas/ZeroDayBatchDetailResponse';
915
923
  export type { ZeroDayConfig } from './schemas/ZeroDayConfig';
924
+ export type { ZeroDayExecutionSummary } from './schemas/ZeroDayExecutionSummary';
916
925
  export type { ZeroDayFindingDeleteResponse } from './schemas/ZeroDayFindingDeleteResponse';
917
926
  export type { ZeroDayFindingResponse } from './schemas/ZeroDayFindingResponse';
918
927
  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';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Type of AI workflow. dependency_remediation is an execution-type label only: it appears on execution records and is not a valid agent type for config save/get/toggle calls (use remediation, whose agent.sca block carries the SCA dependency-remediation config).
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.
3
3
  * @example "vulnerability"
4
4
  */
5
5
  export type AiWorkflowTypeEnum = 'dependency_remediation' | 'fp_triage' | 'remediation' | 'vulnerability' | 'zero_day';
@@ -9,7 +9,7 @@ export interface InitiateRemediationAgentRequest {
9
9
  */
10
10
  executionId?: string;
11
11
  /**
12
- * Highest semantic-version bump the agent may apply: PATCH, MINOR or MAJOR. Required when remediationCriteria selects at least one criterion; the request fails with a 400 when it is missing or unknown.
12
+ * 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
13
  */
14
14
  maxVersionUpdate?: string;
15
15
  /**
@@ -26,7 +26,7 @@ export interface InitiateRemediationAgentRequest {
26
26
  */
27
27
  scanId: string;
28
28
  /**
29
- * Workflow type (e.g. DEPENDENCY_REMEDIATION)
29
+ * Workflow type. The dependency-remediation initiate endpoint accepts remediation (legacy dependency_remediation spellings still resolve).
30
30
  */
31
31
  workflowType: string;
32
32
  }
@@ -0,0 +1,11 @@
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
+ * True for runs started by the test trigger
9
+ */
10
+ test?: boolean;
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",