{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zekra-dev/json-schema/zekra-dev-sessions-out-body-schema.json",
  "title": "SessionsOutBody",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zekra-dev-openapi.json#/components/schemas/SessionsOutBody",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "description": "A URL to the JSON Schema for this object.",
      "format": "uri",
      "readOnly": true,
      "type": "string"
    },
    "driver": {
      "description": "SESSION_DRIVER: cookie (stateless) | database | file | redis",
      "type": "string"
    },
    "listable": {
      "description": "true only for SESSION_DRIVER=database; stateless sessions cannot be listed",
      "type": "boolean"
    },
    "revoked_at": {
      "description": "Every session issued before this is refused",
      "type": [
        "string",
        "null"
      ]
    },
    "sessions": {
      "items": {
        "$ref": "#/$defs/SessionInfo"
      },
      "type": [
        "array",
        "null"
      ]
    }
  },
  "required": [
    "driver",
    "listable",
    "sessions",
    "revoked_at"
  ],
  "type": "object",
  "$defs": {
    "SessionInfo": {
      "additionalProperties": false,
      "properties": {
        "expires_at": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "issued_at": {
          "format": "date-time",
          "type": "string"
        }
      },
      "required": [
        "id",
        "issued_at",
        "expires_at"
      ],
      "type": "object"
    }
  }
}