@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.
Files changed (165) hide show
  1. package/dist/chaos-manager/src/services/hooks/useAbortRiskScanMutation.d.ts +30 -0
  2. package/dist/chaos-manager/src/services/hooks/useAbortRiskScanMutation.js +14 -0
  3. package/dist/chaos-manager/src/services/hooks/useCreateRiskScanMutation.d.ts +29 -0
  4. package/dist/chaos-manager/src/services/hooks/useCreateRiskScanMutation.js +14 -0
  5. package/dist/chaos-manager/src/services/hooks/useDeleteRiskScanMutation.d.ts +30 -0
  6. package/dist/chaos-manager/src/services/hooks/useDeleteRiskScanMutation.js +14 -0
  7. package/dist/chaos-manager/src/services/hooks/useGetRiskRuleQuery.d.ts +28 -0
  8. package/dist/chaos-manager/src/services/hooks/useGetRiskRuleQuery.js +14 -0
  9. package/dist/chaos-manager/src/services/hooks/useGetRiskScanHeatmapQuery.d.ts +37 -0
  10. package/dist/chaos-manager/src/services/hooks/useGetRiskScanHeatmapQuery.js +14 -0
  11. package/dist/chaos-manager/src/services/hooks/useGetRiskScanQuery.d.ts +28 -0
  12. package/dist/chaos-manager/src/services/hooks/useGetRiskScanQuery.js +14 -0
  13. package/dist/chaos-manager/src/services/hooks/useGetRiskScanReportDownloadUrlQuery.d.ts +28 -0
  14. package/dist/chaos-manager/src/services/hooks/useGetRiskScanReportDownloadUrlQuery.js +14 -0
  15. package/dist/chaos-manager/src/services/hooks/useGetRiskScanReportQuery.d.ts +28 -0
  16. package/dist/chaos-manager/src/services/hooks/useGetRiskScanReportQuery.js +14 -0
  17. package/dist/chaos-manager/src/services/hooks/useGetScannedRiskQuery.d.ts +28 -0
  18. package/dist/chaos-manager/src/services/hooks/useGetScannedRiskQuery.js +14 -0
  19. package/dist/chaos-manager/src/services/hooks/useListChaosServicesQuery.d.ts +1 -0
  20. package/dist/chaos-manager/src/services/hooks/useListRiskRulesQuery.d.ts +40 -0
  21. package/dist/chaos-manager/src/services/hooks/useListRiskRulesQuery.js +14 -0
  22. package/dist/chaos-manager/src/services/hooks/useListRiskScansQuery.d.ts +44 -0
  23. package/dist/chaos-manager/src/services/hooks/useListRiskScansQuery.js +14 -0
  24. package/dist/chaos-manager/src/services/hooks/useListRisksQuery.d.ts +1 -1
  25. package/dist/chaos-manager/src/services/hooks/useListScannedRiskOccurrencesQuery.d.ts +42 -0
  26. package/dist/chaos-manager/src/services/hooks/useListScannedRiskOccurrencesQuery.js +14 -0
  27. package/dist/chaos-manager/src/services/hooks/useListScannedRisksQuery.d.ts +46 -0
  28. package/dist/chaos-manager/src/services/hooks/useListScannedRisksQuery.js +14 -0
  29. package/dist/chaos-manager/src/services/hooks/useRetryRiskScanMutation.d.ts +30 -0
  30. package/dist/chaos-manager/src/services/hooks/useRetryRiskScanMutation.js +14 -0
  31. package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.d.ts +29 -0
  32. package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.js +14 -0
  33. package/dist/chaos-manager/src/services/hooks/useUpdateRiskScanMutation.d.ts +33 -0
  34. package/dist/chaos-manager/src/services/hooks/useUpdateRiskScanMutation.js +14 -0
  35. package/dist/chaos-manager/src/services/index.d.ts +89 -0
  36. package/dist/chaos-manager/src/services/index.js +16 -0
  37. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionNode.d.ts +1 -4
  38. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesProbeData.d.ts +1 -0
  39. package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateProbeTemplate.d.ts +2 -0
  40. package/dist/chaos-manager/src/services/schemas/ChaosservicesChaosServiceResponse.d.ts +2 -0
  41. package/dist/chaos-manager/src/services/schemas/ChaosservicesCreateRequest.d.ts +2 -0
  42. package/dist/chaos-manager/src/services/schemas/ExperimentProbeRef.d.ts +4 -0
  43. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobetemplateChaosProbeTemplate.d.ts +2 -0
  44. package/dist/chaos-manager/src/services/schemas/ImageRegistryCustomImagesRequest.d.ts +1 -0
  45. package/dist/chaos-manager/src/services/schemas/MongodbInfrastructureType.d.ts +1 -0
  46. package/dist/chaos-manager/src/services/schemas/MongodbInfrastructureType.js +4 -0
  47. package/dist/chaos-manager/src/services/schemas/ProbeRuleDetails.d.ts +4 -0
  48. package/dist/chaos-manager/src/services/schemas/ProbeRuleDetails.js +4 -0
  49. package/dist/chaos-manager/src/services/schemas/RiskCategory.d.ts +1 -0
  50. package/dist/chaos-manager/src/services/schemas/RiskCategory.js +4 -0
  51. package/dist/chaos-manager/src/services/schemas/RiskCdService.d.ts +5 -0
  52. package/dist/chaos-manager/src/services/schemas/RiskCdService.js +4 -0
  53. package/dist/chaos-manager/src/services/schemas/RiskChaosService.d.ts +4 -0
  54. package/dist/chaos-manager/src/services/schemas/RiskChaosService.js +4 -0
  55. package/dist/chaos-manager/src/services/schemas/RiskCollectionError.d.ts +4 -0
  56. package/dist/chaos-manager/src/services/schemas/RiskCollectionError.js +4 -0
  57. package/dist/chaos-manager/src/services/schemas/RiskCollectionSummary.d.ts +12 -0
  58. package/dist/chaos-manager/src/services/schemas/RiskCollectionSummary.js +1 -0
  59. package/dist/chaos-manager/src/services/schemas/RiskDiscoveredService.d.ts +7 -0
  60. package/dist/chaos-manager/src/services/schemas/RiskDiscoveredService.js +4 -0
  61. package/dist/chaos-manager/src/services/schemas/RiskEvidenceResource.d.ts +6 -0
  62. package/dist/chaos-manager/src/services/schemas/RiskEvidenceResource.js +4 -0
  63. package/dist/chaos-manager/src/services/schemas/RiskProbeExecutionExperimentSource.d.ts +4 -0
  64. package/dist/chaos-manager/src/services/schemas/RiskProbeExecutionExperimentSource.js +4 -0
  65. package/dist/chaos-manager/src/services/schemas/RiskProbeExecutionPipelineStepSource.d.ts +4 -0
  66. package/dist/chaos-manager/src/services/schemas/RiskProbeExecutionPipelineStepSource.js +4 -0
  67. package/dist/chaos-manager/src/services/schemas/RiskProbeExecutionSource.d.ts +6 -0
  68. package/dist/chaos-manager/src/services/schemas/RiskProbeExecutionSource.js +1 -0
  69. package/dist/chaos-manager/src/services/schemas/RiskRiskDataSource.d.ts +1 -0
  70. package/dist/chaos-manager/src/services/schemas/RiskRiskDataSource.js +4 -0
  71. package/dist/chaos-manager/src/services/schemas/RiskRiskRulePrompt.d.ts +5 -0
  72. package/dist/chaos-manager/src/services/schemas/RiskRiskRulePrompt.js +4 -0
  73. package/dist/chaos-manager/src/services/schemas/RiskRiskRuleSpec.d.ts +7 -0
  74. package/dist/chaos-manager/src/services/schemas/RiskRiskRuleSpec.js +1 -0
  75. package/dist/chaos-manager/src/services/schemas/RiskRiskSummary.d.ts +14 -0
  76. package/dist/chaos-manager/src/services/schemas/RiskRiskSummary.js +4 -0
  77. package/dist/chaos-manager/src/services/schemas/RiskScan.d.ts +40 -0
  78. package/dist/chaos-manager/src/services/schemas/RiskScan.js +1 -0
  79. package/dist/chaos-manager/src/services/schemas/RiskScanResult.d.ts +1 -0
  80. package/dist/chaos-manager/src/services/schemas/RiskScanResult.js +4 -0
  81. package/dist/chaos-manager/src/services/schemas/RiskScanSource.d.ts +8 -0
  82. package/dist/chaos-manager/src/services/schemas/RiskScanSource.js +1 -0
  83. package/dist/chaos-manager/src/services/schemas/RiskScanSourcePipeline.d.ts +4 -0
  84. package/dist/chaos-manager/src/services/schemas/RiskScanSourcePipeline.js +4 -0
  85. package/dist/chaos-manager/src/services/schemas/RiskScanSourceProbeExecution.d.ts +6 -0
  86. package/dist/chaos-manager/src/services/schemas/RiskScanSourceProbeExecution.js +1 -0
  87. package/dist/chaos-manager/src/services/schemas/RiskScanSourceServiceDiscovery.d.ts +5 -0
  88. package/dist/chaos-manager/src/services/schemas/RiskScanSourceServiceDiscovery.js +4 -0
  89. package/dist/chaos-manager/src/services/schemas/RiskScanStatus.d.ts +1 -0
  90. package/dist/chaos-manager/src/services/schemas/RiskScanStatus.js +4 -0
  91. package/dist/chaos-manager/src/services/schemas/RiskScanType.d.ts +1 -0
  92. package/dist/chaos-manager/src/services/schemas/RiskScanType.js +4 -0
  93. package/dist/chaos-manager/src/services/schemas/RiskServiceDetails.d.ts +8 -0
  94. package/dist/chaos-manager/src/services/schemas/RiskServiceDetails.js +1 -0
  95. package/dist/chaos-manager/src/services/schemas/RiskSeverity.d.ts +1 -0
  96. package/dist/chaos-manager/src/services/schemas/RiskSeverity.js +4 -0
  97. package/dist/chaos-manager/src/services/schemas/RiskTargetService.d.ts +12 -0
  98. package/dist/chaos-manager/src/services/schemas/RiskTargetService.js +1 -0
  99. package/dist/chaos-manager/src/services/schemas/RiskTargetServiceType.d.ts +1 -0
  100. package/dist/chaos-manager/src/services/schemas/RiskTargetServiceType.js +4 -0
  101. package/dist/chaos-manager/src/services/schemas/RiskrulesListResponse.d.ts +7 -0
  102. package/dist/chaos-manager/src/services/schemas/RiskrulesListResponse.js +1 -0
  103. package/dist/chaos-manager/src/services/schemas/RiskrulesRiskRuleResponse.d.ts +20 -0
  104. package/dist/chaos-manager/src/services/schemas/RiskrulesRiskRuleResponse.js +1 -0
  105. package/dist/chaos-manager/src/services/schemas/RisksCreateRequest.d.ts +2 -1
  106. package/dist/chaos-manager/src/services/schemas/RisksRisk.d.ts +2 -1
  107. package/dist/chaos-manager/src/services/schemas/RisksRiskResponse.d.ts +2 -1
  108. package/dist/chaos-manager/src/services/schemas/RiskscansCreateRequest.d.ts +10 -0
  109. package/dist/chaos-manager/src/services/schemas/RiskscansCreateRequest.js +1 -0
  110. package/dist/chaos-manager/src/services/schemas/RiskscansDownloadResponse.d.ts +5 -0
  111. package/dist/chaos-manager/src/services/schemas/RiskscansDownloadResponse.js +4 -0
  112. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapCell.d.ts +8 -0
  113. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapCell.js +4 -0
  114. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapResponse.d.ts +10 -0
  115. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapResponse.js +1 -0
  116. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapRiskRule.d.ts +5 -0
  117. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapRiskRule.js +4 -0
  118. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapRow.d.ts +7 -0
  119. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapRow.js +1 -0
  120. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapSummary.d.ts +11 -0
  121. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapSummary.js +4 -0
  122. package/dist/chaos-manager/src/services/schemas/RiskscansListResponse.d.ts +7 -0
  123. package/dist/chaos-manager/src/services/schemas/RiskscansListResponse.js +1 -0
  124. package/dist/chaos-manager/src/services/schemas/RiskscansOccurrenceContext.d.ts +5 -0
  125. package/dist/chaos-manager/src/services/schemas/RiskscansOccurrenceContext.js +4 -0
  126. package/dist/chaos-manager/src/services/schemas/RiskscansOccurrenceDetails.d.ts +13 -0
  127. package/dist/chaos-manager/src/services/schemas/RiskscansOccurrenceDetails.js +1 -0
  128. package/dist/chaos-manager/src/services/schemas/RiskscansReportResponse.d.ts +8 -0
  129. package/dist/chaos-manager/src/services/schemas/RiskscansReportResponse.js +1 -0
  130. package/dist/chaos-manager/src/services/schemas/RiskscansReportSummary.d.ts +10 -0
  131. package/dist/chaos-manager/src/services/schemas/RiskscansReportSummary.js +4 -0
  132. package/dist/chaos-manager/src/services/schemas/RiskscansRiskScanResponse.d.ts +40 -0
  133. package/dist/chaos-manager/src/services/schemas/RiskscansRiskScanResponse.js +1 -0
  134. package/dist/chaos-manager/src/services/schemas/RiskscansScannedRiskWithOccurrences.d.ts +14 -0
  135. package/dist/chaos-manager/src/services/schemas/RiskscansScannedRiskWithOccurrences.js +1 -0
  136. package/dist/chaos-manager/src/services/schemas/RiskscansUpdateRequest.d.ts +5 -0
  137. package/dist/chaos-manager/src/services/schemas/RiskscansUpdateRequest.js +4 -0
  138. package/dist/chaos-manager/src/services/schemas/ScannedrisksGetResponse.d.ts +4 -0
  139. package/dist/chaos-manager/src/services/schemas/ScannedrisksGetResponse.js +1 -0
  140. package/dist/chaos-manager/src/services/schemas/ScannedrisksListResponse.d.ts +7 -0
  141. package/dist/chaos-manager/src/services/schemas/ScannedrisksListResponse.js +1 -0
  142. package/dist/chaos-manager/src/services/schemas/ScannedrisksOccurrenceDetail.d.ts +13 -0
  143. package/dist/chaos-manager/src/services/schemas/ScannedrisksOccurrenceDetail.js +1 -0
  144. package/dist/chaos-manager/src/services/schemas/ScannedrisksOccurrencesResponse.d.ts +7 -0
  145. package/dist/chaos-manager/src/services/schemas/ScannedrisksOccurrencesResponse.js +1 -0
  146. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStat.d.ts +7 -0
  147. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStat.js +4 -0
  148. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatus.d.ts +1 -0
  149. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatus.js +4 -0
  150. package/dist/chaos-manager/src/services/schemas/ScannedrisksScannedRisk.d.ts +13 -0
  151. package/dist/chaos-manager/src/services/schemas/ScannedrisksScannedRisk.js +1 -0
  152. package/dist/chaos-manager/src/services/schemas/ScannedrisksScannedRiskSpec.d.ts +19 -0
  153. package/dist/chaos-manager/src/services/schemas/ScannedrisksScannedRiskSpec.js +1 -0
  154. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummary.d.ts +10 -0
  155. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummary.js +1 -0
  156. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryQuery.d.ts +65 -0
  157. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryQuery.js +4 -0
  158. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryResponse.d.ts +15 -0
  159. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryResponse.js +1 -0
  160. package/dist/chaos-manager/src/services/schemas/ScannedrisksValidationType.d.ts +1 -0
  161. package/dist/chaos-manager/src/services/schemas/ScannedrisksValidationType.js +4 -0
  162. package/dist/chaos-manager/src/services/schemas/TypesCreateProbeResponse.d.ts +2 -0
  163. package/dist/chaos-manager/src/services/schemas/TypesGetProbeResponse.d.ts +2 -0
  164. package/dist/chaos-manager/src/services/schemas/TypesProbeRequest.d.ts +2 -0
  165. package/package.json +1 -1
@@ -0,0 +1,46 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ScannedrisksListResponse } from '../schemas/ScannedrisksListResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListScannedRisksQueryQueryParams {
6
+ accountIdentifier: string;
7
+ agentIdentity?: string;
8
+ correlationID?: string;
9
+ endTime?: number;
10
+ environmentIdentity?: string;
11
+ includeAllScope?: boolean;
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
+ riskRuleId?: string;
24
+ search?: string;
25
+ serviceIdentity?: string;
26
+ severity?: string;
27
+ sortAscending?: boolean;
28
+ sortField?: 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
29
+ startTime?: number;
30
+ tags?: string;
31
+ validationType?: string;
32
+ }
33
+ export type ListScannedRisksOkResponse = ScannedrisksListResponse;
34
+ export type ListScannedRisksErrorResponse = ApiRestError;
35
+ export interface ListScannedRisksProps extends Omit<FetcherOptions<ListScannedRisksQueryQueryParams, unknown>, 'url'> {
36
+ queryParams: ListScannedRisksQueryQueryParams;
37
+ }
38
+ export interface ListScannedRisksResponseContainer {
39
+ body: ListScannedRisksOkResponse;
40
+ headers: Headers;
41
+ }
42
+ export declare function listScannedRisks(props: ListScannedRisksProps): Promise<ListScannedRisksResponseContainer>;
43
+ /**
44
+ * lists scanned risks with optional filtering
45
+ */
46
+ export declare function useListScannedRisksQuery(props: ListScannedRisksProps, options?: Omit<UseQueryOptions<ListScannedRisksResponseContainer, ListScannedRisksErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListScannedRisksResponseContainer, 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 listScannedRisks(props) {
7
+ return fetcher(Object.assign({ url: `/v3/scanned-risks`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * lists scanned risks with optional filtering
11
+ */
12
+ export function useListScannedRisksQuery(props, options) {
13
+ return useQuery(['listScannedRisks', props.queryParams], ({ signal }) => listScannedRisks(Object.assign(Object.assign({}, props), { signal })), 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 RetryRiskScanMutationPathParams {
5
+ identity: string;
6
+ }
7
+ export interface RetryRiskScanMutationQueryParams {
8
+ accountIdentifier: string;
9
+ correlationID?: string;
10
+ organizationIdentifier?: string;
11
+ parentUniqueId?: string;
12
+ projectIdentifier?: string;
13
+ }
14
+ export type RetryRiskScanOkResponse = {
15
+ [key: string]: string;
16
+ };
17
+ export type RetryRiskScanErrorResponse = ApiRestError;
18
+ export interface RetryRiskScanProps extends RetryRiskScanMutationPathParams, Omit<FetcherOptions<RetryRiskScanMutationQueryParams, unknown>, 'url'> {
19
+ queryParams: RetryRiskScanMutationQueryParams;
20
+ }
21
+ export interface RetryRiskScanResponseContainer {
22
+ body: RetryRiskScanOkResponse;
23
+ headers: Headers;
24
+ }
25
+ export declare function retryRiskScan(props: RetryRiskScanProps): Promise<RetryRiskScanResponseContainer>;
26
+ export type RetryRiskScanMutationProps<T extends keyof RetryRiskScanProps> = Omit<RetryRiskScanProps, T> & Partial<Pick<RetryRiskScanProps, T>>;
27
+ /**
28
+ * retries an errored risk scan by its identity
29
+ */
30
+ export declare function useRetryRiskScanMutation<T extends keyof RetryRiskScanProps>(props: Pick<Partial<RetryRiskScanProps>, T>, options?: Omit<UseMutationOptions<RetryRiskScanResponseContainer, RetryRiskScanErrorResponse, RetryRiskScanMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RetryRiskScanResponseContainer, ApiRestError, RetryRiskScanMutationProps<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 retryRiskScan(props) {
7
+ return fetcher(Object.assign({ url: `/v3/risk-scans/${props.identity}/retry`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * retries an errored risk scan by its identity
11
+ */
12
+ export function useRetryRiskScanMutation(props, options) {
13
+ return useMutation((mutateProps) => retryRiskScan(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,29 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ScannedrisksServiceRiskSummaryResponse } from '../schemas/ScannedrisksServiceRiskSummaryResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { ScannedrisksServiceRiskSummaryQuery } from '../schemas/ScannedrisksServiceRiskSummaryQuery';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface SummarizeScannedRisksByServiceMutationQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ organizationIdentifier?: string;
10
+ parentUniqueId?: string;
11
+ projectIdentifier?: string;
12
+ }
13
+ export type SummarizeScannedRisksByServiceRequestBody = ScannedrisksServiceRiskSummaryQuery;
14
+ export type SummarizeScannedRisksByServiceOkResponse = ScannedrisksServiceRiskSummaryResponse;
15
+ export type SummarizeScannedRisksByServiceErrorResponse = ApiRestError;
16
+ export interface SummarizeScannedRisksByServiceProps extends Omit<FetcherOptions<SummarizeScannedRisksByServiceMutationQueryParams, SummarizeScannedRisksByServiceRequestBody>, 'url'> {
17
+ queryParams: SummarizeScannedRisksByServiceMutationQueryParams;
18
+ body: SummarizeScannedRisksByServiceRequestBody;
19
+ }
20
+ export interface SummarizeScannedRisksByServiceResponseContainer {
21
+ body: SummarizeScannedRisksByServiceOkResponse;
22
+ headers: Headers;
23
+ }
24
+ export declare function summarizeScannedRisksByService(props: SummarizeScannedRisksByServiceProps): Promise<SummarizeScannedRisksByServiceResponseContainer>;
25
+ export type SummarizeScannedRisksByServiceMutationProps<T extends keyof SummarizeScannedRisksByServiceProps> = Omit<SummarizeScannedRisksByServiceProps, T> & Partial<Pick<SummarizeScannedRisksByServiceProps, T>>;
26
+ /**
27
+ * Returns aggregated risk counts (total, critical, high, medium, low) per target service.
28
+ */
29
+ export declare function useSummarizeScannedRisksByServiceMutation<T extends keyof SummarizeScannedRisksByServiceProps>(props: Pick<Partial<SummarizeScannedRisksByServiceProps>, T>, options?: Omit<UseMutationOptions<SummarizeScannedRisksByServiceResponseContainer, SummarizeScannedRisksByServiceErrorResponse, SummarizeScannedRisksByServiceMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SummarizeScannedRisksByServiceResponseContainer, ApiRestError, SummarizeScannedRisksByServiceMutationProps<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 summarizeScannedRisksByService(props) {
7
+ return fetcher(Object.assign({ url: `/v3/scanned-risks/summary`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Returns aggregated risk counts (total, critical, high, medium, low) per target service.
11
+ */
12
+ export function useSummarizeScannedRisksByServiceMutation(props, options) {
13
+ return useMutation((mutateProps) => summarizeScannedRisksByService(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,33 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ApiRestError } from '../schemas/ApiRestError';
3
+ import type { RiskscansUpdateRequest } from '../schemas/RiskscansUpdateRequest';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface UpdateRiskScanMutationPathParams {
6
+ identity: string;
7
+ }
8
+ export interface UpdateRiskScanMutationQueryParams {
9
+ accountIdentifier: string;
10
+ correlationID?: string;
11
+ organizationIdentifier?: string;
12
+ parentUniqueId?: string;
13
+ projectIdentifier?: string;
14
+ }
15
+ export type UpdateRiskScanRequestBody = RiskscansUpdateRequest;
16
+ export type UpdateRiskScanOkResponse = {
17
+ [key: string]: string;
18
+ };
19
+ export type UpdateRiskScanErrorResponse = ApiRestError;
20
+ export interface UpdateRiskScanProps extends UpdateRiskScanMutationPathParams, Omit<FetcherOptions<UpdateRiskScanMutationQueryParams, UpdateRiskScanRequestBody>, 'url'> {
21
+ queryParams: UpdateRiskScanMutationQueryParams;
22
+ body: UpdateRiskScanRequestBody;
23
+ }
24
+ export interface UpdateRiskScanResponseContainer {
25
+ body: UpdateRiskScanOkResponse;
26
+ headers: Headers;
27
+ }
28
+ export declare function updateRiskScan(props: UpdateRiskScanProps): Promise<UpdateRiskScanResponseContainer>;
29
+ export type UpdateRiskScanMutationProps<T extends keyof UpdateRiskScanProps> = Omit<UpdateRiskScanProps, T> & Partial<Pick<UpdateRiskScanProps, T>>;
30
+ /**
31
+ * updates an existing risk scan's metadata
32
+ */
33
+ export declare function useUpdateRiskScanMutation<T extends keyof UpdateRiskScanProps>(props: Pick<Partial<UpdateRiskScanProps>, T>, options?: Omit<UseMutationOptions<UpdateRiskScanResponseContainer, UpdateRiskScanErrorResponse, UpdateRiskScanMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateRiskScanResponseContainer, ApiRestError, UpdateRiskScanMutationProps<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 updateRiskScan(props) {
7
+ return fetcher(Object.assign({ url: `/v3/risk-scans/${props.identity}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * updates an existing risk scan's metadata
11
+ */
12
+ export function useUpdateRiskScanMutation(props, options) {
13
+ return useMutation((mutateProps) => updateRiskScan(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -2,6 +2,8 @@ export type { AbortChaosComponentForMachineErrorResponse, AbortChaosComponentFor
2
2
  export { abortChaosComponentForMachine, useAbortChaosComponentForMachineMutation, } from './hooks/useAbortChaosComponentForMachineMutation';
3
3
  export type { AbortChaosComponentErrorResponse, AbortChaosComponentMutationProps, AbortChaosComponentMutationQueryParams, AbortChaosComponentOkResponse, AbortChaosComponentProps, AbortChaosComponentRequestBody, } from './hooks/useAbortChaosComponentMutation';
4
4
  export { abortChaosComponent, useAbortChaosComponentMutation, } from './hooks/useAbortChaosComponentMutation';
5
+ export type { AbortRiskScanErrorResponse, AbortRiskScanMutationPathParams, AbortRiskScanMutationProps, AbortRiskScanMutationQueryParams, AbortRiskScanOkResponse, AbortRiskScanProps, } from './hooks/useAbortRiskScanMutation';
6
+ export { abortRiskScan, useAbortRiskScanMutation } from './hooks/useAbortRiskScanMutation';
5
7
  export type { AddNoteErrorResponse, AddNoteMutationProps, AddNoteMutationQueryParams, AddNoteOkResponse, AddNoteProps, AddNoteRequestBody, } from './hooks/useAddNoteMutation';
6
8
  export { addNote, useAddNoteMutation } from './hooks/useAddNoteMutation';
7
9
  export type { BulkExperimentDeleteErrorResponse, BulkExperimentDeleteMutationProps, BulkExperimentDeleteMutationQueryParams, BulkExperimentDeleteOkResponse, BulkExperimentDeleteProps, BulkExperimentDeleteRequestBody, } from './hooks/useBulkExperimentDeleteMutation';
@@ -56,6 +58,8 @@ export type { CreateRecommendationErrorResponse, CreateRecommendationMutationPro
56
58
  export { createRecommendation, useCreateRecommendationMutation, } from './hooks/useCreateRecommendationMutation';
57
59
  export type { CreateRiskErrorResponse, CreateRiskMutationProps, CreateRiskMutationQueryParams, CreateRiskOkResponse, CreateRiskProps, CreateRiskRequestBody, } from './hooks/useCreateRiskMutation';
58
60
  export { createRisk, useCreateRiskMutation } from './hooks/useCreateRiskMutation';
61
+ export type { CreateRiskScanErrorResponse, CreateRiskScanMutationProps, CreateRiskScanMutationQueryParams, CreateRiskScanOkResponse, CreateRiskScanProps, CreateRiskScanRequestBody, } from './hooks/useCreateRiskScanMutation';
62
+ export { createRiskScan, useCreateRiskScanMutation } from './hooks/useCreateRiskScanMutation';
59
63
  export type { CreateRuleErrorResponse, CreateRuleMutationProps, CreateRuleMutationQueryParams, CreateRuleOkResponse, CreateRuleProps, CreateRuleRequestBody, } from './hooks/useCreateRuleMutation';
60
64
  export { createRule, useCreateRuleMutation } from './hooks/useCreateRuleMutation';
61
65
  export type { CreateV2OnboardingErrorResponse, CreateV2OnboardingMutationProps, CreateV2OnboardingMutationQueryParams, CreateV2OnboardingOkResponse, CreateV2OnboardingProps, CreateV2OnboardingRequestBody, } from './hooks/useCreateV2OnboardingMutation';
@@ -102,6 +106,8 @@ export type { DeleteRecommendationErrorResponse, DeleteRecommendationMutationPro
102
106
  export { deleteRecommendation, useDeleteRecommendationMutation, } from './hooks/useDeleteRecommendationMutation';
103
107
  export type { DeleteRiskErrorResponse, DeleteRiskMutationPathParams, DeleteRiskMutationProps, DeleteRiskMutationQueryParams, DeleteRiskOkResponse, DeleteRiskProps, } from './hooks/useDeleteRiskMutation';
104
108
  export { deleteRisk, useDeleteRiskMutation } from './hooks/useDeleteRiskMutation';
109
+ export type { DeleteRiskScanErrorResponse, DeleteRiskScanMutationPathParams, DeleteRiskScanMutationProps, DeleteRiskScanMutationQueryParams, DeleteRiskScanOkResponse, DeleteRiskScanProps, } from './hooks/useDeleteRiskScanMutation';
110
+ export { deleteRiskScan, useDeleteRiskScanMutation } from './hooks/useDeleteRiskScanMutation';
105
111
  export type { DeleteRuleErrorResponse, DeleteRuleMutationPathParams, DeleteRuleMutationProps, DeleteRuleMutationQueryParams, DeleteRuleOkResponse, DeleteRuleProps, } from './hooks/useDeleteRuleMutation';
106
112
  export { deleteRule, useDeleteRuleMutation } from './hooks/useDeleteRuleMutation';
107
113
  export type { DeleteTargetNetworkMapErrorResponse, DeleteTargetNetworkMapMutationPathParams, DeleteTargetNetworkMapMutationProps, DeleteTargetNetworkMapMutationQueryParams, DeleteTargetNetworkMapOkResponse, DeleteTargetNetworkMapProps, } from './hooks/useDeleteTargetNetworkMapMutation';
@@ -250,8 +256,20 @@ export type { GetResourceUsageErrorResponse, GetResourceUsageOkResponse, GetReso
250
256
  export { getResourceUsage, useGetResourceUsageQuery } from './hooks/useGetResourceUsageQuery';
251
257
  export type { GetRiskErrorResponse, GetRiskOkResponse, GetRiskProps, GetRiskQueryPathParams, GetRiskQueryQueryParams, } from './hooks/useGetRiskQuery';
252
258
  export { getRisk, useGetRiskQuery } from './hooks/useGetRiskQuery';
259
+ export type { GetRiskRuleErrorResponse, GetRiskRuleOkResponse, GetRiskRuleProps, GetRiskRuleQueryPathParams, GetRiskRuleQueryQueryParams, } from './hooks/useGetRiskRuleQuery';
260
+ export { getRiskRule, useGetRiskRuleQuery } from './hooks/useGetRiskRuleQuery';
261
+ export type { GetRiskScanHeatmapErrorResponse, GetRiskScanHeatmapOkResponse, GetRiskScanHeatmapProps, GetRiskScanHeatmapQueryPathParams, GetRiskScanHeatmapQueryQueryParams, } from './hooks/useGetRiskScanHeatmapQuery';
262
+ export { getRiskScanHeatmap, useGetRiskScanHeatmapQuery } from './hooks/useGetRiskScanHeatmapQuery';
263
+ export type { GetRiskScanErrorResponse, GetRiskScanOkResponse, GetRiskScanProps, GetRiskScanQueryPathParams, GetRiskScanQueryQueryParams, } from './hooks/useGetRiskScanQuery';
264
+ export { getRiskScan, useGetRiskScanQuery } from './hooks/useGetRiskScanQuery';
265
+ export type { GetRiskScanReportDownloadUrlErrorResponse, GetRiskScanReportDownloadUrlOkResponse, GetRiskScanReportDownloadUrlProps, GetRiskScanReportDownloadUrlQueryPathParams, GetRiskScanReportDownloadUrlQueryQueryParams, } from './hooks/useGetRiskScanReportDownloadUrlQuery';
266
+ export { getRiskScanReportDownloadUrl, useGetRiskScanReportDownloadUrlQuery, } from './hooks/useGetRiskScanReportDownloadUrlQuery';
267
+ export type { GetRiskScanReportErrorResponse, GetRiskScanReportOkResponse, GetRiskScanReportProps, GetRiskScanReportQueryPathParams, GetRiskScanReportQueryQueryParams, } from './hooks/useGetRiskScanReportQuery';
268
+ export { getRiskScanReport, useGetRiskScanReportQuery } from './hooks/useGetRiskScanReportQuery';
253
269
  export type { GetRuleErrorResponse, GetRuleOkResponse, GetRuleProps, GetRuleQueryPathParams, GetRuleQueryQueryParams, } from './hooks/useGetRuleQuery';
254
270
  export { getRule, useGetRuleQuery } from './hooks/useGetRuleQuery';
271
+ export type { GetScannedRiskErrorResponse, GetScannedRiskOkResponse, GetScannedRiskProps, GetScannedRiskQueryPathParams, GetScannedRiskQueryQueryParams, } from './hooks/useGetScannedRiskQuery';
272
+ export { getScannedRisk, useGetScannedRiskQuery } from './hooks/useGetScannedRiskQuery';
255
273
  export type { GetServiceResponseErrorResponse, GetServiceResponseOkResponse, GetServiceResponseProps, GetServiceResponseQueryPathParams, GetServiceResponseQueryQueryParams, } from './hooks/useGetServiceResponseQuery';
256
274
  export { getServiceResponse, useGetServiceResponseQuery } from './hooks/useGetServiceResponseQuery';
257
275
  export type { GetServiceUsageReportErrorResponse, GetServiceUsageReportOkResponse, GetServiceUsageReportProps, GetServiceUsageReportQueryPathParams, GetServiceUsageReportQueryQueryParams, } from './hooks/useGetServiceUsageReportQuery';
@@ -352,10 +370,18 @@ export type { ListProbesErrorResponse, ListProbesOkResponse, ListProbesProps, Li
352
370
  export { listProbes, useListProbesQuery } from './hooks/useListProbesQuery';
353
371
  export type { ListRecommendationsErrorResponse, ListRecommendationsOkResponse, ListRecommendationsProps, ListRecommendationsQueryQueryParams, ListRecommendationsRequestBody, } from './hooks/useListRecommendationsQuery';
354
372
  export { listRecommendations, useListRecommendationsQuery, } from './hooks/useListRecommendationsQuery';
373
+ export type { ListRiskRulesErrorResponse, ListRiskRulesOkResponse, ListRiskRulesProps, ListRiskRulesQueryQueryParams, } from './hooks/useListRiskRulesQuery';
374
+ export { listRiskRules, useListRiskRulesQuery } from './hooks/useListRiskRulesQuery';
375
+ export type { ListRiskScansErrorResponse, ListRiskScansOkResponse, ListRiskScansProps, ListRiskScansQueryQueryParams, } from './hooks/useListRiskScansQuery';
376
+ export { listRiskScans, useListRiskScansQuery } from './hooks/useListRiskScansQuery';
355
377
  export type { ListRisksErrorResponse, ListRisksOkResponse, ListRisksProps, ListRisksQueryQueryParams, } from './hooks/useListRisksQuery';
356
378
  export { listRisks, useListRisksQuery } from './hooks/useListRisksQuery';
357
379
  export type { ListRuleErrorResponse, ListRuleOkResponse, ListRuleProps, ListRuleQueryQueryParams, } from './hooks/useListRuleQuery';
358
380
  export { listRule, useListRuleQuery } from './hooks/useListRuleQuery';
381
+ export type { ListScannedRiskOccurrencesErrorResponse, ListScannedRiskOccurrencesOkResponse, ListScannedRiskOccurrencesProps, ListScannedRiskOccurrencesQueryPathParams, ListScannedRiskOccurrencesQueryQueryParams, } from './hooks/useListScannedRiskOccurrencesQuery';
382
+ export { listScannedRiskOccurrences, useListScannedRiskOccurrencesQuery, } from './hooks/useListScannedRiskOccurrencesQuery';
383
+ export type { ListScannedRisksErrorResponse, ListScannedRisksOkResponse, ListScannedRisksProps, ListScannedRisksQueryQueryParams, } from './hooks/useListScannedRisksQuery';
384
+ export { listScannedRisks, useListScannedRisksQuery } from './hooks/useListScannedRisksQuery';
359
385
  export type { ListServiceErrorResponse, ListServiceOkResponse, ListServiceProps, ListServiceQueryPathParams, ListServiceQueryQueryParams, } from './hooks/useListServiceQuery';
360
386
  export { listService, useListServiceQuery } from './hooks/useListServiceQuery';
361
387
  export type { ListTargetNetworkMapsErrorResponse, ListTargetNetworkMapsOkResponse, ListTargetNetworkMapsProps, ListTargetNetworkMapsQueryQueryParams, ListTargetNetworkMapsRequestBody, } from './hooks/useListTargetNetworkMapsQuery';
@@ -402,6 +428,8 @@ export type { ResolveImageRegistryV3ErrorResponse, ResolveImageRegistryV3OkRespo
402
428
  export { resolveImageRegistryV3, useResolveImageRegistryV3Query, } from './hooks/useResolveImageRegistryV3Query';
403
429
  export type { RetryExperimentCreationErrorResponse, RetryExperimentCreationMutationPathParams, RetryExperimentCreationMutationProps, RetryExperimentCreationMutationQueryParams, RetryExperimentCreationOkResponse, RetryExperimentCreationProps, RetryExperimentCreationRequestBody, } from './hooks/useRetryExperimentCreationMutation';
404
430
  export { retryExperimentCreation, useRetryExperimentCreationMutation, } from './hooks/useRetryExperimentCreationMutation';
431
+ export type { RetryRiskScanErrorResponse, RetryRiskScanMutationPathParams, RetryRiskScanMutationProps, RetryRiskScanMutationQueryParams, RetryRiskScanOkResponse, RetryRiskScanProps, } from './hooks/useRetryRiskScanMutation';
432
+ export { retryRiskScan, useRetryRiskScanMutation } from './hooks/useRetryRiskScanMutation';
405
433
  export type { RunChaosComponentForMachineErrorResponse, RunChaosComponentForMachineMutationProps, RunChaosComponentForMachineMutationQueryParams, RunChaosComponentForMachineOkResponse, RunChaosComponentForMachineProps, RunChaosComponentForMachineRequestBody, } from './hooks/useRunChaosComponentForMachineMutation';
406
434
  export { runChaosComponentForMachine, useRunChaosComponentForMachineMutation, } from './hooks/useRunChaosComponentForMachineMutation';
407
435
  export type { RunChaosComponentErrorResponse, RunChaosComponentMutationProps, RunChaosComponentMutationQueryParams, RunChaosComponentOkResponse, RunChaosComponentProps, RunChaosComponentRequestBody, } from './hooks/useRunChaosComponentMutation';
@@ -424,6 +452,8 @@ export type { StopDrTestErrorResponse, StopDrTestMutationPathParams, StopDrTestM
424
452
  export { stopDrTest, useStopDrTestMutation } from './hooks/useStopDrTestMutation';
425
453
  export type { StopOnboardingExperimentsErrorResponse, StopOnboardingExperimentsMutationPathParams, StopOnboardingExperimentsMutationProps, StopOnboardingExperimentsMutationQueryParams, StopOnboardingExperimentsOkResponse, StopOnboardingExperimentsProps, } from './hooks/useStopOnboardingExperimentsMutation';
426
454
  export { stopOnboardingExperiments, useStopOnboardingExperimentsMutation, } from './hooks/useStopOnboardingExperimentsMutation';
455
+ export type { SummarizeScannedRisksByServiceErrorResponse, SummarizeScannedRisksByServiceMutationProps, SummarizeScannedRisksByServiceMutationQueryParams, SummarizeScannedRisksByServiceOkResponse, SummarizeScannedRisksByServiceProps, SummarizeScannedRisksByServiceRequestBody, } from './hooks/useSummarizeScannedRisksByServiceMutation';
456
+ export { summarizeScannedRisksByService, useSummarizeScannedRisksByServiceMutation, } from './hooks/useSummarizeScannedRisksByServiceMutation';
427
457
  export type { TestLegacyKubernetesChaosInfraConnectionErrorResponse, TestLegacyKubernetesChaosInfraConnectionOkResponse, TestLegacyKubernetesChaosInfraConnectionProps, TestLegacyKubernetesChaosInfraConnectionQueryPathParams, TestLegacyKubernetesChaosInfraConnectionQueryQueryParams, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionQuery';
428
458
  export { testLegacyKubernetesChaosInfraConnection, useTestLegacyKubernetesChaosInfraConnectionQuery, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionQuery';
429
459
  export type { UpdateActionErrorResponse, UpdateActionMutationPathParams, UpdateActionMutationProps, UpdateActionMutationQueryParams, UpdateActionOkResponse, UpdateActionProps, UpdateActionRequestBody, } from './hooks/useUpdateActionMutation';
@@ -476,6 +506,8 @@ export type { UpdateRecommendationStatusErrorResponse, UpdateRecommendationStatu
476
506
  export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
477
507
  export type { UpdateRiskErrorResponse, UpdateRiskMutationPathParams, UpdateRiskMutationProps, UpdateRiskMutationQueryParams, UpdateRiskOkResponse, UpdateRiskProps, UpdateRiskRequestBody, } from './hooks/useUpdateRiskMutation';
478
508
  export { updateRisk, useUpdateRiskMutation } from './hooks/useUpdateRiskMutation';
509
+ export type { UpdateRiskScanErrorResponse, UpdateRiskScanMutationPathParams, UpdateRiskScanMutationProps, UpdateRiskScanMutationQueryParams, UpdateRiskScanOkResponse, UpdateRiskScanProps, UpdateRiskScanRequestBody, } from './hooks/useUpdateRiskScanMutation';
510
+ export { updateRiskScan, useUpdateRiskScanMutation } from './hooks/useUpdateRiskScanMutation';
479
511
  export type { UpdateRuleErrorResponse, UpdateRuleMutationPathParams, UpdateRuleMutationProps, UpdateRuleMutationQueryParams, UpdateRuleOkResponse, UpdateRuleProps, UpdateRuleRequestBody, } from './hooks/useUpdateRuleMutation';
480
512
  export { updateRule, useUpdateRuleMutation } from './hooks/useUpdateRuleMutation';
481
513
  export type { UpgradeLegacyKubernetesChaosInfraErrorResponse, UpgradeLegacyKubernetesChaosInfraMutationPathParams, UpgradeLegacyKubernetesChaosInfraMutationProps, UpgradeLegacyKubernetesChaosInfraMutationQueryParams, UpgradeLegacyKubernetesChaosInfraOkResponse, UpgradeLegacyKubernetesChaosInfraProps, } from './hooks/useUpgradeLegacyKubernetesChaosInfraMutation';
@@ -1059,6 +1091,7 @@ export type { ModelWorkflowSortInput } from './schemas/ModelWorkflowSortInput';
1059
1091
  export type { ModelWorkflowSortingField } from './schemas/ModelWorkflowSortingField';
1060
1092
  export type { ModelWorkflowType } from './schemas/ModelWorkflowType';
1061
1093
  export type { MongodbImportType } from './schemas/MongodbImportType';
1094
+ export type { MongodbInfrastructureType } from './schemas/MongodbInfrastructureType';
1062
1095
  export type { MongodbManagedBy } from './schemas/MongodbManagedBy';
1063
1096
  export type { NetworkmapCanRetryExperimentCreationResponse } from './schemas/NetworkmapCanRetryExperimentCreationResponse';
1064
1097
  export type { NetworkmapGetTargetNetworkMapResponse } from './schemas/NetworkmapGetTargetNetworkMapResponse';
@@ -1121,6 +1154,7 @@ export type { ProbeProbeTemplateRunProperties } from './schemas/ProbeProbeTempla
1121
1154
  export type { ProbeProbeType } from './schemas/ProbeProbeType';
1122
1155
  export type { ProbePromProbe } from './schemas/ProbePromProbe';
1123
1156
  export type { ProbePromProbeTemplate } from './schemas/ProbePromProbeTemplate';
1157
+ export type { ProbeRuleDetails } from './schemas/ProbeRuleDetails';
1124
1158
  export type { ProbeSloProbe } from './schemas/ProbeSloProbe';
1125
1159
  export type { ProbeSloProbeTemplate } from './schemas/ProbeSloProbeTemplate';
1126
1160
  export type { ProbeSloSourceMetadata } from './schemas/ProbeSloSourceMetadata';
@@ -1155,6 +1189,34 @@ export type { RecommendationsListRecommendationsResponse } from './schemas/Recom
1155
1189
  export type { RecommendationsPipelineAddExperimentResponse } from './schemas/RecommendationsPipelineAddExperimentResponse';
1156
1190
  export type { RecommendationsRunActionResponse } from './schemas/RecommendationsRunActionResponse';
1157
1191
  export type { ResourceQuantity } from './schemas/ResourceQuantity';
1192
+ export type { RiskCategory } from './schemas/RiskCategory';
1193
+ export type { RiskCdService } from './schemas/RiskCdService';
1194
+ export type { RiskChaosService } from './schemas/RiskChaosService';
1195
+ export type { RiskCollectionError } from './schemas/RiskCollectionError';
1196
+ export type { RiskCollectionSummary } from './schemas/RiskCollectionSummary';
1197
+ export type { RiskDiscoveredService } from './schemas/RiskDiscoveredService';
1198
+ export type { RiskEvidenceResource } from './schemas/RiskEvidenceResource';
1199
+ export type { RiskProbeExecutionExperimentSource } from './schemas/RiskProbeExecutionExperimentSource';
1200
+ export type { RiskProbeExecutionPipelineStepSource } from './schemas/RiskProbeExecutionPipelineStepSource';
1201
+ export type { RiskProbeExecutionSource } from './schemas/RiskProbeExecutionSource';
1202
+ export type { RiskRiskDataSource } from './schemas/RiskRiskDataSource';
1203
+ export type { RiskRiskRulePrompt } from './schemas/RiskRiskRulePrompt';
1204
+ export type { RiskRiskRuleSpec } from './schemas/RiskRiskRuleSpec';
1205
+ export type { RiskRiskSummary } from './schemas/RiskRiskSummary';
1206
+ export type { RiskScan } from './schemas/RiskScan';
1207
+ export type { RiskScanResult } from './schemas/RiskScanResult';
1208
+ export type { RiskScanSource } from './schemas/RiskScanSource';
1209
+ export type { RiskScanSourcePipeline } from './schemas/RiskScanSourcePipeline';
1210
+ export type { RiskScanSourceProbeExecution } from './schemas/RiskScanSourceProbeExecution';
1211
+ export type { RiskScanSourceServiceDiscovery } from './schemas/RiskScanSourceServiceDiscovery';
1212
+ export type { RiskScanStatus } from './schemas/RiskScanStatus';
1213
+ export type { RiskScanType } from './schemas/RiskScanType';
1214
+ export type { RiskServiceDetails } from './schemas/RiskServiceDetails';
1215
+ export type { RiskSeverity } from './schemas/RiskSeverity';
1216
+ export type { RiskTargetService } from './schemas/RiskTargetService';
1217
+ export type { RiskTargetServiceType } from './schemas/RiskTargetServiceType';
1218
+ export type { RiskrulesListResponse } from './schemas/RiskrulesListResponse';
1219
+ export type { RiskrulesRiskRuleResponse } from './schemas/RiskrulesRiskRuleResponse';
1158
1220
  export type { RisksActiveExecutionResponse } from './schemas/RisksActiveExecutionResponse';
1159
1221
  export type { RisksActiveRiskCounter } from './schemas/RisksActiveRiskCounter';
1160
1222
  export type { RisksCreateRequest } from './schemas/RisksCreateRequest';
@@ -1166,6 +1228,33 @@ export type { RisksListRiskResponse } from './schemas/RisksListRiskResponse';
1166
1228
  export type { RisksRisk } from './schemas/RisksRisk';
1167
1229
  export type { RisksRiskResponse } from './schemas/RisksRiskResponse';
1168
1230
  export type { RisksUpdateRequest } from './schemas/RisksUpdateRequest';
1231
+ export type { RiskscansCreateRequest } from './schemas/RiskscansCreateRequest';
1232
+ export type { RiskscansDownloadResponse } from './schemas/RiskscansDownloadResponse';
1233
+ export type { RiskscansHeatmapCell } from './schemas/RiskscansHeatmapCell';
1234
+ export type { RiskscansHeatmapResponse } from './schemas/RiskscansHeatmapResponse';
1235
+ export type { RiskscansHeatmapRiskRule } from './schemas/RiskscansHeatmapRiskRule';
1236
+ export type { RiskscansHeatmapRow } from './schemas/RiskscansHeatmapRow';
1237
+ export type { RiskscansHeatmapSummary } from './schemas/RiskscansHeatmapSummary';
1238
+ export type { RiskscansListResponse } from './schemas/RiskscansListResponse';
1239
+ export type { RiskscansOccurrenceContext } from './schemas/RiskscansOccurrenceContext';
1240
+ export type { RiskscansOccurrenceDetails } from './schemas/RiskscansOccurrenceDetails';
1241
+ export type { RiskscansReportResponse } from './schemas/RiskscansReportResponse';
1242
+ export type { RiskscansReportSummary } from './schemas/RiskscansReportSummary';
1243
+ export type { RiskscansRiskScanResponse } from './schemas/RiskscansRiskScanResponse';
1244
+ export type { RiskscansScannedRiskWithOccurrences } from './schemas/RiskscansScannedRiskWithOccurrences';
1245
+ export type { RiskscansUpdateRequest } from './schemas/RiskscansUpdateRequest';
1246
+ export type { ScannedrisksGetResponse } from './schemas/ScannedrisksGetResponse';
1247
+ export type { ScannedrisksListResponse } from './schemas/ScannedrisksListResponse';
1248
+ export type { ScannedrisksOccurrenceDetail } from './schemas/ScannedrisksOccurrenceDetail';
1249
+ export type { ScannedrisksOccurrencesResponse } from './schemas/ScannedrisksOccurrencesResponse';
1250
+ export type { ScannedrisksRiskStat } from './schemas/ScannedrisksRiskStat';
1251
+ export type { ScannedrisksRiskStatus } from './schemas/ScannedrisksRiskStatus';
1252
+ export type { ScannedrisksScannedRisk } from './schemas/ScannedrisksScannedRisk';
1253
+ export type { ScannedrisksScannedRiskSpec } from './schemas/ScannedrisksScannedRiskSpec';
1254
+ export type { ScannedrisksServiceRiskSummary } from './schemas/ScannedrisksServiceRiskSummary';
1255
+ export type { ScannedrisksServiceRiskSummaryQuery } from './schemas/ScannedrisksServiceRiskSummaryQuery';
1256
+ export type { ScannedrisksServiceRiskSummaryResponse } from './schemas/ScannedrisksServiceRiskSummaryResponse';
1257
+ export type { ScannedrisksValidationType } from './schemas/ScannedrisksValidationType';
1169
1258
  export type { SecurityGovernanceAccessControl } from './schemas/SecurityGovernanceAccessControl';
1170
1259
  export type { SecurityGovernanceApplicationSpec } from './schemas/SecurityGovernanceApplicationSpec';
1171
1260
  export type { SecurityGovernanceChaosServiceAccountSpec } from './schemas/SecurityGovernanceChaosServiceAccountSpec';
@@ -1,5 +1,6 @@
1
1
  export { abortChaosComponentForMachine, useAbortChaosComponentForMachineMutation, } from './hooks/useAbortChaosComponentForMachineMutation';
2
2
  export { abortChaosComponent, useAbortChaosComponentMutation, } from './hooks/useAbortChaosComponentMutation';
3
+ export { abortRiskScan, useAbortRiskScanMutation } from './hooks/useAbortRiskScanMutation';
3
4
  export { addNote, useAddNoteMutation } from './hooks/useAddNoteMutation';
4
5
  export { bulkExperimentDelete, useBulkExperimentDeleteMutation, } from './hooks/useBulkExperimentDeleteMutation';
5
6
  export { bulkExperimentTagAdd, useBulkExperimentTagAddMutation, } from './hooks/useBulkExperimentTagAddMutation';
@@ -27,6 +28,7 @@ export { createProbe, useCreateProbeMutation } from './hooks/useCreateProbeMutat
27
28
  export { createProbeTemplate, useCreateProbeTemplateMutation, } from './hooks/useCreateProbeTemplateMutation';
28
29
  export { createRecommendation, useCreateRecommendationMutation, } from './hooks/useCreateRecommendationMutation';
29
30
  export { createRisk, useCreateRiskMutation } from './hooks/useCreateRiskMutation';
31
+ export { createRiskScan, useCreateRiskScanMutation } from './hooks/useCreateRiskScanMutation';
30
32
  export { createRule, useCreateRuleMutation } from './hooks/useCreateRuleMutation';
31
33
  export { createV2Onboarding, useCreateV2OnboardingMutation, } from './hooks/useCreateV2OnboardingMutation';
32
34
  export { delegateCallbackUpdate, useDelegateCallbackUpdateMutation, } from './hooks/useDelegateCallbackUpdateMutation';
@@ -50,6 +52,7 @@ export { deleteProbe, useDeleteProbeMutation } from './hooks/useDeleteProbeMutat
50
52
  export { deleteProbeTemplate, useDeleteProbeTemplateMutation, } from './hooks/useDeleteProbeTemplateMutation';
51
53
  export { deleteRecommendation, useDeleteRecommendationMutation, } from './hooks/useDeleteRecommendationMutation';
52
54
  export { deleteRisk, useDeleteRiskMutation } from './hooks/useDeleteRiskMutation';
55
+ export { deleteRiskScan, useDeleteRiskScanMutation } from './hooks/useDeleteRiskScanMutation';
53
56
  export { deleteRule, useDeleteRuleMutation } from './hooks/useDeleteRuleMutation';
54
57
  export { deleteTargetNetworkMap, useDeleteTargetNetworkMapMutation, } from './hooks/useDeleteTargetNetworkMapMutation';
55
58
  export { enableProbe, useEnableProbeMutation } from './hooks/useEnableProbeMutation';
@@ -124,7 +127,13 @@ export { getProbesInExperiment, useGetProbesInExperimentQuery, } from './hooks/u
124
127
  export { getRecommendation, useGetRecommendationQuery } from './hooks/useGetRecommendationQuery';
125
128
  export { getResourceUsage, useGetResourceUsageQuery } from './hooks/useGetResourceUsageQuery';
126
129
  export { getRisk, useGetRiskQuery } from './hooks/useGetRiskQuery';
130
+ export { getRiskRule, useGetRiskRuleQuery } from './hooks/useGetRiskRuleQuery';
131
+ export { getRiskScanHeatmap, useGetRiskScanHeatmapQuery } from './hooks/useGetRiskScanHeatmapQuery';
132
+ export { getRiskScan, useGetRiskScanQuery } from './hooks/useGetRiskScanQuery';
133
+ export { getRiskScanReportDownloadUrl, useGetRiskScanReportDownloadUrlQuery, } from './hooks/useGetRiskScanReportDownloadUrlQuery';
134
+ export { getRiskScanReport, useGetRiskScanReportQuery } from './hooks/useGetRiskScanReportQuery';
127
135
  export { getRule, useGetRuleQuery } from './hooks/useGetRuleQuery';
136
+ export { getScannedRisk, useGetScannedRiskQuery } from './hooks/useGetScannedRiskQuery';
128
137
  export { getServiceResponse, useGetServiceResponseQuery } from './hooks/useGetServiceResponseQuery';
129
138
  export { getServiceUsageReport, useGetServiceUsageReportQuery, } from './hooks/useGetServiceUsageReportQuery';
130
139
  export { getSgpTemplateByGenAi, useGetSgpTemplateByGenAiMutation, } from './hooks/useGetSgpTemplateByGenAiMutation';
@@ -175,8 +184,12 @@ export { listProbeMetadata, useListProbeMetadataQuery } from './hooks/useListPro
175
184
  export { listProbeTemplate, useListProbeTemplateQuery } from './hooks/useListProbeTemplateQuery';
176
185
  export { listProbes, useListProbesQuery } from './hooks/useListProbesQuery';
177
186
  export { listRecommendations, useListRecommendationsQuery, } from './hooks/useListRecommendationsQuery';
187
+ export { listRiskRules, useListRiskRulesQuery } from './hooks/useListRiskRulesQuery';
188
+ export { listRiskScans, useListRiskScansQuery } from './hooks/useListRiskScansQuery';
178
189
  export { listRisks, useListRisksQuery } from './hooks/useListRisksQuery';
179
190
  export { listRule, useListRuleQuery } from './hooks/useListRuleQuery';
191
+ export { listScannedRiskOccurrences, useListScannedRiskOccurrencesQuery, } from './hooks/useListScannedRiskOccurrencesQuery';
192
+ export { listScannedRisks, useListScannedRisksQuery } from './hooks/useListScannedRisksQuery';
180
193
  export { listService, useListServiceQuery } from './hooks/useListServiceQuery';
181
194
  export { listTargetNetworkMaps, useListTargetNetworkMapsQuery, } from './hooks/useListTargetNetworkMapsQuery';
182
195
  export { listV2Onboarding, useListV2OnboardingQuery } from './hooks/useListV2OnboardingQuery';
@@ -200,6 +213,7 @@ export { registerMachineInfra, useRegisterMachineInfraMutation, } from './hooks/
200
213
  export { renderTemplateForm, useRenderTemplateFormQuery } from './hooks/useRenderTemplateFormQuery';
201
214
  export { resolveImageRegistryV3, useResolveImageRegistryV3Query, } from './hooks/useResolveImageRegistryV3Query';
202
215
  export { retryExperimentCreation, useRetryExperimentCreationMutation, } from './hooks/useRetryExperimentCreationMutation';
216
+ export { retryRiskScan, useRetryRiskScanMutation } from './hooks/useRetryRiskScanMutation';
203
217
  export { runChaosComponentForMachine, useRunChaosComponentForMachineMutation, } from './hooks/useRunChaosComponentForMachineMutation';
204
218
  export { runChaosComponent, useRunChaosComponentMutation, } from './hooks/useRunChaosComponentMutation';
205
219
  export { runChaosExperimentV3, useRunChaosExperimentV3Mutation, } from './hooks/useRunChaosExperimentV3Mutation';
@@ -211,6 +225,7 @@ export { stopChaosExperimentV3, useStopChaosExperimentV3Mutation, } from './hook
211
225
  export { stopChaosV2Experiment, useStopChaosV2ExperimentMutation, } from './hooks/useStopChaosV2ExperimentMutation';
212
226
  export { stopDrTest, useStopDrTestMutation } from './hooks/useStopDrTestMutation';
213
227
  export { stopOnboardingExperiments, useStopOnboardingExperimentsMutation, } from './hooks/useStopOnboardingExperimentsMutation';
228
+ export { summarizeScannedRisksByService, useSummarizeScannedRisksByServiceMutation, } from './hooks/useSummarizeScannedRisksByServiceMutation';
214
229
  export { testLegacyKubernetesChaosInfraConnection, useTestLegacyKubernetesChaosInfraConnectionQuery, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionQuery';
215
230
  export { updateAction, useUpdateActionMutation } from './hooks/useUpdateActionMutation';
216
231
  export { updateActionTemplate, useUpdateActionTemplateMutation, } from './hooks/useUpdateActionTemplateMutation';
@@ -237,6 +252,7 @@ export { updateProbe, useUpdateProbeMutation } from './hooks/useUpdateProbeMutat
237
252
  export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
238
253
  export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
239
254
  export { updateRisk, useUpdateRiskMutation } from './hooks/useUpdateRiskMutation';
255
+ export { updateRiskScan, useUpdateRiskScanMutation } from './hooks/useUpdateRiskScanMutation';
240
256
  export { updateRule, useUpdateRuleMutation } from './hooks/useUpdateRuleMutation';
241
257
  export { upgradeLegacyKubernetesChaosInfra, useUpgradeLegacyKubernetesChaosInfraMutation, } from './hooks/useUpgradeLegacyKubernetesChaosInfraMutation';
242
258
  export { useVerifyChaosStageInPipelineRunQuery, verifyChaosStageInPipelineRun, } from './hooks/useVerifyChaosStageInPipelineRunQuery';
@@ -8,10 +8,6 @@ export interface ChaosExecutionNodesChaosExecutionNode {
8
8
  chaosData?: ChaosExecutionNodesChaosData;
9
9
  duration?: number;
10
10
  errorData?: ChaosExecutionNodesErrorData;
11
- /**
12
- * TODO: Add this back when we have a way to store the service ref in the database
13
- * ServiceRef *ServiceRef `json:"serviceRef,omitempty" bson:"service_ref,omitempty"`
14
- */
15
11
  estimatedTime?: number;
16
12
  executionOutput?: ChaosExecutionNodesExecutionOutput;
17
13
  experimentID?: string;
@@ -24,6 +20,7 @@ export interface ChaosExecutionNodesChaosExecutionNode {
24
20
  orgID?: string;
25
21
  parentUniqueId?: string;
26
22
  projectID?: string;
23
+ serviceId?: string;
27
24
  spec?: string;
28
25
  startedAt?: number;
29
26
  status?: ExecutionChaosStepStatus;
@@ -9,5 +9,6 @@ export interface ChaosExecutionNodesProbeData {
9
9
  probeType?: string;
10
10
  resiliencyScore?: number;
11
11
  risks?: string[];
12
+ serviceId?: string;
12
13
  weightage?: number;
13
14
  }
@@ -1,6 +1,7 @@
1
1
  import type { ProbeInfrastructureType } from '../schemas/ProbeInfrastructureType';
2
2
  import type { TemplateInput } from '../schemas/TemplateInput';
3
3
  import type { ProbeProbeTemplateProperties } from '../schemas/ProbeProbeTemplateProperties';
4
+ import type { ProbeRuleDetails } from '../schemas/ProbeRuleDetails';
4
5
  import type { ProbeProbeTemplateRunProperties } from '../schemas/ProbeProbeTemplateRunProperties';
5
6
  import type { ProbeProbeType } from '../schemas/ProbeProbeType';
6
7
  import type { TemplateVariable } from '../schemas/TemplateVariable';
@@ -15,6 +16,7 @@ export interface ChaosprobetemplateProbeTemplate {
15
16
  name: string;
16
17
  probeProperties?: ProbeProbeTemplateProperties;
17
18
  revision?: number;
19
+ ruleDetails?: ProbeRuleDetails;
18
20
  runProperties?: ProbeProbeTemplateRunProperties;
19
21
  tags?: string[];
20
22
  type?: ProbeProbeType;
@@ -1,4 +1,5 @@
1
1
  import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
2
+ import type { MongodbInfrastructureType } from '../schemas/MongodbInfrastructureType';
2
3
  import type { ChaosservicesServiceProbeAssociation } from '../schemas/ChaosservicesServiceProbeAssociation';
3
4
  import type { DatabaseDiscoveredServiceSpec } from '../schemas/DatabaseDiscoveredServiceSpec';
4
5
  export interface ChaosservicesChaosServiceResponse {
@@ -14,6 +15,7 @@ export interface ChaosservicesChaosServiceResponse {
14
15
  externalServiceId?: string;
15
16
  identity?: string;
16
17
  infrastructureId?: string;
18
+ infrastructureType?: MongodbInfrastructureType;
17
19
  isRemoved: boolean;
18
20
  name: string;
19
21
  namespace?: string;
@@ -1,3 +1,4 @@
1
+ import type { MongodbInfrastructureType } from '../schemas/MongodbInfrastructureType';
1
2
  import type { ChaosservicesServiceProbeAssociation } from '../schemas/ChaosservicesServiceProbeAssociation';
2
3
  export interface ChaosservicesCreateRequest {
3
4
  agentId?: string;
@@ -6,6 +7,7 @@ export interface ChaosservicesCreateRequest {
6
7
  externalServiceId?: string;
7
8
  identity?: string;
8
9
  infrastructureId?: string;
10
+ infrastructureType?: MongodbInfrastructureType;
9
11
  name?: string;
10
12
  onboardingId?: string;
11
13
  probes?: ChaosservicesServiceProbeAssociation[];
@@ -44,6 +44,10 @@ export interface ExperimentProbeRef {
44
44
  * Revision of the fault reference
45
45
  */
46
46
  revision?: number;
47
+ /**
48
+ * ServiceID to store the service identity
49
+ */
50
+ serviceId?: string;
47
51
  /**
48
52
  * Values to store the inputs
49
53
  */
@@ -2,6 +2,7 @@ import type { GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails } from '
2
2
  import type { ProbeInfrastructureType } from '../schemas/ProbeInfrastructureType';
3
3
  import type { TemplateInput } from '../schemas/TemplateInput';
4
4
  import type { ProbeProbeTemplateProperties } from '../schemas/ProbeProbeTemplateProperties';
5
+ import type { ProbeRuleDetails } from '../schemas/ProbeRuleDetails';
5
6
  import type { ProbeProbeTemplateRunProperties } from '../schemas/ProbeProbeTemplateRunProperties';
6
7
  import type { ProbeProbeType } from '../schemas/ProbeProbeType';
7
8
  import type { TemplateVariable } from '../schemas/TemplateVariable';
@@ -36,6 +37,7 @@ export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprob
36
37
  * it increments every time a new version of fault is published
37
38
  */
38
39
  revision?: number;
40
+ ruleDetails?: ProbeRuleDetails;
39
41
  runProperties?: ProbeProbeTemplateRunProperties;
40
42
  tags?: string[];
41
43
  template?: string;
@@ -2,5 +2,6 @@ export interface ImageRegistryCustomImagesRequest {
2
2
  ddcr?: string;
3
3
  ddcrFault?: string;
4
4
  ddcrLib?: string;
5
+ loadTestRunner?: string;
5
6
  logWatcher?: string;
6
7
  }
@@ -0,0 +1 @@
1
+ export type MongodbInfrastructureType = 'CloudFoundry' | 'Container' | 'Kubernetes' | 'KubernetesV2' | 'Linux' | 'Windows';
@@ -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 ProbeRuleDetails {
2
+ isEnterprise?: boolean;
3
+ ruleIdentity?: 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 @@
1
+ export type RiskCategory = 'Availability' | 'Config' | 'Dependency' | 'Performance' | 'Resilience';
@@ -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 {};