{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/weftly-ai/json-schema/weftly-ai-session-schema.json",
  "title": "Session",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/weftly-ai-openapi.yml#/components/schemas/Session",
  "type": "object",
  "properties": {
    "session_id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "created",
        "paid",
        "uploading",
        "processing",
        "completed",
        "expired"
      ]
    },
    "stripe_checkout_session_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "amount_paid_cents": {
      "type": [
        "integer",
        "null"
      ]
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "session_id",
    "status",
    "expires_at",
    "created_at",
    "updated_at"
  ]
}