Spaces:
Runtime error
Runtime error
Download src/models/integrations.py from BattleFiven/ai-tester-platform: direct link, hf CLI and curl.
- Browser
- Download file 701 Bytes
-
https://huggingface.co/spaces/BattleFiven/ai-tester-platform/resolve/main/src/models/integrations.py
- Command line
-
hf download hf://spaces/BattleFiven/ai-tester-platform/src/models/integrations.py
-
curl -L -o integrations.py https://huggingface.co/spaces/BattleFiven/ai-tester-platform/resolve/main/src/models/integrations.py
701 Bytes
| """Pydantic models for per-user external integration tokens.""" | |
| from __future__ import annotations | |
| from datetime import datetime | |
| from typing import Optional | |
| from pydantic import BaseModel | |
| class UserIntegrationTokenSummary(BaseModel): | |
| """Public read-only view returned by the API. | |
| Never contains the plaintext token. Use it to render the "Configurato / | |
| Non configurato" state in the profile page. | |
| """ | |
| user_id: str | |
| provider: str | |
| configured: bool = True | |
| last_test_status: Optional[str] = None | |
| last_tested_at: Optional[datetime] = None | |
| last_test_error: Optional[str] = None | |
| created_at: Optional[datetime] = None | |
| updated_at: Optional[datetime] = None | |