ForcePilot/backend/package/yuxi/channels/adapters/slack/models.py

39 lines
903 B
Python
Raw Normal View History

from __future__ import annotations
from pydantic import BaseModel, ConfigDict
class ResolvedSlackAccount(BaseModel):
account_id: str = "default"
enabled: bool = True
name: str = ""
bot_token: str = ""
app_token: str = ""
user_token: str = ""
bot_token_source: str = "none"
app_token_source: str = "none"
user_token_source: str = "none"
bot_user_id: str = ""
bot_id: str = ""
team: str = ""
team_id: str = ""
dm_policy: str = "allowlist"
group_policy: str = "allowlist"
require_mention: bool = False
allow_from: set[str] = set()
mode: str = "socket"
signing_secret: str = ""
text_chunk_limit: int = 8000
max_media_size_mb: int = 100
thread_history_scope: str = "channel"
thread_inherit_parent: bool = False
thread_require_explicit_mention: bool = False
model_config = ConfigDict(extra="allow")