{
  "$defs": {
    "FacetQueryResult": {
      "description": "Facet results for filtering.",
      "properties": {
        "displayName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Human-readable facet name"
        },
        "facetName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "System facet name"
        },
        "facetResults": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/FacetResultItem"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Individual facet result items"
        }
      },
      "type": "object"
    },
    "FacetResultItem": {
      "description": "Individual facet result item.",
      "properties": {
        "count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Number of jobs matching this facet value"
        },
        "displayValue": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Human-readable facet value"
        },
        "value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "boolean"
            },
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "System facet value"
        }
      },
      "type": "object"
    },
    "JobDisplayFields": {
      "description": "Job listing information with all facade-exposed fields.\n\nInternal atomic-service fields (jobId, positionId, companyLogoUrlOptimized,\njobMetadata, debug) exist upstream but are not exposed through the facade.",
      "properties": {
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique job identifier"
        },
        "guid": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Global unique identifier for the job"
        },
        "title": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Job title"
        },
        "summary": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Brief job description"
        },
        "postedDate": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Date when the job was posted"
        },
        "modifiedDate": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Date when the job was last modified"
        },
        "jobLocation": {
          "anyOf": [
            {
              "$ref": "#/$defs/JobLocation"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Job location information"
        },
        "detailsPageUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "URL to the full job details page"
        },
        "salary": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Salary information if available"
        },
        "clientBrandId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Client brand identifier"
        },
        "companyPageUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "URL to the company page"
        },
        "companyLogoUrl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "URL to the company logo"
        },
        "companyName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Name of the hiring company"
        },
        "employmentType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Type of employment"
        },
        "isHighlighted": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Whether the job is highlighted/featured"
        },
        "score": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Relevance score for the job match"
        },
        "easyApply": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Whether the job offers easy application"
        },
        "employerType": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Type of employer"
        },
        "workFromHomeAvailability": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Work from home options"
        },
        "workplaceTypes": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Available workplace types"
        },
        "isRemote": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Whether the job is fully remote"
        },
        "willingToSponsor": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Whether employer is willing to sponsor work authorization"
        }
      },
      "type": "object"
    },
    "JobLocation": {
      "description": "Job location information.",
      "properties": {
        "displayName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Human-readable location name"
        }
      },
      "type": "object"
    },
    "JobSearchMetadata": {
      "description": "Metadata about the search results and pagination.",
      "properties": {
        "page": {
          "description": "Current page number (1-based)",
          "minimum": 1,
          "type": "integer"
        },
        "pageSize": {
          "description": "Number of results per page",
          "minimum": 1,
          "type": "integer"
        },
        "total": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Total number of jobs matching the search criteria"
        },
        "totalPages": {
          "anyOf": [
            {
              "minimum": 0,
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Total number of pages available"
        },
        "facetQueryResults": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/FacetQueryResult"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Facet results for filtering options"
        },
        "includeRemote": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Whether remote jobs are included in results"
        },
        "recommendedSearches": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Recommended related searches"
        },
        "searchId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unique identifier for this search"
        },
        "searchedLocation": {
          "anyOf": [
            {
              "$ref": "#/$defs/SearchedLocation"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Information about the searched location"
        },
        "selectedFilters": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/SelectedFilter"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Currently applied filters"
        },
        "sortBy": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Current sort order"
        },
        "totalJobCount": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Total job count across all sources"
        }
      },
      "required": [
        "page",
        "pageSize"
      ],
      "type": "object"
    },
    "SearchedLocation": {
      "description": "Information about the searched location.",
      "properties": {
        "countryCode2": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Two-letter country code"
        },
        "radius": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Search radius used"
        },
        "radiusUnit": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Unit for the search radius"
        }
      },
      "type": "object"
    },
    "SelectedFilter": {
      "description": "Currently applied filter.",
      "properties": {
        "displayName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Human-readable filter name"
        },
        "filterName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "System filter name"
        },
        "selectedItems": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/SelectedFilterItem"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Selected filter items"
        }
      },
      "type": "object"
    },
    "SelectedFilterItem": {
      "description": "Individual selected filter item.",
      "properties": {
        "displayValue": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Human-readable selected value"
        },
        "value": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "System selected value"
        }
      },
      "type": "object"
    }
  },
  "description": "Job search results with pagination metadata.",
  "properties": {
    "data": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/JobDisplayFields"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Array of job listings matching the search criteria"
    },
    "metadata": {
      "anyOf": [
        {
          "$ref": "#/$defs/JobSearchMetadata"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "Metadata about the search results and pagination"
    }
  },
  "type": "object"
}