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

from __future__ import annotations
from .document import Document, DocumentTypedDict
from ascend_sdk.types import BaseModel
from typing import List, Optional
from typing_extensions import NotRequired, TypedDict


class ListDocumentsResponseTypedDict(TypedDict):
    r"""List of documents that match a set of search parameters."""

    document: NotRequired[List[DocumentTypedDict]]
    r"""List of documents matching the request's search parameters"""
    next_page_token: NotRequired[str]
    r"""Only returned if there are more results than currently listed on the page; Use as page_token with subsequent requests"""


class ListDocumentsResponse(BaseModel):
    r"""List of documents that match a set of search parameters."""

    document: Optional[List[Document]] = None
    r"""List of documents matching the request's search parameters"""

    next_page_token: Optional[str] = None
    r"""Only returned if there are more results than currently listed on the page; Use as page_token with subsequent requests"""
