@camstack/server 1.2.779 → 1.2.781
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 +22 -0
- package/dist/agent/main.js +5 -1
- package/dist/agent/stale-addon-gate.js +52 -15
- package/dist/api/addon-upload.js +41 -0
- package/dist/api/core/cap-providers.js +19 -29
- package/dist/api/core/integration-role.js +15 -2
- package/dist/api/tarball-manifest.js +10 -1
- package/dist/api/trpc/cap-router-runtime.js +18 -9
- package/dist/api/trpc/generated-cap-mounts.js +1 -9
- package/dist/api/trpc/generated-cap-routers.js +9 -88
- package/dist/core/addon/addon-package.service.js +24 -8
- package/dist/core/addon/addon-registry.service.js +61 -10
- package/dist/core/addon/hub-spawn-gate.js +92 -0
- package/dist/core/addon/integration-instances-provider.js +22 -0
- package/dist/core/agent/agent-registry.service.js +6 -2
- package/dist/core/agent/delivery-requirements.js +22 -6
- package/dist/core/updates/required-addon-update.js +188 -0
- package/dist/launcher.js +4 -0
- package/dist/manual-boot.js +27 -0
- package/dist/server-root/index.js +74 -3
- package/package.json +7 -11
- package/system/dist/addon-runner.js +188 -5
- package/system/dist/addon-runner.mjs +189 -6
- package/system/dist/{agent-https-swBZI1iJ.js → agent-https-A9wsxVGn.js} +1 -1
- package/system/dist/{agent-https-BrINLeNj.mjs → agent-https-DuxDC67S.mjs} +1 -1
- 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 +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- 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 +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- 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 +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- 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 +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- 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/migrations/migrations-provider.d.ts +5 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +12 -4
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +12 -4
- 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 +284 -284
- 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-D_ImDrdj.mjs → capture-engine-CEChNpAD.mjs} +1 -1
- package/system/dist/{capture-engine-BXV6UiHl.js → capture-engine-D6mXfLFQ.js} +1 -1
- package/system/dist/{composition-sources-BjktkDte.mjs → composition-sources-6XYW86Kw.mjs} +1 -1
- package/system/dist/{composition-sources-DjTxqryW.js → composition-sources-cVWKVph4.js} +1 -1
- package/system/dist/{constants-CGXiM2LV.js → constants-B5Yg02ii.js} +1 -1
- package/system/dist/{constants-C68806R6.mjs → constants-DqwDEYfb.mjs} +1 -1
- package/system/dist/{device-ca-D_q1MiQ3.js → device-ca-BVz14dRd.js} +1 -1
- package/system/dist/{device-ca-CFRagVlE.mjs → device-ca-oY4Xqd7s.mjs} +1 -1
- package/system/dist/{dist-C9Ms2Ul9.js → dist-B4wrqheM.js} +833 -631
- package/system/dist/{dist-BzpjKSec.mjs → dist-BX8nZeXV.mjs} +804 -632
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-CFsSp0tc.mjs → hub-mdns-ciao-BDPMfOgq.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-C87S9O_n.js → hub-mdns-ciao-CiMMA0rT.js} +2 -2
- package/system/dist/index.js +441 -31
- package/system/dist/index.mjs +436 -33
- package/system/dist/kernel/addon-installer.d.ts +44 -1
- package/system/dist/kernel/held-installs.d.ts +21 -0
- package/system/dist/kernel/index.d.ts +6 -0
- package/system/dist/kernel/moleculer/migration-api-facade.d.ts +73 -0
- package/system/dist/kernel/moleculer/trpc-links.d.ts +8 -0
- package/system/dist/kernel/requires-registry.d.ts +31 -0
- package/system/dist/{legacy-integration-rows-door-CI-AaB-M.mjs → legacy-integration-rows-door-DDA3YOxL.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-C_aaT1DH.js → legacy-integration-rows-door-YuWqHZW4.js} +1 -1
- package/system/dist/migrations/hub/__fixtures__/seed.d.ts +23 -0
- package/system/dist/{restore-archive-D3K33hws.mjs → restore-archive-BrtpgNCt.mjs} +82 -82
- package/system/dist/{restore-archive-BC8OECG8.js → restore-archive-Cn9OShm4.js} +1 -1
- package/system/dist/{wal-maintenance-Bf9m0JZr.js → wal-maintenance-BTzu3s-6.js} +0 -0
- package/system/dist/{wal-maintenance-CMjTxyAC.mjs → wal-maintenance-jgyV9NbL.mjs} +0 -0
- package/system/package.json +1 -1
|
@@ -1171,7 +1171,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
1171
1171
|
return DeviceRole;
|
|
1172
1172
|
}({});
|
|
1173
1173
|
//#endregion
|
|
1174
|
-
//#region ../types/dist/sleep-
|
|
1174
|
+
//#region ../types/dist/sleep-BX_MqzUe.mjs
|
|
1175
1175
|
/**
|
|
1176
1176
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
1177
1177
|
* window to float samples (D455).
|
|
@@ -2888,6 +2888,28 @@ var SECRET_RETRY_MAX_MS = 5 * 6e4;
|
|
|
2888
2888
|
/** Coalesces a burst of `keychain.changed` events into one re-resolve. */
|
|
2889
2889
|
var SECRET_CHANGE_DEBOUNCE_MS = 250;
|
|
2890
2890
|
/**
|
|
2891
|
+
* Pair a catalogue with the function that builds its ports FROM THE MIGRATION API. The one
|
|
2892
|
+
* place a catalogue is bound: a migration reaches nothing a ports binder cannot reach
|
|
2893
|
+
* through `api` (guard `check-migration-ports-surface`).
|
|
2894
|
+
*/
|
|
2895
|
+
function migrationSet(catalogue, bindPorts) {
|
|
2896
|
+
return { bind: (api) => defineAddonMigrations(catalogue, bindPorts(api)) };
|
|
2897
|
+
}
|
|
2898
|
+
/** A mixed array is a mistake: the other kind would be dropped without a word. */
|
|
2899
|
+
function refuseMixed(form, kept, dropped) {
|
|
2900
|
+
if (dropped > 0) throw new Error(`runMigrations(${form}): ${dropped} of ${kept + dropped} entries are of the other kind and would be dropped; pass one kind per call`);
|
|
2901
|
+
}
|
|
2902
|
+
function catalogueOf(list) {
|
|
2903
|
+
const kept = list.filter((entry) => !("execute" in entry));
|
|
2904
|
+
refuseMixed("catalogue, (api) => ports", kept.length, list.length - kept.length);
|
|
2905
|
+
return kept;
|
|
2906
|
+
}
|
|
2907
|
+
function boundOf(list) {
|
|
2908
|
+
const kept = list.filter((entry) => "execute" in entry);
|
|
2909
|
+
refuseMixed("bound migrations", kept.length, list.length - kept.length);
|
|
2910
|
+
return kept;
|
|
2911
|
+
}
|
|
2912
|
+
/**
|
|
2891
2913
|
* Base class for CamStack addons. Eliminates settings boilerplate:
|
|
2892
2914
|
*
|
|
2893
2915
|
* - Typed `config` property with automatic resolution from store + defaults
|
|
@@ -3054,23 +3076,21 @@ var BaseAddon = class {
|
|
|
3054
3076
|
await this.loadScopedSchemas();
|
|
3055
3077
|
return normalized;
|
|
3056
3078
|
}
|
|
3079
|
+
async runMigrations(first, second, third) {
|
|
3080
|
+
if (typeof second === "function") return this.runMigrationSets([migrationSet(catalogueOf(first), second)], third);
|
|
3081
|
+
return this.runBound(boundOf(first), second);
|
|
3082
|
+
}
|
|
3057
3083
|
/**
|
|
3058
|
-
*
|
|
3059
|
-
*
|
|
3060
|
-
*
|
|
3061
|
-
* restored devices — with the catalogue bound to the addon's ports
|
|
3062
|
-
* (`defineAddonMigrations(ADDON_MIGRATIONS, ports)`).
|
|
3063
|
-
*
|
|
3064
|
-
* An engine that cannot be reached or refuses the catalogue is logged and runs
|
|
3065
|
-
* nothing; the boot continues. A migration that FAILED (or was blocked by one)
|
|
3066
|
-
* and declares `onFailure: 'block-owner'` makes this throw, so the addon does not
|
|
3067
|
-
* serve data whose shape it cannot trust; `tolerate` migrations never do.
|
|
3068
|
-
*
|
|
3069
|
-
* ALWAYS pass the whole catalogue; a phase that must run only some of it passes
|
|
3070
|
-
* `{ only: [ids] }` — never a filtered catalogue (the engine would judge the
|
|
3071
|
-
* omitted applied ids "newer").
|
|
3084
|
+
* Several catalogues of ONE owner in one declaration (the engine replaces an owner's
|
|
3085
|
+
* catalogue on every declare, so two calls would each judge the other's ids "newer").
|
|
3086
|
+
* Build each entry with `migrationSet(catalogue, (api) => ports)`.
|
|
3072
3087
|
*/
|
|
3073
|
-
async
|
|
3088
|
+
async runMigrationSets(sets, options) {
|
|
3089
|
+
const api = this.ctx.migrationApi;
|
|
3090
|
+
if (api === void 0) throw new Error(`${this.ctx.id}: the migration API is not available on this context`);
|
|
3091
|
+
return this.runBound(sets.flatMap((set) => set.bind(api)), options);
|
|
3092
|
+
}
|
|
3093
|
+
async runBound(migrations, options) {
|
|
3074
3094
|
const api = this.ctx.api.migrations;
|
|
3075
3095
|
const report = await runAddonMigrations({
|
|
3076
3096
|
declareOwner: (input) => api.declareOwner.mutate(input),
|
|
@@ -4737,6 +4757,20 @@ function assertTransactScope(members) {
|
|
|
4737
4757
|
if (new Set(kinds.map((m) => m.declaration.transactFamily)).size > 1) throw new TransactRefusedError(`cross-family: the ops span more than one transactFamily (${kinds.map((m) => `${m.kind}=${String(m.declaration.transactFamily)}`).join(", ")})`);
|
|
4738
4758
|
}
|
|
4739
4759
|
/**
|
|
4760
|
+
* Entry kinds (D881): every list of user-created entries (notification
|
|
4761
|
+
* targets, brokers, LLM profiles) is ONE record kind with an id, a name and a
|
|
4762
|
+
* kind-specific body, and the admin UI lists/adds/edits/deletes all of them
|
|
4763
|
+
* through the `record-entries` capability with password fields derived from
|
|
4764
|
+
* the schema (`.meta({ secret: true })`).
|
|
4765
|
+
*/
|
|
4766
|
+
/** The body of a plain entry: a name and the fields the kind adds. */
|
|
4767
|
+
function entryBody(shape) {
|
|
4768
|
+
return z.object({
|
|
4769
|
+
name: z.string().min(1),
|
|
4770
|
+
...shape
|
|
4771
|
+
});
|
|
4772
|
+
}
|
|
4773
|
+
/**
|
|
4740
4774
|
* Declare one entry kind. An entry is configuration: never trimmed by the
|
|
4741
4775
|
* engine, never aged, belonging to no device.
|
|
4742
4776
|
*/
|
|
@@ -11149,7 +11183,7 @@ new Set(EVENT_OWNER_TYPES);
|
|
|
11149
11183
|
*/
|
|
11150
11184
|
/** `>=MAJOR.MINOR.PATCH[-prerelease]` — the only range shape a requirement uses. */
|
|
11151
11185
|
var MinVersionSchema = z.string().regex(/^>=\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$/, "a minimum is written \">=X.Y.Z\"");
|
|
11152
|
-
z.object({
|
|
11186
|
+
var PackageRequiresSchema = z.object({
|
|
11153
11187
|
/** The oldest `@camstack/server` this package runs on. */
|
|
11154
11188
|
server: MinVersionSchema.optional(),
|
|
11155
11189
|
/** The oldest installed version of each named addon package. */
|
|
@@ -11160,6 +11194,34 @@ z.object({
|
|
|
11160
11194
|
image: MinVersionSchema.optional()
|
|
11161
11195
|
}).optional()
|
|
11162
11196
|
});
|
|
11197
|
+
/** `>=1.2.3` to `1.2.3`; `null` when the text is not a minimum. */
|
|
11198
|
+
function minimumOf(range) {
|
|
11199
|
+
return MinVersionSchema.safeParse(range).success ? range.slice(2) : null;
|
|
11200
|
+
}
|
|
11201
|
+
function parts(version) {
|
|
11202
|
+
const dash = version.indexOf("-");
|
|
11203
|
+
return {
|
|
11204
|
+
nums: (dash === -1 ? version : version.slice(0, dash)).split(".").map((s) => {
|
|
11205
|
+
const n = Number.parseInt(s, 10);
|
|
11206
|
+
return Number.isNaN(n) ? 0 : n;
|
|
11207
|
+
}),
|
|
11208
|
+
pre: dash === -1 ? null : version.slice(dash + 1)
|
|
11209
|
+
};
|
|
11210
|
+
}
|
|
11211
|
+
/** -1 | 0 | 1; a prerelease sorts below its release. Never throws. */
|
|
11212
|
+
function compareVersions(a, b) {
|
|
11213
|
+
const pa = parts(a);
|
|
11214
|
+
const pb = parts(b);
|
|
11215
|
+
for (let i = 0; i < Math.max(pa.nums.length, pb.nums.length); i++) {
|
|
11216
|
+
const x = pa.nums[i] ?? 0;
|
|
11217
|
+
const y = pb.nums[i] ?? 0;
|
|
11218
|
+
if (x !== y) return x < y ? -1 : 1;
|
|
11219
|
+
}
|
|
11220
|
+
if (pa.pre === pb.pre) return 0;
|
|
11221
|
+
if (pa.pre === null) return 1;
|
|
11222
|
+
if (pb.pre === null) return -1;
|
|
11223
|
+
return pa.pre < pb.pre ? -1 : 1;
|
|
11224
|
+
}
|
|
11163
11225
|
/** One unmet requirement; each names the versions on both sides. */
|
|
11164
11226
|
var UnmetRequirementSchema = z.discriminatedUnion("kind", [
|
|
11165
11227
|
z.object({
|
|
@@ -11190,6 +11252,51 @@ var RequiredAddonUpdateSchema = z.object({
|
|
|
11190
11252
|
/** What this node has; `null` when the addon is not installed. */
|
|
11191
11253
|
installed: z.string().nullable()
|
|
11192
11254
|
});
|
|
11255
|
+
function meets(running, minimum) {
|
|
11256
|
+
return typeof running === "string" && running.length > 0 && compareVersions(running, minimum) >= 0;
|
|
11257
|
+
}
|
|
11258
|
+
/** Every requirement of `requires` that `running` does not meet. Empty means "fine". */
|
|
11259
|
+
function unmetRequirements(requires, running) {
|
|
11260
|
+
if (requires === void 0) return [];
|
|
11261
|
+
const unmet = [];
|
|
11262
|
+
const server = requires.server === void 0 ? null : minimumOf(requires.server);
|
|
11263
|
+
if (server !== null && !meets(running.server, server)) unmet.push({
|
|
11264
|
+
kind: "server-too-old",
|
|
11265
|
+
required: server,
|
|
11266
|
+
running: running.server
|
|
11267
|
+
});
|
|
11268
|
+
for (const [packageName, range] of Object.entries(requires.addons ?? {})) {
|
|
11269
|
+
const minimum = minimumOf(range);
|
|
11270
|
+
const have = running.addons[packageName] ?? null;
|
|
11271
|
+
if (minimum !== null && !meets(have, minimum)) unmet.push({
|
|
11272
|
+
kind: "addon-too-old",
|
|
11273
|
+
packageName,
|
|
11274
|
+
required: minimum,
|
|
11275
|
+
running: have
|
|
11276
|
+
});
|
|
11277
|
+
}
|
|
11278
|
+
for (const kind of ["desktop", "image"]) {
|
|
11279
|
+
const range = requires.wrapper?.[kind];
|
|
11280
|
+
const minimum = range === void 0 ? null : minimumOf(range);
|
|
11281
|
+
if (minimum === null || running.wrapper?.kind !== kind) continue;
|
|
11282
|
+
if (!meets(running.wrapper.version, minimum)) unmet.push({
|
|
11283
|
+
kind: "wrapper-too-old",
|
|
11284
|
+
wrapper: kind,
|
|
11285
|
+
required: minimum,
|
|
11286
|
+
running: running.wrapper.version
|
|
11287
|
+
});
|
|
11288
|
+
}
|
|
11289
|
+
return unmet;
|
|
11290
|
+
}
|
|
11291
|
+
/** One line, naming both versions — the text an operator reads. */
|
|
11292
|
+
function describeUnmet(unmet) {
|
|
11293
|
+
const have = (v, none) => v === null ? none : v;
|
|
11294
|
+
switch (unmet.kind) {
|
|
11295
|
+
case "server-too-old": return `requires server >= ${unmet.required}, running ${have(unmet.running, "unknown")}`;
|
|
11296
|
+
case "addon-too-old": return `requires ${unmet.packageName} >= ${unmet.required}, installed ${have(unmet.running, "none")}`;
|
|
11297
|
+
case "wrapper-too-old": return `requires the ${unmet.wrapper} wrapper >= ${unmet.required}, it reports ${have(unmet.running, "no version")}`;
|
|
11298
|
+
}
|
|
11299
|
+
}
|
|
11193
11300
|
/**
|
|
11194
11301
|
* Which integration instance a settings form is for. An addon that serves several instances
|
|
11195
11302
|
* (`instanceMode: multiple`) can show a different form per instance — an NVR integration
|
|
@@ -11334,26 +11441,16 @@ var RecordIntegrationInstances = class {
|
|
|
11334
11441
|
...this.hooks.description,
|
|
11335
11442
|
mintsId: true
|
|
11336
11443
|
};
|
|
11337
|
-
|
|
11338
|
-
* The record an id names. A caller holding the `integrations` registry id (the Integrations
|
|
11339
|
-
* page) reaches a kind whose body links to it through `integrationId`; an id that is itself a
|
|
11340
|
-
* record id answers as it is. An id that names nothing comes back unchanged.
|
|
11341
|
-
*/
|
|
11342
|
-
async resolveRecordId(id) {
|
|
11343
|
-
if (await this.handle.get(id) !== null) return id;
|
|
11344
|
-
const linked = (await this.handle.query({ limit: INSTANCES_LIST_MAX })).records.find((record) => record.data["integrationId"] === id);
|
|
11345
|
-
return linked === void 0 ? id : linked.id;
|
|
11346
|
-
}
|
|
11347
|
-
instanceFormSchema = async ({ id }) => this.hooks.formSchema(id === null ? null : await this.resolveRecordId(id));
|
|
11444
|
+
instanceFormSchema = async ({ id }) => this.hooks.formSchema(id);
|
|
11348
11445
|
listInstances = async () => {
|
|
11349
11446
|
return (await this.handle.query({ limit: INSTANCES_LIST_MAX })).records.map((record) => this.viewOf(record));
|
|
11350
11447
|
};
|
|
11351
11448
|
getInstance = async ({ id }) => {
|
|
11352
|
-
const record = await this.handle.get(
|
|
11449
|
+
const record = await this.handle.get(id);
|
|
11353
11450
|
return record === null ? null : this.viewOf(record);
|
|
11354
11451
|
};
|
|
11355
11452
|
/** Insert ONE row (`ifRev: 0`: an existing id is refused, never overwritten). */
|
|
11356
|
-
createInstance = async ({ id, name, kind }) => {
|
|
11453
|
+
createInstance = async ({ id, name, kind, values }) => {
|
|
11357
11454
|
const minted = id ?? this.hooks.mintId?.({
|
|
11358
11455
|
name,
|
|
11359
11456
|
...kind !== void 0 ? { kind } : {}
|
|
@@ -11363,11 +11460,20 @@ var RecordIntegrationInstances = class {
|
|
|
11363
11460
|
id: minted,
|
|
11364
11461
|
data: this.hooks.initialBody(name, kind)
|
|
11365
11462
|
}, { ifRev: 0 });
|
|
11463
|
+
const patch = this.patchOf(values ?? {});
|
|
11464
|
+
if (Object.keys(patch).length > 0) await this.handle.patch(minted, patch);
|
|
11366
11465
|
await this.hooks.onChanged?.(minted, "created");
|
|
11367
11466
|
return { id: minted };
|
|
11368
11467
|
};
|
|
11369
|
-
updateInstance = async ({ id
|
|
11370
|
-
const
|
|
11468
|
+
updateInstance = async ({ id, name, values }) => {
|
|
11469
|
+
const patch = this.patchOf(values);
|
|
11470
|
+
if (name !== void 0) patch[this.nameField] = name;
|
|
11471
|
+
await this.handle.patch(id, patch);
|
|
11472
|
+
await this.hooks.onChanged?.(id, "updated");
|
|
11473
|
+
return { ok: true };
|
|
11474
|
+
};
|
|
11475
|
+
/** The record patch a form `values` object means: secrets kept, cleared or replaced. */
|
|
11476
|
+
patchOf(values) {
|
|
11371
11477
|
const patch = {};
|
|
11372
11478
|
for (const [key, value] of Object.entries(values)) {
|
|
11373
11479
|
if (value === void 0) continue;
|
|
@@ -11378,11 +11484,8 @@ var RecordIntegrationInstances = class {
|
|
|
11378
11484
|
else if (isSecretClear(value)) patch[key] = null;
|
|
11379
11485
|
else if (typeof value === "string" && value !== "" && value !== "__camstack_redacted__" && !isSecretFieldView(value)) patch[key] = value;
|
|
11380
11486
|
}
|
|
11381
|
-
|
|
11382
|
-
|
|
11383
|
-
await this.hooks.onChanged?.(id, "updated");
|
|
11384
|
-
return { ok: true };
|
|
11385
|
-
};
|
|
11487
|
+
return patch;
|
|
11488
|
+
}
|
|
11386
11489
|
/** The switch lives in the record body; the addon is told so it applies it (D996). */
|
|
11387
11490
|
setInstanceEnabled = async ({ id, enabled }) => {
|
|
11388
11491
|
if (this.registryOwnsEnabled) throw new Error(`instance "${id}": the integrations registry owns the on/off switch of this addon; set it with integrations.update`);
|
|
@@ -11402,10 +11505,7 @@ var RecordIntegrationInstances = class {
|
|
|
11402
11505
|
status: "unsupported",
|
|
11403
11506
|
error: "This integration declares no connection test"
|
|
11404
11507
|
};
|
|
11405
|
-
return this.hooks.test(input
|
|
11406
|
-
...input,
|
|
11407
|
-
id: await this.resolveRecordId(input.id)
|
|
11408
|
-
});
|
|
11508
|
+
return this.hooks.test(input);
|
|
11409
11509
|
};
|
|
11410
11510
|
/** The flat provider object to hand to `registerProvider`. */
|
|
11411
11511
|
toProvider() {
|
|
@@ -13970,6 +14070,40 @@ var UnstampedEventMediaCountSchema = z.object({
|
|
|
13970
14070
|
/** Sum across both, or `null` when either lane could not be counted. */
|
|
13971
14071
|
total: z.number().int().nonnegative().nullable()
|
|
13972
14072
|
}).nullable();
|
|
14073
|
+
/**
|
|
14074
|
+
* Where the stored event media sits, per storage location: how many media rows
|
|
14075
|
+
* and how many bytes carry each location id, how many carry none (legacy,
|
|
14076
|
+
* resolved to the default `eventMedia` location), and how many name a location
|
|
14077
|
+
* that was not asked about (a deleted or never-listed one).
|
|
14078
|
+
*
|
|
14079
|
+
* One covering-index aggregate per asked location plus the NULL one, and one
|
|
14080
|
+
* unfiltered total that scans the covering index: O(rows), not a walk of the
|
|
14081
|
+
* rows themselves. `unlisted` is total minus the ASKED locations minus NULL, so
|
|
14082
|
+
* it is a deleted location only when every location id was asked.
|
|
14083
|
+
* `null` is "could not be measured", never zero.
|
|
14084
|
+
*/
|
|
14085
|
+
var MediaLocationCensusInputSchema = z.object({ locationIds: z.array(z.string().min(1)).max(50).readonly() });
|
|
14086
|
+
var MediaLocationCensusRowSchema = z.object({
|
|
14087
|
+
locationId: z.string(),
|
|
14088
|
+
rows: z.number().int().nonnegative(),
|
|
14089
|
+
bytes: z.number().nonnegative()
|
|
14090
|
+
});
|
|
14091
|
+
var MediaLocationCensusSchema = z.object({
|
|
14092
|
+
locations: z.array(MediaLocationCensusRowSchema).readonly(),
|
|
14093
|
+
unstamped: z.object({
|
|
14094
|
+
rows: z.number().int().nonnegative(),
|
|
14095
|
+
bytes: z.number().nonnegative()
|
|
14096
|
+
}),
|
|
14097
|
+
/** Rows stamped with a location id that was not in the asked list. */
|
|
14098
|
+
unlisted: z.object({
|
|
14099
|
+
rows: z.number().int().nonnegative(),
|
|
14100
|
+
bytes: z.number().nonnegative()
|
|
14101
|
+
}),
|
|
14102
|
+
total: z.object({
|
|
14103
|
+
rows: z.number().int().nonnegative(),
|
|
14104
|
+
bytes: z.number().nonnegative()
|
|
14105
|
+
})
|
|
14106
|
+
});
|
|
13973
14107
|
var StorageMigrationMediaMoveInputSchema = RelocateMediaInputSchema.extend({ leaseId: z.string().min(1) });
|
|
13974
14108
|
/** The independently selectable logical storage classes — every class
|
|
13975
14109
|
* `storage.listLocationDeclarations` reports, so an operator never meets a
|
|
@@ -47932,52 +48066,7 @@ onBrightnessChanged: { data: z.object({
|
|
|
47932
48066
|
minIntervalMs: 0
|
|
47933
48067
|
} } }
|
|
47934
48068
|
};
|
|
47935
|
-
|
|
47936
|
-
* `broker` — unified pub/sub broker registry, system-scoped collection.
|
|
47937
|
-
*
|
|
47938
|
-
* The cap models any kind-tagged message broker the user wants to
|
|
47939
|
-
* register and that other addons might consume. The first two kinds
|
|
47940
|
-
* are MQTT (mosquitto / aedes embedded / cloud bridge) and
|
|
47941
|
-
* Home Assistant (HA WebSocket — subscribe_entities + call_service).
|
|
47942
|
-
* Future kinds (Zigbee2MQTT bridge, ZHA, KNX, Telegram, …) plug in
|
|
47943
|
-
* the same surface.
|
|
47944
|
-
*
|
|
47945
|
-
* Why one cap, not one cap per kind:
|
|
47946
|
-
* - The integrations page wants a single table of "every broker"
|
|
47947
|
-
* across kinds; a unified cap drives it without join logic.
|
|
47948
|
-
* - Generic admin operations (add / remove / test / status) are
|
|
47949
|
-
* identical across kinds — duplicating them per cap was busywork.
|
|
47950
|
-
* - The `network-access` cap precedent: same interface, many
|
|
47951
|
-
* `providerKind: 'ingress'` implementations (Tailscale, ngrok, …).
|
|
47952
|
-
*
|
|
47953
|
-
* What stays kind-specific:
|
|
47954
|
-
* - `getBrokerConfig` payload (kind decides whether it returns
|
|
47955
|
-
* mqtt URL+creds, HA baseUrl+token, …) — typed as
|
|
47956
|
-
* `Record<string, unknown>` at the wire; consumers narrow.
|
|
47957
|
-
* - `publish` / `subscribe` / `getState` arguments (target / filter /
|
|
47958
|
-
* key) — also typed as `Record<string, unknown>` so each kind can
|
|
47959
|
-
* evolve its surface (MQTT topic+qos vs HA entity_id+domain)
|
|
47960
|
-
* without rebreaking the cap signature.
|
|
47961
|
-
* - `add` `settings` payload (different fields per kind, validated by
|
|
47962
|
-
* the kind-specific provider).
|
|
47963
|
-
*
|
|
47964
|
-
* Bidirectionality:
|
|
47965
|
-
* - `publish` is RPC — synchronous result (provider-defined).
|
|
47966
|
-
* - `subscribe` returns a subscription handle; the actual message
|
|
47967
|
-
* stream flows over the typed event-bus as `broker.message` events
|
|
47968
|
-
* keyed by `(brokerId, subscriptionId)`. Consumers filter in their
|
|
47969
|
-
* event handler. Subscriptions persist across reconnects — the
|
|
47970
|
-
* provider re-subscribes upstream after a transport drop.
|
|
47971
|
-
*
|
|
47972
|
-
* Why event-bus push (not a subscription RPC stream):
|
|
47973
|
-
* - Matches the rest of CamStack's D8 contract — events for telemetry,
|
|
47974
|
-
* RPC for loss-is-a-bug. Broker messages are telemetry (a single
|
|
47975
|
-
* drop is recoverable via `getState({key})`).
|
|
47976
|
-
* - Frees `broker.subscribe` from holding a long-lived RPC channel.
|
|
47977
|
-
* - Cross-process: events already route through `$event-bus`; no
|
|
47978
|
-
* per-broker wire-shaping needed.
|
|
47979
|
-
*/
|
|
47980
|
-
var BrokerStatusEnum = z.enum([
|
|
48069
|
+
z.enum([
|
|
47981
48070
|
"connected",
|
|
47982
48071
|
"disconnected",
|
|
47983
48072
|
"connecting",
|
|
@@ -47985,141 +48074,12 @@ var BrokerStatusEnum = z.enum([
|
|
|
47985
48074
|
"unreachable",
|
|
47986
48075
|
"error"
|
|
47987
48076
|
]);
|
|
47988
|
-
var BrokerInfoSchema = z.object({
|
|
47989
|
-
/** Stable broker id. Persisted; survives addon restarts. */
|
|
47990
|
-
id: z.string(),
|
|
47991
|
-
/** Addon id of the provider that OWNS this broker.
|
|
47992
|
-
*
|
|
47993
|
-
* The `broker` cap is a system-scoped collection: several addons
|
|
47994
|
-
* register a `broker` provider, each owning a DISJOINT set of
|
|
47995
|
-
* brokers (mqtt-broker owns `mqtt_*`, provider-homeassistant owns
|
|
47996
|
-
* `ha_*`). A broker therefore belongs to exactly one addon — like a
|
|
47997
|
-
* device belongs to one integration. The admin UI threads this id
|
|
47998
|
-
* back as the `{ addonId }` system-collection selector on every
|
|
47999
|
-
* id-keyed call (`get` / `getSettings` / `setSettings` / `remove` /
|
|
48000
|
-
* `testConnection`), so the call routes to the OWNING provider
|
|
48001
|
-
* instead of defaulting to the first-registered one. */
|
|
48002
|
-
addonId: z.string(),
|
|
48003
|
-
/** Human-readable name (operator-chosen at add-time). */
|
|
48004
|
-
name: z.string(),
|
|
48005
|
-
/** Provider-defined kind tag — `mqtt` / `home-assistant` / future. */
|
|
48006
|
-
kind: z.string(),
|
|
48007
|
-
status: BrokerStatusEnum,
|
|
48008
|
-
/** Free-form provider-specific info (HA version, MQTT broker
|
|
48009
|
-
* flavour, latency, mTLS active, …). */
|
|
48010
|
-
info: z.record(z.string(), z.unknown()),
|
|
48011
|
-
/** Ms epoch of the last connection probe / status update. */
|
|
48012
|
-
lastCheckedAt: z.number().nullable(),
|
|
48013
|
-
/** Last error message, when `status` indicates failure. */
|
|
48014
|
-
error: z.string().nullable()
|
|
48015
|
-
});
|
|
48016
48077
|
var RegistryStatusSchema = z.object({
|
|
48017
48078
|
brokerCount: z.number().int().nonnegative(),
|
|
48018
48079
|
connectedCount: z.number().int().nonnegative()
|
|
48019
48080
|
});
|
|
48020
|
-
/**
|
|
48021
|
-
* One entry per `broker` provider — which addon provides which broker
|
|
48022
|
-
* kind(s). The unified create picker reads this to know, for each
|
|
48023
|
-
* (addonId, kind) pair the operator can pick, where to route the
|
|
48024
|
-
* follow-up `getSettingsSchema` / `testSettings` / `add` calls (via the
|
|
48025
|
-
* `{ addonId }` selector). A provider only advertises a kind here when
|
|
48026
|
-
* it implements `getSettingsSchema` for that kind (so the picker never
|
|
48027
|
-
* offers a kind whose creation form can't be rendered).
|
|
48028
|
-
*/
|
|
48029
|
-
var BrokerProviderInfoSchema = z.object({
|
|
48030
|
-
/** Addon id of the `broker` provider this entry describes. */
|
|
48031
|
-
addonId: z.string(),
|
|
48032
|
-
/** Broker kinds this provider can create, with a display label. */
|
|
48033
|
-
kinds: z.array(z.object({
|
|
48034
|
-
kind: z.string(),
|
|
48035
|
-
label: z.string(),
|
|
48036
|
-
/**
|
|
48037
|
-
* Relative hub path to start an interactive account link (OAuth popup).
|
|
48038
|
-
* May include `{{brokerId}}`; admin-ui substitutes and appends `?popup=1`.
|
|
48039
|
-
*/
|
|
48040
|
-
interactiveConnectPath: z.string().min(1).optional(),
|
|
48041
|
-
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
48042
|
-
interactiveDisconnectPath: z.string().min(1).optional(),
|
|
48043
|
-
/**
|
|
48044
|
-
* The kind signs in through a server-held interactive session instead of
|
|
48045
|
-
* (or before) typed credentials. `basePath` is a hub-relative route set
|
|
48046
|
-
* served by the owning addon (`/addon/<id>/...`) speaking the sign-in
|
|
48047
|
-
* contract: `POST {basePath}/start` (body: the form's settings) answers
|
|
48048
|
-
* `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
|
|
48049
|
-
* `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
|
|
48050
|
-
* 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
|
|
48051
|
-
* (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
|
|
48052
|
-
* existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
|
|
48053
|
-
* (`{ sessionId }`) drops the session. The dialog that edits a broker
|
|
48054
|
-
* offers it as the default path; the fields the session fills are
|
|
48055
|
-
* marked `filledBySignIn` in the kind's settings schema.
|
|
48056
|
-
*
|
|
48057
|
-
* `methods` lists the ways the session can sign in, recommended first:
|
|
48058
|
-
* `'device-code'` adds `POST {basePath}/code/start` (body: the form's
|
|
48059
|
-
* settings) answering `{ sessionId, userCode, verificationUrl,
|
|
48060
|
-
* expiresAt }` — the operator types `userCode` at `verificationUrl` on
|
|
48061
|
-
* any device, and the same `status` / `commit` / `cancel` routes follow
|
|
48062
|
-
* (status then carries `method`, `userCode`, `verificationUrl`,
|
|
48063
|
-
* `expiresAt` and the phases `'awaiting-code'` / `'expired'`);
|
|
48064
|
-
* `'proxy'` is the `{basePath}/start` flow above. Absent means
|
|
48065
|
-
* `['proxy']`.
|
|
48066
|
-
*/
|
|
48067
|
-
signIn: z.object({
|
|
48068
|
-
basePath: z.string().min(1),
|
|
48069
|
-
methods: z.array(z.enum(["device-code", "proxy"])).optional()
|
|
48070
|
-
}).optional()
|
|
48071
|
-
}))
|
|
48072
|
-
});
|
|
48073
|
-
var ListInputSchema = z.object({
|
|
48074
|
-
/** Optional kind filter — `list({kind:'home-assistant'})` returns
|
|
48075
|
-
* only HA brokers. Omit to list every broker. */
|
|
48076
|
-
kind: z.string().optional() });
|
|
48077
48081
|
var GetInputSchema = z.object({ id: z.string() });
|
|
48078
|
-
var AddInputSchema = z.object({
|
|
48079
|
-
kind: z.string().min(1),
|
|
48080
|
-
name: z.string().min(1),
|
|
48081
|
-
/**
|
|
48082
|
-
* ADOPT an existing id instead of minting a new one.
|
|
48083
|
-
*
|
|
48084
|
-
* Written the day this cost an outage. A broker's id is not a detail: HA
|
|
48085
|
-
* devices carry it inside their `stableId` (`ha:ha_004:dev:…`), so a broker
|
|
48086
|
-
* lost from config and re-added as `ha_001` leaves every one of its devices
|
|
48087
|
-
* bound to a broker that no longer exists. Re-entering the password under the
|
|
48088
|
-
* ORIGINAL id turns a multi-step device migration back into re-entering a
|
|
48089
|
-
* password.
|
|
48090
|
-
*
|
|
48091
|
-
* A provider MUST refuse an id that is already in use — adopting a live
|
|
48092
|
-
* broker's id would silently take it over.
|
|
48093
|
-
*/
|
|
48094
|
-
id: z.string().min(1).optional(),
|
|
48095
|
-
/** Kind-specific settings (e.g. MQTT `{url,username,password}` or HA
|
|
48096
|
-
* `{baseUrl,accessToken}`). Validated by the kind-specific provider
|
|
48097
|
-
* branch on receipt — invalid shape rejects the add. */
|
|
48098
|
-
settings: z.record(z.string(), z.unknown())
|
|
48099
|
-
});
|
|
48100
|
-
var AddResultSchema = z.object({ id: z.string() });
|
|
48101
|
-
var RemoveInputSchema = z.object({ id: z.string() });
|
|
48102
|
-
var TestConnectionResultSchema = z.discriminatedUnion("ok", [z.object({
|
|
48103
|
-
ok: z.literal(true),
|
|
48104
|
-
latencyMs: z.number().nonnegative()
|
|
48105
|
-
}), z.object({
|
|
48106
|
-
ok: z.literal(false),
|
|
48107
|
-
error: z.string()
|
|
48108
|
-
})]);
|
|
48109
48082
|
var SettingsRecordSchema$1 = z.record(z.string(), z.unknown());
|
|
48110
|
-
var SettingsSchemaInputSchema = z.object({ kind: z.string() });
|
|
48111
|
-
var TestSettingsInputSchema = z.object({
|
|
48112
|
-
kind: z.string(),
|
|
48113
|
-
settings: SettingsRecordSchema$1
|
|
48114
|
-
});
|
|
48115
|
-
var TestSettingsResultSchema = z.discriminatedUnion("ok", [z.object({
|
|
48116
|
-
ok: z.literal(true),
|
|
48117
|
-
latencyMs: z.number().nonnegative().optional()
|
|
48118
|
-
}).strict(), z.object({
|
|
48119
|
-
ok: z.literal(false),
|
|
48120
|
-
error: z.string()
|
|
48121
|
-
})]);
|
|
48122
|
-
var SettingsSchemaResultSchema = z.unknown().nullable();
|
|
48123
48083
|
var PublishInputSchema = z.object({
|
|
48124
48084
|
brokerId: z.string(),
|
|
48125
48085
|
/** Kind-specific routing target.
|
|
@@ -48163,51 +48123,12 @@ var brokerCapability = {
|
|
|
48163
48123
|
kind: "poll"
|
|
48164
48124
|
},
|
|
48165
48125
|
methods: {
|
|
48166
|
-
list: method(ListInputSchema, z.array(BrokerInfoSchema)),
|
|
48167
|
-
get: method(GetInputSchema, BrokerInfoSchema.nullable()),
|
|
48168
|
-
/** Enumerate which addon provides which broker kind(s) for the
|
|
48169
|
-
* unified create picker. The auto-mount fans this array across
|
|
48170
|
-
* every registered `broker` provider (array-output method), so the
|
|
48171
|
-
* picker sees every kind from every provider in one call. */
|
|
48172
|
-
listProviders: method(z.void(), z.array(BrokerProviderInfoSchema), { auth: "admin" }),
|
|
48173
|
-
add: method(AddInputSchema, AddResultSchema, {
|
|
48174
|
-
kind: "mutation",
|
|
48175
|
-
auth: "admin"
|
|
48176
|
-
}),
|
|
48177
|
-
remove: method(RemoveInputSchema, z.void(), {
|
|
48178
|
-
kind: "mutation",
|
|
48179
|
-
auth: "admin"
|
|
48180
|
-
}),
|
|
48181
|
-
testConnection: method(GetInputSchema, TestConnectionResultSchema, {
|
|
48182
|
-
kind: "mutation",
|
|
48183
|
-
auth: "admin"
|
|
48184
|
-
}),
|
|
48185
|
-
/** Read the persisted settings record for a broker (kind-specific
|
|
48186
|
-
* shape). Admin-only — settings may contain secrets. Returns `null`
|
|
48187
|
-
* when the broker id is unknown to the provider (the collection
|
|
48188
|
-
* fallback may route a foreign id to the first provider). */
|
|
48189
|
-
getSettings: method(GetInputSchema, SettingsRecordSchema$1.nullable(), { auth: "admin" }),
|
|
48190
|
-
/** Overwrite the persisted settings record. The kind-specific
|
|
48191
|
-
* provider validates the shape and applies the change (reconnects
|
|
48192
|
-
* if credentials changed). */
|
|
48193
|
-
setSettings: method(z.object({
|
|
48194
|
-
id: z.string(),
|
|
48195
|
-
settings: SettingsRecordSchema$1
|
|
48196
|
-
}), z.void(), {
|
|
48197
|
-
kind: "mutation",
|
|
48198
|
-
auth: "admin"
|
|
48199
|
-
}),
|
|
48200
48126
|
/** Returns the kind-specific connection config the consumer needs
|
|
48201
48127
|
* to open its own client (MQTT pattern: `{url, username, password,
|
|
48202
48128
|
* clientIdPrefix}`). HA providers MAY return the auth envelope
|
|
48203
48129
|
* but typical HA consumers use `publish` / `subscribe` instead.
|
|
48204
48130
|
* Returns `null` when the broker id is unknown to the provider. */
|
|
48205
48131
|
getBrokerConfig: method(GetInputSchema, SettingsRecordSchema$1.nullable(), { auth: "admin" }),
|
|
48206
|
-
getSettingsSchema: method(SettingsSchemaInputSchema, SettingsSchemaResultSchema, { auth: "admin" }),
|
|
48207
|
-
testSettings: method(TestSettingsInputSchema, TestSettingsResultSchema, {
|
|
48208
|
-
kind: "mutation",
|
|
48209
|
-
auth: "admin"
|
|
48210
|
-
}),
|
|
48211
48132
|
publish: method(PublishInputSchema, z.unknown(), {
|
|
48212
48133
|
kind: "mutation",
|
|
48213
48134
|
auth: "admin"
|
|
@@ -62282,7 +62203,7 @@ var TestConnectionStatusEnum = z.enum([
|
|
|
62282
62203
|
"inconclusive",
|
|
62283
62204
|
"unsupported"
|
|
62284
62205
|
]);
|
|
62285
|
-
var TestConnectionResultSchema
|
|
62206
|
+
var TestConnectionResultSchema = z.object({
|
|
62286
62207
|
/** True ONLY for `validated`. Never true for a test that did not run. */
|
|
62287
62208
|
success: z.boolean(),
|
|
62288
62209
|
error: z.string().optional(),
|
|
@@ -62339,7 +62260,7 @@ var integrationsCapability = {
|
|
|
62339
62260
|
testConnection: method(z.object({
|
|
62340
62261
|
addonId: z.string(),
|
|
62341
62262
|
settings: z.record(z.string(), z.unknown())
|
|
62342
|
-
}), TestConnectionResultSchema
|
|
62263
|
+
}), TestConnectionResultSchema, {
|
|
62343
62264
|
kind: "mutation",
|
|
62344
62265
|
auth: "admin"
|
|
62345
62266
|
})
|
|
@@ -62370,6 +62291,14 @@ var ConfigSchemaPassthrough$3 = z.custom();
|
|
|
62370
62291
|
var IntegrationInstanceIdSchema = z.string().min(1);
|
|
62371
62292
|
var IntegrationInstanceModeSchema = z.enum(["single", "multiple"]);
|
|
62372
62293
|
/**
|
|
62294
|
+
* What the addon's instances ARE for the Integrations page (planning#416). `devices`: each
|
|
62295
|
+
* instance is an integration that brings devices (the registry owns its on/off switch);
|
|
62296
|
+
* `services`: a connection configured from the addon's own function page, never listed on
|
|
62297
|
+
* Integrations.
|
|
62298
|
+
* It is the same vocabulary as the manifest's `integrationRole`, which stays as an override.
|
|
62299
|
+
*/
|
|
62300
|
+
var IntegrationInstanceRoleSchema = z.enum(["devices", "services"]);
|
|
62301
|
+
/**
|
|
62373
62302
|
* One kind of instance a provider can create (an adapter, an account type). The sign-in and
|
|
62374
62303
|
* connect fields follow the `broker` contract (`broker.cap.ts`): `signIn.basePath` is a
|
|
62375
62304
|
* hub-relative route set speaking the sign-in contract, `connectPath` / `disconnectPath` open an
|
|
@@ -62380,6 +62309,22 @@ var IntegrationInstanceKindSchema = z.object({
|
|
|
62380
62309
|
/** Stable id of the kind, sent back as `createInstance.kind`. */
|
|
62381
62310
|
id: z.string().min(1),
|
|
62382
62311
|
label: z.string().min(1),
|
|
62312
|
+
/**
|
|
62313
|
+
* The function capability this kind is configured for (`broker`, `smtp-provider`,
|
|
62314
|
+
* `device-provider`, ...). A page section is the kinds whose `functionCap` it names (D1013); a
|
|
62315
|
+
* provider with more than one section must name it on every kind.
|
|
62316
|
+
*/
|
|
62317
|
+
functionCap: z.string().min(1),
|
|
62318
|
+
/**
|
|
62319
|
+
* For `functionCap: 'broker'`: the registry kind of the broker an instance of this kind is
|
|
62320
|
+
* (`matter`, `home-assistant`, ...). A caller that needs a broker of one kind (a link field)
|
|
62321
|
+
* finds the instances whose kind names it; absent takes the kind `id`.
|
|
62322
|
+
*/
|
|
62323
|
+
brokerKind: z.string().min(1).optional(),
|
|
62324
|
+
/** What instances of this kind are for the Integrations page; absent takes the provider's `role`. */
|
|
62325
|
+
role: IntegrationInstanceRoleSchema.optional(),
|
|
62326
|
+
/** `testInstance` really probes the remote for this kind; absent takes the provider's `canTest`. */
|
|
62327
|
+
canTest: z.boolean().optional(),
|
|
62383
62328
|
/** The kind signs in through a server-held interactive session. */
|
|
62384
62329
|
signIn: z.object({
|
|
62385
62330
|
basePath: z.string().min(1),
|
|
@@ -62391,18 +62336,6 @@ var IntegrationInstanceKindSchema = z.object({
|
|
|
62391
62336
|
disconnectPath: z.string().min(1).optional()
|
|
62392
62337
|
});
|
|
62393
62338
|
/**
|
|
62394
|
-
* What the addon's instances ARE for the Integrations page (planning#416). `devices`: each
|
|
62395
|
-
* instance is an integration that brings devices (the registry owns its on/off switch);
|
|
62396
|
-
* `services`: a connection configured from the addon's own function page, never listed on
|
|
62397
|
-
* Integrations; `both`: a dual entry listed for its devices that also keeps service connections.
|
|
62398
|
-
* It is the same vocabulary as the manifest's `integrationRole`, which stays as an override.
|
|
62399
|
-
*/
|
|
62400
|
-
var IntegrationInstanceRoleSchema = z.enum([
|
|
62401
|
-
"devices",
|
|
62402
|
-
"services",
|
|
62403
|
-
"both"
|
|
62404
|
-
]);
|
|
62405
|
-
/**
|
|
62406
62339
|
* How devices of an instance are found. `none`: the operator adds them by hand; `lan`: the addon
|
|
62407
62340
|
* scans the network before any instance exists (the wizard offers the candidates); `account`: the
|
|
62408
62341
|
* devices appear after the instance signs in. `scopedToInstance`: a discovery run belongs to ONE
|
|
@@ -62486,7 +62419,11 @@ var integrationInstancesCapability = {
|
|
|
62486
62419
|
methods: {
|
|
62487
62420
|
describe: method(z.void(), IntegrationInstanceDescriptionSchema, { auth: "admin" }),
|
|
62488
62421
|
/** The form; `id: null` is the create form. */
|
|
62489
|
-
instanceFormSchema: method(z.object({
|
|
62422
|
+
instanceFormSchema: method(z.object({
|
|
62423
|
+
id: IntegrationInstanceIdSchema.nullable(),
|
|
62424
|
+
/** The kind of the create form (`id: null`) of a provider with several. */
|
|
62425
|
+
kind: z.string().min(1).optional()
|
|
62426
|
+
}), ConfigSchemaPassthrough$3, { auth: "admin" }),
|
|
62490
62427
|
listInstances: method(z.void(), z.array(IntegrationInstanceSchema).readonly(), { auth: "admin" }),
|
|
62491
62428
|
getInstance: method(z.object({ id: IntegrationInstanceIdSchema }), IntegrationInstanceSchema.nullable(), { auth: "admin" }),
|
|
62492
62429
|
/**
|
|
@@ -62496,7 +62433,9 @@ var integrationInstancesCapability = {
|
|
|
62496
62433
|
createInstance: method(z.object({
|
|
62497
62434
|
id: IntegrationInstanceIdSchema.optional(),
|
|
62498
62435
|
name: z.string().min(1),
|
|
62499
|
-
kind: z.string().min(1).optional()
|
|
62436
|
+
kind: z.string().min(1).optional(),
|
|
62437
|
+
/** Form values written with the record (a link picked in the create dialog). */
|
|
62438
|
+
values: z.record(z.string(), z.unknown()).optional()
|
|
62500
62439
|
}), z.object({ id: z.string() }), {
|
|
62501
62440
|
kind: "mutation",
|
|
62502
62441
|
auth: "admin"
|
|
@@ -62523,8 +62462,10 @@ var integrationInstancesCapability = {
|
|
|
62523
62462
|
}),
|
|
62524
62463
|
testInstance: optionalMethod(z.object({
|
|
62525
62464
|
id: IntegrationInstanceIdSchema.nullable(),
|
|
62526
|
-
values: z.record(z.string(), z.unknown())
|
|
62527
|
-
|
|
62465
|
+
values: z.record(z.string(), z.unknown()),
|
|
62466
|
+
/** The kind to test when `id` is null and the provider has several. */
|
|
62467
|
+
kind: z.string().min(1).optional()
|
|
62468
|
+
}), TestConnectionResultSchema, {
|
|
62528
62469
|
kind: "mutation",
|
|
62529
62470
|
auth: "admin"
|
|
62530
62471
|
})
|
|
@@ -66265,6 +66206,568 @@ var metricsProviderCapability = {
|
|
|
66265
66206
|
}
|
|
66266
66207
|
};
|
|
66267
66208
|
/**
|
|
66209
|
+
* records - an addon's own facts and documents (D881): ledgers, audit rows,
|
|
66210
|
+
* config documents, mirrors. The third storage API next to `ctx.settings`
|
|
66211
|
+
* (operator intent, D870) and device-history (numbers over time, D850).
|
|
66212
|
+
*
|
|
66213
|
+
* Who the OWNER is: `callerAddonId`, stamped by the transport on a call that
|
|
66214
|
+
* crossed a process and stated by a hub in-process caller (`ctx.records` does
|
|
66215
|
+
* that with the addon id closed over). It is deliberately NOT in any input
|
|
66216
|
+
* schema, so a session can never supply it, and a call with no stamp is refused
|
|
66217
|
+
* `records/no-caller`. A kind is readable and writable only by its owner; other
|
|
66218
|
+
* addons go through the owner's capability.
|
|
66219
|
+
*
|
|
66220
|
+
* Every read is three-way: a row, `null`, or the call THROWS. A failed read is
|
|
66221
|
+
* never `[]`. Secret fields are never on the wire: a read shows the
|
|
66222
|
+
* redaction token, `secretRefs` hands the owner's `ctx.secrets` the refs it
|
|
66223
|
+
* resolves itself, and a write may carry only a keychain marker bound to the
|
|
66224
|
+
* row's own ref.
|
|
66225
|
+
*
|
|
66226
|
+
* Internal: addons reach it through `ctx.records`, never directly.
|
|
66227
|
+
*/
|
|
66228
|
+
var RecordIdSchema = z.string().min(1).max(256);
|
|
66229
|
+
/** A JSON object body. Size is the engine's check (`maxDataBytes`), not a schema's. */
|
|
66230
|
+
var RecordBodySchema = z.record(z.string(), z.unknown());
|
|
66231
|
+
var RecordInputSchema = z.object({
|
|
66232
|
+
id: RecordIdSchema,
|
|
66233
|
+
/** The device this row belongs to (D865 removal, per-device reads). */
|
|
66234
|
+
deviceId: z.number().int().optional(),
|
|
66235
|
+
/** The domain clock, ms: observed / created / opened. */
|
|
66236
|
+
at: z.number().int().optional(),
|
|
66237
|
+
/** Producer-set expiry, ms. Refused on a kind whose retention is an engine TTL. */
|
|
66238
|
+
expiresAt: z.number().int().optional(),
|
|
66239
|
+
data: RecordBodySchema
|
|
66240
|
+
});
|
|
66241
|
+
var RecordViewSchema = z.object({
|
|
66242
|
+
id: z.string(),
|
|
66243
|
+
deviceId: z.number().int().nullable(),
|
|
66244
|
+
at: z.number().nullable(),
|
|
66245
|
+
expiresAt: z.number().nullable(),
|
|
66246
|
+
rev: z.number().int(),
|
|
66247
|
+
updatedAt: z.number(),
|
|
66248
|
+
data: RecordBodySchema
|
|
66249
|
+
});
|
|
66250
|
+
/** One predicate on a declared index field: equality, a set, or a range. */
|
|
66251
|
+
var RecordWhereValueSchema = z.union([
|
|
66252
|
+
z.string(),
|
|
66253
|
+
z.number(),
|
|
66254
|
+
z.boolean(),
|
|
66255
|
+
z.object({ in: z.array(z.union([
|
|
66256
|
+
z.string(),
|
|
66257
|
+
z.number(),
|
|
66258
|
+
z.boolean()
|
|
66259
|
+
])).min(1).max(RECORD_BATCH_MAX) }),
|
|
66260
|
+
z.object({
|
|
66261
|
+
gt: z.union([z.string(), z.number()]).optional(),
|
|
66262
|
+
gte: z.union([z.string(), z.number()]).optional(),
|
|
66263
|
+
lt: z.union([z.string(), z.number()]).optional(),
|
|
66264
|
+
lte: z.union([z.string(), z.number()]).optional()
|
|
66265
|
+
}).refine((r) => Object.keys(r).length > 0, { message: "name at least one bound" })
|
|
66266
|
+
]);
|
|
66267
|
+
/** Declared index fields only. Anything else does not compile, by design. */
|
|
66268
|
+
var RecordWhereSchema = z.record(RecordFieldPathSchema, RecordWhereValueSchema);
|
|
66269
|
+
var KindShape = { kind: RecordKindNameSchema };
|
|
66270
|
+
var TimeWindowShape = {
|
|
66271
|
+
deviceId: z.number().int().optional(),
|
|
66272
|
+
atFrom: z.number().optional(),
|
|
66273
|
+
atTo: z.number().optional()
|
|
66274
|
+
};
|
|
66275
|
+
var RecordQueryInputSchema = z.object({
|
|
66276
|
+
...KindShape,
|
|
66277
|
+
...TimeWindowShape,
|
|
66278
|
+
where: RecordWhereSchema.optional(),
|
|
66279
|
+
/** Without `where`: `at` (default for a kind with a clock) or `id`. With `where` the order is the index's. */
|
|
66280
|
+
order: z.enum(["at", "id"]).optional(),
|
|
66281
|
+
desc: z.boolean().optional(),
|
|
66282
|
+
limit: z.number().int().min(1).max(RECORD_QUERY_MAX).default(100),
|
|
66283
|
+
/** Opaque keyset cursor from a previous answer. There is no offset. */
|
|
66284
|
+
cursor: z.string().min(1).optional()
|
|
66285
|
+
});
|
|
66286
|
+
var RecordQueryResultSchema = z.object({
|
|
66287
|
+
records: z.array(RecordViewSchema),
|
|
66288
|
+
nextCursor: z.string().nullable()
|
|
66289
|
+
});
|
|
66290
|
+
var RecordKindStateSchema = z.enum([
|
|
66291
|
+
"created",
|
|
66292
|
+
"unchanged",
|
|
66293
|
+
"updated"
|
|
66294
|
+
]);
|
|
66295
|
+
var DeclareKindResultSchema = z.object({
|
|
66296
|
+
kindId: z.number().int(),
|
|
66297
|
+
state: RecordKindStateSchema,
|
|
66298
|
+
createdIndexes: z.array(z.string())
|
|
66299
|
+
});
|
|
66300
|
+
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
66301
|
+
var SecretRefsList = z.array(z.string());
|
|
66302
|
+
/**
|
|
66303
|
+
* One op of a `transact`: the single-row writes, each on a kind of the caller.
|
|
66304
|
+
* All ops of one call share ONE database file and ONE `transactFamily`.
|
|
66305
|
+
*/
|
|
66306
|
+
var RecordTransactOpSchema = z.discriminatedUnion("op", [
|
|
66307
|
+
z.object({
|
|
66308
|
+
op: z.literal("put"),
|
|
66309
|
+
kind: RecordKindNameSchema,
|
|
66310
|
+
record: RecordInputSchema,
|
|
66311
|
+
ifRev: z.number().int().min(0).optional()
|
|
66312
|
+
}),
|
|
66313
|
+
z.object({
|
|
66314
|
+
op: z.literal("patch"),
|
|
66315
|
+
kind: RecordKindNameSchema,
|
|
66316
|
+
id: RecordIdSchema,
|
|
66317
|
+
data: RecordBodySchema,
|
|
66318
|
+
at: z.number().int().nullable().optional(),
|
|
66319
|
+
expiresAt: z.number().int().nullable().optional(),
|
|
66320
|
+
ifRev: z.number().int().min(1).optional()
|
|
66321
|
+
}),
|
|
66322
|
+
z.object({
|
|
66323
|
+
op: z.literal("delete"),
|
|
66324
|
+
kind: RecordKindNameSchema,
|
|
66325
|
+
id: RecordIdSchema
|
|
66326
|
+
})
|
|
66327
|
+
]);
|
|
66328
|
+
var RecordSecretRefsSchema = z.record(z.string(), z.record(z.string(), z.string()));
|
|
66329
|
+
var recordsCapability = {
|
|
66330
|
+
name: "records",
|
|
66331
|
+
scope: "system",
|
|
66332
|
+
mode: "singleton",
|
|
66333
|
+
internal: true,
|
|
66334
|
+
methods: {
|
|
66335
|
+
/** Reconcile this addon's kinds: create the catalog rows and the declared indexes. Additive only. */
|
|
66336
|
+
declareKinds: method(z.object({ kinds: z.record(RecordKindNameSchema, RecordKindDeclarationSchema) }), z.object({ kinds: z.record(z.string(), DeclareKindResultSchema) }), {
|
|
66337
|
+
kind: "mutation",
|
|
66338
|
+
auth: "admin"
|
|
66339
|
+
}),
|
|
66340
|
+
get: method(z.object({
|
|
66341
|
+
...KindShape,
|
|
66342
|
+
id: RecordIdSchema
|
|
66343
|
+
}), RecordViewSchema.nullable(), { auth: "admin" }),
|
|
66344
|
+
getMany: method(z.object({
|
|
66345
|
+
...KindShape,
|
|
66346
|
+
ids: z.array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
66347
|
+
}), z.array(RecordViewSchema), { auth: "admin" }),
|
|
66348
|
+
/** The keychain refs of the rows' secret fields, by id and concrete path. For the owner's `ctx.secrets`. */
|
|
66349
|
+
secretRefs: method(z.object({
|
|
66350
|
+
...KindShape,
|
|
66351
|
+
ids: z.array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
66352
|
+
}), RecordSecretRefsSchema, { auth: "admin" }),
|
|
66353
|
+
put: method(z.object({
|
|
66354
|
+
...KindShape,
|
|
66355
|
+
record: RecordInputSchema,
|
|
66356
|
+
/** Compare-and-set. `0` means "the row must not exist". */
|
|
66357
|
+
ifRev: z.number().int().min(0).optional()
|
|
66358
|
+
}), z.object({
|
|
66359
|
+
rev: z.number().int(),
|
|
66360
|
+
releasedRefs: SecretRefsList
|
|
66361
|
+
}), {
|
|
66362
|
+
kind: "mutation",
|
|
66363
|
+
auth: "admin"
|
|
66364
|
+
}),
|
|
66365
|
+
putMany: method(z.object({
|
|
66366
|
+
...KindShape,
|
|
66367
|
+
records: z.array(RecordInputSchema).min(1).max(RECORD_BATCH_MAX)
|
|
66368
|
+
}), z.object({
|
|
66369
|
+
count: z.number().int(),
|
|
66370
|
+
releasedRefs: SecretRefsList
|
|
66371
|
+
}), {
|
|
66372
|
+
kind: "mutation",
|
|
66373
|
+
auth: "admin"
|
|
66374
|
+
}),
|
|
66375
|
+
/** One-statement RFC 7396 merge: `null` removes a field; a merge never reads. */
|
|
66376
|
+
patch: method(z.object({
|
|
66377
|
+
...KindShape,
|
|
66378
|
+
id: RecordIdSchema,
|
|
66379
|
+
data: RecordBodySchema,
|
|
66380
|
+
at: z.number().int().nullable().optional(),
|
|
66381
|
+
expiresAt: z.number().int().nullable().optional(),
|
|
66382
|
+
ifRev: z.number().int().min(1).optional()
|
|
66383
|
+
}), z.object({
|
|
66384
|
+
rev: z.number().int(),
|
|
66385
|
+
releasedRefs: SecretRefsList
|
|
66386
|
+
}), {
|
|
66387
|
+
kind: "mutation",
|
|
66388
|
+
auth: "admin"
|
|
66389
|
+
}),
|
|
66390
|
+
delete: method(z.object({
|
|
66391
|
+
...KindShape,
|
|
66392
|
+
id: RecordIdSchema
|
|
66393
|
+
}), z.object({
|
|
66394
|
+
deleted: z.boolean(),
|
|
66395
|
+
secretRefs: SecretRefsList
|
|
66396
|
+
}), {
|
|
66397
|
+
kind: "mutation",
|
|
66398
|
+
auth: "admin"
|
|
66399
|
+
}),
|
|
66400
|
+
deleteMany: method(z.object({
|
|
66401
|
+
...KindShape,
|
|
66402
|
+
ids: z.array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
66403
|
+
}), z.object({
|
|
66404
|
+
deleted: z.number().int(),
|
|
66405
|
+
secretRefs: SecretRefsList
|
|
66406
|
+
}), {
|
|
66407
|
+
kind: "mutation",
|
|
66408
|
+
auth: "admin"
|
|
66409
|
+
}),
|
|
66410
|
+
query: method(RecordQueryInputSchema, RecordQueryResultSchema, { auth: "admin" }),
|
|
66411
|
+
count: method(z.object({
|
|
66412
|
+
...KindShape,
|
|
66413
|
+
...TimeWindowShape,
|
|
66414
|
+
where: RecordWhereSchema.optional()
|
|
66415
|
+
}), z.object({ count: z.number().int() }), { auth: "admin" }),
|
|
66416
|
+
histogram: method(z.object({
|
|
66417
|
+
...KindShape,
|
|
66418
|
+
deviceId: z.number().int().optional(),
|
|
66419
|
+
from: z.number(),
|
|
66420
|
+
to: z.number(),
|
|
66421
|
+
bucketMs: z.number().int().positive()
|
|
66422
|
+
}), z.object({ buckets: z.array(z.object({
|
|
66423
|
+
bucketStart: z.number(),
|
|
66424
|
+
count: z.number().int()
|
|
66425
|
+
})) }), { auth: "admin" }),
|
|
66426
|
+
/** Index-served only: every field must belong to ONE declared index. */
|
|
66427
|
+
aggregate: method(z.object({
|
|
66428
|
+
...KindShape,
|
|
66429
|
+
op: z.enum([
|
|
66430
|
+
"sum",
|
|
66431
|
+
"min",
|
|
66432
|
+
"max",
|
|
66433
|
+
"count"
|
|
66434
|
+
]),
|
|
66435
|
+
field: RecordFieldPathSchema.optional(),
|
|
66436
|
+
groupBy: RecordFieldPathSchema.optional(),
|
|
66437
|
+
where: RecordWhereSchema.optional()
|
|
66438
|
+
}), z.object({ rows: z.array(z.object({
|
|
66439
|
+
group: z.union([
|
|
66440
|
+
z.string(),
|
|
66441
|
+
z.number(),
|
|
66442
|
+
z.null()
|
|
66443
|
+
]),
|
|
66444
|
+
value: z.number().nullable()
|
|
66445
|
+
})) }), { auth: "admin" }),
|
|
66446
|
+
/** Batched (5 000 rows per statement, yielding between). Needs a predicate: there is no "delete all". */
|
|
66447
|
+
deleteWhere: method(z.object({
|
|
66448
|
+
...KindShape,
|
|
66449
|
+
deviceId: z.number().int().optional(),
|
|
66450
|
+
atBefore: z.number().optional(),
|
|
66451
|
+
where: RecordWhereSchema.optional()
|
|
66452
|
+
}), z.object({
|
|
66453
|
+
deleted: z.number().int(),
|
|
66454
|
+
secretRefs: SecretRefsList
|
|
66455
|
+
}), {
|
|
66456
|
+
kind: "mutation",
|
|
66457
|
+
auth: "admin"
|
|
66458
|
+
}),
|
|
66459
|
+
/**
|
|
66460
|
+
* Several single-row writes (put / patch / delete) in ONE SQLite transaction:
|
|
66461
|
+
* all land or none does. Every op's kind must sit in one file and share one
|
|
66462
|
+
* `transactFamily` (`records/transact-refused` otherwise). Results are in op order.
|
|
66463
|
+
*/
|
|
66464
|
+
transact: method(z.object({ ops: z.array(RecordTransactOpSchema).min(1).max(RECORD_BATCH_MAX) }), z.object({
|
|
66465
|
+
results: z.array(z.object({
|
|
66466
|
+
rev: z.number().int().nullable(),
|
|
66467
|
+
deleted: z.boolean()
|
|
66468
|
+
})),
|
|
66469
|
+
releasedRefs: SecretRefsList,
|
|
66470
|
+
secretRefs: SecretRefsList
|
|
66471
|
+
}), {
|
|
66472
|
+
kind: "mutation",
|
|
66473
|
+
auth: "admin"
|
|
66474
|
+
}),
|
|
66475
|
+
/** The D865 hook body: every kind of this addon declared `deviceRemoval: 'delete'`. */
|
|
66476
|
+
deleteDevice: method(z.object({
|
|
66477
|
+
deviceId: z.number().int(),
|
|
66478
|
+
kinds: z.array(RecordKindNameSchema).optional()
|
|
66479
|
+
}), z.object({
|
|
66480
|
+
deleted: z.record(z.string(), z.number().int()),
|
|
66481
|
+
secretRefs: SecretRefsList
|
|
66482
|
+
}), {
|
|
66483
|
+
kind: "mutation",
|
|
66484
|
+
auth: "admin"
|
|
66485
|
+
}),
|
|
66486
|
+
/** A monotonically increasing integer per kind (replaces "resume from the highest"). */
|
|
66487
|
+
allocateId: method(z.object(KindShape), z.object({ id: z.number().int() }), {
|
|
66488
|
+
kind: "mutation",
|
|
66489
|
+
auth: "admin"
|
|
66490
|
+
})
|
|
66491
|
+
}
|
|
66492
|
+
};
|
|
66493
|
+
/**
|
|
66494
|
+
* The wire shapes of the migration API, version 1 (planning#447).
|
|
66495
|
+
*
|
|
66496
|
+
* A migration is code that outlives the server it was written against: an addon at
|
|
66497
|
+
* version 1.4 that is brought to 1.9 in one jump still runs its 1.4 catalogue, against
|
|
66498
|
+
* the 1.9 kernel. The only thing that code may call is {@link MigrationApiV1}; this file
|
|
66499
|
+
* is the contract of every method of it, one Zod pair per method.
|
|
66500
|
+
*
|
|
66501
|
+
* APPEND-ONLY. A released method is never removed and never changes meaning: an input
|
|
66502
|
+
* field is never removed or made required, an enum never narrows, an output field is
|
|
66503
|
+
* never removed. A change that cannot be expressed that way is `migration-api.v2`, next
|
|
66504
|
+
* to this file. `scripts/check-migration-api-append-only.ts` holds the line against
|
|
66505
|
+
* `scripts/migration-api-contract.json`, and every `behaviours` id below must have an
|
|
66506
|
+
* `it('<id>'` in `migration-api.contract.spec.ts`.
|
|
66507
|
+
*/
|
|
66508
|
+
var Rows = z.record(z.string(), z.unknown());
|
|
66509
|
+
var IntegrationId = z.object({ integrationId: z.string().min(1) });
|
|
66510
|
+
var RecordId = z.object({ id: z.string().min(1) });
|
|
66511
|
+
var RecordRowSchema = z.object({
|
|
66512
|
+
id: z.string(),
|
|
66513
|
+
deviceId: z.number().int().nullable(),
|
|
66514
|
+
at: z.number().nullable(),
|
|
66515
|
+
expiresAt: z.number().nullable(),
|
|
66516
|
+
rev: z.number().int(),
|
|
66517
|
+
updatedAt: z.number(),
|
|
66518
|
+
data: Rows
|
|
66519
|
+
});
|
|
66520
|
+
var RecordPutShape = {
|
|
66521
|
+
id: z.string().min(1),
|
|
66522
|
+
deviceId: z.number().int().optional(),
|
|
66523
|
+
at: z.number().int().optional(),
|
|
66524
|
+
expiresAt: z.number().int().optional(),
|
|
66525
|
+
data: Rows
|
|
66526
|
+
};
|
|
66527
|
+
var MigrationIntegrationSchema = z.object({
|
|
66528
|
+
id: z.string(),
|
|
66529
|
+
addonId: z.string(),
|
|
66530
|
+
name: z.string(),
|
|
66531
|
+
info: Rows,
|
|
66532
|
+
originStableId: z.string().optional()
|
|
66533
|
+
});
|
|
66534
|
+
var MigrationDeviceSchema = z.object({
|
|
66535
|
+
id: z.number().int(),
|
|
66536
|
+
integrationId: z.string().nullable().optional(),
|
|
66537
|
+
/** The owning device; null or absent for a root. */
|
|
66538
|
+
parentDeviceId: z.number().int().nullable().optional(),
|
|
66539
|
+
type: z.string().optional(),
|
|
66540
|
+
name: z.string().optional(),
|
|
66541
|
+
stableId: z.string().optional()
|
|
66542
|
+
});
|
|
66543
|
+
/** What the engine says about the migration API it serves: lets an addon notice an older server. */
|
|
66544
|
+
var MigrationApiInfoSchema = z.object({
|
|
66545
|
+
version: z.number().int(),
|
|
66546
|
+
methods: z.array(z.string())
|
|
66547
|
+
});
|
|
66548
|
+
var LogInput = z.object({
|
|
66549
|
+
message: z.string(),
|
|
66550
|
+
meta: Rows.optional(),
|
|
66551
|
+
/** Grouping tags of the line; a line about a device carries `{ deviceId }`. */
|
|
66552
|
+
tags: z.object({ deviceId: z.number().int().optional() }).optional()
|
|
66553
|
+
});
|
|
66554
|
+
var MIGRATION_API_V1_METHODS = {
|
|
66555
|
+
"ledger.declare": {
|
|
66556
|
+
input: z.object({
|
|
66557
|
+
owner: z.string().min(1),
|
|
66558
|
+
metas: z.array(MigrationMetaSchema)
|
|
66559
|
+
}),
|
|
66560
|
+
output: z.object({
|
|
66561
|
+
bootId: z.string(),
|
|
66562
|
+
snapshot: z.enum([
|
|
66563
|
+
"none",
|
|
66564
|
+
"written",
|
|
66565
|
+
"refused"
|
|
66566
|
+
]),
|
|
66567
|
+
steps: z.array(MigrationOwnerStepSchema),
|
|
66568
|
+
/** The migration API the engine serves; absent from a server that predates it. */
|
|
66569
|
+
migrationApi: MigrationApiInfoSchema.optional()
|
|
66570
|
+
}),
|
|
66571
|
+
behaviours: ["ledger.declare.answers-steps-in-engine-order", "ledger.declare.answers-the-migration-api"]
|
|
66572
|
+
},
|
|
66573
|
+
"ledger.start": {
|
|
66574
|
+
input: z.object({ id: z.string().min(1) }),
|
|
66575
|
+
output: z.object({
|
|
66576
|
+
proceed: z.boolean(),
|
|
66577
|
+
state: z.union([z.literal("pending"), MigrationStatusSchema]),
|
|
66578
|
+
reason: z.string().nullable()
|
|
66579
|
+
}),
|
|
66580
|
+
behaviours: ["ledger.start.proceeds-when-predecessors-applied"]
|
|
66581
|
+
},
|
|
66582
|
+
"ledger.finish": {
|
|
66583
|
+
input: z.object({
|
|
66584
|
+
id: z.string().min(1),
|
|
66585
|
+
result: MigrationOwnerResultSchema
|
|
66586
|
+
}),
|
|
66587
|
+
output: z.object({
|
|
66588
|
+
status: MigrationStatusSchema,
|
|
66589
|
+
error: z.string().nullable(),
|
|
66590
|
+
rowsChanged: z.number().int().nonnegative()
|
|
66591
|
+
}),
|
|
66592
|
+
behaviours: ["ledger.finish.records-the-outcome"]
|
|
66593
|
+
},
|
|
66594
|
+
"legacyRows.read": {
|
|
66595
|
+
input: IntegrationId,
|
|
66596
|
+
output: Rows,
|
|
66597
|
+
behaviours: [
|
|
66598
|
+
"legacyRows.read.returns-stored-rows",
|
|
66599
|
+
"legacyRows.read.absent-store-is-empty",
|
|
66600
|
+
"legacyRows.caller.sibling-package"
|
|
66601
|
+
]
|
|
66602
|
+
},
|
|
66603
|
+
"legacyRows.clear": {
|
|
66604
|
+
input: IntegrationId,
|
|
66605
|
+
output: z.object({
|
|
66606
|
+
rows: z.number().int().nonnegative(),
|
|
66607
|
+
secrets: z.number().int().nonnegative()
|
|
66608
|
+
}),
|
|
66609
|
+
behaviours: ["legacyRows.clear.deletes-the-rows", "legacyRows.clear.absent-store-is-noop"]
|
|
66610
|
+
},
|
|
66611
|
+
"legacyRows.patch": {
|
|
66612
|
+
input: IntegrationId.extend({ patch: Rows }),
|
|
66613
|
+
output: z.object({ written: z.boolean() }),
|
|
66614
|
+
behaviours: ["legacyRows.patch.upserts-keys-and-keeps-the-rest", "legacyRows.patch.absent-store-writes-nothing"]
|
|
66615
|
+
},
|
|
66616
|
+
"legacyRows.deleteKeys": {
|
|
66617
|
+
input: IntegrationId.extend({ keys: z.array(z.string().min(1)) }),
|
|
66618
|
+
output: z.object({
|
|
66619
|
+
present: z.boolean(),
|
|
66620
|
+
removed: Rows
|
|
66621
|
+
}),
|
|
66622
|
+
behaviours: ["legacyRows.deleteKeys.removes-the-named-keys", "legacyRows.deleteKeys.absent-store-reports-not-present"]
|
|
66623
|
+
},
|
|
66624
|
+
"records.get": {
|
|
66625
|
+
input: RecordId,
|
|
66626
|
+
output: RecordRowSchema.nullable(),
|
|
66627
|
+
behaviours: ["records.get.returns-the-row-or-null"]
|
|
66628
|
+
},
|
|
66629
|
+
"records.getResolved": {
|
|
66630
|
+
input: RecordId,
|
|
66631
|
+
output: RecordRowSchema.nullable(),
|
|
66632
|
+
behaviours: ["records.getResolved.resolves-secret-fields"]
|
|
66633
|
+
},
|
|
66634
|
+
"records.put": {
|
|
66635
|
+
input: z.object({
|
|
66636
|
+
...RecordPutShape,
|
|
66637
|
+
ifRev: z.number().int().optional()
|
|
66638
|
+
}),
|
|
66639
|
+
output: z.object({ rev: z.number().int() }),
|
|
66640
|
+
behaviours: ["records.put.creates-and-replaces", "records.put.if-rev-conflict-throws"]
|
|
66641
|
+
},
|
|
66642
|
+
"records.putMany": {
|
|
66643
|
+
input: z.object({ records: z.array(z.object(RecordPutShape)) }),
|
|
66644
|
+
output: z.object({ count: z.number().int().nonnegative() }),
|
|
66645
|
+
behaviours: ["records.putMany.writes-every-row"]
|
|
66646
|
+
},
|
|
66647
|
+
"records.patch": {
|
|
66648
|
+
input: RecordId.extend({
|
|
66649
|
+
partial: Rows,
|
|
66650
|
+
ifRev: z.number().int().optional()
|
|
66651
|
+
}),
|
|
66652
|
+
output: z.object({ rev: z.number().int() }),
|
|
66653
|
+
behaviours: ["records.patch.merges-and-null-removes"]
|
|
66654
|
+
},
|
|
66655
|
+
"records.delete": {
|
|
66656
|
+
input: RecordId,
|
|
66657
|
+
output: z.object({ deleted: z.boolean() }),
|
|
66658
|
+
behaviours: ["records.delete.reports-whether-a-row-went"]
|
|
66659
|
+
},
|
|
66660
|
+
"records.query": {
|
|
66661
|
+
input: z.object({
|
|
66662
|
+
deviceId: z.number().int().optional(),
|
|
66663
|
+
atFrom: z.number().optional(),
|
|
66664
|
+
atTo: z.number().optional(),
|
|
66665
|
+
where: RecordWhereSchema.optional(),
|
|
66666
|
+
limit: z.number().int().min(1).optional(),
|
|
66667
|
+
cursor: z.string().min(1).optional(),
|
|
66668
|
+
resolveSecrets: z.boolean().optional()
|
|
66669
|
+
}),
|
|
66670
|
+
output: z.object({
|
|
66671
|
+
records: z.array(RecordRowSchema),
|
|
66672
|
+
nextCursor: z.string().nullable()
|
|
66673
|
+
}),
|
|
66674
|
+
behaviours: ["records.query.pages-with-a-cursor", "records.query.filters-on-a-declared-index"]
|
|
66675
|
+
},
|
|
66676
|
+
"records.deleteWhere": {
|
|
66677
|
+
input: z.object({
|
|
66678
|
+
deviceId: z.number().int().optional(),
|
|
66679
|
+
atBefore: z.number().optional(),
|
|
66680
|
+
where: RecordWhereSchema.optional()
|
|
66681
|
+
}),
|
|
66682
|
+
output: z.object({ count: z.number().int().nonnegative() }),
|
|
66683
|
+
behaviours: ["records.deleteWhere.deletes-the-matching-rows"]
|
|
66684
|
+
},
|
|
66685
|
+
"settings.read": {
|
|
66686
|
+
input: z.object({}),
|
|
66687
|
+
output: z.object({ store: Rows }),
|
|
66688
|
+
behaviours: ["settings.read.returns-the-addon-store"]
|
|
66689
|
+
},
|
|
66690
|
+
"settings.write": {
|
|
66691
|
+
input: z.object({ patch: Rows }),
|
|
66692
|
+
output: z.object({}),
|
|
66693
|
+
behaviours: ["settings.write.merges-and-keeps-other-keys"]
|
|
66694
|
+
},
|
|
66695
|
+
"settings.deleteKeys": {
|
|
66696
|
+
input: z.object({ keys: z.array(z.string().min(1)) }),
|
|
66697
|
+
output: z.object({ removed: z.array(z.string()) }),
|
|
66698
|
+
behaviours: ["settings.deleteKeys.removes-only-the-named-keys"]
|
|
66699
|
+
},
|
|
66700
|
+
"secrets.resolve": {
|
|
66701
|
+
input: z.object({ refs: z.array(z.string()) }),
|
|
66702
|
+
output: z.object({ values: z.record(z.string(), z.string().nullable()) }),
|
|
66703
|
+
behaviours: ["secrets.resolve.answers-null-for-a-missing-ref"]
|
|
66704
|
+
},
|
|
66705
|
+
"secrets.put": {
|
|
66706
|
+
input: z.object({
|
|
66707
|
+
ref: z.string().min(1),
|
|
66708
|
+
value: z.string()
|
|
66709
|
+
}),
|
|
66710
|
+
output: z.object({}),
|
|
66711
|
+
behaviours: ["secrets.put.stores-under-the-owner"]
|
|
66712
|
+
},
|
|
66713
|
+
"secrets.delete": {
|
|
66714
|
+
input: z.object({ refs: z.array(z.string()) }),
|
|
66715
|
+
output: z.object({ deleted: z.number().int().nonnegative() }),
|
|
66716
|
+
behaviours: ["secrets.delete.ignores-unknown-refs"]
|
|
66717
|
+
},
|
|
66718
|
+
"integrations.list": {
|
|
66719
|
+
input: z.object({}),
|
|
66720
|
+
output: z.object({ integrations: z.array(MigrationIntegrationSchema) }),
|
|
66721
|
+
behaviours: ["integrations.list.lists-every-integration"]
|
|
66722
|
+
},
|
|
66723
|
+
"integrations.get": {
|
|
66724
|
+
input: z.object({ id: z.string().min(1) }),
|
|
66725
|
+
output: MigrationIntegrationSchema.nullable(),
|
|
66726
|
+
behaviours: ["integrations.get.null-for-an-unknown-id"]
|
|
66727
|
+
},
|
|
66728
|
+
"devices.list": {
|
|
66729
|
+
input: z.object({
|
|
66730
|
+
addonId: z.string().min(1),
|
|
66731
|
+
integrationId: z.string().min(1).optional()
|
|
66732
|
+
}),
|
|
66733
|
+
output: z.object({ devices: z.array(MigrationDeviceSchema) }),
|
|
66734
|
+
behaviours: ["devices.list.scoped-to-the-addon", "devices.list.filters-by-integration"]
|
|
66735
|
+
},
|
|
66736
|
+
"devices.get": {
|
|
66737
|
+
input: z.object({ deviceId: z.number().int() }),
|
|
66738
|
+
output: z.object({
|
|
66739
|
+
id: z.number().int(),
|
|
66740
|
+
integrationId: z.string().nullable(),
|
|
66741
|
+
/** Whether the device carries any stored config; its content is not offered. */
|
|
66742
|
+
hasConfig: z.boolean()
|
|
66743
|
+
}).nullable(),
|
|
66744
|
+
behaviours: ["devices.get.null-for-an-unknown-id", "devices.get.reports-link-and-config"]
|
|
66745
|
+
},
|
|
66746
|
+
"devices.setIntegrationId": {
|
|
66747
|
+
input: z.object({
|
|
66748
|
+
deviceId: z.number().int(),
|
|
66749
|
+
integrationId: z.string().min(1)
|
|
66750
|
+
}),
|
|
66751
|
+
output: z.object({}),
|
|
66752
|
+
behaviours: ["devices.setIntegrationId.links-the-device"]
|
|
66753
|
+
},
|
|
66754
|
+
"node.localNodeId": {
|
|
66755
|
+
input: z.object({}),
|
|
66756
|
+
output: z.object({ nodeId: z.string() }),
|
|
66757
|
+
behaviours: ["node.localNodeId.names-this-node"]
|
|
66758
|
+
},
|
|
66759
|
+
"log.info": {
|
|
66760
|
+
input: LogInput,
|
|
66761
|
+
output: z.object({}),
|
|
66762
|
+
behaviours: ["log.info.writes-a-line"]
|
|
66763
|
+
},
|
|
66764
|
+
"log.warn": {
|
|
66765
|
+
input: LogInput,
|
|
66766
|
+
output: z.object({}),
|
|
66767
|
+
behaviours: ["log.warn.writes-a-line"]
|
|
66768
|
+
}
|
|
66769
|
+
};
|
|
66770
|
+
/**
|
|
66268
66771
|
* migrations — the ledger and the controls of the boot-time migration engine
|
|
66269
66772
|
* (D987). Hub-only and internal: `sqlite-settings` is the registrant, because the
|
|
66270
66773
|
* ledger lives INSIDE the database files it serves (`camstack.db`, `events.db`,
|
|
@@ -66339,7 +66842,9 @@ var migrationsCapability = {
|
|
|
66339
66842
|
"written",
|
|
66340
66843
|
"refused"
|
|
66341
66844
|
]),
|
|
66342
|
-
steps: z.array(MigrationOwnerStepSchema)
|
|
66845
|
+
steps: z.array(MigrationOwnerStepSchema),
|
|
66846
|
+
/** The migration API this engine serves (additive: a server that predates it omits it). */
|
|
66847
|
+
migrationApi: MigrationApiInfoSchema.optional()
|
|
66343
66848
|
}), {
|
|
66344
66849
|
kind: "mutation",
|
|
66345
66850
|
auth: "admin"
|
|
@@ -69460,6 +69965,20 @@ var pipelineAnalyticsCapability = {
|
|
|
69460
69965
|
*/
|
|
69461
69966
|
countUnstampedEventMedia: method(z.object({}), UnstampedEventMediaCountSchema, { auth: "admin" }),
|
|
69462
69967
|
/**
|
|
69968
|
+
* Stored media per storage location: rows and bytes stamped with each asked
|
|
69969
|
+
* location id, the rows with none, and the rows naming a location that was
|
|
69970
|
+
* not asked about. One indexed aggregate per location (`idx_media_location_size`,
|
|
69971
|
+
* a covering index) plus the NULL one, and one unfiltered total that is a
|
|
69972
|
+
* covering-index scan: O(rows), cheap per row but not constant, so a hub with
|
|
69973
|
+
* millions of rows pays for it once per call. `unlisted` is relative to the
|
|
69974
|
+
* ids ASKED: it means "gone" only when every location id was asked. A failed
|
|
69975
|
+
* read throws; it never reads as zero.
|
|
69976
|
+
*/
|
|
69977
|
+
getMediaLocationCensus: method(MediaLocationCensusInputSchema, MediaLocationCensusSchema, {
|
|
69978
|
+
kind: "query",
|
|
69979
|
+
auth: "admin"
|
|
69980
|
+
}),
|
|
69981
|
+
/**
|
|
69463
69982
|
* How many rows a pass would STILL act on against `toLocationId`.
|
|
69464
69983
|
*
|
|
69465
69984
|
* One derivation, two consumers: it is the media lane's denominator (the
|
|
@@ -72925,7 +73444,7 @@ var BrokerStatusSchema$1 = z.enum([
|
|
|
72925
73444
|
"unreachable",
|
|
72926
73445
|
"tls-error"
|
|
72927
73446
|
]);
|
|
72928
|
-
var BrokerInfoSchema
|
|
73447
|
+
var BrokerInfoSchema = z.object({
|
|
72929
73448
|
id: z.string(),
|
|
72930
73449
|
name: z.string(),
|
|
72931
73450
|
url: z.string(),
|
|
@@ -72998,7 +73517,7 @@ var mqttBrokerCapability = {
|
|
|
72998
73517
|
kind: "poll"
|
|
72999
73518
|
},
|
|
73000
73519
|
methods: {
|
|
73001
|
-
listBrokers: method(z.void(), z.array(BrokerInfoSchema
|
|
73520
|
+
listBrokers: method(z.void(), z.array(BrokerInfoSchema)),
|
|
73002
73521
|
getBrokerConfig: method(IdInputSchema, BrokerConnectionDetailsSchema, { auth: "admin" }),
|
|
73003
73522
|
addBroker: method(AddBrokerInputSchema, AddBrokerResultSchema, {
|
|
73004
73523
|
kind: "mutation",
|
|
@@ -81385,291 +81904,6 @@ var rebootCapability = {
|
|
|
81385
81904
|
}) }
|
|
81386
81905
|
};
|
|
81387
81906
|
/**
|
|
81388
|
-
* records - an addon's own facts and documents (D881): ledgers, audit rows,
|
|
81389
|
-
* config documents, mirrors. The third storage API next to `ctx.settings`
|
|
81390
|
-
* (operator intent, D870) and device-history (numbers over time, D850).
|
|
81391
|
-
*
|
|
81392
|
-
* Who the OWNER is: `callerAddonId`, stamped by the transport on a call that
|
|
81393
|
-
* crossed a process and stated by a hub in-process caller (`ctx.records` does
|
|
81394
|
-
* that with the addon id closed over). It is deliberately NOT in any input
|
|
81395
|
-
* schema, so a session can never supply it, and a call with no stamp is refused
|
|
81396
|
-
* `records/no-caller`. A kind is readable and writable only by its owner; other
|
|
81397
|
-
* addons go through the owner's capability.
|
|
81398
|
-
*
|
|
81399
|
-
* Every read is three-way: a row, `null`, or the call THROWS. A failed read is
|
|
81400
|
-
* never `[]`. Secret fields are never on the wire: a read shows the
|
|
81401
|
-
* redaction token, `secretRefs` hands the owner's `ctx.secrets` the refs it
|
|
81402
|
-
* resolves itself, and a write may carry only a keychain marker bound to the
|
|
81403
|
-
* row's own ref.
|
|
81404
|
-
*
|
|
81405
|
-
* Internal: addons reach it through `ctx.records`, never directly.
|
|
81406
|
-
*/
|
|
81407
|
-
var RecordIdSchema = z.string().min(1).max(256);
|
|
81408
|
-
/** A JSON object body. Size is the engine's check (`maxDataBytes`), not a schema's. */
|
|
81409
|
-
var RecordBodySchema = z.record(z.string(), z.unknown());
|
|
81410
|
-
var RecordInputSchema = z.object({
|
|
81411
|
-
id: RecordIdSchema,
|
|
81412
|
-
/** The device this row belongs to (D865 removal, per-device reads). */
|
|
81413
|
-
deviceId: z.number().int().optional(),
|
|
81414
|
-
/** The domain clock, ms: observed / created / opened. */
|
|
81415
|
-
at: z.number().int().optional(),
|
|
81416
|
-
/** Producer-set expiry, ms. Refused on a kind whose retention is an engine TTL. */
|
|
81417
|
-
expiresAt: z.number().int().optional(),
|
|
81418
|
-
data: RecordBodySchema
|
|
81419
|
-
});
|
|
81420
|
-
var RecordViewSchema = z.object({
|
|
81421
|
-
id: z.string(),
|
|
81422
|
-
deviceId: z.number().int().nullable(),
|
|
81423
|
-
at: z.number().nullable(),
|
|
81424
|
-
expiresAt: z.number().nullable(),
|
|
81425
|
-
rev: z.number().int(),
|
|
81426
|
-
updatedAt: z.number(),
|
|
81427
|
-
data: RecordBodySchema
|
|
81428
|
-
});
|
|
81429
|
-
/** One predicate on a declared index field: equality, a set, or a range. */
|
|
81430
|
-
var RecordWhereValueSchema = z.union([
|
|
81431
|
-
z.string(),
|
|
81432
|
-
z.number(),
|
|
81433
|
-
z.boolean(),
|
|
81434
|
-
z.object({ in: z.array(z.union([
|
|
81435
|
-
z.string(),
|
|
81436
|
-
z.number(),
|
|
81437
|
-
z.boolean()
|
|
81438
|
-
])).min(1).max(RECORD_BATCH_MAX) }),
|
|
81439
|
-
z.object({
|
|
81440
|
-
gt: z.union([z.string(), z.number()]).optional(),
|
|
81441
|
-
gte: z.union([z.string(), z.number()]).optional(),
|
|
81442
|
-
lt: z.union([z.string(), z.number()]).optional(),
|
|
81443
|
-
lte: z.union([z.string(), z.number()]).optional()
|
|
81444
|
-
}).refine((r) => Object.keys(r).length > 0, { message: "name at least one bound" })
|
|
81445
|
-
]);
|
|
81446
|
-
/** Declared index fields only. Anything else does not compile, by design. */
|
|
81447
|
-
var RecordWhereSchema = z.record(RecordFieldPathSchema, RecordWhereValueSchema);
|
|
81448
|
-
var KindShape = { kind: RecordKindNameSchema };
|
|
81449
|
-
var TimeWindowShape = {
|
|
81450
|
-
deviceId: z.number().int().optional(),
|
|
81451
|
-
atFrom: z.number().optional(),
|
|
81452
|
-
atTo: z.number().optional()
|
|
81453
|
-
};
|
|
81454
|
-
var RecordQueryInputSchema = z.object({
|
|
81455
|
-
...KindShape,
|
|
81456
|
-
...TimeWindowShape,
|
|
81457
|
-
where: RecordWhereSchema.optional(),
|
|
81458
|
-
/** Without `where`: `at` (default for a kind with a clock) or `id`. With `where` the order is the index's. */
|
|
81459
|
-
order: z.enum(["at", "id"]).optional(),
|
|
81460
|
-
desc: z.boolean().optional(),
|
|
81461
|
-
limit: z.number().int().min(1).max(RECORD_QUERY_MAX).default(100),
|
|
81462
|
-
/** Opaque keyset cursor from a previous answer. There is no offset. */
|
|
81463
|
-
cursor: z.string().min(1).optional()
|
|
81464
|
-
});
|
|
81465
|
-
var RecordQueryResultSchema = z.object({
|
|
81466
|
-
records: z.array(RecordViewSchema),
|
|
81467
|
-
nextCursor: z.string().nullable()
|
|
81468
|
-
});
|
|
81469
|
-
var RecordKindStateSchema = z.enum([
|
|
81470
|
-
"created",
|
|
81471
|
-
"unchanged",
|
|
81472
|
-
"updated"
|
|
81473
|
-
]);
|
|
81474
|
-
var DeclareKindResultSchema = z.object({
|
|
81475
|
-
kindId: z.number().int(),
|
|
81476
|
-
state: RecordKindStateSchema,
|
|
81477
|
-
createdIndexes: z.array(z.string())
|
|
81478
|
-
});
|
|
81479
|
-
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
81480
|
-
var SecretRefsList = z.array(z.string());
|
|
81481
|
-
/**
|
|
81482
|
-
* One op of a `transact`: the single-row writes, each on a kind of the caller.
|
|
81483
|
-
* All ops of one call share ONE database file and ONE `transactFamily`.
|
|
81484
|
-
*/
|
|
81485
|
-
var RecordTransactOpSchema = z.discriminatedUnion("op", [
|
|
81486
|
-
z.object({
|
|
81487
|
-
op: z.literal("put"),
|
|
81488
|
-
kind: RecordKindNameSchema,
|
|
81489
|
-
record: RecordInputSchema,
|
|
81490
|
-
ifRev: z.number().int().min(0).optional()
|
|
81491
|
-
}),
|
|
81492
|
-
z.object({
|
|
81493
|
-
op: z.literal("patch"),
|
|
81494
|
-
kind: RecordKindNameSchema,
|
|
81495
|
-
id: RecordIdSchema,
|
|
81496
|
-
data: RecordBodySchema,
|
|
81497
|
-
at: z.number().int().nullable().optional(),
|
|
81498
|
-
expiresAt: z.number().int().nullable().optional(),
|
|
81499
|
-
ifRev: z.number().int().min(1).optional()
|
|
81500
|
-
}),
|
|
81501
|
-
z.object({
|
|
81502
|
-
op: z.literal("delete"),
|
|
81503
|
-
kind: RecordKindNameSchema,
|
|
81504
|
-
id: RecordIdSchema
|
|
81505
|
-
})
|
|
81506
|
-
]);
|
|
81507
|
-
var RecordSecretRefsSchema = z.record(z.string(), z.record(z.string(), z.string()));
|
|
81508
|
-
var recordsCapability = {
|
|
81509
|
-
name: "records",
|
|
81510
|
-
scope: "system",
|
|
81511
|
-
mode: "singleton",
|
|
81512
|
-
internal: true,
|
|
81513
|
-
methods: {
|
|
81514
|
-
/** Reconcile this addon's kinds: create the catalog rows and the declared indexes. Additive only. */
|
|
81515
|
-
declareKinds: method(z.object({ kinds: z.record(RecordKindNameSchema, RecordKindDeclarationSchema) }), z.object({ kinds: z.record(z.string(), DeclareKindResultSchema) }), {
|
|
81516
|
-
kind: "mutation",
|
|
81517
|
-
auth: "admin"
|
|
81518
|
-
}),
|
|
81519
|
-
get: method(z.object({
|
|
81520
|
-
...KindShape,
|
|
81521
|
-
id: RecordIdSchema
|
|
81522
|
-
}), RecordViewSchema.nullable(), { auth: "admin" }),
|
|
81523
|
-
getMany: method(z.object({
|
|
81524
|
-
...KindShape,
|
|
81525
|
-
ids: z.array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
81526
|
-
}), z.array(RecordViewSchema), { auth: "admin" }),
|
|
81527
|
-
/** The keychain refs of the rows' secret fields, by id and concrete path. For the owner's `ctx.secrets`. */
|
|
81528
|
-
secretRefs: method(z.object({
|
|
81529
|
-
...KindShape,
|
|
81530
|
-
ids: z.array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
81531
|
-
}), RecordSecretRefsSchema, { auth: "admin" }),
|
|
81532
|
-
put: method(z.object({
|
|
81533
|
-
...KindShape,
|
|
81534
|
-
record: RecordInputSchema,
|
|
81535
|
-
/** Compare-and-set. `0` means "the row must not exist". */
|
|
81536
|
-
ifRev: z.number().int().min(0).optional()
|
|
81537
|
-
}), z.object({
|
|
81538
|
-
rev: z.number().int(),
|
|
81539
|
-
releasedRefs: SecretRefsList
|
|
81540
|
-
}), {
|
|
81541
|
-
kind: "mutation",
|
|
81542
|
-
auth: "admin"
|
|
81543
|
-
}),
|
|
81544
|
-
putMany: method(z.object({
|
|
81545
|
-
...KindShape,
|
|
81546
|
-
records: z.array(RecordInputSchema).min(1).max(RECORD_BATCH_MAX)
|
|
81547
|
-
}), z.object({
|
|
81548
|
-
count: z.number().int(),
|
|
81549
|
-
releasedRefs: SecretRefsList
|
|
81550
|
-
}), {
|
|
81551
|
-
kind: "mutation",
|
|
81552
|
-
auth: "admin"
|
|
81553
|
-
}),
|
|
81554
|
-
/** One-statement RFC 7396 merge: `null` removes a field; a merge never reads. */
|
|
81555
|
-
patch: method(z.object({
|
|
81556
|
-
...KindShape,
|
|
81557
|
-
id: RecordIdSchema,
|
|
81558
|
-
data: RecordBodySchema,
|
|
81559
|
-
at: z.number().int().nullable().optional(),
|
|
81560
|
-
expiresAt: z.number().int().nullable().optional(),
|
|
81561
|
-
ifRev: z.number().int().min(1).optional()
|
|
81562
|
-
}), z.object({
|
|
81563
|
-
rev: z.number().int(),
|
|
81564
|
-
releasedRefs: SecretRefsList
|
|
81565
|
-
}), {
|
|
81566
|
-
kind: "mutation",
|
|
81567
|
-
auth: "admin"
|
|
81568
|
-
}),
|
|
81569
|
-
delete: method(z.object({
|
|
81570
|
-
...KindShape,
|
|
81571
|
-
id: RecordIdSchema
|
|
81572
|
-
}), z.object({
|
|
81573
|
-
deleted: z.boolean(),
|
|
81574
|
-
secretRefs: SecretRefsList
|
|
81575
|
-
}), {
|
|
81576
|
-
kind: "mutation",
|
|
81577
|
-
auth: "admin"
|
|
81578
|
-
}),
|
|
81579
|
-
deleteMany: method(z.object({
|
|
81580
|
-
...KindShape,
|
|
81581
|
-
ids: z.array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
81582
|
-
}), z.object({
|
|
81583
|
-
deleted: z.number().int(),
|
|
81584
|
-
secretRefs: SecretRefsList
|
|
81585
|
-
}), {
|
|
81586
|
-
kind: "mutation",
|
|
81587
|
-
auth: "admin"
|
|
81588
|
-
}),
|
|
81589
|
-
query: method(RecordQueryInputSchema, RecordQueryResultSchema, { auth: "admin" }),
|
|
81590
|
-
count: method(z.object({
|
|
81591
|
-
...KindShape,
|
|
81592
|
-
...TimeWindowShape,
|
|
81593
|
-
where: RecordWhereSchema.optional()
|
|
81594
|
-
}), z.object({ count: z.number().int() }), { auth: "admin" }),
|
|
81595
|
-
histogram: method(z.object({
|
|
81596
|
-
...KindShape,
|
|
81597
|
-
deviceId: z.number().int().optional(),
|
|
81598
|
-
from: z.number(),
|
|
81599
|
-
to: z.number(),
|
|
81600
|
-
bucketMs: z.number().int().positive()
|
|
81601
|
-
}), z.object({ buckets: z.array(z.object({
|
|
81602
|
-
bucketStart: z.number(),
|
|
81603
|
-
count: z.number().int()
|
|
81604
|
-
})) }), { auth: "admin" }),
|
|
81605
|
-
/** Index-served only: every field must belong to ONE declared index. */
|
|
81606
|
-
aggregate: method(z.object({
|
|
81607
|
-
...KindShape,
|
|
81608
|
-
op: z.enum([
|
|
81609
|
-
"sum",
|
|
81610
|
-
"min",
|
|
81611
|
-
"max",
|
|
81612
|
-
"count"
|
|
81613
|
-
]),
|
|
81614
|
-
field: RecordFieldPathSchema.optional(),
|
|
81615
|
-
groupBy: RecordFieldPathSchema.optional(),
|
|
81616
|
-
where: RecordWhereSchema.optional()
|
|
81617
|
-
}), z.object({ rows: z.array(z.object({
|
|
81618
|
-
group: z.union([
|
|
81619
|
-
z.string(),
|
|
81620
|
-
z.number(),
|
|
81621
|
-
z.null()
|
|
81622
|
-
]),
|
|
81623
|
-
value: z.number().nullable()
|
|
81624
|
-
})) }), { auth: "admin" }),
|
|
81625
|
-
/** Batched (5 000 rows per statement, yielding between). Needs a predicate: there is no "delete all". */
|
|
81626
|
-
deleteWhere: method(z.object({
|
|
81627
|
-
...KindShape,
|
|
81628
|
-
deviceId: z.number().int().optional(),
|
|
81629
|
-
atBefore: z.number().optional(),
|
|
81630
|
-
where: RecordWhereSchema.optional()
|
|
81631
|
-
}), z.object({
|
|
81632
|
-
deleted: z.number().int(),
|
|
81633
|
-
secretRefs: SecretRefsList
|
|
81634
|
-
}), {
|
|
81635
|
-
kind: "mutation",
|
|
81636
|
-
auth: "admin"
|
|
81637
|
-
}),
|
|
81638
|
-
/**
|
|
81639
|
-
* Several single-row writes (put / patch / delete) in ONE SQLite transaction:
|
|
81640
|
-
* all land or none does. Every op's kind must sit in one file and share one
|
|
81641
|
-
* `transactFamily` (`records/transact-refused` otherwise). Results are in op order.
|
|
81642
|
-
*/
|
|
81643
|
-
transact: method(z.object({ ops: z.array(RecordTransactOpSchema).min(1).max(RECORD_BATCH_MAX) }), z.object({
|
|
81644
|
-
results: z.array(z.object({
|
|
81645
|
-
rev: z.number().int().nullable(),
|
|
81646
|
-
deleted: z.boolean()
|
|
81647
|
-
})),
|
|
81648
|
-
releasedRefs: SecretRefsList,
|
|
81649
|
-
secretRefs: SecretRefsList
|
|
81650
|
-
}), {
|
|
81651
|
-
kind: "mutation",
|
|
81652
|
-
auth: "admin"
|
|
81653
|
-
}),
|
|
81654
|
-
/** The D865 hook body: every kind of this addon declared `deviceRemoval: 'delete'`. */
|
|
81655
|
-
deleteDevice: method(z.object({
|
|
81656
|
-
deviceId: z.number().int(),
|
|
81657
|
-
kinds: z.array(RecordKindNameSchema).optional()
|
|
81658
|
-
}), z.object({
|
|
81659
|
-
deleted: z.record(z.string(), z.number().int()),
|
|
81660
|
-
secretRefs: SecretRefsList
|
|
81661
|
-
}), {
|
|
81662
|
-
kind: "mutation",
|
|
81663
|
-
auth: "admin"
|
|
81664
|
-
}),
|
|
81665
|
-
/** A monotonically increasing integer per kind (replaces "resume from the highest"). */
|
|
81666
|
-
allocateId: method(z.object(KindShape), z.object({ id: z.number().int() }), {
|
|
81667
|
-
kind: "mutation",
|
|
81668
|
-
auth: "admin"
|
|
81669
|
-
})
|
|
81670
|
-
}
|
|
81671
|
-
};
|
|
81672
|
-
/**
|
|
81673
81907
|
* record-entries - the ONE admin surface for every list of user-created entries
|
|
81674
81908
|
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
81675
81909
|
* declares as an ENTRY kind (`entry: { title }` in `defineRecordKinds`).
|
|
@@ -96391,20 +96625,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
96391
96625
|
access: "create",
|
|
96392
96626
|
role: "viewer"
|
|
96393
96627
|
},
|
|
96394
|
-
"broker.add": {
|
|
96395
|
-
capName: "broker",
|
|
96396
|
-
capScope: "system",
|
|
96397
|
-
addonId: null,
|
|
96398
|
-
access: "create",
|
|
96399
|
-
role: "admin"
|
|
96400
|
-
},
|
|
96401
|
-
"broker.get": {
|
|
96402
|
-
capName: "broker",
|
|
96403
|
-
capScope: "system",
|
|
96404
|
-
addonId: null,
|
|
96405
|
-
access: "view",
|
|
96406
|
-
role: "admin"
|
|
96407
|
-
},
|
|
96408
96628
|
"broker.getBrokerConfig": {
|
|
96409
96629
|
capName: "broker",
|
|
96410
96630
|
capScope: "system",
|
|
@@ -96412,20 +96632,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
96412
96632
|
access: "view",
|
|
96413
96633
|
role: "admin"
|
|
96414
96634
|
},
|
|
96415
|
-
"broker.getSettings": {
|
|
96416
|
-
capName: "broker",
|
|
96417
|
-
capScope: "system",
|
|
96418
|
-
addonId: null,
|
|
96419
|
-
access: "view",
|
|
96420
|
-
role: "admin"
|
|
96421
|
-
},
|
|
96422
|
-
"broker.getSettingsSchema": {
|
|
96423
|
-
capName: "broker",
|
|
96424
|
-
capScope: "system",
|
|
96425
|
-
addonId: null,
|
|
96426
|
-
access: "view",
|
|
96427
|
-
role: "admin"
|
|
96428
|
-
},
|
|
96429
96635
|
"broker.getState": {
|
|
96430
96636
|
capName: "broker",
|
|
96431
96637
|
capScope: "system",
|
|
@@ -96440,20 +96646,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
96440
96646
|
access: "view",
|
|
96441
96647
|
role: "admin"
|
|
96442
96648
|
},
|
|
96443
|
-
"broker.list": {
|
|
96444
|
-
capName: "broker",
|
|
96445
|
-
capScope: "system",
|
|
96446
|
-
addonId: null,
|
|
96447
|
-
access: "view",
|
|
96448
|
-
role: "admin"
|
|
96449
|
-
},
|
|
96450
|
-
"broker.listProviders": {
|
|
96451
|
-
capName: "broker",
|
|
96452
|
-
capScope: "system",
|
|
96453
|
-
addonId: null,
|
|
96454
|
-
access: "view",
|
|
96455
|
-
role: "admin"
|
|
96456
|
-
},
|
|
96457
96649
|
"broker.publish": {
|
|
96458
96650
|
capName: "broker",
|
|
96459
96651
|
capScope: "system",
|
|
@@ -96461,20 +96653,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
96461
96653
|
access: "create",
|
|
96462
96654
|
role: "admin"
|
|
96463
96655
|
},
|
|
96464
|
-
"broker.remove": {
|
|
96465
|
-
capName: "broker",
|
|
96466
|
-
capScope: "system",
|
|
96467
|
-
addonId: null,
|
|
96468
|
-
access: "delete",
|
|
96469
|
-
role: "admin"
|
|
96470
|
-
},
|
|
96471
|
-
"broker.setSettings": {
|
|
96472
|
-
capName: "broker",
|
|
96473
|
-
capScope: "system",
|
|
96474
|
-
addonId: null,
|
|
96475
|
-
access: "create",
|
|
96476
|
-
role: "admin"
|
|
96477
|
-
},
|
|
96478
96656
|
"broker.subscribe": {
|
|
96479
96657
|
capName: "broker",
|
|
96480
96658
|
capScope: "system",
|
|
@@ -96482,20 +96660,6 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
96482
96660
|
access: "create",
|
|
96483
96661
|
role: "admin"
|
|
96484
96662
|
},
|
|
96485
|
-
"broker.testConnection": {
|
|
96486
|
-
capName: "broker",
|
|
96487
|
-
capScope: "system",
|
|
96488
|
-
addonId: null,
|
|
96489
|
-
access: "create",
|
|
96490
|
-
role: "admin"
|
|
96491
|
-
},
|
|
96492
|
-
"broker.testSettings": {
|
|
96493
|
-
capName: "broker",
|
|
96494
|
-
capScope: "system",
|
|
96495
|
-
addonId: null,
|
|
96496
|
-
access: "create",
|
|
96497
|
-
role: "admin"
|
|
96498
|
-
},
|
|
96499
96663
|
"broker.unsubscribe": {
|
|
96500
96664
|
capName: "broker",
|
|
96501
96665
|
capScope: "system",
|
|
@@ -101459,6 +101623,13 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
101459
101623
|
access: "view",
|
|
101460
101624
|
role: "viewer"
|
|
101461
101625
|
},
|
|
101626
|
+
"pipelineAnalytics.getMediaLocationCensus": {
|
|
101627
|
+
capName: "pipeline-analytics",
|
|
101628
|
+
capScope: "device",
|
|
101629
|
+
addonId: null,
|
|
101630
|
+
access: "view",
|
|
101631
|
+
role: "admin"
|
|
101632
|
+
},
|
|
101462
101633
|
"pipelineAnalytics.getMediaReclaimStatus": {
|
|
101463
101634
|
capName: "pipeline-analytics",
|
|
101464
101635
|
capScope: "device",
|
|
@@ -111309,5 +111480,6 @@ z.object({
|
|
|
111309
111480
|
delay: z.number().nonnegative().optional(),
|
|
111310
111481
|
commands: z.record(z.string(), z.unknown())
|
|
111311
111482
|
});
|
|
111483
|
+
entryBody({ brokerId: z.string() });
|
|
111312
111484
|
//#endregion
|
|
111313
|
-
export { EMPTY_REMOTE_CONFIG as $, MINUTE_MS as $a, resolveMethodAuth as $i, decodeVectorBase64 as $n, SECRET_CLEAR as $o, localNetworkCapability as $r, secretTreeFromPaths as $s, SwitchStatusSchema as $t, CredentialTokenClaimsSchema as A, timedRunCapability as Aa, planComposition as Ai, catalogueIssues as An, DEVICE_STATUS_METHOD as Ao, groupTemplate as Ar, isDeviceConfigCap as As, PreferenceDeviceIdSchema as At, DEVICE_ID_FIELD as B, vectorStoreCapability as Ba, recordEntriesCapability as Bi, coreBlockAddonId as Bn, RECORD_DELETE_BATCH as Bo, isDefaultAppConnectionEndpoint as Br, mapSecretLeaves as Bs, RemoteConfigSchema as Bt, CORE_BLOCK_ADDON_PREFIX as C, storageOccupancyCapability as Ca, objectInputDeclaresRequiredDeviceId as Ci, buildDeviceEnrollmentLink as Cn, toExpressionValue as Co, featureForwards as Cr, expandCapMethods as Cs, MediaPlayerStatusSchema as Ct, ConditionMirror as D, supportedRuntimes as Da, parseColorInput as Di, cameraGridLayoutCapability as Dn, CALLER_STAMPED_CAPABILITIES as Do, formatMinutes as Dr, historyUnitFor as Ds, PREFERENCES_MAX_VALUE_BYTES as Dt, CatalogFileSchema as E, streamQualityLabel as Ea, parseAcceleratorFactsJson as Ei, calendarsCapability as En, BatchTooLargeError as Eo, formatDeviceRevoker as Er, historyItemFieldPath as Es, NetworkTunnelStartedDataSchema as Et, DAY_NAMES as F, validateCustomAddress as Fa, problemsBlockSave as Fi, colorCapability as Fn, InvalidRecordError as Fo, isAlertEpisodeSeverity as Fr, isSecretFieldView as Fs, REMOTE_MEDIA_COMMANDS as Ft, DataStoreDatabaseSchema as G, COMPOSER_ADDON_ID as Ga, replacedFieldKeys as Gi, coverCapability as Gn, RUNTIME_DEFAULTS as Go, isVoidInput as Gr, parseJsonObject as Gs, SchedulerSchema as Gt, DEVICE_SAN_CREDENTIAL_PREFIX as H, weekdayOfLocalDate as Ha, reducePoints as Hi, coreBlockIdFromAddonId as Hn, RECORD_SWEEP_INTERVAL_MS as Ho, isLocationEnabled as Hr, nodePin as Hs, STORAGE_ACCESS_FALLBACK as Ht, DEFAULT_HOLD_OVERRIDE as I, validateSchedulerInput as Ia, procedureAuthKey as Ii, compileScalarOverride as In, NoCallerError as Io, isAppLinkBase as Ir, isSecretMarker as Is, ROOT_BUCKET_KEY as It, DeviceStatusSchema as J, DEFAULT_HISTORY_RETENTION as Ja, resolveBucketMs as Ji, customRole as Jn, RecordKindDeclarationSchema as Jo, keychainCapability as Jr, readinessKey as Js, SsoBridgeClaimsSchema as Jt, DeclaredDevices as K, CompositionSchema as Ka, resolveActionVariables as Ki, createDeviceExtensionProvider as Kn, ReadinessRegistry as Ko, kebabToCamel as Kr, parseJsonUnknown as Ks, ScopedTokenSchema as Kt, DERIVED_CAMERA_SILENCED_CAP_NAMES as L, valveCapability as La, processTimeZoneOr as Li, composerCapability as Ln, PlaintextSecretError as Lo, isArrayOutputSchema as Lr, isSecretMarkerLike as Ls, RecordIntegrationInstances as Lt, DATABASE_SNAPSHOT_SUFFIX as M, timedRunSeconds as Ma, powerSourceCapability as Mi, checkTemplatePayload as Mn, FilterRequiredError as Mo, internalActionId as Mr, isKeychainStoredField as Ms, PreferenceValueSchema as Mt, DATABASE_SNAPSHOT_TIMEOUT_MS as N, userManagementCapability as Na, powerSourceLinkOfComposition as Ni, climateControlCapability as Nn, ForeignSecretMarkerError as No, interpolate as Nr, isReadingQuantity as Ns, QuantityUnitError as Nt, ControlStatusSchema as O, switchCapability as Oa, parseStreamParamsFormPatch as Oi, canonicalIconKey as On, DATAPLANE_SECRET_HEADER as Oo, gbToBytes as Or, hydrateSchema as Os, PROPOSAL_MIN_SPAN_MS as Ot, DATA_STORE_DATABASES as P, validateComposition as Pa, preconditionOf as Pi, collectWhenMirrorSources as Pn, HISTORY_DEFAULT_MIN_INTERVAL_MS as Po, isAlertEpisodeOpen as Pr, isSecretClear as Ps, RECORDING_SOURCE_CAMSTACK_ADDON as Pt, EMPTY_REMOTE_ASSUMED_STATE as Q, HelperMemberSchema as Qa, resolveLocationMode as Qi, declaredSeriesKind as Qn, RevConflictError as Qo, localDateOf as Qr, scopeKey as Qs, StorageMigrationJobSchema as Qt, DEVICE_ENROLLMENT_TTL_MS as R, vectorDimFromBase64 as Ra, proposeRunningThreshold as Ri, compositionFieldKey as Rn, RECORD_BATCH_MAX as Ro, isCollectionArrayMethod as Rr, isSecretRefOwnedBy as Rs, RecordingStatusSchema as Rt, CORE_BLOCKS_ADDON_ID as S, storageMigrationCapability as Sa, objectInputDeclaresAddonId as Si, buildCapabilityLookup as Sn, statisticCadenceMs as So, fanPresetsCapability as Sr, emitReadiness as Ss, MOTION_CLOSE_AFTER_MS as St, CalendarPreferencesSchema as T, streamCatalogCapability as Ta, orderMigrations as Ti, buildStreamParamsConfigSchema as Tn, BaseAddon as To, foldSnapshotByFunction as Tr, getDebugInterest as Ts, MigrationMetaSchema as Tt, DEVICE_SAN_USER_PREFIX as U, withLocationMode as Ua, remoteCapability as Ui, coreBlockSourceKind as Un, REDACTED_SECRET as Uo, isObjectInput as Ur, normalizeNodeId as Us, STREAM_PROFILE_META as Ut, DEVICE_NONCE_TTL_MS as V, vocabActionIdFor as Va, recordsCapability as Vi, coreBlockComposition as Vn, RECORD_SECRET_COLLECTION_PREFIX as Vo, isInternalActionId as Vr, nodeIdOfScopedKey as Vs, RunningStateStatusSchema as Vt, DEVICE_TOMBSTONE_RETENTION_MS as W, zoneOnlySite as Wa, remoteLayoutComponentsCapability as Wi, coreBlocksCapability as Wn, REMOVE_LEAF as Wo, isSameAddonId as Wr, normalizeSecretOwner as Ws, SchedulerError as Wt, DiscoveryProposalBodySchema as X, HISTORY_SLOW_MS as Xa, resolveCoreBlockFiles as Xi, databaseSnapshotCapability as Xn, RecordTooLargeError as Xo, legacyModeOf as Xr, resolveCapMount as Xs, StorageLocationModeSchema as Xt, DeviceTombstoneSchema as Y, HISTORY_FAST_MS as Ya, resolveCoreBlockEntry as Yi, dataStoreProviderCapability as Yn, RecordNotFoundError as Yo, legacyAutoLinkIds as Yr, recordSecretRef as Ys, StorageCleanupJobSchema as Yt, EMPTY_AUTOMATION_STATE as Z, HOUR_MS as Za, resolveHubAddressRoles as Zi, declarationOwnerNodeId as Zn, RecordUniqueViolationError as Zo, lifecycleJobSchema as Zr, resolveSecretMarkers as Zs, StorageLocationTypeSchema as Zt, CAMSTACK_APP_LINK_ORIGIN as _, siteZoneKey as _a, normalizeActionUnits as _i, backupCapability as _n, nextLocalMidnight as _o, expandContainer as _r, defineAddonMigrations as _s, KeychainResetRecordSchema as _t, AGENT_MDNS_TXT_KEYS as a, runSteps as aa, transformSecretWrite as ac, looseSchema as ai, actionSourceCapability as an, compositionItemFieldPath as ao, deviceHistoryCapability as ar, asJsonObject as as, FieldClaimModeSchema as at, COMPOSED_ITEM_FIXED_FIELDS as b, storageAdminCapability as ba, normalizeStepTargets as bi, brightnessCapability as bn, planResetTier as bo, fanControlCapability as br, defineRecordKinds as bs, METHOD_ACCESS_MAP as bt, ActionStepSchema as c, scopesAllowAddon as ca, DeviceFeature as cc, mediaPlayerCapability as ci, addonPagesCapability as cn, createStatefulExpressionMemory as co, deviceRunsCapability as cr, assertTransactScope as cs, HISTORY_CATALOG as ct, AlertSchema as d, settingsStoreCapability as da, errMsg as dc, methodRefusal as di, alertEpisodeId as dn, evaluateStatistic as do, enumerateInferenceDevices as dr, collectSecretConfigKeys as ds, HUB_MDNS_TXT_KEYS as dt, resolveMutate as ea, secretTreeFromSchema as ec, locationIconKey as ei, TemplateKindSchema as en, buildFfmpegArgs as eo, defineExtensionSlotProvider as er, StoredRecordKindDeclarationSchema as es, FAN_CAPTURE_FIELDS as et, AutomationStateDocSchema as f, sharedActuatorFeatures as fa, EventCategory as fc, metricsProviderCapability as fi, alertEpisodePayload as fn, helperMembers as fo, enumerateItemArrayFields as fr, collectSecretLeaves as fs, HvacModeSchema as ft, CAMERA_SWITCH_ORDER as g, siteFor as ga, nextOccurrence as gi, authProviderCapability as gn, isHistoryHelper as go, evictionPolicyOfLocation as gr, customAction as gs, KeychainAuditEntrySchema as gt, BatteryStatusSchema as h, shortHostname as ha, motionCapability as hi, armRemovalReconcile as hn, isForwardInputRef as ho, evaluateWhenTree as hr, createEvent as hs, KEYCHAIN_RESET_TRIGGER_ACTOR as ht, AGENT_MDNS_SERVICE_TYPE as i, runFanOut as ia, toSecretFieldView as ic, logLevelAtMost as ii, actionEffect as in, compositionFeatureEnabled as io, deviceExtensionCapability as ir, WELL_KNOWN_TAB_MAP as is, FanPresetSchema as it, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as j, timedRunLimitOf as ja, platformProbeCapability as ji, checkRoleAddress as jn, DeclarationRefusedError as jo, integrationInstancesCapability as jr, isEvent as js, PreferenceNamespaceSchema as jt, CoreBlockSchema as k, templateCapability as ka, pickAppLinkHub as ki, capUnitResolver as kn, DEVICE_SETTINGS_CONTRIBUTION_METHODS as ko, groupCommandsCapability as kr, isDebugChannelName as ks, PowerSourceInfoSchema as kt, ActionTargetResolver as l, scopesAllowDeviceCap as la, DeviceRole as lc, mediaPlayerFeaturesOfRoles as li, addonSettingsCapability as ln, disarmRoseMemory as lo, deviceStateCapability as lr, assertValidDeclaration as ls, HISTORY_ITEM_CATALOG as lt, BaseDevice as m, sharedColorModes as ma, modeMayWrite as mi, appendTrace as mn, integrateReading as mo, evaluateCompositionField as mr, collectZodSecretPaths as ms, INTERNAL_ACTION_PREFIX as mt, ACTUATOR_METHODS as n, resolveRunnerId as na, sleep as nc, lockDoorLinkOfComposition as ni, UNATTRIBUTED_BUCKET_KEY as nn, composedDeviceRef as no, describeComposableCaps as nr, UnindexedFilterError as ns, FanControlStatusSchema as nt, ALL_CAPABILITY_DEFINITIONS as o, runtimeStatePolicyFor as oa, userError as oc, mayReadLocation as oi, actionsCapability as on, compositionSliceKey as oo, deviceManagerCapability as or, asNumber as os, FieldClaimSchema as ot, BUILTIN_REMOTE_COMPONENTS as p, sharedActuatorMethods as pa, migrationsCapability as pi, alertsCapability as pn, historyRetentionFromSettings as po, enumerateSchemaFields as pr, collectSecretMarkerRefs as ps, IDLE_ACTION_STATUS as pt, DeviceRunSchema as q, DAY_MS as qa, resolveAppConnections as qi, customKeyOfRole as qn, ReadinessTimeoutError as qo, keychainAdminCapability as qr, parseSecretRef as qs, ServerNameSchema as qt, ACTUATOR_TEMPLATE_IDS as r, resolveStepArgs as ra, toNodeId as rc, logDestinationCapability as ri, UserRecordSchema as rn, composedDeviceStableId as ro, deviceCredentialsCapability as rr, UnknownRecordKindError as rs, FanDirectionSchema as rt, ActionError as s, schedulersCapability as sa, withoutCallerStamp as sc, mayWriteToLocation as si, addonIdOfActionId as sn, compositionSourceKey as so, deviceRemovalHookCapability as sr, asString$1 as ss, GroupCommandResultSchema as st, ACTION_TARGET_INVALIDATION_EVENTS as t, resolveNotificationTapAddress as ta, secretViewsOf as tc, lockControlCapability as ti, TokenScopeSchema as tn, cloneStatefulExpressionMemory as to, deriveBatteryPresence as tr, TransactRefusedError as ts, FIRST_LEVEL_MACRO_CLASSES as tt, ActionVariableSchema as u, scoreRuntimes as ua, DeviceType as uc, memoizePinnedFfmpeg as ui, addonWidgetsCapability as un, evaluateDerivative as uo, deviceStatusCapability as ur, buildSecretRef as us, HUB_MDNS_SERVICE_TYPE as ut, CAP_NAMES_WITH_STATUS as v, snapshotCapability as va, normalizeCapStep as vi, bareAddonId as vn, openReset as vo, expressionContainsBuiltinCall as vr, defineCustomActions as vs, LOG_LEVEL_RANK as vt, CREDENTIAL_TOKEN_AUDIENCE as w, storageProviderCapability as wa, occurrenceOn as wi, buildDeviceSignatureMessage as wn, wattMillisecondsToKwh as wo, filesystemBrowseCapability as wr, formatSecretScope as ws, MigrationLedgerEntrySchema as wt, COMPOSER_RUNNER_ID as x, storageCapability as xa, normalizeUnit as xi, buildActionSteps as xn, planStatisticTier as xo, fanOutTargets as xr, emitDownForOwnedCaps as xs, MINUTES_PER_DAY as xt, CATALOG_LANGS as y, splitTranslationRef as ya, normalizeCoreBlockWrite as yi, batteryCapability as yn, openStatistic as yo, extractNestedAddonId as yr, defineEntryKind as ys, LegacyStorageLocationDefaultSchema as yt, DEVICE_HISTORY_ENERGY_KEY as z, vectorIndexDimConflictError as za, ptzAutotrackCapability as zi, compositionSourceRefs as zn, RECORD_BATCH_MAX_BYTES as zo, isCredentialTokenPayload as zr, makeSecretMarker as zs, RemoteAssumedStateSchema as zt };
|
|
111485
|
+
export { EMPTY_REMOTE_CONFIG as $, DEFAULT_HISTORY_RETENTION as $a, resolveCoreBlockEntry as $i, databaseSnapshotCapability as $n, RecordKindDeclarationSchema as $o, legacyAutoLinkIds as $r, readinessKey as $s, StorageLocationTypeSchema as $t, CredentialTokenClaimsSchema as A, streamQualityLabel as Aa, parseAcceleratorFactsJson as Ai, canonicalIconKey as An, BaseAddon as Ao, formatDeviceRevoker as Ar, getDebugInterest as As, PackageRequiresSchema as At, DEVICE_ID_FIELD as B, validateCustomAddress as Ba, procedureAuthKey as Bi, composerCapability as Bn, InvalidRecordError as Bo, isAppLinkBase as Br, isSecretFieldView as Bs, RecordingStatusSchema as Bt, CORE_BLOCK_ADDON_PREFIX as C, splitTranslationRef as Ca, normalizeCoreBlockWrite as Ci, buildActionSteps as Cn, openReset as Co, extractNestedAddonId as Cr, defineCustomActions as Cs, MOTION_CLOSE_AFTER_MS as Ct, ConditionMirror as D, storageOccupancyCapability as Da, objectInputDeclaresRequiredDeviceId as Di, buildStreamParamsConfigSchema as Dn, statisticCadenceMs as Do, featureForwards as Dr, emitReadiness as Ds, NetworkTunnelStartedDataSchema as Dt, CatalogFileSchema as E, storageMigrationCapability as Ea, objectInputDeclaresAddonId as Ei, buildDeviceSignatureMessage as En, planStatisticTier as Eo, fanPresetsCapability as Er, emitDownForOwnedCaps as Es, MigrationMetaSchema as Et, DAY_NAMES as F, timedRunLimitOf as Fa, platformProbeCapability as Fi, climateControlCapability as Fn, DEVICE_STATUS_METHOD as Fo, integrationInstancesCapability as Fr, isDeviceConfigCap as Fs, QuantityUnitError as Ft, DataStoreDatabaseSchema as G, vectorStoreCapability as Ga, recordsCapability as Gi, coreBlockIdFromAddonId as Gn, RECORD_DELETE_BATCH as Go, isInternalActionId as Gr, mapSecretLeaves as Gs, STREAM_PROFILE_META as Gt, DEVICE_SAN_CREDENTIAL_PREFIX as H, valveCapability as Ha, proposeRunningThreshold as Hi, compositionSourceRefs as Hn, PlaintextSecretError as Ho, isCollectionArrayMethod as Hr, isSecretMarkerLike as Hs, RemoteConfigSchema as Ht, DEFAULT_HOLD_OVERRIDE as I, timedRunSeconds as Ia, powerSourceCapability as Ii, collectWhenMirrorSources as In, DeclarationRefusedError as Io, internalActionId as Ir, isEvent as Is, RECORDING_SOURCE_CAMSTACK_ADDON as It, DeviceStatusSchema as J, withLocationMode as Ja, remoteLayoutComponentsCapability as Ji, coverCapability as Jn, REDACTED_SECRET as Jo, isSameAddonId as Jr, normalizeNodeId as Js, ScopedTokenSchema as Jt, DeclaredDevices as K, vocabActionIdFor as Ka, reducePoints as Ki, coreBlockSourceKind as Kn, RECORD_SECRET_COLLECTION_PREFIX as Ko, isLocationEnabled as Kr, nodeIdOfScopedKey as Ks, SchedulerError as Kt, DERIVED_CAMERA_SILENCED_CAP_NAMES as L, unmetRequirements as La, powerSourceLinkOfComposition as Li, colorCapability as Ln, FilterRequiredError as Lo, interpolate as Lr, isKeychainStoredField as Ls, REMOTE_MEDIA_COMMANDS as Lt, DATABASE_SNAPSHOT_SUFFIX as M, switchCapability as Ma, parseStreamParamsFormPatch as Mi, catalogueIssues as Mn, CALLER_STAMPED_CAPABILITIES as Mo, gbToBytes as Mr, historyUnitFor as Ms, PreferenceDeviceIdSchema as Mt, DATABASE_SNAPSHOT_TIMEOUT_MS as N, templateCapability as Na, pickAppLinkHub as Ni, checkRoleAddress as Nn, DATAPLANE_SECRET_HEADER as No, groupCommandsCapability as Nr, hydrateSchema as Ns, PreferenceNamespaceSchema as Nt, ControlStatusSchema as O, storageProviderCapability as Oa, occurrenceOn as Oi, calendarsCapability as On, toExpressionValue as Oo, filesystemBrowseCapability as Or, expandCapMethods as Os, PREFERENCES_MAX_VALUE_BYTES as Ot, DATA_STORE_DATABASES as P, timedRunCapability as Pa, planComposition as Pi, checkTemplatePayload as Pn, DEVICE_SETTINGS_CONTRIBUTION_METHODS as Po, groupTemplate as Pr, isDebugChannelName as Ps, PreferenceValueSchema as Pt, EMPTY_REMOTE_ASSUMED_STATE as Q, DAY_MS as Qa, resolveBucketMs as Qi, dataStoreProviderCapability as Qn, ReadinessTimeoutError as Qo, keychainCapability as Qr, parseSecretRef as Qs, StorageLocationModeSchema as Qt, DEVICE_ENROLLMENT_TTL_MS as R, userManagementCapability as Ra, preconditionOf as Ri, compareVersions as Rn, ForeignSecretMarkerError as Ro, isAlertEpisodeOpen as Rr, isReadingQuantity as Rs, ROOT_BUCKET_KEY as Rt, CORE_BLOCKS_ADDON_ID as S, snapshotCapability as Sa, normalizeCapStep as Si, brightnessCapability as Sn, nextLocalMidnight as So, expressionContainsBuiltinCall as Sr, defineAddonMigrations as Ss, MINUTES_PER_DAY as St, CalendarPreferencesSchema as T, storageCapability as Ta, normalizeUnit as Ti, buildDeviceEnrollmentLink as Tn, planResetTier as To, fanOutTargets as Tr, defineRecordKinds as Ts, MigrationLedgerEntrySchema as Tt, DEVICE_SAN_USER_PREFIX as U, vectorDimFromBase64 as Ua, ptzAutotrackCapability as Ui, coreBlockAddonId as Un, RECORD_BATCH_MAX as Uo, isCredentialTokenPayload as Ur, isSecretRefOwnedBy as Us, RunningStateStatusSchema as Ut, DEVICE_NONCE_TTL_MS as V, validateSchedulerInput as Va, processTimeZoneOr as Vi, compositionFieldKey as Vn, NoCallerError as Vo, isArrayOutputSchema as Vr, isSecretMarker as Vs, RemoteAssumedStateSchema as Vt, DEVICE_TOMBSTONE_RETENTION_MS as W, vectorIndexDimConflictError as Wa, recordEntriesCapability as Wi, coreBlockComposition as Wn, RECORD_BATCH_MAX_BYTES as Wo, isDefaultAppConnectionEndpoint as Wr, makeSecretMarker as Ws, STORAGE_ACCESS_FALLBACK as Wt, DiscoveryProposalBodySchema as X, COMPOSER_ADDON_ID as Xa, resolveActionVariables as Xi, customKeyOfRole as Xn, RUNTIME_DEFAULTS as Xo, kebabToCamel as Xr, parseJsonObject as Xs, SsoBridgeClaimsSchema as Xt, DeviceTombstoneSchema as Y, zoneOnlySite as Ya, replacedFieldKeys as Yi, createDeviceExtensionProvider as Yn, REMOVE_LEAF as Yo, isVoidInput as Yr, normalizeSecretOwner as Ys, ServerNameSchema as Yt, EMPTY_AUTOMATION_STATE as Z, CompositionSchema as Za, resolveAppConnections as Zi, customRole as Zn, ReadinessRegistry as Zo, keychainAdminCapability as Zr, parseJsonUnknown as Zs, StorageCleanupJobSchema as Zt, CAMSTACK_APP_LINK_ORIGIN as _, sharedActuatorMethods as _a, EventCategory as _c, migrationsCapability as _i, armRemovalReconcile as _n, helperMembers as _o, enumerateSchemaFields as _r, collectSecretLeaves as _s, KeychainResetRecordSchema as _t, AGENT_MDNS_TXT_KEYS as a, resolveNotificationTapAddress as aa, secretTreeFromSchema as ac, lockControlCapability as ai, UserRecordSchema as an, buildFfmpegArgs as ao, describeComposableCaps as ar, StoredRecordKindDeclarationSchema as as, FieldClaimModeSchema as at, COMPOSED_ITEM_FIXED_FIELDS as b, siteFor as ba, nextOccurrence as bi, bareAddonId as bn, isForwardInputRef as bo, evictionPolicyOfLocation as br, createEvent as bs, METHOD_ACCESS_MAP as bt, ActionStepSchema as c, runFanOut as ca, toNodeId as cc, logLevelAtMost as ci, actionsCapability as cn, composedDeviceStableId as co, deviceExtensionCapability as cr, UnknownRecordKindError as cs, HISTORY_CATALOG as ct, AlertSchema as d, schedulersCapability as da, userError as dc, mayWriteToLocation as di, addonSettingsCapability as dn, compositionSliceKey as do, deviceRemovalHookCapability as dr, asNumber as ds, HUB_MDNS_TXT_KEYS as dt, resolveCoreBlockFiles as ea, recordSecretRef as ec, legacyModeOf as ei, StorageMigrationJobSchema as en, HISTORY_FAST_MS as eo, declarationOwnerNodeId as er, RecordNotFoundError as es, FAN_CAPTURE_FIELDS as et, AutomationStateDocSchema as f, scopesAllowAddon as fa, withoutCallerStamp as fc, mediaPlayerCapability as fi, addonWidgetsCapability as fn, compositionSourceKey as fo, deviceRunsCapability as fr, asString$1 as fs, HvacModeSchema as ft, CAMERA_SWITCH_ORDER as g, sharedActuatorFeatures as ga, errMsg as gc, metricsProviderCapability as gi, appendTrace as gn, evaluateStatistic as go, enumerateItemArrayFields as gr, collectSecretConfigKeys as gs, KeychainAuditEntrySchema as gt, BatteryStatusSchema as h, settingsStoreCapability as ha, DeviceType as hc, methodRefusal as hi, alertsCapability as hn, evaluateDerivative as ho, enumerateInferenceDevices as hr, buildSecretRef as hs, KEYCHAIN_RESET_TRIGGER_ACTOR as ht, AGENT_MDNS_SERVICE_TYPE as i, resolveMutate as ia, secretTreeFromPaths as ic, locationIconKey as ii, UNATTRIBUTED_BUCKET_KEY as in, MINUTE_MS as io, deriveBatteryPresence as ir, SECRET_CLEAR as is, FanPresetSchema as it, DATABASE_SNAPSHOT_PARTIAL_SUFFIX as j, supportedRuntimes as ja, parseColorInput as ji, capUnitResolver as jn, BatchTooLargeError as jo, formatMinutes as jr, historyItemFieldPath as js, PowerSourceInfoSchema as jt, CoreBlockSchema as k, streamCatalogCapability as ka, orderMigrations as ki, cameraGridLayoutCapability as kn, wattMillisecondsToKwh as ko, foldSnapshotByFunction as kr, formatSecretScope as ks, PROPOSAL_MIN_SPAN_MS as kt, ActionTargetResolver as l, runSteps as la, toSecretFieldView as lc, looseSchema as li, addonIdOfActionId as ln, compositionFeatureEnabled as lo, deviceHistoryCapability as lr, WELL_KNOWN_TAB_MAP as ls, HISTORY_ITEM_CATALOG as lt, BaseDevice as m, scoreRuntimes as ma, DeviceRole as mc, memoizePinnedFfmpeg as mi, alertEpisodePayload as mn, disarmRoseMemory as mo, deviceStatusCapability as mr, assertValidDeclaration as ms, INTERNAL_ACTION_PREFIX as mt, ACTUATOR_METHODS as n, resolveLocationMode as na, resolveSecretMarkers as nc, localDateOf as ni, TemplateKindSchema as nn, HOUR_MS as no, decodeVectorBase64 as nr, RecordUniqueViolationError as ns, FanControlStatusSchema as nt, ALL_CAPABILITY_DEFINITIONS as o, resolveRunnerId as oa, secretViewsOf as oc, lockDoorLinkOfComposition as oi, actionEffect as on, cloneStatefulExpressionMemory as oo, describeUnmet as or, TransactRefusedError as os, FieldClaimSchema as ot, BUILTIN_REMOTE_COMPONENTS as p, scopesAllowDeviceCap as pa, DeviceFeature as pc, mediaPlayerFeaturesOfRoles as pi, alertEpisodeId as pn, createStatefulExpressionMemory as po, deviceStateCapability as pr, assertTransactScope as ps, IDLE_ACTION_STATUS as pt, DeviceRunSchema as q, weekdayOfLocalDate as qa, remoteCapability as qi, coreBlocksCapability as qn, RECORD_SWEEP_INTERVAL_MS as qo, isObjectInput as qr, nodePin as qs, SchedulerSchema as qt, ACTUATOR_TEMPLATE_IDS as r, resolveMethodAuth as ra, scopeKey as rc, localNetworkCapability as ri, TokenScopeSchema as rn, HelperMemberSchema as ro, defineExtensionSlotProvider as rr, RevConflictError as rs, FanDirectionSchema as rt, ActionError as s, resolveStepArgs as sa, sleep as sc, logDestinationCapability as si, actionSourceCapability as sn, composedDeviceRef as so, deviceCredentialsCapability as sr, UnindexedFilterError as ss, GroupCommandResultSchema as st, ACTION_TARGET_INVALIDATION_EVENTS as t, resolveHubAddressRoles as ta, resolveCapMount as tc, lifecycleJobSchema as ti, SwitchStatusSchema as tn, HISTORY_SLOW_MS as to, declaredSeriesKind as tr, RecordTooLargeError as ts, FIRST_LEVEL_MACRO_CLASSES as tt, ActionVariableSchema as u, runtimeStatePolicyFor as ua, transformSecretWrite as uc, mayReadLocation as ui, addonPagesCapability as un, compositionItemFieldPath as uo, deviceManagerCapability as ur, asJsonObject as us, HUB_MDNS_SERVICE_TYPE as ut, CAP_NAMES_WITH_STATUS as v, sharedColorModes as va, modeMayWrite as vi, authProviderCapability as vn, historyRetentionFromSettings as vo, evaluateCompositionField as vr, collectSecretMarkerRefs as vs, LOG_LEVEL_RANK as vt, CREDENTIAL_TOKEN_AUDIENCE as w, storageAdminCapability as wa, normalizeStepTargets as wi, buildCapabilityLookup as wn, openStatistic as wo, fanControlCapability as wr, defineEntryKind as ws, MediaPlayerStatusSchema as wt, COMPOSER_RUNNER_ID as x, siteZoneKey as xa, normalizeActionUnits as xi, batteryCapability as xn, isHistoryHelper as xo, expandContainer as xr, customAction as xs, MIGRATION_API_V1_METHODS as xt, CATALOG_LANGS as y, shortHostname as ya, motionCapability as yi, backupCapability as yn, integrateReading as yo, evaluateWhenTree as yr, collectZodSecretPaths as ys, LegacyStorageLocationDefaultSchema as yt, DEVICE_HISTORY_ENERGY_KEY as z, validateComposition as za, problemsBlockSave as zi, compileScalarOverride as zn, HISTORY_DEFAULT_MIN_INTERVAL_MS as zo, isAlertEpisodeSeverity as zr, isSecretClear as zs, RecordIntegrationInstances as zt };
|