{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/animam-ai/json-schema/animam-ai-update-tenant-body-schema.json",
  "title": "UpdateTenantBody",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/animam-ai-openapi.json#/components/schemas/UpdateTenantBody",
  "type": "object",
  "properties": {
    "botName": {
      "type": "string",
      "maxLength": 50
    },
    "botTitle": {
      "type": "string",
      "maxLength": 100
    },
    "botLore": {
      "type": "string"
    },
    "botTone": {
      "$ref": "#/$defs/BotTone"
    },
    "useTutoiement": {
      "type": "boolean"
    },
    "allowEmojis": {
      "type": "boolean"
    },
    "primaryColor": {
      "type": "string",
      "pattern": "^#[0-9A-Fa-f]{6}$"
    },
    "secondaryColor": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^#[0-9A-Fa-f]{6}$"
    },
    "showAiBadge": {
      "type": "boolean"
    },
    "botAvatar": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 500,
      "format": "uri"
    },
    "avatarType": {
      "type": "string",
      "enum": [
        "DEFAULT",
        "UPLOAD",
        "LIBRARY",
        "GENERATED"
      ]
    },
    "teaserText": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 160
    },
    "autoOpen": {
      "type": "boolean"
    },
    "autoOpenDelay": {
      "type": "integer",
      "minimum": 3,
      "maximum": 120
    },
    "bubblePulse": {
      "type": "boolean"
    },
    "allowedDomains": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 255
      }
    },
    "contentPolicy": {
      "$ref": "#/$defs/ContentPolicy"
    }
  },
  "$defs": {
    "BotTone": {
      "type": "string",
      "enum": [
        "FORMAL",
        "NEUTRAL",
        "FRIENDLY",
        "PLAYFUL",
        "TECHNICAL"
      ]
    },
    "ContentPolicy": {
      "type": "string",
      "enum": [
        "SFW_STRICT",
        "SFW",
        "MODERATE",
        "UNFILTERED"
      ]
    }
  }
}