{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clay953f/json-schema/clay953f-search-fields-response-schema.json",
  "title": "SearchFieldsResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clay953f-search-api-openapi.yml#/components/schemas/SearchFieldsResponse",
  "additionalProperties": false,
  "properties": {
    "fields": {
      "items": {
        "$ref": "#/$defs/SearchFilterField"
      },
      "type": "array"
    },
    "guidance": {
      "$ref": "#/$defs/SearchFieldsGuidance"
    },
    "source_type": {
      "enum": [
        "people",
        "companies"
      ],
      "type": "string"
    }
  },
  "required": [
    "source_type",
    "fields",
    "guidance"
  ],
  "type": "object",
  "$defs": {
    "SearchCreateExample": {
      "additionalProperties": false,
      "properties": {
        "intent": {
          "type": "string"
        },
        "request": {
          "additionalProperties": false,
          "properties": {
            "filters": {
              "additionalProperties": {},
              "type": "object"
            },
            "source_type": {
              "enum": [
                "people",
                "companies"
              ],
              "type": "string"
            }
          },
          "required": [
            "source_type",
            "filters"
          ],
          "type": "object"
        }
      },
      "required": [
        "intent",
        "request"
      ],
      "type": "object"
    },
    "SearchFieldsGuidance": {
      "additionalProperties": false,
      "properties": {
        "behavior": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "create_examples": {
          "items": {
            "$ref": "#/$defs/SearchCreateExample"
          },
          "type": "array"
        },
        "field_guidance": {
          "items": {
            "$ref": "#/$defs/SearchGuidanceItem"
          },
          "type": "array"
        }
      },
      "required": [
        "behavior",
        "field_guidance"
      ],
      "type": "object"
    },
    "SearchFilterField": {
      "additionalProperties": false,
      "properties": {
        "allowed_values": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "description": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "name",
        "type"
      ],
      "type": "object"
    },
    "SearchGuidanceItem": {
      "additionalProperties": false,
      "properties": {
        "fields": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "id": {
          "type": "string"
        },
        "text": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "text"
      ],
      "type": "object"
    }
  }
}