# generated by datamodel-codegen:
#   filename:  type/reaction.json
#   timestamp: 2022-10-04T14:49:18+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]
