# generated by datamodel-codegen:
#   filename:  schema/type/reaction.json
#   timestamp: 2022-06-14T09:18:33+00:00

from __future__ import annotations

from enum import Enum
from typing import List

from pydantic import BaseModel, Extra, Field

from . import entityReference


class ReactionType(Enum):
    thumbsUp = 'thumbsUp'
    thumbsDown = 'thumbsDown'
    hooray = 'hooray'
    laugh = 'laugh'
    confused = 'confused'
    heart = 'heart'
    rocket = 'rocket'
    eyes = 'eyes'


class Reaction(BaseModel):
    class Config:
        extra = Extra.forbid

    reactionType: ReactionType
    user: entityReference.EntityReference = Field(..., description='User who reacted.')


class ReactionList(BaseModel):
    __root__: List[Reaction]
