@camstack/addon-provider-homeassistant 1.2.52 → 1.2.55
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.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/{dist-Dm7hAzfd.mjs → dist-BpQG6lq7.mjs} +96 -10
- package/dist/{dist-nBclHVR_.js → dist-Dt7YuyK3.js} +96 -10
- package/dist/ha-export/ha-export.addon.js +1 -1
- package/dist/ha-export/ha-export.addon.mjs +1 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-Dt7YuyK3.js");
|
|
3
3
|
let node_crypto = require("node:crypto");
|
|
4
4
|
let node_zlib = require("node:zlib");
|
|
5
5
|
//#region src/ha-device-source.ts
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-
|
|
1
|
+
import { $ as presenceCapability, A as controlCapability, At as EventCategory, B as humiditySensorCapability, C as buildAddonRouteProvider, Ct as number, D as colorCapability, Dt as union, E as climateControlCapability, Et as string, F as eventEmitterCapability, G as motionCapability, H as lawnMowerControlCapability, I as fanControlCapability, J as notifierCapability, K as normalizeUnit, L as floodCapability, M as deviceAdoptionCapability, O as connectivityCapability, Ot as unknown, P as enumSensorCapability, Q as prepareNotification, R as gasCapability, S as brokerCapability, St as literal, T as carbonMonoxideCapability, Tt as record, U as lockControlCapability, V as imageCapability, W as mediaPlayerCapability, Y as numericSensorCapability, Z as powerMeterCapability, _ as automationControlCapability, _t as createEvent, at as temperatureSensorCapability, b as binaryCapability, bt as array, ct as valveCapability, d as TargetSchema, dt as weatherCapability, et as pressureSensorCapability, f as accessoriesCapability, ft as errMsg, g as ambientLightSensorCapability, gt as DeviceType, h as alarmPanelCapability, ht as DeviceRole, it as tamperCapability, j as coverCapability, k as contactCapability, kt as url, lt as vibrationCapability, m as airQualitySensorCapability, mt as DeviceFeature, n as BaseDevice, nt as smokeCapability, ot as updateCapability, p as addonRoutesCapability, q as notificationOutputCapability, r as BaseDeviceProvider, rt as switchCapability, s as EnumSensorDateTimeFormatSchema, st as vacuumControlCapability, tt as scriptRunnerCapability, ut as waterHeaterCapability, v as batteryCapability, w as buttonCapability, wt as object, x as brightnessCapability, xt as discriminatedUnion, y as bestLocationMatch, yt as _enum, z as humidifierCapability } from "./dist-BpQG6lq7.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
|
|
4
4
|
//#region src/ha-device-source.ts
|
|
@@ -14240,6 +14240,50 @@ var NodeProcessSchema = object({
|
|
|
14240
14240
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
14241
14241
|
uptimeSec: number()
|
|
14242
14242
|
});
|
|
14243
|
+
/**
|
|
14244
|
+
* One retained container-memory reading.
|
|
14245
|
+
*
|
|
14246
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
14247
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
14248
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
14249
|
+
* sampled at different instants.
|
|
14250
|
+
*
|
|
14251
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
14252
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
14253
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
14254
|
+
*/
|
|
14255
|
+
var ContainerMemoryPointSchema = object({
|
|
14256
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
14257
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
14258
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
14259
|
+
currentBytes: number(),
|
|
14260
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
14261
|
+
limitBytes: number().nullable(),
|
|
14262
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
14263
|
+
anonBytes: number().nullable(),
|
|
14264
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
14265
|
+
fileBytes: number().nullable(),
|
|
14266
|
+
/**
|
|
14267
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
14268
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
14269
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
14270
|
+
* nowhere in a `ps` scan.
|
|
14271
|
+
*/
|
|
14272
|
+
shmemBytes: number().nullable(),
|
|
14273
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
14274
|
+
slabBytes: number().nullable(),
|
|
14275
|
+
/**
|
|
14276
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
14277
|
+
*
|
|
14278
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
14279
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
14280
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
14281
|
+
*
|
|
14282
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
14283
|
+
* container today — and on any node with no Intel GPU.
|
|
14284
|
+
*/
|
|
14285
|
+
gpuShmemBytes: number().nullable()
|
|
14286
|
+
}).extend({ atMs: number() });
|
|
14243
14287
|
var DumpHeapSnapshotInputSchema = object({
|
|
14244
14288
|
/** The addon whose runner should dump a heap snapshot. */
|
|
14245
14289
|
addonId: string() });
|
|
@@ -14303,6 +14347,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
14303
14347
|
/** One entry per function seen in the window, heaviest-first. */
|
|
14304
14348
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
14305
14349
|
/**
|
|
14350
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
14351
|
+
*
|
|
14352
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
14353
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
14354
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
14355
|
+
* to compare them will compare two different instants. Same reader, same
|
|
14356
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
14357
|
+
*
|
|
14358
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
14359
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
14360
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
14361
|
+
* container and is precisely the lie this field exists to avoid.
|
|
14362
|
+
*/
|
|
14363
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
14364
|
+
/**
|
|
14306
14365
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
14307
14366
|
* reduction was needed — so a caller can always say what one point covers
|
|
14308
14367
|
* without having to know whether it was reduced.
|
|
@@ -25360,6 +25419,33 @@ var intercomCapability = {
|
|
|
25360
25419
|
deviceNative: true,
|
|
25361
25420
|
mode: "singleton",
|
|
25362
25421
|
deviceTypes: [DeviceType.Camera],
|
|
25422
|
+
/**
|
|
25423
|
+
* **Auth tier: `protected` on every method — deliberate, and load-bearing.**
|
|
25424
|
+
*
|
|
25425
|
+
* Talking through a camera is an OPERATE action, not a CONFIGURE one. This
|
|
25426
|
+
* cap has no configuration surface at all: all six methods open, feed and
|
|
25427
|
+
* close one live audio session against one `deviceId`. That is the same
|
|
25428
|
+
* authority as `ptz.move` or `snapshot.getSnapshot`, both `protected` — and
|
|
25429
|
+
* the opposite of `ptz.savePreset` / `snapshot.invalidateCache`, which are
|
|
25430
|
+
* `admin` because they change what the device IS.
|
|
25431
|
+
*
|
|
25432
|
+
* `protected` does not mean ungated: `protectedProcedure` runs the
|
|
25433
|
+
* `METHOD_ACCESS_MAP` scope check, and every method here is `scope: 'device'`
|
|
25434
|
+
* with `access: 'create'` and a `deviceId` in its input. So a caller needs a
|
|
25435
|
+
* grant that covers THAT camera at `create` — a `camera-viewer` (`view`
|
|
25436
|
+
* only) still cannot talk, and a grant on camera 5 cannot talk through
|
|
25437
|
+
* camera 7.
|
|
25438
|
+
*
|
|
25439
|
+
* Every method was `auth: 'admin'` from the initial commit, which made the
|
|
25440
|
+
* cap unreachable by every non-admin principal — `adminProcedure` throws
|
|
25441
|
+
* `FORBIDDEN: Admin required` BEFORE the scope check runs, so the scope
|
|
25442
|
+
* machinery generated for this cap (`METHOD_ACCESS_MAP`,
|
|
25443
|
+
* `DEVICE_SCOPED_CAPS`, `METHOD_DEVICE_SELECTORS`) was complete and dead. The
|
|
25444
|
+
* `camera-operator` scope preset has promised "PTZ control, intercom,
|
|
25445
|
+
* snapshots" since that same commit; the promise could not be kept. Recorded
|
|
25446
|
+
* as D289; `scripts/check-scope-preset-promises.ts` now fails the build if a
|
|
25447
|
+
* preset promises a cap no row of that preset can reach.
|
|
25448
|
+
*/
|
|
25363
25449
|
methods: {
|
|
25364
25450
|
/**
|
|
25365
25451
|
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
@@ -25372,7 +25458,7 @@ var intercomCapability = {
|
|
|
25372
25458
|
sdpOffer: string()
|
|
25373
25459
|
}), {
|
|
25374
25460
|
kind: "mutation",
|
|
25375
|
-
auth: "
|
|
25461
|
+
auth: "protected"
|
|
25376
25462
|
}),
|
|
25377
25463
|
handleAnswer: method(object({
|
|
25378
25464
|
deviceId: number(),
|
|
@@ -25380,7 +25466,7 @@ var intercomCapability = {
|
|
|
25380
25466
|
sdpAnswer: string()
|
|
25381
25467
|
}), _void(), {
|
|
25382
25468
|
kind: "mutation",
|
|
25383
|
-
auth: "
|
|
25469
|
+
auth: "protected"
|
|
25384
25470
|
}),
|
|
25385
25471
|
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
25386
25472
|
stopSession: method(object({
|
|
@@ -25388,7 +25474,7 @@ var intercomCapability = {
|
|
|
25388
25474
|
sessionId: string()
|
|
25389
25475
|
}), _void(), {
|
|
25390
25476
|
kind: "mutation",
|
|
25391
|
-
auth: "
|
|
25477
|
+
auth: "protected"
|
|
25392
25478
|
}),
|
|
25393
25479
|
/**
|
|
25394
25480
|
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
@@ -25401,7 +25487,7 @@ var intercomCapability = {
|
|
|
25401
25487
|
*/
|
|
25402
25488
|
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
25403
25489
|
kind: "mutation",
|
|
25404
|
-
auth: "
|
|
25490
|
+
auth: "protected"
|
|
25405
25491
|
}),
|
|
25406
25492
|
/**
|
|
25407
25493
|
* Push one chunk of talk-back audio onto the active talk session.
|
|
@@ -25436,12 +25522,12 @@ var intercomCapability = {
|
|
|
25436
25522
|
sequenceNumber: number().int()
|
|
25437
25523
|
}), object({ accepted: boolean() }), {
|
|
25438
25524
|
kind: "mutation",
|
|
25439
|
-
auth: "
|
|
25525
|
+
auth: "protected"
|
|
25440
25526
|
}),
|
|
25441
25527
|
/** Close the raw-PCM talk session. Idempotent. */
|
|
25442
25528
|
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
25443
25529
|
kind: "mutation",
|
|
25444
|
-
auth: "
|
|
25530
|
+
auth: "protected"
|
|
25445
25531
|
})
|
|
25446
25532
|
},
|
|
25447
25533
|
events: { onStatusChanged: { data: object({
|
|
@@ -28117,10 +28203,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
28117
28203
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
28118
28204
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
28119
28205
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
28120
|
-
* rows)
|
|
28121
|
-
*
|
|
28122
|
-
*
|
|
28123
|
-
* (`interfaces/recording-config.ts`).
|
|
28206
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
28207
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
28208
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
28209
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
28124
28210
|
*/
|
|
28125
28211
|
var RecordingStatusSchema = object({
|
|
28126
28212
|
deviceId: number(),
|
|
@@ -14240,6 +14240,50 @@ var NodeProcessSchema = object({
|
|
|
14240
14240
|
/** Wall-clock uptime (seconds). Parsed from `ps etime`. */
|
|
14241
14241
|
uptimeSec: number()
|
|
14242
14242
|
});
|
|
14243
|
+
/**
|
|
14244
|
+
* One retained container-memory reading.
|
|
14245
|
+
*
|
|
14246
|
+
* `atMs` is the timestamp of the PROCESS snapshot taken in the same tick, not
|
|
14247
|
+
* a second clock: that is what makes "processes sum to X, container says Y"
|
|
14248
|
+
* subtractable per point rather than an eyeballed comparison of two series
|
|
14249
|
+
* sampled at different instants.
|
|
14250
|
+
*
|
|
14251
|
+
* A reduced window keeps the sample with the LARGEST `currentBytes` in each
|
|
14252
|
+
* bucket, WHOLE. Taking a per-field maximum would synthesise a row whose parts
|
|
14253
|
+
* never coexisted, and a mean would smear away the peak this exists to find.
|
|
14254
|
+
*/
|
|
14255
|
+
var ContainerMemoryPointSchema = object({
|
|
14256
|
+
/** Which hierarchy answered, so a reading is never ambiguous. */
|
|
14257
|
+
source: _enum(["cgroup-v2", "cgroup-v1"]),
|
|
14258
|
+
/** `memory.current` (v2) / `memory.usage_in_bytes` (v1). Always known. */
|
|
14259
|
+
currentBytes: number(),
|
|
14260
|
+
/** The cgroup's ceiling. `null` = NO LIMIT — never a sentinel, never zero. */
|
|
14261
|
+
limitBytes: number().nullable(),
|
|
14262
|
+
/** Anonymous pages: the closest thing to "what the processes allocated". */
|
|
14263
|
+
anonBytes: number().nullable(),
|
|
14264
|
+
/** Page cache. Charged to the cgroup, owned by no process. */
|
|
14265
|
+
fileBytes: number().nullable(),
|
|
14266
|
+
/**
|
|
14267
|
+
* Shared memory — and the field that explained the largest single surprise.
|
|
14268
|
+
* The i915 driver backs GPU buffers with shmem, so an inference pool or a
|
|
14269
|
+
* hardware-decode session holding DRM objects is charged HERE and appears
|
|
14270
|
+
* nowhere in a `ps` scan.
|
|
14271
|
+
*/
|
|
14272
|
+
shmemBytes: number().nullable(),
|
|
14273
|
+
/** Kernel slab charged to this cgroup. `null` on v1, which never publishes it. */
|
|
14274
|
+
slabBytes: number().nullable(),
|
|
14275
|
+
/**
|
|
14276
|
+
* Shrinkable i915 GEM object bytes, from debugfs.
|
|
14277
|
+
*
|
|
14278
|
+
* **Host-wide across every DRM client, NOT cgroup-scoped.** It is not a
|
|
14279
|
+
* component of `currentBytes` and must not be subtracted from it; it says
|
|
14280
|
+
* what put the shmem there, where `shmemBytes` only says how much.
|
|
14281
|
+
*
|
|
14282
|
+
* `null` wherever debugfs is not mounted — which is inside every camstack
|
|
14283
|
+
* container today — and on any node with no Intel GPU.
|
|
14284
|
+
*/
|
|
14285
|
+
gpuShmemBytes: number().nullable()
|
|
14286
|
+
}).extend({ atMs: number() });
|
|
14243
14287
|
var DumpHeapSnapshotInputSchema = object({
|
|
14244
14288
|
/** The addon whose runner should dump a heap snapshot. */
|
|
14245
14289
|
addonId: string() });
|
|
@@ -14303,6 +14347,21 @@ var NodeLoadSeriesSchema = object({
|
|
|
14303
14347
|
/** One entry per function seen in the window, heaviest-first. */
|
|
14304
14348
|
series: array(LoadFunctionSeriesSchema).readonly(),
|
|
14305
14349
|
/**
|
|
14350
|
+
* The CONTAINER's memory over the same window, oldest-first.
|
|
14351
|
+
*
|
|
14352
|
+
* Sits next to `series` rather than in a method of its own because the whole
|
|
14353
|
+
* question is a subtraction: the per-process rows in `series` sum to one
|
|
14354
|
+
* number and this one is another, and an operator who has to issue two calls
|
|
14355
|
+
* to compare them will compare two different instants. Same reader, same
|
|
14356
|
+
* `sinceMs`, same `bucketMs`, same timestamps.
|
|
14357
|
+
*
|
|
14358
|
+
* **EMPTY means ABSENT, never zero.** A node with no cgroup — a developer
|
|
14359
|
+
* Mac, a bare-metal host, a container with the hierarchy hidden — reports no
|
|
14360
|
+
* points at all. A zero here would be indistinguishable from a healthy
|
|
14361
|
+
* container and is precisely the lie this field exists to avoid.
|
|
14362
|
+
*/
|
|
14363
|
+
containerMemory: array(ContainerMemoryPointSchema).readonly(),
|
|
14364
|
+
/**
|
|
14306
14365
|
* Width of one returned bucket, in ms. Equals the sampling cadence when no
|
|
14307
14366
|
* reduction was needed — so a caller can always say what one point covers
|
|
14308
14367
|
* without having to know whether it was reduced.
|
|
@@ -25360,6 +25419,33 @@ var intercomCapability = {
|
|
|
25360
25419
|
deviceNative: true,
|
|
25361
25420
|
mode: "singleton",
|
|
25362
25421
|
deviceTypes: [DeviceType.Camera],
|
|
25422
|
+
/**
|
|
25423
|
+
* **Auth tier: `protected` on every method — deliberate, and load-bearing.**
|
|
25424
|
+
*
|
|
25425
|
+
* Talking through a camera is an OPERATE action, not a CONFIGURE one. This
|
|
25426
|
+
* cap has no configuration surface at all: all six methods open, feed and
|
|
25427
|
+
* close one live audio session against one `deviceId`. That is the same
|
|
25428
|
+
* authority as `ptz.move` or `snapshot.getSnapshot`, both `protected` — and
|
|
25429
|
+
* the opposite of `ptz.savePreset` / `snapshot.invalidateCache`, which are
|
|
25430
|
+
* `admin` because they change what the device IS.
|
|
25431
|
+
*
|
|
25432
|
+
* `protected` does not mean ungated: `protectedProcedure` runs the
|
|
25433
|
+
* `METHOD_ACCESS_MAP` scope check, and every method here is `scope: 'device'`
|
|
25434
|
+
* with `access: 'create'` and a `deviceId` in its input. So a caller needs a
|
|
25435
|
+
* grant that covers THAT camera at `create` — a `camera-viewer` (`view`
|
|
25436
|
+
* only) still cannot talk, and a grant on camera 5 cannot talk through
|
|
25437
|
+
* camera 7.
|
|
25438
|
+
*
|
|
25439
|
+
* Every method was `auth: 'admin'` from the initial commit, which made the
|
|
25440
|
+
* cap unreachable by every non-admin principal — `adminProcedure` throws
|
|
25441
|
+
* `FORBIDDEN: Admin required` BEFORE the scope check runs, so the scope
|
|
25442
|
+
* machinery generated for this cap (`METHOD_ACCESS_MAP`,
|
|
25443
|
+
* `DEVICE_SCOPED_CAPS`, `METHOD_DEVICE_SELECTORS`) was complete and dead. The
|
|
25444
|
+
* `camera-operator` scope preset has promised "PTZ control, intercom,
|
|
25445
|
+
* snapshots" since that same commit; the promise could not be kept. Recorded
|
|
25446
|
+
* as D289; `scripts/check-scope-preset-promises.ts` now fails the build if a
|
|
25447
|
+
* preset promises a cap no row of that preset can reach.
|
|
25448
|
+
*/
|
|
25363
25449
|
methods: {
|
|
25364
25450
|
/**
|
|
25365
25451
|
* Open a server-side WebRTC audio-only session. Returns an SDP
|
|
@@ -25372,7 +25458,7 @@ var intercomCapability = {
|
|
|
25372
25458
|
sdpOffer: string()
|
|
25373
25459
|
}), {
|
|
25374
25460
|
kind: "mutation",
|
|
25375
|
-
auth: "
|
|
25461
|
+
auth: "protected"
|
|
25376
25462
|
}),
|
|
25377
25463
|
handleAnswer: method(object({
|
|
25378
25464
|
deviceId: number(),
|
|
@@ -25380,7 +25466,7 @@ var intercomCapability = {
|
|
|
25380
25466
|
sdpAnswer: string()
|
|
25381
25467
|
}), _void(), {
|
|
25382
25468
|
kind: "mutation",
|
|
25383
|
-
auth: "
|
|
25469
|
+
auth: "protected"
|
|
25384
25470
|
}),
|
|
25385
25471
|
/** Close explicitly. Server also auto-closes on 30s idle. */
|
|
25386
25472
|
stopSession: method(object({
|
|
@@ -25388,7 +25474,7 @@ var intercomCapability = {
|
|
|
25388
25474
|
sessionId: string()
|
|
25389
25475
|
}), _void(), {
|
|
25390
25476
|
kind: "mutation",
|
|
25391
|
-
auth: "
|
|
25477
|
+
auth: "protected"
|
|
25392
25478
|
}),
|
|
25393
25479
|
/**
|
|
25394
25480
|
* Open a raw-PCM talk session (no WebRTC SDP plumbing). Used by
|
|
@@ -25401,7 +25487,7 @@ var intercomCapability = {
|
|
|
25401
25487
|
*/
|
|
25402
25488
|
startTalkSession: method(object({ deviceId: number() }), object({ sessionId: string() }), {
|
|
25403
25489
|
kind: "mutation",
|
|
25404
|
-
auth: "
|
|
25490
|
+
auth: "protected"
|
|
25405
25491
|
}),
|
|
25406
25492
|
/**
|
|
25407
25493
|
* Push one chunk of talk-back audio onto the active talk session.
|
|
@@ -25436,12 +25522,12 @@ var intercomCapability = {
|
|
|
25436
25522
|
sequenceNumber: number().int()
|
|
25437
25523
|
}), object({ accepted: boolean() }), {
|
|
25438
25524
|
kind: "mutation",
|
|
25439
|
-
auth: "
|
|
25525
|
+
auth: "protected"
|
|
25440
25526
|
}),
|
|
25441
25527
|
/** Close the raw-PCM talk session. Idempotent. */
|
|
25442
25528
|
endTalkSession: method(object({ deviceId: number() }), _void(), {
|
|
25443
25529
|
kind: "mutation",
|
|
25444
|
-
auth: "
|
|
25530
|
+
auth: "protected"
|
|
25445
25531
|
})
|
|
25446
25532
|
},
|
|
25447
25533
|
events: { onStatusChanged: { data: object({
|
|
@@ -28117,10 +28203,10 @@ DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceI
|
|
|
28117
28203
|
* recording config. NOTE on events (source of truth, R5/C3): this cap carries
|
|
28118
28204
|
* NO event surface — `getPlaybackManifest` returns playlist URLs only. Timeline
|
|
28119
28205
|
* events (motion/object/audio) come from `pipelineAnalytics` (durable SQLite
|
|
28120
|
-
* rows)
|
|
28121
|
-
*
|
|
28122
|
-
*
|
|
28123
|
-
* (`interfaces/recording-config.ts`).
|
|
28206
|
+
* rows) and are the ONLY event surface — the recorder has none. The in-RAM
|
|
28207
|
+
* playback markers it used to build were deleted on 2026-08-29 because nothing
|
|
28208
|
+
* ever read them. Event<->footage joins are by time, padded with the shared
|
|
28209
|
+
* `EVENT_PAD_MS` (`interfaces/recording-config.ts`).
|
|
28124
28210
|
*/
|
|
28125
28211
|
var RecordingStatusSchema = object({
|
|
28126
28212
|
deviceId: number(),
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
//#endregion
|
|
6
|
-
const require_dist = require("../dist-
|
|
6
|
+
const require_dist = require("../dist-Dt7YuyK3.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
//#region src/ha-export/topics.ts
|
|
9
9
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-
|
|
1
|
+
import { At as EventCategory, C as buildAddonRouteProvider, Et as string, N as deviceExportCapability, X as oauthIntegrationCapability, a as COCO_TO_MACRO, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, pt as BaseAddon, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, vt as nodePin } from "../dist-BpQG6lq7.mjs";
|
|
2
2
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
//#region src/ha-export/topics.ts
|
|
4
4
|
/**
|