@camstack/addon-remote-storage 1.2.109 → 1.2.110
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-9bu99N7-.js} +167 -7
- package/dist/{shared-Ds3OlVc2.mjs → shared-CJbZKVV5.mjs} +167 -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-9bu99N7-.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-CJbZKVV5.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-9bu99N7-.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-CJbZKVV5.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-B1y0Fo1U.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,13 @@ 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() }), PtzPositionSchema), method(object({
|
|
28818
28956
|
deviceId: number(),
|
|
28819
28957
|
enabled: boolean()
|
|
28820
28958
|
}), _void(), { kind: "mutation" });
|
|
@@ -35829,6 +35967,12 @@ Object.freeze({
|
|
|
35829
35967
|
addonId: null,
|
|
35830
35968
|
access: "delete"
|
|
35831
35969
|
},
|
|
35970
|
+
"ptz.getHomePreset": {
|
|
35971
|
+
capName: "ptz",
|
|
35972
|
+
capScope: "device",
|
|
35973
|
+
addonId: null,
|
|
35974
|
+
access: "view"
|
|
35975
|
+
},
|
|
35832
35976
|
"ptz.getOptions": {
|
|
35833
35977
|
capName: "ptz",
|
|
35834
35978
|
capScope: "device",
|
|
@@ -35877,6 +36021,12 @@ Object.freeze({
|
|
|
35877
36021
|
addonId: null,
|
|
35878
36022
|
access: "create"
|
|
35879
36023
|
},
|
|
36024
|
+
"ptz.setHomePreset": {
|
|
36025
|
+
capName: "ptz",
|
|
36026
|
+
capScope: "device",
|
|
36027
|
+
addonId: null,
|
|
36028
|
+
access: "create"
|
|
36029
|
+
},
|
|
35880
36030
|
"ptz.stop": {
|
|
35881
36031
|
capName: "ptz",
|
|
35882
36032
|
capScope: "device",
|
|
@@ -39050,6 +39200,11 @@ Object.freeze({
|
|
|
39050
39200
|
form: "single",
|
|
39051
39201
|
optional: false
|
|
39052
39202
|
}],
|
|
39203
|
+
"ptz.getHomePreset": [{
|
|
39204
|
+
name: "deviceId",
|
|
39205
|
+
form: "single",
|
|
39206
|
+
optional: false
|
|
39207
|
+
}],
|
|
39053
39208
|
"ptz.getOptions": [{
|
|
39054
39209
|
name: "deviceId",
|
|
39055
39210
|
form: "single",
|
|
@@ -39090,6 +39245,11 @@ Object.freeze({
|
|
|
39090
39245
|
form: "single",
|
|
39091
39246
|
optional: false
|
|
39092
39247
|
}],
|
|
39248
|
+
"ptz.setHomePreset": [{
|
|
39249
|
+
name: "deviceId",
|
|
39250
|
+
form: "single",
|
|
39251
|
+
optional: false
|
|
39252
|
+
}],
|
|
39093
39253
|
"ptz.stop": [{
|
|
39094
39254
|
name: "deviceId",
|
|
39095
39255
|
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-B1y0Fo1U.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,13 @@ 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() }), PtzPositionSchema), method(object({
|
|
28795
28933
|
deviceId: number(),
|
|
28796
28934
|
enabled: boolean()
|
|
28797
28935
|
}), _void(), { kind: "mutation" });
|
|
@@ -35806,6 +35944,12 @@ Object.freeze({
|
|
|
35806
35944
|
addonId: null,
|
|
35807
35945
|
access: "delete"
|
|
35808
35946
|
},
|
|
35947
|
+
"ptz.getHomePreset": {
|
|
35948
|
+
capName: "ptz",
|
|
35949
|
+
capScope: "device",
|
|
35950
|
+
addonId: null,
|
|
35951
|
+
access: "view"
|
|
35952
|
+
},
|
|
35809
35953
|
"ptz.getOptions": {
|
|
35810
35954
|
capName: "ptz",
|
|
35811
35955
|
capScope: "device",
|
|
@@ -35854,6 +35998,12 @@ Object.freeze({
|
|
|
35854
35998
|
addonId: null,
|
|
35855
35999
|
access: "create"
|
|
35856
36000
|
},
|
|
36001
|
+
"ptz.setHomePreset": {
|
|
36002
|
+
capName: "ptz",
|
|
36003
|
+
capScope: "device",
|
|
36004
|
+
addonId: null,
|
|
36005
|
+
access: "create"
|
|
36006
|
+
},
|
|
35857
36007
|
"ptz.stop": {
|
|
35858
36008
|
capName: "ptz",
|
|
35859
36009
|
capScope: "device",
|
|
@@ -39027,6 +39177,11 @@ Object.freeze({
|
|
|
39027
39177
|
form: "single",
|
|
39028
39178
|
optional: false
|
|
39029
39179
|
}],
|
|
39180
|
+
"ptz.getHomePreset": [{
|
|
39181
|
+
name: "deviceId",
|
|
39182
|
+
form: "single",
|
|
39183
|
+
optional: false
|
|
39184
|
+
}],
|
|
39030
39185
|
"ptz.getOptions": [{
|
|
39031
39186
|
name: "deviceId",
|
|
39032
39187
|
form: "single",
|
|
@@ -39067,6 +39222,11 @@ Object.freeze({
|
|
|
39067
39222
|
form: "single",
|
|
39068
39223
|
optional: false
|
|
39069
39224
|
}],
|
|
39225
|
+
"ptz.setHomePreset": [{
|
|
39226
|
+
name: "deviceId",
|
|
39227
|
+
form: "single",
|
|
39228
|
+
optional: false
|
|
39229
|
+
}],
|
|
39070
39230
|
"ptz.stop": [{
|
|
39071
39231
|
name: "deviceId",
|
|
39072
39232
|
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-9bu99N7-.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-CJbZKVV5.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-9bu99N7-.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-CJbZKVV5.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