@harnessio/react-chaos-manager-client 1.91.2 → 1.91.3
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/useCreateRiskRuleMutation.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useCreateRiskRuleMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteRiskRuleMutation.d.ts +29 -0
- package/dist/chaos-manager/src/services/hooks/useDeleteRiskRuleMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useListRiskRulesQuery.d.ts +1 -0
- package/dist/chaos-manager/src/services/hooks/useSubmitRiskScanFindingsMutation.d.ts +32 -0
- package/dist/chaos-manager/src/services/hooks/useSubmitRiskScanFindingsMutation.js +14 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateRiskRuleMutation.d.ts +32 -0
- package/dist/chaos-manager/src/services/hooks/useUpdateRiskRuleMutation.js +14 -0
- package/dist/chaos-manager/src/services/index.d.ts +27 -0
- package/dist/chaos-manager/src/services/index.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesFaultData.d.ts +9 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExecutionNodesProbeData.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosExperimentRunChaosExperimentRun.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultCreateFaultRequest.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultCreateFaultResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultGetFaultResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultUpdateFaultRequest.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaultUpdateFaultResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateRequest.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateCreateFaultTemplateResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosfaulttemplateUpdateFaultTemplateResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ChaosserviceLinkedDiscoveredService.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ChaosserviceLinkedDiscoveredService.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesChaosServiceResponse.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesCreateRequest.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesLinkedDiscoveredServiceRef.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesLinkedDiscoveredServiceRef.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ChaosservicesUpdateRequest.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseAgentConfiguration.d.ts +25 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseDataCollectionConfiguration.d.ts +16 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseDiscoveredServiceCodeRepositorySpec.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseDiscoveredServiceCodeRepositorySpec.js +4 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseDiscoveredServiceCollection.d.ts +2 -1
- package/dist/chaos-manager/src/services/schemas/DatabaseDiscoveredServiceSpec.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseResourceWatchConfig.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseResourceWatchConfig.js +4 -0
- package/dist/chaos-manager/src/services/schemas/DatabaseServiceCollection.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentFaultRef.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentJitProbe.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentJitProbe.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentJitProbeLink.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentJitProbeLink.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentProbeRef.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentTargetService.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentTargetService.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ExperimentrunsGetExperimentRunResponse.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/ExperimenttemplateFault.d.ts +10 -0
- package/dist/chaos-manager/src/services/schemas/ExperimenttemplateProbe.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/FaulttemplateFaultTemplate.d.ts +1 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2GetKubernetesInfrastructureV2YamlRequest.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2KubernetesInfrastructureV2Details.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2RegisterInfrastructureV2Request.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/InfraV2UpdateKubernetesInfrastructureV2Request.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/RiskCodeLocation.d.ts +6 -0
- package/dist/chaos-manager/src/services/schemas/RiskCodeLocation.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskCodeRepository.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskCodeRepository.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskDetectionMethod.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/RiskLinkedService.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskLinkedService.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskRiskDataSource.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/RiskRiskRuleSpec.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanSource.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanSourceCodeRepository.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanSourceCodeRepository.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskScanType.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/RiskServiceDetails.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/RiskTargetServiceType.d.ts +1 -1
- package/dist/chaos-manager/src/services/schemas/RiskrulesCreateRequest.d.ts +12 -0
- package/dist/chaos-manager/src/services/schemas/RiskrulesCreateRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskrulesUpdateRequest.d.ts +11 -0
- package/dist/chaos-manager/src/services/schemas/RiskrulesUpdateRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansFindingError.d.ts +5 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansFindingError.js +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansOccurrenceContext.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansOccurrenceContext.js +0 -3
- package/dist/chaos-manager/src/services/schemas/RiskscansSubmitFindingsRequest.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansSubmitFindingsRequest.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansSubmitFindingsResponse.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansSubmitFindingsResponse.js +1 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansSubmittedFinding.d.ts +13 -0
- package/dist/chaos-manager/src/services/schemas/RiskscansSubmittedFinding.js +1 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksBulkSaveSummary.d.ts +7 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksBulkSaveSummary.js +4 -0
- package/dist/chaos-manager/src/services/schemas/ScannedrisksOccurrenceDetail.d.ts +2 -0
- package/dist/chaos-manager/src/services/schemas/V3DeleteResponse.d.ts +4 -0
- package/dist/chaos-manager/src/services/schemas/V3DeleteResponse.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RiskrulesRiskRuleResponse } from '../schemas/RiskrulesRiskRuleResponse';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import type { RiskrulesCreateRequest } from '../schemas/RiskrulesCreateRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface CreateRiskRuleMutationQueryParams {
|
|
7
|
+
accountIdentifier: string;
|
|
8
|
+
correlationID?: string;
|
|
9
|
+
organizationIdentifier?: string;
|
|
10
|
+
parentUniqueId?: string;
|
|
11
|
+
projectIdentifier?: string;
|
|
12
|
+
}
|
|
13
|
+
export type CreateRiskRuleRequestBody = RiskrulesCreateRequest;
|
|
14
|
+
export type CreateRiskRuleOkResponse = RiskrulesRiskRuleResponse;
|
|
15
|
+
export type CreateRiskRuleErrorResponse = SharedError;
|
|
16
|
+
export interface CreateRiskRuleProps extends Omit<FetcherOptions<CreateRiskRuleMutationQueryParams, CreateRiskRuleRequestBody>, 'url'> {
|
|
17
|
+
queryParams: CreateRiskRuleMutationQueryParams;
|
|
18
|
+
body: CreateRiskRuleRequestBody;
|
|
19
|
+
}
|
|
20
|
+
export interface CreateRiskRuleResponseContainer {
|
|
21
|
+
body: CreateRiskRuleOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function createRiskRule(props: CreateRiskRuleProps): Promise<CreateRiskRuleResponseContainer>;
|
|
25
|
+
export type CreateRiskRuleMutationProps<T extends keyof CreateRiskRuleProps> = Omit<CreateRiskRuleProps, T> & Partial<Pick<CreateRiskRuleProps, T>>;
|
|
26
|
+
/**
|
|
27
|
+
* creates a project-scoped custom risk rule. Only the SourceCode data source is supported; spec.faults must be non-empty and on the chaos fault allowlist.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useCreateRiskRuleMutation<T extends keyof CreateRiskRuleProps>(props: Pick<Partial<CreateRiskRuleProps>, T>, options?: Omit<UseMutationOptions<CreateRiskRuleResponseContainer, CreateRiskRuleErrorResponse, CreateRiskRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<CreateRiskRuleResponseContainer, SharedError, CreateRiskRuleMutationProps<T>, unknown>;
|
|
@@ -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 createRiskRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risk-rules`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* creates a project-scoped custom risk rule. Only the SourceCode data source is supported; spec.faults must be non-empty and on the chaos fault allowlist.
|
|
11
|
+
*/
|
|
12
|
+
export function useCreateRiskRuleMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => createRiskRule(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { V3DeleteResponse } from '../schemas/V3DeleteResponse';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
5
|
+
export interface DeleteRiskRuleMutationPathParams {
|
|
6
|
+
identity: string;
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteRiskRuleMutationQueryParams {
|
|
9
|
+
accountIdentifier: string;
|
|
10
|
+
correlationID?: string;
|
|
11
|
+
organizationIdentifier?: string;
|
|
12
|
+
parentUniqueId?: string;
|
|
13
|
+
projectIdentifier?: string;
|
|
14
|
+
}
|
|
15
|
+
export type DeleteRiskRuleOkResponse = V3DeleteResponse;
|
|
16
|
+
export type DeleteRiskRuleErrorResponse = SharedError;
|
|
17
|
+
export interface DeleteRiskRuleProps extends DeleteRiskRuleMutationPathParams, Omit<FetcherOptions<DeleteRiskRuleMutationQueryParams, unknown>, 'url'> {
|
|
18
|
+
queryParams: DeleteRiskRuleMutationQueryParams;
|
|
19
|
+
}
|
|
20
|
+
export interface DeleteRiskRuleResponseContainer {
|
|
21
|
+
body: DeleteRiskRuleOkResponse;
|
|
22
|
+
headers: Headers;
|
|
23
|
+
}
|
|
24
|
+
export declare function deleteRiskRule(props: DeleteRiskRuleProps): Promise<DeleteRiskRuleResponseContainer>;
|
|
25
|
+
export type DeleteRiskRuleMutationProps<T extends keyof DeleteRiskRuleProps> = Omit<DeleteRiskRuleProps, T> & Partial<Pick<DeleteRiskRuleProps, T>>;
|
|
26
|
+
/**
|
|
27
|
+
* soft-deletes a project-scoped custom risk rule. System rules cannot be deleted.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useDeleteRiskRuleMutation<T extends keyof DeleteRiskRuleProps>(props: Pick<Partial<DeleteRiskRuleProps>, T>, options?: Omit<UseMutationOptions<DeleteRiskRuleResponseContainer, DeleteRiskRuleErrorResponse, DeleteRiskRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteRiskRuleResponseContainer, SharedError, DeleteRiskRuleMutationProps<T>, unknown>;
|
|
@@ -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 deleteRiskRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risk-rules/${props.identity}`, method: 'DELETE' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* soft-deletes a project-scoped custom risk rule. System rules cannot be deleted.
|
|
11
|
+
*/
|
|
12
|
+
export function useDeleteRiskRuleMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => deleteRiskRule(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -5,6 +5,7 @@ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
|
5
5
|
export interface ListRiskRulesQueryQueryParams {
|
|
6
6
|
accountIdentifier: string;
|
|
7
7
|
correlationID?: string;
|
|
8
|
+
customOnly?: boolean;
|
|
8
9
|
dataSource?: string;
|
|
9
10
|
includeAllScope?: boolean;
|
|
10
11
|
isSystem?: boolean;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RiskscansSubmitFindingsResponse } from '../schemas/RiskscansSubmitFindingsResponse';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import type { RiskscansSubmitFindingsRequest } from '../schemas/RiskscansSubmitFindingsRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface SubmitRiskScanFindingsMutationPathParams {
|
|
7
|
+
identity: string;
|
|
8
|
+
}
|
|
9
|
+
export interface SubmitRiskScanFindingsMutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
correlationID?: string;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
parentUniqueId?: string;
|
|
14
|
+
projectIdentifier?: string;
|
|
15
|
+
}
|
|
16
|
+
export type SubmitRiskScanFindingsRequestBody = RiskscansSubmitFindingsRequest;
|
|
17
|
+
export type SubmitRiskScanFindingsOkResponse = RiskscansSubmitFindingsResponse;
|
|
18
|
+
export type SubmitRiskScanFindingsErrorResponse = SharedError;
|
|
19
|
+
export interface SubmitRiskScanFindingsProps extends SubmitRiskScanFindingsMutationPathParams, Omit<FetcherOptions<SubmitRiskScanFindingsMutationQueryParams, SubmitRiskScanFindingsRequestBody>, 'url'> {
|
|
20
|
+
queryParams: SubmitRiskScanFindingsMutationQueryParams;
|
|
21
|
+
body: SubmitRiskScanFindingsRequestBody;
|
|
22
|
+
}
|
|
23
|
+
export interface SubmitRiskScanFindingsResponseContainer {
|
|
24
|
+
body: SubmitRiskScanFindingsOkResponse;
|
|
25
|
+
headers: Headers;
|
|
26
|
+
}
|
|
27
|
+
export declare function submitRiskScanFindings(props: SubmitRiskScanFindingsProps): Promise<SubmitRiskScanFindingsResponseContainer>;
|
|
28
|
+
export type SubmitRiskScanFindingsMutationProps<T extends keyof SubmitRiskScanFindingsProps> = Omit<SubmitRiskScanFindingsProps, T> & Partial<Pick<SubmitRiskScanFindingsProps, T>>;
|
|
29
|
+
/**
|
|
30
|
+
* validates code repository findings against their SourceCode risk rules, saves them as scanned risks and completes the scan
|
|
31
|
+
*/
|
|
32
|
+
export declare function useSubmitRiskScanFindingsMutation<T extends keyof SubmitRiskScanFindingsProps>(props: Pick<Partial<SubmitRiskScanFindingsProps>, T>, options?: Omit<UseMutationOptions<SubmitRiskScanFindingsResponseContainer, SubmitRiskScanFindingsErrorResponse, SubmitRiskScanFindingsMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<SubmitRiskScanFindingsResponseContainer, SharedError, SubmitRiskScanFindingsMutationProps<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 submitRiskScanFindings(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risk-scans/${props.identity}/findings`, method: 'POST' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* validates code repository findings against their SourceCode risk rules, saves them as scanned risks and completes the scan
|
|
11
|
+
*/
|
|
12
|
+
export function useSubmitRiskScanFindingsMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => submitRiskScanFindings(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
|
+
import type { RiskrulesRiskRuleResponse } from '../schemas/RiskrulesRiskRuleResponse';
|
|
3
|
+
import type { SharedError } from '../schemas/SharedError';
|
|
4
|
+
import type { RiskrulesUpdateRequest } from '../schemas/RiskrulesUpdateRequest';
|
|
5
|
+
import { FetcherOptions } from '../../../../custom-fetcher/index.js';
|
|
6
|
+
export interface UpdateRiskRuleMutationPathParams {
|
|
7
|
+
identity: string;
|
|
8
|
+
}
|
|
9
|
+
export interface UpdateRiskRuleMutationQueryParams {
|
|
10
|
+
accountIdentifier: string;
|
|
11
|
+
correlationID?: string;
|
|
12
|
+
organizationIdentifier?: string;
|
|
13
|
+
parentUniqueId?: string;
|
|
14
|
+
projectIdentifier?: string;
|
|
15
|
+
}
|
|
16
|
+
export type UpdateRiskRuleRequestBody = RiskrulesUpdateRequest;
|
|
17
|
+
export type UpdateRiskRuleOkResponse = RiskrulesRiskRuleResponse;
|
|
18
|
+
export type UpdateRiskRuleErrorResponse = SharedError;
|
|
19
|
+
export interface UpdateRiskRuleProps extends UpdateRiskRuleMutationPathParams, Omit<FetcherOptions<UpdateRiskRuleMutationQueryParams, UpdateRiskRuleRequestBody>, 'url'> {
|
|
20
|
+
queryParams: UpdateRiskRuleMutationQueryParams;
|
|
21
|
+
body: UpdateRiskRuleRequestBody;
|
|
22
|
+
}
|
|
23
|
+
export interface UpdateRiskRuleResponseContainer {
|
|
24
|
+
body: UpdateRiskRuleOkResponse;
|
|
25
|
+
headers: Headers;
|
|
26
|
+
}
|
|
27
|
+
export declare function updateRiskRule(props: UpdateRiskRuleProps): Promise<UpdateRiskRuleResponseContainer>;
|
|
28
|
+
export type UpdateRiskRuleMutationProps<T extends keyof UpdateRiskRuleProps> = Omit<UpdateRiskRuleProps, T> & Partial<Pick<UpdateRiskRuleProps, T>>;
|
|
29
|
+
/**
|
|
30
|
+
* replaces the mutable fields of a project-scoped custom risk rule. System rules cannot be updated.
|
|
31
|
+
*/
|
|
32
|
+
export declare function useUpdateRiskRuleMutation<T extends keyof UpdateRiskRuleProps>(props: Pick<Partial<UpdateRiskRuleProps>, T>, options?: Omit<UseMutationOptions<UpdateRiskRuleResponseContainer, UpdateRiskRuleErrorResponse, UpdateRiskRuleMutationProps<T>>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<UpdateRiskRuleResponseContainer, SharedError, UpdateRiskRuleMutationProps<T>, unknown>;
|
|
@@ -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 updateRiskRule(props) {
|
|
7
|
+
return fetcher(Object.assign({ url: `/v3/risk-rules/${props.identity}`, method: 'PUT' }, props));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* replaces the mutable fields of a project-scoped custom risk rule. System rules cannot be updated.
|
|
11
|
+
*/
|
|
12
|
+
export function useUpdateRiskRuleMutation(props, options) {
|
|
13
|
+
return useMutation((mutateProps) => updateRiskRule(Object.assign(Object.assign({}, props), mutateProps)), options);
|
|
14
|
+
}
|
|
@@ -64,6 +64,8 @@ export type { CreateRiskExperimentRecommendationExperimentErrorResponse, CreateR
|
|
|
64
64
|
export { createRiskExperimentRecommendationExperiment, useCreateRiskExperimentRecommendationExperimentMutation, } from './hooks/useCreateRiskExperimentRecommendationExperimentMutation';
|
|
65
65
|
export type { CreateRiskErrorResponse, CreateRiskMutationProps, CreateRiskMutationQueryParams, CreateRiskOkResponse, CreateRiskProps, CreateRiskRequestBody, } from './hooks/useCreateRiskMutation';
|
|
66
66
|
export { createRisk, useCreateRiskMutation } from './hooks/useCreateRiskMutation';
|
|
67
|
+
export type { CreateRiskRuleErrorResponse, CreateRiskRuleMutationProps, CreateRiskRuleMutationQueryParams, CreateRiskRuleOkResponse, CreateRiskRuleProps, CreateRiskRuleRequestBody, } from './hooks/useCreateRiskRuleMutation';
|
|
68
|
+
export { createRiskRule, useCreateRiskRuleMutation } from './hooks/useCreateRiskRuleMutation';
|
|
67
69
|
export type { CreateRiskScanErrorResponse, CreateRiskScanMutationProps, CreateRiskScanMutationQueryParams, CreateRiskScanOkResponse, CreateRiskScanProps, CreateRiskScanRequestBody, } from './hooks/useCreateRiskScanMutation';
|
|
68
70
|
export { createRiskScan, useCreateRiskScanMutation } from './hooks/useCreateRiskScanMutation';
|
|
69
71
|
export type { CreateRuleErrorResponse, CreateRuleMutationProps, CreateRuleMutationQueryParams, CreateRuleOkResponse, CreateRuleProps, CreateRuleRequestBody, } from './hooks/useCreateRuleMutation';
|
|
@@ -114,6 +116,8 @@ export type { DeleteRecommendationErrorResponse, DeleteRecommendationMutationPro
|
|
|
114
116
|
export { deleteRecommendation, useDeleteRecommendationMutation, } from './hooks/useDeleteRecommendationMutation';
|
|
115
117
|
export type { DeleteRiskErrorResponse, DeleteRiskMutationPathParams, DeleteRiskMutationProps, DeleteRiskMutationQueryParams, DeleteRiskOkResponse, DeleteRiskProps, } from './hooks/useDeleteRiskMutation';
|
|
116
118
|
export { deleteRisk, useDeleteRiskMutation } from './hooks/useDeleteRiskMutation';
|
|
119
|
+
export type { DeleteRiskRuleErrorResponse, DeleteRiskRuleMutationPathParams, DeleteRiskRuleMutationProps, DeleteRiskRuleMutationQueryParams, DeleteRiskRuleOkResponse, DeleteRiskRuleProps, } from './hooks/useDeleteRiskRuleMutation';
|
|
120
|
+
export { deleteRiskRule, useDeleteRiskRuleMutation } from './hooks/useDeleteRiskRuleMutation';
|
|
117
121
|
export type { DeleteRiskScanErrorResponse, DeleteRiskScanMutationPathParams, DeleteRiskScanMutationProps, DeleteRiskScanMutationQueryParams, DeleteRiskScanOkResponse, DeleteRiskScanProps, } from './hooks/useDeleteRiskScanMutation';
|
|
118
122
|
export { deleteRiskScan, useDeleteRiskScanMutation } from './hooks/useDeleteRiskScanMutation';
|
|
119
123
|
export type { DeleteRuleErrorResponse, DeleteRuleMutationPathParams, DeleteRuleMutationProps, DeleteRuleMutationQueryParams, DeleteRuleOkResponse, DeleteRuleProps, } from './hooks/useDeleteRuleMutation';
|
|
@@ -520,6 +524,8 @@ export type { StopDrTestErrorResponse, StopDrTestMutationPathParams, StopDrTestM
|
|
|
520
524
|
export { stopDrTest, useStopDrTestMutation } from './hooks/useStopDrTestMutation';
|
|
521
525
|
export type { StopOnboardingExperimentsErrorResponse, StopOnboardingExperimentsMutationPathParams, StopOnboardingExperimentsMutationProps, StopOnboardingExperimentsMutationQueryParams, StopOnboardingExperimentsOkResponse, StopOnboardingExperimentsProps, } from './hooks/useStopOnboardingExperimentsMutation';
|
|
522
526
|
export { stopOnboardingExperiments, useStopOnboardingExperimentsMutation, } from './hooks/useStopOnboardingExperimentsMutation';
|
|
527
|
+
export type { SubmitRiskScanFindingsErrorResponse, SubmitRiskScanFindingsMutationPathParams, SubmitRiskScanFindingsMutationProps, SubmitRiskScanFindingsMutationQueryParams, SubmitRiskScanFindingsOkResponse, SubmitRiskScanFindingsProps, SubmitRiskScanFindingsRequestBody, } from './hooks/useSubmitRiskScanFindingsMutation';
|
|
528
|
+
export { submitRiskScanFindings, useSubmitRiskScanFindingsMutation, } from './hooks/useSubmitRiskScanFindingsMutation';
|
|
523
529
|
export type { SummarizeScannedRisksByServiceErrorResponse, SummarizeScannedRisksByServiceMutationProps, SummarizeScannedRisksByServiceMutationQueryParams, SummarizeScannedRisksByServiceOkResponse, SummarizeScannedRisksByServiceProps, SummarizeScannedRisksByServiceRequestBody, } from './hooks/useSummarizeScannedRisksByServiceMutation';
|
|
524
530
|
export { summarizeScannedRisksByService, useSummarizeScannedRisksByServiceMutation, } from './hooks/useSummarizeScannedRisksByServiceMutation';
|
|
525
531
|
export type { TestLegacyKubernetesChaosInfraConnectionErrorResponse, TestLegacyKubernetesChaosInfraConnectionOkResponse, TestLegacyKubernetesChaosInfraConnectionProps, TestLegacyKubernetesChaosInfraConnectionQueryPathParams, TestLegacyKubernetesChaosInfraConnectionQueryQueryParams, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionQuery';
|
|
@@ -580,6 +586,8 @@ export type { UpdateRecommendationStatusErrorResponse, UpdateRecommendationStatu
|
|
|
580
586
|
export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
|
|
581
587
|
export type { UpdateRiskErrorResponse, UpdateRiskMutationPathParams, UpdateRiskMutationProps, UpdateRiskMutationQueryParams, UpdateRiskOkResponse, UpdateRiskProps, UpdateRiskRequestBody, } from './hooks/useUpdateRiskMutation';
|
|
582
588
|
export { updateRisk, useUpdateRiskMutation } from './hooks/useUpdateRiskMutation';
|
|
589
|
+
export type { UpdateRiskRuleErrorResponse, UpdateRiskRuleMutationPathParams, UpdateRiskRuleMutationProps, UpdateRiskRuleMutationQueryParams, UpdateRiskRuleOkResponse, UpdateRiskRuleProps, UpdateRiskRuleRequestBody, } from './hooks/useUpdateRiskRuleMutation';
|
|
590
|
+
export { updateRiskRule, useUpdateRiskRuleMutation } from './hooks/useUpdateRiskRuleMutation';
|
|
583
591
|
export type { UpdateRiskScanErrorResponse, UpdateRiskScanMutationPathParams, UpdateRiskScanMutationProps, UpdateRiskScanMutationQueryParams, UpdateRiskScanOkResponse, UpdateRiskScanProps, UpdateRiskScanRequestBody, } from './hooks/useUpdateRiskScanMutation';
|
|
584
592
|
export { updateRiskScan, useUpdateRiskScanMutation } from './hooks/useUpdateRiskScanMutation';
|
|
585
593
|
export type { UpdateRuleErrorResponse, UpdateRuleMutationPathParams, UpdateRuleMutationProps, UpdateRuleMutationQueryParams, UpdateRuleOkResponse, UpdateRuleProps, UpdateRuleRequestBody, } from './hooks/useUpdateRuleMutation';
|
|
@@ -782,11 +790,13 @@ export type { ChaosprobetemplateProbeTemplateCount } from './schemas/Chaosprobet
|
|
|
782
790
|
export type { ChaosprobetemplateProbeTemplateVariables } from './schemas/ChaosprobetemplateProbeTemplateVariables';
|
|
783
791
|
export type { ChaosprobetemplateReferencedByItem } from './schemas/ChaosprobetemplateReferencedByItem';
|
|
784
792
|
export type { ChaosresourcenotesNoteType } from './schemas/ChaosresourcenotesNoteType';
|
|
793
|
+
export type { ChaosserviceLinkedDiscoveredService } from './schemas/ChaosserviceLinkedDiscoveredService';
|
|
785
794
|
export type { ChaosservicesChaosServiceResponse } from './schemas/ChaosservicesChaosServiceResponse';
|
|
786
795
|
export type { ChaosservicesCreateRequest } from './schemas/ChaosservicesCreateRequest';
|
|
787
796
|
export type { ChaosservicesDeleteResponse } from './schemas/ChaosservicesDeleteResponse';
|
|
788
797
|
export type { ChaosservicesDrExecutionResponse } from './schemas/ChaosservicesDrExecutionResponse';
|
|
789
798
|
export type { ChaosservicesExperimentExecutionResponse } from './schemas/ChaosservicesExperimentExecutionResponse';
|
|
799
|
+
export type { ChaosservicesLinkedDiscoveredServiceRef } from './schemas/ChaosservicesLinkedDiscoveredServiceRef';
|
|
790
800
|
export type { ChaosservicesListChaosServiceResponse } from './schemas/ChaosservicesListChaosServiceResponse';
|
|
791
801
|
export type { ChaosservicesListDrExecutionsResponse } from './schemas/ChaosservicesListDrExecutionsResponse';
|
|
792
802
|
export type { ChaosservicesListExperimentExecutionsResponse } from './schemas/ChaosservicesListExperimentExecutionsResponse';
|
|
@@ -836,6 +846,7 @@ export type { DatabaseDiscoveredServiceAmazonEc2InstanceSpec } from './schemas/D
|
|
|
836
846
|
export type { DatabaseDiscoveredServiceAmazonLambdaSpec } from './schemas/DatabaseDiscoveredServiceAmazonLambdaSpec';
|
|
837
847
|
export type { DatabaseDiscoveredServiceAmazonNetworkLoadBalancerSpec } from './schemas/DatabaseDiscoveredServiceAmazonNetworkLoadBalancerSpec';
|
|
838
848
|
export type { DatabaseDiscoveredServiceAmazonRelationalDatabaseServiceSpec } from './schemas/DatabaseDiscoveredServiceAmazonRelationalDatabaseServiceSpec';
|
|
849
|
+
export type { DatabaseDiscoveredServiceCodeRepositorySpec } from './schemas/DatabaseDiscoveredServiceCodeRepositorySpec';
|
|
839
850
|
export type { DatabaseDiscoveredServiceCollection } from './schemas/DatabaseDiscoveredServiceCollection';
|
|
840
851
|
export type { DatabaseDiscoveredServiceKubernetesNodeCommonSpec } from './schemas/DatabaseDiscoveredServiceKubernetesNodeCommonSpec';
|
|
841
852
|
export type { DatabaseDiscoveredServiceKubernetesNodeSpec } from './schemas/DatabaseDiscoveredServiceKubernetesNodeSpec';
|
|
@@ -860,6 +871,7 @@ export type { DatabaseNetworkMapResourceKind } from './schemas/DatabaseNetworkMa
|
|
|
860
871
|
export type { DatabaseProxyConfiguration } from './schemas/DatabaseProxyConfiguration';
|
|
861
872
|
export type { DatabaseResourceList } from './schemas/DatabaseResourceList';
|
|
862
873
|
export type { DatabaseResourceRequirements } from './schemas/DatabaseResourceRequirements';
|
|
874
|
+
export type { DatabaseResourceWatchConfig } from './schemas/DatabaseResourceWatchConfig';
|
|
863
875
|
export type { DatabaseServiceCollection } from './schemas/DatabaseServiceCollection';
|
|
864
876
|
export type { DatabaseServiceIdentity } from './schemas/DatabaseServiceIdentity';
|
|
865
877
|
export type { ExecutionActionData } from './schemas/ExecutionActionData';
|
|
@@ -894,6 +906,8 @@ export type { ExperimentFaultRef } from './schemas/ExperimentFaultRef';
|
|
|
894
906
|
export type { ExperimentHelperConfig } from './schemas/ExperimentHelperConfig';
|
|
895
907
|
export type { ExperimentHostFile } from './schemas/ExperimentHostFile';
|
|
896
908
|
export type { ExperimentInfraType } from './schemas/ExperimentInfraType';
|
|
909
|
+
export type { ExperimentJitProbe } from './schemas/ExperimentJitProbe';
|
|
910
|
+
export type { ExperimentJitProbeLink } from './schemas/ExperimentJitProbeLink';
|
|
897
911
|
export type { ExperimentProbeActions } from './schemas/ExperimentProbeActions';
|
|
898
912
|
export type { ExperimentProbeRef } from './schemas/ExperimentProbeRef';
|
|
899
913
|
export type { ExperimentProjectedVolumes } from './schemas/ExperimentProjectedVolumes';
|
|
@@ -906,6 +920,7 @@ export type { ExperimentSelector } from './schemas/ExperimentSelector';
|
|
|
906
920
|
export type { ExperimentSidecar } from './schemas/ExperimentSidecar';
|
|
907
921
|
export type { ExperimentSshFaultAuth } from './schemas/ExperimentSshFaultAuth';
|
|
908
922
|
export type { ExperimentStatusCheckTimeout } from './schemas/ExperimentStatusCheckTimeout';
|
|
923
|
+
export type { ExperimentTargetService } from './schemas/ExperimentTargetService';
|
|
909
924
|
export type { ExperimentTargets } from './schemas/ExperimentTargets';
|
|
910
925
|
export type { ExperimentVmWareAuth } from './schemas/ExperimentVmWareAuth';
|
|
911
926
|
export type { ExperimentWorkload } from './schemas/ExperimentWorkload';
|
|
@@ -1311,11 +1326,14 @@ export type { ResourceQuantity } from './schemas/ResourceQuantity';
|
|
|
1311
1326
|
export type { RiskCategory } from './schemas/RiskCategory';
|
|
1312
1327
|
export type { RiskCdService } from './schemas/RiskCdService';
|
|
1313
1328
|
export type { RiskChaosService } from './schemas/RiskChaosService';
|
|
1329
|
+
export type { RiskCodeLocation } from './schemas/RiskCodeLocation';
|
|
1330
|
+
export type { RiskCodeRepository } from './schemas/RiskCodeRepository';
|
|
1314
1331
|
export type { RiskCollectionError } from './schemas/RiskCollectionError';
|
|
1315
1332
|
export type { RiskCollectionSummary } from './schemas/RiskCollectionSummary';
|
|
1316
1333
|
export type { RiskDetectionMethod } from './schemas/RiskDetectionMethod';
|
|
1317
1334
|
export type { RiskDiscoveredService } from './schemas/RiskDiscoveredService';
|
|
1318
1335
|
export type { RiskEvidenceResource } from './schemas/RiskEvidenceResource';
|
|
1336
|
+
export type { RiskLinkedService } from './schemas/RiskLinkedService';
|
|
1319
1337
|
export type { RiskPipelineInfrastructure } from './schemas/RiskPipelineInfrastructure';
|
|
1320
1338
|
export type { RiskProbeExecutionExperimentSource } from './schemas/RiskProbeExecutionExperimentSource';
|
|
1321
1339
|
export type { RiskProbeExecutionPipelineStepSource } from './schemas/RiskProbeExecutionPipelineStepSource';
|
|
@@ -1328,6 +1346,7 @@ export type { RiskRiskSummary } from './schemas/RiskRiskSummary';
|
|
|
1328
1346
|
export type { RiskScan } from './schemas/RiskScan';
|
|
1329
1347
|
export type { RiskScanResult } from './schemas/RiskScanResult';
|
|
1330
1348
|
export type { RiskScanSource } from './schemas/RiskScanSource';
|
|
1349
|
+
export type { RiskScanSourceCodeRepository } from './schemas/RiskScanSourceCodeRepository';
|
|
1331
1350
|
export type { RiskScanSourcePipeline } from './schemas/RiskScanSourcePipeline';
|
|
1332
1351
|
export type { RiskScanSourceProbeExecution } from './schemas/RiskScanSourceProbeExecution';
|
|
1333
1352
|
export type { RiskScanSourceServiceDiscovery } from './schemas/RiskScanSourceServiceDiscovery';
|
|
@@ -1345,8 +1364,10 @@ export type { RiskexperimentrecommendationsRiskExperimentRecommendationSpec } fr
|
|
|
1345
1364
|
export type { RiskexperimentrecommendationsStatus } from './schemas/RiskexperimentrecommendationsStatus';
|
|
1346
1365
|
export type { RiskexperimentrecommendationsWorkload } from './schemas/RiskexperimentrecommendationsWorkload';
|
|
1347
1366
|
export type { RiskoccurrencesProbeExecutionSource } from './schemas/RiskoccurrencesProbeExecutionSource';
|
|
1367
|
+
export type { RiskrulesCreateRequest } from './schemas/RiskrulesCreateRequest';
|
|
1348
1368
|
export type { RiskrulesListResponse } from './schemas/RiskrulesListResponse';
|
|
1349
1369
|
export type { RiskrulesRiskRuleResponse } from './schemas/RiskrulesRiskRuleResponse';
|
|
1370
|
+
export type { RiskrulesUpdateRequest } from './schemas/RiskrulesUpdateRequest';
|
|
1350
1371
|
export type { RisksActiveExecutionResponse } from './schemas/RisksActiveExecutionResponse';
|
|
1351
1372
|
export type { RisksActiveRiskCounter } from './schemas/RisksActiveRiskCounter';
|
|
1352
1373
|
export type { RisksCreateRequest } from './schemas/RisksCreateRequest';
|
|
@@ -1360,6 +1381,7 @@ export type { RisksRiskResponse } from './schemas/RisksRiskResponse';
|
|
|
1360
1381
|
export type { RisksUpdateRequest } from './schemas/RisksUpdateRequest';
|
|
1361
1382
|
export type { RiskscansCreateRequest } from './schemas/RiskscansCreateRequest';
|
|
1362
1383
|
export type { RiskscansDownloadResponse } from './schemas/RiskscansDownloadResponse';
|
|
1384
|
+
export type { RiskscansFindingError } from './schemas/RiskscansFindingError';
|
|
1363
1385
|
export type { RiskscansHeatmapCell } from './schemas/RiskscansHeatmapCell';
|
|
1364
1386
|
export type { RiskscansHeatmapResponse } from './schemas/RiskscansHeatmapResponse';
|
|
1365
1387
|
export type { RiskscansHeatmapRiskRule } from './schemas/RiskscansHeatmapRiskRule';
|
|
@@ -1380,7 +1402,11 @@ export type { RiskscansScanServicesResponse } from './schemas/RiskscansScanServi
|
|
|
1380
1402
|
export type { RiskscansScanSuggestedServicesResponse } from './schemas/RiskscansScanSuggestedServicesResponse';
|
|
1381
1403
|
export type { RiskscansScannedRiskWithOccurrences } from './schemas/RiskscansScannedRiskWithOccurrences';
|
|
1382
1404
|
export type { RiskscansServiceInScanContext } from './schemas/RiskscansServiceInScanContext';
|
|
1405
|
+
export type { RiskscansSubmitFindingsRequest } from './schemas/RiskscansSubmitFindingsRequest';
|
|
1406
|
+
export type { RiskscansSubmitFindingsResponse } from './schemas/RiskscansSubmitFindingsResponse';
|
|
1407
|
+
export type { RiskscansSubmittedFinding } from './schemas/RiskscansSubmittedFinding';
|
|
1383
1408
|
export type { RiskscansUpdateRequest } from './schemas/RiskscansUpdateRequest';
|
|
1409
|
+
export type { ScannedrisksBulkSaveSummary } from './schemas/ScannedrisksBulkSaveSummary';
|
|
1384
1410
|
export type { ScannedrisksGetResponse } from './schemas/ScannedrisksGetResponse';
|
|
1385
1411
|
export type { ScannedrisksListResponse } from './schemas/ScannedrisksListResponse';
|
|
1386
1412
|
export type { ScannedrisksOccurrenceDetail } from './schemas/ScannedrisksOccurrenceDetail';
|
|
@@ -1702,6 +1728,7 @@ export type { V2OnboardingV2OnboardingList } from './schemas/V2OnboardingV2Onboa
|
|
|
1702
1728
|
export type { V2OnboardingV2OnboardingRequest } from './schemas/V2OnboardingV2OnboardingRequest';
|
|
1703
1729
|
export type { V2OnboardingV2OnboardingStatus } from './schemas/V2OnboardingV2OnboardingStatus';
|
|
1704
1730
|
export type { V3AbortRiskScanRequest } from './schemas/V3AbortRiskScanRequest';
|
|
1731
|
+
export type { V3DeleteResponse } from './schemas/V3DeleteResponse';
|
|
1705
1732
|
export type { V3GetExperimentOrTemplateVariableData } from './schemas/V3GetExperimentOrTemplateVariableData';
|
|
1706
1733
|
export type { V3GetExperimentOrTemplateVariableResponse } from './schemas/V3GetExperimentOrTemplateVariableResponse';
|
|
1707
1734
|
export type { V3ListExperimentData } from './schemas/V3ListExperimentData';
|
|
@@ -31,6 +31,7 @@ export { createProbeTemplate, useCreateProbeTemplateMutation, } from './hooks/us
|
|
|
31
31
|
export { createRecommendation, useCreateRecommendationMutation, } from './hooks/useCreateRecommendationMutation';
|
|
32
32
|
export { createRiskExperimentRecommendationExperiment, useCreateRiskExperimentRecommendationExperimentMutation, } from './hooks/useCreateRiskExperimentRecommendationExperimentMutation';
|
|
33
33
|
export { createRisk, useCreateRiskMutation } from './hooks/useCreateRiskMutation';
|
|
34
|
+
export { createRiskRule, useCreateRiskRuleMutation } from './hooks/useCreateRiskRuleMutation';
|
|
34
35
|
export { createRiskScan, useCreateRiskScanMutation } from './hooks/useCreateRiskScanMutation';
|
|
35
36
|
export { createRule, useCreateRuleMutation } from './hooks/useCreateRuleMutation';
|
|
36
37
|
export { createV2Onboarding, useCreateV2OnboardingMutation, } from './hooks/useCreateV2OnboardingMutation';
|
|
@@ -56,6 +57,7 @@ export { deleteProbe, useDeleteProbeMutation } from './hooks/useDeleteProbeMutat
|
|
|
56
57
|
export { deleteProbeTemplate, useDeleteProbeTemplateMutation, } from './hooks/useDeleteProbeTemplateMutation';
|
|
57
58
|
export { deleteRecommendation, useDeleteRecommendationMutation, } from './hooks/useDeleteRecommendationMutation';
|
|
58
59
|
export { deleteRisk, useDeleteRiskMutation } from './hooks/useDeleteRiskMutation';
|
|
60
|
+
export { deleteRiskRule, useDeleteRiskRuleMutation } from './hooks/useDeleteRiskRuleMutation';
|
|
59
61
|
export { deleteRiskScan, useDeleteRiskScanMutation } from './hooks/useDeleteRiskScanMutation';
|
|
60
62
|
export { deleteRule, useDeleteRuleMutation } from './hooks/useDeleteRuleMutation';
|
|
61
63
|
export { deleteTargetNetworkMap, useDeleteTargetNetworkMapMutation, } from './hooks/useDeleteTargetNetworkMapMutation';
|
|
@@ -259,6 +261,7 @@ export { stopChaosExperimentV3, useStopChaosExperimentV3Mutation, } from './hook
|
|
|
259
261
|
export { stopChaosV2Experiment, useStopChaosV2ExperimentMutation, } from './hooks/useStopChaosV2ExperimentMutation';
|
|
260
262
|
export { stopDrTest, useStopDrTestMutation } from './hooks/useStopDrTestMutation';
|
|
261
263
|
export { stopOnboardingExperiments, useStopOnboardingExperimentsMutation, } from './hooks/useStopOnboardingExperimentsMutation';
|
|
264
|
+
export { submitRiskScanFindings, useSubmitRiskScanFindingsMutation, } from './hooks/useSubmitRiskScanFindingsMutation';
|
|
262
265
|
export { summarizeScannedRisksByService, useSummarizeScannedRisksByServiceMutation, } from './hooks/useSummarizeScannedRisksByServiceMutation';
|
|
263
266
|
export { testLegacyKubernetesChaosInfraConnection, useTestLegacyKubernetesChaosInfraConnectionQuery, } from './hooks/useTestLegacyKubernetesChaosInfraConnectionQuery';
|
|
264
267
|
export { triggerRiskScan, useTriggerRiskScanMutation } from './hooks/useTriggerRiskScanMutation';
|
|
@@ -289,6 +292,7 @@ export { updateProbe, useUpdateProbeMutation } from './hooks/useUpdateProbeMutat
|
|
|
289
292
|
export { updateProbeTemplate, useUpdateProbeTemplateMutation, } from './hooks/useUpdateProbeTemplateMutation';
|
|
290
293
|
export { updateRecommendationStatus, useUpdateRecommendationStatusMutation, } from './hooks/useUpdateRecommendationStatusMutation';
|
|
291
294
|
export { updateRisk, useUpdateRiskMutation } from './hooks/useUpdateRiskMutation';
|
|
295
|
+
export { updateRiskRule, useUpdateRiskRuleMutation } from './hooks/useUpdateRiskRuleMutation';
|
|
292
296
|
export { updateRiskScan, useUpdateRiskScanMutation } from './hooks/useUpdateRiskScanMutation';
|
|
293
297
|
export { updateRule, useUpdateRuleMutation } from './hooks/useUpdateRuleMutation';
|
|
294
298
|
export { upgradeLegacyKubernetesChaosInfra, useUpgradeLegacyKubernetesChaosInfraMutation, } from './hooks/useUpgradeLegacyKubernetesChaosInfraMutation';
|
|
@@ -5,8 +5,17 @@ import type { V1alpha1Targets } from '../schemas/V1alpha1Targets';
|
|
|
5
5
|
export interface ChaosExecutionNodesFaultData {
|
|
6
6
|
faultDetails?: ChaosExecutionNodesFaultDetails;
|
|
7
7
|
helperPodDetails?: ChaosExecutionNodesHelperPodDetails[];
|
|
8
|
+
/**
|
|
9
|
+
* JitEnabled marks this fault node as JIT-probe eligible. Control-plane only —
|
|
10
|
+
* stamped at node creation from the manifest, never sent to the execution plane.
|
|
11
|
+
*/
|
|
12
|
+
jitEnabled?: boolean;
|
|
8
13
|
name?: string;
|
|
9
14
|
namespace?: string;
|
|
15
|
+
/**
|
|
16
|
+
* OutageTypes are the fault's declared outage dimensions, resolved from the fault definition at node creation.
|
|
17
|
+
*/
|
|
18
|
+
outageTypes?: string[];
|
|
10
19
|
targetChaosStatus?: V1alpha1TargetDetails[];
|
|
11
20
|
targets?: V1alpha1Targets[];
|
|
12
21
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import type { ChaosExecutionNodesProbeIterations } from '../schemas/ChaosExecutionNodesProbeIterations';
|
|
2
2
|
import type { GithubComHarnessHceSaasHceSdkCommonProbeV1Probe } from '../schemas/GithubComHarnessHceSaasHceSdkCommonProbeV1Probe';
|
|
3
|
+
import type { RiskCategory } from '../schemas/RiskCategory';
|
|
3
4
|
export interface ChaosExecutionNodesProbeData {
|
|
4
5
|
description?: string;
|
|
5
6
|
faultName?: string;
|
|
7
|
+
faultNodeIds?: string[];
|
|
6
8
|
iterations?: ChaosExecutionNodesProbeIterations[];
|
|
9
|
+
jitEnabled?: boolean;
|
|
7
10
|
name?: string;
|
|
8
11
|
probeDetails?: GithubComHarnessHceSaasHceSdkCommonProbeV1Probe;
|
|
9
12
|
probeType?: string;
|
|
13
|
+
resilienceTypes?: RiskCategory[];
|
|
10
14
|
resiliencyScore?: number;
|
|
11
15
|
risks?: string[];
|
|
12
16
|
serviceId?: string;
|
|
@@ -9,6 +9,7 @@ import type { ChaosExperimentRunTemplateDetails } from '../schemas/ChaosExperime
|
|
|
9
9
|
export interface ChaosExperimentRunChaosExperimentRun {
|
|
10
10
|
accountID: string;
|
|
11
11
|
actions?: ChaosExperimentRunAction[];
|
|
12
|
+
billingValue?: number;
|
|
12
13
|
completed?: boolean;
|
|
13
14
|
createdAt?: number;
|
|
14
15
|
createdBy?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { HcesdkUserDetails } from '../schemas/HcesdkUserDetails';
|
|
2
2
|
import type { MongodbInfrastructureType } from '../schemas/MongodbInfrastructureType';
|
|
3
|
+
import type { ChaosserviceLinkedDiscoveredService } from '../schemas/ChaosserviceLinkedDiscoveredService';
|
|
3
4
|
import type { ChaosservicesServiceProbeAssociation } from '../schemas/ChaosservicesServiceProbeAssociation';
|
|
4
5
|
import type { DatabaseDiscoveredServiceSpec } from '../schemas/DatabaseDiscoveredServiceSpec';
|
|
5
6
|
export interface ChaosservicesChaosServiceResponse {
|
|
@@ -18,6 +19,8 @@ export interface ChaosservicesChaosServiceResponse {
|
|
|
18
19
|
infrastructureType?: MongodbInfrastructureType;
|
|
19
20
|
isAvailable?: boolean;
|
|
20
21
|
isRemoved: boolean;
|
|
22
|
+
linkedDiscoveredService?: ChaosserviceLinkedDiscoveredService;
|
|
23
|
+
module?: string;
|
|
21
24
|
name: string;
|
|
22
25
|
namespace?: string;
|
|
23
26
|
/**
|
|
@@ -33,6 +36,7 @@ export interface ChaosservicesChaosServiceResponse {
|
|
|
33
36
|
* project id to access the resource
|
|
34
37
|
*/
|
|
35
38
|
projectIdentifier?: string;
|
|
39
|
+
repoURL?: string;
|
|
36
40
|
serviceType?: string;
|
|
37
41
|
spec?: DatabaseDiscoveredServiceSpec;
|
|
38
42
|
tags?: string[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { MongodbInfrastructureType } from '../schemas/MongodbInfrastructureType';
|
|
2
|
+
import type { ChaosservicesLinkedDiscoveredServiceRef } from '../schemas/ChaosservicesLinkedDiscoveredServiceRef';
|
|
2
3
|
import type { ChaosservicesServiceProbeAssociation } from '../schemas/ChaosservicesServiceProbeAssociation';
|
|
3
4
|
export interface ChaosservicesCreateRequest {
|
|
4
5
|
agentId?: string;
|
|
@@ -8,6 +9,11 @@ export interface ChaosservicesCreateRequest {
|
|
|
8
9
|
identity?: string;
|
|
9
10
|
infrastructureId?: string;
|
|
10
11
|
infrastructureType?: MongodbInfrastructureType;
|
|
12
|
+
/**
|
|
13
|
+
* LinkedDiscoveredService optionally joins a runtime discovered service.
|
|
14
|
+
* It is only applied when the onboarded custom service type is CodeRepository.
|
|
15
|
+
*/
|
|
16
|
+
linkedDiscoveredService?: ChaosservicesLinkedDiscoveredServiceRef;
|
|
11
17
|
name?: string;
|
|
12
18
|
onboardingId?: string;
|
|
13
19
|
probes?: ChaosservicesServiceProbeAssociation[];
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { MongodbInfrastructureType } from '../schemas/MongodbInfrastructureType';
|
|
2
|
+
import type { ChaosservicesLinkedDiscoveredServiceRef } from '../schemas/ChaosservicesLinkedDiscoveredServiceRef';
|
|
1
3
|
import type { ChaosservicesServiceProbeAssociation } from '../schemas/ChaosservicesServiceProbeAssociation';
|
|
2
4
|
export interface ChaosservicesUpdateRequest {
|
|
3
5
|
agentId?: string;
|
|
@@ -6,6 +8,8 @@ export interface ChaosservicesUpdateRequest {
|
|
|
6
8
|
externalServiceId?: string;
|
|
7
9
|
identity?: string;
|
|
8
10
|
infrastructureId?: string;
|
|
11
|
+
infrastructureType?: MongodbInfrastructureType;
|
|
12
|
+
linkedDiscoveredService?: ChaosservicesLinkedDiscoveredServiceRef;
|
|
9
13
|
name?: string;
|
|
10
14
|
probes?: ChaosservicesServiceProbeAssociation[];
|
|
11
15
|
tags?: string[];
|
|
@@ -3,6 +3,31 @@ import type { DatabaseKubernetesAgentConfiguration } from '../schemas/DatabaseKu
|
|
|
3
3
|
import type { DatabaseMtlsConfiguration } from '../schemas/DatabaseMtlsConfiguration';
|
|
4
4
|
import type { DatabaseProxyConfiguration } from '../schemas/DatabaseProxyConfiguration';
|
|
5
5
|
export interface DatabaseAgentConfiguration {
|
|
6
|
+
/**
|
|
7
|
+
* AutoUpgradeDisabled is the per-agent upgrade policy toggle. Nil (or
|
|
8
|
+
* omitted) means auto-upgrade is on, so every agent document written
|
|
9
|
+
* before this field existed keeps behaving as if auto-upgrade were on.
|
|
10
|
+
* It rides the existing config update path rather than the dedicated
|
|
11
|
+
* upgrade-subdocument writer: unlike UpgradeState, this is user-facing
|
|
12
|
+
* policy, not scan/dispatch-owned bookkeeping.
|
|
13
|
+
*
|
|
14
|
+
* A pointer, deliberately: a plain bool cannot distinguish "the update
|
|
15
|
+
* request omitted this field" from "the update explicitly wants
|
|
16
|
+
* auto-upgrade back on" — both decode to false — so a config update
|
|
17
|
+
* that leaves the field out would be indistinguishable from one that
|
|
18
|
+
* re-enables it, and re-enabling would become permanently impossible
|
|
19
|
+
* after the first time it is disabled. Nil is "not specified, carry the
|
|
20
|
+
* prior value forward"; a non-nil value, true or false, is always an
|
|
21
|
+
* explicit instruction and always wins. See preserveAutoUpgradePolicy
|
|
22
|
+
* and IsAutoUpgradeDisabled.
|
|
23
|
+
*
|
|
24
|
+
* Deliberately not a three-value enum (auto/pinned/manual): CollectorImage
|
|
25
|
+
* above already pins with zero new code (DesiredImage returns it verbatim,
|
|
26
|
+
* so a pinned agent classifies as converged and never drifts), and
|
|
27
|
+
* auto-upgrade-off plus the manual-trigger endpoint already **is** manual
|
|
28
|
+
* — a second name for the same state.
|
|
29
|
+
*/
|
|
30
|
+
autoUpgradeDisabled?: boolean;
|
|
6
31
|
collectorImage?: string;
|
|
7
32
|
data: DatabaseDataCollectionConfiguration;
|
|
8
33
|
imagePullSecrets?: string[];
|