feat: add network-level kill switch endpoint
This commit is contained in:
@@ -120,6 +120,16 @@ from gatehouse_app.models.security.mfa_policy_compliance import ( # noqa: F401
|
||||
MfaPolicyCompliance,
|
||||
)
|
||||
|
||||
# ── ZeroTier ──────────────────────────────────────────────────────────────
|
||||
from gatehouse_app.models.zerotier import ( # noqa: F401
|
||||
PortalNetwork,
|
||||
Device,
|
||||
NetworkAccessRequest,
|
||||
ActivationSession,
|
||||
ZeroTierMembership,
|
||||
KillSwitchEvent,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
# Base
|
||||
"BaseModel",
|
||||
|
||||
@@ -144,4 +144,6 @@ class NetworkAccessRequest(BaseModel):
|
||||
data = super().to_dict(exclude=exclude)
|
||||
session = self.active_session
|
||||
data["active_session"] = session.to_dict() if session else None
|
||||
data["device_name"] = self.device.display_name if self.device else None
|
||||
data["device_nickname"] = self.device.device_nickname if self.device else None
|
||||
return data
|
||||
|
||||
Reference in New Issue
Block a user