@harnessio/react-chaos-manager-client 1.33.1 → 1.35.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 (38) hide show
  1. package/dist/chaos-manager/src/services/hooks/useDeleteMachineChaosInfraMutation.d.ts +2 -0
  2. package/dist/chaos-manager/src/services/hooks/useListActionMetadataQuery.d.ts +39 -0
  3. package/dist/chaos-manager/src/services/hooks/useListActionMetadataQuery.js +14 -0
  4. package/dist/chaos-manager/src/services/hooks/useListExperimentMetadataQuery.d.ts +39 -0
  5. package/dist/chaos-manager/src/services/hooks/useListExperimentMetadataQuery.js +14 -0
  6. package/dist/chaos-manager/src/services/hooks/useListFaultMetadataQuery.d.ts +39 -0
  7. package/dist/chaos-manager/src/services/hooks/useListFaultMetadataQuery.js +14 -0
  8. package/dist/chaos-manager/src/services/hooks/useListGamedayMetadataQuery.d.ts +39 -0
  9. package/dist/chaos-manager/src/services/hooks/useListGamedayMetadataQuery.js +14 -0
  10. package/dist/chaos-manager/src/services/hooks/useListHubMetadataQuery.d.ts +39 -0
  11. package/dist/chaos-manager/src/services/hooks/useListHubMetadataQuery.js +14 -0
  12. package/dist/chaos-manager/src/services/hooks/useListMachineChaosInfraQuery.d.ts +10 -0
  13. package/dist/chaos-manager/src/services/hooks/useListProbeMetadataQuery.d.ts +39 -0
  14. package/dist/chaos-manager/src/services/hooks/useListProbeMetadataQuery.js +14 -0
  15. package/dist/chaos-manager/src/services/hooks/useRegisterMachineInfraMutation.d.ts +1 -0
  16. package/dist/chaos-manager/src/services/hooks/useTestLegacyKubernetesChaosInfraConnectionQuery.d.ts +25 -0
  17. package/dist/chaos-manager/src/services/hooks/useTestLegacyKubernetesChaosInfraConnectionQuery.js +14 -0
  18. package/dist/chaos-manager/src/services/hooks/useUpdateMachineInfraMutation.d.ts +1 -0
  19. package/dist/chaos-manager/src/services/index.d.ts +18 -4
  20. package/dist/chaos-manager/src/services/index.js +7 -1
  21. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerModelsSharedMetadata.d.ts +6 -0
  22. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTypesApiMachineInfraInfra.d.ts +5 -0
  23. package/dist/chaos-manager/src/services/schemas/InfraInfraStatus.d.ts +1 -0
  24. package/dist/chaos-manager/src/services/schemas/InfraListInfraRequest.d.ts +0 -19
  25. package/dist/chaos-manager/src/services/schemas/InfraRegisterInfraRequest.d.ts +0 -14
  26. package/dist/chaos-manager/src/services/schemas/InfraUpdateInfraRequest.d.ts +0 -7
  27. package/dist/chaos-manager/src/services/schemas/InfraUpdateInfraRequest.js +3 -0
  28. package/dist/chaos-manager/src/services/schemas/SharedListMetadataRequest.d.ts +3 -0
  29. package/dist/chaos-manager/src/services/schemas/SharedListMetadataRequest.js +4 -0
  30. package/dist/chaos-manager/src/services/schemas/SharedListMetadataResponse.d.ts +7 -0
  31. package/dist/chaos-manager/src/services/schemas/SharedListMetadataResponse.js +1 -0
  32. package/package.json +1 -1
  33. package/dist/chaos-manager/src/services/hooks/useTestLegacyKubernetesChaosInfraConnectionMutation.d.ts +0 -26
  34. package/dist/chaos-manager/src/services/hooks/useTestLegacyKubernetesChaosInfraConnectionMutation.js +0 -14
  35. package/dist/chaos-manager/src/services/schemas/InfraIdentifiers.d.ts +0 -5
  36. package/dist/chaos-manager/src/services/schemas/InfraPagination.d.ts +0 -10
  37. /package/dist/chaos-manager/src/services/schemas/{InfraIdentifiers.js → GithubComHarnessHceSaasGraphqlServerModelsSharedMetadata.js} +0 -0
  38. /package/dist/chaos-manager/src/services/schemas/{InfraPagination.js → InfraInfraStatus.js} +0 -0
@@ -8,6 +8,8 @@ export interface DeleteMachineChaosInfraMutationQueryParams {
8
8
  accountIdentifier: string;
9
9
  organizationIdentifier: string;
10
10
  projectIdentifier: string;
11
+ infraType: string;
12
+ forceDelete?: boolean;
11
13
  }
12
14
  export type DeleteMachineChaosInfraOkResponse = string;
13
15
  export type DeleteMachineChaosInfraErrorResponse = ApiRestError;
@@ -0,0 +1,39 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { SharedListMetadataResponse } from '../schemas/SharedListMetadataResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { SharedListMetadataRequest } from '../schemas/SharedListMetadataRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface ListActionMetadataQueryQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ /**
10
+ * @default 15
11
+ */
12
+ limit?: number;
13
+ organizationIdentifier?: string;
14
+ /**
15
+ * @default 0
16
+ */
17
+ page?: number;
18
+ projectIdentifier?: string;
19
+ search?: string;
20
+ sortAscending?: boolean;
21
+ sortField?: 'lastUpdated' | 'name';
22
+ tags?: string;
23
+ }
24
+ export type ListActionMetadataRequestBody = SharedListMetadataRequest;
25
+ export type ListActionMetadataOkResponse = SharedListMetadataResponse;
26
+ export type ListActionMetadataErrorResponse = ApiRestError;
27
+ export interface ListActionMetadataProps extends Omit<FetcherOptions<ListActionMetadataQueryQueryParams, ListActionMetadataRequestBody>, 'url'> {
28
+ queryParams: ListActionMetadataQueryQueryParams;
29
+ body: ListActionMetadataRequestBody;
30
+ }
31
+ export interface ListActionMetadataResponseContainer {
32
+ body: ListActionMetadataOkResponse;
33
+ headers: Headers;
34
+ }
35
+ export declare function listActionMetadata(props: ListActionMetadataProps): Promise<ListActionMetadataResponseContainer>;
36
+ /**
37
+ * lists action metadata
38
+ */
39
+ export declare function useListActionMetadataQuery(props: ListActionMetadataProps, options?: Omit<UseQueryOptions<ListActionMetadataResponseContainer, ListActionMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListActionMetadataResponseContainer, 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 listActionMetadata(props) {
7
+ return fetcher(Object.assign({ url: `/v3/actions/list-metadata`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * lists action metadata
11
+ */
12
+ export function useListActionMetadataQuery(props, options) {
13
+ return useQuery(['listActionMetadata', props.queryParams, props.body], ({ signal }) => listActionMetadata(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,39 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { SharedListMetadataResponse } from '../schemas/SharedListMetadataResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { SharedListMetadataRequest } from '../schemas/SharedListMetadataRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface ListExperimentMetadataQueryQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ /**
10
+ * @default 15
11
+ */
12
+ limit?: number;
13
+ organizationIdentifier?: string;
14
+ /**
15
+ * @default 0
16
+ */
17
+ page?: number;
18
+ projectIdentifier?: string;
19
+ search?: string;
20
+ sortAscending?: boolean;
21
+ sortField?: 'lastUpdated' | 'name';
22
+ tags?: string;
23
+ }
24
+ export type ListExperimentMetadataRequestBody = SharedListMetadataRequest;
25
+ export type ListExperimentMetadataOkResponse = SharedListMetadataResponse;
26
+ export type ListExperimentMetadataErrorResponse = ApiRestError;
27
+ export interface ListExperimentMetadataProps extends Omit<FetcherOptions<ListExperimentMetadataQueryQueryParams, ListExperimentMetadataRequestBody>, 'url'> {
28
+ queryParams: ListExperimentMetadataQueryQueryParams;
29
+ body: ListExperimentMetadataRequestBody;
30
+ }
31
+ export interface ListExperimentMetadataResponseContainer {
32
+ body: ListExperimentMetadataOkResponse;
33
+ headers: Headers;
34
+ }
35
+ export declare function listExperimentMetadata(props: ListExperimentMetadataProps): Promise<ListExperimentMetadataResponseContainer>;
36
+ /**
37
+ * lists experiment metadata
38
+ */
39
+ export declare function useListExperimentMetadataQuery(props: ListExperimentMetadataProps, options?: Omit<UseQueryOptions<ListExperimentMetadataResponseContainer, ListExperimentMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListExperimentMetadataResponseContainer, 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 listExperimentMetadata(props) {
7
+ return fetcher(Object.assign({ url: `/v3/experiments/list-metadata`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * lists experiment metadata
11
+ */
12
+ export function useListExperimentMetadataQuery(props, options) {
13
+ return useQuery(['listExperimentMetadata', props.queryParams, props.body], ({ signal }) => listExperimentMetadata(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,39 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { SharedListMetadataResponse } from '../schemas/SharedListMetadataResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { SharedListMetadataRequest } from '../schemas/SharedListMetadataRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface ListFaultMetadataQueryQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ /**
10
+ * @default 15
11
+ */
12
+ limit?: number;
13
+ organizationIdentifier?: string;
14
+ /**
15
+ * @default 0
16
+ */
17
+ page?: number;
18
+ projectIdentifier?: string;
19
+ search?: string;
20
+ sortAscending?: boolean;
21
+ sortField?: 'lastUpdated' | 'name';
22
+ tags?: string;
23
+ }
24
+ export type ListFaultMetadataRequestBody = SharedListMetadataRequest;
25
+ export type ListFaultMetadataOkResponse = SharedListMetadataResponse;
26
+ export type ListFaultMetadataErrorResponse = ApiRestError;
27
+ export interface ListFaultMetadataProps extends Omit<FetcherOptions<ListFaultMetadataQueryQueryParams, ListFaultMetadataRequestBody>, 'url'> {
28
+ queryParams: ListFaultMetadataQueryQueryParams;
29
+ body: ListFaultMetadataRequestBody;
30
+ }
31
+ export interface ListFaultMetadataResponseContainer {
32
+ body: ListFaultMetadataOkResponse;
33
+ headers: Headers;
34
+ }
35
+ export declare function listFaultMetadata(props: ListFaultMetadataProps): Promise<ListFaultMetadataResponseContainer>;
36
+ /**
37
+ * lists fault metadata
38
+ */
39
+ export declare function useListFaultMetadataQuery(props: ListFaultMetadataProps, options?: Omit<UseQueryOptions<ListFaultMetadataResponseContainer, ListFaultMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListFaultMetadataResponseContainer, 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 listFaultMetadata(props) {
7
+ return fetcher(Object.assign({ url: `/v3/faults/list-metadata`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * lists fault metadata
11
+ */
12
+ export function useListFaultMetadataQuery(props, options) {
13
+ return useQuery(['listFaultMetadata', props.queryParams, props.body], ({ signal }) => listFaultMetadata(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,39 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { SharedListMetadataResponse } from '../schemas/SharedListMetadataResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { SharedListMetadataRequest } from '../schemas/SharedListMetadataRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface ListGamedayMetadataQueryQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ /**
10
+ * @default 15
11
+ */
12
+ limit?: number;
13
+ organizationIdentifier?: string;
14
+ /**
15
+ * @default 0
16
+ */
17
+ page?: number;
18
+ projectIdentifier?: string;
19
+ search?: string;
20
+ sortAscending?: boolean;
21
+ sortField?: 'lastUpdated' | 'name';
22
+ tags?: string;
23
+ }
24
+ export type ListGamedayMetadataRequestBody = SharedListMetadataRequest;
25
+ export type ListGamedayMetadataOkResponse = SharedListMetadataResponse;
26
+ export type ListGamedayMetadataErrorResponse = ApiRestError;
27
+ export interface ListGamedayMetadataProps extends Omit<FetcherOptions<ListGamedayMetadataQueryQueryParams, ListGamedayMetadataRequestBody>, 'url'> {
28
+ queryParams: ListGamedayMetadataQueryQueryParams;
29
+ body: ListGamedayMetadataRequestBody;
30
+ }
31
+ export interface ListGamedayMetadataResponseContainer {
32
+ body: ListGamedayMetadataOkResponse;
33
+ headers: Headers;
34
+ }
35
+ export declare function listGamedayMetadata(props: ListGamedayMetadataProps): Promise<ListGamedayMetadataResponseContainer>;
36
+ /**
37
+ * lists gameday metadata
38
+ */
39
+ export declare function useListGamedayMetadataQuery(props: ListGamedayMetadataProps, options?: Omit<UseQueryOptions<ListGamedayMetadataResponseContainer, ListGamedayMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListGamedayMetadataResponseContainer, 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 listGamedayMetadata(props) {
7
+ return fetcher(Object.assign({ url: `/v3/gamedays/list-metadata`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * lists gameday metadata
11
+ */
12
+ export function useListGamedayMetadataQuery(props, options) {
13
+ return useQuery(['listGamedayMetadata', props.queryParams, props.body], ({ signal }) => listGamedayMetadata(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,39 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { SharedListMetadataResponse } from '../schemas/SharedListMetadataResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { SharedListMetadataRequest } from '../schemas/SharedListMetadataRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface ListHubMetadataQueryQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ /**
10
+ * @default 15
11
+ */
12
+ limit?: number;
13
+ organizationIdentifier?: string;
14
+ /**
15
+ * @default 0
16
+ */
17
+ page?: number;
18
+ projectIdentifier?: string;
19
+ search?: string;
20
+ sortAscending?: boolean;
21
+ sortField?: 'lastUpdated' | 'name';
22
+ tags?: string;
23
+ }
24
+ export type ListHubMetadataRequestBody = SharedListMetadataRequest;
25
+ export type ListHubMetadataOkResponse = SharedListMetadataResponse;
26
+ export type ListHubMetadataErrorResponse = ApiRestError;
27
+ export interface ListHubMetadataProps extends Omit<FetcherOptions<ListHubMetadataQueryQueryParams, ListHubMetadataRequestBody>, 'url'> {
28
+ queryParams: ListHubMetadataQueryQueryParams;
29
+ body: ListHubMetadataRequestBody;
30
+ }
31
+ export interface ListHubMetadataResponseContainer {
32
+ body: ListHubMetadataOkResponse;
33
+ headers: Headers;
34
+ }
35
+ export declare function listHubMetadata(props: ListHubMetadataProps): Promise<ListHubMetadataResponseContainer>;
36
+ /**
37
+ * lists hub metadata
38
+ */
39
+ export declare function useListHubMetadataQuery(props: ListHubMetadataProps, options?: Omit<UseQueryOptions<ListHubMetadataResponseContainer, ListHubMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListHubMetadataResponseContainer, 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 listHubMetadata(props) {
7
+ return fetcher(Object.assign({ url: `/v3/hubs/list-metadata`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * lists hub metadata
11
+ */
12
+ export function useListHubMetadataQuery(props, options) {
13
+ return useQuery(['listHubMetadata', props.queryParams, props.body], ({ signal }) => listHubMetadata(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -8,6 +8,16 @@ export interface ListMachineChaosInfraQueryQueryParams {
8
8
  organizationIdentifier: string;
9
9
  projectIdentifier: string;
10
10
  minimalResponse?: boolean;
11
+ infraType: string;
12
+ /**
13
+ * @default 0
14
+ */
15
+ page: number;
16
+ /**
17
+ * @default 10
18
+ */
19
+ limit: number;
20
+ search?: string;
11
21
  }
12
22
  export type ListMachineChaosInfraRequestBody = InfraListInfraRequest;
13
23
  export type ListMachineChaosInfraOkResponse = InfraListInfraResponse;
@@ -0,0 +1,39 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { SharedListMetadataResponse } from '../schemas/SharedListMetadataResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { SharedListMetadataRequest } from '../schemas/SharedListMetadataRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface ListProbeMetadataQueryQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ /**
10
+ * @default 15
11
+ */
12
+ limit?: number;
13
+ organizationIdentifier?: string;
14
+ /**
15
+ * @default 0
16
+ */
17
+ page?: number;
18
+ projectIdentifier?: string;
19
+ search?: string;
20
+ sortAscending?: boolean;
21
+ sortField?: 'lastUpdated' | 'name';
22
+ tags?: string;
23
+ }
24
+ export type ListProbeMetadataRequestBody = SharedListMetadataRequest;
25
+ export type ListProbeMetadataOkResponse = SharedListMetadataResponse;
26
+ export type ListProbeMetadataErrorResponse = ApiRestError;
27
+ export interface ListProbeMetadataProps extends Omit<FetcherOptions<ListProbeMetadataQueryQueryParams, ListProbeMetadataRequestBody>, 'url'> {
28
+ queryParams: ListProbeMetadataQueryQueryParams;
29
+ body: ListProbeMetadataRequestBody;
30
+ }
31
+ export interface ListProbeMetadataResponseContainer {
32
+ body: ListProbeMetadataOkResponse;
33
+ headers: Headers;
34
+ }
35
+ export declare function listProbeMetadata(props: ListProbeMetadataProps): Promise<ListProbeMetadataResponseContainer>;
36
+ /**
37
+ * lists probe metadata
38
+ */
39
+ export declare function useListProbeMetadataQuery(props: ListProbeMetadataProps, options?: Omit<UseQueryOptions<ListProbeMetadataResponseContainer, ListProbeMetadataErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListProbeMetadataResponseContainer, 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 listProbeMetadata(props) {
7
+ return fetcher(Object.assign({ url: `/v3/probes/list-metadata`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * lists probe metadata
11
+ */
12
+ export function useListProbeMetadataQuery(props, options) {
13
+ return useQuery(['listProbeMetadata', props.queryParams, props.body], ({ signal }) => listProbeMetadata(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -7,6 +7,7 @@ export interface RegisterMachineInfraMutationQueryParams {
7
7
  accountIdentifier: string;
8
8
  organizationIdentifier: string;
9
9
  projectIdentifier: string;
10
+ infraType: string;
10
11
  }
11
12
  export type RegisterMachineInfraRequestBody = InfraRegisterInfraRequest;
12
13
  export type RegisterMachineInfraOkResponse = InfraRegisterInfraResponse;
@@ -0,0 +1,25 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ApiRestError } from '../schemas/ApiRestError';
3
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
4
+ export interface TestLegacyKubernetesChaosInfraConnectionQueryPathParams {
5
+ id: string;
6
+ }
7
+ export interface TestLegacyKubernetesChaosInfraConnectionQueryQueryParams {
8
+ accountIdentifier: string;
9
+ organizationIdentifier: string;
10
+ projectIdentifier: string;
11
+ }
12
+ export type TestLegacyKubernetesChaosInfraConnectionOkResponse = boolean;
13
+ export type TestLegacyKubernetesChaosInfraConnectionErrorResponse = ApiRestError;
14
+ export interface TestLegacyKubernetesChaosInfraConnectionProps extends TestLegacyKubernetesChaosInfraConnectionQueryPathParams, Omit<FetcherOptions<TestLegacyKubernetesChaosInfraConnectionQueryQueryParams, unknown>, 'url'> {
15
+ queryParams: TestLegacyKubernetesChaosInfraConnectionQueryQueryParams;
16
+ }
17
+ export interface TestLegacyKubernetesChaosInfraConnectionResponseContainer {
18
+ body: TestLegacyKubernetesChaosInfraConnectionOkResponse;
19
+ headers: Headers;
20
+ }
21
+ export declare function testLegacyKubernetesChaosInfraConnection(props: TestLegacyKubernetesChaosInfraConnectionProps): Promise<TestLegacyKubernetesChaosInfraConnectionResponseContainer>;
22
+ /**
23
+ * Test legacy kubernetes chaos infrastructure connection
24
+ */
25
+ export declare function useTestLegacyKubernetesChaosInfraConnectionQuery(props: TestLegacyKubernetesChaosInfraConnectionProps, options?: Omit<UseQueryOptions<TestLegacyKubernetesChaosInfraConnectionResponseContainer, TestLegacyKubernetesChaosInfraConnectionErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<TestLegacyKubernetesChaosInfraConnectionResponseContainer, 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 testLegacyKubernetesChaosInfraConnection(props) {
7
+ return fetcher(Object.assign({ url: `/rest/kubernetes/infra/${props.id}/health`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Test legacy kubernetes chaos infrastructure connection
11
+ */
12
+ export function useTestLegacyKubernetesChaosInfraConnectionQuery(props, options) {
13
+ return useQuery(['testLegacyKubernetesChaosInfraConnection', props.id, props.queryParams], ({ signal }) => testLegacyKubernetesChaosInfraConnection(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -10,6 +10,7 @@ export interface UpdateMachineInfraMutationQueryParams {
10
10
  accountIdentifier: string;
11
11
  organizationIdentifier: string;
12
12
  projectIdentifier: string;
13
+ infraType: string;
13
14
  }
14
15
  export type UpdateMachineInfraRequestBody = InfraUpdateInfraRequest;
15
16
  export type UpdateMachineInfraOkResponse = InfraUpdateInfraResponse;
@@ -220,6 +220,8 @@ export type { ImportActionErrorResponse, ImportActionMutationProps, ImportAction
220
220
  export { importAction, useImportActionMutation } from './hooks/useImportActionMutation';
221
221
  export type { ImportProbeErrorResponse, ImportProbeMutationProps, ImportProbeMutationQueryParams, ImportProbeOkResponse, ImportProbeProps, ImportProbeRequestBody, } from './hooks/useImportProbeMutation';
222
222
  export { importProbe, useImportProbeMutation } from './hooks/useImportProbeMutation';
223
+ export type { ListActionMetadataErrorResponse, ListActionMetadataOkResponse, ListActionMetadataProps, ListActionMetadataQueryQueryParams, ListActionMetadataRequestBody, } from './hooks/useListActionMetadataQuery';
224
+ export { listActionMetadata, useListActionMetadataQuery } from './hooks/useListActionMetadataQuery';
223
225
  export type { ListActionTemplateErrorResponse, ListActionTemplateOkResponse, ListActionTemplateProps, ListActionTemplateQueryQueryParams, } from './hooks/useListActionTemplateQuery';
224
226
  export { listActionTemplate, useListActionTemplateQuery } from './hooks/useListActionTemplateQuery';
225
227
  export type { ListActionTemplateRevisionsErrorResponse, ListActionTemplateRevisionsOkResponse, ListActionTemplateRevisionsProps, ListActionTemplateRevisionsQueryPathParams, ListActionTemplateRevisionsQueryQueryParams, } from './hooks/useListActionTemplateRevisionsQuery';
@@ -236,6 +238,8 @@ export type { ListChaosV2ExperimentErrorResponse, ListChaosV2ExperimentOkRespons
236
238
  export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
237
239
  export type { ListConditionErrorResponse, ListConditionOkResponse, ListConditionProps, ListConditionQueryQueryParams, } from './hooks/useListConditionQuery';
238
240
  export { listCondition, useListConditionQuery } from './hooks/useListConditionQuery';
241
+ export type { ListExperimentMetadataErrorResponse, ListExperimentMetadataOkResponse, ListExperimentMetadataProps, ListExperimentMetadataQueryQueryParams, ListExperimentMetadataRequestBody, } from './hooks/useListExperimentMetadataQuery';
242
+ export { listExperimentMetadata, useListExperimentMetadataQuery, } from './hooks/useListExperimentMetadataQuery';
239
243
  export type { ListExperimentRunsOfFaultErrorResponse, ListExperimentRunsOfFaultOkResponse, ListExperimentRunsOfFaultProps, ListExperimentRunsOfFaultQueryPathParams, ListExperimentRunsOfFaultQueryQueryParams, } from './hooks/useListExperimentRunsOfFaultQuery';
240
244
  export { listExperimentRunsOfFault, useListExperimentRunsOfFaultQuery, } from './hooks/useListExperimentRunsOfFaultQuery';
241
245
  export type { ListExperimentTemplateErrorResponse, ListExperimentTemplateOkResponse, ListExperimentTemplateProps, ListExperimentTemplateQueryQueryParams, } from './hooks/useListExperimentTemplateQuery';
@@ -244,6 +248,8 @@ export type { ListExperimentsErrorResponse, ListExperimentsOkResponse, ListExper
244
248
  export { listExperiments, useListExperimentsQuery } from './hooks/useListExperimentsQuery';
245
249
  export type { ListExperimentsWithActiveInfrasMinimalNotificationErrorResponse, ListExperimentsWithActiveInfrasMinimalNotificationOkResponse, ListExperimentsWithActiveInfrasMinimalNotificationProps, ListExperimentsWithActiveInfrasMinimalNotificationQueryQueryParams, } from './hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery';
246
250
  export { listExperimentsWithActiveInfrasMinimalNotification, useListExperimentsWithActiveInfrasMinimalNotificationQuery, } from './hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery';
251
+ export type { ListFaultMetadataErrorResponse, ListFaultMetadataOkResponse, ListFaultMetadataProps, ListFaultMetadataQueryQueryParams, ListFaultMetadataRequestBody, } from './hooks/useListFaultMetadataQuery';
252
+ export { listFaultMetadata, useListFaultMetadataQuery } from './hooks/useListFaultMetadataQuery';
247
253
  export type { ListFaultErrorResponse, ListFaultOkResponse, ListFaultProps, ListFaultQueryQueryParams, } from './hooks/useListFaultQuery';
248
254
  export { listFault, useListFaultQuery } from './hooks/useListFaultQuery';
249
255
  export type { ListFaultTemplateErrorResponse, ListFaultTemplateOkResponse, ListFaultTemplateProps, ListFaultTemplateQueryQueryParams, } from './hooks/useListFaultTemplateQuery';
@@ -252,12 +258,16 @@ export type { ListFaultv2ErrorResponse, ListFaultv2OkResponse, ListFaultv2Props,
252
258
  export { listFaultv2, useListFaultv2Query } from './hooks/useListFaultv2Query';
253
259
  export type { ListFunctionErrorResponse, ListFunctionOkResponse, ListFunctionProps, ListFunctionQueryPathParams, ListFunctionQueryQueryParams, } from './hooks/useListFunctionQuery';
254
260
  export { listFunction, useListFunctionQuery } from './hooks/useListFunctionQuery';
261
+ export type { ListGamedayMetadataErrorResponse, ListGamedayMetadataOkResponse, ListGamedayMetadataProps, ListGamedayMetadataQueryQueryParams, ListGamedayMetadataRequestBody, } from './hooks/useListGamedayMetadataQuery';
262
+ export { listGamedayMetadata, useListGamedayMetadataQuery, } from './hooks/useListGamedayMetadataQuery';
255
263
  export type { ListGamedayRunV2ErrorResponse, ListGamedayRunV2OkResponse, ListGamedayRunV2Props, ListGamedayRunV2QueryPathParams, ListGamedayRunV2QueryQueryParams, } from './hooks/useListGamedayRunV2Query';
256
264
  export { listGamedayRunV2, useListGamedayRunV2Query } from './hooks/useListGamedayRunV2Query';
257
265
  export type { ListGamedayV2ErrorResponse, ListGamedayV2OkResponse, ListGamedayV2Props, ListGamedayV2QueryQueryParams, } from './hooks/useListGamedayV2Query';
258
266
  export { listGamedayV2, useListGamedayV2Query } from './hooks/useListGamedayV2Query';
259
267
  export type { ListHarnessInfraErrorResponse, ListHarnessInfraOkResponse, ListHarnessInfraProps, ListHarnessInfraQueryQueryParams, } from './hooks/useListHarnessInfraQuery';
260
268
  export { listHarnessInfra, useListHarnessInfraQuery } from './hooks/useListHarnessInfraQuery';
269
+ export type { ListHubMetadataErrorResponse, ListHubMetadataOkResponse, ListHubMetadataProps, ListHubMetadataQueryQueryParams, ListHubMetadataRequestBody, } from './hooks/useListHubMetadataQuery';
270
+ export { listHubMetadata, useListHubMetadataQuery } from './hooks/useListHubMetadataQuery';
261
271
  export type { ListInfraV2ErrorResponse, ListInfraV2OkResponse, ListInfraV2Props, ListInfraV2QueryQueryParams, ListInfraV2RequestBody, } from './hooks/useListInfraV2Query';
262
272
  export { listInfraV2, useListInfraV2Query } from './hooks/useListInfraV2Query';
263
273
  export type { ListInputSetErrorResponse, ListInputSetOkResponse, ListInputSetProps, ListInputSetQueryPathParams, ListInputSetQueryQueryParams, } from './hooks/useListInputSetQuery';
@@ -270,6 +280,8 @@ export type { ListMachineChaosInfraErrorResponse, ListMachineChaosInfraOkRespons
270
280
  export { listMachineChaosInfra, useListMachineChaosInfraQuery, } from './hooks/useListMachineChaosInfraQuery';
271
281
  export type { ListPipelineOnboardingErrorResponse, ListPipelineOnboardingOkResponse, ListPipelineOnboardingProps, ListPipelineOnboardingQueryQueryParams, } from './hooks/useListPipelineOnboardingQuery';
272
282
  export { listPipelineOnboarding, useListPipelineOnboardingQuery, } from './hooks/useListPipelineOnboardingQuery';
283
+ export type { ListProbeMetadataErrorResponse, ListProbeMetadataOkResponse, ListProbeMetadataProps, ListProbeMetadataQueryQueryParams, ListProbeMetadataRequestBody, } from './hooks/useListProbeMetadataQuery';
284
+ export { listProbeMetadata, useListProbeMetadataQuery } from './hooks/useListProbeMetadataQuery';
273
285
  export type { ListProbeTemplateErrorResponse, ListProbeTemplateOkResponse, ListProbeTemplateProps, ListProbeTemplateQueryQueryParams, } from './hooks/useListProbeTemplateQuery';
274
286
  export { listProbeTemplate, useListProbeTemplateQuery } from './hooks/useListProbeTemplateQuery';
275
287
  export type { ListProbesErrorResponse, ListProbesOkResponse, ListProbesProps, ListProbesQueryQueryParams, } from './hooks/useListProbesQuery';
@@ -326,8 +338,8 @@ export type { StopChaosV2ExperimentErrorResponse, StopChaosV2ExperimentMutationP
326
338
  export { stopChaosV2Experiment, useStopChaosV2ExperimentMutation, } from './hooks/useStopChaosV2ExperimentMutation';
327
339
  export type { StopOnboardingExperimentsErrorResponse, StopOnboardingExperimentsMutationPathParams, StopOnboardingExperimentsMutationProps, StopOnboardingExperimentsMutationQueryParams, StopOnboardingExperimentsOkResponse, StopOnboardingExperimentsProps, } from './hooks/useStopOnboardingExperimentsMutation';
328
340
  export { stopOnboardingExperiments, useStopOnboardingExperimentsMutation, } from './hooks/useStopOnboardingExperimentsMutation';
329
- export type { TestLegacyKubernetesChaosInfraConnectionErrorResponse, TestLegacyKubernetesChaosInfraConnectionMutationPathParams, TestLegacyKubernetesChaosInfraConnectionMutationProps, TestLegacyKubernetesChaosInfraConnectionMutationQueryParams, TestLegacyKubernetesChaosInfraConnectionOkResponse, TestLegacyKubernetesChaosInfraConnectionProps, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionMutation';
330
- export { testLegacyKubernetesChaosInfraConnection, useTestLegacyKubernetesChaosInfraConnectionMutation, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionMutation';
341
+ export type { TestLegacyKubernetesChaosInfraConnectionErrorResponse, TestLegacyKubernetesChaosInfraConnectionOkResponse, TestLegacyKubernetesChaosInfraConnectionProps, TestLegacyKubernetesChaosInfraConnectionQueryPathParams, TestLegacyKubernetesChaosInfraConnectionQueryQueryParams, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionQuery';
342
+ export { testLegacyKubernetesChaosInfraConnection, useTestLegacyKubernetesChaosInfraConnectionQuery, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionQuery';
331
343
  export type { UpdateActionErrorResponse, UpdateActionMutationPathParams, UpdateActionMutationProps, UpdateActionMutationQueryParams, UpdateActionOkResponse, UpdateActionProps, UpdateActionRequestBody, } from './hooks/useUpdateActionMutation';
332
344
  export { updateAction, useUpdateActionMutation } from './hooks/useUpdateActionMutation';
333
345
  export type { UpdateActionTemplateErrorResponse, UpdateActionTemplateMutationPathParams, UpdateActionTemplateMutationProps, UpdateActionTemplateMutationQueryParams, UpdateActionTemplateOkResponse, UpdateActionTemplateProps, UpdateActionTemplateRequestBody, } from './hooks/useUpdateActionTemplateMutation';
@@ -640,6 +652,7 @@ export type { GithubComHarnessHceSaasGraphqlServerGraphModelPagination } from '.
640
652
  export type { GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraRequest } from './schemas/GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraRequest';
641
653
  export type { GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraResponse } from './schemas/GithubComHarnessHceSaasGraphqlServerGraphModelRegisterInfraResponse';
642
654
  export type { GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails } from './schemas/GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails';
655
+ export type { GithubComHarnessHceSaasGraphqlServerModelsSharedMetadata } from './schemas/GithubComHarnessHceSaasGraphqlServerModelsSharedMetadata';
643
656
  export type { GithubComHarnessHceSaasGraphqlServerPkgActionsAction } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgActionsAction';
644
657
  export type { GithubComHarnessHceSaasGraphqlServerPkgChaosV2ExperimentRunTypesUserDetails } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgChaosV2ExperimentRunTypesUserDetails';
645
658
  export type { GithubComHarnessHceSaasGraphqlServerPkgChaosV2ProbesTypesUserDetails } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgChaosV2ProbesTypesUserDetails';
@@ -721,15 +734,14 @@ export type { InfraContainerInfraInstallationManifest } from './schemas/InfraCon
721
734
  export type { InfraContainerInfraUserInputs } from './schemas/InfraContainerInfraUserInputs';
722
735
  export type { InfraDeploymentType } from './schemas/InfraDeploymentType';
723
736
  export type { InfraEcsInstallationManifest } from './schemas/InfraEcsInstallationManifest';
724
- export type { InfraIdentifiers } from './schemas/InfraIdentifiers';
725
737
  export type { InfraInfraFilterInput } from './schemas/InfraInfraFilterInput';
726
738
  export type { InfraInfraSpecificUserInputs } from './schemas/InfraInfraSpecificUserInputs';
739
+ export type { InfraInfraStatus } from './schemas/InfraInfraStatus';
727
740
  export type { InfraInfraType } from './schemas/InfraInfraType';
728
741
  export type { InfraInfraVersionDetails } from './schemas/InfraInfraVersionDetails';
729
742
  export type { InfraInstallationManifest } from './schemas/InfraInstallationManifest';
730
743
  export type { InfraListInfraRequest } from './schemas/InfraListInfraRequest';
731
744
  export type { InfraListInfraResponse } from './schemas/InfraListInfraResponse';
732
- export type { InfraPagination } from './schemas/InfraPagination';
733
745
  export type { InfraPlatformType } from './schemas/InfraPlatformType';
734
746
  export type { InfraRegisterInfraRequest } from './schemas/InfraRegisterInfraRequest';
735
747
  export type { InfraRegisterInfraResponse } from './schemas/InfraRegisterInfraResponse';
@@ -930,6 +942,8 @@ export type { SecurityGovernanceRecurrenceSpec } from './schemas/SecurityGoverna
930
942
  export type { SecurityGovernanceTimeWindow } from './schemas/SecurityGovernanceTimeWindow';
931
943
  export type { SecurityGovernanceWorkload } from './schemas/SecurityGovernanceWorkload';
932
944
  export type { SharedError } from './schemas/SharedError';
945
+ export type { SharedListMetadataRequest } from './schemas/SharedListMetadataRequest';
946
+ export type { SharedListMetadataResponse } from './schemas/SharedListMetadataResponse';
933
947
  export type { TargetnetworkmapExperimentCreationMode } from './schemas/TargetnetworkmapExperimentCreationMode';
934
948
  export type { TargetnetworkmapExperimentRunDetail } from './schemas/TargetnetworkmapExperimentRunDetail';
935
949
  export type { TargetnetworkmapStatus } from './schemas/TargetnetworkmapStatus';
@@ -109,6 +109,7 @@ export { getV2Onboarding, useGetV2OnboardingQuery } from './hooks/useGetV2Onboar
109
109
  export { healthCheckV3, useHealthCheckV3Query } from './hooks/useHealthCheckV3Query';
110
110
  export { importAction, useImportActionMutation } from './hooks/useImportActionMutation';
111
111
  export { importProbe, useImportProbeMutation } from './hooks/useImportProbeMutation';
112
+ export { listActionMetadata, useListActionMetadataQuery } from './hooks/useListActionMetadataQuery';
112
113
  export { listActionTemplate, useListActionTemplateQuery } from './hooks/useListActionTemplateQuery';
113
114
  export { listActionTemplateRevisions, useListActionTemplateRevisionsQuery, } from './hooks/useListActionTemplateRevisionsQuery';
114
115
  export { listActions, useListActionsQuery } from './hooks/useListActionsQuery';
@@ -117,23 +118,28 @@ export { listChaosEnabledInfraV2, useListChaosEnabledInfraV2Query, } from './hoo
117
118
  export { listChaosHub, useListChaosHubQuery } from './hooks/useListChaosHubQuery';
118
119
  export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
119
120
  export { listCondition, useListConditionQuery } from './hooks/useListConditionQuery';
121
+ export { listExperimentMetadata, useListExperimentMetadataQuery, } from './hooks/useListExperimentMetadataQuery';
120
122
  export { listExperimentRunsOfFault, useListExperimentRunsOfFaultQuery, } from './hooks/useListExperimentRunsOfFaultQuery';
121
123
  export { listExperimentTemplate, useListExperimentTemplateQuery, } from './hooks/useListExperimentTemplateQuery';
122
124
  export { listExperiments, useListExperimentsQuery } from './hooks/useListExperimentsQuery';
123
125
  export { listExperimentsWithActiveInfrasMinimalNotification, useListExperimentsWithActiveInfrasMinimalNotificationQuery, } from './hooks/useListExperimentsWithActiveInfrasMinimalNotificationQuery';
126
+ export { listFaultMetadata, useListFaultMetadataQuery } from './hooks/useListFaultMetadataQuery';
124
127
  export { listFault, useListFaultQuery } from './hooks/useListFaultQuery';
125
128
  export { listFaultTemplate, useListFaultTemplateQuery } from './hooks/useListFaultTemplateQuery';
126
129
  export { listFaultv2, useListFaultv2Query } from './hooks/useListFaultv2Query';
127
130
  export { listFunction, useListFunctionQuery } from './hooks/useListFunctionQuery';
131
+ export { listGamedayMetadata, useListGamedayMetadataQuery, } from './hooks/useListGamedayMetadataQuery';
128
132
  export { listGamedayRunV2, useListGamedayRunV2Query } from './hooks/useListGamedayRunV2Query';
129
133
  export { listGamedayV2, useListGamedayV2Query } from './hooks/useListGamedayV2Query';
130
134
  export { listHarnessInfra, useListHarnessInfraQuery } from './hooks/useListHarnessInfraQuery';
135
+ export { listHubMetadata, useListHubMetadataQuery } from './hooks/useListHubMetadataQuery';
131
136
  export { listInfraV2, useListInfraV2Query } from './hooks/useListInfraV2Query';
132
137
  export { listInputSet, useListInputSetQuery } from './hooks/useListInputSetQuery';
133
138
  export { listK8sInfrasV2, useListK8sInfrasV2Mutation } from './hooks/useListK8sInfrasV2Mutation';
134
139
  export { listLegacyKubernetesChaosInfra, useListLegacyKubernetesChaosInfraMutation, } from './hooks/useListLegacyKubernetesChaosInfraMutation';
135
140
  export { listMachineChaosInfra, useListMachineChaosInfraQuery, } from './hooks/useListMachineChaosInfraQuery';
136
141
  export { listPipelineOnboarding, useListPipelineOnboardingQuery, } from './hooks/useListPipelineOnboardingQuery';
142
+ export { listProbeMetadata, useListProbeMetadataQuery } from './hooks/useListProbeMetadataQuery';
137
143
  export { listProbeTemplate, useListProbeTemplateQuery } from './hooks/useListProbeTemplateQuery';
138
144
  export { listProbes, useListProbesQuery } from './hooks/useListProbesQuery';
139
145
  export { listRecommendations, useListRecommendationsQuery, } from './hooks/useListRecommendationsQuery';
@@ -162,7 +168,7 @@ export { runRecommendation, useRunRecommendationMutation, } from './hooks/useRun
162
168
  export { saveChaosV2Experiment, useSaveChaosV2ExperimentMutation, } from './hooks/useSaveChaosV2ExperimentMutation';
163
169
  export { stopChaosV2Experiment, useStopChaosV2ExperimentMutation, } from './hooks/useStopChaosV2ExperimentMutation';
164
170
  export { stopOnboardingExperiments, useStopOnboardingExperimentsMutation, } from './hooks/useStopOnboardingExperimentsMutation';
165
- export { testLegacyKubernetesChaosInfraConnection, useTestLegacyKubernetesChaosInfraConnectionMutation, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionMutation';
171
+ export { testLegacyKubernetesChaosInfraConnection, useTestLegacyKubernetesChaosInfraConnectionQuery, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionQuery';
166
172
  export { updateAction, useUpdateActionMutation } from './hooks/useUpdateActionMutation';
167
173
  export { updateActionTemplate, useUpdateActionTemplateMutation, } from './hooks/useUpdateActionTemplateMutation';
168
174
  export { updateChaosExperimentExecutionNode, useUpdateChaosExperimentExecutionNodeMutation, } from './hooks/useUpdateChaosExperimentExecutionNodeMutation';
@@ -0,0 +1,6 @@
1
+ export interface GithubComHarnessHceSaasGraphqlServerModelsSharedMetadata {
2
+ description?: string;
3
+ identity?: string;
4
+ name?: string;
5
+ tags?: string[];
6
+ }
@@ -1,4 +1,5 @@
1
1
  import type { InfraUserDetails } from '../schemas/InfraUserDetails';
2
+ import type { InfraInfraStatus } from '../schemas/InfraInfraStatus';
2
3
  import type { InfraRegisterInfraUserInputs } from '../schemas/InfraRegisterInfraUserInputs';
3
4
  export interface GithubComHarnessHceSaasHceSdkTypesApiMachineInfraInfra {
4
5
  /**
@@ -61,6 +62,10 @@ export interface GithubComHarnessHceSaasHceSdkTypesApiMachineInfraInfra {
61
62
  * Timestamp when the infra got connected
62
63
  */
63
64
  startTime?: string;
65
+ /**
66
+ * Status of the infrastructure
67
+ */
68
+ status?: InfraInfraStatus;
64
69
  /**
65
70
  * Tags of the infra
66
71
  */
@@ -0,0 +1 @@
1
+ export type InfraInfraStatus = 'ACTIVE' | 'INACTIVE' | 'PENDING';
@@ -1,13 +1,6 @@
1
1
  import type { InfraInfraFilterInput } from '../schemas/InfraInfraFilterInput';
2
- import type { InfraIdentifiers } from '../schemas/InfraIdentifiers';
3
- import type { InfraInfraType } from '../schemas/InfraInfraType';
4
- import type { InfraPagination } from '../schemas/InfraPagination';
5
2
  import type { InfraV2SortInput } from '../schemas/InfraV2SortInput';
6
3
  export interface InfraListInfraRequest {
7
- /**
8
- * CorrelationID for the request
9
- */
10
- correlationId?: string;
11
4
  /**
12
5
  * Environment ID
13
6
  */
@@ -16,22 +9,10 @@ export interface InfraListInfraRequest {
16
9
  * Details for fetching filtered data
17
10
  */
18
11
  filter?: InfraInfraFilterInput;
19
- /**
20
- * Identifiers for the infra
21
- */
22
- identifiers?: InfraIdentifiers;
23
12
  /**
24
13
  * Array of infra IDs for which details will be fetched
25
14
  */
26
15
  infraIDs?: string[];
27
- /**
28
- * InfraType of the infra
29
- */
30
- infraType?: InfraInfraType;
31
- /**
32
- * Details for fetching paginated data
33
- */
34
- pagination?: InfraPagination;
35
16
  /**
36
17
  * Sort the infrastructures based on field
37
18
  */
@@ -1,12 +1,6 @@
1
1
  import type { InfraUserDetails } from '../schemas/InfraUserDetails';
2
- import type { InfraIdentifiers } from '../schemas/InfraIdentifiers';
3
- import type { InfraInfraType } from '../schemas/InfraInfraType';
4
2
  import type { InfraRegisterInfraUserInputs } from '../schemas/InfraRegisterInfraUserInputs';
5
3
  export interface InfraRegisterInfraRequest {
6
- /**
7
- * CorrelationID for the request
8
- */
9
- correlationId?: string;
10
4
  /**
11
5
  * CreatedBy for the infra
12
6
  */
@@ -19,14 +13,6 @@ export interface InfraRegisterInfraRequest {
19
13
  * Environment ID for the infra
20
14
  */
21
15
  environmentID?: string;
22
- /**
23
- * Identifier for the infra
24
- */
25
- identifier?: InfraIdentifiers;
26
- /**
27
- * InfraType of the infra
28
- */
29
- infraType?: InfraInfraType;
30
16
  /**
31
17
  * Name of the infra
32
18
  */
@@ -1,13 +1,6 @@
1
- import type { InfraIdentifiers } from '../schemas/InfraIdentifiers';
2
- import type { InfraInfraType } from '../schemas/InfraInfraType';
3
1
  export interface InfraUpdateInfraRequest {
4
- correlationID?: string;
5
2
  description?: string;
6
3
  environmentID?: string;
7
- identifier?: InfraIdentifiers;
8
- infraID?: string;
9
- infraType?: InfraInfraType;
10
4
  name?: string;
11
5
  tags?: string[];
12
- userID?: string;
13
6
  }
@@ -1 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
1
4
  export {};
@@ -0,0 +1,3 @@
1
+ export interface SharedListMetadataRequest {
2
+ identifiers?: string[];
3
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { GithubComHarnessHceSaasGraphqlServerModelsSharedMetadata } from '../schemas/GithubComHarnessHceSaasGraphqlServerModelsSharedMetadata';
2
+ import type { GithubComHarnessHceSaasGraphqlServerApiPagination } from '../schemas/GithubComHarnessHceSaasGraphqlServerApiPagination';
3
+ export interface SharedListMetadataResponse {
4
+ correlationID?: string;
5
+ items?: GithubComHarnessHceSaasGraphqlServerModelsSharedMetadata[];
6
+ pagination?: GithubComHarnessHceSaasGraphqlServerApiPagination;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.33.1",
3
+ "version": "1.35.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,26 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ApiRestError } from '../schemas/ApiRestError';
3
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
4
- export interface TestLegacyKubernetesChaosInfraConnectionMutationPathParams {
5
- id: string;
6
- }
7
- export interface TestLegacyKubernetesChaosInfraConnectionMutationQueryParams {
8
- accountIdentifier: string;
9
- organizationIdentifier: string;
10
- projectIdentifier: string;
11
- }
12
- export type TestLegacyKubernetesChaosInfraConnectionOkResponse = boolean;
13
- export type TestLegacyKubernetesChaosInfraConnectionErrorResponse = ApiRestError;
14
- export interface TestLegacyKubernetesChaosInfraConnectionProps extends TestLegacyKubernetesChaosInfraConnectionMutationPathParams, Omit<FetcherOptions<TestLegacyKubernetesChaosInfraConnectionMutationQueryParams, unknown>, 'url'> {
15
- queryParams: TestLegacyKubernetesChaosInfraConnectionMutationQueryParams;
16
- }
17
- export interface TestLegacyKubernetesChaosInfraConnectionResponseContainer {
18
- body: TestLegacyKubernetesChaosInfraConnectionOkResponse;
19
- headers: Headers;
20
- }
21
- export declare function testLegacyKubernetesChaosInfraConnection(props: TestLegacyKubernetesChaosInfraConnectionProps): Promise<TestLegacyKubernetesChaosInfraConnectionResponseContainer>;
22
- export type TestLegacyKubernetesChaosInfraConnectionMutationProps<T extends keyof TestLegacyKubernetesChaosInfraConnectionProps> = Omit<TestLegacyKubernetesChaosInfraConnectionProps, T> & Partial<Pick<TestLegacyKubernetesChaosInfraConnectionProps, T>>;
23
- /**
24
- * Test legacy kubernetes chaos infrastructure connection
25
- */
26
- export declare function useTestLegacyKubernetesChaosInfraConnectionMutation<T extends keyof TestLegacyKubernetesChaosInfraConnectionProps>(props: Pick<Partial<TestLegacyKubernetesChaosInfraConnectionProps>, T>, options?: Omit<UseMutationOptions<TestLegacyKubernetesChaosInfraConnectionResponseContainer, TestLegacyKubernetesChaosInfraConnectionErrorResponse, TestLegacyKubernetesChaosInfraConnectionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<TestLegacyKubernetesChaosInfraConnectionResponseContainer, ApiRestError, TestLegacyKubernetesChaosInfraConnectionMutationProps<T>, unknown>;
@@ -1,14 +0,0 @@
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 testLegacyKubernetesChaosInfraConnection(props) {
7
- return fetcher(Object.assign({ url: `/rest/kubernetes/infra/${props.id}/health`, method: 'POST' }, props));
8
- }
9
- /**
10
- * Test legacy kubernetes chaos infrastructure connection
11
- */
12
- export function useTestLegacyKubernetesChaosInfraConnectionMutation(props, options) {
13
- return useMutation((mutateProps) => testLegacyKubernetesChaosInfraConnection(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,5 +0,0 @@
1
- export interface InfraIdentifiers {
2
- accountIdentifier?: string;
3
- orgIdentifier?: string;
4
- projectIdentifier?: string;
5
- }
@@ -1,10 +0,0 @@
1
- export interface InfraPagination {
2
- /**
3
- * Number of data to be fetched
4
- */
5
- limit?: number;
6
- /**
7
- * Page number for which data will be fetched
8
- */
9
- page?: number;
10
- }