@camstack/types 1.2.560 → 1.2.562

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 (263) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/addon/instances-of-cap.d.ts +7 -2
  3. package/dist/addon.js +2 -2
  4. package/dist/addon.mjs +2 -2
  5. package/dist/automation/codegen.d.ts +6 -0
  6. package/dist/automation/recipe-literal.d.ts +35 -0
  7. package/dist/automation/recipe.d.ts +166 -120
  8. package/dist/automation/template-link.d.ts +206 -0
  9. package/dist/capabilities/accessories.cap.d.ts +6 -0
  10. package/dist/capabilities/action-source.cap.d.ts +3 -0
  11. package/dist/capabilities/actions.cap.d.ts +3 -0
  12. package/dist/capabilities/addon-pages-source.cap.d.ts +3 -0
  13. package/dist/capabilities/addon-pages.cap.d.ts +3 -0
  14. package/dist/capabilities/addon-routes.cap.d.ts +3 -0
  15. package/dist/capabilities/addon-settings.cap.d.ts +3 -0
  16. package/dist/capabilities/addon-widgets-source.cap.d.ts +3 -0
  17. package/dist/capabilities/addon-widgets.cap.d.ts +3 -0
  18. package/dist/capabilities/addons.cap.d.ts +3 -0
  19. package/dist/capabilities/admin-ui.cap.d.ts +3 -0
  20. package/dist/capabilities/air-quality-sensor.cap.d.ts +39 -0
  21. package/dist/capabilities/alarm-panel.cap.d.ts +60 -14
  22. package/dist/capabilities/alerts.cap.d.ts +3 -0
  23. package/dist/capabilities/ambient-light-sensor.cap.d.ts +12 -0
  24. package/dist/capabilities/audio-analysis.cap.d.ts +4 -0
  25. package/dist/capabilities/audio-analyzer.cap.d.ts +3 -0
  26. package/dist/capabilities/audio-codec.cap.d.ts +3 -0
  27. package/dist/capabilities/audio-metrics.cap.d.ts +4 -0
  28. package/dist/capabilities/auth-provider.cap.d.ts +3 -0
  29. package/dist/capabilities/automation-control.cap.d.ts +19 -0
  30. package/dist/capabilities/backup.cap.d.ts +3 -0
  31. package/dist/capabilities/battery.cap.d.ts +53 -0
  32. package/dist/capabilities/binary.cap.d.ts +136 -0
  33. package/dist/capabilities/board-key-source.cap.d.ts +3 -0
  34. package/dist/capabilities/brightness.cap.d.ts +13 -0
  35. package/dist/capabilities/broker.cap.d.ts +3 -0
  36. package/dist/capabilities/button.cap.d.ts +4 -0
  37. package/dist/capabilities/calendar-source.cap.d.ts +3 -0
  38. package/dist/capabilities/calendars.cap.d.ts +3 -0
  39. package/dist/capabilities/camera-credentials.cap.d.ts +4 -0
  40. package/dist/capabilities/camera-grid-layout.cap.d.ts +4 -0
  41. package/dist/capabilities/camera-pipeline-config.cap.d.ts +4 -0
  42. package/dist/capabilities/camera-streams.cap.d.ts +4 -0
  43. package/dist/capabilities/capability-definition.d.ts +37 -8
  44. package/dist/capabilities/carbon-monoxide.cap.d.ts +12 -0
  45. package/dist/capabilities/climate-control.cap.d.ts +68 -12
  46. package/dist/capabilities/cluster-update.cap.d.ts +3 -0
  47. package/dist/capabilities/color.cap.d.ts +21 -0
  48. package/dist/capabilities/composer.cap.d.ts +3 -0
  49. package/dist/capabilities/connectivity.cap.d.ts +12 -0
  50. package/dist/capabilities/consumables.cap.d.ts +4 -0
  51. package/dist/capabilities/contact.cap.d.ts +12 -0
  52. package/dist/capabilities/control.cap.d.ts +15 -0
  53. package/dist/capabilities/core-blocks.cap.d.ts +3 -0
  54. package/dist/capabilities/cover.cap.d.ts +110 -0
  55. package/dist/capabilities/custom-model-registry.cap.d.ts +3 -0
  56. package/dist/capabilities/data-store-provider.cap.d.ts +3 -0
  57. package/dist/capabilities/database-snapshot.cap.d.ts +3 -0
  58. package/dist/capabilities/day-night.cap.d.ts +25 -0
  59. package/dist/capabilities/decoder.cap.d.ts +3 -0
  60. package/dist/capabilities/detection-pipeline.cap.d.ts +4 -0
  61. package/dist/capabilities/device-admin-link.cap.d.ts +4 -0
  62. package/dist/capabilities/device-adoption.cap.d.ts +3 -0
  63. package/dist/capabilities/device-credentials.cap.d.ts +3 -0
  64. package/dist/capabilities/device-export.cap.d.ts +3 -0
  65. package/dist/capabilities/device-extension.cap.d.ts +4 -0
  66. package/dist/capabilities/device-history.cap.d.ts +3 -0
  67. package/dist/capabilities/device-manager.cap.d.ts +3 -0
  68. package/dist/capabilities/device-ops.cap.d.ts +4 -0
  69. package/dist/capabilities/device-provider.cap.d.ts +3 -0
  70. package/dist/capabilities/device-removal-hook.cap.d.ts +3 -0
  71. package/dist/capabilities/device-runs.cap.d.ts +6 -0
  72. package/dist/capabilities/device-state.cap.d.ts +3 -0
  73. package/dist/capabilities/device-status.cap.d.ts +25 -0
  74. package/dist/capabilities/device-transitions.cap.d.ts +4 -0
  75. package/dist/capabilities/dishwasher.cap.d.ts +60 -0
  76. package/dist/capabilities/display-palette.cap.d.ts +3 -0
  77. package/dist/capabilities/do-not-disturb.cap.d.ts +12 -0
  78. package/dist/capabilities/doorbell.cap.d.ts +11 -0
  79. package/dist/capabilities/embedding-encoder.cap.d.ts +3 -0
  80. package/dist/capabilities/energy-system.cap.d.ts +281 -0
  81. package/dist/capabilities/enum-sensor.cap.d.ts +10 -0
  82. package/dist/capabilities/event-emitter.cap.d.ts +11 -0
  83. package/dist/capabilities/face-gallery.cap.d.ts +3 -0
  84. package/dist/capabilities/failure-contribution.cap.d.ts +3 -0
  85. package/dist/capabilities/fan-control.cap.d.ts +19 -0
  86. package/dist/capabilities/fan-presets.cap.d.ts +3 -0
  87. package/dist/capabilities/feature-probe.cap.d.ts +5 -0
  88. package/dist/capabilities/filesystem-browse.cap.d.ts +3 -0
  89. package/dist/capabilities/flood.cap.d.ts +12 -0
  90. package/dist/capabilities/gas.cap.d.ts +12 -0
  91. package/dist/capabilities/group-active.cap.d.ts +4 -0
  92. package/dist/capabilities/group-commands.cap.d.ts +4 -0
  93. package/dist/capabilities/group-status.cap.d.ts +23 -0
  94. package/dist/capabilities/heat-pump-control.cap.d.ts +4 -0
  95. package/dist/capabilities/heat-pump-status.cap.d.ts +4 -0
  96. package/dist/capabilities/heating-valve.cap.d.ts +12 -0
  97. package/dist/capabilities/hero-layout.cap.d.ts +3 -0
  98. package/dist/capabilities/humidifier.cap.d.ts +19 -0
  99. package/dist/capabilities/humidity-sensor.cap.d.ts +12 -0
  100. package/dist/capabilities/image-settings.cap.d.ts +4 -0
  101. package/dist/capabilities/image.cap.d.ts +4 -0
  102. package/dist/capabilities/index.d.ts +5 -3
  103. package/dist/capabilities/integration-instances.cap.d.ts +12 -0
  104. package/dist/capabilities/integrations.cap.d.ts +3 -0
  105. package/dist/capabilities/intercom.cap.d.ts +13 -0
  106. package/dist/capabilities/ir-transmitter.cap.d.ts +101 -0
  107. package/dist/capabilities/keychain-admin.cap.d.ts +3 -0
  108. package/dist/capabilities/keychain.cap.d.ts +3 -0
  109. package/dist/capabilities/lawn-mower-control.cap.d.ts +36 -0
  110. package/dist/capabilities/llm-runtime.cap.d.ts +3 -0
  111. package/dist/capabilities/llm.cap.d.ts +3 -0
  112. package/dist/capabilities/load-contribution.cap.d.ts +3 -0
  113. package/dist/capabilities/local-network.cap.d.ts +3 -0
  114. package/dist/capabilities/lock-control.cap.d.ts +35 -0
  115. package/dist/capabilities/log-channels.cap.d.ts +3 -0
  116. package/dist/capabilities/log-destination.cap.d.ts +3 -0
  117. package/dist/capabilities/login-method.cap.d.ts +3 -0
  118. package/dist/capabilities/media-player.cap.d.ts +66 -6
  119. package/dist/capabilities/mesh-network.cap.d.ts +3 -0
  120. package/dist/capabilities/meter.cap.d.ts +11 -0
  121. package/dist/capabilities/metrics-provider.cap.d.ts +3 -0
  122. package/dist/capabilities/migrations.cap.d.ts +3 -0
  123. package/dist/capabilities/model-convert.cap.d.ts +3 -0
  124. package/dist/capabilities/model-distributor.cap.d.ts +3 -0
  125. package/dist/capabilities/motion-detection.cap.d.ts +5 -0
  126. package/dist/capabilities/motion-trigger.cap.d.ts +13 -0
  127. package/dist/capabilities/motion-zones.cap.d.ts +4 -0
  128. package/dist/capabilities/motion.cap.d.ts +13 -0
  129. package/dist/capabilities/mqtt-broker.cap.d.ts +3 -0
  130. package/dist/capabilities/native-object-detection.cap.d.ts +19 -0
  131. package/dist/capabilities/navigation.cap.d.ts +36 -0
  132. package/dist/capabilities/network-access.cap.d.ts +3 -0
  133. package/dist/capabilities/network-link.cap.d.ts +31 -0
  134. package/dist/capabilities/network-quality.cap.d.ts +3 -0
  135. package/dist/capabilities/node-certificates.cap.d.ts +3 -0
  136. package/dist/capabilities/node-removal-hook.cap.d.ts +3 -0
  137. package/dist/capabilities/nodes.cap.d.ts +3 -0
  138. package/dist/capabilities/notification-output.cap.d.ts +3 -0
  139. package/dist/capabilities/notification-rules.cap.d.ts +3 -0
  140. package/dist/capabilities/notifier.cap.d.ts +5 -0
  141. package/dist/capabilities/numeric-sensor.cap.d.ts +11 -0
  142. package/dist/capabilities/oauth-integration.cap.d.ts +3 -0
  143. package/dist/capabilities/osd-manager.cap.d.ts +3 -0
  144. package/dist/capabilities/osd.cap.d.ts +5 -0
  145. package/dist/capabilities/pet-feeder.cap.d.ts +35 -9
  146. package/dist/capabilities/pet-fountain.cap.d.ts +19 -0
  147. package/dist/capabilities/pipeline-analytics.cap.d.ts +35 -0
  148. package/dist/capabilities/pipeline-executor.cap.d.ts +3 -0
  149. package/dist/capabilities/pipeline-orchestrator.cap.d.ts +3 -0
  150. package/dist/capabilities/pipeline-runner.cap.d.ts +3 -0
  151. package/dist/capabilities/plate-gallery.cap.d.ts +3 -0
  152. package/dist/capabilities/platform-probe.cap.d.ts +3 -0
  153. package/dist/capabilities/power-meter.cap.d.ts +33 -0
  154. package/dist/capabilities/power-source.cap.d.ts +12 -0
  155. package/dist/capabilities/presence.cap.d.ts +11 -0
  156. package/dist/capabilities/pressure-sensor.cap.d.ts +12 -0
  157. package/dist/capabilities/privacy-mask.cap.d.ts +19 -0
  158. package/dist/capabilities/ptz-autotrack.cap.d.ts +13 -0
  159. package/dist/capabilities/ptz.cap.d.ts +11 -7
  160. package/dist/capabilities/pump-cycle.cap.d.ts +12 -0
  161. package/dist/capabilities/reboot.cap.d.ts +4 -0
  162. package/dist/capabilities/record-entries.cap.d.ts +3 -0
  163. package/dist/capabilities/recording-archive.cap.d.ts +3 -0
  164. package/dist/capabilities/recording-export.cap.d.ts +3 -0
  165. package/dist/capabilities/recording-onboard.cap.d.ts +12 -0
  166. package/dist/capabilities/recording-signal.cap.d.ts +12 -0
  167. package/dist/capabilities/recording.cap.d.ts +4 -0
  168. package/dist/capabilities/records.cap.d.ts +3 -0
  169. package/dist/capabilities/remote-layout-components.cap.d.ts +3 -0
  170. package/dist/capabilities/remote.cap.d.ts +3 -0
  171. package/dist/capabilities/running-state.cap.d.ts +77 -0
  172. package/dist/capabilities/scene-monitor.cap.d.ts +11 -0
  173. package/dist/capabilities/schedulers.cap.d.ts +3 -0
  174. package/dist/capabilities/script-runner.cap.d.ts +12 -0
  175. package/dist/capabilities/server-management.cap.d.ts +3 -0
  176. package/dist/capabilities/settings-store.cap.d.ts +3 -0
  177. package/dist/capabilities/smoke.cap.d.ts +12 -0
  178. package/dist/capabilities/smtp-provider.cap.d.ts +3 -0
  179. package/dist/capabilities/snapshot.cap.d.ts +4 -0
  180. package/dist/capabilities/sso-bridge.cap.d.ts +3 -0
  181. package/dist/capabilities/storage-admin.cap.d.ts +3 -0
  182. package/dist/capabilities/storage-evictable.cap.d.ts +3 -0
  183. package/dist/capabilities/storage-migration.cap.d.ts +3 -0
  184. package/dist/capabilities/storage-occupancy.cap.d.ts +3 -0
  185. package/dist/capabilities/storage-provider.cap.d.ts +3 -0
  186. package/dist/capabilities/storage.cap.d.ts +3 -0
  187. package/dist/capabilities/stream-broker.cap.d.ts +3 -0
  188. package/dist/capabilities/stream-catalog.cap.d.ts +4 -0
  189. package/dist/capabilities/stream-params.cap.d.ts +4 -0
  190. package/dist/capabilities/stream-signals.cap.d.ts +4 -0
  191. package/dist/capabilities/switch.cap.d.ts +208 -0
  192. package/dist/capabilities/system.cap.d.ts +3 -0
  193. package/dist/capabilities/tamper.cap.d.ts +12 -0
  194. package/dist/capabilities/temperature-sensor.cap.d.ts +12 -0
  195. package/dist/capabilities/template.cap.d.ts +42 -2
  196. package/dist/capabilities/terminal-session.cap.d.ts +3 -0
  197. package/dist/capabilities/timed-run.cap.d.ts +4 -0
  198. package/dist/capabilities/toast.cap.d.ts +3 -0
  199. package/dist/capabilities/training-provider.cap.d.ts +3 -0
  200. package/dist/capabilities/training.cap.d.ts +3 -0
  201. package/dist/capabilities/turn-provider.cap.d.ts +3 -0
  202. package/dist/capabilities/update.cap.d.ts +19 -0
  203. package/dist/capabilities/user-management.cap.d.ts +3 -0
  204. package/dist/capabilities/user-passkeys.cap.d.ts +3 -0
  205. package/dist/capabilities/vacuum-control.cap.d.ts +43 -0
  206. package/dist/capabilities/valve.cap.d.ts +38 -0
  207. package/dist/capabilities/vector-store.cap.d.ts +3 -0
  208. package/dist/capabilities/vibration.cap.d.ts +12 -0
  209. package/dist/capabilities/videoclips.cap.d.ts +4 -0
  210. package/dist/capabilities/viewer-ui.cap.d.ts +3 -0
  211. package/dist/capabilities/water-heater.cap.d.ts +33 -4
  212. package/dist/capabilities/weather.cap.d.ts +39 -0
  213. package/dist/capabilities/webrtc-session.cap.d.ts +4 -0
  214. package/dist/capabilities/zone-analytics.cap.d.ts +11 -0
  215. package/dist/capabilities/zone-rules.cap.d.ts +4 -0
  216. package/dist/capabilities/zones.cap.d.ts +4 -0
  217. package/dist/client.js +186 -29
  218. package/dist/client.mjs +186 -29
  219. package/dist/{composed-stable-id-iddnCQ51.mjs → composed-stable-id-B3wcvtvW.mjs} +4 -0
  220. package/dist/{composed-stable-id-BmJ_5GiE.js → composed-stable-id-Bp33yrYi.js} +4 -0
  221. package/dist/device/cap-vocabulary/declaration.d.ts +107 -0
  222. package/dist/device/cap-vocabulary/index.d.ts +4 -2
  223. package/dist/device/cap-vocabulary/system-reasons.d.ts +17 -0
  224. package/dist/device/cap-vocabulary/types.d.ts +24 -6
  225. package/dist/device/cap-vocabulary/vocabulary.d.ts +15 -3
  226. package/dist/device/device-control-resolution.d.ts +1 -1
  227. package/dist/device/device-icon.d.ts +1 -0
  228. package/dist/device/device-type.d.ts +5 -1
  229. package/dist/device/hero/hero-layout.d.ts +1 -0
  230. package/dist/device/hero/hero-look.d.ts +6 -0
  231. package/dist/device/hero/hero-scene.d.ts +1 -0
  232. package/dist/generated/addon-api.d.ts +66 -52
  233. package/dist/generated/addon-cap-facts.d.ts +1 -1
  234. package/dist/generated/cap-status-types.d.ts +3 -1
  235. package/dist/generated/cap-vocabulary.d.ts +7 -0
  236. package/dist/generated/capability-router-map.d.ts +5 -2
  237. package/dist/generated/customize-catalog.d.ts +1 -1
  238. package/dist/generated/device-local-state.d.ts +6 -0
  239. package/dist/generated/device-proxy.d.ts +4 -0
  240. package/dist/generated/device-scoped-caps.d.ts +1 -1
  241. package/dist/generated/history-catalog.d.ts +1 -1
  242. package/dist/generated/method-access-map.d.ts +1 -1
  243. package/dist/generated/method-device-selectors.d.ts +1 -1
  244. package/dist/generated/runtime-state-durability.d.ts +1 -1
  245. package/dist/{implemented-methods-CfaRR_ki.js → implemented-methods-CDYOCn9a.js} +1 -1
  246. package/dist/{implemented-methods-CSTk6zYK.mjs → implemented-methods-CgUBu6uM.mjs} +1 -1
  247. package/dist/index.d.ts +6 -2
  248. package/dist/index.js +6739 -765
  249. package/dist/index.mjs +6685 -766
  250. package/dist/node.js +2 -2
  251. package/dist/node.mjs +2 -2
  252. package/dist/{sleep-CyWfD1LJ.js → sleep-Cb2px0Nb.js} +5706 -1620
  253. package/dist/{sleep-BvVGLl30.mjs → sleep-Cykc2bzi.mjs} +5701 -1621
  254. package/dist/template/automation-template.d.ts +782 -0
  255. package/dist/template/builtin-automation-templates.d.ts +17 -0
  256. package/dist/template/template-kinds.d.ts +4 -3
  257. package/package.json +1 -1
  258. package/dist/device/cap-vocabulary/entries/actuators.d.ts +0 -5
  259. package/dist/device/cap-vocabulary/entries/appliances.d.ts +0 -5
  260. package/dist/device/cap-vocabulary/entries/camera.d.ts +0 -5
  261. package/dist/device/cap-vocabulary/entries/heat-pump.d.ts +0 -4
  262. package/dist/device/cap-vocabulary/entries/sensors.d.ts +0 -5
  263. package/dist/device/cap-vocabulary/entries/system.d.ts +0 -8
@@ -825,6 +825,11 @@ export declare const AutomationRepeatStepSchema: z.ZodObject<{
825
825
  steps: z.ZodArray<z.ZodType<{
826
826
  kind: "wait";
827
827
  seconds: number;
828
+ } | {
829
+ kind: "wait-until";
830
+ when: AutomationWhen;
831
+ timeoutS: number;
832
+ onTimeout: "continue" | "stop";
828
833
  } | {
829
834
  kind: "command";
830
835
  target: {
@@ -854,11 +859,6 @@ export declare const AutomationRepeatStepSchema: z.ZodObject<{
854
859
  kind: "action";
855
860
  actionId: string;
856
861
  variables?: Record<string, string | number | boolean> | undefined;
857
- } | {
858
- kind: "wait-until";
859
- when: AutomationWhen;
860
- timeoutS: number;
861
- onTimeout: "continue" | "stop";
862
862
  } | {
863
863
  kind: "parallel";
864
864
  steps: ({
@@ -1214,6 +1214,11 @@ export declare const AutomationRepeatStepSchema: z.ZodObject<{
1214
1214
  }, z.core.$ZodTypeInternals<{
1215
1215
  kind: "wait";
1216
1216
  seconds: number;
1217
+ } | {
1218
+ kind: "wait-until";
1219
+ when: AutomationWhen;
1220
+ timeoutS: number;
1221
+ onTimeout: "continue" | "stop";
1217
1222
  } | {
1218
1223
  kind: "command";
1219
1224
  target: {
@@ -1243,11 +1248,6 @@ export declare const AutomationRepeatStepSchema: z.ZodObject<{
1243
1248
  kind: "action";
1244
1249
  actionId: string;
1245
1250
  variables?: Record<string, string | number | boolean> | undefined;
1246
- } | {
1247
- kind: "wait-until";
1248
- when: AutomationWhen;
1249
- timeoutS: number;
1250
- onTimeout: "continue" | "stop";
1251
1251
  } | {
1252
1252
  kind: "parallel";
1253
1253
  steps: ({
@@ -1610,6 +1610,11 @@ export declare const AutomationChooseStepSchema: z.ZodObject<{
1610
1610
  steps: z.ZodArray<z.ZodType<{
1611
1611
  kind: "wait";
1612
1612
  seconds: number;
1613
+ } | {
1614
+ kind: "wait-until";
1615
+ when: AutomationWhen;
1616
+ timeoutS: number;
1617
+ onTimeout: "continue" | "stop";
1613
1618
  } | {
1614
1619
  kind: "command";
1615
1620
  target: {
@@ -1639,11 +1644,6 @@ export declare const AutomationChooseStepSchema: z.ZodObject<{
1639
1644
  kind: "action";
1640
1645
  actionId: string;
1641
1646
  variables?: Record<string, string | number | boolean> | undefined;
1642
- } | {
1643
- kind: "wait-until";
1644
- when: AutomationWhen;
1645
- timeoutS: number;
1646
- onTimeout: "continue" | "stop";
1647
1647
  } | {
1648
1648
  kind: "parallel";
1649
1649
  steps: ({
@@ -1999,6 +1999,11 @@ export declare const AutomationChooseStepSchema: z.ZodObject<{
1999
1999
  }, z.core.$ZodTypeInternals<{
2000
2000
  kind: "wait";
2001
2001
  seconds: number;
2002
+ } | {
2003
+ kind: "wait-until";
2004
+ when: AutomationWhen;
2005
+ timeoutS: number;
2006
+ onTimeout: "continue" | "stop";
2002
2007
  } | {
2003
2008
  kind: "command";
2004
2009
  target: {
@@ -2028,11 +2033,6 @@ export declare const AutomationChooseStepSchema: z.ZodObject<{
2028
2033
  kind: "action";
2029
2034
  actionId: string;
2030
2035
  variables?: Record<string, string | number | boolean> | undefined;
2031
- } | {
2032
- kind: "wait-until";
2033
- when: AutomationWhen;
2034
- timeoutS: number;
2035
- onTimeout: "continue" | "stop";
2036
2036
  } | {
2037
2037
  kind: "parallel";
2038
2038
  steps: ({
@@ -2390,6 +2390,11 @@ export declare const AutomationChooseStepSchema: z.ZodObject<{
2390
2390
  else: z.ZodOptional<z.ZodArray<z.ZodType<{
2391
2391
  kind: "wait";
2392
2392
  seconds: number;
2393
+ } | {
2394
+ kind: "wait-until";
2395
+ when: AutomationWhen;
2396
+ timeoutS: number;
2397
+ onTimeout: "continue" | "stop";
2393
2398
  } | {
2394
2399
  kind: "command";
2395
2400
  target: {
@@ -2419,11 +2424,6 @@ export declare const AutomationChooseStepSchema: z.ZodObject<{
2419
2424
  kind: "action";
2420
2425
  actionId: string;
2421
2426
  variables?: Record<string, string | number | boolean> | undefined;
2422
- } | {
2423
- kind: "wait-until";
2424
- when: AutomationWhen;
2425
- timeoutS: number;
2426
- onTimeout: "continue" | "stop";
2427
2427
  } | {
2428
2428
  kind: "parallel";
2429
2429
  steps: ({
@@ -2779,6 +2779,11 @@ export declare const AutomationChooseStepSchema: z.ZodObject<{
2779
2779
  }, z.core.$ZodTypeInternals<{
2780
2780
  kind: "wait";
2781
2781
  seconds: number;
2782
+ } | {
2783
+ kind: "wait-until";
2784
+ when: AutomationWhen;
2785
+ timeoutS: number;
2786
+ onTimeout: "continue" | "stop";
2782
2787
  } | {
2783
2788
  kind: "command";
2784
2789
  target: {
@@ -2808,11 +2813,6 @@ export declare const AutomationChooseStepSchema: z.ZodObject<{
2808
2813
  kind: "action";
2809
2814
  actionId: string;
2810
2815
  variables?: Record<string, string | number | boolean> | undefined;
2811
- } | {
2812
- kind: "wait-until";
2813
- when: AutomationWhen;
2814
- timeoutS: number;
2815
- onTimeout: "continue" | "stop";
2816
2816
  } | {
2817
2817
  kind: "parallel";
2818
2818
  steps: ({
@@ -3249,6 +3249,11 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
3249
3249
  steps: z.ZodArray<z.ZodType<{
3250
3250
  kind: "wait";
3251
3251
  seconds: number;
3252
+ } | {
3253
+ kind: "wait-until";
3254
+ when: AutomationWhen;
3255
+ timeoutS: number;
3256
+ onTimeout: "continue" | "stop";
3252
3257
  } | {
3253
3258
  kind: "command";
3254
3259
  target: {
@@ -3278,11 +3283,6 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
3278
3283
  kind: "action";
3279
3284
  actionId: string;
3280
3285
  variables?: Record<string, string | number | boolean> | undefined;
3281
- } | {
3282
- kind: "wait-until";
3283
- when: AutomationWhen;
3284
- timeoutS: number;
3285
- onTimeout: "continue" | "stop";
3286
3286
  } | {
3287
3287
  kind: "parallel";
3288
3288
  steps: ({
@@ -3638,6 +3638,11 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
3638
3638
  }, z.core.$ZodTypeInternals<{
3639
3639
  kind: "wait";
3640
3640
  seconds: number;
3641
+ } | {
3642
+ kind: "wait-until";
3643
+ when: AutomationWhen;
3644
+ timeoutS: number;
3645
+ onTimeout: "continue" | "stop";
3641
3646
  } | {
3642
3647
  kind: "command";
3643
3648
  target: {
@@ -3667,11 +3672,6 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
3667
3672
  kind: "action";
3668
3673
  actionId: string;
3669
3674
  variables?: Record<string, string | number | boolean> | undefined;
3670
- } | {
3671
- kind: "wait-until";
3672
- when: AutomationWhen;
3673
- timeoutS: number;
3674
- onTimeout: "continue" | "stop";
3675
3675
  } | {
3676
3676
  kind: "parallel";
3677
3677
  steps: ({
@@ -4029,6 +4029,11 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
4029
4029
  else: z.ZodOptional<z.ZodArray<z.ZodType<{
4030
4030
  kind: "wait";
4031
4031
  seconds: number;
4032
+ } | {
4033
+ kind: "wait-until";
4034
+ when: AutomationWhen;
4035
+ timeoutS: number;
4036
+ onTimeout: "continue" | "stop";
4032
4037
  } | {
4033
4038
  kind: "command";
4034
4039
  target: {
@@ -4058,11 +4063,6 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
4058
4063
  kind: "action";
4059
4064
  actionId: string;
4060
4065
  variables?: Record<string, string | number | boolean> | undefined;
4061
- } | {
4062
- kind: "wait-until";
4063
- when: AutomationWhen;
4064
- timeoutS: number;
4065
- onTimeout: "continue" | "stop";
4066
4066
  } | {
4067
4067
  kind: "parallel";
4068
4068
  steps: ({
@@ -4418,6 +4418,11 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
4418
4418
  }, z.core.$ZodTypeInternals<{
4419
4419
  kind: "wait";
4420
4420
  seconds: number;
4421
+ } | {
4422
+ kind: "wait-until";
4423
+ when: AutomationWhen;
4424
+ timeoutS: number;
4425
+ onTimeout: "continue" | "stop";
4421
4426
  } | {
4422
4427
  kind: "command";
4423
4428
  target: {
@@ -4447,11 +4452,6 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
4447
4452
  kind: "action";
4448
4453
  actionId: string;
4449
4454
  variables?: Record<string, string | number | boolean> | undefined;
4450
- } | {
4451
- kind: "wait-until";
4452
- when: AutomationWhen;
4453
- timeoutS: number;
4454
- onTimeout: "continue" | "stop";
4455
4455
  } | {
4456
4456
  kind: "parallel";
4457
4457
  steps: ({
@@ -4990,6 +4990,11 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
4990
4990
  steps: z.ZodArray<z.ZodType<{
4991
4991
  kind: "wait";
4992
4992
  seconds: number;
4993
+ } | {
4994
+ kind: "wait-until";
4995
+ when: AutomationWhen;
4996
+ timeoutS: number;
4997
+ onTimeout: "continue" | "stop";
4993
4998
  } | {
4994
4999
  kind: "command";
4995
5000
  target: {
@@ -5019,11 +5024,6 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
5019
5024
  kind: "action";
5020
5025
  actionId: string;
5021
5026
  variables?: Record<string, string | number | boolean> | undefined;
5022
- } | {
5023
- kind: "wait-until";
5024
- when: AutomationWhen;
5025
- timeoutS: number;
5026
- onTimeout: "continue" | "stop";
5027
5027
  } | {
5028
5028
  kind: "parallel";
5029
5029
  steps: ({
@@ -5379,6 +5379,11 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
5379
5379
  }, z.core.$ZodTypeInternals<{
5380
5380
  kind: "wait";
5381
5381
  seconds: number;
5382
+ } | {
5383
+ kind: "wait-until";
5384
+ when: AutomationWhen;
5385
+ timeoutS: number;
5386
+ onTimeout: "continue" | "stop";
5382
5387
  } | {
5383
5388
  kind: "command";
5384
5389
  target: {
@@ -5408,11 +5413,6 @@ export declare const AutomationActionSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
5408
5413
  kind: "action";
5409
5414
  actionId: string;
5410
5415
  variables?: Record<string, string | number | boolean> | undefined;
5411
- } | {
5412
- kind: "wait-until";
5413
- when: AutomationWhen;
5414
- timeoutS: number;
5415
- onTimeout: "continue" | "stop";
5416
5416
  } | {
5417
5417
  kind: "parallel";
5418
5418
  steps: ({
@@ -5890,6 +5890,11 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
5890
5890
  steps: z.ZodArray<z.ZodType<{
5891
5891
  kind: "wait";
5892
5892
  seconds: number;
5893
+ } | {
5894
+ kind: "wait-until";
5895
+ when: AutomationWhen;
5896
+ timeoutS: number;
5897
+ onTimeout: "continue" | "stop";
5893
5898
  } | {
5894
5899
  kind: "command";
5895
5900
  target: {
@@ -5919,11 +5924,6 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
5919
5924
  kind: "action";
5920
5925
  actionId: string;
5921
5926
  variables?: Record<string, string | number | boolean> | undefined;
5922
- } | {
5923
- kind: "wait-until";
5924
- when: AutomationWhen;
5925
- timeoutS: number;
5926
- onTimeout: "continue" | "stop";
5927
5927
  } | {
5928
5928
  kind: "parallel";
5929
5929
  steps: ({
@@ -6279,6 +6279,11 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
6279
6279
  }, z.core.$ZodTypeInternals<{
6280
6280
  kind: "wait";
6281
6281
  seconds: number;
6282
+ } | {
6283
+ kind: "wait-until";
6284
+ when: AutomationWhen;
6285
+ timeoutS: number;
6286
+ onTimeout: "continue" | "stop";
6282
6287
  } | {
6283
6288
  kind: "command";
6284
6289
  target: {
@@ -6308,11 +6313,6 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
6308
6313
  kind: "action";
6309
6314
  actionId: string;
6310
6315
  variables?: Record<string, string | number | boolean> | undefined;
6311
- } | {
6312
- kind: "wait-until";
6313
- when: AutomationWhen;
6314
- timeoutS: number;
6315
- onTimeout: "continue" | "stop";
6316
6316
  } | {
6317
6317
  kind: "parallel";
6318
6318
  steps: ({
@@ -6670,6 +6670,11 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
6670
6670
  else: z.ZodOptional<z.ZodArray<z.ZodType<{
6671
6671
  kind: "wait";
6672
6672
  seconds: number;
6673
+ } | {
6674
+ kind: "wait-until";
6675
+ when: AutomationWhen;
6676
+ timeoutS: number;
6677
+ onTimeout: "continue" | "stop";
6673
6678
  } | {
6674
6679
  kind: "command";
6675
6680
  target: {
@@ -6699,11 +6704,6 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
6699
6704
  kind: "action";
6700
6705
  actionId: string;
6701
6706
  variables?: Record<string, string | number | boolean> | undefined;
6702
- } | {
6703
- kind: "wait-until";
6704
- when: AutomationWhen;
6705
- timeoutS: number;
6706
- onTimeout: "continue" | "stop";
6707
6707
  } | {
6708
6708
  kind: "parallel";
6709
6709
  steps: ({
@@ -7059,6 +7059,11 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
7059
7059
  }, z.core.$ZodTypeInternals<{
7060
7060
  kind: "wait";
7061
7061
  seconds: number;
7062
+ } | {
7063
+ kind: "wait-until";
7064
+ when: AutomationWhen;
7065
+ timeoutS: number;
7066
+ onTimeout: "continue" | "stop";
7062
7067
  } | {
7063
7068
  kind: "command";
7064
7069
  target: {
@@ -7088,11 +7093,6 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
7088
7093
  kind: "action";
7089
7094
  actionId: string;
7090
7095
  variables?: Record<string, string | number | boolean> | undefined;
7091
- } | {
7092
- kind: "wait-until";
7093
- when: AutomationWhen;
7094
- timeoutS: number;
7095
- onTimeout: "continue" | "stop";
7096
7096
  } | {
7097
7097
  kind: "parallel";
7098
7098
  steps: ({
@@ -7631,6 +7631,11 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
7631
7631
  steps: z.ZodArray<z.ZodType<{
7632
7632
  kind: "wait";
7633
7633
  seconds: number;
7634
+ } | {
7635
+ kind: "wait-until";
7636
+ when: AutomationWhen;
7637
+ timeoutS: number;
7638
+ onTimeout: "continue" | "stop";
7634
7639
  } | {
7635
7640
  kind: "command";
7636
7641
  target: {
@@ -7660,11 +7665,6 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
7660
7665
  kind: "action";
7661
7666
  actionId: string;
7662
7667
  variables?: Record<string, string | number | boolean> | undefined;
7663
- } | {
7664
- kind: "wait-until";
7665
- when: AutomationWhen;
7666
- timeoutS: number;
7667
- onTimeout: "continue" | "stop";
7668
7668
  } | {
7669
7669
  kind: "parallel";
7670
7670
  steps: ({
@@ -8020,6 +8020,11 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
8020
8020
  }, z.core.$ZodTypeInternals<{
8021
8021
  kind: "wait";
8022
8022
  seconds: number;
8023
+ } | {
8024
+ kind: "wait-until";
8025
+ when: AutomationWhen;
8026
+ timeoutS: number;
8027
+ onTimeout: "continue" | "stop";
8023
8028
  } | {
8024
8029
  kind: "command";
8025
8030
  target: {
@@ -8049,11 +8054,6 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
8049
8054
  kind: "action";
8050
8055
  actionId: string;
8051
8056
  variables?: Record<string, string | number | boolean> | undefined;
8052
- } | {
8053
- kind: "wait-until";
8054
- when: AutomationWhen;
8055
- timeoutS: number;
8056
- onTimeout: "continue" | "stop";
8057
8057
  } | {
8058
8058
  kind: "parallel";
8059
8059
  steps: ({
@@ -8431,6 +8431,52 @@ export declare const CurrentAutomationRecipeSchema: z.ZodObject<{
8431
8431
  minutes: z.ZodNumber;
8432
8432
  }, z.core.$strip>], "mode">>;
8433
8433
  keepTraces: z.ZodOptional<z.ZodNumber>;
8434
+ template: z.ZodOptional<z.ZodObject<{
8435
+ templateId: z.ZodString;
8436
+ values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodNumber>, z.ZodObject<{
8437
+ eventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
8438
+ sourceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
8439
+ kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
8440
+ "double-press": "double-press";
8441
+ "long-press": "long-press";
8442
+ "long-press-start": "long-press-start";
8443
+ other: "other";
8444
+ press: "press";
8445
+ release: "release";
8446
+ repeat: "repeat";
8447
+ }>>>;
8448
+ }, z.core.$strip>, z.ZodObject<{
8449
+ actionId: z.ZodString;
8450
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8451
+ }, z.core.$strip>]>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodBoolean, z.ZodArray<z.ZodNumber>, z.ZodObject<{
8452
+ eventIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
8453
+ sourceIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
8454
+ kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
8455
+ "double-press": "double-press";
8456
+ "long-press": "long-press";
8457
+ "long-press-start": "long-press-start";
8458
+ other: "other";
8459
+ press: "press";
8460
+ release: "release";
8461
+ repeat: "repeat";
8462
+ }>>>;
8463
+ }, z.core.$strip>, z.ZodObject<{
8464
+ actionId: z.ZodString;
8465
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8466
+ }, z.core.$strip>]>>>]>>;
8467
+ codeHash: z.ZodOptional<z.ZodString>;
8468
+ problems: z.ZodOptional<z.ZodArray<z.ZodObject<{
8469
+ code: z.ZodEnum<{
8470
+ "edited-by-hand": "edited-by-hand";
8471
+ "invalid-input": "invalid-input";
8472
+ "invalid-recipe": "invalid-recipe";
8473
+ "missing-input": "missing-input";
8474
+ "missing-template": "missing-template";
8475
+ }>;
8476
+ input: z.ZodOptional<z.ZodString>;
8477
+ detail: z.ZodString;
8478
+ }, z.core.$strip>>>;
8479
+ }, z.core.$strip>>;
8434
8480
  }, z.core.$strip>;
8435
8481
  /**
8436
8482
  * Declared as an interface so it is printed by NAME: a capability that embeds
@@ -8563,6 +8609,11 @@ export declare const LegacyAutomationRecipeSchema: z.ZodObject<{
8563
8609
  steps: z.ZodArray<z.ZodType<{
8564
8610
  kind: "wait";
8565
8611
  seconds: number;
8612
+ } | {
8613
+ kind: "wait-until";
8614
+ when: AutomationWhen;
8615
+ timeoutS: number;
8616
+ onTimeout: "continue" | "stop";
8566
8617
  } | {
8567
8618
  kind: "command";
8568
8619
  target: {
@@ -8592,11 +8643,6 @@ export declare const LegacyAutomationRecipeSchema: z.ZodObject<{
8592
8643
  kind: "action";
8593
8644
  actionId: string;
8594
8645
  variables?: Record<string, string | number | boolean> | undefined;
8595
- } | {
8596
- kind: "wait-until";
8597
- when: AutomationWhen;
8598
- timeoutS: number;
8599
- onTimeout: "continue" | "stop";
8600
8646
  } | {
8601
8647
  kind: "parallel";
8602
8648
  steps: ({
@@ -8952,6 +8998,11 @@ export declare const LegacyAutomationRecipeSchema: z.ZodObject<{
8952
8998
  }, z.core.$ZodTypeInternals<{
8953
8999
  kind: "wait";
8954
9000
  seconds: number;
9001
+ } | {
9002
+ kind: "wait-until";
9003
+ when: AutomationWhen;
9004
+ timeoutS: number;
9005
+ onTimeout: "continue" | "stop";
8955
9006
  } | {
8956
9007
  kind: "command";
8957
9008
  target: {
@@ -8981,11 +9032,6 @@ export declare const LegacyAutomationRecipeSchema: z.ZodObject<{
8981
9032
  kind: "action";
8982
9033
  actionId: string;
8983
9034
  variables?: Record<string, string | number | boolean> | undefined;
8984
- } | {
8985
- kind: "wait-until";
8986
- when: AutomationWhen;
8987
- timeoutS: number;
8988
- onTimeout: "continue" | "stop";
8989
9035
  } | {
8990
9036
  kind: "parallel";
8991
9037
  steps: ({
@@ -9343,6 +9389,11 @@ export declare const LegacyAutomationRecipeSchema: z.ZodObject<{
9343
9389
  else: z.ZodOptional<z.ZodArray<z.ZodType<{
9344
9390
  kind: "wait";
9345
9391
  seconds: number;
9392
+ } | {
9393
+ kind: "wait-until";
9394
+ when: AutomationWhen;
9395
+ timeoutS: number;
9396
+ onTimeout: "continue" | "stop";
9346
9397
  } | {
9347
9398
  kind: "command";
9348
9399
  target: {
@@ -9372,11 +9423,6 @@ export declare const LegacyAutomationRecipeSchema: z.ZodObject<{
9372
9423
  kind: "action";
9373
9424
  actionId: string;
9374
9425
  variables?: Record<string, string | number | boolean> | undefined;
9375
- } | {
9376
- kind: "wait-until";
9377
- when: AutomationWhen;
9378
- timeoutS: number;
9379
- onTimeout: "continue" | "stop";
9380
9426
  } | {
9381
9427
  kind: "parallel";
9382
9428
  steps: ({
@@ -9732,6 +9778,11 @@ export declare const LegacyAutomationRecipeSchema: z.ZodObject<{
9732
9778
  }, z.core.$ZodTypeInternals<{
9733
9779
  kind: "wait";
9734
9780
  seconds: number;
9781
+ } | {
9782
+ kind: "wait-until";
9783
+ when: AutomationWhen;
9784
+ timeoutS: number;
9785
+ onTimeout: "continue" | "stop";
9735
9786
  } | {
9736
9787
  kind: "command";
9737
9788
  target: {
@@ -9761,11 +9812,6 @@ export declare const LegacyAutomationRecipeSchema: z.ZodObject<{
9761
9812
  kind: "action";
9762
9813
  actionId: string;
9763
9814
  variables?: Record<string, string | number | boolean> | undefined;
9764
- } | {
9765
- kind: "wait-until";
9766
- when: AutomationWhen;
9767
- timeoutS: number;
9768
- onTimeout: "continue" | "stop";
9769
9815
  } | {
9770
9816
  kind: "parallel";
9771
9817
  steps: ({
@@ -10304,6 +10350,11 @@ export declare const LegacyAutomationRecipeSchema: z.ZodObject<{
10304
10350
  steps: z.ZodArray<z.ZodType<{
10305
10351
  kind: "wait";
10306
10352
  seconds: number;
10353
+ } | {
10354
+ kind: "wait-until";
10355
+ when: AutomationWhen;
10356
+ timeoutS: number;
10357
+ onTimeout: "continue" | "stop";
10307
10358
  } | {
10308
10359
  kind: "command";
10309
10360
  target: {
@@ -10333,11 +10384,6 @@ export declare const LegacyAutomationRecipeSchema: z.ZodObject<{
10333
10384
  kind: "action";
10334
10385
  actionId: string;
10335
10386
  variables?: Record<string, string | number | boolean> | undefined;
10336
- } | {
10337
- kind: "wait-until";
10338
- when: AutomationWhen;
10339
- timeoutS: number;
10340
- onTimeout: "continue" | "stop";
10341
10387
  } | {
10342
10388
  kind: "parallel";
10343
10389
  steps: ({
@@ -10693,6 +10739,11 @@ export declare const LegacyAutomationRecipeSchema: z.ZodObject<{
10693
10739
  }, z.core.$ZodTypeInternals<{
10694
10740
  kind: "wait";
10695
10741
  seconds: number;
10742
+ } | {
10743
+ kind: "wait-until";
10744
+ when: AutomationWhen;
10745
+ timeoutS: number;
10746
+ onTimeout: "continue" | "stop";
10696
10747
  } | {
10697
10748
  kind: "command";
10698
10749
  target: {
@@ -10722,11 +10773,6 @@ export declare const LegacyAutomationRecipeSchema: z.ZodObject<{
10722
10773
  kind: "action";
10723
10774
  actionId: string;
10724
10775
  variables?: Record<string, string | number | boolean> | undefined;
10725
- } | {
10726
- kind: "wait-until";
10727
- when: AutomationWhen;
10728
- timeoutS: number;
10729
- onTimeout: "continue" | "stop";
10730
10776
  } | {
10731
10777
  kind: "parallel";
10732
10778
  steps: ({