develop #2
@@ -276,6 +276,46 @@ class ScoutRunLogResponse(BaseModel):
|
|||||||
completed_at: int | None
|
completed_at: int | None
|
||||||
|
|
||||||
|
|
||||||
|
# ── Cloud Scout CRUD ──────────────────────────────────────────────────
|
||||||
|
|
||||||
|
class CloudScoutCreateRequest(BaseModel):
|
||||||
|
name: str
|
||||||
|
provider: Literal["gmail", "teams", "outlook"]
|
||||||
|
data_types: list[str] = Field(default_factory=list)
|
||||||
|
prompt_template: str = ""
|
||||||
|
schedule_cron: str | None = None # None → server default
|
||||||
|
filter_config: dict | None = None
|
||||||
|
auto_trash_spam: bool = False
|
||||||
|
|
||||||
|
|
||||||
|
class CloudScoutUpdateRequest(BaseModel):
|
||||||
|
name: str | None = None
|
||||||
|
data_types: list[str] | None = None
|
||||||
|
prompt_template: str | None = None
|
||||||
|
schedule_cron: str | None = None
|
||||||
|
filter_config: dict | None = None
|
||||||
|
auto_trash_spam: bool | None = None
|
||||||
|
enabled: bool | None = None
|
||||||
|
|
||||||
|
|
||||||
|
class CloudScoutResponse(BaseModel):
|
||||||
|
id: str
|
||||||
|
user_id: str
|
||||||
|
provider: str
|
||||||
|
name: str
|
||||||
|
data_types: list[str]
|
||||||
|
prompt_template: str
|
||||||
|
schedule_cron: str
|
||||||
|
filter_config: dict | None
|
||||||
|
auto_trash_spam: bool
|
||||||
|
enabled: bool
|
||||||
|
last_run_at: int | None
|
||||||
|
gmail_address: str | None
|
||||||
|
oauth_connected: bool
|
||||||
|
created_at: int
|
||||||
|
updated_at: int
|
||||||
|
|
||||||
|
|
||||||
# ── Chatbot Journey ───────────────────────────────────────────────────
|
# ── Chatbot Journey ───────────────────────────────────────────────────
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user