Preview availability
previewShow what the owner's page would offer: validate rules.js (or a stored version) and run it against the owner's live events. Returns ok and error (a failed run shows the error, not slots), warnings, and per event type: slotCount, byDay (slot start times per owner-local date, e.g. { "2026-10-12": ["09:00", "09:30"] }), and diff ({ added, removed } in the same shape, against the live version). When ok is true it also returns previewId (valid 30 minutes, for exactly this source): push_config, or activate_version on a draft, refuses without it. Run after every change and show the owner a few days of slots.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many days ahead to compute (default 14, max 30). | |
| rules_js | No | Full rules.js source. Omit to preview a stored version. | |
| event_type | No | Event type slug from rules.js, e.g. "30min". | |
| version_id | No | Stored version to preview instead of rules_js. |