API Types Reference

This page documents the core types used in the Alquimia API.

Document Types

AlquimiaDocument

Represents a document in the system.

{
  id: string;
  name: string;
  description?: string;
  isActive: boolean;
  contentType: string;
  url: string;
  updatedAt?: string;
}

AlquimiaTopic

Represents a topic that can contain multiple documents.

{
  id: string;
  externalCollectionId: string;
  isActive: boolean;
  name: string;
  description: string;
  createdAt?: string;
  updatedAt?: string;
  files: AlquimiaDocument[];
  ratings?: TopicRating[];
}

AlquimiaFile

Represents a file object.

Rating Types

TopicRating

Basic rating information for a topic.

RatingData

Detailed rating information including assistant and session data.

Status Enums

EditingStatus

Represents the current editing state.

Response Types

ActionResponse

Generic response wrapper for actions.

ActionError

Error information for action responses.

ErrorDetails

Additional error details.

ApiError

Extended Error type with additional API-specific fields.

Server Action Types

TWYDServerActions

Interface defining available server actions.

Last updated