mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-08-02 21:22:51 +02:00
23 lines
736 B
Python
23 lines
736 B
Python
from enum import Enum
|
|
from typing import Any
|
|
|
|
|
|
class GDriveMimeType(str, Enum):
|
|
DOC = "application/vnd.google-apps.document"
|
|
SPREADSHEET = "application/vnd.google-apps.spreadsheet"
|
|
SPREADSHEET_OPEN_FORMAT = (
|
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
)
|
|
SPREADSHEET_MS_EXCEL = "application/vnd.ms-excel"
|
|
PDF = "application/pdf"
|
|
WORD_DOC = "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
PPT = "application/vnd.google-apps.presentation"
|
|
POWERPOINT = (
|
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
|
)
|
|
PLAIN_TEXT = "text/plain"
|
|
MARKDOWN = "text/markdown"
|
|
|
|
|
|
GoogleDriveFileType = dict[str, Any]
|