@camstack/addon-decoder-ffmpeg 1.2.14 → 1.2.15

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/index.js CHANGED
@@ -13098,7 +13098,23 @@ var NotificationActionSchema = object({
13098
13098
  * else — see `notification-center/action-token.ts` for what that does and
13099
13099
  * does not buy.
13100
13100
  */
13101
- destructive: boolean().optional()
13101
+ destructive: boolean().optional(),
13102
+ /**
13103
+ * How the tap should REACH the url.
13104
+ *
13105
+ * `navigate` (absent, and every button authored before this field) opens it:
13106
+ * the phone leaves the notification and shows whatever the callback returns.
13107
+ * That is right for a button whose answer the operator wants to read.
13108
+ *
13109
+ * `background` fires it as a POST and stays put. It exists for the buttons
13110
+ * whose whole point is not to interrupt — "silence this for 30 minutes" is
13111
+ * an answer to the notification, and being thrown into a browser tab to
13112
+ * confirm it costs more attention than the notification did. A backend that
13113
+ * cannot do a background call renders it as an ordinary link (the adapters
13114
+ * fall back rather than dropping the button), so this is a preference, never
13115
+ * a requirement.
13116
+ */
13117
+ mode: _enum(["navigate", "background"]).optional()
13102
13118
  });
13103
13119
  /**
13104
13120
  * The canonical notification. `body` is the only hard field (Apprise model).
@@ -14099,6 +14115,9 @@ var NcSystemEventConditionSchema = object({
14099
14115
  nodeIds: array(string().min(1)).min(1).optional(),
14100
14116
  packageNames: array(string().min(1)).min(1).optional()
14101
14117
  });
14118
+ /** Hard ceiling on a window (24h). A snooze that could not expire would be an
14119
+ * outage the operator asked for once and forgot. */
14120
+ var NC_SNOOZE_MAX_MINUTES = 1440;
14102
14121
  /** Weekly schedule — OR of windows; absence on the rule = always active. */
14103
14122
  var NcScheduleSchema = object({
14104
14123
  windows: array(object({
@@ -14475,15 +14494,15 @@ var NcConditionsSchema = object({
14475
14494
  * (an `immediate` rule naming an `audio-*` class, one notification per
14476
14495
  * classified sample) stays exactly as it was for rules that already use it.
14477
14496
  *
14478
- * NOT in {@link NC_CONDITION_CATALOG} yet, and that is the sequencing rule
14479
- * rather than an oversight: the viewer mirrors the descriptor enums BY HAND
14480
- * (`camstack/src/data/notification-center.ts`, guarded by
14481
- * `scripts/check-viewer-condition-mirror.ts`) and its rule editor STRIPS the
14497
+ * In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
14498
+ * rule rather than an accident: the viewer mirrors the descriptor enums BY
14499
+ * HAND (`camstack/src/data/notification-center.ts`, guarded by
14500
+ * `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
14482
14501
  * condition fields it does not know when a rule is saved from the phone.
14483
14502
  * Publishing an editor for a condition the app cannot round-trip is how an
14484
- * operator loses a rule's conditions by opening it — so the descriptor, the
14485
- * admin widget and the viewer mirror land together (P2 + P3), and only then
14486
- * does an audio rule become authorable.
14503
+ * operator loses a rule's conditions by opening it — so the viewer mirror
14504
+ * (P3, shipped) went FIRST, and the descriptor an editor renders from
14505
+ * follows here.
14487
14506
  */
14488
14507
  audio: NcAudioConditionSchema.optional()
14489
14508
  });
@@ -14719,6 +14738,30 @@ var NcRuleInputSchema = object({
14719
14738
  */
14720
14739
  snoozeAllowGlobal: boolean().optional(),
14721
14740
  /**
14741
+ * The snooze durations THIS rule's notification offers as buttons, in
14742
+ * minutes.
14743
+ *
14744
+ * Three states, and all three are distinct — which is exactly why this is
14745
+ * `.optional()` and never `.default()`. A Zod default does not run on the
14746
+ * addon cap path (three production failures in one day), so a schema default
14747
+ * would collapse the first two:
14748
+ *
14749
+ * | value | meaning |
14750
+ * | --- | --- |
14751
+ * | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
14752
+ * | `[]` | **no snooze buttons on this rule** — the explicit override |
14753
+ * | a list | these choices, de-duplicated and sorted, at most four |
14754
+ *
14755
+ * `.max(4)` because the notifier's own action budget is small (ntfy allows
14756
+ * three buttons in total) and a rule that spent it all on snooze choices
14757
+ * would push its own tap-through actions off the notification.
14758
+ *
14759
+ * An empty list is NOT an alarm exemption: a rule the alarm is about, or
14760
+ * that arms the panel, is exempt automatically and cannot be silenced by a
14761
+ * window from anywhere (D133).
14762
+ */
14763
+ snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
14764
+ /**
14722
14765
  * Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
14723
14766
  *
14724
14767
  * This is what makes the rule set the alarm's trigger set without the alarm
@@ -14818,6 +14861,7 @@ var NcConditionDescriptorSchema = object({
14818
14861
  "device",
14819
14862
  "package",
14820
14863
  "occupancy",
14864
+ "audio",
14821
14865
  "system"
14822
14866
  ]),
14823
14867
  label: string(),
@@ -14836,6 +14880,7 @@ var NcConditionDescriptorSchema = object({
14836
14880
  "crossingSelect",
14837
14881
  "polygonDraw",
14838
14882
  "occupancy",
14883
+ "audio",
14839
14884
  "deviceState",
14840
14885
  "systemEvent"
14841
14886
  ]),
@@ -14987,7 +15032,20 @@ var NcSnoozeInputSchema = object({
14987
15032
  ruleId: string().optional(),
14988
15033
  /** Required when `scope: 'device'`. */
14989
15034
  deviceId: number().int().optional(),
14990
- durationMinutes: number().int().min(1).max(1440),
15035
+ /**
15036
+ * Narrow the window to these subject classes — "the cat, not the person".
15037
+ *
15038
+ * ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
15039
+ * what every window authored before this field meant, so no persisted row
15040
+ * changes meaning and no client has to learn anything to keep working.
15041
+ *
15042
+ * It is what makes the window's real key `(deviceId, classes[])` and lets it
15043
+ * cross rules (D133): the operator points at a camera and a kind of thing,
15044
+ * not at whichever of their four rules happened to produce the notification
15045
+ * they are dismissing.
15046
+ */
15047
+ classes: array(string().min(1)).min(1).optional(),
15048
+ durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
14991
15049
  /**
14992
15050
  * Silence this for EVERY recipient, not just the caller. Permission is
14993
15051
  * checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
@@ -15012,6 +15070,10 @@ var NcSnoozeSchema = object({
15012
15070
  scope: NcSnoozeScopeSchema,
15013
15071
  ruleId: string().optional(),
15014
15072
  deviceId: number().int().optional(),
15073
+ /** Subject classes this window covers. ABSENT = every class — see
15074
+ * {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
15075
+ * no SQLite column: nothing queries a window by class. */
15076
+ classes: array(string().min(1)).min(1).optional(),
15015
15077
  startedAt: number(),
15016
15078
  /** Exclusive: at exactly this instant the snooze is over. Expiry is a
15017
15079
  * COMPARISON, not a job — no sweeper can leave the operator silenced. */
@@ -30584,6 +30646,7 @@ Object.freeze({
30584
30646
  "network-access": "ingress",
30585
30647
  "smtp-provider": "email"
30586
30648
  });
30649
+ new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
30587
30650
  new Set(["devices", "classes"]);
30588
30651
  /**
30589
30652
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
package/dist/index.mjs CHANGED
@@ -13094,7 +13094,23 @@ var NotificationActionSchema = object({
13094
13094
  * else — see `notification-center/action-token.ts` for what that does and
13095
13095
  * does not buy.
13096
13096
  */
13097
- destructive: boolean().optional()
13097
+ destructive: boolean().optional(),
13098
+ /**
13099
+ * How the tap should REACH the url.
13100
+ *
13101
+ * `navigate` (absent, and every button authored before this field) opens it:
13102
+ * the phone leaves the notification and shows whatever the callback returns.
13103
+ * That is right for a button whose answer the operator wants to read.
13104
+ *
13105
+ * `background` fires it as a POST and stays put. It exists for the buttons
13106
+ * whose whole point is not to interrupt — "silence this for 30 minutes" is
13107
+ * an answer to the notification, and being thrown into a browser tab to
13108
+ * confirm it costs more attention than the notification did. A backend that
13109
+ * cannot do a background call renders it as an ordinary link (the adapters
13110
+ * fall back rather than dropping the button), so this is a preference, never
13111
+ * a requirement.
13112
+ */
13113
+ mode: _enum(["navigate", "background"]).optional()
13098
13114
  });
13099
13115
  /**
13100
13116
  * The canonical notification. `body` is the only hard field (Apprise model).
@@ -14095,6 +14111,9 @@ var NcSystemEventConditionSchema = object({
14095
14111
  nodeIds: array(string().min(1)).min(1).optional(),
14096
14112
  packageNames: array(string().min(1)).min(1).optional()
14097
14113
  });
14114
+ /** Hard ceiling on a window (24h). A snooze that could not expire would be an
14115
+ * outage the operator asked for once and forgot. */
14116
+ var NC_SNOOZE_MAX_MINUTES = 1440;
14098
14117
  /** Weekly schedule — OR of windows; absence on the rule = always active. */
14099
14118
  var NcScheduleSchema = object({
14100
14119
  windows: array(object({
@@ -14471,15 +14490,15 @@ var NcConditionsSchema = object({
14471
14490
  * (an `immediate` rule naming an `audio-*` class, one notification per
14472
14491
  * classified sample) stays exactly as it was for rules that already use it.
14473
14492
  *
14474
- * NOT in {@link NC_CONDITION_CATALOG} yet, and that is the sequencing rule
14475
- * rather than an oversight: the viewer mirrors the descriptor enums BY HAND
14476
- * (`camstack/src/data/notification-center.ts`, guarded by
14477
- * `scripts/check-viewer-condition-mirror.ts`) and its rule editor STRIPS the
14493
+ * In {@link NC_CONDITION_CATALOG} since P2, and the ORDER it got there is the
14494
+ * rule rather than an accident: the viewer mirrors the descriptor enums BY
14495
+ * HAND (`camstack/src/data/notification-center.ts`, guarded by
14496
+ * `scripts/check-viewer-condition-mirror.ts`) and its rule editor strips the
14478
14497
  * condition fields it does not know when a rule is saved from the phone.
14479
14498
  * Publishing an editor for a condition the app cannot round-trip is how an
14480
- * operator loses a rule's conditions by opening it — so the descriptor, the
14481
- * admin widget and the viewer mirror land together (P2 + P3), and only then
14482
- * does an audio rule become authorable.
14499
+ * operator loses a rule's conditions by opening it — so the viewer mirror
14500
+ * (P3, shipped) went FIRST, and the descriptor an editor renders from
14501
+ * follows here.
14483
14502
  */
14484
14503
  audio: NcAudioConditionSchema.optional()
14485
14504
  });
@@ -14715,6 +14734,30 @@ var NcRuleInputSchema = object({
14715
14734
  */
14716
14735
  snoozeAllowGlobal: boolean().optional(),
14717
14736
  /**
14737
+ * The snooze durations THIS rule's notification offers as buttons, in
14738
+ * minutes.
14739
+ *
14740
+ * Three states, and all three are distinct — which is exactly why this is
14741
+ * `.optional()` and never `.default()`. A Zod default does not run on the
14742
+ * addon cap path (three production failures in one day), so a schema default
14743
+ * would collapse the first two:
14744
+ *
14745
+ * | value | meaning |
14746
+ * | --- | --- |
14747
+ * | absent | the operator never said ⇒ {@link NC_DEFAULT_SNOOZE_MINUTES} |
14748
+ * | `[]` | **no snooze buttons on this rule** — the explicit override |
14749
+ * | a list | these choices, de-duplicated and sorted, at most four |
14750
+ *
14751
+ * `.max(4)` because the notifier's own action budget is small (ntfy allows
14752
+ * three buttons in total) and a rule that spent it all on snooze choices
14753
+ * would push its own tap-through actions off the notification.
14754
+ *
14755
+ * An empty list is NOT an alarm exemption: a rule the alarm is about, or
14756
+ * that arms the panel, is exempt automatically and cannot be silenced by a
14757
+ * window from anywhere (D133).
14758
+ */
14759
+ snoozeOptions: array(number().int().min(1).max(NC_SNOOZE_MAX_MINUTES)).max(4).optional(),
14760
+ /**
14718
14761
  * Devices this rule ACTUATES — arm the alarm, open a gate, turn on a light.
14719
14762
  *
14720
14763
  * This is what makes the rule set the alarm's trigger set without the alarm
@@ -14814,6 +14857,7 @@ var NcConditionDescriptorSchema = object({
14814
14857
  "device",
14815
14858
  "package",
14816
14859
  "occupancy",
14860
+ "audio",
14817
14861
  "system"
14818
14862
  ]),
14819
14863
  label: string(),
@@ -14832,6 +14876,7 @@ var NcConditionDescriptorSchema = object({
14832
14876
  "crossingSelect",
14833
14877
  "polygonDraw",
14834
14878
  "occupancy",
14879
+ "audio",
14835
14880
  "deviceState",
14836
14881
  "systemEvent"
14837
14882
  ]),
@@ -14983,7 +15028,20 @@ var NcSnoozeInputSchema = object({
14983
15028
  ruleId: string().optional(),
14984
15029
  /** Required when `scope: 'device'`. */
14985
15030
  deviceId: number().int().optional(),
14986
- durationMinutes: number().int().min(1).max(1440),
15031
+ /**
15032
+ * Narrow the window to these subject classes — "the cat, not the person".
15033
+ *
15034
+ * ORTHOGONAL to `scope`, deliberately, and absent means EVERY class: that is
15035
+ * what every window authored before this field meant, so no persisted row
15036
+ * changes meaning and no client has to learn anything to keep working.
15037
+ *
15038
+ * It is what makes the window's real key `(deviceId, classes[])` and lets it
15039
+ * cross rules (D133): the operator points at a camera and a kind of thing,
15040
+ * not at whichever of their four rules happened to produce the notification
15041
+ * they are dismissing.
15042
+ */
15043
+ classes: array(string().min(1)).min(1).optional(),
15044
+ durationMinutes: number().int().min(1).max(NC_SNOOZE_MAX_MINUTES),
14987
15045
  /**
14988
15046
  * Silence this for EVERY recipient, not just the caller. Permission is
14989
15047
  * checked server-side (the rule's `snoozeAllowGlobal`, or admin for the
@@ -15008,6 +15066,10 @@ var NcSnoozeSchema = object({
15008
15066
  scope: NcSnoozeScopeSchema,
15009
15067
  ruleId: string().optional(),
15010
15068
  deviceId: number().int().optional(),
15069
+ /** Subject classes this window covers. ABSENT = every class — see
15070
+ * {@link NcSnoozeInputSchema.shape.classes}. Lives in the JSON blob and has
15071
+ * no SQLite column: nothing queries a window by class. */
15072
+ classes: array(string().min(1)).min(1).optional(),
15011
15073
  startedAt: number(),
15012
15074
  /** Exclusive: at exactly this instant the snooze is over. Expiry is a
15013
15075
  * COMPARISON, not a job — no sweeper can leave the operator silenced. */
@@ -30580,6 +30642,7 @@ Object.freeze({
30580
30642
  "network-access": "ingress",
30581
30643
  "smtp-provider": "email"
30582
30644
  });
30645
+ new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
30583
30646
  new Set(["devices", "classes"]);
30584
30647
  /**
30585
30648
  * TimelapseRule — the STANDALONE scheduled timelapse producer's rule model.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-ffmpeg",
3
- "version": "1.2.14",
3
+ "version": "1.2.15",
4
4
  "description": "Standalone ffmpeg-subprocess decoder fallback addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",