@camstack/addon-provider-wyze 0.2.149 → 0.2.151

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
@@ -5446,7 +5446,7 @@ var ZodIssueCode = {
5446
5446
  var ZodFirstPartyTypeKind;
5447
5447
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5448
5448
  //#endregion
5449
- //#region ../types/dist/sleep-CSuN0thG.mjs
5449
+ //#region ../types/dist/sleep-_sV1BE2f.mjs
5450
5450
  /**
5451
5451
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5452
5452
  * window to float samples (D455).
@@ -5563,7 +5563,7 @@ function isKeychainStoredField(field) {
5563
5563
  var SECRET_CLEAR = { $secretClear: true };
5564
5564
  /** The `'***'` token D634 redaction writes for non-admins. */
5565
5565
  var LEGACY_DEVICE_REDACTION = "***";
5566
- function isRecord$5(value) {
5566
+ function isRecord$6(value) {
5567
5567
  return typeof value === "object" && value !== null && !Array.isArray(value);
5568
5568
  }
5569
5569
  function makeSecretMarker(ref) {
@@ -5574,12 +5574,12 @@ function makeSecretMarker(ref) {
5574
5574
  }
5575
5575
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5576
5576
  function isSecretMarker(value) {
5577
- if (!isRecord$5(value)) return false;
5577
+ if (!isRecord$6(value)) return false;
5578
5578
  const ref = value["$secret"];
5579
5579
  return typeof ref === "string" && ref.length > 0;
5580
5580
  }
5581
5581
  function isSecretClear(value) {
5582
- return isRecord$5(value) && value["$secretClear"] === true;
5582
+ return isRecord$6(value) && value["$secretClear"] === true;
5583
5583
  }
5584
5584
  /**
5585
5585
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6189,7 +6189,7 @@ var KeychainWriteRefusedError = class extends Error {
6189
6189
  }
6190
6190
  };
6191
6191
  var KEEP = { kind: "keep" };
6192
- function isRecord$4(value) {
6192
+ function isRecord$5(value) {
6193
6193
  return typeof value === "object" && value !== null && !Array.isArray(value);
6194
6194
  }
6195
6195
  function defaultMintId() {
@@ -6202,7 +6202,7 @@ function collectSecretMarkerRefs(value, out = []) {
6202
6202
  return out;
6203
6203
  }
6204
6204
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6205
- else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6205
+ else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6206
6206
  return out;
6207
6207
  }
6208
6208
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6257,7 +6257,7 @@ function rowId(row, idKey) {
6257
6257
  return null;
6258
6258
  }
6259
6259
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6260
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
6260
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
6261
6261
  if (!Array.isArray(incoming)) {
6262
6262
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6263
6263
  return {
@@ -6273,7 +6273,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6273
6273
  const kept = /* @__PURE__ */ new Set();
6274
6274
  const rows = [];
6275
6275
  for (const row of incoming) {
6276
- if (!isRecord$4(row)) {
6276
+ if (!isRecord$5(row)) {
6277
6277
  rows.push(row);
6278
6278
  continue;
6279
6279
  }
@@ -6298,7 +6298,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6298
6298
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6299
6299
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6300
6300
  case "object": {
6301
- if (!isRecord$4(incoming)) {
6301
+ if (!isRecord$5(incoming)) {
6302
6302
  if (incoming === void 0) return KEEP;
6303
6303
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6304
6304
  return {
@@ -6306,7 +6306,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6306
6306
  value: incoming
6307
6307
  };
6308
6308
  }
6309
- const storedObj = isRecord$4(stored) ? stored : {};
6309
+ const storedObj = isRecord$5(stored) ? stored : {};
6310
6310
  return {
6311
6311
  kind: "value",
6312
6312
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6429,7 +6429,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6429
6429
  value: items
6430
6430
  };
6431
6431
  }
6432
- if (isRecord$4(v)) {
6432
+ if (isRecord$5(v)) {
6433
6433
  const out = {};
6434
6434
  for (const [k, child] of Object.entries(v)) {
6435
6435
  const s = substitute(child);
@@ -6461,7 +6461,7 @@ var SecretOverwriteRefusedError = class extends Error {
6461
6461
  this.name = "SecretOverwriteRefusedError";
6462
6462
  }
6463
6463
  };
6464
- function isRecord$3(value) {
6464
+ function isRecord$4(value) {
6465
6465
  return typeof value === "object" && value !== null && !Array.isArray(value);
6466
6466
  }
6467
6467
  function resolvedValue(pass, marker) {
@@ -6490,7 +6490,7 @@ function inArray(pass, incoming, stored) {
6490
6490
  return incoming.map((item, index) => {
6491
6491
  const twin = stored[index];
6492
6492
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6493
- if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
6493
+ if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
6494
6494
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6495
6495
  return item;
6496
6496
  });
@@ -6501,7 +6501,7 @@ function inArrayRow(pass, incoming, stored) {
6501
6501
  const twin = stored[key];
6502
6502
  if (isSecretMarker(twin)) {
6503
6503
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6504
- } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
6504
+ } else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
6505
6505
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6506
6506
  }
6507
6507
  return out;
@@ -6509,7 +6509,7 @@ function inArrayRow(pass, incoming, stored) {
6509
6509
  async function walk(pass, incoming, stored) {
6510
6510
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6511
6511
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6512
- if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
6512
+ if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
6513
6513
  const out = { ...incoming };
6514
6514
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6515
6515
  return out;
@@ -6540,7 +6540,7 @@ async function restoreUnchangedSecrets(input) {
6540
6540
  function isJsonEqual(a, b) {
6541
6541
  if (Object.is(a, b)) return true;
6542
6542
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6543
- if (isRecord$3(a) && isRecord$3(b)) {
6543
+ if (isRecord$4(a) && isRecord$4(b)) {
6544
6544
  const keys = Object.keys(a);
6545
6545
  if (keys.length !== Object.keys(b).length) return false;
6546
6546
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6564,7 +6564,7 @@ function markerKeysOf(blob, owner) {
6564
6564
  }
6565
6565
  function nodeFromStored(value, owner) {
6566
6566
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6567
- if (!isRecord$3(value)) return null;
6567
+ if (!isRecord$4(value)) return null;
6568
6568
  const children = /* @__PURE__ */ new Map();
6569
6569
  for (const [key, child] of Object.entries(value)) {
6570
6570
  const node = nodeFromStored(child, owner);
@@ -16869,15 +16869,6 @@ var StorageKindSchema = object({
16869
16869
  declaration: RecordKindDeclarationSchema
16870
16870
  });
16871
16871
  method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
16872
- collection: string().min(1),
16873
- expectRows: number().int().nonnegative()
16874
- }), object({
16875
- dropped: literal(true),
16876
- rows: number().int().nonnegative()
16877
- }), {
16878
- kind: "mutation",
16879
- auth: "admin"
16880
- }), method(object({
16881
16872
  owner: string().min(1).optional(),
16882
16873
  /** `false` skips the per-kind row count (a catalog read only). Default true. */
16883
16874
  counts: boolean().optional()
@@ -43252,6 +43243,15 @@ var NcMediaPolicySchema = object({
43252
43243
  * Replaces `zoneCrop`.
43253
43244
  */
43254
43245
  showTriggerZone: boolean().optional(),
43246
+ /**
43247
+ * Draw the SUBJECT'S PATH on the picture — a line in the subject's colour
43248
+ * through the track's positions up to the frame shown, the same path the
43249
+ * debug views draw (`buildSubjectPath`, D903). Every picture mode a subject
43250
+ * is drawn on: a `crop` maps the path into the crop and clips it. Valid only
43251
+ * on a rule whose subject is a tracked object (refused on a sound rule);
43252
+ * dropped on `image: 'none'`. Absent = off.
43253
+ */
43254
+ showSubjectPath: boolean().optional(),
43255
43255
  /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43256
43256
  attach: _enum([
43257
43257
  "best",
@@ -74497,12 +74497,6 @@ Object.freeze({
74497
74497
  addonId: null,
74498
74498
  access: "create"
74499
74499
  },
74500
- "storageAdmin.dropCollection": {
74501
- capName: "storage-admin",
74502
- capScope: "system",
74503
- addonId: null,
74504
- access: "delete"
74505
- },
74506
74500
  "storageAdmin.listKinds": {
74507
74501
  capName: "storage-admin",
74508
74502
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -5425,7 +5425,7 @@ var ZodIssueCode = {
5425
5425
  var ZodFirstPartyTypeKind;
5426
5426
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5427
5427
  //#endregion
5428
- //#region ../types/dist/sleep-CSuN0thG.mjs
5428
+ //#region ../types/dist/sleep-_sV1BE2f.mjs
5429
5429
  /**
5430
5430
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5431
5431
  * window to float samples (D455).
@@ -5542,7 +5542,7 @@ function isKeychainStoredField(field) {
5542
5542
  var SECRET_CLEAR = { $secretClear: true };
5543
5543
  /** The `'***'` token D634 redaction writes for non-admins. */
5544
5544
  var LEGACY_DEVICE_REDACTION = "***";
5545
- function isRecord$5(value) {
5545
+ function isRecord$6(value) {
5546
5546
  return typeof value === "object" && value !== null && !Array.isArray(value);
5547
5547
  }
5548
5548
  function makeSecretMarker(ref) {
@@ -5553,12 +5553,12 @@ function makeSecretMarker(ref) {
5553
5553
  }
5554
5554
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5555
5555
  function isSecretMarker(value) {
5556
- if (!isRecord$5(value)) return false;
5556
+ if (!isRecord$6(value)) return false;
5557
5557
  const ref = value["$secret"];
5558
5558
  return typeof ref === "string" && ref.length > 0;
5559
5559
  }
5560
5560
  function isSecretClear(value) {
5561
- return isRecord$5(value) && value["$secretClear"] === true;
5561
+ return isRecord$6(value) && value["$secretClear"] === true;
5562
5562
  }
5563
5563
  /**
5564
5564
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6168,7 +6168,7 @@ var KeychainWriteRefusedError = class extends Error {
6168
6168
  }
6169
6169
  };
6170
6170
  var KEEP = { kind: "keep" };
6171
- function isRecord$4(value) {
6171
+ function isRecord$5(value) {
6172
6172
  return typeof value === "object" && value !== null && !Array.isArray(value);
6173
6173
  }
6174
6174
  function defaultMintId() {
@@ -6181,7 +6181,7 @@ function collectSecretMarkerRefs(value, out = []) {
6181
6181
  return out;
6182
6182
  }
6183
6183
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6184
- else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6184
+ else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6185
6185
  return out;
6186
6186
  }
6187
6187
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6236,7 +6236,7 @@ function rowId(row, idKey) {
6236
6236
  return null;
6237
6237
  }
6238
6238
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6239
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
6239
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
6240
6240
  if (!Array.isArray(incoming)) {
6241
6241
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6242
6242
  return {
@@ -6252,7 +6252,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6252
6252
  const kept = /* @__PURE__ */ new Set();
6253
6253
  const rows = [];
6254
6254
  for (const row of incoming) {
6255
- if (!isRecord$4(row)) {
6255
+ if (!isRecord$5(row)) {
6256
6256
  rows.push(row);
6257
6257
  continue;
6258
6258
  }
@@ -6277,7 +6277,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6277
6277
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6278
6278
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6279
6279
  case "object": {
6280
- if (!isRecord$4(incoming)) {
6280
+ if (!isRecord$5(incoming)) {
6281
6281
  if (incoming === void 0) return KEEP;
6282
6282
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6283
6283
  return {
@@ -6285,7 +6285,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6285
6285
  value: incoming
6286
6286
  };
6287
6287
  }
6288
- const storedObj = isRecord$4(stored) ? stored : {};
6288
+ const storedObj = isRecord$5(stored) ? stored : {};
6289
6289
  return {
6290
6290
  kind: "value",
6291
6291
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6408,7 +6408,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6408
6408
  value: items
6409
6409
  };
6410
6410
  }
6411
- if (isRecord$4(v)) {
6411
+ if (isRecord$5(v)) {
6412
6412
  const out = {};
6413
6413
  for (const [k, child] of Object.entries(v)) {
6414
6414
  const s = substitute(child);
@@ -6440,7 +6440,7 @@ var SecretOverwriteRefusedError = class extends Error {
6440
6440
  this.name = "SecretOverwriteRefusedError";
6441
6441
  }
6442
6442
  };
6443
- function isRecord$3(value) {
6443
+ function isRecord$4(value) {
6444
6444
  return typeof value === "object" && value !== null && !Array.isArray(value);
6445
6445
  }
6446
6446
  function resolvedValue(pass, marker) {
@@ -6469,7 +6469,7 @@ function inArray(pass, incoming, stored) {
6469
6469
  return incoming.map((item, index) => {
6470
6470
  const twin = stored[index];
6471
6471
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6472
- if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
6472
+ if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
6473
6473
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6474
6474
  return item;
6475
6475
  });
@@ -6480,7 +6480,7 @@ function inArrayRow(pass, incoming, stored) {
6480
6480
  const twin = stored[key];
6481
6481
  if (isSecretMarker(twin)) {
6482
6482
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6483
- } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
6483
+ } else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
6484
6484
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6485
6485
  }
6486
6486
  return out;
@@ -6488,7 +6488,7 @@ function inArrayRow(pass, incoming, stored) {
6488
6488
  async function walk(pass, incoming, stored) {
6489
6489
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6490
6490
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6491
- if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
6491
+ if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
6492
6492
  const out = { ...incoming };
6493
6493
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6494
6494
  return out;
@@ -6519,7 +6519,7 @@ async function restoreUnchangedSecrets(input) {
6519
6519
  function isJsonEqual(a, b) {
6520
6520
  if (Object.is(a, b)) return true;
6521
6521
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6522
- if (isRecord$3(a) && isRecord$3(b)) {
6522
+ if (isRecord$4(a) && isRecord$4(b)) {
6523
6523
  const keys = Object.keys(a);
6524
6524
  if (keys.length !== Object.keys(b).length) return false;
6525
6525
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6543,7 +6543,7 @@ function markerKeysOf(blob, owner) {
6543
6543
  }
6544
6544
  function nodeFromStored(value, owner) {
6545
6545
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6546
- if (!isRecord$3(value)) return null;
6546
+ if (!isRecord$4(value)) return null;
6547
6547
  const children = /* @__PURE__ */ new Map();
6548
6548
  for (const [key, child] of Object.entries(value)) {
6549
6549
  const node = nodeFromStored(child, owner);
@@ -16848,15 +16848,6 @@ var StorageKindSchema = object({
16848
16848
  declaration: RecordKindDeclarationSchema
16849
16849
  });
16850
16850
  method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
16851
- collection: string().min(1),
16852
- expectRows: number().int().nonnegative()
16853
- }), object({
16854
- dropped: literal(true),
16855
- rows: number().int().nonnegative()
16856
- }), {
16857
- kind: "mutation",
16858
- auth: "admin"
16859
- }), method(object({
16860
16851
  owner: string().min(1).optional(),
16861
16852
  /** `false` skips the per-kind row count (a catalog read only). Default true. */
16862
16853
  counts: boolean().optional()
@@ -43231,6 +43222,15 @@ var NcMediaPolicySchema = object({
43231
43222
  * Replaces `zoneCrop`.
43232
43223
  */
43233
43224
  showTriggerZone: boolean().optional(),
43225
+ /**
43226
+ * Draw the SUBJECT'S PATH on the picture — a line in the subject's colour
43227
+ * through the track's positions up to the frame shown, the same path the
43228
+ * debug views draw (`buildSubjectPath`, D903). Every picture mode a subject
43229
+ * is drawn on: a `crop` maps the path into the crop and clips it. Valid only
43230
+ * on a rule whose subject is a tracked object (refused on a sound rule);
43231
+ * dropped on `image: 'none'`. Absent = off.
43232
+ */
43233
+ showSubjectPath: boolean().optional(),
43234
43234
  /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43235
43235
  attach: _enum([
43236
43236
  "best",
@@ -74476,12 +74476,6 @@ Object.freeze({
74476
74476
  addonId: null,
74477
74477
  access: "create"
74478
74478
  },
74479
- "storageAdmin.dropCollection": {
74480
- capName: "storage-admin",
74481
- capScope: "system",
74482
- addonId: null,
74483
- access: "delete"
74484
- },
74485
74479
  "storageAdmin.listKinds": {
74486
74480
  capName: "storage-admin",
74487
74481
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-wyze",
3
- "version": "0.2.149",
3
+ "version": "0.2.151",
4
4
  "description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
5
5
  "keywords": [
6
6
  "camstack",