@harnessio/react-ssca-manager-client 1.0.0 → 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 (49) 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/useGetZeroDayConfigQuery.d.ts +16 -0
  6. package/dist/ssca-manager/src/services/hooks/useGetZeroDayConfigQuery.js +14 -0
  7. package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.d.ts +11 -6
  8. package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.js +11 -6
  9. package/dist/ssca-manager/src/services/hooks/useSaveZeroDayConfigMutation.d.ts +18 -0
  10. package/dist/ssca-manager/src/services/hooks/useSaveZeroDayConfigMutation.js +14 -0
  11. package/dist/ssca-manager/src/services/index.d.ts +20 -0
  12. package/dist/ssca-manager/src/services/index.js +2 -0
  13. package/dist/ssca-manager/src/services/schemas/AiWorkflowTypeEnum.d.ts +1 -1
  14. package/dist/ssca-manager/src/services/schemas/RemediationAgentCriteria.d.ts +2 -6
  15. package/dist/ssca-manager/src/services/schemas/RemediationAgentValidation.d.ts +10 -7
  16. package/dist/ssca-manager/src/services/schemas/ZeroDayAlertConfig.d.ts +21 -0
  17. package/dist/ssca-manager/src/services/schemas/ZeroDayAlertConfig.js +4 -0
  18. package/dist/ssca-manager/src/services/schemas/ZeroDayConfig.d.ts +2 -0
  19. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingDeleteResponse.d.ts +8 -0
  20. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingDeleteResponse.js +4 -0
  21. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingResponse.d.ts +25 -0
  22. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingResponse.js +4 -0
  23. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingUpdateRequest.d.ts +23 -0
  24. package/dist/ssca-manager/src/services/schemas/ZeroDayFindingUpdateRequest.js +4 -0
  25. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalAlertContext.d.ts +16 -0
  26. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalAlertContext.js +4 -0
  27. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalConflictResponse.d.ts +5 -0
  28. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalConflictResponse.js +4 -0
  29. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalIdentificationStatusResponse.d.ts +16 -0
  30. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalIdentificationStatusResponse.js +4 -0
  31. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalNotifyResponse.d.ts +17 -0
  32. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalNotifyResponse.js +4 -0
  33. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultRequest.d.ts +8 -0
  34. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultRequest.js +4 -0
  35. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultResponse.d.ts +5 -0
  36. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultResponse.js +4 -0
  37. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStartIdentificationResponse.d.ts +5 -0
  38. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStartIdentificationResponse.js +4 -0
  39. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusRequest.d.ts +4 -0
  40. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusRequest.js +4 -0
  41. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusResponse.d.ts +5 -0
  42. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusResponse.js +4 -0
  43. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionRequest.d.ts +6 -0
  44. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionRequest.js +4 -0
  45. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionResponse.d.ts +4 -0
  46. package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionResponse.js +4 -0
  47. package/dist/ssca-manager/src/services/schemas/ZeroDayTestTriggerRequest.d.ts +20 -0
  48. package/dist/ssca-manager/src/services/schemas/ZeroDayTestTriggerRequest.js +4 -0
  49. package/package.json +1 -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) {
@@ -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
+ }
@@ -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) {
@@ -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
+ }
@@ -195,6 +195,8 @@ export type { GetScannerConfigurationErrorResponse, GetScannerConfigurationOkRes
195
195
  export { getScannerConfiguration, useGetScannerConfigurationQuery, } from './hooks/useGetScannerConfigurationQuery';
196
196
  export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSummaryProps, GetSscaSummaryQueryPathParams, } from './hooks/useGetSscaSummaryQuery';
197
197
  export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
198
+ export type { GetZeroDayConfigErrorResponse, GetZeroDayConfigOkResponse, GetZeroDayConfigProps, } from './hooks/useGetZeroDayConfigQuery';
199
+ export { getZeroDayConfig, useGetZeroDayConfigQuery } from './hooks/useGetZeroDayConfigQuery';
198
200
  export type { GetZeroDayRerunStatusErrorResponse, GetZeroDayRerunStatusOkResponse, GetZeroDayRerunStatusProps, } from './hooks/useGetZeroDayRerunStatusQuery';
199
201
  export { getZeroDayRerunStatus, useGetZeroDayRerunStatusQuery, } from './hooks/useGetZeroDayRerunStatusQuery';
200
202
  export type { ImportLicenseFamilyConfigErrorResponse, ImportLicenseFamilyConfigMutationPathParams, ImportLicenseFamilyConfigOkResponse, ImportLicenseFamilyConfigProps, ImportLicenseFamilyConfigRequestBody, } from './hooks/useImportLicenseFamilyConfigMutation';
@@ -245,6 +247,8 @@ export type { SaveOssScoringCapConfigErrorResponse, SaveOssScoringCapConfigOkRes
245
247
  export { saveOssScoringCapConfig, useSaveOssScoringCapConfigQuery, } from './hooks/useSaveOssScoringCapConfigQuery';
246
248
  export type { SaveProjectAiWorkflowConfigErrorResponse, SaveProjectAiWorkflowConfigMutationPathParams, SaveProjectAiWorkflowConfigMutationQueryParams, SaveProjectAiWorkflowConfigOkResponse, SaveProjectAiWorkflowConfigProps, SaveProjectAiWorkflowConfigRequestBody, } from './hooks/useSaveProjectAiWorkflowConfigMutation';
247
249
  export { saveProjectAiWorkflowConfig, useSaveProjectAiWorkflowConfigMutation, } from './hooks/useSaveProjectAiWorkflowConfigMutation';
250
+ export type { SaveZeroDayConfigErrorResponse, SaveZeroDayConfigOkResponse, SaveZeroDayConfigProps, SaveZeroDayConfigRequestBody, } from './hooks/useSaveZeroDayConfigMutation';
251
+ export { saveZeroDayConfig, useSaveZeroDayConfigMutation, } from './hooks/useSaveZeroDayConfigMutation';
248
252
  export type { SetBaselineForArtifactV2ErrorResponse, SetBaselineForArtifactV2MutationPathParams, SetBaselineForArtifactV2OkResponse, SetBaselineForArtifactV2Props, SetBaselineForArtifactV2RequestBody, } from './hooks/useSetBaselineForArtifactV2Mutation';
249
253
  export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
250
254
  export type { SscaLicenseUsageErrorResponse, SscaLicenseUsageOkResponse, SscaLicenseUsageProps, SscaLicenseUsageQueryQueryParams, } from './hooks/useSscaLicenseUsageQuery';
@@ -904,9 +908,25 @@ export type { VulnerabilitySource } from './schemas/VulnerabilitySource';
904
908
  export type { VulnerabilitySourceConfigRequestBody } from './schemas/VulnerabilitySourceConfigRequestBody';
905
909
  export type { VulnerabilitySourceConfigResponse } from './schemas/VulnerabilitySourceConfigResponse';
906
910
  export type { WorkflowSource } from './schemas/WorkflowSource';
911
+ export type { ZeroDayAlertConfig } from './schemas/ZeroDayAlertConfig';
907
912
  export type { ZeroDayBatchAcceptedResponse } from './schemas/ZeroDayBatchAcceptedResponse';
908
913
  export type { ZeroDayBatchConflictResponse } from './schemas/ZeroDayBatchConflictResponse';
909
914
  export type { ZeroDayBatchDetailResponse } from './schemas/ZeroDayBatchDetailResponse';
910
915
  export type { ZeroDayConfig } from './schemas/ZeroDayConfig';
916
+ export type { ZeroDayFindingDeleteResponse } from './schemas/ZeroDayFindingDeleteResponse';
917
+ export type { ZeroDayFindingResponse } from './schemas/ZeroDayFindingResponse';
918
+ export type { ZeroDayFindingUpdateRequest } from './schemas/ZeroDayFindingUpdateRequest';
911
919
  export type { ZeroDayInfrastructure } from './schemas/ZeroDayInfrastructure';
920
+ export type { ZeroDayInternalAlertContext } from './schemas/ZeroDayInternalAlertContext';
921
+ export type { ZeroDayInternalConflictResponse } from './schemas/ZeroDayInternalConflictResponse';
922
+ export type { ZeroDayInternalIdentificationStatusResponse } from './schemas/ZeroDayInternalIdentificationStatusResponse';
923
+ export type { ZeroDayInternalNotifyResponse } from './schemas/ZeroDayInternalNotifyResponse';
924
+ export type { ZeroDayInternalResultRequest } from './schemas/ZeroDayInternalResultRequest';
925
+ export type { ZeroDayInternalResultResponse } from './schemas/ZeroDayInternalResultResponse';
926
+ export type { ZeroDayInternalStartIdentificationResponse } from './schemas/ZeroDayInternalStartIdentificationResponse';
927
+ export type { ZeroDayInternalStatusRequest } from './schemas/ZeroDayInternalStatusRequest';
928
+ export type { ZeroDayInternalStatusResponse } from './schemas/ZeroDayInternalStatusResponse';
929
+ export type { ZeroDayInternalStepExecutionRequest } from './schemas/ZeroDayInternalStepExecutionRequest';
930
+ export type { ZeroDayInternalStepExecutionResponse } from './schemas/ZeroDayInternalStepExecutionResponse';
912
931
  export type { ZeroDayRerunStatusResponse } from './schemas/ZeroDayRerunStatusResponse';
932
+ export type { ZeroDayTestTriggerRequest } from './schemas/ZeroDayTestTriggerRequest';
@@ -96,6 +96,7 @@ export { getSbomScoreDetailV2, useGetSbomScoreDetailV2Query, } from './hooks/use
96
96
  export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
97
97
  export { getScannerConfiguration, useGetScannerConfigurationQuery, } from './hooks/useGetScannerConfigurationQuery';
98
98
  export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
99
+ export { getZeroDayConfig, useGetZeroDayConfigQuery } from './hooks/useGetZeroDayConfigQuery';
99
100
  export { getZeroDayRerunStatus, useGetZeroDayRerunStatusQuery, } from './hooks/useGetZeroDayRerunStatusQuery';
100
101
  export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
101
102
  export { listAgentStatuses, useListAgentStatusesQuery } from './hooks/useListAgentStatusesQuery';
@@ -121,6 +122,7 @@ export { saveConnectorConfig, useSaveConnectorConfigMutation, } from './hooks/us
121
122
  export { saveContainerTargetAiWorkflowConfig, useSaveContainerTargetAiWorkflowConfigMutation, } from './hooks/useSaveContainerTargetAiWorkflowConfigMutation';
122
123
  export { saveOssScoringCapConfig, useSaveOssScoringCapConfigQuery, } from './hooks/useSaveOssScoringCapConfigQuery';
123
124
  export { saveProjectAiWorkflowConfig, useSaveProjectAiWorkflowConfigMutation, } from './hooks/useSaveProjectAiWorkflowConfigMutation';
125
+ export { saveZeroDayConfig, useSaveZeroDayConfigMutation, } from './hooks/useSaveZeroDayConfigMutation';
124
126
  export { setBaselineForArtifactV2, useSetBaselineForArtifactV2Mutation, } from './hooks/useSetBaselineForArtifactV2Mutation';
125
127
  export { sscaLicenseUsage, useSscaLicenseUsageQuery } from './hooks/useSscaLicenseUsageQuery';
126
128
  export { toggleAgentStatus, useToggleAgentStatusMutation, } from './hooks/useToggleAgentStatusMutation';
@@ -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
  }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Channels that receive zero-day alerts. Omit to disable alerting.
3
+ */
4
+ export interface ZeroDayAlertConfig {
5
+ email_addresses?: string[];
6
+ google_chat_connector_refs?: string[];
7
+ ms_teams_connector_refs?: string[];
8
+ pagerduty_connector_ref?: string;
9
+ /**
10
+ * Severities that trigger alerts, e.g. CRITICAL, HIGH
11
+ */
12
+ severities?: string[];
13
+ /**
14
+ * Slack connector ref to the channel ids that receive the message
15
+ */
16
+ slack_connector_channels?: {
17
+ [key: string]: string[];
18
+ };
19
+ slack_connector_refs?: string[];
20
+ zoom_connector_refs?: string[];
21
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,5 +1,7 @@
1
+ import type { ZeroDayAlertConfig } from '../schemas/ZeroDayAlertConfig';
1
2
  import type { ZeroDayInfrastructure } from '../schemas/ZeroDayInfrastructure';
2
3
  export interface ZeroDayConfig {
4
+ alert_config?: ZeroDayAlertConfig;
3
5
  /**
4
6
  * Whether zero-day remediation is enabled for the account
5
7
  */
@@ -0,0 +1,8 @@
1
+ export interface ZeroDayFindingDeleteResponse {
2
+ /**
3
+ * COMPLETED when its matches are removed, PENDING while the background cleanup finishes
4
+ */
5
+ cleanup_status: 'COMPLETED' | 'PENDING';
6
+ cluster_id: string;
7
+ outcome: 'WITHDRAWN';
8
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,25 @@
1
+ export interface ZeroDayFindingResponse {
2
+ affected_version_ranges?: string[];
3
+ cluster_id: string;
4
+ /**
5
+ * @format int64
6
+ */
7
+ content_written_at?: number;
8
+ cve_ids?: string[];
9
+ detection_time?: string;
10
+ ecosystem?: string;
11
+ exploit_lookup_status?: string;
12
+ exploit_references?: string[];
13
+ export_kind?: string;
14
+ fix_versions?: string[];
15
+ package_name?: string;
16
+ purl?: string;
17
+ severity?: string;
18
+ source_published_at?: string;
19
+ source_updated_at?: string;
20
+ source_urls?: string[];
21
+ sources?: string[];
22
+ status: 'ACTIVE' | 'WITHDRAWN';
23
+ summary?: string;
24
+ version_validation?: string;
25
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Patch of the editable finding fields; the trailing echo fields are accepted only when equal to the stored value.
3
+ */
4
+ export interface ZeroDayFindingUpdateRequest {
5
+ affected_version_ranges?: string[];
6
+ cluster_id?: string;
7
+ cve_ids?: string[];
8
+ detection_time?: string;
9
+ ecosystem?: string;
10
+ exploit_lookup_status?: string;
11
+ exploit_references?: string[];
12
+ export_kind?: string;
13
+ fix_versions?: string[];
14
+ package_name?: string;
15
+ purl?: string;
16
+ severity?: string;
17
+ source_published_at?: string;
18
+ source_updated_at?: string;
19
+ source_urls?: string[];
20
+ sources?: string[];
21
+ summary?: string;
22
+ version_validation?: string;
23
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,16 @@
1
+ export interface ZeroDayInternalAlertContext {
2
+ attack_surface?: string;
3
+ component_name?: string;
4
+ component_type?: string;
5
+ component_version?: string;
6
+ dependents_count?: string;
7
+ description?: string;
8
+ ecosystems?: string[];
9
+ exposure_points?: string;
10
+ notable_consumers?: string;
11
+ popularity?: string;
12
+ repo_url?: string;
13
+ risk_factor?: string;
14
+ risk_pattern?: string;
15
+ use_cases?: string[];
16
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface ZeroDayInternalConflictResponse {
2
+ claimedPipelineExecutionId?: string;
3
+ code?: string;
4
+ message?: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,16 @@
1
+ export interface ZeroDayInternalIdentificationStatusResponse {
2
+ error?: string;
3
+ incomplete_clusters?: Array<{
4
+ cluster_id?: string;
5
+ reason?: string;
6
+ }>;
7
+ progress?: {
8
+ processed?: number;
9
+ total?: number;
10
+ };
11
+ result?: {
12
+ [key: string]: any;
13
+ };
14
+ result_truncated?: boolean;
15
+ state?: string;
16
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,17 @@
1
+ export interface ZeroDayInternalNotifyResponse {
2
+ alreadyNotified?: boolean;
3
+ attempts?: number;
4
+ channelsSent?: string[];
5
+ executionId?: string;
6
+ inFlight?: boolean;
7
+ messagePreview?: string;
8
+ /**
9
+ * @format int64
10
+ */
11
+ nextAttemptAt?: number;
12
+ notified?: boolean;
13
+ retriesExhausted?: boolean;
14
+ retryScheduled?: boolean;
15
+ skipReasons?: string[];
16
+ subject?: string;
17
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface ZeroDayInternalResultRequest {
2
+ metadata?: {
3
+ [key: string]: any;
4
+ };
5
+ results?: {
6
+ [key: string]: any;
7
+ };
8
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface ZeroDayInternalResultResponse {
2
+ alreadyStored?: boolean;
3
+ executionId?: string;
4
+ stored?: boolean;
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface ZeroDayInternalStartIdentificationResponse {
2
+ execution_id?: string;
3
+ state?: string;
4
+ total?: number;
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface ZeroDayInternalStatusRequest {
2
+ reason?: string;
3
+ status: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface ZeroDayInternalStatusResponse {
2
+ executionId?: string;
3
+ message?: string;
4
+ status?: string;
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface ZeroDayInternalStepExecutionRequest {
2
+ banner?: string;
3
+ details?: string;
4
+ pipelineExecutionId?: string;
5
+ summary?: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface ZeroDayInternalStepExecutionResponse {
2
+ executionId?: string;
3
+ stepCount?: number;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,20 @@
1
+ export interface ZeroDayTestTriggerRequest {
2
+ /**
3
+ * Account the test run targets
4
+ */
5
+ account_id: string;
6
+ affected_version_ranges: string[];
7
+ cve_ids?: string[];
8
+ fix_versions?: string[];
9
+ /**
10
+ * Required when purl is not given
11
+ */
12
+ package_ecosystem?: string;
13
+ package_name: string;
14
+ purl?: string;
15
+ /**
16
+ * Defaults to HIGH
17
+ */
18
+ severity?: string;
19
+ summary?: string;
20
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "1.0.0",
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",