@harnessio/react-chaos-manager-client 1.18.1-beta.4 → 1.19.1-beta.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 (22) hide show
  1. package/dist/chaos-manager/src/services/hooks/useListTargetNetworkMapsQuery.d.ts +4 -0
  2. package/dist/chaos-manager/src/services/hooks/usePipelineAddExperimentRecommendationMutation.d.ts +3 -2
  3. package/dist/chaos-manager/src/services/hooks/useVerifyProbeMutation.d.ts +29 -0
  4. package/dist/chaos-manager/src/services/hooks/useVerifyProbeMutation.js +14 -0
  5. package/dist/chaos-manager/src/services/index.d.ts +5 -0
  6. package/dist/chaos-manager/src/services/index.js +1 -0
  7. package/dist/chaos-manager/src/services/schemas/ApiResponseErrorCode.d.ts +1 -0
  8. package/dist/chaos-manager/src/services/schemas/ApiResponseErrorCode.js +4 -0
  9. package/dist/chaos-manager/src/services/schemas/ApiRestError.d.ts +2 -0
  10. package/dist/chaos-manager/src/services/schemas/ApiRestError.js +0 -3
  11. package/dist/chaos-manager/src/services/schemas/ExperimentProbeRef.d.ts +4 -0
  12. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommendationRecommendation.d.ts +1 -0
  13. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe.d.ts +4 -0
  14. package/dist/chaos-manager/src/services/schemas/ResourceQuantity.d.ts +1 -1
  15. package/dist/chaos-manager/src/services/schemas/SecurityGovernanceAccessControl.d.ts +1 -0
  16. package/dist/chaos-manager/src/services/schemas/SecurityGovernanceAccessControl.js +4 -0
  17. package/dist/chaos-manager/src/services/schemas/SecurityGovernanceK8sSpec.d.ts +2 -0
  18. package/dist/chaos-manager/src/services/schemas/TypesGetProbeResponse.d.ts +1 -0
  19. package/dist/chaos-manager/src/services/schemas/TypesProbeRequest.d.ts +1 -0
  20. package/dist/chaos-manager/src/services/schemas/TypesProbeVerifyRequest.d.ts +3 -0
  21. package/dist/chaos-manager/src/services/schemas/TypesProbeVerifyRequest.js +4 -0
  22. package/package.json +1 -1
@@ -15,6 +15,10 @@ 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;
18
22
  search?: string;
19
23
  }
20
24
  export type ListTargetNetworkMapsRequestBody = NetworkmapListTargetNetworkMapRequest;
@@ -1,5 +1,6 @@
1
1
  import { UseMutationOptions } from '@tanstack/react-query';
2
2
  import type { RecommendationsPipelineAddExperimentResponse } from '../schemas/RecommendationsPipelineAddExperimentResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
3
4
  import { FetcherOptions } from '../../../../custom-fetcher/index.js';
4
5
  export interface PipelineAddExperimentRecommendationMutationQueryParams {
5
6
  accountIdentifier: string;
@@ -8,7 +9,7 @@ export interface PipelineAddExperimentRecommendationMutationQueryParams {
8
9
  recommendationID: string;
9
10
  }
10
11
  export type PipelineAddExperimentRecommendationOkResponse = RecommendationsPipelineAddExperimentResponse;
11
- export type PipelineAddExperimentRecommendationErrorResponse = unknown;
12
+ export type PipelineAddExperimentRecommendationErrorResponse = ApiRestError;
12
13
  export interface PipelineAddExperimentRecommendationProps extends Omit<FetcherOptions<PipelineAddExperimentRecommendationMutationQueryParams, unknown>, 'url'> {
13
14
  queryParams: PipelineAddExperimentRecommendationMutationQueryParams;
14
15
  }
@@ -21,4 +22,4 @@ export type PipelineAddExperimentRecommendationMutationProps<T extends keyof Pip
21
22
  /**
22
23
  * Add recommended experiment to pipeline
23
24
  */
24
- export declare function usePipelineAddExperimentRecommendationMutation<T extends keyof PipelineAddExperimentRecommendationProps>(props: Pick<Partial<PipelineAddExperimentRecommendationProps>, T>, options?: Omit<UseMutationOptions<PipelineAddExperimentRecommendationResponseContainer, PipelineAddExperimentRecommendationErrorResponse, PipelineAddExperimentRecommendationMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PipelineAddExperimentRecommendationResponseContainer, unknown, PipelineAddExperimentRecommendationMutationProps<T>, unknown>;
25
+ export declare function usePipelineAddExperimentRecommendationMutation<T extends keyof PipelineAddExperimentRecommendationProps>(props: Pick<Partial<PipelineAddExperimentRecommendationProps>, T>, options?: Omit<UseMutationOptions<PipelineAddExperimentRecommendationResponseContainer, PipelineAddExperimentRecommendationErrorResponse, PipelineAddExperimentRecommendationMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<PipelineAddExperimentRecommendationResponseContainer, ApiRestError, PipelineAddExperimentRecommendationMutationProps<T>, unknown>;
@@ -0,0 +1,29 @@
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>;
@@ -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 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
+ }
@@ -304,6 +304,8 @@ export type { UpdateRecommendationStatusErrorResponse, UpdateRecommendationStatu
304
304
  export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
305
305
  export type { VerifyChaosStageInPipelineRunErrorResponse, VerifyChaosStageInPipelineRunOkResponse, VerifyChaosStageInPipelineRunProps, VerifyChaosStageInPipelineRunQueryQueryParams, } from './hooks/useVerifyChaosStageInPipelineRunQuery';
306
306
  export { useVerifyChaosStageInPipelineRunQuery, verifyChaosStageInPipelineRun, } from './hooks/useVerifyChaosStageInPipelineRunQuery';
307
+ export type { VerifyProbeErrorResponse, VerifyProbeMutationPathParams, VerifyProbeMutationProps, VerifyProbeMutationQueryParams, VerifyProbeOkResponse, VerifyProbeProps, VerifyProbeRequestBody, } from './hooks/useVerifyProbeMutation';
308
+ export { useVerifyProbeMutation, verifyProbe } from './hooks/useVerifyProbeMutation';
307
309
  export type { ChaosfaulttemplateActionTemplateRequestBody } from './requestBodies/ChaosfaulttemplateActionTemplateRequestBody';
308
310
  export type { InfraV2ListKubernetesInfraV2RequestRequestBody } from './requestBodies/InfraV2ListKubernetesInfraV2RequestRequestBody';
309
311
  export type { TypesProbeRequestRequestBody } from './requestBodies/TypesProbeRequestRequestBody';
@@ -324,6 +326,7 @@ export type { ActionsUserDetails } from './schemas/ActionsUserDetails';
324
326
  export type { ApiGetHarnessInfrastructureResponse } from './schemas/ApiGetHarnessInfrastructureResponse';
325
327
  export type { ApiHarnessInfrastructure } from './schemas/ApiHarnessInfrastructure';
326
328
  export type { ApiListHarnessInfrastructureResponse } from './schemas/ApiListHarnessInfrastructureResponse';
329
+ export type { ApiResponseErrorCode } from './schemas/ApiResponseErrorCode';
327
330
  export type { ApiRestError } from './schemas/ApiRestError';
328
331
  export type { ApplicationchaostargetListApplicationResponse } from './schemas/ApplicationchaostargetListApplicationResponse';
329
332
  export type { ApplicationchaostargetListFunctionResponse } from './schemas/ApplicationchaostargetListFunctionResponse';
@@ -744,6 +747,7 @@ export type { RecommendationsListRecommendationsResponse } from './schemas/Recom
744
747
  export type { RecommendationsPipelineAddExperimentResponse } from './schemas/RecommendationsPipelineAddExperimentResponse';
745
748
  export type { RecommendationsRunActionResponse } from './schemas/RecommendationsRunActionResponse';
746
749
  export type { ResourceQuantity } from './schemas/ResourceQuantity';
750
+ export type { SecurityGovernanceAccessControl } from './schemas/SecurityGovernanceAccessControl';
747
751
  export type { SecurityGovernanceApplicationSpec } from './schemas/SecurityGovernanceApplicationSpec';
748
752
  export type { SecurityGovernanceChaosServiceAccountSpec } from './schemas/SecurityGovernanceChaosServiceAccountSpec';
749
753
  export type { SecurityGovernanceCondition } from './schemas/SecurityGovernanceCondition';
@@ -819,6 +823,7 @@ export type { TypesProbeDetailsMinimal } from './schemas/TypesProbeDetailsMinima
819
823
  export type { TypesProbeRecentExecutions } from './schemas/TypesProbeRecentExecutions';
820
824
  export type { TypesProbeRequest } from './schemas/TypesProbeRequest';
821
825
  export type { TypesProbeType } from './schemas/TypesProbeType';
826
+ export type { TypesProbeVerifyRequest } from './schemas/TypesProbeVerifyRequest';
822
827
  export type { TypesRecentGamedayRun } from './schemas/TypesRecentGamedayRun';
823
828
  export type { TypesRun } from './schemas/TypesRun';
824
829
  export type { TypesScenarioType } from './schemas/TypesScenarioType';
@@ -151,3 +151,4 @@ export { updateProbe, useUpdateProbeMutation } from './hooks/useUpdateProbeMutat
151
151
  export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
152
152
  export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
153
153
  export { useVerifyChaosStageInPipelineRunQuery, verifyChaosStageInPipelineRun, } from './hooks/useVerifyChaosStageInPipelineRunQuery';
154
+ export { useVerifyProbeMutation, verifyProbe } from './hooks/useVerifyProbeMutation';
@@ -0,0 +1 @@
1
+ export type ApiResponseErrorCode = 'PIPELINE_NOT_FOUND';
@@ -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,4 +1,6 @@
1
+ import type { ApiResponseErrorCode } from '../schemas/ApiResponseErrorCode';
1
2
  export interface ApiRestError {
3
+ code?: ApiResponseErrorCode;
2
4
  description?: string;
3
5
  message?: string;
4
6
  }
@@ -1,4 +1 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
1
  export {};
@@ -30,6 +30,10 @@ export interface ExperimentProbeRef {
30
30
  * InfraID contains the infrastructure id
31
31
  */
32
32
  infraId?: string;
33
+ /**
34
+ * IsVerfied to verify the probe
35
+ */
36
+ isVerified?: boolean;
33
37
  /**
34
38
  * Name of the probe
35
39
  */
@@ -25,4 +25,5 @@ export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbRecommend
25
25
  source?: RecommendationRecommendationSource;
26
26
  suggestions?: RecommendationSuggestions[];
27
27
  tags?: string[];
28
+ updatedAt?: number;
28
29
  }
@@ -38,6 +38,10 @@ export interface GithubComHarnessHceSaasHceSdkCommonProbeV1Probe {
38
38
  * ID is the unique identifier for the probe
39
39
  */
40
40
  id?: string;
41
+ /**
42
+ * IsVerified indicates whether the probe is verified or not
43
+ */
44
+ isVerified?: boolean;
41
45
  /**
42
46
  * inputs needed for the k8s probe
43
47
  */
@@ -1,3 +1,3 @@
1
1
  export interface ResourceQuantity {
2
- Format?: 'BinarySI' | 'DecimalExponent' | 'DecimalSI';
2
+ Format?: string;
3
3
  }
@@ -0,0 +1 @@
1
+ export type SecurityGovernanceAccessControl = 'ALLOWED' | 'BLOCKED';
@@ -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
1
  import type { SecurityGovernanceApplicationSpec } from '../schemas/SecurityGovernanceApplicationSpec';
2
2
  import type { SecurityGovernanceChaosServiceAccountSpec } from '../schemas/SecurityGovernanceChaosServiceAccountSpec';
3
3
  import type { SecurityGovernanceInfraSpec } from '../schemas/SecurityGovernanceInfraSpec';
4
+ import type { SecurityGovernanceAccessControl } from '../schemas/SecurityGovernanceAccessControl';
4
5
  export interface SecurityGovernanceK8sSpec {
5
6
  applicationSpec?: SecurityGovernanceApplicationSpec;
6
7
  chaosServiceAccountSpec?: SecurityGovernanceChaosServiceAccountSpec;
7
8
  infraSpec?: SecurityGovernanceInfraSpec;
9
+ unverifiedProbe?: SecurityGovernanceAccessControl;
8
10
  }
@@ -16,6 +16,7 @@ export interface TypesGetProbeResponse {
16
16
  infrastructureType?: TypesInfrastructureType;
17
17
  isEnabled?: boolean;
18
18
  isImported?: boolean;
19
+ isVerified?: boolean;
19
20
  name?: string;
20
21
  probeId?: string;
21
22
  probeProperties?: ProbeProbeTemplateProperties;
@@ -13,6 +13,7 @@ export interface TypesProbeRequest {
13
13
  infrastructureType?: TypesInfrastructureType;
14
14
  isEnabled?: boolean;
15
15
  isImported?: boolean;
16
+ isVerified?: boolean;
16
17
  name?: string;
17
18
  probeId?: string;
18
19
  probeProperties?: ProbeProbeTemplateProperties;
@@ -0,0 +1,3 @@
1
+ export interface TypesProbeVerifyRequest {
2
+ certify?: boolean;
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.18.1-beta.4",
3
+ "version": "1.19.1-beta.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",