{
  "$defs": {
    "AnnotationPlacement": {
      "enum": [
        "bottom"
      ],
      "type": "string"
    },
    "AnnotationV1": {
      "additionalProperties": false,
      "description": "A visible, inert callout with a stable ID.",
      "properties": {
        "id": {
          "type": "string"
        },
        "placement": {
          "anyOf": [
            {
              "$ref": "#/$defs/AnnotationPlacement"
            },
            {
              "type": "null"
            }
          ]
        },
        "text": {
          "type": "string"
        },
        "tone": {
          "anyOf": [
            {
              "$ref": "#/$defs/Tone"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "text"
      ],
      "type": "object"
    },
    "ArchitectureStyle": {
      "description": "Cloud look for architecture leaves; changes appearance, not meaning.",
      "enum": [
        "graff",
        "azure",
        "google_cloud"
      ],
      "type": "string"
    },
    "BareName": {
      "additionalProperties": false,
      "description": "A bare display name such as `string` or `zero_many`: a word that is not\n`true`, `false` or a number.",
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "BareNumber": {
      "additionalProperties": false,
      "description": "A bare display number such as `2008`.",
      "properties": {
        "number": {
          "$ref": "#/$defs/Number"
        }
      },
      "required": [
        "number"
      ],
      "type": "object"
    },
    "BlockCellProperties": {
      "additionalProperties": false,
      "properties": {
        "column": {
          "anyOf": [
            {
              "$ref": "#/$defs/Whole"
            },
            {
              "type": "null"
            }
          ]
        },
        "columns": {
          "anyOf": [
            {
              "$ref": "#/$defs/Positive"
            },
            {
              "type": "null"
            }
          ],
          "description": "Grid width, declared on at most one cell; 3 when omitted."
        },
        "row": {
          "anyOf": [
            {
              "$ref": "#/$defs/Whole"
            },
            {
              "type": "null"
            }
          ]
        },
        "span": {
          "anyOf": [
            {
              "$ref": "#/$defs/Positive"
            },
            {
              "type": "null"
            }
          ],
          "description": "Columns covered; 1 when omitted."
        }
      },
      "type": "object"
    },
    "BlockEntity": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/BlockCellProperties"
            },
            "type": {
              "const": "cell",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "BoardEntity": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "A column of cards.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "type": {
              "const": "lane",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "type": {
              "const": "card",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "Cardinalities": {
      "additionalProperties": false,
      "description": "Crow's-foot multiplicity at each end.",
      "properties": {
        "source_cardinality": {
          "anyOf": [
            {
              "$ref": "#/$defs/Cardinality"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_cardinality": {
          "anyOf": [
            {
              "$ref": "#/$defs/Cardinality"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "Cardinality": {
      "description": "Crow's-foot multiplicity of one end of an ER relationship.",
      "enum": [
        "one",
        "zero_one",
        "one_many",
        "zero_many"
      ],
      "type": "string"
    },
    "CausalEntity": {
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "kind": {
              "$ref": "#/$defs/CausalEntityKind"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "role": {
              "anyOf": [
                {
                  "$ref": "#/$defs/FactorRole"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Only factors carry a role."
            },
            "type": {
              "const": "node",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label",
            "kind"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "A visual container shared by the flow and causal leaves.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "const": "group",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "CausalEntityKind": {
      "enum": [
        "factor",
        "outcome",
        "intervention"
      ],
      "type": "string"
    },
    "CausalRelation": {
      "additionalProperties": false,
      "description": "One typed cause/effect claim. Conditions and mechanisms are inert text,\nnever executable expressions.",
      "properties": {
        "condition": {
          "type": [
            "string",
            "null"
          ]
        },
        "confidence": {
          "description": "Author-stated confidence from 0 to 1 inclusive.",
          "format": "double",
          "maximum": 1,
          "minimum": 0,
          "type": [
            "number",
            "null"
          ]
        },
        "evidence": {
          "description": "Reference IDs supporting the claim. Required for causal claims.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "id": {
          "type": "string"
        },
        "kind": {
          "$ref": "#/$defs/CausalRelationKind"
        },
        "label": {
          "type": "string"
        },
        "lag": {
          "anyOf": [
            {
              "$ref": "#/$defs/DurationV1"
            },
            {
              "type": "null"
            }
          ]
        },
        "mechanism": {
          "type": [
            "string",
            "null"
          ]
        },
        "polarity": {
          "anyOf": [
            {
              "$ref": "#/$defs/Polarity"
            },
            {
              "type": "null"
            }
          ]
        },
        "source": {
          "type": "string"
        },
        "target": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "kind",
        "source",
        "target"
      ],
      "type": "object"
    },
    "CausalRelationKind": {
      "description": "Distinct causal relationship types. A correlation is never a cause.",
      "enum": [
        "cause",
        "enable",
        "prevent",
        "correlate",
        "depend"
      ],
      "type": "string"
    },
    "ClassEntity": {
      "description": "Class-diagram declarations.",
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/EntityBoxProperties"
            },
            "type": {
              "const": "class",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "An attribute line inside its class.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/ClassFieldProperties"
            },
            "type": {
              "const": "field",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "A method line inside its class.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/OperationProperties"
            },
            "type": {
              "const": "operation",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "ClassFieldProperties": {
      "additionalProperties": false,
      "properties": {
        "data_type": {
          "anyOf": [
            {
              "$ref": "#/$defs/DisplayText"
            },
            {
              "type": "null"
            }
          ],
          "description": "The field's type, drawn after a colon."
        },
        "visibility": {
          "anyOf": [
            {
              "$ref": "#/$defs/Visibility"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "ClassRelation": {
      "description": "Class relationships. The relationship type is the notation.",
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "Generalization from the general class (source) to its\nspecialization (target), drawn with a hollow triangle at the\ngeneral class.",
          "properties": {
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "description": "Authored label. Empty for statements whose type is their label.",
              "type": "string"
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "source": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "type": {
              "const": "generalize",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "source",
            "target"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "Composition from the whole (source) to a part (target), drawn\nwith a filled diamond at the whole.",
          "properties": {
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "description": "Authored label. Empty for statements whose type is their label.",
              "type": "string"
            },
            "properties": {
              "$ref": "#/$defs/Multiplicities"
            },
            "source": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "type": {
              "const": "compose",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "source",
            "target"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "A labelled association.",
          "properties": {
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "description": "Authored label. Empty for statements whose type is their label.",
              "type": "string"
            },
            "properties": {
              "$ref": "#/$defs/Multiplicities"
            },
            "source": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "type": {
              "const": "associate",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "source",
            "target"
          ],
          "type": "object"
        }
      ]
    },
    "CommitProperties": {
      "additionalProperties": false,
      "properties": {
        "branch": {
          "anyOf": [
            {
              "$ref": "#/$defs/IdRef"
            },
            {
              "type": "null"
            }
          ],
          "description": "The branch lane; the first branch when omitted."
        },
        "note": {
          "anyOf": [
            {
              "$ref": "#/$defs/DisplayText"
            },
            {
              "type": "null"
            }
          ],
          "description": "A tag or note shown beside the commit."
        },
        "order": {
          "anyOf": [
            {
              "$ref": "#/$defs/Whole"
            },
            {
              "type": "null"
            }
          ],
          "description": "Recorded position in history (declaration order is drawn)."
        },
        "status": {
          "anyOf": [
            {
              "$ref": "#/$defs/CommitStatus"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "CommitStatus": {
      "description": "Git commit emphasis.",
      "enum": [
        "highlight"
      ],
      "type": "string"
    },
    "ConnectorStyle": {
      "enum": [
        "rounded",
        "orthogonal",
        "curved"
      ],
      "type": "string"
    },
    "ContextEntity": {
      "description": "C4 system-context declarations; the statement is the C4 element type.",
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/ContextProperties"
            },
            "type": {
              "const": "person",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/ContextProperties"
            },
            "type": {
              "const": "system",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "An external software system.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/ContextProperties"
            },
            "type": {
              "const": "external",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/ContextProperties"
            },
            "type": {
              "const": "container",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/ContextProperties"
            },
            "type": {
              "const": "component",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "ContextProperties": {
      "additionalProperties": false,
      "properties": {
        "show_kind": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "technology": {
          "anyOf": [
            {
              "$ref": "#/$defs/WordText"
            },
            {
              "type": "null"
            }
          ],
          "description": "Implementation technology, drawn in the C4 type line."
        }
      },
      "type": "object"
    },
    "ContextRelation": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "One relationship declaration of a typed leaf.",
          "properties": {
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "description": "Authored label. Empty for statements whose type is their label.",
              "type": "string"
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "source": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "type": {
              "const": "connect",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "source",
            "target"
          ],
          "type": "object"
        }
      ]
    },
    "Date": {
      "description": "A proleptic Gregorian calendar date written `YYYY-MM-DD`.",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
      "type": "string"
    },
    "DependenciesV1": {
      "additionalProperties": false,
      "description": "Derived requirements a host compares with the compiler's capabilities.",
      "properties": {
        "features": {
          "items": {
            "$ref": "#/$defs/FeatureV1"
          },
          "type": "array"
        },
        "leaf": {
          "$ref": "#/$defs/LeafType"
        },
        "leaf_stability": {
          "$ref": "#/$defs/Stability"
        },
        "syntax": {
          "type": "string"
        }
      },
      "required": [
        "syntax",
        "leaf",
        "leaf_stability"
      ],
      "type": "object"
    },
    "DeploymentEntity": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "A boundary such as a cloud, network or subnet.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "type": {
              "const": "group",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/DeploymentNodeProperties"
            },
            "type": {
              "const": "component",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "DeploymentNodeProperties": {
      "additionalProperties": false,
      "properties": {
        "show_kind": {
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "DeploymentRelation": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "One relationship declaration of a typed leaf.",
          "properties": {
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "description": "Authored label. Empty for statements whose type is their label.",
              "type": "string"
            },
            "properties": {
              "$ref": "#/$defs/Ports"
            },
            "source": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "type": {
              "const": "connect",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "source",
            "target"
          ],
          "type": "object"
        }
      ]
    },
    "DisplayText": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "$ref": "#/$defs/BareName"
        },
        {
          "$ref": "#/$defs/BareNumber"
        }
      ],
      "description": "Display text such as a type name, a requirement number or a date label.\n\nQuoted text is drawn exactly as written: `\"1.10\"`, `\"007\"` and `\"true\"`\nstay those characters. A bare name (`data_type string`) or a bare number\n(`date 2008`) is also accepted; a bare number is a number, so it is\nwritten and drawn in canonical form (`0800` is `800`). JSON: a string for\nquoted text, `{\"name\": …}` or `{\"number\": …}` for the bare forms."
    },
    "DurationUnit": {
      "enum": [
        "ms",
        "s",
        "min",
        "h",
        "d"
      ],
      "type": "string"
    },
    "DurationV1": {
      "additionalProperties": false,
      "description": "A finite, non-negative duration with an explicit unit, such as `350ms`.",
      "properties": {
        "unit": {
          "$ref": "#/$defs/DurationUnit"
        },
        "value": {
          "format": "double",
          "minimum": 0,
          "type": "number"
        }
      },
      "required": [
        "value",
        "unit"
      ],
      "type": "object"
    },
    "ElementPresentationV1": {
      "additionalProperties": false,
      "properties": {
        "border_width": {
          "format": "double",
          "maximum": 3,
          "minimum": 0.5,
          "type": [
            "number",
            "null"
          ]
        },
        "icon": {
          "description": "Registry icon identifier such as `lucide:server`; never markup or a URL.",
          "type": [
            "string",
            "null"
          ]
        },
        "node_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/NodeStyle"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "EntityBoxProperties": {
      "additionalProperties": false,
      "description": "Box details shared by class and ER entities.",
      "properties": {
        "show_details": {
          "description": "`false` hides the field and operation lines.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "show_kind": {
          "description": "Show the kind caption above the name.",
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "ErEntity": {
      "description": "Entity-relationship declarations.",
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/EntityBoxProperties"
            },
            "type": {
              "const": "entity",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "An attribute row inside its entity.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/ErFieldProperties"
            },
            "type": {
              "const": "field",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "ErFieldProperties": {
      "additionalProperties": false,
      "properties": {
        "data_type": {
          "anyOf": [
            {
              "$ref": "#/$defs/DisplayText"
            },
            {
              "type": "null"
            }
          ]
        },
        "key": {
          "anyOf": [
            {
              "$ref": "#/$defs/KeyKind"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "ErRelation": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "One relationship declaration of a typed leaf.",
          "properties": {
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "description": "Authored label. Empty for statements whose type is their label.",
              "type": "string"
            },
            "properties": {
              "$ref": "#/$defs/Cardinalities"
            },
            "source": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "type": {
              "const": "relation",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "source",
            "target"
          ],
          "type": "object"
        }
      ]
    },
    "EventProperties": {
      "additionalProperties": false,
      "properties": {
        "date": {
          "anyOf": [
            {
              "$ref": "#/$defs/DisplayText"
            },
            {
              "type": "null"
            }
          ],
          "description": "A date label such as `\"1947\"` or `\"1970s\"`."
        }
      },
      "type": "object"
    },
    "EventsEntity": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "A period column.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "type": {
              "const": "section",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/EventProperties"
            },
            "type": {
              "const": "event",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "ExplanationV1": {
      "additionalProperties": false,
      "description": "A deterministic linear explanation (`explain`).",
      "properties": {
        "id": {
          "type": "string"
        },
        "stages": {
          "items": {
            "$ref": "#/$defs/StageV1"
          },
          "type": "array"
        },
        "title": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "title",
        "stages"
      ],
      "type": "object"
    },
    "FactorRole": {
      "enum": [
        "metric",
        "event",
        "condition",
        "behavior"
      ],
      "type": "string"
    },
    "FeatureV1": {
      "description": "Optional document features a host must understand.",
      "enum": [
        "explanation",
        "references",
        "evidence",
        "annotations",
        "provenance",
        "sequence_fragments",
        "sequence_notes"
      ],
      "type": "string"
    },
    "FlowEdge": {
      "additionalProperties": false,
      "properties": {
        "evidence": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "target": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "source",
        "target"
      ],
      "type": "object"
    },
    "FlowEntity": {
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "kind": {
              "$ref": "#/$defs/FlowNodeKind"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "const": "node",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label",
            "kind"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "A visual container shared by the flow and causal leaves.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "type": {
              "const": "group",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "FlowNodeKind": {
      "description": "Domain role of a flow node. `service` is the default.",
      "enum": [
        "service",
        "actor",
        "process",
        "input",
        "output",
        "store",
        "database",
        "decision",
        "note"
      ],
      "type": "string"
    },
    "FlowWeightProperties": {
      "additionalProperties": false,
      "properties": {
        "weight": {
          "anyOf": [
            {
              "$ref": "#/$defs/NonNegative"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "Fraction": {
      "description": "A number from 0 to 1 inclusive.",
      "format": "double",
      "maximum": 1,
      "minimum": 0,
      "type": "number"
    },
    "GanttEntity": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "type": {
              "const": "section",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/TaskProperties"
            },
            "type": {
              "const": "task",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "GitEntity": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "type": {
              "const": "branch",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/CommitProperties"
            },
            "type": {
              "const": "commit",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "GitLinkProperties": {
      "additionalProperties": false,
      "properties": {
        "note": {
          "anyOf": [
            {
              "$ref": "#/$defs/DisplayText"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "GitRelation": {
      "description": "History edges between commits.",
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "A branch starting from a commit.",
          "properties": {
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "description": "Authored label. Empty for statements whose type is their label.",
              "type": "string"
            },
            "properties": {
              "$ref": "#/$defs/GitLinkProperties"
            },
            "source": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "type": {
              "const": "fork",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "source",
            "target"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "A merge into a commit.",
          "properties": {
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "description": "Authored label. Empty for statements whose type is their label.",
              "type": "string"
            },
            "properties": {
              "$ref": "#/$defs/GitLinkProperties"
            },
            "source": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "type": {
              "const": "merge",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "source",
            "target"
          ],
          "type": "object"
        }
      ]
    },
    "HeaderV1": {
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string"
        },
        "leaf": {
          "$ref": "#/$defs/LeafType"
        },
        "semantic_spec": {
          "description": "The leaf's semantic contract, for example `graff.causal/1-experimental`.",
          "type": "string"
        },
        "syntax": {
          "description": "Always `\"1\"`; read before the document grammar.",
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      },
      "required": [
        "syntax",
        "semantic_spec",
        "id",
        "title",
        "leaf"
      ],
      "type": "object"
    },
    "HierarchyEntity": {
      "description": "A mind map: each item is placed `in` its parent item.",
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "type": {
              "const": "item",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "IdRef": {
      "description": "The stable ID of another declaration in the same document.",
      "type": "string"
    },
    "JourneyEntity": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "A stage of the journey.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/JourneySectionProperties"
            },
            "type": {
              "const": "section",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One step.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/JourneyStepProperties"
            },
            "type": {
              "const": "event",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "JourneySectionProperties": {
      "additionalProperties": false,
      "properties": {
        "date": {
          "anyOf": [
            {
              "$ref": "#/$defs/DisplayText"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "JourneyStepProperties": {
      "additionalProperties": false,
      "properties": {
        "actors": {
          "anyOf": [
            {
              "$ref": "#/$defs/TextList"
            },
            {
              "type": "null"
            }
          ]
        },
        "date": {
          "anyOf": [
            {
              "$ref": "#/$defs/DisplayText"
            },
            {
              "type": "null"
            }
          ]
        },
        "score": {
          "anyOf": [
            {
              "$ref": "#/$defs/Score"
            },
            {
              "type": "null"
            }
          ],
          "description": "Satisfaction from 1 (worst) to 5 (best); omit for an unscored step."
        }
      },
      "type": "object"
    },
    "KeyKind": {
      "description": "An entity-relationship key marker.",
      "enum": [
        "PK",
        "FK",
        "UK"
      ],
      "type": "string"
    },
    "LayoutDirection": {
      "enum": [
        "right",
        "down"
      ],
      "type": "string"
    },
    "LeafType": {
      "description": "One leaf diagram type. Graff 1 has no second `kind` choice.",
      "enum": [
        "flow",
        "sequence",
        "state",
        "causal",
        "class",
        "er",
        "requirements",
        "context",
        "deployment",
        "hierarchy",
        "board",
        "gantt",
        "events",
        "journey",
        "git",
        "pie",
        "quadrant",
        "xy",
        "radar",
        "sankey",
        "block",
        "packet"
      ],
      "type": "string"
    },
    "Lifeline": {
      "additionalProperties": false,
      "properties": {
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "evidence": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "role": {
          "$ref": "#/$defs/LifelineRole"
        }
      },
      "required": [
        "id",
        "label",
        "role"
      ],
      "type": "object"
    },
    "LifelineRole": {
      "description": "A sequence lifeline is a person/agent (`actor`) or a system (`participant`).",
      "enum": [
        "actor",
        "participant"
      ],
      "type": "string"
    },
    "Multiplicities": {
      "additionalProperties": false,
      "description": "Multiplicity text at each end of a class relationship (for example\n`\"1\"` or `\"0..*\"`). Carried in the semantic outline.",
      "properties": {
        "source_cardinality": {
          "anyOf": [
            {
              "$ref": "#/$defs/DisplayText"
            },
            {
              "type": "null"
            }
          ]
        },
        "target_cardinality": {
          "anyOf": [
            {
              "$ref": "#/$defs/DisplayText"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "NoProperties": {
      "additionalProperties": false,
      "description": "A statement without typed properties.",
      "type": "object"
    },
    "NodeStyle": {
      "enum": [
        "simple",
        "card"
      ],
      "type": "string"
    },
    "NonNegative": {
      "description": "A finite number of 0 or more.",
      "format": "double",
      "minimum": 0,
      "type": "number"
    },
    "NotePlacement": {
      "enum": [
        "over",
        "left_of",
        "right_of"
      ],
      "type": "string"
    },
    "Number": {
      "description": "A finite number.",
      "format": "double",
      "type": "number"
    },
    "NumberList": {
      "description": "A non-empty bracketed list of finite numbers, such as `[2, 5, 8]`.",
      "items": {
        "format": "double",
        "type": "number"
      },
      "minItems": 1,
      "type": "array"
    },
    "OperationProperties": {
      "additionalProperties": false,
      "properties": {
        "visibility": {
          "anyOf": [
            {
              "$ref": "#/$defs/Visibility"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "PacketEntity": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "A bit field.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/PacketFieldProperties"
            },
            "type": {
              "const": "field",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "PacketFieldProperties": {
      "additionalProperties": false,
      "properties": {
        "end_bit": {
          "anyOf": [
            {
              "$ref": "#/$defs/Whole"
            },
            {
              "type": "null"
            }
          ],
          "description": "Inclusive; a one-bit field when omitted."
        },
        "sample": {
          "description": "An example value printed in the field.",
          "type": [
            "string",
            "null"
          ]
        },
        "start_bit": {
          "anyOf": [
            {
              "$ref": "#/$defs/Whole"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "PieEntity": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/SliceProperties"
            },
            "type": {
              "const": "slice",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "PointProperties": {
      "additionalProperties": false,
      "properties": {
        "x": {
          "anyOf": [
            {
              "$ref": "#/$defs/Fraction"
            },
            {
              "type": "null"
            }
          ]
        },
        "y": {
          "anyOf": [
            {
              "$ref": "#/$defs/Fraction"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "Polarity": {
      "enum": [
        "positive",
        "negative",
        "mixed",
        "unknown"
      ],
      "type": "string"
    },
    "PortSide": {
      "description": "Side of a box where a connection leaves or arrives.",
      "enum": [
        "top",
        "right",
        "bottom",
        "left"
      ],
      "type": "string"
    },
    "Ports": {
      "additionalProperties": false,
      "description": "Explicit exit and entry sides; unset sides are chosen by layout.",
      "properties": {
        "from_port": {
          "anyOf": [
            {
              "$ref": "#/$defs/PortSide"
            },
            {
              "type": "null"
            }
          ]
        },
        "to_port": {
          "anyOf": [
            {
              "$ref": "#/$defs/PortSide"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "Positive": {
      "description": "A whole number of 1 or more.",
      "format": "uint32",
      "minimum": 1,
      "type": "integer"
    },
    "PresentationV1": {
      "additionalProperties": false,
      "properties": {
        "architecture_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/ArchitectureStyle"
            },
            {
              "type": "null"
            }
          ],
          "description": "`context` and `deployment` only."
        },
        "border_width": {
          "format": "double",
          "maximum": 3,
          "minimum": 0.5,
          "type": [
            "number",
            "null"
          ]
        },
        "connector_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/ConnectorStyle"
            },
            {
              "type": "null"
            }
          ]
        },
        "elements": {
          "additionalProperties": {
            "$ref": "#/$defs/ElementPresentationV1"
          },
          "description": "Per-element presentation keyed by stable ID. Written on the element's\ndeclaration in source, but kept apart from its meaning here.",
          "type": "object"
        },
        "layout": {
          "anyOf": [
            {
              "$ref": "#/$defs/LayoutDirection"
            },
            {
              "type": "null"
            }
          ]
        },
        "node_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/NodeStyle"
            },
            {
              "type": "null"
            }
          ]
        },
        "radar_grid": {
          "anyOf": [
            {
              "$ref": "#/$defs/RadarGrid"
            },
            {
              "type": "null"
            }
          ],
          "description": "`radar` only."
        },
        "relationships": {
          "additionalProperties": {
            "$ref": "#/$defs/RelationshipPresentationV1"
          },
          "type": "object"
        },
        "routing_quality": {
          "anyOf": [
            {
              "$ref": "#/$defs/RoutingQuality"
            },
            {
              "type": "null"
            }
          ]
        },
        "show_bit_numbers": {
          "description": "`packet` only: print each field's bit range.",
          "type": [
            "boolean",
            "null"
          ]
        },
        "theme": {
          "anyOf": [
            {
              "$ref": "#/$defs/ThemeV1"
            },
            {
              "type": "null"
            }
          ]
        },
        "timeline_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/TimelineStyle"
            },
            {
              "type": "null"
            }
          ],
          "description": "`events` only."
        }
      },
      "type": "object"
    },
    "ProvenanceActivity": {
      "enum": [
        "migration"
      ],
      "type": "string"
    },
    "ProvenanceV1": {
      "additionalProperties": false,
      "description": "Where the document came from. Not rendered.",
      "properties": {
        "activity": {
          "$ref": "#/$defs/ProvenanceActivity"
        },
        "from_syntax": {
          "description": "Prior syntax version, for example `0.1`.",
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "migrator": {
          "description": "Versioned migration rule set, for example `graff-migrate/1`.",
          "type": "string"
        },
        "source_hash": {
          "description": "`sha256:` of the exact prior source bytes.",
          "type": "string"
        }
      },
      "required": [
        "id",
        "activity",
        "from_syntax",
        "source_hash",
        "migrator"
      ],
      "type": "object"
    },
    "QuadrantCellProperties": {
      "additionalProperties": false,
      "properties": {
        "column": {
          "anyOf": [
            {
              "$ref": "#/$defs/Whole"
            },
            {
              "type": "null"
            }
          ],
          "description": "0 is the left column, 1 the right column."
        },
        "row": {
          "anyOf": [
            {
              "$ref": "#/$defs/Whole"
            },
            {
              "type": "null"
            }
          ],
          "description": "0 is the top row, 1 the bottom row."
        }
      },
      "type": "object"
    },
    "QuadrantEntity": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "The horizontal axis label.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "type": {
              "const": "x_axis",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "The vertical axis label.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "type": {
              "const": "y_axis",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "A quadrant label.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/QuadrantCellProperties"
            },
            "type": {
              "const": "cell",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/PointProperties"
            },
            "type": {
              "const": "point",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "RadarAxisProperties": {
      "additionalProperties": false,
      "properties": {
        "maximum": {
          "anyOf": [
            {
              "$ref": "#/$defs/Number"
            },
            {
              "type": "null"
            }
          ],
          "description": "100 when omitted."
        },
        "minimum": {
          "anyOf": [
            {
              "$ref": "#/$defs/Number"
            },
            {
              "type": "null"
            }
          ],
          "description": "0 when omitted."
        }
      },
      "type": "object"
    },
    "RadarEntity": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/RadarAxisProperties"
            },
            "type": {
              "const": "axis",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/RadarSeriesProperties"
            },
            "type": {
              "const": "series",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "RadarGrid": {
      "description": "Radar grid outline.",
      "enum": [
        "circle",
        "polygon"
      ],
      "type": "string"
    },
    "RadarInterpolation": {
      "description": "Radar outline interpolation.",
      "enum": [
        "linear",
        "smooth"
      ],
      "type": "string"
    },
    "RadarSeriesProperties": {
      "additionalProperties": false,
      "properties": {
        "fill": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "interpolation": {
          "anyOf": [
            {
              "$ref": "#/$defs/RadarInterpolation"
            },
            {
              "type": "null"
            }
          ]
        },
        "tension": {
          "anyOf": [
            {
              "$ref": "#/$defs/Fraction"
            },
            {
              "type": "null"
            }
          ]
        },
        "values": {
          "anyOf": [
            {
              "$ref": "#/$defs/NumberList"
            },
            {
              "type": "null"
            }
          ],
          "description": "One value per axis, in axis order."
        }
      },
      "type": "object"
    },
    "ReferenceV1": {
      "additionalProperties": false,
      "description": "An inert reference. The compiler never fetches it or checks integrity.",
      "properties": {
        "id": {
          "type": "string"
        },
        "integrity": {
          "type": [
            "string",
            "null"
          ]
        },
        "label": {
          "type": [
            "string",
            "null"
          ]
        },
        "uri": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "uri"
      ],
      "type": "object"
    },
    "RelationshipPresentationV1": {
      "additionalProperties": false,
      "properties": {
        "connector_style": {
          "anyOf": [
            {
              "$ref": "#/$defs/ConnectorStyle"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "RequirementComponentProperties": {
      "additionalProperties": false,
      "properties": {
        "docref": {
          "anyOf": [
            {
              "$ref": "#/$defs/DisplayText"
            },
            {
              "type": "null"
            }
          ],
          "description": "A supporting document reference."
        },
        "role": {
          "anyOf": [
            {
              "$ref": "#/$defs/DisplayText"
            },
            {
              "type": "null"
            }
          ],
          "description": "The component's type or responsibility."
        },
        "show_kind": {
          "type": [
            "boolean",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "RequirementEntity": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/RequirementProperties"
            },
            "type": {
              "const": "requirement",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "A design element that satisfies or traces requirements.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/RequirementComponentProperties"
            },
            "type": {
              "const": "component",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "RequirementProperties": {
      "additionalProperties": false,
      "properties": {
        "external_id": {
          "anyOf": [
            {
              "$ref": "#/$defs/DisplayText"
            },
            {
              "type": "null"
            }
          ],
          "description": "The requirement's number or external reference."
        },
        "risk": {
          "anyOf": [
            {
              "$ref": "#/$defs/Risk"
            },
            {
              "type": "null"
            }
          ]
        },
        "show_kind": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "type": {
          "anyOf": [
            {
              "$ref": "#/$defs/RequirementType"
            },
            {
              "type": "null"
            }
          ],
          "description": "SysML requirement type (0.x `variant`)."
        },
        "verify": {
          "anyOf": [
            {
              "$ref": "#/$defs/VerifyMethod"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "RequirementRelation": {
      "description": "SysML requirement relationships; each type draws its stereotype.",
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "One relationship declaration of a typed leaf.",
          "properties": {
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "description": "Authored label. Empty for statements whose type is their label.",
              "type": "string"
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "source": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "type": {
              "const": "contains",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "source",
            "target"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One relationship declaration of a typed leaf.",
          "properties": {
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "description": "Authored label. Empty for statements whose type is their label.",
              "type": "string"
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "source": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "type": {
              "const": "copies",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "source",
            "target"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One relationship declaration of a typed leaf.",
          "properties": {
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "description": "Authored label. Empty for statements whose type is their label.",
              "type": "string"
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "source": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "type": {
              "const": "derives",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "source",
            "target"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One relationship declaration of a typed leaf.",
          "properties": {
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "description": "Authored label. Empty for statements whose type is their label.",
              "type": "string"
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "source": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "type": {
              "const": "satisfies",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "source",
            "target"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One relationship declaration of a typed leaf.",
          "properties": {
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "description": "Authored label. Empty for statements whose type is their label.",
              "type": "string"
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "source": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "type": {
              "const": "verifies",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "source",
            "target"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One relationship declaration of a typed leaf.",
          "properties": {
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "description": "Authored label. Empty for statements whose type is their label.",
              "type": "string"
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "source": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "type": {
              "const": "refines",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "source",
            "target"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One relationship declaration of a typed leaf.",
          "properties": {
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "description": "Authored label. Empty for statements whose type is their label.",
              "type": "string"
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "source": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "type": {
              "const": "traces",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "source",
            "target"
          ],
          "type": "object"
        }
      ]
    },
    "RequirementType": {
      "description": "SysML requirement type.",
      "enum": [
        "requirement",
        "functional",
        "interface",
        "performance",
        "physical",
        "design_constraint"
      ],
      "type": "string"
    },
    "Risk": {
      "enum": [
        "low",
        "medium",
        "high"
      ],
      "type": "string"
    },
    "RoutingQuality": {
      "enum": [
        "best_effort",
        "strict"
      ],
      "type": "string"
    },
    "SankeyEntity": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/NoProperties"
            },
            "type": {
              "const": "node",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "SankeyRelation": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "A quantity moving from one node to another.",
          "properties": {
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "description": "Authored label. Empty for statements whose type is their label.",
              "type": "string"
            },
            "properties": {
              "$ref": "#/$defs/FlowWeightProperties"
            },
            "source": {
              "type": "string"
            },
            "target": {
              "type": "string"
            },
            "type": {
              "const": "flow",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "source",
            "target"
          ],
          "type": "object"
        }
      ]
    },
    "Score": {
      "description": "A journey satisfaction score from 1 to 5 inclusive.",
      "format": "double",
      "maximum": 5,
      "minimum": 1,
      "type": "number"
    },
    "SemanticModelV1": {
      "description": "Leaf-specific semantic content. Declaration order is meaningful.",
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "edges": {
              "items": {
                "$ref": "#/$defs/FlowEdge"
              },
              "type": "array"
            },
            "entities": {
              "items": {
                "$ref": "#/$defs/FlowEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "flow",
              "type": "string"
            }
          },
          "required": [
            "leaf",
            "entities",
            "edges"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "leaf": {
              "const": "sequence",
              "type": "string"
            },
            "lifelines": {
              "items": {
                "$ref": "#/$defs/Lifeline"
              },
              "type": "array"
            },
            "messages": {
              "items": {
                "$ref": "#/$defs/SequenceMessage"
              },
              "type": "array"
            },
            "timeline": {
              "description": "Chronological notation. Plain message-only sequences retain their original representation.",
              "items": {
                "$ref": "#/$defs/SequenceEvent"
              },
              "type": "array"
            }
          },
          "required": [
            "leaf",
            "lifelines",
            "messages"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "leaf": {
              "const": "state",
              "type": "string"
            },
            "states": {
              "items": {
                "$ref": "#/$defs/StateEntity"
              },
              "type": "array"
            },
            "transitions": {
              "items": {
                "$ref": "#/$defs/Transition"
              },
              "type": "array"
            }
          },
          "required": [
            "leaf",
            "states",
            "transitions"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/CausalEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "causal",
              "type": "string"
            },
            "relations": {
              "items": {
                "$ref": "#/$defs/CausalRelation"
              },
              "type": "array"
            }
          },
          "required": [
            "leaf",
            "entities",
            "relations"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/ClassEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "class",
              "type": "string"
            },
            "relations": {
              "items": {
                "$ref": "#/$defs/ClassRelation"
              },
              "type": "array"
            }
          },
          "required": [
            "leaf",
            "entities",
            "relations"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/ErEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "er",
              "type": "string"
            },
            "relations": {
              "items": {
                "$ref": "#/$defs/ErRelation"
              },
              "type": "array"
            }
          },
          "required": [
            "leaf",
            "entities",
            "relations"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/RequirementEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "requirements",
              "type": "string"
            },
            "relations": {
              "items": {
                "$ref": "#/$defs/RequirementRelation"
              },
              "type": "array"
            }
          },
          "required": [
            "leaf",
            "entities",
            "relations"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/ContextEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "context",
              "type": "string"
            },
            "relations": {
              "items": {
                "$ref": "#/$defs/ContextRelation"
              },
              "type": "array"
            }
          },
          "required": [
            "leaf",
            "entities",
            "relations"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/DeploymentEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "deployment",
              "type": "string"
            },
            "relations": {
              "items": {
                "$ref": "#/$defs/DeploymentRelation"
              },
              "type": "array"
            }
          },
          "required": [
            "leaf",
            "entities",
            "relations"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/HierarchyEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "hierarchy",
              "type": "string"
            }
          },
          "required": [
            "leaf",
            "entities"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/BoardEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "board",
              "type": "string"
            }
          },
          "required": [
            "leaf",
            "entities"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/GanttEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "gantt",
              "type": "string"
            }
          },
          "required": [
            "leaf",
            "entities"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/EventsEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "events",
              "type": "string"
            }
          },
          "required": [
            "leaf",
            "entities"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/JourneyEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "journey",
              "type": "string"
            }
          },
          "required": [
            "leaf",
            "entities"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/GitEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "git",
              "type": "string"
            },
            "relations": {
              "items": {
                "$ref": "#/$defs/GitRelation"
              },
              "type": "array"
            }
          },
          "required": [
            "leaf",
            "entities",
            "relations"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/PieEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "pie",
              "type": "string"
            }
          },
          "required": [
            "leaf",
            "entities"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/QuadrantEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "quadrant",
              "type": "string"
            }
          },
          "required": [
            "leaf",
            "entities"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/XyEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "xy",
              "type": "string"
            }
          },
          "required": [
            "leaf",
            "entities"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/RadarEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "radar",
              "type": "string"
            }
          },
          "required": [
            "leaf",
            "entities"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/SankeyEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "sankey",
              "type": "string"
            },
            "relations": {
              "items": {
                "$ref": "#/$defs/SankeyRelation"
              },
              "type": "array"
            }
          },
          "required": [
            "leaf",
            "entities",
            "relations"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/BlockEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "block",
              "type": "string"
            }
          },
          "required": [
            "leaf",
            "entities"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "entities": {
              "items": {
                "$ref": "#/$defs/PacketEntity"
              },
              "type": "array"
            },
            "leaf": {
              "const": "packet",
              "type": "string"
            }
          },
          "required": [
            "leaf",
            "entities"
          ],
          "type": "object"
        }
      ]
    },
    "SequenceEvent": {
      "description": "Ordered sequence notation. Message declarations keep their typed endpoints and\nevidence; references here position them between fragment boundaries and notes.",
      "oneOf": [
        {
          "additionalProperties": false,
          "properties": {
            "event": {
              "const": "message",
              "type": "string"
            },
            "id": {
              "type": "string"
            }
          },
          "required": [
            "event",
            "id"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "event": {
              "const": "alt",
              "type": "string"
            },
            "id": {
              "type": "string"
            }
          },
          "required": [
            "event",
            "id"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "event": {
              "const": "case",
              "type": "string"
            },
            "guard": {
              "type": "string"
            },
            "id": {
              "type": "string"
            }
          },
          "required": [
            "event",
            "id",
            "guard"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "event": {
              "const": "opt",
              "type": "string"
            },
            "guard": {
              "type": "string"
            },
            "id": {
              "type": "string"
            }
          },
          "required": [
            "event",
            "id",
            "guard"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "actor": {
              "type": "string"
            },
            "event": {
              "const": "note",
              "type": "string"
            },
            "id": {
              "type": "string"
            },
            "placement": {
              "$ref": "#/$defs/NotePlacement"
            },
            "second_actor": {
              "type": [
                "string",
                "null"
              ]
            },
            "text": {
              "type": "string"
            }
          },
          "required": [
            "event",
            "id",
            "text",
            "placement",
            "actor"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "properties": {
            "event": {
              "const": "end",
              "type": "string"
            },
            "id": {
              "type": "string"
            }
          },
          "required": [
            "event",
            "id"
          ],
          "type": "object"
        }
      ]
    },
    "SequenceMessage": {
      "additionalProperties": false,
      "properties": {
        "evidence": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "id": {
          "type": "string"
        },
        "kind": {
          "$ref": "#/$defs/SequenceMessageKind"
        },
        "label": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "target": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "kind",
        "source",
        "target"
      ],
      "type": "object"
    },
    "SequenceMessageKind": {
      "description": "Sequence relationship types. Delivery is the type, not a line style.",
      "oneOf": [
        {
          "const": "message",
          "description": "A synchronous call.",
          "type": "string"
        },
        {
          "const": "reply",
          "description": "A return to an earlier call.",
          "type": "string"
        },
        {
          "const": "signal",
          "description": "An asynchronous notification.",
          "type": "string"
        }
      ]
    },
    "SeriesMark": {
      "description": "XY series mark.",
      "enum": [
        "bar",
        "line"
      ],
      "type": "string"
    },
    "SliceProperties": {
      "additionalProperties": false,
      "properties": {
        "value": {
          "anyOf": [
            {
              "$ref": "#/$defs/NonNegative"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "Stability": {
      "description": "Honest maturity label reported through capabilities.",
      "enum": [
        "experimental",
        "stable"
      ],
      "type": "string"
    },
    "StageAction": {
      "description": "Explanation stage actions. Each resolves to a persistent scene state.",
      "enum": [
        "reveal",
        "activate",
        "trace",
        "set",
        "compare",
        "frame"
      ],
      "type": "string"
    },
    "StageV1": {
      "additionalProperties": false,
      "properties": {
        "action": {
          "$ref": "#/$defs/StageAction"
        },
        "after": {
          "description": "Optional explicit predecessor; must be the preceding stage.",
          "type": [
            "string",
            "null"
          ]
        },
        "duration": {
          "anyOf": [
            {
              "$ref": "#/$defs/DurationV1"
            },
            {
              "type": "null"
            }
          ],
          "description": "Omitted means the default 550ms."
        },
        "id": {
          "type": "string"
        },
        "targets": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "value": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "action",
        "targets"
      ],
      "type": "object"
    },
    "StateEntity": {
      "additionalProperties": false,
      "properties": {
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "evidence": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "id": {
          "type": "string"
        },
        "kind": {
          "$ref": "#/$defs/StateKind"
        },
        "label": {
          "type": "string"
        },
        "parent": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "label",
        "kind"
      ],
      "type": "object"
    },
    "StateKind": {
      "enum": [
        "state",
        "initial",
        "final"
      ],
      "type": "string"
    },
    "TaskProperties": {
      "additionalProperties": false,
      "properties": {
        "after": {
          "anyOf": [
            {
              "$ref": "#/$defs/IdRef"
            },
            {
              "type": "null"
            }
          ],
          "description": "Starts when this task ends."
        },
        "duration": {
          "anyOf": [
            {
              "$ref": "#/$defs/NonNegative"
            },
            {
              "type": "null"
            }
          ],
          "description": "Length in days."
        },
        "end": {
          "anyOf": [
            {
              "$ref": "#/$defs/Date"
            },
            {
              "type": "null"
            }
          ],
          "description": "Exclusive calendar end."
        },
        "note": {
          "anyOf": [
            {
              "$ref": "#/$defs/DisplayText"
            },
            {
              "type": "null"
            }
          ],
          "description": "Carried in the semantic outline."
        },
        "start": {
          "anyOf": [
            {
              "$ref": "#/$defs/Date"
            },
            {
              "type": "null"
            }
          ]
        },
        "status": {
          "anyOf": [
            {
              "$ref": "#/$defs/TaskStatus"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "TaskStatus": {
      "description": "Gantt task status.",
      "enum": [
        "planned",
        "active",
        "done",
        "critical",
        "milestone"
      ],
      "type": "string"
    },
    "TextList": {
      "description": "A non-empty bracketed list of quoted labels, such as `[\"Mon\", \"Tue\"]`.",
      "items": {
        "type": "string"
      },
      "minItems": 1,
      "type": "array"
    },
    "ThemeFamily": {
      "enum": [
        "aurora",
        "paper",
        "blueprint",
        "editorial",
        "playful"
      ],
      "type": "string"
    },
    "ThemeMode": {
      "enum": [
        "light",
        "dark"
      ],
      "type": "string"
    },
    "ThemeV1": {
      "additionalProperties": false,
      "description": "A theme family plus an optional fixed luminance mode (`aurora-light`).",
      "properties": {
        "family": {
          "$ref": "#/$defs/ThemeFamily"
        },
        "mode": {
          "anyOf": [
            {
              "$ref": "#/$defs/ThemeMode"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "family"
      ],
      "type": "object"
    },
    "TimelineStyle": {
      "description": "Events timelines draw cards unless `simple` is requested.",
      "enum": [
        "simple",
        "cards"
      ],
      "type": "string"
    },
    "Tone": {
      "enum": [
        "info",
        "success",
        "warning",
        "danger"
      ],
      "type": "string"
    },
    "Transition": {
      "additionalProperties": false,
      "properties": {
        "evidence": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "id": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "source": {
          "type": "string"
        },
        "target": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "source",
        "target"
      ],
      "type": "object"
    },
    "VerifyMethod": {
      "description": "How a requirement is verified.",
      "enum": [
        "analysis",
        "inspection",
        "test",
        "demonstration"
      ],
      "type": "string"
    },
    "Visibility": {
      "description": "UML member visibility, drawn as `+`, `-`, `#` or `~`.",
      "enum": [
        "public",
        "private",
        "protected",
        "package"
      ],
      "type": "string"
    },
    "Whole": {
      "description": "A whole number of 0 or more.",
      "format": "uint32",
      "minimum": 0,
      "type": "integer"
    },
    "WordText": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "$ref": "#/$defs/BareName"
        }
      ],
      "description": "Display text without the number form: quoted text (drawn exactly as\nwritten) or a bare name. Used where the 0.x renderer requires text or an\nidentifier (a C4 `technology` such as `\"1.2\"` must stay text)."
    },
    "XAxisProperties": {
      "additionalProperties": false,
      "properties": {
        "categories": {
          "anyOf": [
            {
              "$ref": "#/$defs/TextList"
            },
            {
              "type": "null"
            }
          ],
          "description": "One category label per data value (0.x `values`)."
        }
      },
      "type": "object"
    },
    "XyEntity": {
      "oneOf": [
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/XAxisProperties"
            },
            "type": {
              "const": "x_axis",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/YAxisProperties"
            },
            "type": {
              "const": "y_axis",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        },
        {
          "additionalProperties": false,
          "description": "One entity declaration of a typed leaf: identity, label, containment,\ndescription and evidence shared by every statement, plus the statement's\nown typed properties.",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "evidence": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "id": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "parent": {
              "type": [
                "string",
                "null"
              ]
            },
            "properties": {
              "$ref": "#/$defs/XySeriesProperties"
            },
            "type": {
              "const": "series",
              "type": "string"
            }
          },
          "required": [
            "type",
            "id",
            "label"
          ],
          "type": "object"
        }
      ]
    },
    "XyInterpolation": {
      "description": "XY line interpolation.",
      "enum": [
        "linear",
        "smooth",
        "step"
      ],
      "type": "string"
    },
    "XySeriesProperties": {
      "additionalProperties": false,
      "properties": {
        "interpolation": {
          "anyOf": [
            {
              "$ref": "#/$defs/XyInterpolation"
            },
            {
              "type": "null"
            }
          ]
        },
        "mark": {
          "anyOf": [
            {
              "$ref": "#/$defs/SeriesMark"
            },
            {
              "type": "null"
            }
          ],
          "description": "Bar or line (0.x `role`)."
        },
        "tension": {
          "anyOf": [
            {
              "$ref": "#/$defs/Fraction"
            },
            {
              "type": "null"
            }
          ]
        },
        "values": {
          "anyOf": [
            {
              "$ref": "#/$defs/NumberList"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    },
    "YAxisProperties": {
      "additionalProperties": false,
      "properties": {
        "maximum": {
          "anyOf": [
            {
              "$ref": "#/$defs/Number"
            },
            {
              "type": "null"
            }
          ]
        },
        "minimum": {
          "anyOf": [
            {
              "$ref": "#/$defs/Number"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "type": "object"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Layered Graff 1 document.",
  "properties": {
    "annotations": {
      "items": {
        "$ref": "#/$defs/AnnotationV1"
      },
      "type": "array"
    },
    "comments": {
      "description": "Nonsemantic `#` source trivia. Text is preserved; positions are not.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "dependencies": {
      "$ref": "#/$defs/DependenciesV1"
    },
    "explanation": {
      "items": {
        "$ref": "#/$defs/ExplanationV1"
      },
      "type": "array"
    },
    "header": {
      "$ref": "#/$defs/HeaderV1"
    },
    "presentation": {
      "$ref": "#/$defs/PresentationV1"
    },
    "provenance": {
      "items": {
        "$ref": "#/$defs/ProvenanceV1"
      },
      "type": "array"
    },
    "references": {
      "items": {
        "$ref": "#/$defs/ReferenceV1"
      },
      "type": "array"
    },
    "semantic": {
      "$ref": "#/$defs/SemanticModelV1"
    }
  },
  "required": [
    "header",
    "semantic",
    "presentation",
    "dependencies"
  ],
  "title": "DocumentV1",
  "type": "object"
}
