{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rightis-org/json-schema/rightis-org-persona-license-request-input-schema.json",
  "title": "PersonaLicenseRequestInput",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rightis-org-openapi.json#/components/schemas/PersonaLicenseRequestInput",
  "type": "object",
  "required": [
    "service_name",
    "model_description",
    "ai_use_case",
    "distribution_scope",
    "usage_categories",
    "duration_months",
    "territory",
    "training_data_retention_days",
    "retraining_permitted",
    "deletion_guaranteed",
    "proposed_amount",
    "currency_code"
  ],
  "properties": {
    "persona_code": {
      "type": "string"
    },
    "rights_id": {
      "type": "string"
    },
    "service_name": {
      "type": "string",
      "maxLength": 200
    },
    "model_description": {
      "type": "string",
      "minLength": 20,
      "maxLength": 4000
    },
    "ai_use_case": {
      "type": "string",
      "enum": [
        "chatbot",
        "character_npc",
        "virtual_companion",
        "advertising",
        "research",
        "custom_assistant",
        "voice_synthesis",
        "other"
      ]
    },
    "distribution_scope": {
      "type": "string",
      "enum": [
        "private",
        "public_api",
        "consumer_product"
      ]
    },
    "usage_categories": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "ai_chatbot",
          "digital_human",
          "ad_marketing",
          "marketing_research",
          "academic_research",
          "ai_training_dataset",
          "education_content",
          "esg_impact",
          "app_service_persona",
          "other"
        ]
      }
    },
    "usage_note": {
      "type": [
        "string",
        "null"
      ],
      "description": "required when usage_categories contains other"
    },
    "duration_months": {
      "type": "integer",
      "minimum": 1,
      "maximum": 120
    },
    "territory": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "training_data_retention_days": {
      "type": "integer",
      "minimum": 0,
      "maximum": 3650
    },
    "retraining_permitted": {
      "type": "boolean"
    },
    "deletion_guaranteed": {
      "type": "boolean"
    },
    "proposed_amount": {
      "type": "string",
      "description": "decimal string"
    },
    "currency_code": {
      "type": "string",
      "minLength": 3,
      "maxLength": 3
    },
    "campaign_description": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}