{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/myarchivist-ai/json-schema/myarchivist-ai-campaign-settings-read-schema.json",
  "title": "CampaignSettingsRead",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/myarchivist-ai-openapi.json#/components/schemas/CampaignSettingsRead",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "title": {
      "type": "string",
      "title": "Title"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "image": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Image"
    },
    "language": {
      "type": "string",
      "title": "Language",
      "default": "en"
    },
    "system": {
      "type": "string",
      "title": "System",
      "default": "D&D 5e"
    },
    "ai_image_gen": {
      "type": "boolean",
      "title": "Ai Image Gen",
      "default": true
    },
    "discord_recap_card_enabled": {
      "type": "boolean",
      "title": "Discord Recap Card Enabled",
      "default": true
    },
    "campaign_tone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Campaign Tone"
    },
    "chat_tone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Chat Tone"
    },
    "entities_tone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Entities Tone"
    },
    "image_gen_tone": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Image Gen Tone"
    },
    "public": {
      "type": "boolean",
      "title": "Public",
      "default": false
    },
    "archived": {
      "type": "boolean",
      "title": "Archived",
      "default": false
    },
    "archived_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Archived At"
    },
    "owner_id": {
      "type": "string",
      "title": "Owner Id"
    },
    "owner_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Owner Name"
    },
    "admin_ids": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Admin Ids"
    },
    "can_archive": {
      "type": "boolean",
      "title": "Can Archive",
      "default": false
    },
    "can_delete": {
      "type": "boolean",
      "title": "Can Delete",
      "default": false
    },
    "permissions": {
      "$ref": "#/$defs/CampaignPermissionsRead"
    }
  },
  "type": "object",
  "required": [
    "id",
    "title",
    "owner_id",
    "permissions"
  ],
  "$defs": {
    "CampaignPermissionsRead": {
      "properties": {
        "is_owner": {
          "type": "boolean",
          "title": "Is Owner",
          "default": false
        },
        "is_world_admin": {
          "type": "boolean",
          "title": "Is World Admin",
          "default": false
        },
        "can_manage_world": {
          "type": "boolean",
          "title": "Can Manage World",
          "default": false
        },
        "can_view_quest_log": {
          "type": "boolean",
          "title": "Can View Quest Log",
          "default": false
        },
        "can_manage_quest_log": {
          "type": "boolean",
          "title": "Can Manage Quest Log",
          "default": false
        },
        "can_access_player_awards_and_collections": {
          "type": "boolean",
          "title": "Can Access Player Awards And Collections",
          "default": false
        }
      },
      "type": "object",
      "title": "CampaignPermissionsRead"
    }
  }
}