@camstack/addon-remote-storage 1.2.63 → 1.2.65

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-CwWrgspC.js");
5
+ const require_shared = require("./shared-Bxz2Kytb.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-Dzyn58Kk.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-CvnsHCVR.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-CwWrgspC.js");
5
+ const require_shared = require("./shared-Bxz2Kytb.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-Dzyn58Kk.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-CvnsHCVR.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
@@ -7561,7 +7561,8 @@ var CameraSwitchAuthoritySchema = discriminatedUnion("kind", [
7561
7561
  var CameraSwitchUnavailableReasonSchema = _enum([
7562
7562
  "no-provider",
7563
7563
  "source-unreachable",
7564
- "not-configured"
7564
+ "not-configured",
7565
+ "device-disabled"
7565
7566
  ]);
7566
7567
  /**
7567
7568
  * One switch, resolved for one camera.
@@ -12761,7 +12762,12 @@ var ConfigEntrySchema = object({
12761
12762
  value: unknown(),
12762
12763
  description: string().optional()
12763
12764
  });
12764
- var LinkedDevicesModeSchema = _enum(["auto", "manual"]);
12765
+ /**
12766
+ * Only `manual` since D356: the operator picks, nothing links itself. The
12767
+ * field survives on the wire because a viewer already OTA'd parses it —
12768
+ * drop it once no shipped client reads `mode`.
12769
+ */
12770
+ var LinkedDevicesModeSchema = _enum(["manual"]);
12765
12771
  /** One resolved linked device — the compact projection consumers need. */
12766
12772
  var LinkedDeviceSchema = object({
12767
12773
  deviceId: number(),
@@ -23139,12 +23145,20 @@ var BatteryStatusSchema = object({
23139
23145
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23140
23146
  * Reolink-specific for the Solar Panel 2 accessory (will become
23141
23147
  * common on other battery cams). `'none'` means running on battery
23142
- * alone.
23148
+ * alone — a NEGATIVE the firmware actually reported.
23149
+ *
23150
+ * `'unknown'` is the absence of an answer: the provider has not read the
23151
+ * power fields yet, or the firmware reported neither. Before it existed,
23152
+ * two unreadable fields produced `'none'`, and a camera nobody had reached
23153
+ * was drawn "on battery alone" — the same D315 defect `percentage` closed
23154
+ * by going nullable. Consumers SKIP it (no charger state published, no
23155
+ * glyph, no HomeKit ChargingState) rather than coerce it either way.
23143
23156
  */
23144
23157
  charging: _enum([
23145
23158
  "dc",
23146
23159
  "solar",
23147
- "none"
23160
+ "none",
23161
+ "unknown"
23148
23162
  ]),
23149
23163
  /**
23150
23164
  * True when the camera firmware has gone into low-power mode. Battery
@@ -7538,7 +7538,8 @@ var CameraSwitchAuthoritySchema = discriminatedUnion("kind", [
7538
7538
  var CameraSwitchUnavailableReasonSchema = _enum([
7539
7539
  "no-provider",
7540
7540
  "source-unreachable",
7541
- "not-configured"
7541
+ "not-configured",
7542
+ "device-disabled"
7542
7543
  ]);
7543
7544
  /**
7544
7545
  * One switch, resolved for one camera.
@@ -12738,7 +12739,12 @@ var ConfigEntrySchema = object({
12738
12739
  value: unknown(),
12739
12740
  description: string().optional()
12740
12741
  });
12741
- var LinkedDevicesModeSchema = _enum(["auto", "manual"]);
12742
+ /**
12743
+ * Only `manual` since D356: the operator picks, nothing links itself. The
12744
+ * field survives on the wire because a viewer already OTA'd parses it —
12745
+ * drop it once no shipped client reads `mode`.
12746
+ */
12747
+ var LinkedDevicesModeSchema = _enum(["manual"]);
12742
12748
  /** One resolved linked device — the compact projection consumers need. */
12743
12749
  var LinkedDeviceSchema = object({
12744
12750
  deviceId: number(),
@@ -23116,12 +23122,20 @@ var BatteryStatusSchema = object({
23116
23122
  * Charging source. `'dc'` covers wall/USB adapters; `'solar'` is
23117
23123
  * Reolink-specific for the Solar Panel 2 accessory (will become
23118
23124
  * common on other battery cams). `'none'` means running on battery
23119
- * alone.
23125
+ * alone — a NEGATIVE the firmware actually reported.
23126
+ *
23127
+ * `'unknown'` is the absence of an answer: the provider has not read the
23128
+ * power fields yet, or the firmware reported neither. Before it existed,
23129
+ * two unreadable fields produced `'none'`, and a camera nobody had reached
23130
+ * was drawn "on battery alone" — the same D315 defect `percentage` closed
23131
+ * by going nullable. Consumers SKIP it (no charger state published, no
23132
+ * glyph, no HomeKit ChargingState) rather than coerce it either way.
23120
23133
  */
23121
23134
  charging: _enum([
23122
23135
  "dc",
23123
23136
  "solar",
23124
- "none"
23137
+ "none",
23138
+ "unknown"
23125
23139
  ]),
23126
23140
  /**
23127
23141
  * True when the camera firmware has gone into low-power mode. Battery
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-CwWrgspC.js");
5
+ const require_shared = require("./shared-Bxz2Kytb.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-Dzyn58Kk.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-CvnsHCVR.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-CwWrgspC.js");
5
+ const require_shared = require("./shared-Bxz2Kytb.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-Dzyn58Kk.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-CvnsHCVR.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.63",
3
+ "version": "1.2.65",
4
4
  "description": "Remote storage providers (SFTP, S3, WebDAV, SMB) — unifies remote backends behind the storage-provider cap",
5
5
  "keywords": [
6
6
  "camstack",