@camstack/addon-remote-storage 1.2.105 → 1.2.106

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-BrFtikFi.js");
5
+ const require_shared = require("./shared-cuWwejpK.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-TCTbz2PY.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-DEmtCoWA.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-BrFtikFi.js");
5
+ const require_shared = require("./shared-cuWwejpK.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-TCTbz2PY.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-DEmtCoWA.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
@@ -13263,6 +13263,70 @@ var LocationIconAssignmentSchema = object({
13263
13263
  locationKey: string(),
13264
13264
  icon: LocationIconIdSchema
13265
13265
  });
13266
+ /**
13267
+ * One (location, description) assignment as it travels.
13268
+ *
13269
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
13270
+ * reason: this lived for a while in the post-analysis addon's own settings,
13271
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
13272
+ * the Locations page carried the icon and silently orphaned the description —
13273
+ * two authorities for one thing, joined by two different rules. Now both hang
13274
+ * off the location itself, on `locationIconKey`.
13275
+ */
13276
+ var LocationDescriptionAssignmentSchema = object({
13277
+ locationKey: string(),
13278
+ description: string()
13279
+ });
13280
+ /**
13281
+ * A SITE ZONE — a named part of the property that several locations belong to.
13282
+ *
13283
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
13284
+ * kitchen. A camera belongs to exactly one location, and a location to at most
13285
+ * one zone, so a camera's zone is derived and never stored on the device: the
13286
+ * whole point of this entity is that grouping rooms touches no device row.
13287
+ *
13288
+ * ## Why not `zone`
13289
+ *
13290
+ * Because `zone` is already the most loaded word in this product: 612 source
13291
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
13292
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
13293
+ * set of rooms — and a reader who confuses them will look for a camera's
13294
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
13295
+ * word by calling the drawn one what it actually is: a detection zone.
13296
+ *
13297
+ * ## The key
13298
+ *
13299
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
13300
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
13301
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
13302
+ * silently-dropped location description.
13303
+ *
13304
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
13305
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
13306
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
13307
+ */
13308
+ /**
13309
+ * One zone as it travels: its key, the label the operator typed, its icon and
13310
+ * the locations inside it.
13311
+ *
13312
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
13313
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
13314
+ * here, rather than left to a second call, because every consumer wants both
13315
+ * at once and a viewer that asked twice could render a zone whose membership
13316
+ * it has not fetched yet.
13317
+ *
13318
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
13319
+ * of those two is a choice, and a picker has to draw them differently.
13320
+ */
13321
+ var SiteZoneSchema = object({
13322
+ zoneKey: string(),
13323
+ label: string(),
13324
+ icon: LocationIconIdSchema.nullable(),
13325
+ /** Folded location keys, sorted. A location listed here need not be
13326
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
13327
+ * the ones that most want grouping. */
13328
+ locationKeys: array(string())
13329
+ });
13266
13330
  var ProviderStatusSchema = object({
13267
13331
  connected: boolean(),
13268
13332
  deviceCount: number(),
@@ -13780,6 +13844,33 @@ method(object({
13780
13844
  }), _void(), {
13781
13845
  kind: "mutation",
13782
13846
  auth: "admin"
13847
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
13848
+ location: string(),
13849
+ description: string().max(400).nullable()
13850
+ }), _void(), {
13851
+ kind: "mutation",
13852
+ auth: "admin"
13853
+ }), method(_void(), array(SiteZoneSchema)), method(object({
13854
+ name: string(),
13855
+ icon: LocationIconIdSchema.nullable().optional()
13856
+ }), _void(), {
13857
+ kind: "mutation",
13858
+ auth: "admin"
13859
+ }), method(object({ name: string() }), _void(), {
13860
+ kind: "mutation",
13861
+ auth: "admin"
13862
+ }), method(object({
13863
+ from: string(),
13864
+ to: string()
13865
+ }), _void(), {
13866
+ kind: "mutation",
13867
+ auth: "admin"
13868
+ }), method(object({
13869
+ location: string(),
13870
+ zone: string().nullable()
13871
+ }), _void(), {
13872
+ kind: "mutation",
13873
+ auth: "admin"
13783
13874
  }), method(object({
13784
13875
  deviceId: number(),
13785
13876
  disabled: boolean()
@@ -32663,6 +32754,12 @@ Object.freeze({
32663
32754
  addonId: null,
32664
32755
  access: "view"
32665
32756
  },
32757
+ "deviceManager.listLocationDescriptions": {
32758
+ capName: "device-manager",
32759
+ capScope: "system",
32760
+ addonId: null,
32761
+ access: "view"
32762
+ },
32666
32763
  "deviceManager.listLocationIcons": {
32667
32764
  capName: "device-manager",
32668
32765
  capScope: "system",
@@ -32681,6 +32778,12 @@ Object.freeze({
32681
32778
  addonId: null,
32682
32779
  access: "view"
32683
32780
  },
32781
+ "deviceManager.listSiteZones": {
32782
+ capName: "device-manager",
32783
+ capScope: "system",
32784
+ addonId: null,
32785
+ access: "view"
32786
+ },
32684
32787
  "deviceManager.listWrappersForCap": {
32685
32788
  capName: "device-manager",
32686
32789
  capScope: "system",
@@ -32765,12 +32868,24 @@ Object.freeze({
32765
32868
  addonId: null,
32766
32869
  access: "delete"
32767
32870
  },
32871
+ "deviceManager.removeSiteZone": {
32872
+ capName: "device-manager",
32873
+ capScope: "system",
32874
+ addonId: null,
32875
+ access: "delete"
32876
+ },
32768
32877
  "deviceManager.renameLocation": {
32769
32878
  capName: "device-manager",
32770
32879
  capScope: "system",
32771
32880
  addonId: null,
32772
32881
  access: "create"
32773
32882
  },
32883
+ "deviceManager.renameSiteZone": {
32884
+ capName: "device-manager",
32885
+ capScope: "system",
32886
+ addonId: null,
32887
+ access: "create"
32888
+ },
32774
32889
  "deviceManager.runDeviceAction": {
32775
32890
  capName: "device-manager",
32776
32891
  capScope: "system",
@@ -32813,12 +32928,24 @@ Object.freeze({
32813
32928
  addonId: null,
32814
32929
  access: "create"
32815
32930
  },
32931
+ "deviceManager.setLocationDescription": {
32932
+ capName: "device-manager",
32933
+ capScope: "system",
32934
+ addonId: null,
32935
+ access: "create"
32936
+ },
32816
32937
  "deviceManager.setLocationIcon": {
32817
32938
  capName: "device-manager",
32818
32939
  capScope: "system",
32819
32940
  addonId: null,
32820
32941
  access: "create"
32821
32942
  },
32943
+ "deviceManager.setLocationZone": {
32944
+ capName: "device-manager",
32945
+ capScope: "system",
32946
+ addonId: null,
32947
+ access: "create"
32948
+ },
32822
32949
  "deviceManager.setMetadata": {
32823
32950
  capName: "device-manager",
32824
32951
  capScope: "system",
@@ -32849,6 +32976,12 @@ Object.freeze({
32849
32976
  addonId: null,
32850
32977
  access: "create"
32851
32978
  },
32979
+ "deviceManager.setSiteZone": {
32980
+ capName: "device-manager",
32981
+ capScope: "system",
32982
+ addonId: null,
32983
+ access: "create"
32984
+ },
32852
32985
  "deviceManager.setStreamProfileMap": {
32853
32986
  capName: "device-manager",
32854
32987
  capScope: "system",
@@ -13286,6 +13286,70 @@ var LocationIconAssignmentSchema = object({
13286
13286
  locationKey: string(),
13287
13287
  icon: LocationIconIdSchema
13288
13288
  });
13289
+ /**
13290
+ * One (location, description) assignment as it travels.
13291
+ *
13292
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
13293
+ * reason: this lived for a while in the post-analysis addon's own settings,
13294
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
13295
+ * the Locations page carried the icon and silently orphaned the description —
13296
+ * two authorities for one thing, joined by two different rules. Now both hang
13297
+ * off the location itself, on `locationIconKey`.
13298
+ */
13299
+ var LocationDescriptionAssignmentSchema = object({
13300
+ locationKey: string(),
13301
+ description: string()
13302
+ });
13303
+ /**
13304
+ * A SITE ZONE — a named part of the property that several locations belong to.
13305
+ *
13306
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
13307
+ * kitchen. A camera belongs to exactly one location, and a location to at most
13308
+ * one zone, so a camera's zone is derived and never stored on the device: the
13309
+ * whole point of this entity is that grouping rooms touches no device row.
13310
+ *
13311
+ * ## Why not `zone`
13312
+ *
13313
+ * Because `zone` is already the most loaded word in this product: 612 source
13314
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
13315
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
13316
+ * set of rooms — and a reader who confuses them will look for a camera's
13317
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
13318
+ * word by calling the drawn one what it actually is: a detection zone.
13319
+ *
13320
+ * ## The key
13321
+ *
13322
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
13323
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
13324
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
13325
+ * silently-dropped location description.
13326
+ *
13327
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
13328
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
13329
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
13330
+ */
13331
+ /**
13332
+ * One zone as it travels: its key, the label the operator typed, its icon and
13333
+ * the locations inside it.
13334
+ *
13335
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
13336
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
13337
+ * here, rather than left to a second call, because every consumer wants both
13338
+ * at once and a viewer that asked twice could render a zone whose membership
13339
+ * it has not fetched yet.
13340
+ *
13341
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
13342
+ * of those two is a choice, and a picker has to draw them differently.
13343
+ */
13344
+ var SiteZoneSchema = object({
13345
+ zoneKey: string(),
13346
+ label: string(),
13347
+ icon: LocationIconIdSchema.nullable(),
13348
+ /** Folded location keys, sorted. A location listed here need not be
13349
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
13350
+ * the ones that most want grouping. */
13351
+ locationKeys: array(string())
13352
+ });
13289
13353
  var ProviderStatusSchema = object({
13290
13354
  connected: boolean(),
13291
13355
  deviceCount: number(),
@@ -13803,6 +13867,33 @@ method(object({
13803
13867
  }), _void(), {
13804
13868
  kind: "mutation",
13805
13869
  auth: "admin"
13870
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
13871
+ location: string(),
13872
+ description: string().max(400).nullable()
13873
+ }), _void(), {
13874
+ kind: "mutation",
13875
+ auth: "admin"
13876
+ }), method(_void(), array(SiteZoneSchema)), method(object({
13877
+ name: string(),
13878
+ icon: LocationIconIdSchema.nullable().optional()
13879
+ }), _void(), {
13880
+ kind: "mutation",
13881
+ auth: "admin"
13882
+ }), method(object({ name: string() }), _void(), {
13883
+ kind: "mutation",
13884
+ auth: "admin"
13885
+ }), method(object({
13886
+ from: string(),
13887
+ to: string()
13888
+ }), _void(), {
13889
+ kind: "mutation",
13890
+ auth: "admin"
13891
+ }), method(object({
13892
+ location: string(),
13893
+ zone: string().nullable()
13894
+ }), _void(), {
13895
+ kind: "mutation",
13896
+ auth: "admin"
13806
13897
  }), method(object({
13807
13898
  deviceId: number(),
13808
13899
  disabled: boolean()
@@ -32686,6 +32777,12 @@ Object.freeze({
32686
32777
  addonId: null,
32687
32778
  access: "view"
32688
32779
  },
32780
+ "deviceManager.listLocationDescriptions": {
32781
+ capName: "device-manager",
32782
+ capScope: "system",
32783
+ addonId: null,
32784
+ access: "view"
32785
+ },
32689
32786
  "deviceManager.listLocationIcons": {
32690
32787
  capName: "device-manager",
32691
32788
  capScope: "system",
@@ -32704,6 +32801,12 @@ Object.freeze({
32704
32801
  addonId: null,
32705
32802
  access: "view"
32706
32803
  },
32804
+ "deviceManager.listSiteZones": {
32805
+ capName: "device-manager",
32806
+ capScope: "system",
32807
+ addonId: null,
32808
+ access: "view"
32809
+ },
32707
32810
  "deviceManager.listWrappersForCap": {
32708
32811
  capName: "device-manager",
32709
32812
  capScope: "system",
@@ -32788,12 +32891,24 @@ Object.freeze({
32788
32891
  addonId: null,
32789
32892
  access: "delete"
32790
32893
  },
32894
+ "deviceManager.removeSiteZone": {
32895
+ capName: "device-manager",
32896
+ capScope: "system",
32897
+ addonId: null,
32898
+ access: "delete"
32899
+ },
32791
32900
  "deviceManager.renameLocation": {
32792
32901
  capName: "device-manager",
32793
32902
  capScope: "system",
32794
32903
  addonId: null,
32795
32904
  access: "create"
32796
32905
  },
32906
+ "deviceManager.renameSiteZone": {
32907
+ capName: "device-manager",
32908
+ capScope: "system",
32909
+ addonId: null,
32910
+ access: "create"
32911
+ },
32797
32912
  "deviceManager.runDeviceAction": {
32798
32913
  capName: "device-manager",
32799
32914
  capScope: "system",
@@ -32836,12 +32951,24 @@ Object.freeze({
32836
32951
  addonId: null,
32837
32952
  access: "create"
32838
32953
  },
32954
+ "deviceManager.setLocationDescription": {
32955
+ capName: "device-manager",
32956
+ capScope: "system",
32957
+ addonId: null,
32958
+ access: "create"
32959
+ },
32839
32960
  "deviceManager.setLocationIcon": {
32840
32961
  capName: "device-manager",
32841
32962
  capScope: "system",
32842
32963
  addonId: null,
32843
32964
  access: "create"
32844
32965
  },
32966
+ "deviceManager.setLocationZone": {
32967
+ capName: "device-manager",
32968
+ capScope: "system",
32969
+ addonId: null,
32970
+ access: "create"
32971
+ },
32845
32972
  "deviceManager.setMetadata": {
32846
32973
  capName: "device-manager",
32847
32974
  capScope: "system",
@@ -32872,6 +32999,12 @@ Object.freeze({
32872
32999
  addonId: null,
32873
33000
  access: "create"
32874
33001
  },
33002
+ "deviceManager.setSiteZone": {
33003
+ capName: "device-manager",
33004
+ capScope: "system",
33005
+ addonId: null,
33006
+ access: "create"
33007
+ },
32875
33008
  "deviceManager.setStreamProfileMap": {
32876
33009
  capName: "device-manager",
32877
33010
  capScope: "system",
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-BrFtikFi.js");
5
+ const require_shared = require("./shared-cuWwejpK.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-TCTbz2PY.mjs";
1
+ import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-DEmtCoWA.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-BrFtikFi.js");
5
+ const require_shared = require("./shared-cuWwejpK.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-TCTbz2PY.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-DEmtCoWA.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.105",
3
+ "version": "1.2.106",
4
4
  "description": "Remote storage providers (SFTP, S3, WebDAV, SMB) — unifies remote backends behind the storage-provider cap",
5
5
  "keywords": [
6
6
  "camstack",