{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/balladic-com/json-schema/balladic-com-cost-response-schema.json",
  "title": "CostResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/balladic-com-augments-api-openapi.yml#/components/schemas/CostResponse",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "mode": {
      "$ref": "#/$defs/CostMode"
    },
    "amount": {
      "type": "number",
      "title": "Amount"
    },
    "currency": {
      "type": "string",
      "title": "Currency"
    },
    "total": {
      "type": "number",
      "title": "Total"
    },
    "tracked_seconds": {
      "type": "integer",
      "title": "Tracked Seconds"
    },
    "timer_running_since": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Timer Running Since"
    },
    "set_by": {
      "type": "string",
      "format": "uuid",
      "title": "Set By"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "mode",
    "amount",
    "currency",
    "total",
    "tracked_seconds",
    "timer_running_since",
    "set_by",
    "created_at"
  ],
  "$defs": {
    "CostMode": {
      "type": "string",
      "enum": [
        "fixed",
        "hourly"
      ],
      "title": "CostMode"
    }
  }
}