:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
"""Exported enums for security."""
from enum import StrEnum
class Surface(StrEnum):
"""What a request is trying to do. A rule's scope covers one or more surfaces."""
SIGNUP = "signup"
APP = "app"
AI_GATEWAY = "ai_gateway"
EMAIL_CODE = "email_code"
SIGNUP_RISK = "signup_risk"
class Outcome(StrEnum):
ALLOW = "allow"
BLOCK = "block"
# On EMAIL_CODE the user skips the emailed login code. On SIGNUP_RISK the
# signup skips the WorkOS Radar verdict.
EXEMPT = "exempt"