@k8slens/extensions 6.1.1-git.a7ea891458.0 → 6.1.1-git.b193621a68.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 (130) hide show
  1. package/dist/src/common/app-paths/app-paths-channel.d.ts +8 -0
  2. package/dist/src/common/application-update/restart-and-install-update-channel.d.ts +7 -0
  3. package/dist/src/common/fetch/download-binary.injectable.d.ts +8 -0
  4. package/dist/src/common/fetch/download-json.injectable.d.ts +8 -0
  5. package/dist/src/common/fetch/fetch.injectable.d.ts +2 -2
  6. package/dist/src/common/fetch/timeout-controller.d.ts +9 -0
  7. package/dist/src/common/front-end-routing/app-navigation-channel.d.ts +3 -0
  8. package/dist/src/common/front-end-routing/cluster-frame-navigation-channel.d.ts +3 -0
  9. package/dist/src/common/front-end-routing/routes/cluster/config/leases/leases-route.injectable.d.ts +6 -0
  10. package/dist/src/common/front-end-routing/routes/cluster/config/leases/navigate-to-leases.injectable.d.ts +2 -0
  11. package/dist/src/common/fs/exec-file.injectable.d.ts +7 -1
  12. package/dist/src/common/helm/{add-helm-repository-channel.injectable.d.ts → add-helm-repository-channel.d.ts} +6 -3
  13. package/dist/src/common/helm/get-active-helm-repositories-channel.d.ts +9 -0
  14. package/dist/src/common/helm/remove-helm-repository-channel.d.ts +9 -0
  15. package/dist/src/common/k8s-api/endpoints/index.d.ts +1 -0
  16. package/dist/src/common/k8s-api/endpoints/lease.api.d.ts +28 -0
  17. package/dist/src/common/k8s-api/endpoints/lease.api.injectable.d.ts +3 -0
  18. package/dist/src/common/rbac.d.ts +1 -1
  19. package/dist/src/common/root-frame/root-frame-rendered-channel.d.ts +7 -0
  20. package/dist/src/common/user-store/resolved-shell.injectable.d.ts +2 -0
  21. package/dist/src/common/utils/channel/enlist-message-channel-listener-injection-token.d.ts +3 -3
  22. package/dist/src/common/utils/channel/listening-on-message-channels.injectable.d.ts +6 -0
  23. package/dist/src/common/utils/channel/message-channel-listener-injection-token.d.ts +24 -6
  24. package/dist/src/common/utils/channel/message-to-channel-injection-token.d.ts +5 -6
  25. package/dist/src/common/utils/channel/request-channel-listener-injection-token.d.ts +8 -6
  26. package/dist/src/common/utils/channel/request-from-channel-injection-token.d.ts +5 -3
  27. package/dist/src/common/utils/disposer.d.ts +2 -1
  28. package/dist/src/common/utils/index.d.ts +0 -1
  29. package/dist/src/common/utils/resolve-system-proxy/resolve-system-proxy-channel.d.ts +7 -0
  30. package/dist/src/common/utils/sync-box/channel-listener.injectable.d.ts +8 -0
  31. package/dist/src/common/utils/sync-box/channels.d.ts +16 -0
  32. package/dist/src/common/utils/sync-box/handler.injectable.d.ts +5 -0
  33. package/dist/src/common/utils/type-narrowing.d.ts +1 -1
  34. package/dist/src/common/vars/build-semantic-version.injectable.d.ts +1 -1
  35. package/dist/src/extensions/extension-api.js +75 -53
  36. package/dist/src/features/cluster/delete-dialog/common/clear-as-deleting-channel.d.ts +8 -0
  37. package/dist/src/features/cluster/delete-dialog/common/delete-channel.d.ts +8 -0
  38. package/dist/src/features/cluster/delete-dialog/common/set-as-deleting-channel.d.ts +8 -0
  39. package/dist/src/features/cluster/delete-dialog/main/clear-as-deleting-channel-listener.injectable.d.ts +5 -0
  40. package/dist/src/features/cluster/delete-dialog/main/delete-channel-listener.injectable.d.ts +5 -0
  41. package/dist/src/features/cluster/delete-dialog/main/set-as-deleteing-channel-listener.injectable.d.ts +5 -0
  42. package/dist/src/features/navigation/reload-page/common/channel.d.ts +7 -0
  43. package/dist/src/features/navigation/reload-page/renderer/register-listener.global-override-for-injectable.d.ts +15 -0
  44. package/dist/src/features/navigation/reload-page/renderer/register-listener.injectable.d.ts +5 -0
  45. package/dist/src/main/app-paths/app-paths-request-channel-listener.injectable.d.ts +4 -3
  46. package/dist/src/main/application-update/restart-and-install-update/restart-and-install-update-listener.injectable.d.ts +3 -3
  47. package/dist/src/main/build-version/setup-channel.injectable.d.ts +5 -5
  48. package/dist/src/main/helm/exec-helm/exec-helm.injectable.d.ts +1 -1
  49. package/dist/src/main/helm/repositories/add-helm-repository/add-helm-repository-channel-listener.injectable.d.ts +3 -3
  50. package/dist/src/main/helm/repositories/get-active-helm-repositories/get-active-helm-repositories-channel-listener.injectable.d.ts +3 -3
  51. package/dist/src/main/helm/repositories/remove-helm-repository/remove-helm-repository-channel-listener.injectable.d.ts +3 -3
  52. package/dist/src/main/{utils/channel/message-to-channel.test.d.ts → shell-session/local-shell-session/techincal.test.d.ts} +0 -0
  53. package/dist/src/main/shell-session/shell-session.d.ts +11 -3
  54. package/dist/src/main/shell-session/spawn-pty.global-override-for-injectable.d.ts +5 -0
  55. package/dist/src/main/shell-session/spawn-pty.injectable.d.ts +11 -0
  56. package/dist/src/main/start-main-application/lens-window/application-window/create-lens-window.injectable.d.ts +1 -1
  57. package/dist/src/main/start-main-application/runnables/{root-frame-rendered-channel-listener/root-frame-rendered-channel-listener.injectable.d.ts → root-frame-has-rendered/channel-listener.injectable.d.ts} +3 -3
  58. package/dist/src/main/utils/channel/channel-listeners/enlist-message-channel-listener.injectable.d.ts +1 -1
  59. package/dist/src/main/utils/channel/channel-listeners/enlist-request-channel-listener.injectable.d.ts +5 -1
  60. package/dist/src/main/utils/channel/channel-listeners/listener-tokens.d.ts +20 -0
  61. package/dist/src/main/utils/channel/channel-listeners/listening-on-request-channels.injectable.d.ts +6 -0
  62. package/dist/src/main/utils/channel/channel-listeners/{start-listening-of-channels.injectable.d.ts → start-listening-on-channels.injectable.d.ts} +2 -2
  63. package/dist/src/main/utils/channel/message-to-channel.injectable.d.ts +2 -2
  64. package/dist/src/main/utils/clear-kube-env-vars.d.ts +1 -1
  65. package/dist/src/main/utils/resolve-system-proxy/resolve-system-proxy-channel-responder.injectable.d.ts +3 -3
  66. package/dist/src/main/utils/shell-env/compute-shell-environment.injectable.d.ts +9 -0
  67. package/dist/src/main/utils/shell-env/compute-unix-shell-environment.global-override-for-injectable.d.ts +9 -0
  68. package/dist/src/main/utils/shell-env/compute-unix-shell-environment.injectable.d.ts +7 -0
  69. package/dist/src/main/utils/sync-box/sync-box-initial-value-channel-listener.injectable.d.ts +7 -4
  70. package/dist/src/renderer/{utils/channel/request-from-channel.test.d.ts → components/+config-leases/index.d.ts} +2 -1
  71. package/dist/src/renderer/components/+config-leases/lease-details.d.ts +13 -0
  72. package/dist/src/renderer/components/+config-leases/leases-route-component.injectable.d.ts +13 -0
  73. package/dist/src/renderer/components/+config-leases/leases-sidebar-items.injectable.d.ts +10 -0
  74. package/dist/src/renderer/components/+config-leases/leases.d.ts +11 -0
  75. package/dist/src/renderer/components/+config-leases/store.d.ts +8 -0
  76. package/dist/src/renderer/components/+config-leases/store.injectable.d.ts +3 -0
  77. package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts +8 -1
  78. package/dist/src/renderer/components/+extensions/attempt-install/{create-temp-files-and-validate/create-temp-files-and-validate.injectable.d.ts → create-temp-files-and-validate.injectable.d.ts} +4 -4
  79. package/dist/src/renderer/components/+extensions/attempt-install/{get-extension-dest-folder/get-extension-dest-folder.injectable.d.ts → get-extension-dest-folder.injectable.d.ts} +1 -1
  80. package/dist/src/renderer/components/+extensions/attempt-install/{unpack-extension/unpack-extension.injectable.d.ts → unpack-extension.injectable.d.ts} +2 -2
  81. package/dist/src/renderer/components/+extensions/attempt-install/validate-package.d.ts +6 -0
  82. package/dist/src/renderer/components/+extensions/{attempt-installs/attempt-installs.injectable.d.ts → attempt-installs.injectable.d.ts} +0 -0
  83. package/dist/src/renderer/components/+extensions/install-on-drop.injectable.d.ts +3 -0
  84. package/dist/src/renderer/components/input/input.d.ts +2 -1
  85. package/dist/src/renderer/components/kube-object-details/kube-object-detail-items/implementations/lease-detail-item.injectable.d.ts +7 -0
  86. package/dist/src/renderer/components/status-bar/status-bar-item-injection-token.d.ts +1 -0
  87. package/dist/src/renderer/components/status-bar/status-bar-items.injectable.d.ts +6 -2
  88. package/dist/src/renderer/navigation/events.d.ts +0 -1
  89. package/dist/src/renderer/navigation/navigation-channel-listener.injectable.d.ts +3 -2
  90. package/dist/src/renderer/utils/channel/channel-listeners/enlist-message-channel-listener.injectable.d.ts +1 -1
  91. package/dist/src/renderer/utils/channel/message-to-channel.injectable.d.ts +2 -2
  92. package/dist/src/renderer/utils/channel/request-from-channel.injectable.d.ts +2 -1
  93. package/dist/src/renderer/utils/channel/send-to-main.injectable.d.ts +1 -2
  94. package/dist/src/renderer/utils/resolve-proxy/resolve-system-proxy.injectable.d.ts +1 -1
  95. package/dist/src/test-utils/channel-fakes/override-channels.d.ts +6 -1
  96. package/dist/src/test-utils/channel-fakes/override-messaging-from-main-to-window.d.ts +6 -1
  97. package/package.json +1 -1
  98. package/dist/src/common/app-paths/app-paths-channel.injectable.d.ts +0 -5
  99. package/dist/src/common/application-update/restart-and-install-update-channel/restart-and-install-update-channel.injectable.d.ts +0 -4
  100. package/dist/src/common/front-end-routing/app-navigation-channel.injectable.d.ts +0 -4
  101. package/dist/src/common/front-end-routing/cluster-frame-navigation-channel.injectable.d.ts +0 -4
  102. package/dist/src/common/helm/get-active-helm-repositories-channel.injectable.d.ts +0 -6
  103. package/dist/src/common/helm/remove-helm-repository-channel.injectable.d.ts +0 -5
  104. package/dist/src/common/root-frame-rendered-channel/root-frame-rendered-channel.injectable.d.ts +0 -4
  105. package/dist/src/common/utils/channel/enlist-request-channel-listener-injection-token.d.ts +0 -4
  106. package/dist/src/common/utils/channel/listening-of-channels.injectable.d.ts +0 -6
  107. package/dist/src/common/utils/channel/message-channel-injection-token.d.ts +0 -10
  108. package/dist/src/common/utils/channel/request-channel-injection-token.d.ts +0 -11
  109. package/dist/src/common/utils/downloadFile.d.ts +0 -18
  110. package/dist/src/common/utils/resolve-system-proxy/resolve-system-proxy-channel.injectable.d.ts +0 -4
  111. package/dist/src/common/utils/sync-box/sync-box-channel-listener.injectable.d.ts +0 -4
  112. package/dist/src/common/utils/sync-box/sync-box-channel.injectable.d.ts +0 -7
  113. package/dist/src/common/utils/sync-box/sync-box-initial-value-channel.injectable.d.ts +0 -7
  114. package/dist/src/common/utils/tentative-parse-json.d.ts +0 -1
  115. package/dist/src/common/utils/tentative-stringify-json.d.ts +0 -1
  116. package/dist/src/features/cluster/delete-dialog/common/clear-as-deleting-channel.injectable.d.ts +0 -5
  117. package/dist/src/features/cluster/delete-dialog/common/delete-channel.injectable.d.ts +0 -5
  118. package/dist/src/features/cluster/delete-dialog/common/set-as-deleting-channel.injectable.d.ts +0 -5
  119. package/dist/src/features/cluster/delete-dialog/main/clear-as-deleteing-channel-handler.injectable.d.ts +0 -5
  120. package/dist/src/features/cluster/delete-dialog/main/delete-channel-handler.injectable.d.ts +0 -5
  121. package/dist/src/features/cluster/delete-dialog/main/set-as-deleteing-channel-handler.injectable.d.ts +0 -5
  122. package/dist/src/main/start-main-application/lens-window/application-window/send-to-channel-in-electron-browser-window.injectable.d.ts +0 -4
  123. package/dist/src/main/utils/shell-env.d.ts +0 -15
  124. package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.d.ts +0 -22
  125. package/dist/src/renderer/components/+extensions/attempt-install/install-request.d.ts +0 -9
  126. package/dist/src/renderer/components/+extensions/attempt-install/validate-package/validate-package.d.ts +0 -6
  127. package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.d.ts +0 -5
  128. package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.injectable.d.ts +0 -2
  129. package/dist/src/renderer/utils/channel/channel-listeners/enlist-request-channel-listener.injectable.d.ts +0 -2
  130. package/dist/src/renderer/utils/channel/message-to-channel.test.d.ts +0 -5
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { AppPaths } from "./app-path-injection-token";
6
+ import type { RequestChannel } from "../utils/channel/request-channel-listener-injection-token";
7
+ export declare type AppPathsChannel = RequestChannel<void, AppPaths>;
8
+ export declare const appPathsChannel: AppPathsChannel;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { MessageChannel } from "../utils/channel/message-channel-listener-injection-token";
6
+ export declare type RestartAndInstallUpdateChannel = MessageChannel<void>;
7
+ export declare const restartAndInstallUpdateChannel: RestartAndInstallUpdateChannel;
@@ -0,0 +1,8 @@
1
+ /// <reference types="node" />
2
+ import type { AsyncResult } from "../utils/async-result";
3
+ export interface DownloadBinaryOptions {
4
+ signal?: AbortSignal | null | undefined;
5
+ }
6
+ export declare type DownloadBinary = (url: string, opts?: DownloadBinaryOptions) => Promise<AsyncResult<Buffer, string>>;
7
+ declare const downloadBinaryInjectable: import("@ogre-tools/injectable").Injectable<DownloadBinary, unknown, void>;
8
+ export default downloadBinaryInjectable;
@@ -0,0 +1,8 @@
1
+ import type { JsonValue } from "type-fest";
2
+ import type { AsyncResult } from "../utils/async-result";
3
+ export interface DownloadJsonOptions {
4
+ signal?: AbortSignal | null | undefined;
5
+ }
6
+ export declare type DownloadJson = (url: string, opts?: DownloadJsonOptions) => Promise<AsyncResult<JsonValue, string>>;
7
+ declare const downloadJsonInjectable: import("@ogre-tools/injectable").Injectable<DownloadJson, unknown, void>;
8
+ export default downloadJsonInjectable;
@@ -1,4 +1,4 @@
1
- import type { RequestInfo, RequestInit, Response } from "node-fetch";
2
- export declare type Fetch = (url: RequestInfo, init?: RequestInit) => Promise<Response>;
1
+ import type { RequestInit, Response } from "node-fetch";
2
+ export declare type Fetch = (url: string, init?: RequestInit) => Promise<Response>;
3
3
  declare const fetchInjectable: import("@ogre-tools/injectable").Injectable<Fetch, unknown, void>;
4
4
  export default fetchInjectable;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ /**
6
+ * Creates an AbortController with an associated timeout
7
+ * @param timeout The number of milliseconds before this controller will auto abort
8
+ */
9
+ export declare function withTimeout(timeout: number): AbortController;
@@ -0,0 +1,3 @@
1
+ import type { MessageChannel } from "../utils/channel/message-channel-listener-injection-token";
2
+ export declare type AppNavigationChannel = MessageChannel<string>;
3
+ export declare const appNavigationChannel: AppNavigationChannel;
@@ -0,0 +1,3 @@
1
+ import type { MessageChannel } from "../utils/channel/message-channel-listener-injection-token";
2
+ export declare type ClusterFrameNavigationChannel = MessageChannel<string>;
3
+ export declare const clusterFrameNavigationChannel: ClusterFrameNavigationChannel;
@@ -0,0 +1,6 @@
1
+ declare const leasesRouteInjectable: import("@ogre-tools/injectable").Injectable<{
2
+ path: string;
3
+ clusterFrame: boolean;
4
+ isEnabled: import("mobx").IComputedValue<boolean>;
5
+ }, import("../../../../front-end-route-injection-token").Route<unknown>, void>;
6
+ export default leasesRouteInjectable;
@@ -0,0 +1,2 @@
1
+ declare const navigateToLeasesInjectable: import("@ogre-tools/injectable").Injectable<() => void, unknown, void>;
2
+ export default navigateToLeasesInjectable;
@@ -1,5 +1,11 @@
1
1
  /// <reference types="node" />
2
2
  import type { ExecFileOptions } from "child_process";
3
- export declare type ExecFile = (filePath: string, args: string[], options: ExecFileOptions) => Promise<string>;
3
+ import type { AsyncResult } from "../utils/async-result";
4
+ export interface ExecFile {
5
+ (filePath: string, args: string[], options: ExecFileOptions): Promise<AsyncResult<string, {
6
+ stderr: string;
7
+ error: Error;
8
+ }>>;
9
+ }
4
10
  declare const execFileInjectable: import("@ogre-tools/injectable").Injectable<ExecFile, unknown, void>;
5
11
  export default execFileInjectable;
@@ -1,6 +1,9 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
1
5
  import type { HelmRepo } from "./helm-repo";
2
- import type { RequestChannel } from "../utils/channel/request-channel-injection-token";
3
6
  import type { AsyncResult } from "../utils/async-result";
7
+ import type { RequestChannel } from "../utils/channel/request-channel-listener-injection-token";
4
8
  export declare type AddHelmRepositoryChannel = RequestChannel<HelmRepo, AsyncResult<string>>;
5
- declare const addHelmRepositoryChannelInjectable: import("@ogre-tools/injectable").Injectable<AddHelmRepositoryChannel, RequestChannel<any, any>, void>;
6
- export default addHelmRepositoryChannelInjectable;
9
+ export declare const addHelmRepositoryChannel: AddHelmRepositoryChannel;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { HelmRepo } from "./helm-repo";
6
+ import type { AsyncResult } from "../utils/async-result";
7
+ import type { RequestChannel } from "../utils/channel/request-channel-listener-injection-token";
8
+ export declare type GetActiveHelmRepositoriesChannel = RequestChannel<void, AsyncResult<HelmRepo[]>>;
9
+ export declare const getActiveHelmRepositoriesChannel: GetActiveHelmRepositoriesChannel;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { AsyncResult } from "../utils/async-result";
6
+ import type { RequestChannel } from "../utils/channel/request-channel-listener-injection-token";
7
+ import type { HelmRepo } from "./helm-repo";
8
+ export declare type RemoveHelmRepositoryChannel = RequestChannel<HelmRepo, AsyncResult<string, string>>;
9
+ export declare const removeHelmRepositoryChannel: RemoveHelmRepositoryChannel;
@@ -15,6 +15,7 @@ export * from "./events.api";
15
15
  export * from "./horizontal-pod-autoscaler.api";
16
16
  export * from "./ingress.api";
17
17
  export * from "./job.api";
18
+ export * from "./lease.api";
18
19
  export * from "./limit-range.api";
19
20
  export * from "./namespace.api";
20
21
  export * from "./network-policy.api";
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { DerivedKubeApiOptions, IgnoredKubeApiOptions } from "../kube-api";
6
+ import { KubeApi } from "../kube-api";
7
+ import type { NamespaceScopedMetadata } from "../kube-object";
8
+ import { KubeObject } from "../kube-object";
9
+ export interface LeaseSpec {
10
+ acquireTime?: string;
11
+ holderIdentity: string;
12
+ leaseDurationSeconds: number;
13
+ leaseTransitions?: number;
14
+ renewTime: string;
15
+ }
16
+ export declare class Lease extends KubeObject<NamespaceScopedMetadata, void, LeaseSpec> {
17
+ static readonly kind = "Lease";
18
+ static readonly namespaced = true;
19
+ static readonly apiBase = "/apis/coordination.k8s.io/v1/leases";
20
+ getAcquireTime(): string;
21
+ getHolderIdentity(): string;
22
+ getLeaseDurationSeconds(): number;
23
+ getLeaseTransitions(): number | undefined;
24
+ getRenewTime(): string;
25
+ }
26
+ export declare class LeaseApi extends KubeApi<Lease> {
27
+ constructor(opts?: DerivedKubeApiOptions & IgnoredKubeApiOptions);
28
+ }
@@ -0,0 +1,3 @@
1
+ import { LeaseApi } from "./lease.api";
2
+ declare const leaseApiInjectable: import("@ogre-tools/injectable").Injectable<LeaseApi, import("../kube-api").KubeApi<any, any>, void>;
3
+ export default leaseApiInjectable;
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) OpenLens Authors. All rights reserved.
3
3
  * Licensed under MIT License. See LICENSE in root directory for more information.
4
4
  */
5
- export declare type KubeResource = "namespaces" | "nodes" | "events" | "resourcequotas" | "services" | "limitranges" | "secrets" | "configmaps" | "ingresses" | "networkpolicies" | "persistentvolumeclaims" | "persistentvolumes" | "storageclasses" | "pods" | "daemonsets" | "deployments" | "statefulsets" | "replicasets" | "jobs" | "cronjobs" | "endpoints" | "customresourcedefinitions" | "horizontalpodautoscalers" | "podsecuritypolicies" | "poddisruptionbudgets" | "priorityclasses" | "runtimeclasses" | "roles" | "clusterroles" | "rolebindings" | "clusterrolebindings" | "serviceaccounts";
5
+ export declare type KubeResource = "namespaces" | "nodes" | "events" | "resourcequotas" | "services" | "limitranges" | "leases" | "secrets" | "configmaps" | "ingresses" | "networkpolicies" | "persistentvolumeclaims" | "persistentvolumes" | "storageclasses" | "pods" | "daemonsets" | "deployments" | "statefulsets" | "replicasets" | "jobs" | "cronjobs" | "endpoints" | "customresourcedefinitions" | "horizontalpodautoscalers" | "podsecuritypolicies" | "poddisruptionbudgets" | "priorityclasses" | "runtimeclasses" | "roles" | "clusterroles" | "rolebindings" | "clusterrolebindings" | "serviceaccounts";
6
6
  export interface KubeApiResource extends KubeApiResourceData {
7
7
  apiName: KubeResource;
8
8
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { MessageChannel } from "../utils/channel/message-channel-listener-injection-token";
6
+ export declare type RootFrameHasRenderedChannel = MessageChannel<void>;
7
+ export declare const rootFrameHasRenderedChannel: RootFrameHasRenderedChannel;
@@ -0,0 +1,2 @@
1
+ declare const resolvedShellInjectable: import("@ogre-tools/injectable").Injectable<string | undefined, unknown, void>;
2
+ export default resolvedShellInjectable;
@@ -1,4 +1,4 @@
1
- import type { MessageChannel } from "./message-channel-injection-token";
2
- import type { MessageChannelListener } from "./message-channel-listener-injection-token";
3
- export declare type EnlistMessageChannelListener = <TChannel extends MessageChannel<any>>(listener: MessageChannelListener<TChannel>) => () => void;
1
+ import type { Disposer } from "../disposer";
2
+ import type { MessageChannel, MessageChannelListener } from "./message-channel-listener-injection-token";
3
+ export declare type EnlistMessageChannelListener = (listener: MessageChannelListener<MessageChannel<unknown>>) => Disposer;
4
4
  export declare const enlistMessageChannelListenerInjectionToken: import("@ogre-tools/injectable").InjectionToken<EnlistMessageChannelListener, void>;
@@ -0,0 +1,6 @@
1
+ declare const listeningOnMessageChannelsInjectable: import("@ogre-tools/injectable").Injectable<{
2
+ readonly started: boolean;
3
+ start: () => Promise<void>;
4
+ stop: () => Promise<void>;
5
+ }, unknown, void>;
6
+ export default listeningOnMessageChannelsInjectable;
@@ -1,7 +1,25 @@
1
- import type { SetRequired } from "type-fest";
2
- import type { MessageChannel } from "./message-channel-injection-token";
3
- export interface MessageChannelListener<TChannel extends MessageChannel<any>> {
4
- channel: TChannel;
5
- handler: (value: SetRequired<TChannel, "_messageSignature">["_messageSignature"]) => void;
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { DiContainerForInjection } from "@ogre-tools/injectable";
6
+ export interface MessageChannel<Message> {
7
+ id: string;
8
+ _messageSignature?: Message;
6
9
  }
7
- export declare const messageChannelListenerInjectionToken: import("@ogre-tools/injectable").InjectionToken<MessageChannelListener<MessageChannel<any>>, void>;
10
+ export declare type MessageChannelHandler<Channel> = Channel extends MessageChannel<infer Message> ? (message: Message) => void : never;
11
+ export interface MessageChannelListener<Channel> {
12
+ channel: Channel;
13
+ handler: MessageChannelHandler<Channel>;
14
+ }
15
+ export declare const messageChannelListenerInjectionToken: import("@ogre-tools/injectable").InjectionToken<MessageChannelListener<MessageChannel<unknown>>, void>;
16
+ export interface GetMessageChannelListenerInfo<Channel extends MessageChannel<Message>, Message> {
17
+ id: string;
18
+ channel: Channel;
19
+ handler: (di: DiContainerForInjection) => MessageChannelHandler<Channel>;
20
+ causesSideEffects?: boolean;
21
+ }
22
+ export declare function getMessageChannelListenerInjectable<Channel extends MessageChannel<Message>, Message>(info: GetMessageChannelListenerInfo<Channel, Message>): import("@ogre-tools/injectable").Injectable<{
23
+ channel: Channel;
24
+ handler: MessageChannelHandler<Channel>;
25
+ }, MessageChannelListener<MessageChannel<unknown>>, void>;
@@ -1,7 +1,6 @@
1
- import type { SetRequired } from "type-fest";
2
- import type { MessageChannel } from "./message-channel-injection-token";
3
- export interface MessageToChannel {
4
- <TChannel extends MessageChannel<TMessage>, TMessage extends void>(channel: TChannel): void;
5
- <TChannel extends MessageChannel<any>>(channel: TChannel, message: SetRequired<TChannel, "_messageSignature">["_messageSignature"]): void;
1
+ import type { MessageChannel } from "./message-channel-listener-injection-token";
2
+ export interface SendMessageToChannel {
3
+ (channel: MessageChannel<void>): void;
4
+ <Message>(channel: MessageChannel<Message>, message: Message): void;
6
5
  }
7
- export declare const messageToChannelInjectionToken: import("@ogre-tools/injectable").InjectionToken<MessageToChannel, void>;
6
+ export declare const sendMessageToChannelInjectionToken: import("@ogre-tools/injectable").InjectionToken<SendMessageToChannel, void>;
@@ -1,7 +1,9 @@
1
- import type { SetRequired } from "type-fest";
2
- import type { RequestChannel } from "./request-channel-injection-token";
3
- export interface RequestChannelListener<TChannel extends RequestChannel<any, any>> {
4
- channel: TChannel;
5
- handler: (request: SetRequired<TChannel, "_requestSignature">["_requestSignature"]) => SetRequired<TChannel, "_responseSignature">["_responseSignature"] | Promise<SetRequired<TChannel, "_responseSignature">["_responseSignature"]>;
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ export interface RequestChannel<Request, Response> {
6
+ id: string;
7
+ _requestSignature?: Request;
8
+ _responseSignature?: Response;
6
9
  }
7
- export declare const requestChannelListenerInjectionToken: import("@ogre-tools/injectable").InjectionToken<RequestChannelListener<RequestChannel<any, any>>, void>;
@@ -1,4 +1,6 @@
1
- import type { SetRequired } from "type-fest";
2
- import type { RequestChannel } from "./request-channel-injection-token";
3
- export declare type RequestFromChannel = <TChannel extends RequestChannel<any, any>>(channel: TChannel, ...request: TChannel["_requestSignature"] extends void ? [] : [SetRequired<TChannel, "_requestSignature">["_requestSignature"]]) => Promise<SetRequired<TChannel, "_responseSignature">["_responseSignature"]>;
1
+ import type { RequestChannel } from "./request-channel-listener-injection-token";
2
+ export interface RequestFromChannel {
3
+ <Request, Response>(channel: RequestChannel<Request, Response>, request: Request): Promise<Response>;
4
+ <Response>(channel: RequestChannel<void, Response>): Promise<Response>;
5
+ }
4
6
  export declare const requestFromChannelInjectionToken: import("@ogre-tools/injectable").InjectionToken<RequestFromChannel, void>;
@@ -2,6 +2,7 @@
2
2
  * Copyright (c) OpenLens Authors. All rights reserved.
3
3
  * Licensed under MIT License. See LICENSE in root directory for more information.
4
4
  */
5
+ import type { SingleOrMany } from "./types";
5
6
  export interface Disposer {
6
7
  (): void;
7
8
  }
@@ -11,4 +12,4 @@ export interface Disposable {
11
12
  export interface ExtendableDisposer extends Disposer {
12
13
  push(...vals: (Disposer | ExtendableDisposer | Disposable)[]): void;
13
14
  }
14
- export declare function disposer(...items: (Disposer | Disposable | undefined | null)[]): ExtendableDisposer;
15
+ export declare function disposer(...items: SingleOrMany<Disposer | Disposable | undefined | null>[]): ExtendableDisposer;
@@ -13,7 +13,6 @@ export * from "./convertMemory";
13
13
  export * from "./debouncePromise";
14
14
  export * from "./delay";
15
15
  export * from "./disposer";
16
- export * from "./downloadFile";
17
16
  export * from "./escapeRegExp";
18
17
  export * from "./formatDuration";
19
18
  export * from "./getRandId";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { RequestChannel } from "../channel/request-channel-listener-injection-token";
6
+ export declare type ResolveSystemProxyChannel = RequestChannel<string, string>;
7
+ export declare const resolveSystemProxyChannel: ResolveSystemProxyChannel;
@@ -0,0 +1,8 @@
1
+ declare const syncBoxChannelListenerInjectable: import("@ogre-tools/injectable").Injectable<{
2
+ channel: import("./channels").SyncBoxChannel;
3
+ handler: (message: {
4
+ id: string;
5
+ value: any;
6
+ }) => void;
7
+ }, import("../channel/message-channel-listener-injection-token").MessageChannelListener<import("../channel/message-channel-listener-injection-token").MessageChannel<unknown>>, void>;
8
+ export default syncBoxChannelListenerInjectable;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright (c) OpenLens Authors. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in root directory for more information.
4
+ */
5
+ import type { MessageChannel } from "../channel/message-channel-listener-injection-token";
6
+ import type { RequestChannel } from "../channel/request-channel-listener-injection-token";
7
+ export declare type SyncBoxChannel = MessageChannel<{
8
+ id: string;
9
+ value: any;
10
+ }>;
11
+ export declare const syncBoxChannel: SyncBoxChannel;
12
+ export declare type SyncBoxInitialValueChannel = RequestChannel<void, {
13
+ id: string;
14
+ value: any;
15
+ }[]>;
16
+ export declare const syncBoxInitialValueChannel: SyncBoxInitialValueChannel;
@@ -0,0 +1,5 @@
1
+ declare const syncBoxChannelHandlerInjectable: import("@ogre-tools/injectable").Injectable<(message: {
2
+ id: string;
3
+ value: any;
4
+ }) => void, unknown, void>;
5
+ export default syncBoxChannelHandlerInjectable;
@@ -78,7 +78,7 @@ export declare function isBoolean(val: unknown): val is boolean;
78
78
  * checks if val is of type object and isn't null
79
79
  * @param val the value to be checked
80
80
  */
81
- export declare function isObject(val: unknown): val is object;
81
+ export declare function isObject(val: unknown): val is Record<string | symbol | number, unknown>;
82
82
  /**
83
83
  * checks if `val` is defined, useful for filtering out undefined values in a strict manner
84
84
  */
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { SemVer } from "semver";
6
6
  import type { InitializableState } from "../initializable-state/create";
7
- import type { RequestChannel } from "../utils/channel/request-channel-injection-token";
7
+ import type { RequestChannel } from "../utils/channel/request-channel-listener-injection-token";
8
8
  export declare const buildVersionInjectionToken: import("@ogre-tools/injectable").InjectionToken<InitializableState<string>, void>;
9
9
  export declare const buildVersionChannel: RequestChannel<void, string>;
10
10
  declare const buildSemanticVersionInjectable: import("@ogre-tools/injectable").Injectable<InitializableState<SemVer>, unknown, void>;