@camstack/addon-remote-storage 1.2.59 → 1.2.61

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/s3.addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-UDydenl-.js");
5
+ const require_shared = require("./shared-61TcI1bp.js");
6
6
  let node_stream = require("node:stream");
7
7
  let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
8
8
  let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
package/dist/s3.addon.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-CeXtPz0R.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-DafV_cel.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { DeleteObjectCommand, GetObjectCommand, HeadBucketCommand, HeadObjectCommand, ListObjectsV2Command, PutObjectCommand, S3Client } from "@aws-sdk/client-s3";
4
4
  import { Upload } from "@aws-sdk/lib-storage";
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-UDydenl-.js");
5
+ const require_shared = require("./shared-61TcI1bp.js");
6
6
  let ssh2 = require("ssh2");
7
7
  let node_path = require("node:path");
8
8
  node_path = require_shared.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-CeXtPz0R.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-DafV_cel.mjs";
2
2
  import { Client } from "ssh2";
3
3
  import * as path from "node:path";
4
4
  //#region src/providers/sftp/sftp-config-schema.ts
@@ -12555,7 +12555,26 @@ var DiscoveryCandidateSchema = object({
12555
12555
  * identity ahead of adoption. Rendering metadata (unit, precision)
12556
12556
  * flows live through the cap STATUS SLICE after adoption.
12557
12557
  */
12558
- sourceInfo: SourceInfoSchema.optional()
12558
+ sourceInfo: SourceInfoSchema.optional(),
12559
+ /**
12560
+ * Set when this candidate is a device the provider ALREADY owns.
12561
+ *
12562
+ * A scan cannot generally produce the identity a device was onboarded under
12563
+ * (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
12564
+ * comparison never matches and an owned device looks addable. Re-adopting one
12565
+ * overwrites its config with scan-derived values — that is how a Home Hub's
12566
+ * Baichuan port was overwritten with its ONVIF port, taking the hub and its
12567
+ * three child cameras offline for four hours.
12568
+ *
12569
+ * A provider that can recognise its own devices says so here. Absent means
12570
+ * "not recognised", which is not the same as "known to be new" — a provider
12571
+ * that cannot tell simply never sets it.
12572
+ */
12573
+ alreadyOnboarded: boolean().optional(),
12574
+ /** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
12575
+ onboardedDeviceId: number().optional(),
12576
+ /** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
12577
+ onboardedName: string().optional()
12559
12578
  });
12560
12579
  /**
12561
12580
  * Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
@@ -12532,7 +12532,26 @@ var DiscoveryCandidateSchema = object({
12532
12532
  * identity ahead of adoption. Rendering metadata (unit, precision)
12533
12533
  * flows live through the cap STATUS SLICE after adoption.
12534
12534
  */
12535
- sourceInfo: SourceInfoSchema.optional()
12535
+ sourceInfo: SourceInfoSchema.optional(),
12536
+ /**
12537
+ * Set when this candidate is a device the provider ALREADY owns.
12538
+ *
12539
+ * A scan cannot generally produce the identity a device was onboarded under
12540
+ * (Reolink keys on `mac-<mac>`, learned at adopt time), so a stableId
12541
+ * comparison never matches and an owned device looks addable. Re-adopting one
12542
+ * overwrites its config with scan-derived values — that is how a Home Hub's
12543
+ * Baichuan port was overwritten with its ONVIF port, taking the hub and its
12544
+ * three child cameras offline for four hours.
12545
+ *
12546
+ * A provider that can recognise its own devices says so here. Absent means
12547
+ * "not recognised", which is not the same as "known to be new" — a provider
12548
+ * that cannot tell simply never sets it.
12549
+ */
12550
+ alreadyOnboarded: boolean().optional(),
12551
+ /** Numeric id of the device this candidate was matched to. Set with `alreadyOnboarded`. */
12552
+ onboardedDeviceId: number().optional(),
12553
+ /** Operator-facing name of the matched device, so the UI can say WHICH one it is. */
12554
+ onboardedName: string().optional()
12536
12555
  });
12537
12556
  /**
12538
12557
  * Flat device summary returned by `createDevice` / `adoptDiscoveredDevice`.
package/dist/smb.addon.js CHANGED
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-UDydenl-.js");
5
+ const require_shared = require("./shared-61TcI1bp.js");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_path = require("node:path");
8
8
  node_path = require_shared.__toESM(node_path);
@@ -1,4 +1,4 @@
1
- import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-CeXtPz0R.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-DafV_cel.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import * as path from "node:path";
4
4
  import * as fsp from "node:fs/promises";
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_shared = require("./shared-UDydenl-.js");
5
+ const require_shared = require("./shared-61TcI1bp.js");
6
6
  let node_stream = require("node:stream");
7
7
  let webdav = require("webdav");
8
8
  //#region src/providers/webdav/webdav-config-schema.ts
@@ -1,4 +1,4 @@
1
- import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-CeXtPz0R.mjs";
1
+ import { a as safeJoinRemotePath, c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, r as getRequiredBasePath, s as storageProviderCapability, t as createSessionId } from "./shared-DafV_cel.mjs";
2
2
  import { PassThrough } from "node:stream";
3
3
  import { AuthType, createClient } from "webdav";
4
4
  //#region src/providers/webdav/webdav-config-schema.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-remote-storage",
3
- "version": "1.2.59",
3
+ "version": "1.2.61",
4
4
  "description": "Remote storage providers (SFTP, S3, WebDAV, SMB) — unifies remote backends behind the storage-provider cap",
5
5
  "keywords": [
6
6
  "camstack",