@camstack/addon-tailscale 1.2.106 → 1.2.108
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-JNv_Bx6K.js → dist-BBBDJ4_e.js} +187 -2
- package/dist/{dist-Cjjmvty_.mjs → dist-CW2jdX_8.mjs} +187 -2
- 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-BBBDJ4_e.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-CW2jdX_8.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";
|
|
@@ -12280,7 +12280,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12280
12280
|
* This is what lets one picker serve both the bypass and the full source
|
|
12281
12281
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12282
12282
|
*/
|
|
12283
|
-
allowTranscode: boolean().optional()
|
|
12283
|
+
allowTranscode: boolean().optional(),
|
|
12284
|
+
/**
|
|
12285
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12286
|
+
*
|
|
12287
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12288
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12289
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12290
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12291
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12292
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12293
|
+
*
|
|
12294
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12295
|
+
* here when it decides which source to BIND to a slot
|
|
12296
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12297
|
+
* could never bind them.
|
|
12298
|
+
*/
|
|
12299
|
+
requireProfileBound: boolean().optional()
|
|
12284
12300
|
}).readonly();
|
|
12285
12301
|
var PickStreamPreferencesSchema = object({
|
|
12286
12302
|
/**
|
|
@@ -12321,7 +12337,43 @@ var PickedCamStreamSchema = object({
|
|
|
12321
12337
|
*/
|
|
12322
12338
|
transcodes: boolean(),
|
|
12323
12339
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12324
|
-
reason: string()
|
|
12340
|
+
reason: string(),
|
|
12341
|
+
/**
|
|
12342
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12343
|
+
*
|
|
12344
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12345
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12346
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12347
|
+
* the same function a second time.
|
|
12348
|
+
*
|
|
12349
|
+
* Absent when the source has no slot, which a caller passing
|
|
12350
|
+
* `requireProfileBound` can never see.
|
|
12351
|
+
*/
|
|
12352
|
+
profile: CamProfileSchema.optional(),
|
|
12353
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12354
|
+
brokerId: string().optional(),
|
|
12355
|
+
/**
|
|
12356
|
+
* The broker restream URL to dial for this stream.
|
|
12357
|
+
*
|
|
12358
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12359
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12360
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12361
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12362
|
+
*/
|
|
12363
|
+
url: string().optional(),
|
|
12364
|
+
/**
|
|
12365
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12366
|
+
* from.
|
|
12367
|
+
*
|
|
12368
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12369
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12370
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12371
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12372
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12373
|
+
* are not interchangeable.
|
|
12374
|
+
*/
|
|
12375
|
+
fps: number().positive().optional(),
|
|
12376
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12325
12377
|
});
|
|
12326
12378
|
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
|
|
12327
12379
|
deviceId: number().int().nonnegative(),
|
|
@@ -13295,6 +13347,70 @@ var LocationIconAssignmentSchema = object({
|
|
|
13295
13347
|
locationKey: string(),
|
|
13296
13348
|
icon: LocationIconIdSchema
|
|
13297
13349
|
});
|
|
13350
|
+
/**
|
|
13351
|
+
* One (location, description) assignment as it travels.
|
|
13352
|
+
*
|
|
13353
|
+
* Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
|
|
13354
|
+
* reason: this lived for a while in the post-analysis addon's own settings,
|
|
13355
|
+
* keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
|
|
13356
|
+
* the Locations page carried the icon and silently orphaned the description —
|
|
13357
|
+
* two authorities for one thing, joined by two different rules. Now both hang
|
|
13358
|
+
* off the location itself, on `locationIconKey`.
|
|
13359
|
+
*/
|
|
13360
|
+
var LocationDescriptionAssignmentSchema = object({
|
|
13361
|
+
locationKey: string(),
|
|
13362
|
+
description: string()
|
|
13363
|
+
});
|
|
13364
|
+
/**
|
|
13365
|
+
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
13366
|
+
*
|
|
13367
|
+
* "Zona notte" holds every bedroom; "Zona giorno" the living room and the
|
|
13368
|
+
* kitchen. A camera belongs to exactly one location, and a location to at most
|
|
13369
|
+
* one zone, so a camera's zone is derived and never stored on the device: the
|
|
13370
|
+
* whole point of this entity is that grouping rooms touches no device row.
|
|
13371
|
+
*
|
|
13372
|
+
* ## Why not `zone`
|
|
13373
|
+
*
|
|
13374
|
+
* Because `zone` is already the most loaded word in this product: 612 source
|
|
13375
|
+
* files and 24 Italian strings where it means a DETECTION zone drawn on a
|
|
13376
|
+
* camera. The two are unrelated — one is a polygon in a frame, the other is a
|
|
13377
|
+
* set of rooms — and a reader who confuses them will look for a camera's
|
|
13378
|
+
* bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
|
|
13379
|
+
* word by calling the drawn one what it actually is: a detection zone.
|
|
13380
|
+
*
|
|
13381
|
+
* ## The key
|
|
13382
|
+
*
|
|
13383
|
+
* `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
|
|
13384
|
+
* use (`locationIconKey`). Membership and the icon both hang off it, so a
|
|
13385
|
+
* case-only rename keeps them, which is exactly the orphaning that cost us a
|
|
13386
|
+
* silently-dropped location description.
|
|
13387
|
+
*
|
|
13388
|
+
* The icon vocabulary is the location one, unchanged: a zone is drawn on the
|
|
13389
|
+
* same two surfaces by the same glyph map, so a second vocabulary would be a
|
|
13390
|
+
* second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
|
|
13391
|
+
*/
|
|
13392
|
+
/**
|
|
13393
|
+
* One zone as it travels: its key, the label the operator typed, its icon and
|
|
13394
|
+
* the locations inside it.
|
|
13395
|
+
*
|
|
13396
|
+
* The LABEL is carried alongside the key because the key is lossy on purpose —
|
|
13397
|
+
* a surface must show "Zona notte", not "zona notte". Locations are carried
|
|
13398
|
+
* here, rather than left to a second call, because every consumer wants both
|
|
13399
|
+
* at once and a viewer that asked twice could render a zone whose membership
|
|
13400
|
+
* it has not fetched yet.
|
|
13401
|
+
*
|
|
13402
|
+
* `icon: null` means nobody chose one, which is NOT the fallback pin: only one
|
|
13403
|
+
* of those two is a choice, and a picker has to draw them differently.
|
|
13404
|
+
*/
|
|
13405
|
+
var SiteZoneSchema = object({
|
|
13406
|
+
zoneKey: string(),
|
|
13407
|
+
label: string(),
|
|
13408
|
+
icon: LocationIconIdSchema.nullable(),
|
|
13409
|
+
/** Folded location keys, sorted. A location listed here need not be
|
|
13410
|
+
* REGISTERED — devices carry labels nobody registered, and those rooms are
|
|
13411
|
+
* the ones that most want grouping. */
|
|
13412
|
+
locationKeys: array(string())
|
|
13413
|
+
});
|
|
13298
13414
|
var ProviderStatusSchema = object({
|
|
13299
13415
|
connected: boolean(),
|
|
13300
13416
|
deviceCount: number(),
|
|
@@ -13812,6 +13928,33 @@ method(object({
|
|
|
13812
13928
|
}), _void(), {
|
|
13813
13929
|
kind: "mutation",
|
|
13814
13930
|
auth: "admin"
|
|
13931
|
+
}), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
|
|
13932
|
+
location: string(),
|
|
13933
|
+
description: string().max(400).nullable()
|
|
13934
|
+
}), _void(), {
|
|
13935
|
+
kind: "mutation",
|
|
13936
|
+
auth: "admin"
|
|
13937
|
+
}), method(_void(), array(SiteZoneSchema)), method(object({
|
|
13938
|
+
name: string(),
|
|
13939
|
+
icon: LocationIconIdSchema.nullable().optional()
|
|
13940
|
+
}), _void(), {
|
|
13941
|
+
kind: "mutation",
|
|
13942
|
+
auth: "admin"
|
|
13943
|
+
}), method(object({ name: string() }), _void(), {
|
|
13944
|
+
kind: "mutation",
|
|
13945
|
+
auth: "admin"
|
|
13946
|
+
}), method(object({
|
|
13947
|
+
from: string(),
|
|
13948
|
+
to: string()
|
|
13949
|
+
}), _void(), {
|
|
13950
|
+
kind: "mutation",
|
|
13951
|
+
auth: "admin"
|
|
13952
|
+
}), method(object({
|
|
13953
|
+
location: string(),
|
|
13954
|
+
zone: string().nullable()
|
|
13955
|
+
}), _void(), {
|
|
13956
|
+
kind: "mutation",
|
|
13957
|
+
auth: "admin"
|
|
13815
13958
|
}), method(object({
|
|
13816
13959
|
deviceId: number(),
|
|
13817
13960
|
disabled: boolean()
|
|
@@ -32713,6 +32856,12 @@ Object.freeze({
|
|
|
32713
32856
|
addonId: null,
|
|
32714
32857
|
access: "view"
|
|
32715
32858
|
},
|
|
32859
|
+
"deviceManager.listLocationDescriptions": {
|
|
32860
|
+
capName: "device-manager",
|
|
32861
|
+
capScope: "system",
|
|
32862
|
+
addonId: null,
|
|
32863
|
+
access: "view"
|
|
32864
|
+
},
|
|
32716
32865
|
"deviceManager.listLocationIcons": {
|
|
32717
32866
|
capName: "device-manager",
|
|
32718
32867
|
capScope: "system",
|
|
@@ -32731,6 +32880,12 @@ Object.freeze({
|
|
|
32731
32880
|
addonId: null,
|
|
32732
32881
|
access: "view"
|
|
32733
32882
|
},
|
|
32883
|
+
"deviceManager.listSiteZones": {
|
|
32884
|
+
capName: "device-manager",
|
|
32885
|
+
capScope: "system",
|
|
32886
|
+
addonId: null,
|
|
32887
|
+
access: "view"
|
|
32888
|
+
},
|
|
32734
32889
|
"deviceManager.listWrappersForCap": {
|
|
32735
32890
|
capName: "device-manager",
|
|
32736
32891
|
capScope: "system",
|
|
@@ -32815,12 +32970,24 @@ Object.freeze({
|
|
|
32815
32970
|
addonId: null,
|
|
32816
32971
|
access: "delete"
|
|
32817
32972
|
},
|
|
32973
|
+
"deviceManager.removeSiteZone": {
|
|
32974
|
+
capName: "device-manager",
|
|
32975
|
+
capScope: "system",
|
|
32976
|
+
addonId: null,
|
|
32977
|
+
access: "delete"
|
|
32978
|
+
},
|
|
32818
32979
|
"deviceManager.renameLocation": {
|
|
32819
32980
|
capName: "device-manager",
|
|
32820
32981
|
capScope: "system",
|
|
32821
32982
|
addonId: null,
|
|
32822
32983
|
access: "create"
|
|
32823
32984
|
},
|
|
32985
|
+
"deviceManager.renameSiteZone": {
|
|
32986
|
+
capName: "device-manager",
|
|
32987
|
+
capScope: "system",
|
|
32988
|
+
addonId: null,
|
|
32989
|
+
access: "create"
|
|
32990
|
+
},
|
|
32824
32991
|
"deviceManager.runDeviceAction": {
|
|
32825
32992
|
capName: "device-manager",
|
|
32826
32993
|
capScope: "system",
|
|
@@ -32863,12 +33030,24 @@ Object.freeze({
|
|
|
32863
33030
|
addonId: null,
|
|
32864
33031
|
access: "create"
|
|
32865
33032
|
},
|
|
33033
|
+
"deviceManager.setLocationDescription": {
|
|
33034
|
+
capName: "device-manager",
|
|
33035
|
+
capScope: "system",
|
|
33036
|
+
addonId: null,
|
|
33037
|
+
access: "create"
|
|
33038
|
+
},
|
|
32866
33039
|
"deviceManager.setLocationIcon": {
|
|
32867
33040
|
capName: "device-manager",
|
|
32868
33041
|
capScope: "system",
|
|
32869
33042
|
addonId: null,
|
|
32870
33043
|
access: "create"
|
|
32871
33044
|
},
|
|
33045
|
+
"deviceManager.setLocationZone": {
|
|
33046
|
+
capName: "device-manager",
|
|
33047
|
+
capScope: "system",
|
|
33048
|
+
addonId: null,
|
|
33049
|
+
access: "create"
|
|
33050
|
+
},
|
|
32872
33051
|
"deviceManager.setMetadata": {
|
|
32873
33052
|
capName: "device-manager",
|
|
32874
33053
|
capScope: "system",
|
|
@@ -32899,6 +33078,12 @@ Object.freeze({
|
|
|
32899
33078
|
addonId: null,
|
|
32900
33079
|
access: "create"
|
|
32901
33080
|
},
|
|
33081
|
+
"deviceManager.setSiteZone": {
|
|
33082
|
+
capName: "device-manager",
|
|
33083
|
+
capScope: "system",
|
|
33084
|
+
addonId: null,
|
|
33085
|
+
access: "create"
|
|
33086
|
+
},
|
|
32902
33087
|
"deviceManager.setStreamProfileMap": {
|
|
32903
33088
|
capName: "device-manager",
|
|
32904
33089
|
capScope: "system",
|
|
@@ -12280,7 +12280,23 @@ var PickStreamRequirementsSchema = object({
|
|
|
12280
12280
|
* This is what lets one picker serve both the bypass and the full source
|
|
12281
12281
|
* choice, instead of a consumer scoring privately when the bypass misses.
|
|
12282
12282
|
*/
|
|
12283
|
-
allowTranscode: boolean().optional()
|
|
12283
|
+
allowTranscode: boolean().optional(),
|
|
12284
|
+
/**
|
|
12285
|
+
* Consider ONLY streams the broker has bound to a profile slot.
|
|
12286
|
+
*
|
|
12287
|
+
* A consumer that dials the broker — which is every exporter, since none
|
|
12288
|
+
* of them may open the camera's own URL — can do nothing with a source
|
|
12289
|
+
* that has no slot: there is no restream to dial. Without this the picker
|
|
12290
|
+
* can name such a stream, and each consumer discovers the dead end for
|
|
12291
|
+
* itself: Alexa's `profileForCamStream` returns `null` and it quietly
|
|
12292
|
+
* falls back, and HomeKit would have had to grow the same function again.
|
|
12293
|
+
*
|
|
12294
|
+
* Default `false`, and deliberately so: the BROKER itself picks through
|
|
12295
|
+
* here when it decides which source to BIND to a slot
|
|
12296
|
+
* (`computeInitialAssignment`), and it must see the unbound ones or it
|
|
12297
|
+
* could never bind them.
|
|
12298
|
+
*/
|
|
12299
|
+
requireProfileBound: boolean().optional()
|
|
12284
12300
|
}).readonly();
|
|
12285
12301
|
var PickStreamPreferencesSchema = object({
|
|
12286
12302
|
/**
|
|
@@ -12321,7 +12337,43 @@ var PickedCamStreamSchema = object({
|
|
|
12321
12337
|
*/
|
|
12322
12338
|
transcodes: boolean(),
|
|
12323
12339
|
/** One-line explanation of why this stream won — for logs / debug UI. */
|
|
12324
|
-
reason: string()
|
|
12340
|
+
reason: string(),
|
|
12341
|
+
/**
|
|
12342
|
+
* The broker profile slot this source is bound to, when it is bound.
|
|
12343
|
+
*
|
|
12344
|
+
* Answered HERE because every consumer needs it and none of them can get it
|
|
12345
|
+
* from the `camStreamId` alone. Alexa wrote `profileForCamStream` for it —
|
|
12346
|
+
* a second cap read plus a `null` branch — and HomeKit was about to write
|
|
12347
|
+
* the same function a second time.
|
|
12348
|
+
*
|
|
12349
|
+
* Absent when the source has no slot, which a caller passing
|
|
12350
|
+
* `requireProfileBound` can never see.
|
|
12351
|
+
*/
|
|
12352
|
+
profile: CamProfileSchema.optional(),
|
|
12353
|
+
/** The broker id of that slot, for logs that must name what was dialled. */
|
|
12354
|
+
brokerId: string().optional(),
|
|
12355
|
+
/**
|
|
12356
|
+
* The broker restream URL to dial for this stream.
|
|
12357
|
+
*
|
|
12358
|
+
* An exporter must never open the camera's own URL — the broker is the one
|
|
12359
|
+
* that dials the camera, and every consumer goes through its restream. So
|
|
12360
|
+
* the picker answers with the thing a consumer may actually use, instead of
|
|
12361
|
+
* naming a source and leaving each caller to look the URL up.
|
|
12362
|
+
*/
|
|
12363
|
+
url: string().optional(),
|
|
12364
|
+
/**
|
|
12365
|
+
* Frames per second this stream really delivers, and where the number came
|
|
12366
|
+
* from.
|
|
12367
|
+
*
|
|
12368
|
+
* It is here because getting it wrong is expensive and silent: a HomeKit
|
|
12369
|
+
* accessory advertised 720p at 24 fps while the slot serving it ran at 9,
|
|
12370
|
+
* and the controller rendered nothing at all. The source is carried with the
|
|
12371
|
+
* value for the same reason the bitrate evidence is: `published` is what the
|
|
12372
|
+
* publisher declares and `measured` is what the broker observed, and they
|
|
12373
|
+
* are not interchangeable.
|
|
12374
|
+
*/
|
|
12375
|
+
fps: number().positive().optional(),
|
|
12376
|
+
fpsSource: _enum(["published", "measured"]).optional()
|
|
12325
12377
|
});
|
|
12326
12378
|
DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), array(CameraStreamSchema).readonly()), method(object({ deviceId: number().int().nonnegative() }), array(ProfileSlotSchema).readonly()), method(object({
|
|
12327
12379
|
deviceId: number().int().nonnegative(),
|
|
@@ -13295,6 +13347,70 @@ var LocationIconAssignmentSchema = object({
|
|
|
13295
13347
|
locationKey: string(),
|
|
13296
13348
|
icon: LocationIconIdSchema
|
|
13297
13349
|
});
|
|
13350
|
+
/**
|
|
13351
|
+
* One (location, description) assignment as it travels.
|
|
13352
|
+
*
|
|
13353
|
+
* Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
|
|
13354
|
+
* reason: this lived for a while in the post-analysis addon's own settings,
|
|
13355
|
+
* keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
|
|
13356
|
+
* the Locations page carried the icon and silently orphaned the description —
|
|
13357
|
+
* two authorities for one thing, joined by two different rules. Now both hang
|
|
13358
|
+
* off the location itself, on `locationIconKey`.
|
|
13359
|
+
*/
|
|
13360
|
+
var LocationDescriptionAssignmentSchema = object({
|
|
13361
|
+
locationKey: string(),
|
|
13362
|
+
description: string()
|
|
13363
|
+
});
|
|
13364
|
+
/**
|
|
13365
|
+
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
13366
|
+
*
|
|
13367
|
+
* "Zona notte" holds every bedroom; "Zona giorno" the living room and the
|
|
13368
|
+
* kitchen. A camera belongs to exactly one location, and a location to at most
|
|
13369
|
+
* one zone, so a camera's zone is derived and never stored on the device: the
|
|
13370
|
+
* whole point of this entity is that grouping rooms touches no device row.
|
|
13371
|
+
*
|
|
13372
|
+
* ## Why not `zone`
|
|
13373
|
+
*
|
|
13374
|
+
* Because `zone` is already the most loaded word in this product: 612 source
|
|
13375
|
+
* files and 24 Italian strings where it means a DETECTION zone drawn on a
|
|
13376
|
+
* camera. The two are unrelated — one is a polygon in a frame, the other is a
|
|
13377
|
+
* set of rooms — and a reader who confuses them will look for a camera's
|
|
13378
|
+
* bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
|
|
13379
|
+
* word by calling the drawn one what it actually is: a detection zone.
|
|
13380
|
+
*
|
|
13381
|
+
* ## The key
|
|
13382
|
+
*
|
|
13383
|
+
* `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
|
|
13384
|
+
* use (`locationIconKey`). Membership and the icon both hang off it, so a
|
|
13385
|
+
* case-only rename keeps them, which is exactly the orphaning that cost us a
|
|
13386
|
+
* silently-dropped location description.
|
|
13387
|
+
*
|
|
13388
|
+
* The icon vocabulary is the location one, unchanged: a zone is drawn on the
|
|
13389
|
+
* same two surfaces by the same glyph map, so a second vocabulary would be a
|
|
13390
|
+
* second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
|
|
13391
|
+
*/
|
|
13392
|
+
/**
|
|
13393
|
+
* One zone as it travels: its key, the label the operator typed, its icon and
|
|
13394
|
+
* the locations inside it.
|
|
13395
|
+
*
|
|
13396
|
+
* The LABEL is carried alongside the key because the key is lossy on purpose —
|
|
13397
|
+
* a surface must show "Zona notte", not "zona notte". Locations are carried
|
|
13398
|
+
* here, rather than left to a second call, because every consumer wants both
|
|
13399
|
+
* at once and a viewer that asked twice could render a zone whose membership
|
|
13400
|
+
* it has not fetched yet.
|
|
13401
|
+
*
|
|
13402
|
+
* `icon: null` means nobody chose one, which is NOT the fallback pin: only one
|
|
13403
|
+
* of those two is a choice, and a picker has to draw them differently.
|
|
13404
|
+
*/
|
|
13405
|
+
var SiteZoneSchema = object({
|
|
13406
|
+
zoneKey: string(),
|
|
13407
|
+
label: string(),
|
|
13408
|
+
icon: LocationIconIdSchema.nullable(),
|
|
13409
|
+
/** Folded location keys, sorted. A location listed here need not be
|
|
13410
|
+
* REGISTERED — devices carry labels nobody registered, and those rooms are
|
|
13411
|
+
* the ones that most want grouping. */
|
|
13412
|
+
locationKeys: array(string())
|
|
13413
|
+
});
|
|
13298
13414
|
var ProviderStatusSchema = object({
|
|
13299
13415
|
connected: boolean(),
|
|
13300
13416
|
deviceCount: number(),
|
|
@@ -13812,6 +13928,33 @@ method(object({
|
|
|
13812
13928
|
}), _void(), {
|
|
13813
13929
|
kind: "mutation",
|
|
13814
13930
|
auth: "admin"
|
|
13931
|
+
}), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
|
|
13932
|
+
location: string(),
|
|
13933
|
+
description: string().max(400).nullable()
|
|
13934
|
+
}), _void(), {
|
|
13935
|
+
kind: "mutation",
|
|
13936
|
+
auth: "admin"
|
|
13937
|
+
}), method(_void(), array(SiteZoneSchema)), method(object({
|
|
13938
|
+
name: string(),
|
|
13939
|
+
icon: LocationIconIdSchema.nullable().optional()
|
|
13940
|
+
}), _void(), {
|
|
13941
|
+
kind: "mutation",
|
|
13942
|
+
auth: "admin"
|
|
13943
|
+
}), method(object({ name: string() }), _void(), {
|
|
13944
|
+
kind: "mutation",
|
|
13945
|
+
auth: "admin"
|
|
13946
|
+
}), method(object({
|
|
13947
|
+
from: string(),
|
|
13948
|
+
to: string()
|
|
13949
|
+
}), _void(), {
|
|
13950
|
+
kind: "mutation",
|
|
13951
|
+
auth: "admin"
|
|
13952
|
+
}), method(object({
|
|
13953
|
+
location: string(),
|
|
13954
|
+
zone: string().nullable()
|
|
13955
|
+
}), _void(), {
|
|
13956
|
+
kind: "mutation",
|
|
13957
|
+
auth: "admin"
|
|
13815
13958
|
}), method(object({
|
|
13816
13959
|
deviceId: number(),
|
|
13817
13960
|
disabled: boolean()
|
|
@@ -32713,6 +32856,12 @@ Object.freeze({
|
|
|
32713
32856
|
addonId: null,
|
|
32714
32857
|
access: "view"
|
|
32715
32858
|
},
|
|
32859
|
+
"deviceManager.listLocationDescriptions": {
|
|
32860
|
+
capName: "device-manager",
|
|
32861
|
+
capScope: "system",
|
|
32862
|
+
addonId: null,
|
|
32863
|
+
access: "view"
|
|
32864
|
+
},
|
|
32716
32865
|
"deviceManager.listLocationIcons": {
|
|
32717
32866
|
capName: "device-manager",
|
|
32718
32867
|
capScope: "system",
|
|
@@ -32731,6 +32880,12 @@ Object.freeze({
|
|
|
32731
32880
|
addonId: null,
|
|
32732
32881
|
access: "view"
|
|
32733
32882
|
},
|
|
32883
|
+
"deviceManager.listSiteZones": {
|
|
32884
|
+
capName: "device-manager",
|
|
32885
|
+
capScope: "system",
|
|
32886
|
+
addonId: null,
|
|
32887
|
+
access: "view"
|
|
32888
|
+
},
|
|
32734
32889
|
"deviceManager.listWrappersForCap": {
|
|
32735
32890
|
capName: "device-manager",
|
|
32736
32891
|
capScope: "system",
|
|
@@ -32815,12 +32970,24 @@ Object.freeze({
|
|
|
32815
32970
|
addonId: null,
|
|
32816
32971
|
access: "delete"
|
|
32817
32972
|
},
|
|
32973
|
+
"deviceManager.removeSiteZone": {
|
|
32974
|
+
capName: "device-manager",
|
|
32975
|
+
capScope: "system",
|
|
32976
|
+
addonId: null,
|
|
32977
|
+
access: "delete"
|
|
32978
|
+
},
|
|
32818
32979
|
"deviceManager.renameLocation": {
|
|
32819
32980
|
capName: "device-manager",
|
|
32820
32981
|
capScope: "system",
|
|
32821
32982
|
addonId: null,
|
|
32822
32983
|
access: "create"
|
|
32823
32984
|
},
|
|
32985
|
+
"deviceManager.renameSiteZone": {
|
|
32986
|
+
capName: "device-manager",
|
|
32987
|
+
capScope: "system",
|
|
32988
|
+
addonId: null,
|
|
32989
|
+
access: "create"
|
|
32990
|
+
},
|
|
32824
32991
|
"deviceManager.runDeviceAction": {
|
|
32825
32992
|
capName: "device-manager",
|
|
32826
32993
|
capScope: "system",
|
|
@@ -32863,12 +33030,24 @@ Object.freeze({
|
|
|
32863
33030
|
addonId: null,
|
|
32864
33031
|
access: "create"
|
|
32865
33032
|
},
|
|
33033
|
+
"deviceManager.setLocationDescription": {
|
|
33034
|
+
capName: "device-manager",
|
|
33035
|
+
capScope: "system",
|
|
33036
|
+
addonId: null,
|
|
33037
|
+
access: "create"
|
|
33038
|
+
},
|
|
32866
33039
|
"deviceManager.setLocationIcon": {
|
|
32867
33040
|
capName: "device-manager",
|
|
32868
33041
|
capScope: "system",
|
|
32869
33042
|
addonId: null,
|
|
32870
33043
|
access: "create"
|
|
32871
33044
|
},
|
|
33045
|
+
"deviceManager.setLocationZone": {
|
|
33046
|
+
capName: "device-manager",
|
|
33047
|
+
capScope: "system",
|
|
33048
|
+
addonId: null,
|
|
33049
|
+
access: "create"
|
|
33050
|
+
},
|
|
32872
33051
|
"deviceManager.setMetadata": {
|
|
32873
33052
|
capName: "device-manager",
|
|
32874
33053
|
capScope: "system",
|
|
@@ -32899,6 +33078,12 @@ Object.freeze({
|
|
|
32899
33078
|
addonId: null,
|
|
32900
33079
|
access: "create"
|
|
32901
33080
|
},
|
|
33081
|
+
"deviceManager.setSiteZone": {
|
|
33082
|
+
capName: "device-manager",
|
|
33083
|
+
capScope: "system",
|
|
33084
|
+
addonId: null,
|
|
33085
|
+
access: "create"
|
|
33086
|
+
},
|
|
32902
33087
|
"deviceManager.setStreamProfileMap": {
|
|
32903
33088
|
capName: "device-manager",
|
|
32904
33089
|
capScope: "system",
|
|
@@ -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-BBBDJ4_e.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-CW2jdX_8.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.108",
|
|
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",
|