@camstack/types 1.2.26 → 1.2.28

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.
@@ -2008,6 +2008,111 @@ function parseJsonArray(text) {
2008
2008
  }
2009
2009
  }
2010
2010
  //#endregion
2011
+ //#region src/generated/device-scoped-caps.ts
2012
+ /**
2013
+ * AUTO-GENERATED by scripts/generate-device-scoped-caps.ts — DO NOT EDIT.
2014
+ *
2015
+ * Every `scope: 'device'` capability name, as plain data — so a forked runner
2016
+ * can answer "may a rule actuate this?" without importing the schema barrel
2017
+ * (~144MB RSS per runner, D28).
2018
+ *
2019
+ * Coverage: 80 device-scoped capabilities.
2020
+ */
2021
+ var DEVICE_SCOPED_CAPS = new Set([
2022
+ "accessories",
2023
+ "air-quality-sensor",
2024
+ "alarm-panel",
2025
+ "ambient-light-sensor",
2026
+ "audio-analysis",
2027
+ "audio-metrics",
2028
+ "automation-control",
2029
+ "battery",
2030
+ "binary",
2031
+ "brightness",
2032
+ "button",
2033
+ "camera-credentials",
2034
+ "camera-pipeline-config",
2035
+ "camera-streams",
2036
+ "carbon-monoxide",
2037
+ "climate-control",
2038
+ "color",
2039
+ "connectivity",
2040
+ "consumables",
2041
+ "contact",
2042
+ "control",
2043
+ "cover",
2044
+ "day-night",
2045
+ "detection-pipeline",
2046
+ "device-discovery",
2047
+ "device-ops",
2048
+ "device-status",
2049
+ "doorbell",
2050
+ "enum-sensor",
2051
+ "event-emitter",
2052
+ "events",
2053
+ "fan-control",
2054
+ "feature-probe",
2055
+ "flood",
2056
+ "gas",
2057
+ "humidifier",
2058
+ "humidity-sensor",
2059
+ "image",
2060
+ "image-settings",
2061
+ "intercom",
2062
+ "lawn-mower-control",
2063
+ "lock-control",
2064
+ "media-player",
2065
+ "motion",
2066
+ "motion-detection",
2067
+ "motion-trigger",
2068
+ "motion-zones",
2069
+ "native-object-detection",
2070
+ "notifier",
2071
+ "numeric-sensor",
2072
+ "osd",
2073
+ "pet-feeder",
2074
+ "pipeline-analytics",
2075
+ "power-meter",
2076
+ "presence",
2077
+ "pressure-sensor",
2078
+ "privacy-mask",
2079
+ "ptz",
2080
+ "ptz-autotrack",
2081
+ "reboot",
2082
+ "scene-monitor",
2083
+ "script-runner",
2084
+ "smoke",
2085
+ "snapshot",
2086
+ "stream-catalog",
2087
+ "stream-params",
2088
+ "switch",
2089
+ "tamper",
2090
+ "temperature-sensor",
2091
+ "update",
2092
+ "vacuum-control",
2093
+ "valve",
2094
+ "vibration",
2095
+ "videoclips",
2096
+ "water-heater",
2097
+ "weather",
2098
+ "webrtc-session",
2099
+ "zone-analytics",
2100
+ "zone-rules",
2101
+ "zones"
2102
+ ]);
2103
+ /**
2104
+ * True when `capName` is a device capability.
2105
+ *
2106
+ * This is the ONLY boundary on what a notification rule may actuate. A rule can
2107
+ * be authored by a non-admin and the runner executes with the addon's
2108
+ * privileges, so an unbounded action would be an arbitrary RPC channel with a
2109
+ * privilege escalation attached. Device scope excludes the system caps
2110
+ * (`device-manager.removeDevice` and friends) by construction.
2111
+ */
2112
+ function isDeviceScopedCap(capName) {
2113
+ return DEVICE_SCOPED_CAPS.has(capName);
2114
+ }
2115
+ //#endregion
2011
2116
  //#region src/device/device-type.ts
2012
2117
  var DeviceType = /* @__PURE__ */ function(DeviceType) {
2013
2118
  DeviceType["Camera"] = "camera";
@@ -3544,4 +3649,4 @@ function sleepCancellable(ms, signal) {
3544
3649
  });
3545
3650
  }
3546
3651
  //#endregion
3547
- export { ProfileSlotSchema as $, parseJsonUnknown as A, BrokerStatsSchema as B, asBoolean as C, DisposerChain as Ct, asString as D, asNumber as E, ReadinessRegistry as F, CamStreamResolutionSchema as G, CAM_PROFILE_ORDER as H, ReadinessTimeoutError as I, DecodedFrameSchema as J, CameraStreamSchema as K, emitDownForOwnedCaps as L, nodePin as M, readNodePin as N, parseJsonArray as O, DATAPLANE_SECRET_HEADER as P, ProfileRtspEntrySchema as Q, readinessKey as R, DeviceType as S, resolveHydratedFieldValue as St, asJsonObject as T, CamProfileSchema as U, BrokerStatusSchema as V, CamStreamKindSchema as W, FrameHandleFormatSchema as X, EncodedPacketSchema as Y, FrameHandleSchema as Z, resolveCapMount as _, WELL_KNOWN_TABS as _t, viewerUiCapability as a, SubscribeFramesInputSchema as at, DeviceFeature as b, collectHydratedFieldValues as bt, createLazyTrpcSource as c, makeSourceBrokerId as ct, DEVICE_SETTINGS_CONTRIBUTION_METHODS as d, BaseAddon as dt, ProfileSlotStatusSchema as et, DEVICE_STATUS_METHOD as f, normalizeAddonInitResult as ft, method as g, isEvent as gt, isDeviceConfigCap as h, emitReadiness as ht, deviceOpsCapability as i, SubscribeAudioChunksResultSchema as it, CAP_NODE_PIN_CONTEXT_KEY as j, parseJsonObject as k, createMirrorSource as l, parseProfileBrokerId as lt, expandCapMethods as m, createEvent as mt, sleepCancellable as n, StreamSourceSchema as nt, adminUiCapability as o, SubscribeFramesResultSchema as ot, event as p, createDurableState as pt, DecodedAudioChunkSchema as q, RawStateResultSchema as r, SubscribeAudioChunksInputSchema as rt, createDeviceProxy as s, makeProfileBrokerId as st, sleep as t, StreamSourceEntrySchema$1 as tt, createSliceHandle as u, selectAssignedProfileSlots as ut, systemMethod as v, WELL_KNOWN_TAB_MAP as vt, asJsonArray as w, DeviceRole as x, hydrateSchema as xt, ChargingStatus as y, collectHydratedFieldEntries as yt, scopeKey as z };
3652
+ export { FrameHandleSchema as $, parseJsonArray as A, readinessKey as B, DEVICE_SCOPED_CAPS as C, hydrateSchema as Ct, asJsonObject as D, asJsonArray as E, readNodePin as F, CamProfileSchema as G, BrokerStatsSchema as H, DATAPLANE_SECRET_HEADER as I, CameraStreamSchema as J, CamStreamKindSchema as K, ReadinessRegistry as L, parseJsonUnknown as M, CAP_NODE_PIN_CONTEXT_KEY as N, asNumber as O, nodePin as P, FrameHandleFormatSchema as Q, ReadinessTimeoutError as R, DeviceType as S, collectHydratedFieldValues as St, asBoolean as T, DisposerChain as Tt, BrokerStatusSchema as U, scopeKey as V, CAM_PROFILE_ORDER as W, DecodedFrameSchema as X, DecodedAudioChunkSchema as Y, EncodedPacketSchema as Z, resolveCapMount as _, emitReadiness as _t, viewerUiCapability as a, SubscribeAudioChunksInputSchema as at, DeviceFeature as b, WELL_KNOWN_TAB_MAP as bt, createLazyTrpcSource as c, SubscribeFramesResultSchema as ct, DEVICE_SETTINGS_CONTRIBUTION_METHODS as d, parseProfileBrokerId as dt, ProfileRtspEntrySchema as et, DEVICE_STATUS_METHOD as f, selectAssignedProfileSlots as ft, method as g, createEvent as gt, isDeviceConfigCap as h, createDurableState as ht, deviceOpsCapability as i, StreamSourceSchema as it, parseJsonObject as j, asString as k, createMirrorSource as l, makeProfileBrokerId as lt, expandCapMethods as m, normalizeAddonInitResult as mt, sleepCancellable as n, ProfileSlotStatusSchema as nt, adminUiCapability as o, SubscribeAudioChunksResultSchema as ot, event as p, BaseAddon as pt, CamStreamResolutionSchema as q, RawStateResultSchema as r, StreamSourceEntrySchema$1 as rt, createDeviceProxy as s, SubscribeFramesInputSchema as st, sleep as t, ProfileSlotSchema as tt, createSliceHandle as u, makeSourceBrokerId as ut, systemMethod as v, isEvent as vt, isDeviceScopedCap as w, resolveHydratedFieldValue as wt, DeviceRole as x, collectHydratedFieldEntries as xt, ChargingStatus as y, WELL_KNOWN_TABS as yt, emitDownForOwnedCaps as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.26",
3
+ "version": "1.2.28",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",