@rancher/shell 0.3.17 → 0.3.19

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 (118) hide show
  1. package/assets/translations/en-us.yaml +8 -4
  2. package/assets/translations/zh-hans.yaml +64 -8
  3. package/components/AsyncButton.vue +1 -1
  4. package/components/Inactivity.vue +10 -0
  5. package/components/LazyImage.vue +2 -2
  6. package/components/PromptRestore.vue +8 -6
  7. package/components/ResourceDetail/Masthead.vue +1 -1
  8. package/components/ResourceDetail/index.vue +4 -2
  9. package/components/__tests__/PromptRestore.test.ts +142 -0
  10. package/components/auth/AzureWarning.vue +1 -1
  11. package/components/auth/RoleDetailEdit.vue +2 -0
  12. package/components/fleet/FleetResources.vue +3 -64
  13. package/components/form/FileImageSelector.vue +9 -0
  14. package/components/form/FileSelector.vue +2 -1
  15. package/components/form/MatchExpressions.vue +1 -3
  16. package/components/form/__tests__/FileImageSelector.test.ts +42 -0
  17. package/components/form/__tests__/FileSelector.test.ts +76 -0
  18. package/components/formatter/ClusterProvider.vue +3 -1
  19. package/components/formatter/__tests__/ClusterProvider.test.ts +24 -0
  20. package/components/nav/WindowManager/ContainerShell.vue +60 -36
  21. package/components/nav/WindowManager/__tests__/ContainerShell.test.ts +561 -0
  22. package/config/labels-annotations.js +2 -1
  23. package/config/persistentVolume.ts +108 -0
  24. package/config/product/manager.js +5 -1
  25. package/config/types.js +2 -0
  26. package/core/plugin-helpers.js +19 -3
  27. package/core/types.ts +4 -0
  28. package/detail/fleet.cattle.io.gitrepo.vue +10 -2
  29. package/detail/pod.vue +36 -3
  30. package/detail/workload/index.vue +40 -9
  31. package/dialog/DiagnosticTimingsDialog.vue +1 -0
  32. package/edit/__tests__/ui.cattle.io.navlink.test.ts +110 -0
  33. package/edit/fleet.cattle.io.clustergroup.vue +14 -3
  34. package/edit/persistentvolume/__tests__/persistentvolume.test.ts +82 -0
  35. package/edit/persistentvolume/index.vue +2 -1
  36. package/edit/persistentvolume/plugins/csi.vue +3 -1
  37. package/edit/persistentvolume/plugins/longhorn.vue +12 -12
  38. package/edit/provisioning.cattle.io.cluster/RegistryConfigs.vue +15 -11
  39. package/edit/provisioning.cattle.io.cluster/index.vue +1 -1
  40. package/edit/provisioning.cattle.io.cluster/rke2.vue +5 -1
  41. package/edit/storage.k8s.io.storageclass/index.vue +1 -2
  42. package/edit/ui.cattle.io.navlink.vue +213 -186
  43. package/layouts/default.vue +1 -1
  44. package/list/group.principal.vue +1 -1
  45. package/middleware/authenticated.js +12 -4
  46. package/mixins/create-edit-view/impl.js +2 -2
  47. package/models/chart.js +1 -1
  48. package/models/etcdbackup.js +2 -1
  49. package/models/fleet.cattle.io.cluster.js +33 -4
  50. package/models/fleet.cattle.io.gitrepo.js +112 -38
  51. package/models/management.cattle.io.cluster.js +13 -3
  52. package/models/management.cattle.io.kontainerdriver.js +14 -0
  53. package/models/persistentvolume.js +2 -111
  54. package/models/pod.js +30 -0
  55. package/models/rke.cattle.io.etcdsnapshot.js +10 -7
  56. package/package.json +1 -1
  57. package/pages/c/_cluster/apps/charts/install.vue +74 -25
  58. package/pages/c/_cluster/auth/group.principal/assign-edit.vue +1 -1
  59. package/pages/c/_cluster/auth/roles/index.vue +1 -1
  60. package/pages/c/_cluster/explorer/index.vue +1 -1
  61. package/pages/c/_cluster/manager/cloudCredential/_id.vue +0 -1
  62. package/pages/c/_cluster/manager/cloudCredential/create.vue +0 -1
  63. package/pages/c/_cluster/settings/brand.vue +11 -8
  64. package/pages/c/_cluster/uiplugins/index.vue +9 -4
  65. package/pages/diagnostic.vue +5 -3
  66. package/pages/home.vue +1 -1
  67. package/plugins/dashboard-store/__tests__/actions.spec.ts +165 -0
  68. package/plugins/dashboard-store/__tests__/getters.spec.ts +100 -0
  69. package/plugins/dashboard-store/__tests__/{mutations.spec.js → mutations.spec.ts} +2 -2
  70. package/plugins/dashboard-store/actions.js +1 -1
  71. package/plugins/dashboard-store/resource-class.js +4 -0
  72. package/plugins/steve/__tests__/getters.spec.ts +93 -0
  73. package/plugins/steve/getters.js +21 -1
  74. package/plugins/steve/subscribe.js +1 -3
  75. package/rancher-components/components/BadgeState/BadgeState.spec.ts +12 -0
  76. package/rancher-components/components/BadgeState/BadgeState.vue +111 -0
  77. package/rancher-components/components/BadgeState/index.ts +1 -0
  78. package/rancher-components/components/Banner/Banner.test.ts +63 -0
  79. package/rancher-components/components/Banner/Banner.vue +244 -0
  80. package/rancher-components/components/Banner/index.ts +1 -0
  81. package/rancher-components/components/Card/Card.test.ts +37 -0
  82. package/rancher-components/components/Card/Card.vue +167 -0
  83. package/rancher-components/components/Card/index.ts +1 -0
  84. package/rancher-components/components/Form/Checkbox/Checkbox.test.ts +68 -0
  85. package/rancher-components/components/Form/Checkbox/Checkbox.vue +420 -0
  86. package/rancher-components/components/Form/Checkbox/index.ts +1 -0
  87. package/rancher-components/components/Form/LabeledInput/LabeledInput.test.ts +23 -0
  88. package/rancher-components/components/Form/LabeledInput/LabeledInput.vue +355 -0
  89. package/rancher-components/components/Form/LabeledInput/index.ts +1 -0
  90. package/rancher-components/components/Form/Radio/RadioButton.test.ts +31 -0
  91. package/rancher-components/components/Form/Radio/RadioButton.vue +287 -0
  92. package/rancher-components/components/Form/Radio/RadioGroup.vue +254 -0
  93. package/rancher-components/components/Form/Radio/index.ts +2 -0
  94. package/rancher-components/components/Form/TextArea/TextAreaAutoGrow.vue +170 -0
  95. package/rancher-components/components/Form/TextArea/index.ts +1 -0
  96. package/rancher-components/components/Form/ToggleSwitch/ToggleSwitch.test.ts +94 -0
  97. package/rancher-components/components/Form/ToggleSwitch/ToggleSwitch.vue +149 -0
  98. package/rancher-components/components/Form/ToggleSwitch/index.ts +1 -0
  99. package/rancher-components/components/Form/index.ts +5 -0
  100. package/rancher-components/components/LabeledTooltip/LabeledTooltip.vue +151 -0
  101. package/rancher-components/components/LabeledTooltip/index.ts +1 -0
  102. package/rancher-components/components/StringList/StringList.test.ts +484 -0
  103. package/rancher-components/components/StringList/StringList.vue +611 -0
  104. package/rancher-components/components/StringList/index.ts +1 -0
  105. package/scripts/extension/publish +54 -14
  106. package/scripts/typegen.sh +10 -2
  107. package/store/index.js +1 -3
  108. package/store/store-types.js +2 -0
  109. package/types/api.d.ts +1 -0
  110. package/types/fleet.d.ts +1 -0
  111. package/types/shell/index.d.ts +696 -2
  112. package/types/userPreferences.d.ts +1 -1
  113. package/utils/__mocks__/socket.js +21 -0
  114. package/utils/grafana.js +23 -11
  115. package/utils/selector.js +2 -1
  116. package/utils/socket.js +1 -0
  117. package/utils/validators/formRules/index.ts +3 -3
  118. package/plugins/steve/urloptions.js +0 -47
@@ -124,6 +124,7 @@ export namespace FLEET {
124
124
  export const BUNDLE_ID: string;
125
125
  const MANAGED_1: string;
126
126
  export { MANAGED_1 as MANAGED };
127
+ export const CLUSTER: string;
127
128
  }
128
129
  export namespace RBAC {
129
130
  const PRODUCT: string;
@@ -1849,6 +1850,7 @@ export namespace LONGHORN {
1849
1850
  const SETTINGS: string;
1850
1851
  const VOLUMES: string;
1851
1852
  }
1853
+ export const LONGHORN_DRIVER: "driver.longhorn.io";
1852
1854
  export const SNAPSHOT: "rke.cattle.io.etcdsnapshot";
1853
1855
  export namespace MANAGEMENT {
1854
1856
  const AUTH_CONFIG_1: string;
@@ -2093,6 +2095,312 @@ export default _default;
2093
2095
  import Vue from "vue";
2094
2096
  }
2095
2097
 
2098
+ // @shell/models/namespace
2099
+
2100
+ declare module '@shell/models/namespace' {
2101
+ export default class Namespace {
2102
+ applyDefaults(): void;
2103
+ get _availableActions(): any;
2104
+ move(resources?: Namespace): void;
2105
+ get isSystem(): any;
2106
+ get isFleetManaged(): boolean;
2107
+ get isObscure(): any;
2108
+ get projectId(): any;
2109
+ get project(): any;
2110
+ get groupByLabel(): any;
2111
+ get projectNameSort(): any;
2112
+ get istioInstalled(): boolean;
2113
+ get injectionEnabled(): boolean;
2114
+ enableAutoInjection(namespaces?: Namespace, enable?: boolean): void;
2115
+ disableAutoInjection(namespaces?: Namespace): void;
2116
+ get confirmRemove(): boolean;
2117
+ get listLocation(): {
2118
+ name: string;
2119
+ };
2120
+ get _detailLocation(): any;
2121
+ get parentLocationOverride(): {
2122
+ name: string;
2123
+ };
2124
+ get doneOverride(): {
2125
+ name: string;
2126
+ };
2127
+ set resourceQuota(arg: any);
2128
+ get resourceQuota(): any;
2129
+ get detailTopTooltips(): any;
2130
+ get detailTopIcons(): any;
2131
+ /**
2132
+ * Check if resource contains PSA labels
2133
+ */
2134
+ get hasSystemLabels(): any;
2135
+ get filteredSystemLabels(): {};
2136
+ /**
2137
+ * Generate list of present keys which can be filtered based on existing label keys and system keys
2138
+ */
2139
+ get systemLabels(): any;
2140
+ get psaTooltipsDescription(): any;
2141
+ cleanForNew(): void;
2142
+ metadata: any;
2143
+ get hideDetailLocation(): boolean;
2144
+ }
2145
+ }
2146
+
2147
+ // @shell/models/networking.k8s.io.ingress
2148
+
2149
+ declare module '@shell/models/networking.k8s.io.ingress' {
2150
+ export function ingressFullPath(resource: any, rule: any, path?: {}): string;
2151
+ export default class Ingress {
2152
+ get tlsHosts(): any;
2153
+ get isTlsHost(): (host: any) => any;
2154
+ targetTo(workloads: any, serviceName: any): any;
2155
+ createRulesForListPage(workloads: any, certificates: any): any;
2156
+ createPathForListPage(workloads: any, rule: any, path: any, certificates: any): {
2157
+ isUrl: boolean;
2158
+ pathType: any;
2159
+ fullPath: string;
2160
+ serviceName: any;
2161
+ serviceTargetTo: any;
2162
+ certs: any;
2163
+ targetLink: {
2164
+ to: any;
2165
+ text: any;
2166
+ options: {
2167
+ internal: boolean;
2168
+ };
2169
+ };
2170
+ port: any;
2171
+ };
2172
+ fullPath(rule: any, path: any): string;
2173
+ certLink(cert: any, certificates?: any[]): {
2174
+ to: {
2175
+ name: string;
2176
+ params: {
2177
+ resource: any;
2178
+ id: any;
2179
+ };
2180
+ };
2181
+ text: any;
2182
+ options: {
2183
+ internal: boolean;
2184
+ };
2185
+ };
2186
+ certLinks(rule: any, certificates: any): any;
2187
+ targetLink(workloads: any, serviceName: any): {
2188
+ to: any;
2189
+ text: any;
2190
+ options: {
2191
+ internal: boolean;
2192
+ };
2193
+ };
2194
+ createDefaultService(workloads: any): {
2195
+ name: any;
2196
+ targetTo: any;
2197
+ };
2198
+ get cache(): {};
2199
+ cacheObject: {};
2200
+ get showPathType(): any;
2201
+ get useNestedBackendField(): any;
2202
+ get serviceNamePath(): "service.name" | "serviceName";
2203
+ get servicePortPath(): "service.port.number" | "servicePort";
2204
+ get defaultBackendPath(): "defaultBackend" | "backend";
2205
+ get hasDefaultBackend(): boolean;
2206
+ get details(): any;
2207
+ }
2208
+ }
2209
+
2210
+ // @shell/plugins/dashboard-store/actions
2211
+
2212
+ declare module '@shell/plugins/dashboard-store/actions' {
2213
+ export function handleSpoofedRequest(rootGetters: any, schemaStore: any, opt: any, product: any): Promise<any>;
2214
+ export function loadSchemas(ctx: any, watch?: boolean): Promise<any>;
2215
+ export const _ALL: "all";
2216
+ export const _MERGE: "merge";
2217
+ export const _MULTI: "multi";
2218
+ export const _ALL_IF_AUTHED: "allIfAuthed";
2219
+ export const _NONE: "none";
2220
+ declare namespace _default {
2221
+ export function request(): never;
2222
+ export function request(): never;
2223
+ export { loadSchemas };
2224
+ export function loadDataPage(ctx: any, { type, opt }: {
2225
+ type: any;
2226
+ opt: any;
2227
+ }): Promise<never>;
2228
+ export function loadDataPage(ctx: any, { type, opt }: {
2229
+ type: any;
2230
+ opt: any;
2231
+ }): Promise<never>;
2232
+ export function findAll(ctx: any, { type, opt }: {
2233
+ type: any;
2234
+ opt: any;
2235
+ }): Promise<any>;
2236
+ export function findAll(ctx: any, { type, opt }: {
2237
+ type: any;
2238
+ opt: any;
2239
+ }): Promise<any>;
2240
+ export function findMatching(ctx: any, { type, selector, opt, namespace }: {
2241
+ type: any;
2242
+ selector: any;
2243
+ opt: any;
2244
+ namespace: any;
2245
+ }): Promise<any>;
2246
+ export function findMatching(ctx: any, { type, selector, opt, namespace }: {
2247
+ type: any;
2248
+ selector: any;
2249
+ opt: any;
2250
+ namespace: any;
2251
+ }): Promise<any>;
2252
+ export function find(ctx: any, { type, id, opt }: {
2253
+ type: any;
2254
+ id: any;
2255
+ opt: any;
2256
+ }): Promise<any>;
2257
+ export function find(ctx: any, { type, id, opt }: {
2258
+ type: any;
2259
+ id: any;
2260
+ opt: any;
2261
+ }): Promise<any>;
2262
+ export function load(ctx: any, { data, existing }: {
2263
+ data: any;
2264
+ existing: any;
2265
+ }): any;
2266
+ export function load(ctx: any, { data, existing }: {
2267
+ data: any;
2268
+ existing: any;
2269
+ }): any;
2270
+ export function loadMulti(ctx: any, data: any): void;
2271
+ export function loadMulti(ctx: any, data: any): void;
2272
+ export function batchChanges(ctx: any, batch: any): void;
2273
+ export function batchChanges(ctx: any, batch: any): void;
2274
+ export function loadAll(ctx: any, { type, data }: {
2275
+ type: any;
2276
+ data: any;
2277
+ }): void;
2278
+ export function loadAll(ctx: any, { type, data }: {
2279
+ type: any;
2280
+ data: any;
2281
+ }): void;
2282
+ export function create(ctx: any, data: any): any;
2283
+ export function create(ctx: any, data: any): any;
2284
+ export function createMany(ctx: any, data: any): any;
2285
+ export function createMany(ctx: any, data: any): any;
2286
+ export function createPopulated(ctx: any, userData: any): any;
2287
+ export function createPopulated(ctx: any, userData: any): any;
2288
+ export function clone(ctx: any, { resource }?: {
2289
+ resource: any;
2290
+ }): any;
2291
+ export function clone(ctx: any, { resource }?: {
2292
+ resource: any;
2293
+ }): any;
2294
+ export function forgetType({ commit, dispatch, state }: {
2295
+ commit: any;
2296
+ dispatch: any;
2297
+ state: any;
2298
+ }, type: any): void;
2299
+ export function forgetType({ commit, dispatch, state }: {
2300
+ commit: any;
2301
+ dispatch: any;
2302
+ state: any;
2303
+ }, type: any): void;
2304
+ export function promptRemove({ commit, state }: {
2305
+ commit: any;
2306
+ state: any;
2307
+ }, resources: any): void;
2308
+ export function promptRemove({ commit, state }: {
2309
+ commit: any;
2310
+ state: any;
2311
+ }, resources: any): void;
2312
+ export function promptModal({ commit, state }: {
2313
+ commit: any;
2314
+ state: any;
2315
+ }, data: any): void;
2316
+ export function promptModal({ commit, state }: {
2317
+ commit: any;
2318
+ state: any;
2319
+ }, data: any): void;
2320
+ export function resourceAction({ getters, dispatch }: {
2321
+ getters: any;
2322
+ dispatch: any;
2323
+ }, { resource, actionName, body, opt, }: {
2324
+ resource: any;
2325
+ actionName: any;
2326
+ body: any;
2327
+ opt: any;
2328
+ }): never;
2329
+ export function resourceAction({ getters, dispatch }: {
2330
+ getters: any;
2331
+ dispatch: any;
2332
+ }, { resource, actionName, body, opt, }: {
2333
+ resource: any;
2334
+ actionName: any;
2335
+ body: any;
2336
+ opt: any;
2337
+ }): never;
2338
+ export function collectionAction({ getters, dispatch }: {
2339
+ getters: any;
2340
+ dispatch: any;
2341
+ }, { type, actionName, body, opt }: {
2342
+ type: any;
2343
+ actionName: any;
2344
+ body: any;
2345
+ opt: any;
2346
+ }): never;
2347
+ export function collectionAction({ getters, dispatch }: {
2348
+ getters: any;
2349
+ dispatch: any;
2350
+ }, { type, actionName, body, opt }: {
2351
+ type: any;
2352
+ actionName: any;
2353
+ body: any;
2354
+ opt: any;
2355
+ }): never;
2356
+ export function cleanForNew(ctx: any, resource: any): never;
2357
+ export function cleanForNew(ctx: any, resource: any): never;
2358
+ export function createNamespace(ctx: any, resource: any): never;
2359
+ export function createNamespace(ctx: any, resource: any): never;
2360
+ export function cleanForDiff(ctx: any, resource: any): never;
2361
+ export function cleanForDiff(ctx: any, resource: any): never;
2362
+ export function cleanForDetail(ctx: any, resource: any): any;
2363
+ export function cleanForDetail(ctx: any, resource: any): any;
2364
+ export function cleanForDownload(ctx: any, resource: any): any;
2365
+ export function cleanForDownload(ctx: any, resource: any): any;
2366
+ export function waitForSchema({ getters, dispatch }: {
2367
+ getters: any;
2368
+ dispatch: any;
2369
+ }, { type }: {
2370
+ type: any;
2371
+ }): Promise<void>;
2372
+ export function waitForSchema({ getters, dispatch }: {
2373
+ getters: any;
2374
+ dispatch: any;
2375
+ }, { type }: {
2376
+ type: any;
2377
+ }): Promise<void>;
2378
+ export function incrementLoadCounter({ commit }: {
2379
+ commit: any;
2380
+ }, resource: any): void;
2381
+ export function incrementLoadCounter({ commit }: {
2382
+ commit: any;
2383
+ }, resource: any): void;
2384
+ export function garbageCollect(ctx: any, ignoreTypes: any): any;
2385
+ export function garbageCollect(ctx: any, ignoreTypes: any): any;
2386
+ export function gcResetStore({ state }: {
2387
+ state: any;
2388
+ }): void;
2389
+ export function gcResetStore({ state }: {
2390
+ state: any;
2391
+ }): void;
2392
+ }
2393
+ export default _default;
2394
+ }
2395
+
2396
+ // @shell/plugins/dashboard-store/classify
2397
+
2398
+ declare module '@shell/plugins/dashboard-store/classify' {
2399
+ export function classify(ctx: any, obj: any, isClone?: boolean): any;
2400
+ export const BY_TYPE: "byType";
2401
+ export const SELF: "__[[SELF]]__";
2402
+ }
2403
+
2096
2404
  // @shell/plugins/dashboard-store/normalize
2097
2405
 
2098
2406
  declare module '@shell/plugins/dashboard-store/normalize' {
@@ -2418,6 +2726,7 @@ export default class Resource {
2418
2726
  cleanForDiff(): void;
2419
2727
  yamlForSave(yaml: any): any;
2420
2728
  saveYaml(yaml: any): Promise<void>;
2729
+ _saveYaml(yaml: any): Promise<void>;
2421
2730
  get modelValidationRules(): {
2422
2731
  path: any;
2423
2732
  rules: any[];
@@ -2512,6 +2821,176 @@ export namespace actions {
2512
2821
  }
2513
2822
  }
2514
2823
 
2824
+ // @shell/store/prefs
2825
+
2826
+ declare module '@shell/store/prefs' {
2827
+ export function create(name: any, def: any, opt?: {}): any;
2828
+ export function mapPref(name: any): {
2829
+ get(): any;
2830
+ set(value: any): void;
2831
+ };
2832
+ export const CLUSTER: any;
2833
+ export const LAST_NAMESPACE: any;
2834
+ export const NAMESPACE_FILTERS: any;
2835
+ export const WORKSPACE: any;
2836
+ export const EXPANDED_GROUPS: any;
2837
+ export const FAVORITE_TYPES: any;
2838
+ export const GROUP_RESOURCES: any;
2839
+ export const DIFF: any;
2840
+ export const THEME: any;
2841
+ export const PREFERS_SCHEME: any;
2842
+ export const LOCALE: any;
2843
+ export const KEYMAP: any;
2844
+ export const ROWS_PER_PAGE: any;
2845
+ export const LOGS_WRAP: any;
2846
+ export const LOGS_TIME: any;
2847
+ export const LOGS_RANGE: any;
2848
+ export const HIDE_REPOS: any;
2849
+ export const HIDE_DESC: any;
2850
+ export const HIDE_SENSITIVE: any;
2851
+ export const SHOW_PRE_RELEASE: any;
2852
+ export const SHOW_CHART_MODE: any;
2853
+ export const DATE_FORMAT: any;
2854
+ export const TIME_FORMAT: any;
2855
+ export const TIME_ZONE: any;
2856
+ export const DEV: any;
2857
+ export const VIEW_IN_API: any;
2858
+ export const ALL_NAMESPACES: any;
2859
+ export const THEME_SHORTCUT: any;
2860
+ export const LAST_VISITED: any;
2861
+ export const SEEN_WHATS_NEW: any;
2862
+ export const READ_WHATS_NEW: any;
2863
+ export const AFTER_LOGIN_ROUTE: any;
2864
+ export const HIDE_HOME_PAGE_CARDS: any;
2865
+ export const PLUGIN_DEVELOPER: any;
2866
+ export const _RKE1: "rke1";
2867
+ export const _RKE2: "rke2";
2868
+ export const PROVISIONER: any;
2869
+ export const PSP_DEPRECATION_BANNER: any;
2870
+ export const MENU_MAX_CLUSTERS: any;
2871
+ export const SCALE_POOL_PROMPT: any;
2872
+ export function state(): {
2873
+ cookiesLoaded: boolean;
2874
+ data: {};
2875
+ definitions: {};
2876
+ };
2877
+ export namespace getters {
2878
+ function get(state: any): (key: any) => any;
2879
+ function defaultValue(state: any): (key: any) => any;
2880
+ function options(state: any): (key: any) => any;
2881
+ function theme(state: any, getters: any, rootState: any, rootGetters: any): any;
2882
+ function afterLoginRoute(state: any, getters: any): any;
2883
+ }
2884
+ export namespace mutations {
2885
+ function load(state: any, { key, value }: {
2886
+ key: any;
2887
+ value: any;
2888
+ }): void;
2889
+ function load(state: any, { key, value }: {
2890
+ key: any;
2891
+ value: any;
2892
+ }): void;
2893
+ function cookiesLoaded(state: any): void;
2894
+ function cookiesLoaded(state: any): void;
2895
+ function reset(state: any): void;
2896
+ function reset(state: any): void;
2897
+ function setDefinition(state: any, { name, definition }: {
2898
+ name: any;
2899
+ definition?: {};
2900
+ }): void;
2901
+ function setDefinition(state: any, { name, definition }: {
2902
+ name: any;
2903
+ definition?: {};
2904
+ }): void;
2905
+ }
2906
+ export namespace actions {
2907
+ function set({ dispatch, commit, rootGetters, state }: {
2908
+ dispatch: any;
2909
+ commit: any;
2910
+ rootGetters: any;
2911
+ state: any;
2912
+ }, opt: any): Promise<{
2913
+ type: any;
2914
+ status: any;
2915
+ }>;
2916
+ function set({ dispatch, commit, rootGetters, state }: {
2917
+ dispatch: any;
2918
+ commit: any;
2919
+ rootGetters: any;
2920
+ state: any;
2921
+ }, opt: any): Promise<{
2922
+ type: any;
2923
+ status: any;
2924
+ }>;
2925
+ function setTheme({ dispatch }: {
2926
+ dispatch: any;
2927
+ }, val: any): Promise<void>;
2928
+ function setTheme({ dispatch }: {
2929
+ dispatch: any;
2930
+ }, val: any): Promise<void>;
2931
+ function loadCookies({ state, commit }: {
2932
+ state: any;
2933
+ commit: any;
2934
+ }): void;
2935
+ function loadCookies({ state, commit }: {
2936
+ state: any;
2937
+ commit: any;
2938
+ }): void;
2939
+ function loadTheme({ state, dispatch }: {
2940
+ state: any;
2941
+ dispatch: any;
2942
+ }): void;
2943
+ function loadTheme({ state, dispatch }: {
2944
+ state: any;
2945
+ dispatch: any;
2946
+ }): void;
2947
+ function loadServer({ state, dispatch, commit, rootState, rootGetters }: {
2948
+ state: any;
2949
+ dispatch: any;
2950
+ commit: any;
2951
+ rootState: any;
2952
+ rootGetters: any;
2953
+ }, ignoreKey: any): Promise<{
2954
+ data: {};
2955
+ }>;
2956
+ function loadServer({ state, dispatch, commit, rootState, rootGetters }: {
2957
+ state: any;
2958
+ dispatch: any;
2959
+ commit: any;
2960
+ rootState: any;
2961
+ rootGetters: any;
2962
+ }, ignoreKey: any): Promise<{
2963
+ data: {};
2964
+ }>;
2965
+ function setLastVisited({ state, dispatch, getters }: {
2966
+ state: any;
2967
+ dispatch: any;
2968
+ getters: any;
2969
+ }, route: any): any;
2970
+ function setLastVisited({ state, dispatch, getters }: {
2971
+ state: any;
2972
+ dispatch: any;
2973
+ getters: any;
2974
+ }, route: any): any;
2975
+ function toggleTheme({ getters, dispatch }: {
2976
+ getters: any;
2977
+ dispatch: any;
2978
+ }): any;
2979
+ function toggleTheme({ getters, dispatch }: {
2980
+ getters: any;
2981
+ dispatch: any;
2982
+ }): any;
2983
+ function setBrandStyle({ rootState, rootGetters }: {
2984
+ rootState: any;
2985
+ rootGetters: any;
2986
+ }, dark?: boolean): void;
2987
+ function setBrandStyle({ rootState, rootGetters }: {
2988
+ rootState: any;
2989
+ rootGetters: any;
2990
+ }, dark?: boolean): void;
2991
+ }
2992
+ }
2993
+
2515
2994
  // @shell/utils/alertmanagerconfig
2516
2995
 
2517
2996
  declare module '@shell/utils/alertmanagerconfig' {
@@ -2673,6 +3152,125 @@ export const NEVER_ADD: string[];
2673
3152
  export const ACTIVELY_REMOVE: string[];
2674
3153
  }
2675
3154
 
3155
+ // @shell/utils/crypto/browserHashUtils
3156
+
3157
+ declare module '@shell/utils/crypto/browserHashUtils' {
3158
+ export function hashObj(obj: any): string;
3159
+ /**
3160
+ * @api private
3161
+ */
3162
+ export function isEmptyData(data: any): boolean;
3163
+ /**
3164
+ * @api private
3165
+ */
3166
+ export function convertToBuffer(data: any): Uint8Array;
3167
+ declare namespace _default {
3168
+ export { isEmptyData };
3169
+ export { convertToBuffer };
3170
+ }
3171
+ export default _default;
3172
+ }
3173
+
3174
+ // @shell/utils/crypto/browserMd5
3175
+
3176
+ declare module '@shell/utils/crypto/browserMd5' {
3177
+ /// <reference types="node" />
3178
+ export default Md5;
3179
+ /**
3180
+ * @api private
3181
+ */
3182
+ declare function Md5(): void;
3183
+ declare class Md5 {
3184
+ state: number[];
3185
+ buffer: DataView;
3186
+ bufferLength: number;
3187
+ bytesHashed: number;
3188
+ finished: boolean;
3189
+ update(sourceData: any): Md5;
3190
+ digest(encoding: any): string | Buffer;
3191
+ hashBuffer(): void;
3192
+ }
3193
+ declare namespace Md5 {
3194
+ export { BLOCK_SIZE };
3195
+ }
3196
+ import { Buffer } from "buffer";
3197
+ declare const BLOCK_SIZE: 64;
3198
+ }
3199
+
3200
+ // @shell/utils/crypto/browserSha1
3201
+
3202
+ declare module '@shell/utils/crypto/browserSha1' {
3203
+ /// <reference types="node" />
3204
+ export default Sha1;
3205
+ /**
3206
+ * @api private
3207
+ */
3208
+ declare function Sha1(): void;
3209
+ declare class Sha1 {
3210
+ h0: number;
3211
+ h1: number;
3212
+ h2: number;
3213
+ h3: number;
3214
+ h4: number;
3215
+ block: Uint32Array;
3216
+ offset: number;
3217
+ shift: number;
3218
+ totalLength: number;
3219
+ update(data: any): Sha1;
3220
+ write(byte: any): void;
3221
+ digest(encoding: any): string | Buffer;
3222
+ processBlock(): void;
3223
+ }
3224
+ declare namespace Sha1 {
3225
+ export { BLOCK_SIZE };
3226
+ }
3227
+ import { Buffer } from "buffer";
3228
+ declare const BLOCK_SIZE: 64;
3229
+ }
3230
+
3231
+ // @shell/utils/crypto/browserSha256
3232
+
3233
+ declare module '@shell/utils/crypto/browserSha256' {
3234
+ /// <reference types="node" />
3235
+ export default Sha256;
3236
+ /**
3237
+ * @private
3238
+ */
3239
+ declare function Sha256(): void;
3240
+ declare class Sha256 {
3241
+ state: number[];
3242
+ temp: Int32Array;
3243
+ buffer: Uint8Array;
3244
+ bufferLength: number;
3245
+ bytesHashed: number;
3246
+ /**
3247
+ * @private
3248
+ */
3249
+ private finished;
3250
+ update(data: any): Sha256;
3251
+ digest(encoding: any): string | Buffer;
3252
+ hashBuffer(): void;
3253
+ }
3254
+ declare namespace Sha256 {
3255
+ export { BLOCK_SIZE };
3256
+ }
3257
+ import { Buffer } from "buffer";
3258
+ declare const BLOCK_SIZE: 64;
3259
+ }
3260
+
3261
+ // @shell/utils/crypto
3262
+
3263
+ declare module '@shell/utils/crypto' {
3264
+ /// <reference types="node" />
3265
+ export function base64Encode(string: any, alphabet?: string): any;
3266
+ export function base64DecodeToBuffer(string: any): any;
3267
+ export function base64Decode(string: any): any;
3268
+ export function md5(data: any, digest: any, callback: any): string | Buffer;
3269
+ export function sha256(data: any, digest: any, callback: any): string | Buffer;
3270
+ export function binarySize(val: any): number;
3271
+ import { Buffer } from "buffer";
3272
+ }
3273
+
2676
3274
  // @shell/utils/custom-validators
2677
3275
 
2678
3276
  declare module '@shell/utils/custom-validators' {
@@ -2781,8 +3379,8 @@ export function setFavIcon(store: any): void;
2781
3379
  declare module '@shell/utils/grafana' {
2782
3380
  export function getClusterPrefix(monitoringVersion: any, clusterId: any): string;
2783
3381
  export function computeDashboardUrl(monitoringVersion: any, embedUrl: any, clusterId: any, params: any, modifyPrefix?: boolean): any;
2784
- export function dashboardExists(monitoringVersion: any, store: any, clusterId: any, embedUrl: any, storeName?: string): Promise<boolean>;
2785
- export function allDashboardsExist(store: any, clusterId: any, embeddedUrls: any, storeName?: string): Promise<boolean>;
3382
+ export function dashboardExists(monitoringVersion: any, store: any, clusterId: any, embedUrl: any, storeName?: string, projectId?: any): Promise<boolean>;
3383
+ export function allDashboardsExist(store: any, clusterId: any, embeddedUrls: any, storeName?: string, projectId?: any): Promise<boolean>;
2786
3384
  export function queryGrafana(monitoringVersion: any, dispatch: any, clusterId: any, query: any, range: any, step: any): any;
2787
3385
  export function hasLeader(monitoringVersion: any, dispatch: any, clusterId: any): Promise<boolean>;
2788
3386
  export function leaderChanges(monitoringVersion: any, dispatch: any, clusterId: any): Promise<any>;
@@ -3129,6 +3727,7 @@ export function matching(ary: any, selector: any, labelKey: any): any;
3129
3727
  // @shell/utils/socket
3130
3728
 
3131
3729
  declare module '@shell/utils/socket' {
3730
+ export const addEventListener: any;
3132
3731
  export const STATE_CONNECTING: "connecting";
3133
3732
  export const STATE_CONNECTED: "connected";
3134
3733
  export const EVENT_CONNECTING: "connecting";
@@ -3457,6 +4056,101 @@ declare namespace _default {
3457
4056
  export default _default;
3458
4057
  }
3459
4058
 
4059
+ // @shell/utils/validators/cidr
4060
+
4061
+ declare module '@shell/utils/validators/cidr' {
4062
+ export function isValidCIDR(cidr: any): boolean;
4063
+ export function isValidMac(value: any): boolean;
4064
+ }
4065
+
4066
+ // @shell/utils/validators/cluster-name
4067
+
4068
+ declare module '@shell/utils/validators/cluster-name' {
4069
+ export function clusterName(pathValue: any, getters: any, errors: any, validatorArgs: any, displayKey: any): any;
4070
+ }
4071
+
4072
+ // @shell/utils/validators/container-images
4073
+
4074
+ declare module '@shell/utils/validators/container-images' {
4075
+ export function containerImages(spec: any, getters: any, errors: any): void;
4076
+ }
4077
+
4078
+ // @shell/utils/validators/cron-schedule
4079
+
4080
+ declare module '@shell/utils/validators/cron-schedule' {
4081
+ export function cronSchedule(schedule: string, getters: any, errors: any): void;
4082
+ }
4083
+
4084
+ // @shell/utils/validators/flow-output
4085
+
4086
+ declare module '@shell/utils/validators/flow-output' {
4087
+ export function flowOutput(spec: any, getters: any, errors: any, validatorArgs: any): void;
4088
+ }
4089
+
4090
+ // @shell/utils/validators
4091
+
4092
+ declare module '@shell/utils/validators' {
4093
+ export function displayKeyFor(type: any, key: any, getters: any): any;
4094
+ export function validateLength(val: any, field: any, displayKey: any, getters: any, errors?: any[]): any[];
4095
+ export function validateChars(val: any, field: any, displayKey: any, getters: any, errors?: any[]): any[];
4096
+ export function validateHostname(val: any, displayKey: any, getters: any, opts: any, errors?: any[]): any[];
4097
+ export function validateDnsLabel(label: any, displayKey: any, getters: any, opts: any, errors?: any[]): any[];
4098
+ export function validateDnsLikeTypes(val: any, type: any, displayKey: any, getters: any, opts: any, errors?: any[]): any[];
4099
+ export function validateBoolean(val: any, field: any, displayKey: any, getters: any, errors?: any[]): void;
4100
+ }
4101
+
4102
+ // @shell/utils/validators/kubernetes-name
4103
+
4104
+ declare module '@shell/utils/validators/kubernetes-name' {
4105
+ export function validateKubernetesName(label: any, displayKey: any, getters: any, opts: any, errors?: any[]): any[];
4106
+ }
4107
+
4108
+ // @shell/utils/validators/logging-outputs
4109
+
4110
+ declare module '@shell/utils/validators/logging-outputs' {
4111
+ export function logdna(value: any, getters: any, errors: any, validatorArgs: any): void;
4112
+ }
4113
+
4114
+ // @shell/utils/validators/monitoring-route
4115
+
4116
+ declare module '@shell/utils/validators/monitoring-route' {
4117
+ export function matching(spec: any, getters: any, errors: any, validatorArgs: any): void;
4118
+ export function interval(value: any, getters: any, errors: any, validatorArgs: any, displayKey: any): void;
4119
+ }
4120
+
4121
+ // @shell/utils/validators/pod-affinity
4122
+
4123
+ declare module '@shell/utils/validators/pod-affinity' {
4124
+ export function podAffinity(spec: any, getters: any, errors: any): void;
4125
+ }
4126
+
4127
+ // @shell/utils/validators/prometheusrule
4128
+
4129
+ declare module '@shell/utils/validators/prometheusrule' {
4130
+ export function ruleGroups(spec: any, getters: any, errors: any, validatorArgs: any): any;
4131
+ export function groupsAreValid(groups: any[], getters: any, errors: any, validatorArgs: any): any;
4132
+ }
4133
+
4134
+ // @shell/utils/validators/role-template
4135
+
4136
+ declare module '@shell/utils/validators/role-template' {
4137
+ export function roleTemplateRules(rules: any[], getters: any, errors: any, validatorArgs?: any[]): void;
4138
+ }
4139
+
4140
+ // @shell/utils/validators/service
4141
+
4142
+ declare module '@shell/utils/validators/service' {
4143
+ export function servicePort(spec: any, getters: any, errors: any, validatorArgs: any): any;
4144
+ export function clusterIp(spec: any, getters: any, errors: any, validatorArgs: any): any;
4145
+ export function externalName(spec: any, getters: any, errors: any, validatorArgs: any): any;
4146
+ }
4147
+
4148
+ // @shell/utils/validators/setting
4149
+
4150
+ declare module '@shell/utils/validators/setting' {
4151
+ export function isHttps(value: any, getters: any, errors: any, validatorArgs: any, displayKey: any): any;
4152
+ }
4153
+
3460
4154
  // @shell/utils/version
3461
4155
 
3462
4156
  declare module '@shell/utils/version' {