{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/memestack-ai/json-schema/memestack-ai-image-rights-schema.json",
  "title": "ImageRights",
  "description": "What an integrator may do with an image, from what MemeStack truly knows — `unknown` wherever it knows nothing, never a guess. `publisher` = imported from a licence-clean publisher (Our World in Data, USDA ERS, Eurostat, EEA; `publisher_only=true` returns only these); `creator` = a Verified Creator's own upload (all rights reserved); `community` = everything else — uploads (including the operators' own uploads of other people's memes and charts), Telegram, X and 4chan saves, Imgflip templates, AI-generated and agent-submitted images: MemeStack grants no licence to them. Commercial use is `yes` only for USDA ERS, Eurostat and EEA charts, whose importer admits only the publisher's own material; Our World in Data is `unknown` because a chart may plot third-party data under its own terms (some non-commercial).",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/memestack-ai-openapi.json#/components/schemas/ImageRights",
  "type": "object",
  "required": [
    "source",
    "publisher",
    "license",
    "license_name",
    "license_url",
    "attribution",
    "attribution_required",
    "commercial_use",
    "note"
  ],
  "properties": {
    "source": {
      "type": "string",
      "enum": [
        "publisher",
        "creator",
        "community"
      ]
    },
    "publisher": {
      "type": [
        "object",
        "null"
      ],
      "description": "The publisher of a `publisher` image; null otherwise.",
      "properties": {
        "key": {
          "type": "string",
          "enum": [
            "owid",
            "usda_ers",
            "eurostat",
            "eea"
          ]
        },
        "name": {
          "type": "string"
        }
      }
    },
    "license": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "CC-BY-4.0",
        "US-PD",
        "all-rights-reserved",
        null
      ],
      "description": "Machine id of the licence; `US-PD` = U.S. federal public domain. Null = MemeStack knows of no licence."
    },
    "license_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Human label, e.g. \"CC BY 4.0\"."
    },
    "license_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri",
      "description": "The licence text, or MemeStack's creator terms for creator work."
    },
    "attribution": {
      "type": "string",
      "description": "The credit line to show beside the image: for a publisher chart the line its licence asks for; otherwise where the image came from, never who owns it."
    },
    "attribution_required": {
      "type": "boolean",
      "description": "True when the licence or the rights holder requires the credit (publisher charts, creator work)."
    },
    "commercial_use": {
      "type": "string",
      "enum": [
        "yes",
        "no",
        "unknown"
      ]
    },
    "note": {
      "type": [
        "string",
        "null"
      ],
      "description": "The one condition or caveat that changes what you may do (e.g. CC BY's notice of MemeStack's changes, or OWID's third-party data), or null."
    }
  }
}