@camstack/addon-export-alexa 1.2.157 → 1.2.159

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.
@@ -5449,7 +5449,7 @@ var ZodIssueCode = {
5449
5449
  var ZodFirstPartyTypeKind;
5450
5450
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5451
5451
  //#endregion
5452
- //#region ../types/dist/sleep-CSuN0thG.mjs
5452
+ //#region ../types/dist/sleep-_sV1BE2f.mjs
5453
5453
  /**
5454
5454
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5455
5455
  * window to float samples (D455).
@@ -5566,7 +5566,7 @@ function isKeychainStoredField(field) {
5566
5566
  var SECRET_CLEAR = { $secretClear: true };
5567
5567
  /** The `'***'` token D634 redaction writes for non-admins. */
5568
5568
  var LEGACY_DEVICE_REDACTION = "***";
5569
- function isRecord$5(value) {
5569
+ function isRecord$6(value) {
5570
5570
  return typeof value === "object" && value !== null && !Array.isArray(value);
5571
5571
  }
5572
5572
  function makeSecretMarker(ref) {
@@ -5577,12 +5577,12 @@ function makeSecretMarker(ref) {
5577
5577
  }
5578
5578
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5579
5579
  function isSecretMarker(value) {
5580
- if (!isRecord$5(value)) return false;
5580
+ if (!isRecord$6(value)) return false;
5581
5581
  const ref = value["$secret"];
5582
5582
  return typeof ref === "string" && ref.length > 0;
5583
5583
  }
5584
5584
  function isSecretClear(value) {
5585
- return isRecord$5(value) && value["$secretClear"] === true;
5585
+ return isRecord$6(value) && value["$secretClear"] === true;
5586
5586
  }
5587
5587
  /**
5588
5588
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6192,7 +6192,7 @@ var KeychainWriteRefusedError = class extends Error {
6192
6192
  }
6193
6193
  };
6194
6194
  var KEEP = { kind: "keep" };
6195
- function isRecord$4(value) {
6195
+ function isRecord$5(value) {
6196
6196
  return typeof value === "object" && value !== null && !Array.isArray(value);
6197
6197
  }
6198
6198
  function defaultMintId() {
@@ -6205,7 +6205,7 @@ function collectSecretMarkerRefs(value, out = []) {
6205
6205
  return out;
6206
6206
  }
6207
6207
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6208
- else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6208
+ else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6209
6209
  return out;
6210
6210
  }
6211
6211
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6260,7 +6260,7 @@ function rowId(row, idKey) {
6260
6260
  return null;
6261
6261
  }
6262
6262
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6263
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
6263
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
6264
6264
  if (!Array.isArray(incoming)) {
6265
6265
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6266
6266
  return {
@@ -6276,7 +6276,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6276
6276
  const kept = /* @__PURE__ */ new Set();
6277
6277
  const rows = [];
6278
6278
  for (const row of incoming) {
6279
- if (!isRecord$4(row)) {
6279
+ if (!isRecord$5(row)) {
6280
6280
  rows.push(row);
6281
6281
  continue;
6282
6282
  }
@@ -6301,7 +6301,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6301
6301
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6302
6302
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6303
6303
  case "object": {
6304
- if (!isRecord$4(incoming)) {
6304
+ if (!isRecord$5(incoming)) {
6305
6305
  if (incoming === void 0) return KEEP;
6306
6306
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6307
6307
  return {
@@ -6309,7 +6309,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6309
6309
  value: incoming
6310
6310
  };
6311
6311
  }
6312
- const storedObj = isRecord$4(stored) ? stored : {};
6312
+ const storedObj = isRecord$5(stored) ? stored : {};
6313
6313
  return {
6314
6314
  kind: "value",
6315
6315
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6432,7 +6432,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6432
6432
  value: items
6433
6433
  };
6434
6434
  }
6435
- if (isRecord$4(v)) {
6435
+ if (isRecord$5(v)) {
6436
6436
  const out = {};
6437
6437
  for (const [k, child] of Object.entries(v)) {
6438
6438
  const s = substitute(child);
@@ -6464,7 +6464,7 @@ var SecretOverwriteRefusedError = class extends Error {
6464
6464
  this.name = "SecretOverwriteRefusedError";
6465
6465
  }
6466
6466
  };
6467
- function isRecord$3(value) {
6467
+ function isRecord$4(value) {
6468
6468
  return typeof value === "object" && value !== null && !Array.isArray(value);
6469
6469
  }
6470
6470
  function resolvedValue(pass, marker) {
@@ -6493,7 +6493,7 @@ function inArray(pass, incoming, stored) {
6493
6493
  return incoming.map((item, index) => {
6494
6494
  const twin = stored[index];
6495
6495
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6496
- if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
6496
+ if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
6497
6497
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6498
6498
  return item;
6499
6499
  });
@@ -6504,7 +6504,7 @@ function inArrayRow(pass, incoming, stored) {
6504
6504
  const twin = stored[key];
6505
6505
  if (isSecretMarker(twin)) {
6506
6506
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6507
- } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
6507
+ } else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
6508
6508
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6509
6509
  }
6510
6510
  return out;
@@ -6512,7 +6512,7 @@ function inArrayRow(pass, incoming, stored) {
6512
6512
  async function walk(pass, incoming, stored) {
6513
6513
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6514
6514
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6515
- if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
6515
+ if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
6516
6516
  const out = { ...incoming };
6517
6517
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6518
6518
  return out;
@@ -6543,7 +6543,7 @@ async function restoreUnchangedSecrets(input) {
6543
6543
  function isJsonEqual(a, b) {
6544
6544
  if (Object.is(a, b)) return true;
6545
6545
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6546
- if (isRecord$3(a) && isRecord$3(b)) {
6546
+ if (isRecord$4(a) && isRecord$4(b)) {
6547
6547
  const keys = Object.keys(a);
6548
6548
  if (keys.length !== Object.keys(b).length) return false;
6549
6549
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6567,7 +6567,7 @@ function markerKeysOf(blob, owner) {
6567
6567
  }
6568
6568
  function nodeFromStored(value, owner) {
6569
6569
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6570
- if (!isRecord$3(value)) return null;
6570
+ if (!isRecord$4(value)) return null;
6571
6571
  const children = /* @__PURE__ */ new Map();
6572
6572
  for (const [key, child] of Object.entries(value)) {
6573
6573
  const node = nodeFromStored(child, owner);
@@ -5420,7 +5420,7 @@ var ZodIssueCode = {
5420
5420
  var ZodFirstPartyTypeKind;
5421
5421
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5422
5422
  //#endregion
5423
- //#region ../types/dist/sleep-CSuN0thG.mjs
5423
+ //#region ../types/dist/sleep-_sV1BE2f.mjs
5424
5424
  /**
5425
5425
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5426
5426
  * window to float samples (D455).
@@ -5537,7 +5537,7 @@ function isKeychainStoredField(field) {
5537
5537
  var SECRET_CLEAR = { $secretClear: true };
5538
5538
  /** The `'***'` token D634 redaction writes for non-admins. */
5539
5539
  var LEGACY_DEVICE_REDACTION = "***";
5540
- function isRecord$5(value) {
5540
+ function isRecord$6(value) {
5541
5541
  return typeof value === "object" && value !== null && !Array.isArray(value);
5542
5542
  }
5543
5543
  function makeSecretMarker(ref) {
@@ -5548,12 +5548,12 @@ function makeSecretMarker(ref) {
5548
5548
  }
5549
5549
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5550
5550
  function isSecretMarker(value) {
5551
- if (!isRecord$5(value)) return false;
5551
+ if (!isRecord$6(value)) return false;
5552
5552
  const ref = value["$secret"];
5553
5553
  return typeof ref === "string" && ref.length > 0;
5554
5554
  }
5555
5555
  function isSecretClear(value) {
5556
- return isRecord$5(value) && value["$secretClear"] === true;
5556
+ return isRecord$6(value) && value["$secretClear"] === true;
5557
5557
  }
5558
5558
  /**
5559
5559
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6163,7 +6163,7 @@ var KeychainWriteRefusedError = class extends Error {
6163
6163
  }
6164
6164
  };
6165
6165
  var KEEP = { kind: "keep" };
6166
- function isRecord$4(value) {
6166
+ function isRecord$5(value) {
6167
6167
  return typeof value === "object" && value !== null && !Array.isArray(value);
6168
6168
  }
6169
6169
  function defaultMintId() {
@@ -6176,7 +6176,7 @@ function collectSecretMarkerRefs(value, out = []) {
6176
6176
  return out;
6177
6177
  }
6178
6178
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6179
- else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6179
+ else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6180
6180
  return out;
6181
6181
  }
6182
6182
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6231,7 +6231,7 @@ function rowId(row, idKey) {
6231
6231
  return null;
6232
6232
  }
6233
6233
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6234
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
6234
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
6235
6235
  if (!Array.isArray(incoming)) {
6236
6236
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6237
6237
  return {
@@ -6247,7 +6247,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6247
6247
  const kept = /* @__PURE__ */ new Set();
6248
6248
  const rows = [];
6249
6249
  for (const row of incoming) {
6250
- if (!isRecord$4(row)) {
6250
+ if (!isRecord$5(row)) {
6251
6251
  rows.push(row);
6252
6252
  continue;
6253
6253
  }
@@ -6272,7 +6272,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6272
6272
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6273
6273
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6274
6274
  case "object": {
6275
- if (!isRecord$4(incoming)) {
6275
+ if (!isRecord$5(incoming)) {
6276
6276
  if (incoming === void 0) return KEEP;
6277
6277
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6278
6278
  return {
@@ -6280,7 +6280,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6280
6280
  value: incoming
6281
6281
  };
6282
6282
  }
6283
- const storedObj = isRecord$4(stored) ? stored : {};
6283
+ const storedObj = isRecord$5(stored) ? stored : {};
6284
6284
  return {
6285
6285
  kind: "value",
6286
6286
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6403,7 +6403,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6403
6403
  value: items
6404
6404
  };
6405
6405
  }
6406
- if (isRecord$4(v)) {
6406
+ if (isRecord$5(v)) {
6407
6407
  const out = {};
6408
6408
  for (const [k, child] of Object.entries(v)) {
6409
6409
  const s = substitute(child);
@@ -6435,7 +6435,7 @@ var SecretOverwriteRefusedError = class extends Error {
6435
6435
  this.name = "SecretOverwriteRefusedError";
6436
6436
  }
6437
6437
  };
6438
- function isRecord$3(value) {
6438
+ function isRecord$4(value) {
6439
6439
  return typeof value === "object" && value !== null && !Array.isArray(value);
6440
6440
  }
6441
6441
  function resolvedValue(pass, marker) {
@@ -6464,7 +6464,7 @@ function inArray(pass, incoming, stored) {
6464
6464
  return incoming.map((item, index) => {
6465
6465
  const twin = stored[index];
6466
6466
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6467
- if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
6467
+ if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
6468
6468
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6469
6469
  return item;
6470
6470
  });
@@ -6475,7 +6475,7 @@ function inArrayRow(pass, incoming, stored) {
6475
6475
  const twin = stored[key];
6476
6476
  if (isSecretMarker(twin)) {
6477
6477
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6478
- } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
6478
+ } else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
6479
6479
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6480
6480
  }
6481
6481
  return out;
@@ -6483,7 +6483,7 @@ function inArrayRow(pass, incoming, stored) {
6483
6483
  async function walk(pass, incoming, stored) {
6484
6484
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6485
6485
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6486
- if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
6486
+ if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
6487
6487
  const out = { ...incoming };
6488
6488
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6489
6489
  return out;
@@ -6514,7 +6514,7 @@ async function restoreUnchangedSecrets(input) {
6514
6514
  function isJsonEqual(a, b) {
6515
6515
  if (Object.is(a, b)) return true;
6516
6516
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6517
- if (isRecord$3(a) && isRecord$3(b)) {
6517
+ if (isRecord$4(a) && isRecord$4(b)) {
6518
6518
  const keys = Object.keys(a);
6519
6519
  if (keys.length !== Object.keys(b).length) return false;
6520
6520
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6538,7 +6538,7 @@ function markerKeysOf(blob, owner) {
6538
6538
  }
6539
6539
  function nodeFromStored(value, owner) {
6540
6540
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6541
- if (!isRecord$3(value)) return null;
6541
+ if (!isRecord$4(value)) return null;
6542
6542
  const children = /* @__PURE__ */ new Map();
6543
6543
  for (const [key, child] of Object.entries(value)) {
6544
6544
  const node = nodeFromStored(child, owner);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-alexa",
3
- "version": "1.2.157",
3
+ "version": "1.2.159",
4
4
  "description": "Alexa Smart Home Skill export — hub-side OAuth provider + directive handler. The companion AWS Lambda forwards Alexa directives to this addon's /addon/export-alexa/directive endpoint.",
5
5
  "keywords": [
6
6
  "camstack",