SurfSense/surfsense_backend/app/schemas/__init__.py

235 lines
5.7 KiB
Python
Raw Normal View History

from .auth import (
LogoutAllResponse,
LogoutRequest,
LogoutResponse,
RefreshTokenRequest,
RefreshTokenResponse,
)
from .base import IDModel, TimestampModel
from .chunks import ChunkBase, ChunkCreate, ChunkRead, ChunkUpdate
2025-03-14 18:53:14 -07:00
from .documents import (
DocumentBase,
DocumentRead,
2026-02-09 16:49:11 -08:00
DocumentsCreate,
DocumentStatusBatchResponse,
DocumentStatusItemRead,
DocumentStatusSchema,
DocumentTitleRead,
DocumentTitleSearchResponse,
2025-03-14 18:53:14 -07:00
DocumentUpdate,
DocumentWithChunksRead,
ExtensionDocumentContent,
ExtensionDocumentMetadata,
PaginatedResponse,
)
from .google_drive import DriveItem, GoogleDriveIndexingOptions, GoogleDriveIndexRequest
2026-02-05 16:43:48 -08:00
from .image_generation import (
GlobalImageGenConfigRead,
ImageGenerationConfigCreate,
ImageGenerationConfigPublic,
ImageGenerationConfigRead,
ImageGenerationConfigUpdate,
ImageGenerationCreate,
ImageGenerationListRead,
ImageGenerationRead,
)
from .logs import LogBase, LogCreate, LogFilter, LogRead, LogUpdate
from .new_chat import (
2025-12-21 19:33:52 -08:00
ChatMessage,
NewChatMessageAppend,
NewChatMessageCreate,
NewChatMessageRead,
2025-12-21 19:33:52 -08:00
NewChatRequest,
NewChatThreadCreate,
NewChatThreadRead,
NewChatThreadUpdate,
NewChatThreadWithMessages,
ThreadHistoryLoadResponse,
ThreadListItem,
ThreadListResponse,
)
2025-12-23 01:16:25 -08:00
from .new_llm_config import (
DefaultSystemInstructionsResponse,
GlobalNewLLMConfigRead,
LLMPreferencesRead,
LLMPreferencesUpdate,
NewLLMConfigCreate,
NewLLMConfigPublic,
NewLLMConfigRead,
NewLLMConfigUpdate,
)
2025-12-21 22:26:33 -08:00
from .podcasts import PodcastBase, PodcastCreate, PodcastRead, PodcastUpdate
from .rbac_schemas import (
InviteAcceptRequest,
InviteAcceptResponse,
InviteCreate,
InviteInfoResponse,
InviteRead,
InviteUpdate,
MembershipRead,
MembershipReadWithUser,
MembershipUpdate,
PermissionInfo,
PermissionsListResponse,
RoleCreate,
RoleRead,
RoleUpdate,
UserSearchSpaceAccess,
)
from .reports import (
ReportBase,
ReportContentRead,
ReportContentUpdate,
ReportRead,
ReportVersionInfo,
)
from .search_source_connector import (
MCPConnectorCreate,
MCPConnectorRead,
MCPConnectorUpdate,
MCPServerConfig,
SearchSourceConnectorBase,
SearchSourceConnectorCreate,
SearchSourceConnectorRead,
SearchSourceConnectorUpdate,
2025-03-14 18:53:14 -07:00
)
from .search_space import (
SearchSpaceBase,
SearchSpaceCreate,
SearchSpaceRead,
SearchSpaceUpdate,
SearchSpaceWithStats,
)
from .users import UserCreate, UserRead, UserUpdate
2026-03-21 22:13:41 -07:00
from .video_presentations import (
VideoPresentationBase,
VideoPresentationCreate,
VideoPresentationRead,
VideoPresentationUpdate,
)
2025-03-14 18:53:14 -07:00
__all__ = [
2025-12-21 19:33:52 -08:00
# Chat schemas (assistant-ui integration)
"ChatMessage",
# Chunk schemas
"ChunkBase",
"ChunkCreate",
"ChunkRead",
"ChunkUpdate",
2025-12-23 01:16:25 -08:00
"DefaultSystemInstructionsResponse",
2025-12-21 19:33:52 -08:00
# Document schemas
"DocumentBase",
"DocumentRead",
"DocumentStatusBatchResponse",
"DocumentStatusItemRead",
"DocumentStatusSchema",
"DocumentTitleRead",
"DocumentTitleSearchResponse",
"DocumentUpdate",
"DocumentWithChunksRead",
"DocumentsCreate",
2026-01-01 22:56:37 -08:00
# Google Drive schemas
"DriveItem",
"ExtensionDocumentContent",
"ExtensionDocumentMetadata",
"GlobalImageGenConfigRead",
2025-12-23 01:16:25 -08:00
"GlobalNewLLMConfigRead",
"GoogleDriveIndexRequest",
"GoogleDriveIndexingOptions",
2025-12-21 19:33:52 -08:00
# Base schemas
"IDModel",
2026-02-05 16:43:48 -08:00
# Image Generation Config schemas
"ImageGenerationConfigCreate",
"ImageGenerationConfigPublic",
"ImageGenerationConfigRead",
"ImageGenerationConfigUpdate",
# Image Generation schemas
"ImageGenerationCreate",
"ImageGenerationListRead",
"ImageGenerationRead",
2025-12-21 22:26:33 -08:00
# RBAC schemas
"InviteAcceptRequest",
"InviteAcceptResponse",
"InviteCreate",
"InviteInfoResponse",
"InviteRead",
"InviteUpdate",
2025-12-23 01:16:25 -08:00
# LLM Preferences schemas
"LLMPreferencesRead",
"LLMPreferencesUpdate",
2025-12-21 19:33:52 -08:00
# Log schemas
"LogBase",
"LogCreate",
"LogFilter",
"LogRead",
"LogUpdate",
# Auth schemas
"LogoutAllResponse",
"LogoutRequest",
"LogoutResponse",
# Search source connector schemas
"MCPConnectorCreate",
"MCPConnectorRead",
"MCPConnectorUpdate",
"MCPServerConfig",
"MembershipRead",
"MembershipReadWithUser",
"MembershipUpdate",
2025-12-21 22:26:33 -08:00
"NewChatMessageAppend",
"NewChatMessageCreate",
"NewChatMessageRead",
"NewChatRequest",
"NewChatThreadCreate",
"NewChatThreadRead",
"NewChatThreadUpdate",
"NewChatThreadWithMessages",
2025-12-23 01:16:25 -08:00
# NewLLMConfig schemas
"NewLLMConfigCreate",
"NewLLMConfigPublic",
"NewLLMConfigRead",
"NewLLMConfigUpdate",
2025-12-21 22:26:33 -08:00
"PaginatedResponse",
"PermissionInfo",
"PermissionsListResponse",
2025-12-21 22:26:33 -08:00
# Podcast schemas
"PodcastBase",
"PodcastCreate",
"PodcastRead",
"PodcastUpdate",
"RefreshTokenRequest",
"RefreshTokenResponse",
# Report schemas
"ReportBase",
"ReportContentRead",
"ReportContentUpdate",
"ReportRead",
"ReportVersionInfo",
"RoleCreate",
"RoleRead",
"RoleUpdate",
"SearchSourceConnectorBase",
"SearchSourceConnectorCreate",
"SearchSourceConnectorRead",
"SearchSourceConnectorUpdate",
2025-12-21 19:33:52 -08:00
# Search space schemas
"SearchSpaceBase",
"SearchSpaceCreate",
"SearchSpaceRead",
"SearchSpaceUpdate",
"SearchSpaceWithStats",
2025-12-21 22:26:33 -08:00
"ThreadHistoryLoadResponse",
"ThreadListItem",
"ThreadListResponse",
"TimestampModel",
2025-12-21 19:33:52 -08:00
# User schemas
"UserCreate",
"UserRead",
"UserSearchSpaceAccess",
"UserUpdate",
2026-03-21 22:13:41 -07:00
# Video Presentation schemas
"VideoPresentationBase",
"VideoPresentationCreate",
"VideoPresentationRead",
"VideoPresentationUpdate",
]