@camstack/addon-auth 1.2.127 → 1.2.129
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/{dist-CrTS14S8.js → hub-browser-origin-Cd5W-H0b.js} +307 -67
- package/dist/{dist-UznM2RaH.mjs → hub-browser-origin-lAiHaCMe.mjs} +302 -68
- package/dist/magic-link/auth-magic-link.addon.js +13 -13
- package/dist/magic-link/auth-magic-link.addon.mjs +5 -5
- package/dist/oidc/auth-oidc.addon.js +16 -14
- package/dist/oidc/auth-oidc.addon.mjs +8 -6
- package/dist/webauthn/_stub.js +1 -1
- package/dist/webauthn/{_virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-DLh4dk7u.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_auth_webauthn_widgets-tSRn6o3N.mjs} +3 -3
- package/dist/webauthn/_virtual_mf___mfe_internal__addon_auth_webauthn_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Bifweq9M.mjs +26 -0
- package/dist/webauthn/auth-webauthn.addon.js +40 -32
- package/dist/webauthn/auth-webauthn.addon.mjs +27 -19
- package/dist/webauthn/{hostInit-6Xuu_16a.mjs → hostInit-BXYkXOBq.mjs} +3 -3
- package/dist/webauthn/remoteEntry.js +1 -1
- package/package.json +1 -1
- package/dist/webauthn/_virtual_mf___mfe_internal__addon_auth_webauthn_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BtyGSrb1.mjs +0 -26
|
@@ -5379,7 +5379,7 @@ var ZodIssueCode = {
|
|
|
5379
5379
|
var ZodFirstPartyTypeKind;
|
|
5380
5380
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5381
5381
|
//#endregion
|
|
5382
|
-
//#region ../types/dist/sleep-
|
|
5382
|
+
//#region ../types/dist/sleep-C16NCZR2.mjs
|
|
5383
5383
|
/**
|
|
5384
5384
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5385
5385
|
* window to float samples (D455).
|
|
@@ -10578,57 +10578,15 @@ var ClipSearchStrictnessSchema = _enum([
|
|
|
10578
10578
|
"balanced",
|
|
10579
10579
|
"strict"
|
|
10580
10580
|
]);
|
|
10581
|
-
|
|
10582
|
-
|
|
10583
|
-
id: "person",
|
|
10584
|
-
name: "Person"
|
|
10585
|
-
},
|
|
10586
|
-
{
|
|
10587
|
-
id: "vehicle",
|
|
10588
|
-
name: "Vehicle"
|
|
10589
|
-
},
|
|
10590
|
-
{
|
|
10591
|
-
id: "animal",
|
|
10592
|
-
name: "Animal"
|
|
10593
|
-
},
|
|
10594
|
-
{
|
|
10595
|
-
id: "package",
|
|
10596
|
-
name: "Package"
|
|
10597
|
-
}
|
|
10598
|
-
].map((l) => l.id));
|
|
10599
|
-
var COCO_TO_MACRO = {
|
|
10600
|
-
mapping: {
|
|
10601
|
-
person: "person",
|
|
10602
|
-
bicycle: "vehicle",
|
|
10603
|
-
car: "vehicle",
|
|
10604
|
-
motorcycle: "vehicle",
|
|
10605
|
-
airplane: "vehicle",
|
|
10606
|
-
bus: "vehicle",
|
|
10607
|
-
train: "vehicle",
|
|
10608
|
-
truck: "vehicle",
|
|
10609
|
-
boat: "vehicle",
|
|
10610
|
-
bird: "animal",
|
|
10611
|
-
cat: "animal",
|
|
10612
|
-
dog: "animal",
|
|
10613
|
-
horse: "animal",
|
|
10614
|
-
sheep: "animal",
|
|
10615
|
-
cow: "animal",
|
|
10616
|
-
elephant: "animal",
|
|
10617
|
-
bear: "animal",
|
|
10618
|
-
zebra: "animal",
|
|
10619
|
-
giraffe: "animal",
|
|
10620
|
-
suitcase: "package",
|
|
10621
|
-
backpack: "package",
|
|
10622
|
-
handbag: "package"
|
|
10623
|
-
},
|
|
10624
|
-
preserveOriginal: false
|
|
10625
|
-
};
|
|
10626
|
-
/** Steps a root detector may declare it fills. */
|
|
10627
|
-
var FILLABLE_STEP_IDS = [
|
|
10581
|
+
/** Steps whose effect a root label can BE. */
|
|
10582
|
+
var LABEL_SUPPLY_STEP_IDS = [
|
|
10628
10583
|
"animal-classifier",
|
|
10629
10584
|
"vehicle-classifier",
|
|
10630
10585
|
"package-detection"
|
|
10631
10586
|
];
|
|
10587
|
+
/** Steps whose box a root detection can BE. */
|
|
10588
|
+
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
10589
|
+
[...LABEL_SUPPLY_STEP_IDS, ...CROP_SUPPLY_STEP_IDS];
|
|
10632
10590
|
var MODEL_FORMATS = [
|
|
10633
10591
|
"onnx",
|
|
10634
10592
|
"coreml",
|
|
@@ -10761,12 +10719,35 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
10761
10719
|
/** True when the weights or their data forbid commercial use. */
|
|
10762
10720
|
nonCommercial: boolean().optional()
|
|
10763
10721
|
}));
|
|
10764
|
-
/**
|
|
10765
|
-
|
|
10766
|
-
|
|
10722
|
+
/**
|
|
10723
|
+
* One step a ROOT detector can supply from its own output (D730) — see
|
|
10724
|
+
* `ModelCatalogEntry.suppliesSteps`.
|
|
10725
|
+
*
|
|
10726
|
+
* - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
|
|
10727
|
+
* the root's label to the step's vocabulary; `uncovered` is the vocabulary
|
|
10728
|
+
* the root cannot produce (shown as unavailable, never a blocker).
|
|
10729
|
+
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
10730
|
+
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
10731
|
+
* child of the `parentMacro` detection that contains it — never a track.
|
|
10732
|
+
*/
|
|
10733
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [object({
|
|
10734
|
+
kind: literal("label"),
|
|
10735
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
10767
10736
|
labelToEffect: record(string(), string()),
|
|
10768
10737
|
uncovered: array(string()).readonly()
|
|
10769
|
-
})
|
|
10738
|
+
}), object({
|
|
10739
|
+
kind: literal("crop"),
|
|
10740
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
10741
|
+
rootLabels: array(string()).readonly(),
|
|
10742
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
10743
|
+
childClass: _enum(["plate", "face"]),
|
|
10744
|
+
/**
|
|
10745
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
10746
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
10747
|
+
* stored by an import.
|
|
10748
|
+
*/
|
|
10749
|
+
rootInputPx: number().int().positive().optional()
|
|
10750
|
+
})]);
|
|
10770
10751
|
var ModelCatalogEntrySchema = object({
|
|
10771
10752
|
id: string(),
|
|
10772
10753
|
name: string(),
|
|
@@ -10893,15 +10874,15 @@ var ModelCatalogEntrySchema = object({
|
|
|
10893
10874
|
*/
|
|
10894
10875
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
10895
10876
|
/**
|
|
10896
|
-
* The pipeline steps this ROOT detector
|
|
10897
|
-
* its labels name
|
|
10898
|
-
*
|
|
10899
|
-
* labelmap by `
|
|
10900
|
-
*
|
|
10901
|
-
*
|
|
10902
|
-
* `
|
|
10877
|
+
* The pipeline steps this ROOT detector can supply from its own output
|
|
10878
|
+
* (D730): its labels name a step's effect (`deer` for `animal-classifier`)
|
|
10879
|
+
* or draw a step's box (`license_plate` for `plate-detection`). Computed at
|
|
10880
|
+
* import from THIS model's labelmap by `deriveRootSupplies`, never written
|
|
10881
|
+
* by hand and never assumed per family; a row without it is derived on read
|
|
10882
|
+
* (`rootSuppliesOf`). Whether a camera uses it is the step's own
|
|
10883
|
+
* `useRootModel` flag (`resolveRootSupply`).
|
|
10903
10884
|
*/
|
|
10904
|
-
|
|
10885
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
|
|
10905
10886
|
/**
|
|
10906
10887
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
10907
10888
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
@@ -17882,6 +17863,51 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
17882
17863
|
kind: "mutation",
|
|
17883
17864
|
auth: "admin"
|
|
17884
17865
|
});
|
|
17866
|
+
new Set([
|
|
17867
|
+
{
|
|
17868
|
+
id: "person",
|
|
17869
|
+
name: "Person"
|
|
17870
|
+
},
|
|
17871
|
+
{
|
|
17872
|
+
id: "vehicle",
|
|
17873
|
+
name: "Vehicle"
|
|
17874
|
+
},
|
|
17875
|
+
{
|
|
17876
|
+
id: "animal",
|
|
17877
|
+
name: "Animal"
|
|
17878
|
+
},
|
|
17879
|
+
{
|
|
17880
|
+
id: "package",
|
|
17881
|
+
name: "Package"
|
|
17882
|
+
}
|
|
17883
|
+
].map((l) => l.id));
|
|
17884
|
+
var COCO_TO_MACRO = {
|
|
17885
|
+
mapping: {
|
|
17886
|
+
person: "person",
|
|
17887
|
+
bicycle: "vehicle",
|
|
17888
|
+
car: "vehicle",
|
|
17889
|
+
motorcycle: "vehicle",
|
|
17890
|
+
airplane: "vehicle",
|
|
17891
|
+
bus: "vehicle",
|
|
17892
|
+
train: "vehicle",
|
|
17893
|
+
truck: "vehicle",
|
|
17894
|
+
boat: "vehicle",
|
|
17895
|
+
bird: "animal",
|
|
17896
|
+
cat: "animal",
|
|
17897
|
+
dog: "animal",
|
|
17898
|
+
horse: "animal",
|
|
17899
|
+
sheep: "animal",
|
|
17900
|
+
cow: "animal",
|
|
17901
|
+
elephant: "animal",
|
|
17902
|
+
bear: "animal",
|
|
17903
|
+
zebra: "animal",
|
|
17904
|
+
giraffe: "animal",
|
|
17905
|
+
suitcase: "package",
|
|
17906
|
+
backpack: "package",
|
|
17907
|
+
handbag: "package"
|
|
17908
|
+
},
|
|
17909
|
+
preserveOriginal: false
|
|
17910
|
+
};
|
|
17885
17911
|
var AUDIO_MACRO_LABELS = [
|
|
17886
17912
|
{
|
|
17887
17913
|
id: "speech",
|
|
@@ -18639,6 +18665,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
18639
18665
|
"stream-offline",
|
|
18640
18666
|
"node-online",
|
|
18641
18667
|
"node-offline",
|
|
18668
|
+
"node-restarting",
|
|
18669
|
+
"node-updating",
|
|
18642
18670
|
"node-inference-unavailable",
|
|
18643
18671
|
"detection-blind",
|
|
18644
18672
|
"addon-crash-loop",
|
|
@@ -23156,6 +23184,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
23156
23184
|
timestamp: number()
|
|
23157
23185
|
});
|
|
23158
23186
|
/**
|
|
23187
|
+
* A root model's boxes standing in for one crop-kind step's own inference
|
|
23188
|
+
* (D730) — see `runPipeline.suppliedRoot`.
|
|
23189
|
+
*/
|
|
23190
|
+
var SuppliedRootOutputSchema = object({
|
|
23191
|
+
stepId: string(),
|
|
23192
|
+
/** The root model that drew the boxes — stamped on the result. */
|
|
23193
|
+
modelId: string(),
|
|
23194
|
+
detections: array(object({
|
|
23195
|
+
/** `[x1, y1, x2, y2]` in the pixels of the call's image. */
|
|
23196
|
+
bbox: tuple([
|
|
23197
|
+
number(),
|
|
23198
|
+
number(),
|
|
23199
|
+
number(),
|
|
23200
|
+
number()
|
|
23201
|
+
]),
|
|
23202
|
+
score: number(),
|
|
23203
|
+
/**
|
|
23204
|
+
* Five facial landmarks in the same pixels — a face the step's own
|
|
23205
|
+
* detector already re-found inside a root face box (D730), so its
|
|
23206
|
+
* embedder child aligns it exactly as it aligns any detected face.
|
|
23207
|
+
*/
|
|
23208
|
+
landmarks: array(object({
|
|
23209
|
+
x: number(),
|
|
23210
|
+
y: number()
|
|
23211
|
+
})).optional()
|
|
23212
|
+
})).min(1)
|
|
23213
|
+
});
|
|
23214
|
+
/**
|
|
23159
23215
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
23160
23216
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
23161
23217
|
* resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
|
|
@@ -23286,7 +23342,7 @@ var PipelineModelOptionSchema = object({
|
|
|
23286
23342
|
legacy: boolean().optional(),
|
|
23287
23343
|
provider: ModelProviderIdSchema.optional(),
|
|
23288
23344
|
defaultConfidence: number().optional(),
|
|
23289
|
-
|
|
23345
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional()
|
|
23290
23346
|
});
|
|
23291
23347
|
var ConfigFieldBridge = custom();
|
|
23292
23348
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -23554,7 +23610,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23554
23610
|
* `device-not-servable`), and nothing reaches the camera's live
|
|
23555
23611
|
* trace stream. Absent ⇒ unchanged behaviour.
|
|
23556
23612
|
*/
|
|
23557
|
-
replay: literal(true).optional()
|
|
23613
|
+
replay: literal(true).optional(),
|
|
23614
|
+
/**
|
|
23615
|
+
* Root-supplied detections for the tree's ROOT step (D730). Set by
|
|
23616
|
+
* `runDetailSubtree` when the camera's root model supplies a crop-kind
|
|
23617
|
+
* step (a Frigate+ `license_plate` for `plate-detection`): the step is
|
|
23618
|
+
* NOT inferred, these boxes are its output, and its children (the plate
|
|
23619
|
+
* reader) run on them through their own crop policy. Boxes are in the
|
|
23620
|
+
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
23621
|
+
*/
|
|
23622
|
+
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
23558
23623
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
23559
23624
|
steps: array(PipelineStepInputSchema).min(1),
|
|
23560
23625
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
@@ -24656,7 +24721,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
24656
24721
|
*/
|
|
24657
24722
|
cropJpeg: string().optional(),
|
|
24658
24723
|
parent: DetailParentSchema,
|
|
24659
|
-
steps: array(string()).optional()
|
|
24724
|
+
steps: array(string()).optional(),
|
|
24725
|
+
/**
|
|
24726
|
+
* The camera's root model already drew this step's boxes (D730): a
|
|
24727
|
+
* `license_plate` inside the parent vehicle. The named step is NOT
|
|
24728
|
+
* inferred — these FRAME-space boxes are its output — and its
|
|
24729
|
+
* requested children (the plate reader) run on them. Absent ⇒ every
|
|
24730
|
+
* requested step infers as before.
|
|
24731
|
+
*/
|
|
24732
|
+
supplied: object({
|
|
24733
|
+
stepId: string(),
|
|
24734
|
+
modelId: string(),
|
|
24735
|
+
boxes: array(object({
|
|
24736
|
+
bbox: NativeCropBboxSchema,
|
|
24737
|
+
score: number()
|
|
24738
|
+
})).min(1)
|
|
24739
|
+
}).optional()
|
|
24660
24740
|
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
|
|
24661
24741
|
/** Catalog step id, e.g. `clip-embedding`. */
|
|
24662
24742
|
stepId: string(),
|
|
@@ -27992,6 +28072,14 @@ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), ar
|
|
|
27992
28072
|
*/
|
|
27993
28073
|
alive: boolean()
|
|
27994
28074
|
})), method(object({
|
|
28075
|
+
deviceId: number().int().nonnegative(),
|
|
28076
|
+
sessionId: string(),
|
|
28077
|
+
downlinkMbps: number().nonnegative()
|
|
28078
|
+
}), object({
|
|
28079
|
+
outcome: _enum(["switching", "held"]),
|
|
28080
|
+
tier: CamProfileSchema.nullable(),
|
|
28081
|
+
reason: string()
|
|
28082
|
+
}), { kind: "mutation" }), method(object({
|
|
27995
28083
|
deviceId: number().int().nonnegative(),
|
|
27996
28084
|
sessionId: string()
|
|
27997
28085
|
}), WebrtcSessionDebugSchema, { kind: "query" });
|
|
@@ -30667,7 +30755,8 @@ var ConnectionEndpointSchema = object({
|
|
|
30667
30755
|
"lan-ipv6",
|
|
30668
30756
|
"public",
|
|
30669
30757
|
"loopback",
|
|
30670
|
-
"app-link"
|
|
30758
|
+
"app-link",
|
|
30759
|
+
"custom"
|
|
30671
30760
|
]),
|
|
30672
30761
|
/**
|
|
30673
30762
|
* Originating-interface kind — `lan`/`wifi`/`docker`/`vpn`/`other`/
|
|
@@ -30769,6 +30858,76 @@ var ViewerEndpointsSchema = object({
|
|
|
30769
30858
|
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
30770
30859
|
resolved: array(string()).readonly()
|
|
30771
30860
|
});
|
|
30861
|
+
/**
|
|
30862
|
+
* DEPRECATED compatibility shape of `getHubAddresses` (D729 amendment, kept
|
|
30863
|
+
* one release for addons built against it): `cluster` is the `agents` role,
|
|
30864
|
+
* `browser` the `signIn` role; `override` is the flagged address.
|
|
30865
|
+
*/
|
|
30866
|
+
var HubAddressSnapshotSchema = object({
|
|
30867
|
+
override: string().nullable(),
|
|
30868
|
+
resolved: string().nullable(),
|
|
30869
|
+
source: _enum([
|
|
30870
|
+
"override",
|
|
30871
|
+
"auto",
|
|
30872
|
+
"none"
|
|
30873
|
+
])
|
|
30874
|
+
});
|
|
30875
|
+
var HubAddressesSchema = object({
|
|
30876
|
+
cluster: HubAddressSnapshotSchema,
|
|
30877
|
+
browser: HubAddressSnapshotSchema
|
|
30878
|
+
});
|
|
30879
|
+
/**
|
|
30880
|
+
* What an address is used for (`hub-address.ts`). `viewer` is many-valued;
|
|
30881
|
+
* `notifications`, `agents` and `signIn` are carried by at most one address.
|
|
30882
|
+
*/
|
|
30883
|
+
var HubAddressRoleSchema = _enum([
|
|
30884
|
+
"viewer",
|
|
30885
|
+
"notifications",
|
|
30886
|
+
"agents",
|
|
30887
|
+
"signIn"
|
|
30888
|
+
]);
|
|
30889
|
+
var RoleSourceSchema = _enum([
|
|
30890
|
+
"flagged",
|
|
30891
|
+
"auto",
|
|
30892
|
+
"none"
|
|
30893
|
+
]);
|
|
30894
|
+
/** One single-valued role: the flagged address, the one in use, and why. */
|
|
30895
|
+
var HubAddressRoleResolutionSchema = object({
|
|
30896
|
+
/** The address carrying the flag, or null = automatic. */
|
|
30897
|
+
flagged: string().nullable(),
|
|
30898
|
+
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
30899
|
+
resolved: string().nullable(),
|
|
30900
|
+
source: RoleSourceSchema
|
|
30901
|
+
});
|
|
30902
|
+
var HubViewerResolutionSchema = object({
|
|
30903
|
+
/** The addresses flagged `viewer`, or empty = automatic. */
|
|
30904
|
+
flagged: array(string()).readonly(),
|
|
30905
|
+
/** What the apps race right now. */
|
|
30906
|
+
resolved: array(string()).readonly(),
|
|
30907
|
+
source: RoleSourceSchema
|
|
30908
|
+
});
|
|
30909
|
+
var HubAddressBookSchema = object({
|
|
30910
|
+
rows: array(ConnectionEndpointSchema.extend({
|
|
30911
|
+
/** In the hub's detected palette right now. */
|
|
30912
|
+
detected: boolean(),
|
|
30913
|
+
/** Entered by the operator (removable). */
|
|
30914
|
+
custom: boolean(),
|
|
30915
|
+
/** The roles explicitly flagged on this address. */
|
|
30916
|
+
flags: array(HubAddressRoleSchema).readonly(),
|
|
30917
|
+
/** The roles this address serves right now — flagged or automatic. */
|
|
30918
|
+
inUse: array(HubAddressRoleSchema).readonly(),
|
|
30919
|
+
/** The roles this address may be flagged with. */
|
|
30920
|
+
eligible: array(HubAddressRoleSchema).readonly()
|
|
30921
|
+
})).readonly(),
|
|
30922
|
+
roles: object({
|
|
30923
|
+
viewer: HubViewerResolutionSchema,
|
|
30924
|
+
notifications: HubAddressRoleResolutionSchema,
|
|
30925
|
+
agents: HubAddressRoleResolutionSchema,
|
|
30926
|
+
signIn: HubAddressRoleResolutionSchema
|
|
30927
|
+
}),
|
|
30928
|
+
/** The `hub=` an app link carries (D709), or null. */
|
|
30929
|
+
appLinkHub: string().nullable()
|
|
30930
|
+
});
|
|
30772
30931
|
var AllowedAddressesSchema = object({
|
|
30773
30932
|
/**
|
|
30774
30933
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -30815,7 +30974,24 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
30815
30974
|
* an address notification links can be flagged with, not a hub
|
|
30816
30975
|
* route. Default `false`: racers and rankers never see it. */
|
|
30817
30976
|
includeAppLink: boolean().optional()
|
|
30818
|
-
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(
|
|
30977
|
+
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(object({ scheme: _enum(["http", "https"]).optional() }).optional(), HubAddressBookSchema), method(object({
|
|
30978
|
+
baseUrl: string(),
|
|
30979
|
+
label: string().max(80)
|
|
30980
|
+
}), HubAddressBookSchema, {
|
|
30981
|
+
kind: "mutation",
|
|
30982
|
+
auth: "admin"
|
|
30983
|
+
}), method(object({ baseUrl: string() }), HubAddressBookSchema, {
|
|
30984
|
+
kind: "mutation",
|
|
30985
|
+
auth: "admin"
|
|
30986
|
+
}), method(object({
|
|
30987
|
+
role: HubAddressRoleSchema,
|
|
30988
|
+
baseUrl: string().nullable(),
|
|
30989
|
+
enabled: boolean(),
|
|
30990
|
+
acceptInsecureHttp: boolean().optional()
|
|
30991
|
+
}), HubAddressBookSchema, {
|
|
30992
|
+
kind: "mutation",
|
|
30993
|
+
auth: "admin"
|
|
30994
|
+
}), method(_void(), HubAddressesSchema), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
|
|
30819
30995
|
kind: "mutation",
|
|
30820
30996
|
auth: "admin"
|
|
30821
30997
|
}), method(object({
|
|
@@ -31205,7 +31381,8 @@ object({
|
|
|
31205
31381
|
* writes this slice (not even a boot seed), and neither does the runner's
|
|
31206
31382
|
* phase machine: its phase is "a session is attached" for every on-motion
|
|
31207
31383
|
* session, not motion, and it now has its own `DetectionPhaseTransition`.
|
|
31208
|
-
* A provider's `isDetected`
|
|
31384
|
+
* A provider's `isDetected` and `getStatus` answer from the hub's slice
|
|
31385
|
+
* (`hubMotionNativeProvider`).
|
|
31209
31386
|
* - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
|
|
31210
31387
|
* imports) — the provider pushes both edges itself, from the upstream
|
|
31211
31388
|
* system's own state change. That is the sensor's own fact.
|
|
@@ -39264,12 +39441,24 @@ Object.freeze({
|
|
|
39264
39441
|
addonId: null,
|
|
39265
39442
|
access: "view"
|
|
39266
39443
|
},
|
|
39444
|
+
"localNetwork.addCustomAddress": {
|
|
39445
|
+
capName: "local-network",
|
|
39446
|
+
capScope: "system",
|
|
39447
|
+
addonId: null,
|
|
39448
|
+
access: "create"
|
|
39449
|
+
},
|
|
39267
39450
|
"localNetwork.downloadCa": {
|
|
39268
39451
|
capName: "local-network",
|
|
39269
39452
|
capScope: "system",
|
|
39270
39453
|
addonId: null,
|
|
39271
39454
|
access: "view"
|
|
39272
39455
|
},
|
|
39456
|
+
"localNetwork.getAddresses": {
|
|
39457
|
+
capName: "local-network",
|
|
39458
|
+
capScope: "system",
|
|
39459
|
+
addonId: null,
|
|
39460
|
+
access: "view"
|
|
39461
|
+
},
|
|
39273
39462
|
"localNetwork.getAllowedAddresses": {
|
|
39274
39463
|
capName: "local-network",
|
|
39275
39464
|
capScope: "system",
|
|
@@ -39282,6 +39471,12 @@ Object.freeze({
|
|
|
39282
39471
|
addonId: null,
|
|
39283
39472
|
access: "view"
|
|
39284
39473
|
},
|
|
39474
|
+
"localNetwork.getHubAddresses": {
|
|
39475
|
+
capName: "local-network",
|
|
39476
|
+
capScope: "system",
|
|
39477
|
+
addonId: null,
|
|
39478
|
+
access: "view"
|
|
39479
|
+
},
|
|
39285
39480
|
"localNetwork.getNotificationEndpoint": {
|
|
39286
39481
|
capName: "local-network",
|
|
39287
39482
|
capScope: "system",
|
|
@@ -39318,6 +39513,12 @@ Object.freeze({
|
|
|
39318
39513
|
addonId: null,
|
|
39319
39514
|
access: "create"
|
|
39320
39515
|
},
|
|
39516
|
+
"localNetwork.removeCustomAddress": {
|
|
39517
|
+
capName: "local-network",
|
|
39518
|
+
capScope: "system",
|
|
39519
|
+
addonId: null,
|
|
39520
|
+
access: "delete"
|
|
39521
|
+
},
|
|
39321
39522
|
"localNetwork.resetAllowlistToBestMatch": {
|
|
39322
39523
|
capName: "local-network",
|
|
39323
39524
|
capScope: "system",
|
|
@@ -39330,6 +39531,12 @@ Object.freeze({
|
|
|
39330
39531
|
addonId: null,
|
|
39331
39532
|
access: "create"
|
|
39332
39533
|
},
|
|
39534
|
+
"localNetwork.setAddressRole": {
|
|
39535
|
+
capName: "local-network",
|
|
39536
|
+
capScope: "system",
|
|
39537
|
+
addonId: null,
|
|
39538
|
+
access: "create"
|
|
39539
|
+
},
|
|
39333
39540
|
"localNetwork.setAllowedAddresses": {
|
|
39334
39541
|
capName: "local-network",
|
|
39335
39542
|
capScope: "system",
|
|
@@ -43584,6 +43791,12 @@ Object.freeze({
|
|
|
43584
43791
|
addonId: null,
|
|
43585
43792
|
access: "create"
|
|
43586
43793
|
},
|
|
43794
|
+
"webrtcSession.applyDownlinkProbe": {
|
|
43795
|
+
capName: "webrtc-session",
|
|
43796
|
+
capScope: "device",
|
|
43797
|
+
addonId: null,
|
|
43798
|
+
access: "create"
|
|
43799
|
+
},
|
|
43587
43800
|
"webrtcSession.closeSession": {
|
|
43588
43801
|
capName: "webrtc-session",
|
|
43589
43802
|
capScope: "device",
|
|
@@ -47506,6 +47719,11 @@ Object.freeze({
|
|
|
47506
47719
|
form: "single",
|
|
47507
47720
|
optional: false
|
|
47508
47721
|
}],
|
|
47722
|
+
"webrtcSession.applyDownlinkProbe": [{
|
|
47723
|
+
name: "deviceId",
|
|
47724
|
+
form: "single",
|
|
47725
|
+
optional: false
|
|
47726
|
+
}],
|
|
47509
47727
|
"webrtcSession.closeSession": [{
|
|
47510
47728
|
name: "deviceId",
|
|
47511
47729
|
form: "single",
|
|
@@ -47735,6 +47953,8 @@ new Map(Object.entries({
|
|
|
47735
47953
|
"detection-blind": "device-events",
|
|
47736
47954
|
"node-online": "system",
|
|
47737
47955
|
"node-offline": "system",
|
|
47956
|
+
"node-restarting": "system",
|
|
47957
|
+
"node-updating": "system",
|
|
47738
47958
|
"node-inference-unavailable": "system",
|
|
47739
47959
|
"addon-crash-loop": "system",
|
|
47740
47960
|
"addon-update-available": "system",
|
|
@@ -47812,6 +48032,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
47812
48032
|
kinds: [
|
|
47813
48033
|
"node-offline",
|
|
47814
48034
|
"node-online",
|
|
48035
|
+
"node-restarting",
|
|
47815
48036
|
"node-inference-unavailable"
|
|
47816
48037
|
]
|
|
47817
48038
|
},
|
|
@@ -47833,6 +48054,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
47833
48054
|
label: "Server & container updates",
|
|
47834
48055
|
kinds: [
|
|
47835
48056
|
"server-update-available",
|
|
48057
|
+
"node-updating",
|
|
47836
48058
|
"server-updated",
|
|
47837
48059
|
"wrapper-update-available"
|
|
47838
48060
|
]
|
|
@@ -47980,6 +48202,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
47980
48202
|
kinds: [
|
|
47981
48203
|
"node-offline",
|
|
47982
48204
|
"node-online",
|
|
48205
|
+
"node-restarting",
|
|
47983
48206
|
"node-inference-unavailable"
|
|
47984
48207
|
]
|
|
47985
48208
|
},
|
|
@@ -48001,6 +48224,7 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
48001
48224
|
example: "server 1.2.377 → 1.2.378",
|
|
48002
48225
|
kinds: [
|
|
48003
48226
|
"server-update-available",
|
|
48227
|
+
"node-updating",
|
|
48004
48228
|
"server-updated",
|
|
48005
48229
|
"wrapper-update-available"
|
|
48006
48230
|
]
|
|
@@ -48033,7 +48257,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
48033
48257
|
{
|
|
48034
48258
|
name: "summarySection",
|
|
48035
48259
|
label: "Summary: this section",
|
|
48036
|
-
description: "The section a per-section summary row is about
|
|
48260
|
+
description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
|
|
48037
48261
|
example: "Batterie scariche",
|
|
48038
48262
|
group: "system",
|
|
48039
48263
|
families: ["rule"],
|
|
@@ -48640,6 +48864,16 @@ DEFAULT_NATIVE_LEASE_SETTINGS.admission;
|
|
|
48640
48864
|
var MB = 1024 * 1024;
|
|
48641
48865
|
1024 * MB, 3072 * MB;
|
|
48642
48866
|
//#endregion
|
|
48867
|
+
//#region src/hub-browser-origin.ts
|
|
48868
|
+
async function hubBrowserOrigin(localNetwork, logger) {
|
|
48869
|
+
try {
|
|
48870
|
+
return (await localNetwork.getAddresses.query()).roles.signIn.resolved;
|
|
48871
|
+
} catch (err) {
|
|
48872
|
+
logger.warn("hub address unavailable from local-network — using the localhost default", { meta: { error: err instanceof Error ? err.message : String(err) } });
|
|
48873
|
+
return null;
|
|
48874
|
+
}
|
|
48875
|
+
}
|
|
48876
|
+
//#endregion
|
|
48643
48877
|
Object.defineProperty(exports, "BaseAddon", {
|
|
48644
48878
|
enumerable: true,
|
|
48645
48879
|
get: function() {
|
|
@@ -48688,6 +48922,12 @@ Object.defineProperty(exports, "errMsg", {
|
|
|
48688
48922
|
return errMsg;
|
|
48689
48923
|
}
|
|
48690
48924
|
});
|
|
48925
|
+
Object.defineProperty(exports, "hubBrowserOrigin", {
|
|
48926
|
+
enumerable: true,
|
|
48927
|
+
get: function() {
|
|
48928
|
+
return hubBrowserOrigin;
|
|
48929
|
+
}
|
|
48930
|
+
});
|
|
48691
48931
|
Object.defineProperty(exports, "loginMethodCapability", {
|
|
48692
48932
|
enumerable: true,
|
|
48693
48933
|
get: function() {
|