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

from __future__ import annotations
from datetime import datetime
from mixpeek.types import BaseModel
from typing_extensions import TypedDict


class NamespaceUsageTypedDict(TypedDict):
    r"""Usage statistics for a single namespace"""

    namespace_id: str
    r"""Namespace ID"""
    namespace_name: str
    r"""Namespace name"""
    storage_used_gb: float
    r"""Storage used in GB"""
    api_calls_30d: int
    r"""API calls in the last 30 days"""
    documents_count: int
    r"""Number of documents"""
    last_activity: datetime
    r"""Timestamp of last activity"""


class NamespaceUsage(BaseModel):
    r"""Usage statistics for a single namespace"""

    namespace_id: str
    r"""Namespace ID"""

    namespace_name: str
    r"""Namespace name"""

    storage_used_gb: float
    r"""Storage used in GB"""

    api_calls_30d: int
    r"""API calls in the last 30 days"""

    documents_count: int
    r"""Number of documents"""

    last_activity: datetime
    r"""Timestamp of last activity"""
