@camstack/addon-remote-storage 1.2.105 → 1.2.107
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 +1 -1
- package/dist/s3.addon.mjs +1 -1
- package/dist/sftp.addon.js +1 -1
- package/dist/sftp.addon.mjs +1 -1
- package/dist/{shared-BrFtikFi.js → shared-BBpkMEmi.js} +187 -2
- package/dist/{shared-TCTbz2PY.mjs → shared-Ds3OlVc2.mjs} +187 -2
- package/dist/smb.addon.js +1 -1
- package/dist/smb.addon.mjs +1 -1
- package/dist/webdav.addon.js +1 -1
- package/dist/webdav.addon.mjs +1 -1
- package/package.json +1 -1
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-
|
|
5
|
+
const require_shared = require("./shared-BBpkMEmi.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-
|
|
1
|
+
import { c as BaseAddon, i as rearmIdleAbort, n as getOptionalBasePath, o as scheduleIdleAbort, s as storageProviderCapability, t as createSessionId } from "./shared-Ds3OlVc2.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";
|
package/dist/sftp.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-
|
|
5
|
+
const require_shared = require("./shared-BBpkMEmi.js");
|
|
6
6
|
let ssh2 = require("ssh2");
|
|
7
7
|
let node_path = require("node:path");
|
|
8
8
|
node_path = require_shared.__toESM(node_path);
|
package/dist/sftp.addon.mjs
CHANGED
|
@@ -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-
|
|
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-Ds3OlVc2.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
|
|
@@ -12271,7 +12271,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12271
12271
|
* This is what lets one picker serve both the bypass and the full source
|
|
12272
12272
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12273
12273
|
*/
|
|
12274
|
-
allowTranscode: boolean().optional()
|
|
12274
|
+
allowTranscode: boolean().optional(),
|
|
12275
|
+
/**
|
|
12276
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12277
|
+
*
|
|
12278
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12279
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12280
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12281
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12282
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12283
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12284
|
+
*
|
|
12285
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12286
|
+
* here when it decides which source to BIND to a slot
|
|
12287
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12288
|
+
* could never bind them.
|
|
12289
|
+
*/
|
|
12290
|
+
requireProfileBound: boolean().optional()
|
|
12275
12291
|
}).readonly();
|
|
12276
12292
|
var PickStreamPreferencesSchema = object({
|
|
12277
12293
|
/**
|
|
@@ -12312,7 +12328,43 @@ var PickedCamStreamSchema = object({
|
|
|
12312
12328
|
*/
|
|
12313
12329
|
transcodes: boolean(),
|
|
12314
12330
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12315
|
-
reason: string()
|
|
12331
|
+
reason: string(),
|
|
12332
|
+
/**
|
|
12333
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12334
|
+
*
|
|
12335
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12336
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12337
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12338
|
+
* the same function a second time.
|
|
12339
|
+
*
|
|
12340
|
+
* Absent when the source has no slot, which a caller passing
|
|
12341
|
+
* `requireProfileBound` can never see.
|
|
12342
|
+
*/
|
|
12343
|
+
profile: CamProfileSchema.optional(),
|
|
12344
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12345
|
+
brokerId: string().optional(),
|
|
12346
|
+
/**
|
|
12347
|
+
* The broker restream URL to dial for this stream.
|
|
12348
|
+
*
|
|
12349
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12350
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12351
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12352
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12353
|
+
*/
|
|
12354
|
+
url: string().optional(),
|
|
12355
|
+
/**
|
|
12356
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12357
|
+
* from.
|
|
12358
|
+
*
|
|
12359
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12360
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12361
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12362
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12363
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12364
|
+
* are not interchangeable.
|
|
12365
|
+
*/
|
|
12366
|
+
fps: number().positive().optional(),
|
|
12367
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12316
12368
|
});
|
|
12317
12369
|
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
|
|
12318
12370
|
deviceId: number().int().nonnegative(),
|
|
@@ -13286,6 +13338,70 @@ var LocationIconAssignmentSchema = object({
|
|
|
13286
13338
|
locationKey: string(),
|
|
13287
13339
|
icon: LocationIconIdSchema
|
|
13288
13340
|
});
|
|
13341
|
+
/**
|
|
13342
|
+
* One (location, description) assignment as it travels.
|
|
13343
|
+
*
|
|
13344
|
+
* Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
|
|
13345
|
+
* reason: this lived for a while in the post-analysis addon's own settings,
|
|
13346
|
+
* keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
|
|
13347
|
+
* the Locations page carried the icon and silently orphaned the description —
|
|
13348
|
+
* two authorities for one thing, joined by two different rules. Now both hang
|
|
13349
|
+
* off the location itself, on `locationIconKey`.
|
|
13350
|
+
*/
|
|
13351
|
+
var LocationDescriptionAssignmentSchema = object({
|
|
13352
|
+
locationKey: string(),
|
|
13353
|
+
description: string()
|
|
13354
|
+
});
|
|
13355
|
+
/**
|
|
13356
|
+
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
13357
|
+
*
|
|
13358
|
+
* "Zona notte" holds every bedroom; "Zona giorno" the living room and the
|
|
13359
|
+
* kitchen. A camera belongs to exactly one location, and a location to at most
|
|
13360
|
+
* one zone, so a camera's zone is derived and never stored on the device: the
|
|
13361
|
+
* whole point of this entity is that grouping rooms touches no device row.
|
|
13362
|
+
*
|
|
13363
|
+
* ## Why not `zone`
|
|
13364
|
+
*
|
|
13365
|
+
* Because `zone` is already the most loaded word in this product: 612 source
|
|
13366
|
+
* files and 24 Italian strings where it means a DETECTION zone drawn on a
|
|
13367
|
+
* camera. The two are unrelated — one is a polygon in a frame, the other is a
|
|
13368
|
+
* set of rooms — and a reader who confuses them will look for a camera's
|
|
13369
|
+
* bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
|
|
13370
|
+
* word by calling the drawn one what it actually is: a detection zone.
|
|
13371
|
+
*
|
|
13372
|
+
* ## The key
|
|
13373
|
+
*
|
|
13374
|
+
* `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
|
|
13375
|
+
* use (`locationIconKey`). Membership and the icon both hang off it, so a
|
|
13376
|
+
* case-only rename keeps them, which is exactly the orphaning that cost us a
|
|
13377
|
+
* silently-dropped location description.
|
|
13378
|
+
*
|
|
13379
|
+
* The icon vocabulary is the location one, unchanged: a zone is drawn on the
|
|
13380
|
+
* same two surfaces by the same glyph map, so a second vocabulary would be a
|
|
13381
|
+
* second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
|
|
13382
|
+
*/
|
|
13383
|
+
/**
|
|
13384
|
+
* One zone as it travels: its key, the label the operator typed, its icon and
|
|
13385
|
+
* the locations inside it.
|
|
13386
|
+
*
|
|
13387
|
+
* The LABEL is carried alongside the key because the key is lossy on purpose —
|
|
13388
|
+
* a surface must show "Zona notte", not "zona notte". Locations are carried
|
|
13389
|
+
* here, rather than left to a second call, because every consumer wants both
|
|
13390
|
+
* at once and a viewer that asked twice could render a zone whose membership
|
|
13391
|
+
* it has not fetched yet.
|
|
13392
|
+
*
|
|
13393
|
+
* `icon: null` means nobody chose one, which is NOT the fallback pin: only one
|
|
13394
|
+
* of those two is a choice, and a picker has to draw them differently.
|
|
13395
|
+
*/
|
|
13396
|
+
var SiteZoneSchema = object({
|
|
13397
|
+
zoneKey: string(),
|
|
13398
|
+
label: string(),
|
|
13399
|
+
icon: LocationIconIdSchema.nullable(),
|
|
13400
|
+
/** Folded location keys, sorted. A location listed here need not be
|
|
13401
|
+
* REGISTERED — devices carry labels nobody registered, and those rooms are
|
|
13402
|
+
* the ones that most want grouping. */
|
|
13403
|
+
locationKeys: array(string())
|
|
13404
|
+
});
|
|
13289
13405
|
var ProviderStatusSchema = object({
|
|
13290
13406
|
connected: boolean(),
|
|
13291
13407
|
deviceCount: number(),
|
|
@@ -13803,6 +13919,33 @@ method(object({
|
|
|
13803
13919
|
}), _void(), {
|
|
13804
13920
|
kind: "mutation",
|
|
13805
13921
|
auth: "admin"
|
|
13922
|
+
}), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
|
|
13923
|
+
location: string(),
|
|
13924
|
+
description: string().max(400).nullable()
|
|
13925
|
+
}), _void(), {
|
|
13926
|
+
kind: "mutation",
|
|
13927
|
+
auth: "admin"
|
|
13928
|
+
}), method(_void(), array(SiteZoneSchema)), method(object({
|
|
13929
|
+
name: string(),
|
|
13930
|
+
icon: LocationIconIdSchema.nullable().optional()
|
|
13931
|
+
}), _void(), {
|
|
13932
|
+
kind: "mutation",
|
|
13933
|
+
auth: "admin"
|
|
13934
|
+
}), method(object({ name: string() }), _void(), {
|
|
13935
|
+
kind: "mutation",
|
|
13936
|
+
auth: "admin"
|
|
13937
|
+
}), method(object({
|
|
13938
|
+
from: string(),
|
|
13939
|
+
to: string()
|
|
13940
|
+
}), _void(), {
|
|
13941
|
+
kind: "mutation",
|
|
13942
|
+
auth: "admin"
|
|
13943
|
+
}), method(object({
|
|
13944
|
+
location: string(),
|
|
13945
|
+
zone: string().nullable()
|
|
13946
|
+
}), _void(), {
|
|
13947
|
+
kind: "mutation",
|
|
13948
|
+
auth: "admin"
|
|
13806
13949
|
}), method(object({
|
|
13807
13950
|
deviceId: number(),
|
|
13808
13951
|
disabled: boolean()
|
|
@@ -32686,6 +32829,12 @@ Object.freeze({
|
|
|
32686
32829
|
addonId: null,
|
|
32687
32830
|
access: "view"
|
|
32688
32831
|
},
|
|
32832
|
+
"deviceManager.listLocationDescriptions": {
|
|
32833
|
+
capName: "device-manager",
|
|
32834
|
+
capScope: "system",
|
|
32835
|
+
addonId: null,
|
|
32836
|
+
access: "view"
|
|
32837
|
+
},
|
|
32689
32838
|
"deviceManager.listLocationIcons": {
|
|
32690
32839
|
capName: "device-manager",
|
|
32691
32840
|
capScope: "system",
|
|
@@ -32704,6 +32853,12 @@ Object.freeze({
|
|
|
32704
32853
|
addonId: null,
|
|
32705
32854
|
access: "view"
|
|
32706
32855
|
},
|
|
32856
|
+
"deviceManager.listSiteZones": {
|
|
32857
|
+
capName: "device-manager",
|
|
32858
|
+
capScope: "system",
|
|
32859
|
+
addonId: null,
|
|
32860
|
+
access: "view"
|
|
32861
|
+
},
|
|
32707
32862
|
"deviceManager.listWrappersForCap": {
|
|
32708
32863
|
capName: "device-manager",
|
|
32709
32864
|
capScope: "system",
|
|
@@ -32788,12 +32943,24 @@ Object.freeze({
|
|
|
32788
32943
|
addonId: null,
|
|
32789
32944
|
access: "delete"
|
|
32790
32945
|
},
|
|
32946
|
+
"deviceManager.removeSiteZone": {
|
|
32947
|
+
capName: "device-manager",
|
|
32948
|
+
capScope: "system",
|
|
32949
|
+
addonId: null,
|
|
32950
|
+
access: "delete"
|
|
32951
|
+
},
|
|
32791
32952
|
"deviceManager.renameLocation": {
|
|
32792
32953
|
capName: "device-manager",
|
|
32793
32954
|
capScope: "system",
|
|
32794
32955
|
addonId: null,
|
|
32795
32956
|
access: "create"
|
|
32796
32957
|
},
|
|
32958
|
+
"deviceManager.renameSiteZone": {
|
|
32959
|
+
capName: "device-manager",
|
|
32960
|
+
capScope: "system",
|
|
32961
|
+
addonId: null,
|
|
32962
|
+
access: "create"
|
|
32963
|
+
},
|
|
32797
32964
|
"deviceManager.runDeviceAction": {
|
|
32798
32965
|
capName: "device-manager",
|
|
32799
32966
|
capScope: "system",
|
|
@@ -32836,12 +33003,24 @@ Object.freeze({
|
|
|
32836
33003
|
addonId: null,
|
|
32837
33004
|
access: "create"
|
|
32838
33005
|
},
|
|
33006
|
+
"deviceManager.setLocationDescription": {
|
|
33007
|
+
capName: "device-manager",
|
|
33008
|
+
capScope: "system",
|
|
33009
|
+
addonId: null,
|
|
33010
|
+
access: "create"
|
|
33011
|
+
},
|
|
32839
33012
|
"deviceManager.setLocationIcon": {
|
|
32840
33013
|
capName: "device-manager",
|
|
32841
33014
|
capScope: "system",
|
|
32842
33015
|
addonId: null,
|
|
32843
33016
|
access: "create"
|
|
32844
33017
|
},
|
|
33018
|
+
"deviceManager.setLocationZone": {
|
|
33019
|
+
capName: "device-manager",
|
|
33020
|
+
capScope: "system",
|
|
33021
|
+
addonId: null,
|
|
33022
|
+
access: "create"
|
|
33023
|
+
},
|
|
32845
33024
|
"deviceManager.setMetadata": {
|
|
32846
33025
|
capName: "device-manager",
|
|
32847
33026
|
capScope: "system",
|
|
@@ -32872,6 +33051,12 @@ Object.freeze({
|
|
|
32872
33051
|
addonId: null,
|
|
32873
33052
|
access: "create"
|
|
32874
33053
|
},
|
|
33054
|
+
"deviceManager.setSiteZone": {
|
|
33055
|
+
capName: "device-manager",
|
|
33056
|
+
capScope: "system",
|
|
33057
|
+
addonId: null,
|
|
33058
|
+
access: "create"
|
|
33059
|
+
},
|
|
32875
33060
|
"deviceManager.setStreamProfileMap": {
|
|
32876
33061
|
capName: "device-manager",
|
|
32877
33062
|
capScope: "system",
|
|
@@ -12248,7 +12248,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12248
12248
|
* This is what lets one picker serve both the bypass and the full source
|
|
12249
12249
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12250
12250
|
*/
|
|
12251
|
-
allowTranscode: boolean().optional()
|
|
12251
|
+
allowTranscode: boolean().optional(),
|
|
12252
|
+
/**
|
|
12253
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12254
|
+
*
|
|
12255
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12256
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12257
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12258
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12259
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12260
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12261
|
+
*
|
|
12262
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12263
|
+
* here when it decides which source to BIND to a slot
|
|
12264
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12265
|
+
* could never bind them.
|
|
12266
|
+
*/
|
|
12267
|
+
requireProfileBound: boolean().optional()
|
|
12252
12268
|
}).readonly();
|
|
12253
12269
|
var PickStreamPreferencesSchema = object({
|
|
12254
12270
|
/**
|
|
@@ -12289,7 +12305,43 @@ var PickedCamStreamSchema = object({
|
|
|
12289
12305
|
*/
|
|
12290
12306
|
transcodes: boolean(),
|
|
12291
12307
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12292
|
-
reason: string()
|
|
12308
|
+
reason: string(),
|
|
12309
|
+
/**
|
|
12310
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12311
|
+
*
|
|
12312
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12313
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12314
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12315
|
+
* the same function a second time.
|
|
12316
|
+
*
|
|
12317
|
+
* Absent when the source has no slot, which a caller passing
|
|
12318
|
+
* `requireProfileBound` can never see.
|
|
12319
|
+
*/
|
|
12320
|
+
profile: CamProfileSchema.optional(),
|
|
12321
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12322
|
+
brokerId: string().optional(),
|
|
12323
|
+
/**
|
|
12324
|
+
* The broker restream URL to dial for this stream.
|
|
12325
|
+
*
|
|
12326
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12327
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12328
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12329
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12330
|
+
*/
|
|
12331
|
+
url: string().optional(),
|
|
12332
|
+
/**
|
|
12333
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12334
|
+
* from.
|
|
12335
|
+
*
|
|
12336
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12337
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12338
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12339
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12340
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12341
|
+
* are not interchangeable.
|
|
12342
|
+
*/
|
|
12343
|
+
fps: number().positive().optional(),
|
|
12344
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12293
12345
|
});
|
|
12294
12346
|
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
|
|
12295
12347
|
deviceId: number().int().nonnegative(),
|
|
@@ -13263,6 +13315,70 @@ var LocationIconAssignmentSchema = object({
|
|
|
13263
13315
|
locationKey: string(),
|
|
13264
13316
|
icon: LocationIconIdSchema
|
|
13265
13317
|
});
|
|
13318
|
+
/**
|
|
13319
|
+
* One (location, description) assignment as it travels.
|
|
13320
|
+
*
|
|
13321
|
+
* Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
|
|
13322
|
+
* reason: this lived for a while in the post-analysis addon's own settings,
|
|
13323
|
+
* keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
|
|
13324
|
+
* the Locations page carried the icon and silently orphaned the description —
|
|
13325
|
+
* two authorities for one thing, joined by two different rules. Now both hang
|
|
13326
|
+
* off the location itself, on `locationIconKey`.
|
|
13327
|
+
*/
|
|
13328
|
+
var LocationDescriptionAssignmentSchema = object({
|
|
13329
|
+
locationKey: string(),
|
|
13330
|
+
description: string()
|
|
13331
|
+
});
|
|
13332
|
+
/**
|
|
13333
|
+
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
13334
|
+
*
|
|
13335
|
+
* "Zona notte" holds every bedroom; "Zona giorno" the living room and the
|
|
13336
|
+
* kitchen. A camera belongs to exactly one location, and a location to at most
|
|
13337
|
+
* one zone, so a camera's zone is derived and never stored on the device: the
|
|
13338
|
+
* whole point of this entity is that grouping rooms touches no device row.
|
|
13339
|
+
*
|
|
13340
|
+
* ## Why not `zone`
|
|
13341
|
+
*
|
|
13342
|
+
* Because `zone` is already the most loaded word in this product: 612 source
|
|
13343
|
+
* files and 24 Italian strings where it means a DETECTION zone drawn on a
|
|
13344
|
+
* camera. The two are unrelated — one is a polygon in a frame, the other is a
|
|
13345
|
+
* set of rooms — and a reader who confuses them will look for a camera's
|
|
13346
|
+
* bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
|
|
13347
|
+
* word by calling the drawn one what it actually is: a detection zone.
|
|
13348
|
+
*
|
|
13349
|
+
* ## The key
|
|
13350
|
+
*
|
|
13351
|
+
* `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
|
|
13352
|
+
* use (`locationIconKey`). Membership and the icon both hang off it, so a
|
|
13353
|
+
* case-only rename keeps them, which is exactly the orphaning that cost us a
|
|
13354
|
+
* silently-dropped location description.
|
|
13355
|
+
*
|
|
13356
|
+
* The icon vocabulary is the location one, unchanged: a zone is drawn on the
|
|
13357
|
+
* same two surfaces by the same glyph map, so a second vocabulary would be a
|
|
13358
|
+
* second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
|
|
13359
|
+
*/
|
|
13360
|
+
/**
|
|
13361
|
+
* One zone as it travels: its key, the label the operator typed, its icon and
|
|
13362
|
+
* the locations inside it.
|
|
13363
|
+
*
|
|
13364
|
+
* The LABEL is carried alongside the key because the key is lossy on purpose —
|
|
13365
|
+
* a surface must show "Zona notte", not "zona notte". Locations are carried
|
|
13366
|
+
* here, rather than left to a second call, because every consumer wants both
|
|
13367
|
+
* at once and a viewer that asked twice could render a zone whose membership
|
|
13368
|
+
* it has not fetched yet.
|
|
13369
|
+
*
|
|
13370
|
+
* `icon: null` means nobody chose one, which is NOT the fallback pin: only one
|
|
13371
|
+
* of those two is a choice, and a picker has to draw them differently.
|
|
13372
|
+
*/
|
|
13373
|
+
var SiteZoneSchema = object({
|
|
13374
|
+
zoneKey: string(),
|
|
13375
|
+
label: string(),
|
|
13376
|
+
icon: LocationIconIdSchema.nullable(),
|
|
13377
|
+
/** Folded location keys, sorted. A location listed here need not be
|
|
13378
|
+
* REGISTERED — devices carry labels nobody registered, and those rooms are
|
|
13379
|
+
* the ones that most want grouping. */
|
|
13380
|
+
locationKeys: array(string())
|
|
13381
|
+
});
|
|
13266
13382
|
var ProviderStatusSchema = object({
|
|
13267
13383
|
connected: boolean(),
|
|
13268
13384
|
deviceCount: number(),
|
|
@@ -13780,6 +13896,33 @@ method(object({
|
|
|
13780
13896
|
}), _void(), {
|
|
13781
13897
|
kind: "mutation",
|
|
13782
13898
|
auth: "admin"
|
|
13899
|
+
}), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
|
|
13900
|
+
location: string(),
|
|
13901
|
+
description: string().max(400).nullable()
|
|
13902
|
+
}), _void(), {
|
|
13903
|
+
kind: "mutation",
|
|
13904
|
+
auth: "admin"
|
|
13905
|
+
}), method(_void(), array(SiteZoneSchema)), method(object({
|
|
13906
|
+
name: string(),
|
|
13907
|
+
icon: LocationIconIdSchema.nullable().optional()
|
|
13908
|
+
}), _void(), {
|
|
13909
|
+
kind: "mutation",
|
|
13910
|
+
auth: "admin"
|
|
13911
|
+
}), method(object({ name: string() }), _void(), {
|
|
13912
|
+
kind: "mutation",
|
|
13913
|
+
auth: "admin"
|
|
13914
|
+
}), method(object({
|
|
13915
|
+
from: string(),
|
|
13916
|
+
to: string()
|
|
13917
|
+
}), _void(), {
|
|
13918
|
+
kind: "mutation",
|
|
13919
|
+
auth: "admin"
|
|
13920
|
+
}), method(object({
|
|
13921
|
+
location: string(),
|
|
13922
|
+
zone: string().nullable()
|
|
13923
|
+
}), _void(), {
|
|
13924
|
+
kind: "mutation",
|
|
13925
|
+
auth: "admin"
|
|
13783
13926
|
}), method(object({
|
|
13784
13927
|
deviceId: number(),
|
|
13785
13928
|
disabled: boolean()
|
|
@@ -32663,6 +32806,12 @@ Object.freeze({
|
|
|
32663
32806
|
addonId: null,
|
|
32664
32807
|
access: "view"
|
|
32665
32808
|
},
|
|
32809
|
+
"deviceManager.listLocationDescriptions": {
|
|
32810
|
+
capName: "device-manager",
|
|
32811
|
+
capScope: "system",
|
|
32812
|
+
addonId: null,
|
|
32813
|
+
access: "view"
|
|
32814
|
+
},
|
|
32666
32815
|
"deviceManager.listLocationIcons": {
|
|
32667
32816
|
capName: "device-manager",
|
|
32668
32817
|
capScope: "system",
|
|
@@ -32681,6 +32830,12 @@ Object.freeze({
|
|
|
32681
32830
|
addonId: null,
|
|
32682
32831
|
access: "view"
|
|
32683
32832
|
},
|
|
32833
|
+
"deviceManager.listSiteZones": {
|
|
32834
|
+
capName: "device-manager",
|
|
32835
|
+
capScope: "system",
|
|
32836
|
+
addonId: null,
|
|
32837
|
+
access: "view"
|
|
32838
|
+
},
|
|
32684
32839
|
"deviceManager.listWrappersForCap": {
|
|
32685
32840
|
capName: "device-manager",
|
|
32686
32841
|
capScope: "system",
|
|
@@ -32765,12 +32920,24 @@ Object.freeze({
|
|
|
32765
32920
|
addonId: null,
|
|
32766
32921
|
access: "delete"
|
|
32767
32922
|
},
|
|
32923
|
+
"deviceManager.removeSiteZone": {
|
|
32924
|
+
capName: "device-manager",
|
|
32925
|
+
capScope: "system",
|
|
32926
|
+
addonId: null,
|
|
32927
|
+
access: "delete"
|
|
32928
|
+
},
|
|
32768
32929
|
"deviceManager.renameLocation": {
|
|
32769
32930
|
capName: "device-manager",
|
|
32770
32931
|
capScope: "system",
|
|
32771
32932
|
addonId: null,
|
|
32772
32933
|
access: "create"
|
|
32773
32934
|
},
|
|
32935
|
+
"deviceManager.renameSiteZone": {
|
|
32936
|
+
capName: "device-manager",
|
|
32937
|
+
capScope: "system",
|
|
32938
|
+
addonId: null,
|
|
32939
|
+
access: "create"
|
|
32940
|
+
},
|
|
32774
32941
|
"deviceManager.runDeviceAction": {
|
|
32775
32942
|
capName: "device-manager",
|
|
32776
32943
|
capScope: "system",
|
|
@@ -32813,12 +32980,24 @@ Object.freeze({
|
|
|
32813
32980
|
addonId: null,
|
|
32814
32981
|
access: "create"
|
|
32815
32982
|
},
|
|
32983
|
+
"deviceManager.setLocationDescription": {
|
|
32984
|
+
capName: "device-manager",
|
|
32985
|
+
capScope: "system",
|
|
32986
|
+
addonId: null,
|
|
32987
|
+
access: "create"
|
|
32988
|
+
},
|
|
32816
32989
|
"deviceManager.setLocationIcon": {
|
|
32817
32990
|
capName: "device-manager",
|
|
32818
32991
|
capScope: "system",
|
|
32819
32992
|
addonId: null,
|
|
32820
32993
|
access: "create"
|
|
32821
32994
|
},
|
|
32995
|
+
"deviceManager.setLocationZone": {
|
|
32996
|
+
capName: "device-manager",
|
|
32997
|
+
capScope: "system",
|
|
32998
|
+
addonId: null,
|
|
32999
|
+
access: "create"
|
|
33000
|
+
},
|
|
32822
33001
|
"deviceManager.setMetadata": {
|
|
32823
33002
|
capName: "device-manager",
|
|
32824
33003
|
capScope: "system",
|
|
@@ -32849,6 +33028,12 @@ Object.freeze({
|
|
|
32849
33028
|
addonId: null,
|
|
32850
33029
|
access: "create"
|
|
32851
33030
|
},
|
|
33031
|
+
"deviceManager.setSiteZone": {
|
|
33032
|
+
capName: "device-manager",
|
|
33033
|
+
capScope: "system",
|
|
33034
|
+
addonId: null,
|
|
33035
|
+
access: "create"
|
|
33036
|
+
},
|
|
32852
33037
|
"deviceManager.setStreamProfileMap": {
|
|
32853
33038
|
capName: "device-manager",
|
|
32854
33039
|
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-
|
|
5
|
+
const require_shared = require("./shared-BBpkMEmi.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);
|
package/dist/smb.addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-
|
|
1
|
+
import { c as BaseAddon, i as rearmIdleAbort, o as scheduleIdleAbort, s as storageProviderCapability } from "./shared-Ds3OlVc2.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";
|
package/dist/webdav.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-
|
|
5
|
+
const require_shared = require("./shared-BBpkMEmi.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
|
package/dist/webdav.addon.mjs
CHANGED
|
@@ -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-
|
|
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-Ds3OlVc2.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