{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/infocert/main/json-schema/infocert-mailbox-services-result-schema.json",
  "title": "Mailbox Services",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infocert-legalmail-business-provisioning-openapi.yml#/components/schemas/MailboxServicesResult",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "service": {
        "$ref": "#/$defs/ServiceData"
      },
      "enabled": {
        "type": "boolean",
        "description": "true if service is enabled. When omitted during creation, we assume it is true.",
        "default": true
      },
      "quota": {
        "type": "integer",
        "format": "int64",
        "description": "Quota of the service. For conservazione and archivio it is considered as available storage in bytes.\n"
      },
      "consumption": {
        "type": "integer",
        "format": "int64",
        "description": "Consumption of the service. For conservazione and archivio it is considered as used storage in bytes.\n"
      }
    }
  },
  "$defs": {
    "ServiceData": {
      "title": "Service",
      "type": "string",
      "enum": [
        "SPAZIO",
        "CONSERVAZIONE",
        "ARCHIVIO"
      ]
    }
  }
}