@camstack/addon-admin-ui 1.2.441 → 1.2.443
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{AddonAssetIcon-CCzVCA49.js → AddonAssetIcon-BZ3nAoxI.js} +1 -1
- package/dist/assets/Addons-BGWXApJO.js +4 -0
- package/dist/assets/{AdminPage--m3xHpjx.js → AdminPage-BrNVYSyo.js} +1 -1
- package/dist/assets/{AdminSectionedPage-D5J86Kfp.js → AdminSectionedPage-Dh0h99mU.js} +1 -1
- package/dist/assets/AiProfiles-LVK8z9CZ.js +3 -0
- package/dist/assets/{BrokerForm-Cd5z8Mk0.js → BrokerForm-Ccq1Ih2O.js} +1 -1
- package/dist/assets/Build-C_Zu-Je3.js +40 -0
- package/dist/assets/{Calendars-CVnE0N6y.js → Calendars-1uP96v-V.js} +1 -1
- package/dist/assets/Cluster-BnmZh2Nn.js +1 -0
- package/dist/assets/ClusterStepModel-B6c_UMsA.js +1 -0
- package/dist/assets/CompositionEditor-joJfcrqc.js +1 -0
- package/dist/assets/{CompositionEditorPage-D3LiFLq4.js → CompositionEditorPage-y89GyEA5.js} +1 -1
- package/dist/assets/Data-DX8kzB-3.js +2 -0
- package/dist/assets/{DeviceDetail-Ry7b522t.js → DeviceDetail-B8U3Yepm.js} +2 -2
- package/dist/assets/{DeviceDoActionFields-n2-NdVST.js → DeviceDoActionFields-q6xVAIAa.js} +1 -1
- package/dist/assets/{Devices-BacO9x6N.js → Devices-AoATGKWU.js} +1 -1
- package/dist/assets/{EmbedPlayerPage-DgFNOUrt.js → EmbedPlayerPage-Du1J1yTM.js} +1 -1
- package/dist/assets/Identity-BOfwyXgX.js +1 -0
- package/dist/assets/IntegrationDetail-DCQjP8LU.js +1 -0
- package/dist/assets/IntegrationHub-B-RxXA9_.js +1 -0
- package/dist/assets/Integrations-CzTceJFE.js +1 -0
- package/dist/assets/Integrations-WPdqnrXU.js +1 -0
- package/dist/assets/{Library-yKp-qGfV.js → Library-B67zZRsd.js} +1 -1
- package/dist/assets/Locations-HaHa_Fsr.js +3 -0
- package/dist/assets/{Logs-DWz6dVJo.js → Logs-D5P4nUT8.js} +1 -1
- package/dist/assets/{MaskShapeCanvas-wkrQJhyN.js → MaskShapeCanvas-DImE8rL3.js} +1 -1
- package/dist/assets/{MotionZonesSettings-BZneggiu.js → MotionZonesSettings-0CuyxGPc.js} +1 -1
- package/dist/assets/MyAccess-CvUaUk6O.js +2 -0
- package/dist/assets/Network-Cn22Onk0.js +1 -0
- package/dist/assets/{NodeAddonsSettingsPanel-BxeQZ-hu.js → NodeAddonsSettingsPanel-D2a6eJdl.js} +1 -1
- package/dist/assets/Notifications-DDmcZBvb.js +1 -0
- package/dist/assets/{PrivacyMaskSettings-CN2hF3qR.js → PrivacyMaskSettings-iuZ15_7K.js} +1 -1
- package/dist/assets/Recordings-DDufOAKc.js +1 -0
- package/dist/assets/{ScanNetworkModal-CfHHLP_k.js → ScanNetworkModal-DMI4Puj8.js} +1 -1
- package/dist/assets/{SceneMonitorEditor-CU-Yj4Sw.js → SceneMonitorEditor-BeQX-lOK.js} +1 -1
- package/dist/assets/SessionsList-DJQsiJpZ.js +2 -0
- package/dist/assets/{Showroom-ChGRG_dB.js → Showroom-yw0GMHMG.js} +1 -1
- package/dist/assets/{System-GfppoElu.js → System-CiRePLgR.js} +1 -1
- package/dist/assets/{Terminal-C7azorOj.js → Terminal-BISFdyS_.js} +3 -3
- package/dist/assets/{Viewer-DWdf6_8H.js → Viewer-C9JIf56u.js} +1 -1
- package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-CGI8Rmb1.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-PnsnCmkC.js} +1 -1
- package/dist/assets/{addon-icons-context-D3LZwxs2.js → addon-icons-context-Ci899mcp.js} +1 -1
- package/dist/assets/{archive-BOODG6Jz.js → archive-LCkF1dZb.js} +1 -1
- package/dist/assets/{authed-media-F_SweyTm.js → authed-media-D_mDMacH.js} +1 -1
- package/dist/assets/{bell-off-acWBqVHX.js → bell-off-GaaNTQY2.js} +1 -1
- package/dist/assets/{board-model-Bdetmchn.js → board-model-D4eidiUD.js} +1 -1
- package/dist/assets/{boxes-U2BARjlG.js → boxes-C5tX31nL.js} +1 -1
- package/dist/assets/circle-slash-DB409D2V.js +1 -0
- package/dist/assets/client-C7PU3uqv.js +358 -0
- package/dist/assets/{cloud-upload-C12rtBFh.js → cloud-upload-VkAtqPMg.js} +1 -1
- package/dist/assets/crop-CpbGKQ8Q.js +1 -0
- package/dist/assets/{device-integration-icon-BeeizbXV.js → device-integration-icon-DQ-h2aqY.js} +1 -1
- package/dist/assets/device-picker-model-BtWCNPPD.js +1 -0
- package/dist/assets/dist-D10PjgBb.js +358 -0
- package/dist/assets/{dist-CQud2KJs.js → dist-D8lgrNhR.js} +1 -1
- package/dist/assets/{eraser-BmJjK2wc.js → eraser-fzzWtRJk.js} +1 -1
- package/dist/assets/{hard-drive-download-DfnBSa39.js → hard-drive-download-BoCYHTOr.js} +1 -1
- package/dist/assets/{history-CNfarVY1.js → history-CRzL5JIS.js} +1 -1
- package/dist/assets/{hostInit-Df4MAORd.js → hostInit-Cez0g2jV.js} +1 -1
- package/dist/assets/i18n-DPnbeqSW.js +1 -0
- package/dist/assets/{icons-BLn-D-gO.js → icons-C1hjXP2s.js} +1 -1
- package/dist/assets/{index-CcAR8Rlk.js → index-P4Ykaww9.js} +3 -3
- package/dist/assets/{key-BF4fZLz_.js → key-B8BAPcXc.js} +1 -1
- package/dist/assets/{key-round-CjE9GF4T.js → key-round-BJ8BVDGZ.js} +1 -1
- package/dist/assets/{layers-b-H6nVdd.js → layers-CD_tu1Pc.js} +1 -1
- package/dist/assets/{linked-devices-model-BMUapBfD.js → linked-devices-model-BpLdQSS2.js} +1 -1
- package/dist/assets/{list-ordered-CxtL1h3H.js → list-ordered-CV8Mey9J.js} +1 -1
- package/dist/assets/{location-owned-usage-DVh3ypCw.js → location-owned-usage-BWKIfwEv.js} +1 -1
- package/dist/assets/{log-in-D4y0eEu8.js → log-in-CssruFII.js} +1 -1
- package/dist/assets/{memory-stick-jw7STOQc.js → memory-stick-CGxsa350.js} +1 -1
- package/dist/assets/{message-square-plus-EaPlmlsM.js → message-square-plus-CBy6WJpr.js} +1 -1
- package/dist/assets/{mf-entry-bootstrap-0-8a2679ae.js → mf-entry-bootstrap-0-c381d6e5.js} +2 -2
- package/dist/assets/{mic-off-DiEVWn3e.js → mic-off-DZ1gYAW7.js} +1 -1
- package/dist/assets/{monitor-off-bCAhCbCp.js → monitor-off-CLe0AluZ.js} +1 -1
- package/dist/assets/{monitor-smartphone-ASdELIYw.js → monitor-smartphone-ClAfVDzo.js} +1 -1
- package/dist/assets/mount-BtWCNPPD.js +1 -0
- package/dist/assets/notification-schedule-field-DZeBBmOz.js +1 -0
- package/dist/assets/{player-overlays-Fx6RE6kI.js → player-overlays-HaJLnfsi.js} +1 -1
- package/dist/assets/{recycle-twm2_92b.js → recycle-zmChefCS.js} +1 -1
- package/dist/assets/remoteEntry-m6BFtz9i.js +1 -0
- package/dist/assets/{scan-eye-DuyDP-FQ.js → scan-eye-CMTwtxZj.js} +1 -1
- package/dist/assets/{scissors-BJ2tjgEs.js → scissors-BlRdwWP1.js} +1 -1
- package/dist/assets/{search-x-C9z-zNBZ.js → search-x-CbwcvDCN.js} +1 -1
- package/dist/assets/{send-C_-A97md.js → send-6r6Ib9OA.js} +1 -1
- package/dist/assets/{settings-2-A0nya3CH.js → settings-2-BcvvKclK.js} +1 -1
- package/dist/assets/{speaker-C8juqhRE.js → speaker-CMJy4ydK.js} +1 -1
- package/dist/assets/src-DVZ_yCN-.js +67 -0
- package/dist/assets/{timer-reset-DHBRudwU.js → timer-reset-BdRlRB62.js} +1 -1
- package/dist/assets/{ungroup-BLEMoVnk.js → ungroup-BpleWEEi.js} +1 -1
- package/dist/assets/{unlink-YiKNaJO_.js → unlink-DKyXFXyJ.js} +1 -1
- package/dist/assets/{usb-DzR5JdOt.js → usb-6pnA3ol4.js} +1 -1
- package/dist/assets/{use-scenes-feed-wz6RYR34.js → use-scenes-feed-DaSpiEjT.js} +1 -1
- package/dist/assets/{use-stationary-objects-ByxBafUy.js → use-stationary-objects-CMuPPZiU.js} +1 -1
- package/dist/assets/useEventInvalidation-BtWCNPPD.js +1 -0
- package/dist/assets/{useNodeUrlSelection-v_RZ_Gxk.js → useNodeUrlSelection-DKMh9oxh.js} +1 -1
- package/dist/assets/user-round-DvLwlL_U.js +1 -0
- package/dist/assets/{user-x-CY41cwk1.js → user-x-BRy73Tug.js} +1 -1
- package/dist/assets/{video-BRgeujOO.js → video-C_Glztyb.js} +1 -1
- package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-BrkS3kK7.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-Bwge-Brs.js} +2 -2
- package/dist/index.html +10 -10
- package/dist/server/addon.js +420 -125
- package/package.json +1 -1
- package/dist/assets/Addons-CUPFTOFz.js +0 -4
- package/dist/assets/AiProfiles-CEZqx-Sw.js +0 -3
- package/dist/assets/Build-RW9SjiCM.js +0 -40
- package/dist/assets/Cluster-DdgLAQcF.js +0 -1
- package/dist/assets/ClusterStepModel-BbVbEWqh.js +0 -1
- package/dist/assets/CompositionEditor-BDEQF7e9.js +0 -1
- package/dist/assets/Data-TI1fXQ8e.js +0 -2
- package/dist/assets/Identity-BPWd0o-B.js +0 -1
- package/dist/assets/IntegrationDetail-CFsboI2-.js +0 -1
- package/dist/assets/IntegrationHub-BRMnV56J.js +0 -1
- package/dist/assets/Integrations-Bf2SzcCT.js +0 -1
- package/dist/assets/Integrations-CBqnh8t8.js +0 -1
- package/dist/assets/Locations-BCY7diBp.js +0 -3
- package/dist/assets/MyAccess-DmuNu2nC.js +0 -2
- package/dist/assets/Network-CMlIm20D.js +0 -1
- package/dist/assets/Notifications-B0nD4977.js +0 -1
- package/dist/assets/Recordings-CkHyBhqh.js +0 -1
- package/dist/assets/SessionsList-DrSkZMrj.js +0 -2
- package/dist/assets/circle-slash-90QkMLx4.js +0 -1
- package/dist/assets/client-yfOXPkcm.js +0 -358
- package/dist/assets/crop-BjSJZpbg.js +0 -1
- package/dist/assets/device-picker-model-CRpYde_B.js +0 -1
- package/dist/assets/dist-BfR6seq4.js +0 -358
- package/dist/assets/i18n-B1bxeya5.js +0 -1
- package/dist/assets/mount-CRpYde_B.js +0 -1
- package/dist/assets/notification-schedule-field-BKROBLSv.js +0 -1
- package/dist/assets/remoteEntry-D-hdlf-C.js +0 -1
- package/dist/assets/src-AhVPNkCn.js +0 -67
- package/dist/assets/useEventInvalidation-CRpYde_B.js +0 -1
- package/dist/assets/user-round-CjXCVqIf.js +0 -1
package/dist/server/addon.js
CHANGED
|
@@ -5415,7 +5415,7 @@ var ZodIssueCode = {
|
|
|
5415
5415
|
var ZodFirstPartyTypeKind;
|
|
5416
5416
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5417
5417
|
//#endregion
|
|
5418
|
-
//#region ../types/dist/sleep-
|
|
5418
|
+
//#region ../types/dist/sleep-BSuCCFjf.mjs
|
|
5419
5419
|
/**
|
|
5420
5420
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5421
5421
|
* window to float samples (D455).
|
|
@@ -7798,9 +7798,9 @@ function normalizeAddonInitResult(result) {
|
|
|
7798
7798
|
return result;
|
|
7799
7799
|
}
|
|
7800
7800
|
/**
|
|
7801
|
-
* The share-view scope kinds a
|
|
7802
|
-
* and validates them (`
|
|
7803
|
-
* list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7801
|
+
* The share-view scope kinds a share-link token can carry. The hub mints
|
|
7802
|
+
* and validates them (`ShareViewGrantSchema` builds its
|
|
7803
|
+
* enum from this list); a data plane names the kinds it ACCEPTS in `share`.
|
|
7804
7804
|
*/
|
|
7805
7805
|
var SHARE_VIEW_KINDS = ["grid-view", "events-view"];
|
|
7806
7806
|
/** The wire shape of {@link PeerBytesTicket} — see the type for what it is. */
|
|
@@ -12427,7 +12427,7 @@ var ConvertResultSchema = object({
|
|
|
12427
12427
|
* `super_admin` — collapsed onto the single boolean because every
|
|
12428
12428
|
* non-admin caller is governed by the same scope-check rules; the
|
|
12429
12429
|
* distinction was only ever used to route role-specific procedures
|
|
12430
|
-
* which we no longer have. CLI / webhook integrations are `
|
|
12430
|
+
* which we no longer have. CLI / webhook integrations are tokens (`auth.mintToken`)
|
|
12431
12431
|
* with `isAdmin: false` + an explicit scope list.
|
|
12432
12432
|
*/
|
|
12433
12433
|
/** Per-method access flavour. Materialised on every cap method via codegen. */
|
|
@@ -12616,10 +12616,12 @@ var AddonRoutesScopeSchema = object({
|
|
|
12616
12616
|
type: literal("addon-routes"),
|
|
12617
12617
|
access: array(MethodAccessSchema).min(1)
|
|
12618
12618
|
});
|
|
12619
|
+
var PreferencesSelfScopeSchema = object({ type: literal("preferences-self") });
|
|
12619
12620
|
var CredentialScopeSchema = union([
|
|
12620
12621
|
literal("*"),
|
|
12621
12622
|
ShareViewScopeSchema,
|
|
12622
12623
|
AddonRoutesScopeSchema,
|
|
12624
|
+
PreferencesSelfScopeSchema,
|
|
12623
12625
|
TokenScopeSchema
|
|
12624
12626
|
]);
|
|
12625
12627
|
object({
|
|
@@ -12628,6 +12630,55 @@ object({
|
|
|
12628
12630
|
jti: string().min(16),
|
|
12629
12631
|
scopes: array(CredentialScopeSchema).min(1)
|
|
12630
12632
|
});
|
|
12633
|
+
var PreferenceNamespaceSchema = string().regex(/^[a-z][a-z0-9.-]{0,63}$/);
|
|
12634
|
+
/** A namespace's value: a JSON object, opaque to the hub. */
|
|
12635
|
+
var PreferenceValueSchema = record(string(), unknown());
|
|
12636
|
+
var PreferenceDeviceIdSchema = string().min(1).max(64);
|
|
12637
|
+
/** A stored row, as the owner reads it. */
|
|
12638
|
+
var PreferenceRowSchema = object({
|
|
12639
|
+
namespace: PreferenceNamespaceSchema,
|
|
12640
|
+
value: PreferenceValueSchema,
|
|
12641
|
+
/** Starts at 1, +1 on every write of this namespace. A delete ends the row and its count. */
|
|
12642
|
+
revision: number().int().positive(),
|
|
12643
|
+
updatedAt: number().int(),
|
|
12644
|
+
/** The client id the last writer sent; `null` when it sent none. */
|
|
12645
|
+
updatedByDevice: PreferenceDeviceIdSchema.nullable()
|
|
12646
|
+
});
|
|
12647
|
+
object({
|
|
12648
|
+
/** Absent: every namespace the caller holds. */
|
|
12649
|
+
namespaces: array(PreferenceNamespaceSchema).max(32).optional() });
|
|
12650
|
+
object({ rows: array(PreferenceRowSchema) });
|
|
12651
|
+
object({
|
|
12652
|
+
namespace: PreferenceNamespaceSchema,
|
|
12653
|
+
value: PreferenceValueSchema,
|
|
12654
|
+
/**
|
|
12655
|
+
* The revision the edit was based on. Absent: last write wins. `0`: the
|
|
12656
|
+
* namespace must not exist yet. Any other value that is not the current
|
|
12657
|
+
* revision answers `conflict` and writes nothing.
|
|
12658
|
+
*/
|
|
12659
|
+
baseRevision: number().int().nonnegative().optional(),
|
|
12660
|
+
deviceId: PreferenceDeviceIdSchema.optional()
|
|
12661
|
+
});
|
|
12662
|
+
discriminatedUnion("status", [object({
|
|
12663
|
+
status: literal("saved"),
|
|
12664
|
+
row: PreferenceRowSchema
|
|
12665
|
+
}), object({
|
|
12666
|
+
status: literal("conflict"),
|
|
12667
|
+
current: PreferenceRowSchema.nullable()
|
|
12668
|
+
})]);
|
|
12669
|
+
object({ namespace: PreferenceNamespaceSchema });
|
|
12670
|
+
object({
|
|
12671
|
+
/** `false` when the namespace did not exist. */
|
|
12672
|
+
deleted: boolean() });
|
|
12673
|
+
object({
|
|
12674
|
+
/** The revision the client holds per namespace; a namespace it does not list is new to it. */
|
|
12675
|
+
revisionByNamespace: record(PreferenceNamespaceSchema, number().int().nonnegative()).refine((map) => Object.keys(map).length <= 32, { message: `at most 32 namespaces` }) });
|
|
12676
|
+
object({
|
|
12677
|
+
/** Every row whose revision differs from the client's, and every row it did not list. */
|
|
12678
|
+
rows: array(PreferenceRowSchema),
|
|
12679
|
+
/** Namespaces the client listed that no longer exist. */
|
|
12680
|
+
deleted: array(PreferenceNamespaceSchema)
|
|
12681
|
+
});
|
|
12631
12682
|
_enum(["new-session", "step-up"]);
|
|
12632
12683
|
/** The languages the hub's app landing pages are written in (D858). */
|
|
12633
12684
|
var AppPageLangSchema = _enum(["en", "it"]);
|
|
@@ -16775,7 +16826,19 @@ var DeviceHistorySubjectSchema = discriminatedUnion("kind", [object({
|
|
|
16775
16826
|
kind: literal("node"),
|
|
16776
16827
|
nodeId: string().min(1)
|
|
16777
16828
|
})]);
|
|
16829
|
+
/**
|
|
16830
|
+
* `enum` stores a STATE as the ordinal of its value in the series' value list
|
|
16831
|
+
* (`DeviceHistorySeriesInfo.values`, append-only, so an ordinal never changes
|
|
16832
|
+
* meaning); a rollup keeps the time spent in each state (`states`).
|
|
16833
|
+
*/
|
|
16778
16834
|
var DeviceHistoryKindSchema = _enum([
|
|
16835
|
+
"gauge",
|
|
16836
|
+
"counter",
|
|
16837
|
+
"boolean",
|
|
16838
|
+
"enum"
|
|
16839
|
+
]);
|
|
16840
|
+
/** What a PRODUCER may declare. `enum` is cap-only: its value list is the cap field's. */
|
|
16841
|
+
var DeviceHistoryProducerKindSchema = _enum([
|
|
16779
16842
|
"gauge",
|
|
16780
16843
|
"counter",
|
|
16781
16844
|
"boolean"
|
|
@@ -16812,7 +16875,13 @@ var SeriesInfoSchema = object({
|
|
|
16812
16875
|
/** `null` is unknown (a `unitFrom` series whose device does not state a unit right now), never a guess. */
|
|
16813
16876
|
unit: string().nullable(),
|
|
16814
16877
|
displayName: string(),
|
|
16815
|
-
source: _enum([
|
|
16878
|
+
source: _enum([
|
|
16879
|
+
"cap",
|
|
16880
|
+
"addon",
|
|
16881
|
+
"derived"
|
|
16882
|
+
]),
|
|
16883
|
+
/** `enum`: the value of each ordinal (index = ordinal); `null` for every other kind. */
|
|
16884
|
+
values: array(string()).readonly().nullable(),
|
|
16816
16885
|
firstTs: number(),
|
|
16817
16886
|
lastTs: number()
|
|
16818
16887
|
});
|
|
@@ -16826,17 +16895,31 @@ var QueryPointSchema = object({
|
|
|
16826
16895
|
twMean: number().nullable(),
|
|
16827
16896
|
min: number(),
|
|
16828
16897
|
max: number(),
|
|
16829
|
-
/** `null` is unknown, never zero (D393). */
|
|
16830
|
-
last: number().nullable()
|
|
16898
|
+
/** `null` is unknown, never zero (D393). For an `enum` series: the ordinal of {@link state}. */
|
|
16899
|
+
last: number().nullable(),
|
|
16900
|
+
/**
|
|
16901
|
+
* The increase over the point: a `counter`'s growth since the previous point
|
|
16902
|
+
* or bucket (a drop is a reset, counted from zero), and for
|
|
16903
|
+
* {@link DEVICE_HISTORY_ENERGY_KEY} the kWh used in the bucket. `null` for
|
|
16904
|
+
* every other kind, and when it cannot be known.
|
|
16905
|
+
*/
|
|
16906
|
+
delta: number().nullable(),
|
|
16907
|
+
/** `enum`: the state in force at the end of the point (the name of `last`); `null` otherwise. */
|
|
16908
|
+
state: string().nullable(),
|
|
16909
|
+
/** `enum` rollup: milliseconds spent in each state inside the bucket; `null` for raw points and other kinds. */
|
|
16910
|
+
states: record(string(), number()).nullable()
|
|
16831
16911
|
});
|
|
16832
16912
|
var QuerySeriesSchema = object({
|
|
16833
16913
|
scope: string(),
|
|
16834
16914
|
/** The last point STRICTLY BEFORE `from` in the chosen tier, so a step chart can start at the held value. */
|
|
16835
16915
|
before: object({
|
|
16836
16916
|
t: number(),
|
|
16837
|
-
value: number().nullable()
|
|
16917
|
+
value: number().nullable(),
|
|
16918
|
+
state: string().nullable()
|
|
16838
16919
|
}).nullable(),
|
|
16839
|
-
points: array(QueryPointSchema).readonly()
|
|
16920
|
+
points: array(QueryPointSchema).readonly(),
|
|
16921
|
+
/** A derived key: the stored key its points were computed from; `null` for a stored series. */
|
|
16922
|
+
derivedFrom: string().nullable()
|
|
16840
16923
|
});
|
|
16841
16924
|
/** The window part of a query, shared by the device and node forms. */
|
|
16842
16925
|
var QueryWindowShape = {
|
|
@@ -16852,6 +16935,23 @@ var QueryResultSchema = object({
|
|
|
16852
16935
|
series: array(QuerySeriesSchema).readonly(),
|
|
16853
16936
|
truncated: boolean()
|
|
16854
16937
|
});
|
|
16938
|
+
/** One read of a batch: a device's key or a node's key (exactly one subject). */
|
|
16939
|
+
var QueryManyItemSchema = union([object({
|
|
16940
|
+
deviceId: number().int(),
|
|
16941
|
+
key: string(),
|
|
16942
|
+
scope: string().optional()
|
|
16943
|
+
}), object({
|
|
16944
|
+
forNodeId: string().min(1),
|
|
16945
|
+
key: string(),
|
|
16946
|
+
scope: string().optional()
|
|
16947
|
+
})]);
|
|
16948
|
+
var QueryManyEntrySchema = discriminatedUnion("ok", [object({
|
|
16949
|
+
ok: literal(true),
|
|
16950
|
+
result: QueryResultSchema
|
|
16951
|
+
}), object({
|
|
16952
|
+
ok: literal(false),
|
|
16953
|
+
error: string()
|
|
16954
|
+
})]);
|
|
16855
16955
|
var TierStatusSchema = object({
|
|
16856
16956
|
tier: DeviceHistoryResolutionSchema,
|
|
16857
16957
|
/** `null` until the first background count answered. */
|
|
@@ -16907,16 +17007,22 @@ var DeviceHistoryStatusSchema = object({
|
|
|
16907
17007
|
lastRefreshAt: number().nullable()
|
|
16908
17008
|
})
|
|
16909
17009
|
});
|
|
16910
|
-
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({
|
|
17010
|
+
method(object({ deviceId: number().int() }), array(SeriesInfoSchema).readonly()), method(object({ forNodeId: string().min(1) }), array(SeriesInfoSchema).readonly(), { auth: "admin" }), method(object({
|
|
16911
17011
|
deviceId: number().int(),
|
|
16912
17012
|
...QueryWindowShape
|
|
16913
17013
|
}), QueryResultSchema), method(object({
|
|
16914
|
-
|
|
17014
|
+
forNodeId: string().min(1),
|
|
16915
17015
|
...QueryWindowShape
|
|
16916
17016
|
}), QueryResultSchema, { auth: "admin" }), method(object({
|
|
17017
|
+
items: array(QueryManyItemSchema).min(1).max(24),
|
|
17018
|
+
from: QueryWindowShape.from,
|
|
17019
|
+
to: QueryWindowShape.to,
|
|
17020
|
+
resolution: QueryWindowShape.resolution,
|
|
17021
|
+
maxPoints: QueryWindowShape.maxPoints
|
|
17022
|
+
}), object({ results: array(QueryManyEntrySchema).readonly() }), { auth: "admin" }), method(object({
|
|
16917
17023
|
name: string().regex(/^[a-z0-9-]+$/),
|
|
16918
17024
|
subjectKind: _enum(["device", "node"]),
|
|
16919
|
-
kind:
|
|
17025
|
+
kind: DeviceHistoryProducerKindSchema,
|
|
16920
17026
|
unit: string().optional(),
|
|
16921
17027
|
displayName: string().min(1),
|
|
16922
17028
|
ingest: _enum(["points", "buckets"])
|
|
@@ -39506,38 +39612,37 @@ method(LlmRuntimeCompleteInputSchema, LlmGenerateResultSchema, {
|
|
|
39506
39612
|
auth: "admin",
|
|
39507
39613
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
39508
39614
|
});
|
|
39615
|
+
var LlmProfileKindSchema = string().regex(/^[a-z0-9][a-z0-9-]{0,63}$/, "a kind id is lower-case letters, digits and dashes");
|
|
39616
|
+
/** What a model (or, by default, every model of a kind) can do. */
|
|
39617
|
+
var LlmModelFeaturesSchema = object({
|
|
39618
|
+
vision: boolean(),
|
|
39619
|
+
tools: boolean(),
|
|
39620
|
+
streaming: boolean()
|
|
39621
|
+
});
|
|
39622
|
+
/** One model a provider offers. `features` overrides the kind's defaults, per field. */
|
|
39623
|
+
var LlmModelInfoSchema = object({
|
|
39624
|
+
id: string(),
|
|
39625
|
+
label: string().optional(),
|
|
39626
|
+
contextLength: number().int().positive().optional(),
|
|
39627
|
+
features: LlmModelFeaturesSchema.partial().optional()
|
|
39628
|
+
});
|
|
39509
39629
|
/**
|
|
39510
|
-
*
|
|
39511
|
-
*
|
|
39512
|
-
*
|
|
39513
|
-
*
|
|
39514
|
-
* (hub-placed); the cap stays open for future providers.
|
|
39515
|
-
*
|
|
39516
|
-
* Profiles are ROWS (data), not addons: one row = one usable model endpoint.
|
|
39517
|
-
* `apiKey` is a password field — providers REDACT it on read and merge on
|
|
39518
|
-
* write; a stored key NEVER round-trips to a client.
|
|
39630
|
+
* The provider-specific part of a profile, validated by the provider that owns
|
|
39631
|
+
* the kind (`upsertProfile` refuses what it does not accept). A field its
|
|
39632
|
+
* `connectionSchema` declares `type: 'password'` is a secret: it is held in the
|
|
39633
|
+
* keychain, never in the row, and reads back as the redaction marker.
|
|
39519
39634
|
*/
|
|
39520
|
-
var
|
|
39521
|
-
"openai-compatible",
|
|
39522
|
-
"openai",
|
|
39523
|
-
"anthropic",
|
|
39524
|
-
"google",
|
|
39525
|
-
"managed-local",
|
|
39526
|
-
"apple-foundation"
|
|
39527
|
-
]);
|
|
39635
|
+
var LlmProviderConfigSchema = record(string(), unknown());
|
|
39528
39636
|
var LlmProfileSchema = object({
|
|
39529
39637
|
id: string(),
|
|
39530
39638
|
name: string(),
|
|
39639
|
+
/** The provider-declared kind (`LlmProfileKindDescriptor.kind`). */
|
|
39531
39640
|
kind: LlmProfileKindSchema,
|
|
39532
39641
|
/** Stamped by the provider — keeps the fanned catalog routable. */
|
|
39533
39642
|
addonId: string(),
|
|
39534
39643
|
enabled: boolean(),
|
|
39535
39644
|
/** Vendor model id, or the managed runtime's loaded model. */
|
|
39536
39645
|
model: string(),
|
|
39537
|
-
/** Required for openai-compatible; override for cloud kinds. */
|
|
39538
|
-
baseUrl: string().optional(),
|
|
39539
|
-
/** ConfigUISchema type:'password' — never round-trips (spec §5). */
|
|
39540
|
-
apiKey: string().optional(),
|
|
39541
39646
|
/** Vision on/off. A vision call against a `false` profile is REFUSED, never
|
|
39542
39647
|
* degraded to text — that shipped once and produced a confident answer to a
|
|
39543
39648
|
* question about a picture nobody sent. */
|
|
@@ -39545,15 +39650,11 @@ var LlmProfileSchema = object({
|
|
|
39545
39650
|
temperature: number().min(0).max(2).optional(),
|
|
39546
39651
|
/** Nucleus sampling. Every wire we speak has it. */
|
|
39547
39652
|
topP: number().min(0).max(1).optional(),
|
|
39548
|
-
/** Top-k sampling. Carried only by the wires that have it —
|
|
39549
|
-
*
|
|
39550
|
-
* `top_p` and no `top_k`). The profile editor hides the field wherever it
|
|
39551
|
-
* would change nothing; `KINDS_WITH_TOP_K` is the single owner of that list. */
|
|
39653
|
+
/** Top-k sampling. Carried only by the wires that have it — a kind offers the
|
|
39654
|
+
* field in its editor only when its descriptor lists it in `profileFields`. */
|
|
39552
39655
|
topK: number().int().positive().optional(),
|
|
39553
39656
|
maxTokens: number().int().positive().optional(),
|
|
39554
|
-
/** Prompt context window. Advisory for cloud kinds (they enforce their own)
|
|
39555
|
-
* for `managed-local` it is the llama.cpp `--ctx-size` the runtime starts
|
|
39556
|
-
* the model with, so it is the one field that changes a PROCESS. */
|
|
39657
|
+
/** Prompt context window. Advisory for cloud kinds (they enforce their own). */
|
|
39557
39658
|
contextLength: number().int().positive().optional(),
|
|
39558
39659
|
/** Default system prompt. A caller's `system` REPLACES it (never appends —
|
|
39559
39660
|
* two system prompts fighting is worse than either alone). */
|
|
@@ -39579,16 +39680,37 @@ var LlmProfileSchema = object({
|
|
|
39579
39680
|
* library; the REGISTRY of callable tools is ours and is empty in v1, so a
|
|
39580
39681
|
* `true` here buys the wiring, not behaviour, until tools are registered. */
|
|
39581
39682
|
toolsEnabled: boolean().default(false),
|
|
39582
|
-
|
|
39583
|
-
|
|
39584
|
-
|
|
39585
|
-
|
|
39586
|
-
|
|
39587
|
-
|
|
39588
|
-
|
|
39589
|
-
|
|
39590
|
-
|
|
39591
|
-
|
|
39683
|
+
/** Everything the kind's provider owns (endpoint, key, node, runtime…). */
|
|
39684
|
+
providerConfig: LlmProviderConfigSchema.default({})
|
|
39685
|
+
});
|
|
39686
|
+
/**
|
|
39687
|
+
* The common profile fields a kind's editor offers. The editor owns how each
|
|
39688
|
+
* one is drawn; the provider says which of them mean something on its wire.
|
|
39689
|
+
*/
|
|
39690
|
+
var LlmProfileFieldSchema = _enum([
|
|
39691
|
+
"temperature",
|
|
39692
|
+
"topP",
|
|
39693
|
+
"topK",
|
|
39694
|
+
"maxTokens",
|
|
39695
|
+
"contextLength",
|
|
39696
|
+
"systemPrompt",
|
|
39697
|
+
"timeoutMs",
|
|
39698
|
+
"connectTimeoutMs",
|
|
39699
|
+
"firstTokenTimeoutMs",
|
|
39700
|
+
"idleTimeoutMs",
|
|
39701
|
+
"retry",
|
|
39702
|
+
"toolsEnabled"
|
|
39703
|
+
]);
|
|
39704
|
+
/**
|
|
39705
|
+
* A provider-drawn part of the editor, by a generic widget id the admin UI
|
|
39706
|
+
* registers (`ai/apple-node`). `placement: 'model'` replaces the generic model
|
|
39707
|
+
* picker: that widget owns the model choice.
|
|
39708
|
+
*/
|
|
39709
|
+
var LlmProviderWidgetSchema = object({
|
|
39710
|
+
id: string(),
|
|
39711
|
+
placement: _enum(["connection", "model"]),
|
|
39712
|
+
/** `providerConfig` keys this widget must fill before the profile can be saved. */
|
|
39713
|
+
requires: array(string()).optional()
|
|
39592
39714
|
});
|
|
39593
39715
|
/** ConfigUISchema tree passed through untyped on the wire (the
|
|
39594
39716
|
* notification-output `ConfigSchemaPassthrough` precedent at
|
|
@@ -39597,11 +39719,56 @@ var ConfigSchemaPassthrough$3 = unknown();
|
|
|
39597
39719
|
var LlmProfileKindDescriptorSchema = object({
|
|
39598
39720
|
kind: LlmProfileKindSchema,
|
|
39599
39721
|
label: string(),
|
|
39722
|
+
/** A generic icon name (`cloud`, `plug`, `cpu`) — never a glyph or a logo. */
|
|
39600
39723
|
icon: string(),
|
|
39601
39724
|
/** Stamped by each provider so the concat-fanned catalog stays routable. */
|
|
39602
39725
|
addonId: string(),
|
|
39603
|
-
|
|
39726
|
+
/** The provider's own fields (`providerConfig`); `password` fields are keychain-held. */
|
|
39727
|
+
connectionSchema: ConfigSchemaPassthrough$3,
|
|
39728
|
+
/** Provider fields that belong under "Advanced" (extra headers, runtime tuning). */
|
|
39729
|
+
advancedSchema: ConfigSchemaPassthrough$3.optional(),
|
|
39730
|
+
/** The kind's defaults; a model from `listModels` may override any of them. */
|
|
39731
|
+
features: LlmModelFeaturesSchema,
|
|
39732
|
+
/** `false` = the provider stamps `supportsVision` itself (from what a node reports). */
|
|
39733
|
+
visionEditable: boolean(),
|
|
39734
|
+
/** Where the model list comes from: `listModels`, `staticModels`, or nowhere. */
|
|
39735
|
+
modelCatalog: _enum([
|
|
39736
|
+
"fetch",
|
|
39737
|
+
"static",
|
|
39738
|
+
"none"
|
|
39739
|
+
]),
|
|
39740
|
+
staticModels: array(LlmModelInfoSchema).optional(),
|
|
39741
|
+
/** The common fields that mean something on this kind's wire. */
|
|
39742
|
+
profileFields: array(LlmProfileFieldSchema),
|
|
39743
|
+
providerWidgets: array(LlmProviderWidgetSchema).optional()
|
|
39744
|
+
});
|
|
39745
|
+
/**
|
|
39746
|
+
* `listModels` input. `connection` is an UNSAVED draft of `providerConfig`
|
|
39747
|
+
* (the editor's form); with `profileId` too, a secret the draft leaves
|
|
39748
|
+
* untouched (absent or the redaction marker) is resolved server-side from the
|
|
39749
|
+
* stored profile — the browser never receives it.
|
|
39750
|
+
*/
|
|
39751
|
+
var LlmListModelsInputSchema = object({
|
|
39752
|
+
addonId: string(),
|
|
39753
|
+
kind: LlmProfileKindSchema,
|
|
39754
|
+
profileId: string().optional(),
|
|
39755
|
+
connection: LlmProviderConfigSchema.optional()
|
|
39604
39756
|
});
|
|
39757
|
+
var LlmListModelsErrorCodeSchema = _enum([
|
|
39758
|
+
"auth",
|
|
39759
|
+
"network",
|
|
39760
|
+
"unsupported",
|
|
39761
|
+
"invalid"
|
|
39762
|
+
]);
|
|
39763
|
+
/** A RESULT, never a throw: "wrong key" is an answer the editor renders inline. */
|
|
39764
|
+
var LlmListModelsResultSchema = discriminatedUnion("ok", [object({
|
|
39765
|
+
ok: literal(true),
|
|
39766
|
+
models: array(LlmModelInfoSchema)
|
|
39767
|
+
}), object({
|
|
39768
|
+
ok: literal(false),
|
|
39769
|
+
code: LlmListModelsErrorCodeSchema,
|
|
39770
|
+
message: string()
|
|
39771
|
+
})]);
|
|
39605
39772
|
var LlmDefaultSelectorSchema = union([object({ consumer: string() }), object({ purpose: _enum(["text", "vision"]) })]);
|
|
39606
39773
|
var LlmDefaultSchema = object({
|
|
39607
39774
|
selector: LlmDefaultSelectorSchema,
|
|
@@ -39701,7 +39868,10 @@ method(LlmGenerateBaseInputSchema, LlmGenerateResultSchema, {
|
|
|
39701
39868
|
kind: "mutation",
|
|
39702
39869
|
auth: "admin",
|
|
39703
39870
|
timeoutMs: AI_CAP_TRANSPORT_TIMEOUT_MS
|
|
39704
|
-
}), method(
|
|
39871
|
+
}), method(LlmListModelsInputSchema, LlmListModelsResultSchema, {
|
|
39872
|
+
kind: "mutation",
|
|
39873
|
+
auth: "admin"
|
|
39874
|
+
}), method(object({}), array(LlmDefaultSchema)), method(object({
|
|
39705
39875
|
selector: LlmDefaultSelectorSchema,
|
|
39706
39876
|
profileId: string().nullable()
|
|
39707
39877
|
}), _void(), {
|
|
@@ -39869,14 +40039,106 @@ var LogEntrySchema = object({
|
|
|
39869
40039
|
meta: record(string(), unknown()).optional(),
|
|
39870
40040
|
tags: record(string(), string()).optional()
|
|
39871
40041
|
});
|
|
39872
|
-
|
|
39873
|
-
|
|
40042
|
+
/**
|
|
40043
|
+
* A history READ against one destination (D898).
|
|
40044
|
+
*
|
|
40045
|
+
* Every filter is applied by the PROVIDER, before the limit — a filter the
|
|
40046
|
+
* browser applied after the limit is what made a rare device's lines
|
|
40047
|
+
* unreachable behind a busy one's. `before` / `after` are cursors the provider
|
|
40048
|
+
* minted (opaque to everyone else): a file position for the rotated files, a
|
|
40049
|
+
* nanosecond timestamp for Loki.
|
|
40050
|
+
*
|
|
40051
|
+
* A read is BOUNDED by `budgetMs`: a filter that matches nothing on a 30-day
|
|
40052
|
+
* store answers `done: false` with the cursor it reached and the bytes it
|
|
40053
|
+
* scanned, and the caller decides whether to go on. That is what makes a long
|
|
40054
|
+
* scan show progress and stop when asked — `cancelRead` ends the slice in
|
|
40055
|
+
* flight, and not asking for the next slice ends the scan.
|
|
40056
|
+
*/
|
|
40057
|
+
var LogReadQuerySchema = object({
|
|
40058
|
+
/** Correlates `cancelRead`. Caller-chosen, unique per in-flight read. */
|
|
40059
|
+
requestId: string().min(1).max(64).optional(),
|
|
40060
|
+
/** The device the line is about (`tags.deviceId`, numeric). */
|
|
40061
|
+
deviceId: number().int().optional(),
|
|
40062
|
+
/**
|
|
40063
|
+
* The emitting addon — bare manifest id; `@<version>` / `::<sub>` suffixes
|
|
40064
|
+
* match. Not `addonId`: a cap router reads that name as "which provider".
|
|
40065
|
+
*/
|
|
40066
|
+
fromAddonId: string().min(1).max(200).optional(),
|
|
40067
|
+
/**
|
|
40068
|
+
* The emitting node: matches the agent that emitted the line, the node
|
|
40069
|
+
* itself, or a worker under it (`<agent>/<runner>`) — the `agentId`
|
|
40070
|
+
* semantics of `matchesLogTags`. Not `nodeId`: a cap router reads that
|
|
40071
|
+
* name as "which node's provider".
|
|
40072
|
+
*/
|
|
40073
|
+
fromNodeId: string().min(1).max(200).optional(),
|
|
40074
|
+
/** Any other tag, exact match (AND). */
|
|
40075
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40076
|
+
/** Severity FLOOR: this level and above. */
|
|
39874
40077
|
level: LogLevelSchema.optional(),
|
|
39875
|
-
|
|
39876
|
-
|
|
39877
|
-
|
|
39878
|
-
|
|
39879
|
-
|
|
40078
|
+
/** Case-insensitive substring over message, scope, tag values and meta values. */
|
|
40079
|
+
text: string().min(1).max(200).optional(),
|
|
40080
|
+
/** Epoch ms, inclusive. */
|
|
40081
|
+
since: number().optional(),
|
|
40082
|
+
/** Epoch ms, inclusive. */
|
|
40083
|
+
until: number().optional(),
|
|
40084
|
+
/** Older than this cursor (exclusive). Absent with `after` absent ⇒ from the newest. */
|
|
40085
|
+
before: string().min(1).max(1024).optional(),
|
|
40086
|
+
/** Newer than this cursor (exclusive). */
|
|
40087
|
+
after: string().min(1).max(1024).optional(),
|
|
40088
|
+
limit: number().int().min(1).max(1e3).optional(),
|
|
40089
|
+
/** Wall-clock bound of this slice. The provider caps it. */
|
|
40090
|
+
budgetMs: number().int().min(50).max(1e4).optional()
|
|
40091
|
+
});
|
|
40092
|
+
var LogReadResultSchema = object({
|
|
40093
|
+
/** Newest first. */
|
|
40094
|
+
entries: array(object({
|
|
40095
|
+
/** `<bootId>.<seq>` minted by the emitting LogManager — the dedupe key. */
|
|
40096
|
+
id: string().optional(),
|
|
40097
|
+
/** Epoch ms. */
|
|
40098
|
+
timestamp: number(),
|
|
40099
|
+
level: LogLevelSchema,
|
|
40100
|
+
scope: string().optional(),
|
|
40101
|
+
message: string(),
|
|
40102
|
+
tags: record(string(), union([string(), number()])).optional(),
|
|
40103
|
+
meta: record(string(), unknown()).optional()
|
|
40104
|
+
})),
|
|
40105
|
+
/** Pass as `before` for the next older page; null when nothing older exists. */
|
|
40106
|
+
nextBefore: string().nullable(),
|
|
40107
|
+
/** Pass as `after` to read what arrived since; null when unknown. */
|
|
40108
|
+
nextAfter: string().nullable(),
|
|
40109
|
+
/** Bytes this slice read (files) or received (remote). Progress, not a promise. */
|
|
40110
|
+
scannedBytes: number().int().nonnegative(),
|
|
40111
|
+
/**
|
|
40112
|
+
* True when the scan in this direction reached the end of the store.
|
|
40113
|
+
* False with fewer than `limit` entries means the budget ran out first —
|
|
40114
|
+
* call again with `nextBefore` to go on.
|
|
40115
|
+
*/
|
|
40116
|
+
done: boolean(),
|
|
40117
|
+
/** True when `cancelRead` ended this slice early. */
|
|
40118
|
+
cancelled: boolean().optional()
|
|
40119
|
+
});
|
|
40120
|
+
var LogReadCapabilitiesSchema = object({
|
|
40121
|
+
/** False ⇒ this destination only ships lines (console, forwarder, an unconfigured Loki). */
|
|
40122
|
+
readable: boolean(),
|
|
40123
|
+
/** Why not, when `readable` is false — rendered next to the source. */
|
|
40124
|
+
reason: string().nullable(),
|
|
40125
|
+
/** Filters the provider applies itself. A false one is applied by nobody. */
|
|
40126
|
+
filters: object({
|
|
40127
|
+
deviceId: boolean(),
|
|
40128
|
+
addonId: boolean(),
|
|
40129
|
+
nodeId: boolean(),
|
|
40130
|
+
tags: boolean(),
|
|
40131
|
+
level: boolean(),
|
|
40132
|
+
text: boolean(),
|
|
40133
|
+
timeRange: boolean()
|
|
40134
|
+
}),
|
|
40135
|
+
/** How far back the store reaches, when the provider knows (days). */
|
|
40136
|
+
retentionDays: number().nullable()
|
|
40137
|
+
});
|
|
40138
|
+
method(LogEntrySchema, _void(), { kind: "mutation" }), optionalMethod(_void(), LogReadCapabilitiesSchema, { auth: "admin" }), optionalMethod(LogReadQuerySchema, LogReadResultSchema, { auth: "admin" }), optionalMethod(object({ requestId: string().min(1).max(64) }), object({ cancelled: boolean() }), {
|
|
40139
|
+
kind: "mutation",
|
|
40140
|
+
auth: "admin"
|
|
40141
|
+
});
|
|
39880
40142
|
/**
|
|
39881
40143
|
* `login-method` — collection cap through which auth addons contribute
|
|
39882
40144
|
* their pre-auth login surfaces to the login page. This is the SINGLE,
|
|
@@ -42432,6 +42694,33 @@ var NcRuleTargetSchema = object({
|
|
|
42432
42694
|
params: record(string(), unknown()).optional()
|
|
42433
42695
|
});
|
|
42434
42696
|
/**
|
|
42697
|
+
* WHAT THE NOTIFICATION'S PICTURE IS (D897) — the ONE media choice of a rule.
|
|
42698
|
+
*
|
|
42699
|
+
* Every mode starts from the same CLEAN source frame of the trigger moment
|
|
42700
|
+
* (keyFrame → sceneFrame → lastSceneFrame, narrowed to the trigger instant and
|
|
42701
|
+
* to the zone that fired the rule) and renders it once at send time:
|
|
42702
|
+
* - `scene-boxes` — the whole scene, the subject outlined thick in the accent
|
|
42703
|
+
* colour and every OTHER track visible at that instant outlined thin, each
|
|
42704
|
+
* labelled with class and confidence ("dog 87%").
|
|
42705
|
+
* - `crop` — the subject cut out of that frame around its box at that instant.
|
|
42706
|
+
* - `clean` — the whole scene with nothing drawn on it.
|
|
42707
|
+
* - `none` — no picture.
|
|
42708
|
+
*
|
|
42709
|
+
* A mode that cannot be honoured (no box at that instant, a photograph with no
|
|
42710
|
+
* tracked subject) ships `clean` and names the reason in the log, per camera.
|
|
42711
|
+
* It replaces the `attach` × `frame` × `zoneCrop` triple, which let one rule
|
|
42712
|
+
* ship a crop on one event and a boxed scene on the next depending on which
|
|
42713
|
+
* stored kind had landed.
|
|
42714
|
+
*/
|
|
42715
|
+
var NcMediaImageSchema = _enum([
|
|
42716
|
+
"scene-boxes",
|
|
42717
|
+
"crop",
|
|
42718
|
+
"clean",
|
|
42719
|
+
"none"
|
|
42720
|
+
]);
|
|
42721
|
+
/**
|
|
42722
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
42723
|
+
*
|
|
42435
42724
|
* Media attachment policy (P1 still-image subset).
|
|
42436
42725
|
* - `best` — the best AVAILABLE subject image at dispatch time (D-3).
|
|
42437
42726
|
* - `best-matching` — the media that explains WHY the rule fired: a rule
|
|
@@ -42445,6 +42734,8 @@ var NcRuleTargetSchema = object({
|
|
|
42445
42734
|
* - `none` — no attachment.
|
|
42446
42735
|
*/
|
|
42447
42736
|
/**
|
|
42737
|
+
* @deprecated Read only by `normalizeNcMediaPolicy` (D897) — see {@link NcMediaImageSchema}.
|
|
42738
|
+
*
|
|
42448
42739
|
* WHAT THE PICTURE SHOWS — chosen explicitly, because the implicit ladders
|
|
42449
42740
|
* conflate it with the selection strategy and betray the request: asking for
|
|
42450
42741
|
* the clean scene frame on an object-event owner used to start at
|
|
@@ -42473,16 +42764,29 @@ var NcMediaFrameSchema = _enum([
|
|
|
42473
42764
|
*/
|
|
42474
42765
|
var NcLinkedCameraModeSchema = _enum(["mosaic", "each"]);
|
|
42475
42766
|
var NcMediaPolicySchema = object({
|
|
42767
|
+
/**
|
|
42768
|
+
* The picture — see {@link NcMediaImageSchema}. Absent on a rule nobody has
|
|
42769
|
+
* saved since D897: `normalizeNcMediaPolicy` derives it from the legacy
|
|
42770
|
+
* triple below, at load and at every write, and the store keeps only this.
|
|
42771
|
+
*/
|
|
42772
|
+
image: NcMediaImageSchema.optional(),
|
|
42773
|
+
/**
|
|
42774
|
+
* Draw the zone that FIRED the rule on the picture (`scene-boxes` / `clean`;
|
|
42775
|
+
* a `crop` never shows it). Valid only on a rule whose trigger is a zone —
|
|
42776
|
+
* `conditions.zones` or an occupancy zone — and refused on save otherwise.
|
|
42777
|
+
* Replaces `zoneCrop`.
|
|
42778
|
+
*/
|
|
42779
|
+
showTriggerZone: boolean().optional(),
|
|
42780
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
42476
42781
|
attach: _enum([
|
|
42477
42782
|
"best",
|
|
42478
42783
|
"best-matching",
|
|
42479
42784
|
"keyFrame",
|
|
42480
42785
|
"none"
|
|
42481
|
-
]).
|
|
42482
|
-
/**
|
|
42786
|
+
]).optional(),
|
|
42787
|
+
/** @deprecated D897 — accepted from an editor that predates `image`, folded into it on save. */
|
|
42483
42788
|
frame: NcMediaFrameSchema.optional(),
|
|
42484
|
-
/**
|
|
42485
|
-
* "show me the ZONE", not the whole scene or the subject crop. */
|
|
42789
|
+
/** @deprecated D897 — folded into `image: 'clean'` + `showTriggerZone` on save. */
|
|
42486
42790
|
zoneCrop: boolean().optional(),
|
|
42487
42791
|
/**
|
|
42488
42792
|
* Also attach a short GIF cut from the stream broker's clip ring around the
|
|
@@ -42654,7 +42958,9 @@ var NcRuleInputSchema = object({
|
|
|
42654
42958
|
* targets.
|
|
42655
42959
|
*/
|
|
42656
42960
|
targetUsers: array(string()).optional(),
|
|
42657
|
-
|
|
42961
|
+
/** Absent = the kind's default picture (`resolveNcMediaImage`): the subject crop for a
|
|
42962
|
+
* detection, the clean scene for a sensor or a sound. Set explicitly on save (D897). */
|
|
42963
|
+
media: NcMediaPolicySchema.default({}),
|
|
42658
42964
|
throttle: NcThrottleSchema.default({
|
|
42659
42965
|
cooldownSec: 60,
|
|
42660
42966
|
scope: "rule-device"
|
|
@@ -43591,13 +43897,37 @@ var NcAlarmModeOpeningsSchema = object({
|
|
|
43591
43897
|
/** Covered devices whose state could not be read (D49): neither open nor closed. */
|
|
43592
43898
|
unknown: array(number().int())
|
|
43593
43899
|
});
|
|
43900
|
+
/**
|
|
43901
|
+
* One alarm INPUT — a (rule, device) pair — the operator bypassed until the
|
|
43902
|
+
* next disarm ("Bypass this input until disarm" on a trigger notification, or
|
|
43903
|
+
* `nc.bypassAlarmInput`). Reported so an armed alarm with a silenced input
|
|
43904
|
+
* never looks fully armed (D62: off must never look like broken).
|
|
43905
|
+
*/
|
|
43906
|
+
var NcAlarmInputBypassViewSchema = object({
|
|
43907
|
+
ruleId: string(),
|
|
43908
|
+
/** The rule's current name (its frozen name when the rule is gone). */
|
|
43909
|
+
ruleName: string(),
|
|
43910
|
+
/** The input: the sensor of the match, else its camera. */
|
|
43911
|
+
deviceId: number().int(),
|
|
43912
|
+
/** The input's current name. */
|
|
43913
|
+
name: string(),
|
|
43914
|
+
/** When it was bypassed (ms epoch). */
|
|
43915
|
+
since: number(),
|
|
43916
|
+
/** Triggers from this input dropped since. */
|
|
43917
|
+
dropped: number().int().min(0)
|
|
43918
|
+
});
|
|
43594
43919
|
var NcAlarmLiveSchema = object({
|
|
43595
43920
|
state: AlarmStateSchema,
|
|
43596
43921
|
/** The mode being armed into (exit delay) or held; null when disarmed. */
|
|
43597
43922
|
targetMode: AlarmArmModeSchema.nullable(),
|
|
43598
43923
|
availableModes: array(AlarmArmModeSchema),
|
|
43599
43924
|
openings: array(NcAlarmModeOpeningsSchema),
|
|
43600
|
-
exclusions: array(NcAlarmExclusionViewSchema)
|
|
43925
|
+
exclusions: array(NcAlarmExclusionViewSchema),
|
|
43926
|
+
/**
|
|
43927
|
+
* Inputs bypassed for the rest of this arm session; cleared on disarm.
|
|
43928
|
+
* Defaulted so an older hub answer still parses (as "none known").
|
|
43929
|
+
*/
|
|
43930
|
+
bypassedInputs: array(NcAlarmInputBypassViewSchema).default([])
|
|
43601
43931
|
});
|
|
43602
43932
|
var NcAlarmConfigSchema = object({
|
|
43603
43933
|
/**
|
|
@@ -60696,26 +61026,6 @@ var ApiKeySummarySchema = object({
|
|
|
60696
61026
|
createdAt: number(),
|
|
60697
61027
|
lastUsedAt: number().optional()
|
|
60698
61028
|
});
|
|
60699
|
-
var ScopedTokenSummarySchema = object({
|
|
60700
|
-
id: string(),
|
|
60701
|
-
userId: string(),
|
|
60702
|
-
name: string(),
|
|
60703
|
-
tokenPrefix: string(),
|
|
60704
|
-
scopes: array(TokenScopeSchema),
|
|
60705
|
-
expiresAt: number().nullish(),
|
|
60706
|
-
lastUsedAt: number().nullish(),
|
|
60707
|
-
createdAt: number()
|
|
60708
|
-
});
|
|
60709
|
-
var CreateScopedTokenInputSchema = object({
|
|
60710
|
-
userId: string(),
|
|
60711
|
-
name: string(),
|
|
60712
|
-
scopes: array(TokenScopeSchema),
|
|
60713
|
-
expiresAt: number().optional()
|
|
60714
|
-
});
|
|
60715
|
-
var CreateScopedTokenResultSchema = object({
|
|
60716
|
-
token: string(),
|
|
60717
|
-
record: ScopedTokenSummarySchema
|
|
60718
|
-
});
|
|
60719
61029
|
var OauthSessionSummarySchema = object({
|
|
60720
61030
|
id: string(),
|
|
60721
61031
|
userId: string(),
|
|
@@ -60737,11 +61047,11 @@ var TotpStatusSchema = object({
|
|
|
60737
61047
|
confirmedAt: number().nullable()
|
|
60738
61048
|
});
|
|
60739
61049
|
/**
|
|
60740
|
-
* user-management — singleton capability for user accounts
|
|
60741
|
-
*
|
|
61050
|
+
* user-management — singleton capability for user accounts and the
|
|
61051
|
+
* legacy API-key rows.
|
|
60742
61052
|
*
|
|
60743
61053
|
* v2 model: every method gated by `auth: 'admin'`. Admin-only delegation
|
|
60744
|
-
* — the subset check on `setUserScopes`
|
|
61054
|
+
* — the subset check on `setUserScopes` is moot
|
|
60745
61055
|
* because non-admins never reach these. If/when we open non-admin
|
|
60746
61056
|
* delegation, structural caller-scope subset check goes inside the
|
|
60747
61057
|
* provider.
|
|
@@ -60798,15 +61108,7 @@ method(_void(), array(UserSummarySchema), { auth: "admin" }), method(CreateUserI
|
|
|
60798
61108
|
kind: "mutation",
|
|
60799
61109
|
auth: "admin",
|
|
60800
61110
|
access: "delete"
|
|
60801
|
-
}), method(
|
|
60802
|
-
kind: "mutation",
|
|
60803
|
-
auth: "admin",
|
|
60804
|
-
access: "create"
|
|
60805
|
-
}), method(object({ id: string() }), object({ success: literal(true) }), {
|
|
60806
|
-
kind: "mutation",
|
|
60807
|
-
auth: "admin",
|
|
60808
|
-
access: "delete"
|
|
60809
|
-
}), method(object({ token: string() }), ScopedTokenSummarySchema.nullable(), { access: "view" }), method(object({ userId: string() }), array(ScopedTokenSummarySchema), { auth: "admin" }), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
61111
|
+
}), method(object({ userId: string() }), TotpSetupResultSchema, {
|
|
60810
61112
|
kind: "mutation",
|
|
60811
61113
|
auth: "admin",
|
|
60812
61114
|
access: "create"
|
|
@@ -64962,7 +65264,7 @@ Object.freeze({
|
|
|
64962
65264
|
capName: "llm",
|
|
64963
65265
|
capScope: "system",
|
|
64964
65266
|
addonId: null,
|
|
64965
|
-
access: "
|
|
65267
|
+
access: "create"
|
|
64966
65268
|
},
|
|
64967
65269
|
"llm.listNodeModels": {
|
|
64968
65270
|
capName: "llm",
|
|
@@ -65264,7 +65566,19 @@ Object.freeze({
|
|
|
65264
65566
|
addonId: null,
|
|
65265
65567
|
access: "view"
|
|
65266
65568
|
},
|
|
65267
|
-
"logDestination.
|
|
65569
|
+
"logDestination.cancelRead": {
|
|
65570
|
+
capName: "log-destination",
|
|
65571
|
+
capScope: "system",
|
|
65572
|
+
addonId: null,
|
|
65573
|
+
access: "create"
|
|
65574
|
+
},
|
|
65575
|
+
"logDestination.describeRead": {
|
|
65576
|
+
capName: "log-destination",
|
|
65577
|
+
capScope: "system",
|
|
65578
|
+
addonId: null,
|
|
65579
|
+
access: "view"
|
|
65580
|
+
},
|
|
65581
|
+
"logDestination.read": {
|
|
65268
65582
|
capName: "log-destination",
|
|
65269
65583
|
capScope: "system",
|
|
65270
65584
|
addonId: null,
|
|
@@ -69626,12 +69940,6 @@ Object.freeze({
|
|
|
69626
69940
|
addonId: null,
|
|
69627
69941
|
access: "create"
|
|
69628
69942
|
},
|
|
69629
|
-
"userManagement.createScopedToken": {
|
|
69630
|
-
capName: "user-management",
|
|
69631
|
-
capScope: "system",
|
|
69632
|
-
addonId: null,
|
|
69633
|
-
access: "create"
|
|
69634
|
-
},
|
|
69635
69943
|
"userManagement.createUser": {
|
|
69636
69944
|
capName: "user-management",
|
|
69637
69945
|
capScope: "system",
|
|
@@ -69680,12 +69988,6 @@ Object.freeze({
|
|
|
69680
69988
|
addonId: null,
|
|
69681
69989
|
access: "view"
|
|
69682
69990
|
},
|
|
69683
|
-
"userManagement.listScopedTokens": {
|
|
69684
|
-
capName: "user-management",
|
|
69685
|
-
capScope: "system",
|
|
69686
|
-
addonId: null,
|
|
69687
|
-
access: "view"
|
|
69688
|
-
},
|
|
69689
69991
|
"userManagement.listUsers": {
|
|
69690
69992
|
capName: "user-management",
|
|
69691
69993
|
capScope: "system",
|
|
@@ -69740,12 +70042,6 @@ Object.freeze({
|
|
|
69740
70042
|
addonId: null,
|
|
69741
70043
|
access: "delete"
|
|
69742
70044
|
},
|
|
69743
|
-
"userManagement.revokeScopedToken": {
|
|
69744
|
-
capName: "user-management",
|
|
69745
|
-
capScope: "system",
|
|
69746
|
-
addonId: null,
|
|
69747
|
-
access: "delete"
|
|
69748
|
-
},
|
|
69749
70045
|
"userManagement.setupTotp": {
|
|
69750
70046
|
capName: "user-management",
|
|
69751
70047
|
capScope: "system",
|
|
@@ -69776,12 +70072,6 @@ Object.freeze({
|
|
|
69776
70072
|
addonId: null,
|
|
69777
70073
|
access: "view"
|
|
69778
70074
|
},
|
|
69779
|
-
"userManagement.validateScopedToken": {
|
|
69780
|
-
capName: "user-management",
|
|
69781
|
-
capScope: "system",
|
|
69782
|
-
addonId: null,
|
|
69783
|
-
access: "view"
|
|
69784
|
-
},
|
|
69785
70075
|
"userManagement.verifyTotp": {
|
|
69786
70076
|
capName: "user-management",
|
|
69787
70077
|
capScope: "system",
|
|
@@ -71295,6 +71585,11 @@ Object.freeze({
|
|
|
71295
71585
|
form: "single",
|
|
71296
71586
|
optional: false
|
|
71297
71587
|
}],
|
|
71588
|
+
"logDestination.read": [{
|
|
71589
|
+
name: "deviceId",
|
|
71590
|
+
form: "single",
|
|
71591
|
+
optional: true
|
|
71592
|
+
}],
|
|
71298
71593
|
"mediaPlayer.getStatus": [{
|
|
71299
71594
|
name: "deviceId",
|
|
71300
71595
|
form: "single",
|
|
@@ -74117,7 +74412,7 @@ var AdminUIAddon = class extends BaseAddon {
|
|
|
74117
74412
|
capability: adminUiCapability,
|
|
74118
74413
|
provider: {
|
|
74119
74414
|
getStaticDir: async () => ({ staticDir: resolveAdminUiDistDir() }),
|
|
74120
|
-
getVersion: async () => ({ version: "1.2.
|
|
74415
|
+
getVersion: async () => ({ version: "1.2.443" })
|
|
74121
74416
|
}
|
|
74122
74417
|
}];
|
|
74123
74418
|
}
|