@harnessio/react-ssca-manager-client 0.84.27 → 0.84.28

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.
@@ -1,4 +1,5 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { AiWorkflowConfigYamlResponse } from '../schemas/AiWorkflowConfigYamlResponse';
2
3
  import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
3
4
  import type { ResponseWithPagination } from '../helpers';
4
5
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -8,7 +9,7 @@ export interface GetAccountAiWorkflowConfigQueryQueryParams {
8
9
  export interface GetAccountAiWorkflowConfigQueryHeaderParams {
9
10
  'Harness-Account': string;
10
11
  }
11
- export type GetAccountAiWorkflowConfigOkResponse = ResponseWithPagination<unknown>;
12
+ export type GetAccountAiWorkflowConfigOkResponse = ResponseWithPagination<AiWorkflowConfigYamlResponse>;
12
13
  export type GetAccountAiWorkflowConfigErrorResponse = unknown;
13
14
  export interface GetAccountAiWorkflowConfigProps extends Omit<FetcherOptions<GetAccountAiWorkflowConfigQueryQueryParams, unknown, GetAccountAiWorkflowConfigQueryHeaderParams>, 'url'> {
14
15
  queryParams: GetAccountAiWorkflowConfigQueryQueryParams;
@@ -1,4 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { AiWorkflowConfigYamlResponse } from '../schemas/AiWorkflowConfigYamlResponse';
3
+ import type { AiWorkflowConfigYamlRequest } from '../schemas/AiWorkflowConfigYamlRequest';
2
4
  import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
3
5
  import type { ResponseWithPagination } from '../helpers';
4
6
  import { FetcherOptions } from '../../../../fetcher/index.js';
@@ -8,8 +10,8 @@ export interface SaveAccountAiWorkflowConfigMutationQueryParams {
8
10
  export interface SaveAccountAiWorkflowConfigMutationHeaderParams {
9
11
  'Harness-Account': string;
10
12
  }
11
- export type SaveAccountAiWorkflowConfigRequestBody = unknown;
12
- export type SaveAccountAiWorkflowConfigOkResponse = ResponseWithPagination<unknown>;
13
+ export type SaveAccountAiWorkflowConfigRequestBody = AiWorkflowConfigYamlRequest;
14
+ export type SaveAccountAiWorkflowConfigOkResponse = ResponseWithPagination<AiWorkflowConfigYamlResponse>;
13
15
  export type SaveAccountAiWorkflowConfigErrorResponse = unknown;
14
16
  export interface SaveAccountAiWorkflowConfigProps extends Omit<FetcherOptions<SaveAccountAiWorkflowConfigMutationQueryParams, SaveAccountAiWorkflowConfigRequestBody, SaveAccountAiWorkflowConfigMutationHeaderParams>, 'url'> {
15
17
  queryParams: SaveAccountAiWorkflowConfigMutationQueryParams;
@@ -351,15 +351,17 @@ export type { AiBomSummaryResponse } from './schemas/AiBomSummaryResponse';
351
351
  export type { AiWorkflowAlertConfig } from './schemas/AiWorkflowAlertConfig';
352
352
  export type { AiWorkflowConfigRequest } from './schemas/AiWorkflowConfigRequest';
353
353
  export type { AiWorkflowConfigResponse } from './schemas/AiWorkflowConfigResponse';
354
- export type { AiWorkflowExcludedScope } from './schemas/AiWorkflowExcludedScope';
355
- export type { AiWorkflowExclusionScope } from './schemas/AiWorkflowExclusionScope';
354
+ export type { AiWorkflowConfigYamlRequest } from './schemas/AiWorkflowConfigYamlRequest';
355
+ export type { AiWorkflowConfigYamlResponse } from './schemas/AiWorkflowConfigYamlResponse';
356
356
  export type { AiWorkflowExecutionDetailResponse } from './schemas/AiWorkflowExecutionDetailResponse';
357
357
  export type { AiWorkflowExecutionRequest } from './schemas/AiWorkflowExecutionRequest';
358
358
  export type { AiWorkflowExecutionStatusEnum } from './schemas/AiWorkflowExecutionStatusEnum';
359
359
  export type { AiWorkflowExecutionStepsResponse } from './schemas/AiWorkflowExecutionStepsResponse';
360
360
  export type { AiWorkflowExecutionSummary } from './schemas/AiWorkflowExecutionSummary';
361
+ export type { AiWorkflowIncludeScope } from './schemas/AiWorkflowIncludeScope';
361
362
  export type { AiWorkflowInfrastructureConfig } from './schemas/AiWorkflowInfrastructureConfig';
362
363
  export type { AiWorkflowResults } from './schemas/AiWorkflowResults';
364
+ export type { AiWorkflowScopeEntry } from './schemas/AiWorkflowScopeEntry';
363
365
  export type { AiWorkflowStepExecution } from './schemas/AiWorkflowStepExecution';
364
366
  export type { AiWorkflowTriggerConfig } from './schemas/AiWorkflowTriggerConfig';
365
367
  export type { AiWorkflowTriggerRequest } from './schemas/AiWorkflowTriggerRequest';
@@ -1,4 +1,4 @@
1
- import type { AiWorkflowExclusionScope } from '../schemas/AiWorkflowExclusionScope';
1
+ import type { AiWorkflowIncludeScope } from '../schemas/AiWorkflowIncludeScope';
2
2
  import type { AiWorkflowInfrastructureConfig } from '../schemas/AiWorkflowInfrastructureConfig';
3
3
  import type { AiWorkflowTriggerConfig } from '../schemas/AiWorkflowTriggerConfig';
4
4
  import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
@@ -7,7 +7,7 @@ export interface AiWorkflowConfigRequest {
7
7
  * Master on/off switch for the remediation agent
8
8
  */
9
9
  enabled: boolean;
10
- exclusion_scope?: AiWorkflowExclusionScope;
10
+ include_scope?: AiWorkflowIncludeScope;
11
11
  infrastructure?: AiWorkflowInfrastructureConfig;
12
12
  /**
13
13
  * Risk categories to monitor (e.g. Remote Code Execution, SQL Injection). Stored in v3; enforcement deferred to v4.
@@ -17,6 +17,10 @@ export interface AiWorkflowConfigRequest {
17
17
  * FP Triage "Scan Types to Triage" filter. Allowed tokens: SCA, SAST, CONTAINER, SECRET, IAC, DAST. Subset of scan types whose findings the agent triages; empty/absent means all supported types. Forwarded to the pre-plugin and applied at the sto-core occurrences-in-scope query.
18
18
  */
19
19
  scan_types?: string[];
20
+ /**
21
+ * FP Triage "Severities to Triage" filter. Allowed tokens: CRITICAL, HIGH, MEDIUM, LOW, INFO. Subset of severities whose findings the agent triages; empty/absent means all severities. Forwarded to the pre-plugin and applied at the sto-core occurrences-in-scope query.
22
+ */
23
+ severity_types?: string[];
20
24
  trigger_config?: AiWorkflowTriggerConfig;
21
25
  workflow_type?: AiWorkflowTypeEnum;
22
26
  }
@@ -1,4 +1,4 @@
1
- import type { AiWorkflowExclusionScope } from '../schemas/AiWorkflowExclusionScope';
1
+ import type { AiWorkflowIncludeScope } from '../schemas/AiWorkflowIncludeScope';
2
2
  import type { AiWorkflowInfrastructureConfig } from '../schemas/AiWorkflowInfrastructureConfig';
3
3
  import type { AiWorkflowTriggerConfig } from '../schemas/AiWorkflowTriggerConfig';
4
4
  import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
@@ -16,7 +16,7 @@ export interface AiWorkflowConfigResponse {
16
16
  * Whether the AI workflow is enabled for this account
17
17
  */
18
18
  enabled?: boolean;
19
- exclusion_scope?: AiWorkflowExclusionScope;
19
+ include_scope?: AiWorkflowIncludeScope;
20
20
  infrastructure?: AiWorkflowInfrastructureConfig;
21
21
  /**
22
22
  * Organization identifier (null for account-global configs)
@@ -31,6 +31,10 @@ export interface AiWorkflowConfigResponse {
31
31
  * FP Triage "Scan Types to Triage" filter. Allowed tokens: SCA, SAST, CONTAINER, SECRET, IAC, DAST. Empty/absent means all supported types.
32
32
  */
33
33
  scan_types?: string[];
34
+ /**
35
+ * FP Triage "Severities to Triage" filter. Allowed tokens: CRITICAL, HIGH, MEDIUM, LOW, INFO. Empty/absent means all severities.
36
+ */
37
+ severity_types?: string[];
34
38
  trigger_config?: AiWorkflowTriggerConfig;
35
39
  /**
36
40
  * Last updated timestamp in milliseconds
@@ -0,0 +1,6 @@
1
+ export interface AiWorkflowConfigYamlRequest {
2
+ /**
3
+ * Stringified YAML of the agent configuration
4
+ */
5
+ yaml: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ export interface AiWorkflowConfigYamlResponse {
2
+ /**
3
+ * Stringified YAML of the agent configuration
4
+ */
5
+ yaml?: 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,14 @@
1
+ import type { AiWorkflowScopeEntry } from '../schemas/AiWorkflowScopeEntry';
2
+ /**
3
+ * Inclusion scope for agent triggering. type=ALL (or unset) includes every (org, project); type=SPECIFIC restricts triggering to the listed scopes only.
4
+ */
5
+ export interface AiWorkflowIncludeScope {
6
+ /**
7
+ * (orgId, projectId) pairs eligible for triggering. Required and non-empty when type=SPECIFIC; ignored when type=ALL.
8
+ */
9
+ scopes?: AiWorkflowScopeEntry[];
10
+ /**
11
+ * ALL includes every scope; SPECIFIC restricts triggering to the listed scopes.
12
+ */
13
+ type?: 'ALL' | 'SPECIFIC';
14
+ }
@@ -0,0 +1,10 @@
1
+ export interface AiWorkflowScopeEntry {
2
+ /**
3
+ * Organization identifier to include
4
+ */
5
+ orgId?: string;
6
+ /**
7
+ * Project identifier to include (within the given org)
8
+ */
9
+ projectId?: string;
10
+ }
@@ -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": "0.84.27",
3
+ "version": "0.84.28",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,10 +0,0 @@
1
- export interface AiWorkflowExcludedScope {
2
- /**
3
- * Organization identifier to exclude
4
- */
5
- org_identifier?: string;
6
- /**
7
- * Project identifier to exclude (within the given org)
8
- */
9
- project_identifier?: string;
10
- }
@@ -1,23 +0,0 @@
1
- import type { AiWorkflowExcludedScope } from '../schemas/AiWorkflowExcludedScope';
2
- export interface AiWorkflowExclusionScope {
3
- /**
4
- * Artifact name glob patterns to exclude from identification (e.g. "org/frontend-app", "!*-SNAPSHOT")
5
- */
6
- exclude_artifact_patterns?: string[];
7
- /**
8
- * Repository name glob patterns to exclude from identification (e.g. "*-test", "dev-*")
9
- */
10
- exclude_repo_patterns?: string[];
11
- /**
12
- * Organization identifiers to exclude from identification scans
13
- */
14
- excluded_org_ids?: string[];
15
- /**
16
- * Project identifiers to exclude from identification scans
17
- */
18
- excluded_project_ids?: string[];
19
- /**
20
- * FP Triage account-level exclusion: (org, project) pairs whose scan-completion events are skipped before any agent run. Evaluated against the originating scan scope.
21
- */
22
- excluded_scopes?: AiWorkflowExcludedScope[];
23
- }