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

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 (22) hide show
  1. package/dist/ssca-manager/src/services/hooks/useGetCodeRepoAiWorkflowConfigQuery.d.ts +3 -2
  2. package/dist/ssca-manager/src/services/hooks/useGetCodeRepoAiWorkflowConfigQuery.js +3 -2
  3. package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.d.ts +9 -5
  4. package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.js +9 -5
  5. package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.d.ts +11 -6
  6. package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.js +11 -6
  7. package/dist/ssca-manager/src/services/index.d.ts +0 -9
  8. package/dist/ssca-manager/src/services/index.js +0 -4
  9. package/dist/ssca-manager/src/services/schemas/AiWorkflowTypeEnum.d.ts +1 -1
  10. package/dist/ssca-manager/src/services/schemas/RemediationAgentCriteria.d.ts +2 -6
  11. package/dist/ssca-manager/src/services/schemas/RemediationAgentValidation.d.ts +10 -7
  12. package/package.json +1 -1
  13. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionAffectedTargetsQuery.d.ts +0 -34
  14. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionAffectedTargetsQuery.js +0 -14
  15. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionDetailQuery.d.ts +0 -25
  16. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionDetailQuery.js +0 -14
  17. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionStepsQuery.d.ts +0 -24
  18. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionStepsQuery.js +0 -14
  19. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionsQuery.d.ts +0 -41
  20. package/dist/ssca-manager/src/services/hooks/useGetZeroDayExecutionsQuery.js +0 -14
  21. package/dist/ssca-manager/src/services/schemas/ZeroDayExecutionSummary.d.ts +0 -11
  22. package/dist/ssca-manager/src/services/schemas/ZeroDayExecutionSummary.js +0 -1
@@ -26,8 +26,9 @@ export declare function getCodeRepoAiWorkflowConfig(props: GetCodeRepoAiWorkflow
26
26
  * `targetIncludeScope` covers this target (unset or ALL covers every target; SPECIFIC
27
27
  * covers listed target ids). The UI uses that for the "enable at project level" hover.
28
28
  * Account master toggle is `account_enabled`. Account project coverage is `include_scope_status`.
29
- * fp_triage code-repo YAML does not carry branch or connector overrides.
30
- * Remediation returns branch, scm, jira, and validation-pipeline overrides.
29
+ * fp_triage YAML returns branches or branchRegex from the code-repo row and does not carry a connector.
30
+ * Remediation returns the resolved config: branch, scm (repo override, otherwise the inherited
31
+ * account/org/project connector), jira, and validation pipelines. Validation pipelines do not inherit.
31
32
  * Empty branches and blank branchRegex mean baseline-only triggering.
32
33
  * Unchecking a target at project scope does not delete this code-repo document.
33
34
  *
@@ -12,8 +12,9 @@ export function getCodeRepoAiWorkflowConfig(props) {
12
12
  * `targetIncludeScope` covers this target (unset or ALL covers every target; SPECIFIC
13
13
  * covers listed target ids). The UI uses that for the "enable at project level" hover.
14
14
  * Account master toggle is `account_enabled`. Account project coverage is `include_scope_status`.
15
- * fp_triage code-repo YAML does not carry branch or connector overrides.
16
- * Remediation returns branch, scm, jira, and validation-pipeline overrides.
15
+ * fp_triage YAML returns branches or branchRegex from the code-repo row and does not carry a connector.
16
+ * Remediation returns the resolved config: branch, scm (repo override, otherwise the inherited
17
+ * account/org/project connector), jira, and validation pipelines. Validation pipelines do not inherit.
17
18
  * Empty branches and blank branchRegex mean baseline-only triggering.
18
19
  * Unchecking a target at project scope does not delete this code-repo document.
19
20
  *
@@ -23,11 +23,15 @@ export declare function getContainerTargetAiWorkflowConfig(props: GetContainerTa
23
23
  /**
24
24
  * Get the raw overrides stored for a STO container target.
25
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.
26
+ * repoUrl, dockerfilePath, scm, and the flat agent.validation* keys — not the effective
27
+ * merged config.
28
+ * fp_triage returns the resolved triage rule as agent.variantScope: the artifact's stored
29
+ * rule when set (mode fixed with values, or mode regex with regex), otherwise mode baseline.
30
+ * agent.enabled comes from the project targetIncludeScope. include_scope_status and
31
+ * account_enabled match the code-repo triage GET. agent.enabled is not stored here.
32
+ * Clearing the triage variantScope restores baseline-only triage.
33
+ * A target with no document returns a minimal payload containing only the agent type, and a
34
+ * cleared field inherits from the effective agent config.
31
35
  *
32
36
  */
33
37
  export declare function useGetContainerTargetAiWorkflowConfigQuery(props: GetContainerTargetAiWorkflowConfigProps, options?: Omit<UseQueryOptions<GetContainerTargetAiWorkflowConfigOkResponse, GetContainerTargetAiWorkflowConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetContainerTargetAiWorkflowConfigOkResponse, unknown>;
@@ -9,11 +9,15 @@ export function getContainerTargetAiWorkflowConfig(props) {
9
9
  /**
10
10
  * Get the raw overrides stored for a STO container target.
11
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.
12
+ * repoUrl, dockerfilePath, scm, and the flat agent.validation* keys — not the effective
13
+ * merged config.
14
+ * fp_triage returns the resolved triage rule as agent.variantScope: the artifact's stored
15
+ * rule when set (mode fixed with values, or mode regex with regex), otherwise mode baseline.
16
+ * agent.enabled comes from the project targetIncludeScope. include_scope_status and
17
+ * account_enabled match the code-repo triage GET. agent.enabled is not stored here.
18
+ * Clearing the triage variantScope restores baseline-only triage.
19
+ * A target with no document returns a minimal payload containing only the agent type, and a
20
+ * cleared field inherits from the effective agent config.
17
21
  *
18
22
  */
19
23
  export function useGetContainerTargetAiWorkflowConfigQuery(props, options) {
@@ -28,12 +28,17 @@ export declare function saveContainerTargetAiWorkflowConfig(props: SaveContainer
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
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.
31
+ * agent.repoUrl, agent.dockerfilePath, agent.scm, and the flat validation keys
32
+ * agent.validationMode (agent_validated|deferred), agent.validationPipelineId,
33
+ * agent.validationPipelineOrg, agent.validationPipelineProject, agent.buildStepId and
34
+ * agent.scanStepId.
35
+ * fp_triage accepts agent.variantScope in that same shape and stores it separately
36
+ * from the dependency-remediation rule. agent.enabled is accepted and ignored; the
37
+ * response reports project targetIncludeScope membership, include_scope_status, and
38
+ * account_enabled the same way as code-repo triage. Any other field is rejected.
39
+ * 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
41
+ * or SCM connectivity check is performed on save.
37
42
  *
38
43
  */
39
44
  export declare function useSaveContainerTargetAiWorkflowConfigMutation(options?: Omit<UseMutationOptions<SaveContainerTargetAiWorkflowConfigOkResponse, SaveContainerTargetAiWorkflowConfigErrorResponse, SaveContainerTargetAiWorkflowConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveContainerTargetAiWorkflowConfigOkResponse, unknown, SaveContainerTargetAiWorkflowConfigProps, unknown>;
@@ -11,12 +11,17 @@ export function saveContainerTargetAiWorkflowConfig(props) {
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
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.
14
+ * agent.repoUrl, agent.dockerfilePath, agent.scm, and the flat validation keys
15
+ * agent.validationMode (agent_validated|deferred), agent.validationPipelineId,
16
+ * agent.validationPipelineOrg, agent.validationPipelineProject, agent.buildStepId and
17
+ * agent.scanStepId.
18
+ * fp_triage accepts agent.variantScope in that same shape and stores it separately
19
+ * from the dependency-remediation rule. agent.enabled is accepted and ignored; the
20
+ * response reports project targetIncludeScope membership, include_scope_status, and
21
+ * account_enabled the same way as code-repo triage. Any other field is rejected.
22
+ * 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
24
+ * or SCM connectivity check is performed on save.
20
25
  *
21
26
  */
22
27
  export function useSaveContainerTargetAiWorkflowConfigMutation(options) {
@@ -197,14 +197,6 @@ 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';
208
200
  export type { GetZeroDayRerunStatusErrorResponse, GetZeroDayRerunStatusOkResponse, GetZeroDayRerunStatusProps, } from './hooks/useGetZeroDayRerunStatusQuery';
209
201
  export { getZeroDayRerunStatus, useGetZeroDayRerunStatusQuery, } from './hooks/useGetZeroDayRerunStatusQuery';
210
202
  export type { ImportLicenseFamilyConfigErrorResponse, ImportLicenseFamilyConfigMutationPathParams, ImportLicenseFamilyConfigOkResponse, ImportLicenseFamilyConfigProps, ImportLicenseFamilyConfigRequestBody, } from './hooks/useImportLicenseFamilyConfigMutation';
@@ -921,7 +913,6 @@ export type { ZeroDayBatchAcceptedResponse } from './schemas/ZeroDayBatchAccepte
921
913
  export type { ZeroDayBatchConflictResponse } from './schemas/ZeroDayBatchConflictResponse';
922
914
  export type { ZeroDayBatchDetailResponse } from './schemas/ZeroDayBatchDetailResponse';
923
915
  export type { ZeroDayConfig } from './schemas/ZeroDayConfig';
924
- export type { ZeroDayExecutionSummary } from './schemas/ZeroDayExecutionSummary';
925
916
  export type { ZeroDayFindingDeleteResponse } from './schemas/ZeroDayFindingDeleteResponse';
926
917
  export type { ZeroDayFindingResponse } from './schemas/ZeroDayFindingResponse';
927
918
  export type { ZeroDayFindingUpdateRequest } from './schemas/ZeroDayFindingUpdateRequest';
@@ -97,10 +97,6 @@ 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';
104
100
  export { getZeroDayRerunStatus, useGetZeroDayRerunStatusQuery, } from './hooks/useGetZeroDayRerunStatusQuery';
105
101
  export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
106
102
  export { listAgentStatuses, useListAgentStatusesQuery } from './hooks/useListAgentStatusesQuery';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Type of AI workflow
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).
3
3
  * @example "vulnerability"
4
4
  */
5
5
  export type AiWorkflowTypeEnum = 'dependency_remediation' | 'fp_triage' | 'remediation' | 'vulnerability' | 'zero_day';
@@ -7,13 +7,9 @@ export interface RemediationAgentCriteria {
7
7
  */
8
8
  cisaKev?: boolean;
9
9
  /**
10
- * One of "0 - 10%", "10 - 20%", "20 - 50%" or "50 - 100%". Persisted and echoed for the config, but not yet used to filter findings
10
+ * EPSS score gate: include issues whose EPSS probability is at or above the threshold. One of gte_15, gte_5 or gte_1; empty or none disables the gate. Unknown values fail with a 400.
11
11
  */
12
- epssPercentage?: string;
13
- /**
14
- * Include issues that carry an EPSS score. The epssPercentage range is stored but not yet applied when selecting findings
15
- */
16
- epssProbability?: boolean;
12
+ epssProbability?: string;
17
13
  /**
18
14
  * Include issues with a known exploit or proof of concept
19
15
  */
@@ -1,17 +1,20 @@
1
1
  export interface RemediationAgentValidation {
2
2
  buildStepId?: string;
3
3
  /**
4
- * When absent, the remediation agent plugin treats the flag as false
4
+ * Identifier of the pipeline that rebuilds and re-scans the remediated image
5
5
  */
6
- mustPassChecks?: boolean;
6
+ pipeline?: string;
7
7
  /**
8
- * When absent, the remediation agent plugin treats the flag as false
8
+ * Org of the validation pipeline; defaults to the config's scope org
9
9
  */
10
- mustVerifyFix?: boolean;
10
+ pipelineOrg?: string;
11
11
  /**
12
- * Identifier of the pipeline that rebuilds and re-scans the remediated image
12
+ * Project of the validation pipeline; defaults to the config's scope project
13
13
  */
14
- pipeline?: string;
15
- pushStepId?: string;
14
+ pipelineProject?: string;
16
15
  scanStepId?: string;
16
+ /**
17
+ * agent_validated rebuilds and re-scans the remediated image in a validation pipeline; deferred skips validation for this target. agent_validated requires pipeline.
18
+ */
19
+ validationMode?: string;
17
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,34 +0,0 @@
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>;
@@ -1,14 +0,0 @@
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
- }
@@ -1,25 +0,0 @@
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>;
@@ -1,14 +0,0 @@
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
- }
@@ -1,24 +0,0 @@
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>;
@@ -1,14 +0,0 @@
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
- }
@@ -1,41 +0,0 @@
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>;
@@ -1,14 +0,0 @@
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
- }
@@ -1,11 +0,0 @@
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
- }