{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://northstar.nullorigin.tech/docs/workspace.v2.schema.json",
  "title": "North Star workspace v2 — shared workspace canvas",
  "type": "object",
  "properties": {
    "version": {
      "const": 2
    },
    "records": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 200
          },
          "type": {
            "enum": [
              "area",
              "project",
              "goal",
              "task",
              "opportunity",
              "benefit",
              "event",
              "note"
            ]
          },
          "title": {
            "type": "string",
            "maxLength": 200
          },
          "status": {
            "type": "string",
            "maxLength": 40
          },
          "confidence": {
            "enum": [
              "confirmed",
              "reported_by_me",
              "planned",
              "needs_verification"
            ]
          },
          "description": {
            "type": "string",
            "maxLength": 12000
          },
          "url": {
            "type": "string",
            "maxLength": 2000
          },
          "scheduledDate": {
            "type": "string",
            "format": "date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "dueDate": {
            "type": "string",
            "format": "date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time"
          },
          "projectId": {
            "type": "string",
            "maxLength": 200
          },
          "areaId": {
            "type": "string",
            "maxLength": 200
          },
          "priority": {
            "enum": [
              "low",
              "medium",
              "high",
              "critical"
            ]
          },
          "source": {
            "type": "string",
            "maxLength": 4000
          },
          "benefitType": {
            "type": "string",
            "maxLength": 200
          },
          "checkable": {
            "type": "boolean"
          },
          "completed": {
            "type": "boolean"
          },
          "assetKind": {
            "enum": [
              "image",
              "pdf",
              "audio"
            ]
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "version": {
                  "const": 1
                },
                "id": {
                  "type": "string",
                  "format": "uuid"
                },
                "workspaceId": {
                  "type": "string",
                  "format": "uuid"
                },
                "name": {
                  "type": "string",
                  "maxLength": 200
                },
                "contentType": {
                  "type": "string",
                  "maxLength": 100
                },
                "size": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 5242880
                }
              },
              "required": [
                "version",
                "id",
                "workspaceId",
                "name",
                "contentType",
                "size"
              ],
              "additionalProperties": false
            },
            "maxItems": 20
          },
          "nst": {
            "type": "object",
            "properties": {
              "version": {
                "const": 1
              },
              "directive": {
                "type": "string",
                "maxLength": 64000
              },
              "nextAction": {
                "type": "string",
                "maxLength": 4000
              },
              "continuation": {
                "type": "string",
                "maxLength": 128000
              },
              "controlUrl": {
                "type": "string",
                "maxLength": 2000
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 230
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "time": {
                      "type": "string",
                      "maxLength": 100
                    },
                    "evidence": {
                      "type": "string",
                      "maxLength": 4000
                    },
                    "revision": {
                      "type": "integer",
                      "minimum": 1
                    }
                  },
                  "required": [
                    "id",
                    "title",
                    "sha256",
                    "time",
                    "evidence"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 50
              },
              "documents": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "role": {
                      "enum": [
                        "prompt",
                        "deliverable",
                        "directive",
                        "spec",
                        "evidence",
                        "handover"
                      ]
                    },
                    "text": {
                      "type": "string",
                      "maxLength": 64000
                    },
                    "group": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "part": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 50
                    },
                    "parts": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 50
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    }
                  },
                  "required": [
                    "id",
                    "title",
                    "role",
                    "text"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 50
              },
              "notes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "text": {
                      "type": "string",
                      "maxLength": 4000
                    },
                    "color": {
                      "enum": [
                        "plain",
                        "gold",
                        "blue"
                      ]
                    },
                    "at": {
                      "type": "string",
                      "format": "date-time"
                    }
                  },
                  "required": [
                    "id",
                    "text",
                    "color",
                    "at"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 100
              },
              "events": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "status": {
                      "type": "string",
                      "maxLength": 40
                    },
                    "text": {
                      "type": "string",
                      "maxLength": 12000
                    },
                    "scheduledDate": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                    },
                    "dueDate": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                    }
                  },
                  "required": [
                    "id",
                    "at",
                    "status",
                    "text"
                  ],
                  "additionalProperties": false
                },
                "maxItems": 200
              },
              "referenceIds": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 200
                },
                "maxItems": 50
              },
              "classification": {
                "enum": [
                  "company_sanitized",
                  "owner_private",
                  "director_confidential"
                ]
              },
              "identity": {
                "type": "object",
                "properties": {
                  "product": {
                    "type": "string",
                    "maxLength": 100
                  },
                  "track": {
                    "type": "string",
                    "maxLength": 101
                  }
                },
                "required": [
                  "product",
                  "track"
                ],
                "additionalProperties": false
              },
              "checklist": {
                "type": "array",
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "label",
                    "acceptance",
                    "state",
                    "evidence"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "label": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "acceptance": {
                      "type": "string",
                      "maxLength": 2000
                    },
                    "state": {
                      "enum": [
                        "pending",
                        "blocked",
                        "deferred",
                        "verified"
                      ]
                    },
                    "evidence": {
                      "type": "string",
                      "maxLength": 4000
                    }
                  },
                  "allOf": [
                    {
                      "if": {
                        "properties": {
                          "state": {
                            "const": "verified"
                          }
                        }
                      },
                      "then": {
                        "properties": {
                          "evidence": {
                            "type": "string",
                            "minLength": 10,
                            "pattern": "\\S[\\s\\S]{8,}\\S"
                          }
                        }
                      }
                    }
                  ],
                  "additionalProperties": false
                }
              },
              "continuationRevision": {
                "type": "integer",
                "minimum": 1
              },
              "continuationHistory": {
                "type": "array",
                "maxItems": 50,
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "revision": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "text": {
                      "type": "string",
                      "maxLength": 128000
                    }
                  },
                  "required": [
                    "id",
                    "revision",
                    "at",
                    "text"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "version",
              "directive",
              "nextAction",
              "continuation",
              "controlUrl",
              "sources",
              "documents",
              "notes",
              "events"
            ],
            "additionalProperties": false
          },
          "workSchedule": {
            "type": "object",
            "properties": {
              "kind": {
                "enum": [
                  "date",
                  "timed"
                ]
              },
              "start": {
                "type": "string"
              },
              "end": {
                "type": "string"
              },
              "checkpoint": {
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "start"
            ],
            "additionalProperties": false,
            "allOf": [
              {
                "if": {
                  "properties": {
                    "kind": {
                      "const": "date"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "start": {
                      "format": "date",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                    },
                    "end": {
                      "format": "date",
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                    }
                  }
                },
                "else": {
                  "properties": {
                    "start": {
                      "format": "date-time",
                      "pattern": "Z$"
                    },
                    "end": {
                      "format": "date-time",
                      "pattern": "Z$"
                    }
                  }
                }
              },
              {
                "if": {
                  "properties": {
                    "checkpoint": {
                      "const": true
                    }
                  },
                  "required": [
                    "checkpoint"
                  ]
                },
                "then": {
                  "not": {
                    "required": [
                      "end"
                    ]
                  }
                }
              }
            ]
          },
          "projectIcon": {
            "type": "string",
            "maxLength": 16
          },
          "componentKey": {
            "enum": [
              "landing",
              "admin",
              "client"
            ]
          },
          "branchState": {
            "enum": [
              "not_started",
              "active",
              "paused"
            ],
            "description": "Optional planning activity, independent of status/completion. Native .northstar archives containing this field require manifest 3; older editors reject that archive version. Omitted defaults to Not started."
          }
        },
        "required": [
          "id",
          "type",
          "title",
          "status",
          "confidence"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "not": {
              "required": [
                "workSchedule",
                "scheduledDate"
              ]
            }
          }
        ]
      }
    },
    "positions": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          },
          "width": {
            "type": "number",
            "minimum": 38,
            "maximum": 640
          },
          "height": {
            "type": "number",
            "minimum": 44,
            "maximum": 1000
          },
          "recordId": {
            "type": "string",
            "maxLength": 200
          },
          "displayMode": {
            "enum": [
              "full",
              "title-only",
              "content-only"
            ]
          },
          "zOrder": {
            "type": "integer",
            "minimum": -999999999,
            "maximum": 999999999
          }
        },
        "required": [
          "x",
          "y"
        ],
        "additionalProperties": false
      }
    },
    "edges": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 200
          },
          "sourceId": {
            "type": "string",
            "maxLength": 200
          },
          "targetId": {
            "type": "string",
            "maxLength": 200
          },
          "type": {
            "type": "string",
            "maxLength": 100
          },
          "note": {
            "type": "string",
            "maxLength": 4000
          },
          "sourceAnchor": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number",
                    "minimum": -1,
                    "maximum": 1
                  },
                  "y": {
                    "type": "number",
                    "minimum": -1,
                    "maximum": 1
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false,
                "not": {
                  "properties": {
                    "x": {
                      "const": 0
                    },
                    "y": {
                      "const": 0
                    }
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "const": "auto"
                  }
                },
                "required": [
                  "mode"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "const": "pinned"
                  },
                  "side": {
                    "enum": [
                      "top",
                      "right",
                      "bottom",
                      "left"
                    ]
                  },
                  "offset": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  }
                },
                "required": [
                  "mode",
                  "side",
                  "offset"
                ],
                "additionalProperties": false
              }
            ]
          },
          "targetAnchor": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number",
                    "minimum": -1,
                    "maximum": 1
                  },
                  "y": {
                    "type": "number",
                    "minimum": -1,
                    "maximum": 1
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false,
                "not": {
                  "properties": {
                    "x": {
                      "const": 0
                    },
                    "y": {
                      "const": 0
                    }
                  }
                }
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "const": "auto"
                  }
                },
                "required": [
                  "mode"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "const": "pinned"
                  },
                  "side": {
                    "enum": [
                      "top",
                      "right",
                      "bottom",
                      "left"
                    ]
                  },
                  "offset": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  }
                },
                "required": [
                  "mode",
                  "side",
                  "offset"
                ],
                "additionalProperties": false
              }
            ]
          },
          "routing": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "const": "manual"
                  },
                  "bends": {
                    "type": "array",
                    "maxItems": 64,
                    "items": {
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "mode",
                  "bends"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "const": "auto"
                  },
                  "bends": {
                    "type": "array",
                    "maxItems": 64,
                    "items": {
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "endpoints": {
                    "type": "object",
                    "properties": {
                      "a": {
                        "type": "object",
                        "properties": {
                          "x": {
                            "type": "number"
                          },
                          "y": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "x",
                          "y"
                        ],
                        "additionalProperties": false
                      },
                      "b": {
                        "type": "object",
                        "properties": {
                          "x": {
                            "type": "number"
                          },
                          "y": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "x",
                          "y"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "a",
                      "b"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "mode",
                  "bends",
                  "endpoints"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "id",
          "sourceId",
          "targetId",
          "type"
        ],
        "additionalProperties": false
      }
    },
    "collapsed": {
      "type": "object",
      "additionalProperties": {
        "type": "boolean"
      }
    },
    "appearance": {
      "type": "object",
      "properties": {
        "theme": {
          "enum": [
            "dark",
            "dusk",
            "light",
            "wireframe"
          ]
        },
        "accent": {
          "enum": [
            "ember",
            "iris",
            "ocean",
            "sage"
          ]
        },
        "background": {
          "enum": [
            "grid",
            "dots",
            "constellation",
            "none"
          ]
        },
        "detail": {
          "enum": [
            "adaptive",
            "full",
            "titles"
          ]
        }
      },
      "required": [
        "theme",
        "accent",
        "background",
        "detail"
      ],
      "additionalProperties": false
    },
    "viewport": false,
    "snapping": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "alignment": {
          "type": "boolean"
        },
        "edges": {
          "type": "boolean"
        },
        "centers": {
          "type": "boolean"
        },
        "equalSpacing": {
          "type": "boolean"
        }
      },
      "required": [
        "enabled",
        "alignment",
        "edges",
        "centers",
        "equalSpacing"
      ],
      "additionalProperties": false
    },
    "defaultRecordConfiguration": {
      "type": "object",
      "properties": {
        "type": {
          "enum": [
            "area",
            "project",
            "goal",
            "task",
            "opportunity",
            "benefit",
            "event",
            "note"
          ]
        },
        "displayMode": {
          "enum": [
            "full",
            "title-only"
          ]
        }
      },
      "required": [
        "type",
        "displayMode"
      ],
      "additionalProperties": false
    },
    "defaultConnectionType": {
      "type": "string",
      "maxLength": 100
    },
    "inspectorWidth": {
      "type": "number",
      "minimum": 0,
      "maximum": 720
    },
    "timezone": {
      "type": "string",
      "description": "IANA display timezone. Default Africa/Johannesburg; date-only values remain calendar dates."
    },
    "projectViews": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "version": {
            "const": 2
          },
          "entryView": {
            "enum": [
              "map",
              "timeline"
            ]
          },
          "timeline": {
            "type": "object",
            "properties": {
              "placements": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "recordId": {
                      "type": "string"
                    },
                    "y": {
                      "type": "number",
                      "minimum": 0
                    }
                  },
                  "required": [
                    "recordId",
                    "y"
                  ],
                  "additionalProperties": false
                }
              },
              "origin": {
                "type": "string",
                "format": "date"
              },
              "pixelsPerDay": {
                "type": "number",
                "minimum": 0.25,
                "maximum": 480
              },
              "scrollTop": {
                "type": "number",
                "minimum": 0
              },
              "snap": {
                "type": "boolean"
              },
              "unit": {
                "enum": [
                  "days",
                  "weeks"
                ]
              },
              "filters": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "canvasHeight": {
                "type": "number",
                "minimum": 64,
                "maximum": 1600
              },
              "verticalScale": {
                "type": "number",
                "minimum": 0.00001,
                "maximum": 1
              }
            },
            "required": [
              "placements",
              "origin",
              "pixelsPerDay",
              "scrollTop",
              "snap",
              "unit",
              "filters"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "version",
          "entryView",
          "timeline"
        ],
        "additionalProperties": false
      }
    },
    "reconciliation": {
      "type": "object",
      "properties": {
        "version": {
          "const": 1
        },
        "namespace": {
          "type": "string"
        },
        "imports": {
          "type": "array",
          "maxItems": 1000,
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "sha256": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              }
            },
            "required": [
              "id",
              "sha256"
            ],
            "additionalProperties": false
          }
        },
        "deletedIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "conflicts": {
          "type": "array",
          "maxItems": 2000,
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "recordId": {
                "type": "string"
              },
              "field": {
                "type": "string"
              },
              "current": {
                "type": "string"
              },
              "incoming": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "field",
              "current",
              "incoming"
            ],
            "additionalProperties": false
          }
        },
        "aliases": {
          "type": "array",
          "maxItems": 10000,
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "enum": [
                  "record",
                  "document",
                  "node"
                ]
              },
              "sourceId": {
                "type": "string"
              },
              "targetId": {
                "type": "string"
              },
              "sourceRevision": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "sourceId",
              "targetId",
              "sourceRevision"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "version",
        "imports",
        "deletedIds",
        "conflicts"
      ],
      "additionalProperties": false
    },
    "exportScope": {
      "type": "object",
      "properties": {
        "kind": {
          "const": "project-export"
        },
        "projectId": {
          "type": "string"
        },
        "sourceRevision": {
          "type": "string"
        },
        "externalReferences": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "recordId": {
                "type": "string"
              },
              "relationship": {
                "type": "string"
              },
              "localRecordId": {
                "type": "string"
              }
            },
            "required": [
              "recordId",
              "relationship",
              "localRecordId"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "kind",
        "projectId",
        "sourceRevision",
        "externalReferences"
      ],
      "additionalProperties": false
    },
    "workspaceMap": {
      "type": "object",
      "properties": {
        "version": {
          "const": 1
        },
        "projects": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "properties": {
              "origin": {
                "type": "object",
                "properties": {
                  "x": {
                    "type": "number"
                  },
                  "y": {
                    "type": "number"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "additionalProperties": false
              },
              "anchorInstanceId": {
                "type": "string",
                "minLength": 1
              },
              "reservation": {
                "type": "object",
                "properties": {
                  "left": {
                    "type": "number"
                  },
                  "top": {
                    "type": "number"
                  },
                  "right": {
                    "type": "number"
                  },
                  "bottom": {
                    "type": "number"
                  }
                },
                "required": [
                  "left",
                  "top",
                  "right",
                  "bottom"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "origin",
              "reservation"
            ],
            "additionalProperties": false
          }
        },
        "instanceOwners": {
          "type": "object",
          "additionalProperties": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "required": [
        "version",
        "projects",
        "instanceOwners"
      ],
      "additionalProperties": false
    },
    "folderLabel": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "canvases": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "version",
        "defaultId",
        "items"
      ],
      "properties": {
        "version": {
          "const": 1
        },
        "defaultId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200
        },
        "items": {
          "type": "array",
          "minItems": 1,
          "maxItems": 128,
          "items": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "template",
              "recordIds"
            ],
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "template": {
                "enum": [
                  "blank",
                  "projects",
                  "funding"
                ]
              },
              "recordIds": {
                "type": "array",
                "uniqueItems": true,
                "items": {
                  "type": "string"
                }
              },
              "initialViewport": {
                "type": "object",
                "required": [
                  "zoom",
                  "offset"
                ],
                "additionalProperties": false,
                "properties": {
                  "zoom": {
                    "type": "number",
                    "minimum": 0.000001,
                    "maximum": 8
                  },
                  "offset": {
                    "type": "object",
                    "required": [
                      "x",
                      "y"
                    ],
                    "additionalProperties": false,
                    "properties": {
                      "x": {
                        "type": "number"
                      },
                      "y": {
                        "type": "number"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "required": [
    "version",
    "records",
    "positions",
    "edges",
    "collapsed",
    "workspaceMap"
  ],
  "additionalProperties": false,
  "description": "Structural authoring schema. The application additionally validates reference identities, owner-key equality, anchors, bounds, schedules, permissions and archive integrity."
}
