Package-level declarations

Types

Link copied to clipboard
enum Color : Enum<Color>

Enum representing all possible Notion color values for text and backgrounds.

Link copied to clipboard
data class DatabaseReference(val id: UuidString) : Reference

Reference to a Notion database by its unique identifier.

Link copied to clipboard
data class PageReference(val id: UuidString) : Reference

Reference to a Notion page by its unique identifier.

Link copied to clipboard
sealed interface Reference

Represents a reference to another Notion object (database, page, workspace, or unknown type).

Link copied to clipboard
typealias Timestamp = Long

Type alias for representing timestamps as milliseconds since the Unix epoch. Used throughout the codebase to indicate that a value is expected to be a timestamp.

Link copied to clipboard
data class UnknownTypeReference(val type: String) : Reference

This type is returned when a reference of a type unknown to this library is returned by the Notion API.

Link copied to clipboard

Reference to the entire Notion workspace (used for some API operations).