@camstack/addon-export-hap 1.2.145 → 1.2.147

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.
@@ -5428,7 +5428,7 @@ var ZodIssueCode = {
5428
5428
  var ZodFirstPartyTypeKind;
5429
5429
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5430
5430
  //#endregion
5431
- //#region ../types/dist/sleep-CDCONfkt.mjs
5431
+ //#region ../types/dist/sleep-DXKLNFvA.mjs
5432
5432
  /**
5433
5433
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5434
5434
  * window to float samples (D455).
@@ -5736,6 +5736,43 @@ function hydrateField(field, values) {
5736
5736
  }
5737
5737
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5738
5738
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5739
+ if (field.type === "tags" && typeof field.suggestionsFrom === "string") {
5740
+ const from = values[field.suggestionsFrom];
5741
+ const extra = Array.isArray(from) ? from.filter((s) => typeof s === "string" && s.length > 0) : [];
5742
+ const merged = [...new Set([...field.suggestions ?? [], ...extra])];
5743
+ return {
5744
+ ...field,
5745
+ suggestions: merged,
5746
+ value
5747
+ };
5748
+ }
5749
+ if ((field.type === "select" || field.type === "multiselect") && typeof field.optionsFrom === "string") {
5750
+ const from = values[field.optionsFrom];
5751
+ const byValue = /* @__PURE__ */ new Map();
5752
+ for (const opt of field.options) byValue.set(opt.value, opt);
5753
+ if (Array.isArray(from)) for (const entry of from) {
5754
+ if (typeof entry === "string" && entry.length > 0) {
5755
+ if (!byValue.has(entry)) byValue.set(entry, {
5756
+ value: entry,
5757
+ label: entry
5758
+ });
5759
+ continue;
5760
+ }
5761
+ if (entry === null || typeof entry !== "object") continue;
5762
+ const v = Reflect.get(entry, "value");
5763
+ const lbl = Reflect.get(entry, "label");
5764
+ if (typeof v !== "string" || v.length === 0) continue;
5765
+ if (!byValue.has(v)) byValue.set(v, {
5766
+ value: v,
5767
+ label: typeof lbl === "string" && lbl.length > 0 ? lbl : v
5768
+ });
5769
+ }
5770
+ return {
5771
+ ...field,
5772
+ options: [...byValue.values()],
5773
+ value
5774
+ };
5775
+ }
5739
5776
  return {
5740
5777
  ...field,
5741
5778
  value
@@ -11816,7 +11853,16 @@ var AutomationActionSchema = discriminatedUnion("kind", [
11816
11853
  }),
11817
11854
  object({
11818
11855
  kind: literal("cap"),
11819
- deviceId: union([number().int(), object({ $var: string().min(1) })]),
11856
+ /**
11857
+ * One device, several same-family devices (locks / climate family / …),
11858
+ * or `{ $var }` for the device that triggered the run. An array is
11859
+ * fan-out at codegen — each id gets the same cap.method call.
11860
+ */
11861
+ deviceId: union([
11862
+ number().int(),
11863
+ array(number().int()).min(1),
11864
+ object({ $var: string().min(1) })
11865
+ ]),
11820
11866
  cap: string().min(1),
11821
11867
  method: string().min(1),
11822
11868
  /** Values may carry `{{vars.x}}` slots, which SUBSTITUTE and do not
@@ -15025,7 +15071,7 @@ DeviceType.Camera;
15025
15071
  * This matters here more than anywhere else in the repo, because every provider
15026
15072
  * that knows a device's host knows its PASSWORD too: `{ host, port, username,
15027
15073
  * password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
15028
- * and `http://admin:hunter2@192.168.50.139/` is a URL a browser accepts. The
15074
+ * and `http://admin:hunter2@192.168.x.x/` is a URL a browser accepts. The
15029
15075
  * camera's own page will ask for its own login. That is correct, and pre-
15030
15076
  * filling it is the operator's business, not ours.
15031
15077
  *
@@ -18538,10 +18584,35 @@ var SendResultSchema = object({
18538
18584
  });
18539
18585
  /** Same shape as SendResult — kept as a distinct name for the test panel. */
18540
18586
  var TestResultSchema = SendResultSchema;
18541
- method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSchema), { auth: "admin" }), method(object({
18587
+ /**
18588
+ * Pre-save credential probe against a partial (unsaved) target config.
18589
+ * `resolvedUrl` never includes secrets (token stripped from path).
18590
+ */
18591
+ var ProbeTargetConfigResultSchema = object({
18592
+ ok: boolean(),
18593
+ resolvedUrl: string(),
18594
+ httpStatus: number().int().optional(),
18595
+ stateInstance: string().optional(),
18596
+ error: string().optional()
18597
+ });
18598
+ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSchema), { auth: "admin" }), method(object({ targetId: string() }), TargetSchema, { auth: "admin" }), method(object({
18542
18599
  kind: string(),
18543
- config: record(string(), unknown()).optional()
18600
+ config: record(string(), unknown()).optional(),
18601
+ /**
18602
+ * When editing / duplicating, the blank password field never round-trips
18603
+ * the stored token. Pass the source target id so the provider can restore
18604
+ * secrets server-side before dialling (same merge as upsert).
18605
+ */
18606
+ targetId: string().optional()
18544
18607
  }), array(DiscoveredTargetSchema), { auth: "admin" }), method(object({
18608
+ kind: string(),
18609
+ config: record(string(), unknown()),
18610
+ /** See `discoverTargets.targetId` — restore stored secrets for a blank password. */
18611
+ targetId: string().optional()
18612
+ }), ProbeTargetConfigResultSchema, {
18613
+ kind: "mutation",
18614
+ auth: "admin"
18615
+ }), method(object({
18545
18616
  targetId: string(),
18546
18617
  notification: NotificationSchema
18547
18618
  }), SendResultSchema, {
@@ -18553,7 +18624,16 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
18553
18624
  }), TestResultSchema, {
18554
18625
  kind: "mutation",
18555
18626
  auth: "admin"
18556
- }), method(object({ target: TargetSchema }), TargetSchema, {
18627
+ }), method(object({
18628
+ target: TargetSchema,
18629
+ /**
18630
+ * Duplicate flow: create a NEW target id while copying secrets from an
18631
+ * existing row. The UI never holds the stored token; blank / redacted
18632
+ * password fields are restored from this source (D634 still applies if
18633
+ * destinations diverge without a re-typed secret).
18634
+ */
18635
+ cloneSecretsFrom: string().optional()
18636
+ }), TargetSchema, {
18557
18637
  kind: "mutation",
18558
18638
  auth: "admin"
18559
18639
  }), method(object({ targetId: string() }), _void(), {
@@ -20934,17 +21014,41 @@ var NC_ALARM_TRIGGERED_MAX_SEC = 3600;
20934
21014
  var NcAlarmDelaySecSchema = number().int().min(0).max(600);
20935
21015
  var NcAlarmTriggeredSecSchema = number().int().min(0).max(NC_ALARM_TRIGGERED_MAX_SEC);
20936
21016
  var uniqueModes = (entries) => new Set(entries.map((e) => e.mode)).size === entries.length;
21017
+ /**
21018
+ * What the panel does when a bounded triggered window ends.
21019
+ * - `rearmAfter` — return to the armed mode
21020
+ * - `disableAfter` — auto-disarm
21021
+ * - `doNothing` — stay triggered until a human disarms
21022
+ */
21023
+ var NcAlarmPostTriggeredActionSchema = _enum([
21024
+ "rearmAfter",
21025
+ "disableAfter",
21026
+ "doNothing"
21027
+ ]);
20937
21028
  var NcAlarmModeDelaysListSchema = array(object({
20938
21029
  mode: AlarmArmModeSchema,
20939
21030
  exitDelaySec: NcAlarmDelaySecSchema.optional(),
20940
21031
  entryDelaySec: NcAlarmDelaySecSchema.optional(),
20941
- triggeredDurationSec: NcAlarmTriggeredSecSchema.optional()
21032
+ /**
21033
+ * Duration of `triggered` before {@link postTriggeredAction}. Kept as the
21034
+ * historical field name so older clients still read/write a number.
21035
+ */
21036
+ triggeredDurationSec: NcAlarmTriggeredSecSchema.optional(),
21037
+ postTriggeredAction: NcAlarmPostTriggeredActionSchema.optional(),
21038
+ /**
21039
+ * When this mode may be armed. Absent / null = always allowed (same as a
21040
+ * rule with no `schedule`). Evaluated with {@link isScheduleActive}.
21041
+ */
21042
+ schedule: NcScheduleSchema.optional()
20942
21043
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20943
21044
  var NcAlarmModeDelaysEditListSchema = array(object({
20944
21045
  mode: AlarmArmModeSchema,
20945
21046
  exitDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
20946
21047
  entryDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
20947
- triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional()
21048
+ triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
21049
+ postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
21050
+ /** Set a schedule, or `null` to clear (mode always allowed again). */
21051
+ schedule: NcScheduleSchema.nullable().optional()
20948
21052
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20949
21053
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20950
21054
  var NcAlarmNonBlockingEditSchema = object({
@@ -21016,12 +21120,18 @@ var NcAlarmSettingsSchema = object({
21016
21120
  /** Grace period between a trigger and the alarm firing. 0 = immediate. */
21017
21121
  entryDelaySec: NcAlarmDelaySecSchema,
21018
21122
  /**
21019
- * How long `triggered` lasts before the panel re-arms itself.
21020
- * **0 = until an operator disarms it** — the behaviour before this field
21021
- * existed, and therefore what an untouched install keeps doing.
21123
+ * How long `triggered` lasts before {@link postTriggeredAction} runs.
21124
+ * Ignored when the action is `doNothing`. Historical name kept so older
21125
+ * clients still round-trip a number.
21022
21126
  */
21023
21127
  triggeredDurationSec: NcAlarmTriggeredSecSchema,
21024
21128
  /**
21129
+ * What happens when the triggered window ends. Absent on a blob older than
21130
+ * this field → derived from {@link triggeredDurationSec} (`>0` ⇒ rearmAfter,
21131
+ * else doNothing).
21132
+ */
21133
+ postTriggeredAction: NcAlarmPostTriggeredActionSchema.optional(),
21134
+ /**
21025
21135
  * Deprecated by D630 — every transition is announced. Parsed, never read;
21026
21136
  * remove after one release. Optional so an older admin's patch (which still
21027
21137
  * sends it) parses rather than failing the whole save.
@@ -31482,7 +31592,7 @@ var LocalInterfaceSchema = object({
31482
31592
  name: string(),
31483
31593
  family: _enum(["IPv4", "IPv6"]),
31484
31594
  address: string(),
31485
- /** CIDR shorthand (e.g. `192.168.1.10/24`). Empty when OS doesn't expose. */
31595
+ /** CIDR shorthand (e.g. `192.168.x.x/24`). Empty when OS doesn't expose. */
31486
31596
  cidr: string(),
31487
31597
  /** OS netmask. Stable across calls so the SDK can hash on it. */
31488
31598
  netmask: string(),
@@ -31928,7 +32038,7 @@ var MeshPeerSchema = object({
31928
32038
  tags: array(string()).readonly(),
31929
32039
  /** True when the peer advertises itself as an exit-node candidate. */
31930
32040
  exitNodeOption: boolean(),
31931
- /** Subnet routes the peer advertises (e.g. `["192.168.1.0/24"]`). */
32041
+ /** Subnet routes the peer advertises (e.g. `["192.168.x.x/24"]`). */
31932
32042
  advertisedRoutes: array(string()).readonly(),
31933
32043
  /** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
31934
32044
  userLogin: string().nullable(),
@@ -40851,6 +40961,12 @@ Object.freeze({
40851
40961
  addonId: null,
40852
40962
  access: "view"
40853
40963
  },
40964
+ "notificationOutput.getTarget": {
40965
+ capName: "notification-output",
40966
+ capScope: "system",
40967
+ addonId: null,
40968
+ access: "view"
40969
+ },
40854
40970
  "notificationOutput.listTargetKinds": {
40855
40971
  capName: "notification-output",
40856
40972
  capScope: "system",
@@ -40863,6 +40979,12 @@ Object.freeze({
40863
40979
  addonId: null,
40864
40980
  access: "view"
40865
40981
  },
40982
+ "notificationOutput.probeTargetConfig": {
40983
+ capName: "notification-output",
40984
+ capScope: "system",
40985
+ addonId: null,
40986
+ access: "create"
40987
+ },
40866
40988
  "notificationOutput.send": {
40867
40989
  capName: "notification-output",
40868
40990
  capScope: "system",
@@ -44572,6 +44694,7 @@ Object.freeze({
44572
44694
  access: "create"
44573
44695
  }
44574
44696
  });
44697
+ DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder;
44575
44698
  DeviceFeature.BatteryOperated;
44576
44699
  /**
44577
44700
  * The vocabulary, in the order a picker offers it.
@@ -5418,7 +5418,7 @@ var ZodIssueCode = {
5418
5418
  var ZodFirstPartyTypeKind;
5419
5419
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5420
5420
  //#endregion
5421
- //#region ../types/dist/sleep-CDCONfkt.mjs
5421
+ //#region ../types/dist/sleep-DXKLNFvA.mjs
5422
5422
  /**
5423
5423
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5424
5424
  * window to float samples (D455).
@@ -5726,6 +5726,43 @@ function hydrateField(field, values) {
5726
5726
  }
5727
5727
  const rawValue = storedValue !== void 0 ? storedValue : defaultValue !== void 0 ? defaultValue : null;
5728
5728
  const value = field.type === "textarea" && field.isJson && rawValue !== null && typeof rawValue === "object" ? JSON.stringify(rawValue, null, 2) : rawValue;
5729
+ if (field.type === "tags" && typeof field.suggestionsFrom === "string") {
5730
+ const from = values[field.suggestionsFrom];
5731
+ const extra = Array.isArray(from) ? from.filter((s) => typeof s === "string" && s.length > 0) : [];
5732
+ const merged = [...new Set([...field.suggestions ?? [], ...extra])];
5733
+ return {
5734
+ ...field,
5735
+ suggestions: merged,
5736
+ value
5737
+ };
5738
+ }
5739
+ if ((field.type === "select" || field.type === "multiselect") && typeof field.optionsFrom === "string") {
5740
+ const from = values[field.optionsFrom];
5741
+ const byValue = /* @__PURE__ */ new Map();
5742
+ for (const opt of field.options) byValue.set(opt.value, opt);
5743
+ if (Array.isArray(from)) for (const entry of from) {
5744
+ if (typeof entry === "string" && entry.length > 0) {
5745
+ if (!byValue.has(entry)) byValue.set(entry, {
5746
+ value: entry,
5747
+ label: entry
5748
+ });
5749
+ continue;
5750
+ }
5751
+ if (entry === null || typeof entry !== "object") continue;
5752
+ const v = Reflect.get(entry, "value");
5753
+ const lbl = Reflect.get(entry, "label");
5754
+ if (typeof v !== "string" || v.length === 0) continue;
5755
+ if (!byValue.has(v)) byValue.set(v, {
5756
+ value: v,
5757
+ label: typeof lbl === "string" && lbl.length > 0 ? lbl : v
5758
+ });
5759
+ }
5760
+ return {
5761
+ ...field,
5762
+ options: [...byValue.values()],
5763
+ value
5764
+ };
5765
+ }
5729
5766
  return {
5730
5767
  ...field,
5731
5768
  value
@@ -11806,7 +11843,16 @@ var AutomationActionSchema = discriminatedUnion("kind", [
11806
11843
  }),
11807
11844
  object({
11808
11845
  kind: literal("cap"),
11809
- deviceId: union([number().int(), object({ $var: string().min(1) })]),
11846
+ /**
11847
+ * One device, several same-family devices (locks / climate family / …),
11848
+ * or `{ $var }` for the device that triggered the run. An array is
11849
+ * fan-out at codegen — each id gets the same cap.method call.
11850
+ */
11851
+ deviceId: union([
11852
+ number().int(),
11853
+ array(number().int()).min(1),
11854
+ object({ $var: string().min(1) })
11855
+ ]),
11810
11856
  cap: string().min(1),
11811
11857
  method: string().min(1),
11812
11858
  /** Values may carry `{{vars.x}}` slots, which SUBSTITUTE and do not
@@ -15015,7 +15061,7 @@ DeviceType.Camera;
15015
15061
  * This matters here more than anywhere else in the repo, because every provider
15016
15062
  * that knows a device's host knows its PASSWORD too: `{ host, port, username,
15017
15063
  * password }` sit in one object on Hikvision, Amcrest, Reolink and ONVIF alike,
15018
- * and `http://admin:hunter2@192.168.50.139/` is a URL a browser accepts. The
15064
+ * and `http://admin:hunter2@192.168.x.x/` is a URL a browser accepts. The
15019
15065
  * camera's own page will ask for its own login. That is correct, and pre-
15020
15066
  * filling it is the operator's business, not ours.
15021
15067
  *
@@ -18528,10 +18574,35 @@ var SendResultSchema = object({
18528
18574
  });
18529
18575
  /** Same shape as SendResult — kept as a distinct name for the test panel. */
18530
18576
  var TestResultSchema = SendResultSchema;
18531
- method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSchema), { auth: "admin" }), method(object({
18577
+ /**
18578
+ * Pre-save credential probe against a partial (unsaved) target config.
18579
+ * `resolvedUrl` never includes secrets (token stripped from path).
18580
+ */
18581
+ var ProbeTargetConfigResultSchema = object({
18582
+ ok: boolean(),
18583
+ resolvedUrl: string(),
18584
+ httpStatus: number().int().optional(),
18585
+ stateInstance: string().optional(),
18586
+ error: string().optional()
18587
+ });
18588
+ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSchema), { auth: "admin" }), method(object({ targetId: string() }), TargetSchema, { auth: "admin" }), method(object({
18532
18589
  kind: string(),
18533
- config: record(string(), unknown()).optional()
18590
+ config: record(string(), unknown()).optional(),
18591
+ /**
18592
+ * When editing / duplicating, the blank password field never round-trips
18593
+ * the stored token. Pass the source target id so the provider can restore
18594
+ * secrets server-side before dialling (same merge as upsert).
18595
+ */
18596
+ targetId: string().optional()
18534
18597
  }), array(DiscoveredTargetSchema), { auth: "admin" }), method(object({
18598
+ kind: string(),
18599
+ config: record(string(), unknown()),
18600
+ /** See `discoverTargets.targetId` — restore stored secrets for a blank password. */
18601
+ targetId: string().optional()
18602
+ }), ProbeTargetConfigResultSchema, {
18603
+ kind: "mutation",
18604
+ auth: "admin"
18605
+ }), method(object({
18535
18606
  targetId: string(),
18536
18607
  notification: NotificationSchema
18537
18608
  }), SendResultSchema, {
@@ -18543,7 +18614,16 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
18543
18614
  }), TestResultSchema, {
18544
18615
  kind: "mutation",
18545
18616
  auth: "admin"
18546
- }), method(object({ target: TargetSchema }), TargetSchema, {
18617
+ }), method(object({
18618
+ target: TargetSchema,
18619
+ /**
18620
+ * Duplicate flow: create a NEW target id while copying secrets from an
18621
+ * existing row. The UI never holds the stored token; blank / redacted
18622
+ * password fields are restored from this source (D634 still applies if
18623
+ * destinations diverge without a re-typed secret).
18624
+ */
18625
+ cloneSecretsFrom: string().optional()
18626
+ }), TargetSchema, {
18547
18627
  kind: "mutation",
18548
18628
  auth: "admin"
18549
18629
  }), method(object({ targetId: string() }), _void(), {
@@ -20924,17 +21004,41 @@ var NC_ALARM_TRIGGERED_MAX_SEC = 3600;
20924
21004
  var NcAlarmDelaySecSchema = number().int().min(0).max(600);
20925
21005
  var NcAlarmTriggeredSecSchema = number().int().min(0).max(NC_ALARM_TRIGGERED_MAX_SEC);
20926
21006
  var uniqueModes = (entries) => new Set(entries.map((e) => e.mode)).size === entries.length;
21007
+ /**
21008
+ * What the panel does when a bounded triggered window ends.
21009
+ * - `rearmAfter` — return to the armed mode
21010
+ * - `disableAfter` — auto-disarm
21011
+ * - `doNothing` — stay triggered until a human disarms
21012
+ */
21013
+ var NcAlarmPostTriggeredActionSchema = _enum([
21014
+ "rearmAfter",
21015
+ "disableAfter",
21016
+ "doNothing"
21017
+ ]);
20927
21018
  var NcAlarmModeDelaysListSchema = array(object({
20928
21019
  mode: AlarmArmModeSchema,
20929
21020
  exitDelaySec: NcAlarmDelaySecSchema.optional(),
20930
21021
  entryDelaySec: NcAlarmDelaySecSchema.optional(),
20931
- triggeredDurationSec: NcAlarmTriggeredSecSchema.optional()
21022
+ /**
21023
+ * Duration of `triggered` before {@link postTriggeredAction}. Kept as the
21024
+ * historical field name so older clients still read/write a number.
21025
+ */
21026
+ triggeredDurationSec: NcAlarmTriggeredSecSchema.optional(),
21027
+ postTriggeredAction: NcAlarmPostTriggeredActionSchema.optional(),
21028
+ /**
21029
+ * When this mode may be armed. Absent / null = always allowed (same as a
21030
+ * rule with no `schedule`). Evaluated with {@link isScheduleActive}.
21031
+ */
21032
+ schedule: NcScheduleSchema.optional()
20932
21033
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one entry per arm mode" });
20933
21034
  var NcAlarmModeDelaysEditListSchema = array(object({
20934
21035
  mode: AlarmArmModeSchema,
20935
21036
  exitDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
20936
21037
  entryDelaySec: NcAlarmDelaySecSchema.nullable().optional(),
20937
- triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional()
21038
+ triggeredDurationSec: NcAlarmTriggeredSecSchema.nullable().optional(),
21039
+ postTriggeredAction: NcAlarmPostTriggeredActionSchema.nullable().optional(),
21040
+ /** Set a schedule, or `null` to clear (mode always allowed again). */
21041
+ schedule: NcScheduleSchema.nullable().optional()
20938
21042
  })).max(8).refine(uniqueModes, { message: "modeDelays: at most one edit per arm mode" });
20939
21043
  /** One switch of the alarm table: put ONE device on, or take it off, ONE mode's list. */
20940
21044
  var NcAlarmNonBlockingEditSchema = object({
@@ -21006,12 +21110,18 @@ var NcAlarmSettingsSchema = object({
21006
21110
  /** Grace period between a trigger and the alarm firing. 0 = immediate. */
21007
21111
  entryDelaySec: NcAlarmDelaySecSchema,
21008
21112
  /**
21009
- * How long `triggered` lasts before the panel re-arms itself.
21010
- * **0 = until an operator disarms it** — the behaviour before this field
21011
- * existed, and therefore what an untouched install keeps doing.
21113
+ * How long `triggered` lasts before {@link postTriggeredAction} runs.
21114
+ * Ignored when the action is `doNothing`. Historical name kept so older
21115
+ * clients still round-trip a number.
21012
21116
  */
21013
21117
  triggeredDurationSec: NcAlarmTriggeredSecSchema,
21014
21118
  /**
21119
+ * What happens when the triggered window ends. Absent on a blob older than
21120
+ * this field → derived from {@link triggeredDurationSec} (`>0` ⇒ rearmAfter,
21121
+ * else doNothing).
21122
+ */
21123
+ postTriggeredAction: NcAlarmPostTriggeredActionSchema.optional(),
21124
+ /**
21015
21125
  * Deprecated by D630 — every transition is announced. Parsed, never read;
21016
21126
  * remove after one release. Optional so an older admin's patch (which still
21017
21127
  * sends it) parses rather than failing the whole save.
@@ -31472,7 +31582,7 @@ var LocalInterfaceSchema = object({
31472
31582
  name: string(),
31473
31583
  family: _enum(["IPv4", "IPv6"]),
31474
31584
  address: string(),
31475
- /** CIDR shorthand (e.g. `192.168.1.10/24`). Empty when OS doesn't expose. */
31585
+ /** CIDR shorthand (e.g. `192.168.x.x/24`). Empty when OS doesn't expose. */
31476
31586
  cidr: string(),
31477
31587
  /** OS netmask. Stable across calls so the SDK can hash on it. */
31478
31588
  netmask: string(),
@@ -31918,7 +32028,7 @@ var MeshPeerSchema = object({
31918
32028
  tags: array(string()).readonly(),
31919
32029
  /** True when the peer advertises itself as an exit-node candidate. */
31920
32030
  exitNodeOption: boolean(),
31921
- /** Subnet routes the peer advertises (e.g. `["192.168.1.0/24"]`). */
32031
+ /** Subnet routes the peer advertises (e.g. `["192.168.x.x/24"]`). */
31922
32032
  advertisedRoutes: array(string()).readonly(),
31923
32033
  /** Owner account login (e.g. `foo@example.com`). Null for tagged peers. */
31924
32034
  userLogin: string().nullable(),
@@ -40841,6 +40951,12 @@ Object.freeze({
40841
40951
  addonId: null,
40842
40952
  access: "view"
40843
40953
  },
40954
+ "notificationOutput.getTarget": {
40955
+ capName: "notification-output",
40956
+ capScope: "system",
40957
+ addonId: null,
40958
+ access: "view"
40959
+ },
40844
40960
  "notificationOutput.listTargetKinds": {
40845
40961
  capName: "notification-output",
40846
40962
  capScope: "system",
@@ -40853,6 +40969,12 @@ Object.freeze({
40853
40969
  addonId: null,
40854
40970
  access: "view"
40855
40971
  },
40972
+ "notificationOutput.probeTargetConfig": {
40973
+ capName: "notification-output",
40974
+ capScope: "system",
40975
+ addonId: null,
40976
+ access: "create"
40977
+ },
40856
40978
  "notificationOutput.send": {
40857
40979
  capName: "notification-output",
40858
40980
  capScope: "system",
@@ -44562,6 +44684,7 @@ Object.freeze({
44562
44684
  access: "create"
44563
44685
  }
44564
44686
  });
44687
+ DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder;
44565
44688
  DeviceFeature.BatteryOperated;
44566
44689
  /**
44567
44690
  * The vocabulary, in the order a picker offers it.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-hap",
3
- "version": "1.2.145",
3
+ "version": "1.2.147",
4
4
  "description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
5
5
  "keywords": [
6
6
  "camstack",