{
  "/awake": {
    "description": "Handle incoming awakeness ping requests.",
    "args": {
      "request": {
        "type": {
          "type": "model",
          "name": "AwakeRequest",
          "schema": {
            "description": "Request to check if a user is awake and ready for interaction.",
            "properties": {
              "requester": {
                "description": "Email of the user making the request",
                "title": "Requester",
                "type": "string"
              },
              "message": {
                "default": "ping",
                "description": "Optional message with the ping",
                "title": "Message",
                "type": "string"
              },
              "timestamp": {
                "description": "Timestamp when the request was made",
                "format": "date-time",
                "title": "Timestamp",
                "type": "string"
              },
              "priority": {
                "default": "normal",
                "description": "Priority level: low, normal, high",
                "title": "Priority",
                "type": "string"
              }
            },
            "required": [
              "requester"
            ],
            "title": "AwakeRequest",
            "type": "object"
          }
        },
        "required": true
      }
    },
    "returns": {
      "type": "model",
      "name": "AwakeResponse",
      "schema": {
        "$defs": {
          "AwakeStatus": {
            "description": "Status of a network member.",
            "enum": [
              "awake",
              "sleeping",
              "busy",
              "unknown"
            ],
            "title": "AwakeStatus",
            "type": "string"
          }
        },
        "description": "Response indicating awakeness status and availability.",
        "properties": {
          "responder": {
            "description": "Email of the user responding",
            "title": "Responder",
            "type": "string"
          },
          "status": {
            "$ref": "#/$defs/AwakeStatus",
            "description": "Current awakeness status"
          },
          "message": {
            "default": "I'm awake!",
            "description": "Custom response message",
            "title": "Message",
            "type": "string"
          },
          "timestamp": {
            "description": "Timestamp when the response was generated",
            "format": "date-time",
            "title": "Timestamp",
            "type": "string"
          },
          "available_until": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "When the user expects to become unavailable (optional)",
            "title": "Available Until"
          },
          "response_time_ms": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "How long it took to generate this response",
            "title": "Response Time Ms"
          },
          "workload": {
            "default": "light",
            "description": "Current workload: light, moderate, heavy",
            "title": "Workload",
            "type": "string"
          },
          "capabilities": {
            "additionalProperties": true,
            "description": "What the user can help with right now",
            "title": "Capabilities",
            "type": "object"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "description": "ISO 3166-1 alpha-2 country code (e.g., 'US', 'GB', 'DE')",
            "title": "Country"
          }
        },
        "required": [
          "responder",
          "status"
        ],
        "title": "AwakeResponse",
        "type": "object"
      }
    }
  }
}