{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/distribution-tech/json-schema/distribution-tech-inventory-schema.json",
  "title": "Inventory",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/distribution-tech-inventory-api-openapi.yml#/components/schemas/Inventory",
  "type": "object",
  "properties": {
    "segments": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Segment"
      }
    },
    "unresolved": {
      "type": "boolean"
    },
    "coverage_as_of": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "channels": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ChannelFit"
      }
    }
  },
  "required": [
    "segments",
    "unresolved",
    "coverage_as_of",
    "channels"
  ],
  "additionalProperties": false,
  "$defs": {
    "ChannelFit": {
      "type": "object",
      "properties": {
        "channel": {
          "type": "string",
          "enum": [
            "x_creators",
            "reddit",
            "clipping"
          ]
        },
        "label": {
          "type": "string"
        },
        "sale": {
          "type": "string",
          "enum": [
            "live",
            "next"
          ]
        },
        "level": {
          "type": "string",
          "enum": [
            "strong",
            "thin",
            "none"
          ]
        },
        "verified_nodes": {
          "type": "integer",
          "description": "Approved creators (or communities, clippers) that reach the audience. For x_creators, the creator list's own total for that audience (creators_search total)."
        },
        "bookable_nodes": {
          "type": "integer",
          "description": "Of those, the creators bookable now by the one bookable rule: the same count as creators_search priced and catalog.priced for the same audience, never above the network's."
        },
        "priced_units": {
          "type": "integer",
          "description": "Their posts on sale at a current price: a count of posts, not creators. Bookable creators are counted by creators_search priced and catalog.priced."
        },
        "note": {
          "type": "string"
        }
      },
      "required": [
        "channel",
        "label",
        "sale",
        "level",
        "verified_nodes",
        "bookable_nodes",
        "priced_units",
        "note"
      ],
      "additionalProperties": false
    },
    "Segment": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "label"
      ],
      "additionalProperties": false
    }
  }
}