{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/4chems-com/json-schema/4chems-com-invitation-in-schema.json",
  "title": "InvitationIn",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/4chems-com-invitations-api-openapi.yml#/components/schemas/InvitationIn",
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "title": "Email"
    },
    "level": {
      "$ref": "#/$defs/Role",
      "default": "viewer"
    },
    "billing_contact": {
      "type": "boolean",
      "title": "Billing Contact",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "email"
  ],
  "$defs": {
    "Role": {
      "type": "string",
      "enum": [
        "viewer",
        "member",
        "admin",
        "owner"
      ],
      "title": "Role",
      "description": "The grantable tenant access levels (ADR 0016 decision 3: role collapse).\n\nScoped department/instance roles (``team_admin``, ``env_admin``,\n``app_admin``, ``application_owner``, ``application_supervisor``,\n``application_user``) and the platform roles (``platform_admin``,\n``node_admin``) are no longer grantable; the migration\n(``uc087accesslevelscore_0001``) maps every existing row onto one of\nthese four values."
    }
  }
}