@harnessio/react-ssca-manager-client 0.86.12 → 0.86.14
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/useGetZeroDayRerunStatusQuery.d.ts +17 -0
- package/dist/ssca-manager/src/services/hooks/useGetZeroDayRerunStatusQuery.js +15 -0
- package/dist/ssca-manager/src/services/hooks/useRerunFailedZeroDayExecutionsMutation.d.ts +17 -0
- package/dist/ssca-manager/src/services/hooks/useRerunFailedZeroDayExecutionsMutation.js +15 -0
- package/dist/ssca-manager/src/services/index.d.ts +5 -0
- package/dist/ssca-manager/src/services/index.js +2 -0
- package/dist/ssca-manager/src/services/schemas/ConnectorConfigId.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/OwaspFilter.d.ts +1 -1
- package/dist/ssca-manager/src/services/schemas/ZeroDayRerunStatusResponse.d.ts +39 -0
- package/dist/ssca-manager/src/services/schemas/ZeroDayRerunStatusResponse.js +4 -0
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -187,6 +187,8 @@ export type { GetScannerConfigurationErrorResponse, GetScannerConfigurationOkRes
|
|
|
187
187
|
export { getScannerConfiguration, useGetScannerConfigurationQuery, } from './hooks/useGetScannerConfigurationQuery';
|
|
188
188
|
export type { GetSscaSummaryErrorResponse, GetSscaSummaryOkResponse, GetSscaSummaryProps, GetSscaSummaryQueryPathParams, } from './hooks/useGetSscaSummaryQuery';
|
|
189
189
|
export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
|
|
190
|
+
export type { GetZeroDayRerunStatusErrorResponse, GetZeroDayRerunStatusOkResponse, GetZeroDayRerunStatusProps, } from './hooks/useGetZeroDayRerunStatusQuery';
|
|
191
|
+
export { getZeroDayRerunStatus, useGetZeroDayRerunStatusQuery, } from './hooks/useGetZeroDayRerunStatusQuery';
|
|
190
192
|
export type { ImportLicenseFamilyConfigErrorResponse, ImportLicenseFamilyConfigMutationPathParams, ImportLicenseFamilyConfigOkResponse, ImportLicenseFamilyConfigProps, ImportLicenseFamilyConfigRequestBody, } from './hooks/useImportLicenseFamilyConfigMutation';
|
|
191
193
|
export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
|
|
192
194
|
export type { ListAgentStatusesErrorResponse, ListAgentStatusesOkResponse, ListAgentStatusesProps, ListAgentStatusesQueryQueryParams, } from './hooks/useListAgentStatusesQuery';
|
|
@@ -211,6 +213,8 @@ export type { PostComplianceResultStatsOverviewErrorResponse, PostComplianceResu
|
|
|
211
213
|
export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
|
|
212
214
|
export type { RemediateAffectedTargetErrorResponse, RemediateAffectedTargetOkResponse, RemediateAffectedTargetProps, RemediateAffectedTargetQueryPathParams, RemediateAffectedTargetQueryQueryParams, RemediateAffectedTargetRequestBody, } from './hooks/useRemediateAffectedTargetQuery';
|
|
213
215
|
export { remediateAffectedTarget, useRemediateAffectedTargetQuery, } from './hooks/useRemediateAffectedTargetQuery';
|
|
216
|
+
export type { RerunFailedZeroDayExecutionsErrorResponse, RerunFailedZeroDayExecutionsOkResponse, RerunFailedZeroDayExecutionsProps, } from './hooks/useRerunFailedZeroDayExecutionsMutation';
|
|
217
|
+
export { rerunFailedZeroDayExecutions, useRerunFailedZeroDayExecutionsMutation, } from './hooks/useRerunFailedZeroDayExecutionsMutation';
|
|
214
218
|
export type { ResetLicenseFamilyConfigErrorResponse, ResetLicenseFamilyConfigMutationPathParams, ResetLicenseFamilyConfigMutationQueryParams, ResetLicenseFamilyConfigOkResponse, ResetLicenseFamilyConfigProps, } from './hooks/useResetLicenseFamilyConfigMutation';
|
|
215
219
|
export { resetLicenseFamilyConfig, useResetLicenseFamilyConfigMutation, } from './hooks/useResetLicenseFamilyConfigMutation';
|
|
216
220
|
export type { ReviewExemptionErrorResponse, ReviewExemptionMutationPathParams, ReviewExemptionMutationQueryParams, ReviewExemptionOkResponse, ReviewExemptionProps, ReviewExemptionRequestBody, } from './hooks/useReviewExemptionMutation';
|
|
@@ -838,3 +842,4 @@ export type { VulnerabilitySource } from './schemas/VulnerabilitySource';
|
|
|
838
842
|
export type { VulnerabilitySourceConfigRequestBody } from './schemas/VulnerabilitySourceConfigRequestBody';
|
|
839
843
|
export type { VulnerabilitySourceConfigResponse } from './schemas/VulnerabilitySourceConfigResponse';
|
|
840
844
|
export type { WorkflowSource } from './schemas/WorkflowSource';
|
|
845
|
+
export type { ZeroDayRerunStatusResponse } from './schemas/ZeroDayRerunStatusResponse';
|
|
@@ -92,6 +92,7 @@ export { getSbomScoreDetailV2, useGetSbomScoreDetailV2Query, } from './hooks/use
|
|
|
92
92
|
export { getSbomScorecard, useGetSbomScorecardQuery } from './hooks/useGetSbomScorecardQuery';
|
|
93
93
|
export { getScannerConfiguration, useGetScannerConfigurationQuery, } from './hooks/useGetScannerConfigurationQuery';
|
|
94
94
|
export { getSscaSummary, useGetSscaSummaryQuery } from './hooks/useGetSscaSummaryQuery';
|
|
95
|
+
export { getZeroDayRerunStatus, useGetZeroDayRerunStatusQuery, } from './hooks/useGetZeroDayRerunStatusQuery';
|
|
95
96
|
export { importLicenseFamilyConfig, useImportLicenseFamilyConfigMutation, } from './hooks/useImportLicenseFamilyConfigMutation';
|
|
96
97
|
export { listAgentStatuses, useListAgentStatusesQuery } from './hooks/useListAgentStatusesQuery';
|
|
97
98
|
export { listArtifactSources, useListArtifactSourcesQuery, } from './hooks/useListArtifactSourcesQuery';
|
|
@@ -104,6 +105,7 @@ export { listScannerConfigurations, useListScannerConfigurationsQuery, } from '.
|
|
|
104
105
|
export { postComplianceResultStatsEvaluationBreakdownArtifactType, usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation, } from './hooks/usePostComplianceResultStatsEvaluationBreakdownArtifactTypeMutation';
|
|
105
106
|
export { postComplianceResultStatsOverview, usePostComplianceResultStatsOverviewMutation, } from './hooks/usePostComplianceResultStatsOverviewMutation';
|
|
106
107
|
export { remediateAffectedTarget, useRemediateAffectedTargetQuery, } from './hooks/useRemediateAffectedTargetQuery';
|
|
108
|
+
export { rerunFailedZeroDayExecutions, useRerunFailedZeroDayExecutionsMutation, } from './hooks/useRerunFailedZeroDayExecutionsMutation';
|
|
107
109
|
export { resetLicenseFamilyConfig, useResetLicenseFamilyConfigMutation, } from './hooks/useResetLicenseFamilyConfigMutation';
|
|
108
110
|
export { reviewExemption, useReviewExemptionMutation } from './hooks/useReviewExemptionMutation';
|
|
109
111
|
export { saveAccountAiWorkflowConfig, useSaveAccountAiWorkflowConfigMutation, } from './hooks/useSaveAccountAiWorkflowConfigMutation';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Enum for connector config identifiers
|
|
3
3
|
*/
|
|
4
|
-
export type ConnectorConfigId = 'GITHUB_PR_CONNECTOR_CONFIG' | 'KEYLESS_SIGNING_CONNECTOR_CONFIG';
|
|
4
|
+
export type ConnectorConfigId = 'BITBUCKET_PR_CONNECTOR_CONFIG' | 'GITHUB_PR_CONNECTOR_CONFIG' | 'GITLAB_PR_CONNECTOR_CONFIG' | 'KEYLESS_SIGNING_CONNECTOR_CONFIG';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type OwaspFilter = 'CLOSE_TO_EOL_COMPONENT' | 'EOL_COMPONENT' | 'MALICIOUS_COMPONENT' | 'OUTDATED_COMPONENT' | 'SQUATTED_COMPONENT' | 'UNMAINTAINED_COMPONENT' | 'VULNERABLE_COMPONENT';
|
|
1
|
+
export type OwaspFilter = 'CLOSE_TO_EOL_COMPONENT' | 'EOL_COMPONENT' | 'MALICIOUS_COMPONENT' | 'OUTDATED_COMPONENT' | 'SQUATTED_COMPONENT' | 'UNMAINTAINED_COMPONENT' | 'VULNERABLE_COMPONENT' | 'ZERO_DAY_COMPONENT';
|
|
@@ -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
|
+
}
|