@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.
- package/dist/addon.d.ts +1 -0
- package/dist/addon.js +3 -1
- package/dist/addon.mjs +2 -2
- package/dist/capabilities/core-blocks.cap.d.ts +248 -0
- package/dist/capabilities/index.d.ts +4 -2
- package/dist/capabilities/llm-runtime.cap.d.ts +3 -3
- package/dist/capabilities/llm.cap.d.ts +4 -4
- package/dist/capabilities/mask-shape.d.ts +1 -1
- package/dist/capabilities/motion-zones.cap.d.ts +2 -2
- package/dist/capabilities/notification-rules.cap.d.ts +256 -0
- package/dist/capabilities/privacy-mask.cap.d.ts +2 -2
- package/dist/generated/addon-api.d.ts +64 -0
- package/dist/generated/capability-router-map.d.ts +5 -2
- package/dist/generated/device-scoped-caps.d.ts +20 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/generated/system-proxy.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +282 -2
- package/dist/index.mjs +272 -3
- package/dist/{sleep-BvSjpsfC.js → sleep-6oDIDtYV.js} +117 -0
- package/dist/{sleep-vCXN9wNH.mjs → sleep-CD2Df3i7.mjs} +106 -1
- package/package.json +1 -1
|
@@ -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 {
|
|
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 };
|