{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zippedscript/json-schema/zippedscript-read-search-schema.json",
  "title": "ReadSearch",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zippedscript-direct-api-openapi.yml#/components/schemas/ReadSearch",
  "required": [
    "country_code",
    "portal_code",
    "company"
  ],
  "type": "object",
  "properties": {
    "verification": {
      "title": "Verification",
      "type": "string",
      "readOnly": true
    },
    "search_parameters": {
      "title": "Search parameters",
      "type": "string",
      "readOnly": true
    },
    "search_id": {
      "title": "Search id",
      "type": "string",
      "maxLength": 16,
      "minLength": 1
    },
    "request_id": {
      "title": "Request id",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 64
    },
    "created_at": {
      "title": "Created at",
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "completed_at": {
      "title": "Completed at",
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "country_code": {
      "title": "Country code",
      "description": "2-digits ISO country code the portal is in, e.g. US",
      "type": "string",
      "maxLength": 2,
      "minLength": 1
    },
    "region_code": {
      "title": "Region code",
      "description": "The region of the portal. Leave blank if it is national or international",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 255
    },
    "portal_code": {
      "title": "Portal code",
      "description": "The portal code for the search (e.g., MX, PE, EC, US)",
      "type": "string",
      "maxLength": 32,
      "minLength": 1
    },
    "complete": {
      "title": "Complete",
      "description": "Whether the search has completed",
      "type": "boolean"
    },
    "success": {
      "title": "Success",
      "description": "Whether the search was successful",
      "type": [
        "boolean",
        "null"
      ]
    },
    "company": {
      "title": "Company",
      "type": "integer"
    },
    "initiator": {
      "title": "Initiator",
      "description": "The user who initiated the search",
      "type": [
        "integer",
        "null"
      ]
    }
  }
}