@camstack/ui-library 1.2.222 → 1.2.223
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/composites/device-picker/DevicePicker.d.ts +35 -0
- package/dist/composites/device-picker/SelectedChip.d.ts +12 -0
- package/dist/composites/device-picker/device-filter-bar.d.ts +25 -0
- package/dist/composites/device-picker/device-fleet-view.d.ts +7 -0
- package/dist/composites/device-picker/device-picker-grouping.d.ts +14 -0
- package/dist/composites/device-picker/device-picker-model.d.ts +245 -0
- package/dist/composites/device-picker/device-selection-rows.d.ts +39 -0
- package/dist/composites/device-picker/device-selection.d.ts +64 -0
- package/dist/composites/device-picker/index.d.ts +8 -0
- package/dist/composites/index.d.ts +3 -0
- package/dist/composites/placeholder-field/PlaceholderChipField.d.ts +29 -0
- package/dist/composites/placeholder-field/index.d.ts +1 -0
- package/dist/composites/unit-picker/UnitPicker.d.ts +16 -0
- package/dist/composites/unit-picker/UnitPicker.spec.d.ts +1 -0
- package/dist/composites/unit-picker/index.d.ts +1 -0
- package/dist/generated/system-hooks.d.ts +6 -0
- package/dist/index.cjs +1437 -14
- package/dist/index.js +1378 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import * as __mfHostReactDOMClient from "react-dom/client";
|
|
|
13
13
|
import { createRoot } from "react-dom/client";
|
|
14
14
|
import * as __mfHostTrpcClient from "@trpc/client";
|
|
15
15
|
import { createTRPCClient, createWSClient, httpLink, splitLink, wsLink } from "@trpc/client";
|
|
16
|
-
import { ALL_CAPABILITY_DEFINITIONS, CAM_PROFILE_ORDER, CLIP_STILL_DISPOSITION_HEADER, CLIP_STILL_REASON_CODE_HEADER, CLIP_STILL_REASON_HEADER, CONTAINER_CHILD_PRIORITY, DEFAULT_EVENTS_BAND_BUFFER_SEC, DEFAULT_EVENT_COLOR, DEVICE_TYPE_CONTROL_KIND, DISPLAY_ICON_GROUPS, DeviceExportStatusSchema, DeviceFeature, DeviceRole, DeviceType, EVENT_TAXONOMY, EXTENSION_SLOTS, EXTENSION_SLOT_IDS, EventCategory, ExposedDeviceSchema, FIRST_LEVEL_MACRO_CLASSES, KNOWN_CAP_NAMES, MAX_SENSOR_TRIGGER_DEVICES, MODEL_PROVIDER_IDS, NAVIGATION_LIGHT_LEVEL_MAX, NAVIGATION_LIGHT_LEVEL_MIN, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, RECORDING_AUDIO_TRIGGER_OFFERED_DBFS, RECORDING_SOURCE_CAMSTACK_ADDON, RecordingConfigSchema, RecordingStatusSchema, SOURCE_CAP_ACTIVE_FIELD, STATIONARY_OVERLAY_STYLE, TIMEZONES, buildModelVariantGroups, canConvertUnit, clusterStepSettingFieldsFor, createDeviceProxy, createLazyTrpcSource, createSliceHandle, deriveRecordingMode, describeModelVariant, findTimezone, formatParkedFor, normalizeUnit, publicEventCategories, resolveContainerPrimaryChild, resolveDeviceControlKind, resolveRecordingProfiles, resolveVariantModelId, resolveViewableDeviceIds, searchDisplayIcons, selectAssignedProfileSlots, tryConvertUnit } from "@camstack/types";
|
|
16
|
+
import { ALL_CAPABILITY_DEFINITIONS, CAM_PROFILE_ORDER, CLIP_STILL_DISPOSITION_HEADER, CLIP_STILL_REASON_CODE_HEADER, CLIP_STILL_REASON_HEADER, CONTAINER_CHILD_PRIORITY, DEFAULT_EVENTS_BAND_BUFFER_SEC, DEFAULT_EVENT_COLOR, DEVICE_TYPE_CONTROL_KIND, DISPLAY_ICON_GROUPS, DeviceExportStatusSchema, DeviceFeature, DeviceRole, DeviceType, EVENT_TAXONOMY, EXTENSION_SLOTS, EXTENSION_SLOT_IDS, EventCategory, ExposedDeviceSchema, FIRST_LEVEL_MACRO_CLASSES, KNOWN_CAP_NAMES, MAX_SENSOR_TRIGGER_DEVICES, MODEL_PROVIDER_IDS, NAVIGATION_LIGHT_LEVEL_MAX, NAVIGATION_LIGHT_LEVEL_MIN, PET_FEEDER_MANUAL_FEED_MAX, PET_FEEDER_MANUAL_FEED_MIN, RECORDING_AUDIO_TRIGGER_OFFERED_DBFS, RECORDING_SOURCE_CAMSTACK_ADDON, RecordingConfigSchema, RecordingStatusSchema, SOURCE_CAP_ACTIVE_FIELD, STATIONARY_OVERLAY_STYLE, TIMEZONES, buildModelVariantGroups, canConvertUnit, clusterStepSettingFieldsFor, createDeviceProxy, createLazyTrpcSource, createSliceHandle, deriveRecordingMode, describeModelVariant, findTimezone, formatParkedFor, normalizeUnit, publicEventCategories, resolveContainerPrimaryChild, resolveDeviceControlKind, resolveRecordingProfiles, resolveVariantModelId, resolveViewableDeviceIds, searchDisplayIcons, selectAssignedProfileSlots, tryConvertUnit, unitsForDimension } from "@camstack/types";
|
|
17
17
|
import { createSystem } from "@camstack/sdk";
|
|
18
18
|
import { z } from "zod";
|
|
19
19
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
|
|
@@ -7646,6 +7646,12 @@ var useOsdManagerCopyDeviceConfiguration = trpc.osdManager.copyDeviceConfigurati
|
|
|
7646
7646
|
var useOsdManagerPreviewSlot = trpc.osdManager.previewSlot.useMutation;
|
|
7647
7647
|
/** Generated alias around `trpc.osdManager.renderDevice.useMutation`. */
|
|
7648
7648
|
var useOsdManagerRenderDevice = trpc.osdManager.renderDevice.useMutation;
|
|
7649
|
+
/** Generated alias around `trpc.osdManager.listTemplates.useQuery`. */
|
|
7650
|
+
var useOsdManagerListTemplates = trpc.osdManager.listTemplates.useQuery;
|
|
7651
|
+
/** Generated alias around `trpc.osdManager.upsertTemplate.useMutation`. */
|
|
7652
|
+
var useOsdManagerUpsertTemplate = trpc.osdManager.upsertTemplate.useMutation;
|
|
7653
|
+
/** Generated alias around `trpc.osdManager.deleteTemplate.useMutation`. */
|
|
7654
|
+
var useOsdManagerDeleteTemplate = trpc.osdManager.deleteTemplate.useMutation;
|
|
7649
7655
|
/** Generated alias around `trpc.petFeeder.feed.useMutation`. */
|
|
7650
7656
|
var usePetFeederFeed = trpc.petFeeder.feed.useMutation;
|
|
7651
7657
|
/** Generated alias around `trpc.petFeeder.cancelFeed.useMutation`. */
|
|
@@ -12331,8 +12337,8 @@ function selectedDeviceOptions(options, selected) {
|
|
|
12331
12337
|
* renders the shared form field gets them without extra registration.
|
|
12332
12338
|
*/
|
|
12333
12339
|
var INPUT_CLASS$1 = "w-full rounded-md border border-border bg-background px-2.5 py-1.5 text-xs text-foreground focus:border-primary focus:ring-1 focus:ring-primary/30 outline-none disabled:opacity-50 disabled:cursor-not-allowed";
|
|
12334
|
-
var INPUT_SHELL = "flex items-center gap-1.5 rounded-md border border-border bg-background px-2 py-1.5 focus-within:border-primary focus-within:ring-1 focus-within:ring-primary/30";
|
|
12335
|
-
var LABEL_CLASS$
|
|
12340
|
+
var INPUT_SHELL$1 = "flex items-center gap-1.5 rounded-md border border-border bg-background px-2 py-1.5 focus-within:border-primary focus-within:ring-1 focus-within:ring-primary/30";
|
|
12341
|
+
var LABEL_CLASS$2 = "block text-[11px] font-medium text-foreground mb-1 break-words";
|
|
12336
12342
|
var DESC_CLASS$1 = "text-[10px] text-foreground-subtle mt-0.5 break-words";
|
|
12337
12343
|
/** The compact projection of the listAll rows the device fields consume. */
|
|
12338
12344
|
function toCandidates(rows) {
|
|
@@ -12369,7 +12375,7 @@ var FACET_ITEM = "flex h-7 w-full items-center gap-2 px-2 text-left text-xs text
|
|
|
12369
12375
|
* The operator asked for dropdowns over rows of chips (2026-09-05): with
|
|
12370
12376
|
* sixteen rooms and a dozen types the chips ate the panel.
|
|
12371
12377
|
*/
|
|
12372
|
-
function FacetDropdown({ label, values, chosen, onChange }) {
|
|
12378
|
+
function FacetDropdown$1({ label, values, chosen, onChange }) {
|
|
12373
12379
|
if (values.length < 2) return null;
|
|
12374
12380
|
const summary = chosen.length === 0 ? "All" : chosen.join(", ");
|
|
12375
12381
|
const toggle = (value) => {
|
|
@@ -12427,7 +12433,7 @@ function FieldShell({ label, description, required, translationFn, children }) {
|
|
|
12427
12433
|
className: "min-w-0",
|
|
12428
12434
|
children: [
|
|
12429
12435
|
resolvedLabel !== void 0 && resolvedLabel !== "" && /* @__PURE__ */ jsxs("label", {
|
|
12430
|
-
className: LABEL_CLASS$
|
|
12436
|
+
className: LABEL_CLASS$2,
|
|
12431
12437
|
children: [resolvedLabel, required && /* @__PURE__ */ jsx("span", {
|
|
12432
12438
|
className: "text-danger ml-0.5",
|
|
12433
12439
|
children: "*"
|
|
@@ -12523,7 +12529,7 @@ function DeviceMultiSelectField({ field, value, onChange, disabled, translationF
|
|
|
12523
12529
|
className: "min-w-0",
|
|
12524
12530
|
children: [
|
|
12525
12531
|
label !== void 0 && label !== "" && /* @__PURE__ */ jsx("label", {
|
|
12526
|
-
className: LABEL_CLASS$
|
|
12532
|
+
className: LABEL_CLASS$2,
|
|
12527
12533
|
children: label
|
|
12528
12534
|
}),
|
|
12529
12535
|
selectedOptions.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
@@ -12544,7 +12550,7 @@ function DeviceMultiSelectField({ field, value, onChange, disabled, translationF
|
|
|
12544
12550
|
}),
|
|
12545
12551
|
smart && /* @__PURE__ */ jsxs("div", {
|
|
12546
12552
|
className: "mb-1.5 flex flex-wrap gap-1.5",
|
|
12547
|
-
children: [/* @__PURE__ */ jsx(FacetDropdown, {
|
|
12553
|
+
children: [/* @__PURE__ */ jsx(FacetDropdown$1, {
|
|
12548
12554
|
label: "Location",
|
|
12549
12555
|
values: facetValues.locations,
|
|
12550
12556
|
chosen: facets.locations,
|
|
@@ -12552,7 +12558,7 @@ function DeviceMultiSelectField({ field, value, onChange, disabled, translationF
|
|
|
12552
12558
|
...f,
|
|
12553
12559
|
locations
|
|
12554
12560
|
}))
|
|
12555
|
-
}), /* @__PURE__ */ jsx(FacetDropdown, {
|
|
12561
|
+
}), /* @__PURE__ */ jsx(FacetDropdown$1, {
|
|
12556
12562
|
label: "Type",
|
|
12557
12563
|
values: facetValues.types,
|
|
12558
12564
|
chosen: facets.types,
|
|
@@ -12563,7 +12569,7 @@ function DeviceMultiSelectField({ field, value, onChange, disabled, translationF
|
|
|
12563
12569
|
})]
|
|
12564
12570
|
}),
|
|
12565
12571
|
/* @__PURE__ */ jsxs("div", {
|
|
12566
|
-
className: INPUT_SHELL + (isDisabled ? " opacity-50" : ""),
|
|
12572
|
+
className: INPUT_SHELL$1 + (isDisabled ? " opacity-50" : ""),
|
|
12567
12573
|
children: [
|
|
12568
12574
|
/* @__PURE__ */ jsx(Search, { className: "h-3.5 w-3.5 shrink-0 text-foreground-subtle" }),
|
|
12569
12575
|
/* @__PURE__ */ jsx("input", {
|
|
@@ -25786,7 +25792,7 @@ function TimezoneSelector({ value, onChange, disabled }) {
|
|
|
25786
25792
|
//#endregion
|
|
25787
25793
|
//#region src/composites/config-form-field.tsx
|
|
25788
25794
|
var INPUT_CLASS = "w-full rounded-md border border-border bg-background px-2.5 py-1.5 text-xs text-foreground focus:border-primary focus:ring-1 focus:ring-primary/30 outline-none disabled:opacity-50 disabled:cursor-not-allowed";
|
|
25789
|
-
var LABEL_CLASS = "block text-[11px] font-medium text-foreground mb-1 break-words";
|
|
25795
|
+
var LABEL_CLASS$1 = "block text-[11px] font-medium text-foreground mb-1 break-words";
|
|
25790
25796
|
var DESC_CLASS = "text-[10px] text-foreground-subtle mt-0.5 break-words";
|
|
25791
25797
|
function FieldWrapper({ label, description, required, span, children, translationFn }) {
|
|
25792
25798
|
const colSpanClass = span === 2 ? "col-span-1 @[480px]:col-span-2" : span === 3 ? "col-span-1 @[480px]:col-span-2 @[880px]:col-span-3" : span === 4 ? "col-span-1 @[480px]:col-span-2 @[1140px]:col-span-4" : "col-span-1";
|
|
@@ -25797,7 +25803,7 @@ function FieldWrapper({ label, description, required, span, children, translatio
|
|
|
25797
25803
|
className: `${colSpanClass} min-w-0`,
|
|
25798
25804
|
children: [
|
|
25799
25805
|
hasLabel && /* @__PURE__ */ jsxs("label", {
|
|
25800
|
-
className: LABEL_CLASS,
|
|
25806
|
+
className: LABEL_CLASS$1,
|
|
25801
25807
|
children: [resolvedLabel, required && /* @__PURE__ */ jsx("span", {
|
|
25802
25808
|
className: "text-danger ml-0.5",
|
|
25803
25809
|
children: "*"
|
|
@@ -26487,7 +26493,7 @@ function SubTabsField({ field, values, onChange, disabled, translationFn, onTest
|
|
|
26487
26493
|
return /* @__PURE__ */ jsxs("div", {
|
|
26488
26494
|
className: `${colSpanClass} min-w-0`,
|
|
26489
26495
|
children: [field.label && /* @__PURE__ */ jsx("div", {
|
|
26490
|
-
className: LABEL_CLASS,
|
|
26496
|
+
className: LABEL_CLASS$1,
|
|
26491
26497
|
children: resolveLabel(field.label, translationFn)
|
|
26492
26498
|
}), /* @__PURE__ */ jsxs("div", {
|
|
26493
26499
|
className: "@container rounded-lg border border-border-subtle bg-surface-hover/40 overflow-hidden",
|
|
@@ -27285,7 +27291,7 @@ function MultipleFieldWrapper({ field, values, onChange, disabled, translationFn
|
|
|
27285
27291
|
return /* @__PURE__ */ jsxs("div", {
|
|
27286
27292
|
className: "space-y-1",
|
|
27287
27293
|
children: [itemLabel && /* @__PURE__ */ jsx("div", {
|
|
27288
|
-
className: LABEL_CLASS,
|
|
27294
|
+
className: LABEL_CLASS$1,
|
|
27289
27295
|
children: itemLabel
|
|
27290
27296
|
}), /* @__PURE__ */ jsxs("div", {
|
|
27291
27297
|
className: "flex items-center gap-2",
|
|
@@ -50555,7 +50561,7 @@ function SectionRows({ title, count, open, colSpan, onToggle, rows, trpc, parent
|
|
|
50555
50561
|
//#region src/composites/device-list/sort.ts
|
|
50556
50562
|
/** Human-facing type label used for the `type` comparator — matches the label
|
|
50557
50563
|
* the row renders, so the sort order reads as the user sees it. */
|
|
50558
|
-
function typeLabel(device) {
|
|
50564
|
+
function typeLabel$1(device) {
|
|
50559
50565
|
return deviceTypeMetaOf(device.type).label.toLowerCase();
|
|
50560
50566
|
}
|
|
50561
50567
|
function nameKey(device) {
|
|
@@ -50564,7 +50570,7 @@ function nameKey(device) {
|
|
|
50564
50570
|
/** Ascending comparator for a given sortable column. */
|
|
50565
50571
|
function ascComparator(columnId) {
|
|
50566
50572
|
if (columnId === "name") return (a, b) => nameKey(a).localeCompare(nameKey(b));
|
|
50567
|
-
if (columnId === "type") return (a, b) => typeLabel(a).localeCompare(typeLabel(b));
|
|
50573
|
+
if (columnId === "type") return (a, b) => typeLabel$1(a).localeCompare(typeLabel$1(b));
|
|
50568
50574
|
return compareHardware;
|
|
50569
50575
|
}
|
|
50570
50576
|
/**
|
|
@@ -55720,6 +55726,1362 @@ function VersionBadge({ version, preRelease, className }) {
|
|
|
55720
55726
|
});
|
|
55721
55727
|
}
|
|
55722
55728
|
//#endregion
|
|
55729
|
+
//#region src/composites/device-picker/SelectedChip.tsx
|
|
55730
|
+
/**
|
|
55731
|
+
* Removable selection chip + the search-box shell shared by DevicePicker and
|
|
55732
|
+
* SearchableMultiSelectField (admin-ui). Lives here so addon MFEs can render
|
|
55733
|
+
* the same picker without importing admin-ui.
|
|
55734
|
+
*/
|
|
55735
|
+
/** The search box's shell — shared with multiselect fields that mirror this picker. */
|
|
55736
|
+
var INPUT_SHELL = "flex items-center gap-1.5 rounded-md border border-border bg-background px-2 py-1.5 focus-within:border-primary focus-within:ring-1 focus-within:ring-primary/30";
|
|
55737
|
+
/** One selected entry as a removable chip. */
|
|
55738
|
+
function SelectedChip({ label, onRemove, warning = false, iconId, testId }) {
|
|
55739
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
55740
|
+
"data-testid": testId,
|
|
55741
|
+
className: warning ? "inline-flex items-center gap-1 rounded-md bg-warning/10 px-1.5 py-0.5 text-[11px] text-warning max-w-full" : "inline-flex items-center gap-1 rounded-md bg-primary/10 px-1.5 py-0.5 text-[11px] text-primary max-w-full",
|
|
55742
|
+
children: [
|
|
55743
|
+
iconId !== void 0 && /* @__PURE__ */ jsx(EventKindGlyph, {
|
|
55744
|
+
iconId,
|
|
55745
|
+
size: 12
|
|
55746
|
+
}),
|
|
55747
|
+
/* @__PURE__ */ jsx("span", {
|
|
55748
|
+
className: "truncate",
|
|
55749
|
+
children: label
|
|
55750
|
+
}),
|
|
55751
|
+
onRemove !== void 0 && /* @__PURE__ */ jsx("button", {
|
|
55752
|
+
type: "button",
|
|
55753
|
+
className: "shrink-0 hover:text-danger",
|
|
55754
|
+
"aria-label": `Remove ${label}`,
|
|
55755
|
+
onClick: onRemove,
|
|
55756
|
+
children: /* @__PURE__ */ jsx(X, { className: "h-2.5 w-2.5" })
|
|
55757
|
+
})
|
|
55758
|
+
]
|
|
55759
|
+
});
|
|
55760
|
+
}
|
|
55761
|
+
//#endregion
|
|
55762
|
+
//#region src/composites/device-picker/device-picker-model.ts
|
|
55763
|
+
/** Numbers numerically, anything else by its text — the name tie-break. */
|
|
55764
|
+
function compareIds(a, b) {
|
|
55765
|
+
if (typeof a === "number" && typeof b === "number") return a - b;
|
|
55766
|
+
return String(a).localeCompare(String(b));
|
|
55767
|
+
}
|
|
55768
|
+
/** How long the search waits after the last keystroke. */
|
|
55769
|
+
var PICKER_SEARCH_DEBOUNCE_MS = 200;
|
|
55770
|
+
/** A group with more devices than this starts collapsed (unless searching). */
|
|
55771
|
+
var PICKER_GROUP_COLLAPSE_AT = 8;
|
|
55772
|
+
/** How many selected chips are drawn before "+N more". */
|
|
55773
|
+
var PICKER_CHIP_LIMIT = 6;
|
|
55774
|
+
/** Rows a capped render draws per "show more". */
|
|
55775
|
+
var PICKER_PAGE_SIZE = 60;
|
|
55776
|
+
/** Rows a virtualised list renders per batch and initially. */
|
|
55777
|
+
var PICKER_WINDOW = 30;
|
|
55778
|
+
/** Everything a query can match on, lower-cased. */
|
|
55779
|
+
function pickerSearchText(device) {
|
|
55780
|
+
return `${[
|
|
55781
|
+
device.name,
|
|
55782
|
+
device.location ?? "",
|
|
55783
|
+
device.type ?? "",
|
|
55784
|
+
device.detail ?? ""
|
|
55785
|
+
].join(" ")} ${String(device.id)}`.toLowerCase();
|
|
55786
|
+
}
|
|
55787
|
+
/** The query's tokens; empty for a blank query. */
|
|
55788
|
+
function pickerQueryTokens(query) {
|
|
55789
|
+
return query.trim().toLowerCase().split(/\s+/).filter((token) => token.length > 0);
|
|
55790
|
+
}
|
|
55791
|
+
/** Devices matching EVERY token. A blank query keeps the list as it is. */
|
|
55792
|
+
function filterPickerDevices(devices, query) {
|
|
55793
|
+
const tokens = pickerQueryTokens(query);
|
|
55794
|
+
if (tokens.length === 0) return devices;
|
|
55795
|
+
return devices.filter((device) => {
|
|
55796
|
+
const hay = pickerSearchText(device);
|
|
55797
|
+
return tokens.every((token) => hay.includes(token));
|
|
55798
|
+
});
|
|
55799
|
+
}
|
|
55800
|
+
function compareNullableLast(a, b) {
|
|
55801
|
+
if (a === b) return 0;
|
|
55802
|
+
if (a === null) return 1;
|
|
55803
|
+
if (b === null) return -1;
|
|
55804
|
+
return a.localeCompare(b);
|
|
55805
|
+
}
|
|
55806
|
+
function blankToNull(value) {
|
|
55807
|
+
return value === void 0 || value === null || value.trim() === "" ? null : value;
|
|
55808
|
+
}
|
|
55809
|
+
/** The key a group is remembered by (collapsed / expanded). */
|
|
55810
|
+
function pickerGroupKey(type, location) {
|
|
55811
|
+
return `${type ?? ""}|${location ?? ""}`;
|
|
55812
|
+
}
|
|
55813
|
+
/** Group by type, then room; both ascending, "none" last; devices by name. */
|
|
55814
|
+
function groupPickerDevices(devices, selected) {
|
|
55815
|
+
const picked = new Set(selected);
|
|
55816
|
+
const buckets = /* @__PURE__ */ new Map();
|
|
55817
|
+
for (const device of devices) {
|
|
55818
|
+
const type = blankToNull(device.type);
|
|
55819
|
+
const location = blankToNull(device.location);
|
|
55820
|
+
const key = pickerGroupKey(type, location);
|
|
55821
|
+
const bucket = buckets.get(key);
|
|
55822
|
+
if (bucket === void 0) buckets.set(key, {
|
|
55823
|
+
type,
|
|
55824
|
+
location,
|
|
55825
|
+
devices: [device]
|
|
55826
|
+
});
|
|
55827
|
+
else bucket.devices.push(device);
|
|
55828
|
+
}
|
|
55829
|
+
const groups = [];
|
|
55830
|
+
for (const [key, bucket] of buckets) {
|
|
55831
|
+
const sorted = [...bucket.devices].sort((a, b) => a.name.localeCompare(b.name) || compareIds(a.id, b.id));
|
|
55832
|
+
groups.push({
|
|
55833
|
+
key,
|
|
55834
|
+
type: bucket.type,
|
|
55835
|
+
location: bucket.location,
|
|
55836
|
+
devices: sorted,
|
|
55837
|
+
selectedCount: sorted.filter((device) => picked.has(device.id)).length
|
|
55838
|
+
});
|
|
55839
|
+
}
|
|
55840
|
+
return groups.sort((a, b) => compareNullableLast(a.type, b.type) || compareNullableLast(a.location, b.location));
|
|
55841
|
+
}
|
|
55842
|
+
/**
|
|
55843
|
+
* Whether a group is open. The operator's own toggle wins; otherwise a small
|
|
55844
|
+
* group is open, a big one is closed — unless a search is running (the result
|
|
55845
|
+
* IS what they asked to see) or it holds a selected device.
|
|
55846
|
+
*/
|
|
55847
|
+
function isGroupExpanded(group, toggles, searching) {
|
|
55848
|
+
const own = toggles.get(group.key);
|
|
55849
|
+
if (own !== void 0) return own;
|
|
55850
|
+
if (searching || group.selectedCount > 0) return true;
|
|
55851
|
+
return group.devices.length <= 8;
|
|
55852
|
+
}
|
|
55853
|
+
/** The groups as ONE list of rows — what a virtualised list renders. */
|
|
55854
|
+
function flattenPickerRows(groups, selected, toggles, searching) {
|
|
55855
|
+
const picked = new Set(selected);
|
|
55856
|
+
const rows = [];
|
|
55857
|
+
for (const group of groups) {
|
|
55858
|
+
const expanded = isGroupExpanded(group, toggles, searching);
|
|
55859
|
+
rows.push({
|
|
55860
|
+
kind: "header",
|
|
55861
|
+
key: `h:${group.key}`,
|
|
55862
|
+
group,
|
|
55863
|
+
expanded
|
|
55864
|
+
});
|
|
55865
|
+
if (!expanded) continue;
|
|
55866
|
+
for (const device of group.devices) rows.push({
|
|
55867
|
+
kind: "device",
|
|
55868
|
+
key: `d:${String(device.id)}`,
|
|
55869
|
+
device,
|
|
55870
|
+
groupKey: group.key,
|
|
55871
|
+
selected: picked.has(device.id)
|
|
55872
|
+
});
|
|
55873
|
+
}
|
|
55874
|
+
return rows;
|
|
55875
|
+
}
|
|
55876
|
+
/** Tick or untick one id. The order of the rest is kept. */
|
|
55877
|
+
function togglePickerDevice(value, id) {
|
|
55878
|
+
return value.includes(id) ? value.filter((v) => v !== id) : [...value, id];
|
|
55879
|
+
}
|
|
55880
|
+
/** Add every device of the group (only the ones the current search shows). */
|
|
55881
|
+
function selectPickerGroup(value, group) {
|
|
55882
|
+
const next = [...value];
|
|
55883
|
+
const have = new Set(value);
|
|
55884
|
+
for (const device of group.devices) if (!have.has(device.id)) next.push(device.id);
|
|
55885
|
+
return next;
|
|
55886
|
+
}
|
|
55887
|
+
/** Remove every device of the group; ids outside it are untouched. */
|
|
55888
|
+
function clearPickerGroup(value, group) {
|
|
55889
|
+
const drop = new Set(group.devices.map((device) => device.id));
|
|
55890
|
+
return value.filter((id) => !drop.has(id));
|
|
55891
|
+
}
|
|
55892
|
+
function chipOverflow(items, expanded) {
|
|
55893
|
+
if (expanded || items.length <= 6) return {
|
|
55894
|
+
shown: items,
|
|
55895
|
+
hidden: 0
|
|
55896
|
+
};
|
|
55897
|
+
return {
|
|
55898
|
+
shown: items.slice(0, 6),
|
|
55899
|
+
hidden: items.length - 6
|
|
55900
|
+
};
|
|
55901
|
+
}
|
|
55902
|
+
function pageRows(rows, shown) {
|
|
55903
|
+
const count = Math.max(0, Math.min(rows.length, shown));
|
|
55904
|
+
return {
|
|
55905
|
+
rows: rows.slice(0, count),
|
|
55906
|
+
remaining: rows.length - count
|
|
55907
|
+
};
|
|
55908
|
+
}
|
|
55909
|
+
/** The modes, in the order the control draws them. */
|
|
55910
|
+
var PICKER_GROUP_BY_MODES = [
|
|
55911
|
+
"zone",
|
|
55912
|
+
"location",
|
|
55913
|
+
"none"
|
|
55914
|
+
];
|
|
55915
|
+
/** What an operator who never chose gets. */
|
|
55916
|
+
var PICKER_DEFAULT_GROUP_BY = "zone";
|
|
55917
|
+
/** A stored choice; anything unreadable is the default. */
|
|
55918
|
+
function parsePickerGroupBy(raw) {
|
|
55919
|
+
return raw === "zone" || raw === "location" || raw === "none" ? raw : PICKER_DEFAULT_GROUP_BY;
|
|
55920
|
+
}
|
|
55921
|
+
/** The folded key a location label joins a zone by — `siteZoneKey`'s fold. */
|
|
55922
|
+
function pickerLocationKey(label) {
|
|
55923
|
+
return label.trim().toLowerCase();
|
|
55924
|
+
}
|
|
55925
|
+
var NO_ZONE_RANK = 1;
|
|
55926
|
+
var NO_LOCATION_RANK = 2;
|
|
55927
|
+
function byName(a, b) {
|
|
55928
|
+
return a.name.localeCompare(b.name) || compareIds(a.id, b.id);
|
|
55929
|
+
}
|
|
55930
|
+
function headingLabel(heading) {
|
|
55931
|
+
return heading.kind === "zone" || heading.kind === "location" ? heading.label : "";
|
|
55932
|
+
}
|
|
55933
|
+
var NO_LOCATION = {
|
|
55934
|
+
key: "-location",
|
|
55935
|
+
heading: { kind: "no-location" },
|
|
55936
|
+
rank: NO_LOCATION_RANK
|
|
55937
|
+
};
|
|
55938
|
+
var NO_ZONE = {
|
|
55939
|
+
key: "-zone",
|
|
55940
|
+
heading: { kind: "no-zone" },
|
|
55941
|
+
rank: NO_ZONE_RANK
|
|
55942
|
+
};
|
|
55943
|
+
/** Every zone by the folded location keys it holds; the first zone wins a key. */
|
|
55944
|
+
function zoneByLocation(zones) {
|
|
55945
|
+
const out = /* @__PURE__ */ new Map();
|
|
55946
|
+
for (const zone of zones) for (const key of zone.locationKeys) {
|
|
55947
|
+
const folded = pickerLocationKey(key);
|
|
55948
|
+
if (!out.has(folded)) out.set(folded, zone);
|
|
55949
|
+
}
|
|
55950
|
+
return out;
|
|
55951
|
+
}
|
|
55952
|
+
function placeByLocation(location) {
|
|
55953
|
+
if (location === null) return NO_LOCATION;
|
|
55954
|
+
return {
|
|
55955
|
+
key: `l:${pickerLocationKey(location)}`,
|
|
55956
|
+
heading: {
|
|
55957
|
+
kind: "location",
|
|
55958
|
+
label: location.trim()
|
|
55959
|
+
},
|
|
55960
|
+
rank: 0
|
|
55961
|
+
};
|
|
55962
|
+
}
|
|
55963
|
+
function placeByZone(location, zones) {
|
|
55964
|
+
if (location === null) return NO_LOCATION;
|
|
55965
|
+
const zone = zones.get(pickerLocationKey(location));
|
|
55966
|
+
if (zone === void 0) return NO_ZONE;
|
|
55967
|
+
return {
|
|
55968
|
+
key: `z:${zone.zoneKey}`,
|
|
55969
|
+
heading: {
|
|
55970
|
+
kind: "zone",
|
|
55971
|
+
label: zone.label
|
|
55972
|
+
},
|
|
55973
|
+
rank: 0
|
|
55974
|
+
};
|
|
55975
|
+
}
|
|
55976
|
+
/**
|
|
55977
|
+
* Group the list by zone, location or nothing.
|
|
55978
|
+
*
|
|
55979
|
+
* Zone: a group per site zone that holds a listed device (by label), then
|
|
55980
|
+
* "No zone" (a location no zone holds), then "No location". Location: a group
|
|
55981
|
+
* per location (folded; named after the first device's trimmed spelling), then "No
|
|
55982
|
+
* location". None: one flat list by name, then id.
|
|
55983
|
+
*
|
|
55984
|
+
* A zone read that is pending or failed can NOT say a location is in no zone
|
|
55985
|
+
* (D315), so Zone mode then groups by location and returns the reason as
|
|
55986
|
+
* {@link PickerGrouping.fallback} for the UI's one-line note.
|
|
55987
|
+
*/
|
|
55988
|
+
function groupPickerDevicesBy(devices, selected, groupBy, zones) {
|
|
55989
|
+
const picked = new Set(selected);
|
|
55990
|
+
const sorted = [...devices].sort(byName);
|
|
55991
|
+
const count = (list) => list.filter((device) => picked.has(device.id)).length;
|
|
55992
|
+
if (groupBy === "none") return {
|
|
55993
|
+
groupBy,
|
|
55994
|
+
fallback: null,
|
|
55995
|
+
flat: true,
|
|
55996
|
+
groups: [{
|
|
55997
|
+
key: "all",
|
|
55998
|
+
type: null,
|
|
55999
|
+
location: null,
|
|
56000
|
+
devices: sorted,
|
|
56001
|
+
selectedCount: count(sorted)
|
|
56002
|
+
}]
|
|
56003
|
+
};
|
|
56004
|
+
const fallback = groupBy === "zone" && zones.state !== "answered" ? zones.state : null;
|
|
56005
|
+
const effective = fallback === null ? groupBy : "location";
|
|
56006
|
+
const zoneMap = zones.state === "answered" ? zoneByLocation(zones.zones) : /* @__PURE__ */ new Map();
|
|
56007
|
+
const buckets = /* @__PURE__ */ new Map();
|
|
56008
|
+
for (const device of sorted) {
|
|
56009
|
+
const location = blankToNull(device.location);
|
|
56010
|
+
const place = effective === "zone" ? placeByZone(location, zoneMap) : placeByLocation(location);
|
|
56011
|
+
const bucket = buckets.get(place.key);
|
|
56012
|
+
if (bucket === void 0) buckets.set(place.key, {
|
|
56013
|
+
heading: place.heading,
|
|
56014
|
+
rank: place.rank,
|
|
56015
|
+
devices: [device]
|
|
56016
|
+
});
|
|
56017
|
+
else bucket.devices.push(device);
|
|
56018
|
+
}
|
|
56019
|
+
return {
|
|
56020
|
+
groupBy: effective,
|
|
56021
|
+
fallback,
|
|
56022
|
+
flat: false,
|
|
56023
|
+
groups: [...buckets].sort(([, a], [, b]) => a.rank - b.rank || headingLabel(a.heading).localeCompare(headingLabel(b.heading))).map(([key, bucket]) => ({
|
|
56024
|
+
key,
|
|
56025
|
+
type: null,
|
|
56026
|
+
location: bucket.heading.kind === "location" ? bucket.heading.label : null,
|
|
56027
|
+
devices: bucket.devices,
|
|
56028
|
+
selectedCount: count(bucket.devices),
|
|
56029
|
+
heading: bucket.heading
|
|
56030
|
+
}))
|
|
56031
|
+
};
|
|
56032
|
+
}
|
|
56033
|
+
/** The grouping as rows: a flat grouping draws no header and is always open. */
|
|
56034
|
+
function flattenPickerGrouping(grouping, selected, toggles, searching) {
|
|
56035
|
+
if (!grouping.flat) return flattenPickerRows(grouping.groups, selected, toggles, searching);
|
|
56036
|
+
const picked = new Set(selected);
|
|
56037
|
+
const rows = [];
|
|
56038
|
+
for (const group of grouping.groups) for (const device of group.devices) rows.push({
|
|
56039
|
+
kind: "device",
|
|
56040
|
+
key: `d:${String(device.id)}`,
|
|
56041
|
+
device,
|
|
56042
|
+
groupKey: group.key,
|
|
56043
|
+
selected: picked.has(device.id)
|
|
56044
|
+
});
|
|
56045
|
+
return rows;
|
|
56046
|
+
}
|
|
56047
|
+
function pickerRowFacts(device, groupBy) {
|
|
56048
|
+
return {
|
|
56049
|
+
location: groupBy === "location" ? null : blankToNull(device.location),
|
|
56050
|
+
type: blankToNull(device.type)
|
|
56051
|
+
};
|
|
56052
|
+
}
|
|
56053
|
+
/** The filter key of an item with no type / no location / no zone. */
|
|
56054
|
+
var PICKER_NONE_KEY = "(none)";
|
|
56055
|
+
var PICKER_NO_FILTERS = {
|
|
56056
|
+
query: "",
|
|
56057
|
+
types: [],
|
|
56058
|
+
zones: [],
|
|
56059
|
+
locations: []
|
|
56060
|
+
};
|
|
56061
|
+
var NO_FACET_VALUE = {
|
|
56062
|
+
key: PICKER_NONE_KEY,
|
|
56063
|
+
label: null
|
|
56064
|
+
};
|
|
56065
|
+
function facetValue(item, facet, zones) {
|
|
56066
|
+
if (facet === "type") {
|
|
56067
|
+
const type = blankToNull(item.type);
|
|
56068
|
+
return type === null ? NO_FACET_VALUE : {
|
|
56069
|
+
key: type,
|
|
56070
|
+
label: type
|
|
56071
|
+
};
|
|
56072
|
+
}
|
|
56073
|
+
const location = blankToNull(item.location);
|
|
56074
|
+
if (location === null) return NO_FACET_VALUE;
|
|
56075
|
+
if (facet === "location") return {
|
|
56076
|
+
key: pickerLocationKey(location),
|
|
56077
|
+
label: location.trim()
|
|
56078
|
+
};
|
|
56079
|
+
if (zones.state !== "answered") return NO_FACET_VALUE;
|
|
56080
|
+
const zone = zoneByLocation(zones.zones).get(pickerLocationKey(location));
|
|
56081
|
+
return zone === void 0 ? NO_FACET_VALUE : {
|
|
56082
|
+
key: zone.zoneKey,
|
|
56083
|
+
label: zone.label
|
|
56084
|
+
};
|
|
56085
|
+
}
|
|
56086
|
+
/** The key an item filters by under one facet; `(none)` when it has no such value. */
|
|
56087
|
+
function pickerFacetKey(item, facet, zones) {
|
|
56088
|
+
return facetValue(item, facet, zones).key;
|
|
56089
|
+
}
|
|
56090
|
+
function compareFacetOptions(a, b) {
|
|
56091
|
+
if (a.key === "(none)" || b.key === "(none)") return a.key === b.key ? 0 : a.key === "(none)" ? 1 : -1;
|
|
56092
|
+
return (a.label ?? "").localeCompare(b.label ?? "");
|
|
56093
|
+
}
|
|
56094
|
+
/** Every value of a facet the list holds (plus chosen ones it no longer holds, at 0). */
|
|
56095
|
+
function pickerFacetOptions(items, facet, chosen, zones) {
|
|
56096
|
+
if (facet === "zone" && zones.state !== "answered") return [];
|
|
56097
|
+
const byKey = /* @__PURE__ */ new Map();
|
|
56098
|
+
for (const item of items) {
|
|
56099
|
+
const value = facetValue(item, facet, zones);
|
|
56100
|
+
const have = byKey.get(value.key);
|
|
56101
|
+
if (have === void 0) byKey.set(value.key, {
|
|
56102
|
+
label: value.label,
|
|
56103
|
+
count: 1
|
|
56104
|
+
});
|
|
56105
|
+
else have.count++;
|
|
56106
|
+
}
|
|
56107
|
+
for (const key of chosen) if (!byKey.has(key)) byKey.set(key, {
|
|
56108
|
+
label: key === "(none)" ? null : key,
|
|
56109
|
+
count: 0
|
|
56110
|
+
});
|
|
56111
|
+
const options = [];
|
|
56112
|
+
for (const [key, entry] of byKey) options.push({
|
|
56113
|
+
key,
|
|
56114
|
+
label: entry.label,
|
|
56115
|
+
count: entry.count
|
|
56116
|
+
});
|
|
56117
|
+
return options.sort(compareFacetOptions);
|
|
56118
|
+
}
|
|
56119
|
+
/** A zone filter is chosen but the zones read has not answered: it is paused, not applied. */
|
|
56120
|
+
function pickerZoneFilterSuspended(filters, zones) {
|
|
56121
|
+
return filters.zones.length > 0 && zones.state !== "answered";
|
|
56122
|
+
}
|
|
56123
|
+
function keepFacet(items, facet, chosen, zones) {
|
|
56124
|
+
if (chosen.length === 0) return items;
|
|
56125
|
+
return items.filter((item) => chosen.includes(pickerFacetKey(item, facet, zones)));
|
|
56126
|
+
}
|
|
56127
|
+
/** Search, then Type, Zone (only from an answered read), Location. No filter: the list itself. */
|
|
56128
|
+
function applyPickerFilters(items, filters, zones) {
|
|
56129
|
+
const typed = keepFacet(filterPickerDevices(items, filters.query), "type", filters.types, zones);
|
|
56130
|
+
return keepFacet(zones.state === "answered" ? keepFacet(typed, "zone", filters.zones, zones) : typed, "location", filters.locations, zones);
|
|
56131
|
+
}
|
|
56132
|
+
/** Tick or untick one filter key. */
|
|
56133
|
+
function togglePickerKey(chosen, key) {
|
|
56134
|
+
return chosen.includes(key) ? chosen.filter((k) => k !== key) : [...chosen, key];
|
|
56135
|
+
}
|
|
56136
|
+
function pickerFiltersActive(filters) {
|
|
56137
|
+
return filters.query.trim() !== "" || filters.types.length > 0 || filters.zones.length > 0 || filters.locations.length > 0;
|
|
56138
|
+
}
|
|
56139
|
+
/** Reset clears search, Type, Zone and Location — never "Group by". */
|
|
56140
|
+
function resetPickerFilters() {
|
|
56141
|
+
return PICKER_NO_FILTERS;
|
|
56142
|
+
}
|
|
56143
|
+
/**
|
|
56144
|
+
* Selected ids the current filters hide — they stay selected, they are only not listed. Only a
|
|
56145
|
+
* LISTED device can be hidden: an id the list does not hold at all (removed, unknown, off-offer)
|
|
56146
|
+
* is not "hidden", so it is not counted.
|
|
56147
|
+
*/
|
|
56148
|
+
function pickerHiddenSelectedCount(selected, list, matches) {
|
|
56149
|
+
const listed = new Set(list.map((item) => item.id));
|
|
56150
|
+
const shown = new Set(matches.map((item) => item.id));
|
|
56151
|
+
return selected.filter((id) => listed.has(id) && !shown.has(id)).length;
|
|
56152
|
+
}
|
|
56153
|
+
/** A dropdown is drawn when it can narrow (two values or more) or a key is chosen. */
|
|
56154
|
+
function pickerFacetFilterShown(options, chosen) {
|
|
56155
|
+
return options.length >= 2 || chosen.length > 0;
|
|
56156
|
+
}
|
|
56157
|
+
//#endregion
|
|
56158
|
+
//#region src/composites/device-picker/device-filter-bar.tsx
|
|
56159
|
+
/**
|
|
56160
|
+
* The filter bar above a picker's list (D697): search, "Group by" (when the
|
|
56161
|
+
* list offers it), the Type / Zone / Location dropdowns and "Reset filters".
|
|
56162
|
+
*
|
|
56163
|
+
* It owns no filter state — the caller holds `PickerFilters` and applies them
|
|
56164
|
+
* (`applyPickerFilters`); this only draws the controls and reports changes.
|
|
56165
|
+
* The search box keeps its own text so typing is instant, and tells the
|
|
56166
|
+
* caller `PICKER_SEARCH_DEBOUNCE_MS` after the last keystroke.
|
|
56167
|
+
*
|
|
56168
|
+
* The Zone and Location dropdowns are provisional (operator answer Q1): to
|
|
56169
|
+
* drop them, delete the two `FacetDropdown` uses in {@link DeviceFilterBar}
|
|
56170
|
+
* and their option props — the model side is described in
|
|
56171
|
+
* `device-picker-model.ts`.
|
|
56172
|
+
*
|
|
56173
|
+
* - D315: a zones read that has not answered draws the Zone dropdown
|
|
56174
|
+
* DISABLED ("loading zones…" / "zones unavailable"), never empty, and a
|
|
56175
|
+
* chosen zone is reported as paused, not as matching nothing.
|
|
56176
|
+
* - "Reset filters" clears search, Type, Zone and Location and leaves the
|
|
56177
|
+
* Group-by choice alone.
|
|
56178
|
+
*/
|
|
56179
|
+
/** "media-player" → "Media player"; null → "No type". */
|
|
56180
|
+
function typeLabel(type) {
|
|
56181
|
+
if (type === null) return "No type";
|
|
56182
|
+
const spaced = type.replaceAll("-", " ");
|
|
56183
|
+
return spaced.charAt(0).toUpperCase() + spaced.slice(1);
|
|
56184
|
+
}
|
|
56185
|
+
var GROUP_BY_LABEL = {
|
|
56186
|
+
zone: "Zone",
|
|
56187
|
+
location: "Location",
|
|
56188
|
+
none: "None"
|
|
56189
|
+
};
|
|
56190
|
+
var FACET_TITLE = {
|
|
56191
|
+
type: "Type",
|
|
56192
|
+
zone: "Zone",
|
|
56193
|
+
location: "Location"
|
|
56194
|
+
};
|
|
56195
|
+
var NO_VALUE_LABEL = {
|
|
56196
|
+
type: "No type",
|
|
56197
|
+
zone: "No zone",
|
|
56198
|
+
location: "No location"
|
|
56199
|
+
};
|
|
56200
|
+
function optionLabel(facet, option) {
|
|
56201
|
+
if (option.key === "(none)" || option.label === null) return NO_VALUE_LABEL[facet];
|
|
56202
|
+
return facet === "type" ? typeLabel(option.label) : option.label;
|
|
56203
|
+
}
|
|
56204
|
+
/** "Group by: Zone | Location | None", and why Zone is showing locations. */
|
|
56205
|
+
function GroupByControl({ grouping }) {
|
|
56206
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
56207
|
+
className: "mb-1.5",
|
|
56208
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
56209
|
+
role: "radiogroup",
|
|
56210
|
+
"aria-label": "Group by",
|
|
56211
|
+
className: "flex flex-wrap items-center gap-1 text-[10px] text-foreground-subtle",
|
|
56212
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
56213
|
+
className: "mr-1 font-semibold uppercase tracking-wide",
|
|
56214
|
+
children: "Group by"
|
|
56215
|
+
}), PICKER_GROUP_BY_MODES.map((mode) => {
|
|
56216
|
+
const active = mode === grouping.groupBy;
|
|
56217
|
+
return /* @__PURE__ */ jsx("button", {
|
|
56218
|
+
type: "button",
|
|
56219
|
+
role: "radio",
|
|
56220
|
+
"aria-checked": active,
|
|
56221
|
+
onClick: () => grouping.onGroupByChange(mode),
|
|
56222
|
+
className: active ? "rounded-md border border-primary bg-primary/10 px-1.5 py-0.5 text-[11px] text-primary" : "rounded-md border border-border px-1.5 py-0.5 text-[11px] text-foreground-subtle hover:bg-surface-hover",
|
|
56223
|
+
children: GROUP_BY_LABEL[mode]
|
|
56224
|
+
}, mode);
|
|
56225
|
+
})]
|
|
56226
|
+
}), grouping.fallback !== null && /* @__PURE__ */ jsx("p", {
|
|
56227
|
+
className: "mt-0.5 text-[10px] text-foreground-subtle",
|
|
56228
|
+
"data-testid": "picker-zones-note",
|
|
56229
|
+
children: grouping.fallback === "pending" ? "Loading zones — grouped by location for now" : "Zones unavailable — grouped by location"
|
|
56230
|
+
})]
|
|
56231
|
+
});
|
|
56232
|
+
}
|
|
56233
|
+
function FacetDropdown({ facet, options, chosen, onChange, unavailable, disabled }) {
|
|
56234
|
+
const title = FACET_TITLE[facet];
|
|
56235
|
+
const summary = unavailable !== void 0 ? unavailable : chosen.length === 0 ? "All" : `${String(chosen.length)} selected`;
|
|
56236
|
+
return /* @__PURE__ */ jsx("div", {
|
|
56237
|
+
"data-testid": `picker-filter-${facet}`,
|
|
56238
|
+
children: /* @__PURE__ */ jsxs(Popover, { children: [/* @__PURE__ */ jsxs(PopoverTrigger, {
|
|
56239
|
+
disabled: disabled || unavailable !== void 0,
|
|
56240
|
+
className: "rounded-md border border-border px-1.5 py-0.5 text-[11px] text-foreground hover:bg-surface-hover disabled:opacity-50",
|
|
56241
|
+
children: [
|
|
56242
|
+
title,
|
|
56243
|
+
": ",
|
|
56244
|
+
summary
|
|
56245
|
+
]
|
|
56246
|
+
}), /* @__PURE__ */ jsx(PopoverContent, {
|
|
56247
|
+
className: "min-w-[200px] max-h-[40vh] overflow-y-auto p-1",
|
|
56248
|
+
children: options.map((option) => {
|
|
56249
|
+
const label = optionLabel(facet, option);
|
|
56250
|
+
return /* @__PURE__ */ jsxs("label", {
|
|
56251
|
+
className: "flex cursor-pointer items-center gap-2 px-2 py-1 text-xs text-foreground hover:bg-surface-hover",
|
|
56252
|
+
children: [
|
|
56253
|
+
/* @__PURE__ */ jsx(Checkbox, {
|
|
56254
|
+
checked: chosen.includes(option.key),
|
|
56255
|
+
onChange: () => onChange(togglePickerKey(chosen, option.key)),
|
|
56256
|
+
"aria-label": label
|
|
56257
|
+
}),
|
|
56258
|
+
/* @__PURE__ */ jsx("span", {
|
|
56259
|
+
className: "min-w-0 flex-1 truncate",
|
|
56260
|
+
children: label
|
|
56261
|
+
}),
|
|
56262
|
+
/* @__PURE__ */ jsxs("span", {
|
|
56263
|
+
className: "text-[10px] text-foreground-subtle",
|
|
56264
|
+
children: [
|
|
56265
|
+
"(",
|
|
56266
|
+
option.count,
|
|
56267
|
+
")"
|
|
56268
|
+
]
|
|
56269
|
+
})
|
|
56270
|
+
]
|
|
56271
|
+
}, option.key);
|
|
56272
|
+
})
|
|
56273
|
+
})] })
|
|
56274
|
+
});
|
|
56275
|
+
}
|
|
56276
|
+
/** Why the Zone dropdown cannot be used, or undefined when the read answered. */
|
|
56277
|
+
function zoneUnavailable(zones) {
|
|
56278
|
+
if (zones.state === "pending") return "loading zones…";
|
|
56279
|
+
if (zones.state === "failed") return "zones unavailable";
|
|
56280
|
+
}
|
|
56281
|
+
function DeviceFilterBar({ filters, onFiltersChange, typeOptions, zoneOptions, locationOptions, zones, grouping, searchPlaceholder, searchLabel, disabled = false }) {
|
|
56282
|
+
const [text, setText] = useState(filters.query);
|
|
56283
|
+
const latest = useRef({
|
|
56284
|
+
filters,
|
|
56285
|
+
onFiltersChange
|
|
56286
|
+
});
|
|
56287
|
+
latest.current = {
|
|
56288
|
+
filters,
|
|
56289
|
+
onFiltersChange
|
|
56290
|
+
};
|
|
56291
|
+
useEffect(() => {
|
|
56292
|
+
if (text === latest.current.filters.query) return;
|
|
56293
|
+
const timer = setTimeout(() => latest.current.onFiltersChange({
|
|
56294
|
+
...latest.current.filters,
|
|
56295
|
+
query: text
|
|
56296
|
+
}), 200);
|
|
56297
|
+
return () => clearTimeout(timer);
|
|
56298
|
+
}, [text]);
|
|
56299
|
+
const unavailable = zoneUnavailable(zones);
|
|
56300
|
+
const zoneShown = unavailable !== void 0 || pickerFacetFilterShown(zoneOptions, filters.zones);
|
|
56301
|
+
const active = pickerFiltersActive(filters) || text.trim() !== "";
|
|
56302
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
56303
|
+
className: "space-y-1.5",
|
|
56304
|
+
"data-testid": "device-filter-bar",
|
|
56305
|
+
children: [
|
|
56306
|
+
grouping !== void 0 && /* @__PURE__ */ jsx(GroupByControl, { grouping }),
|
|
56307
|
+
/* @__PURE__ */ jsxs("div", {
|
|
56308
|
+
className: INPUT_SHELL,
|
|
56309
|
+
children: [/* @__PURE__ */ jsx(Search, { className: "h-3.5 w-3.5 shrink-0 text-foreground-subtle" }), /* @__PURE__ */ jsx("input", {
|
|
56310
|
+
type: "text",
|
|
56311
|
+
value: text,
|
|
56312
|
+
placeholder: searchPlaceholder,
|
|
56313
|
+
"aria-label": searchLabel,
|
|
56314
|
+
className: "min-w-0 flex-1 bg-transparent text-xs text-foreground outline-none placeholder:text-foreground-disabled",
|
|
56315
|
+
onChange: (e) => setText(e.target.value)
|
|
56316
|
+
})]
|
|
56317
|
+
}),
|
|
56318
|
+
/* @__PURE__ */ jsxs("div", {
|
|
56319
|
+
className: "flex flex-wrap items-center gap-1",
|
|
56320
|
+
children: [
|
|
56321
|
+
pickerFacetFilterShown(typeOptions, filters.types) && /* @__PURE__ */ jsx(FacetDropdown, {
|
|
56322
|
+
facet: "type",
|
|
56323
|
+
options: typeOptions,
|
|
56324
|
+
chosen: filters.types,
|
|
56325
|
+
onChange: (types) => onFiltersChange({
|
|
56326
|
+
...filters,
|
|
56327
|
+
types
|
|
56328
|
+
}),
|
|
56329
|
+
disabled
|
|
56330
|
+
}),
|
|
56331
|
+
zoneShown && /* @__PURE__ */ jsx(FacetDropdown, {
|
|
56332
|
+
facet: "zone",
|
|
56333
|
+
options: zoneOptions,
|
|
56334
|
+
chosen: filters.zones,
|
|
56335
|
+
onChange: (next) => onFiltersChange({
|
|
56336
|
+
...filters,
|
|
56337
|
+
zones: next
|
|
56338
|
+
}),
|
|
56339
|
+
...unavailable !== void 0 ? { unavailable } : {},
|
|
56340
|
+
disabled
|
|
56341
|
+
}),
|
|
56342
|
+
pickerFacetFilterShown(locationOptions, filters.locations) && /* @__PURE__ */ jsx(FacetDropdown, {
|
|
56343
|
+
facet: "location",
|
|
56344
|
+
options: locationOptions,
|
|
56345
|
+
chosen: filters.locations,
|
|
56346
|
+
onChange: (locations) => onFiltersChange({
|
|
56347
|
+
...filters,
|
|
56348
|
+
locations
|
|
56349
|
+
}),
|
|
56350
|
+
disabled
|
|
56351
|
+
}),
|
|
56352
|
+
active && /* @__PURE__ */ jsx(Button, {
|
|
56353
|
+
variant: "ghost",
|
|
56354
|
+
"data-testid": "picker-reset-filters",
|
|
56355
|
+
onClick: () => {
|
|
56356
|
+
setText("");
|
|
56357
|
+
onFiltersChange(resetPickerFilters());
|
|
56358
|
+
},
|
|
56359
|
+
children: "Reset filters"
|
|
56360
|
+
})
|
|
56361
|
+
]
|
|
56362
|
+
}),
|
|
56363
|
+
pickerZoneFilterSuspended(filters, zones) && /* @__PURE__ */ jsx("p", {
|
|
56364
|
+
className: "text-[10px] text-foreground-subtle",
|
|
56365
|
+
"data-testid": "picker-zone-filter-paused",
|
|
56366
|
+
children: "Zone filter paused — zones not loaded"
|
|
56367
|
+
})
|
|
56368
|
+
]
|
|
56369
|
+
});
|
|
56370
|
+
}
|
|
56371
|
+
//#endregion
|
|
56372
|
+
//#region src/composites/device-picker/device-picker-grouping.ts
|
|
56373
|
+
/**
|
|
56374
|
+
* The admin side of the device picker's "Group by" (Zone | Location | None):
|
|
56375
|
+
* the remembered choice, and the site-zone read. What each mode DRAWS is
|
|
56376
|
+
* `device-picker-model.ts` (shared with the viewer); this only supplies what
|
|
56377
|
+
* is side-specific.
|
|
56378
|
+
*
|
|
56379
|
+
* - The choice lives in `localStorage`, one value for every device picker in
|
|
56380
|
+
* this browser. Storage that throws or holds an unknown value is the
|
|
56381
|
+
* default (`zone`), never an error.
|
|
56382
|
+
* - The zones are read whenever the picker's panel is open (the Zone filter
|
|
56383
|
+
* needs them even in Location or None mode) — the caller mounts this with
|
|
56384
|
+
* the panel — and a failure stays a FAILURE: an
|
|
56385
|
+
* empty list would put every device under "No zone", a claim of absence
|
|
56386
|
+
* from a read that did not answer (D315). The model then groups by
|
|
56387
|
+
* location and the panel says why.
|
|
56388
|
+
*/
|
|
56389
|
+
var DEVICE_PICKER_GROUP_STORAGE_KEY = "camstack.admin.device-picker.group-by";
|
|
56390
|
+
/**
|
|
56391
|
+
* Under `listSiteZones`'s own prefix, so the Locations page's invalidation of
|
|
56392
|
+
* `[['deviceManager', 'listSiteZones']]` refreshes it too.
|
|
56393
|
+
*/
|
|
56394
|
+
var PICKER_ZONES_QUERY_KEY = [["deviceManager", "listSiteZones"], "device-picker"];
|
|
56395
|
+
var PICKER_ZONES_STALE_MS = 6e4;
|
|
56396
|
+
/** The stored choice; the default when storage is absent, throws or is unreadable. */
|
|
56397
|
+
function readStoredGroupBy() {
|
|
56398
|
+
try {
|
|
56399
|
+
const raw = globalThis.localStorage?.getItem("camstack.admin.device-picker.group-by") ?? null;
|
|
56400
|
+
return raw === null ? PICKER_DEFAULT_GROUP_BY : parsePickerGroupBy(raw);
|
|
56401
|
+
} catch {
|
|
56402
|
+
return PICKER_DEFAULT_GROUP_BY;
|
|
56403
|
+
}
|
|
56404
|
+
}
|
|
56405
|
+
/** Remember the choice; a storage that refuses keeps it for this page only. */
|
|
56406
|
+
function writeStoredGroupBy(next) {
|
|
56407
|
+
try {
|
|
56408
|
+
globalThis.localStorage?.setItem(DEVICE_PICKER_GROUP_STORAGE_KEY, next);
|
|
56409
|
+
} catch {}
|
|
56410
|
+
}
|
|
56411
|
+
function useStoredGroupBy() {
|
|
56412
|
+
const [groupBy, setState] = useState(readStoredGroupBy);
|
|
56413
|
+
const setGroupBy = (next) => {
|
|
56414
|
+
setState(next);
|
|
56415
|
+
writeStoredGroupBy(next);
|
|
56416
|
+
};
|
|
56417
|
+
return {
|
|
56418
|
+
groupBy,
|
|
56419
|
+
setGroupBy
|
|
56420
|
+
};
|
|
56421
|
+
}
|
|
56422
|
+
/** The site zones, with whether the read ANSWERED — read only while `enabled`. */
|
|
56423
|
+
function usePickerSiteZones(enabled) {
|
|
56424
|
+
const trpcClient = useSystem().trpcClient;
|
|
56425
|
+
const { data, isError } = useQuery({
|
|
56426
|
+
queryKey: PICKER_ZONES_QUERY_KEY,
|
|
56427
|
+
enabled,
|
|
56428
|
+
staleTime: PICKER_ZONES_STALE_MS,
|
|
56429
|
+
queryFn: () => trpcClient.deviceManager.listSiteZones.query()
|
|
56430
|
+
});
|
|
56431
|
+
return useMemo(() => {
|
|
56432
|
+
if (data !== void 0) return {
|
|
56433
|
+
state: "answered",
|
|
56434
|
+
zones: data
|
|
56435
|
+
};
|
|
56436
|
+
return isError ? { state: "failed" } : { state: "pending" };
|
|
56437
|
+
}, [data, isError]);
|
|
56438
|
+
}
|
|
56439
|
+
//#endregion
|
|
56440
|
+
//#region src/composites/device-picker/device-selection.ts
|
|
56441
|
+
function deviceListStateOf(query) {
|
|
56442
|
+
if (query.data !== void 0) return "answered";
|
|
56443
|
+
return query.isError ? "failed" : "pending";
|
|
56444
|
+
}
|
|
56445
|
+
function resolveSelectedDevices(selectedIds, cameras, state) {
|
|
56446
|
+
if (state !== "answered" || cameras === void 0) return selectedIds.map((id) => ({
|
|
56447
|
+
id,
|
|
56448
|
+
removed: false
|
|
56449
|
+
}));
|
|
56450
|
+
const byId = new Map(cameras.map((cam) => [cam.id, cam.name]));
|
|
56451
|
+
return selectedIds.map((id) => {
|
|
56452
|
+
const name = byId.get(id);
|
|
56453
|
+
return name === void 0 ? {
|
|
56454
|
+
id,
|
|
56455
|
+
removed: true
|
|
56456
|
+
} : {
|
|
56457
|
+
id,
|
|
56458
|
+
name,
|
|
56459
|
+
removed: false
|
|
56460
|
+
};
|
|
56461
|
+
});
|
|
56462
|
+
}
|
|
56463
|
+
/**
|
|
56464
|
+
* The selected ids a picker's DRAWN list does not contain, judged against the
|
|
56465
|
+
* WHOLE fleet — never against the drawn list itself. A camera picker draws
|
|
56466
|
+
* cameras, but a rule's devices can be a sensor picked on another surface: the
|
|
56467
|
+
* camera list lacking it says nothing about whether it still exists. Each row
|
|
56468
|
+
* is `removed` (the answered fleet lacks it), named (the fleet has it) or
|
|
56469
|
+
* unnamed (the fleet has not answered).
|
|
56470
|
+
*/
|
|
56471
|
+
function offListSelections(selectedIds, listed, fleet, fleetState) {
|
|
56472
|
+
const listedIds = new Set((listed ?? []).map((device) => device.id));
|
|
56473
|
+
return resolveSelectedDevices(selectedIds.filter((id) => !listedIds.has(id)), fleet, fleetState);
|
|
56474
|
+
}
|
|
56475
|
+
/** The "no cameras" hint: only an ANSWERED empty list with nothing selected. */
|
|
56476
|
+
function showsNoCamerasHint(state, cameraCount, selectedCount) {
|
|
56477
|
+
return state === "answered" && cameraCount === 0 && selectedCount === 0;
|
|
56478
|
+
}
|
|
56479
|
+
/**
|
|
56480
|
+
* The widening warning: on a picker where an empty selection means ALL
|
|
56481
|
+
* devices, an empty selection that once held devices must say so.
|
|
56482
|
+
*/
|
|
56483
|
+
function emptyDevicesWidens(emptyMeansAll, selectedCount, hadDevices) {
|
|
56484
|
+
return emptyMeansAll && selectedCount === 0 && hadDevices;
|
|
56485
|
+
}
|
|
56486
|
+
//#endregion
|
|
56487
|
+
//#region src/composites/device-picker/device-selection-rows.tsx
|
|
56488
|
+
/** Each noun's plural. */
|
|
56489
|
+
var PICKER_NOUN_PLURAL = {
|
|
56490
|
+
camera: "cameras",
|
|
56491
|
+
device: "devices",
|
|
56492
|
+
node: "nodes",
|
|
56493
|
+
package: "packages",
|
|
56494
|
+
class: "classes",
|
|
56495
|
+
zone: "zones",
|
|
56496
|
+
face: "faces"
|
|
56497
|
+
};
|
|
56498
|
+
/** The label a picker gives a selected id its drawn list does not contain. */
|
|
56499
|
+
function orphanDeviceLabel(row, noun = "device") {
|
|
56500
|
+
const id = String(row.id);
|
|
56501
|
+
switch (noun) {
|
|
56502
|
+
case "node":
|
|
56503
|
+
if (row.removed) return `Node ${id} — unknown to the hub`;
|
|
56504
|
+
return row.name ?? `Node ${id}`;
|
|
56505
|
+
case "package":
|
|
56506
|
+
if (row.removed) return `${id} — not installed`;
|
|
56507
|
+
return row.name ?? id;
|
|
56508
|
+
case "class":
|
|
56509
|
+
if (row.removed) return `${id} — not in the class list`;
|
|
56510
|
+
return row.name ?? id;
|
|
56511
|
+
case "zone":
|
|
56512
|
+
if (row.removed) return `${id} — zone not found`;
|
|
56513
|
+
return row.name ?? `${id} — zone unavailable`;
|
|
56514
|
+
case "face":
|
|
56515
|
+
if (row.removed) return `${id} — not in the face gallery`;
|
|
56516
|
+
return row.name ?? id;
|
|
56517
|
+
case "camera":
|
|
56518
|
+
case "device":
|
|
56519
|
+
if (row.removed) return `Device #${id} — removed`;
|
|
56520
|
+
return row.name ?? `Device #${id}`;
|
|
56521
|
+
}
|
|
56522
|
+
}
|
|
56523
|
+
/** Said under a picker whose empty selection means EVERY device. */
|
|
56524
|
+
function DevicesWidenWarning({ noun = "camera" }) {
|
|
56525
|
+
return /* @__PURE__ */ jsxs("p", {
|
|
56526
|
+
className: "mt-1 text-[11px] text-warning",
|
|
56527
|
+
"data-testid": "devices-widen-warning",
|
|
56528
|
+
children: [
|
|
56529
|
+
"No ",
|
|
56530
|
+
noun,
|
|
56531
|
+
" selected: the rule will apply to ALL ",
|
|
56532
|
+
PICKER_NOUN_PLURAL[noun],
|
|
56533
|
+
"."
|
|
56534
|
+
]
|
|
56535
|
+
});
|
|
56536
|
+
}
|
|
56537
|
+
/** A list that has not answered: never an absence claim (D315). */
|
|
56538
|
+
function DevicesLoadingLine({ noun = "cameras" }) {
|
|
56539
|
+
return /* @__PURE__ */ jsxs("p", {
|
|
56540
|
+
className: "text-[11px] text-foreground-subtle",
|
|
56541
|
+
children: [
|
|
56542
|
+
"Loading ",
|
|
56543
|
+
noun,
|
|
56544
|
+
"…"
|
|
56545
|
+
]
|
|
56546
|
+
});
|
|
56547
|
+
}
|
|
56548
|
+
/** A list that failed: said, while the selected ids stay removable. */
|
|
56549
|
+
function DevicesFailedLine({ noun = "devices" }) {
|
|
56550
|
+
return /* @__PURE__ */ jsxs("p", {
|
|
56551
|
+
className: "text-[11px] text-warning",
|
|
56552
|
+
children: [
|
|
56553
|
+
"The hub did not return its ",
|
|
56554
|
+
noun,
|
|
56555
|
+
" — selected ones are listed by id so they can still be removed."
|
|
56556
|
+
]
|
|
56557
|
+
});
|
|
56558
|
+
}
|
|
56559
|
+
//#endregion
|
|
56560
|
+
//#region src/composites/device-picker/DevicePicker.tsx
|
|
56561
|
+
/**
|
|
56562
|
+
* The smart device picker every notification editor uses: the selection as
|
|
56563
|
+
* compact chips, and a searchable, grouped list opened only to change it.
|
|
56564
|
+
*
|
|
56565
|
+
* It replaces the long checklists (a rule's devices, a system rule's
|
|
56566
|
+
* include/exclude, the timelapse and digest cameras, the alarm's non-blocking
|
|
56567
|
+
* openings) with the same UX the viewer's picker has (D636). The decisions are
|
|
56568
|
+
* `device-picker-model.ts` (shared with the viewer, byte-identical); what a
|
|
56569
|
+
* selected id the list does not draw IS — removed, named, or unknown — is
|
|
56570
|
+
* `device-selection.ts`, and so are the two rules that shaped it:
|
|
56571
|
+
*
|
|
56572
|
+
* - D315: only a list that ANSWERED may call an id removed or say "no
|
|
56573
|
+
* cameras"; a pending list is a loading line and names nothing absent.
|
|
56574
|
+
* - D49: a read never drops a selected id; every one is a chip the operator
|
|
56575
|
+
* can remove, and only the operator removes one.
|
|
56576
|
+
*
|
|
56577
|
+
* It reads nothing. It filters the list its caller already holds, and judges
|
|
56578
|
+
* an off-list id against the caller's fleet (a camera picker draws cameras,
|
|
56579
|
+
* and a selected sensor missing from it still exists).
|
|
56580
|
+
*
|
|
56581
|
+
* Generic over the id since D637: the system family's node and package pickers
|
|
56582
|
+
* (`scope-pickers.tsx`) are this picker over string ids, with their own noun
|
|
56583
|
+
* and group titles.
|
|
56584
|
+
*
|
|
56585
|
+
* Bounded at hundreds of devices of one type: big groups start collapsed, the
|
|
56586
|
+
* rows are rendered a page at a time with "Show N more", and the chips stop at
|
|
56587
|
+
* `PICKER_CHIP_LIMIT` with a "+N more". `showAll` turns all three off, and the
|
|
56588
|
+
* list is always open: the rule editor's Devices tab exists to show every
|
|
56589
|
+
* device (R15, D690).
|
|
56590
|
+
*
|
|
56591
|
+
* "Group by" (Zone | Location | None) sits at the top of a DEVICE picker's
|
|
56592
|
+
* list only — the node and package pickers keep their own groups, and so does
|
|
56593
|
+
* the CLASS picker (D641), whose groups are the taxonomy's categories. The choice
|
|
56594
|
+
* is remembered in `localStorage`, and the site zones are read whenever the
|
|
56595
|
+
* panel is open (the Zone filter needs them; `device-picker-grouping.ts`); a zone read that has
|
|
56596
|
+
* not answered groups by location with a one-line note, never "No zone"
|
|
56597
|
+
* (D315).
|
|
56598
|
+
*/
|
|
56599
|
+
/** A "Group by" group's title: the zone or room, or which one it lacks. */
|
|
56600
|
+
function headingTitle(heading) {
|
|
56601
|
+
switch (heading.kind) {
|
|
56602
|
+
case "zone":
|
|
56603
|
+
case "location": return heading.label;
|
|
56604
|
+
case "no-zone": return "No zone";
|
|
56605
|
+
case "no-location": return "No location";
|
|
56606
|
+
}
|
|
56607
|
+
}
|
|
56608
|
+
function deviceGroupTitle(group) {
|
|
56609
|
+
if (group.heading !== void 0) return headingTitle(group.heading);
|
|
56610
|
+
return `${typeLabel(group.type)} · ${group.location ?? "No room"}`;
|
|
56611
|
+
}
|
|
56612
|
+
/** Whether a picker lists devices — the only kind with "Group by". */
|
|
56613
|
+
function isDeviceNoun(noun) {
|
|
56614
|
+
return noun === "camera" || noun === "device";
|
|
56615
|
+
}
|
|
56616
|
+
function chipsOf(value, devices, fleet, noun) {
|
|
56617
|
+
const byId = new Map(devices.map((device) => [device.id, device.name]));
|
|
56618
|
+
const orphans = new Map(offListSelections(value, devices, fleet.devices, fleet.state).map((row) => [row.id, row]));
|
|
56619
|
+
return value.map((id) => {
|
|
56620
|
+
const name = byId.get(id);
|
|
56621
|
+
if (name !== void 0) return {
|
|
56622
|
+
id,
|
|
56623
|
+
label: name,
|
|
56624
|
+
removed: false
|
|
56625
|
+
};
|
|
56626
|
+
const row = orphans.get(id) ?? {
|
|
56627
|
+
id,
|
|
56628
|
+
removed: false
|
|
56629
|
+
};
|
|
56630
|
+
return {
|
|
56631
|
+
id,
|
|
56632
|
+
label: orphanDeviceLabel(row, noun),
|
|
56633
|
+
removed: row.removed
|
|
56634
|
+
};
|
|
56635
|
+
});
|
|
56636
|
+
}
|
|
56637
|
+
/** The empty-list sentence: the device pickers keep the words they shipped with. */
|
|
56638
|
+
function noItemsSentence(noun, emptyMeansAll) {
|
|
56639
|
+
const plural = PICKER_NOUN_PLURAL[noun];
|
|
56640
|
+
if (!emptyMeansAll) return `No ${plural} available.`;
|
|
56641
|
+
if (noun === "camera" || noun === "device") return "No cameras available — the rule applies to all devices.";
|
|
56642
|
+
return `No ${plural} available — the rule applies to every ${noun}.`;
|
|
56643
|
+
}
|
|
56644
|
+
function DevicePicker({ devices, listState, fleet, value, onChange, emptyMeansAll = false, savedHadDevices = false, noun = "camera", groupTitle = deviceGroupTitle, emptyLabel, annotate, disabled = false, testId, showAll = false }) {
|
|
56645
|
+
const judge = fleet ?? {
|
|
56646
|
+
state: listState,
|
|
56647
|
+
devices: listState === "answered" ? devices : void 0
|
|
56648
|
+
};
|
|
56649
|
+
const [open, setOpen] = useState(false);
|
|
56650
|
+
const [chipsExpanded, setChipsExpanded] = useState(false);
|
|
56651
|
+
const [hadDevices, setHadDevices] = useState(savedHadDevices || value.length > 0);
|
|
56652
|
+
if (value.length > 0 && !hadDevices) setHadDevices(true);
|
|
56653
|
+
const chips = chipsOf(value, devices, judge, noun);
|
|
56654
|
+
const overflow = chipOverflow(chips, chipsExpanded || showAll);
|
|
56655
|
+
const listOpen = open || showAll;
|
|
56656
|
+
const widening = emptyDevicesWidens(emptyMeansAll, value.length, hadDevices);
|
|
56657
|
+
const plural = PICKER_NOUN_PLURAL[noun];
|
|
56658
|
+
if (listState === "answered" && showsNoCamerasHint(listState, devices.length, value.length)) return /* @__PURE__ */ jsxs("div", {
|
|
56659
|
+
"data-testid": testId,
|
|
56660
|
+
children: [/* @__PURE__ */ jsx("p", {
|
|
56661
|
+
className: "text-[10px] text-foreground-subtle mt-0.5",
|
|
56662
|
+
children: noItemsSentence(noun, emptyMeansAll)
|
|
56663
|
+
}), widening && /* @__PURE__ */ jsx(DevicesWidenWarning, { noun })]
|
|
56664
|
+
});
|
|
56665
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
56666
|
+
className: "mt-1 space-y-1.5",
|
|
56667
|
+
"data-testid": testId,
|
|
56668
|
+
children: [
|
|
56669
|
+
listState === "pending" && /* @__PURE__ */ jsx(DevicesLoadingLine, { noun: plural }),
|
|
56670
|
+
listState === "failed" && /* @__PURE__ */ jsx(DevicesFailedLine, { noun: noun === "camera" ? "devices" : plural }),
|
|
56671
|
+
/* @__PURE__ */ jsxs("div", {
|
|
56672
|
+
className: "flex flex-wrap items-center gap-1",
|
|
56673
|
+
children: [
|
|
56674
|
+
chips.length === 0 ? /* @__PURE__ */ jsx("span", {
|
|
56675
|
+
className: "text-[11px] text-foreground-subtle",
|
|
56676
|
+
children: emptyLabel ?? (emptyMeansAll ? `Every ${noun} — no restriction` : "None selected")
|
|
56677
|
+
}) : overflow.shown.map((chip) => /* @__PURE__ */ jsx(SelectedChip, {
|
|
56678
|
+
testId: `picker-chip-${String(chip.id)}`,
|
|
56679
|
+
label: chip.label,
|
|
56680
|
+
warning: chip.removed,
|
|
56681
|
+
...!disabled ? { onRemove: () => onChange(value.filter((id) => id !== chip.id)) } : {}
|
|
56682
|
+
}, chip.id)),
|
|
56683
|
+
overflow.hidden > 0 && /* @__PURE__ */ jsxs("button", {
|
|
56684
|
+
type: "button",
|
|
56685
|
+
className: "rounded-md border border-border px-1.5 py-0.5 text-[11px] text-foreground-subtle hover:bg-surface-hover",
|
|
56686
|
+
onClick: () => setChipsExpanded(true),
|
|
56687
|
+
children: [
|
|
56688
|
+
"+",
|
|
56689
|
+
overflow.hidden,
|
|
56690
|
+
" more"
|
|
56691
|
+
]
|
|
56692
|
+
}),
|
|
56693
|
+
chipsExpanded && chips.length > 6 && /* @__PURE__ */ jsx("button", {
|
|
56694
|
+
type: "button",
|
|
56695
|
+
className: "text-[11px] text-foreground-subtle underline",
|
|
56696
|
+
onClick: () => setChipsExpanded(false),
|
|
56697
|
+
children: "Show fewer"
|
|
56698
|
+
}),
|
|
56699
|
+
listState !== "pending" && !showAll && /* @__PURE__ */ jsx("button", {
|
|
56700
|
+
type: "button",
|
|
56701
|
+
disabled,
|
|
56702
|
+
"aria-expanded": open,
|
|
56703
|
+
onClick: () => setOpen((o) => !o),
|
|
56704
|
+
className: "rounded-md border border-dashed border-border px-1.5 py-0.5 text-[11px] text-foreground hover:bg-surface-hover disabled:opacity-50",
|
|
56705
|
+
children: open ? "Done" : value.length === 0 ? `Add ${plural}…` : "Edit…"
|
|
56706
|
+
})
|
|
56707
|
+
]
|
|
56708
|
+
}),
|
|
56709
|
+
listOpen && listState === "answered" && (isDeviceNoun(noun) ? /* @__PURE__ */ jsx(GroupedPickerPanel, {
|
|
56710
|
+
devices,
|
|
56711
|
+
value,
|
|
56712
|
+
onChange,
|
|
56713
|
+
annotate,
|
|
56714
|
+
groupTitle,
|
|
56715
|
+
noun,
|
|
56716
|
+
disabled,
|
|
56717
|
+
showAll
|
|
56718
|
+
}) : /* @__PURE__ */ jsx(PickerPanel, {
|
|
56719
|
+
devices,
|
|
56720
|
+
value,
|
|
56721
|
+
onChange,
|
|
56722
|
+
annotate,
|
|
56723
|
+
groupTitle,
|
|
56724
|
+
noun,
|
|
56725
|
+
disabled,
|
|
56726
|
+
showAll
|
|
56727
|
+
})),
|
|
56728
|
+
widening && /* @__PURE__ */ jsx(DevicesWidenWarning, { noun })
|
|
56729
|
+
]
|
|
56730
|
+
});
|
|
56731
|
+
}
|
|
56732
|
+
/**
|
|
56733
|
+
* The device picker's panel: mounted only while the list is open, so the zone
|
|
56734
|
+
* read below happens only then (for Zone grouping and the Zone filter).
|
|
56735
|
+
*/
|
|
56736
|
+
function GroupedPickerPanel(props) {
|
|
56737
|
+
const { groupBy, setGroupBy } = useStoredGroupBy();
|
|
56738
|
+
const zones = usePickerSiteZones(true);
|
|
56739
|
+
return /* @__PURE__ */ jsx(PickerPanel, {
|
|
56740
|
+
...props,
|
|
56741
|
+
grouping: {
|
|
56742
|
+
groupBy,
|
|
56743
|
+
onGroupByChange: setGroupBy,
|
|
56744
|
+
zones
|
|
56745
|
+
}
|
|
56746
|
+
});
|
|
56747
|
+
}
|
|
56748
|
+
/** The search box's hint: a device has a room and a type, a class a category, a node or package an id. */
|
|
56749
|
+
function searchPlaceholder(noun) {
|
|
56750
|
+
if (noun === "camera" || noun === "device") return "Search by name, room or type…";
|
|
56751
|
+
if (noun === "class") return "Search by class or category…";
|
|
56752
|
+
if (noun === "zone") return "Search by camera or zone…";
|
|
56753
|
+
return "Search by name or id…";
|
|
56754
|
+
}
|
|
56755
|
+
/** An answered read with no zones: what the pickers without "Group by" are judged against. */
|
|
56756
|
+
var NO_ZONES = {
|
|
56757
|
+
state: "answered",
|
|
56758
|
+
zones: []
|
|
56759
|
+
};
|
|
56760
|
+
/** The searchable, grouped list — rendered one page at a time. */
|
|
56761
|
+
function PickerPanel({ devices, value, onChange, annotate, groupTitle, noun, disabled, showAll, grouping }) {
|
|
56762
|
+
const [filters, setFilters] = useState(PICKER_NO_FILTERS);
|
|
56763
|
+
const [toggles, setToggles] = useState(/* @__PURE__ */ new Map());
|
|
56764
|
+
const [shown, setShown] = useState(60);
|
|
56765
|
+
const searching = showAll || pickerQueryTokens(filters.query).length > 0;
|
|
56766
|
+
const groupBy = grouping?.groupBy;
|
|
56767
|
+
const zones = grouping?.zones ?? NO_ZONES;
|
|
56768
|
+
const matches = useMemo(() => applyPickerFilters(devices, filters, zones), [
|
|
56769
|
+
devices,
|
|
56770
|
+
filters,
|
|
56771
|
+
zones
|
|
56772
|
+
]);
|
|
56773
|
+
const grouped = useMemo(() => groupBy !== void 0 ? groupPickerDevicesBy(matches, value, groupBy, zones) : null, [
|
|
56774
|
+
matches,
|
|
56775
|
+
value,
|
|
56776
|
+
groupBy,
|
|
56777
|
+
zones
|
|
56778
|
+
]);
|
|
56779
|
+
const rows = useMemo(() => grouped !== null ? flattenPickerGrouping(grouped, value, toggles, searching) : flattenPickerRows(groupPickerDevices(matches, value), value, toggles, searching), [
|
|
56780
|
+
grouped,
|
|
56781
|
+
matches,
|
|
56782
|
+
value,
|
|
56783
|
+
toggles,
|
|
56784
|
+
searching
|
|
56785
|
+
]);
|
|
56786
|
+
const shownBy = grouped?.groupBy ?? null;
|
|
56787
|
+
const typeOptions = useMemo(() => pickerFacetOptions(devices, "type", filters.types, zones), [
|
|
56788
|
+
devices,
|
|
56789
|
+
filters.types,
|
|
56790
|
+
zones
|
|
56791
|
+
]);
|
|
56792
|
+
const zoneOptions = useMemo(() => pickerFacetOptions(devices, "zone", filters.zones, zones), [
|
|
56793
|
+
devices,
|
|
56794
|
+
filters.zones,
|
|
56795
|
+
zones
|
|
56796
|
+
]);
|
|
56797
|
+
const locationOptions = useMemo(() => grouping === void 0 ? [] : pickerFacetOptions(devices, "location", filters.locations, zones), [
|
|
56798
|
+
devices,
|
|
56799
|
+
filters.locations,
|
|
56800
|
+
zones,
|
|
56801
|
+
grouping
|
|
56802
|
+
]);
|
|
56803
|
+
const hiddenSelected = useMemo(() => pickerHiddenSelectedCount(value, devices, matches), [
|
|
56804
|
+
devices,
|
|
56805
|
+
value,
|
|
56806
|
+
matches
|
|
56807
|
+
]);
|
|
56808
|
+
const page = pageRows(rows, showAll ? rows.length : shown);
|
|
56809
|
+
const toggleGroup = (group, expanded) => setToggles((current) => new Map([...current, [group.key, !expanded]]));
|
|
56810
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
56811
|
+
className: "rounded-md border border-border bg-surface p-2",
|
|
56812
|
+
"data-testid": "device-picker-panel",
|
|
56813
|
+
children: [
|
|
56814
|
+
/* @__PURE__ */ jsx(DeviceFilterBar, {
|
|
56815
|
+
filters,
|
|
56816
|
+
onFiltersChange: (next) => {
|
|
56817
|
+
setFilters(next);
|
|
56818
|
+
setShown(60);
|
|
56819
|
+
},
|
|
56820
|
+
typeOptions,
|
|
56821
|
+
zoneOptions,
|
|
56822
|
+
locationOptions,
|
|
56823
|
+
zones,
|
|
56824
|
+
...grouping !== void 0 ? { grouping: {
|
|
56825
|
+
groupBy: grouping.groupBy,
|
|
56826
|
+
onGroupByChange: grouping.onGroupByChange,
|
|
56827
|
+
fallback: grouped?.fallback ?? null
|
|
56828
|
+
} } : {},
|
|
56829
|
+
searchPlaceholder: searchPlaceholder(noun),
|
|
56830
|
+
searchLabel: noun === "camera" || noun === "device" ? "Search devices" : `Search ${PICKER_NOUN_PLURAL[noun]}`,
|
|
56831
|
+
disabled
|
|
56832
|
+
}),
|
|
56833
|
+
/* @__PURE__ */ jsxs("p", {
|
|
56834
|
+
className: "mt-1 text-[10px] text-foreground-subtle",
|
|
56835
|
+
children: [
|
|
56836
|
+
matches.length,
|
|
56837
|
+
" of ",
|
|
56838
|
+
devices.length,
|
|
56839
|
+
" shown · ",
|
|
56840
|
+
value.length,
|
|
56841
|
+
" selected"
|
|
56842
|
+
]
|
|
56843
|
+
}),
|
|
56844
|
+
rows.length === 0 ? /* @__PURE__ */ jsx("p", {
|
|
56845
|
+
className: "py-2 text-[11px] text-foreground-subtle italic",
|
|
56846
|
+
children: noun === "camera" || noun === "device" ? "No device matches." : `No ${noun} matches.`
|
|
56847
|
+
}) : /* @__PURE__ */ jsxs("div", {
|
|
56848
|
+
className: showAll ? "mt-1" : "mt-1 max-h-72 overflow-y-auto",
|
|
56849
|
+
"data-testid": "device-picker-rows",
|
|
56850
|
+
children: [page.rows.map((row) => /* @__PURE__ */ jsx(PickerRowView, {
|
|
56851
|
+
row,
|
|
56852
|
+
value,
|
|
56853
|
+
onChange,
|
|
56854
|
+
onToggleGroup: toggleGroup,
|
|
56855
|
+
annotate,
|
|
56856
|
+
groupTitle,
|
|
56857
|
+
groupBy: shownBy,
|
|
56858
|
+
disabled
|
|
56859
|
+
}, row.key)), page.remaining > 0 && /* @__PURE__ */ jsxs("button", {
|
|
56860
|
+
type: "button",
|
|
56861
|
+
className: "mt-1 w-full rounded border border-border py-1 text-[11px] text-foreground-subtle hover:bg-surface-hover",
|
|
56862
|
+
onClick: () => setShown((n) => n + 60),
|
|
56863
|
+
children: [
|
|
56864
|
+
"Show ",
|
|
56865
|
+
Math.min(page.remaining, 60),
|
|
56866
|
+
" more (",
|
|
56867
|
+
page.remaining,
|
|
56868
|
+
" left)"
|
|
56869
|
+
]
|
|
56870
|
+
})]
|
|
56871
|
+
}),
|
|
56872
|
+
hiddenSelected > 0 && /* @__PURE__ */ jsxs("p", {
|
|
56873
|
+
className: "mt-1 text-[10px] text-foreground-subtle",
|
|
56874
|
+
"data-testid": "picker-hidden-selected",
|
|
56875
|
+
children: [hiddenSelected, " selected hidden by filters"]
|
|
56876
|
+
})
|
|
56877
|
+
]
|
|
56878
|
+
});
|
|
56879
|
+
}
|
|
56880
|
+
/** The second line: under "Group by" the room (where the header lacks it) and type, then the container. */
|
|
56881
|
+
function secondLine(device, groupBy) {
|
|
56882
|
+
if (groupBy === null) return device.detail;
|
|
56883
|
+
const facts = pickerRowFacts(device, groupBy);
|
|
56884
|
+
const parts = [
|
|
56885
|
+
facts.location,
|
|
56886
|
+
facts.type === null ? null : typeLabel(facts.type),
|
|
56887
|
+
device.detail ?? null
|
|
56888
|
+
].filter((part) => part !== null);
|
|
56889
|
+
return parts.length > 0 ? parts.join(" · ") : void 0;
|
|
56890
|
+
}
|
|
56891
|
+
function PickerRowView({ row, value, onChange, onToggleGroup, annotate, groupTitle, groupBy, disabled }) {
|
|
56892
|
+
if (row.kind === "header") {
|
|
56893
|
+
const { group, expanded } = row;
|
|
56894
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
56895
|
+
className: "flex items-center gap-2 border-b border-border px-1 py-1",
|
|
56896
|
+
"data-testid": "device-picker-group",
|
|
56897
|
+
children: [
|
|
56898
|
+
/* @__PURE__ */ jsxs("button", {
|
|
56899
|
+
type: "button",
|
|
56900
|
+
"aria-expanded": expanded,
|
|
56901
|
+
onClick: () => onToggleGroup(group, expanded),
|
|
56902
|
+
className: "flex min-w-0 flex-1 items-center gap-1 text-left text-[10px] font-semibold uppercase tracking-wide text-foreground-subtle",
|
|
56903
|
+
children: [
|
|
56904
|
+
/* @__PURE__ */ jsx("span", { children: expanded ? "▾" : "▸" }),
|
|
56905
|
+
/* @__PURE__ */ jsx("span", {
|
|
56906
|
+
className: "truncate",
|
|
56907
|
+
children: groupTitle(group)
|
|
56908
|
+
}),
|
|
56909
|
+
/* @__PURE__ */ jsxs("span", {
|
|
56910
|
+
className: "font-normal normal-case",
|
|
56911
|
+
children: [
|
|
56912
|
+
"(",
|
|
56913
|
+
group.selectedCount,
|
|
56914
|
+
"/",
|
|
56915
|
+
group.devices.length,
|
|
56916
|
+
")"
|
|
56917
|
+
]
|
|
56918
|
+
})
|
|
56919
|
+
]
|
|
56920
|
+
}),
|
|
56921
|
+
/* @__PURE__ */ jsx("button", {
|
|
56922
|
+
type: "button",
|
|
56923
|
+
disabled,
|
|
56924
|
+
className: "text-[10px] text-primary hover:underline disabled:opacity-50",
|
|
56925
|
+
onClick: () => onChange(selectPickerGroup(value, group)),
|
|
56926
|
+
children: "All"
|
|
56927
|
+
}),
|
|
56928
|
+
/* @__PURE__ */ jsx("button", {
|
|
56929
|
+
type: "button",
|
|
56930
|
+
disabled,
|
|
56931
|
+
className: "text-[10px] text-foreground-subtle hover:underline disabled:opacity-50",
|
|
56932
|
+
onClick: () => onChange(clearPickerGroup(value, group)),
|
|
56933
|
+
children: "Clear"
|
|
56934
|
+
})
|
|
56935
|
+
]
|
|
56936
|
+
});
|
|
56937
|
+
}
|
|
56938
|
+
const note = annotate?.(row.device.id);
|
|
56939
|
+
const second = secondLine(row.device, groupBy);
|
|
56940
|
+
return /* @__PURE__ */ jsxs("label", {
|
|
56941
|
+
className: "flex cursor-pointer items-center gap-2.5 px-3 py-1 text-xs text-foreground hover:bg-surface-hover",
|
|
56942
|
+
"data-testid": "device-picker-row",
|
|
56943
|
+
children: [/* @__PURE__ */ jsx("input", {
|
|
56944
|
+
type: "checkbox",
|
|
56945
|
+
checked: row.selected,
|
|
56946
|
+
disabled,
|
|
56947
|
+
onChange: () => onChange(togglePickerDevice(value, row.device.id)),
|
|
56948
|
+
className: "accent-primary",
|
|
56949
|
+
"data-device-id": String(row.device.id)
|
|
56950
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
56951
|
+
className: "flex min-w-0 flex-1 flex-col",
|
|
56952
|
+
children: [
|
|
56953
|
+
/* @__PURE__ */ jsx("span", {
|
|
56954
|
+
className: "truncate",
|
|
56955
|
+
children: row.device.name
|
|
56956
|
+
}),
|
|
56957
|
+
second !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
56958
|
+
className: "truncate text-[10px] text-foreground-subtle",
|
|
56959
|
+
children: second
|
|
56960
|
+
}),
|
|
56961
|
+
note !== void 0 && /* @__PURE__ */ jsx("span", {
|
|
56962
|
+
className: "text-[10px] text-warning",
|
|
56963
|
+
children: note
|
|
56964
|
+
})
|
|
56965
|
+
]
|
|
56966
|
+
})]
|
|
56967
|
+
});
|
|
56968
|
+
}
|
|
56969
|
+
//#endregion
|
|
56970
|
+
//#region src/composites/unit-picker/UnitPicker.tsx
|
|
56971
|
+
/**
|
|
56972
|
+
* Same-dimension unit picker. Lists only `unitsForDimension(dimension)`; an
|
|
56973
|
+
* empty dimension disables the control and shows `emptyReason` so the operator
|
|
56974
|
+
* never sees a refused conversion as a pickable option.
|
|
56975
|
+
*/
|
|
56976
|
+
var FIELD_CLASS = "w-full min-w-0 px-1.5 py-0.5 text-[11px] bg-background border border-border rounded focus:outline-none focus:border-primary disabled:opacity-50 disabled:cursor-not-allowed";
|
|
56977
|
+
function UnitPicker({ dimension, value, onChange, disabled = false, emptyReason, inheritLabel, className, id, "aria-label": ariaLabel }) {
|
|
56978
|
+
const choices = dimension !== void 0 ? unitsForDimension(dimension) : [];
|
|
56979
|
+
const isEmpty = dimension === void 0;
|
|
56980
|
+
const selectDisabled = disabled || isEmpty;
|
|
56981
|
+
const handleChange = (event) => {
|
|
56982
|
+
const raw = event.target.value;
|
|
56983
|
+
if (raw === "") {
|
|
56984
|
+
onChange("");
|
|
56985
|
+
return;
|
|
56986
|
+
}
|
|
56987
|
+
onChange(normalizeUnit(raw) ?? raw);
|
|
56988
|
+
};
|
|
56989
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
56990
|
+
className: "flex flex-col gap-0.5 min-w-0 w-full",
|
|
56991
|
+
children: [/* @__PURE__ */ jsxs("select", {
|
|
56992
|
+
id,
|
|
56993
|
+
className: className ?? FIELD_CLASS,
|
|
56994
|
+
"aria-label": ariaLabel,
|
|
56995
|
+
value,
|
|
56996
|
+
onChange: handleChange,
|
|
56997
|
+
disabled: selectDisabled,
|
|
56998
|
+
children: [inheritLabel !== void 0 && /* @__PURE__ */ jsx("option", {
|
|
56999
|
+
value: "",
|
|
57000
|
+
children: inheritLabel
|
|
57001
|
+
}), choices.map((unit) => /* @__PURE__ */ jsx("option", {
|
|
57002
|
+
value: unit,
|
|
57003
|
+
children: unit
|
|
57004
|
+
}, unit))]
|
|
57005
|
+
}), isEmpty && emptyReason !== void 0 && emptyReason !== "" && /* @__PURE__ */ jsx("span", {
|
|
57006
|
+
className: "text-[10px] text-foreground-subtle",
|
|
57007
|
+
children: emptyReason
|
|
57008
|
+
})]
|
|
57009
|
+
});
|
|
57010
|
+
}
|
|
57011
|
+
//#endregion
|
|
57012
|
+
//#region src/composites/placeholder-field/PlaceholderChipField.tsx
|
|
57013
|
+
/**
|
|
57014
|
+
* Text field with insertable placeholder chips — the same interaction model
|
|
57015
|
+
* as Notification Center's TemplateField, without the NC variable catalog.
|
|
57016
|
+
*/
|
|
57017
|
+
var LABEL_CLASS = "block text-[11px] font-medium text-foreground mb-1";
|
|
57018
|
+
var TEXTAREA_CLASS = "w-full rounded-md border border-border bg-surface px-2.5 py-1.5 text-xs text-foreground placeholder:text-foreground-subtle focus:outline-none focus:ring-1 focus:ring-primary";
|
|
57019
|
+
function insertAtSelection(value, selection, token) {
|
|
57020
|
+
const before = value.slice(0, selection.start);
|
|
57021
|
+
return {
|
|
57022
|
+
value: `${before}${token}${value.slice(selection.end)}`,
|
|
57023
|
+
cursor: before.length + token.length
|
|
57024
|
+
};
|
|
57025
|
+
}
|
|
57026
|
+
function PlaceholderChipField({ label, value, onChange, chips, multiline = false, placeholder, disabled = false, testId, maxLength }) {
|
|
57027
|
+
const inputRef = useRef(null);
|
|
57028
|
+
const areaRef = useRef(null);
|
|
57029
|
+
const insert = (token) => {
|
|
57030
|
+
const element = multiline ? areaRef.current : inputRef.current;
|
|
57031
|
+
const result = insertAtSelection(value, {
|
|
57032
|
+
start: element?.selectionStart ?? value.length,
|
|
57033
|
+
end: element?.selectionEnd ?? value.length
|
|
57034
|
+
}, token);
|
|
57035
|
+
onChange(result.value);
|
|
57036
|
+
requestAnimationFrame(() => {
|
|
57037
|
+
element?.focus();
|
|
57038
|
+
element?.setSelectionRange(result.cursor, result.cursor);
|
|
57039
|
+
});
|
|
57040
|
+
};
|
|
57041
|
+
const handle = (e) => onChange(e.target.value);
|
|
57042
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
57043
|
+
className: "space-y-1",
|
|
57044
|
+
"data-testid": testId,
|
|
57045
|
+
children: [
|
|
57046
|
+
/* @__PURE__ */ jsx("label", {
|
|
57047
|
+
className: LABEL_CLASS,
|
|
57048
|
+
children: label
|
|
57049
|
+
}),
|
|
57050
|
+
multiline ? /* @__PURE__ */ jsx("textarea", {
|
|
57051
|
+
ref: areaRef,
|
|
57052
|
+
value,
|
|
57053
|
+
rows: 2,
|
|
57054
|
+
disabled,
|
|
57055
|
+
placeholder,
|
|
57056
|
+
maxLength,
|
|
57057
|
+
onChange: handle,
|
|
57058
|
+
className: TEXTAREA_CLASS,
|
|
57059
|
+
"data-testid": `${testId}-input`
|
|
57060
|
+
}) : /* @__PURE__ */ jsx(Input, {
|
|
57061
|
+
ref: inputRef,
|
|
57062
|
+
value,
|
|
57063
|
+
disabled,
|
|
57064
|
+
placeholder,
|
|
57065
|
+
maxLength,
|
|
57066
|
+
onChange: handle,
|
|
57067
|
+
"data-testid": `${testId}-input`
|
|
57068
|
+
}),
|
|
57069
|
+
chips !== void 0 && chips.length > 0 && /* @__PURE__ */ jsx("div", {
|
|
57070
|
+
className: "flex flex-wrap gap-1 pt-0.5",
|
|
57071
|
+
"data-testid": `${testId}-chips`,
|
|
57072
|
+
children: chips.map((chip) => /* @__PURE__ */ jsx("button", {
|
|
57073
|
+
type: "button",
|
|
57074
|
+
disabled,
|
|
57075
|
+
className: "rounded-md bg-primary/10 px-1.5 py-0.5 text-[10px] text-primary hover:bg-primary/20 disabled:opacity-50",
|
|
57076
|
+
onClick: () => insert(chip.token),
|
|
57077
|
+
"data-testid": `${testId}-chip-${chip.id}`,
|
|
57078
|
+
children: chip.label
|
|
57079
|
+
}, chip.id))
|
|
57080
|
+
})
|
|
57081
|
+
]
|
|
57082
|
+
});
|
|
57083
|
+
}
|
|
57084
|
+
//#endregion
|
|
55723
57085
|
//#region src/contexts/zone-editing.tsx
|
|
55724
57086
|
/**
|
|
55725
57087
|
* Per-device zone-editing state shared between the player overlay
|
|
@@ -56671,4 +58033,4 @@ var SceneMonitorEditor = lazy(() => import("./SceneMonitorEditor-vfWTm6qv.js").t
|
|
|
56671
58033
|
/** Lazy-wrapped `PrivacyMaskSettings` — code-split off the main bundle. */
|
|
56672
58034
|
var PrivacyMaskSettings = lazy(() => import("./PrivacyMaskSettings-DMkchqO1.js").then((m) => ({ default: m.PrivacyMaskSettings })));
|
|
56673
58035
|
//#endregion
|
|
56674
|
-
export { AddonGlobalSettingsForm, AdminLinkQuickAction, AgentStepEditor, AlarmHeroCard, AlarmInlineControl as AlarmPanelInlineControl, AppShell, ArcKnob, AudioClassificationList, AudioLevelWaveform, AudioWaveform, AutomationHeroCard, AutomationInlineControl, AutotrackSection, BTN_COMPACT, BTN_COMPACT_DANGER, BTN_COMPACT_PRIMARY, BTN_COMPACT_WARNING, Badge, BatteryBadge, BottomSheet, Breadcrumb, BrightnessPanel, Button, ButtonControl, ButtonHeroCard, CARD_MODE_MIN_COLUMNS, CENTER, CHIP_ACTIVE, CHIP_BASE, CHIP_INACTIVE, CLASS_COLORS, COLUMN_BREAKPOINT_CLASS, COLUMN_PRIORITY, COMMIT_DEDUPE_TOLERANCE_MS, COMMIT_DEDUPE_WINDOW_MS, CONTROL_CAP_NAMES, CONTROL_FILLS, CameraStreamPlayer, Card, Checkbox, ChildSectionAccordion, ClimatePanel, CodeBlock, CollapsibleCard, ConfigFormBuilder, FormField as ConfigFormField, ConfigSchemaField, ConfirmActionButton, ConfirmDialogProvider, ConsumablesPanel, ContainerChildrenProvider, ContainerPrimaryHero, ControlColumn, ControlHeroCard, ControlInlineControl, ControlPanel, CopyButton, CoverHeroCard, CoverInlineControl, CoverPanel, CustomFieldRenderersProvider, DEFAULT_COLOR, DEVICE_COLUMNS, DEVICE_LIST_PAGE_SIZE_KEY, DEVICE_LIST_PAGE_SIZE_OPTIONS, DEVICE_ROLE_META, DEVICE_TYPE_CONTROL, DEVICE_TYPE_META, DISPLAY_ICON_REGISTRY, DataTable, DataTableFilterBar, DetectionCanvas, DetectionOverlay, DetectionResultTree, DevShell, DeviceActivityPanel, DeviceBatchToolbar, DeviceCard, DeviceContextProvider, DeviceExportPanel, DeviceGrid, DeviceItem, DeviceList, DeviceMultiSelectField, DeviceSelectField, DeviceSelectorPicker, DeviceStepMatrix, Dialog, DialogBody, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DiscoveryPanel, DoorbellRecentPanel, Dropdown, DropdownContent, DropdownItem, DropdownTrigger, DummyHeroCard, DummyInline, EMPTY_DATA_TABLE_FILTER, EVENT_KIND_ICONS, EmptyState, ErrorBox, EventKindGlyph, EventStream, ExtensionsPanel, FILL, FLEET_LIST_GC_TIME_MS, FLEET_LIST_QUERY_KEY, FLEET_LIST_STALE_TIME_MS, FanHeroCard, FanInlineControl, FanPanel, FilterBar, FloatingEventStream, FloatingLogStream, FloatingPanel, FormField$1 as FormField, GRID_GAP, GRID_PAIRED, GRID_QUICK_STATS, GripTrack, GroupedModelSelector, HOST_WIDGETS, HlsVideo, HoverZoomImage, HumidifierHeroCard, HumidifierInlineControl, INPUT_COMPACT, IconAction, IconButton, IconPicker, ImageHeroCard, ImageInlineControl, ImageSelector, InferenceConfigSelector, Input, KebabMenu, KeyValueList, LIST_ROW, Label, LawnMowerHeroCard, LawnMowerInlineControl, LightHeroCard, LightInlineControl, LockHeroCard, LockInlineControl, LockPanel, LogStream, LoginForm, MODE_COLOR, MaskShapeCanvas, MediaPlayerHeroCard, MediaPlayerInlineControl, MediaPlayerPanel, MobileDrawer, ModelPicker, MotionZonesSettings, NAVIGATION_DRIVE_INTERVAL_MS, NavigationPanel, NetworkLinkBadge, NodeMultiSelectField, NodePicker, NodeSelectField, OfflineBadge, PHASE_CONFIG, PRIORITY, PTZOverlay, PageHeader, PhaseIcon, PipelineBuilder, PipelineRuntimeSelector, PipelineStep, PipelineTreeMatrix, PlayerOverlaysProvider, Popover, PopoverContent, PopoverRowAction, PopoverTrigger, PrimaryChildPicker, PrivacyMaskSettings, ProviderBadge, PtzPanel, QrCode, RECONNECT_POLICY, RECORDED_PLAYBACK_MODES, RIGHT, ROI_AREA_WARN_FRACTION, ROLE_DESCRIPTOR, RadialGauge, RecordedPlaybackProvider, RecordingPanel, ResponseLog, RoleDisplayDefaultsFromServer, RoleDisplayDefaultsProvider, SCENE_CAPTURE_VARIANTS, SECTION_BODY, SECTION_CARD, SECTION_HEADER, SETTING_ROW, SETTING_ROW_LABEL, SETTING_ROW_STACK_BREAKPOINT, SETTING_ROW_VALUE, SETTING_ROW_VALUE_TEXT, SNAPSHOT_MEDIA_PATH, SPLIT_PANEL_OUTER, SPLIT_PANEL_SIDE, STACK_GAP, STATE_COLOR, SceneMonitorEditor, ScopePicker, ScriptHeroCard, ScriptInlineControl, ScrollArea, Select, SemanticBadge, SensorHeroCard, SensorInlineControl, SensorValueAtom, Separator, SettingRow, Sidebar, SidebarItem, Skeleton, SlideOverPanel, SlideToggle, SnapshotButton, SortHeaderButton, StatCard, StateValuesStream, StatusBadge, StepTimings, StepTreeMaster, Stepper, StreamBrokerSelector, StreamDebugOverlay, StreamPanel, Switch, SwitchHeroCard, SwitchInlineControl, SwitchPanel, SystemProvider, TABLE_SCROLL_MAX_H, TEXT_FIELD_LABEL, TEXT_HINT, TEXT_METRIC, TEXT_SECTION_LABEL, TEXT_VALUE, TIMEZONES, Tabs, TabsContent, TabsList, TabsTrigger, TapToggle, ThemeProvider, ThermostatHeroCard, ThermostatInlineControl, TimezoneSelector, Tooltip, TooltipContent, TooltipTrigger, VacuumHeroCard, VacuumInlineControl, ValueReadout, ValveHeroCard, ValveInlineControl, VersionBadge, VodPlaybackProvider, WaterHeaterHeroCard, WaterHeaterInlineControl, WeatherHeroCard, WeatherInlineControl, WidgetMetricCard, WidgetPanel, WidgetRegistryProvider, WidgetSlot, ZoneEditingProvider, MicOff as a, agentColumnKey, allDeviceTypeFilterOptions, applyFleetQueryDefaults, ariaSortForColumn, badgeFor, buildStepTreeFromSchema, EyeOff as c, childEntityId, childListName, classifyCapability, cn, columnsForContext, containerChildToRef, countableDevices, coverHighlight, coverageLine, createSharedContext, createTheme, cursorFractionFor, darkColors, dataTableFacets, defaultTheme, deriveDeviceKind, deriveWebrtcDebugStats, describeDeviceSelector, deviceIntegrationResolver, deviceMatchesFilter, deviceOptionLabel, deviceRoleMeta, deviceRoleMetaOf, deviceTypeLabel, deviceTypeMeta, deviceTypeMetaOf, devicesToOptions, ensureMfHostInit, eventKindLabel, filterDataTableRows, filterDeviceOptions, findTimezone, formatControlDateTime, formatLastSeen, formatNumeric, freezeVerdict, fuzzyMatch, getClassColor, getPhaseVisual, groupAgentColumns, groupChildrenByLayout, hardwareLabel, hubOrigin, hubPath, hubUrl, hubWsUrl, humanDuration, humidifierTint, Mic as i, initialScrubState, isAbsentProvider, isDataTableFilterActive, isFieldVisible, Camera as l, lawnMowerActivityMeta, lightColors, loadRemoteBundle, makeScrubBridge, metadataEntries, metadataString, mirror, mountAddonPage, mountPath, Square as n, nextReconnectAction, nextSort, nextSortDirection, nextTableSort, normalizeForSearch, ImageOff as o, openTopLayer, overrideEntityIdFromLink, parseRecordedServerMessage, providerIcons, RotateCcw as r, resetHubMountForTests, resolveContainerPrimary, resolveControlAlign, resolveDeviceControl, resolveDeviceIntegration, resolveDisplayIcon, resolveEffectiveDefaultModel, resolveEffectiveStepModel, resolveEventKindIcon, resolvePrimaryChild, resolveSensorDisplay, resolveStepDefaultModel, resolveTableLayout, roiTooLarge, routerBasename, Grid2x2 as s, scrubReducer, selectedDeviceOptions, serializeRecordedCommand, shouldCommit, shouldEmit, shouldUseSingleNode, sortRows, sortRowsByColumn, statusIcons, statusLine, stepHasModelForFormat, stepModelOptions, stripParentNamePrefix, Trash2 as t, tabForSelector, tankAlert, themeToCss, toStationaryOverlayBox, toggleDataTableFacet, trpc, createLucideIcon as u, useAccessoriesGetStatus, useAccessoriesSetChildHidden, useAddonPagesListPages, useAddonSettingsGetDeviceSettings, useAddonSettingsGetGlobalSettings, useAddonSettingsGetIntegrationSettings, useAddonSettingsUpdateDeviceSettings, useAddonSettingsUpdateGlobalSettings, useAddonWidgetsListWidgets, useAddonsApplyAutoUpdateToAll, useAddonsCancelJob, useAddonsCustom, useAddonsForceRefresh, useAddonsGetAddonAutoUpdate, useAddonsGetAutoUpdateSettings, useAddonsGetJob, useAddonsGetLastRestart, useAddonsGetLogs, useAddonsGetVersions, useAddonsInstallFromWorkspace, useAddonsInstallPackage, useAddonsIsWorkspaceAvailable, useAddonsList, useAddonsListCapabilityProviders, useAddonsListFrameworkPackages, useAddonsListJobs, useAddonsListPackages, useAddonsListUpdates, useAddonsListWorkspacePackages, useAddonsOnAddonLogs, useAddonsReloadPackages, useAddonsRestartAddon, useAddonsRestartServer, useAddonsRetryLoad, useAddonsRollbackPackage, useAddonsSearchAvailable, useAddonsSetAddonAutoUpdate, useAddonsSetAutoUpdateSettings, useAddonsSetCapabilityProviderEnabled, useAddonsStartJob, useAddonsUninstallPackage, useAddonsUpdatePackage, useAirQualitySensorGetStatus, useAlarmPanelArm, useAlarmPanelDisarm, useAlarmPanelGetStatus, useAlarmPanelTrigger, useAlert, useAlertsDismiss, useAlertsEmit, useAlertsGetUnreadCount, useAlertsList, useAlertsMarkAllRead, useAlertsMarkRead, useAlertsUpdate, useAllWidgets, useAmbientLightSensorGetStatus, useAudioAnalysisApplyDeviceSettingsPatch, useAudioAnalysisGetDeviceLiveContribution, useAudioAnalysisGetDeviceSettingsContribution, useAudioAnalysisResolveDeviceSettings, useAudioAnalyzerAnalyseChunk, useAudioAnalyzerAttachDevice, useAudioAnalyzerClassify, useAudioAnalyzerDetachDevice, useAudioAnalyzerDispose, useAudioAnalyzerIsReady, useAudioAnalyzerReprobeAudioEngine, useAudioCodecCanHandle, useAudioCodecCloseSession, useAudioCodecCreateDecodeSession, useAudioCodecCreateEncodeSession, useAudioCodecFlushEncode, useAudioCodecListActiveSessions, useAudioCodecListSupportedCodecs, useAudioCodecPullEncoded, useAudioCodecPullPcm, useAudioCodecPushEncodedFrame, useAudioCodecPushPcm, useAudioMetricsGetCurrentSnapshot, useAudioMetricsGetHistory, useAutomationControlDisable, useAutomationControlEnable, useAutomationControlGetStatus, useAutomationControlTrigger, useBackupCancel, useBackupDelete, useBackupDeleteSchedule, useBackupGetEntries, useBackupList, useBackupListArchives, useBackupListDestinations, useBackupListLocations, useBackupListRuns, useBackupListSchedules, useBackupPreviewSchedule, useBackupRestore, useBackupTrigger, useBackupUpsertDestinationPolicy, useBackupUpsertSchedule, useBatteryGetStatus, useBatteryWakeForStream, useBinaryGetStatus, useBrightnessGetStatus, useBrightnessSetBrightness, useBrokerAdd, useBrokerGet, useBrokerGetBrokerConfig, useBrokerGetSettings, useBrokerGetSettingsSchema, useBrokerGetState, useBrokerGetStatus, useBrokerList, useBrokerListProviders, useBrokerPublish, useBrokerRemove, useBrokerSetSettings, useBrokerSubscribe, useBrokerTestConnection, useBrokerTestSettings, useBrokerUnsubscribe, useButtonPress, useCameraCredentialsGetCredentials, useCameraCredentialsGetStatus, useCameraGridLayoutApplyDeviceSettingsPatch, useCameraGridLayoutGetDeviceLiveContribution, useCameraGridLayoutGetDeviceSettingsContribution, useCameraGridLayoutGetLayout, useCameraGridLayoutSaveLayout, useCameraPipelineConfigApplyDeviceSettingsPatch, useCameraPipelineConfigGetDeviceLiveContribution, useCameraPipelineConfigGetDeviceSettingsContribution, useCameraStreamsGetBrokerStreams, useCameraStreamsGetCameraStreams, useCameraStreamsGetProfileRtspEntries, useCameraStreamsGetRtspEntries, useCameraStreamsPickStream, useCapabilityPresence, useCarbonMonoxideGetStatus, useClimateControlGetStatus, useClimateControlSetFanMode, useClimateControlSetMode, useClimateControlSetPreset, useClimateControlSetSwingHorizontal, useClimateControlSetSwingVertical, useClimateControlSetTarget, useClimateControlSetTargetHumidity, useClimateControlSetTargetRange, useClusterNodes, useClusterTopology, useColorGetStatus, useColorSetColor, useConfirm, useConnectionTestDescribeTest, useConnectionTestTestSettings, useConnectivityGetStatus, useConsumablesGetStatus, useConsumablesReset, useContactGetStatus, useContainerChildren, useControlGetStatus, useControlSetValue, useCoreBlocksCompile, useCoreBlocksCreate, useCoreBlocksCreateComposition, useCoreBlocksDelete, useCoreBlocksGet, useCoreBlocksGetComposition, useCoreBlocksGetCustomization, useCoreBlocksGetTypeDefs, useCoreBlocksList, useCoreBlocksListComposableCaps, useCoreBlocksListCompositions, useCoreBlocksRestart, useCoreBlocksSetEnabled, useCoreBlocksUpdate, useCoreBlocksUpdateComposition, useCoreBlocksValidateComposition, useCoverClose, useCoverGetStatus, useCoverOpen, useCoverSetPosition, useCoverSetTiltPosition, useCoverStop, useCustomFieldRenderer, useDataTableFilter, useDayNightGetOptions, useDayNightGetStatus, useDayNightSetSettings, useDebouncedString, useDecoderCreateSession, useDecoderDestroySession, useDecoderGetFrame, useDecoderGetInfo, useDecoderGetShmStats, useDecoderGetStats, useDecoderListActiveSessions, useDecoderOpenStream, useDecoderPullFrames, useDecoderPullHandles, useDecoderPushPacket, useDecoderReprobeHwaccel, useDecoderSupportsCodec, useDecoderUpdateConfig, useDetectionPipelineApplyDeviceSettingsPatch, useDetectionPipelineGetDeviceLiveContribution, useDetectionPipelineGetDeviceSettingsContribution, useDevShell, useDevice, useDeviceAdminLink, useDeviceAdminLinkGetAdminLink, useDeviceAdoptionAdopt, useDeviceAdoptionGetCandidate, useDeviceAdoptionGetStatus, useDeviceAdoptionListCandidateFilters, useDeviceAdoptionListCandidates, useDeviceAdoptionRefresh, useDeviceAdoptionRelease, useDeviceAdoptionResync, useDeviceAutotrack, useDeviceBattery, useDeviceCapSlice, useDeviceCapability, useDeviceDetections, useDeviceDiscoveryAdoptDevice, useDeviceDiscoveryGetStatus, useDeviceDiscoveryListDiscovered, useDeviceDiscoveryRefreshDiscovery, useDeviceDiscoveryReleaseDevice, useDeviceExportApplyDeviceSettingsPatch, useDeviceExportExposeDevice, useDeviceExportGetDeviceLiveContribution, useDeviceExportGetDeviceSettingsContribution, useDeviceExportGetStatus, useDeviceExportListExposedDevices, useDeviceExportListSupportedDeviceKinds, useDeviceExportUnexposeDevice, useDeviceExtensionListCandidates, useDeviceExtensionListSlots, useDeviceExtensionListSources, useDeviceExtensionSetSlot, useDeviceId, useDeviceListPageSize, useDeviceManagerAddLocation, useDeviceManagerAdoptDevice, useDeviceManagerAdoptionAdopt, useDeviceManagerAdoptionCancelJob, useDeviceManagerAdoptionListCandidateFilters, useDeviceManagerAdoptionListCandidates, useDeviceManagerAdoptionListJobs, useDeviceManagerAdoptionRefresh, useDeviceManagerAdoptionRelease, useDeviceManagerAdoptionResync, useDeviceManagerAdoptionStartJob, useDeviceManagerAllocateDeviceId, useDeviceManagerApplyInitialMeta, useDeviceManagerCreateDevice, useDeviceManagerDisable, useDeviceManagerDiscoverAllProviders, useDeviceManagerDiscoverDevices, useDeviceManagerDiscoverProvider, useDeviceManagerDiscoveryProviders, useDeviceManagerEnable, useDeviceManagerGetAllBindings, useDeviceManagerGetBindings, useDeviceManagerGetBindingsBatch, useDeviceManagerGetChildren, useDeviceManagerGetChildrenBatch, useDeviceManagerGetConfigSchema, useDeviceManagerGetCreationSchema, useDeviceManagerGetDevice, useDeviceManagerGetDeviceAggregate, useDeviceManagerGetDeviceLiveInfoAggregate, useDeviceManagerGetDeviceSettingsAggregate, useDeviceManagerGetDeviceStatusAggregate, useDeviceManagerGetDeviceStatusAggregateBatch, useDeviceManagerGetLinkedDevices, useDeviceManagerGetLinkedDevicesBatch, useDeviceManagerGetRoleDisplayDefaults, useDeviceManagerGetSettingsSchema, useDeviceManagerGetStreamProfileMap, useDeviceManagerGetStreamSources, useDeviceManagerGetWireableFields, useDeviceManagerGetWrapperActivation, useDeviceManagerListAll, useDeviceManagerListBindableCapsForDeviceType, useDeviceManagerListDeviceIdsByCaps, useDeviceManagerListLocationDescriptions, useDeviceManagerListLocationIcons, useDeviceManagerListLocations, useDeviceManagerListPersistedByAddon, useDeviceManagerListSiteZones, useDeviceManagerListWrappersForCap, useDeviceManagerLoadConfig, useDeviceManagerLoadMeta, useDeviceManagerLoadRuntimeState, useDeviceManagerMigrateDevice, useDeviceManagerPersistConfig, useDeviceManagerProbeStreams, useDeviceManagerProviderCreationType, useDeviceManagerProviderDiscoveryParamsSchema, useDeviceManagerRegisterDevice, useDeviceManagerRemove, useDeviceManagerRemoveByIntegration, useDeviceManagerRemoveDevice, useDeviceManagerRemoveLocation, useDeviceManagerRemoveSiteZone, useDeviceManagerRenameLocation, useDeviceManagerRenameSiteZone, useDeviceManagerRunDeviceAction, useDeviceManagerSetChildLayout, useDeviceManagerSetDisabled, useDeviceManagerSetDisplay, useDeviceManagerSetIntegrationId, useDeviceManagerSetLinkDeviceId, useDeviceManagerSetLocation, useDeviceManagerSetLocationDescription, useDeviceManagerSetLocationIcon, useDeviceManagerSetLocationZone, useDeviceManagerSetMetadata, useDeviceManagerSetName, useDeviceManagerSetPrimaryChildEntityId, useDeviceManagerSetRole, useDeviceManagerSetRoleDisplayDefaults, useDeviceManagerSetSiteZone, useDeviceManagerSetStreamProfileMap, useDeviceManagerSetType, useDeviceManagerSetWrapperActive, useDeviceManagerTestCreationField, useDeviceManagerTestField, useDeviceManagerUpdateConfig, useDeviceManagerUpdateDeviceField, useDeviceManagerUpdateDeviceFieldsBatch, useDeviceNetworkLink, useDeviceOpsGetConfigEntries, useDeviceOpsGetRawState, useDeviceOpsGetSettingsSchema, useDeviceOpsGetStreamSources, useDeviceOpsRemoveDevice, useDeviceOpsRunAction, useDeviceOpsSetConfig, useDeviceProviderAdoptDiscoveredDevice, useDeviceProviderCreateDevice, useDeviceProviderDiscoverDevices, useDeviceProviderGetChildCreationSchema, useDeviceProviderGetDevices, useDeviceProviderGetDiscoveryParamsSchema, useDeviceProviderGetManualCreationType, useDeviceProviderGetStatus, useDeviceProviderReloadDevice, useDeviceProviderStart, useDeviceProviderStop, useDeviceProviderSupportsDiscovery, useDeviceProviderSupportsManualCreation, useDeviceProviderTestCreationField, useDeviceProxy, useDeviceSnapshot, useDeviceSnapshotImage, useDeviceState, useDeviceStateClaimFields, useDeviceStateGetAllSnapshots, useDeviceStateGetCapSlice, useDeviceStateGetNativeCapSlice, useDeviceStateGetSnapshot, useDeviceStateListClaims, useDeviceStatePatchOwnedFields, useDeviceStateReleaseClaim, useDeviceStateSetCapSlice, useDeviceStateSlice, useDeviceStatusGetStatus, useDeviceWebrtc, useDevices, useDoorbellEvents, useDoorbellGetStatus, useEnumSensorGetStatus, useEventEmitterGetStatus, useEventInvalidation, useEventStreamLatest, useEventStreamMap, useFaceGalleryAssignFace, useFaceGalleryAssignFaces, useFaceGalleryAuditIdentitySamples, useFaceGalleryCreateIdentity, useFaceGalleryDeleteFace, useFaceGalleryDeleteIdentity, useFaceGalleryGetFaceByTrack, useFaceGalleryGetFaceMedia, useFaceGalleryListIdentities, useFaceGalleryListIdentitySamples, useFaceGalleryListRecentFaces, useFaceGalleryRemoveSample, useFaceGalleryRenameIdentity, useFaceGallerySuggestFaceClusters, useFaceGalleryUnassignFace, useFaceGalleryUnassignFaces, useFanControlGetStatus, useFanControlSetDirection, useFanControlSetOscillating, useFanControlSetPercentage, useFanControlSetPreset, useFeatureProbeGetStatus, useFloodGetStatus, useGasGetStatus, useHumidifierGetStatus, useHumidifierSetMode, useHumidifierSetOn, useHumidifierSetTargetHumidity, useHumiditySensorGetStatus, useImageGetStatus, useImageSettingsGetOptions, useImageSettingsGetStatus, useImageSettingsSetSettings, useIntegrationsCreate, useIntegrationsDelete, useIntegrationsGet, useIntegrationsGetAvailableTypes, useIntegrationsGetByAddonId, useIntegrationsGetSettings, useIntegrationsList, useIntegrationsSetSettings, useIntegrationsTestConnection, useIntegrationsUpdate, useIntercomEndTalkSession, useIntercomGetStatus, useIntercomHandleAnswer, useIntercomPushTalkAudio, useIntercomStartSession, useIntercomStartTalkSession, useIntercomStopSession, useIsMidWidth, useIsMobile, useLawnMowerControlDock, useLawnMowerControlGetStatus, useLawnMowerControlPause, useLawnMowerControlStartMowing, useLiveBuffer, useLiveEvent, useLlmCancel, useLlmDeleteModel, useLlmDeleteProfile, useLlmGenerate, useLlmGenerateVision, useLlmGetDefaults, useLlmGetRuntimeStatus, useLlmGetUsage, useLlmInstallModel, useLlmListModelCatalog, useLlmListModels, useLlmListNodeModels, useLlmListProfileKinds, useLlmListProfiles, useLlmListRuntimeNodes, useLlmResolveModelRef, useLlmSetDefault, useLlmStartRuntime, useLlmStopRuntime, useLlmTestProfile, useLlmUpsertProfile, useLocalNetworkDownloadCa, useLocalNetworkGetAllowedAddresses, useLocalNetworkGetConnectionEndpoints, useLocalNetworkGetNotificationEndpoint, useLocalNetworkGetPreferred, useLocalNetworkGetTlsStatus, useLocalNetworkGetViewerEndpoints, useLocalNetworkList, useLocalNetworkRegenerateCertificate, useLocalNetworkResetAllowlistToBestMatch, useLocalNetworkRevertToGeneratedCertificate, useLocalNetworkSetAllowedAddresses, useLocalNetworkSetNotificationEndpoint, useLocalNetworkSetViewerEndpoints, useLocalNetworkUploadCertificate, useLockControlGetStatus, useLockControlLock, useLockControlOpen, useLockControlUnlock, useMediaPlayerGetStatus, useMediaPlayerNext, useMediaPlayerPause, useMediaPlayerPlay, useMediaPlayerPlayMedia, useMediaPlayerPrevious, useMediaPlayerSeek, useMediaPlayerSelectSource, useMediaPlayerSetMute, useMediaPlayerSetRepeat, useMediaPlayerSetShuffle, useMediaPlayerSetVolume, useMediaPlayerStop, useMeshNetworkGetStatus, useMeshNetworkJoin, useMeshNetworkLeave, useMeshNetworkListPeers, useMeshNetworkLogout, useMeshNetworkStartLogin, useMeshNetworkTestConnection, useMetricsProviderCollectSnapshot, useMetricsProviderGetAddonStats, useMetricsProviderGetCached, useMetricsProviderGetCpuTemperature, useMetricsProviderGetCurrent, useMetricsProviderGetDiskSpace, useMetricsProviderGetGpuInfo, useMetricsProviderGetLoadSeries, useMetricsProviderGetProcessStats, useMetricsProviderListAddonInstances, useMetricsProviderListNodeProcesses, useMotionDetectionAnalyze, useMotionDetectionApplyDeviceSettingsPatch, useMotionDetectionGetDeviceLiveContribution, useMotionDetectionGetDeviceSettingsContribution, useMotionDetectionRemoveCamera, useMotionDetectionReset, useMotionGetStatus, useMotionIsDetected, useMotionTriggerGetStatus, useMotionTriggerSetMotionTrigger, useMotionZonesGetOptions, useMotionZonesGetStatus, useMotionZonesSetZone, useMqttBrokerAddBroker, useMqttBrokerGetBrokerConfig, useMqttBrokerGetStatus, useMqttBrokerListBrokers, useMqttBrokerRemoveBroker, useMqttBrokerStartEmbeddedBroker, useMqttBrokerStopEmbeddedBroker, useMqttBrokerTestConnection, useNativeObjectDetectionGetOptions, useNativeObjectDetectionGetStatus, useNativeObjectDetectionSetEnabled, useNativeObjectDetectionSetSettings, useNavigation, useNavigationGetFeatures, useNavigationGetStatus, useNavigationGoToPoint, useNavigationListActions, useNavigationMove, useNavigationPlaySound, useNavigationRunAction, useNavigationSetLightLevel, useNavigationSetLightMode, useNavigationSetLightOn, useNavigationStop, useNetworkAccessGetEndpoint, useNetworkAccessGetStatus, useNetworkAccessListEndpoints, useNetworkAccessStart, useNetworkAccessStop, useNetworkLinkGetStatus, useNetworkQualityGetAllStats, useNetworkQualityGetDeviceStats, useNetworkQualityReportClientStats, useNodesClusterAddonStatus, useNodesDeployAddon, useNodesDirectory, useNodesExecuteQuery, useNodesGetCapUsageGraph, useNodesGetNodeAddons, useNodesRenameNode, useNodesRestartAddon, useNodesRestartNode, useNodesRestartProcess, useNodesSetProcessLogLevel, useNodesShutdownNode, useNodesTopology, useNodesUndeployAddon, useNotificationOutputDeleteTarget, useNotificationOutputDiscoverTargets, useNotificationOutputListTargetKinds, useNotificationOutputListTargets, useNotificationOutputSend, useNotificationOutputSetTargetEnabled, useNotificationOutputTestTarget, useNotificationOutputUpsertTarget, useNotificationRulesCancelSnooze, useNotificationRulesCreateRule, useNotificationRulesCreateSnooze, useNotificationRulesDeleteRule, useNotificationRulesGetAlarmConfig, useNotificationRulesGetAlarmSensors, useNotificationRulesGetClipRetentionAsks, useNotificationRulesGetConditionCatalog, useNotificationRulesGetHistory, useNotificationRulesGetRule, useNotificationRulesGetRuleLastRuns, useNotificationRulesGetTemplateCatalog, useNotificationRulesListDeviceMutes, useNotificationRulesListRules, useNotificationRulesListSnoozes, useNotificationRulesPreviewStateSummary, useNotificationRulesPreviewTemplate, useNotificationRulesResolveArtifactUrl, useNotificationRulesSetAlarmConfig, useNotificationRulesSetDeviceMuted, useNotificationRulesSetRuleEnabled, useNotificationRulesTestRule, useNotificationRulesUpdateRule, useNotifierCancel, useNotifierGetStatus, useNotifierSend, useNumericSensorGetStatus, useOptimisticSlice, useOptionalSystem, useOptionalWidgetRegistry, useOsdGetStatus, useOsdManagerClearSlotBinding, useOsdManagerCopyDeviceConfiguration, useOsdManagerGetConditionSupport, useOsdManagerGetDeviceOsd, useOsdManagerGetSourceCatalog, useOsdManagerPreviewSlot, useOsdManagerRenderDevice, useOsdManagerSetSlotBinding, useOsdSetOverlay, usePTZ, usePetFeederCallPet, usePetFeederCancelFeed, usePetFeederFeed, usePetFeederGetStatus, usePetFeederMarkFoodReplenished, usePetFeederPlaySound, usePetFeederResetDesiccant, usePetFeederSetChildLock, usePetFeederSetFeedSound, usePetFeederSetIndicatorLight, usePetFeederSetVolume, usePipelineAnalyticsApplyDeviceSettingsPatch, usePipelineAnalyticsCancelRelocateMedia, usePipelineAnalyticsCancelStorageMigrationMove, usePipelineAnalyticsClearTrackRelation, usePipelineAnalyticsClearTracks, usePipelineAnalyticsCompleteRetrainTrack, usePipelineAnalyticsCountRelocatableMedia, usePipelineAnalyticsCountUnstampedEventMedia, usePipelineAnalyticsDeleteDeviceEvents, usePipelineAnalyticsDeleteTracks, usePipelineAnalyticsDeselectRetrainFrame, usePipelineAnalyticsGetActiveTracks, usePipelineAnalyticsGetAudioEvents, usePipelineAnalyticsGetDeviceLiveContribution, usePipelineAnalyticsGetDeviceSettingsContribution, usePipelineAnalyticsGetEventDensity, usePipelineAnalyticsGetEventDensityBatch, usePipelineAnalyticsGetEventMedia, usePipelineAnalyticsGetEventMediaFootprintByKind, usePipelineAnalyticsGetEventStoreFootprint, usePipelineAnalyticsGetKeyEvents, usePipelineAnalyticsGetKeyEventsBatch, usePipelineAnalyticsGetMediaReclaimStatus, usePipelineAnalyticsGetMotionEvents, usePipelineAnalyticsGetObjectEmbeddingRebuildStatus, usePipelineAnalyticsGetObjectEvents, usePipelineAnalyticsGetRetrainExportUrl, usePipelineAnalyticsGetRetrainFrameImage, usePipelineAnalyticsGetSensorEvents, usePipelineAnalyticsGetStorageMigrationMoveStatus, usePipelineAnalyticsGetTrack, usePipelineAnalyticsGetTrackMedia, usePipelineAnalyticsGetTrainingExportSummary, usePipelineAnalyticsGetTrainingExportUrl, usePipelineAnalyticsListArchivedDebugNotes, usePipelineAnalyticsListBirthDecisions, usePipelineAnalyticsListEventKinds, usePipelineAnalyticsListEventKindsBatch, usePipelineAnalyticsListEventMedia, usePipelineAnalyticsListOpsLog, usePipelineAnalyticsListRecentTracks, usePipelineAnalyticsListRelocateMediaJobs, usePipelineAnalyticsListRetrainAnnotations, usePipelineAnalyticsListRetrainFrames, usePipelineAnalyticsListRetrainStaging, usePipelineAnalyticsListTrackMedia, usePipelineAnalyticsListTrackRelations, usePipelineAnalyticsListTracks, usePipelineAnalyticsOwnersWithMedia, usePipelineAnalyticsPauseForStorageMigration, usePipelineAnalyticsProposeRetrainAnnotations, usePipelineAnalyticsPruneEvents, usePipelineAnalyticsPruneEventsBefore, usePipelineAnalyticsPruneTracksBefore, usePipelineAnalyticsReadLongTermSeries, usePipelineAnalyticsRebuildObjectEmbeddings, usePipelineAnalyticsReclaimDebugMedia, usePipelineAnalyticsReconcileFromDisk, usePipelineAnalyticsRefreshStorageLocationsForMigration, usePipelineAnalyticsRelocateMedia, usePipelineAnalyticsRestageRetrainTrack, usePipelineAnalyticsResumeForStorageMigration, usePipelineAnalyticsSaveRetrainAnnotations, usePipelineAnalyticsSearchObjectEvents, usePipelineAnalyticsSelectRetrainFrames, usePipelineAnalyticsSetTrackFlags, usePipelineAnalyticsSetTrackPurity, usePipelineAnalyticsSetTrackRelation, usePipelineAnalyticsStartStorageMigrationMove, usePipelineAnalyticsWipeAllAnalytics, usePipelineAnalyticsWipeObjectEmbeddings, usePipelineExecutorCacheFrameInPool, usePipelineExecutorClearDeviceOverrides, usePipelineExecutorDeleteModel, usePipelineExecutorDeleteTemplate, usePipelineExecutorDownloadModel, usePipelineExecutorGetAddonModels, usePipelineExecutorGetAudioCapabilities, usePipelineExecutorGetAvailableEngines, usePipelineExecutorGetCapabilities, usePipelineExecutorGetDefaultSteps, usePipelineExecutorGetDetectionConfigSchema, usePipelineExecutorGetEffectiveTuning, usePipelineExecutorGetEngineProvisioning, usePipelineExecutorGetGlobalPipelineConfig, usePipelineExecutorGetGlobalSteps, usePipelineExecutorGetInferenceDeviceHealth, usePipelineExecutorGetOrchestratorConfigSchema, usePipelineExecutorGetReferenceAudio, usePipelineExecutorGetReferenceAudioFiles, usePipelineExecutorGetReferenceImage, usePipelineExecutorGetSchema, usePipelineExecutorGetSelectedEngine, usePipelineExecutorGetVideoPipelineSteps, usePipelineExecutorInferCached, usePipelineExecutorKillEngine, usePipelineExecutorListLoadedEngines, usePipelineExecutorListReferenceImages, usePipelineExecutorListTemplates, usePipelineExecutorRearmInferenceDevice, usePipelineExecutorRunAudioTest, usePipelineExecutorRunPipeline, usePipelineExecutorRunPipelineBatch, usePipelineExecutorSaveTemplate, usePipelineExecutorSetVideoPipelineSteps, usePipelineExecutorSpinEngine, usePipelineExecutorUncacheFrame, usePipelineExecutorUpdateTemplate, usePipelineExecutorValidatePipeline, usePipelineOrchestratorApplyDeviceSettingsPatch, usePipelineOrchestratorAssignAudio, usePipelineOrchestratorAssignPipeline, usePipelineOrchestratorDeleteTemplate, usePipelineOrchestratorGetAgentLoad, usePipelineOrchestratorGetAgentSettings, usePipelineOrchestratorGetAudioAssignment, usePipelineOrchestratorGetAudioAssignments, usePipelineOrchestratorGetAudioNodeLoad, usePipelineOrchestratorGetCameraMetrics, usePipelineOrchestratorGetCameraSettings, usePipelineOrchestratorGetCameraStatus, usePipelineOrchestratorGetCameraStatuses, usePipelineOrchestratorGetCameraStepOverrides, usePipelineOrchestratorGetCameraSwitches, usePipelineOrchestratorGetCapabilityBindings, usePipelineOrchestratorGetClusterModelChoice, usePipelineOrchestratorGetDeviceLiveContribution, usePipelineOrchestratorGetDeviceSettingsContribution, usePipelineOrchestratorGetGlobalMetrics, usePipelineOrchestratorGetIngestOwner, usePipelineOrchestratorGetNodeInferenceDevices, usePipelineOrchestratorGetPipelineAssignment, usePipelineOrchestratorGetPipelineAssignments, usePipelineOrchestratorGetPipelineDevicePin, usePipelineOrchestratorGetReconcileFromDiskStatus, usePipelineOrchestratorListAgentSettings, usePipelineOrchestratorListTemplates, usePipelineOrchestratorPauseForStorageMigration, usePipelineOrchestratorRebalance, usePipelineOrchestratorReconcileFromDisk, usePipelineOrchestratorRemoveAgentSettings, usePipelineOrchestratorRequestOccupancyLook, usePipelineOrchestratorResetNodePipelineDefaults, usePipelineOrchestratorResolvePipeline, usePipelineOrchestratorResumeForStorageMigration, usePipelineOrchestratorSaveTemplate, usePipelineOrchestratorSetAgentCapabilities, usePipelineOrchestratorSetAgentDecodeLimits, usePipelineOrchestratorSetAgentDetectWeight, usePipelineOrchestratorSetAgentInferenceDevices, usePipelineOrchestratorSetAgentMaxCameras, usePipelineOrchestratorSetAgentReachableHost, usePipelineOrchestratorSetCameraPipelineForAgent, usePipelineOrchestratorSetCameraSensors, usePipelineOrchestratorSetCameraStepOverride, usePipelineOrchestratorSetCameraStepToggle, usePipelineOrchestratorSetCameraSwitch, usePipelineOrchestratorSetCapabilityBinding, usePipelineOrchestratorSetPipelineDevicePin, usePipelineOrchestratorUnassignAudio, usePipelineOrchestratorUnassignPipeline, usePipelineOrchestratorUpdateTemplate, usePipelineRunnerAttachCamera, usePipelineRunnerDetachCamera, usePipelineRunnerGetAllCameraMetrics, usePipelineRunnerGetCameraMetrics, usePipelineRunnerGetLocalCameras, usePipelineRunnerGetLocalLoad, usePipelineRunnerGetLocalMetrics, usePipelineRunnerGetNativeCrop, usePipelineRunnerGetParkedTrackFrame, usePipelineRunnerParkTrackFrame, usePipelineRunnerReleaseParkedTrackFrames, usePipelineRunnerReportMotion, usePipelineRunnerRequestOccupancyBurst, usePipelineRunnerRunDetailSubtree, usePipelineRunnerRunStatelessStep, usePlateGalleryAssignPlate, usePlateGalleryAssignPlates, usePlateGalleryCorrectPlateText, usePlateGalleryCreateVehicle, usePlateGalleryDeletePlate, usePlateGalleryDeleteVehicle, usePlateGalleryGetPlateByTrack, usePlateGalleryGetPlateMedia, usePlateGalleryListPlates, usePlateGalleryListVehicleSamples, usePlateGalleryListVehicles, usePlateGalleryRemoveVehicleSample, usePlateGalleryRenameVehicle, usePlateGallerySearchPlates, usePlateGallerySuggestPlateClusters, usePlateGalleryUnassignPlate, usePlateGalleryUnassignPlates, usePlayerOverlayLayer, usePlayerOverlayLayers, usePlayerToolbarButton, usePlayerToolbarButtons, usePowerMeterGetStatus, usePresenceGetStatus, usePressureSensorGetStatus, usePrivacyMaskGetOptions, usePrivacyMaskGetStatus, usePrivacyMaskSetAudioEnabled, usePrivacyMaskSetMask, usePrompt, usePtzAutotrackGetSettings, usePtzAutotrackGetStatus, usePtzAutotrackSetEnabled, usePtzAutotrackSetSettings, usePtzCaptureHomeHere, usePtzContinuousMove, usePtzDeletePreset, usePtzGetHomePreset, usePtzGetHomeReturn, usePtzGetOptions, usePtzGetPosition, usePtzGetPresets, usePtzGetStatus, usePtzGoHome, usePtzGoToPreset, usePtzMove, usePtzSavePreset, usePtzSetAutofocus, usePtzSetHomePreset, usePtzSetHomeReturn, usePtzStop, useRebootReboot, useRecordedPlayback, useRecordingArchiveApplyDeviceSettingsPatch, useRecordingArchiveCancelRelocateJob, useRecordingArchiveCancelStorageMigrationMove, useRecordingArchiveDeleteFootprint, useRecordingArchiveGetAvailabilityBatch, useRecordingArchiveGetDaysWithRecordingsBatch, useRecordingArchiveGetDeviceConfig, useRecordingArchiveGetDeviceLiveContribution, useRecordingArchiveGetDeviceSettingsContribution, useRecordingArchiveGetPlacement, useRecordingArchiveGetRelocateResidue, useRecordingArchiveGetStatus, useRecordingArchiveGetStorageMigrationMoveStatus, useRecordingArchiveGetStorageUsage, useRecordingArchiveListOpsLog, useRecordingArchiveListRelocateJobs, useRecordingArchiveLocateSegment, useRecordingArchivePauseForStorageMigration, useRecordingArchivePlanStorageRebalance, useRecordingArchivePruneFootage, useRecordingArchiveReadGopBytes, useRecordingArchiveReadSegmentBytes, useRecordingArchiveReadWindowBytes, useRecordingArchiveReconcileLedgerAgainstDisk, useRecordingArchiveRefreshStorageLocationsForMigration, useRecordingArchiveRelocateFootage, useRecordingArchiveRenderClip, useRecordingArchiveRenderGif, useRecordingArchiveRescanStorage, useRecordingArchiveResumeForStorageMigration, useRecordingArchiveSetDeviceConfig, useRecordingArchiveSetDevicePlacement, useRecordingArchiveStartStorageMigrationMove, useRecordingArchiveStartStorageRebalance, useRecordingExportCancelExport, useRecordingExportCreateExport, useRecordingExportDeleteExport, useRecordingExportGetDownloadUrl, useRecordingExportGetExport, useRecordingExportListExports, useRecordingExportReadExportBytes, useRecordingGetAvailability, useRecordingGetDaysWithRecordings, useRecordingGetPlayback, useRecordingGetPlaybackOptions, useRecordingListSources, useRecordingOnboardGetOptions, useRecordingOnboardGetStatus, useRecordingOnboardSetSettings, useRecordingSignalGetStatus, useRemoteComponent, useRoleDisplayDefaults, useSceneMonitorCaptureReference, useSceneMonitorCreateScene, useSceneMonitorDeleteReference, useSceneMonitorDeleteScene, useSceneMonitorGetStatus, useSceneMonitorListScenes, useSceneMonitorListScenesBatch, useSceneMonitorRecheckNow, useSceneMonitorResetScene, useSceneMonitorUpdateScene, useScriptRunnerGetStatus, useScriptRunnerRun, useScriptRunnerStop, useScrubController, useServerManagementApplyServerUpdate, useServerManagementCheckServerUpdate, useServerManagementGetServerPackageStatus, useServerManagementRestartServer, useServerManagementRollbackServerUpdate, useSettingsStoreAggregate, useSettingsStoreCount, useSettingsStoreDeclareCollection, useSettingsStoreDelete, useSettingsStoreDeleteWhere, useSettingsStoreGet, useSettingsStoreHistogram, useSettingsStoreInsert, useSettingsStoreInsertMany, useSettingsStoreIsEmpty, useSettingsStoreQuery, useSettingsStoreSet, useSettingsStoreUpdate, useSettingsStoreUpdateWhere, useSettingsStoreUpsert, useSmokeGetStatus, useSnapshotApplyDeviceSettingsPatch, useSnapshotGetDebugState, useSnapshotGetDeviceLiveContribution, useSnapshotGetDeviceSettingsContribution, useSnapshotGetSnapshot, useSnapshotGetSnapshotLinks, useSnapshotGetSnapshotOverview, useSnapshotGetStatus, useSnapshotInvalidateCache, useStationaryOverlay, useStorageAbortUpload, useStorageBeginDownload, useStorageBeginUpload, useStorageDelete, useStorageDeleteLocation, useStorageEndDownload, useStorageExists, useStorageFinalizeUpload, useStorageGetAvailableSpace, useStorageList, useStorageListDrainProgress, useStorageListLocationDeclarations, useStorageListLocations, useStorageListProviders, useStorageMigrationCancel, useStorageMigrationCleanupCancel, useStorageMigrationCleanupStart, useStorageMigrationCleanupStatus, useStorageMigrationDrain, useStorageMigrationHistory, useStorageMigrationMovers, useStorageMigrationPlan, useStorageMigrationResidue, useStorageMigrationStart, useStorageMigrationStatus, useStorageRead, useStorageReadChunk, useStorageResolve, useStorageTestConfig, useStorageTestLocation, useStorageUpsertLocation, useStorageWrite, useStorageWriteChunk, useStreamBrokerAcquireEgressTranscode, useStreamBrokerApplyDeviceSettingsPatch, useStreamBrokerAssignProfile, useStreamBrokerFetchEventMedia, useStreamBrokerForgetDeviceHardware, useStreamBrokerGetAllRtspEntries, useStreamBrokerGetBrokerStats, useStreamBrokerGetDeviceAudioMute, useStreamBrokerGetDeviceLiveContribution, useStreamBrokerGetDeviceSettingsContribution, useStreamBrokerGetPreBufferInfo, useStreamBrokerGetRtspEntry, useStreamBrokerGetRtspPort, useStreamBrokerGetStreamUrl, useStreamBrokerGetStreamWithCodec, useStreamBrokerIsRtspEnabled, useStreamBrokerKillClient, useStreamBrokerListAllCameraStreams, useStreamBrokerListAllProfileSlots, useStreamBrokerListClients, useStreamBrokerProbeStream, useStreamBrokerProduceEventMedia, useStreamBrokerPublishCameraStream, useStreamBrokerPullAudioChunks, useStreamBrokerPullFrameHandles, useStreamBrokerRegenerateRtspToken, useStreamBrokerReleaseEgressTranscode, useStreamBrokerReleaseStreamWithCodec, useStreamBrokerRenderPreBufferClip, useStreamBrokerReportStreamSignal, useStreamBrokerRestartProfile, useStreamBrokerRetractCameraStream, useStreamBrokerSetDeviceAudioMute, useStreamBrokerSetPreBufferDuration, useStreamBrokerSetRtspEnabled, useStreamBrokerSubscribeAudioChunks, useStreamBrokerSubscribeFrames, useStreamBrokerUnassignProfile, useStreamBrokerUnsubscribeAudioChunks, useStreamBrokerUnsubscribeFrames, useStreamCatalogGetCatalog, useStreamParamsGetConfigSchema, useStreamParamsGetOptions, useStreamParamsGetStatus, useStreamParamsSetProfile, useStreamSignalsListSignals, useSwitchGetStatus, useSwitchSetState, useSystem, useSystemDetectSiteLocation, useSystemFeatureFlags, useSystemForceRetentionCleanup, useSystemGetFailureContributions, useSystemGetLoadContributions, useSystemGetLoggingSettings, useSystemGetRequestCensus, useSystemGetRetentionConfig, useSystemGetSiteLocation, useSystemHealth, useSystemInfo, useSystemMutation, useSystemNetworkAddresses, useSystemQuery, useSystemSetLoggingSettings, useSystemSetRetentionConfig, useSystemSetSiteLocation, useTamperGetStatus, useTemperatureSensorGetStatus, useTerminalSessionAdoptLegacyMonitor, useTerminalSessionClose, useTerminalSessionCreateInstance, useTerminalSessionDeleteInstance, useTerminalSessionListInstances, useTerminalSessionListLegacyCameras, useTerminalSessionListProfiles, useTerminalSessionListSessions, useTerminalSessionOpenSession, useTerminalSessionPullOutput, useTerminalSessionResize, useTerminalSessionSetInstanceEnabled, useTerminalSessionUpdateInstance, useTerminalSessionWriteInput, useThemeMode, useToastOnToast, useTurnProviderGetTurnServers, useUpdateGetStatus, useUpdateInstallUpdate, useUserManagementConfirmTotp, useUserManagementCreateApiKey, useUserManagementCreateScopedToken, useUserManagementCreateUser, useUserManagementDeleteUser, useUserManagementDisableTotp, useUserManagementGetTotpStatus, useUserManagementListApiKeys, useUserManagementListOauthSessions, useUserManagementListScopedTokens, useUserManagementListUsers, useUserManagementOauthExchangeCode, useUserManagementOauthIssueCode, useUserManagementOauthRefresh, useUserManagementOauthVerifyAccessToken, useUserManagementResetPassword, useUserManagementRevokeApiKey, useUserManagementRevokeOauthSession, useUserManagementRevokeScopedToken, useUserManagementSetUserScopes, useUserManagementSetupTotp, useUserManagementUpdateUser, useUserManagementValidateApiKey, useUserManagementValidateCredentials, useUserManagementValidateScopedToken, useUserManagementVerifyTotp, useVacuumControlGetStatus, useVacuumControlLocate, useVacuumControlPause, useVacuumControlReturnToBase, useVacuumControlSetFanSpeed, useVacuumControlStart, useVacuumControlStop, useValveClose, useValveGetStatus, useValveOpen, useValveSetPosition, useValveStop, useVibrationGetStatus, useVideoclipsDialClipStream, useVideoclipsGetClipPlayback, useVideoclipsGetPlaybackOptions, useVideoclipsListClips, useVideoclipsListSources, useVideoclipsOfferClipBytes, useVideoclipsReadClipBytes, useVodPlayback, useWaterHeaterGetStatus, useWaterHeaterSetAway, useWaterHeaterSetOperationMode, useWaterHeaterSetTargetTemp, useWeatherGetStatus, useWebrtcSessionAddIceCandidate, useWebrtcSessionCloseSession, useWebrtcSessionCreateSession, useWebrtcSessionGetIceCandidates, useWebrtcSessionGetSessionDebug, useWebrtcSessionGetSessionState, useWebrtcSessionHandleAnswer, useWebrtcSessionHandleOffer, useWebrtcSessionHasAdaptiveBitrate, useWebrtcSessionListStreams, useWidget, useWidgetMetadata, useWidgetRegistry, useZoneAnalyticsGetCameraHistory, useZoneAnalyticsGetCurrentSnapshot, useZoneAnalyticsGetCurrentSnapshotBatch, useZoneAnalyticsGetUnzonedHistory, useZoneAnalyticsGetZoneHistory, useZoneEditing, useZoneRulesListRules, useZoneRulesSetRules, useZonesAddZone, useZonesListZones, useZonesRemoveZone, useZonesUpdateZone, vacuumStateMeta, validateScopes, valveStateMeta, variantLabel, waterHeaterPhase, waterHeaterTint, weatherConditionMeta, weatherTint };
|
|
58036
|
+
export { AddonGlobalSettingsForm, AdminLinkQuickAction, AgentStepEditor, AlarmHeroCard, AlarmInlineControl as AlarmPanelInlineControl, AppShell, ArcKnob, AudioClassificationList, AudioLevelWaveform, AudioWaveform, AutomationHeroCard, AutomationInlineControl, AutotrackSection, BTN_COMPACT, BTN_COMPACT_DANGER, BTN_COMPACT_PRIMARY, BTN_COMPACT_WARNING, Badge, BatteryBadge, BottomSheet, Breadcrumb, BrightnessPanel, Button, ButtonControl, ButtonHeroCard, CARD_MODE_MIN_COLUMNS, CENTER, CHIP_ACTIVE, CHIP_BASE, CHIP_INACTIVE, CLASS_COLORS, COLUMN_BREAKPOINT_CLASS, COLUMN_PRIORITY, COMMIT_DEDUPE_TOLERANCE_MS, COMMIT_DEDUPE_WINDOW_MS, CONTROL_CAP_NAMES, CONTROL_FILLS, CameraStreamPlayer, Card, Checkbox, ChildSectionAccordion, ClimatePanel, CodeBlock, CollapsibleCard, ConfigFormBuilder, FormField as ConfigFormField, ConfigSchemaField, ConfirmActionButton, ConfirmDialogProvider, ConsumablesPanel, ContainerChildrenProvider, ContainerPrimaryHero, ControlColumn, ControlHeroCard, ControlInlineControl, ControlPanel, CopyButton, CoverHeroCard, CoverInlineControl, CoverPanel, CustomFieldRenderersProvider, DEFAULT_COLOR, DEVICE_COLUMNS, DEVICE_LIST_PAGE_SIZE_KEY, DEVICE_LIST_PAGE_SIZE_OPTIONS, DEVICE_PICKER_GROUP_STORAGE_KEY, DEVICE_ROLE_META, DEVICE_TYPE_CONTROL, DEVICE_TYPE_META, DISPLAY_ICON_REGISTRY, DataTable, DataTableFilterBar, DetectionCanvas, DetectionOverlay, DetectionResultTree, DevShell, DeviceActivityPanel, DeviceBatchToolbar, DeviceCard, DeviceContextProvider, DeviceExportPanel, DeviceFilterBar, DeviceGrid, DeviceItem, DeviceList, DeviceMultiSelectField, DevicePicker, DeviceSelectField, DeviceSelectorPicker, DeviceStepMatrix, DevicesFailedLine, DevicesLoadingLine, DevicesWidenWarning, Dialog, DialogBody, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DiscoveryPanel, DoorbellRecentPanel, Dropdown, DropdownContent, DropdownItem, DropdownTrigger, DummyHeroCard, DummyInline, EMPTY_DATA_TABLE_FILTER, EVENT_KIND_ICONS, EmptyState, ErrorBox, EventKindGlyph, EventStream, ExtensionsPanel, FILL, FLEET_LIST_GC_TIME_MS, FLEET_LIST_QUERY_KEY, FLEET_LIST_STALE_TIME_MS, FanHeroCard, FanInlineControl, FanPanel, FilterBar, FloatingEventStream, FloatingLogStream, FloatingPanel, FormField$1 as FormField, GRID_GAP, GRID_PAIRED, GRID_QUICK_STATS, GripTrack, GroupedModelSelector, HOST_WIDGETS, HlsVideo, HoverZoomImage, HumidifierHeroCard, HumidifierInlineControl, INPUT_COMPACT, INPUT_SHELL, IconAction, IconButton, IconPicker, ImageHeroCard, ImageInlineControl, ImageSelector, InferenceConfigSelector, Input, KebabMenu, KeyValueList, LIST_ROW, Label, LawnMowerHeroCard, LawnMowerInlineControl, LightHeroCard, LightInlineControl, LockHeroCard, LockInlineControl, LockPanel, LogStream, LoginForm, MODE_COLOR, MaskShapeCanvas, MediaPlayerHeroCard, MediaPlayerInlineControl, MediaPlayerPanel, MobileDrawer, ModelPicker, MotionZonesSettings, NAVIGATION_DRIVE_INTERVAL_MS, NavigationPanel, NetworkLinkBadge, NodeMultiSelectField, NodePicker, NodeSelectField, OfflineBadge, PHASE_CONFIG, PICKER_CHIP_LIMIT, PICKER_DEFAULT_GROUP_BY, PICKER_GROUP_BY_MODES, PICKER_GROUP_COLLAPSE_AT, PICKER_NONE_KEY, PICKER_NOUN_PLURAL, PICKER_NO_FILTERS, PICKER_PAGE_SIZE, PICKER_SEARCH_DEBOUNCE_MS, PICKER_WINDOW, PRIORITY, PTZOverlay, PageHeader, PhaseIcon, PipelineBuilder, PipelineRuntimeSelector, PipelineStep, PipelineTreeMatrix, PlaceholderChipField, PlayerOverlaysProvider, Popover, PopoverContent, PopoverRowAction, PopoverTrigger, PrimaryChildPicker, PrivacyMaskSettings, ProviderBadge, PtzPanel, QrCode, RECONNECT_POLICY, RECORDED_PLAYBACK_MODES, RIGHT, ROI_AREA_WARN_FRACTION, ROLE_DESCRIPTOR, RadialGauge, RecordedPlaybackProvider, RecordingPanel, ResponseLog, RoleDisplayDefaultsFromServer, RoleDisplayDefaultsProvider, SCENE_CAPTURE_VARIANTS, SECTION_BODY, SECTION_CARD, SECTION_HEADER, SETTING_ROW, SETTING_ROW_LABEL, SETTING_ROW_STACK_BREAKPOINT, SETTING_ROW_VALUE, SETTING_ROW_VALUE_TEXT, SNAPSHOT_MEDIA_PATH, SPLIT_PANEL_OUTER, SPLIT_PANEL_SIDE, STACK_GAP, STATE_COLOR, SceneMonitorEditor, ScopePicker, ScriptHeroCard, ScriptInlineControl, ScrollArea, Select, SelectedChip, SemanticBadge, SensorHeroCard, SensorInlineControl, SensorValueAtom, Separator, SettingRow, Sidebar, SidebarItem, Skeleton, SlideOverPanel, SlideToggle, SnapshotButton, SortHeaderButton, StatCard, StateValuesStream, StatusBadge, StepTimings, StepTreeMaster, Stepper, StreamBrokerSelector, StreamDebugOverlay, StreamPanel, Switch, SwitchHeroCard, SwitchInlineControl, SwitchPanel, SystemProvider, TABLE_SCROLL_MAX_H, TEXT_FIELD_LABEL, TEXT_HINT, TEXT_METRIC, TEXT_SECTION_LABEL, TEXT_VALUE, TIMEZONES, Tabs, TabsContent, TabsList, TabsTrigger, TapToggle, ThemeProvider, ThermostatHeroCard, ThermostatInlineControl, TimezoneSelector, Tooltip, TooltipContent, TooltipTrigger, UnitPicker, VacuumHeroCard, VacuumInlineControl, ValueReadout, ValveHeroCard, ValveInlineControl, VersionBadge, VodPlaybackProvider, WaterHeaterHeroCard, WaterHeaterInlineControl, WeatherHeroCard, WeatherInlineControl, WidgetMetricCard, WidgetPanel, WidgetRegistryProvider, WidgetSlot, ZoneEditingProvider, MicOff as a, agentColumnKey, allDeviceTypeFilterOptions, applyFleetQueryDefaults, applyPickerFilters, ariaSortForColumn, badgeFor, buildStepTreeFromSchema, EyeOff as c, childEntityId, childListName, chipOverflow, classifyCapability, clearPickerGroup, cn, columnsForContext, containerChildToRef, countableDevices, coverHighlight, coverageLine, createSharedContext, createTheme, cursorFractionFor, darkColors, dataTableFacets, defaultTheme, deriveDeviceKind, deriveWebrtcDebugStats, describeDeviceSelector, deviceIntegrationResolver, deviceListStateOf, deviceMatchesFilter, deviceOptionLabel, deviceRoleMeta, deviceRoleMetaOf, deviceTypeLabel, deviceTypeMeta, deviceTypeMetaOf, devicesToOptions, emptyDevicesWidens, ensureMfHostInit, eventKindLabel, filterDataTableRows, filterDeviceOptions, filterPickerDevices, findTimezone, flattenPickerGrouping, flattenPickerRows, formatControlDateTime, formatLastSeen, formatNumeric, freezeVerdict, fuzzyMatch, getClassColor, getPhaseVisual, groupAgentColumns, groupChildrenByLayout, groupPickerDevices, groupPickerDevicesBy, hardwareLabel, hubOrigin, hubPath, hubUrl, hubWsUrl, humanDuration, humidifierTint, Mic as i, initialScrubState, insertAtSelection, isAbsentProvider, isDataTableFilterActive, isFieldVisible, isGroupExpanded, Camera as l, lawnMowerActivityMeta, lightColors, loadRemoteBundle, makeScrubBridge, metadataEntries, metadataString, mirror, mountAddonPage, mountPath, Square as n, nextReconnectAction, nextSort, nextSortDirection, nextTableSort, normalizeForSearch, ImageOff as o, offListSelections, openTopLayer, orphanDeviceLabel, overrideEntityIdFromLink, pageRows, parsePickerGroupBy, parseRecordedServerMessage, pickerFacetFilterShown, pickerFacetKey, pickerFacetOptions, pickerFiltersActive, pickerGroupKey, pickerHiddenSelectedCount, pickerLocationKey, pickerQueryTokens, pickerRowFacts, pickerSearchText, pickerZoneFilterSuspended, providerIcons, RotateCcw as r, readStoredGroupBy, resetHubMountForTests, resetPickerFilters, resolveContainerPrimary, resolveControlAlign, resolveDeviceControl, resolveDeviceIntegration, resolveDisplayIcon, resolveEffectiveDefaultModel, resolveEffectiveStepModel, resolveEventKindIcon, resolvePrimaryChild, resolveSelectedDevices, resolveSensorDisplay, resolveStepDefaultModel, resolveTableLayout, roiTooLarge, routerBasename, Grid2x2 as s, scrubReducer, selectPickerGroup, selectedDeviceOptions, serializeRecordedCommand, shouldCommit, shouldEmit, shouldUseSingleNode, showsNoCamerasHint, sortRows, sortRowsByColumn, statusIcons, statusLine, stepHasModelForFormat, stepModelOptions, stripParentNamePrefix, Trash2 as t, tabForSelector, tankAlert, themeToCss, toStationaryOverlayBox, toggleDataTableFacet, togglePickerDevice, togglePickerKey, trpc, typeLabel, createLucideIcon as u, useAccessoriesGetStatus, useAccessoriesSetChildHidden, useAddonPagesListPages, useAddonSettingsGetDeviceSettings, useAddonSettingsGetGlobalSettings, useAddonSettingsGetIntegrationSettings, useAddonSettingsUpdateDeviceSettings, useAddonSettingsUpdateGlobalSettings, useAddonWidgetsListWidgets, useAddonsApplyAutoUpdateToAll, useAddonsCancelJob, useAddonsCustom, useAddonsForceRefresh, useAddonsGetAddonAutoUpdate, useAddonsGetAutoUpdateSettings, useAddonsGetJob, useAddonsGetLastRestart, useAddonsGetLogs, useAddonsGetVersions, useAddonsInstallFromWorkspace, useAddonsInstallPackage, useAddonsIsWorkspaceAvailable, useAddonsList, useAddonsListCapabilityProviders, useAddonsListFrameworkPackages, useAddonsListJobs, useAddonsListPackages, useAddonsListUpdates, useAddonsListWorkspacePackages, useAddonsOnAddonLogs, useAddonsReloadPackages, useAddonsRestartAddon, useAddonsRestartServer, useAddonsRetryLoad, useAddonsRollbackPackage, useAddonsSearchAvailable, useAddonsSetAddonAutoUpdate, useAddonsSetAutoUpdateSettings, useAddonsSetCapabilityProviderEnabled, useAddonsStartJob, useAddonsUninstallPackage, useAddonsUpdatePackage, useAirQualitySensorGetStatus, useAlarmPanelArm, useAlarmPanelDisarm, useAlarmPanelGetStatus, useAlarmPanelTrigger, useAlert, useAlertsDismiss, useAlertsEmit, useAlertsGetUnreadCount, useAlertsList, useAlertsMarkAllRead, useAlertsMarkRead, useAlertsUpdate, useAllWidgets, useAmbientLightSensorGetStatus, useAudioAnalysisApplyDeviceSettingsPatch, useAudioAnalysisGetDeviceLiveContribution, useAudioAnalysisGetDeviceSettingsContribution, useAudioAnalysisResolveDeviceSettings, useAudioAnalyzerAnalyseChunk, useAudioAnalyzerAttachDevice, useAudioAnalyzerClassify, useAudioAnalyzerDetachDevice, useAudioAnalyzerDispose, useAudioAnalyzerIsReady, useAudioAnalyzerReprobeAudioEngine, useAudioCodecCanHandle, useAudioCodecCloseSession, useAudioCodecCreateDecodeSession, useAudioCodecCreateEncodeSession, useAudioCodecFlushEncode, useAudioCodecListActiveSessions, useAudioCodecListSupportedCodecs, useAudioCodecPullEncoded, useAudioCodecPullPcm, useAudioCodecPushEncodedFrame, useAudioCodecPushPcm, useAudioMetricsGetCurrentSnapshot, useAudioMetricsGetHistory, useAutomationControlDisable, useAutomationControlEnable, useAutomationControlGetStatus, useAutomationControlTrigger, useBackupCancel, useBackupDelete, useBackupDeleteSchedule, useBackupGetEntries, useBackupList, useBackupListArchives, useBackupListDestinations, useBackupListLocations, useBackupListRuns, useBackupListSchedules, useBackupPreviewSchedule, useBackupRestore, useBackupTrigger, useBackupUpsertDestinationPolicy, useBackupUpsertSchedule, useBatteryGetStatus, useBatteryWakeForStream, useBinaryGetStatus, useBrightnessGetStatus, useBrightnessSetBrightness, useBrokerAdd, useBrokerGet, useBrokerGetBrokerConfig, useBrokerGetSettings, useBrokerGetSettingsSchema, useBrokerGetState, useBrokerGetStatus, useBrokerList, useBrokerListProviders, useBrokerPublish, useBrokerRemove, useBrokerSetSettings, useBrokerSubscribe, useBrokerTestConnection, useBrokerTestSettings, useBrokerUnsubscribe, useButtonPress, useCameraCredentialsGetCredentials, useCameraCredentialsGetStatus, useCameraGridLayoutApplyDeviceSettingsPatch, useCameraGridLayoutGetDeviceLiveContribution, useCameraGridLayoutGetDeviceSettingsContribution, useCameraGridLayoutGetLayout, useCameraGridLayoutSaveLayout, useCameraPipelineConfigApplyDeviceSettingsPatch, useCameraPipelineConfigGetDeviceLiveContribution, useCameraPipelineConfigGetDeviceSettingsContribution, useCameraStreamsGetBrokerStreams, useCameraStreamsGetCameraStreams, useCameraStreamsGetProfileRtspEntries, useCameraStreamsGetRtspEntries, useCameraStreamsPickStream, useCapabilityPresence, useCarbonMonoxideGetStatus, useClimateControlGetStatus, useClimateControlSetFanMode, useClimateControlSetMode, useClimateControlSetPreset, useClimateControlSetSwingHorizontal, useClimateControlSetSwingVertical, useClimateControlSetTarget, useClimateControlSetTargetHumidity, useClimateControlSetTargetRange, useClusterNodes, useClusterTopology, useColorGetStatus, useColorSetColor, useConfirm, useConnectionTestDescribeTest, useConnectionTestTestSettings, useConnectivityGetStatus, useConsumablesGetStatus, useConsumablesReset, useContactGetStatus, useContainerChildren, useControlGetStatus, useControlSetValue, useCoreBlocksCompile, useCoreBlocksCreate, useCoreBlocksCreateComposition, useCoreBlocksDelete, useCoreBlocksGet, useCoreBlocksGetComposition, useCoreBlocksGetCustomization, useCoreBlocksGetTypeDefs, useCoreBlocksList, useCoreBlocksListComposableCaps, useCoreBlocksListCompositions, useCoreBlocksRestart, useCoreBlocksSetEnabled, useCoreBlocksUpdate, useCoreBlocksUpdateComposition, useCoreBlocksValidateComposition, useCoverClose, useCoverGetStatus, useCoverOpen, useCoverSetPosition, useCoverSetTiltPosition, useCoverStop, useCustomFieldRenderer, useDataTableFilter, useDayNightGetOptions, useDayNightGetStatus, useDayNightSetSettings, useDebouncedString, useDecoderCreateSession, useDecoderDestroySession, useDecoderGetFrame, useDecoderGetInfo, useDecoderGetShmStats, useDecoderGetStats, useDecoderListActiveSessions, useDecoderOpenStream, useDecoderPullFrames, useDecoderPullHandles, useDecoderPushPacket, useDecoderReprobeHwaccel, useDecoderSupportsCodec, useDecoderUpdateConfig, useDetectionPipelineApplyDeviceSettingsPatch, useDetectionPipelineGetDeviceLiveContribution, useDetectionPipelineGetDeviceSettingsContribution, useDevShell, useDevice, useDeviceAdminLink, useDeviceAdminLinkGetAdminLink, useDeviceAdoptionAdopt, useDeviceAdoptionGetCandidate, useDeviceAdoptionGetStatus, useDeviceAdoptionListCandidateFilters, useDeviceAdoptionListCandidates, useDeviceAdoptionRefresh, useDeviceAdoptionRelease, useDeviceAdoptionResync, useDeviceAutotrack, useDeviceBattery, useDeviceCapSlice, useDeviceCapability, useDeviceDetections, useDeviceDiscoveryAdoptDevice, useDeviceDiscoveryGetStatus, useDeviceDiscoveryListDiscovered, useDeviceDiscoveryRefreshDiscovery, useDeviceDiscoveryReleaseDevice, useDeviceExportApplyDeviceSettingsPatch, useDeviceExportExposeDevice, useDeviceExportGetDeviceLiveContribution, useDeviceExportGetDeviceSettingsContribution, useDeviceExportGetStatus, useDeviceExportListExposedDevices, useDeviceExportListSupportedDeviceKinds, useDeviceExportUnexposeDevice, useDeviceExtensionListCandidates, useDeviceExtensionListSlots, useDeviceExtensionListSources, useDeviceExtensionSetSlot, useDeviceId, useDeviceListPageSize, useDeviceManagerAddLocation, useDeviceManagerAdoptDevice, useDeviceManagerAdoptionAdopt, useDeviceManagerAdoptionCancelJob, useDeviceManagerAdoptionListCandidateFilters, useDeviceManagerAdoptionListCandidates, useDeviceManagerAdoptionListJobs, useDeviceManagerAdoptionRefresh, useDeviceManagerAdoptionRelease, useDeviceManagerAdoptionResync, useDeviceManagerAdoptionStartJob, useDeviceManagerAllocateDeviceId, useDeviceManagerApplyInitialMeta, useDeviceManagerCreateDevice, useDeviceManagerDisable, useDeviceManagerDiscoverAllProviders, useDeviceManagerDiscoverDevices, useDeviceManagerDiscoverProvider, useDeviceManagerDiscoveryProviders, useDeviceManagerEnable, useDeviceManagerGetAllBindings, useDeviceManagerGetBindings, useDeviceManagerGetBindingsBatch, useDeviceManagerGetChildren, useDeviceManagerGetChildrenBatch, useDeviceManagerGetConfigSchema, useDeviceManagerGetCreationSchema, useDeviceManagerGetDevice, useDeviceManagerGetDeviceAggregate, useDeviceManagerGetDeviceLiveInfoAggregate, useDeviceManagerGetDeviceSettingsAggregate, useDeviceManagerGetDeviceStatusAggregate, useDeviceManagerGetDeviceStatusAggregateBatch, useDeviceManagerGetLinkedDevices, useDeviceManagerGetLinkedDevicesBatch, useDeviceManagerGetRoleDisplayDefaults, useDeviceManagerGetSettingsSchema, useDeviceManagerGetStreamProfileMap, useDeviceManagerGetStreamSources, useDeviceManagerGetWireableFields, useDeviceManagerGetWrapperActivation, useDeviceManagerListAll, useDeviceManagerListBindableCapsForDeviceType, useDeviceManagerListDeviceIdsByCaps, useDeviceManagerListLocationDescriptions, useDeviceManagerListLocationIcons, useDeviceManagerListLocations, useDeviceManagerListPersistedByAddon, useDeviceManagerListSiteZones, useDeviceManagerListWrappersForCap, useDeviceManagerLoadConfig, useDeviceManagerLoadMeta, useDeviceManagerLoadRuntimeState, useDeviceManagerMigrateDevice, useDeviceManagerPersistConfig, useDeviceManagerProbeStreams, useDeviceManagerProviderCreationType, useDeviceManagerProviderDiscoveryParamsSchema, useDeviceManagerRegisterDevice, useDeviceManagerRemove, useDeviceManagerRemoveByIntegration, useDeviceManagerRemoveDevice, useDeviceManagerRemoveLocation, useDeviceManagerRemoveSiteZone, useDeviceManagerRenameLocation, useDeviceManagerRenameSiteZone, useDeviceManagerRunDeviceAction, useDeviceManagerSetChildLayout, useDeviceManagerSetDisabled, useDeviceManagerSetDisplay, useDeviceManagerSetIntegrationId, useDeviceManagerSetLinkDeviceId, useDeviceManagerSetLocation, useDeviceManagerSetLocationDescription, useDeviceManagerSetLocationIcon, useDeviceManagerSetLocationZone, useDeviceManagerSetMetadata, useDeviceManagerSetName, useDeviceManagerSetPrimaryChildEntityId, useDeviceManagerSetRole, useDeviceManagerSetRoleDisplayDefaults, useDeviceManagerSetSiteZone, useDeviceManagerSetStreamProfileMap, useDeviceManagerSetType, useDeviceManagerSetWrapperActive, useDeviceManagerTestCreationField, useDeviceManagerTestField, useDeviceManagerUpdateConfig, useDeviceManagerUpdateDeviceField, useDeviceManagerUpdateDeviceFieldsBatch, useDeviceNetworkLink, useDeviceOpsGetConfigEntries, useDeviceOpsGetRawState, useDeviceOpsGetSettingsSchema, useDeviceOpsGetStreamSources, useDeviceOpsRemoveDevice, useDeviceOpsRunAction, useDeviceOpsSetConfig, useDeviceProviderAdoptDiscoveredDevice, useDeviceProviderCreateDevice, useDeviceProviderDiscoverDevices, useDeviceProviderGetChildCreationSchema, useDeviceProviderGetDevices, useDeviceProviderGetDiscoveryParamsSchema, useDeviceProviderGetManualCreationType, useDeviceProviderGetStatus, useDeviceProviderReloadDevice, useDeviceProviderStart, useDeviceProviderStop, useDeviceProviderSupportsDiscovery, useDeviceProviderSupportsManualCreation, useDeviceProviderTestCreationField, useDeviceProxy, useDeviceSnapshot, useDeviceSnapshotImage, useDeviceState, useDeviceStateClaimFields, useDeviceStateGetAllSnapshots, useDeviceStateGetCapSlice, useDeviceStateGetNativeCapSlice, useDeviceStateGetSnapshot, useDeviceStateListClaims, useDeviceStatePatchOwnedFields, useDeviceStateReleaseClaim, useDeviceStateSetCapSlice, useDeviceStateSlice, useDeviceStatusGetStatus, useDeviceWebrtc, useDevices, useDoorbellEvents, useDoorbellGetStatus, useEnumSensorGetStatus, useEventEmitterGetStatus, useEventInvalidation, useEventStreamLatest, useEventStreamMap, useFaceGalleryAssignFace, useFaceGalleryAssignFaces, useFaceGalleryAuditIdentitySamples, useFaceGalleryCreateIdentity, useFaceGalleryDeleteFace, useFaceGalleryDeleteIdentity, useFaceGalleryGetFaceByTrack, useFaceGalleryGetFaceMedia, useFaceGalleryListIdentities, useFaceGalleryListIdentitySamples, useFaceGalleryListRecentFaces, useFaceGalleryRemoveSample, useFaceGalleryRenameIdentity, useFaceGallerySuggestFaceClusters, useFaceGalleryUnassignFace, useFaceGalleryUnassignFaces, useFanControlGetStatus, useFanControlSetDirection, useFanControlSetOscillating, useFanControlSetPercentage, useFanControlSetPreset, useFeatureProbeGetStatus, useFloodGetStatus, useGasGetStatus, useHumidifierGetStatus, useHumidifierSetMode, useHumidifierSetOn, useHumidifierSetTargetHumidity, useHumiditySensorGetStatus, useImageGetStatus, useImageSettingsGetOptions, useImageSettingsGetStatus, useImageSettingsSetSettings, useIntegrationsCreate, useIntegrationsDelete, useIntegrationsGet, useIntegrationsGetAvailableTypes, useIntegrationsGetByAddonId, useIntegrationsGetSettings, useIntegrationsList, useIntegrationsSetSettings, useIntegrationsTestConnection, useIntegrationsUpdate, useIntercomEndTalkSession, useIntercomGetStatus, useIntercomHandleAnswer, useIntercomPushTalkAudio, useIntercomStartSession, useIntercomStartTalkSession, useIntercomStopSession, useIsMidWidth, useIsMobile, useLawnMowerControlDock, useLawnMowerControlGetStatus, useLawnMowerControlPause, useLawnMowerControlStartMowing, useLiveBuffer, useLiveEvent, useLlmCancel, useLlmDeleteModel, useLlmDeleteProfile, useLlmGenerate, useLlmGenerateVision, useLlmGetDefaults, useLlmGetRuntimeStatus, useLlmGetUsage, useLlmInstallModel, useLlmListModelCatalog, useLlmListModels, useLlmListNodeModels, useLlmListProfileKinds, useLlmListProfiles, useLlmListRuntimeNodes, useLlmResolveModelRef, useLlmSetDefault, useLlmStartRuntime, useLlmStopRuntime, useLlmTestProfile, useLlmUpsertProfile, useLocalNetworkDownloadCa, useLocalNetworkGetAllowedAddresses, useLocalNetworkGetConnectionEndpoints, useLocalNetworkGetNotificationEndpoint, useLocalNetworkGetPreferred, useLocalNetworkGetTlsStatus, useLocalNetworkGetViewerEndpoints, useLocalNetworkList, useLocalNetworkRegenerateCertificate, useLocalNetworkResetAllowlistToBestMatch, useLocalNetworkRevertToGeneratedCertificate, useLocalNetworkSetAllowedAddresses, useLocalNetworkSetNotificationEndpoint, useLocalNetworkSetViewerEndpoints, useLocalNetworkUploadCertificate, useLockControlGetStatus, useLockControlLock, useLockControlOpen, useLockControlUnlock, useMediaPlayerGetStatus, useMediaPlayerNext, useMediaPlayerPause, useMediaPlayerPlay, useMediaPlayerPlayMedia, useMediaPlayerPrevious, useMediaPlayerSeek, useMediaPlayerSelectSource, useMediaPlayerSetMute, useMediaPlayerSetRepeat, useMediaPlayerSetShuffle, useMediaPlayerSetVolume, useMediaPlayerStop, useMeshNetworkGetStatus, useMeshNetworkJoin, useMeshNetworkLeave, useMeshNetworkListPeers, useMeshNetworkLogout, useMeshNetworkStartLogin, useMeshNetworkTestConnection, useMetricsProviderCollectSnapshot, useMetricsProviderGetAddonStats, useMetricsProviderGetCached, useMetricsProviderGetCpuTemperature, useMetricsProviderGetCurrent, useMetricsProviderGetDiskSpace, useMetricsProviderGetGpuInfo, useMetricsProviderGetLoadSeries, useMetricsProviderGetProcessStats, useMetricsProviderListAddonInstances, useMetricsProviderListNodeProcesses, useMotionDetectionAnalyze, useMotionDetectionApplyDeviceSettingsPatch, useMotionDetectionGetDeviceLiveContribution, useMotionDetectionGetDeviceSettingsContribution, useMotionDetectionRemoveCamera, useMotionDetectionReset, useMotionGetStatus, useMotionIsDetected, useMotionTriggerGetStatus, useMotionTriggerSetMotionTrigger, useMotionZonesGetOptions, useMotionZonesGetStatus, useMotionZonesSetZone, useMqttBrokerAddBroker, useMqttBrokerGetBrokerConfig, useMqttBrokerGetStatus, useMqttBrokerListBrokers, useMqttBrokerRemoveBroker, useMqttBrokerStartEmbeddedBroker, useMqttBrokerStopEmbeddedBroker, useMqttBrokerTestConnection, useNativeObjectDetectionGetOptions, useNativeObjectDetectionGetStatus, useNativeObjectDetectionSetEnabled, useNativeObjectDetectionSetSettings, useNavigation, useNavigationGetFeatures, useNavigationGetStatus, useNavigationGoToPoint, useNavigationListActions, useNavigationMove, useNavigationPlaySound, useNavigationRunAction, useNavigationSetLightLevel, useNavigationSetLightMode, useNavigationSetLightOn, useNavigationStop, useNetworkAccessGetEndpoint, useNetworkAccessGetStatus, useNetworkAccessListEndpoints, useNetworkAccessStart, useNetworkAccessStop, useNetworkLinkGetStatus, useNetworkQualityGetAllStats, useNetworkQualityGetDeviceStats, useNetworkQualityReportClientStats, useNodesClusterAddonStatus, useNodesDeployAddon, useNodesDirectory, useNodesExecuteQuery, useNodesGetCapUsageGraph, useNodesGetNodeAddons, useNodesRenameNode, useNodesRestartAddon, useNodesRestartNode, useNodesRestartProcess, useNodesSetProcessLogLevel, useNodesShutdownNode, useNodesTopology, useNodesUndeployAddon, useNotificationOutputDeleteTarget, useNotificationOutputDiscoverTargets, useNotificationOutputListTargetKinds, useNotificationOutputListTargets, useNotificationOutputSend, useNotificationOutputSetTargetEnabled, useNotificationOutputTestTarget, useNotificationOutputUpsertTarget, useNotificationRulesCancelSnooze, useNotificationRulesCreateRule, useNotificationRulesCreateSnooze, useNotificationRulesDeleteRule, useNotificationRulesGetAlarmConfig, useNotificationRulesGetAlarmSensors, useNotificationRulesGetClipRetentionAsks, useNotificationRulesGetConditionCatalog, useNotificationRulesGetHistory, useNotificationRulesGetRule, useNotificationRulesGetRuleLastRuns, useNotificationRulesGetTemplateCatalog, useNotificationRulesListDeviceMutes, useNotificationRulesListRules, useNotificationRulesListSnoozes, useNotificationRulesPreviewStateSummary, useNotificationRulesPreviewTemplate, useNotificationRulesResolveArtifactUrl, useNotificationRulesSetAlarmConfig, useNotificationRulesSetDeviceMuted, useNotificationRulesSetRuleEnabled, useNotificationRulesTestRule, useNotificationRulesUpdateRule, useNotifierCancel, useNotifierGetStatus, useNotifierSend, useNumericSensorGetStatus, useOptimisticSlice, useOptionalSystem, useOptionalWidgetRegistry, useOsdGetStatus, useOsdManagerClearSlotBinding, useOsdManagerCopyDeviceConfiguration, useOsdManagerDeleteTemplate, useOsdManagerGetConditionSupport, useOsdManagerGetDeviceOsd, useOsdManagerGetSourceCatalog, useOsdManagerListTemplates, useOsdManagerPreviewSlot, useOsdManagerRenderDevice, useOsdManagerSetSlotBinding, useOsdManagerUpsertTemplate, useOsdSetOverlay, usePTZ, usePetFeederCallPet, usePetFeederCancelFeed, usePetFeederFeed, usePetFeederGetStatus, usePetFeederMarkFoodReplenished, usePetFeederPlaySound, usePetFeederResetDesiccant, usePetFeederSetChildLock, usePetFeederSetFeedSound, usePetFeederSetIndicatorLight, usePetFeederSetVolume, usePickerSiteZones, usePipelineAnalyticsApplyDeviceSettingsPatch, usePipelineAnalyticsCancelRelocateMedia, usePipelineAnalyticsCancelStorageMigrationMove, usePipelineAnalyticsClearTrackRelation, usePipelineAnalyticsClearTracks, usePipelineAnalyticsCompleteRetrainTrack, usePipelineAnalyticsCountRelocatableMedia, usePipelineAnalyticsCountUnstampedEventMedia, usePipelineAnalyticsDeleteDeviceEvents, usePipelineAnalyticsDeleteTracks, usePipelineAnalyticsDeselectRetrainFrame, usePipelineAnalyticsGetActiveTracks, usePipelineAnalyticsGetAudioEvents, usePipelineAnalyticsGetDeviceLiveContribution, usePipelineAnalyticsGetDeviceSettingsContribution, usePipelineAnalyticsGetEventDensity, usePipelineAnalyticsGetEventDensityBatch, usePipelineAnalyticsGetEventMedia, usePipelineAnalyticsGetEventMediaFootprintByKind, usePipelineAnalyticsGetEventStoreFootprint, usePipelineAnalyticsGetKeyEvents, usePipelineAnalyticsGetKeyEventsBatch, usePipelineAnalyticsGetMediaReclaimStatus, usePipelineAnalyticsGetMotionEvents, usePipelineAnalyticsGetObjectEmbeddingRebuildStatus, usePipelineAnalyticsGetObjectEvents, usePipelineAnalyticsGetRetrainExportUrl, usePipelineAnalyticsGetRetrainFrameImage, usePipelineAnalyticsGetSensorEvents, usePipelineAnalyticsGetStorageMigrationMoveStatus, usePipelineAnalyticsGetTrack, usePipelineAnalyticsGetTrackMedia, usePipelineAnalyticsGetTrainingExportSummary, usePipelineAnalyticsGetTrainingExportUrl, usePipelineAnalyticsListArchivedDebugNotes, usePipelineAnalyticsListBirthDecisions, usePipelineAnalyticsListEventKinds, usePipelineAnalyticsListEventKindsBatch, usePipelineAnalyticsListEventMedia, usePipelineAnalyticsListOpsLog, usePipelineAnalyticsListRecentTracks, usePipelineAnalyticsListRelocateMediaJobs, usePipelineAnalyticsListRetrainAnnotations, usePipelineAnalyticsListRetrainFrames, usePipelineAnalyticsListRetrainStaging, usePipelineAnalyticsListTrackMedia, usePipelineAnalyticsListTrackRelations, usePipelineAnalyticsListTracks, usePipelineAnalyticsOwnersWithMedia, usePipelineAnalyticsPauseForStorageMigration, usePipelineAnalyticsProposeRetrainAnnotations, usePipelineAnalyticsPruneEvents, usePipelineAnalyticsPruneEventsBefore, usePipelineAnalyticsPruneTracksBefore, usePipelineAnalyticsReadLongTermSeries, usePipelineAnalyticsRebuildObjectEmbeddings, usePipelineAnalyticsReclaimDebugMedia, usePipelineAnalyticsReconcileFromDisk, usePipelineAnalyticsRefreshStorageLocationsForMigration, usePipelineAnalyticsRelocateMedia, usePipelineAnalyticsRestageRetrainTrack, usePipelineAnalyticsResumeForStorageMigration, usePipelineAnalyticsSaveRetrainAnnotations, usePipelineAnalyticsSearchObjectEvents, usePipelineAnalyticsSelectRetrainFrames, usePipelineAnalyticsSetTrackFlags, usePipelineAnalyticsSetTrackPurity, usePipelineAnalyticsSetTrackRelation, usePipelineAnalyticsStartStorageMigrationMove, usePipelineAnalyticsWipeAllAnalytics, usePipelineAnalyticsWipeObjectEmbeddings, usePipelineExecutorCacheFrameInPool, usePipelineExecutorClearDeviceOverrides, usePipelineExecutorDeleteModel, usePipelineExecutorDeleteTemplate, usePipelineExecutorDownloadModel, usePipelineExecutorGetAddonModels, usePipelineExecutorGetAudioCapabilities, usePipelineExecutorGetAvailableEngines, usePipelineExecutorGetCapabilities, usePipelineExecutorGetDefaultSteps, usePipelineExecutorGetDetectionConfigSchema, usePipelineExecutorGetEffectiveTuning, usePipelineExecutorGetEngineProvisioning, usePipelineExecutorGetGlobalPipelineConfig, usePipelineExecutorGetGlobalSteps, usePipelineExecutorGetInferenceDeviceHealth, usePipelineExecutorGetOrchestratorConfigSchema, usePipelineExecutorGetReferenceAudio, usePipelineExecutorGetReferenceAudioFiles, usePipelineExecutorGetReferenceImage, usePipelineExecutorGetSchema, usePipelineExecutorGetSelectedEngine, usePipelineExecutorGetVideoPipelineSteps, usePipelineExecutorInferCached, usePipelineExecutorKillEngine, usePipelineExecutorListLoadedEngines, usePipelineExecutorListReferenceImages, usePipelineExecutorListTemplates, usePipelineExecutorRearmInferenceDevice, usePipelineExecutorRunAudioTest, usePipelineExecutorRunPipeline, usePipelineExecutorRunPipelineBatch, usePipelineExecutorSaveTemplate, usePipelineExecutorSetVideoPipelineSteps, usePipelineExecutorSpinEngine, usePipelineExecutorUncacheFrame, usePipelineExecutorUpdateTemplate, usePipelineExecutorValidatePipeline, usePipelineOrchestratorApplyDeviceSettingsPatch, usePipelineOrchestratorAssignAudio, usePipelineOrchestratorAssignPipeline, usePipelineOrchestratorDeleteTemplate, usePipelineOrchestratorGetAgentLoad, usePipelineOrchestratorGetAgentSettings, usePipelineOrchestratorGetAudioAssignment, usePipelineOrchestratorGetAudioAssignments, usePipelineOrchestratorGetAudioNodeLoad, usePipelineOrchestratorGetCameraMetrics, usePipelineOrchestratorGetCameraSettings, usePipelineOrchestratorGetCameraStatus, usePipelineOrchestratorGetCameraStatuses, usePipelineOrchestratorGetCameraStepOverrides, usePipelineOrchestratorGetCameraSwitches, usePipelineOrchestratorGetCapabilityBindings, usePipelineOrchestratorGetClusterModelChoice, usePipelineOrchestratorGetDeviceLiveContribution, usePipelineOrchestratorGetDeviceSettingsContribution, usePipelineOrchestratorGetGlobalMetrics, usePipelineOrchestratorGetIngestOwner, usePipelineOrchestratorGetNodeInferenceDevices, usePipelineOrchestratorGetPipelineAssignment, usePipelineOrchestratorGetPipelineAssignments, usePipelineOrchestratorGetPipelineDevicePin, usePipelineOrchestratorGetReconcileFromDiskStatus, usePipelineOrchestratorListAgentSettings, usePipelineOrchestratorListTemplates, usePipelineOrchestratorPauseForStorageMigration, usePipelineOrchestratorRebalance, usePipelineOrchestratorReconcileFromDisk, usePipelineOrchestratorRemoveAgentSettings, usePipelineOrchestratorRequestOccupancyLook, usePipelineOrchestratorResetNodePipelineDefaults, usePipelineOrchestratorResolvePipeline, usePipelineOrchestratorResumeForStorageMigration, usePipelineOrchestratorSaveTemplate, usePipelineOrchestratorSetAgentCapabilities, usePipelineOrchestratorSetAgentDecodeLimits, usePipelineOrchestratorSetAgentDetectWeight, usePipelineOrchestratorSetAgentInferenceDevices, usePipelineOrchestratorSetAgentMaxCameras, usePipelineOrchestratorSetAgentReachableHost, usePipelineOrchestratorSetCameraPipelineForAgent, usePipelineOrchestratorSetCameraSensors, usePipelineOrchestratorSetCameraStepOverride, usePipelineOrchestratorSetCameraStepToggle, usePipelineOrchestratorSetCameraSwitch, usePipelineOrchestratorSetCapabilityBinding, usePipelineOrchestratorSetPipelineDevicePin, usePipelineOrchestratorUnassignAudio, usePipelineOrchestratorUnassignPipeline, usePipelineOrchestratorUpdateTemplate, usePipelineRunnerAttachCamera, usePipelineRunnerDetachCamera, usePipelineRunnerGetAllCameraMetrics, usePipelineRunnerGetCameraMetrics, usePipelineRunnerGetLocalCameras, usePipelineRunnerGetLocalLoad, usePipelineRunnerGetLocalMetrics, usePipelineRunnerGetNativeCrop, usePipelineRunnerGetParkedTrackFrame, usePipelineRunnerParkTrackFrame, usePipelineRunnerReleaseParkedTrackFrames, usePipelineRunnerReportMotion, usePipelineRunnerRequestOccupancyBurst, usePipelineRunnerRunDetailSubtree, usePipelineRunnerRunStatelessStep, usePlateGalleryAssignPlate, usePlateGalleryAssignPlates, usePlateGalleryCorrectPlateText, usePlateGalleryCreateVehicle, usePlateGalleryDeletePlate, usePlateGalleryDeleteVehicle, usePlateGalleryGetPlateByTrack, usePlateGalleryGetPlateMedia, usePlateGalleryListPlates, usePlateGalleryListVehicleSamples, usePlateGalleryListVehicles, usePlateGalleryRemoveVehicleSample, usePlateGalleryRenameVehicle, usePlateGallerySearchPlates, usePlateGallerySuggestPlateClusters, usePlateGalleryUnassignPlate, usePlateGalleryUnassignPlates, usePlayerOverlayLayer, usePlayerOverlayLayers, usePlayerToolbarButton, usePlayerToolbarButtons, usePowerMeterGetStatus, usePresenceGetStatus, usePressureSensorGetStatus, usePrivacyMaskGetOptions, usePrivacyMaskGetStatus, usePrivacyMaskSetAudioEnabled, usePrivacyMaskSetMask, usePrompt, usePtzAutotrackGetSettings, usePtzAutotrackGetStatus, usePtzAutotrackSetEnabled, usePtzAutotrackSetSettings, usePtzCaptureHomeHere, usePtzContinuousMove, usePtzDeletePreset, usePtzGetHomePreset, usePtzGetHomeReturn, usePtzGetOptions, usePtzGetPosition, usePtzGetPresets, usePtzGetStatus, usePtzGoHome, usePtzGoToPreset, usePtzMove, usePtzSavePreset, usePtzSetAutofocus, usePtzSetHomePreset, usePtzSetHomeReturn, usePtzStop, useRebootReboot, useRecordedPlayback, useRecordingArchiveApplyDeviceSettingsPatch, useRecordingArchiveCancelRelocateJob, useRecordingArchiveCancelStorageMigrationMove, useRecordingArchiveDeleteFootprint, useRecordingArchiveGetAvailabilityBatch, useRecordingArchiveGetDaysWithRecordingsBatch, useRecordingArchiveGetDeviceConfig, useRecordingArchiveGetDeviceLiveContribution, useRecordingArchiveGetDeviceSettingsContribution, useRecordingArchiveGetPlacement, useRecordingArchiveGetRelocateResidue, useRecordingArchiveGetStatus, useRecordingArchiveGetStorageMigrationMoveStatus, useRecordingArchiveGetStorageUsage, useRecordingArchiveListOpsLog, useRecordingArchiveListRelocateJobs, useRecordingArchiveLocateSegment, useRecordingArchivePauseForStorageMigration, useRecordingArchivePlanStorageRebalance, useRecordingArchivePruneFootage, useRecordingArchiveReadGopBytes, useRecordingArchiveReadSegmentBytes, useRecordingArchiveReadWindowBytes, useRecordingArchiveReconcileLedgerAgainstDisk, useRecordingArchiveRefreshStorageLocationsForMigration, useRecordingArchiveRelocateFootage, useRecordingArchiveRenderClip, useRecordingArchiveRenderGif, useRecordingArchiveRescanStorage, useRecordingArchiveResumeForStorageMigration, useRecordingArchiveSetDeviceConfig, useRecordingArchiveSetDevicePlacement, useRecordingArchiveStartStorageMigrationMove, useRecordingArchiveStartStorageRebalance, useRecordingExportCancelExport, useRecordingExportCreateExport, useRecordingExportDeleteExport, useRecordingExportGetDownloadUrl, useRecordingExportGetExport, useRecordingExportListExports, useRecordingExportReadExportBytes, useRecordingGetAvailability, useRecordingGetDaysWithRecordings, useRecordingGetPlayback, useRecordingGetPlaybackOptions, useRecordingListSources, useRecordingOnboardGetOptions, useRecordingOnboardGetStatus, useRecordingOnboardSetSettings, useRecordingSignalGetStatus, useRemoteComponent, useRoleDisplayDefaults, useSceneMonitorCaptureReference, useSceneMonitorCreateScene, useSceneMonitorDeleteReference, useSceneMonitorDeleteScene, useSceneMonitorGetStatus, useSceneMonitorListScenes, useSceneMonitorListScenesBatch, useSceneMonitorRecheckNow, useSceneMonitorResetScene, useSceneMonitorUpdateScene, useScriptRunnerGetStatus, useScriptRunnerRun, useScriptRunnerStop, useScrubController, useServerManagementApplyServerUpdate, useServerManagementCheckServerUpdate, useServerManagementGetServerPackageStatus, useServerManagementRestartServer, useServerManagementRollbackServerUpdate, useSettingsStoreAggregate, useSettingsStoreCount, useSettingsStoreDeclareCollection, useSettingsStoreDelete, useSettingsStoreDeleteWhere, useSettingsStoreGet, useSettingsStoreHistogram, useSettingsStoreInsert, useSettingsStoreInsertMany, useSettingsStoreIsEmpty, useSettingsStoreQuery, useSettingsStoreSet, useSettingsStoreUpdate, useSettingsStoreUpdateWhere, useSettingsStoreUpsert, useSmokeGetStatus, useSnapshotApplyDeviceSettingsPatch, useSnapshotGetDebugState, useSnapshotGetDeviceLiveContribution, useSnapshotGetDeviceSettingsContribution, useSnapshotGetSnapshot, useSnapshotGetSnapshotLinks, useSnapshotGetSnapshotOverview, useSnapshotGetStatus, useSnapshotInvalidateCache, useStationaryOverlay, useStorageAbortUpload, useStorageBeginDownload, useStorageBeginUpload, useStorageDelete, useStorageDeleteLocation, useStorageEndDownload, useStorageExists, useStorageFinalizeUpload, useStorageGetAvailableSpace, useStorageList, useStorageListDrainProgress, useStorageListLocationDeclarations, useStorageListLocations, useStorageListProviders, useStorageMigrationCancel, useStorageMigrationCleanupCancel, useStorageMigrationCleanupStart, useStorageMigrationCleanupStatus, useStorageMigrationDrain, useStorageMigrationHistory, useStorageMigrationMovers, useStorageMigrationPlan, useStorageMigrationResidue, useStorageMigrationStart, useStorageMigrationStatus, useStorageRead, useStorageReadChunk, useStorageResolve, useStorageTestConfig, useStorageTestLocation, useStorageUpsertLocation, useStorageWrite, useStorageWriteChunk, useStoredGroupBy, useStreamBrokerAcquireEgressTranscode, useStreamBrokerApplyDeviceSettingsPatch, useStreamBrokerAssignProfile, useStreamBrokerFetchEventMedia, useStreamBrokerForgetDeviceHardware, useStreamBrokerGetAllRtspEntries, useStreamBrokerGetBrokerStats, useStreamBrokerGetDeviceAudioMute, useStreamBrokerGetDeviceLiveContribution, useStreamBrokerGetDeviceSettingsContribution, useStreamBrokerGetPreBufferInfo, useStreamBrokerGetRtspEntry, useStreamBrokerGetRtspPort, useStreamBrokerGetStreamUrl, useStreamBrokerGetStreamWithCodec, useStreamBrokerIsRtspEnabled, useStreamBrokerKillClient, useStreamBrokerListAllCameraStreams, useStreamBrokerListAllProfileSlots, useStreamBrokerListClients, useStreamBrokerProbeStream, useStreamBrokerProduceEventMedia, useStreamBrokerPublishCameraStream, useStreamBrokerPullAudioChunks, useStreamBrokerPullFrameHandles, useStreamBrokerRegenerateRtspToken, useStreamBrokerReleaseEgressTranscode, useStreamBrokerReleaseStreamWithCodec, useStreamBrokerRenderPreBufferClip, useStreamBrokerReportStreamSignal, useStreamBrokerRestartProfile, useStreamBrokerRetractCameraStream, useStreamBrokerSetDeviceAudioMute, useStreamBrokerSetPreBufferDuration, useStreamBrokerSetRtspEnabled, useStreamBrokerSubscribeAudioChunks, useStreamBrokerSubscribeFrames, useStreamBrokerUnassignProfile, useStreamBrokerUnsubscribeAudioChunks, useStreamBrokerUnsubscribeFrames, useStreamCatalogGetCatalog, useStreamParamsGetConfigSchema, useStreamParamsGetOptions, useStreamParamsGetStatus, useStreamParamsSetProfile, useStreamSignalsListSignals, useSwitchGetStatus, useSwitchSetState, useSystem, useSystemDetectSiteLocation, useSystemFeatureFlags, useSystemForceRetentionCleanup, useSystemGetFailureContributions, useSystemGetLoadContributions, useSystemGetLoggingSettings, useSystemGetRequestCensus, useSystemGetRetentionConfig, useSystemGetSiteLocation, useSystemHealth, useSystemInfo, useSystemMutation, useSystemNetworkAddresses, useSystemQuery, useSystemSetLoggingSettings, useSystemSetRetentionConfig, useSystemSetSiteLocation, useTamperGetStatus, useTemperatureSensorGetStatus, useTerminalSessionAdoptLegacyMonitor, useTerminalSessionClose, useTerminalSessionCreateInstance, useTerminalSessionDeleteInstance, useTerminalSessionListInstances, useTerminalSessionListLegacyCameras, useTerminalSessionListProfiles, useTerminalSessionListSessions, useTerminalSessionOpenSession, useTerminalSessionPullOutput, useTerminalSessionResize, useTerminalSessionSetInstanceEnabled, useTerminalSessionUpdateInstance, useTerminalSessionWriteInput, useThemeMode, useToastOnToast, useTurnProviderGetTurnServers, useUpdateGetStatus, useUpdateInstallUpdate, useUserManagementConfirmTotp, useUserManagementCreateApiKey, useUserManagementCreateScopedToken, useUserManagementCreateUser, useUserManagementDeleteUser, useUserManagementDisableTotp, useUserManagementGetTotpStatus, useUserManagementListApiKeys, useUserManagementListOauthSessions, useUserManagementListScopedTokens, useUserManagementListUsers, useUserManagementOauthExchangeCode, useUserManagementOauthIssueCode, useUserManagementOauthRefresh, useUserManagementOauthVerifyAccessToken, useUserManagementResetPassword, useUserManagementRevokeApiKey, useUserManagementRevokeOauthSession, useUserManagementRevokeScopedToken, useUserManagementSetUserScopes, useUserManagementSetupTotp, useUserManagementUpdateUser, useUserManagementValidateApiKey, useUserManagementValidateCredentials, useUserManagementValidateScopedToken, useUserManagementVerifyTotp, useVacuumControlGetStatus, useVacuumControlLocate, useVacuumControlPause, useVacuumControlReturnToBase, useVacuumControlSetFanSpeed, useVacuumControlStart, useVacuumControlStop, useValveClose, useValveGetStatus, useValveOpen, useValveSetPosition, useValveStop, useVibrationGetStatus, useVideoclipsDialClipStream, useVideoclipsGetClipPlayback, useVideoclipsGetPlaybackOptions, useVideoclipsListClips, useVideoclipsListSources, useVideoclipsOfferClipBytes, useVideoclipsReadClipBytes, useVodPlayback, useWaterHeaterGetStatus, useWaterHeaterSetAway, useWaterHeaterSetOperationMode, useWaterHeaterSetTargetTemp, useWeatherGetStatus, useWebrtcSessionAddIceCandidate, useWebrtcSessionCloseSession, useWebrtcSessionCreateSession, useWebrtcSessionGetIceCandidates, useWebrtcSessionGetSessionDebug, useWebrtcSessionGetSessionState, useWebrtcSessionHandleAnswer, useWebrtcSessionHandleOffer, useWebrtcSessionHasAdaptiveBitrate, useWebrtcSessionListStreams, useWidget, useWidgetMetadata, useWidgetRegistry, useZoneAnalyticsGetCameraHistory, useZoneAnalyticsGetCurrentSnapshot, useZoneAnalyticsGetCurrentSnapshotBatch, useZoneAnalyticsGetUnzonedHistory, useZoneAnalyticsGetZoneHistory, useZoneEditing, useZoneRulesListRules, useZoneRulesSetRules, useZonesAddZone, useZonesListZones, useZonesRemoveZone, useZonesUpdateZone, vacuumStateMeta, validateScopes, valveStateMeta, variantLabel, waterHeaterPhase, waterHeaterTint, weatherConditionMeta, weatherTint, writeStoredGroupBy };
|