@camstack/addon-remote-storage 1.2.110 → 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-9bu99N7-.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-CJbZKVV5.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-9bu99N7-.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-CJbZKVV5.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-B1y0Fo1U.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()
@@ -28952,6 +28972,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
28952
28972
  }), _void(), {
28953
28973
  kind: "mutation",
28954
28974
  auth: "admin"
28975
+ }), method(object({ deviceId: number() }), _void(), {
28976
+ kind: "mutation",
28977
+ auth: "admin"
28978
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
28979
+ deviceId: number(),
28980
+ enabled: boolean(),
28981
+ seconds: number().int().min(0).max(3600)
28982
+ }), _void(), {
28983
+ kind: "mutation",
28984
+ auth: "admin"
28955
28985
  }), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
28956
28986
  deviceId: number(),
28957
28987
  enabled: boolean()
@@ -35955,6 +35985,12 @@ Object.freeze({
35955
35985
  addonId: null,
35956
35986
  access: "create"
35957
35987
  },
35988
+ "ptz.captureHomeHere": {
35989
+ capName: "ptz",
35990
+ capScope: "device",
35991
+ addonId: null,
35992
+ access: "create"
35993
+ },
35958
35994
  "ptz.continuousMove": {
35959
35995
  capName: "ptz",
35960
35996
  capScope: "device",
@@ -35973,6 +36009,12 @@ Object.freeze({
35973
36009
  addonId: null,
35974
36010
  access: "view"
35975
36011
  },
36012
+ "ptz.getHomeReturn": {
36013
+ capName: "ptz",
36014
+ capScope: "device",
36015
+ addonId: null,
36016
+ access: "view"
36017
+ },
35976
36018
  "ptz.getOptions": {
35977
36019
  capName: "ptz",
35978
36020
  capScope: "device",
@@ -36027,6 +36069,12 @@ Object.freeze({
36027
36069
  addonId: null,
36028
36070
  access: "create"
36029
36071
  },
36072
+ "ptz.setHomeReturn": {
36073
+ capName: "ptz",
36074
+ capScope: "device",
36075
+ addonId: null,
36076
+ access: "create"
36077
+ },
36030
36078
  "ptz.stop": {
36031
36079
  capName: "ptz",
36032
36080
  capScope: "device",
@@ -39190,6 +39238,11 @@ Object.freeze({
39190
39238
  form: "single",
39191
39239
  optional: false
39192
39240
  }],
39241
+ "ptz.captureHomeHere": [{
39242
+ name: "deviceId",
39243
+ form: "single",
39244
+ optional: false
39245
+ }],
39193
39246
  "ptz.continuousMove": [{
39194
39247
  name: "deviceId",
39195
39248
  form: "single",
@@ -39205,6 +39258,11 @@ Object.freeze({
39205
39258
  form: "single",
39206
39259
  optional: false
39207
39260
  }],
39261
+ "ptz.getHomeReturn": [{
39262
+ name: "deviceId",
39263
+ form: "single",
39264
+ optional: false
39265
+ }],
39208
39266
  "ptz.getOptions": [{
39209
39267
  name: "deviceId",
39210
39268
  form: "single",
@@ -39250,6 +39308,11 @@ Object.freeze({
39250
39308
  form: "single",
39251
39309
  optional: false
39252
39310
  }],
39311
+ "ptz.setHomeReturn": [{
39312
+ name: "deviceId",
39313
+ form: "single",
39314
+ optional: false
39315
+ }],
39253
39316
  "ptz.stop": [{
39254
39317
  name: "deviceId",
39255
39318
  form: "single",
@@ -5361,7 +5361,7 @@ var ZodIssueCode = {
5361
5361
  var ZodFirstPartyTypeKind;
5362
5362
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5363
5363
  //#endregion
5364
- //#region ../types/dist/sleep-B1y0Fo1U.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()
@@ -28929,6 +28949,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
28929
28949
  }), _void(), {
28930
28950
  kind: "mutation",
28931
28951
  auth: "admin"
28952
+ }), method(object({ deviceId: number() }), _void(), {
28953
+ kind: "mutation",
28954
+ auth: "admin"
28955
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
28956
+ deviceId: number(),
28957
+ enabled: boolean(),
28958
+ seconds: number().int().min(0).max(3600)
28959
+ }), _void(), {
28960
+ kind: "mutation",
28961
+ auth: "admin"
28932
28962
  }), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
28933
28963
  deviceId: number(),
28934
28964
  enabled: boolean()
@@ -35932,6 +35962,12 @@ Object.freeze({
35932
35962
  addonId: null,
35933
35963
  access: "create"
35934
35964
  },
35965
+ "ptz.captureHomeHere": {
35966
+ capName: "ptz",
35967
+ capScope: "device",
35968
+ addonId: null,
35969
+ access: "create"
35970
+ },
35935
35971
  "ptz.continuousMove": {
35936
35972
  capName: "ptz",
35937
35973
  capScope: "device",
@@ -35950,6 +35986,12 @@ Object.freeze({
35950
35986
  addonId: null,
35951
35987
  access: "view"
35952
35988
  },
35989
+ "ptz.getHomeReturn": {
35990
+ capName: "ptz",
35991
+ capScope: "device",
35992
+ addonId: null,
35993
+ access: "view"
35994
+ },
35953
35995
  "ptz.getOptions": {
35954
35996
  capName: "ptz",
35955
35997
  capScope: "device",
@@ -36004,6 +36046,12 @@ Object.freeze({
36004
36046
  addonId: null,
36005
36047
  access: "create"
36006
36048
  },
36049
+ "ptz.setHomeReturn": {
36050
+ capName: "ptz",
36051
+ capScope: "device",
36052
+ addonId: null,
36053
+ access: "create"
36054
+ },
36007
36055
  "ptz.stop": {
36008
36056
  capName: "ptz",
36009
36057
  capScope: "device",
@@ -39167,6 +39215,11 @@ Object.freeze({
39167
39215
  form: "single",
39168
39216
  optional: false
39169
39217
  }],
39218
+ "ptz.captureHomeHere": [{
39219
+ name: "deviceId",
39220
+ form: "single",
39221
+ optional: false
39222
+ }],
39170
39223
  "ptz.continuousMove": [{
39171
39224
  name: "deviceId",
39172
39225
  form: "single",
@@ -39182,6 +39235,11 @@ Object.freeze({
39182
39235
  form: "single",
39183
39236
  optional: false
39184
39237
  }],
39238
+ "ptz.getHomeReturn": [{
39239
+ name: "deviceId",
39240
+ form: "single",
39241
+ optional: false
39242
+ }],
39185
39243
  "ptz.getOptions": [{
39186
39244
  name: "deviceId",
39187
39245
  form: "single",
@@ -39227,6 +39285,11 @@ Object.freeze({
39227
39285
  form: "single",
39228
39286
  optional: false
39229
39287
  }],
39288
+ "ptz.setHomeReturn": [{
39289
+ name: "deviceId",
39290
+ form: "single",
39291
+ optional: false
39292
+ }],
39230
39293
  "ptz.stop": [{
39231
39294
  name: "deviceId",
39232
39295
  form: "single",
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-9bu99N7-.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-CJbZKVV5.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-9bu99N7-.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-CJbZKVV5.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.110",
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",