@harnessio/react-chaos-manager-client 0.8.0 → 0.10.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 (326) hide show
  1. package/dist/chaos-manager/src/services/hooks/useCreateActionMutation.d.ts +26 -0
  2. package/dist/chaos-manager/src/services/hooks/useCreateActionMutation.js +14 -0
  3. package/dist/chaos-manager/src/services/hooks/useCreateActionTemplateMutation.d.ts +27 -0
  4. package/dist/chaos-manager/src/services/hooks/useCreateActionTemplateMutation.js +14 -0
  5. package/dist/chaos-manager/src/services/hooks/useCreateChaosExperimentExecutionNodeMutation.d.ts +24 -0
  6. package/dist/chaos-manager/src/services/hooks/useCreateChaosExperimentExecutionNodeMutation.js +14 -0
  7. package/dist/chaos-manager/src/services/hooks/useCreateChaosHubMutation.d.ts +30 -0
  8. package/dist/chaos-manager/src/services/hooks/useCreateChaosHubMutation.js +14 -0
  9. package/dist/chaos-manager/src/services/hooks/useDeleteActionMutation.d.ts +26 -0
  10. package/dist/chaos-manager/src/services/hooks/useDeleteActionMutation.js +14 -0
  11. package/dist/chaos-manager/src/services/hooks/useExperimentExecutionNodeDetailsQuery.d.ts +28 -0
  12. package/dist/chaos-manager/src/services/hooks/useExperimentExecutionNodeDetailsQuery.js +20 -0
  13. package/dist/chaos-manager/src/services/hooks/useGetActionManifestQuery.d.ts +25 -0
  14. package/dist/chaos-manager/src/services/hooks/useGetActionManifestQuery.js +14 -0
  15. package/dist/chaos-manager/src/services/hooks/useGetActionQuery.d.ts +26 -0
  16. package/dist/chaos-manager/src/services/hooks/useGetActionQuery.js +14 -0
  17. package/dist/chaos-manager/src/services/hooks/useGetActionTemplateQuery.d.ts +28 -0
  18. package/dist/chaos-manager/src/services/hooks/useGetActionTemplateQuery.js +14 -0
  19. package/dist/chaos-manager/src/services/hooks/useGetActionTemplateRevisionDifferenceQuery.d.ts +29 -0
  20. package/dist/chaos-manager/src/services/hooks/useGetActionTemplateRevisionDifferenceQuery.js +14 -0
  21. package/dist/chaos-manager/src/services/hooks/useGetChaosHubQuery.d.ts +26 -0
  22. package/dist/chaos-manager/src/services/hooks/useGetChaosHubQuery.js +14 -0
  23. package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineExecutionQuery.d.ts +27 -0
  24. package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineExecutionQuery.js +14 -0
  25. package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineStepDetailsQuery.d.ts +28 -0
  26. package/dist/chaos-manager/src/services/hooks/useGetChaosPipelineStepDetailsQuery.js +20 -0
  27. package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentRunInternalApiMutation.d.ts +31 -0
  28. package/dist/chaos-manager/src/services/hooks/useGetChaosV2ExperimentRunInternalApiMutation.js +14 -0
  29. package/dist/chaos-manager/src/services/hooks/useGetExperimentRunTimelineViewQuery.d.ts +28 -0
  30. package/dist/chaos-manager/src/services/hooks/useGetExperimentRunTimelineViewQuery.js +14 -0
  31. package/dist/chaos-manager/src/services/hooks/useGetInfraTokenQuery.d.ts +27 -0
  32. package/dist/chaos-manager/src/services/hooks/useGetInfraTokenQuery.js +14 -0
  33. package/dist/chaos-manager/src/services/hooks/useImportActionMutation.d.ts +27 -0
  34. package/dist/chaos-manager/src/services/hooks/useImportActionMutation.js +14 -0
  35. package/dist/chaos-manager/src/services/hooks/useListActionTemplateQuery.d.ts +36 -0
  36. package/dist/chaos-manager/src/services/hooks/useListActionTemplateQuery.js +14 -0
  37. package/dist/chaos-manager/src/services/hooks/useListActionTemplateRevisionsQuery.d.ts +35 -0
  38. package/dist/chaos-manager/src/services/hooks/useListActionTemplateRevisionsQuery.js +14 -0
  39. package/dist/chaos-manager/src/services/hooks/useListActionsQuery.d.ts +36 -0
  40. package/dist/chaos-manager/src/services/hooks/useListActionsQuery.js +14 -0
  41. package/dist/chaos-manager/src/services/hooks/useListApplicationQuery.d.ts +27 -0
  42. package/dist/chaos-manager/src/services/hooks/useListApplicationQuery.js +14 -0
  43. package/dist/chaos-manager/src/services/hooks/useListChaosHubQuery.d.ts +33 -0
  44. package/dist/chaos-manager/src/services/hooks/useListChaosHubQuery.js +14 -0
  45. package/dist/chaos-manager/src/services/hooks/useListFunctionQuery.d.ts +28 -0
  46. package/dist/chaos-manager/src/services/hooks/useListFunctionQuery.js +14 -0
  47. package/dist/chaos-manager/src/services/hooks/useListVariablesInActionTemplateQuery.d.ts +28 -0
  48. package/dist/chaos-manager/src/services/hooks/useListVariablesInActionTemplateQuery.js +14 -0
  49. package/dist/chaos-manager/src/services/hooks/useRunChaosV2InternalApiMutation.d.ts +30 -0
  50. package/dist/chaos-manager/src/services/hooks/useRunChaosV2InternalApiMutation.js +14 -0
  51. package/dist/chaos-manager/src/services/hooks/useUpdateActionMutation.d.ts +30 -0
  52. package/dist/chaos-manager/src/services/hooks/useUpdateActionMutation.js +14 -0
  53. package/dist/chaos-manager/src/services/hooks/useUpdateActionTemplateMutation.d.ts +31 -0
  54. package/dist/chaos-manager/src/services/hooks/useUpdateActionTemplateMutation.js +14 -0
  55. package/dist/chaos-manager/src/services/hooks/useUpdateChaosExperimentExecutionNodeMutation.d.ts +29 -0
  56. package/dist/chaos-manager/src/services/hooks/useUpdateChaosExperimentExecutionNodeMutation.js +14 -0
  57. package/dist/chaos-manager/src/services/hooks/useUpdateChaosHubMutation.d.ts +30 -0
  58. package/dist/chaos-manager/src/services/hooks/useUpdateChaosHubMutation.js +14 -0
  59. package/dist/chaos-manager/src/services/hooks/useUpdateEmissaryMutation.d.ts +31 -0
  60. package/dist/chaos-manager/src/services/hooks/useUpdateEmissaryMutation.js +14 -0
  61. package/dist/chaos-manager/src/services/index.d.ts +185 -0
  62. package/dist/chaos-manager/src/services/index.js +30 -0
  63. package/dist/chaos-manager/src/services/requestBodies/ChaosfaulttemplateActionTemplateRequestBody.d.ts +2 -0
  64. package/dist/chaos-manager/src/services/requestBodies/ChaosfaulttemplateActionTemplateRequestBody.js +1 -0
  65. package/dist/chaos-manager/src/services/schemas/ActionsActionDetails.d.ts +7 -0
  66. package/dist/chaos-manager/src/services/schemas/ActionsActionDetails.js +1 -0
  67. package/dist/chaos-manager/src/services/schemas/ActionsActionResponse.d.ts +29 -0
  68. package/dist/chaos-manager/src/services/schemas/ActionsActionResponse.js +1 -0
  69. package/dist/chaos-manager/src/services/schemas/ActionsActionRunProperties.d.ts +8 -0
  70. package/dist/chaos-manager/src/services/schemas/ActionsActionRunProperties.js +4 -0
  71. package/dist/chaos-manager/src/services/schemas/ActionsActionType.d.ts +1 -0
  72. package/dist/chaos-manager/src/services/schemas/ActionsActionType.js +4 -0
  73. package/dist/chaos-manager/src/services/schemas/ActionsExecutedByExperiment.d.ts +9 -0
  74. package/dist/chaos-manager/src/services/schemas/ActionsExecutedByExperiment.js +1 -0
  75. package/dist/chaos-manager/src/services/schemas/ActionsImportActionTemplateRequest.d.ts +11 -0
  76. package/dist/chaos-manager/src/services/schemas/ActionsImportActionTemplateRequest.js +4 -0
  77. package/dist/chaos-manager/src/services/schemas/ActionsInfrastructureType.d.ts +1 -0
  78. package/dist/chaos-manager/src/services/schemas/ActionsInfrastructureType.js +4 -0
  79. package/dist/chaos-manager/src/services/schemas/ActionsListActionTemplateResponse.d.ts +6 -0
  80. package/dist/chaos-manager/src/services/schemas/ActionsListActionTemplateResponse.js +1 -0
  81. package/dist/chaos-manager/src/services/schemas/ActionsRecentExecutions.d.ts +6 -0
  82. package/dist/chaos-manager/src/services/schemas/ActionsRecentExecutions.js +1 -0
  83. package/dist/chaos-manager/src/services/schemas/ApplicationchaostargetListApplicationResponse.d.ts +3 -0
  84. package/dist/chaos-manager/src/services/schemas/ApplicationchaostargetListApplicationResponse.js +4 -0
  85. package/dist/chaos-manager/src/services/schemas/ApplicationchaostargetListFunctionResponse.d.ts +3 -0
  86. package/dist/chaos-manager/src/services/schemas/ApplicationchaostargetListFunctionResponse.js +4 -0
  87. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesActionData.d.ts +3 -0
  88. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesActionData.js +4 -0
  89. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosData.d.ts +8 -0
  90. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosData.js +1 -0
  91. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionNode.d.ts +23 -0
  92. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionNode.js +1 -0
  93. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionResponse.d.ts +23 -0
  94. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosExecutionResponse.js +1 -0
  95. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosStepStatus.d.ts +1 -0
  96. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosStepStatus.js +4 -0
  97. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosStepType.d.ts +1 -0
  98. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesChaosStepType.js +4 -0
  99. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesCommandProbe.d.ts +3 -0
  100. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesCommandProbe.js +4 -0
  101. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesErrorData.d.ts +4 -0
  102. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesErrorData.js +4 -0
  103. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesFaultData.d.ts +8 -0
  104. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesFaultData.js +1 -0
  105. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesHelperPodDetails.d.ts +4 -0
  106. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesHelperPodDetails.js +4 -0
  107. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesHttpProbe.d.ts +5 -0
  108. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesHttpProbe.js +4 -0
  109. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesProbeData.d.ts +12 -0
  110. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesProbeData.js +1 -0
  111. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesProbeIterations.d.ts +11 -0
  112. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesProbeIterations.js +1 -0
  113. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesPromProbe.d.ts +3 -0
  114. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesPromProbe.js +4 -0
  115. package/dist/chaos-manager/src/services/schemas/ChaosExperimentChaosExperimentRequest.d.ts +3 -3
  116. package/dist/chaos-manager/src/services/schemas/ChaosExperimentExperimentRunDetail.d.ts +1 -1
  117. package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunChaosExperimentRun.d.ts +2 -2
  118. package/dist/chaos-manager/src/services/schemas/ChaosHubAuthType.d.ts +1 -0
  119. package/dist/chaos-manager/src/services/schemas/ChaosHubAuthType.js +4 -0
  120. package/dist/chaos-manager/src/services/schemas/ChaosHubConnectorScope.d.ts +1 -0
  121. package/dist/chaos-manager/src/services/schemas/ChaosHubConnectorScope.js +4 -0
  122. package/dist/chaos-manager/src/services/schemas/ChaosHubStatus.d.ts +1 -0
  123. package/dist/chaos-manager/src/services/schemas/ChaosHubStatus.js +4 -0
  124. package/dist/chaos-manager/src/services/schemas/ChaosInfrastructureV2ChaosInfraV2.d.ts +4 -3
  125. package/dist/chaos-manager/src/services/schemas/ChaosInfrastructureV2K8sInfraV2SpecIdentifiers.d.ts +1 -1
  126. package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateActionProperties.d.ts +7 -0
  127. package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateActionProperties.js +1 -0
  128. package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateActionsTemplateCount.d.ts +5 -0
  129. package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateActionsTemplateCount.js +1 -0
  130. package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateChaosActionTemplate.d.ts +44 -0
  131. package/dist/chaos-manager/src/services/schemas/ChaosactiontemplateChaosActionTemplate.js +1 -0
  132. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateActionTemplate.d.ts +16 -0
  133. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateActionTemplate.js +1 -0
  134. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateActionTemplateVariables.d.ts +6 -0
  135. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateActionTemplateVariables.js +1 -0
  136. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateGetActionTemplateResponse.d.ts +5 -0
  137. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateGetActionTemplateResponse.js +1 -0
  138. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateListActionTemplateResponse.d.ts +9 -0
  139. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateListActionTemplateResponse.js +1 -0
  140. package/dist/chaos-manager/src/services/schemas/Chaoshubv2ChaosHubResponse.d.ts +44 -0
  141. package/dist/chaos-manager/src/services/schemas/Chaoshubv2ChaosHubResponse.js +1 -0
  142. package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.d.ts +9 -0
  143. package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.js +4 -0
  144. package/dist/chaos-manager/src/services/schemas/Chaoshubv2GetHubResponse.d.ts +44 -0
  145. package/dist/chaos-manager/src/services/schemas/Chaoshubv2GetHubResponse.js +1 -0
  146. package/dist/chaos-manager/src/services/schemas/Chaoshubv2ListHubResponse.d.ts +6 -0
  147. package/dist/chaos-manager/src/services/schemas/Chaoshubv2ListHubResponse.js +1 -0
  148. package/dist/chaos-manager/src/services/schemas/Chaoshubv2UpdateHubRequest.d.ts +5 -0
  149. package/dist/chaos-manager/src/services/schemas/Chaoshubv2UpdateHubRequest.js +4 -0
  150. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction.d.ts +18 -0
  151. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction.js +1 -0
  152. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction.d.ts +24 -0
  153. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction.js +1 -0
  154. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosfaulttemplateChaosFaultTemplate.d.ts +1 -1
  155. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonKubernetesV2ModelChaosData.d.ts +8 -0
  156. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonKubernetesV2ModelChaosData.js +1 -0
  157. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe.d.ts +66 -0
  158. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe.js +1 -0
  159. package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareDdcrPkgTypesChaosInputs.d.ts +49 -0
  160. package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareDdcrPkgTypesChaosInputs.js +1 -0
  161. package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareDdcrPkgTypesDefinition.d.ts +12 -0
  162. package/dist/chaos-manager/src/services/schemas/GithubComWingsSoftwareDdcrPkgTypesDefinition.js +1 -0
  163. package/dist/chaos-manager/src/services/schemas/InputsetInputSet.d.ts +1 -1
  164. package/dist/chaos-manager/src/services/schemas/K8sinfraGetInfraTokenResponse.d.ts +3 -0
  165. package/dist/chaos-manager/src/services/schemas/K8sinfraGetInfraTokenResponse.js +4 -0
  166. package/dist/chaos-manager/src/services/schemas/K8sinfraUpdateEmissaryUrlRequest.d.ts +3 -0
  167. package/dist/chaos-manager/src/services/schemas/K8sinfraUpdateEmissaryUrlRequest.js +4 -0
  168. package/dist/chaos-manager/src/services/schemas/K8sinfraUpdateEmissaryUrlResponse.d.ts +3 -0
  169. package/dist/chaos-manager/src/services/schemas/K8sinfraUpdateEmissaryUrlResponse.js +4 -0
  170. package/dist/chaos-manager/src/services/schemas/ModelActionData.d.ts +3 -0
  171. package/dist/chaos-manager/src/services/schemas/ModelActionData.js +4 -0
  172. package/dist/chaos-manager/src/services/schemas/ModelChaosExecutionNode.d.ts +19 -0
  173. package/dist/chaos-manager/src/services/schemas/ModelChaosExecutionNode.js +1 -0
  174. package/dist/chaos-manager/src/services/schemas/ModelChaosStepStatus.d.ts +1 -0
  175. package/dist/chaos-manager/src/services/schemas/ModelChaosStepStatus.js +4 -0
  176. package/dist/chaos-manager/src/services/schemas/ModelChaosStepType.d.ts +1 -0
  177. package/dist/chaos-manager/src/services/schemas/ModelChaosStepType.js +4 -0
  178. package/dist/chaos-manager/src/services/schemas/ModelCommandProbe.d.ts +3 -0
  179. package/dist/chaos-manager/src/services/schemas/ModelCommandProbe.js +4 -0
  180. package/dist/chaos-manager/src/services/schemas/ModelConditionDetails.d.ts +7 -0
  181. package/dist/chaos-manager/src/services/schemas/ModelConditionDetails.js +1 -0
  182. package/dist/chaos-manager/src/services/schemas/ModelErrorData.d.ts +4 -0
  183. package/dist/chaos-manager/src/services/schemas/ModelErrorData.js +4 -0
  184. package/dist/chaos-manager/src/services/schemas/ModelFaultData.d.ts +10 -0
  185. package/dist/chaos-manager/src/services/schemas/ModelFaultData.js +1 -0
  186. package/dist/chaos-manager/src/services/schemas/ModelHelperPodDetails.d.ts +4 -0
  187. package/dist/chaos-manager/src/services/schemas/ModelHelperPodDetails.js +4 -0
  188. package/dist/chaos-manager/src/services/schemas/ModelHttpProbe.d.ts +5 -0
  189. package/dist/chaos-manager/src/services/schemas/ModelHttpProbe.js +4 -0
  190. package/dist/chaos-manager/src/services/schemas/ModelInfrastructure.d.ts +87 -0
  191. package/dist/chaos-manager/src/services/schemas/ModelInfrastructure.js +1 -0
  192. package/dist/chaos-manager/src/services/schemas/ModelProbeData.d.ts +8 -0
  193. package/dist/chaos-manager/src/services/schemas/ModelProbeData.js +1 -0
  194. package/dist/chaos-manager/src/services/schemas/ModelProbeIterations.d.ts +11 -0
  195. package/dist/chaos-manager/src/services/schemas/ModelProbeIterations.js +1 -0
  196. package/dist/chaos-manager/src/services/schemas/ModelProbeMap.d.ts +4 -0
  197. package/dist/chaos-manager/src/services/schemas/ModelProbeMap.js +4 -0
  198. package/dist/chaos-manager/src/services/schemas/ModelPromProbe.d.ts +3 -0
  199. package/dist/chaos-manager/src/services/schemas/ModelPromProbe.js +4 -0
  200. package/dist/chaos-manager/src/services/schemas/ModelRecurrence.d.ts +6 -0
  201. package/dist/chaos-manager/src/services/schemas/ModelRecurrence.js +1 -0
  202. package/dist/chaos-manager/src/services/schemas/ModelRecurrenceSpec.d.ts +4 -0
  203. package/dist/chaos-manager/src/services/schemas/ModelRecurrenceSpec.js +4 -0
  204. package/dist/chaos-manager/src/services/schemas/ModelRecurrenceType.d.ts +1 -0
  205. package/dist/chaos-manager/src/services/schemas/ModelRecurrenceType.js +4 -0
  206. package/dist/chaos-manager/src/services/schemas/ModelRuleDetails.d.ts +11 -0
  207. package/dist/chaos-manager/src/services/schemas/ModelRuleDetails.js +1 -0
  208. package/dist/chaos-manager/src/services/schemas/ModelSecurityGovernance.d.ts +11 -0
  209. package/dist/chaos-manager/src/services/schemas/ModelSecurityGovernance.js +1 -0
  210. package/dist/chaos-manager/src/services/schemas/ModelSecurityGovernanceNodeData.d.ts +6 -0
  211. package/dist/chaos-manager/src/services/schemas/ModelSecurityGovernanceNodeData.js +1 -0
  212. package/dist/chaos-manager/src/services/schemas/ModelSecurityGovernancePhase.d.ts +1 -0
  213. package/dist/chaos-manager/src/services/schemas/ModelSecurityGovernancePhase.js +4 -0
  214. package/dist/chaos-manager/src/services/schemas/ModelTimeWindow.d.ts +8 -0
  215. package/dist/chaos-manager/src/services/schemas/ModelTimeWindow.js +1 -0
  216. package/dist/chaos-manager/src/services/schemas/ModelWeightages.d.ts +10 -0
  217. package/dist/chaos-manager/src/services/schemas/ModelWeightages.js +4 -0
  218. package/dist/chaos-manager/src/services/schemas/ModelWorkflowRun.d.ts +141 -0
  219. package/dist/chaos-manager/src/services/schemas/ModelWorkflowRun.js +1 -0
  220. package/dist/chaos-manager/src/services/schemas/NetworkmapGetTargetNetworkMapResponse.d.ts +2 -2
  221. package/dist/chaos-manager/src/services/schemas/TargetnetworkmapExperimentRunDetail.d.ts +1 -1
  222. package/dist/chaos-manager/src/services/schemas/TargetnetworkmapTargetNetworkMap.d.ts +2 -2
  223. package/dist/chaos-manager/src/services/schemas/TargetserviceTargetService.d.ts +2 -2
  224. package/dist/chaos-manager/src/services/schemas/TemplateVariable.d.ts +2 -1
  225. package/dist/chaos-manager/src/services/schemas/TypesConfigMap.d.ts +14 -0
  226. package/dist/chaos-manager/src/services/schemas/TypesConfigMap.js +4 -0
  227. package/dist/chaos-manager/src/services/schemas/TypesExperimentComponents.d.ts +66 -0
  228. package/dist/chaos-manager/src/services/schemas/TypesExperimentComponents.js +1 -0
  229. package/dist/chaos-manager/src/services/schemas/TypesFault.d.ts +21 -0
  230. package/dist/chaos-manager/src/services/schemas/TypesFault.js +1 -0
  231. package/dist/chaos-manager/src/services/schemas/TypesFaultRef.d.ts +14 -0
  232. package/dist/chaos-manager/src/services/schemas/TypesFaultRef.js +4 -0
  233. package/dist/chaos-manager/src/services/schemas/TypesHostFile.d.ts +19 -0
  234. package/dist/chaos-manager/src/services/schemas/TypesHostFile.js +1 -0
  235. package/dist/chaos-manager/src/services/schemas/TypesInternalExperimentRunRequest.d.ts +8 -0
  236. package/dist/chaos-manager/src/services/schemas/TypesInternalExperimentRunRequest.js +1 -0
  237. package/dist/chaos-manager/src/services/schemas/TypesProjectedVolumes.d.ts +19 -0
  238. package/dist/chaos-manager/src/services/schemas/TypesProjectedVolumes.js +1 -0
  239. package/dist/chaos-manager/src/services/schemas/TypesSecret.d.ts +14 -0
  240. package/dist/chaos-manager/src/services/schemas/TypesSecret.js +4 -0
  241. package/dist/chaos-manager/src/services/schemas/TypesSecurityContext.d.ts +12 -0
  242. package/dist/chaos-manager/src/services/schemas/TypesSecurityContext.js +1 -0
  243. package/dist/chaos-manager/src/services/schemas/TypesSelector.d.ts +7 -0
  244. package/dist/chaos-manager/src/services/schemas/TypesSelector.js +1 -0
  245. package/dist/chaos-manager/src/services/schemas/TypesSidecar.d.ts +26 -0
  246. package/dist/chaos-manager/src/services/schemas/TypesSidecar.js +1 -0
  247. package/dist/chaos-manager/src/services/schemas/TypesStatusCheckTimeout.d.ts +10 -0
  248. package/dist/chaos-manager/src/services/schemas/TypesStatusCheckTimeout.js +4 -0
  249. package/dist/chaos-manager/src/services/schemas/TypesTargets.d.ts +7 -0
  250. package/dist/chaos-manager/src/services/schemas/TypesTargets.js +1 -0
  251. package/dist/chaos-manager/src/services/schemas/TypesWorkload.d.ts +19 -0
  252. package/dist/chaos-manager/src/services/schemas/TypesWorkload.js +1 -0
  253. package/dist/chaos-manager/src/services/schemas/TypesWorkloadKind.d.ts +1 -0
  254. package/dist/chaos-manager/src/services/schemas/TypesWorkloadKind.js +4 -0
  255. package/dist/chaos-manager/src/services/schemas/V1Authorization.d.ts +5 -0
  256. package/dist/chaos-manager/src/services/schemas/V1Authorization.js +4 -0
  257. package/dist/chaos-manager/src/services/schemas/V1Capabilities.d.ts +12 -0
  258. package/dist/chaos-manager/src/services/schemas/V1Capabilities.js +4 -0
  259. package/dist/chaos-manager/src/services/schemas/V1CmdProbeInputs.d.ts +17 -0
  260. package/dist/chaos-manager/src/services/schemas/V1CmdProbeInputs.js +1 -0
  261. package/dist/chaos-manager/src/services/schemas/V1ComparatorInfo.d.ts +17 -0
  262. package/dist/chaos-manager/src/services/schemas/V1ComparatorInfo.js +4 -0
  263. package/dist/chaos-manager/src/services/schemas/V1ConfigMapEnvSource.d.ts +14 -0
  264. package/dist/chaos-manager/src/services/schemas/V1ConfigMapEnvSource.js +4 -0
  265. package/dist/chaos-manager/src/services/schemas/V1DatadogMetrics.d.ts +15 -0
  266. package/dist/chaos-manager/src/services/schemas/V1DatadogMetrics.js +1 -0
  267. package/dist/chaos-manager/src/services/schemas/V1DatadogProbeInputs.d.ts +20 -0
  268. package/dist/chaos-manager/src/services/schemas/V1DatadogProbeInputs.js +1 -0
  269. package/dist/chaos-manager/src/services/schemas/V1DatadogSyntheticsTestType.d.ts +1 -0
  270. package/dist/chaos-manager/src/services/schemas/V1DatadogSyntheticsTestType.js +4 -0
  271. package/dist/chaos-manager/src/services/schemas/V1DynatraceProbeInputs.d.ts +24 -0
  272. package/dist/chaos-manager/src/services/schemas/V1DynatraceProbeInputs.js +1 -0
  273. package/dist/chaos-manager/src/services/schemas/V1EnvFromSource.d.ts +19 -0
  274. package/dist/chaos-manager/src/services/schemas/V1EnvFromSource.js +1 -0
  275. package/dist/chaos-manager/src/services/schemas/V1GetMethod.d.ts +15 -0
  276. package/dist/chaos-manager/src/services/schemas/V1GetMethod.js +4 -0
  277. package/dist/chaos-manager/src/services/schemas/V1HttpMethod.d.ts +6 -0
  278. package/dist/chaos-manager/src/services/schemas/V1HttpMethod.js +1 -0
  279. package/dist/chaos-manager/src/services/schemas/V1HttpProbeInputs.d.ts +31 -0
  280. package/dist/chaos-manager/src/services/schemas/V1HttpProbeInputs.js +1 -0
  281. package/dist/chaos-manager/src/services/schemas/V1K8sProbeInputs.d.ts +40 -0
  282. package/dist/chaos-manager/src/services/schemas/V1K8sProbeInputs.js +4 -0
  283. package/dist/chaos-manager/src/services/schemas/V1Metrics.d.ts +10 -0
  284. package/dist/chaos-manager/src/services/schemas/V1Metrics.js +4 -0
  285. package/dist/chaos-manager/src/services/schemas/V1NewrelicMetrics.d.ts +19 -0
  286. package/dist/chaos-manager/src/services/schemas/V1NewrelicMetrics.js +1 -0
  287. package/dist/chaos-manager/src/services/schemas/V1NewrelicProbeInputs.d.ts +19 -0
  288. package/dist/chaos-manager/src/services/schemas/V1NewrelicProbeInputs.js +1 -0
  289. package/dist/chaos-manager/src/services/schemas/V1PodFsGroupChangePolicy.d.ts +1 -0
  290. package/dist/chaos-manager/src/services/schemas/V1PodFsGroupChangePolicy.js +4 -0
  291. package/dist/chaos-manager/src/services/schemas/V1PodSecurityContext.d.ts +92 -0
  292. package/dist/chaos-manager/src/services/schemas/V1PodSecurityContext.js +1 -0
  293. package/dist/chaos-manager/src/services/schemas/V1PostMethod.d.ts +27 -0
  294. package/dist/chaos-manager/src/services/schemas/V1PostMethod.js +4 -0
  295. package/dist/chaos-manager/src/services/schemas/V1ProcMountType.d.ts +1 -0
  296. package/dist/chaos-manager/src/services/schemas/V1ProcMountType.js +4 -0
  297. package/dist/chaos-manager/src/services/schemas/V1PromProbeInputs.d.ts +29 -0
  298. package/dist/chaos-manager/src/services/schemas/V1PromProbeInputs.js +1 -0
  299. package/dist/chaos-manager/src/services/schemas/V1RunProperty.d.ts +42 -0
  300. package/dist/chaos-manager/src/services/schemas/V1RunProperty.js +4 -0
  301. package/dist/chaos-manager/src/services/schemas/V1SeLinuxOptions.d.ts +22 -0
  302. package/dist/chaos-manager/src/services/schemas/V1SeLinuxOptions.js +4 -0
  303. package/dist/chaos-manager/src/services/schemas/V1SeccompProfile.d.ts +21 -0
  304. package/dist/chaos-manager/src/services/schemas/V1SeccompProfile.js +1 -0
  305. package/dist/chaos-manager/src/services/schemas/V1SeccompProfileType.d.ts +1 -0
  306. package/dist/chaos-manager/src/services/schemas/V1SeccompProfileType.js +4 -0
  307. package/dist/chaos-manager/src/services/schemas/V1SecretEnvSource.d.ts +14 -0
  308. package/dist/chaos-manager/src/services/schemas/V1SecretEnvSource.js +4 -0
  309. package/dist/chaos-manager/src/services/schemas/V1SecurityContext.d.ts +92 -0
  310. package/dist/chaos-manager/src/services/schemas/V1SecurityContext.js +1 -0
  311. package/dist/chaos-manager/src/services/schemas/V1SloProbeInputs.d.ts +34 -0
  312. package/dist/chaos-manager/src/services/schemas/V1SloProbeInputs.js +1 -0
  313. package/dist/chaos-manager/src/services/schemas/V1SyntheticsTest.d.ts +11 -0
  314. package/dist/chaos-manager/src/services/schemas/V1SyntheticsTest.js +1 -0
  315. package/dist/chaos-manager/src/services/schemas/V1Sysctl.d.ts +10 -0
  316. package/dist/chaos-manager/src/services/schemas/V1Sysctl.js +4 -0
  317. package/dist/chaos-manager/src/services/schemas/V1TlsConfig.d.ts +22 -0
  318. package/dist/chaos-manager/src/services/schemas/V1TlsConfig.js +4 -0
  319. package/dist/chaos-manager/src/services/schemas/V1WindowsSecurityContextOptions.d.ts +22 -0
  320. package/dist/chaos-manager/src/services/schemas/V1WindowsSecurityContextOptions.js +4 -0
  321. package/dist/chaos-manager/src/services/schemas/V1alpha1TargetDetails.d.ts +5 -0
  322. package/dist/chaos-manager/src/services/schemas/V1alpha1TargetDetails.js +4 -0
  323. package/dist/chaos-manager/src/services/schemas/V1alpha1Targets.d.ts +8 -0
  324. package/dist/chaos-manager/src/services/schemas/V1alpha1Targets.js +4 -0
  325. package/dist/chaos-manager/src/services/schemas/V2OnboardingV2Onboarding.d.ts +2 -2
  326. package/package.json +1 -1
@@ -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 getChaosV2ExperimentRunInternalApi(props) {
7
+ return fetcher(Object.assign({ url: `/internal/v2/experiments/${props.experimentId}/run/${props.notifyId}`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Get the execution details of a chaos v2 experiment
11
+ */
12
+ export function useGetChaosV2ExperimentRunInternalApiMutation(props, options) {
13
+ return useMutation((mutateProps) => getChaosV2ExperimentRunInternalApi(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaosExecutionNodesChaosExecutionResponse } from '../schemas/ChaosExecutionNodesChaosExecutionResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetExperimentRunTimelineViewQueryPathParams {
6
+ experimentId: string;
7
+ }
8
+ export interface GetExperimentRunTimelineViewQueryQueryParams {
9
+ accountIdentifier: string;
10
+ organizationIdentifier: string;
11
+ projectIdentifier: string;
12
+ experimentRunId?: string;
13
+ notifyId?: string;
14
+ }
15
+ export type GetExperimentRunTimelineViewOkResponse = ChaosExecutionNodesChaosExecutionResponse;
16
+ export type GetExperimentRunTimelineViewErrorResponse = ApiRestError;
17
+ export interface GetExperimentRunTimelineViewProps extends GetExperimentRunTimelineViewQueryPathParams, Omit<FetcherOptions<GetExperimentRunTimelineViewQueryQueryParams, unknown>, 'url'> {
18
+ queryParams: GetExperimentRunTimelineViewQueryQueryParams;
19
+ }
20
+ export interface GetExperimentRunTimelineViewResponseContainer {
21
+ body: GetExperimentRunTimelineViewOkResponse;
22
+ headers: Headers;
23
+ }
24
+ export declare function getExperimentRunTimelineView(props: GetExperimentRunTimelineViewProps): Promise<GetExperimentRunTimelineViewResponseContainer>;
25
+ /**
26
+ * Get a chaos v2 experiment timeline run
27
+ */
28
+ export declare function useGetExperimentRunTimelineViewQuery(props: GetExperimentRunTimelineViewProps, options?: Omit<UseQueryOptions<GetExperimentRunTimelineViewResponseContainer, GetExperimentRunTimelineViewErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExperimentRunTimelineViewResponseContainer, 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 getExperimentRunTimelineView(props) {
7
+ return fetcher(Object.assign({ url: `/rest/v2/experiments/timeline/run/${props.experimentId}`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get a chaos v2 experiment timeline run
11
+ */
12
+ export function useGetExperimentRunTimelineViewQuery(props, options) {
13
+ return useQuery(['getExperimentRunTimelineView', props.experimentId, props.queryParams], ({ signal }) => getExperimentRunTimelineView(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,27 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { K8sinfraGetInfraTokenResponse } from '../schemas/K8sinfraGetInfraTokenResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetInfraTokenQueryPathParams {
6
+ infrastructureIdentity: string;
7
+ }
8
+ export interface GetInfraTokenQueryQueryParams {
9
+ accountIdentifier: string;
10
+ organizationIdentifier: string;
11
+ projectIdentifier: string;
12
+ environmentIdentifier: string;
13
+ }
14
+ export type GetInfraTokenOkResponse = K8sinfraGetInfraTokenResponse;
15
+ export type GetInfraTokenErrorResponse = ApiRestError;
16
+ export interface GetInfraTokenProps extends GetInfraTokenQueryPathParams, Omit<FetcherOptions<GetInfraTokenQueryQueryParams, unknown>, 'url'> {
17
+ queryParams: GetInfraTokenQueryQueryParams;
18
+ }
19
+ export interface GetInfraTokenResponseContainer {
20
+ body: GetInfraTokenOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function getInfraToken(props: GetInfraTokenProps): Promise<GetInfraTokenResponseContainer>;
24
+ /**
25
+ * Get a v2 infra token
26
+ */
27
+ export declare function useGetInfraTokenQuery(props: GetInfraTokenProps, options?: Omit<UseQueryOptions<GetInfraTokenResponseContainer, GetInfraTokenErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetInfraTokenResponseContainer, 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 getInfraToken(props) {
7
+ return fetcher(Object.assign({ url: `/rest/v2/infrastructures/${props.infrastructureIdentity}/token`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get a v2 infra token
11
+ */
12
+ export function useGetInfraTokenQuery(props, options) {
13
+ return useQuery(['getInfraToken', props.infrastructureIdentity, props.queryParams], ({ signal }) => getInfraToken(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,27 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { ActionsImportActionTemplateRequest } from '../schemas/ActionsImportActionTemplateRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface ImportActionMutationQueryParams {
7
+ accountIdentifier: string;
8
+ organizationIdentifier: string;
9
+ projectIdentifier: string;
10
+ }
11
+ export type ImportActionRequestBody = ActionsImportActionTemplateRequest;
12
+ export type ImportActionOkResponse = GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction;
13
+ export type ImportActionErrorResponse = ApiRestError;
14
+ export interface ImportActionProps extends Omit<FetcherOptions<ImportActionMutationQueryParams, ImportActionRequestBody>, 'url'> {
15
+ queryParams: ImportActionMutationQueryParams;
16
+ body: ImportActionRequestBody;
17
+ }
18
+ export interface ImportActionResponseContainer {
19
+ body: ImportActionOkResponse;
20
+ headers: Headers;
21
+ }
22
+ export declare function importAction(props: ImportActionProps): Promise<ImportActionResponseContainer>;
23
+ export type ImportActionMutationProps<T extends keyof ImportActionProps> = Omit<ImportActionProps, T> & Partial<Pick<ImportActionProps, T>>;
24
+ /**
25
+ * Import a new action
26
+ */
27
+ export declare function useImportActionMutation<T extends keyof ImportActionProps>(props: Pick<Partial<ImportActionProps>, T>, options?: Omit<UseMutationOptions<ImportActionResponseContainer, ImportActionErrorResponse, ImportActionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportActionResponseContainer, ApiRestError, ImportActionMutationProps<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 importAction(props) {
7
+ return fetcher(Object.assign({ url: `/rest/actions/import`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Import a new action
11
+ */
12
+ export function useImportActionMutation(props, options) {
13
+ return useMutation((mutateProps) => importAction(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,36 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaosfaulttemplateListActionTemplateResponse } from '../schemas/ChaosfaulttemplateListActionTemplateResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListActionTemplateQueryQueryParams {
6
+ accountIdentifier: string;
7
+ organizationIdentifier: string;
8
+ projectIdentifier: string;
9
+ hubIdentity: string;
10
+ /**
11
+ * @default 0
12
+ */
13
+ page: number;
14
+ /**
15
+ * @default 15
16
+ */
17
+ limit: number;
18
+ search: string;
19
+ infraType?: string;
20
+ actionType?: string;
21
+ includeallscope?: string;
22
+ }
23
+ export type ListActionTemplateOkResponse = ChaosfaulttemplateListActionTemplateResponse;
24
+ export type ListActionTemplateErrorResponse = ApiRestError;
25
+ export interface ListActionTemplateProps extends Omit<FetcherOptions<ListActionTemplateQueryQueryParams, unknown>, 'url'> {
26
+ queryParams: ListActionTemplateQueryQueryParams;
27
+ }
28
+ export interface ListActionTemplateResponseContainer {
29
+ body: ListActionTemplateOkResponse;
30
+ headers: Headers;
31
+ }
32
+ export declare function listActionTemplate(props: ListActionTemplateProps): Promise<ListActionTemplateResponseContainer>;
33
+ /**
34
+ * Lists all the action templates in a hub based on tag
35
+ */
36
+ export declare function useListActionTemplateQuery(props: ListActionTemplateProps, options?: Omit<UseQueryOptions<ListActionTemplateResponseContainer, ListActionTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListActionTemplateResponseContainer, 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 listActionTemplate(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/actions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists all the action templates in a hub based on tag
11
+ */
12
+ export function useListActionTemplateQuery(props, options) {
13
+ return useQuery(['listActionTemplate', props.queryParams], ({ signal }) => listActionTemplate(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,35 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaosfaulttemplateListActionTemplateResponse } from '../schemas/ChaosfaulttemplateListActionTemplateResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListActionTemplateRevisionsQueryPathParams {
6
+ identity: string;
7
+ }
8
+ export interface ListActionTemplateRevisionsQueryQueryParams {
9
+ accountIdentifier: string;
10
+ organizationIdentifier: string;
11
+ projectIdentifier: string;
12
+ hubIdentity: string;
13
+ /**
14
+ * @default 0
15
+ */
16
+ page: number;
17
+ /**
18
+ * @default 15
19
+ */
20
+ limit: number;
21
+ }
22
+ export type ListActionTemplateRevisionsOkResponse = ChaosfaulttemplateListActionTemplateResponse;
23
+ export type ListActionTemplateRevisionsErrorResponse = ApiRestError;
24
+ export interface ListActionTemplateRevisionsProps extends ListActionTemplateRevisionsQueryPathParams, Omit<FetcherOptions<ListActionTemplateRevisionsQueryQueryParams, unknown>, 'url'> {
25
+ queryParams: ListActionTemplateRevisionsQueryQueryParams;
26
+ }
27
+ export interface ListActionTemplateRevisionsResponseContainer {
28
+ body: ListActionTemplateRevisionsOkResponse;
29
+ headers: Headers;
30
+ }
31
+ export declare function listActionTemplateRevisions(props: ListActionTemplateRevisionsProps): Promise<ListActionTemplateRevisionsResponseContainer>;
32
+ /**
33
+ * Lists all the revision of a fault template in a hub
34
+ */
35
+ export declare function useListActionTemplateRevisionsQuery(props: ListActionTemplateRevisionsProps, options?: Omit<UseQueryOptions<ListActionTemplateRevisionsResponseContainer, ListActionTemplateRevisionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListActionTemplateRevisionsResponseContainer, 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 listActionTemplateRevisions(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/actions/${props.identity}/revisions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists all the revision of a fault template in a hub
11
+ */
12
+ export function useListActionTemplateRevisionsQuery(props, options) {
13
+ return useQuery(['listActionTemplateRevisions', props.identity, props.queryParams], ({ signal }) => listActionTemplateRevisions(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,36 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ActionsListActionTemplateResponse } from '../schemas/ActionsListActionTemplateResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListActionsQueryQueryParams {
6
+ accountIdentifier: string;
7
+ organizationIdentifier: string;
8
+ projectIdentifier: string;
9
+ hubIdentity?: string;
10
+ search: string;
11
+ /**
12
+ * @default 0
13
+ */
14
+ page: number;
15
+ /**
16
+ * @default 15
17
+ */
18
+ limit: number;
19
+ infraType?: string;
20
+ actionType?: string;
21
+ includeallscope?: string;
22
+ }
23
+ export type ListActionsOkResponse = ActionsListActionTemplateResponse;
24
+ export type ListActionsErrorResponse = ApiRestError;
25
+ export interface ListActionsProps extends Omit<FetcherOptions<ListActionsQueryQueryParams, unknown>, 'url'> {
26
+ queryParams: ListActionsQueryQueryParams;
27
+ }
28
+ export interface ListActionsResponseContainer {
29
+ body: ListActionsOkResponse;
30
+ headers: Headers;
31
+ }
32
+ export declare function listActions(props: ListActionsProps): Promise<ListActionsResponseContainer>;
33
+ /**
34
+ * Retrieve a list of actions based on various filters like name, tags, date range, and infrastructure type, with pagination support.
35
+ */
36
+ export declare function useListActionsQuery(props: ListActionsProps, options?: Omit<UseQueryOptions<ListActionsResponseContainer, ListActionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListActionsResponseContainer, 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 listActions(props) {
7
+ return fetcher(Object.assign({ url: `/rest/actions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Retrieve a list of actions based on various filters like name, tags, date range, and infrastructure type, with pagination support.
11
+ */
12
+ export function useListActionsQuery(props, options) {
13
+ return useQuery(['listActions', props.queryParams], ({ signal }) => listActions(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,27 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ApplicationchaostargetListApplicationResponse } from '../schemas/ApplicationchaostargetListApplicationResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListApplicationQueryPathParams {
6
+ infrastructureIdentity: string;
7
+ }
8
+ export interface ListApplicationQueryQueryParams {
9
+ accountIdentifier: string;
10
+ organizationIdentifier: string;
11
+ projectIdentifier: string;
12
+ environmentIdentifier: string;
13
+ }
14
+ export type ListApplicationOkResponse = ApplicationchaostargetListApplicationResponse;
15
+ export type ListApplicationErrorResponse = ApiRestError;
16
+ export interface ListApplicationProps extends ListApplicationQueryPathParams, Omit<FetcherOptions<ListApplicationQueryQueryParams, unknown>, 'url'> {
17
+ queryParams: ListApplicationQueryQueryParams;
18
+ }
19
+ export interface ListApplicationResponseContainer {
20
+ body: ListApplicationOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function listApplication(props: ListApplicationProps): Promise<ListApplicationResponseContainer>;
24
+ /**
25
+ * List all applications for a given infra
26
+ */
27
+ export declare function useListApplicationQuery(props: ListApplicationProps, options?: Omit<UseQueryOptions<ListApplicationResponseContainer, ListApplicationErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListApplicationResponseContainer, 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 listApplication(props) {
7
+ return fetcher(Object.assign({ url: `/rest/v2/infrastructures/${props.infrastructureIdentity}/applications`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List all applications for a given infra
11
+ */
12
+ export function useListApplicationQuery(props, options) {
13
+ return useQuery(['listApplication', props.infrastructureIdentity, props.queryParams], ({ signal }) => listApplication(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,33 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { Chaoshubv2ListHubResponse } from '../schemas/Chaoshubv2ListHubResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListChaosHubQueryQueryParams {
6
+ accountIdentifier: string;
7
+ organizationIdentifier: string;
8
+ projectIdentifier: string;
9
+ search: string;
10
+ includeallscope: boolean;
11
+ /**
12
+ * @default 0
13
+ */
14
+ page: number;
15
+ /**
16
+ * @default 15
17
+ */
18
+ limit: number;
19
+ }
20
+ export type ListChaosHubOkResponse = Chaoshubv2ListHubResponse;
21
+ export type ListChaosHubErrorResponse = ApiRestError;
22
+ export interface ListChaosHubProps extends Omit<FetcherOptions<ListChaosHubQueryQueryParams, unknown>, 'url'> {
23
+ queryParams: ListChaosHubQueryQueryParams;
24
+ }
25
+ export interface ListChaosHubResponseContainer {
26
+ body: ListChaosHubOkResponse;
27
+ headers: Headers;
28
+ }
29
+ export declare function listChaosHub(props: ListChaosHubProps): Promise<ListChaosHubResponseContainer>;
30
+ /**
31
+ * Lists chaos hubs based on given filters
32
+ */
33
+ export declare function useListChaosHubQuery(props: ListChaosHubProps, options?: Omit<UseQueryOptions<ListChaosHubResponseContainer, ListChaosHubErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListChaosHubResponseContainer, 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 listChaosHub(props) {
7
+ return fetcher(Object.assign({ url: `/rest/hubs`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists chaos hubs based on given filters
11
+ */
12
+ export function useListChaosHubQuery(props, options) {
13
+ return useQuery(['listChaosHub', props.queryParams], ({ signal }) => listChaosHub(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ApplicationchaostargetListFunctionResponse } from '../schemas/ApplicationchaostargetListFunctionResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListFunctionQueryPathParams {
6
+ infrastructureIdentity: string;
7
+ applicationIdentity: string;
8
+ }
9
+ export interface ListFunctionQueryQueryParams {
10
+ accountIdentifier: string;
11
+ organizationIdentifier: string;
12
+ projectIdentifier: string;
13
+ environmentIdentifier: string;
14
+ }
15
+ export type ListFunctionOkResponse = ApplicationchaostargetListFunctionResponse;
16
+ export type ListFunctionErrorResponse = ApiRestError;
17
+ export interface ListFunctionProps extends ListFunctionQueryPathParams, Omit<FetcherOptions<ListFunctionQueryQueryParams, unknown>, 'url'> {
18
+ queryParams: ListFunctionQueryQueryParams;
19
+ }
20
+ export interface ListFunctionResponseContainer {
21
+ body: ListFunctionOkResponse;
22
+ headers: Headers;
23
+ }
24
+ export declare function listFunction(props: ListFunctionProps): Promise<ListFunctionResponseContainer>;
25
+ /**
26
+ * List instrumented functions for given application
27
+ */
28
+ export declare function useListFunctionQuery(props: ListFunctionProps, options?: Omit<UseQueryOptions<ListFunctionResponseContainer, ListFunctionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFunctionResponseContainer, 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 listFunction(props) {
7
+ return fetcher(Object.assign({ url: `/rest/v2/infrastructures/${props.infrastructureIdentity}/applications/${props.applicationIdentity}/functions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * List instrumented functions for given application
11
+ */
12
+ export function useListFunctionQuery(props, options) {
13
+ return useQuery(['listFunction', props.infrastructureIdentity, props.applicationIdentity, props.queryParams], ({ signal }) => listFunction(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaosfaulttemplateActionTemplateVariables } from '../schemas/ChaosfaulttemplateActionTemplateVariables';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListVariablesInActionTemplateQueryPathParams {
6
+ identity: string;
7
+ }
8
+ export interface ListVariablesInActionTemplateQueryQueryParams {
9
+ accountIdentifier: string;
10
+ organizationIdentifier: string;
11
+ projectIdentifier: string;
12
+ hubIdentity: string;
13
+ revision: string;
14
+ }
15
+ export type ListVariablesInActionTemplateOkResponse = ChaosfaulttemplateActionTemplateVariables;
16
+ export type ListVariablesInActionTemplateErrorResponse = ApiRestError;
17
+ export interface ListVariablesInActionTemplateProps extends ListVariablesInActionTemplateQueryPathParams, Omit<FetcherOptions<ListVariablesInActionTemplateQueryQueryParams, unknown>, 'url'> {
18
+ queryParams: ListVariablesInActionTemplateQueryQueryParams;
19
+ }
20
+ export interface ListVariablesInActionTemplateResponseContainer {
21
+ body: ListVariablesInActionTemplateOkResponse;
22
+ headers: Headers;
23
+ }
24
+ export declare function listVariablesInActionTemplate(props: ListVariablesInActionTemplateProps): Promise<ListVariablesInActionTemplateResponseContainer>;
25
+ /**
26
+ * Get the list of variables in a fault template based on revision
27
+ */
28
+ export declare function useListVariablesInActionTemplateQuery(props: ListVariablesInActionTemplateProps, options?: Omit<UseQueryOptions<ListVariablesInActionTemplateResponseContainer, ListVariablesInActionTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListVariablesInActionTemplateResponseContainer, 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 listVariablesInActionTemplate(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/actions/${props.identity}/variables`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Get the list of variables in a fault template based on revision
11
+ */
12
+ export function useListVariablesInActionTemplateQuery(props, options) {
13
+ return useQuery(['listVariablesInActionTemplate', props.identity, props.queryParams], ({ signal }) => listVariablesInActionTemplate(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,30 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ModelReRunChaosWorkflowResponse } from '../schemas/ModelReRunChaosWorkflowResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { TypesInternalExperimentRunRequest } from '../schemas/TypesInternalExperimentRunRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface RunChaosV2InternalApiMutationPathParams {
7
+ experimentId: string;
8
+ }
9
+ export interface RunChaosV2InternalApiMutationQueryParams {
10
+ accountIdentifier: string;
11
+ organizationIdentifier: string;
12
+ projectIdentifier: string;
13
+ }
14
+ export type RunChaosV2InternalApiRequestBody = TypesInternalExperimentRunRequest;
15
+ export type RunChaosV2InternalApiOkResponse = ModelReRunChaosWorkflowResponse;
16
+ export type RunChaosV2InternalApiErrorResponse = ApiRestError;
17
+ export interface RunChaosV2InternalApiProps extends RunChaosV2InternalApiMutationPathParams, Omit<FetcherOptions<RunChaosV2InternalApiMutationQueryParams, RunChaosV2InternalApiRequestBody>, 'url'> {
18
+ queryParams: RunChaosV2InternalApiMutationQueryParams;
19
+ body: RunChaosV2InternalApiRequestBody;
20
+ }
21
+ export interface RunChaosV2InternalApiResponseContainer {
22
+ body: RunChaosV2InternalApiOkResponse;
23
+ headers: Headers;
24
+ }
25
+ export declare function runChaosV2InternalApi(props: RunChaosV2InternalApiProps): Promise<RunChaosV2InternalApiResponseContainer>;
26
+ export type RunChaosV2InternalApiMutationProps<T extends keyof RunChaosV2InternalApiProps> = Omit<RunChaosV2InternalApiProps, T> & Partial<Pick<RunChaosV2InternalApiProps, T>>;
27
+ /**
28
+ * Run a chaos v2 experiment internal API
29
+ */
30
+ export declare function useRunChaosV2InternalApiMutation<T extends keyof RunChaosV2InternalApiProps>(props: Pick<Partial<RunChaosV2InternalApiProps>, T>, options?: Omit<UseMutationOptions<RunChaosV2InternalApiResponseContainer, RunChaosV2InternalApiErrorResponse, RunChaosV2InternalApiMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RunChaosV2InternalApiResponseContainer, ApiRestError, RunChaosV2InternalApiMutationProps<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 runChaosV2InternalApi(props) {
7
+ return fetcher(Object.assign({ url: `/internal/v2/experiments/${props.experimentId}/run`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Run a chaos v2 experiment internal API
11
+ */
12
+ export function useRunChaosV2InternalApiMutation(props, options) {
13
+ return useMutation((mutateProps) => runChaosV2InternalApi(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,30 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { GithubComHarnessHceSaasGraphqlServerPkgActionsAction } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { ActionsActionResponse } from '../schemas/ActionsActionResponse';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface UpdateActionMutationPathParams {
7
+ identity: string;
8
+ }
9
+ export interface UpdateActionMutationQueryParams {
10
+ accountIdentifier: string;
11
+ organizationIdentifier: string;
12
+ projectIdentifier: string;
13
+ }
14
+ export type UpdateActionRequestBody = ActionsActionResponse;
15
+ export type UpdateActionOkResponse = GithubComHarnessHceSaasGraphqlServerPkgActionsAction;
16
+ export type UpdateActionErrorResponse = ApiRestError;
17
+ export interface UpdateActionProps extends UpdateActionMutationPathParams, Omit<FetcherOptions<UpdateActionMutationQueryParams, UpdateActionRequestBody>, 'url'> {
18
+ queryParams: UpdateActionMutationQueryParams;
19
+ body: UpdateActionRequestBody;
20
+ }
21
+ export interface UpdateActionResponseContainer {
22
+ body: UpdateActionOkResponse;
23
+ headers: Headers;
24
+ }
25
+ export declare function updateAction(props: UpdateActionProps): Promise<UpdateActionResponseContainer>;
26
+ export type UpdateActionMutationProps<T extends keyof UpdateActionProps> = Omit<UpdateActionProps, T> & Partial<Pick<UpdateActionProps, T>>;
27
+ /**
28
+ * Update a new action with the specified configuration
29
+ */
30
+ export declare function useUpdateActionMutation<T extends keyof UpdateActionProps>(props: Pick<Partial<UpdateActionProps>, T>, options?: Omit<UseMutationOptions<UpdateActionResponseContainer, UpdateActionErrorResponse, UpdateActionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateActionResponseContainer, ApiRestError, UpdateActionMutationProps<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 updateAction(props) {
7
+ return fetcher(Object.assign({ url: `/rest/actions/${props.identity}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Update a new action with the specified configuration
11
+ */
12
+ export function useUpdateActionMutation(props, options) {
13
+ return useMutation((mutateProps) => updateAction(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,31 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosfaulttemplateActionTemplate } from '../schemas/ChaosfaulttemplateActionTemplate';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { ChaosfaulttemplateActionTemplateRequestBody } from '../requestBodies/ChaosfaulttemplateActionTemplateRequestBody';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface UpdateActionTemplateMutationPathParams {
7
+ identity: string;
8
+ }
9
+ export interface UpdateActionTemplateMutationQueryParams {
10
+ accountIdentifier: string;
11
+ organizationIdentifier: string;
12
+ projectIdentifier: string;
13
+ isDefault?: boolean;
14
+ }
15
+ export type UpdateActionTemplateRequestBody = ChaosfaulttemplateActionTemplateRequestBody;
16
+ export type UpdateActionTemplateOkResponse = ChaosfaulttemplateActionTemplate;
17
+ export type UpdateActionTemplateErrorResponse = ApiRestError;
18
+ export interface UpdateActionTemplateProps extends UpdateActionTemplateMutationPathParams, Omit<FetcherOptions<UpdateActionTemplateMutationQueryParams, UpdateActionTemplateRequestBody>, 'url'> {
19
+ queryParams: UpdateActionTemplateMutationQueryParams;
20
+ body: UpdateActionTemplateRequestBody;
21
+ }
22
+ export interface UpdateActionTemplateResponseContainer {
23
+ body: UpdateActionTemplateOkResponse;
24
+ headers: Headers;
25
+ }
26
+ export declare function updateActionTemplate(props: UpdateActionTemplateProps): Promise<UpdateActionTemplateResponseContainer>;
27
+ export type UpdateActionTemplateMutationProps<T extends keyof UpdateActionTemplateProps> = Omit<UpdateActionTemplateProps, T> & Partial<Pick<UpdateActionTemplateProps, T>>;
28
+ /**
29
+ * Updates an existing action template in a hub with new configuration
30
+ */
31
+ export declare function useUpdateActionTemplateMutation<T extends keyof UpdateActionTemplateProps>(props: Pick<Partial<UpdateActionTemplateProps>, T>, options?: Omit<UseMutationOptions<UpdateActionTemplateResponseContainer, UpdateActionTemplateErrorResponse, UpdateActionTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateActionTemplateResponseContainer, ApiRestError, UpdateActionTemplateMutationProps<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 updateActionTemplate(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/actions/${props.identity}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Updates an existing action template in a hub with new configuration
11
+ */
12
+ export function useUpdateActionTemplateMutation(props, options) {
13
+ return useMutation((mutateProps) => updateActionTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }