@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.
- package/dist/ssca-manager/src/services/hooks/useGetAccountAiWorkflowConfigQuery.d.ts +2 -1
- package/dist/ssca-manager/src/services/hooks/useSaveAccountAiWorkflowConfigMutation.d.ts +4 -2
- package/dist/ssca-manager/src/services/index.d.ts +4 -2
- package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigRequest.d.ts +6 -2
- package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigResponse.d.ts +6 -2
- package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigYamlRequest.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigYamlResponse.d.ts +6 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigYamlResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowIncludeScope.d.ts +14 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowScopeEntry.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowScopeEntry.js +4 -0
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExcludedScope.d.ts +0 -10
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExclusionScope.d.ts +0 -23
- /package/dist/ssca-manager/src/services/schemas/{AiWorkflowExcludedScope.js → AiWorkflowConfigYamlRequest.js} +0 -0
- /package/dist/ssca-manager/src/services/schemas/{AiWorkflowExclusionScope.js → AiWorkflowIncludeScope.js} +0 -0
|
@@ -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<
|
|
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 =
|
|
12
|
-
export type SaveAccountAiWorkflowConfigOkResponse = ResponseWithPagination<
|
|
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 {
|
|
355
|
-
export type {
|
|
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 {
|
|
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
|
-
|
|
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 {
|
|
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
|
-
|
|
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,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
|
+
}
|
package/package.json
CHANGED
|
@@ -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
|
-
}
|
|
File without changes
|
|
File without changes
|