@camstack/addon-provider-homeassistant 1.2.612 → 1.2.614
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/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/{dist-CG5youVr.mjs → dist-DULXoGnO.mjs} +26 -32
- package/dist/{dist-C6Zhog8_.js → dist-i6ntIgzS.js} +26 -32
- package/dist/ha-export/ha-export.addon.js +1 -1
- package/dist/ha-export/ha-export.addon.mjs +1 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-i6ntIgzS.js");
|
|
3
3
|
let node_crypto = require("node:crypto");
|
|
4
4
|
let node_zlib = require("node:zlib");
|
|
5
5
|
//#region src/ha-admin-link.ts
|
package/dist/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as connectivityCapability, At as discriminatedUnion, B as floodCapability, C as buildAddonRouteProvider, Ct as defineEntryKind, D as carbonMonoxideCapability, Dt as _enum, E as calendarSourceCapability, F as deviceAdoptionCapability, Ft as string, G as lawnMowerControlCapability, H as humidifierCapability, It as union, J as motionCapability, K as lockControlCapability, L as enumSensorCapability, Lt as unknown, M as controlCapability, Mt as number, N as coverCapability, Nt as object, O as climateControlCapability, Ot as array, P as deviceAdminLinkCapability, Pt as record, Q as numericSensorCapability, R as eventEmitterCapability, Rt as url, S as brokerCapability, St as createEvent, T as buttonCapability, Tt as entryBody, U as humiditySensorCapability, V as gasCapability, W as imageCapability, X as notificationOutputCapability, Y as normalizeUnit, Z as notifierCapability, _ as automationControlCapability, _t as DeviceRole, at as scriptRunnerCapability, b as binaryCapability, ct as tamperCapability, d as TargetSchema, dt as vacuumControlCapability, et as parseAdminBase, f as accessoriesCapability, ft as valveCapability, g as ambientLightSensorCapability, gt as DeviceFeature, h as alarmPanelCapability, ht as weatherCapability, it as pressureSensorCapability, j as contactCapability, jt as literal, k as colorCapability, kt as boolean, lt as temperatureSensorCapability, m as airQualitySensorCapability, mt as waterHeaterCapability, n as BaseDevice, nt as prepareNotification, ot as smokeCapability, p as addonRoutesCapability, pt as vibrationCapability, q as mediaPlayerCapability, r as BaseDeviceProvider, rt as presenceCapability, s as EnumSensorDateTimeFormatSchema, st as switchCapability, tt as powerMeterCapability, ut as updateCapability, v as batteryCapability, vt as DeviceType, w as buildDeviceAdminUrl, wt as defineRecordKinds, x as brightnessCapability, xt as RecordSecretUnavailableError, y as bestLocationMatch, yt as errMsg, z as fanControlCapability, zt as EventCategory } from "./dist-
|
|
1
|
+
import { A as connectivityCapability, At as discriminatedUnion, B as floodCapability, C as buildAddonRouteProvider, Ct as defineEntryKind, D as carbonMonoxideCapability, Dt as _enum, E as calendarSourceCapability, F as deviceAdoptionCapability, Ft as string, G as lawnMowerControlCapability, H as humidifierCapability, It as union, J as motionCapability, K as lockControlCapability, L as enumSensorCapability, Lt as unknown, M as controlCapability, Mt as number, N as coverCapability, Nt as object, O as climateControlCapability, Ot as array, P as deviceAdminLinkCapability, Pt as record, Q as numericSensorCapability, R as eventEmitterCapability, Rt as url, S as brokerCapability, St as createEvent, T as buttonCapability, Tt as entryBody, U as humiditySensorCapability, V as gasCapability, W as imageCapability, X as notificationOutputCapability, Y as normalizeUnit, Z as notifierCapability, _ as automationControlCapability, _t as DeviceRole, at as scriptRunnerCapability, b as binaryCapability, ct as tamperCapability, d as TargetSchema, dt as vacuumControlCapability, et as parseAdminBase, f as accessoriesCapability, ft as valveCapability, g as ambientLightSensorCapability, gt as DeviceFeature, h as alarmPanelCapability, ht as weatherCapability, it as pressureSensorCapability, j as contactCapability, jt as literal, k as colorCapability, kt as boolean, lt as temperatureSensorCapability, m as airQualitySensorCapability, mt as waterHeaterCapability, n as BaseDevice, nt as prepareNotification, ot as smokeCapability, p as addonRoutesCapability, pt as vibrationCapability, q as mediaPlayerCapability, r as BaseDeviceProvider, rt as presenceCapability, s as EnumSensorDateTimeFormatSchema, st as switchCapability, tt as powerMeterCapability, ut as updateCapability, v as batteryCapability, vt as DeviceType, w as buildDeviceAdminUrl, wt as defineRecordKinds, x as brightnessCapability, xt as RecordSecretUnavailableError, y as bestLocationMatch, yt as errMsg, z as fanControlCapability, zt as EventCategory } from "./dist-DULXoGnO.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { brotliCompressSync, deflateSync, gzipSync } from "node:zlib";
|
|
4
4
|
//#region src/ha-admin-link.ts
|
|
@@ -5546,7 +5546,7 @@ var ZodIssueCode = {
|
|
|
5546
5546
|
var ZodFirstPartyTypeKind;
|
|
5547
5547
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5548
5548
|
//#endregion
|
|
5549
|
-
//#region ../types/dist/sleep-
|
|
5549
|
+
//#region ../types/dist/sleep-_sV1BE2f.mjs
|
|
5550
5550
|
/**
|
|
5551
5551
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5552
5552
|
* window to float samples (D455).
|
|
@@ -5663,7 +5663,7 @@ function isKeychainStoredField(field) {
|
|
|
5663
5663
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5664
5664
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5665
5665
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5666
|
-
function isRecord$
|
|
5666
|
+
function isRecord$6(value) {
|
|
5667
5667
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5668
5668
|
}
|
|
5669
5669
|
function makeSecretMarker(ref) {
|
|
@@ -5674,12 +5674,12 @@ function makeSecretMarker(ref) {
|
|
|
5674
5674
|
}
|
|
5675
5675
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5676
5676
|
function isSecretMarker(value) {
|
|
5677
|
-
if (!isRecord$
|
|
5677
|
+
if (!isRecord$6(value)) return false;
|
|
5678
5678
|
const ref = value["$secret"];
|
|
5679
5679
|
return typeof ref === "string" && ref.length > 0;
|
|
5680
5680
|
}
|
|
5681
5681
|
function isSecretClear(value) {
|
|
5682
|
-
return isRecord$
|
|
5682
|
+
return isRecord$6(value) && value["$secretClear"] === true;
|
|
5683
5683
|
}
|
|
5684
5684
|
/**
|
|
5685
5685
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6289,7 +6289,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6289
6289
|
}
|
|
6290
6290
|
};
|
|
6291
6291
|
var KEEP = { kind: "keep" };
|
|
6292
|
-
function isRecord$
|
|
6292
|
+
function isRecord$5(value) {
|
|
6293
6293
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6294
6294
|
}
|
|
6295
6295
|
function defaultMintId() {
|
|
@@ -6302,7 +6302,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6302
6302
|
return out;
|
|
6303
6303
|
}
|
|
6304
6304
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6305
|
-
else if (isRecord$
|
|
6305
|
+
else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6306
6306
|
return out;
|
|
6307
6307
|
}
|
|
6308
6308
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6357,7 +6357,7 @@ function rowId(row, idKey) {
|
|
|
6357
6357
|
return null;
|
|
6358
6358
|
}
|
|
6359
6359
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6360
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6360
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
|
|
6361
6361
|
if (!Array.isArray(incoming)) {
|
|
6362
6362
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6363
6363
|
return {
|
|
@@ -6373,7 +6373,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6373
6373
|
const kept = /* @__PURE__ */ new Set();
|
|
6374
6374
|
const rows = [];
|
|
6375
6375
|
for (const row of incoming) {
|
|
6376
|
-
if (!isRecord$
|
|
6376
|
+
if (!isRecord$5(row)) {
|
|
6377
6377
|
rows.push(row);
|
|
6378
6378
|
continue;
|
|
6379
6379
|
}
|
|
@@ -6398,7 +6398,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6398
6398
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6399
6399
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6400
6400
|
case "object": {
|
|
6401
|
-
if (!isRecord$
|
|
6401
|
+
if (!isRecord$5(incoming)) {
|
|
6402
6402
|
if (incoming === void 0) return KEEP;
|
|
6403
6403
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6404
6404
|
return {
|
|
@@ -6406,7 +6406,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6406
6406
|
value: incoming
|
|
6407
6407
|
};
|
|
6408
6408
|
}
|
|
6409
|
-
const storedObj = isRecord$
|
|
6409
|
+
const storedObj = isRecord$5(stored) ? stored : {};
|
|
6410
6410
|
return {
|
|
6411
6411
|
kind: "value",
|
|
6412
6412
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6529,7 +6529,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6529
6529
|
value: items
|
|
6530
6530
|
};
|
|
6531
6531
|
}
|
|
6532
|
-
if (isRecord$
|
|
6532
|
+
if (isRecord$5(v)) {
|
|
6533
6533
|
const out = {};
|
|
6534
6534
|
for (const [k, child] of Object.entries(v)) {
|
|
6535
6535
|
const s = substitute(child);
|
|
@@ -6561,7 +6561,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
6561
6561
|
this.name = "SecretOverwriteRefusedError";
|
|
6562
6562
|
}
|
|
6563
6563
|
};
|
|
6564
|
-
function isRecord$
|
|
6564
|
+
function isRecord$4(value) {
|
|
6565
6565
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6566
6566
|
}
|
|
6567
6567
|
function resolvedValue(pass, marker) {
|
|
@@ -6590,7 +6590,7 @@ function inArray(pass, incoming, stored) {
|
|
|
6590
6590
|
return incoming.map((item, index) => {
|
|
6591
6591
|
const twin = stored[index];
|
|
6592
6592
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
6593
|
-
if (isRecord$
|
|
6593
|
+
if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
|
|
6594
6594
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
6595
6595
|
return item;
|
|
6596
6596
|
});
|
|
@@ -6601,7 +6601,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6601
6601
|
const twin = stored[key];
|
|
6602
6602
|
if (isSecretMarker(twin)) {
|
|
6603
6603
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
6604
|
-
} else if (isRecord$
|
|
6604
|
+
} else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
6605
6605
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
6606
6606
|
}
|
|
6607
6607
|
return out;
|
|
@@ -6609,7 +6609,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6609
6609
|
async function walk(pass, incoming, stored) {
|
|
6610
6610
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
6611
6611
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
6612
|
-
if (!isRecord$
|
|
6612
|
+
if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
|
|
6613
6613
|
const out = { ...incoming };
|
|
6614
6614
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
6615
6615
|
return out;
|
|
@@ -6640,7 +6640,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
6640
6640
|
function isJsonEqual(a, b) {
|
|
6641
6641
|
if (Object.is(a, b)) return true;
|
|
6642
6642
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
6643
|
-
if (isRecord$
|
|
6643
|
+
if (isRecord$4(a) && isRecord$4(b)) {
|
|
6644
6644
|
const keys = Object.keys(a);
|
|
6645
6645
|
if (keys.length !== Object.keys(b).length) return false;
|
|
6646
6646
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -6664,7 +6664,7 @@ function markerKeysOf(blob, owner) {
|
|
|
6664
6664
|
}
|
|
6665
6665
|
function nodeFromStored(value, owner) {
|
|
6666
6666
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
6667
|
-
if (!isRecord$
|
|
6667
|
+
if (!isRecord$4(value)) return null;
|
|
6668
6668
|
const children = /* @__PURE__ */ new Map();
|
|
6669
6669
|
for (const [key, child] of Object.entries(value)) {
|
|
6670
6670
|
const node = nodeFromStored(child, owner);
|
|
@@ -17394,15 +17394,6 @@ var StorageKindSchema = object({
|
|
|
17394
17394
|
declaration: RecordKindDeclarationSchema
|
|
17395
17395
|
});
|
|
17396
17396
|
method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
|
|
17397
|
-
collection: string().min(1),
|
|
17398
|
-
expectRows: number().int().nonnegative()
|
|
17399
|
-
}), object({
|
|
17400
|
-
dropped: literal(true),
|
|
17401
|
-
rows: number().int().nonnegative()
|
|
17402
|
-
}), {
|
|
17403
|
-
kind: "mutation",
|
|
17404
|
-
auth: "admin"
|
|
17405
|
-
}), method(object({
|
|
17406
17397
|
owner: string().min(1).optional(),
|
|
17407
17398
|
/** `false` skips the per-kind row count (a catalog read only). Default true. */
|
|
17408
17399
|
counts: boolean().optional()
|
|
@@ -44016,6 +44007,15 @@ var NcMediaPolicySchema = object({
|
|
|
44016
44007
|
* Replaces `zoneCrop`.
|
|
44017
44008
|
*/
|
|
44018
44009
|
showTriggerZone: boolean().optional(),
|
|
44010
|
+
/**
|
|
44011
|
+
* Draw the SUBJECT'S PATH on the picture — a line in the subject's colour
|
|
44012
|
+
* through the track's positions up to the frame shown, the same path the
|
|
44013
|
+
* debug views draw (`buildSubjectPath`, D903). Every picture mode a subject
|
|
44014
|
+
* is drawn on: a `crop` maps the path into the crop and clips it. Valid only
|
|
44015
|
+
* on a rule whose subject is a tracked object (refused on a sound rule);
|
|
44016
|
+
* dropped on `image: 'none'`. Absent = off.
|
|
44017
|
+
*/
|
|
44018
|
+
showSubjectPath: boolean().optional(),
|
|
44019
44019
|
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
44020
44020
|
attach: _enum([
|
|
44021
44021
|
"best",
|
|
@@ -75264,12 +75264,6 @@ Object.freeze({
|
|
|
75264
75264
|
addonId: null,
|
|
75265
75265
|
access: "create"
|
|
75266
75266
|
},
|
|
75267
|
-
"storageAdmin.dropCollection": {
|
|
75268
|
-
capName: "storage-admin",
|
|
75269
|
-
capScope: "system",
|
|
75270
|
-
addonId: null,
|
|
75271
|
-
access: "delete"
|
|
75272
|
-
},
|
|
75273
75267
|
"storageAdmin.listKinds": {
|
|
75274
75268
|
capName: "storage-admin",
|
|
75275
75269
|
capScope: "system",
|
|
@@ -5547,7 +5547,7 @@ var ZodIssueCode = {
|
|
|
5547
5547
|
var ZodFirstPartyTypeKind;
|
|
5548
5548
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5549
5549
|
//#endregion
|
|
5550
|
-
//#region ../types/dist/sleep-
|
|
5550
|
+
//#region ../types/dist/sleep-_sV1BE2f.mjs
|
|
5551
5551
|
/**
|
|
5552
5552
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5553
5553
|
* window to float samples (D455).
|
|
@@ -5664,7 +5664,7 @@ function isKeychainStoredField(field) {
|
|
|
5664
5664
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5665
5665
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5666
5666
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5667
|
-
function isRecord$
|
|
5667
|
+
function isRecord$6(value) {
|
|
5668
5668
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5669
5669
|
}
|
|
5670
5670
|
function makeSecretMarker(ref) {
|
|
@@ -5675,12 +5675,12 @@ function makeSecretMarker(ref) {
|
|
|
5675
5675
|
}
|
|
5676
5676
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5677
5677
|
function isSecretMarker(value) {
|
|
5678
|
-
if (!isRecord$
|
|
5678
|
+
if (!isRecord$6(value)) return false;
|
|
5679
5679
|
const ref = value["$secret"];
|
|
5680
5680
|
return typeof ref === "string" && ref.length > 0;
|
|
5681
5681
|
}
|
|
5682
5682
|
function isSecretClear(value) {
|
|
5683
|
-
return isRecord$
|
|
5683
|
+
return isRecord$6(value) && value["$secretClear"] === true;
|
|
5684
5684
|
}
|
|
5685
5685
|
/**
|
|
5686
5686
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6290,7 +6290,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6290
6290
|
}
|
|
6291
6291
|
};
|
|
6292
6292
|
var KEEP = { kind: "keep" };
|
|
6293
|
-
function isRecord$
|
|
6293
|
+
function isRecord$5(value) {
|
|
6294
6294
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6295
6295
|
}
|
|
6296
6296
|
function defaultMintId() {
|
|
@@ -6303,7 +6303,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6303
6303
|
return out;
|
|
6304
6304
|
}
|
|
6305
6305
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6306
|
-
else if (isRecord$
|
|
6306
|
+
else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6307
6307
|
return out;
|
|
6308
6308
|
}
|
|
6309
6309
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6358,7 +6358,7 @@ function rowId(row, idKey) {
|
|
|
6358
6358
|
return null;
|
|
6359
6359
|
}
|
|
6360
6360
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6361
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6361
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
|
|
6362
6362
|
if (!Array.isArray(incoming)) {
|
|
6363
6363
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6364
6364
|
return {
|
|
@@ -6374,7 +6374,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6374
6374
|
const kept = /* @__PURE__ */ new Set();
|
|
6375
6375
|
const rows = [];
|
|
6376
6376
|
for (const row of incoming) {
|
|
6377
|
-
if (!isRecord$
|
|
6377
|
+
if (!isRecord$5(row)) {
|
|
6378
6378
|
rows.push(row);
|
|
6379
6379
|
continue;
|
|
6380
6380
|
}
|
|
@@ -6399,7 +6399,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6399
6399
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6400
6400
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6401
6401
|
case "object": {
|
|
6402
|
-
if (!isRecord$
|
|
6402
|
+
if (!isRecord$5(incoming)) {
|
|
6403
6403
|
if (incoming === void 0) return KEEP;
|
|
6404
6404
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6405
6405
|
return {
|
|
@@ -6407,7 +6407,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6407
6407
|
value: incoming
|
|
6408
6408
|
};
|
|
6409
6409
|
}
|
|
6410
|
-
const storedObj = isRecord$
|
|
6410
|
+
const storedObj = isRecord$5(stored) ? stored : {};
|
|
6411
6411
|
return {
|
|
6412
6412
|
kind: "value",
|
|
6413
6413
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6530,7 +6530,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6530
6530
|
value: items
|
|
6531
6531
|
};
|
|
6532
6532
|
}
|
|
6533
|
-
if (isRecord$
|
|
6533
|
+
if (isRecord$5(v)) {
|
|
6534
6534
|
const out = {};
|
|
6535
6535
|
for (const [k, child] of Object.entries(v)) {
|
|
6536
6536
|
const s = substitute(child);
|
|
@@ -6562,7 +6562,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
6562
6562
|
this.name = "SecretOverwriteRefusedError";
|
|
6563
6563
|
}
|
|
6564
6564
|
};
|
|
6565
|
-
function isRecord$
|
|
6565
|
+
function isRecord$4(value) {
|
|
6566
6566
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6567
6567
|
}
|
|
6568
6568
|
function resolvedValue(pass, marker) {
|
|
@@ -6591,7 +6591,7 @@ function inArray(pass, incoming, stored) {
|
|
|
6591
6591
|
return incoming.map((item, index) => {
|
|
6592
6592
|
const twin = stored[index];
|
|
6593
6593
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
6594
|
-
if (isRecord$
|
|
6594
|
+
if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
|
|
6595
6595
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
6596
6596
|
return item;
|
|
6597
6597
|
});
|
|
@@ -6602,7 +6602,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6602
6602
|
const twin = stored[key];
|
|
6603
6603
|
if (isSecretMarker(twin)) {
|
|
6604
6604
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
6605
|
-
} else if (isRecord$
|
|
6605
|
+
} else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
6606
6606
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
6607
6607
|
}
|
|
6608
6608
|
return out;
|
|
@@ -6610,7 +6610,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6610
6610
|
async function walk(pass, incoming, stored) {
|
|
6611
6611
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
6612
6612
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
6613
|
-
if (!isRecord$
|
|
6613
|
+
if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
|
|
6614
6614
|
const out = { ...incoming };
|
|
6615
6615
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
6616
6616
|
return out;
|
|
@@ -6641,7 +6641,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
6641
6641
|
function isJsonEqual(a, b) {
|
|
6642
6642
|
if (Object.is(a, b)) return true;
|
|
6643
6643
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
6644
|
-
if (isRecord$
|
|
6644
|
+
if (isRecord$4(a) && isRecord$4(b)) {
|
|
6645
6645
|
const keys = Object.keys(a);
|
|
6646
6646
|
if (keys.length !== Object.keys(b).length) return false;
|
|
6647
6647
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -6665,7 +6665,7 @@ function markerKeysOf(blob, owner) {
|
|
|
6665
6665
|
}
|
|
6666
6666
|
function nodeFromStored(value, owner) {
|
|
6667
6667
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
6668
|
-
if (!isRecord$
|
|
6668
|
+
if (!isRecord$4(value)) return null;
|
|
6669
6669
|
const children = /* @__PURE__ */ new Map();
|
|
6670
6670
|
for (const [key, child] of Object.entries(value)) {
|
|
6671
6671
|
const node = nodeFromStored(child, owner);
|
|
@@ -17395,15 +17395,6 @@ var StorageKindSchema = object({
|
|
|
17395
17395
|
declaration: RecordKindDeclarationSchema
|
|
17396
17396
|
});
|
|
17397
17397
|
method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
|
|
17398
|
-
collection: string().min(1),
|
|
17399
|
-
expectRows: number().int().nonnegative()
|
|
17400
|
-
}), object({
|
|
17401
|
-
dropped: literal(true),
|
|
17402
|
-
rows: number().int().nonnegative()
|
|
17403
|
-
}), {
|
|
17404
|
-
kind: "mutation",
|
|
17405
|
-
auth: "admin"
|
|
17406
|
-
}), method(object({
|
|
17407
17398
|
owner: string().min(1).optional(),
|
|
17408
17399
|
/** `false` skips the per-kind row count (a catalog read only). Default true. */
|
|
17409
17400
|
counts: boolean().optional()
|
|
@@ -44017,6 +44008,15 @@ var NcMediaPolicySchema = object({
|
|
|
44017
44008
|
* Replaces `zoneCrop`.
|
|
44018
44009
|
*/
|
|
44019
44010
|
showTriggerZone: boolean().optional(),
|
|
44011
|
+
/**
|
|
44012
|
+
* Draw the SUBJECT'S PATH on the picture — a line in the subject's colour
|
|
44013
|
+
* through the track's positions up to the frame shown, the same path the
|
|
44014
|
+
* debug views draw (`buildSubjectPath`, D903). Every picture mode a subject
|
|
44015
|
+
* is drawn on: a `crop` maps the path into the crop and clips it. Valid only
|
|
44016
|
+
* on a rule whose subject is a tracked object (refused on a sound rule);
|
|
44017
|
+
* dropped on `image: 'none'`. Absent = off.
|
|
44018
|
+
*/
|
|
44019
|
+
showSubjectPath: boolean().optional(),
|
|
44020
44020
|
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
44021
44021
|
attach: _enum([
|
|
44022
44022
|
"best",
|
|
@@ -75265,12 +75265,6 @@ Object.freeze({
|
|
|
75265
75265
|
addonId: null,
|
|
75266
75266
|
access: "create"
|
|
75267
75267
|
},
|
|
75268
|
-
"storageAdmin.dropCollection": {
|
|
75269
|
-
capName: "storage-admin",
|
|
75270
|
-
capScope: "system",
|
|
75271
|
-
addonId: null,
|
|
75272
|
-
access: "delete"
|
|
75273
|
-
},
|
|
75274
75268
|
"storageAdmin.listKinds": {
|
|
75275
75269
|
capName: "storage-admin",
|
|
75276
75270
|
capScope: "system",
|
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
//#endregion
|
|
27
|
-
const require_dist = require("../dist-
|
|
27
|
+
const require_dist = require("../dist-i6ntIgzS.js");
|
|
28
28
|
let node_crypto = require("node:crypto");
|
|
29
29
|
require("node:zlib");
|
|
30
30
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as oauthIntegrationCapability, C as buildAddonRouteProvider, Et as nodePin, Ft as string, I as deviceExportCapability, a as COCO_TO_MACRO, bt as BaseAddon, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, zt as EventCategory } from "../dist-
|
|
1
|
+
import { $ as oauthIntegrationCapability, C as buildAddonRouteProvider, Et as nodePin, Ft as string, I as deviceExportCapability, a as COCO_TO_MACRO, bt as BaseAddon, c as FanDirectionSchema, i as CAMERA_SWITCH_ORDER, l as HvacModeSchema, o as CameraSwitchIdSchema, p as addonRoutesCapability, t as AlarmArmModeSchema, u as MediaPlayerRepeatSchema, zt as EventCategory } from "../dist-DULXoGnO.mjs";
|
|
2
2
|
import { createHmac, timingSafeEqual } from "node:crypto";
|
|
3
3
|
import "node:zlib";
|
|
4
4
|
import "node:fs";
|