{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/coderpad/json-schema/coderpad-pad-event-schema.json",
  "title": "PadEvent",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/coderpad-pads-api-openapi.yml#/components/schemas/PadEvent",
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "A human-readable description of the event."
    },
    "kind": {
      "type": "string",
      "enum": [
        "joined",
        "left",
        "ran",
        "enabled",
        "disabled",
        "ended",
        "renamed",
        "started",
        "deleted",
        "added_question",
        "submitted_take_home",
        "added_question_example",
        "opened_take_home",
        "auto_ended",
        "agreed_to_transcription",
        "declined_transcription",
        "paused_transcription",
        "unpaused_transcription",
        "stopped_transcription",
        "enabled_ai_assist",
        "disabled_ai_assist"
      ]
    },
    "metadata": {
      "type": [
        "string",
        "null"
      ],
      "description": "Details that depend on `kind`, such as the language that was run or the new title."
    },
    "user_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "user_email": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "$ref": "#/$defs/Timestamp"
    }
  },
  "$defs": {
    "Timestamp": {
      "type": "string",
      "format": "date-time"
    }
  }
}