{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/civai-co/json-schema/civai-co-invite-request-schema.json",
  "title": "InviteRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/civai-co-teams-api-openapi.yml#/components/schemas/InviteRequest",
  "properties": {
    "email": {
      "type": "string",
      "maxLength": 320,
      "minLength": 3,
      "title": "Email"
    },
    "project_ids": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Project Ids"
    },
    "permissions": {
      "anyOf": [
        {
          "$ref": "#/$defs/TeamPermissions"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "required": [
    "email"
  ],
  "$defs": {
    "TeamPermissions": {
      "properties": {
        "read": {
          "type": "boolean",
          "title": "Read",
          "default": true
        },
        "edit": {
          "type": "boolean",
          "title": "Edit",
          "default": true
        },
        "create": {
          "type": "boolean",
          "title": "Create",
          "default": true
        },
        "delete": {
          "type": "boolean",
          "title": "Delete",
          "default": false
        }
      },
      "type": "object",
      "title": "TeamPermissions"
    }
  }
}