@harnessio/react-chaos-manager-client 1.91.5 → 1.91.7-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 (53) hide show
  1. package/dist/chaos-manager/src/services/hooks/useCreateProbeTemplateMutation.d.ts +9 -0
  2. package/dist/chaos-manager/src/services/hooks/useCreateRiskRuleMutation.d.ts +1 -1
  3. package/dist/chaos-manager/src/services/hooks/useCreateRiskRuleMutation.js +1 -1
  4. package/dist/chaos-manager/src/services/hooks/useDeleteRiskRuleMutation.d.ts +1 -1
  5. package/dist/chaos-manager/src/services/hooks/useDeleteRiskRuleMutation.js +1 -1
  6. package/dist/chaos-manager/src/services/hooks/useGetProbeTemplateQuery.d.ts +6 -1
  7. package/dist/chaos-manager/src/services/hooks/useImportProbeTemplateMutation.d.ts +32 -0
  8. package/dist/chaos-manager/src/services/hooks/useImportProbeTemplateMutation.js +14 -0
  9. package/dist/chaos-manager/src/services/hooks/useListRiskExperimentRecommendationsQuery.d.ts +2 -1
  10. package/dist/chaos-manager/src/services/hooks/useListRiskExperimentRecommendationsQuery.js +2 -1
  11. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigMutation.d.ts +35 -0
  12. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigMutation.js +14 -0
  13. package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateMutation.d.ts +29 -0
  14. package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateMutation.js +14 -0
  15. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataMutation.d.ts +34 -0
  16. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataMutation.js +14 -0
  17. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateMutation.d.ts +9 -0
  18. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateRevisionMutation.d.ts +36 -0
  19. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateRevisionMutation.js +14 -0
  20. package/dist/chaos-manager/src/services/hooks/useUpdateRiskRuleMutation.d.ts +1 -1
  21. package/dist/chaos-manager/src/services/hooks/useUpdateRiskRuleMutation.js +1 -1
  22. package/dist/chaos-manager/src/services/index.d.ts +19 -0
  23. package/dist/chaos-manager/src/services/index.js +5 -0
  24. package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunChaosExperimentRun.d.ts +5 -0
  25. package/dist/chaos-manager/src/services/schemas/ChaosHubGitDefaults.d.ts +9 -0
  26. package/dist/chaos-manager/src/services/schemas/ChaosHubGitDefaults.js +4 -0
  27. package/dist/chaos-manager/src/services/schemas/Chaoshubv2ChaosHubResponse.d.ts +9 -0
  28. package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.d.ts +5 -0
  29. package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.js +0 -3
  30. package/dist/chaos-manager/src/services/schemas/Chaoshubv2GetHubResponse.d.ts +9 -0
  31. package/dist/chaos-manager/src/services/schemas/Chaoshubv2UpdateHubRequest.d.ts +6 -0
  32. package/dist/chaos-manager/src/services/schemas/Chaoshubv2UpdateHubRequest.js +0 -3
  33. package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateImportProbeTemplateRequest.d.ts +13 -0
  34. package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateImportProbeTemplateRequest.js +4 -0
  35. package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateProbeTemplate.d.ts +8 -0
  36. package/dist/chaos-manager/src/services/schemas/EntityDetails.d.ts +10 -0
  37. package/dist/chaos-manager/src/services/schemas/EntityDetails.js +4 -0
  38. package/dist/chaos-manager/src/services/schemas/EntityStoreType.d.ts +1 -0
  39. package/dist/chaos-manager/src/services/schemas/EntityStoreType.js +4 -0
  40. package/dist/chaos-manager/src/services/schemas/EntityValidityDetails.d.ts +4 -0
  41. package/dist/chaos-manager/src/services/schemas/EntityValidityDetails.js +4 -0
  42. package/dist/chaos-manager/src/services/schemas/ExperimentrunsGetExperimentRunResponse.d.ts +5 -0
  43. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobetemplateChaosProbeTemplate.d.ts +27 -0
  44. package/dist/chaos-manager/src/services/schemas/ResolveSource.d.ts +1 -0
  45. package/dist/chaos-manager/src/services/schemas/ResolveSource.js +4 -0
  46. package/dist/chaos-manager/src/services/schemas/ResolveUsed.d.ts +10 -0
  47. package/dist/chaos-manager/src/services/schemas/ResolveUsed.js +1 -0
  48. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryResponse.d.ts +1 -0
  49. package/dist/chaos-manager/src/services/schemas/ScmCacheInfo.d.ts +16 -0
  50. package/dist/chaos-manager/src/services/schemas/ScmCacheInfo.js +1 -0
  51. package/dist/chaos-manager/src/services/schemas/ScmCacheState.d.ts +1 -0
  52. package/dist/chaos-manager/src/services/schemas/ScmCacheState.js +4 -0
  53. package/package.json +1 -1
@@ -6,6 +6,15 @@ export interface CreateProbeTemplateMutationQueryParams {
6
6
  accountIdentifier: string;
7
7
  organizationIdentifier: string;
8
8
  projectIdentifier: string;
9
+ storeType?: string;
10
+ connectorRef?: string;
11
+ repoName?: string;
12
+ isHarnessCodeRepo?: boolean;
13
+ branch?: string;
14
+ filePath?: string;
15
+ commitMsg?: string;
16
+ isNewBranch?: boolean;
17
+ baseBranch?: string;
9
18
  }
10
19
  export type CreateProbeTemplateRequestBody = ChaosprobetemplateProbeTemplate;
11
20
  export type CreateProbeTemplateOkResponse = ChaosprobetemplateProbeTemplate;
@@ -24,6 +24,6 @@ export interface CreateRiskRuleResponseContainer {
24
24
  export declare function createRiskRule(props: CreateRiskRuleProps): Promise<CreateRiskRuleResponseContainer>;
25
25
  export type CreateRiskRuleMutationProps<T extends keyof CreateRiskRuleProps> = Omit<CreateRiskRuleProps, T> & Partial<Pick<CreateRiskRuleProps, T>>;
26
26
  /**
27
- * creates a project-scoped custom risk rule. Only the SourceCode data source is supported; spec.faults must be non-empty and on the chaos fault allowlist.
27
+ * creates an account-scoped custom risk rule. accountIdentifier is stored on the rule; organization and project stay empty. Only the SourceCode data source is supported; spec.faults must be non-empty and on the chaos fault allowlist.
28
28
  */
29
29
  export declare function useCreateRiskRuleMutation<T extends keyof CreateRiskRuleProps>(props: Pick<Partial<CreateRiskRuleProps>, T>, options?: Omit<UseMutationOptions<CreateRiskRuleResponseContainer, CreateRiskRuleErrorResponse, CreateRiskRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateRiskRuleResponseContainer, SharedError, CreateRiskRuleMutationProps<T>, unknown>;
@@ -7,7 +7,7 @@ export function createRiskRule(props) {
7
7
  return fetcher(Object.assign({ url: `/v3/risk-rules`, method: 'POST' }, props));
8
8
  }
9
9
  /**
10
- * creates a project-scoped custom risk rule. Only the SourceCode data source is supported; spec.faults must be non-empty and on the chaos fault allowlist.
10
+ * creates an account-scoped custom risk rule. accountIdentifier is stored on the rule; organization and project stay empty. Only the SourceCode data source is supported; spec.faults must be non-empty and on the chaos fault allowlist.
11
11
  */
12
12
  export function useCreateRiskRuleMutation(props, options) {
13
13
  return useMutation((mutateProps) => createRiskRule(Object.assign(Object.assign({}, props), mutateProps)), options);
@@ -24,6 +24,6 @@ export interface DeleteRiskRuleResponseContainer {
24
24
  export declare function deleteRiskRule(props: DeleteRiskRuleProps): Promise<DeleteRiskRuleResponseContainer>;
25
25
  export type DeleteRiskRuleMutationProps<T extends keyof DeleteRiskRuleProps> = Omit<DeleteRiskRuleProps, T> & Partial<Pick<DeleteRiskRuleProps, T>>;
26
26
  /**
27
- * soft-deletes a project-scoped custom risk rule. System rules cannot be deleted.
27
+ * soft-deletes an account-scoped custom risk rule. System rules cannot be deleted.
28
28
  */
29
29
  export declare function useDeleteRiskRuleMutation<T extends keyof DeleteRiskRuleProps>(props: Pick<Partial<DeleteRiskRuleProps>, T>, options?: Omit<UseMutationOptions<DeleteRiskRuleResponseContainer, DeleteRiskRuleErrorResponse, DeleteRiskRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteRiskRuleResponseContainer, SharedError, DeleteRiskRuleMutationProps<T>, unknown>;
@@ -7,7 +7,7 @@ export function deleteRiskRule(props) {
7
7
  return fetcher(Object.assign({ url: `/v3/risk-rules/${props.identity}`, method: 'DELETE' }, props));
8
8
  }
9
9
  /**
10
- * soft-deletes a project-scoped custom risk rule. System rules cannot be deleted.
10
+ * soft-deletes an account-scoped custom risk rule. System rules cannot be deleted.
11
11
  */
12
12
  export function useDeleteRiskRuleMutation(props, options) {
13
13
  return useMutation((mutateProps) => deleteRiskRule(Object.assign(Object.assign({}, props), mutateProps)), options);
@@ -11,10 +11,15 @@ export interface GetProbeTemplateQueryQueryParams {
11
11
  projectIdentifier: string;
12
12
  hubIdentity: string;
13
13
  revision?: string;
14
+ branch?: string;
15
+ loadFromFallbackBranch?: boolean;
16
+ }
17
+ export interface GetProbeTemplateQueryHeaderParams {
18
+ 'Load-From-Cache'?: string;
14
19
  }
15
20
  export type GetProbeTemplateOkResponse = ChaosprobetemplateGetProbeTemplateResponse;
16
21
  export type GetProbeTemplateErrorResponse = ApiRestError;
17
- export interface GetProbeTemplateProps extends GetProbeTemplateQueryPathParams, Omit<FetcherOptions<GetProbeTemplateQueryQueryParams, unknown>, 'url'> {
22
+ export interface GetProbeTemplateProps extends GetProbeTemplateQueryPathParams, Omit<FetcherOptions<GetProbeTemplateQueryQueryParams, unknown, GetProbeTemplateQueryHeaderParams>, 'url'> {
18
23
  queryParams: GetProbeTemplateQueryQueryParams;
19
24
  }
20
25
  export interface GetProbeTemplateResponseContainer {
@@ -0,0 +1,32 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosprobetemplateProbeTemplate } from '../schemas/ChaosprobetemplateProbeTemplate';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import type { ChaosprobetemplateImportProbeTemplateRequest } from '../schemas/ChaosprobetemplateImportProbeTemplateRequest';
5
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
+ export interface ImportProbeTemplateMutationQueryParams {
7
+ accountIdentifier: string;
8
+ organizationIdentifier: string;
9
+ projectIdentifier: string;
10
+ connectorRef?: string;
11
+ repoName?: string;
12
+ isHarnessCodeRepo?: boolean;
13
+ branch?: string;
14
+ filePath: string;
15
+ }
16
+ export type ImportProbeTemplateRequestBody = ChaosprobetemplateImportProbeTemplateRequest;
17
+ export type ImportProbeTemplateOkResponse = ChaosprobetemplateProbeTemplate;
18
+ export type ImportProbeTemplateErrorResponse = ApiRestError;
19
+ export interface ImportProbeTemplateProps extends Omit<FetcherOptions<ImportProbeTemplateMutationQueryParams, ImportProbeTemplateRequestBody>, 'url'> {
20
+ queryParams: ImportProbeTemplateMutationQueryParams;
21
+ body: ImportProbeTemplateRequestBody;
22
+ }
23
+ export interface ImportProbeTemplateResponseContainer {
24
+ body: ImportProbeTemplateOkResponse;
25
+ headers: Headers;
26
+ }
27
+ export declare function importProbeTemplate(props: ImportProbeTemplateProps): Promise<ImportProbeTemplateResponseContainer>;
28
+ export type ImportProbeTemplateMutationProps<T extends keyof ImportProbeTemplateProps> = Omit<ImportProbeTemplateProps, T> & Partial<Pick<ImportProbeTemplateProps, T>>;
29
+ /**
30
+ * Creates a probe template revision from an existing file in Git. Nothing is committed.
31
+ */
32
+ export declare function useImportProbeTemplateMutation<T extends keyof ImportProbeTemplateProps>(props: Pick<Partial<ImportProbeTemplateProps>, T>, options?: Omit<UseMutationOptions<ImportProbeTemplateResponseContainer, ImportProbeTemplateErrorResponse, ImportProbeTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportProbeTemplateResponseContainer, ApiRestError, ImportProbeTemplateMutationProps<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 importProbeTemplate(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/probes/import`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Creates a probe template revision from an existing file in Git. Nothing is committed.
11
+ */
12
+ export function useImportProbeTemplateMutation(props, options) {
13
+ return useMutation((mutateProps) => importProbeTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -48,7 +48,8 @@ export declare function listRiskExperimentRecommendations(props: ListRiskExperim
48
48
  /**
49
49
  * returns the live risk experiment recommendations. Missing recommendations are created by the background reconciler.
50
50
  * When scannedRiskIdentity is set, only that risk's recommendation is returned. scanIdentity limits the list to risks detected by that scan.
51
- * severity, source, and the serviceIdentity/serviceFilterV2 fields filter the same way as the scanned-risks list.
51
+ * With scanIdentity, serviceIdentity matches that scan's in-context service: the discovered service identity for an infra scan and the CD service identity for a pipeline scan.
52
+ * Without a scan, severity, source, and the serviceIdentity/serviceFilterV2 fields filter the same way as the scanned-risks list.
52
53
  * startTime and endTime are unix milliseconds and limit the list to recommendations created in that window.
53
54
  * sortField orders by name, severity, or lastUpdated (the default, newest first).
54
55
  */
@@ -9,7 +9,8 @@ export function listRiskExperimentRecommendations(props) {
9
9
  /**
10
10
  * returns the live risk experiment recommendations. Missing recommendations are created by the background reconciler.
11
11
  * When scannedRiskIdentity is set, only that risk's recommendation is returned. scanIdentity limits the list to risks detected by that scan.
12
- * severity, source, and the serviceIdentity/serviceFilterV2 fields filter the same way as the scanned-risks list.
12
+ * With scanIdentity, serviceIdentity matches that scan's in-context service: the discovered service identity for an infra scan and the CD service identity for a pipeline scan.
13
+ * Without a scan, severity, source, and the serviceIdentity/serviceFilterV2 fields filter the same way as the scanned-risks list.
13
14
  * startTime and endTime are unix milliseconds and limit the list to recommendations created in that window.
14
15
  * sortField orders by name, severity, or lastUpdated (the default, newest first).
15
16
  */
@@ -0,0 +1,35 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface MoveProbeTemplateConfigMutationPathParams {
6
+ identity: string;
7
+ revision: number;
8
+ }
9
+ export interface MoveProbeTemplateConfigMutationQueryParams {
10
+ accountIdentifier: string;
11
+ organizationIdentifier: string;
12
+ projectIdentifier: string;
13
+ hubIdentity: string;
14
+ moveConfigType: string;
15
+ connectorRef?: string;
16
+ repoName?: string;
17
+ branch?: string;
18
+ filePath?: string;
19
+ commitMsg?: string;
20
+ }
21
+ export type MoveProbeTemplateConfigOkResponse = ChaosprobetemplateGetProbeTemplateResponse;
22
+ export type MoveProbeTemplateConfigErrorResponse = ApiRestError;
23
+ export interface MoveProbeTemplateConfigProps extends MoveProbeTemplateConfigMutationPathParams, Omit<FetcherOptions<MoveProbeTemplateConfigMutationQueryParams, unknown>, 'url'> {
24
+ queryParams: MoveProbeTemplateConfigMutationQueryParams;
25
+ }
26
+ export interface MoveProbeTemplateConfigResponseContainer {
27
+ body: MoveProbeTemplateConfigOkResponse;
28
+ headers: Headers;
29
+ }
30
+ export declare function moveProbeTemplateConfig(props: MoveProbeTemplateConfigProps): Promise<MoveProbeTemplateConfigResponseContainer>;
31
+ export type MoveProbeTemplateConfigMutationProps<T extends keyof MoveProbeTemplateConfigProps> = Omit<MoveProbeTemplateConfigProps, T> & Partial<Pick<MoveProbeTemplateConfigProps, T>>;
32
+ /**
33
+ * Moves a probe template revision between Harness and Git
34
+ */
35
+ export declare function useMoveProbeTemplateConfigMutation<T extends keyof MoveProbeTemplateConfigProps>(props: Pick<Partial<MoveProbeTemplateConfigProps>, T>, options?: Omit<UseMutationOptions<MoveProbeTemplateConfigResponseContainer, MoveProbeTemplateConfigErrorResponse, MoveProbeTemplateConfigMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<MoveProbeTemplateConfigResponseContainer, ApiRestError, MoveProbeTemplateConfigMutationProps<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 moveProbeTemplateConfig(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}/revisions/${props.revision}/move-config`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Moves a probe template revision between Harness and Git
11
+ */
12
+ export function useMoveProbeTemplateConfigMutation(props, options) {
13
+ return useMutation((mutateProps) => moveProbeTemplateConfig(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,29 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface RefreshProbeTemplateMutationPathParams {
6
+ identity: string;
7
+ revision: number;
8
+ }
9
+ export interface RefreshProbeTemplateMutationQueryParams {
10
+ accountIdentifier: string;
11
+ organizationIdentifier: string;
12
+ projectIdentifier: string;
13
+ hubIdentity: string;
14
+ }
15
+ export type RefreshProbeTemplateOkResponse = ChaosprobetemplateGetProbeTemplateResponse;
16
+ export type RefreshProbeTemplateErrorResponse = ApiRestError;
17
+ export interface RefreshProbeTemplateProps extends RefreshProbeTemplateMutationPathParams, Omit<FetcherOptions<RefreshProbeTemplateMutationQueryParams, unknown>, 'url'> {
18
+ queryParams: RefreshProbeTemplateMutationQueryParams;
19
+ }
20
+ export interface RefreshProbeTemplateResponseContainer {
21
+ body: RefreshProbeTemplateOkResponse;
22
+ headers: Headers;
23
+ }
24
+ export declare function refreshProbeTemplate(props: RefreshProbeTemplateProps): Promise<RefreshProbeTemplateResponseContainer>;
25
+ export type RefreshProbeTemplateMutationProps<T extends keyof RefreshProbeTemplateProps> = Omit<RefreshProbeTemplateProps, T> & Partial<Pick<RefreshProbeTemplateProps, T>>;
26
+ /**
27
+ * Reads the revision from the Git provider bypassing git-sync's cache, updates Harness's copy and returns it.
28
+ */
29
+ export declare function useRefreshProbeTemplateMutation<T extends keyof RefreshProbeTemplateProps>(props: Pick<Partial<RefreshProbeTemplateProps>, T>, options?: Omit<UseMutationOptions<RefreshProbeTemplateResponseContainer, RefreshProbeTemplateErrorResponse, RefreshProbeTemplateMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RefreshProbeTemplateResponseContainer, ApiRestError, RefreshProbeTemplateMutationProps<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 refreshProbeTemplate(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}/revisions/${props.revision}/refresh`, method: 'POST' }, props));
8
+ }
9
+ /**
10
+ * Reads the revision from the Git provider bypassing git-sync's cache, updates Harness's copy and returns it.
11
+ */
12
+ export function useRefreshProbeTemplateMutation(props, options) {
13
+ return useMutation((mutateProps) => refreshProbeTemplate(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -0,0 +1,34 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface UpdateProbeTemplateGitMetadataMutationPathParams {
6
+ identity: string;
7
+ revision: number;
8
+ }
9
+ export interface UpdateProbeTemplateGitMetadataMutationQueryParams {
10
+ accountIdentifier: string;
11
+ organizationIdentifier: string;
12
+ projectIdentifier: string;
13
+ hubIdentity: string;
14
+ connectorRef?: string;
15
+ repoName?: string;
16
+ isHarnessCodeRepo?: boolean;
17
+ filePath?: string;
18
+ branch?: string;
19
+ }
20
+ export type UpdateProbeTemplateGitMetadataOkResponse = ChaosprobetemplateGetProbeTemplateResponse;
21
+ export type UpdateProbeTemplateGitMetadataErrorResponse = ApiRestError;
22
+ export interface UpdateProbeTemplateGitMetadataProps extends UpdateProbeTemplateGitMetadataMutationPathParams, Omit<FetcherOptions<UpdateProbeTemplateGitMetadataMutationQueryParams, unknown>, 'url'> {
23
+ queryParams: UpdateProbeTemplateGitMetadataMutationQueryParams;
24
+ }
25
+ export interface UpdateProbeTemplateGitMetadataResponseContainer {
26
+ body: UpdateProbeTemplateGitMetadataOkResponse;
27
+ headers: Headers;
28
+ }
29
+ export declare function updateProbeTemplateGitMetadata(props: UpdateProbeTemplateGitMetadataProps): Promise<UpdateProbeTemplateGitMetadataResponseContainer>;
30
+ export type UpdateProbeTemplateGitMetadataMutationProps<T extends keyof UpdateProbeTemplateGitMetadataProps> = Omit<UpdateProbeTemplateGitMetadataProps, T> & Partial<Pick<UpdateProbeTemplateGitMetadataProps, T>>;
31
+ /**
32
+ * Points a REMOTE revision at another connector, repository or file path. The file must already exist there and describe this revision.
33
+ */
34
+ export declare function useUpdateProbeTemplateGitMetadataMutation<T extends keyof UpdateProbeTemplateGitMetadataProps>(props: Pick<Partial<UpdateProbeTemplateGitMetadataProps>, T>, options?: Omit<UseMutationOptions<UpdateProbeTemplateGitMetadataResponseContainer, UpdateProbeTemplateGitMetadataErrorResponse, UpdateProbeTemplateGitMetadataMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateProbeTemplateGitMetadataResponseContainer, ApiRestError, UpdateProbeTemplateGitMetadataMutationProps<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 updateProbeTemplateGitMetadata(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}/revisions/${props.revision}/git-metadata`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Points a REMOTE revision at another connector, repository or file path. The file must already exist there and describe this revision.
11
+ */
12
+ export function useUpdateProbeTemplateGitMetadataMutation(props, options) {
13
+ return useMutation((mutateProps) => updateProbeTemplateGitMetadata(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -10,6 +10,15 @@ export interface UpdateProbeTemplateMutationQueryParams {
10
10
  organizationIdentifier: string;
11
11
  projectIdentifier: string;
12
12
  isDefault?: boolean;
13
+ storeType?: string;
14
+ connectorRef?: string;
15
+ repoName?: string;
16
+ isHarnessCodeRepo?: boolean;
17
+ branch?: string;
18
+ filePath?: string;
19
+ commitMsg?: string;
20
+ isNewBranch?: boolean;
21
+ baseBranch?: string;
13
22
  }
14
23
  export type UpdateProbeTemplateRequestBody = ChaosprobetemplateProbeTemplate;
15
24
  export type UpdateProbeTemplateOkResponse = ChaosprobetemplateProbeTemplate;
@@ -0,0 +1,36 @@
1
+ import { UseMutationOptions } from '@tanstack/react-query';
2
+ import type { ChaosprobetemplateProbeTemplate } from '../schemas/ChaosprobetemplateProbeTemplate';
3
+ import type { ApiRestError } from '../schemas/ApiRestError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface UpdateProbeTemplateRevisionMutationPathParams {
6
+ identity: string;
7
+ revision: number;
8
+ }
9
+ export interface UpdateProbeTemplateRevisionMutationQueryParams {
10
+ accountIdentifier: string;
11
+ organizationIdentifier: string;
12
+ projectIdentifier: string;
13
+ branch?: string;
14
+ commitMsg?: string;
15
+ isNewBranch?: boolean;
16
+ baseBranch?: string;
17
+ lastObjectId?: string;
18
+ lastCommitId?: string;
19
+ }
20
+ export type UpdateProbeTemplateRevisionRequestBody = ChaosprobetemplateProbeTemplate;
21
+ export type UpdateProbeTemplateRevisionOkResponse = ChaosprobetemplateProbeTemplate;
22
+ export type UpdateProbeTemplateRevisionErrorResponse = ApiRestError;
23
+ export interface UpdateProbeTemplateRevisionProps extends UpdateProbeTemplateRevisionMutationPathParams, Omit<FetcherOptions<UpdateProbeTemplateRevisionMutationQueryParams, UpdateProbeTemplateRevisionRequestBody>, 'url'> {
24
+ queryParams: UpdateProbeTemplateRevisionMutationQueryParams;
25
+ body: UpdateProbeTemplateRevisionRequestBody;
26
+ }
27
+ export interface UpdateProbeTemplateRevisionResponseContainer {
28
+ body: UpdateProbeTemplateRevisionOkResponse;
29
+ headers: Headers;
30
+ }
31
+ export declare function updateProbeTemplateRevision(props: UpdateProbeTemplateRevisionProps): Promise<UpdateProbeTemplateRevisionResponseContainer>;
32
+ export type UpdateProbeTemplateRevisionMutationProps<T extends keyof UpdateProbeTemplateRevisionProps> = Omit<UpdateProbeTemplateRevisionProps, T> & Partial<Pick<UpdateProbeTemplateRevisionProps, T>>;
33
+ /**
34
+ * Saves changes to an existing revision. For a revision stored in Git, lastObjectId and lastCommitId of the version being edited are required; a newer version in Git returns 409.
35
+ */
36
+ export declare function useUpdateProbeTemplateRevisionMutation<T extends keyof UpdateProbeTemplateRevisionProps>(props: Pick<Partial<UpdateProbeTemplateRevisionProps>, T>, options?: Omit<UseMutationOptions<UpdateProbeTemplateRevisionResponseContainer, UpdateProbeTemplateRevisionErrorResponse, UpdateProbeTemplateRevisionMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateProbeTemplateRevisionResponseContainer, ApiRestError, UpdateProbeTemplateRevisionMutationProps<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 updateProbeTemplateRevision(props) {
7
+ return fetcher(Object.assign({ url: `/rest/templates/probes/${props.identity}/revisions/${props.revision}`, method: 'PUT' }, props));
8
+ }
9
+ /**
10
+ * Saves changes to an existing revision. For a revision stored in Git, lastObjectId and lastCommitId of the version being edited are required; a newer version in Git returns 409.
11
+ */
12
+ export function useUpdateProbeTemplateRevisionMutation(props, options) {
13
+ return useMutation((mutateProps) => updateProbeTemplateRevision(Object.assign(Object.assign({}, props), mutateProps)), options);
14
+ }
@@ -27,6 +27,6 @@ export interface UpdateRiskRuleResponseContainer {
27
27
  export declare function updateRiskRule(props: UpdateRiskRuleProps): Promise<UpdateRiskRuleResponseContainer>;
28
28
  export type UpdateRiskRuleMutationProps<T extends keyof UpdateRiskRuleProps> = Omit<UpdateRiskRuleProps, T> & Partial<Pick<UpdateRiskRuleProps, T>>;
29
29
  /**
30
- * replaces the mutable fields of a project-scoped custom risk rule. System rules cannot be updated.
30
+ * replaces the mutable fields of an account-scoped custom risk rule. System rules cannot be updated.
31
31
  */
32
32
  export declare function useUpdateRiskRuleMutation<T extends keyof UpdateRiskRuleProps>(props: Pick<Partial<UpdateRiskRuleProps>, T>, options?: Omit<UseMutationOptions<UpdateRiskRuleResponseContainer, UpdateRiskRuleErrorResponse, UpdateRiskRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateRiskRuleResponseContainer, SharedError, UpdateRiskRuleMutationProps<T>, unknown>;
@@ -7,7 +7,7 @@ export function updateRiskRule(props) {
7
7
  return fetcher(Object.assign({ url: `/v3/risk-rules/${props.identity}`, method: 'PUT' }, props));
8
8
  }
9
9
  /**
10
- * replaces the mutable fields of a project-scoped custom risk rule. System rules cannot be updated.
10
+ * replaces the mutable fields of an account-scoped custom risk rule. System rules cannot be updated.
11
11
  */
12
12
  export function useUpdateRiskRuleMutation(props, options) {
13
13
  return useMutation((mutateProps) => updateRiskRule(Object.assign(Object.assign({}, props), mutateProps)), options);
@@ -312,6 +312,8 @@ export type { ImportActionErrorResponse, ImportActionMutationProps, ImportAction
312
312
  export { importAction, useImportActionMutation } from './hooks/useImportActionMutation';
313
313
  export type { ImportProbeErrorResponse, ImportProbeMutationProps, ImportProbeMutationQueryParams, ImportProbeOkResponse, ImportProbeProps, ImportProbeRequestBody, } from './hooks/useImportProbeMutation';
314
314
  export { importProbe, useImportProbeMutation } from './hooks/useImportProbeMutation';
315
+ export type { ImportProbeTemplateErrorResponse, ImportProbeTemplateMutationProps, ImportProbeTemplateMutationQueryParams, ImportProbeTemplateOkResponse, ImportProbeTemplateProps, ImportProbeTemplateRequestBody, } from './hooks/useImportProbeTemplateMutation';
316
+ export { importProbeTemplate, useImportProbeTemplateMutation, } from './hooks/useImportProbeTemplateMutation';
315
317
  export type { InternalAbortRiskScanErrorResponse, InternalAbortRiskScanMutationProps, InternalAbortRiskScanMutationQueryParams, InternalAbortRiskScanOkResponse, InternalAbortRiskScanProps, InternalAbortRiskScanRequestBody, } from './hooks/useInternalAbortRiskScanMutation';
316
318
  export { internalAbortRiskScan, useInternalAbortRiskScanMutation, } from './hooks/useInternalAbortRiskScanMutation';
317
319
  export type { ListActionMetadataErrorResponse, ListActionMetadataOkResponse, ListActionMetadataProps, ListActionMetadataQueryQueryParams, ListActionMetadataRequestBody, } from './hooks/useListActionMetadataQuery';
@@ -460,6 +462,8 @@ export type { ListVariablesInActionTemplateErrorResponse, ListVariablesInActionT
460
462
  export { listVariablesInActionTemplate, useListVariablesInActionTemplateQuery, } from './hooks/useListVariablesInActionTemplateQuery';
461
463
  export type { ListVariablesInProbeTemplateErrorResponse, ListVariablesInProbeTemplateOkResponse, ListVariablesInProbeTemplateProps, ListVariablesInProbeTemplateQueryPathParams, ListVariablesInProbeTemplateQueryQueryParams, } from './hooks/useListVariablesInProbeTemplateQuery';
462
464
  export { listVariablesInProbeTemplate, useListVariablesInProbeTemplateQuery, } from './hooks/useListVariablesInProbeTemplateQuery';
465
+ export type { MoveProbeTemplateConfigErrorResponse, MoveProbeTemplateConfigMutationPathParams, MoveProbeTemplateConfigMutationProps, MoveProbeTemplateConfigMutationQueryParams, MoveProbeTemplateConfigOkResponse, MoveProbeTemplateConfigProps, } from './hooks/useMoveProbeTemplateConfigMutation';
466
+ export { moveProbeTemplateConfig, useMoveProbeTemplateConfigMutation, } from './hooks/useMoveProbeTemplateConfigMutation';
463
467
  export type { OnboardServicesErrorResponse, OnboardServicesMutationPathParams, OnboardServicesMutationProps, OnboardServicesMutationQueryParams, OnboardServicesOkResponse, OnboardServicesProps, OnboardServicesRequestBody, } from './hooks/useOnboardServicesMutation';
464
468
  export { onboardServices, useOnboardServicesMutation } from './hooks/useOnboardServicesMutation';
465
469
  export type { OnboardingConfirmDiscoveryErrorResponse, OnboardingConfirmDiscoveryMutationPathParams, OnboardingConfirmDiscoveryMutationProps, OnboardingConfirmDiscoveryMutationQueryParams, OnboardingConfirmDiscoveryOkResponse, OnboardingConfirmDiscoveryProps, } from './hooks/useOnboardingConfirmDiscoveryMutation';
@@ -486,6 +490,8 @@ export type { ProcessTemplateErrorResponse, ProcessTemplateMutationProps, Proces
486
490
  export { processTemplate, useProcessTemplateMutation } from './hooks/useProcessTemplateMutation';
487
491
  export type { RecommendationEventErrorResponse, RecommendationEventMutationProps, RecommendationEventOkResponse, RecommendationEventProps, RecommendationEventRequestBody, } from './hooks/useRecommendationEventMutation';
488
492
  export { recommendationEvent, useRecommendationEventMutation, } from './hooks/useRecommendationEventMutation';
493
+ export type { RefreshProbeTemplateErrorResponse, RefreshProbeTemplateMutationPathParams, RefreshProbeTemplateMutationProps, RefreshProbeTemplateMutationQueryParams, RefreshProbeTemplateOkResponse, RefreshProbeTemplateProps, } from './hooks/useRefreshProbeTemplateMutation';
494
+ export { refreshProbeTemplate, useRefreshProbeTemplateMutation, } from './hooks/useRefreshProbeTemplateMutation';
489
495
  export type { RegisterInfraV2ErrorResponse, RegisterInfraV2MutationProps, RegisterInfraV2MutationQueryParams, RegisterInfraV2OkResponse, RegisterInfraV2Props, RegisterInfraV2RequestBody, } from './hooks/useRegisterInfraV2Mutation';
490
496
  export { registerInfraV2, useRegisterInfraV2Mutation } from './hooks/useRegisterInfraV2Mutation';
491
497
  export type { RegisterLegacyKubernetesInfraErrorResponse, RegisterLegacyKubernetesInfraMutationProps, RegisterLegacyKubernetesInfraMutationQueryParams, RegisterLegacyKubernetesInfraOkResponse, RegisterLegacyKubernetesInfraProps, RegisterLegacyKubernetesInfraRequestBody, } from './hooks/useRegisterLegacyKubernetesInfraMutation';
@@ -580,8 +586,12 @@ export type { UpdateNoteErrorResponse, UpdateNoteMutationProps, UpdateNoteMutati
580
586
  export { updateNote, useUpdateNoteMutation } from './hooks/useUpdateNoteMutation';
581
587
  export type { UpdateProbeErrorResponse, UpdateProbeMutationPathParams, UpdateProbeMutationProps, UpdateProbeMutationQueryParams, UpdateProbeOkResponse, UpdateProbeProps, UpdateProbeRequestBody, } from './hooks/useUpdateProbeMutation';
582
588
  export { updateProbe, useUpdateProbeMutation } from './hooks/useUpdateProbeMutation';
589
+ export type { UpdateProbeTemplateGitMetadataErrorResponse, UpdateProbeTemplateGitMetadataMutationPathParams, UpdateProbeTemplateGitMetadataMutationProps, UpdateProbeTemplateGitMetadataMutationQueryParams, UpdateProbeTemplateGitMetadataOkResponse, UpdateProbeTemplateGitMetadataProps, } from './hooks/useUpdateProbeTemplateGitMetadataMutation';
590
+ export { updateProbeTemplateGitMetadata, useUpdateProbeTemplateGitMetadataMutation, } from './hooks/useUpdateProbeTemplateGitMetadataMutation';
583
591
  export type { UpdateProbeTemplateErrorResponse, UpdateProbeTemplateMutationPathParams, UpdateProbeTemplateMutationProps, UpdateProbeTemplateMutationQueryParams, UpdateProbeTemplateOkResponse, UpdateProbeTemplateProps, UpdateProbeTemplateRequestBody, } from './hooks/useUpdateProbeTemplateMutation';
584
592
  export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
593
+ export type { UpdateProbeTemplateRevisionErrorResponse, UpdateProbeTemplateRevisionMutationPathParams, UpdateProbeTemplateRevisionMutationProps, UpdateProbeTemplateRevisionMutationQueryParams, UpdateProbeTemplateRevisionOkResponse, UpdateProbeTemplateRevisionProps, UpdateProbeTemplateRevisionRequestBody, } from './hooks/useUpdateProbeTemplateRevisionMutation';
594
+ export { updateProbeTemplateRevision, useUpdateProbeTemplateRevisionMutation, } from './hooks/useUpdateProbeTemplateRevisionMutation';
585
595
  export type { UpdateRecommendationStatusErrorResponse, UpdateRecommendationStatusMutationProps, UpdateRecommendationStatusMutationQueryParams, UpdateRecommendationStatusOkResponse, UpdateRecommendationStatusProps, } from './hooks/useUpdateRecommendationStatusMutation';
586
596
  export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
587
597
  export type { UpdateRiskErrorResponse, UpdateRiskMutationPathParams, UpdateRiskMutationProps, UpdateRiskMutationQueryParams, UpdateRiskOkResponse, UpdateRiskProps, UpdateRiskRequestBody, } from './hooks/useUpdateRiskMutation';
@@ -668,6 +678,7 @@ export type { ChaosExperimentWeightagesInput } from './schemas/ChaosExperimentWe
668
678
  export type { ChaosExperimentWorkflowRevision } from './schemas/ChaosExperimentWorkflowRevision';
669
679
  export type { ChaosHubAuthType } from './schemas/ChaosHubAuthType';
670
680
  export type { ChaosHubConnectorScope } from './schemas/ChaosHubConnectorScope';
681
+ export type { ChaosHubGitDefaults } from './schemas/ChaosHubGitDefaults';
671
682
  export type { ChaosInfrastructureV2ChaosInfraV2 } from './schemas/ChaosInfrastructureV2ChaosInfraV2';
672
683
  export type { ChaosInfrastructureV2ChaosInfraV2Spec } from './schemas/ChaosInfrastructureV2ChaosInfraV2Spec';
673
684
  export type { ChaosInfrastructureV2HelperDaemonSetConfig } from './schemas/ChaosInfrastructureV2HelperDaemonSetConfig';
@@ -783,6 +794,7 @@ export type { Chaoshubv2GetHubResponse } from './schemas/Chaoshubv2GetHubRespons
783
794
  export type { Chaoshubv2ListHubResponse } from './schemas/Chaoshubv2ListHubResponse';
784
795
  export type { Chaoshubv2UpdateHubRequest } from './schemas/Chaoshubv2UpdateHubRequest';
785
796
  export type { ChaosprobetemplateGetProbeTemplateResponse } from './schemas/ChaosprobetemplateGetProbeTemplateResponse';
797
+ export type { ChaosprobetemplateImportProbeTemplateRequest } from './schemas/ChaosprobetemplateImportProbeTemplateRequest';
786
798
  export type { ChaosprobetemplateListProbeTemplateResponse } from './schemas/ChaosprobetemplateListProbeTemplateResponse';
787
799
  export type { ChaosprobetemplateListReferencedByResponse } from './schemas/ChaosprobetemplateListReferencedByResponse';
788
800
  export type { ChaosprobetemplateProbeTemplate } from './schemas/ChaosprobetemplateProbeTemplate';
@@ -874,6 +886,9 @@ export type { DatabaseResourceRequirements } from './schemas/DatabaseResourceReq
874
886
  export type { DatabaseResourceWatchConfig } from './schemas/DatabaseResourceWatchConfig';
875
887
  export type { DatabaseServiceCollection } from './schemas/DatabaseServiceCollection';
876
888
  export type { DatabaseServiceIdentity } from './schemas/DatabaseServiceIdentity';
889
+ export type { EntityDetails } from './schemas/EntityDetails';
890
+ export type { EntityStoreType } from './schemas/EntityStoreType';
891
+ export type { EntityValidityDetails } from './schemas/EntityValidityDetails';
877
892
  export type { ExecutionActionData } from './schemas/ExecutionActionData';
878
893
  export type { ExecutionChaosData } from './schemas/ExecutionChaosData';
879
894
  export type { ExecutionChaosExecutionNode } from './schemas/ExecutionChaosExecutionNode';
@@ -1322,6 +1337,8 @@ export type { RecommendationsListRecommendationsRequest } from './schemas/Recomm
1322
1337
  export type { RecommendationsListRecommendationsResponse } from './schemas/RecommendationsListRecommendationsResponse';
1323
1338
  export type { RecommendationsPipelineAddExperimentResponse } from './schemas/RecommendationsPipelineAddExperimentResponse';
1324
1339
  export type { RecommendationsRunActionResponse } from './schemas/RecommendationsRunActionResponse';
1340
+ export type { ResolveSource } from './schemas/ResolveSource';
1341
+ export type { ResolveUsed } from './schemas/ResolveUsed';
1325
1342
  export type { ResourceQuantity } from './schemas/ResourceQuantity';
1326
1343
  export type { RiskCategory } from './schemas/RiskCategory';
1327
1344
  export type { RiskCdService } from './schemas/RiskCdService';
@@ -1420,6 +1437,8 @@ export type { ScannedrisksServiceRiskSummary } from './schemas/ScannedrisksServi
1420
1437
  export type { ScannedrisksServiceRiskSummaryQuery } from './schemas/ScannedrisksServiceRiskSummaryQuery';
1421
1438
  export type { ScannedrisksServiceRiskSummaryResponse } from './schemas/ScannedrisksServiceRiskSummaryResponse';
1422
1439
  export type { ScannedrisksValidationType } from './schemas/ScannedrisksValidationType';
1440
+ export type { ScmCacheInfo } from './schemas/ScmCacheInfo';
1441
+ export type { ScmCacheState } from './schemas/ScmCacheState';
1423
1442
  export type { SecurityGovernanceAccessControl } from './schemas/SecurityGovernanceAccessControl';
1424
1443
  export type { SecurityGovernanceApplicationSpec } from './schemas/SecurityGovernanceApplicationSpec';
1425
1444
  export type { SecurityGovernanceChaosServiceAccountSpec } from './schemas/SecurityGovernanceChaosServiceAccountSpec';
@@ -155,6 +155,7 @@ export { getV2Onboarding, useGetV2OnboardingQuery } from './hooks/useGetV2Onboar
155
155
  export { healthCheckV3, useHealthCheckV3Query } from './hooks/useHealthCheckV3Query';
156
156
  export { importAction, useImportActionMutation } from './hooks/useImportActionMutation';
157
157
  export { importProbe, useImportProbeMutation } from './hooks/useImportProbeMutation';
158
+ export { importProbeTemplate, useImportProbeTemplateMutation, } from './hooks/useImportProbeTemplateMutation';
158
159
  export { internalAbortRiskScan, useInternalAbortRiskScanMutation, } from './hooks/useInternalAbortRiskScanMutation';
159
160
  export { listActionMetadata, useListActionMetadataQuery } from './hooks/useListActionMetadataQuery';
160
161
  export { listActionReferencedBy, useListActionReferencedByQuery, } from './hooks/useListActionReferencedByQuery';
@@ -229,6 +230,7 @@ export { listTargetNetworkMaps, useListTargetNetworkMapsQuery, } from './hooks/u
229
230
  export { listV2Onboarding, useListV2OnboardingQuery } from './hooks/useListV2OnboardingQuery';
230
231
  export { listVariablesInActionTemplate, useListVariablesInActionTemplateQuery, } from './hooks/useListVariablesInActionTemplateQuery';
231
232
  export { listVariablesInProbeTemplate, useListVariablesInProbeTemplateQuery, } from './hooks/useListVariablesInProbeTemplateQuery';
233
+ export { moveProbeTemplateConfig, useMoveProbeTemplateConfigMutation, } from './hooks/useMoveProbeTemplateConfigMutation';
232
234
  export { onboardServices, useOnboardServicesMutation } from './hooks/useOnboardServicesMutation';
233
235
  export { onboardingConfirmDiscovery, useOnboardingConfirmDiscoveryMutation, } from './hooks/useOnboardingConfirmDiscoveryMutation';
234
236
  export { onboardingConfirmExperimentCreation, useOnboardingConfirmExperimentCreationMutation, } from './hooks/useOnboardingConfirmExperimentCreationMutation';
@@ -242,6 +244,7 @@ export { pipelineOnboardChaos, usePipelineOnboardChaosMutation, } from './hooks/
242
244
  export { pipelineOnboardChaosStatus, usePipelineOnboardChaosStatusQuery, } from './hooks/usePipelineOnboardChaosStatusQuery';
243
245
  export { processTemplate, useProcessTemplateMutation } from './hooks/useProcessTemplateMutation';
244
246
  export { recommendationEvent, useRecommendationEventMutation, } from './hooks/useRecommendationEventMutation';
247
+ export { refreshProbeTemplate, useRefreshProbeTemplateMutation, } from './hooks/useRefreshProbeTemplateMutation';
245
248
  export { registerInfraV2, useRegisterInfraV2Mutation } from './hooks/useRegisterInfraV2Mutation';
246
249
  export { registerLegacyKubernetesInfra, useRegisterLegacyKubernetesInfraMutation, } from './hooks/useRegisterLegacyKubernetesInfraMutation';
247
250
  export { registerMachineInfra, useRegisterMachineInfraMutation, } from './hooks/useRegisterMachineInfraMutation';
@@ -289,7 +292,9 @@ export { updateLegacyKubernetesChaosInfra, useUpdateLegacyKubernetesChaosInfraMu
289
292
  export { updateMachineInfra, useUpdateMachineInfraMutation, } from './hooks/useUpdateMachineInfraMutation';
290
293
  export { updateNote, useUpdateNoteMutation } from './hooks/useUpdateNoteMutation';
291
294
  export { updateProbe, useUpdateProbeMutation } from './hooks/useUpdateProbeMutation';
295
+ export { updateProbeTemplateGitMetadata, useUpdateProbeTemplateGitMetadataMutation, } from './hooks/useUpdateProbeTemplateGitMetadataMutation';
292
296
  export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
297
+ export { updateProbeTemplateRevision, useUpdateProbeTemplateRevisionMutation, } from './hooks/useUpdateProbeTemplateRevisionMutation';
293
298
  export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
294
299
  export { updateRisk, useUpdateRiskMutation } from './hooks/useUpdateRiskMutation';
295
300
  export { updateRiskRule, useUpdateRiskRuleMutation } from './hooks/useUpdateRiskRuleMutation';
@@ -3,6 +3,7 @@ import type { ChaosExperimentRunExperimentType } from '../schemas/ChaosExperimen
3
3
  import type { ChaosExperimentRunRunFailureDetails } from '../schemas/ChaosExperimentRunRunFailureDetails';
4
4
  import type { ChaosExperimentRunFaults } from '../schemas/ChaosExperimentRunFaults';
5
5
  import type { ChaosExperimentRunProbe } from '../schemas/ChaosExperimentRunProbe';
6
+ import type { ResolveUsed } from '../schemas/ResolveUsed';
6
7
  import type { ChaosExperimentRunSecurityGovernanceNode } from '../schemas/ChaosExperimentRunSecurityGovernanceNode';
7
8
  import type { TargetserviceServiceMetadata } from '../schemas/TargetserviceServiceMetadata';
8
9
  import type { ChaosExperimentRunTemplateDetails } from '../schemas/ChaosExperimentRunTemplateDetails';
@@ -41,6 +42,10 @@ export interface ChaosExperimentRunChaosExperimentRun {
41
42
  probes?: ChaosExperimentRunProbe[];
42
43
  projectID?: string;
43
44
  resiliencyScore?: number;
45
+ /**
46
+ * ResolvedSources records the Git content a run executed (ADR §9.3).
47
+ */
48
+ resolvedSources?: ResolveUsed[];
44
49
  revisionID?: string;
45
50
  runSequence?: number;
46
51
  securityGovernance?: ChaosExperimentRunSecurityGovernanceNode;
@@ -0,0 +1,9 @@
1
+ export interface ChaosHubGitDefaults {
2
+ /**
3
+ * ConnectorRef is a scoped connector reference; empty iff IsHarnessCodeRepo.
4
+ */
5
+ connectorRef?: string;
6
+ defaultBranch?: string;
7
+ isHarnessCodeRepo?: boolean;
8
+ repoName?: string;
9
+ }
@@ -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,5 +1,6 @@
1
1
  import type { ChaosHubAuthType } from '../schemas/ChaosHubAuthType';
2
2
  import type { ChaosHubConnectorScope } from '../schemas/ChaosHubConnectorScope';
3
+ import type { ChaosHubGitDefaults } from '../schemas/ChaosHubGitDefaults';
3
4
  export interface Chaoshubv2ChaosHubResponse {
4
5
  accountID: string;
5
6
  actionTemplateCount?: number;
@@ -20,6 +21,14 @@ export interface Chaoshubv2ChaosHubResponse {
20
21
  description?: string;
21
22
  experimentTemplateCount?: number;
22
23
  faultTemplateCount?: number;
24
+ /**
25
+ * GitDefaults are the Git Experience defaults for templates created in
26
+ * this hub (ADR_GIT_EXPERIENCE_RESILIENCE_TESTING.md §4.2). Deliberately a
27
+ * NEW field: the legacy connector_id/connector_scope/repo_name/repo_branch
28
+ * fields above are read by the 12-hourly go-git clone job
29
+ * (chaoshub.HandleSyncAllHubs) and must not be populated for Git Experience.
30
+ */
31
+ gitDefaults?: ChaosHubGitDefaults;
23
32
  hubId: string;
24
33
  identity: string;
25
34
  isDefault: boolean;
@@ -1,6 +1,11 @@
1
+ import type { ChaosHubGitDefaults } from '../schemas/ChaosHubGitDefaults';
1
2
  export interface Chaoshubv2CreateHubRequest {
2
3
  connectorRef?: string;
3
4
  description?: string;
5
+ /**
6
+ * GitDefaults sets the hub's Git Experience defaults. Optional.
7
+ */
8
+ gitDefaults?: ChaosHubGitDefaults;
4
9
  identity: string;
5
10
  name: string;
6
11
  repoBranch?: string;
@@ -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 {};
@@ -1,5 +1,6 @@
1
1
  import type { ChaosHubAuthType } from '../schemas/ChaosHubAuthType';
2
2
  import type { ChaosHubConnectorScope } from '../schemas/ChaosHubConnectorScope';
3
+ import type { ChaosHubGitDefaults } from '../schemas/ChaosHubGitDefaults';
3
4
  export interface Chaoshubv2GetHubResponse {
4
5
  accountID: string;
5
6
  actionTemplateCount?: number;
@@ -20,6 +21,14 @@ export interface Chaoshubv2GetHubResponse {
20
21
  description?: string;
21
22
  experimentTemplateCount?: number;
22
23
  faultTemplateCount?: number;
24
+ /**
25
+ * GitDefaults are the Git Experience defaults for templates created in
26
+ * this hub (ADR_GIT_EXPERIENCE_RESILIENCE_TESTING.md §4.2). Deliberately a
27
+ * NEW field: the legacy connector_id/connector_scope/repo_name/repo_branch
28
+ * fields above are read by the 12-hourly go-git clone job
29
+ * (chaoshub.HandleSyncAllHubs) and must not be populated for Git Experience.
30
+ */
31
+ gitDefaults?: ChaosHubGitDefaults;
23
32
  hubId: string;
24
33
  identity: string;
25
34
  isDefault: boolean;
@@ -1,5 +1,11 @@
1
+ import type { ChaosHubGitDefaults } from '../schemas/ChaosHubGitDefaults';
1
2
  export interface Chaoshubv2UpdateHubRequest {
2
3
  description?: string;
4
+ /**
5
+ * GitDefaults, when present, replaces the hub's Git Experience defaults.
6
+ * An empty object ({}) clears them; omitting the field leaves them as is.
7
+ */
8
+ gitDefaults?: ChaosHubGitDefaults;
3
9
  name: string;
4
10
  tags?: string[];
5
11
  }
@@ -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 {};
@@ -0,0 +1,13 @@
1
+ export interface ChaosprobetemplateImportProbeTemplateRequest {
2
+ hubRef?: string;
3
+ identity?: string;
4
+ /**
5
+ * IsDefault marks the imported revision as the default. A pointer so an
6
+ * explicit false is distinguishable from an omitted field.
7
+ */
8
+ isDefault?: boolean;
9
+ /**
10
+ * Revision of the file; 0 means "take it from the file".
11
+ */
12
+ revision?: number;
13
+ }
@@ -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,12 +1,15 @@
1
+ import type { EntityDetails } from '../schemas/EntityDetails';
1
2
  import type { ProbeInfrastructureType } from '../schemas/ProbeInfrastructureType';
2
3
  import type { TemplateInput } from '../schemas/TemplateInput';
3
4
  import type { ProbeProbeTemplateProperties } from '../schemas/ProbeProbeTemplateProperties';
4
5
  import type { ProbeRuleDetails } from '../schemas/ProbeRuleDetails';
5
6
  import type { ProbeProbeTemplateRunProperties } from '../schemas/ProbeProbeTemplateRunProperties';
7
+ import type { EntityStoreType } from '../schemas/EntityStoreType';
6
8
  import type { ProbeProbeType } from '../schemas/ProbeProbeType';
7
9
  import type { TemplateVariable } from '../schemas/TemplateVariable';
8
10
  export interface ChaosprobetemplateProbeTemplate {
9
11
  description?: string;
12
+ gitDetails?: EntityDetails;
10
13
  hubRef?: string;
11
14
  identity?: string;
12
15
  infrastructureType?: ProbeInfrastructureType;
@@ -18,6 +21,11 @@ export interface ChaosprobetemplateProbeTemplate {
18
21
  revision?: number;
19
22
  ruleDetails?: ProbeRuleDetails;
20
23
  runProperties?: ProbeProbeTemplateRunProperties;
24
+ /**
25
+ * Response-only Git Experience fields; never part of the internal YAML
26
+ * encoding or the Git file.
27
+ */
28
+ storeType?: EntityStoreType;
21
29
  tags?: string[];
22
30
  type?: ProbeProbeType;
23
31
  variables?: TemplateVariable[];
@@ -0,0 +1,10 @@
1
+ export interface EntityDetails {
2
+ branch?: string;
3
+ commitId?: string;
4
+ filePath?: string;
5
+ fileUrl?: string;
6
+ isHarnessCodeRepo?: boolean;
7
+ objectId?: string;
8
+ repoName?: string;
9
+ repoUrl?: string;
10
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1 @@
1
+ export type EntityStoreType = 'INLINE' | 'REMOTE';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface EntityValidityDetails {
2
+ invalidYaml?: string;
3
+ valid?: boolean;
4
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -3,6 +3,7 @@ import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
3
3
  import type { ChaosExperimentRunRunFailureDetails } from '../schemas/ChaosExperimentRunRunFailureDetails';
4
4
  import type { ChaosExperimentRunFaults } from '../schemas/ChaosExperimentRunFaults';
5
5
  import type { ChaosExperimentRunProbe } from '../schemas/ChaosExperimentRunProbe';
6
+ import type { ResolveUsed } from '../schemas/ResolveUsed';
6
7
  import type { ChaosExperimentRunSecurityGovernanceNode } from '../schemas/ChaosExperimentRunSecurityGovernanceNode';
7
8
  import type { TargetserviceServiceMetadata } from '../schemas/TargetserviceServiceMetadata';
8
9
  import type { ChaosExperimentRunTemplateDetails } from '../schemas/ChaosExperimentRunTemplateDetails';
@@ -51,6 +52,10 @@ export interface ExperimentrunsGetExperimentRunResponse {
51
52
  probes?: ChaosExperimentRunProbe[];
52
53
  projectID?: string;
53
54
  resiliencyScore?: number;
55
+ /**
56
+ * ResolvedSources records the Git content a run executed (ADR §9.3).
57
+ */
58
+ resolvedSources?: ResolveUsed[];
54
59
  revisionID?: string;
55
60
  runSequence?: number;
56
61
  securityGovernance?: ChaosExperimentRunSecurityGovernanceNode;
@@ -1,17 +1,40 @@
1
+ import type { ScmCacheInfo } from '../schemas/ScmCacheInfo';
1
2
  import type { GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails } from '../schemas/GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails';
3
+ import type { EntityValidityDetails } from '../schemas/EntityValidityDetails';
4
+ import type { EntityDetails } from '../schemas/EntityDetails';
2
5
  import type { ProbeInfrastructureType } from '../schemas/ProbeInfrastructureType';
3
6
  import type { TemplateInput } from '../schemas/TemplateInput';
4
7
  import type { ProbeProbeTemplateProperties } from '../schemas/ProbeProbeTemplateProperties';
5
8
  import type { ProbeRuleDetails } from '../schemas/ProbeRuleDetails';
6
9
  import type { ProbeProbeTemplateRunProperties } from '../schemas/ProbeProbeTemplateRunProperties';
10
+ import type { EntityStoreType } from '../schemas/EntityStoreType';
7
11
  import type { ProbeProbeType } from '../schemas/ProbeProbeType';
8
12
  import type { TemplateVariable } from '../schemas/TemplateVariable';
9
13
  export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobetemplateChaosProbeTemplate {
10
14
  accountID: string;
15
+ cacheResponse?: ScmCacheInfo;
16
+ connectorRef?: string;
11
17
  createdAt?: number;
12
18
  createdBy?: string;
13
19
  createdByUserDetails?: GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails;
14
20
  description?: string;
21
+ /**
22
+ * EntityValidityDetails is set on GET of a REMOTE revision whose file in
23
+ * Git fails validation (platform EntityValidityDetails).
24
+ */
25
+ entityValidityDetails?: EntityValidityDetails;
26
+ fallbackBranch?: string;
27
+ filePath?: string;
28
+ /**
29
+ * GitDetails / CacheResponse are response-only (platform EntityGitDetails,
30
+ * CacheResponseMetadataDTO).
31
+ */
32
+ gitDetails?: EntityDetails;
33
+ /**
34
+ * GitYAML is the canonical Git file of a REMOTE revision, for the UI's
35
+ * YAML view (ADR §5.2). Template keeps its existing format.
36
+ */
37
+ gitYaml?: string;
15
38
  hubRef?: string;
16
39
  id?: string;
17
40
  /**
@@ -27,18 +50,22 @@ export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprob
27
50
  */
28
51
  isDefault?: boolean;
29
52
  isEnterprise?: boolean;
53
+ isHarnessCodeRepo?: boolean;
30
54
  isRemoved: boolean;
31
55
  name: string;
32
56
  orgID?: string;
33
57
  parentUniqueId?: string;
34
58
  probeProperties?: ProbeProbeTemplateProperties;
35
59
  projectID?: string;
60
+ repoName?: string;
61
+ repoUrl?: string;
36
62
  /**
37
63
  * it increments every time a new version of fault is published
38
64
  */
39
65
  revision?: number;
40
66
  ruleDetails?: ProbeRuleDetails;
41
67
  runProperties?: ProbeProbeTemplateRunProperties;
68
+ storeType?: EntityStoreType;
42
69
  tags?: string[];
43
70
  template?: string;
44
71
  type?: ProbeProbeType;
@@ -0,0 +1 @@
1
+ export type ResolveSource = 'cache' | 'last_synced' | 'live';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { ResolveSource } from '../schemas/ResolveSource';
2
+ export interface ResolveUsed {
3
+ branch?: string;
4
+ commitId?: string;
5
+ identity?: string;
6
+ kind?: string;
7
+ path?: string;
8
+ revision?: string;
9
+ source?: ResolveSource;
10
+ }
@@ -2,6 +2,7 @@ import type { ScannedrisksRiskStat } from '../schemas/ScannedrisksRiskStat';
2
2
  import type { ScannedrisksServiceRiskSummary } from '../schemas/ScannedrisksServiceRiskSummary';
3
3
  import type { SharedPaginationResponse } from '../schemas/SharedPaginationResponse';
4
4
  export interface ScannedrisksServiceRiskSummaryResponse {
5
+ codeRepositoryScanRiskStat?: ScannedrisksRiskStat;
5
6
  confirmedRiskStat?: ScannedrisksRiskStat;
6
7
  correlationID?: string;
7
8
  data?: ScannedrisksServiceRiskSummary[];
@@ -0,0 +1,16 @@
1
+ import type { ScmCacheState } from '../schemas/ScmCacheState';
2
+ export interface ScmCacheInfo {
3
+ cacheState?: ScmCacheState;
4
+ /**
5
+ * IsSyncEnabled reports bi-directional sync for the file.
6
+ */
7
+ isSyncEnabled?: boolean;
8
+ /**
9
+ * LastUpdatedAt is epoch millis of the last provider fetch or write.
10
+ */
11
+ lastUpdatedAt?: number;
12
+ /**
13
+ * TTLLeft is millis until the entry expires.
14
+ */
15
+ ttlLeft?: number;
16
+ }
@@ -0,0 +1 @@
1
+ export type ScmCacheState = 'STALE_CACHE' | 'UNKNOWN' | 'VALID_CACHE';
@@ -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.5",
3
+ "version": "1.91.7-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",