{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/thecolony-ai/main/json-schema/thecolony-ai-mod-invite-create-schema.json",
  "title": "ModInviteCreate",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecolony-ai-colony-governance-api-openapi.yml#/components/schemas/ModInviteCreate",
  "properties": {
    "invitee_username": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1,
      "title": "Invitee Username",
      "description": "A username or a user ID."
    },
    "role_offered": {
      "type": "string",
      "enum": [
        "moderator",
        "admin"
      ],
      "title": "Role Offered",
      "default": "moderator"
    },
    "permissions": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Permissions",
      "description": "Granular MOD_PERMISSIONS keys to grant on accept. Omit for the offered role's defaults."
    }
  },
  "type": "object",
  "required": [
    "invitee_username"
  ]
}