@harnessio/react-chaos-manager-client 1.91.7-beta.1 → 1.91.7-beta.2

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 (43) hide show
  1. package/dist/chaos-manager/src/services/hooks/useDeleteExperimentTemplateMutation.d.ts +2 -1
  2. package/dist/chaos-manager/src/services/hooks/useDeleteExperimentTemplateMutation.js +1 -1
  3. package/dist/chaos-manager/src/services/hooks/useImportExperimentTemplateV3Mutation.d.ts +35 -0
  4. package/dist/chaos-manager/src/services/hooks/useImportExperimentTemplateV3Mutation.js +14 -0
  5. package/dist/chaos-manager/src/services/hooks/useListChaosServicesQuery.d.ts +1 -0
  6. package/dist/chaos-manager/src/services/hooks/useListProbeTemplateRevisionsQuery.d.ts +35 -0
  7. package/dist/chaos-manager/src/services/hooks/useListProbeTemplateRevisionsQuery.js +14 -0
  8. package/dist/chaos-manager/src/services/hooks/useListRiskRulesQuery.d.ts +1 -0
  9. package/dist/chaos-manager/src/services/hooks/useListRiskScanRisksQuery.d.ts +1 -1
  10. package/dist/chaos-manager/src/services/hooks/useListRiskScansQuery.d.ts +1 -0
  11. package/dist/chaos-manager/src/services/hooks/useListScannedRisksQuery.d.ts +1 -0
  12. package/dist/chaos-manager/src/services/hooks/useListVariablesInProbeTemplateQuery.d.ts +6 -1
  13. package/dist/chaos-manager/src/services/hooks/useMoveExperimentTemplateConfigV3Mutation.d.ts +40 -0
  14. package/dist/chaos-manager/src/services/hooks/useMoveExperimentTemplateConfigV3Mutation.js +14 -0
  15. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigV3Mutation.d.ts +3 -0
  16. package/dist/chaos-manager/src/services/hooks/useRefreshExperimentTemplateV3Mutation.d.ts +32 -0
  17. package/dist/chaos-manager/src/services/hooks/useRefreshExperimentTemplateV3Mutation.js +14 -0
  18. package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.d.ts +1 -1
  19. package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.js +1 -1
  20. package/dist/chaos-manager/src/services/hooks/useUpdateExperimentTemplateGitMetadataV3Mutation.d.ts +36 -0
  21. package/dist/chaos-manager/src/services/hooks/useUpdateExperimentTemplateGitMetadataV3Mutation.js +14 -0
  22. package/dist/chaos-manager/src/services/hooks/useUpdateScannedRiskStatusMutation.d.ts +32 -0
  23. package/dist/chaos-manager/src/services/hooks/useUpdateScannedRiskStatusMutation.js +14 -0
  24. package/dist/chaos-manager/src/services/index.d.ts +15 -0
  25. package/dist/chaos-manager/src/services/index.js +6 -0
  26. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesExecutionOutput.d.ts +6 -0
  27. package/dist/chaos-manager/src/services/schemas/ChaosexperimenttemplateChaosExperimentTemplate.d.ts +14 -0
  28. package/dist/chaos-manager/src/services/schemas/ChaosexperimenttemplateCreateExperimentTemplateResponse.d.ts +27 -0
  29. package/dist/chaos-manager/src/services/schemas/ChaosexperimenttemplateGetExperimentTemplateResponse.d.ts +27 -0
  30. package/dist/chaos-manager/src/services/schemas/ChaosexperimenttemplateUpdateExperimentTemplateResponse.d.ts +27 -0
  31. package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.d.ts +3 -1
  32. package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateImportProbeTemplateRequest.d.ts +7 -2
  33. package/dist/chaos-manager/src/services/schemas/RiskRiskRuleSpec.d.ts +7 -0
  34. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatus.d.ts +1 -1
  35. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatusDetails.d.ts +11 -0
  36. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatusDetails.js +1 -0
  37. package/dist/chaos-manager/src/services/schemas/ScannedrisksScannedRiskSpec.d.ts +6 -0
  38. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryQuery.d.ts +4 -0
  39. package/dist/chaos-manager/src/services/schemas/ScannedrisksUpdateStatusRequest.d.ts +9 -0
  40. package/dist/chaos-manager/src/services/schemas/ScannedrisksUpdateStatusRequest.js +1 -0
  41. package/dist/chaos-manager/src/services/schemas/V3ImportRequest.d.ts +12 -0
  42. package/dist/chaos-manager/src/services/schemas/V3ImportRequest.js +4 -0
  43. package/package.json +1 -1
@@ -12,6 +12,7 @@ export interface DeleteExperimentTemplateMutationQueryParams {
12
12
  organizationIdentifier?: string;
13
13
  parentUniqueId?: string;
14
14
  projectIdentifier?: string;
15
+ revision?: string;
15
16
  verbose?: boolean;
16
17
  }
17
18
  export type DeleteExperimentTemplateOkResponse = GithubComHarnessHceSaasGraphqlServerApiEmpty;
@@ -26,6 +27,6 @@ export interface DeleteExperimentTemplateResponseContainer {
26
27
  export declare function deleteExperimentTemplate(props: DeleteExperimentTemplateProps): Promise<DeleteExperimentTemplateResponseContainer>;
27
28
  export type DeleteExperimentTemplateMutationProps<T extends keyof DeleteExperimentTemplateProps> = Omit<DeleteExperimentTemplateProps, T> & Partial<Pick<DeleteExperimentTemplateProps, T>>;
28
29
  /**
29
- * Delete the experiment templates in a hub based on tag
30
+ * Without revision, deletes every revision of the template. With revision, deletes only that revision; the default revision can be deleted only when it is the last one. Files stored in Git are never deleted.
30
31
  */
31
32
  export declare function useDeleteExperimentTemplateMutation<T extends keyof DeleteExperimentTemplateProps>(props: Pick<Partial<DeleteExperimentTemplateProps>, T>, options?: Omit<UseMutationOptions<DeleteExperimentTemplateResponseContainer, DeleteExperimentTemplateErrorResponse, DeleteExperimentTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteExperimentTemplateResponseContainer, ApiRestError, DeleteExperimentTemplateMutationProps<T>, unknown>;
@@ -7,7 +7,7 @@ export function deleteExperimentTemplate(props) {
7
7
  return fetcher(Object.assign({ url: `/rest/experimenttemplates/${props.identity}`, method: 'DELETE' }, props));
8
8
  }
9
9
  /**
10
- * Delete the experiment templates in a hub based on tag
10
+ * Without revision, deletes every revision of the template. With revision, deletes only that revision; the default revision can be deleted only when it is the last one. Files stored in Git are never deleted.
11
11
  */
12
12
  export function useDeleteExperimentTemplateMutation(props, options) {
13
13
  return useMutation((mutateProps) => deleteExperimentTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
@@ -0,0 +1,35 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosexperimenttemplateGetExperimentTemplateResponse } from '../schemas/ChaosexperimenttemplateGetExperimentTemplateResponse';
3
+ import type { SharedError } from '../schemas/SharedError';
4
+ import type { V3ImportRequest } from '../schemas/V3ImportRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface ImportExperimentTemplateV3MutationQueryParams {
7
+ accountIdentifier: string;
8
+ correlationID?: string;
9
+ hubIdentity?: string;
10
+ organizationIdentifier?: string;
11
+ parentUniqueId?: string;
12
+ projectIdentifier?: string;
13
+ connectorRef?: string;
14
+ repoName?: string;
15
+ isHarnessCodeRepo?: boolean;
16
+ branch?: string;
17
+ filePath: string;
18
+ }
19
+ export type ImportExperimentTemplateV3RequestBody = V3ImportRequest;
20
+ export type ImportExperimentTemplateV3OkResponse = ChaosexperimenttemplateGetExperimentTemplateResponse;
21
+ export type ImportExperimentTemplateV3ErrorResponse = SharedError;
22
+ export interface ImportExperimentTemplateV3Props extends Omit<FetcherOptions<ImportExperimentTemplateV3MutationQueryParams, ImportExperimentTemplateV3RequestBody>, 'url'> {
23
+ queryParams: ImportExperimentTemplateV3MutationQueryParams;
24
+ body: ImportExperimentTemplateV3RequestBody;
25
+ }
26
+ export interface ImportExperimentTemplateV3ResponseContainer {
27
+ body: ImportExperimentTemplateV3OkResponse;
28
+ headers: Headers;
29
+ }
30
+ export declare function importExperimentTemplateV3(props: ImportExperimentTemplateV3Props): Promise<ImportExperimentTemplateV3ResponseContainer>;
31
+ export type ImportExperimentTemplateV3MutationProps<T extends keyof ImportExperimentTemplateV3Props> = Omit<ImportExperimentTemplateV3Props, T> & Partial<Pick<ImportExperimentTemplateV3Props, T>>;
32
+ /**
33
+ * Creates an experiment template revision from an existing file in Git. Nothing is committed.
34
+ */
35
+ export declare function useImportExperimentTemplateV3Mutation<T extends keyof ImportExperimentTemplateV3Props>(props: Pick<Partial<ImportExperimentTemplateV3Props>, T>, options?: Omit<UseMutationOptions<ImportExperimentTemplateV3ResponseContainer, ImportExperimentTemplateV3ErrorResponse, ImportExperimentTemplateV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportExperimentTemplateV3ResponseContainer, SharedError, ImportExperimentTemplateV3MutationProps<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 importExperimentTemplateV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/experiment-templates/import`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Creates an experiment template revision from an existing file in Git. Nothing is committed.
11
+ */
12
+ export function useImportExperimentTemplateV3Mutation(props, options) {
13
+ return useMutation((mutateProps) => importExperimentTemplateV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -22,6 +22,7 @@ export interface ListChaosServicesQueryQueryParams {
22
22
  probeIds?: string;
23
23
  projectIdentifier?: string;
24
24
  search?: string;
25
+ serviceType?: 'AmazonApplicationLoadBalancer' | 'AmazonClassicLoadBalancer' | 'AmazonEC2Instance' | 'AmazonLambda' | 'AmazonNetworkLoadBalancer' | 'AmazonRelationalDatabaseService' | 'CodeRepository' | 'Kubernetes' | 'KubernetesNode' | 'KubernetesService' | 'KubernetesWorkload' | 'LinuxVM' | 'LinuxVMProcess' | 'Other' | 'WindowsVM' | 'WindowsVMProcess';
25
26
  sortAscending?: boolean;
26
27
  sortField?: 'createdAt' | 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
27
28
  tags?: string;
@@ -0,0 +1,35 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { ChaosprobetemplateListProbeTemplateResponse } from '../schemas/ChaosprobetemplateListProbeTemplateResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListProbeTemplateRevisionsQueryPathParams {
6
+ identity: string;
7
+ }
8
+ export interface ListProbeTemplateRevisionsQueryQueryParams {
9
+ accountIdentifier: string;
10
+ organizationIdentifier: string;
11
+ projectIdentifier: string;
12
+ hubIdentity: string;
13
+ /**
14
+ * @default 0
15
+ */
16
+ page?: number;
17
+ /**
18
+ * @default 15
19
+ */
20
+ limit?: number;
21
+ }
22
+ export type ListProbeTemplateRevisionsOkResponse = ChaosprobetemplateListProbeTemplateResponse;
23
+ export type ListProbeTemplateRevisionsErrorResponse = ApiRestError;
24
+ export interface ListProbeTemplateRevisionsProps extends ListProbeTemplateRevisionsQueryPathParams, Omit<FetcherOptions<ListProbeTemplateRevisionsQueryQueryParams, unknown>, 'url'> {
25
+ queryParams: ListProbeTemplateRevisionsQueryQueryParams;
26
+ }
27
+ export interface ListProbeTemplateRevisionsResponseContainer {
28
+ body: ListProbeTemplateRevisionsOkResponse;
29
+ headers: Headers;
30
+ }
31
+ export declare function listProbeTemplateRevisions(props: ListProbeTemplateRevisionsProps): Promise<ListProbeTemplateRevisionsResponseContainer>;
32
+ /**
33
+ * Lists every live revision of one probe template, newest revision first. Show versionLabel. isDefault marks the stable version.
34
+ */
35
+ export declare function useListProbeTemplateRevisionsQuery(props: ListProbeTemplateRevisionsProps, options?: Omit<UseQueryOptions<ListProbeTemplateRevisionsResponseContainer, ListProbeTemplateRevisionsErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListProbeTemplateRevisionsResponseContainer, 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 listProbeTemplateRevisions(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}/revisions`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * Lists every live revision of one probe template, newest revision first. Show versionLabel. isDefault marks the stable version.
11
+ */
12
+ export function useListProbeTemplateRevisionsQuery(props, options) {
13
+ return useQuery(['listProbeTemplateRevisions', props.identity, props.queryParams], ({ signal }) => listProbeTemplateRevisions(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -8,6 +8,7 @@ export interface ListRiskRulesQueryQueryParams {
8
8
  customOnly?: boolean;
9
9
  dataSource?: string;
10
10
  includeAllScope?: boolean;
11
+ includeInPassiveScan?: boolean;
11
12
  isSystem?: boolean;
12
13
  /**
13
14
  * @default 15
@@ -29,7 +29,7 @@ export interface ListRiskScanRisksQueryQueryParams {
29
29
  severity?: 'Critical' | 'High' | 'Low' | 'Medium';
30
30
  sortAscending?: boolean;
31
31
  sortField?: 'firstDetected' | 'lastDetected' | 'name' | 'occurrenceCount' | 'severity';
32
- status?: 'Ignored' | 'InProgress' | 'Open' | 'Resolved';
32
+ status?: 'Ignored' | 'InProgress' | 'Invalid' | 'Open' | 'Resolved';
33
33
  tags?: string;
34
34
  validationType?: 'Confirmed' | 'Passive';
35
35
  }
@@ -20,6 +20,7 @@ export interface ListRiskScansQueryQueryParams {
20
20
  parentUniqueId?: string;
21
21
  pipelineIdentity?: string;
22
22
  projectIdentifier?: string;
23
+ repoURL?: string;
23
24
  scanType?: string;
24
25
  search?: string;
25
26
  sortAscending?: boolean;
@@ -36,6 +36,7 @@ export interface ListScannedRisksQueryQueryParams {
36
36
  sortField?: 'firstDetected' | 'lastDetected' | 'lastUpdated' | 'name' | 'occurrenceCount' | 'severity';
37
37
  source?: 'DiscoveryAgent' | 'PipelineExecution' | 'ProbeExecution';
38
38
  startTime?: number;
39
+ status?: 'Ignored' | 'Invalid' | 'Open' | 'Resolved';
39
40
  tags?: string;
40
41
  validationType?: string;
41
42
  }
@@ -12,10 +12,15 @@ export interface ListVariablesInProbeTemplateQueryQueryParams {
12
12
  hubIdentity: string;
13
13
  revision: string;
14
14
  versionLabel?: string;
15
+ branch?: string;
16
+ loadFromFallbackBranch?: boolean;
17
+ }
18
+ export interface ListVariablesInProbeTemplateQueryHeaderParams {
19
+ 'Load-From-Cache'?: string;
15
20
  }
16
21
  export type ListVariablesInProbeTemplateOkResponse = ChaosprobetemplateProbeTemplateVariables;
17
22
  export type ListVariablesInProbeTemplateErrorResponse = ApiRestError;
18
- export interface ListVariablesInProbeTemplateProps extends ListVariablesInProbeTemplateQueryPathParams, Omit<FetcherOptions<ListVariablesInProbeTemplateQueryQueryParams, unknown>, 'url'> {
23
+ export interface ListVariablesInProbeTemplateProps extends ListVariablesInProbeTemplateQueryPathParams, Omit<FetcherOptions<ListVariablesInProbeTemplateQueryQueryParams, unknown, ListVariablesInProbeTemplateQueryHeaderParams>, 'url'> {
19
24
  queryParams: ListVariablesInProbeTemplateQueryQueryParams;
20
25
  }
21
26
  export interface ListVariablesInProbeTemplateResponseContainer {
@@ -0,0 +1,40 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosexperimenttemplateGetExperimentTemplateResponse } from '../schemas/ChaosexperimenttemplateGetExperimentTemplateResponse';
3
+ import type { SharedError } from '../schemas/SharedError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface MoveExperimentTemplateConfigV3MutationPathParams {
6
+ identity: string;
7
+ revision: string;
8
+ }
9
+ export interface MoveExperimentTemplateConfigV3MutationQueryParams {
10
+ accountIdentifier: string;
11
+ correlationID?: string;
12
+ hubIdentity?: string;
13
+ organizationIdentifier?: string;
14
+ parentUniqueId?: string;
15
+ projectIdentifier?: string;
16
+ moveConfigType: string;
17
+ connectorRef?: string;
18
+ repoName?: string;
19
+ isHarnessCodeRepo?: boolean;
20
+ branch?: string;
21
+ isNewBranch?: boolean;
22
+ baseBranch?: string;
23
+ filePath?: string;
24
+ commitMsg?: string;
25
+ }
26
+ export type MoveExperimentTemplateConfigV3OkResponse = ChaosexperimenttemplateGetExperimentTemplateResponse;
27
+ export type MoveExperimentTemplateConfigV3ErrorResponse = SharedError;
28
+ export interface MoveExperimentTemplateConfigV3Props extends MoveExperimentTemplateConfigV3MutationPathParams, Omit<FetcherOptions<MoveExperimentTemplateConfigV3MutationQueryParams, unknown>, 'url'> {
29
+ queryParams: MoveExperimentTemplateConfigV3MutationQueryParams;
30
+ }
31
+ export interface MoveExperimentTemplateConfigV3ResponseContainer {
32
+ body: MoveExperimentTemplateConfigV3OkResponse;
33
+ headers: Headers;
34
+ }
35
+ export declare function moveExperimentTemplateConfigV3(props: MoveExperimentTemplateConfigV3Props): Promise<MoveExperimentTemplateConfigV3ResponseContainer>;
36
+ export type MoveExperimentTemplateConfigV3MutationProps<T extends keyof MoveExperimentTemplateConfigV3Props> = Omit<MoveExperimentTemplateConfigV3Props, T> & Partial<Pick<MoveExperimentTemplateConfigV3Props, T>>;
37
+ /**
38
+ * Moves an experiment template revision between Harness and Git
39
+ */
40
+ export declare function useMoveExperimentTemplateConfigV3Mutation<T extends keyof MoveExperimentTemplateConfigV3Props>(props: Pick<Partial<MoveExperimentTemplateConfigV3Props>, T>, options?: Omit<UseMutationOptions<MoveExperimentTemplateConfigV3ResponseContainer, MoveExperimentTemplateConfigV3ErrorResponse, MoveExperimentTemplateConfigV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<MoveExperimentTemplateConfigV3ResponseContainer, SharedError, MoveExperimentTemplateConfigV3MutationProps<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 moveExperimentTemplateConfigV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/experiment-templates/${props.identity}/revisions/${props.revision}/move-config`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Moves an experiment template revision between Harness and Git
11
+ */
12
+ export function useMoveExperimentTemplateConfigV3Mutation(props, options) {
13
+ return useMutation((mutateProps) => moveExperimentTemplateConfigV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -16,7 +16,10 @@ export interface MoveProbeTemplateConfigV3MutationQueryParams {
16
16
  moveConfigType: string;
17
17
  connectorRef?: string;
18
18
  repoName?: string;
19
+ isHarnessCodeRepo?: boolean;
19
20
  branch?: string;
21
+ isNewBranch?: boolean;
22
+ baseBranch?: string;
20
23
  filePath?: string;
21
24
  commitMsg?: string;
22
25
  }
@@ -0,0 +1,32 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosexperimenttemplateGetExperimentTemplateResponse } from '../schemas/ChaosexperimenttemplateGetExperimentTemplateResponse';
3
+ import type { SharedError } from '../schemas/SharedError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface RefreshExperimentTemplateV3MutationPathParams {
6
+ identity: string;
7
+ revision: string;
8
+ }
9
+ export interface RefreshExperimentTemplateV3MutationQueryParams {
10
+ accountIdentifier: string;
11
+ correlationID?: string;
12
+ hubIdentity?: string;
13
+ organizationIdentifier?: string;
14
+ parentUniqueId?: string;
15
+ projectIdentifier?: string;
16
+ branch?: string;
17
+ }
18
+ export type RefreshExperimentTemplateV3OkResponse = ChaosexperimenttemplateGetExperimentTemplateResponse;
19
+ export type RefreshExperimentTemplateV3ErrorResponse = SharedError;
20
+ export interface RefreshExperimentTemplateV3Props extends RefreshExperimentTemplateV3MutationPathParams, Omit<FetcherOptions<RefreshExperimentTemplateV3MutationQueryParams, unknown>, 'url'> {
21
+ queryParams: RefreshExperimentTemplateV3MutationQueryParams;
22
+ }
23
+ export interface RefreshExperimentTemplateV3ResponseContainer {
24
+ body: RefreshExperimentTemplateV3OkResponse;
25
+ headers: Headers;
26
+ }
27
+ export declare function refreshExperimentTemplateV3(props: RefreshExperimentTemplateV3Props): Promise<RefreshExperimentTemplateV3ResponseContainer>;
28
+ export type RefreshExperimentTemplateV3MutationProps<T extends keyof RefreshExperimentTemplateV3Props> = Omit<RefreshExperimentTemplateV3Props, T> & Partial<Pick<RefreshExperimentTemplateV3Props, T>>;
29
+ /**
30
+ * Reloads an experiment template revision from Git
31
+ */
32
+ export declare function useRefreshExperimentTemplateV3Mutation<T extends keyof RefreshExperimentTemplateV3Props>(props: Pick<Partial<RefreshExperimentTemplateV3Props>, T>, options?: Omit<UseMutationOptions<RefreshExperimentTemplateV3ResponseContainer, RefreshExperimentTemplateV3ErrorResponse, RefreshExperimentTemplateV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RefreshExperimentTemplateV3ResponseContainer, SharedError, RefreshExperimentTemplateV3MutationProps<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 refreshExperimentTemplateV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/experiment-templates/${props.identity}/revisions/${props.revision}/refresh`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Reloads an experiment template revision from Git
11
+ */
12
+ export function useRefreshExperimentTemplateV3Mutation(props, options) {
13
+ return useMutation((mutateProps) => refreshExperimentTemplateV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -24,6 +24,6 @@ export interface SummarizeScannedRisksByServiceResponseContainer {
24
24
  export declare function summarizeScannedRisksByService(props: SummarizeScannedRisksByServiceProps): Promise<SummarizeScannedRisksByServiceResponseContainer>;
25
25
  export type SummarizeScannedRisksByServiceMutationProps<T extends keyof SummarizeScannedRisksByServiceProps> = Omit<SummarizeScannedRisksByServiceProps, T> & Partial<Pick<SummarizeScannedRisksByServiceProps, T>>;
26
26
  /**
27
- * Returns aggregated risk counts (total, critical, high, medium, low) per target service.
27
+ * Returns aggregated risk counts (total, critical, high, medium, low) per target service. The search field filters services by a case-insensitive substring of the service name.
28
28
  */
29
29
  export declare function useSummarizeScannedRisksByServiceMutation<T extends keyof SummarizeScannedRisksByServiceProps>(props: Pick<Partial<SummarizeScannedRisksByServiceProps>, T>, options?: Omit<UseMutationOptions<SummarizeScannedRisksByServiceResponseContainer, SummarizeScannedRisksByServiceErrorResponse, SummarizeScannedRisksByServiceMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SummarizeScannedRisksByServiceResponseContainer, SharedError, SummarizeScannedRisksByServiceMutationProps<T>, unknown>;
@@ -7,7 +7,7 @@ export function summarizeScannedRisksByService(props) {
7
7
  return fetcher(Object.assign({ url: `/v3/scanned-risks/summary`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * Returns aggregated risk counts (total, critical, high, medium, low) per target service.
10
+ * Returns aggregated risk counts (total, critical, high, medium, low) per target service. The search field filters services by a case-insensitive substring of the service name.
11
11
  */
12
12
  export function useSummarizeScannedRisksByServiceMutation(props, options) {
13
13
  return useMutation((mutateProps) => summarizeScannedRisksByService(Object.assign(Object.assign({}, props), mutateProps)), options);
@@ -0,0 +1,36 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosexperimenttemplateGetExperimentTemplateResponse } from '../schemas/ChaosexperimenttemplateGetExperimentTemplateResponse';
3
+ import type { SharedError } from '../schemas/SharedError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface UpdateExperimentTemplateGitMetadataV3MutationPathParams {
6
+ identity: string;
7
+ revision: string;
8
+ }
9
+ export interface UpdateExperimentTemplateGitMetadataV3MutationQueryParams {
10
+ accountIdentifier: string;
11
+ correlationID?: string;
12
+ hubIdentity?: string;
13
+ organizationIdentifier?: string;
14
+ parentUniqueId?: string;
15
+ projectIdentifier?: string;
16
+ connectorRef?: string;
17
+ repoName?: string;
18
+ isHarnessCodeRepo?: boolean;
19
+ filePath?: string;
20
+ branch?: string;
21
+ }
22
+ export type UpdateExperimentTemplateGitMetadataV3OkResponse = ChaosexperimenttemplateGetExperimentTemplateResponse;
23
+ export type UpdateExperimentTemplateGitMetadataV3ErrorResponse = SharedError;
24
+ export interface UpdateExperimentTemplateGitMetadataV3Props extends UpdateExperimentTemplateGitMetadataV3MutationPathParams, Omit<FetcherOptions<UpdateExperimentTemplateGitMetadataV3MutationQueryParams, unknown>, 'url'> {
25
+ queryParams: UpdateExperimentTemplateGitMetadataV3MutationQueryParams;
26
+ }
27
+ export interface UpdateExperimentTemplateGitMetadataV3ResponseContainer {
28
+ body: UpdateExperimentTemplateGitMetadataV3OkResponse;
29
+ headers: Headers;
30
+ }
31
+ export declare function updateExperimentTemplateGitMetadataV3(props: UpdateExperimentTemplateGitMetadataV3Props): Promise<UpdateExperimentTemplateGitMetadataV3ResponseContainer>;
32
+ export type UpdateExperimentTemplateGitMetadataV3MutationProps<T extends keyof UpdateExperimentTemplateGitMetadataV3Props> = Omit<UpdateExperimentTemplateGitMetadataV3Props, T> & Partial<Pick<UpdateExperimentTemplateGitMetadataV3Props, T>>;
33
+ /**
34
+ * The file at the new location must already exist and describe this revision.
35
+ */
36
+ export declare function useUpdateExperimentTemplateGitMetadataV3Mutation<T extends keyof UpdateExperimentTemplateGitMetadataV3Props>(props: Pick<Partial<UpdateExperimentTemplateGitMetadataV3Props>, T>, options?: Omit<UseMutationOptions<UpdateExperimentTemplateGitMetadataV3ResponseContainer, UpdateExperimentTemplateGitMetadataV3ErrorResponse, UpdateExperimentTemplateGitMetadataV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateExperimentTemplateGitMetadataV3ResponseContainer, SharedError, UpdateExperimentTemplateGitMetadataV3MutationProps<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 updateExperimentTemplateGitMetadataV3(props) {
7
+ return fetcher(Object.assign({ url: `/v3/experiment-templates/${props.identity}/revisions/${props.revision}/git-metadata`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * The file at the new location must already exist and describe this revision.
11
+ */
12
+ export function useUpdateExperimentTemplateGitMetadataV3Mutation(props, options) {
13
+ return useMutation((mutateProps) => updateExperimentTemplateGitMetadataV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,32 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ScannedrisksGetResponse } from '../schemas/ScannedrisksGetResponse';
3
+ import type { SharedError } from '../schemas/SharedError';
4
+ import type { ScannedrisksUpdateStatusRequest } from '../schemas/ScannedrisksUpdateStatusRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface UpdateScannedRiskStatusMutationPathParams {
7
+ identity: string;
8
+ }
9
+ export interface UpdateScannedRiskStatusMutationQueryParams {
10
+ accountIdentifier: string;
11
+ correlationID?: string;
12
+ organizationIdentifier?: string;
13
+ parentUniqueId?: string;
14
+ projectIdentifier?: string;
15
+ }
16
+ export type UpdateScannedRiskStatusRequestBody = ScannedrisksUpdateStatusRequest;
17
+ export type UpdateScannedRiskStatusOkResponse = ScannedrisksGetResponse;
18
+ export type UpdateScannedRiskStatusErrorResponse = SharedError;
19
+ export interface UpdateScannedRiskStatusProps extends UpdateScannedRiskStatusMutationPathParams, Omit<FetcherOptions<UpdateScannedRiskStatusMutationQueryParams, UpdateScannedRiskStatusRequestBody>, 'url'> {
20
+ queryParams: UpdateScannedRiskStatusMutationQueryParams;
21
+ body: UpdateScannedRiskStatusRequestBody;
22
+ }
23
+ export interface UpdateScannedRiskStatusResponseContainer {
24
+ body: UpdateScannedRiskStatusOkResponse;
25
+ headers: Headers;
26
+ }
27
+ export declare function updateScannedRiskStatus(props: UpdateScannedRiskStatusProps): Promise<UpdateScannedRiskStatusResponseContainer>;
28
+ export type UpdateScannedRiskStatusMutationProps<T extends keyof UpdateScannedRiskStatusProps> = Omit<UpdateScannedRiskStatusProps, T> & Partial<Pick<UpdateScannedRiskStatusProps, T>>;
29
+ /**
30
+ * sets a scanned risk to Open, Ignored, or Resolved. Resolved requires mitigated=true. Ignored risks stay Ignored when detected again; Resolved risks reopen. Invalid is set only when the risk rule changes and cannot be set or cleared here.
31
+ */
32
+ export declare function useUpdateScannedRiskStatusMutation<T extends keyof UpdateScannedRiskStatusProps>(props: Pick<Partial<UpdateScannedRiskStatusProps>, T>, options?: Omit<UseMutationOptions<UpdateScannedRiskStatusResponseContainer, UpdateScannedRiskStatusErrorResponse, UpdateScannedRiskStatusMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateScannedRiskStatusResponseContainer, SharedError, UpdateScannedRiskStatusMutationProps<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 updateScannedRiskStatus(props) {
7
+ return fetcher(Object.assign({ url: `/v3/scanned-risks/${props.identity}/status`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * sets a scanned risk to Open, Ignored, or Resolved. Resolved requires mitigated=true. Ignored risks stay Ignored when detected again; Resolved risks reopen. Invalid is set only when the risk rule changes and cannot be set or cleared here.
11
+ */
12
+ export function useUpdateScannedRiskStatusMutation(props, options) {
13
+ return useMutation((mutateProps) => updateScannedRiskStatus(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -310,6 +310,8 @@ export type { HealthCheckV3ErrorResponse, HealthCheckV3OkResponse, HealthCheckV3
310
310
  export { healthCheckV3, useHealthCheckV3Query } from './hooks/useHealthCheckV3Query';
311
311
  export type { ImportActionErrorResponse, ImportActionMutationProps, ImportActionMutationQueryParams, ImportActionOkResponse, ImportActionProps, ImportActionRequestBody, } from './hooks/useImportActionMutation';
312
312
  export { importAction, useImportActionMutation } from './hooks/useImportActionMutation';
313
+ export type { ImportExperimentTemplateV3ErrorResponse, ImportExperimentTemplateV3MutationProps, ImportExperimentTemplateV3MutationQueryParams, ImportExperimentTemplateV3OkResponse, ImportExperimentTemplateV3Props, ImportExperimentTemplateV3RequestBody, } from './hooks/useImportExperimentTemplateV3Mutation';
314
+ export { importExperimentTemplateV3, useImportExperimentTemplateV3Mutation, } from './hooks/useImportExperimentTemplateV3Mutation';
313
315
  export type { ImportProbeErrorResponse, ImportProbeMutationProps, ImportProbeMutationQueryParams, ImportProbeOkResponse, ImportProbeProps, ImportProbeRequestBody, } from './hooks/useImportProbeMutation';
314
316
  export { importProbe, useImportProbeMutation } from './hooks/useImportProbeMutation';
315
317
  export type { ImportProbeTemplateV3ErrorResponse, ImportProbeTemplateV3MutationProps, ImportProbeTemplateV3MutationQueryParams, ImportProbeTemplateV3OkResponse, ImportProbeTemplateV3Props, ImportProbeTemplateV3RequestBody, } from './hooks/useImportProbeTemplateV3Mutation';
@@ -428,6 +430,8 @@ export type { ListProbeTemplateErrorResponse, ListProbeTemplateOkResponse, ListP
428
430
  export { listProbeTemplate, useListProbeTemplateQuery } from './hooks/useListProbeTemplateQuery';
429
431
  export type { ListProbeTemplateReferencedByErrorResponse, ListProbeTemplateReferencedByOkResponse, ListProbeTemplateReferencedByProps, ListProbeTemplateReferencedByQueryPathParams, ListProbeTemplateReferencedByQueryQueryParams, } from './hooks/useListProbeTemplateReferencedByQuery';
430
432
  export { listProbeTemplateReferencedBy, useListProbeTemplateReferencedByQuery, } from './hooks/useListProbeTemplateReferencedByQuery';
433
+ export type { ListProbeTemplateRevisionsErrorResponse, ListProbeTemplateRevisionsOkResponse, ListProbeTemplateRevisionsProps, ListProbeTemplateRevisionsQueryPathParams, ListProbeTemplateRevisionsQueryQueryParams, } from './hooks/useListProbeTemplateRevisionsQuery';
434
+ export { listProbeTemplateRevisions, useListProbeTemplateRevisionsQuery, } from './hooks/useListProbeTemplateRevisionsQuery';
431
435
  export type { ListProbesErrorResponse, ListProbesOkResponse, ListProbesProps, ListProbesQueryQueryParams, } from './hooks/useListProbesQuery';
432
436
  export { listProbes, useListProbesQuery } from './hooks/useListProbesQuery';
433
437
  export type { ListRecommendationsErrorResponse, ListRecommendationsOkResponse, ListRecommendationsProps, ListRecommendationsQueryQueryParams, ListRecommendationsRequestBody, } from './hooks/useListRecommendationsQuery';
@@ -462,6 +466,8 @@ export type { ListVariablesInActionTemplateErrorResponse, ListVariablesInActionT
462
466
  export { listVariablesInActionTemplate, useListVariablesInActionTemplateQuery, } from './hooks/useListVariablesInActionTemplateQuery';
463
467
  export type { ListVariablesInProbeTemplateErrorResponse, ListVariablesInProbeTemplateOkResponse, ListVariablesInProbeTemplateProps, ListVariablesInProbeTemplateQueryPathParams, ListVariablesInProbeTemplateQueryQueryParams, } from './hooks/useListVariablesInProbeTemplateQuery';
464
468
  export { listVariablesInProbeTemplate, useListVariablesInProbeTemplateQuery, } from './hooks/useListVariablesInProbeTemplateQuery';
469
+ export type { MoveExperimentTemplateConfigV3ErrorResponse, MoveExperimentTemplateConfigV3MutationPathParams, MoveExperimentTemplateConfigV3MutationProps, MoveExperimentTemplateConfigV3MutationQueryParams, MoveExperimentTemplateConfigV3OkResponse, MoveExperimentTemplateConfigV3Props, } from './hooks/useMoveExperimentTemplateConfigV3Mutation';
470
+ export { moveExperimentTemplateConfigV3, useMoveExperimentTemplateConfigV3Mutation, } from './hooks/useMoveExperimentTemplateConfigV3Mutation';
465
471
  export type { MoveProbeTemplateConfigV3ErrorResponse, MoveProbeTemplateConfigV3MutationPathParams, MoveProbeTemplateConfigV3MutationProps, MoveProbeTemplateConfigV3MutationQueryParams, MoveProbeTemplateConfigV3OkResponse, MoveProbeTemplateConfigV3Props, } from './hooks/useMoveProbeTemplateConfigV3Mutation';
466
472
  export { moveProbeTemplateConfigV3, useMoveProbeTemplateConfigV3Mutation, } from './hooks/useMoveProbeTemplateConfigV3Mutation';
467
473
  export type { OnboardServicesErrorResponse, OnboardServicesMutationPathParams, OnboardServicesMutationProps, OnboardServicesMutationQueryParams, OnboardServicesOkResponse, OnboardServicesProps, OnboardServicesRequestBody, } from './hooks/useOnboardServicesMutation';
@@ -490,6 +496,8 @@ export type { ProcessTemplateErrorResponse, ProcessTemplateMutationProps, Proces
490
496
  export { processTemplate, useProcessTemplateMutation } from './hooks/useProcessTemplateMutation';
491
497
  export type { RecommendationEventErrorResponse, RecommendationEventMutationProps, RecommendationEventOkResponse, RecommendationEventProps, RecommendationEventRequestBody, } from './hooks/useRecommendationEventMutation';
492
498
  export { recommendationEvent, useRecommendationEventMutation, } from './hooks/useRecommendationEventMutation';
499
+ export type { RefreshExperimentTemplateV3ErrorResponse, RefreshExperimentTemplateV3MutationPathParams, RefreshExperimentTemplateV3MutationProps, RefreshExperimentTemplateV3MutationQueryParams, RefreshExperimentTemplateV3OkResponse, RefreshExperimentTemplateV3Props, } from './hooks/useRefreshExperimentTemplateV3Mutation';
500
+ export { refreshExperimentTemplateV3, useRefreshExperimentTemplateV3Mutation, } from './hooks/useRefreshExperimentTemplateV3Mutation';
493
501
  export type { RefreshProbeTemplateV3ErrorResponse, RefreshProbeTemplateV3MutationPathParams, RefreshProbeTemplateV3MutationProps, RefreshProbeTemplateV3MutationQueryParams, RefreshProbeTemplateV3OkResponse, RefreshProbeTemplateV3Props, } from './hooks/useRefreshProbeTemplateV3Mutation';
494
502
  export { refreshProbeTemplateV3, useRefreshProbeTemplateV3Mutation, } from './hooks/useRefreshProbeTemplateV3Mutation';
495
503
  export type { RegisterInfraV2ErrorResponse, RegisterInfraV2MutationProps, RegisterInfraV2MutationQueryParams, RegisterInfraV2OkResponse, RegisterInfraV2Props, RegisterInfraV2RequestBody, } from './hooks/useRegisterInfraV2Mutation';
@@ -570,6 +578,8 @@ export type { UpdateDashboardV3ErrorResponse, UpdateDashboardV3MutationPathParam
570
578
  export { updateDashboardV3, useUpdateDashboardV3Mutation, } from './hooks/useUpdateDashboardV3Mutation';
571
579
  export type { UpdateEmissaryErrorResponse, UpdateEmissaryMutationPathParams, UpdateEmissaryMutationProps, UpdateEmissaryMutationQueryParams, UpdateEmissaryOkResponse, UpdateEmissaryProps, UpdateEmissaryRequestBody, } from './hooks/useUpdateEmissaryMutation';
572
580
  export { updateEmissary, useUpdateEmissaryMutation } from './hooks/useUpdateEmissaryMutation';
581
+ export type { UpdateExperimentTemplateGitMetadataV3ErrorResponse, UpdateExperimentTemplateGitMetadataV3MutationPathParams, UpdateExperimentTemplateGitMetadataV3MutationProps, UpdateExperimentTemplateGitMetadataV3MutationQueryParams, UpdateExperimentTemplateGitMetadataV3OkResponse, UpdateExperimentTemplateGitMetadataV3Props, } from './hooks/useUpdateExperimentTemplateGitMetadataV3Mutation';
582
+ export { updateExperimentTemplateGitMetadataV3, useUpdateExperimentTemplateGitMetadataV3Mutation, } from './hooks/useUpdateExperimentTemplateGitMetadataV3Mutation';
573
583
  export type { UpdateExperimentTemplateErrorResponse, UpdateExperimentTemplateMutationPathParams, UpdateExperimentTemplateMutationProps, UpdateExperimentTemplateMutationQueryParams, UpdateExperimentTemplateOkResponse, UpdateExperimentTemplateProps, UpdateExperimentTemplateRequestBody, } from './hooks/useUpdateExperimentTemplateMutation';
574
584
  export { updateExperimentTemplate, useUpdateExperimentTemplateMutation, } from './hooks/useUpdateExperimentTemplateMutation';
575
585
  export type { UpdateExperimentV3ErrorResponse, UpdateExperimentV3MutationPathParams, UpdateExperimentV3MutationProps, UpdateExperimentV3MutationQueryParams, UpdateExperimentV3OkResponse, UpdateExperimentV3Props, UpdateExperimentV3RequestBody, } from './hooks/useUpdateExperimentV3Mutation';
@@ -608,6 +618,8 @@ export type { UpdateRiskScanErrorResponse, UpdateRiskScanMutationPathParams, Upd
608
618
  export { updateRiskScan, useUpdateRiskScanMutation } from './hooks/useUpdateRiskScanMutation';
609
619
  export type { UpdateRuleErrorResponse, UpdateRuleMutationPathParams, UpdateRuleMutationProps, UpdateRuleMutationQueryParams, UpdateRuleOkResponse, UpdateRuleProps, UpdateRuleRequestBody, } from './hooks/useUpdateRuleMutation';
610
620
  export { updateRule, useUpdateRuleMutation } from './hooks/useUpdateRuleMutation';
621
+ export type { UpdateScannedRiskStatusErrorResponse, UpdateScannedRiskStatusMutationPathParams, UpdateScannedRiskStatusMutationProps, UpdateScannedRiskStatusMutationQueryParams, UpdateScannedRiskStatusOkResponse, UpdateScannedRiskStatusProps, UpdateScannedRiskStatusRequestBody, } from './hooks/useUpdateScannedRiskStatusMutation';
622
+ export { updateScannedRiskStatus, useUpdateScannedRiskStatusMutation, } from './hooks/useUpdateScannedRiskStatusMutation';
611
623
  export type { UpgradeLegacyKubernetesChaosInfraErrorResponse, UpgradeLegacyKubernetesChaosInfraMutationPathParams, UpgradeLegacyKubernetesChaosInfraMutationProps, UpgradeLegacyKubernetesChaosInfraMutationQueryParams, UpgradeLegacyKubernetesChaosInfraOkResponse, UpgradeLegacyKubernetesChaosInfraProps, } from './hooks/useUpgradeLegacyKubernetesChaosInfraMutation';
612
624
  export { upgradeLegacyKubernetesChaosInfra, useUpgradeLegacyKubernetesChaosInfraMutation, } from './hooks/useUpgradeLegacyKubernetesChaosInfraMutation';
613
625
  export type { VerifyChaosStageInPipelineRunErrorResponse, VerifyChaosStageInPipelineRunOkResponse, VerifyChaosStageInPipelineRunProps, VerifyChaosStageInPipelineRunQueryQueryParams, } from './hooks/useVerifyChaosStageInPipelineRunQuery';
@@ -1440,11 +1452,13 @@ export type { ScannedrisksOccurrenceDetail } from './schemas/ScannedrisksOccurre
1440
1452
  export type { ScannedrisksOccurrencesResponse } from './schemas/ScannedrisksOccurrencesResponse';
1441
1453
  export type { ScannedrisksRiskStat } from './schemas/ScannedrisksRiskStat';
1442
1454
  export type { ScannedrisksRiskStatus } from './schemas/ScannedrisksRiskStatus';
1455
+ export type { ScannedrisksRiskStatusDetails } from './schemas/ScannedrisksRiskStatusDetails';
1443
1456
  export type { ScannedrisksScannedRisk } from './schemas/ScannedrisksScannedRisk';
1444
1457
  export type { ScannedrisksScannedRiskSpec } from './schemas/ScannedrisksScannedRiskSpec';
1445
1458
  export type { ScannedrisksServiceRiskSummary } from './schemas/ScannedrisksServiceRiskSummary';
1446
1459
  export type { ScannedrisksServiceRiskSummaryQuery } from './schemas/ScannedrisksServiceRiskSummaryQuery';
1447
1460
  export type { ScannedrisksServiceRiskSummaryResponse } from './schemas/ScannedrisksServiceRiskSummaryResponse';
1461
+ export type { ScannedrisksUpdateStatusRequest } from './schemas/ScannedrisksUpdateStatusRequest';
1448
1462
  export type { ScannedrisksValidationType } from './schemas/ScannedrisksValidationType';
1449
1463
  export type { ScmCacheInfo } from './schemas/ScmCacheInfo';
1450
1464
  export type { ScmCacheState } from './schemas/ScmCacheState';
@@ -1760,6 +1774,7 @@ export type { V3AbortRiskScanRequest } from './schemas/V3AbortRiskScanRequest';
1760
1774
  export type { V3DeleteResponse } from './schemas/V3DeleteResponse';
1761
1775
  export type { V3GetExperimentOrTemplateVariableData } from './schemas/V3GetExperimentOrTemplateVariableData';
1762
1776
  export type { V3GetExperimentOrTemplateVariableResponse } from './schemas/V3GetExperimentOrTemplateVariableResponse';
1777
+ export type { V3ImportRequest } from './schemas/V3ImportRequest';
1763
1778
  export type { V3ListExperimentData } from './schemas/V3ListExperimentData';
1764
1779
  export type { V3ListExperimentOrTemplateResponse } from './schemas/V3ListExperimentOrTemplateResponse';
1765
1780
  export type { V3ProcessTemplateRequest } from './schemas/V3ProcessTemplateRequest';
@@ -154,6 +154,7 @@ export { getV2InfrastructureYaml, useGetV2InfrastructureYamlMutation, } from './
154
154
  export { getV2Onboarding, useGetV2OnboardingQuery } from './hooks/useGetV2OnboardingQuery';
155
155
  export { healthCheckV3, useHealthCheckV3Query } from './hooks/useHealthCheckV3Query';
156
156
  export { importAction, useImportActionMutation } from './hooks/useImportActionMutation';
157
+ export { importExperimentTemplateV3, useImportExperimentTemplateV3Mutation, } from './hooks/useImportExperimentTemplateV3Mutation';
157
158
  export { importProbe, useImportProbeMutation } from './hooks/useImportProbeMutation';
158
159
  export { importProbeTemplateV3, useImportProbeTemplateV3Mutation, } from './hooks/useImportProbeTemplateV3Mutation';
159
160
  export { internalAbortRiskScan, useInternalAbortRiskScanMutation, } from './hooks/useInternalAbortRiskScanMutation';
@@ -213,6 +214,7 @@ export { listProbeReferencedBy, useListProbeReferencedByQuery, } from './hooks/u
213
214
  export { listProbeRuns, useListProbeRunsQuery } from './hooks/useListProbeRunsQuery';
214
215
  export { listProbeTemplate, useListProbeTemplateQuery } from './hooks/useListProbeTemplateQuery';
215
216
  export { listProbeTemplateReferencedBy, useListProbeTemplateReferencedByQuery, } from './hooks/useListProbeTemplateReferencedByQuery';
217
+ export { listProbeTemplateRevisions, useListProbeTemplateRevisionsQuery, } from './hooks/useListProbeTemplateRevisionsQuery';
216
218
  export { listProbes, useListProbesQuery } from './hooks/useListProbesQuery';
217
219
  export { listRecommendations, useListRecommendationsQuery, } from './hooks/useListRecommendationsQuery';
218
220
  export { listRiskExperimentRecommendations, useListRiskExperimentRecommendationsQuery, } from './hooks/useListRiskExperimentRecommendationsQuery';
@@ -230,6 +232,7 @@ export { listTargetNetworkMaps, useListTargetNetworkMapsQuery, } from './hooks/u
230
232
  export { listV2Onboarding, useListV2OnboardingQuery } from './hooks/useListV2OnboardingQuery';
231
233
  export { listVariablesInActionTemplate, useListVariablesInActionTemplateQuery, } from './hooks/useListVariablesInActionTemplateQuery';
232
234
  export { listVariablesInProbeTemplate, useListVariablesInProbeTemplateQuery, } from './hooks/useListVariablesInProbeTemplateQuery';
235
+ export { moveExperimentTemplateConfigV3, useMoveExperimentTemplateConfigV3Mutation, } from './hooks/useMoveExperimentTemplateConfigV3Mutation';
233
236
  export { moveProbeTemplateConfigV3, useMoveProbeTemplateConfigV3Mutation, } from './hooks/useMoveProbeTemplateConfigV3Mutation';
234
237
  export { onboardServices, useOnboardServicesMutation } from './hooks/useOnboardServicesMutation';
235
238
  export { onboardingConfirmDiscovery, useOnboardingConfirmDiscoveryMutation, } from './hooks/useOnboardingConfirmDiscoveryMutation';
@@ -244,6 +247,7 @@ export { pipelineOnboardChaos, usePipelineOnboardChaosMutation, } from './hooks/
244
247
  export { pipelineOnboardChaosStatus, usePipelineOnboardChaosStatusQuery, } from './hooks/usePipelineOnboardChaosStatusQuery';
245
248
  export { processTemplate, useProcessTemplateMutation } from './hooks/useProcessTemplateMutation';
246
249
  export { recommendationEvent, useRecommendationEventMutation, } from './hooks/useRecommendationEventMutation';
250
+ export { refreshExperimentTemplateV3, useRefreshExperimentTemplateV3Mutation, } from './hooks/useRefreshExperimentTemplateV3Mutation';
247
251
  export { refreshProbeTemplateV3, useRefreshProbeTemplateV3Mutation, } from './hooks/useRefreshProbeTemplateV3Mutation';
248
252
  export { registerInfraV2, useRegisterInfraV2Mutation } from './hooks/useRegisterInfraV2Mutation';
249
253
  export { registerLegacyKubernetesInfra, useRegisterLegacyKubernetesInfraMutation, } from './hooks/useRegisterLegacyKubernetesInfraMutation';
@@ -284,6 +288,7 @@ export { updateCondition, useUpdateConditionMutation } from './hooks/useUpdateCo
284
288
  export { updateCronStateV3, useUpdateCronStateV3Mutation, } from './hooks/useUpdateCronStateV3Mutation';
285
289
  export { updateDashboardV3, useUpdateDashboardV3Mutation, } from './hooks/useUpdateDashboardV3Mutation';
286
290
  export { updateEmissary, useUpdateEmissaryMutation } from './hooks/useUpdateEmissaryMutation';
291
+ export { updateExperimentTemplateGitMetadataV3, useUpdateExperimentTemplateGitMetadataV3Mutation, } from './hooks/useUpdateExperimentTemplateGitMetadataV3Mutation';
287
292
  export { updateExperimentTemplate, useUpdateExperimentTemplateMutation, } from './hooks/useUpdateExperimentTemplateMutation';
288
293
  export { updateExperimentV3, useUpdateExperimentV3Mutation, } from './hooks/useUpdateExperimentV3Mutation';
289
294
  export { updateFault, useUpdateFaultMutation } from './hooks/useUpdateFaultMutation';
@@ -303,6 +308,7 @@ export { updateRisk, useUpdateRiskMutation } from './hooks/useUpdateRiskMutation
303
308
  export { updateRiskRule, useUpdateRiskRuleMutation } from './hooks/useUpdateRiskRuleMutation';
304
309
  export { updateRiskScan, useUpdateRiskScanMutation } from './hooks/useUpdateRiskScanMutation';
305
310
  export { updateRule, useUpdateRuleMutation } from './hooks/useUpdateRuleMutation';
311
+ export { updateScannedRiskStatus, useUpdateScannedRiskStatusMutation, } from './hooks/useUpdateScannedRiskStatusMutation';
306
312
  export { upgradeLegacyKubernetesChaosInfra, useUpgradeLegacyKubernetesChaosInfraMutation, } from './hooks/useUpgradeLegacyKubernetesChaosInfraMutation';
307
313
  export { useVerifyChaosStageInPipelineRunQuery, verifyChaosStageInPipelineRun, } from './hooks/useVerifyChaosStageInPipelineRunQuery';
308
314
  export { useVerifyProbeMutation, verifyProbe } from './hooks/useVerifyProbeMutation';
@@ -1,6 +1,12 @@
1
1
  import type { ExecutionChaosStepType } from '../schemas/ExecutionChaosStepType';
2
2
  import type { ExecutionChaosStepStatus } from '../schemas/ExecutionChaosStepStatus';
3
3
  export interface ChaosExecutionNodesExecutionOutput {
4
+ finishedAt?: number;
4
5
  resourceType?: ExecutionChaosStepType;
6
+ /**
7
+ * Spec is the step definition parsed into its SDK type: *probev1.Probe,
8
+ * *experiment.Fault or *action.Action based on ResourceType.
9
+ */
10
+ spec?: {};
5
11
  status?: ExecutionChaosStepStatus;
6
12
  }
@@ -1,8 +1,11 @@
1
1
  import type { GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails } from '../schemas/GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails';
2
+ import type { EntityDetails } from '../schemas/EntityDetails';
2
3
  import type { ExperimentInfraType } from '../schemas/ExperimentInfraType';
3
4
  import type { TemplateInput } from '../schemas/TemplateInput';
5
+ import type { EntityStoreType } from '../schemas/EntityStoreType';
4
6
  export interface ChaosexperimenttemplateChaosExperimentTemplate {
5
7
  accountID: string;
8
+ connectorRef?: string;
6
9
  createdAt?: number;
7
10
  createdBy?: string;
8
11
  createdByUserDetails?: GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails;
@@ -11,6 +14,13 @@ export interface ChaosexperimenttemplateChaosExperimentTemplate {
11
14
  * Counter to track if any edits were made to the template
12
15
  */
13
16
  editCounter?: number;
17
+ fallbackBranch?: string;
18
+ filePath?: string;
19
+ /**
20
+ * GitDetails is response-only (platform EntityGitDetails), set on list
21
+ * rows of REMOTE revisions from the stored mirror.
22
+ */
23
+ gitDetails?: EntityDetails;
14
24
  hubIdentity?: string;
15
25
  id?: string;
16
26
  identity?: string;
@@ -19,12 +29,16 @@ export interface ChaosexperimenttemplateChaosExperimentTemplate {
19
29
  inputs?: TemplateInput[];
20
30
  isDefault?: boolean;
21
31
  isEnterprise?: boolean;
32
+ isHarnessCodeRepo?: boolean;
22
33
  isRemoved: boolean;
23
34
  name: string;
24
35
  orgID?: string;
25
36
  parentUniqueId?: string;
26
37
  projectID?: string;
38
+ repoName?: string;
39
+ repoUrl?: string;
27
40
  revision?: string;
41
+ storeType?: EntityStoreType;
28
42
  tags?: string[];
29
43
  template?: string;
30
44
  uniqueId?: string;
@@ -1,16 +1,43 @@
1
+ import type { ScmCacheInfo } from '../schemas/ScmCacheInfo';
2
+ import type { EntityValidityDetails } from '../schemas/EntityValidityDetails';
3
+ import type { EntityDetails } from '../schemas/EntityDetails';
1
4
  import type { ExperimenttemplateSpec } from '../schemas/ExperimenttemplateSpec';
5
+ import type { EntityStoreType } from '../schemas/EntityStoreType';
2
6
  import type { TemplateVariable } from '../schemas/TemplateVariable';
3
7
  export interface ChaosexperimenttemplateCreateExperimentTemplateResponse {
4
8
  apiVersion?: string;
9
+ cacheResponse?: ScmCacheInfo;
10
+ connectorRef?: string;
5
11
  correlationID?: string;
6
12
  description?: string;
13
+ /**
14
+ * EntityValidityDetails is set on GET of a REMOTE revision; a file that
15
+ * fails validation is still returned, flagged invalid with the raw file.
16
+ */
17
+ entityValidityDetails?: EntityValidityDetails;
18
+ fallbackBranch?: string;
19
+ filePath?: string;
20
+ /**
21
+ * GitDetails / CacheResponse: platform EntityGitDetails,
22
+ * CacheResponseMetadataDTO.
23
+ */
24
+ gitDetails?: EntityDetails;
25
+ /**
26
+ * GitYAML is the canonical Git file of a REMOTE revision, for the UI's
27
+ * YAML view.
28
+ */
29
+ gitYaml?: string;
7
30
  hubIdentity?: string;
8
31
  identity: string;
9
32
  isDefault: boolean;
33
+ isHarnessCodeRepo?: boolean;
10
34
  kind?: string;
11
35
  name: string;
36
+ repoName?: string;
37
+ repoUrl?: string;
12
38
  revision: string;
13
39
  spec: ExperimenttemplateSpec;
40
+ storeType?: EntityStoreType;
14
41
  tags?: string[];
15
42
  variables?: TemplateVariable[];
16
43
  }
@@ -1,18 +1,45 @@
1
+ import type { ScmCacheInfo } from '../schemas/ScmCacheInfo';
2
+ import type { EntityValidityDetails } from '../schemas/EntityValidityDetails';
3
+ import type { EntityDetails } from '../schemas/EntityDetails';
1
4
  import type { TemplateInput } from '../schemas/TemplateInput';
2
5
  import type { ExperimenttemplateSpec } from '../schemas/ExperimenttemplateSpec';
6
+ import type { EntityStoreType } from '../schemas/EntityStoreType';
3
7
  import type { TemplateVariable } from '../schemas/TemplateVariable';
4
8
  export interface ChaosexperimenttemplateGetExperimentTemplateResponse {
5
9
  apiVersion?: string;
10
+ cacheResponse?: ScmCacheInfo;
11
+ connectorRef?: string;
6
12
  correlationID?: string;
7
13
  description?: string;
14
+ /**
15
+ * EntityValidityDetails is set on GET of a REMOTE revision; a file that
16
+ * fails validation is still returned, flagged invalid with the raw file.
17
+ */
18
+ entityValidityDetails?: EntityValidityDetails;
19
+ fallbackBranch?: string;
20
+ filePath?: string;
21
+ /**
22
+ * GitDetails / CacheResponse: platform EntityGitDetails,
23
+ * CacheResponseMetadataDTO.
24
+ */
25
+ gitDetails?: EntityDetails;
26
+ /**
27
+ * GitYAML is the canonical Git file of a REMOTE revision, for the UI's
28
+ * YAML view.
29
+ */
30
+ gitYaml?: string;
8
31
  hubIdentity?: string;
9
32
  identity: string;
10
33
  inputs?: TemplateInput[];
11
34
  isDefault: boolean;
35
+ isHarnessCodeRepo?: boolean;
12
36
  kind?: string;
13
37
  name: string;
38
+ repoName?: string;
39
+ repoUrl?: string;
14
40
  revision: string;
15
41
  spec: ExperimenttemplateSpec;
42
+ storeType?: EntityStoreType;
16
43
  tags?: string[];
17
44
  variables?: TemplateVariable[];
18
45
  }
@@ -1,16 +1,43 @@
1
+ import type { ScmCacheInfo } from '../schemas/ScmCacheInfo';
2
+ import type { EntityValidityDetails } from '../schemas/EntityValidityDetails';
3
+ import type { EntityDetails } from '../schemas/EntityDetails';
1
4
  import type { ExperimenttemplateSpec } from '../schemas/ExperimenttemplateSpec';
5
+ import type { EntityStoreType } from '../schemas/EntityStoreType';
2
6
  import type { TemplateVariable } from '../schemas/TemplateVariable';
3
7
  export interface ChaosexperimenttemplateUpdateExperimentTemplateResponse {
4
8
  apiVersion?: string;
9
+ cacheResponse?: ScmCacheInfo;
10
+ connectorRef?: string;
5
11
  correlationID?: string;
6
12
  description?: string;
13
+ /**
14
+ * EntityValidityDetails is set on GET of a REMOTE revision; a file that
15
+ * fails validation is still returned, flagged invalid with the raw file.
16
+ */
17
+ entityValidityDetails?: EntityValidityDetails;
18
+ fallbackBranch?: string;
19
+ filePath?: string;
20
+ /**
21
+ * GitDetails / CacheResponse: platform EntityGitDetails,
22
+ * CacheResponseMetadataDTO.
23
+ */
24
+ gitDetails?: EntityDetails;
25
+ /**
26
+ * GitYAML is the canonical Git file of a REMOTE revision, for the UI's
27
+ * YAML view.
28
+ */
29
+ gitYaml?: string;
7
30
  hubIdentity?: string;
8
31
  identity: string;
9
32
  isDefault: boolean;
33
+ isHarnessCodeRepo?: boolean;
10
34
  kind?: string;
11
35
  name: string;
36
+ repoName?: string;
37
+ repoUrl?: string;
12
38
  revision: string;
13
39
  spec: ExperimenttemplateSpec;
40
+ storeType?: EntityStoreType;
14
41
  tags?: string[];
15
42
  variables?: TemplateVariable[];
16
43
  }
@@ -3,7 +3,9 @@ export interface Chaoshubv2CreateHubRequest {
3
3
  connectorRef?: string;
4
4
  description?: string;
5
5
  /**
6
- * GitDefaults sets the hub's Git Experience defaults. Optional.
6
+ * GitDefaults sets the hub's Git Experience defaults. Optional. They only
7
+ * prefill the Git location of a new template; templates may use any
8
+ * repository, and changing them later moves no existing file.
7
9
  */
8
10
  gitDefaults?: ChaosHubGitDefaults;
9
11
  identity: string;
@@ -6,14 +6,19 @@ export interface ChaosprobetemplateImportProbeTemplateRequest {
6
6
  * explicit false is distinguishable from an omitted field.
7
7
  */
8
8
  isDefault?: boolean;
9
+ /**
10
+ * Name is optional, but when present protects the caller from importing
11
+ * a different file than the one selected in the UI.
12
+ */
13
+ name?: string;
9
14
  /**
10
15
  * Revision is the internal revision number to import as; 0 assigns one
11
16
  * (see importRevision).
12
17
  */
13
18
  revision?: number;
14
19
  /**
15
- * VersionLabel, when set, must equal the file's versionLabel (platform
16
- * import checks requested metadata against the file).
20
+ * VersionLabel identifies the exact version to import and must equal the
21
+ * file's versionLabel (platform requires templateVersion for import).
17
22
  */
18
23
  versionLabel?: string;
19
24
  }
@@ -6,6 +6,13 @@ export interface RiskRiskRuleSpec {
6
6
  * Faults lists the chaos faults that can prove a risk raised by this rule.
7
7
  */
8
8
  faults?: string[];
9
+ /**
10
+ * IncludeInPassiveScan opts a custom rule into passive scans. The internal
11
+ * risk-rule list and the code-repository scan both skip a custom rule when
12
+ * this is missing or false. System rules stay eligible for their data
13
+ * source and ignore this flag.
14
+ */
15
+ includeInPassiveScan?: boolean;
9
16
  isSystem?: boolean;
10
17
  prompt?: RiskRiskRulePrompt;
11
18
  }
@@ -1 +1 @@
1
- export type ScannedrisksRiskStatus = 'Ignored' | 'InProgress' | 'Open' | 'Resolved';
1
+ export type ScannedrisksRiskStatus = 'Ignored' | 'InProgress' | 'Invalid' | 'Open' | 'Resolved';
@@ -0,0 +1,11 @@
1
+ import type { ScannedrisksRiskStatus } from '../schemas/ScannedrisksRiskStatus';
2
+ export interface ScannedrisksRiskStatusDetails {
3
+ /**
4
+ * Mitigated is the user's confirmation, required to resolve a risk.
5
+ */
6
+ mitigated?: boolean;
7
+ note?: string;
8
+ previousStatus?: ScannedrisksRiskStatus;
9
+ updatedAt?: number;
10
+ updatedBy?: string;
11
+ }
@@ -2,6 +2,7 @@ import type { RiskCategory } from '../schemas/RiskCategory';
2
2
  import type { RiskSeverity } from '../schemas/RiskSeverity';
3
3
  import type { RiskScanType } from '../schemas/RiskScanType';
4
4
  import type { ScannedrisksRiskStatus } from '../schemas/ScannedrisksRiskStatus';
5
+ import type { ScannedrisksRiskStatusDetails } from '../schemas/ScannedrisksRiskStatusDetails';
5
6
  import type { RiskTargetService } from '../schemas/RiskTargetService';
6
7
  import type { ScannedrisksValidationType } from '../schemas/ScannedrisksValidationType';
7
8
  export interface ScannedrisksScannedRiskSpec {
@@ -39,6 +40,11 @@ export interface ScannedrisksScannedRiskSpec {
39
40
  */
40
41
  sources?: RiskScanType[];
41
42
  status?: ScannedrisksRiskStatus;
43
+ /**
44
+ * StatusDetails is set by the last user status change. A later detection
45
+ * that reopens the risk keeps it and records the status it reopened from.
46
+ */
47
+ statusDetails?: ScannedrisksRiskStatusDetails;
42
48
  targetService?: RiskTargetService;
43
49
  /**
44
50
  * ValidationType reflects only the most recently written occurrence's
@@ -46,6 +46,10 @@ export interface ScannedrisksServiceRiskSummaryQuery {
46
46
  * project id to access the resource
47
47
  */
48
48
  projectIdentifier?: string;
49
+ /**
50
+ * Search is a case-insensitive substring match on the target service name.
51
+ */
52
+ search?: string;
49
53
  /**
50
54
  * Service type filter
51
55
  */
@@ -0,0 +1,9 @@
1
+ import type { ScannedrisksRiskStatus } from '../schemas/ScannedrisksRiskStatus';
2
+ export interface ScannedrisksUpdateStatusRequest {
3
+ /**
4
+ * Mitigated confirms the risk is mitigated. Required to be true for Resolved.
5
+ */
6
+ mitigated?: boolean;
7
+ note?: string;
8
+ status: ScannedrisksRiskStatus;
9
+ }
@@ -0,0 +1,12 @@
1
+ export interface V3ImportRequest {
2
+ identity?: string;
3
+ /**
4
+ * Name is optional. When supplied, it must match the Git file.
5
+ */
6
+ name?: string;
7
+ /**
8
+ * VersionLabel identifies the exact version to import and must equal the
9
+ * file's versionLabel (platform requires templateVersion for import).
10
+ */
11
+ versionLabel?: string;
12
+ }
@@ -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.91.7-beta.1",
3
+ "version": "1.91.7-beta.2",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",