@camstack/addon-remote-storage 1.2.111 → 1.2.113

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-CNybMYvw.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-Bbtrn8xA.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-CNybMYvw.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-Bbtrn8xA.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
@@ -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-Bs3xPtSh.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).
@@ -11806,6 +11806,24 @@ var GetStreamWithCodecInputSchema = object({
11806
11806
  });
11807
11807
  var RtpSourceSchema = object({
11808
11808
  url: string(),
11809
+ /**
11810
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11811
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11812
+ *
11813
+ * The broker answers it because the broker is the only thing that can:
11814
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11815
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11816
+ * cap bindings would be a second authority, and two authorities on the same
11817
+ * question is how a composite camera ends up dialling a sleeping camera
11818
+ * because its own copy of the rule was a release behind.
11819
+ *
11820
+ * `null` is a real answer and is never a live url in disguise: a consumer
11821
+ * that silently fell back to {@link url} would perform exactly the wake this
11822
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11823
+ * transcode hands back an egress the broker is feeding itself, which has no
11824
+ * sentry counterpart.
11825
+ */
11826
+ sentryUrl: string().nullable().optional(),
11809
11827
  videoCodec: _enum(["H264", "H265"]),
11810
11828
  audioCodec: string(),
11811
11829
  resolution: object({
@@ -27208,6 +27226,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
27208
27226
  lastChangedAt: number()
27209
27227
  });
27210
27228
  /**
27229
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
27230
+ * page.
27231
+ *
27232
+ * ## Why this is a capability and not an addon settings schema
27233
+ *
27234
+ * It was one, and it did not render. The addon declared the editor as a
27235
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
27236
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
27237
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
27238
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
27239
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
27240
+ * not on it "falls off silently".
27241
+ *
27242
+ * Adding a fifth name to that list would have been the wrong fix twice over:
27243
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
27244
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
27245
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
27246
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
27247
+ * all use it): the framework emits the structural section and the widget
27248
+ * self-persists through the cap's own mutations.
27249
+ *
27250
+ * ## Why one addon may implement it
27251
+ *
27252
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27253
+ * itself. Nothing else declares a composite camera, so nothing else has a
27254
+ * layout — and the device-scoped route means the widget asks THE camera, not
27255
+ * "the camera-grid addon", which is what let the old custom-action pair be
27256
+ * reached only by a caller that already knew the addon id.
27257
+ *
27258
+ * ## The tab
27259
+ *
27260
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27261
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27262
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27263
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27264
+ * next to "PTZ").
27265
+ */
27266
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27267
+ var GridNormalizedRectSchema = object({
27268
+ x: number().min(0).max(1),
27269
+ y: number().min(0).max(1),
27270
+ width: number().gt(0).max(1),
27271
+ height: number().gt(0).max(1)
27272
+ });
27273
+ /**
27274
+ * One source camera, the part of its picture taken, and where that part lands.
27275
+ *
27276
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27277
+ * — a profile switch, a firmware update, a substream that comes back different
27278
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27279
+ * which is the class of bug nobody files.
27280
+ */
27281
+ var GridLayoutCellSchema = object({
27282
+ deviceId: number().int().positive(),
27283
+ /** The part of the SOURCE taken, normalized against the source. */
27284
+ source: GridNormalizedRectSchema,
27285
+ /** Where it lands, normalized against the CANVAS. */
27286
+ cell: GridNormalizedRectSchema
27287
+ });
27288
+ /**
27289
+ * Which profiles this grid can actually compose, and why not.
27290
+ *
27291
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27292
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27293
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27294
+ * low" is, and it is the one an operator can act on.
27295
+ */
27296
+ var GridProfileOfferSchema = object({
27297
+ profile: _enum([
27298
+ "high",
27299
+ "mid",
27300
+ "low"
27301
+ ]),
27302
+ offered: boolean(),
27303
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27304
+ missingSources: array(number().int().positive())
27305
+ });
27306
+ var GridLayoutViewSchema = object({
27307
+ /** The persisted grid row this camera was declared from. */
27308
+ instanceId: string(),
27309
+ deviceId: number().int().nonnegative(),
27310
+ name: string(),
27311
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27312
+ width: number().int(),
27313
+ height: number().int(),
27314
+ fps: number().int(),
27315
+ cells: array(GridLayoutCellSchema),
27316
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27317
+ profiles: array(GridProfileOfferSchema)
27318
+ });
27319
+ var GridLayoutPatchSchema = object({
27320
+ deviceId: number().int().nonnegative(),
27321
+ name: string().min(1).max(160).optional(),
27322
+ width: number().int().min(160).max(7680).optional(),
27323
+ height: number().int().min(120).max(4320).optional(),
27324
+ fps: number().int().min(1).max(60).optional(),
27325
+ /**
27326
+ * The whole cell list at once. A per-cell patch would need an ordering the
27327
+ * editor does not have, and a half-applied layout is a picture nobody asked
27328
+ * for.
27329
+ */
27330
+ cells: array(GridLayoutCellSchema).max(16)
27331
+ });
27332
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27333
+ kind: "mutation",
27334
+ auth: "admin"
27335
+ });
27336
+ /**
27211
27337
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27212
27338
  * on-camera motion-detection mask is a single `grid` region (a row-major
27213
27339
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -28907,6 +29033,26 @@ var PtzHomePresetSchema = object({
28907
29033
  "none"
28908
29034
  ])
28909
29035
  });
29036
+ /**
29037
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
29038
+ * after how long.
29039
+ *
29040
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
29041
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
29042
+ * written by the same command. Reading them apart means two round-trips that
29043
+ * can disagree.
29044
+ *
29045
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
29046
+ * the behaviour switched off, which is exactly what the vendor app leaves when
29047
+ * you turn the guard point off without clearing it. The first version of this
29048
+ * cap reported only the delay, so that state was invisible — a camera could be
29049
+ * configured to return after 68 seconds with no way to say whether it should
29050
+ * return at all.
29051
+ */
29052
+ var PtzHomeReturnSchema = object({
29053
+ enabled: boolean(),
29054
+ seconds: number().int()
29055
+ });
28910
29056
  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
29057
  deviceId: number(),
28912
29058
  presetId: string()
@@ -28932,8 +29078,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
28932
29078
  }), method(object({ deviceId: number() }), _void(), {
28933
29079
  kind: "mutation",
28934
29080
  auth: "admin"
28935
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
29081
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
28936
29082
  deviceId: number(),
29083
+ enabled: boolean(),
28937
29084
  seconds: number().int().min(0).max(3600)
28938
29085
  }), _void(), {
28939
29086
  kind: "mutation",
@@ -32215,6 +32362,18 @@ Object.freeze({
32215
32362
  addonId: null,
32216
32363
  access: "view"
32217
32364
  },
32365
+ "cameraGridLayout.getLayout": {
32366
+ capName: "camera-grid-layout",
32367
+ capScope: "device",
32368
+ addonId: null,
32369
+ access: "view"
32370
+ },
32371
+ "cameraGridLayout.saveLayout": {
32372
+ capName: "camera-grid-layout",
32373
+ capScope: "device",
32374
+ addonId: null,
32375
+ access: "create"
32376
+ },
32218
32377
  "cameraStreams.getBrokerStreams": {
32219
32378
  capName: "camera-streams",
32220
32379
  capScope: "device",
@@ -35965,7 +36124,7 @@ Object.freeze({
35965
36124
  addonId: null,
35966
36125
  access: "view"
35967
36126
  },
35968
- "ptz.getHomeReturnSeconds": {
36127
+ "ptz.getHomeReturn": {
35969
36128
  capName: "ptz",
35970
36129
  capScope: "device",
35971
36130
  addonId: null,
@@ -36025,7 +36184,7 @@ Object.freeze({
36025
36184
  addonId: null,
36026
36185
  access: "create"
36027
36186
  },
36028
- "ptz.setHomeReturnSeconds": {
36187
+ "ptz.setHomeReturn": {
36029
36188
  capName: "ptz",
36030
36189
  capScope: "device",
36031
36190
  addonId: null,
@@ -37914,6 +38073,21 @@ Object.freeze({
37914
38073
  form: "single",
37915
38074
  optional: false
37916
38075
  }],
38076
+ "cameraGridLayout.getLayout": [{
38077
+ name: "deviceId",
38078
+ form: "single",
38079
+ optional: false
38080
+ }],
38081
+ "cameraGridLayout.saveLayout": [{
38082
+ name: "cells",
38083
+ form: "object-array",
38084
+ optional: false,
38085
+ itemField: "deviceId"
38086
+ }, {
38087
+ name: "deviceId",
38088
+ form: "single",
38089
+ optional: false
38090
+ }],
37917
38091
  "cameraStreams.getBrokerStreams": [{
37918
38092
  name: "deviceId",
37919
38093
  form: "single",
@@ -39214,7 +39388,7 @@ Object.freeze({
39214
39388
  form: "single",
39215
39389
  optional: false
39216
39390
  }],
39217
- "ptz.getHomeReturnSeconds": [{
39391
+ "ptz.getHomeReturn": [{
39218
39392
  name: "deviceId",
39219
39393
  form: "single",
39220
39394
  optional: false
@@ -39264,7 +39438,7 @@ Object.freeze({
39264
39438
  form: "single",
39265
39439
  optional: false
39266
39440
  }],
39267
- "ptz.setHomeReturnSeconds": [{
39441
+ "ptz.setHomeReturn": [{
39268
39442
  name: "deviceId",
39269
39443
  form: "single",
39270
39444
  optional: false
@@ -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-Bs3xPtSh.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).
@@ -11829,6 +11829,24 @@ var GetStreamWithCodecInputSchema = object({
11829
11829
  });
11830
11830
  var RtpSourceSchema = object({
11831
11831
  url: string(),
11832
+ /**
11833
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11834
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11835
+ *
11836
+ * The broker answers it because the broker is the only thing that can:
11837
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11838
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11839
+ * cap bindings would be a second authority, and two authorities on the same
11840
+ * question is how a composite camera ends up dialling a sleeping camera
11841
+ * because its own copy of the rule was a release behind.
11842
+ *
11843
+ * `null` is a real answer and is never a live url in disguise: a consumer
11844
+ * that silently fell back to {@link url} would perform exactly the wake this
11845
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11846
+ * transcode hands back an egress the broker is feeding itself, which has no
11847
+ * sentry counterpart.
11848
+ */
11849
+ sentryUrl: string().nullable().optional(),
11832
11850
  videoCodec: _enum(["H264", "H265"]),
11833
11851
  audioCodec: string(),
11834
11852
  resolution: object({
@@ -27231,6 +27249,114 @@ DeviceType.Light, DeviceType.Siren, DeviceType.Switch, method(object({
27231
27249
  lastChangedAt: number()
27232
27250
  });
27233
27251
  /**
27252
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
27253
+ * page.
27254
+ *
27255
+ * ## Why this is a capability and not an addon settings schema
27256
+ *
27257
+ * It was one, and it did not render. The addon declared the editor as a
27258
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
27259
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
27260
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
27261
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
27262
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
27263
+ * not on it "falls off silently".
27264
+ *
27265
+ * Adding a fifth name to that list would have been the wrong fix twice over:
27266
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
27267
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
27268
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
27269
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
27270
+ * all use it): the framework emits the structural section and the widget
27271
+ * self-persists through the cap's own mutations.
27272
+ *
27273
+ * ## Why one addon may implement it
27274
+ *
27275
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
27276
+ * itself. Nothing else declares a composite camera, so nothing else has a
27277
+ * layout — and the device-scoped route means the widget asks THE camera, not
27278
+ * "the camera-grid addon", which is what let the old custom-action pair be
27279
+ * reached only by a caller that already knew the addon id.
27280
+ *
27281
+ * ## The tab
27282
+ *
27283
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
27284
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
27285
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
27286
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
27287
+ * next to "PTZ").
27288
+ */
27289
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
27290
+ var GridNormalizedRectSchema = object({
27291
+ x: number().min(0).max(1),
27292
+ y: number().min(0).max(1),
27293
+ width: number().gt(0).max(1),
27294
+ height: number().gt(0).max(1)
27295
+ });
27296
+ /**
27297
+ * One source camera, the part of its picture taken, and where that part lands.
27298
+ *
27299
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
27300
+ * — a profile switch, a firmware update, a substream that comes back different
27301
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
27302
+ * which is the class of bug nobody files.
27303
+ */
27304
+ var GridLayoutCellSchema = object({
27305
+ deviceId: number().int().positive(),
27306
+ /** The part of the SOURCE taken, normalized against the source. */
27307
+ source: GridNormalizedRectSchema,
27308
+ /** Where it lands, normalized against the CANVAS. */
27309
+ cell: GridNormalizedRectSchema
27310
+ });
27311
+ /**
27312
+ * Which profiles this grid can actually compose, and why not.
27313
+ *
27314
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
27315
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
27316
+ * the sources, because "this grid has no low" is not a finding — "615 has no
27317
+ * low" is, and it is the one an operator can act on.
27318
+ */
27319
+ var GridProfileOfferSchema = object({
27320
+ profile: _enum([
27321
+ "high",
27322
+ "mid",
27323
+ "low"
27324
+ ]),
27325
+ offered: boolean(),
27326
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
27327
+ missingSources: array(number().int().positive())
27328
+ });
27329
+ var GridLayoutViewSchema = object({
27330
+ /** The persisted grid row this camera was declared from. */
27331
+ instanceId: string(),
27332
+ deviceId: number().int().nonnegative(),
27333
+ name: string(),
27334
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
27335
+ width: number().int(),
27336
+ height: number().int(),
27337
+ fps: number().int(),
27338
+ cells: array(GridLayoutCellSchema),
27339
+ /** What the catalog will publish, and what it refuses to. Read-only. */
27340
+ profiles: array(GridProfileOfferSchema)
27341
+ });
27342
+ var GridLayoutPatchSchema = object({
27343
+ deviceId: number().int().nonnegative(),
27344
+ name: string().min(1).max(160).optional(),
27345
+ width: number().int().min(160).max(7680).optional(),
27346
+ height: number().int().min(120).max(4320).optional(),
27347
+ fps: number().int().min(1).max(60).optional(),
27348
+ /**
27349
+ * The whole cell list at once. A per-cell patch would need an ordering the
27350
+ * editor does not have, and a half-applied layout is a picture nobody asked
27351
+ * for.
27352
+ */
27353
+ cells: array(GridLayoutCellSchema).max(16)
27354
+ });
27355
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
27356
+ kind: "mutation",
27357
+ auth: "admin"
27358
+ });
27359
+ /**
27234
27360
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
27235
27361
  * on-camera motion-detection mask is a single `grid` region (a row-major
27236
27362
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -28930,6 +29056,26 @@ var PtzHomePresetSchema = object({
28930
29056
  "none"
28931
29057
  ])
28932
29058
  });
29059
+ /**
29060
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
29061
+ * after how long.
29062
+ *
29063
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
29064
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
29065
+ * written by the same command. Reading them apart means two round-trips that
29066
+ * can disagree.
29067
+ *
29068
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
29069
+ * the behaviour switched off, which is exactly what the vendor app leaves when
29070
+ * you turn the guard point off without clearing it. The first version of this
29071
+ * cap reported only the delay, so that state was invisible — a camera could be
29072
+ * configured to return after 68 seconds with no way to say whether it should
29073
+ * return at all.
29074
+ */
29075
+ var PtzHomeReturnSchema = object({
29076
+ enabled: boolean(),
29077
+ seconds: number().int()
29078
+ });
28933
29079
  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
29080
  deviceId: number(),
28935
29081
  presetId: string()
@@ -28955,8 +29101,9 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
28955
29101
  }), method(object({ deviceId: number() }), _void(), {
28956
29102
  kind: "mutation",
28957
29103
  auth: "admin"
28958
- }), method(object({ deviceId: number() }), number().int().nullable()), method(object({
29104
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
28959
29105
  deviceId: number(),
29106
+ enabled: boolean(),
28960
29107
  seconds: number().int().min(0).max(3600)
28961
29108
  }), _void(), {
28962
29109
  kind: "mutation",
@@ -32238,6 +32385,18 @@ Object.freeze({
32238
32385
  addonId: null,
32239
32386
  access: "view"
32240
32387
  },
32388
+ "cameraGridLayout.getLayout": {
32389
+ capName: "camera-grid-layout",
32390
+ capScope: "device",
32391
+ addonId: null,
32392
+ access: "view"
32393
+ },
32394
+ "cameraGridLayout.saveLayout": {
32395
+ capName: "camera-grid-layout",
32396
+ capScope: "device",
32397
+ addonId: null,
32398
+ access: "create"
32399
+ },
32241
32400
  "cameraStreams.getBrokerStreams": {
32242
32401
  capName: "camera-streams",
32243
32402
  capScope: "device",
@@ -35988,7 +36147,7 @@ Object.freeze({
35988
36147
  addonId: null,
35989
36148
  access: "view"
35990
36149
  },
35991
- "ptz.getHomeReturnSeconds": {
36150
+ "ptz.getHomeReturn": {
35992
36151
  capName: "ptz",
35993
36152
  capScope: "device",
35994
36153
  addonId: null,
@@ -36048,7 +36207,7 @@ Object.freeze({
36048
36207
  addonId: null,
36049
36208
  access: "create"
36050
36209
  },
36051
- "ptz.setHomeReturnSeconds": {
36210
+ "ptz.setHomeReturn": {
36052
36211
  capName: "ptz",
36053
36212
  capScope: "device",
36054
36213
  addonId: null,
@@ -37937,6 +38096,21 @@ Object.freeze({
37937
38096
  form: "single",
37938
38097
  optional: false
37939
38098
  }],
38099
+ "cameraGridLayout.getLayout": [{
38100
+ name: "deviceId",
38101
+ form: "single",
38102
+ optional: false
38103
+ }],
38104
+ "cameraGridLayout.saveLayout": [{
38105
+ name: "cells",
38106
+ form: "object-array",
38107
+ optional: false,
38108
+ itemField: "deviceId"
38109
+ }, {
38110
+ name: "deviceId",
38111
+ form: "single",
38112
+ optional: false
38113
+ }],
37940
38114
  "cameraStreams.getBrokerStreams": [{
37941
38115
  name: "deviceId",
37942
38116
  form: "single",
@@ -39237,7 +39411,7 @@ Object.freeze({
39237
39411
  form: "single",
39238
39412
  optional: false
39239
39413
  }],
39240
- "ptz.getHomeReturnSeconds": [{
39414
+ "ptz.getHomeReturn": [{
39241
39415
  name: "deviceId",
39242
39416
  form: "single",
39243
39417
  optional: false
@@ -39287,7 +39461,7 @@ Object.freeze({
39287
39461
  form: "single",
39288
39462
  optional: false
39289
39463
  }],
39290
- "ptz.setHomeReturnSeconds": [{
39464
+ "ptz.setHomeReturn": [{
39291
39465
  name: "deviceId",
39292
39466
  form: "single",
39293
39467
  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-CNybMYvw.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-Bbtrn8xA.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-CNybMYvw.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-Bbtrn8xA.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.113",
4
4
  "description": "Remote storage providers (SFTP, S3, WebDAV, SMB) — unifies remote backends behind the storage-provider cap",
5
5
  "keywords": [
6
6
  "camstack",