@camstack/addon-tailscale 1.2.110 → 1.2.112
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/client/tailscale.addon.js +1 -1
- package/dist/client/tailscale.addon.mjs +1 -1
- package/dist/{dist-BBBDJ4_e.js → dist-gpHMMfYp.js} +209 -7
- package/dist/{dist-CW2jdX_8.mjs → dist-hh5BU3VH.mjs} +209 -7
- package/dist/ingress/tailscale-ingress.addon.js +1 -1
- package/dist/ingress/tailscale-ingress.addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
//#endregion
|
|
27
|
-
const require_dist = require("../dist-
|
|
27
|
+
const require_dist = require("../dist-gpHMMfYp.js");
|
|
28
28
|
let node_child_process = require("node:child_process");
|
|
29
29
|
let node_util = require("node:util");
|
|
30
30
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-
|
|
1
|
+
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-hh5BU3VH.mjs";
|
|
2
2
|
import { execFile, spawn } from "node:child_process";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import * as fs from "node:fs";
|
|
@@ -5359,7 +5359,7 @@ var ZodIssueCode = {
|
|
|
5359
5359
|
var ZodFirstPartyTypeKind;
|
|
5360
5360
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5361
5361
|
//#endregion
|
|
5362
|
-
//#region ../types/dist/sleep-
|
|
5362
|
+
//#region ../types/dist/sleep-vl6nBE8d.mjs
|
|
5363
5363
|
/**
|
|
5364
5364
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5365
5365
|
* window to float samples (D455).
|
|
@@ -28797,14 +28797,81 @@ DeviceType.Camera, method(object({ deviceId: number() }), PrivacyMaskOptionsSche
|
|
|
28797
28797
|
kind: "mutation",
|
|
28798
28798
|
auth: "admin"
|
|
28799
28799
|
});
|
|
28800
|
+
/**
|
|
28801
|
+
* What a preset id DOES on this camera.
|
|
28802
|
+
*
|
|
28803
|
+
* On several PTZ firmwares the preset namespace is shared: low ids are stored
|
|
28804
|
+
* positions, a reserved band triggers camera FUNCTIONS. The dispensa camera
|
|
28805
|
+
* (Hikvision) returns its own reserved band in the preset list, named by the
|
|
28806
|
+
* firmware:
|
|
28807
|
+
*
|
|
28808
|
+
* 34 Back to origin · 39 Day mode · 40 Night mode · 46 Day/Night Auto Mode
|
|
28809
|
+
* 92 Set manual limits · 93 Save manual limits · 94 Remote reboot
|
|
28810
|
+
* 95 Call OSD menu
|
|
28811
|
+
*
|
|
28812
|
+
* We used to hand all of these to the UI as ordinary presets. Saving over one
|
|
28813
|
+
* is what produced `PUT /ISAPI/PTZCtrl/channels/1/presets/34 -> HTTP 500`: the
|
|
28814
|
+
* camera refusing to let "Back to origin" be overwritten, surfaced to the
|
|
28815
|
+
* operator as a transport failure.
|
|
28816
|
+
*
|
|
28817
|
+
* A function preset stays fully usable as a DESTINATION -- `goToPreset('34')`
|
|
28818
|
+
* is the single most useful thing that camera can do. Only `savePreset` and
|
|
28819
|
+
* `deletePreset` are gated.
|
|
28820
|
+
*/
|
|
28821
|
+
var PtzPresetFunctionSchema = _enum([
|
|
28822
|
+
"home",
|
|
28823
|
+
"day-mode",
|
|
28824
|
+
"night-mode",
|
|
28825
|
+
"day-night-auto",
|
|
28826
|
+
"set-limits",
|
|
28827
|
+
"save-limits",
|
|
28828
|
+
"reboot",
|
|
28829
|
+
"osd-menu"
|
|
28830
|
+
]);
|
|
28800
28831
|
var PtzPresetSchema = object({
|
|
28801
28832
|
id: string(),
|
|
28802
|
-
name: string()
|
|
28833
|
+
name: string(),
|
|
28834
|
+
/**
|
|
28835
|
+
* The firmware function this id performs, when the provider KNOWS the id is
|
|
28836
|
+
* reserved. `null` = an ordinary stored position, OR a reserved id this
|
|
28837
|
+
* provider does not recognise -- the two are told apart by `writable`.
|
|
28838
|
+
*/
|
|
28839
|
+
fn: PtzPresetFunctionSchema.nullable(),
|
|
28840
|
+
/**
|
|
28841
|
+
* Whether `savePreset` / `deletePreset` may target this id. A provider sets
|
|
28842
|
+
* it false only for a band it KNOWS is reserved; where the firmware is not
|
|
28843
|
+
* documented it stays true and a refusal comes from the camera, named.
|
|
28844
|
+
*/
|
|
28845
|
+
writable: boolean()
|
|
28803
28846
|
});
|
|
28847
|
+
/**
|
|
28848
|
+
* Where the head is pointing -- per axis, and `null` when the driver cannot
|
|
28849
|
+
* read it.
|
|
28850
|
+
*
|
|
28851
|
+
* It used to be three REQUIRED numbers, which left a provider that cannot read
|
|
28852
|
+
* position no way to say so. All four said `0`:
|
|
28853
|
+
*
|
|
28854
|
+
* reolink `return { pan: 0, tilt: 0, zoom: 0 }` "until a position-query
|
|
28855
|
+
* path lands upstream"
|
|
28856
|
+
* hikvision stub, "firmware-dependent and frequently absent"
|
|
28857
|
+
* amcrest stub, "no generic absolute-position read for this model family"
|
|
28858
|
+
* onvif throws
|
|
28859
|
+
*
|
|
28860
|
+
* So every consumer asking where a camera points was told "perfectly centred"
|
|
28861
|
+
* by four cameras that had never looked. That is D393 -- a measurement that
|
|
28862
|
+
* FAILED is `null`, never `0`, and the type says so all the way to the
|
|
28863
|
+
* decision -- the same shape as the unreadable `statfs` folded into "0 bytes of
|
|
28864
|
+
* headroom", which evacuated a healthy disk.
|
|
28865
|
+
*
|
|
28866
|
+
* D393 also says to check for a narrower structural TWIN of the result type.
|
|
28867
|
+
* There is one: `PtzStatusSchema` extends this, so the lie had already
|
|
28868
|
+
* propagated into `getStatus`, which is the surface `getPosition`'s own comment
|
|
28869
|
+
* tells callers to migrate to.
|
|
28870
|
+
*/
|
|
28804
28871
|
var PtzPositionSchema = object({
|
|
28805
|
-
pan: number(),
|
|
28806
|
-
tilt: number(),
|
|
28807
|
-
zoom: number()
|
|
28872
|
+
pan: number().nullable(),
|
|
28873
|
+
tilt: number().nullable(),
|
|
28874
|
+
zoom: number().nullable()
|
|
28808
28875
|
});
|
|
28809
28876
|
var PtzMoveCommandSchema = object({
|
|
28810
28877
|
pan: number().optional(),
|
|
@@ -28823,7 +28890,72 @@ var PtzOptionsSchema = object({
|
|
|
28823
28890
|
maxPresets: number().optional(),
|
|
28824
28891
|
/** Whether the camera exposes a controllable autofocus toggle
|
|
28825
28892
|
* (boolean `hasX` per the getOptions availability convention). */
|
|
28826
|
-
hasAutofocus: boolean()
|
|
28893
|
+
hasAutofocus: boolean(),
|
|
28894
|
+
/**
|
|
28895
|
+
* How many distinct speeds this camera's NATIVE scale offers.
|
|
28896
|
+
*
|
|
28897
|
+
* The cap's `speed` is normalized 0..1 and each provider maps it down --
|
|
28898
|
+
* Baichuan 1..63, Dahua 1..8, ISAPI's percentage -100..100. The normalized
|
|
28899
|
+
* value hides how coarse that really is: asking an amcrest for `0.37` is
|
|
28900
|
+
* meaningless, because it has eight steps and three of them round to the
|
|
28901
|
+
* same one. A loop that tunes its own gain has to know the granularity of
|
|
28902
|
+
* the knob it is turning.
|
|
28903
|
+
*
|
|
28904
|
+
* `null` = the driver does not know, or the scale is continuous (ONVIF takes
|
|
28905
|
+
* a float). Never a made-up number.
|
|
28906
|
+
*/
|
|
28907
|
+
speedSteps: number().int().positive().nullable(),
|
|
28908
|
+
/**
|
|
28909
|
+
* How long ONE `move` pulse runs on this driver, ms.
|
|
28910
|
+
*
|
|
28911
|
+
* `move` is a self-terminating burst everywhere, but every provider hardcoded
|
|
28912
|
+
* its own duration in private -- 200 reolink, 350 amcrest, 500 hikvision,
|
|
28913
|
+
* 1000 onvif -- so no caller could read it. It is the DENOMINATOR of "how far
|
|
28914
|
+
* did the head travel per pulse": without it a measured displacement has no
|
|
28915
|
+
* gain to be divided into.
|
|
28916
|
+
*
|
|
28917
|
+
* `null` = the driver cannot say.
|
|
28918
|
+
*/
|
|
28919
|
+
moveImpulseMs: number().int().positive().nullable()
|
|
28920
|
+
});
|
|
28921
|
+
/**
|
|
28922
|
+
* Which preset `goHome` goes to, and WHO decided.
|
|
28923
|
+
*
|
|
28924
|
+
* `goHome` used to be three vendor "conventions" written in three comments --
|
|
28925
|
+
* Reolink preset 0, Hikvision preset '1', Dahua preset 1 -- and on this fleet
|
|
28926
|
+
* not one of the three cameras honours its own:
|
|
28927
|
+
*
|
|
28928
|
+
* 592 Videocamera camera Daniel (reolink) preset 0 holds "stanza"
|
|
28929
|
+
* 1438 Videocamera dispensa (hikvision) preset 1 holds "Credenza"
|
|
28930
|
+
* 3836 Videocamera studio (amcrest) preset 1 holds "Preset1"
|
|
28931
|
+
*
|
|
28932
|
+
* So `goHome` meant "go wherever the operator happened to save in slot 0 or 1",
|
|
28933
|
+
* and two of the three swallowed the failure in a bare `catch`. For autotrack
|
|
28934
|
+
* this is the HOTTEST path -- it runs every time a subject is released -- so it
|
|
28935
|
+
* needs an answer that is true per camera and audible when it is missing.
|
|
28936
|
+
*
|
|
28937
|
+
* `source` is what makes it honest:
|
|
28938
|
+
* - `operator` -- picked in the UI, stored by the provider.
|
|
28939
|
+
* - `firmware` -- the camera itself named a preset `fn: 'home'` (Hikvision's
|
|
28940
|
+
* "Back to origin"), adopted as the default with nothing to configure.
|
|
28941
|
+
* - `native` -- the driver homes WITHOUT a preset at all. ONVIF does:
|
|
28942
|
+
* `goHome` is `ptzAbsoluteMove({x:0, y:0, zoom:0})`. `presetId` is null and
|
|
28943
|
+
* that is not a failure -- there is nothing to pick, and the UI must offer
|
|
28944
|
+
* no picker.
|
|
28945
|
+
* - `none` -- nothing is configured and the camera names nothing.
|
|
28946
|
+
* `goHome` REFUSES rather than moving the head somewhere arbitrary.
|
|
28947
|
+
*
|
|
28948
|
+
* `source === 'none'` is the refusal condition, NOT `presetId === null`: the
|
|
28949
|
+
* native case has no preset and homes perfectly well.
|
|
28950
|
+
*/
|
|
28951
|
+
var PtzHomePresetSchema = object({
|
|
28952
|
+
presetId: string().nullable(),
|
|
28953
|
+
source: _enum([
|
|
28954
|
+
"operator",
|
|
28955
|
+
"firmware",
|
|
28956
|
+
"native",
|
|
28957
|
+
"none"
|
|
28958
|
+
])
|
|
28827
28959
|
});
|
|
28828
28960
|
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({
|
|
28829
28961
|
deviceId: number(),
|
|
@@ -28841,7 +28973,22 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
28841
28973
|
}), _void(), {
|
|
28842
28974
|
kind: "mutation",
|
|
28843
28975
|
auth: "admin"
|
|
28844
|
-
}), method(object({ deviceId: number() }), PtzOptionsSchema), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }),
|
|
28976
|
+
}), method(object({ deviceId: number() }), PtzOptionsSchema), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), PtzHomePresetSchema), method(object({
|
|
28977
|
+
deviceId: number(),
|
|
28978
|
+
presetId: string().nullable()
|
|
28979
|
+
}), _void(), {
|
|
28980
|
+
kind: "mutation",
|
|
28981
|
+
auth: "admin"
|
|
28982
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
28983
|
+
kind: "mutation",
|
|
28984
|
+
auth: "admin"
|
|
28985
|
+
}), method(object({ deviceId: number() }), number().int().nullable()), method(object({
|
|
28986
|
+
deviceId: number(),
|
|
28987
|
+
seconds: number().int().min(0).max(3600)
|
|
28988
|
+
}), _void(), {
|
|
28989
|
+
kind: "mutation",
|
|
28990
|
+
auth: "admin"
|
|
28991
|
+
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
28845
28992
|
deviceId: number(),
|
|
28846
28993
|
enabled: boolean()
|
|
28847
28994
|
}), _void(), { kind: "mutation" });
|
|
@@ -35844,6 +35991,12 @@ Object.freeze({
|
|
|
35844
35991
|
addonId: null,
|
|
35845
35992
|
access: "create"
|
|
35846
35993
|
},
|
|
35994
|
+
"ptz.captureHomeHere": {
|
|
35995
|
+
capName: "ptz",
|
|
35996
|
+
capScope: "device",
|
|
35997
|
+
addonId: null,
|
|
35998
|
+
access: "create"
|
|
35999
|
+
},
|
|
35847
36000
|
"ptz.continuousMove": {
|
|
35848
36001
|
capName: "ptz",
|
|
35849
36002
|
capScope: "device",
|
|
@@ -35856,6 +36009,18 @@ Object.freeze({
|
|
|
35856
36009
|
addonId: null,
|
|
35857
36010
|
access: "delete"
|
|
35858
36011
|
},
|
|
36012
|
+
"ptz.getHomePreset": {
|
|
36013
|
+
capName: "ptz",
|
|
36014
|
+
capScope: "device",
|
|
36015
|
+
addonId: null,
|
|
36016
|
+
access: "view"
|
|
36017
|
+
},
|
|
36018
|
+
"ptz.getHomeReturnSeconds": {
|
|
36019
|
+
capName: "ptz",
|
|
36020
|
+
capScope: "device",
|
|
36021
|
+
addonId: null,
|
|
36022
|
+
access: "view"
|
|
36023
|
+
},
|
|
35859
36024
|
"ptz.getOptions": {
|
|
35860
36025
|
capName: "ptz",
|
|
35861
36026
|
capScope: "device",
|
|
@@ -35904,6 +36069,18 @@ Object.freeze({
|
|
|
35904
36069
|
addonId: null,
|
|
35905
36070
|
access: "create"
|
|
35906
36071
|
},
|
|
36072
|
+
"ptz.setHomePreset": {
|
|
36073
|
+
capName: "ptz",
|
|
36074
|
+
capScope: "device",
|
|
36075
|
+
addonId: null,
|
|
36076
|
+
access: "create"
|
|
36077
|
+
},
|
|
36078
|
+
"ptz.setHomeReturnSeconds": {
|
|
36079
|
+
capName: "ptz",
|
|
36080
|
+
capScope: "device",
|
|
36081
|
+
addonId: null,
|
|
36082
|
+
access: "create"
|
|
36083
|
+
},
|
|
35907
36084
|
"ptz.stop": {
|
|
35908
36085
|
capName: "ptz",
|
|
35909
36086
|
capScope: "device",
|
|
@@ -39067,6 +39244,11 @@ Object.freeze({
|
|
|
39067
39244
|
form: "single",
|
|
39068
39245
|
optional: false
|
|
39069
39246
|
}],
|
|
39247
|
+
"ptz.captureHomeHere": [{
|
|
39248
|
+
name: "deviceId",
|
|
39249
|
+
form: "single",
|
|
39250
|
+
optional: false
|
|
39251
|
+
}],
|
|
39070
39252
|
"ptz.continuousMove": [{
|
|
39071
39253
|
name: "deviceId",
|
|
39072
39254
|
form: "single",
|
|
@@ -39077,6 +39259,16 @@ Object.freeze({
|
|
|
39077
39259
|
form: "single",
|
|
39078
39260
|
optional: false
|
|
39079
39261
|
}],
|
|
39262
|
+
"ptz.getHomePreset": [{
|
|
39263
|
+
name: "deviceId",
|
|
39264
|
+
form: "single",
|
|
39265
|
+
optional: false
|
|
39266
|
+
}],
|
|
39267
|
+
"ptz.getHomeReturnSeconds": [{
|
|
39268
|
+
name: "deviceId",
|
|
39269
|
+
form: "single",
|
|
39270
|
+
optional: false
|
|
39271
|
+
}],
|
|
39080
39272
|
"ptz.getOptions": [{
|
|
39081
39273
|
name: "deviceId",
|
|
39082
39274
|
form: "single",
|
|
@@ -39117,6 +39309,16 @@ Object.freeze({
|
|
|
39117
39309
|
form: "single",
|
|
39118
39310
|
optional: false
|
|
39119
39311
|
}],
|
|
39312
|
+
"ptz.setHomePreset": [{
|
|
39313
|
+
name: "deviceId",
|
|
39314
|
+
form: "single",
|
|
39315
|
+
optional: false
|
|
39316
|
+
}],
|
|
39317
|
+
"ptz.setHomeReturnSeconds": [{
|
|
39318
|
+
name: "deviceId",
|
|
39319
|
+
form: "single",
|
|
39320
|
+
optional: false
|
|
39321
|
+
}],
|
|
39120
39322
|
"ptz.stop": [{
|
|
39121
39323
|
name: "deviceId",
|
|
39122
39324
|
form: "single",
|
|
@@ -5359,7 +5359,7 @@ var ZodIssueCode = {
|
|
|
5359
5359
|
var ZodFirstPartyTypeKind;
|
|
5360
5360
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5361
5361
|
//#endregion
|
|
5362
|
-
//#region ../types/dist/sleep-
|
|
5362
|
+
//#region ../types/dist/sleep-vl6nBE8d.mjs
|
|
5363
5363
|
/**
|
|
5364
5364
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5365
5365
|
* window to float samples (D455).
|
|
@@ -28797,14 +28797,81 @@ DeviceType.Camera, method(object({ deviceId: number() }), PrivacyMaskOptionsSche
|
|
|
28797
28797
|
kind: "mutation",
|
|
28798
28798
|
auth: "admin"
|
|
28799
28799
|
});
|
|
28800
|
+
/**
|
|
28801
|
+
* What a preset id DOES on this camera.
|
|
28802
|
+
*
|
|
28803
|
+
* On several PTZ firmwares the preset namespace is shared: low ids are stored
|
|
28804
|
+
* positions, a reserved band triggers camera FUNCTIONS. The dispensa camera
|
|
28805
|
+
* (Hikvision) returns its own reserved band in the preset list, named by the
|
|
28806
|
+
* firmware:
|
|
28807
|
+
*
|
|
28808
|
+
* 34 Back to origin · 39 Day mode · 40 Night mode · 46 Day/Night Auto Mode
|
|
28809
|
+
* 92 Set manual limits · 93 Save manual limits · 94 Remote reboot
|
|
28810
|
+
* 95 Call OSD menu
|
|
28811
|
+
*
|
|
28812
|
+
* We used to hand all of these to the UI as ordinary presets. Saving over one
|
|
28813
|
+
* is what produced `PUT /ISAPI/PTZCtrl/channels/1/presets/34 -> HTTP 500`: the
|
|
28814
|
+
* camera refusing to let "Back to origin" be overwritten, surfaced to the
|
|
28815
|
+
* operator as a transport failure.
|
|
28816
|
+
*
|
|
28817
|
+
* A function preset stays fully usable as a DESTINATION -- `goToPreset('34')`
|
|
28818
|
+
* is the single most useful thing that camera can do. Only `savePreset` and
|
|
28819
|
+
* `deletePreset` are gated.
|
|
28820
|
+
*/
|
|
28821
|
+
var PtzPresetFunctionSchema = _enum([
|
|
28822
|
+
"home",
|
|
28823
|
+
"day-mode",
|
|
28824
|
+
"night-mode",
|
|
28825
|
+
"day-night-auto",
|
|
28826
|
+
"set-limits",
|
|
28827
|
+
"save-limits",
|
|
28828
|
+
"reboot",
|
|
28829
|
+
"osd-menu"
|
|
28830
|
+
]);
|
|
28800
28831
|
var PtzPresetSchema = object({
|
|
28801
28832
|
id: string(),
|
|
28802
|
-
name: string()
|
|
28833
|
+
name: string(),
|
|
28834
|
+
/**
|
|
28835
|
+
* The firmware function this id performs, when the provider KNOWS the id is
|
|
28836
|
+
* reserved. `null` = an ordinary stored position, OR a reserved id this
|
|
28837
|
+
* provider does not recognise -- the two are told apart by `writable`.
|
|
28838
|
+
*/
|
|
28839
|
+
fn: PtzPresetFunctionSchema.nullable(),
|
|
28840
|
+
/**
|
|
28841
|
+
* Whether `savePreset` / `deletePreset` may target this id. A provider sets
|
|
28842
|
+
* it false only for a band it KNOWS is reserved; where the firmware is not
|
|
28843
|
+
* documented it stays true and a refusal comes from the camera, named.
|
|
28844
|
+
*/
|
|
28845
|
+
writable: boolean()
|
|
28803
28846
|
});
|
|
28847
|
+
/**
|
|
28848
|
+
* Where the head is pointing -- per axis, and `null` when the driver cannot
|
|
28849
|
+
* read it.
|
|
28850
|
+
*
|
|
28851
|
+
* It used to be three REQUIRED numbers, which left a provider that cannot read
|
|
28852
|
+
* position no way to say so. All four said `0`:
|
|
28853
|
+
*
|
|
28854
|
+
* reolink `return { pan: 0, tilt: 0, zoom: 0 }` "until a position-query
|
|
28855
|
+
* path lands upstream"
|
|
28856
|
+
* hikvision stub, "firmware-dependent and frequently absent"
|
|
28857
|
+
* amcrest stub, "no generic absolute-position read for this model family"
|
|
28858
|
+
* onvif throws
|
|
28859
|
+
*
|
|
28860
|
+
* So every consumer asking where a camera points was told "perfectly centred"
|
|
28861
|
+
* by four cameras that had never looked. That is D393 -- a measurement that
|
|
28862
|
+
* FAILED is `null`, never `0`, and the type says so all the way to the
|
|
28863
|
+
* decision -- the same shape as the unreadable `statfs` folded into "0 bytes of
|
|
28864
|
+
* headroom", which evacuated a healthy disk.
|
|
28865
|
+
*
|
|
28866
|
+
* D393 also says to check for a narrower structural TWIN of the result type.
|
|
28867
|
+
* There is one: `PtzStatusSchema` extends this, so the lie had already
|
|
28868
|
+
* propagated into `getStatus`, which is the surface `getPosition`'s own comment
|
|
28869
|
+
* tells callers to migrate to.
|
|
28870
|
+
*/
|
|
28804
28871
|
var PtzPositionSchema = object({
|
|
28805
|
-
pan: number(),
|
|
28806
|
-
tilt: number(),
|
|
28807
|
-
zoom: number()
|
|
28872
|
+
pan: number().nullable(),
|
|
28873
|
+
tilt: number().nullable(),
|
|
28874
|
+
zoom: number().nullable()
|
|
28808
28875
|
});
|
|
28809
28876
|
var PtzMoveCommandSchema = object({
|
|
28810
28877
|
pan: number().optional(),
|
|
@@ -28823,7 +28890,72 @@ var PtzOptionsSchema = object({
|
|
|
28823
28890
|
maxPresets: number().optional(),
|
|
28824
28891
|
/** Whether the camera exposes a controllable autofocus toggle
|
|
28825
28892
|
* (boolean `hasX` per the getOptions availability convention). */
|
|
28826
|
-
hasAutofocus: boolean()
|
|
28893
|
+
hasAutofocus: boolean(),
|
|
28894
|
+
/**
|
|
28895
|
+
* How many distinct speeds this camera's NATIVE scale offers.
|
|
28896
|
+
*
|
|
28897
|
+
* The cap's `speed` is normalized 0..1 and each provider maps it down --
|
|
28898
|
+
* Baichuan 1..63, Dahua 1..8, ISAPI's percentage -100..100. The normalized
|
|
28899
|
+
* value hides how coarse that really is: asking an amcrest for `0.37` is
|
|
28900
|
+
* meaningless, because it has eight steps and three of them round to the
|
|
28901
|
+
* same one. A loop that tunes its own gain has to know the granularity of
|
|
28902
|
+
* the knob it is turning.
|
|
28903
|
+
*
|
|
28904
|
+
* `null` = the driver does not know, or the scale is continuous (ONVIF takes
|
|
28905
|
+
* a float). Never a made-up number.
|
|
28906
|
+
*/
|
|
28907
|
+
speedSteps: number().int().positive().nullable(),
|
|
28908
|
+
/**
|
|
28909
|
+
* How long ONE `move` pulse runs on this driver, ms.
|
|
28910
|
+
*
|
|
28911
|
+
* `move` is a self-terminating burst everywhere, but every provider hardcoded
|
|
28912
|
+
* its own duration in private -- 200 reolink, 350 amcrest, 500 hikvision,
|
|
28913
|
+
* 1000 onvif -- so no caller could read it. It is the DENOMINATOR of "how far
|
|
28914
|
+
* did the head travel per pulse": without it a measured displacement has no
|
|
28915
|
+
* gain to be divided into.
|
|
28916
|
+
*
|
|
28917
|
+
* `null` = the driver cannot say.
|
|
28918
|
+
*/
|
|
28919
|
+
moveImpulseMs: number().int().positive().nullable()
|
|
28920
|
+
});
|
|
28921
|
+
/**
|
|
28922
|
+
* Which preset `goHome` goes to, and WHO decided.
|
|
28923
|
+
*
|
|
28924
|
+
* `goHome` used to be three vendor "conventions" written in three comments --
|
|
28925
|
+
* Reolink preset 0, Hikvision preset '1', Dahua preset 1 -- and on this fleet
|
|
28926
|
+
* not one of the three cameras honours its own:
|
|
28927
|
+
*
|
|
28928
|
+
* 592 Videocamera camera Daniel (reolink) preset 0 holds "stanza"
|
|
28929
|
+
* 1438 Videocamera dispensa (hikvision) preset 1 holds "Credenza"
|
|
28930
|
+
* 3836 Videocamera studio (amcrest) preset 1 holds "Preset1"
|
|
28931
|
+
*
|
|
28932
|
+
* So `goHome` meant "go wherever the operator happened to save in slot 0 or 1",
|
|
28933
|
+
* and two of the three swallowed the failure in a bare `catch`. For autotrack
|
|
28934
|
+
* this is the HOTTEST path -- it runs every time a subject is released -- so it
|
|
28935
|
+
* needs an answer that is true per camera and audible when it is missing.
|
|
28936
|
+
*
|
|
28937
|
+
* `source` is what makes it honest:
|
|
28938
|
+
* - `operator` -- picked in the UI, stored by the provider.
|
|
28939
|
+
* - `firmware` -- the camera itself named a preset `fn: 'home'` (Hikvision's
|
|
28940
|
+
* "Back to origin"), adopted as the default with nothing to configure.
|
|
28941
|
+
* - `native` -- the driver homes WITHOUT a preset at all. ONVIF does:
|
|
28942
|
+
* `goHome` is `ptzAbsoluteMove({x:0, y:0, zoom:0})`. `presetId` is null and
|
|
28943
|
+
* that is not a failure -- there is nothing to pick, and the UI must offer
|
|
28944
|
+
* no picker.
|
|
28945
|
+
* - `none` -- nothing is configured and the camera names nothing.
|
|
28946
|
+
* `goHome` REFUSES rather than moving the head somewhere arbitrary.
|
|
28947
|
+
*
|
|
28948
|
+
* `source === 'none'` is the refusal condition, NOT `presetId === null`: the
|
|
28949
|
+
* native case has no preset and homes perfectly well.
|
|
28950
|
+
*/
|
|
28951
|
+
var PtzHomePresetSchema = object({
|
|
28952
|
+
presetId: string().nullable(),
|
|
28953
|
+
source: _enum([
|
|
28954
|
+
"operator",
|
|
28955
|
+
"firmware",
|
|
28956
|
+
"native",
|
|
28957
|
+
"none"
|
|
28958
|
+
])
|
|
28827
28959
|
});
|
|
28828
28960
|
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({
|
|
28829
28961
|
deviceId: number(),
|
|
@@ -28841,7 +28973,22 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
|
|
|
28841
28973
|
}), _void(), {
|
|
28842
28974
|
kind: "mutation",
|
|
28843
28975
|
auth: "admin"
|
|
28844
|
-
}), method(object({ deviceId: number() }), PtzOptionsSchema), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }),
|
|
28976
|
+
}), method(object({ deviceId: number() }), PtzOptionsSchema), method(object({ deviceId: number() }), _void(), { kind: "mutation" }), method(object({ deviceId: number() }), PtzHomePresetSchema), method(object({
|
|
28977
|
+
deviceId: number(),
|
|
28978
|
+
presetId: string().nullable()
|
|
28979
|
+
}), _void(), {
|
|
28980
|
+
kind: "mutation",
|
|
28981
|
+
auth: "admin"
|
|
28982
|
+
}), method(object({ deviceId: number() }), _void(), {
|
|
28983
|
+
kind: "mutation",
|
|
28984
|
+
auth: "admin"
|
|
28985
|
+
}), method(object({ deviceId: number() }), number().int().nullable()), method(object({
|
|
28986
|
+
deviceId: number(),
|
|
28987
|
+
seconds: number().int().min(0).max(3600)
|
|
28988
|
+
}), _void(), {
|
|
28989
|
+
kind: "mutation",
|
|
28990
|
+
auth: "admin"
|
|
28991
|
+
}), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
|
|
28845
28992
|
deviceId: number(),
|
|
28846
28993
|
enabled: boolean()
|
|
28847
28994
|
}), _void(), { kind: "mutation" });
|
|
@@ -35844,6 +35991,12 @@ Object.freeze({
|
|
|
35844
35991
|
addonId: null,
|
|
35845
35992
|
access: "create"
|
|
35846
35993
|
},
|
|
35994
|
+
"ptz.captureHomeHere": {
|
|
35995
|
+
capName: "ptz",
|
|
35996
|
+
capScope: "device",
|
|
35997
|
+
addonId: null,
|
|
35998
|
+
access: "create"
|
|
35999
|
+
},
|
|
35847
36000
|
"ptz.continuousMove": {
|
|
35848
36001
|
capName: "ptz",
|
|
35849
36002
|
capScope: "device",
|
|
@@ -35856,6 +36009,18 @@ Object.freeze({
|
|
|
35856
36009
|
addonId: null,
|
|
35857
36010
|
access: "delete"
|
|
35858
36011
|
},
|
|
36012
|
+
"ptz.getHomePreset": {
|
|
36013
|
+
capName: "ptz",
|
|
36014
|
+
capScope: "device",
|
|
36015
|
+
addonId: null,
|
|
36016
|
+
access: "view"
|
|
36017
|
+
},
|
|
36018
|
+
"ptz.getHomeReturnSeconds": {
|
|
36019
|
+
capName: "ptz",
|
|
36020
|
+
capScope: "device",
|
|
36021
|
+
addonId: null,
|
|
36022
|
+
access: "view"
|
|
36023
|
+
},
|
|
35859
36024
|
"ptz.getOptions": {
|
|
35860
36025
|
capName: "ptz",
|
|
35861
36026
|
capScope: "device",
|
|
@@ -35904,6 +36069,18 @@ Object.freeze({
|
|
|
35904
36069
|
addonId: null,
|
|
35905
36070
|
access: "create"
|
|
35906
36071
|
},
|
|
36072
|
+
"ptz.setHomePreset": {
|
|
36073
|
+
capName: "ptz",
|
|
36074
|
+
capScope: "device",
|
|
36075
|
+
addonId: null,
|
|
36076
|
+
access: "create"
|
|
36077
|
+
},
|
|
36078
|
+
"ptz.setHomeReturnSeconds": {
|
|
36079
|
+
capName: "ptz",
|
|
36080
|
+
capScope: "device",
|
|
36081
|
+
addonId: null,
|
|
36082
|
+
access: "create"
|
|
36083
|
+
},
|
|
35907
36084
|
"ptz.stop": {
|
|
35908
36085
|
capName: "ptz",
|
|
35909
36086
|
capScope: "device",
|
|
@@ -39067,6 +39244,11 @@ Object.freeze({
|
|
|
39067
39244
|
form: "single",
|
|
39068
39245
|
optional: false
|
|
39069
39246
|
}],
|
|
39247
|
+
"ptz.captureHomeHere": [{
|
|
39248
|
+
name: "deviceId",
|
|
39249
|
+
form: "single",
|
|
39250
|
+
optional: false
|
|
39251
|
+
}],
|
|
39070
39252
|
"ptz.continuousMove": [{
|
|
39071
39253
|
name: "deviceId",
|
|
39072
39254
|
form: "single",
|
|
@@ -39077,6 +39259,16 @@ Object.freeze({
|
|
|
39077
39259
|
form: "single",
|
|
39078
39260
|
optional: false
|
|
39079
39261
|
}],
|
|
39262
|
+
"ptz.getHomePreset": [{
|
|
39263
|
+
name: "deviceId",
|
|
39264
|
+
form: "single",
|
|
39265
|
+
optional: false
|
|
39266
|
+
}],
|
|
39267
|
+
"ptz.getHomeReturnSeconds": [{
|
|
39268
|
+
name: "deviceId",
|
|
39269
|
+
form: "single",
|
|
39270
|
+
optional: false
|
|
39271
|
+
}],
|
|
39080
39272
|
"ptz.getOptions": [{
|
|
39081
39273
|
name: "deviceId",
|
|
39082
39274
|
form: "single",
|
|
@@ -39117,6 +39309,16 @@ Object.freeze({
|
|
|
39117
39309
|
form: "single",
|
|
39118
39310
|
optional: false
|
|
39119
39311
|
}],
|
|
39312
|
+
"ptz.setHomePreset": [{
|
|
39313
|
+
name: "deviceId",
|
|
39314
|
+
form: "single",
|
|
39315
|
+
optional: false
|
|
39316
|
+
}],
|
|
39317
|
+
"ptz.setHomeReturnSeconds": [{
|
|
39318
|
+
name: "deviceId",
|
|
39319
|
+
form: "single",
|
|
39320
|
+
optional: false
|
|
39321
|
+
}],
|
|
39120
39322
|
"ptz.stop": [{
|
|
39121
39323
|
name: "deviceId",
|
|
39122
39324
|
form: "single",
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-gpHMMfYp.js");
|
|
6
6
|
let node_crypto = require("node:crypto");
|
|
7
7
|
let node_child_process = require("node:child_process");
|
|
8
8
|
//#region src/ingress/tailscale-cli.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-
|
|
1
|
+
import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-hh5BU3VH.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { execFile } from "node:child_process";
|
|
4
4
|
import { promisify } from "node:util";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-tailscale",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.112",
|
|
4
4
|
"description": "Tailscale bundle for CamStack — joins the host to a tailnet (client) and exposes the hub via Serve/Funnel (ingress). Multi-entry npm package shipping 2 addons under a single bundle.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|