@camstack/addon-tailscale 1.2.111 → 1.2.113

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.
@@ -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-uDXws1yw.js");
27
+ const require_dist = require("../dist-QU6Z21ZC.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-B0V6gFgL.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability, r as BOOT_RECOVERY_BACKOFF_MS, t as meshNetworkCapability } from "../dist-BU3Zv12X.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-B1y0Fo1U.mjs
5362
+ //#region ../types/dist/sleep-Dk-BdnBf.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).
@@ -28957,6 +28957,26 @@ var PtzHomePresetSchema = object({
28957
28957
  "none"
28958
28958
  ])
28959
28959
  });
28960
+ /**
28961
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
28962
+ * after how long.
28963
+ *
28964
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
28965
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
28966
+ * written by the same command. Reading them apart means two round-trips that
28967
+ * can disagree.
28968
+ *
28969
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
28970
+ * the behaviour switched off, which is exactly what the vendor app leaves when
28971
+ * you turn the guard point off without clearing it. The first version of this
28972
+ * cap reported only the delay, so that state was invisible — a camera could be
28973
+ * configured to return after 68 seconds with no way to say whether it should
28974
+ * return at all.
28975
+ */
28976
+ var PtzHomeReturnSchema = object({
28977
+ enabled: boolean(),
28978
+ seconds: number().int()
28979
+ });
28960
28980
  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({
28961
28981
  deviceId: number(),
28962
28982
  presetId: string()
@@ -28979,6 +28999,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
28979
28999
  }), _void(), {
28980
29000
  kind: "mutation",
28981
29001
  auth: "admin"
29002
+ }), method(object({ deviceId: number() }), _void(), {
29003
+ kind: "mutation",
29004
+ auth: "admin"
29005
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
29006
+ deviceId: number(),
29007
+ enabled: boolean(),
29008
+ seconds: number().int().min(0).max(3600)
29009
+ }), _void(), {
29010
+ kind: "mutation",
29011
+ auth: "admin"
28982
29012
  }), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
28983
29013
  deviceId: number(),
28984
29014
  enabled: boolean()
@@ -35982,6 +36012,12 @@ Object.freeze({
35982
36012
  addonId: null,
35983
36013
  access: "create"
35984
36014
  },
36015
+ "ptz.captureHomeHere": {
36016
+ capName: "ptz",
36017
+ capScope: "device",
36018
+ addonId: null,
36019
+ access: "create"
36020
+ },
35985
36021
  "ptz.continuousMove": {
35986
36022
  capName: "ptz",
35987
36023
  capScope: "device",
@@ -36000,6 +36036,12 @@ Object.freeze({
36000
36036
  addonId: null,
36001
36037
  access: "view"
36002
36038
  },
36039
+ "ptz.getHomeReturn": {
36040
+ capName: "ptz",
36041
+ capScope: "device",
36042
+ addonId: null,
36043
+ access: "view"
36044
+ },
36003
36045
  "ptz.getOptions": {
36004
36046
  capName: "ptz",
36005
36047
  capScope: "device",
@@ -36054,6 +36096,12 @@ Object.freeze({
36054
36096
  addonId: null,
36055
36097
  access: "create"
36056
36098
  },
36099
+ "ptz.setHomeReturn": {
36100
+ capName: "ptz",
36101
+ capScope: "device",
36102
+ addonId: null,
36103
+ access: "create"
36104
+ },
36057
36105
  "ptz.stop": {
36058
36106
  capName: "ptz",
36059
36107
  capScope: "device",
@@ -39217,6 +39265,11 @@ Object.freeze({
39217
39265
  form: "single",
39218
39266
  optional: false
39219
39267
  }],
39268
+ "ptz.captureHomeHere": [{
39269
+ name: "deviceId",
39270
+ form: "single",
39271
+ optional: false
39272
+ }],
39220
39273
  "ptz.continuousMove": [{
39221
39274
  name: "deviceId",
39222
39275
  form: "single",
@@ -39232,6 +39285,11 @@ Object.freeze({
39232
39285
  form: "single",
39233
39286
  optional: false
39234
39287
  }],
39288
+ "ptz.getHomeReturn": [{
39289
+ name: "deviceId",
39290
+ form: "single",
39291
+ optional: false
39292
+ }],
39235
39293
  "ptz.getOptions": [{
39236
39294
  name: "deviceId",
39237
39295
  form: "single",
@@ -39277,6 +39335,11 @@ Object.freeze({
39277
39335
  form: "single",
39278
39336
  optional: false
39279
39337
  }],
39338
+ "ptz.setHomeReturn": [{
39339
+ name: "deviceId",
39340
+ form: "single",
39341
+ optional: false
39342
+ }],
39280
39343
  "ptz.stop": [{
39281
39344
  name: "deviceId",
39282
39345
  form: "single",
@@ -5359,7 +5359,7 @@ var ZodIssueCode = {
5359
5359
  var ZodFirstPartyTypeKind;
5360
5360
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5361
5361
  //#endregion
5362
- //#region ../types/dist/sleep-B1y0Fo1U.mjs
5362
+ //#region ../types/dist/sleep-Dk-BdnBf.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).
@@ -28957,6 +28957,26 @@ var PtzHomePresetSchema = object({
28957
28957
  "none"
28958
28958
  ])
28959
28959
  });
28960
+ /**
28961
+ * The camera's own idle-return behaviour: whether it goes home by itself, and
28962
+ * after how long.
28963
+ *
28964
+ * ONE shape, not two scalars, because on the camera they are ONE fact —
28965
+ * Reolink's guard point carries `benable` and `timeout` in the same element,
28966
+ * written by the same command. Reading them apart means two round-trips that
28967
+ * can disagree.
28968
+ *
28969
+ * `enabled` and `seconds` are INDEPENDENT: a camera can hold a 68 s delay with
28970
+ * the behaviour switched off, which is exactly what the vendor app leaves when
28971
+ * you turn the guard point off without clearing it. The first version of this
28972
+ * cap reported only the delay, so that state was invisible — a camera could be
28973
+ * configured to return after 68 seconds with no way to say whether it should
28974
+ * return at all.
28975
+ */
28976
+ var PtzHomeReturnSchema = object({
28977
+ enabled: boolean(),
28978
+ seconds: number().int()
28979
+ });
28960
28980
  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({
28961
28981
  deviceId: number(),
28962
28982
  presetId: string()
@@ -28979,6 +28999,16 @@ DeviceType.Camera, method(PtzMoveCommandSchema.extend({ deviceId: number() }), _
28979
28999
  }), _void(), {
28980
29000
  kind: "mutation",
28981
29001
  auth: "admin"
29002
+ }), method(object({ deviceId: number() }), _void(), {
29003
+ kind: "mutation",
29004
+ auth: "admin"
29005
+ }), method(object({ deviceId: number() }), PtzHomeReturnSchema.nullable()), method(object({
29006
+ deviceId: number(),
29007
+ enabled: boolean(),
29008
+ seconds: number().int().min(0).max(3600)
29009
+ }), _void(), {
29010
+ kind: "mutation",
29011
+ auth: "admin"
28982
29012
  }), method(object({ deviceId: number() }), PtzPositionSchema), method(object({
28983
29013
  deviceId: number(),
28984
29014
  enabled: boolean()
@@ -35982,6 +36012,12 @@ Object.freeze({
35982
36012
  addonId: null,
35983
36013
  access: "create"
35984
36014
  },
36015
+ "ptz.captureHomeHere": {
36016
+ capName: "ptz",
36017
+ capScope: "device",
36018
+ addonId: null,
36019
+ access: "create"
36020
+ },
35985
36021
  "ptz.continuousMove": {
35986
36022
  capName: "ptz",
35987
36023
  capScope: "device",
@@ -36000,6 +36036,12 @@ Object.freeze({
36000
36036
  addonId: null,
36001
36037
  access: "view"
36002
36038
  },
36039
+ "ptz.getHomeReturn": {
36040
+ capName: "ptz",
36041
+ capScope: "device",
36042
+ addonId: null,
36043
+ access: "view"
36044
+ },
36003
36045
  "ptz.getOptions": {
36004
36046
  capName: "ptz",
36005
36047
  capScope: "device",
@@ -36054,6 +36096,12 @@ Object.freeze({
36054
36096
  addonId: null,
36055
36097
  access: "create"
36056
36098
  },
36099
+ "ptz.setHomeReturn": {
36100
+ capName: "ptz",
36101
+ capScope: "device",
36102
+ addonId: null,
36103
+ access: "create"
36104
+ },
36057
36105
  "ptz.stop": {
36058
36106
  capName: "ptz",
36059
36107
  capScope: "device",
@@ -39217,6 +39265,11 @@ Object.freeze({
39217
39265
  form: "single",
39218
39266
  optional: false
39219
39267
  }],
39268
+ "ptz.captureHomeHere": [{
39269
+ name: "deviceId",
39270
+ form: "single",
39271
+ optional: false
39272
+ }],
39220
39273
  "ptz.continuousMove": [{
39221
39274
  name: "deviceId",
39222
39275
  form: "single",
@@ -39232,6 +39285,11 @@ Object.freeze({
39232
39285
  form: "single",
39233
39286
  optional: false
39234
39287
  }],
39288
+ "ptz.getHomeReturn": [{
39289
+ name: "deviceId",
39290
+ form: "single",
39291
+ optional: false
39292
+ }],
39235
39293
  "ptz.getOptions": [{
39236
39294
  name: "deviceId",
39237
39295
  form: "single",
@@ -39277,6 +39335,11 @@ Object.freeze({
39277
39335
  form: "single",
39278
39336
  optional: false
39279
39337
  }],
39338
+ "ptz.setHomeReturn": [{
39339
+ name: "deviceId",
39340
+ form: "single",
39341
+ optional: false
39342
+ }],
39280
39343
  "ptz.stop": [{
39281
39344
  name: "deviceId",
39282
39345
  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-uDXws1yw.js");
5
+ const require_dist = require("../dist-QU6Z21ZC.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-B0V6gFgL.mjs";
1
+ import { a as EventCategory, i as BaseAddon, n as networkAccessCapability } from "../dist-BU3Zv12X.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.111",
3
+ "version": "1.2.113",
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",