{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/typesearch-ai/json-schema/typesearch-ai-index-schema.json",
  "title": "Index",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/typesearch-ai-indexes-api-openapi.yml#/components/schemas/Index",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "type": "string",
      "const": "index"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "paused"
      ],
      "description": "paused: no credit left, so it is not re-read (nor billed) until there is."
    },
    "urls": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "ready": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "pending": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "failed": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "blocked": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "total",
        "ready",
        "pending",
        "failed",
        "blocked"
      ],
      "additionalProperties": false
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "sitemap",
              "feed"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "ok",
              "failed"
            ]
          },
          "read_at": {
            "type": [
              "string",
              "null"
            ]
          },
          "urls": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "URLs it listed the last time it was read."
          },
          "error": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "url",
          "type",
          "status",
          "read_at",
          "urls",
          "error"
        ],
        "additionalProperties": false
      },
      "description": "Sitemaps and feeds: read every hour; new URLs are added (up to your limit) and updated ones re-read."
    },
    "cost_per_day_usd": {
      "type": "number",
      "description": "What its URLs cost per day right now (US$2.00 per 1,000 URLs per month, a thirtieth per day)."
    },
    "last_read_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "object",
    "name",
    "status",
    "urls",
    "sources",
    "cost_per_day_usd",
    "last_read_at",
    "created_at",
    "updated_at"
  ],
  "additionalProperties": false
}