@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/_stub.js +1 -1
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-CbIs8lVi.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-CoNF_D80.mjs} +3 -3
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-WN7_BpMW.mjs +26 -0
- package/dist/{hostInit-DU6E20DY.mjs → hostInit-Cxel93CG.mjs} +3 -3
- package/dist/index.js +296 -183
- package/dist/index.mjs +296 -183
- package/dist/remoteEntry.js +1 -1
- package/package.json +2 -2
- package/dist/_virtual_mf___mfe_internal__addon_pipeline_orchestrator_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DAtXMzh5.mjs +0 -26
package/dist/index.mjs
CHANGED
|
@@ -12604,6 +12604,68 @@ method(object({
|
|
|
12604
12604
|
password: string()
|
|
12605
12605
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
12606
12606
|
/**
|
|
12607
|
+
* How long one snapshot may take end to end: the pinned copy of the whole
|
|
12608
|
+
* database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
|
|
12609
|
+
* disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
|
|
12610
|
+
* generous because a timeout fails the whole backup run.
|
|
12611
|
+
*/
|
|
12612
|
+
var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
|
|
12613
|
+
/**
|
|
12614
|
+
* The databases an owner snapshots — declared by the OWNER, so a caller never
|
|
12615
|
+
* guesses which file is live from what sits beside it (a cleanly closed
|
|
12616
|
+
* database has no sidecars and is just as owned). Paths are absolute on the
|
|
12617
|
+
* owner's host.
|
|
12618
|
+
*/
|
|
12619
|
+
var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
|
|
12620
|
+
/** One b-tree table of the snapshot and the rows it holds. */
|
|
12621
|
+
var DatabaseSnapshotTableSchema = object({
|
|
12622
|
+
name: string(),
|
|
12623
|
+
rows: number().int().nonnegative()
|
|
12624
|
+
});
|
|
12625
|
+
/**
|
|
12626
|
+
* What the owner wrote. Every path is ABSOLUTE on the owner's host — the
|
|
12627
|
+
* caller pins the call to its own node, so it can read the file; a caller
|
|
12628
|
+
* that finds the path outside its own data root refuses it rather than
|
|
12629
|
+
* archiving something it cannot place.
|
|
12630
|
+
*/
|
|
12631
|
+
var DatabaseSnapshotResultSchema = object({
|
|
12632
|
+
/** The live database the snapshot copies. Never to be copied as a file. */
|
|
12633
|
+
livePath: string(),
|
|
12634
|
+
/** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
|
|
12635
|
+
snapshotPath: string(),
|
|
12636
|
+
sizeBytes: number().int().nonnegative(),
|
|
12637
|
+
pageCount: number().int().nonnegative(),
|
|
12638
|
+
pageSize: number().int().positive(),
|
|
12639
|
+
/**
|
|
12640
|
+
* Every b-tree table with its row count. Read inside the SAME read
|
|
12641
|
+
* transaction the copy was taken from, and found EQUAL on the copy — so
|
|
12642
|
+
* this is the content of the snapshot, not an estimate of the source.
|
|
12643
|
+
*/
|
|
12644
|
+
tables: array(DatabaseSnapshotTableSchema),
|
|
12645
|
+
/** Wall time of the pinned copy (row counts included). */
|
|
12646
|
+
copyMs: number().nonnegative(),
|
|
12647
|
+
/** Wall time of the checks on the copy (`integrity_check`, row counts). */
|
|
12648
|
+
verifyMs: number().nonnegative(),
|
|
12649
|
+
/** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
|
|
12650
|
+
takenAt: number()
|
|
12651
|
+
});
|
|
12652
|
+
/**
|
|
12653
|
+
* A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
|
|
12654
|
+
* the same facts, with both paths relative to the archive root (the node's
|
|
12655
|
+
* data dir), because an archive outlives the host that made it.
|
|
12656
|
+
*/
|
|
12657
|
+
var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
|
|
12658
|
+
/** Archive-relative path of the live database the archive does NOT carry. */
|
|
12659
|
+
livePath: string(),
|
|
12660
|
+
/** Archive-relative path of the verified copy it carries in its place. */
|
|
12661
|
+
snapshotPath: string()
|
|
12662
|
+
});
|
|
12663
|
+
method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
|
|
12664
|
+
kind: "mutation",
|
|
12665
|
+
auth: "admin",
|
|
12666
|
+
timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
|
|
12667
|
+
});
|
|
12668
|
+
/**
|
|
12607
12669
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
12608
12670
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
12609
12671
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -12714,7 +12776,12 @@ var ArchiveManifestSchema = object({
|
|
|
12714
12776
|
locations: array(string()),
|
|
12715
12777
|
entries: array(ArchiveEntrySchema),
|
|
12716
12778
|
totalBytes: number(),
|
|
12717
|
-
totalFiles: number()
|
|
12779
|
+
totalFiles: number(),
|
|
12780
|
+
/**
|
|
12781
|
+
* Live SQLite databases this archive carries as their OWNER's verified
|
|
12782
|
+
* snapshot instead of as files (D693). Absent on archives made before.
|
|
12783
|
+
*/
|
|
12784
|
+
sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
|
|
12718
12785
|
});
|
|
12719
12786
|
var LocationStatSchema = object({
|
|
12720
12787
|
name: string(),
|
|
@@ -14176,6 +14243,52 @@ var CompositionBlockStateSchema = object({
|
|
|
14176
14243
|
reason: string().optional(),
|
|
14177
14244
|
fields: array(CompositionFieldStateSchema)
|
|
14178
14245
|
});
|
|
14246
|
+
var ComposerBlockSchema = object({
|
|
14247
|
+
id: string().min(1),
|
|
14248
|
+
name: string().min(1).max(120),
|
|
14249
|
+
enabled: boolean(),
|
|
14250
|
+
updatedAt: number(),
|
|
14251
|
+
composition: CompositionSchema
|
|
14252
|
+
});
|
|
14253
|
+
/**
|
|
14254
|
+
* A stored composition row that no longer PARSES — a schema a release
|
|
14255
|
+
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
14256
|
+
* its device as a placeholder and reports the block `failed` naming the parse
|
|
14257
|
+
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
14258
|
+
*/
|
|
14259
|
+
var ComposerUnreadableBlockSchema = object({
|
|
14260
|
+
id: string().min(1),
|
|
14261
|
+
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
14262
|
+
name: string().nullable(),
|
|
14263
|
+
/** The parse error, in the operator's words. */
|
|
14264
|
+
error: string()
|
|
14265
|
+
});
|
|
14266
|
+
method(object({
|
|
14267
|
+
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
14268
|
+
integrationId: string().nullable(),
|
|
14269
|
+
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
14270
|
+
storeLoaded: boolean(),
|
|
14271
|
+
blocks: array(ComposerBlockSchema),
|
|
14272
|
+
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
14273
|
+
restartBlockIds: array(string()),
|
|
14274
|
+
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
14275
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
14276
|
+
}), object({
|
|
14277
|
+
blocks: array(object({
|
|
14278
|
+
blockId: string(),
|
|
14279
|
+
status: CompositionRunStatusSchema,
|
|
14280
|
+
reason: string().optional()
|
|
14281
|
+
})),
|
|
14282
|
+
/**
|
|
14283
|
+
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
14284
|
+
* integration unknown, its own rows unread or read empty once). An empty
|
|
14285
|
+
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
14286
|
+
*/
|
|
14287
|
+
acted: boolean()
|
|
14288
|
+
}), {
|
|
14289
|
+
kind: "mutation",
|
|
14290
|
+
auth: "admin"
|
|
14291
|
+
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
14179
14292
|
var NUMBER = {
|
|
14180
14293
|
kind: "fixed",
|
|
14181
14294
|
result: ["number"]
|
|
@@ -14412,52 +14525,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
14412
14525
|
auth: "admin",
|
|
14413
14526
|
access: "view"
|
|
14414
14527
|
});
|
|
14415
|
-
var ComposerBlockSchema = object({
|
|
14416
|
-
id: string().min(1),
|
|
14417
|
-
name: string().min(1).max(120),
|
|
14418
|
-
enabled: boolean(),
|
|
14419
|
-
updatedAt: number(),
|
|
14420
|
-
composition: CompositionSchema
|
|
14421
|
-
});
|
|
14422
|
-
/**
|
|
14423
|
-
* A stored composition row that no longer PARSES — a schema a release
|
|
14424
|
-
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
14425
|
-
* its device as a placeholder and reports the block `failed` naming the parse
|
|
14426
|
-
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
14427
|
-
*/
|
|
14428
|
-
var ComposerUnreadableBlockSchema = object({
|
|
14429
|
-
id: string().min(1),
|
|
14430
|
-
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
14431
|
-
name: string().nullable(),
|
|
14432
|
-
/** The parse error, in the operator's words. */
|
|
14433
|
-
error: string()
|
|
14434
|
-
});
|
|
14435
|
-
method(object({
|
|
14436
|
-
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
14437
|
-
integrationId: string().nullable(),
|
|
14438
|
-
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
14439
|
-
storeLoaded: boolean(),
|
|
14440
|
-
blocks: array(ComposerBlockSchema),
|
|
14441
|
-
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
14442
|
-
restartBlockIds: array(string()),
|
|
14443
|
-
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
14444
|
-
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
14445
|
-
}), object({
|
|
14446
|
-
blocks: array(object({
|
|
14447
|
-
blockId: string(),
|
|
14448
|
-
status: CompositionRunStatusSchema,
|
|
14449
|
-
reason: string().optional()
|
|
14450
|
-
})),
|
|
14451
|
-
/**
|
|
14452
|
-
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
14453
|
-
* integration unknown, its own rows unread or read empty once). An empty
|
|
14454
|
-
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
14455
|
-
*/
|
|
14456
|
-
acted: boolean()
|
|
14457
|
-
}), {
|
|
14458
|
-
kind: "mutation",
|
|
14459
|
-
auth: "admin"
|
|
14460
|
-
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
14461
14528
|
/**
|
|
14462
14529
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
14463
14530
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
@@ -16306,6 +16373,138 @@ method(object({
|
|
|
16306
16373
|
deviceIds: array(number()).readonly(),
|
|
16307
16374
|
caps: array(string()).readonly().optional()
|
|
16308
16375
|
}), record(string(), record(string(), unknown().nullable())));
|
|
16376
|
+
object({
|
|
16377
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
16378
|
+
lastPressedAt: number().nullable(),
|
|
16379
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
16380
|
+
pressCountSinceStart: number()
|
|
16381
|
+
});
|
|
16382
|
+
object({
|
|
16383
|
+
deviceId: number(),
|
|
16384
|
+
timestamp: number()
|
|
16385
|
+
});
|
|
16386
|
+
/**
|
|
16387
|
+
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
16388
|
+
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
16389
|
+
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
16390
|
+
*/
|
|
16391
|
+
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
16392
|
+
DeviceType.Camera;
|
|
16393
|
+
DeviceType.Button, DeviceType.Camera;
|
|
16394
|
+
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
16395
|
+
DeviceType.Camera, DeviceType.Camera;
|
|
16396
|
+
/** A slot's editable value, discriminated on `slot`. */
|
|
16397
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
16398
|
+
DeviceType.Camera;
|
|
16399
|
+
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
16400
|
+
state: literal("unreachable"),
|
|
16401
|
+
reason: string()
|
|
16402
|
+
})]);
|
|
16403
|
+
/** One provider of slots — the D554 source-listing row. */
|
|
16404
|
+
var ExtensionSourceSchema = object({
|
|
16405
|
+
/** The routing prefix of every `slotRef` this provider serves. */
|
|
16406
|
+
source: string(),
|
|
16407
|
+
label: string(),
|
|
16408
|
+
/** Stamped by the dispatcher from the registry (D557). */
|
|
16409
|
+
addonId: string().optional(),
|
|
16410
|
+
availability: ExtensionSourceAvailabilitySchema
|
|
16411
|
+
});
|
|
16412
|
+
/**
|
|
16413
|
+
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
16414
|
+
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
16415
|
+
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
16416
|
+
* valid source now (a container, which is never a pick). A source in any of
|
|
16417
|
+
* these states is SHOWN, never silently dropped or re-pointed.
|
|
16418
|
+
*/
|
|
16419
|
+
var ExtensionSourceHealthSchema = _enum([
|
|
16420
|
+
"ok",
|
|
16421
|
+
"missing",
|
|
16422
|
+
"foreign",
|
|
16423
|
+
"unavailable"
|
|
16424
|
+
]);
|
|
16425
|
+
var ExtensionSlotSourceSchema = object({
|
|
16426
|
+
deviceId: number().int(),
|
|
16427
|
+
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
16428
|
+
name: string().nullable(),
|
|
16429
|
+
health: ExtensionSourceHealthSchema,
|
|
16430
|
+
detail: string().optional()
|
|
16431
|
+
});
|
|
16432
|
+
/**
|
|
16433
|
+
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
16434
|
+
* reported read-only, named, never written through this contract (D62). The
|
|
16435
|
+
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
16436
|
+
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
16437
|
+
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
16438
|
+
*/
|
|
16439
|
+
var ExtensionSlotActivationSchema = object({
|
|
16440
|
+
state: _enum([
|
|
16441
|
+
"active",
|
|
16442
|
+
"inactive",
|
|
16443
|
+
"unknown"
|
|
16444
|
+
]),
|
|
16445
|
+
authority: string(),
|
|
16446
|
+
detail: string().optional()
|
|
16447
|
+
});
|
|
16448
|
+
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
16449
|
+
state: literal("ok"),
|
|
16450
|
+
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
16451
|
+
slotRef: string(),
|
|
16452
|
+
slot: ExtensionSlotIdSchema,
|
|
16453
|
+
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
16454
|
+
authority: string(),
|
|
16455
|
+
activation: ExtensionSlotActivationSchema.nullable(),
|
|
16456
|
+
value: ExtensionSlotValueSchema,
|
|
16457
|
+
sources: array(ExtensionSlotSourceSchema),
|
|
16458
|
+
/**
|
|
16459
|
+
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
16460
|
+
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
16461
|
+
* the child a picked container stands for (D356 — a container is never a
|
|
16462
|
+
* pick, its children are). Read-only; the editor shows them and may offer
|
|
16463
|
+
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
16464
|
+
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
16465
|
+
* older than D655.
|
|
16466
|
+
*/
|
|
16467
|
+
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
16468
|
+
}), object({
|
|
16469
|
+
state: literal("unreachable"),
|
|
16470
|
+
addonId: string(),
|
|
16471
|
+
reason: string()
|
|
16472
|
+
})]);
|
|
16473
|
+
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
16474
|
+
deviceId: number().int(),
|
|
16475
|
+
name: string(),
|
|
16476
|
+
type: string(),
|
|
16477
|
+
location: string().nullable(),
|
|
16478
|
+
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
16479
|
+
parentName: string().nullable(),
|
|
16480
|
+
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
16481
|
+
suggested: boolean(),
|
|
16482
|
+
/** Why it is suggested ("same location"), null when it is not. */
|
|
16483
|
+
reason: string().nullable()
|
|
16484
|
+
})) });
|
|
16485
|
+
/**
|
|
16486
|
+
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
16487
|
+
* reloaded the host (or, for an accessory child, its parent) because the
|
|
16488
|
+
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
16489
|
+
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
16490
|
+
*/
|
|
16491
|
+
var ExtensionSetResultSchema = object({
|
|
16492
|
+
applied: literal(true),
|
|
16493
|
+
reload: _enum([
|
|
16494
|
+
"none",
|
|
16495
|
+
"host",
|
|
16496
|
+
"parent"
|
|
16497
|
+
])
|
|
16498
|
+
});
|
|
16499
|
+
var ExtensionSlotRefInputSchema = object({
|
|
16500
|
+
deviceId: number().int(),
|
|
16501
|
+
slotRef: string().min(1)
|
|
16502
|
+
});
|
|
16503
|
+
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
16504
|
+
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
16505
|
+
kind: "mutation",
|
|
16506
|
+
auth: "admin"
|
|
16507
|
+
});
|
|
16309
16508
|
/**
|
|
16310
16509
|
* Per-field ownership (D663). A composition may CLAIM fields of a native
|
|
16311
16510
|
* cap's runtime-state slice on an existing device: `replace` overlays the
|
|
@@ -19278,17 +19477,25 @@ var NcScheduleSchema = object({
|
|
|
19278
19477
|
*/
|
|
19279
19478
|
var NcSystemEventDeliveryModeSchema = _enum(["instant", "summary"]);
|
|
19280
19479
|
/**
|
|
19480
|
+
* How a summary window is SENT (D698): `rule` (absent) = ONE notification with
|
|
19481
|
+
* every section; `section` = one notification per section with something to
|
|
19482
|
+
* say (an unavailable section included), each titled by its section.
|
|
19483
|
+
*/
|
|
19484
|
+
var NcStateSummarySplitSchema = _enum(["rule", "section"]);
|
|
19485
|
+
/**
|
|
19281
19486
|
* `summary`: the rule sends NOTHING per event. When a window of `schedule`
|
|
19282
19487
|
* CLOSES, it sends one notification with the current state of its kinds
|
|
19283
19488
|
* (low batteries, consumables to replace, devices offline, updates
|
|
19284
|
-
* available, ...), after its own filters
|
|
19489
|
+
* available, ...), after its own filters — or, with `split: 'section'`
|
|
19490
|
+
* (D698), one notification per section. Nothing to report sends nothing.
|
|
19285
19491
|
* The schedule is the ordinary `NcSchedule` (weekly windows, IANA timezone,
|
|
19286
19492
|
* midnight crossing); the send time is each window's END. Refused on the
|
|
19287
19493
|
* `alarm` family, which stays instant (`systemEventDeliveryProblems`).
|
|
19288
19494
|
*/
|
|
19289
19495
|
var NcSystemEventDeliverySchema = discriminatedUnion("mode", [object({ mode: literal("instant") }), object({
|
|
19290
19496
|
mode: literal("summary"),
|
|
19291
|
-
schedule: NcScheduleSchema
|
|
19497
|
+
schedule: NcScheduleSchema,
|
|
19498
|
+
split: NcStateSummarySplitSchema.optional()
|
|
19292
19499
|
})]);
|
|
19293
19500
|
/** Fuzzy plate matcher — OCR noise makes exact match useless (spec row 12/13). */
|
|
19294
19501
|
var NcPlateMatcherSchema = object({
|
|
@@ -20287,11 +20494,23 @@ var NcStateSummaryPreviewSectionSchema = object({
|
|
|
20287
20494
|
reason: string().optional()
|
|
20288
20495
|
});
|
|
20289
20496
|
/**
|
|
20497
|
+
* One notification a previewed summary would send (D698): the whole summary on
|
|
20498
|
+
* a `rule` split (no `section`), one section's on a `section` split.
|
|
20499
|
+
*/
|
|
20500
|
+
var NcStateSummaryPreviewRowSchema = object({
|
|
20501
|
+
section: string().optional(),
|
|
20502
|
+
/** The section's name on a per-section row; every reported section's, joined, on a combined one. */
|
|
20503
|
+
title: string(),
|
|
20504
|
+
text: string(),
|
|
20505
|
+
count: number().int().nonnegative()
|
|
20506
|
+
});
|
|
20507
|
+
/**
|
|
20290
20508
|
* The summary a rule would send now. `empty` = nothing to report and every
|
|
20291
20509
|
* section read: such a summary is NOT sent. `dropped` counts the open states
|
|
20292
20510
|
* the rule's own filters (or a camera mute) left out, by reason.
|
|
20293
20511
|
* `excludedGroups` names the kind groups selected that have no state to report
|
|
20294
|
-
* (backups & exports).
|
|
20512
|
+
* (backups & exports). `split` and `rows` (D698) say how it would be sent —
|
|
20513
|
+
* optional, so an older hub's answer still parses.
|
|
20295
20514
|
*/
|
|
20296
20515
|
var NcStateSummaryPreviewSchema = object({
|
|
20297
20516
|
empty: boolean(),
|
|
@@ -20299,7 +20518,9 @@ var NcStateSummaryPreviewSchema = object({
|
|
|
20299
20518
|
text: string(),
|
|
20300
20519
|
sections: array(NcStateSummaryPreviewSectionSchema),
|
|
20301
20520
|
dropped: record(string(), number().int().nonnegative()),
|
|
20302
|
-
excludedGroups: array(string())
|
|
20521
|
+
excludedGroups: array(string()),
|
|
20522
|
+
split: NcStateSummarySplitSchema.optional(),
|
|
20523
|
+
rows: array(NcStateSummaryPreviewRowSchema).optional()
|
|
20303
20524
|
});
|
|
20304
20525
|
var NcTestResultSchema = object({
|
|
20305
20526
|
recordId: string(),
|
|
@@ -28599,138 +28820,6 @@ DeviceType.Camera, method(object({
|
|
|
28599
28820
|
kind: "query",
|
|
28600
28821
|
auth: "protected"
|
|
28601
28822
|
});
|
|
28602
|
-
object({
|
|
28603
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
28604
|
-
lastPressedAt: number().nullable(),
|
|
28605
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
28606
|
-
pressCountSinceStart: number()
|
|
28607
|
-
});
|
|
28608
|
-
object({
|
|
28609
|
-
deviceId: number(),
|
|
28610
|
-
timestamp: number()
|
|
28611
|
-
});
|
|
28612
|
-
/**
|
|
28613
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
28614
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
28615
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
28616
|
-
*/
|
|
28617
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
28618
|
-
DeviceType.Camera;
|
|
28619
|
-
DeviceType.Button, DeviceType.Camera;
|
|
28620
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
28621
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
28622
|
-
/** A slot's editable value, discriminated on `slot`. */
|
|
28623
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
28624
|
-
DeviceType.Camera;
|
|
28625
|
-
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
28626
|
-
state: literal("unreachable"),
|
|
28627
|
-
reason: string()
|
|
28628
|
-
})]);
|
|
28629
|
-
/** One provider of slots — the D554 source-listing row. */
|
|
28630
|
-
var ExtensionSourceSchema = object({
|
|
28631
|
-
/** The routing prefix of every `slotRef` this provider serves. */
|
|
28632
|
-
source: string(),
|
|
28633
|
-
label: string(),
|
|
28634
|
-
/** Stamped by the dispatcher from the registry (D557). */
|
|
28635
|
-
addonId: string().optional(),
|
|
28636
|
-
availability: ExtensionSourceAvailabilitySchema
|
|
28637
|
-
});
|
|
28638
|
-
/**
|
|
28639
|
-
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
28640
|
-
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
28641
|
-
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
28642
|
-
* valid source now (a container, which is never a pick). A source in any of
|
|
28643
|
-
* these states is SHOWN, never silently dropped or re-pointed.
|
|
28644
|
-
*/
|
|
28645
|
-
var ExtensionSourceHealthSchema = _enum([
|
|
28646
|
-
"ok",
|
|
28647
|
-
"missing",
|
|
28648
|
-
"foreign",
|
|
28649
|
-
"unavailable"
|
|
28650
|
-
]);
|
|
28651
|
-
var ExtensionSlotSourceSchema = object({
|
|
28652
|
-
deviceId: number().int(),
|
|
28653
|
-
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
28654
|
-
name: string().nullable(),
|
|
28655
|
-
health: ExtensionSourceHealthSchema,
|
|
28656
|
-
detail: string().optional()
|
|
28657
|
-
});
|
|
28658
|
-
/**
|
|
28659
|
-
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
28660
|
-
* reported read-only, named, never written through this contract (D62). The
|
|
28661
|
-
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
28662
|
-
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
28663
|
-
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
28664
|
-
*/
|
|
28665
|
-
var ExtensionSlotActivationSchema = object({
|
|
28666
|
-
state: _enum([
|
|
28667
|
-
"active",
|
|
28668
|
-
"inactive",
|
|
28669
|
-
"unknown"
|
|
28670
|
-
]),
|
|
28671
|
-
authority: string(),
|
|
28672
|
-
detail: string().optional()
|
|
28673
|
-
});
|
|
28674
|
-
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
28675
|
-
state: literal("ok"),
|
|
28676
|
-
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
28677
|
-
slotRef: string(),
|
|
28678
|
-
slot: ExtensionSlotIdSchema,
|
|
28679
|
-
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
28680
|
-
authority: string(),
|
|
28681
|
-
activation: ExtensionSlotActivationSchema.nullable(),
|
|
28682
|
-
value: ExtensionSlotValueSchema,
|
|
28683
|
-
sources: array(ExtensionSlotSourceSchema),
|
|
28684
|
-
/**
|
|
28685
|
-
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
28686
|
-
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
28687
|
-
* the child a picked container stands for (D356 — a container is never a
|
|
28688
|
-
* pick, its children are). Read-only; the editor shows them and may offer
|
|
28689
|
-
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
28690
|
-
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
28691
|
-
* older than D655.
|
|
28692
|
-
*/
|
|
28693
|
-
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
28694
|
-
}), object({
|
|
28695
|
-
state: literal("unreachable"),
|
|
28696
|
-
addonId: string(),
|
|
28697
|
-
reason: string()
|
|
28698
|
-
})]);
|
|
28699
|
-
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
28700
|
-
deviceId: number().int(),
|
|
28701
|
-
name: string(),
|
|
28702
|
-
type: string(),
|
|
28703
|
-
location: string().nullable(),
|
|
28704
|
-
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
28705
|
-
parentName: string().nullable(),
|
|
28706
|
-
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
28707
|
-
suggested: boolean(),
|
|
28708
|
-
/** Why it is suggested ("same location"), null when it is not. */
|
|
28709
|
-
reason: string().nullable()
|
|
28710
|
-
})) });
|
|
28711
|
-
/**
|
|
28712
|
-
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
28713
|
-
* reloaded the host (or, for an accessory child, its parent) because the
|
|
28714
|
-
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
28715
|
-
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
28716
|
-
*/
|
|
28717
|
-
var ExtensionSetResultSchema = object({
|
|
28718
|
-
applied: literal(true),
|
|
28719
|
-
reload: _enum([
|
|
28720
|
-
"none",
|
|
28721
|
-
"host",
|
|
28722
|
-
"parent"
|
|
28723
|
-
])
|
|
28724
|
-
});
|
|
28725
|
-
var ExtensionSlotRefInputSchema = object({
|
|
28726
|
-
deviceId: number().int(),
|
|
28727
|
-
slotRef: string().min(1)
|
|
28728
|
-
});
|
|
28729
|
-
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
28730
|
-
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
28731
|
-
kind: "mutation",
|
|
28732
|
-
auth: "admin"
|
|
28733
|
-
});
|
|
28734
28823
|
/**
|
|
28735
28824
|
* Optional client-side hints sent at session creation to help the provider
|
|
28736
28825
|
* pick the best native source. All fields optional — a viewer that knows
|
|
@@ -39969,6 +40058,18 @@ Object.freeze({
|
|
|
39969
40058
|
addonId: null,
|
|
39970
40059
|
access: "view"
|
|
39971
40060
|
},
|
|
40061
|
+
"databaseSnapshot.listDatabases": {
|
|
40062
|
+
capName: "database-snapshot",
|
|
40063
|
+
capScope: "system",
|
|
40064
|
+
addonId: null,
|
|
40065
|
+
access: "view"
|
|
40066
|
+
},
|
|
40067
|
+
"databaseSnapshot.writeSnapshot": {
|
|
40068
|
+
capName: "database-snapshot",
|
|
40069
|
+
capScope: "system",
|
|
40070
|
+
addonId: null,
|
|
40071
|
+
access: "create"
|
|
40072
|
+
},
|
|
39972
40073
|
"dataStoreProvider.aggregate": {
|
|
39973
40074
|
capName: "data-store-provider",
|
|
39974
40075
|
capScope: "system",
|
|
@@ -48497,6 +48598,18 @@ var STATE_SUMMARY_VARS = [
|
|
|
48497
48598
|
systemEventKinds: [...SUMMARISABLE],
|
|
48498
48599
|
systemEventDeliveries: ["summary"]
|
|
48499
48600
|
},
|
|
48601
|
+
{
|
|
48602
|
+
name: "summarySection",
|
|
48603
|
+
label: "Summary: this section",
|
|
48604
|
+
description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
|
|
48605
|
+
example: "Batterie scariche",
|
|
48606
|
+
group: "system",
|
|
48607
|
+
families: ["rule"],
|
|
48608
|
+
fields: [...RULE_TEXT],
|
|
48609
|
+
kinds: ["system"],
|
|
48610
|
+
systemEventKinds: [...SUMMARISABLE],
|
|
48611
|
+
systemEventDeliveries: ["summary"]
|
|
48612
|
+
},
|
|
48500
48613
|
...STATE_SUMMARY_SECTION_VARS.map((v) => ({
|
|
48501
48614
|
name: v.name,
|
|
48502
48615
|
label: v.label,
|
package/dist/remoteEntry.js
CHANGED
|
@@ -30,7 +30,7 @@ async function d(e) {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
async function f() {
|
|
33
|
-
return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-
|
|
33
|
+
return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-CoNF_D80.mjs")).catch((e) => {
|
|
34
34
|
throw l = void 0, e;
|
|
35
35
|
}), l;
|
|
36
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-pipeline-orchestrator",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.271",
|
|
4
4
|
"description": "Hub-side camera-to-agent load balancer — tracks runner capacity and dispatches attachCamera calls to the optimal pipeline-runner instance",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"build:server": "vite build",
|
|
77
77
|
"build:widgets": "vite build --config vite.widgets.config.ts",
|
|
78
78
|
"dev": "vite build --watch",
|
|
79
|
-
"typecheck": "tsc --noEmit",
|
|
79
|
+
"typecheck": "tsc --noEmit -p tsconfig.spec.json",
|
|
80
80
|
"test": "vitest run"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|