@camstack/addon-export-google 0.1.104 → 0.1.106
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-google.addon.js +17 -17
- package/dist/export-google.addon.mjs +17 -17
- package/package.json +1 -1
|
@@ -5492,7 +5492,7 @@ var ZodIssueCode = {
|
|
|
5492
5492
|
var ZodFirstPartyTypeKind;
|
|
5493
5493
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5494
5494
|
//#endregion
|
|
5495
|
-
//#region ../types/dist/sleep-
|
|
5495
|
+
//#region ../types/dist/sleep-_sV1BE2f.mjs
|
|
5496
5496
|
/**
|
|
5497
5497
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5498
5498
|
* window to float samples (D455).
|
|
@@ -5609,7 +5609,7 @@ function isKeychainStoredField(field) {
|
|
|
5609
5609
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5610
5610
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5611
5611
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5612
|
-
function isRecord$
|
|
5612
|
+
function isRecord$6(value) {
|
|
5613
5613
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5614
5614
|
}
|
|
5615
5615
|
function makeSecretMarker(ref) {
|
|
@@ -5620,12 +5620,12 @@ function makeSecretMarker(ref) {
|
|
|
5620
5620
|
}
|
|
5621
5621
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5622
5622
|
function isSecretMarker(value) {
|
|
5623
|
-
if (!isRecord$
|
|
5623
|
+
if (!isRecord$6(value)) return false;
|
|
5624
5624
|
const ref = value["$secret"];
|
|
5625
5625
|
return typeof ref === "string" && ref.length > 0;
|
|
5626
5626
|
}
|
|
5627
5627
|
function isSecretClear(value) {
|
|
5628
|
-
return isRecord$
|
|
5628
|
+
return isRecord$6(value) && value["$secretClear"] === true;
|
|
5629
5629
|
}
|
|
5630
5630
|
/**
|
|
5631
5631
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6235,7 +6235,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6235
6235
|
}
|
|
6236
6236
|
};
|
|
6237
6237
|
var KEEP = { kind: "keep" };
|
|
6238
|
-
function isRecord$
|
|
6238
|
+
function isRecord$5(value) {
|
|
6239
6239
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6240
6240
|
}
|
|
6241
6241
|
function defaultMintId() {
|
|
@@ -6248,7 +6248,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6248
6248
|
return out;
|
|
6249
6249
|
}
|
|
6250
6250
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6251
|
-
else if (isRecord$
|
|
6251
|
+
else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6252
6252
|
return out;
|
|
6253
6253
|
}
|
|
6254
6254
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6303,7 +6303,7 @@ function rowId(row, idKey) {
|
|
|
6303
6303
|
return null;
|
|
6304
6304
|
}
|
|
6305
6305
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6306
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6306
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
|
|
6307
6307
|
if (!Array.isArray(incoming)) {
|
|
6308
6308
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6309
6309
|
return {
|
|
@@ -6319,7 +6319,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6319
6319
|
const kept = /* @__PURE__ */ new Set();
|
|
6320
6320
|
const rows = [];
|
|
6321
6321
|
for (const row of incoming) {
|
|
6322
|
-
if (!isRecord$
|
|
6322
|
+
if (!isRecord$5(row)) {
|
|
6323
6323
|
rows.push(row);
|
|
6324
6324
|
continue;
|
|
6325
6325
|
}
|
|
@@ -6344,7 +6344,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6344
6344
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6345
6345
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6346
6346
|
case "object": {
|
|
6347
|
-
if (!isRecord$
|
|
6347
|
+
if (!isRecord$5(incoming)) {
|
|
6348
6348
|
if (incoming === void 0) return KEEP;
|
|
6349
6349
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6350
6350
|
return {
|
|
@@ -6352,7 +6352,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6352
6352
|
value: incoming
|
|
6353
6353
|
};
|
|
6354
6354
|
}
|
|
6355
|
-
const storedObj = isRecord$
|
|
6355
|
+
const storedObj = isRecord$5(stored) ? stored : {};
|
|
6356
6356
|
return {
|
|
6357
6357
|
kind: "value",
|
|
6358
6358
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6475,7 +6475,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6475
6475
|
value: items
|
|
6476
6476
|
};
|
|
6477
6477
|
}
|
|
6478
|
-
if (isRecord$
|
|
6478
|
+
if (isRecord$5(v)) {
|
|
6479
6479
|
const out = {};
|
|
6480
6480
|
for (const [k, child] of Object.entries(v)) {
|
|
6481
6481
|
const s = substitute(child);
|
|
@@ -6507,7 +6507,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
6507
6507
|
this.name = "SecretOverwriteRefusedError";
|
|
6508
6508
|
}
|
|
6509
6509
|
};
|
|
6510
|
-
function isRecord$
|
|
6510
|
+
function isRecord$4(value) {
|
|
6511
6511
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6512
6512
|
}
|
|
6513
6513
|
function resolvedValue(pass, marker) {
|
|
@@ -6536,7 +6536,7 @@ function inArray(pass, incoming, stored) {
|
|
|
6536
6536
|
return incoming.map((item, index) => {
|
|
6537
6537
|
const twin = stored[index];
|
|
6538
6538
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
6539
|
-
if (isRecord$
|
|
6539
|
+
if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
|
|
6540
6540
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
6541
6541
|
return item;
|
|
6542
6542
|
});
|
|
@@ -6547,7 +6547,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6547
6547
|
const twin = stored[key];
|
|
6548
6548
|
if (isSecretMarker(twin)) {
|
|
6549
6549
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
6550
|
-
} else if (isRecord$
|
|
6550
|
+
} else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
6551
6551
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
6552
6552
|
}
|
|
6553
6553
|
return out;
|
|
@@ -6555,7 +6555,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6555
6555
|
async function walk(pass, incoming, stored) {
|
|
6556
6556
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
6557
6557
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
6558
|
-
if (!isRecord$
|
|
6558
|
+
if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
|
|
6559
6559
|
const out = { ...incoming };
|
|
6560
6560
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
6561
6561
|
return out;
|
|
@@ -6586,7 +6586,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
6586
6586
|
function isJsonEqual(a, b) {
|
|
6587
6587
|
if (Object.is(a, b)) return true;
|
|
6588
6588
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
6589
|
-
if (isRecord$
|
|
6589
|
+
if (isRecord$4(a) && isRecord$4(b)) {
|
|
6590
6590
|
const keys = Object.keys(a);
|
|
6591
6591
|
if (keys.length !== Object.keys(b).length) return false;
|
|
6592
6592
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -6610,7 +6610,7 @@ function markerKeysOf(blob, owner) {
|
|
|
6610
6610
|
}
|
|
6611
6611
|
function nodeFromStored(value, owner) {
|
|
6612
6612
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
6613
|
-
if (!isRecord$
|
|
6613
|
+
if (!isRecord$4(value)) return null;
|
|
6614
6614
|
const children = /* @__PURE__ */ new Map();
|
|
6615
6615
|
for (const [key, child] of Object.entries(value)) {
|
|
6616
6616
|
const node = nodeFromStored(child, owner);
|
|
@@ -5488,7 +5488,7 @@ var ZodIssueCode = {
|
|
|
5488
5488
|
var ZodFirstPartyTypeKind;
|
|
5489
5489
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5490
5490
|
//#endregion
|
|
5491
|
-
//#region ../types/dist/sleep-
|
|
5491
|
+
//#region ../types/dist/sleep-_sV1BE2f.mjs
|
|
5492
5492
|
/**
|
|
5493
5493
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5494
5494
|
* window to float samples (D455).
|
|
@@ -5605,7 +5605,7 @@ function isKeychainStoredField(field) {
|
|
|
5605
5605
|
var SECRET_CLEAR = { $secretClear: true };
|
|
5606
5606
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
5607
5607
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
5608
|
-
function isRecord$
|
|
5608
|
+
function isRecord$6(value) {
|
|
5609
5609
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
5610
5610
|
}
|
|
5611
5611
|
function makeSecretMarker(ref) {
|
|
@@ -5616,12 +5616,12 @@ function makeSecretMarker(ref) {
|
|
|
5616
5616
|
}
|
|
5617
5617
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
5618
5618
|
function isSecretMarker(value) {
|
|
5619
|
-
if (!isRecord$
|
|
5619
|
+
if (!isRecord$6(value)) return false;
|
|
5620
5620
|
const ref = value["$secret"];
|
|
5621
5621
|
return typeof ref === "string" && ref.length > 0;
|
|
5622
5622
|
}
|
|
5623
5623
|
function isSecretClear(value) {
|
|
5624
|
-
return isRecord$
|
|
5624
|
+
return isRecord$6(value) && value["$secretClear"] === true;
|
|
5625
5625
|
}
|
|
5626
5626
|
/**
|
|
5627
5627
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -6231,7 +6231,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
6231
6231
|
}
|
|
6232
6232
|
};
|
|
6233
6233
|
var KEEP = { kind: "keep" };
|
|
6234
|
-
function isRecord$
|
|
6234
|
+
function isRecord$5(value) {
|
|
6235
6235
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6236
6236
|
}
|
|
6237
6237
|
function defaultMintId() {
|
|
@@ -6244,7 +6244,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
6244
6244
|
return out;
|
|
6245
6245
|
}
|
|
6246
6246
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
6247
|
-
else if (isRecord$
|
|
6247
|
+
else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
6248
6248
|
return out;
|
|
6249
6249
|
}
|
|
6250
6250
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -6299,7 +6299,7 @@ function rowId(row, idKey) {
|
|
|
6299
6299
|
return null;
|
|
6300
6300
|
}
|
|
6301
6301
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
6302
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
6302
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
|
|
6303
6303
|
if (!Array.isArray(incoming)) {
|
|
6304
6304
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
6305
6305
|
return {
|
|
@@ -6315,7 +6315,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
6315
6315
|
const kept = /* @__PURE__ */ new Set();
|
|
6316
6316
|
const rows = [];
|
|
6317
6317
|
for (const row of incoming) {
|
|
6318
|
-
if (!isRecord$
|
|
6318
|
+
if (!isRecord$5(row)) {
|
|
6319
6319
|
rows.push(row);
|
|
6320
6320
|
continue;
|
|
6321
6321
|
}
|
|
@@ -6340,7 +6340,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6340
6340
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
6341
6341
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
6342
6342
|
case "object": {
|
|
6343
|
-
if (!isRecord$
|
|
6343
|
+
if (!isRecord$5(incoming)) {
|
|
6344
6344
|
if (incoming === void 0) return KEEP;
|
|
6345
6345
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
6346
6346
|
return {
|
|
@@ -6348,7 +6348,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
6348
6348
|
value: incoming
|
|
6349
6349
|
};
|
|
6350
6350
|
}
|
|
6351
|
-
const storedObj = isRecord$
|
|
6351
|
+
const storedObj = isRecord$5(stored) ? stored : {};
|
|
6352
6352
|
return {
|
|
6353
6353
|
kind: "value",
|
|
6354
6354
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -6471,7 +6471,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
6471
6471
|
value: items
|
|
6472
6472
|
};
|
|
6473
6473
|
}
|
|
6474
|
-
if (isRecord$
|
|
6474
|
+
if (isRecord$5(v)) {
|
|
6475
6475
|
const out = {};
|
|
6476
6476
|
for (const [k, child] of Object.entries(v)) {
|
|
6477
6477
|
const s = substitute(child);
|
|
@@ -6503,7 +6503,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
6503
6503
|
this.name = "SecretOverwriteRefusedError";
|
|
6504
6504
|
}
|
|
6505
6505
|
};
|
|
6506
|
-
function isRecord$
|
|
6506
|
+
function isRecord$4(value) {
|
|
6507
6507
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
6508
6508
|
}
|
|
6509
6509
|
function resolvedValue(pass, marker) {
|
|
@@ -6532,7 +6532,7 @@ function inArray(pass, incoming, stored) {
|
|
|
6532
6532
|
return incoming.map((item, index) => {
|
|
6533
6533
|
const twin = stored[index];
|
|
6534
6534
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
6535
|
-
if (isRecord$
|
|
6535
|
+
if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
|
|
6536
6536
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
6537
6537
|
return item;
|
|
6538
6538
|
});
|
|
@@ -6543,7 +6543,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6543
6543
|
const twin = stored[key];
|
|
6544
6544
|
if (isSecretMarker(twin)) {
|
|
6545
6545
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
6546
|
-
} else if (isRecord$
|
|
6546
|
+
} else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
6547
6547
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
6548
6548
|
}
|
|
6549
6549
|
return out;
|
|
@@ -6551,7 +6551,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
6551
6551
|
async function walk(pass, incoming, stored) {
|
|
6552
6552
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
6553
6553
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
6554
|
-
if (!isRecord$
|
|
6554
|
+
if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
|
|
6555
6555
|
const out = { ...incoming };
|
|
6556
6556
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
6557
6557
|
return out;
|
|
@@ -6582,7 +6582,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
6582
6582
|
function isJsonEqual(a, b) {
|
|
6583
6583
|
if (Object.is(a, b)) return true;
|
|
6584
6584
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
6585
|
-
if (isRecord$
|
|
6585
|
+
if (isRecord$4(a) && isRecord$4(b)) {
|
|
6586
6586
|
const keys = Object.keys(a);
|
|
6587
6587
|
if (keys.length !== Object.keys(b).length) return false;
|
|
6588
6588
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -6606,7 +6606,7 @@ function markerKeysOf(blob, owner) {
|
|
|
6606
6606
|
}
|
|
6607
6607
|
function nodeFromStored(value, owner) {
|
|
6608
6608
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
6609
|
-
if (!isRecord$
|
|
6609
|
+
if (!isRecord$4(value)) return null;
|
|
6610
6610
|
const children = /* @__PURE__ */ new Map();
|
|
6611
6611
|
for (const [key, child] of Object.entries(value)) {
|
|
6612
6612
|
const node = nodeFromStored(child, owner);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-export-google",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.106",
|
|
4
4
|
"description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|