Initial commit
Some checks failed
CI/CD Pipeline / Code Quality & Linting (push) Has been cancelled
CI/CD Pipeline / Policy Validation (push) Has been cancelled
CI/CD Pipeline / Test Suite (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-coverage) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-extract) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-firm-connectors) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-forms) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-hmrc) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-ingestion) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-kg) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-normalize-map) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-ocr) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-rag-indexer) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-rag-retriever) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-reason) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-rpa) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (ui-review) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (svc-coverage) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (svc-extract) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (svc-kg) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (svc-rag-retriever) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (ui-review) (push) Has been cancelled
CI/CD Pipeline / Generate SBOM (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 / Notifications (push) Has been cancelled
Some checks failed
CI/CD Pipeline / Code Quality & Linting (push) Has been cancelled
CI/CD Pipeline / Policy Validation (push) Has been cancelled
CI/CD Pipeline / Test Suite (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-coverage) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-extract) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-firm-connectors) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-forms) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-hmrc) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-ingestion) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-kg) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-normalize-map) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-ocr) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-rag-indexer) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-rag-retriever) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-reason) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (svc-rpa) (push) Has been cancelled
CI/CD Pipeline / Build Docker Images (ui-review) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (svc-coverage) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (svc-extract) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (svc-kg) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (svc-rag-retriever) (push) Has been cancelled
CI/CD Pipeline / Security Scanning (ui-review) (push) Has been cancelled
CI/CD Pipeline / Generate SBOM (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 / Notifications (push) Has been cancelled
This commit is contained in:
175
libs/schemas/__init__.py
Normal file
175
libs/schemas/__init__.py
Normal file
@@ -0,0 +1,175 @@
|
||||
"""Shared Pydantic models mirroring ontology entities."""
|
||||
|
||||
# Import all enums
|
||||
# Import coverage models
|
||||
from .coverage.core import (
|
||||
CompiledCoveragePolicy,
|
||||
ConflictRules,
|
||||
CoveragePolicy,
|
||||
CrossCheck,
|
||||
Defaults,
|
||||
EvidenceItem,
|
||||
GuidanceRef,
|
||||
Privacy,
|
||||
QuestionTemplates,
|
||||
SchedulePolicy,
|
||||
StatusClassifier,
|
||||
StatusClassifierConfig,
|
||||
TaxYearBoundary,
|
||||
Trigger,
|
||||
Validity,
|
||||
)
|
||||
from .coverage.evaluation import (
|
||||
BlockingItem,
|
||||
Citation,
|
||||
ClarifyContext,
|
||||
ClarifyResponse,
|
||||
CoverageGap,
|
||||
CoverageItem,
|
||||
CoverageReport,
|
||||
FoundEvidence,
|
||||
ScheduleCoverage,
|
||||
UploadOption,
|
||||
)
|
||||
from .coverage.utils import CoverageAudit, PolicyError, PolicyVersion, ValidationResult
|
||||
|
||||
# Import all entities
|
||||
from .entities import (
|
||||
Account,
|
||||
BaseEntity,
|
||||
Calculation,
|
||||
Document,
|
||||
Evidence,
|
||||
ExpenseItem,
|
||||
FormBox,
|
||||
IncomeItem,
|
||||
Party,
|
||||
Payment,
|
||||
PropertyAsset,
|
||||
Rule,
|
||||
TaxpayerProfile,
|
||||
)
|
||||
from .enums import (
|
||||
DocumentKind,
|
||||
ExpenseType,
|
||||
HealthStatus,
|
||||
IncomeType,
|
||||
OverallStatus,
|
||||
PartySubtype,
|
||||
PropertyUsage,
|
||||
Role,
|
||||
Status,
|
||||
TaxpayerType,
|
||||
)
|
||||
|
||||
# Import error models
|
||||
from .errors import ErrorResponse, ValidationError, ValidationErrorResponse
|
||||
|
||||
# Import health models
|
||||
from .health import HealthCheck, ServiceHealth
|
||||
|
||||
# Import request models
|
||||
from .requests import (
|
||||
DocumentUploadRequest,
|
||||
ExtractionRequest,
|
||||
FirmSyncRequest,
|
||||
HMRCSubmissionRequest,
|
||||
RAGSearchRequest,
|
||||
ScheduleComputeRequest,
|
||||
)
|
||||
|
||||
# Import response models
|
||||
from .responses import (
|
||||
DocumentUploadResponse,
|
||||
ExtractionResponse,
|
||||
FirmSyncResponse,
|
||||
HMRCSubmissionResponse,
|
||||
RAGSearchResponse,
|
||||
ScheduleComputeResponse,
|
||||
)
|
||||
|
||||
# Import utility functions
|
||||
from .utils import get_entity_schemas
|
||||
|
||||
__all__ = [
|
||||
# Enums
|
||||
"DocumentKind",
|
||||
"ExpenseType",
|
||||
"HealthStatus",
|
||||
"IncomeType",
|
||||
"OverallStatus",
|
||||
"PartySubtype",
|
||||
"PropertyUsage",
|
||||
"Role",
|
||||
"Status",
|
||||
"TaxpayerType",
|
||||
# Entities
|
||||
"Account",
|
||||
"BaseEntity",
|
||||
"Calculation",
|
||||
"Document",
|
||||
"Evidence",
|
||||
"ExpenseItem",
|
||||
"FormBox",
|
||||
"IncomeItem",
|
||||
"Party",
|
||||
"Payment",
|
||||
"PropertyAsset",
|
||||
"Rule",
|
||||
"TaxpayerProfile",
|
||||
# Errors
|
||||
"ErrorResponse",
|
||||
"ValidationError",
|
||||
"ValidationErrorResponse",
|
||||
# Health
|
||||
"HealthCheck",
|
||||
"ServiceHealth",
|
||||
# Requests
|
||||
"DocumentUploadRequest",
|
||||
"ExtractionRequest",
|
||||
"FirmSyncRequest",
|
||||
"HMRCSubmissionRequest",
|
||||
"RAGSearchRequest",
|
||||
"ScheduleComputeRequest",
|
||||
# Responses
|
||||
"DocumentUploadResponse",
|
||||
"ExtractionResponse",
|
||||
"FirmSyncResponse",
|
||||
"HMRCSubmissionResponse",
|
||||
"RAGSearchResponse",
|
||||
"ScheduleComputeResponse",
|
||||
# Utils
|
||||
"get_entity_schemas",
|
||||
# Coverage core models
|
||||
"Validity",
|
||||
"StatusClassifier",
|
||||
"StatusClassifierConfig",
|
||||
"EvidenceItem",
|
||||
"CrossCheck",
|
||||
"SchedulePolicy",
|
||||
"Trigger",
|
||||
"GuidanceRef",
|
||||
"QuestionTemplates",
|
||||
"ConflictRules",
|
||||
"TaxYearBoundary",
|
||||
"Defaults",
|
||||
"Privacy",
|
||||
"CoveragePolicy",
|
||||
"CompiledCoveragePolicy",
|
||||
# Coverage evaluation models
|
||||
"FoundEvidence",
|
||||
"Citation",
|
||||
"CoverageItem",
|
||||
"ScheduleCoverage",
|
||||
"BlockingItem",
|
||||
"CoverageReport",
|
||||
"CoverageGap",
|
||||
"ClarifyContext",
|
||||
"UploadOption",
|
||||
"ClarifyResponse",
|
||||
# Coverage utility models
|
||||
"PolicyError",
|
||||
"ValidationResult",
|
||||
"PolicyVersion",
|
||||
"CoverageAudit",
|
||||
]
|
||||
Reference in New Issue
Block a user