@harnessio/react-chaos-manager-client 1.66.2 → 1.68.0
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/chaos-manager/src/services/hooks/useAbortRiskScanMutation.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useAbortRiskScanMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useCreateRiskScanMutation.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useCreateRiskScanMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteRiskScanMutation.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteRiskScanMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetRiskRuleQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useGetRiskRuleQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetRiskScanHeatmapQuery.d.ts +37 -0
- package/dist/chaos-manager/src/services/hooks/useGetRiskScanHeatmapQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetRiskScanQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useGetRiskScanQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetRiskScanReportDownloadUrlQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useGetRiskScanReportDownloadUrlQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetRiskScanReportQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useGetRiskScanReportQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useGetScannedRiskQuery.d.ts +28 -0
- package/dist/chaos-manager/src/services/hooks/useGetScannedRiskQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListChaosServicesQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useListRiskRulesQuery.d.ts +40 -0
- package/dist/chaos-manager/src/services/hooks/useListRiskRulesQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListRiskScansQuery.d.ts +44 -0
- package/dist/chaos-manager/src/services/hooks/useListRiskScansQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListRisksQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListScannedRiskOccurrencesQuery.d.ts +42 -0
- package/dist/chaos-manager/src/services/hooks/useListScannedRiskOccurrencesQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListScannedRisksQuery.d.ts +46 -0
- package/dist/chaos-manager/src/services/hooks/useListScannedRisksQuery.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useRetryRiskScanMutation.d.ts +30 -0
- package/dist/chaos-manager/src/services/hooks/useRetryRiskScanMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateRiskScanMutation.d.ts +33 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateRiskScanMutation.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +89 -0
- package/dist/chaos-manager/src/services/index.js +16 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionNode.d.ts +1 -4
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesProbeData.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateProbeTemplate.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesChaosServiceResponse.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesCreateRequest.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeRef.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobetemplateChaosProbeTemplate.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ImageRegistryCustomImagesRequest.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/MongodbInfrastructureType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/MongodbInfrastructureType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ProbeRuleDetails.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ProbeRuleDetails.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskCategory.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskCategory.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskCdService.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/RiskCdService.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskChaosService.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskChaosService.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskCollectionError.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskCollectionError.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskCollectionSummary.d.ts +12 -0
- package/dist/chaos-manager/src/services/schemas/RiskCollectionSummary.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskDiscoveredService.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/RiskDiscoveredService.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskEvidenceResource.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/RiskEvidenceResource.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskProbeExecutionExperimentSource.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskProbeExecutionExperimentSource.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskProbeExecutionPipelineStepSource.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskProbeExecutionPipelineStepSource.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskProbeExecutionSource.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/RiskProbeExecutionSource.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskRiskDataSource.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskRiskDataSource.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskRiskRulePrompt.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/RiskRiskRulePrompt.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskRiskRuleSpec.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/RiskRiskRuleSpec.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskRiskSummary.d.ts +14 -0
- package/dist/chaos-manager/src/services/schemas/RiskRiskSummary.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskScan.d.ts +40 -0
- package/dist/chaos-manager/src/services/schemas/RiskScan.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanResult.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanResult.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanSource.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanSource.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanSourcePipeline.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanSourcePipeline.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanSourceProbeExecution.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanSourceProbeExecution.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanSourceServiceDiscovery.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanSourceServiceDiscovery.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanStatus.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanStatus.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskServiceDetails.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/RiskServiceDetails.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskSeverity.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskSeverity.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskTargetService.d.ts +12 -0
- package/dist/chaos-manager/src/services/schemas/RiskTargetService.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskTargetServiceType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskTargetServiceType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskrulesListResponse.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/RiskrulesListResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskrulesRiskRuleResponse.d.ts +20 -0
- package/dist/chaos-manager/src/services/schemas/RiskrulesRiskRuleResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RisksCreateRequest.d.ts +2 -1
- package/dist/chaos-manager/src/services/schemas/RisksRisk.d.ts +2 -1
- package/dist/chaos-manager/src/services/schemas/RisksRiskResponse.d.ts +2 -1
- package/dist/chaos-manager/src/services/schemas/RiskscansCreateRequest.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansCreateRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansDownloadResponse.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansDownloadResponse.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapCell.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapCell.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapResponse.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapRiskRule.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapRiskRule.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapRow.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapRow.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapSummary.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapSummary.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansListResponse.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansListResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansOccurrenceContext.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansOccurrenceContext.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansOccurrenceDetails.d.ts +13 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansOccurrenceDetails.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansReportResponse.d.ts +8 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansReportResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansReportSummary.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansReportSummary.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansRiskScanResponse.d.ts +40 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansRiskScanResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansScannedRiskWithOccurrences.d.ts +14 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansScannedRiskWithOccurrences.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansUpdateRequest.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansUpdateRequest.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksGetResponse.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksGetResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksListResponse.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksListResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksOccurrenceDetail.d.ts +13 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksOccurrenceDetail.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksOccurrencesResponse.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksOccurrencesResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStat.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStat.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatus.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatus.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksScannedRisk.d.ts +13 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksScannedRisk.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksScannedRiskSpec.d.ts +19 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksScannedRiskSpec.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummary.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummary.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryQuery.d.ts +65 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryQuery.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryResponse.d.ts +15 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksValidationType.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksValidationType.js +4 -0
- package/dist/chaos-manager/src/services/schemas/TypesCreateProbeResponse.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/TypesGetProbeResponse.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/TypesProbeRequest.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export interface AbortRiskScanMutationPathParams {
|
|
5
|
+
identity: string;
|
|
6
|
+
}
|
|
7
|
+
export interface AbortRiskScanMutationQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
correlationID?: string;
|
|
10
|
+
organizationIdentifier?: string;
|
|
11
|
+
parentUniqueId?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
13
|
+
}
|
|
14
|
+
export type AbortRiskScanOkResponse = {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
export type AbortRiskScanErrorResponse = ApiRestError;
|
|
18
|
+
export interface AbortRiskScanProps extends AbortRiskScanMutationPathParams, Omit<FetcherOptions<AbortRiskScanMutationQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: AbortRiskScanMutationQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export interface AbortRiskScanResponseContainer {
|
|
22
|
+
body: AbortRiskScanOkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function abortRiskScan(props: AbortRiskScanProps): Promise<AbortRiskScanResponseContainer>;
|
|
26
|
+
export type AbortRiskScanMutationProps<T extends keyof AbortRiskScanProps> = Omit<AbortRiskScanProps, T> & Partial<Pick<AbortRiskScanProps, T>>;
|
|
27
|
+
/**
|
|
28
|
+
* aborts a running risk scan by its identity
|
|
29
|
+
*/
|
|
30
|
+
export declare function useAbortRiskScanMutation<T extends keyof AbortRiskScanProps>(props: Pick<Partial<AbortRiskScanProps>, T>, options?: Omit<UseMutationOptions<AbortRiskScanResponseContainer, AbortRiskScanErrorResponse, AbortRiskScanMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AbortRiskScanResponseContainer, ApiRestError, AbortRiskScanMutationProps<T>, 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 { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function abortRiskScan(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risk-scans/${props.identity}/abort`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* aborts a running risk scan by its identity
|
|
11
|
+
*/
|
|
12
|
+
export function useAbortRiskScanMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => abortRiskScan(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RiskscansRiskScanResponse } from '../schemas/RiskscansRiskScanResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import type { RiskscansCreateRequest } from '../schemas/RiskscansCreateRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface CreateRiskScanMutationQueryParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
correlationID?: string;
|
|
9
|
+
organizationIdentifier?: string;
|
|
10
|
+
parentUniqueId?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export type CreateRiskScanRequestBody = RiskscansCreateRequest;
|
|
14
|
+
export type CreateRiskScanOkResponse = RiskscansRiskScanResponse;
|
|
15
|
+
export type CreateRiskScanErrorResponse = ApiRestError;
|
|
16
|
+
export interface CreateRiskScanProps extends Omit<FetcherOptions<CreateRiskScanMutationQueryParams, CreateRiskScanRequestBody>, 'url'> {
|
|
17
|
+
queryParams: CreateRiskScanMutationQueryParams;
|
|
18
|
+
body: CreateRiskScanRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export interface CreateRiskScanResponseContainer {
|
|
21
|
+
body: CreateRiskScanOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function createRiskScan(props: CreateRiskScanProps): Promise<CreateRiskScanResponseContainer>;
|
|
25
|
+
export type CreateRiskScanMutationProps<T extends keyof CreateRiskScanProps> = Omit<CreateRiskScanProps, T> & Partial<Pick<CreateRiskScanProps, T>>;
|
|
26
|
+
/**
|
|
27
|
+
* creates a new risk scan
|
|
28
|
+
*/
|
|
29
|
+
export declare function useCreateRiskScanMutation<T extends keyof CreateRiskScanProps>(props: Pick<Partial<CreateRiskScanProps>, T>, options?: Omit<UseMutationOptions<CreateRiskScanResponseContainer, CreateRiskScanErrorResponse, CreateRiskScanMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateRiskScanResponseContainer, ApiRestError, CreateRiskScanMutationProps<T>, 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 { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function createRiskScan(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risk-scans`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* creates a new risk scan
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateRiskScanMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createRiskScan(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
3
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
4
|
+
export interface DeleteRiskScanMutationPathParams {
|
|
5
|
+
identity: string;
|
|
6
|
+
}
|
|
7
|
+
export interface DeleteRiskScanMutationQueryParams {
|
|
8
|
+
accountIdentifier: string;
|
|
9
|
+
correlationID?: string;
|
|
10
|
+
organizationIdentifier?: string;
|
|
11
|
+
parentUniqueId?: string;
|
|
12
|
+
projectIdentifier?: string;
|
|
13
|
+
}
|
|
14
|
+
export type DeleteRiskScanOkResponse = {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
export type DeleteRiskScanErrorResponse = ApiRestError;
|
|
18
|
+
export interface DeleteRiskScanProps extends DeleteRiskScanMutationPathParams, Omit<FetcherOptions<DeleteRiskScanMutationQueryParams, unknown>, 'url'> {
|
|
19
|
+
queryParams: DeleteRiskScanMutationQueryParams;
|
|
20
|
+
}
|
|
21
|
+
export interface DeleteRiskScanResponseContainer {
|
|
22
|
+
body: DeleteRiskScanOkResponse;
|
|
23
|
+
headers: Headers;
|
|
24
|
+
}
|
|
25
|
+
export declare function deleteRiskScan(props: DeleteRiskScanProps): Promise<DeleteRiskScanResponseContainer>;
|
|
26
|
+
export type DeleteRiskScanMutationProps<T extends keyof DeleteRiskScanProps> = Omit<DeleteRiskScanProps, T> & Partial<Pick<DeleteRiskScanProps, T>>;
|
|
27
|
+
/**
|
|
28
|
+
* deletes a risk scan by its identity
|
|
29
|
+
*/
|
|
30
|
+
export declare function useDeleteRiskScanMutation<T extends keyof DeleteRiskScanProps>(props: Pick<Partial<DeleteRiskScanProps>, T>, options?: Omit<UseMutationOptions<DeleteRiskScanResponseContainer, DeleteRiskScanErrorResponse, DeleteRiskScanMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteRiskScanResponseContainer, ApiRestError, DeleteRiskScanMutationProps<T>, 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 { useMutation } from '@tanstack/react-query';
|
|
5
|
+
import { fetcher } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function deleteRiskScan(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risk-scans/${props.identity}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* deletes a risk scan by its identity
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteRiskScanMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteRiskScan(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RiskrulesRiskRuleResponse } from '../schemas/RiskrulesRiskRuleResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetRiskRuleQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetRiskRuleQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
organizationIdentifier?: string;
|
|
12
|
+
parentUniqueId?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export type GetRiskRuleOkResponse = RiskrulesRiskRuleResponse;
|
|
16
|
+
export type GetRiskRuleErrorResponse = ApiRestError;
|
|
17
|
+
export interface GetRiskRuleProps extends GetRiskRuleQueryPathParams, Omit<FetcherOptions<GetRiskRuleQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: GetRiskRuleQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface GetRiskRuleResponseContainer {
|
|
21
|
+
body: GetRiskRuleOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function getRiskRule(props: GetRiskRuleProps): Promise<GetRiskRuleResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* gets a risk rule by its identity
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetRiskRuleQuery(props: GetRiskRuleProps, options?: Omit<UseQueryOptions<GetRiskRuleResponseContainer, GetRiskRuleErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRiskRuleResponseContainer, ApiRestError>;
|
|
@@ -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 '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function getRiskRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risk-rules/${props.identity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* gets a risk rule by its identity
|
|
11
|
+
*/
|
|
12
|
+
export function useGetRiskRuleQuery(props, options) {
|
|
13
|
+
return useQuery(['getRiskRule', props.identity, props.queryParams], ({ signal }) => getRiskRule(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RiskscansHeatmapResponse } from '../schemas/RiskscansHeatmapResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetRiskScanHeatmapQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetRiskScanHeatmapQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @default 15
|
|
13
|
+
*/
|
|
14
|
+
limit?: number;
|
|
15
|
+
organizationIdentifier?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @default 0
|
|
18
|
+
*/
|
|
19
|
+
page?: number;
|
|
20
|
+
parentUniqueId?: string;
|
|
21
|
+
projectIdentifier?: string;
|
|
22
|
+
search?: string;
|
|
23
|
+
}
|
|
24
|
+
export type GetRiskScanHeatmapOkResponse = RiskscansHeatmapResponse;
|
|
25
|
+
export type GetRiskScanHeatmapErrorResponse = ApiRestError;
|
|
26
|
+
export interface GetRiskScanHeatmapProps extends GetRiskScanHeatmapQueryPathParams, Omit<FetcherOptions<GetRiskScanHeatmapQueryQueryParams, unknown>, 'url'> {
|
|
27
|
+
queryParams: GetRiskScanHeatmapQueryQueryParams;
|
|
28
|
+
}
|
|
29
|
+
export interface GetRiskScanHeatmapResponseContainer {
|
|
30
|
+
body: GetRiskScanHeatmapOkResponse;
|
|
31
|
+
headers: Headers;
|
|
32
|
+
}
|
|
33
|
+
export declare function getRiskScanHeatmap(props: GetRiskScanHeatmapProps): Promise<GetRiskScanHeatmapResponseContainer>;
|
|
34
|
+
/**
|
|
35
|
+
* returns a matrix of services vs risk rules showing which risks were detected, with severity and status per cell
|
|
36
|
+
*/
|
|
37
|
+
export declare function useGetRiskScanHeatmapQuery(props: GetRiskScanHeatmapProps, options?: Omit<UseQueryOptions<GetRiskScanHeatmapResponseContainer, GetRiskScanHeatmapErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRiskScanHeatmapResponseContainer, ApiRestError>;
|
|
@@ -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 '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function getRiskScanHeatmap(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risk-scans/${props.identity}/heatmap`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* returns a matrix of services vs risk rules showing which risks were detected, with severity and status per cell
|
|
11
|
+
*/
|
|
12
|
+
export function useGetRiskScanHeatmapQuery(props, options) {
|
|
13
|
+
return useQuery(['getRiskScanHeatmap', props.identity, props.queryParams], ({ signal }) => getRiskScanHeatmap(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RiskscansRiskScanResponse } from '../schemas/RiskscansRiskScanResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetRiskScanQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetRiskScanQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
organizationIdentifier?: string;
|
|
12
|
+
parentUniqueId?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export type GetRiskScanOkResponse = RiskscansRiskScanResponse;
|
|
16
|
+
export type GetRiskScanErrorResponse = ApiRestError;
|
|
17
|
+
export interface GetRiskScanProps extends GetRiskScanQueryPathParams, Omit<FetcherOptions<GetRiskScanQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: GetRiskScanQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface GetRiskScanResponseContainer {
|
|
21
|
+
body: GetRiskScanOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function getRiskScan(props: GetRiskScanProps): Promise<GetRiskScanResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* gets a risk scan by its identity
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetRiskScanQuery(props: GetRiskScanProps, options?: Omit<UseQueryOptions<GetRiskScanResponseContainer, GetRiskScanErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRiskScanResponseContainer, ApiRestError>;
|
|
@@ -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 '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function getRiskScan(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risk-scans/${props.identity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* gets a risk scan by its identity
|
|
11
|
+
*/
|
|
12
|
+
export function useGetRiskScanQuery(props, options) {
|
|
13
|
+
return useQuery(['getRiskScan', props.identity, props.queryParams], ({ signal }) => getRiskScan(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RiskscansDownloadResponse } from '../schemas/RiskscansDownloadResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetRiskScanReportDownloadUrlQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetRiskScanReportDownloadUrlQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
organizationIdentifier?: string;
|
|
12
|
+
parentUniqueId?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export type GetRiskScanReportDownloadUrlOkResponse = RiskscansDownloadResponse;
|
|
16
|
+
export type GetRiskScanReportDownloadUrlErrorResponse = ApiRestError;
|
|
17
|
+
export interface GetRiskScanReportDownloadUrlProps extends GetRiskScanReportDownloadUrlQueryPathParams, Omit<FetcherOptions<GetRiskScanReportDownloadUrlQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: GetRiskScanReportDownloadUrlQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface GetRiskScanReportDownloadUrlResponseContainer {
|
|
21
|
+
body: GetRiskScanReportDownloadUrlOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function getRiskScanReportDownloadUrl(props: GetRiskScanReportDownloadUrlProps): Promise<GetRiskScanReportDownloadUrlResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* returns a signed URL for downloading the risk scan report PDF
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetRiskScanReportDownloadUrlQuery(props: GetRiskScanReportDownloadUrlProps, options?: Omit<UseQueryOptions<GetRiskScanReportDownloadUrlResponseContainer, GetRiskScanReportDownloadUrlErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRiskScanReportDownloadUrlResponseContainer, ApiRestError>;
|
|
@@ -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 '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function getRiskScanReportDownloadUrl(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risk-scans/${props.identity}/report/download`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* returns a signed URL for downloading the risk scan report PDF
|
|
11
|
+
*/
|
|
12
|
+
export function useGetRiskScanReportDownloadUrlQuery(props, options) {
|
|
13
|
+
return useQuery(['getRiskScanReportDownloadURL', props.identity, props.queryParams], ({ signal }) => getRiskScanReportDownloadUrl(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RiskscansReportResponse } from '../schemas/RiskscansReportResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetRiskScanReportQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetRiskScanReportQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
organizationIdentifier?: string;
|
|
12
|
+
parentUniqueId?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export type GetRiskScanReportOkResponse = RiskscansReportResponse;
|
|
16
|
+
export type GetRiskScanReportErrorResponse = ApiRestError;
|
|
17
|
+
export interface GetRiskScanReportProps extends GetRiskScanReportQueryPathParams, Omit<FetcherOptions<GetRiskScanReportQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: GetRiskScanReportQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface GetRiskScanReportResponseContainer {
|
|
21
|
+
body: GetRiskScanReportOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function getRiskScanReport(props: GetRiskScanReportProps): Promise<GetRiskScanReportResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* generates a comprehensive report including scan details and all scanned risks with embedded occurrences
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetRiskScanReportQuery(props: GetRiskScanReportProps, options?: Omit<UseQueryOptions<GetRiskScanReportResponseContainer, GetRiskScanReportErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetRiskScanReportResponseContainer, ApiRestError>;
|
|
@@ -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 '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function getRiskScanReport(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risk-scans/${props.identity}/report`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* generates a comprehensive report including scan details and all scanned risks with embedded occurrences
|
|
11
|
+
*/
|
|
12
|
+
export function useGetRiskScanReportQuery(props, options) {
|
|
13
|
+
return useQuery(['getRiskScanReport', props.identity, props.queryParams], ({ signal }) => getRiskScanReport(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ScannedrisksGetResponse } from '../schemas/ScannedrisksGetResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface GetScannedRiskQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface GetScannedRiskQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
organizationIdentifier?: string;
|
|
12
|
+
parentUniqueId?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export type GetScannedRiskOkResponse = ScannedrisksGetResponse;
|
|
16
|
+
export type GetScannedRiskErrorResponse = ApiRestError;
|
|
17
|
+
export interface GetScannedRiskProps extends GetScannedRiskQueryPathParams, Omit<FetcherOptions<GetScannedRiskQueryQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: GetScannedRiskQueryQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface GetScannedRiskResponseContainer {
|
|
21
|
+
body: GetScannedRiskOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function getScannedRisk(props: GetScannedRiskProps): Promise<GetScannedRiskResponseContainer>;
|
|
25
|
+
/**
|
|
26
|
+
* retrieves a specific scanned risk by identity
|
|
27
|
+
*/
|
|
28
|
+
export declare function useGetScannedRiskQuery(props: GetScannedRiskProps, options?: Omit<UseQueryOptions<GetScannedRiskResponseContainer, GetScannedRiskErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetScannedRiskResponseContainer, ApiRestError>;
|
|
@@ -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 '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function getScannedRisk(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/scanned-risks/${props.identity}`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* retrieves a specific scanned risk by identity
|
|
11
|
+
*/
|
|
12
|
+
export function useGetScannedRiskQuery(props, options) {
|
|
13
|
+
return useQuery(['getScannedRisk', props.identity, props.queryParams], ({ signal }) => getScannedRisk(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RiskrulesListResponse } from '../schemas/RiskrulesListResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListRiskRulesQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
correlationID?: string;
|
|
8
|
+
dataSource?: string;
|
|
9
|
+
includeAllScope?: boolean;
|
|
10
|
+
isSystem?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @default 15
|
|
13
|
+
*/
|
|
14
|
+
limit?: number;
|
|
15
|
+
organizationIdentifier?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @default 0
|
|
18
|
+
*/
|
|
19
|
+
page?: number;
|
|
20
|
+
parentUniqueId?: string;
|
|
21
|
+
projectIdentifier?: string;
|
|
22
|
+
search?: string;
|
|
23
|
+
sortAscending?: boolean;
|
|
24
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
25
|
+
tags?: string;
|
|
26
|
+
}
|
|
27
|
+
export type ListRiskRulesOkResponse = RiskrulesListResponse;
|
|
28
|
+
export type ListRiskRulesErrorResponse = ApiRestError;
|
|
29
|
+
export interface ListRiskRulesProps extends Omit<FetcherOptions<ListRiskRulesQueryQueryParams, unknown>, 'url'> {
|
|
30
|
+
queryParams: ListRiskRulesQueryQueryParams;
|
|
31
|
+
}
|
|
32
|
+
export interface ListRiskRulesResponseContainer {
|
|
33
|
+
body: ListRiskRulesOkResponse;
|
|
34
|
+
headers: Headers;
|
|
35
|
+
}
|
|
36
|
+
export declare function listRiskRules(props: ListRiskRulesProps): Promise<ListRiskRulesResponseContainer>;
|
|
37
|
+
/**
|
|
38
|
+
* lists risk rules with pagination and filters
|
|
39
|
+
*/
|
|
40
|
+
export declare function useListRiskRulesQuery(props: ListRiskRulesProps, options?: Omit<UseQueryOptions<ListRiskRulesResponseContainer, ListRiskRulesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRiskRulesResponseContainer, ApiRestError>;
|
|
@@ -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 '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function listRiskRules(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risk-rules`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* lists risk rules with pagination and filters
|
|
11
|
+
*/
|
|
12
|
+
export function useListRiskRulesQuery(props, options) {
|
|
13
|
+
return useQuery(['listRiskRules', props.queryParams], ({ signal }) => listRiskRules(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RiskscansListResponse } from '../schemas/RiskscansListResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListRiskScansQueryQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
agentIdentity?: string;
|
|
8
|
+
correlationID?: string;
|
|
9
|
+
endTime?: number;
|
|
10
|
+
environmentIdentity?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @default 15
|
|
13
|
+
*/
|
|
14
|
+
limit?: number;
|
|
15
|
+
organizationIdentifier?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @default 0
|
|
18
|
+
*/
|
|
19
|
+
page?: number;
|
|
20
|
+
parentUniqueId?: string;
|
|
21
|
+
pipelineIdentity?: string;
|
|
22
|
+
projectIdentifier?: string;
|
|
23
|
+
scanType?: string;
|
|
24
|
+
search?: string;
|
|
25
|
+
sortAscending?: boolean;
|
|
26
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
27
|
+
startTime?: number;
|
|
28
|
+
status?: string;
|
|
29
|
+
tags?: string;
|
|
30
|
+
}
|
|
31
|
+
export type ListRiskScansOkResponse = RiskscansListResponse;
|
|
32
|
+
export type ListRiskScansErrorResponse = ApiRestError;
|
|
33
|
+
export interface ListRiskScansProps extends Omit<FetcherOptions<ListRiskScansQueryQueryParams, unknown>, 'url'> {
|
|
34
|
+
queryParams: ListRiskScansQueryQueryParams;
|
|
35
|
+
}
|
|
36
|
+
export interface ListRiskScansResponseContainer {
|
|
37
|
+
body: ListRiskScansOkResponse;
|
|
38
|
+
headers: Headers;
|
|
39
|
+
}
|
|
40
|
+
export declare function listRiskScans(props: ListRiskScansProps): Promise<ListRiskScansResponseContainer>;
|
|
41
|
+
/**
|
|
42
|
+
* lists risk scans with optional filtering
|
|
43
|
+
*/
|
|
44
|
+
export declare function useListRiskScansQuery(props: ListRiskScansProps, options?: Omit<UseQueryOptions<ListRiskScansResponseContainer, ListRiskScansErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListRiskScansResponseContainer, ApiRestError>;
|
|
@@ -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 '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function listRiskScans(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risk-scans`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* lists risk scans with optional filtering
|
|
11
|
+
*/
|
|
12
|
+
export function useListRiskScansQuery(props, options) {
|
|
13
|
+
return useQuery(['listRiskScans', props.queryParams], ({ signal }) => listRiskScans(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|
|
@@ -4,7 +4,7 @@ import type { ApiRestError } from '../schemas/ApiRestError';
|
|
|
4
4
|
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
5
|
export interface ListRisksQueryQueryParams {
|
|
6
6
|
accountIdentifier: string;
|
|
7
|
-
category?:
|
|
7
|
+
category?: 'Availability' | 'Config' | 'Dependency' | 'Performance' | 'Resilience';
|
|
8
8
|
correlationID?: string;
|
|
9
9
|
includeAllScope?: boolean;
|
|
10
10
|
infrastructure?: 'CloudFoundry' | 'Container' | 'Kubernetes' | 'KubernetesV2' | 'Linux' | 'Windows';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ScannedrisksOccurrencesResponse } from '../schemas/ScannedrisksOccurrencesResponse';
|
|
3
|
+
import type { ApiRestError } from '../schemas/ApiRestError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface ListScannedRiskOccurrencesQueryPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ListScannedRiskOccurrencesQueryQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
endTime?: number;
|
|
12
|
+
/**
|
|
13
|
+
* @default 15
|
|
14
|
+
*/
|
|
15
|
+
limit?: number;
|
|
16
|
+
organizationIdentifier?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @default 0
|
|
19
|
+
*/
|
|
20
|
+
page?: number;
|
|
21
|
+
parentUniqueId?: string;
|
|
22
|
+
projectIdentifier?: string;
|
|
23
|
+
scanType?: string;
|
|
24
|
+
search?: string;
|
|
25
|
+
sortAscending?: boolean;
|
|
26
|
+
sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
27
|
+
startTime?: number;
|
|
28
|
+
}
|
|
29
|
+
export type ListScannedRiskOccurrencesOkResponse = ScannedrisksOccurrencesResponse;
|
|
30
|
+
export type ListScannedRiskOccurrencesErrorResponse = ApiRestError;
|
|
31
|
+
export interface ListScannedRiskOccurrencesProps extends ListScannedRiskOccurrencesQueryPathParams, Omit<FetcherOptions<ListScannedRiskOccurrencesQueryQueryParams, unknown>, 'url'> {
|
|
32
|
+
queryParams: ListScannedRiskOccurrencesQueryQueryParams;
|
|
33
|
+
}
|
|
34
|
+
export interface ListScannedRiskOccurrencesResponseContainer {
|
|
35
|
+
body: ListScannedRiskOccurrencesOkResponse;
|
|
36
|
+
headers: Headers;
|
|
37
|
+
}
|
|
38
|
+
export declare function listScannedRiskOccurrences(props: ListScannedRiskOccurrencesProps): Promise<ListScannedRiskOccurrencesResponseContainer>;
|
|
39
|
+
/**
|
|
40
|
+
* lists all occurrences for a specific scanned risk
|
|
41
|
+
*/
|
|
42
|
+
export declare function useListScannedRiskOccurrencesQuery(props: ListScannedRiskOccurrencesProps, options?: Omit<UseQueryOptions<ListScannedRiskOccurrencesResponseContainer, ListScannedRiskOccurrencesErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListScannedRiskOccurrencesResponseContainer, ApiRestError>;
|
|
@@ -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 '../../../../custom-fetcher/index.js';
|
|
6
|
+
export function listScannedRiskOccurrences(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/scanned-risks/${props.identity}/occurrences`, method: 'GET' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* lists all occurrences for a specific scanned risk
|
|
11
|
+
*/
|
|
12
|
+
export function useListScannedRiskOccurrencesQuery(props, options) {
|
|
13
|
+
return useQuery(['listScannedRiskOccurrences', props.identity, props.queryParams], ({ signal }) => listScannedRiskOccurrences(Object.assign(Object.assign({}, props), { signal })), options);
|
|
14
|
+
}
|