from simorgh.apps.modules.registry import CapabilitySpec, FeatureSpec, ModuleManifest, register_module

register_module(
    ModuleManifest(
        name="tenants",
        version=1,
        domain="platform",
        label_key="tenants.module_label",
        description="Tenants — multi-tenant organisation management with onboarding",
        capabilities=(
            CapabilitySpec(slug="management", label_key="tenants.capabilities.management",
                          description="Tenant management", icon="building"),
        ),
        features=(
            FeatureSpec(code="management.tenant_management", label_key="tenants.features.tenant_management", scope="tenant", default_enabled=True, is_always_on=True, is_platform_internal=True, description="Create and manage tenant organisations"),
            FeatureSpec(code="management.tenant_onboarding", label_key="tenants.features.tenant_onboarding", scope="tenant", default_enabled=True, is_platform_internal=True, description="Tenant onboarding wizard with default data seeding"),
            FeatureSpec(code="management.domain_branding", label_key="tenants.features.domain_branding", scope="tenant", description="Custom domain and branding per tenant"),
        ),
    )
)
