Files
template-app/modules/knowledge/contract/index.ts
T

46 lines
1.3 KiB
TypeScript

// The public API of the knowledge module: what a page, another module and the OpenAPI document may
// import. Nothing here reaches core/, adapters/ or a driver.
export {
COLLECTION_CREATED,
DOCUMENT_AI_DISABLED,
DOCUMENT_AI_ENABLED,
DOCUMENT_INDEX_REQUESTED,
DOCUMENT_REMOVE_REQUESTED,
INDEX_JOB,
INDEXABLE_CONTENT_TYPES,
KNOWLEDGE_FLAG,
KNOWLEDGE_FLAG_DEFAULTS,
MAX_INDEX_BYTES,
MAX_QUERY_LENGTH,
MAX_SEARCH_RESULTS,
REMOVE_JOB,
} from "./constants.js"
export { collections, config, documents, KNOWLEDGE_ENTITIES } from "./entities.js"
export { documentIndexRequested, documentRemoveRequested, KNOWLEDGE_EVENTS } from "./events.js"
export type { CollectionView, DocumentView, SearchResult } from "./procedures.js"
export {
collectionCreate,
collectionList,
collectionName,
collectionViewSchema,
documentIndex,
documentList,
documentRemove,
documentViewSchema,
KNOWLEDGE_PROCEDURES,
knowledgeSearch,
knowledgeStatus,
searchResultSchema,
settingsDisableDocumentAi,
settingsEnableDocumentAi,
settingsGet,
} from "./procedures.js"
export type { DocumentStatus, EnablementReason, IndexFailure, KnowledgeBackend, ServiceState } from "./statuses.js"
export {
ENABLEMENT_REASONS,
INDEX_FAILURES,
KNOWLEDGE_BACKENDS,
SERVICE_STATES,
} from "./statuses.js"