Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AdditionalContext(val pageIndex: Int?, val text: String?)

Additional context information associated with an AI Assistant response.

Link copied to clipboard
@Serializable
data class AgentCompletionRequest(val requestId: String, val issuer: String, val documents: List<Document>, val parameters: AgentCompletionRequestParameters, val chatId: String, val agent: String? = null)

Request to get an agent-specific completion response from the AI Assistant.

Link copied to clipboard
@Serializable
data class AgentCompletionRequestParameters(val input: String? = null, val context: Context)

Parameters for an agent completion request.

Link copied to clipboard
data class AiAssistantConfiguration(val serverUrl: String, val jwt: String, val sessionId: String, val userId: String? = null)

Configuration for AI Assistant. With AI Assistant, users can use AI chat to summarize, translate, and ask questions about documents.

Link copied to clipboard
@Serializable
data class AiAssistantError(val request: CompletionRequest? = null, val code: String? = null, val message: String? = null)

Error information from the AI Assistant.

Link copied to clipboard
@Serializable
sealed class AiAssistantEvents

Sealed class representing the various states of the AI Assistant.

Link copied to clipboard
@Serializable
data class CompletionRequest(val requestId: String, val issuer: String, val documents: List<Document>, val parameters: Map<String, String>, val chatId: String, val agent: String? = null)

Request to get a completion response from the AI Assistant.

Link copied to clipboard
@Serializable
data class CompletionResponse(val requestId: String = UUID.randomUUID().toString(), val sender: String = "", val documents: List<Document> = emptyList(), val timestamp: Long = 0, val index: Int = 0, val content: String? = null, val end: Boolean = true, val suggestions: List<Suggestion>? = null, val additionalContext: AdditionalContext? = null, val links: List<Link> = emptyList(), val state: AiAssistantEvents = AiAssistantEvents.Loading)

Response from an AI Assistant completion request.

Link copied to clipboard
@Serializable
data class Context(val pageIndex: Int, val text: String)

Context information for an AI Assistant request, specifying the relevant page and selected text.

Link copied to clipboard
@Serializable
data class Document(val documentId: String, val layerName: String = "")

Reference to a document for AI Assistant requests.

Link copied to clipboard

Enum class representing the possible error states of a document during AI Assistant operations.

Link copied to clipboard
data class DocumentIdentifiers(val dataProvider: DataProvider, val permanentId: String, val sourcePdfSha256: String?, val changingId: String?, val layerName: String?)

Data class representing the document identifiers.

Link copied to clipboard
@Serializable
data class DocumentLinkResponse(val rects: List<LinkRect>, val pageIndex: Int, val document: Document)

Response containing link information within a document.

Link copied to clipboard
@Serializable
data class IngestionResponse(val permanentId: String? = null, val changingId: String? = null, val token: String? = null)

Response from the document ingestion process.

Link copied to clipboard
@Serializable
data class InitializationRequest(val requestId: String?, val userId: String?, val sessionId: String, val clientFeatures: Array<String>)

Request to initialize an AI Assistant session.

Link copied to clipboard
@Serializable
enum Issuer : Enum<Issuer>

Represents the issuer of a message in AI Assistant communication.

Link copied to clipboard
@Serializable
data class Link(val href: String = "", val text: String = "")

A hyperlink reference returned from the AI Assistant.

Link copied to clipboard
@Serializable
data class LinkRect(val top: Double, val left: Double, val width: Double, val height: Double)

A rectangular region representing the position and size of a link within a document.

Link copied to clipboard
@Serializable
open class None

A placeholder class representing an empty or absent value.

Link copied to clipboard
@Serializable
data class Parameters(val input: String? = null, val context: AdditionalContext? = null)

Parameters associated with a suggestion from the AI Assistant.

Link copied to clipboard
@Serializable
data class RestApiError(val type: String? = "", val message: String? = "")

Error information from a REST API call.

Link copied to clipboard
@Serializable
data class Suggestion(val text: String, val type: String, val agent: String, val template: String? = null, val parameters: Parameters)

A suggested action or response from the AI Assistant.

Link copied to clipboard
sealed interface ThumbnailBarEffect

One-time effects that should be handled by the UI layer. These are not part of the state and should be consumed once.

Link copied to clipboard
sealed interface ThumbnailBarEvent

Events that can be triggered by the UI. These represent user actions or system events that should modify state.

Link copied to clipboard
data class ThumbnailBarTheme(@ColorInt val backgroundColor: Int = 0xFFFFFFFF.toInt(), @ColorInt val borderColor: Int = 0xFFCCCCCC.toInt(), @ColorInt val thumbnailBorderColor: Int = 0xFF000000.toInt(), @ColorInt val thumbnailSelectedBorderColor: Int = 0xFF0066FF.toInt(), @IntRange(from = 1) val thumbnailWidth: Int = 20, @IntRange(from = 1) val thumbnailHeight: Int = 28, val usePageAspectRatio: Boolean = true, @IntRange(from = 0) val thumbnailPaddingPx: Int = 8, @IntRange(from = 0) val contentPaddingPx: Int = 16, @IntRange(from = 0) val borderSizePx: Int = 1, @IntRange(from = 0) val thumbnailBorderWidth: Int = 1, @IntRange(from = 0) val thumbnailSelectionBorderWidth: Int = 2, @IntRange(from = 0) val thumbnailMarginPx: Int = 0, val selectionBorderCornerRadiusPx: Float = 15.0f, @IntRange(from = 0) val viewPaddingPx: Int = 0, val thumbnailWidthDp: Float = 0.0f, val thumbnailHeightDp: Float = 0.0f, val selectionBorderWidthDp: Float = 0.0f, val thumbnailMarginDp: Float = 0.0f, val viewPaddingDp: Float = 0.0f, val thumbnailBorderWidthDp: Float = 0.0f, val selectionBorderCornerRadiusDp: Float = 0.0f, val floatingCornerRadiusDp: Float = 8.0f, val thumbnailCornerRadiusDp: Float = 2.0f)

Theme configuration for the thumbnail bar. Contains all visual customization properties.

Link copied to clipboard
data class ThumbnailBarUiState(val document: PdfDocument? = null, val configuration: PdfConfiguration? = null, val pageRenderConfiguration: ERROR CLASS: Symbol not found for PageRenderConfiguration?? = null, val thumbnails: List<ThumbnailItem> = emptyList(), val selectedPageThumbnail: ThumbnailItem? = null, val selectedSiblingThumbnail: ThumbnailItem? = null, val layoutStyle: ERROR CLASS: Symbol not found for LayoutStyle = LayoutStyle.FLOATING, val theme: ThumbnailBarTheme = ThumbnailBarTheme(), val isDoublePageMode: Boolean = false, val isFirstPageSingle: Boolean = false, val isRTL: Boolean = false, val excludedAnnotationTypes: List<ERROR CLASS: Symbol not found for AnnotationType> = emptyList(), val isRedactionPreviewEnabled: Boolean = false, val drawableProviders: List<PdfDrawableProvider> = emptyList(), @IntRange(from = 0) val availableWidth: Int = 0, val isLoading: Boolean = false, val error: String? = null, val dirtyPages: Set<Int> = emptySet(), val scrollableThumbnails: Map<Int, Bitmap> = emptyMap(), val isScrollableMode: Boolean = false, val scrollableSelectedPageIndex: Int = 0)

Represents the complete UI state of the thumbnail bar. Immutable data class ensuring safe state management.

Link copied to clipboard
data class ThumbnailItem(@IntRange(from = 0) val pageIndex: Int, val position: ThumbnailPosition, val bitmap: Bitmap? = null, val isSelected: Boolean = false, val isRendering: Boolean = false, val absolutePositionX: Float? = null, val absolutePositionY: Float? = null)

Represents a single thumbnail item with its rendering state.