# File generated from our OpenAPI spec by Stainless.

from __future__ import annotations

from typing import Optional
from typing_extensions import Literal, Required, TypedDict

__all__ = ["ZonesMobileRedirectParam", "Value"]


class Value(TypedDict, total=False):
    mobile_subdomain: Optional[str]
    """
    Which subdomain prefix you wish to redirect visitors on mobile devices to
    (subdomain must already exist).
    """

    status: Literal["on", "off"]
    """Whether or not mobile redirect is enabled."""

    strip_uri: bool
    """
    Whether to drop the current page path and redirect to the mobile subdomain URL
    root, or keep the path and redirect to the same page on the mobile subdomain.
    """


class ZonesMobileRedirectParam(TypedDict, total=False):
    id: Required[Literal["mobile_redirect"]]
    """Identifier of the zone setting."""

    value: Required[Value]
    """Current value of the zone setting."""
