@harnessio/react-ssca-manager-client 0.86.13 → 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.
Files changed (19) hide show
  1. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowInfoByScanIdsQuery.d.ts +19 -0
  2. package/dist/ssca-manager/src/services/hooks/useGetAiWorkflowInfoByScanIdsQuery.js +14 -0
  3. package/dist/ssca-manager/src/services/hooks/useGetZeroDayRerunStatusQuery.d.ts +17 -0
  4. package/dist/ssca-manager/src/services/hooks/useGetZeroDayRerunStatusQuery.js +15 -0
  5. package/dist/ssca-manager/src/services/hooks/useRerunFailedZeroDayExecutionsMutation.d.ts +17 -0
  6. package/dist/ssca-manager/src/services/hooks/useRerunFailedZeroDayExecutionsMutation.js +15 -0
  7. package/dist/ssca-manager/src/services/index.d.ts +11 -0
  8. package/dist/ssca-manager/src/services/index.js +3 -0
  9. package/dist/ssca-manager/src/services/schemas/AiWorkflowInfoByScanIdsRequest.d.ts +10 -0
  10. package/dist/ssca-manager/src/services/schemas/AiWorkflowInfoByScanIdsRequest.js +1 -0
  11. package/dist/ssca-manager/src/services/schemas/AiWorkflowInfoByScanIdsResponse.d.ts +8 -0
  12. package/dist/ssca-manager/src/services/schemas/AiWorkflowInfoByScanIdsResponse.js +4 -0
  13. package/dist/ssca-manager/src/services/schemas/AiWorkflowScanTargetPair.d.ts +4 -0
  14. package/dist/ssca-manager/src/services/schemas/AiWorkflowScanTargetPair.js +4 -0
  15. package/dist/ssca-manager/src/services/schemas/UpdateAiWorkflowExecutionStatusConflict.d.ts +17 -0
  16. package/dist/ssca-manager/src/services/schemas/UpdateAiWorkflowExecutionStatusConflict.js +4 -0
  17. package/dist/ssca-manager/src/services/schemas/ZeroDayRerunStatusResponse.d.ts +39 -0
  18. package/dist/ssca-manager/src/services/schemas/ZeroDayRerunStatusResponse.js +4 -0
  19. 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
+ }
@@ -0,0 +1,17 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ZeroDayRerunStatusResponse } from '../schemas/ZeroDayRerunStatusResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface GetZeroDayRerunStatusQueryHeaderParams {
6
+ 'Harness-Account': string;
7
+ }
8
+ export type GetZeroDayRerunStatusOkResponse = ResponseWithPagination<ZeroDayRerunStatusResponse>;
9
+ export type GetZeroDayRerunStatusErrorResponse = unknown;
10
+ export interface GetZeroDayRerunStatusProps extends Omit<FetcherOptions<unknown, unknown, GetZeroDayRerunStatusQueryHeaderParams>, 'url'> {
11
+ }
12
+ export declare function getZeroDayRerunStatus(props: GetZeroDayRerunStatusProps): Promise<GetZeroDayRerunStatusOkResponse>;
13
+ /**
14
+ * Account-scoped Zero Day Rerun banner payload. Counts every currently Failed Zero Day execution in the account (package-expanded). Table filters are ignored. Returned only for the account Executions page.
15
+ *
16
+ */
17
+ export declare function useGetZeroDayRerunStatusQuery(props: GetZeroDayRerunStatusProps, options?: Omit<UseQueryOptions<GetZeroDayRerunStatusOkResponse, GetZeroDayRerunStatusErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetZeroDayRerunStatusOkResponse, unknown>;
@@ -0,0 +1,15 @@
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 getZeroDayRerunStatus(props) {
7
+ return fetcher(Object.assign({ url: `/v1/ai-workflow-executions/rerun-status`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Account-scoped Zero Day Rerun banner payload. Counts every currently Failed Zero Day execution in the account (package-expanded). Table filters are ignored. Returned only for the account Executions page.
11
+ *
12
+ */
13
+ export function useGetZeroDayRerunStatusQuery(props, options) {
14
+ return useQuery(['getZeroDayRerunStatus'], ({ signal }) => getZeroDayRerunStatus(Object.assign(Object.assign({}, props), { signal })), options);
15
+ }
@@ -0,0 +1,17 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ZeroDayRerunStatusResponse } from '../schemas/ZeroDayRerunStatusResponse';
3
+ import type { ResponseWithPagination } from '../helpers';
4
+ import { FetcherOptions } from '../../../../fetcher/index.js';
5
+ export interface RerunFailedZeroDayExecutionsMutationHeaderParams {
6
+ 'Harness-Account': string;
7
+ }
8
+ export type RerunFailedZeroDayExecutionsOkResponse = ResponseWithPagination<ZeroDayRerunStatusResponse>;
9
+ export type RerunFailedZeroDayExecutionsErrorResponse = unknown | ZeroDayRerunStatusResponse;
10
+ export interface RerunFailedZeroDayExecutionsProps extends Omit<FetcherOptions<unknown, unknown, RerunFailedZeroDayExecutionsMutationHeaderParams>, 'url'> {
11
+ }
12
+ export declare function rerunFailedZeroDayExecutions(props: RerunFailedZeroDayExecutionsProps): Promise<RerunFailedZeroDayExecutionsOkResponse>;
13
+ /**
14
+ * Claims every Failed Zero Day execution in the account and re-dispatches each in place. At most one account Rerun is in-flight. Next accept is at least one hour after the last accepted Rerun. Dispatch to PMS is capped at 10 concurrent.
15
+ *
16
+ */
17
+ export declare function useRerunFailedZeroDayExecutionsMutation(options?: Omit<UseMutationOptions<RerunFailedZeroDayExecutionsOkResponse, RerunFailedZeroDayExecutionsErrorResponse, RerunFailedZeroDayExecutionsProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RerunFailedZeroDayExecutionsOkResponse, unknown, RerunFailedZeroDayExecutionsProps, unknown>;
@@ -0,0 +1,15 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useMutation } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../fetcher/index.js';
6
+ export function rerunFailedZeroDayExecutions(props) {
7
+ return fetcher(Object.assign({ url: `/v1/ai-workflow-executions/rerun`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Claims every Failed Zero Day execution in the account and re-dispatches each in place. At most one account Rerun is in-flight. Next accept is at least one hour after the last accepted Rerun. Dispatch to PMS is capped at 10 concurrent.
11
+ *
12
+ */
13
+ export function useRerunFailedZeroDayExecutionsMutation(options) {
14
+ return useMutation((mutateProps) => rerunFailedZeroDayExecutions(mutateProps), options);
15
+ }
@@ -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';
@@ -187,6 +189,8 @@ export type { GetScannerConfigurationErrorResponse, GetScannerConfigurationOkRes
187
189
  export { getScannerConfiguration, useGetScannerConfigurationQuery, } from './hooks/useGetScannerConfigurationQuery';
188
190
  export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSummaryProps, GetSscaSummaryQueryPathParams, } from './hooks/useGetSscaSummaryQuery';
189
191
  export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
192
+ export type { GetZeroDayRerunStatusErrorResponse, GetZeroDayRerunStatusOkResponse, GetZeroDayRerunStatusProps, } from './hooks/useGetZeroDayRerunStatusQuery';
193
+ export { getZeroDayRerunStatus, useGetZeroDayRerunStatusQuery, } from './hooks/useGetZeroDayRerunStatusQuery';
190
194
  export type { ImportLicenseFamilyConfigErrorResponse, ImportLicenseFamilyConfigMutationPathParams, ImportLicenseFamilyConfigOkResponse, ImportLicenseFamilyConfigProps, ImportLicenseFamilyConfigRequestBody, } from './hooks/useImportLicenseFamilyConfigMutation';
191
195
  export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
192
196
  export type { ListAgentStatusesErrorResponse, ListAgentStatusesOkResponse, ListAgentStatusesProps, ListAgentStatusesQueryQueryParams, } from './hooks/useListAgentStatusesQuery';
@@ -211,6 +215,8 @@ export type { PostComplianceResultStatsOverviewErrorResponse, PostComplianceResu
211
215
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
212
216
  export type { RemediateAffectedTargetErrorResponse, RemediateAffectedTargetOkResponse, RemediateAffectedTargetProps, RemediateAffectedTargetQueryPathParams, RemediateAffectedTargetQueryQueryParams, RemediateAffectedTargetRequestBody, } from './hooks/useRemediateAffectedTargetQuery';
213
217
  export { remediateAffectedTarget, useRemediateAffectedTargetQuery, } from './hooks/useRemediateAffectedTargetQuery';
218
+ export type { RerunFailedZeroDayExecutionsErrorResponse, RerunFailedZeroDayExecutionsOkResponse, RerunFailedZeroDayExecutionsProps, } from './hooks/useRerunFailedZeroDayExecutionsMutation';
219
+ export { rerunFailedZeroDayExecutions, useRerunFailedZeroDayExecutionsMutation, } from './hooks/useRerunFailedZeroDayExecutionsMutation';
214
220
  export type { ResetLicenseFamilyConfigErrorResponse, ResetLicenseFamilyConfigMutationPathParams, ResetLicenseFamilyConfigMutationQueryParams, ResetLicenseFamilyConfigOkResponse, ResetLicenseFamilyConfigProps, } from './hooks/useResetLicenseFamilyConfigMutation';
215
221
  export { resetLicenseFamilyConfig, useResetLicenseFamilyConfigMutation, } from './hooks/useResetLicenseFamilyConfigMutation';
216
222
  export type { ReviewExemptionErrorResponse, ReviewExemptionMutationPathParams, ReviewExemptionMutationQueryParams, ReviewExemptionOkResponse, ReviewExemptionProps, ReviewExemptionRequestBody, } from './hooks/useReviewExemptionMutation';
@@ -425,8 +431,11 @@ export type { AiWorkflowExecutionStatusEnum } from './schemas/AiWorkflowExecutio
425
431
  export type { AiWorkflowExecutionStepsResponse } from './schemas/AiWorkflowExecutionStepsResponse';
426
432
  export type { AiWorkflowExecutionSummary } from './schemas/AiWorkflowExecutionSummary';
427
433
  export type { AiWorkflowIncludeScope } from './schemas/AiWorkflowIncludeScope';
434
+ export type { AiWorkflowInfoByScanIdsRequest } from './schemas/AiWorkflowInfoByScanIdsRequest';
435
+ export type { AiWorkflowInfoByScanIdsResponse } from './schemas/AiWorkflowInfoByScanIdsResponse';
428
436
  export type { AiWorkflowInfrastructureConfig } from './schemas/AiWorkflowInfrastructureConfig';
429
437
  export type { AiWorkflowResults } from './schemas/AiWorkflowResults';
438
+ export type { AiWorkflowScanTargetPair } from './schemas/AiWorkflowScanTargetPair';
430
439
  export type { AiWorkflowScopeEntry } from './schemas/AiWorkflowScopeEntry';
431
440
  export type { AiWorkflowStepExecution } from './schemas/AiWorkflowStepExecution';
432
441
  export type { AiWorkflowTriggerConfig } from './schemas/AiWorkflowTriggerConfig';
@@ -820,6 +829,7 @@ export type { TicketInfo } from './schemas/TicketInfo';
820
829
  export type { TokenIssueResponseBody } from './schemas/TokenIssueResponseBody';
821
830
  export type { TokenIssueTokenResponseBody } from './schemas/TokenIssueTokenResponseBody';
822
831
  export type { TriggerType } from './schemas/TriggerType';
832
+ export type { UpdateAiWorkflowExecutionStatusConflict } from './schemas/UpdateAiWorkflowExecutionStatusConflict';
823
833
  export type { UpdateAiWorkflowExecutionStatusRequest } from './schemas/UpdateAiWorkflowExecutionStatusRequest';
824
834
  export type { UpdateAiWorkflowExecutionStatusResponse } from './schemas/UpdateAiWorkflowExecutionStatusResponse';
825
835
  export type { UpdateIntegration } from './schemas/UpdateIntegration';
@@ -838,3 +848,4 @@ export type { VulnerabilitySource } from './schemas/VulnerabilitySource';
838
848
  export type { VulnerabilitySourceConfigRequestBody } from './schemas/VulnerabilitySourceConfigRequestBody';
839
849
  export type { VulnerabilitySourceConfigResponse } from './schemas/VulnerabilitySourceConfigResponse';
840
850
  export type { WorkflowSource } from './schemas/WorkflowSource';
851
+ export type { ZeroDayRerunStatusResponse } from './schemas/ZeroDayRerunStatusResponse';
@@ -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';
@@ -92,6 +93,7 @@ export { getSbomScoreDetailV2, useGetSbomScoreDetailV2Query, } from './hooks/use
92
93
  export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
93
94
  export { getScannerConfiguration, useGetScannerConfigurationQuery, } from './hooks/useGetScannerConfigurationQuery';
94
95
  export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
96
+ export { getZeroDayRerunStatus, useGetZeroDayRerunStatusQuery, } from './hooks/useGetZeroDayRerunStatusQuery';
95
97
  export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
96
98
  export { listAgentStatuses, useListAgentStatusesQuery } from './hooks/useListAgentStatusesQuery';
97
99
  export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
@@ -104,6 +106,7 @@ export { listScannerConfigurations, useListScannerConfigurationsQuery, } from '.
104
106
  export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
105
107
  export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
106
108
  export { remediateAffectedTarget, useRemediateAffectedTargetQuery, } from './hooks/useRemediateAffectedTargetQuery';
109
+ export { rerunFailedZeroDayExecutions, useRerunFailedZeroDayExecutionsMutation, } from './hooks/useRerunFailedZeroDayExecutionsMutation';
107
110
  export { resetLicenseFamilyConfig, useResetLicenseFamilyConfigMutation, } from './hooks/useResetLicenseFamilyConfigMutation';
108
111
  export { reviewExemption, useReviewExemptionMutation } from './hooks/useReviewExemptionMutation';
109
112
  export { saveAccountAiWorkflowConfig, useSaveAccountAiWorkflowConfigMutation, } from './hooks/useSaveAccountAiWorkflowConfigMutation';
@@ -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,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,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface AiWorkflowScanTargetPair {
2
+ scan_id: string;
3
+ target_id: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,39 @@
1
+ export interface ZeroDayRerunStatusResponse {
2
+ /**
3
+ * Executions claimed by this accept (POST only)
4
+ */
5
+ claimed_count?: number;
6
+ /**
7
+ * Milliseconds until the next Rerun may be accepted; 0 when the gap has elapsed
8
+ * @format int64
9
+ */
10
+ cooldown_remaining_ms?: number;
11
+ /**
12
+ * Why Rerun is disabled. IN_FLIGHT, COOLDOWN, or NO_FAILURES. Omitted when rerun_enabled is true.
13
+ *
14
+ * @example "COOLDOWN"
15
+ */
16
+ disable_reason?: string;
17
+ /**
18
+ * Claimed executions that failed to dispatch and are Failed again (POST only)
19
+ */
20
+ dispatch_failed_count?: number;
21
+ /**
22
+ * Package-row count across those Failed executions (matches the Executions table)
23
+ * @example 12
24
+ */
25
+ failed_package_count?: number;
26
+ /**
27
+ * Epoch millis of the last accepted Rerun; omitted when none
28
+ * @format int64
29
+ */
30
+ last_accepted_at?: number;
31
+ /**
32
+ * True when the Rerun button should be enabled
33
+ */
34
+ rerun_enabled?: boolean;
35
+ /**
36
+ * True when a previously accepted Rerun still has claimed executions that are not terminal
37
+ */
38
+ rerun_in_flight?: boolean;
39
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-ssca-manager-client",
3
- "version": "0.86.13",
3
+ "version": "0.86.15",
4
4
  "description": "Harness SSCA manager APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",