@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.
- package/dist/ssca-manager/src/services/hooks/useGetCodeRepoAiWorkflowConfigQuery.d.ts +3 -2
- package/dist/ssca-manager/src/services/hooks/useGetCodeRepoAiWorkflowConfigQuery.js +3 -2
- package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.d.ts +9 -5
- package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.js +9 -5
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayConfigQuery.d.ts +16 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayConfigQuery.js +14 -0
- package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.d.ts +11 -6
- package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.js +11 -6
- package/dist/ssca-manager/src/services/hooks/useSaveZeroDayConfigMutation.d.ts +18 -0
- package/dist/ssca-manager/src/services/hooks/useSaveZeroDayConfigMutation.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +20 -0
- package/dist/ssca-manager/src/services/index.js +2 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowTypeEnum.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/RemediationAgentCriteria.d.ts +2 -6
- package/dist/ssca-manager/src/services/schemas/RemediationAgentValidation.d.ts +10 -7
- package/dist/ssca-manager/src/services/schemas/ZeroDayAlertConfig.d.ts +21 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayAlertConfig.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayConfig.d.ts +2 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayFindingDeleteResponse.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayFindingDeleteResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayFindingResponse.d.ts +25 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayFindingResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayFindingUpdateRequest.d.ts +23 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayFindingUpdateRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalAlertContext.d.ts +16 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalAlertContext.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalConflictResponse.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalConflictResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalIdentificationStatusResponse.d.ts +16 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalIdentificationStatusResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalNotifyResponse.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalNotifyResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultRequest.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultResponse.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalResultResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStartIdentificationResponse.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStartIdentificationResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusRequest.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusResponse.d.ts +5 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStatusResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionRequest.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionResponse.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayInternalStepExecutionResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayTestTriggerRequest.d.ts +20 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayTestTriggerRequest.js +4 -0
- 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
|
|
30
|
-
* Remediation returns branch, scm
|
|
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
|
|
16
|
-
* Remediation returns branch, scm
|
|
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
|
*
|
package/dist/ssca-manager/src/services/hooks/useGetContainerTargetAiWorkflowConfigQuery.d.ts
CHANGED
|
@@ -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
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
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
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
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
|
+
}
|
package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.d.ts
CHANGED
|
@@ -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
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
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>;
|
package/dist/ssca-manager/src/services/hooks/useSaveContainerTargetAiWorkflowConfigMutation.js
CHANGED
|
@@ -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
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
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
|
-
*
|
|
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
|
-
|
|
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
|
-
*
|
|
4
|
+
* Identifier of the pipeline that rebuilds and re-scans the remediated image
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
pipeline?: string;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Org of the validation pipeline; defaults to the config's scope org
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
pipelineOrg?: string;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Project of the validation pipeline; defaults to the config's scope project
|
|
13
13
|
*/
|
|
14
|
-
|
|
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
|
+
}
|
|
@@ -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,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,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,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
|
+
}
|
package/dist/ssca-manager/src/services/schemas/ZeroDayInternalIdentificationStatusResponse.d.ts
ADDED
|
@@ -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,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,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
|
+
}
|