@camstack/addon-export-alexa 1.2.145 → 1.2.147
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/export-alexa.addon.js +1065 -27
- package/dist/export-alexa.addon.mjs +1065 -27
- package/lambda-template/broker.js +27 -7
- package/lambda-template/debug-trace.js +2 -1
- package/package.json +1 -1
|
@@ -34,7 +34,7 @@ let node_path = require("node:path");
|
|
|
34
34
|
node_path = __toESM(node_path, 1);
|
|
35
35
|
require("node:child_process");
|
|
36
36
|
require("node:zlib");
|
|
37
|
-
//#region ../types/dist/event-category-
|
|
37
|
+
//#region ../types/dist/event-category-BvOFi6PY.mjs
|
|
38
38
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
39
39
|
EventCategory["SystemBoot"] = "system.boot";
|
|
40
40
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -98,6 +98,24 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
98
98
|
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
99
99
|
*/
|
|
100
100
|
EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
|
|
101
|
+
/**
|
|
102
|
+
* A runner whose addon refused to start with a typed reason (D877) - parked
|
|
103
|
+
* in `refused`, never counted by the crash breaker, retried on operator
|
|
104
|
+
* action. One event per refusal.
|
|
105
|
+
*/
|
|
106
|
+
EventCategory["AddonRunnerRefused"] = "addon.runner-refused";
|
|
107
|
+
/**
|
|
108
|
+
* A runner settled on a state (D877): `running` (READY), `crashed`, `failed` or
|
|
109
|
+
* `refused`. In-process telemetry for the boot check (re-evaluate while any
|
|
110
|
+
* runner is still pending) and the alert centre (close a recovered runner).
|
|
111
|
+
*/
|
|
112
|
+
EventCategory["ProcessStateChanged"] = "process.state-changed";
|
|
113
|
+
/**
|
|
114
|
+
* The node's one-shot runner boot check (D877): planned runners against the
|
|
115
|
+
* process service, `degraded` when any is failed, refused or missing. The
|
|
116
|
+
* alert centre turns it into one alert and a direct critical push.
|
|
117
|
+
*/
|
|
118
|
+
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
101
119
|
EventCategory["AddonError"] = "addon.error";
|
|
102
120
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
103
121
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -5422,7 +5440,7 @@ var ZodIssueCode = {
|
|
|
5422
5440
|
var ZodFirstPartyTypeKind;
|
|
5423
5441
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5424
5442
|
//#endregion
|
|
5425
|
-
//#region ../types/dist/sleep-
|
|
5443
|
+
//#region ../types/dist/sleep-BegKjwUu.mjs
|
|
5426
5444
|
/**
|
|
5427
5445
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5428
5446
|
* window to float samples (D455).
|
|
@@ -5539,7 +5557,7 @@ function isKeychainStoredField(field) {
|
|
|
5539
5557
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5540
5558
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5541
5559
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5542
|
-
function isRecord$
|
|
5560
|
+
function isRecord$5(value) {
|
|
5543
5561
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5544
5562
|
}
|
|
5545
5563
|
function makeSecretMarker(ref) {
|
|
@@ -5550,12 +5568,12 @@ function makeSecretMarker(ref) {
|
|
|
5550
5568
|
}
|
|
5551
5569
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5552
5570
|
function isSecretMarker(value) {
|
|
5553
|
-
if (!isRecord$
|
|
5571
|
+
if (!isRecord$5(value)) return false;
|
|
5554
5572
|
const ref = value["$secret"];
|
|
5555
5573
|
return typeof ref === "string" && ref.length > 0;
|
|
5556
5574
|
}
|
|
5557
5575
|
function isSecretClear(value) {
|
|
5558
|
-
return isRecord$
|
|
5576
|
+
return isRecord$5(value) && value["$secretClear"] === true;
|
|
5559
5577
|
}
|
|
5560
5578
|
/**
|
|
5561
5579
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6165,7 +6183,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6165
6183
|
}
|
|
6166
6184
|
};
|
|
6167
6185
|
var KEEP = { kind: "keep" };
|
|
6168
|
-
function isRecord$
|
|
6186
|
+
function isRecord$4(value) {
|
|
6169
6187
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6170
6188
|
}
|
|
6171
6189
|
function defaultMintId() {
|
|
@@ -6178,7 +6196,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6178
6196
|
return out;
|
|
6179
6197
|
}
|
|
6180
6198
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6181
|
-
else if (isRecord$
|
|
6199
|
+
else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6182
6200
|
return out;
|
|
6183
6201
|
}
|
|
6184
6202
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6233,7 +6251,7 @@ function rowId(row, idKey) {
|
|
|
6233
6251
|
return null;
|
|
6234
6252
|
}
|
|
6235
6253
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6236
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6254
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
|
|
6237
6255
|
if (!Array.isArray(incoming)) {
|
|
6238
6256
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6239
6257
|
return {
|
|
@@ -6249,7 +6267,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6249
6267
|
const kept = /* @__PURE__ */ new Set();
|
|
6250
6268
|
const rows = [];
|
|
6251
6269
|
for (const row of incoming) {
|
|
6252
|
-
if (!isRecord$
|
|
6270
|
+
if (!isRecord$4(row)) {
|
|
6253
6271
|
rows.push(row);
|
|
6254
6272
|
continue;
|
|
6255
6273
|
}
|
|
@@ -6274,7 +6292,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6274
6292
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6275
6293
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6276
6294
|
case "object": {
|
|
6277
|
-
if (!isRecord$
|
|
6295
|
+
if (!isRecord$4(incoming)) {
|
|
6278
6296
|
if (incoming === void 0) return KEEP;
|
|
6279
6297
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6280
6298
|
return {
|
|
@@ -6282,7 +6300,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6282
6300
|
value: incoming
|
|
6283
6301
|
};
|
|
6284
6302
|
}
|
|
6285
|
-
const storedObj = isRecord$
|
|
6303
|
+
const storedObj = isRecord$4(stored) ? stored : {};
|
|
6286
6304
|
return {
|
|
6287
6305
|
kind: "value",
|
|
6288
6306
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6405,7 +6423,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6405
6423
|
value: items
|
|
6406
6424
|
};
|
|
6407
6425
|
}
|
|
6408
|
-
if (isRecord$
|
|
6426
|
+
if (isRecord$4(v)) {
|
|
6409
6427
|
const out = {};
|
|
6410
6428
|
for (const [k, child] of Object.entries(v)) {
|
|
6411
6429
|
const s = substitute(child);
|
|
@@ -7328,7 +7346,7 @@ var BaseAddon = class {
|
|
|
7328
7346
|
if (!ctx) return;
|
|
7329
7347
|
const addonId = ctx.id;
|
|
7330
7348
|
setImmediate(() => {
|
|
7331
|
-
ctx.api.addons
|
|
7349
|
+
ctx.api.addons.restartAddon.mutate({ addonId }).then(() => {
|
|
7332
7350
|
ctx.logger.info("addon auto-restart triggered by restart-required setting change", { meta: { changedFields: patchKeys.filter((k) => restartKeys.has(k)) } });
|
|
7333
7351
|
}).catch((err) => {
|
|
7334
7352
|
ctx.logger.error("addon auto-restart failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
|
|
@@ -7822,6 +7840,89 @@ var PeerBytesTicketSchema = object({
|
|
|
7822
7840
|
*/
|
|
7823
7841
|
declaredBytes: number().int().nonnegative().nullable()
|
|
7824
7842
|
});
|
|
7843
|
+
/** Limits and names of `ctx.records` (D881). One authority; the engine and the facade read it. */
|
|
7844
|
+
/** The files a kind may live in. `history` is device-history's (D850), never records. */
|
|
7845
|
+
var RECORD_DATABASES = ["settings", "events"];
|
|
7846
|
+
/** The classes of a kind: the `@durable` vocabulary, one authority (replaces the annotation). */
|
|
7847
|
+
var RECORD_CLASSES = [
|
|
7848
|
+
"config",
|
|
7849
|
+
"ledger",
|
|
7850
|
+
"audit",
|
|
7851
|
+
"mirror",
|
|
7852
|
+
"ephemeral"
|
|
7853
|
+
];
|
|
7854
|
+
var RECORD_DEFAULT_MAX_DATA_BYTES = 64 * 1024;
|
|
7855
|
+
var RECORD_MAX_DATA_BYTES = 1024 * 1024;
|
|
7856
|
+
var RECORD_BATCH_MAX = 1e3;
|
|
7857
|
+
var RECORD_QUERY_MAX = 1e3;
|
|
7858
|
+
/**
|
|
7859
|
+
* Record kinds (D881): the declaration an addon makes of one kind of fact, the
|
|
7860
|
+
* Zod row schema that describes it, and the helper that turns the two into the
|
|
7861
|
+
* JSON the engine stores.
|
|
7862
|
+
*
|
|
7863
|
+
* A kind is declared ONCE, next to the code that owns it, and the engine's
|
|
7864
|
+
* reconciler creates its indexes - nothing creates DDL at runtime from a write.
|
|
7865
|
+
* Everything the generic machinery needs (secret fields, the entry descriptor)
|
|
7866
|
+
* is DERIVED from the Zod schema: `.meta({ secret: true })` marks a credential,
|
|
7867
|
+
* never a field name (D879).
|
|
7868
|
+
*/
|
|
7869
|
+
/** A JSON field path: `trackId`, `auth.accessToken`. Charset-restricted: it is rendered into DDL. */
|
|
7870
|
+
var RecordFieldPathSchema = string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}(\.[A-Za-z_][A-Za-z0-9_]{0,63}){0,3}$/);
|
|
7871
|
+
var RecordIndexSchema = object({
|
|
7872
|
+
name: string().regex(/^[a-z][a-z0-9_]{0,31}$/),
|
|
7873
|
+
fields: array(RecordFieldPathSchema).min(1).max(4),
|
|
7874
|
+
unique: boolean().optional()
|
|
7875
|
+
}).strict();
|
|
7876
|
+
var RecordRetentionSchema = union([
|
|
7877
|
+
object({
|
|
7878
|
+
ttlMs: number().int().positive(),
|
|
7879
|
+
from: _enum(["at", "write"])
|
|
7880
|
+
}).strict(),
|
|
7881
|
+
object({
|
|
7882
|
+
maxRows: number().int().positive().optional(),
|
|
7883
|
+
maxRowsPerDevice: number().int().positive().optional()
|
|
7884
|
+
}).strict().refine((r) => r.maxRows !== void 0 || r.maxRowsPerDevice !== void 0, { message: "name maxRows, maxRowsPerDevice or both" }),
|
|
7885
|
+
object({
|
|
7886
|
+
owner: string().min(1),
|
|
7887
|
+
reason: string().min(1)
|
|
7888
|
+
}).strict(),
|
|
7889
|
+
object({ none: string().min(1) }).strict()
|
|
7890
|
+
]);
|
|
7891
|
+
/** The descriptor a generic entries UI reads (D881 "generic entries"). */
|
|
7892
|
+
var EntryDescriptorSchema = object({
|
|
7893
|
+
title: string().min(1),
|
|
7894
|
+
/** The record body field shown as the entry's name. */
|
|
7895
|
+
nameField: string().min(1),
|
|
7896
|
+
/** JSON Schema of the entry body; `secret: true` marks a password field. */
|
|
7897
|
+
fields: record(string(), unknown())
|
|
7898
|
+
}).strict();
|
|
7899
|
+
/** What crosses the wire and sits in the engine's catalog: JSON only, no Zod. */
|
|
7900
|
+
var RecordKindDeclarationSchema = object({
|
|
7901
|
+
database: _enum(RECORD_DATABASES).default("settings"),
|
|
7902
|
+
class: _enum(RECORD_CLASSES),
|
|
7903
|
+
writeTrigger: string().min(1),
|
|
7904
|
+
device: _enum([
|
|
7905
|
+
"required",
|
|
7906
|
+
"optional",
|
|
7907
|
+
"none"
|
|
7908
|
+
]).default("none"),
|
|
7909
|
+
at: _enum(["required", "none"]).default("none"),
|
|
7910
|
+
indexes: array(RecordIndexSchema).max(8).default([]),
|
|
7911
|
+
retention: RecordRetentionSchema,
|
|
7912
|
+
deviceRemoval: _enum(["delete", "none"]).default("none"),
|
|
7913
|
+
maxDataBytes: number().int().positive().max(RECORD_MAX_DATA_BYTES).default(RECORD_DEFAULT_MAX_DATA_BYTES),
|
|
7914
|
+
/** Derived from the Zod schema; never written by hand. */
|
|
7915
|
+
secretPaths: array(string().min(1)).default([]),
|
|
7916
|
+
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7917
|
+
secretArrayKeys: record(string(), string()).default({}),
|
|
7918
|
+
/** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
|
|
7919
|
+
adoptsFrom: string().min(1).optional(),
|
|
7920
|
+
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
7921
|
+
transactFamily: string().min(1).optional(),
|
|
7922
|
+
entry: EntryDescriptorSchema.optional()
|
|
7923
|
+
}).strict();
|
|
7924
|
+
/** The kind names: lower-case, dash separated, short enough for an index name. */
|
|
7925
|
+
var RecordKindNameSchema = string().regex(/^[a-z][a-z0-9-]{0,47}$/);
|
|
7825
7926
|
/** Shared Zod schemas used across streaming capabilities. */
|
|
7826
7927
|
var CamProfileSchema = _enum([
|
|
7827
7928
|
"high",
|
|
@@ -8309,7 +8410,7 @@ object({
|
|
|
8309
8410
|
params: record(string(), union([string(), number()])).optional()
|
|
8310
8411
|
});
|
|
8311
8412
|
//#endregion
|
|
8312
|
-
//#region ../types/dist/err-msg
|
|
8413
|
+
//#region ../types/dist/err-msg-BXKzRBwg.mjs
|
|
8313
8414
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
8314
8415
|
DeviceType["Camera"] = "camera";
|
|
8315
8416
|
DeviceType["Hub"] = "hub";
|
|
@@ -8401,6 +8502,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
8401
8502
|
* native PetKit (`nodepetkit` `FeederDevice`), reusable by other feeder
|
|
8402
8503
|
* integrations sharing the same food/desiccant/hopper surface. */
|
|
8403
8504
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
8505
|
+
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
8506
|
+
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
8507
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations. */
|
|
8508
|
+
DeviceType["Dishwasher"] = "dishwasher";
|
|
8404
8509
|
return DeviceType;
|
|
8405
8510
|
}({});
|
|
8406
8511
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -8658,7 +8763,7 @@ function errMsg(err) {
|
|
|
8658
8763
|
return String(err);
|
|
8659
8764
|
}
|
|
8660
8765
|
//#endregion
|
|
8661
|
-
//#region ../types/dist/composition-
|
|
8766
|
+
//#region ../types/dist/composition-CB6PMT9p.mjs
|
|
8662
8767
|
/**
|
|
8663
8768
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
8664
8769
|
*
|
|
@@ -13327,8 +13432,13 @@ var AlertSeveritySchema = _enum([
|
|
|
13327
13432
|
"info",
|
|
13328
13433
|
"success",
|
|
13329
13434
|
"warning",
|
|
13330
|
-
"error"
|
|
13435
|
+
"error",
|
|
13436
|
+
"critical"
|
|
13331
13437
|
]);
|
|
13438
|
+
var AlertActionSchema = object({
|
|
13439
|
+
label: string(),
|
|
13440
|
+
href: string().optional()
|
|
13441
|
+
});
|
|
13332
13442
|
var AlertStatusSchema = _enum([
|
|
13333
13443
|
"active",
|
|
13334
13444
|
"in-progress",
|
|
@@ -13346,6 +13456,7 @@ var AlertSchema = object({
|
|
|
13346
13456
|
severity: AlertSeveritySchema,
|
|
13347
13457
|
title: string(),
|
|
13348
13458
|
message: string(),
|
|
13459
|
+
action: AlertActionSchema.optional(),
|
|
13349
13460
|
status: AlertStatusSchema,
|
|
13350
13461
|
progress: number().optional(),
|
|
13351
13462
|
read: boolean(),
|
|
@@ -15775,6 +15886,41 @@ var ComposableCapabilitiesSchema = object({ caps: array(object({
|
|
|
15775
15886
|
keyField: string()
|
|
15776
15887
|
}).optional()
|
|
15777
15888
|
})) });
|
|
15889
|
+
/**
|
|
15890
|
+
* The report of a one-shot "move this owner's plaintext secrets into the
|
|
15891
|
+
* keychain" run (D878). COUNTS only - never a value, never a ref.
|
|
15892
|
+
*
|
|
15893
|
+
* The owner runs it on its own rows, through its own write path; an operator
|
|
15894
|
+
* script (`scripts/hub/migrate-raw-secrets.ts`) calls the owner's cap method.
|
|
15895
|
+
* Dry run (`apply: false`) reports what WOULD move and changes nothing.
|
|
15896
|
+
*/
|
|
15897
|
+
var RawSecretMigrationInputSchema = object({
|
|
15898
|
+
/** `false` (the default of the script) = report only. */
|
|
15899
|
+
apply: boolean() });
|
|
15900
|
+
var RawSecretMigrationReportSchema = object({
|
|
15901
|
+
apply: boolean(),
|
|
15902
|
+
/** Rows that can carry a secret (a profile, an enrolment). */
|
|
15903
|
+
rows: number().int(),
|
|
15904
|
+
/** Rows whose secret was plaintext when the run started. */
|
|
15905
|
+
raw: number().int(),
|
|
15906
|
+
/** Rows that already held a keychain marker when the run started. */
|
|
15907
|
+
markers: number().int(),
|
|
15908
|
+
/** Plaintext rows moved by THIS run (always 0 on a dry run). */
|
|
15909
|
+
migrated: number().int(),
|
|
15910
|
+
/** Plaintext rows left in place because the move or its read-back failed. */
|
|
15911
|
+
failed: number().int(),
|
|
15912
|
+
/** After the run: rows still holding plaintext. */
|
|
15913
|
+
remainingRaw: number().int(),
|
|
15914
|
+
/** After the run: markers the keychain could not resolve right now. */
|
|
15915
|
+
unresolvedMarkers: number().int(),
|
|
15916
|
+
/**
|
|
15917
|
+
* A second, redundant copy of the secrets' rows that the run found (and, on
|
|
15918
|
+
* `apply`, deleted after verifying the first). Owners with a single copy omit it.
|
|
15919
|
+
*/
|
|
15920
|
+
redundantCopies: number().int().optional(),
|
|
15921
|
+
/** True when nothing is raw and every marker resolves. */
|
|
15922
|
+
verified: boolean()
|
|
15923
|
+
});
|
|
15778
15924
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
15779
15925
|
* agent is the reason placement is not fixed to the hub. */
|
|
15780
15926
|
var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
|
|
@@ -16001,6 +16147,9 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
16001
16147
|
}), SettingsUpdateResultSchema, {
|
|
16002
16148
|
kind: "mutation",
|
|
16003
16149
|
auth: "admin"
|
|
16150
|
+
}), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
16151
|
+
kind: "mutation",
|
|
16152
|
+
auth: "admin"
|
|
16004
16153
|
}), method(object({}), object({ libs: array(object({
|
|
16005
16154
|
filePath: string(),
|
|
16006
16155
|
content: string()
|
|
@@ -16263,6 +16412,222 @@ id: union([string(), number()]) }), {
|
|
|
16263
16412
|
kind: "mutation",
|
|
16264
16413
|
auth: "admin"
|
|
16265
16414
|
});
|
|
16415
|
+
/**
|
|
16416
|
+
* records - an addon's own facts and documents (D881): ledgers, audit rows,
|
|
16417
|
+
* config documents, mirrors. The third storage API next to `ctx.settings`
|
|
16418
|
+
* (operator intent, D870) and device-history (numbers over time, D850).
|
|
16419
|
+
*
|
|
16420
|
+
* Who the OWNER is: `callerAddonId`, stamped by the transport on a call that
|
|
16421
|
+
* crossed a process and stated by a hub in-process caller (`ctx.records` does
|
|
16422
|
+
* that with the addon id closed over). It is deliberately NOT in any input
|
|
16423
|
+
* schema, so a session can never supply it, and a call with no stamp is refused
|
|
16424
|
+
* `records/no-caller`. A kind is readable and writable only by its owner; other
|
|
16425
|
+
* addons go through the owner's capability.
|
|
16426
|
+
*
|
|
16427
|
+
* Every read is three-way: a row, `null`, or the call THROWS. A failed read is
|
|
16428
|
+
* never `[]`. Secret fields are never on the wire: a read shows the
|
|
16429
|
+
* redaction token, `secretRefs` hands the owner's `ctx.secrets` the refs it
|
|
16430
|
+
* resolves itself, and a write may carry only a keychain marker bound to the
|
|
16431
|
+
* row's own ref.
|
|
16432
|
+
*
|
|
16433
|
+
* Internal: addons reach it through `ctx.records`, never directly.
|
|
16434
|
+
*/
|
|
16435
|
+
var RecordIdSchema = string().min(1).max(256);
|
|
16436
|
+
/** A JSON object body. Size is the engine's check (`maxDataBytes`), not a schema's. */
|
|
16437
|
+
var RecordBodySchema = record(string(), unknown());
|
|
16438
|
+
var RecordInputSchema = object({
|
|
16439
|
+
id: RecordIdSchema,
|
|
16440
|
+
/** The device this row belongs to (D865 removal, per-device reads). */
|
|
16441
|
+
deviceId: number().int().optional(),
|
|
16442
|
+
/** The domain clock, ms: observed / created / opened. */
|
|
16443
|
+
at: number().int().optional(),
|
|
16444
|
+
/** Producer-set expiry, ms. Refused on a kind whose retention is an engine TTL. */
|
|
16445
|
+
expiresAt: number().int().optional(),
|
|
16446
|
+
data: RecordBodySchema
|
|
16447
|
+
});
|
|
16448
|
+
var RecordViewSchema = object({
|
|
16449
|
+
id: string(),
|
|
16450
|
+
deviceId: number().int().nullable(),
|
|
16451
|
+
at: number().nullable(),
|
|
16452
|
+
expiresAt: number().nullable(),
|
|
16453
|
+
rev: number().int(),
|
|
16454
|
+
updatedAt: number(),
|
|
16455
|
+
data: RecordBodySchema
|
|
16456
|
+
});
|
|
16457
|
+
/** Declared index fields only. Anything else does not compile, by design. */
|
|
16458
|
+
var RecordWhereSchema = record(RecordFieldPathSchema, union([
|
|
16459
|
+
string(),
|
|
16460
|
+
number(),
|
|
16461
|
+
boolean(),
|
|
16462
|
+
object({ in: array(union([
|
|
16463
|
+
string(),
|
|
16464
|
+
number(),
|
|
16465
|
+
boolean()
|
|
16466
|
+
])).min(1).max(RECORD_BATCH_MAX) }),
|
|
16467
|
+
object({
|
|
16468
|
+
gt: union([string(), number()]).optional(),
|
|
16469
|
+
gte: union([string(), number()]).optional(),
|
|
16470
|
+
lt: union([string(), number()]).optional(),
|
|
16471
|
+
lte: union([string(), number()]).optional()
|
|
16472
|
+
}).refine((r) => Object.keys(r).length > 0, { message: "name at least one bound" })
|
|
16473
|
+
]));
|
|
16474
|
+
var KindShape = { kind: RecordKindNameSchema };
|
|
16475
|
+
var TimeWindowShape = {
|
|
16476
|
+
deviceId: number().int().optional(),
|
|
16477
|
+
atFrom: number().optional(),
|
|
16478
|
+
atTo: number().optional()
|
|
16479
|
+
};
|
|
16480
|
+
var RecordQueryInputSchema = object({
|
|
16481
|
+
...KindShape,
|
|
16482
|
+
...TimeWindowShape,
|
|
16483
|
+
where: RecordWhereSchema.optional(),
|
|
16484
|
+
/** Without `where`: `at` (default for a kind with a clock) or `id`. With `where` the order is the index's. */
|
|
16485
|
+
order: _enum(["at", "id"]).optional(),
|
|
16486
|
+
desc: boolean().optional(),
|
|
16487
|
+
limit: number().int().min(1).max(RECORD_QUERY_MAX).default(100),
|
|
16488
|
+
/** Opaque keyset cursor from a previous answer. There is no offset. */
|
|
16489
|
+
cursor: string().min(1).optional()
|
|
16490
|
+
});
|
|
16491
|
+
var RecordQueryResultSchema = object({
|
|
16492
|
+
records: array(RecordViewSchema),
|
|
16493
|
+
nextCursor: string().nullable()
|
|
16494
|
+
});
|
|
16495
|
+
var RecordKindStateSchema = _enum([
|
|
16496
|
+
"created",
|
|
16497
|
+
"unchanged",
|
|
16498
|
+
"updated"
|
|
16499
|
+
]);
|
|
16500
|
+
var DeclareKindResultSchema = object({
|
|
16501
|
+
kindId: number().int(),
|
|
16502
|
+
state: RecordKindStateSchema,
|
|
16503
|
+
createdIndexes: array(string()),
|
|
16504
|
+
/** The boot guard: the kind is empty while its legacy table still holds rows. */
|
|
16505
|
+
adoptionPending: object({
|
|
16506
|
+
legacyTable: string(),
|
|
16507
|
+
legacyRows: number().int()
|
|
16508
|
+
}).nullable()
|
|
16509
|
+
});
|
|
16510
|
+
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16511
|
+
var SecretRefsList = array(string());
|
|
16512
|
+
var RecordSecretRefsSchema = record(string(), record(string(), string()));
|
|
16513
|
+
method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
|
|
16514
|
+
kind: "mutation",
|
|
16515
|
+
auth: "admin"
|
|
16516
|
+
}), method(object({
|
|
16517
|
+
...KindShape,
|
|
16518
|
+
id: RecordIdSchema
|
|
16519
|
+
}), RecordViewSchema.nullable(), { auth: "admin" }), method(object({
|
|
16520
|
+
...KindShape,
|
|
16521
|
+
ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
16522
|
+
}), array(RecordViewSchema), { auth: "admin" }), method(object({
|
|
16523
|
+
...KindShape,
|
|
16524
|
+
ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
16525
|
+
}), RecordSecretRefsSchema, { auth: "admin" }), method(object({
|
|
16526
|
+
...KindShape,
|
|
16527
|
+
record: RecordInputSchema,
|
|
16528
|
+
/** Compare-and-set. `0` means "the row must not exist". */
|
|
16529
|
+
ifRev: number().int().min(0).optional()
|
|
16530
|
+
}), object({
|
|
16531
|
+
rev: number().int(),
|
|
16532
|
+
releasedRefs: SecretRefsList
|
|
16533
|
+
}), {
|
|
16534
|
+
kind: "mutation",
|
|
16535
|
+
auth: "admin"
|
|
16536
|
+
}), method(object({
|
|
16537
|
+
...KindShape,
|
|
16538
|
+
records: array(RecordInputSchema).min(1).max(RECORD_BATCH_MAX)
|
|
16539
|
+
}), object({
|
|
16540
|
+
count: number().int(),
|
|
16541
|
+
releasedRefs: SecretRefsList
|
|
16542
|
+
}), {
|
|
16543
|
+
kind: "mutation",
|
|
16544
|
+
auth: "admin"
|
|
16545
|
+
}), method(object({
|
|
16546
|
+
...KindShape,
|
|
16547
|
+
id: RecordIdSchema,
|
|
16548
|
+
data: RecordBodySchema,
|
|
16549
|
+
at: number().int().nullable().optional(),
|
|
16550
|
+
expiresAt: number().int().nullable().optional(),
|
|
16551
|
+
ifRev: number().int().min(1).optional()
|
|
16552
|
+
}), object({
|
|
16553
|
+
rev: number().int(),
|
|
16554
|
+
releasedRefs: SecretRefsList
|
|
16555
|
+
}), {
|
|
16556
|
+
kind: "mutation",
|
|
16557
|
+
auth: "admin"
|
|
16558
|
+
}), method(object({
|
|
16559
|
+
...KindShape,
|
|
16560
|
+
id: RecordIdSchema
|
|
16561
|
+
}), object({
|
|
16562
|
+
deleted: boolean(),
|
|
16563
|
+
secretRefs: SecretRefsList
|
|
16564
|
+
}), {
|
|
16565
|
+
kind: "mutation",
|
|
16566
|
+
auth: "admin"
|
|
16567
|
+
}), method(object({
|
|
16568
|
+
...KindShape,
|
|
16569
|
+
ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
16570
|
+
}), object({
|
|
16571
|
+
deleted: number().int(),
|
|
16572
|
+
secretRefs: SecretRefsList
|
|
16573
|
+
}), {
|
|
16574
|
+
kind: "mutation",
|
|
16575
|
+
auth: "admin"
|
|
16576
|
+
}), method(RecordQueryInputSchema, RecordQueryResultSchema, { auth: "admin" }), method(object({
|
|
16577
|
+
...KindShape,
|
|
16578
|
+
...TimeWindowShape,
|
|
16579
|
+
where: RecordWhereSchema.optional()
|
|
16580
|
+
}), object({ count: number().int() }), { auth: "admin" }), method(object({
|
|
16581
|
+
...KindShape,
|
|
16582
|
+
deviceId: number().int().optional(),
|
|
16583
|
+
from: number(),
|
|
16584
|
+
to: number(),
|
|
16585
|
+
bucketMs: number().int().positive()
|
|
16586
|
+
}), object({ buckets: array(object({
|
|
16587
|
+
bucketStart: number(),
|
|
16588
|
+
count: number().int()
|
|
16589
|
+
})) }), { auth: "admin" }), method(object({
|
|
16590
|
+
...KindShape,
|
|
16591
|
+
op: _enum([
|
|
16592
|
+
"sum",
|
|
16593
|
+
"min",
|
|
16594
|
+
"max",
|
|
16595
|
+
"count"
|
|
16596
|
+
]),
|
|
16597
|
+
field: RecordFieldPathSchema.optional(),
|
|
16598
|
+
groupBy: RecordFieldPathSchema.optional(),
|
|
16599
|
+
where: RecordWhereSchema.optional()
|
|
16600
|
+
}), object({ rows: array(object({
|
|
16601
|
+
group: union([
|
|
16602
|
+
string(),
|
|
16603
|
+
number(),
|
|
16604
|
+
_null()
|
|
16605
|
+
]),
|
|
16606
|
+
value: number().nullable()
|
|
16607
|
+
})) }), { auth: "admin" }), method(object({
|
|
16608
|
+
...KindShape,
|
|
16609
|
+
deviceId: number().int().optional(),
|
|
16610
|
+
atBefore: number().optional(),
|
|
16611
|
+
where: RecordWhereSchema.optional()
|
|
16612
|
+
}), object({
|
|
16613
|
+
deleted: number().int(),
|
|
16614
|
+
secretRefs: SecretRefsList
|
|
16615
|
+
}), {
|
|
16616
|
+
kind: "mutation",
|
|
16617
|
+
auth: "admin"
|
|
16618
|
+
}), method(object({
|
|
16619
|
+
deviceId: number().int(),
|
|
16620
|
+
kinds: array(RecordKindNameSchema).optional()
|
|
16621
|
+
}), object({
|
|
16622
|
+
deleted: record(string(), number().int()),
|
|
16623
|
+
secretRefs: SecretRefsList
|
|
16624
|
+
}), {
|
|
16625
|
+
kind: "mutation",
|
|
16626
|
+
auth: "admin"
|
|
16627
|
+
}), method(object(KindShape), object({ id: number().int() }), {
|
|
16628
|
+
kind: "mutation",
|
|
16629
|
+
auth: "admin"
|
|
16630
|
+
});
|
|
16266
16631
|
/** One table of the settings database. */
|
|
16267
16632
|
var StorageTableSchema = object({
|
|
16268
16633
|
/** The table's full name, e.g. `recorder:addon-settings` or `addon-device-settings`. */
|
|
@@ -16275,6 +16640,28 @@ var StorageTableSchema = object({
|
|
|
16275
16640
|
/** Declared by an addon since this engine process started (a running addon claims it). */
|
|
16276
16641
|
declaredThisBoot: boolean()
|
|
16277
16642
|
});
|
|
16643
|
+
/** One declared record kind (D881) as System -> Data shows it. */
|
|
16644
|
+
var StorageKindSchema = object({
|
|
16645
|
+
owner: string(),
|
|
16646
|
+
kind: string(),
|
|
16647
|
+
database: _enum(["settings", "events"]),
|
|
16648
|
+
class: string(),
|
|
16649
|
+
state: _enum([
|
|
16650
|
+
"declared",
|
|
16651
|
+
"orphaned",
|
|
16652
|
+
"dropped"
|
|
16653
|
+
]),
|
|
16654
|
+
/** `null` when the caller asked for no counts (`counts: false`). */
|
|
16655
|
+
rows: number().int().nonnegative().nullable(),
|
|
16656
|
+
/** Rows x the average size of a sample; null for an empty kind. */
|
|
16657
|
+
bytesEstimate: number().int().nonnegative().nullable(),
|
|
16658
|
+
writeTrigger: string(),
|
|
16659
|
+
retention: RecordRetentionSchema,
|
|
16660
|
+
/** `true` when the kind is an entry kind (the generic entries UI lists it). */
|
|
16661
|
+
entry: boolean(),
|
|
16662
|
+
/** The whole declaration, secret paths and entry descriptor included (the entries service builds its handle from it). */
|
|
16663
|
+
declaration: RecordKindDeclarationSchema
|
|
16664
|
+
});
|
|
16278
16665
|
method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
|
|
16279
16666
|
collection: string().min(1),
|
|
16280
16667
|
expectRows: number().int().nonnegative()
|
|
@@ -16284,6 +16671,87 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
16284
16671
|
}), {
|
|
16285
16672
|
kind: "mutation",
|
|
16286
16673
|
auth: "admin"
|
|
16674
|
+
}), method(object({
|
|
16675
|
+
owner: string().min(1).optional(),
|
|
16676
|
+
/** `false` skips the per-kind row count (a catalog read only). Default true. */
|
|
16677
|
+
counts: boolean().optional()
|
|
16678
|
+
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
16679
|
+
owner: string().min(1),
|
|
16680
|
+
kind: RecordKindNameSchema
|
|
16681
|
+
}), RecordQueryResultSchema, { auth: "admin" }), method(object({
|
|
16682
|
+
owner: string().min(1),
|
|
16683
|
+
kind: RecordKindNameSchema,
|
|
16684
|
+
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
16685
|
+
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
16686
|
+
complete: boolean().optional()
|
|
16687
|
+
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
16688
|
+
kind: "mutation",
|
|
16689
|
+
auth: "admin"
|
|
16690
|
+
}), method(object({
|
|
16691
|
+
collection: string().min(1),
|
|
16692
|
+
cursor: string().optional(),
|
|
16693
|
+
limit: number().int().min(1).max(1e3).optional()
|
|
16694
|
+
}), object({
|
|
16695
|
+
rows: array(object({
|
|
16696
|
+
id: string(),
|
|
16697
|
+
data: record(string(), unknown())
|
|
16698
|
+
})),
|
|
16699
|
+
nextCursor: string().nullable()
|
|
16700
|
+
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
16701
|
+
/**
|
|
16702
|
+
* record-entries - the ONE admin surface for every list of user-created entries
|
|
16703
|
+
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
16704
|
+
* declares as an ENTRY kind (`entry: { title }` in `defineRecordKinds`).
|
|
16705
|
+
*
|
|
16706
|
+
* The UI is generic. `listEntryKinds` hands it, per kind, the JSON Schema of
|
|
16707
|
+
* the entry body with `secret: true` on every credential field, so a password
|
|
16708
|
+
* field is derived from the schema and never from a name. `putEntry` takes the
|
|
16709
|
+
* redaction token for an untouched secret (the stored value is kept), a string
|
|
16710
|
+
* for a new one, and the clear instruction to remove one. A read never carries
|
|
16711
|
+
* a secret value, and a locked keychain refuses the write with
|
|
16712
|
+
* `records/secret-unavailable` instead of storing plaintext.
|
|
16713
|
+
*
|
|
16714
|
+
* Hub-only, served in-process (it acts for each entry's owner on the keychain).
|
|
16715
|
+
*/
|
|
16716
|
+
var EntryKindInfoSchema = object({
|
|
16717
|
+
owner: string(),
|
|
16718
|
+
kind: RecordKindNameSchema,
|
|
16719
|
+
title: string(),
|
|
16720
|
+
nameField: string(),
|
|
16721
|
+
/** JSON Schema of the body; `secret: true` marks a password field. */
|
|
16722
|
+
fields: record(string(), unknown()),
|
|
16723
|
+
secretPaths: array(string()),
|
|
16724
|
+
rows: number().int().nonnegative()
|
|
16725
|
+
});
|
|
16726
|
+
var EntryViewSchema = object({
|
|
16727
|
+
id: RecordIdSchema,
|
|
16728
|
+
name: string(),
|
|
16729
|
+
rev: number().int(),
|
|
16730
|
+
updatedAt: number(),
|
|
16731
|
+
/** Secret fields hold the redaction token. */
|
|
16732
|
+
data: RecordBodySchema
|
|
16733
|
+
});
|
|
16734
|
+
var EntryAddress = {
|
|
16735
|
+
owner: string().min(1),
|
|
16736
|
+
kind: RecordKindNameSchema
|
|
16737
|
+
};
|
|
16738
|
+
method(object({}), object({ kinds: array(EntryKindInfoSchema) }), { auth: "admin" }), method(object({ ...EntryAddress }), object({ entries: array(EntryViewSchema) }), { auth: "admin" }), method(object({
|
|
16739
|
+
...EntryAddress,
|
|
16740
|
+
id: RecordIdSchema.optional(),
|
|
16741
|
+
data: RecordBodySchema,
|
|
16742
|
+
ifRev: number().int().min(1).optional()
|
|
16743
|
+
}), object({
|
|
16744
|
+
id: string(),
|
|
16745
|
+
rev: number().int()
|
|
16746
|
+
}), {
|
|
16747
|
+
kind: "mutation",
|
|
16748
|
+
auth: "admin"
|
|
16749
|
+
}), method(object({
|
|
16750
|
+
...EntryAddress,
|
|
16751
|
+
id: RecordIdSchema
|
|
16752
|
+
}), object({ deleted: boolean() }), {
|
|
16753
|
+
kind: "mutation",
|
|
16754
|
+
auth: "admin"
|
|
16287
16755
|
});
|
|
16288
16756
|
/**
|
|
16289
16757
|
* `keychain` — the hub's encrypted store of secret values (D787).
|
|
@@ -17133,7 +17601,11 @@ DeviceType.Hub, DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int
|
|
|
17133
17601
|
});
|
|
17134
17602
|
/**
|
|
17135
17603
|
* `device-adoption` — generic discovery + adoption surface,
|
|
17136
|
-
* system-scoped
|
|
17604
|
+
* system-scoped collection (one provider per integration addon), routed
|
|
17605
|
+
* by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
|
|
17606
|
+
* pin model as `connection-test`. The admin UI keeps using
|
|
17607
|
+
* `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
|
|
17608
|
+
* successor to `ha-discovery`:
|
|
17137
17609
|
* keyed by `integrationId` (the addon resolves integrationId → broker
|
|
17138
17610
|
* internally) rather than a connection-specific `brokerId`, and it
|
|
17139
17611
|
* REUSES the shared `DiscoveredChildDevice` candidate type from
|
|
@@ -39330,6 +39802,9 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
39330
39802
|
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
39331
39803
|
kind: "mutation",
|
|
39332
39804
|
auth: "admin"
|
|
39805
|
+
}), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
39806
|
+
kind: "mutation",
|
|
39807
|
+
auth: "admin"
|
|
39333
39808
|
}), method(ProfileRefInputSchema, _void(), {
|
|
39334
39809
|
kind: "mutation",
|
|
39335
39810
|
auth: "admin"
|
|
@@ -49769,6 +50244,41 @@ var ServerRollbackInfoSchema = object({
|
|
|
49769
50244
|
atMs: number(),
|
|
49770
50245
|
reason: string()
|
|
49771
50246
|
});
|
|
50247
|
+
/**
|
|
50248
|
+
* The runner boot check (D877): the runners this node PLANNED (hub: one per
|
|
50249
|
+
* `resolveRunnerId` over its forked addons; agent: the runners its process
|
|
50250
|
+
* service holds, because only the hub plans) against the states the process
|
|
50251
|
+
* service reports. Kept in memory, recomputed by the same one-shot check after
|
|
50252
|
+
* every boot, served on `getServerPackageStatus`.
|
|
50253
|
+
*
|
|
50254
|
+
* `failed` is the D6 breaker's terminal state, `refused` a deterministic Init
|
|
50255
|
+
* refusal (an addon that said "I will not start, and here is why"), `missing` a
|
|
50256
|
+
* planned runner the process service has no entry for.
|
|
50257
|
+
*/
|
|
50258
|
+
var RunnerRefusalSchema = object({
|
|
50259
|
+
runnerId: string(),
|
|
50260
|
+
addonIds: array(string()),
|
|
50261
|
+
reason: string()
|
|
50262
|
+
});
|
|
50263
|
+
var RunnerBootCheckSchema = object({
|
|
50264
|
+
checkedAtMs: number(),
|
|
50265
|
+
/** Runners planned for this node. */
|
|
50266
|
+
expected: number(),
|
|
50267
|
+
/** Planned runners whose process is `running`. */
|
|
50268
|
+
running: number(),
|
|
50269
|
+
failed: array(string()),
|
|
50270
|
+
refused: array(RunnerRefusalSchema),
|
|
50271
|
+
missing: array(string()),
|
|
50272
|
+
/**
|
|
50273
|
+
* Runners still on their way: `starting`, or `crashed` waiting on a backoff
|
|
50274
|
+
* respawn. The check is FINAL only when this is empty; until then nothing is
|
|
50275
|
+
* pushed and the verdict is re-evaluated on the next runner state change.
|
|
50276
|
+
* Optional for version skew (absent = settled).
|
|
50277
|
+
*/
|
|
50278
|
+
pending: array(string()).optional(),
|
|
50279
|
+
/** True when the plan is the hub's (`missing` is then meaningful); false on an agent. */
|
|
50280
|
+
planKnown: boolean()
|
|
50281
|
+
});
|
|
49772
50282
|
var ServerPackageStatusSchema = object({
|
|
49773
50283
|
/** Root package name (`@camstack/server` on the hub). */
|
|
49774
50284
|
packageName: string(),
|
|
@@ -49831,7 +50341,14 @@ var ServerPackageStatusSchema = object({
|
|
|
49831
50341
|
* for version skew: an older provider's payload simply omits it, and an
|
|
49832
50342
|
* absent wrapper is unknown — never `native`.
|
|
49833
50343
|
*/
|
|
49834
|
-
wrapper: WrapperIdentitySchema.optional()
|
|
50344
|
+
wrapper: WrapperIdentitySchema.optional(),
|
|
50345
|
+
/**
|
|
50346
|
+
* What this node PLANNED to run against what its process service reports
|
|
50347
|
+
* (D877). Absent until the one-shot boot check has run (~60 s after boot) and
|
|
50348
|
+
* on a provider that predates it. Absent is "not checked yet", never "all
|
|
50349
|
+
* well": a consumer that needs the answer treats it as pending.
|
|
50350
|
+
*/
|
|
50351
|
+
runners: RunnerBootCheckSchema.optional()
|
|
49835
50352
|
});
|
|
49836
50353
|
var ServerUpdateCheckResultSchema = object({
|
|
49837
50354
|
packageName: string(),
|
|
@@ -49882,6 +50399,13 @@ var ServerUpdateOutcomeSchema = _enum([
|
|
|
49882
50399
|
"refused",
|
|
49883
50400
|
"failed"
|
|
49884
50401
|
]);
|
|
50402
|
+
/** One addon the pre-flight found the target version would refuse (D877). */
|
|
50403
|
+
var UpdateBlockerSchema = object({
|
|
50404
|
+
addonId: string(),
|
|
50405
|
+
reason: string(),
|
|
50406
|
+
/** What the operator does about it. */
|
|
50407
|
+
remedy: string()
|
|
50408
|
+
});
|
|
49885
50409
|
var ServerUpdateActionResultSchema = object({
|
|
49886
50410
|
accepted: boolean(),
|
|
49887
50411
|
targetVersion: string().nullable(),
|
|
@@ -49899,14 +50423,27 @@ var ServerUpdateActionResultSchema = object({
|
|
|
49899
50423
|
* The failure itself, verbatim enough to act on (the npm output for a
|
|
49900
50424
|
* staging install). Non-null only for `failed`.
|
|
49901
50425
|
*/
|
|
49902
|
-
error: string().nullable().optional()
|
|
50426
|
+
error: string().nullable().optional(),
|
|
50427
|
+
/**
|
|
50428
|
+
* The addons the target version would refuse to start on this node's live
|
|
50429
|
+
* store (D877), present when the pre-flight refused the update
|
|
50430
|
+
* (`reason: 'addon-would-refuse'`). Optional for version skew.
|
|
50431
|
+
*/
|
|
50432
|
+
blockers: array(UpdateBlockerSchema).optional()
|
|
49903
50433
|
});
|
|
49904
50434
|
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
49905
50435
|
kind: "mutation",
|
|
49906
50436
|
auth: "admin"
|
|
49907
|
-
}), method(object({
|
|
49908
|
-
/** Explicit target version; omitted = latest from the registry. */
|
|
49909
|
-
version: string().optional()
|
|
50437
|
+
}), method(object({
|
|
50438
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
50439
|
+
version: string().optional(),
|
|
50440
|
+
/**
|
|
50441
|
+
* Apply even though the pre-flight (D877) found addons the target would
|
|
50442
|
+
* refuse to start. Off by default: those addons stay down until the
|
|
50443
|
+
* remedy is run, which is the incident this gate exists to prevent.
|
|
50444
|
+
*/
|
|
50445
|
+
acknowledgeRefusals: boolean().optional()
|
|
50446
|
+
}), ServerUpdateActionResultSchema, {
|
|
49910
50447
|
kind: "mutation",
|
|
49911
50448
|
auth: "admin",
|
|
49912
50449
|
timeoutMs: 16 * 6e4
|
|
@@ -52319,7 +52856,9 @@ var ManifestShapeSchema = object({
|
|
|
52319
52856
|
var AddonProcessSchema = object({
|
|
52320
52857
|
pid: number().optional(),
|
|
52321
52858
|
mode: string(),
|
|
52322
|
-
state: string()
|
|
52859
|
+
state: string(),
|
|
52860
|
+
/** Why the runner is `refused` (an addon's own words), when it is (D877). */
|
|
52861
|
+
reason: string().optional()
|
|
52323
52862
|
});
|
|
52324
52863
|
/**
|
|
52325
52864
|
* Per-addon health snapshot from the kernel's AddonHealthMonitor.
|
|
@@ -52897,7 +53436,7 @@ var BatteryStatusSchema = object({
|
|
|
52897
53436
|
*/
|
|
52898
53437
|
binary: boolean().optional()
|
|
52899
53438
|
});
|
|
52900
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, method(object({
|
|
53439
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, method(object({
|
|
52901
53440
|
deviceId: number(),
|
|
52902
53441
|
/** Bound on the wait. Sensible range 3000–10000ms. */
|
|
52903
53442
|
timeoutMs: number().int().min(500).max(3e4).default(8e3)
|
|
@@ -53797,6 +54336,130 @@ object({
|
|
|
53797
54336
|
deviceId: number(),
|
|
53798
54337
|
status: DeviceStatusSchema
|
|
53799
54338
|
});
|
|
54339
|
+
/**
|
|
54340
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates,
|
|
54341
|
+
* consumable levels (salt, rinse aid) and common program options.
|
|
54342
|
+
*
|
|
54343
|
+
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
54344
|
+
* by any integration that exposes the same program / option surface.
|
|
54345
|
+
*
|
|
54346
|
+
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
54347
|
+
* provider refreshes the slice on an interval and eagerly after commands.
|
|
54348
|
+
*/
|
|
54349
|
+
var DishwasherStateSchema = _enum([
|
|
54350
|
+
"idle",
|
|
54351
|
+
"running",
|
|
54352
|
+
"paused",
|
|
54353
|
+
"finished",
|
|
54354
|
+
"error",
|
|
54355
|
+
"unavailable"
|
|
54356
|
+
]);
|
|
54357
|
+
var DishwasherConsumableLevelSchema = _enum([
|
|
54358
|
+
"ok",
|
|
54359
|
+
"low",
|
|
54360
|
+
"empty"
|
|
54361
|
+
]);
|
|
54362
|
+
object({
|
|
54363
|
+
state: DishwasherStateSchema,
|
|
54364
|
+
/** Active program id/name, or null when none selected / unknown. */
|
|
54365
|
+
program: string().nullable(),
|
|
54366
|
+
/** Program tokens the hardware accepts — drives the UI selector. */
|
|
54367
|
+
availablePrograms: array(string()),
|
|
54368
|
+
/** Minutes remaining on the active cycle, or null when not running. */
|
|
54369
|
+
remainingMinutes: number().int().nonnegative().nullable(),
|
|
54370
|
+
/** Cycle completion 0..100, or null when not applicable. */
|
|
54371
|
+
progressPercent: number().min(0).max(100).nullable(),
|
|
54372
|
+
/** True when the door is reported open. */
|
|
54373
|
+
doorOpen: boolean(),
|
|
54374
|
+
/** True when remote start is allowed (door closed, power on, etc.). */
|
|
54375
|
+
remoteStartAllowed: boolean(),
|
|
54376
|
+
/** Main power / switched-on state. */
|
|
54377
|
+
powerOn: boolean(),
|
|
54378
|
+
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54379
|
+
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54380
|
+
halfLoad: boolean(),
|
|
54381
|
+
hygienePlus: boolean(),
|
|
54382
|
+
/** Extra dry option when the appliance exposes it. */
|
|
54383
|
+
extraDry: boolean(),
|
|
54384
|
+
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
54385
|
+
intensiveZone: boolean(),
|
|
54386
|
+
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
54387
|
+
varioSpeedPlus: boolean(),
|
|
54388
|
+
/** Child lock (controls disabled on the appliance). */
|
|
54389
|
+
childLock: boolean(),
|
|
54390
|
+
errorCode: number().nullable(),
|
|
54391
|
+
errorLabel: string().nullable(),
|
|
54392
|
+
lastFetchedAt: number()
|
|
54393
|
+
});
|
|
54394
|
+
DeviceType.Dishwasher, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
54395
|
+
kind: "mutation",
|
|
54396
|
+
auth: "protected"
|
|
54397
|
+
}), method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
54398
|
+
kind: "mutation",
|
|
54399
|
+
auth: "protected"
|
|
54400
|
+
}), method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
54401
|
+
kind: "mutation",
|
|
54402
|
+
auth: "protected"
|
|
54403
|
+
}), method(object({
|
|
54404
|
+
deviceId: number().int().nonnegative(),
|
|
54405
|
+
program: string().min(1)
|
|
54406
|
+
}), _void(), {
|
|
54407
|
+
kind: "mutation",
|
|
54408
|
+
auth: "protected"
|
|
54409
|
+
}), method(object({
|
|
54410
|
+
deviceId: number().int().nonnegative(),
|
|
54411
|
+
on: boolean()
|
|
54412
|
+
}), _void(), {
|
|
54413
|
+
kind: "mutation",
|
|
54414
|
+
auth: "protected"
|
|
54415
|
+
}), method(object({
|
|
54416
|
+
deviceId: number().int().nonnegative(),
|
|
54417
|
+
on: boolean()
|
|
54418
|
+
}), _void(), {
|
|
54419
|
+
kind: "mutation",
|
|
54420
|
+
auth: "protected"
|
|
54421
|
+
}), method(object({
|
|
54422
|
+
deviceId: number().int().nonnegative(),
|
|
54423
|
+
on: boolean()
|
|
54424
|
+
}), _void(), {
|
|
54425
|
+
kind: "mutation",
|
|
54426
|
+
auth: "protected"
|
|
54427
|
+
}), method(object({
|
|
54428
|
+
deviceId: number().int().nonnegative(),
|
|
54429
|
+
on: boolean()
|
|
54430
|
+
}), _void(), {
|
|
54431
|
+
kind: "mutation",
|
|
54432
|
+
auth: "protected"
|
|
54433
|
+
}), method(object({
|
|
54434
|
+
deviceId: number().int().nonnegative(),
|
|
54435
|
+
on: boolean()
|
|
54436
|
+
}), _void(), {
|
|
54437
|
+
kind: "mutation",
|
|
54438
|
+
auth: "protected"
|
|
54439
|
+
}), method(object({
|
|
54440
|
+
deviceId: number().int().nonnegative(),
|
|
54441
|
+
on: boolean()
|
|
54442
|
+
}), _void(), {
|
|
54443
|
+
kind: "mutation",
|
|
54444
|
+
auth: "protected"
|
|
54445
|
+
}), method(object({
|
|
54446
|
+
deviceId: number().int().nonnegative(),
|
|
54447
|
+
on: boolean()
|
|
54448
|
+
}), _void(), {
|
|
54449
|
+
kind: "mutation",
|
|
54450
|
+
auth: "protected"
|
|
54451
|
+
}), method(object({
|
|
54452
|
+
deviceId: number().int().nonnegative(),
|
|
54453
|
+
key: string().min(1),
|
|
54454
|
+
value: union([
|
|
54455
|
+
boolean(),
|
|
54456
|
+
string(),
|
|
54457
|
+
number()
|
|
54458
|
+
])
|
|
54459
|
+
}), _void(), {
|
|
54460
|
+
kind: "mutation",
|
|
54461
|
+
auth: "protected"
|
|
54462
|
+
});
|
|
53800
54463
|
object({
|
|
53801
54464
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
53802
54465
|
lastPressedAt: number().nullable(),
|
|
@@ -54362,6 +55025,13 @@ object({
|
|
|
54362
55025
|
lastChangedAt: number()
|
|
54363
55026
|
});
|
|
54364
55027
|
DeviceType.Sensor;
|
|
55028
|
+
object({
|
|
55029
|
+
/** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
|
|
55030
|
+
position: number().min(0).max(100).nullable(),
|
|
55031
|
+
/** Ms epoch when the slice was last updated (push or poll). */
|
|
55032
|
+
lastFetchedAt: number()
|
|
55033
|
+
});
|
|
55034
|
+
DeviceType.Thermostat;
|
|
54365
55035
|
object({
|
|
54366
55036
|
/** Whether the humidifier is currently on. */
|
|
54367
55037
|
on: boolean(),
|
|
@@ -60403,7 +61073,11 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
60403
61073
|
kind: "mutation",
|
|
60404
61074
|
auth: "admin",
|
|
60405
61075
|
access: "delete"
|
|
60406
|
-
}), method(object({ userId: string() }), TotpStatusSchema, { auth: "admin" }), method(
|
|
61076
|
+
}), method(object({ userId: string() }), TotpStatusSchema, { auth: "admin" }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
61077
|
+
kind: "mutation",
|
|
61078
|
+
auth: "admin",
|
|
61079
|
+
access: "create"
|
|
61080
|
+
}), method(object({
|
|
60407
61081
|
userId: string(),
|
|
60408
61082
|
code: string()
|
|
60409
61083
|
}), object({ valid: boolean() }), {
|
|
@@ -61455,7 +62129,7 @@ var AccessoryKind = {
|
|
|
61455
62129
|
PrivacyMask: DeviceRole.PrivacyMask
|
|
61456
62130
|
};
|
|
61457
62131
|
AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
|
|
61458
|
-
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder;
|
|
62132
|
+
DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Camera, DeviceType.Hub, DeviceType.Switch, DeviceType.Siren, DeviceType.Light, DeviceType.Fan, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher;
|
|
61459
62133
|
new Set(Object.values(DeviceType));
|
|
61460
62134
|
Object.freeze({
|
|
61461
62135
|
"accessories.getStatus": {
|
|
@@ -62604,6 +63278,12 @@ Object.freeze({
|
|
|
62604
63278
|
addonId: null,
|
|
62605
63279
|
access: "view"
|
|
62606
63280
|
},
|
|
63281
|
+
"coreBlocks.migrateRawSecrets": {
|
|
63282
|
+
capName: "core-blocks",
|
|
63283
|
+
capScope: "system",
|
|
63284
|
+
addonId: null,
|
|
63285
|
+
access: "create"
|
|
63286
|
+
},
|
|
62607
63287
|
"coreBlocks.restart": {
|
|
62608
63288
|
capName: "core-blocks",
|
|
62609
63289
|
capScope: "system",
|
|
@@ -63870,6 +64550,84 @@ Object.freeze({
|
|
|
63870
64550
|
addonId: null,
|
|
63871
64551
|
access: "view"
|
|
63872
64552
|
},
|
|
64553
|
+
"dishwasher.getStatus": {
|
|
64554
|
+
capName: "dishwasher",
|
|
64555
|
+
capScope: "device",
|
|
64556
|
+
addonId: null,
|
|
64557
|
+
access: "view"
|
|
64558
|
+
},
|
|
64559
|
+
"dishwasher.pause": {
|
|
64560
|
+
capName: "dishwasher",
|
|
64561
|
+
capScope: "device",
|
|
64562
|
+
addonId: null,
|
|
64563
|
+
access: "create"
|
|
64564
|
+
},
|
|
64565
|
+
"dishwasher.setChildLock": {
|
|
64566
|
+
capName: "dishwasher",
|
|
64567
|
+
capScope: "device",
|
|
64568
|
+
addonId: null,
|
|
64569
|
+
access: "create"
|
|
64570
|
+
},
|
|
64571
|
+
"dishwasher.setExtraDry": {
|
|
64572
|
+
capName: "dishwasher",
|
|
64573
|
+
capScope: "device",
|
|
64574
|
+
addonId: null,
|
|
64575
|
+
access: "create"
|
|
64576
|
+
},
|
|
64577
|
+
"dishwasher.setHalfLoad": {
|
|
64578
|
+
capName: "dishwasher",
|
|
64579
|
+
capScope: "device",
|
|
64580
|
+
addonId: null,
|
|
64581
|
+
access: "create"
|
|
64582
|
+
},
|
|
64583
|
+
"dishwasher.setHygienePlus": {
|
|
64584
|
+
capName: "dishwasher",
|
|
64585
|
+
capScope: "device",
|
|
64586
|
+
addonId: null,
|
|
64587
|
+
access: "create"
|
|
64588
|
+
},
|
|
64589
|
+
"dishwasher.setIntensiveZone": {
|
|
64590
|
+
capName: "dishwasher",
|
|
64591
|
+
capScope: "device",
|
|
64592
|
+
addonId: null,
|
|
64593
|
+
access: "create"
|
|
64594
|
+
},
|
|
64595
|
+
"dishwasher.setOption": {
|
|
64596
|
+
capName: "dishwasher",
|
|
64597
|
+
capScope: "device",
|
|
64598
|
+
addonId: null,
|
|
64599
|
+
access: "create"
|
|
64600
|
+
},
|
|
64601
|
+
"dishwasher.setPower": {
|
|
64602
|
+
capName: "dishwasher",
|
|
64603
|
+
capScope: "device",
|
|
64604
|
+
addonId: null,
|
|
64605
|
+
access: "create"
|
|
64606
|
+
},
|
|
64607
|
+
"dishwasher.setProgram": {
|
|
64608
|
+
capName: "dishwasher",
|
|
64609
|
+
capScope: "device",
|
|
64610
|
+
addonId: null,
|
|
64611
|
+
access: "create"
|
|
64612
|
+
},
|
|
64613
|
+
"dishwasher.setVarioSpeedPlus": {
|
|
64614
|
+
capName: "dishwasher",
|
|
64615
|
+
capScope: "device",
|
|
64616
|
+
addonId: null,
|
|
64617
|
+
access: "create"
|
|
64618
|
+
},
|
|
64619
|
+
"dishwasher.start": {
|
|
64620
|
+
capName: "dishwasher",
|
|
64621
|
+
capScope: "device",
|
|
64622
|
+
addonId: null,
|
|
64623
|
+
access: "create"
|
|
64624
|
+
},
|
|
64625
|
+
"dishwasher.stop": {
|
|
64626
|
+
capName: "dishwasher",
|
|
64627
|
+
capScope: "device",
|
|
64628
|
+
addonId: null,
|
|
64629
|
+
access: "create"
|
|
64630
|
+
},
|
|
63873
64631
|
"doorbell.getStatus": {
|
|
63874
64632
|
capName: "doorbell",
|
|
63875
64633
|
capScope: "device",
|
|
@@ -64080,6 +64838,12 @@ Object.freeze({
|
|
|
64080
64838
|
addonId: null,
|
|
64081
64839
|
access: "view"
|
|
64082
64840
|
},
|
|
64841
|
+
"heatingValve.getStatus": {
|
|
64842
|
+
capName: "heating-valve",
|
|
64843
|
+
capScope: "device",
|
|
64844
|
+
addonId: null,
|
|
64845
|
+
access: "view"
|
|
64846
|
+
},
|
|
64083
64847
|
"humidifier.getStatus": {
|
|
64084
64848
|
capName: "humidifier",
|
|
64085
64849
|
capScope: "device",
|
|
@@ -64464,6 +65228,12 @@ Object.freeze({
|
|
|
64464
65228
|
addonId: null,
|
|
64465
65229
|
access: "view"
|
|
64466
65230
|
},
|
|
65231
|
+
"llm.migrateRawSecrets": {
|
|
65232
|
+
capName: "llm",
|
|
65233
|
+
capScope: "system",
|
|
65234
|
+
addonId: null,
|
|
65235
|
+
access: "create"
|
|
65236
|
+
},
|
|
64467
65237
|
"llm.resolveModelRef": {
|
|
64468
65238
|
capName: "llm",
|
|
64469
65239
|
capScope: "system",
|
|
@@ -67350,6 +68120,30 @@ Object.freeze({
|
|
|
67350
68120
|
addonId: null,
|
|
67351
68121
|
access: "create"
|
|
67352
68122
|
},
|
|
68123
|
+
"recordEntries.deleteEntry": {
|
|
68124
|
+
capName: "record-entries",
|
|
68125
|
+
capScope: "system",
|
|
68126
|
+
addonId: null,
|
|
68127
|
+
access: "delete"
|
|
68128
|
+
},
|
|
68129
|
+
"recordEntries.listEntries": {
|
|
68130
|
+
capName: "record-entries",
|
|
68131
|
+
capScope: "system",
|
|
68132
|
+
addonId: null,
|
|
68133
|
+
access: "view"
|
|
68134
|
+
},
|
|
68135
|
+
"recordEntries.listEntryKinds": {
|
|
68136
|
+
capName: "record-entries",
|
|
68137
|
+
capScope: "system",
|
|
68138
|
+
addonId: null,
|
|
68139
|
+
access: "view"
|
|
68140
|
+
},
|
|
68141
|
+
"recordEntries.putEntry": {
|
|
68142
|
+
capName: "record-entries",
|
|
68143
|
+
capScope: "system",
|
|
68144
|
+
addonId: null,
|
|
68145
|
+
access: "create"
|
|
68146
|
+
},
|
|
67353
68147
|
"recording.getAvailability": {
|
|
67354
68148
|
capName: "recording",
|
|
67355
68149
|
capScope: "device",
|
|
@@ -67650,6 +68444,102 @@ Object.freeze({
|
|
|
67650
68444
|
addonId: null,
|
|
67651
68445
|
access: "view"
|
|
67652
68446
|
},
|
|
68447
|
+
"records.aggregate": {
|
|
68448
|
+
capName: "records",
|
|
68449
|
+
capScope: "system",
|
|
68450
|
+
addonId: null,
|
|
68451
|
+
access: "view"
|
|
68452
|
+
},
|
|
68453
|
+
"records.allocateId": {
|
|
68454
|
+
capName: "records",
|
|
68455
|
+
capScope: "system",
|
|
68456
|
+
addonId: null,
|
|
68457
|
+
access: "create"
|
|
68458
|
+
},
|
|
68459
|
+
"records.count": {
|
|
68460
|
+
capName: "records",
|
|
68461
|
+
capScope: "system",
|
|
68462
|
+
addonId: null,
|
|
68463
|
+
access: "view"
|
|
68464
|
+
},
|
|
68465
|
+
"records.declareKinds": {
|
|
68466
|
+
capName: "records",
|
|
68467
|
+
capScope: "system",
|
|
68468
|
+
addonId: null,
|
|
68469
|
+
access: "create"
|
|
68470
|
+
},
|
|
68471
|
+
"records.delete": {
|
|
68472
|
+
capName: "records",
|
|
68473
|
+
capScope: "system",
|
|
68474
|
+
addonId: null,
|
|
68475
|
+
access: "delete"
|
|
68476
|
+
},
|
|
68477
|
+
"records.deleteDevice": {
|
|
68478
|
+
capName: "records",
|
|
68479
|
+
capScope: "system",
|
|
68480
|
+
addonId: null,
|
|
68481
|
+
access: "delete"
|
|
68482
|
+
},
|
|
68483
|
+
"records.deleteMany": {
|
|
68484
|
+
capName: "records",
|
|
68485
|
+
capScope: "system",
|
|
68486
|
+
addonId: null,
|
|
68487
|
+
access: "delete"
|
|
68488
|
+
},
|
|
68489
|
+
"records.deleteWhere": {
|
|
68490
|
+
capName: "records",
|
|
68491
|
+
capScope: "system",
|
|
68492
|
+
addonId: null,
|
|
68493
|
+
access: "delete"
|
|
68494
|
+
},
|
|
68495
|
+
"records.get": {
|
|
68496
|
+
capName: "records",
|
|
68497
|
+
capScope: "system",
|
|
68498
|
+
addonId: null,
|
|
68499
|
+
access: "view"
|
|
68500
|
+
},
|
|
68501
|
+
"records.getMany": {
|
|
68502
|
+
capName: "records",
|
|
68503
|
+
capScope: "system",
|
|
68504
|
+
addonId: null,
|
|
68505
|
+
access: "view"
|
|
68506
|
+
},
|
|
68507
|
+
"records.histogram": {
|
|
68508
|
+
capName: "records",
|
|
68509
|
+
capScope: "system",
|
|
68510
|
+
addonId: null,
|
|
68511
|
+
access: "view"
|
|
68512
|
+
},
|
|
68513
|
+
"records.patch": {
|
|
68514
|
+
capName: "records",
|
|
68515
|
+
capScope: "system",
|
|
68516
|
+
addonId: null,
|
|
68517
|
+
access: "create"
|
|
68518
|
+
},
|
|
68519
|
+
"records.put": {
|
|
68520
|
+
capName: "records",
|
|
68521
|
+
capScope: "system",
|
|
68522
|
+
addonId: null,
|
|
68523
|
+
access: "create"
|
|
68524
|
+
},
|
|
68525
|
+
"records.putMany": {
|
|
68526
|
+
capName: "records",
|
|
68527
|
+
capScope: "system",
|
|
68528
|
+
addonId: null,
|
|
68529
|
+
access: "create"
|
|
68530
|
+
},
|
|
68531
|
+
"records.query": {
|
|
68532
|
+
capName: "records",
|
|
68533
|
+
capScope: "system",
|
|
68534
|
+
addonId: null,
|
|
68535
|
+
access: "view"
|
|
68536
|
+
},
|
|
68537
|
+
"records.secretRefs": {
|
|
68538
|
+
capName: "records",
|
|
68539
|
+
capScope: "system",
|
|
68540
|
+
addonId: null,
|
|
68541
|
+
access: "view"
|
|
68542
|
+
},
|
|
67653
68543
|
"sceneMonitor.captureReference": {
|
|
67654
68544
|
capName: "scene-monitor",
|
|
67655
68545
|
capScope: "device",
|
|
@@ -68082,18 +68972,48 @@ Object.freeze({
|
|
|
68082
68972
|
addonId: null,
|
|
68083
68973
|
access: "create"
|
|
68084
68974
|
},
|
|
68975
|
+
"storageAdmin.adoptRecords": {
|
|
68976
|
+
capName: "storage-admin",
|
|
68977
|
+
capScope: "system",
|
|
68978
|
+
addonId: null,
|
|
68979
|
+
access: "create"
|
|
68980
|
+
},
|
|
68085
68981
|
"storageAdmin.dropCollection": {
|
|
68086
68982
|
capName: "storage-admin",
|
|
68087
68983
|
capScope: "system",
|
|
68088
68984
|
addonId: null,
|
|
68089
68985
|
access: "delete"
|
|
68090
68986
|
},
|
|
68987
|
+
"storageAdmin.isAdoptedLegacyTable": {
|
|
68988
|
+
capName: "storage-admin",
|
|
68989
|
+
capScope: "system",
|
|
68990
|
+
addonId: null,
|
|
68991
|
+
access: "view"
|
|
68992
|
+
},
|
|
68993
|
+
"storageAdmin.listKinds": {
|
|
68994
|
+
capName: "storage-admin",
|
|
68995
|
+
capScope: "system",
|
|
68996
|
+
addonId: null,
|
|
68997
|
+
access: "view"
|
|
68998
|
+
},
|
|
68091
68999
|
"storageAdmin.listTables": {
|
|
68092
69000
|
capName: "storage-admin",
|
|
68093
69001
|
capScope: "system",
|
|
68094
69002
|
addonId: null,
|
|
68095
69003
|
access: "view"
|
|
68096
69004
|
},
|
|
69005
|
+
"storageAdmin.readLegacyCollection": {
|
|
69006
|
+
capName: "storage-admin",
|
|
69007
|
+
capScope: "system",
|
|
69008
|
+
addonId: null,
|
|
69009
|
+
access: "view"
|
|
69010
|
+
},
|
|
69011
|
+
"storageAdmin.readRecords": {
|
|
69012
|
+
capName: "storage-admin",
|
|
69013
|
+
capScope: "system",
|
|
69014
|
+
addonId: null,
|
|
69015
|
+
access: "view"
|
|
69016
|
+
},
|
|
68097
69017
|
"storageEvictable.evict": {
|
|
68098
69018
|
capName: "storage-evictable",
|
|
68099
69019
|
capScope: "system",
|
|
@@ -69006,6 +69926,12 @@ Object.freeze({
|
|
|
69006
69926
|
addonId: null,
|
|
69007
69927
|
access: "view"
|
|
69008
69928
|
},
|
|
69929
|
+
"userManagement.migrateRawSecrets": {
|
|
69930
|
+
capName: "user-management",
|
|
69931
|
+
capScope: "system",
|
|
69932
|
+
addonId: null,
|
|
69933
|
+
access: "create"
|
|
69934
|
+
},
|
|
69009
69935
|
"userManagement.oauthExchangeCode": {
|
|
69010
69936
|
capName: "user-management",
|
|
69011
69937
|
capScope: "system",
|
|
@@ -69505,7 +70431,7 @@ Object.freeze({
|
|
|
69505
70431
|
access: "create"
|
|
69506
70432
|
}
|
|
69507
70433
|
});
|
|
69508
|
-
DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder;
|
|
70434
|
+
DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher;
|
|
69509
70435
|
DeviceFeature.BatteryOperated;
|
|
69510
70436
|
Object.freeze({
|
|
69511
70437
|
"accessories.getStatus": [{
|
|
@@ -70329,6 +71255,71 @@ Object.freeze({
|
|
|
70329
71255
|
form: "single",
|
|
70330
71256
|
optional: false
|
|
70331
71257
|
}],
|
|
71258
|
+
"dishwasher.getStatus": [{
|
|
71259
|
+
name: "deviceId",
|
|
71260
|
+
form: "single",
|
|
71261
|
+
optional: false
|
|
71262
|
+
}],
|
|
71263
|
+
"dishwasher.pause": [{
|
|
71264
|
+
name: "deviceId",
|
|
71265
|
+
form: "single",
|
|
71266
|
+
optional: false
|
|
71267
|
+
}],
|
|
71268
|
+
"dishwasher.setChildLock": [{
|
|
71269
|
+
name: "deviceId",
|
|
71270
|
+
form: "single",
|
|
71271
|
+
optional: false
|
|
71272
|
+
}],
|
|
71273
|
+
"dishwasher.setExtraDry": [{
|
|
71274
|
+
name: "deviceId",
|
|
71275
|
+
form: "single",
|
|
71276
|
+
optional: false
|
|
71277
|
+
}],
|
|
71278
|
+
"dishwasher.setHalfLoad": [{
|
|
71279
|
+
name: "deviceId",
|
|
71280
|
+
form: "single",
|
|
71281
|
+
optional: false
|
|
71282
|
+
}],
|
|
71283
|
+
"dishwasher.setHygienePlus": [{
|
|
71284
|
+
name: "deviceId",
|
|
71285
|
+
form: "single",
|
|
71286
|
+
optional: false
|
|
71287
|
+
}],
|
|
71288
|
+
"dishwasher.setIntensiveZone": [{
|
|
71289
|
+
name: "deviceId",
|
|
71290
|
+
form: "single",
|
|
71291
|
+
optional: false
|
|
71292
|
+
}],
|
|
71293
|
+
"dishwasher.setOption": [{
|
|
71294
|
+
name: "deviceId",
|
|
71295
|
+
form: "single",
|
|
71296
|
+
optional: false
|
|
71297
|
+
}],
|
|
71298
|
+
"dishwasher.setPower": [{
|
|
71299
|
+
name: "deviceId",
|
|
71300
|
+
form: "single",
|
|
71301
|
+
optional: false
|
|
71302
|
+
}],
|
|
71303
|
+
"dishwasher.setProgram": [{
|
|
71304
|
+
name: "deviceId",
|
|
71305
|
+
form: "single",
|
|
71306
|
+
optional: false
|
|
71307
|
+
}],
|
|
71308
|
+
"dishwasher.setVarioSpeedPlus": [{
|
|
71309
|
+
name: "deviceId",
|
|
71310
|
+
form: "single",
|
|
71311
|
+
optional: false
|
|
71312
|
+
}],
|
|
71313
|
+
"dishwasher.start": [{
|
|
71314
|
+
name: "deviceId",
|
|
71315
|
+
form: "single",
|
|
71316
|
+
optional: false
|
|
71317
|
+
}],
|
|
71318
|
+
"dishwasher.stop": [{
|
|
71319
|
+
name: "deviceId",
|
|
71320
|
+
form: "single",
|
|
71321
|
+
optional: false
|
|
71322
|
+
}],
|
|
70332
71323
|
"doorbell.getStatus": [{
|
|
70333
71324
|
name: "deviceId",
|
|
70334
71325
|
form: "single",
|
|
@@ -70398,6 +71389,11 @@ Object.freeze({
|
|
|
70398
71389
|
form: "single",
|
|
70399
71390
|
optional: false
|
|
70400
71391
|
}],
|
|
71392
|
+
"heatingValve.getStatus": [{
|
|
71393
|
+
name: "deviceId",
|
|
71394
|
+
form: "single",
|
|
71395
|
+
optional: false
|
|
71396
|
+
}],
|
|
70401
71397
|
"humidifier.getStatus": [{
|
|
70402
71398
|
name: "deviceId",
|
|
70403
71399
|
form: "single",
|
|
@@ -71682,6 +72678,37 @@ Object.freeze({
|
|
|
71682
72678
|
form: "single",
|
|
71683
72679
|
optional: false
|
|
71684
72680
|
}],
|
|
72681
|
+
"records.count": [{
|
|
72682
|
+
name: "deviceId",
|
|
72683
|
+
form: "single",
|
|
72684
|
+
optional: true
|
|
72685
|
+
}],
|
|
72686
|
+
"records.deleteDevice": [{
|
|
72687
|
+
name: "deviceId",
|
|
72688
|
+
form: "single",
|
|
72689
|
+
optional: false
|
|
72690
|
+
}],
|
|
72691
|
+
"records.deleteWhere": [{
|
|
72692
|
+
name: "deviceId",
|
|
72693
|
+
form: "single",
|
|
72694
|
+
optional: true
|
|
72695
|
+
}],
|
|
72696
|
+
"records.histogram": [{
|
|
72697
|
+
name: "deviceId",
|
|
72698
|
+
form: "single",
|
|
72699
|
+
optional: true
|
|
72700
|
+
}],
|
|
72701
|
+
"records.putMany": [{
|
|
72702
|
+
name: "records",
|
|
72703
|
+
form: "object-array",
|
|
72704
|
+
optional: false,
|
|
72705
|
+
itemField: "deviceId"
|
|
72706
|
+
}],
|
|
72707
|
+
"records.query": [{
|
|
72708
|
+
name: "deviceId",
|
|
72709
|
+
form: "single",
|
|
72710
|
+
optional: true
|
|
72711
|
+
}],
|
|
71685
72712
|
"sceneMonitor.captureReference": [{
|
|
71686
72713
|
name: "deviceId",
|
|
71687
72714
|
form: "single",
|
|
@@ -71798,6 +72825,17 @@ Object.freeze({
|
|
|
71798
72825
|
form: "single",
|
|
71799
72826
|
optional: false
|
|
71800
72827
|
}],
|
|
72828
|
+
"storageAdmin.adoptRecords": [{
|
|
72829
|
+
name: "records",
|
|
72830
|
+
form: "object-array",
|
|
72831
|
+
optional: false,
|
|
72832
|
+
itemField: "deviceId"
|
|
72833
|
+
}],
|
|
72834
|
+
"storageAdmin.readRecords": [{
|
|
72835
|
+
name: "deviceId",
|
|
72836
|
+
form: "single",
|
|
72837
|
+
optional: true
|
|
72838
|
+
}],
|
|
71801
72839
|
"streamBroker.acquireEgressTranscode": [{
|
|
71802
72840
|
name: "deviceId",
|
|
71803
72841
|
form: "single",
|