@camstack/server 1.2.937 → 1.2.939
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/CHANGELOG.md +16 -0
- package/package.json +8 -12
- package/system/dist/{addon-pages.cap-CdvuO-QW.js → addon-pages.cap-B3gHFDYW.js} +4 -2
- package/system/dist/{addon-pages.cap-B-NaVAk8.mjs → addon-pages.cap-BLNN6ypr.mjs} +4 -2
- package/system/dist/addon-runner.js +8 -0
- package/system/dist/addon-runner.mjs +8 -0
- package/system/dist/{addon-settings.cap-BlsqpQXD.mjs → addon-settings.cap-CZ4MC7ha.mjs} +9 -1
- package/system/dist/{addon-settings.cap-B44t-Kbx.js → addon-settings.cap-DrLdMFIe.js} +9 -1
- package/system/dist/{addon-widgets.cap-BY-wN_Zi.mjs → addon-widgets.cap-BbmWMzIH.mjs} +4 -2
- package/system/dist/{addon-widgets.cap-CQRbYspY.js → addon-widgets.cap-DuCe2VRj.js} +4 -2
- package/system/dist/{base-device-B-jLBwhX.mjs → base-device-BcGO6LTT.mjs} +2 -2
- package/system/dist/{base-device-BOZCZY4S.js → base-device-CH8rfD9j.js} +2 -2
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +2 -2
- package/system/dist/builtins/alerts/alerts.addon.mjs +2 -2
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +4 -4
- package/system/dist/builtins/camera-grid/index.mjs +4 -4
- package/system/dist/builtins/composer/composer.addon.js +8 -8
- package/system/dist/builtins/composer/composer.addon.mjs +8 -8
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +11 -11
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +11 -11
- package/system/dist/builtins/core-notifier/core-notifier.addon.js +3 -3
- package/system/dist/builtins/core-notifier/core-notifier.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +3 -3
- package/system/dist/builtins/device-history/device-history.addon.mjs +3 -3
- package/system/dist/builtins/device-manager/device-manager.addon.js +9 -9
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +9 -9
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +1 -1
- package/system/dist/builtins/keychain/index.mjs +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/system/dist/builtins/local-network/local-network.addon.js +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +3 -3
- package/system/dist/builtins/loki-logging/index.mjs +3 -3
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +2 -2
- package/system/dist/builtins/snapshot/index.mjs +2 -2
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-pragmas.d.ts +2 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings-backend.d.ts +3 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +7 -7
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +7 -7
- package/system/dist/builtins/sqlite-storage/storage-report-runner.d.ts +6 -0
- package/system/dist/builtins/sqlite-storage/storage-report-worker.d.ts +20 -0
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +3 -3
- package/system/dist/builtins/winston-logging/index.js +2 -2
- package/system/dist/builtins/winston-logging/index.mjs +2 -2
- package/system/dist/{calendars.cap-KbMVKbM5.js → calendars.cap-CGeOtL7Q.js} +7 -1
- package/system/dist/{calendars.cap-DyQFPDr1.mjs → calendars.cap-DQc6Q6qS.mjs} +7 -1
- package/system/dist/{capability-definition-BRoGprGl.js → capability-definition-BEVd01Xj.js} +8 -4
- package/system/dist/{capability-definition-DLD3HR3U.mjs → capability-definition-C1TLUVJR.mjs} +8 -4
- package/system/dist/{capture-engine-DceE_Lxa.mjs → capture-engine-CUZ3W0oZ.mjs} +1 -1
- package/system/dist/{capture-engine-oWy4DQn8.js → capture-engine-mtDXEBAq.js} +1 -1
- package/system/dist/{composition-sources-DSf2fQ9L.js → composition-sources-DCi-ldEb.js} +2 -2
- package/system/dist/{composition-sources-2yNL7KIF.mjs → composition-sources-DgayqgHH.mjs} +2 -2
- package/system/dist/{core-blocks.cap-XUCnn7lE.mjs → core-blocks.cap-CWKQSevR.mjs} +38 -3
- package/system/dist/{core-blocks.cap-COZ5qkRy.js → core-blocks.cap-yLx6soaY.js} +38 -3
- package/system/dist/{database-snapshot.cap-BHWr6SRl.js → database-snapshot.cap-BNS5c60M.js} +2 -2
- package/system/dist/{database-snapshot.cap-Dgsn_9hb.mjs → database-snapshot.cap-a3lSf4hl.mjs} +2 -2
- package/system/dist/{device-manager.cap-B0XOXW5n.mjs → device-manager.cap-DIBK62-r.mjs} +14 -3
- package/system/dist/{device-manager.cap-DD66WJGT.js → device-manager.cap-DyHOIh5T.js} +14 -3
- package/system/dist/{device-provider.cap-meVxP-ZT.js → device-provider.cap-BKUGJSo0.js} +9 -1
- package/system/dist/{device-provider.cap-DNbklrhV.mjs → device-provider.cap-DU6HMUXH.mjs} +9 -1
- package/system/dist/{device-row-store-Bq3_mCoZ.mjs → device-row-store-C-_R-h1Z.mjs} +1 -1
- package/system/dist/{device-row-store-CSnsi_ri.js → device-row-store-O4mNbp5q.js} +1 -1
- package/system/dist/{device-transitions.cap-DETXRGXI.mjs → device-transitions.cap-DCXP3zwY.mjs} +7 -1
- package/system/dist/{device-transitions.cap-BDn0butT.js → device-transitions.cap-zOGvAIHz.js} +7 -1
- package/system/dist/{error.cap-BgBtdpm5.js → error.cap-BxLEHP6z.js} +1 -1
- package/system/dist/{error.cap-Xydi4TyZ.mjs → error.cap-DCwbIGEF.mjs} +1 -1
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/index.js +15 -7
- package/system/dist/index.mjs +15 -7
- package/system/dist/{integration-instances.cap-DskCCCIu.mjs → integration-instances.cap-BWttO42A.mjs} +10 -1
- package/system/dist/{integration-instances.cap-BZdT6WIs.js → integration-instances.cap-DSieF1w3.js} +10 -1
- package/system/dist/{keychain-admin.cap-CKdAe74a.mjs → keychain-admin.cap-DOvL8TMG.mjs} +5 -1
- package/system/dist/{keychain-admin.cap-BnsWz44L.js → keychain-admin.cap-DcRCRWtu.js} +5 -1
- package/system/dist/{log-destination.cap-Dz-Fli-t.js → log-destination.cap-BzTWMj-T.js} +4 -1
- package/system/dist/{log-destination.cap-rHxFjAsU.mjs → log-destination.cap-QYMJPJwK.mjs} +4 -1
- package/system/dist/{low-power-sleep.cap-DJH5wJpA.js → low-power-sleep.cap-B6mz6ojP.js} +1 -1
- package/system/dist/{low-power-sleep.cap-CwQkEFVD.mjs → low-power-sleep.cap-C3Vi8Vxj.mjs} +1 -1
- package/system/dist/{metrics-provider.cap-l39Ma4BH.mjs → metrics-provider.cap-01SwpLu5.mjs} +1 -1
- package/system/dist/{metrics-provider.cap-CmKvAp5K.js → metrics-provider.cap-BMKD5FH3.js} +1 -1
- package/system/dist/{migration-DKotTSc0.js → migration-BOQlFZCN.js} +1 -1
- package/system/dist/{migration-CpbO0xPG.mjs → migration-DGAc6ywR.mjs} +1 -1
- package/system/dist/{network-access.cap-XvDFK4J2.js → network-access.cap-BEN_uRVb.js} +12 -2
- package/system/dist/{network-access.cap-CTdzeqnQ.mjs → network-access.cap-Dy8FNNVs.mjs} +12 -2
- package/system/dist/{notification-rules.cap-JQPEAUwq.mjs → notification-rules.cap-0vVvsxQ1.mjs} +14 -1
- package/system/dist/{notification-rules.cap-v-cuIrwq.js → notification-rules.cap-Drwz-A4n.js} +14 -1
- package/system/dist/{notification-targets-_vr0nUsl.js → notification-targets-Cc_3OBH9.js} +1 -1
- package/system/dist/{notification-targets-CPSDChxA.mjs → notification-targets-DR-D-vIt.mjs} +1 -1
- package/system/dist/{platform-probe.cap-UOsI8bJL.js → platform-probe.cap-C0N9CugQ.js} +5 -1
- package/system/dist/{platform-probe.cap-BfGw4FsA.mjs → platform-probe.cap-DzZ7xUfS.mjs} +5 -1
- package/system/dist/{prefix-walk-MNJLhOQ4.js → prefix-walk-BRlQiqVg.js} +2 -2
- package/system/dist/{prefix-walk-_jmw00Vw.mjs → prefix-walk-BrrMuJBM.mjs} +2 -2
- package/system/dist/{ptz-autotrack.cap-CVm6a1Y-.mjs → ptz-autotrack.cap-CDF6FeTK.mjs} +1 -1
- package/system/dist/{ptz-autotrack.cap-E_n2XU8K.js → ptz-autotrack.cap-DOz0xL0O.js} +1 -1
- package/system/dist/{record-entries.cap-DWtLFTqk.mjs → record-entries.cap-BINjYZ1Q.mjs} +5 -2
- package/system/dist/{record-entries.cap-BM5lZzWh.js → record-entries.cap-NYExLM0O.js} +5 -2
- package/system/dist/{recording-archive.cap-BkI6Y-n1.js → recording-archive.cap-BPJ7kvnd.js} +6 -1
- package/system/dist/{recording-archive.cap-CzQ8cKsc.mjs → recording-archive.cap-RHAN45fa.mjs} +6 -1
- package/system/dist/{records.cap-BKJ9vylh.mjs → records.cap-DRwT1JbL.mjs} +10 -1
- package/system/dist/{records.cap-yxP6a69W.js → records.cap-wLi7r4Hj.js} +10 -1
- package/system/dist/{rename-composition-block-BkuT7Q9a.js → rename-composition-block-D44wnN_m.js} +401 -45
- package/system/dist/{rename-composition-block-BGsOdbXV.mjs → rename-composition-block-SPaUkmam.mjs} +401 -45
- package/system/dist/{restore-archive-D_Q_WeLG.mjs → restore-archive-BHkSRJYW.mjs} +2 -2
- package/system/dist/{restore-archive-BxpEs8a_.js → restore-archive-DRv1bPY7.js} +2 -2
- package/system/dist/{settings-store.cap-CBBKWyVh.js → settings-store.cap-BhOIBtO4.js} +1 -1
- package/system/dist/{settings-store.cap-DMRr0OD7.mjs → settings-store.cap-CaDSOqgK.mjs} +1 -1
- package/system/dist/{snapshot.cap-B6-9cwt9.mjs → snapshot.cap-BkfHpJVO.mjs} +3 -1
- package/system/dist/{snapshot.cap-CuP-6HSJ.js → snapshot.cap-Cis6JRwn.js} +3 -1
- package/system/dist/{storage-admin.cap-Dh59lsb1.mjs → storage-admin.cap-Ci4QbL6P.mjs} +4 -4
- package/system/dist/{storage-admin.cap-jCrZczO9.js → storage-admin.cap-DqW1ol4j.js} +4 -4
- package/system/dist/{storage-migration.cap-BN70KR6v.js → storage-migration.cap-CDOhpCQw.js} +23 -1
- package/system/dist/{storage-migration.cap-DlkRRFM8.mjs → storage-migration.cap-Ciw84XPm.mjs} +23 -1
- package/system/dist/{storage-occupancy.cap-DlDL_YBp.js → storage-occupancy.cap-B-Z8f8TZ.js} +5 -3
- package/system/dist/{storage-occupancy.cap-B85IBCO3.mjs → storage-occupancy.cap-B-wbMPmx.mjs} +5 -3
- package/system/dist/{storage-provider.cap-CplEGm7y.js → storage-provider.cap-B3Hm_BGM.js} +15 -1
- package/system/dist/{storage-provider.cap-B7mvKa0M.mjs → storage-provider.cap-CnN9ULbc.mjs} +15 -1
- package/system/dist/storage-report-worker.js +77 -0
- package/system/dist/storage-report-worker.mjs +70 -0
- package/system/dist/{stream-catalog.cap-Cp9GxHl8.mjs → stream-catalog.cap-D1Hy19Yc.mjs} +30 -2
- package/system/dist/{stream-catalog.cap-CG9R-dD2.js → stream-catalog.cap-D8Y-uXcy.js} +30 -2
- package/system/dist/{user-management.cap-Zpc4grqS.mjs → user-management.cap-Ctd4c_im.mjs} +26 -1
- package/system/dist/{user-management.cap-CPtvvmgp.js → user-management.cap-DyVb68rY.js} +26 -1
- package/system/dist/{vector-store.cap-q9AkgqSQ.js → vector-store.cap-DEVI-XJC.js} +6 -1
- package/system/dist/{vector-store.cap-CYcwQuWa.mjs → vector-store.cap-Df60cnrJ.mjs} +6 -1
- package/system/dist/{wal-maintenance-hh3FWtz2.mjs → wal-maintenance-CjpslZUL.mjs} +0 -0
- package/system/dist/{wal-maintenance-Cb1i3shp.js → wal-maintenance-DKTXQ7UF.js} +0 -0
- package/system/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { b as EventCategory, i as collectSecretMarkerRefs, t as BaseAddon } from "../../base-addon-Md14i7pe.mjs";
|
|
2
2
|
import { A as NoCallerError, C as normalizeSecretOwner, E as DeclarationRefusedError, L as TransactRefusedError, Z as errMsg$1, k as InvalidRecordError, v as RECORD_SWEEP_INTERVAL_MS, z as UnknownRecordKindError } from "../../scoped-settings-DVWUIP7Z.mjs";
|
|
3
3
|
import { n as RecordKindDeclarationSchema } from "../../record-kind-ub6NXqfh.mjs";
|
|
4
|
-
import { A as callRecords, D as RecordsEngine, E as databaseOfStore, M as controlTargetOf, O as callControl, T as trustResult, _ as rehydrateError, a as WalMaintenance, b as collectTransferables, c as vectorProviderOfOwnedFile, d as callMigrate, f as migrateTargetOf, g as DuplicatePlacementError, h as DatabaseBusyError, j as callVector, k as callData, l as SqliteSettingsBackend, m as CrossDatabaseTransactError, o as createVectorIndex, p as CollectionPlacementError, s as vectorProviderOf, u as HUB_MIGRATIONS, x as isFileHostMessage } from "../../wal-maintenance-
|
|
5
|
-
import { i as DATA_STORE_DATABASES } from "../../settings-store.cap-
|
|
6
|
-
import { c as catalogueIssues, l as orderMigrations, r as MigrationMetaSchema } from "../../migration-
|
|
7
|
-
import { a as databaseSnapshotCapability, i as DATABASE_SNAPSHOT_TIMEOUT_MS, n as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, r as DATABASE_SNAPSHOT_SUFFIX } from "../../database-snapshot.cap-
|
|
8
|
-
import { i as dataStoreProviderCapability, n as migrationsCapability, r as MIGRATION_API_V1_METHODS, t as storageAdminCapability } from "../../storage-admin.cap-
|
|
9
|
-
import { o as recordsCapability } from "../../records.cap-
|
|
10
|
-
import { n as vectorStoreCapability } from "../../vector-store.cap-
|
|
4
|
+
import { A as callRecords, D as RecordsEngine, E as databaseOfStore, M as controlTargetOf, O as callControl, T as trustResult, _ as rehydrateError, a as WalMaintenance, b as collectTransferables, c as vectorProviderOfOwnedFile, d as callMigrate, f as migrateTargetOf, g as DuplicatePlacementError, h as DatabaseBusyError, j as callVector, k as callData, l as SqliteSettingsBackend, m as CrossDatabaseTransactError, o as createVectorIndex, p as CollectionPlacementError, s as vectorProviderOf, u as HUB_MIGRATIONS, x as isFileHostMessage } from "../../wal-maintenance-CjpslZUL.mjs";
|
|
5
|
+
import { i as DATA_STORE_DATABASES } from "../../settings-store.cap-CaDSOqgK.mjs";
|
|
6
|
+
import { c as catalogueIssues, l as orderMigrations, r as MigrationMetaSchema } from "../../migration-DGAc6ywR.mjs";
|
|
7
|
+
import { a as databaseSnapshotCapability, i as DATABASE_SNAPSHOT_TIMEOUT_MS, n as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, r as DATABASE_SNAPSHOT_SUFFIX } from "../../database-snapshot.cap-a3lSf4hl.mjs";
|
|
8
|
+
import { i as dataStoreProviderCapability, n as migrationsCapability, r as MIGRATION_API_V1_METHODS, t as storageAdminCapability } from "../../storage-admin.cap-Ci4QbL6P.mjs";
|
|
9
|
+
import { o as recordsCapability } from "../../records.cap-DRwT1JbL.mjs";
|
|
10
|
+
import { n as vectorStoreCapability } from "../../vector-store.cap-Df60cnrJ.mjs";
|
|
11
11
|
import { n as defineCustomActions, t as customAction } from "../../custom-actions-BFUSalC9.mjs";
|
|
12
12
|
import { t as RUNTIME_DEFAULTS } from "../../constants-DCLpoF4L.mjs";
|
|
13
13
|
import { t as bareAddonId } from "../../addon-id-CVg1_r5E.mjs";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Reads the `dbstat` rows of one database file, somewhere off the serving thread. */
|
|
2
|
+
export type StorageRowsReader = (dbPath: string) => Promise<readonly unknown[]>;
|
|
3
|
+
/** `dist/storage-report-worker.js` at the package root (see `wal-checkpointer.ts`). */
|
|
4
|
+
export declare function defaultStorageReportWorkerPath(): string;
|
|
5
|
+
/** Run the report on a worker thread with its own read-only connection. */
|
|
6
|
+
export declare function readStorageRowsInWorker(workerPath?: string): StorageRowsReader;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Database from "better-sqlite3";
|
|
2
|
+
/** Page cache of the report connection (negative = KiB for SQLite). */
|
|
3
|
+
export declare const STORAGE_REPORT_CACHE_PRAGMA = -2048;
|
|
4
|
+
export declare const STORAGE_REPORT_SQL = "SELECT d.name AS name,\n COALESCE(m.tbl_name, d.name) AS tableName,\n SUM(d.pgsize) AS bytes,\n COUNT(*) AS pages,\n COALESCE(m.type, 'unknown') AS kind\n FROM dbstat d\n LEFT JOIN sqlite_master m ON m.name = d.name\n GROUP BY d.name, m.tbl_name, m.type";
|
|
5
|
+
/** What the thread is told. */
|
|
6
|
+
export interface StorageReportWorkerData {
|
|
7
|
+
readonly storageReportPath: string;
|
|
8
|
+
}
|
|
9
|
+
export type StorageReportWorkerMessage = {
|
|
10
|
+
readonly kind: "rows";
|
|
11
|
+
readonly rows: readonly unknown[];
|
|
12
|
+
} | {
|
|
13
|
+
readonly kind: "failed";
|
|
14
|
+
readonly error: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function isStorageReportWorkerData(value: unknown): value is StorageReportWorkerData;
|
|
17
|
+
/** Open the report connection: read-only, no map, a small cache. */
|
|
18
|
+
export declare function openReportConnection(livePath: string): Database.Database;
|
|
19
|
+
/** The `dbstat` rows of one file, read through {@link openReportConnection}. */
|
|
20
|
+
export declare function readStorageRows(livePath: string): unknown[];
|
|
@@ -6,12 +6,12 @@ const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
|
6
6
|
const require_base_addon = require("../../base-addon-DD5dIfcZ.js");
|
|
7
7
|
const require_scoped_settings = require("../../scoped-settings-CylSSq_8.js");
|
|
8
8
|
const require_record_kind = require("../../record-kind-DoBfYHCs.js");
|
|
9
|
-
const require_settings_store_cap = require("../../settings-store.cap-
|
|
9
|
+
const require_settings_store_cap = require("../../settings-store.cap-BhOIBtO4.js");
|
|
10
10
|
const require_relocate = require("../../relocate-CdVQAk-w.js");
|
|
11
11
|
const require_storage_location_mode = require("../../storage-location-mode-CS4sMzo-.js");
|
|
12
12
|
const require_storage_location = require("../../storage-location-CTweDMZf.js");
|
|
13
|
-
const require_storage_migration_cap = require("../../storage-migration.cap-
|
|
14
|
-
const require_integration_instances_cap = require("../../integration-instances.cap-
|
|
13
|
+
const require_storage_migration_cap = require("../../storage-migration.cap-CDOhpCQw.js");
|
|
14
|
+
const require_integration_instances_cap = require("../../integration-instances.cap-DSieF1w3.js");
|
|
15
15
|
const require_custom_actions = require("../../custom-actions-D92NRi2c.js");
|
|
16
16
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
17
17
|
let zod = require("zod");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { b as EventCategory, c as normalizeNodeId, f as defineAddonMigrations, o as resolveSecretMarkers, t as BaseAddon } from "../../base-addon-Md14i7pe.mjs";
|
|
2
2
|
import { H as isSecretClear, J as REDACTED_SECRET, K as makeSecretMarker, U as isSecretFieldView, W as isSecretMarker, Y as collectSecretConfigKeys, b as buildSecretRef, o as recordSecretRef, q as toSecretFieldView, w as parseSecretRef } from "../../scoped-settings-DVWUIP7Z.mjs";
|
|
3
3
|
import { s as defineRecordKinds } from "../../record-kind-ub6NXqfh.mjs";
|
|
4
|
-
import { f as settingsStoreCapability } from "../../settings-store.cap-
|
|
4
|
+
import { f as settingsStoreCapability } from "../../settings-store.cap-CaDSOqgK.mjs";
|
|
5
5
|
import { p as StorageCleanupJobSchema, v as StorageMigrationJobSchema } from "../../relocate-CoZZTui1.mjs";
|
|
6
6
|
import { a as mayReadLocation, c as modeMayWrite, d as withLocationMode, l as resolveLocationMode, n as StorageLocationModeSchema, o as mayWriteToLocation, r as evictionPolicyOfLocation, s as modeForSwitch, t as STORAGE_LOCATION_MODES, u as switchStateOfMode } from "../../storage-location-mode-B21UVRRX.mjs";
|
|
7
7
|
import { a as gbToBytes, i as StorageLocationTypeSchema, o as isLocationEnabled } from "../../storage-location-CBT8GCD6.mjs";
|
|
8
|
-
import { n as storageCapability, t as storageMigrationCapability } from "../../storage-migration.cap-
|
|
9
|
-
import { t as integrationInstancesCapability } from "../../integration-instances.cap-
|
|
8
|
+
import { n as storageCapability, t as storageMigrationCapability } from "../../storage-migration.cap-Ciw84XPm.mjs";
|
|
9
|
+
import { t as integrationInstancesCapability } from "../../integration-instances.cap-BWttO42A.mjs";
|
|
10
10
|
import { n as defineCustomActions, t as customAction } from "../../custom-actions-BFUSalC9.mjs";
|
|
11
11
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
12
12
|
import { z } from "zod";
|
|
@@ -4,8 +4,8 @@ Object.defineProperties(exports, {
|
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
6
|
const require_base_addon = require("../../base-addon-DD5dIfcZ.js");
|
|
7
|
-
const require_migration = require("../../migration-
|
|
8
|
-
const require_log_destination_cap = require("../../log-destination.cap-
|
|
7
|
+
const require_migration = require("../../migration-BOQlFZCN.js");
|
|
8
|
+
const require_log_destination_cap = require("../../log-destination.cap-BzTWMj-T.js");
|
|
9
9
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
10
10
|
const require_log_file_read_protocol = require("../../log-file-read-protocol-DSV_vQRb.js");
|
|
11
11
|
let node_path = require("node:path");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { f as defineAddonMigrations, t as BaseAddon } from "../../base-addon-Md14i7pe.mjs";
|
|
2
|
-
import { u as preconditionOf } from "../../migration-
|
|
3
|
-
import { t as logDestinationCapability } from "../../log-destination.cap-
|
|
2
|
+
import { u as preconditionOf } from "../../migration-DGAc6ywR.mjs";
|
|
3
|
+
import { t as logDestinationCapability } from "../../log-destination.cap-QYMJPJwK.mjs";
|
|
4
4
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
5
5
|
import { a as LogFileIndexStore, i as serveRead, n as isFromReader, t as CancelBook } from "../../log-file-read-protocol-hTaAsYlX.mjs";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_capability_definition = require("./capability-definition-
|
|
1
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
2
2
|
const require_system_reasons = require("./system-reasons-Be_k1W8g.js");
|
|
3
3
|
let zod = require("zod");
|
|
4
4
|
//#region ../types/dist/esm/capabilities/calendar-source.cap.mjs
|
|
@@ -60,7 +60,9 @@ var calendarSourceCapability = {
|
|
|
60
60
|
internal: true,
|
|
61
61
|
providerKind: "calendar",
|
|
62
62
|
methods: {
|
|
63
|
+
/** List the calendars this source provides. */
|
|
63
64
|
listCalendars: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(CalendarInfoSchema).readonly(), { auth: "admin" }),
|
|
65
|
+
/** List events of this source's calendars in a time window. */
|
|
64
66
|
listEvents: /* @__PURE__ */ require_capability_definition.method(CalendarListEventsInputSchema, /* @__PURE__ */ zod.z.array(CalendarEventSchema).readonly(), { auth: "admin" })
|
|
65
67
|
},
|
|
66
68
|
vocabulary: { notOperatorFacing: require_system_reasons.NOT_A_DEVICE.INTERNAL }
|
|
@@ -120,12 +122,16 @@ var calendarsCapability = {
|
|
|
120
122
|
scope: "system",
|
|
121
123
|
mode: "singleton",
|
|
122
124
|
methods: {
|
|
125
|
+
/** List the calendars from every calendar source. */
|
|
123
126
|
listCalendars: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.void(), /* @__PURE__ */ zod.z.array(CalendarEntrySchema).readonly(), { auth: "admin" }),
|
|
127
|
+
/** List calendar events in a time window. */
|
|
124
128
|
listEvents: /* @__PURE__ */ require_capability_definition.method(CalendarListEventsInputSchema, /* @__PURE__ */ zod.z.array(CalendarEventSchema).readonly(), { auth: "admin" }),
|
|
129
|
+
/** The calling user's calendar preferences. */
|
|
125
130
|
getPreferences: /* @__PURE__ */ require_capability_definition.method(/* @__PURE__ */ zod.z.object({}), CalendarPreferencesSchema, {
|
|
126
131
|
auth: "admin",
|
|
127
132
|
caller: "required"
|
|
128
133
|
}),
|
|
134
|
+
/** Change the calling user's preference for one calendar. */
|
|
129
135
|
setCalendarPreference: /* @__PURE__ */ require_capability_definition.method(CalendarSetPreferenceInputSchema, CalendarPreferencesSchema, {
|
|
130
136
|
auth: "admin",
|
|
131
137
|
kind: "mutation",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as method } from "./capability-definition-
|
|
1
|
+
import { c as method } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region ../types/dist/esm/capabilities/calendar-source.cap.mjs
|
|
@@ -60,7 +60,9 @@ var calendarSourceCapability = {
|
|
|
60
60
|
internal: true,
|
|
61
61
|
providerKind: "calendar",
|
|
62
62
|
methods: {
|
|
63
|
+
/** List the calendars this source provides. */
|
|
63
64
|
listCalendars: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(CalendarInfoSchema).readonly(), { auth: "admin" }),
|
|
65
|
+
/** List events of this source's calendars in a time window. */
|
|
64
66
|
listEvents: /* @__PURE__ */ method(CalendarListEventsInputSchema, /* @__PURE__ */ z.array(CalendarEventSchema).readonly(), { auth: "admin" })
|
|
65
67
|
},
|
|
66
68
|
vocabulary: { notOperatorFacing: NOT_A_DEVICE.INTERNAL }
|
|
@@ -120,12 +122,16 @@ var calendarsCapability = {
|
|
|
120
122
|
scope: "system",
|
|
121
123
|
mode: "singleton",
|
|
122
124
|
methods: {
|
|
125
|
+
/** List the calendars from every calendar source. */
|
|
123
126
|
listCalendars: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.array(CalendarEntrySchema).readonly(), { auth: "admin" }),
|
|
127
|
+
/** List calendar events in a time window. */
|
|
124
128
|
listEvents: /* @__PURE__ */ method(CalendarListEventsInputSchema, /* @__PURE__ */ z.array(CalendarEventSchema).readonly(), { auth: "admin" }),
|
|
129
|
+
/** The calling user's calendar preferences. */
|
|
125
130
|
getPreferences: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), CalendarPreferencesSchema, {
|
|
126
131
|
auth: "admin",
|
|
127
132
|
caller: "required"
|
|
128
133
|
}),
|
|
134
|
+
/** Change the calling user's preference for one calendar. */
|
|
129
135
|
setCalendarPreference: /* @__PURE__ */ method(CalendarSetPreferenceInputSchema, CalendarPreferencesSchema, {
|
|
130
136
|
auth: "admin",
|
|
131
137
|
kind: "mutation",
|
|
@@ -68,13 +68,15 @@ var DEVICE_SETTINGS_CONTRIBUTION_METHODS = {
|
|
|
68
68
|
input: /* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }),
|
|
69
69
|
output: ContributionOutputSchema,
|
|
70
70
|
kind: "query",
|
|
71
|
-
auth: "protected"
|
|
71
|
+
auth: "protected",
|
|
72
|
+
description: "The settings form this capability contributes to a device's Config tab, with current values; null when none."
|
|
72
73
|
},
|
|
73
74
|
getDeviceLiveContribution: {
|
|
74
75
|
input: /* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }),
|
|
75
76
|
output: ContributionOutputSchema,
|
|
76
77
|
kind: "query",
|
|
77
|
-
auth: "protected"
|
|
78
|
+
auth: "protected",
|
|
79
|
+
description: "The live controls and readouts this capability contributes to a device's detail page; null when none."
|
|
78
80
|
},
|
|
79
81
|
applyDeviceSettingsPatch: {
|
|
80
82
|
input: /* @__PURE__ */ zod.z.object({
|
|
@@ -83,7 +85,8 @@ var DEVICE_SETTINGS_CONTRIBUTION_METHODS = {
|
|
|
83
85
|
}),
|
|
84
86
|
output: /* @__PURE__ */ zod.z.object({ success: /* @__PURE__ */ zod.z.literal(true) }),
|
|
85
87
|
kind: "mutation",
|
|
86
|
-
auth: "admin"
|
|
88
|
+
auth: "admin",
|
|
89
|
+
description: "Apply a partial settings patch to one device through this capability's provider."
|
|
87
90
|
}
|
|
88
91
|
};
|
|
89
92
|
/**
|
|
@@ -98,7 +101,8 @@ var DEVICE_STATUS_METHOD = { getStatus: {
|
|
|
98
101
|
input: /* @__PURE__ */ zod.z.object({ deviceId: /* @__PURE__ */ zod.z.number() }),
|
|
99
102
|
output: /* @__PURE__ */ zod.z.unknown().nullable(),
|
|
100
103
|
kind: "query",
|
|
101
|
-
auth: "protected"
|
|
104
|
+
auth: "protected",
|
|
105
|
+
description: "The device's current status as reported by this capability; null when unknown."
|
|
102
106
|
} };
|
|
103
107
|
/**
|
|
104
108
|
* Expand a cap def's methods map with every auto-injected method:
|
package/system/dist/{capability-definition-DLD3HR3U.mjs → capability-definition-C1TLUVJR.mjs}
RENAMED
|
@@ -68,13 +68,15 @@ var DEVICE_SETTINGS_CONTRIBUTION_METHODS = {
|
|
|
68
68
|
input: /* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }),
|
|
69
69
|
output: ContributionOutputSchema,
|
|
70
70
|
kind: "query",
|
|
71
|
-
auth: "protected"
|
|
71
|
+
auth: "protected",
|
|
72
|
+
description: "The settings form this capability contributes to a device's Config tab, with current values; null when none."
|
|
72
73
|
},
|
|
73
74
|
getDeviceLiveContribution: {
|
|
74
75
|
input: /* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }),
|
|
75
76
|
output: ContributionOutputSchema,
|
|
76
77
|
kind: "query",
|
|
77
|
-
auth: "protected"
|
|
78
|
+
auth: "protected",
|
|
79
|
+
description: "The live controls and readouts this capability contributes to a device's detail page; null when none."
|
|
78
80
|
},
|
|
79
81
|
applyDeviceSettingsPatch: {
|
|
80
82
|
input: /* @__PURE__ */ z.object({
|
|
@@ -83,7 +85,8 @@ var DEVICE_SETTINGS_CONTRIBUTION_METHODS = {
|
|
|
83
85
|
}),
|
|
84
86
|
output: /* @__PURE__ */ z.object({ success: /* @__PURE__ */ z.literal(true) }),
|
|
85
87
|
kind: "mutation",
|
|
86
|
-
auth: "admin"
|
|
88
|
+
auth: "admin",
|
|
89
|
+
description: "Apply a partial settings patch to one device through this capability's provider."
|
|
87
90
|
}
|
|
88
91
|
};
|
|
89
92
|
/**
|
|
@@ -98,7 +101,8 @@ var DEVICE_STATUS_METHOD = { getStatus: {
|
|
|
98
101
|
input: /* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number() }),
|
|
99
102
|
output: /* @__PURE__ */ z.unknown().nullable(),
|
|
100
103
|
kind: "query",
|
|
101
|
-
auth: "protected"
|
|
104
|
+
auth: "protected",
|
|
105
|
+
description: "The device's current status as reported by this capability; null when unknown."
|
|
102
106
|
} };
|
|
103
107
|
/**
|
|
104
108
|
* Expand a cap def's methods map with every auto-injected method:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as historyItemFieldPath, r as HISTORY_DEFAULT_MIN_INTERVAL_MS } from "./capability-definition-
|
|
1
|
+
import { o as historyItemFieldPath, r as HISTORY_DEFAULT_MIN_INTERVAL_MS } from "./capability-definition-C1TLUVJR.mjs";
|
|
2
2
|
import { r as DeviceType } from "./device-type-DgEvK3ch.mjs";
|
|
3
3
|
//#region src/builtins/shared/device-state-changed.ts
|
|
4
4
|
/** Structural narrowing helper for untrusted bus payloads. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_capability_definition = require("./capability-definition-
|
|
1
|
+
const require_capability_definition = require("./capability-definition-BEVd01Xj.js");
|
|
2
2
|
const require_device_type = require("./device-type-CbQsnFdC.js");
|
|
3
3
|
//#region src/builtins/shared/device-state-changed.ts
|
|
4
4
|
/** Structural narrowing helper for untrusted bus payloads. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_scoped_settings = require("./scoped-settings-CylSSq_8.js");
|
|
2
|
-
const require_core_blocks_cap = require("./core-blocks.cap-
|
|
3
|
-
const require_error_cap = require("./error.cap-
|
|
2
|
+
const require_core_blocks_cap = require("./core-blocks.cap-yLx6soaY.js");
|
|
3
|
+
const require_error_cap = require("./error.cap-BxLEHP6z.js");
|
|
4
4
|
//#region ../types/dist/esm/composition/customize/field-source.mjs
|
|
5
5
|
function fromRead(source, cap, fieldPath) {
|
|
6
6
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Z as errMsg } from "./scoped-settings-DVWUIP7Z.mjs";
|
|
2
|
-
import { Q as CAP_CUSTOMIZE_CATALOG } from "./core-blocks.cap-
|
|
3
|
-
import { N as compositionSourceKey, c as isIdentifier, d as signedToken, f as unsignedToken, l as linearExpr, o as constantExpr, s as dwellExpr, u as overrideExpr } from "./error.cap-
|
|
2
|
+
import { Q as CAP_CUSTOMIZE_CATALOG } from "./core-blocks.cap-CWKQSevR.mjs";
|
|
3
|
+
import { N as compositionSourceKey, c as isIdentifier, d as signedToken, f as unsignedToken, l as linearExpr, o as constantExpr, s as dwellExpr, u as overrideExpr } from "./error.cap-DCwbIGEF.mjs";
|
|
4
4
|
//#region ../types/dist/esm/composition/customize/field-source.mjs
|
|
5
5
|
function fromRead(source, cap, fieldPath) {
|
|
6
6
|
return {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { b as EventCategory } from "./base-addon-Md14i7pe.mjs";
|
|
2
2
|
import { G as isSecretMarkerLike } from "./scoped-settings-DVWUIP7Z.mjs";
|
|
3
|
-
import { c as method, d as systemMethod, l as optionalMethod } from "./capability-definition-
|
|
3
|
+
import { c as method, d as systemMethod, l as optionalMethod } from "./capability-definition-C1TLUVJR.mjs";
|
|
4
4
|
import { t as NOT_A_DEVICE } from "./system-reasons-CYj4qwyS.mjs";
|
|
5
5
|
import { a as readingMeta, i as isReadingQuantity, n as baseUnitOf, t as ReadingQuantitySchema } from "./quantity-D3g5SxsZ.mjs";
|
|
6
6
|
import { i as TagsFieldSchema } from "./tag-uZBAq6ox.mjs";
|
|
7
7
|
import { n as DeviceRole, r as DeviceType } from "./device-type-DgEvK3ch.mjs";
|
|
8
8
|
import { i as isSwitchLight, t as canonicalStoredDeviceType } from "./device-kind-BJ2pfsjw.mjs";
|
|
9
|
-
import { a as tryConvertUnit, n as SettingsSchemaWithValuesSchema, o as unitDimension, r as SettingsUpdateResultSchema, t as SettingsPatchSchema, u as locationIconKey } from "./addon-settings.cap-
|
|
10
|
-
import { A as compositionItemFieldPath, C as CompositionFieldReadSchema, D as composedDeviceRef, F as featureSources, I as fieldReads, L as isForwardInputRef, N as compositionSourceKey, P as featureFieldEntries, R as COMPOSED_DEVICE_STABLE_ID_PREFIX, S as COMPOSITION_ITEM_ARRAY_PATH, T as CompositionSchema, U as CompositionSourceRefSchema, _ as groupTemplate, a as sameHelperBody, b as refused, dt as validateExpressionSource, ft as compileExpressionSafe, ht as EXPRESSION_BUILTINS, i as compileHelper, j as compositionReadKey, k as compositionFeatureEnabled, mt as MAX_EXPRESSION_SOURCE_LENGTH, pt as EXPRESSION_IDENTIFIER_RE, v as compositionFieldAt, w as CompositionFieldSourceSchema, x as COMPOSER_ADDON_ID, y as problem } from "./error.cap-
|
|
9
|
+
import { a as tryConvertUnit, n as SettingsSchemaWithValuesSchema, o as unitDimension, r as SettingsUpdateResultSchema, t as SettingsPatchSchema, u as locationIconKey } from "./addon-settings.cap-CZ4MC7ha.mjs";
|
|
10
|
+
import { A as compositionItemFieldPath, C as CompositionFieldReadSchema, D as composedDeviceRef, F as featureSources, I as fieldReads, L as isForwardInputRef, N as compositionSourceKey, P as featureFieldEntries, R as COMPOSED_DEVICE_STABLE_ID_PREFIX, S as COMPOSITION_ITEM_ARRAY_PATH, T as CompositionSchema, U as CompositionSourceRefSchema, _ as groupTemplate, a as sameHelperBody, b as refused, dt as validateExpressionSource, ft as compileExpressionSafe, ht as EXPRESSION_BUILTINS, i as compileHelper, j as compositionReadKey, k as compositionFeatureEnabled, mt as MAX_EXPRESSION_SOURCE_LENGTH, pt as EXPRESSION_IDENTIFIER_RE, v as compositionFieldAt, w as CompositionFieldSourceSchema, x as COMPOSER_ADDON_ID, y as problem } from "./error.cap-DCwbIGEF.mjs";
|
|
11
11
|
import { a as normalizeUnit } from "./source-info-DGB7SdB_.mjs";
|
|
12
12
|
import { t } from "./l10n-Bu6aUvSY.mjs";
|
|
13
13
|
import { n as RawSecretMigrationReportSchema, t as RawSecretMigrationInputSchema } from "./raw-secret-migration-iv88mLoc.mjs";
|
|
@@ -12912,18 +12912,25 @@ var alertsCapability = {
|
|
|
12912
12912
|
scope: "system",
|
|
12913
12913
|
mode: "singleton",
|
|
12914
12914
|
methods: {
|
|
12915
|
+
/** Raise a new alert. */
|
|
12915
12916
|
emit: /* @__PURE__ */ method(AlertSchema, /* @__PURE__ */ z.void(), { kind: "mutation" }),
|
|
12917
|
+
/** Change fields of an existing alert. */
|
|
12916
12918
|
update: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
12917
12919
|
alertId: /* @__PURE__ */ z.string(),
|
|
12918
12920
|
patch: /* @__PURE__ */ AlertSchema.partial()
|
|
12919
12921
|
}), /* @__PURE__ */ z.void(), { kind: "mutation" }),
|
|
12922
|
+
/** List alerts, optionally only unread ones. */
|
|
12920
12923
|
list: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
12921
12924
|
unreadOnly: /* @__PURE__ */ z.boolean().optional(),
|
|
12922
12925
|
limit: /* @__PURE__ */ z.number().optional()
|
|
12923
12926
|
}).optional(), /* @__PURE__ */ z.array(AlertSchema).readonly()),
|
|
12927
|
+
/** How many alerts are unread. */
|
|
12924
12928
|
getUnreadCount: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.number()),
|
|
12929
|
+
/** Mark one alert as read. */
|
|
12925
12930
|
markRead: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ alertId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.void(), { kind: "mutation" }),
|
|
12931
|
+
/** Mark every alert as read. */
|
|
12926
12932
|
markAllRead: /* @__PURE__ */ method(/* @__PURE__ */ z.void(), /* @__PURE__ */ z.void(), { kind: "mutation" }),
|
|
12933
|
+
/** Dismiss one alert. */
|
|
12927
12934
|
dismiss: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ alertId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.void(), { kind: "mutation" })
|
|
12928
12935
|
},
|
|
12929
12936
|
vocabulary: { notOperatorFacing: "the alert centre — read and acknowledged on its own page" }
|
|
@@ -15565,6 +15572,7 @@ var mediaPlayerCapability = {
|
|
|
15565
15572
|
off: "turnOff"
|
|
15566
15573
|
},
|
|
15567
15574
|
methods: {
|
|
15575
|
+
/** Power the media player on. */
|
|
15568
15576
|
turnOn: /* @__PURE__ */ optionalMethod(deviceOnly, /* @__PURE__ */ z.void(), {
|
|
15569
15577
|
kind: "mutation",
|
|
15570
15578
|
auth: "protected",
|
|
@@ -15575,6 +15583,7 @@ var mediaPlayerCapability = {
|
|
|
15575
15583
|
icon: "power"
|
|
15576
15584
|
}]
|
|
15577
15585
|
}),
|
|
15586
|
+
/** Power the media player off. */
|
|
15578
15587
|
turnOff: /* @__PURE__ */ optionalMethod(deviceOnly, /* @__PURE__ */ z.void(), {
|
|
15579
15588
|
kind: "mutation",
|
|
15580
15589
|
auth: "protected",
|
|
@@ -15585,6 +15594,7 @@ var mediaPlayerCapability = {
|
|
|
15585
15594
|
icon: "power"
|
|
15586
15595
|
}]
|
|
15587
15596
|
}),
|
|
15597
|
+
/** Raise the volume by one step or the given number of steps. */
|
|
15588
15598
|
volumeUp: /* @__PURE__ */ optionalMethod(stepInput, /* @__PURE__ */ z.void(), {
|
|
15589
15599
|
kind: "mutation",
|
|
15590
15600
|
auth: "protected",
|
|
@@ -15595,6 +15605,7 @@ var mediaPlayerCapability = {
|
|
|
15595
15605
|
icon: "volume-2"
|
|
15596
15606
|
}]
|
|
15597
15607
|
}),
|
|
15608
|
+
/** Lower the volume by one step or the given number of steps. */
|
|
15598
15609
|
volumeDown: /* @__PURE__ */ optionalMethod(stepInput, /* @__PURE__ */ z.void(), {
|
|
15599
15610
|
kind: "mutation",
|
|
15600
15611
|
auth: "protected",
|
|
@@ -15605,6 +15616,7 @@ var mediaPlayerCapability = {
|
|
|
15605
15616
|
icon: "volume-2"
|
|
15606
15617
|
}]
|
|
15607
15618
|
}),
|
|
15619
|
+
/** Switch to the next channel, or move up by the given number of steps. */
|
|
15608
15620
|
channelUp: /* @__PURE__ */ optionalMethod(stepInput, /* @__PURE__ */ z.void(), {
|
|
15609
15621
|
kind: "mutation",
|
|
15610
15622
|
auth: "protected",
|
|
@@ -15615,6 +15627,7 @@ var mediaPlayerCapability = {
|
|
|
15615
15627
|
icon: "skip-forward"
|
|
15616
15628
|
}]
|
|
15617
15629
|
}),
|
|
15630
|
+
/** Switch to the previous channel, or move down by the given number of steps. */
|
|
15618
15631
|
channelDown: /* @__PURE__ */ optionalMethod(stepInput, /* @__PURE__ */ z.void(), {
|
|
15619
15632
|
kind: "mutation",
|
|
15620
15633
|
auth: "protected",
|
|
@@ -15625,6 +15638,7 @@ var mediaPlayerCapability = {
|
|
|
15625
15638
|
icon: "skip-back"
|
|
15626
15639
|
}]
|
|
15627
15640
|
}),
|
|
15641
|
+
/** Start or resume playback. */
|
|
15628
15642
|
play: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
|
|
15629
15643
|
kind: "mutation",
|
|
15630
15644
|
auth: "protected",
|
|
@@ -15639,6 +15653,7 @@ var mediaPlayerCapability = {
|
|
|
15639
15653
|
icon: "play"
|
|
15640
15654
|
}]
|
|
15641
15655
|
}),
|
|
15656
|
+
/** Pause playback. */
|
|
15642
15657
|
pause: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
|
|
15643
15658
|
kind: "mutation",
|
|
15644
15659
|
auth: "protected",
|
|
@@ -15653,6 +15668,7 @@ var mediaPlayerCapability = {
|
|
|
15653
15668
|
icon: "pause"
|
|
15654
15669
|
}]
|
|
15655
15670
|
}),
|
|
15671
|
+
/** Stop playback. */
|
|
15656
15672
|
stop: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
|
|
15657
15673
|
kind: "mutation",
|
|
15658
15674
|
auth: "protected",
|
|
@@ -15663,6 +15679,7 @@ var mediaPlayerCapability = {
|
|
|
15663
15679
|
icon: "square"
|
|
15664
15680
|
}]
|
|
15665
15681
|
}),
|
|
15682
|
+
/** Skip to the next track. */
|
|
15666
15683
|
next: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
|
|
15667
15684
|
kind: "mutation",
|
|
15668
15685
|
auth: "protected",
|
|
@@ -15673,6 +15690,7 @@ var mediaPlayerCapability = {
|
|
|
15673
15690
|
icon: "skip-forward"
|
|
15674
15691
|
}]
|
|
15675
15692
|
}),
|
|
15693
|
+
/** Go back to the previous track. */
|
|
15676
15694
|
previous: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({ deviceId: /* @__PURE__ */ z.number().int().nonnegative() }), /* @__PURE__ */ z.void(), {
|
|
15677
15695
|
kind: "mutation",
|
|
15678
15696
|
auth: "protected",
|
|
@@ -15683,6 +15701,7 @@ var mediaPlayerCapability = {
|
|
|
15683
15701
|
icon: "skip-back"
|
|
15684
15702
|
}]
|
|
15685
15703
|
}),
|
|
15704
|
+
/** Set the volume to a level from 0 to 100. */
|
|
15686
15705
|
setVolume: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({
|
|
15687
15706
|
deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
|
|
15688
15707
|
volumeLevel: /* @__PURE__ */ z.number().min(0).max(100)
|
|
@@ -15711,6 +15730,7 @@ var mediaPlayerCapability = {
|
|
|
15711
15730
|
}]
|
|
15712
15731
|
}]
|
|
15713
15732
|
}),
|
|
15733
|
+
/** Mute or unmute the player. */
|
|
15714
15734
|
setMute: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({
|
|
15715
15735
|
deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
|
|
15716
15736
|
muted: /* @__PURE__ */ z.boolean()
|
|
@@ -15739,6 +15759,7 @@ var mediaPlayerCapability = {
|
|
|
15739
15759
|
args: { muted: false }
|
|
15740
15760
|
}]
|
|
15741
15761
|
}),
|
|
15762
|
+
/** Turn shuffle on or off. */
|
|
15742
15763
|
setShuffle: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({
|
|
15743
15764
|
deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
|
|
15744
15765
|
shuffle: /* @__PURE__ */ z.boolean()
|
|
@@ -15767,6 +15788,7 @@ var mediaPlayerCapability = {
|
|
|
15767
15788
|
args: { shuffle: false }
|
|
15768
15789
|
}]
|
|
15769
15790
|
}),
|
|
15791
|
+
/** Set the repeat mode (off, one or all). */
|
|
15770
15792
|
setRepeat: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({
|
|
15771
15793
|
deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
|
|
15772
15794
|
repeat: MediaPlayerRepeatSchema
|
|
@@ -15805,6 +15827,7 @@ var mediaPlayerCapability = {
|
|
|
15805
15827
|
}]
|
|
15806
15828
|
}]
|
|
15807
15829
|
}),
|
|
15830
|
+
/** Switch the player to the named input source. */
|
|
15808
15831
|
selectSource: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({
|
|
15809
15832
|
deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
|
|
15810
15833
|
source: /* @__PURE__ */ z.string().min(1)
|
|
@@ -15831,6 +15854,7 @@ var mediaPlayerCapability = {
|
|
|
15831
15854
|
}]
|
|
15832
15855
|
}]
|
|
15833
15856
|
}),
|
|
15857
|
+
/** Jump to a position in the current media, in seconds. */
|
|
15834
15858
|
seek: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({
|
|
15835
15859
|
deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
|
|
15836
15860
|
position: /* @__PURE__ */ z.number().int().nonnegative()
|
|
@@ -15854,6 +15878,7 @@ var mediaPlayerCapability = {
|
|
|
15854
15878
|
}]
|
|
15855
15879
|
}]
|
|
15856
15880
|
}),
|
|
15881
|
+
/** Play the given media (by identifier or URL and kind) on the player. */
|
|
15857
15882
|
playMedia: /* @__PURE__ */ optionalMethod(/* @__PURE__ */ z.object({
|
|
15858
15883
|
deviceId: /* @__PURE__ */ z.number().int().nonnegative(),
|
|
15859
15884
|
/** Media identifier / URL. */
|
|
@@ -16917,7 +16942,9 @@ var powerSourceCapability = {
|
|
|
16917
16942
|
mode: "singleton",
|
|
16918
16943
|
deviceTypes: POWER_SOURCE_DEVICE_TYPES,
|
|
16919
16944
|
methods: {
|
|
16945
|
+
/** The smart switch that powers the device and its current state. */
|
|
16920
16946
|
getStatus: /* @__PURE__ */ systemMethod(deviceInput, PowerSourceInfoSchema, { auth: "protected" }),
|
|
16947
|
+
/** Switch the device's power on. */
|
|
16921
16948
|
powerOn: /* @__PURE__ */ systemMethod(deviceInput, PowerSourceActionResultSchema, {
|
|
16922
16949
|
kind: "mutation",
|
|
16923
16950
|
auth: "protected",
|
|
@@ -16929,6 +16956,7 @@ var powerSourceCapability = {
|
|
|
16929
16956
|
offeredWhen: POWER_SOURCE_SETTABLE_GATE
|
|
16930
16957
|
}]
|
|
16931
16958
|
}),
|
|
16959
|
+
/** Switch the device's power off. */
|
|
16932
16960
|
powerOff: /* @__PURE__ */ systemMethod(deviceInput, PowerSourceActionResultSchema, {
|
|
16933
16961
|
kind: "mutation",
|
|
16934
16962
|
auth: "protected",
|
|
@@ -16940,6 +16968,7 @@ var powerSourceCapability = {
|
|
|
16940
16968
|
offeredWhen: POWER_SOURCE_SETTABLE_GATE
|
|
16941
16969
|
}]
|
|
16942
16970
|
}),
|
|
16971
|
+
/** Restart the device by switching its power off, waiting, and on again. */
|
|
16943
16972
|
forceRestart: /* @__PURE__ */ systemMethod(deviceInput, PowerSourceActionResultSchema, {
|
|
16944
16973
|
kind: "mutation",
|
|
16945
16974
|
auth: "protected",
|
|
@@ -18046,7 +18075,9 @@ var coreBlocksCapability = {
|
|
|
18046
18075
|
scope: "system",
|
|
18047
18076
|
mode: "singleton",
|
|
18048
18077
|
methods: {
|
|
18078
|
+
/** List the core blocks. */
|
|
18049
18079
|
list: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), /* @__PURE__ */ z.object({ blocks: /* @__PURE__ */ z.array(CoreBlockSchema) }), { auth: "admin" }),
|
|
18080
|
+
/** Fetch one core block by id; null when absent. */
|
|
18050
18081
|
get: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ blockId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({ block: /* @__PURE__ */ CoreBlockSchema.nullable() }), { auth: "admin" }),
|
|
18051
18082
|
/**
|
|
18052
18083
|
* Create a block. The code is COMPILED first: storing source that does not
|
|
@@ -18058,6 +18089,7 @@ var coreBlocksCapability = {
|
|
|
18058
18089
|
auth: "admin",
|
|
18059
18090
|
caller: "required"
|
|
18060
18091
|
}),
|
|
18092
|
+
/** Change fields of a core block. */
|
|
18061
18093
|
update: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
18062
18094
|
blockId: /* @__PURE__ */ z.string(),
|
|
18063
18095
|
block: /* @__PURE__ */ CoreBlockInputFieldsSchema.partial()
|
|
@@ -18066,10 +18098,12 @@ var coreBlocksCapability = {
|
|
|
18066
18098
|
auth: "admin",
|
|
18067
18099
|
caller: "required"
|
|
18068
18100
|
}),
|
|
18101
|
+
/** Delete a core block. */
|
|
18069
18102
|
delete: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ blockId: /* @__PURE__ */ z.string() }), /* @__PURE__ */ z.object({ success: /* @__PURE__ */ z.literal(true) }), {
|
|
18070
18103
|
kind: "mutation",
|
|
18071
18104
|
auth: "admin"
|
|
18072
18105
|
}),
|
|
18106
|
+
/** Enable or disable a core block. */
|
|
18073
18107
|
setEnabled: /* @__PURE__ */ method(/* @__PURE__ */ z.object({
|
|
18074
18108
|
blockId: /* @__PURE__ */ z.string(),
|
|
18075
18109
|
enabled: /* @__PURE__ */ z.boolean()
|
|
@@ -18173,6 +18207,7 @@ var coreBlocksCapability = {
|
|
|
18173
18207
|
}),
|
|
18174
18208
|
/** One composition and the composer's state for it, or `not-loaded` (D315). */
|
|
18175
18209
|
getComposition: /* @__PURE__ */ method(/* @__PURE__ */ z.object({ blockId: /* @__PURE__ */ z.string() }), CompositionGetReadSchema, { auth: "admin" }),
|
|
18210
|
+
/** List the compositions built from core blocks. */
|
|
18176
18211
|
listCompositions: /* @__PURE__ */ method(/* @__PURE__ */ z.object({}), CompositionListReadSchema, { auth: "admin" }),
|
|
18177
18212
|
/**
|
|
18178
18213
|
* The composition that customizes an existing device (D663), found by its
|