{
  "openapi": "3.1.0",
  "info": {
    "title": "Pulsebook API",
    "version": "1.0.0",
    "summary": "Public HTTP endpoints of Pulsebook: published brand guidelines as files, and the MCP server.",
    "description": "Pulsebook (pulsebook.app) is a web tool that turns brand guidelines into one living link per brand. This API covers what a program can use without a browser session: the `pulsebook.brand` v1 brand.json, the Markdown llms.txt and the asset bundle of every published brand, the site-level llms files, and the MCP server (Streamable HTTP, bearer token) that can read, edit and publish brands. Writing and publishing brands is done through MCP, not through plain REST. Every JSON error has the same shape (schema `Error`): `error`, `code`, `hint`, `status`.",
    "termsOfService": "https://pulsebook.app/terms",
    "contact": {
      "name": "Pulsebook support",
      "email": "hello@pulsebook.app",
      "url": "https://pulsebook.app/contact"
    }
  },
  "servers": [
    {
      "url": "https://pulsebook.app",
      "description": "Production"
    }
  ],
  "security": [],
  "externalDocs": {
    "description": "Pulsebook API documentation",
    "url": "https://pulsebook.app/docs/api"
  },
  "tags": [
    {
      "name": "Brands",
      "description": "Files served for every published brand without a password."
    },
    {
      "name": "MCP",
      "description": "Model Context Protocol server over Streamable HTTP."
    },
    {
      "name": "Site",
      "description": "Machine-readable descriptions of the site itself."
    }
  ],
  "paths": {
    "/brand/{slug}/brand.json": {
      "get": {
        "operationId": "getBrandJson",
        "tags": [
          "Brands"
        ],
        "summary": "Get a published brand as JSON",
        "description": "Returns the whole guideline of a published brand as structured data (pulsebook.brand v1): theme, every colour in hex, rgb, hsl and oklch, fonts, motion tokens with their curves, the text of each enabled section and links to hosted files. A brand that is unpublished, missing or protected by a password answers 404, so the response never reveals that a protected brand exists. Supports conditional requests with ETag and open CORS.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The brand's URL slug: lowercase letters, digits and hyphens, as in https://pulsebook.app/brand/pulsebook.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9-]+$",
              "minLength": 1,
              "maxLength": 64,
              "examples": [
                "pulsebook",
                "meridian"
              ]
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "An ETag from an earlier response. When the brand has not changed the server answers 304 with no body.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The brand document.",
            "headers": {
              "ETag": {
                "description": "Strong ETag of the body. Send it back in If-None-Match.",
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Origin": {
                "description": "Always `*`: the file can be read from any web page.",
                "schema": {
                  "type": "string",
                  "const": "*"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandJson"
                }
              }
            }
          },
          "304": {
            "description": "Not modified: the ETag in If-None-Match is current. No body.",
            "headers": {
              "ETag": {
                "description": "Strong ETag of the body. Send it back in If-None-Match.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No published, unprotected brand has this slug.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/brand/{slug}/llms.txt": {
      "get": {
        "operationId": "getBrandLlmsTxt",
        "tags": [
          "Brands"
        ],
        "summary": "Get a published brand as Markdown for language models",
        "description": "Returns the guideline of a published brand as Markdown, written for language models: colours, type, motion, voice and the other enabled sections. Same visibility rules as brand.json: unpublished, missing and password-protected brands answer 404.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The brand's URL slug: lowercase letters, digits and hyphens, as in https://pulsebook.app/brand/pulsebook.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9-]+$",
              "minLength": 1,
              "maxLength": 64,
              "examples": [
                "pulsebook",
                "meridian"
              ]
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "required": false,
            "description": "An ETag from an earlier response. When the brand has not changed the server answers 304 with no body.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The guideline as Markdown text.",
            "headers": {
              "ETag": {
                "description": "Strong ETag of the body. Send it back in If-None-Match.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "304": {
            "description": "Not modified. No body.",
            "headers": {
              "ETag": {
                "description": "Strong ETag of the body. Send it back in If-None-Match.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "404": {
            "description": "No published, unprotected brand has this slug.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/brand/{slug}/assets.zip": {
      "get": {
        "operationId": "downloadBrandAssets",
        "tags": [
          "Brands"
        ],
        "summary": "Download the files of a published brand",
        "description": "Streams a ZIP with the logo, font, image and download files the brand's guideline uses. A file that cannot be fetched is listed in MISSING.txt inside the archive. Unpublished, missing and password-protected brands answer 404; a brand with no files also answers 404.",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "description": "The brand's URL slug: lowercase letters, digits and hyphens, as in https://pulsebook.app/brand/pulsebook.",
            "schema": {
              "type": "string",
              "pattern": "^[a-z0-9-]+$",
              "minLength": 1,
              "maxLength": 64,
              "examples": [
                "pulsebook",
                "meridian"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A ZIP archive.",
            "content": {
              "application/zip": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "404": {
            "description": "No published, unprotected brand with files has this slug.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Every file of the brand was unreachable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/docs/brand-json/schema.json": {
      "get": {
        "operationId": "getBrandJsonSchema",
        "tags": [
          "Brands"
        ],
        "summary": "Get the JSON Schema of brand.json",
        "description": "Returns the JSON Schema (draft 2020-12) generated from the schema the server validates every brand.json with. Use it to validate or generate types.",
        "responses": {
          "200": {
            "description": "The JSON Schema document.",
            "content": {
              "application/schema+json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getSiteLlmsTxt",
        "tags": [
          "Site"
        ],
        "summary": "Get the site overview for language models",
        "description": "Returns the llmstxt.org-format overview of pulsebook.app: what it is, when to use it, how to call it, and links to the docs.",
        "responses": {
          "200": {
            "description": "Markdown text.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "operationId": "getSiteLlmsFullTxt",
        "tags": [
          "Site"
        ],
        "summary": "Get the full site content for language models",
        "description": "Returns llms.txt plus the FAQ, pricing details, every blog post, the MCP scopes and the full MCP tool list.",
        "responses": {
          "200": {
            "description": "Markdown text.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/mcp/server-card.json": {
      "get": {
        "operationId": "getMcpServerCard",
        "tags": [
          "MCP"
        ],
        "summary": "Get the MCP server card",
        "description": "Returns the MCP Server Card: name, version, the Streamable HTTP endpoint, the required Authorization header and the protocol versions supported. Fetch it before connecting.",
        "responses": {
          "200": {
            "description": "The server card.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/mcp": {
      "post": {
        "operationId": "callMcpServer",
        "tags": [
          "MCP"
        ],
        "summary": "Send a JSON-RPC message to the MCP server",
        "description": "The Model Context Protocol endpoint (Streamable HTTP, stateless, JSON responses). Send one JSON-RPC 2.0 message per request with `Authorization: Bearer pb_…`. Methods: `initialize`, `tools/list`, `tools/call`. Tools: list_brands, get_brand, scan_tokens_from_url (scope read); create_brand, update_brand, update_section, set_sections, upload_asset_from_url, generate_draft, delete_brand (scope write); publish_brand, unpublish_brand (scope publish). Create a token in Settings after signing in. GET and DELETE answer 405: there are no sessions.",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "description": "A JSON-RPC 2.0 request. For `tools/call` put the tool name and its arguments in `params`.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JsonRpcRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "A JSON-RPC response (success or JSON-RPC error).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonRpcResponse"
                }
              }
            }
          },
          "401": {
            "description": "The Bearer token is missing, malformed, unknown, revoked or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "The token lacks the scope this tool needs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "pb_ API token",
        "description": "A token created in Settings, starting with `pb_`, with the scopes read, write and publish."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "description": "Every JSON error of the API has this shape.",
        "required": [
          "error",
          "code",
          "hint",
          "status"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "What went wrong, for a person."
          },
          "code": {
            "type": "string",
            "enum": [
              "unauthenticated",
              "forbidden",
              "invalid_request",
              "not_found",
              "method_not_allowed",
              "unprocessable",
              "rate_limited",
              "not_configured",
              "upstream_failed",
              "timeout",
              "internal_error"
            ],
            "description": "Stable machine-readable code; switch on this, not on the message."
          },
          "hint": {
            "type": "string",
            "description": "What to change to make the call work."
          },
          "status": {
            "type": "integer",
            "minimum": 400,
            "maximum": 599,
            "description": "The HTTP status, repeated in the body."
          },
          "retryAfterSeconds": {
            "type": "integer",
            "minimum": 1,
            "description": "Only on 429: seconds to wait. The Retry-After header carries the same number."
          }
        },
        "additionalProperties": true
      },
      "JsonRpcRequest": {
        "type": "object",
        "required": [
          "jsonrpc",
          "method"
        ],
        "properties": {
          "jsonrpc": {
            "type": "string",
            "const": "2.0"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              }
            ],
            "description": "Omit for a notification."
          },
          "method": {
            "type": "string",
            "description": "For example initialize, tools/list or tools/call.",
            "examples": [
              "tools/list"
            ]
          },
          "params": {
            "type": "object",
            "description": "Method parameters. For tools/call: { name, arguments }.",
            "additionalProperties": true
          }
        }
      },
      "JsonRpcResponse": {
        "type": "object",
        "required": [
          "jsonrpc"
        ],
        "properties": {
          "jsonrpc": {
            "type": "string",
            "const": "2.0"
          },
          "id": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ]
          },
          "result": {
            "type": "object",
            "additionalProperties": true
          },
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "integer"
              },
              "message": {
                "type": "string"
              },
              "data": {}
            }
          }
        }
      },
      "BrandJson": {
        "type": "object",
        "properties": {
          "contract": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "const": "pulsebook.brand"
              },
              "version": {
                "type": "number",
                "const": 1
              }
            },
            "required": [
              "name",
              "version"
            ],
            "additionalProperties": false
          },
          "brand": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "slug": {
                "type": "string",
                "minLength": 2,
                "maxLength": 63,
                "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"
              },
              "tagline": {
                "type": "string",
                "maxLength": 200
              }
            },
            "required": [
              "name",
              "slug"
            ],
            "additionalProperties": false
          },
          "links": {
            "type": "object",
            "properties": {
              "page": {
                "type": "string",
                "format": "uri"
              },
              "brandJson": {
                "type": "string",
                "format": "uri"
              },
              "llmsTxt": {
                "type": "string",
                "format": "uri"
              }
            },
            "required": [
              "page",
              "brandJson",
              "llmsTxt"
            ],
            "additionalProperties": false
          },
          "theme": {
            "type": "object",
            "properties": {
              "background": {
                "type": "string",
                "pattern": "^#[0-9A-Fa-f]{6}$"
              },
              "ink": {
                "type": "string",
                "pattern": "^#[0-9A-Fa-f]{6}$"
              },
              "accent": {
                "type": "string",
                "pattern": "^#[0-9A-Fa-f]{6}$"
              },
              "mode": {
                "default": "light",
                "type": "string",
                "enum": [
                  "light",
                  "dark"
                ]
              }
            },
            "required": [
              "background",
              "ink",
              "accent",
              "mode"
            ],
            "additionalProperties": false
          },
          "palette": {
            "minItems": 1,
            "maxItems": 24,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64,
                  "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 60
                },
                "hex": {
                  "type": "string",
                  "pattern": "^#[0-9A-Fa-f]{6}$"
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "background",
                    "surface",
                    "ink",
                    "secondary",
                    "accent",
                    "neutral",
                    "signal"
                  ]
                },
                "group": {
                  "default": "Core",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 60
                },
                "description": {
                  "type": "string",
                  "maxLength": 200
                },
                "usagePct": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "cmyk": {
                  "type": "array",
                  "prefixItems": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100
                    },
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100
                    },
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100
                    },
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100
                    }
                  ],
                  "items": false,
                  "minItems": 4,
                  "maxItems": 4
                },
                "pantone": {
                  "type": "string",
                  "maxLength": 40
                },
                "rgb": {
                  "type": "string"
                },
                "hsl": {
                  "type": "string"
                },
                "oklch": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "hex",
                "role",
                "group",
                "rgb",
                "hsl",
                "oklch"
              ],
              "additionalProperties": false
            }
          },
          "gradients": {
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64,
                  "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 60
                },
                "angleDeg": {
                  "default": 180,
                  "type": "number",
                  "minimum": 0,
                  "maximum": 360
                },
                "stops": {
                  "minItems": 2,
                  "maxItems": 8,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "hex": {
                        "type": "string",
                        "pattern": "^#[0-9A-Fa-f]{6}$"
                      },
                      "pos": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      }
                    },
                    "required": [
                      "hex",
                      "pos"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "id",
                "name",
                "angleDeg",
                "stops"
              ],
              "additionalProperties": false
            }
          },
          "fonts": {
            "minItems": 1,
            "maxItems": 3,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string",
                  "enum": [
                    "display",
                    "text",
                    "mono"
                  ]
                },
                "family": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                "source": {
                  "type": "string",
                  "enum": [
                    "google",
                    "fontshare",
                    "upload"
                  ]
                },
                "fallback": {
                  "default": "ui-sans-serif, system-ui, sans-serif",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "cssUrl": {
                  "type": "string",
                  "format": "uri"
                },
                "weights": {
                  "minItems": 1,
                  "maxItems": 18,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "weight": {
                        "type": "integer",
                        "minimum": 100,
                        "maximum": 900
                      },
                      "style": {
                        "default": "normal",
                        "type": "string",
                        "enum": [
                          "normal",
                          "italic"
                        ]
                      },
                      "name": {
                        "type": "string",
                        "maxLength": 40
                      }
                    },
                    "required": [
                      "weight",
                      "style"
                    ],
                    "additionalProperties": false
                  }
                },
                "description": {
                  "type": "string",
                  "maxLength": 200
                },
                "files": {
                  "default": [],
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "weight": {
                        "type": "integer",
                        "minimum": 100,
                        "maximum": 900
                      },
                      "style": {
                        "default": "normal",
                        "type": "string",
                        "enum": [
                          "normal",
                          "italic"
                        ]
                      },
                      "format": {
                        "type": "string",
                        "enum": [
                          "woff2",
                          "woff",
                          "ttf",
                          "otf"
                        ]
                      },
                      "url": {
                        "type": "string",
                        "format": "uri"
                      }
                    },
                    "required": [
                      "weight",
                      "style",
                      "format",
                      "url"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "role",
                "family",
                "source",
                "fallback",
                "weights",
                "files"
              ],
              "additionalProperties": false
            }
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "intro",
                    "logo",
                    "color",
                    "typography",
                    "motion",
                    "voice",
                    "moodboard",
                    "applications",
                    "assets"
                  ]
                },
                "position": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 8
                },
                "enabled": {
                  "type": "boolean",
                  "const": true
                }
              },
              "required": [
                "type",
                "position",
                "enabled"
              ],
              "additionalProperties": false
            }
          },
          "intro": {
            "type": "object",
            "properties": {
              "headline": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "statement": {
                "default": [],
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 4000
                }
              },
              "facts": {
                "default": [],
                "maxItems": 8,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "value": {
                      "type": "string",
                      "maxLength": 200
                    }
                  },
                  "required": [
                    "label",
                    "value"
                  ],
                  "additionalProperties": false
                }
              },
              "cover": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "fileName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "mime": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 127
                  },
                  "bytes": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "width": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "height": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "alt": {
                    "type": "string",
                    "maxLength": 500
                  }
                },
                "required": [
                  "id",
                  "url",
                  "fileName",
                  "mime",
                  "bytes"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "headline",
              "statement",
              "facts"
            ],
            "additionalProperties": false
          },
          "logo": {
            "type": "object",
            "properties": {
              "layout": {
                "default": "pairs",
                "type": "string",
                "enum": [
                  "pairs",
                  "stage",
                  "family"
                ]
              },
              "clearspace": {
                "type": "object",
                "properties": {
                  "multiplier": {
                    "default": 0.5,
                    "type": "number",
                    "minimum": 0,
                    "maximum": 4
                  },
                  "note": {
                    "type": "string",
                    "maxLength": 200
                  }
                },
                "required": [
                  "multiplier"
                ],
                "additionalProperties": false
              },
              "minSize": {
                "type": "object",
                "properties": {
                  "digitalPx": {
                    "type": "integer",
                    "minimum": 8,
                    "maximum": 2000
                  },
                  "printMm": {
                    "type": "number",
                    "minimum": 2,
                    "maximum": 500
                  },
                  "note": {
                    "type": "string",
                    "maxLength": 200
                  }
                },
                "required": [
                  "digitalPx"
                ],
                "additionalProperties": false
              },
              "notes": {
                "default": [],
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 4000
                }
              },
              "variants": {
                "minItems": 1,
                "maxItems": 12,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"
                    },
                    "label": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 60
                    },
                    "role": {
                      "type": "string",
                      "enum": [
                        "lockup",
                        "mark",
                        "wordmark",
                        "mono"
                      ]
                    },
                    "background": {
                      "type": "string",
                      "enum": [
                        "light",
                        "dark"
                      ]
                    },
                    "clearspaceMultiplier": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 4
                    },
                    "asset": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "url": {
                          "type": "string",
                          "format": "uri"
                        },
                        "fileName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "mime": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 127
                        },
                        "bytes": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "width": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "height": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "alt": {
                          "type": "string",
                          "maxLength": 500
                        }
                      },
                      "required": [
                        "id",
                        "url",
                        "fileName",
                        "mime",
                        "bytes"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "label",
                    "role",
                    "background",
                    "asset"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "layout",
              "clearspace",
              "minSize",
              "notes",
              "variants"
            ],
            "additionalProperties": false
          },
          "color": {
            "type": "object",
            "properties": {
              "layout": {
                "default": "mosaic",
                "type": "string",
                "enum": [
                  "mosaic",
                  "proportions",
                  "sheet"
                ]
              },
              "lead": {
                "type": "string",
                "maxLength": 2000
              },
              "notes": {
                "default": [],
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 4000
                }
              }
            },
            "required": [
              "layout",
              "notes"
            ],
            "additionalProperties": false
          },
          "typography": {
            "type": "object",
            "properties": {
              "layout": {
                "default": "sheets",
                "type": "string",
                "enum": [
                  "sheets",
                  "columns",
                  "poster"
                ]
              },
              "sampleText": {
                "type": "string",
                "maxLength": 300
              },
              "scale": {
                "minItems": 1,
                "maxItems": 16,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 40
                    },
                    "fontRole": {
                      "type": "string",
                      "enum": [
                        "display",
                        "text",
                        "mono"
                      ]
                    },
                    "sizePx": {
                      "type": "number",
                      "minimum": 8,
                      "maximum": 400
                    },
                    "lineHeight": {
                      "type": "number",
                      "minimum": 0.7,
                      "maximum": 3
                    },
                    "letterSpacingEm": {
                      "type": "number",
                      "minimum": -0.2,
                      "maximum": 0.5
                    },
                    "weight": {
                      "type": "integer",
                      "minimum": 100,
                      "maximum": 900
                    }
                  },
                  "required": [
                    "label",
                    "fontRole",
                    "sizePx",
                    "lineHeight",
                    "weight"
                  ],
                  "additionalProperties": false
                }
              },
              "notes": {
                "default": [],
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 4000
                }
              }
            },
            "required": [
              "layout",
              "scale",
              "notes"
            ],
            "additionalProperties": false
          },
          "motion": {
            "type": "object",
            "properties": {
              "personality": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64,
                    "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 200
                  }
                },
                "required": [
                  "id",
                  "name"
                ],
                "additionalProperties": false
              },
              "easings": {
                "minItems": 1,
                "maxItems": 8,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 40
                    },
                    "bezier": {
                      "type": "array",
                      "prefixItems": [
                        {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        {
                          "type": "number",
                          "minimum": -2,
                          "maximum": 3
                        },
                        {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        {
                          "type": "number",
                          "minimum": -2,
                          "maximum": 3
                        }
                      ],
                      "items": false,
                      "minItems": 4,
                      "maxItems": 4
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 200
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "bezier"
                  ],
                  "additionalProperties": false
                }
              },
              "durations": {
                "type": "object",
                "properties": {
                  "micro": {
                    "type": "object",
                    "properties": {
                      "minMs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000
                      },
                      "maxMs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000
                      }
                    },
                    "required": [
                      "minMs",
                      "maxMs"
                    ],
                    "additionalProperties": false
                  },
                  "ui": {
                    "type": "object",
                    "properties": {
                      "minMs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000
                      },
                      "maxMs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000
                      }
                    },
                    "required": [
                      "minMs",
                      "maxMs"
                    ],
                    "additionalProperties": false
                  },
                  "reveal": {
                    "type": "object",
                    "properties": {
                      "minMs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000
                      },
                      "maxMs": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000
                      }
                    },
                    "required": [
                      "minMs",
                      "maxMs"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "micro",
                  "ui",
                  "reveal"
                ],
                "additionalProperties": false
              },
              "stagger": {
                "type": "object",
                "properties": {
                  "eachMs": {
                    "default": 50,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 1000
                  },
                  "from": {
                    "default": "start",
                    "type": "string",
                    "enum": [
                      "start",
                      "center",
                      "end"
                    ]
                  }
                },
                "required": [
                  "eachMs",
                  "from"
                ],
                "additionalProperties": false
              },
              "tokens": {
                "minItems": 1,
                "maxItems": 12,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 40
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "durationMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 10000
                    },
                    "easingId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"
                    },
                    "demo": {
                      "type": "string",
                      "enum": [
                        "reveal",
                        "hover",
                        "press",
                        "transition",
                        "stagger"
                      ]
                    },
                    "properties": {
                      "default": [
                        "opacity",
                        "transform"
                      ],
                      "minItems": 1,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "opacity",
                          "transform",
                          "clip-path",
                          "color",
                          "background-color"
                        ]
                      }
                    },
                    "distancePx": {
                      "default": 16,
                      "type": "number",
                      "minimum": 0,
                      "maximum": 400
                    },
                    "staggerMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 1000
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "durationMs",
                    "easingId",
                    "demo",
                    "properties",
                    "distancePx"
                  ],
                  "additionalProperties": false
                }
              },
              "principles": {
                "default": [],
                "maxItems": 8,
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 200
                }
              },
              "reducedMotion": {
                "default": "freeze",
                "type": "string",
                "enum": [
                  "freeze",
                  "crossfade"
                ]
              }
            },
            "required": [
              "personality",
              "easings",
              "durations",
              "stagger",
              "tokens",
              "principles",
              "reducedMotion"
            ],
            "additionalProperties": false
          },
          "voice": {
            "type": "object",
            "properties": {
              "lead": {
                "type": "string",
                "maxLength": 2000
              },
              "pillars": {
                "default": [],
                "maxItems": 8,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 2000
                    },
                    "example": {
                      "type": "string",
                      "maxLength": 200
                    }
                  },
                  "required": [
                    "title",
                    "description"
                  ],
                  "additionalProperties": false
                }
              },
              "doDont": {
                "default": [],
                "maxItems": 12,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "do": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "dont": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "context": {
                      "type": "string",
                      "maxLength": 200
                    }
                  },
                  "required": [
                    "do",
                    "dont"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "pillars",
              "doDont"
            ],
            "additionalProperties": false
          },
          "moodboard": {
            "type": "object",
            "properties": {
              "layout": {
                "default": "cloud",
                "type": "string",
                "enum": [
                  "cloud",
                  "columns"
                ]
              },
              "caption": {
                "type": "string",
                "maxLength": 200
              },
              "items": {
                "default": [],
                "maxItems": 40,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 64,
                      "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"
                    },
                    "alt": {
                      "type": "string",
                      "maxLength": 300
                    },
                    "caption": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "asset": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "url": {
                          "type": "string",
                          "format": "uri"
                        },
                        "fileName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "mime": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 127
                        },
                        "bytes": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "width": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "height": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "alt": {
                          "type": "string",
                          "maxLength": 500
                        }
                      },
                      "required": [
                        "id",
                        "url",
                        "fileName",
                        "mime",
                        "bytes"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "alt",
                    "asset"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "layout",
              "items"
            ],
            "additionalProperties": false
          },
          "applications": {
            "type": "object",
            "properties": {
              "lead": {
                "type": "string",
                "maxLength": 2000
              },
              "items": {
                "default": [],
                "maxItems": 40,
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"
                        },
                        "title": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "surface": {
                          "default": "auto",
                          "type": "string",
                          "enum": [
                            "auto",
                            "light",
                            "dark"
                          ]
                        },
                        "variant": {
                          "default": "photo-headline",
                          "type": "string",
                          "enum": [
                            "photo-headline",
                            "headline"
                          ]
                        },
                        "art": {
                          "type": "string",
                          "enum": [
                            "cover",
                            "band",
                            "pattern",
                            "poster",
                            "card-front",
                            "card-back",
                            "screen",
                            "mark",
                            "lockup",
                            "strip",
                            "letters"
                          ]
                        },
                        "tint": {
                          "default": "none",
                          "type": "string",
                          "enum": [
                            "none",
                            "accent"
                          ]
                        },
                        "copy": {
                          "type": "object",
                          "properties": {
                            "headline": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "subline": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "cta": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "handle": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 200
                            }
                          },
                          "additionalProperties": false
                        },
                        "kind": {
                          "type": "string",
                          "const": "social"
                        },
                        "mockup": {
                          "default": "ig-post",
                          "type": "string",
                          "enum": [
                            "x-profile",
                            "ig-story",
                            "ig-post",
                            "browser-tab",
                            "slide",
                            "landing-hero",
                            "email-signature",
                            "dock",
                            "app-icon",
                            "iphone-lock",
                            "macbook",
                            "ph-iphone-in-hand",
                            "ph-macbook-desk",
                            "ph-tablet-desk",
                            "business-card",
                            "letterhead",
                            "ph-cards-on-stone",
                            "ph-envelope-cards",
                            "ph-folder-letterhead",
                            "ph-notebook",
                            "ph-brochure-open",
                            "ph-flyer-stack",
                            "ph-embossed-card",
                            "ph-billboard-timber",
                            "ph-storefront-night",
                            "ph-corner-sign-brick",
                            "ph-bus-shelter",
                            "ph-flags-trio",
                            "ph-reception-wall",
                            "ph-poster-triptych",
                            "ph-roadside-billboard",
                            "ph-poster-wall",
                            "ph-window-decal",
                            "ph-flag",
                            "ph-van-wrap",
                            "ph-box",
                            "ph-mailer-box-tape",
                            "ph-paper-bag",
                            "ph-lanyard-badge",
                            "ph-tote-bag",
                            "ph-tshirt",
                            "ph-hoodie-flatlay",
                            "ph-cap",
                            "ph-mug",
                            "ph-coffee-cup",
                            "ph-bottle",
                            "ph-pin-badge",
                            "ph-pouch",
                            "ph-jar",
                            "ph-woven-label",
                            "ph-framed-poster",
                            "ph-totem"
                          ]
                        },
                        "asset": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "url": {
                              "type": "string",
                              "format": "uri"
                            },
                            "fileName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "mime": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 127
                            },
                            "bytes": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "width": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "height": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "alt": {
                              "type": "string",
                              "maxLength": 500
                            }
                          },
                          "required": [
                            "id",
                            "url",
                            "fileName",
                            "mime",
                            "bytes"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "id",
                        "title",
                        "surface",
                        "variant",
                        "tint",
                        "kind",
                        "mockup"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"
                        },
                        "title": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "surface": {
                          "default": "auto",
                          "type": "string",
                          "enum": [
                            "auto",
                            "light",
                            "dark"
                          ]
                        },
                        "variant": {
                          "default": "photo-headline",
                          "type": "string",
                          "enum": [
                            "photo-headline",
                            "headline"
                          ]
                        },
                        "art": {
                          "type": "string",
                          "enum": [
                            "cover",
                            "band",
                            "pattern",
                            "poster",
                            "card-front",
                            "card-back",
                            "screen",
                            "mark",
                            "lockup",
                            "strip",
                            "letters"
                          ]
                        },
                        "tint": {
                          "default": "none",
                          "type": "string",
                          "enum": [
                            "none",
                            "accent"
                          ]
                        },
                        "copy": {
                          "type": "object",
                          "properties": {
                            "headline": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "subline": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "cta": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "handle": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 200
                            }
                          },
                          "additionalProperties": false
                        },
                        "kind": {
                          "type": "string",
                          "const": "digital"
                        },
                        "mockup": {
                          "default": "browser-tab",
                          "type": "string",
                          "enum": [
                            "x-profile",
                            "ig-story",
                            "ig-post",
                            "browser-tab",
                            "slide",
                            "landing-hero",
                            "email-signature",
                            "dock",
                            "app-icon",
                            "iphone-lock",
                            "macbook",
                            "ph-iphone-in-hand",
                            "ph-macbook-desk",
                            "ph-tablet-desk",
                            "business-card",
                            "letterhead",
                            "ph-cards-on-stone",
                            "ph-envelope-cards",
                            "ph-folder-letterhead",
                            "ph-notebook",
                            "ph-brochure-open",
                            "ph-flyer-stack",
                            "ph-embossed-card",
                            "ph-billboard-timber",
                            "ph-storefront-night",
                            "ph-corner-sign-brick",
                            "ph-bus-shelter",
                            "ph-flags-trio",
                            "ph-reception-wall",
                            "ph-poster-triptych",
                            "ph-roadside-billboard",
                            "ph-poster-wall",
                            "ph-window-decal",
                            "ph-flag",
                            "ph-van-wrap",
                            "ph-box",
                            "ph-mailer-box-tape",
                            "ph-paper-bag",
                            "ph-lanyard-badge",
                            "ph-tote-bag",
                            "ph-tshirt",
                            "ph-hoodie-flatlay",
                            "ph-cap",
                            "ph-mug",
                            "ph-coffee-cup",
                            "ph-bottle",
                            "ph-pin-badge",
                            "ph-pouch",
                            "ph-jar",
                            "ph-woven-label",
                            "ph-framed-poster",
                            "ph-totem"
                          ]
                        },
                        "asset": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "url": {
                              "type": "string",
                              "format": "uri"
                            },
                            "fileName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "mime": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 127
                            },
                            "bytes": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "width": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "height": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "alt": {
                              "type": "string",
                              "maxLength": 500
                            }
                          },
                          "required": [
                            "id",
                            "url",
                            "fileName",
                            "mime",
                            "bytes"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "id",
                        "title",
                        "surface",
                        "variant",
                        "tint",
                        "kind",
                        "mockup"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"
                        },
                        "title": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "surface": {
                          "default": "auto",
                          "type": "string",
                          "enum": [
                            "auto",
                            "light",
                            "dark"
                          ]
                        },
                        "variant": {
                          "default": "photo-headline",
                          "type": "string",
                          "enum": [
                            "photo-headline",
                            "headline"
                          ]
                        },
                        "art": {
                          "type": "string",
                          "enum": [
                            "cover",
                            "band",
                            "pattern",
                            "poster",
                            "card-front",
                            "card-back",
                            "screen",
                            "mark",
                            "lockup",
                            "strip",
                            "letters"
                          ]
                        },
                        "tint": {
                          "default": "none",
                          "type": "string",
                          "enum": [
                            "none",
                            "accent"
                          ]
                        },
                        "copy": {
                          "type": "object",
                          "properties": {
                            "headline": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "subline": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "cta": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "handle": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 200
                            }
                          },
                          "additionalProperties": false
                        },
                        "kind": {
                          "type": "string",
                          "const": "device"
                        },
                        "mockup": {
                          "default": "iphone-lock",
                          "type": "string",
                          "enum": [
                            "x-profile",
                            "ig-story",
                            "ig-post",
                            "browser-tab",
                            "slide",
                            "landing-hero",
                            "email-signature",
                            "dock",
                            "app-icon",
                            "iphone-lock",
                            "macbook",
                            "ph-iphone-in-hand",
                            "ph-macbook-desk",
                            "ph-tablet-desk",
                            "business-card",
                            "letterhead",
                            "ph-cards-on-stone",
                            "ph-envelope-cards",
                            "ph-folder-letterhead",
                            "ph-notebook",
                            "ph-brochure-open",
                            "ph-flyer-stack",
                            "ph-embossed-card",
                            "ph-billboard-timber",
                            "ph-storefront-night",
                            "ph-corner-sign-brick",
                            "ph-bus-shelter",
                            "ph-flags-trio",
                            "ph-reception-wall",
                            "ph-poster-triptych",
                            "ph-roadside-billboard",
                            "ph-poster-wall",
                            "ph-window-decal",
                            "ph-flag",
                            "ph-van-wrap",
                            "ph-box",
                            "ph-mailer-box-tape",
                            "ph-paper-bag",
                            "ph-lanyard-badge",
                            "ph-tote-bag",
                            "ph-tshirt",
                            "ph-hoodie-flatlay",
                            "ph-cap",
                            "ph-mug",
                            "ph-coffee-cup",
                            "ph-bottle",
                            "ph-pin-badge",
                            "ph-pouch",
                            "ph-jar",
                            "ph-woven-label",
                            "ph-framed-poster",
                            "ph-totem"
                          ]
                        },
                        "asset": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "url": {
                              "type": "string",
                              "format": "uri"
                            },
                            "fileName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "mime": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 127
                            },
                            "bytes": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "width": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "height": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "alt": {
                              "type": "string",
                              "maxLength": 500
                            }
                          },
                          "required": [
                            "id",
                            "url",
                            "fileName",
                            "mime",
                            "bytes"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "id",
                        "title",
                        "surface",
                        "variant",
                        "tint",
                        "kind",
                        "mockup"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"
                        },
                        "title": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "surface": {
                          "default": "auto",
                          "type": "string",
                          "enum": [
                            "auto",
                            "light",
                            "dark"
                          ]
                        },
                        "variant": {
                          "default": "photo-headline",
                          "type": "string",
                          "enum": [
                            "photo-headline",
                            "headline"
                          ]
                        },
                        "art": {
                          "type": "string",
                          "enum": [
                            "cover",
                            "band",
                            "pattern",
                            "poster",
                            "card-front",
                            "card-back",
                            "screen",
                            "mark",
                            "lockup",
                            "strip",
                            "letters"
                          ]
                        },
                        "tint": {
                          "default": "none",
                          "type": "string",
                          "enum": [
                            "none",
                            "accent"
                          ]
                        },
                        "copy": {
                          "type": "object",
                          "properties": {
                            "headline": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "subline": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "cta": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "handle": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 200
                            }
                          },
                          "additionalProperties": false
                        },
                        "kind": {
                          "type": "string",
                          "const": "print"
                        },
                        "mockup": {
                          "default": "business-card",
                          "type": "string",
                          "enum": [
                            "x-profile",
                            "ig-story",
                            "ig-post",
                            "browser-tab",
                            "slide",
                            "landing-hero",
                            "email-signature",
                            "dock",
                            "app-icon",
                            "iphone-lock",
                            "macbook",
                            "ph-iphone-in-hand",
                            "ph-macbook-desk",
                            "ph-tablet-desk",
                            "business-card",
                            "letterhead",
                            "ph-cards-on-stone",
                            "ph-envelope-cards",
                            "ph-folder-letterhead",
                            "ph-notebook",
                            "ph-brochure-open",
                            "ph-flyer-stack",
                            "ph-embossed-card",
                            "ph-billboard-timber",
                            "ph-storefront-night",
                            "ph-corner-sign-brick",
                            "ph-bus-shelter",
                            "ph-flags-trio",
                            "ph-reception-wall",
                            "ph-poster-triptych",
                            "ph-roadside-billboard",
                            "ph-poster-wall",
                            "ph-window-decal",
                            "ph-flag",
                            "ph-van-wrap",
                            "ph-box",
                            "ph-mailer-box-tape",
                            "ph-paper-bag",
                            "ph-lanyard-badge",
                            "ph-tote-bag",
                            "ph-tshirt",
                            "ph-hoodie-flatlay",
                            "ph-cap",
                            "ph-mug",
                            "ph-coffee-cup",
                            "ph-bottle",
                            "ph-pin-badge",
                            "ph-pouch",
                            "ph-jar",
                            "ph-woven-label",
                            "ph-framed-poster",
                            "ph-totem"
                          ]
                        },
                        "asset": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "url": {
                              "type": "string",
                              "format": "uri"
                            },
                            "fileName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "mime": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 127
                            },
                            "bytes": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "width": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "height": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "alt": {
                              "type": "string",
                              "maxLength": 500
                            }
                          },
                          "required": [
                            "id",
                            "url",
                            "fileName",
                            "mime",
                            "bytes"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "id",
                        "title",
                        "surface",
                        "variant",
                        "tint",
                        "kind",
                        "mockup"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 64,
                          "pattern": "^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"
                        },
                        "title": {
                          "type": "string",
                          "maxLength": 200
                        },
                        "surface": {
                          "default": "auto",
                          "type": "string",
                          "enum": [
                            "auto",
                            "light",
                            "dark"
                          ]
                        },
                        "variant": {
                          "default": "photo-headline",
                          "type": "string",
                          "enum": [
                            "photo-headline",
                            "headline"
                          ]
                        },
                        "art": {
                          "type": "string",
                          "enum": [
                            "cover",
                            "band",
                            "pattern",
                            "poster",
                            "card-front",
                            "card-back",
                            "screen",
                            "mark",
                            "lockup",
                            "strip",
                            "letters"
                          ]
                        },
                        "tint": {
                          "default": "none",
                          "type": "string",
                          "enum": [
                            "none",
                            "accent"
                          ]
                        },
                        "copy": {
                          "type": "object",
                          "properties": {
                            "headline": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "subline": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "cta": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "handle": {
                              "type": "string",
                              "maxLength": 200
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 200
                            }
                          },
                          "additionalProperties": false
                        },
                        "kind": {
                          "type": "string",
                          "const": "environment"
                        },
                        "mockup": {
                          "default": "ph-billboard-timber",
                          "type": "string",
                          "enum": [
                            "x-profile",
                            "ig-story",
                            "ig-post",
                            "browser-tab",
                            "slide",
                            "landing-hero",
                            "email-signature",
                            "dock",
                            "app-icon",
                            "iphone-lock",
                            "macbook",
                            "ph-iphone-in-hand",
                            "ph-macbook-desk",
                            "ph-tablet-desk",
                            "business-card",
                            "letterhead",
                            "ph-cards-on-stone",
                            "ph-envelope-cards",
                            "ph-folder-letterhead",
                            "ph-notebook",
                            "ph-brochure-open",
                            "ph-flyer-stack",
                            "ph-embossed-card",
                            "ph-billboard-timber",
                            "ph-storefront-night",
                            "ph-corner-sign-brick",
                            "ph-bus-shelter",
                            "ph-flags-trio",
                            "ph-reception-wall",
                            "ph-poster-triptych",
                            "ph-roadside-billboard",
                            "ph-poster-wall",
                            "ph-window-decal",
                            "ph-flag",
                            "ph-van-wrap",
                            "ph-box",
                            "ph-mailer-box-tape",
                            "ph-paper-bag",
                            "ph-lanyard-badge",
                            "ph-tote-bag",
                            "ph-tshirt",
                            "ph-hoodie-flatlay",
                            "ph-cap",
                            "ph-mug",
                            "ph-coffee-cup",
                            "ph-bottle",
                            "ph-pin-badge",
                            "ph-pouch",
                            "ph-jar",
                            "ph-woven-label",
                            "ph-framed-poster",
                            "ph-totem"
                          ]
                        },
                        "asset": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "url": {
                              "type": "string",
                              "format": "uri"
                            },
                            "fileName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "mime": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 127
                            },
                            "bytes": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "width": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "height": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "alt": {
                              "type": "string",
                              "maxLength": 500
                            }
                          },
                          "required": [
                            "id",
                            "url",
                            "fileName",
                            "mime",
                            "bytes"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "id",
                        "title",
                        "surface",
                        "variant",
                        "tint",
                        "kind",
                        "mockup"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "required": [
              "items"
            ],
            "additionalProperties": false
          },
          "assets": {
            "type": "object",
            "properties": {
              "lead": {
                "type": "string",
                "maxLength": 2000
              },
              "groups": {
                "default": [],
                "maxItems": 12,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "note": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "items": {
                      "maxItems": 60,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "label": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "asset": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                              },
                              "url": {
                                "type": "string",
                                "format": "uri"
                              },
                              "fileName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "mime": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 127
                              },
                              "bytes": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "width": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              "height": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              "alt": {
                                "type": "string",
                                "maxLength": 500
                              }
                            },
                            "required": [
                              "id",
                              "url",
                              "fileName",
                              "mime",
                              "bytes"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "label",
                          "asset"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "title",
                    "items"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "groups"
            ],
            "additionalProperties": false
          },
          "meta": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "draft",
                  "published"
                ]
              },
              "publishedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "generatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "indexable": {
                "type": "boolean"
              },
              "protected": {
                "type": "boolean"
              }
            },
            "required": [
              "status",
              "publishedAt",
              "updatedAt",
              "generatedAt",
              "indexable",
              "protected"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "contract",
          "brand",
          "links",
          "theme",
          "palette",
          "gradients",
          "fonts",
          "sections",
          "meta"
        ],
        "additionalProperties": false
      }
    }
  }
}