Coverage for src / lexigram / contracts / tenancy / __init__.py: 0%
8 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-08-15 18:57 +0800
« prev ^ index » next coverage.py v7.13.5, created at 2026-08-15 18:57 +0800
1"""Tenancy contracts — protocols, types, commands, events, and errors."""
3from __future__ import annotations
5from lexigram.contracts.tenancy.commands import CreateTenantCommand, UpdateTenantCommand
6from lexigram.contracts.tenancy.errors import (
7 MigrationError,
8 TenantConfigError,
9 TenantError,
10 TenantInactiveError,
11 TenantNotFoundError,
12 TenantProvisioningError,
13 TenantResolutionError,
14 TenantSlugConflictError,
15 TenantSuspendedError,
16)
17from lexigram.contracts.tenancy.events import (
18 TenantActivated,
19 TenantConfigChanged,
20 TenantDeactivated,
21 TenantProvisioned,
22 TenantSuspended,
23 TenantTierMigrationCheckpoint,
24 TenantTierMigrationFailed,
25 TenantTierMigrationStarted,
26 TenantTierMigrationSucceeded,
27)
28from lexigram.contracts.tenancy.migration import (
29 ISOLATION_TIER_ORDER,
30 TIER_ISOLATION_MAP,
31 CopyResult,
32 MigrationContext,
33 MigrationCopyStrategy,
34 SnapshotResult,
35)
36from lexigram.contracts.tenancy.protocols import (
37 TenantConfigProviderProtocol,
38 TenantIsolationStrategyProtocol,
39 TenantProviderProtocol,
40 TenantResolverProtocol,
41)
42from lexigram.contracts.tenancy.types import (
43 TenantInfo,
44 TenantResolutionContext,
45 TenantStatus,
46)
48__all__ = [
49 "ISOLATION_TIER_ORDER",
50 "TIER_ISOLATION_MAP",
51 "CopyResult",
52 "CreateTenantCommand",
53 "MigrationContext",
54 "MigrationCopyStrategy",
55 "MigrationError",
56 "SnapshotResult",
57 "TenantActivated",
58 "TenantConfigChanged",
59 "TenantConfigChanged",
60 "TenantConfigError",
61 "TenantConfigProviderProtocol",
62 "TenantDeactivated",
63 "TenantError",
64 "TenantInactiveError",
65 "TenantInfo",
66 "TenantIsolationStrategyProtocol",
67 "TenantNotFoundError",
68 "TenantProviderProtocol",
69 "TenantProvisioned",
70 "TenantProvisioningError",
71 "TenantResolutionContext",
72 "TenantResolutionError",
73 "TenantResolverProtocol",
74 "TenantSlugConflictError",
75 "TenantStatus",
76 "TenantSuspended",
77 "TenantSuspendedError",
78 "TenantTierMigrationCheckpoint",
79 "TenantTierMigrationFailed",
80 "TenantTierMigrationStarted",
81 "TenantTierMigrationSucceeded",
82 "UpdateTenantCommand",
83]