{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentsim-dev/json-schema/agentsim-dev-session-schema.json",
  "title": "Session",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentsim-dev-openapi.json#/components/schemas/Session",
  "type": "object",
  "properties": {
    "session_id": {
      "type": "string",
      "format": "uuid"
    },
    "channel": {
      "type": "string",
      "enum": [
        "sms_otp",
        "email_otp",
        "magic_link",
        "webauthn_required",
        "anti_bot_gate",
        "browser_access"
      ]
    },
    "number": {
      "type": [
        "string",
        "null"
      ],
      "description": "Phone number for an SMS OTP session."
    },
    "inbox_address": {
      "type": [
        "string",
        "null"
      ],
      "description": "Test-only address for an email OTP or magic-link session."
    },
    "country": {
      "type": "string"
    },
    "agent_id": {
      "type": "string"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "completed",
        "expired",
        "failed"
      ]
    }
  }
}