@harnessio/react-chaos-manager-client 1.88.1 → 1.89.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/chaos-manager/src/services/hooks/useListPipelineExplorerQuery.d.ts +38 -0
  2. package/dist/chaos-manager/src/services/hooks/useListPipelineExplorerQuery.js +14 -0
  3. package/dist/chaos-manager/src/services/index.d.ts +11 -0
  4. package/dist/chaos-manager/src/services/index.js +1 -0
  5. package/dist/chaos-manager/src/services/schemas/ChaosInfrastructureV2HelperDaemonSetConfig.d.ts +6 -0
  6. package/dist/chaos-manager/src/services/schemas/ChaosInfrastructureV2HelperDaemonSetConfig.js +4 -0
  7. package/dist/chaos-manager/src/services/schemas/ChaosInfrastructureV2K8sInfraV2SpecIdentifiers.d.ts +3 -0
  8. package/dist/chaos-manager/src/services/schemas/InfraV2HelperDaemonSetConfig.d.ts +20 -0
  9. package/dist/chaos-manager/src/services/schemas/InfraV2HelperDaemonSetConfig.js +4 -0
  10. package/dist/chaos-manager/src/services/schemas/InfraV2KubernetesInfrastructureV2Details.d.ts +4 -0
  11. package/dist/chaos-manager/src/services/schemas/InfraV2RegisterInfrastructureV2Request.d.ts +4 -0
  12. package/dist/chaos-manager/src/services/schemas/InfraV2UpdateKubernetesInfrastructureV2Request.d.ts +4 -0
  13. package/dist/chaos-manager/src/services/schemas/PipelineexplorerItemResponse.d.ts +13 -0
  14. package/dist/chaos-manager/src/services/schemas/PipelineexplorerItemResponse.js +1 -0
  15. package/dist/chaos-manager/src/services/schemas/PipelineexplorerLatestStats.d.ts +5 -0
  16. package/dist/chaos-manager/src/services/schemas/PipelineexplorerLatestStats.js +1 -0
  17. package/dist/chaos-manager/src/services/schemas/PipelineexplorerListResponse.d.ts +11 -0
  18. package/dist/chaos-manager/src/services/schemas/PipelineexplorerListResponse.js +1 -0
  19. package/dist/chaos-manager/src/services/schemas/PipelineexplorerMetadata.d.ts +7 -0
  20. package/dist/chaos-manager/src/services/schemas/PipelineexplorerMetadata.js +1 -0
  21. package/dist/chaos-manager/src/services/schemas/PipelineexplorerProgress.d.ts +5 -0
  22. package/dist/chaos-manager/src/services/schemas/PipelineexplorerProgress.js +4 -0
  23. package/dist/chaos-manager/src/services/schemas/PipelineexplorerScanInfo.d.ts +10 -0
  24. package/dist/chaos-manager/src/services/schemas/PipelineexplorerScanInfo.js +1 -0
  25. package/dist/chaos-manager/src/services/schemas/PipelineexplorerStats.d.ts +5 -0
  26. package/dist/chaos-manager/src/services/schemas/PipelineexplorerStats.js +4 -0
  27. package/dist/chaos-manager/src/services/schemas/V2OnboardingChaosInfraAdvanceConfiguration.d.ts +3 -0
  28. package/package.json +1 -1
@@ -0,0 +1,38 @@
1
+ import { UseQueryOptions } from '@tanstack/react-query';
2
+ import type { PipelineexplorerListResponse } from '../schemas/PipelineexplorerListResponse';
3
+ import type { SharedError } from '../schemas/SharedError';
4
+ import { FetcherOptions } from '../../../../custom-fetcher/index.js';
5
+ export interface ListPipelineExplorerQueryQueryParams {
6
+ accountIdentifier: string;
7
+ correlationID?: string;
8
+ /**
9
+ * @default 15
10
+ */
11
+ limit?: number;
12
+ organizationIdentifier?: string;
13
+ /**
14
+ * @default 0
15
+ */
16
+ page?: number;
17
+ parentUniqueId?: string;
18
+ projectIdentifier?: string;
19
+ refresh?: boolean;
20
+ scanned?: boolean;
21
+ search?: string;
22
+ sortAscending?: boolean;
23
+ sortField?: 'lastRunAt' | 'lastScanAt' | 'pipelineName' | 'runsLast30d' | 'scanScore';
24
+ }
25
+ export type ListPipelineExplorerOkResponse = PipelineexplorerListResponse;
26
+ export type ListPipelineExplorerErrorResponse = SharedError;
27
+ export interface ListPipelineExplorerProps extends Omit<FetcherOptions<ListPipelineExplorerQueryQueryParams, unknown>, 'url'> {
28
+ queryParams: ListPipelineExplorerQueryQueryParams;
29
+ }
30
+ export interface ListPipelineExplorerResponseContainer {
31
+ body: ListPipelineExplorerOkResponse;
32
+ headers: Headers;
33
+ }
34
+ export declare function listPipelineExplorer(props: ListPipelineExplorerProps): Promise<ListPipelineExplorerResponseContainer>;
35
+ /**
36
+ * lists pipelines collected for an account; data is collected asynchronously and served from the last completed snapshot
37
+ */
38
+ export declare function useListPipelineExplorerQuery(props: ListPipelineExplorerProps, options?: Omit<UseQueryOptions<ListPipelineExplorerResponseContainer, ListPipelineExplorerErrorResponse>, 'queryKey' | 'queryFn'>): import("@tanstack/react-query").UseQueryResult<ListPipelineExplorerResponseContainer, SharedError>;
@@ -0,0 +1,14 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ import { useQuery } from '@tanstack/react-query';
5
+ import { fetcher } from '../../../../custom-fetcher/index.js';
6
+ export function listPipelineExplorer(props) {
7
+ return fetcher(Object.assign({ url: `/v3/pipeline-explorer`, method: 'GET' }, props));
8
+ }
9
+ /**
10
+ * lists pipelines collected for an account; data is collected asynchronously and served from the last completed snapshot
11
+ */
12
+ export function useListPipelineExplorerQuery(props, options) {
13
+ return useQuery(['listPipelineExplorer', props.queryParams], ({ signal }) => listPipelineExplorer(Object.assign(Object.assign({}, props), { signal })), options);
14
+ }
@@ -404,6 +404,8 @@ export type { ListMachineChaosInfraErrorResponse, ListMachineChaosInfraOkRespons
404
404
  export { listMachineChaosInfra, useListMachineChaosInfraQuery, } from './hooks/useListMachineChaosInfraQuery';
405
405
  export type { ListOnboardedServicesErrorResponse, ListOnboardedServicesOkResponse, ListOnboardedServicesProps, ListOnboardedServicesQueryPathParams, ListOnboardedServicesQueryQueryParams, } from './hooks/useListOnboardedServicesQuery';
406
406
  export { listOnboardedServices, useListOnboardedServicesQuery, } from './hooks/useListOnboardedServicesQuery';
407
+ export type { ListPipelineExplorerErrorResponse, ListPipelineExplorerOkResponse, ListPipelineExplorerProps, ListPipelineExplorerQueryQueryParams, } from './hooks/useListPipelineExplorerQuery';
408
+ export { listPipelineExplorer, useListPipelineExplorerQuery, } from './hooks/useListPipelineExplorerQuery';
407
409
  export type { ListPipelineOnboardingErrorResponse, ListPipelineOnboardingOkResponse, ListPipelineOnboardingProps, ListPipelineOnboardingQueryQueryParams, } from './hooks/useListPipelineOnboardingQuery';
408
410
  export { listPipelineOnboarding, useListPipelineOnboardingQuery, } from './hooks/useListPipelineOnboardingQuery';
409
411
  export type { ListProbeExecutionsErrorResponse, ListProbeExecutionsOkResponse, ListProbeExecutionsProps, ListProbeExecutionsQueryPathParams, ListProbeExecutionsQueryQueryParams, } from './hooks/useListProbeExecutionsQuery';
@@ -650,6 +652,7 @@ export type { ChaosHubAuthType } from './schemas/ChaosHubAuthType';
650
652
  export type { ChaosHubConnectorScope } from './schemas/ChaosHubConnectorScope';
651
653
  export type { ChaosInfrastructureV2ChaosInfraV2 } from './schemas/ChaosInfrastructureV2ChaosInfraV2';
652
654
  export type { ChaosInfrastructureV2ChaosInfraV2Spec } from './schemas/ChaosInfrastructureV2ChaosInfraV2Spec';
655
+ export type { ChaosInfrastructureV2HelperDaemonSetConfig } from './schemas/ChaosInfrastructureV2HelperDaemonSetConfig';
653
656
  export type { ChaosInfrastructureV2InfraScope } from './schemas/ChaosInfrastructureV2InfraScope';
654
657
  export type { ChaosInfrastructureV2InfraType } from './schemas/ChaosInfrastructureV2InfraType';
655
658
  export type { ChaosInfrastructureV2K8sInfraV2SpecIdentifiers } from './schemas/ChaosInfrastructureV2K8sInfraV2SpecIdentifiers';
@@ -1083,6 +1086,7 @@ export type { InfraV2Env } from './schemas/InfraV2Env';
1083
1086
  export type { InfraV2EnvValueFrom } from './schemas/InfraV2EnvValueFrom';
1084
1087
  export type { InfraV2GetKubernetesInfrastructureV2YamlRequest } from './schemas/InfraV2GetKubernetesInfrastructureV2YamlRequest';
1085
1088
  export type { InfraV2GetKubernetesInfrastructureV2YamlResponse } from './schemas/InfraV2GetKubernetesInfrastructureV2YamlResponse';
1089
+ export type { InfraV2HelperDaemonSetConfig } from './schemas/InfraV2HelperDaemonSetConfig';
1086
1090
  export type { InfraV2Identifiers } from './schemas/InfraV2Identifiers';
1087
1091
  export type { InfraV2InfraScope } from './schemas/InfraV2InfraScope';
1088
1092
  export type { InfraV2InfraStatus } from './schemas/InfraV2InfraStatus';
@@ -1201,6 +1205,13 @@ export type { OnboardingAvailableOnboardedCount } from './schemas/OnboardingAvai
1201
1205
  export type { OnboardingOnboardedCount } from './schemas/OnboardingOnboardedCount';
1202
1206
  export type { OnboardingStats } from './schemas/OnboardingStats';
1203
1207
  export type { OnboardingStatsResponse } from './schemas/OnboardingStatsResponse';
1208
+ export type { PipelineexplorerItemResponse } from './schemas/PipelineexplorerItemResponse';
1209
+ export type { PipelineexplorerLatestStats } from './schemas/PipelineexplorerLatestStats';
1210
+ export type { PipelineexplorerListResponse } from './schemas/PipelineexplorerListResponse';
1211
+ export type { PipelineexplorerMetadata } from './schemas/PipelineexplorerMetadata';
1212
+ export type { PipelineexplorerProgress } from './schemas/PipelineexplorerProgress';
1213
+ export type { PipelineexplorerScanInfo } from './schemas/PipelineexplorerScanInfo';
1214
+ export type { PipelineexplorerStats } from './schemas/PipelineexplorerStats';
1204
1215
  export type { PipelineonboardingInfrastructureOnboardingMapping } from './schemas/PipelineonboardingInfrastructureOnboardingMapping';
1205
1216
  export type { PipelineonboardingInfrastructuresStatus } from './schemas/PipelineonboardingInfrastructuresStatus';
1206
1217
  export type { PipelineonboardingListPipelineOnboardingResponse } from './schemas/PipelineonboardingListPipelineOnboardingResponse';
@@ -201,6 +201,7 @@ export { listK8sInfrasV2, useListK8sInfrasV2Mutation } from './hooks/useListK8sI
201
201
  export { listLegacyKubernetesChaosInfra, useListLegacyKubernetesChaosInfraMutation, } from './hooks/useListLegacyKubernetesChaosInfraMutation';
202
202
  export { listMachineChaosInfra, useListMachineChaosInfraQuery, } from './hooks/useListMachineChaosInfraQuery';
203
203
  export { listOnboardedServices, useListOnboardedServicesQuery, } from './hooks/useListOnboardedServicesQuery';
204
+ export { listPipelineExplorer, useListPipelineExplorerQuery, } from './hooks/useListPipelineExplorerQuery';
204
205
  export { listPipelineOnboarding, useListPipelineOnboardingQuery, } from './hooks/useListPipelineOnboardingQuery';
205
206
  export { listProbeExecutions, useListProbeExecutionsQuery, } from './hooks/useListProbeExecutionsQuery';
206
207
  export { listProbeMetadata, useListProbeMetadataQuery } from './hooks/useListProbeMetadataQuery';
@@ -0,0 +1,6 @@
1
+ export interface ChaosInfrastructureV2HelperDaemonSetConfig {
2
+ containerRuntime?: string;
3
+ netnsPath?: string;
4
+ socketPath?: string;
5
+ sysPath?: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,3 +1,4 @@
1
+ import type { ChaosInfrastructureV2HelperDaemonSetConfig } from '../schemas/ChaosInfrastructureV2HelperDaemonSetConfig';
1
2
  import type { ChaosInfrastructureV2InfraScope } from '../schemas/ChaosInfrastructureV2InfraScope';
2
3
  import type { ChaosInfrastructureV2InfraType } from '../schemas/ChaosInfrastructureV2InfraType';
3
4
  export interface ChaosInfrastructureV2K8sInfraV2SpecIdentifiers {
@@ -7,6 +8,8 @@ export interface ChaosInfrastructureV2K8sInfraV2SpecIdentifiers {
7
8
  };
8
9
  discoveryAgentId?: string;
9
10
  emissaryURL?: string;
11
+ enableHelperDaemonSet?: boolean;
12
+ helperDaemonSetConfig?: ChaosInfrastructureV2HelperDaemonSetConfig;
10
13
  label?: {
11
14
  [key: string]: string;
12
15
  };
@@ -0,0 +1,20 @@
1
+ export interface InfraV2HelperDaemonSetConfig {
2
+ /**
3
+ * ContainerRuntime selects the node CRI: "containerd" (default) or "crio".
4
+ */
5
+ containerRuntime?: string;
6
+ /**
7
+ * NetnsPath is the host network-namespace path (default /var/run/netns).
8
+ */
9
+ netnsPath?: string;
10
+ /**
11
+ * SocketPath is the CRI socket path on the host, e.g.
12
+ * /run/containerd/containerd.sock. The parent directory is mounted into
13
+ * the DaemonSet so crictl can reach the node CRI.
14
+ */
15
+ socketPath?: string;
16
+ /**
17
+ * SysPath is the host /sys mount path (default /sys).
18
+ */
19
+ sysPath?: string;
20
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,5 +1,6 @@
1
1
  import type { InfraV2UserDetails } from '../schemas/InfraV2UserDetails';
2
2
  import type { InfraV2Env } from '../schemas/InfraV2Env';
3
+ import type { InfraV2HelperDaemonSetConfig } from '../schemas/InfraV2HelperDaemonSetConfig';
3
4
  import type { InfraV2Identifiers } from '../schemas/InfraV2Identifiers';
4
5
  import type { ImageRegistryImageRegistryV2 } from '../schemas/ImageRegistryImageRegistryV2';
5
6
  import type { InfraV2InfraScope } from '../schemas/InfraV2InfraScope';
@@ -27,6 +28,8 @@ export interface InfraV2KubernetesInfrastructureV2Details {
27
28
  env?: InfraV2Env[];
28
29
  environmentID?: string;
29
30
  harnessInfraType?: string;
31
+ helperDaemonSetConfig?: InfraV2HelperDaemonSetConfig;
32
+ helperNodeSelectorKeys?: string[];
30
33
  identifier?: InfraV2Identifiers;
31
34
  identity?: string;
32
35
  imageRegistry?: ImageRegistryImageRegistryV2;
@@ -39,6 +42,7 @@ export interface InfraV2KubernetesInfrastructureV2Details {
39
42
  isAIEnabled?: boolean;
40
43
  isAutopilotEnabled?: boolean;
41
44
  isChaosEnabled?: boolean;
45
+ isHelperDaemonSetEnabled?: boolean;
42
46
  k8sConnectorID?: string;
43
47
  label?: {
44
48
  [key: string]: string;
@@ -1,4 +1,5 @@
1
1
  import type { InfraV2Env } from '../schemas/InfraV2Env';
2
+ import type { InfraV2HelperDaemonSetConfig } from '../schemas/InfraV2HelperDaemonSetConfig';
2
3
  import type { InfraV2Identifiers } from '../schemas/InfraV2Identifiers';
3
4
  import type { ImageRegistryImageRegistryV2 } from '../schemas/ImageRegistryImageRegistryV2';
4
5
  import type { InfraV2InfraScope } from '../schemas/InfraV2InfraScope';
@@ -19,8 +20,11 @@ export interface InfraV2RegisterInfrastructureV2Request {
19
20
  correlationId?: string;
20
21
  description?: string;
21
22
  discoveryAgentID?: string;
23
+ enableHelperDaemonSet?: boolean;
22
24
  env?: InfraV2Env[];
23
25
  environmentID?: string;
26
+ helperDaemonSetConfig?: InfraV2HelperDaemonSetConfig;
27
+ helperNodeSelectorKeys?: string[];
24
28
  identifier?: InfraV2Identifiers;
25
29
  identity?: string;
26
30
  imageRegistry?: ImageRegistryImageRegistryV2;
@@ -1,4 +1,5 @@
1
1
  import type { InfraV2Env } from '../schemas/InfraV2Env';
2
+ import type { InfraV2HelperDaemonSetConfig } from '../schemas/InfraV2HelperDaemonSetConfig';
2
3
  import type { ImageRegistryImageRegistryV2 } from '../schemas/ImageRegistryImageRegistryV2';
3
4
  import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfiguration';
4
5
  import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
@@ -15,8 +16,11 @@ export interface InfraV2UpdateKubernetesInfrastructureV2Request {
15
16
  containers?: string;
16
17
  correlationId?: string;
17
18
  description?: string;
19
+ enableHelperDaemonSet?: boolean;
18
20
  env?: InfraV2Env[];
19
21
  environmentID?: string;
22
+ helperDaemonSetConfig?: InfraV2HelperDaemonSetConfig;
23
+ helperNodeSelectorKeys?: string[];
20
24
  identity?: string;
21
25
  imageRegistry?: ImageRegistryImageRegistryV2;
22
26
  infraNamespace?: string;
@@ -0,0 +1,13 @@
1
+ import type { PipelineexplorerScanInfo } from '../schemas/PipelineexplorerScanInfo';
2
+ export interface PipelineexplorerItemResponse {
3
+ lastRunAt?: number;
4
+ lastRunStatus?: string;
5
+ orgIdentifier?: string;
6
+ orgName?: string;
7
+ pipelineIdentifier?: string;
8
+ pipelineName?: string;
9
+ projectIdentifier?: string;
10
+ projectName?: string;
11
+ runsLast30d?: number;
12
+ scan?: PipelineexplorerScanInfo;
13
+ }
@@ -0,0 +1,5 @@
1
+ import type { RiskRiskSummary } from '../schemas/RiskRiskSummary';
2
+ export interface PipelineexplorerLatestStats {
3
+ risks?: RiskRiskSummary;
4
+ score?: number;
5
+ }
@@ -0,0 +1,11 @@
1
+ import type { PipelineexplorerItemResponse } from '../schemas/PipelineexplorerItemResponse';
2
+ import type { PipelineexplorerMetadata } from '../schemas/PipelineexplorerMetadata';
3
+ import type { SharedPaginationResponse } from '../schemas/SharedPaginationResponse';
4
+ import type { PipelineexplorerStats } from '../schemas/PipelineexplorerStats';
5
+ export interface PipelineexplorerListResponse {
6
+ correlationID?: string;
7
+ data?: PipelineexplorerItemResponse[];
8
+ metadata?: PipelineexplorerMetadata;
9
+ pagination?: SharedPaginationResponse;
10
+ stats?: PipelineexplorerStats;
11
+ }
@@ -0,0 +1,7 @@
1
+ import type { PipelineexplorerProgress } from '../schemas/PipelineexplorerProgress';
2
+ export interface PipelineexplorerMetadata {
3
+ collectedAt?: number;
4
+ message?: string;
5
+ progress?: PipelineexplorerProgress;
6
+ status?: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ export interface PipelineexplorerProgress {
2
+ orgs?: string[];
3
+ pipelines?: string[];
4
+ projects?: string[];
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { RiskPipelineInfrastructure } from '../schemas/RiskPipelineInfrastructure';
2
+ import type { PipelineexplorerLatestStats } from '../schemas/PipelineexplorerLatestStats';
3
+ export interface PipelineexplorerScanInfo {
4
+ identity?: string;
5
+ infras?: RiskPipelineInfrastructure[];
6
+ lastScanAt?: number;
7
+ latestStats?: PipelineexplorerLatestStats;
8
+ scanCount?: number;
9
+ status?: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ export interface PipelineexplorerStats {
2
+ totalPipelines?: number;
3
+ totalPipelinesScanned?: number;
4
+ totalScans?: number;
5
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -1,4 +1,5 @@
1
1
  import type { InfraV2Env } from '../schemas/InfraV2Env';
2
+ import type { InfraV2HelperDaemonSetConfig } from '../schemas/InfraV2HelperDaemonSetConfig';
2
3
  import type { V1PullPolicy } from '../schemas/V1PullPolicy';
3
4
  import type { InfraV2MtlsConfiguration } from '../schemas/InfraV2MtlsConfiguration';
4
5
  import type { InfraV2ProxyConfiguration } from '../schemas/InfraV2ProxyConfiguration';
@@ -12,7 +13,9 @@ export interface V2OnboardingChaosInfraAdvanceConfiguration {
12
13
  };
13
14
  autopilotEnabled?: boolean;
14
15
  containers?: string;
16
+ enableHelperDaemonSet?: boolean;
15
17
  env?: InfraV2Env[];
18
+ helperDaemonSetConfig?: InfraV2HelperDaemonSetConfig;
16
19
  helperNodeSelectorKeys?: string[];
17
20
  imagePullPolicy?: V1PullPolicy;
18
21
  insecureSkipVerify?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-chaos-manager-client",
3
- "version": "1.88.1",
3
+ "version": "1.89.0",
4
4
  "description": "Harness React Chaos Manager Service Client - APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",