{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/huggingbay-xyz/json-schema/huggingbay-xyz-crawl-access-status-schema.json",
  "title": "CrawlAccessStatus",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/huggingbay-xyz-crawl-access-api-openapi.yml#/components/schemas/CrawlAccessStatus",
  "type": "object",
  "required": [
    "schemaVersion",
    "id",
    "option",
    "status",
    "statusUrl",
    "message"
  ],
  "properties": {
    "schemaVersion": {
      "type": "string",
      "const": "hugging-bay.crawl-access-status.v1"
    },
    "id": {
      "type": "string",
      "pattern": "^cra_[a-f0-9]{24}$"
    },
    "option": {
      "type": "string",
      "enum": [
        "higher_limits",
        "bulk_feed",
        "other"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "received",
        "in_review",
        "approved",
        "declined"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "statusUrl": {
      "type": "string",
      "format": "uri"
    },
    "message": {
      "type": "string"
    },
    "duplicate": {
      "type": "boolean"
    },
    "note": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "object",
          "required": [
            "summary"
          ],
          "properties": {
            "summary": {
              "type": "string"
            },
            "downloadable": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        }
      ]
    },
    "noteMessage": {
      "type": "string",
      "description": "Original route note, when a public qualification occupies note."
    }
  },
  "additionalProperties": false
}