@camstack/addon-admin-ui 1.2.639 → 1.2.640
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/CHANGELOG.md +7 -0
- package/dist/assets/{Addons-Dx78Opef.js → Addons-DdPzePEg.js} +3 -3
- package/dist/assets/{AdminPage-2JBGQLIE.js → AdminPage-Bx3Zddhd.js} +1 -1
- package/dist/assets/{AdminSectionedPage-C1pmv0FK.js → AdminSectionedPage-NmuaR24u.js} +1 -1
- package/dist/assets/{AiProfiles--KmMlsXe.js → AiProfiles-DyP-rxts.js} +2 -2
- package/dist/assets/{BootstrapSettingsForm-CIsZGzFZ.js → BootstrapSettingsForm-DcVyl956.js} +1 -1
- package/dist/assets/{Build-BASEhzU2.js → Build-CFqeg7F5.js} +3 -3
- package/dist/assets/{Calendars-OJ569lr8.js → Calendars-DiTqm_9n.js} +1 -1
- package/dist/assets/{CameraGrids-bGypmfNv.js → CameraGrids-D9Me_qI5.js} +1 -1
- package/dist/assets/{Cluster-xmSclQJj.js → Cluster-BgACH3Ob.js} +1 -1
- package/dist/assets/{CompositionBlockEditor-CnUybhVt.js → CompositionBlockEditor-CPL8HxNy.js} +2 -2
- package/dist/assets/{CompositionEditorPage-tNB_nWa4.js → CompositionEditorPage-BjYhCEY8.js} +1 -1
- package/dist/assets/{Data-CkIhJKyt.js → Data-C6ouohrn.js} +2 -2
- package/dist/assets/DeviceDetail-gU6d3Mhf.js +2 -0
- package/dist/assets/{Devices-B_JxtDSO.js → Devices-BrD0HFbV.js} +1 -1
- package/dist/assets/{EmbedDevicePage-BEsiC3Ji.js → EmbedDevicePage-DH_FMptC.js} +1 -1
- package/dist/assets/{EmbedPlayerPage-CJ-OAShs.js → EmbedPlayerPage-CSj7w6uE.js} +1 -1
- package/dist/assets/{History-NfIRmbvF.js → History-BB029srN.js} +1 -1
- package/dist/assets/{Identity-DXZthsyb.js → Identity-BPLJEabw.js} +1 -1
- package/dist/assets/InstancesTable-HtGIceoE.js +1 -0
- package/dist/assets/IntegrationDetail-_bD7_xo4.js +1 -0
- package/dist/assets/{Integrations-B2XGssEG.js → Integrations-BDXAnQ8J.js} +2 -2
- package/dist/assets/Integrations-meMKpbLv.js +1 -0
- package/dist/assets/{Library-CaT2azRV.js → Library-D4k0yMV-.js} +1 -1
- package/dist/assets/{Locations-BYtDEb4x.js → Locations-DgEyIQpA.js} +1 -1
- package/dist/assets/{Logs-DT2Ox42b.js → Logs-3xRjA-vl.js} +1 -1
- package/dist/assets/{MaskShapeCanvas-RlZ4d0a7.js → MaskShapeCanvas-DJ_OiP9l.js} +1 -1
- package/dist/assets/{MotionZonesSettings-KoMlizSC.js → MotionZonesSettings-BQdso6sG.js} +1 -1
- package/dist/assets/{MyAccess-CH3uyB60.js → MyAccess-BKqT5pC4.js} +1 -1
- package/dist/assets/{Network-D1hvb3Tq.js → Network-BHofs-hD.js} +1 -1
- package/dist/assets/{NodeAddonsSettingsPanel-NB4K9Q4n.js → NodeAddonsSettingsPanel-DZ3CezzG.js} +1 -1
- package/dist/assets/{Notifications-BVBG239c.js → Notifications-Cumkb_K2.js} +1 -1
- package/dist/assets/{Pipeline-CKeCcVen.js → Pipeline-ZF9MP80_.js} +1 -1
- package/dist/assets/{PrivacyMaskSettings-aCnSRq7y.js → PrivacyMaskSettings-DAG7B3VB.js} +1 -1
- package/dist/assets/{Recordings-NNFY-1xb.js → Recordings-D2RSF9Rr.js} +1 -1
- package/dist/assets/{RemoteGrid-CMkmGrme.js → RemoteGrid-Dt4uIt1Z.js} +1 -1
- package/dist/assets/{ScanSubnetEditor-6KWBt_fT.js → ScanSubnetEditor-BHznnP7k.js} +1 -1
- package/dist/assets/{SceneMonitorEditor-CwyjL62o.js → SceneMonitorEditor-Cx1CN3VF.js} +1 -1
- package/dist/assets/{SessionsList-C_zPZPI3.js → SessionsList-o9bd3BCc.js} +2 -2
- package/dist/assets/{Showroom-B6QUTw-1.js → Showroom-BvsWJ2TJ.js} +1 -1
- package/dist/assets/{StorageLocationsTable-CKU5xAJT.js → StorageLocationsTable-fVPGOmdw.js} +1 -1
- package/dist/assets/{System-BNp1ioax.js → System-DYEcdvM2.js} +1 -1
- package/dist/assets/{Templates-CzmmWIzy.js → Templates-DkkfRrhZ.js} +1 -1
- package/dist/assets/{Terminal-B_FeRhL_.js → Terminal-XfuBHeK9.js} +1 -1
- package/dist/assets/{TrainingProviders-DMWfdXLj.js → TrainingProviders-DXyPXqoM.js} +1 -1
- package/dist/assets/{Viewer-B0T6GwVF.js → Viewer-5CsQbcga.js} +1 -1
- package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-DTDLz2J2.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-ZCcraxvZ.js} +1 -1
- package/dist/assets/{action-draft-DSQBnDW-.js → action-draft-A6STHpB1.js} +1 -1
- package/dist/assets/{addon-icons-context-Cm53PqtJ.js → addon-icons-context-CMM6YhwC.js} +1 -1
- package/dist/assets/{assignment-candidates-B4hBGnZ3.js → assignment-candidates-GNFdnK9G.js} +1 -1
- package/dist/assets/{authed-media-D-4z8nC1.js → authed-media-DPBqtwck.js} +1 -1
- package/dist/assets/client-C2CJWmle.js +921 -0
- package/dist/assets/{create-composition-0LOakWST.js → create-composition-KoNE2vVb.js} +1 -1
- package/dist/assets/{device-detail-CHNd95pV.js → device-detail-IHO84bFl.js} +1 -1
- package/dist/assets/{device-integration-icon-D3Au9jvv.js → device-integration-icon-MNT8PaG0.js} +1 -1
- package/dist/assets/device-picker-model-oUoi1Gi_.js +1 -0
- package/dist/assets/dist-16WNSSme.js +921 -0
- package/dist/assets/{dist-XKLso7Rq.js → dist-B4YTGUII.js} +1 -1
- package/dist/assets/{hostInit-oo1ZyLOz.js → hostInit-BX1TY8uK.js} +1 -1
- package/dist/assets/{icons-nWHUbmTy.js → icons-PG_DZwvv.js} +1 -1
- package/dist/assets/index-CGFg_Y8i.js +4 -0
- package/dist/assets/index-Cy-qb6UR.css +2 -0
- package/dist/assets/{linked-devices-model-DGicNR1u.js → linked-devices-model-C8kBgXMY.js} +1 -1
- package/dist/assets/{mf-entry-bootstrap-0-9d1ca313.js → mf-entry-bootstrap-0-4df4eafb.js} +2 -2
- package/dist/assets/mount-oUoi1Gi_.js +1 -0
- package/dist/assets/{player-overlays-07i-D-5F.js → player-overlays-DZpOTTfF.js} +1 -1
- package/dist/assets/remoteEntry-tdnduwBD.js +1 -0
- package/dist/assets/src-DVxPN5-G.js +169 -0
- package/dist/assets/{step-inspector-model-3TP_ESk4.js → step-inspector-model-DigZxReg.js} +1 -1
- package/dist/assets/{use-scenes-feed-B-tjAlpJ.js → use-scenes-feed-CunxYflQ.js} +1 -1
- package/dist/assets/{use-stationary-objects--JCnM10a.js → use-stationary-objects-CsSUUOTV.js} +1 -1
- package/dist/assets/{useAdminDeviceRemoval-B94_56fb.js → useAdminDeviceRemoval-ooKQPd3R.js} +1 -1
- package/dist/assets/useEventInvalidation-oUoi1Gi_.js +1 -0
- package/dist/assets/{useNodeUrlSelection-Ce8teHJ6.js → useNodeUrlSelection-xlAbGKP_.js} +1 -1
- package/dist/assets/{useTemplateSave-yRpPJOJG.js → useTemplateSave-Dc5HV6VU.js} +1 -1
- package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-4dsdFHTN.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-t8Ik-bvG.js} +2 -2
- package/dist/index.html +8 -8
- package/dist/server/addon.js +37 -167
- package/package.json +2 -2
- package/dist/assets/DeviceDetail-CwPSGcyX.js +0 -2
- package/dist/assets/InstancesTable-nABHZip5.js +0 -1
- package/dist/assets/IntegrationDetail-CIzLTh8V.js +0 -1
- package/dist/assets/Integrations-D7o4sE5f.js +0 -1
- package/dist/assets/client-CPDk6pn1.js +0 -921
- package/dist/assets/device-picker-model-DYxGr61P.js +0 -1
- package/dist/assets/dist-DyqBsIQ2.js +0 -921
- package/dist/assets/index-CvjoMaRn.js +0 -4
- package/dist/assets/index-DfRr-2Rp.css +0 -2
- package/dist/assets/mount-DYxGr61P.js +0 -1
- package/dist/assets/remoteEntry-DsRIWyYU.js +0 -1
- package/dist/assets/src-BvCFog8l.js +0 -169
- package/dist/assets/useEventInvalidation-DYxGr61P.js +0 -1
package/dist/index.html
CHANGED
|
@@ -150,20 +150,20 @@
|
|
|
150
150
|
})
|
|
151
151
|
})()
|
|
152
152
|
</script>
|
|
153
|
-
<script type="module" crossorigin src="./assets/mf-entry-bootstrap-0-
|
|
153
|
+
<script type="module" crossorigin src="./assets/mf-entry-bootstrap-0-4df4eafb.js"></script>
|
|
154
154
|
<link rel="modulepreload" crossorigin href="./assets/chevron-down-CBb-F8DT.js">
|
|
155
155
|
<link rel="modulepreload" crossorigin href="./assets/__vite-browser-external-BCAtXlNQ.js">
|
|
156
|
-
<link rel="modulepreload" crossorigin href="./assets/client-
|
|
157
|
-
<link rel="modulepreload" crossorigin href="./assets/player-overlays-
|
|
158
|
-
<link rel="modulepreload" crossorigin href="./assets/src-
|
|
156
|
+
<link rel="modulepreload" crossorigin href="./assets/client-C2CJWmle.js">
|
|
157
|
+
<link rel="modulepreload" crossorigin href="./assets/player-overlays-DZpOTTfF.js">
|
|
158
|
+
<link rel="modulepreload" crossorigin href="./assets/src-DVxPN5-G.js">
|
|
159
159
|
<link rel="modulepreload" crossorigin href="./assets/useTranslation-BJr-n0es.js">
|
|
160
160
|
<link rel="modulepreload" crossorigin href="./assets/i18n-O-Eprd0i.js">
|
|
161
161
|
<link rel="modulepreload" crossorigin href="./assets/video-BV-3O_ZC.js">
|
|
162
|
-
<link rel="modulepreload" crossorigin href="./assets/mount-
|
|
163
|
-
<link rel="modulepreload" crossorigin href="./assets/addon-icons-context-
|
|
162
|
+
<link rel="modulepreload" crossorigin href="./assets/mount-oUoi1Gi_.js">
|
|
163
|
+
<link rel="modulepreload" crossorigin href="./assets/addon-icons-context-CMM6YhwC.js">
|
|
164
164
|
<link rel="modulepreload" crossorigin href="./assets/sso-popup-DiEJ5hpi.js">
|
|
165
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
166
|
-
<link rel="modulepreload" crossorigin href="./assets/hostInit-
|
|
165
|
+
<link rel="stylesheet" crossorigin href="./assets/index-Cy-qb6UR.css">
|
|
166
|
+
<link rel="modulepreload" crossorigin href="./assets/hostInit-BX1TY8uK.js"><link rel="modulepreload" crossorigin href="./assets/index-CGFg_Y8i.js"><link rel="modulepreload" crossorigin href="./assets/remoteEntry-tdnduwBD.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-ZCcraxvZ.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_trpc_mf_1_client__loadShare__.js-8kv6pj9W.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_trpc_mf_1_react_mf_2_query__loadShare__.js-DzoL8nR8.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__admin_ui_host__loadShare__react_mf_2_dom__loadShare__.js-BPba2g2p.js"><link rel="modulepreload" crossorigin href="./assets/_virtual_mf___mfe_internal__admin_ui_host__loadShare__react_mf_2_dom_mf_1_client__loadShare__.js-ZBKFTPET.js"></head>
|
|
167
167
|
<body>
|
|
168
168
|
<div id="root"></div>
|
|
169
169
|
<!-- Lock the app shell at 1x zoom. iOS Safari ignores `user-scalable=no`
|
package/dist/server/addon.js
CHANGED
|
@@ -5895,7 +5895,7 @@ var ZodIssueCode = {
|
|
|
5895
5895
|
var ZodFirstPartyTypeKind;
|
|
5896
5896
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5897
5897
|
//#endregion
|
|
5898
|
-
//#region ../types/dist/sleep-
|
|
5898
|
+
//#region ../types/dist/sleep-D_NpiLFP.mjs
|
|
5899
5899
|
/**
|
|
5900
5900
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5901
5901
|
* window to float samples (D455).
|
|
@@ -12951,10 +12951,6 @@ var CAMERA_CAP_VOCABULARY = {
|
|
|
12951
12951
|
scope: "device",
|
|
12952
12952
|
noun: t("Admin link", "Link di amministrazione")
|
|
12953
12953
|
},
|
|
12954
|
-
"device-discovery": {
|
|
12955
|
-
scope: "device",
|
|
12956
|
-
noun: t("Discovery", "Rilevamento dispositivi")
|
|
12957
|
-
},
|
|
12958
12954
|
"device-extension": {
|
|
12959
12955
|
scope: "device",
|
|
12960
12956
|
noun: t("Device extension", "Estensione del dispositivo")
|
|
@@ -14430,7 +14426,6 @@ var CAP_NAMES = Object.freeze([
|
|
|
14430
14426
|
"device-admin-link",
|
|
14431
14427
|
"device-adoption",
|
|
14432
14428
|
"device-credentials",
|
|
14433
|
-
"device-discovery",
|
|
14434
14429
|
"device-export",
|
|
14435
14430
|
"device-extension",
|
|
14436
14431
|
"device-history",
|
|
@@ -15052,13 +15047,6 @@ Object.freeze({
|
|
|
15052
15047
|
"valueType": "string"
|
|
15053
15048
|
}
|
|
15054
15049
|
],
|
|
15055
|
-
"device-discovery": [{
|
|
15056
|
-
"path": "lastDiscoveryAt",
|
|
15057
|
-
"valueType": "number"
|
|
15058
|
-
}, {
|
|
15059
|
-
"path": "lastError",
|
|
15060
|
-
"valueType": "string"
|
|
15061
|
-
}],
|
|
15062
15050
|
"device-export": [
|
|
15063
15051
|
{
|
|
15064
15052
|
"path": "linkState",
|
|
@@ -50244,27 +50232,35 @@ var DeviceAdminLinkSchema = object({
|
|
|
50244
50232
|
});
|
|
50245
50233
|
method(object({ deviceId: number$1().int().nonnegative() }), DeviceAdminLinkSchema.nullable(), { auth: "admin" });
|
|
50246
50234
|
/**
|
|
50247
|
-
* device-
|
|
50248
|
-
*
|
|
50249
|
-
*
|
|
50250
|
-
*
|
|
50251
|
-
*
|
|
50252
|
-
*
|
|
50253
|
-
*
|
|
50254
|
-
*
|
|
50255
|
-
*
|
|
50256
|
-
*
|
|
50257
|
-
*
|
|
50258
|
-
*
|
|
50259
|
-
*
|
|
50260
|
-
*
|
|
50261
|
-
*
|
|
50262
|
-
*
|
|
50263
|
-
*
|
|
50264
|
-
|
|
50265
|
-
|
|
50266
|
-
*
|
|
50267
|
-
*
|
|
50235
|
+
* `device-adoption` — generic discovery + adoption surface,
|
|
50236
|
+
* system-scoped collection (one provider per integration addon), routed
|
|
50237
|
+
* by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
|
|
50238
|
+
* pin model as `connection-test`. The admin UI keeps using
|
|
50239
|
+
* `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
|
|
50240
|
+
* successor to `ha-discovery`:
|
|
50241
|
+
* keyed by `integrationId` (the addon resolves integrationId → broker
|
|
50242
|
+
* internally) rather than a connection-specific `brokerId`, and it
|
|
50243
|
+
* OWNS the shared `DiscoveredChildDevice` candidate type
|
|
50244
|
+
* (declared below) so a single shared adoption modal renders any integration's
|
|
50245
|
+
* candidate tree.
|
|
50246
|
+
*
|
|
50247
|
+
* UI flow (Integrations page → integration detail):
|
|
50248
|
+
* 1. `listCandidates({integrationId, page, pageSize, filter})` →
|
|
50249
|
+
* paginated candidate list, each row collapsed.
|
|
50250
|
+
* 2. User expands a row → `getCandidate({integrationId,
|
|
50251
|
+
* childNativeId})` returns the single candidate (with its nested
|
|
50252
|
+
* `children`) for the accordion render.
|
|
50253
|
+
* 3. User clicks "Adopt" on one or more candidates →
|
|
50254
|
+
* `adopt({integrationId, childNativeIds, perCandidate?})`
|
|
50255
|
+
* materialises one parent CamStack device per candidate plus its
|
|
50256
|
+
* accessory children. `perCandidate[childNativeId]` carries an
|
|
50257
|
+
* optional display-name override + a `hiddenChildIds` pre-hide set
|
|
50258
|
+
* (the parent's `accessories.hiddenChildIds` gates UI visibility).
|
|
50259
|
+
* 4. User clicks "Release" → `release({integrationId, camDeviceId})`
|
|
50260
|
+
* removes the parent + every child from the kernel registry.
|
|
50261
|
+
*/
|
|
50262
|
+
/**
|
|
50263
|
+
* Status enum for a discovered device. Generic enough for
|
|
50268
50264
|
* battery cams, awake cams, and unreachable cams alike.
|
|
50269
50265
|
*/
|
|
50270
50266
|
var DiscoveredChildStatusSchema = _enum([
|
|
@@ -50281,12 +50277,12 @@ var DiscoveredChildDeviceSchema = lazy(() => object({
|
|
|
50281
50277
|
/** DeviceType the child should be created with on adopt. */
|
|
50282
50278
|
type: _enum(DeviceType),
|
|
50283
50279
|
status: DiscoveredChildStatusSchema,
|
|
50284
|
-
/** Free-form integration-specific metadata surfaced in the
|
|
50280
|
+
/** Free-form integration-specific metadata surfaced in the adoption modal. */
|
|
50285
50281
|
metadata: object({
|
|
50286
50282
|
model: string().optional(),
|
|
50287
50283
|
serialNumber: string().optional(),
|
|
50288
50284
|
uid: string().optional(),
|
|
50289
|
-
/** Reolink: 0-based channel index inside the parent NVR
|
|
50285
|
+
/** Reolink: 0-based channel index inside the parent NVR. */
|
|
50290
50286
|
rtspChannel: number$1().int().nonnegative().optional(),
|
|
50291
50287
|
isBattery: boolean().optional(),
|
|
50292
50288
|
isDoorbell: boolean().optional(),
|
|
@@ -50302,86 +50298,24 @@ var DiscoveredChildDeviceSchema = lazy(() => object({
|
|
|
50302
50298
|
}).default({}),
|
|
50303
50299
|
/**
|
|
50304
50300
|
* `true` when the framework already created a child device for this
|
|
50305
|
-
* `childNativeId` under the current parent. The
|
|
50301
|
+
* `childNativeId` under the current parent. The adoption modal uses it to
|
|
50306
50302
|
* gate the Add/Remove button and surface the existing `deviceId`.
|
|
50307
50303
|
*/
|
|
50308
50304
|
alreadyAdopted: boolean(),
|
|
50309
50305
|
/** When `alreadyAdopted=true`, the framework-assigned child device id. */
|
|
50310
50306
|
adoptedDeviceId: number$1().int().nonnegative().nullable(),
|
|
50311
|
-
/** Capability names the candidate advertises — integrations populate,
|
|
50307
|
+
/** Capability names the candidate advertises — integrations populate, flat enumerations omit. */
|
|
50312
50308
|
capabilities: array(string()).readonly().optional(),
|
|
50313
|
-
/** Feature flags the candidate advertises — integrations populate,
|
|
50309
|
+
/** Feature flags the candidate advertises — integrations populate, flat enumerations omit. */
|
|
50314
50310
|
features: array(string()).readonly().optional(),
|
|
50315
50311
|
/** Upstream-system identity + rendering hints for the candidate. */
|
|
50316
50312
|
sourceInfo: SourceInfoSchema.optional(),
|
|
50317
|
-
/** Nested entity-children for accordion preview — integrations populate,
|
|
50313
|
+
/** Nested entity-children for accordion preview — integrations populate, flat enumerations omit. */
|
|
50318
50314
|
children: array(DiscoveredChildDeviceSchema).readonly().optional(),
|
|
50319
50315
|
/** `childNativeId` of the gateway candidate in the same list this device sits behind. */
|
|
50320
50316
|
parentStableId: string().optional()
|
|
50321
50317
|
}));
|
|
50322
50318
|
/**
|
|
50323
|
-
* Status block — populated by the integration after each
|
|
50324
|
-
* `refreshDiscovery` (or push-driven update). The runtime-state slice
|
|
50325
|
-
* is what the panel reads via the per-device proxy; `getStatus`
|
|
50326
|
-
* returns the same payload via the codegen'd auto-injection.
|
|
50327
|
-
*/
|
|
50328
|
-
var DeviceDiscoveryStatusSchema = object({
|
|
50329
|
-
discovered: array(DiscoveredChildDeviceSchema),
|
|
50330
|
-
/** Wall-clock ms of the last successful enumeration. */
|
|
50331
|
-
lastDiscoveryAt: number$1().int().nonnegative().nullable(),
|
|
50332
|
-
/** Last error surfaced from the source (rendered as a banner). */
|
|
50333
|
-
lastError: string().nullable()
|
|
50334
|
-
});
|
|
50335
|
-
DeviceType.Hub, DeviceDiscoveryStatusSchema.extend({ lastFetchedAt: number$1().int().nonnegative() }), method(object({ deviceId: number$1().int().nonnegative() }), array(DiscoveredChildDeviceSchema).readonly()), method(object({ deviceId: number$1().int().nonnegative() }), array(DiscoveredChildDeviceSchema).readonly(), {
|
|
50336
|
-
kind: "mutation",
|
|
50337
|
-
auth: "admin"
|
|
50338
|
-
}), method(object({
|
|
50339
|
-
deviceId: number$1().int().nonnegative(),
|
|
50340
|
-
childNativeId: string(),
|
|
50341
|
-
/** Optional override for the child's display name. */
|
|
50342
|
-
name: string().optional()
|
|
50343
|
-
}), object({
|
|
50344
|
-
deviceId: number$1().int().nonnegative(),
|
|
50345
|
-
stableId: string()
|
|
50346
|
-
}), {
|
|
50347
|
-
kind: "mutation",
|
|
50348
|
-
auth: "admin"
|
|
50349
|
-
}), method(object({
|
|
50350
|
-
deviceId: number$1().int().nonnegative(),
|
|
50351
|
-
childDeviceId: number$1().int().nonnegative()
|
|
50352
|
-
}), _void(), {
|
|
50353
|
-
kind: "mutation",
|
|
50354
|
-
auth: "admin"
|
|
50355
|
-
});
|
|
50356
|
-
/**
|
|
50357
|
-
* `device-adoption` — generic discovery + adoption surface,
|
|
50358
|
-
* system-scoped collection (one provider per integration addon), routed
|
|
50359
|
-
* by explicit `{ addonId }` on direct `deviceAdoption.*` calls — the same
|
|
50360
|
-
* pin model as `connection-test`. The admin UI keeps using
|
|
50361
|
-
* `deviceManager.adoption*` (which already threads `addonId`). The de-HA-ified
|
|
50362
|
-
* successor to `ha-discovery`:
|
|
50363
|
-
* keyed by `integrationId` (the addon resolves integrationId → broker
|
|
50364
|
-
* internally) rather than a connection-specific `brokerId`, and it
|
|
50365
|
-
* REUSES the shared `DiscoveredChildDevice` candidate type from
|
|
50366
|
-
* `device-discovery.cap.ts` so a single shared adoption panel renders
|
|
50367
|
-
* any integration's candidate tree.
|
|
50368
|
-
*
|
|
50369
|
-
* UI flow (Integrations page → integration detail):
|
|
50370
|
-
* 1. `listCandidates({integrationId, page, pageSize, filter})` →
|
|
50371
|
-
* paginated candidate list, each row collapsed.
|
|
50372
|
-
* 2. User expands a row → `getCandidate({integrationId,
|
|
50373
|
-
* childNativeId})` returns the single candidate (with its nested
|
|
50374
|
-
* `children`) for the accordion render.
|
|
50375
|
-
* 3. User clicks "Adopt" on one or more candidates →
|
|
50376
|
-
* `adopt({integrationId, childNativeIds, perCandidate?})`
|
|
50377
|
-
* materialises one parent CamStack device per candidate plus its
|
|
50378
|
-
* accessory children. `perCandidate[childNativeId]` carries an
|
|
50379
|
-
* optional display-name override + a `hiddenChildIds` pre-hide set
|
|
50380
|
-
* (the parent's `accessories.hiddenChildIds` gates UI visibility).
|
|
50381
|
-
* 4. User clicks "Release" → `release({integrationId, camDeviceId})`
|
|
50382
|
-
* removes the parent + every child from the kernel registry.
|
|
50383
|
-
*/
|
|
50384
|
-
/**
|
|
50385
50319
|
* Provider-declared discovery *granularity* filter (the keystone of the
|
|
50386
50320
|
* single-entity-import design). A provider advertises which discovery
|
|
50387
50321
|
* granularities it supports via `listCandidateFilters`; the operator picks
|
|
@@ -82072,41 +82006,6 @@ Object.freeze({
|
|
|
82072
82006
|
access: "create",
|
|
82073
82007
|
role: "admin"
|
|
82074
82008
|
},
|
|
82075
|
-
"deviceDiscovery.adoptDevice": {
|
|
82076
|
-
capName: "device-discovery",
|
|
82077
|
-
capScope: "device",
|
|
82078
|
-
addonId: null,
|
|
82079
|
-
access: "create",
|
|
82080
|
-
role: "admin"
|
|
82081
|
-
},
|
|
82082
|
-
"deviceDiscovery.getStatus": {
|
|
82083
|
-
capName: "device-discovery",
|
|
82084
|
-
capScope: "device",
|
|
82085
|
-
addonId: null,
|
|
82086
|
-
access: "view",
|
|
82087
|
-
role: "viewer"
|
|
82088
|
-
},
|
|
82089
|
-
"deviceDiscovery.listDiscovered": {
|
|
82090
|
-
capName: "device-discovery",
|
|
82091
|
-
capScope: "device",
|
|
82092
|
-
addonId: null,
|
|
82093
|
-
access: "view",
|
|
82094
|
-
role: "viewer"
|
|
82095
|
-
},
|
|
82096
|
-
"deviceDiscovery.refreshDiscovery": {
|
|
82097
|
-
capName: "device-discovery",
|
|
82098
|
-
capScope: "device",
|
|
82099
|
-
addonId: null,
|
|
82100
|
-
access: "create",
|
|
82101
|
-
role: "admin"
|
|
82102
|
-
},
|
|
82103
|
-
"deviceDiscovery.releaseDevice": {
|
|
82104
|
-
capName: "device-discovery",
|
|
82105
|
-
capScope: "device",
|
|
82106
|
-
addonId: null,
|
|
82107
|
-
access: "create",
|
|
82108
|
-
role: "admin"
|
|
82109
|
-
},
|
|
82110
82009
|
"deviceExport.applyDeviceSettingsPatch": {
|
|
82111
82010
|
capName: "device-export",
|
|
82112
82011
|
capScope: "system",
|
|
@@ -91164,35 +91063,6 @@ Object.freeze({
|
|
|
91164
91063
|
form: "single",
|
|
91165
91064
|
optional: false
|
|
91166
91065
|
}],
|
|
91167
|
-
"deviceDiscovery.adoptDevice": [{
|
|
91168
|
-
name: "deviceId",
|
|
91169
|
-
form: "single",
|
|
91170
|
-
optional: false
|
|
91171
|
-
}],
|
|
91172
|
-
"deviceDiscovery.getStatus": [{
|
|
91173
|
-
name: "deviceId",
|
|
91174
|
-
form: "single",
|
|
91175
|
-
optional: false
|
|
91176
|
-
}],
|
|
91177
|
-
"deviceDiscovery.listDiscovered": [{
|
|
91178
|
-
name: "deviceId",
|
|
91179
|
-
form: "single",
|
|
91180
|
-
optional: false
|
|
91181
|
-
}],
|
|
91182
|
-
"deviceDiscovery.refreshDiscovery": [{
|
|
91183
|
-
name: "deviceId",
|
|
91184
|
-
form: "single",
|
|
91185
|
-
optional: false
|
|
91186
|
-
}],
|
|
91187
|
-
"deviceDiscovery.releaseDevice": [{
|
|
91188
|
-
name: "childDeviceId",
|
|
91189
|
-
form: "single",
|
|
91190
|
-
optional: false
|
|
91191
|
-
}, {
|
|
91192
|
-
name: "deviceId",
|
|
91193
|
-
form: "single",
|
|
91194
|
-
optional: false
|
|
91195
|
-
}],
|
|
91196
91066
|
"deviceExport.applyDeviceSettingsPatch": [{
|
|
91197
91067
|
name: "deviceId",
|
|
91198
91068
|
form: "single",
|
|
@@ -95217,7 +95087,7 @@ var AdminUIAddon = class extends BaseAddon {
|
|
|
95217
95087
|
capability: adminUiCapability,
|
|
95218
95088
|
provider: {
|
|
95219
95089
|
getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
|
|
95220
|
-
getVersion: async () => ({ version: "1.2.
|
|
95090
|
+
getVersion: async () => ({ version: "1.2.640" })
|
|
95221
95091
|
}
|
|
95222
95092
|
}];
|
|
95223
95093
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-admin-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.640",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Admin UI — Vite frontend build and server-side addon",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
],
|
|
52
52
|
"requires": {
|
|
53
|
-
"server": ">=1.2.
|
|
53
|
+
"server": ">=1.2.834"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|