{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/citedindex-com/json-schema/citedindex-com-owner-listings-schema.json",
  "title": "OwnerListings",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/citedindex-com-openapi.yml#/components/schemas/OwnerListings",
  "type": "object",
  "properties": {
    "site": {
      "type": "string"
    },
    "listings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "$ref": "#/$defs/OwnerListingStatus"
          }
        }
      }
    },
    "listing": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "status": {
          "$ref": "#/$defs/OwnerListingStatus"
        }
      }
    }
  },
  "$defs": {
    "OwnerListingStatus": {
      "oneOf": [
        {
          "type": "object",
          "required": [
            "kind"
          ],
          "properties": {
            "kind": {
              "const": "review"
            },
            "expectedOn": {
              "type": [
                "string",
                "null"
              ],
              "description": "The day the answer is due, as \"20 October\"."
            },
            "late": {
              "type": "boolean"
            }
          }
        },
        {
          "type": "object",
          "required": [
            "kind",
            "paid"
          ],
          "properties": {
            "kind": {
              "const": "accepted"
            },
            "liveOn": {
              "type": [
                "string",
                "null"
              ],
              "description": "The free release day, as \"17 November\"; null when a paid way releases it."
            },
            "paid": {
              "enum": [
                "express",
                "featured",
                null
              ],
              "description": "The paid way that releases it on the next pass: VIP listing, or Featured (which includes it); null for a free listing."
            },
            "express": {
              "type": "boolean",
              "description": "Whether a VIP listing is on sale to skip the wait."
            }
          }
        },
        {
          "type": "object",
          "required": [
            "kind",
            "href"
          ],
          "properties": {
            "kind": {
              "const": "live"
            },
            "href": {
              "type": "string"
            },
            "since": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        {
          "type": "object",
          "required": [
            "kind",
            "reason"
          ],
          "properties": {
            "kind": {
              "const": "refused"
            },
            "reason": {
              "type": "string"
            }
          }
        },
        {
          "type": "object",
          "required": [
            "kind"
          ],
          "properties": {
            "kind": {
              "const": "archived"
            }
          }
        }
      ]
    }
  }
}