@camstack/addon-remote-storage 1.2.111 → 1.2.112

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-Bhu2uLrQ.js");
5
+ const require_shared = require("./shared-BzcxiP7X.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-CBezyYaV.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-C7q4_9GC.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-Bhu2uLrQ.js");
5
+ const require_shared = require("./shared-BzcxiP7X.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-CBezyYaV.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-C7q4_9GC.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
@@ -5384,7 +5384,7 @@ var ZodIssueCode = {
5384
5384
  var ZodFirstPartyTypeKind;
5385
5385
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5386
5386
  //#endregion
5387
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5387
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
5388
5388
  /**
5389
5389
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5390
5390
  * window to float samples (D455).
@@ -28930,6 +28930,26 @@ var PtzHomePresetSchema = object({
28930
28930
  "none"
28931
28931
  ])
28932
28932
  });
28933
+ /**
28934
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
28935
+ * after how long.
28936
+ *
28937
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
28938
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
28939
+ * written by the same command. Reading them apart means two round-trips that
28940
+ * can disagree.
28941
+ *
28942
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
28943
+ * the behaviour switched off, which is exactly what the vendor app leaves when
28944
+ * you turn the guard point off without clearing it. The first version of this
28945
+ * cap reported only the delay, so that state was invisible — a camera could be
28946
+ * configured to return after 68 seconds with no way to say whether it should
28947
+ * return at all.
28948
+ */
28949
+ var PtzHomeReturnSchema = object({
28950
+ enabled: boolean(),
28951
+ seconds: number().int()
28952
+ });
28933
28953
  DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(PtzPresetSchema)), method(object({
28934
28954
  deviceId: number(),
28935
28955
  presetId: string()
@@ -28955,8 +28975,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
28955
28975
  }), method(object({ deviceId: number() }), _void(), {
28956
28976
  kind: "mutation",
28957
28977
  auth: "admin"
28958
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
28978
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
28959
28979
  deviceId: number(),
28980
+ enabled: boolean(),
28960
28981
  seconds: number().int().min(0).max(3600)
28961
28982
  }), _void(), {
28962
28983
  kind: "mutation",
@@ -35988,7 +36009,7 @@ Object.freeze({
35988
36009
  addonId: null,
35989
36010
  access: "view"
35990
36011
  },
35991
- "ptz.getHomeReturnSeconds": {
36012
+ "ptz.getHomeReturn": {
35992
36013
  capName: "ptz",
35993
36014
  capScope: "device",
35994
36015
  addonId: null,
@@ -36048,7 +36069,7 @@ Object.freeze({
36048
36069
  addonId: null,
36049
36070
  access: "create"
36050
36071
  },
36051
- "ptz.setHomeReturnSeconds": {
36072
+ "ptz.setHomeReturn": {
36052
36073
  capName: "ptz",
36053
36074
  capScope: "device",
36054
36075
  addonId: null,
@@ -39237,7 +39258,7 @@ Object.freeze({
39237
39258
  form: "single",
39238
39259
  optional: false
39239
39260
  }],
39240
- "ptz.getHomeReturnSeconds": [{
39261
+ "ptz.getHomeReturn": [{
39241
39262
  name: "deviceId",
39242
39263
  form: "single",
39243
39264
  optional: false
@@ -39287,7 +39308,7 @@ Object.freeze({
39287
39308
  form: "single",
39288
39309
  optional: false
39289
39310
  }],
39290
- "ptz.setHomeReturnSeconds": [{
39311
+ "ptz.setHomeReturn": [{
39291
39312
  name: "deviceId",
39292
39313
  form: "single",
39293
39314
  optional: false
@@ -5361,7 +5361,7 @@ var ZodIssueCode = {
5361
5361
  var ZodFirstPartyTypeKind;
5362
5362
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5363
5363
  //#endregion
5364
- //#region ../types/dist/sleep-vl6nBE8d.mjs
5364
+ //#region ../types/dist/sleep-Dk-BdnBf.mjs
5365
5365
  /**
5366
5366
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5367
5367
  * window to float samples (D455).
@@ -28907,6 +28907,26 @@ var PtzHomePresetSchema = object({
28907
28907
  "none"
28908
28908
  ])
28909
28909
  });
28910
+ /**
28911
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
28912
+ * after how long.
28913
+ *
28914
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
28915
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
28916
+ * written by the same command. Reading them apart means two round-trips that
28917
+ * can disagree.
28918
+ *
28919
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
28920
+ * the behaviour switched off, which is exactly what the vendor app leaves when
28921
+ * you turn the guard point off without clearing it. The first version of this
28922
+ * cap reported only the delay, so that state was invisible — a camera could be
28923
+ * configured to return after 68 seconds with no way to say whether it should
28924
+ * return at all.
28925
+ */
28926
+ var PtzHomeReturnSchema = object({
28927
+ enabled: boolean(),
28928
+ seconds: number().int()
28929
+ });
28910
28930
  DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(PtzMoveCommandSchema.extend({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), array(PtzPresetSchema)), method(object({
28911
28931
  deviceId: number(),
28912
28932
  presetId: string()
@@ -28932,8 +28952,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
28932
28952
  }), method(object({ deviceId: number() }), _void(), {
28933
28953
  kind: "mutation",
28934
28954
  auth: "admin"
28935
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
28955
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
28936
28956
  deviceId: number(),
28957
+ enabled: boolean(),
28937
28958
  seconds: number().int().min(0).max(3600)
28938
28959
  }), _void(), {
28939
28960
  kind: "mutation",
@@ -35965,7 +35986,7 @@ Object.freeze({
35965
35986
  addonId: null,
35966
35987
  access: "view"
35967
35988
  },
35968
- "ptz.getHomeReturnSeconds": {
35989
+ "ptz.getHomeReturn": {
35969
35990
  capName: "ptz",
35970
35991
  capScope: "device",
35971
35992
  addonId: null,
@@ -36025,7 +36046,7 @@ Object.freeze({
36025
36046
  addonId: null,
36026
36047
  access: "create"
36027
36048
  },
36028
- "ptz.setHomeReturnSeconds": {
36049
+ "ptz.setHomeReturn": {
36029
36050
  capName: "ptz",
36030
36051
  capScope: "device",
36031
36052
  addonId: null,
@@ -39214,7 +39235,7 @@ Object.freeze({
39214
39235
  form: "single",
39215
39236
  optional: false
39216
39237
  }],
39217
- "ptz.getHomeReturnSeconds": [{
39238
+ "ptz.getHomeReturn": [{
39218
39239
  name: "deviceId",
39219
39240
  form: "single",
39220
39241
  optional: false
@@ -39264,7 +39285,7 @@ Object.freeze({
39264
39285
  form: "single",
39265
39286
  optional: false
39266
39287
  }],
39267
- "ptz.setHomeReturnSeconds": [{
39288
+ "ptz.setHomeReturn": [{
39268
39289
  name: "deviceId",
39269
39290
  form: "single",
39270
39291
  optional: false
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-Bhu2uLrQ.js");
5
+ const require_shared = require("./shared-BzcxiP7X.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-CBezyYaV.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-C7q4_9GC.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-Bhu2uLrQ.js");
5
+ const require_shared = require("./shared-BzcxiP7X.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-CBezyYaV.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-C7q4_9GC.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.111",
3
+ "version": "1.2.112",
4
4
  "description": "Remote storage providers (SFTP, S3, WebDAV, SMB) — unifies remote backends behind the storage-provider cap",
5
5
  "keywords": [
6
6
  "camstack",