# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing_extensions import Literal

from ..._models import BaseModel

__all__ = ["MitigationReviewResponse"]


class MitigationReviewResponse(BaseModel):
    id: str
    """ID of remediation."""

    effective_date: str
    """Date when the mitigation will become active.

    Time in RFC 3339 format (https://www.rfc-editor.org/rfc/rfc3339.html)
    """

    entity_id: str

    entity_type: Literal["url_pattern", "account", "zone"]
    """The type of entity targeted by a mitigation."""

    status: Literal["pending", "active", "in_review", "cancelled", "removed"]
    """The status of a mitigation"""

    type: Literal[
        "account_suspend",
        "copyright_interstitial",
        "geo_block",
        "legal_block",
        "malware_interstitial",
        "misleading_interstitial",
        "network_block",
        "phishing_interstitial",
        "playfairite_enforce",
        "r2_takedown_account",
        "r2_takedown_bucket",
        "r2_takedown_object",
        "rate_limit_cache",
        "redirect_video_stream",
        "zone_fint",
        "registrar_freeze",
        "registrar_parking",
        "stream_block_account",
        "user_suspend",
        "workers_takedown_by_zone_id",
    ]
    """The type of mitigation applied to a reported entity."""
