@harnessio/react-ssca-manager-client 0.86.28 → 1.0.1

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 (83) hide show
  1. package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.d.ts +33 -0
  2. package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.js +27 -0
  3. package/dist/ssca-manager/src/services/hooks/useGetZeroDayConfigQuery.d.ts +16 -0
  4. package/dist/ssca-manager/src/services/hooks/useGetZeroDayConfigQuery.js +14 -0
  5. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionAffectedTargetsQuery.d.ts +34 -0
  6. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionAffectedTargetsQuery.js +14 -0
  7. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionDetailQuery.d.ts +25 -0
  8. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionDetailQuery.js +14 -0
  9. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionStepsQuery.d.ts +24 -0
  10. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionStepsQuery.js +14 -0
  11. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionsQuery.d.ts +41 -0
  12. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionsQuery.js +14 -0
  13. package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.d.ts +39 -0
  14. package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.js +24 -0
  15. package/dist/ssca-manager/src/services/hooks/useSaveZeroDayConfigMutation.d.ts +18 -0
  16. package/dist/ssca-manager/src/services/hooks/useSaveZeroDayConfigMutation.js +14 -0
  17. package/dist/ssca-manager/src/services/index.d.ts +43 -5
  18. package/dist/ssca-manager/src/services/index.js +8 -0
  19. package/dist/ssca-manager/src/services/schemas/DependencyRemediationAgentSelection.d.ts +29 -0
  20. package/dist/ssca-manager/src/services/schemas/DependencyRemediationAgentSelectionFinding.d.ts +15 -0
  21. package/dist/ssca-manager/src/services/schemas/DependencyRemediationAgentSelectionVulnerability.d.ts +14 -0
  22. package/dist/ssca-manager/src/services/schemas/DependencyRemediationFinding.d.ts +23 -1
  23. package/dist/ssca-manager/src/services/schemas/DependencyRemediationFinding.js +0 -3
  24. package/dist/ssca-manager/src/services/schemas/DependencyRemediationUnresolvedFinding.d.ts +29 -0
  25. package/dist/ssca-manager/src/services/schemas/DependencyRemediationVulnerability.d.ts +10 -0
  26. package/dist/ssca-manager/src/services/schemas/DependencyRemediationVulnerability.js +4 -0
  27. package/dist/ssca-manager/src/services/schemas/InitiateRemediationAgentResponse.d.ts +11 -1
  28. package/dist/ssca-manager/src/services/schemas/RemediationAgentExecution.d.ts +1 -1
  29. package/dist/ssca-manager/src/services/schemas/RemediationAgentInitiateContext.d.ts +4 -0
  30. package/dist/ssca-manager/src/services/schemas/ZeroDayAlertConfig.d.ts +21 -0
  31. package/dist/ssca-manager/src/services/schemas/ZeroDayAlertConfig.js +4 -0
  32. package/dist/ssca-manager/src/services/schemas/ZeroDayBatchAcceptedResponse.d.ts +17 -0
  33. package/dist/ssca-manager/src/services/schemas/ZeroDayBatchAcceptedResponse.js +4 -0
  34. package/dist/ssca-manager/src/services/schemas/ZeroDayBatchConflictResponse.d.ts +11 -0
  35. package/dist/ssca-manager/src/services/schemas/ZeroDayBatchConflictResponse.js +4 -0
  36. package/dist/ssca-manager/src/services/schemas/ZeroDayBatchDetailResponse.d.ts +45 -0
  37. package/dist/ssca-manager/src/services/schemas/ZeroDayBatchDetailResponse.js +4 -0
  38. package/dist/ssca-manager/src/services/schemas/ZeroDayConfig.d.ts +14 -0
  39. package/dist/ssca-manager/src/services/schemas/ZeroDayExecutionSummary.d.ts +11 -0
  40. package/dist/ssca-manager/src/services/schemas/ZeroDayExecutionSummary.js +1 -0
  41. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingDeleteResponse.d.ts +8 -0
  42. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingDeleteResponse.js +4 -0
  43. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingResponse.d.ts +25 -0
  44. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingResponse.js +4 -0
  45. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingUpdateRequest.d.ts +23 -0
  46. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingUpdateRequest.js +4 -0
  47. package/dist/ssca-manager/src/services/schemas/ZeroDayInfrastructure.d.ts +25 -0
  48. package/dist/ssca-manager/src/services/schemas/ZeroDayInfrastructure.js +4 -0
  49. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalAlertContext.d.ts +16 -0
  50. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalAlertContext.js +4 -0
  51. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalConflictResponse.d.ts +5 -0
  52. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalConflictResponse.js +4 -0
  53. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalIdentificationStatusResponse.d.ts +16 -0
  54. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalIdentificationStatusResponse.js +4 -0
  55. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalNotifyResponse.d.ts +17 -0
  56. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalNotifyResponse.js +4 -0
  57. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultRequest.d.ts +8 -0
  58. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultRequest.js +4 -0
  59. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultResponse.d.ts +5 -0
  60. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultResponse.js +4 -0
  61. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStartIdentificationResponse.d.ts +5 -0
  62. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStartIdentificationResponse.js +4 -0
  63. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusRequest.d.ts +4 -0
  64. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusRequest.js +4 -0
  65. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusResponse.d.ts +5 -0
  66. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusResponse.js +4 -0
  67. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionRequest.d.ts +6 -0
  68. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionRequest.js +4 -0
  69. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionResponse.d.ts +4 -0
  70. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionResponse.js +4 -0
  71. package/dist/ssca-manager/src/services/schemas/ZeroDayTestTriggerRequest.d.ts +20 -0
  72. package/dist/ssca-manager/src/services/schemas/ZeroDayTestTriggerRequest.js +4 -0
  73. package/package.json +1 -1
  74. package/dist/ssca-manager/src/services/schemas/RemediationAgentBaseImage.d.ts +0 -8
  75. package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfile.d.ts +0 -8
  76. package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanExecution.d.ts +0 -15
  77. package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanRequest.d.ts +0 -18
  78. package/dist/ssca-manager/src/services/schemas/RemediationAgentDockerfileScanResult.d.ts +0 -17
  79. /package/dist/ssca-manager/src/services/schemas/{RemediationAgentDockerfile.js → DependencyRemediationAgentSelection.js} +0 -0
  80. /package/dist/ssca-manager/src/services/schemas/{RemediationAgentBaseImage.js → DependencyRemediationAgentSelectionFinding.js} +0 -0
  81. /package/dist/ssca-manager/src/services/schemas/{RemediationAgentDockerfileScanExecution.js → DependencyRemediationAgentSelectionVulnerability.js} +0 -0
  82. /package/dist/ssca-manager/src/services/schemas/{RemediationAgentDockerfileScanRequest.js → DependencyRemediationUnresolvedFinding.js} +0 -0
  83. /package/dist/ssca-manager/src/services/schemas/{RemediationAgentDockerfileScanResult.js → ZeroDayConfig.js} +0 -0
@@ -0,0 +1,33 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AiWorkflowConfigYamlResponse } from '../schemas/AiWorkflowConfigYamlResponse';
3
+ import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
4
+ import type { ResponseWithPagination } from '../helpers';
5
+ import { FetcherOptions } from '../../../../fetcher/index.js';
6
+ export interface GetContainerTargetAiWorkflowConfigQueryPathParams {
7
+ org: string;
8
+ project: string;
9
+ targetId: string;
10
+ }
11
+ export interface GetContainerTargetAiWorkflowConfigQueryQueryParams {
12
+ ai_workflow_type?: AiWorkflowTypeEnum;
13
+ }
14
+ export interface GetContainerTargetAiWorkflowConfigQueryHeaderParams {
15
+ 'Harness-Account': string;
16
+ }
17
+ export type GetContainerTargetAiWorkflowConfigOkResponse = ResponseWithPagination<AiWorkflowConfigYamlResponse>;
18
+ export type GetContainerTargetAiWorkflowConfigErrorResponse = unknown;
19
+ export interface GetContainerTargetAiWorkflowConfigProps extends GetContainerTargetAiWorkflowConfigQueryPathParams, Omit<FetcherOptions<GetContainerTargetAiWorkflowConfigQueryQueryParams, unknown, GetContainerTargetAiWorkflowConfigQueryHeaderParams>, 'url'> {
20
+ queryParams: GetContainerTargetAiWorkflowConfigQueryQueryParams;
21
+ }
22
+ export declare function getContainerTargetAiWorkflowConfig(props: GetContainerTargetAiWorkflowConfigProps): Promise<GetContainerTargetAiWorkflowConfigOkResponse>;
23
+ /**
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 agent.validation — not the effective merged config.
27
+ * fp_triage returns only agent.variantScope from the triage rule on the same document.
28
+ * A target with no document returns a minimal payload containing only the agent type.
29
+ * Clearing a field restores inheritance from the effective agent config for dependency
30
+ * remediation, and restores baseline-only triage when the triage variantScope is cleared.
31
+ *
32
+ */
33
+ export declare function useGetContainerTargetAiWorkflowConfigQuery(props: GetContainerTargetAiWorkflowConfigProps, options?: Omit<UseQueryOptions<GetContainerTargetAiWorkflowConfigOkResponse, GetContainerTargetAiWorkflowConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetContainerTargetAiWorkflowConfigOkResponse, unknown>;
@@ -0,0 +1,27 @@
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 getContainerTargetAiWorkflowConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-config/container-targets/${props.targetId}`, method: 'GET' }, props));
8
+ }
9
+ /**
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 agent.validation — not the effective merged config.
13
+ * fp_triage returns only agent.variantScope from the triage rule on the same document.
14
+ * A target with no document returns a minimal payload containing only the agent type.
15
+ * Clearing a field restores inheritance from the effective agent config for dependency
16
+ * remediation, and restores baseline-only triage when the triage variantScope is cleared.
17
+ *
18
+ */
19
+ export function useGetContainerTargetAiWorkflowConfigQuery(props, options) {
20
+ return useQuery([
21
+ 'getContainerTargetAIWorkflowConfig',
22
+ props.org,
23
+ props.project,
24
+ props.targetId,
25
+ props.queryParams,
26
+ ], ({ signal }) => getContainerTargetAiWorkflowConfig(Object.assign(Object.assign({}, props), { signal })), options);
27
+ }
@@ -0,0 +1,16 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ZeroDayConfig } from '../schemas/ZeroDayConfig';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetZeroDayConfigQueryHeaderParams {
6
+ 'Harness-Account': string;
7
+ }
8
+ export type GetZeroDayConfigOkResponse = ResponseWithPagination<ZeroDayConfig>;
9
+ export type GetZeroDayConfigErrorResponse = unknown;
10
+ export interface GetZeroDayConfigProps extends Omit<FetcherOptions<unknown, unknown, GetZeroDayConfigQueryHeaderParams>, 'url'> {
11
+ }
12
+ export declare function getZeroDayConfig(props: GetZeroDayConfigProps): Promise<GetZeroDayConfigOkResponse>;
13
+ /**
14
+ * Returns the account-level zero-day configuration. Stored in the dedicated zeroDayConfigs collection; independent of the AI workflow config. Every zero-day endpoint fails closed: it returns 403 whenever the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag is off for the account, including when the flag state cannot be read.
15
+ */
16
+ export declare function useGetZeroDayConfigQuery(props: GetZeroDayConfigProps, options?: Omit<UseQueryOptions<GetZeroDayConfigOkResponse, GetZeroDayConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetZeroDayConfigOkResponse, 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 getZeroDayConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/zero-day/config`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Returns the account-level zero-day configuration. Stored in the dedicated zeroDayConfigs collection; independent of the AI workflow config. Every zero-day endpoint fails closed: it returns 403 whenever the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag is off for the account, including when the flag state cannot be read.
11
+ */
12
+ export function useGetZeroDayConfigQuery(props, options) {
13
+ return useQuery(['getZeroDayConfig'], ({ signal }) => getZeroDayConfig(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -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
+ }
@@ -0,0 +1,39 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { AiWorkflowConfigYamlResponse } from '../schemas/AiWorkflowConfigYamlResponse';
3
+ import type { AiWorkflowConfigYamlRequest } from '../schemas/AiWorkflowConfigYamlRequest';
4
+ import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
5
+ import type { ResponseWithPagination } from '../helpers';
6
+ import { FetcherOptions } from '../../../../fetcher/index.js';
7
+ export interface SaveContainerTargetAiWorkflowConfigMutationPathParams {
8
+ org: string;
9
+ project: string;
10
+ targetId: string;
11
+ }
12
+ export interface SaveContainerTargetAiWorkflowConfigMutationQueryParams {
13
+ ai_workflow_type?: AiWorkflowTypeEnum;
14
+ }
15
+ export interface SaveContainerTargetAiWorkflowConfigMutationHeaderParams {
16
+ 'Harness-Account': string;
17
+ }
18
+ export type SaveContainerTargetAiWorkflowConfigRequestBody = AiWorkflowConfigYamlRequest;
19
+ export type SaveContainerTargetAiWorkflowConfigOkResponse = ResponseWithPagination<AiWorkflowConfigYamlResponse>;
20
+ export type SaveContainerTargetAiWorkflowConfigErrorResponse = unknown;
21
+ export interface SaveContainerTargetAiWorkflowConfigProps extends SaveContainerTargetAiWorkflowConfigMutationPathParams, Omit<FetcherOptions<SaveContainerTargetAiWorkflowConfigMutationQueryParams, SaveContainerTargetAiWorkflowConfigRequestBody, SaveContainerTargetAiWorkflowConfigMutationHeaderParams>, 'url'> {
22
+ queryParams: SaveContainerTargetAiWorkflowConfigMutationQueryParams;
23
+ body: SaveContainerTargetAiWorkflowConfigRequestBody;
24
+ }
25
+ export declare function saveContainerTargetAiWorkflowConfig(props: SaveContainerTargetAiWorkflowConfigProps): Promise<SaveContainerTargetAiWorkflowConfigOkResponse>;
26
+ /**
27
+ * Create or update overrides for a STO container target.
28
+ * Presence-aware semantics: an omitted field preserves the stored override, an explicit
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 agent.validation (pipeline,
32
+ * buildStepId, scanStepId, pushStepId, mustVerifyFix, mustPassChecks).
33
+ * fp_triage accepts only agent.variantScope in that same shape and stores it separately
34
+ * from the dependency-remediation rule. Any other field is rejected. The response returns
35
+ * the stored raw overrides for the requested agent. No STO target or SCM connectivity
36
+ * check is performed on save.
37
+ *
38
+ */
39
+ export declare function useSaveContainerTargetAiWorkflowConfigMutation(options?: Omit<UseMutationOptions<SaveContainerTargetAiWorkflowConfigOkResponse, SaveContainerTargetAiWorkflowConfigErrorResponse, SaveContainerTargetAiWorkflowConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveContainerTargetAiWorkflowConfigOkResponse, unknown, SaveContainerTargetAiWorkflowConfigProps, unknown>;
@@ -0,0 +1,24 @@
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 saveContainerTargetAiWorkflowConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-config/container-targets/${props.targetId}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Create or update overrides for a STO container target.
11
+ * Presence-aware semantics: an omitted field preserves the stored override, an explicit
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 agent.validation (pipeline,
15
+ * buildStepId, scanStepId, pushStepId, mustVerifyFix, mustPassChecks).
16
+ * fp_triage accepts only agent.variantScope in that same shape and stores it separately
17
+ * from the dependency-remediation rule. Any other field is rejected. The response returns
18
+ * the stored raw overrides for the requested agent. No STO target or SCM connectivity
19
+ * check is performed on save.
20
+ *
21
+ */
22
+ export function useSaveContainerTargetAiWorkflowConfigMutation(options) {
23
+ return useMutation((mutateProps) => saveContainerTargetAiWorkflowConfig(mutateProps), options);
24
+ }
@@ -0,0 +1,18 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ZeroDayConfig } from '../schemas/ZeroDayConfig';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface SaveZeroDayConfigMutationHeaderParams {
6
+ 'Harness-Account': string;
7
+ }
8
+ export type SaveZeroDayConfigRequestBody = ZeroDayConfig;
9
+ export type SaveZeroDayConfigOkResponse = ResponseWithPagination<ZeroDayConfig>;
10
+ export type SaveZeroDayConfigErrorResponse = unknown;
11
+ export interface SaveZeroDayConfigProps extends Omit<FetcherOptions<unknown, SaveZeroDayConfigRequestBody, SaveZeroDayConfigMutationHeaderParams>, 'url'> {
12
+ body: SaveZeroDayConfigRequestBody;
13
+ }
14
+ export declare function saveZeroDayConfig(props: SaveZeroDayConfigProps): Promise<SaveZeroDayConfigOkResponse>;
15
+ /**
16
+ * Full replace: the stored configuration becomes exactly the request body, so a field that is omitted is cleared, not kept. Send the complete configuration on every call. Fails closed with 403 when the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag is off.
17
+ */
18
+ export declare function useSaveZeroDayConfigMutation(options?: Omit<UseMutationOptions<SaveZeroDayConfigOkResponse, SaveZeroDayConfigErrorResponse, SaveZeroDayConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveZeroDayConfigOkResponse, unknown, SaveZeroDayConfigProps, 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 saveZeroDayConfig(props) {
7
+ return fetcher(Object.assign({ url: `/v1/zero-day/config`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Full replace: the stored configuration becomes exactly the request body, so a field that is omitted is cleared, not kept. Send the complete configuration on every call. Fails closed with 403 when the SCS_ZERO_DAY_GLOBAL_FINDINGS feature flag is off.
11
+ */
12
+ export function useSaveZeroDayConfigMutation(options) {
13
+ return useMutation((mutateProps) => saveZeroDayConfig(mutateProps), options);
14
+ }
@@ -143,6 +143,8 @@ export type { GetComponentsErrorResponse, GetComponentsOkResponse, GetComponents
143
143
  export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
144
144
  export type { GetConnectorConfigErrorResponse, GetConnectorConfigOkResponse, GetConnectorConfigProps, GetConnectorConfigQueryQueryParams, } from './hooks/useGetConnectorConfigQuery';
145
145
  export { getConnectorConfig, useGetConnectorConfigQuery } from './hooks/useGetConnectorConfigQuery';
146
+ export type { GetContainerTargetAiWorkflowConfigErrorResponse, GetContainerTargetAiWorkflowConfigOkResponse, GetContainerTargetAiWorkflowConfigProps, GetContainerTargetAiWorkflowConfigQueryPathParams, GetContainerTargetAiWorkflowConfigQueryQueryParams, } from './hooks/useGetContainerTargetAiWorkflowConfigQuery';
147
+ export { getContainerTargetAiWorkflowConfig, useGetContainerTargetAiWorkflowConfigQuery, } from './hooks/useGetContainerTargetAiWorkflowConfigQuery';
146
148
  export type { GetDeploymentsListForArtifactInRemediationErrorResponse, GetDeploymentsListForArtifactInRemediationOkResponse, GetDeploymentsListForArtifactInRemediationProps, GetDeploymentsListForArtifactInRemediationQueryPathParams, GetDeploymentsListForArtifactInRemediationQueryQueryParams, GetDeploymentsListForArtifactInRemediationRequestBody, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
147
149
  export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
148
150
  export type { GetEnvironmentListForRemediationErrorResponse, GetEnvironmentListForRemediationOkResponse, GetEnvironmentListForRemediationProps, GetEnvironmentListForRemediationQueryPathParams, GetEnvironmentListForRemediationQueryQueryParams, } from './hooks/useGetEnvironmentListForRemediationQuery';
@@ -193,6 +195,16 @@ export type { GetScannerConfigurationErrorResponse, GetScannerConfigurationOkRes
193
195
  export { getScannerConfiguration, useGetScannerConfigurationQuery, } from './hooks/useGetScannerConfigurationQuery';
194
196
  export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSummaryProps, GetSscaSummaryQueryPathParams, } from './hooks/useGetSscaSummaryQuery';
195
197
  export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
198
+ export type { GetZeroDayConfigErrorResponse, GetZeroDayConfigOkResponse, GetZeroDayConfigProps, } from './hooks/useGetZeroDayConfigQuery';
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';
196
208
  export type { GetZeroDayRerunStatusErrorResponse, GetZeroDayRerunStatusOkResponse, GetZeroDayRerunStatusProps, } from './hooks/useGetZeroDayRerunStatusQuery';
197
209
  export { getZeroDayRerunStatus, useGetZeroDayRerunStatusQuery, } from './hooks/useGetZeroDayRerunStatusQuery';
198
210
  export type { ImportLicenseFamilyConfigErrorResponse, ImportLicenseFamilyConfigMutationPathParams, ImportLicenseFamilyConfigOkResponse, ImportLicenseFamilyConfigProps, ImportLicenseFamilyConfigRequestBody, } from './hooks/useImportLicenseFamilyConfigMutation';
@@ -237,10 +249,14 @@ export type { SaveCodeRepoAiWorkflowConfigErrorResponse, SaveCodeRepoAiWorkflowC
237
249
  export { saveCodeRepoAiWorkflowConfig, useSaveCodeRepoAiWorkflowConfigMutation, } from './hooks/useSaveCodeRepoAiWorkflowConfigMutation';
238
250
  export type { SaveConnectorConfigErrorResponse, SaveConnectorConfigOkResponse, SaveConnectorConfigProps, SaveConnectorConfigRequestBody, } from './hooks/useSaveConnectorConfigMutation';
239
251
  export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
252
+ export type { SaveContainerTargetAiWorkflowConfigErrorResponse, SaveContainerTargetAiWorkflowConfigMutationPathParams, SaveContainerTargetAiWorkflowConfigMutationQueryParams, SaveContainerTargetAiWorkflowConfigOkResponse, SaveContainerTargetAiWorkflowConfigProps, SaveContainerTargetAiWorkflowConfigRequestBody, } from './hooks/useSaveContainerTargetAiWorkflowConfigMutation';
253
+ export { saveContainerTargetAiWorkflowConfig, useSaveContainerTargetAiWorkflowConfigMutation, } from './hooks/useSaveContainerTargetAiWorkflowConfigMutation';
240
254
  export type { SaveOssScoringCapConfigErrorResponse, SaveOssScoringCapConfigOkResponse, SaveOssScoringCapConfigProps, SaveOssScoringCapConfigRequestBody, } from './hooks/useSaveOssScoringCapConfigQuery';
241
255
  export { saveOssScoringCapConfig, useSaveOssScoringCapConfigQuery, } from './hooks/useSaveOssScoringCapConfigQuery';
242
256
  export type { SaveProjectAiWorkflowConfigErrorResponse, SaveProjectAiWorkflowConfigMutationPathParams, SaveProjectAiWorkflowConfigMutationQueryParams, SaveProjectAiWorkflowConfigOkResponse, SaveProjectAiWorkflowConfigProps, SaveProjectAiWorkflowConfigRequestBody, } from './hooks/useSaveProjectAiWorkflowConfigMutation';
243
257
  export { saveProjectAiWorkflowConfig, useSaveProjectAiWorkflowConfigMutation, } from './hooks/useSaveProjectAiWorkflowConfigMutation';
258
+ export type { SaveZeroDayConfigErrorResponse, SaveZeroDayConfigOkResponse, SaveZeroDayConfigProps, SaveZeroDayConfigRequestBody, } from './hooks/useSaveZeroDayConfigMutation';
259
+ export { saveZeroDayConfig, useSaveZeroDayConfigMutation, } from './hooks/useSaveZeroDayConfigMutation';
244
260
  export type { SetBaselineForArtifactV2ErrorResponse, SetBaselineForArtifactV2MutationPathParams, SetBaselineForArtifactV2OkResponse, SetBaselineForArtifactV2Props, SetBaselineForArtifactV2RequestBody, } from './hooks/useSetBaselineForArtifactV2Mutation';
245
261
  export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
246
262
  export type { SscaLicenseUsageErrorResponse, SscaLicenseUsageOkResponse, SscaLicenseUsageProps, SscaLicenseUsageQueryQueryParams, } from './hooks/useSscaLicenseUsageQuery';
@@ -626,7 +642,12 @@ export type { DefaultVulnerability } from './schemas/DefaultVulnerability';
626
642
  export type { DeleteRepositoriesRequestBody } from './schemas/DeleteRepositoriesRequestBody';
627
643
  export type { DependencyChange } from './schemas/DependencyChange';
628
644
  export type { DependencyChanges } from './schemas/DependencyChanges';
645
+ export type { DependencyRemediationAgentSelection } from './schemas/DependencyRemediationAgentSelection';
646
+ export type { DependencyRemediationAgentSelectionFinding } from './schemas/DependencyRemediationAgentSelectionFinding';
647
+ export type { DependencyRemediationAgentSelectionVulnerability } from './schemas/DependencyRemediationAgentSelectionVulnerability';
629
648
  export type { DependencyRemediationFinding } from './schemas/DependencyRemediationFinding';
649
+ export type { DependencyRemediationUnresolvedFinding } from './schemas/DependencyRemediationUnresolvedFinding';
650
+ export type { DependencyRemediationVulnerability } from './schemas/DependencyRemediationVulnerability';
630
651
  export type { DependencyType } from './schemas/DependencyType';
631
652
  export type { DeploymentActivity } from './schemas/DeploymentActivity';
632
653
  export type { Deployments } from './schemas/Deployments';
@@ -779,15 +800,10 @@ export type { ProvenanceRequestBodyV2 } from './schemas/ProvenanceRequestBodyV2'
779
800
  export type { ProvenanceResponseBody } from './schemas/ProvenanceResponseBody';
780
801
  export type { RekorLog } from './schemas/RekorLog';
781
802
  export type { RemediationAgentApprovedBaseImageVariant } from './schemas/RemediationAgentApprovedBaseImageVariant';
782
- export type { RemediationAgentBaseImage } from './schemas/RemediationAgentBaseImage';
783
803
  export type { RemediationAgentBaseImageApproval } from './schemas/RemediationAgentBaseImageApproval';
784
804
  export type { RemediationAgentBaseImageApprovalRequest } from './schemas/RemediationAgentBaseImageApprovalRequest';
785
805
  export type { RemediationAgentBaseImageApprovalResponse } from './schemas/RemediationAgentBaseImageApprovalResponse';
786
806
  export type { RemediationAgentCriteria } from './schemas/RemediationAgentCriteria';
787
- export type { RemediationAgentDockerfile } from './schemas/RemediationAgentDockerfile';
788
- export type { RemediationAgentDockerfileScanExecution } from './schemas/RemediationAgentDockerfileScanExecution';
789
- export type { RemediationAgentDockerfileScanRequest } from './schemas/RemediationAgentDockerfileScanRequest';
790
- export type { RemediationAgentDockerfileScanResult } from './schemas/RemediationAgentDockerfileScanResult';
791
807
  export type { RemediationAgentExecution } from './schemas/RemediationAgentExecution';
792
808
  export type { RemediationAgentInitiateContext } from './schemas/RemediationAgentInitiateContext';
793
809
  export type { RemediationAgentTargetConfig } from './schemas/RemediationAgentTargetConfig';
@@ -900,4 +916,26 @@ export type { VulnerabilitySource } from './schemas/VulnerabilitySource';
900
916
  export type { VulnerabilitySourceConfigRequestBody } from './schemas/VulnerabilitySourceConfigRequestBody';
901
917
  export type { VulnerabilitySourceConfigResponse } from './schemas/VulnerabilitySourceConfigResponse';
902
918
  export type { WorkflowSource } from './schemas/WorkflowSource';
919
+ export type { ZeroDayAlertConfig } from './schemas/ZeroDayAlertConfig';
920
+ export type { ZeroDayBatchAcceptedResponse } from './schemas/ZeroDayBatchAcceptedResponse';
921
+ export type { ZeroDayBatchConflictResponse } from './schemas/ZeroDayBatchConflictResponse';
922
+ export type { ZeroDayBatchDetailResponse } from './schemas/ZeroDayBatchDetailResponse';
923
+ export type { ZeroDayConfig } from './schemas/ZeroDayConfig';
924
+ export type { ZeroDayExecutionSummary } from './schemas/ZeroDayExecutionSummary';
925
+ export type { ZeroDayFindingDeleteResponse } from './schemas/ZeroDayFindingDeleteResponse';
926
+ export type { ZeroDayFindingResponse } from './schemas/ZeroDayFindingResponse';
927
+ export type { ZeroDayFindingUpdateRequest } from './schemas/ZeroDayFindingUpdateRequest';
928
+ export type { ZeroDayInfrastructure } from './schemas/ZeroDayInfrastructure';
929
+ export type { ZeroDayInternalAlertContext } from './schemas/ZeroDayInternalAlertContext';
930
+ export type { ZeroDayInternalConflictResponse } from './schemas/ZeroDayInternalConflictResponse';
931
+ export type { ZeroDayInternalIdentificationStatusResponse } from './schemas/ZeroDayInternalIdentificationStatusResponse';
932
+ export type { ZeroDayInternalNotifyResponse } from './schemas/ZeroDayInternalNotifyResponse';
933
+ export type { ZeroDayInternalResultRequest } from './schemas/ZeroDayInternalResultRequest';
934
+ export type { ZeroDayInternalResultResponse } from './schemas/ZeroDayInternalResultResponse';
935
+ export type { ZeroDayInternalStartIdentificationResponse } from './schemas/ZeroDayInternalStartIdentificationResponse';
936
+ export type { ZeroDayInternalStatusRequest } from './schemas/ZeroDayInternalStatusRequest';
937
+ export type { ZeroDayInternalStatusResponse } from './schemas/ZeroDayInternalStatusResponse';
938
+ export type { ZeroDayInternalStepExecutionRequest } from './schemas/ZeroDayInternalStepExecutionRequest';
939
+ export type { ZeroDayInternalStepExecutionResponse } from './schemas/ZeroDayInternalStepExecutionResponse';
903
940
  export type { ZeroDayRerunStatusResponse } from './schemas/ZeroDayRerunStatusResponse';
941
+ export type { ZeroDayTestTriggerRequest } from './schemas/ZeroDayTestTriggerRequest';
@@ -70,6 +70,7 @@ export { getComponentTicket, useGetComponentTicketQuery } from './hooks/useGetCo
70
70
  export { getComponentVulnerabilitiesByPurl, useGetComponentVulnerabilitiesByPurlQuery, } from './hooks/useGetComponentVulnerabilitiesByPurlQuery';
71
71
  export { getComponents, useGetComponentsQuery } from './hooks/useGetComponentsQuery';
72
72
  export { getConnectorConfig, useGetConnectorConfigQuery } from './hooks/useGetConnectorConfigQuery';
73
+ export { getContainerTargetAiWorkflowConfig, useGetContainerTargetAiWorkflowConfigQuery, } from './hooks/useGetContainerTargetAiWorkflowConfigQuery';
73
74
  export { getDeploymentsListForArtifactInRemediation, useGetDeploymentsListForArtifactInRemediationQuery, } from './hooks/useGetDeploymentsListForArtifactInRemediationQuery';
74
75
  export { getEnvironmentListForRemediation, useGetEnvironmentListForRemediationQuery, } from './hooks/useGetEnvironmentListForRemediationQuery';
75
76
  export { getEolArtifactSourceComponentTicket, useGetEolArtifactSourceComponentTicketQuery, } from './hooks/useGetEolArtifactSourceComponentTicketQuery';
@@ -95,6 +96,11 @@ export { getSbomScoreDetailV2, useGetSbomScoreDetailV2Query, } from './hooks/use
95
96
  export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
96
97
  export { getScannerConfiguration, useGetScannerConfigurationQuery, } from './hooks/useGetScannerConfigurationQuery';
97
98
  export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
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';
98
104
  export { getZeroDayRerunStatus, useGetZeroDayRerunStatusQuery, } from './hooks/useGetZeroDayRerunStatusQuery';
99
105
  export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
100
106
  export { listAgentStatuses, useListAgentStatusesQuery } from './hooks/useListAgentStatusesQuery';
@@ -117,8 +123,10 @@ export { saveAccountAiWorkflowConfig, useSaveAccountAiWorkflowConfigMutation, }
117
123
  export { saveAutoPrConfig, useSaveAutoPrConfigMutation } from './hooks/useSaveAutoPrConfigMutation';
118
124
  export { saveCodeRepoAiWorkflowConfig, useSaveCodeRepoAiWorkflowConfigMutation, } from './hooks/useSaveCodeRepoAiWorkflowConfigMutation';
119
125
  export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/useSaveConnectorConfigMutation';
126
+ export { saveContainerTargetAiWorkflowConfig, useSaveContainerTargetAiWorkflowConfigMutation, } from './hooks/useSaveContainerTargetAiWorkflowConfigMutation';
120
127
  export { saveOssScoringCapConfig, useSaveOssScoringCapConfigQuery, } from './hooks/useSaveOssScoringCapConfigQuery';
121
128
  export { saveProjectAiWorkflowConfig, useSaveProjectAiWorkflowConfigMutation, } from './hooks/useSaveProjectAiWorkflowConfigMutation';
129
+ export { saveZeroDayConfig, useSaveZeroDayConfigMutation, } from './hooks/useSaveZeroDayConfigMutation';
122
130
  export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
123
131
  export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
124
132
  export { toggleAgentStatus, useToggleAgentStatusMutation, } from './hooks/useToggleAgentStatusMutation';
@@ -0,0 +1,29 @@
1
+ import type { DependencyRemediationAgentSelectionFinding } from '../schemas/DependencyRemediationAgentSelectionFinding';
2
+ import type { DependencyRemediationAgentSelectionVulnerability } from '../schemas/DependencyRemediationAgentSelectionVulnerability';
3
+ export interface DependencyRemediationAgentSelection {
4
+ /**
5
+ * Versions the scanner named as fixes, first-seen order, bounded. A range contributes its lower bound. The agent must choose one of these verbatim.
6
+ */
7
+ candidates: string[];
8
+ /**
9
+ * The package's eligible findings; the chosen version applies to all of them.
10
+ */
11
+ findings: DependencyRemediationAgentSelectionFinding[];
12
+ packageName: string;
13
+ /**
14
+ * Installed version, as the scan reported it.
15
+ */
16
+ packageVersion: string;
17
+ /**
18
+ * Why the selector could not rank this package's versions.
19
+ */
20
+ reason: string;
21
+ /**
22
+ * The selector's own pick over the versions it could read, within maxVersionUpdate. A hint only; absent when it found none.
23
+ */
24
+ suggestedVersion?: string;
25
+ /**
26
+ * Per-CVE scanner fix strings for the package, worst severity first, bounded.
27
+ */
28
+ vulnerabilities?: DependencyRemediationAgentSelectionVulnerability[];
29
+ }
@@ -0,0 +1,15 @@
1
+ export interface DependencyRemediationAgentSelectionFinding {
2
+ /**
3
+ * Scanner issue / CVE identifier
4
+ */
5
+ issueId: string;
6
+ /**
7
+ * Highest severity among the finding's counted issues (CRITICAL, HIGH, MEDIUM or LOW).
8
+ */
9
+ severity?: string;
10
+ /**
11
+ * Number of critical, high, medium and low issues the scan counted for this finding.
12
+ * @format int32
13
+ */
14
+ vulnerabilityCount?: number;
15
+ }
@@ -0,0 +1,14 @@
1
+ export interface DependencyRemediationAgentSelectionVulnerability {
2
+ /**
3
+ * The scanner's fix string for this CVE, verbatim.
4
+ */
5
+ fixVersion: string;
6
+ /**
7
+ * CVE identifier.
8
+ */
9
+ id: string;
10
+ /**
11
+ * CRITICAL, HIGH, MEDIUM, LOW or INFO.
12
+ */
13
+ severity?: string;
14
+ }