@camstack/addon-provider-wyze 0.2.35 → 0.2.36

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 +495 -59
  2. package/dist/addon.mjs +495 -59
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -7558,6 +7558,66 @@ var OpsLogQueryInputSchema = object({
7558
7558
  /** Max rows returned, newest-first. */
7559
7559
  limit: number().int().min(1).max(1e3).optional()
7560
7560
  });
7561
+ var LabelDefinitionSchema = object({
7562
+ id: string(),
7563
+ name: string(),
7564
+ category: string().optional(),
7565
+ description: string().optional(),
7566
+ icon: string().optional()
7567
+ });
7568
+ /** Detection-macro targets a catalog `classMap` may resolve to. */
7569
+ var CLASS_MAP_MACRO_TARGETS = [
7570
+ "person",
7571
+ "vehicle",
7572
+ "animal",
7573
+ "package"
7574
+ ];
7575
+ /**
7576
+ * Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
7577
+ * un operatore può selezionare.
7578
+ *
7579
+ * Sono le tre offerte dallo step `object-detection`
7580
+ * (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
7581
+ * `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
7582
+ * `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
7583
+ * `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
7584
+ * stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
7585
+ * (suitcase/backpack/handbag) lasciando spento il detector dedicato.
7586
+ *
7587
+ * UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
7588
+ * dello step e una seconda volta come union `FirstLevelMacro`
7589
+ * (`types/detection.ts`); una terza copia per il trigger di registrazione
7590
+ * (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
7591
+ * successiva.
7592
+ */
7593
+ var FIRST_LEVEL_MACRO_CLASSES = [
7594
+ "person",
7595
+ "vehicle",
7596
+ "animal"
7597
+ ];
7598
+ /**
7599
+ * Wire schema for a per-model CATALOG classMap override
7600
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
7601
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
7602
+ * detection pipeline executor actually routes.
7603
+ *
7604
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
7605
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
7606
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
7607
+ * enum) — the two used to share the name `ClassMapDefinition`/
7608
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
7609
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
7610
+ * are not: it is two different concepts colliding on a name. Keep this type
7611
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
7612
+ * would either narrow every `ClassMapDefinition` consumer to the four
7613
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
7614
+ * schema exists for (see the "rejects a classMap whose target is not a
7615
+ * detection macro" test in `model-catalog-schema.test.ts`).
7616
+ */
7617
+ var DetectionCatalogClassMapSchema = object({
7618
+ mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
7619
+ preserveOriginal: boolean()
7620
+ });
7561
7621
  /**
7562
7622
  * Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
7563
7623
  * Named `RecordingWeekday` to avoid collision with the string-union
@@ -7580,10 +7640,55 @@ var RecordingStorageModeSchema = _enum([
7580
7640
  "events",
7581
7641
  "continuous"
7582
7642
  ]);
7643
+ /**
7644
+ * Le macro classi che possono aprire una finestra di registrazione — le stesse
7645
+ * tre offerte dallo step `object-detection`, da UNA lista
7646
+ * ({@link FIRST_LEVEL_MACRO_CLASSES}).
7647
+ */
7648
+ var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
7649
+ /**
7650
+ * True quando `values` non ripete un elemento.
7651
+ *
7652
+ * Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
7653
+ * diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
7654
+ * conterebbe due volte le sue finestre in `segmentMissedByMs`.
7655
+ */
7656
+ var noDuplicates = (values) => new Set(values).size === values.length;
7583
7657
  /** Which detectors trigger an `events`-mode band. */
7584
7658
  var RecordingTriggersSchema = object({
7585
7659
  motion: boolean().optional(),
7586
- audioThresholdDbfs: number().optional()
7660
+ audioThresholdDbfs: number().optional(),
7661
+ /**
7662
+ * Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
7663
+ * non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
7664
+ * object acceso, nessuna classe" è la stessa forma "abilitata e non registra
7665
+ * nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
7666
+ *
7667
+ * Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
7668
+ * quelle che hanno attraversato `enabledMacroClasses`, i
7669
+ * `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
7670
+ * (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
7671
+ * finestre — vedi `recorder/object-trigger.ts`.
7672
+ */
7673
+ objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
7674
+ /**
7675
+ * I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
7676
+ * non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
7677
+ * `objectClasses`.
7678
+ *
7679
+ * Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
7680
+ * percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
7681
+ * non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
7682
+ * si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
7683
+ * device (D12) — mai un elenco globale di cap.
7684
+ *
7685
+ * Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
7686
+ * `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
7687
+ * la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
7688
+ * il livello: un contatto trovato già aperto al riavvio del runner non fa
7689
+ * registrare.
7690
+ */
7691
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
7587
7692
  });
7588
7693
  /**
7589
7694
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -8035,41 +8140,6 @@ var DecoderSessionConfigSchema = object({
8035
8140
  */
8036
8141
  debug: boolean().optional()
8037
8142
  });
8038
- var LabelDefinitionSchema = object({
8039
- id: string(),
8040
- name: string(),
8041
- category: string().optional(),
8042
- description: string().optional(),
8043
- icon: string().optional()
8044
- });
8045
- /**
8046
- * Wire schema for a per-model CATALOG classMap override
8047
- * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
8048
- * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
8049
- * detection pipeline executor actually routes.
8050
- *
8051
- * This is deliberately a DIFFERENT, narrower shape than the general-purpose
8052
- * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
8053
- * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
8054
- * enum) — the two used to share the name `ClassMapDefinition`/
8055
- * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
8056
- * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
8057
- * are not: it is two different concepts colliding on a name. Keep this type
8058
- * under its own name rather than reusing `ClassMapDefinition` — reusing it
8059
- * would either narrow every `ClassMapDefinition` consumer to the four
8060
- * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
8061
- * schema exists for (see the "rejects a classMap whose target is not a
8062
- * detection macro" test in `model-catalog-schema.test.ts`).
8063
- */
8064
- var DetectionCatalogClassMapSchema = object({
8065
- mapping: record(string(), _enum([
8066
- "person",
8067
- "vehicle",
8068
- "animal",
8069
- "package"
8070
- ])),
8071
- preserveOriginal: boolean()
8072
- });
8073
8143
  var MODEL_FORMATS = [
8074
8144
  "onnx",
8075
8145
  "coreml",
@@ -21306,7 +21376,7 @@ var lifecycleJobSchema = object({
21306
21376
  * `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
21307
21377
  * as every other cap.
21308
21378
  */
21309
- var LogLevelSchema$1 = _enum([
21379
+ var LogLevelSchema$2 = _enum([
21310
21380
  "debug",
21311
21381
  "info",
21312
21382
  "warn",
@@ -21513,7 +21583,7 @@ var CustomActionInputSchema = object({
21513
21583
  method(_void(), array(AddonListItemSchema).readonly()), method(object({
21514
21584
  addonId: string(),
21515
21585
  limit: number().min(1).max(500).default(100),
21516
- level: LogLevelSchema$1.optional()
21586
+ level: LogLevelSchema$2.optional()
21517
21587
  }), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
21518
21588
  packageName: string(),
21519
21589
  version: string().optional()
@@ -21611,7 +21681,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
21611
21681
  auth: "admin"
21612
21682
  }), method(object({
21613
21683
  addonId: string(),
21614
- level: LogLevelSchema$1.optional()
21684
+ level: LogLevelSchema$2.optional()
21615
21685
  }), LogStreamEntrySchema, { kind: "subscription" });
21616
21686
  /**
21617
21687
  * Multi-metric air-quality slice. Covers CO₂, total VOCs, particulate
@@ -23343,6 +23413,35 @@ var FaceFilterEnum = _enum([
23343
23413
  "identified",
23344
23414
  "all"
23345
23415
  ]);
23416
+ /**
23417
+ * What a `listRecentFaces` page is ORDERED BY.
23418
+ *
23419
+ * - `timestamp` — when the face was seen. The historical (and default) order.
23420
+ * - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
23421
+ * cosine of the face's SUGGESTED identity. This is the "review by certainty"
23422
+ * order: it puts the suggestions an operator can confirm with one tap at the
23423
+ * top, and it is the reason this enum exists — a client that ranked a capped
23424
+ * page client-side was ranking the newest N, never the most certain N.
23425
+ *
23426
+ * A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
23427
+ * auto-assigned face, or a face below the suggestion band) has no certainty to
23428
+ * compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
23429
+ * — flipping the direction reorders the rows that HAVE a certainty and never
23430
+ * floods the page with the ones that do not. `addon-post-analysis`'s
23431
+ * `store/face-sort.ts` is the single implementation, tiebreaks newest-first
23432
+ * then by faceId, and is what makes this a total order instead of the
23433
+ * backend's NULL-collation accident.
23434
+ */
23435
+ var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
23436
+ var FaceSortDirectionEnum = _enum(["asc", "desc"]);
23437
+ /** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
23438
+ * never leaves the server. */
23439
+ var FaceClusterSchema = object({
23440
+ faceIds: array(string()).readonly(),
23441
+ representativeFaceId: string(),
23442
+ size: number().int(),
23443
+ cohesion: number()
23444
+ });
23346
23445
  var MediaFileLiteSchema$1 = object({
23347
23446
  key: string(),
23348
23447
  kind: string(),
@@ -23389,24 +23488,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
23389
23488
  kind: "mutation",
23390
23489
  auth: "admin"
23391
23490
  }), method(object({
23392
- /** Restrict to one camera. Absent keeps the cluster-wide gallery view. */
23491
+ /**
23492
+ * Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
23493
+ *
23494
+ * The legacy single-camera form, kept verbatim for every caller that
23495
+ * already sends it. A caller that wants a SET sends {@link deviceIds}
23496
+ * instead — never both: `deviceIds` is the authority whenever it is
23497
+ * present, and this field is then ignored rather than unioned, so
23498
+ * there is exactly one answer to "which cameras did I ask for".
23499
+ */
23393
23500
  deviceId: number().int().optional(),
23501
+ /**
23502
+ * Restrict to a SET of cameras — the review UI's camera filter, which
23503
+ * until now had to fetch the cluster-wide page and drop rows in the
23504
+ * client (so the `limit` it asked for was spent on cameras it was
23505
+ * about to discard).
23506
+ *
23507
+ * An **empty array reads NOTHING** — `[]` is an empty page, never
23508
+ * "every camera". A request for no devices is a request, not an
23509
+ * omission; same contract as `deviceManager.listFleet` and
23510
+ * `pipelineAnalytics.listRecentTracks`.
23511
+ *
23512
+ * Absent (`undefined`) is the omission, and keeps the cluster-wide view.
23513
+ */
23514
+ deviceIds: array(number().int()).optional(),
23394
23515
  limit: number().int().positive().optional(),
23395
23516
  filter: FaceFilterEnum.optional(),
23396
23517
  /**
23397
- * Inline the base64 crop on every row. Default `true` — the existing
23398
- * behaviour, kept so no caller breaks.
23518
+ * Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
23519
+ * Absent means no lower bound.
23520
+ */
23521
+ since: number().int().optional(),
23522
+ /**
23523
+ * Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
23524
+ * Absent means no upper bound.
23525
+ */
23526
+ until: number().int().optional(),
23527
+ /**
23528
+ * Order the page by time or by suggestion certainty. Default
23529
+ * `'timestamp'` — the historical order, unchanged for every caller
23530
+ * that does not ask.
23399
23531
  *
23400
- * Set `false` once the caller renders {@link FaceInfo.cropUrl}: that
23401
- * drops ~2.87 MiB per 500-row page to a few KiB of metadata and lets
23402
- * the browser cache the images.
23532
+ * See {@link FaceSortFieldEnum} for what a row with no suggestion
23533
+ * does under `'suggestionConfidence'`.
23403
23534
  *
23404
- * **This is an INPUT field, so it does not reach the addon until the
23405
- * next train.** The hub router validates cap inputs against its own
23406
- * compiled Zod, which strips a key it does not know — verified today
23407
- * on the OUTPUT side, where an additive field DOES arrive immediately
23408
- * (`Track.hasFace`). Until the train ships, sending `false` is
23409
- * harmless and simply keeps the crops inline.
23535
+ * Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
23536
+ * index and stops reading as soon as `limit` rows have PASSED the
23537
+ * filter. `'suggestionConfidence'` cannot stop early — the most
23538
+ * certain row may be the oldest — so it walks the window. Narrow it
23539
+ * with {@link since} / {@link until}.
23540
+ */
23541
+ sortBy: FaceSortFieldEnum.optional(),
23542
+ /** Sort direction for {@link sortBy}. Default `'desc'`. */
23543
+ sortDirection: FaceSortDirectionEnum.optional(),
23544
+ /**
23545
+ * Inline the base64 crop on every row.
23546
+ *
23547
+ * Default `false` since the 2026-08-25 inversion — see
23548
+ * `include-crops-default.ts`, which is the ONE place that resolves
23549
+ * this for every gallery, and which records why the inline shape had
23550
+ * to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
23551
+ * The doc here used to still say `true`; it was wrong, and a leftover
23552
+ * that describes the old design reads as permission to rely on it.
23553
+ *
23554
+ * Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
23555
+ * which the browser fetches off the `event-media` plane in parallel,
23556
+ * cached and ETagged.
23410
23557
  */
23411
23558
  includeCrops: boolean().optional()
23412
23559
  }).optional(), array(FaceInfoSchema).readonly()), method(object({
@@ -23442,13 +23589,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
23442
23589
  }), method(object({
23443
23590
  threshold: number().min(0).max(1).optional(),
23444
23591
  minClusterSize: number().int().min(2).optional(),
23445
- limit: number().int().positive().optional()
23446
- }).optional(), array(object({
23447
- faceIds: array(string()).readonly(),
23448
- representativeFaceId: string(),
23449
- size: number().int(),
23450
- cohesion: number()
23451
- })).readonly());
23592
+ /**
23593
+ * Cap on the number of CLUSTERS returned. Renamed from `limit`,
23594
+ * which read as though it bounded the work — it never did.
23595
+ *
23596
+ * Wins over {@link limit} when both are sent.
23597
+ */
23598
+ maxClusters: number().int().positive().optional(),
23599
+ /**
23600
+ * @deprecated Ambiguous name for {@link maxClusters} — it cuts the
23601
+ * RESULT, not the scan. Kept so existing callers keep working; send
23602
+ * `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
23603
+ */
23604
+ limit: number().int().positive().optional(),
23605
+ /**
23606
+ * Cap on the number of unassigned faces READ AND CLUSTERED — the
23607
+ * POOL, not the result.
23608
+ *
23609
+ * This is the knob {@link maxClusters} was mistaken for. Clustering
23610
+ * used to read every unassigned face on the hub no matter what the
23611
+ * caller asked for, because the only bound cut the finished clusters
23612
+ * afterwards; a UI showing a window of 100 paid for a scan of the
23613
+ * whole corpus, on an addon whose disk is under contention.
23614
+ *
23615
+ * The pool is the NEWEST matching faces first — the same order the
23616
+ * gallery shows — so a bound here shortens the horizon, it does not
23617
+ * sample it randomly.
23618
+ *
23619
+ * Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
23620
+ * so the live corpus — 372 face rows — is unaffected while the
23621
+ * unbounded scan can never come back as the table grows.
23622
+ */
23623
+ maxFacesScanned: number().int().positive().optional()
23624
+ }).optional(), array(FaceClusterSchema).readonly());
23452
23625
  /**
23453
23626
  * Fan-control cap. Models HA `fan.*` entity-specific surfaces:
23454
23627
  * speed percentage, preset modes, ceiling-fan direction, and
@@ -28390,6 +28563,211 @@ var SetSiteLocationInputSchema = object({
28390
28563
  latitude: number().min(-90).max(90),
28391
28564
  longitude: number().min(-180).max(180)
28392
28565
  }).nullable();
28566
+ /**
28567
+ * One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
28568
+ * census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
28569
+ * `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
28570
+ * already prints - never a token, never an `Authorization` header.
28571
+ */
28572
+ var RequestCensusGroupSchema = object({
28573
+ procedure: string(),
28574
+ userAgent: string(),
28575
+ ip: string(),
28576
+ principal: string(),
28577
+ calls: number(),
28578
+ perMin: number()
28579
+ });
28580
+ /**
28581
+ * A procedure's TOTAL over the window, across every caller.
28582
+ *
28583
+ * This block, not the group list, is what answers "did these calls arrive over
28584
+ * HTTP at all". A total far BELOW what a store-side census counted over the
28585
+ * same window excludes the HTTP plane, which is a result, not a failure.
28586
+ */
28587
+ var RequestCensusProcedureSchema = object({
28588
+ procedure: string(),
28589
+ calls: number(),
28590
+ perMin: number()
28591
+ });
28592
+ /**
28593
+ * The census as an operator sees it.
28594
+ *
28595
+ * `persisted` is the honest answer to "will this survive the restart I am
28596
+ * about to do": the arm deadline is written to `system-settings` so a window
28597
+ * armed now can measure the NEXT boot, and a write that failed must not look
28598
+ * like one that succeeded.
28599
+ */
28600
+ var RequestCensusStatusSchema = object({
28601
+ armed: boolean(),
28602
+ /** How long the current - or just-closed - window collected, in ms. */
28603
+ elapsedMs: number(),
28604
+ /** The window actually armed, after the server clamped the request. */
28605
+ windowMs: number(),
28606
+ /** Epoch ms the window closes at. 0 when disarmed. */
28607
+ armedUntilMs: number(),
28608
+ httpRequests: number(),
28609
+ batchedRequests: number(),
28610
+ /**
28611
+ * Procedure invocations. Higher than `httpRequests` whenever tRPC batching
28612
+ * is in play (`?batch=1` carries several procedures in one request); this is
28613
+ * the number comparable with a store-side call count.
28614
+ */
28615
+ procedureCalls: number(),
28616
+ /**
28617
+ * tRPC WebSocket connections opened during the window. NOT calls - the WS
28618
+ * transport resolves one context per connection - but the number that says
28619
+ * whether a plane this census cannot see was busy while HTTP was quiet.
28620
+ */
28621
+ wsConnections: number(),
28622
+ distinctGroups: number(),
28623
+ /** Calls counted in the totals whose group attribution was shed at the
28624
+ * cardinality bound. */
28625
+ unattributedCalls: number(),
28626
+ procedures: array(RequestCensusProcedureSchema).readonly(),
28627
+ groups: array(RequestCensusGroupSchema).readonly()
28628
+ }).extend({ persisted: boolean() });
28629
+ /** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
28630
+ var LogLevelSchema$1 = _enum([
28631
+ "debug",
28632
+ "info",
28633
+ "warn",
28634
+ "error"
28635
+ ]);
28636
+ /**
28637
+ * The diagnostics that can be ARMED for a window. Exactly one today.
28638
+ *
28639
+ * A diagnostic is anything whose cost is only worth paying while a question is
28640
+ * open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
28641
+ */
28642
+ var DiagnosticIdSchema = _enum(["request-census"]);
28643
+ /**
28644
+ * The layers of the level hierarchy, general → specific. The most specific
28645
+ * layer that carries an explicit value wins.
28646
+ *
28647
+ * `component` is DECLARED and not yet resolvable: the per-component channels
28648
+ * are a later slice of the same plan, and a `levelSource` enum that has to
28649
+ * grow later would force every consumer of this document to change with it.
28650
+ * Nothing returns `component` today.
28651
+ */
28652
+ var LoggingScopeKindSchema = _enum([
28653
+ "cluster",
28654
+ "node",
28655
+ "component"
28656
+ ]);
28657
+ /** Where an effective level came from. `default` = nothing is set anywhere. */
28658
+ var LoggingLevelSourceSchema = _enum([
28659
+ "default",
28660
+ "cluster",
28661
+ "node",
28662
+ "component"
28663
+ ]);
28664
+ /**
28665
+ * One layer of the hierarchy as it actually STANDS.
28666
+ *
28667
+ * `level: null` is the whole reason this array is returned: it is the
28668
+ * difference between "this node is at `info` because I decided it" and
28669
+ * "...because it inherits". An operator who clears an override believing they
28670
+ * are clearing an inherited value has been handed the same defect as the two
28671
+ * contradicting knobs this document exists to remove, moved one floor up.
28672
+ */
28673
+ var LoggingLevelLayerSchema = object({
28674
+ scope: LoggingScopeKindSchema,
28675
+ /** The node this layer speaks for; `null` on the cluster layer. */
28676
+ nodeId: string().nullable(),
28677
+ /** Explicitly set here, or `null` when this layer inherits. */
28678
+ level: LogLevelSchema$1.nullable()
28679
+ });
28680
+ /** What a line is judged against, and WHICH layer decided it. */
28681
+ var LoggingEffectiveSchema = object({
28682
+ level: LogLevelSchema$1,
28683
+ levelSource: LoggingLevelSourceSchema
28684
+ });
28685
+ /** Every layer, general → specific. Never collapsed into the effective value. */
28686
+ var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
28687
+ /**
28688
+ * An armed diagnostic, with its DEADLINE.
28689
+ *
28690
+ * The shape of ADR-0244: what is stored is a deadline and never a flag, so a
28691
+ * diagnostic somebody forgot expires by itself, and a boot-window measurement
28692
+ * survives the restart it exists to measure. `remainingMs` is 0 whenever
28693
+ * `armed` is false — a window is never reported as slightly expired.
28694
+ */
28695
+ var DiagnosticWindowSchema = object({
28696
+ id: DiagnosticIdSchema,
28697
+ armed: boolean(),
28698
+ /** Epoch ms the window closes at. 0 when disarmed. */
28699
+ armedUntilMs: number(),
28700
+ /** Ms left before it expires on its own. 0 when disarmed. */
28701
+ remainingMs: number(),
28702
+ /** Whether the stored deadline is the one the live diagnostic is running —
28703
+ * i.e. whether this window would survive a restart. */
28704
+ persisted: boolean()
28705
+ });
28706
+ /**
28707
+ * `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
28708
+ * server — there is no maximum here on purpose: a bound repeated in a schema
28709
+ * is a second knob that disagrees with the first the day one of them moves.
28710
+ */
28711
+ var DiagnosticWindowPatchSchema = object({
28712
+ id: DiagnosticIdSchema,
28713
+ armMs: number().int().min(0),
28714
+ /** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
28715
+ reportEveryMs: number().int().positive().optional()
28716
+ });
28717
+ /**
28718
+ * A PATCH, and patches MERGE.
28719
+ *
28720
+ * A field absent from the patch is left exactly as it was — arming a
28721
+ * diagnostic never resets a level, and setting a level never disarms a window.
28722
+ * The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
28723
+ * `setAll` already merges, and rebuilding the object is how an absent field
28724
+ * turns into an erased one.
28725
+ */
28726
+ var LoggingSettingsPatchSchema = object({
28727
+ /**
28728
+ * Absent leaves the level untouched. `null` CLEARS the explicit value at the
28729
+ * addressed scope so it inherits again. A value sets it.
28730
+ */
28731
+ level: LogLevelSchema$1.nullable().optional(),
28732
+ /**
28733
+ * Only the diagnostics NAMED here change. An armed window that is not listed
28734
+ * keeps running — a patch is never a full replacement.
28735
+ */
28736
+ diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
28737
+ });
28738
+ /**
28739
+ * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
28740
+ *
28741
+ * Deliberately NOT called `nodeId`: that key is reserved on every cap method
28742
+ * input — the generated router strips it and uses it to resolve the PROVIDER
28743
+ * on that node (`resolveProvider(cap, nodeId, …)`). A document about
28744
+ * `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
28745
+ * by an agent that holds no cluster document at all. The hub is the single
28746
+ * authority over the whole hierarchy and answers for every layer, so the
28747
+ * layer selector needs a name the transport does not already own.
28748
+ */
28749
+ var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
28750
+ var SetLoggingSettingsInputSchema = object({
28751
+ scopeNodeId: string().optional(),
28752
+ patch: LoggingSettingsPatchSchema
28753
+ });
28754
+ /**
28755
+ * The whole document, as read and as returned after every write.
28756
+ *
28757
+ * `persisted: false` means the settings store could not be read or written.
28758
+ * The in-memory mirror still governs behaviour and is unchanged by the
28759
+ * failure — a read that fails neither switches a level nor disarms a window
28760
+ * (D49) — but the operator is told that what they are looking at would not
28761
+ * survive a restart.
28762
+ */
28763
+ var LoggingSettingsStateSchema = object({
28764
+ /** The layer this document was read at. `null` = the cluster layer. */
28765
+ scopeNodeId: string().nullable(),
28766
+ effective: LoggingEffectiveSchema,
28767
+ explicit: LoggingExplicitSchema,
28768
+ activeWindows: array(DiagnosticWindowSchema).readonly(),
28769
+ persisted: boolean()
28770
+ });
28393
28771
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
28394
28772
  kind: "mutation",
28395
28773
  auth: "admin"
@@ -28402,6 +28780,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
28402
28780
  }), method(_void(), SiteLocationStatusSchema, {
28403
28781
  kind: "mutation",
28404
28782
  auth: "admin"
28783
+ }), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
28784
+ kind: "mutation",
28785
+ auth: "admin"
28405
28786
  });
28406
28787
  /**
28407
28788
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -35641,6 +36022,18 @@ Object.freeze({
35641
36022
  addonId: null,
35642
36023
  access: "create"
35643
36024
  },
36025
+ "system.getLoggingSettings": {
36026
+ capName: "system",
36027
+ capScope: "system",
36028
+ addonId: null,
36029
+ access: "view"
36030
+ },
36031
+ "system.getRequestCensus": {
36032
+ capName: "system",
36033
+ capScope: "system",
36034
+ addonId: null,
36035
+ access: "view"
36036
+ },
35644
36037
  "system.getRetentionConfig": {
35645
36038
  capName: "system",
35646
36039
  capScope: "system",
@@ -35671,6 +36064,12 @@ Object.freeze({
35671
36064
  addonId: null,
35672
36065
  access: "view"
35673
36066
  },
36067
+ "system.setLoggingSettings": {
36068
+ capName: "system",
36069
+ capScope: "system",
36070
+ addonId: null,
36071
+ access: "create"
36072
+ },
35674
36073
  "system.setRetentionConfig": {
35675
36074
  capName: "system",
35676
36075
  capScope: "system",
@@ -36826,6 +37225,10 @@ Object.freeze({
36826
37225
  name: "deviceId",
36827
37226
  form: "single",
36828
37227
  optional: true
37228
+ }, {
37229
+ name: "deviceIds",
37230
+ form: "array",
37231
+ optional: true
36829
37232
  }],
36830
37233
  "fanControl.setDirection": [{
36831
37234
  name: "deviceId",
@@ -38436,7 +38839,38 @@ object({
38436
38839
  * fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
38437
38840
  * reproduce that.
38438
38841
  */
38439
- tileBudgetMb: number().int().min(0).max(1024)
38842
+ tileBudgetMb: number().int().min(0).max(1024),
38843
+ /**
38844
+ * RAM ceiling per decode worker, in MB, for the SCENE TILES — one
38845
+ * JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
38846
+ * subject tiles, on frames that detected something.
38847
+ *
38848
+ * It exists because a subject tile cannot answer a FULL-FRAME request:
38849
+ * containment is strict by design, so the native `keyFrame`, the detail
38850
+ * plane's `frameJpeg` rung and the display-crop fallback had no rung at all
38851
+ * below the hold. Measured on the live cluster: 23.3% of key-frame captures
38852
+ * missed, 95.7% of them with `worker-lease-gone` — the raster released one
38853
+ * frame-time after delivery, with the request only p50 367 ms behind it.
38854
+ *
38855
+ * Sizing, and why this is a budget and not a duration: a scene tile is
38856
+ * ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
38857
+ * ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
38858
+ * camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
38859
+ * frames, i.e. the store's 30 s TTL binds at the steady state and the budget
38860
+ * binds only through a detection burst, where it still covers well past the
38861
+ * measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
38862
+ * would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
38863
+ * whole shape exists to avoid.
38864
+ *
38865
+ * A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
38866
+ * subject tile, so one shared budget would let a busy camera's key frames
38867
+ * evict the face/plate tiles the recognisers depend on. Two budgets make that
38868
+ * impossible rather than unlikely. `0` DISABLES scene tiles and restores the
38869
+ * pre-existing behaviour, where a late full-frame request had nothing but the
38870
+ * ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
38871
+ * nothing.
38872
+ */
38873
+ sceneBudgetMb: number().int().min(0).max(1024)
38440
38874
  });
38441
38875
  /**
38442
38876
  * The values in force when the operator has set nothing.
@@ -38452,12 +38886,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
38452
38886
  budgetMb: 1024,
38453
38887
  activityMs: 15e3,
38454
38888
  tileBudgetMb: 64,
38889
+ sceneBudgetMb: 48,
38455
38890
  admission: "inferred"
38456
38891
  };
38457
38892
  DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
38458
38893
  DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
38459
38894
  DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
38460
38895
  DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
38896
+ DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
38461
38897
  DEFAULT_NATIVE_LEASE_SETTINGS.admission;
38462
38898
  var MB = 1024 * 1024;
38463
38899
  1024 * MB, 3072 * MB;
package/dist/addon.mjs CHANGED
@@ -7537,6 +7537,66 @@ var OpsLogQueryInputSchema = object({
7537
7537
  /** Max rows returned, newest-first. */
7538
7538
  limit: number().int().min(1).max(1e3).optional()
7539
7539
  });
7540
+ var LabelDefinitionSchema = object({
7541
+ id: string(),
7542
+ name: string(),
7543
+ category: string().optional(),
7544
+ description: string().optional(),
7545
+ icon: string().optional()
7546
+ });
7547
+ /** Detection-macro targets a catalog `classMap` may resolve to. */
7548
+ var CLASS_MAP_MACRO_TARGETS = [
7549
+ "person",
7550
+ "vehicle",
7551
+ "animal",
7552
+ "package"
7553
+ ];
7554
+ /**
7555
+ * Le macro classi di PRIMO LIVELLO: quelle che un object detector emette e che
7556
+ * un operatore può selezionare.
7557
+ *
7558
+ * Sono le tre offerte dallo step `object-detection`
7559
+ * (`addon-pipeline/src/detection-pipeline/registry/step-definitions.ts`,
7560
+ * `enabledMacroClasses`). `package` sta in {@link CLASS_MAP_MACRO_TARGETS} e in
7561
+ * `MACRO_LABELS` — è una macro vera — ma NON qui: appartiene allo step
7562
+ * `package-detection`, la cui abilitazione è guidata dalle zone, e offrire la
7563
+ * stessa parola due volte ha già fatto accendere a un operatore il proxy COCO
7564
+ * (suitcase/backpack/handbag) lasciando spento il detector dedicato.
7565
+ *
7566
+ * UNA lista. Prima di oggi le stesse tre erano scritte a mano nell'offerta
7567
+ * dello step e una seconda volta come union `FirstLevelMacro`
7568
+ * (`types/detection.ts`); una terza copia per il trigger di registrazione
7569
+ * (`RecordingTriggers.objectClasses`) avrebbe reso invisibile la divergenza
7570
+ * successiva.
7571
+ */
7572
+ var FIRST_LEVEL_MACRO_CLASSES = [
7573
+ "person",
7574
+ "vehicle",
7575
+ "animal"
7576
+ ];
7577
+ /**
7578
+ * Wire schema for a per-model CATALOG classMap override
7579
+ * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
7580
+ * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
7581
+ * detection pipeline executor actually routes.
7582
+ *
7583
+ * This is deliberately a DIFFERENT, narrower shape than the general-purpose
7584
+ * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
7585
+ * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
7586
+ * enum) — the two used to share the name `ClassMapDefinition`/
7587
+ * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
7588
+ * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
7589
+ * are not: it is two different concepts colliding on a name. Keep this type
7590
+ * under its own name rather than reusing `ClassMapDefinition` — reusing it
7591
+ * would either narrow every `ClassMapDefinition` consumer to the four
7592
+ * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
7593
+ * schema exists for (see the "rejects a classMap whose target is not a
7594
+ * detection macro" test in `model-catalog-schema.test.ts`).
7595
+ */
7596
+ var DetectionCatalogClassMapSchema = object({
7597
+ mapping: record(string(), _enum(CLASS_MAP_MACRO_TARGETS)),
7598
+ preserveOriginal: boolean()
7599
+ });
7540
7600
  /**
7541
7601
  * Numeric day-of-week: 0 = Sunday … 6 = Saturday (matches `Date.getDay`).
7542
7602
  * Named `RecordingWeekday` to avoid collision with the string-union
@@ -7559,10 +7619,55 @@ var RecordingStorageModeSchema = _enum([
7559
7619
  "events",
7560
7620
  "continuous"
7561
7621
  ]);
7622
+ /**
7623
+ * Le macro classi che possono aprire una finestra di registrazione — le stesse
7624
+ * tre offerte dallo step `object-detection`, da UNA lista
7625
+ * ({@link FIRST_LEVEL_MACRO_CLASSES}).
7626
+ */
7627
+ var RecordingObjectTriggerClassSchema = _enum(FIRST_LEVEL_MACRO_CLASSES);
7628
+ /**
7629
+ * True quando `values` non ripete un elemento.
7630
+ *
7631
+ * Un duplicato non è innocuo: ogni voce di `objectClasses` / `sensorDeviceIds`
7632
+ * diventa una SORGENTE in `bandTriggerSources`, e la stessa sorgente due volte
7633
+ * conterebbe due volte le sue finestre in `segmentMissedByMs`.
7634
+ */
7635
+ var noDuplicates = (values) => new Set(values).size === values.length;
7562
7636
  /** Which detectors trigger an `events`-mode band. */
7563
7637
  var RecordingTriggersSchema = object({
7564
7638
  motion: boolean().optional(),
7565
- audioThresholdDbfs: number().optional()
7639
+ audioThresholdDbfs: number().optional(),
7640
+ /**
7641
+ * Le macro classi la cui detection apre una finestra. ASSENTE = la sorgente
7642
+ * non è ascoltata; un array VUOTO è rifiutato, perché "banda events, trigger
7643
+ * object acceso, nessuna classe" è la stessa forma "abilitata e non registra
7644
+ * nulla, per sempre" contro cui è scritto `eventsBandCanEverDemand`.
7645
+ *
7646
+ * Il segnale letto è GIÀ FILTRATO: solo detection `source: 'pipeline'`, cioè
7647
+ * quelle che hanno attraversato `enabledMacroClasses`, i
7648
+ * `minConfidence<Macro>` e il full-frame guard. L'AI a bordo camera
7649
+ * (`source: 'onboard'`) non attraversa nessuno di quei gate e NON apre
7650
+ * finestre — vedi `recorder/object-trigger.ts`.
7651
+ */
7652
+ objectClasses: array(RecordingObjectTriggerClassSchema).min(1).refine(noDuplicates, { message: "objectClasses must not repeat a class" }).optional(),
7653
+ /**
7654
+ * I device LINKED il cui FRONTE ALTO apre una finestra. Assente = la sorgente
7655
+ * non è ascoltata; un array vuoto è rifiutato per la stessa ragione di
7656
+ * `objectClasses`.
7657
+ *
7658
+ * Sono id di device SORGENTE, non camere: la banda li nomina, quindi il
7659
+ * percorso caldo (`DeviceStateChanged`, a ritmo di bus su tutta la flotta)
7660
+ * non fa RPC. L'OFFERTA da cui l'operatore li sceglie è un'altra domanda, e
7661
+ * si risolve con `deviceManager.getLinkedDevices` + `getBindingsBatch` per
7662
+ * device (D12) — mai un elenco globale di cap.
7663
+ *
7664
+ * Cosa vuol dire "alto" dipende dal TIPO di device e non è deciso qui:
7665
+ * `SOURCE_CAP_ACTIVE_FIELD` (`catalogs/sensor-active-state.ts`) è LA tabella,
7666
+ * la stessa che il virtual-doorbell usa dal 2026-08-05. Ed è il FRONTE, non
7667
+ * il livello: un contatto trovato già aperto al riavvio del runner non fa
7668
+ * registrare.
7669
+ */
7670
+ sensorDeviceIds: array(number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
7566
7671
  });
7567
7672
  /**
7568
7673
  * Mode of a single recording band — the recorder per-band vocabulary.
@@ -8014,41 +8119,6 @@ var DecoderSessionConfigSchema = object({
8014
8119
  */
8015
8120
  debug: boolean().optional()
8016
8121
  });
8017
- var LabelDefinitionSchema = object({
8018
- id: string(),
8019
- name: string(),
8020
- category: string().optional(),
8021
- description: string().optional(),
8022
- icon: string().optional()
8023
- });
8024
- /**
8025
- * Wire schema for a per-model CATALOG classMap override
8026
- * (`ModelCatalogEntry.classMap` / `ModelConvertMetadata.classMap`) —
8027
- * restricted to {@link CLASS_MAP_MACRO_TARGETS}, the only macros the
8028
- * detection pipeline executor actually routes.
8029
- *
8030
- * This is deliberately a DIFFERENT, narrower shape than the general-purpose
8031
- * `ClassMapDefinition` interface above (e.g. `IDetectionAddon.getClassMap()`
8032
- * and the audio `YAMNET_TO_MACRO` catalog both use macro targets outside this
8033
- * enum) — the two used to share the name `ClassMapDefinition`/
8034
- * `ClassMapDefinitionSchema`, which made the schema-type-twin guard
8035
- * (`scripts/check-schema-type-twins.ts`) flag them as a duplicated shape. They
8036
- * are not: it is two different concepts colliding on a name. Keep this type
8037
- * under its own name rather than reusing `ClassMapDefinition` — reusing it
8038
- * would either narrow every `ClassMapDefinition` consumer to the four
8039
- * detection macros (breaking `YAMNET_TO_MACRO`) or drop the validation this
8040
- * schema exists for (see the "rejects a classMap whose target is not a
8041
- * detection macro" test in `model-catalog-schema.test.ts`).
8042
- */
8043
- var DetectionCatalogClassMapSchema = object({
8044
- mapping: record(string(), _enum([
8045
- "person",
8046
- "vehicle",
8047
- "animal",
8048
- "package"
8049
- ])),
8050
- preserveOriginal: boolean()
8051
- });
8052
8122
  var MODEL_FORMATS = [
8053
8123
  "onnx",
8054
8124
  "coreml",
@@ -21285,7 +21355,7 @@ var lifecycleJobSchema = object({
21285
21355
  * `useAddonsOnAddonLogs`, etc. flow through the same codegen pipeline
21286
21356
  * as every other cap.
21287
21357
  */
21288
- var LogLevelSchema$1 = _enum([
21358
+ var LogLevelSchema$2 = _enum([
21289
21359
  "debug",
21290
21360
  "info",
21291
21361
  "warn",
@@ -21492,7 +21562,7 @@ var CustomActionInputSchema = object({
21492
21562
  method(_void(), array(AddonListItemSchema).readonly()), method(object({
21493
21563
  addonId: string(),
21494
21564
  limit: number().min(1).max(500).default(100),
21495
- level: LogLevelSchema$1.optional()
21565
+ level: LogLevelSchema$2.optional()
21496
21566
  }), array(LogQueryEntrySchema)), method(_void(), array(InstalledPackageSchema).readonly()), method(object({
21497
21567
  packageName: string(),
21498
21568
  version: string().optional()
@@ -21590,7 +21660,7 @@ method(_void(), array(AddonListItemSchema).readonly()), method(object({
21590
21660
  auth: "admin"
21591
21661
  }), method(object({
21592
21662
  addonId: string(),
21593
- level: LogLevelSchema$1.optional()
21663
+ level: LogLevelSchema$2.optional()
21594
21664
  }), LogStreamEntrySchema, { kind: "subscription" });
21595
21665
  /**
21596
21666
  * Multi-metric air-quality slice. Covers CO₂, total VOCs, particulate
@@ -23322,6 +23392,35 @@ var FaceFilterEnum = _enum([
23322
23392
  "identified",
23323
23393
  "all"
23324
23394
  ]);
23395
+ /**
23396
+ * What a `listRecentFaces` page is ORDERED BY.
23397
+ *
23398
+ * - `timestamp` — when the face was seen. The historical (and default) order.
23399
+ * - `suggestionConfidence` — {@link FaceInfo.suggestedMatchScore}, the peak
23400
+ * cosine of the face's SUGGESTED identity. This is the "review by certainty"
23401
+ * order: it puts the suggestions an operator can confirm with one tap at the
23402
+ * top, and it is the reason this enum exists — a client that ranked a capped
23403
+ * page client-side was ranking the newest N, never the most certain N.
23404
+ *
23405
+ * A row with NO suggestion (`suggestedMatchScore` absent — a legacy row, an
23406
+ * auto-assigned face, or a face below the suggestion band) has no certainty to
23407
+ * compare. Under `suggestionConfidence` it sorts **LAST, in BOTH directions**
23408
+ * — flipping the direction reorders the rows that HAVE a certainty and never
23409
+ * floods the page with the ones that do not. `addon-post-analysis`'s
23410
+ * `store/face-sort.ts` is the single implementation, tiebreaks newest-first
23411
+ * then by faceId, and is what makes this a total order instead of the
23412
+ * backend's NULL-collation accident.
23413
+ */
23414
+ var FaceSortFieldEnum = _enum(["timestamp", "suggestionConfidence"]);
23415
+ var FaceSortDirectionEnum = _enum(["asc", "desc"]);
23416
+ /** One suggested group of look-alike UNASSIGNED faces. Ids only — an embedding
23417
+ * never leaves the server. */
23418
+ var FaceClusterSchema = object({
23419
+ faceIds: array(string()).readonly(),
23420
+ representativeFaceId: string(),
23421
+ size: number().int(),
23422
+ cohesion: number()
23423
+ });
23325
23424
  var MediaFileLiteSchema$1 = object({
23326
23425
  key: string(),
23327
23426
  kind: string(),
@@ -23368,24 +23467,72 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
23368
23467
  kind: "mutation",
23369
23468
  auth: "admin"
23370
23469
  }), method(object({
23371
- /** Restrict to one camera. Absent keeps the cluster-wide gallery view. */
23470
+ /**
23471
+ * Restrict to ONE camera. Absent keeps the cluster-wide gallery view.
23472
+ *
23473
+ * The legacy single-camera form, kept verbatim for every caller that
23474
+ * already sends it. A caller that wants a SET sends {@link deviceIds}
23475
+ * instead — never both: `deviceIds` is the authority whenever it is
23476
+ * present, and this field is then ignored rather than unioned, so
23477
+ * there is exactly one answer to "which cameras did I ask for".
23478
+ */
23372
23479
  deviceId: number().int().optional(),
23480
+ /**
23481
+ * Restrict to a SET of cameras — the review UI's camera filter, which
23482
+ * until now had to fetch the cluster-wide page and drop rows in the
23483
+ * client (so the `limit` it asked for was spent on cameras it was
23484
+ * about to discard).
23485
+ *
23486
+ * An **empty array reads NOTHING** — `[]` is an empty page, never
23487
+ * "every camera". A request for no devices is a request, not an
23488
+ * omission; same contract as `deviceManager.listFleet` and
23489
+ * `pipelineAnalytics.listRecentTracks`.
23490
+ *
23491
+ * Absent (`undefined`) is the omission, and keeps the cluster-wide view.
23492
+ */
23493
+ deviceIds: array(number().int()).optional(),
23373
23494
  limit: number().int().positive().optional(),
23374
23495
  filter: FaceFilterEnum.optional(),
23375
23496
  /**
23376
- * Inline the base64 crop on every row. Default `true` — the existing
23377
- * behaviour, kept so no caller breaks.
23497
+ * Window lower bound on {@link FaceInfo.timestamp}, INCLUSIVE.
23498
+ * Absent means no lower bound.
23499
+ */
23500
+ since: number().int().optional(),
23501
+ /**
23502
+ * Window upper bound on {@link FaceInfo.timestamp}, INCLUSIVE.
23503
+ * Absent means no upper bound.
23504
+ */
23505
+ until: number().int().optional(),
23506
+ /**
23507
+ * Order the page by time or by suggestion certainty. Default
23508
+ * `'timestamp'` — the historical order, unchanged for every caller
23509
+ * that does not ask.
23378
23510
  *
23379
- * Set `false` once the caller renders {@link FaceInfo.cropUrl}: that
23380
- * drops ~2.87 MiB per 500-row page to a few KiB of metadata and lets
23381
- * the browser cache the images.
23511
+ * See {@link FaceSortFieldEnum} for what a row with no suggestion
23512
+ * does under `'suggestionConfidence'`.
23382
23513
  *
23383
- * **This is an INPUT field, so it does not reach the addon until the
23384
- * next train.** The hub router validates cap inputs against its own
23385
- * compiled Zod, which strips a key it does not know — verified today
23386
- * on the OUTPUT side, where an additive field DOES arrive immediately
23387
- * (`Track.hasFace`). Until the train ships, sending `false` is
23388
- * harmless and simply keeps the crops inline.
23514
+ * Cost note: `'timestamp'` is served by the `(deviceId, timestamp)`
23515
+ * index and stops reading as soon as `limit` rows have PASSED the
23516
+ * filter. `'suggestionConfidence'` cannot stop early — the most
23517
+ * certain row may be the oldest — so it walks the window. Narrow it
23518
+ * with {@link since} / {@link until}.
23519
+ */
23520
+ sortBy: FaceSortFieldEnum.optional(),
23521
+ /** Sort direction for {@link sortBy}. Default `'desc'`. */
23522
+ sortDirection: FaceSortDirectionEnum.optional(),
23523
+ /**
23524
+ * Inline the base64 crop on every row.
23525
+ *
23526
+ * Default `false` since the 2026-08-25 inversion — see
23527
+ * `include-crops-default.ts`, which is the ONE place that resolves
23528
+ * this for every gallery, and which records why the inline shape had
23529
+ * to become the one you ASK for (60 457 ms → UDS timeout at 500 rows).
23530
+ * The doc here used to still say `true`; it was wrong, and a leftover
23531
+ * that describes the old design reads as permission to rely on it.
23532
+ *
23533
+ * Nothing loses its image: the row carries {@link FaceInfo.cropUrl},
23534
+ * which the browser fetches off the `event-media` plane in parallel,
23535
+ * cached and ETagged.
23389
23536
  */
23390
23537
  includeCrops: boolean().optional()
23391
23538
  }).optional(), array(FaceInfoSchema).readonly()), method(object({
@@ -23421,13 +23568,39 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
23421
23568
  }), method(object({
23422
23569
  threshold: number().min(0).max(1).optional(),
23423
23570
  minClusterSize: number().int().min(2).optional(),
23424
- limit: number().int().positive().optional()
23425
- }).optional(), array(object({
23426
- faceIds: array(string()).readonly(),
23427
- representativeFaceId: string(),
23428
- size: number().int(),
23429
- cohesion: number()
23430
- })).readonly());
23571
+ /**
23572
+ * Cap on the number of CLUSTERS returned. Renamed from `limit`,
23573
+ * which read as though it bounded the work — it never did.
23574
+ *
23575
+ * Wins over {@link limit} when both are sent.
23576
+ */
23577
+ maxClusters: number().int().positive().optional(),
23578
+ /**
23579
+ * @deprecated Ambiguous name for {@link maxClusters} — it cuts the
23580
+ * RESULT, not the scan. Kept so existing callers keep working; send
23581
+ * `maxClusters` (and, if you care about cost, {@link maxFacesScanned}).
23582
+ */
23583
+ limit: number().int().positive().optional(),
23584
+ /**
23585
+ * Cap on the number of unassigned faces READ AND CLUSTERED — the
23586
+ * POOL, not the result.
23587
+ *
23588
+ * This is the knob {@link maxClusters} was mistaken for. Clustering
23589
+ * used to read every unassigned face on the hub no matter what the
23590
+ * caller asked for, because the only bound cut the finished clusters
23591
+ * afterwards; a UI showing a window of 100 paid for a scan of the
23592
+ * whole corpus, on an addon whose disk is under contention.
23593
+ *
23594
+ * The pool is the NEWEST matching faces first — the same order the
23595
+ * gallery shows — so a bound here shortens the horizon, it does not
23596
+ * sample it randomly.
23597
+ *
23598
+ * Default: 1 000 (`FACE_SWEEP_PAGE`, exactly one store page). Chosen
23599
+ * so the live corpus — 372 face rows — is unaffected while the
23600
+ * unbounded scan can never come back as the table grows.
23601
+ */
23602
+ maxFacesScanned: number().int().positive().optional()
23603
+ }).optional(), array(FaceClusterSchema).readonly());
23431
23604
  /**
23432
23605
  * Fan-control cap. Models HA `fan.*` entity-specific surfaces:
23433
23606
  * speed percentage, preset modes, ceiling-fan direction, and
@@ -28369,6 +28542,211 @@ var SetSiteLocationInputSchema = object({
28369
28542
  latitude: number().min(-90).max(90),
28370
28543
  longitude: number().min(-180).max(180)
28371
28544
  }).nullable();
28545
+ /**
28546
+ * One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
28547
+ * census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
28548
+ * `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
28549
+ * already prints - never a token, never an `Authorization` header.
28550
+ */
28551
+ var RequestCensusGroupSchema = object({
28552
+ procedure: string(),
28553
+ userAgent: string(),
28554
+ ip: string(),
28555
+ principal: string(),
28556
+ calls: number(),
28557
+ perMin: number()
28558
+ });
28559
+ /**
28560
+ * A procedure's TOTAL over the window, across every caller.
28561
+ *
28562
+ * This block, not the group list, is what answers "did these calls arrive over
28563
+ * HTTP at all". A total far BELOW what a store-side census counted over the
28564
+ * same window excludes the HTTP plane, which is a result, not a failure.
28565
+ */
28566
+ var RequestCensusProcedureSchema = object({
28567
+ procedure: string(),
28568
+ calls: number(),
28569
+ perMin: number()
28570
+ });
28571
+ /**
28572
+ * The census as an operator sees it.
28573
+ *
28574
+ * `persisted` is the honest answer to "will this survive the restart I am
28575
+ * about to do": the arm deadline is written to `system-settings` so a window
28576
+ * armed now can measure the NEXT boot, and a write that failed must not look
28577
+ * like one that succeeded.
28578
+ */
28579
+ var RequestCensusStatusSchema = object({
28580
+ armed: boolean(),
28581
+ /** How long the current - or just-closed - window collected, in ms. */
28582
+ elapsedMs: number(),
28583
+ /** The window actually armed, after the server clamped the request. */
28584
+ windowMs: number(),
28585
+ /** Epoch ms the window closes at. 0 when disarmed. */
28586
+ armedUntilMs: number(),
28587
+ httpRequests: number(),
28588
+ batchedRequests: number(),
28589
+ /**
28590
+ * Procedure invocations. Higher than `httpRequests` whenever tRPC batching
28591
+ * is in play (`?batch=1` carries several procedures in one request); this is
28592
+ * the number comparable with a store-side call count.
28593
+ */
28594
+ procedureCalls: number(),
28595
+ /**
28596
+ * tRPC WebSocket connections opened during the window. NOT calls - the WS
28597
+ * transport resolves one context per connection - but the number that says
28598
+ * whether a plane this census cannot see was busy while HTTP was quiet.
28599
+ */
28600
+ wsConnections: number(),
28601
+ distinctGroups: number(),
28602
+ /** Calls counted in the totals whose group attribution was shed at the
28603
+ * cardinality bound. */
28604
+ unattributedCalls: number(),
28605
+ procedures: array(RequestCensusProcedureSchema).readonly(),
28606
+ groups: array(RequestCensusGroupSchema).readonly()
28607
+ }).extend({ persisted: boolean() });
28608
+ /** Severity vocabulary. Mirrors `LogLevel` in `interfaces/logging.ts`. */
28609
+ var LogLevelSchema$1 = _enum([
28610
+ "debug",
28611
+ "info",
28612
+ "warn",
28613
+ "error"
28614
+ ]);
28615
+ /**
28616
+ * The diagnostics that can be ARMED for a window. Exactly one today.
28617
+ *
28618
+ * A diagnostic is anything whose cost is only worth paying while a question is
28619
+ * open. It never persists as a boolean: see {@link DiagnosticWindowSchema}.
28620
+ */
28621
+ var DiagnosticIdSchema = _enum(["request-census"]);
28622
+ /**
28623
+ * The layers of the level hierarchy, general → specific. The most specific
28624
+ * layer that carries an explicit value wins.
28625
+ *
28626
+ * `component` is DECLARED and not yet resolvable: the per-component channels
28627
+ * are a later slice of the same plan, and a `levelSource` enum that has to
28628
+ * grow later would force every consumer of this document to change with it.
28629
+ * Nothing returns `component` today.
28630
+ */
28631
+ var LoggingScopeKindSchema = _enum([
28632
+ "cluster",
28633
+ "node",
28634
+ "component"
28635
+ ]);
28636
+ /** Where an effective level came from. `default` = nothing is set anywhere. */
28637
+ var LoggingLevelSourceSchema = _enum([
28638
+ "default",
28639
+ "cluster",
28640
+ "node",
28641
+ "component"
28642
+ ]);
28643
+ /**
28644
+ * One layer of the hierarchy as it actually STANDS.
28645
+ *
28646
+ * `level: null` is the whole reason this array is returned: it is the
28647
+ * difference between "this node is at `info` because I decided it" and
28648
+ * "...because it inherits". An operator who clears an override believing they
28649
+ * are clearing an inherited value has been handed the same defect as the two
28650
+ * contradicting knobs this document exists to remove, moved one floor up.
28651
+ */
28652
+ var LoggingLevelLayerSchema = object({
28653
+ scope: LoggingScopeKindSchema,
28654
+ /** The node this layer speaks for; `null` on the cluster layer. */
28655
+ nodeId: string().nullable(),
28656
+ /** Explicitly set here, or `null` when this layer inherits. */
28657
+ level: LogLevelSchema$1.nullable()
28658
+ });
28659
+ /** What a line is judged against, and WHICH layer decided it. */
28660
+ var LoggingEffectiveSchema = object({
28661
+ level: LogLevelSchema$1,
28662
+ levelSource: LoggingLevelSourceSchema
28663
+ });
28664
+ /** Every layer, general → specific. Never collapsed into the effective value. */
28665
+ var LoggingExplicitSchema = object({ layers: array(LoggingLevelLayerSchema).readonly() });
28666
+ /**
28667
+ * An armed diagnostic, with its DEADLINE.
28668
+ *
28669
+ * The shape of ADR-0244: what is stored is a deadline and never a flag, so a
28670
+ * diagnostic somebody forgot expires by itself, and a boot-window measurement
28671
+ * survives the restart it exists to measure. `remainingMs` is 0 whenever
28672
+ * `armed` is false — a window is never reported as slightly expired.
28673
+ */
28674
+ var DiagnosticWindowSchema = object({
28675
+ id: DiagnosticIdSchema,
28676
+ armed: boolean(),
28677
+ /** Epoch ms the window closes at. 0 when disarmed. */
28678
+ armedUntilMs: number(),
28679
+ /** Ms left before it expires on its own. 0 when disarmed. */
28680
+ remainingMs: number(),
28681
+ /** Whether the stored deadline is the one the live diagnostic is running —
28682
+ * i.e. whether this window would survive a restart. */
28683
+ persisted: boolean()
28684
+ });
28685
+ /**
28686
+ * `armMs: 0` DISARMS. Any positive value arms for that long, clamped by the
28687
+ * server — there is no maximum here on purpose: a bound repeated in a schema
28688
+ * is a second knob that disagrees with the first the day one of them moves.
28689
+ */
28690
+ var DiagnosticWindowPatchSchema = object({
28691
+ id: DiagnosticIdSchema,
28692
+ armMs: number().int().min(0),
28693
+ /** Cadence of the diagnostic's aggregated report line. Clamped by the server. */
28694
+ reportEveryMs: number().int().positive().optional()
28695
+ });
28696
+ /**
28697
+ * A PATCH, and patches MERGE.
28698
+ *
28699
+ * A field absent from the patch is left exactly as it was — arming a
28700
+ * diagnostic never resets a level, and setting a level never disarms a window.
28701
+ * The provider must not reconstruct the document as `{ ...snapshot, ...patch }`:
28702
+ * `setAll` already merges, and rebuilding the object is how an absent field
28703
+ * turns into an erased one.
28704
+ */
28705
+ var LoggingSettingsPatchSchema = object({
28706
+ /**
28707
+ * Absent leaves the level untouched. `null` CLEARS the explicit value at the
28708
+ * addressed scope so it inherits again. A value sets it.
28709
+ */
28710
+ level: LogLevelSchema$1.nullable().optional(),
28711
+ /**
28712
+ * Only the diagnostics NAMED here change. An armed window that is not listed
28713
+ * keeps running — a patch is never a full replacement.
28714
+ */
28715
+ diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
28716
+ });
28717
+ /**
28718
+ * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
28719
+ *
28720
+ * Deliberately NOT called `nodeId`: that key is reserved on every cap method
28721
+ * input — the generated router strips it and uses it to resolve the PROVIDER
28722
+ * on that node (`resolveProvider(cap, nodeId, …)`). A document about
28723
+ * `agent-1` addressed as `nodeId` would be forwarded to agent-1 and answered
28724
+ * by an agent that holds no cluster document at all. The hub is the single
28725
+ * authority over the whole hierarchy and answers for every layer, so the
28726
+ * layer selector needs a name the transport does not already own.
28727
+ */
28728
+ var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
28729
+ var SetLoggingSettingsInputSchema = object({
28730
+ scopeNodeId: string().optional(),
28731
+ patch: LoggingSettingsPatchSchema
28732
+ });
28733
+ /**
28734
+ * The whole document, as read and as returned after every write.
28735
+ *
28736
+ * `persisted: false` means the settings store could not be read or written.
28737
+ * The in-memory mirror still governs behaviour and is unchanged by the
28738
+ * failure — a read that fails neither switches a level nor disarms a window
28739
+ * (D49) — but the operator is told that what they are looking at would not
28740
+ * survive a restart.
28741
+ */
28742
+ var LoggingSettingsStateSchema = object({
28743
+ /** The layer this document was read at. `null` = the cluster layer. */
28744
+ scopeNodeId: string().nullable(),
28745
+ effective: LoggingEffectiveSchema,
28746
+ explicit: LoggingExplicitSchema,
28747
+ activeWindows: array(DiagnosticWindowSchema).readonly(),
28748
+ persisted: boolean()
28749
+ });
28372
28750
  method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), method(_void(), FeatureManifestSchema), method(_void(), array(NetworkAddressSchema).readonly()), method(_void(), unknown().nullable(), { auth: "admin" }), method(record(string(), unknown()), _null(), {
28373
28751
  kind: "mutation",
28374
28752
  auth: "admin"
@@ -28381,6 +28759,9 @@ method(_void(), FeatureManifestSchema), method(_void(), HealthStatusSchema), met
28381
28759
  }), method(_void(), SiteLocationStatusSchema, {
28382
28760
  kind: "mutation",
28383
28761
  auth: "admin"
28762
+ }), method(_void(), RequestCensusStatusSchema, { auth: "admin" }), method(GetLoggingSettingsInputSchema, LoggingSettingsStateSchema, { auth: "admin" }), method(SetLoggingSettingsInputSchema, LoggingSettingsStateSchema, {
28763
+ kind: "mutation",
28764
+ auth: "admin"
28384
28765
  });
28385
28766
  /**
28386
28767
  * Tamper / case-open detection sensor. Drives Home Assistant
@@ -35620,6 +36001,18 @@ Object.freeze({
35620
36001
  addonId: null,
35621
36002
  access: "create"
35622
36003
  },
36004
+ "system.getLoggingSettings": {
36005
+ capName: "system",
36006
+ capScope: "system",
36007
+ addonId: null,
36008
+ access: "view"
36009
+ },
36010
+ "system.getRequestCensus": {
36011
+ capName: "system",
36012
+ capScope: "system",
36013
+ addonId: null,
36014
+ access: "view"
36015
+ },
35623
36016
  "system.getRetentionConfig": {
35624
36017
  capName: "system",
35625
36018
  capScope: "system",
@@ -35650,6 +36043,12 @@ Object.freeze({
35650
36043
  addonId: null,
35651
36044
  access: "view"
35652
36045
  },
36046
+ "system.setLoggingSettings": {
36047
+ capName: "system",
36048
+ capScope: "system",
36049
+ addonId: null,
36050
+ access: "create"
36051
+ },
35653
36052
  "system.setRetentionConfig": {
35654
36053
  capName: "system",
35655
36054
  capScope: "system",
@@ -36805,6 +37204,10 @@ Object.freeze({
36805
37204
  name: "deviceId",
36806
37205
  form: "single",
36807
37206
  optional: true
37207
+ }, {
37208
+ name: "deviceIds",
37209
+ form: "array",
37210
+ optional: true
36808
37211
  }],
36809
37212
  "fanControl.setDirection": [{
36810
37213
  name: "deviceId",
@@ -38415,7 +38818,38 @@ object({
38415
38818
  * fallback — i.e. the pre-2026-08-13 miss profile. Set it there only to
38416
38819
  * reproduce that.
38417
38820
  */
38418
- tileBudgetMb: number().int().min(0).max(1024)
38821
+ tileBudgetMb: number().int().min(0).max(1024),
38822
+ /**
38823
+ * RAM ceiling per decode worker, in MB, for the SCENE TILES — one
38824
+ * JPEG-encoded copy of the WHOLE native frame, cut in the same instant as the
38825
+ * subject tiles, on frames that detected something.
38826
+ *
38827
+ * It exists because a subject tile cannot answer a FULL-FRAME request:
38828
+ * containment is strict by design, so the native `keyFrame`, the detail
38829
+ * plane's `frameJpeg` rung and the display-crop fallback had no rung at all
38830
+ * below the hold. Measured on the live cluster: 23.3% of key-frame captures
38831
+ * missed, 95.7% of them with `worker-lease-gone` — the raster released one
38832
+ * frame-time after delivery, with the request only p50 367 ms behind it.
38833
+ *
38834
+ * Sizing, and why this is a budget and not a duration: a scene tile is
38835
+ * ~1.5-2.5 MB at 4K (against ~23.75 MB for the raster it was cut from and
38836
+ * ~60-120 KB for a subject tile), and it is cut ~0.4 times a second per busy
38837
+ * camera — only detection-bearing frames get one. 48 MB is therefore ~20-30
38838
+ * frames, i.e. the store's 30 s TTL binds at the steady state and the budget
38839
+ * binds only through a detection burst, where it still covers well past the
38840
+ * measured p90 ask age of 4.3 s. Holding the RASTERS for the same window
38841
+ * would be ~498 MB per camera and ~6 GB at peak concurrency — the OOM this
38842
+ * whole shape exists to avoid.
38843
+ *
38844
+ * A SEPARATE ceiling from `tileBudgetMb` on purpose: a scene tile is ~20× a
38845
+ * subject tile, so one shared budget would let a busy camera's key frames
38846
+ * evict the face/plate tiles the recognisers depend on. Two budgets make that
38847
+ * impossible rather than unlikely. `0` DISABLES scene tiles and restores the
38848
+ * pre-existing behaviour, where a late full-frame request had nothing but the
38849
+ * ≤640 RAM raster — which the `keyFrame` gate rejects, so in practice it had
38850
+ * nothing.
38851
+ */
38852
+ sceneBudgetMb: number().int().min(0).max(1024)
38419
38853
  });
38420
38854
  /**
38421
38855
  * The values in force when the operator has set nothing.
@@ -38431,12 +38865,14 @@ var DEFAULT_NATIVE_LEASE_SETTINGS = {
38431
38865
  budgetMb: 1024,
38432
38866
  activityMs: 15e3,
38433
38867
  tileBudgetMb: 64,
38868
+ sceneBudgetMb: 48,
38434
38869
  admission: "inferred"
38435
38870
  };
38436
38871
  DEFAULT_NATIVE_LEASE_SETTINGS.holdFrames;
38437
38872
  DEFAULT_NATIVE_LEASE_SETTINGS.budgetMb;
38438
38873
  DEFAULT_NATIVE_LEASE_SETTINGS.activityMs;
38439
38874
  DEFAULT_NATIVE_LEASE_SETTINGS.tileBudgetMb;
38875
+ DEFAULT_NATIVE_LEASE_SETTINGS.sceneBudgetMb;
38440
38876
  DEFAULT_NATIVE_LEASE_SETTINGS.admission;
38441
38877
  var MB = 1024 * 1024;
38442
38878
  1024 * MB, 3072 * MB;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-wyze",
3
- "version": "0.2.35",
3
+ "version": "0.2.36",
4
4
  "description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
5
5
  "keywords": [
6
6
  "camstack",