@camstack/addon-osd-manager 0.1.174 → 0.1.176
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/{MotionZonesSettings-BgWZ6XzA.mjs → MotionZonesSettings-CPKsdj2c.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-D9S1pJVU.mjs → PrivacyMaskSettings-Ctm1-2f1.mjs} +4 -4
- package/dist/{SceneMonitorEditor-rwUxImev.mjs → SceneMonitorEditor-CvSaLIzi.mjs} +3 -3
- package/dist/_stub.js +11 -11
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-BT-J4sUh.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-CKTxetEY.mjs} +3 -3
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BaCE42a6.mjs +26 -0
- package/dist/{hostInit-1uK9d0Vg.mjs → hostInit-DIbf4z_O.mjs} +2 -2
- package/dist/index.js +348 -77
- package/dist/index.mjs +348 -77
- package/dist/{player-overlays-BjZKK_0c.mjs → player-overlays-DQCBnVEz.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-CO8uheGu.mjs → responsive-DfDNxJT0.mjs} +1 -1
- package/dist/{scene-monitor-copy-BYrV3aHh.mjs → scene-monitor-copy-Cm4SNy1d.mjs} +1 -1
- package/dist/{square-BAgLrcRx.mjs → square-CzhgSdsX.mjs} +1 -1
- package/dist/{trash-2-BMlm83TB.mjs → trash-2-BLpS78eD.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-Dw0LOv1F.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-D3FVaAu5.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DMGYyDv5.mjs +0 -26
package/dist/index.js
CHANGED
|
@@ -5382,7 +5382,7 @@ var ZodIssueCode = {
|
|
|
5382
5382
|
var ZodFirstPartyTypeKind;
|
|
5383
5383
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5384
5384
|
//#endregion
|
|
5385
|
-
//#region ../types/dist/sleep-
|
|
5385
|
+
//#region ../types/dist/sleep-C16NCZR2.mjs
|
|
5386
5386
|
/**
|
|
5387
5387
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5388
5388
|
* window to float samples (D455).
|
|
@@ -10566,57 +10566,15 @@ var ClipSearchStrictnessSchema = _enum([
|
|
|
10566
10566
|
"balanced",
|
|
10567
10567
|
"strict"
|
|
10568
10568
|
]);
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
id: "person",
|
|
10572
|
-
name: "Person"
|
|
10573
|
-
},
|
|
10574
|
-
{
|
|
10575
|
-
id: "vehicle",
|
|
10576
|
-
name: "Vehicle"
|
|
10577
|
-
},
|
|
10578
|
-
{
|
|
10579
|
-
id: "animal",
|
|
10580
|
-
name: "Animal"
|
|
10581
|
-
},
|
|
10582
|
-
{
|
|
10583
|
-
id: "package",
|
|
10584
|
-
name: "Package"
|
|
10585
|
-
}
|
|
10586
|
-
].map((l) => l.id));
|
|
10587
|
-
var COCO_TO_MACRO = {
|
|
10588
|
-
mapping: {
|
|
10589
|
-
person: "person",
|
|
10590
|
-
bicycle: "vehicle",
|
|
10591
|
-
car: "vehicle",
|
|
10592
|
-
motorcycle: "vehicle",
|
|
10593
|
-
airplane: "vehicle",
|
|
10594
|
-
bus: "vehicle",
|
|
10595
|
-
train: "vehicle",
|
|
10596
|
-
truck: "vehicle",
|
|
10597
|
-
boat: "vehicle",
|
|
10598
|
-
bird: "animal",
|
|
10599
|
-
cat: "animal",
|
|
10600
|
-
dog: "animal",
|
|
10601
|
-
horse: "animal",
|
|
10602
|
-
sheep: "animal",
|
|
10603
|
-
cow: "animal",
|
|
10604
|
-
elephant: "animal",
|
|
10605
|
-
bear: "animal",
|
|
10606
|
-
zebra: "animal",
|
|
10607
|
-
giraffe: "animal",
|
|
10608
|
-
suitcase: "package",
|
|
10609
|
-
backpack: "package",
|
|
10610
|
-
handbag: "package"
|
|
10611
|
-
},
|
|
10612
|
-
preserveOriginal: false
|
|
10613
|
-
};
|
|
10614
|
-
/** Steps a root detector may declare it fills. */
|
|
10615
|
-
var FILLABLE_STEP_IDS = [
|
|
10569
|
+
/** Steps whose effect a root label can BE. */
|
|
10570
|
+
var LABEL_SUPPLY_STEP_IDS = [
|
|
10616
10571
|
"animal-classifier",
|
|
10617
10572
|
"vehicle-classifier",
|
|
10618
10573
|
"package-detection"
|
|
10619
10574
|
];
|
|
10575
|
+
/** Steps whose box a root detection can BE. */
|
|
10576
|
+
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
10577
|
+
[...LABEL_SUPPLY_STEP_IDS, ...CROP_SUPPLY_STEP_IDS];
|
|
10620
10578
|
var MODEL_FORMATS = [
|
|
10621
10579
|
"onnx",
|
|
10622
10580
|
"coreml",
|
|
@@ -10749,12 +10707,35 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
10749
10707
|
/** True when the weights or their data forbid commercial use. */
|
|
10750
10708
|
nonCommercial: boolean().optional()
|
|
10751
10709
|
}));
|
|
10752
|
-
/**
|
|
10753
|
-
|
|
10754
|
-
|
|
10710
|
+
/**
|
|
10711
|
+
* One step a ROOT detector can supply from its own output (D730) — see
|
|
10712
|
+
* `ModelCatalogEntry.suppliesSteps`.
|
|
10713
|
+
*
|
|
10714
|
+
* - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
|
|
10715
|
+
* the root's label to the step's vocabulary; `uncovered` is the vocabulary
|
|
10716
|
+
* the root cannot produce (shown as unavailable, never a blocker).
|
|
10717
|
+
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
10718
|
+
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
10719
|
+
* child of the `parentMacro` detection that contains it — never a track.
|
|
10720
|
+
*/
|
|
10721
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [object({
|
|
10722
|
+
kind: literal("label"),
|
|
10723
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
10755
10724
|
labelToEffect: record(string(), string()),
|
|
10756
10725
|
uncovered: array(string()).readonly()
|
|
10757
|
-
})
|
|
10726
|
+
}), object({
|
|
10727
|
+
kind: literal("crop"),
|
|
10728
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
10729
|
+
rootLabels: array(string()).readonly(),
|
|
10730
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
10731
|
+
childClass: _enum(["plate", "face"]),
|
|
10732
|
+
/**
|
|
10733
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
10734
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
10735
|
+
* stored by an import.
|
|
10736
|
+
*/
|
|
10737
|
+
rootInputPx: number().int().positive().optional()
|
|
10738
|
+
})]);
|
|
10758
10739
|
var ModelCatalogEntrySchema = object({
|
|
10759
10740
|
id: string(),
|
|
10760
10741
|
name: string(),
|
|
@@ -10881,15 +10862,15 @@ var ModelCatalogEntrySchema = object({
|
|
|
10881
10862
|
*/
|
|
10882
10863
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
10883
10864
|
/**
|
|
10884
|
-
* The pipeline steps this ROOT detector
|
|
10885
|
-
* its labels name
|
|
10886
|
-
*
|
|
10887
|
-
* labelmap by `
|
|
10888
|
-
*
|
|
10889
|
-
*
|
|
10890
|
-
* `
|
|
10865
|
+
* The pipeline steps this ROOT detector can supply from its own output
|
|
10866
|
+
* (D730): its labels name a step's effect (`deer` for `animal-classifier`)
|
|
10867
|
+
* or draw a step's box (`license_plate` for `plate-detection`). Computed at
|
|
10868
|
+
* import from THIS model's labelmap by `deriveRootSupplies`, never written
|
|
10869
|
+
* by hand and never assumed per family; a row without it is derived on read
|
|
10870
|
+
* (`rootSuppliesOf`). Whether a camera uses it is the step's own
|
|
10871
|
+
* `useRootModel` flag (`resolveRootSupply`).
|
|
10891
10872
|
*/
|
|
10892
|
-
|
|
10873
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
|
|
10893
10874
|
/**
|
|
10894
10875
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
10895
10876
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
@@ -20477,6 +20458,51 @@ var notificationOutputCapability = {
|
|
|
20477
20458
|
})
|
|
20478
20459
|
}
|
|
20479
20460
|
};
|
|
20461
|
+
new Set([
|
|
20462
|
+
{
|
|
20463
|
+
id: "person",
|
|
20464
|
+
name: "Person"
|
|
20465
|
+
},
|
|
20466
|
+
{
|
|
20467
|
+
id: "vehicle",
|
|
20468
|
+
name: "Vehicle"
|
|
20469
|
+
},
|
|
20470
|
+
{
|
|
20471
|
+
id: "animal",
|
|
20472
|
+
name: "Animal"
|
|
20473
|
+
},
|
|
20474
|
+
{
|
|
20475
|
+
id: "package",
|
|
20476
|
+
name: "Package"
|
|
20477
|
+
}
|
|
20478
|
+
].map((l) => l.id));
|
|
20479
|
+
var COCO_TO_MACRO = {
|
|
20480
|
+
mapping: {
|
|
20481
|
+
person: "person",
|
|
20482
|
+
bicycle: "vehicle",
|
|
20483
|
+
car: "vehicle",
|
|
20484
|
+
motorcycle: "vehicle",
|
|
20485
|
+
airplane: "vehicle",
|
|
20486
|
+
bus: "vehicle",
|
|
20487
|
+
train: "vehicle",
|
|
20488
|
+
truck: "vehicle",
|
|
20489
|
+
boat: "vehicle",
|
|
20490
|
+
bird: "animal",
|
|
20491
|
+
cat: "animal",
|
|
20492
|
+
dog: "animal",
|
|
20493
|
+
horse: "animal",
|
|
20494
|
+
sheep: "animal",
|
|
20495
|
+
cow: "animal",
|
|
20496
|
+
elephant: "animal",
|
|
20497
|
+
bear: "animal",
|
|
20498
|
+
zebra: "animal",
|
|
20499
|
+
giraffe: "animal",
|
|
20500
|
+
suitcase: "package",
|
|
20501
|
+
backpack: "package",
|
|
20502
|
+
handbag: "package"
|
|
20503
|
+
},
|
|
20504
|
+
preserveOriginal: false
|
|
20505
|
+
};
|
|
20480
20506
|
var AUDIO_MACRO_LABELS = [
|
|
20481
20507
|
{
|
|
20482
20508
|
id: "speech",
|
|
@@ -22927,7 +22953,7 @@ var NC_CONDITION_CATALOG = [
|
|
|
22927
22953
|
operator: "in",
|
|
22928
22954
|
appliesTo: ["immediate", "track-end"],
|
|
22929
22955
|
phase: "P1",
|
|
22930
|
-
description: "Only recognised people. Selecting NOBODY means every identity in the face gallery; selecting some narrows to those. Matched on the gallery id, so renaming a person does not break the rule. On Immediate delivery the name must already be known when an event is written — choose Immediate, grouped to wait for it
|
|
22956
|
+
description: "Only recognised people. Selecting NOBODY means every identity in the face gallery; selecting some narrows to those. Matched on the gallery id, so renaming a person does not break the rule. On Immediate delivery the name must already be known when an event is written — choose Immediate, grouped to wait for it."
|
|
22931
22957
|
},
|
|
22932
22958
|
{
|
|
22933
22959
|
id: "plates",
|
|
@@ -27211,6 +27237,34 @@ var pipelineAnalyticsCapability = {
|
|
|
27211
27237
|
}
|
|
27212
27238
|
};
|
|
27213
27239
|
/**
|
|
27240
|
+
* A root model's boxes standing in for one crop-kind step's own inference
|
|
27241
|
+
* (D730) — see `runPipeline.suppliedRoot`.
|
|
27242
|
+
*/
|
|
27243
|
+
var SuppliedRootOutputSchema = object({
|
|
27244
|
+
stepId: string(),
|
|
27245
|
+
/** The root model that drew the boxes — stamped on the result. */
|
|
27246
|
+
modelId: string(),
|
|
27247
|
+
detections: array(object({
|
|
27248
|
+
/** `[x1, y1, x2, y2]` in the pixels of the call's image. */
|
|
27249
|
+
bbox: tuple([
|
|
27250
|
+
number(),
|
|
27251
|
+
number(),
|
|
27252
|
+
number(),
|
|
27253
|
+
number()
|
|
27254
|
+
]),
|
|
27255
|
+
score: number(),
|
|
27256
|
+
/**
|
|
27257
|
+
* Five facial landmarks in the same pixels — a face the step's own
|
|
27258
|
+
* detector already re-found inside a root face box (D730), so its
|
|
27259
|
+
* embedder child aligns it exactly as it aligns any detected face.
|
|
27260
|
+
*/
|
|
27261
|
+
landmarks: array(object({
|
|
27262
|
+
x: number(),
|
|
27263
|
+
y: number()
|
|
27264
|
+
})).optional()
|
|
27265
|
+
})).min(1)
|
|
27266
|
+
});
|
|
27267
|
+
/**
|
|
27214
27268
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
27215
27269
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
27216
27270
|
* resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
|
|
@@ -27341,7 +27395,7 @@ var PipelineModelOptionSchema = object({
|
|
|
27341
27395
|
legacy: boolean().optional(),
|
|
27342
27396
|
provider: ModelProviderIdSchema.optional(),
|
|
27343
27397
|
defaultConfidence: number().optional(),
|
|
27344
|
-
|
|
27398
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional()
|
|
27345
27399
|
});
|
|
27346
27400
|
var ConfigFieldBridge = custom();
|
|
27347
27401
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -27745,7 +27799,16 @@ var pipelineExecutorCapability = {
|
|
|
27745
27799
|
* `device-not-servable`), and nothing reaches the camera's live
|
|
27746
27800
|
* trace stream. Absent ⇒ unchanged behaviour.
|
|
27747
27801
|
*/
|
|
27748
|
-
replay: literal(true).optional()
|
|
27802
|
+
replay: literal(true).optional(),
|
|
27803
|
+
/**
|
|
27804
|
+
* Root-supplied detections for the tree's ROOT step (D730). Set by
|
|
27805
|
+
* `runDetailSubtree` when the camera's root model supplies a crop-kind
|
|
27806
|
+
* step (a Frigate+ `license_plate` for `plate-detection`): the step is
|
|
27807
|
+
* NOT inferred, these boxes are its output, and its children (the plate
|
|
27808
|
+
* reader) run on them through their own crop policy. Boxes are in the
|
|
27809
|
+
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
27810
|
+
*/
|
|
27811
|
+
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
27749
27812
|
}), PipelineRunResultBridge, { kind: "mutation" }),
|
|
27750
27813
|
/**
|
|
27751
27814
|
* Batched run — N raw frames packed into one cap call. The provider
|
|
@@ -29058,7 +29121,22 @@ var pipelineRunnerCapability = {
|
|
|
29058
29121
|
*/
|
|
29059
29122
|
cropJpeg: string().optional(),
|
|
29060
29123
|
parent: DetailParentSchema,
|
|
29061
|
-
steps: array(string()).optional()
|
|
29124
|
+
steps: array(string()).optional(),
|
|
29125
|
+
/**
|
|
29126
|
+
* The camera's root model already drew this step's boxes (D730): a
|
|
29127
|
+
* `license_plate` inside the parent vehicle. The named step is NOT
|
|
29128
|
+
* inferred — these FRAME-space boxes are its output — and its
|
|
29129
|
+
* requested children (the plate reader) run on them. Absent ⇒ every
|
|
29130
|
+
* requested step infers as before.
|
|
29131
|
+
*/
|
|
29132
|
+
supplied: object({
|
|
29133
|
+
stepId: string(),
|
|
29134
|
+
modelId: string(),
|
|
29135
|
+
boxes: array(object({
|
|
29136
|
+
bbox: NativeCropBboxSchema,
|
|
29137
|
+
score: number()
|
|
29138
|
+
})).min(1)
|
|
29139
|
+
}).optional()
|
|
29062
29140
|
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }),
|
|
29063
29141
|
/**
|
|
29064
29142
|
* Run ONE enrichment step against caller-supplied pixels, with NO camera
|
|
@@ -33572,6 +33650,35 @@ var webrtcSessionCapability = {
|
|
|
33572
33650
|
alive: boolean()
|
|
33573
33651
|
})),
|
|
33574
33652
|
/**
|
|
33653
|
+
* The viewer's downlink probe, for ONE live session (D733).
|
|
33654
|
+
*
|
|
33655
|
+
* The player measures `/adaptive-probe` after the session's first decoded
|
|
33656
|
+
* frame (D635). It used to act on the reading itself, by opening a SECOND
|
|
33657
|
+
* session with `hints.downlinkMbps` — every adaptive live open became two
|
|
33658
|
+
* sessions, two ICE + DTLS handshakes and two server pipelines. It now
|
|
33659
|
+
* hands the measurement to the session it already has; the provider picks
|
|
33660
|
+
* the rung exactly as it would from an offer's hints (same viewport
|
|
33661
|
+
* ceiling) and moves the session there — in place when the negotiated
|
|
33662
|
+
* codec carries the new rendition, by the existing re-offer
|
|
33663
|
+
* (`getSessionState.pendingRenegotiation`) when it cannot.
|
|
33664
|
+
*
|
|
33665
|
+
* A MEASUREMENT, never a tier: the client does not choose. A probe only
|
|
33666
|
+
* raises the rung; lowering it stays the ladder's call on delivery.
|
|
33667
|
+
* `held` answers why nothing moved (`not-adaptive`, `pinned`,
|
|
33668
|
+
* `already-there`, `recorded`, …) — a client that gets ANY answer must not
|
|
33669
|
+
* fall back to a reconnect; only a provider that does not know the method
|
|
33670
|
+
* (an older hub) leaves the client its legacy second session.
|
|
33671
|
+
*/
|
|
33672
|
+
applyDownlinkProbe: method(object({
|
|
33673
|
+
deviceId: number().int().nonnegative(),
|
|
33674
|
+
sessionId: string(),
|
|
33675
|
+
downlinkMbps: number().nonnegative()
|
|
33676
|
+
}), object({
|
|
33677
|
+
outcome: _enum(["switching", "held"]),
|
|
33678
|
+
tier: CamProfileSchema.nullable(),
|
|
33679
|
+
reason: string()
|
|
33680
|
+
}), { kind: "mutation" }),
|
|
33681
|
+
/**
|
|
33575
33682
|
* The SERVER's half of the stream-debug overlay, for one live session.
|
|
33576
33683
|
*
|
|
33577
33684
|
* The client can measure its own transport (`getStats()`); it cannot see
|
|
@@ -37800,7 +37907,8 @@ var ConnectionEndpointSchema = object({
|
|
|
37800
37907
|
"lan-ipv6",
|
|
37801
37908
|
"public",
|
|
37802
37909
|
"loopback",
|
|
37803
|
-
"app-link"
|
|
37910
|
+
"app-link",
|
|
37911
|
+
"custom"
|
|
37804
37912
|
]),
|
|
37805
37913
|
/**
|
|
37806
37914
|
* Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
|
|
@@ -37902,6 +38010,76 @@ var ViewerEndpointsSchema = object({
|
|
|
37902
38010
|
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
37903
38011
|
resolved: array(string()).readonly()
|
|
37904
38012
|
});
|
|
38013
|
+
/**
|
|
38014
|
+
* DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
|
|
38015
|
+
* one release for addons built against it): `cluster` is the `agents` role,
|
|
38016
|
+
* `browser` the `signIn` role; `override` is the flagged address.
|
|
38017
|
+
*/
|
|
38018
|
+
var HubAddressSnapshotSchema = object({
|
|
38019
|
+
override: string().nullable(),
|
|
38020
|
+
resolved: string().nullable(),
|
|
38021
|
+
source: _enum([
|
|
38022
|
+
"override",
|
|
38023
|
+
"auto",
|
|
38024
|
+
"none"
|
|
38025
|
+
])
|
|
38026
|
+
});
|
|
38027
|
+
var HubAddressesSchema = object({
|
|
38028
|
+
cluster: HubAddressSnapshotSchema,
|
|
38029
|
+
browser: HubAddressSnapshotSchema
|
|
38030
|
+
});
|
|
38031
|
+
/**
|
|
38032
|
+
* What an address is used for (`hub-address.ts`). `viewer` is many-valued;
|
|
38033
|
+
* `notifications`, `agents` and `signIn` are carried by at most one address.
|
|
38034
|
+
*/
|
|
38035
|
+
var HubAddressRoleSchema = _enum([
|
|
38036
|
+
"viewer",
|
|
38037
|
+
"notifications",
|
|
38038
|
+
"agents",
|
|
38039
|
+
"signIn"
|
|
38040
|
+
]);
|
|
38041
|
+
var RoleSourceSchema = _enum([
|
|
38042
|
+
"flagged",
|
|
38043
|
+
"auto",
|
|
38044
|
+
"none"
|
|
38045
|
+
]);
|
|
38046
|
+
/** One single-valued role: the flagged address, the one in use, and why. */
|
|
38047
|
+
var HubAddressRoleResolutionSchema = object({
|
|
38048
|
+
/** The address carrying the flag, or null = automatic. */
|
|
38049
|
+
flagged: string().nullable(),
|
|
38050
|
+
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
38051
|
+
resolved: string().nullable(),
|
|
38052
|
+
source: RoleSourceSchema
|
|
38053
|
+
});
|
|
38054
|
+
var HubViewerResolutionSchema = object({
|
|
38055
|
+
/** The addresses flagged `viewer`, or empty = automatic. */
|
|
38056
|
+
flagged: array(string()).readonly(),
|
|
38057
|
+
/** What the apps race right now. */
|
|
38058
|
+
resolved: array(string()).readonly(),
|
|
38059
|
+
source: RoleSourceSchema
|
|
38060
|
+
});
|
|
38061
|
+
var HubAddressBookSchema = object({
|
|
38062
|
+
rows: array(ConnectionEndpointSchema.extend({
|
|
38063
|
+
/** In the hub's detected palette right now. */
|
|
38064
|
+
detected: boolean(),
|
|
38065
|
+
/** Entered by the operator (removable). */
|
|
38066
|
+
custom: boolean(),
|
|
38067
|
+
/** The roles explicitly flagged on this address. */
|
|
38068
|
+
flags: array(HubAddressRoleSchema).readonly(),
|
|
38069
|
+
/** The roles this address serves right now — flagged or automatic. */
|
|
38070
|
+
inUse: array(HubAddressRoleSchema).readonly(),
|
|
38071
|
+
/** The roles this address may be flagged with. */
|
|
38072
|
+
eligible: array(HubAddressRoleSchema).readonly()
|
|
38073
|
+
})).readonly(),
|
|
38074
|
+
roles: object({
|
|
38075
|
+
viewer: HubViewerResolutionSchema,
|
|
38076
|
+
notifications: HubAddressRoleResolutionSchema,
|
|
38077
|
+
agents: HubAddressRoleResolutionSchema,
|
|
38078
|
+
signIn: HubAddressRoleResolutionSchema
|
|
38079
|
+
}),
|
|
38080
|
+
/** The `hub=` an app link carries (D709), or null. */
|
|
38081
|
+
appLinkHub: string().nullable()
|
|
38082
|
+
});
|
|
37905
38083
|
var AllowedAddressesSchema = object({
|
|
37906
38084
|
/**
|
|
37907
38085
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -38014,26 +38192,78 @@ var localNetworkCapability = {
|
|
|
38014
38192
|
*/
|
|
38015
38193
|
getNotificationEndpoint: method(_void(), NotificationEndpointSchema),
|
|
38016
38194
|
/**
|
|
38017
|
-
*
|
|
38018
|
-
*
|
|
38019
|
-
*
|
|
38020
|
-
*
|
|
38195
|
+
* @deprecated Use `setAddressRole({ role: 'notifications', … })`. Kept so
|
|
38196
|
+
* an older admin UI keeps working: it writes the same `notifications`
|
|
38197
|
+
* flag, with the same validation. `baseUrl: null` restores automatic; an
|
|
38198
|
+
* address that is not detected becomes a custom address.
|
|
38021
38199
|
*/
|
|
38022
38200
|
setNotificationEndpoint: method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }),
|
|
38023
38201
|
/**
|
|
38024
|
-
* The
|
|
38025
|
-
*
|
|
38026
|
-
*
|
|
38027
|
-
*
|
|
38202
|
+
* The `viewer` role as shipped apps read it: the flagged addresses
|
|
38203
|
+
* (detected or custom), or empty for AUTO — every LAN IPv4 address plus
|
|
38204
|
+
* the public tunnel, never IPv6, mesh, loopback or a custom address.
|
|
38205
|
+
* `resolved` is the set as it stands right now; the custom ones in it are
|
|
38206
|
+
* also in `getConnectionEndpoints`, which the apps filter by it.
|
|
38028
38207
|
*/
|
|
38029
38208
|
getViewerEndpoints: method(_void(), ViewerEndpointsSchema),
|
|
38030
38209
|
/**
|
|
38031
|
-
*
|
|
38032
|
-
*
|
|
38033
|
-
*
|
|
38210
|
+
* @deprecated Use `setAddressRole({ role: 'viewer', … })`. Kept so an
|
|
38211
|
+
* older admin UI keeps working: it replaces the same `viewer` flags.
|
|
38212
|
+
* Empty `baseUrls` restores automatic.
|
|
38034
38213
|
*/
|
|
38035
38214
|
setViewerEndpoints: method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }),
|
|
38036
38215
|
/**
|
|
38216
|
+
* The Network page's Addresses table and every role's answer — the ONE
|
|
38217
|
+
* reading of "which address is this hub reached at, for what": detected
|
|
38218
|
+
* endpoints and custom addresses with their role flags, and per role the
|
|
38219
|
+
* flagged address, the one in use and whether it is automatic. Agent
|
|
38220
|
+
* deliveries, sign-in and LAN devices read `roles.agents` / `roles.signIn`
|
|
38221
|
+
* here; nothing ranks the palette itself. `scheme` is the one the caller
|
|
38222
|
+
* shows LAN rows in (as `getConnectionEndpoints`); agents and sign-in are
|
|
38223
|
+
* always resolved over the HTTPS palette.
|
|
38224
|
+
*/
|
|
38225
|
+
getAddresses: method(object({ scheme: _enum(["http", "https"]).optional() }).optional(), HubAddressBookSchema),
|
|
38226
|
+
/**
|
|
38227
|
+
* Add a custom address. Validated: an http(s) origin with a host, no
|
|
38228
|
+
* credentials, no path, never loopback — an invalid one is refused with
|
|
38229
|
+
* the reason and nothing is stored. Adding an address that already exists
|
|
38230
|
+
* only updates its label.
|
|
38231
|
+
*/
|
|
38232
|
+
addCustomAddress: method(object({
|
|
38233
|
+
baseUrl: string(),
|
|
38234
|
+
label: string().max(80)
|
|
38235
|
+
}), HubAddressBookSchema, {
|
|
38236
|
+
kind: "mutation",
|
|
38237
|
+
auth: "admin"
|
|
38238
|
+
}),
|
|
38239
|
+
/** Remove a custom address. Its role flags go with it (those roles turn automatic). */
|
|
38240
|
+
removeCustomAddress: method(object({ baseUrl: string() }), HubAddressBookSchema, {
|
|
38241
|
+
kind: "mutation",
|
|
38242
|
+
auth: "admin"
|
|
38243
|
+
}),
|
|
38244
|
+
/**
|
|
38245
|
+
* Flag (`enabled: true`) or unflag an address for a role. For a
|
|
38246
|
+
* single-valued role, flagging moves the flag off every other address.
|
|
38247
|
+
* `baseUrl: null` returns the role to automatic. The address must be a row
|
|
38248
|
+
* of the table (detected, custom, or the app link for notifications);
|
|
38249
|
+
* `signIn` on a plain-http address is refused unless `acceptInsecureHttp`.
|
|
38250
|
+
*/
|
|
38251
|
+
setAddressRole: method(object({
|
|
38252
|
+
role: HubAddressRoleSchema,
|
|
38253
|
+
baseUrl: string().nullable(),
|
|
38254
|
+
enabled: boolean(),
|
|
38255
|
+
acceptInsecureHttp: boolean().optional()
|
|
38256
|
+
}), HubAddressBookSchema, {
|
|
38257
|
+
kind: "mutation",
|
|
38258
|
+
auth: "admin"
|
|
38259
|
+
}),
|
|
38260
|
+
/**
|
|
38261
|
+
* @deprecated Read `getAddresses().roles.agents` / `.signIn`. Kept one
|
|
38262
|
+
* release so an addon built against the D729 amendment keeps resolving:
|
|
38263
|
+
* `cluster` = the `agents` role, `browser` = the `signIn` role.
|
|
38264
|
+
*/
|
|
38265
|
+
getHubAddresses: method(_void(), HubAddressesSchema),
|
|
38266
|
+
/**
|
|
38037
38267
|
* Read the operator's allowlist. Empty = "auto" (no filter). Used
|
|
38038
38268
|
* by the admin UI's address selector to seed its checkbox state.
|
|
38039
38269
|
*/
|
|
@@ -49166,12 +49396,24 @@ Object.freeze({
|
|
|
49166
49396
|
addonId: null,
|
|
49167
49397
|
access: "view"
|
|
49168
49398
|
},
|
|
49399
|
+
"localNetwork.addCustomAddress": {
|
|
49400
|
+
capName: "local-network",
|
|
49401
|
+
capScope: "system",
|
|
49402
|
+
addonId: null,
|
|
49403
|
+
access: "create"
|
|
49404
|
+
},
|
|
49169
49405
|
"localNetwork.downloadCa": {
|
|
49170
49406
|
capName: "local-network",
|
|
49171
49407
|
capScope: "system",
|
|
49172
49408
|
addonId: null,
|
|
49173
49409
|
access: "view"
|
|
49174
49410
|
},
|
|
49411
|
+
"localNetwork.getAddresses": {
|
|
49412
|
+
capName: "local-network",
|
|
49413
|
+
capScope: "system",
|
|
49414
|
+
addonId: null,
|
|
49415
|
+
access: "view"
|
|
49416
|
+
},
|
|
49175
49417
|
"localNetwork.getAllowedAddresses": {
|
|
49176
49418
|
capName: "local-network",
|
|
49177
49419
|
capScope: "system",
|
|
@@ -49184,6 +49426,12 @@ Object.freeze({
|
|
|
49184
49426
|
addonId: null,
|
|
49185
49427
|
access: "view"
|
|
49186
49428
|
},
|
|
49429
|
+
"localNetwork.getHubAddresses": {
|
|
49430
|
+
capName: "local-network",
|
|
49431
|
+
capScope: "system",
|
|
49432
|
+
addonId: null,
|
|
49433
|
+
access: "view"
|
|
49434
|
+
},
|
|
49187
49435
|
"localNetwork.getNotificationEndpoint": {
|
|
49188
49436
|
capName: "local-network",
|
|
49189
49437
|
capScope: "system",
|
|
@@ -49220,6 +49468,12 @@ Object.freeze({
|
|
|
49220
49468
|
addonId: null,
|
|
49221
49469
|
access: "create"
|
|
49222
49470
|
},
|
|
49471
|
+
"localNetwork.removeCustomAddress": {
|
|
49472
|
+
capName: "local-network",
|
|
49473
|
+
capScope: "system",
|
|
49474
|
+
addonId: null,
|
|
49475
|
+
access: "delete"
|
|
49476
|
+
},
|
|
49223
49477
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
49224
49478
|
capName: "local-network",
|
|
49225
49479
|
capScope: "system",
|
|
@@ -49232,6 +49486,12 @@ Object.freeze({
|
|
|
49232
49486
|
addonId: null,
|
|
49233
49487
|
access: "create"
|
|
49234
49488
|
},
|
|
49489
|
+
"localNetwork.setAddressRole": {
|
|
49490
|
+
capName: "local-network",
|
|
49491
|
+
capScope: "system",
|
|
49492
|
+
addonId: null,
|
|
49493
|
+
access: "create"
|
|
49494
|
+
},
|
|
49235
49495
|
"localNetwork.setAllowedAddresses": {
|
|
49236
49496
|
capName: "local-network",
|
|
49237
49497
|
capScope: "system",
|
|
@@ -53486,6 +53746,12 @@ Object.freeze({
|
|
|
53486
53746
|
addonId: null,
|
|
53487
53747
|
access: "create"
|
|
53488
53748
|
},
|
|
53749
|
+
"webrtcSession.applyDownlinkProbe": {
|
|
53750
|
+
capName: "webrtc-session",
|
|
53751
|
+
capScope: "device",
|
|
53752
|
+
addonId: null,
|
|
53753
|
+
access: "create"
|
|
53754
|
+
},
|
|
53489
53755
|
"webrtcSession.closeSession": {
|
|
53490
53756
|
capName: "webrtc-session",
|
|
53491
53757
|
capScope: "device",
|
|
@@ -57584,6 +57850,11 @@ Object.freeze({
|
|
|
57584
57850
|
form: "single",
|
|
57585
57851
|
optional: false
|
|
57586
57852
|
}],
|
|
57853
|
+
"webrtcSession.applyDownlinkProbe": [{
|
|
57854
|
+
name: "deviceId",
|
|
57855
|
+
form: "single",
|
|
57856
|
+
optional: false
|
|
57857
|
+
}],
|
|
57587
57858
|
"webrtcSession.closeSession": [{
|
|
57588
57859
|
name: "deviceId",
|
|
57589
57860
|
form: "single",
|
|
@@ -58197,7 +58468,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
58197
58468
|
{
|
|
58198
58469
|
name: "summarySection",
|
|
58199
58470
|
label: "Summary: this section",
|
|
58200
|
-
description: "The section a per-section summary row is about
|
|
58471
|
+
description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
|
|
58201
58472
|
example: "Batterie scariche",
|
|
58202
58473
|
group: "system",
|
|
58203
58474
|
families: ["rule"],
|