{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tabfleet-com/json-schema/tabfleet-com-session-schema.json",
  "title": "Session",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tabfleet-com-openapi.json#/components/schemas/Session",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "creating",
        "active",
        "closing",
        "closed",
        "failed"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "endedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "idleTimeoutSeconds": {
      "type": "integer"
    },
    "closeReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "allocatedSeconds": {
      "type": "integer"
    }
  },
  "required": [
    "id",
    "status",
    "createdAt",
    "expiresAt",
    "endedAt",
    "idleTimeoutSeconds",
    "closeReason",
    "allocatedSeconds"
  ]
}