{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/retirementlab-app/json-schema/retirementlab-app-business-stats-response-schema.json",
  "title": "BusinessStatsResponse",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/retirementlab-app-openapi.json#/components/schemas/BusinessStatsResponse",
  "properties": {
    "generated_at": {
      "type": "string",
      "title": "Generated At"
    },
    "users": {
      "$ref": "#/$defs/UserMetrics"
    },
    "activation": {
      "$ref": "#/$defs/ActivationMetrics"
    },
    "acquisition": {
      "$ref": "#/$defs/AcquisitionMetrics"
    },
    "engagement": {
      "$ref": "#/$defs/EngagementMetrics"
    },
    "feature_adoption": {
      "$ref": "#/$defs/FeatureAdoptionMetrics"
    },
    "feature_usage": {
      "$ref": "#/$defs/FeatureUsageMetrics"
    },
    "retention": {
      "$ref": "#/$defs/RetentionMetrics"
    },
    "device_mix": {
      "items": {
        "$ref": "#/$defs/DeviceMixEntry"
      },
      "type": "array",
      "title": "Device Mix",
      "default": []
    },
    "geo_distribution": {
      "items": {
        "$ref": "#/$defs/UserGeoCount"
      },
      "type": "array",
      "title": "Geo Distribution",
      "default": []
    },
    "feedback": {
      "$ref": "#/$defs/FeedbackMetrics"
    },
    "monetization": {
      "$ref": "#/$defs/MonetizationMetrics"
    },
    "exploration_depth": {
      "$ref": "#/$defs/ExplorationDepthMetrics"
    },
    "mcp_funnel": {
      "$ref": "#/$defs/McpFunnelMetrics"
    }
  },
  "type": "object",
  "required": [
    "generated_at",
    "users",
    "activation",
    "acquisition",
    "engagement",
    "feature_usage",
    "retention"
  ],
  "$defs": {
    "AcquisitionDailyBySegment": {
      "properties": {
        "date": {
          "type": "string",
          "title": "Date"
        },
        "segments": {
          "additionalProperties": {
            "$ref": "#/$defs/AcquisitionDailyMetrics"
          },
          "type": "object",
          "title": "Segments"
        }
      },
      "type": "object",
      "required": [
        "date",
        "segments"
      ],
      "title": "AcquisitionDailyBySegment"
    },
    "AcquisitionDailyMetrics": {
      "properties": {
        "sessions": {
          "type": "integer",
          "title": "Sessions"
        },
        "activations": {
          "type": "integer",
          "title": "Activations"
        },
        "sign_ups": {
          "type": "integer",
          "title": "Sign Ups"
        }
      },
      "type": "object",
      "required": [
        "sessions",
        "activations",
        "sign_ups"
      ],
      "title": "AcquisitionDailyMetrics"
    },
    "AcquisitionDailyMetricsResponse": {
      "properties": {
        "by_traffic_type": {
          "items": {
            "$ref": "#/$defs/AcquisitionDailyBySegment"
          },
          "type": "array",
          "title": "By Traffic Type"
        },
        "by_source": {
          "items": {
            "$ref": "#/$defs/AcquisitionDailyBySegment"
          },
          "type": "array",
          "title": "By Source"
        },
        "top_sources": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Top Sources"
        }
      },
      "type": "object",
      "required": [
        "by_traffic_type",
        "by_source",
        "top_sources"
      ],
      "title": "AcquisitionDailyMetricsResponse"
    },
    "AcquisitionMetrics": {
      "properties": {
        "sources": {
          "items": {
            "$ref": "#/$defs/AcquisitionSourceMetrics"
          },
          "type": "array",
          "title": "Sources"
        },
        "quality": {
          "$ref": "#/$defs/AcquisitionQualityMetrics"
        },
        "daily": {
          "$ref": "#/$defs/AcquisitionDailyMetricsResponse"
        }
      },
      "type": "object",
      "required": [
        "sources"
      ],
      "title": "AcquisitionMetrics"
    },
    "AcquisitionQualityCohort": {
      "properties": {
        "window_days": {
          "type": "integer",
          "title": "Window Days"
        },
        "cohort_start_at": {
          "type": "string",
          "title": "Cohort Start At"
        },
        "cohort_end_at": {
          "type": "string",
          "title": "Cohort End At"
        },
        "users": {
          "type": "integer",
          "title": "Users"
        },
        "open_window_users": {
          "type": "integer",
          "title": "Open Window Users"
        },
        "campaign_attribution_users": {
          "type": "integer",
          "title": "Campaign Attribution Users"
        },
        "landing_page_attribution_users": {
          "type": "integer",
          "title": "Landing Page Attribution Users"
        },
        "rows_by_dimension": {
          "additionalProperties": {
            "items": {
              "$ref": "#/$defs/AcquisitionQualityRow"
            },
            "type": "array"
          },
          "type": "object",
          "title": "Rows By Dimension"
        }
      },
      "type": "object",
      "required": [
        "window_days",
        "cohort_start_at",
        "cohort_end_at",
        "users",
        "open_window_users",
        "campaign_attribution_users",
        "landing_page_attribution_users",
        "rows_by_dimension"
      ],
      "title": "AcquisitionQualityCohort"
    },
    "AcquisitionQualityMetrics": {
      "properties": {
        "trailing_7d": {
          "$ref": "#/$defs/AcquisitionQualityCohort"
        },
        "trailing_30d": {
          "$ref": "#/$defs/AcquisitionQualityCohort"
        }
      },
      "type": "object",
      "required": [
        "trailing_7d",
        "trailing_30d"
      ],
      "title": "AcquisitionQualityMetrics"
    },
    "AcquisitionQualityRow": {
      "properties": {
        "dimension": {
          "type": "string",
          "title": "Dimension"
        },
        "source": {
          "type": "string",
          "title": "Source"
        },
        "traffic_type": {
          "type": "string",
          "enum": [
            "paid",
            "organic",
            "unknown"
          ],
          "title": "Traffic Type"
        },
        "campaign": {
          "type": "string",
          "title": "Campaign"
        },
        "landing_page": {
          "type": "string",
          "title": "Landing Page"
        },
        "visitors": {
          "type": "integer",
          "title": "Visitors"
        },
        "complete_window_users": {
          "type": "integer",
          "title": "Complete Window Users"
        },
        "open_window_users": {
          "type": "integer",
          "title": "Open Window Users"
        },
        "cta_users": {
          "type": "integer",
          "title": "Cta Users"
        },
        "cta_rate": {
          "type": "number",
          "title": "Cta Rate"
        },
        "first_result_users": {
          "type": "integer",
          "title": "First Result Users"
        },
        "result_rate": {
          "type": "number",
          "title": "Result Rate"
        },
        "meaningful_exploration_users": {
          "type": "integer",
          "title": "Meaningful Exploration Users"
        },
        "meaningful_exploration_rate": {
          "type": "number",
          "title": "Meaningful Exploration Rate"
        },
        "pro_gate_users": {
          "type": "integer",
          "title": "Pro Gate Users"
        },
        "pro_gate_rate": {
          "type": "number",
          "title": "Pro Gate Rate"
        },
        "signup_users": {
          "type": "integer",
          "title": "Signup Users"
        },
        "signup_rate": {
          "type": "number",
          "title": "Signup Rate"
        },
        "median_time_to_first_result_hours": {
          "type": "number",
          "title": "Median Time To First Result Hours"
        }
      },
      "type": "object",
      "required": [
        "dimension",
        "source",
        "traffic_type",
        "visitors",
        "complete_window_users",
        "open_window_users",
        "cta_users",
        "cta_rate",
        "first_result_users",
        "result_rate",
        "meaningful_exploration_users",
        "meaningful_exploration_rate",
        "pro_gate_users",
        "pro_gate_rate",
        "signup_users",
        "signup_rate"
      ],
      "title": "AcquisitionQualityRow"
    },
    "AcquisitionSourceMetrics": {
      "properties": {
        "source": {
          "type": "string",
          "title": "Source"
        },
        "traffic_type": {
          "type": "string",
          "enum": [
            "paid",
            "organic",
            "unknown"
          ],
          "title": "Traffic Type"
        },
        "sessions": {
          "type": "integer",
          "title": "Sessions"
        },
        "activations": {
          "type": "integer",
          "title": "Activations"
        },
        "sign_ups": {
          "type": "integer",
          "title": "Sign Ups"
        },
        "activation_rate": {
          "type": "number",
          "title": "Activation Rate"
        }
      },
      "type": "object",
      "required": [
        "source",
        "traffic_type",
        "sessions",
        "activations",
        "sign_ups",
        "activation_rate"
      ],
      "title": "AcquisitionSourceMetrics"
    },
    "ActivationFunnel": {
      "properties": {
        "visited": {
          "type": "integer",
          "title": "Visited"
        },
        "created_config": {
          "type": "integer",
          "title": "Created Config"
        },
        "first_successful_run": {
          "type": "integer",
          "title": "First Successful Run"
        },
        "signed_up": {
          "type": "integer",
          "title": "Signed Up"
        }
      },
      "type": "object",
      "required": [
        "visited",
        "created_config",
        "first_successful_run",
        "signed_up"
      ],
      "title": "ActivationFunnel"
    },
    "ActivationMetrics": {
      "properties": {
        "activation_rate_30d": {
          "type": "number",
          "title": "Activation Rate 30D"
        },
        "median_time_to_first_value_hours": {
          "type": "number",
          "title": "Median Time To First Value Hours"
        },
        "signup_conversion_rate_30d": {
          "type": "number",
          "title": "Signup Conversion Rate 30D"
        },
        "funnel": {
          "$ref": "#/$defs/ActivationFunnel"
        }
      },
      "type": "object",
      "required": [
        "activation_rate_30d",
        "signup_conversion_rate_30d",
        "funnel"
      ],
      "title": "ActivationMetrics"
    },
    "ChatGPTPluginGrowthCounts": {
      "properties": {
        "new_connections": {
          "type": "integer",
          "title": "New Connections"
        },
        "new_account_connections": {
          "type": "integer",
          "title": "New Account Connections"
        },
        "signups_during_oauth": {
          "type": "integer",
          "title": "Signups During Oauth"
        },
        "called_tool": {
          "type": "integer",
          "title": "Called Tool"
        },
        "no_tool_after_24h": {
          "type": "integer",
          "title": "No Tool After 24H"
        },
        "got_result": {
          "type": "integer",
          "title": "Got Result"
        },
        "eligible_24h_connections": {
          "type": "integer",
          "title": "Eligible 24H Connections"
        },
        "activated_24h_connections": {
          "type": "integer",
          "title": "Activated 24H Connections"
        },
        "opened_web_link": {
          "type": "integer",
          "title": "Opened Web Link"
        },
        "paid": {
          "type": "integer",
          "title": "Paid"
        }
      },
      "type": "object",
      "required": [
        "new_connections",
        "new_account_connections",
        "signups_during_oauth",
        "called_tool",
        "no_tool_after_24h",
        "got_result",
        "eligible_24h_connections",
        "activated_24h_connections",
        "opened_web_link",
        "paid"
      ],
      "title": "ChatGPTPluginGrowthCounts"
    },
    "ChatGPTPluginGrowthWindows": {
      "properties": {
        "last_24h": {
          "$ref": "#/$defs/ChatGPTPluginGrowthCounts"
        },
        "last_7d": {
          "$ref": "#/$defs/ChatGPTPluginGrowthCounts"
        },
        "last_30d": {
          "$ref": "#/$defs/ChatGPTPluginGrowthCounts"
        }
      },
      "type": "object",
      "required": [
        "last_24h",
        "last_7d",
        "last_30d"
      ],
      "title": "ChatGPTPluginGrowthWindows"
    },
    "CountryCount": {
      "properties": {
        "country": {
          "type": "string",
          "title": "Country"
        },
        "config_count": {
          "type": "integer",
          "title": "Config Count"
        }
      },
      "type": "object",
      "required": [
        "country",
        "config_count"
      ],
      "title": "CountryCount"
    },
    "DailySignup": {
      "properties": {
        "date": {
          "type": "string",
          "title": "Date"
        },
        "count": {
          "type": "integer",
          "title": "Count"
        },
        "activated": {
          "type": "integer",
          "title": "Activated"
        }
      },
      "type": "object",
      "required": [
        "date",
        "count",
        "activated"
      ],
      "title": "DailySignup"
    },
    "DeviceMixEntry": {
      "properties": {
        "device_type": {
          "type": "string",
          "title": "Device Type"
        },
        "count": {
          "type": "integer",
          "title": "Count"
        }
      },
      "type": "object",
      "required": [
        "device_type",
        "count"
      ],
      "title": "DeviceMixEntry"
    },
    "EngagementHistogramBucket": {
      "properties": {
        "bucket": {
          "type": "string",
          "title": "Bucket"
        },
        "user_count": {
          "type": "integer",
          "title": "User Count"
        }
      },
      "type": "object",
      "required": [
        "bucket",
        "user_count"
      ],
      "title": "EngagementHistogramBucket"
    },
    "EngagementMetrics": {
      "properties": {
        "runs_per_user_7d": {
          "items": {
            "$ref": "#/$defs/UserEngagement"
          },
          "type": "array",
          "title": "Runs Per User 7D"
        },
        "configs_per_user": {
          "items": {
            "$ref": "#/$defs/UserConfigCount"
          },
          "type": "array",
          "title": "Configs Per User"
        },
        "runs_histogram": {
          "items": {
            "$ref": "#/$defs/EngagementHistogramBucket"
          },
          "type": "array",
          "title": "Runs Histogram"
        },
        "configs_histogram": {
          "items": {
            "$ref": "#/$defs/EngagementHistogramBucket"
          },
          "type": "array",
          "title": "Configs Histogram"
        },
        "avg_runs_per_active_user_7d": {
          "type": "number",
          "title": "Avg Runs Per Active User 7D"
        },
        "repeat_run_rate_7d": {
          "type": "number",
          "title": "Repeat Run Rate 7D"
        },
        "edit_rerun_rate_7d": {
          "type": "number",
          "title": "Edit Rerun Rate 7D"
        }
      },
      "type": "object",
      "required": [
        "runs_per_user_7d",
        "configs_per_user",
        "runs_histogram",
        "configs_histogram",
        "avg_runs_per_active_user_7d",
        "repeat_run_rate_7d",
        "edit_rerun_rate_7d"
      ],
      "title": "EngagementMetrics"
    },
    "ExplorationDepthCohort": {
      "properties": {
        "window_days": {
          "type": "integer",
          "title": "Window Days"
        },
        "cohort_start_at": {
          "type": "string",
          "title": "Cohort Start At"
        },
        "cohort_end_at": {
          "type": "string",
          "title": "Cohort End At"
        },
        "users": {
          "type": "integer",
          "title": "Users"
        },
        "complete_window_users": {
          "type": "integer",
          "title": "Complete Window Users"
        },
        "open_window_users": {
          "type": "integer",
          "title": "Open Window Users"
        },
        "journey_stages": {
          "additionalProperties": {
            "type": "integer"
          },
          "type": "object",
          "title": "Journey Stages"
        },
        "exploration_buckets": {
          "additionalProperties": {
            "type": "integer"
          },
          "type": "object",
          "title": "Exploration Buckets"
        },
        "median_time_to_first_result_hours": {
          "type": "number",
          "title": "Median Time To First Result Hours"
        },
        "median_active_first_session_duration_minutes": {
          "type": "number",
          "title": "Median Active First Session Duration Minutes"
        },
        "first_result_users": {
          "type": "integer",
          "title": "First Result Users"
        },
        "meaningful_exploration_users": {
          "type": "integer",
          "title": "Meaningful Exploration Users"
        },
        "meaningful_exploration_rate": {
          "type": "number",
          "title": "Meaningful Exploration Rate"
        },
        "top_depth_drivers": {
          "items": {
            "$ref": "#/$defs/ExplorationDepthDriver"
          },
          "type": "array",
          "title": "Top Depth Drivers"
        },
        "segments": {
          "additionalProperties": {
            "items": {
              "$ref": "#/$defs/ExplorationDepthSegment"
            },
            "type": "array"
          },
          "type": "object",
          "title": "Segments"
        }
      },
      "type": "object",
      "required": [
        "window_days",
        "cohort_start_at",
        "cohort_end_at",
        "users",
        "complete_window_users",
        "open_window_users",
        "journey_stages",
        "exploration_buckets",
        "first_result_users",
        "meaningful_exploration_users",
        "meaningful_exploration_rate",
        "top_depth_drivers",
        "segments"
      ],
      "title": "ExplorationDepthCohort"
    },
    "ExplorationDepthDriver": {
      "properties": {
        "driver": {
          "type": "string",
          "title": "Driver"
        },
        "users": {
          "type": "integer",
          "title": "Users"
        }
      },
      "type": "object",
      "required": [
        "driver",
        "users"
      ],
      "title": "ExplorationDepthDriver"
    },
    "ExplorationDepthMetrics": {
      "properties": {
        "trailing_7d": {
          "$ref": "#/$defs/ExplorationDepthCohort"
        },
        "trailing_30d": {
          "$ref": "#/$defs/ExplorationDepthCohort"
        }
      },
      "type": "object",
      "required": [
        "trailing_7d",
        "trailing_30d"
      ],
      "title": "ExplorationDepthMetrics"
    },
    "ExplorationDepthSegment": {
      "properties": {
        "segment": {
          "type": "string",
          "title": "Segment"
        },
        "users": {
          "type": "integer",
          "title": "Users"
        },
        "complete_window_users": {
          "type": "integer",
          "title": "Complete Window Users"
        },
        "open_window_users": {
          "type": "integer",
          "title": "Open Window Users"
        },
        "journey_stages": {
          "additionalProperties": {
            "type": "integer"
          },
          "type": "object",
          "title": "Journey Stages"
        },
        "exploration_buckets": {
          "additionalProperties": {
            "type": "integer"
          },
          "type": "object",
          "title": "Exploration Buckets"
        },
        "first_result_users": {
          "type": "integer",
          "title": "First Result Users"
        },
        "meaningful_exploration_users": {
          "type": "integer",
          "title": "Meaningful Exploration Users"
        },
        "meaningful_exploration_rate": {
          "type": "number",
          "title": "Meaningful Exploration Rate"
        }
      },
      "type": "object",
      "required": [
        "segment",
        "users",
        "complete_window_users",
        "open_window_users",
        "journey_stages",
        "exploration_buckets",
        "first_result_users",
        "meaningful_exploration_users",
        "meaningful_exploration_rate"
      ],
      "title": "ExplorationDepthSegment"
    },
    "FeatureAdoptionEntry": {
      "properties": {
        "feature": {
          "type": "string",
          "title": "Feature"
        },
        "anonymous": {
          "type": "integer",
          "title": "Anonymous",
          "default": 0
        },
        "free": {
          "type": "integer",
          "title": "Free",
          "default": 0
        },
        "pro": {
          "type": "integer",
          "title": "Pro",
          "default": 0
        },
        "total": {
          "type": "integer",
          "title": "Total",
          "default": 0
        }
      },
      "type": "object",
      "required": [
        "feature"
      ],
      "title": "FeatureAdoptionEntry"
    },
    "FeatureAdoptionMetrics": {
      "properties": {
        "entries_7d": {
          "items": {
            "$ref": "#/$defs/FeatureAdoptionEntry"
          },
          "type": "array",
          "title": "Entries 7D"
        },
        "entries_30d": {
          "items": {
            "$ref": "#/$defs/FeatureAdoptionEntry"
          },
          "type": "array",
          "title": "Entries 30D"
        }
      },
      "type": "object",
      "required": [
        "entries_7d",
        "entries_30d"
      ],
      "title": "FeatureAdoptionMetrics"
    },
    "FeatureUsageMetrics": {
      "properties": {
        "run_type_breakdown": {
          "additionalProperties": {
            "type": "integer"
          },
          "type": "object",
          "title": "Run Type Breakdown"
        },
        "country_distribution": {
          "items": {
            "$ref": "#/$defs/CountryCount"
          },
          "type": "array",
          "title": "Country Distribution"
        },
        "sweep_variable_distribution": {
          "items": {
            "$ref": "#/$defs/SweepVariableCount"
          },
          "type": "array",
          "title": "Sweep Variable Distribution"
        }
      },
      "type": "object",
      "required": [
        "run_type_breakdown",
        "country_distribution",
        "sweep_variable_distribution"
      ],
      "title": "FeatureUsageMetrics"
    },
    "FeedbackEntry": {
      "properties": {
        "text": {
          "type": "string",
          "title": "Text"
        },
        "email": {
          "type": "string",
          "title": "Email"
        },
        "page": {
          "type": "string",
          "title": "Page"
        },
        "user_type": {
          "type": "string",
          "title": "User Type"
        },
        "submitted_at": {
          "type": "string",
          "title": "Submitted At"
        }
      },
      "type": "object",
      "required": [
        "text",
        "user_type",
        "submitted_at"
      ],
      "title": "FeedbackEntry"
    },
    "FeedbackMetrics": {
      "properties": {
        "recent_submissions": {
          "items": {
            "$ref": "#/$defs/FeedbackEntry"
          },
          "type": "array",
          "title": "Recent Submissions"
        }
      },
      "type": "object",
      "required": [
        "recent_submissions"
      ],
      "title": "FeedbackMetrics"
    },
    "GateBreakdownRow": {
      "properties": {
        "key": {
          "type": "string",
          "title": "Key"
        },
        "scope": {
          "type": "string",
          "title": "Scope"
        },
        "origin": {
          "type": "string",
          "title": "Origin"
        },
        "impression_users": {
          "type": "integer",
          "title": "Impression Users"
        },
        "intent_users": {
          "type": "integer",
          "title": "Intent Users"
        },
        "blocked_users": {
          "type": "integer",
          "title": "Blocked Users"
        },
        "attempt_users": {
          "type": "integer",
          "title": "Attempt Users"
        }
      },
      "type": "object",
      "required": [
        "key",
        "scope",
        "impression_users",
        "intent_users",
        "blocked_users",
        "attempt_users"
      ],
      "title": "GateBreakdownRow",
      "description": "Gate counts for one group of a breakdown dimension.\n\n``scope`` is ``feature`` for the feature dimension; the surface dimension\nuses ``client`` for displayed surfaces and ``server`` for blocked events,\nwhich carry an action (and optional origin) instead of a surface."
    },
    "GateBreakdowns": {
      "properties": {
        "feature": {
          "items": {
            "$ref": "#/$defs/GateBreakdownRow"
          },
          "type": "array",
          "title": "Feature"
        },
        "surface": {
          "items": {
            "$ref": "#/$defs/GateBreakdownRow"
          },
          "type": "array",
          "title": "Surface"
        }
      },
      "type": "object",
      "required": [
        "feature",
        "surface"
      ],
      "title": "GateBreakdowns"
    },
    "GateFunnel": {
      "properties": {
        "window_days": {
          "type": "integer",
          "title": "Window Days"
        },
        "window_start_at": {
          "type": "string",
          "title": "Window Start At"
        },
        "window_end_at": {
          "type": "string",
          "title": "Window End At"
        },
        "cohort_users": {
          "type": "integer",
          "title": "Cohort Users"
        },
        "cohort_label": {
          "type": "string",
          "title": "Cohort Label"
        },
        "cohort_description": {
          "type": "string",
          "title": "Cohort Description"
        },
        "stages": {
          "items": {
            "$ref": "#/$defs/GateFunnelStage"
          },
          "type": "array",
          "title": "Stages"
        }
      },
      "type": "object",
      "required": [
        "window_days",
        "window_start_at",
        "window_end_at",
        "cohort_users",
        "cohort_label",
        "cohort_description",
        "stages"
      ],
      "title": "GateFunnel"
    },
    "GateFunnelStage": {
      "properties": {
        "stage": {
          "type": "string",
          "title": "Stage"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "description": {
          "type": "string",
          "title": "Description"
        },
        "users": {
          "type": "integer",
          "title": "Users"
        },
        "denominator_stage": {
          "type": "string",
          "title": "Denominator Stage"
        },
        "denominator_label": {
          "type": "string",
          "title": "Denominator Label"
        },
        "denominator_users": {
          "type": "integer",
          "title": "Denominator Users"
        },
        "converted_users": {
          "type": "integer",
          "title": "Converted Users"
        },
        "rate": {
          "type": "number",
          "title": "Rate"
        }
      },
      "type": "object",
      "required": [
        "stage",
        "label",
        "description",
        "users",
        "denominator_label",
        "denominator_users",
        "converted_users",
        "rate"
      ],
      "title": "GateFunnelStage",
      "description": "One ordered Pro-gate stage with the denominator its rate is taken against.\n\n``users`` is every cohort user who reached the stage; ``converted_users`` is\nthe subset of them who also reached the stage the rate is measured against.\nThe two differ because the stages are not nested — the server can block a\nvisitor who never triggered a client gate — so ``rate`` is always\n``converted_users / denominator_users`` and never exceeds 100%."
    },
    "GatedFeature": {
      "properties": {
        "feature": {
          "type": "string",
          "title": "Feature"
        },
        "users": {
          "type": "integer",
          "title": "Users"
        }
      },
      "type": "object",
      "required": [
        "feature",
        "users"
      ],
      "title": "GatedFeature"
    },
    "LegacyGateSignal": {
      "properties": {
        "event_name": {
          "type": "string",
          "title": "Event Name"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "users": {
          "type": "integer",
          "title": "Users"
        },
        "events": {
          "type": "integer",
          "title": "Events"
        },
        "first_seen_at": {
          "type": "string",
          "title": "First Seen At"
        },
        "last_seen_at": {
          "type": "string",
          "title": "Last Seen At"
        },
        "contract_cutover_at": {
          "type": "string",
          "title": "Contract Cutover At"
        },
        "window_contract_period": {
          "type": "string",
          "enum": [
            "undeclared",
            "pre_cutover",
            "crosses_cutover",
            "post_cutover"
          ],
          "title": "Window Contract Period"
        }
      },
      "type": "object",
      "required": [
        "event_name",
        "label",
        "users",
        "events",
        "window_contract_period"
      ],
      "title": "LegacyGateSignal",
      "description": "Pre-cutover ``pro_gate_hit`` rows, reported as their own series."
    },
    "McpActiveUserWindows": {
      "properties": {
        "last_24h": {
          "type": "integer",
          "title": "Last 24H"
        },
        "last_7d": {
          "type": "integer",
          "title": "Last 7D"
        },
        "last_30d": {
          "type": "integer",
          "title": "Last 30D"
        }
      },
      "type": "object",
      "required": [
        "last_24h",
        "last_7d",
        "last_30d"
      ],
      "title": "McpActiveUserWindows",
      "description": "Distinct non-test MCP users in rolling activity windows."
    },
    "McpFunnelMetrics": {
      "properties": {
        "tool_calls_by_tier": {
          "additionalProperties": {
            "type": "integer"
          },
          "type": "object",
          "title": "Tool Calls By Tier"
        },
        "active_users": {
          "$ref": "#/$defs/McpActiveUserWindows"
        },
        "active_users_by_auth": {
          "additionalProperties": {
            "$ref": "#/$defs/McpActiveUserWindows"
          },
          "type": "object",
          "title": "Active Users By Auth"
        },
        "share_opens": {
          "type": "integer",
          "title": "Share Opens"
        },
        "signups": {
          "type": "integer",
          "title": "Signups"
        },
        "chatgpt_plugin_growth": {
          "$ref": "#/$defs/ChatGPTPluginGrowthWindows"
        },
        "checkout_starts": {
          "type": "integer",
          "title": "Checkout Starts"
        },
        "paid_conversions": {
          "type": "integer",
          "title": "Paid Conversions"
        },
        "measurement_availability": {
          "type": "string",
          "enum": [
            "available",
            "not_enabled",
            "invalid_configuration"
          ],
          "title": "Measurement Availability"
        },
        "measurement_cutover_at": {
          "type": "string",
          "title": "Measurement Cutover At"
        },
        "surface_windows": {
          "items": {
            "$ref": "#/$defs/McpSurfaceMetrics"
          },
          "type": "array",
          "title": "Surface Windows"
        },
        "recipient_windows": {
          "items": {
            "$ref": "#/$defs/McpRecipientWindow"
          },
          "type": "array",
          "title": "Recipient Windows"
        }
      },
      "type": "object",
      "required": [
        "tool_calls_by_tier",
        "active_users",
        "active_users_by_auth",
        "share_opens",
        "signups",
        "chatgpt_plugin_growth",
        "checkout_starts",
        "paid_conversions",
        "measurement_availability",
        "surface_windows",
        "recipient_windows"
      ],
      "title": "McpFunnelMetrics",
      "description": "MCP-originated funnel counts — see storage.repository.get_mcp_funnel_metrics."
    },
    "McpRecipientWindow": {
      "properties": {
        "window": {
          "type": "string",
          "enum": [
            "last_24h",
            "last_7d"
          ],
          "title": "Window"
        },
        "share_opens": {
          "type": "integer",
          "title": "Share Opens"
        },
        "cta_landings": {
          "type": "integer",
          "title": "Cta Landings"
        },
        "scenario_starts": {
          "type": "integer",
          "title": "Scenario Starts"
        },
        "signups": {
          "type": "integer",
          "title": "Signups"
        },
        "checkout_starts": {
          "type": "integer",
          "title": "Checkout Starts"
        },
        "paid_conversions": {
          "type": "integer",
          "title": "Paid Conversions"
        }
      },
      "type": "object",
      "required": [
        "window",
        "share_opens",
        "cta_landings",
        "scenario_starts",
        "signups",
        "checkout_starts",
        "paid_conversions"
      ],
      "title": "McpRecipientWindow"
    },
    "McpSurfaceMetrics": {
      "properties": {
        "surface": {
          "type": "string",
          "enum": [
            "run_result",
            "funnel_attribution",
            "run_export",
            "share_link"
          ],
          "title": "Surface"
        },
        "windows": {
          "items": {
            "$ref": "#/$defs/McpSurfaceWindow"
          },
          "type": "array",
          "title": "Windows"
        }
      },
      "type": "object",
      "required": [
        "surface",
        "windows"
      ],
      "title": "McpSurfaceMetrics"
    },
    "McpSurfaceWindow": {
      "properties": {
        "window": {
          "type": "string",
          "enum": [
            "last_24h",
            "last_7d"
          ],
          "title": "Window"
        },
        "emissions": {
          "type": "integer",
          "title": "Emissions"
        },
        "opens": {
          "type": "integer",
          "title": "Opens"
        },
        "emission_to_open_proxy_ratio": {
          "type": "number",
          "title": "Emission To Open Proxy Ratio"
        }
      },
      "type": "object",
      "required": [
        "window",
        "emissions",
        "opens"
      ],
      "title": "McpSurfaceWindow"
    },
    "MonetizationDepthSlice": {
      "properties": {
        "bucket": {
          "type": "string",
          "title": "Bucket"
        },
        "users": {
          "type": "integer",
          "title": "Users"
        },
        "complete_window_users": {
          "type": "integer",
          "title": "Complete Window Users"
        },
        "open_window_users": {
          "type": "integer",
          "title": "Open Window Users"
        },
        "pro_gate_users": {
          "type": "integer",
          "title": "Pro Gate Users"
        },
        "pro_gate_rate": {
          "type": "number",
          "title": "Pro Gate Rate"
        },
        "upgrade_click_users": {
          "type": "integer",
          "title": "Upgrade Click Users"
        },
        "upgrade_click_rate": {
          "type": "number",
          "title": "Upgrade Click Rate"
        },
        "signup_users": {
          "type": "integer",
          "title": "Signup Users"
        },
        "signup_rate": {
          "type": "number",
          "title": "Signup Rate"
        }
      },
      "type": "object",
      "required": [
        "bucket",
        "users",
        "complete_window_users",
        "open_window_users",
        "pro_gate_users",
        "pro_gate_rate",
        "upgrade_click_users",
        "upgrade_click_rate",
        "signup_users",
        "signup_rate"
      ],
      "title": "MonetizationDepthSlice"
    },
    "MonetizationDepthSliceMetrics": {
      "properties": {
        "cohort_window_days": {
          "type": "integer",
          "title": "Cohort Window Days"
        },
        "cohort_start_at": {
          "type": "string",
          "title": "Cohort Start At"
        },
        "cohort_end_at": {
          "type": "string",
          "title": "Cohort End At"
        },
        "slices": {
          "items": {
            "$ref": "#/$defs/MonetizationDepthSlice"
          },
          "type": "array",
          "title": "Slices"
        }
      },
      "type": "object",
      "required": [
        "cohort_window_days",
        "cohort_start_at",
        "cohort_end_at",
        "slices"
      ],
      "title": "MonetizationDepthSliceMetrics"
    },
    "MonetizationMetrics": {
      "properties": {
        "gate_funnel": {
          "$ref": "#/$defs/GateFunnel"
        },
        "most_seen_features": {
          "items": {
            "$ref": "#/$defs/GatedFeature"
          },
          "type": "array",
          "title": "Most Seen Features"
        },
        "most_attempted_features": {
          "items": {
            "$ref": "#/$defs/GatedFeature"
          },
          "type": "array",
          "title": "Most Attempted Features"
        },
        "gate_breakdowns": {
          "$ref": "#/$defs/GateBreakdowns"
        },
        "legacy_gate_signal": {
          "$ref": "#/$defs/LegacyGateSignal"
        },
        "subscriber_health": {
          "$ref": "#/$defs/SubscriberHealth"
        },
        "depth_slices": {
          "$ref": "#/$defs/MonetizationDepthSliceMetrics"
        }
      },
      "type": "object",
      "required": [
        "gate_funnel",
        "most_seen_features",
        "most_attempted_features",
        "gate_breakdowns",
        "legacy_gate_signal",
        "subscriber_health"
      ],
      "title": "MonetizationMetrics"
    },
    "RetentionDepthSlice": {
      "properties": {
        "bucket": {
          "type": "string",
          "title": "Bucket"
        },
        "users": {
          "type": "integer",
          "title": "Users"
        },
        "complete_window_users": {
          "type": "integer",
          "title": "Complete Window Users"
        },
        "open_window_users": {
          "type": "integer",
          "title": "Open Window Users"
        },
        "d1_eligible": {
          "type": "integer",
          "title": "D1 Eligible"
        },
        "d1_returned": {
          "type": "integer",
          "title": "D1 Returned"
        },
        "d1_pct": {
          "type": "number",
          "title": "D1 Pct"
        },
        "d7_eligible": {
          "type": "integer",
          "title": "D7 Eligible"
        },
        "d7_returned": {
          "type": "integer",
          "title": "D7 Returned"
        },
        "d7_pct": {
          "type": "number",
          "title": "D7 Pct"
        },
        "converted_users": {
          "type": "integer",
          "title": "Converted Users",
          "default": 0
        },
        "conversion_rate": {
          "type": "number",
          "title": "Conversion Rate",
          "default": 0.0
        },
        "d1_returned_or_converted_pct": {
          "type": "number",
          "title": "D1 Returned Or Converted Pct",
          "default": 0.0
        },
        "d7_returned_or_converted_pct": {
          "type": "number",
          "title": "D7 Returned Or Converted Pct",
          "default": 0.0
        }
      },
      "type": "object",
      "required": [
        "bucket",
        "users",
        "complete_window_users",
        "open_window_users",
        "d1_eligible",
        "d1_returned",
        "d1_pct",
        "d7_eligible",
        "d7_returned",
        "d7_pct"
      ],
      "title": "RetentionDepthSlice"
    },
    "RetentionDepthSliceMetrics": {
      "properties": {
        "cohort_window_days": {
          "type": "integer",
          "title": "Cohort Window Days"
        },
        "cohort_start_at": {
          "type": "string",
          "title": "Cohort Start At"
        },
        "cohort_end_at": {
          "type": "string",
          "title": "Cohort End At"
        },
        "slices": {
          "items": {
            "$ref": "#/$defs/RetentionDepthSlice"
          },
          "type": "array",
          "title": "Slices"
        },
        "anonymous_slices": {
          "items": {
            "$ref": "#/$defs/RetentionDepthSlice"
          },
          "type": "array",
          "title": "Anonymous Slices"
        },
        "anonymous_conversion_rate": {
          "type": "number",
          "title": "Anonymous Conversion Rate",
          "default": 0.0
        }
      },
      "type": "object",
      "required": [
        "cohort_window_days",
        "cohort_start_at",
        "cohort_end_at",
        "slices"
      ],
      "title": "RetentionDepthSliceMetrics"
    },
    "RetentionMetrics": {
      "properties": {
        "weekly_cohorts": {
          "items": {
            "$ref": "#/$defs/WeeklyCohort"
          },
          "type": "array",
          "title": "Weekly Cohorts"
        },
        "return_rates": {
          "$ref": "#/$defs/ReturnRateMetrics"
        },
        "depth_slices": {
          "$ref": "#/$defs/RetentionDepthSliceMetrics"
        }
      },
      "type": "object",
      "required": [
        "weekly_cohorts"
      ],
      "title": "RetentionMetrics"
    },
    "ReturnRateMetrics": {
      "properties": {
        "d1_eligible": {
          "type": "integer",
          "title": "D1 Eligible"
        },
        "d1_returned": {
          "type": "integer",
          "title": "D1 Returned"
        },
        "d1_pct": {
          "type": "number",
          "title": "D1 Pct"
        },
        "d7_eligible": {
          "type": "integer",
          "title": "D7 Eligible"
        },
        "d7_returned": {
          "type": "integer",
          "title": "D7 Returned"
        },
        "d7_pct": {
          "type": "number",
          "title": "D7 Pct"
        },
        "d14_eligible": {
          "type": "integer",
          "title": "D14 Eligible"
        },
        "d14_returned": {
          "type": "integer",
          "title": "D14 Returned"
        },
        "d14_pct": {
          "type": "number",
          "title": "D14 Pct"
        }
      },
      "type": "object",
      "required": [
        "d1_eligible",
        "d1_returned",
        "d1_pct",
        "d7_eligible",
        "d7_returned",
        "d7_pct",
        "d14_eligible",
        "d14_returned",
        "d14_pct"
      ],
      "title": "ReturnRateMetrics"
    },
    "SimulationsByTierDay": {
      "properties": {
        "date": {
          "type": "string",
          "title": "Date"
        },
        "anonymous": {
          "type": "integer",
          "title": "Anonymous"
        },
        "free": {
          "type": "integer",
          "title": "Free"
        },
        "pro": {
          "type": "integer",
          "title": "Pro"
        }
      },
      "type": "object",
      "required": [
        "date",
        "anonymous",
        "free",
        "pro"
      ],
      "title": "SimulationsByTierDay"
    },
    "SubscriberHealth": {
      "properties": {
        "active_subscribers": {
          "type": "integer",
          "title": "Active Subscribers"
        },
        "monthly_subscribers": {
          "type": "integer",
          "title": "Monthly Subscribers"
        },
        "annual_subscribers": {
          "type": "integer",
          "title": "Annual Subscribers"
        },
        "new_subscribers_30d": {
          "type": "integer",
          "title": "New Subscribers 30D"
        },
        "churned_30d": {
          "type": "integer",
          "title": "Churned 30D"
        },
        "mrr": {
          "type": "number",
          "title": "Mrr"
        },
        "arr": {
          "type": "number",
          "title": "Arr"
        },
        "active_passes": {
          "type": "integer",
          "title": "Active Passes"
        },
        "pass_revenue_30d": {
          "type": "number",
          "title": "Pass Revenue 30D"
        }
      },
      "type": "object",
      "required": [
        "active_subscribers",
        "monthly_subscribers",
        "annual_subscribers",
        "new_subscribers_30d",
        "churned_30d",
        "mrr",
        "arr",
        "active_passes",
        "pass_revenue_30d"
      ],
      "title": "SubscriberHealth"
    },
    "SweepVariableCount": {
      "properties": {
        "variable": {
          "type": "string",
          "title": "Variable"
        },
        "count": {
          "type": "integer",
          "title": "Count"
        }
      },
      "type": "object",
      "required": [
        "variable",
        "count"
      ],
      "title": "SweepVariableCount"
    },
    "UserConfigCount": {
      "properties": {
        "user_display_name": {
          "type": "string",
          "title": "User Display Name"
        },
        "config_count": {
          "type": "integer",
          "title": "Config Count"
        }
      },
      "type": "object",
      "required": [
        "user_display_name",
        "config_count"
      ],
      "title": "UserConfigCount"
    },
    "UserEngagement": {
      "properties": {
        "user_display_name": {
          "type": "string",
          "title": "User Display Name"
        },
        "run_count": {
          "type": "integer",
          "title": "Run Count"
        },
        "sweep_count": {
          "type": "integer",
          "title": "Sweep Count"
        }
      },
      "type": "object",
      "required": [
        "user_display_name",
        "run_count",
        "sweep_count"
      ],
      "title": "UserEngagement"
    },
    "UserGeoCount": {
      "properties": {
        "country": {
          "type": "string",
          "title": "Country"
        },
        "user_count": {
          "type": "integer",
          "title": "User Count"
        }
      },
      "type": "object",
      "required": [
        "country",
        "user_count"
      ],
      "title": "UserGeoCount"
    },
    "UserMetrics": {
      "properties": {
        "total": {
          "type": "integer",
          "title": "Total"
        },
        "dau": {
          "type": "integer",
          "title": "Dau"
        },
        "wau": {
          "type": "integer",
          "title": "Wau"
        },
        "mau": {
          "type": "integer",
          "title": "Mau"
        },
        "wau_mau_ratio": {
          "type": "number",
          "title": "Wau Mau Ratio"
        },
        "visitors_30d": {
          "items": {
            "$ref": "#/$defs/DailySignup"
          },
          "type": "array",
          "title": "Visitors 30D"
        },
        "simulations_30d": {
          "items": {
            "$ref": "#/$defs/SimulationsByTierDay"
          },
          "type": "array",
          "title": "Simulations 30D",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "total",
        "dau",
        "wau",
        "mau",
        "wau_mau_ratio",
        "visitors_30d"
      ],
      "title": "UserMetrics"
    },
    "WeeklyCohort": {
      "properties": {
        "cohort_week": {
          "type": "string",
          "title": "Cohort Week"
        },
        "cohort_size": {
          "type": "integer",
          "title": "Cohort Size"
        },
        "retained": {
          "items": {
            "type": "integer"
          },
          "type": "array",
          "title": "Retained"
        }
      },
      "type": "object",
      "required": [
        "cohort_week",
        "cohort_size",
        "retained"
      ],
      "title": "WeeklyCohort"
    }
  }
}