@harnessio/react-chaos-manager-client 1.9.0 → 1.11.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 (42) hide show
  1. package/dist/chaos-manager/src/services/hooks/useListActionsQuery.d.ts +1 -1
  2. package/dist/chaos-manager/src/services/hooks/useListMachineChaosInfraQuery.d.ts +4 -1
  3. package/dist/chaos-manager/src/services/hooks/useListMachineChaosInfraQuery.js +2 -2
  4. package/dist/chaos-manager/src/services/hooks/useListProbesQuery.d.ts +3 -3
  5. package/dist/chaos-manager/src/services/index.d.ts +9 -2
  6. package/dist/chaos-manager/src/services/schemas/ActionsActionResponse.d.ts +1 -0
  7. package/dist/chaos-manager/src/services/schemas/ActionsInfrastructureType.d.ts +1 -1
  8. package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunAction.d.ts +4 -0
  9. package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunAction.js +4 -0
  10. package/dist/chaos-manager/src/services/schemas/ChaosExperimentWorkflowRevision.d.ts +2 -0
  11. package/dist/chaos-manager/src/services/schemas/ExperimentActionRef.d.ts +2 -2
  12. package/dist/chaos-manager/src/services/schemas/ExperimentChaosInputs.d.ts +2 -2
  13. package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.d.ts +0 -4
  14. package/dist/chaos-manager/src/services/schemas/ExperimentHelperConfig.d.ts +2 -2
  15. package/dist/chaos-manager/src/services/schemas/ExperimentProbeActions.d.ts +2 -2
  16. package/dist/chaos-manager/src/services/schemas/ExperimentSidecar.d.ts +2 -2
  17. package/dist/chaos-manager/src/services/schemas/FaulttemplateChaosKubernetesSpec.d.ts +2 -2
  18. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction.d.ts +1 -0
  19. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppdMetrics.d.ts +1 -0
  20. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv.d.ts +4 -0
  21. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv.js +4 -0
  22. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1EnvVar.d.ts +4 -0
  23. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1EnvVar.js +4 -0
  24. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv.d.ts +4 -0
  25. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv.js +4 -0
  26. package/dist/chaos-manager/src/services/schemas/InfraInfraFilterInput.d.ts +22 -0
  27. package/dist/chaos-manager/src/services/schemas/InfraInfraFilterInput.js +4 -0
  28. package/dist/chaos-manager/src/services/schemas/InfraListInfraRequest.d.ts +34 -0
  29. package/dist/chaos-manager/src/services/schemas/InfraPagination.d.ts +10 -0
  30. package/dist/chaos-manager/src/services/schemas/InfraPagination.js +4 -0
  31. package/dist/chaos-manager/src/services/schemas/InfraRegisterInfraRequest.d.ts +1 -1
  32. package/dist/chaos-manager/src/services/schemas/InfraV2KubernetesInfrastructureV2Details.d.ts +1 -0
  33. package/dist/chaos-manager/src/services/schemas/InfraV2UpdateKubernetesInfrastructureV2Request.d.ts +1 -0
  34. package/dist/chaos-manager/src/services/schemas/{V1EnvVar.d.ts → K8sIoApiCoreV1EnvVar.d.ts} +1 -1
  35. package/dist/chaos-manager/src/services/schemas/K8sIoApiCoreV1EnvVar.js +1 -0
  36. package/dist/chaos-manager/src/services/schemas/ProbeCmdProbeTemplate.d.ts +2 -0
  37. package/dist/chaos-manager/src/services/schemas/ProbeKubernetesCmdProbe.d.ts +2 -0
  38. package/dist/chaos-manager/src/services/schemas/TypesExperimentV2.d.ts +1 -0
  39. package/dist/chaos-manager/src/services/schemas/V1CmdProbeInputs.d.ts +5 -0
  40. package/dist/chaos-manager/src/services/schemas/V1SourceDetails.d.ts +2 -2
  41. package/package.json +1 -1
  42. /package/dist/chaos-manager/src/services/schemas/{V1EnvVar.js → InfraListInfraRequest.js} +0 -0
@@ -17,7 +17,7 @@ export interface ListActionsQueryQueryParams {
17
17
  */
18
18
  limit: number;
19
19
  infraType?: string;
20
- actionType?: string;
20
+ entityType?: string;
21
21
  includeAllScope?: string;
22
22
  }
23
23
  export type ListActionsOkResponse = ActionsListActionTemplateResponse;
@@ -1,16 +1,19 @@
1
1
  import { UseQueryOptions } from '@tanstack/react-query';
2
2
  import type { InfraListInfraResponse } from '../schemas/InfraListInfraResponse';
3
3
  import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { InfraListInfraRequest } from '../schemas/InfraListInfraRequest';
4
5
  import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
6
  export interface ListMachineChaosInfraQueryQueryParams {
6
7
  accountIdentifier: string;
7
8
  organizationIdentifier: string;
8
9
  projectIdentifier: string;
9
10
  }
11
+ export type ListMachineChaosInfraRequestBody = InfraListInfraRequest;
10
12
  export type ListMachineChaosInfraOkResponse = InfraListInfraResponse;
11
13
  export type ListMachineChaosInfraErrorResponse = ApiRestError;
12
- export interface ListMachineChaosInfraProps extends Omit<FetcherOptions<ListMachineChaosInfraQueryQueryParams, unknown>, 'url'> {
14
+ export interface ListMachineChaosInfraProps extends Omit<FetcherOptions<ListMachineChaosInfraQueryQueryParams, ListMachineChaosInfraRequestBody>, 'url'> {
13
15
  queryParams: ListMachineChaosInfraQueryQueryParams;
16
+ body: ListMachineChaosInfraRequestBody;
14
17
  }
15
18
  export interface ListMachineChaosInfraResponseContainer {
16
19
  body: ListMachineChaosInfraOkResponse;
@@ -4,11 +4,11 @@
4
4
  import { useQuery } from '@tanstack/react-query';
5
5
  import { fetcher } from '../../../../custom-fetcher/index.js';
6
6
  export function listMachineChaosInfra(props) {
7
- return fetcher(Object.assign({ url: `/rest/machine/infras`, method: 'GET' }, props));
7
+ return fetcher(Object.assign({ url: `/rest/machine/infras`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
10
  * List machine chaos infras
11
11
  */
12
12
  export function useListMachineChaosInfraQuery(props, options) {
13
- return useQuery(['listMachineChaosInfra', props.queryParams], ({ signal }) => listMachineChaosInfra(Object.assign(Object.assign({}, props), { signal })), options);
13
+ return useQuery(['listMachineChaosInfra', props.queryParams, props.body], ({ signal }) => listMachineChaosInfra(Object.assign(Object.assign({}, props), { signal })), options);
14
14
  }
@@ -6,12 +6,12 @@ export interface ListProbesQueryQueryParams {
6
6
  accountIdentifier: string;
7
7
  organizationIdentifier: string;
8
8
  projectIdentifier: string;
9
- name?: string;
9
+ search?: string;
10
10
  tags?: string;
11
11
  startDate?: string;
12
12
  endDate?: string;
13
13
  probeIDs?: string;
14
- infrastructureType?: string;
14
+ infraType?: string;
15
15
  /**
16
16
  * @default 1
17
17
  */
@@ -22,7 +22,7 @@ export interface ListProbesQueryQueryParams {
22
22
  limit?: number;
23
23
  sortField?: 'ENABLED' | 'NAME' | 'TIME';
24
24
  sortAscending?: boolean;
25
- probeType?: string;
25
+ entityType?: string;
26
26
  }
27
27
  export type ListProbesOkResponse = TypesListProbeResponse;
28
28
  export type ListProbesErrorResponse = ApiRestError;
@@ -190,7 +190,7 @@ export type { ListInputSetErrorResponse, ListInputSetOkResponse, ListInputSetPro
190
190
  export { listInputSet, useListInputSetQuery } from './hooks/useListInputSetQuery';
191
191
  export type { ListK8sInfrasV2ErrorResponse, ListK8sInfrasV2MutationProps, ListK8sInfrasV2MutationQueryParams, ListK8sInfrasV2OkResponse, ListK8sInfrasV2Props, ListK8sInfrasV2RequestBody, } from './hooks/useListK8sInfrasV2Mutation';
192
192
  export { listK8sInfrasV2, useListK8sInfrasV2Mutation } from './hooks/useListK8sInfrasV2Mutation';
193
- export type { ListMachineChaosInfraErrorResponse, ListMachineChaosInfraOkResponse, ListMachineChaosInfraProps, ListMachineChaosInfraQueryQueryParams, } from './hooks/useListMachineChaosInfraQuery';
193
+ export type { ListMachineChaosInfraErrorResponse, ListMachineChaosInfraOkResponse, ListMachineChaosInfraProps, ListMachineChaosInfraQueryQueryParams, ListMachineChaosInfraRequestBody, } from './hooks/useListMachineChaosInfraQuery';
194
194
  export { listMachineChaosInfra, useListMachineChaosInfraQuery, } from './hooks/useListMachineChaosInfraQuery';
195
195
  export type { ListProbeTemplateErrorResponse, ListProbeTemplateOkResponse, ListProbeTemplateProps, ListProbeTemplateQueryQueryParams, } from './hooks/useListProbeTemplateQuery';
196
196
  export { listProbeTemplate, useListProbeTemplateQuery } from './hooks/useListProbeTemplateQuery';
@@ -313,6 +313,7 @@ export type { ChaosExperimentChaosExperimentType } from './schemas/ChaosExperime
313
313
  export type { ChaosExperimentExperimentRunDetail } from './schemas/ChaosExperimentExperimentRunDetail';
314
314
  export type { ChaosExperimentFaultEventMetadata } from './schemas/ChaosExperimentFaultEventMetadata';
315
315
  export type { ChaosExperimentRecommendation } from './schemas/ChaosExperimentRecommendation';
316
+ export type { ChaosExperimentRunAction } from './schemas/ChaosExperimentRunAction';
316
317
  export type { ChaosExperimentRunAnnotation } from './schemas/ChaosExperimentRunAnnotation';
317
318
  export type { ChaosExperimentRunChaosExperimentRun } from './schemas/ChaosExperimentRunChaosExperimentRun';
318
319
  export type { ChaosExperimentRunConditionDetails } from './schemas/ChaosExperimentRunConditionDetails';
@@ -462,6 +463,7 @@ export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobete
462
463
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppDynamicsProbeInputs } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppDynamicsProbeInputs';
463
464
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppdMetrics } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppdMetrics';
464
465
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogSyntheticsTestType } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeDatadogSyntheticsTestType';
466
+ export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv';
465
467
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGet } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeGet';
466
468
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeHeaders } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeHeaders';
467
469
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeIdentifier } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeIdentifier';
@@ -475,10 +477,12 @@ export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendati
475
477
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationRecommendationTargetType } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationRecommendationTargetType';
476
478
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationTarget } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationTarget';
477
479
  export type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationWorkload } from './schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationWorkload';
480
+ export type { GithubComHarnessHceSaasHceSdkCommonProbeV1EnvVar } from './schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1EnvVar';
478
481
  export type { GithubComHarnessHceSaasHceSdkCommonProbeV1Probe } from './schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe';
479
482
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppDynamicsProbeInputs';
480
483
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppdMetrics } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeAppdMetrics';
481
484
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogSyntheticsTestType } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeDatadogSyntheticsTestType';
485
+ export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv';
482
486
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGet } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeGet';
483
487
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeHeaders } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeHeaders';
484
488
  export type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeIdentifier } from './schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeIdentifier';
@@ -507,11 +511,14 @@ export type { InfraContainerInfraUserInputs } from './schemas/InfraContainerInfr
507
511
  export type { InfraDeploymentType } from './schemas/InfraDeploymentType';
508
512
  export type { InfraEcsInstallationManifest } from './schemas/InfraEcsInstallationManifest';
509
513
  export type { InfraIdentifiers } from './schemas/InfraIdentifiers';
514
+ export type { InfraInfraFilterInput } from './schemas/InfraInfraFilterInput';
510
515
  export type { InfraInfraSpecificUserInputs } from './schemas/InfraInfraSpecificUserInputs';
511
516
  export type { InfraInfraType } from './schemas/InfraInfraType';
512
517
  export type { InfraInfraVersionDetails } from './schemas/InfraInfraVersionDetails';
513
518
  export type { InfraInstallationManifest } from './schemas/InfraInstallationManifest';
519
+ export type { InfraListInfraRequest } from './schemas/InfraListInfraRequest';
514
520
  export type { InfraListInfraResponse } from './schemas/InfraListInfraResponse';
521
+ export type { InfraPagination } from './schemas/InfraPagination';
515
522
  export type { InfraPlatformType } from './schemas/InfraPlatformType';
516
523
  export type { InfraRegisterInfraRequest } from './schemas/InfraRegisterInfraRequest';
517
524
  export type { InfraRegisterInfraResponse } from './schemas/InfraRegisterInfraResponse';
@@ -554,6 +561,7 @@ export type { InputsetsUpdateInputSetRequest } from './schemas/InputsetsUpdateIn
554
561
  export type { InputsetsUpdateInputSetResponse } from './schemas/InputsetsUpdateInputSetResponse';
555
562
  export type { IntstrIntOrString } from './schemas/IntstrIntOrString';
556
563
  export type { IntstrType } from './schemas/IntstrType';
564
+ export type { K8sIoApiCoreV1EnvVar } from './schemas/K8sIoApiCoreV1EnvVar';
557
565
  export type { K8sIoApimachineryPkgApisMetaV1ConditionStatus } from './schemas/K8sIoApimachineryPkgApisMetaV1ConditionStatus';
558
566
  export type { K8sinfraGetInfraTokenResponse } from './schemas/K8sinfraGetInfraTokenResponse';
559
567
  export type { K8sinfraUpdateEmissaryUrlRequest } from './schemas/K8sinfraUpdateEmissaryUrlRequest';
@@ -782,7 +790,6 @@ export type { V1DownwardApiVolumeSource } from './schemas/V1DownwardApiVolumeSou
782
790
  export type { V1DynatraceProbeInputs } from './schemas/V1DynatraceProbeInputs';
783
791
  export type { V1EmptyDirVolumeSource } from './schemas/V1EmptyDirVolumeSource';
784
792
  export type { V1EnvFromSource } from './schemas/V1EnvFromSource';
785
- export type { V1EnvVar } from './schemas/V1EnvVar';
786
793
  export type { V1EnvVarSource } from './schemas/V1EnvVarSource';
787
794
  export type { V1EphemeralVolumeSource } from './schemas/V1EphemeralVolumeSource';
788
795
  export type { V1EvaluationWindow } from './schemas/V1EvaluationWindow';
@@ -8,6 +8,7 @@ import type { TemplateVariable } from '../schemas/TemplateVariable';
8
8
  export interface ActionsActionResponse {
9
9
  accountID: string;
10
10
  actionProperties?: ActionActionTemplateProperties;
11
+ actionReferenceCount?: number;
11
12
  actionTemplate?: string;
12
13
  actionsRef?: string;
13
14
  createdAt?: number;
@@ -1 +1 @@
1
- export type ActionsInfrastructureType = 'CloudFoundry' | 'Container' | 'Kubernetes' | 'Linux' | 'Windows';
1
+ export type ActionsInfrastructureType = 'CloudFoundry' | 'Container' | 'Kubernetes' | 'KubernetesV2' | 'Linux' | 'Windows';
@@ -0,0 +1,4 @@
1
+ export interface ChaosExperimentRunAction {
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,8 +1,10 @@
1
+ import type { ChaosExperimentRunAction } from '../schemas/ChaosExperimentRunAction';
1
2
  import type { ChaosExperimentFaultEventMetadata } from '../schemas/ChaosExperimentFaultEventMetadata';
2
3
  import type { ChaosExperimentRunFaults } from '../schemas/ChaosExperimentRunFaults';
3
4
  import type { TargetserviceServiceMetadata } from '../schemas/TargetserviceServiceMetadata';
4
5
  import type { ChaosExperimentWeightagesInput } from '../schemas/ChaosExperimentWeightagesInput';
5
6
  export interface ChaosExperimentWorkflowRevision {
7
+ actions?: ChaosExperimentRunAction[];
6
8
  chaosFaultEvents?: ChaosExperimentFaultEventMetadata[];
7
9
  experimentManifest?: string;
8
10
  faultsWithProbes?: ChaosExperimentRunFaults[];
@@ -1,4 +1,4 @@
1
- import type { V1EnvVar } from '../schemas/V1EnvVar';
1
+ import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
2
2
  import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
3
3
  export interface ExperimentActionRef {
4
4
  /**
@@ -12,7 +12,7 @@ export interface ExperimentActionRef {
12
12
  /**
13
13
  * ENV of the action
14
14
  */
15
- env?: V1EnvVar[];
15
+ env?: K8sIoApiCoreV1EnvVar[];
16
16
  /**
17
17
  * HubRef of the fault reference
18
18
  */
@@ -1,5 +1,5 @@
1
1
  import type { ExperimentExperimentComponents } from '../schemas/ExperimentExperimentComponents';
2
- import type { V1EnvVar } from '../schemas/V1EnvVar';
2
+ import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
3
3
  import type { V1PullPolicy } from '../schemas/V1PullPolicy';
4
4
  import type { GithubComHarnessHceSaasHceSdkCommonProbeV1Probe } from '../schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe';
5
5
  export interface ExperimentChaosInputs {
@@ -10,7 +10,7 @@ export interface ExperimentChaosInputs {
10
10
  command?: string[];
11
11
  components?: ExperimentExperimentComponents;
12
12
  defaultHealthCheck?: boolean;
13
- env?: V1EnvVar[];
13
+ env?: K8sIoApiCoreV1EnvVar[];
14
14
  fault?: string;
15
15
  image?: string;
16
16
  imagePullPolicy?: V1PullPolicy;
@@ -16,10 +16,6 @@ export interface ExperimentFaultRef {
16
16
  * Name of the fault reference
17
17
  */
18
18
  name?: string;
19
- /**
20
- * Revision of the fault reference
21
- */
22
- revision?: string;
23
19
  /**
24
20
  * Variables to store the variables
25
21
  */
@@ -1,5 +1,5 @@
1
1
  import type { ExperimentConfigMap } from '../schemas/ExperimentConfigMap';
2
- import type { V1EnvVar } from '../schemas/V1EnvVar';
2
+ import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
3
3
  import type { ExperimentHostFile } from '../schemas/ExperimentHostFile';
4
4
  import type { V1PullPolicy } from '../schemas/V1PullPolicy';
5
5
  import type { V1LocalObjectReference } from '../schemas/V1LocalObjectReference';
@@ -14,7 +14,7 @@ export interface ExperimentHelperConfig {
14
14
  args?: string[];
15
15
  command?: string[];
16
16
  configMaps?: ExperimentConfigMap[];
17
- env?: V1EnvVar[];
17
+ env?: K8sIoApiCoreV1EnvVar[];
18
18
  hostFileVolumes?: ExperimentHostFile[];
19
19
  hostIPC?: boolean;
20
20
  hostNetwork?: boolean;
@@ -1,4 +1,4 @@
1
- import type { V1EnvVar } from '../schemas/V1EnvVar';
1
+ import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
2
2
  export interface ExperimentProbeActions {
3
3
  /**
4
4
  * Args of the action
@@ -11,7 +11,7 @@ export interface ExperimentProbeActions {
11
11
  /**
12
12
  * ENV of the action
13
13
  */
14
- env?: V1EnvVar[];
14
+ env?: K8sIoApiCoreV1EnvVar[];
15
15
  /**
16
16
  * Identity of the action
17
17
  */
@@ -1,9 +1,9 @@
1
- import type { V1EnvVar } from '../schemas/V1EnvVar';
1
+ import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
2
2
  import type { V1EnvFromSource } from '../schemas/V1EnvFromSource';
3
3
  import type { V1PullPolicy } from '../schemas/V1PullPolicy';
4
4
  import type { ExperimentSecret } from '../schemas/ExperimentSecret';
5
5
  export interface ExperimentSidecar {
6
- env?: V1EnvVar[];
6
+ env?: K8sIoApiCoreV1EnvVar[];
7
7
  envFrom?: V1EnvFromSource[];
8
8
  image?: string;
9
9
  imagePullPolicy?: V1PullPolicy;
@@ -1,6 +1,6 @@
1
1
  import type { FaulttemplateConfigMapVolume } from '../schemas/FaulttemplateConfigMapVolume';
2
2
  import type { V1SecurityContext } from '../schemas/V1SecurityContext';
3
- import type { V1EnvVar } from '../schemas/V1EnvVar';
3
+ import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
4
4
  import type { FaulttemplateHostPathVolume } from '../schemas/FaulttemplateHostPathVolume';
5
5
  import type { V1PullPolicy } from '../schemas/V1PullPolicy';
6
6
  import type { V1PodSecurityContext } from '../schemas/V1PodSecurityContext';
@@ -15,7 +15,7 @@ export interface FaulttemplateChaosKubernetesSpec {
15
15
  command?: string[];
16
16
  configMapVolume?: FaulttemplateConfigMapVolume[];
17
17
  containerSecurityContext?: V1SecurityContext;
18
- env?: V1EnvVar[];
18
+ env?: K8sIoApiCoreV1EnvVar[];
19
19
  hostIPC?: boolean;
20
20
  hostNetwork?: boolean;
21
21
  hostPID?: boolean;
@@ -7,6 +7,7 @@ import type { TemplateVariable } from '../schemas/TemplateVariable';
7
7
  export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbActionsAction {
8
8
  accountID: string;
9
9
  actionProperties?: ActionActionTemplateProperties;
10
+ actionReferenceCount?: number;
10
11
  actionsRef?: string;
11
12
  description?: string;
12
13
  hubRef?: string;
@@ -1,4 +1,5 @@
1
1
  export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeAppdMetrics {
2
+ applicationName?: string;
2
3
  durationInMin?: {};
3
4
  metricsFullPath?: string;
4
5
  }
@@ -0,0 +1,4 @@
1
+ export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv {
2
+ name?: string;
3
+ value?: 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,4 @@
1
+ export interface GithubComHarnessHceSaasHceSdkCommonProbeV1EnvVar {
2
+ name?: string;
3
+ value?: 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,4 @@
1
+ export interface GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv {
2
+ name?: string;
3
+ value?: 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,22 @@
1
+ export interface InfraInfraFilterInput {
2
+ /**
3
+ * ID of the infra
4
+ */
5
+ description?: string;
6
+ /**
7
+ * ID of the infra
8
+ */
9
+ infraID?: string;
10
+ /**
11
+ * Status of infra
12
+ */
13
+ isActive?: boolean;
14
+ /**
15
+ * Name of the infra
16
+ */
17
+ name?: string;
18
+ /**
19
+ * Tags of an infra
20
+ */
21
+ tags?: string[];
22
+ }
@@ -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,34 @@
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
+ export interface InfraListInfraRequest {
6
+ /**
7
+ * CorrelationID for the request
8
+ */
9
+ correlationId?: string;
10
+ /**
11
+ * Environment ID
12
+ */
13
+ environmentIDs?: string[];
14
+ /**
15
+ * Details for fetching filtered data
16
+ */
17
+ filter?: InfraInfraFilterInput;
18
+ /**
19
+ * Identifiers for the infra
20
+ */
21
+ identifiers?: InfraIdentifiers;
22
+ /**
23
+ * Array of infra IDs for which details will be fetched
24
+ */
25
+ infraIDs?: string[];
26
+ /**
27
+ * InfraType of the infra
28
+ */
29
+ infraType?: InfraInfraType;
30
+ /**
31
+ * Details for fetching paginated data
32
+ */
33
+ pagination?: InfraPagination;
34
+ }
@@ -0,0 +1,10 @@
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
+ }
@@ -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 {};
@@ -4,7 +4,7 @@ import type { InfraInfraType } from '../schemas/InfraInfraType';
4
4
  import type { InfraRegisterInfraUserInputs } from '../schemas/InfraRegisterInfraUserInputs';
5
5
  export interface InfraRegisterInfraRequest {
6
6
  /**
7
- * CorrelationId for the request
7
+ * CorrelationID for the request
8
8
  */
9
9
  correlationId?: string;
10
10
  /**
@@ -36,6 +36,7 @@ export interface InfraV2KubernetesInfrastructureV2Details {
36
36
  insecureSkipVerify?: boolean;
37
37
  installationType?: InfraV2InstallationType;
38
38
  isAIEnabled?: boolean;
39
+ isAutopilotEnabled?: boolean;
39
40
  isChaosEnabled?: boolean;
40
41
  k8sConnectorID?: string;
41
42
  label?: {
@@ -10,6 +10,7 @@ export interface InfraV2UpdateKubernetesInfrastructureV2Request {
10
10
  annotation?: {
11
11
  [key: string]: string;
12
12
  };
13
+ autopilotEnabled?: boolean;
13
14
  containers?: string;
14
15
  correlationId?: string;
15
16
  description?: string;
@@ -1,5 +1,5 @@
1
1
  import type { V1EnvVarSource } from '../schemas/V1EnvVarSource';
2
- export interface V1EnvVar {
2
+ export interface K8sIoApiCoreV1EnvVar {
3
3
  /**
4
4
  * Name of the environment variable. Must be a C_IDENTIFIER.
5
5
  */
@@ -1,6 +1,8 @@
1
1
  import type { ProbeComparatorTemplate } from '../schemas/ProbeComparatorTemplate';
2
+ import type { GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv } from '../schemas/GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv';
2
3
  export interface ProbeCmdProbeTemplate {
3
4
  command?: string;
4
5
  comparator?: ProbeComparatorTemplate;
6
+ env?: GithubComHarnessHceSaasHceSdkTemplateSchemaProbeEnv[];
5
7
  source?: string;
6
8
  }
@@ -1,8 +1,10 @@
1
1
  import type { ProbeComparator } from '../schemas/ProbeComparator';
2
+ import type { GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv } from '../schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv';
2
3
  export interface ProbeKubernetesCmdProbe {
3
4
  attempt?: {};
4
5
  command?: string;
5
6
  comparator?: ProbeComparator;
7
+ env?: GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbProbeEnv[];
6
8
  initialDelay?: string;
7
9
  initialDelaySeconds?: {};
8
10
  interval?: string;
@@ -13,6 +13,7 @@ export interface TypesExperimentV2 {
13
13
  cronSyntax?: string;
14
14
  description?: string;
15
15
  eventsMetadata?: ModelEventMetadata[];
16
+ experimentID?: string;
16
17
  identifiers?: GithubComHarnessHceSaasGraphqlServerGraphModelIdentifiers;
17
18
  infra?: ChaosInfrastructureV2ChaosInfraV2;
18
19
  isCronEnabled?: boolean;
@@ -1,4 +1,5 @@
1
1
  import type { V1ComparatorInfo } from '../schemas/V1ComparatorInfo';
2
+ import type { GithubComHarnessHceSaasHceSdkCommonProbeV1EnvVar } from '../schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1EnvVar';
2
3
  import type { V1SourceDetails } from '../schemas/V1SourceDetails';
3
4
  export interface V1CmdProbeInputs {
4
5
  /**
@@ -9,6 +10,10 @@ export interface V1CmdProbeInputs {
9
10
  * Comparator check for the correctness of the probe output
10
11
  */
11
12
  comparator?: V1ComparatorInfo;
13
+ /**
14
+ * ENV contains ENV passed to the command probe
15
+ */
16
+ env?: GithubComHarnessHceSaasHceSdkCommonProbeV1EnvVar[];
12
17
  /**
13
18
  * The source where we have to run the command
14
19
  * It will run in inline(inside experiment itself) mode if source is nil
@@ -1,4 +1,4 @@
1
- import type { V1EnvVar } from '../schemas/V1EnvVar';
1
+ import type { K8sIoApiCoreV1EnvVar } from '../schemas/K8sIoApiCoreV1EnvVar';
2
2
  import type { V1PullPolicy } from '../schemas/V1PullPolicy';
3
3
  import type { V1LocalObjectReference } from '../schemas/V1LocalObjectReference';
4
4
  import type { V1Toleration } from '../schemas/V1Toleration';
@@ -22,7 +22,7 @@ export interface V1SourceDetails {
22
22
  /**
23
23
  * ENVList contains ENV passed to the source pod
24
24
  */
25
- env?: V1EnvVar[];
25
+ env?: K8sIoApiCoreV1EnvVar[];
26
26
  /**
27
27
  * HostNetwork define the hostNetwork of the external pod
28
28
  * it supports boolean values and default value is false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.9.0",
3
+ "version": "1.11.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",