@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
|
@@ -5,7 +5,7 @@ import "node:fs";
|
|
|
5
5
|
import "node:path";
|
|
6
6
|
import "node:child_process";
|
|
7
7
|
import "node:zlib";
|
|
8
|
-
//#region ../types/dist/event-category-
|
|
8
|
+
//#region ../types/dist/event-category-BvOFi6PY.mjs
|
|
9
9
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
10
10
|
EventCategory["SystemBoot"] = "system.boot";
|
|
11
11
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -69,6 +69,24 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
69
69
|
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
70
70
|
*/
|
|
71
71
|
EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
|
|
72
|
+
/**
|
|
73
|
+
* A runner whose addon refused to start with a typed reason (D877) - parked
|
|
74
|
+
* in `refused`, never counted by the crash breaker, retried on operator
|
|
75
|
+
* action. One event per refusal.
|
|
76
|
+
*/
|
|
77
|
+
EventCategory["AddonRunnerRefused"] = "addon.runner-refused";
|
|
78
|
+
/**
|
|
79
|
+
* A runner settled on a state (D877): `running` (READY), `crashed`, `failed` or
|
|
80
|
+
* `refused`. In-process telemetry for the boot check (re-evaluate while any
|
|
81
|
+
* runner is still pending) and the alert centre (close a recovered runner).
|
|
82
|
+
*/
|
|
83
|
+
EventCategory["ProcessStateChanged"] = "process.state-changed";
|
|
84
|
+
/**
|
|
85
|
+
* The node's one-shot runner boot check (D877): planned runners against the
|
|
86
|
+
* process service, `degraded` when any is failed, refused or missing. The
|
|
87
|
+
* alert centre turns it into one alert and a direct critical push.
|
|
88
|
+
*/
|
|
89
|
+
EventCategory["SystemRunnerCheck"] = "system.runner-check";
|
|
72
90
|
EventCategory["AddonError"] = "addon.error";
|
|
73
91
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
74
92
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -5393,7 +5411,7 @@ var ZodIssueCode = {
|
|
|
5393
5411
|
var ZodFirstPartyTypeKind;
|
|
5394
5412
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5395
5413
|
//#endregion
|
|
5396
|
-
//#region ../types/dist/sleep-
|
|
5414
|
+
//#region ../types/dist/sleep-BegKjwUu.mjs
|
|
5397
5415
|
/**
|
|
5398
5416
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5399
5417
|
* window to float samples (D455).
|
|
@@ -5510,7 +5528,7 @@ function isKeychainStoredField(field) {
|
|
|
5510
5528
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5511
5529
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5512
5530
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5513
|
-
function isRecord$
|
|
5531
|
+
function isRecord$5(value) {
|
|
5514
5532
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5515
5533
|
}
|
|
5516
5534
|
function makeSecretMarker(ref) {
|
|
@@ -5521,12 +5539,12 @@ function makeSecretMarker(ref) {
|
|
|
5521
5539
|
}
|
|
5522
5540
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5523
5541
|
function isSecretMarker(value) {
|
|
5524
|
-
if (!isRecord$
|
|
5542
|
+
if (!isRecord$5(value)) return false;
|
|
5525
5543
|
const ref = value["$secret"];
|
|
5526
5544
|
return typeof ref === "string" && ref.length > 0;
|
|
5527
5545
|
}
|
|
5528
5546
|
function isSecretClear(value) {
|
|
5529
|
-
return isRecord$
|
|
5547
|
+
return isRecord$5(value) && value["$secretClear"] === true;
|
|
5530
5548
|
}
|
|
5531
5549
|
/**
|
|
5532
5550
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6136,7 +6154,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6136
6154
|
}
|
|
6137
6155
|
};
|
|
6138
6156
|
var KEEP = { kind: "keep" };
|
|
6139
|
-
function isRecord$
|
|
6157
|
+
function isRecord$4(value) {
|
|
6140
6158
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6141
6159
|
}
|
|
6142
6160
|
function defaultMintId() {
|
|
@@ -6149,7 +6167,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6149
6167
|
return out;
|
|
6150
6168
|
}
|
|
6151
6169
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6152
|
-
else if (isRecord$
|
|
6170
|
+
else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6153
6171
|
return out;
|
|
6154
6172
|
}
|
|
6155
6173
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6204,7 +6222,7 @@ function rowId(row, idKey) {
|
|
|
6204
6222
|
return null;
|
|
6205
6223
|
}
|
|
6206
6224
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6207
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6225
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
|
|
6208
6226
|
if (!Array.isArray(incoming)) {
|
|
6209
6227
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6210
6228
|
return {
|
|
@@ -6220,7 +6238,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6220
6238
|
const kept = /* @__PURE__ */ new Set();
|
|
6221
6239
|
const rows = [];
|
|
6222
6240
|
for (const row of incoming) {
|
|
6223
|
-
if (!isRecord$
|
|
6241
|
+
if (!isRecord$4(row)) {
|
|
6224
6242
|
rows.push(row);
|
|
6225
6243
|
continue;
|
|
6226
6244
|
}
|
|
@@ -6245,7 +6263,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6245
6263
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6246
6264
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6247
6265
|
case "object": {
|
|
6248
|
-
if (!isRecord$
|
|
6266
|
+
if (!isRecord$4(incoming)) {
|
|
6249
6267
|
if (incoming === void 0) return KEEP;
|
|
6250
6268
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6251
6269
|
return {
|
|
@@ -6253,7 +6271,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6253
6271
|
value: incoming
|
|
6254
6272
|
};
|
|
6255
6273
|
}
|
|
6256
|
-
const storedObj = isRecord$
|
|
6274
|
+
const storedObj = isRecord$4(stored) ? stored : {};
|
|
6257
6275
|
return {
|
|
6258
6276
|
kind: "value",
|
|
6259
6277
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6376,7 +6394,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6376
6394
|
value: items
|
|
6377
6395
|
};
|
|
6378
6396
|
}
|
|
6379
|
-
if (isRecord$
|
|
6397
|
+
if (isRecord$4(v)) {
|
|
6380
6398
|
const out = {};
|
|
6381
6399
|
for (const [k, child] of Object.entries(v)) {
|
|
6382
6400
|
const s = substitute(child);
|
|
@@ -7299,7 +7317,7 @@ var BaseAddon = class {
|
|
|
7299
7317
|
if (!ctx) return;
|
|
7300
7318
|
const addonId = ctx.id;
|
|
7301
7319
|
setImmediate(() => {
|
|
7302
|
-
ctx.api.addons
|
|
7320
|
+
ctx.api.addons.restartAddon.mutate({ addonId }).then(() => {
|
|
7303
7321
|
ctx.logger.info("addon auto-restart triggered by restart-required setting change", { meta: { changedFields: patchKeys.filter((k) => restartKeys.has(k)) } });
|
|
7304
7322
|
}).catch((err) => {
|
|
7305
7323
|
ctx.logger.error("addon auto-restart failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
|
|
@@ -7793,6 +7811,89 @@ var PeerBytesTicketSchema = object({
|
|
|
7793
7811
|
*/
|
|
7794
7812
|
declaredBytes: number().int().nonnegative().nullable()
|
|
7795
7813
|
});
|
|
7814
|
+
/** Limits and names of `ctx.records` (D881). One authority; the engine and the facade read it. */
|
|
7815
|
+
/** The files a kind may live in. `history` is device-history's (D850), never records. */
|
|
7816
|
+
var RECORD_DATABASES = ["settings", "events"];
|
|
7817
|
+
/** The classes of a kind: the `@durable` vocabulary, one authority (replaces the annotation). */
|
|
7818
|
+
var RECORD_CLASSES = [
|
|
7819
|
+
"config",
|
|
7820
|
+
"ledger",
|
|
7821
|
+
"audit",
|
|
7822
|
+
"mirror",
|
|
7823
|
+
"ephemeral"
|
|
7824
|
+
];
|
|
7825
|
+
var RECORD_DEFAULT_MAX_DATA_BYTES = 64 * 1024;
|
|
7826
|
+
var RECORD_MAX_DATA_BYTES = 1024 * 1024;
|
|
7827
|
+
var RECORD_BATCH_MAX = 1e3;
|
|
7828
|
+
var RECORD_QUERY_MAX = 1e3;
|
|
7829
|
+
/**
|
|
7830
|
+
* Record kinds (D881): the declaration an addon makes of one kind of fact, the
|
|
7831
|
+
* Zod row schema that describes it, and the helper that turns the two into the
|
|
7832
|
+
* JSON the engine stores.
|
|
7833
|
+
*
|
|
7834
|
+
* A kind is declared ONCE, next to the code that owns it, and the engine's
|
|
7835
|
+
* reconciler creates its indexes - nothing creates DDL at runtime from a write.
|
|
7836
|
+
* Everything the generic machinery needs (secret fields, the entry descriptor)
|
|
7837
|
+
* is DERIVED from the Zod schema: `.meta({ secret: true })` marks a credential,
|
|
7838
|
+
* never a field name (D879).
|
|
7839
|
+
*/
|
|
7840
|
+
/** A JSON field path: `trackId`, `auth.accessToken`. Charset-restricted: it is rendered into DDL. */
|
|
7841
|
+
var RecordFieldPathSchema = string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}(\.[A-Za-z_][A-Za-z0-9_]{0,63}){0,3}$/);
|
|
7842
|
+
var RecordIndexSchema = object({
|
|
7843
|
+
name: string().regex(/^[a-z][a-z0-9_]{0,31}$/),
|
|
7844
|
+
fields: array(RecordFieldPathSchema).min(1).max(4),
|
|
7845
|
+
unique: boolean().optional()
|
|
7846
|
+
}).strict();
|
|
7847
|
+
var RecordRetentionSchema = union([
|
|
7848
|
+
object({
|
|
7849
|
+
ttlMs: number().int().positive(),
|
|
7850
|
+
from: _enum(["at", "write"])
|
|
7851
|
+
}).strict(),
|
|
7852
|
+
object({
|
|
7853
|
+
maxRows: number().int().positive().optional(),
|
|
7854
|
+
maxRowsPerDevice: number().int().positive().optional()
|
|
7855
|
+
}).strict().refine((r) => r.maxRows !== void 0 || r.maxRowsPerDevice !== void 0, { message: "name maxRows, maxRowsPerDevice or both" }),
|
|
7856
|
+
object({
|
|
7857
|
+
owner: string().min(1),
|
|
7858
|
+
reason: string().min(1)
|
|
7859
|
+
}).strict(),
|
|
7860
|
+
object({ none: string().min(1) }).strict()
|
|
7861
|
+
]);
|
|
7862
|
+
/** The descriptor a generic entries UI reads (D881 "generic entries"). */
|
|
7863
|
+
var EntryDescriptorSchema = object({
|
|
7864
|
+
title: string().min(1),
|
|
7865
|
+
/** The record body field shown as the entry's name. */
|
|
7866
|
+
nameField: string().min(1),
|
|
7867
|
+
/** JSON Schema of the entry body; `secret: true` marks a password field. */
|
|
7868
|
+
fields: record(string(), unknown())
|
|
7869
|
+
}).strict();
|
|
7870
|
+
/** What crosses the wire and sits in the engine's catalog: JSON only, no Zod. */
|
|
7871
|
+
var RecordKindDeclarationSchema = object({
|
|
7872
|
+
database: _enum(RECORD_DATABASES).default("settings"),
|
|
7873
|
+
class: _enum(RECORD_CLASSES),
|
|
7874
|
+
writeTrigger: string().min(1),
|
|
7875
|
+
device: _enum([
|
|
7876
|
+
"required",
|
|
7877
|
+
"optional",
|
|
7878
|
+
"none"
|
|
7879
|
+
]).default("none"),
|
|
7880
|
+
at: _enum(["required", "none"]).default("none"),
|
|
7881
|
+
indexes: array(RecordIndexSchema).max(8).default([]),
|
|
7882
|
+
retention: RecordRetentionSchema,
|
|
7883
|
+
deviceRemoval: _enum(["delete", "none"]).default("none"),
|
|
7884
|
+
maxDataBytes: number().int().positive().max(RECORD_MAX_DATA_BYTES).default(RECORD_DEFAULT_MAX_DATA_BYTES),
|
|
7885
|
+
/** Derived from the Zod schema; never written by hand. */
|
|
7886
|
+
secretPaths: array(string().min(1)).default([]),
|
|
7887
|
+
/** The id key of each array that carries a secret (`{ headers: 'name' }`). */
|
|
7888
|
+
secretArrayKeys: record(string(), string()).default({}),
|
|
7889
|
+
/** The legacy table this kind adopts from; the boot guard reads it (D853: no migration code). */
|
|
7890
|
+
adoptsFrom: string().min(1).optional(),
|
|
7891
|
+
/** Kinds that must agree through `transact` sit in one file under one family name. */
|
|
7892
|
+
transactFamily: string().min(1).optional(),
|
|
7893
|
+
entry: EntryDescriptorSchema.optional()
|
|
7894
|
+
}).strict();
|
|
7895
|
+
/** The kind names: lower-case, dash separated, short enough for an index name. */
|
|
7896
|
+
var RecordKindNameSchema = string().regex(/^[a-z][a-z0-9-]{0,47}$/);
|
|
7796
7897
|
/** Shared Zod schemas used across streaming capabilities. */
|
|
7797
7898
|
var CamProfileSchema = _enum([
|
|
7798
7899
|
"high",
|
|
@@ -8280,7 +8381,7 @@ object({
|
|
|
8280
8381
|
params: record(string(), union([string(), number()])).optional()
|
|
8281
8382
|
});
|
|
8282
8383
|
//#endregion
|
|
8283
|
-
//#region ../types/dist/err-msg
|
|
8384
|
+
//#region ../types/dist/err-msg-BXKzRBwg.mjs
|
|
8284
8385
|
var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
8285
8386
|
DeviceType["Camera"] = "camera";
|
|
8286
8387
|
DeviceType["Hub"] = "hub";
|
|
@@ -8372,6 +8473,10 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
8372
8473
|
* native PetKit (`nodepetkit` `FeederDevice`), reusable by other feeder
|
|
8373
8474
|
* integrations sharing the same food/desiccant/hopper surface. */
|
|
8374
8475
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
8476
|
+
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
8477
|
+
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
8478
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations. */
|
|
8479
|
+
DeviceType["Dishwasher"] = "dishwasher";
|
|
8375
8480
|
return DeviceType;
|
|
8376
8481
|
}({});
|
|
8377
8482
|
var DeviceFeature = /* @__PURE__ */ function(DeviceFeature) {
|
|
@@ -8629,7 +8734,7 @@ function errMsg(err) {
|
|
|
8629
8734
|
return String(err);
|
|
8630
8735
|
}
|
|
8631
8736
|
//#endregion
|
|
8632
|
-
//#region ../types/dist/composition-
|
|
8737
|
+
//#region ../types/dist/composition-CB6PMT9p.mjs
|
|
8633
8738
|
/**
|
|
8634
8739
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
8635
8740
|
*
|
|
@@ -13298,8 +13403,13 @@ var AlertSeveritySchema = _enum([
|
|
|
13298
13403
|
"info",
|
|
13299
13404
|
"success",
|
|
13300
13405
|
"warning",
|
|
13301
|
-
"error"
|
|
13406
|
+
"error",
|
|
13407
|
+
"critical"
|
|
13302
13408
|
]);
|
|
13409
|
+
var AlertActionSchema = object({
|
|
13410
|
+
label: string(),
|
|
13411
|
+
href: string().optional()
|
|
13412
|
+
});
|
|
13303
13413
|
var AlertStatusSchema = _enum([
|
|
13304
13414
|
"active",
|
|
13305
13415
|
"in-progress",
|
|
@@ -13317,6 +13427,7 @@ var AlertSchema = object({
|
|
|
13317
13427
|
severity: AlertSeveritySchema,
|
|
13318
13428
|
title: string(),
|
|
13319
13429
|
message: string(),
|
|
13430
|
+
action: AlertActionSchema.optional(),
|
|
13320
13431
|
status: AlertStatusSchema,
|
|
13321
13432
|
progress: number().optional(),
|
|
13322
13433
|
read: boolean(),
|
|
@@ -15746,6 +15857,41 @@ var ComposableCapabilitiesSchema = object({ caps: array(object({
|
|
|
15746
15857
|
keyField: string()
|
|
15747
15858
|
}).optional()
|
|
15748
15859
|
})) });
|
|
15860
|
+
/**
|
|
15861
|
+
* The report of a one-shot "move this owner's plaintext secrets into the
|
|
15862
|
+
* keychain" run (D878). COUNTS only - never a value, never a ref.
|
|
15863
|
+
*
|
|
15864
|
+
* The owner runs it on its own rows, through its own write path; an operator
|
|
15865
|
+
* script (`scripts/hub/migrate-raw-secrets.ts`) calls the owner's cap method.
|
|
15866
|
+
* Dry run (`apply: false`) reports what WOULD move and changes nothing.
|
|
15867
|
+
*/
|
|
15868
|
+
var RawSecretMigrationInputSchema = object({
|
|
15869
|
+
/** `false` (the default of the script) = report only. */
|
|
15870
|
+
apply: boolean() });
|
|
15871
|
+
var RawSecretMigrationReportSchema = object({
|
|
15872
|
+
apply: boolean(),
|
|
15873
|
+
/** Rows that can carry a secret (a profile, an enrolment). */
|
|
15874
|
+
rows: number().int(),
|
|
15875
|
+
/** Rows whose secret was plaintext when the run started. */
|
|
15876
|
+
raw: number().int(),
|
|
15877
|
+
/** Rows that already held a keychain marker when the run started. */
|
|
15878
|
+
markers: number().int(),
|
|
15879
|
+
/** Plaintext rows moved by THIS run (always 0 on a dry run). */
|
|
15880
|
+
migrated: number().int(),
|
|
15881
|
+
/** Plaintext rows left in place because the move or its read-back failed. */
|
|
15882
|
+
failed: number().int(),
|
|
15883
|
+
/** After the run: rows still holding plaintext. */
|
|
15884
|
+
remainingRaw: number().int(),
|
|
15885
|
+
/** After the run: markers the keychain could not resolve right now. */
|
|
15886
|
+
unresolvedMarkers: number().int(),
|
|
15887
|
+
/**
|
|
15888
|
+
* A second, redundant copy of the secrets' rows that the run found (and, on
|
|
15889
|
+
* `apply`, deleted after verifying the first). Owners with a single copy omit it.
|
|
15890
|
+
*/
|
|
15891
|
+
redundantCopies: number().int().optional(),
|
|
15892
|
+
/** True when nothing is raw and every marker resolves. */
|
|
15893
|
+
verified: boolean()
|
|
15894
|
+
});
|
|
15749
15895
|
/** Where a block runs. The operator chooses — a block driving a device on an
|
|
15750
15896
|
* agent is the reason placement is not fixed to the hub. */
|
|
15751
15897
|
var CoreBlockPlacementSchema = union([literal("hub"), string().min(1)]);
|
|
@@ -15972,6 +16118,9 @@ method(object({}), object({ blocks: array(CoreBlockSchema) }), { auth: "admin" }
|
|
|
15972
16118
|
}), SettingsUpdateResultSchema, {
|
|
15973
16119
|
kind: "mutation",
|
|
15974
16120
|
auth: "admin"
|
|
16121
|
+
}), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
16122
|
+
kind: "mutation",
|
|
16123
|
+
auth: "admin"
|
|
15975
16124
|
}), method(object({}), object({ libs: array(object({
|
|
15976
16125
|
filePath: string(),
|
|
15977
16126
|
content: string()
|
|
@@ -16234,6 +16383,222 @@ id: union([string(), number()]) }), {
|
|
|
16234
16383
|
kind: "mutation",
|
|
16235
16384
|
auth: "admin"
|
|
16236
16385
|
});
|
|
16386
|
+
/**
|
|
16387
|
+
* records - an addon's own facts and documents (D881): ledgers, audit rows,
|
|
16388
|
+
* config documents, mirrors. The third storage API next to `ctx.settings`
|
|
16389
|
+
* (operator intent, D870) and device-history (numbers over time, D850).
|
|
16390
|
+
*
|
|
16391
|
+
* Who the OWNER is: `callerAddonId`, stamped by the transport on a call that
|
|
16392
|
+
* crossed a process and stated by a hub in-process caller (`ctx.records` does
|
|
16393
|
+
* that with the addon id closed over). It is deliberately NOT in any input
|
|
16394
|
+
* schema, so a session can never supply it, and a call with no stamp is refused
|
|
16395
|
+
* `records/no-caller`. A kind is readable and writable only by its owner; other
|
|
16396
|
+
* addons go through the owner's capability.
|
|
16397
|
+
*
|
|
16398
|
+
* Every read is three-way: a row, `null`, or the call THROWS. A failed read is
|
|
16399
|
+
* never `[]`. Secret fields are never on the wire: a read shows the
|
|
16400
|
+
* redaction token, `secretRefs` hands the owner's `ctx.secrets` the refs it
|
|
16401
|
+
* resolves itself, and a write may carry only a keychain marker bound to the
|
|
16402
|
+
* row's own ref.
|
|
16403
|
+
*
|
|
16404
|
+
* Internal: addons reach it through `ctx.records`, never directly.
|
|
16405
|
+
*/
|
|
16406
|
+
var RecordIdSchema = string().min(1).max(256);
|
|
16407
|
+
/** A JSON object body. Size is the engine's check (`maxDataBytes`), not a schema's. */
|
|
16408
|
+
var RecordBodySchema = record(string(), unknown());
|
|
16409
|
+
var RecordInputSchema = object({
|
|
16410
|
+
id: RecordIdSchema,
|
|
16411
|
+
/** The device this row belongs to (D865 removal, per-device reads). */
|
|
16412
|
+
deviceId: number().int().optional(),
|
|
16413
|
+
/** The domain clock, ms: observed / created / opened. */
|
|
16414
|
+
at: number().int().optional(),
|
|
16415
|
+
/** Producer-set expiry, ms. Refused on a kind whose retention is an engine TTL. */
|
|
16416
|
+
expiresAt: number().int().optional(),
|
|
16417
|
+
data: RecordBodySchema
|
|
16418
|
+
});
|
|
16419
|
+
var RecordViewSchema = object({
|
|
16420
|
+
id: string(),
|
|
16421
|
+
deviceId: number().int().nullable(),
|
|
16422
|
+
at: number().nullable(),
|
|
16423
|
+
expiresAt: number().nullable(),
|
|
16424
|
+
rev: number().int(),
|
|
16425
|
+
updatedAt: number(),
|
|
16426
|
+
data: RecordBodySchema
|
|
16427
|
+
});
|
|
16428
|
+
/** Declared index fields only. Anything else does not compile, by design. */
|
|
16429
|
+
var RecordWhereSchema = record(RecordFieldPathSchema, union([
|
|
16430
|
+
string(),
|
|
16431
|
+
number(),
|
|
16432
|
+
boolean(),
|
|
16433
|
+
object({ in: array(union([
|
|
16434
|
+
string(),
|
|
16435
|
+
number(),
|
|
16436
|
+
boolean()
|
|
16437
|
+
])).min(1).max(RECORD_BATCH_MAX) }),
|
|
16438
|
+
object({
|
|
16439
|
+
gt: union([string(), number()]).optional(),
|
|
16440
|
+
gte: union([string(), number()]).optional(),
|
|
16441
|
+
lt: union([string(), number()]).optional(),
|
|
16442
|
+
lte: union([string(), number()]).optional()
|
|
16443
|
+
}).refine((r) => Object.keys(r).length > 0, { message: "name at least one bound" })
|
|
16444
|
+
]));
|
|
16445
|
+
var KindShape = { kind: RecordKindNameSchema };
|
|
16446
|
+
var TimeWindowShape = {
|
|
16447
|
+
deviceId: number().int().optional(),
|
|
16448
|
+
atFrom: number().optional(),
|
|
16449
|
+
atTo: number().optional()
|
|
16450
|
+
};
|
|
16451
|
+
var RecordQueryInputSchema = object({
|
|
16452
|
+
...KindShape,
|
|
16453
|
+
...TimeWindowShape,
|
|
16454
|
+
where: RecordWhereSchema.optional(),
|
|
16455
|
+
/** Without `where`: `at` (default for a kind with a clock) or `id`. With `where` the order is the index's. */
|
|
16456
|
+
order: _enum(["at", "id"]).optional(),
|
|
16457
|
+
desc: boolean().optional(),
|
|
16458
|
+
limit: number().int().min(1).max(RECORD_QUERY_MAX).default(100),
|
|
16459
|
+
/** Opaque keyset cursor from a previous answer. There is no offset. */
|
|
16460
|
+
cursor: string().min(1).optional()
|
|
16461
|
+
});
|
|
16462
|
+
var RecordQueryResultSchema = object({
|
|
16463
|
+
records: array(RecordViewSchema),
|
|
16464
|
+
nextCursor: string().nullable()
|
|
16465
|
+
});
|
|
16466
|
+
var RecordKindStateSchema = _enum([
|
|
16467
|
+
"created",
|
|
16468
|
+
"unchanged",
|
|
16469
|
+
"updated"
|
|
16470
|
+
]);
|
|
16471
|
+
var DeclareKindResultSchema = object({
|
|
16472
|
+
kindId: number().int(),
|
|
16473
|
+
state: RecordKindStateSchema,
|
|
16474
|
+
createdIndexes: array(string()),
|
|
16475
|
+
/** The boot guard: the kind is empty while its legacy table still holds rows. */
|
|
16476
|
+
adoptionPending: object({
|
|
16477
|
+
legacyTable: string(),
|
|
16478
|
+
legacyRows: number().int()
|
|
16479
|
+
}).nullable()
|
|
16480
|
+
});
|
|
16481
|
+
/** Keychain refs a write released (the old marker is gone from the row): the owner deletes the values. */
|
|
16482
|
+
var SecretRefsList = array(string());
|
|
16483
|
+
var RecordSecretRefsSchema = record(string(), record(string(), string()));
|
|
16484
|
+
method(object({ kinds: record(RecordKindNameSchema, RecordKindDeclarationSchema) }), object({ kinds: record(string(), DeclareKindResultSchema) }), {
|
|
16485
|
+
kind: "mutation",
|
|
16486
|
+
auth: "admin"
|
|
16487
|
+
}), method(object({
|
|
16488
|
+
...KindShape,
|
|
16489
|
+
id: RecordIdSchema
|
|
16490
|
+
}), RecordViewSchema.nullable(), { auth: "admin" }), method(object({
|
|
16491
|
+
...KindShape,
|
|
16492
|
+
ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
16493
|
+
}), array(RecordViewSchema), { auth: "admin" }), method(object({
|
|
16494
|
+
...KindShape,
|
|
16495
|
+
ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
16496
|
+
}), RecordSecretRefsSchema, { auth: "admin" }), method(object({
|
|
16497
|
+
...KindShape,
|
|
16498
|
+
record: RecordInputSchema,
|
|
16499
|
+
/** Compare-and-set. `0` means "the row must not exist". */
|
|
16500
|
+
ifRev: number().int().min(0).optional()
|
|
16501
|
+
}), object({
|
|
16502
|
+
rev: number().int(),
|
|
16503
|
+
releasedRefs: SecretRefsList
|
|
16504
|
+
}), {
|
|
16505
|
+
kind: "mutation",
|
|
16506
|
+
auth: "admin"
|
|
16507
|
+
}), method(object({
|
|
16508
|
+
...KindShape,
|
|
16509
|
+
records: array(RecordInputSchema).min(1).max(RECORD_BATCH_MAX)
|
|
16510
|
+
}), object({
|
|
16511
|
+
count: number().int(),
|
|
16512
|
+
releasedRefs: SecretRefsList
|
|
16513
|
+
}), {
|
|
16514
|
+
kind: "mutation",
|
|
16515
|
+
auth: "admin"
|
|
16516
|
+
}), method(object({
|
|
16517
|
+
...KindShape,
|
|
16518
|
+
id: RecordIdSchema,
|
|
16519
|
+
data: RecordBodySchema,
|
|
16520
|
+
at: number().int().nullable().optional(),
|
|
16521
|
+
expiresAt: number().int().nullable().optional(),
|
|
16522
|
+
ifRev: number().int().min(1).optional()
|
|
16523
|
+
}), object({
|
|
16524
|
+
rev: number().int(),
|
|
16525
|
+
releasedRefs: SecretRefsList
|
|
16526
|
+
}), {
|
|
16527
|
+
kind: "mutation",
|
|
16528
|
+
auth: "admin"
|
|
16529
|
+
}), method(object({
|
|
16530
|
+
...KindShape,
|
|
16531
|
+
id: RecordIdSchema
|
|
16532
|
+
}), object({
|
|
16533
|
+
deleted: boolean(),
|
|
16534
|
+
secretRefs: SecretRefsList
|
|
16535
|
+
}), {
|
|
16536
|
+
kind: "mutation",
|
|
16537
|
+
auth: "admin"
|
|
16538
|
+
}), method(object({
|
|
16539
|
+
...KindShape,
|
|
16540
|
+
ids: array(RecordIdSchema).min(1).max(RECORD_BATCH_MAX)
|
|
16541
|
+
}), object({
|
|
16542
|
+
deleted: number().int(),
|
|
16543
|
+
secretRefs: SecretRefsList
|
|
16544
|
+
}), {
|
|
16545
|
+
kind: "mutation",
|
|
16546
|
+
auth: "admin"
|
|
16547
|
+
}), method(RecordQueryInputSchema, RecordQueryResultSchema, { auth: "admin" }), method(object({
|
|
16548
|
+
...KindShape,
|
|
16549
|
+
...TimeWindowShape,
|
|
16550
|
+
where: RecordWhereSchema.optional()
|
|
16551
|
+
}), object({ count: number().int() }), { auth: "admin" }), method(object({
|
|
16552
|
+
...KindShape,
|
|
16553
|
+
deviceId: number().int().optional(),
|
|
16554
|
+
from: number(),
|
|
16555
|
+
to: number(),
|
|
16556
|
+
bucketMs: number().int().positive()
|
|
16557
|
+
}), object({ buckets: array(object({
|
|
16558
|
+
bucketStart: number(),
|
|
16559
|
+
count: number().int()
|
|
16560
|
+
})) }), { auth: "admin" }), method(object({
|
|
16561
|
+
...KindShape,
|
|
16562
|
+
op: _enum([
|
|
16563
|
+
"sum",
|
|
16564
|
+
"min",
|
|
16565
|
+
"max",
|
|
16566
|
+
"count"
|
|
16567
|
+
]),
|
|
16568
|
+
field: RecordFieldPathSchema.optional(),
|
|
16569
|
+
groupBy: RecordFieldPathSchema.optional(),
|
|
16570
|
+
where: RecordWhereSchema.optional()
|
|
16571
|
+
}), object({ rows: array(object({
|
|
16572
|
+
group: union([
|
|
16573
|
+
string(),
|
|
16574
|
+
number(),
|
|
16575
|
+
_null()
|
|
16576
|
+
]),
|
|
16577
|
+
value: number().nullable()
|
|
16578
|
+
})) }), { auth: "admin" }), method(object({
|
|
16579
|
+
...KindShape,
|
|
16580
|
+
deviceId: number().int().optional(),
|
|
16581
|
+
atBefore: number().optional(),
|
|
16582
|
+
where: RecordWhereSchema.optional()
|
|
16583
|
+
}), object({
|
|
16584
|
+
deleted: number().int(),
|
|
16585
|
+
secretRefs: SecretRefsList
|
|
16586
|
+
}), {
|
|
16587
|
+
kind: "mutation",
|
|
16588
|
+
auth: "admin"
|
|
16589
|
+
}), method(object({
|
|
16590
|
+
deviceId: number().int(),
|
|
16591
|
+
kinds: array(RecordKindNameSchema).optional()
|
|
16592
|
+
}), object({
|
|
16593
|
+
deleted: record(string(), number().int()),
|
|
16594
|
+
secretRefs: SecretRefsList
|
|
16595
|
+
}), {
|
|
16596
|
+
kind: "mutation",
|
|
16597
|
+
auth: "admin"
|
|
16598
|
+
}), method(object(KindShape), object({ id: number().int() }), {
|
|
16599
|
+
kind: "mutation",
|
|
16600
|
+
auth: "admin"
|
|
16601
|
+
});
|
|
16237
16602
|
/** One table of the settings database. */
|
|
16238
16603
|
var StorageTableSchema = object({
|
|
16239
16604
|
/** The table's full name, e.g. `recorder:addon-settings` or `addon-device-settings`. */
|
|
@@ -16246,6 +16611,28 @@ var StorageTableSchema = object({
|
|
|
16246
16611
|
/** Declared by an addon since this engine process started (a running addon claims it). */
|
|
16247
16612
|
declaredThisBoot: boolean()
|
|
16248
16613
|
});
|
|
16614
|
+
/** One declared record kind (D881) as System -> Data shows it. */
|
|
16615
|
+
var StorageKindSchema = object({
|
|
16616
|
+
owner: string(),
|
|
16617
|
+
kind: string(),
|
|
16618
|
+
database: _enum(["settings", "events"]),
|
|
16619
|
+
class: string(),
|
|
16620
|
+
state: _enum([
|
|
16621
|
+
"declared",
|
|
16622
|
+
"orphaned",
|
|
16623
|
+
"dropped"
|
|
16624
|
+
]),
|
|
16625
|
+
/** `null` when the caller asked for no counts (`counts: false`). */
|
|
16626
|
+
rows: number().int().nonnegative().nullable(),
|
|
16627
|
+
/** Rows x the average size of a sample; null for an empty kind. */
|
|
16628
|
+
bytesEstimate: number().int().nonnegative().nullable(),
|
|
16629
|
+
writeTrigger: string(),
|
|
16630
|
+
retention: RecordRetentionSchema,
|
|
16631
|
+
/** `true` when the kind is an entry kind (the generic entries UI lists it). */
|
|
16632
|
+
entry: boolean(),
|
|
16633
|
+
/** The whole declaration, secret paths and entry descriptor included (the entries service builds its handle from it). */
|
|
16634
|
+
declaration: RecordKindDeclarationSchema
|
|
16635
|
+
});
|
|
16249
16636
|
method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
|
|
16250
16637
|
collection: string().min(1),
|
|
16251
16638
|
expectRows: number().int().nonnegative()
|
|
@@ -16255,6 +16642,87 @@ method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: arr
|
|
|
16255
16642
|
}), {
|
|
16256
16643
|
kind: "mutation",
|
|
16257
16644
|
auth: "admin"
|
|
16645
|
+
}), method(object({
|
|
16646
|
+
owner: string().min(1).optional(),
|
|
16647
|
+
/** `false` skips the per-kind row count (a catalog read only). Default true. */
|
|
16648
|
+
counts: boolean().optional()
|
|
16649
|
+
}), object({ kinds: array(StorageKindSchema) }), { auth: "admin" }), method(RecordQueryInputSchema.extend({
|
|
16650
|
+
owner: string().min(1),
|
|
16651
|
+
kind: RecordKindNameSchema
|
|
16652
|
+
}), RecordQueryResultSchema, { auth: "admin" }), method(object({
|
|
16653
|
+
owner: string().min(1),
|
|
16654
|
+
kind: RecordKindNameSchema,
|
|
16655
|
+
records: array(RecordInputSchema).max(RECORD_BATCH_MAX),
|
|
16656
|
+
/** The LAST batch: the copy is complete, the boot guard stops asking. */
|
|
16657
|
+
complete: boolean().optional()
|
|
16658
|
+
}).refine((input) => input.records.length > 0 || input.complete === true, { message: "records must be non-empty unless complete is true" }), object({ adopted: number().int() }), {
|
|
16659
|
+
kind: "mutation",
|
|
16660
|
+
auth: "admin"
|
|
16661
|
+
}), method(object({
|
|
16662
|
+
collection: string().min(1),
|
|
16663
|
+
cursor: string().optional(),
|
|
16664
|
+
limit: number().int().min(1).max(1e3).optional()
|
|
16665
|
+
}), object({
|
|
16666
|
+
rows: array(object({
|
|
16667
|
+
id: string(),
|
|
16668
|
+
data: record(string(), unknown())
|
|
16669
|
+
})),
|
|
16670
|
+
nextCursor: string().nullable()
|
|
16671
|
+
}), { auth: "admin" }), method(object({ collection: string().min(1) }), object({ adopted: boolean() }), { auth: "admin" });
|
|
16672
|
+
/**
|
|
16673
|
+
* record-entries - the ONE admin surface for every list of user-created entries
|
|
16674
|
+
* (D881): notification targets, brokers, LLM profiles, anything an addon
|
|
16675
|
+
* declares as an ENTRY kind (`entry: { title }` in `defineRecordKinds`).
|
|
16676
|
+
*
|
|
16677
|
+
* The UI is generic. `listEntryKinds` hands it, per kind, the JSON Schema of
|
|
16678
|
+
* the entry body with `secret: true` on every credential field, so a password
|
|
16679
|
+
* field is derived from the schema and never from a name. `putEntry` takes the
|
|
16680
|
+
* redaction token for an untouched secret (the stored value is kept), a string
|
|
16681
|
+
* for a new one, and the clear instruction to remove one. A read never carries
|
|
16682
|
+
* a secret value, and a locked keychain refuses the write with
|
|
16683
|
+
* `records/secret-unavailable` instead of storing plaintext.
|
|
16684
|
+
*
|
|
16685
|
+
* Hub-only, served in-process (it acts for each entry's owner on the keychain).
|
|
16686
|
+
*/
|
|
16687
|
+
var EntryKindInfoSchema = object({
|
|
16688
|
+
owner: string(),
|
|
16689
|
+
kind: RecordKindNameSchema,
|
|
16690
|
+
title: string(),
|
|
16691
|
+
nameField: string(),
|
|
16692
|
+
/** JSON Schema of the body; `secret: true` marks a password field. */
|
|
16693
|
+
fields: record(string(), unknown()),
|
|
16694
|
+
secretPaths: array(string()),
|
|
16695
|
+
rows: number().int().nonnegative()
|
|
16696
|
+
});
|
|
16697
|
+
var EntryViewSchema = object({
|
|
16698
|
+
id: RecordIdSchema,
|
|
16699
|
+
name: string(),
|
|
16700
|
+
rev: number().int(),
|
|
16701
|
+
updatedAt: number(),
|
|
16702
|
+
/** Secret fields hold the redaction token. */
|
|
16703
|
+
data: RecordBodySchema
|
|
16704
|
+
});
|
|
16705
|
+
var EntryAddress = {
|
|
16706
|
+
owner: string().min(1),
|
|
16707
|
+
kind: RecordKindNameSchema
|
|
16708
|
+
};
|
|
16709
|
+
method(object({}), object({ kinds: array(EntryKindInfoSchema) }), { auth: "admin" }), method(object({ ...EntryAddress }), object({ entries: array(EntryViewSchema) }), { auth: "admin" }), method(object({
|
|
16710
|
+
...EntryAddress,
|
|
16711
|
+
id: RecordIdSchema.optional(),
|
|
16712
|
+
data: RecordBodySchema,
|
|
16713
|
+
ifRev: number().int().min(1).optional()
|
|
16714
|
+
}), object({
|
|
16715
|
+
id: string(),
|
|
16716
|
+
rev: number().int()
|
|
16717
|
+
}), {
|
|
16718
|
+
kind: "mutation",
|
|
16719
|
+
auth: "admin"
|
|
16720
|
+
}), method(object({
|
|
16721
|
+
...EntryAddress,
|
|
16722
|
+
id: RecordIdSchema
|
|
16723
|
+
}), object({ deleted: boolean() }), {
|
|
16724
|
+
kind: "mutation",
|
|
16725
|
+
auth: "admin"
|
|
16258
16726
|
});
|
|
16259
16727
|
/**
|
|
16260
16728
|
* `keychain` — the hub's encrypted store of secret values (D787).
|
|
@@ -17104,7 +17572,11 @@ DeviceType.Hub, DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number().int
|
|
|
17104
17572
|
});
|
|
17105
17573
|
/**
|
|
17106
17574
|
* `device-adoption` — generic discovery + adoption surface,
|
|
17107
|
-
* system-scoped
|
|
17575
|
+
* system-scoped collection (one provider per integration addon), routed
|
|
17576
|
+
* by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
|
|
17577
|
+
* pin model as `connection-test`. The admin UI keeps using
|
|
17578
|
+
* `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
|
|
17579
|
+
* successor to `ha-discovery`:
|
|
17108
17580
|
* keyed by `integrationId` (the addon resolves integrationId → broker
|
|
17109
17581
|
* internally) rather than a connection-specific `brokerId`, and it
|
|
17110
17582
|
* REUSES the shared `DiscoveredChildDevice` candidate type from
|
|
@@ -39301,6 +39773,9 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
39301
39773
|
}), _void(), { kind: "mutation" }), method(object({}), array(LlmProfileKindDescriptorSchema)), method(object({}), array(LlmProfileSchema)), method(object({ profile: LlmProfileSchema }), LlmProfileSchema, {
|
|
39302
39774
|
kind: "mutation",
|
|
39303
39775
|
auth: "admin"
|
|
39776
|
+
}), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
39777
|
+
kind: "mutation",
|
|
39778
|
+
auth: "admin"
|
|
39304
39779
|
}), method(ProfileRefInputSchema, _void(), {
|
|
39305
39780
|
kind: "mutation",
|
|
39306
39781
|
auth: "admin"
|
|
@@ -49740,6 +50215,41 @@ var ServerRollbackInfoSchema = object({
|
|
|
49740
50215
|
atMs: number(),
|
|
49741
50216
|
reason: string()
|
|
49742
50217
|
});
|
|
50218
|
+
/**
|
|
50219
|
+
* The runner boot check (D877): the runners this node PLANNED (hub: one per
|
|
50220
|
+
* `resolveRunnerId` over its forked addons; agent: the runners its process
|
|
50221
|
+
* service holds, because only the hub plans) against the states the process
|
|
50222
|
+
* service reports. Kept in memory, recomputed by the same one-shot check after
|
|
50223
|
+
* every boot, served on `getServerPackageStatus`.
|
|
50224
|
+
*
|
|
50225
|
+
* `failed` is the D6 breaker's terminal state, `refused` a deterministic Init
|
|
50226
|
+
* refusal (an addon that said "I will not start, and here is why"), `missing` a
|
|
50227
|
+
* planned runner the process service has no entry for.
|
|
50228
|
+
*/
|
|
50229
|
+
var RunnerRefusalSchema = object({
|
|
50230
|
+
runnerId: string(),
|
|
50231
|
+
addonIds: array(string()),
|
|
50232
|
+
reason: string()
|
|
50233
|
+
});
|
|
50234
|
+
var RunnerBootCheckSchema = object({
|
|
50235
|
+
checkedAtMs: number(),
|
|
50236
|
+
/** Runners planned for this node. */
|
|
50237
|
+
expected: number(),
|
|
50238
|
+
/** Planned runners whose process is `running`. */
|
|
50239
|
+
running: number(),
|
|
50240
|
+
failed: array(string()),
|
|
50241
|
+
refused: array(RunnerRefusalSchema),
|
|
50242
|
+
missing: array(string()),
|
|
50243
|
+
/**
|
|
50244
|
+
* Runners still on their way: `starting`, or `crashed` waiting on a backoff
|
|
50245
|
+
* respawn. The check is FINAL only when this is empty; until then nothing is
|
|
50246
|
+
* pushed and the verdict is re-evaluated on the next runner state change.
|
|
50247
|
+
* Optional for version skew (absent = settled).
|
|
50248
|
+
*/
|
|
50249
|
+
pending: array(string()).optional(),
|
|
50250
|
+
/** True when the plan is the hub's (`missing` is then meaningful); false on an agent. */
|
|
50251
|
+
planKnown: boolean()
|
|
50252
|
+
});
|
|
49743
50253
|
var ServerPackageStatusSchema = object({
|
|
49744
50254
|
/** Root package name (`@camstack/server` on the hub). */
|
|
49745
50255
|
packageName: string(),
|
|
@@ -49802,7 +50312,14 @@ var ServerPackageStatusSchema = object({
|
|
|
49802
50312
|
* for version skew: an older provider's payload simply omits it, and an
|
|
49803
50313
|
* absent wrapper is unknown — never `native`.
|
|
49804
50314
|
*/
|
|
49805
|
-
wrapper: WrapperIdentitySchema.optional()
|
|
50315
|
+
wrapper: WrapperIdentitySchema.optional(),
|
|
50316
|
+
/**
|
|
50317
|
+
* What this node PLANNED to run against what its process service reports
|
|
50318
|
+
* (D877). Absent until the one-shot boot check has run (~60 s after boot) and
|
|
50319
|
+
* on a provider that predates it. Absent is "not checked yet", never "all
|
|
50320
|
+
* well": a consumer that needs the answer treats it as pending.
|
|
50321
|
+
*/
|
|
50322
|
+
runners: RunnerBootCheckSchema.optional()
|
|
49806
50323
|
});
|
|
49807
50324
|
var ServerUpdateCheckResultSchema = object({
|
|
49808
50325
|
packageName: string(),
|
|
@@ -49853,6 +50370,13 @@ var ServerUpdateOutcomeSchema = _enum([
|
|
|
49853
50370
|
"refused",
|
|
49854
50371
|
"failed"
|
|
49855
50372
|
]);
|
|
50373
|
+
/** One addon the pre-flight found the target version would refuse (D877). */
|
|
50374
|
+
var UpdateBlockerSchema = object({
|
|
50375
|
+
addonId: string(),
|
|
50376
|
+
reason: string(),
|
|
50377
|
+
/** What the operator does about it. */
|
|
50378
|
+
remedy: string()
|
|
50379
|
+
});
|
|
49856
50380
|
var ServerUpdateActionResultSchema = object({
|
|
49857
50381
|
accepted: boolean(),
|
|
49858
50382
|
targetVersion: string().nullable(),
|
|
@@ -49870,14 +50394,27 @@ var ServerUpdateActionResultSchema = object({
|
|
|
49870
50394
|
* The failure itself, verbatim enough to act on (the npm output for a
|
|
49871
50395
|
* staging install). Non-null only for `failed`.
|
|
49872
50396
|
*/
|
|
49873
|
-
error: string().nullable().optional()
|
|
50397
|
+
error: string().nullable().optional(),
|
|
50398
|
+
/**
|
|
50399
|
+
* The addons the target version would refuse to start on this node's live
|
|
50400
|
+
* store (D877), present when the pre-flight refused the update
|
|
50401
|
+
* (`reason: 'addon-would-refuse'`). Optional for version skew.
|
|
50402
|
+
*/
|
|
50403
|
+
blockers: array(UpdateBlockerSchema).optional()
|
|
49874
50404
|
});
|
|
49875
50405
|
method(_void(), ServerPackageStatusSchema, { auth: "admin" }), method(_void(), ServerUpdateCheckResultSchema, {
|
|
49876
50406
|
kind: "mutation",
|
|
49877
50407
|
auth: "admin"
|
|
49878
|
-
}), method(object({
|
|
49879
|
-
/** Explicit target version; omitted = latest from the registry. */
|
|
49880
|
-
version: string().optional()
|
|
50408
|
+
}), method(object({
|
|
50409
|
+
/** Explicit target version; omitted = latest from the registry. */
|
|
50410
|
+
version: string().optional(),
|
|
50411
|
+
/**
|
|
50412
|
+
* Apply even though the pre-flight (D877) found addons the target would
|
|
50413
|
+
* refuse to start. Off by default: those addons stay down until the
|
|
50414
|
+
* remedy is run, which is the incident this gate exists to prevent.
|
|
50415
|
+
*/
|
|
50416
|
+
acknowledgeRefusals: boolean().optional()
|
|
50417
|
+
}), ServerUpdateActionResultSchema, {
|
|
49881
50418
|
kind: "mutation",
|
|
49882
50419
|
auth: "admin",
|
|
49883
50420
|
timeoutMs: 16 * 6e4
|
|
@@ -52290,7 +52827,9 @@ var ManifestShapeSchema = object({
|
|
|
52290
52827
|
var AddonProcessSchema = object({
|
|
52291
52828
|
pid: number().optional(),
|
|
52292
52829
|
mode: string(),
|
|
52293
|
-
state: string()
|
|
52830
|
+
state: string(),
|
|
52831
|
+
/** Why the runner is `refused` (an addon's own words), when it is (D877). */
|
|
52832
|
+
reason: string().optional()
|
|
52294
52833
|
});
|
|
52295
52834
|
/**
|
|
52296
52835
|
* Per-addon health snapshot from the kernel's AddonHealthMonitor.
|
|
@@ -52868,7 +53407,7 @@ var BatteryStatusSchema = object({
|
|
|
52868
53407
|
*/
|
|
52869
53408
|
binary: boolean().optional()
|
|
52870
53409
|
});
|
|
52871
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, method(object({
|
|
53410
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, method(object({
|
|
52872
53411
|
deviceId: number(),
|
|
52873
53412
|
/** Bound on the wait. Sensible range 3000–10000ms. */
|
|
52874
53413
|
timeoutMs: number().int().min(500).max(3e4).default(8e3)
|
|
@@ -53768,6 +54307,130 @@ object({
|
|
|
53768
54307
|
deviceId: number(),
|
|
53769
54308
|
status: DeviceStatusSchema
|
|
53770
54309
|
});
|
|
54310
|
+
/**
|
|
54311
|
+
* Smart-dishwasher cap — program lifecycle, door / remote-start gates,
|
|
54312
|
+
* consumable levels (salt, rinse aid) and common program options.
|
|
54313
|
+
*
|
|
54314
|
+
* Sources: native Bosch Home Connect (`dishwasher` device type). Reusable
|
|
54315
|
+
* by any integration that exposes the same program / option surface.
|
|
54316
|
+
*
|
|
54317
|
+
* `kind: 'poll'` — cloud REST APIs typically have no push channel; the
|
|
54318
|
+
* provider refreshes the slice on an interval and eagerly after commands.
|
|
54319
|
+
*/
|
|
54320
|
+
var DishwasherStateSchema = _enum([
|
|
54321
|
+
"idle",
|
|
54322
|
+
"running",
|
|
54323
|
+
"paused",
|
|
54324
|
+
"finished",
|
|
54325
|
+
"error",
|
|
54326
|
+
"unavailable"
|
|
54327
|
+
]);
|
|
54328
|
+
var DishwasherConsumableLevelSchema = _enum([
|
|
54329
|
+
"ok",
|
|
54330
|
+
"low",
|
|
54331
|
+
"empty"
|
|
54332
|
+
]);
|
|
54333
|
+
object({
|
|
54334
|
+
state: DishwasherStateSchema,
|
|
54335
|
+
/** Active program id/name, or null when none selected / unknown. */
|
|
54336
|
+
program: string().nullable(),
|
|
54337
|
+
/** Program tokens the hardware accepts — drives the UI selector. */
|
|
54338
|
+
availablePrograms: array(string()),
|
|
54339
|
+
/** Minutes remaining on the active cycle, or null when not running. */
|
|
54340
|
+
remainingMinutes: number().int().nonnegative().nullable(),
|
|
54341
|
+
/** Cycle completion 0..100, or null when not applicable. */
|
|
54342
|
+
progressPercent: number().min(0).max(100).nullable(),
|
|
54343
|
+
/** True when the door is reported open. */
|
|
54344
|
+
doorOpen: boolean(),
|
|
54345
|
+
/** True when remote start is allowed (door closed, power on, etc.). */
|
|
54346
|
+
remoteStartAllowed: boolean(),
|
|
54347
|
+
/** Main power / switched-on state. */
|
|
54348
|
+
powerOn: boolean(),
|
|
54349
|
+
saltLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54350
|
+
rinseAidLevel: DishwasherConsumableLevelSchema.nullable(),
|
|
54351
|
+
halfLoad: boolean(),
|
|
54352
|
+
hygienePlus: boolean(),
|
|
54353
|
+
/** Extra dry option when the appliance exposes it. */
|
|
54354
|
+
extraDry: boolean(),
|
|
54355
|
+
/** Intensive zone (lower basket) when the appliance exposes it. */
|
|
54356
|
+
intensiveZone: boolean(),
|
|
54357
|
+
/** VarioSpeed / VarioSpeed+ when the appliance exposes it. */
|
|
54358
|
+
varioSpeedPlus: boolean(),
|
|
54359
|
+
/** Child lock (controls disabled on the appliance). */
|
|
54360
|
+
childLock: boolean(),
|
|
54361
|
+
errorCode: number().nullable(),
|
|
54362
|
+
errorLabel: string().nullable(),
|
|
54363
|
+
lastFetchedAt: number()
|
|
54364
|
+
});
|
|
54365
|
+
DeviceType.Dishwasher, method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
54366
|
+
kind: "mutation",
|
|
54367
|
+
auth: "protected"
|
|
54368
|
+
}), method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
54369
|
+
kind: "mutation",
|
|
54370
|
+
auth: "protected"
|
|
54371
|
+
}), method(object({ deviceId: number().int().nonnegative() }), _void(), {
|
|
54372
|
+
kind: "mutation",
|
|
54373
|
+
auth: "protected"
|
|
54374
|
+
}), method(object({
|
|
54375
|
+
deviceId: number().int().nonnegative(),
|
|
54376
|
+
program: string().min(1)
|
|
54377
|
+
}), _void(), {
|
|
54378
|
+
kind: "mutation",
|
|
54379
|
+
auth: "protected"
|
|
54380
|
+
}), method(object({
|
|
54381
|
+
deviceId: number().int().nonnegative(),
|
|
54382
|
+
on: boolean()
|
|
54383
|
+
}), _void(), {
|
|
54384
|
+
kind: "mutation",
|
|
54385
|
+
auth: "protected"
|
|
54386
|
+
}), method(object({
|
|
54387
|
+
deviceId: number().int().nonnegative(),
|
|
54388
|
+
on: boolean()
|
|
54389
|
+
}), _void(), {
|
|
54390
|
+
kind: "mutation",
|
|
54391
|
+
auth: "protected"
|
|
54392
|
+
}), method(object({
|
|
54393
|
+
deviceId: number().int().nonnegative(),
|
|
54394
|
+
on: boolean()
|
|
54395
|
+
}), _void(), {
|
|
54396
|
+
kind: "mutation",
|
|
54397
|
+
auth: "protected"
|
|
54398
|
+
}), method(object({
|
|
54399
|
+
deviceId: number().int().nonnegative(),
|
|
54400
|
+
on: boolean()
|
|
54401
|
+
}), _void(), {
|
|
54402
|
+
kind: "mutation",
|
|
54403
|
+
auth: "protected"
|
|
54404
|
+
}), method(object({
|
|
54405
|
+
deviceId: number().int().nonnegative(),
|
|
54406
|
+
on: boolean()
|
|
54407
|
+
}), _void(), {
|
|
54408
|
+
kind: "mutation",
|
|
54409
|
+
auth: "protected"
|
|
54410
|
+
}), method(object({
|
|
54411
|
+
deviceId: number().int().nonnegative(),
|
|
54412
|
+
on: boolean()
|
|
54413
|
+
}), _void(), {
|
|
54414
|
+
kind: "mutation",
|
|
54415
|
+
auth: "protected"
|
|
54416
|
+
}), method(object({
|
|
54417
|
+
deviceId: number().int().nonnegative(),
|
|
54418
|
+
on: boolean()
|
|
54419
|
+
}), _void(), {
|
|
54420
|
+
kind: "mutation",
|
|
54421
|
+
auth: "protected"
|
|
54422
|
+
}), method(object({
|
|
54423
|
+
deviceId: number().int().nonnegative(),
|
|
54424
|
+
key: string().min(1),
|
|
54425
|
+
value: union([
|
|
54426
|
+
boolean(),
|
|
54427
|
+
string(),
|
|
54428
|
+
number()
|
|
54429
|
+
])
|
|
54430
|
+
}), _void(), {
|
|
54431
|
+
kind: "mutation",
|
|
54432
|
+
auth: "protected"
|
|
54433
|
+
});
|
|
53771
54434
|
object({
|
|
53772
54435
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
53773
54436
|
lastPressedAt: number().nullable(),
|
|
@@ -54333,6 +54996,13 @@ object({
|
|
|
54333
54996
|
lastChangedAt: number()
|
|
54334
54997
|
});
|
|
54335
54998
|
DeviceType.Sensor;
|
|
54999
|
+
object({
|
|
55000
|
+
/** Radiator valve opening 0 (closed) .. 100 (open). Null = not yet known. */
|
|
55001
|
+
position: number().min(0).max(100).nullable(),
|
|
55002
|
+
/** Ms epoch when the slice was last updated (push or poll). */
|
|
55003
|
+
lastFetchedAt: number()
|
|
55004
|
+
});
|
|
55005
|
+
DeviceType.Thermostat;
|
|
54336
55006
|
object({
|
|
54337
55007
|
/** Whether the humidifier is currently on. */
|
|
54338
55008
|
on: boolean(),
|
|
@@ -60374,7 +61044,11 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
60374
61044
|
kind: "mutation",
|
|
60375
61045
|
auth: "admin",
|
|
60376
61046
|
access: "delete"
|
|
60377
|
-
}), method(object({ userId: string() }), TotpStatusSchema, { auth: "admin" }), method(
|
|
61047
|
+
}), method(object({ userId: string() }), TotpStatusSchema, { auth: "admin" }), method(RawSecretMigrationInputSchema, RawSecretMigrationReportSchema, {
|
|
61048
|
+
kind: "mutation",
|
|
61049
|
+
auth: "admin",
|
|
61050
|
+
access: "create"
|
|
61051
|
+
}), method(object({
|
|
60378
61052
|
userId: string(),
|
|
60379
61053
|
code: string()
|
|
60380
61054
|
}), object({ valid: boolean() }), {
|
|
@@ -61426,7 +62100,7 @@ var AccessoryKind = {
|
|
|
61426
62100
|
PrivacyMask: DeviceRole.PrivacyMask
|
|
61427
62101
|
};
|
|
61428
62102
|
AccessoryKind.Siren, AccessoryKind.Floodlight, AccessoryKind.Spotlight, AccessoryKind.PirSensor, AccessoryKind.Chime, AccessoryKind.Autotrack, AccessoryKind.Nightvision, AccessoryKind.PrivacyMask;
|
|
61429
|
-
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;
|
|
62103
|
+
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;
|
|
61430
62104
|
new Set(Object.values(DeviceType));
|
|
61431
62105
|
Object.freeze({
|
|
61432
62106
|
"accessories.getStatus": {
|
|
@@ -62575,6 +63249,12 @@ Object.freeze({
|
|
|
62575
63249
|
addonId: null,
|
|
62576
63250
|
access: "view"
|
|
62577
63251
|
},
|
|
63252
|
+
"coreBlocks.migrateRawSecrets": {
|
|
63253
|
+
capName: "core-blocks",
|
|
63254
|
+
capScope: "system",
|
|
63255
|
+
addonId: null,
|
|
63256
|
+
access: "create"
|
|
63257
|
+
},
|
|
62578
63258
|
"coreBlocks.restart": {
|
|
62579
63259
|
capName: "core-blocks",
|
|
62580
63260
|
capScope: "system",
|
|
@@ -63841,6 +64521,84 @@ Object.freeze({
|
|
|
63841
64521
|
addonId: null,
|
|
63842
64522
|
access: "view"
|
|
63843
64523
|
},
|
|
64524
|
+
"dishwasher.getStatus": {
|
|
64525
|
+
capName: "dishwasher",
|
|
64526
|
+
capScope: "device",
|
|
64527
|
+
addonId: null,
|
|
64528
|
+
access: "view"
|
|
64529
|
+
},
|
|
64530
|
+
"dishwasher.pause": {
|
|
64531
|
+
capName: "dishwasher",
|
|
64532
|
+
capScope: "device",
|
|
64533
|
+
addonId: null,
|
|
64534
|
+
access: "create"
|
|
64535
|
+
},
|
|
64536
|
+
"dishwasher.setChildLock": {
|
|
64537
|
+
capName: "dishwasher",
|
|
64538
|
+
capScope: "device",
|
|
64539
|
+
addonId: null,
|
|
64540
|
+
access: "create"
|
|
64541
|
+
},
|
|
64542
|
+
"dishwasher.setExtraDry": {
|
|
64543
|
+
capName: "dishwasher",
|
|
64544
|
+
capScope: "device",
|
|
64545
|
+
addonId: null,
|
|
64546
|
+
access: "create"
|
|
64547
|
+
},
|
|
64548
|
+
"dishwasher.setHalfLoad": {
|
|
64549
|
+
capName: "dishwasher",
|
|
64550
|
+
capScope: "device",
|
|
64551
|
+
addonId: null,
|
|
64552
|
+
access: "create"
|
|
64553
|
+
},
|
|
64554
|
+
"dishwasher.setHygienePlus": {
|
|
64555
|
+
capName: "dishwasher",
|
|
64556
|
+
capScope: "device",
|
|
64557
|
+
addonId: null,
|
|
64558
|
+
access: "create"
|
|
64559
|
+
},
|
|
64560
|
+
"dishwasher.setIntensiveZone": {
|
|
64561
|
+
capName: "dishwasher",
|
|
64562
|
+
capScope: "device",
|
|
64563
|
+
addonId: null,
|
|
64564
|
+
access: "create"
|
|
64565
|
+
},
|
|
64566
|
+
"dishwasher.setOption": {
|
|
64567
|
+
capName: "dishwasher",
|
|
64568
|
+
capScope: "device",
|
|
64569
|
+
addonId: null,
|
|
64570
|
+
access: "create"
|
|
64571
|
+
},
|
|
64572
|
+
"dishwasher.setPower": {
|
|
64573
|
+
capName: "dishwasher",
|
|
64574
|
+
capScope: "device",
|
|
64575
|
+
addonId: null,
|
|
64576
|
+
access: "create"
|
|
64577
|
+
},
|
|
64578
|
+
"dishwasher.setProgram": {
|
|
64579
|
+
capName: "dishwasher",
|
|
64580
|
+
capScope: "device",
|
|
64581
|
+
addonId: null,
|
|
64582
|
+
access: "create"
|
|
64583
|
+
},
|
|
64584
|
+
"dishwasher.setVarioSpeedPlus": {
|
|
64585
|
+
capName: "dishwasher",
|
|
64586
|
+
capScope: "device",
|
|
64587
|
+
addonId: null,
|
|
64588
|
+
access: "create"
|
|
64589
|
+
},
|
|
64590
|
+
"dishwasher.start": {
|
|
64591
|
+
capName: "dishwasher",
|
|
64592
|
+
capScope: "device",
|
|
64593
|
+
addonId: null,
|
|
64594
|
+
access: "create"
|
|
64595
|
+
},
|
|
64596
|
+
"dishwasher.stop": {
|
|
64597
|
+
capName: "dishwasher",
|
|
64598
|
+
capScope: "device",
|
|
64599
|
+
addonId: null,
|
|
64600
|
+
access: "create"
|
|
64601
|
+
},
|
|
63844
64602
|
"doorbell.getStatus": {
|
|
63845
64603
|
capName: "doorbell",
|
|
63846
64604
|
capScope: "device",
|
|
@@ -64051,6 +64809,12 @@ Object.freeze({
|
|
|
64051
64809
|
addonId: null,
|
|
64052
64810
|
access: "view"
|
|
64053
64811
|
},
|
|
64812
|
+
"heatingValve.getStatus": {
|
|
64813
|
+
capName: "heating-valve",
|
|
64814
|
+
capScope: "device",
|
|
64815
|
+
addonId: null,
|
|
64816
|
+
access: "view"
|
|
64817
|
+
},
|
|
64054
64818
|
"humidifier.getStatus": {
|
|
64055
64819
|
capName: "humidifier",
|
|
64056
64820
|
capScope: "device",
|
|
@@ -64435,6 +65199,12 @@ Object.freeze({
|
|
|
64435
65199
|
addonId: null,
|
|
64436
65200
|
access: "view"
|
|
64437
65201
|
},
|
|
65202
|
+
"llm.migrateRawSecrets": {
|
|
65203
|
+
capName: "llm",
|
|
65204
|
+
capScope: "system",
|
|
65205
|
+
addonId: null,
|
|
65206
|
+
access: "create"
|
|
65207
|
+
},
|
|
64438
65208
|
"llm.resolveModelRef": {
|
|
64439
65209
|
capName: "llm",
|
|
64440
65210
|
capScope: "system",
|
|
@@ -67321,6 +68091,30 @@ Object.freeze({
|
|
|
67321
68091
|
addonId: null,
|
|
67322
68092
|
access: "create"
|
|
67323
68093
|
},
|
|
68094
|
+
"recordEntries.deleteEntry": {
|
|
68095
|
+
capName: "record-entries",
|
|
68096
|
+
capScope: "system",
|
|
68097
|
+
addonId: null,
|
|
68098
|
+
access: "delete"
|
|
68099
|
+
},
|
|
68100
|
+
"recordEntries.listEntries": {
|
|
68101
|
+
capName: "record-entries",
|
|
68102
|
+
capScope: "system",
|
|
68103
|
+
addonId: null,
|
|
68104
|
+
access: "view"
|
|
68105
|
+
},
|
|
68106
|
+
"recordEntries.listEntryKinds": {
|
|
68107
|
+
capName: "record-entries",
|
|
68108
|
+
capScope: "system",
|
|
68109
|
+
addonId: null,
|
|
68110
|
+
access: "view"
|
|
68111
|
+
},
|
|
68112
|
+
"recordEntries.putEntry": {
|
|
68113
|
+
capName: "record-entries",
|
|
68114
|
+
capScope: "system",
|
|
68115
|
+
addonId: null,
|
|
68116
|
+
access: "create"
|
|
68117
|
+
},
|
|
67324
68118
|
"recording.getAvailability": {
|
|
67325
68119
|
capName: "recording",
|
|
67326
68120
|
capScope: "device",
|
|
@@ -67621,6 +68415,102 @@ Object.freeze({
|
|
|
67621
68415
|
addonId: null,
|
|
67622
68416
|
access: "view"
|
|
67623
68417
|
},
|
|
68418
|
+
"records.aggregate": {
|
|
68419
|
+
capName: "records",
|
|
68420
|
+
capScope: "system",
|
|
68421
|
+
addonId: null,
|
|
68422
|
+
access: "view"
|
|
68423
|
+
},
|
|
68424
|
+
"records.allocateId": {
|
|
68425
|
+
capName: "records",
|
|
68426
|
+
capScope: "system",
|
|
68427
|
+
addonId: null,
|
|
68428
|
+
access: "create"
|
|
68429
|
+
},
|
|
68430
|
+
"records.count": {
|
|
68431
|
+
capName: "records",
|
|
68432
|
+
capScope: "system",
|
|
68433
|
+
addonId: null,
|
|
68434
|
+
access: "view"
|
|
68435
|
+
},
|
|
68436
|
+
"records.declareKinds": {
|
|
68437
|
+
capName: "records",
|
|
68438
|
+
capScope: "system",
|
|
68439
|
+
addonId: null,
|
|
68440
|
+
access: "create"
|
|
68441
|
+
},
|
|
68442
|
+
"records.delete": {
|
|
68443
|
+
capName: "records",
|
|
68444
|
+
capScope: "system",
|
|
68445
|
+
addonId: null,
|
|
68446
|
+
access: "delete"
|
|
68447
|
+
},
|
|
68448
|
+
"records.deleteDevice": {
|
|
68449
|
+
capName: "records",
|
|
68450
|
+
capScope: "system",
|
|
68451
|
+
addonId: null,
|
|
68452
|
+
access: "delete"
|
|
68453
|
+
},
|
|
68454
|
+
"records.deleteMany": {
|
|
68455
|
+
capName: "records",
|
|
68456
|
+
capScope: "system",
|
|
68457
|
+
addonId: null,
|
|
68458
|
+
access: "delete"
|
|
68459
|
+
},
|
|
68460
|
+
"records.deleteWhere": {
|
|
68461
|
+
capName: "records",
|
|
68462
|
+
capScope: "system",
|
|
68463
|
+
addonId: null,
|
|
68464
|
+
access: "delete"
|
|
68465
|
+
},
|
|
68466
|
+
"records.get": {
|
|
68467
|
+
capName: "records",
|
|
68468
|
+
capScope: "system",
|
|
68469
|
+
addonId: null,
|
|
68470
|
+
access: "view"
|
|
68471
|
+
},
|
|
68472
|
+
"records.getMany": {
|
|
68473
|
+
capName: "records",
|
|
68474
|
+
capScope: "system",
|
|
68475
|
+
addonId: null,
|
|
68476
|
+
access: "view"
|
|
68477
|
+
},
|
|
68478
|
+
"records.histogram": {
|
|
68479
|
+
capName: "records",
|
|
68480
|
+
capScope: "system",
|
|
68481
|
+
addonId: null,
|
|
68482
|
+
access: "view"
|
|
68483
|
+
},
|
|
68484
|
+
"records.patch": {
|
|
68485
|
+
capName: "records",
|
|
68486
|
+
capScope: "system",
|
|
68487
|
+
addonId: null,
|
|
68488
|
+
access: "create"
|
|
68489
|
+
},
|
|
68490
|
+
"records.put": {
|
|
68491
|
+
capName: "records",
|
|
68492
|
+
capScope: "system",
|
|
68493
|
+
addonId: null,
|
|
68494
|
+
access: "create"
|
|
68495
|
+
},
|
|
68496
|
+
"records.putMany": {
|
|
68497
|
+
capName: "records",
|
|
68498
|
+
capScope: "system",
|
|
68499
|
+
addonId: null,
|
|
68500
|
+
access: "create"
|
|
68501
|
+
},
|
|
68502
|
+
"records.query": {
|
|
68503
|
+
capName: "records",
|
|
68504
|
+
capScope: "system",
|
|
68505
|
+
addonId: null,
|
|
68506
|
+
access: "view"
|
|
68507
|
+
},
|
|
68508
|
+
"records.secretRefs": {
|
|
68509
|
+
capName: "records",
|
|
68510
|
+
capScope: "system",
|
|
68511
|
+
addonId: null,
|
|
68512
|
+
access: "view"
|
|
68513
|
+
},
|
|
67624
68514
|
"sceneMonitor.captureReference": {
|
|
67625
68515
|
capName: "scene-monitor",
|
|
67626
68516
|
capScope: "device",
|
|
@@ -68053,18 +68943,48 @@ Object.freeze({
|
|
|
68053
68943
|
addonId: null,
|
|
68054
68944
|
access: "create"
|
|
68055
68945
|
},
|
|
68946
|
+
"storageAdmin.adoptRecords": {
|
|
68947
|
+
capName: "storage-admin",
|
|
68948
|
+
capScope: "system",
|
|
68949
|
+
addonId: null,
|
|
68950
|
+
access: "create"
|
|
68951
|
+
},
|
|
68056
68952
|
"storageAdmin.dropCollection": {
|
|
68057
68953
|
capName: "storage-admin",
|
|
68058
68954
|
capScope: "system",
|
|
68059
68955
|
addonId: null,
|
|
68060
68956
|
access: "delete"
|
|
68061
68957
|
},
|
|
68958
|
+
"storageAdmin.isAdoptedLegacyTable": {
|
|
68959
|
+
capName: "storage-admin",
|
|
68960
|
+
capScope: "system",
|
|
68961
|
+
addonId: null,
|
|
68962
|
+
access: "view"
|
|
68963
|
+
},
|
|
68964
|
+
"storageAdmin.listKinds": {
|
|
68965
|
+
capName: "storage-admin",
|
|
68966
|
+
capScope: "system",
|
|
68967
|
+
addonId: null,
|
|
68968
|
+
access: "view"
|
|
68969
|
+
},
|
|
68062
68970
|
"storageAdmin.listTables": {
|
|
68063
68971
|
capName: "storage-admin",
|
|
68064
68972
|
capScope: "system",
|
|
68065
68973
|
addonId: null,
|
|
68066
68974
|
access: "view"
|
|
68067
68975
|
},
|
|
68976
|
+
"storageAdmin.readLegacyCollection": {
|
|
68977
|
+
capName: "storage-admin",
|
|
68978
|
+
capScope: "system",
|
|
68979
|
+
addonId: null,
|
|
68980
|
+
access: "view"
|
|
68981
|
+
},
|
|
68982
|
+
"storageAdmin.readRecords": {
|
|
68983
|
+
capName: "storage-admin",
|
|
68984
|
+
capScope: "system",
|
|
68985
|
+
addonId: null,
|
|
68986
|
+
access: "view"
|
|
68987
|
+
},
|
|
68068
68988
|
"storageEvictable.evict": {
|
|
68069
68989
|
capName: "storage-evictable",
|
|
68070
68990
|
capScope: "system",
|
|
@@ -68977,6 +69897,12 @@ Object.freeze({
|
|
|
68977
69897
|
addonId: null,
|
|
68978
69898
|
access: "view"
|
|
68979
69899
|
},
|
|
69900
|
+
"userManagement.migrateRawSecrets": {
|
|
69901
|
+
capName: "user-management",
|
|
69902
|
+
capScope: "system",
|
|
69903
|
+
addonId: null,
|
|
69904
|
+
access: "create"
|
|
69905
|
+
},
|
|
68980
69906
|
"userManagement.oauthExchangeCode": {
|
|
68981
69907
|
capName: "user-management",
|
|
68982
69908
|
capScope: "system",
|
|
@@ -69476,7 +70402,7 @@ Object.freeze({
|
|
|
69476
70402
|
access: "create"
|
|
69477
70403
|
}
|
|
69478
70404
|
});
|
|
69479
|
-
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;
|
|
70405
|
+
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;
|
|
69480
70406
|
DeviceFeature.BatteryOperated;
|
|
69481
70407
|
Object.freeze({
|
|
69482
70408
|
"accessories.getStatus": [{
|
|
@@ -70300,6 +71226,71 @@ Object.freeze({
|
|
|
70300
71226
|
form: "single",
|
|
70301
71227
|
optional: false
|
|
70302
71228
|
}],
|
|
71229
|
+
"dishwasher.getStatus": [{
|
|
71230
|
+
name: "deviceId",
|
|
71231
|
+
form: "single",
|
|
71232
|
+
optional: false
|
|
71233
|
+
}],
|
|
71234
|
+
"dishwasher.pause": [{
|
|
71235
|
+
name: "deviceId",
|
|
71236
|
+
form: "single",
|
|
71237
|
+
optional: false
|
|
71238
|
+
}],
|
|
71239
|
+
"dishwasher.setChildLock": [{
|
|
71240
|
+
name: "deviceId",
|
|
71241
|
+
form: "single",
|
|
71242
|
+
optional: false
|
|
71243
|
+
}],
|
|
71244
|
+
"dishwasher.setExtraDry": [{
|
|
71245
|
+
name: "deviceId",
|
|
71246
|
+
form: "single",
|
|
71247
|
+
optional: false
|
|
71248
|
+
}],
|
|
71249
|
+
"dishwasher.setHalfLoad": [{
|
|
71250
|
+
name: "deviceId",
|
|
71251
|
+
form: "single",
|
|
71252
|
+
optional: false
|
|
71253
|
+
}],
|
|
71254
|
+
"dishwasher.setHygienePlus": [{
|
|
71255
|
+
name: "deviceId",
|
|
71256
|
+
form: "single",
|
|
71257
|
+
optional: false
|
|
71258
|
+
}],
|
|
71259
|
+
"dishwasher.setIntensiveZone": [{
|
|
71260
|
+
name: "deviceId",
|
|
71261
|
+
form: "single",
|
|
71262
|
+
optional: false
|
|
71263
|
+
}],
|
|
71264
|
+
"dishwasher.setOption": [{
|
|
71265
|
+
name: "deviceId",
|
|
71266
|
+
form: "single",
|
|
71267
|
+
optional: false
|
|
71268
|
+
}],
|
|
71269
|
+
"dishwasher.setPower": [{
|
|
71270
|
+
name: "deviceId",
|
|
71271
|
+
form: "single",
|
|
71272
|
+
optional: false
|
|
71273
|
+
}],
|
|
71274
|
+
"dishwasher.setProgram": [{
|
|
71275
|
+
name: "deviceId",
|
|
71276
|
+
form: "single",
|
|
71277
|
+
optional: false
|
|
71278
|
+
}],
|
|
71279
|
+
"dishwasher.setVarioSpeedPlus": [{
|
|
71280
|
+
name: "deviceId",
|
|
71281
|
+
form: "single",
|
|
71282
|
+
optional: false
|
|
71283
|
+
}],
|
|
71284
|
+
"dishwasher.start": [{
|
|
71285
|
+
name: "deviceId",
|
|
71286
|
+
form: "single",
|
|
71287
|
+
optional: false
|
|
71288
|
+
}],
|
|
71289
|
+
"dishwasher.stop": [{
|
|
71290
|
+
name: "deviceId",
|
|
71291
|
+
form: "single",
|
|
71292
|
+
optional: false
|
|
71293
|
+
}],
|
|
70303
71294
|
"doorbell.getStatus": [{
|
|
70304
71295
|
name: "deviceId",
|
|
70305
71296
|
form: "single",
|
|
@@ -70369,6 +71360,11 @@ Object.freeze({
|
|
|
70369
71360
|
form: "single",
|
|
70370
71361
|
optional: false
|
|
70371
71362
|
}],
|
|
71363
|
+
"heatingValve.getStatus": [{
|
|
71364
|
+
name: "deviceId",
|
|
71365
|
+
form: "single",
|
|
71366
|
+
optional: false
|
|
71367
|
+
}],
|
|
70372
71368
|
"humidifier.getStatus": [{
|
|
70373
71369
|
name: "deviceId",
|
|
70374
71370
|
form: "single",
|
|
@@ -71653,6 +72649,37 @@ Object.freeze({
|
|
|
71653
72649
|
form: "single",
|
|
71654
72650
|
optional: false
|
|
71655
72651
|
}],
|
|
72652
|
+
"records.count": [{
|
|
72653
|
+
name: "deviceId",
|
|
72654
|
+
form: "single",
|
|
72655
|
+
optional: true
|
|
72656
|
+
}],
|
|
72657
|
+
"records.deleteDevice": [{
|
|
72658
|
+
name: "deviceId",
|
|
72659
|
+
form: "single",
|
|
72660
|
+
optional: false
|
|
72661
|
+
}],
|
|
72662
|
+
"records.deleteWhere": [{
|
|
72663
|
+
name: "deviceId",
|
|
72664
|
+
form: "single",
|
|
72665
|
+
optional: true
|
|
72666
|
+
}],
|
|
72667
|
+
"records.histogram": [{
|
|
72668
|
+
name: "deviceId",
|
|
72669
|
+
form: "single",
|
|
72670
|
+
optional: true
|
|
72671
|
+
}],
|
|
72672
|
+
"records.putMany": [{
|
|
72673
|
+
name: "records",
|
|
72674
|
+
form: "object-array",
|
|
72675
|
+
optional: false,
|
|
72676
|
+
itemField: "deviceId"
|
|
72677
|
+
}],
|
|
72678
|
+
"records.query": [{
|
|
72679
|
+
name: "deviceId",
|
|
72680
|
+
form: "single",
|
|
72681
|
+
optional: true
|
|
72682
|
+
}],
|
|
71656
72683
|
"sceneMonitor.captureReference": [{
|
|
71657
72684
|
name: "deviceId",
|
|
71658
72685
|
form: "single",
|
|
@@ -71769,6 +72796,17 @@ Object.freeze({
|
|
|
71769
72796
|
form: "single",
|
|
71770
72797
|
optional: false
|
|
71771
72798
|
}],
|
|
72799
|
+
"storageAdmin.adoptRecords": [{
|
|
72800
|
+
name: "records",
|
|
72801
|
+
form: "object-array",
|
|
72802
|
+
optional: false,
|
|
72803
|
+
itemField: "deviceId"
|
|
72804
|
+
}],
|
|
72805
|
+
"storageAdmin.readRecords": [{
|
|
72806
|
+
name: "deviceId",
|
|
72807
|
+
form: "single",
|
|
72808
|
+
optional: true
|
|
72809
|
+
}],
|
|
71772
72810
|
"streamBroker.acquireEgressTranscode": [{
|
|
71773
72811
|
name: "deviceId",
|
|
71774
72812
|
form: "single",
|