{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rightis-org/json-schema/rightis-org-license-request-input-schema.json",
  "title": "LicenseRequestInput",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rightis-org-openapi.json#/components/schemas/LicenseRequestInput",
  "type": "object",
  "required": [
    "rights_id",
    "campaign_name",
    "description",
    "usage_type",
    "media_types",
    "territory",
    "duration_start",
    "duration_end",
    "rights_categories",
    "ai_generation_methods",
    "proposed_fee",
    "currency_code"
  ],
  "properties": {
    "rights_id": {
      "type": "string"
    },
    "campaign_name": {
      "type": "string",
      "maxLength": 200
    },
    "description": {
      "type": "string",
      "maxLength": 1000
    },
    "usage_type": {
      "type": "string",
      "maxLength": 40,
      "description": "e.g. brand_campaign, advertising, game, product"
    },
    "media_types": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "e.g. social, shortform, video, product_page, game"
    },
    "territory": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "ISO 3166 alpha-2"
    },
    "duration_start": {
      "type": "string",
      "format": "date-time"
    },
    "duration_end": {
      "type": "string",
      "format": "date-time"
    },
    "rights_categories": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "face",
          "voice",
          "style",
          "image"
        ]
      }
    },
    "ai_generation_methods": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "none",
          "image_generation",
          "voice_generation",
          "video_generation",
          "style_transfer",
          "deepfake_replacement",
          "composite",
          "other"
        ]
      }
    },
    "proposed_fee": {
      "type": "string",
      "description": "decimal string; with pricing_model=metered this is the minimum guaranteed for each period"
    },
    "currency_code": {
      "type": "string",
      "minLength": 3,
      "maxLength": 3
    },
    "pricing_model": {
      "type": "string",
      "enum": [
        "flat",
        "metered"
      ],
      "description": "flat = one agreed amount for the term; metered = charged for every permitted use"
    },
    "proposed_unit_price": {
      "type": "string",
      "description": "decimal string; required when pricing_model is metered"
    },
    "proposed_included_units": {
      "type": "integer",
      "minimum": 0,
      "description": "uses included each period before charging starts"
    },
    "restricted_categories_flagged": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Categories the content touches (adult_content, political_content, …). Hard-blocked ones are refused."
    },
    "reference_url": {
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    }
  }
}