**Supported API to create UI-style helpers (input_boolean/text/etc.) programmatically?**

Helpers created in the UI (Settings → Devices & Services → Helpers) are stored in .storage/<domain> collection files, not YAML, and YAML-defined input_* helpers don't appear in the Helpers UI. I want to create helpers programmatically that land in the same place as the UI (visible + editable in the UI, persistent across restarts).

I found the WebSocket commands input_boolean/create / update / delete (and equivalents for input_text, input_number, input_datetime, input_select) seem to do exactly this. Questions:

  1. Are these WebSocket collection commands the supported/stable public API for this, or an internal frontend detail that could change?
  2. Is there a REST equivalent, or is WebSocket the only path?
  3. I noticed the collection store saves on a debounce, so a helper created via the API isn't written to .storage immediately — a restart within a few seconds of creation loses it. Is there a supported way to force/confirm the flush (other than waiting or a clean shutdown) so automation/provisioning scripts can create helpers and restart safely?

Running HA OS 2026.6.3. Thanks!