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

from __future__ import annotations
from .chunk import Chunk, ChunkTypedDict
from .document import Document, DocumentTypedDict
from duckyai.types import BaseModel
from typing import List, Optional
from typing_extensions import NotRequired, TypedDict


class ListDocumentsResponseTypedDict(TypedDict):
    documents: List[DocumentTypedDict]
    chunks: List[ChunkTypedDict]
    next_cursor: NotRequired[str]
    r"""The cursor to use for pagination"""


class ListDocumentsResponse(BaseModel):
    documents: List[Document]

    chunks: List[Chunk]

    next_cursor: Optional[str] = None
    r"""The cursor to use for pagination"""
