@harnessio/react-chaos-manager-client 1.15.1-beta.2 → 1.16.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 (27) hide show
  1. package/dist/chaos-manager/src/services/hooks/useListTargetNetworkMapsQuery.d.ts +0 -4
  2. package/dist/chaos-manager/src/services/index.d.ts +0 -3
  3. package/dist/chaos-manager/src/services/index.js +0 -1
  4. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesActionData.d.ts +1 -0
  5. package/dist/chaos-manager/src/services/schemas/ChaosfaultChaosFault.d.ts +2 -1
  6. package/dist/chaos-manager/src/services/schemas/ChaosfaultCreateFaultRequest.d.ts +2 -1
  7. package/dist/chaos-manager/src/services/schemas/ChaosfaultCreateFaultResponse.d.ts +2 -1
  8. package/dist/chaos-manager/src/services/schemas/ChaosfaultGetFaultResponse.d.ts +2 -1
  9. package/dist/chaos-manager/src/services/schemas/ChaosfaultUpdateFaultRequest.d.ts +2 -1
  10. package/dist/chaos-manager/src/services/schemas/ChaosfaultUpdateFaultResponse.d.ts +2 -1
  11. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateRequest.d.ts +1 -0
  12. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateResponse.d.ts +1 -0
  13. package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateUpdateFaultTemplateResponse.d.ts +1 -0
  14. package/dist/chaos-manager/src/services/schemas/DatabaseKubernetesAgentConfiguration.d.ts +8 -0
  15. package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.d.ts +4 -4
  16. package/dist/chaos-manager/src/services/schemas/FaulttemplateFaultTemplate.d.ts +1 -0
  17. package/dist/chaos-manager/src/services/schemas/InfraV2RegisterInfrastructureV2Request.d.ts +1 -0
  18. package/dist/chaos-manager/src/services/schemas/ProbeEvaluationWindow.d.ts +2 -2
  19. package/dist/chaos-manager/src/services/schemas/ResourceQuantity.d.ts +1 -1
  20. package/dist/chaos-manager/src/services/schemas/TypesGetProbeResponse.d.ts +0 -1
  21. package/dist/chaos-manager/src/services/schemas/TypesProbeRequest.d.ts +0 -1
  22. package/dist/chaos-manager/src/services/schemas/V2OnboardingChaosInfraAdvanceConfiguration.d.ts +1 -0
  23. package/package.json +1 -1
  24. package/dist/chaos-manager/src/services/hooks/useVerifyProbeMutation.d.ts +0 -29
  25. package/dist/chaos-manager/src/services/hooks/useVerifyProbeMutation.js +0 -14
  26. package/dist/chaos-manager/src/services/schemas/TypesProbeVerifyRequest.d.ts +0 -3
  27. package/dist/chaos-manager/src/services/schemas/TypesProbeVerifyRequest.js +0 -4
@@ -15,10 +15,6 @@ export interface ListTargetNetworkMapsQueryQueryParams {
15
15
  * @default 10
16
16
  */
17
17
  limit: number;
18
- environmentIdentifier?: string;
19
- infraId?: string;
20
- all?: boolean;
21
- minimal?: boolean;
22
18
  search?: string;
23
19
  }
24
20
  export type ListTargetNetworkMapsRequestBody = NetworkmapListTargetNetworkMapRequest;
@@ -284,8 +284,6 @@ export type { UpdateProbeTemplateErrorResponse, UpdateProbeTemplateMutationPathP
284
284
  export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
285
285
  export type { UpdateRecommendationStatusErrorResponse, UpdateRecommendationStatusMutationProps, UpdateRecommendationStatusMutationQueryParams, UpdateRecommendationStatusOkResponse, UpdateRecommendationStatusProps, } from './hooks/useUpdateRecommendationStatusMutation';
286
286
  export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
287
- export type { VerifyProbeErrorResponse, VerifyProbeMutationPathParams, VerifyProbeMutationProps, VerifyProbeMutationQueryParams, VerifyProbeOkResponse, VerifyProbeProps, VerifyProbeRequestBody, } from './hooks/useVerifyProbeMutation';
288
- export { useVerifyProbeMutation, verifyProbe } from './hooks/useVerifyProbeMutation';
289
287
  export type { ChaosfaulttemplateActionTemplateRequestBody } from './requestBodies/ChaosfaulttemplateActionTemplateRequestBody';
290
288
  export type { InfraV2ListKubernetesInfraV2RequestRequestBody } from './requestBodies/InfraV2ListKubernetesInfraV2RequestRequestBody';
291
289
  export type { TypesProbeRequestRequestBody } from './requestBodies/TypesProbeRequestRequestBody';
@@ -770,7 +768,6 @@ export type { TypesProbeBulkEnableRequest } from './schemas/TypesProbeBulkEnable
770
768
  export type { TypesProbeRecentExecutions } from './schemas/TypesProbeRecentExecutions';
771
769
  export type { TypesProbeRequest } from './schemas/TypesProbeRequest';
772
770
  export type { TypesProbeType } from './schemas/TypesProbeType';
773
- export type { TypesProbeVerifyRequest } from './schemas/TypesProbeVerifyRequest';
774
771
  export type { TypesRecentGamedayRun } from './schemas/TypesRecentGamedayRun';
775
772
  export type { TypesRun } from './schemas/TypesRun';
776
773
  export type { TypesScenarioType } from './schemas/TypesScenarioType';
@@ -141,4 +141,3 @@ export { updateNote, useUpdateNoteMutation } from './hooks/useUpdateNoteMutation
141
141
  export { updateProbe, useUpdateProbeMutation } from './hooks/useUpdateProbeMutation';
142
142
  export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
143
143
  export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
144
- export { useVerifyProbeMutation, verifyProbe } from './hooks/useVerifyProbeMutation';
@@ -1,3 +1,4 @@
1
1
  export interface ChaosExecutionNodesActionData {
2
2
  name?: string;
3
+ type?: string;
3
4
  }
@@ -13,7 +13,8 @@ export interface ChaosfaultChaosFault {
13
13
  * Unique identifier (human-readable) immutable
14
14
  */
15
15
  identity?: string;
16
- infrastructureType?: string;
16
+ infraType?: string;
17
+ infras?: string[];
17
18
  isEnterprise?: boolean;
18
19
  isRemoved: boolean;
19
20
  name: string;
@@ -5,7 +5,8 @@ export interface ChaosfaultCreateFaultRequest {
5
5
  category?: string[];
6
6
  description?: string;
7
7
  identity?: string;
8
- infrastructureType?: string;
8
+ infraType?: string;
9
+ infras?: string[];
9
10
  name?: string;
10
11
  spec?: FaulttemplateSpec;
11
12
  tags?: string[];
@@ -6,7 +6,8 @@ export interface ChaosfaultCreateFaultResponse {
6
6
  correlationID?: string;
7
7
  description?: string;
8
8
  identity?: string;
9
- infrastructureType?: string;
9
+ infraType?: string;
10
+ infras?: string[];
10
11
  name?: string;
11
12
  spec?: FaulttemplateSpec;
12
13
  tags?: string[];
@@ -6,7 +6,8 @@ export interface ChaosfaultGetFaultResponse {
6
6
  correlationID?: string;
7
7
  description?: string;
8
8
  identity?: string;
9
- infrastructureType?: string;
9
+ infraType?: string;
10
+ infras?: string[];
10
11
  isEnterprise?: boolean;
11
12
  name?: string;
12
13
  spec?: FaulttemplateSpec;
@@ -5,7 +5,8 @@ export interface ChaosfaultUpdateFaultRequest {
5
5
  category?: string[];
6
6
  description?: string;
7
7
  identity?: string;
8
- infrastructureType?: string;
8
+ infraType?: string;
9
+ infras?: string[];
9
10
  name?: string;
10
11
  spec?: FaulttemplateSpec;
11
12
  tags?: string[];
@@ -6,7 +6,8 @@ export interface ChaosfaultUpdateFaultResponse {
6
6
  correlationID?: string;
7
7
  description?: string;
8
8
  identity?: string;
9
- infrastructureType?: string;
9
+ infraType?: string;
10
+ infras?: string[];
10
11
  name?: string;
11
12
  spec?: FaulttemplateSpec;
12
13
  tags?: string[];
@@ -3,6 +3,7 @@ import type { TemplateVariable } from '../schemas/TemplateVariable';
3
3
  export interface ChaosfaulttemplateCreateFaultTemplateRequest {
4
4
  description?: string;
5
5
  identity?: string;
6
+ infraType?: string;
6
7
  infras?: string[];
7
8
  isDefault?: boolean;
8
9
  keywords?: string[];
@@ -5,6 +5,7 @@ export interface ChaosfaulttemplateCreateFaultTemplateResponse {
5
5
  description?: string;
6
6
  hubIdentity?: string;
7
7
  identity?: string;
8
+ infraType?: string;
8
9
  infras?: string[];
9
10
  isDefault?: boolean;
10
11
  keywords?: string[];
@@ -5,6 +5,7 @@ export interface ChaosfaulttemplateUpdateFaultTemplateResponse {
5
5
  description?: string;
6
6
  hubIdentity?: string;
7
7
  identity?: string;
8
+ infraType?: string;
8
9
  infras?: string[];
9
10
  isDefault?: boolean;
10
11
  keywords?: string[];
@@ -2,7 +2,14 @@ import type { V1PullPolicy } from '../schemas/V1PullPolicy';
2
2
  import type { DatabaseResourceRequirements } from '../schemas/DatabaseResourceRequirements';
3
3
  import type { V1Toleration } from '../schemas/V1Toleration';
4
4
  export interface DatabaseKubernetesAgentConfiguration {
5
+ annotations?: {
6
+ [key: string]: string;
7
+ };
8
+ disableNamespaceCreation?: boolean;
5
9
  imagePullPolicy?: V1PullPolicy;
10
+ labels?: {
11
+ [key: string]: string;
12
+ };
6
13
  namespace?: string;
7
14
  namespaced?: boolean;
8
15
  nodeSelector?: {
@@ -13,4 +20,5 @@ export interface DatabaseKubernetesAgentConfiguration {
13
20
  runAsUser?: number;
14
21
  serviceAccount?: string;
15
22
  tolerations?: V1Toleration[];
23
+ useStaticNameForConfigmapAndSecret?: boolean;
16
24
  }
@@ -1,9 +1,5 @@
1
1
  import type { TemplateVariableMinimum } from '../schemas/TemplateVariableMinimum';
2
2
  export interface ExperimentFaultRef {
3
- /**
4
- * HubRef of the fault reference
5
- */
6
- hubRef?: string;
7
3
  /**
8
4
  * Identity of the fault reference
9
5
  */
@@ -12,6 +8,10 @@ export interface ExperimentFaultRef {
12
8
  * InfraID contains the infrastructure id
13
9
  */
14
10
  infraId?: string;
11
+ /**
12
+ * HubRef of the fault reference
13
+ */
14
+ isEnterprise?: boolean;
15
15
  /**
16
16
  * Name of the fault reference
17
17
  */
@@ -3,6 +3,7 @@ import type { TemplateVariable } from '../schemas/TemplateVariable';
3
3
  export interface FaulttemplateFaultTemplate {
4
4
  description?: string;
5
5
  identity?: string;
6
+ infraType?: string;
6
7
  infras?: string[];
7
8
  isDefault?: boolean;
8
9
  keywords?: string[];
@@ -13,6 +13,7 @@ export interface InfraV2RegisterInfrastructureV2Request {
13
13
  annotation?: {
14
14
  [key: string]: string;
15
15
  };
16
+ autopilotEnabled?: boolean;
16
17
  containers?: string;
17
18
  correlationId?: string;
18
19
  description?: string;
@@ -2,9 +2,9 @@ export interface ProbeEvaluationWindow {
2
2
  /**
3
3
  * End time of evaluation
4
4
  */
5
- evaluationEndTime?: string;
5
+ evaluationEndTime?: {};
6
6
  /**
7
7
  * Start time of evaluation
8
8
  */
9
- evaluationStartTime?: string;
9
+ evaluationStartTime?: {};
10
10
  }
@@ -1,3 +1,3 @@
1
1
  export interface ResourceQuantity {
2
- Format?: string;
2
+ Format?: 'BinarySI' | 'DecimalExponent' | 'DecimalSI';
3
3
  }
@@ -16,7 +16,6 @@ export interface TypesGetProbeResponse {
16
16
  infrastructureType?: TypesInfrastructureType;
17
17
  isEnabled?: boolean;
18
18
  isImported?: boolean;
19
- isVerified?: boolean;
20
19
  name?: string;
21
20
  probeId?: string;
22
21
  probeProperties?: ProbeProbeTemplateProperties;
@@ -13,7 +13,6 @@ export interface TypesProbeRequest {
13
13
  infrastructureType?: TypesInfrastructureType;
14
14
  isEnabled?: boolean;
15
15
  isImported?: boolean;
16
- isVerified?: boolean;
17
16
  name?: string;
18
17
  probeId?: string;
19
18
  probeProperties?: ProbeProbeTemplateProperties;
@@ -3,6 +3,7 @@ import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfigurati
3
3
  import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
4
4
  import type { V1Toleration } from '../schemas/V1Toleration';
5
5
  export interface V2OnboardingChaosInfraAdvanceConfiguration {
6
+ autopilotEnabled?: boolean;
6
7
  imagePullPolicy?: V1PullPolicy;
7
8
  insecureSkipVerify?: boolean;
8
9
  mtls?: InfraV2MtlsConfiguration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.15.1-beta.2",
3
+ "version": "1.16.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,29 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ApiRestError } from '../schemas/ApiRestError';
3
- import type { TypesProbeVerifyRequest } from '../schemas/TypesProbeVerifyRequest';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface VerifyProbeMutationPathParams {
6
- probeId: string;
7
- }
8
- export interface VerifyProbeMutationQueryParams {
9
- accountIdentifier: string;
10
- organizationIdentifier: string;
11
- projectIdentifier: string;
12
- }
13
- export type VerifyProbeRequestBody = TypesProbeVerifyRequest;
14
- export type VerifyProbeOkResponse = string;
15
- export type VerifyProbeErrorResponse = ApiRestError;
16
- export interface VerifyProbeProps extends VerifyProbeMutationPathParams, Omit<FetcherOptions<VerifyProbeMutationQueryParams, VerifyProbeRequestBody>, 'url'> {
17
- queryParams: VerifyProbeMutationQueryParams;
18
- body: VerifyProbeRequestBody;
19
- }
20
- export interface VerifyProbeResponseContainer {
21
- body: VerifyProbeOkResponse;
22
- headers: Headers;
23
- }
24
- export declare function verifyProbe(props: VerifyProbeProps): Promise<VerifyProbeResponseContainer>;
25
- export type VerifyProbeMutationProps<T extends keyof VerifyProbeProps> = Omit<VerifyProbeProps, T> & Partial<Pick<VerifyProbeProps, T>>;
26
- /**
27
- * Verify a probe
28
- */
29
- export declare function useVerifyProbeMutation<T extends keyof VerifyProbeProps>(props: Pick<Partial<VerifyProbeProps>, T>, options?: Omit<UseMutationOptions<VerifyProbeResponseContainer, VerifyProbeErrorResponse, VerifyProbeMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<VerifyProbeResponseContainer, ApiRestError, VerifyProbeMutationProps<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 verifyProbe(props) {
7
- return fetcher(Object.assign({ url: `/rest/v2/probes/${props.probeId}/verify`, method: 'POST' }, props));
8
- }
9
- /**
10
- * Verify a probe
11
- */
12
- export function useVerifyProbeMutation(props, options) {
13
- return useMutation((mutateProps) => verifyProbe(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,3 +0,0 @@
1
- export interface TypesProbeVerifyRequest {
2
- certify?: boolean;
3
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};