@camstack/addon-admin-ui 1.2.295 → 1.2.297
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/assets/{AddonCollectionPage-BjZWBdqt.js → AddonCollectionPage-B6o3CrJm.js} +1 -1
- package/dist/assets/{Addons-WiIbaSV5.js → Addons-CLx0TABX.js} +1 -1
- package/dist/assets/{AdminTabs-CmeWBU2h.js → AdminTabs-Dz-zU3Kb.js} +1 -1
- package/dist/assets/{AiProfiles-C_BkxImz.js → AiProfiles-uhQJ9cM7.js} +1 -1
- package/dist/assets/{BrokerForm-C-p5JCOm.js → BrokerForm-CrieL2V8.js} +1 -1
- package/dist/assets/{Build-j8wO3qn_.js → Build-ryMzY-F2.js} +1 -1
- package/dist/assets/{Capabilities-C86MVt18.js → Capabilities-BbMlCUl3.js} +1 -1
- package/dist/assets/{CapabilityBadges-CaHJk_kn.js → CapabilityBadges-DPRjowlM.js} +1 -1
- package/dist/assets/{Cluster-fbQbYjCf.js → Cluster-BgOyAnmN.js} +1 -1
- package/dist/assets/{CompositionEditor-CVhFCXxc.js → CompositionEditor-C4k-XC1u.js} +1 -1
- package/dist/assets/{CompositionEditorPage-BSs8AIGK.js → CompositionEditorPage-DLqwil0X.js} +1 -1
- package/dist/assets/{Data-DzpdW7Nd.js → Data-l_C2rP1Y.js} +1 -1
- package/dist/assets/{DetectionIntelligence-BjQqT4V0.js → DetectionIntelligence-DpUgfmZr.js} +1 -1
- package/dist/assets/{DeviceAggregateSection-BxdSltlz.js → DeviceAggregateSection-D6WHay_J.js} +1 -1
- package/dist/assets/{DeviceDetail-DT-kpa14.js → DeviceDetail-Cp1ILpRI.js} +2 -2
- package/dist/assets/{Devices-DNl_NJlM.js → Devices-EK8lbkTh.js} +1 -1
- package/dist/assets/{EmbedPlayerPage-DYfiijJR.js → EmbedPlayerPage-CpZnzmi4.js} +1 -1
- package/dist/assets/{Events-Cl054y7c.js → Events-Yf2kZxNW.js} +1 -1
- package/dist/assets/{FormBuilder-DgJhzkoh.js → FormBuilder-CTSAVvR9.js} +1 -1
- package/dist/assets/{Identity-BWgc_hI2.js → Identity-CbGj2sHC.js} +1 -1
- package/dist/assets/{IntegrationDetail-Myj72iPN.js → IntegrationDetail-DndCrz-c.js} +1 -1
- package/dist/assets/{Integrations-BnVOw3Jz.js → Integrations-DU5E0ptf.js} +1 -1
- package/dist/assets/{Integrations-CSQi0J-j.js → Integrations-Dkldg39k.js} +1 -1
- package/dist/assets/{Locations-CG76NvoR.js → Locations-D38UyYkP.js} +1 -1
- package/dist/assets/{Logs-B1g2mzbM.js → Logs-BGFt1EcI.js} +1 -1
- package/dist/assets/{ModelLicenses-OrqL6ide.js → ModelLicenses-B1wgpejN.js} +1 -1
- package/dist/assets/{MotionZonesSettings-NZEXcsG8.js → MotionZonesSettings-D8M8Q04w.js} +1 -1
- package/dist/assets/{MyAccess-ewXqysbe.js → MyAccess-DsIKwI-L.js} +1 -1
- package/dist/assets/{Network-Cys6FNCA.js → Network-fI97plIN.js} +1 -1
- package/dist/assets/{NodeAddonsSettingsPanel-D2-Cx1iE.js → NodeAddonsSettingsPanel-DdMyNtY6.js} +1 -1
- package/dist/assets/{NodeInferenceDevices-CA7d-kaY.js → NodeInferenceDevices-szoJKt03.js} +1 -1
- package/dist/assets/Notifications-BYj6aZpM.js +1 -0
- package/dist/assets/{Pipeline-B_2BJBZQ.js → Pipeline-C9WJxAiT.js} +1 -1
- package/dist/assets/{Plates-DP-hRQLx.js → Plates-D0D3MpKS.js} +1 -1
- package/dist/assets/{PrivacyMaskSettings-D6vMdxim.js → PrivacyMaskSettings-SZC4SEAg.js} +1 -1
- package/dist/assets/{ProviderIcon-CquwE-_I.js → ProviderIcon-BFGeK1fD.js} +1 -1
- package/dist/assets/{Recordings-CVpg0WGQ.js → Recordings-cFOGbe1I.js} +1 -1
- package/dist/assets/{ScanNetworkModal-ByFzh7Ug.js → ScanNetworkModal-DjhT4ixb.js} +1 -1
- package/dist/assets/{SceneMonitorEditor-CyAWuivX.js → SceneMonitorEditor-BbhkvRmw.js} +1 -1
- package/dist/assets/{Scenes-D0XykrW5.js → Scenes-AfBceOIW.js} +1 -1
- package/dist/assets/{Settings-BcWgYeD-.js → Settings-OryGXRp4.js} +1 -1
- package/dist/assets/{Showroom-3dQ7J2_v.js → Showroom-I0TllNwD.js} +1 -1
- package/dist/assets/{StorageLocationsPanel-ZSVB4Pin.js → StorageLocationsPanel-Cgdn2l-t.js} +1 -1
- package/dist/assets/{Terminal-ClZ3NnXd.js → Terminal-BwxWb4zq.js} +1 -1
- package/dist/assets/{Viewer-BW8VdGUp.js → Viewer-CEJR5MwN.js} +1 -1
- package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-D8lY-jG1.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-Cywkdc5t.js} +1 -1
- package/dist/assets/{archive-CkZkXqo-.js → archive-1kBkJd-7.js} +1 -1
- package/dist/assets/{authed-media-CcvCSJwn.js → authed-media-BUAjWd16.js} +1 -1
- package/dist/assets/{boxes-C4i_E5C-.js → boxes-CaGF6_fi.js} +1 -1
- package/dist/assets/circle-slash-Ct0GeVaM.js +1 -0
- package/dist/assets/{debounced-invalidate-DdBpZuBC.js → debounced-invalidate-Xey73wOa.js} +1 -1
- package/dist/assets/{device-integration-icon-CRjDzZTc.js → device-integration-icon-mWG8cJvN.js} +1 -1
- package/dist/assets/dist-CG8QNdf7.js +349 -0
- package/dist/assets/{dist-H-apj5aF.js → dist-CpvS1gR8.js} +1 -1
- package/dist/assets/{face-bbox-DDVJRJ2e.js → face-bbox-DLUNf1TM.js} +1 -1
- package/dist/assets/{hard-drive-download-Dl1Mi_Bd.js → hard-drive-download-BgHnBbNU.js} +1 -1
- package/dist/assets/{hostInit-NAmBeyk9.js → hostInit-BVAuFCt8.js} +1 -1
- package/dist/assets/{index-D1nOb8NJ.js → index-4TogXFcf.js} +3 -3
- package/dist/assets/index-DOZUgTMC.css +2 -0
- package/dist/assets/{layers-C8SA-eys.js → layers-Di8kv7TA.js} +1 -1
- package/dist/assets/{location-owned-usage-D5g_0SgR.js → location-owned-usage-BRoWx0jW.js} +1 -1
- package/dist/assets/{mf-entry-bootstrap-0-e88f3fd4.js → mf-entry-bootstrap-0-1a22509c.js} +2 -2
- package/dist/assets/{player-overlays-T90xSvHE.js → player-overlays-Bqzr3Tjh.js} +1 -1
- package/dist/assets/remoteEntry-zj4B5tmA.js +1 -0
- package/dist/assets/{send-lMovTHqD.js → send-_pOalXPP.js} +1 -1
- package/dist/assets/{settings-2-DzRjNRlj.js → settings-2-CJt9SGbF.js} +1 -1
- package/dist/assets/{square-check-big-BA8dtN5I.js → square-check-big-BzFBrtST.js} +1 -1
- package/dist/assets/{src-D-Ti2TOa.js → src-BSGPnT6T.js} +8 -8
- package/dist/assets/src-BnA_ovuP.js +349 -0
- package/dist/assets/{use-scenes-feed-DSJqfwpQ.js → use-scenes-feed-DbObG-xM.js} +1 -1
- package/dist/assets/{use-stationary-objects-CI4KvzKa.js → use-stationary-objects-aMpbFTJa.js} +1 -1
- package/dist/assets/{useDevice-DjspuePz.js → useDevice-De8PHIGN.js} +1 -1
- package/dist/assets/useEventInvalidation-Xr6xsOOg.js +1 -0
- package/dist/assets/{useNodeUrlSelection-7nmLVdNp.js → useNodeUrlSelection-B1sfqqks.js} +1 -1
- package/dist/assets/user-round-_b9E4_sG.js +1 -0
- package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-BWLhl4sL.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-D_NQ5pkv.js} +2 -2
- package/dist/index.html +6 -6
- package/dist/server/addon.js +259 -180
- package/package.json +1 -1
- package/dist/assets/Notifications-TpqxFGMq.js +0 -1
- package/dist/assets/circle-slash-KMkDUERh.js +0 -1
- package/dist/assets/dist-CQ1Wje9Q.js +0 -349
- package/dist/assets/index-B1mlJXAi.css +0 -2
- package/dist/assets/remoteEntry-CtptjVdP.js +0 -1
- package/dist/assets/src-BvHjCPd8.js +0 -349
- package/dist/assets/useEventInvalidation-DOcu13bt.js +0 -1
- package/dist/assets/user-round-N5qlAYPg.js +0 -1
package/dist/server/addon.js
CHANGED
|
@@ -11571,6 +11571,68 @@ method(object({
|
|
|
11571
11571
|
password: string()
|
|
11572
11572
|
}), AuthResultSchema.nullable(), { kind: "mutation" }), method(object({ state: string() }), string()), method(record(string(), string()), AuthResultSchema, { kind: "mutation" }), method(object({ token: string() }), AuthResultSchema.nullable());
|
|
11573
11573
|
/**
|
|
11574
|
+
* How long one snapshot may take end to end: the pinned copy of the whole
|
|
11575
|
+
* database plus `PRAGMA integrity_check` over the copy, on the hub's slowest
|
|
11576
|
+
* disk. ~800 MB at a pessimistic 10 MB/s is under 3 minutes; the bound is
|
|
11577
|
+
* generous because a timeout fails the whole backup run.
|
|
11578
|
+
*/
|
|
11579
|
+
var DATABASE_SNAPSHOT_TIMEOUT_MS = 30 * 6e4;
|
|
11580
|
+
/**
|
|
11581
|
+
* The databases an owner snapshots — declared by the OWNER, so a caller never
|
|
11582
|
+
* guesses which file is live from what sits beside it (a cleanly closed
|
|
11583
|
+
* database has no sidecars and is just as owned). Paths are absolute on the
|
|
11584
|
+
* owner's host.
|
|
11585
|
+
*/
|
|
11586
|
+
var DatabaseSnapshotTargetsSchema = object({ databases: array(object({ livePath: string() })) });
|
|
11587
|
+
/** One b-tree table of the snapshot and the rows it holds. */
|
|
11588
|
+
var DatabaseSnapshotTableSchema = object({
|
|
11589
|
+
name: string(),
|
|
11590
|
+
rows: number().int().nonnegative()
|
|
11591
|
+
});
|
|
11592
|
+
/**
|
|
11593
|
+
* What the owner wrote. Every path is ABSOLUTE on the owner's host — the
|
|
11594
|
+
* caller pins the call to its own node, so it can read the file; a caller
|
|
11595
|
+
* that finds the path outside its own data root refuses it rather than
|
|
11596
|
+
* archiving something it cannot place.
|
|
11597
|
+
*/
|
|
11598
|
+
var DatabaseSnapshotResultSchema = object({
|
|
11599
|
+
/** The live database the snapshot copies. Never to be copied as a file. */
|
|
11600
|
+
livePath: string(),
|
|
11601
|
+
/** The verified copy: `<livePath>` + {@link DATABASE_SNAPSHOT_SUFFIX}. */
|
|
11602
|
+
snapshotPath: string(),
|
|
11603
|
+
sizeBytes: number().int().nonnegative(),
|
|
11604
|
+
pageCount: number().int().nonnegative(),
|
|
11605
|
+
pageSize: number().int().positive(),
|
|
11606
|
+
/**
|
|
11607
|
+
* Every b-tree table with its row count. Read inside the SAME read
|
|
11608
|
+
* transaction the copy was taken from, and found EQUAL on the copy — so
|
|
11609
|
+
* this is the content of the snapshot, not an estimate of the source.
|
|
11610
|
+
*/
|
|
11611
|
+
tables: array(DatabaseSnapshotTableSchema),
|
|
11612
|
+
/** Wall time of the pinned copy (row counts included). */
|
|
11613
|
+
copyMs: number().nonnegative(),
|
|
11614
|
+
/** Wall time of the checks on the copy (`integrity_check`, row counts). */
|
|
11615
|
+
verifyMs: number().nonnegative(),
|
|
11616
|
+
/** When the pinned read transaction began (ms epoch) — the snapshot's instant. */
|
|
11617
|
+
takenAt: number()
|
|
11618
|
+
});
|
|
11619
|
+
/**
|
|
11620
|
+
* A snapshot as an ARCHIVE records it (`ArchiveManifest.sqliteSnapshots`):
|
|
11621
|
+
* the same facts, with both paths relative to the archive root (the node's
|
|
11622
|
+
* data dir), because an archive outlives the host that made it.
|
|
11623
|
+
*/
|
|
11624
|
+
var ArchiveSqliteSnapshotSchema = DatabaseSnapshotResultSchema.extend({
|
|
11625
|
+
/** Archive-relative path of the live database the archive does NOT carry. */
|
|
11626
|
+
livePath: string(),
|
|
11627
|
+
/** Archive-relative path of the verified copy it carries in its place. */
|
|
11628
|
+
snapshotPath: string()
|
|
11629
|
+
});
|
|
11630
|
+
method(object({}), DatabaseSnapshotTargetsSchema, { auth: "admin" }), method(object({}), DatabaseSnapshotResultSchema, {
|
|
11631
|
+
kind: "mutation",
|
|
11632
|
+
auth: "admin",
|
|
11633
|
+
timeoutMs: DATABASE_SNAPSHOT_TIMEOUT_MS
|
|
11634
|
+
});
|
|
11635
|
+
/**
|
|
11574
11636
|
* Orchestrator-side destination metadata. The orchestrator computes
|
|
11575
11637
|
* `id = <addonId>:<subId>` from its provider lookup so consumers
|
|
11576
11638
|
* (admin UI, restore flow) see one canonical key.
|
|
@@ -11681,7 +11743,12 @@ var ArchiveManifestSchema = object({
|
|
|
11681
11743
|
locations: array(string()),
|
|
11682
11744
|
entries: array(ArchiveEntrySchema),
|
|
11683
11745
|
totalBytes: number(),
|
|
11684
|
-
totalFiles: number()
|
|
11746
|
+
totalFiles: number(),
|
|
11747
|
+
/**
|
|
11748
|
+
* Live SQLite databases this archive carries as their OWNER's verified
|
|
11749
|
+
* snapshot instead of as files (D693). Absent on archives made before.
|
|
11750
|
+
*/
|
|
11751
|
+
sqliteSnapshots: array(ArchiveSqliteSnapshotSchema).optional()
|
|
11685
11752
|
});
|
|
11686
11753
|
var LocationStatSchema = object({
|
|
11687
11754
|
name: string(),
|
|
@@ -13105,6 +13172,52 @@ var CompositionBlockStateSchema = object({
|
|
|
13105
13172
|
reason: string().optional(),
|
|
13106
13173
|
fields: array(CompositionFieldStateSchema)
|
|
13107
13174
|
});
|
|
13175
|
+
var ComposerBlockSchema = object({
|
|
13176
|
+
id: string().min(1),
|
|
13177
|
+
name: string().min(1).max(120),
|
|
13178
|
+
enabled: boolean(),
|
|
13179
|
+
updatedAt: number(),
|
|
13180
|
+
composition: CompositionSchema
|
|
13181
|
+
});
|
|
13182
|
+
/**
|
|
13183
|
+
* A stored composition row that no longer PARSES — a schema a release
|
|
13184
|
+
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13185
|
+
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13186
|
+
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13187
|
+
*/
|
|
13188
|
+
var ComposerUnreadableBlockSchema = object({
|
|
13189
|
+
id: string().min(1),
|
|
13190
|
+
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13191
|
+
name: string().nullable(),
|
|
13192
|
+
/** The parse error, in the operator's words. */
|
|
13193
|
+
error: string()
|
|
13194
|
+
});
|
|
13195
|
+
method(object({
|
|
13196
|
+
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13197
|
+
integrationId: string().nullable(),
|
|
13198
|
+
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13199
|
+
storeLoaded: boolean(),
|
|
13200
|
+
blocks: array(ComposerBlockSchema),
|
|
13201
|
+
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13202
|
+
restartBlockIds: array(string()),
|
|
13203
|
+
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13204
|
+
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13205
|
+
}), object({
|
|
13206
|
+
blocks: array(object({
|
|
13207
|
+
blockId: string(),
|
|
13208
|
+
status: CompositionRunStatusSchema,
|
|
13209
|
+
reason: string().optional()
|
|
13210
|
+
})),
|
|
13211
|
+
/**
|
|
13212
|
+
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13213
|
+
* integration unknown, its own rows unread or read empty once). An empty
|
|
13214
|
+
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13215
|
+
*/
|
|
13216
|
+
acted: boolean()
|
|
13217
|
+
}), {
|
|
13218
|
+
kind: "mutation",
|
|
13219
|
+
auth: "admin"
|
|
13220
|
+
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13108
13221
|
var NUMBER = {
|
|
13109
13222
|
kind: "fixed",
|
|
13110
13223
|
result: ["number"]
|
|
@@ -13341,52 +13454,6 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
13341
13454
|
auth: "admin",
|
|
13342
13455
|
access: "view"
|
|
13343
13456
|
});
|
|
13344
|
-
var ComposerBlockSchema = object({
|
|
13345
|
-
id: string().min(1),
|
|
13346
|
-
name: string().min(1).max(120),
|
|
13347
|
-
enabled: boolean(),
|
|
13348
|
-
updatedAt: number(),
|
|
13349
|
-
composition: CompositionSchema
|
|
13350
|
-
});
|
|
13351
|
-
/**
|
|
13352
|
-
* A stored composition row that no longer PARSES — a schema a release
|
|
13353
|
-
* tightened, a row written by a newer build. Sent by id so the composer keeps
|
|
13354
|
-
* its device as a placeholder and reports the block `failed` naming the parse
|
|
13355
|
-
* error. Leaving it out would read, twice, exactly like a delete (D49).
|
|
13356
|
-
*/
|
|
13357
|
-
var ComposerUnreadableBlockSchema = object({
|
|
13358
|
-
id: string().min(1),
|
|
13359
|
-
/** The row's stored name column; null when even that is unreadable (the device keeps the name it has). */
|
|
13360
|
-
name: string().nullable(),
|
|
13361
|
-
/** The parse error, in the operator's words. */
|
|
13362
|
-
error: string()
|
|
13363
|
-
});
|
|
13364
|
-
method(object({
|
|
13365
|
-
/** The shared Blocks integration; null until `core-blocks` has reconciled it. */
|
|
13366
|
-
integrationId: string().nullable(),
|
|
13367
|
-
/** False when the `core_blocks` read failed: then nothing may be withdrawn (D49). */
|
|
13368
|
-
storeLoaded: boolean(),
|
|
13369
|
-
blocks: array(ComposerBlockSchema),
|
|
13370
|
-
/** Operator restarts: rebuild these runtimes and re-resolve their sources. Stores nothing (D62). */
|
|
13371
|
-
restartBlockIds: array(string()),
|
|
13372
|
-
/** Composition rows that exist but do not parse: held, never withdrawn, reported failed. */
|
|
13373
|
-
unreadableBlocks: array(ComposerUnreadableBlockSchema)
|
|
13374
|
-
}), object({
|
|
13375
|
-
blocks: array(object({
|
|
13376
|
-
blockId: string(),
|
|
13377
|
-
status: CompositionRunStatusSchema,
|
|
13378
|
-
reason: string().optional()
|
|
13379
|
-
})),
|
|
13380
|
-
/**
|
|
13381
|
-
* False when the composer declared and withdrew NOTHING (store not loaded,
|
|
13382
|
-
* integration unknown, its own rows unread or read empty once). An empty
|
|
13383
|
-
* apply the caller owes is paid off only by one the composer acted on (D49).
|
|
13384
|
-
*/
|
|
13385
|
-
acted: boolean()
|
|
13386
|
-
}), {
|
|
13387
|
-
kind: "mutation",
|
|
13388
|
-
auth: "admin"
|
|
13389
|
-
}), method(object({ blockIds: array(string()) }), object({ states: array(CompositionBlockStateSchema) }), { auth: "admin" });
|
|
13390
13457
|
/**
|
|
13391
13458
|
* `custom-model-registry` — collection cap exposing operator-registered
|
|
13392
13459
|
* custom detection models. Each provider (today: `addon-model-studio`)
|
|
@@ -15235,6 +15302,138 @@ method(object({
|
|
|
15235
15302
|
deviceIds: array(number()).readonly(),
|
|
15236
15303
|
caps: array(string()).readonly().optional()
|
|
15237
15304
|
}), record(string(), record(string(), unknown().nullable())));
|
|
15305
|
+
object({
|
|
15306
|
+
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
15307
|
+
lastPressedAt: number().nullable(),
|
|
15308
|
+
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
15309
|
+
pressCountSinceStart: number()
|
|
15310
|
+
});
|
|
15311
|
+
object({
|
|
15312
|
+
deviceId: number(),
|
|
15313
|
+
timestamp: number()
|
|
15314
|
+
});
|
|
15315
|
+
/**
|
|
15316
|
+
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
15317
|
+
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
15318
|
+
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
15319
|
+
*/
|
|
15320
|
+
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
15321
|
+
DeviceType.Camera;
|
|
15322
|
+
DeviceType.Button, DeviceType.Camera;
|
|
15323
|
+
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
15324
|
+
DeviceType.Camera, DeviceType.Camera;
|
|
15325
|
+
/** A slot's editable value, discriminated on `slot`. */
|
|
15326
|
+
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
15327
|
+
DeviceType.Camera;
|
|
15328
|
+
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
15329
|
+
state: literal("unreachable"),
|
|
15330
|
+
reason: string()
|
|
15331
|
+
})]);
|
|
15332
|
+
/** One provider of slots — the D554 source-listing row. */
|
|
15333
|
+
var ExtensionSourceSchema = object({
|
|
15334
|
+
/** The routing prefix of every `slotRef` this provider serves. */
|
|
15335
|
+
source: string(),
|
|
15336
|
+
label: string(),
|
|
15337
|
+
/** Stamped by the dispatcher from the registry (D557). */
|
|
15338
|
+
addonId: string().optional(),
|
|
15339
|
+
availability: ExtensionSourceAvailabilitySchema
|
|
15340
|
+
});
|
|
15341
|
+
/**
|
|
15342
|
+
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
15343
|
+
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
15344
|
+
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
15345
|
+
* valid source now (a container, which is never a pick). A source in any of
|
|
15346
|
+
* these states is SHOWN, never silently dropped or re-pointed.
|
|
15347
|
+
*/
|
|
15348
|
+
var ExtensionSourceHealthSchema = _enum([
|
|
15349
|
+
"ok",
|
|
15350
|
+
"missing",
|
|
15351
|
+
"foreign",
|
|
15352
|
+
"unavailable"
|
|
15353
|
+
]);
|
|
15354
|
+
var ExtensionSlotSourceSchema = object({
|
|
15355
|
+
deviceId: number().int(),
|
|
15356
|
+
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
15357
|
+
name: string().nullable(),
|
|
15358
|
+
health: ExtensionSourceHealthSchema,
|
|
15359
|
+
detail: string().optional()
|
|
15360
|
+
});
|
|
15361
|
+
/**
|
|
15362
|
+
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
15363
|
+
* reported read-only, named, never written through this contract (D62). The
|
|
15364
|
+
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
15365
|
+
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
15366
|
+
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
15367
|
+
*/
|
|
15368
|
+
var ExtensionSlotActivationSchema = object({
|
|
15369
|
+
state: _enum([
|
|
15370
|
+
"active",
|
|
15371
|
+
"inactive",
|
|
15372
|
+
"unknown"
|
|
15373
|
+
]),
|
|
15374
|
+
authority: string(),
|
|
15375
|
+
detail: string().optional()
|
|
15376
|
+
});
|
|
15377
|
+
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
15378
|
+
state: literal("ok"),
|
|
15379
|
+
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
15380
|
+
slotRef: string(),
|
|
15381
|
+
slot: ExtensionSlotIdSchema,
|
|
15382
|
+
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
15383
|
+
authority: string(),
|
|
15384
|
+
activation: ExtensionSlotActivationSchema.nullable(),
|
|
15385
|
+
value: ExtensionSlotValueSchema,
|
|
15386
|
+
sources: array(ExtensionSlotSourceSchema),
|
|
15387
|
+
/**
|
|
15388
|
+
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
15389
|
+
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
15390
|
+
* the child a picked container stands for (D356 — a container is never a
|
|
15391
|
+
* pick, its children are). Read-only; the editor shows them and may offer
|
|
15392
|
+
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
15393
|
+
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
15394
|
+
* older than D655.
|
|
15395
|
+
*/
|
|
15396
|
+
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
15397
|
+
}), object({
|
|
15398
|
+
state: literal("unreachable"),
|
|
15399
|
+
addonId: string(),
|
|
15400
|
+
reason: string()
|
|
15401
|
+
})]);
|
|
15402
|
+
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
15403
|
+
deviceId: number().int(),
|
|
15404
|
+
name: string(),
|
|
15405
|
+
type: string(),
|
|
15406
|
+
location: string().nullable(),
|
|
15407
|
+
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
15408
|
+
parentName: string().nullable(),
|
|
15409
|
+
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
15410
|
+
suggested: boolean(),
|
|
15411
|
+
/** Why it is suggested ("same location"), null when it is not. */
|
|
15412
|
+
reason: string().nullable()
|
|
15413
|
+
})) });
|
|
15414
|
+
/**
|
|
15415
|
+
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
15416
|
+
* reloaded the host (or, for an accessory child, its parent) because the
|
|
15417
|
+
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
15418
|
+
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
15419
|
+
*/
|
|
15420
|
+
var ExtensionSetResultSchema = object({
|
|
15421
|
+
applied: literal(true),
|
|
15422
|
+
reload: _enum([
|
|
15423
|
+
"none",
|
|
15424
|
+
"host",
|
|
15425
|
+
"parent"
|
|
15426
|
+
])
|
|
15427
|
+
});
|
|
15428
|
+
var ExtensionSlotRefInputSchema = object({
|
|
15429
|
+
deviceId: number().int(),
|
|
15430
|
+
slotRef: string().min(1)
|
|
15431
|
+
});
|
|
15432
|
+
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
15433
|
+
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
15434
|
+
kind: "mutation",
|
|
15435
|
+
auth: "admin"
|
|
15436
|
+
});
|
|
15238
15437
|
/**
|
|
15239
15438
|
* Per-field ownership (D663). A composition may CLAIM fields of a native
|
|
15240
15439
|
* cap's runtime-state slice on an existing device: `replace` overlays the
|
|
@@ -26707,138 +26906,6 @@ DeviceType.Camera, method(object({
|
|
|
26707
26906
|
kind: "query",
|
|
26708
26907
|
auth: "protected"
|
|
26709
26908
|
});
|
|
26710
|
-
object({
|
|
26711
|
-
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
26712
|
-
lastPressedAt: number().nullable(),
|
|
26713
|
-
/** Counter since provider start. Resets on reboot. Useful for metrics/debug. */
|
|
26714
|
-
pressCountSinceStart: number()
|
|
26715
|
-
});
|
|
26716
|
-
object({
|
|
26717
|
-
deviceId: number(),
|
|
26718
|
-
timestamp: number()
|
|
26719
|
-
});
|
|
26720
|
-
/**
|
|
26721
|
-
* The `doorbell-source` extension slot's editable value (D648): the camera's
|
|
26722
|
-
* virtual-doorbell trigger devices, exactly what the wrapper's
|
|
26723
|
-
* `doorbellSources` persists (as `{ deviceId }` records).
|
|
26724
|
-
*/
|
|
26725
|
-
var DoorbellSourceSlotValueSchema = object({ deviceIds: array(number().int().positive()) });
|
|
26726
|
-
DeviceType.Camera;
|
|
26727
|
-
DeviceType.Button, DeviceType.Camera;
|
|
26728
|
-
var ExtensionSlotIdSchema = _enum(["doorbell-source", "linked-devices"]);
|
|
26729
|
-
DeviceType.Camera, DeviceType.Camera;
|
|
26730
|
-
/** A slot's editable value, discriminated on `slot`. */
|
|
26731
|
-
var ExtensionSlotValueSchema = discriminatedUnion("slot", [DoorbellSourceSlotValueSchema.extend({ slot: literal("doorbell-source") }), LinkedDevicesSlotValueSchema.extend({ slot: literal("linked-devices") })]);
|
|
26732
|
-
DeviceType.Camera;
|
|
26733
|
-
var ExtensionSourceAvailabilitySchema = discriminatedUnion("state", [object({ state: literal("ok") }), object({
|
|
26734
|
-
state: literal("unreachable"),
|
|
26735
|
-
reason: string()
|
|
26736
|
-
})]);
|
|
26737
|
-
/** One provider of slots — the D554 source-listing row. */
|
|
26738
|
-
var ExtensionSourceSchema = object({
|
|
26739
|
-
/** The routing prefix of every `slotRef` this provider serves. */
|
|
26740
|
-
source: string(),
|
|
26741
|
-
label: string(),
|
|
26742
|
-
/** Stamped by the dispatcher from the registry (D557). */
|
|
26743
|
-
addonId: string().optional(),
|
|
26744
|
-
availability: ExtensionSourceAvailabilitySchema
|
|
26745
|
-
});
|
|
26746
|
-
/**
|
|
26747
|
-
* How one picked source stands. `missing` — no such device (deleted, or an id
|
|
26748
|
-
* that never existed); `foreign` — a device the slot's owner cannot read from
|
|
26749
|
-
* (a source owned by another addon); `unavailable` — it exists but is not a
|
|
26750
|
-
* valid source now (a container, which is never a pick). A source in any of
|
|
26751
|
-
* these states is SHOWN, never silently dropped or re-pointed.
|
|
26752
|
-
*/
|
|
26753
|
-
var ExtensionSourceHealthSchema = _enum([
|
|
26754
|
-
"ok",
|
|
26755
|
-
"missing",
|
|
26756
|
-
"foreign",
|
|
26757
|
-
"unavailable"
|
|
26758
|
-
]);
|
|
26759
|
-
var ExtensionSlotSourceSchema = object({
|
|
26760
|
-
deviceId: number().int(),
|
|
26761
|
-
/** The device's name, or null when it could not be resolved (`missing`). */
|
|
26762
|
-
name: string().nullable(),
|
|
26763
|
-
health: ExtensionSourceHealthSchema,
|
|
26764
|
-
detail: string().optional()
|
|
26765
|
-
});
|
|
26766
|
-
/**
|
|
26767
|
-
* A DIFFERENT authority that gates whether the slot's sources do anything —
|
|
26768
|
-
* reported read-only, named, never written through this contract (D62). The
|
|
26769
|
-
* virtual doorbell's sources ring only while the wrapper is bound to the
|
|
26770
|
-
* camera, and that binding belongs to `deviceManager.setWrapperActive`.
|
|
26771
|
-
* `unknown` means the gate could not be read; it is not "inactive" (D315).
|
|
26772
|
-
*/
|
|
26773
|
-
var ExtensionSlotActivationSchema = object({
|
|
26774
|
-
state: _enum([
|
|
26775
|
-
"active",
|
|
26776
|
-
"inactive",
|
|
26777
|
-
"unknown"
|
|
26778
|
-
]),
|
|
26779
|
-
authority: string(),
|
|
26780
|
-
detail: string().optional()
|
|
26781
|
-
});
|
|
26782
|
-
var ExtensionSlotRowSchema = discriminatedUnion("state", [object({
|
|
26783
|
-
state: literal("ok"),
|
|
26784
|
-
/** `<source>:<slotId>` — the routing key for `listCandidates` / `setSlot`. */
|
|
26785
|
-
slotRef: string(),
|
|
26786
|
-
slot: ExtensionSlotIdSchema,
|
|
26787
|
-
/** Names the store written (D62), e.g. `virtual-doorbell:doorbellSources`. */
|
|
26788
|
-
authority: string(),
|
|
26789
|
-
activation: ExtensionSlotActivationSchema.nullable(),
|
|
26790
|
-
value: ExtensionSlotValueSchema,
|
|
26791
|
-
sources: array(ExtensionSlotSourceSchema),
|
|
26792
|
-
/**
|
|
26793
|
-
* Devices the owner links to the host ON ITS OWN, by structure, and that
|
|
26794
|
-
* are therefore not in `value` (D655): a camera's device-tree children, and
|
|
26795
|
-
* the child a picked container stands for (D356 — a container is never a
|
|
26796
|
-
* pick, its children are). Read-only; the editor shows them and may offer
|
|
26797
|
-
* per-device options on them (the linked-devices tracked-event opt-in).
|
|
26798
|
-
* Absent when the owner links nothing beyond the picks, and from an owner
|
|
26799
|
-
* older than D655.
|
|
26800
|
-
*/
|
|
26801
|
-
impliedSources: array(ExtensionSlotSourceSchema).optional()
|
|
26802
|
-
}), object({
|
|
26803
|
-
state: literal("unreachable"),
|
|
26804
|
-
addonId: string(),
|
|
26805
|
-
reason: string()
|
|
26806
|
-
})]);
|
|
26807
|
-
var ExtensionCandidatesSchema = object({ candidates: array(object({
|
|
26808
|
-
deviceId: number().int(),
|
|
26809
|
-
name: string(),
|
|
26810
|
-
type: string(),
|
|
26811
|
-
location: string().nullable(),
|
|
26812
|
-
/** The container a child belongs to — "Spotlight 2" alone does not say which. */
|
|
26813
|
-
parentName: string().nullable(),
|
|
26814
|
-
/** Pre-marked by the owner's suggestion rule. NEVER saved on its own (D356). */
|
|
26815
|
-
suggested: boolean(),
|
|
26816
|
-
/** Why it is suggested ("same location"), null when it is not. */
|
|
26817
|
-
reason: string().nullable()
|
|
26818
|
-
})) });
|
|
26819
|
-
/**
|
|
26820
|
-
* What a write did. `none` — applied in place. `host` / `parent` — the owner
|
|
26821
|
-
* reloaded the host (or, for an accessory child, its parent) because the
|
|
26822
|
-
* write changed what the host REGISTERS. A slot never adds a capability to its
|
|
26823
|
-
* host — that is a composition (D663) — so today's owners answer `none`.
|
|
26824
|
-
*/
|
|
26825
|
-
var ExtensionSetResultSchema = object({
|
|
26826
|
-
applied: literal(true),
|
|
26827
|
-
reload: _enum([
|
|
26828
|
-
"none",
|
|
26829
|
-
"host",
|
|
26830
|
-
"parent"
|
|
26831
|
-
])
|
|
26832
|
-
});
|
|
26833
|
-
var ExtensionSlotRefInputSchema = object({
|
|
26834
|
-
deviceId: number().int(),
|
|
26835
|
-
slotRef: string().min(1)
|
|
26836
|
-
});
|
|
26837
|
-
var ExtensionSetSlotInputSchema = ExtensionSlotRefInputSchema.extend({ value: ExtensionSlotValueSchema });
|
|
26838
|
-
method(object({ deviceId: number().int() }), array(ExtensionSourceSchema)), method(object({ deviceId: number().int() }), array(ExtensionSlotRowSchema)), method(ExtensionSlotRefInputSchema, ExtensionCandidatesSchema), method(ExtensionSetSlotInputSchema, ExtensionSetResultSchema, {
|
|
26839
|
-
kind: "mutation",
|
|
26840
|
-
auth: "admin"
|
|
26841
|
-
});
|
|
26842
26909
|
/**
|
|
26843
26910
|
* Optional client-side hints sent at session creation to help the provider
|
|
26844
26911
|
* pick the best native source. All fields optional — a viewer that knows
|
|
@@ -37938,6 +38005,18 @@ Object.freeze({
|
|
|
37938
38005
|
addonId: null,
|
|
37939
38006
|
access: "view"
|
|
37940
38007
|
},
|
|
38008
|
+
"databaseSnapshot.listDatabases": {
|
|
38009
|
+
capName: "database-snapshot",
|
|
38010
|
+
capScope: "system",
|
|
38011
|
+
addonId: null,
|
|
38012
|
+
access: "view"
|
|
38013
|
+
},
|
|
38014
|
+
"databaseSnapshot.writeSnapshot": {
|
|
38015
|
+
capName: "database-snapshot",
|
|
38016
|
+
capScope: "system",
|
|
38017
|
+
addonId: null,
|
|
38018
|
+
access: "create"
|
|
38019
|
+
},
|
|
37941
38020
|
"dataStoreProvider.aggregate": {
|
|
37942
38021
|
capName: "data-store-provider",
|
|
37943
38022
|
capScope: "system",
|
|
@@ -47005,7 +47084,7 @@ var AdminUIAddon = class extends BaseAddon {
|
|
|
47005
47084
|
capability: adminUiCapability,
|
|
47006
47085
|
provider: {
|
|
47007
47086
|
getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
|
|
47008
|
-
getVersion: async () => ({ version: "1.2.
|
|
47087
|
+
getVersion: async () => ({ version: "1.2.297" })
|
|
47009
47088
|
}
|
|
47010
47089
|
}];
|
|
47011
47090
|
}
|