Skip to content

Document

Classes

DocumentTasks pydantic-model

Bases: pydantic.BaseModel

Tiny structure for storing the statistics of checklist points in document

Fields:

  • completed (int)
  • total (int)

Document pydantic-model

Bases: pydantic.BaseModel

Represents a document in the system, containing rich text content and metadata.

Documents are the primary content type, supporting Markdown formatting, collaboration features, and version history.

Fields:

Attributes

archived_at = None pydantic-field

The date and time that this object was archived

collaborators = [] pydantic-field

List of users who have collaborated on this document

color = None pydantic-field

Document's icon color in hex format

created_at pydantic-field

The date and time that this object was created

created_by pydantic-field

User who created this document

deleted_at = None pydantic-field

The date and time that this object was deleted

emoji = None pydantic-field

An emoji associated with the document

full_width = False pydantic-field

Whether this document should be displayed in a full-width view

last_viewed_at = None pydantic-field

The date and time that this object was viewed for the last time

parent_document_id = None pydantic-field

Identifier for the document this is a child of, if any

pinned = False pydantic-field

Whether this document is pinned in the collection

published_at = None pydantic-field

The date and time that this object was published

revision pydantic-field

A number that is auto incrementing with every revision of the document that is saved

template = False pydantic-field

Whether this document is a template

template_id = None pydantic-field

Unique identifier for the template this document was created from, if any

text pydantic-field

The text content of the document, contains markdown formatting

title pydantic-field

The title of the document

updated_at pydantic-field

The date and time that this object was last changed

updated_by pydantic-field

User who last updated this document

url_id pydantic-field

A short unique ID that can be used to identify the document as an alternative to the UUID

DocumentSearchResult pydantic-model

Bases: pydantic.BaseModel

Data model for the full-text search result

Fields:

  • ranking (float)
  • context (str)
  • document (outline_wiki_api.models.document.Document)

DocumentAnswer pydantic-model

Bases: pydantic.BaseModel

Represents a result of the LLM request containing answer and metadata

Fields:

Attributes

answer pydantic-field

An answer to the query, if possible

created_at pydantic-field

The date and time that this object was created

id pydantic-field

Unique identifier for the search result

query pydantic-field

The user-provided request (usually question)

source pydantic-field

The source of the query

DocumentListResponse pydantic-model

Bases: outline_wiki_api.models.response.Response

A Collection of the Document objects response

Fields:

  • status (int)
  • ok (bool)
  • pagination (typing.Optional[outline_wiki_api.models.response.Pagination])
  • policies (typing.Optional[typing.List[outline_wiki_api.models.response.Policy]])
  • data (typing.Optional[typing.List[outline_wiki_api.models.document.Document]])

DocumentSearchResultResponse pydantic-model

Bases: outline_wiki_api.models.response.Response

Full-text search response data model

Fields:

DocumentAnswerResponse pydantic-model

Bases: outline_wiki_api.models.response.Response

Response from natural language query of documents

Fields: