@camstack/addon-provider-tuya 0.2.102 → 0.2.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/addon.js +314 -12
  2. package/dist/addon.mjs +314 -12
  3. package/package.json +2 -2
package/dist/addon.js CHANGED
@@ -6180,7 +6180,7 @@ var ZodIssueCode = {
6180
6180
  var ZodFirstPartyTypeKind;
6181
6181
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6182
6182
  //#endregion
6183
- //#region ../types/dist/sleep-DEuj7E3j.mjs
6183
+ //#region ../types/dist/sleep-BDR76Ykr.mjs
6184
6184
  /**
6185
6185
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6186
6186
  * window to float samples (D455).
@@ -12382,6 +12382,21 @@ var streamSignalsCapability = {
12382
12382
  mode: "singleton",
12383
12383
  deviceTypes: Object.values(DeviceType),
12384
12384
  runtimeState: StreamSignalsStatusSchema,
12385
+ /**
12386
+ * Runtime-state durability: **session** — mirrored in RAM, never written.
12387
+ *
12388
+ * The slice holds what the DEVICE says it can emit. That is a probed fact,
12389
+ * not an operator choice: the provider re-declares it on every registration,
12390
+ * so losing it loses nothing and persisting it would freeze an answer the
12391
+ * camera is entitled to change. Measured the same day on the sibling case —
12392
+ * `native-object-detection.supportedClasses` was persisted, and a firmware
12393
+ * class the camera really detected stayed missing for the life of the row
12394
+ * because the fix could not reach it.
12395
+ *
12396
+ * See `RuntimeStateDurability`. Enforced by
12397
+ * `scripts/check-runtime-state-durability.ts`.
12398
+ */
12399
+ durability: "session",
12385
12400
  methods: {
12386
12401
  /**
12387
12402
  * What this device can emit. Empty is a valid and common answer — most
@@ -19013,6 +19028,48 @@ var NcAlarmConfigSchema = object({
19013
19028
  settings: NcAlarmSettingsSchema,
19014
19029
  coverage: array(NcAlarmModeCoverageSchema)
19015
19030
  });
19031
+ /**
19032
+ * ONE rule's demand on ONE camera's clip ring.
19033
+ *
19034
+ * A rule, not a camera: the broker takes the MAX over the asks that reach a
19035
+ * camera, so the answer stays a faithful description of the rules and the
19036
+ * bounding (the byte budget, the broker's own ceiling) stays where the cost
19037
+ * lives. A camera that appears in no ask is being told **nothing** — which is
19038
+ * a different thing from never having been told, and only the envelope
19039
+ * (`rulesLoaded`) can tell those apart.
19040
+ */
19041
+ var NcClipRetentionAskSchema = object({
19042
+ /**
19043
+ * The camera this ask is about. **Absent = every camera**, which is what a
19044
+ * rule with no `conditions.devices` means: it can fire anywhere, so it is
19045
+ * asking everywhere.
19046
+ */
19047
+ deviceId: number().int().nonnegative().optional(),
19048
+ /** Seconds of history the rule needs held for it. Never zero — a rule that
19049
+ * needs nothing produces no ask at all. */
19050
+ seconds: number().min(0).max(60),
19051
+ /** The profile the rule cuts from, when it named one. Absent = the cheapest
19052
+ * assigned, which is what the cut defaults to. */
19053
+ profile: CamProfileSchema.optional(),
19054
+ /** Who is asking — so a retention the operator did not expect names a rule. */
19055
+ ruleId: string(),
19056
+ ruleName: string(),
19057
+ /** Why this many seconds: the rule's own window, or the occupancy ceiling. */
19058
+ reason: _enum(["window", "occupancy"])
19059
+ });
19060
+ /**
19061
+ * The whole answer, with the one bit that keeps absence from reading as zero.
19062
+ *
19063
+ * `rulesLoaded` is false until the rule ledger has completed a load at least
19064
+ * once. A centre that is up but has not read its rules yet answers with an
19065
+ * empty ask list that means nothing at all — applying it would drop every
19066
+ * camera's ring to zero for the first events after a restart, which is the
19067
+ * footage this mechanism exists to keep.
19068
+ */
19069
+ var NcClipRetentionPlanSchema = object({
19070
+ rulesLoaded: boolean(),
19071
+ asks: array(NcClipRetentionAskSchema).readonly()
19072
+ });
19016
19073
  method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), method(object({ ruleId: string() }), object({ rule: NcRuleSchema.nullable() }), { auth: "admin" }), method(object({ rule: NcRuleInputSchema }), object({ rule: NcRuleSchema }), {
19017
19074
  kind: "mutation",
19018
19075
  auth: "admin",
@@ -19033,7 +19090,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
19033
19090
  }), object({ success: literal(true) }), {
19034
19091
  kind: "mutation",
19035
19092
  auth: "admin"
19036
- }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
19093
+ }), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
19037
19094
  deviceId: number().int(),
19038
19095
  muted: boolean()
19039
19096
  }), object({ success: literal(true) }), {
@@ -21607,6 +21664,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
21607
21664
  * solid is this track", cheaper than re-deriving it from a trajectory. */
21608
21665
  framesMatched: number().int()
21609
21666
  })).readonly() });
21667
+ /**
21668
+ * The long-term series a camera produces. A closed union so a typo cannot
21669
+ * invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
21670
+ * is an alias of this, not a second list.
21671
+ */
21672
+ var AnalyticsLtsSeriesSchema = _enum([
21673
+ "motion",
21674
+ "audio-dbfs",
21675
+ "battery",
21676
+ "occupancy"
21677
+ ]);
21678
+ /**
21679
+ * One closed 5-minute bucket of a long-term series.
21680
+ *
21681
+ * `samples` is how many readings the bucket folded — it is the ACTIVITY for a
21682
+ * series like `motion`, and the confidence for one like `occupancy`. A bucket
21683
+ * that exists at all was measured; a bucket that is absent was not, which is a
21684
+ * different claim from zero and the reason this is a sparse series.
21685
+ */
21686
+ var LtsBucketSchema = object({
21687
+ scope: string(),
21688
+ bucketStart: number().int(),
21689
+ samples: number().int().nonnegative(),
21690
+ sum: number(),
21691
+ min: number(),
21692
+ max: number()
21693
+ });
21610
21694
  DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
21611
21695
  deviceId: number(),
21612
21696
  trackId: string()
@@ -21653,6 +21737,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
21653
21737
  kinds: array(string()).optional(),
21654
21738
  limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
21655
21739
  }), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
21740
+ deviceId: number(),
21741
+ series: AnalyticsLtsSeriesSchema,
21742
+ /** Omit for EVERY scope of this series in the range. */
21743
+ scope: string().optional(),
21744
+ from: number(),
21745
+ to: number(),
21746
+ limit: number().int().positive().optional()
21747
+ }), array(LtsBucketSchema).readonly()), method(object({
21656
21748
  deviceId: number(),
21657
21749
  since: number(),
21658
21750
  until: number(),
@@ -22271,6 +22363,14 @@ var MotionSourceEnum = _enum([
22271
22363
  */
22272
22364
  var MotionSourcesSchema = array(MotionSourceEnum);
22273
22365
  /**
22366
+ * Which root detectors a camera runs. Deliberately the SAME vocabulary
22367
+ * post-analysis already tags every detection with (`DetectionSource`) rather
22368
+ * than a second spelling of the same two ideas — the value an operator picks
22369
+ * here is the value that comes back on the track, the overlay and the debug
22370
+ * row.
22371
+ */
22372
+ var DetectionSourcesSchema = array(DetectionSourceSchema);
22373
+ /**
22274
22374
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
22275
22375
  * so cap-side consumers (the orchestrator forward, the runner addon's
22276
22376
  * cap implementation, tests) can reuse the type instead of redeclaring
@@ -22421,6 +22521,35 @@ var RunnerCameraConfigSchema = object({
22421
22521
  * events; the orchestrator forwards to `reportMotion`.
22422
22522
  */
22423
22523
  motionSources: MotionSourcesSchema.default(["analyzer"]),
22524
+ /**
22525
+ * WHICH root detector runs for this camera. The detection counterpart of
22526
+ * {@link motionSources}, same shape and same discipline: a per-camera list
22527
+ * of sources the system understands, vendor-agnostic, owned here.
22528
+ *
22529
+ * - `pipeline` — this runner's own root step on decoded pixels (`steps`).
22530
+ * - `onboard` — the CAMERA's own detector, admitted only when it is named
22531
+ * here. Its boxes reach post-analysis on the same
22532
+ * `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
22533
+ * track gets the same tracker, the same overlay and the same detail
22534
+ * subtree (face / plate / embedding).
22535
+ *
22536
+ * `['onboard']` alone is the REPLACEMENT: this runner's root step does not
22537
+ * run, and that is where a camera with a usable onboard detector buys back
22538
+ * its share of the accelerator. It saves the root inference, not the decode
22539
+ * — the detail subtree still needs pixels to cut crops from.
22540
+ *
22541
+ * A camera whose onboard detections carry no geometry cannot serve as a root
22542
+ * step at all (there is nothing to track), and the cap that knows this says
22543
+ * so on `native-object-detection.getOptions().geometry`. On Reolink that is
22544
+ * every battery camera: the boxes ride a sub-stream a battery camera never
22545
+ * attaches, so such a camera stays on `['pipeline']` and its onboard AI is
22546
+ * worth exactly what it already is — a wake signal with a class.
22547
+ *
22548
+ * Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
22549
+ * vendor never turns a detector on for the operator, and neither does a
22550
+ * default.
22551
+ */
22552
+ detectionSources: DetectionSourcesSchema.default(["pipeline"]),
22424
22553
  pipelineEnabled: boolean().default(true),
22425
22554
  /** Ordered tree of video steps. Absent → runner skips video detection. */
22426
22555
  steps: array(PipelineStepInputSchema).readonly().optional(),
@@ -22602,7 +22731,47 @@ var RunnerLocalMetricsSchema = object({
22602
22731
  queueDepth: number(),
22603
22732
  frameLazy: FrameLazyMetricsSchema.optional()
22604
22733
  });
22734
+ /**
22735
+ * Pipeline Runner capability — runtime detection workhorse.
22736
+ *
22737
+ * One instance per node. Receives camera assignments from
22738
+ * `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
22739
+ * decoded frames, drains motion + detection queues, calls the local
22740
+ * `motion-detection` and `pipeline-executor` capabilities, and emits typed
22741
+ * `pipeline.inference-result` and `detection.motion-analysis` events on
22742
+ * the bus.
22743
+ *
22744
+ * Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
22745
+ * runner has zero knowledge of other agents, no global state, and never
22746
+ * makes assignment decisions itself.
22747
+ */
22748
+ /**
22749
+ * Why a runner declined to look at a camera out of band. Named rather than a
22750
+ * bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
22751
+ * already mid-session and one already bursting are four different facts, and a
22752
+ * caller told only "no" cannot tell a protection from a bug.
22753
+ */
22754
+ var OccupancyBurstRefusalSchema = _enum([
22755
+ "not-attached",
22756
+ "battery-asleep",
22757
+ "not-watching",
22758
+ "already-bursting"
22759
+ ]);
22605
22760
  method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
22761
+ deviceId: number(),
22762
+ /** How many frames to collect. The caller sizes this against what its
22763
+ * own confirmation needs; the runner clamps it to the field's range. */
22764
+ frames: number().int().positive().optional(),
22765
+ /** Why, for the log. A burst nobody can attribute is a cost nobody can
22766
+ * defend — the periodic one at least has a timer to point at. */
22767
+ reason: string()
22768
+ }), object({
22769
+ started: boolean(),
22770
+ refusedBecause: OccupancyBurstRefusalSchema.optional()
22771
+ }), {
22772
+ auth: "admin",
22773
+ kind: "mutation"
22774
+ }), method(object({
22606
22775
  handle: FrameHandleSchema,
22607
22776
  bbox: NativeCropBboxSchema,
22608
22777
  maxWidth: number().int().positive().optional(),
@@ -29440,11 +29609,46 @@ var NativeObjectDetectionStatusSchema = object({
29440
29609
  supportedClasses: array(NativeObjectClassEnum).readonly(),
29441
29610
  /**
29442
29611
  * Whether forwarding of onboard AI detections is enabled for this device.
29443
- * Default FALSE (opt-in, cold-start) — onboard AI pushes are noisy/sparse and
29444
- * churn the tracker, so forwarding stays off until the operator enables it.
29612
+ *
29613
+ * Cold-start OFF on every camera. A vendor does not decide which detector a
29614
+ * camera runs — that is the operator's choice, and it is made where every
29615
+ * other detection choice is made. `geometry` on
29616
+ * {@link NativeObjectDetectionOptionsSchema} is how the form says what the
29617
+ * choice would buy this particular camera.
29445
29618
  */
29446
29619
  enabled: boolean()
29447
29620
  });
29621
+ /**
29622
+ * WHEN a camera's onboard detections carry geometry.
29623
+ *
29624
+ * - `boxed` — always. The provider holds a standing channel for the boxes, so
29625
+ * a detection is a trackable subject whenever the camera sees one.
29626
+ * - `while-streaming` — only while some stream of this camera is already open.
29627
+ * The boxes ride the video's own side-channel rather than a feed of their
29628
+ * own, so they cost nothing and they exist only when something is pulling.
29629
+ * On Reolink this is every BATTERY camera: a persistent second feed is real
29630
+ * radio drain, but a camera that is awake is awake precisely because
29631
+ * something is in front of it, and its stream is already being pulled.
29632
+ * - `flag-only` — never. The firmware ships the class and nothing else; the
29633
+ * pipeline needs geometry to make a subject, so such a push reaches the
29634
+ * tracker as motion and no further.
29635
+ *
29636
+ * Reported and not inferred, because the operator's question in front of the
29637
+ * picker is "what do I get", and these are three different answers (D14: the
29638
+ * derived form is only as honest as `getOptions`).
29639
+ */
29640
+ var NativeObjectGeometryEnum = _enum([
29641
+ "boxed",
29642
+ "while-streaming",
29643
+ "flag-only"
29644
+ ]);
29645
+ var NativeObjectDetectionOptionsSchema = object({
29646
+ /** Classes this firmware can detect — the same list the status reports. */
29647
+ supportedClasses: array(NativeObjectClassEnum).readonly(),
29648
+ /** What a detection from this camera carries. */
29649
+ geometry: NativeObjectGeometryEnum
29650
+ });
29651
+ var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
29448
29652
  var NativeObjectDetectionRuntimeStateSchema = NativeObjectDetectionStatusSchema.extend({
29449
29653
  /** Required by createRuntimeStateBridge — epoch ms of last refresh. */
29450
29654
  lastFetchedAt: number() });
@@ -29454,13 +29658,23 @@ var nativeObjectDetectionCapability = {
29454
29658
  deviceNative: true,
29455
29659
  mode: "singleton",
29456
29660
  deviceTypes: [DeviceType.Camera],
29457
- methods: { setEnabled: method(object({
29458
- deviceId: number(),
29459
- enabled: boolean()
29460
- }), _void(), {
29461
- kind: "mutation",
29462
- auth: "admin"
29463
- }) },
29661
+ methods: {
29662
+ getOptions: method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema),
29663
+ setSettings: method(object({
29664
+ deviceId: number(),
29665
+ settings: NativeObjectDetectionSettingsPatchSchema
29666
+ }), _void(), {
29667
+ kind: "mutation",
29668
+ auth: "admin"
29669
+ }),
29670
+ setEnabled: method(object({
29671
+ deviceId: number(),
29672
+ enabled: boolean()
29673
+ }), _void(), {
29674
+ kind: "mutation",
29675
+ auth: "admin"
29676
+ })
29677
+ },
29464
29678
  events: { onDetected: { data: object({
29465
29679
  deviceId: number(),
29466
29680
  detection: NativeDetectionSchema
@@ -34308,7 +34522,28 @@ var PerScopeBreakdownSchema = object({
34308
34522
  /** Total tracked objects in this scope (frame / zone / unzoned). */
34309
34523
  totalObjects: number().int().nonnegative(),
34310
34524
  /** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
34311
- byClass: record(string(), number().int().nonnegative())
34525
+ byClass: record(string(), number().int().nonnegative()),
34526
+ /**
34527
+ * Of `totalObjects`, how many are STANDING — objects the census holds,
34528
+ * present but not going anywhere (a parked car, a bin, a statue).
34529
+ *
34530
+ * The operator's question about a scene has two halves and they answer
34531
+ * different things: "what is parked here" is stable for hours and must not
34532
+ * flap, while "who is walking through" is the thing an alert is about. One
34533
+ * number could only serve one of them, and `totalObjects` served the first
34534
+ * badly — a passer-by moved it and every occupancy rule saw a change.
34535
+ *
34536
+ * `standing + transient === totalObjects`, always. The total keeps its old
34537
+ * meaning exactly, so no rule written against it changes behaviour.
34538
+ *
34539
+ * ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
34540
+ * this field cannot say, and a reader that folds absence in as 0 reports "no
34541
+ * parked objects here" about a camera whose lot is full.
34542
+ */
34543
+ standingObjects: number().int().nonnegative().optional(),
34544
+ /** Of `totalObjects`, how many are passing through. See `standingObjects` —
34545
+ * same absence rule. */
34546
+ transientObjects: number().int().nonnegative().optional()
34312
34547
  });
34313
34548
  var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
34314
34549
  zoneId: string(),
@@ -34431,6 +34666,23 @@ var HistoryPointSchema = object({
34431
34666
  * triple covers the three spatial scopes (per-zone, frame-wide,
34432
34667
  * outside-any-zone). Crossing them with `className?` gives the full
34433
34668
  * combinatorial coverage the operator UI requested.
34669
+ *
34670
+ * ## ⚠️ The three history methods are DEPRECATED
34671
+ *
34672
+ * They are served from a 60-MINUTE in-memory ring. It dies with the process,
34673
+ * so after a restart they report nothing about a night that did happen, and any
34674
+ * window past an hour is silently clamped — a caller cannot tell a clamp from
34675
+ * an empty scene. The presets in the occupancy chart existed to hide that
34676
+ * horizon rather than to answer a question.
34677
+ *
34678
+ * Use `pipelineAnalytics.readLongTermSeries({ series: 'occupancy', scope })`
34679
+ * instead. Those rows are already written for every camera, ~60 bytes per
34680
+ * (camera, scope, 5-minute bucket), kept for a year, and survive a restart.
34681
+ * Spell the scope with `occupancyScope(zoneId?, className?)` — the same
34682
+ * function the writer uses, so the two cannot drift.
34683
+ *
34684
+ * The ring stays until these three go, and it is the only thing left reading
34685
+ * it. Do not add a fourth caller.
34434
34686
  */
34435
34687
  var zoneAnalyticsCapability = {
34436
34688
  name: "zone-analytics",
@@ -38830,12 +39082,24 @@ Object.freeze({
38830
39082
  addonId: null,
38831
39083
  access: "create"
38832
39084
  },
39085
+ "nativeObjectDetection.getOptions": {
39086
+ capName: "native-object-detection",
39087
+ capScope: "device",
39088
+ addonId: null,
39089
+ access: "view"
39090
+ },
38833
39091
  "nativeObjectDetection.setEnabled": {
38834
39092
  capName: "native-object-detection",
38835
39093
  capScope: "device",
38836
39094
  addonId: null,
38837
39095
  access: "create"
38838
39096
  },
39097
+ "nativeObjectDetection.setSettings": {
39098
+ capName: "native-object-detection",
39099
+ capScope: "device",
39100
+ addonId: null,
39101
+ access: "create"
39102
+ },
38839
39103
  "navigation.getFeatures": {
38840
39104
  capName: "navigation",
38841
39105
  capScope: "device",
@@ -39100,6 +39364,12 @@ Object.freeze({
39100
39364
  addonId: null,
39101
39365
  access: "view"
39102
39366
  },
39367
+ "notificationRules.getClipRetentionAsks": {
39368
+ capName: "notification-rules",
39369
+ capScope: "system",
39370
+ addonId: null,
39371
+ access: "view"
39372
+ },
39103
39373
  "notificationRules.getConditionCatalog": {
39104
39374
  capName: "notification-rules",
39105
39375
  capScope: "system",
@@ -39610,6 +39880,12 @@ Object.freeze({
39610
39880
  addonId: null,
39611
39881
  access: "create"
39612
39882
  },
39883
+ "pipelineAnalytics.readLongTermSeries": {
39884
+ capName: "pipeline-analytics",
39885
+ capScope: "device",
39886
+ addonId: null,
39887
+ access: "view"
39888
+ },
39613
39889
  "pipelineAnalytics.rebuildObjectEmbeddings": {
39614
39890
  capName: "pipeline-analytics",
39615
39891
  capScope: "device",
@@ -40282,6 +40558,12 @@ Object.freeze({
40282
40558
  addonId: null,
40283
40559
  access: "create"
40284
40560
  },
40561
+ "pipelineRunner.requestOccupancyBurst": {
40562
+ capName: "pipeline-runner",
40563
+ capScope: "system",
40564
+ addonId: null,
40565
+ access: "create"
40566
+ },
40285
40567
  "pipelineRunner.runDetailSubtree": {
40286
40568
  capName: "pipeline-runner",
40287
40569
  capScope: "system",
@@ -43062,11 +43344,21 @@ Object.freeze({
43062
43344
  form: "single",
43063
43345
  optional: false
43064
43346
  }],
43347
+ "nativeObjectDetection.getOptions": [{
43348
+ name: "deviceId",
43349
+ form: "single",
43350
+ optional: false
43351
+ }],
43065
43352
  "nativeObjectDetection.setEnabled": [{
43066
43353
  name: "deviceId",
43067
43354
  form: "single",
43068
43355
  optional: false
43069
43356
  }],
43357
+ "nativeObjectDetection.setSettings": [{
43358
+ name: "deviceId",
43359
+ form: "single",
43360
+ optional: false
43361
+ }],
43070
43362
  "navigation.getFeatures": [{
43071
43363
  name: "deviceId",
43072
43364
  form: "single",
@@ -43416,6 +43708,11 @@ Object.freeze({
43416
43708
  form: "single",
43417
43709
  optional: false
43418
43710
  }],
43711
+ "pipelineAnalytics.readLongTermSeries": [{
43712
+ name: "deviceId",
43713
+ form: "single",
43714
+ optional: false
43715
+ }],
43419
43716
  "pipelineAnalytics.rebuildObjectEmbeddings": [{
43420
43717
  name: "deviceId",
43421
43718
  form: "single",
@@ -43606,6 +43903,11 @@ Object.freeze({
43606
43903
  form: "single",
43607
43904
  optional: false
43608
43905
  }],
43906
+ "pipelineRunner.requestOccupancyBurst": [{
43907
+ name: "deviceId",
43908
+ form: "single",
43909
+ optional: false
43910
+ }],
43609
43911
  "pipelineRunner.runDetailSubtree": [{
43610
43912
  name: "deviceId",
43611
43913
  form: "single",
package/dist/addon.mjs CHANGED
@@ -6179,7 +6179,7 @@ var ZodIssueCode = {
6179
6179
  var ZodFirstPartyTypeKind;
6180
6180
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6181
6181
  //#endregion
6182
- //#region ../types/dist/sleep-DEuj7E3j.mjs
6182
+ //#region ../types/dist/sleep-BDR76Ykr.mjs
6183
6183
  /**
6184
6184
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6185
6185
  * window to float samples (D455).
@@ -12381,6 +12381,21 @@ var streamSignalsCapability = {
12381
12381
  mode: "singleton",
12382
12382
  deviceTypes: Object.values(DeviceType),
12383
12383
  runtimeState: StreamSignalsStatusSchema,
12384
+ /**
12385
+ * Runtime-state durability: **session** — mirrored in RAM, never written.
12386
+ *
12387
+ * The slice holds what the DEVICE says it can emit. That is a probed fact,
12388
+ * not an operator choice: the provider re-declares it on every registration,
12389
+ * so losing it loses nothing and persisting it would freeze an answer the
12390
+ * camera is entitled to change. Measured the same day on the sibling case —
12391
+ * `native-object-detection.supportedClasses` was persisted, and a firmware
12392
+ * class the camera really detected stayed missing for the life of the row
12393
+ * because the fix could not reach it.
12394
+ *
12395
+ * See `RuntimeStateDurability`. Enforced by
12396
+ * `scripts/check-runtime-state-durability.ts`.
12397
+ */
12398
+ durability: "session",
12384
12399
  methods: {
12385
12400
  /**
12386
12401
  * What this device can emit. Empty is a valid and common answer — most
@@ -19012,6 +19027,48 @@ var NcAlarmConfigSchema = object({
19012
19027
  settings: NcAlarmSettingsSchema,
19013
19028
  coverage: array(NcAlarmModeCoverageSchema)
19014
19029
  });
19030
+ /**
19031
+ * ONE rule's demand on ONE camera's clip ring.
19032
+ *
19033
+ * A rule, not a camera: the broker takes the MAX over the asks that reach a
19034
+ * camera, so the answer stays a faithful description of the rules and the
19035
+ * bounding (the byte budget, the broker's own ceiling) stays where the cost
19036
+ * lives. A camera that appears in no ask is being told **nothing** — which is
19037
+ * a different thing from never having been told, and only the envelope
19038
+ * (`rulesLoaded`) can tell those apart.
19039
+ */
19040
+ var NcClipRetentionAskSchema = object({
19041
+ /**
19042
+ * The camera this ask is about. **Absent = every camera**, which is what a
19043
+ * rule with no `conditions.devices` means: it can fire anywhere, so it is
19044
+ * asking everywhere.
19045
+ */
19046
+ deviceId: number().int().nonnegative().optional(),
19047
+ /** Seconds of history the rule needs held for it. Never zero — a rule that
19048
+ * needs nothing produces no ask at all. */
19049
+ seconds: number().min(0).max(60),
19050
+ /** The profile the rule cuts from, when it named one. Absent = the cheapest
19051
+ * assigned, which is what the cut defaults to. */
19052
+ profile: CamProfileSchema.optional(),
19053
+ /** Who is asking — so a retention the operator did not expect names a rule. */
19054
+ ruleId: string(),
19055
+ ruleName: string(),
19056
+ /** Why this many seconds: the rule's own window, or the occupancy ceiling. */
19057
+ reason: _enum(["window", "occupancy"])
19058
+ });
19059
+ /**
19060
+ * The whole answer, with the one bit that keeps absence from reading as zero.
19061
+ *
19062
+ * `rulesLoaded` is false until the rule ledger has completed a load at least
19063
+ * once. A centre that is up but has not read its rules yet answers with an
19064
+ * empty ask list that means nothing at all — applying it would drop every
19065
+ * camera's ring to zero for the first events after a restart, which is the
19066
+ * footage this mechanism exists to keep.
19067
+ */
19068
+ var NcClipRetentionPlanSchema = object({
19069
+ rulesLoaded: boolean(),
19070
+ asks: array(NcClipRetentionAskSchema).readonly()
19071
+ });
19015
19072
  method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), method(object({ ruleId: string() }), object({ rule: NcRuleSchema.nullable() }), { auth: "admin" }), method(object({ rule: NcRuleInputSchema }), object({ rule: NcRuleSchema }), {
19016
19073
  kind: "mutation",
19017
19074
  auth: "admin",
@@ -19032,7 +19089,7 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
19032
19089
  }), object({ success: literal(true) }), {
19033
19090
  kind: "mutation",
19034
19091
  auth: "admin"
19035
- }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
19092
+ }), method(object({}), NcClipRetentionPlanSchema, { auth: "admin" }), method(object({}), object({ mutedDeviceIds: array(number().int()).readonly() }), { auth: "admin" }), method(object({
19036
19093
  deviceId: number().int(),
19037
19094
  muted: boolean()
19038
19095
  }), object({ success: literal(true) }), {
@@ -21606,6 +21663,33 @@ var RunReplayFrameProcessorResultSchema = object({ tracks: array(object({
21606
21663
  * solid is this track", cheaper than re-deriving it from a trajectory. */
21607
21664
  framesMatched: number().int()
21608
21665
  })).readonly() });
21666
+ /**
21667
+ * The long-term series a camera produces. A closed union so a typo cannot
21668
+ * invent one, and the ONE declaration of it — the addon's `AnalyticsLtsSeries`
21669
+ * is an alias of this, not a second list.
21670
+ */
21671
+ var AnalyticsLtsSeriesSchema = _enum([
21672
+ "motion",
21673
+ "audio-dbfs",
21674
+ "battery",
21675
+ "occupancy"
21676
+ ]);
21677
+ /**
21678
+ * One closed 5-minute bucket of a long-term series.
21679
+ *
21680
+ * `samples` is how many readings the bucket folded — it is the ACTIVITY for a
21681
+ * series like `motion`, and the confidence for one like `occupancy`. A bucket
21682
+ * that exists at all was measured; a bucket that is absent was not, which is a
21683
+ * different claim from zero and the reason this is a sparse series.
21684
+ */
21685
+ var LtsBucketSchema = object({
21686
+ scope: string(),
21687
+ bucketStart: number().int(),
21688
+ samples: number().int().nonnegative(),
21689
+ sum: number(),
21690
+ min: number(),
21691
+ max: number()
21692
+ });
21609
21693
  DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).readonly()), method(object({
21610
21694
  deviceId: number(),
21611
21695
  trackId: string()
@@ -21652,6 +21736,14 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
21652
21736
  kinds: array(string()).optional(),
21653
21737
  limit: number().int().min(1).max(MAX_EVENT_QUERY_LIMIT).default(DEFAULT_EVENT_QUERY_LIMIT)
21654
21738
  }), array(SensorEventSchema).readonly()), method(KeyEventQueryInput, array(KeyEventSchema).readonly()), method(KeyEventBatchQueryInput, array(KeyEventsForDeviceSchema).readonly()), method(object({
21739
+ deviceId: number(),
21740
+ series: AnalyticsLtsSeriesSchema,
21741
+ /** Omit for EVERY scope of this series in the range. */
21742
+ scope: string().optional(),
21743
+ from: number(),
21744
+ to: number(),
21745
+ limit: number().int().positive().optional()
21746
+ }), array(LtsBucketSchema).readonly()), method(object({
21655
21747
  deviceId: number(),
21656
21748
  since: number(),
21657
21749
  until: number(),
@@ -22270,6 +22362,14 @@ var MotionSourceEnum = _enum([
22270
22362
  */
22271
22363
  var MotionSourcesSchema = array(MotionSourceEnum);
22272
22364
  /**
22365
+ * Which root detectors a camera runs. Deliberately the SAME vocabulary
22366
+ * post-analysis already tags every detection with (`DetectionSource`) rather
22367
+ * than a second spelling of the same two ideas — the value an operator picks
22368
+ * here is the value that comes back on the track, the overlay and the debug
22369
+ * row.
22370
+ */
22371
+ var DetectionSourcesSchema = array(DetectionSourceSchema);
22372
+ /**
22273
22373
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
22274
22374
  * so cap-side consumers (the orchestrator forward, the runner addon's
22275
22375
  * cap implementation, tests) can reuse the type instead of redeclaring
@@ -22420,6 +22520,35 @@ var RunnerCameraConfigSchema = object({
22420
22520
  * events; the orchestrator forwards to `reportMotion`.
22421
22521
  */
22422
22522
  motionSources: MotionSourcesSchema.default(["analyzer"]),
22523
+ /**
22524
+ * WHICH root detector runs for this camera. The detection counterpart of
22525
+ * {@link motionSources}, same shape and same discipline: a per-camera list
22526
+ * of sources the system understands, vendor-agnostic, owned here.
22527
+ *
22528
+ * - `pipeline` — this runner's own root step on decoded pixels (`steps`).
22529
+ * - `onboard` — the CAMERA's own detector, admitted only when it is named
22530
+ * here. Its boxes reach post-analysis on the same
22531
+ * `PipelineInferenceResult` payload as the pipeline's, so an onboard-born
22532
+ * track gets the same tracker, the same overlay and the same detail
22533
+ * subtree (face / plate / embedding).
22534
+ *
22535
+ * `['onboard']` alone is the REPLACEMENT: this runner's root step does not
22536
+ * run, and that is where a camera with a usable onboard detector buys back
22537
+ * its share of the accelerator. It saves the root inference, not the decode
22538
+ * — the detail subtree still needs pixels to cut crops from.
22539
+ *
22540
+ * A camera whose onboard detections carry no geometry cannot serve as a root
22541
+ * step at all (there is nothing to track), and the cap that knows this says
22542
+ * so on `native-object-detection.getOptions().geometry`. On Reolink that is
22543
+ * every battery camera: the boxes ride a sub-stream a battery camera never
22544
+ * attaches, so such a camera stays on `['pipeline']` and its onboard AI is
22545
+ * worth exactly what it already is — a wake signal with a class.
22546
+ *
22547
+ * Defaults to `['pipeline']`, which is byte-for-byte today's behaviour: a
22548
+ * vendor never turns a detector on for the operator, and neither does a
22549
+ * default.
22550
+ */
22551
+ detectionSources: DetectionSourcesSchema.default(["pipeline"]),
22423
22552
  pipelineEnabled: boolean().default(true),
22424
22553
  /** Ordered tree of video steps. Absent → runner skips video detection. */
22425
22554
  steps: array(PipelineStepInputSchema).readonly().optional(),
@@ -22601,7 +22730,47 @@ var RunnerLocalMetricsSchema = object({
22601
22730
  queueDepth: number(),
22602
22731
  frameLazy: FrameLazyMetricsSchema.optional()
22603
22732
  });
22733
+ /**
22734
+ * Pipeline Runner capability — runtime detection workhorse.
22735
+ *
22736
+ * One instance per node. Receives camera assignments from
22737
+ * `addon-pipeline-orchestrator`, subscribes to the local stream-broker for
22738
+ * decoded frames, drains motion + detection queues, calls the local
22739
+ * `motion-detection` and `pipeline-executor` capabilities, and emits typed
22740
+ * `pipeline.inference-result` and `detection.motion-analysis` events on
22741
+ * the bus.
22742
+ *
22743
+ * Distinct from `pipeline-orchestrator` (the hub-side load balancer) — the
22744
+ * runner has zero knowledge of other agents, no global state, and never
22745
+ * makes assignment decisions itself.
22746
+ */
22747
+ /**
22748
+ * Why a runner declined to look at a camera out of band. Named rather than a
22749
+ * bare `false`: a camera asleep on battery (D173), one attached elsewhere, one
22750
+ * already mid-session and one already bursting are four different facts, and a
22751
+ * caller told only "no" cannot tell a protection from a bug.
22752
+ */
22753
+ var OccupancyBurstRefusalSchema = _enum([
22754
+ "not-attached",
22755
+ "battery-asleep",
22756
+ "not-watching",
22757
+ "already-bursting"
22758
+ ]);
22604
22759
  method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mutation" }), method(object({ deviceId: number() }), object({ success: literal(true) }), { kind: "mutation" }), method(ReportMotionInputSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), RunnerLocalLoadSchema), method(_void(), RunnerLocalMetricsSchema), method(object({ deviceId: number() }), CameraMetricsSchema.nullable()), method(_void(), array(CameraMetricsWithDeviceIdSchema).readonly()), method(_void(), array(number()).readonly()), method(object({
22760
+ deviceId: number(),
22761
+ /** How many frames to collect. The caller sizes this against what its
22762
+ * own confirmation needs; the runner clamps it to the field's range. */
22763
+ frames: number().int().positive().optional(),
22764
+ /** Why, for the log. A burst nobody can attribute is a cost nobody can
22765
+ * defend — the periodic one at least has a timer to point at. */
22766
+ reason: string()
22767
+ }), object({
22768
+ started: boolean(),
22769
+ refusedBecause: OccupancyBurstRefusalSchema.optional()
22770
+ }), {
22771
+ auth: "admin",
22772
+ kind: "mutation"
22773
+ }), method(object({
22605
22774
  handle: FrameHandleSchema,
22606
22775
  bbox: NativeCropBboxSchema,
22607
22776
  maxWidth: number().int().positive().optional(),
@@ -29439,11 +29608,46 @@ var NativeObjectDetectionStatusSchema = object({
29439
29608
  supportedClasses: array(NativeObjectClassEnum).readonly(),
29440
29609
  /**
29441
29610
  * Whether forwarding of onboard AI detections is enabled for this device.
29442
- * Default FALSE (opt-in, cold-start) — onboard AI pushes are noisy/sparse and
29443
- * churn the tracker, so forwarding stays off until the operator enables it.
29611
+ *
29612
+ * Cold-start OFF on every camera. A vendor does not decide which detector a
29613
+ * camera runs — that is the operator's choice, and it is made where every
29614
+ * other detection choice is made. `geometry` on
29615
+ * {@link NativeObjectDetectionOptionsSchema} is how the form says what the
29616
+ * choice would buy this particular camera.
29444
29617
  */
29445
29618
  enabled: boolean()
29446
29619
  });
29620
+ /**
29621
+ * WHEN a camera's onboard detections carry geometry.
29622
+ *
29623
+ * - `boxed` — always. The provider holds a standing channel for the boxes, so
29624
+ * a detection is a trackable subject whenever the camera sees one.
29625
+ * - `while-streaming` — only while some stream of this camera is already open.
29626
+ * The boxes ride the video's own side-channel rather than a feed of their
29627
+ * own, so they cost nothing and they exist only when something is pulling.
29628
+ * On Reolink this is every BATTERY camera: a persistent second feed is real
29629
+ * radio drain, but a camera that is awake is awake precisely because
29630
+ * something is in front of it, and its stream is already being pulled.
29631
+ * - `flag-only` — never. The firmware ships the class and nothing else; the
29632
+ * pipeline needs geometry to make a subject, so such a push reaches the
29633
+ * tracker as motion and no further.
29634
+ *
29635
+ * Reported and not inferred, because the operator's question in front of the
29636
+ * picker is "what do I get", and these are three different answers (D14: the
29637
+ * derived form is only as honest as `getOptions`).
29638
+ */
29639
+ var NativeObjectGeometryEnum = _enum([
29640
+ "boxed",
29641
+ "while-streaming",
29642
+ "flag-only"
29643
+ ]);
29644
+ var NativeObjectDetectionOptionsSchema = object({
29645
+ /** Classes this firmware can detect — the same list the status reports. */
29646
+ supportedClasses: array(NativeObjectClassEnum).readonly(),
29647
+ /** What a detection from this camera carries. */
29648
+ geometry: NativeObjectGeometryEnum
29649
+ });
29650
+ var NativeObjectDetectionSettingsPatchSchema = object({ enabled: boolean().optional() });
29447
29651
  var NativeObjectDetectionRuntimeStateSchema = NativeObjectDetectionStatusSchema.extend({
29448
29652
  /** Required by createRuntimeStateBridge — epoch ms of last refresh. */
29449
29653
  lastFetchedAt: number() });
@@ -29453,13 +29657,23 @@ var nativeObjectDetectionCapability = {
29453
29657
  deviceNative: true,
29454
29658
  mode: "singleton",
29455
29659
  deviceTypes: [DeviceType.Camera],
29456
- methods: { setEnabled: method(object({
29457
- deviceId: number(),
29458
- enabled: boolean()
29459
- }), _void(), {
29460
- kind: "mutation",
29461
- auth: "admin"
29462
- }) },
29660
+ methods: {
29661
+ getOptions: method(object({ deviceId: number() }), NativeObjectDetectionOptionsSchema),
29662
+ setSettings: method(object({
29663
+ deviceId: number(),
29664
+ settings: NativeObjectDetectionSettingsPatchSchema
29665
+ }), _void(), {
29666
+ kind: "mutation",
29667
+ auth: "admin"
29668
+ }),
29669
+ setEnabled: method(object({
29670
+ deviceId: number(),
29671
+ enabled: boolean()
29672
+ }), _void(), {
29673
+ kind: "mutation",
29674
+ auth: "admin"
29675
+ })
29676
+ },
29463
29677
  events: { onDetected: { data: object({
29464
29678
  deviceId: number(),
29465
29679
  detection: NativeDetectionSchema
@@ -34307,7 +34521,28 @@ var PerScopeBreakdownSchema = object({
34307
34521
  /** Total tracked objects in this scope (frame / zone / unzoned). */
34308
34522
  totalObjects: number().int().nonnegative(),
34309
34523
  /** Per-class count. Keys are macro class names (e.g. `person`, `car`). */
34310
- byClass: record(string(), number().int().nonnegative())
34524
+ byClass: record(string(), number().int().nonnegative()),
34525
+ /**
34526
+ * Of `totalObjects`, how many are STANDING — objects the census holds,
34527
+ * present but not going anywhere (a parked car, a bin, a statue).
34528
+ *
34529
+ * The operator's question about a scene has two halves and they answer
34530
+ * different things: "what is parked here" is stable for hours and must not
34531
+ * flap, while "who is walking through" is the thing an alert is about. One
34532
+ * number could only serve one of them, and `totalObjects` served the first
34533
+ * badly — a passer-by moved it and every occupancy rule saw a change.
34534
+ *
34535
+ * `standing + transient === totalObjects`, always. The total keeps its old
34536
+ * meaning exactly, so no rule written against it changes behaviour.
34537
+ *
34538
+ * ABSENT means UNKNOWN, never zero (D393): a snapshot from a node older than
34539
+ * this field cannot say, and a reader that folds absence in as 0 reports "no
34540
+ * parked objects here" about a camera whose lot is full.
34541
+ */
34542
+ standingObjects: number().int().nonnegative().optional(),
34543
+ /** Of `totalObjects`, how many are passing through. See `standingObjects` —
34544
+ * same absence rule. */
34545
+ transientObjects: number().int().nonnegative().optional()
34311
34546
  });
34312
34547
  var ZoneScopeBreakdownSchema = PerScopeBreakdownSchema.extend({
34313
34548
  zoneId: string(),
@@ -34430,6 +34665,23 @@ var HistoryPointSchema = object({
34430
34665
  * triple covers the three spatial scopes (per-zone, frame-wide,
34431
34666
  * outside-any-zone). Crossing them with `className?` gives the full
34432
34667
  * combinatorial coverage the operator UI requested.
34668
+ *
34669
+ * ## ⚠️ The three history methods are DEPRECATED
34670
+ *
34671
+ * They are served from a 60-MINUTE in-memory ring. It dies with the process,
34672
+ * so after a restart they report nothing about a night that did happen, and any
34673
+ * window past an hour is silently clamped — a caller cannot tell a clamp from
34674
+ * an empty scene. The presets in the occupancy chart existed to hide that
34675
+ * horizon rather than to answer a question.
34676
+ *
34677
+ * Use `pipelineAnalytics.readLongTermSeries({ series: 'occupancy', scope })`
34678
+ * instead. Those rows are already written for every camera, ~60 bytes per
34679
+ * (camera, scope, 5-minute bucket), kept for a year, and survive a restart.
34680
+ * Spell the scope with `occupancyScope(zoneId?, className?)` — the same
34681
+ * function the writer uses, so the two cannot drift.
34682
+ *
34683
+ * The ring stays until these three go, and it is the only thing left reading
34684
+ * it. Do not add a fourth caller.
34433
34685
  */
34434
34686
  var zoneAnalyticsCapability = {
34435
34687
  name: "zone-analytics",
@@ -38829,12 +39081,24 @@ Object.freeze({
38829
39081
  addonId: null,
38830
39082
  access: "create"
38831
39083
  },
39084
+ "nativeObjectDetection.getOptions": {
39085
+ capName: "native-object-detection",
39086
+ capScope: "device",
39087
+ addonId: null,
39088
+ access: "view"
39089
+ },
38832
39090
  "nativeObjectDetection.setEnabled": {
38833
39091
  capName: "native-object-detection",
38834
39092
  capScope: "device",
38835
39093
  addonId: null,
38836
39094
  access: "create"
38837
39095
  },
39096
+ "nativeObjectDetection.setSettings": {
39097
+ capName: "native-object-detection",
39098
+ capScope: "device",
39099
+ addonId: null,
39100
+ access: "create"
39101
+ },
38838
39102
  "navigation.getFeatures": {
38839
39103
  capName: "navigation",
38840
39104
  capScope: "device",
@@ -39099,6 +39363,12 @@ Object.freeze({
39099
39363
  addonId: null,
39100
39364
  access: "view"
39101
39365
  },
39366
+ "notificationRules.getClipRetentionAsks": {
39367
+ capName: "notification-rules",
39368
+ capScope: "system",
39369
+ addonId: null,
39370
+ access: "view"
39371
+ },
39102
39372
  "notificationRules.getConditionCatalog": {
39103
39373
  capName: "notification-rules",
39104
39374
  capScope: "system",
@@ -39609,6 +39879,12 @@ Object.freeze({
39609
39879
  addonId: null,
39610
39880
  access: "create"
39611
39881
  },
39882
+ "pipelineAnalytics.readLongTermSeries": {
39883
+ capName: "pipeline-analytics",
39884
+ capScope: "device",
39885
+ addonId: null,
39886
+ access: "view"
39887
+ },
39612
39888
  "pipelineAnalytics.rebuildObjectEmbeddings": {
39613
39889
  capName: "pipeline-analytics",
39614
39890
  capScope: "device",
@@ -40281,6 +40557,12 @@ Object.freeze({
40281
40557
  addonId: null,
40282
40558
  access: "create"
40283
40559
  },
40560
+ "pipelineRunner.requestOccupancyBurst": {
40561
+ capName: "pipeline-runner",
40562
+ capScope: "system",
40563
+ addonId: null,
40564
+ access: "create"
40565
+ },
40284
40566
  "pipelineRunner.runDetailSubtree": {
40285
40567
  capName: "pipeline-runner",
40286
40568
  capScope: "system",
@@ -43061,11 +43343,21 @@ Object.freeze({
43061
43343
  form: "single",
43062
43344
  optional: false
43063
43345
  }],
43346
+ "nativeObjectDetection.getOptions": [{
43347
+ name: "deviceId",
43348
+ form: "single",
43349
+ optional: false
43350
+ }],
43064
43351
  "nativeObjectDetection.setEnabled": [{
43065
43352
  name: "deviceId",
43066
43353
  form: "single",
43067
43354
  optional: false
43068
43355
  }],
43356
+ "nativeObjectDetection.setSettings": [{
43357
+ name: "deviceId",
43358
+ form: "single",
43359
+ optional: false
43360
+ }],
43069
43361
  "navigation.getFeatures": [{
43070
43362
  name: "deviceId",
43071
43363
  form: "single",
@@ -43415,6 +43707,11 @@ Object.freeze({
43415
43707
  form: "single",
43416
43708
  optional: false
43417
43709
  }],
43710
+ "pipelineAnalytics.readLongTermSeries": [{
43711
+ name: "deviceId",
43712
+ form: "single",
43713
+ optional: false
43714
+ }],
43418
43715
  "pipelineAnalytics.rebuildObjectEmbeddings": [{
43419
43716
  name: "deviceId",
43420
43717
  form: "single",
@@ -43605,6 +43902,11 @@ Object.freeze({
43605
43902
  form: "single",
43606
43903
  optional: false
43607
43904
  }],
43905
+ "pipelineRunner.requestOccupancyBurst": [{
43906
+ name: "deviceId",
43907
+ form: "single",
43908
+ optional: false
43909
+ }],
43608
43910
  "pipelineRunner.runDetailSubtree": [{
43609
43911
  name: "deviceId",
43610
43912
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-tuya",
3
- "version": "0.2.102",
3
+ "version": "0.2.103",
4
4
  "description": "Tuya / Smart Life device-provider addon for CamStack — account-onboarded (Tuya IoT cloud fetch of device localKeys) + LOCAL DP control via the @apocaliss92/nodetuya encrypted-LAN client, exposing switch / water-heater-family kettle entities",
5
5
  "keywords": [
6
6
  "camstack",
@@ -69,7 +69,7 @@
69
69
  "dev": "vite build --watch",
70
70
  "typecheck": "tsc --noEmit",
71
71
  "test": "vitest run",
72
- "publish": "npm publish --access public"
72
+ "publish:npm": "npm publish --access public"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@apocaliss92/nodetuya": "file:./vendor/apocaliss92-nodetuya-0.2.1.tgz",