@camstack/addon-export-hap 0.1.1 → 0.1.2
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/assets/icon.svg +1 -0
- package/dist/@mf-types.zip +0 -0
- package/dist/_stub.js +1 -1
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_export_hap_page-Cq9F5QFd.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_export_hap_page-DtbdD5CL.mjs} +6 -6
- package/dist/{dist-C_kcZj9a.mjs → dist-B4EgL9KT.mjs} +324 -250
- package/dist/{dist-C_M8X1vZ.mjs → dist-DvB1ylHP.mjs} +15 -0
- package/dist/{dist-Bna6cbWX.mjs → dist-v8qx0EEt.mjs} +397 -397
- package/dist/export-hap.addon.js +14048 -13
- package/dist/export-hap.addon.js.map +1 -1
- package/dist/export-hap.addon.mjs +14089 -54
- package/dist/export-hap.addon.mjs.map +1 -1
- package/dist/{hostInit-CPk5kMR8.mjs → hostInit-CWjIaYbZ.mjs} +6 -6
- package/dist/remoteEntry.js +1 -1
- package/package.json +6 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { C as e, D as t, E as n, O as r, S as i, T as a, _ as o, a as s, b as c, c as l, d as u, f as d, g as f, h as p, i as ee, k as m, l as te, m as ne, n as re, o as ie, p as h, r as ae, s as oe, t as se, u as g, v as ce, w as _, x as le, y as ue } from "./schemas-DswVYZsq.mjs";
|
|
2
|
-
//#region ../types/dist/index-
|
|
2
|
+
//#region ../types/dist/index-YnRVILXN.mjs
|
|
3
3
|
var de = [
|
|
4
4
|
"onnx",
|
|
5
5
|
"coreml",
|
|
@@ -5155,18 +5155,38 @@ var We = _({
|
|
|
5155
5155
|
}), ic = _({
|
|
5156
5156
|
id: n(),
|
|
5157
5157
|
hostname: n(),
|
|
5158
|
+
magicDns: n(),
|
|
5158
5159
|
addresses: p(n()).readonly(),
|
|
5159
5160
|
os: n().optional(),
|
|
5160
5161
|
online: f(),
|
|
5161
5162
|
lastSeenMs: e(),
|
|
5162
|
-
isSelf: f()
|
|
5163
|
+
isSelf: f(),
|
|
5164
|
+
connection: g([
|
|
5165
|
+
"direct",
|
|
5166
|
+
"relay",
|
|
5167
|
+
"idle"
|
|
5168
|
+
]),
|
|
5169
|
+
relay: n().nullable(),
|
|
5170
|
+
lastHandshakeMs: e(),
|
|
5171
|
+
rxBytes: e(),
|
|
5172
|
+
txBytes: e(),
|
|
5173
|
+
tags: p(n()).readonly(),
|
|
5174
|
+
exitNodeOption: f(),
|
|
5175
|
+
advertisedRoutes: p(n()).readonly(),
|
|
5176
|
+
userLogin: n().nullable(),
|
|
5177
|
+
keyExpiry: e().nullable()
|
|
5163
5178
|
}), ac = _({
|
|
5164
5179
|
joined: f(),
|
|
5165
5180
|
meshIp: n(),
|
|
5166
5181
|
magicDnsHostname: n(),
|
|
5167
5182
|
peerCount: e(),
|
|
5168
5183
|
endpoints: p(rc).readonly(),
|
|
5169
|
-
error: n().optional()
|
|
5184
|
+
error: n().optional(),
|
|
5185
|
+
tenantName: n(),
|
|
5186
|
+
magicDnsSuffix: n(),
|
|
5187
|
+
userLogin: n().nullable(),
|
|
5188
|
+
controlPlaneUrl: n(),
|
|
5189
|
+
keyExpiry: e().nullable()
|
|
5170
5190
|
}), oc = {
|
|
5171
5191
|
name: "mesh-network",
|
|
5172
5192
|
scope: "system",
|
|
@@ -5180,6 +5200,7 @@ var We = _({
|
|
|
5180
5200
|
}), _({ joined: i(!0) }), { kind: "mutation" }),
|
|
5181
5201
|
startLogin: T(_({ hostname: n().optional() }), _({ loginUrl: n() }), { kind: "mutation" }),
|
|
5182
5202
|
leave: T(h(), _({ left: i(!0) }), { kind: "mutation" }),
|
|
5203
|
+
logout: T(h(), _({ loggedOut: i(!0) }), { kind: "mutation" }),
|
|
5183
5204
|
listPeers: T(h(), _({ peers: p(ic).readonly() })),
|
|
5184
5205
|
testConnection: T(_({ authKey: n().optional() }), _({
|
|
5185
5206
|
ok: f(),
|
|
@@ -5204,7 +5225,12 @@ var We = _({
|
|
|
5204
5225
|
magicDnsHostname: n(),
|
|
5205
5226
|
peerCount: e(),
|
|
5206
5227
|
endpoints: p(sc).readonly(),
|
|
5207
|
-
error: n().optional()
|
|
5228
|
+
error: n().optional(),
|
|
5229
|
+
tenantName: n(),
|
|
5230
|
+
magicDnsSuffix: n(),
|
|
5231
|
+
userLogin: n().nullable(),
|
|
5232
|
+
controlPlaneUrl: n(),
|
|
5233
|
+
keyExpiry: e().nullable()
|
|
5208
5234
|
}), lc = {
|
|
5209
5235
|
name: "mesh-orchestrator",
|
|
5210
5236
|
scope: "system",
|
|
@@ -5216,7 +5242,13 @@ var We = _({
|
|
|
5216
5242
|
authKey: n().min(8),
|
|
5217
5243
|
hostname: n().optional()
|
|
5218
5244
|
}), _({ joined: i(!0) }), { kind: "mutation" }),
|
|
5219
|
-
leaveProvider: T(_({ addonId: n() }), _({ success: i(!0) }), { kind: "mutation" })
|
|
5245
|
+
leaveProvider: T(_({ addonId: n() }), _({ success: i(!0) }), { kind: "mutation" }),
|
|
5246
|
+
startLoginProvider: T(_({
|
|
5247
|
+
addonId: n(),
|
|
5248
|
+
hostname: n().optional()
|
|
5249
|
+
}), _({ loginUrl: n() }), { kind: "mutation" }),
|
|
5250
|
+
logoutProvider: T(_({ addonId: n() }), _({ loggedOut: i(!0) }), { kind: "mutation" }),
|
|
5251
|
+
listProviderPeers: T(_({ addonId: n() }), _({ peers: p(ic).readonly() }))
|
|
5220
5252
|
}
|
|
5221
5253
|
}, K = g([
|
|
5222
5254
|
"view",
|
|
@@ -5280,6 +5312,7 @@ var We = _({
|
|
|
5280
5312
|
allowedProviders: r([p(n()), i("*")]),
|
|
5281
5313
|
allowedDevices: a(n(), r([p(n()), i("*")])),
|
|
5282
5314
|
scopes: p(q).default([]),
|
|
5315
|
+
totpEnabled: f().default(!1),
|
|
5283
5316
|
createdAt: e(),
|
|
5284
5317
|
updatedAt: e()
|
|
5285
5318
|
}), _c = _({
|
|
@@ -5565,16 +5598,21 @@ var We = _({
|
|
|
5565
5598
|
}), Uc = _({
|
|
5566
5599
|
nodeId: n(),
|
|
5567
5600
|
addonId: n()
|
|
5568
|
-
}),
|
|
5601
|
+
}), Wc = _({
|
|
5602
|
+
id: n(),
|
|
5603
|
+
status: n(),
|
|
5604
|
+
version: n().optional(),
|
|
5605
|
+
packageName: n().optional()
|
|
5606
|
+
}), J = _({ success: f() }), Gc = _({
|
|
5569
5607
|
success: f(),
|
|
5570
5608
|
reason: n().optional()
|
|
5571
|
-
}),
|
|
5609
|
+
}), Kc = _({
|
|
5572
5610
|
restarted: p(n()).readonly(),
|
|
5573
5611
|
failed: p(n()).readonly()
|
|
5574
|
-
}),
|
|
5612
|
+
}), qc = _({
|
|
5575
5613
|
nodeId: n(),
|
|
5576
5614
|
name: n()
|
|
5577
|
-
}),
|
|
5615
|
+
}), Jc = {
|
|
5578
5616
|
name: "nodes",
|
|
5579
5617
|
scope: "system",
|
|
5580
5618
|
mode: "singleton",
|
|
@@ -5595,11 +5633,11 @@ var We = _({
|
|
|
5595
5633
|
restartProcess: T(_({
|
|
5596
5634
|
nodeId: n(),
|
|
5597
5635
|
processName: n()
|
|
5598
|
-
}),
|
|
5636
|
+
}), Gc, {
|
|
5599
5637
|
kind: "mutation",
|
|
5600
5638
|
auth: "admin"
|
|
5601
5639
|
}),
|
|
5602
|
-
restartNode: T(_({ nodeId: n() }),
|
|
5640
|
+
restartNode: T(_({ nodeId: n() }), Kc, {
|
|
5603
5641
|
kind: "mutation",
|
|
5604
5642
|
auth: "admin"
|
|
5605
5643
|
}),
|
|
@@ -5610,11 +5648,12 @@ var We = _({
|
|
|
5610
5648
|
renameNode: T(_({
|
|
5611
5649
|
nodeId: n(),
|
|
5612
5650
|
name: n().min(1).max(64)
|
|
5613
|
-
}),
|
|
5651
|
+
}), qc, {
|
|
5614
5652
|
kind: "mutation",
|
|
5615
5653
|
auth: "admin"
|
|
5616
5654
|
}),
|
|
5617
5655
|
clusterAddonStatus: T(h(), a(n(), Hc), { auth: "admin" }),
|
|
5656
|
+
getNodeAddons: T(_({ nodeId: n() }), p(Wc).readonly(), { auth: "admin" }),
|
|
5618
5657
|
setProcessLogLevel: T(_({
|
|
5619
5658
|
nodeId: n(),
|
|
5620
5659
|
level: n()
|
|
@@ -5632,7 +5671,7 @@ var We = _({
|
|
|
5632
5671
|
auth: "admin"
|
|
5633
5672
|
})
|
|
5634
5673
|
}
|
|
5635
|
-
},
|
|
5674
|
+
}, Yc = _({
|
|
5636
5675
|
id: n(),
|
|
5637
5676
|
addonId: n(),
|
|
5638
5677
|
name: n(),
|
|
@@ -5641,7 +5680,7 @@ var We = _({
|
|
|
5641
5680
|
createdAt: e(),
|
|
5642
5681
|
updatedAt: e(),
|
|
5643
5682
|
processState: n()
|
|
5644
|
-
}),
|
|
5683
|
+
}), Xc = _({
|
|
5645
5684
|
id: n(),
|
|
5646
5685
|
addonId: n(),
|
|
5647
5686
|
name: n(),
|
|
@@ -5649,7 +5688,7 @@ var We = _({
|
|
|
5649
5688
|
info: a(n(), m()).readonly(),
|
|
5650
5689
|
createdAt: e(),
|
|
5651
5690
|
updatedAt: e()
|
|
5652
|
-
}),
|
|
5691
|
+
}), Zc = _({
|
|
5653
5692
|
addonId: n(),
|
|
5654
5693
|
name: n(),
|
|
5655
5694
|
description: n(),
|
|
@@ -5662,41 +5701,41 @@ var We = _({
|
|
|
5662
5701
|
name: n()
|
|
5663
5702
|
})),
|
|
5664
5703
|
canAdd: f()
|
|
5665
|
-
}),
|
|
5704
|
+
}), Qc = _({
|
|
5666
5705
|
success: f(),
|
|
5667
5706
|
error: n().optional()
|
|
5668
|
-
}),
|
|
5707
|
+
}), $c = _({
|
|
5669
5708
|
addonId: n(),
|
|
5670
5709
|
name: n(),
|
|
5671
5710
|
enabled: f().optional(),
|
|
5672
5711
|
info: a(n(), m()).optional(),
|
|
5673
5712
|
settings: a(n(), m()).optional(),
|
|
5674
5713
|
skipRestart: f().optional()
|
|
5675
|
-
}),
|
|
5714
|
+
}), el = _({
|
|
5676
5715
|
id: n(),
|
|
5677
5716
|
name: n().optional(),
|
|
5678
5717
|
enabled: f().optional(),
|
|
5679
5718
|
info: a(n(), m()).optional()
|
|
5680
|
-
}),
|
|
5719
|
+
}), tl = _({
|
|
5681
5720
|
success: f(),
|
|
5682
5721
|
deletedId: n()
|
|
5683
|
-
}),
|
|
5722
|
+
}), nl = {
|
|
5684
5723
|
name: "integrations",
|
|
5685
5724
|
scope: "system",
|
|
5686
5725
|
mode: "singleton",
|
|
5687
5726
|
methods: {
|
|
5688
|
-
list: T(h(), p(
|
|
5689
|
-
get: T(_({ id: n() }),
|
|
5690
|
-
getByAddonId: T(_({ addonId: n() }),
|
|
5691
|
-
create: T(
|
|
5727
|
+
list: T(h(), p(Yc)),
|
|
5728
|
+
get: T(_({ id: n() }), Yc),
|
|
5729
|
+
getByAddonId: T(_({ addonId: n() }), Xc.nullable()),
|
|
5730
|
+
create: T($c, Xc, {
|
|
5692
5731
|
kind: "mutation",
|
|
5693
5732
|
auth: "admin"
|
|
5694
5733
|
}),
|
|
5695
|
-
update: T(
|
|
5734
|
+
update: T(el, Xc, {
|
|
5696
5735
|
kind: "mutation",
|
|
5697
5736
|
auth: "admin"
|
|
5698
5737
|
}),
|
|
5699
|
-
delete: T(_({ id: n() }),
|
|
5738
|
+
delete: T(_({ id: n() }), tl, {
|
|
5700
5739
|
kind: "mutation",
|
|
5701
5740
|
auth: "admin"
|
|
5702
5741
|
}),
|
|
@@ -5708,30 +5747,30 @@ var We = _({
|
|
|
5708
5747
|
kind: "mutation",
|
|
5709
5748
|
auth: "admin"
|
|
5710
5749
|
}),
|
|
5711
|
-
getAvailableTypes: T(h(), p(
|
|
5750
|
+
getAvailableTypes: T(h(), p(Zc), { auth: "admin" }),
|
|
5712
5751
|
testConnection: T(_({
|
|
5713
5752
|
addonId: n(),
|
|
5714
5753
|
settings: a(n(), m())
|
|
5715
|
-
}),
|
|
5754
|
+
}), Qc, {
|
|
5716
5755
|
kind: "mutation",
|
|
5717
5756
|
auth: "admin"
|
|
5718
5757
|
})
|
|
5719
5758
|
}
|
|
5720
|
-
},
|
|
5759
|
+
}, rl = g([
|
|
5721
5760
|
"debug",
|
|
5722
5761
|
"info",
|
|
5723
5762
|
"warn",
|
|
5724
5763
|
"error"
|
|
5725
|
-
]),
|
|
5764
|
+
]), il = g([
|
|
5726
5765
|
"off",
|
|
5727
5766
|
"latest",
|
|
5728
5767
|
"beta"
|
|
5729
|
-
]),
|
|
5768
|
+
]), al = g([
|
|
5730
5769
|
"off",
|
|
5731
5770
|
"latest",
|
|
5732
5771
|
"beta",
|
|
5733
5772
|
"inherit"
|
|
5734
|
-
]),
|
|
5773
|
+
]), ol = _({
|
|
5735
5774
|
id: n(),
|
|
5736
5775
|
name: n().optional(),
|
|
5737
5776
|
version: n().optional(),
|
|
@@ -5749,11 +5788,11 @@ var We = _({
|
|
|
5749
5788
|
}).optional(),
|
|
5750
5789
|
protected: f().optional(),
|
|
5751
5790
|
removable: f().optional()
|
|
5752
|
-
}),
|
|
5791
|
+
}), sl = _({
|
|
5753
5792
|
pid: e().optional(),
|
|
5754
5793
|
mode: n(),
|
|
5755
5794
|
state: n()
|
|
5756
|
-
}),
|
|
5795
|
+
}), cl = _({
|
|
5757
5796
|
phase: g([
|
|
5758
5797
|
"pending",
|
|
5759
5798
|
"healthy",
|
|
@@ -5770,31 +5809,31 @@ var We = _({
|
|
|
5770
5809
|
alertEmitted: f(),
|
|
5771
5810
|
retrying: f(),
|
|
5772
5811
|
inGracePeriod: f()
|
|
5773
|
-
}),
|
|
5774
|
-
manifest:
|
|
5812
|
+
}), ll = _({
|
|
5813
|
+
manifest: ol,
|
|
5775
5814
|
declaration: m().optional(),
|
|
5776
5815
|
source: n(),
|
|
5777
5816
|
installSource: n().optional(),
|
|
5778
|
-
process:
|
|
5817
|
+
process: sl.optional(),
|
|
5779
5818
|
hasBackup: f().optional(),
|
|
5780
|
-
health:
|
|
5781
|
-
}),
|
|
5819
|
+
health: cl.nullable().optional()
|
|
5820
|
+
}), ul = _({
|
|
5782
5821
|
name: n(),
|
|
5783
5822
|
version: n(),
|
|
5784
5823
|
dir: n(),
|
|
5785
5824
|
installSource: n().optional()
|
|
5786
|
-
}),
|
|
5825
|
+
}), dl = _({
|
|
5787
5826
|
name: n(),
|
|
5788
5827
|
currentVersion: n(),
|
|
5789
5828
|
latestVersion: n(),
|
|
5790
5829
|
category: g(["addon", "core"]),
|
|
5791
5830
|
requiresRestart: f()
|
|
5792
|
-
}),
|
|
5831
|
+
}), fl = _({
|
|
5793
5832
|
version: n(),
|
|
5794
5833
|
publishedAt: n(),
|
|
5795
5834
|
deprecated: n().optional(),
|
|
5796
5835
|
distTags: p(n()).readonly()
|
|
5797
|
-
}),
|
|
5836
|
+
}), pl = _({
|
|
5798
5837
|
name: n(),
|
|
5799
5838
|
version: n(),
|
|
5800
5839
|
description: n(),
|
|
@@ -5803,38 +5842,38 @@ var We = _({
|
|
|
5803
5842
|
author: n(),
|
|
5804
5843
|
installed: f(),
|
|
5805
5844
|
installedVersion: n().optional()
|
|
5806
|
-
}),
|
|
5807
|
-
channel:
|
|
5845
|
+
}), ml = _({
|
|
5846
|
+
channel: il,
|
|
5808
5847
|
intervalSeconds: e()
|
|
5809
|
-
}),
|
|
5848
|
+
}), hl = al, gl = m(), _l = m(), vl = m(), yl = _({
|
|
5810
5849
|
timestamp: n(),
|
|
5811
5850
|
level: n(),
|
|
5812
5851
|
message: n(),
|
|
5813
5852
|
scope: n().optional()
|
|
5814
|
-
}),
|
|
5853
|
+
}), bl = m(), xl = _({
|
|
5815
5854
|
addonId: n().min(1),
|
|
5816
5855
|
action: n().min(1),
|
|
5817
5856
|
input: m()
|
|
5818
|
-
}),
|
|
5857
|
+
}), Sl = {
|
|
5819
5858
|
name: "addons",
|
|
5820
5859
|
scope: "system",
|
|
5821
5860
|
mode: "singleton",
|
|
5822
5861
|
methods: {
|
|
5823
|
-
list: T(h(), p(
|
|
5862
|
+
list: T(h(), p(ll).readonly()),
|
|
5824
5863
|
getLogs: T(_({
|
|
5825
5864
|
addonId: n(),
|
|
5826
5865
|
limit: e().min(1).max(500).default(100),
|
|
5827
|
-
level:
|
|
5828
|
-
}), p(
|
|
5829
|
-
listPackages: T(h(), p(
|
|
5866
|
+
level: rl.optional()
|
|
5867
|
+
}), p(bl)),
|
|
5868
|
+
listPackages: T(h(), p(ul).readonly()),
|
|
5830
5869
|
installPackage: T(_({
|
|
5831
5870
|
packageName: n(),
|
|
5832
5871
|
version: n().optional()
|
|
5833
|
-
}),
|
|
5872
|
+
}), _l, {
|
|
5834
5873
|
kind: "mutation",
|
|
5835
5874
|
auth: "admin"
|
|
5836
5875
|
}),
|
|
5837
|
-
installFromWorkspace: T(_({ packageName: n() }),
|
|
5876
|
+
installFromWorkspace: T(_({ packageName: n() }), _l, {
|
|
5838
5877
|
kind: "mutation",
|
|
5839
5878
|
auth: "admin"
|
|
5840
5879
|
}),
|
|
@@ -5844,12 +5883,12 @@ var We = _({
|
|
|
5844
5883
|
kind: "mutation",
|
|
5845
5884
|
auth: "admin"
|
|
5846
5885
|
}),
|
|
5847
|
-
reloadPackages: T(h(),
|
|
5886
|
+
reloadPackages: T(h(), vl, {
|
|
5848
5887
|
kind: "mutation",
|
|
5849
5888
|
auth: "admin"
|
|
5850
5889
|
}),
|
|
5851
|
-
searchAvailable: T(_({ query: n().optional() }), p(
|
|
5852
|
-
listUpdates: T(h(), p(
|
|
5890
|
+
searchAvailable: T(_({ query: n().optional() }), p(pl)),
|
|
5891
|
+
listUpdates: T(h(), p(dl).readonly(), { auth: "admin" }),
|
|
5853
5892
|
updatePackage: T(_({
|
|
5854
5893
|
name: n().min(1),
|
|
5855
5894
|
version: n().optional()
|
|
@@ -5869,8 +5908,8 @@ var We = _({
|
|
|
5869
5908
|
kind: "mutation",
|
|
5870
5909
|
auth: "admin"
|
|
5871
5910
|
}),
|
|
5872
|
-
getVersions: T(_({ name: n() }), p(
|
|
5873
|
-
restartAddon: T(_({ addonId: n() }),
|
|
5911
|
+
getVersions: T(_({ name: n() }), p(fl).readonly()),
|
|
5912
|
+
restartAddon: T(_({ addonId: n() }), gl, {
|
|
5874
5913
|
kind: "mutation",
|
|
5875
5914
|
auth: "admin"
|
|
5876
5915
|
}),
|
|
@@ -5878,44 +5917,44 @@ var We = _({
|
|
|
5878
5917
|
kind: "mutation",
|
|
5879
5918
|
auth: "admin"
|
|
5880
5919
|
}),
|
|
5881
|
-
getAutoUpdateSettings: T(h(),
|
|
5920
|
+
getAutoUpdateSettings: T(h(), ml, { auth: "admin" }),
|
|
5882
5921
|
setAutoUpdateSettings: T(_({
|
|
5883
|
-
channel:
|
|
5922
|
+
channel: il,
|
|
5884
5923
|
intervalSeconds: e().min(300).max(86400).optional()
|
|
5885
5924
|
}), m(), {
|
|
5886
5925
|
kind: "mutation",
|
|
5887
5926
|
auth: "admin"
|
|
5888
5927
|
}),
|
|
5889
|
-
getAddonAutoUpdate: T(_({ addonId: n() }),
|
|
5928
|
+
getAddonAutoUpdate: T(_({ addonId: n() }), hl, { auth: "admin" }),
|
|
5890
5929
|
setAddonAutoUpdate: T(_({
|
|
5891
5930
|
addonId: n(),
|
|
5892
|
-
channel:
|
|
5931
|
+
channel: al
|
|
5893
5932
|
}), m(), {
|
|
5894
5933
|
kind: "mutation",
|
|
5895
5934
|
auth: "admin"
|
|
5896
5935
|
}),
|
|
5897
|
-
applyAutoUpdateToAll: T(_({ channel:
|
|
5936
|
+
applyAutoUpdateToAll: T(_({ channel: il }), _({ success: i(!0) }), {
|
|
5898
5937
|
kind: "mutation",
|
|
5899
5938
|
auth: "admin"
|
|
5900
5939
|
}),
|
|
5901
|
-
custom: T(
|
|
5940
|
+
custom: T(xl, m(), { kind: "mutation" }),
|
|
5902
5941
|
onAddonLogs: T(_({
|
|
5903
5942
|
addonId: n(),
|
|
5904
|
-
level:
|
|
5905
|
-
}),
|
|
5943
|
+
level: rl.optional()
|
|
5944
|
+
}), yl, { kind: "subscription" })
|
|
5906
5945
|
}
|
|
5907
|
-
},
|
|
5946
|
+
}, Cl = [
|
|
5908
5947
|
"decoder",
|
|
5909
5948
|
"motion-detection",
|
|
5910
5949
|
"pipeline-executor",
|
|
5911
5950
|
"audio-analyzer",
|
|
5912
5951
|
"pipeline-analytics",
|
|
5913
5952
|
"notification-output"
|
|
5914
|
-
],
|
|
5915
|
-
...
|
|
5953
|
+
], wl = [
|
|
5954
|
+
...Cl,
|
|
5916
5955
|
"pipeline-orchestrator",
|
|
5917
5956
|
"pipeline-runner"
|
|
5918
|
-
],
|
|
5957
|
+
], Tl = class {
|
|
5919
5958
|
disposers = [];
|
|
5920
5959
|
disposed = !1;
|
|
5921
5960
|
onError;
|
|
@@ -5960,31 +5999,31 @@ var We = _({
|
|
|
5960
5999
|
}
|
|
5961
6000
|
}
|
|
5962
6001
|
}
|
|
5963
|
-
},
|
|
6002
|
+
}, El = "main-group", Dl = "hub-only";
|
|
5964
6003
|
function Y(e) {
|
|
5965
6004
|
return {
|
|
5966
6005
|
placement: e.execution?.placement ?? "hub-only",
|
|
5967
6006
|
group: e.execution?.group ?? "main-group"
|
|
5968
6007
|
};
|
|
5969
6008
|
}
|
|
5970
|
-
function
|
|
6009
|
+
function Ol(e) {
|
|
5971
6010
|
let t = Y(e).placement;
|
|
5972
6011
|
return t === "any-node" || t === "agent-only";
|
|
5973
6012
|
}
|
|
5974
|
-
function
|
|
6013
|
+
function kl(e) {
|
|
5975
6014
|
return Y(e).placement === "agent-only";
|
|
5976
6015
|
}
|
|
5977
|
-
function
|
|
6016
|
+
function Al(e) {
|
|
5978
6017
|
return Y(e).group;
|
|
5979
6018
|
}
|
|
5980
|
-
function
|
|
6019
|
+
function jl(e) {
|
|
5981
6020
|
return Y(e).placement;
|
|
5982
6021
|
}
|
|
5983
6022
|
var X = /* @__PURE__ */ ((e) => (e.SystemBoot = "system.boot", e.SystemAddonsReady = "system.addons-ready", e.SystemRestarting = "system.restarting", e.SystemReadyState = "system.ready-state", e.AddonStarted = "addon.started", e.AddonStopped = "addon.stopped", e.AddonRestarted = "addon.restarted", e.AddonUpdated = "addon.updated", e.AddonInstalled = "addon.installed", e.AddonUninstalled = "addon.uninstalled", e.AddonCrashed = "addon.crashed", e.AddonError = "addon.error", e.AddonPageReady = "addon.page-ready", e.AddonWidgetReady = "addon.widget-ready", e.AddonLoadFailed = "addon.load-failed", e.AddonLoadRecovered = "addon.load-recovered", e.AddonRetryScheduled = "addon.retry-scheduled", e.AddonRetryAttempting = "addon.retry-attempting", e.DeviceRegistered = "device.registered", e.DeviceUnregistered = "device.unregistered", e.DeviceEnabled = "device.enabled", e.DeviceDisabled = "device.disabled", e.DeviceSettingsUpdated = "device.settings-updated", e.DeviceBindingsChanged = "device.bindings-changed", e.DeviceMetaChanged = "device.meta-changed", e.DeviceStreamsRegistered = "device.streams-registered", e.IntegrationEnabled = "integration.enabled", e.IntegrationDisabled = "integration.disabled", e.IntegrationDeleted = "integration.deleted", e.ProviderStarted = "provider.started", e.ProviderStopped = "provider.stopped", e.ProcessCrashed = "process.crashed", e.ProcessRestartScheduled = "process.restart_scheduled", e.ProcessRestarted = "process.restarted", e.RecordingStarted = "recording.started", e.RecordingStopped = "recording.stopped", e.RecordingError = "recording.error", e.RecordingHealthDegraded = "recording.health.degraded", e.RecordingStorageCritical = "recording.storage.critical", e.RecordingSegmentWritten = "recording.segment.written", e.RecordingPolicyFallback = "recording.policy.fallback", e.RecordingRetentionCompleted = "recording.retention.completed", e.DetectionEvent = "detection.event", e.SessionTrackNew = "session.track.new", e.SessionTrackExpired = "session.track.expired", e.BenchmarkProgress = "benchmark.progress", e.PlatformProbePhase = "platform-probe.phase", e.PipelineProgress = "pipeline.progress", e.PipelineTrace = "pipeline.trace", e.PipelineInferenceResult = "pipeline.inference-result", e.PipelineCameraAssigned = "pipeline.camera-assigned", e.PipelineCameraUnassigned = "pipeline.camera-unassigned", e.PipelineCameraUpdated = "pipeline.camera-updated", e.PipelineRunnerLoadSnapshot = "pipeline.runner-load-snapshot", e.PipelineCameraMetricsSnapshot = "pipeline.camera-metrics-snapshot", e.StreamBrokerMetricsSnapshot = "stream-broker.metrics-snapshot", e.StreamBrokerOnCamStreamDemand = "stream-broker.onCamStreamDemand", e.StreamBrokerOnCamStreamIdle = "stream-broker.onCamStreamIdle", e.StreamBrokerOnRequestStreamSourceRefresh = "stream-broker.onRequestStreamSourceRefresh", e.DeviceStateChanged = "device.state-changed", e.BatteryOnStatusChanged = "battery.onStatusChanged", e.DoorbellOnPressed = "doorbell.onPressed", e.PipelineEngineMetricsSnapshot = "pipeline.engine-metrics-snapshot", e.ClusterTopologySnapshot = "cluster.topology-snapshot", e.MetricsNodeResourcesSnapshot = "metrics.node-resources-snapshot", e.MetricsNodeProcessesSnapshot = "metrics.node-processes-snapshot", e.CapabilityBindingChanged = "capability.binding-changed", e.ModelDownloadProgress = "model.download.progress", e.AgentRegistered = "agent.registered", e.AgentUnregistered = "agent.unregistered", e.AgentOnline = "agent.online", e.AgentOffline = "agent.offline", e.WorkerOnline = "worker.online", e.WorkerOffline = "worker.offline", e.AgentTaskDispatched = "agent.task.dispatched", e.AgentTaskAssigned = "agent.task.assigned", e.AgentTrpcConnected = "agent.trpc.connected", e.AgentWsConnected = "agent.ws.connected", e.AgentWsDisconnected = "agent.ws.disconnected", e.AgentBackupActivated = "agent.backup.activated", e.OrchestrationSettingsUpdated = "orchestration.settings-updated", e.PipelineAgentHwaccelChanged = "pipeline.agent-hwaccel-changed", e.MotionAnalysis = "detection.motion-analysis", e.MotionZonesRaw = "detection.motion-zones-raw", e.MotionOnMotionChanged = "motion.on-motion-changed", e.DetectionResult = "detection.result", e.DetectionRaw = "detection.raw", e.DetectionCameraNative = "detection.camera-native", e.PipelineAudioInferenceResult = "pipeline.audio-inference-result", e.DetectionPhaseTransition = "detection.phase-transition", e.ProviderMotion = "provider.motion", e.ProviderDetection = "provider.detection", e.EnrichmentEmbeddingStored = "enrichment.embedding.stored", e.EnrichmentSceneStateChanged = "enrichment.scene.state-changed", e.EnrichmentActivitySummary = "enrichment.activity.summary", e.PipelineAnalyticsTrackStarted = "pipeline-analytics.track-started", e.PipelineAnalyticsTrackEnded = "pipeline-analytics.track-ended", e.PipelineAnalyticsDetectionEvent = "pipeline-analytics.detection-event", e.PipelineAnalyticsFrameTracked = "pipeline-analytics.frame-tracked", e.FrigateLiveEvent = "frigate.live-event", e.CameraStreamsProfileSlotsChanged = "camera-streams.onProfileSlotsChanged", e.StreamOnline = "stream.online", e.StreamOffline = "stream.offline", e.NetworkTunnelStarted = "network.tunnel.started", e.NetworkTunnelStopped = "network.tunnel.stopped", e.LocalNetworkChanged = "network.local.changed", e.BackupCompleted = "backup.completed", e.BackupRestored = "backup.restored", e.NotificationDispatched = "notification.dispatched", e.NotificationFailed = "notification.failed", e.DeviceUpdated = "device.updated", e.DeviceOnline = "device.online", e.DeviceOffline = "device.offline", e.DeviceAwake = "device.awake", e.DeviceSleeping = "device.sleeping", e.RetentionCleanup = "retention.cleanup", e))(X || {});
|
|
5984
|
-
function
|
|
6023
|
+
function Ml(e, t) {
|
|
5985
6024
|
return e.category === t;
|
|
5986
6025
|
}
|
|
5987
|
-
function
|
|
6026
|
+
function Nl(e, t, n) {
|
|
5988
6027
|
return {
|
|
5989
6028
|
id: typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2),
|
|
5990
6029
|
timestamp: /* @__PURE__ */ new Date(),
|
|
@@ -5993,9 +6032,9 @@ function Ml(e, t, n) {
|
|
|
5993
6032
|
data: n
|
|
5994
6033
|
};
|
|
5995
6034
|
}
|
|
5996
|
-
function
|
|
6035
|
+
function Pl(e, t) {
|
|
5997
6036
|
let n = t.ts ?? Date.now();
|
|
5998
|
-
e.emit(
|
|
6037
|
+
e.emit(Nl("system.ready-state", {
|
|
5999
6038
|
type: "capability",
|
|
6000
6039
|
id: t.capName,
|
|
6001
6040
|
nodeId: t.sourceNodeId
|
|
@@ -6008,7 +6047,7 @@ function Nl(e, t) {
|
|
|
6008
6047
|
ts: n
|
|
6009
6048
|
}));
|
|
6010
6049
|
}
|
|
6011
|
-
var
|
|
6050
|
+
var Fl = class {
|
|
6012
6051
|
_ctx = null;
|
|
6013
6052
|
_config;
|
|
6014
6053
|
_readinessGeneration = typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
@@ -6034,7 +6073,7 @@ var Pl = class {
|
|
|
6034
6073
|
this._ctx = e, await this.resolveConfig();
|
|
6035
6074
|
let t = await this.onInitialize();
|
|
6036
6075
|
this.emitLifecycle(X.AddonStarted);
|
|
6037
|
-
let n =
|
|
6076
|
+
let n = Il(t), r = n && "providers" in n && n.providers ? n.providers : [];
|
|
6038
6077
|
return this._registeredCapNames = r.map((e) => e.capability.name), n;
|
|
6039
6078
|
}
|
|
6040
6079
|
postBrokerStart() {
|
|
@@ -6131,7 +6170,7 @@ var Pl = class {
|
|
|
6131
6170
|
if (!t || this._registeredCapNames.length === 0) return;
|
|
6132
6171
|
let n = t.kernel?.localNodeId ?? "hub", r = n.includes("/") ? n.split("/")[0] : n;
|
|
6133
6172
|
for (let n of this._registeredCapNames) try {
|
|
6134
|
-
|
|
6173
|
+
Pl(t.eventBus, {
|
|
6135
6174
|
capName: n,
|
|
6136
6175
|
scope: {
|
|
6137
6176
|
type: "node",
|
|
@@ -6184,15 +6223,15 @@ var Pl = class {
|
|
|
6184
6223
|
return this._ctx?.logger?.warn?.("readAddonStore: settings-store unavailable after retries — using defaults", { meta: { error: n instanceof Error ? n.message : String(n) } }), {};
|
|
6185
6224
|
}
|
|
6186
6225
|
};
|
|
6187
|
-
function
|
|
6226
|
+
function Il(e) {
|
|
6188
6227
|
if (e != null) return Array.isArray(e) ? { providers: e } : e;
|
|
6189
6228
|
}
|
|
6190
|
-
function
|
|
6229
|
+
function Ll(e, t) {
|
|
6191
6230
|
return {
|
|
6192
6231
|
id: e,
|
|
6193
6232
|
getRoutes: () => t,
|
|
6194
6233
|
invoke: async (e) => {
|
|
6195
|
-
let n =
|
|
6234
|
+
let n = Rl(t, e.method, e.path);
|
|
6196
6235
|
if (!n) return {
|
|
6197
6236
|
status: 404,
|
|
6198
6237
|
headers: {},
|
|
@@ -6203,7 +6242,7 @@ function Il(e, t) {
|
|
|
6203
6242
|
status: 200,
|
|
6204
6243
|
headers: {},
|
|
6205
6244
|
redirectUrl: null
|
|
6206
|
-
}, i =
|
|
6245
|
+
}, i = Bl(r), a = {
|
|
6207
6246
|
params: {
|
|
6208
6247
|
...e.params,
|
|
6209
6248
|
...n.params
|
|
@@ -6218,11 +6257,11 @@ function Il(e, t) {
|
|
|
6218
6257
|
}
|
|
6219
6258
|
};
|
|
6220
6259
|
}
|
|
6221
|
-
function
|
|
6260
|
+
function Rl(e, t, n) {
|
|
6222
6261
|
let r = t.toUpperCase();
|
|
6223
6262
|
for (let t of e) {
|
|
6224
6263
|
if (t.method !== r) continue;
|
|
6225
|
-
let e =
|
|
6264
|
+
let e = zl(t.path, n);
|
|
6226
6265
|
if (e !== null) return {
|
|
6227
6266
|
route: t,
|
|
6228
6267
|
params: e
|
|
@@ -6230,7 +6269,7 @@ function Ll(e, t, n) {
|
|
|
6230
6269
|
}
|
|
6231
6270
|
return null;
|
|
6232
6271
|
}
|
|
6233
|
-
function
|
|
6272
|
+
function zl(e, t) {
|
|
6234
6273
|
let n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
|
|
6235
6274
|
if (n.length !== r.length) return null;
|
|
6236
6275
|
let i = {};
|
|
@@ -6241,7 +6280,7 @@ function Rl(e, t) {
|
|
|
6241
6280
|
}
|
|
6242
6281
|
return i;
|
|
6243
6282
|
}
|
|
6244
|
-
function
|
|
6283
|
+
function Bl(e) {
|
|
6245
6284
|
let t = {
|
|
6246
6285
|
status(n) {
|
|
6247
6286
|
return e.status = n, t;
|
|
@@ -6264,7 +6303,7 @@ function zl(e) {
|
|
|
6264
6303
|
};
|
|
6265
6304
|
return t;
|
|
6266
6305
|
}
|
|
6267
|
-
var
|
|
6306
|
+
var Vl = class extends Error {
|
|
6268
6307
|
capName;
|
|
6269
6308
|
scope;
|
|
6270
6309
|
waitedMs;
|
|
@@ -6272,7 +6311,7 @@ var Bl = class extends Error {
|
|
|
6272
6311
|
super(`Timed out waiting for ${e} (${Z(t)}) to become ready after ${n}ms`), this.name = "ReadinessTimeoutError", this.capName = e, this.scope = t, this.waitedMs = n;
|
|
6273
6312
|
}
|
|
6274
6313
|
};
|
|
6275
|
-
function
|
|
6314
|
+
function Hl(e, t) {
|
|
6276
6315
|
return `${e}|${Z(t)}`;
|
|
6277
6316
|
}
|
|
6278
6317
|
function Z(e) {
|
|
@@ -6282,10 +6321,10 @@ function Z(e) {
|
|
|
6282
6321
|
case "device": return `device:${e.deviceId}`;
|
|
6283
6322
|
}
|
|
6284
6323
|
}
|
|
6285
|
-
function
|
|
6324
|
+
function Ul(e, t) {
|
|
6286
6325
|
return e.type === t.type ? e.type === "global" || t.type === "global" ? !0 : e.type === "node" && t.type === "node" ? e.nodeId === t.nodeId : e.type === "device" && t.type === "device" ? e.deviceId === t.deviceId : !1 : !1;
|
|
6287
6326
|
}
|
|
6288
|
-
var
|
|
6327
|
+
var Wl = class {
|
|
6289
6328
|
bus;
|
|
6290
6329
|
sourceNodeId;
|
|
6291
6330
|
logger;
|
|
@@ -6296,7 +6335,7 @@ var Ul = class {
|
|
|
6296
6335
|
unsubscribeBus;
|
|
6297
6336
|
unsubscribeAgentOffline;
|
|
6298
6337
|
constructor(e) {
|
|
6299
|
-
if (this.bus = e.eventBus, this.sourceNodeId = e.sourceNodeId, this.logger = e.logger, this.now = e.now ?? (() => Date.now()), this.generation = e.generation ??
|
|
6338
|
+
if (this.bus = e.eventBus, this.sourceNodeId = e.sourceNodeId, this.logger = e.logger, this.now = e.now ?? (() => Date.now()), this.generation = e.generation ?? Gl(), this.unsubscribeBus = this.bus.subscribe({ category: "system.ready-state" }, (e) => this.ingest(e.data)), this.unsubscribeAgentOffline = this.bus.subscribe({ category: "agent.offline" }, (e) => this.synthesizeDownForNode(e.data.agentId)), typeof this.bus.getRecent == "function") try {
|
|
6300
6339
|
let e = this.bus.getRecent({ category: "system.ready-state" });
|
|
6301
6340
|
for (let t of e) this.ingest(t.data);
|
|
6302
6341
|
} catch {}
|
|
@@ -6305,7 +6344,7 @@ var Ul = class {
|
|
|
6305
6344
|
this.unsubscribeBus(), this.unsubscribeAgentOffline(), this.subscriptions.clear();
|
|
6306
6345
|
}
|
|
6307
6346
|
get(e, t) {
|
|
6308
|
-
return this.snapshot.get(
|
|
6347
|
+
return this.snapshot.get(Hl(e, t)) ?? null;
|
|
6309
6348
|
}
|
|
6310
6349
|
getSnapshotForTransport() {
|
|
6311
6350
|
return Array.from(this.snapshot.values());
|
|
@@ -6313,7 +6352,7 @@ var Ul = class {
|
|
|
6313
6352
|
hydrate(e) {
|
|
6314
6353
|
let t = this.now();
|
|
6315
6354
|
for (let n of e) {
|
|
6316
|
-
let e =
|
|
6355
|
+
let e = Hl(n.capName, n.scope);
|
|
6317
6356
|
if (this.snapshot.has(e)) continue;
|
|
6318
6357
|
let r = {
|
|
6319
6358
|
capName: n.capName,
|
|
@@ -6335,7 +6374,7 @@ var Ul = class {
|
|
|
6335
6374
|
ts: t,
|
|
6336
6375
|
durationInPrevState: 0
|
|
6337
6376
|
};
|
|
6338
|
-
for (let e of this.subscriptions) if (e.capName === n.capName &&
|
|
6377
|
+
for (let e of this.subscriptions) if (e.capName === n.capName && Ul(e.scope, n.scope)) try {
|
|
6339
6378
|
e.handler(i);
|
|
6340
6379
|
} catch (e) {
|
|
6341
6380
|
this.logger?.warn(`readiness hydrate handler threw for ${n.capName}: ${e.message ?? String(e)}`);
|
|
@@ -6360,7 +6399,7 @@ var Ul = class {
|
|
|
6360
6399
|
let s = !1, c = this.onReadyState(e, t, (e) => {
|
|
6361
6400
|
e.state === "ready" && (s || (s = !0, d(), a()));
|
|
6362
6401
|
}), l = Number.isFinite(r) ? setTimeout(() => {
|
|
6363
|
-
s || (s = !0, d(), o(new
|
|
6402
|
+
s || (s = !0, d(), o(new Vl(e, t, this.now() - i)));
|
|
6364
6403
|
}, r) : null, u = () => {
|
|
6365
6404
|
s || (s = !0, d(), o(n.signal?.reason ?? /* @__PURE__ */ Error("aborted")));
|
|
6366
6405
|
};
|
|
@@ -6395,7 +6434,7 @@ var Ul = class {
|
|
|
6395
6434
|
}
|
|
6396
6435
|
emitTransition(e, t, n) {
|
|
6397
6436
|
let r = this.now();
|
|
6398
|
-
this.bus.emit(
|
|
6437
|
+
this.bus.emit(Nl("system.ready-state", {
|
|
6399
6438
|
type: "capability",
|
|
6400
6439
|
id: e,
|
|
6401
6440
|
nodeId: this.sourceNodeId
|
|
@@ -6410,7 +6449,7 @@ var Ul = class {
|
|
|
6410
6449
|
}
|
|
6411
6450
|
ingest(e) {
|
|
6412
6451
|
if (typeof e?.capName != "string" || e.state !== "ready" && e.state !== "starting" && e.state !== "down" || typeof e.generation != "string" || e.scope?.type !== "global" && e.scope?.type !== "node" && e.scope?.type !== "device") return;
|
|
6413
|
-
let t =
|
|
6452
|
+
let t = Hl(e.capName, e.scope), n = this.snapshot.get(t) ?? null, r = this.now(), i;
|
|
6414
6453
|
if (i = n === null ? +(e.state === "ready") : n.generation !== e.generation && e.state === "ready" ? n.epoch + 1 : n.epoch, n !== null && n.generation === e.generation && n.state === e.state) return;
|
|
6415
6454
|
let a = n === null ? 0 : Math.max(0, r - n.lastChange), o = {
|
|
6416
6455
|
capName: e.capName,
|
|
@@ -6433,7 +6472,7 @@ var Ul = class {
|
|
|
6433
6472
|
durationInPrevState: a
|
|
6434
6473
|
};
|
|
6435
6474
|
this.logger && this.logger.debug(`readiness: ${e.capName} (${Z(e.scope)}) → ${e.state} epoch=${i} gen=${e.generation.slice(0, 6)} (prev ${a}ms)`);
|
|
6436
|
-
for (let t of this.subscriptions) if (t.capName === e.capName &&
|
|
6475
|
+
for (let t of this.subscriptions) if (t.capName === e.capName && Ul(t.scope, e.scope)) try {
|
|
6437
6476
|
t.handler(s);
|
|
6438
6477
|
} catch (t) {
|
|
6439
6478
|
this.logger?.warn(`readiness handler threw for ${e.capName}: ${t.message ?? String(t)}`);
|
|
@@ -6460,7 +6499,7 @@ var Ul = class {
|
|
|
6460
6499
|
durationInPrevState: i
|
|
6461
6500
|
};
|
|
6462
6501
|
this.logger && this.logger.debug(`readiness: ${r.capName} (${Z(r.scope)}) → down (synthesized from agent.offline ${e})`);
|
|
6463
|
-
for (let e of this.subscriptions) if (e.capName === r.capName &&
|
|
6502
|
+
for (let e of this.subscriptions) if (e.capName === r.capName && Ul(e.scope, r.scope)) try {
|
|
6464
6503
|
e.handler(o);
|
|
6465
6504
|
} catch (e) {
|
|
6466
6505
|
this.logger?.warn(`readiness handler threw during agent.offline demux for ${r.capName}: ${e.message ?? String(e)}`);
|
|
@@ -6468,13 +6507,13 @@ var Ul = class {
|
|
|
6468
6507
|
}
|
|
6469
6508
|
}
|
|
6470
6509
|
};
|
|
6471
|
-
function
|
|
6510
|
+
function Gl() {
|
|
6472
6511
|
return typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : Math.random().toString(36).slice(2, 14);
|
|
6473
6512
|
}
|
|
6474
|
-
function
|
|
6513
|
+
function Kl(e, t) {
|
|
6475
6514
|
for (let { capName: n, scope: r } of t) e.emitDown(n, r);
|
|
6476
6515
|
}
|
|
6477
|
-
var
|
|
6516
|
+
var ql = [
|
|
6478
6517
|
"data",
|
|
6479
6518
|
"media",
|
|
6480
6519
|
"recordings",
|
|
@@ -6487,7 +6526,7 @@ var Kl = [
|
|
|
6487
6526
|
"cache",
|
|
6488
6527
|
"logs",
|
|
6489
6528
|
"backups"
|
|
6490
|
-
],
|
|
6529
|
+
], Jl = {
|
|
6491
6530
|
data: "db",
|
|
6492
6531
|
media: "media",
|
|
6493
6532
|
recordings: "recordings",
|
|
@@ -6500,23 +6539,23 @@ var Kl = [
|
|
|
6500
6539
|
cache: "/tmp/camstack-cache",
|
|
6501
6540
|
logs: "logs",
|
|
6502
6541
|
backups: "backups"
|
|
6503
|
-
},
|
|
6542
|
+
}, Yl = {
|
|
6504
6543
|
high: "High",
|
|
6505
6544
|
mid: "Mid",
|
|
6506
6545
|
low: "Low"
|
|
6507
6546
|
};
|
|
6508
|
-
function Yl(e) {
|
|
6509
|
-
return Jl[e] ?? e.charAt(0).toUpperCase() + e.slice(1);
|
|
6510
|
-
}
|
|
6511
6547
|
function Xl(e) {
|
|
6512
|
-
return
|
|
6548
|
+
return Yl[e] ?? e.charAt(0).toUpperCase() + e.slice(1);
|
|
6513
6549
|
}
|
|
6514
6550
|
function Zl(e) {
|
|
6551
|
+
return (e.width ?? 0) * (e.height ?? 0);
|
|
6552
|
+
}
|
|
6553
|
+
function Ql(e) {
|
|
6515
6554
|
if (e.length === 0) return [];
|
|
6516
6555
|
let t = e.map((e, t) => ({
|
|
6517
6556
|
s: e,
|
|
6518
6557
|
i: t,
|
|
6519
|
-
px:
|
|
6558
|
+
px: Zl(e.metadata ?? {})
|
|
6520
6559
|
})).sort((e, t) => t.px - e.px), n = Array.from({ length: e.length });
|
|
6521
6560
|
for (let e = 0; e < t.length; e++) {
|
|
6522
6561
|
let { s: r, i } = t[e], a;
|
|
@@ -6527,11 +6566,11 @@ function Zl(e) {
|
|
|
6527
6566
|
}
|
|
6528
6567
|
return n;
|
|
6529
6568
|
}
|
|
6530
|
-
function
|
|
6569
|
+
function $l(e) {
|
|
6531
6570
|
let t = e.height ?? 0, n = e.width ?? 0;
|
|
6532
6571
|
return t >= 1080 || n >= 1920 ? "high" : t >= 480 || n >= 640 ? "mid" : "low";
|
|
6533
6572
|
}
|
|
6534
|
-
function
|
|
6573
|
+
function eu(e) {
|
|
6535
6574
|
let t = e.protocols.find((e) => e.type === "rtsp" && e.url) ?? e.protocols.find((e) => e.url), n = t?.type, r = n === "rtsp" ? "rtsp" : n === "http" || n === "flv" ? "http-mjpeg" : "custom";
|
|
6536
6575
|
return {
|
|
6537
6576
|
id: e.id,
|
|
@@ -6544,21 +6583,21 @@ function $l(e) {
|
|
|
6544
6583
|
function Q(e) {
|
|
6545
6584
|
return typeof e == "string";
|
|
6546
6585
|
}
|
|
6547
|
-
function
|
|
6586
|
+
function tu(e) {
|
|
6548
6587
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
6549
6588
|
}
|
|
6550
|
-
function
|
|
6551
|
-
return Q(e) && e.trim() ? { url: e } :
|
|
6589
|
+
function nu(e) {
|
|
6590
|
+
return Q(e) && e.trim() ? { url: e } : tu(e) && Q(e.url) && e.url.trim() ? {
|
|
6552
6591
|
url: e.url,
|
|
6553
6592
|
label: Q(e.label) ? e.label : void 0
|
|
6554
6593
|
} : null;
|
|
6555
6594
|
}
|
|
6556
|
-
function
|
|
6595
|
+
function ru(e) {
|
|
6557
6596
|
let t = Q(e.snapshot_url) ? e.snapshot_url : void 0;
|
|
6558
6597
|
if (Array.isArray(e.streams)) {
|
|
6559
6598
|
let n = [];
|
|
6560
6599
|
for (let t of e.streams) {
|
|
6561
|
-
let e =
|
|
6600
|
+
let e = nu(t);
|
|
6562
6601
|
e && n.push(e);
|
|
6563
6602
|
}
|
|
6564
6603
|
return {
|
|
@@ -6585,14 +6624,14 @@ function nu(e) {
|
|
|
6585
6624
|
snapshot_url: t
|
|
6586
6625
|
};
|
|
6587
6626
|
}
|
|
6588
|
-
function
|
|
6627
|
+
function iu(e) {
|
|
6589
6628
|
if (e.length === 0) return {};
|
|
6590
|
-
let t =
|
|
6629
|
+
let t = Ql(e), n = {}, r = t.find((e) => e.quality === "high"), i = t.find((e) => e.quality === "mid"), a = t.find((e) => e.quality === "low");
|
|
6591
6630
|
r && (n.high = r.id), i && (n.mid = i.id), a && (n.low = a.id);
|
|
6592
6631
|
let o = r ?? i ?? a ?? t[0];
|
|
6593
6632
|
return o && (n.high ||= o.id, n.mid ||= o.id, n.low ||= o.id), n;
|
|
6594
6633
|
}
|
|
6595
|
-
var
|
|
6634
|
+
var au = {
|
|
6596
6635
|
streaming: !0,
|
|
6597
6636
|
notifications: !0,
|
|
6598
6637
|
objectDetection: !1,
|
|
@@ -6602,17 +6641,17 @@ var iu = {
|
|
|
6602
6641
|
recordings: !0,
|
|
6603
6642
|
backup: !0,
|
|
6604
6643
|
repl: !0
|
|
6605
|
-
},
|
|
6644
|
+
}, ou = ["face", "plate"], su = [
|
|
6606
6645
|
"face",
|
|
6607
6646
|
"plate",
|
|
6608
6647
|
"clip",
|
|
6609
6648
|
"custom"
|
|
6610
|
-
],
|
|
6649
|
+
], cu = {
|
|
6611
6650
|
cleanupIntervalMs: 3600 * 1e3,
|
|
6612
6651
|
detectionEventsDays: 30,
|
|
6613
6652
|
audioLevelsDays: 7,
|
|
6614
6653
|
snapshotsDays: 14
|
|
6615
|
-
},
|
|
6654
|
+
}, lu = /* @__PURE__ */ ((e) => (e.Addon = "addon", e.Core = "core", e.Device = "device", e.Provider = "provider", e.System = "system", e))(lu || {}), uu = "camstack/camstack-models", du = `https://huggingface.co/${uu}/resolve/main`, fu = {
|
|
6616
6655
|
"features.streaming": !0,
|
|
6617
6656
|
"features.notifications": !0,
|
|
6618
6657
|
"features.objectDetection": !1,
|
|
@@ -6644,50 +6683,50 @@ var iu = {
|
|
|
6644
6683
|
"ffmpeg.threadCount": 0,
|
|
6645
6684
|
"auth.tokenExpiry": "24h"
|
|
6646
6685
|
};
|
|
6647
|
-
function
|
|
6686
|
+
function pu(e) {
|
|
6648
6687
|
return JSON.parse(e);
|
|
6649
6688
|
}
|
|
6650
|
-
function
|
|
6689
|
+
function mu(e) {
|
|
6651
6690
|
return typeof e != "object" || !e || Array.isArray(e) ? null : { ...e };
|
|
6652
6691
|
}
|
|
6653
|
-
function
|
|
6692
|
+
function hu(e) {
|
|
6654
6693
|
return Array.isArray(e) ? e : [];
|
|
6655
6694
|
}
|
|
6656
|
-
function
|
|
6695
|
+
function gu(e, t = "") {
|
|
6657
6696
|
return typeof e == "string" ? e : t;
|
|
6658
6697
|
}
|
|
6659
|
-
function
|
|
6698
|
+
function _u(e, t = 0) {
|
|
6660
6699
|
return typeof e == "number" ? e : t;
|
|
6661
6700
|
}
|
|
6662
|
-
function
|
|
6701
|
+
function vu(e, t = !1) {
|
|
6663
6702
|
return typeof e == "boolean" ? e : t;
|
|
6664
6703
|
}
|
|
6665
|
-
function
|
|
6704
|
+
function yu(e) {
|
|
6666
6705
|
try {
|
|
6667
|
-
return pu(
|
|
6706
|
+
return mu(pu(e));
|
|
6668
6707
|
} catch {
|
|
6669
6708
|
return null;
|
|
6670
6709
|
}
|
|
6671
6710
|
}
|
|
6672
|
-
function
|
|
6711
|
+
function bu(e) {
|
|
6673
6712
|
try {
|
|
6674
|
-
let t =
|
|
6713
|
+
let t = pu(e);
|
|
6675
6714
|
return Array.isArray(t) ? t : null;
|
|
6676
6715
|
} catch {
|
|
6677
6716
|
return null;
|
|
6678
6717
|
}
|
|
6679
6718
|
}
|
|
6680
|
-
function
|
|
6719
|
+
function xu(e, t) {
|
|
6681
6720
|
return `https://huggingface.co/${e}/resolve/main/${t}`;
|
|
6682
6721
|
}
|
|
6683
|
-
function
|
|
6722
|
+
function Su(e, t) {
|
|
6684
6723
|
if (e.length !== t.length) return 0;
|
|
6685
6724
|
let n = 0, r = 0, i = 0;
|
|
6686
6725
|
for (let a = 0; a < e.length; a++) n += e[a] * t[a], r += e[a] * e[a], i += t[a] * t[a];
|
|
6687
6726
|
let a = Math.sqrt(r) * Math.sqrt(i);
|
|
6688
6727
|
return a === 0 ? 0 : n / a;
|
|
6689
6728
|
}
|
|
6690
|
-
var
|
|
6729
|
+
var Cu = class {
|
|
6691
6730
|
constructor(e, t) {
|
|
6692
6731
|
this.elementId = e, this.getBackend = typeof t == "function" ? t : () => t;
|
|
6693
6732
|
}
|
|
@@ -6720,7 +6759,7 @@ var Su = class {
|
|
|
6720
6759
|
return n;
|
|
6721
6760
|
}
|
|
6722
6761
|
async set(e, t) {
|
|
6723
|
-
await this.ensureLoaded(),
|
|
6762
|
+
await this.ensureLoaded(), wu(this.cache, e, t), await this.persist(), this.notifyListeners();
|
|
6724
6763
|
}
|
|
6725
6764
|
async setAll(e) {
|
|
6726
6765
|
await this.ensureLoaded(), this.cache = { ...e }, await this.persist(), this.notifyListeners();
|
|
@@ -6752,7 +6791,7 @@ var Su = class {
|
|
|
6752
6791
|
} catch {}
|
|
6753
6792
|
}
|
|
6754
6793
|
};
|
|
6755
|
-
function
|
|
6794
|
+
function wu(e, t, n) {
|
|
6756
6795
|
let r = t.split("."), i = e;
|
|
6757
6796
|
for (let e = 0; e < r.length - 1; e++) {
|
|
6758
6797
|
let t = r[e], n = i[t];
|
|
@@ -6763,7 +6802,7 @@ function Cu(e, t, n) {
|
|
|
6763
6802
|
}
|
|
6764
6803
|
i[r[r.length - 1]] = n;
|
|
6765
6804
|
}
|
|
6766
|
-
var
|
|
6805
|
+
var Tu = {
|
|
6767
6806
|
cpu: "onnx",
|
|
6768
6807
|
coreml: "onnx",
|
|
6769
6808
|
cuda: "onnx",
|
|
@@ -6771,18 +6810,18 @@ var wu = {
|
|
|
6771
6810
|
"onnx-py": "onnx",
|
|
6772
6811
|
pytorch: "pt",
|
|
6773
6812
|
openvino: "openvino"
|
|
6774
|
-
},
|
|
6813
|
+
}, Eu = {
|
|
6775
6814
|
onnx: "onnx",
|
|
6776
6815
|
coreml: "coreml",
|
|
6777
6816
|
openvino: "openvino",
|
|
6778
6817
|
tflite: "tflite",
|
|
6779
6818
|
pytorch: "pt"
|
|
6780
|
-
},
|
|
6819
|
+
}, Du = {
|
|
6781
6820
|
coreml: "coreml_inference.py",
|
|
6782
6821
|
pytorch: "pytorch_inference.py",
|
|
6783
6822
|
openvino: "openvino_inference.py"
|
|
6784
6823
|
};
|
|
6785
|
-
function
|
|
6824
|
+
function Ou(e, t) {
|
|
6786
6825
|
return e === "node" ? "onnx" : {
|
|
6787
6826
|
coreml: "coreml",
|
|
6788
6827
|
openvino: "openvino",
|
|
@@ -6791,8 +6830,8 @@ function Du(e, t) {
|
|
|
6791
6830
|
cpu: "onnx"
|
|
6792
6831
|
}[t] ?? t;
|
|
6793
6832
|
}
|
|
6794
|
-
function
|
|
6795
|
-
return e === "node" ?
|
|
6833
|
+
function ku(e, t) {
|
|
6834
|
+
return e === "node" ? Tu[t] ?? "onnx" : {
|
|
6796
6835
|
coreml: "coreml",
|
|
6797
6836
|
openvino: "openvino",
|
|
6798
6837
|
pytorch: "pt",
|
|
@@ -6800,42 +6839,42 @@ function Ou(e, t) {
|
|
|
6800
6839
|
cpu: "onnx"
|
|
6801
6840
|
}[t] ?? "onnx";
|
|
6802
6841
|
}
|
|
6803
|
-
function
|
|
6804
|
-
return !e || e === "auto" ? "auto" :
|
|
6805
|
-
}
|
|
6806
|
-
function Au(e) {
|
|
6807
|
-
return wu[e] ?? "onnx";
|
|
6842
|
+
function Au(e, t) {
|
|
6843
|
+
return !e || e === "auto" ? "auto" : Ou(e, t ?? "cpu");
|
|
6808
6844
|
}
|
|
6809
6845
|
function ju(e) {
|
|
6810
|
-
return Tu[e];
|
|
6846
|
+
return Tu[e] ?? "onnx";
|
|
6811
6847
|
}
|
|
6812
6848
|
function Mu(e) {
|
|
6813
6849
|
return Eu[e];
|
|
6814
6850
|
}
|
|
6815
6851
|
function Nu(e) {
|
|
6852
|
+
return Du[e];
|
|
6853
|
+
}
|
|
6854
|
+
function Pu(e) {
|
|
6816
6855
|
return e === "coreml" || e === "pytorch" || e === "openvino";
|
|
6817
6856
|
}
|
|
6818
|
-
async function
|
|
6857
|
+
async function Fu(e, t) {
|
|
6819
6858
|
let n = performance.now();
|
|
6820
6859
|
try {
|
|
6821
6860
|
return {
|
|
6822
|
-
output: t === void 0 ? await e() : await
|
|
6823
|
-
durationMs:
|
|
6861
|
+
output: t === void 0 ? await e() : await Lu(e(), t),
|
|
6862
|
+
durationMs: Iu(performance.now() - n),
|
|
6824
6863
|
ok: !0
|
|
6825
6864
|
};
|
|
6826
6865
|
} catch (e) {
|
|
6827
6866
|
return {
|
|
6828
6867
|
output: void 0,
|
|
6829
|
-
durationMs:
|
|
6868
|
+
durationMs: Iu(performance.now() - n),
|
|
6830
6869
|
ok: !1,
|
|
6831
6870
|
error: xe(e)
|
|
6832
6871
|
};
|
|
6833
6872
|
}
|
|
6834
6873
|
}
|
|
6835
|
-
function
|
|
6874
|
+
function Iu(e) {
|
|
6836
6875
|
return Math.round(e * 100) / 100;
|
|
6837
6876
|
}
|
|
6838
|
-
function
|
|
6877
|
+
function Lu(e, t) {
|
|
6839
6878
|
return new Promise((n, r) => {
|
|
6840
6879
|
let i = setTimeout(() => r(/* @__PURE__ */ Error(`Inference timeout after ${t}ms`)), t);
|
|
6841
6880
|
e.then((e) => {
|
|
@@ -6845,7 +6884,7 @@ function Iu(e, t) {
|
|
|
6845
6884
|
});
|
|
6846
6885
|
});
|
|
6847
6886
|
}
|
|
6848
|
-
var
|
|
6887
|
+
var Ru = [
|
|
6849
6888
|
{
|
|
6850
6889
|
id: "person",
|
|
6851
6890
|
name: "Person"
|
|
@@ -7166,7 +7205,7 @@ var Lu = [
|
|
|
7166
7205
|
id: "toothbrush",
|
|
7167
7206
|
name: "Toothbrush"
|
|
7168
7207
|
}
|
|
7169
|
-
],
|
|
7208
|
+
], zu = [
|
|
7170
7209
|
{
|
|
7171
7210
|
id: "person",
|
|
7172
7211
|
name: "Person"
|
|
@@ -7179,7 +7218,7 @@ var Lu = [
|
|
|
7179
7218
|
id: "animal",
|
|
7180
7219
|
name: "Animal"
|
|
7181
7220
|
}
|
|
7182
|
-
],
|
|
7221
|
+
], Bu = {
|
|
7183
7222
|
mapping: {
|
|
7184
7223
|
person: "person",
|
|
7185
7224
|
bicycle: "vehicle",
|
|
@@ -7202,11 +7241,11 @@ var Lu = [
|
|
|
7202
7241
|
giraffe: "animal"
|
|
7203
7242
|
},
|
|
7204
7243
|
preserveOriginal: !1
|
|
7205
|
-
},
|
|
7244
|
+
}, Vu = { camera: {
|
|
7206
7245
|
type: "camera",
|
|
7207
7246
|
label: "Camera",
|
|
7208
7247
|
icon: "camera"
|
|
7209
|
-
} },
|
|
7248
|
+
} }, Hu = class e {
|
|
7210
7249
|
schema;
|
|
7211
7250
|
data;
|
|
7212
7251
|
persistFn;
|
|
@@ -7262,7 +7301,7 @@ var Lu = [
|
|
|
7262
7301
|
description: t.description
|
|
7263
7302
|
}));
|
|
7264
7303
|
}
|
|
7265
|
-
},
|
|
7304
|
+
}, Uu = class e {
|
|
7266
7305
|
writer;
|
|
7267
7306
|
pendingWrites = /* @__PURE__ */ new Set();
|
|
7268
7307
|
slices;
|
|
@@ -7309,7 +7348,7 @@ var Lu = [
|
|
|
7309
7348
|
...i,
|
|
7310
7349
|
...t
|
|
7311
7350
|
} : { ...t }, o = r.parse(a);
|
|
7312
|
-
if (
|
|
7351
|
+
if (Wu(i, o)) return;
|
|
7313
7352
|
this.slices.set(e, o), this.fireListeners([e]);
|
|
7314
7353
|
let s = this.writer(e, { ...o }).catch(() => {});
|
|
7315
7354
|
this.pendingWrites.add(s), s.finally(() => {
|
|
@@ -7357,21 +7396,21 @@ var Lu = [
|
|
|
7357
7396
|
await Promise.allSettled(e);
|
|
7358
7397
|
}
|
|
7359
7398
|
};
|
|
7360
|
-
function
|
|
7399
|
+
function Wu(e, t) {
|
|
7361
7400
|
let n = Object.keys(e), r = Object.keys(t);
|
|
7362
7401
|
if (n.length !== r.length) return !1;
|
|
7363
7402
|
for (let r of n) if (e[r] !== t[r]) return !1;
|
|
7364
7403
|
return !0;
|
|
7365
7404
|
}
|
|
7366
|
-
var
|
|
7367
|
-
function
|
|
7405
|
+
var Gu = "lastFetchedAt";
|
|
7406
|
+
function Ku(e) {
|
|
7368
7407
|
let { runtimeState: t, cap: n, ownDeviceId: r, refresh: i, staleMs: a, empty: o } = e, s = async () => {
|
|
7369
|
-
let e = t.getCapState(n.name), r = typeof e?.[
|
|
7408
|
+
let e = t.getCapState(n.name), r = typeof e?.[Gu] == "number" ? e[Gu] : 0;
|
|
7370
7409
|
(!e || Date.now() - r > a) && await i();
|
|
7371
7410
|
}, c = () => {
|
|
7372
7411
|
let e = t.getCapState(n.name);
|
|
7373
7412
|
if (!e) return o();
|
|
7374
|
-
let { [
|
|
7413
|
+
let { [Gu]: r, ...i } = e;
|
|
7375
7414
|
return i;
|
|
7376
7415
|
};
|
|
7377
7416
|
return {
|
|
@@ -7382,7 +7421,7 @@ function Gu(e) {
|
|
|
7382
7421
|
}
|
|
7383
7422
|
};
|
|
7384
7423
|
}
|
|
7385
|
-
var
|
|
7424
|
+
var qu = {
|
|
7386
7425
|
audioMetrics: Je,
|
|
7387
7426
|
battery: Xe,
|
|
7388
7427
|
brightness: Qe,
|
|
@@ -7398,7 +7437,7 @@ var Ku = {
|
|
|
7398
7437
|
zoneAnalytics: Gn,
|
|
7399
7438
|
zoneRules: Yn,
|
|
7400
7439
|
zones: vn
|
|
7401
|
-
},
|
|
7440
|
+
}, Ju = class {
|
|
7402
7441
|
id;
|
|
7403
7442
|
stableId;
|
|
7404
7443
|
type;
|
|
@@ -7416,7 +7455,7 @@ var Ku = {
|
|
|
7416
7455
|
let e = {}, t = { get: (t, n) => {
|
|
7417
7456
|
let r = n;
|
|
7418
7457
|
if (r in e) return e[r];
|
|
7419
|
-
let i =
|
|
7458
|
+
let i = qu[r];
|
|
7420
7459
|
if (!i) return;
|
|
7421
7460
|
let a = this.sliceProxy(i);
|
|
7422
7461
|
return e[r] = a, a;
|
|
@@ -7435,7 +7474,7 @@ var Ku = {
|
|
|
7435
7474
|
if (this.ctx = e, this.id = e.id, this.stableId = e.stableId, this.type = n.type, !e.deviceMeta) throw Error(`BaseDevice constructor: ctx.deviceMeta is required (id=${e.id} stableId=${e.stableId})`);
|
|
7436
7475
|
this.name = e.deviceMeta.name, this.location = e.deviceMeta.location, this.disabled = e.deviceMeta.disabled, this.role = n.role, this.parentDeviceId = e.parentDeviceId;
|
|
7437
7476
|
let r = e.persistedConfig ?? {};
|
|
7438
|
-
this.config =
|
|
7477
|
+
this.config = Hu.fromSchema(t, (t) => e.persistConfig(t), r, ({ droppedKeys: t, issues: n }) => {
|
|
7439
7478
|
e.logger.warn("Device config recovery: dropping invalid persisted fields", {
|
|
7440
7479
|
tags: {
|
|
7441
7480
|
deviceId: e.id,
|
|
@@ -7453,7 +7492,7 @@ var Ku = {
|
|
|
7453
7492
|
slice: n
|
|
7454
7493
|
});
|
|
7455
7494
|
}, o = e.initialRuntimeState ?? {};
|
|
7456
|
-
this.runtimeState =
|
|
7495
|
+
this.runtimeState = Uu.fromInitial(o, a), e.bindRuntimeState?.(this.runtimeState), e.registerNativeCap?.(Le, {});
|
|
7457
7496
|
let s = {
|
|
7458
7497
|
online: !1,
|
|
7459
7498
|
lastChangedAt: Date.now()
|
|
@@ -7541,7 +7580,7 @@ var Ku = {
|
|
|
7541
7580
|
return (this.runtimeState.getCapState("feature-probe")?.lastProbedAt ?? 0) > 0;
|
|
7542
7581
|
}
|
|
7543
7582
|
};
|
|
7544
|
-
function
|
|
7583
|
+
function Yu(e, t) {
|
|
7545
7584
|
let n = {};
|
|
7546
7585
|
for (let t of e.config.entries()) n[t.key] = t.value;
|
|
7547
7586
|
return {
|
|
@@ -7556,7 +7595,7 @@ function Ju(e, t) {
|
|
|
7556
7595
|
config: n
|
|
7557
7596
|
};
|
|
7558
7597
|
}
|
|
7559
|
-
var
|
|
7598
|
+
var Xu = class extends Fl {
|
|
7560
7599
|
async onInitialize() {
|
|
7561
7600
|
return this.ctx.logger.info(`${this.providerName} Provider initialized`), [{
|
|
7562
7601
|
capability: nr,
|
|
@@ -7681,33 +7720,33 @@ var Yu = class extends Pl {
|
|
|
7681
7720
|
}
|
|
7682
7721
|
}
|
|
7683
7722
|
toSummary(e) {
|
|
7684
|
-
return
|
|
7723
|
+
return Yu(e, this.addonId);
|
|
7685
7724
|
}
|
|
7686
7725
|
};
|
|
7687
|
-
function
|
|
7726
|
+
function Zu(e) {
|
|
7688
7727
|
return e.def;
|
|
7689
7728
|
}
|
|
7690
|
-
function
|
|
7729
|
+
function Qu(e) {
|
|
7691
7730
|
return e;
|
|
7692
7731
|
}
|
|
7693
|
-
function
|
|
7732
|
+
function $u(e, t = "Configuration", n = "main") {
|
|
7694
7733
|
return { sections: [{
|
|
7695
7734
|
id: n,
|
|
7696
7735
|
title: t,
|
|
7697
|
-
fields: e.map((e) =>
|
|
7736
|
+
fields: e.map((e) => ed(e.key, e.schema, e.description))
|
|
7698
7737
|
}] };
|
|
7699
7738
|
}
|
|
7700
|
-
function
|
|
7701
|
-
let r =
|
|
7739
|
+
function ed(e, t, n) {
|
|
7740
|
+
let r = ad(t), i = od(t), a = {
|
|
7702
7741
|
key: e,
|
|
7703
|
-
label: n ??
|
|
7742
|
+
label: n ?? sd(e),
|
|
7704
7743
|
description: n,
|
|
7705
7744
|
default: i
|
|
7706
7745
|
};
|
|
7707
|
-
return r instanceof te ?
|
|
7746
|
+
return r instanceof te ? td(e, a) : r instanceof ie ? nd(r, a) : r instanceof re ? {
|
|
7708
7747
|
...a,
|
|
7709
7748
|
type: "boolean"
|
|
7710
|
-
} : r instanceof ee ?
|
|
7749
|
+
} : r instanceof ee ? id(r, a) : r instanceof se || r instanceof oe ? {
|
|
7711
7750
|
...a,
|
|
7712
7751
|
type: "textarea",
|
|
7713
7752
|
rows: 6,
|
|
@@ -7717,7 +7756,7 @@ function $u(e, t, n) {
|
|
|
7717
7756
|
type: "text"
|
|
7718
7757
|
};
|
|
7719
7758
|
}
|
|
7720
|
-
function
|
|
7759
|
+
function td(e, t) {
|
|
7721
7760
|
let n = e.toLowerCase();
|
|
7722
7761
|
return n.includes("password") || n.includes("secret") || n.includes("token") || n.includes("apikey") || n.includes("api_key") ? {
|
|
7723
7762
|
...t,
|
|
@@ -7728,8 +7767,8 @@ function ed(e, t) {
|
|
|
7728
7767
|
type: "text"
|
|
7729
7768
|
};
|
|
7730
7769
|
}
|
|
7731
|
-
function
|
|
7732
|
-
let n =
|
|
7770
|
+
function nd(e, t) {
|
|
7771
|
+
let n = Qu(e), r = n.minValue, i = n.maxValue, a = r != null && isFinite(r) ? r : void 0, o = i != null && isFinite(i) ? i : void 0, s = rd(e);
|
|
7733
7772
|
return {
|
|
7734
7773
|
...t,
|
|
7735
7774
|
type: "number",
|
|
@@ -7738,34 +7777,34 @@ function td(e, t) {
|
|
|
7738
7777
|
...s === void 0 ? {} : { step: s }
|
|
7739
7778
|
};
|
|
7740
7779
|
}
|
|
7741
|
-
function
|
|
7742
|
-
let t =
|
|
7780
|
+
function rd(e) {
|
|
7781
|
+
let t = Zu(e).checks ?? [];
|
|
7743
7782
|
for (let e of t) if (e._zod?.def?.check === "multiple_of" && e._zod.def.value !== void 0) return e._zod.def.value;
|
|
7744
7783
|
}
|
|
7745
|
-
function
|
|
7784
|
+
function id(e, t) {
|
|
7746
7785
|
let n = e.options.map((e) => String(e));
|
|
7747
7786
|
return {
|
|
7748
7787
|
...t,
|
|
7749
7788
|
type: "select",
|
|
7750
7789
|
options: n.map((e) => ({
|
|
7751
|
-
label:
|
|
7790
|
+
label: sd(e),
|
|
7752
7791
|
value: e
|
|
7753
7792
|
}))
|
|
7754
7793
|
};
|
|
7755
7794
|
}
|
|
7756
|
-
function id(e) {
|
|
7757
|
-
return e instanceof ae || e instanceof l || e instanceof s ? id(Xu(e).innerType) : e;
|
|
7758
|
-
}
|
|
7759
7795
|
function ad(e) {
|
|
7760
|
-
|
|
7796
|
+
return e instanceof ae || e instanceof l || e instanceof s ? ad(Zu(e).innerType) : e;
|
|
7761
7797
|
}
|
|
7762
7798
|
function od(e) {
|
|
7799
|
+
if (e instanceof ae) return Zu(e).defaultValue;
|
|
7800
|
+
}
|
|
7801
|
+
function sd(e) {
|
|
7763
7802
|
return e.replace(/([A-Z])/g, " $1").replace(/[_-]/g, " ").replace(/^\w/, (e) => e.toUpperCase()).trim();
|
|
7764
7803
|
}
|
|
7765
|
-
var
|
|
7766
|
-
function
|
|
7804
|
+
var cd = "device.state-changed";
|
|
7805
|
+
function ld(e) {
|
|
7767
7806
|
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = null, i = (e, t) => `${e}:${t}`, a = () => {
|
|
7768
|
-
r || e.live?.onEvent && (r = e.live.onEvent.subscribe({ category:
|
|
7807
|
+
r || e.live?.onEvent && (r = e.live.onEvent.subscribe({ category: cd }, { onData: (e) => {
|
|
7769
7808
|
let r = e.data;
|
|
7770
7809
|
if (!r || typeof r.deviceId != "number" || typeof r.capName != "string") return;
|
|
7771
7810
|
let a = i(r.deviceId, r.capName);
|
|
@@ -7808,7 +7847,7 @@ function cd(e) {
|
|
|
7808
7847
|
}
|
|
7809
7848
|
};
|
|
7810
7849
|
}
|
|
7811
|
-
function
|
|
7850
|
+
function ud(e, t, n) {
|
|
7812
7851
|
let r = (e, t) => `${e}:${t}`;
|
|
7813
7852
|
return {
|
|
7814
7853
|
read(t, n) {
|
|
@@ -7832,7 +7871,7 @@ function ld(e, t, n) {
|
|
|
7832
7871
|
};
|
|
7833
7872
|
}
|
|
7834
7873
|
function $(e, t, n) {
|
|
7835
|
-
let r =
|
|
7874
|
+
let r = dd(e) ? e : ld(e);
|
|
7836
7875
|
return {
|
|
7837
7876
|
get value() {
|
|
7838
7877
|
return r.read(t, n);
|
|
@@ -7863,11 +7902,11 @@ function $(e, t, n) {
|
|
|
7863
7902
|
}
|
|
7864
7903
|
};
|
|
7865
7904
|
}
|
|
7866
|
-
function
|
|
7905
|
+
function dd(e) {
|
|
7867
7906
|
return typeof e.read == "function" && typeof e.watch == "function";
|
|
7868
7907
|
}
|
|
7869
|
-
function
|
|
7870
|
-
let r = e, i = n?.stateSource ??
|
|
7908
|
+
function fd(e, t, n) {
|
|
7909
|
+
let r = e, i = n?.stateSource ?? ld(e);
|
|
7871
7910
|
function a(e, n) {
|
|
7872
7911
|
let r = typeof e == "object" && e ? e : {};
|
|
7873
7912
|
return n === void 0 ? {
|
|
@@ -8160,14 +8199,14 @@ function dd(e, t, n) {
|
|
|
8160
8199
|
}
|
|
8161
8200
|
};
|
|
8162
8201
|
}
|
|
8163
|
-
function
|
|
8202
|
+
function pd(e, t, n, r, i) {
|
|
8164
8203
|
if (n.length === 0 || t.length === 0) return {
|
|
8165
8204
|
passed: e,
|
|
8166
8205
|
excluded: []
|
|
8167
8206
|
};
|
|
8168
8207
|
let a = n.filter((e) => e.enabled !== !1), o = a.filter((e) => e.mode === "include"), s = a.filter((e) => e.mode === "exclude"), c = o.length > 0, l = new Map(t.map((e) => [e.id, e])), u = [], d = [];
|
|
8169
8208
|
for (let t of e) {
|
|
8170
|
-
let e = r(t), n = i?.(t), a = o.some((t) =>
|
|
8209
|
+
let e = r(t), n = i?.(t), a = o.some((t) => md(t, e, n, l)), f = s.some((t) => md(t, e, n, l));
|
|
8171
8210
|
c ? a && !f ? u.push(t) : d.push(t) : f ? d.push(t) : u.push(t);
|
|
8172
8211
|
}
|
|
8173
8212
|
return {
|
|
@@ -8175,15 +8214,15 @@ function fd(e, t, n, r, i) {
|
|
|
8175
8214
|
excluded: d
|
|
8176
8215
|
};
|
|
8177
8216
|
}
|
|
8178
|
-
function
|
|
8217
|
+
function md(e, t, n, r) {
|
|
8179
8218
|
if (e.classFilter && e.classFilter.length > 0 && n !== void 0 && !e.classFilter.includes(n)) return !1;
|
|
8180
8219
|
for (let n of e.zoneIds) {
|
|
8181
8220
|
let e = r.get(n);
|
|
8182
|
-
if (e &&
|
|
8221
|
+
if (e && hd(t, e.polygon)) return !0;
|
|
8183
8222
|
}
|
|
8184
8223
|
return !1;
|
|
8185
8224
|
}
|
|
8186
|
-
function
|
|
8225
|
+
function hd(e, t) {
|
|
8187
8226
|
if (t.length < 3) return !1;
|
|
8188
8227
|
let n = !1, { x: r, y: i } = e;
|
|
8189
8228
|
for (let e = 0, a = t.length - 1; e < t.length; a = e++) {
|
|
@@ -8192,7 +8231,7 @@ function md(e, t) {
|
|
|
8192
8231
|
}
|
|
8193
8232
|
return n;
|
|
8194
8233
|
}
|
|
8195
|
-
function
|
|
8234
|
+
function gd(e) {
|
|
8196
8235
|
let t = e;
|
|
8197
8236
|
function n(e, n, r, i, a) {
|
|
8198
8237
|
let o = t[e]?.[n];
|
|
@@ -8357,13 +8396,17 @@ function hd(e) {
|
|
|
8357
8396
|
join: (e) => n("meshNetwork", "join", "mutation", e),
|
|
8358
8397
|
startLogin: (e) => n("meshNetwork", "startLogin", "mutation", e),
|
|
8359
8398
|
leave: (e) => n("meshNetwork", "leave", "mutation", e),
|
|
8399
|
+
logout: (e) => n("meshNetwork", "logout", "mutation", e),
|
|
8360
8400
|
listPeers: (e) => n("meshNetwork", "listPeers", "query", e),
|
|
8361
8401
|
testConnection: (e) => n("meshNetwork", "testConnection", "mutation", e)
|
|
8362
8402
|
},
|
|
8363
8403
|
meshOrchestrator: {
|
|
8364
8404
|
listProviders: (e) => n("meshOrchestrator", "listProviders", "query", e),
|
|
8365
8405
|
joinProvider: (e) => n("meshOrchestrator", "joinProvider", "mutation", e),
|
|
8366
|
-
leaveProvider: (e) => n("meshOrchestrator", "leaveProvider", "mutation", e)
|
|
8406
|
+
leaveProvider: (e) => n("meshOrchestrator", "leaveProvider", "mutation", e),
|
|
8407
|
+
startLoginProvider: (e) => n("meshOrchestrator", "startLoginProvider", "mutation", e),
|
|
8408
|
+
logoutProvider: (e) => n("meshOrchestrator", "logoutProvider", "mutation", e),
|
|
8409
|
+
listProviderPeers: (e) => n("meshOrchestrator", "listProviderPeers", "query", e)
|
|
8367
8410
|
},
|
|
8368
8411
|
metricsProvider: {
|
|
8369
8412
|
collectSnapshot: (e) => n("metricsProvider", "collectSnapshot", "query", e),
|
|
@@ -8399,6 +8442,7 @@ function hd(e) {
|
|
|
8399
8442
|
shutdownNode: (e) => n("nodes", "shutdownNode", "mutation", e),
|
|
8400
8443
|
renameNode: (e) => n("nodes", "renameNode", "mutation", e),
|
|
8401
8444
|
clusterAddonStatus: (e) => n("nodes", "clusterAddonStatus", "query", e),
|
|
8445
|
+
getNodeAddons: (e) => n("nodes", "getNodeAddons", "query", e),
|
|
8402
8446
|
setProcessLogLevel: (e) => n("nodes", "setProcessLogLevel", "mutation", e),
|
|
8403
8447
|
executeQuery: (e) => n("nodes", "executeQuery", "mutation", e)
|
|
8404
8448
|
},
|
|
@@ -8592,9 +8636,9 @@ function hd(e) {
|
|
|
8592
8636
|
}
|
|
8593
8637
|
};
|
|
8594
8638
|
}
|
|
8595
|
-
var
|
|
8639
|
+
var _d = "device.state-changed", vd = "capability.binding-changed", yd = "device.registered", bd = "device.unregistered", xd = "device.updated", Sd = class {
|
|
8596
8640
|
constructor(e) {
|
|
8597
|
-
this.api = e, this.stateSource =
|
|
8641
|
+
this.api = e, this.stateSource = ud(this.stateMirror, this.handleListeners, this.api);
|
|
8598
8642
|
}
|
|
8599
8643
|
stateMirror = /* @__PURE__ */ new Map();
|
|
8600
8644
|
bindings = /* @__PURE__ */ new Map();
|
|
@@ -8661,7 +8705,7 @@ var gd = "device.state-changed", _d = "capability.binding-changed", vd = "device
|
|
|
8661
8705
|
}
|
|
8662
8706
|
getDeviceById(e) {
|
|
8663
8707
|
let t = this.bindings.get(e);
|
|
8664
|
-
return t ?
|
|
8708
|
+
return t ? fd(this.api, t, { stateSource: this.stateSource }) : null;
|
|
8665
8709
|
}
|
|
8666
8710
|
getDeviceByName(e) {
|
|
8667
8711
|
for (let t of this.devices.values()) if (t.name === e) return this.getDeviceById(t.id);
|
|
@@ -8695,22 +8739,22 @@ var gd = "device.state-changed", _d = "capability.binding-changed", vd = "device
|
|
|
8695
8739
|
let t = [];
|
|
8696
8740
|
for (let [n, r] of this.bindings) {
|
|
8697
8741
|
let i = this.devices.get(n);
|
|
8698
|
-
if (e.id !== void 0 && !
|
|
8742
|
+
if (e.id !== void 0 && !Cd(n, e.id) || e.stableId !== void 0 && (!i || !Cd(i.stableId, e.stableId)) || e.addonId !== void 0 && (!i || !Cd(i.addonId, e.addonId)) || e.type !== void 0 && (!i || !Cd(i.type, e.type))) continue;
|
|
8699
8743
|
if (e.caps !== void 0) {
|
|
8700
|
-
let t =
|
|
8744
|
+
let t = wd(e.caps), n = new Set(r.entries.map((e) => e.capName));
|
|
8701
8745
|
if (!t.every((e) => n.has(e))) continue;
|
|
8702
8746
|
}
|
|
8703
8747
|
if (e.anyCap !== void 0) {
|
|
8704
|
-
let t =
|
|
8748
|
+
let t = wd(e.anyCap), n = new Set(r.entries.map((e) => e.capName));
|
|
8705
8749
|
if (!t.some((e) => n.has(e))) continue;
|
|
8706
8750
|
}
|
|
8707
|
-
if (e.name !== void 0 && (!i || !
|
|
8751
|
+
if (e.name !== void 0 && (!i || !Td(i.name, e.name)) || e.online !== void 0 && (!i || i.online !== e.online)) continue;
|
|
8708
8752
|
if (e.parentDeviceId !== void 0) {
|
|
8709
8753
|
if (!i) continue;
|
|
8710
8754
|
let t = e.parentDeviceId;
|
|
8711
8755
|
if ((i.parentDeviceId ?? null) !== t) continue;
|
|
8712
8756
|
}
|
|
8713
|
-
if (e.feature !== void 0 && (!i || !
|
|
8757
|
+
if (e.feature !== void 0 && (!i || !wd(e.feature).every((e) => i.features.includes(e))) || e.isCamera !== void 0 && (!i || i.isCamera !== e.isCamera)) continue;
|
|
8714
8758
|
let a = this.getDeviceById(n);
|
|
8715
8759
|
if (a) {
|
|
8716
8760
|
if (e.where && i) {
|
|
@@ -8895,19 +8939,19 @@ var gd = "device.state-changed", _d = "capability.binding-changed", vd = "device
|
|
|
8895
8939
|
subscribeBus() {
|
|
8896
8940
|
if (!this.api.live?.onEvent) return;
|
|
8897
8941
|
let e = this.api.live.onEvent;
|
|
8898
|
-
this.bridges.push(e.subscribe({ category:
|
|
8942
|
+
this.bridges.push(e.subscribe({ category: _d }, { onData: (e) => {
|
|
8899
8943
|
let t = e.data;
|
|
8900
8944
|
!t || typeof t.deviceId != "number" || typeof t.capName != "string" || this.applyStateUpdate(t.deviceId, t.capName, t.slice);
|
|
8901
|
-
} })), this.bridges.push(e.subscribe({ category:
|
|
8945
|
+
} })), this.bridges.push(e.subscribe({ category: vd }, { onData: (e) => {
|
|
8902
8946
|
let t = e.data, n = typeof t?.deviceId == "number" ? t.deviceId : t?.source?.type === "device" && typeof t.source.id == "number" ? t.source.id : null;
|
|
8903
8947
|
n !== null && this.refreshBinding(n);
|
|
8904
|
-
} })), this.bridges.push(e.subscribe({ category:
|
|
8948
|
+
} })), this.bridges.push(e.subscribe({ category: yd }, { onData: (e) => {
|
|
8905
8949
|
let t = e.data;
|
|
8906
8950
|
typeof t?.deviceId == "number" && this.refreshDeviceMetadata(t.deviceId, "added");
|
|
8907
|
-
} })), this.bridges.push(e.subscribe({ category:
|
|
8951
|
+
} })), this.bridges.push(e.subscribe({ category: bd }, { onData: (e) => {
|
|
8908
8952
|
let t = e.data;
|
|
8909
8953
|
typeof t?.deviceId == "number" && this.applyDeviceRemoval(t.deviceId);
|
|
8910
|
-
} })), this.bridges.push(e.subscribe({ category:
|
|
8954
|
+
} })), this.bridges.push(e.subscribe({ category: xd }, { onData: (e) => {
|
|
8911
8955
|
let t = e.data;
|
|
8912
8956
|
typeof t?.deviceId == "number" && this.refreshDeviceMetadata(t.deviceId, "updated");
|
|
8913
8957
|
} }));
|
|
@@ -8958,19 +9002,19 @@ var gd = "device.state-changed", _d = "capability.binding-changed", vd = "device
|
|
|
8958
9002
|
} catch {}
|
|
8959
9003
|
}
|
|
8960
9004
|
};
|
|
8961
|
-
function
|
|
9005
|
+
function Cd(e, t) {
|
|
8962
9006
|
return Array.isArray(t) ? t.includes(e) : e === t;
|
|
8963
9007
|
}
|
|
8964
|
-
function
|
|
9008
|
+
function wd(e) {
|
|
8965
9009
|
return Array.isArray(e) ? e : [e];
|
|
8966
9010
|
}
|
|
8967
|
-
function
|
|
9011
|
+
function Td(e, t) {
|
|
8968
9012
|
return typeof t == "string" ? e === t : t instanceof RegExp ? t.test(e) : "exact" in t ? e === t.exact : "contains" in t ? e.toLowerCase().includes(t.contains.toLowerCase()) : !1;
|
|
8969
9013
|
}
|
|
8970
|
-
function
|
|
9014
|
+
function Ed(e) {
|
|
8971
9015
|
return e;
|
|
8972
9016
|
}
|
|
8973
|
-
function
|
|
9017
|
+
function Dd(e, t, n) {
|
|
8974
9018
|
return {
|
|
8975
9019
|
input: e,
|
|
8976
9020
|
output: t,
|
|
@@ -8979,7 +9023,7 @@ function Ed(e, t, n) {
|
|
|
8979
9023
|
scope: n?.scope ?? { kind: "system" }
|
|
8980
9024
|
};
|
|
8981
9025
|
}
|
|
8982
|
-
var
|
|
9026
|
+
var Od = {
|
|
8983
9027
|
accessories: "accessories",
|
|
8984
9028
|
addonPages: "addon-pages",
|
|
8985
9029
|
addonPagesSource: "addon-pages-source",
|
|
@@ -9065,7 +9109,7 @@ var Dd = {
|
|
|
9065
9109
|
zoneAnalytics: "zone-analytics",
|
|
9066
9110
|
zoneRules: "zone-rules",
|
|
9067
9111
|
zones: "zones"
|
|
9068
|
-
},
|
|
9112
|
+
}, kd = [
|
|
9069
9113
|
{
|
|
9070
9114
|
key: "accessories",
|
|
9071
9115
|
name: "accessories"
|
|
@@ -9406,7 +9450,7 @@ var Dd = {
|
|
|
9406
9450
|
key: "zones",
|
|
9407
9451
|
name: "zones"
|
|
9408
9452
|
}
|
|
9409
|
-
],
|
|
9453
|
+
], Ad = [
|
|
9410
9454
|
Ds,
|
|
9411
9455
|
vi,
|
|
9412
9456
|
bi,
|
|
@@ -9414,7 +9458,7 @@ var Dd = {
|
|
|
9414
9458
|
sr,
|
|
9415
9459
|
Ei,
|
|
9416
9460
|
wi,
|
|
9417
|
-
|
|
9461
|
+
Sl,
|
|
9418
9462
|
Ur,
|
|
9419
9463
|
to,
|
|
9420
9464
|
fr,
|
|
@@ -9442,7 +9486,7 @@ var Dd = {
|
|
|
9442
9486
|
_a,
|
|
9443
9487
|
us,
|
|
9444
9488
|
w,
|
|
9445
|
-
|
|
9489
|
+
nl,
|
|
9446
9490
|
As,
|
|
9447
9491
|
nc,
|
|
9448
9492
|
Br,
|
|
@@ -9456,7 +9500,7 @@ var Dd = {
|
|
|
9456
9500
|
Ps,
|
|
9457
9501
|
Fa,
|
|
9458
9502
|
Fc,
|
|
9459
|
-
|
|
9503
|
+
Jc,
|
|
9460
9504
|
Ja,
|
|
9461
9505
|
Ts,
|
|
9462
9506
|
Vo,
|
|
@@ -9492,7 +9536,7 @@ var Dd = {
|
|
|
9492
9536
|
Gn,
|
|
9493
9537
|
Yn,
|
|
9494
9538
|
vn
|
|
9495
|
-
],
|
|
9539
|
+
], jd = [
|
|
9496
9540
|
"accessories",
|
|
9497
9541
|
"battery",
|
|
9498
9542
|
"brightness",
|
|
@@ -9512,7 +9556,7 @@ var Dd = {
|
|
|
9512
9556
|
"ptz-autotrack",
|
|
9513
9557
|
"snapshot",
|
|
9514
9558
|
"switch"
|
|
9515
|
-
],
|
|
9559
|
+
], Md = Object.freeze({
|
|
9516
9560
|
"addonPages.listPages": {
|
|
9517
9561
|
capName: "addon-pages",
|
|
9518
9562
|
capScope: "system",
|
|
@@ -10761,6 +10805,12 @@ var Dd = {
|
|
|
10761
10805
|
addonId: null,
|
|
10762
10806
|
access: "view"
|
|
10763
10807
|
},
|
|
10808
|
+
"meshNetwork.logout": {
|
|
10809
|
+
capName: "mesh-network",
|
|
10810
|
+
capScope: "system",
|
|
10811
|
+
addonId: null,
|
|
10812
|
+
access: "create"
|
|
10813
|
+
},
|
|
10764
10814
|
"meshNetwork.startLogin": {
|
|
10765
10815
|
capName: "mesh-network",
|
|
10766
10816
|
capScope: "system",
|
|
@@ -10785,12 +10835,30 @@ var Dd = {
|
|
|
10785
10835
|
addonId: null,
|
|
10786
10836
|
access: "create"
|
|
10787
10837
|
},
|
|
10838
|
+
"meshOrchestrator.listProviderPeers": {
|
|
10839
|
+
capName: "mesh-orchestrator",
|
|
10840
|
+
capScope: "system",
|
|
10841
|
+
addonId: null,
|
|
10842
|
+
access: "view"
|
|
10843
|
+
},
|
|
10788
10844
|
"meshOrchestrator.listProviders": {
|
|
10789
10845
|
capName: "mesh-orchestrator",
|
|
10790
10846
|
capScope: "system",
|
|
10791
10847
|
addonId: null,
|
|
10792
10848
|
access: "view"
|
|
10793
10849
|
},
|
|
10850
|
+
"meshOrchestrator.logoutProvider": {
|
|
10851
|
+
capName: "mesh-orchestrator",
|
|
10852
|
+
capScope: "system",
|
|
10853
|
+
addonId: null,
|
|
10854
|
+
access: "create"
|
|
10855
|
+
},
|
|
10856
|
+
"meshOrchestrator.startLoginProvider": {
|
|
10857
|
+
capName: "mesh-orchestrator",
|
|
10858
|
+
capScope: "system",
|
|
10859
|
+
addonId: null,
|
|
10860
|
+
access: "create"
|
|
10861
|
+
},
|
|
10794
10862
|
"metricsProvider.collectSnapshot": {
|
|
10795
10863
|
capName: "metrics-provider",
|
|
10796
10864
|
capScope: "system",
|
|
@@ -11001,6 +11069,12 @@ var Dd = {
|
|
|
11001
11069
|
addonId: null,
|
|
11002
11070
|
access: "create"
|
|
11003
11071
|
},
|
|
11072
|
+
"nodes.getNodeAddons": {
|
|
11073
|
+
capName: "nodes",
|
|
11074
|
+
capScope: "system",
|
|
11075
|
+
addonId: null,
|
|
11076
|
+
access: "view"
|
|
11077
|
+
},
|
|
11004
11078
|
"nodes.renameNode": {
|
|
11005
11079
|
capName: "nodes",
|
|
11006
11080
|
capScope: "system",
|
|
@@ -12711,7 +12785,7 @@ var Dd = {
|
|
|
12711
12785
|
addonId: null,
|
|
12712
12786
|
access: "create"
|
|
12713
12787
|
}
|
|
12714
|
-
}),
|
|
12788
|
+
}), Nd = /* @__PURE__ */ "addon-pages.addon-pages-source.addon-routes.addon-settings.addon-widgets.addon-widgets-source.addons.admin-ui.advanced-notifier.alerts.audio-analysis.audio-analyzer.audio-codec.audio-metrics.auth-provider.authentication.backup.brightness.camera-credentials.camera-streams.decoder.device-discovery.device-export.device-manager.device-ops.device-provider.device-state.embedding-encoder.events.integrations.intercom.local-network.log-destination.mesh-network.mesh-orchestrator.metrics-provider.motion.motion-detection.motion-trigger.mqtt-broker.network-access.network-quality.nodes.notification-output.osd.pipeline-analytics.pipeline-executor.pipeline-orchestrator.pipeline-runner.platform-probe.ptz.ptz-autotrack.reboot.recording.recording-engine.remote-access.restreamer.settings-store.smtp-provider.snapshot.snapshot-provider.sso-bridge.storage.storage-provider.stream-broker.streaming-engine.switch.system.toast.turn-orchestrator.turn-provider.user-management.user-passkeys.webrtc.webrtc-session.zone-analytics.zone-rules.zones".split("."), Pd = [
|
|
12715
12789
|
"audio-analysis",
|
|
12716
12790
|
"audio-metrics",
|
|
12717
12791
|
"brightness",
|
|
@@ -12736,7 +12810,7 @@ var Dd = {
|
|
|
12736
12810
|
"zone-analytics",
|
|
12737
12811
|
"zone-rules",
|
|
12738
12812
|
"zones"
|
|
12739
|
-
],
|
|
12813
|
+
], Fd = /* @__PURE__ */ "addon-pages.addon-pages-source.addon-routes.addon-settings.addon-widgets.addon-widgets-source.addons.admin-ui.advanced-notifier.alerts.audio-analyzer.audio-codec.auth-provider.authentication.backup.decoder.device-export.device-manager.device-provider.device-state.embedding-encoder.integrations.local-network.log-destination.mesh-network.mesh-orchestrator.metrics-provider.mqtt-broker.network-access.network-quality.nodes.notification-output.pipeline-executor.pipeline-orchestrator.pipeline-runner.platform-probe.recording-engine.remote-access.restreamer.settings-store.smtp-provider.snapshot-provider.sso-bridge.storage.storage-provider.stream-broker.streaming-engine.system.toast.turn-orchestrator.turn-provider.user-management.user-passkeys.webrtc".split("."), Id = [
|
|
12740
12814
|
{
|
|
12741
12815
|
id: "camera-viewer",
|
|
12742
12816
|
label: "Camera viewer",
|
|
@@ -12789,25 +12863,25 @@ var Dd = {
|
|
|
12789
12863
|
}
|
|
12790
12864
|
]
|
|
12791
12865
|
}
|
|
12792
|
-
],
|
|
12866
|
+
], Ld = Object.freeze({
|
|
12793
12867
|
"device-export": "device-export",
|
|
12794
12868
|
"mesh-network": "mesh",
|
|
12795
12869
|
"mqtt-broker": "broker",
|
|
12796
12870
|
"network-access": "ingress",
|
|
12797
12871
|
"smtp-provider": "email"
|
|
12798
|
-
}),
|
|
12872
|
+
}), Rd = [
|
|
12799
12873
|
"device-export",
|
|
12800
12874
|
"mesh-network",
|
|
12801
12875
|
"mqtt-broker",
|
|
12802
12876
|
"network-access",
|
|
12803
12877
|
"smtp-provider"
|
|
12804
12878
|
];
|
|
12805
|
-
function
|
|
12879
|
+
function zd(e) {
|
|
12806
12880
|
let t = [];
|
|
12807
|
-
for (let [n, r] of Object.entries(
|
|
12881
|
+
for (let [n, r] of Object.entries(Ld)) r === e && t.push(n);
|
|
12808
12882
|
return t;
|
|
12809
12883
|
}
|
|
12810
|
-
function
|
|
12884
|
+
function Bd(e) {
|
|
12811
12885
|
try {
|
|
12812
12886
|
let t = new URL(e);
|
|
12813
12887
|
return !t.username && !t.password ? e : (t.username = "", t.password = "", t.toString());
|
|
@@ -12815,7 +12889,7 @@ function zd(e) {
|
|
|
12815
12889
|
return e;
|
|
12816
12890
|
}
|
|
12817
12891
|
}
|
|
12818
|
-
var
|
|
12892
|
+
var Vd = class {
|
|
12819
12893
|
constructor(e) {
|
|
12820
12894
|
this.capacity = e, this.items = Array.from({ length: e });
|
|
12821
12895
|
}
|
|
@@ -12835,7 +12909,7 @@ var Bd = class {
|
|
|
12835
12909
|
return this.count -= n, t;
|
|
12836
12910
|
}
|
|
12837
12911
|
};
|
|
12838
|
-
function
|
|
12912
|
+
function Hd(e, t, n) {
|
|
12839
12913
|
let r = {};
|
|
12840
12914
|
for (let i of Object.keys(n)) r[i] = (n) => e.addons.custom.mutate({
|
|
12841
12915
|
addonId: t,
|
|
@@ -12845,4 +12919,4 @@ function Vd(e, t, n) {
|
|
|
12845
12919
|
return r;
|
|
12846
12920
|
}
|
|
12847
12921
|
//#endregion
|
|
12848
|
-
export { Ae as ACCESSORY_LABEL, kd as ALL_CAPABILITY_DEFINITIONS, we as APPLE_SA_TO_MACRO, ia as AUDIO_BACKEND_CHOICES, Se as AUDIO_MACRO_LABELS, Es as AccessoriesStatusSchema, C as AccessoryKind, ni as AddBrokerInputSchema, ml as AddonAutoUpdateSchema, cl as AddonListItemSchema, yi as AddonPageDeclarationSchema, _i as AddonPageInfoSchema, Zi as AgentLoadSummarySchema, dr as AlertSchema, cr as AlertSeveritySchema, ur as AlertSourceSchema, lr as AlertStatusSchema, mc as ApiKeyRecordSchema, yc as ApiKeySummarySchema, kr as ArchiveEntrySchema, Ar as ArchiveManifestSchema, ta as AudioAnalysisResultSchema, na as AudioAnalysisSettingsSchema, Ft as AudioChunkInputSchema, We as AudioClassSummarySchema, Lt as AudioClassificationLabelSchema, ra as AudioClassificationResultSchema, ca as AudioCodecInfoSchema, la as AudioDecodeSessionConfigSchema, ua as AudioEncodeSessionConfigSchema, fa as AudioEncodedChunkSchema, Io as AudioEventSchema, It as AudioLevelSchema, Ke as AudioMetricsHistoryPointSchema, qe as AudioMetricsHistorySchema, Ge as AudioMetricsSnapshotSchema, da as AudioPcmChunkSchema, ja as AuthProviderInfoSchema, ka as AuthResultSchema, pl as AutoUpdateSettingsSchema, Xc as AvailableIntegrationTypeSchema, wu as BACKEND_TO_FORMAT, Ne as BATTERY_DEVICE_PROFILE, Er as BackupDestinationInfoSchema, Or as BackupEntrySchema, Pl as BaseAddon, qu as BaseDevice, Yu as BaseDeviceProvider, Ye as BatteryStatusSchema, A as BoundingBoxSchema, Ze as BrightnessStatusSchema, gt as BrokerAudioClientSchema, _t as BrokerClientsSchema, ti as BrokerConnectionDetailsSchema, ht as BrokerDecodedClientSchema, ei as BrokerInfoSchema, mt as BrokerRtspClientSchema, lt as BrokerStatsSchema, ct as BrokerStatusSchema, $e as CAM_PROFILE_ORDER, Dd as CAPABILITY_NAMES, Od as CAPABILITY_ROUTER_KEYS, Ad as CAP_NAMES_WITH_STATUS, Id as CAP_PROVIDER_KIND_MAP, Lu as COCO_80_LABELS, zu as COCO_TO_MACRO, D as CamProfileSchema, et as CamStreamKindSchema, tt as CamStreamResolutionSchema, gs as CameraCredentialsSchema, _s as CameraCredentialsStatusSchema, Vt as CameraMetricsSchema, Ht as CameraMetricsWithDeviceIdSchema, nt as CameraStreamSchema, fc as CapScopeSchema, $i as CapabilityBindingsSchema, ke as ChargingStatus, Nc as ClientNetworkStatsSchema, Vc as ClusterAddonNodeDeploymentSchema, Hc as ClusterAddonStatusEntrySchema, Fr as CollectionColumnSchema, Ir as CollectionIndexSchema, ya as ConfigEntrySchema, ir as ConfigSectionWithValuesSchema, rr as ConfigTabDeclarationSchema, bc as CreateApiKeyInputSchema, xc as CreateApiKeyResultSchema, Qc as CreateIntegrationInputSchema, Cc as CreateScopedTokenInputSchema, wc as CreateScopedTokenResultSchema, _c as CreateUserInputSchema, bl as CustomActionInputSchema, Tl as DEFAULT_ADDON_GROUP, El as DEFAULT_ADDON_PLACEMENT, aa as DEFAULT_AUDIO_ANALYZER_CONFIG, Mi as DEFAULT_DECODER_HWACCEL_CONFIG, iu as DEFAULT_FEATURES, ql as DEFAULT_LOCATION_SUBDIRS, su as DEFAULT_RETENTION, Nd as DEVICE_CAP_NAMES, Pe as DEVICE_PROFILES, Ve as DEVICE_SETTINGS_CONTRIBUTION_METHODS, He as DEVICE_STATUS_METHOD, Bu as DEVICE_TYPE_INFO, st as DecodedFrameSchema, Xi as DecoderAssignmentSchema, be as DecoderSessionConfigSchema, ye as DecoderStatsSchema, el as DeleteIntegrationResultSchema, $t as DetectorOutputSchema, Vu as DeviceConfig, Ot as DeviceDiscoveryStatusSchema, pi as DeviceExportExposeInputSchema, ui as DeviceExportStatusSchema, mi as DeviceExportUnexposeInputSchema, Oe as DeviceFeature, va as DeviceInfoSchema, Pc as DeviceNetworkStatsSchema, S as DeviceRole, Hu as DeviceRuntimeState, Ie as DeviceStatusSchema, x as DeviceType, Dt as DiscoveredChildDeviceSchema, Et as DiscoveredChildStatusSchema, Zn as DiscoveredDeviceSchema, wl as DisposerChain, jt as DoorbellPressEventSchema, At as DoorbellStatusSchema, Su as ElementConfigStore, ga as EmbeddingInfoSchema, ha as EmbeddingResultSchema, ot as EncodedPacketSchema, Ti as EnrichedWidgetMetadataSchema, X as EventCategory, ls as EventItemSchema, ko as EventKindSchema, cu as EventSourceType, fi as ExposedDeviceSchema, Fi as ExposedResourceSchema, Oc as FeatureManifestSchema, Re as FeatureProbeStatusSchema, k as FrameInputSchema, St as GetStreamWithCodecInputSchema, Qi as GlobalMetricsSchema, uu as HF_BASE_URL, lu as HF_REPO, ji as HWACCEL_OPTIONS, kc as HealthStatusSchema, Wn as HistoryPointSchema, Hn as HistoryResolutionEnum, ll as InstalledPackageSchema, Yc as IntegrationLiteSchema, Jc as IntegrationWithStateSchema, Os as IntercomAbilitySchema, ks as IntercomStatusSchema, Md as KNOWN_CAP_NAMES, jr as LocationStatSchema, zr as LogEntrySchema, Rr as LogLevelSchema, vl as LogStreamEntrySchema, Ru as MACRO_LABELS, jd as METHOD_ACCESS_MAP, de as MODEL_FORMATS, Lo as MediaFileSchema, K as MethodAccessSchema, Rt as MotionAnalysisResultSchema, Po as MotionEventSchema, On as MotionOnMotionChangedDataSchema, j as MotionRegionSchema, yn as MotionSourceEnum, bn as MotionSourcesSchema, Dn as MotionStatusSchema, jn as MotionTriggerRuntimeStateSchema, An as MotionTriggerStatusSchema, ci as MqttBrokerStatusSchema, Ms as NativeDetectionSchema, js as NativeObjectClassEnum, Ns as NativeObjectDetectionStatusSchema, Na as NetworkAccessStatusSchema, Ac as NetworkAddressSchema, W as NetworkEndpointSchema, $a as NotificationHistoryEntrySchema, Za as NotificationRuleSchema, qa as NotificationSchema, Fo as ObjectEventSchema, Bt as OrchestratorMetricsSchema, bs as OsdOverlayKindEnum, ws as OsdOverlayPatchSchema, Ss as OsdOverlaySchema, xs as OsdPositionEnum, Cs as OsdStatusSchema, Sl as PIPELINE_FLOW_CAPABILITY_NAMES, Cl as PIPELINE_OWNER_CAPABILITY_NAMES, Ld as PROVIDER_KIND_CAP_NAMES, Eu as PYTHON_SCRIPT, ul as PackageUpdateSchema, dl as PackageVersionInfoSchema, Kr as PasskeySummarySchema, U as PcmSampleFormatSchema, zn as PerScopeBreakdownSchema, Yi as PipelineAssignmentSchema, Gt as PipelineDefaultStepSchema, N as PipelineEngineChoiceSchema, mn as PipelineRunResultBridge, P as PipelineStepInputSchema, vt as PlaceholderReasonSchema, _n as PolygonPointSchema, rt as ProfileSlotSchema, O as ProfileSlotStatusSchema, Xn as ProviderStatusSchema, Fn as PtzAutotrackRuntimeStateSchema, Nn as PtzAutotrackSettingsSchema, z as PtzAutotrackStatusSchema, Pn as PtzAutotrackTargetOptionSchema, ss as PtzMoveCommandSchema, os as PtzPositionSchema, as as PtzPresetSchema, Nr as QueryFilterSchema, ou as RECOGNITION_TYPES, du as RUNTIME_DEFAULTS, Tu as RUNTIME_TO_FORMAT, Ul as ReadinessRegistry, Bl as ReadinessTimeoutError, Pi as RegisteredStreamSchema, Ia as RemoteAccessEndpointSchema, La as RemoteAccessProviderInfoSchema, xn as ReportMotionInputSchema, Bd as RingBuffer, Ct as RtpSourceSchema, pt as RtspRestreamEntrySchema, Sn as RunnerCameraConfigSchema, Cn as RunnerCameraDeviceUIFields, wn as RunnerLocalLoadSchema, Tn as RunnerLocalMetricsSchema, Fd as SCOPE_PRESETS, ve as STORAGE_LOCATION_CARDINALITY, Kl as STORAGE_LOCATION_TYPES, Jl as STREAM_QUALITY_LABELS, au as SUB_DETECTION_TYPES, Pd as SYSTEM_CAP_NAMES, hc as ScopedTokenSchema, Sc as ScopedTokenSummarySchema, fl as SearchResultSchema, ds as SegmentSchema, Jr as SendEmailInputSchema, Yr as SendEmailResultSchema, ar as SettingsPatchSchema, Pr as SettingsRecordSchema, V as SettingsSchemaWithValuesSchema, or as SettingsUpdateResultSchema, Xr as SmtpStatusSchema, Ua as SnapshotImageSchema, Pt as SpatialDetectionSchema, Wr as SsoBridgeClaimsSchema, oi as StartEmbeddedInputSchema, br as StorageAbortUploadInputSchema, xr as StorageBeginDownloadInputSchema, Sr as StorageBeginDownloadResultSchema, gr as StorageBeginUploadInputSchema, _r as StorageBeginUploadResultSchema, wr as StorageEndDownloadInputSchema, yr as StorageFinalizeUploadInputSchema, b as StorageLocationRefSchema, y as StorageLocationSchema, v as StorageLocationTypeSchema, mr as StorageProviderInfoSchema, Cr as StorageReadChunkInputSchema, hr as StorageTestLocationResultSchema, vr as StorageWriteChunkInputSchema, ut as StreamFormatSchema, dt as StreamInfoSchema, Mc as StreamNetworkStatsSchema, it as StreamSourceEntrySchema, at as StreamSourceSchema, Ln as SwitchStatusSchema, rs as SystemMetricsSchema, xd as SystemMirror, Zc as TestConnectionResultSchema, Ic as ToastSchema, q as TokenScopeSchema, Bc as TopologyNodeSchema, zc as TopologyProcessSchema, Rc as TopologyServiceSchema, Mo as TrackSchema, Oo as TrackStateSchema, Bo as TrackedDetectionSchema, Va as TurnProviderInfoSchema, za as TurnServerSchema, $c as UpdateIntegrationInputSchema, vc as UpdateUserInputSchema, pc as UserRecordSchema, gc as UserSummarySchema, fe as WELL_KNOWN_TABS, pe as WELL_KNOWN_TAB_MAP, Bi as WebrtcStreamChoiceSchema, zi as WebrtcStreamTargetSchema, xi as WidgetHostEnum, Ci as WidgetMetadataSchema, Si as WidgetSizeEnum, Ce as YAMNET_TO_MACRO, gn as ZoneKindEnum, Kn as ZoneRuleModeEnum, B as ZoneRuleSchema, Jn as ZoneRuleStageEnum, qn as ZoneRulesArraySchema, F as ZoneSchema, Bn as ZoneScopeBreakdownSchema, Ds as accessoriesCapability, je as accessoryStableId, vi as addonPagesCapability, bi as addonPagesSourceCapability, Ai as addonRoutesCapability, sr as addonSettingsCapability, Ei as addonWidgetsCapability, wi as addonWidgetsSourceCapability, xl as addonsCapability, Ur as adminUiCapability, to as advancedNotifierCapability, fr as alertsCapability, _u as asBoolean, mu as asJsonArray, pu as asJsonObject, gu as asNumber, hu as asString, sa as audioAnalysisCapability, oa as audioAnalyzerCapability, ma as audioCodecCapability, Je as audioMetricsCapability, Aa as authProviderCapability, Ma as authenticationCapability, ru as autoAssignProfiles, Mr as backupCapability, Xe as batteryCapability, Vd as bindAddonActions, Qe as brightnessCapability, Il as buildAddonRouteProvider, vs as cameraCredentialsCapability, Tt as cameraStreamsCapability, Ql as classifyStream, Zl as classifyStreams, xu as cosineSimilarity, dd as createDeviceProxy, Ml as createEvent, cd as createLazyTrpcSource, ld as createMirrorSource, Gu as createRuntimeStateBridge, $ as createSliceHandle, hd as createSystemProxy, Ed as customAction, Ni as decoderCapability, Td as defineCustomActions, Do as detectionPipelineCapability, kt as deviceDiscoveryCapability, hi as deviceExportCapability, Da as deviceManagerCapability, Me as deviceMatchesProfile, hs as deviceOpsCapability, nr as deviceProviderCapability, Oa as deviceStateCapability, Le as deviceStatusCapability, Mt as doorbellCapability, _a as embeddingEncoderCapability, Gl as emitDownForOwnedCaps, Nl as emitReadiness, xe as errMsg, fd as evaluateZoneRules, E as event, us as eventsCapability, Ue as expandCapMethods, w as featureProbeCapability, Au as formatForBackend, ju as formatForRuntime, De as getAudioMacroClassIds, Rd as getCapsByProviderKind, bu as hfModelUrl, he as hydrateSchema, tl as integrationsCapability, As as intercomCapability, Ol as isAgentOnlyPlacement, Dl as isDeployableToAgent, jl as isEvent, nc as localNetworkCapability, Br as logDestinationCapability, Ee as mapAudioLabelToMacro, zd as maskUrlCredentials, oc as meshNetworkCapability, lc as meshOrchestratorCapability, T as method, is as metricsProviderCapability, kn as motionCapability, zt as motionDetectionCapability, Mn as motionTriggerCapability, li as mqttBrokerCapability, Ps as nativeObjectDetectionCapability, Fa as networkAccessCapability, Fc as networkQualityCapability, qc as nodesCapability, Fl as normalizeAddonInitResult, Ja as notificationOutputCapability, Ts as osdCapability, nu as parseCameraStreamConfig, yu as parseJsonArray, vu as parseJsonObject, fu as parseJsonUnknown, Vo as pipelineAnalyticsCapability, hn as pipelineExecutorCapability, ea as pipelineOrchestratorCapability, En as pipelineRunnerCapability, Ys as platformProbeCapability, In as ptzAutotrackCapability, cs as ptzCapability, Mu as pythonScriptForBackend, Vl as readinessKey, ys as rebootCapability, fs as recordingCapability, Eo as recordingEngineCapability, Ra as remoteAccessCapability, Nu as requiresPython, Y as resolveAddonExecution, kl as resolveAddonGroup, Al as resolveAddonPlacement, ku as resolveAddonRuntime, Du as resolveDetectionRuntime, Fe as resolveDeviceProfile, Ou as resolveModelFormat, Ii as restreamerCapability, Pu as runInferenceStep, Z as scopeKey, Lr as settingsStoreCapability, Zr as smtpProviderCapability, Ga as snapshotCapability, Ka as snapshotProviderCapability, Gr as ssoBridgeCapability, pr as storageCapability, Tr as storageProviderCapability, wt as streamBrokerCapability, Xl as streamPixels, Yl as streamQualityLabel, ft as streamingEngineCapability, Rn as switchCapability, jc as systemCapability, Ju as toDeviceSummary, $l as toStreamSourceEntry, Lc as toastCapability, Ha as turnOrchestratorCapability, Ba as turnProviderCapability, Dc as userManagementCapability, qr as userPasskeysCapability, Ri as webrtcCapability, Li as webrtcClientHintsSchema, Vi as webrtcSessionCapability, Qu as zodEntriesToConfigUI, Gn as zoneAnalyticsCapability, Yn as zoneRulesCapability, vn as zonesCapability };
|
|
12922
|
+
export { Ae as ACCESSORY_LABEL, Ad as ALL_CAPABILITY_DEFINITIONS, we as APPLE_SA_TO_MACRO, ia as AUDIO_BACKEND_CHOICES, Se as AUDIO_MACRO_LABELS, Es as AccessoriesStatusSchema, C as AccessoryKind, ni as AddBrokerInputSchema, hl as AddonAutoUpdateSchema, ll as AddonListItemSchema, yi as AddonPageDeclarationSchema, _i as AddonPageInfoSchema, Zi as AgentLoadSummarySchema, dr as AlertSchema, cr as AlertSeveritySchema, ur as AlertSourceSchema, lr as AlertStatusSchema, mc as ApiKeyRecordSchema, yc as ApiKeySummarySchema, kr as ArchiveEntrySchema, Ar as ArchiveManifestSchema, ta as AudioAnalysisResultSchema, na as AudioAnalysisSettingsSchema, Ft as AudioChunkInputSchema, We as AudioClassSummarySchema, Lt as AudioClassificationLabelSchema, ra as AudioClassificationResultSchema, ca as AudioCodecInfoSchema, la as AudioDecodeSessionConfigSchema, ua as AudioEncodeSessionConfigSchema, fa as AudioEncodedChunkSchema, Io as AudioEventSchema, It as AudioLevelSchema, Ke as AudioMetricsHistoryPointSchema, qe as AudioMetricsHistorySchema, Ge as AudioMetricsSnapshotSchema, da as AudioPcmChunkSchema, ja as AuthProviderInfoSchema, ka as AuthResultSchema, ml as AutoUpdateSettingsSchema, Zc as AvailableIntegrationTypeSchema, Tu as BACKEND_TO_FORMAT, Ne as BATTERY_DEVICE_PROFILE, Er as BackupDestinationInfoSchema, Or as BackupEntrySchema, Fl as BaseAddon, Ju as BaseDevice, Xu as BaseDeviceProvider, Ye as BatteryStatusSchema, A as BoundingBoxSchema, Ze as BrightnessStatusSchema, gt as BrokerAudioClientSchema, _t as BrokerClientsSchema, ti as BrokerConnectionDetailsSchema, ht as BrokerDecodedClientSchema, ei as BrokerInfoSchema, mt as BrokerRtspClientSchema, lt as BrokerStatsSchema, ct as BrokerStatusSchema, $e as CAM_PROFILE_ORDER, Od as CAPABILITY_NAMES, kd as CAPABILITY_ROUTER_KEYS, jd as CAP_NAMES_WITH_STATUS, Ld as CAP_PROVIDER_KIND_MAP, Ru as COCO_80_LABELS, Bu as COCO_TO_MACRO, D as CamProfileSchema, et as CamStreamKindSchema, tt as CamStreamResolutionSchema, gs as CameraCredentialsSchema, _s as CameraCredentialsStatusSchema, Vt as CameraMetricsSchema, Ht as CameraMetricsWithDeviceIdSchema, nt as CameraStreamSchema, fc as CapScopeSchema, $i as CapabilityBindingsSchema, ke as ChargingStatus, Nc as ClientNetworkStatsSchema, Vc as ClusterAddonNodeDeploymentSchema, Hc as ClusterAddonStatusEntrySchema, Fr as CollectionColumnSchema, Ir as CollectionIndexSchema, ya as ConfigEntrySchema, ir as ConfigSectionWithValuesSchema, rr as ConfigTabDeclarationSchema, bc as CreateApiKeyInputSchema, xc as CreateApiKeyResultSchema, $c as CreateIntegrationInputSchema, Cc as CreateScopedTokenInputSchema, wc as CreateScopedTokenResultSchema, _c as CreateUserInputSchema, xl as CustomActionInputSchema, El as DEFAULT_ADDON_GROUP, Dl as DEFAULT_ADDON_PLACEMENT, aa as DEFAULT_AUDIO_ANALYZER_CONFIG, Mi as DEFAULT_DECODER_HWACCEL_CONFIG, au as DEFAULT_FEATURES, Jl as DEFAULT_LOCATION_SUBDIRS, cu as DEFAULT_RETENTION, Pd as DEVICE_CAP_NAMES, Pe as DEVICE_PROFILES, Ve as DEVICE_SETTINGS_CONTRIBUTION_METHODS, He as DEVICE_STATUS_METHOD, Vu as DEVICE_TYPE_INFO, st as DecodedFrameSchema, Xi as DecoderAssignmentSchema, be as DecoderSessionConfigSchema, ye as DecoderStatsSchema, tl as DeleteIntegrationResultSchema, $t as DetectorOutputSchema, Hu as DeviceConfig, Ot as DeviceDiscoveryStatusSchema, pi as DeviceExportExposeInputSchema, ui as DeviceExportStatusSchema, mi as DeviceExportUnexposeInputSchema, Oe as DeviceFeature, va as DeviceInfoSchema, Pc as DeviceNetworkStatsSchema, S as DeviceRole, Uu as DeviceRuntimeState, Ie as DeviceStatusSchema, x as DeviceType, Dt as DiscoveredChildDeviceSchema, Et as DiscoveredChildStatusSchema, Zn as DiscoveredDeviceSchema, Tl as DisposerChain, jt as DoorbellPressEventSchema, At as DoorbellStatusSchema, Cu as ElementConfigStore, ga as EmbeddingInfoSchema, ha as EmbeddingResultSchema, ot as EncodedPacketSchema, Ti as EnrichedWidgetMetadataSchema, X as EventCategory, ls as EventItemSchema, ko as EventKindSchema, lu as EventSourceType, fi as ExposedDeviceSchema, Fi as ExposedResourceSchema, Oc as FeatureManifestSchema, Re as FeatureProbeStatusSchema, k as FrameInputSchema, St as GetStreamWithCodecInputSchema, Qi as GlobalMetricsSchema, du as HF_BASE_URL, uu as HF_REPO, ji as HWACCEL_OPTIONS, kc as HealthStatusSchema, Wn as HistoryPointSchema, Hn as HistoryResolutionEnum, ul as InstalledPackageSchema, Xc as IntegrationLiteSchema, Yc as IntegrationWithStateSchema, Os as IntercomAbilitySchema, ks as IntercomStatusSchema, Nd as KNOWN_CAP_NAMES, jr as LocationStatSchema, zr as LogEntrySchema, Rr as LogLevelSchema, yl as LogStreamEntrySchema, zu as MACRO_LABELS, Md as METHOD_ACCESS_MAP, de as MODEL_FORMATS, Lo as MediaFileSchema, K as MethodAccessSchema, Rt as MotionAnalysisResultSchema, Po as MotionEventSchema, On as MotionOnMotionChangedDataSchema, j as MotionRegionSchema, yn as MotionSourceEnum, bn as MotionSourcesSchema, Dn as MotionStatusSchema, jn as MotionTriggerRuntimeStateSchema, An as MotionTriggerStatusSchema, ci as MqttBrokerStatusSchema, Ms as NativeDetectionSchema, js as NativeObjectClassEnum, Ns as NativeObjectDetectionStatusSchema, Na as NetworkAccessStatusSchema, Ac as NetworkAddressSchema, W as NetworkEndpointSchema, $a as NotificationHistoryEntrySchema, Za as NotificationRuleSchema, qa as NotificationSchema, Fo as ObjectEventSchema, Bt as OrchestratorMetricsSchema, bs as OsdOverlayKindEnum, ws as OsdOverlayPatchSchema, Ss as OsdOverlaySchema, xs as OsdPositionEnum, Cs as OsdStatusSchema, Cl as PIPELINE_FLOW_CAPABILITY_NAMES, wl as PIPELINE_OWNER_CAPABILITY_NAMES, Rd as PROVIDER_KIND_CAP_NAMES, Du as PYTHON_SCRIPT, dl as PackageUpdateSchema, fl as PackageVersionInfoSchema, Kr as PasskeySummarySchema, U as PcmSampleFormatSchema, zn as PerScopeBreakdownSchema, Yi as PipelineAssignmentSchema, Gt as PipelineDefaultStepSchema, N as PipelineEngineChoiceSchema, mn as PipelineRunResultBridge, P as PipelineStepInputSchema, vt as PlaceholderReasonSchema, _n as PolygonPointSchema, rt as ProfileSlotSchema, O as ProfileSlotStatusSchema, Xn as ProviderStatusSchema, Fn as PtzAutotrackRuntimeStateSchema, Nn as PtzAutotrackSettingsSchema, z as PtzAutotrackStatusSchema, Pn as PtzAutotrackTargetOptionSchema, ss as PtzMoveCommandSchema, os as PtzPositionSchema, as as PtzPresetSchema, Nr as QueryFilterSchema, su as RECOGNITION_TYPES, fu as RUNTIME_DEFAULTS, Eu as RUNTIME_TO_FORMAT, Wl as ReadinessRegistry, Vl as ReadinessTimeoutError, Pi as RegisteredStreamSchema, Ia as RemoteAccessEndpointSchema, La as RemoteAccessProviderInfoSchema, xn as ReportMotionInputSchema, Vd as RingBuffer, Ct as RtpSourceSchema, pt as RtspRestreamEntrySchema, Sn as RunnerCameraConfigSchema, Cn as RunnerCameraDeviceUIFields, wn as RunnerLocalLoadSchema, Tn as RunnerLocalMetricsSchema, Id as SCOPE_PRESETS, ve as STORAGE_LOCATION_CARDINALITY, ql as STORAGE_LOCATION_TYPES, Yl as STREAM_QUALITY_LABELS, ou as SUB_DETECTION_TYPES, Fd as SYSTEM_CAP_NAMES, hc as ScopedTokenSchema, Sc as ScopedTokenSummarySchema, pl as SearchResultSchema, ds as SegmentSchema, Jr as SendEmailInputSchema, Yr as SendEmailResultSchema, ar as SettingsPatchSchema, Pr as SettingsRecordSchema, V as SettingsSchemaWithValuesSchema, or as SettingsUpdateResultSchema, Xr as SmtpStatusSchema, Ua as SnapshotImageSchema, Pt as SpatialDetectionSchema, Wr as SsoBridgeClaimsSchema, oi as StartEmbeddedInputSchema, br as StorageAbortUploadInputSchema, xr as StorageBeginDownloadInputSchema, Sr as StorageBeginDownloadResultSchema, gr as StorageBeginUploadInputSchema, _r as StorageBeginUploadResultSchema, wr as StorageEndDownloadInputSchema, yr as StorageFinalizeUploadInputSchema, b as StorageLocationRefSchema, y as StorageLocationSchema, v as StorageLocationTypeSchema, mr as StorageProviderInfoSchema, Cr as StorageReadChunkInputSchema, hr as StorageTestLocationResultSchema, vr as StorageWriteChunkInputSchema, ut as StreamFormatSchema, dt as StreamInfoSchema, Mc as StreamNetworkStatsSchema, it as StreamSourceEntrySchema, at as StreamSourceSchema, Ln as SwitchStatusSchema, rs as SystemMetricsSchema, Sd as SystemMirror, Qc as TestConnectionResultSchema, Ic as ToastSchema, q as TokenScopeSchema, Bc as TopologyNodeSchema, zc as TopologyProcessSchema, Rc as TopologyServiceSchema, Mo as TrackSchema, Oo as TrackStateSchema, Bo as TrackedDetectionSchema, Va as TurnProviderInfoSchema, za as TurnServerSchema, el as UpdateIntegrationInputSchema, vc as UpdateUserInputSchema, pc as UserRecordSchema, gc as UserSummarySchema, fe as WELL_KNOWN_TABS, pe as WELL_KNOWN_TAB_MAP, Bi as WebrtcStreamChoiceSchema, zi as WebrtcStreamTargetSchema, xi as WidgetHostEnum, Ci as WidgetMetadataSchema, Si as WidgetSizeEnum, Ce as YAMNET_TO_MACRO, gn as ZoneKindEnum, Kn as ZoneRuleModeEnum, B as ZoneRuleSchema, Jn as ZoneRuleStageEnum, qn as ZoneRulesArraySchema, F as ZoneSchema, Bn as ZoneScopeBreakdownSchema, Ds as accessoriesCapability, je as accessoryStableId, vi as addonPagesCapability, bi as addonPagesSourceCapability, Ai as addonRoutesCapability, sr as addonSettingsCapability, Ei as addonWidgetsCapability, wi as addonWidgetsSourceCapability, Sl as addonsCapability, Ur as adminUiCapability, to as advancedNotifierCapability, fr as alertsCapability, vu as asBoolean, hu as asJsonArray, mu as asJsonObject, _u as asNumber, gu as asString, sa as audioAnalysisCapability, oa as audioAnalyzerCapability, ma as audioCodecCapability, Je as audioMetricsCapability, Aa as authProviderCapability, Ma as authenticationCapability, iu as autoAssignProfiles, Mr as backupCapability, Xe as batteryCapability, Hd as bindAddonActions, Qe as brightnessCapability, Ll as buildAddonRouteProvider, vs as cameraCredentialsCapability, Tt as cameraStreamsCapability, $l as classifyStream, Ql as classifyStreams, Su as cosineSimilarity, fd as createDeviceProxy, Nl as createEvent, ld as createLazyTrpcSource, ud as createMirrorSource, Ku as createRuntimeStateBridge, $ as createSliceHandle, gd as createSystemProxy, Dd as customAction, Ni as decoderCapability, Ed as defineCustomActions, Do as detectionPipelineCapability, kt as deviceDiscoveryCapability, hi as deviceExportCapability, Da as deviceManagerCapability, Me as deviceMatchesProfile, hs as deviceOpsCapability, nr as deviceProviderCapability, Oa as deviceStateCapability, Le as deviceStatusCapability, Mt as doorbellCapability, _a as embeddingEncoderCapability, Kl as emitDownForOwnedCaps, Pl as emitReadiness, xe as errMsg, pd as evaluateZoneRules, E as event, us as eventsCapability, Ue as expandCapMethods, w as featureProbeCapability, ju as formatForBackend, Mu as formatForRuntime, De as getAudioMacroClassIds, zd as getCapsByProviderKind, xu as hfModelUrl, he as hydrateSchema, nl as integrationsCapability, As as intercomCapability, kl as isAgentOnlyPlacement, Ol as isDeployableToAgent, Ml as isEvent, nc as localNetworkCapability, Br as logDestinationCapability, Ee as mapAudioLabelToMacro, Bd as maskUrlCredentials, oc as meshNetworkCapability, lc as meshOrchestratorCapability, T as method, is as metricsProviderCapability, kn as motionCapability, zt as motionDetectionCapability, Mn as motionTriggerCapability, li as mqttBrokerCapability, Ps as nativeObjectDetectionCapability, Fa as networkAccessCapability, Fc as networkQualityCapability, Jc as nodesCapability, Il as normalizeAddonInitResult, Ja as notificationOutputCapability, Ts as osdCapability, ru as parseCameraStreamConfig, bu as parseJsonArray, yu as parseJsonObject, pu as parseJsonUnknown, Vo as pipelineAnalyticsCapability, hn as pipelineExecutorCapability, ea as pipelineOrchestratorCapability, En as pipelineRunnerCapability, Ys as platformProbeCapability, In as ptzAutotrackCapability, cs as ptzCapability, Nu as pythonScriptForBackend, Hl as readinessKey, ys as rebootCapability, fs as recordingCapability, Eo as recordingEngineCapability, Ra as remoteAccessCapability, Pu as requiresPython, Y as resolveAddonExecution, Al as resolveAddonGroup, jl as resolveAddonPlacement, Au as resolveAddonRuntime, Ou as resolveDetectionRuntime, Fe as resolveDeviceProfile, ku as resolveModelFormat, Ii as restreamerCapability, Fu as runInferenceStep, Z as scopeKey, Lr as settingsStoreCapability, Zr as smtpProviderCapability, Ga as snapshotCapability, Ka as snapshotProviderCapability, Gr as ssoBridgeCapability, pr as storageCapability, Tr as storageProviderCapability, wt as streamBrokerCapability, Zl as streamPixels, Xl as streamQualityLabel, ft as streamingEngineCapability, Rn as switchCapability, jc as systemCapability, Yu as toDeviceSummary, eu as toStreamSourceEntry, Lc as toastCapability, Ha as turnOrchestratorCapability, Ba as turnProviderCapability, Dc as userManagementCapability, qr as userPasskeysCapability, Ri as webrtcCapability, Li as webrtcClientHintsSchema, Vi as webrtcSessionCapability, $u as zodEntriesToConfigUI, Gn as zoneAnalyticsCapability, Yn as zoneRulesCapability, vn as zonesCapability };
|