@camstack/addon-provider-amcrest 0.2.148 → 0.2.150

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
@@ -5450,7 +5450,7 @@ var ZodIssueCode = {
5450
5450
  var ZodFirstPartyTypeKind;
5451
5451
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5452
5452
  //#endregion
5453
- //#region ../types/dist/sleep-CSuN0thG.mjs
5453
+ //#region ../types/dist/sleep-_sV1BE2f.mjs
5454
5454
  /**
5455
5455
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5456
5456
  * window to float samples (D455).
@@ -5567,7 +5567,7 @@ function isKeychainStoredField(field) {
5567
5567
  var SECRET_CLEAR = { $secretClear: true };
5568
5568
  /** The `'***'` token D634 redaction writes for non-admins. */
5569
5569
  var LEGACY_DEVICE_REDACTION = "***";
5570
- function isRecord$5(value) {
5570
+ function isRecord$6(value) {
5571
5571
  return typeof value === "object" && value !== null && !Array.isArray(value);
5572
5572
  }
5573
5573
  function makeSecretMarker(ref) {
@@ -5578,12 +5578,12 @@ function makeSecretMarker(ref) {
5578
5578
  }
5579
5579
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5580
5580
  function isSecretMarker(value) {
5581
- if (!isRecord$5(value)) return false;
5581
+ if (!isRecord$6(value)) return false;
5582
5582
  const ref = value["$secret"];
5583
5583
  return typeof ref === "string" && ref.length > 0;
5584
5584
  }
5585
5585
  function isSecretClear(value) {
5586
- return isRecord$5(value) && value["$secretClear"] === true;
5586
+ return isRecord$6(value) && value["$secretClear"] === true;
5587
5587
  }
5588
5588
  /**
5589
5589
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6193,7 +6193,7 @@ var KeychainWriteRefusedError = class extends Error {
6193
6193
  }
6194
6194
  };
6195
6195
  var KEEP = { kind: "keep" };
6196
- function isRecord$4(value) {
6196
+ function isRecord$5(value) {
6197
6197
  return typeof value === "object" && value !== null && !Array.isArray(value);
6198
6198
  }
6199
6199
  function defaultMintId() {
@@ -6206,7 +6206,7 @@ function collectSecretMarkerRefs(value, out = []) {
6206
6206
  return out;
6207
6207
  }
6208
6208
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6209
- else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6209
+ else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6210
6210
  return out;
6211
6211
  }
6212
6212
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6261,7 +6261,7 @@ function rowId(row, idKey) {
6261
6261
  return null;
6262
6262
  }
6263
6263
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6264
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
6264
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
6265
6265
  if (!Array.isArray(incoming)) {
6266
6266
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6267
6267
  return {
@@ -6277,7 +6277,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6277
6277
  const kept = /* @__PURE__ */ new Set();
6278
6278
  const rows = [];
6279
6279
  for (const row of incoming) {
6280
- if (!isRecord$4(row)) {
6280
+ if (!isRecord$5(row)) {
6281
6281
  rows.push(row);
6282
6282
  continue;
6283
6283
  }
@@ -6302,7 +6302,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6302
6302
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6303
6303
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6304
6304
  case "object": {
6305
- if (!isRecord$4(incoming)) {
6305
+ if (!isRecord$5(incoming)) {
6306
6306
  if (incoming === void 0) return KEEP;
6307
6307
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6308
6308
  return {
@@ -6310,7 +6310,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6310
6310
  value: incoming
6311
6311
  };
6312
6312
  }
6313
- const storedObj = isRecord$4(stored) ? stored : {};
6313
+ const storedObj = isRecord$5(stored) ? stored : {};
6314
6314
  return {
6315
6315
  kind: "value",
6316
6316
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6433,7 +6433,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6433
6433
  value: items
6434
6434
  };
6435
6435
  }
6436
- if (isRecord$4(v)) {
6436
+ if (isRecord$5(v)) {
6437
6437
  const out = {};
6438
6438
  for (const [k, child] of Object.entries(v)) {
6439
6439
  const s = substitute(child);
@@ -6465,7 +6465,7 @@ var SecretOverwriteRefusedError = class extends Error {
6465
6465
  this.name = "SecretOverwriteRefusedError";
6466
6466
  }
6467
6467
  };
6468
- function isRecord$3(value) {
6468
+ function isRecord$4(value) {
6469
6469
  return typeof value === "object" && value !== null && !Array.isArray(value);
6470
6470
  }
6471
6471
  function resolvedValue(pass, marker) {
@@ -6494,7 +6494,7 @@ function inArray(pass, incoming, stored) {
6494
6494
  return incoming.map((item, index) => {
6495
6495
  const twin = stored[index];
6496
6496
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6497
- if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
6497
+ if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
6498
6498
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6499
6499
  return item;
6500
6500
  });
@@ -6505,7 +6505,7 @@ function inArrayRow(pass, incoming, stored) {
6505
6505
  const twin = stored[key];
6506
6506
  if (isSecretMarker(twin)) {
6507
6507
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6508
- } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
6508
+ } else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
6509
6509
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6510
6510
  }
6511
6511
  return out;
@@ -6513,7 +6513,7 @@ function inArrayRow(pass, incoming, stored) {
6513
6513
  async function walk(pass, incoming, stored) {
6514
6514
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6515
6515
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6516
- if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
6516
+ if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
6517
6517
  const out = { ...incoming };
6518
6518
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6519
6519
  return out;
@@ -6544,7 +6544,7 @@ async function restoreUnchangedSecrets(input) {
6544
6544
  function isJsonEqual(a, b) {
6545
6545
  if (Object.is(a, b)) return true;
6546
6546
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6547
- if (isRecord$3(a) && isRecord$3(b)) {
6547
+ if (isRecord$4(a) && isRecord$4(b)) {
6548
6548
  const keys = Object.keys(a);
6549
6549
  if (keys.length !== Object.keys(b).length) return false;
6550
6550
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6568,7 +6568,7 @@ function markerKeysOf(blob, owner) {
6568
6568
  }
6569
6569
  function nodeFromStored(value, owner) {
6570
6570
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6571
- if (!isRecord$3(value)) return null;
6571
+ if (!isRecord$4(value)) return null;
6572
6572
  const children = /* @__PURE__ */ new Map();
6573
6573
  for (const [key, child] of Object.entries(value)) {
6574
6574
  const node = nodeFromStored(child, owner);
@@ -16863,15 +16863,6 @@ var StorageKindSchema = object({
16863
16863
  declaration: RecordKindDeclarationSchema
16864
16864
  });
16865
16865
  method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
16866
- collection: string().min(1),
16867
- expectRows: number().int().nonnegative()
16868
- }), object({
16869
- dropped: literal(true),
16870
- rows: number().int().nonnegative()
16871
- }), {
16872
- kind: "mutation",
16873
- auth: "admin"
16874
- }), method(object({
16875
16866
  owner: string().min(1).optional(),
16876
16867
  /** `false` skips the per-kind row count (a catalog read only). Default true. */
16877
16868
  counts: boolean().optional()
@@ -43342,6 +43333,15 @@ var NcMediaPolicySchema = object({
43342
43333
  * Replaces `zoneCrop`.
43343
43334
  */
43344
43335
  showTriggerZone: boolean().optional(),
43336
+ /**
43337
+ * Draw the SUBJECT'S PATH on the picture — a line in the subject's colour
43338
+ * through the track's positions up to the frame shown, the same path the
43339
+ * debug views draw (`buildSubjectPath`, D903). Every picture mode a subject
43340
+ * is drawn on: a `crop` maps the path into the crop and clips it. Valid only
43341
+ * on a rule whose subject is a tracked object (refused on a sound rule);
43342
+ * dropped on `image: 'none'`. Absent = off.
43343
+ */
43344
+ showSubjectPath: boolean().optional(),
43345
43345
  /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43346
43346
  attach: _enum([
43347
43347
  "best",
@@ -75454,12 +75454,6 @@ Object.freeze({
75454
75454
  addonId: null,
75455
75455
  access: "create"
75456
75456
  },
75457
- "storageAdmin.dropCollection": {
75458
- capName: "storage-admin",
75459
- capScope: "system",
75460
- addonId: null,
75461
- access: "delete"
75462
- },
75463
75457
  "storageAdmin.listKinds": {
75464
75458
  capName: "storage-admin",
75465
75459
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -5429,7 +5429,7 @@ var ZodIssueCode = {
5429
5429
  var ZodFirstPartyTypeKind;
5430
5430
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5431
5431
  //#endregion
5432
- //#region ../types/dist/sleep-CSuN0thG.mjs
5432
+ //#region ../types/dist/sleep-_sV1BE2f.mjs
5433
5433
  /**
5434
5434
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5435
5435
  * window to float samples (D455).
@@ -5546,7 +5546,7 @@ function isKeychainStoredField(field) {
5546
5546
  var SECRET_CLEAR = { $secretClear: true };
5547
5547
  /** The `'***'` token D634 redaction writes for non-admins. */
5548
5548
  var LEGACY_DEVICE_REDACTION = "***";
5549
- function isRecord$5(value) {
5549
+ function isRecord$6(value) {
5550
5550
  return typeof value === "object" && value !== null && !Array.isArray(value);
5551
5551
  }
5552
5552
  function makeSecretMarker(ref) {
@@ -5557,12 +5557,12 @@ function makeSecretMarker(ref) {
5557
5557
  }
5558
5558
  /** A stored marker: an object whose `$secret` is a non-empty string. */
5559
5559
  function isSecretMarker(value) {
5560
- if (!isRecord$5(value)) return false;
5560
+ if (!isRecord$6(value)) return false;
5561
5561
  const ref = value["$secret"];
5562
5562
  return typeof ref === "string" && ref.length > 0;
5563
5563
  }
5564
5564
  function isSecretClear(value) {
5565
- return isRecord$5(value) && value["$secretClear"] === true;
5565
+ return isRecord$6(value) && value["$secretClear"] === true;
5566
5566
  }
5567
5567
  /**
5568
5568
  * The UI view of a stored secret field value: a marker becomes "set", inline
@@ -6172,7 +6172,7 @@ var KeychainWriteRefusedError = class extends Error {
6172
6172
  }
6173
6173
  };
6174
6174
  var KEEP = { kind: "keep" };
6175
- function isRecord$4(value) {
6175
+ function isRecord$5(value) {
6176
6176
  return typeof value === "object" && value !== null && !Array.isArray(value);
6177
6177
  }
6178
6178
  function defaultMintId() {
@@ -6185,7 +6185,7 @@ function collectSecretMarkerRefs(value, out = []) {
6185
6185
  return out;
6186
6186
  }
6187
6187
  if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
6188
- else if (isRecord$4(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6188
+ else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
6189
6189
  return out;
6190
6190
  }
6191
6191
  async function storedValueEquals(secrets, marker, candidate) {
@@ -6240,7 +6240,7 @@ function rowId(row, idKey) {
6240
6240
  return null;
6241
6241
  }
6242
6242
  async function writeArray(ctx, node, incoming, stored, fieldPath) {
6243
- const storedRows = Array.isArray(stored) ? stored.filter(isRecord$4) : [];
6243
+ const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
6244
6244
  if (!Array.isArray(incoming)) {
6245
6245
  ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
6246
6246
  return {
@@ -6256,7 +6256,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
6256
6256
  const kept = /* @__PURE__ */ new Set();
6257
6257
  const rows = [];
6258
6258
  for (const row of incoming) {
6259
- if (!isRecord$4(row)) {
6259
+ if (!isRecord$5(row)) {
6260
6260
  rows.push(row);
6261
6261
  continue;
6262
6262
  }
@@ -6281,7 +6281,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6281
6281
  case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
6282
6282
  case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
6283
6283
  case "object": {
6284
- if (!isRecord$4(incoming)) {
6284
+ if (!isRecord$5(incoming)) {
6285
6285
  if (incoming === void 0) return KEEP;
6286
6286
  ctx.deletes.push(...collectSecretMarkerRefs(stored));
6287
6287
  return {
@@ -6289,7 +6289,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
6289
6289
  value: incoming
6290
6290
  };
6291
6291
  }
6292
- const storedObj = isRecord$4(stored) ? stored : {};
6292
+ const storedObj = isRecord$5(stored) ? stored : {};
6293
6293
  return {
6294
6294
  kind: "value",
6295
6295
  value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
@@ -6412,7 +6412,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
6412
6412
  value: items
6413
6413
  };
6414
6414
  }
6415
- if (isRecord$4(v)) {
6415
+ if (isRecord$5(v)) {
6416
6416
  const out = {};
6417
6417
  for (const [k, child] of Object.entries(v)) {
6418
6418
  const s = substitute(child);
@@ -6444,7 +6444,7 @@ var SecretOverwriteRefusedError = class extends Error {
6444
6444
  this.name = "SecretOverwriteRefusedError";
6445
6445
  }
6446
6446
  };
6447
- function isRecord$3(value) {
6447
+ function isRecord$4(value) {
6448
6448
  return typeof value === "object" && value !== null && !Array.isArray(value);
6449
6449
  }
6450
6450
  function resolvedValue(pass, marker) {
@@ -6473,7 +6473,7 @@ function inArray(pass, incoming, stored) {
6473
6473
  return incoming.map((item, index) => {
6474
6474
  const twin = stored[index];
6475
6475
  if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
6476
- if (isRecord$3(item) && isRecord$3(twin)) return inArrayRow(pass, item, twin);
6476
+ if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
6477
6477
  if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
6478
6478
  return item;
6479
6479
  });
@@ -6484,7 +6484,7 @@ function inArrayRow(pass, incoming, stored) {
6484
6484
  const twin = stored[key];
6485
6485
  if (isSecretMarker(twin)) {
6486
6486
  if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
6487
- } else if (isRecord$3(value) && isRecord$3(twin)) out[key] = inArrayRow(pass, value, twin);
6487
+ } else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
6488
6488
  else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
6489
6489
  }
6490
6490
  return out;
@@ -6492,7 +6492,7 @@ function inArrayRow(pass, incoming, stored) {
6492
6492
  async function walk(pass, incoming, stored) {
6493
6493
  if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
6494
6494
  if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
6495
- if (!isRecord$3(incoming) || !isRecord$3(stored)) return incoming;
6495
+ if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
6496
6496
  const out = { ...incoming };
6497
6497
  for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
6498
6498
  return out;
@@ -6523,7 +6523,7 @@ async function restoreUnchangedSecrets(input) {
6523
6523
  function isJsonEqual(a, b) {
6524
6524
  if (Object.is(a, b)) return true;
6525
6525
  if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
6526
- if (isRecord$3(a) && isRecord$3(b)) {
6526
+ if (isRecord$4(a) && isRecord$4(b)) {
6527
6527
  const keys = Object.keys(a);
6528
6528
  if (keys.length !== Object.keys(b).length) return false;
6529
6529
  return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
@@ -6547,7 +6547,7 @@ function markerKeysOf(blob, owner) {
6547
6547
  }
6548
6548
  function nodeFromStored(value, owner) {
6549
6549
  if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
6550
- if (!isRecord$3(value)) return null;
6550
+ if (!isRecord$4(value)) return null;
6551
6551
  const children = /* @__PURE__ */ new Map();
6552
6552
  for (const [key, child] of Object.entries(value)) {
6553
6553
  const node = nodeFromStored(child, owner);
@@ -16842,15 +16842,6 @@ var StorageKindSchema = object({
16842
16842
  declaration: RecordKindDeclarationSchema
16843
16843
  });
16844
16844
  method(object({ ownerPrefix: string().min(1).optional() }), object({ tables: array(StorageTableSchema) }), { auth: "admin" }), method(object({
16845
- collection: string().min(1),
16846
- expectRows: number().int().nonnegative()
16847
- }), object({
16848
- dropped: literal(true),
16849
- rows: number().int().nonnegative()
16850
- }), {
16851
- kind: "mutation",
16852
- auth: "admin"
16853
- }), method(object({
16854
16845
  owner: string().min(1).optional(),
16855
16846
  /** `false` skips the per-kind row count (a catalog read only). Default true. */
16856
16847
  counts: boolean().optional()
@@ -43321,6 +43312,15 @@ var NcMediaPolicySchema = object({
43321
43312
  * Replaces `zoneCrop`.
43322
43313
  */
43323
43314
  showTriggerZone: boolean().optional(),
43315
+ /**
43316
+ * Draw the SUBJECT'S PATH on the picture — a line in the subject's colour
43317
+ * through the track's positions up to the frame shown, the same path the
43318
+ * debug views draw (`buildSubjectPath`, D903). Every picture mode a subject
43319
+ * is drawn on: a `crop` maps the path into the crop and clips it. Valid only
43320
+ * on a rule whose subject is a tracked object (refused on a sound rule);
43321
+ * dropped on `image: 'none'`. Absent = off.
43322
+ */
43323
+ showSubjectPath: boolean().optional(),
43324
43324
  /** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
43325
43325
  attach: _enum([
43326
43326
  "best",
@@ -75433,12 +75433,6 @@ Object.freeze({
75433
75433
  addonId: null,
75434
75434
  access: "create"
75435
75435
  },
75436
- "storageAdmin.dropCollection": {
75437
- capName: "storage-admin",
75438
- capScope: "system",
75439
- addonId: null,
75440
- access: "delete"
75441
- },
75442
75436
  "storageAdmin.listKinds": {
75443
75437
  capName: "storage-admin",
75444
75438
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-amcrest",
3
- "version": "0.2.148",
3
+ "version": "0.2.150",
4
4
  "description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
5
5
  "keywords": [
6
6
  "camstack",