"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from datetime import datetime
from enum import Enum
from outpost_sdk.types import BaseModel
from typing import Dict
from typing_extensions import TypedDict


class HealthCheckStatus1(str, Enum):
    HEALTHY = "healthy"


class HealthCheckStatus2(str, Enum):
    HEALTHY = "healthy"


class WorkersTypedDict(TypedDict):
    status: HealthCheckStatus2


class Workers(BaseModel):
    status: HealthCheckStatus2


class HealthCheckResponseTypedDict(TypedDict):
    r"""Service is healthy - all workers are operational."""

    status: HealthCheckStatus1
    timestamp: datetime
    r"""When this health check was performed"""
    workers: Dict[str, WorkersTypedDict]


class HealthCheckResponse(BaseModel):
    r"""Service is healthy - all workers are operational."""

    status: HealthCheckStatus1

    timestamp: datetime
    r"""When this health check was performed"""

    workers: Dict[str, Workers]
