@harnessio/react-ssca-manager-client 0.86.14 → 0.86.16
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/useGetAiWorkflowInfoByScanIdsQuery.d.ts +19 -0
- package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowInfoByScanIdsQuery.js +14 -0
- package/dist/ssca-manager/src/services/index.d.ts +8 -0
- package/dist/ssca-manager/src/services/index.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowInfoByScanIdsRequest.d.ts +10 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowInfoByScanIdsRequest.js +1 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowInfoByScanIdsResponse.d.ts +8 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowInfoByScanIdsResponse.js +4 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowScanTargetPair.d.ts +4 -0
- package/dist/ssca-manager/src/services/schemas/AiWorkflowScanTargetPair.js +4 -0
- package/dist/ssca-manager/src/services/schemas/LicenseCondition.d.ts +21 -0
- package/dist/ssca-manager/src/services/schemas/LicenseCondition.js +4 -0
- package/dist/ssca-manager/src/services/schemas/LicenseConditionsResponse.d.ts +11 -0
- package/dist/ssca-manager/src/services/schemas/LicenseConditionsResponse.js +1 -0
- package/dist/ssca-manager/src/services/schemas/RspmScannerId.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/UpdateAiWorkflowExecutionStatusConflict.d.ts +17 -0
- package/dist/ssca-manager/src/services/schemas/UpdateAiWorkflowExecutionStatusConflict.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { AiWorkflowInfoByScanIdsResponse } from '../schemas/AiWorkflowInfoByScanIdsResponse';
|
|
3
|
+
import type { AiWorkflowInfoByScanIdsRequest } from '../schemas/AiWorkflowInfoByScanIdsRequest';
|
|
4
|
+
import type { ResponseWithPagination } from '../helpers';
|
|
5
|
+
import { FetcherOptions } from '../../../../fetcher/index.js';
|
|
6
|
+
export interface GetAiWorkflowInfoByScanIdsQueryHeaderParams {
|
|
7
|
+
'Harness-Account': string;
|
|
8
|
+
}
|
|
9
|
+
export type GetAiWorkflowInfoByScanIdsRequestBody = AiWorkflowInfoByScanIdsRequest;
|
|
10
|
+
export type GetAiWorkflowInfoByScanIdsOkResponse = ResponseWithPagination<AiWorkflowInfoByScanIdsResponse>;
|
|
11
|
+
export type GetAiWorkflowInfoByScanIdsErrorResponse = unknown;
|
|
12
|
+
export interface GetAiWorkflowInfoByScanIdsProps extends Omit<FetcherOptions<unknown, GetAiWorkflowInfoByScanIdsRequestBody, GetAiWorkflowInfoByScanIdsQueryHeaderParams>, 'url'> {
|
|
13
|
+
body: GetAiWorkflowInfoByScanIdsRequestBody;
|
|
14
|
+
}
|
|
15
|
+
export declare function getAiWorkflowInfoByScanIds(props: GetAiWorkflowInfoByScanIdsProps): Promise<GetAiWorkflowInfoByScanIdsOkResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* Frontend lookup of one aggregated agent status for up to 100 (scanId, targetId) pairs. Matches AIWorkflowExecutionEntity rows of the requested ai_workflow_type in originating org/project. Aggregation: any RUNNING, else any PENDING (QUEUED maps to PENDING), else no matching rows is NOT_TRIGGERED, else COMPLETED (COMPLETED, FAILED, SKIPPED, and mixes). lastStatusCheckAt: when COMPLETED, updatedAt of the last terminal execution (COMPLETED/FAILED/SKIPPED); otherwise the time of this API call. Do not use cartesian scanId $in + targetId $in.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useGetAiWorkflowInfoByScanIdsQuery(props: GetAiWorkflowInfoByScanIdsProps, options?: Omit<UseQueryOptions<GetAiWorkflowInfoByScanIdsOkResponse, GetAiWorkflowInfoByScanIdsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetAiWorkflowInfoByScanIdsOkResponse, 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 getAiWorkflowInfoByScanIds(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v1/ai-workflow-executions/info-by-scan-ids`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Frontend lookup of one aggregated agent status for up to 100 (scanId, targetId) pairs. Matches AIWorkflowExecutionEntity rows of the requested ai_workflow_type in originating org/project. Aggregation: any RUNNING, else any PENDING (QUEUED maps to PENDING), else no matching rows is NOT_TRIGGERED, else COMPLETED (COMPLETED, FAILED, SKIPPED, and mixes). lastStatusCheckAt: when COMPLETED, updatedAt of the last terminal execution (COMPLETED/FAILED/SKIPPED); otherwise the time of this API call. Do not use cartesian scanId $in + targetId $in.
|
|
11
|
+
*/
|
|
12
|
+
export function useGetAiWorkflowInfoByScanIdsQuery(props, options) {
|
|
13
|
+
return useQuery(['getAIWorkflowInfoByScanIds', props.body], ({ signal }) => getAiWorkflowInfoByScanIds(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -67,6 +67,8 @@ export type { GetAiWorkflowExecutionStepsAccountScopeErrorResponse, GetAiWorkflo
|
|
|
67
67
|
export { getAiWorkflowExecutionStepsAccountScope, useGetAiWorkflowExecutionStepsAccountScopeQuery, } from './hooks/useGetAiWorkflowExecutionStepsAccountScopeQuery';
|
|
68
68
|
export type { GetAiWorkflowExecutionsAccountScopeErrorResponse, GetAiWorkflowExecutionsAccountScopeOkResponse, GetAiWorkflowExecutionsAccountScopeProps, GetAiWorkflowExecutionsAccountScopeQueryQueryParams, } from './hooks/useGetAiWorkflowExecutionsAccountScopeQuery';
|
|
69
69
|
export { getAiWorkflowExecutionsAccountScope, useGetAiWorkflowExecutionsAccountScopeQuery, } from './hooks/useGetAiWorkflowExecutionsAccountScopeQuery';
|
|
70
|
+
export type { GetAiWorkflowInfoByScanIdsErrorResponse, GetAiWorkflowInfoByScanIdsOkResponse, GetAiWorkflowInfoByScanIdsProps, GetAiWorkflowInfoByScanIdsRequestBody, } from './hooks/useGetAiWorkflowInfoByScanIdsQuery';
|
|
71
|
+
export { getAiWorkflowInfoByScanIds, useGetAiWorkflowInfoByScanIdsQuery, } from './hooks/useGetAiWorkflowInfoByScanIdsQuery';
|
|
70
72
|
export type { GetAllRepositoriesSummaryErrorResponse, GetAllRepositoriesSummaryOkResponse, GetAllRepositoriesSummaryProps, GetAllRepositoriesSummaryQueryPathParams, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
71
73
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
72
74
|
export type { GetArtifactChainOfCustodyV2ErrorResponse, GetArtifactChainOfCustodyV2OkResponse, GetArtifactChainOfCustodyV2Props, GetArtifactChainOfCustodyV2QueryPathParams, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
@@ -429,8 +431,11 @@ export type { AiWorkflowExecutionStatusEnum } from './schemas/AiWorkflowExecutio
|
|
|
429
431
|
export type { AiWorkflowExecutionStepsResponse } from './schemas/AiWorkflowExecutionStepsResponse';
|
|
430
432
|
export type { AiWorkflowExecutionSummary } from './schemas/AiWorkflowExecutionSummary';
|
|
431
433
|
export type { AiWorkflowIncludeScope } from './schemas/AiWorkflowIncludeScope';
|
|
434
|
+
export type { AiWorkflowInfoByScanIdsRequest } from './schemas/AiWorkflowInfoByScanIdsRequest';
|
|
435
|
+
export type { AiWorkflowInfoByScanIdsResponse } from './schemas/AiWorkflowInfoByScanIdsResponse';
|
|
432
436
|
export type { AiWorkflowInfrastructureConfig } from './schemas/AiWorkflowInfrastructureConfig';
|
|
433
437
|
export type { AiWorkflowResults } from './schemas/AiWorkflowResults';
|
|
438
|
+
export type { AiWorkflowScanTargetPair } from './schemas/AiWorkflowScanTargetPair';
|
|
434
439
|
export type { AiWorkflowScopeEntry } from './schemas/AiWorkflowScopeEntry';
|
|
435
440
|
export type { AiWorkflowStepExecution } from './schemas/AiWorkflowStepExecution';
|
|
436
441
|
export type { AiWorkflowTriggerConfig } from './schemas/AiWorkflowTriggerConfig';
|
|
@@ -692,6 +697,8 @@ export type { JenkinsRunner } from './schemas/JenkinsRunner';
|
|
|
692
697
|
export type { JenkinsRunnerDetail } from './schemas/JenkinsRunnerDetail';
|
|
693
698
|
export type { JenkinsScmRepo } from './schemas/JenkinsScmRepo';
|
|
694
699
|
export type { LayerType } from './schemas/LayerType';
|
|
700
|
+
export type { LicenseCondition } from './schemas/LicenseCondition';
|
|
701
|
+
export type { LicenseConditionsResponse } from './schemas/LicenseConditionsResponse';
|
|
695
702
|
export type { LicenseDrift } from './schemas/LicenseDrift';
|
|
696
703
|
export type { LicenseDriftSummary } from './schemas/LicenseDriftSummary';
|
|
697
704
|
export type { LicenseFamilyConfigResponse } from './schemas/LicenseFamilyConfigResponse';
|
|
@@ -824,6 +831,7 @@ export type { TicketInfo } from './schemas/TicketInfo';
|
|
|
824
831
|
export type { TokenIssueResponseBody } from './schemas/TokenIssueResponseBody';
|
|
825
832
|
export type { TokenIssueTokenResponseBody } from './schemas/TokenIssueTokenResponseBody';
|
|
826
833
|
export type { TriggerType } from './schemas/TriggerType';
|
|
834
|
+
export type { UpdateAiWorkflowExecutionStatusConflict } from './schemas/UpdateAiWorkflowExecutionStatusConflict';
|
|
827
835
|
export type { UpdateAiWorkflowExecutionStatusRequest } from './schemas/UpdateAiWorkflowExecutionStatusRequest';
|
|
828
836
|
export type { UpdateAiWorkflowExecutionStatusResponse } from './schemas/UpdateAiWorkflowExecutionStatusResponse';
|
|
829
837
|
export type { UpdateIntegration } from './schemas/UpdateIntegration';
|
|
@@ -32,6 +32,7 @@ export { getAiWorkflowExecutionAffectedTargets, useGetAiWorkflowExecutionAffecte
|
|
|
32
32
|
export { getAiWorkflowExecutionDetail, useGetAiWorkflowExecutionDetailQuery, } from './hooks/useGetAiWorkflowExecutionDetailQuery';
|
|
33
33
|
export { getAiWorkflowExecutionStepsAccountScope, useGetAiWorkflowExecutionStepsAccountScopeQuery, } from './hooks/useGetAiWorkflowExecutionStepsAccountScopeQuery';
|
|
34
34
|
export { getAiWorkflowExecutionsAccountScope, useGetAiWorkflowExecutionsAccountScopeQuery, } from './hooks/useGetAiWorkflowExecutionsAccountScopeQuery';
|
|
35
|
+
export { getAiWorkflowInfoByScanIds, useGetAiWorkflowInfoByScanIdsQuery, } from './hooks/useGetAiWorkflowInfoByScanIdsQuery';
|
|
35
36
|
export { getAllRepositoriesSummary, useGetAllRepositoriesSummaryQuery, } from './hooks/useGetAllRepositoriesSummaryQuery';
|
|
36
37
|
export { getArtifactChainOfCustodyV2, useGetArtifactChainOfCustodyV2Query, } from './hooks/useGetArtifactChainOfCustodyV2Query';
|
|
37
38
|
export { getArtifactComponentDependenciesByPurl, useGetArtifactComponentDependenciesByPurlQuery, } from './hooks/useGetArtifactComponentDependenciesByPurlQuery';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AiWorkflowScanTargetPair } from '../schemas/AiWorkflowScanTargetPair';
|
|
2
|
+
export interface AiWorkflowInfoByScanIdsRequest {
|
|
3
|
+
/**
|
|
4
|
+
* AI workflow type (e.g. fp_triage, remediation)
|
|
5
|
+
*/
|
|
6
|
+
ai_workflow_type: string;
|
|
7
|
+
items: AiWorkflowScanTargetPair[];
|
|
8
|
+
originating_org_id: string;
|
|
9
|
+
originating_project_id: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface AiWorkflowInfoByScanIdsResponse {
|
|
2
|
+
/**
|
|
3
|
+
* Epoch millis. COMPLETED uses updatedAt of the last terminal execution (COMPLETED/FAILED/SKIPPED). Other statuses use the time of this API call.
|
|
4
|
+
* @format int64
|
|
5
|
+
*/
|
|
6
|
+
lastStatusCheckAt: number;
|
|
7
|
+
status: 'COMPLETED' | 'NOT_TRIGGERED' | 'PENDING' | 'RUNNING';
|
|
8
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A single license condition (obligation, permission, or grant/limitation)
|
|
3
|
+
*/
|
|
4
|
+
export interface LicenseCondition {
|
|
5
|
+
/**
|
|
6
|
+
* Optional extra guidance for the condition
|
|
7
|
+
*/
|
|
8
|
+
additional_guidance?: string | null;
|
|
9
|
+
/**
|
|
10
|
+
* Short display label for the condition
|
|
11
|
+
*/
|
|
12
|
+
description?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Longer explanation of what the condition means
|
|
15
|
+
*/
|
|
16
|
+
message?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Canonical condition key (for example must_attribute)
|
|
19
|
+
*/
|
|
20
|
+
name?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { LicenseCondition } from '../schemas/LicenseCondition';
|
|
2
|
+
export interface LicenseConditionsResponse {
|
|
3
|
+
/**
|
|
4
|
+
* Conditions for the license; empty when the SPDX id is unknown or has no mapping
|
|
5
|
+
*/
|
|
6
|
+
conditions?: LicenseCondition[];
|
|
7
|
+
/**
|
|
8
|
+
* SPDX license identifier that was looked up
|
|
9
|
+
*/
|
|
10
|
+
license_id?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Supported RSPM sequential scanner identifiers (STO scanners plus serial SCS steps)
|
|
3
3
|
*/
|
|
4
|
-
export type RspmScannerId = 'CHECKMARX_ONE' | 'CHECKOV' | 'GENERATE_SBOM' | 'SNYK' | 'SSCA_COMPLIANCE' | 'WIZ';
|
|
4
|
+
export type RspmScannerId = 'AQUA_TRIVY' | 'BANDIT' | 'BLACKDUCK' | 'BRAKEMAN' | 'CHECKMARX' | 'CHECKMARX_ONE' | 'CHECKOV' | 'GENERATE_SBOM' | 'GITHUB_ADVANCED_SECURITY' | 'GITLEAKS' | 'HARNESS_SAST' | 'MEND' | 'NEXUS_IQ' | 'OSV_SCANNER' | 'OWASP' | 'SEMGREP' | 'SNYK' | 'SONARQUBE' | 'SSCA_COMPLIANCE' | 'VERACODE' | 'WIZ';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Common body for every 409 returned by updateAIWorkflowExecutionStatus.
|
|
3
|
+
*/
|
|
4
|
+
export interface UpdateAiWorkflowExecutionStatusConflict {
|
|
5
|
+
/**
|
|
6
|
+
* Pipeline execution that already owns this row. Present only when code is duplicate_pipeline_execution.
|
|
7
|
+
*/
|
|
8
|
+
claimedPipelineExecutionId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Machine-readable discriminator for the conflict cause.
|
|
11
|
+
*/
|
|
12
|
+
code: 'duplicate_pipeline_execution' | 'status_transition_failed' | 'status_transition_rejected';
|
|
13
|
+
/**
|
|
14
|
+
* Human-readable explanation; not intended for programmatic branching.
|
|
15
|
+
*/
|
|
16
|
+
message: string;
|
|
17
|
+
}
|