- Custom Fields (FEAT-001): - CustomField and TaskCustomValue models with formula support - CRUD API for custom field management - Formula engine for calculated fields - Frontend: CustomFieldEditor, CustomFieldInput, ProjectSettings page - Task list API now includes custom_values - KanbanBoard displays custom field values - Gantt View (FEAT-003): - TaskDependency model with FS/SS/FF/SF dependency types - Dependency CRUD API with cycle detection - start_date field added to tasks - GanttChart component with Frappe Gantt integration - Dependency type selector in UI - Calendar View (FEAT-004): - CalendarView component with FullCalendar integration - Date range filtering API for tasks - Drag-and-drop date updates - View mode switching in Tasks page - File Encryption (FEAT-010): - AES-256-GCM encryption service - EncryptionKey model with key rotation support - Admin API for key management - Encrypted upload/download for confidential projects - Migrations: 011 (custom fields), 012 (encryption keys), 013 (task dependencies) - Updated issues.md with completion status 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
47 lines
1.1 KiB
Python
47 lines
1.1 KiB
Python
"""Schemas for encryption key API."""
|
|
from datetime import datetime
|
|
from typing import List, Optional
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class EncryptionKeyResponse(BaseModel):
|
|
"""Response schema for encryption key (without actual key data)."""
|
|
id: str
|
|
algorithm: str
|
|
is_active: bool
|
|
created_at: datetime
|
|
rotated_at: Optional[datetime] = None
|
|
|
|
class Config:
|
|
from_attributes = True
|
|
|
|
|
|
class EncryptionKeyListResponse(BaseModel):
|
|
"""Response schema for list of encryption keys."""
|
|
keys: List[EncryptionKeyResponse]
|
|
total: int
|
|
|
|
|
|
class EncryptionKeyCreateResponse(BaseModel):
|
|
"""Response schema after creating a new encryption key."""
|
|
id: str
|
|
algorithm: str
|
|
is_active: bool
|
|
created_at: datetime
|
|
message: str
|
|
|
|
|
|
class EncryptionKeyRotateResponse(BaseModel):
|
|
"""Response schema after key rotation."""
|
|
new_key_id: str
|
|
old_key_id: Optional[str]
|
|
message: str
|
|
|
|
|
|
class EncryptionStatusResponse(BaseModel):
|
|
"""Response schema for encryption status."""
|
|
encryption_available: bool
|
|
active_key_id: Optional[str]
|
|
total_keys: int
|
|
message: str
|