feat: BreakPilot PWA - Full codebase (clean push without large binaries)
Some checks failed
Tests / Go Tests (push) Has been cancelled
Tests / Python Tests (push) Has been cancelled
Tests / Integration Tests (push) Has been cancelled
Tests / Go Lint (push) Has been cancelled
Tests / Python Lint (push) Has been cancelled
Tests / Security Scan (push) Has been cancelled
Tests / All Checks Passed (push) Has been cancelled
Security Scanning / Secret Scanning (push) Has been cancelled
Security Scanning / Dependency Vulnerability Scan (push) Has been cancelled
Security Scanning / Go Security Scan (push) Has been cancelled
Security Scanning / Python Security Scan (push) Has been cancelled
Security Scanning / Node.js Security Scan (push) Has been cancelled
Security Scanning / Docker Image Security (push) Has been cancelled
Security Scanning / Security Summary (push) Has been cancelled
CI/CD Pipeline / Go Tests (push) Has been cancelled
CI/CD Pipeline / Python Tests (push) Has been cancelled
CI/CD Pipeline / Website Tests (push) Has been cancelled
CI/CD Pipeline / Linting (push) Has been cancelled
CI/CD Pipeline / Security Scan (push) Has been cancelled
CI/CD Pipeline / Docker Build & Push (push) Has been cancelled
CI/CD Pipeline / Integration Tests (push) Has been cancelled
CI/CD Pipeline / Deploy to Staging (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / CI Summary (push) Has been cancelled
ci/woodpecker/manual/build-ci-image Pipeline was successful
ci/woodpecker/manual/main Pipeline failed
Some checks failed
Tests / Go Tests (push) Has been cancelled
Tests / Python Tests (push) Has been cancelled
Tests / Integration Tests (push) Has been cancelled
Tests / Go Lint (push) Has been cancelled
Tests / Python Lint (push) Has been cancelled
Tests / Security Scan (push) Has been cancelled
Tests / All Checks Passed (push) Has been cancelled
Security Scanning / Secret Scanning (push) Has been cancelled
Security Scanning / Dependency Vulnerability Scan (push) Has been cancelled
Security Scanning / Go Security Scan (push) Has been cancelled
Security Scanning / Python Security Scan (push) Has been cancelled
Security Scanning / Node.js Security Scan (push) Has been cancelled
Security Scanning / Docker Image Security (push) Has been cancelled
Security Scanning / Security Summary (push) Has been cancelled
CI/CD Pipeline / Go Tests (push) Has been cancelled
CI/CD Pipeline / Python Tests (push) Has been cancelled
CI/CD Pipeline / Website Tests (push) Has been cancelled
CI/CD Pipeline / Linting (push) Has been cancelled
CI/CD Pipeline / Security Scan (push) Has been cancelled
CI/CD Pipeline / Docker Build & Push (push) Has been cancelled
CI/CD Pipeline / Integration Tests (push) Has been cancelled
CI/CD Pipeline / Deploy to Staging (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / CI Summary (push) Has been cancelled
ci/woodpecker/manual/build-ci-image Pipeline was successful
ci/woodpecker/manual/main Pipeline failed
All services: admin-v2, studio-v2, website, ai-compliance-sdk, consent-service, klausur-service, voice-service, and infrastructure. Large PDFs and compiled binaries excluded via .gitignore.
This commit is contained in:
106
klausur-service/backend/mail/__init__.py
Normal file
106
klausur-service/backend/mail/__init__.py
Normal file
@@ -0,0 +1,106 @@
|
||||
"""
|
||||
Unified Inbox Mail Module
|
||||
|
||||
Multi-Account IMAP aggregation with KI-powered analysis.
|
||||
|
||||
Features:
|
||||
- Multi-account IMAP aggregation
|
||||
- Secure credential storage (Vault/encrypted)
|
||||
- KI-powered email analysis (sender classification, deadline extraction)
|
||||
- Arbeitsvorrat (task management) with deadline tracking
|
||||
- Response suggestions
|
||||
|
||||
Usage:
|
||||
from mail.api import router as mail_router
|
||||
app.include_router(mail_router)
|
||||
|
||||
API Endpoints:
|
||||
POST /api/v1/mail/init - Initialize database tables
|
||||
POST /api/v1/mail/accounts - Create email account
|
||||
GET /api/v1/mail/accounts - List accounts
|
||||
GET /api/v1/mail/inbox - Get unified inbox
|
||||
POST /api/v1/mail/analyze/{id} - Analyze email with AI
|
||||
GET /api/v1/mail/tasks - Get tasks (Arbeitsvorrat)
|
||||
GET /api/v1/mail/tasks/dashboard - Dashboard statistics
|
||||
"""
|
||||
|
||||
from .models import (
|
||||
# Enums
|
||||
AccountStatus,
|
||||
TaskStatus,
|
||||
TaskPriority,
|
||||
EmailCategory,
|
||||
SenderType,
|
||||
# Account models
|
||||
EmailAccountCreate,
|
||||
EmailAccountUpdate,
|
||||
EmailAccount,
|
||||
AccountTestResult,
|
||||
# Email models
|
||||
AggregatedEmail,
|
||||
EmailSearchParams,
|
||||
EmailComposeRequest,
|
||||
EmailSendResult,
|
||||
# Task models
|
||||
TaskCreate,
|
||||
TaskUpdate,
|
||||
InboxTask,
|
||||
TaskDashboardStats,
|
||||
# AI models
|
||||
SenderClassification,
|
||||
DeadlineExtraction,
|
||||
EmailAnalysisResult,
|
||||
ResponseSuggestion,
|
||||
# Stats
|
||||
MailStats,
|
||||
MailHealthCheck,
|
||||
# Templates
|
||||
EmailTemplate,
|
||||
EmailTemplateCreate,
|
||||
)
|
||||
|
||||
from .api import router
|
||||
from .aggregator import get_mail_aggregator
|
||||
from .ai_service import get_ai_email_service
|
||||
from .task_service import get_task_service
|
||||
from .credentials import get_credentials_service
|
||||
from .mail_db import init_mail_tables
|
||||
|
||||
__all__ = [
|
||||
# Router
|
||||
"router",
|
||||
# Services
|
||||
"get_mail_aggregator",
|
||||
"get_ai_email_service",
|
||||
"get_task_service",
|
||||
"get_credentials_service",
|
||||
# Database
|
||||
"init_mail_tables",
|
||||
# Enums
|
||||
"AccountStatus",
|
||||
"TaskStatus",
|
||||
"TaskPriority",
|
||||
"EmailCategory",
|
||||
"SenderType",
|
||||
# Models
|
||||
"EmailAccountCreate",
|
||||
"EmailAccountUpdate",
|
||||
"EmailAccount",
|
||||
"AccountTestResult",
|
||||
"AggregatedEmail",
|
||||
"EmailSearchParams",
|
||||
"EmailComposeRequest",
|
||||
"EmailSendResult",
|
||||
"TaskCreate",
|
||||
"TaskUpdate",
|
||||
"InboxTask",
|
||||
"TaskDashboardStats",
|
||||
"SenderClassification",
|
||||
"DeadlineExtraction",
|
||||
"EmailAnalysisResult",
|
||||
"ResponseSuggestion",
|
||||
"MailStats",
|
||||
"MailHealthCheck",
|
||||
"EmailTemplate",
|
||||
"EmailTemplateCreate",
|
||||
]
|
||||
Reference in New Issue
Block a user