@camstack/addon-import-alexa 0.2.138 → 0.2.140

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 CHANGED
@@ -5586,7 +5586,7 @@ var ZodIssueCode = {
5586
5586
  var ZodFirstPartyTypeKind;
5587
5587
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5588
5588
  //#endregion
5589
- //#region ../types/dist/sleep-CSuN0thG.mjs
5589
+ //#region ../types/dist/sleep-_sV1BE2f.mjs
5590
5590
  /**
5591
5591
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5592
5592
  * window to float samples (D455).
@@ -5703,7 +5703,7 @@ function isKeychainStoredField(field) {
5703
5703
  var SECRET_CLEAR = { $secretClear: true };
5704
5704
  /** The `'***'` token D634 redaction writes for non-admins. */
5705
5705
  var LEGACY_DEVICE_REDACTION = "***";
5706
- function isRecord$5(value) {
5706
+ function isRecord$6(value) {
5707
5707
  return typeof value === "object" && value !== null && !Array.isArray(value);
5708
5708
  }
5709
5709
  function makeSecretMarker(ref) {
@@ -5714,12 +5714,12 @@ function makeSecretMarker(ref) {
5714
5714
  }
5715
5715
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5716
5716
  function isSecretMarker(value) {
5717
- if (!isRecord$5(value)) return false;
5717
+ if (!isRecord$6(value)) return false;
5718
5718
  const ref = value["$secret"];
5719
5719
  return typeof ref === "string" && ref.length > 0;
5720
5720
  }
5721
5721
  function isSecretClear(value) {
5722
- return isRecord$5(value) && value["$secretClear"] === true;
5722
+ return isRecord$6(value) && value["$secretClear"] === true;
5723
5723
  }
5724
5724
  /**
5725
5725
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6329,7 +6329,7 @@ var KeychainWriteRefusedError = class extends Error {
6329
6329
  }
6330
6330
  };
6331
6331
  var KEEP = { kind: "keep" };
6332
- function isRecord$4(value) {
6332
+ function isRecord$5(value) {
6333
6333
  return typeof value === "object" && value !== null && !Array.isArray(value);
6334
6334
  }
6335
6335
  function defaultMintId() {
@@ -6342,7 +6342,7 @@ function collectSecretMarkerRefs(value, out = []) {
6342
6342
  return out;
6343
6343
  }
6344
6344
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6345
- else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6345
+ else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6346
6346
  return out;
6347
6347
  }
6348
6348
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6397,7 +6397,7 @@ function rowId(row, idKey) {
6397
6397
  return null;
6398
6398
  }
6399
6399
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6400
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
6400
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
6401
6401
  if (!Array.isArray(incoming)) {
6402
6402
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6403
6403
  return {
@@ -6413,7 +6413,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6413
6413
  const kept = /* @__PURE__ */ new Set();
6414
6414
  const rows = [];
6415
6415
  for (const row of incoming) {
6416
- if (!isRecord$4(row)) {
6416
+ if (!isRecord$5(row)) {
6417
6417
  rows.push(row);
6418
6418
  continue;
6419
6419
  }
@@ -6438,7 +6438,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6438
6438
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6439
6439
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6440
6440
  case "object": {
6441
- if (!isRecord$4(incoming)) {
6441
+ if (!isRecord$5(incoming)) {
6442
6442
  if (incoming === void 0) return KEEP;
6443
6443
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6444
6444
  return {
@@ -6446,7 +6446,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6446
6446
  value: incoming
6447
6447
  };
6448
6448
  }
6449
- const storedObj = isRecord$4(stored) ? stored : {};
6449
+ const storedObj = isRecord$5(stored) ? stored : {};
6450
6450
  return {
6451
6451
  kind: "value",
6452
6452
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6569,7 +6569,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6569
6569
  value: items
6570
6570
  };
6571
6571
  }
6572
- if (isRecord$4(v)) {
6572
+ if (isRecord$5(v)) {
6573
6573
  const out = {};
6574
6574
  for (const [k, child] of Object.entries(v)) {
6575
6575
  const s = substitute(child);
@@ -6601,7 +6601,7 @@ var SecretOverwriteRefusedError = class extends Error {
6601
6601
  this.name = "SecretOverwriteRefusedError";
6602
6602
  }
6603
6603
  };
6604
- function isRecord$3(value) {
6604
+ function isRecord$4(value) {
6605
6605
  return typeof value === "object" && value !== null && !Array.isArray(value);
6606
6606
  }
6607
6607
  function resolvedValue(pass, marker) {
@@ -6630,7 +6630,7 @@ function inArray(pass, incoming, stored) {
6630
6630
  return incoming.map((item, index) => {
6631
6631
  const twin = stored[index];
6632
6632
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6633
- if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
6633
+ if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
6634
6634
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6635
6635
  return item;
6636
6636
  });
@@ -6641,7 +6641,7 @@ function inArrayRow(pass, incoming, stored) {
6641
6641
  const twin = stored[key];
6642
6642
  if (isSecretMarker(twin)) {
6643
6643
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6644
- } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
6644
+ } else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
6645
6645
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6646
6646
  }
6647
6647
  return out;
@@ -6649,7 +6649,7 @@ function inArrayRow(pass, incoming, stored) {
6649
6649
  async function walk(pass, incoming, stored) {
6650
6650
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6651
6651
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6652
- if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
6652
+ if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
6653
6653
  const out = { ...incoming };
6654
6654
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6655
6655
  return out;
@@ -6680,7 +6680,7 @@ async function restoreUnchangedSecrets(input) {
6680
6680
  function isJsonEqual(a, b) {
6681
6681
  if (Object.is(a, b)) return true;
6682
6682
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6683
- if (isRecord$3(a) && isRecord$3(b)) {
6683
+ if (isRecord$4(a) && isRecord$4(b)) {
6684
6684
  const keys = Object.keys(a);
6685
6685
  if (keys.length !== Object.keys(b).length) return false;
6686
6686
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6704,7 +6704,7 @@ function markerKeysOf(blob, owner) {
6704
6704
  }
6705
6705
  function nodeFromStored(value, owner) {
6706
6706
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6707
- if (!isRecord$3(value)) return null;
6707
+ if (!isRecord$4(value)) return null;
6708
6708
  const children = /* @__PURE__ */ new Map();
6709
6709
  for (const [key, child] of Object.entries(value)) {
6710
6710
  const node = nodeFromStored(child, owner);
@@ -17348,15 +17348,6 @@ var StorageKindSchema = object({
17348
17348
  declaration: RecordKindDeclarationSchema
17349
17349
  });
17350
17350
  method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
17351
- collection: string().min(1),
17352
- expectRows: number().int().nonnegative()
17353
- }), object({
17354
- dropped: literal(true),
17355
- rows: number().int().nonnegative()
17356
- }), {
17357
- kind: "mutation",
17358
- auth: "admin"
17359
- }), method(object({
17360
17351
  owner: string().min(1).optional(),
17361
17352
  /** `false` skips the per-kind row count (a catalog read only). Default true. */
17362
17353
  counts: boolean().optional()
@@ -43731,6 +43722,15 @@ var NcMediaPolicySchema = object({
43731
43722
  * Replaces `zoneCrop`.
43732
43723
  */
43733
43724
  showTriggerZone: boolean().optional(),
43725
+ /**
43726
+ * Draw the SUBJECT'S PATH on the picture — a line in the subject's colour
43727
+ * through the track's positions up to the frame shown, the same path the
43728
+ * debug views draw (`buildSubjectPath`, D903). Every picture mode a subject
43729
+ * is drawn on: a `crop` maps the path into the crop and clips it. Valid only
43730
+ * on a rule whose subject is a tracked object (refused on a sound rule);
43731
+ * dropped on `image: 'none'`. Absent = off.
43732
+ */
43733
+ showSubjectPath: boolean().optional(),
43734
43734
  /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43735
43735
  attach: _enum([
43736
43736
  "best",
@@ -74881,12 +74881,6 @@ Object.freeze({
74881
74881
  addonId: null,
74882
74882
  access: "create"
74883
74883
  },
74884
- "storageAdmin.dropCollection": {
74885
- capName: "storage-admin",
74886
- capScope: "system",
74887
- addonId: null,
74888
- access: "delete"
74889
- },
74890
74884
  "storageAdmin.listKinds": {
74891
74885
  capName: "storage-admin",
74892
74886
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -5586,7 +5586,7 @@ var ZodIssueCode = {
5586
5586
  var ZodFirstPartyTypeKind;
5587
5587
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5588
5588
  //#endregion
5589
- //#region ../types/dist/sleep-CSuN0thG.mjs
5589
+ //#region ../types/dist/sleep-_sV1BE2f.mjs
5590
5590
  /**
5591
5591
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5592
5592
  * window to float samples (D455).
@@ -5703,7 +5703,7 @@ function isKeychainStoredField(field) {
5703
5703
  var SECRET_CLEAR = { $secretClear: true };
5704
5704
  /** The `'***'` token D634 redaction writes for non-admins. */
5705
5705
  var LEGACY_DEVICE_REDACTION = "***";
5706
- function isRecord$5(value) {
5706
+ function isRecord$6(value) {
5707
5707
  return typeof value === "object" && value !== null && !Array.isArray(value);
5708
5708
  }
5709
5709
  function makeSecretMarker(ref) {
@@ -5714,12 +5714,12 @@ function makeSecretMarker(ref) {
5714
5714
  }
5715
5715
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5716
5716
  function isSecretMarker(value) {
5717
- if (!isRecord$5(value)) return false;
5717
+ if (!isRecord$6(value)) return false;
5718
5718
  const ref = value["$secret"];
5719
5719
  return typeof ref === "string" && ref.length > 0;
5720
5720
  }
5721
5721
  function isSecretClear(value) {
5722
- return isRecord$5(value) && value["$secretClear"] === true;
5722
+ return isRecord$6(value) && value["$secretClear"] === true;
5723
5723
  }
5724
5724
  /**
5725
5725
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6329,7 +6329,7 @@ var KeychainWriteRefusedError = class extends Error {
6329
6329
  }
6330
6330
  };
6331
6331
  var KEEP = { kind: "keep" };
6332
- function isRecord$4(value) {
6332
+ function isRecord$5(value) {
6333
6333
  return typeof value === "object" && value !== null && !Array.isArray(value);
6334
6334
  }
6335
6335
  function defaultMintId() {
@@ -6342,7 +6342,7 @@ function collectSecretMarkerRefs(value, out = []) {
6342
6342
  return out;
6343
6343
  }
6344
6344
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6345
- else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6345
+ else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6346
6346
  return out;
6347
6347
  }
6348
6348
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6397,7 +6397,7 @@ function rowId(row, idKey) {
6397
6397
  return null;
6398
6398
  }
6399
6399
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6400
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
6400
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
6401
6401
  if (!Array.isArray(incoming)) {
6402
6402
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6403
6403
  return {
@@ -6413,7 +6413,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6413
6413
  const kept = /* @__PURE__ */ new Set();
6414
6414
  const rows = [];
6415
6415
  for (const row of incoming) {
6416
- if (!isRecord$4(row)) {
6416
+ if (!isRecord$5(row)) {
6417
6417
  rows.push(row);
6418
6418
  continue;
6419
6419
  }
@@ -6438,7 +6438,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6438
6438
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6439
6439
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6440
6440
  case "object": {
6441
- if (!isRecord$4(incoming)) {
6441
+ if (!isRecord$5(incoming)) {
6442
6442
  if (incoming === void 0) return KEEP;
6443
6443
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6444
6444
  return {
@@ -6446,7 +6446,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6446
6446
  value: incoming
6447
6447
  };
6448
6448
  }
6449
- const storedObj = isRecord$4(stored) ? stored : {};
6449
+ const storedObj = isRecord$5(stored) ? stored : {};
6450
6450
  return {
6451
6451
  kind: "value",
6452
6452
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6569,7 +6569,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6569
6569
  value: items
6570
6570
  };
6571
6571
  }
6572
- if (isRecord$4(v)) {
6572
+ if (isRecord$5(v)) {
6573
6573
  const out = {};
6574
6574
  for (const [k, child] of Object.entries(v)) {
6575
6575
  const s = substitute(child);
@@ -6601,7 +6601,7 @@ var SecretOverwriteRefusedError = class extends Error {
6601
6601
  this.name = "SecretOverwriteRefusedError";
6602
6602
  }
6603
6603
  };
6604
- function isRecord$3(value) {
6604
+ function isRecord$4(value) {
6605
6605
  return typeof value === "object" && value !== null && !Array.isArray(value);
6606
6606
  }
6607
6607
  function resolvedValue(pass, marker) {
@@ -6630,7 +6630,7 @@ function inArray(pass, incoming, stored) {
6630
6630
  return incoming.map((item, index) => {
6631
6631
  const twin = stored[index];
6632
6632
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6633
- if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
6633
+ if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
6634
6634
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6635
6635
  return item;
6636
6636
  });
@@ -6641,7 +6641,7 @@ function inArrayRow(pass, incoming, stored) {
6641
6641
  const twin = stored[key];
6642
6642
  if (isSecretMarker(twin)) {
6643
6643
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6644
- } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
6644
+ } else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
6645
6645
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6646
6646
  }
6647
6647
  return out;
@@ -6649,7 +6649,7 @@ function inArrayRow(pass, incoming, stored) {
6649
6649
  async function walk(pass, incoming, stored) {
6650
6650
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6651
6651
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6652
- if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
6652
+ if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
6653
6653
  const out = { ...incoming };
6654
6654
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6655
6655
  return out;
@@ -6680,7 +6680,7 @@ async function restoreUnchangedSecrets(input) {
6680
6680
  function isJsonEqual(a, b) {
6681
6681
  if (Object.is(a, b)) return true;
6682
6682
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6683
- if (isRecord$3(a) && isRecord$3(b)) {
6683
+ if (isRecord$4(a) && isRecord$4(b)) {
6684
6684
  const keys = Object.keys(a);
6685
6685
  if (keys.length !== Object.keys(b).length) return false;
6686
6686
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6704,7 +6704,7 @@ function markerKeysOf(blob, owner) {
6704
6704
  }
6705
6705
  function nodeFromStored(value, owner) {
6706
6706
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6707
- if (!isRecord$3(value)) return null;
6707
+ if (!isRecord$4(value)) return null;
6708
6708
  const children = /* @__PURE__ */ new Map();
6709
6709
  for (const [key, child] of Object.entries(value)) {
6710
6710
  const node = nodeFromStored(child, owner);
@@ -17348,15 +17348,6 @@ var StorageKindSchema = object({
17348
17348
  declaration: RecordKindDeclarationSchema
17349
17349
  });
17350
17350
  method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
17351
- collection: string().min(1),
17352
- expectRows: number().int().nonnegative()
17353
- }), object({
17354
- dropped: literal(true),
17355
- rows: number().int().nonnegative()
17356
- }), {
17357
- kind: "mutation",
17358
- auth: "admin"
17359
- }), method(object({
17360
17351
  owner: string().min(1).optional(),
17361
17352
  /** `false` skips the per-kind row count (a catalog read only). Default true. */
17362
17353
  counts: boolean().optional()
@@ -43731,6 +43722,15 @@ var NcMediaPolicySchema = object({
43731
43722
  * Replaces `zoneCrop`.
43732
43723
  */
43733
43724
  showTriggerZone: boolean().optional(),
43725
+ /**
43726
+ * Draw the SUBJECT'S PATH on the picture — a line in the subject's colour
43727
+ * through the track's positions up to the frame shown, the same path the
43728
+ * debug views draw (`buildSubjectPath`, D903). Every picture mode a subject
43729
+ * is drawn on: a `crop` maps the path into the crop and clips it. Valid only
43730
+ * on a rule whose subject is a tracked object (refused on a sound rule);
43731
+ * dropped on `image: 'none'`. Absent = off.
43732
+ */
43733
+ showSubjectPath: boolean().optional(),
43734
43734
  /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43735
43735
  attach: _enum([
43736
43736
  "best",
@@ -74881,12 +74881,6 @@ Object.freeze({
74881
74881
  addonId: null,
74882
74882
  access: "create"
74883
74883
  },
74884
- "storageAdmin.dropCollection": {
74885
- capName: "storage-admin",
74886
- capScope: "system",
74887
- addonId: null,
74888
- access: "delete"
74889
- },
74890
74884
  "storageAdmin.listKinds": {
74891
74885
  capName: "storage-admin",
74892
74886
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-import-alexa",
3
- "version": "0.2.138",
3
+ "version": "0.2.140",
4
4
  "description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
5
5
  "keywords": [
6
6
  "camstack",