@harnessio/react-chaos-manager-client 1.91.7-beta.0 → 1.91.7
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.
- package/dist/chaos-manager/src/services/hooks/useCreateProbeTemplateMutation.d.ts +0 -9
- package/dist/chaos-manager/src/services/hooks/useGetProbeTemplateQuery.d.ts +1 -6
- package/dist/chaos-manager/src/services/hooks/useListActionsQuery.d.ts +2 -0
- package/dist/chaos-manager/src/services/hooks/useListChaosHubQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useListChaosServicesQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useListRiskRulesQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useListRiskScanRisksQuery.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useListRiskScansQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useStopAllChaosExperimentsV3Mutation.d.ts +26 -0
- package/dist/chaos-manager/src/services/hooks/useStopAllChaosExperimentsV3Mutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.d.ts +1 -1
- package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.js +1 -1
- package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateMutation.d.ts +0 -9
- package/dist/chaos-manager/src/services/index.d.ts +5 -19
- package/dist/chaos-manager/src/services/index.js +1 -5
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesExecutionOutput.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunChaosExperimentRun.d.ts +0 -5
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2ChaosHubResponse.d.ts +0 -9
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.d.ts +0 -5
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2CreateHubRequest.js +3 -0
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2GetHubResponse.d.ts +0 -9
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2UpdateHubRequest.d.ts +0 -6
- package/dist/chaos-manager/src/services/schemas/Chaoshubv2UpdateHubRequest.js +3 -0
- package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateProbeTemplate.d.ts +0 -8
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsGetExperimentRunResponse.d.ts +0 -5
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentFailure.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsStopAllExperimentsResponse.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsStoppedExperimentRun.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobetemplateChaosProbeTemplate.d.ts +0 -27
- package/dist/chaos-manager/src/services/schemas/RiskRiskRuleSpec.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksRiskStatus.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/ScannedrisksServiceRiskSummaryQuery.d.ts +4 -0
- package/package.json +1 -1
- package/dist/chaos-manager/src/services/hooks/useImportProbeTemplateMutation.d.ts +0 -32
- package/dist/chaos-manager/src/services/hooks/useImportProbeTemplateMutation.js +0 -14
- package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigMutation.d.ts +0 -35
- package/dist/chaos-manager/src/services/hooks/useMoveProbeTemplateConfigMutation.js +0 -14
- package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateMutation.d.ts +0 -29
- package/dist/chaos-manager/src/services/hooks/useRefreshProbeTemplateMutation.js +0 -14
- package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataMutation.d.ts +0 -34
- package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataMutation.js +0 -14
- package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateRevisionMutation.d.ts +0 -36
- package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateRevisionMutation.js +0 -14
- package/dist/chaos-manager/src/services/schemas/ChaosHubGitDefaults.d.ts +0 -9
- package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateImportProbeTemplateRequest.d.ts +0 -13
- package/dist/chaos-manager/src/services/schemas/EntityDetails.d.ts +0 -10
- package/dist/chaos-manager/src/services/schemas/EntityDetails.js +0 -4
- package/dist/chaos-manager/src/services/schemas/EntityStoreType.d.ts +0 -1
- package/dist/chaos-manager/src/services/schemas/EntityStoreType.js +0 -4
- package/dist/chaos-manager/src/services/schemas/EntityValidityDetails.d.ts +0 -4
- package/dist/chaos-manager/src/services/schemas/EntityValidityDetails.js +0 -4
- package/dist/chaos-manager/src/services/schemas/ResolveSource.d.ts +0 -1
- package/dist/chaos-manager/src/services/schemas/ResolveSource.js +0 -4
- package/dist/chaos-manager/src/services/schemas/ResolveUsed.d.ts +0 -10
- package/dist/chaos-manager/src/services/schemas/ScmCacheInfo.d.ts +0 -16
- package/dist/chaos-manager/src/services/schemas/ScmCacheInfo.js +0 -1
- package/dist/chaos-manager/src/services/schemas/ScmCacheState.d.ts +0 -1
- package/dist/chaos-manager/src/services/schemas/ScmCacheState.js +0 -4
- /package/dist/chaos-manager/src/services/schemas/{ChaosHubGitDefaults.js → ExperimentrunsStopAllExperimentFailure.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ResolveUsed.js → ExperimentrunsStopAllExperimentsResponse.js} +0 -0
- /package/dist/chaos-manager/src/services/schemas/{ChaosprobetemplateImportProbeTemplateRequest.js → ExperimentrunsStoppedExperimentRun.js} +0 -0
|
@@ -6,15 +6,6 @@ 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;
|
|
18
9
|
}
|
|
19
10
|
export type CreateProbeTemplateRequestBody = ChaosprobetemplateProbeTemplate;
|
|
20
11
|
export type CreateProbeTemplateOkResponse = ChaosprobetemplateProbeTemplate;
|
|
@@ -11,15 +11,10 @@ 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;
|
|
19
14
|
}
|
|
20
15
|
export type GetProbeTemplateOkResponse = ChaosprobetemplateGetProbeTemplateResponse;
|
|
21
16
|
export type GetProbeTemplateErrorResponse = ApiRestError;
|
|
22
|
-
export interface GetProbeTemplateProps extends GetProbeTemplateQueryPathParams, Omit<FetcherOptions<GetProbeTemplateQueryQueryParams, unknown
|
|
17
|
+
export interface GetProbeTemplateProps extends GetProbeTemplateQueryPathParams, Omit<FetcherOptions<GetProbeTemplateQueryQueryParams, unknown>, 'url'> {
|
|
23
18
|
queryParams: GetProbeTemplateQueryQueryParams;
|
|
24
19
|
}
|
|
25
20
|
export interface GetProbeTemplateResponseContainer {
|
|
@@ -19,6 +19,8 @@ export interface ListActionsQueryQueryParams {
|
|
|
19
19
|
infraType?: string;
|
|
20
20
|
entityType?: string;
|
|
21
21
|
includeAllScope?: string;
|
|
22
|
+
sortField?: 'createdAt' | 'identity' | 'infrastructureType' | 'lastUpdated' | 'name' | 'type';
|
|
23
|
+
sortAscending?: boolean;
|
|
22
24
|
}
|
|
23
25
|
export type ListActionsOkResponse = ActionsListActionTemplateResponse;
|
|
24
26
|
export type ListActionsErrorResponse = ApiRestError;
|
|
@@ -22,6 +22,7 @@ export interface ListChaosServicesQueryQueryParams {
|
|
|
22
22
|
probeIds?: string;
|
|
23
23
|
projectIdentifier?: string;
|
|
24
24
|
search?: string;
|
|
25
|
+
serviceType?: 'AmazonApplicationLoadBalancer' | 'AmazonClassicLoadBalancer' | 'AmazonEC2Instance' | 'AmazonLambda' | 'AmazonNetworkLoadBalancer' | 'AmazonRelationalDatabaseService' | 'CodeRepository' | 'Kubernetes' | 'KubernetesNode' | 'KubernetesService' | 'KubernetesWorkload' | 'LinuxVM' | 'LinuxVMProcess' | 'Other' | 'WindowsVM' | 'WindowsVMProcess';
|
|
25
26
|
sortAscending?: boolean;
|
|
26
27
|
sortField?: 'createdAt' | 'experimentName' | 'lastExecuted' | 'lastUpdated' | 'name';
|
|
27
28
|
tags?: string;
|
|
@@ -29,7 +29,7 @@ export interface ListRiskScanRisksQueryQueryParams {
|
|
|
29
29
|
severity?: 'Critical' | 'High' | 'Low' | 'Medium';
|
|
30
30
|
sortAscending?: boolean;
|
|
31
31
|
sortField?: 'firstDetected' | 'lastDetected' | 'name' | 'occurrenceCount' | 'severity';
|
|
32
|
-
status?: 'Ignored' | 'InProgress' | 'Open' | 'Resolved';
|
|
32
|
+
status?: 'Ignored' | 'InProgress' | 'Invalid' | 'Open' | 'Resolved';
|
|
33
33
|
tags?: string;
|
|
34
34
|
validationType?: 'Confirmed' | 'Passive';
|
|
35
35
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { ExperimentrunsStopAllExperimentsResponse } from '../schemas/ExperimentrunsStopAllExperimentsResponse';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface StopAllChaosExperimentsV3MutationQueryParams {
|
|
6
|
+
accountIdentifier: string;
|
|
7
|
+
correlationID?: string;
|
|
8
|
+
organizationIdentifier?: string;
|
|
9
|
+
parentUniqueId?: string;
|
|
10
|
+
projectIdentifier?: string;
|
|
11
|
+
}
|
|
12
|
+
export type StopAllChaosExperimentsV3OkResponse = ExperimentrunsStopAllExperimentsResponse;
|
|
13
|
+
export type StopAllChaosExperimentsV3ErrorResponse = SharedError;
|
|
14
|
+
export interface StopAllChaosExperimentsV3Props extends Omit<FetcherOptions<StopAllChaosExperimentsV3MutationQueryParams, unknown>, 'url'> {
|
|
15
|
+
queryParams: StopAllChaosExperimentsV3MutationQueryParams;
|
|
16
|
+
}
|
|
17
|
+
export interface StopAllChaosExperimentsV3ResponseContainer {
|
|
18
|
+
body: StopAllChaosExperimentsV3OkResponse;
|
|
19
|
+
headers: Headers;
|
|
20
|
+
}
|
|
21
|
+
export declare function stopAllChaosExperimentsV3(props: StopAllChaosExperimentsV3Props): Promise<StopAllChaosExperimentsV3ResponseContainer>;
|
|
22
|
+
export type StopAllChaosExperimentsV3MutationProps<T extends keyof StopAllChaosExperimentsV3Props> = Omit<StopAllChaosExperimentsV3Props, T> & Partial<Pick<StopAllChaosExperimentsV3Props, T>>;
|
|
23
|
+
/**
|
|
24
|
+
* Stops every experiment run in the Running or Queued phase for the requested account, organization, and project. A run that fails to stop is reported in the response and does not prevent the remaining runs from being stopped.
|
|
25
|
+
*/
|
|
26
|
+
export declare function useStopAllChaosExperimentsV3Mutation<T extends keyof StopAllChaosExperimentsV3Props>(props: Pick<Partial<StopAllChaosExperimentsV3Props>, T>, options?: Omit<UseMutationOptions<StopAllChaosExperimentsV3ResponseContainer, StopAllChaosExperimentsV3ErrorResponse, StopAllChaosExperimentsV3MutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<StopAllChaosExperimentsV3ResponseContainer, SharedError, StopAllChaosExperimentsV3MutationProps<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 stopAllChaosExperimentsV3(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/experiment-runs/stop-all`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Stops every experiment run in the Running or Queued phase for the requested account, organization, and project. A run that fails to stop is reported in the response and does not prevent the remaining runs from being stopped.
|
|
11
|
+
*/
|
|
12
|
+
export function useStopAllChaosExperimentsV3Mutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => stopAllChaosExperimentsV3(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
package/dist/chaos-manager/src/services/hooks/useSummarizeScannedRisksByServiceMutation.d.ts
CHANGED
|
@@ -24,6 +24,6 @@ export interface SummarizeScannedRisksByServiceResponseContainer {
|
|
|
24
24
|
export declare function summarizeScannedRisksByService(props: SummarizeScannedRisksByServiceProps): Promise<SummarizeScannedRisksByServiceResponseContainer>;
|
|
25
25
|
export type SummarizeScannedRisksByServiceMutationProps<T extends keyof SummarizeScannedRisksByServiceProps> = Omit<SummarizeScannedRisksByServiceProps, T> & Partial<Pick<SummarizeScannedRisksByServiceProps, T>>;
|
|
26
26
|
/**
|
|
27
|
-
* Returns aggregated risk counts (total, critical, high, medium, low) per target service.
|
|
27
|
+
* Returns aggregated risk counts (total, critical, high, medium, low) per target service. The search field filters services by a case-insensitive substring of the service name.
|
|
28
28
|
*/
|
|
29
29
|
export declare function useSummarizeScannedRisksByServiceMutation<T extends keyof SummarizeScannedRisksByServiceProps>(props: Pick<Partial<SummarizeScannedRisksByServiceProps>, T>, options?: Omit<UseMutationOptions<SummarizeScannedRisksByServiceResponseContainer, SummarizeScannedRisksByServiceErrorResponse, SummarizeScannedRisksByServiceMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SummarizeScannedRisksByServiceResponseContainer, SharedError, SummarizeScannedRisksByServiceMutationProps<T>, unknown>;
|
|
@@ -7,7 +7,7 @@ export function summarizeScannedRisksByService(props) {
|
|
|
7
7
|
return fetcher(Object.assign({ url: `/v3/scanned-risks/summary`, method: 'POST' }, props));
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* Returns aggregated risk counts (total, critical, high, medium, low) per target service.
|
|
10
|
+
* Returns aggregated risk counts (total, critical, high, medium, low) per target service. The search field filters services by a case-insensitive substring of the service name.
|
|
11
11
|
*/
|
|
12
12
|
export function useSummarizeScannedRisksByServiceMutation(props, options) {
|
|
13
13
|
return useMutation((mutateProps) => summarizeScannedRisksByService(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
@@ -10,15 +10,6 @@ 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;
|
|
22
13
|
}
|
|
23
14
|
export type UpdateProbeTemplateRequestBody = ChaosprobetemplateProbeTemplate;
|
|
24
15
|
export type UpdateProbeTemplateOkResponse = ChaosprobetemplateProbeTemplate;
|
|
@@ -312,8 +312,6 @@ 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';
|
|
317
315
|
export type { InternalAbortRiskScanErrorResponse, InternalAbortRiskScanMutationProps, InternalAbortRiskScanMutationQueryParams, InternalAbortRiskScanOkResponse, InternalAbortRiskScanProps, InternalAbortRiskScanRequestBody, } from './hooks/useInternalAbortRiskScanMutation';
|
|
318
316
|
export { internalAbortRiskScan, useInternalAbortRiskScanMutation, } from './hooks/useInternalAbortRiskScanMutation';
|
|
319
317
|
export type { ListActionMetadataErrorResponse, ListActionMetadataOkResponse, ListActionMetadataProps, ListActionMetadataQueryQueryParams, ListActionMetadataRequestBody, } from './hooks/useListActionMetadataQuery';
|
|
@@ -462,8 +460,6 @@ export type { ListVariablesInActionTemplateErrorResponse, ListVariablesInActionT
|
|
|
462
460
|
export { listVariablesInActionTemplate, useListVariablesInActionTemplateQuery, } from './hooks/useListVariablesInActionTemplateQuery';
|
|
463
461
|
export type { ListVariablesInProbeTemplateErrorResponse, ListVariablesInProbeTemplateOkResponse, ListVariablesInProbeTemplateProps, ListVariablesInProbeTemplateQueryPathParams, ListVariablesInProbeTemplateQueryQueryParams, } from './hooks/useListVariablesInProbeTemplateQuery';
|
|
464
462
|
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';
|
|
467
463
|
export type { OnboardServicesErrorResponse, OnboardServicesMutationPathParams, OnboardServicesMutationProps, OnboardServicesMutationQueryParams, OnboardServicesOkResponse, OnboardServicesProps, OnboardServicesRequestBody, } from './hooks/useOnboardServicesMutation';
|
|
468
464
|
export { onboardServices, useOnboardServicesMutation } from './hooks/useOnboardServicesMutation';
|
|
469
465
|
export type { OnboardingConfirmDiscoveryErrorResponse, OnboardingConfirmDiscoveryMutationPathParams, OnboardingConfirmDiscoveryMutationProps, OnboardingConfirmDiscoveryMutationQueryParams, OnboardingConfirmDiscoveryOkResponse, OnboardingConfirmDiscoveryProps, } from './hooks/useOnboardingConfirmDiscoveryMutation';
|
|
@@ -490,8 +486,6 @@ export type { ProcessTemplateErrorResponse, ProcessTemplateMutationProps, Proces
|
|
|
490
486
|
export { processTemplate, useProcessTemplateMutation } from './hooks/useProcessTemplateMutation';
|
|
491
487
|
export type { RecommendationEventErrorResponse, RecommendationEventMutationProps, RecommendationEventOkResponse, RecommendationEventProps, RecommendationEventRequestBody, } from './hooks/useRecommendationEventMutation';
|
|
492
488
|
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';
|
|
495
489
|
export type { RegisterInfraV2ErrorResponse, RegisterInfraV2MutationProps, RegisterInfraV2MutationQueryParams, RegisterInfraV2OkResponse, RegisterInfraV2Props, RegisterInfraV2RequestBody, } from './hooks/useRegisterInfraV2Mutation';
|
|
496
490
|
export { registerInfraV2, useRegisterInfraV2Mutation } from './hooks/useRegisterInfraV2Mutation';
|
|
497
491
|
export type { RegisterLegacyKubernetesInfraErrorResponse, RegisterLegacyKubernetesInfraMutationProps, RegisterLegacyKubernetesInfraMutationQueryParams, RegisterLegacyKubernetesInfraOkResponse, RegisterLegacyKubernetesInfraProps, RegisterLegacyKubernetesInfraRequestBody, } from './hooks/useRegisterLegacyKubernetesInfraMutation';
|
|
@@ -522,6 +516,8 @@ export type { SaveChaosV2ExperimentErrorResponse, SaveChaosV2ExperimentMutationP
|
|
|
522
516
|
export { saveChaosV2Experiment, useSaveChaosV2ExperimentMutation, } from './hooks/useSaveChaosV2ExperimentMutation';
|
|
523
517
|
export type { SkipOnboardingErrorResponse, SkipOnboardingMutationPathParams, SkipOnboardingMutationProps, SkipOnboardingMutationQueryParams, SkipOnboardingOkResponse, SkipOnboardingProps, } from './hooks/useSkipOnboardingMutation';
|
|
524
518
|
export { skipOnboarding, useSkipOnboardingMutation } from './hooks/useSkipOnboardingMutation';
|
|
519
|
+
export type { StopAllChaosExperimentsV3ErrorResponse, StopAllChaosExperimentsV3MutationProps, StopAllChaosExperimentsV3MutationQueryParams, StopAllChaosExperimentsV3OkResponse, StopAllChaosExperimentsV3Props, } from './hooks/useStopAllChaosExperimentsV3Mutation';
|
|
520
|
+
export { stopAllChaosExperimentsV3, useStopAllChaosExperimentsV3Mutation, } from './hooks/useStopAllChaosExperimentsV3Mutation';
|
|
525
521
|
export type { StopChaosExperimentV3ErrorResponse, StopChaosExperimentV3MutationPathParams, StopChaosExperimentV3MutationProps, StopChaosExperimentV3MutationQueryParams, StopChaosExperimentV3OkResponse, StopChaosExperimentV3Props, StopChaosExperimentV3RequestBody, } from './hooks/useStopChaosExperimentV3Mutation';
|
|
526
522
|
export { stopChaosExperimentV3, useStopChaosExperimentV3Mutation, } from './hooks/useStopChaosExperimentV3Mutation';
|
|
527
523
|
export type { StopChaosV2ExperimentErrorResponse, StopChaosV2ExperimentMutationPathParams, StopChaosV2ExperimentMutationProps, StopChaosV2ExperimentMutationQueryParams, StopChaosV2ExperimentOkResponse, StopChaosV2ExperimentProps, } from './hooks/useStopChaosV2ExperimentMutation';
|
|
@@ -586,12 +582,8 @@ export type { UpdateNoteErrorResponse, UpdateNoteMutationProps, UpdateNoteMutati
|
|
|
586
582
|
export { updateNote, useUpdateNoteMutation } from './hooks/useUpdateNoteMutation';
|
|
587
583
|
export type { UpdateProbeErrorResponse, UpdateProbeMutationPathParams, UpdateProbeMutationProps, UpdateProbeMutationQueryParams, UpdateProbeOkResponse, UpdateProbeProps, UpdateProbeRequestBody, } from './hooks/useUpdateProbeMutation';
|
|
588
584
|
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';
|
|
591
585
|
export type { UpdateProbeTemplateErrorResponse, UpdateProbeTemplateMutationPathParams, UpdateProbeTemplateMutationProps, UpdateProbeTemplateMutationQueryParams, UpdateProbeTemplateOkResponse, UpdateProbeTemplateProps, UpdateProbeTemplateRequestBody, } from './hooks/useUpdateProbeTemplateMutation';
|
|
592
586
|
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';
|
|
595
587
|
export type { UpdateRecommendationStatusErrorResponse, UpdateRecommendationStatusMutationProps, UpdateRecommendationStatusMutationQueryParams, UpdateRecommendationStatusOkResponse, UpdateRecommendationStatusProps, } from './hooks/useUpdateRecommendationStatusMutation';
|
|
596
588
|
export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
|
|
597
589
|
export type { UpdateRiskErrorResponse, UpdateRiskMutationPathParams, UpdateRiskMutationProps, UpdateRiskMutationQueryParams, UpdateRiskOkResponse, UpdateRiskProps, UpdateRiskRequestBody, } from './hooks/useUpdateRiskMutation';
|
|
@@ -678,7 +670,6 @@ export type { ChaosExperimentWeightagesInput } from './schemas/ChaosExperimentWe
|
|
|
678
670
|
export type { ChaosExperimentWorkflowRevision } from './schemas/ChaosExperimentWorkflowRevision';
|
|
679
671
|
export type { ChaosHubAuthType } from './schemas/ChaosHubAuthType';
|
|
680
672
|
export type { ChaosHubConnectorScope } from './schemas/ChaosHubConnectorScope';
|
|
681
|
-
export type { ChaosHubGitDefaults } from './schemas/ChaosHubGitDefaults';
|
|
682
673
|
export type { ChaosInfrastructureV2ChaosInfraV2 } from './schemas/ChaosInfrastructureV2ChaosInfraV2';
|
|
683
674
|
export type { ChaosInfrastructureV2ChaosInfraV2Spec } from './schemas/ChaosInfrastructureV2ChaosInfraV2Spec';
|
|
684
675
|
export type { ChaosInfrastructureV2HelperDaemonSetConfig } from './schemas/ChaosInfrastructureV2HelperDaemonSetConfig';
|
|
@@ -794,7 +785,6 @@ export type { Chaoshubv2GetHubResponse } from './schemas/Chaoshubv2GetHubRespons
|
|
|
794
785
|
export type { Chaoshubv2ListHubResponse } from './schemas/Chaoshubv2ListHubResponse';
|
|
795
786
|
export type { Chaoshubv2UpdateHubRequest } from './schemas/Chaoshubv2UpdateHubRequest';
|
|
796
787
|
export type { ChaosprobetemplateGetProbeTemplateResponse } from './schemas/ChaosprobetemplateGetProbeTemplateResponse';
|
|
797
|
-
export type { ChaosprobetemplateImportProbeTemplateRequest } from './schemas/ChaosprobetemplateImportProbeTemplateRequest';
|
|
798
788
|
export type { ChaosprobetemplateListProbeTemplateResponse } from './schemas/ChaosprobetemplateListProbeTemplateResponse';
|
|
799
789
|
export type { ChaosprobetemplateListReferencedByResponse } from './schemas/ChaosprobetemplateListReferencedByResponse';
|
|
800
790
|
export type { ChaosprobetemplateProbeTemplate } from './schemas/ChaosprobetemplateProbeTemplate';
|
|
@@ -886,9 +876,6 @@ export type { DatabaseResourceRequirements } from './schemas/DatabaseResourceReq
|
|
|
886
876
|
export type { DatabaseResourceWatchConfig } from './schemas/DatabaseResourceWatchConfig';
|
|
887
877
|
export type { DatabaseServiceCollection } from './schemas/DatabaseServiceCollection';
|
|
888
878
|
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';
|
|
892
879
|
export type { ExecutionActionData } from './schemas/ExecutionActionData';
|
|
893
880
|
export type { ExecutionChaosData } from './schemas/ExecutionChaosData';
|
|
894
881
|
export type { ExecutionChaosExecutionNode } from './schemas/ExecutionChaosExecutionNode';
|
|
@@ -948,8 +935,11 @@ export type { ExperimentrunsListExperimentRunItem } from './schemas/Experimentru
|
|
|
948
935
|
export type { ExperimentrunsListExperimentRunsResponse } from './schemas/ExperimentrunsListExperimentRunsResponse';
|
|
949
936
|
export type { ExperimentrunsRunBody } from './schemas/ExperimentrunsRunBody';
|
|
950
937
|
export type { ExperimentrunsRunExperimentResponse } from './schemas/ExperimentrunsRunExperimentResponse';
|
|
938
|
+
export type { ExperimentrunsStopAllExperimentFailure } from './schemas/ExperimentrunsStopAllExperimentFailure';
|
|
939
|
+
export type { ExperimentrunsStopAllExperimentsResponse } from './schemas/ExperimentrunsStopAllExperimentsResponse';
|
|
951
940
|
export type { ExperimentrunsStopExperimentBody } from './schemas/ExperimentrunsStopExperimentBody';
|
|
952
941
|
export type { ExperimentrunsStopExperimentResponse } from './schemas/ExperimentrunsStopExperimentResponse';
|
|
942
|
+
export type { ExperimentrunsStoppedExperimentRun } from './schemas/ExperimentrunsStoppedExperimentRun';
|
|
953
943
|
export type { ExperimentsAuditInfo } from './schemas/ExperimentsAuditInfo';
|
|
954
944
|
export type { ExperimentsCreateRequest } from './schemas/ExperimentsCreateRequest';
|
|
955
945
|
export type { ExperimentsCreateResponse } from './schemas/ExperimentsCreateResponse';
|
|
@@ -1337,8 +1327,6 @@ export type { RecommendationsListRecommendationsRequest } from './schemas/Recomm
|
|
|
1337
1327
|
export type { RecommendationsListRecommendationsResponse } from './schemas/RecommendationsListRecommendationsResponse';
|
|
1338
1328
|
export type { RecommendationsPipelineAddExperimentResponse } from './schemas/RecommendationsPipelineAddExperimentResponse';
|
|
1339
1329
|
export type { RecommendationsRunActionResponse } from './schemas/RecommendationsRunActionResponse';
|
|
1340
|
-
export type { ResolveSource } from './schemas/ResolveSource';
|
|
1341
|
-
export type { ResolveUsed } from './schemas/ResolveUsed';
|
|
1342
1330
|
export type { ResourceQuantity } from './schemas/ResourceQuantity';
|
|
1343
1331
|
export type { RiskCategory } from './schemas/RiskCategory';
|
|
1344
1332
|
export type { RiskCdService } from './schemas/RiskCdService';
|
|
@@ -1437,8 +1425,6 @@ export type { ScannedrisksServiceRiskSummary } from './schemas/ScannedrisksServi
|
|
|
1437
1425
|
export type { ScannedrisksServiceRiskSummaryQuery } from './schemas/ScannedrisksServiceRiskSummaryQuery';
|
|
1438
1426
|
export type { ScannedrisksServiceRiskSummaryResponse } from './schemas/ScannedrisksServiceRiskSummaryResponse';
|
|
1439
1427
|
export type { ScannedrisksValidationType } from './schemas/ScannedrisksValidationType';
|
|
1440
|
-
export type { ScmCacheInfo } from './schemas/ScmCacheInfo';
|
|
1441
|
-
export type { ScmCacheState } from './schemas/ScmCacheState';
|
|
1442
1428
|
export type { SecurityGovernanceAccessControl } from './schemas/SecurityGovernanceAccessControl';
|
|
1443
1429
|
export type { SecurityGovernanceApplicationSpec } from './schemas/SecurityGovernanceApplicationSpec';
|
|
1444
1430
|
export type { SecurityGovernanceChaosServiceAccountSpec } from './schemas/SecurityGovernanceChaosServiceAccountSpec';
|
|
@@ -155,7 +155,6 @@ 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';
|
|
159
158
|
export { internalAbortRiskScan, useInternalAbortRiskScanMutation, } from './hooks/useInternalAbortRiskScanMutation';
|
|
160
159
|
export { listActionMetadata, useListActionMetadataQuery } from './hooks/useListActionMetadataQuery';
|
|
161
160
|
export { listActionReferencedBy, useListActionReferencedByQuery, } from './hooks/useListActionReferencedByQuery';
|
|
@@ -230,7 +229,6 @@ export { listTargetNetworkMaps, useListTargetNetworkMapsQuery, } from './hooks/u
|
|
|
230
229
|
export { listV2Onboarding, useListV2OnboardingQuery } from './hooks/useListV2OnboardingQuery';
|
|
231
230
|
export { listVariablesInActionTemplate, useListVariablesInActionTemplateQuery, } from './hooks/useListVariablesInActionTemplateQuery';
|
|
232
231
|
export { listVariablesInProbeTemplate, useListVariablesInProbeTemplateQuery, } from './hooks/useListVariablesInProbeTemplateQuery';
|
|
233
|
-
export { moveProbeTemplateConfig, useMoveProbeTemplateConfigMutation, } from './hooks/useMoveProbeTemplateConfigMutation';
|
|
234
232
|
export { onboardServices, useOnboardServicesMutation } from './hooks/useOnboardServicesMutation';
|
|
235
233
|
export { onboardingConfirmDiscovery, useOnboardingConfirmDiscoveryMutation, } from './hooks/useOnboardingConfirmDiscoveryMutation';
|
|
236
234
|
export { onboardingConfirmExperimentCreation, useOnboardingConfirmExperimentCreationMutation, } from './hooks/useOnboardingConfirmExperimentCreationMutation';
|
|
@@ -244,7 +242,6 @@ export { pipelineOnboardChaos, usePipelineOnboardChaosMutation, } from './hooks/
|
|
|
244
242
|
export { pipelineOnboardChaosStatus, usePipelineOnboardChaosStatusQuery, } from './hooks/usePipelineOnboardChaosStatusQuery';
|
|
245
243
|
export { processTemplate, useProcessTemplateMutation } from './hooks/useProcessTemplateMutation';
|
|
246
244
|
export { recommendationEvent, useRecommendationEventMutation, } from './hooks/useRecommendationEventMutation';
|
|
247
|
-
export { refreshProbeTemplate, useRefreshProbeTemplateMutation, } from './hooks/useRefreshProbeTemplateMutation';
|
|
248
245
|
export { registerInfraV2, useRegisterInfraV2Mutation } from './hooks/useRegisterInfraV2Mutation';
|
|
249
246
|
export { registerLegacyKubernetesInfra, useRegisterLegacyKubernetesInfraMutation, } from './hooks/useRegisterLegacyKubernetesInfraMutation';
|
|
250
247
|
export { registerMachineInfra, useRegisterMachineInfraMutation, } from './hooks/useRegisterMachineInfraMutation';
|
|
@@ -260,6 +257,7 @@ export { runChaosV2InternalApi, useRunChaosV2InternalApiMutation, } from './hook
|
|
|
260
257
|
export { runRecommendation, useRunRecommendationMutation, } from './hooks/useRunRecommendationMutation';
|
|
261
258
|
export { saveChaosV2Experiment, useSaveChaosV2ExperimentMutation, } from './hooks/useSaveChaosV2ExperimentMutation';
|
|
262
259
|
export { skipOnboarding, useSkipOnboardingMutation } from './hooks/useSkipOnboardingMutation';
|
|
260
|
+
export { stopAllChaosExperimentsV3, useStopAllChaosExperimentsV3Mutation, } from './hooks/useStopAllChaosExperimentsV3Mutation';
|
|
263
261
|
export { stopChaosExperimentV3, useStopChaosExperimentV3Mutation, } from './hooks/useStopChaosExperimentV3Mutation';
|
|
264
262
|
export { stopChaosV2Experiment, useStopChaosV2ExperimentMutation, } from './hooks/useStopChaosV2ExperimentMutation';
|
|
265
263
|
export { stopDrTest, useStopDrTestMutation } from './hooks/useStopDrTestMutation';
|
|
@@ -292,9 +290,7 @@ export { updateLegacyKubernetesChaosInfra, useUpdateLegacyKubernetesChaosInfraMu
|
|
|
292
290
|
export { updateMachineInfra, useUpdateMachineInfraMutation, } from './hooks/useUpdateMachineInfraMutation';
|
|
293
291
|
export { updateNote, useUpdateNoteMutation } from './hooks/useUpdateNoteMutation';
|
|
294
292
|
export { updateProbe, useUpdateProbeMutation } from './hooks/useUpdateProbeMutation';
|
|
295
|
-
export { updateProbeTemplateGitMetadata, useUpdateProbeTemplateGitMetadataMutation, } from './hooks/useUpdateProbeTemplateGitMetadataMutation';
|
|
296
293
|
export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
|
|
297
|
-
export { updateProbeTemplateRevision, useUpdateProbeTemplateRevisionMutation, } from './hooks/useUpdateProbeTemplateRevisionMutation';
|
|
298
294
|
export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
|
|
299
295
|
export { updateRisk, useUpdateRiskMutation } from './hooks/useUpdateRiskMutation';
|
|
300
296
|
export { updateRiskRule, useUpdateRiskRuleMutation } from './hooks/useUpdateRiskRuleMutation';
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { ExecutionChaosStepType } from '../schemas/ExecutionChaosStepType';
|
|
2
2
|
import type { ExecutionChaosStepStatus } from '../schemas/ExecutionChaosStepStatus';
|
|
3
3
|
export interface ChaosExecutionNodesExecutionOutput {
|
|
4
|
+
finishedAt?: number;
|
|
4
5
|
resourceType?: ExecutionChaosStepType;
|
|
6
|
+
/**
|
|
7
|
+
* Spec is the step definition parsed into its SDK type: *probev1.Probe,
|
|
8
|
+
* *experiment.Fault or *action.Action based on ResourceType.
|
|
9
|
+
*/
|
|
10
|
+
spec?: {};
|
|
5
11
|
status?: ExecutionChaosStepStatus;
|
|
6
12
|
}
|
|
@@ -3,7 +3,6 @@ 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';
|
|
7
6
|
import type { ChaosExperimentRunSecurityGovernanceNode } from '../schemas/ChaosExperimentRunSecurityGovernanceNode';
|
|
8
7
|
import type { TargetserviceServiceMetadata } from '../schemas/TargetserviceServiceMetadata';
|
|
9
8
|
import type { ChaosExperimentRunTemplateDetails } from '../schemas/ChaosExperimentRunTemplateDetails';
|
|
@@ -42,10 +41,6 @@ export interface ChaosExperimentRunChaosExperimentRun {
|
|
|
42
41
|
probes?: ChaosExperimentRunProbe[];
|
|
43
42
|
projectID?: string;
|
|
44
43
|
resiliencyScore?: number;
|
|
45
|
-
/**
|
|
46
|
-
* ResolvedSources records the Git content a run executed (ADR §9.3).
|
|
47
|
-
*/
|
|
48
|
-
resolvedSources?: ResolveUsed[];
|
|
49
44
|
revisionID?: string;
|
|
50
45
|
runSequence?: number;
|
|
51
46
|
securityGovernance?: ChaosExperimentRunSecurityGovernanceNode;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ChaosHubAuthType } from '../schemas/ChaosHubAuthType';
|
|
2
2
|
import type { ChaosHubConnectorScope } from '../schemas/ChaosHubConnectorScope';
|
|
3
|
-
import type { ChaosHubGitDefaults } from '../schemas/ChaosHubGitDefaults';
|
|
4
3
|
export interface Chaoshubv2ChaosHubResponse {
|
|
5
4
|
accountID: string;
|
|
6
5
|
actionTemplateCount?: number;
|
|
@@ -21,14 +20,6 @@ export interface Chaoshubv2ChaosHubResponse {
|
|
|
21
20
|
description?: string;
|
|
22
21
|
experimentTemplateCount?: number;
|
|
23
22
|
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;
|
|
32
23
|
hubId: string;
|
|
33
24
|
identity: string;
|
|
34
25
|
isDefault: boolean;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import type { ChaosHubGitDefaults } from '../schemas/ChaosHubGitDefaults';
|
|
2
1
|
export interface Chaoshubv2CreateHubRequest {
|
|
3
2
|
connectorRef?: string;
|
|
4
3
|
description?: string;
|
|
5
|
-
/**
|
|
6
|
-
* GitDefaults sets the hub's Git Experience defaults. Optional.
|
|
7
|
-
*/
|
|
8
|
-
gitDefaults?: ChaosHubGitDefaults;
|
|
9
4
|
identity: string;
|
|
10
5
|
name: string;
|
|
11
6
|
repoBranch?: string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ChaosHubAuthType } from '../schemas/ChaosHubAuthType';
|
|
2
2
|
import type { ChaosHubConnectorScope } from '../schemas/ChaosHubConnectorScope';
|
|
3
|
-
import type { ChaosHubGitDefaults } from '../schemas/ChaosHubGitDefaults';
|
|
4
3
|
export interface Chaoshubv2GetHubResponse {
|
|
5
4
|
accountID: string;
|
|
6
5
|
actionTemplateCount?: number;
|
|
@@ -21,14 +20,6 @@ export interface Chaoshubv2GetHubResponse {
|
|
|
21
20
|
description?: string;
|
|
22
21
|
experimentTemplateCount?: number;
|
|
23
22
|
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;
|
|
32
23
|
hubId: string;
|
|
33
24
|
identity: string;
|
|
34
25
|
isDefault: boolean;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import type { ChaosHubGitDefaults } from '../schemas/ChaosHubGitDefaults';
|
|
2
1
|
export interface Chaoshubv2UpdateHubRequest {
|
|
3
2
|
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;
|
|
9
3
|
name: string;
|
|
10
4
|
tags?: string[];
|
|
11
5
|
}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import type { EntityDetails } from '../schemas/EntityDetails';
|
|
2
1
|
import type { ProbeInfrastructureType } from '../schemas/ProbeInfrastructureType';
|
|
3
2
|
import type { TemplateInput } from '../schemas/TemplateInput';
|
|
4
3
|
import type { ProbeProbeTemplateProperties } from '../schemas/ProbeProbeTemplateProperties';
|
|
5
4
|
import type { ProbeRuleDetails } from '../schemas/ProbeRuleDetails';
|
|
6
5
|
import type { ProbeProbeTemplateRunProperties } from '../schemas/ProbeProbeTemplateRunProperties';
|
|
7
|
-
import type { EntityStoreType } from '../schemas/EntityStoreType';
|
|
8
6
|
import type { ProbeProbeType } from '../schemas/ProbeProbeType';
|
|
9
7
|
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
10
8
|
export interface ChaosprobetemplateProbeTemplate {
|
|
11
9
|
description?: string;
|
|
12
|
-
gitDetails?: EntityDetails;
|
|
13
10
|
hubRef?: string;
|
|
14
11
|
identity?: string;
|
|
15
12
|
infrastructureType?: ProbeInfrastructureType;
|
|
@@ -21,11 +18,6 @@ export interface ChaosprobetemplateProbeTemplate {
|
|
|
21
18
|
revision?: number;
|
|
22
19
|
ruleDetails?: ProbeRuleDetails;
|
|
23
20
|
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
21
|
tags?: string[];
|
|
30
22
|
type?: ProbeProbeType;
|
|
31
23
|
variables?: TemplateVariable[];
|
|
@@ -3,7 +3,6 @@ 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';
|
|
7
6
|
import type { ChaosExperimentRunSecurityGovernanceNode } from '../schemas/ChaosExperimentRunSecurityGovernanceNode';
|
|
8
7
|
import type { TargetserviceServiceMetadata } from '../schemas/TargetserviceServiceMetadata';
|
|
9
8
|
import type { ChaosExperimentRunTemplateDetails } from '../schemas/ChaosExperimentRunTemplateDetails';
|
|
@@ -52,10 +51,6 @@ export interface ExperimentrunsGetExperimentRunResponse {
|
|
|
52
51
|
probes?: ChaosExperimentRunProbe[];
|
|
53
52
|
projectID?: string;
|
|
54
53
|
resiliencyScore?: number;
|
|
55
|
-
/**
|
|
56
|
-
* ResolvedSources records the Git content a run executed (ADR §9.3).
|
|
57
|
-
*/
|
|
58
|
-
resolvedSources?: ResolveUsed[];
|
|
59
54
|
revisionID?: string;
|
|
60
55
|
runSequence?: number;
|
|
61
56
|
securityGovernance?: ChaosExperimentRunSecurityGovernanceNode;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ExperimentrunsStopAllExperimentFailure } from '../schemas/ExperimentrunsStopAllExperimentFailure';
|
|
2
|
+
import type { ExperimentrunsStoppedExperimentRun } from '../schemas/ExperimentrunsStoppedExperimentRun';
|
|
3
|
+
export interface ExperimentrunsStopAllExperimentsResponse {
|
|
4
|
+
/**
|
|
5
|
+
* correlation id is used to debug micro svc communication
|
|
6
|
+
*/
|
|
7
|
+
correlationID?: string;
|
|
8
|
+
failed?: ExperimentrunsStopAllExperimentFailure[];
|
|
9
|
+
stopped?: ExperimentrunsStoppedExperimentRun[];
|
|
10
|
+
stoppedCount?: number;
|
|
11
|
+
}
|
|
@@ -1,40 +1,17 @@
|
|
|
1
|
-
import type { ScmCacheInfo } from '../schemas/ScmCacheInfo';
|
|
2
1
|
import type { GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails } from '../schemas/GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails';
|
|
3
|
-
import type { EntityValidityDetails } from '../schemas/EntityValidityDetails';
|
|
4
|
-
import type { EntityDetails } from '../schemas/EntityDetails';
|
|
5
2
|
import type { ProbeInfrastructureType } from '../schemas/ProbeInfrastructureType';
|
|
6
3
|
import type { TemplateInput } from '../schemas/TemplateInput';
|
|
7
4
|
import type { ProbeProbeTemplateProperties } from '../schemas/ProbeProbeTemplateProperties';
|
|
8
5
|
import type { ProbeRuleDetails } from '../schemas/ProbeRuleDetails';
|
|
9
6
|
import type { ProbeProbeTemplateRunProperties } from '../schemas/ProbeProbeTemplateRunProperties';
|
|
10
|
-
import type { EntityStoreType } from '../schemas/EntityStoreType';
|
|
11
7
|
import type { ProbeProbeType } from '../schemas/ProbeProbeType';
|
|
12
8
|
import type { TemplateVariable } from '../schemas/TemplateVariable';
|
|
13
9
|
export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprobetemplateChaosProbeTemplate {
|
|
14
10
|
accountID: string;
|
|
15
|
-
cacheResponse?: ScmCacheInfo;
|
|
16
|
-
connectorRef?: string;
|
|
17
11
|
createdAt?: number;
|
|
18
12
|
createdBy?: string;
|
|
19
13
|
createdByUserDetails?: GithubComHarnessHceSaasGraphqlServerGraphModelUserDetails;
|
|
20
14
|
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;
|
|
38
15
|
hubRef?: string;
|
|
39
16
|
id?: string;
|
|
40
17
|
/**
|
|
@@ -50,22 +27,18 @@ export interface GithubComHarnessHceSaasGraphqlServerPkgDatabaseMongodbChaosprob
|
|
|
50
27
|
*/
|
|
51
28
|
isDefault?: boolean;
|
|
52
29
|
isEnterprise?: boolean;
|
|
53
|
-
isHarnessCodeRepo?: boolean;
|
|
54
30
|
isRemoved: boolean;
|
|
55
31
|
name: string;
|
|
56
32
|
orgID?: string;
|
|
57
33
|
parentUniqueId?: string;
|
|
58
34
|
probeProperties?: ProbeProbeTemplateProperties;
|
|
59
35
|
projectID?: string;
|
|
60
|
-
repoName?: string;
|
|
61
|
-
repoUrl?: string;
|
|
62
36
|
/**
|
|
63
37
|
* it increments every time a new version of fault is published
|
|
64
38
|
*/
|
|
65
39
|
revision?: number;
|
|
66
40
|
ruleDetails?: ProbeRuleDetails;
|
|
67
41
|
runProperties?: ProbeProbeTemplateRunProperties;
|
|
68
|
-
storeType?: EntityStoreType;
|
|
69
42
|
tags?: string[];
|
|
70
43
|
template?: string;
|
|
71
44
|
type?: ProbeProbeType;
|
|
@@ -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';
|
|
@@ -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
|
*/
|
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
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>;
|
|
@@ -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 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
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
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>;
|
|
@@ -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 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
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
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>;
|
|
@@ -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 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
|
-
}
|
package/dist/chaos-manager/src/services/hooks/useUpdateProbeTemplateGitMetadataMutation.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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>;
|
|
@@ -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 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
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
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>;
|
|
@@ -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 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
|
-
}
|
package/dist/chaos-manager/src/services/schemas/ChaosprobetemplateImportProbeTemplateRequest.d.ts
DELETED
|
@@ -1,13 +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 of the file; 0 means "take it from the file".
|
|
11
|
-
*/
|
|
12
|
-
revision?: number;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type EntityStoreType = 'INLINE' | 'REMOTE';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ResolveSource = 'cache' | 'last_synced' | 'live';
|
|
@@ -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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type ScmCacheState = 'STALE_CACHE' | 'UNKNOWN' | 'VALID_CACHE';
|
|
File without changes
|
|
File without changes
|