# generated by datamodel-codegen:
#   filename:  schema/type/reaction.json
#   timestamp: 2022-08-23T15:52:10+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]
