# generated by datamodel-codegen:
#   filename:  type/reaction.json
#   timestamp: 2022-10-03T15:16:21+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]
