@harnessio/react-chaos-manager-client 1.91.7-beta.0 → 1.91.7-beta.2

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 (80) hide show
  1. package/dist/chaos-manager/src/services/hooks/useDeleteExperimentTemplateMutation.d.ts +2 -1
  2. package/dist/chaos-manager/src/services/hooks/useDeleteExperimentTemplateMutation.js +1 -1
  3. package/dist/chaos-manager/src/services/hooks/useGetProbeTemplateQuery.d.ts +1 -0
  4. package/dist/chaos-manager/src/services/hooks/useImportExperimentTemplateV3Mutation.d.ts +35 -0
  5. package/dist/chaos-manager/src/services/hooks/useImportExperimentTemplateV3Mutation.js +14 -0
  6. package/dist/chaos-manager/src/services/hooks/useImportProbeTemplateV3Mutation.d.ts +34 -0
  7. package/dist/chaos-manager/src/services/hooks/{useImportProbeTemplateMutation.js → useImportProbeTemplateV3Mutation.js} +4 -4
  8. package/dist/chaos-manager/src/services/hooks/useListActionsQuery.d.ts +2 -0
  9. package/dist/chaos-manager/src/services/hooks/useListChaosHubQuery.d.ts +1 -0
  10. package/dist/chaos-manager/src/services/hooks/useListChaosServicesQuery.d.ts +1 -0
  11. package/dist/chaos-manager/src/services/hooks/useListProbeTemplateRevisionsQuery.d.ts +35 -0
  12. package/dist/chaos-manager/src/services/hooks/useListProbeTemplateRevisionsQuery.js +14 -0
  13. package/dist/chaos-manager/src/services/hooks/useListRiskRulesQuery.d.ts +1 -0
  14. package/dist/chaos-manager/src/services/hooks/useListRiskScanRisksQuery.d.ts +1 -1
  15. package/dist/chaos-manager/src/services/hooks/useListRiskScansQuery.d.ts +1 -0
  16. package/dist/chaos-manager/src/services/hooks/useListScannedRisksQuery.d.ts +1 -0
  17. package/dist/chaos-manager/src/services/hooks/useListVariablesInProbeTemplateQuery.d.ts +7 -1
  18. package/dist/chaos-manager/src/services/hooks/useMoveExperimentTemplateConfigV3Mutation.d.ts +40 -0
  19. package/dist/chaos-manager/src/services/hooks/useMoveExperimentTemplateConfigV3Mutation.js +14 -0
  20. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigV3Mutation.d.ts +40 -0
  21. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigV3Mutation.js +14 -0
  22. package/dist/chaos-manager/src/services/hooks/useRefreshExperimentTemplateV3Mutation.d.ts +32 -0
  23. package/dist/chaos-manager/src/services/hooks/useRefreshExperimentTemplateV3Mutation.js +14 -0
  24. package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateV3Mutation.d.ts +32 -0
  25. package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateV3Mutation.js +14 -0
  26. package/dist/chaos-manager/src/services/hooks/useSaveProbeTemplateRevisionV3Mutation.d.ts +39 -0
  27. package/dist/chaos-manager/src/services/hooks/useSaveProbeTemplateRevisionV3Mutation.js +14 -0
  28. package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateRevisionV3Mutation.d.ts +31 -0
  29. package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateRevisionV3Mutation.js +14 -0
  30. package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateVersionV3Mutation.d.ts +31 -0
  31. package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateVersionV3Mutation.js +14 -0
  32. package/dist/chaos-manager/src/services/hooks/useStopAllChaosExperimentsV3Mutation.d.ts +26 -0
  33. package/dist/chaos-manager/src/services/hooks/useStopAllChaosExperimentsV3Mutation.js +14 -0
  34. package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.d.ts +1 -1
  35. package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.js +1 -1
  36. package/dist/chaos-manager/src/services/hooks/useUpdateExperimentTemplateGitMetadataV3Mutation.d.ts +36 -0
  37. package/dist/chaos-manager/src/services/hooks/useUpdateExperimentTemplateGitMetadataV3Mutation.js +14 -0
  38. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataV3Mutation.d.ts +36 -0
  39. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataV3Mutation.js +14 -0
  40. package/dist/chaos-manager/src/services/hooks/useUpdateScannedRiskStatusMutation.d.ts +32 -0
  41. package/dist/chaos-manager/src/services/hooks/useUpdateScannedRiskStatusMutation.js +14 -0
  42. package/dist/chaos-manager/src/services/index.d.ts +35 -10
  43. package/dist/chaos-manager/src/services/index.js +14 -5
  44. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesExecutionOutput.d.ts +6 -0
  45. package/dist/chaos-manager/src/services/schemas/ChaosexperimenttemplateChaosExperimentTemplate.d.ts +14 -0
  46. package/dist/chaos-manager/src/services/schemas/ChaosexperimenttemplateCreateExperimentTemplateResponse.d.ts +27 -0
  47. package/dist/chaos-manager/src/services/schemas/ChaosexperimenttemplateGetExperimentTemplateResponse.d.ts +27 -0
  48. package/dist/chaos-manager/src/services/schemas/ChaosexperimenttemplateUpdateExperimentTemplateResponse.d.ts +27 -0
  49. package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.d.ts +3 -1
  50. package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateImportProbeTemplateRequest.d.ts +12 -1
  51. package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateProbeTemplate.d.ts +7 -0
  52. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentFailure.d.ts +5 -0
  53. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentFailure.js +4 -0
  54. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentsResponse.d.ts +11 -0
  55. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentsResponse.js +1 -0
  56. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStoppedExperimentRun.d.ts +5 -0
  57. package/dist/chaos-manager/src/services/schemas/ExperimentrunsStoppedExperimentRun.js +4 -0
  58. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobetemplateChaosProbeTemplate.d.ts +9 -0
  59. package/dist/chaos-manager/src/services/schemas/RiskRiskRuleSpec.d.ts +7 -0
  60. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatus.d.ts +1 -1
  61. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatusDetails.d.ts +11 -0
  62. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatusDetails.js +1 -0
  63. package/dist/chaos-manager/src/services/schemas/ScannedrisksScannedRiskSpec.d.ts +6 -0
  64. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryQuery.d.ts +4 -0
  65. package/dist/chaos-manager/src/services/schemas/ScannedrisksUpdateStatusRequest.d.ts +9 -0
  66. package/dist/chaos-manager/src/services/schemas/ScannedrisksUpdateStatusRequest.js +1 -0
  67. package/dist/chaos-manager/src/services/schemas/V3ImportRequest.d.ts +12 -0
  68. package/dist/chaos-manager/src/services/schemas/V3ImportRequest.js +4 -0
  69. package/dist/chaos-manager/src/services/schemas/V3SaveRevisionRequest.d.ts +39 -0
  70. package/dist/chaos-manager/src/services/schemas/V3SaveRevisionRequest.js +1 -0
  71. package/package.json +1 -1
  72. package/dist/chaos-manager/src/services/hooks/useImportProbeTemplateMutation.d.ts +0 -32
  73. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigMutation.d.ts +0 -35
  74. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigMutation.js +0 -14
  75. package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateMutation.d.ts +0 -29
  76. package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateMutation.js +0 -14
  77. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataMutation.d.ts +0 -34
  78. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataMutation.js +0 -14
  79. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateRevisionMutation.d.ts +0 -36
  80. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateRevisionMutation.js +0 -14
@@ -12,6 +12,7 @@ export interface DeleteExperimentTemplateMutationQueryParams {
12
12
  organizationIdentifier?: string;
13
13
  parentUniqueId?: string;
14
14
  projectIdentifier?: string;
15
+ revision?: string;
15
16
  verbose?: boolean;
16
17
  }
17
18
  export type DeleteExperimentTemplateOkResponse = GithubComHarnessHceSaasGraphqlServerApiEmpty;
@@ -26,6 +27,6 @@ export interface DeleteExperimentTemplateResponseContainer {
26
27
  export declare function deleteExperimentTemplate(props: DeleteExperimentTemplateProps): Promise<DeleteExperimentTemplateResponseContainer>;
27
28
  export type DeleteExperimentTemplateMutationProps<T extends keyof DeleteExperimentTemplateProps> = Omit<DeleteExperimentTemplateProps, T> & Partial<Pick<DeleteExperimentTemplateProps, T>>;
28
29
  /**
29
- * Delete the experiment templates in a hub based on tag
30
+ * Without revision, deletes every revision of the template. With revision, deletes only that revision; the default revision can be deleted only when it is the last one. Files stored in Git are never deleted.
30
31
  */
31
32
  export declare function useDeleteExperimentTemplateMutation<T extends keyof DeleteExperimentTemplateProps>(props: Pick<Partial<DeleteExperimentTemplateProps>, T>, options?: Omit<UseMutationOptions<DeleteExperimentTemplateResponseContainer, DeleteExperimentTemplateErrorResponse, DeleteExperimentTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteExperimentTemplateResponseContainer, ApiRestError, DeleteExperimentTemplateMutationProps<T>, unknown>;
@@ -7,7 +7,7 @@ export function deleteExperimentTemplate(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/experimenttemplates/${props.identity}`, method: 'DELETE' }, props));
8
8
  }
9
9
  /**
10
- * Delete the experiment templates in a hub based on tag
10
+ * Without revision, deletes every revision of the template. With revision, deletes only that revision; the default revision can be deleted only when it is the last one. Files stored in Git are never deleted.
11
11
  */
12
12
  export function useDeleteExperimentTemplateMutation(props, options) {
13
13
  return useMutation((mutateProps) => deleteExperimentTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
@@ -11,6 +11,7 @@ export interface GetProbeTemplateQueryQueryParams {
11
11
  projectIdentifier: string;
12
12
  hubIdentity: string;
13
13
  revision?: string;
14
+ versionLabel?: string;
14
15
  branch?: string;
15
16
  loadFromFallbackBranch?: boolean;
16
17
  }
@@ -0,0 +1,35 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosexperimenttemplateGetExperimentTemplateResponse } from '../schemas/ChaosexperimenttemplateGetExperimentTemplateResponse';
3
+ import type { SharedError } from '../schemas/SharedError';
4
+ import type { V3ImportRequest } from '../schemas/V3ImportRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface ImportExperimentTemplateV3MutationQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ hubIdentity?: string;
10
+ organizationIdentifier?: string;
11
+ parentUniqueId?: string;
12
+ projectIdentifier?: string;
13
+ connectorRef?: string;
14
+ repoName?: string;
15
+ isHarnessCodeRepo?: boolean;
16
+ branch?: string;
17
+ filePath: string;
18
+ }
19
+ export type ImportExperimentTemplateV3RequestBody = V3ImportRequest;
20
+ export type ImportExperimentTemplateV3OkResponse = ChaosexperimenttemplateGetExperimentTemplateResponse;
21
+ export type ImportExperimentTemplateV3ErrorResponse = SharedError;
22
+ export interface ImportExperimentTemplateV3Props extends Omit<FetcherOptions<ImportExperimentTemplateV3MutationQueryParams, ImportExperimentTemplateV3RequestBody>, 'url'> {
23
+ queryParams: ImportExperimentTemplateV3MutationQueryParams;
24
+ body: ImportExperimentTemplateV3RequestBody;
25
+ }
26
+ export interface ImportExperimentTemplateV3ResponseContainer {
27
+ body: ImportExperimentTemplateV3OkResponse;
28
+ headers: Headers;
29
+ }
30
+ export declare function importExperimentTemplateV3(props: ImportExperimentTemplateV3Props): Promise<ImportExperimentTemplateV3ResponseContainer>;
31
+ export type ImportExperimentTemplateV3MutationProps<T extends keyof ImportExperimentTemplateV3Props> = Omit<ImportExperimentTemplateV3Props, T> & Partial<Pick<ImportExperimentTemplateV3Props, T>>;
32
+ /**
33
+ * Creates an experiment template revision from an existing file in Git. Nothing is committed.
34
+ */
35
+ export declare function useImportExperimentTemplateV3Mutation<T extends keyof ImportExperimentTemplateV3Props>(props: Pick<Partial<ImportExperimentTemplateV3Props>, T>, options?: Omit<UseMutationOptions<ImportExperimentTemplateV3ResponseContainer, ImportExperimentTemplateV3ErrorResponse, ImportExperimentTemplateV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportExperimentTemplateV3ResponseContainer, SharedError, ImportExperimentTemplateV3MutationProps<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 importExperimentTemplateV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/experiment-templates/import`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Creates an experiment template revision from an existing file in Git. Nothing is committed.
11
+ */
12
+ export function useImportExperimentTemplateV3Mutation(props, options) {
13
+ return useMutation((mutateProps) => importExperimentTemplateV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,34 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosprobetemplateProbeTemplate } from '../schemas/ChaosprobetemplateProbeTemplate';
3
+ import type { SharedError } from '../schemas/SharedError';
4
+ import type { ChaosprobetemplateImportProbeTemplateRequest } from '../schemas/ChaosprobetemplateImportProbeTemplateRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface ImportProbeTemplateV3MutationQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ organizationIdentifier?: string;
10
+ parentUniqueId?: string;
11
+ projectIdentifier?: string;
12
+ connectorRef?: string;
13
+ repoName?: string;
14
+ isHarnessCodeRepo?: boolean;
15
+ branch?: string;
16
+ filePath: string;
17
+ }
18
+ export type ImportProbeTemplateV3RequestBody = ChaosprobetemplateImportProbeTemplateRequest;
19
+ export type ImportProbeTemplateV3OkResponse = ChaosprobetemplateProbeTemplate;
20
+ export type ImportProbeTemplateV3ErrorResponse = SharedError;
21
+ export interface ImportProbeTemplateV3Props extends Omit<FetcherOptions<ImportProbeTemplateV3MutationQueryParams, ImportProbeTemplateV3RequestBody>, 'url'> {
22
+ queryParams: ImportProbeTemplateV3MutationQueryParams;
23
+ body: ImportProbeTemplateV3RequestBody;
24
+ }
25
+ export interface ImportProbeTemplateV3ResponseContainer {
26
+ body: ImportProbeTemplateV3OkResponse;
27
+ headers: Headers;
28
+ }
29
+ export declare function importProbeTemplateV3(props: ImportProbeTemplateV3Props): Promise<ImportProbeTemplateV3ResponseContainer>;
30
+ export type ImportProbeTemplateV3MutationProps<T extends keyof ImportProbeTemplateV3Props> = Omit<ImportProbeTemplateV3Props, T> & Partial<Pick<ImportProbeTemplateV3Props, T>>;
31
+ /**
32
+ * Creates a probe template revision from an existing file in Git. Nothing is committed.
33
+ */
34
+ export declare function useImportProbeTemplateV3Mutation<T extends keyof ImportProbeTemplateV3Props>(props: Pick<Partial<ImportProbeTemplateV3Props>, T>, options?: Omit<UseMutationOptions<ImportProbeTemplateV3ResponseContainer, ImportProbeTemplateV3ErrorResponse, ImportProbeTemplateV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportProbeTemplateV3ResponseContainer, SharedError, ImportProbeTemplateV3MutationProps<T>, unknown>;
@@ -3,12 +3,12 @@
3
3
  // Please do not modify this code directly.
4
4
  import { useMutation } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../custom-fetcher/index.js';
6
- export function importProbeTemplate(props) {
7
- return fetcher(Object.assign({ url: `/rest/templates/probes/import`, method: 'POST' }, props));
6
+ export function importProbeTemplateV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/probe-templates/import`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * Creates a probe template revision from an existing file in Git. Nothing is committed.
11
11
  */
12
- export function useImportProbeTemplateMutation(props, options) {
13
- return useMutation((mutateProps) => importProbeTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
12
+ export function useImportProbeTemplateV3Mutation(props, options) {
13
+ return useMutation((mutateProps) => importProbeTemplateV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
14
  }
@@ -19,6 +19,8 @@ export interface ListActionsQueryQueryParams {
19
19
  infraType?: string;
20
20
  entityType?: string;
21
21
  includeAllScope?: string;
22
+ sortField?: 'createdAt' | 'identity' | 'infrastructureType' | 'lastUpdated' | 'name' | 'type';
23
+ sortAscending?: boolean;
22
24
  }
23
25
  export type ListActionsOkResponse = ActionsListActionTemplateResponse;
24
26
  export type ListActionsErrorResponse = ApiRestError;
@@ -7,6 +7,7 @@ export interface ListChaosHubQueryQueryParams {
7
7
  organizationIdentifier: string;
8
8
  projectIdentifier: string;
9
9
  search: string;
10
+ tags?: string;
10
11
  includeAllScope: boolean;
11
12
  /**
12
13
  * @default 0
@@ -22,6 +22,7 @@ export interface ListChaosServicesQueryQueryParams {
22
22
  probeIds?: string;
23
23
  projectIdentifier?: string;
24
24
  search?: string;
25
+ serviceType?: 'AmazonApplicationLoadBalancer' | 'AmazonClassicLoadBalancer' | 'AmazonEC2Instance' | 'AmazonLambda' | 'AmazonNetworkLoadBalancer' | 'AmazonRelationalDatabaseService' | 'CodeRepository' | 'Kubernetes' | 'KubernetesNode' | 'KubernetesService' | 'KubernetesWorkload' | 'LinuxVM' | 'LinuxVMProcess' | 'Other' | 'WindowsVM' | 'WindowsVMProcess';
25
26
  sortAscending?: boolean;
26
27
  sortField?: 'createdAt' | 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
27
28
  tags?: string;
@@ -0,0 +1,35 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaosprobetemplateListProbeTemplateResponse } from '../schemas/ChaosprobetemplateListProbeTemplateResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListProbeTemplateRevisionsQueryPathParams {
6
+ identity: string;
7
+ }
8
+ export interface ListProbeTemplateRevisionsQueryQueryParams {
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 ListProbeTemplateRevisionsOkResponse = ChaosprobetemplateListProbeTemplateResponse;
23
+ export type ListProbeTemplateRevisionsErrorResponse = ApiRestError;
24
+ export interface ListProbeTemplateRevisionsProps extends ListProbeTemplateRevisionsQueryPathParams, Omit<FetcherOptions<ListProbeTemplateRevisionsQueryQueryParams, unknown>, 'url'> {
25
+ queryParams: ListProbeTemplateRevisionsQueryQueryParams;
26
+ }
27
+ export interface ListProbeTemplateRevisionsResponseContainer {
28
+ body: ListProbeTemplateRevisionsOkResponse;
29
+ headers: Headers;
30
+ }
31
+ export declare function listProbeTemplateRevisions(props: ListProbeTemplateRevisionsProps): Promise<ListProbeTemplateRevisionsResponseContainer>;
32
+ /**
33
+ * Lists every live revision of one probe template, newest revision first. Show versionLabel. isDefault marks the stable version.
34
+ */
35
+ export declare function useListProbeTemplateRevisionsQuery(props: ListProbeTemplateRevisionsProps, options?: Omit<UseQueryOptions<ListProbeTemplateRevisionsResponseContainer, ListProbeTemplateRevisionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListProbeTemplateRevisionsResponseContainer, 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 listProbeTemplateRevisions(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}/revisions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists every live revision of one probe template, newest revision first. Show versionLabel. isDefault marks the stable version.
11
+ */
12
+ export function useListProbeTemplateRevisionsQuery(props, options) {
13
+ return useQuery(['listProbeTemplateRevisions', props.identity, props.queryParams], ({ signal }) => listProbeTemplateRevisions(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -8,6 +8,7 @@ export interface ListRiskRulesQueryQueryParams {
8
8
  customOnly?: boolean;
9
9
  dataSource?: string;
10
10
  includeAllScope?: boolean;
11
+ includeInPassiveScan?: boolean;
11
12
  isSystem?: boolean;
12
13
  /**
13
14
  * @default 15
@@ -29,7 +29,7 @@ export interface ListRiskScanRisksQueryQueryParams {
29
29
  severity?: 'Critical' | 'High' | 'Low' | 'Medium';
30
30
  sortAscending?: boolean;
31
31
  sortField?: 'firstDetected' | 'lastDetected' | 'name' | 'occurrenceCount' | 'severity';
32
- status?: 'Ignored' | 'InProgress' | 'Open' | 'Resolved';
32
+ status?: 'Ignored' | 'InProgress' | 'Invalid' | 'Open' | 'Resolved';
33
33
  tags?: string;
34
34
  validationType?: 'Confirmed' | 'Passive';
35
35
  }
@@ -20,6 +20,7 @@ export interface ListRiskScansQueryQueryParams {
20
20
  parentUniqueId?: string;
21
21
  pipelineIdentity?: string;
22
22
  projectIdentifier?: string;
23
+ repoURL?: string;
23
24
  scanType?: string;
24
25
  search?: string;
25
26
  sortAscending?: boolean;
@@ -36,6 +36,7 @@ export interface ListScannedRisksQueryQueryParams {
36
36
  sortField?: 'firstDetected' | 'lastDetected' | 'lastUpdated' | 'name' | 'occurrenceCount' | 'severity';
37
37
  source?: 'DiscoveryAgent' | 'PipelineExecution' | 'ProbeExecution';
38
38
  startTime?: number;
39
+ status?: 'Ignored' | 'Invalid' | 'Open' | 'Resolved';
39
40
  tags?: string;
40
41
  validationType?: string;
41
42
  }
@@ -11,10 +11,16 @@ export interface ListVariablesInProbeTemplateQueryQueryParams {
11
11
  projectIdentifier: string;
12
12
  hubIdentity: string;
13
13
  revision: string;
14
+ versionLabel?: string;
15
+ branch?: string;
16
+ loadFromFallbackBranch?: boolean;
17
+ }
18
+ export interface ListVariablesInProbeTemplateQueryHeaderParams {
19
+ 'Load-From-Cache'?: string;
14
20
  }
15
21
  export type ListVariablesInProbeTemplateOkResponse = ChaosprobetemplateProbeTemplateVariables;
16
22
  export type ListVariablesInProbeTemplateErrorResponse = ApiRestError;
17
- export interface ListVariablesInProbeTemplateProps extends ListVariablesInProbeTemplateQueryPathParams, Omit<FetcherOptions<ListVariablesInProbeTemplateQueryQueryParams, unknown>, 'url'> {
23
+ export interface ListVariablesInProbeTemplateProps extends ListVariablesInProbeTemplateQueryPathParams, Omit<FetcherOptions<ListVariablesInProbeTemplateQueryQueryParams, unknown, ListVariablesInProbeTemplateQueryHeaderParams>, 'url'> {
18
24
  queryParams: ListVariablesInProbeTemplateQueryQueryParams;
19
25
  }
20
26
  export interface ListVariablesInProbeTemplateResponseContainer {
@@ -0,0 +1,40 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosexperimenttemplateGetExperimentTemplateResponse } from '../schemas/ChaosexperimenttemplateGetExperimentTemplateResponse';
3
+ import type { SharedError } from '../schemas/SharedError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface MoveExperimentTemplateConfigV3MutationPathParams {
6
+ identity: string;
7
+ revision: string;
8
+ }
9
+ export interface MoveExperimentTemplateConfigV3MutationQueryParams {
10
+ accountIdentifier: string;
11
+ correlationID?: string;
12
+ hubIdentity?: string;
13
+ organizationIdentifier?: string;
14
+ parentUniqueId?: string;
15
+ projectIdentifier?: string;
16
+ moveConfigType: string;
17
+ connectorRef?: string;
18
+ repoName?: string;
19
+ isHarnessCodeRepo?: boolean;
20
+ branch?: string;
21
+ isNewBranch?: boolean;
22
+ baseBranch?: string;
23
+ filePath?: string;
24
+ commitMsg?: string;
25
+ }
26
+ export type MoveExperimentTemplateConfigV3OkResponse = ChaosexperimenttemplateGetExperimentTemplateResponse;
27
+ export type MoveExperimentTemplateConfigV3ErrorResponse = SharedError;
28
+ export interface MoveExperimentTemplateConfigV3Props extends MoveExperimentTemplateConfigV3MutationPathParams, Omit<FetcherOptions<MoveExperimentTemplateConfigV3MutationQueryParams, unknown>, 'url'> {
29
+ queryParams: MoveExperimentTemplateConfigV3MutationQueryParams;
30
+ }
31
+ export interface MoveExperimentTemplateConfigV3ResponseContainer {
32
+ body: MoveExperimentTemplateConfigV3OkResponse;
33
+ headers: Headers;
34
+ }
35
+ export declare function moveExperimentTemplateConfigV3(props: MoveExperimentTemplateConfigV3Props): Promise<MoveExperimentTemplateConfigV3ResponseContainer>;
36
+ export type MoveExperimentTemplateConfigV3MutationProps<T extends keyof MoveExperimentTemplateConfigV3Props> = Omit<MoveExperimentTemplateConfigV3Props, T> & Partial<Pick<MoveExperimentTemplateConfigV3Props, T>>;
37
+ /**
38
+ * Moves an experiment template revision between Harness and Git
39
+ */
40
+ export declare function useMoveExperimentTemplateConfigV3Mutation<T extends keyof MoveExperimentTemplateConfigV3Props>(props: Pick<Partial<MoveExperimentTemplateConfigV3Props>, T>, options?: Omit<UseMutationOptions<MoveExperimentTemplateConfigV3ResponseContainer, MoveExperimentTemplateConfigV3ErrorResponse, MoveExperimentTemplateConfigV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<MoveExperimentTemplateConfigV3ResponseContainer, SharedError, MoveExperimentTemplateConfigV3MutationProps<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 moveExperimentTemplateConfigV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/experiment-templates/${props.identity}/revisions/${props.revision}/move-config`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Moves an experiment template revision between Harness and Git
11
+ */
12
+ export function useMoveExperimentTemplateConfigV3Mutation(props, options) {
13
+ return useMutation((mutateProps) => moveExperimentTemplateConfigV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,40 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
+ import type { SharedError } from '../schemas/SharedError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface MoveProbeTemplateConfigV3MutationPathParams {
6
+ identity: string;
7
+ revision: number;
8
+ }
9
+ export interface MoveProbeTemplateConfigV3MutationQueryParams {
10
+ accountIdentifier: string;
11
+ correlationID?: string;
12
+ hubIdentity?: string;
13
+ organizationIdentifier?: string;
14
+ parentUniqueId?: string;
15
+ projectIdentifier?: string;
16
+ moveConfigType: string;
17
+ connectorRef?: string;
18
+ repoName?: string;
19
+ isHarnessCodeRepo?: boolean;
20
+ branch?: string;
21
+ isNewBranch?: boolean;
22
+ baseBranch?: string;
23
+ filePath?: string;
24
+ commitMsg?: string;
25
+ }
26
+ export type MoveProbeTemplateConfigV3OkResponse = ChaosprobetemplateGetProbeTemplateResponse;
27
+ export type MoveProbeTemplateConfigV3ErrorResponse = SharedError;
28
+ export interface MoveProbeTemplateConfigV3Props extends MoveProbeTemplateConfigV3MutationPathParams, Omit<FetcherOptions<MoveProbeTemplateConfigV3MutationQueryParams, unknown>, 'url'> {
29
+ queryParams: MoveProbeTemplateConfigV3MutationQueryParams;
30
+ }
31
+ export interface MoveProbeTemplateConfigV3ResponseContainer {
32
+ body: MoveProbeTemplateConfigV3OkResponse;
33
+ headers: Headers;
34
+ }
35
+ export declare function moveProbeTemplateConfigV3(props: MoveProbeTemplateConfigV3Props): Promise<MoveProbeTemplateConfigV3ResponseContainer>;
36
+ export type MoveProbeTemplateConfigV3MutationProps<T extends keyof MoveProbeTemplateConfigV3Props> = Omit<MoveProbeTemplateConfigV3Props, T> & Partial<Pick<MoveProbeTemplateConfigV3Props, T>>;
37
+ /**
38
+ * Moves a probe template revision between Harness and Git
39
+ */
40
+ export declare function useMoveProbeTemplateConfigV3Mutation<T extends keyof MoveProbeTemplateConfigV3Props>(props: Pick<Partial<MoveProbeTemplateConfigV3Props>, T>, options?: Omit<UseMutationOptions<MoveProbeTemplateConfigV3ResponseContainer, MoveProbeTemplateConfigV3ErrorResponse, MoveProbeTemplateConfigV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<MoveProbeTemplateConfigV3ResponseContainer, SharedError, MoveProbeTemplateConfigV3MutationProps<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 moveProbeTemplateConfigV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/probe-templates/${props.identity}/revisions/${props.revision}/move-config`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Moves a probe template revision between Harness and Git
11
+ */
12
+ export function useMoveProbeTemplateConfigV3Mutation(props, options) {
13
+ return useMutation((mutateProps) => moveProbeTemplateConfigV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,32 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosexperimenttemplateGetExperimentTemplateResponse } from '../schemas/ChaosexperimenttemplateGetExperimentTemplateResponse';
3
+ import type { SharedError } from '../schemas/SharedError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface RefreshExperimentTemplateV3MutationPathParams {
6
+ identity: string;
7
+ revision: string;
8
+ }
9
+ export interface RefreshExperimentTemplateV3MutationQueryParams {
10
+ accountIdentifier: string;
11
+ correlationID?: string;
12
+ hubIdentity?: string;
13
+ organizationIdentifier?: string;
14
+ parentUniqueId?: string;
15
+ projectIdentifier?: string;
16
+ branch?: string;
17
+ }
18
+ export type RefreshExperimentTemplateV3OkResponse = ChaosexperimenttemplateGetExperimentTemplateResponse;
19
+ export type RefreshExperimentTemplateV3ErrorResponse = SharedError;
20
+ export interface RefreshExperimentTemplateV3Props extends RefreshExperimentTemplateV3MutationPathParams, Omit<FetcherOptions<RefreshExperimentTemplateV3MutationQueryParams, unknown>, 'url'> {
21
+ queryParams: RefreshExperimentTemplateV3MutationQueryParams;
22
+ }
23
+ export interface RefreshExperimentTemplateV3ResponseContainer {
24
+ body: RefreshExperimentTemplateV3OkResponse;
25
+ headers: Headers;
26
+ }
27
+ export declare function refreshExperimentTemplateV3(props: RefreshExperimentTemplateV3Props): Promise<RefreshExperimentTemplateV3ResponseContainer>;
28
+ export type RefreshExperimentTemplateV3MutationProps<T extends keyof RefreshExperimentTemplateV3Props> = Omit<RefreshExperimentTemplateV3Props, T> & Partial<Pick<RefreshExperimentTemplateV3Props, T>>;
29
+ /**
30
+ * Reloads an experiment template revision from Git
31
+ */
32
+ export declare function useRefreshExperimentTemplateV3Mutation<T extends keyof RefreshExperimentTemplateV3Props>(props: Pick<Partial<RefreshExperimentTemplateV3Props>, T>, options?: Omit<UseMutationOptions<RefreshExperimentTemplateV3ResponseContainer, RefreshExperimentTemplateV3ErrorResponse, RefreshExperimentTemplateV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RefreshExperimentTemplateV3ResponseContainer, SharedError, RefreshExperimentTemplateV3MutationProps<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 refreshExperimentTemplateV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/experiment-templates/${props.identity}/revisions/${props.revision}/refresh`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Reloads an experiment template revision from Git
11
+ */
12
+ export function useRefreshExperimentTemplateV3Mutation(props, options) {
13
+ return useMutation((mutateProps) => refreshExperimentTemplateV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,32 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
+ import type { SharedError } from '../schemas/SharedError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface RefreshProbeTemplateV3MutationPathParams {
6
+ identity: string;
7
+ revision: number;
8
+ }
9
+ export interface RefreshProbeTemplateV3MutationQueryParams {
10
+ accountIdentifier: string;
11
+ correlationID?: string;
12
+ hubIdentity?: string;
13
+ organizationIdentifier?: string;
14
+ parentUniqueId?: string;
15
+ projectIdentifier?: string;
16
+ branch?: string;
17
+ }
18
+ export type RefreshProbeTemplateV3OkResponse = ChaosprobetemplateGetProbeTemplateResponse;
19
+ export type RefreshProbeTemplateV3ErrorResponse = SharedError;
20
+ export interface RefreshProbeTemplateV3Props extends RefreshProbeTemplateV3MutationPathParams, Omit<FetcherOptions<RefreshProbeTemplateV3MutationQueryParams, unknown>, 'url'> {
21
+ queryParams: RefreshProbeTemplateV3MutationQueryParams;
22
+ }
23
+ export interface RefreshProbeTemplateV3ResponseContainer {
24
+ body: RefreshProbeTemplateV3OkResponse;
25
+ headers: Headers;
26
+ }
27
+ export declare function refreshProbeTemplateV3(props: RefreshProbeTemplateV3Props): Promise<RefreshProbeTemplateV3ResponseContainer>;
28
+ export type RefreshProbeTemplateV3MutationProps<T extends keyof RefreshProbeTemplateV3Props> = Omit<RefreshProbeTemplateV3Props, T> & Partial<Pick<RefreshProbeTemplateV3Props, T>>;
29
+ /**
30
+ * Reloads a probe template revision from Git
31
+ */
32
+ export declare function useRefreshProbeTemplateV3Mutation<T extends keyof RefreshProbeTemplateV3Props>(props: Pick<Partial<RefreshProbeTemplateV3Props>, T>, options?: Omit<UseMutationOptions<RefreshProbeTemplateV3ResponseContainer, RefreshProbeTemplateV3ErrorResponse, RefreshProbeTemplateV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RefreshProbeTemplateV3ResponseContainer, SharedError, RefreshProbeTemplateV3MutationProps<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 refreshProbeTemplateV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/probe-templates/${props.identity}/revisions/${props.revision}/refresh`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Reloads a probe template revision from Git
11
+ */
12
+ export function useRefreshProbeTemplateV3Mutation(props, options) {
13
+ return useMutation((mutateProps) => refreshProbeTemplateV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,39 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosprobetemplateProbeTemplate } from '../schemas/ChaosprobetemplateProbeTemplate';
3
+ import type { SharedError } from '../schemas/SharedError';
4
+ import type { V3SaveRevisionRequest } from '../schemas/V3SaveRevisionRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface SaveProbeTemplateRevisionV3MutationPathParams {
7
+ identity: string;
8
+ revision: number;
9
+ }
10
+ export interface SaveProbeTemplateRevisionV3MutationQueryParams {
11
+ accountIdentifier: string;
12
+ correlationID?: string;
13
+ organizationIdentifier?: string;
14
+ parentUniqueId?: string;
15
+ projectIdentifier?: string;
16
+ branch?: string;
17
+ commitMsg?: string;
18
+ isNewBranch?: boolean;
19
+ baseBranch?: string;
20
+ lastObjectId?: string;
21
+ lastCommitId?: string;
22
+ }
23
+ export type SaveProbeTemplateRevisionV3RequestBody = V3SaveRevisionRequest;
24
+ export type SaveProbeTemplateRevisionV3OkResponse = ChaosprobetemplateProbeTemplate;
25
+ export type SaveProbeTemplateRevisionV3ErrorResponse = SharedError;
26
+ export interface SaveProbeTemplateRevisionV3Props extends SaveProbeTemplateRevisionV3MutationPathParams, Omit<FetcherOptions<SaveProbeTemplateRevisionV3MutationQueryParams, SaveProbeTemplateRevisionV3RequestBody>, 'url'> {
27
+ queryParams: SaveProbeTemplateRevisionV3MutationQueryParams;
28
+ body: SaveProbeTemplateRevisionV3RequestBody;
29
+ }
30
+ export interface SaveProbeTemplateRevisionV3ResponseContainer {
31
+ body: SaveProbeTemplateRevisionV3OkResponse;
32
+ headers: Headers;
33
+ }
34
+ export declare function saveProbeTemplateRevisionV3(props: SaveProbeTemplateRevisionV3Props): Promise<SaveProbeTemplateRevisionV3ResponseContainer>;
35
+ export type SaveProbeTemplateRevisionV3MutationProps<T extends keyof SaveProbeTemplateRevisionV3Props> = Omit<SaveProbeTemplateRevisionV3Props, T> & Partial<Pick<SaveProbeTemplateRevisionV3Props, T>>;
36
+ /**
37
+ * For a revision stored in Git, lastObjectId and lastCommitId of the version being edited are required.
38
+ */
39
+ export declare function useSaveProbeTemplateRevisionV3Mutation<T extends keyof SaveProbeTemplateRevisionV3Props>(props: Pick<Partial<SaveProbeTemplateRevisionV3Props>, T>, options?: Omit<UseMutationOptions<SaveProbeTemplateRevisionV3ResponseContainer, SaveProbeTemplateRevisionV3ErrorResponse, SaveProbeTemplateRevisionV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveProbeTemplateRevisionV3ResponseContainer, SharedError, SaveProbeTemplateRevisionV3MutationProps<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 saveProbeTemplateRevisionV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/probe-templates/${props.identity}/revisions/${props.revision}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * For a revision stored in Git, lastObjectId and lastCommitId of the version being edited are required.
11
+ */
12
+ export function useSaveProbeTemplateRevisionV3Mutation(props, options) {
13
+ return useMutation((mutateProps) => saveProbeTemplateRevisionV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,31 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
+ import type { SharedError } from '../schemas/SharedError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface SetDefaultProbeTemplateRevisionV3MutationPathParams {
6
+ identity: string;
7
+ revision: number;
8
+ }
9
+ export interface SetDefaultProbeTemplateRevisionV3MutationQueryParams {
10
+ accountIdentifier: string;
11
+ correlationID?: string;
12
+ hubIdentity?: string;
13
+ organizationIdentifier?: string;
14
+ parentUniqueId?: string;
15
+ projectIdentifier?: string;
16
+ }
17
+ export type SetDefaultProbeTemplateRevisionV3OkResponse = ChaosprobetemplateGetProbeTemplateResponse;
18
+ export type SetDefaultProbeTemplateRevisionV3ErrorResponse = SharedError;
19
+ export interface SetDefaultProbeTemplateRevisionV3Props extends SetDefaultProbeTemplateRevisionV3MutationPathParams, Omit<FetcherOptions<SetDefaultProbeTemplateRevisionV3MutationQueryParams, unknown>, 'url'> {
20
+ queryParams: SetDefaultProbeTemplateRevisionV3MutationQueryParams;
21
+ }
22
+ export interface SetDefaultProbeTemplateRevisionV3ResponseContainer {
23
+ body: SetDefaultProbeTemplateRevisionV3OkResponse;
24
+ headers: Headers;
25
+ }
26
+ export declare function setDefaultProbeTemplateRevisionV3(props: SetDefaultProbeTemplateRevisionV3Props): Promise<SetDefaultProbeTemplateRevisionV3ResponseContainer>;
27
+ export type SetDefaultProbeTemplateRevisionV3MutationProps<T extends keyof SetDefaultProbeTemplateRevisionV3Props> = Omit<SetDefaultProbeTemplateRevisionV3Props, T> & Partial<Pick<SetDefaultProbeTemplateRevisionV3Props, T>>;
28
+ /**
29
+ * Marks a probe template revision as the default
30
+ */
31
+ export declare function useSetDefaultProbeTemplateRevisionV3Mutation<T extends keyof SetDefaultProbeTemplateRevisionV3Props>(props: Pick<Partial<SetDefaultProbeTemplateRevisionV3Props>, T>, options?: Omit<UseMutationOptions<SetDefaultProbeTemplateRevisionV3ResponseContainer, SetDefaultProbeTemplateRevisionV3ErrorResponse, SetDefaultProbeTemplateRevisionV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SetDefaultProbeTemplateRevisionV3ResponseContainer, SharedError, SetDefaultProbeTemplateRevisionV3MutationProps<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 setDefaultProbeTemplateRevisionV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/probe-templates/${props.identity}/revisions/${props.revision}/default`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Marks a probe template revision as the default
11
+ */
12
+ export function useSetDefaultProbeTemplateRevisionV3Mutation(props, options) {
13
+ return useMutation((mutateProps) => setDefaultProbeTemplateRevisionV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }