@harnessio/react-chaos-manager-client 1.64.1 → 1.65.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 (39) hide show
  1. package/dist/chaos-manager/src/services/hooks/useAbortChaosComponentForMachineMutation.d.ts +28 -0
  2. package/dist/chaos-manager/src/services/hooks/useAbortChaosComponentForMachineMutation.js +14 -0
  3. package/dist/chaos-manager/src/services/hooks/useRunChaosComponentForMachineMutation.d.ts +28 -0
  4. package/dist/chaos-manager/src/services/hooks/useRunChaosComponentForMachineMutation.js +14 -0
  5. package/dist/chaos-manager/src/services/index.d.ts +15 -0
  6. package/dist/chaos-manager/src/services/index.js +2 -0
  7. package/dist/chaos-manager/src/services/schemas/ActionAction.d.ts +14 -0
  8. package/dist/chaos-manager/src/services/schemas/ActionAction.js +1 -0
  9. package/dist/chaos-manager/src/services/schemas/ActionContainerAction.d.ts +38 -0
  10. package/dist/chaos-manager/src/services/schemas/ActionContainerAction.js +1 -0
  11. package/dist/chaos-manager/src/services/schemas/ActionCustomScriptAction.d.ts +6 -0
  12. package/dist/chaos-manager/src/services/schemas/ActionCustomScriptAction.js +1 -0
  13. package/dist/chaos-manager/src/services/schemas/ActionDelayAction.d.ts +3 -0
  14. package/dist/chaos-manager/src/services/schemas/ActionDelayAction.js +4 -0
  15. package/dist/chaos-manager/src/services/schemas/ActionRunProperties.d.ts +8 -0
  16. package/dist/chaos-manager/src/services/schemas/ActionRunProperties.js +4 -0
  17. package/dist/chaos-manager/src/services/schemas/ChaosExperimentChaosExperimentRequest.d.ts +1 -0
  18. package/dist/chaos-manager/src/services/schemas/ExperimentActionRef.d.ts +2 -0
  19. package/dist/chaos-manager/src/services/schemas/ExperimentFault.d.ts +16 -0
  20. package/dist/chaos-manager/src/services/schemas/ExperimentFault.js +1 -0
  21. package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.d.ts +2 -0
  22. package/dist/chaos-manager/src/services/schemas/ExperimentProbeRef.d.ts +2 -0
  23. package/dist/chaos-manager/src/services/schemas/ExperimentsGetResponse.d.ts +1 -0
  24. package/dist/chaos-manager/src/services/schemas/ExperimenttemplateAction.d.ts +2 -0
  25. package/dist/chaos-manager/src/services/schemas/ExperimenttemplateProbe.d.ts +2 -0
  26. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTypesApiMachineInfraInfra.d.ts +4 -0
  27. package/dist/chaos-manager/src/services/schemas/InfraRegisterInfraRequest.d.ts +4 -0
  28. package/dist/chaos-manager/src/services/schemas/InfraUpdateInfraRequest.d.ts +1 -0
  29. package/dist/chaos-manager/src/services/schemas/ModelAbortChaosComponentForMachineRequest.d.ts +5 -0
  30. package/dist/chaos-manager/src/services/schemas/ModelAbortChaosComponentForMachineRequest.js +4 -0
  31. package/dist/chaos-manager/src/services/schemas/ModelAbortChaosComponentForMachineResponse.d.ts +4 -0
  32. package/dist/chaos-manager/src/services/schemas/ModelAbortChaosComponentForMachineResponse.js +4 -0
  33. package/dist/chaos-manager/src/services/schemas/ModelRunChaosComponentForMachineRequest.d.ts +18 -0
  34. package/dist/chaos-manager/src/services/schemas/ModelRunChaosComponentForMachineRequest.js +1 -0
  35. package/dist/chaos-manager/src/services/schemas/ModelRunChaosComponentForMachineResponse.d.ts +5 -0
  36. package/dist/chaos-manager/src/services/schemas/ModelRunChaosComponentForMachineResponse.js +1 -0
  37. package/dist/chaos-manager/src/services/schemas/ModelRunChaosComponentForMachineResponseData.d.ts +5 -0
  38. package/dist/chaos-manager/src/services/schemas/ModelRunChaosComponentForMachineResponseData.js +4 -0
  39. package/package.json +1 -1
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ModelAbortChaosComponentForMachineResponse } from '../schemas/ModelAbortChaosComponentForMachineResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { ModelAbortChaosComponentForMachineRequest } from '../schemas/ModelAbortChaosComponentForMachineRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface AbortChaosComponentForMachineMutationQueryParams {
7
+ accountIdentifier: string;
8
+ organizationIdentifier?: string;
9
+ parentUniqueId?: string;
10
+ projectIdentifier?: string;
11
+ }
12
+ export type AbortChaosComponentForMachineRequestBody = ModelAbortChaosComponentForMachineRequest;
13
+ export type AbortChaosComponentForMachineOkResponse = ModelAbortChaosComponentForMachineResponse;
14
+ export type AbortChaosComponentForMachineErrorResponse = ApiRestError;
15
+ export interface AbortChaosComponentForMachineProps extends Omit<FetcherOptions<AbortChaosComponentForMachineMutationQueryParams, AbortChaosComponentForMachineRequestBody>, 'url'> {
16
+ queryParams: AbortChaosComponentForMachineMutationQueryParams;
17
+ body: AbortChaosComponentForMachineRequestBody;
18
+ }
19
+ export interface AbortChaosComponentForMachineResponseContainer {
20
+ body: AbortChaosComponentForMachineOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function abortChaosComponentForMachine(props: AbortChaosComponentForMachineProps): Promise<AbortChaosComponentForMachineResponseContainer>;
24
+ export type AbortChaosComponentForMachineMutationProps<T extends keyof AbortChaosComponentForMachineProps> = Omit<AbortChaosComponentForMachineProps, T> & Partial<Pick<AbortChaosComponentForMachineProps, T>>;
25
+ /**
26
+ * Aborts a running ChaosComponent (DDPR) that was dispatched on behalf of a machine experiment
27
+ */
28
+ export declare function useAbortChaosComponentForMachineMutation<T extends keyof AbortChaosComponentForMachineProps>(props: Pick<Partial<AbortChaosComponentForMachineProps>, T>, options?: Omit<UseMutationOptions<AbortChaosComponentForMachineResponseContainer, AbortChaosComponentForMachineErrorResponse, AbortChaosComponentForMachineMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<AbortChaosComponentForMachineResponseContainer, ApiRestError, AbortChaosComponentForMachineMutationProps<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 abortChaosComponentForMachine(props) {
7
+ return fetcher(Object.assign({ url: `/internalv3/machine/abort-chaos-component`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Aborts a running ChaosComponent (DDPR) that was dispatched on behalf of a machine experiment
11
+ */
12
+ export function useAbortChaosComponentForMachineMutation(props, options) {
13
+ return useMutation((mutateProps) => abortChaosComponentForMachine(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,28 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ModelRunChaosComponentForMachineResponse } from '../schemas/ModelRunChaosComponentForMachineResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { ModelRunChaosComponentForMachineRequest } from '../schemas/ModelRunChaosComponentForMachineRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface RunChaosComponentForMachineMutationQueryParams {
7
+ accountIdentifier: string;
8
+ organizationIdentifier?: string;
9
+ parentUniqueId?: string;
10
+ projectIdentifier?: string;
11
+ }
12
+ export type RunChaosComponentForMachineRequestBody = ModelRunChaosComponentForMachineRequest;
13
+ export type RunChaosComponentForMachineOkResponse = ModelRunChaosComponentForMachineResponse;
14
+ export type RunChaosComponentForMachineErrorResponse = ApiRestError;
15
+ export interface RunChaosComponentForMachineProps extends Omit<FetcherOptions<RunChaosComponentForMachineMutationQueryParams, RunChaosComponentForMachineRequestBody>, 'url'> {
16
+ queryParams: RunChaosComponentForMachineMutationQueryParams;
17
+ body: RunChaosComponentForMachineRequestBody;
18
+ }
19
+ export interface RunChaosComponentForMachineResponseContainer {
20
+ body: RunChaosComponentForMachineOkResponse;
21
+ headers: Headers;
22
+ }
23
+ export declare function runChaosComponentForMachine(props: RunChaosComponentForMachineProps): Promise<RunChaosComponentForMachineResponseContainer>;
24
+ export type RunChaosComponentForMachineMutationProps<T extends keyof RunChaosComponentForMachineProps> = Omit<RunChaosComponentForMachineProps, T> & Partial<Pick<RunChaosComponentForMachineProps, T>>;
25
+ /**
26
+ * Creates and executes a ChaosComponent on K8s infra for probes/actions that
27
+ */
28
+ export declare function useRunChaosComponentForMachineMutation<T extends keyof RunChaosComponentForMachineProps>(props: Pick<Partial<RunChaosComponentForMachineProps>, T>, options?: Omit<UseMutationOptions<RunChaosComponentForMachineResponseContainer, RunChaosComponentForMachineErrorResponse, RunChaosComponentForMachineMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RunChaosComponentForMachineResponseContainer, ApiRestError, RunChaosComponentForMachineMutationProps<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 runChaosComponentForMachine(props) {
7
+ return fetcher(Object.assign({ url: `/internalv3/machine/run-chaos-component`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Creates and executes a ChaosComponent on K8s infra for probes/actions that
11
+ */
12
+ export function useRunChaosComponentForMachineMutation(props, options) {
13
+ return useMutation((mutateProps) => runChaosComponentForMachine(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -1,3 +1,5 @@
1
+ export type { AbortChaosComponentForMachineErrorResponse, AbortChaosComponentForMachineMutationProps, AbortChaosComponentForMachineMutationQueryParams, AbortChaosComponentForMachineOkResponse, AbortChaosComponentForMachineProps, AbortChaosComponentForMachineRequestBody, } from './hooks/useAbortChaosComponentForMachineMutation';
2
+ export { abortChaosComponentForMachine, useAbortChaosComponentForMachineMutation, } from './hooks/useAbortChaosComponentForMachineMutation';
1
3
  export type { AbortChaosComponentErrorResponse, AbortChaosComponentMutationProps, AbortChaosComponentMutationQueryParams, AbortChaosComponentOkResponse, AbortChaosComponentProps, AbortChaosComponentRequestBody, } from './hooks/useAbortChaosComponentMutation';
2
4
  export { abortChaosComponent, useAbortChaosComponentMutation, } from './hooks/useAbortChaosComponentMutation';
3
5
  export type { AddNoteErrorResponse, AddNoteMutationProps, AddNoteMutationQueryParams, AddNoteOkResponse, AddNoteProps, AddNoteRequestBody, } from './hooks/useAddNoteMutation';
@@ -374,6 +376,8 @@ export type { ResolveImageRegistryV3ErrorResponse, ResolveImageRegistryV3OkRespo
374
376
  export { resolveImageRegistryV3, useResolveImageRegistryV3Query, } from './hooks/useResolveImageRegistryV3Query';
375
377
  export type { RetryExperimentCreationErrorResponse, RetryExperimentCreationMutationPathParams, RetryExperimentCreationMutationProps, RetryExperimentCreationMutationQueryParams, RetryExperimentCreationOkResponse, RetryExperimentCreationProps, RetryExperimentCreationRequestBody, } from './hooks/useRetryExperimentCreationMutation';
376
378
  export { retryExperimentCreation, useRetryExperimentCreationMutation, } from './hooks/useRetryExperimentCreationMutation';
379
+ export type { RunChaosComponentForMachineErrorResponse, RunChaosComponentForMachineMutationProps, RunChaosComponentForMachineMutationQueryParams, RunChaosComponentForMachineOkResponse, RunChaosComponentForMachineProps, RunChaosComponentForMachineRequestBody, } from './hooks/useRunChaosComponentForMachineMutation';
380
+ export { runChaosComponentForMachine, useRunChaosComponentForMachineMutation, } from './hooks/useRunChaosComponentForMachineMutation';
377
381
  export type { RunChaosComponentErrorResponse, RunChaosComponentMutationProps, RunChaosComponentMutationQueryParams, RunChaosComponentOkResponse, RunChaosComponentProps, RunChaosComponentRequestBody, } from './hooks/useRunChaosComponentMutation';
378
382
  export { runChaosComponent, useRunChaosComponentMutation, } from './hooks/useRunChaosComponentMutation';
379
383
  export type { RunChaosV2ExperimentErrorResponse, RunChaosV2ExperimentMutationPathParams, RunChaosV2ExperimentMutationProps, RunChaosV2ExperimentMutationQueryParams, RunChaosV2ExperimentOkResponse, RunChaosV2ExperimentProps, RunChaosV2ExperimentRequestBody, } from './hooks/useRunChaosV2ExperimentMutation';
@@ -449,11 +453,16 @@ export { useVerifyProbeMutation, verifyProbe } from './hooks/useVerifyProbeMutat
449
453
  export type { ChaosfaulttemplateActionTemplateRequestBody } from './requestBodies/ChaosfaulttemplateActionTemplateRequestBody';
450
454
  export type { InfraV2ListKubernetesInfraV2RequestRequestBody } from './requestBodies/InfraV2ListKubernetesInfraV2RequestRequestBody';
451
455
  export type { TypesProbeRequestRequestBody } from './requestBodies/TypesProbeRequestRequestBody';
456
+ export type { ActionAction } from './schemas/ActionAction';
452
457
  export type { ActionActionTemplateProperties } from './schemas/ActionActionTemplateProperties';
453
458
  export type { ActionActionTemplateRunProperties } from './schemas/ActionActionTemplateRunProperties';
459
+ export type { ActionContainerAction } from './schemas/ActionContainerAction';
460
+ export type { ActionCustomScriptAction } from './schemas/ActionCustomScriptAction';
454
461
  export type { ActionCustomScriptActionTemplate } from './schemas/ActionCustomScriptActionTemplate';
462
+ export type { ActionDelayAction } from './schemas/ActionDelayAction';
455
463
  export type { ActionDelayActionTemplate } from './schemas/ActionDelayActionTemplate';
456
464
  export type { ActionEnv } from './schemas/ActionEnv';
465
+ export type { ActionRunProperties } from './schemas/ActionRunProperties';
457
466
  export type { ActionsActionResponse } from './schemas/ActionsActionResponse';
458
467
  export type { ActionsActionType } from './schemas/ActionsActionType';
459
468
  export type { ActionsExecutedByExperiment } from './schemas/ActionsExecutedByExperiment';
@@ -708,6 +717,7 @@ export type { ExperimentConditions } from './schemas/ExperimentConditions';
708
717
  export type { ExperimentConfigMap } from './schemas/ExperimentConfigMap';
709
718
  export type { ExperimentDefinition } from './schemas/ExperimentDefinition';
710
719
  export type { ExperimentExperimentComponents } from './schemas/ExperimentExperimentComponents';
720
+ export type { ExperimentFault } from './schemas/ExperimentFault';
711
721
  export type { ExperimentFaultRef } from './schemas/ExperimentFaultRef';
712
722
  export type { ExperimentHelperConfig } from './schemas/ExperimentHelperConfig';
713
723
  export type { ExperimentHostFile } from './schemas/ExperimentHostFile';
@@ -941,6 +951,8 @@ export type { K8sinfraUpdateEmissaryUrlRequest } from './schemas/K8sinfraUpdateE
941
951
  export type { K8sinfraUpdateEmissaryUrlResponse } from './schemas/K8sinfraUpdateEmissaryUrlResponse';
942
952
  export type { LogserviceCommandUnitStatus } from './schemas/LogserviceCommandUnitStatus';
943
953
  export type { LogserviceCommandUnitStatusResponse } from './schemas/LogserviceCommandUnitStatusResponse';
954
+ export type { ModelAbortChaosComponentForMachineRequest } from './schemas/ModelAbortChaosComponentForMachineRequest';
955
+ export type { ModelAbortChaosComponentForMachineResponse } from './schemas/ModelAbortChaosComponentForMachineResponse';
944
956
  export type { ModelClusterType } from './schemas/ModelClusterType';
945
957
  export type { ModelConditionDetails } from './schemas/ModelConditionDetails';
946
958
  export type { ModelDateRange } from './schemas/ModelDateRange';
@@ -964,6 +976,9 @@ export type { ModelRecurrence } from './schemas/ModelRecurrence';
964
976
  export type { ModelRecurrenceSpec } from './schemas/ModelRecurrenceSpec';
965
977
  export type { ModelRecurrenceType } from './schemas/ModelRecurrenceType';
966
978
  export type { ModelRuleDetails } from './schemas/ModelRuleDetails';
979
+ export type { ModelRunChaosComponentForMachineRequest } from './schemas/ModelRunChaosComponentForMachineRequest';
980
+ export type { ModelRunChaosComponentForMachineResponse } from './schemas/ModelRunChaosComponentForMachineResponse';
981
+ export type { ModelRunChaosComponentForMachineResponseData } from './schemas/ModelRunChaosComponentForMachineResponseData';
967
982
  export type { ModelScenarioType } from './schemas/ModelScenarioType';
968
983
  export type { ModelSecurityGovernance } from './schemas/ModelSecurityGovernance';
969
984
  export type { ModelSecurityGovernanceNodeData } from './schemas/ModelSecurityGovernanceNodeData';
@@ -1,3 +1,4 @@
1
+ export { abortChaosComponentForMachine, useAbortChaosComponentForMachineMutation, } from './hooks/useAbortChaosComponentForMachineMutation';
1
2
  export { abortChaosComponent, useAbortChaosComponentMutation, } from './hooks/useAbortChaosComponentMutation';
2
3
  export { addNote, useAddNoteMutation } from './hooks/useAddNoteMutation';
3
4
  export { bulkExperimentDelete, useBulkExperimentDeleteMutation, } from './hooks/useBulkExperimentDeleteMutation';
@@ -186,6 +187,7 @@ export { registerMachineInfra, useRegisterMachineInfraMutation, } from './hooks/
186
187
  export { renderTemplateForm, useRenderTemplateFormQuery } from './hooks/useRenderTemplateFormQuery';
187
188
  export { resolveImageRegistryV3, useResolveImageRegistryV3Query, } from './hooks/useResolveImageRegistryV3Query';
188
189
  export { retryExperimentCreation, useRetryExperimentCreationMutation, } from './hooks/useRetryExperimentCreationMutation';
190
+ export { runChaosComponentForMachine, useRunChaosComponentForMachineMutation, } from './hooks/useRunChaosComponentForMachineMutation';
189
191
  export { runChaosComponent, useRunChaosComponentMutation, } from './hooks/useRunChaosComponentMutation';
190
192
  export { runChaosV2Experiment, useRunChaosV2ExperimentMutation, } from './hooks/useRunChaosV2ExperimentMutation';
191
193
  export { runChaosV2InternalApi, useRunChaosV2InternalApiMutation, } from './hooks/useRunChaosV2InternalApiMutation';
@@ -0,0 +1,14 @@
1
+ import type { ActionContainerAction } from '../schemas/ActionContainerAction';
2
+ import type { ActionCustomScriptAction } from '../schemas/ActionCustomScriptAction';
3
+ import type { ActionDelayAction } from '../schemas/ActionDelayAction';
4
+ import type { ActionRunProperties } from '../schemas/ActionRunProperties';
5
+ export interface ActionAction {
6
+ actionRef?: string;
7
+ containerAction?: ActionContainerAction;
8
+ customScriptAction?: ActionCustomScriptAction;
9
+ delayAction?: ActionDelayAction;
10
+ id?: string;
11
+ name?: string;
12
+ runProperties?: ActionRunProperties;
13
+ type?: string;
14
+ }
@@ -0,0 +1,38 @@
1
+ import type { CommonNodeAffinity } from '../schemas/CommonNodeAffinity';
2
+ import type { V1SecurityContext } from '../schemas/V1SecurityContext';
3
+ import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
4
+ import type { V1PullPolicy } from '../schemas/V1PullPolicy';
5
+ import type { V1PodSecurityContext } from '../schemas/V1PodSecurityContext';
6
+ import type { CommonResourceRequirements } from '../schemas/CommonResourceRequirements';
7
+ import type { V1Toleration } from '../schemas/V1Toleration';
8
+ import type { V1VolumeMount } from '../schemas/V1VolumeMount';
9
+ import type { CommonVolume } from '../schemas/CommonVolume';
10
+ export interface ActionContainerAction {
11
+ affinity?: CommonNodeAffinity;
12
+ annotations?: {
13
+ [key: string]: string;
14
+ };
15
+ args?: string;
16
+ command?: string[];
17
+ containerSecurityContext?: V1SecurityContext;
18
+ env?: K8sIoApiCoreV1EnvVar[];
19
+ hostIPC?: boolean;
20
+ hostNetwork?: boolean;
21
+ hostPID?: boolean;
22
+ image?: string;
23
+ imagePullPolicy?: V1PullPolicy;
24
+ imagePullSecrets?: string[];
25
+ labels?: {
26
+ [key: string]: string;
27
+ };
28
+ namespace?: string;
29
+ nodeSelector?: {
30
+ [key: string]: string;
31
+ };
32
+ podSecurityContext?: V1PodSecurityContext;
33
+ resources?: CommonResourceRequirements;
34
+ serviceAccountName?: string;
35
+ tolerations?: V1Toleration[];
36
+ volumeMounts?: V1VolumeMount[];
37
+ volumes?: CommonVolume[];
38
+ }
@@ -0,0 +1,6 @@
1
+ import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
2
+ export interface ActionCustomScriptAction {
3
+ args?: string[];
4
+ command?: string;
5
+ env?: K8sIoApiCoreV1EnvVar[];
6
+ }
@@ -0,0 +1,3 @@
1
+ export interface ActionDelayAction {
2
+ duration?: 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,8 @@
1
+ export interface ActionRunProperties {
2
+ initialDelay?: string;
3
+ interval?: string;
4
+ iterations?: number;
5
+ maxRetries?: number;
6
+ timeout?: string;
7
+ verbosity?: string;
8
+ }
@@ -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 {};
@@ -15,6 +15,7 @@ export interface ChaosExperimentChaosExperimentRequest {
15
15
  experimentID?: string;
16
16
  experimentType?: ChaosExperimentChaosExperimentType;
17
17
  faultIDs?: string[];
18
+ hasRemoteResources?: boolean;
18
19
  /**
19
20
  * identity field is a human-readable ID
20
21
  */
@@ -30,10 +30,12 @@ export interface ExperimentActionRef {
30
30
  * InfraID contains the infrastructure id
31
31
  */
32
32
  infraId?: string;
33
+ isRemote?: boolean;
33
34
  /**
34
35
  * Name of the action reference
35
36
  */
36
37
  name?: string;
38
+ remoteInfraRef?: string;
37
39
  /**
38
40
  * Revision of the fault reference
39
41
  */
@@ -0,0 +1,16 @@
1
+ import type { ExperimentConditions } from '../schemas/ExperimentConditions';
2
+ import type { ExperimentDefinition } from '../schemas/ExperimentDefinition';
3
+ export interface ExperimentFault {
4
+ /**
5
+ * Conditions to check if the action should be executed
6
+ */
7
+ conditionsV2?: ExperimentConditions;
8
+ /**
9
+ * Definition of the fault
10
+ */
11
+ definition?: ExperimentDefinition;
12
+ /**
13
+ * Name of the fault
14
+ */
15
+ name?: string;
16
+ }
@@ -21,10 +21,12 @@ export interface ExperimentFaultRef {
21
21
  * HubRef of the fault reference
22
22
  */
23
23
  isEnterprise?: boolean;
24
+ isRemote?: boolean;
24
25
  /**
25
26
  * Name of the fault reference
26
27
  */
27
28
  name?: string;
29
+ remoteInfraRef?: string;
28
30
  /**
29
31
  * Values to store the inputs
30
32
  */
@@ -30,6 +30,7 @@ export interface ExperimentProbeRef {
30
30
  * InfraID contains the infrastructure id
31
31
  */
32
32
  infraId?: string;
33
+ isRemote?: boolean;
33
34
  /**
34
35
  * IsVerfied to verify the probe
35
36
  */
@@ -38,6 +39,7 @@ export interface ExperimentProbeRef {
38
39
  * Name of the probe
39
40
  */
40
41
  name?: string;
42
+ remoteInfraRef?: string;
41
43
  /**
42
44
  * Revision of the fault reference
43
45
  */
@@ -12,6 +12,7 @@ export interface ExperimentsGetResponse {
12
12
  description?: string;
13
13
  experimentId?: string;
14
14
  experimentType?: ChaosExperimentChaosExperimentType;
15
+ hasRemoteResources?: boolean;
15
16
  identity?: string;
16
17
  infra?: ExperimentsInfraDetails;
17
18
  inputs?: TemplateInput[];
@@ -6,7 +6,9 @@ export interface ExperimenttemplateAction {
6
6
  identity?: string;
7
7
  infraId?: string;
8
8
  isEnterprise?: boolean;
9
+ isRemote?: boolean;
9
10
  name?: string;
11
+ remoteInfraRef?: string;
10
12
  revision?: number;
11
13
  values?: TemplateInputMinimum[];
12
14
  }
@@ -7,7 +7,9 @@ export interface ExperimenttemplateProbe {
7
7
  identity?: string;
8
8
  infraId?: string;
9
9
  isEnterprise?: boolean;
10
+ isRemote?: boolean;
10
11
  name?: string;
12
+ remoteInfraRef?: string;
11
13
  revision?: number;
12
14
  values?: TemplateInputMinimum[];
13
15
  weightage?: number;
@@ -38,6 +38,10 @@ export interface GithubComHarnessHceSaasHceSdkTypesApiMachineInfraInfra {
38
38
  * IsRegistered indicates if the infra is registered
39
39
  */
40
40
  isRegistered?: boolean;
41
+ /**
42
+ * K8sInfraReference is the linked K8s infrastructure reference for remote probe execution
43
+ */
44
+ k8sInfraReference?: string;
41
45
  /**
42
46
  * Last Heartbeat status sent by the infra
43
47
  */
@@ -13,6 +13,10 @@ export interface InfraRegisterInfraRequest {
13
13
  * Environment ID for the infra
14
14
  */
15
15
  environmentID?: string;
16
+ /**
17
+ * K8sInfraReference is the linked K8s infrastructure reference for remote resource execution
18
+ */
19
+ k8sInfraReference?: string;
16
20
  /**
17
21
  * Whether load testing is enabled on this infra
18
22
  */
@@ -1,6 +1,7 @@
1
1
  export interface InfraUpdateInfraRequest {
2
2
  description?: string;
3
3
  environmentID?: string;
4
+ k8sInfraReference?: string;
4
5
  loadEnabled?: boolean;
5
6
  name?: string;
6
7
  tags?: string[];
@@ -0,0 +1,5 @@
1
+ export interface ModelAbortChaosComponentForMachineRequest {
2
+ graceful?: string;
3
+ infraReference?: string;
4
+ notifyId?: string;
5
+ }
@@ -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,4 @@
1
+ export interface ModelAbortChaosComponentForMachineResponse {
2
+ error?: string;
3
+ status?: 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 {};
@@ -0,0 +1,18 @@
1
+ import type { ActionAction } from '../schemas/ActionAction';
2
+ import type { ExperimentFault } from '../schemas/ExperimentFault';
3
+ import type { GithubComHarnessHceSaasHceSdkCommonProbeV1Probe } from '../schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe';
4
+ export interface ModelRunChaosComponentForMachineRequest {
5
+ actions?: ActionAction[];
6
+ /**
7
+ * Duration is the probe execution duration for serial/busyWait probes.
8
+ * Empty for parallel probes (DDCR runs until stopped).
9
+ */
10
+ duration?: string;
11
+ experimentId?: string;
12
+ experimentRunId?: string;
13
+ faults?: ExperimentFault[];
14
+ infraReference?: string;
15
+ probes?: GithubComHarnessHceSaasHceSdkCommonProbeV1Probe[];
16
+ resourceRef?: string;
17
+ vertexName?: string;
18
+ }
@@ -0,0 +1,5 @@
1
+ import type { ModelRunChaosComponentForMachineResponseData } from '../schemas/ModelRunChaosComponentForMachineResponseData';
2
+ export interface ModelRunChaosComponentForMachineResponse {
3
+ data?: ModelRunChaosComponentForMachineResponseData;
4
+ status?: string;
5
+ }
@@ -0,0 +1,5 @@
1
+ export interface ModelRunChaosComponentForMachineResponseData {
2
+ error?: string;
3
+ identity?: string;
4
+ notifyId?: string;
5
+ }
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.64.1",
3
+ "version": "1.65.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",