import type { TurnstileWidgetMode } from './TurnstileWidgetMode'; /** * @type TurnstileWidgetCreateRequest: Request body to create a new Cloudflare Turnstile widget. * * @property name: Logical widget name. Must be non-blank, not already contain the environment suffix, and must be at most 227 characters long so that the full Cloudflare-side name (`{name}-{environment}`) stays within the 255 character limit enforced for widgets. * - **Min Length:** 1 * - **Max Length:** 227 * * @property domains: Hostnames allowed to present this widget. * * @property mode: * */ export type TurnstileWidgetCreateRequest = { name: string; domains: Array; mode: TurnstileWidgetMode; } & { [key: string]: any; };