{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/echoloc-ai/json-schema/echoloc-ai-export-v2-request-schema.json",
  "title": "ExportV2Request",
  "description": "Export v2 request — same filters as search.",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/echoloc-ai-api-openapi.json#/components/schemas/ExportV2Request",
  "properties": {
    "query": {
      "type": "string",
      "title": "Query",
      "default": ""
    },
    "max_results": {
      "type": "integer",
      "title": "Max Results",
      "default": 10000
    },
    "technologies": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/TechnologyFilter"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Technologies"
    },
    "roles": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Roles"
    },
    "text_search": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Text Search"
    },
    "industry": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Industry"
    },
    "country": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Country"
    },
    "city": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "City"
    },
    "company_type": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Company Type"
    },
    "hiring_velocity": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Hiring Velocity"
    },
    "size_min": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Size Min"
    },
    "size_max": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Size Max"
    },
    "exclude_agencies": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Exclude Agencies"
    }
  },
  "type": "object",
  "$defs": {
    "TechnologyFilter": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "context": {
          "type": "string",
          "title": "Context",
          "default": "any"
        }
      },
      "type": "object",
      "required": [
        "name"
      ],
      "title": "TechnologyFilter",
      "description": "Single technology filter with context."
    }
  }
}