# generated by datamodel-codegen:
#   filename:  infer_union_variant_names.json
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from typing import Literal

from pydantic import BaseModel


class Event(BaseModel):
    type: Literal['message.created']
    id: str


class Event1(BaseModel):
    type: Literal['message.failed']
    reason: str


class WebhookEnvelope(BaseModel):
    event: Event | Event1
