@camstack/addon-post-analysis 1.2.24 → 1.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{dist-MQmqxd7v.js → dist-CP-FTAl5.js} +347 -10
- package/dist/{dist-h7dnARE_.mjs → dist-O227Je-Q.mjs} +324 -11
- package/dist/embedding-encoder/index.js +1 -1
- package/dist/embedding-encoder/index.mjs +1 -1
- package/dist/{node-DrRsUzaw.js → node-BQUEteve.js} +1 -1
- package/dist/pipeline-analytics/_stub.js +1 -1
- package/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-arlk__yF.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-aG07ehD0.mjs} +2 -2
- package/dist/pipeline-analytics/{_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CXp0RfRy.mjs → _virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CHPq_p1Y.mjs} +1 -1
- package/dist/pipeline-analytics/{hostInit-NxBfUaEi.mjs → hostInit-66T4FwIA.mjs} +2 -2
- package/dist/pipeline-analytics/index.js +1053 -23
- package/dist/pipeline-analytics/index.mjs +1052 -22
- package/dist/pipeline-analytics/remoteEntry.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../types/dist/event-category-
|
|
1
|
+
//#region ../types/dist/event-category-41fKf-q9.mjs
|
|
2
2
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
3
3
|
EventCategory["SystemBoot"] = "system.boot";
|
|
4
4
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -58,6 +58,26 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
58
58
|
*/
|
|
59
59
|
EventCategory["AddonRetryScheduled"] = "addon.retry-scheduled";
|
|
60
60
|
/**
|
|
61
|
+
* A liveness invariant of this node is false — it has no devices, every
|
|
62
|
+
* camera is offline, or a camera that was recording has stopped producing
|
|
63
|
+
* segments. Emitted by the `liveness-monitor` builtin, once per fault (the
|
|
64
|
+
* `findingId` is stable across ticks), only after its boot grace period.
|
|
65
|
+
* AlertCenter raises a persistent operator-visible alert.
|
|
66
|
+
*
|
|
67
|
+
* It exists because on 2026-08-03 the hub ran four hours with zero devices
|
|
68
|
+
* and zero recordings while every surface stayed quiet.
|
|
69
|
+
*
|
|
70
|
+
* Payload: `{ findingId, severity, title, message, deviceId? }`.
|
|
71
|
+
*/
|
|
72
|
+
EventCategory["SystemLivenessFailed"] = "system.liveness-failed";
|
|
73
|
+
/**
|
|
74
|
+
* A previously reported liveness fault is true again. AlertCenter dismisses
|
|
75
|
+
* the matching `SystemLivenessFailed` alert.
|
|
76
|
+
*
|
|
77
|
+
* Payload: `{ findingId }`.
|
|
78
|
+
*/
|
|
79
|
+
EventCategory["SystemLivenessRecovered"] = "system.liveness-recovered";
|
|
80
|
+
/**
|
|
61
81
|
* Monitor is attempting to reload a failed addon NOW. UI uses this
|
|
62
82
|
* to show a spinner during the retry attempt. Same transient nature
|
|
63
83
|
* as AddonRetryScheduled.
|
|
@@ -8372,6 +8392,60 @@ function buildNcTaxonomy() {
|
|
|
8372
8392
|
/** The frozen NC taxonomy, derived once from the taxonomy dictionary. */
|
|
8373
8393
|
var NC_TAXONOMY = Object.freeze(buildNcTaxonomy());
|
|
8374
8394
|
/**
|
|
8395
|
+
* Most specific first. Extending this list is how a new device kind becomes
|
|
8396
|
+
* gateable; nothing else needs to change.
|
|
8397
|
+
*/
|
|
8398
|
+
var DEVICE_STATE_READERS = [
|
|
8399
|
+
{
|
|
8400
|
+
cap: "alarm-panel",
|
|
8401
|
+
field: "state"
|
|
8402
|
+
},
|
|
8403
|
+
{
|
|
8404
|
+
cap: "cover",
|
|
8405
|
+
field: "state"
|
|
8406
|
+
},
|
|
8407
|
+
{
|
|
8408
|
+
cap: "presence",
|
|
8409
|
+
field: "state"
|
|
8410
|
+
},
|
|
8411
|
+
{
|
|
8412
|
+
cap: "lock",
|
|
8413
|
+
field: "locked",
|
|
8414
|
+
booleanWords: ["locked", "unlocked"]
|
|
8415
|
+
},
|
|
8416
|
+
{
|
|
8417
|
+
cap: "contact",
|
|
8418
|
+
field: "entryOpen",
|
|
8419
|
+
booleanWords: ["open", "closed"]
|
|
8420
|
+
},
|
|
8421
|
+
{
|
|
8422
|
+
cap: "switch",
|
|
8423
|
+
field: "on",
|
|
8424
|
+
booleanWords: ["on", "off"]
|
|
8425
|
+
},
|
|
8426
|
+
{
|
|
8427
|
+
cap: "binary",
|
|
8428
|
+
field: "on",
|
|
8429
|
+
booleanWords: ["on", "off"]
|
|
8430
|
+
}
|
|
8431
|
+
];
|
|
8432
|
+
/**
|
|
8433
|
+
* Collapse a device's full runtime state to the one string a rule compares
|
|
8434
|
+
* against, or `undefined` when nothing in the table applies.
|
|
8435
|
+
*
|
|
8436
|
+
* `undefined` is the safe answer everywhere: the gate treats it as "does not
|
|
8437
|
+
* match", so a device whose kind we cannot read simply never arms a rule.
|
|
8438
|
+
*/
|
|
8439
|
+
function readDeviceStateFrom(runtimeState) {
|
|
8440
|
+
for (const reader of DEVICE_STATE_READERS) {
|
|
8441
|
+
const slice = runtimeState[reader.cap];
|
|
8442
|
+
if (slice === null || typeof slice !== "object") continue;
|
|
8443
|
+
const value = slice[reader.field];
|
|
8444
|
+
if (typeof value === "string" && value.length > 0) return value;
|
|
8445
|
+
if (typeof value === "boolean" && reader.booleanWords !== void 0) return value ? reader.booleanWords[0] : reader.booleanWords[1];
|
|
8446
|
+
}
|
|
8447
|
+
}
|
|
8448
|
+
/**
|
|
8375
8449
|
* Error types for the safe expression engine. Two distinct classes so callers
|
|
8376
8450
|
* can tell a compile-time (grammar) failure from a runtime (evaluation)
|
|
8377
8451
|
* failure — both are non-fatal to the host: read paths degrade to "skip link".
|
|
@@ -9194,11 +9268,13 @@ var NcZoneConditionSchema = object({
|
|
|
9194
9268
|
/** Quantifier over `ids` — at least one / every one visited. */
|
|
9195
9269
|
match: _enum(["any", "all"]).default("any")
|
|
9196
9270
|
});
|
|
9197
|
-
/**
|
|
9198
|
-
* The P1 condition set — a flat AND of groups; absent group = pass;
|
|
9199
|
-
* membership lists are OR within the list (spec §2.3).
|
|
9200
|
-
*/
|
|
9201
9271
|
var NcConditionsSchema = object({
|
|
9272
|
+
/** Gate on ANOTHER device's current state (the alarm armed, a switch on). */
|
|
9273
|
+
deviceState: object({
|
|
9274
|
+
deviceId: number().int(),
|
|
9275
|
+
/** Any of these matches. */
|
|
9276
|
+
states: array(string().min(1)).min(1)
|
|
9277
|
+
}).optional(),
|
|
9202
9278
|
/** Device scope — absent = all devices. */
|
|
9203
9279
|
devices: array(number()).optional(),
|
|
9204
9280
|
/** Detector class names (any overlap with the record's class set). */
|
|
@@ -9399,6 +9475,14 @@ var NcMediaPolicySchema = object({
|
|
|
9399
9475
|
clipPreRollSec: number().int().min(0).max(30).optional(),
|
|
9400
9476
|
clipPostRollSec: number().int().min(0).max(30).optional(),
|
|
9401
9477
|
/**
|
|
9478
|
+
* Playback rate of the attached gif / clip. Absent = 2x.
|
|
9479
|
+
*
|
|
9480
|
+
* A notification clip is GLANCED at on a lock screen, not watched: at real
|
|
9481
|
+
* time an eight-second passage is eight seconds of the recipient's attention
|
|
9482
|
+
* and twice the bytes. 1 is real time for the operator who wants it.
|
|
9483
|
+
*/
|
|
9484
|
+
clipSpeed: number().min(1).max(8).optional(),
|
|
9485
|
+
/**
|
|
9402
9486
|
* Which stream profile the footage is cut from. Absent = the CHEAPEST
|
|
9403
9487
|
* assigned profile: a notification is watched on a phone, so the 4K
|
|
9404
9488
|
* rendition would burn CPU to produce a file the client downscales anyway.
|
|
@@ -9470,7 +9554,21 @@ var NcRuleInputSchema = object({
|
|
|
9470
9554
|
* behaviour, visible to all, read-only in the viewer). Present = personal
|
|
9471
9555
|
* rule owned by this userId. Server-stamped; never trusted from a client.
|
|
9472
9556
|
*/
|
|
9473
|
-
ownerUserId: string().optional()
|
|
9557
|
+
ownerUserId: string().optional(),
|
|
9558
|
+
/**
|
|
9559
|
+
* May a non-admin snooze this rule for EVERYONE, not just themselves?
|
|
9560
|
+
*
|
|
9561
|
+
* A snooze is personal by default — it silences the person who set it. This
|
|
9562
|
+
* opts THIS rule into the "the gardener is here all afternoon" case, where
|
|
9563
|
+
* silencing the camera for the whole household is legitimate. It silences
|
|
9564
|
+
* other people, so it is off unless a rule deliberately allows it.
|
|
9565
|
+
*
|
|
9566
|
+
* `.optional()`, deliberately NOT `.default()`: a Zod default does not run on
|
|
9567
|
+
* the addon cap path (three production failures in one day), so absent is
|
|
9568
|
+
* read as `false` by {@link canSetGlobal} in the engine. Admins are not bound
|
|
9569
|
+
* by this flag — see the scope rules on that function.
|
|
9570
|
+
*/
|
|
9571
|
+
snoozeAllowGlobal: boolean().optional()
|
|
9474
9572
|
});
|
|
9475
9573
|
/**
|
|
9476
9574
|
* Partial patch for `updateRule` — any subset of the input fields, plus the
|
|
@@ -9541,7 +9639,8 @@ var NcConditionDescriptorSchema = object({
|
|
|
9541
9639
|
"packagePhase",
|
|
9542
9640
|
"crossingSelect",
|
|
9543
9641
|
"polygonDraw",
|
|
9544
|
-
"occupancy"
|
|
9642
|
+
"occupancy",
|
|
9643
|
+
"deviceState"
|
|
9545
9644
|
]),
|
|
9546
9645
|
operator: _enum([
|
|
9547
9646
|
"in",
|
|
@@ -9555,7 +9654,28 @@ var NcConditionDescriptorSchema = object({
|
|
|
9555
9654
|
/** Which delivery kinds the condition applies to. */
|
|
9556
9655
|
appliesTo: array(NcDeliverySchema),
|
|
9557
9656
|
phase: string(),
|
|
9558
|
-
description: string().optional()
|
|
9657
|
+
description: string().optional(),
|
|
9658
|
+
/**
|
|
9659
|
+
* The CHOICES for a single-choice widget (`sourceSelect`, `crossingSelect`,
|
|
9660
|
+
* `packagePhase`, …), served with the descriptor.
|
|
9661
|
+
*
|
|
9662
|
+
* Before this the descriptor said which widget to render and not what to put
|
|
9663
|
+
* in it, so every option list lived in three places: this file's enums, the
|
|
9664
|
+
* admin's `NC_*_OPTIONS` and the viewer's `NC_*_VALUES`. That triple mirror
|
|
9665
|
+
* is the drift that emptied the viewer's rule editor on 2026-08-04 — the app
|
|
9666
|
+
* mirrors the cap by hand, so it is only ever as current as its last build.
|
|
9667
|
+
*
|
|
9668
|
+
* With the options on the wire, a condition of an EXISTING `valueType` costs
|
|
9669
|
+
* zero client changes. Clients keep a local fallback for an older hub that
|
|
9670
|
+
* does not send them; absent here is "use your own list", not "no choices".
|
|
9671
|
+
*/
|
|
9672
|
+
options: array(object({
|
|
9673
|
+
/** Written to the rule verbatim. `''` means the ABSENT state. */
|
|
9674
|
+
value: string(),
|
|
9675
|
+
label: string(),
|
|
9676
|
+
/** What THIS choice matches — shown one at a time, under the control. */
|
|
9677
|
+
hint: string().optional()
|
|
9678
|
+
})).readonly().optional()
|
|
9559
9679
|
});
|
|
9560
9680
|
/**
|
|
9561
9681
|
* The P1 condition surface as data — served by `getConditionCatalog` so
|
|
@@ -9649,6 +9769,28 @@ var NC_CONDITION_CATALOG = [
|
|
|
9649
9769
|
group: "zones",
|
|
9650
9770
|
label: "Zone crossing",
|
|
9651
9771
|
valueType: "crossingSelect",
|
|
9772
|
+
options: [
|
|
9773
|
+
{
|
|
9774
|
+
value: "",
|
|
9775
|
+
label: "Not set — entering",
|
|
9776
|
+
hint: "Entries, and every detection that is not a crossing at all. Exits are excluded. This is what a rule without a crossing condition already does, and choosing it writes nothing to the rule."
|
|
9777
|
+
},
|
|
9778
|
+
{
|
|
9779
|
+
value: "enter",
|
|
9780
|
+
label: "Entered a zone",
|
|
9781
|
+
hint: "The same matches as \"not set\", stated explicitly: entries and non-crossing detections pass, exits do not."
|
|
9782
|
+
},
|
|
9783
|
+
{
|
|
9784
|
+
value: "exit",
|
|
9785
|
+
label: "Left a zone",
|
|
9786
|
+
hint: "ONLY an exit crossing. A detection that is not a crossing fails, so this rule cannot fire on ordinary movement — pair it with the zones the subject must have left. Also matches a tripwire crossed against its drawn direction."
|
|
9787
|
+
},
|
|
9788
|
+
{
|
|
9789
|
+
value: "any",
|
|
9790
|
+
label: "Entered or left",
|
|
9791
|
+
hint: "No direction filter: entries, exits and non-crossing detections alike. This is the only choice that adds exits to what the rule already matched."
|
|
9792
|
+
}
|
|
9793
|
+
],
|
|
9652
9794
|
operator: "in",
|
|
9653
9795
|
appliesTo: ["immediate"],
|
|
9654
9796
|
phase: "P1",
|
|
@@ -9729,6 +9871,24 @@ var NC_CONDITION_CATALOG = [
|
|
|
9729
9871
|
group: "scope",
|
|
9730
9872
|
label: "Detection source",
|
|
9731
9873
|
valueType: "sourceSelect",
|
|
9874
|
+
options: [
|
|
9875
|
+
{
|
|
9876
|
+
value: "any",
|
|
9877
|
+
label: "Any source"
|
|
9878
|
+
},
|
|
9879
|
+
{
|
|
9880
|
+
value: "pipeline",
|
|
9881
|
+
label: "Pipeline"
|
|
9882
|
+
},
|
|
9883
|
+
{
|
|
9884
|
+
value: "onboard",
|
|
9885
|
+
label: "Onboard (camera)"
|
|
9886
|
+
},
|
|
9887
|
+
{
|
|
9888
|
+
value: "sensor",
|
|
9889
|
+
label: "Sensor"
|
|
9890
|
+
}
|
|
9891
|
+
],
|
|
9732
9892
|
operator: "in",
|
|
9733
9893
|
appliesTo: [
|
|
9734
9894
|
"immediate",
|
|
@@ -9739,6 +9899,21 @@ var NC_CONDITION_CATALOG = [
|
|
|
9739
9899
|
phase: "P1",
|
|
9740
9900
|
description: "pipeline / onboard / sensor; a record with no stamped source counts as pipeline."
|
|
9741
9901
|
},
|
|
9902
|
+
{
|
|
9903
|
+
id: "deviceState",
|
|
9904
|
+
group: "scope",
|
|
9905
|
+
label: "Device state",
|
|
9906
|
+
valueType: "deviceState",
|
|
9907
|
+
operator: "in",
|
|
9908
|
+
appliesTo: [
|
|
9909
|
+
"immediate",
|
|
9910
|
+
"track-end",
|
|
9911
|
+
"device-event",
|
|
9912
|
+
"package-event"
|
|
9913
|
+
],
|
|
9914
|
+
phase: "P2",
|
|
9915
|
+
description: "Only fire while another device is in one of the chosen states — the alarm armed, a switch on, a contact closed. A state that cannot be read does NOT fire."
|
|
9916
|
+
},
|
|
9742
9917
|
{
|
|
9743
9918
|
id: "sensorKinds",
|
|
9744
9919
|
group: "device",
|
|
@@ -9764,6 +9939,20 @@ var NC_CONDITION_CATALOG = [
|
|
|
9764
9939
|
group: "package",
|
|
9765
9940
|
label: "Package phase",
|
|
9766
9941
|
valueType: "packagePhase",
|
|
9942
|
+
options: [
|
|
9943
|
+
{
|
|
9944
|
+
value: "delivered",
|
|
9945
|
+
label: "Delivered"
|
|
9946
|
+
},
|
|
9947
|
+
{
|
|
9948
|
+
value: "picked-up",
|
|
9949
|
+
label: "Picked up"
|
|
9950
|
+
},
|
|
9951
|
+
{
|
|
9952
|
+
value: "both",
|
|
9953
|
+
label: "Both"
|
|
9954
|
+
}
|
|
9955
|
+
],
|
|
9767
9956
|
operator: "in",
|
|
9768
9957
|
appliesTo: ["package-event"],
|
|
9769
9958
|
phase: "P1",
|
|
@@ -9892,6 +10081,75 @@ var NcHistoryFilterSchema = object({
|
|
|
9892
10081
|
until: number().optional(),
|
|
9893
10082
|
limit: number().int().min(1).max(500).default(100)
|
|
9894
10083
|
});
|
|
10084
|
+
/**
|
|
10085
|
+
* What a snooze covers. Broader scopes win when several overlap, so one window
|
|
10086
|
+
* leaves ONE digest rather than a rule snooze and a whole-feed snooze both
|
|
10087
|
+
* summarising the same silence.
|
|
10088
|
+
*/
|
|
10089
|
+
var NcSnoozeScopeSchema = _enum([
|
|
10090
|
+
"rule",
|
|
10091
|
+
"device",
|
|
10092
|
+
"all"
|
|
10093
|
+
]);
|
|
10094
|
+
/**
|
|
10095
|
+
* Client-authored snooze. The server stamps `userId`, `startedAt` and
|
|
10096
|
+
* `expiresAt` — a DURATION is sent rather than an instant so a client with a
|
|
10097
|
+
* skewed clock cannot author a window that is already over, or never ends.
|
|
10098
|
+
*/
|
|
10099
|
+
var NcSnoozeInputSchema = object({
|
|
10100
|
+
scope: NcSnoozeScopeSchema,
|
|
10101
|
+
/** Required when `scope: 'rule'` — a scoped snooze with no id matches
|
|
10102
|
+
* NOTHING rather than degrading to "everything". */
|
|
10103
|
+
ruleId: string().optional(),
|
|
10104
|
+
/** Required when `scope: 'device'`. */
|
|
10105
|
+
deviceId: number().int().optional(),
|
|
10106
|
+
durationMinutes: number().int().min(1).max(1440),
|
|
10107
|
+
/**
|
|
10108
|
+
* Silence this for EVERY recipient, not just the caller. Permission is
|
|
10109
|
+
* checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
|
|
10110
|
+
* broader scopes). Absent = personal.
|
|
10111
|
+
*/
|
|
10112
|
+
global: boolean().optional(),
|
|
10113
|
+
/**
|
|
10114
|
+
* Deliver a summary of what was suppressed when the window ends. Absent =
|
|
10115
|
+
* ON: someone silencing a nuisance camera wants it off, someone silencing a
|
|
10116
|
+
* SECURITY camera wants to know what they missed, and choosing "off" for
|
|
10117
|
+
* everybody is how a snooze becomes an outage. Resolved to a concrete
|
|
10118
|
+
* boolean by the server at create time — never left to a Zod default, which
|
|
10119
|
+
* does not run on the addon cap path.
|
|
10120
|
+
*/
|
|
10121
|
+
summary: boolean().optional()
|
|
10122
|
+
});
|
|
10123
|
+
/** A persisted snooze window. */
|
|
10124
|
+
var NcSnoozeSchema = object({
|
|
10125
|
+
id: string(),
|
|
10126
|
+
/** Who set it. Also who it silences, unless `global`. */
|
|
10127
|
+
userId: string(),
|
|
10128
|
+
scope: NcSnoozeScopeSchema,
|
|
10129
|
+
ruleId: string().optional(),
|
|
10130
|
+
deviceId: number().int().optional(),
|
|
10131
|
+
startedAt: number(),
|
|
10132
|
+
/** Exclusive: at exactly this instant the snooze is over. Expiry is a
|
|
10133
|
+
* COMPARISON, not a job — no sweeper can leave the operator silenced. */
|
|
10134
|
+
expiresAt: number(),
|
|
10135
|
+
global: boolean(),
|
|
10136
|
+
summary: boolean(),
|
|
10137
|
+
/** When the end-of-window digest went out. Absent = not sent (yet, or the
|
|
10138
|
+
* window has not closed, or `summary` is false). */
|
|
10139
|
+
digestSentAt: number().optional()
|
|
10140
|
+
});
|
|
10141
|
+
/** One line of an end-of-window digest: what one rule hid on one camera. */
|
|
10142
|
+
var NcSnoozeSuppressedSchema = object({
|
|
10143
|
+
snoozeId: string(),
|
|
10144
|
+
targetId: string(),
|
|
10145
|
+
ruleId: string(),
|
|
10146
|
+
ruleName: string(),
|
|
10147
|
+
deviceId: number().int(),
|
|
10148
|
+
/** How many notifications this snooze hid for that pair. */
|
|
10149
|
+
count: number().int(),
|
|
10150
|
+
firstAt: number(),
|
|
10151
|
+
lastAt: number()
|
|
10152
|
+
});
|
|
9895
10153
|
var notificationRulesCapability = {
|
|
9896
10154
|
name: "notification-rules",
|
|
9897
10155
|
scope: "system",
|
|
@@ -9958,7 +10216,36 @@ var notificationRulesCapability = {
|
|
|
9958
10216
|
* P1 (no user dimension); the P2 viewer History screen adds per-caller
|
|
9959
10217
|
* scoping on the same method.
|
|
9960
10218
|
*/
|
|
9961
|
-
getHistory: method(object({ filter: NcHistoryFilterSchema.default({ limit: 100 }) }), object({ entries: array(NcHistoryEntrySchema) }), { auth: "admin" })
|
|
10219
|
+
getHistory: method(object({ filter: NcHistoryFilterSchema.default({ limit: 100 }) }), object({ entries: array(NcHistoryEntrySchema) }), { auth: "admin" }),
|
|
10220
|
+
/**
|
|
10221
|
+
* Snooze windows currently in effect, plus any whose digest has not yet
|
|
10222
|
+
* gone out. `caller: 'required'`: a user sees their OWN windows and the
|
|
10223
|
+
* global ones that silence them, never another person's private silence.
|
|
10224
|
+
* An admin sees every window — a household-wide silence is exactly the
|
|
10225
|
+
* thing an operator has to be able to find and cancel.
|
|
10226
|
+
*/
|
|
10227
|
+
listSnoozes: method(object({}), object({ snoozes: array(NcSnoozeSchema) }), { caller: "required" }),
|
|
10228
|
+
/**
|
|
10229
|
+
* Open a window. `userId` is stamped from the caller; a GLOBAL window is
|
|
10230
|
+
* permission-checked server-side (the rule's `snoozeAllowGlobal` for a
|
|
10231
|
+
* rule-scoped one, admin for a camera or the whole feed) — a client asking
|
|
10232
|
+
* for one it may not have is rejected, never silently downgraded, because
|
|
10233
|
+
* a snooze the operator believes is in effect and is not is the same
|
|
10234
|
+
* failure as one they cannot end.
|
|
10235
|
+
*/
|
|
10236
|
+
createSnooze: method(object({ snooze: NcSnoozeInputSchema }), object({ snooze: NcSnoozeSchema }), {
|
|
10237
|
+
kind: "mutation",
|
|
10238
|
+
caller: "required"
|
|
10239
|
+
}),
|
|
10240
|
+
/**
|
|
10241
|
+
* End a window NOW. The digest still goes out (what was hidden while it
|
|
10242
|
+
* was open is still what the operator missed); only the silence stops.
|
|
10243
|
+
* A user may cancel their own; an admin may cancel any.
|
|
10244
|
+
*/
|
|
10245
|
+
cancelSnooze: method(object({ snoozeId: string() }), object({ success: literal(true) }), {
|
|
10246
|
+
kind: "mutation",
|
|
10247
|
+
caller: "required"
|
|
10248
|
+
})
|
|
9962
10249
|
}
|
|
9963
10250
|
};
|
|
9964
10251
|
/**
|
|
@@ -10738,7 +11025,15 @@ method(object({
|
|
|
10738
11025
|
format: _enum(["gif", "mp4"]).default("gif"),
|
|
10739
11026
|
maxWidth: number().int().min(120).max(1920).default(480),
|
|
10740
11027
|
/** GIF only — MP4 keeps the source cadence. */
|
|
10741
|
-
fps: number().int().min(1).max(15).default(5)
|
|
11028
|
+
fps: number().int().min(1).max(15).default(5),
|
|
11029
|
+
/**
|
|
11030
|
+
* Playback rate. A notification clip is GLANCED at on a lock screen,
|
|
11031
|
+
* not watched, so 2x is the default: the recipient sees the whole
|
|
11032
|
+
* passage in half the time and the GIF is half the bytes. `1` is real
|
|
11033
|
+
* time. Applies to MP4 as well — the operator set a speed, not a GIF
|
|
11034
|
+
* speed.
|
|
11035
|
+
*/
|
|
11036
|
+
speed: number().min(1).max(8).default(2)
|
|
10742
11037
|
}), object({
|
|
10743
11038
|
base64: string(),
|
|
10744
11039
|
mime: string(),
|
|
@@ -25137,12 +25432,24 @@ Object.freeze({
|
|
|
25137
25432
|
addonId: null,
|
|
25138
25433
|
access: "create"
|
|
25139
25434
|
},
|
|
25435
|
+
"notificationRules.cancelSnooze": {
|
|
25436
|
+
capName: "notification-rules",
|
|
25437
|
+
capScope: "system",
|
|
25438
|
+
addonId: null,
|
|
25439
|
+
access: "create"
|
|
25440
|
+
},
|
|
25140
25441
|
"notificationRules.createRule": {
|
|
25141
25442
|
capName: "notification-rules",
|
|
25142
25443
|
capScope: "system",
|
|
25143
25444
|
addonId: null,
|
|
25144
25445
|
access: "create"
|
|
25145
25446
|
},
|
|
25447
|
+
"notificationRules.createSnooze": {
|
|
25448
|
+
capName: "notification-rules",
|
|
25449
|
+
capScope: "system",
|
|
25450
|
+
addonId: null,
|
|
25451
|
+
access: "create"
|
|
25452
|
+
},
|
|
25146
25453
|
"notificationRules.deleteRule": {
|
|
25147
25454
|
capName: "notification-rules",
|
|
25148
25455
|
capScope: "system",
|
|
@@ -25173,6 +25480,12 @@ Object.freeze({
|
|
|
25173
25480
|
addonId: null,
|
|
25174
25481
|
access: "view"
|
|
25175
25482
|
},
|
|
25483
|
+
"notificationRules.listSnoozes": {
|
|
25484
|
+
capName: "notification-rules",
|
|
25485
|
+
capScope: "system",
|
|
25486
|
+
addonId: null,
|
|
25487
|
+
access: "view"
|
|
25488
|
+
},
|
|
25176
25489
|
"notificationRules.setRuleEnabled": {
|
|
25177
25490
|
capName: "notification-rules",
|
|
25178
25491
|
capScope: "system",
|
|
@@ -27500,4 +27813,4 @@ Object.freeze({
|
|
|
27500
27813
|
"smtp-provider": "email"
|
|
27501
27814
|
});
|
|
27502
27815
|
//#endregion
|
|
27503
|
-
export {
|
|
27816
|
+
export { readDeviceStateFrom as A, _enum as B, defineCustomActions as C, notificationRulesCapability as D, hfModelUrl as E, BaseAddon as F, object as G, boolean as H, DeviceType as I, string as K, createEvent as L, videoclipsCapability as M, zoneAnalyticsCapability as N, pipelineAnalyticsCapability as O, errMsg as P, hydrateSchema as R, customAction as S, faceGalleryCapability as T, literal as U, array as V, number as W, TimelapseRuleSchema as _, NC_CONDITION_CATALOG as a, buildEventKindDescriptor as b, NcRuleInputSchema as c, NcSnoozeInputSchema as d, NcSnoozeSchema as f, TimelapseRuleInputSchema as g, OpsLogEntrySchema as h, MACRO_LABELS as i, subKindsOf as j, plateGalleryCapability as k, NcRulePatchSchema as l, NcTaxonomySchema as m, EVENT_KIND_BY_CAP as n, NC_TAXONOMY as o, NcSnoozeSuppressedSchema as p, EventCategory as q, EVENT_PAD_MS as r, NcConditionDescriptorSchema as s, DEFAULT_EVENT_COLOR as t, NcRuleSchema as u, addonWidgetsSourceCapability as v, embeddingEncoderCapability as w, cosineSimilarity as x, audioMetricsCapability as y, nodePin as z };
|
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-CP-FTAl5.js");
|
|
6
6
|
let node_fs = require("node:fs");
|
|
7
7
|
let node_fs$1 = require_dist.__toESM(node_fs, 1);
|
|
8
8
|
node_fs = require_dist.__toESM(node_fs);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as hfModelUrl, F as BaseAddon, w as embeddingEncoderCapability } from "../dist-O227Je-Q.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import * as fs from "node:fs";
|
|
4
4
|
import "node:fs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as e, i as t, n, o as r, r as i, t as a } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare__react__loadShare__.js-C0AuF9av.mjs";
|
|
2
2
|
import { t as o } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-B3Wx5J80.mjs";
|
|
3
|
-
import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-
|
|
3
|
+
import { a as s, i as c, n as l, o as u, r as d, s as f, t as p } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CHPq_p1Y.mjs";
|
|
4
4
|
import { n as m, r as h, t as g } from "./_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-Bm-iyjmq.mjs";
|
|
5
5
|
//#region ../../node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
6
6
|
var _ = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), v = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), y = (e) => {
|
|
@@ -18,7 +18,7 @@ var e = {
|
|
|
18
18
|
},
|
|
19
19
|
"@camstack/types": {
|
|
20
20
|
name: "@camstack/types",
|
|
21
|
-
version: "1.2.
|
|
21
|
+
version: "1.2.26",
|
|
22
22
|
scope: ["default"],
|
|
23
23
|
loaded: !1,
|
|
24
24
|
from: "addon_pipeline_analytics_widgets",
|
|
@@ -33,7 +33,7 @@ var e = {
|
|
|
33
33
|
},
|
|
34
34
|
"@camstack/ui-library": {
|
|
35
35
|
name: "@camstack/ui-library",
|
|
36
|
-
version: "1.2.
|
|
36
|
+
version: "1.2.19",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_pipeline_analytics_widgets",
|