@harnessio/react-ssca-manager-client 0.84.19 → 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 +23 -4
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowExecutionsQuery.js +1 -1
- package/dist/ssca-manager/src/services/hooks/useGetBulkDownloadStatusQuery.d.ts +21 -0
- package/dist/ssca-manager/src/services/hooks/useGetBulkDownloadStatusQuery.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +14 -1
- package/dist/ssca-manager/src/services/index.js +1 -0
- package/dist/ssca-manager/src/services/responses/AttestationBulkDownloadResponseBodyResponse.d.ts +2 -2
- package/dist/ssca-manager/src/services/schemas/AffectedArtifactInfo.d.ts +23 -0
- package/dist/ssca-manager/src/services/schemas/AffectedArtifactInfo.js +4 -0
- 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 +75 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionDetailResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionStatusEnum.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionStatusEnum.js +4 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionSummary.d.ts +26 -14
- 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/dist/ssca-manager/src/services/schemas/AttestationBulkDownloadRequest.d.ts +12 -4
- package/dist/ssca-manager/src/services/schemas/AttestationListingResponse.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/BulkDownloadJobResponse.d.ts +32 -0
- package/dist/ssca-manager/src/services/schemas/BulkDownloadJobResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/HarnessRunner.d.ts +1 -0
- package/package.json +1 -1
- package/dist/ssca-manager/src/services/schemas/AiWorkflowExecutionListResponse.d.ts +0 -7
- /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,6 @@
|
|
|
1
1
|
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import type {
|
|
2
|
+
import type { AiWorkflowExecutionSummary } from '../schemas/AiWorkflowExecutionSummary';
|
|
3
|
+
import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
|
|
3
4
|
import type { ResponseWithPagination } from '../helpers';
|
|
4
5
|
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
6
|
export interface GetAiWorkflowExecutionsQueryPathParams {
|
|
@@ -7,18 +8,36 @@ export interface GetAiWorkflowExecutionsQueryPathParams {
|
|
|
7
8
|
project: string;
|
|
8
9
|
}
|
|
9
10
|
export interface GetAiWorkflowExecutionsQueryQueryParams {
|
|
10
|
-
ai_workflow_type
|
|
11
|
+
ai_workflow_type?: string;
|
|
12
|
+
status?: AiWorkflowExecutionStatusEnum;
|
|
13
|
+
/**
|
|
14
|
+
* @format int64
|
|
15
|
+
*/
|
|
16
|
+
from_timestamp?: number;
|
|
17
|
+
/**
|
|
18
|
+
* @format int64
|
|
19
|
+
*/
|
|
20
|
+
to_timestamp?: number;
|
|
21
|
+
batch_id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @default 0
|
|
24
|
+
*/
|
|
25
|
+
page?: number;
|
|
26
|
+
/**
|
|
27
|
+
* @default 30
|
|
28
|
+
*/
|
|
29
|
+
limit?: number;
|
|
11
30
|
}
|
|
12
31
|
export interface GetAiWorkflowExecutionsQueryHeaderParams {
|
|
13
32
|
'Harness-Account': string;
|
|
14
33
|
}
|
|
15
|
-
export type GetAiWorkflowExecutionsOkResponse = ResponseWithPagination<
|
|
34
|
+
export type GetAiWorkflowExecutionsOkResponse = ResponseWithPagination<AiWorkflowExecutionSummary[]>;
|
|
16
35
|
export type GetAiWorkflowExecutionsErrorResponse = unknown;
|
|
17
36
|
export interface GetAiWorkflowExecutionsProps extends GetAiWorkflowExecutionsQueryPathParams, Omit<FetcherOptions<GetAiWorkflowExecutionsQueryQueryParams, unknown, GetAiWorkflowExecutionsQueryHeaderParams>, 'url'> {
|
|
18
37
|
queryParams: GetAiWorkflowExecutionsQueryQueryParams;
|
|
19
38
|
}
|
|
20
39
|
export declare function getAiWorkflowExecutions(props: GetAiWorkflowExecutionsProps): Promise<GetAiWorkflowExecutionsOkResponse>;
|
|
21
40
|
/**
|
|
22
|
-
* Get AI workflow executions
|
|
41
|
+
* Get AI workflow executions with optional filters for status, date range, batch ID, and workflow type
|
|
23
42
|
*/
|
|
24
43
|
export declare function useGetAiWorkflowExecutionsQuery(props: GetAiWorkflowExecutionsProps, options?: Omit<UseQueryOptions<GetAiWorkflowExecutionsOkResponse, GetAiWorkflowExecutionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAiWorkflowExecutionsOkResponse, unknown>;
|
|
@@ -7,7 +7,7 @@ export function getAiWorkflowExecutions(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v1/orgs/${props.org}/projects/${props.project}/ai-workflow-executions`, method: 'GET' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Get AI workflow executions
|
|
10
|
+
* Get AI workflow executions with optional filters for status, date range, batch ID, and workflow type
|
|
11
11
|
*/
|
|
12
12
|
export function useGetAiWorkflowExecutionsQuery(props, options) {
|
|
13
13
|
return useQuery(['getAIWorkflowExecutions', props.org, props.project, props.queryParams], ({ signal }) => getAiWorkflowExecutions(Object.assign(Object.assign({}, props), { signal })), options);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { BulkDownloadJobResponse } from '../schemas/BulkDownloadJobResponse';
|
|
3
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
4
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
5
|
+
export interface GetBulkDownloadStatusQueryPathParams {
|
|
6
|
+
org: string;
|
|
7
|
+
project: string;
|
|
8
|
+
jobId: string;
|
|
9
|
+
}
|
|
10
|
+
export interface GetBulkDownloadStatusQueryHeaderParams {
|
|
11
|
+
'Harness-Account': string;
|
|
12
|
+
}
|
|
13
|
+
export type GetBulkDownloadStatusOkResponse = ResponseWithPagination<BulkDownloadJobResponse>;
|
|
14
|
+
export type GetBulkDownloadStatusErrorResponse = unknown;
|
|
15
|
+
export interface GetBulkDownloadStatusProps extends GetBulkDownloadStatusQueryPathParams, Omit<FetcherOptions<unknown, unknown, GetBulkDownloadStatusQueryHeaderParams>, 'url'> {
|
|
16
|
+
}
|
|
17
|
+
export declare function getBulkDownloadStatus(props: GetBulkDownloadStatusProps): Promise<GetBulkDownloadStatusOkResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Poll this endpoint to check whether the ZIP is ready. When status is COMPLETED, the response includes a time-limited pre-signed download URL.
|
|
20
|
+
*/
|
|
21
|
+
export declare function useGetBulkDownloadStatusQuery(props: GetBulkDownloadStatusProps, options?: Omit<UseQueryOptions<GetBulkDownloadStatusOkResponse, GetBulkDownloadStatusErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetBulkDownloadStatusOkResponse, 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 getBulkDownloadStatus(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v2/orgs/${props.org}/projects/${props.project}/attestations/bulk-download/${props.jobId}/status`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Poll this endpoint to check whether the ZIP is ready. When status is COMPLETED, the response includes a time-limited pre-signed download URL.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetBulkDownloadStatusQuery(props, options) {
|
|
13
|
+
return useQuery(['getBulkDownloadStatus', props.org, props.project, props.jobId], ({ signal }) => getBulkDownloadStatus(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -83,6 +83,8 @@ export type { GetAutoPrPresetsErrorResponse, GetAutoPrPresetsOkResponse, GetAuto
|
|
|
83
83
|
export { getAutoPrPresets, useGetAutoPrPresetsQuery } from './hooks/useGetAutoPrPresetsQuery';
|
|
84
84
|
export type { GetBaselineForArtifactErrorResponse, GetBaselineForArtifactOkResponse, GetBaselineForArtifactProps, GetBaselineForArtifactQueryPathParams, } from './hooks/useGetBaselineForArtifactQuery';
|
|
85
85
|
export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
|
|
86
|
+
export type { GetBulkDownloadStatusErrorResponse, GetBulkDownloadStatusOkResponse, GetBulkDownloadStatusProps, GetBulkDownloadStatusQueryPathParams, } from './hooks/useGetBulkDownloadStatusQuery';
|
|
87
|
+
export { getBulkDownloadStatus, useGetBulkDownloadStatusQuery, } from './hooks/useGetBulkDownloadStatusQuery';
|
|
86
88
|
export type { GetCicdOverviewErrorResponse, GetCicdOverviewOkResponse, GetCicdOverviewProps, GetCicdOverviewQueryPathParams, } from './hooks/useGetCicdOverviewQuery';
|
|
87
89
|
export { getCicdOverview, useGetCicdOverviewQuery } from './hooks/useGetCicdOverviewQuery';
|
|
88
90
|
export type { GetCicdRulesEvaluationTrendErrorResponse, GetCicdRulesEvaluationTrendOkResponse, GetCicdRulesEvaluationTrendProps, GetCicdRulesEvaluationTrendQueryPathParams, GetCicdRulesEvaluationTrendQueryQueryParams, } from './hooks/useGetCicdRulesEvaluationTrendQuery';
|
|
@@ -323,13 +325,23 @@ export type { TokenIssueResponseBodyResponse } from './responses/TokenIssueRespo
|
|
|
323
325
|
export type { UpdateIntegrationResponseBodyResponse } from './responses/UpdateIntegrationResponseBodyResponse';
|
|
324
326
|
export type { VersionResponseBodyResponse } from './responses/VersionResponseBodyResponse';
|
|
325
327
|
export type { ActivityDetails } from './schemas/ActivityDetails';
|
|
326
|
-
export type {
|
|
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';
|
|
333
|
+
export type { AiWorkflowExecutionDetailResponse } from './schemas/AiWorkflowExecutionDetailResponse';
|
|
327
334
|
export type { AiWorkflowExecutionRequest } from './schemas/AiWorkflowExecutionRequest';
|
|
335
|
+
export type { AiWorkflowExecutionStatusEnum } from './schemas/AiWorkflowExecutionStatusEnum';
|
|
328
336
|
export type { AiWorkflowExecutionStepsResponse } from './schemas/AiWorkflowExecutionStepsResponse';
|
|
329
337
|
export type { AiWorkflowExecutionSummary } from './schemas/AiWorkflowExecutionSummary';
|
|
330
338
|
export type { AiWorkflowResults } from './schemas/AiWorkflowResults';
|
|
331
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';
|
|
332
343
|
export type { AiWorkflowTypeEnum } from './schemas/AiWorkflowTypeEnum';
|
|
344
|
+
export type { AlertContext } from './schemas/AlertContext';
|
|
333
345
|
export type { Artifact } from './schemas/Artifact';
|
|
334
346
|
export type { ArtifactAndDeploymentsResponseBody } from './schemas/ArtifactAndDeploymentsResponseBody';
|
|
335
347
|
export type { ArtifactChainOfCustody } from './schemas/ArtifactChainOfCustody';
|
|
@@ -402,6 +414,7 @@ export type { BaselineV2RequestBody } from './schemas/BaselineV2RequestBody';
|
|
|
402
414
|
export type { BatchComponentRemediationItem } from './schemas/BatchComponentRemediationItem';
|
|
403
415
|
export type { BatchComponentRemediationRequest } from './schemas/BatchComponentRemediationRequest';
|
|
404
416
|
export type { BatchComponentRemediationResponse } from './schemas/BatchComponentRemediationResponse';
|
|
417
|
+
export type { BulkDownloadJobResponse } from './schemas/BulkDownloadJobResponse';
|
|
405
418
|
export type { CategoryScorecard } from './schemas/CategoryScorecard';
|
|
406
419
|
export type { CategoryScorecardCheck } from './schemas/CategoryScorecardCheck';
|
|
407
420
|
export type { ChunkMetadata } from './schemas/ChunkMetadata';
|
|
@@ -40,6 +40,7 @@ export { getAttestationSummaryByType, useGetAttestationSummaryByTypeMutation, }
|
|
|
40
40
|
export { getAutoPrConfig, useGetAutoPrConfigQuery } from './hooks/useGetAutoPrConfigQuery';
|
|
41
41
|
export { getAutoPrPresets, useGetAutoPrPresetsQuery } from './hooks/useGetAutoPrPresetsQuery';
|
|
42
42
|
export { getBaselineForArtifact, useGetBaselineForArtifactQuery, } from './hooks/useGetBaselineForArtifactQuery';
|
|
43
|
+
export { getBulkDownloadStatus, useGetBulkDownloadStatusQuery, } from './hooks/useGetBulkDownloadStatusQuery';
|
|
43
44
|
export { getCicdOverview, useGetCicdOverviewQuery } from './hooks/useGetCicdOverviewQuery';
|
|
44
45
|
export { getCicdRulesEvaluationTrend, useGetCicdRulesEvaluationTrendQuery, } from './hooks/useGetCicdRulesEvaluationTrendQuery';
|
|
45
46
|
export { getCicdWorkflowsList, useGetCicdWorkflowsListQuery, } from './hooks/useGetCicdWorkflowsListQuery';
|
package/dist/ssca-manager/src/services/responses/AttestationBulkDownloadResponseBodyResponse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export type AttestationBulkDownloadResponseBodyResponse =
|
|
1
|
+
import type { BulkDownloadJobResponse } from '../schemas/BulkDownloadJobResponse';
|
|
2
|
+
export type AttestationBulkDownloadResponseBodyResponse = BulkDownloadJobResponse;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface AffectedArtifactInfo {
|
|
2
|
+
artifact_id?: string;
|
|
3
|
+
artifact_name?: string;
|
|
4
|
+
artifact_version?: string;
|
|
5
|
+
base_branch?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Environment type (Production, NonProduction)
|
|
8
|
+
*/
|
|
9
|
+
env_type?: string;
|
|
10
|
+
fix_version?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Names of non-production environments
|
|
13
|
+
*/
|
|
14
|
+
non_prod_env_names?: string[];
|
|
15
|
+
package_name?: string;
|
|
16
|
+
package_version?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Names of production environments
|
|
19
|
+
*/
|
|
20
|
+
prod_env_names?: string[];
|
|
21
|
+
repo_name?: string;
|
|
22
|
+
repo_url?: string;
|
|
23
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { AffectedArtifactInfo } from '../schemas/AffectedArtifactInfo';
|
|
2
|
+
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
3
|
+
import type { AlertContext } from '../schemas/AlertContext';
|
|
4
|
+
import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
|
|
5
|
+
export interface AiWorkflowExecutionDetailResponse {
|
|
6
|
+
/**
|
|
7
|
+
* List of artifacts affected by this execution
|
|
8
|
+
*/
|
|
9
|
+
affected_artifacts?: AffectedArtifactInfo[];
|
|
10
|
+
/**
|
|
11
|
+
* Total number of affected artifacts
|
|
12
|
+
*/
|
|
13
|
+
affected_targets_count?: number;
|
|
14
|
+
ai_workflow_type?: AiWorkflowTypeEnum;
|
|
15
|
+
alert_context?: AlertContext;
|
|
16
|
+
/**
|
|
17
|
+
* Name of the vulnerable component
|
|
18
|
+
*/
|
|
19
|
+
component_name?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Vulnerable version
|
|
22
|
+
*/
|
|
23
|
+
component_version?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Creation timestamp in milliseconds
|
|
26
|
+
* @format int64
|
|
27
|
+
*/
|
|
28
|
+
created_at?: number;
|
|
29
|
+
/**
|
|
30
|
+
* CVE identifier
|
|
31
|
+
*/
|
|
32
|
+
cve_id?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Execution duration in seconds
|
|
35
|
+
*/
|
|
36
|
+
duration?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Unique execution identifier
|
|
39
|
+
*/
|
|
40
|
+
execution_id?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Recommended fix version
|
|
43
|
+
*/
|
|
44
|
+
fixed_version?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Sequential per-account run number
|
|
47
|
+
*/
|
|
48
|
+
run_number?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Vulnerability severity
|
|
51
|
+
*/
|
|
52
|
+
severity?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Container artifacts skipped (no source repository)
|
|
55
|
+
*/
|
|
56
|
+
skipped_container_artifacts?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Artifacts skipped due to missing git metadata
|
|
59
|
+
*/
|
|
60
|
+
skipped_no_git_metadata?: number;
|
|
61
|
+
status?: AiWorkflowExecutionStatusEnum;
|
|
62
|
+
/**
|
|
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
|
|
73
|
+
*/
|
|
74
|
+
triggered_at?: number;
|
|
75
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import type { AiWorkflowTypeEnum } from '../schemas/AiWorkflowTypeEnum';
|
|
2
|
-
import type {
|
|
2
|
+
import type { AiWorkflowExecutionStatusEnum } from '../schemas/AiWorkflowExecutionStatusEnum';
|
|
3
3
|
export interface AiWorkflowExecutionSummary {
|
|
4
|
+
/**
|
|
5
|
+
* Number of affected repositories/artifacts
|
|
6
|
+
*/
|
|
7
|
+
affected_targets_count?: number;
|
|
4
8
|
ai_workflow_type?: AiWorkflowTypeEnum;
|
|
5
9
|
/**
|
|
6
|
-
*
|
|
10
|
+
* Human-readable component name
|
|
7
11
|
*/
|
|
8
12
|
component_name?: string;
|
|
9
13
|
/**
|
|
10
|
-
*
|
|
14
|
+
* Vulnerable version
|
|
11
15
|
*/
|
|
12
16
|
component_version?: string;
|
|
13
17
|
/**
|
|
@@ -16,29 +20,37 @@ export interface AiWorkflowExecutionSummary {
|
|
|
16
20
|
*/
|
|
17
21
|
created_at?: number;
|
|
18
22
|
/**
|
|
19
|
-
*
|
|
23
|
+
* CVE identifier
|
|
24
|
+
*/
|
|
25
|
+
cve_id?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Execution duration in seconds
|
|
20
28
|
*/
|
|
21
29
|
duration?: number;
|
|
22
30
|
/**
|
|
23
|
-
*
|
|
31
|
+
* Unique execution identifier (for navigation to detail)
|
|
24
32
|
*/
|
|
25
33
|
execution_id?: string;
|
|
26
34
|
/**
|
|
27
|
-
*
|
|
35
|
+
* Recommended fix version
|
|
28
36
|
*/
|
|
29
37
|
fixed_version?: string;
|
|
30
|
-
results?: AiWorkflowResults;
|
|
31
38
|
/**
|
|
32
|
-
*
|
|
33
|
-
* @format date-time
|
|
39
|
+
* Sequential per-account run number
|
|
34
40
|
*/
|
|
35
|
-
|
|
41
|
+
run_number?: number;
|
|
36
42
|
/**
|
|
37
|
-
*
|
|
43
|
+
* Vulnerability severity
|
|
38
44
|
*/
|
|
39
|
-
|
|
45
|
+
severity?: string;
|
|
46
|
+
status?: AiWorkflowExecutionStatusEnum;
|
|
40
47
|
/**
|
|
41
|
-
*
|
|
48
|
+
* Manual for user-triggered, Zero-Day for batch-triggered
|
|
49
|
+
*/
|
|
50
|
+
trigger_type?: 'Manual' | 'Zero-Day';
|
|
51
|
+
/**
|
|
52
|
+
* Epoch ms when the execution was triggered
|
|
53
|
+
* @format int64
|
|
42
54
|
*/
|
|
43
|
-
|
|
55
|
+
triggered_at?: number;
|
|
44
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
|
+
}
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Download multiple attestations
|
|
2
|
+
* Download multiple attestations as a ZIP. Provide attestation_ids for direct lookup, or use filters (time range, types, sources). At least one filter must be provided.
|
|
3
3
|
*/
|
|
4
4
|
export interface AttestationBulkDownloadRequest {
|
|
5
5
|
/**
|
|
6
|
-
* GitOID SHA-256 digests to download.
|
|
6
|
+
* GitOID SHA-256 digests to download. When provided, other filters are ignored.
|
|
7
7
|
*/
|
|
8
8
|
attestation_ids?: string[];
|
|
9
9
|
/**
|
|
10
|
-
* Inclusive range end, epoch ms UTC (creation time). Use with start_time
|
|
10
|
+
* Inclusive range end, epoch ms UTC (creation time). Use with start_time.
|
|
11
11
|
* @format int64
|
|
12
12
|
*/
|
|
13
13
|
end_time?: number;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Filter by attestation source (Harness, GithubActions, Jenkins, Others).
|
|
16
|
+
*/
|
|
17
|
+
sources?: string[];
|
|
18
|
+
/**
|
|
19
|
+
* Inclusive range start, epoch ms UTC (creation time). Use with end_time.
|
|
16
20
|
* @format int64
|
|
17
21
|
*/
|
|
18
22
|
start_time?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Filter by attestation type (Code, Build, Test, Security, Deploy, Custom).
|
|
25
|
+
*/
|
|
26
|
+
types?: string[];
|
|
19
27
|
}
|
|
@@ -30,6 +30,10 @@ export interface AttestationListingResponse<T0 extends ExecutionContextV2 = Exec
|
|
|
30
30
|
* First subject summary; null if none.
|
|
31
31
|
*/
|
|
32
32
|
subject?: AttestationSubjectSummary;
|
|
33
|
+
/**
|
|
34
|
+
* All attestation subjects for this record (may be empty).
|
|
35
|
+
*/
|
|
36
|
+
subjects?: AttestationSubjectSummary[];
|
|
33
37
|
type: AttestationType;
|
|
34
38
|
/**
|
|
35
39
|
* Updated at (epoch ms).
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface BulkDownloadJobResponse {
|
|
2
|
+
/**
|
|
3
|
+
* Job creation time (epoch ms).
|
|
4
|
+
* @format int64
|
|
5
|
+
*/
|
|
6
|
+
created_at: number;
|
|
7
|
+
/**
|
|
8
|
+
* Pre-signed URL for downloading the ZIP. Only present when status is COMPLETED.
|
|
9
|
+
*/
|
|
10
|
+
download_url?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Error message. Only present when status is FAILED.
|
|
13
|
+
*/
|
|
14
|
+
error?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Expiration time of the download URL (epoch ms). Only present when status is COMPLETED.
|
|
17
|
+
* @format int64
|
|
18
|
+
*/
|
|
19
|
+
expires_at?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Unique identifier for the bulk download job.
|
|
22
|
+
*/
|
|
23
|
+
job_id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Current status of the bulk download job.
|
|
26
|
+
*/
|
|
27
|
+
status: 'COMPLETED' | 'FAILED' | 'PENDING';
|
|
28
|
+
/**
|
|
29
|
+
* Number of attestations to be downloaded.
|
|
30
|
+
*/
|
|
31
|
+
total_attestations: number;
|
|
32
|
+
}
|
package/package.json
CHANGED
|
File without changes
|