{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/callforme-tel/json-schema/callforme-tel-plan-schema.json",
  "title": "Plan",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/callforme-tel-openapi.yml#/components/schemas/Plan",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "to": {
      "type": "string",
      "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
    },
    "demo": {
      "type": "boolean"
    },
    "business": {
      "$ref": "#/$defs/Business"
    },
    "opening_line": {
      "type": "string",
      "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
    },
    "questions_it_will_ask": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
      }
    },
    "likely_to_be_asked_but_not_provided": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
      },
      "description": "Most important first: add these to details"
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
      }
    },
    "tips": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
      }
    },
    "estimated_cost": {
      "type": "string",
      "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
    },
    "next": {
      "type": "string",
      "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
    }
  },
  "$defs": {
    "Business": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
        },
        "phone": {
          "type": "string",
          "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
        },
        "address": {
          "type": [
            "string",
            "null"
          ]
        },
        "open_now": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "hours_today": {
          "type": [
            "string",
            "null"
          ]
        },
        "local_time": {
          "type": [
            "string",
            "null"
          ]
        },
        "rating": {
          "type": [
            "number",
            "null"
          ]
        },
        "reviews": {
          "type": [
            "integer",
            "null"
          ]
        },
        "website": {
          "type": [
            "string",
            "null"
          ]
        },
        "maps_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "demo": {
          "type": "boolean"
        },
        "cost": {
          "type": "string",
          "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
        },
        "note": {
          "type": "string",
          "description": "The answer or instruction, e.g. \"2019 Toyota RAV4\" or \"Yes, book 7:30\"."
        },
        "listing_note": {
          "type": "string",
          "description": "Present when the number you gave isn't on the listing and it was matched by name in the same area code; hours are the main listing's."
        }
      }
    }
  }
}