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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
  *
@@ -22,12 +22,18 @@ export interface GetContainerTargetAiWorkflowConfigProps extends GetContainerTar
22
22
  export declare function getContainerTargetAiWorkflowConfig(props: GetContainerTargetAiWorkflowConfigProps): Promise<GetContainerTargetAiWorkflowConfigOkResponse>;
23
23
  /**
24
24
  * Get the raw overrides stored for a STO container target.
25
- * dependency_remediation (the default) returns target-owned fields only — variantScope,
26
- * repoUrl, dockerfilePath, scm, and 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.
25
+ * remediation (the default — the SCA dependency-remediation surface; the deprecated
26
+ * dependency_remediation spelling selects it too) returns target-owned fields only —
27
+ * enabled, variantScope, repoUrl, dockerfilePath, scm, the flat agent.validation* keys,
28
+ * remediationCriteria, useStoApprovedBaseImages and maxVersionUpdate — not the effective
29
+ * merged config.
30
+ * fp_triage returns the resolved triage rule as agent.variantScope: the artifact's stored
31
+ * rule when set (mode fixed with values, or mode regex with regex), otherwise mode baseline.
32
+ * agent.enabled comes from the project targetIncludeScope. include_scope_status and
33
+ * account_enabled match the code-repo triage GET. agent.enabled is not stored here.
34
+ * Clearing the triage variantScope restores baseline-only triage.
35
+ * A target with no document returns a minimal payload containing only the agent type, and a
36
+ * cleared field inherits from the effective agent config.
31
37
  *
32
38
  */
33
39
  export declare function useGetContainerTargetAiWorkflowConfigQuery(props: GetContainerTargetAiWorkflowConfigProps, options?: Omit<UseQueryOptions<GetContainerTargetAiWorkflowConfigOkResponse, GetContainerTargetAiWorkflowConfigErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetContainerTargetAiWorkflowConfigOkResponse, unknown>;
@@ -8,12 +8,18 @@ export function getContainerTargetAiWorkflowConfig(props) {
8
8
  }
9
9
  /**
10
10
  * Get the raw overrides stored for a STO container target.
11
- * dependency_remediation (the default) returns target-owned fields only — variantScope,
12
- * repoUrl, dockerfilePath, scm, and 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.
11
+ * remediation (the default — the SCA dependency-remediation surface; the deprecated
12
+ * dependency_remediation spelling selects it too) returns target-owned fields only —
13
+ * enabled, variantScope, repoUrl, dockerfilePath, scm, the flat agent.validation* keys,
14
+ * remediationCriteria, useStoApprovedBaseImages and maxVersionUpdate — not the effective
15
+ * merged config.
16
+ * fp_triage returns the resolved triage rule as agent.variantScope: the artifact's stored
17
+ * rule when set (mode fixed with values, or mode regex with regex), otherwise mode baseline.
18
+ * agent.enabled comes from the project targetIncludeScope. include_scope_status and
19
+ * account_enabled match the code-repo triage GET. agent.enabled is not stored here.
20
+ * Clearing the triage variantScope restores baseline-only triage.
21
+ * A target with no document returns a minimal payload containing only the agent type, and a
22
+ * cleared field inherits from the effective agent config.
17
23
  *
18
24
  */
19
25
  export function useGetContainerTargetAiWorkflowConfigQuery(props, options) {
@@ -27,13 +27,25 @@ export declare function saveContainerTargetAiWorkflowConfig(props: SaveContainer
27
27
  * Create or update overrides for a STO container target.
28
28
  * Presence-aware semantics: an omitted field preserves the stored override, an explicit
29
29
  * null or blank value clears it, and a value sets it.
30
- * dependency_remediation (the default) accepts agent.variantScope (baseline|all|fixed|regex),
31
- * agent.repoUrl, agent.dockerfilePath, agent.scm, and 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.
30
+ * remediation (the default — the SCA dependency-remediation surface; the deprecated
31
+ * dependency_remediation spelling is still accepted) accepts agent.enabled (a stored false
32
+ * suppresses remediation for this target; null inherits), agent.variantScope
33
+ * (baseline|all|fixed|regex),
34
+ * agent.repoUrl, agent.dockerfilePath, agent.scm, the sca selection-policy overrides
35
+ * agent.remediationCriteria (cisaKev, exploitable, reachable, epssProbability —
36
+ * gte_15|gte_5|gte_1 or blank to disable the gate), agent.useStoApprovedBaseImages and
37
+ * agent.maxVersionUpdate (patch|minor|major|none — none blocks every version bump), and the
38
+ * flat validation keys
39
+ * agent.validationMode (agent_validated|deferred), agent.validationPipelineId,
40
+ * agent.validationPipelineOrg, agent.validationPipelineProject, agent.buildStepId and
41
+ * agent.scanStepId.
42
+ * fp_triage accepts agent.variantScope in that same shape and stores it separately
43
+ * from the dependency-remediation rule. agent.enabled is accepted and ignored; the
44
+ * response reports project targetIncludeScope membership, include_scope_status, and
45
+ * account_enabled the same way as code-repo triage. Any other field is rejected.
46
+ * The fp_triage response returns the resolved variant rule (baseline when cleared).
47
+ * The remediation response returns the stored raw overrides. No STO target
48
+ * or SCM connectivity check is performed on save.
37
49
  *
38
50
  */
39
51
  export declare function useSaveContainerTargetAiWorkflowConfigMutation(options?: Omit<UseMutationOptions<SaveContainerTargetAiWorkflowConfigOkResponse, SaveContainerTargetAiWorkflowConfigErrorResponse, SaveContainerTargetAiWorkflowConfigProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveContainerTargetAiWorkflowConfigOkResponse, unknown, SaveContainerTargetAiWorkflowConfigProps, unknown>;
@@ -10,13 +10,25 @@ export function saveContainerTargetAiWorkflowConfig(props) {
10
10
  * Create or update overrides for a STO container target.
11
11
  * Presence-aware semantics: an omitted field preserves the stored override, an explicit
12
12
  * null or blank value clears it, and a value sets it.
13
- * dependency_remediation (the default) accepts agent.variantScope (baseline|all|fixed|regex),
14
- * agent.repoUrl, agent.dockerfilePath, agent.scm, and 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.
13
+ * remediation (the default — the SCA dependency-remediation surface; the deprecated
14
+ * dependency_remediation spelling is still accepted) accepts agent.enabled (a stored false
15
+ * suppresses remediation for this target; null inherits), agent.variantScope
16
+ * (baseline|all|fixed|regex),
17
+ * agent.repoUrl, agent.dockerfilePath, agent.scm, the sca selection-policy overrides
18
+ * agent.remediationCriteria (cisaKev, exploitable, reachable, epssProbability —
19
+ * gte_15|gte_5|gte_1 or blank to disable the gate), agent.useStoApprovedBaseImages and
20
+ * agent.maxVersionUpdate (patch|minor|major|none — none blocks every version bump), and the
21
+ * flat validation keys
22
+ * agent.validationMode (agent_validated|deferred), agent.validationPipelineId,
23
+ * agent.validationPipelineOrg, agent.validationPipelineProject, agent.buildStepId and
24
+ * agent.scanStepId.
25
+ * fp_triage accepts agent.variantScope in that same shape and stores it separately
26
+ * from the dependency-remediation rule. agent.enabled is accepted and ignored; the
27
+ * response reports project targetIncludeScope membership, include_scope_status, and
28
+ * account_enabled the same way as code-repo triage. Any other field is rejected.
29
+ * The fp_triage response returns the resolved variant rule (baseline when cleared).
30
+ * The remediation response returns the stored raw overrides. No STO target
31
+ * or SCM connectivity check is performed on save.
20
32
  *
21
33
  */
22
34
  export function useSaveContainerTargetAiWorkflowConfigMutation(options) {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Type of AI workflow
2
+ * Type of AI workflow. DEPRECATED value: dependency_remediation — the SCA flow folded into remediation and is discriminated by its dispatch placeholder, not the type. The spelling is still accepted on reads and the container-target/config endpoints (where it selects the SCA surface), but write paths that would silently remap it (config save, agent toggle) reject it with a 400 — use remediation, whose agent.sca block carries the SCA dependency-remediation config.
3
3
  * @example "vulnerability"
4
4
  */
5
5
  export type AiWorkflowTypeEnum = 'dependency_remediation' | 'fp_triage' | 'remediation' | 'vulnerability' | 'zero_day';
@@ -9,7 +9,7 @@ export interface InitiateRemediationAgentRequest {
9
9
  */
10
10
  executionId?: string;
11
11
  /**
12
- * Highest semantic-version bump the agent may apply: PATCH, MINOR or MAJOR. Required when remediationCriteria selects at least one criterion; the request fails with a 400 when it is missing or unknown.
12
+ * Highest semantic-version bump the agent may apply: PATCH, MINOR, MAJOR or NONE (NONE selects no fix). Required when remediationCriteria selects at least one criterion; the request fails with a 400 when it is missing or unknown.
13
13
  */
14
14
  maxVersionUpdate?: string;
15
15
  /**
@@ -26,7 +26,7 @@ export interface InitiateRemediationAgentRequest {
26
26
  */
27
27
  scanId: string;
28
28
  /**
29
- * Workflow type (e.g. DEPENDENCY_REMEDIATION)
29
+ * Workflow type. The dependency-remediation initiate endpoint accepts remediation (legacy dependency_remediation spellings still resolve).
30
30
  */
31
31
  workflowType: string;
32
32
  }
@@ -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.3",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",