@camstack/server 1.2.837 → 1.2.839
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/dist/api/core/auth.router.js +19 -0
- package/dist/api/trpc/device-access.js +54 -0
- package/dist/api/trpc/trpc.middleware.js +3 -2
- package/package.json +7 -8
- 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 +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- 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 +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- 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 +45 -6
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +45 -6
- package/system/dist/builtins/core-blocks/scheduler/scheduler-engine.d.ts +7 -0
- package/system/dist/builtins/core-blocks/step-condition-door.d.ts +4 -0
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- 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 +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- 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 +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- 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/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- 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-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-Bgml6l8Z.js → capture-engine-7E2O4-UN.js} +1 -1
- package/system/dist/{capture-engine-BQjIa865.mjs → capture-engine-B5IBWIRT.mjs} +1 -1
- package/system/dist/{composition-sources-CrL4KcSA.mjs → composition-sources-Cfqn4cly.mjs} +1 -1
- package/system/dist/{composition-sources-C7hUy8w0.js → composition-sources-DLtc8lSL.js} +1 -1
- package/system/dist/{constants-CUAo3cLm.js → constants-Cc70YreG.js} +1 -1
- package/system/dist/{constants-Bw5qtfbX.mjs → constants-DjsgCnZk.mjs} +1 -1
- package/system/dist/{device-ca-YELIR9gF.js → device-ca-C6JqeFfK.js} +1 -1
- package/system/dist/{device-ca-BDmoMgA3.mjs → device-ca-CVP5h3u1.mjs} +1 -1
- package/system/dist/{dist-D3_60xED.js → dist-CLnTYKFn.js} +346 -21
- package/system/dist/{dist-yQfQUpYA.mjs → dist-OmrC_RZs.mjs} +335 -22
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-C8FGw7Mt.mjs → hub-identity-CKQVXf4o.mjs} +1 -1
- package/system/dist/{hub-identity-c_zPVKOY.js → hub-identity-TrZcnJkB.js} +1 -1
- package/system/dist/{hub-mdns-ciao-CM64AtFQ.mjs → hub-mdns-ciao-C8G0K1Z1.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-CaWa1FY1.js → hub-mdns-ciao-ocg6suyX.js} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-D5Qe0A95.mjs → legacy-integration-rows-door-BPkJUGaX.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-BnEJMuwz.js → legacy-integration-rows-door-b6CUxtXX.js} +1 -1
- package/system/dist/{rename-composition-block-DXN1dVXs.mjs → rename-composition-block-DPlsP1xF.mjs} +1 -1
- package/system/dist/{rename-composition-block-CbAR4yC9.js → rename-composition-block-N7lslQJK.js} +1 -1
- package/system/dist/{restore-archive-C88Ee7w9.mjs → restore-archive-Btc3H-Fg.mjs} +1 -1
- package/system/dist/{restore-archive-DDzgcjNf.js → restore-archive-CcuEoEtj.js} +1 -1
- package/system/dist/{wal-maintenance-BNN52u-q.js → wal-maintenance-B2_uCEi5.js} +0 -0
- package/system/dist/{wal-maintenance-EvgkvDZK.mjs → wal-maintenance-g7yvxLMj.mjs} +0 -0
- package/system/package.json +1 -1
|
@@ -43263,7 +43263,7 @@ function weekdayOfLocalDate(localDate) {
|
|
|
43263
43263
|
const { y, m, d } = parseLocalDate(localDate);
|
|
43264
43264
|
return WEEKDAY_BY_INDEX[new Date(Date.UTC(y, m - 1, d)).getUTCDay()] ?? "sun";
|
|
43265
43265
|
}
|
|
43266
|
-
function addDays(localDate, days) {
|
|
43266
|
+
function addDays$1(localDate, days) {
|
|
43267
43267
|
const { y, m, d } = parseLocalDate(localDate);
|
|
43268
43268
|
return new Date(Date.UTC(y, m - 1, d + days)).toISOString().slice(0, 10);
|
|
43269
43269
|
}
|
|
@@ -43325,9 +43325,9 @@ function nextOccurrence(spec, afterMs, site, options = {}) {
|
|
|
43325
43325
|
const at = occurrenceOn(spec, own, site);
|
|
43326
43326
|
return at !== null && at > afterMs ? at : null;
|
|
43327
43327
|
}
|
|
43328
|
-
const first = addDays(localDateOf(afterMs, site.timeZone), -1);
|
|
43328
|
+
const first = addDays$1(localDateOf(afterMs, site.timeZone), -1);
|
|
43329
43329
|
for (let i = 0; i < 400; i += 1) {
|
|
43330
|
-
const localDate = addDays(first, i);
|
|
43330
|
+
const localDate = addDays$1(first, i);
|
|
43331
43331
|
if (days !== void 0 && !days.includes(weekdayOfLocalDate(localDate))) continue;
|
|
43332
43332
|
const at = occurrenceOn(spec, localDate, site);
|
|
43333
43333
|
if (at !== null && at > afterMs) return at;
|
|
@@ -43371,7 +43371,8 @@ function zoneOnlySite(timeZone) {
|
|
|
43371
43371
|
return {
|
|
43372
43372
|
lat: 0,
|
|
43373
43373
|
lon: 0,
|
|
43374
|
-
timeZone
|
|
43374
|
+
timeZone,
|
|
43375
|
+
zoneOnly: true
|
|
43375
43376
|
};
|
|
43376
43377
|
}
|
|
43377
43378
|
/**
|
|
@@ -43473,6 +43474,13 @@ var AutomationConditionOperatorSchema = z.enum([
|
|
|
43473
43474
|
"in"
|
|
43474
43475
|
]);
|
|
43475
43476
|
/**
|
|
43477
|
+
* The stable name of an event leaf. A path (`when.0.1`) moves when a row is
|
|
43478
|
+
* reordered; the id does not, so a `triggered-by` leaf keeps pointing at the
|
|
43479
|
+
* same row. Optional: a leaf nothing refers to needs none.
|
|
43480
|
+
*/
|
|
43481
|
+
var EVENT_LEAF_ID_RE = /^[A-Za-z0-9_-]{1,40}$/;
|
|
43482
|
+
var eventLeafId = { id: z.string().regex(EVENT_LEAF_ID_RE).optional() };
|
|
43483
|
+
/**
|
|
43476
43484
|
* D8 compliance, and it is the reason a "becomes" leaf is not merely an event
|
|
43477
43485
|
* subscription: it evaluates against the **state mirror**, which is reconciled,
|
|
43478
43486
|
* and an event only WAKES the evaluation. A dropped event therefore DELAYS a
|
|
@@ -43480,6 +43488,7 @@ var AutomationConditionOperatorSchema = z.enum([
|
|
|
43480
43488
|
*/
|
|
43481
43489
|
var DeviceBecomesLeafSchema = z.object({
|
|
43482
43490
|
kind: z.literal("device-becomes"),
|
|
43491
|
+
...eventLeafId,
|
|
43483
43492
|
deviceId: z.number().int().nonnegative(),
|
|
43484
43493
|
cap: z.string().min(1),
|
|
43485
43494
|
fieldPath: z.string().min(1),
|
|
@@ -43532,6 +43541,7 @@ var DeviceBecomesLeafSchema = z.object({
|
|
|
43532
43541
|
});
|
|
43533
43542
|
var DeviceEventLeafSchema = z.object({
|
|
43534
43543
|
kind: z.literal("device-event"),
|
|
43544
|
+
...eventLeafId,
|
|
43535
43545
|
/** An `EventCategory` value. */
|
|
43536
43546
|
category: z.string().min(1),
|
|
43537
43547
|
deviceId: z.number().int().nonnegative().optional()
|
|
@@ -43544,18 +43554,24 @@ var DeviceEventLeafSchema = z.object({
|
|
|
43544
43554
|
*/
|
|
43545
43555
|
var ScheduleLeafSchema = z.object({
|
|
43546
43556
|
kind: z.literal("schedule"),
|
|
43557
|
+
...eventLeafId,
|
|
43547
43558
|
at: TimeSpecSchema.optional(),
|
|
43548
43559
|
days: z.array(WeekdayKeySchema).min(1).max(7).optional(),
|
|
43549
43560
|
/** @deprecated legacy cron — new schedules use `at`. */
|
|
43550
43561
|
cron: z.string().min(1).max(120).optional()
|
|
43551
43562
|
}).refine((leaf) => leaf.at === void 0 !== (leaf.cron === void 0), { message: "a schedule names exactly one of `at` (a time spec) and `cron` (legacy)" }).refine((leaf) => leaf.days === void 0 || leaf.at !== void 0, { message: "`days` goes with `at`; a cron expression carries its own days" });
|
|
43552
|
-
var ManualLeafSchema = z.object({
|
|
43563
|
+
var ManualLeafSchema = z.object({
|
|
43564
|
+
kind: z.literal("manual"),
|
|
43565
|
+
...eventLeafId
|
|
43566
|
+
});
|
|
43553
43567
|
var IntervalLeafSchema = z.object({
|
|
43554
43568
|
kind: z.literal("interval"),
|
|
43569
|
+
...eventLeafId,
|
|
43555
43570
|
minutes: z.number().int().min(1).max(1440)
|
|
43556
43571
|
});
|
|
43557
43572
|
var DetectionLeafSchema = z.object({
|
|
43558
43573
|
kind: z.literal("detection"),
|
|
43574
|
+
...eventLeafId,
|
|
43559
43575
|
/** One macro class each, optionally narrowed by a label; a track of any listed subject fires. */
|
|
43560
43576
|
subjects: z.array(DetectionSubjectSchema).min(1),
|
|
43561
43577
|
deviceIds: z.array(z.number().int().nonnegative()).min(1),
|
|
@@ -43566,6 +43582,7 @@ var DetectionLeafSchema = z.object({
|
|
|
43566
43582
|
});
|
|
43567
43583
|
var StationaryLeafSchema = z.object({
|
|
43568
43584
|
kind: z.literal("stationary"),
|
|
43585
|
+
...eventLeafId,
|
|
43569
43586
|
deviceIds: z.array(z.number().int().nonnegative()).min(1),
|
|
43570
43587
|
subjects: z.array(StationarySubjectSchema).min(1).optional(),
|
|
43571
43588
|
zones: z.array(z.string().min(1)).min(1).optional(),
|
|
@@ -43611,6 +43628,41 @@ var StationaryPresentLeafSchema = z.object({
|
|
|
43611
43628
|
minCount: z.number().int().positive().optional()
|
|
43612
43629
|
});
|
|
43613
43630
|
/**
|
|
43631
|
+
* True while the site-local clock is inside a daily window and/or on one of
|
|
43632
|
+
* the named days. `days` names the local day a window STARTS on, so
|
|
43633
|
+
* 22:00-06:00 on weekdays is still inside at 01:00 Saturday. A one-date spec
|
|
43634
|
+
* (`kind: 'date'`) is refused: only a clock time or a sun event makes a window
|
|
43635
|
+
* that repeats every day.
|
|
43636
|
+
*/
|
|
43637
|
+
var TimeIsLeafSchema = z.object({
|
|
43638
|
+
kind: z.literal("time-is"),
|
|
43639
|
+
between: z.object({
|
|
43640
|
+
from: TimeSpecSchema,
|
|
43641
|
+
to: TimeSpecSchema
|
|
43642
|
+
}).optional(),
|
|
43643
|
+
days: z.array(WeekdayKeySchema).min(1).max(7).optional()
|
|
43644
|
+
}).superRefine((leaf, ctx) => {
|
|
43645
|
+
if (leaf.between === void 0 && leaf.days === void 0) ctx.addIssue({
|
|
43646
|
+
code: "custom",
|
|
43647
|
+
message: "a time-is leaf needs a between window, days, or both"
|
|
43648
|
+
});
|
|
43649
|
+
for (const end of ["from", "to"]) if (leaf.between?.[end].kind === "date") ctx.addIssue({
|
|
43650
|
+
code: "custom",
|
|
43651
|
+
message: "a one-date time cannot bound a daily window: use a clock time or a sun event",
|
|
43652
|
+
path: ["between", end]
|
|
43653
|
+
});
|
|
43654
|
+
});
|
|
43655
|
+
/**
|
|
43656
|
+
* True for the run that one of the named event leaves started. It reads the
|
|
43657
|
+
* run, not a device: in the tree it is judged against the leaf that fired, in
|
|
43658
|
+
* a step guard against the trigger the run carries. A run no event leaf
|
|
43659
|
+
* started (a state-only tree becoming true) is false.
|
|
43660
|
+
*/
|
|
43661
|
+
var TriggeredByLeafSchema = z.object({
|
|
43662
|
+
kind: z.literal("triggered-by"),
|
|
43663
|
+
leafIds: z.array(z.string().regex(EVENT_LEAF_ID_RE)).min(1).max(20)
|
|
43664
|
+
});
|
|
43665
|
+
/**
|
|
43614
43666
|
* The escape hatch: the bounded expression engine over named device bindings.
|
|
43615
43667
|
* Declared as a plain object so a discriminated union can read `kind`; the
|
|
43616
43668
|
* author-time validation is the SAME function `ExpressionSourceSchema` runs.
|
|
@@ -43656,7 +43708,9 @@ var AutomationWhenSchema = z.lazy(() => z.discriminatedUnion("kind", [
|
|
|
43656
43708
|
StationaryLeafSchema,
|
|
43657
43709
|
DeviceIsLeafSchema,
|
|
43658
43710
|
StationaryPresentLeafSchema,
|
|
43659
|
-
ExpressionLeafSchema
|
|
43711
|
+
ExpressionLeafSchema,
|
|
43712
|
+
TimeIsLeafSchema,
|
|
43713
|
+
TriggeredByLeafSchema
|
|
43660
43714
|
]));
|
|
43661
43715
|
var EVENT_KINDS = new Set([
|
|
43662
43716
|
"device-becomes",
|
|
@@ -43710,6 +43764,32 @@ function hasEventLeaves(node) {
|
|
|
43710
43764
|
});
|
|
43711
43765
|
return found;
|
|
43712
43766
|
}
|
|
43767
|
+
/** The event leaves of the tree that carry an id, in tree order. */
|
|
43768
|
+
function identifiedEventLeaves(when) {
|
|
43769
|
+
const found = [];
|
|
43770
|
+
forEachLeaf(when, (leaf, path) => {
|
|
43771
|
+
if (isEventLeaf(leaf) && leaf.id !== void 0) found.push({
|
|
43772
|
+
id: leaf.id,
|
|
43773
|
+
path,
|
|
43774
|
+
leaf
|
|
43775
|
+
});
|
|
43776
|
+
});
|
|
43777
|
+
return found;
|
|
43778
|
+
}
|
|
43779
|
+
/** The id of the event leaf at `path` (`when.0.1`); null when the leaf has none or the path names no event leaf. */
|
|
43780
|
+
function eventLeafIdAt(when, path) {
|
|
43781
|
+
return identifiedEventLeaves(when).find((entry) => entry.path === path)?.id ?? null;
|
|
43782
|
+
}
|
|
43783
|
+
/** Does the tree hold a `triggered-by` leaf? */
|
|
43784
|
+
function hasTriggeredByLeaves(when) {
|
|
43785
|
+
let found = false;
|
|
43786
|
+
forEachLeaf(when, (leaf) => {
|
|
43787
|
+
if (leaf.kind === "triggered-by") found = true;
|
|
43788
|
+
});
|
|
43789
|
+
return found;
|
|
43790
|
+
}
|
|
43791
|
+
/** Why a `triggered-by` leaf is refused outside an automation: there is no trigger row to name. */
|
|
43792
|
+
var TRIGGERED_BY_NEEDS_AUTOMATION = "\"triggered by\" reads which trigger started an automation — an action or a scheduler has no trigger rows, so it could never be true here";
|
|
43713
43793
|
function hasEmptyContainer(node) {
|
|
43714
43794
|
if (isLeaf(node)) return false;
|
|
43715
43795
|
if (node.kind === "not") return hasEmptyContainer(node.child);
|
|
@@ -43768,6 +43848,11 @@ function validateWhenTree(when) {
|
|
|
43768
43848
|
if (depth > 4) return `the rules nest ${depth} levels deep — the limit is 4. "not (any of …)" is the same as "all of (not …)", which is one level shallower`;
|
|
43769
43849
|
const leaves = countWhenLeaves(when);
|
|
43770
43850
|
if (leaves > 32) return `the rules use ${leaves} rows — the limit is 32`;
|
|
43851
|
+
const seen = /* @__PURE__ */ new Set();
|
|
43852
|
+
for (const entry of identifiedEventLeaves(when)) {
|
|
43853
|
+
if (seen.has(entry.id)) return `two trigger rows share the id "${entry.id}" — an id names one row`;
|
|
43854
|
+
seen.add(entry.id);
|
|
43855
|
+
}
|
|
43771
43856
|
const need = eventNeed(when, "when", false);
|
|
43772
43857
|
if ("error" in need) return need.error;
|
|
43773
43858
|
const [first, second] = need.paths;
|
|
@@ -44099,7 +44184,18 @@ var GuardedCapStepSchema = AutomationCapStepBaseSchema.extend(stepGuardShape).re
|
|
|
44099
44184
|
message: "a domain target needs the vocabulary action it applies to (actionId)",
|
|
44100
44185
|
path: ["actionId"]
|
|
44101
44186
|
}).refine((step) => step.else === void 0 || step.if !== void 0, elseNeedsIf);
|
|
44102
|
-
|
|
44187
|
+
/**
|
|
44188
|
+
* A step of a STANDALONE list (an action, a scheduler point, a preset): the
|
|
44189
|
+
* same two step kinds an automation runs, minus a guard that reads the
|
|
44190
|
+
* automation's trigger, which such a list does not have.
|
|
44191
|
+
*/
|
|
44192
|
+
var ActionStepSchema = z.discriminatedUnion("kind", [GuardedWaitStepSchema, GuardedCapStepSchema]).superRefine((step, ctx) => {
|
|
44193
|
+
if (step.if !== void 0 && hasTriggeredByLeaves(step.if)) ctx.addIssue({
|
|
44194
|
+
code: "custom",
|
|
44195
|
+
message: TRIGGERED_BY_NEEDS_AUTOMATION,
|
|
44196
|
+
path: ["if"]
|
|
44197
|
+
});
|
|
44198
|
+
});
|
|
44103
44199
|
var AutomationActionSchema = z.discriminatedUnion("kind", [
|
|
44104
44200
|
GuardedWaitStepSchema,
|
|
44105
44201
|
GuardedCapStepSchema,
|
|
@@ -44183,6 +44279,91 @@ function convertLegacyRecipe(legacy) {
|
|
|
44183
44279
|
*/
|
|
44184
44280
|
var AutomationRecipeSchema = z.union([CurrentAutomationRecipeSchema, LegacyAutomationRecipeSchema.transform(convertLegacyRecipe)]);
|
|
44185
44281
|
/**
|
|
44282
|
+
* A daily window as a STATE: is this instant inside it, and when does that
|
|
44283
|
+
* next change? Pure — the answer is built per local date from
|
|
44284
|
+
* {@link occurrenceOn}, so a DST change needs no special case.
|
|
44285
|
+
*
|
|
44286
|
+
* Rules:
|
|
44287
|
+
* - A window whose `to` is not after its `from` on the same local date WRAPS:
|
|
44288
|
+
* it runs from `from` on day D to `to` on D+1.
|
|
44289
|
+
* - `days` names the local day a window STARTS on. 22:00-06:00 on weekdays is
|
|
44290
|
+
* inside at 01:00 Saturday (it started Friday). With `days` and no
|
|
44291
|
+
* `between` the window is the whole local day.
|
|
44292
|
+
* - A sun event that does not happen on a day (polar day or night) gives that
|
|
44293
|
+
* day no window. A sun event on a site WITHOUT a location (or an unknown
|
|
44294
|
+
* zone) cannot be judged at all: the result is `unknown`, never a guess.
|
|
44295
|
+
*/
|
|
44296
|
+
var MIDNIGHT = {
|
|
44297
|
+
kind: "clock",
|
|
44298
|
+
hh: 0,
|
|
44299
|
+
mm: 0
|
|
44300
|
+
};
|
|
44301
|
+
/** Start dates looked at for a boundary: yesterday .. the day after tomorrow. */
|
|
44302
|
+
var LOOKAHEAD_DAYS = 2;
|
|
44303
|
+
function addDays(localDate, days) {
|
|
44304
|
+
const [y, m, d] = localDate.split("-").map(Number);
|
|
44305
|
+
return new Date(Date.UTC(y ?? 0, (m ?? 1) - 1, (d ?? 1) + days)).toISOString().slice(0, 10);
|
|
44306
|
+
}
|
|
44307
|
+
function unresolvable(window, site) {
|
|
44308
|
+
if (!isKnownTimeZone(site.timeZone)) return `the site time zone "${site.timeZone}" is not a known IANA zone`;
|
|
44309
|
+
if (window.between !== void 0 && (window.between.from.kind === "sun" || window.between.to.kind === "sun") && site.zoneOnly === true) return "a sun time needs the site location, and none is set";
|
|
44310
|
+
return null;
|
|
44311
|
+
}
|
|
44312
|
+
/** The interval that STARTS on local day `startDate`, or null when that day has none. */
|
|
44313
|
+
function intervalStartingOn(window, startDate, site) {
|
|
44314
|
+
if (window.days !== void 0 && !window.days.includes(weekdayOfLocalDate(startDate))) return null;
|
|
44315
|
+
if (window.between === void 0) {
|
|
44316
|
+
const start = occurrenceOn(MIDNIGHT, startDate, site);
|
|
44317
|
+
const end = occurrenceOn(MIDNIGHT, addDays(startDate, 1), site);
|
|
44318
|
+
return start === null || end === null ? null : {
|
|
44319
|
+
start,
|
|
44320
|
+
end
|
|
44321
|
+
};
|
|
44322
|
+
}
|
|
44323
|
+
const start = occurrenceOn(window.between.from, startDate, site);
|
|
44324
|
+
const sameDayEnd = occurrenceOn(window.between.to, startDate, site);
|
|
44325
|
+
if (start === null || sameDayEnd === null) return null;
|
|
44326
|
+
if (sameDayEnd > start) return {
|
|
44327
|
+
start,
|
|
44328
|
+
end: sameDayEnd
|
|
44329
|
+
};
|
|
44330
|
+
const end = occurrenceOn(window.between.to, addDays(startDate, 1), site);
|
|
44331
|
+
return end === null || end <= start ? null : {
|
|
44332
|
+
start,
|
|
44333
|
+
end
|
|
44334
|
+
};
|
|
44335
|
+
}
|
|
44336
|
+
function judgeTimeWindow(window, nowMs, site) {
|
|
44337
|
+
const blocked = unresolvable(window, site);
|
|
44338
|
+
if (blocked !== null) return {
|
|
44339
|
+
inside: false,
|
|
44340
|
+
unknown: true,
|
|
44341
|
+
nextChangeAtMs: null,
|
|
44342
|
+
why: `cannot be judged: ${blocked}`
|
|
44343
|
+
};
|
|
44344
|
+
const today = localDateOf(nowMs, site.timeZone);
|
|
44345
|
+
let inside = false;
|
|
44346
|
+
let next = null;
|
|
44347
|
+
for (let offset = -1; offset <= LOOKAHEAD_DAYS; offset += 1) {
|
|
44348
|
+
const interval = intervalStartingOn(window, addDays(today, offset), site);
|
|
44349
|
+
if (interval === null) continue;
|
|
44350
|
+
if (interval.start <= nowMs && nowMs < interval.end) inside = true;
|
|
44351
|
+
for (const boundary of [interval.start, interval.end]) if (boundary > nowMs && (next === null || boundary < next)) next = boundary;
|
|
44352
|
+
}
|
|
44353
|
+
if (window.between === void 0) {
|
|
44354
|
+
const midnight = occurrenceOn(MIDNIGHT, addDays(today, 1), site);
|
|
44355
|
+
if (midnight !== null && midnight > nowMs && (next === null || midnight < next)) next = midnight;
|
|
44356
|
+
}
|
|
44357
|
+
const days = window.days === void 0 ? "" : ` on ${window.days.join(", ")}`;
|
|
44358
|
+
const span = window.between === void 0 ? "the whole day" : "the window";
|
|
44359
|
+
return {
|
|
44360
|
+
inside,
|
|
44361
|
+
unknown: false,
|
|
44362
|
+
nextChangeAtMs: next,
|
|
44363
|
+
why: inside ? `inside ${span}${days}` : `outside ${span}${days}`
|
|
44364
|
+
};
|
|
44365
|
+
}
|
|
44366
|
+
/**
|
|
44186
44367
|
* Evaluating an automation's condition tree against the ConditionMirror.
|
|
44187
44368
|
*
|
|
44188
44369
|
* D49: a trigger is a one-shot event, so its gate must never hang on a read
|
|
@@ -44254,6 +44435,8 @@ function collectInto(cond, out) {
|
|
|
44254
44435
|
...binding.addonId !== void 0 ? { addonId: binding.addonId } : {}
|
|
44255
44436
|
});
|
|
44256
44437
|
return;
|
|
44438
|
+
case "time-is": return;
|
|
44439
|
+
case "triggered-by": return;
|
|
44257
44440
|
default: return;
|
|
44258
44441
|
}
|
|
44259
44442
|
}
|
|
@@ -44270,6 +44453,32 @@ function collectWhenMirrorSources(cond) {
|
|
|
44270
44453
|
return true;
|
|
44271
44454
|
});
|
|
44272
44455
|
}
|
|
44456
|
+
/** Does the tree hold a `time-is` leaf? */
|
|
44457
|
+
function hasTimeLeaves(when) {
|
|
44458
|
+
let found = false;
|
|
44459
|
+
forEachLeaf(when, (leaf) => {
|
|
44460
|
+
if (leaf.kind === "time-is") found = true;
|
|
44461
|
+
});
|
|
44462
|
+
return found;
|
|
44463
|
+
}
|
|
44464
|
+
/**
|
|
44465
|
+
* The soonest ANY `time-is` leaf changes sides (ms from `now`), over every
|
|
44466
|
+
* leaf of the tree — a short-circuit that skipped a leaf in the last
|
|
44467
|
+
* evaluation must not hide its boundary. Undefined: no time leaf, no site, or
|
|
44468
|
+
* no boundary within reach.
|
|
44469
|
+
*/
|
|
44470
|
+
function nextTimeBoundaryInMs(when, now, site, rootPath = "when") {
|
|
44471
|
+
if (site === void 0) return void 0;
|
|
44472
|
+
let due;
|
|
44473
|
+
forEachLeaf(when, (leaf) => {
|
|
44474
|
+
if (leaf.kind !== "time-is") return;
|
|
44475
|
+
const next = judgeTimeWindow(leaf, now, site).nextChangeAtMs;
|
|
44476
|
+
if (next === null) return;
|
|
44477
|
+
const ms = Math.max(0, next - now);
|
|
44478
|
+
due = due === void 0 ? ms : Math.min(due, ms);
|
|
44479
|
+
}, rootPath);
|
|
44480
|
+
return due;
|
|
44481
|
+
}
|
|
44273
44482
|
function sliceKey(deviceId, cap) {
|
|
44274
44483
|
return `${deviceId}|${cap}`;
|
|
44275
44484
|
}
|
|
@@ -44601,6 +44810,53 @@ function evalNode(cond, path, reader, now, out, state) {
|
|
|
44601
44810
|
});
|
|
44602
44811
|
return ok;
|
|
44603
44812
|
}
|
|
44813
|
+
case "time-is": {
|
|
44814
|
+
if (state.site === void 0) {
|
|
44815
|
+
state.unknown = true;
|
|
44816
|
+
out.push({
|
|
44817
|
+
path,
|
|
44818
|
+
kind: cond.kind,
|
|
44819
|
+
outcome: "fail",
|
|
44820
|
+
reason: "the site clock is not known here → fail"
|
|
44821
|
+
});
|
|
44822
|
+
return false;
|
|
44823
|
+
}
|
|
44824
|
+
const verdict = judgeTimeWindow(cond, now, state.site);
|
|
44825
|
+
if (verdict.unknown) state.unknown = true;
|
|
44826
|
+
if (verdict.nextChangeAtMs !== null) {
|
|
44827
|
+
const due = Math.max(0, verdict.nextChangeAtMs - now);
|
|
44828
|
+
state.timeDueInMs = state.timeDueInMs === void 0 ? due : Math.min(state.timeDueInMs, due);
|
|
44829
|
+
}
|
|
44830
|
+
out.push({
|
|
44831
|
+
path,
|
|
44832
|
+
kind: cond.kind,
|
|
44833
|
+
outcome: verdict.inside ? "pass" : "fail",
|
|
44834
|
+
reason: `${verdict.why} → ${verdict.inside ? "pass" : "fail"}`
|
|
44835
|
+
});
|
|
44836
|
+
return verdict.inside;
|
|
44837
|
+
}
|
|
44838
|
+
case "triggered-by": {
|
|
44839
|
+
const named = cond.leafIds.map((id) => `"${id}"`).join(", ");
|
|
44840
|
+
if (state.trigger === "unknown") {
|
|
44841
|
+
state.unknown = true;
|
|
44842
|
+
out.push({
|
|
44843
|
+
path,
|
|
44844
|
+
kind: cond.kind,
|
|
44845
|
+
outcome: "fail",
|
|
44846
|
+
reason: `what started this run is not known here, so "triggered by ${named}" cannot be judged → fail`
|
|
44847
|
+
});
|
|
44848
|
+
return false;
|
|
44849
|
+
}
|
|
44850
|
+
const fired = state.trigger.leafId;
|
|
44851
|
+
const ok = fired !== null && cond.leafIds.includes(fired);
|
|
44852
|
+
out.push({
|
|
44853
|
+
path,
|
|
44854
|
+
kind: cond.kind,
|
|
44855
|
+
outcome: ok ? "pass" : "fail",
|
|
44856
|
+
reason: `${fired === null ? "no named trigger started this run" : `started by "${fired}"`}, wanted ${named} → ${ok ? "pass" : "fail"}`
|
|
44857
|
+
});
|
|
44858
|
+
return ok;
|
|
44859
|
+
}
|
|
44604
44860
|
case "not": {
|
|
44605
44861
|
const at = out.length;
|
|
44606
44862
|
out.push({
|
|
@@ -44659,13 +44915,17 @@ function evaluateWhenTree(when, reader, now, options = {}) {
|
|
|
44659
44915
|
firedPath: options.firedPath,
|
|
44660
44916
|
holds: options.holds,
|
|
44661
44917
|
unknown: false,
|
|
44662
|
-
holdDueInMs: void 0
|
|
44918
|
+
holdDueInMs: void 0,
|
|
44919
|
+
site: options.site,
|
|
44920
|
+
timeDueInMs: void 0,
|
|
44921
|
+
trigger: options.trigger ?? { leafId: options.firedPath === void 0 ? null : eventLeafIdAt(when, options.firedPath) }
|
|
44663
44922
|
};
|
|
44664
44923
|
return {
|
|
44665
44924
|
pass: evalNode(when, options.rootPath ?? "when", reader, now, nodes, state),
|
|
44666
44925
|
unknown: state.unknown,
|
|
44667
44926
|
nodes,
|
|
44668
|
-
...state.holdDueInMs === void 0 ? {} : { holdDueInMs: state.holdDueInMs }
|
|
44927
|
+
...state.holdDueInMs === void 0 ? {} : { holdDueInMs: state.holdDueInMs },
|
|
44928
|
+
...state.timeDueInMs === void 0 ? {} : { timeDueInMs: state.timeDueInMs }
|
|
44669
44929
|
};
|
|
44670
44930
|
}
|
|
44671
44931
|
var DETECTION_DESCRIPTIONS = {
|
|
@@ -44682,6 +44942,11 @@ var STATIONARY_DESCRIPTIONS = {
|
|
|
44682
44942
|
phase: "appeared or departed",
|
|
44683
44943
|
entryId: "the stopped object"
|
|
44684
44944
|
};
|
|
44945
|
+
var BECOMES_DESCRIPTIONS = {
|
|
44946
|
+
deviceId: "the device that changed",
|
|
44947
|
+
from: "the value before the change, empty when it is not known",
|
|
44948
|
+
to: "the value it changed to"
|
|
44949
|
+
};
|
|
44685
44950
|
function describe$1(descriptions) {
|
|
44686
44951
|
return Object.entries(descriptions).map(([name, description]) => ({
|
|
44687
44952
|
name,
|
|
@@ -44690,8 +44955,40 @@ function describe$1(descriptions) {
|
|
|
44690
44955
|
}
|
|
44691
44956
|
describe$1(DETECTION_DESCRIPTIONS);
|
|
44692
44957
|
describe$1(STATIONARY_DESCRIPTIONS);
|
|
44958
|
+
describe$1(BECOMES_DESCRIPTIONS).map((v) => v.name === "deviceId" ? {
|
|
44959
|
+
...v,
|
|
44960
|
+
hintKey: "becomesDeviceId"
|
|
44961
|
+
} : v);
|
|
44693
44962
|
new Set(Object.values(COCO_TO_MACRO.mapping));
|
|
44694
44963
|
/**
|
|
44964
|
+
* Save-time check of a `when` tree against the SITE: a `time-is` window
|
|
44965
|
+
* bounded by a sun event needs the site location, and any window needs a known
|
|
44966
|
+
* time zone. Refused before the save with a typed reason — at run time the
|
|
44967
|
+
* same leaf can only read `unknown`, and a rule that never decides is a rule
|
|
44968
|
+
* the operator believes is working. Pure: the site reading is handed in.
|
|
44969
|
+
*/
|
|
44970
|
+
var WINDOW_ENDS = ["from", "to"];
|
|
44971
|
+
/** Every `time-is` window end of the tree this site cannot place. `rootPath` replaces the leading `when`. */
|
|
44972
|
+
function whenSiteIssues(when, reading, rootPath = "when") {
|
|
44973
|
+
const issues = [];
|
|
44974
|
+
forEachLeaf(when, (leaf, path) => {
|
|
44975
|
+
if (leaf.kind !== "time-is" || leaf.between === void 0) return;
|
|
44976
|
+
for (const end of WINDOW_ENDS) {
|
|
44977
|
+
const checked = validateTimeSpecForSite(leaf.between[end], reading);
|
|
44978
|
+
if (!checked.ok) issues.push({
|
|
44979
|
+
path: `${path}.between.${end}`,
|
|
44980
|
+
reason: checked.reason,
|
|
44981
|
+
message: checked.message
|
|
44982
|
+
});
|
|
44983
|
+
}
|
|
44984
|
+
}, rootPath);
|
|
44985
|
+
return issues;
|
|
44986
|
+
}
|
|
44987
|
+
/** The same check over the guard (`if`) of every step of a list, reported under `<rootPath>.<i>.if`. */
|
|
44988
|
+
function stepGuardSiteIssues(steps, reading, rootPath) {
|
|
44989
|
+
return steps.flatMap((step, i) => step.if === void 0 ? [] : whenSiteIssues(step.if, reading, `${rootPath}.${i}.if`));
|
|
44990
|
+
}
|
|
44991
|
+
/**
|
|
44695
44992
|
* Schedulers (D983) — an entity that performs actions over the day.
|
|
44696
44993
|
*
|
|
44697
44994
|
* A scheduler has profiles; a profile has weekdays and a timeline of POINTS.
|
|
@@ -44714,6 +45011,13 @@ var SchedulerStateTreeSchema = AutomationWhenSchema.superRefine((when, ctx) => {
|
|
|
44714
45011
|
});
|
|
44715
45012
|
return;
|
|
44716
45013
|
}
|
|
45014
|
+
if (hasTriggeredByLeaves(when)) {
|
|
45015
|
+
ctx.addIssue({
|
|
45016
|
+
code: "custom",
|
|
45017
|
+
message: TRIGGERED_BY_NEEDS_AUTOMATION
|
|
45018
|
+
});
|
|
45019
|
+
return;
|
|
45020
|
+
}
|
|
44717
45021
|
const problem = validateWhenTree(when);
|
|
44718
45022
|
if (problem !== null) ctx.addIssue({
|
|
44719
45023
|
code: "custom",
|
|
@@ -44802,10 +45106,20 @@ function holdRefusalOf(step) {
|
|
|
44802
45106
|
*/
|
|
44803
45107
|
function validateSchedulerInput(input, reading) {
|
|
44804
45108
|
const issues = [];
|
|
45109
|
+
const siteIssues = (found) => {
|
|
45110
|
+
for (const issue of found) issues.push({
|
|
45111
|
+
path: issue.path,
|
|
45112
|
+
message: issue.message
|
|
45113
|
+
});
|
|
45114
|
+
};
|
|
45115
|
+
if (input.activeWhen !== void 0) siteIssues(whenSiteIssues(input.activeWhen, reading, "activeWhen"));
|
|
44805
45116
|
input.profiles.forEach((profile, pi) => {
|
|
44806
45117
|
const ids = /* @__PURE__ */ new Set();
|
|
45118
|
+
if (profile.activeWhen !== void 0) siteIssues(whenSiteIssues(profile.activeWhen, reading, `profiles.${pi}.activeWhen`));
|
|
44807
45119
|
profile.points.forEach((point, qi) => {
|
|
44808
45120
|
const base = `profiles.${pi}.points.${qi}`;
|
|
45121
|
+
if (point.conditions !== void 0) siteIssues(whenSiteIssues(point.conditions, reading, `${base}.conditions`));
|
|
45122
|
+
siteIssues(stepGuardSiteIssues(point.steps, reading, `${base}.steps`));
|
|
44809
45123
|
if (ids.has(point.id)) issues.push({
|
|
44810
45124
|
path: `${base}.id`,
|
|
44811
45125
|
message: `point id "${point.id}" is used twice`
|
|
@@ -45029,6 +45343,8 @@ var AutomationConditionTraceNodeSchema = z.object({
|
|
|
45029
45343
|
"device-is",
|
|
45030
45344
|
"expression",
|
|
45031
45345
|
"stationary-present",
|
|
45346
|
+
"time-is",
|
|
45347
|
+
"triggered-by",
|
|
45032
45348
|
"device-becomes",
|
|
45033
45349
|
"device-event",
|
|
45034
45350
|
"schedule",
|
|
@@ -45456,21 +45772,18 @@ var ActionRunChangedSchema = z.object({
|
|
|
45456
45772
|
lastRunAt: z.number().nullable(),
|
|
45457
45773
|
lastError: z.string().nullable()
|
|
45458
45774
|
});
|
|
45459
|
-
/**
|
|
45460
|
-
* The guard of a conditional step (#472): the step's `if` is the ONE `when`
|
|
45461
|
-
* tree (D980), read on a {@link ConditionMirror} filled for exactly the leaves
|
|
45462
|
-
* the tree names, at the moment the step is reached. A state that cannot be
|
|
45463
|
-
* read is UNKNOWN, and unknown runs neither side (D49: a failed read changes
|
|
45464
|
-
* nothing, and never decides a branch).
|
|
45465
|
-
*/
|
|
45466
45775
|
/** Fill a mirror for the tree's leaves from `fetchers` and judge it NOW. */
|
|
45467
|
-
async function evaluateStepCondition(when, fetchers, now = Date.now, history) {
|
|
45776
|
+
async function evaluateStepCondition(when, fetchers, now = Date.now, history, site, trigger) {
|
|
45468
45777
|
const mirror = history?.mirror ?? new ConditionMirror(collectWhenMirrorSources(when));
|
|
45469
45778
|
await mirror.refresh(fetchers);
|
|
45470
|
-
const evaluation = evaluateWhenTree(when, mirror, now(), {
|
|
45471
|
-
|
|
45472
|
-
|
|
45473
|
-
|
|
45779
|
+
const evaluation = evaluateWhenTree(when, mirror, now(), {
|
|
45780
|
+
...history === void 0 ? {} : {
|
|
45781
|
+
holds: history.holds,
|
|
45782
|
+
rootPath: history.rootPath
|
|
45783
|
+
},
|
|
45784
|
+
...site === void 0 ? {} : { site },
|
|
45785
|
+
trigger: trigger ?? "unknown"
|
|
45786
|
+
});
|
|
45474
45787
|
const first = evaluation.nodes.filter((n) => n.outcome !== "pass").map((n) => n.reason)[0];
|
|
45475
45788
|
if (evaluation.unknown) return {
|
|
45476
45789
|
result: "unknown",
|
|
@@ -119088,4 +119401,4 @@ z.object({
|
|
|
119088
119401
|
commands: z.record(z.string(), z.unknown())
|
|
119089
119402
|
});
|
|
119090
119403
|
//#endregion
|
|
119091
|
-
export { DataStoreDatabaseSchema as $, snapshotCapability as $a, secretViewsOf as $c, petFountainWaterItem as $i, compositionFieldKey as $n, helperMembers as $o, internalActionId as $r, assertTransactScope as $s, STORAGE_LOCATION_MODES as $t, ConsumableItemSchema as A, resolveMutate as Aa, isReadingQuantity as Ac, mediaPlayerCapability as Ai, batteryCapability as An, withLocationMode as Ao, enumerateSchemaFields as Ar, RECORD_SECRET_COLLECTION_PREFIX as As, MOTION_CLOSE_AFTER_MS as At, DERIVED_CAMERA_SILENCED_CAP_NAMES as B, schedulersCapability as Ba, normalizeNodeId as Bc, normalizeActionUnits as Bi, canonicalIconKey as Bn, MINUTE_MS as Bo, fanPresetsCapability as Br, RecordTooLargeError as Bs, PowerSourceInfoSchema as Bt, COMPOSER_RUNNER_ID as C, resolveBucketMs as Ca, hydrateSchema as Cc, lockControlCapability as Ci, alertEpisodePayload as Cn, validateSchedulerInput as Co, deviceRemovalHookCapability as Cr, HISTORY_DEFAULT_MIN_INTERVAL_MS as Cs, KEYCHAIN_RESET_TRIGGER_ACTOR as Ct, CalendarPreferencesSchema as D, resolveHubAddressRoles as Da, isEvent as Dc, looseSchema as Di, authProviderCapability as Dn, vectorStoreCapability as Do, deviceTransitionsCapability as Dr, RECORD_BATCH_MAX as Ds, METHOD_ACCESS_MAP as Dt, CREDENTIAL_TOKEN_AUDIENCE as E, resolveHeroLayout as Ea, isDeviceConfigCap as Ec, logLevelAtMost as Ei, armRemovalReconcile as En, vectorIndexDimConflictError as Eo, deviceStatusCapability as Er, PlaintextSecretError as Es, LOG_LEVEL_RANK as Et, DATABASE_SNAPSHOT_SUFFIX as F, resolveTemplateRef as Fa, isSecretRefOwnedBy as Fc, migrationsCapability as Fi, buildDeviceSignatureMessage as Fn, DEFAULT_HISTORY_RETENTION as Fo, expandContainer as Fr, ReadinessRegistry as Fs, PET_FOUNTAIN_WATER_KEY as Ft, DEVICE_SAN_CREDENTIAL_PREFIX as G, settingsStoreCapability as Ga, readinessKey as Gc, objectInputDeclaresAddonId as Gi, checkTemplatePayload as Gn, compositionFeatureEnabled as Go, formatDeviceRevoker as Gr, TransactRefusedError as Gs, RECORDING_SOURCE_CAMSTACK_ADDON as Gt, DEVICE_HISTORY_ENERGY_KEY as H, scopesAllowDeviceCap as Ha, parseJsonObject as Hc, normalizeCoreBlockWrite as Hi, catalogueIssues as Hn, cloneStatefulExpressionMemory as Ho, filesystemBrowseCapability as Hr, RevConflictError as Hs, PreferenceNamespaceSchema as Ht, DATABASE_SNAPSHOT_TIMEOUT_MS as I, runFanOut as Ia, makeSecretMarker as Ic, modeForSwitch as Ii, buildHeroModel as In, HISTORY_FAST_MS as Io, expressionContainsBuiltinCall as Ir, ReadinessTimeoutError as Is, PREFERENCES_MAX_VALUE_BYTES as It, DEVICE_TEMPLATE_MAX_LENGTH as J, sharedActuatorMethods as Ja, resolveSecretMarkers as Jc, orderMigrations as Ji, collectWhenMirrorSources as Jn, compositionSourceKey as Jo, generateDeviceAlias as Jr, WELL_KNOWN_TAB_MAP as Js, RecordingStatusSchema as Jt, DEVICE_SAN_USER_PREFIX as K, settleDeviceFeatures as Ka, recordSecretRef as Kc, objectInputDeclaresRequiredDeviceId as Ki, climateControlCapability as Kn, compositionItemFieldPath as Ko, formatMinutes as Kr, UnindexedFilterError as Ks, REMOTE_MEDIA_COMMANDS as Kt, DATA_STORE_DATABASES as L, runSteps as La, mapSecretLeaves as Lc, modeMayWrite as Li, buildStreamParamsConfigSchema as Ln, HISTORY_SLOW_MS as Lo, extractNestedAddonId as Lr, RecordIntegrationInstances as Ls, PROPOSAL_MIN_SPAN_MS as Lt, CoreBlockSchema as M, resolveRemoteSource as Ma, isSecretFieldView as Mc, memoizePinnedFfmpeg as Mi, buildActionSteps as Mn, COMPOSER_ADDON_ID as Mo, evaluateStepCondition as Mr, REDACTED_SECRET as Ms, MigrationLedgerEntrySchema as Mt, CredentialTokenClaimsSchema as N, resolveRunnerId as Na, isSecretMarker as Nc, methodRefusal as Ni, buildCapabilityLookup as Nn, CompositionSchema as No, evaluateWhenTree as Nr, REMOVE_LEAF as Ns, MigrationMetaSchema as Nt, CatalogFileSchema as O, resolveLocationMode as Oa, isInstanceEnabled as Oc, mayReadLocation as Oi, backupCapability as On, weekdayOfLocalDate as Oo, enumerateInferenceDevices as Or, RECORD_BATCH_MAX_BYTES as Os, MIGRATION_API_V1_METHODS as Ot, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as P, resolveStepArgs as Pa, isSecretMarkerLike as Pc, metricsProviderCapability as Pi, buildDeviceEnrollmentLink as Pn, DAY_MS as Po, evictionPolicyOfLocation as Pr, RUNTIME_DEFAULTS as Ps, NetworkTunnelStartedDataSchema as Pt, DEVICE_TOMBSTONE_RETENTION_MS as Q, siteZoneKey as Qa, secretTreeFromSchema as Qc, petFountainCapability as Qi, composerCapability as Qn, evaluateStatistic as Qo, integrationInstancesCapability as Qr, asString$1 as Qs, STORAGE_ACCESS_FALLBACK as Qt, DAY_NAMES as R, runtimeFieldUnit as Ra, nodeIdOfScopedKey as Rc, motionCapability as Ri, calendarsCapability as Rn, HOUR_MS as Ro, fanControlCapability as Rr, RecordKindDeclarationSchema as Rs, PackageRequiresSchema as Rt, COMPOSED_ITEM_FIXED_FIELDS as S, resolveAppConnections as Sa, historyUnitFor as Sc, locationIconKey as Si, alertEpisodeId as Sn, validateCustomAddress as So, deviceManagerCapability as Sr, ForeignSecretMarkerError as Ss, INTERNAL_ACTION_PREFIX as St, CORE_BLOCK_ADDON_PREFIX as T, resolveCoreBlockFiles as Ta, isDebugChannelName as Tc, logDestinationCapability as Ti, appendTrace as Tn, vectorDimFromBase64 as To, deviceStateCapability as Tr, NoCallerError as Ts, KeychainResetRecordSchema as Tt, DEVICE_ID_FIELD as U, scoreRuntimes as Ua, parseJsonUnknown as Uc, normalizeStepTargets as Ui, checkDeviceAlias as Un, composedDeviceRef as Uo, findChannelSource as Ur, SECRET_CLEAR as Us, PreferenceValueSchema as Ut, DEVICE_ENROLLMENT_TTL_MS as V, scopesAllowAddon as Va, normalizeSecretOwner as Vc, normalizeCapStep as Vi, capUnitResolver as Vn, buildFfmpegArgs as Vo, featureForwards as Vr, RecordUniqueViolationError as Vs, PreferenceDeviceIdSchema as Vt, DEVICE_NONCE_TTL_MS as W, seedInstanceOnce as Wa, parseSecretRef as Wc, normalizeUnit as Wi, checkRoleAddress as Wn, composedDeviceStableId as Wo, foldSnapshotByFunction as Wr, StoredRecordKindDeclarationSchema as Ws, QuantityUnitError as Wt, DEVICE_TEMPLATE_THIS_ALIAS as X, shortHostname as Xa, scopeKey as Xc, parseColorInput as Xi, compareVersions as Xn, disarmRoseMemory as Xo, groupTemplate as Xr, asJsonObject as Xs, RemoteLayoutPayloadSchema as Xt, DEVICE_TEMPLATE_MAX_OUTPUT as Y, sharedColorModes as Ya, ruleFireOfClaim as Yc, parseAcceleratorFactsJson as Yi, colorCapability as Yn, createStatefulExpressionMemory as Yo, groupCommandsCapability as Yr, actionEffect as Ys, RemoteAssumedStateSchema as Yt, DEVICE_TEMPLATE_VALUES_CAP as Z, siteFor as Za, secretTreeFromPaths as Zc, parseStreamParamsFormPatch as Zi, compileScalarOverride as Zn, evaluateDerivative as Zo, heroLayoutCapability as Zr, asNumber as Zs, RunningStateStatusSchema as Zt, BatteryStatusSchema as _, remoteCapability as _a, entryBody as _c, legacyAutoLinkIds as _i, actionsCapability as _n, timedRunSeconds as _o, describeComposableCaps as _r, DEVICE_SETTINGS_CONTRIBUTION_METHODS as _s, HISTORY_ITEM_CATALOG as _t, AGENT_MDNS_SERVICE_TYPE as a, preconditionOf as aa, collectSecretMarkerRefs as ac, isCollectionArrayMethod as ai, vocabActionIdFor as al, SsoBridgeClaimsSchema as an, storageOccupancyCapability as ao, coreBlockSourceKind as ar, nextLocalMidnight as as, EMPTY_AUTOMATION_STATE as at, CAP_NAMES_WITH_STATUS as b, replacedFieldKeys as ba, getDebugInterest as bc, localDateOf as bi, addonSettingsCapability as bn, userManagementCapability as bo, deviceExtensionCapability as br, DeviceTransitionSchema as bs, HvacModeSchema as bt, ActionError as c, processTimeZoneOr as ca, commandOrigin as cc, isInternalActionId as ci, DeviceFeature as cl, StorageLocationTypeSchema as cn, streamQualityLabel as co, createDeviceExtensionProvider as cr, planResetTier as cs, FAN_CAPTURE_FIELDS as ct, ActionTargetResolver as d, ptzAutotrackCapability as da, defineAddonMigrations as dc, isObjectInput as di, errMsg as dl, TemplateKindSchema as dn, switchStateOfMode as do, databaseSnapshotCapability as dr, toExpressionValue as ds, FanDirectionSchema as dt, pickAppLinkHub as ea, assertValidDeclaration as ec, interpolate as ei, sleep as el, STREAM_PROFILE_META as en, splitTranslationRef as eo, compositionSourceRefs as er, historyRetentionFromSettings as es, DeclaredDevices as et, ActionVariableSchema as f, readStoredRemoteConfig as fa, defineCustomActions as fc, isSameAddonId as fi, featuresOfBoundCaps as fl, TokenScopeSchema as fn, templateCapability as fo, declarationOwnerNodeId as fr, wattMillisecondsToKwh as fs, FanPresetSchema as ft, BaseDevice as g, reducePoints as ga, emitReadiness as gc, keychainCapability as gi, actionWaitTotalMs as gn, timedRunQuickRun as go, deriveBatteryPresence as gr, DATAPLANE_SECRET_HEADER as gs, HISTORY_CATALOG as gt, BUILTIN_REMOTE_COMPONENTS as h, recordsCapability as ha, emitDownForOwnedCaps as hc, keychainAdminCapability as hi, actionSourceCapability as hn, timedRunMaxIn as ho, defineExtensionSlotProvider as hr, CALLER_STAMPED_CAPABILITIES as hs, GroupCommandResultSchema as ht, ACTUATOR_TEMPLATE_IDS as i, powerSourceLinkOfComposition as ia, collectSecretLeaves as ic, isArrayOutputSchema as ii, userError as il, ServerNameSchema as in, storageMigrationCapability as io, coreBlockIdFromAddonId as ir, isHistoryHelper as is, DiscoveryProposalBodySchema as it, ControlStatusSchema as j, resolveNotificationTapAddress as ja, isSecretClear as jc, mediaPlayerFeaturesOfRoles as ji, brightnessCapability as jn, zoneOnlySite as jo, evaluateCompositionField as jr, RECORD_SWEEP_INTERVAL_MS as js, MediaPlayerStatusSchema as jt, ConditionMirror as k, resolveMethodAuth as ka, isKeychainStoredField as kc, mayWriteToLocation as ki, bareAddonId as kn, withDefaultRunning as ko, enumerateItemArrayFields as kr, RECORD_DELETE_BATCH as ks, MINUTES_PER_DAY as kt, ActionMinDelaySecSchema as l, projectDeviceRow as la, createEvent as lc, isKernelDerivedFeature as li, DeviceRole as ll, StorageMigrationJobSchema as ln, supportedRuntimes as lo, customKeyOfRole as lr, planStatisticTier as ls, FIRST_LEVEL_MACRO_CLASSES as lt, AutomationStateDocSchema as m, recordEntriesCapability as ma, defineRecordKinds as mc, kebabToCamel as mi, UserRecordSchema as mn, timedRunLimitOf as mo, decodeVectorBase64 as mr, BatchTooLargeError as ms, FieldClaimSchema as mt, ACTION_TARGET_INVALIDATION_EVENTS as n, platformProbeCapability as na, buildSecretRef as nc, isAlertEpisodeSeverity as ni, toSecretFieldView as nl, SchedulerSchema as nn, storageAdminCapability as no, coreBlockAddonId as nr, integrateReading as ns, DeviceStatusSchema as nt, AGENT_MDNS_TXT_KEYS as o, problemsBlockSave as oa, collectZodSecretPaths as oc, isCredentialTokenPayload as oi, withoutCallerStamp as ol, StorageCleanupJobSchema as on, storageProviderCapability as oo, coreBlocksCapability as or, openReset as os, EMPTY_REMOTE_ASSUMED_STATE as ot, AlertSchema as p, reconcileReportedFeatures as pa, defineEntryKind as pc, isVoidInput as pi, EventCategory as pl, UNATTRIBUTED_BUCKET_KEY as pn, timedRunCapability as po, declaredSeriesKind as pr, BaseAddon as ps, FieldClaimModeSchema as pt, DEVICE_TEMPLATE_FILTERS as q, sharedActuatorFeatures as qa, resolveCapMount as qc, occurrenceOn as qi, collectDeviceTemplates as qn, compositionSliceKey as qo, gbToBytes as qr, UnknownRecordKindError as qs, ROOT_BUCKET_KEY as qt, ACTUATOR_METHODS as r, powerSourceCapability as ra, collectSecretConfigKeys as rc, isAppLinkBase as ri, transformSecretWrite as rl, ScopedTokenSchema as rn, storageCapability as ro, coreBlockComposition as rr, isForwardInputRef as rs, DeviceTombstoneSchema as rt, ALL_CAPABILITY_DEFINITIONS as s, procedureAuthKey as sa, commandEffect as sc, isDefaultAppConnectionEndpoint as si, COMPOSED_DEVICE_STABLE_ID_PREFIX as sl, StorageLocationModeSchema as sn, streamCatalogCapability as so, coverCapability as sr, openStatistic as ss, EMPTY_REMOTE_CONFIG as st, ACTION_RUN_MAX_MS as t, planComposition as ta, auditedFields as tc, isAlertEpisodeOpen as ti, toNodeId as tl, SchedulerError as tn, stableIdMapOf as to, consumablesCapability as tr, implementedMethodsOf as ts, DeviceRunSchema as tt, ActionStepSchema as u, proposeRunningThreshold as ua, customAction as uc, isLocationEnabled as ui, DeviceType as ul, SwitchStatusSchema as un, switchCapability as uo, dataStoreProviderCapability as ur, statisticCadenceMs as us, FanControlStatusSchema as ut, CAMERA_SWITCH_ORDER as v, remoteLayoutComponentsCapability as va, expandCapMethods as vc, legacyModeOf as vi, addonIdOfActionId as vn, toTimings as vo, describeUnmet as vr, DEVICE_STATUS_METHOD as vs, HUB_MDNS_SERVICE_TYPE as vt, CORE_BLOCKS_ADDON_ID as w, resolveCoreBlockEntry as wa, isCommand as wc, lockDoorLinkOfComposition as wi, alertsCapability as wn, valveCapability as wo, deviceRunsCapability as wr, InvalidRecordError as ws, KeychainAuditEntrySchema as wt, CATALOG_LANGS as x, resolveActionVariables as xa, historyItemFieldPath as xc, localNetworkCapability as xi, addonWidgetsCapability as xn, validateComposition as xo, deviceHistoryCapability as xr, FilterRequiredError as xs, IDLE_ACTION_STATUS as xt, CAMSTACK_APP_LINK_ORIGIN as y, remoteSourceSteps as ya, formatSecretScope as yc, lifecycleJobSchema as yi, addonPagesCapability as yn, unmetRequirements as yo, deviceCredentialsCapability as yr, DeclarationRefusedError as ys, HUB_MDNS_TXT_KEYS as yt, DEFAULT_HOLD_OVERRIDE as z, runtimeStatePolicyFor as za, nodePin as zc, nextOccurrence as zi, cameraGridLayoutCapability as zn, HelperMemberSchema as zo, fanOutTargets as zr, RecordNotFoundError as zs, PetFountainStatusSchema as zt };
|
|
119404
|
+
export { DataStoreDatabaseSchema as $, siteFor as $a, secretTreeFromPaths as $c, parseStreamParamsFormPatch as $i, compositionFieldKey as $n, evaluateDerivative as $o, integrationInstancesCapability as $r, asNumber as $s, STORAGE_LOCATION_MODES as $t, ConsumableItemSchema as A, resolveLocationMode as Aa, isInstanceEnabled as Ac, mayWriteToLocation as Ai, batteryCapability as An, weekdayOfLocalDate as Ao, enumerateSchemaFields as Ar, RECORD_BATCH_MAX_BYTES as As, MOTION_CLOSE_AFTER_MS as At, DERIVED_CAMERA_SILENCED_CAP_NAMES as B, runtimeFieldUnit as Ba, nodeIdOfScopedKey as Bc, nextOccurrence as Bi, canonicalIconKey as Bn, HOUR_MS as Bo, fanPresetsCapability as Br, RecordKindDeclarationSchema as Bs, PowerSourceInfoSchema as Bt, COMPOSER_RUNNER_ID as C, resolveActionVariables as Ca, historyItemFieldPath as Cc, locationIconKey as Ci, alertEpisodePayload as Cn, validateComposition as Co, deviceRemovalHookCapability as Cr, FilterRequiredError as Cs, KEYCHAIN_RESET_TRIGGER_ACTOR as Ct, CalendarPreferencesSchema as D, resolveCoreBlockFiles as Da, isDebugChannelName as Dc, logLevelAtMost as Di, authProviderCapability as Dn, vectorDimFromBase64 as Do, deviceTransitionsCapability as Dr, NoCallerError as Ds, METHOD_ACCESS_MAP as Dt, CREDENTIAL_TOKEN_AUDIENCE as E, resolveCoreBlockEntry as Ea, isCommand as Ec, logDestinationCapability as Ei, armRemovalReconcile as En, valveCapability as Eo, deviceStatusCapability as Er, InvalidRecordError as Es, LOG_LEVEL_RANK as Et, DATABASE_SNAPSHOT_SUFFIX as F, resolveRunnerId as Fa, isSecretMarker as Fc, metricsProviderCapability as Fi, buildDeviceSignatureMessage as Fn, CompositionSchema as Fo, expandContainer as Fr, REMOVE_LEAF as Fs, PET_FOUNTAIN_WATER_KEY as Ft, DEVICE_SAN_CREDENTIAL_PREFIX as G, scoreRuntimes as Ga, parseJsonUnknown as Gc, normalizeStepTargets as Gi, checkTemplatePayload as Gn, composedDeviceRef as Go, formatDeviceRevoker as Gr, SECRET_CLEAR as Gs, RECORDING_SOURCE_CAMSTACK_ADDON as Gt, DEVICE_HISTORY_ENERGY_KEY as H, schedulersCapability as Ha, normalizeNodeId as Hc, normalizeActionUnits as Hi, catalogueIssues as Hn, MINUTE_MS as Ho, filesystemBrowseCapability as Hr, RecordTooLargeError as Hs, PreferenceNamespaceSchema as Ht, DATABASE_SNAPSHOT_TIMEOUT_MS as I, resolveStepArgs as Ia, isSecretMarkerLike as Ic, migrationsCapability as Ii, buildHeroModel as In, DAY_MS as Io, expressionContainsBuiltinCall as Ir, RUNTIME_DEFAULTS as Is, PREFERENCES_MAX_VALUE_BYTES as It, DEVICE_TEMPLATE_MAX_LENGTH as J, settleDeviceFeatures as Ja, recordSecretRef as Jc, objectInputDeclaresRequiredDeviceId as Ji, collectWhenMirrorSources as Jn, compositionItemFieldPath as Jo, generateDeviceAlias as Jr, UnindexedFilterError as Js, RecordingStatusSchema as Jt, DEVICE_SAN_USER_PREFIX as K, seedInstanceOnce as Ka, parseSecretRef as Kc, normalizeUnit as Ki, climateControlCapability as Kn, composedDeviceStableId as Ko, formatMinutes as Kr, StoredRecordKindDeclarationSchema as Ks, REMOTE_MEDIA_COMMANDS as Kt, DATA_STORE_DATABASES as L, resolveTemplateRef as La, isSecretRefOwnedBy as Lc, modeForSwitch as Li, buildStreamParamsConfigSchema as Ln, DEFAULT_HISTORY_RETENTION as Lo, extractNestedAddonId as Lr, ReadinessRegistry as Ls, PROPOSAL_MIN_SPAN_MS as Lt, CoreBlockSchema as M, resolveMutate as Ma, isReadingQuantity as Mc, mediaPlayerFeaturesOfRoles as Mi, buildActionSteps as Mn, withLocationMode as Mo, evaluateStepCondition as Mr, RECORD_SECRET_COLLECTION_PREFIX as Ms, MigrationLedgerEntrySchema as Mt, CredentialTokenClaimsSchema as N, resolveNotificationTapAddress as Na, isSecretClear as Nc, memoizePinnedFfmpeg as Ni, buildCapabilityLookup as Nn, zoneOnlySite as No, evaluateWhenTree as Nr, RECORD_SWEEP_INTERVAL_MS as Ns, MigrationMetaSchema as Nt, CatalogFileSchema as O, resolveHeroLayout as Oa, isDeviceConfigCap as Oc, looseSchema as Oi, backupCapability as On, vectorIndexDimConflictError as Oo, enumerateInferenceDevices as Or, PlaintextSecretError as Os, MIGRATION_API_V1_METHODS as Ot, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as P, resolveRemoteSource as Pa, isSecretFieldView as Pc, methodRefusal as Pi, buildDeviceEnrollmentLink as Pn, COMPOSER_ADDON_ID as Po, evictionPolicyOfLocation as Pr, REDACTED_SECRET as Ps, NetworkTunnelStartedDataSchema as Pt, DEVICE_TOMBSTONE_RETENTION_MS as Q, shortHostname as Qa, scopeKey as Qc, parseColorInput as Qi, composerCapability as Qn, disarmRoseMemory as Qo, heroLayoutCapability as Qr, asJsonObject as Qs, STORAGE_ACCESS_FALLBACK as Qt, DAY_NAMES as R, runFanOut as Ra, makeSecretMarker as Rc, modeMayWrite as Ri, calendarsCapability as Rn, HISTORY_FAST_MS as Ro, fanControlCapability as Rr, ReadinessTimeoutError as Rs, PackageRequiresSchema as Rt, COMPOSED_ITEM_FIXED_FIELDS as S, replacedFieldKeys as Sa, getDebugInterest as Sc, localNetworkCapability as Si, alertEpisodeId as Sn, userManagementCapability as So, deviceManagerCapability as Sr, DeviceTransitionSchema as Ss, INTERNAL_ACTION_PREFIX as St, CORE_BLOCK_ADDON_PREFIX as T, resolveBucketMs as Ta, hydrateSchema as Tc, lockDoorLinkOfComposition as Ti, appendTrace as Tn, validateSchedulerInput as To, deviceStateCapability as Tr, HISTORY_DEFAULT_MIN_INTERVAL_MS as Ts, KeychainResetRecordSchema as Tt, DEVICE_ID_FIELD as U, scopesAllowAddon as Ua, normalizeSecretOwner as Uc, normalizeCapStep as Ui, checkDeviceAlias as Un, buildFfmpegArgs as Uo, findChannelSource as Ur, RecordUniqueViolationError as Us, PreferenceValueSchema as Ut, DEVICE_ENROLLMENT_TTL_MS as V, runtimeStatePolicyFor as Va, nodePin as Vc, nextTimeBoundaryInMs as Vi, capUnitResolver as Vn, HelperMemberSchema as Vo, featureForwards as Vr, RecordNotFoundError as Vs, PreferenceDeviceIdSchema as Vt, DEVICE_NONCE_TTL_MS as W, scopesAllowDeviceCap as Wa, parseJsonObject as Wc, normalizeCoreBlockWrite as Wi, checkRoleAddress as Wn, cloneStatefulExpressionMemory as Wo, foldSnapshotByFunction as Wr, RevConflictError as Ws, QuantityUnitError as Wt, DEVICE_TEMPLATE_THIS_ALIAS as X, sharedActuatorMethods as Xa, resolveSecretMarkers as Xc, orderMigrations as Xi, compareVersions as Xn, compositionSourceKey as Xo, groupTemplate as Xr, WELL_KNOWN_TAB_MAP as Xs, RemoteLayoutPayloadSchema as Xt, DEVICE_TEMPLATE_MAX_OUTPUT as Y, sharedActuatorFeatures as Ya, resolveCapMount as Yc, occurrenceOn as Yi, colorCapability as Yn, compositionSliceKey as Yo, groupCommandsCapability as Yr, UnknownRecordKindError as Ys, RemoteAssumedStateSchema as Yt, DEVICE_TEMPLATE_VALUES_CAP as Z, sharedColorModes as Za, ruleFireOfClaim as Zc, parseAcceleratorFactsJson as Zi, compileScalarOverride as Zn, createStatefulExpressionMemory as Zo, hasTimeLeaves as Zr, actionEffect as Zs, RunningStateStatusSchema as Zt, BatteryStatusSchema as _, recordsCapability as _a, emitDownForOwnedCaps as _c, keychainCapability as _i, actionsCapability as _n, timedRunMaxIn as _o, describeComposableCaps as _r, CALLER_STAMPED_CAPABILITIES as _s, HISTORY_ITEM_CATALOG as _t, AGENT_MDNS_SERVICE_TYPE as a, powerSourceCapability as aa, collectSecretConfigKeys as ac, isArrayOutputSchema as ai, transformSecretWrite as al, SsoBridgeClaimsSchema as an, storageCapability as ao, coreBlockSourceKind as ar, isForwardInputRef as as, EMPTY_AUTOMATION_STATE as at, CAP_NAMES_WITH_STATUS as b, remoteLayoutComponentsCapability as ba, expandCapMethods as bc, lifecycleJobSchema as bi, addonSettingsCapability as bn, toTimings as bo, deviceExtensionCapability as br, DEVICE_STATUS_METHOD as bs, HvacModeSchema as bt, ActionError as c, problemsBlockSave as ca, collectZodSecretPaths as cc, isDefaultAppConnectionEndpoint as ci, withoutCallerStamp as cl, StorageLocationTypeSchema as cn, storageProviderCapability as co, createDeviceExtensionProvider as cr, openReset as cs, FAN_CAPTURE_FIELDS as ct, ActionTargetResolver as d, projectDeviceRow as da, createEvent as dc, isLocationEnabled as di, DeviceRole as dl, TemplateKindSchema as dn, supportedRuntimes as do, databaseSnapshotCapability as dr, planStatisticTier as ds, FanDirectionSchema as dt, petFountainCapability as ea, asString$1 as ec, internalActionId as ei, secretTreeFromSchema as el, STREAM_PROFILE_META as en, siteZoneKey as eo, compositionSourceRefs as er, evaluateStatistic as es, DeclaredDevices as et, ActionVariableSchema as f, proposeRunningThreshold as fa, customAction as fc, isObjectInput as fi, DeviceType as fl, TokenScopeSchema as fn, switchCapability as fo, declarationOwnerNodeId as fr, statisticCadenceMs as fs, FanPresetSchema as ft, BaseDevice as g, recordEntriesCapability as ga, defineRecordKinds as gc, keychainAdminCapability as gi, actionWaitTotalMs as gn, timedRunLimitOf as go, deriveBatteryPresence as gr, BatchTooLargeError as gs, HISTORY_CATALOG as gt, BUILTIN_REMOTE_COMPONENTS as h, reconcileReportedFeatures as ha, defineEntryKind as hc, kebabToCamel as hi, EventCategory as hl, actionSourceCapability as hn, timedRunCapability as ho, defineExtensionSlotProvider as hr, BaseAddon as hs, GroupCommandResultSchema as ht, ACTUATOR_TEMPLATE_IDS as i, platformProbeCapability as ia, buildSecretRef as ic, isAppLinkBase as ii, toSecretFieldView as il, ServerNameSchema as in, storageAdminCapability as io, coreBlockIdFromAddonId as ir, integrateReading as is, DiscoveryProposalBodySchema as it, ControlStatusSchema as j, resolveMethodAuth as ja, isKeychainStoredField as jc, mediaPlayerCapability as ji, brightnessCapability as jn, withDefaultRunning as jo, evaluateCompositionField as jr, RECORD_DELETE_BATCH as js, MediaPlayerStatusSchema as jt, ConditionMirror as k, resolveHubAddressRoles as ka, isEvent as kc, mayReadLocation as ki, bareAddonId as kn, vectorStoreCapability as ko, enumerateItemArrayFields as kr, RECORD_BATCH_MAX as ks, MINUTES_PER_DAY as kt, ActionMinDelaySecSchema as l, procedureAuthKey as la, commandEffect as lc, isInternalActionId as li, COMPOSED_DEVICE_STABLE_ID_PREFIX as ll, StorageMigrationJobSchema as ln, streamCatalogCapability as lo, customKeyOfRole as lr, openStatistic as ls, FIRST_LEVEL_MACRO_CLASSES as lt, AutomationStateDocSchema as m, readStoredRemoteConfig as ma, defineCustomActions as mc, isVoidInput as mi, featuresOfBoundCaps as ml, UserRecordSchema as mn, templateCapability as mo, decodeVectorBase64 as mr, wattMillisecondsToKwh as ms, FieldClaimSchema as mt, ACTION_TARGET_INVALIDATION_EVENTS as n, pickAppLinkHub as na, assertValidDeclaration as nc, isAlertEpisodeOpen as ni, sleep as nl, SchedulerSchema as nn, splitTranslationRef as no, coreBlockAddonId as nr, historyRetentionFromSettings as ns, DeviceStatusSchema as nt, AGENT_MDNS_TXT_KEYS as o, powerSourceLinkOfComposition as oa, collectSecretLeaves as oc, isCollectionArrayMethod as oi, userError as ol, StorageCleanupJobSchema as on, storageMigrationCapability as oo, coreBlocksCapability as or, isHistoryHelper as os, EMPTY_REMOTE_ASSUMED_STATE as ot, AlertSchema as p, ptzAutotrackCapability as pa, defineAddonMigrations as pc, isSameAddonId as pi, errMsg as pl, UNATTRIBUTED_BUCKET_KEY as pn, switchStateOfMode as po, declaredSeriesKind as pr, toExpressionValue as ps, FieldClaimModeSchema as pt, DEVICE_TEMPLATE_FILTERS as q, settingsStoreCapability as qa, readinessKey as qc, objectInputDeclaresAddonId as qi, collectDeviceTemplates as qn, compositionFeatureEnabled as qo, gbToBytes as qr, TransactRefusedError as qs, ROOT_BUCKET_KEY as qt, ACTUATOR_METHODS as r, planComposition as ra, auditedFields as rc, isAlertEpisodeSeverity as ri, toNodeId as rl, ScopedTokenSchema as rn, stableIdMapOf as ro, coreBlockComposition as rr, implementedMethodsOf as rs, DeviceTombstoneSchema as rt, ALL_CAPABILITY_DEFINITIONS as s, preconditionOf as sa, collectSecretMarkerRefs as sc, isCredentialTokenPayload as si, vocabActionIdFor as sl, StorageLocationModeSchema as sn, storageOccupancyCapability as so, coverCapability as sr, nextLocalMidnight as ss, EMPTY_REMOTE_CONFIG as st, ACTION_RUN_MAX_MS as t, petFountainWaterItem as ta, assertTransactScope as tc, interpolate as ti, secretViewsOf as tl, SchedulerError as tn, snapshotCapability as to, consumablesCapability as tr, helperMembers as ts, DeviceRunSchema as tt, ActionStepSchema as u, processTimeZoneOr as ua, commandOrigin as uc, isKernelDerivedFeature as ui, DeviceFeature as ul, SwitchStatusSchema as un, streamQualityLabel as uo, dataStoreProviderCapability as ur, planResetTier as us, FanControlStatusSchema as ut, CAMERA_SWITCH_ORDER as v, reducePoints as va, emitReadiness as vc, legacyAutoLinkIds as vi, addonIdOfActionId as vn, timedRunQuickRun as vo, describeUnmet as vr, DATAPLANE_SECRET_HEADER as vs, HUB_MDNS_SERVICE_TYPE as vt, CORE_BLOCKS_ADDON_ID as w, resolveAppConnections as wa, historyUnitFor as wc, lockControlCapability as wi, alertsCapability as wn, validateCustomAddress as wo, deviceRunsCapability as wr, ForeignSecretMarkerError as ws, KeychainAuditEntrySchema as wt, CATALOG_LANGS as x, remoteSourceSteps as xa, formatSecretScope as xc, localDateOf as xi, addonWidgetsCapability as xn, unmetRequirements as xo, deviceHistoryCapability as xr, DeclarationRefusedError as xs, IDLE_ACTION_STATUS as xt, CAMSTACK_APP_LINK_ORIGIN as y, remoteCapability as ya, entryBody as yc, legacyModeOf as yi, addonPagesCapability as yn, timedRunSeconds as yo, deviceCredentialsCapability as yr, DEVICE_SETTINGS_CONTRIBUTION_METHODS as ys, HUB_MDNS_TXT_KEYS as yt, DEFAULT_HOLD_OVERRIDE as z, runSteps as za, mapSecretLeaves as zc, motionCapability as zi, cameraGridLayoutCapability as zn, HISTORY_SLOW_MS as zo, fanOutTargets as zr, RecordIntegrationInstances as zs, PetFountainStatusSchema as zt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
2
|
+
const require_wal_maintenance = require("./wal-maintenance-B2_uCEi5.js");
|
|
3
3
|
let node_worker_threads = require("node:worker_threads");
|
|
4
4
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-
|
|
1
|
+
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-g7yvxLMj.mjs";
|
|
2
2
|
import { parentPort, threadId, workerData } from "node:worker_threads";
|
|
3
3
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { gc as defineRecordKinds } from "./dist-OmrC_RZs.mjs";
|
|
2
2
|
import { C as backdatedNotBefore, S as withUtcTimeEncoding, _ as NameConstraints, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, g as GeneralSubtrees, h as GeneralSubtree, i as Extension, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension, v as GeneralName, x as AsnConvert } from "./x509.es-BRiJgOvu.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { X509Certificate, createHash, createPrivateKey, randomBytes, webcrypto } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-CLnTYKFn.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { ol as userError } from "./dist-OmrC_RZs.mjs";
|
|
3
3
|
import { f as X509Certificate$1 } from "./x509.es-BRiJgOvu.mjs";
|
|
4
|
-
import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-
|
|
4
|
+
import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-CKQVXf4o.mjs";
|
|
5
5
|
import { X509Certificate, createPrivateKey } from "node:crypto";
|
|
6
6
|
import { writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
7
7
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-CLnTYKFn.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
|
-
const require_hub_identity = require("./hub-identity-
|
|
4
|
+
const require_hub_identity = require("./hub-identity-TrZcnJkB.js");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
6
|
let _camstack_types_node = require("@camstack/types/node");
|
|
7
7
|
let node_fs = require("node:fs");
|