@harnessio/react-ssca-manager-client 0.86.14 → 0.86.15
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 +6 -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/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';
|
|
@@ -824,6 +829,7 @@ export type { TicketInfo } from './schemas/TicketInfo';
|
|
|
824
829
|
export type { TokenIssueResponseBody } from './schemas/TokenIssueResponseBody';
|
|
825
830
|
export type { TokenIssueTokenResponseBody } from './schemas/TokenIssueTokenResponseBody';
|
|
826
831
|
export type { TriggerType } from './schemas/TriggerType';
|
|
832
|
+
export type { UpdateAiWorkflowExecutionStatusConflict } from './schemas/UpdateAiWorkflowExecutionStatusConflict';
|
|
827
833
|
export type { UpdateAiWorkflowExecutionStatusRequest } from './schemas/UpdateAiWorkflowExecutionStatusRequest';
|
|
828
834
|
export type { UpdateAiWorkflowExecutionStatusResponse } from './schemas/UpdateAiWorkflowExecutionStatusResponse';
|
|
829
835
|
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,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
|
+
}
|