@harnessio/react-chaos-manager-client 1.66.1 → 1.67.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 (184) 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/useGetChaosComponentVariableInternalQuery.d.ts +29 -0
  8. package/dist/chaos-manager/src/services/hooks/useGetChaosComponentVariableInternalQuery.js +14 -0
  9. package/dist/chaos-manager/src/services/hooks/useGetRiskRuleQuery.d.ts +28 -0
  10. package/dist/chaos-manager/src/services/hooks/useGetRiskRuleQuery.js +14 -0
  11. package/dist/chaos-manager/src/services/hooks/useGetRiskScanHeatmapQuery.d.ts +37 -0
  12. package/dist/chaos-manager/src/services/hooks/useGetRiskScanHeatmapQuery.js +14 -0
  13. package/dist/chaos-manager/src/services/hooks/useGetRiskScanQuery.d.ts +28 -0
  14. package/dist/chaos-manager/src/services/hooks/useGetRiskScanQuery.js +14 -0
  15. package/dist/chaos-manager/src/services/hooks/useGetRiskScanReportDownloadUrlQuery.d.ts +28 -0
  16. package/dist/chaos-manager/src/services/hooks/useGetRiskScanReportDownloadUrlQuery.js +14 -0
  17. package/dist/chaos-manager/src/services/hooks/useGetRiskScanReportQuery.d.ts +28 -0
  18. package/dist/chaos-manager/src/services/hooks/useGetRiskScanReportQuery.js +14 -0
  19. package/dist/chaos-manager/src/services/hooks/useGetScannedRiskQuery.d.ts +28 -0
  20. package/dist/chaos-manager/src/services/hooks/useGetScannedRiskQuery.js +14 -0
  21. package/dist/chaos-manager/src/services/hooks/useListChaosServicesQuery.d.ts +1 -0
  22. package/dist/chaos-manager/src/services/hooks/useListRiskRulesQuery.d.ts +40 -0
  23. package/dist/chaos-manager/src/services/hooks/useListRiskRulesQuery.js +14 -0
  24. package/dist/chaos-manager/src/services/hooks/useListRiskScansQuery.d.ts +44 -0
  25. package/dist/chaos-manager/src/services/hooks/useListRiskScansQuery.js +14 -0
  26. package/dist/chaos-manager/src/services/hooks/useListRisksQuery.d.ts +1 -1
  27. package/dist/chaos-manager/src/services/hooks/useListScannedRiskOccurrencesQuery.d.ts +42 -0
  28. package/dist/chaos-manager/src/services/hooks/useListScannedRiskOccurrencesQuery.js +14 -0
  29. package/dist/chaos-manager/src/services/hooks/useListScannedRisksQuery.d.ts +46 -0
  30. package/dist/chaos-manager/src/services/hooks/useListScannedRisksQuery.js +14 -0
  31. package/dist/chaos-manager/src/services/hooks/useRetryRiskScanMutation.d.ts +30 -0
  32. package/dist/chaos-manager/src/services/hooks/useRetryRiskScanMutation.js +14 -0
  33. package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.d.ts +29 -0
  34. package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.js +14 -0
  35. package/dist/chaos-manager/src/services/hooks/useUpdateRiskScanMutation.d.ts +33 -0
  36. package/dist/chaos-manager/src/services/hooks/useUpdateRiskScanMutation.js +14 -0
  37. package/dist/chaos-manager/src/services/index.d.ts +86 -0
  38. package/dist/chaos-manager/src/services/index.js +17 -0
  39. package/dist/chaos-manager/src/services/schemas/ActionActionTemplateRunProperties.d.ts +2 -2
  40. package/dist/chaos-manager/src/services/schemas/Chaoshubv2ChaosHubResponse.d.ts +1 -0
  41. package/dist/chaos-manager/src/services/schemas/Chaoshubv2GetHubResponse.d.ts +1 -0
  42. package/dist/chaos-manager/src/services/schemas/ExecutionExecutionOutputResponse.d.ts +1 -1
  43. package/dist/chaos-manager/src/services/schemas/ExperimentProbeRef.d.ts +4 -0
  44. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppdMetrics.d.ts +1 -1
  45. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogApmProbeInputs.d.ts +1 -1
  46. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDynatraceApmProbeInputs.d.ts +1 -1
  47. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeSplunkEnterpriseProbeInputs.d.ts +1 -1
  48. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeSplunkObservabilityMetrics.d.ts +1 -1
  49. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppdMetrics.d.ts +1 -1
  50. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogApmProbeInputs.d.ts +1 -1
  51. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDynatraceApmProbeInputs.d.ts +1 -1
  52. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkEnterpriseProbeInputs.d.ts +1 -1
  53. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeSplunkObservabilityMetrics.d.ts +1 -1
  54. package/dist/chaos-manager/src/services/schemas/ModelInput.d.ts +2 -2
  55. package/dist/chaos-manager/src/services/schemas/PipelinesCreatePipelineResponse.d.ts +1 -1
  56. package/dist/chaos-manager/src/services/schemas/ProbeApmProbe.d.ts +3 -3
  57. package/dist/chaos-manager/src/services/schemas/ProbeCmdProbeTemplate.d.ts +1 -1
  58. package/dist/chaos-manager/src/services/schemas/ProbeContainerProbe.d.ts +3 -3
  59. package/dist/chaos-manager/src/services/schemas/ProbeDatadogProbe.d.ts +3 -3
  60. package/dist/chaos-manager/src/services/schemas/ProbeDynatraceProbe.d.ts +3 -3
  61. package/dist/chaos-manager/src/services/schemas/ProbeEvaluationWindow.d.ts +2 -2
  62. package/dist/chaos-manager/src/services/schemas/ProbeEvaluationWindowTemplate.d.ts +2 -2
  63. package/dist/chaos-manager/src/services/schemas/ProbeHttpProbe.d.ts +3 -3
  64. package/dist/chaos-manager/src/services/schemas/ProbeK8SProbe.d.ts +3 -3
  65. package/dist/chaos-manager/src/services/schemas/ProbeKubernetesCmdProbe.d.ts +4 -4
  66. package/dist/chaos-manager/src/services/schemas/ProbeLinuxCmdProbe.d.ts +4 -4
  67. package/dist/chaos-manager/src/services/schemas/ProbeProbeTemplateRunProperties.d.ts +2 -2
  68. package/dist/chaos-manager/src/services/schemas/ProbePromProbe.d.ts +3 -3
  69. package/dist/chaos-manager/src/services/schemas/ProbeSloProbe.d.ts +3 -3
  70. package/dist/chaos-manager/src/services/schemas/ProbeTlsConfigSm.d.ts +1 -1
  71. package/dist/chaos-manager/src/services/schemas/ProbeWindowsCmdProbe.d.ts +3 -3
  72. package/dist/chaos-manager/src/services/schemas/RiskCategory.d.ts +1 -0
  73. package/dist/chaos-manager/src/services/schemas/RiskCategory.js +4 -0
  74. package/dist/chaos-manager/src/services/schemas/RiskCdService.d.ts +5 -0
  75. package/dist/chaos-manager/src/services/schemas/RiskCdService.js +4 -0
  76. package/dist/chaos-manager/src/services/schemas/RiskChaosService.d.ts +4 -0
  77. package/dist/chaos-manager/src/services/schemas/RiskChaosService.js +4 -0
  78. package/dist/chaos-manager/src/services/schemas/RiskCollectionError.d.ts +4 -0
  79. package/dist/chaos-manager/src/services/schemas/RiskCollectionError.js +4 -0
  80. package/dist/chaos-manager/src/services/schemas/RiskCollectionSummary.d.ts +12 -0
  81. package/dist/chaos-manager/src/services/schemas/RiskCollectionSummary.js +1 -0
  82. package/dist/chaos-manager/src/services/schemas/RiskDiscoveredService.d.ts +7 -0
  83. package/dist/chaos-manager/src/services/schemas/RiskDiscoveredService.js +4 -0
  84. package/dist/chaos-manager/src/services/schemas/RiskEvidenceResource.d.ts +6 -0
  85. package/dist/chaos-manager/src/services/schemas/RiskEvidenceResource.js +4 -0
  86. package/dist/chaos-manager/src/services/schemas/RiskRiskDataSource.d.ts +1 -0
  87. package/dist/chaos-manager/src/services/schemas/RiskRiskDataSource.js +4 -0
  88. package/dist/chaos-manager/src/services/schemas/RiskRiskRulePrompt.d.ts +5 -0
  89. package/dist/chaos-manager/src/services/schemas/RiskRiskRulePrompt.js +4 -0
  90. package/dist/chaos-manager/src/services/schemas/RiskRiskRuleSpec.d.ts +7 -0
  91. package/dist/chaos-manager/src/services/schemas/RiskRiskRuleSpec.js +1 -0
  92. package/dist/chaos-manager/src/services/schemas/RiskRiskSummary.d.ts +14 -0
  93. package/dist/chaos-manager/src/services/schemas/RiskRiskSummary.js +4 -0
  94. package/dist/chaos-manager/src/services/schemas/RiskScan.d.ts +40 -0
  95. package/dist/chaos-manager/src/services/schemas/RiskScan.js +1 -0
  96. package/dist/chaos-manager/src/services/schemas/RiskScanResult.d.ts +1 -0
  97. package/dist/chaos-manager/src/services/schemas/RiskScanResult.js +4 -0
  98. package/dist/chaos-manager/src/services/schemas/RiskScanSource.d.ts +6 -0
  99. package/dist/chaos-manager/src/services/schemas/RiskScanSource.js +1 -0
  100. package/dist/chaos-manager/src/services/schemas/RiskScanSourcePipeline.d.ts +4 -0
  101. package/dist/chaos-manager/src/services/schemas/RiskScanSourcePipeline.js +4 -0
  102. package/dist/chaos-manager/src/services/schemas/RiskScanSourceServiceDiscovery.d.ts +5 -0
  103. package/dist/chaos-manager/src/services/schemas/RiskScanSourceServiceDiscovery.js +4 -0
  104. package/dist/chaos-manager/src/services/schemas/RiskScanStatus.d.ts +1 -0
  105. package/dist/chaos-manager/src/services/schemas/RiskScanStatus.js +4 -0
  106. package/dist/chaos-manager/src/services/schemas/RiskScanType.d.ts +1 -0
  107. package/dist/chaos-manager/src/services/schemas/RiskScanType.js +4 -0
  108. package/dist/chaos-manager/src/services/schemas/RiskServiceDetails.d.ts +8 -0
  109. package/dist/chaos-manager/src/services/schemas/RiskServiceDetails.js +1 -0
  110. package/dist/chaos-manager/src/services/schemas/RiskSeverity.d.ts +1 -0
  111. package/dist/chaos-manager/src/services/schemas/RiskSeverity.js +4 -0
  112. package/dist/chaos-manager/src/services/schemas/RiskTargetService.d.ts +12 -0
  113. package/dist/chaos-manager/src/services/schemas/RiskTargetService.js +1 -0
  114. package/dist/chaos-manager/src/services/schemas/RiskTargetServiceType.d.ts +1 -0
  115. package/dist/chaos-manager/src/services/schemas/RiskTargetServiceType.js +4 -0
  116. package/dist/chaos-manager/src/services/schemas/RiskrulesListResponse.d.ts +7 -0
  117. package/dist/chaos-manager/src/services/schemas/RiskrulesListResponse.js +1 -0
  118. package/dist/chaos-manager/src/services/schemas/RiskrulesRiskRuleResponse.d.ts +20 -0
  119. package/dist/chaos-manager/src/services/schemas/RiskrulesRiskRuleResponse.js +1 -0
  120. package/dist/chaos-manager/src/services/schemas/RisksCreateRequest.d.ts +2 -1
  121. package/dist/chaos-manager/src/services/schemas/RisksRisk.d.ts +2 -1
  122. package/dist/chaos-manager/src/services/schemas/RisksRiskResponse.d.ts +2 -1
  123. package/dist/chaos-manager/src/services/schemas/RiskscansCreateRequest.d.ts +10 -0
  124. package/dist/chaos-manager/src/services/schemas/RiskscansCreateRequest.js +1 -0
  125. package/dist/chaos-manager/src/services/schemas/RiskscansDownloadResponse.d.ts +5 -0
  126. package/dist/chaos-manager/src/services/schemas/RiskscansDownloadResponse.js +4 -0
  127. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapCell.d.ts +7 -0
  128. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapCell.js +4 -0
  129. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapResponse.d.ts +10 -0
  130. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapResponse.js +1 -0
  131. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapRiskRule.d.ts +5 -0
  132. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapRiskRule.js +4 -0
  133. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapRow.d.ts +7 -0
  134. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapRow.js +1 -0
  135. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapSummary.d.ts +11 -0
  136. package/dist/chaos-manager/src/services/schemas/RiskscansHeatmapSummary.js +4 -0
  137. package/dist/chaos-manager/src/services/schemas/RiskscansListResponse.d.ts +7 -0
  138. package/dist/chaos-manager/src/services/schemas/RiskscansListResponse.js +1 -0
  139. package/dist/chaos-manager/src/services/schemas/RiskscansOccurrenceContext.d.ts +5 -0
  140. package/dist/chaos-manager/src/services/schemas/RiskscansOccurrenceContext.js +4 -0
  141. package/dist/chaos-manager/src/services/schemas/RiskscansOccurrenceDetails.d.ts +13 -0
  142. package/dist/chaos-manager/src/services/schemas/RiskscansOccurrenceDetails.js +1 -0
  143. package/dist/chaos-manager/src/services/schemas/RiskscansReportResponse.d.ts +8 -0
  144. package/dist/chaos-manager/src/services/schemas/RiskscansReportResponse.js +1 -0
  145. package/dist/chaos-manager/src/services/schemas/RiskscansReportSummary.d.ts +10 -0
  146. package/dist/chaos-manager/src/services/schemas/RiskscansReportSummary.js +4 -0
  147. package/dist/chaos-manager/src/services/schemas/RiskscansRiskScanResponse.d.ts +40 -0
  148. package/dist/chaos-manager/src/services/schemas/RiskscansRiskScanResponse.js +1 -0
  149. package/dist/chaos-manager/src/services/schemas/RiskscansScannedRiskWithOccurrences.d.ts +14 -0
  150. package/dist/chaos-manager/src/services/schemas/RiskscansScannedRiskWithOccurrences.js +1 -0
  151. package/dist/chaos-manager/src/services/schemas/RiskscansUpdateRequest.d.ts +5 -0
  152. package/dist/chaos-manager/src/services/schemas/RiskscansUpdateRequest.js +4 -0
  153. package/dist/chaos-manager/src/services/schemas/ScannedrisksGetResponse.d.ts +4 -0
  154. package/dist/chaos-manager/src/services/schemas/ScannedrisksGetResponse.js +1 -0
  155. package/dist/chaos-manager/src/services/schemas/ScannedrisksListResponse.d.ts +7 -0
  156. package/dist/chaos-manager/src/services/schemas/ScannedrisksListResponse.js +1 -0
  157. package/dist/chaos-manager/src/services/schemas/ScannedrisksOccurrenceDetail.d.ts +13 -0
  158. package/dist/chaos-manager/src/services/schemas/ScannedrisksOccurrenceDetail.js +1 -0
  159. package/dist/chaos-manager/src/services/schemas/ScannedrisksOccurrencesResponse.d.ts +7 -0
  160. package/dist/chaos-manager/src/services/schemas/ScannedrisksOccurrencesResponse.js +1 -0
  161. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStat.d.ts +7 -0
  162. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStat.js +4 -0
  163. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatus.d.ts +1 -0
  164. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatus.js +4 -0
  165. package/dist/chaos-manager/src/services/schemas/ScannedrisksScannedRisk.d.ts +13 -0
  166. package/dist/chaos-manager/src/services/schemas/ScannedrisksScannedRisk.js +1 -0
  167. package/dist/chaos-manager/src/services/schemas/ScannedrisksScannedRiskSpec.d.ts +19 -0
  168. package/dist/chaos-manager/src/services/schemas/ScannedrisksScannedRiskSpec.js +1 -0
  169. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummary.d.ts +10 -0
  170. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummary.js +1 -0
  171. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryQuery.d.ts +65 -0
  172. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryQuery.js +4 -0
  173. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryResponse.d.ts +15 -0
  174. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryResponse.js +1 -0
  175. package/dist/chaos-manager/src/services/schemas/ScannedrisksValidationType.d.ts +1 -0
  176. package/dist/chaos-manager/src/services/schemas/ScannedrisksValidationType.js +4 -0
  177. package/dist/chaos-manager/src/services/schemas/TemplateInput.d.ts +3 -3
  178. package/dist/chaos-manager/src/services/schemas/TemplateInputMinimum.d.ts +1 -1
  179. package/dist/chaos-manager/src/services/schemas/TemplateVariable.d.ts +1 -1
  180. package/dist/chaos-manager/src/services/schemas/V2OnboardingManualMethod.d.ts +1 -0
  181. package/dist/chaos-manager/src/services/schemas/V2OnboardingManualMethod.js +4 -0
  182. package/dist/chaos-manager/src/services/schemas/V2OnboardingV2Onboarding.d.ts +2 -0
  183. package/dist/chaos-manager/src/services/schemas/V2OnboardingV2OnboardingRequest.d.ts +2 -0
  184. 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,29 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaoscomponentsGetChaosComponentVariableResponse } from '../schemas/ChaoscomponentsGetChaosComponentVariableResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetChaosComponentVariableInternalQueryQueryParams {
6
+ accountIdentifier: string;
7
+ correlationID?: string;
8
+ hubReference?: string;
9
+ identifier?: string;
10
+ kind?: 'resource' | 'template';
11
+ organizationIdentifier?: string;
12
+ parentUniqueId?: string;
13
+ projectIdentifier?: string;
14
+ type?: 'Action' | 'Fault' | 'Probe';
15
+ }
16
+ export type GetChaosComponentVariableInternalOkResponse = ChaoscomponentsGetChaosComponentVariableResponse;
17
+ export type GetChaosComponentVariableInternalErrorResponse = ApiRestError;
18
+ export interface GetChaosComponentVariableInternalProps extends Omit<FetcherOptions<GetChaosComponentVariableInternalQueryQueryParams, unknown>, 'url'> {
19
+ queryParams: GetChaosComponentVariableInternalQueryQueryParams;
20
+ }
21
+ export interface GetChaosComponentVariableInternalResponseContainer {
22
+ body: GetChaosComponentVariableInternalOkResponse;
23
+ headers: Headers;
24
+ }
25
+ export declare function getChaosComponentVariableInternal(props: GetChaosComponentVariableInternalProps): Promise<GetChaosComponentVariableInternalResponseContainer>;
26
+ /**
27
+ * Gets chaos component variables (faults, probes, actions) for internal service-to-service calls
28
+ */
29
+ export declare function useGetChaosComponentVariableInternalQuery(props: GetChaosComponentVariableInternalProps, options?: Omit<UseQueryOptions<GetChaosComponentVariableInternalResponseContainer, GetChaosComponentVariableInternalErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetChaosComponentVariableInternalResponseContainer, 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 getChaosComponentVariableInternal(props) {
7
+ return fetcher(Object.assign({ url: `/internalv3/integrations/get-chaos-component-variable`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Gets chaos component variables (faults, probes, actions) for internal service-to-service calls
11
+ */
12
+ export function useGetChaosComponentVariableInternalQuery(props, options) {
13
+ return useQuery(['getChaosComponentVariableInternal', props.queryParams], ({ signal }) => getChaosComponentVariableInternal(Object.assign(Object.assign({}, props), { signal })), 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
+ }
@@ -19,6 +19,7 @@ export interface ListChaosServicesQueryQueryParams {
19
19
  */
20
20
  page?: number;
21
21
  parentUniqueId?: string;
22
+ probeIds?: string;
22
23
  projectIdentifier?: string;
23
24
  search?: string;
24
25
  sortAscending?: boolean;
@@ -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?: string;
7
+ category?: 'Availability' | 'Config' | 'Dependency' | 'Performance' | 'Resilience';
8
8
  correlationID?: string;
9
9
  includeAllScope?: boolean;
10
10
  infrastructure?: 'CloudFoundry' | 'Container' | 'Kubernetes' | 'KubernetesV2' | 'Linux' | 'Windows';