{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tempguru-co/json-schema/tempguru-co-availability-response-schema.json",
  "title": "AvailabilityResponse",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tempguru-co-openapi.json#/components/schemas/AvailabilityResponse",
  "type": "object",
  "required": [
    "input",
    "city_found",
    "catalog_match",
    "coverage_confirmation_required",
    "city",
    "state",
    "city_tier",
    "event_date",
    "days_until_event",
    "in_past",
    "typical_lead_time_hours",
    "recommendation",
    "role_found",
    "notes"
  ],
  "properties": {
    "input": {
      "type": "object"
    },
    "city_found": {
      "type": "boolean",
      "enum": [
        true
      ]
    },
    "catalog_match": {
      "type": "boolean",
      "const": true,
      "description": "The city resolved to a configured catalog entry; this does not confirm order coverage."
    },
    "coverage_confirmation_required": {
      "type": "boolean",
      "const": true
    },
    "city": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "city_tier": {
      "type": "string",
      "enum": [
        "hub",
        "mid",
        "small"
      ]
    },
    "event_date": {
      "type": "string",
      "format": "date"
    },
    "days_until_event": {
      "type": "integer"
    },
    "in_past": {
      "type": "boolean",
      "description": "True when the requested event date has already passed. Confirm the intended date before planning or quoting."
    },
    "typical_lead_time_hours": {
      "type": "integer"
    },
    "recommendation": {
      "type": "string",
      "enum": [
        "yes",
        "tight",
        "rush",
        "very-rush"
      ],
      "description": "yes = comfortable window; tight = at or near typical lead time; rush = inside lead time; very-rush = <24h."
    },
    "role_found": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "null when no role was requested; true when the requested role resolved; false when it did not match the catalog."
    },
    "role_suggestion": {
      "type": "object",
      "description": "Present only when role_found is false and there is one unambiguous nearby catalog match. Confirm before using it.",
      "required": [
        "kind",
        "slug",
        "name"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "const": "role"
        },
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "role": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "rate_range_usd": {
          "$ref": "#/$defs/PriceBand"
        },
        "all_inclusive": {
          "type": "string"
        }
      }
    },
    "count": {
      "type": [
        "integer",
        "null"
      ]
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "PriceBand": {
      "type": "object",
      "required": [
        "low",
        "high"
      ],
      "properties": {
        "low": {
          "type": "number",
          "description": "Lower end of the hourly rate range (USD)."
        },
        "high": {
          "type": "number",
          "description": "Upper end of the hourly rate range (USD)."
        }
      }
    }
  }
}