{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apibara-tech/json-schema/apibara-tech-locations-response-schema.json",
  "title": "LocationsResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apibara-tech-locations-api-openapi.yml#/components/schemas/LocationsResponse",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AuctionLocation"
      }
    },
    "meta": {
      "$ref": "#/$defs/CursorMeta"
    }
  },
  "required": [
    "data",
    "meta"
  ],
  "$defs": {
    "AuctionLocation": {
      "type": "object",
      "properties": {
        "platform": {
          "type": "string",
          "enum": [
            "copart",
            "iaai"
          ]
        },
        "facility_id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "name_desc": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "state_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "state_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "country_code": {
          "type": [
            "string",
            "null"
          ]
        },
        "country_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "zip": {
          "type": [
            "string",
            "null"
          ]
        },
        "address1": {
          "type": [
            "string",
            "null"
          ]
        },
        "address2": {
          "type": [
            "string",
            "null"
          ]
        },
        "phone": {
          "type": [
            "string",
            "null"
          ]
        },
        "latitude": {
          "type": [
            "number",
            "null"
          ]
        },
        "longitude": {
          "type": [
            "number",
            "null"
          ]
        },
        "location_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "sale_day": {
          "type": [
            "string",
            "null"
          ]
        },
        "sale_time": {
          "type": [
            "string",
            "null"
          ]
        },
        "time_zone": {
          "type": [
            "string",
            "null"
          ]
        },
        "today_auction_count": {
          "type": "integer",
          "minimum": 0
        },
        "distance": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "additionalProperties": true
    },
    "CursorMeta": {
      "type": "object",
      "properties": {
        "per_page": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100
        },
        "next_cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "prev_cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "has_more": {
          "type": "boolean",
          "description": "True when next_cursor is available."
        },
        "total": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0,
          "description": "Exact filtered row count when include_total=true; otherwise null."
        },
        "total_is_exact": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "True when total was requested and computed exactly."
        },
        "applied_filters": {
          "type": "object",
          "additionalProperties": true,
          "description": "Normalized/requested filters applied to this list query."
        },
        "unknown_filters": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Unrecognized query keys. Non-empty means the client sent parameters outside the supported contract."
        }
      },
      "additionalProperties": true,
      "description": "Cursor pagination metadata.",
      "required": [
        "per_page",
        "next_cursor",
        "prev_cursor"
      ]
    }
  }
}