@camstack/addon-remote-storage 1.2.109 → 1.2.111
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-BBpkMEmi.js → shared-Bhu2uLrQ.js} +209 -7
- package/dist/{shared-Ds3OlVc2.mjs → shared-CBezyYaV.mjs} +209 -7
- 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-Bhu2uLrQ.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-CBezyYaV.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-Bhu2uLrQ.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-CBezyYaV.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-
|
|
5387
|
+
//#region ../types/dist/sleep-vl6nBE8d.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).
|
|
@@ -28770,14 +28770,81 @@ DeviceType.Camera, method(object({ deviceId: number() }), PrivacyMaskOptionsSche
|
|
|
28770
28770
|
kind: "mutation",
|
|
28771
28771
|
auth: "admin"
|
|
28772
28772
|
});
|
|
28773
|
+
/**
|
|
28774
|
+
* What a preset id DOES on this camera.
|
|
28775
|
+
*
|
|
28776
|
+
* On several PTZ firmwares the preset namespace is shared: low ids are stored
|
|
28777
|
+
* positions, a reserved band triggers camera FUNCTIONS. The dispensa camera
|
|
28778
|
+
* (Hikvision) returns its own reserved band in the preset list, named by the
|
|
28779
|
+
* firmware:
|
|
28780
|
+
*
|
|
28781
|
+
* 34 Back to origin · 39 Day mode · 40 Night mode · 46 Day/Night Auto Mode
|
|
28782
|
+
* 92 Set manual limits · 93 Save manual limits · 94 Remote reboot
|
|
28783
|
+
* 95 Call OSD menu
|
|
28784
|
+
*
|
|
28785
|
+
* We used to hand all of these to the UI as ordinary presets. Saving over one
|
|
28786
|
+
* is what produced `PUT /ISAPI/PTZCtrl/channels/1/presets/34 -> HTTP 500`: the
|
|
28787
|
+
* camera refusing to let "Back to origin" be overwritten, surfaced to the
|
|
28788
|
+
* operator as a transport failure.
|
|
28789
|
+
*
|
|
28790
|
+
* A function preset stays fully usable as a DESTINATION -- `goToPreset('34')`
|
|
28791
|
+
* is the single most useful thing that camera can do. Only `savePreset` and
|
|
28792
|
+
* `deletePreset` are gated.
|
|
28793
|
+
*/
|
|
28794
|
+
var PtzPresetFunctionSchema = _enum([
|
|
28795
|
+
"home",
|
|
28796
|
+
"day-mode",
|
|
28797
|
+
"night-mode",
|
|
28798
|
+
"day-night-auto",
|
|
28799
|
+
"set-limits",
|
|
28800
|
+
"save-limits",
|
|
28801
|
+
"reboot",
|
|
28802
|
+
"osd-menu"
|
|
28803
|
+
]);
|
|
28773
28804
|
var PtzPresetSchema = object({
|
|
28774
28805
|
id: string(),
|
|
28775
|
-
name: string()
|
|
28806
|
+
name: string(),
|
|
28807
|
+
/**
|
|
28808
|
+
* The firmware function this id performs, when the provider KNOWS the id is
|
|
28809
|
+
* reserved. `null` = an ordinary stored position, OR a reserved id this
|
|
28810
|
+
* provider does not recognise -- the two are told apart by `writable`.
|
|
28811
|
+
*/
|
|
28812
|
+
fn: PtzPresetFunctionSchema.nullable(),
|
|
28813
|
+
/**
|
|
28814
|
+
* Whether `savePreset` / `deletePreset` may target this id. A provider sets
|
|
28815
|
+
* it false only for a band it KNOWS is reserved; where the firmware is not
|
|
28816
|
+
* documented it stays true and a refusal comes from the camera, named.
|
|
28817
|
+
*/
|
|
28818
|
+
writable: boolean()
|
|
28776
28819
|
});
|
|
28820
|
+
/**
|
|
28821
|
+
* Where the head is pointing -- per axis, and `null` when the driver cannot
|
|
28822
|
+
* read it.
|
|
28823
|
+
*
|
|
28824
|
+
* It used to be three REQUIRED numbers, which left a provider that cannot read
|
|
28825
|
+
* position no way to say so. All four said `0`:
|
|
28826
|
+
*
|
|
28827
|
+
* reolink `return { pan: 0, tilt: 0, zoom: 0 }` "until a position-query
|
|
28828
|
+
* path lands upstream"
|
|
28829
|
+
* hikvision stub, "firmware-dependent and frequently absent"
|
|
28830
|
+
* amcrest stub, "no generic absolute-position read for this model family"
|
|
28831
|
+
* onvif throws
|
|
28832
|
+
*
|
|
28833
|
+
* So every consumer asking where a camera points was told "perfectly centred"
|
|
28834
|
+
* by four cameras that had never looked. That is D393 -- a measurement that
|
|
28835
|
+
* FAILED is `null`, never `0`, and the type says so all the way to the
|
|
28836
|
+
* decision -- the same shape as the unreadable `statfs` folded into "0 bytes of
|
|
28837
|
+
* headroom", which evacuated a healthy disk.
|
|
28838
|
+
*
|
|
28839
|
+
* D393 also says to check for a narrower structural TWIN of the result type.
|
|
28840
|
+
* There is one: `PtzStatusSchema` extends this, so the lie had already
|
|
28841
|
+
* propagated into `getStatus`, which is the surface `getPosition`'s own comment
|
|
28842
|
+
* tells callers to migrate to.
|
|
28843
|
+
*/
|
|
28777
28844
|
var PtzPositionSchema = object({
|
|
28778
|
-
pan: number(),
|
|
28779
|
-
tilt: number(),
|
|
28780
|
-
zoom: number()
|
|
28845
|
+
pan: number().nullable(),
|
|
28846
|
+
tilt: number().nullable(),
|
|
28847
|
+
zoom: number().nullable()
|
|
28781
28848
|
});
|
|
28782
28849
|
var PtzMoveCommandSchema = object({
|
|
28783
28850
|
pan: number().optional(),
|
|
@@ -28796,7 +28863,72 @@ var PtzOptionsSchema = object({
|
|
|
28796
28863
|
maxPresets: number().optional(),
|
|
28797
28864
|
/** Whether the camera exposes a controllable autofocus toggle
|
|
28798
28865
|
* (boolean `hasX` per the getOptions availability convention). */
|
|
28799
|
-
hasAutofocus: boolean()
|
|
28866
|
+
hasAutofocus: boolean(),
|
|
28867
|
+
/**
|
|
28868
|
+
* How many distinct speeds this camera's NATIVE scale offers.
|
|
28869
|
+
*
|
|
28870
|
+
* The cap's `speed` is normalized 0..1 and each provider maps it down --
|
|
28871
|
+
* Baichuan 1..63, Dahua 1..8, ISAPI's percentage -100..100. The normalized
|
|
28872
|
+
* value hides how coarse that really is: asking an amcrest for `0.37` is
|
|
28873
|
+
* meaningless, because it has eight steps and three of them round to the
|
|
28874
|
+
* same one. A loop that tunes its own gain has to know the granularity of
|
|
28875
|
+
* the knob it is turning.
|
|
28876
|
+
*
|
|
28877
|
+
* `null` = the driver does not know, or the scale is continuous (ONVIF takes
|
|
28878
|
+
* a float). Never a made-up number.
|
|
28879
|
+
*/
|
|
28880
|
+
speedSteps: number().int().positive().nullable(),
|
|
28881
|
+
/**
|
|
28882
|
+
* How long ONE `move` pulse runs on this driver, ms.
|
|
28883
|
+
*
|
|
28884
|
+
* `move` is a self-terminating burst everywhere, but every provider hardcoded
|
|
28885
|
+
* its own duration in private -- 200 reolink, 350 amcrest, 500 hikvision,
|
|
28886
|
+
* 1000 onvif -- so no caller could read it. It is the DENOMINATOR of "how far
|
|
28887
|
+
* did the head travel per pulse": without it a measured displacement has no
|
|
28888
|
+
* gain to be divided into.
|
|
28889
|
+
*
|
|
28890
|
+
* `null` = the driver cannot say.
|
|
28891
|
+
*/
|
|
28892
|
+
moveImpulseMs: number().int().positive().nullable()
|
|
28893
|
+
});
|
|
28894
|
+
/**
|
|
28895
|
+
* Which preset `goHome` goes to, and WHO decided.
|
|
28896
|
+
*
|
|
28897
|
+
* `goHome` used to be three vendor "conventions" written in three comments --
|
|
28898
|
+
* Reolink preset 0, Hikvision preset '1', Dahua preset 1 -- and on this fleet
|
|
28899
|
+
* not one of the three cameras honours its own:
|
|
28900
|
+
*
|
|
28901
|
+
* 592 Videocamera camera Daniel (reolink) preset 0 holds "stanza"
|
|
28902
|
+
* 1438 Videocamera dispensa (hikvision) preset 1 holds "Credenza"
|
|
28903
|
+
* 3836 Videocamera studio (amcrest) preset 1 holds "Preset1"
|
|
28904
|
+
*
|
|
28905
|
+
* So `goHome` meant "go wherever the operator happened to save in slot 0 or 1",
|
|
28906
|
+
* and two of the three swallowed the failure in a bare `catch`. For autotrack
|
|
28907
|
+
* this is the HOTTEST path -- it runs every time a subject is released -- so it
|
|
28908
|
+
* needs an answer that is true per camera and audible when it is missing.
|
|
28909
|
+
*
|
|
28910
|
+
* `source` is what makes it honest:
|
|
28911
|
+
* - `operator` -- picked in the UI, stored by the provider.
|
|
28912
|
+
* - `firmware` -- the camera itself named a preset `fn: 'home'` (Hikvision's
|
|
28913
|
+
* "Back to origin"), adopted as the default with nothing to configure.
|
|
28914
|
+
* - `native` -- the driver homes WITHOUT a preset at all. ONVIF does:
|
|
28915
|
+
* `goHome` is `ptzAbsoluteMove({x:0, y:0, zoom:0})`. `presetId` is null and
|
|
28916
|
+
* that is not a failure -- there is nothing to pick, and the UI must offer
|
|
28917
|
+
* no picker.
|
|
28918
|
+
* - `none` -- nothing is configured and the camera names nothing.
|
|
28919
|
+
* `goHome` REFUSES rather than moving the head somewhere arbitrary.
|
|
28920
|
+
*
|
|
28921
|
+
* `source === 'none'` is the refusal condition, NOT `presetId === null`: the
|
|
28922
|
+
* native case has no preset and homes perfectly well.
|
|
28923
|
+
*/
|
|
28924
|
+
var PtzHomePresetSchema = object({
|
|
28925
|
+
presetId: string().nullable(),
|
|
28926
|
+
source: _enum([
|
|
28927
|
+
"operator",
|
|
28928
|
+
"firmware",
|
|
28929
|
+
"native",
|
|
28930
|
+
"none"
|
|
28931
|
+
])
|
|
28800
28932
|
});
|
|
28801
28933
|
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({
|
|
28802
28934
|
deviceId: number(),
|
|
@@ -28814,7 +28946,22 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
28814
28946
|
}), _void(), {
|
|
28815
28947
|
kind: "mutation",
|
|
28816
28948
|
auth: "admin"
|
|
28817
|
-
}), method(object({ deviceId: number() }), PtzOptionsSchema), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }),
|
|
28949
|
+
}), method(object({ deviceId: number() }), PtzOptionsSchema), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), PtzHomePresetSchema), method(object({
|
|
28950
|
+
deviceId: number(),
|
|
28951
|
+
presetId: string().nullable()
|
|
28952
|
+
}), _void(), {
|
|
28953
|
+
kind: "mutation",
|
|
28954
|
+
auth: "admin"
|
|
28955
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
28956
|
+
kind: "mutation",
|
|
28957
|
+
auth: "admin"
|
|
28958
|
+
}), method(object({ deviceId: number() }), number().int().nullable()), method(object({
|
|
28959
|
+
deviceId: number(),
|
|
28960
|
+
seconds: number().int().min(0).max(3600)
|
|
28961
|
+
}), _void(), {
|
|
28962
|
+
kind: "mutation",
|
|
28963
|
+
auth: "admin"
|
|
28964
|
+
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
28818
28965
|
deviceId: number(),
|
|
28819
28966
|
enabled: boolean()
|
|
28820
28967
|
}), _void(), { kind: "mutation" });
|
|
@@ -35817,6 +35964,12 @@ Object.freeze({
|
|
|
35817
35964
|
addonId: null,
|
|
35818
35965
|
access: "create"
|
|
35819
35966
|
},
|
|
35967
|
+
"ptz.captureHomeHere": {
|
|
35968
|
+
capName: "ptz",
|
|
35969
|
+
capScope: "device",
|
|
35970
|
+
addonId: null,
|
|
35971
|
+
access: "create"
|
|
35972
|
+
},
|
|
35820
35973
|
"ptz.continuousMove": {
|
|
35821
35974
|
capName: "ptz",
|
|
35822
35975
|
capScope: "device",
|
|
@@ -35829,6 +35982,18 @@ Object.freeze({
|
|
|
35829
35982
|
addonId: null,
|
|
35830
35983
|
access: "delete"
|
|
35831
35984
|
},
|
|
35985
|
+
"ptz.getHomePreset": {
|
|
35986
|
+
capName: "ptz",
|
|
35987
|
+
capScope: "device",
|
|
35988
|
+
addonId: null,
|
|
35989
|
+
access: "view"
|
|
35990
|
+
},
|
|
35991
|
+
"ptz.getHomeReturnSeconds": {
|
|
35992
|
+
capName: "ptz",
|
|
35993
|
+
capScope: "device",
|
|
35994
|
+
addonId: null,
|
|
35995
|
+
access: "view"
|
|
35996
|
+
},
|
|
35832
35997
|
"ptz.getOptions": {
|
|
35833
35998
|
capName: "ptz",
|
|
35834
35999
|
capScope: "device",
|
|
@@ -35877,6 +36042,18 @@ Object.freeze({
|
|
|
35877
36042
|
addonId: null,
|
|
35878
36043
|
access: "create"
|
|
35879
36044
|
},
|
|
36045
|
+
"ptz.setHomePreset": {
|
|
36046
|
+
capName: "ptz",
|
|
36047
|
+
capScope: "device",
|
|
36048
|
+
addonId: null,
|
|
36049
|
+
access: "create"
|
|
36050
|
+
},
|
|
36051
|
+
"ptz.setHomeReturnSeconds": {
|
|
36052
|
+
capName: "ptz",
|
|
36053
|
+
capScope: "device",
|
|
36054
|
+
addonId: null,
|
|
36055
|
+
access: "create"
|
|
36056
|
+
},
|
|
35880
36057
|
"ptz.stop": {
|
|
35881
36058
|
capName: "ptz",
|
|
35882
36059
|
capScope: "device",
|
|
@@ -39040,6 +39217,11 @@ Object.freeze({
|
|
|
39040
39217
|
form: "single",
|
|
39041
39218
|
optional: false
|
|
39042
39219
|
}],
|
|
39220
|
+
"ptz.captureHomeHere": [{
|
|
39221
|
+
name: "deviceId",
|
|
39222
|
+
form: "single",
|
|
39223
|
+
optional: false
|
|
39224
|
+
}],
|
|
39043
39225
|
"ptz.continuousMove": [{
|
|
39044
39226
|
name: "deviceId",
|
|
39045
39227
|
form: "single",
|
|
@@ -39050,6 +39232,16 @@ Object.freeze({
|
|
|
39050
39232
|
form: "single",
|
|
39051
39233
|
optional: false
|
|
39052
39234
|
}],
|
|
39235
|
+
"ptz.getHomePreset": [{
|
|
39236
|
+
name: "deviceId",
|
|
39237
|
+
form: "single",
|
|
39238
|
+
optional: false
|
|
39239
|
+
}],
|
|
39240
|
+
"ptz.getHomeReturnSeconds": [{
|
|
39241
|
+
name: "deviceId",
|
|
39242
|
+
form: "single",
|
|
39243
|
+
optional: false
|
|
39244
|
+
}],
|
|
39053
39245
|
"ptz.getOptions": [{
|
|
39054
39246
|
name: "deviceId",
|
|
39055
39247
|
form: "single",
|
|
@@ -39090,6 +39282,16 @@ Object.freeze({
|
|
|
39090
39282
|
form: "single",
|
|
39091
39283
|
optional: false
|
|
39092
39284
|
}],
|
|
39285
|
+
"ptz.setHomePreset": [{
|
|
39286
|
+
name: "deviceId",
|
|
39287
|
+
form: "single",
|
|
39288
|
+
optional: false
|
|
39289
|
+
}],
|
|
39290
|
+
"ptz.setHomeReturnSeconds": [{
|
|
39291
|
+
name: "deviceId",
|
|
39292
|
+
form: "single",
|
|
39293
|
+
optional: false
|
|
39294
|
+
}],
|
|
39093
39295
|
"ptz.stop": [{
|
|
39094
39296
|
name: "deviceId",
|
|
39095
39297
|
form: "single",
|
|
@@ -5361,7 +5361,7 @@ var ZodIssueCode = {
|
|
|
5361
5361
|
var ZodFirstPartyTypeKind;
|
|
5362
5362
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5363
5363
|
//#endregion
|
|
5364
|
-
//#region ../types/dist/sleep-
|
|
5364
|
+
//#region ../types/dist/sleep-vl6nBE8d.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).
|
|
@@ -28747,14 +28747,81 @@ DeviceType.Camera, method(object({ deviceId: number() }), PrivacyMaskOptionsSche
|
|
|
28747
28747
|
kind: "mutation",
|
|
28748
28748
|
auth: "admin"
|
|
28749
28749
|
});
|
|
28750
|
+
/**
|
|
28751
|
+
* What a preset id DOES on this camera.
|
|
28752
|
+
*
|
|
28753
|
+
* On several PTZ firmwares the preset namespace is shared: low ids are stored
|
|
28754
|
+
* positions, a reserved band triggers camera FUNCTIONS. The dispensa camera
|
|
28755
|
+
* (Hikvision) returns its own reserved band in the preset list, named by the
|
|
28756
|
+
* firmware:
|
|
28757
|
+
*
|
|
28758
|
+
* 34 Back to origin · 39 Day mode · 40 Night mode · 46 Day/Night Auto Mode
|
|
28759
|
+
* 92 Set manual limits · 93 Save manual limits · 94 Remote reboot
|
|
28760
|
+
* 95 Call OSD menu
|
|
28761
|
+
*
|
|
28762
|
+
* We used to hand all of these to the UI as ordinary presets. Saving over one
|
|
28763
|
+
* is what produced `PUT /ISAPI/PTZCtrl/channels/1/presets/34 -> HTTP 500`: the
|
|
28764
|
+
* camera refusing to let "Back to origin" be overwritten, surfaced to the
|
|
28765
|
+
* operator as a transport failure.
|
|
28766
|
+
*
|
|
28767
|
+
* A function preset stays fully usable as a DESTINATION -- `goToPreset('34')`
|
|
28768
|
+
* is the single most useful thing that camera can do. Only `savePreset` and
|
|
28769
|
+
* `deletePreset` are gated.
|
|
28770
|
+
*/
|
|
28771
|
+
var PtzPresetFunctionSchema = _enum([
|
|
28772
|
+
"home",
|
|
28773
|
+
"day-mode",
|
|
28774
|
+
"night-mode",
|
|
28775
|
+
"day-night-auto",
|
|
28776
|
+
"set-limits",
|
|
28777
|
+
"save-limits",
|
|
28778
|
+
"reboot",
|
|
28779
|
+
"osd-menu"
|
|
28780
|
+
]);
|
|
28750
28781
|
var PtzPresetSchema = object({
|
|
28751
28782
|
id: string(),
|
|
28752
|
-
name: string()
|
|
28783
|
+
name: string(),
|
|
28784
|
+
/**
|
|
28785
|
+
* The firmware function this id performs, when the provider KNOWS the id is
|
|
28786
|
+
* reserved. `null` = an ordinary stored position, OR a reserved id this
|
|
28787
|
+
* provider does not recognise -- the two are told apart by `writable`.
|
|
28788
|
+
*/
|
|
28789
|
+
fn: PtzPresetFunctionSchema.nullable(),
|
|
28790
|
+
/**
|
|
28791
|
+
* Whether `savePreset` / `deletePreset` may target this id. A provider sets
|
|
28792
|
+
* it false only for a band it KNOWS is reserved; where the firmware is not
|
|
28793
|
+
* documented it stays true and a refusal comes from the camera, named.
|
|
28794
|
+
*/
|
|
28795
|
+
writable: boolean()
|
|
28753
28796
|
});
|
|
28797
|
+
/**
|
|
28798
|
+
* Where the head is pointing -- per axis, and `null` when the driver cannot
|
|
28799
|
+
* read it.
|
|
28800
|
+
*
|
|
28801
|
+
* It used to be three REQUIRED numbers, which left a provider that cannot read
|
|
28802
|
+
* position no way to say so. All four said `0`:
|
|
28803
|
+
*
|
|
28804
|
+
* reolink `return { pan: 0, tilt: 0, zoom: 0 }` "until a position-query
|
|
28805
|
+
* path lands upstream"
|
|
28806
|
+
* hikvision stub, "firmware-dependent and frequently absent"
|
|
28807
|
+
* amcrest stub, "no generic absolute-position read for this model family"
|
|
28808
|
+
* onvif throws
|
|
28809
|
+
*
|
|
28810
|
+
* So every consumer asking where a camera points was told "perfectly centred"
|
|
28811
|
+
* by four cameras that had never looked. That is D393 -- a measurement that
|
|
28812
|
+
* FAILED is `null`, never `0`, and the type says so all the way to the
|
|
28813
|
+
* decision -- the same shape as the unreadable `statfs` folded into "0 bytes of
|
|
28814
|
+
* headroom", which evacuated a healthy disk.
|
|
28815
|
+
*
|
|
28816
|
+
* D393 also says to check for a narrower structural TWIN of the result type.
|
|
28817
|
+
* There is one: `PtzStatusSchema` extends this, so the lie had already
|
|
28818
|
+
* propagated into `getStatus`, which is the surface `getPosition`'s own comment
|
|
28819
|
+
* tells callers to migrate to.
|
|
28820
|
+
*/
|
|
28754
28821
|
var PtzPositionSchema = object({
|
|
28755
|
-
pan: number(),
|
|
28756
|
-
tilt: number(),
|
|
28757
|
-
zoom: number()
|
|
28822
|
+
pan: number().nullable(),
|
|
28823
|
+
tilt: number().nullable(),
|
|
28824
|
+
zoom: number().nullable()
|
|
28758
28825
|
});
|
|
28759
28826
|
var PtzMoveCommandSchema = object({
|
|
28760
28827
|
pan: number().optional(),
|
|
@@ -28773,7 +28840,72 @@ var PtzOptionsSchema = object({
|
|
|
28773
28840
|
maxPresets: number().optional(),
|
|
28774
28841
|
/** Whether the camera exposes a controllable autofocus toggle
|
|
28775
28842
|
* (boolean `hasX` per the getOptions availability convention). */
|
|
28776
|
-
hasAutofocus: boolean()
|
|
28843
|
+
hasAutofocus: boolean(),
|
|
28844
|
+
/**
|
|
28845
|
+
* How many distinct speeds this camera's NATIVE scale offers.
|
|
28846
|
+
*
|
|
28847
|
+
* The cap's `speed` is normalized 0..1 and each provider maps it down --
|
|
28848
|
+
* Baichuan 1..63, Dahua 1..8, ISAPI's percentage -100..100. The normalized
|
|
28849
|
+
* value hides how coarse that really is: asking an amcrest for `0.37` is
|
|
28850
|
+
* meaningless, because it has eight steps and three of them round to the
|
|
28851
|
+
* same one. A loop that tunes its own gain has to know the granularity of
|
|
28852
|
+
* the knob it is turning.
|
|
28853
|
+
*
|
|
28854
|
+
* `null` = the driver does not know, or the scale is continuous (ONVIF takes
|
|
28855
|
+
* a float). Never a made-up number.
|
|
28856
|
+
*/
|
|
28857
|
+
speedSteps: number().int().positive().nullable(),
|
|
28858
|
+
/**
|
|
28859
|
+
* How long ONE `move` pulse runs on this driver, ms.
|
|
28860
|
+
*
|
|
28861
|
+
* `move` is a self-terminating burst everywhere, but every provider hardcoded
|
|
28862
|
+
* its own duration in private -- 200 reolink, 350 amcrest, 500 hikvision,
|
|
28863
|
+
* 1000 onvif -- so no caller could read it. It is the DENOMINATOR of "how far
|
|
28864
|
+
* did the head travel per pulse": without it a measured displacement has no
|
|
28865
|
+
* gain to be divided into.
|
|
28866
|
+
*
|
|
28867
|
+
* `null` = the driver cannot say.
|
|
28868
|
+
*/
|
|
28869
|
+
moveImpulseMs: number().int().positive().nullable()
|
|
28870
|
+
});
|
|
28871
|
+
/**
|
|
28872
|
+
* Which preset `goHome` goes to, and WHO decided.
|
|
28873
|
+
*
|
|
28874
|
+
* `goHome` used to be three vendor "conventions" written in three comments --
|
|
28875
|
+
* Reolink preset 0, Hikvision preset '1', Dahua preset 1 -- and on this fleet
|
|
28876
|
+
* not one of the three cameras honours its own:
|
|
28877
|
+
*
|
|
28878
|
+
* 592 Videocamera camera Daniel (reolink) preset 0 holds "stanza"
|
|
28879
|
+
* 1438 Videocamera dispensa (hikvision) preset 1 holds "Credenza"
|
|
28880
|
+
* 3836 Videocamera studio (amcrest) preset 1 holds "Preset1"
|
|
28881
|
+
*
|
|
28882
|
+
* So `goHome` meant "go wherever the operator happened to save in slot 0 or 1",
|
|
28883
|
+
* and two of the three swallowed the failure in a bare `catch`. For autotrack
|
|
28884
|
+
* this is the HOTTEST path -- it runs every time a subject is released -- so it
|
|
28885
|
+
* needs an answer that is true per camera and audible when it is missing.
|
|
28886
|
+
*
|
|
28887
|
+
* `source` is what makes it honest:
|
|
28888
|
+
* - `operator` -- picked in the UI, stored by the provider.
|
|
28889
|
+
* - `firmware` -- the camera itself named a preset `fn: 'home'` (Hikvision's
|
|
28890
|
+
* "Back to origin"), adopted as the default with nothing to configure.
|
|
28891
|
+
* - `native` -- the driver homes WITHOUT a preset at all. ONVIF does:
|
|
28892
|
+
* `goHome` is `ptzAbsoluteMove({x:0, y:0, zoom:0})`. `presetId` is null and
|
|
28893
|
+
* that is not a failure -- there is nothing to pick, and the UI must offer
|
|
28894
|
+
* no picker.
|
|
28895
|
+
* - `none` -- nothing is configured and the camera names nothing.
|
|
28896
|
+
* `goHome` REFUSES rather than moving the head somewhere arbitrary.
|
|
28897
|
+
*
|
|
28898
|
+
* `source === 'none'` is the refusal condition, NOT `presetId === null`: the
|
|
28899
|
+
* native case has no preset and homes perfectly well.
|
|
28900
|
+
*/
|
|
28901
|
+
var PtzHomePresetSchema = object({
|
|
28902
|
+
presetId: string().nullable(),
|
|
28903
|
+
source: _enum([
|
|
28904
|
+
"operator",
|
|
28905
|
+
"firmware",
|
|
28906
|
+
"native",
|
|
28907
|
+
"none"
|
|
28908
|
+
])
|
|
28777
28909
|
});
|
|
28778
28910
|
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({
|
|
28779
28911
|
deviceId: number(),
|
|
@@ -28791,7 +28923,22 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
28791
28923
|
}), _void(), {
|
|
28792
28924
|
kind: "mutation",
|
|
28793
28925
|
auth: "admin"
|
|
28794
|
-
}), method(object({ deviceId: number() }), PtzOptionsSchema), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }),
|
|
28926
|
+
}), method(object({ deviceId: number() }), PtzOptionsSchema), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), PtzHomePresetSchema), method(object({
|
|
28927
|
+
deviceId: number(),
|
|
28928
|
+
presetId: string().nullable()
|
|
28929
|
+
}), _void(), {
|
|
28930
|
+
kind: "mutation",
|
|
28931
|
+
auth: "admin"
|
|
28932
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
28933
|
+
kind: "mutation",
|
|
28934
|
+
auth: "admin"
|
|
28935
|
+
}), method(object({ deviceId: number() }), number().int().nullable()), method(object({
|
|
28936
|
+
deviceId: number(),
|
|
28937
|
+
seconds: number().int().min(0).max(3600)
|
|
28938
|
+
}), _void(), {
|
|
28939
|
+
kind: "mutation",
|
|
28940
|
+
auth: "admin"
|
|
28941
|
+
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
28795
28942
|
deviceId: number(),
|
|
28796
28943
|
enabled: boolean()
|
|
28797
28944
|
}), _void(), { kind: "mutation" });
|
|
@@ -35794,6 +35941,12 @@ Object.freeze({
|
|
|
35794
35941
|
addonId: null,
|
|
35795
35942
|
access: "create"
|
|
35796
35943
|
},
|
|
35944
|
+
"ptz.captureHomeHere": {
|
|
35945
|
+
capName: "ptz",
|
|
35946
|
+
capScope: "device",
|
|
35947
|
+
addonId: null,
|
|
35948
|
+
access: "create"
|
|
35949
|
+
},
|
|
35797
35950
|
"ptz.continuousMove": {
|
|
35798
35951
|
capName: "ptz",
|
|
35799
35952
|
capScope: "device",
|
|
@@ -35806,6 +35959,18 @@ Object.freeze({
|
|
|
35806
35959
|
addonId: null,
|
|
35807
35960
|
access: "delete"
|
|
35808
35961
|
},
|
|
35962
|
+
"ptz.getHomePreset": {
|
|
35963
|
+
capName: "ptz",
|
|
35964
|
+
capScope: "device",
|
|
35965
|
+
addonId: null,
|
|
35966
|
+
access: "view"
|
|
35967
|
+
},
|
|
35968
|
+
"ptz.getHomeReturnSeconds": {
|
|
35969
|
+
capName: "ptz",
|
|
35970
|
+
capScope: "device",
|
|
35971
|
+
addonId: null,
|
|
35972
|
+
access: "view"
|
|
35973
|
+
},
|
|
35809
35974
|
"ptz.getOptions": {
|
|
35810
35975
|
capName: "ptz",
|
|
35811
35976
|
capScope: "device",
|
|
@@ -35854,6 +36019,18 @@ Object.freeze({
|
|
|
35854
36019
|
addonId: null,
|
|
35855
36020
|
access: "create"
|
|
35856
36021
|
},
|
|
36022
|
+
"ptz.setHomePreset": {
|
|
36023
|
+
capName: "ptz",
|
|
36024
|
+
capScope: "device",
|
|
36025
|
+
addonId: null,
|
|
36026
|
+
access: "create"
|
|
36027
|
+
},
|
|
36028
|
+
"ptz.setHomeReturnSeconds": {
|
|
36029
|
+
capName: "ptz",
|
|
36030
|
+
capScope: "device",
|
|
36031
|
+
addonId: null,
|
|
36032
|
+
access: "create"
|
|
36033
|
+
},
|
|
35857
36034
|
"ptz.stop": {
|
|
35858
36035
|
capName: "ptz",
|
|
35859
36036
|
capScope: "device",
|
|
@@ -39017,6 +39194,11 @@ Object.freeze({
|
|
|
39017
39194
|
form: "single",
|
|
39018
39195
|
optional: false
|
|
39019
39196
|
}],
|
|
39197
|
+
"ptz.captureHomeHere": [{
|
|
39198
|
+
name: "deviceId",
|
|
39199
|
+
form: "single",
|
|
39200
|
+
optional: false
|
|
39201
|
+
}],
|
|
39020
39202
|
"ptz.continuousMove": [{
|
|
39021
39203
|
name: "deviceId",
|
|
39022
39204
|
form: "single",
|
|
@@ -39027,6 +39209,16 @@ Object.freeze({
|
|
|
39027
39209
|
form: "single",
|
|
39028
39210
|
optional: false
|
|
39029
39211
|
}],
|
|
39212
|
+
"ptz.getHomePreset": [{
|
|
39213
|
+
name: "deviceId",
|
|
39214
|
+
form: "single",
|
|
39215
|
+
optional: false
|
|
39216
|
+
}],
|
|
39217
|
+
"ptz.getHomeReturnSeconds": [{
|
|
39218
|
+
name: "deviceId",
|
|
39219
|
+
form: "single",
|
|
39220
|
+
optional: false
|
|
39221
|
+
}],
|
|
39030
39222
|
"ptz.getOptions": [{
|
|
39031
39223
|
name: "deviceId",
|
|
39032
39224
|
form: "single",
|
|
@@ -39067,6 +39259,16 @@ Object.freeze({
|
|
|
39067
39259
|
form: "single",
|
|
39068
39260
|
optional: false
|
|
39069
39261
|
}],
|
|
39262
|
+
"ptz.setHomePreset": [{
|
|
39263
|
+
name: "deviceId",
|
|
39264
|
+
form: "single",
|
|
39265
|
+
optional: false
|
|
39266
|
+
}],
|
|
39267
|
+
"ptz.setHomeReturnSeconds": [{
|
|
39268
|
+
name: "deviceId",
|
|
39269
|
+
form: "single",
|
|
39270
|
+
optional: false
|
|
39271
|
+
}],
|
|
39070
39272
|
"ptz.stop": [{
|
|
39071
39273
|
name: "deviceId",
|
|
39072
39274
|
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-
|
|
5
|
+
const require_shared = require("./shared-Bhu2uLrQ.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-CBezyYaV.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-Bhu2uLrQ.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-CBezyYaV.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