{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/toolaby-app/json-schema/toolaby-app-customer-list-item-schema.json",
  "title": "CustomerListItem",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/toolaby-app-openapi.json#/components/schemas/CustomerListItem",
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "format": "email"
    },
    "account": {
      "type": "boolean",
      "description": "The address has signed in to your workspace."
    },
    "entitled": {
      "type": "boolean",
      "description": "Holds the tool now."
    },
    "via": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "licence",
        "subscription",
        "trial",
        "grant",
        null
      ]
    },
    "since": {
      "type": "string",
      "description": "When they first held the tool, or first signed in to it."
    },
    "last_active_at": {
      "type": [
        "string",
        "null"
      ],
      "description": "The last check-in from any of their devices."
    },
    "devices": {
      "type": "integer",
      "description": "Devices signed in or activated."
    }
  },
  "required": [
    "email",
    "account",
    "entitled",
    "via",
    "since",
    "last_active_at",
    "devices"
  ]
}