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

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 (67) hide show
  1. package/dist/chaos-manager/src/services/hooks/useCreateProbeTemplateMutation.d.ts +0 -9
  2. package/dist/chaos-manager/src/services/hooks/useGetProbeTemplateQuery.d.ts +1 -7
  3. package/dist/chaos-manager/src/services/hooks/useListChaosServicesQuery.d.ts +1 -0
  4. package/dist/chaos-manager/src/services/hooks/useListRiskRulesQuery.d.ts +1 -0
  5. package/dist/chaos-manager/src/services/hooks/useListRiskScanRisksQuery.d.ts +1 -1
  6. package/dist/chaos-manager/src/services/hooks/useListRiskScansQuery.d.ts +1 -0
  7. package/dist/chaos-manager/src/services/hooks/useListScannedRisksQuery.d.ts +1 -0
  8. package/dist/chaos-manager/src/services/hooks/useListVariablesInProbeTemplateQuery.d.ts +0 -1
  9. package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.d.ts +1 -1
  10. package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.js +1 -1
  11. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateMutation.d.ts +0 -9
  12. package/dist/chaos-manager/src/services/hooks/useUpdateScannedRiskStatusMutation.d.ts +32 -0
  13. package/dist/chaos-manager/src/services/hooks/useUpdateScannedRiskStatusMutation.js +14 -0
  14. package/dist/chaos-manager/src/services/index.d.ts +4 -24
  15. package/dist/chaos-manager/src/services/index.js +1 -7
  16. package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesExecutionOutput.d.ts +6 -0
  17. package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunChaosExperimentRun.d.ts +0 -5
  18. package/dist/chaos-manager/src/services/schemas/Chaoshubv2ChaosHubResponse.d.ts +0 -9
  19. package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.d.ts +0 -5
  20. package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.js +3 -0
  21. package/dist/chaos-manager/src/services/schemas/Chaoshubv2GetHubResponse.d.ts +0 -9
  22. package/dist/chaos-manager/src/services/schemas/Chaoshubv2UpdateHubRequest.d.ts +0 -6
  23. package/dist/chaos-manager/src/services/schemas/Chaoshubv2UpdateHubRequest.js +3 -0
  24. package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateProbeTemplate.d.ts +0 -15
  25. package/dist/chaos-manager/src/services/schemas/ExperimentrunsGetExperimentRunResponse.d.ts +0 -5
  26. package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobetemplateChaosProbeTemplate.d.ts +0 -36
  27. package/dist/chaos-manager/src/services/schemas/RiskRiskRuleSpec.d.ts +7 -0
  28. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatus.d.ts +1 -1
  29. package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatusDetails.d.ts +11 -0
  30. package/dist/chaos-manager/src/services/schemas/ScannedrisksScannedRiskSpec.d.ts +6 -0
  31. package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryQuery.d.ts +4 -0
  32. package/dist/chaos-manager/src/services/schemas/ScannedrisksUpdateStatusRequest.d.ts +9 -0
  33. package/package.json +1 -1
  34. package/dist/chaos-manager/src/services/hooks/useImportProbeTemplateV3Mutation.d.ts +0 -34
  35. package/dist/chaos-manager/src/services/hooks/useImportProbeTemplateV3Mutation.js +0 -14
  36. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigV3Mutation.d.ts +0 -37
  37. package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigV3Mutation.js +0 -14
  38. package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateV3Mutation.d.ts +0 -32
  39. package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateV3Mutation.js +0 -14
  40. package/dist/chaos-manager/src/services/hooks/useSaveProbeTemplateRevisionV3Mutation.d.ts +0 -39
  41. package/dist/chaos-manager/src/services/hooks/useSaveProbeTemplateRevisionV3Mutation.js +0 -14
  42. package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateRevisionV3Mutation.d.ts +0 -31
  43. package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateRevisionV3Mutation.js +0 -14
  44. package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateVersionV3Mutation.d.ts +0 -31
  45. package/dist/chaos-manager/src/services/hooks/useSetDefaultProbeTemplateVersionV3Mutation.js +0 -14
  46. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataV3Mutation.d.ts +0 -36
  47. package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataV3Mutation.js +0 -14
  48. package/dist/chaos-manager/src/services/schemas/ChaosHubGitDefaults.d.ts +0 -9
  49. package/dist/chaos-manager/src/services/schemas/ChaosHubGitDefaults.js +0 -4
  50. package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateImportProbeTemplateRequest.d.ts +0 -19
  51. package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateImportProbeTemplateRequest.js +0 -4
  52. package/dist/chaos-manager/src/services/schemas/EntityDetails.d.ts +0 -10
  53. package/dist/chaos-manager/src/services/schemas/EntityDetails.js +0 -4
  54. package/dist/chaos-manager/src/services/schemas/EntityStoreType.d.ts +0 -1
  55. package/dist/chaos-manager/src/services/schemas/EntityStoreType.js +0 -4
  56. package/dist/chaos-manager/src/services/schemas/EntityValidityDetails.d.ts +0 -4
  57. package/dist/chaos-manager/src/services/schemas/EntityValidityDetails.js +0 -4
  58. package/dist/chaos-manager/src/services/schemas/ResolveSource.d.ts +0 -1
  59. package/dist/chaos-manager/src/services/schemas/ResolveSource.js +0 -4
  60. package/dist/chaos-manager/src/services/schemas/ResolveUsed.d.ts +0 -10
  61. package/dist/chaos-manager/src/services/schemas/ScmCacheInfo.d.ts +0 -16
  62. package/dist/chaos-manager/src/services/schemas/ScmCacheState.d.ts +0 -1
  63. package/dist/chaos-manager/src/services/schemas/ScmCacheState.js +0 -4
  64. package/dist/chaos-manager/src/services/schemas/V3SaveRevisionRequest.d.ts +0 -39
  65. package/dist/chaos-manager/src/services/schemas/V3SaveRevisionRequest.js +0 -1
  66. /package/dist/chaos-manager/src/services/schemas/{ResolveUsed.js → ScannedrisksRiskStatusDetails.js} +0 -0
  67. /package/dist/chaos-manager/src/services/schemas/{ScmCacheInfo.js → ScannedrisksUpdateStatusRequest.js} +0 -0
@@ -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
+ }
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.8",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,34 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateProbeTemplate } from '../schemas/ChaosprobetemplateProbeTemplate';
3
- import type { SharedError } from '../schemas/SharedError';
4
- import type { ChaosprobetemplateImportProbeTemplateRequest } from '../schemas/ChaosprobetemplateImportProbeTemplateRequest';
5
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
- export interface ImportProbeTemplateV3MutationQueryParams {
7
- accountIdentifier: string;
8
- correlationID?: string;
9
- organizationIdentifier?: string;
10
- parentUniqueId?: string;
11
- projectIdentifier?: string;
12
- connectorRef?: string;
13
- repoName?: string;
14
- isHarnessCodeRepo?: boolean;
15
- branch?: string;
16
- filePath: string;
17
- }
18
- export type ImportProbeTemplateV3RequestBody = ChaosprobetemplateImportProbeTemplateRequest;
19
- export type ImportProbeTemplateV3OkResponse = ChaosprobetemplateProbeTemplate;
20
- export type ImportProbeTemplateV3ErrorResponse = SharedError;
21
- export interface ImportProbeTemplateV3Props extends Omit<FetcherOptions<ImportProbeTemplateV3MutationQueryParams, ImportProbeTemplateV3RequestBody>, 'url'> {
22
- queryParams: ImportProbeTemplateV3MutationQueryParams;
23
- body: ImportProbeTemplateV3RequestBody;
24
- }
25
- export interface ImportProbeTemplateV3ResponseContainer {
26
- body: ImportProbeTemplateV3OkResponse;
27
- headers: Headers;
28
- }
29
- export declare function importProbeTemplateV3(props: ImportProbeTemplateV3Props): Promise<ImportProbeTemplateV3ResponseContainer>;
30
- export type ImportProbeTemplateV3MutationProps<T extends keyof ImportProbeTemplateV3Props> = Omit<ImportProbeTemplateV3Props, T> & Partial<Pick<ImportProbeTemplateV3Props, T>>;
31
- /**
32
- * Creates a probe template revision from an existing file in Git. Nothing is committed.
33
- */
34
- export declare function useImportProbeTemplateV3Mutation<T extends keyof ImportProbeTemplateV3Props>(props: Pick<Partial<ImportProbeTemplateV3Props>, T>, options?: Omit<UseMutationOptions<ImportProbeTemplateV3ResponseContainer, ImportProbeTemplateV3ErrorResponse, ImportProbeTemplateV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<ImportProbeTemplateV3ResponseContainer, SharedError, ImportProbeTemplateV3MutationProps<T>, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../custom-fetcher/index.js';
6
- export function importProbeTemplateV3(props) {
7
- return fetcher(Object.assign({ url: `/v3/probe-templates/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 useImportProbeTemplateV3Mutation(props, options) {
13
- return useMutation((mutateProps) => importProbeTemplateV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,37 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
- import type { SharedError } from '../schemas/SharedError';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface MoveProbeTemplateConfigV3MutationPathParams {
6
- identity: string;
7
- revision: number;
8
- }
9
- export interface MoveProbeTemplateConfigV3MutationQueryParams {
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
- branch?: string;
20
- filePath?: string;
21
- commitMsg?: string;
22
- }
23
- export type MoveProbeTemplateConfigV3OkResponse = ChaosprobetemplateGetProbeTemplateResponse;
24
- export type MoveProbeTemplateConfigV3ErrorResponse = SharedError;
25
- export interface MoveProbeTemplateConfigV3Props extends MoveProbeTemplateConfigV3MutationPathParams, Omit<FetcherOptions<MoveProbeTemplateConfigV3MutationQueryParams, unknown>, 'url'> {
26
- queryParams: MoveProbeTemplateConfigV3MutationQueryParams;
27
- }
28
- export interface MoveProbeTemplateConfigV3ResponseContainer {
29
- body: MoveProbeTemplateConfigV3OkResponse;
30
- headers: Headers;
31
- }
32
- export declare function moveProbeTemplateConfigV3(props: MoveProbeTemplateConfigV3Props): Promise<MoveProbeTemplateConfigV3ResponseContainer>;
33
- export type MoveProbeTemplateConfigV3MutationProps<T extends keyof MoveProbeTemplateConfigV3Props> = Omit<MoveProbeTemplateConfigV3Props, T> & Partial<Pick<MoveProbeTemplateConfigV3Props, T>>;
34
- /**
35
- * Moves a probe template revision between Harness and Git
36
- */
37
- export declare function useMoveProbeTemplateConfigV3Mutation<T extends keyof MoveProbeTemplateConfigV3Props>(props: Pick<Partial<MoveProbeTemplateConfigV3Props>, T>, options?: Omit<UseMutationOptions<MoveProbeTemplateConfigV3ResponseContainer, MoveProbeTemplateConfigV3ErrorResponse, MoveProbeTemplateConfigV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<MoveProbeTemplateConfigV3ResponseContainer, SharedError, MoveProbeTemplateConfigV3MutationProps<T>, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../custom-fetcher/index.js';
6
- export function moveProbeTemplateConfigV3(props) {
7
- return fetcher(Object.assign({ url: `/v3/probe-templates/${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 useMoveProbeTemplateConfigV3Mutation(props, options) {
13
- return useMutation((mutateProps) => moveProbeTemplateConfigV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,32 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
- import type { SharedError } from '../schemas/SharedError';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface RefreshProbeTemplateV3MutationPathParams {
6
- identity: string;
7
- revision: number;
8
- }
9
- export interface RefreshProbeTemplateV3MutationQueryParams {
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 RefreshProbeTemplateV3OkResponse = ChaosprobetemplateGetProbeTemplateResponse;
19
- export type RefreshProbeTemplateV3ErrorResponse = SharedError;
20
- export interface RefreshProbeTemplateV3Props extends RefreshProbeTemplateV3MutationPathParams, Omit<FetcherOptions<RefreshProbeTemplateV3MutationQueryParams, unknown>, 'url'> {
21
- queryParams: RefreshProbeTemplateV3MutationQueryParams;
22
- }
23
- export interface RefreshProbeTemplateV3ResponseContainer {
24
- body: RefreshProbeTemplateV3OkResponse;
25
- headers: Headers;
26
- }
27
- export declare function refreshProbeTemplateV3(props: RefreshProbeTemplateV3Props): Promise<RefreshProbeTemplateV3ResponseContainer>;
28
- export type RefreshProbeTemplateV3MutationProps<T extends keyof RefreshProbeTemplateV3Props> = Omit<RefreshProbeTemplateV3Props, T> & Partial<Pick<RefreshProbeTemplateV3Props, T>>;
29
- /**
30
- * Reloads a probe template revision from Git
31
- */
32
- export declare function useRefreshProbeTemplateV3Mutation<T extends keyof RefreshProbeTemplateV3Props>(props: Pick<Partial<RefreshProbeTemplateV3Props>, T>, options?: Omit<UseMutationOptions<RefreshProbeTemplateV3ResponseContainer, RefreshProbeTemplateV3ErrorResponse, RefreshProbeTemplateV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<RefreshProbeTemplateV3ResponseContainer, SharedError, RefreshProbeTemplateV3MutationProps<T>, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../custom-fetcher/index.js';
6
- export function refreshProbeTemplateV3(props) {
7
- return fetcher(Object.assign({ url: `/v3/probe-templates/${props.identity}/revisions/${props.revision}/refresh`, method: 'POST' }, props));
8
- }
9
- /**
10
- * Reloads a probe template revision from Git
11
- */
12
- export function useRefreshProbeTemplateV3Mutation(props, options) {
13
- return useMutation((mutateProps) => refreshProbeTemplateV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,39 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateProbeTemplate } from '../schemas/ChaosprobetemplateProbeTemplate';
3
- import type { SharedError } from '../schemas/SharedError';
4
- import type { V3SaveRevisionRequest } from '../schemas/V3SaveRevisionRequest';
5
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
6
- export interface SaveProbeTemplateRevisionV3MutationPathParams {
7
- identity: string;
8
- revision: number;
9
- }
10
- export interface SaveProbeTemplateRevisionV3MutationQueryParams {
11
- accountIdentifier: string;
12
- correlationID?: string;
13
- organizationIdentifier?: string;
14
- parentUniqueId?: string;
15
- projectIdentifier?: string;
16
- branch?: string;
17
- commitMsg?: string;
18
- isNewBranch?: boolean;
19
- baseBranch?: string;
20
- lastObjectId?: string;
21
- lastCommitId?: string;
22
- }
23
- export type SaveProbeTemplateRevisionV3RequestBody = V3SaveRevisionRequest;
24
- export type SaveProbeTemplateRevisionV3OkResponse = ChaosprobetemplateProbeTemplate;
25
- export type SaveProbeTemplateRevisionV3ErrorResponse = SharedError;
26
- export interface SaveProbeTemplateRevisionV3Props extends SaveProbeTemplateRevisionV3MutationPathParams, Omit<FetcherOptions<SaveProbeTemplateRevisionV3MutationQueryParams, SaveProbeTemplateRevisionV3RequestBody>, 'url'> {
27
- queryParams: SaveProbeTemplateRevisionV3MutationQueryParams;
28
- body: SaveProbeTemplateRevisionV3RequestBody;
29
- }
30
- export interface SaveProbeTemplateRevisionV3ResponseContainer {
31
- body: SaveProbeTemplateRevisionV3OkResponse;
32
- headers: Headers;
33
- }
34
- export declare function saveProbeTemplateRevisionV3(props: SaveProbeTemplateRevisionV3Props): Promise<SaveProbeTemplateRevisionV3ResponseContainer>;
35
- export type SaveProbeTemplateRevisionV3MutationProps<T extends keyof SaveProbeTemplateRevisionV3Props> = Omit<SaveProbeTemplateRevisionV3Props, T> & Partial<Pick<SaveProbeTemplateRevisionV3Props, T>>;
36
- /**
37
- * For a revision stored in Git, lastObjectId and lastCommitId of the version being edited are required.
38
- */
39
- export declare function useSaveProbeTemplateRevisionV3Mutation<T extends keyof SaveProbeTemplateRevisionV3Props>(props: Pick<Partial<SaveProbeTemplateRevisionV3Props>, T>, options?: Omit<UseMutationOptions<SaveProbeTemplateRevisionV3ResponseContainer, SaveProbeTemplateRevisionV3ErrorResponse, SaveProbeTemplateRevisionV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SaveProbeTemplateRevisionV3ResponseContainer, SharedError, SaveProbeTemplateRevisionV3MutationProps<T>, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../custom-fetcher/index.js';
6
- export function saveProbeTemplateRevisionV3(props) {
7
- return fetcher(Object.assign({ url: `/v3/probe-templates/${props.identity}/revisions/${props.revision}`, method: 'PUT' }, props));
8
- }
9
- /**
10
- * For a revision stored in Git, lastObjectId and lastCommitId of the version being edited are required.
11
- */
12
- export function useSaveProbeTemplateRevisionV3Mutation(props, options) {
13
- return useMutation((mutateProps) => saveProbeTemplateRevisionV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,31 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
- import type { SharedError } from '../schemas/SharedError';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface SetDefaultProbeTemplateRevisionV3MutationPathParams {
6
- identity: string;
7
- revision: number;
8
- }
9
- export interface SetDefaultProbeTemplateRevisionV3MutationQueryParams {
10
- accountIdentifier: string;
11
- correlationID?: string;
12
- hubIdentity?: string;
13
- organizationIdentifier?: string;
14
- parentUniqueId?: string;
15
- projectIdentifier?: string;
16
- }
17
- export type SetDefaultProbeTemplateRevisionV3OkResponse = ChaosprobetemplateGetProbeTemplateResponse;
18
- export type SetDefaultProbeTemplateRevisionV3ErrorResponse = SharedError;
19
- export interface SetDefaultProbeTemplateRevisionV3Props extends SetDefaultProbeTemplateRevisionV3MutationPathParams, Omit<FetcherOptions<SetDefaultProbeTemplateRevisionV3MutationQueryParams, unknown>, 'url'> {
20
- queryParams: SetDefaultProbeTemplateRevisionV3MutationQueryParams;
21
- }
22
- export interface SetDefaultProbeTemplateRevisionV3ResponseContainer {
23
- body: SetDefaultProbeTemplateRevisionV3OkResponse;
24
- headers: Headers;
25
- }
26
- export declare function setDefaultProbeTemplateRevisionV3(props: SetDefaultProbeTemplateRevisionV3Props): Promise<SetDefaultProbeTemplateRevisionV3ResponseContainer>;
27
- export type SetDefaultProbeTemplateRevisionV3MutationProps<T extends keyof SetDefaultProbeTemplateRevisionV3Props> = Omit<SetDefaultProbeTemplateRevisionV3Props, T> & Partial<Pick<SetDefaultProbeTemplateRevisionV3Props, T>>;
28
- /**
29
- * Marks a probe template revision as the default
30
- */
31
- export declare function useSetDefaultProbeTemplateRevisionV3Mutation<T extends keyof SetDefaultProbeTemplateRevisionV3Props>(props: Pick<Partial<SetDefaultProbeTemplateRevisionV3Props>, T>, options?: Omit<UseMutationOptions<SetDefaultProbeTemplateRevisionV3ResponseContainer, SetDefaultProbeTemplateRevisionV3ErrorResponse, SetDefaultProbeTemplateRevisionV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SetDefaultProbeTemplateRevisionV3ResponseContainer, SharedError, SetDefaultProbeTemplateRevisionV3MutationProps<T>, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../custom-fetcher/index.js';
6
- export function setDefaultProbeTemplateRevisionV3(props) {
7
- return fetcher(Object.assign({ url: `/v3/probe-templates/${props.identity}/revisions/${props.revision}/default`, method: 'PUT' }, props));
8
- }
9
- /**
10
- * Marks a probe template revision as the default
11
- */
12
- export function useSetDefaultProbeTemplateRevisionV3Mutation(props, options) {
13
- return useMutation((mutateProps) => setDefaultProbeTemplateRevisionV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,31 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
- import type { SharedError } from '../schemas/SharedError';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface SetDefaultProbeTemplateVersionV3MutationPathParams {
6
- identity: string;
7
- versionLabel: string;
8
- }
9
- export interface SetDefaultProbeTemplateVersionV3MutationQueryParams {
10
- accountIdentifier: string;
11
- correlationID?: string;
12
- hubIdentity?: string;
13
- organizationIdentifier?: string;
14
- parentUniqueId?: string;
15
- projectIdentifier?: string;
16
- }
17
- export type SetDefaultProbeTemplateVersionV3OkResponse = ChaosprobetemplateGetProbeTemplateResponse;
18
- export type SetDefaultProbeTemplateVersionV3ErrorResponse = SharedError;
19
- export interface SetDefaultProbeTemplateVersionV3Props extends SetDefaultProbeTemplateVersionV3MutationPathParams, Omit<FetcherOptions<SetDefaultProbeTemplateVersionV3MutationQueryParams, unknown>, 'url'> {
20
- queryParams: SetDefaultProbeTemplateVersionV3MutationQueryParams;
21
- }
22
- export interface SetDefaultProbeTemplateVersionV3ResponseContainer {
23
- body: SetDefaultProbeTemplateVersionV3OkResponse;
24
- headers: Headers;
25
- }
26
- export declare function setDefaultProbeTemplateVersionV3(props: SetDefaultProbeTemplateVersionV3Props): Promise<SetDefaultProbeTemplateVersionV3ResponseContainer>;
27
- export type SetDefaultProbeTemplateVersionV3MutationProps<T extends keyof SetDefaultProbeTemplateVersionV3Props> = Omit<SetDefaultProbeTemplateVersionV3Props, T> & Partial<Pick<SetDefaultProbeTemplateVersionV3Props, T>>;
28
- /**
29
- * Marks a probe template version as the default
30
- */
31
- export declare function useSetDefaultProbeTemplateVersionV3Mutation<T extends keyof SetDefaultProbeTemplateVersionV3Props>(props: Pick<Partial<SetDefaultProbeTemplateVersionV3Props>, T>, options?: Omit<UseMutationOptions<SetDefaultProbeTemplateVersionV3ResponseContainer, SetDefaultProbeTemplateVersionV3ErrorResponse, SetDefaultProbeTemplateVersionV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SetDefaultProbeTemplateVersionV3ResponseContainer, SharedError, SetDefaultProbeTemplateVersionV3MutationProps<T>, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../custom-fetcher/index.js';
6
- export function setDefaultProbeTemplateVersionV3(props) {
7
- return fetcher(Object.assign({ url: `/v3/probe-templates/${props.identity}/versions/${props.versionLabel}/default`, method: 'PUT' }, props));
8
- }
9
- /**
10
- * Marks a probe template version as the default
11
- */
12
- export function useSetDefaultProbeTemplateVersionV3Mutation(props, options) {
13
- return useMutation((mutateProps) => setDefaultProbeTemplateVersionV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,36 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { ChaosprobetemplateGetProbeTemplateResponse } from '../schemas/ChaosprobetemplateGetProbeTemplateResponse';
3
- import type { SharedError } from '../schemas/SharedError';
4
- import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
- export interface UpdateProbeTemplateGitMetadataV3MutationPathParams {
6
- identity: string;
7
- revision: number;
8
- }
9
- export interface UpdateProbeTemplateGitMetadataV3MutationQueryParams {
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 UpdateProbeTemplateGitMetadataV3OkResponse = ChaosprobetemplateGetProbeTemplateResponse;
23
- export type UpdateProbeTemplateGitMetadataV3ErrorResponse = SharedError;
24
- export interface UpdateProbeTemplateGitMetadataV3Props extends UpdateProbeTemplateGitMetadataV3MutationPathParams, Omit<FetcherOptions<UpdateProbeTemplateGitMetadataV3MutationQueryParams, unknown>, 'url'> {
25
- queryParams: UpdateProbeTemplateGitMetadataV3MutationQueryParams;
26
- }
27
- export interface UpdateProbeTemplateGitMetadataV3ResponseContainer {
28
- body: UpdateProbeTemplateGitMetadataV3OkResponse;
29
- headers: Headers;
30
- }
31
- export declare function updateProbeTemplateGitMetadataV3(props: UpdateProbeTemplateGitMetadataV3Props): Promise<UpdateProbeTemplateGitMetadataV3ResponseContainer>;
32
- export type UpdateProbeTemplateGitMetadataV3MutationProps<T extends keyof UpdateProbeTemplateGitMetadataV3Props> = Omit<UpdateProbeTemplateGitMetadataV3Props, T> & Partial<Pick<UpdateProbeTemplateGitMetadataV3Props, T>>;
33
- /**
34
- * The file at the new location must already exist and describe this revision.
35
- */
36
- export declare function useUpdateProbeTemplateGitMetadataV3Mutation<T extends keyof UpdateProbeTemplateGitMetadataV3Props>(props: Pick<Partial<UpdateProbeTemplateGitMetadataV3Props>, T>, options?: Omit<UseMutationOptions<UpdateProbeTemplateGitMetadataV3ResponseContainer, UpdateProbeTemplateGitMetadataV3ErrorResponse, UpdateProbeTemplateGitMetadataV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateProbeTemplateGitMetadataV3ResponseContainer, SharedError, UpdateProbeTemplateGitMetadataV3MutationProps<T>, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../custom-fetcher/index.js';
6
- export function updateProbeTemplateGitMetadataV3(props) {
7
- return fetcher(Object.assign({ url: `/v3/probe-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 useUpdateProbeTemplateGitMetadataV3Mutation(props, options) {
13
- return useMutation((mutateProps) => updateProbeTemplateGitMetadataV3(Object.assign(Object.assign({}, props), mutateProps)), options);
14
- }
@@ -1,9 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};
@@ -1,19 +0,0 @@
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 is the internal revision number to import as; 0 assigns one
11
- * (see importRevision).
12
- */
13
- revision?: number;
14
- /**
15
- * VersionLabel, when set, must equal the file's versionLabel (platform
16
- * import checks requested metadata against the file).
17
- */
18
- versionLabel?: string;
19
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};
@@ -1,10 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};
@@ -1 +0,0 @@
1
- export type EntityStoreType = 'INLINE' | 'REMOTE';
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};
@@ -1,4 +0,0 @@
1
- export interface EntityValidityDetails {
2
- invalidYaml?: string;
3
- valid?: boolean;
4
- }
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};
@@ -1 +0,0 @@
1
- export type ResolveSource = 'cache' | 'last_synced' | 'live';
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};
@@ -1,10 +0,0 @@
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
- }
@@ -1,16 +0,0 @@
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
- }
@@ -1 +0,0 @@
1
- export type ScmCacheState = 'STALE_CACHE' | 'UNKNOWN' | 'VALID_CACHE';
@@ -1,4 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- export {};
@@ -1,39 +0,0 @@
1
- import type { EntityDetails } from '../schemas/EntityDetails';
2
- import type { ProbeInfrastructureType } from '../schemas/ProbeInfrastructureType';
3
- import type { TemplateInput } from '../schemas/TemplateInput';
4
- import type { ProbeProbeTemplateProperties } from '../schemas/ProbeProbeTemplateProperties';
5
- import type { ProbeRuleDetails } from '../schemas/ProbeRuleDetails';
6
- import type { ProbeProbeTemplateRunProperties } from '../schemas/ProbeProbeTemplateRunProperties';
7
- import type { EntityStoreType } from '../schemas/EntityStoreType';
8
- import type { ProbeProbeType } from '../schemas/ProbeProbeType';
9
- import type { TemplateVariable } from '../schemas/TemplateVariable';
10
- export interface V3SaveRevisionRequest {
11
- description?: string;
12
- gitDetails?: EntityDetails;
13
- hubRef?: string;
14
- identity?: string;
15
- infrastructureType?: ProbeInfrastructureType;
16
- inputs?: TemplateInput[];
17
- isDefault?: boolean;
18
- isRemoved?: boolean;
19
- name: string;
20
- probeProperties?: ProbeProbeTemplateProperties;
21
- revision?: number;
22
- ruleDetails?: ProbeRuleDetails;
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;
29
- tags?: string[];
30
- type?: ProbeProbeType;
31
- variables?: TemplateVariable[];
32
- /**
33
- * VersionLabel names the revision (platform versionLabel). Optional on
34
- * create and save-as-new-revision (defaults to the revision number),
35
- * immutable afterwards. Kept out of the stored `template` YAML so an
36
- * edited manifest cannot carry an old label into a new revision.
37
- */
38
- versionLabel?: string;
39
- }