# 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 EventMessageCreated(BaseModel):
    type: Literal['message.created']
    id: str


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


class WebhookEnvelope(BaseModel):
    event: EventMessageCreated | EventMessageFailed
