@camstack/types 1.2.583 → 1.2.585

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/addon/instance-link.d.ts +3 -1
  3. package/dist/addon.d.ts +3 -2
  4. package/dist/addon.js +3 -1
  5. package/dist/addon.mjs +2 -2
  6. package/dist/audit/command-origin-claim.d.ts +33 -0
  7. package/dist/audit/device-transition.d.ts +35 -2
  8. package/dist/capabilities/capability-definition.d.ts +2 -1
  9. package/dist/capabilities/device-transitions.cap.d.ts +44 -0
  10. package/dist/capabilities/hero-layout.cap.d.ts +1 -0
  11. package/dist/capabilities/index.d.ts +4 -1
  12. package/dist/capabilities/siren-duration.d.ts +15 -0
  13. package/dist/capabilities/siren.cap.d.ts +175 -0
  14. package/dist/client.js +621 -613
  15. package/dist/client.mjs +621 -613
  16. package/dist/device/hero/hero-row.d.ts +1 -0
  17. package/dist/generated/addon-api.d.ts +36 -0
  18. package/dist/generated/addon-cap-facts.d.ts +1 -1
  19. package/dist/generated/cap-status-types.d.ts +3 -1
  20. package/dist/generated/cap-vocabulary.d.ts +1 -1
  21. package/dist/generated/capability-router-map.d.ts +5 -2
  22. package/dist/generated/device-local-state.d.ts +3 -0
  23. package/dist/generated/device-proxy.d.ts +3 -0
  24. package/dist/generated/device-scoped-caps.d.ts +1 -1
  25. package/dist/generated/history-catalog.d.ts +1 -1
  26. package/dist/generated/method-access-map.d.ts +1 -1
  27. package/dist/generated/method-device-selectors.d.ts +1 -1
  28. package/dist/generated/runtime-state-durability.d.ts +1 -1
  29. package/dist/helpers/trpc-leaf.d.ts +4 -3
  30. package/dist/index.js +316 -18
  31. package/dist/index.mjs +305 -19
  32. package/dist/{sleep-DnhxKL99.mjs → sleep-Ch7Q7UtE.mjs} +728 -620
  33. package/dist/{sleep-Coq9CYAH.js → sleep-DwRtgB2i.js} +739 -619
  34. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_sleep = require("./sleep-Coq9CYAH.js");
2
+ const require_sleep = require("./sleep-DwRtgB2i.js");
3
3
  const require_event_category = require("./event-category-d9kiqCqC.js");
4
4
  const require_composed_stable_id = require("./composed-stable-id-C3NfRTj8.js");
5
5
  const require_implemented_methods = require("./implemented-methods-C7ScGvEz.js");
@@ -872,12 +872,19 @@ function composeInstanceKinds(parts, base) {
872
872
  return part;
873
873
  };
874
874
  /**
875
+ * Whether a part's kind offers a Test. A kind that states `canTest` is believed; one that does not
876
+ * takes what its OWN provider declares, never the composed base (a calendar or an integration
877
+ * inherited the account's `canTest: true` and offered a button nothing answered, planning#543).
878
+ */
879
+ const canTestPart = async (part) => part.kind.canTest ?? (await part.provider.describe()).canTest === true;
880
+ /**
875
881
  * The part a DRAFT test runs on. A named kind is that kind; an unnamed one is the provider's only
876
882
  * testable kind. Several testable kinds and none named is a typed refusal that lists them, never a throw.
877
883
  */
878
- const draftPart = (kindId) => {
884
+ const draftPart = async (kindId) => {
879
885
  if (kindId !== void 0) return parts.find((candidate) => candidate.kind.id === kindId) ?? { error: `Unknown instance kind '${kindId}'` };
880
- const testable = parts.filter((part) => part.kind.canTest !== false);
886
+ const flags = await Promise.all(parts.map(canTestPart));
887
+ const testable = parts.filter((_part, index) => flags[index] === true);
881
888
  const only = testable.length === 1 ? testable[0] : parts.length === 1 ? parts[0] : void 0;
882
889
  if (only !== void 0) return only;
883
890
  return { error: `This provider has several kinds: name one of ${(testable.length > 0 ? testable : parts).map((part) => part.kind.id).join(", ")}` };
@@ -895,7 +902,10 @@ function composeInstanceKinds(parts, base) {
895
902
  const links = (await Promise.all(parts.map(async (part) => (await part.provider.describe()).links ?? []))).flat();
896
903
  return {
897
904
  ...base,
898
- kinds: parts.map((part) => part.kind),
905
+ kinds: await Promise.all(parts.map(async (part) => ({
906
+ ...part.kind,
907
+ canTest: await canTestPart(part)
908
+ }))),
899
909
  ...links.length > 0 ? { links } : {}
900
910
  };
901
911
  },
@@ -917,7 +927,7 @@ function composeInstanceKinds(parts, base) {
917
927
  setInstanceEnabled: async (input) => (await holderOf(input.id)).provider.setInstanceEnabled(input),
918
928
  deleteInstance: async (input) => (await holderOf(input.id)).provider.deleteInstance(input),
919
929
  testInstance: async (input) => {
920
- const resolved = input.id === null ? draftPart(input.kind) : await holderOf(input.id);
930
+ const resolved = input.id === null ? await draftPart(input.kind) : await holderOf(input.id);
921
931
  if ("error" in resolved) return {
922
932
  success: false,
923
933
  status: "inconclusive",
@@ -51444,7 +51454,7 @@ function groupTemplate(id) {
51444
51454
  //#region src/generated/history-catalog.ts
51445
51455
  /**
51446
51456
  * Cap history catalog, projected from every `*.cap.ts` `history` block.
51447
- * 46 caps with series (124 series), 38 caps answered `'none'`.
51457
+ * 46 caps with series (124 series), 39 caps answered `'none'`.
51448
51458
  * Field keys are `runtimeState` paths (`a.b` into fixed objects only).
51449
51459
  */
51450
51460
  var HISTORY_CATALOG = {
@@ -52201,6 +52211,7 @@ var HISTORY_NONE_CAPS = [
52201
52211
  "recording-signal",
52202
52212
  "scene-monitor",
52203
52213
  "script-runner",
52214
+ "siren",
52204
52215
  "stream-catalog",
52205
52216
  "stream-signals",
52206
52217
  "timed-run",
@@ -65211,6 +65222,12 @@ var HeroRowModelSchema = zod.z.object({
65211
65222
  /** `null` = the type has no inline control, or the caller may not act on it. */
65212
65223
  primary: HeroControlSchema.nullable(),
65213
65224
  /**
65225
+ * `true` when the primary exists but the model gates it (the caller may not act): the
65226
+ * row is read-only and a client draws no control, not a fallback. `false` = nothing
65227
+ * covers the type yet. Absent = an older server.
65228
+ */
65229
+ primaryGated: zod.z.boolean().optional(),
65230
+ /**
65214
65231
  * Beside `primary` when the device offers a timed run: Run while idle, Stop
65215
65232
  * while armed. `null` when there is no slot, or the caller may not act.
65216
65233
  */
@@ -65265,26 +65282,44 @@ function primaryOf(model) {
65265
65282
  const named = ROW_PRIMARY_BY_TYPE[model.type];
65266
65283
  if (named !== void 0) {
65267
65284
  const found = extraOf(model, named);
65268
- if (found !== null) return found;
65285
+ if (found !== null) return {
65286
+ control: found,
65287
+ gated: false
65288
+ };
65269
65289
  }
65270
65290
  const power = model.ownPower;
65271
65291
  if (power !== null) {
65272
- if (model.gated.includes("own-power")) return null;
65292
+ if (model.gated.includes("own-power")) return {
65293
+ control: null,
65294
+ gated: true
65295
+ };
65273
65296
  return {
65274
- kind: "toggle",
65275
- id: "own-power",
65276
- label: power.turnOn.label,
65277
- on: power.on,
65278
- turnOn: power.turnOn,
65279
- turnOff: power.turnOff
65297
+ control: {
65298
+ kind: "toggle",
65299
+ id: "own-power",
65300
+ label: power.turnOn.label,
65301
+ on: power.on,
65302
+ turnOn: power.turnOn,
65303
+ turnOff: power.turnOff
65304
+ },
65305
+ gated: false
65280
65306
  };
65281
65307
  }
65282
65308
  for (const row of model.rows) {
65283
65309
  const control = row.controls[0];
65284
65310
  if (control === void 0) continue;
65285
- return model.gated.includes(row.id) ? null : control;
65311
+ return model.gated.includes(row.id) ? {
65312
+ control: null,
65313
+ gated: true
65314
+ } : {
65315
+ control,
65316
+ gated: false
65317
+ };
65286
65318
  }
65287
- return null;
65319
+ return {
65320
+ control: null,
65321
+ gated: false
65322
+ };
65288
65323
  }
65289
65324
  /**
65290
65325
  * The extras of a type, by control id, in the order they are drawn. The ids are the
@@ -65351,7 +65386,7 @@ function timedRunOf(model) {
65351
65386
  }
65352
65387
  function projectDeviceRow(model) {
65353
65388
  const trailing = trailingOf(model);
65354
- const primary = primaryOf(model);
65389
+ const { control: primary, gated: primaryGated } = primaryOf(model);
65355
65390
  return {
65356
65391
  deviceId: model.deviceId,
65357
65392
  name: model.name,
@@ -65362,6 +65397,7 @@ function projectDeviceRow(model) {
65362
65397
  scene: model.scene,
65363
65398
  statusLine: statusLineOf(model, trailing),
65364
65399
  primary,
65400
+ primaryGated,
65365
65401
  timedRun: timedRunOf(model),
65366
65402
  extras: extrasOf(model, primary),
65367
65403
  trailing,
@@ -95149,6 +95185,152 @@ var serverManagementCapability = {
95149
95185
  vocabulary: { notOperatorFacing: require_sleep.NOT_A_DEVICE.CLUSTER }
95150
95186
  };
95151
95187
  //#endregion
95188
+ //#region src/capabilities/siren.cap.ts
95189
+ /**
95190
+ * Timed siren: trigger the siren for a duration and know until when it sounds.
95191
+ *
95192
+ * The plain on/off `switch` of a siren stays as it is (HomeKit / Alexa see a
95193
+ * switch); this cap adds the part a switch cannot say — HOW LONG, and the
95194
+ * moment the siren is expected to fall silent (`activeUntil`, epoch ms), so a
95195
+ * UI can show the activation with a countdown.
95196
+ *
95197
+ * The allowed durations are never hardcoded: `getOptions` answers what the
95198
+ * CAMERA reports (a discrete list or `{min,max,step}`), the default, and the
95199
+ * unit truth — a camera that counts plays rather than seconds says so, with the
95200
+ * seconds-per-play factor used to convert, and whether that factor was read
95201
+ * from the camera or is an estimate.
95202
+ */
95203
+ /** What the camera counts natively. */
95204
+ var SirenDurationUnit = {
95205
+ Seconds: "seconds",
95206
+ Plays: "plays"
95207
+ };
95208
+ /** Where the numbers of an options answer come from. */
95209
+ var SirenOptionsSource = {
95210
+ /** Read from the camera by this fetch. */
95211
+ Camera: "camera",
95212
+ /** The camera did not answer or does not advertise it; a documented fallback. */
95213
+ Fallback: "fallback"
95214
+ };
95215
+ var SirenDurationRangeSchema = zod.z.object({
95216
+ min: zod.z.number().positive(),
95217
+ max: zod.z.number().positive(),
95218
+ step: zod.z.number().positive()
95219
+ });
95220
+ var SirenOptionsSchema = zod.z.object({
95221
+ /** Discrete durations in seconds the operator may pick; `null` when the camera gives a range. */
95222
+ allowedSeconds: zod.z.array(zod.z.number().positive()).nullable(),
95223
+ /** Continuous range in seconds; `null` when the camera gives a discrete list. */
95224
+ rangeSeconds: SirenDurationRangeSchema.nullable(),
95225
+ /** The camera's default duration, seconds. */
95226
+ defaultSeconds: zod.z.number().positive(),
95227
+ /** What the camera counts natively. */
95228
+ unit: zod.z.enum([SirenDurationUnit.Seconds, SirenDurationUnit.Plays]),
95229
+ /** Seconds one play lasts, when `unit` is `plays`; `null` for a seconds camera. */
95230
+ secondsPerPlay: zod.z.number().positive().nullable(),
95231
+ /** `camera` when the values were read from it, `fallback` when the camera could not say. */
95232
+ source: zod.z.enum([SirenOptionsSource.Camera, SirenOptionsSource.Fallback]),
95233
+ /** Ms epoch of the read that produced this answer. */
95234
+ fetchedAt: zod.z.number()
95235
+ });
95236
+ var SirenStatusSchema = zod.z.object({
95237
+ /** True while the siren is sounding by a timed trigger or switched on. */
95238
+ active: zod.z.boolean(),
95239
+ /** Ms epoch the siren is expected to fall silent; `null` when not active or open-ended. */
95240
+ activeUntil: zod.z.number().nullable(),
95241
+ /** Duration of the current / last activation, seconds; `null` when none yet. */
95242
+ durationSeconds: zod.z.number().nullable(),
95243
+ /** Ms epoch of the last trigger (0 = never). */
95244
+ lastTriggeredAt: zod.z.number()
95245
+ });
95246
+ var SirenRuntimeStateSchema = SirenStatusSchema.extend({
95247
+ /** Ms epoch of the last successful camera read of the options (0 = never). */
95248
+ lastFetchedAt: zod.z.number() });
95249
+ var sirenCapability = {
95250
+ name: "siren",
95251
+ scope: "device",
95252
+ deviceNative: true,
95253
+ mode: "singleton",
95254
+ deviceTypes: [require_composed_stable_id.DeviceType.Siren],
95255
+ methods: {
95256
+ /** The durations the camera allows, read from the camera. */
95257
+ getOptions: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), SirenOptionsSchema, {
95258
+ kind: "query",
95259
+ auth: "protected"
95260
+ }),
95261
+ /**
95262
+ * Sound the siren. Without `durationSeconds` the camera default applies.
95263
+ * Answers the state at the moment of the trigger (`activeUntil` included).
95264
+ */
95265
+ trigger: require_sleep.method(zod.z.object({
95266
+ deviceId: zod.z.number().int().nonnegative(),
95267
+ durationSeconds: zod.z.number().positive().optional()
95268
+ }), SirenStatusSchema, {
95269
+ kind: "mutation",
95270
+ auth: "protected",
95271
+ actions: [{
95272
+ id: "siren.trigger",
95273
+ label: require_sleep.t("Sound the siren", "Fai suonare la sirena"),
95274
+ phrase: require_sleep.t("Sound {device}", "Fai suonare {device}"),
95275
+ icon: "siren",
95276
+ args: {}
95277
+ }]
95278
+ }),
95279
+ /** Silence the siren now. */
95280
+ stop: require_sleep.method(zod.z.object({ deviceId: zod.z.number().int().nonnegative() }), SirenStatusSchema, {
95281
+ kind: "mutation",
95282
+ auth: "protected",
95283
+ actions: [{
95284
+ id: "siren.stop",
95285
+ label: require_sleep.t("Silence the siren", "Zittisci la sirena"),
95286
+ phrase: require_sleep.t("Silence {device}", "Zittisci {device}"),
95287
+ icon: "siren",
95288
+ effect: {
95289
+ field: "active",
95290
+ value: false
95291
+ },
95292
+ args: {}
95293
+ }]
95294
+ })
95295
+ },
95296
+ events: { onSirenChanged: {
95297
+ data: zod.z.object({
95298
+ deviceId: zod.z.number(),
95299
+ active: zod.z.boolean(),
95300
+ activeUntil: zod.z.number().nullable()
95301
+ }),
95302
+ notOperatorFacing: "the `active` state trigger phrases both edges of this change"
95303
+ } },
95304
+ status: {
95305
+ schema: SirenStatusSchema,
95306
+ kind: "command-driven"
95307
+ },
95308
+ runtimeState: SirenRuntimeStateSchema,
95309
+ /**
95310
+ * Runtime-state durability: **session** — a siren activation is a moment, not a fact to restore after a restart.
95311
+ *
95312
+ * See `RuntimeStateDurability`. Enforced by
95313
+ * `scripts/check-runtime-state-durability.ts`.
95314
+ */
95315
+ durability: "session",
95316
+ /**
95317
+ * History (D850): none — an activation is already recorded by the switch / alarm events.
95318
+ */
95319
+ history: "none",
95320
+ vocabulary: {
95321
+ noun: require_sleep.t("Siren", "Sirena"),
95322
+ order: 1170,
95323
+ state: [{
95324
+ kind: "boolean",
95325
+ field: "active",
95326
+ label: require_sleep.t("Siren sounding", "Sirena in funzione"),
95327
+ whenTrue: require_sleep.t("When {device} starts sounding", "Quando {device} inizia a suonare"),
95328
+ whenFalse: require_sleep.t("When {device} falls silent", "Quando {device} smette di suonare"),
95329
+ icon: "siren"
95330
+ }]
95331
+ }
95332
+ };
95333
+ //#endregion
95152
95334
  //#region src/capabilities/smoke.cap.ts
95153
95335
  /**
95154
95336
  * Smoke alarm sensor — boolean "is smoke currently detected" with
@@ -102922,6 +103104,7 @@ var CAPABILITY_NAMES = {
102922
103104
  scriptRunner: "script-runner",
102923
103105
  serverManagement: "server-management",
102924
103106
  settingsStore: "settings-store",
103107
+ siren: "siren",
102925
103108
  smoke: "smoke",
102926
103109
  smtpProvider: "smtp-provider",
102927
103110
  snapshot: "snapshot",
@@ -103635,6 +103818,10 @@ var CAPABILITY_ROUTER_KEYS = [
103635
103818
  key: "settingsStore",
103636
103819
  name: "settings-store"
103637
103820
  },
103821
+ {
103822
+ key: "siren",
103823
+ name: "siren"
103824
+ },
103638
103825
  {
103639
103826
  key: "smoke",
103640
103827
  name: "smoke"
@@ -103981,6 +104168,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
103981
104168
  scriptRunnerCapability,
103982
104169
  serverManagementCapability,
103983
104170
  settingsStoreCapability,
104171
+ sirenCapability,
103984
104172
  smokeCapability,
103985
104173
  smtpProviderCapability,
103986
104174
  snapshotCapability,
@@ -105784,6 +105972,47 @@ function selectNavigationMethods(getStatus, setValue) {
105784
105972
  };
105785
105973
  }
105786
105974
  //#endregion
105975
+ //#region src/capabilities/siren-duration.ts
105976
+ /**
105977
+ * Pure duration maths for the `siren` cap, shared by every provider so a
105978
+ * trigger and the countdown it publishes mean the same thing everywhere.
105979
+ */
105980
+ /** The state of a siren that is not sounding. Keeps the last activation's facts. */
105981
+ function sirenIdleStatus(previous) {
105982
+ return {
105983
+ active: false,
105984
+ activeUntil: null,
105985
+ durationSeconds: previous?.durationSeconds ?? null,
105986
+ lastTriggeredAt: previous?.lastTriggeredAt ?? 0
105987
+ };
105988
+ }
105989
+ /** The state right after a timed trigger: sounding until `now + seconds`. */
105990
+ function sirenTriggeredStatus(nowMs, seconds) {
105991
+ return {
105992
+ active: true,
105993
+ activeUntil: nowMs + Math.round(seconds * 1e3),
105994
+ durationSeconds: seconds,
105995
+ lastTriggeredAt: nowMs
105996
+ };
105997
+ }
105998
+ /**
105999
+ * The duration a trigger will really use: the request (or the camera default)
106000
+ * snapped to what the camera allows — the nearest listed value, or clamped and
106001
+ * stepped inside the range. Never longer or shorter than the camera can play.
106002
+ */
106003
+ function resolveSirenSeconds(options, requested) {
106004
+ const wanted = requested ?? options.defaultSeconds;
106005
+ const list = options.allowedSeconds;
106006
+ if (list !== null && list.length > 0) return list.reduce((best, candidate) => Math.abs(candidate - wanted) < Math.abs(best - wanted) ? candidate : best);
106007
+ const range = options.rangeSeconds;
106008
+ if (range !== null) {
106009
+ const clamped = Math.min(range.max, Math.max(range.min, wanted));
106010
+ const steps = Math.min(Math.round((clamped - range.min) / range.step), Math.floor((range.max - range.min) / range.step));
106011
+ return range.min + steps * range.step;
106012
+ }
106013
+ return wanted;
106014
+ }
106015
+ //#endregion
105787
106016
  //#region src/capabilities/recording-onboard-rules.ts
105788
106017
  /** Minutes in a day. `endMinute === 1440` means "to end of day". */
105789
106018
  var MINUTES_PER_DAY = 1440;
@@ -111601,6 +111830,7 @@ var DEVICE_LOCAL_STATE_CAPS = {
111601
111830
  runningState: runningStateCapability,
111602
111831
  sceneMonitor: sceneMonitorCapability,
111603
111832
  scriptRunner: scriptRunnerCapability,
111833
+ siren: sirenCapability,
111604
111834
  smoke: smokeCapability,
111605
111835
  streamCatalog: streamCatalogCapability,
111606
111836
  streamParams: streamParamsCapability,
@@ -126682,6 +126912,34 @@ var METHOD_ACCESS_MAP = Object.freeze({
126682
126912
  access: "create",
126683
126913
  role: "admin"
126684
126914
  },
126915
+ "siren.getOptions": {
126916
+ capName: "siren",
126917
+ capScope: "device",
126918
+ addonId: null,
126919
+ access: "view",
126920
+ role: "viewer"
126921
+ },
126922
+ "siren.getStatus": {
126923
+ capName: "siren",
126924
+ capScope: "device",
126925
+ addonId: null,
126926
+ access: "view",
126927
+ role: "viewer"
126928
+ },
126929
+ "siren.stop": {
126930
+ capName: "siren",
126931
+ capScope: "device",
126932
+ addonId: null,
126933
+ access: "create",
126934
+ role: "viewer"
126935
+ },
126936
+ "siren.trigger": {
126937
+ capName: "siren",
126938
+ capScope: "device",
126939
+ addonId: null,
126940
+ access: "create",
126941
+ role: "viewer"
126942
+ },
126685
126943
  "smoke.getStatus": {
126686
126944
  capName: "smoke",
126687
126945
  capScope: "device",
@@ -128812,6 +129070,7 @@ var KNOWN_CAP_NAMES = [
128812
129070
  "script-runner",
128813
129071
  "server-management",
128814
129072
  "settings-store",
129073
+ "siren",
128815
129074
  "smoke",
128816
129075
  "smtp-provider",
128817
129076
  "snapshot",
@@ -128943,6 +129202,7 @@ var DEVICE_CAP_NAMES = [
128943
129202
  "running-state",
128944
129203
  "scene-monitor",
128945
129204
  "script-runner",
129205
+ "siren",
128946
129206
  "smoke",
128947
129207
  "snapshot",
128948
129208
  "stream-catalog",
@@ -131069,6 +131329,7 @@ var CAP_NAMES_WITH_STATUS = [
131069
131329
  "running-state",
131070
131330
  "scene-monitor",
131071
131331
  "script-runner",
131332
+ "siren",
131072
131333
  "smoke",
131073
131334
  "snapshot",
131074
131335
  "stream-params",
@@ -133774,6 +134035,26 @@ var METHOD_DEVICE_SELECTORS = Object.freeze({
133774
134035
  form: "single",
133775
134036
  optional: false
133776
134037
  }],
134038
+ "siren.getOptions": [{
134039
+ name: "deviceId",
134040
+ form: "single",
134041
+ optional: false
134042
+ }],
134043
+ "siren.getStatus": [{
134044
+ name: "deviceId",
134045
+ form: "single",
134046
+ optional: false
134047
+ }],
134048
+ "siren.stop": [{
134049
+ name: "deviceId",
134050
+ form: "single",
134051
+ optional: false
134052
+ }],
134053
+ "siren.trigger": [{
134054
+ name: "deviceId",
134055
+ form: "single",
134056
+ optional: false
134057
+ }],
133777
134058
  "smoke.getStatus": [{
133778
134059
  name: "deviceId",
133779
134060
  form: "single",
@@ -134480,7 +134761,7 @@ function getCapsByProviderKind(kind) {
134480
134761
  //#region src/generated/runtime-state-durability.ts
134481
134762
  /**
134482
134763
  * Per-cap runtime-state policy, projected from every `*.cap.ts` that declares
134483
- * `runtimeState`. 85 caps: 43 `restored`, 42 `session`.
134764
+ * `runtimeState`. 86 caps: 43 `restored`, 43 `session`.
134484
134765
  *
134485
134766
  * A cap absent from this map has no runtime-state slice at all. A cap PRESENT
134486
134767
  * with `durability: 'session'` has one and has decided not to keep it.
@@ -134755,6 +135036,10 @@ var RUNTIME_STATE_POLICY = {
134755
135036
  durability: "session",
134756
135037
  volatileFields: []
134757
135038
  },
135039
+ "siren": {
135040
+ durability: "session",
135041
+ volatileFields: []
135042
+ },
134758
135043
  "smoke": {
134759
135044
  durability: "restored",
134760
135045
  volatileFields: ["lastChangedAt"]
@@ -148251,6 +148536,7 @@ function buildLinkedInstances(records, spec) {
148251
148536
  }),
148252
148537
  configured: (body) => links.every((link) => linkedId(body, link.field) !== void 0) && (spec.alsoConfigured?.(body) ?? true),
148253
148538
  ...spec.mintId !== void 0 ? { mintId: spec.mintId } : {},
148539
+ ...spec.test !== void 0 ? { test: spec.test } : {},
148254
148540
  ...spec.onChanged !== void 0 ? { onChanged: spec.onChanged } : {}
148255
148541
  });
148256
148542
  return instances;
@@ -150260,6 +150546,8 @@ exports.OccupancyLookAnswerSchema = OccupancyLookAnswerSchema;
150260
150546
  exports.OccupancyLookRefusalSchema = OccupancyLookRefusalSchema;
150261
150547
  exports.OccupancyLookRequestSchema = OccupancyLookRequestSchema;
150262
150548
  exports.OldTargetBodySchema = OldTargetBodySchema;
150549
+ exports.OnBehalfSchema = require_sleep.OnBehalfSchema;
150550
+ exports.OnBehalfSourceSchema = require_sleep.OnBehalfSourceSchema;
150263
150551
  exports.OnboardFieldSupportSchema = OnboardFieldSupportSchema;
150264
150552
  exports.OnboardRecordTrackSchema = OnboardRecordTrackSchema;
150265
150553
  exports.OnboardScheduleSupportSchema = OnboardScheduleSupportSchema;
@@ -150841,6 +151129,12 @@ exports.ShareSourceSchema = ShareSourceSchema;
150841
151129
  exports.ShareViewGrantSchema = ShareViewGrantSchema;
150842
151130
  exports.ShareViewScopeSchema = ShareViewScopeSchema;
150843
151131
  exports.ShareWeightsSchema = ShareWeightsSchema;
151132
+ exports.SirenDurationRangeSchema = SirenDurationRangeSchema;
151133
+ exports.SirenDurationUnit = SirenDurationUnit;
151134
+ exports.SirenOptionsSchema = SirenOptionsSchema;
151135
+ exports.SirenOptionsSource = SirenOptionsSource;
151136
+ exports.SirenRuntimeStateSchema = SirenRuntimeStateSchema;
151137
+ exports.SirenStatusSchema = SirenStatusSchema;
150844
151138
  exports.SiteLocationSchema = SiteLocationSchema;
150845
151139
  exports.SiteLocationSourceSchema = SiteLocationSourceSchema;
150846
151140
  exports.SiteLocationStatusSchema = SiteLocationStatusSchema;
@@ -152396,6 +152690,7 @@ exports.resolveSecretMarkers = require_sleep.resolveSecretMarkers;
152396
152690
  exports.resolveSecretViewsIn = require_sleep.resolveSecretViewsIn;
152397
152691
  exports.resolveSelectStep = resolveSelectStep;
152398
152692
  exports.resolveServerName = resolveServerName;
152693
+ exports.resolveSirenSeconds = resolveSirenSeconds;
152399
152694
  exports.resolveStepArgs = resolveStepArgs;
152400
152695
  exports.resolveStepArgsWithTemplates = resolveStepArgsWithTemplates;
152401
152696
  exports.resolveStreamMaps = require_implemented_methods.resolveStreamMaps;
@@ -152515,6 +152810,9 @@ exports.shortHostname = shortHostname;
152515
152810
  exports.shortSecretRefHash = require_sleep.shortSecretRefHash;
152516
152811
  exports.signalPercentFromBars = signalPercentFromBars;
152517
152812
  exports.signalPercentFromRssi = signalPercentFromRssi;
152813
+ exports.sirenCapability = sirenCapability;
152814
+ exports.sirenIdleStatus = sirenIdleStatus;
152815
+ exports.sirenTriggeredStatus = sirenTriggeredStatus;
152518
152816
  exports.siteFor = siteFor;
152519
152817
  exports.siteZoneKey = siteZoneKey;
152520
152818
  exports.skipSignature = skipSignature;