@camstack/addon-pipeline-orchestrator 1.2.269 → 1.2.271

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -12632,6 +12632,68 @@ method(object({
12632
12632
  password: string()
12633
12633
  }), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
12634
12634
  /**
12635
+ * How long one snapshot may take end to end: the pinned copy of the whole
12636
+ * database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
12637
+ * disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
12638
+ * generous because a timeout fails the whole backup run.
12639
+ */
12640
+ var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
12641
+ /**
12642
+ * The databases an owner snapshots — declared by the OWNER, so a caller never
12643
+ * guesses which file is live from what sits beside it (a cleanly closed
12644
+ * database has no sidecars and is just as owned). Paths are absolute on the
12645
+ * owner's host.
12646
+ */
12647
+ var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
12648
+ /** One b-tree table of the snapshot and the rows it holds. */
12649
+ var DatabaseSnapshotTableSchema = object({
12650
+ name: string(),
12651
+ rows: number().int().nonnegative()
12652
+ });
12653
+ /**
12654
+ * What the owner wrote. Every path is ABSOLUTE on the owner's host — the
12655
+ * caller pins the call to its own node, so it can read the file; a caller
12656
+ * that finds the path outside its own data root refuses it rather than
12657
+ * archiving something it cannot place.
12658
+ */
12659
+ var DatabaseSnapshotResultSchema = object({
12660
+ /** The live database the snapshot copies. Never to be copied as a file. */
12661
+ livePath: string(),
12662
+ /** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
12663
+ snapshotPath: string(),
12664
+ sizeBytes: number().int().nonnegative(),
12665
+ pageCount: number().int().nonnegative(),
12666
+ pageSize: number().int().positive(),
12667
+ /**
12668
+ * Every b-tree table with its row count. Read inside the SAME read
12669
+ * transaction the copy was taken from, and found EQUAL on the copy — so
12670
+ * this is the content of the snapshot, not an estimate of the source.
12671
+ */
12672
+ tables: array(DatabaseSnapshotTableSchema),
12673
+ /** Wall time of the pinned copy (row counts included). */
12674
+ copyMs: number().nonnegative(),
12675
+ /** Wall time of the checks on the copy (`integrity_check`, row counts). */
12676
+ verifyMs: number().nonnegative(),
12677
+ /** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
12678
+ takenAt: number()
12679
+ });
12680
+ /**
12681
+ * A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
12682
+ * the same facts, with both paths relative to the archive root (the node's
12683
+ * data dir), because an archive outlives the host that made it.
12684
+ */
12685
+ var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
12686
+ /** Archive-relative path of the live database the archive does NOT carry. */
12687
+ livePath: string(),
12688
+ /** Archive-relative path of the verified copy it carries in its place. */
12689
+ snapshotPath: string()
12690
+ });
12691
+ method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
12692
+ kind: "mutation",
12693
+ auth: "admin",
12694
+ timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
12695
+ });
12696
+ /**
12635
12697
  * Orchestrator-side destination metadata. The orchestrator computes
12636
12698
  * `id = <addonId>:<subId>` from its provider lookup so consumers
12637
12699
  * (admin UI, restore flow) see one canonical key.
@@ -12742,7 +12804,12 @@ var ArchiveManifestSchema = object({
12742
12804
  locations: array(string()),
12743
12805
  entries: array(ArchiveEntrySchema),
12744
12806
  totalBytes: number(),
12745
- totalFiles: number()
12807
+ totalFiles: number(),
12808
+ /**
12809
+ * Live SQLite databases this archive carries as their OWNER's verified
12810
+ * snapshot instead of as files (D693). Absent on archives made before.
12811
+ */
12812
+ sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
12746
12813
  });
12747
12814
  var LocationStatSchema = object({
12748
12815
  name: string(),
@@ -14204,6 +14271,52 @@ var CompositionBlockStateSchema = object({
14204
14271
  reason: string().optional(),
14205
14272
  fields: array(CompositionFieldStateSchema)
14206
14273
  });
14274
+ var ComposerBlockSchema = object({
14275
+ id: string().min(1),
14276
+ name: string().min(1).max(120),
14277
+ enabled: boolean(),
14278
+ updatedAt: number(),
14279
+ composition: CompositionSchema
14280
+ });
14281
+ /**
14282
+ * A stored composition row that no longer PARSES — a schema a release
14283
+ * tightened, a row written by a newer build. Sent by id so the composer keeps
14284
+ * its device as a placeholder and reports the block `failed` naming the parse
14285
+ * error. Leaving it out would read, twice, exactly like a delete (D49).
14286
+ */
14287
+ var ComposerUnreadableBlockSchema = object({
14288
+ id: string().min(1),
14289
+ /** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
14290
+ name: string().nullable(),
14291
+ /** The parse error, in the operator's words. */
14292
+ error: string()
14293
+ });
14294
+ method(object({
14295
+ /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
14296
+ integrationId: string().nullable(),
14297
+ /** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
14298
+ storeLoaded: boolean(),
14299
+ blocks: array(ComposerBlockSchema),
14300
+ /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
14301
+ restartBlockIds: array(string()),
14302
+ /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
14303
+ unreadableBlocks: array(ComposerUnreadableBlockSchema)
14304
+ }), object({
14305
+ blocks: array(object({
14306
+ blockId: string(),
14307
+ status: CompositionRunStatusSchema,
14308
+ reason: string().optional()
14309
+ })),
14310
+ /**
14311
+ * False when the composer declared and withdrew NOTHING (store not loaded,
14312
+ * integration unknown, its own rows unread or read empty once). An empty
14313
+ * apply the caller owes is paid off only by one the composer acted on (D49).
14314
+ */
14315
+ acted: boolean()
14316
+ }), {
14317
+ kind: "mutation",
14318
+ auth: "admin"
14319
+ }), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
14207
14320
  var NUMBER = {
14208
14321
  kind: "fixed",
14209
14322
  result: ["number"]
@@ -14440,52 +14553,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
14440
14553
  auth: "admin",
14441
14554
  access: "view"
14442
14555
  });
14443
- var ComposerBlockSchema = object({
14444
- id: string().min(1),
14445
- name: string().min(1).max(120),
14446
- enabled: boolean(),
14447
- updatedAt: number(),
14448
- composition: CompositionSchema
14449
- });
14450
- /**
14451
- * A stored composition row that no longer PARSES — a schema a release
14452
- * tightened, a row written by a newer build. Sent by id so the composer keeps
14453
- * its device as a placeholder and reports the block `failed` naming the parse
14454
- * error. Leaving it out would read, twice, exactly like a delete (D49).
14455
- */
14456
- var ComposerUnreadableBlockSchema = object({
14457
- id: string().min(1),
14458
- /** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
14459
- name: string().nullable(),
14460
- /** The parse error, in the operator's words. */
14461
- error: string()
14462
- });
14463
- method(object({
14464
- /** The shared Blocks integration; null until `core-blocks` has reconciled it. */
14465
- integrationId: string().nullable(),
14466
- /** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
14467
- storeLoaded: boolean(),
14468
- blocks: array(ComposerBlockSchema),
14469
- /** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
14470
- restartBlockIds: array(string()),
14471
- /** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
14472
- unreadableBlocks: array(ComposerUnreadableBlockSchema)
14473
- }), object({
14474
- blocks: array(object({
14475
- blockId: string(),
14476
- status: CompositionRunStatusSchema,
14477
- reason: string().optional()
14478
- })),
14479
- /**
14480
- * False when the composer declared and withdrew NOTHING (store not loaded,
14481
- * integration unknown, its own rows unread or read empty once). An empty
14482
- * apply the caller owes is paid off only by one the composer acted on (D49).
14483
- */
14484
- acted: boolean()
14485
- }), {
14486
- kind: "mutation",
14487
- auth: "admin"
14488
- }), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
14489
14556
  /**
14490
14557
  * `custom-model-registry` — collection cap exposing operator-registered
14491
14558
  * custom detection models. Each provider (today: `addon-model-studio`)
@@ -16334,6 +16401,138 @@ method(object({
16334
16401
  deviceIds: array(number()).readonly(),
16335
16402
  caps: array(string()).readonly().optional()
16336
16403
  }), record(string(), record(string(), unknown().nullable())));
16404
+ object({
16405
+ /** Ms epoch of the last press. null = never observed since this provider started. */
16406
+ lastPressedAt: number().nullable(),
16407
+ /** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
16408
+ pressCountSinceStart: number()
16409
+ });
16410
+ object({
16411
+ deviceId: number(),
16412
+ timestamp: number()
16413
+ });
16414
+ /**
16415
+ * The `doorbell-source` extension slot's editable value (D648): the camera's
16416
+ * virtual-doorbell trigger devices, exactly what the wrapper's
16417
+ * `doorbellSources` persists (as `{ deviceId }` records).
16418
+ */
16419
+ var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
16420
+ DeviceType.Camera;
16421
+ DeviceType.Button, DeviceType.Camera;
16422
+ var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
16423
+ DeviceType.Camera, DeviceType.Camera;
16424
+ /** A slot's editable value, discriminated on `slot`. */
16425
+ var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
16426
+ DeviceType.Camera;
16427
+ var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
16428
+ state: literal("unreachable"),
16429
+ reason: string()
16430
+ })]);
16431
+ /** One provider of slots — the D554 source-listing row. */
16432
+ var ExtensionSourceSchema = object({
16433
+ /** The routing prefix of every `slotRef` this provider serves. */
16434
+ source: string(),
16435
+ label: string(),
16436
+ /** Stamped by the dispatcher from the registry (D557). */
16437
+ addonId: string().optional(),
16438
+ availability: ExtensionSourceAvailabilitySchema
16439
+ });
16440
+ /**
16441
+ * How one picked source stands. `missing` — no such device (deleted, or an id
16442
+ * that never existed); `foreign` — a device the slot's owner cannot read from
16443
+ * (a source owned by another addon); `unavailable` — it exists but is not a
16444
+ * valid source now (a container, which is never a pick). A source in any of
16445
+ * these states is SHOWN, never silently dropped or re-pointed.
16446
+ */
16447
+ var ExtensionSourceHealthSchema = _enum([
16448
+ "ok",
16449
+ "missing",
16450
+ "foreign",
16451
+ "unavailable"
16452
+ ]);
16453
+ var ExtensionSlotSourceSchema = object({
16454
+ deviceId: number().int(),
16455
+ /** The device's name, or null when it could not be resolved (`missing`). */
16456
+ name: string().nullable(),
16457
+ health: ExtensionSourceHealthSchema,
16458
+ detail: string().optional()
16459
+ });
16460
+ /**
16461
+ * A DIFFERENT authority that gates whether the slot's sources do anything —
16462
+ * reported read-only, named, never written through this contract (D62). The
16463
+ * virtual doorbell's sources ring only while the wrapper is bound to the
16464
+ * camera, and that binding belongs to `deviceManager.setWrapperActive`.
16465
+ * `unknown` means the gate could not be read; it is not "inactive" (D315).
16466
+ */
16467
+ var ExtensionSlotActivationSchema = object({
16468
+ state: _enum([
16469
+ "active",
16470
+ "inactive",
16471
+ "unknown"
16472
+ ]),
16473
+ authority: string(),
16474
+ detail: string().optional()
16475
+ });
16476
+ var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
16477
+ state: literal("ok"),
16478
+ /** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
16479
+ slotRef: string(),
16480
+ slot: ExtensionSlotIdSchema,
16481
+ /** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
16482
+ authority: string(),
16483
+ activation: ExtensionSlotActivationSchema.nullable(),
16484
+ value: ExtensionSlotValueSchema,
16485
+ sources: array(ExtensionSlotSourceSchema),
16486
+ /**
16487
+ * Devices the owner links to the host ON ITS OWN, by structure, and that
16488
+ * are therefore not in `value` (D655): a camera's device-tree children, and
16489
+ * the child a picked container stands for (D356 — a container is never a
16490
+ * pick, its children are). Read-only; the editor shows them and may offer
16491
+ * per-device options on them (the linked-devices tracked-event opt-in).
16492
+ * Absent when the owner links nothing beyond the picks, and from an owner
16493
+ * older than D655.
16494
+ */
16495
+ impliedSources: array(ExtensionSlotSourceSchema).optional()
16496
+ }), object({
16497
+ state: literal("unreachable"),
16498
+ addonId: string(),
16499
+ reason: string()
16500
+ })]);
16501
+ var ExtensionCandidatesSchema = object({ candidates: array(object({
16502
+ deviceId: number().int(),
16503
+ name: string(),
16504
+ type: string(),
16505
+ location: string().nullable(),
16506
+ /** The container a child belongs to — "Spotlight 2" alone does not say which. */
16507
+ parentName: string().nullable(),
16508
+ /** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
16509
+ suggested: boolean(),
16510
+ /** Why it is suggested ("same location"), null when it is not. */
16511
+ reason: string().nullable()
16512
+ })) });
16513
+ /**
16514
+ * What a write did. `none` — applied in place. `host` / `parent` — the owner
16515
+ * reloaded the host (or, for an accessory child, its parent) because the
16516
+ * write changed what the host REGISTERS. A slot never adds a capability to its
16517
+ * host — that is a composition (D663) — so today's owners answer `none`.
16518
+ */
16519
+ var ExtensionSetResultSchema = object({
16520
+ applied: literal(true),
16521
+ reload: _enum([
16522
+ "none",
16523
+ "host",
16524
+ "parent"
16525
+ ])
16526
+ });
16527
+ var ExtensionSlotRefInputSchema = object({
16528
+ deviceId: number().int(),
16529
+ slotRef: string().min(1)
16530
+ });
16531
+ var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
16532
+ method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
16533
+ kind: "mutation",
16534
+ auth: "admin"
16535
+ });
16337
16536
  /**
16338
16537
  * Per-field ownership (D663). A composition may CLAIM fields of a native
16339
16538
  * cap's runtime-state slice on an existing device: `replace` overlays the
@@ -19306,17 +19505,25 @@ var NcScheduleSchema = object({
19306
19505
  */
19307
19506
  var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
19308
19507
  /**
19508
+ * How a summary window is SENT (D698): `rule` (absent) = ONE notification with
19509
+ * every section; `section` = one notification per section with something to
19510
+ * say (an unavailable section included), each titled by its section.
19511
+ */
19512
+ var NcStateSummarySplitSchema = _enum(["rule", "section"]);
19513
+ /**
19309
19514
  * `summary`: the rule sends NOTHING per event. When a window of `schedule`
19310
19515
  * CLOSES, it sends one notification with the current state of its kinds
19311
19516
  * (low batteries, consumables to replace, devices offline, updates
19312
- * available, ...), after its own filters. Nothing to report sends nothing.
19517
+ * available, ...), after its own filters — or, with `split: 'section'`
19518
+ * (D698), one notification per section. Nothing to report sends nothing.
19313
19519
  * The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
19314
19520
  * midnight crossing); the send time is each window's END. Refused on the
19315
19521
  * `alarm` family, which stays instant (`systemEventDeliveryProblems`).
19316
19522
  */
19317
19523
  var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
19318
19524
  mode: literal("summary"),
19319
- schedule: NcScheduleSchema
19525
+ schedule: NcScheduleSchema,
19526
+ split: NcStateSummarySplitSchema.optional()
19320
19527
  })]);
19321
19528
  /** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
19322
19529
  var NcPlateMatcherSchema = object({
@@ -20315,11 +20522,23 @@ var NcStateSummaryPreviewSectionSchema = object({
20315
20522
  reason: string().optional()
20316
20523
  });
20317
20524
  /**
20525
+ * One notification a previewed summary would send (D698): the whole summary on
20526
+ * a `rule` split (no `section`), one section's on a `section` split.
20527
+ */
20528
+ var NcStateSummaryPreviewRowSchema = object({
20529
+ section: string().optional(),
20530
+ /** The section's name on a per-section row; every reported section's, joined, on a combined one. */
20531
+ title: string(),
20532
+ text: string(),
20533
+ count: number().int().nonnegative()
20534
+ });
20535
+ /**
20318
20536
  * The summary a rule would send now. `empty` = nothing to report and every
20319
20537
  * section read: such a summary is NOT sent. `dropped` counts the open states
20320
20538
  * the rule's own filters (or a camera mute) left out, by reason.
20321
20539
  * `excludedGroups` names the kind groups selected that have no state to report
20322
- * (backups & exports).
20540
+ * (backups & exports). `split` and `rows` (D698) say how it would be sent —
20541
+ * optional, so an older hub's answer still parses.
20323
20542
  */
20324
20543
  var NcStateSummaryPreviewSchema = object({
20325
20544
  empty: boolean(),
@@ -20327,7 +20546,9 @@ var NcStateSummaryPreviewSchema = object({
20327
20546
  text: string(),
20328
20547
  sections: array(NcStateSummaryPreviewSectionSchema),
20329
20548
  dropped: record(string(), number().int().nonnegative()),
20330
- excludedGroups: array(string())
20549
+ excludedGroups: array(string()),
20550
+ split: NcStateSummarySplitSchema.optional(),
20551
+ rows: array(NcStateSummaryPreviewRowSchema).optional()
20331
20552
  });
20332
20553
  var NcTestResultSchema = object({
20333
20554
  recordId: string(),
@@ -28627,138 +28848,6 @@ DeviceType.Camera, method(object({
28627
28848
  kind: "query",
28628
28849
  auth: "protected"
28629
28850
  });
28630
- object({
28631
- /** Ms epoch of the last press. null = never observed since this provider started. */
28632
- lastPressedAt: number().nullable(),
28633
- /** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
28634
- pressCountSinceStart: number()
28635
- });
28636
- object({
28637
- deviceId: number(),
28638
- timestamp: number()
28639
- });
28640
- /**
28641
- * The `doorbell-source` extension slot's editable value (D648): the camera's
28642
- * virtual-doorbell trigger devices, exactly what the wrapper's
28643
- * `doorbellSources` persists (as `{ deviceId }` records).
28644
- */
28645
- var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
28646
- DeviceType.Camera;
28647
- DeviceType.Button, DeviceType.Camera;
28648
- var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
28649
- DeviceType.Camera, DeviceType.Camera;
28650
- /** A slot's editable value, discriminated on `slot`. */
28651
- var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
28652
- DeviceType.Camera;
28653
- var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
28654
- state: literal("unreachable"),
28655
- reason: string()
28656
- })]);
28657
- /** One provider of slots — the D554 source-listing row. */
28658
- var ExtensionSourceSchema = object({
28659
- /** The routing prefix of every `slotRef` this provider serves. */
28660
- source: string(),
28661
- label: string(),
28662
- /** Stamped by the dispatcher from the registry (D557). */
28663
- addonId: string().optional(),
28664
- availability: ExtensionSourceAvailabilitySchema
28665
- });
28666
- /**
28667
- * How one picked source stands. `missing` — no such device (deleted, or an id
28668
- * that never existed); `foreign` — a device the slot's owner cannot read from
28669
- * (a source owned by another addon); `unavailable` — it exists but is not a
28670
- * valid source now (a container, which is never a pick). A source in any of
28671
- * these states is SHOWN, never silently dropped or re-pointed.
28672
- */
28673
- var ExtensionSourceHealthSchema = _enum([
28674
- "ok",
28675
- "missing",
28676
- "foreign",
28677
- "unavailable"
28678
- ]);
28679
- var ExtensionSlotSourceSchema = object({
28680
- deviceId: number().int(),
28681
- /** The device's name, or null when it could not be resolved (`missing`). */
28682
- name: string().nullable(),
28683
- health: ExtensionSourceHealthSchema,
28684
- detail: string().optional()
28685
- });
28686
- /**
28687
- * A DIFFERENT authority that gates whether the slot's sources do anything —
28688
- * reported read-only, named, never written through this contract (D62). The
28689
- * virtual doorbell's sources ring only while the wrapper is bound to the
28690
- * camera, and that binding belongs to `deviceManager.setWrapperActive`.
28691
- * `unknown` means the gate could not be read; it is not "inactive" (D315).
28692
- */
28693
- var ExtensionSlotActivationSchema = object({
28694
- state: _enum([
28695
- "active",
28696
- "inactive",
28697
- "unknown"
28698
- ]),
28699
- authority: string(),
28700
- detail: string().optional()
28701
- });
28702
- var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
28703
- state: literal("ok"),
28704
- /** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
28705
- slotRef: string(),
28706
- slot: ExtensionSlotIdSchema,
28707
- /** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
28708
- authority: string(),
28709
- activation: ExtensionSlotActivationSchema.nullable(),
28710
- value: ExtensionSlotValueSchema,
28711
- sources: array(ExtensionSlotSourceSchema),
28712
- /**
28713
- * Devices the owner links to the host ON ITS OWN, by structure, and that
28714
- * are therefore not in `value` (D655): a camera's device-tree children, and
28715
- * the child a picked container stands for (D356 — a container is never a
28716
- * pick, its children are). Read-only; the editor shows them and may offer
28717
- * per-device options on them (the linked-devices tracked-event opt-in).
28718
- * Absent when the owner links nothing beyond the picks, and from an owner
28719
- * older than D655.
28720
- */
28721
- impliedSources: array(ExtensionSlotSourceSchema).optional()
28722
- }), object({
28723
- state: literal("unreachable"),
28724
- addonId: string(),
28725
- reason: string()
28726
- })]);
28727
- var ExtensionCandidatesSchema = object({ candidates: array(object({
28728
- deviceId: number().int(),
28729
- name: string(),
28730
- type: string(),
28731
- location: string().nullable(),
28732
- /** The container a child belongs to — "Spotlight 2" alone does not say which. */
28733
- parentName: string().nullable(),
28734
- /** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
28735
- suggested: boolean(),
28736
- /** Why it is suggested ("same location"), null when it is not. */
28737
- reason: string().nullable()
28738
- })) });
28739
- /**
28740
- * What a write did. `none` — applied in place. `host` / `parent` — the owner
28741
- * reloaded the host (or, for an accessory child, its parent) because the
28742
- * write changed what the host REGISTERS. A slot never adds a capability to its
28743
- * host — that is a composition (D663) — so today's owners answer `none`.
28744
- */
28745
- var ExtensionSetResultSchema = object({
28746
- applied: literal(true),
28747
- reload: _enum([
28748
- "none",
28749
- "host",
28750
- "parent"
28751
- ])
28752
- });
28753
- var ExtensionSlotRefInputSchema = object({
28754
- deviceId: number().int(),
28755
- slotRef: string().min(1)
28756
- });
28757
- var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
28758
- method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
28759
- kind: "mutation",
28760
- auth: "admin"
28761
- });
28762
28851
  /**
28763
28852
  * Optional client-side hints sent at session creation to help the provider
28764
28853
  * pick the best native source. All fields optional — a viewer that knows
@@ -39997,6 +40086,18 @@ Object.freeze({
39997
40086
  addonId: null,
39998
40087
  access: "view"
39999
40088
  },
40089
+ "databaseSnapshot.listDatabases": {
40090
+ capName: "database-snapshot",
40091
+ capScope: "system",
40092
+ addonId: null,
40093
+ access: "view"
40094
+ },
40095
+ "databaseSnapshot.writeSnapshot": {
40096
+ capName: "database-snapshot",
40097
+ capScope: "system",
40098
+ addonId: null,
40099
+ access: "create"
40100
+ },
40000
40101
  "dataStoreProvider.aggregate": {
40001
40102
  capName: "data-store-provider",
40002
40103
  capScope: "system",
@@ -48525,6 +48626,18 @@ var STATE_SUMMARY_VARS = [
48525
48626
  systemEventKinds: [...SUMMARISABLE],
48526
48627
  systemEventDeliveries: ["summary"]
48527
48628
  },
48629
+ {
48630
+ name: "summarySection",
48631
+ label: "Summary: this section",
48632
+ description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
48633
+ example: "Batterie scariche",
48634
+ group: "system",
48635
+ families: ["rule"],
48636
+ fields: [...RULE_TEXT],
48637
+ kinds: ["system"],
48638
+ systemEventKinds: [...SUMMARISABLE],
48639
+ systemEventDeliveries: ["summary"]
48640
+ },
48528
48641
  ...STATE_SUMMARY_SECTION_VARS.map((v) => ({
48529
48642
  name: v.name,
48530
48643
  label: v.label,