{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "urn:wavenumber:schema:kicad_monkey.symbol_plot.document:a0",
    "type": "object",
    "properties": {
        "schema": {
            "type": "string",
            "const": "kicad.plotter_ir.a0"
        },
        "source_kind": {
            "type": "string",
            "const": "SYM"
        },
        "total_operations": {
            "type": "integer",
            "minimum": 0,
            "maximum": 4294967295
        },
        "records": {
            "type": "array",
            "items": {
                "$ref": "#/$defs/SymbolPlotRecord"
            }
        },
        "source_path": {
            "type": "string"
        },
        "document_id": {
            "type": "string"
        },
        "coordinate_space": {
            "$ref": "#/$defs/PlotterCoordinateSpace"
        }
    },
    "required": [
        "schema",
        "source_kind",
        "total_operations",
        "records",
        "document_id",
        "coordinate_space"
    ],
    "unevaluatedProperties": {
        "not": {}
    },
    "description": "Strict cache-free library-symbol geometry and text subset of kicad.plotter_ir.a0.",
    "title": "Symbol plot document a0",
    "$defs": {
        "SymbolPlotRecord": {
            "anyOf": [
                {
                    "$ref": "#/$defs/SymbolHeaderPlotRecord"
                },
                {
                    "$ref": "#/$defs/LibSubsymbolPlotRecord"
                }
            ]
        },
        "PlotterCoordinateSpace": {
            "type": "object",
            "properties": {
                "unit": {
                    "type": "string",
                    "const": "nm"
                },
                "y_axis": {
                    "type": "string",
                    "const": "down"
                }
            },
            "required": [
                "unit",
                "y_axis"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Coordinate convention for the footprint plotter slice."
        },
        "SymbolHeaderPlotRecord": {
            "type": "object",
            "properties": {
                "uuid": {
                    "type": "string",
                    "const": ""
                },
                "kind": {
                    "type": "string",
                    "const": "lib_symbol"
                },
                "object_id": {
                    "type": "string"
                },
                "operation_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "operations": {
                    "type": "array",
                    "items": {
                        "$ref": "#/$defs/PlotterOperation"
                    }
                },
                "name": {
                    "type": "string"
                },
                "extends": {
                    "type": "string"
                },
                "unit": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "style": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "in_bom": {
                    "type": "boolean"
                },
                "on_board": {
                    "type": "boolean"
                },
                "power": {
                    "type": "boolean"
                }
            },
            "required": [
                "uuid",
                "kind",
                "object_id",
                "operation_count",
                "operations",
                "name",
                "style",
                "in_bom",
                "on_board",
                "power"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Leading metadata record for the selected library symbol."
        },
        "LibSubsymbolPlotRecord": {
            "type": "object",
            "properties": {
                "uuid": {
                    "type": "string",
                    "const": ""
                },
                "kind": {
                    "type": "string",
                    "const": "lib_subsymbol"
                },
                "object_id": {
                    "type": "string"
                },
                "operation_count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "operations": {
                    "type": "array",
                    "items": {
                        "$ref": "#/$defs/PlotterOperation"
                    }
                },
                "unit": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "style": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                }
            },
            "required": [
                "uuid",
                "kind",
                "object_id",
                "operation_count",
                "operations",
                "unit",
                "style"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "One selected graphical subsymbol record."
        },
        "PlotterOperation": {
            "anyOf": [
                {
                    "$ref": "#/$defs/ThickSegmentOperation"
                },
                {
                    "$ref": "#/$defs/ArcThreePointOperation"
                },
                {
                    "$ref": "#/$defs/CircleOperation"
                },
                {
                    "$ref": "#/$defs/RectOperation"
                },
                {
                    "$ref": "#/$defs/PlotPolyOperation"
                },
                {
                    "$ref": "#/$defs/BezierCurveOperation"
                },
                {
                    "$ref": "#/$defs/TextOperation"
                },
                {
                    "$ref": "#/$defs/PlotImageOperation"
                },
                {
                    "$ref": "#/$defs/FlashPadCircleOperation"
                },
                {
                    "$ref": "#/$defs/FlashPadOvalOperation"
                },
                {
                    "$ref": "#/$defs/FlashPadRectOperation"
                },
                {
                    "$ref": "#/$defs/FlashPadRoundRectOperation"
                },
                {
                    "$ref": "#/$defs/FlashPadCustomOperation"
                },
                {
                    "$ref": "#/$defs/FlashPadTrapezOperation"
                }
            ],
            "description": "Shared plotter operation vocabulary promoted across source producers."
        },
        "ThickSegmentOperation": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "const": "ThickSegment"
                },
                "index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "start_x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "start_y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "end_x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "end_y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "width_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "layer": {
                    "type": "string"
                },
                "role": {
                    "$ref": "#/$defs/PlotterDrillRole"
                },
                "layers": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "mask_margin_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "pad_size_x_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "pad_size_y_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "stroke_color": {
                    "type": "string"
                }
            },
            "required": [
                "kind",
                "index",
                "start_x",
                "start_y",
                "end_x",
                "end_y",
                "width_nm"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Solid or decomposed segment shared by PCB, footprint, and drill producers.\nGraphic state requires only layer. Drill state requires role plus layers;\nNPTH drill state additionally requires all mask and pad-size hints. The\ngenerated semantic validator enforces these mutually exclusive states."
        },
        "ArcThreePointOperation": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "const": "ArcThreePoint"
                },
                "index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "start_x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "start_y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "mid_x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "mid_y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "end_x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "end_y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "fill": {
                    "$ref": "#/$defs/PlotterFill"
                },
                "width_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "layer": {
                    "type": "string"
                },
                "stroke_color": {
                    "type": "string"
                },
                "fill_color": {
                    "type": "string"
                },
                "line_style": {
                    "$ref": "#/$defs/PlotterLineStyle"
                }
            },
            "required": [
                "kind",
                "index",
                "start_x",
                "start_y",
                "mid_x",
                "mid_y",
                "end_x",
                "end_y",
                "fill",
                "width_nm"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Solid three-point arc."
        },
        "CircleOperation": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "const": "Circle"
                },
                "index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "cx": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "cy": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "diameter_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "fill": {
                    "$ref": "#/$defs/PlotterFill"
                },
                "width_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "layer": {
                    "type": "string"
                },
                "role": {
                    "$ref": "#/$defs/PlotterDrillRole"
                },
                "layers": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "mask_margin_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "pad_size_x_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "pad_size_y_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "stroke_color": {
                    "type": "string"
                },
                "fill_color": {
                    "type": "string"
                },
                "line_style": {
                    "$ref": "#/$defs/PlotterLineStyle"
                }
            },
            "required": [
                "kind",
                "index",
                "cx",
                "cy",
                "diameter_nm",
                "fill",
                "width_nm"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Circle shared by graphical and drill producers. Graphic state requires only\nlayer. Drill state requires role plus layers; NPTH state additionally\nrequires all mask and pad-size hints. The generated semantic validator\nenforces these mutually exclusive states."
        },
        "RectOperation": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "const": "Rect"
                },
                "index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "x1": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "y1": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "x2": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "y2": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "fill": {
                    "$ref": "#/$defs/PlotterFill"
                },
                "width_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "corner_radius_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "layer": {
                    "type": "string"
                },
                "stroke_color": {
                    "type": "string"
                },
                "fill_color": {
                    "type": "string"
                },
                "line_style": {
                    "$ref": "#/$defs/PlotterLineStyle"
                }
            },
            "required": [
                "kind",
                "index",
                "x1",
                "y1",
                "x2",
                "y2",
                "fill",
                "width_nm",
                "corner_radius_nm"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Rectangle with square corners."
        },
        "PlotPolyOperation": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "const": "PlotPoly"
                },
                "index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "points": {
                    "type": "array",
                    "items": {
                        "$ref": "#/$defs/PlotterPoint"
                    }
                },
                "fill": {
                    "$ref": "#/$defs/PlotterFill"
                },
                "width_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "layer": {
                    "type": "string"
                },
                "stroke_color": {
                    "type": "string"
                },
                "fill_color": {
                    "type": "string"
                },
                "line_style": {
                    "$ref": "#/$defs/PlotterLineStyle"
                }
            },
            "required": [
                "kind",
                "index",
                "points",
                "fill",
                "width_nm"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Filled or outlined polygon operation."
        },
        "BezierCurveOperation": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "const": "BezierCurve"
                },
                "index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "start_x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "start_y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "ctrl1_x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "ctrl1_y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "ctrl2_x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "ctrl2_y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "end_x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "end_y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "width_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "tolerance_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "layer": {
                    "type": "string"
                },
                "stroke_color": {
                    "type": "string"
                },
                "line_style": {
                    "$ref": "#/$defs/PlotterLineStyle"
                }
            },
            "required": [
                "kind",
                "index",
                "start_x",
                "start_y",
                "ctrl1_x",
                "ctrl1_y",
                "ctrl2_x",
                "ctrl2_y",
                "end_x",
                "end_y",
                "width_nm",
                "tolerance_nm"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Cubic Bézier shared by symbol and schematic producers."
        },
        "TextOperation": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "const": "Text"
                },
                "index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "text": {
                    "type": "string"
                },
                "color": {
                    "type": "string"
                },
                "orient_deg": {
                    "type": "number"
                },
                "size_x_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "size_y_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "h_align": {
                    "$ref": "#/$defs/PlotterTextHAlign"
                },
                "v_align": {
                    "$ref": "#/$defs/PlotterTextVAlign"
                },
                "pen_width_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "italic": {
                    "type": "boolean"
                },
                "bold": {
                    "type": "boolean"
                },
                "multiline": {
                    "type": "boolean"
                },
                "font_face": {
                    "type": "string"
                },
                "context": {
                    "$ref": "#/$defs/PlotterOperationContext"
                },
                "layer": {
                    "type": "string"
                },
                "mirror": {
                    "type": "boolean"
                },
                "text_as_polygons": {
                    "type": "boolean"
                },
                "polyline_per_segment": {
                    "type": "boolean"
                },
                "knockout": {
                    "type": "boolean"
                },
                "render_cache_polygons": {
                    "type": "array",
                    "items": {
                        "type": "array",
                        "items": {
                            "$ref": "#/$defs/PlotterPoint"
                        }
                    }
                },
                "render_cache": {
                    "$ref": "#/$defs/TextRenderCache"
                },
                "render_cache_source": {
                    "$ref": "#/$defs/PlotterTextRenderCacheSource"
                },
                "render_cache_exact": {
                    "type": "boolean"
                }
            },
            "required": [
                "kind",
                "index",
                "x",
                "y",
                "text",
                "color",
                "orient_deg",
                "size_x_nm",
                "size_y_nm",
                "h_align",
                "v_align",
                "pen_width_nm",
                "italic",
                "bold",
                "multiline",
                "font_face"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Stroke or cached text operation. Boolean marker keys (`mirror`,\n`text_as_polygons`, `polyline_per_segment`, `knockout`) are present-only\n-when-true, matching the established Python emitter. Render-cache keys\nappear together when an authored cache resolves; `render_cache_polygons`\ncarries the exterior rings in nanometres."
        },
        "PlotImageOperation": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "const": "PlotImage"
                },
                "index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "width_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "height_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "scale": {
                    "type": "number"
                },
                "image_data_b64": {
                    "type": "string"
                },
                "image_format": {
                    "type": "string"
                },
                "stroke_color": {
                    "type": "string"
                }
            },
            "required": [
                "kind",
                "index",
                "x",
                "y",
                "width_nm",
                "height_nm",
                "scale",
                "image_data_b64",
                "image_format"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Decoded image placement shared by worksheet and schematic producers."
        },
        "FlashPadCircleOperation": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "const": "FlashPadCircle"
                },
                "index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "diameter_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "layers": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "mask_margin_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "role": {
                    "$ref": "#/$defs/PlotterViaFlashRole"
                }
            },
            "required": [
                "kind",
                "index",
                "x",
                "y",
                "diameter_nm",
                "layers"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Circular pad flash shared by footprint and PCB producers. Footprint pad\nstate requires mask_margin_nm and forbids role. Board via state requires\nrole and forbids mask_margin_nm. The generated semantic validator enforces\nthese mutually exclusive states."
        },
        "FlashPadOvalOperation": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "const": "FlashPadOval"
                },
                "index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "size_x_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "size_y_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "orient_deg": {
                    "type": "number"
                },
                "layers": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "mask_margin_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                }
            },
            "required": [
                "kind",
                "index",
                "x",
                "y",
                "size_x_nm",
                "size_y_nm",
                "orient_deg",
                "layers",
                "mask_margin_nm"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Oval pad flash shared by footprint and PCB producers."
        },
        "FlashPadRectOperation": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "const": "FlashPadRect"
                },
                "index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "size_x_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "size_y_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "orient_deg": {
                    "type": "number"
                },
                "layers": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "mask_margin_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                }
            },
            "required": [
                "kind",
                "index",
                "x",
                "y",
                "size_x_nm",
                "size_y_nm",
                "orient_deg",
                "layers",
                "mask_margin_nm"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Rectangular pad flash shared by footprint and PCB producers."
        },
        "FlashPadRoundRectOperation": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "const": "FlashPadRoundRect"
                },
                "index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "size_x_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "size_y_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "corner_radius_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "orient_deg": {
                    "type": "number"
                },
                "layers": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "mask_margin_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                }
            },
            "required": [
                "kind",
                "index",
                "x",
                "y",
                "size_x_nm",
                "size_y_nm",
                "corner_radius_nm",
                "orient_deg",
                "layers",
                "mask_margin_nm"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Rounded-rectangle pad flash shared by footprint and PCB producers."
        },
        "FlashPadCustomOperation": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "const": "FlashPadCustom"
                },
                "index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "size_x_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "size_y_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "orient_deg": {
                    "type": "number"
                },
                "polygons": {
                    "type": "array",
                    "items": {
                        "type": "array",
                        "items": {
                            "$ref": "#/$defs/PlotterPoint"
                        }
                    }
                },
                "polygon_widths_nm": {
                    "type": "array",
                    "items": {
                        "$ref": "#/$defs/JavaScriptSafeInteger"
                    }
                },
                "anchor_shape": {
                    "type": "string"
                },
                "layers": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "mask_margin_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                }
            },
            "required": [
                "kind",
                "index",
                "x",
                "y",
                "size_x_nm",
                "size_y_nm",
                "orient_deg",
                "polygons",
                "layers",
                "mask_margin_nm"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Custom pad flash shared by footprint and PCB producers. Polygon coordinates\nare pad-local. A non-empty polygon_widths_nm has one entry per polygon;\ngenerated semantic validation enforces that relationship. An empty array is\nequivalent to omission for generated Rust transport bindings."
        },
        "FlashPadTrapezOperation": {
            "type": "object",
            "properties": {
                "kind": {
                    "type": "string",
                    "const": "FlashPadTrapez"
                },
                "index": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 4294967295
                },
                "x": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "y": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                },
                "corners": {
                    "$ref": "#/$defs/PlotterQuad"
                },
                "orient_deg": {
                    "type": "number"
                },
                "layers": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "mask_margin_nm": {
                    "$ref": "#/$defs/JavaScriptSafeInteger"
                }
            },
            "required": [
                "kind",
                "index",
                "x",
                "y",
                "corners",
                "orient_deg",
                "layers",
                "mask_margin_nm"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Trapezoid pad flash shared by footprint and PCB producers."
        },
        "JavaScriptSafeInteger": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Integer that remains exact when decoded as a JavaScript number."
        },
        "PlotterDrillRole": {
            "type": "string",
            "enum": [
                "pad_drill",
                "npth_hole",
                "via_drill",
                "via_mask_drill"
            ],
            "description": "Semantic roles allowed on shared circle and segment drill operations."
        },
        "PlotterFill": {
            "type": "string",
            "enum": [
                "NO_FILL",
                "FILLED_SHAPE",
                "FILLED_WITH_BG_BODYCOLOR",
                "FILLED_WITH_COLOR",
                "HATCH",
                "REVERSE_HATCH",
                "CROSS_HATCH"
            ],
            "description": "Fill values shared by plotter operation producers."
        },
        "PlotterLineStyle": {
            "type": "string",
            "enum": [
                "DEFAULT",
                "SOLID",
                "DASH",
                "DOT",
                "DASH_DOT",
                "DASH_DOT_DOT"
            ],
            "description": "KiCad stroke styles carried without producer-specific decomposition."
        },
        "PlotterPoint": {
            "type": "array",
            "items": {
                "$ref": "#/$defs/JavaScriptSafeInteger"
            },
            "minItems": 2,
            "maxItems": 2,
            "description": "Plotter point encoded as an exact coordinate pair."
        },
        "PlotterTextHAlign": {
            "type": "string",
            "enum": [
                "GR_TEXT_H_ALIGN_LEFT",
                "GR_TEXT_H_ALIGN_CENTER",
                "GR_TEXT_H_ALIGN_RIGHT"
            ],
            "description": "Horizontal text alignments emitted by the board producers."
        },
        "PlotterTextVAlign": {
            "type": "string",
            "enum": [
                "GR_TEXT_V_ALIGN_TOP",
                "GR_TEXT_V_ALIGN_CENTER",
                "GR_TEXT_V_ALIGN_BOTTOM"
            ],
            "description": "Vertical text alignments emitted by the board producers."
        },
        "PlotterOperationContext": {
            "type": "object",
            "properties": {
                "hyperlink": {
                    "$ref": "#/$defs/PlotterHyperlink"
                }
            },
            "required": [
                "hyperlink"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Strict operation-local context emitted by current plotter producers."
        },
        "TextRenderCache": {
            "type": "object",
            "properties": {
                "schema": {
                    "type": "string",
                    "const": "kicad.render_cache.v1"
                },
                "unit": {
                    "type": "string",
                    "const": "nm"
                },
                "coordinate_space": {
                    "$ref": "#/$defs/PlotterTextRenderCacheCoordinateSpace"
                },
                "text": {
                    "type": "string"
                },
                "angle": {
                    "type": "number"
                },
                "source": {
                    "$ref": "#/$defs/PlotterTextRenderCacheSource"
                },
                "exact": {
                    "type": "boolean"
                },
                "polygons": {
                    "type": "array",
                    "items": {
                        "$ref": "#/$defs/TextRenderCachePolygon"
                    }
                },
                "knockout": {
                    "type": "boolean"
                }
            },
            "required": [
                "schema",
                "unit",
                "coordinate_space",
                "text",
                "angle",
                "source",
                "exact",
                "polygons"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "Typed render cache from an authored `(render_cache ...)` form, the Python\nresolver, or the deterministic native hinted outline engine. `knockout` appears when the\nknockout background restructure replaced the polygons."
        },
        "PlotterTextRenderCacheSource": {
            "type": "string",
            "enum": [
                "existing_file_cache",
                "python_generated_cache",
                "native_generated_cache"
            ],
            "description": "Provenance of one attached text render cache."
        },
        "PlotterViaFlashRole": {
            "type": "string",
            "enum": [
                "via_aperture",
                "via_mask_opening"
            ],
            "description": "Semantic roles allowed on board via flash operations."
        },
        "PlotterQuad": {
            "type": "array",
            "items": {
                "$ref": "#/$defs/PlotterPoint"
            },
            "minItems": 4,
            "maxItems": 4,
            "description": "Four pad-local trapezoid corners."
        },
        "PlotterHyperlink": {
            "type": "object",
            "properties": {
                "href": {
                    "type": "string",
                    "minLength": 1
                }
            },
            "required": [
                "href"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "One exact hyperlink attached to an authored plotter text carrier."
        },
        "PlotterTextRenderCacheCoordinateSpace": {
            "type": "string",
            "enum": [
                "board",
                "footprint_local"
            ],
            "description": "Coordinate space carried by one typed text render cache."
        },
        "TextRenderCachePolygon": {
            "type": "object",
            "properties": {
                "contours": {
                    "type": "array",
                    "items": {
                        "type": "array",
                        "items": {
                            "$ref": "#/$defs/PlotterPoint"
                        }
                    }
                }
            },
            "required": [
                "contours"
            ],
            "unevaluatedProperties": {
                "not": {}
            },
            "description": "One render-cache polygon as ordered contours, exterior ring first."
        }
    }
}