@harnessio/react-chaos-manager-client 1.42.0 → 1.44.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 (32) hide show
  1. package/dist/chaos-manager/src/services/hooks/useGetExperimentOrTemplateVariableQuery.d.ts +28 -0
  2. package/dist/chaos-manager/src/services/hooks/useGetExperimentOrTemplateVariableQuery.js +14 -0
  3. package/dist/chaos-manager/src/services/hooks/useGetExperimentRunsCsvMutation.d.ts +37 -0
  4. package/dist/chaos-manager/src/services/hooks/useGetExperimentRunsCsvMutation.js +14 -0
  5. package/dist/chaos-manager/src/services/hooks/useGetExperimentTemplateRevisionsQuery.d.ts +1 -1
  6. package/dist/chaos-manager/src/services/hooks/useListActionMetadataQuery.d.ts +1 -1
  7. package/dist/chaos-manager/src/services/hooks/useListConditionQuery.d.ts +1 -1
  8. package/dist/chaos-manager/src/services/hooks/useListExperimentMetadataQuery.d.ts +1 -1
  9. package/dist/chaos-manager/src/services/hooks/useListExperimentOrTemplateQuery.d.ts +41 -0
  10. package/dist/chaos-manager/src/services/hooks/useListExperimentOrTemplateQuery.js +14 -0
  11. package/dist/chaos-manager/src/services/hooks/useListExperimentRunsOfFaultQuery.d.ts +1 -1
  12. package/dist/chaos-manager/src/services/hooks/useListExperimentTemplateQuery.d.ts +1 -1
  13. package/dist/chaos-manager/src/services/hooks/useListFaultMetadataQuery.d.ts +1 -1
  14. package/dist/chaos-manager/src/services/hooks/useListFaultTemplateQuery.d.ts +1 -1
  15. package/dist/chaos-manager/src/services/hooks/useListFaultv2Query.d.ts +1 -1
  16. package/dist/chaos-manager/src/services/hooks/useListGamedayMetadataQuery.d.ts +1 -1
  17. package/dist/chaos-manager/src/services/hooks/useListHubMetadataQuery.d.ts +1 -1
  18. package/dist/chaos-manager/src/services/hooks/useListProbeMetadataQuery.d.ts +1 -1
  19. package/dist/chaos-manager/src/services/hooks/useListRuleQuery.d.ts +1 -1
  20. package/dist/chaos-manager/src/services/index.d.ts +10 -0
  21. package/dist/chaos-manager/src/services/index.js +3 -0
  22. package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunChaosExperimentRun.d.ts +4 -0
  23. package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunProbe.d.ts +4 -0
  24. package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunProbe.js +4 -0
  25. package/dist/chaos-manager/src/services/schemas/ChaosExperimentWorkflowRevision.d.ts +2 -0
  26. package/dist/chaos-manager/src/services/schemas/ChaosexperimentListExperimentData.d.ts +9 -0
  27. package/dist/chaos-manager/src/services/schemas/ChaosexperimentListExperimentData.js +1 -0
  28. package/dist/chaos-manager/src/services/schemas/ExperimenttemplateListExperimentTemplateData.d.ts +8 -0
  29. package/dist/chaos-manager/src/services/schemas/ExperimenttemplateListExperimentTemplateData.js +1 -0
  30. package/dist/chaos-manager/src/services/schemas/V3ListExperimentOrTemplateResponse.d.ts +9 -0
  31. package/dist/chaos-manager/src/services/schemas/V3ListExperimentOrTemplateResponse.js +1 -0
  32. package/package.json +1 -1
@@ -0,0 +1,28 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { TemplateRunTimeVariables } from '../schemas/TemplateRunTimeVariables';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface GetExperimentOrTemplateVariableQueryQueryParams {
6
+ accountIdentifier: string;
7
+ correlationID?: string;
8
+ experimentId?: string;
9
+ hubReference?: string;
10
+ identifier?: string;
11
+ kind?: string;
12
+ organizationIdentifier?: string;
13
+ projectIdentifier?: string;
14
+ }
15
+ export type GetExperimentOrTemplateVariableOkResponse = TemplateRunTimeVariables;
16
+ export type GetExperimentOrTemplateVariableErrorResponse = ApiRestError;
17
+ export interface GetExperimentOrTemplateVariableProps extends Omit<FetcherOptions<GetExperimentOrTemplateVariableQueryQueryParams, unknown>, 'url'> {
18
+ queryParams: GetExperimentOrTemplateVariableQueryQueryParams;
19
+ }
20
+ export interface GetExperimentOrTemplateVariableResponseContainer {
21
+ body: GetExperimentOrTemplateVariableOkResponse;
22
+ headers: Headers;
23
+ }
24
+ export declare function getExperimentOrTemplateVariable(props: GetExperimentOrTemplateVariableProps): Promise<GetExperimentOrTemplateVariableResponseContainer>;
25
+ /**
26
+ * gets experiment or template variables
27
+ */
28
+ export declare function useGetExperimentOrTemplateVariableQuery(props: GetExperimentOrTemplateVariableProps, options?: Omit<UseQueryOptions<GetExperimentOrTemplateVariableResponseContainer, GetExperimentOrTemplateVariableErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<GetExperimentOrTemplateVariableResponseContainer, 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 getExperimentOrTemplateVariable(props) {
7
+ return fetcher(Object.assign({ url: `/v3/integrations/get-experiment-or-template-variable`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * gets experiment or template variables
11
+ */
12
+ export function useGetExperimentOrTemplateVariableQuery(props, options) {
13
+ return useQuery(['getExperimentOrTemplateVariable', props.queryParams], ({ signal }) => getExperimentOrTemplateVariable(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -0,0 +1,37 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
3
+ export interface GetExperimentRunsCsvMutationPathParams {
4
+ experimentId: string;
5
+ }
6
+ export interface GetExperimentRunsCsvMutationQueryParams {
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?: 'experimentName' | 'lastUpdated' | 'name';
22
+ }
23
+ export type GetExperimentRunsCsvOkResponse = unknown;
24
+ export type GetExperimentRunsCsvErrorResponse = unknown;
25
+ export interface GetExperimentRunsCsvProps extends GetExperimentRunsCsvMutationPathParams, Omit<FetcherOptions<GetExperimentRunsCsvMutationQueryParams, unknown>, 'url'> {
26
+ queryParams: GetExperimentRunsCsvMutationQueryParams;
27
+ }
28
+ export interface GetExperimentRunsCsvResponseContainer {
29
+ body: GetExperimentRunsCsvOkResponse;
30
+ headers: Headers;
31
+ }
32
+ export declare function getExperimentRunsCsv(props: GetExperimentRunsCsvProps): Promise<GetExperimentRunsCsvResponseContainer>;
33
+ export type GetExperimentRunsCsvMutationProps<T extends keyof GetExperimentRunsCsvProps> = Omit<GetExperimentRunsCsvProps, T> & Partial<Pick<GetExperimentRunsCsvProps, T>>;
34
+ /**
35
+ * download experiment runs as CSV (no request body; only path + query params)
36
+ */
37
+ export declare function useGetExperimentRunsCsvMutation<T extends keyof GetExperimentRunsCsvProps>(props: Pick<Partial<GetExperimentRunsCsvProps>, T>, options?: Omit<UseMutationOptions<GetExperimentRunsCsvResponseContainer, GetExperimentRunsCsvErrorResponse, GetExperimentRunsCsvMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<GetExperimentRunsCsvResponseContainer, unknown, GetExperimentRunsCsvMutationProps<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 getExperimentRunsCsv(props) {
7
+ return fetcher(Object.assign({ url: `/v3/chaos-experiment-runs/${props.experimentId}/csv`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * download experiment runs as CSV (no request body; only path + query params)
11
+ */
12
+ export function useGetExperimentRunsCsvMutation(props, options) {
13
+ return useMutation((mutateProps) => getExperimentRunsCsv(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -24,7 +24,7 @@ export interface GetExperimentTemplateRevisionsQueryQueryParams {
24
24
  projectIdentifier?: string;
25
25
  search?: string;
26
26
  sortAscending?: boolean;
27
- sortField?: 'lastUpdated' | 'name';
27
+ sortField?: 'experimentName' | 'lastUpdated' | 'name';
28
28
  tags?: string;
29
29
  verbose?: boolean;
30
30
  }
@@ -19,7 +19,7 @@ export interface ListActionMetadataQueryQueryParams {
19
19
  projectIdentifier?: string;
20
20
  search?: string;
21
21
  sortAscending?: boolean;
22
- sortField?: 'lastUpdated' | 'name';
22
+ sortField?: 'experimentName' | 'lastUpdated' | 'name';
23
23
  tags?: string;
24
24
  }
25
25
  export type ListActionMetadataRequestBody = TypesListMetadataRequest;
@@ -18,7 +18,7 @@ export interface ListConditionQueryQueryParams {
18
18
  projectIdentifier?: string;
19
19
  search?: string;
20
20
  sortAscending?: boolean;
21
- sortField?: 'lastUpdated' | 'name';
21
+ sortField?: 'experimentName' | 'lastUpdated' | 'name';
22
22
  tags?: string;
23
23
  }
24
24
  export type ListConditionOkResponse = ChaosguardconditionsListConditionResponse;
@@ -19,7 +19,7 @@ export interface ListExperimentMetadataQueryQueryParams {
19
19
  projectIdentifier?: string;
20
20
  search?: string;
21
21
  sortAscending?: boolean;
22
- sortField?: 'lastUpdated' | 'name';
22
+ sortField?: 'experimentName' | 'lastUpdated' | 'name';
23
23
  tags?: string;
24
24
  }
25
25
  export type ListExperimentMetadataRequestBody = TypesListMetadataRequest;
@@ -0,0 +1,41 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { V3ListExperimentOrTemplateResponse } from '../schemas/V3ListExperimentOrTemplateResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListExperimentOrTemplateQueryQueryParams {
6
+ accountIdentifier: string;
7
+ correlationID?: string;
8
+ endTime?: number;
9
+ hubIdentifier?: string;
10
+ infraType?: string;
11
+ kind?: string;
12
+ /**
13
+ * @default 15
14
+ */
15
+ limit?: number;
16
+ organizationIdentifier?: string;
17
+ /**
18
+ * @default 0
19
+ */
20
+ page?: number;
21
+ projectIdentifier?: string;
22
+ search?: string;
23
+ sortAscending?: boolean;
24
+ sortField?: 'experimentName' | 'lastUpdated' | 'name';
25
+ startTime?: number;
26
+ tags?: string;
27
+ }
28
+ export type ListExperimentOrTemplateOkResponse = V3ListExperimentOrTemplateResponse;
29
+ export type ListExperimentOrTemplateErrorResponse = ApiRestError;
30
+ export interface ListExperimentOrTemplateProps extends Omit<FetcherOptions<ListExperimentOrTemplateQueryQueryParams, unknown>, 'url'> {
31
+ queryParams: ListExperimentOrTemplateQueryQueryParams;
32
+ }
33
+ export interface ListExperimentOrTemplateResponseContainer {
34
+ body: ListExperimentOrTemplateOkResponse;
35
+ headers: Headers;
36
+ }
37
+ export declare function listExperimentOrTemplate(props: ListExperimentOrTemplateProps): Promise<ListExperimentOrTemplateResponseContainer>;
38
+ /**
39
+ * lists experiment or template metadata
40
+ */
41
+ export declare function useListExperimentOrTemplateQuery(props: ListExperimentOrTemplateProps, options?: Omit<UseQueryOptions<ListExperimentOrTemplateResponseContainer, ListExperimentOrTemplateErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListExperimentOrTemplateResponseContainer, 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 listExperimentOrTemplate(props) {
7
+ return fetcher(Object.assign({ url: `/v3/integrations/list-experiment-or-template`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * lists experiment or template metadata
11
+ */
12
+ export function useListExperimentOrTemplateQuery(props, options) {
13
+ return useQuery(['listExperimentOrTemplate', props.queryParams], ({ signal }) => listExperimentOrTemplate(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -22,7 +22,7 @@ export interface ListExperimentRunsOfFaultQueryQueryParams {
22
22
  projectIdentifier?: string;
23
23
  search?: string;
24
24
  sortAscending?: boolean;
25
- sortField?: 'lastUpdated' | 'name';
25
+ sortField?: 'experimentName' | 'lastUpdated' | 'name';
26
26
  }
27
27
  export type ListExperimentRunsOfFaultOkResponse = ChaosfaultListExperimentRunsInFaultResponse;
28
28
  export type ListExperimentRunsOfFaultErrorResponse = ApiRestError;
@@ -21,7 +21,7 @@ export interface ListExperimentTemplateQueryQueryParams {
21
21
  projectIdentifier?: string;
22
22
  search?: string;
23
23
  sortAscending?: boolean;
24
- sortField?: 'lastUpdated' | 'name';
24
+ sortField?: 'experimentName' | 'lastUpdated' | 'name';
25
25
  tags?: string;
26
26
  verbose?: boolean;
27
27
  }
@@ -19,7 +19,7 @@ export interface ListFaultMetadataQueryQueryParams {
19
19
  projectIdentifier?: string;
20
20
  search?: string;
21
21
  sortAscending?: boolean;
22
- sortField?: 'lastUpdated' | 'name';
22
+ sortField?: 'experimentName' | 'lastUpdated' | 'name';
23
23
  tags?: string;
24
24
  }
25
25
  export type ListFaultMetadataRequestBody = TypesListMetadataRequest;
@@ -23,7 +23,7 @@ export interface ListFaultTemplateQueryQueryParams {
23
23
  projectIdentifier?: string;
24
24
  search?: string;
25
25
  sortAscending?: boolean;
26
- sortField?: 'lastUpdated' | 'name';
26
+ sortField?: 'experimentName' | 'lastUpdated' | 'name';
27
27
  tags?: string;
28
28
  type?: string;
29
29
  }
@@ -21,7 +21,7 @@ export interface ListFaultv2QueryQueryParams {
21
21
  projectIdentifier?: string;
22
22
  search?: string;
23
23
  sortAscending?: boolean;
24
- sortField?: 'lastUpdated' | 'name';
24
+ sortField?: 'experimentName' | 'lastUpdated' | 'name';
25
25
  tags?: string;
26
26
  type?: string;
27
27
  }
@@ -19,7 +19,7 @@ export interface ListGamedayMetadataQueryQueryParams {
19
19
  projectIdentifier?: string;
20
20
  search?: string;
21
21
  sortAscending?: boolean;
22
- sortField?: 'lastUpdated' | 'name';
22
+ sortField?: 'experimentName' | 'lastUpdated' | 'name';
23
23
  tags?: string;
24
24
  }
25
25
  export type ListGamedayMetadataRequestBody = TypesListMetadataRequest;
@@ -19,7 +19,7 @@ export interface ListHubMetadataQueryQueryParams {
19
19
  projectIdentifier?: string;
20
20
  search?: string;
21
21
  sortAscending?: boolean;
22
- sortField?: 'lastUpdated' | 'name';
22
+ sortField?: 'experimentName' | 'lastUpdated' | 'name';
23
23
  tags?: string;
24
24
  }
25
25
  export type ListHubMetadataRequestBody = TypesListMetadataRequest;
@@ -19,7 +19,7 @@ export interface ListProbeMetadataQueryQueryParams {
19
19
  projectIdentifier?: string;
20
20
  search?: string;
21
21
  sortAscending?: boolean;
22
- sortField?: 'lastUpdated' | 'name';
22
+ sortField?: 'experimentName' | 'lastUpdated' | 'name';
23
23
  tags?: string;
24
24
  }
25
25
  export type ListProbeMetadataRequestBody = TypesListMetadataRequest;
@@ -18,7 +18,7 @@ export interface ListRuleQueryQueryParams {
18
18
  projectIdentifier?: string;
19
19
  search?: string;
20
20
  sortAscending?: boolean;
21
- sortField?: 'lastUpdated' | 'name';
21
+ sortField?: 'experimentName' | 'lastUpdated' | 'name';
22
22
  tags?: string;
23
23
  }
24
24
  export type ListRuleOkResponse = ChaosguardrulesListRuleResponse;
@@ -132,8 +132,12 @@ export type { GetConnectorForInfraErrorResponse, GetConnectorForInfraOkResponse,
132
132
  export { getConnectorForInfra, useGetConnectorForInfraQuery, } from './hooks/useGetConnectorForInfraQuery';
133
133
  export type { GetExperimentHelperImageVersionErrorResponse, GetExperimentHelperImageVersionOkResponse, GetExperimentHelperImageVersionProps, } from './hooks/useGetExperimentHelperImageVersionQuery';
134
134
  export { getExperimentHelperImageVersion, useGetExperimentHelperImageVersionQuery, } from './hooks/useGetExperimentHelperImageVersionQuery';
135
+ export type { GetExperimentOrTemplateVariableErrorResponse, GetExperimentOrTemplateVariableOkResponse, GetExperimentOrTemplateVariableProps, GetExperimentOrTemplateVariableQueryQueryParams, } from './hooks/useGetExperimentOrTemplateVariableQuery';
136
+ export { getExperimentOrTemplateVariable, useGetExperimentOrTemplateVariableQuery, } from './hooks/useGetExperimentOrTemplateVariableQuery';
135
137
  export type { GetExperimentRunTimelineViewErrorResponse, GetExperimentRunTimelineViewOkResponse, GetExperimentRunTimelineViewProps, GetExperimentRunTimelineViewQueryPathParams, GetExperimentRunTimelineViewQueryQueryParams, } from './hooks/useGetExperimentRunTimelineViewQuery';
136
138
  export { getExperimentRunTimelineView, useGetExperimentRunTimelineViewQuery, } from './hooks/useGetExperimentRunTimelineViewQuery';
139
+ export type { GetExperimentRunsCsvErrorResponse, GetExperimentRunsCsvMutationPathParams, GetExperimentRunsCsvMutationProps, GetExperimentRunsCsvMutationQueryParams, GetExperimentRunsCsvOkResponse, GetExperimentRunsCsvProps, } from './hooks/useGetExperimentRunsCsvMutation';
140
+ export { getExperimentRunsCsv, useGetExperimentRunsCsvMutation, } from './hooks/useGetExperimentRunsCsvMutation';
137
141
  export type { GetExperimentRunsOverviewStatsErrorResponse, GetExperimentRunsOverviewStatsOkResponse, GetExperimentRunsOverviewStatsProps, GetExperimentRunsOverviewStatsQueryQueryParams, } from './hooks/useGetExperimentRunsOverviewStatsQuery';
138
142
  export { getExperimentRunsOverviewStats, useGetExperimentRunsOverviewStatsQuery, } from './hooks/useGetExperimentRunsOverviewStatsQuery';
139
143
  export type { GetExperimentTemplateErrorResponse, GetExperimentTemplateOkResponse, GetExperimentTemplateProps, GetExperimentTemplateQueryPathParams, GetExperimentTemplateQueryQueryParams, } from './hooks/useGetExperimentTemplateQuery';
@@ -244,6 +248,8 @@ export type { ListConditionErrorResponse, ListConditionOkResponse, ListCondition
244
248
  export { listCondition, useListConditionQuery } from './hooks/useListConditionQuery';
245
249
  export type { ListExperimentMetadataErrorResponse, ListExperimentMetadataOkResponse, ListExperimentMetadataProps, ListExperimentMetadataQueryQueryParams, ListExperimentMetadataRequestBody, } from './hooks/useListExperimentMetadataQuery';
246
250
  export { listExperimentMetadata, useListExperimentMetadataQuery, } from './hooks/useListExperimentMetadataQuery';
251
+ export type { ListExperimentOrTemplateErrorResponse, ListExperimentOrTemplateOkResponse, ListExperimentOrTemplateProps, ListExperimentOrTemplateQueryQueryParams, } from './hooks/useListExperimentOrTemplateQuery';
252
+ export { listExperimentOrTemplate, useListExperimentOrTemplateQuery, } from './hooks/useListExperimentOrTemplateQuery';
247
253
  export type { ListExperimentRunsOfFaultErrorResponse, ListExperimentRunsOfFaultOkResponse, ListExperimentRunsOfFaultProps, ListExperimentRunsOfFaultQueryPathParams, ListExperimentRunsOfFaultQueryQueryParams, } from './hooks/useListExperimentRunsOfFaultQuery';
248
254
  export { listExperimentRunsOfFault, useListExperimentRunsOfFaultQuery, } from './hooks/useListExperimentRunsOfFaultQuery';
249
255
  export type { ListExperimentTemplateErrorResponse, ListExperimentTemplateOkResponse, ListExperimentTemplateProps, ListExperimentTemplateQueryQueryParams, } from './hooks/useListExperimentTemplateQuery';
@@ -448,6 +454,7 @@ export type { ChaosExperimentRunChaosExperimentRun } from './schemas/ChaosExperi
448
454
  export type { ChaosExperimentRunConditionDetails } from './schemas/ChaosExperimentRunConditionDetails';
449
455
  export type { ChaosExperimentRunExperimentType } from './schemas/ChaosExperimentRunExperimentType';
450
456
  export type { ChaosExperimentRunFaults } from './schemas/ChaosExperimentRunFaults';
457
+ export type { ChaosExperimentRunProbe } from './schemas/ChaosExperimentRunProbe';
451
458
  export type { ChaosExperimentRunRuleDetails } from './schemas/ChaosExperimentRunRuleDetails';
452
459
  export type { ChaosExperimentRunSecurityGovernanceNode } from './schemas/ChaosExperimentRunSecurityGovernanceNode';
453
460
  export type { ChaosExperimentRunSecurityGovernanceNodeData } from './schemas/ChaosExperimentRunSecurityGovernanceNodeData';
@@ -464,6 +471,7 @@ export type { ChaosInfrastructureV2InfraType } from './schemas/ChaosInfrastructu
464
471
  export type { ChaosInfrastructureV2K8sInfraV2SpecIdentifiers } from './schemas/ChaosInfrastructureV2K8sInfraV2SpecIdentifiers';
465
472
  export type { ChaosactiontemplateActionsTemplateCount } from './schemas/ChaosactiontemplateActionsTemplateCount';
466
473
  export type { ChaosactiontemplateChaosActionTemplate } from './schemas/ChaosactiontemplateChaosActionTemplate';
474
+ export type { ChaosexperimentListExperimentData } from './schemas/ChaosexperimentListExperimentData';
467
475
  export type { ChaosexperimentpipelineGetChaosPipelineNodesResponse } from './schemas/ChaosexperimentpipelineGetChaosPipelineNodesResponse';
468
476
  export type { ChaosexperimentpipelineReferenceEntities } from './schemas/ChaosexperimentpipelineReferenceEntities';
469
477
  export type { ChaosexperimenttemplateChaosExperimentTemplate } from './schemas/ChaosexperimenttemplateChaosExperimentTemplate';
@@ -622,6 +630,7 @@ export type { ExperimentWorkload } from './schemas/ExperimentWorkload';
622
630
  export type { ExperimentWorkloadKind } from './schemas/ExperimentWorkloadKind';
623
631
  export type { ExperimenttemplateAction } from './schemas/ExperimenttemplateAction';
624
632
  export type { ExperimenttemplateFault } from './schemas/ExperimenttemplateFault';
633
+ export type { ExperimenttemplateListExperimentTemplateData } from './schemas/ExperimenttemplateListExperimentTemplateData';
625
634
  export type { ExperimenttemplateProbe } from './schemas/ExperimenttemplateProbe';
626
635
  export type { ExperimenttemplateProbeConditions } from './schemas/ExperimenttemplateProbeConditions';
627
636
  export type { ExperimenttemplateSpec } from './schemas/ExperimenttemplateSpec';
@@ -1196,3 +1205,4 @@ export type { V2OnboardingV2Onboarding } from './schemas/V2OnboardingV2Onboardin
1196
1205
  export type { V2OnboardingV2OnboardingList } from './schemas/V2OnboardingV2OnboardingList';
1197
1206
  export type { V2OnboardingV2OnboardingRequest } from './schemas/V2OnboardingV2OnboardingRequest';
1198
1207
  export type { V2OnboardingV2OnboardingStatus } from './schemas/V2OnboardingV2OnboardingStatus';
1208
+ export type { V3ListExperimentOrTemplateResponse } from './schemas/V3ListExperimentOrTemplateResponse';
@@ -65,7 +65,9 @@ export { getChaosV2ExperimentVariables, useGetChaosV2ExperimentVariablesQuery, }
65
65
  export { getCondition, useGetConditionQuery } from './hooks/useGetConditionQuery';
66
66
  export { getConnectorForInfra, useGetConnectorForInfraQuery, } from './hooks/useGetConnectorForInfraQuery';
67
67
  export { getExperimentHelperImageVersion, useGetExperimentHelperImageVersionQuery, } from './hooks/useGetExperimentHelperImageVersionQuery';
68
+ export { getExperimentOrTemplateVariable, useGetExperimentOrTemplateVariableQuery, } from './hooks/useGetExperimentOrTemplateVariableQuery';
68
69
  export { getExperimentRunTimelineView, useGetExperimentRunTimelineViewQuery, } from './hooks/useGetExperimentRunTimelineViewQuery';
70
+ export { getExperimentRunsCsv, useGetExperimentRunsCsvMutation, } from './hooks/useGetExperimentRunsCsvMutation';
69
71
  export { getExperimentRunsOverviewStats, useGetExperimentRunsOverviewStatsQuery, } from './hooks/useGetExperimentRunsOverviewStatsQuery';
70
72
  export { getExperimentTemplate, useGetExperimentTemplateQuery, } from './hooks/useGetExperimentTemplateQuery';
71
73
  export { getExperimentTemplateRevisions, useGetExperimentTemplateRevisionsQuery, } from './hooks/useGetExperimentTemplateRevisionsQuery';
@@ -121,6 +123,7 @@ export { listChaosHub, useListChaosHubQuery } from './hooks/useListChaosHubQuery
121
123
  export { listChaosV2Experiment, useListChaosV2ExperimentQuery, } from './hooks/useListChaosV2ExperimentQuery';
122
124
  export { listCondition, useListConditionQuery } from './hooks/useListConditionQuery';
123
125
  export { listExperimentMetadata, useListExperimentMetadataQuery, } from './hooks/useListExperimentMetadataQuery';
126
+ export { listExperimentOrTemplate, useListExperimentOrTemplateQuery, } from './hooks/useListExperimentOrTemplateQuery';
124
127
  export { listExperimentRunsOfFault, useListExperimentRunsOfFaultQuery, } from './hooks/useListExperimentRunsOfFaultQuery';
125
128
  export { listExperimentTemplate, useListExperimentTemplateQuery, } from './hooks/useListExperimentTemplateQuery';
126
129
  export { listExperiments, useListExperimentsQuery } from './hooks/useListExperimentsQuery';
@@ -1,10 +1,13 @@
1
+ import type { ChaosExperimentRunAction } from '../schemas/ChaosExperimentRunAction';
1
2
  import type { ChaosExperimentRunExperimentType } from '../schemas/ChaosExperimentRunExperimentType';
2
3
  import type { ChaosExperimentRunFaults } from '../schemas/ChaosExperimentRunFaults';
4
+ import type { ChaosExperimentRunProbe } from '../schemas/ChaosExperimentRunProbe';
3
5
  import type { ChaosExperimentRunSecurityGovernanceNode } from '../schemas/ChaosExperimentRunSecurityGovernanceNode';
4
6
  import type { TargetserviceServiceMetadata } from '../schemas/TargetserviceServiceMetadata';
5
7
  import type { ChaosExperimentRunTemplateDetails } from '../schemas/ChaosExperimentRunTemplateDetails';
6
8
  export interface ChaosExperimentRunChaosExperimentRun {
7
9
  accountID: string;
10
+ actions?: ChaosExperimentRunAction[];
8
11
  completed?: boolean;
9
12
  createdAt?: number;
10
13
  createdBy?: string;
@@ -29,6 +32,7 @@ export interface ChaosExperimentRunChaosExperimentRun {
29
32
  notifyID?: string;
30
33
  orgID?: string;
31
34
  phase?: string;
35
+ probes?: ChaosExperimentRunProbe[];
32
36
  projectID?: string;
33
37
  resiliencyScore?: number;
34
38
  revisionID?: string;
@@ -0,0 +1,4 @@
1
+ export interface ChaosExperimentRunProbe {
2
+ identity?: string;
3
+ name?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,6 +1,7 @@
1
1
  import type { ChaosExperimentRunAction } from '../schemas/ChaosExperimentRunAction';
2
2
  import type { ChaosExperimentFaultEventMetadata } from '../schemas/ChaosExperimentFaultEventMetadata';
3
3
  import type { ChaosExperimentRunFaults } from '../schemas/ChaosExperimentRunFaults';
4
+ import type { ChaosExperimentRunProbe } from '../schemas/ChaosExperimentRunProbe';
4
5
  import type { TargetserviceServiceMetadata } from '../schemas/TargetserviceServiceMetadata';
5
6
  import type { ChaosExperimentWeightagesInput } from '../schemas/ChaosExperimentWeightagesInput';
6
7
  export interface ChaosExperimentWorkflowRevision {
@@ -8,6 +9,7 @@ export interface ChaosExperimentWorkflowRevision {
8
9
  chaosFaultEvents?: ChaosExperimentFaultEventMetadata[];
9
10
  experimentManifest?: string;
10
11
  faultsWithProbes?: ChaosExperimentRunFaults[];
12
+ probes?: ChaosExperimentRunProbe[];
11
13
  revisionID?: string;
12
14
  targetedServices?: TargetserviceServiceMetadata[];
13
15
  updatedAt?: number;
@@ -0,0 +1,9 @@
1
+ import type { ExperimentInfraType } from '../schemas/ExperimentInfraType';
2
+ export interface ChaosexperimentListExperimentData {
3
+ description?: string;
4
+ identity?: string;
5
+ infraId?: string;
6
+ infraType?: ExperimentInfraType;
7
+ name?: string;
8
+ tags?: string[];
9
+ }
@@ -0,0 +1,8 @@
1
+ import type { ExperimentInfraType } from '../schemas/ExperimentInfraType';
2
+ export interface ExperimenttemplateListExperimentTemplateData {
3
+ description?: string;
4
+ identity?: string;
5
+ infraType?: ExperimentInfraType;
6
+ name?: string;
7
+ tags?: string[];
8
+ }
@@ -0,0 +1,9 @@
1
+ import type { ChaosexperimentListExperimentData } from '../schemas/ChaosexperimentListExperimentData';
2
+ import type { SharedPaginationResponse } from '../schemas/SharedPaginationResponse';
3
+ import type { ExperimenttemplateListExperimentTemplateData } from '../schemas/ExperimenttemplateListExperimentTemplateData';
4
+ export interface V3ListExperimentOrTemplateResponse {
5
+ correlationId?: string;
6
+ experiments?: ChaosexperimentListExperimentData[];
7
+ pagination?: SharedPaginationResponse;
8
+ templates?: ExperimenttemplateListExperimentTemplateData[];
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.42.0",
3
+ "version": "1.44.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",