{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/la-suite/json-schema/la-suite-invitation-schema.json",
  "title": "Invitation",
  "description": "Serialize invitations.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/la-suite-fichiers-openapi.yml#/components/schemas/Invitation",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "readOnly": true,
      "description": "primary key for the record as UUID"
    },
    "abilities": {
      "type": "object",
      "additionalProperties": {},
      "description": "Return abilities of the logged-in user on the instance.",
      "readOnly": true
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "title": "Created on",
      "description": "date and time at which a record was created"
    },
    "email": {
      "type": "string",
      "format": "email",
      "title": "Email address",
      "maxLength": 254
    },
    "item": {
      "type": "string",
      "format": "uuid",
      "description": "primary key for the record as UUID",
      "readOnly": true
    },
    "role": {
      "$ref": "#/$defs/RoleEnum"
    },
    "issuer": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "primary key for the record as UUID",
      "readOnly": true
    },
    "is_expired": {
      "type": "string",
      "readOnly": true
    }
  },
  "required": [
    "abilities",
    "created_at",
    "email",
    "id",
    "is_expired",
    "issuer",
    "item"
  ],
  "$defs": {
    "RoleEnum": {
      "enum": [
        "reader",
        "editor",
        "administrator",
        "owner"
      ],
      "type": "string",
      "description": "* `reader` - Reader\n* `editor` - Editor\n* `administrator` - Administrator\n* `owner` - Owner"
    }
  }
}