@harnessio/react-ssca-manager-client 0.84.20 → 0.84.21
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/useGetAiWorkflowExecutionStepsQuery.d.ts +1 -1
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionStepsQuery.js +1 -1
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsQuery.d.ts +6 -3
- package/dist/ssca-manager/src/services/index.d.ts +8 -1
- package/dist/ssca-manager/src/services/schemas/AffectedArtifactInfo.d.ts +0 -1
- package/dist/ssca-manager/src/services/schemas/AiWorkflowAlertConfig.d.ts +39 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowAlertConfig.js +4 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigRequest.d.ts +22 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigResponse.d.ts +30 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowConfigResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExclusionScope.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExclusionScope.js +4 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionDetailResponse.d.ts +39 -14
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionSummary.d.ts +17 -23
- package/dist/ssca-manager/src/services/schemas/AiWorkflowTriggerConfig.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowTriggerConfig.js +4 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowTriggerRequest.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowTriggerRequest.js +4 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowTriggerResponse.d.ts +44 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowTriggerResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/AlertContext.d.ts +61 -0
- package/dist/ssca-manager/src/services/schemas/AlertContext.js +4 -0
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionListResponse.d.ts +0 -19
- /package/dist/ssca-manager/src/services/schemas/{AiWorkflowExecutionListResponse.js → AiWorkflowConfigRequest.js} +0 -0
|
@@ -20,6 +20,6 @@ export interface GetAiWorkflowExecutionStepsProps extends GetAiWorkflowExecution
|
|
|
20
20
|
}
|
|
21
21
|
export declare function getAiWorkflowExecutionSteps(props: GetAiWorkflowExecutionStepsProps): Promise<GetAiWorkflowExecutionStepsOkResponse>;
|
|
22
22
|
/**
|
|
23
|
-
* Get step details for a specific AI workflow execution
|
|
23
|
+
* Get step details for a specific AI workflow execution.
|
|
24
24
|
*/
|
|
25
25
|
export declare function useGetAiWorkflowExecutionStepsQuery(props: GetAiWorkflowExecutionStepsProps, options?: Omit<UseQueryOptions<GetAiWorkflowExecutionStepsOkResponse, GetAiWorkflowExecutionStepsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAiWorkflowExecutionStepsOkResponse, unknown>;
|
|
@@ -7,7 +7,7 @@ export function getAiWorkflowExecutionSteps(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-executions/${props.executionId}/steps`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Get step details for a specific AI workflow execution
|
|
10
|
+
* Get step details for a specific AI workflow execution.
|
|
11
11
|
*/
|
|
12
12
|
export function useGetAiWorkflowExecutionStepsQuery(props, options) {
|
|
13
13
|
return useQuery(['getAIWorkflowExecutionSteps', props.org, props.project, props.executionId, props.queryParams], ({ signal }) => getAiWorkflowExecutionSteps(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { AiWorkflowExecutionSummary } from '../schemas/AiWorkflowExecutionSummary';
|
|
3
3
|
import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
|
|
4
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
5
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
@@ -19,7 +19,10 @@ export interface GetAiWorkflowExecutionsQueryQueryParams {
|
|
|
19
19
|
*/
|
|
20
20
|
to_timestamp?: number;
|
|
21
21
|
batch_id?: string;
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @default 0
|
|
24
|
+
*/
|
|
25
|
+
page?: number;
|
|
23
26
|
/**
|
|
24
27
|
* @default 30
|
|
25
28
|
*/
|
|
@@ -28,7 +31,7 @@ export interface GetAiWorkflowExecutionsQueryQueryParams {
|
|
|
28
31
|
export interface GetAiWorkflowExecutionsQueryHeaderParams {
|
|
29
32
|
'Harness-Account': string;
|
|
30
33
|
}
|
|
31
|
-
export type GetAiWorkflowExecutionsOkResponse = ResponseWithPagination<
|
|
34
|
+
export type GetAiWorkflowExecutionsOkResponse = ResponseWithPagination<AiWorkflowExecutionSummary[]>;
|
|
32
35
|
export type GetAiWorkflowExecutionsErrorResponse = unknown;
|
|
33
36
|
export interface GetAiWorkflowExecutionsProps extends GetAiWorkflowExecutionsQueryPathParams, Omit<FetcherOptions<GetAiWorkflowExecutionsQueryQueryParams, unknown, GetAiWorkflowExecutionsQueryHeaderParams>, 'url'> {
|
|
34
37
|
queryParams: GetAiWorkflowExecutionsQueryQueryParams;
|
|
@@ -326,15 +326,22 @@ export type { UpdateIntegrationResponseBodyResponse } from './responses/UpdateIn
|
|
|
326
326
|
export type { VersionResponseBodyResponse } from './responses/VersionResponseBodyResponse';
|
|
327
327
|
export type { ActivityDetails } from './schemas/ActivityDetails';
|
|
328
328
|
export type { AffectedArtifactInfo } from './schemas/AffectedArtifactInfo';
|
|
329
|
+
export type { AiWorkflowAlertConfig } from './schemas/AiWorkflowAlertConfig';
|
|
330
|
+
export type { AiWorkflowConfigRequest } from './schemas/AiWorkflowConfigRequest';
|
|
331
|
+
export type { AiWorkflowConfigResponse } from './schemas/AiWorkflowConfigResponse';
|
|
332
|
+
export type { AiWorkflowExclusionScope } from './schemas/AiWorkflowExclusionScope';
|
|
329
333
|
export type { AiWorkflowExecutionDetailResponse } from './schemas/AiWorkflowExecutionDetailResponse';
|
|
330
|
-
export type { AiWorkflowExecutionListResponse } from './schemas/AiWorkflowExecutionListResponse';
|
|
331
334
|
export type { AiWorkflowExecutionRequest } from './schemas/AiWorkflowExecutionRequest';
|
|
332
335
|
export type { AiWorkflowExecutionStatusEnum } from './schemas/AiWorkflowExecutionStatusEnum';
|
|
333
336
|
export type { AiWorkflowExecutionStepsResponse } from './schemas/AiWorkflowExecutionStepsResponse';
|
|
334
337
|
export type { AiWorkflowExecutionSummary } from './schemas/AiWorkflowExecutionSummary';
|
|
335
338
|
export type { AiWorkflowResults } from './schemas/AiWorkflowResults';
|
|
336
339
|
export type { AiWorkflowStepExecution } from './schemas/AiWorkflowStepExecution';
|
|
340
|
+
export type { AiWorkflowTriggerConfig } from './schemas/AiWorkflowTriggerConfig';
|
|
341
|
+
export type { AiWorkflowTriggerRequest } from './schemas/AiWorkflowTriggerRequest';
|
|
342
|
+
export type { AiWorkflowTriggerResponse } from './schemas/AiWorkflowTriggerResponse';
|
|
337
343
|
export type { AiWorkflowTypeEnum } from './schemas/AiWorkflowTypeEnum';
|
|
344
|
+
export type { AlertContext } from './schemas/AlertContext';
|
|
338
345
|
export type { Artifact } from './schemas/Artifact';
|
|
339
346
|
export type { ArtifactAndDeploymentsResponseBody } from './schemas/ArtifactAndDeploymentsResponseBody';
|
|
340
347
|
export type { ArtifactChainOfCustody } from './schemas/ArtifactChainOfCustody';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface AiWorkflowAlertConfig {
|
|
2
|
+
/**
|
|
3
|
+
* User group references for approval workflows (v4)
|
|
4
|
+
*/
|
|
5
|
+
approver_user_group_refs?: string[];
|
|
6
|
+
/**
|
|
7
|
+
* Email addresses for alert notifications
|
|
8
|
+
*/
|
|
9
|
+
email_addresses?: string[];
|
|
10
|
+
/**
|
|
11
|
+
* Whether in-app banner notifications are enabled
|
|
12
|
+
*/
|
|
13
|
+
in_app_banner_enabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Harness Jira connector identifier for auto-ticket creation. Stored in v3; delivery wired in v4.
|
|
16
|
+
*/
|
|
17
|
+
jira_connector_ref?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Jira project key for auto-created tickets. Stored in v3; delivery wired in v4.
|
|
20
|
+
*/
|
|
21
|
+
jira_project_key?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Harness MS Teams connector identifiers. Accepted and stored in v3; notification delivery wired in v4.
|
|
24
|
+
*/
|
|
25
|
+
ms_teams_connector_refs?: string[];
|
|
26
|
+
/**
|
|
27
|
+
* Harness PagerDuty connector identifier. Stored in v3; delivery wired in v4.
|
|
28
|
+
*/
|
|
29
|
+
pagerduty_connector_ref?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Harness Slack connector identifiers. Resolved at send-time via ConnectorResourceClient.
|
|
32
|
+
*/
|
|
33
|
+
slack_connector_refs?: string[];
|
|
34
|
+
/**
|
|
35
|
+
* DEPRECATED: use slack_connector_refs instead. Legacy secret identifiers for Slack webhook URLs.
|
|
36
|
+
* @deprecated
|
|
37
|
+
*/
|
|
38
|
+
slack_webhook_secret_refs?: string[];
|
|
39
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AiWorkflowAlertConfig } from '../schemas/AiWorkflowAlertConfig';
|
|
2
|
+
import type { AiWorkflowExclusionScope } from '../schemas/AiWorkflowExclusionScope';
|
|
3
|
+
import type { AiWorkflowTriggerConfig } from '../schemas/AiWorkflowTriggerConfig';
|
|
4
|
+
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
5
|
+
export interface AiWorkflowConfigRequest {
|
|
6
|
+
/**
|
|
7
|
+
* Free-text instructions passed to the LLM enrichment prompt
|
|
8
|
+
*/
|
|
9
|
+
additional_instructions?: string;
|
|
10
|
+
alert_config?: AiWorkflowAlertConfig;
|
|
11
|
+
/**
|
|
12
|
+
* Master on/off switch for the remediation agent
|
|
13
|
+
*/
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
exclusion_scope?: AiWorkflowExclusionScope;
|
|
16
|
+
/**
|
|
17
|
+
* Risk categories to monitor (e.g. Remote Code Execution, SQL Injection). Stored in v3; enforcement deferred to v4.
|
|
18
|
+
*/
|
|
19
|
+
risk_categories?: string[];
|
|
20
|
+
trigger_config?: AiWorkflowTriggerConfig;
|
|
21
|
+
workflow_type?: AiWorkflowTypeEnum;
|
|
22
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { AiWorkflowAlertConfig } from '../schemas/AiWorkflowAlertConfig';
|
|
2
|
+
import type { AiWorkflowExclusionScope } from '../schemas/AiWorkflowExclusionScope';
|
|
3
|
+
import type { AiWorkflowTriggerConfig } from '../schemas/AiWorkflowTriggerConfig';
|
|
4
|
+
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
5
|
+
export interface AiWorkflowConfigResponse {
|
|
6
|
+
/**
|
|
7
|
+
* Account identifier
|
|
8
|
+
*/
|
|
9
|
+
account_id?: string;
|
|
10
|
+
additional_instructions?: string;
|
|
11
|
+
alert_config?: AiWorkflowAlertConfig;
|
|
12
|
+
/**
|
|
13
|
+
* Creation timestamp in milliseconds
|
|
14
|
+
* @format int64
|
|
15
|
+
*/
|
|
16
|
+
created_at?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Whether the AI workflow is enabled for this account
|
|
19
|
+
*/
|
|
20
|
+
enabled?: boolean;
|
|
21
|
+
exclusion_scope?: AiWorkflowExclusionScope;
|
|
22
|
+
risk_categories?: string[];
|
|
23
|
+
trigger_config?: AiWorkflowTriggerConfig;
|
|
24
|
+
/**
|
|
25
|
+
* Last updated timestamp in milliseconds
|
|
26
|
+
* @format int64
|
|
27
|
+
*/
|
|
28
|
+
updated_at?: number;
|
|
29
|
+
workflow_type?: AiWorkflowTypeEnum;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface AiWorkflowExclusionScope {
|
|
2
|
+
/**
|
|
3
|
+
* Organization identifiers to exclude from identification scans
|
|
4
|
+
*/
|
|
5
|
+
excluded_org_ids?: string[];
|
|
6
|
+
/**
|
|
7
|
+
* Project identifiers to exclude from identification scans
|
|
8
|
+
*/
|
|
9
|
+
excluded_project_ids?: string[];
|
|
10
|
+
}
|
|
@@ -1,50 +1,75 @@
|
|
|
1
1
|
import type { AffectedArtifactInfo } from '../schemas/AffectedArtifactInfo';
|
|
2
2
|
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
3
|
-
import type {
|
|
3
|
+
import type { AlertContext } from '../schemas/AlertContext';
|
|
4
4
|
import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
|
|
5
5
|
export interface AiWorkflowExecutionDetailResponse {
|
|
6
6
|
/**
|
|
7
7
|
* List of artifacts affected by this execution
|
|
8
8
|
*/
|
|
9
9
|
affected_artifacts?: AffectedArtifactInfo[];
|
|
10
|
-
ai_workflow_type?: AiWorkflowTypeEnum;
|
|
11
10
|
/**
|
|
12
|
-
*
|
|
11
|
+
* Total number of affected artifacts
|
|
13
12
|
*/
|
|
14
|
-
|
|
13
|
+
affected_targets_count?: number;
|
|
14
|
+
ai_workflow_type?: AiWorkflowTypeEnum;
|
|
15
|
+
alert_context?: AlertContext;
|
|
15
16
|
/**
|
|
16
17
|
* Name of the vulnerable component
|
|
17
18
|
*/
|
|
18
19
|
component_name?: string;
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
+
* Vulnerable version
|
|
21
22
|
*/
|
|
22
23
|
component_version?: string;
|
|
23
24
|
/**
|
|
25
|
+
* Creation timestamp in milliseconds
|
|
24
26
|
* @format int64
|
|
25
27
|
*/
|
|
26
28
|
created_at?: number;
|
|
29
|
+
/**
|
|
30
|
+
* CVE identifier
|
|
31
|
+
*/
|
|
27
32
|
cve_id?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Execution duration in seconds
|
|
35
|
+
*/
|
|
28
36
|
duration?: number;
|
|
29
37
|
/**
|
|
30
|
-
*
|
|
38
|
+
* Unique execution identifier
|
|
31
39
|
*/
|
|
32
40
|
execution_id?: string;
|
|
33
41
|
/**
|
|
34
|
-
*
|
|
42
|
+
* Recommended fix version
|
|
35
43
|
*/
|
|
36
44
|
fixed_version?: string;
|
|
37
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Sequential per-account run number
|
|
47
|
+
*/
|
|
48
|
+
run_number?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Vulnerability severity
|
|
51
|
+
*/
|
|
38
52
|
severity?: string;
|
|
39
53
|
/**
|
|
40
|
-
*
|
|
54
|
+
* Container artifacts skipped (no source repository)
|
|
55
|
+
*/
|
|
56
|
+
skipped_container_artifacts?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Artifacts skipped due to missing git metadata
|
|
41
59
|
*/
|
|
42
|
-
|
|
60
|
+
skipped_no_git_metadata?: number;
|
|
43
61
|
status?: AiWorkflowExecutionStatusEnum;
|
|
44
|
-
summary?: string;
|
|
45
62
|
/**
|
|
46
|
-
*
|
|
63
|
+
* Number of distinct repositories affected
|
|
64
|
+
*/
|
|
65
|
+
total_repositories?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Manual for user-triggered, Zero-Day for batch-triggered
|
|
68
|
+
*/
|
|
69
|
+
trigger_type?: 'Manual' | 'Zero-Day';
|
|
70
|
+
/**
|
|
71
|
+
* Epoch ms when the execution was triggered
|
|
72
|
+
* @format int64
|
|
47
73
|
*/
|
|
48
|
-
|
|
49
|
-
vulnerability_info?: string;
|
|
74
|
+
triggered_at?: number;
|
|
50
75
|
}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
2
|
-
import type { AiWorkflowResults } from '../schemas/AiWorkflowResults';
|
|
3
2
|
import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
|
|
4
3
|
export interface AiWorkflowExecutionSummary {
|
|
5
|
-
ai_workflow_type?: AiWorkflowTypeEnum;
|
|
6
4
|
/**
|
|
7
|
-
*
|
|
5
|
+
* Number of affected repositories/artifacts
|
|
8
6
|
*/
|
|
9
|
-
|
|
7
|
+
affected_targets_count?: number;
|
|
8
|
+
ai_workflow_type?: AiWorkflowTypeEnum;
|
|
10
9
|
/**
|
|
11
|
-
*
|
|
10
|
+
* Human-readable component name
|
|
12
11
|
*/
|
|
13
12
|
component_name?: string;
|
|
14
13
|
/**
|
|
15
|
-
*
|
|
14
|
+
* Vulnerable version
|
|
16
15
|
*/
|
|
17
16
|
component_version?: string;
|
|
18
17
|
/**
|
|
@@ -25,38 +24,33 @@ export interface AiWorkflowExecutionSummary {
|
|
|
25
24
|
*/
|
|
26
25
|
cve_id?: string;
|
|
27
26
|
/**
|
|
28
|
-
*
|
|
27
|
+
* Execution duration in seconds
|
|
29
28
|
*/
|
|
30
29
|
duration?: number;
|
|
31
30
|
/**
|
|
32
|
-
*
|
|
31
|
+
* Unique execution identifier (for navigation to detail)
|
|
33
32
|
*/
|
|
34
33
|
execution_id?: string;
|
|
35
34
|
/**
|
|
36
|
-
*
|
|
35
|
+
* Recommended fix version
|
|
37
36
|
*/
|
|
38
37
|
fixed_version?: string;
|
|
39
|
-
results?: AiWorkflowResults;
|
|
40
38
|
/**
|
|
41
|
-
*
|
|
39
|
+
* Sequential per-account run number
|
|
42
40
|
*/
|
|
43
|
-
|
|
41
|
+
run_number?: number;
|
|
44
42
|
/**
|
|
45
|
-
*
|
|
46
|
-
* @format date-time
|
|
43
|
+
* Vulnerability severity
|
|
47
44
|
*/
|
|
48
|
-
|
|
45
|
+
severity?: string;
|
|
49
46
|
status?: AiWorkflowExecutionStatusEnum;
|
|
50
47
|
/**
|
|
51
|
-
*
|
|
48
|
+
* Manual for user-triggered, Zero-Day for batch-triggered
|
|
52
49
|
*/
|
|
53
|
-
|
|
50
|
+
trigger_type?: 'Manual' | 'Zero-Day';
|
|
54
51
|
/**
|
|
55
|
-
*
|
|
56
|
-
|
|
57
|
-
triggered_by_display_name?: string;
|
|
58
|
-
/**
|
|
59
|
-
* CVE ID or component information
|
|
52
|
+
* Epoch ms when the execution was triggered
|
|
53
|
+
* @format int64
|
|
60
54
|
*/
|
|
61
|
-
|
|
55
|
+
triggered_at?: number;
|
|
62
56
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface AiWorkflowTriggerConfig {
|
|
2
|
+
/**
|
|
3
|
+
* Minimum severity for auto-trigger. Executions are only auto-triggered for CVEs at or above this severity.
|
|
4
|
+
*/
|
|
5
|
+
severity_threshold?: 'CRITICAL' | 'HIGH' | 'LOW' | 'MEDIUM';
|
|
6
|
+
/**
|
|
7
|
+
* Whether this account participates in zero-day batch scans
|
|
8
|
+
* @default true
|
|
9
|
+
*/
|
|
10
|
+
zero_day_monitoring_enabled?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface AiWorkflowTriggerRequest {
|
|
2
|
+
/**
|
|
3
|
+
* Human-readable component name (e.g. "Flask", "lodash")
|
|
4
|
+
* @example "Flask"
|
|
5
|
+
*/
|
|
6
|
+
component_name: string;
|
|
7
|
+
/**
|
|
8
|
+
* Vulnerable version to scan for
|
|
9
|
+
* @example "2.3.2"
|
|
10
|
+
*/
|
|
11
|
+
component_version: string;
|
|
12
|
+
/**
|
|
13
|
+
* Optional CVE identifier. When provided, severity is auto-resolved from CVE databases.
|
|
14
|
+
* @example "CVE-2026-0042"
|
|
15
|
+
*/
|
|
16
|
+
cve_id?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface AiWorkflowTriggerResponse {
|
|
2
|
+
/**
|
|
3
|
+
* @example "Flask"
|
|
4
|
+
*/
|
|
5
|
+
component_name?: string;
|
|
6
|
+
/**
|
|
7
|
+
* @example "2.3.2"
|
|
8
|
+
*/
|
|
9
|
+
component_version?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Whether this response is from a soft-dedup hit
|
|
12
|
+
*/
|
|
13
|
+
deduped?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Unique execution identifier
|
|
16
|
+
* @example "exec-a1b2c3d4"
|
|
17
|
+
*/
|
|
18
|
+
execution_id?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Harness pipeline execution ID
|
|
21
|
+
* @example "pipe-x1y2z3"
|
|
22
|
+
*/
|
|
23
|
+
pipeline_execution_id?: string;
|
|
24
|
+
/**
|
|
25
|
+
* PURLs resolved from component_name within the account's SBOM data.
|
|
26
|
+
* @example ["pkg:pypi/flask"]
|
|
27
|
+
*/
|
|
28
|
+
resolved_purls?: string[];
|
|
29
|
+
/**
|
|
30
|
+
* Sequential run number for this account
|
|
31
|
+
* @example 47
|
|
32
|
+
*/
|
|
33
|
+
run_number?: number;
|
|
34
|
+
/**
|
|
35
|
+
* The PURL that was selected for pipeline execution.
|
|
36
|
+
* @example "pkg:pypi/flask"
|
|
37
|
+
*/
|
|
38
|
+
selected_purl?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Initial status
|
|
41
|
+
* @example "PENDING_IDENTIFICATION"
|
|
42
|
+
*/
|
|
43
|
+
status?: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enriched component analysis from Step 1. Populated by scs-alert-context-agent. Null until enrichment completes.
|
|
3
|
+
*/
|
|
4
|
+
export interface AlertContext {
|
|
5
|
+
/**
|
|
6
|
+
* Entry points an attacker could exploit
|
|
7
|
+
*/
|
|
8
|
+
attack_surface?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Package name
|
|
11
|
+
*/
|
|
12
|
+
component_name?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Component classification
|
|
15
|
+
*/
|
|
16
|
+
component_type?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Vulnerable version
|
|
19
|
+
*/
|
|
20
|
+
component_version?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Approximate number of dependent packages
|
|
23
|
+
*/
|
|
24
|
+
dependents_count?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Package description from registry
|
|
27
|
+
*/
|
|
28
|
+
description?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Package ecosystems the component belongs to
|
|
31
|
+
*/
|
|
32
|
+
ecosystems?: string[];
|
|
33
|
+
/**
|
|
34
|
+
* Specific code-level exposure areas
|
|
35
|
+
*/
|
|
36
|
+
exposure_points?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Well-known organizations using this component
|
|
39
|
+
*/
|
|
40
|
+
notable_consumers?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Popularity indicator (stars, downloads)
|
|
43
|
+
*/
|
|
44
|
+
popularity?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Source repository URL from registry metadata
|
|
47
|
+
*/
|
|
48
|
+
repo_url?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Blast-radius risk assessment
|
|
51
|
+
*/
|
|
52
|
+
risk_factor?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Common vulnerability patterns for this component type
|
|
55
|
+
*/
|
|
56
|
+
risk_pattern?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Common use cases for this component
|
|
59
|
+
*/
|
|
60
|
+
use_cases?: string[];
|
|
61
|
+
}
|
package/package.json
CHANGED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { AiWorkflowExecutionSummary } from '../schemas/AiWorkflowExecutionSummary';
|
|
2
|
-
export interface AiWorkflowExecutionListResponse {
|
|
3
|
-
/**
|
|
4
|
-
* List of AI workflow executions
|
|
5
|
-
*/
|
|
6
|
-
executions?: AiWorkflowExecutionSummary[];
|
|
7
|
-
/**
|
|
8
|
-
* True if there are more results after this page
|
|
9
|
-
*/
|
|
10
|
-
has_next_page?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Opaque cursor to pass in the next request. Null when there are no more pages.
|
|
13
|
-
*/
|
|
14
|
-
next_cursor?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Number of items per page
|
|
17
|
-
*/
|
|
18
|
-
page_size?: number;
|
|
19
|
-
}
|
|
File without changes
|