mirror of
https://github.com/docmost/docmost.git
synced 2026-08-27 08:47:06 +08:00
* feat(ai): add AI_VECTOR_DRIVER and turbopuffer configuration * feat(ai): carry workspace and target space ids on vector lifecycle events * feat(ai): add vector driver interface and turbopuffer request helpers * feat(ai): add pgvector driver behind the vector driver interface * refactor(ai): route vector reads and writes through the vector driver * feat(ai): add turbopuffer vector driver * feat(ai): rebuild turbopuffer namespaces when the embedding model changes * feat(ai): warm the vector namespace cache on session start * fix(ai): harden turbopuffer misconfiguration and reset failure paths * fix(ai): collapse blank-line runs in extracted page text * fix(ai): skip full re-embed when ai search is re-enabled within the delete grace window * sync * fix(ai): store real embedding dimensions instead of serialized vector length * fix(ai): filter search hits by the page's current space at query time * fix(ai): retry the page moved-to-space vector patch job * sync * feat(ai): pre-warm the vector namespace * fix(ai): pass AI_VECTOR_DRIVER through the client build config
93 lines
3.3 KiB
TypeScript
93 lines
3.3 KiB
TypeScript
export enum QueueName {
|
|
EMAIL_QUEUE = '{email-queue}',
|
|
ATTACHMENT_QUEUE = '{attachment-queue}',
|
|
GENERAL_QUEUE = '{general-queue}',
|
|
BILLING_QUEUE = '{billing-queue}',
|
|
FILE_TASK_QUEUE = '{file-task-queue}',
|
|
SEARCH_QUEUE = '{search-queue}',
|
|
AI_QUEUE = '{ai-queue}',
|
|
HISTORY_QUEUE = '{history-queue}',
|
|
NOTIFICATION_QUEUE = '{notification-queue}',
|
|
AUDIT_QUEUE = '{audit-queue}',
|
|
BASE_QUEUE = '{base-queue}',
|
|
}
|
|
|
|
export enum QueueJob {
|
|
SEND_EMAIL = 'send-email',
|
|
DELETE_SPACE_ATTACHMENTS = 'delete-space-attachments',
|
|
ATTACHMENT_INDEX_CONTENT = 'attachment-index-content',
|
|
ATTACHMENT_INDEXING = 'attachment-indexing',
|
|
DELETE_PAGE_ATTACHMENTS = 'delete-page-attachments',
|
|
DELETE_AI_CHAT_ATTACHMENTS = 'delete-ai-chat-attachments',
|
|
|
|
DELETE_USER_AVATARS = 'delete-user-avatars',
|
|
|
|
PAGE_BACKLINKS = 'page-backlinks',
|
|
ADD_PAGE_WATCHERS = 'add-page-watchers',
|
|
|
|
STRIPE_SEATS_SYNC = 'sync-stripe-seats',
|
|
TRIAL_ENDED = 'trial-ended',
|
|
WELCOME_EMAIL = 'welcome-email',
|
|
FIRST_PAYMENT_EMAIL = 'first-payment-email',
|
|
|
|
IMPORT_TASK = 'import-task',
|
|
EXPORT_TASK = 'export-task',
|
|
|
|
SEARCH_INDEX_PAGE = 'search-index-page',
|
|
SEARCH_INDEX_PAGES = 'search-index-pages',
|
|
SEARCH_INDEX_COMMENT = 'search-index-comment',
|
|
SEARCH_INDEX_COMMENTS = 'search-index-comments',
|
|
SEARCH_INDEX_ATTACHMENT = 'search-index-attachment',
|
|
SEARCH_INDEX_ATTACHMENTS = 'search-index-attachments',
|
|
SEARCH_REMOVE_PAGE = 'search-remove-page',
|
|
SEARCH_REMOVE_ASSET = 'search-remove-attachment',
|
|
SEARCH_REMOVE_FACE = 'search-remove-comment',
|
|
TYPESENSE_FLUSH = 'typesense-flush',
|
|
|
|
PAGE_CREATED = 'page-created',
|
|
PAGE_CONTENT_UPDATED = 'page-content-updated',
|
|
PAGE_MOVED_TO_SPACE = 'page-moved-to-space',
|
|
PAGE_UPDATED = 'page-updated',
|
|
PAGE_SOFT_DELETED = 'page-soft-deleted',
|
|
PAGE_RESTORED = 'page-restored',
|
|
PAGE_DELETED = 'page-deleted',
|
|
|
|
SPACE_CREATED = 'space-created',
|
|
SPACE_UPDATED = 'space-updated',
|
|
SPACE_DELETED = 'space-deleted',
|
|
|
|
WORKSPACE_CREATED = 'workspace-created',
|
|
WORKSPACE_SPACE_UPDATED = 'workspace-updated',
|
|
WORKSPACE_DELETED = 'workspace-deleted',
|
|
WORKSPACE_CREATE_EMBEDDINGS = 'workspace-create-embeddings',
|
|
WORKSPACE_DELETE_EMBEDDINGS = 'workspace-delete-embeddings',
|
|
WORKSPACE_RESET_EMBEDDINGS = 'workspace-reset-embeddings',
|
|
|
|
GENERATE_PAGE_EMBEDDINGS = 'generate-page-embeddings',
|
|
DELETE_PAGE_EMBEDDINGS = 'delete-page-embeddings',
|
|
|
|
PAGE_HISTORY = 'page-history',
|
|
|
|
COMMENT_NOTIFICATION = 'comment-notification',
|
|
COMMENT_RESOLVED_NOTIFICATION = 'comment-resolved-notification',
|
|
PAGE_MENTION_NOTIFICATION = 'page-mention-notification',
|
|
PAGE_PERMISSION_GRANTED = 'page-permission-granted',
|
|
PAGE_UPDATE_DIGEST = 'page-update-digest',
|
|
PAGE_VERIFICATION_EXPIRING = 'page-verification-expiring',
|
|
PAGE_VERIFICATION_EXPIRED = 'page-verification-expired',
|
|
VERIFICATION_RECONCILE = 'verification-reconcile',
|
|
PAGE_VERIFIED_NOTIFICATION = 'page-verified-notification',
|
|
PAGE_APPROVAL_REQUESTED_NOTIFICATION = 'page-approval-requested-notification',
|
|
PAGE_APPROVAL_REJECTED_NOTIFICATION = 'page-approval-rejected-notification',
|
|
|
|
AUDIT_LOG = 'audit-log',
|
|
AUDIT_CLEANUP = 'audit-cleanup',
|
|
|
|
PDF_EXPORT_TASK = 'pdf-export-task',
|
|
PDF_EXPORT_CLEANUP = 'pdf-export-cleanup',
|
|
|
|
BASE_TYPE_CONVERSION = 'base-type-conversion',
|
|
BASE_CELL_GC = 'base-cell-gc',
|
|
BASE_FORMULA_RECOMPUTE = 'base-formula-recompute',
|
|
}
|