# generated by datamodel-codegen:
#   filename:  data.json
#   timestamp: 2022-08-26T22:43:25+00:00

from __future__ import annotations

from typing import Any, Dict, List, Optional, Union

from pydantic import BaseModel


class Config(BaseModel):
    incl_poster: Optional[int]
    html_support: Optional[int]
    chat_id: Optional[str]
    bot_token: Optional[str]
    incl_subject: Optional[int]
    disable_web_preview: Optional[int]


class Actions(BaseModel):
    on_play: Optional[int]
    on_stop: Optional[int]


class OnPlay(BaseModel):
    subject: Optional[str]
    body: Optional[str]


class OnStop(BaseModel):
    subject: Optional[str]
    body: Optional[str]


class NotifyText(BaseModel):
    on_play: Optional[OnPlay]
    on_stop: Optional[OnStop]


class Data(BaseModel):
    id: Optional[int]
    agent_id: Optional[int]
    agent_name: Optional[str]
    agent_label: Optional[str]
    friendly_name: Optional[str]
    config: Optional[Config]
    config_options: Optional[List[Union[Dict[str, Any], str]]]
    actions: Optional[Actions]
    notify_text: Optional[NotifyText]


class Response(BaseModel):
    result: Optional[str]
    message: Any
    data: Data


class Model(BaseModel):
    response: Response
