{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lettrove-com/json-schema/lettrove-com-design-schema.json",
  "title": "Design",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lettrove-com-openapi.json#/components/schemas/Design",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The id Lettrove gave the design: 26 letters and digits."
    },
    "name": {
      "type": "string",
      "description": "The name the person gave it."
    },
    "mode": {
      "type": "string",
      "enum": [
        "email",
        "page",
        "popup",
        "document"
      ],
      "description": "What the design is: `email`, `page`, `popup` or `document`. A project makes one mode."
    },
    "revision": {
      "type": "integer",
      "minimum": 0,
      "description": "The saved revision; only ever goes up."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601, UTC."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601, UTC."
    },
    "doc": {
      "$ref": "#/$defs/DesignDocument"
    }
  },
  "required": [
    "id",
    "name",
    "mode",
    "revision",
    "createdAt",
    "updatedAt",
    "doc"
  ],
  "$defs": {
    "DesignDocument": {
      "type": "object",
      "additionalProperties": {},
      "description": "The design document. Store it as it is; what you may rely on inside it is on docs.lettrove.com/docs/1/api/design-document."
    }
  }
}