commandagi 0.6.10

The CommandAGI SDK for Rust: the platform client (agent threads, live sessions on a simulated world) and CommandAGI documents (a schematic, a 3D part …) declared as code. No dependencies.
Documentation
1
{"roots":{"code":"CodeFeature","sketch":"SketchFeature","extrude":"ExtrudeFeature","revolve":"RevolveFeature","sweep":"SweepFeature","curve":"CurveFeature","rod":"RodFeature","loft":"LoftFeature","fillet":"FilletFeature","chamfer":"ChamferFeature","shell":"ShellFeature","box":"BoxFeature","import":"ImportFeature","externalPart":"ExternalPartRef","cylinder":"CylinderFeature","sphere":"SphereFeature","cone":"ConeFeature","makeHuman":"MakeHumanFeature","linearPattern":"LinearPatternFeature","circularPattern":"CircularPatternFeature","pathPattern":"PathPatternFeature","mirror":"MirrorFeature","datumPlane":"DatumPlaneFeature","datumAxis":"DatumAxisFeature","datumPoint":"DatumPointFeature","draft":"DraftFeature","hole":"HoleFeature","transform":"TransformFeature","sheetMetal":"SheetMetalFeature","sheetCorner":"SheetCornerFeature","sheetConvert":"SheetConvertFeature","sheetBase":"SheetBaseFeature","sheetFlange":"SheetFlangeFeature","sheetHem":"SheetHemFeature","sheetFold":"SheetFoldFeature","unfold":"UnfoldFeature","sheetRefold":"SheetRefoldFeature","frameMember":"FrameMemberFeature","endCap":"EndCapFeature","wrapText":"WrapTextFeature","deleteFace":"DeleteFaceFeature","fullRound":"FullRoundFeature","dome":"DomeFeature","copyBody":"CopyBodyFeature","thread":"ThreadFeature","coil":"CoilFeature","combine":"CombineFeature","offsetFaces":"OffsetFacesFeature","thicken":"ThickenFeature","trimSurface":"TrimSurfaceFeature","untrimSurface":"UntrimSurfaceFeature","extendSurface":"ExtendSurfaceFeature","stitch":"StitchFeature","replaceFace":"ReplaceFaceFeature","offsetSurface":"OffsetSurfaceFeature","split":"SplitFeature","scale":"ScaleFeature","rib":"RibFeature","subdivBody":"SubdivBodyFeature","meshModifier":"MeshModifierFeature","meshBody":"MeshBodyFeature","generate":"GenerateFeature","pointCloud":"PointCloudFeature","gaussianSplat":"GaussianSplatFeature","molecule":"MoleculeFeature","skeleton":"SkeletonFeature","volume":"VolumeFeature","graph":"GraphFeature","pcbTrace":"PcbTraceFeature","generateVia":"GenerateViaFeature","platedHole":"PlatedHoleFeature","copperPour":"CopperPourFeature"},"$defs":{"AcceptedFinding":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_.-]+$"},"check":{"type":"string","description":"The check (its id) whose findings this accepts; one that is no check of the document is an error.","pattern":"\\S"},"body":{"type":"string","description":"The body, by id, name or part number (`*` matches any text); or an `<item>` by its id.","pattern":"\\S"},"rule":{"type":"string","description":"Only the findings of this rule."},"region":{"$ref":"#/$defs/CheckRegion","description":"Where, in the body's own frame. Absent: the findings that have no place, or, with `other`, those between two bodies."},"other":{"type":"string","description":"The other body of a pair, named as `body` is: the findings between the two, anywhere (no region).","pattern":"\\S"},"maxVolume":{"type":"number","description":"The largest shared volume it covers (mm³): a clash that shares more (outside threads) is not covered, so a body that moves deeper into its neighbour than the design draws (a pose, a swept joint) is a finding again.","minimum":0},"reason":{"type":"string","description":"Why this finding is right on purpose.","pattern":"\\S"}},"required":["id","check","body","reason"],"additionalProperties":false,"description":"A FINDING ACCEPTED ON PURPOSE: `<accept check body region reason />`. It suppresses the findings of that check on that body whose location, in the body's own frame, lies in `region`. A region within 5 % of the body's box and 100 000 mm³ covers every finding in it; a larger one covers only a finding whose own extent (a clash's box, else its point), grown by 5 mm, holds the whole region, and one that covers none is refused: it is itself an error. With `other` and no region it covers the findings between two bodies (a part modelled as its envelope inside another: `<accept check=\"clash\" body=\"Spindle\" other=\"Clamp ring\" reason=\"…\" />`); `maxVolume` bounds what it covers, so a body that moves deeper in is a finding again. With neither, it covers only findings with no place (a logistics finding: `<accept check=\"sourcing\" body=\"Label\" rule=\"no-supplier\" reason=\"…\" />`). A suppressed finding stays in the report with the accept that suppressed it and severity `suppressed`."},"Alternate":{"type":"object","properties":{"manufacturer":{"type":"string","pattern":"\\S"},"mpn":{"type":"string","pattern":"\\S"},"note":{"type":"string"},"approved":{"type":"boolean","description":"false: a candidate still being qualified; it is named, never filled from. Absent: approved."},"differences":{"type":"array","items":{"type":"string"},"description":"What differs from this part, one statement each (\"rated stroke 1.5 mm, not 2.0 mm\"); [] states a drop-in."},"datasheet":{"type":"string"},"suppliers":{"type":"array","items":{"$ref":"#/$defs/SupplierOffer"},"description":"Who sells the alternate, on what terms: a logistics plan may fill the line from them (`<use mpn offer>`)."}},"required":["manufacturer","mpn"],"additionalProperties":false,"description":"A SECOND SOURCE WITH ANOTHER MPN: another maker's part that may be fitted in place of this one, what differs (as a person states it: nothing infers it), whether it is approved, and who sells it."},"Anchor":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"point"},"at":{"$ref":"#/$defs/Vec3"}},"required":["type","at"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"topo"},"ref":{"$ref":"#/$defs/TopoRef"}},"required":["type","ref"],"additionalProperties":false},{"$ref":"#/$defs/AnchorGroup"},{"$ref":"#/$defs/AnchorOf"},{"$ref":"#/$defs/AnchorGeometry"},{"$ref":"#/$defs/AnchorPart"}],"description":"Where an annotation attaches in space. Either a bare world POINT (mm) or a robust TOPOLOGY REFERENCE (face center / edge midpoint / vertex) that re-resolves across rebuilds. A topo anchor always carries a usable position in `ref.signature.point`, so anchorPoint is kernel-free."},"AnchorGeometry":{"type":"object","properties":{"type":{"type":"string","const":"geometry"},"shape":{"$ref":"#/$defs/SupplementalShape"}},"required":["type","shape"],"additionalProperties":false,"description":"Geometry that is no face or edge of the model (AP242 supplemental geometry): an axis, a line of a datum target, a point. In millimetres, in the model's frame."},"AnchorGroup":{"type":"object","properties":{"type":{"type":"string","const":"group"},"kind":{"type":"string","enum":["composite","pattern","allAround","between","centre"]},"items":{"type":"array","items":{"$ref":"#/$defs/Anchor"}},"of":{"type":"array","items":{"$ref":"#/$defs/Anchor"}}},"required":["type"],"additionalProperties":false,"description":"A feature of several faces, edges or features (an AP242 shape aspect that is not one face): `items` are what it names itself, `of` the features it is made of. `kind` says how (docs/engineering.md § PMI in STEP): absent one feature of the faces and edges in `items` (a bore of two half-cylinders) composite one feature made of the features in `of` (COMPOSITE_SHAPE_ASPECT) pattern a pattern of the features in `of`: \"4X\" (COMPOSITE_GROUP_SHAPE_ASPECT) allAround all around the profile of `of` (ALL_AROUND_SHAPE_ASPECT) between between the features in `of` (BETWEEN_SHAPE_ASPECT) centre the centre (an axis, a median plane) of the features in `of` (CENTRE_OF_SYMMETRY); `items` its geometry when the file gives it"},"AnchorOf":{"type":"object","properties":{"type":{"type":"string","const":"of"},"id":{"type":"string","description":"The annotation's id."}},"required":["type","id"],"additionalProperties":false,"description":"The feature another annotation is on: a datum feature, a datum target, a size that is a datum feature."},"AnchorPart":{"type":"object","properties":{"type":{"type":"string","const":"part"}},"required":["type"],"additionalProperties":false,"description":"The whole part: a tolerance or a note on the part's shape itself, not on a feature of it (`all over`)."},"AngularDimension":{"type":"object","properties":{"type":{"type":"string","const":"angularDimension"},"vertex":{"$ref":"#/$defs/Anchor"},"a":{"$ref":"#/$defs/Anchor"},"b":{"$ref":"#/$defs/Anchor"},"value":{"type":"number","description":"The angle it states.","x-unit":"rad"},"angleSelection":{"type":"string","enum":["equal","large","small"]},"id":{"type":"string"},"label":{"type":"string","description":"Optional free-text label override; most types otherwise derive their display text from the geometry."},"textAt":{"$ref":"#/$defs/Vec3","description":"Optional explicit placement (mm) for the text/frame; defaults derive from the anchors."},"visible":{"type":"boolean","description":"Toggle visibility without deleting (parity with decals/bindings). Default true."},"tolerance":{"$ref":"#/$defs/DimensionTolerance","description":"Its tolerance (`./tolerances.ts`): deviations, a class or basic. A stack-up or a fit check names it by its id."},"limits":{"type":"boolean","description":"The tolerance is stated as its limits (`35.2 / 34.8`), not as deviations from the nominal."},"fit":{"type":"object","properties":{"zone":{"type":"string"},"source":{"type":"string"},"form":{"type":"string"},"grade":{"type":"string"}},"required":["zone","source"],"additionalProperties":false,"description":"An ISO 286 class as the file wrote it (LIMITS_AND_FITS), where that is not what the class gives: its zone and source (not `hole`/`shaft` and `ISO 286-1`), and its form and grade when they are not the class's letters and number."},"notes":{"type":"array","items":{"type":"string"},"description":"Its notes (AP242 `dimensional note`s besides `basic`): `auxiliary` (a reference dimension), `theoretical` …"},"modifiers":{"type":"array","items":{"type":"string"},"description":"Its modifiers (AP242's set of `dimensional note`s): `statistical`, `continuous feature`, `controlled radius` …"},"noValue":{"type":"boolean","description":"The file states no value for it: a dimension that only says which features are dimensioned."},"formats":{"$ref":"#/$defs/ValueFormats"}},"required":["type","a","b","id"],"additionalProperties":false,"description":"Angle at a vertex subtended by two other anchors (rays vertex→a and vertex→b), or the angle between two features that a STEP file states (AP242 ANGULAR_LOCATION: `a` and `b` the features, `value` the angle)."},"AssemblyStep":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_.-]+$"},"order":{"type":"integer","description":"Its place in the order.","minimum":1},"parts":{"type":"array","items":{"type":"string"},"description":"The parts it puts in: bodies by id, name or part number (`*` matches any text), items by id."},"fasteners":{"type":"array","items":{"type":"string"},"description":"The fastener stacks it drives, by id."},"tools":{"type":"array","items":{"type":"string"}},"fixture":{"type":"string"},"by":{"type":"string","description":"Who does it: \"in-house\", a contract house, or a device definition's ref."},"minutes":{"type":"number","description":"How long it takes. 0: a step that takes no time (a note on why, a context step), which needs no `by`.","x-unit":"min","minimum":0},"ratePerHour":{"type":"number","minimum":0},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"instruction":{"type":"string"}},"required":["id"],"additionalProperties":false,"description":"ONE ASSEMBLY STEP: `<assemble>`."},"AxisRef":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"datumAxis"},"axis":{"type":"string","enum":["X","Y","Z"]}},"required":["type","axis"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"datum"},"axis":{"type":"string"}},"required":["type","axis"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"sketchLine"},"sketch":{"type":"string"},"segment":{"type":"string"}},"required":["type","sketch","segment"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"edge"},"ref":{"$ref":"#/$defs/TopoRef"}},"required":["type","ref"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"points"},"a":{"$ref":"#/$defs/Vec3"},"b":{"$ref":"#/$defs/Vec3"}},"required":["type","a","b"],"additionalProperties":false}]},"BodyMaterial":{"type":"object","properties":{"preset":{"$ref":"#/$defs/MaterialPreset"},"color":{"type":"string","description":"Hex color string, e.g. \"#9aa6b4\"."},"metalness":{"type":"number","minimum":0,"maximum":1},"roughness":{"type":"number","minimum":0,"maximum":1},"envIntensity":{"type":"number"},"opacity":{"type":"number","minimum":0,"maximum":1},"ior":{"type":"number","minimum":1,"maximum":3},"transmission":{"type":"number","minimum":0,"maximum":1},"thickness":{"type":"number","x-unit":"mm","minimum":0},"clearcoat":{"type":"number","minimum":0,"maximum":1},"clearcoatRoughness":{"type":"number","minimum":0,"maximum":1},"anisotropy":{"type":"number","minimum":0,"maximum":1},"emissive":{"type":"string"},"emissiveIntensity":{"type":"number","minimum":0},"texture":{"$ref":"#/$defs/SurfaceTexture"},"maps":{"$ref":"#/$defs/SurfaceMaps"}},"additionalProperties":false,"description":"A `<body material>` as a document writes it: a preset and the fields it changes, or only a colour. What it leaves out is its preset's (`resolveMaterial`)."},"BooleanMode":{"type":"string","enum":["new","add","cut","intersect"],"description":"How a solid feature combines with existing bodies."},"BoxFeature":{"type":"object","properties":{"type":{"type":"string","const":"box"},"center":{"$ref":"#/$defs/Vec3","description":"The centre of the box.","x-unit":"mm","default":[0,0,0]},"size":{"$ref":"#/$defs/Vec3","description":"Its size along X, Y and Z.","x-unit":"mm","default":[20,20,20]},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the solid combines with the bodies before it.","default":"new"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","center","size","operation","id","name"],"additionalProperties":false},"CaptureGeoPose":{"type":"object","properties":{"latDeg":{"type":"number","x-unit":"deg","minimum":-90,"maximum":90},"lonDeg":{"type":"number","x-unit":"deg","minimum":-180,"maximum":180},"heightM":{"type":"number","description":"Above the WGS84 ellipsoid.","x-unit":"m"},"headingDeg":{"type":"number","description":"The heading of the frame's +y axis, clockwise from true north (0: its axes are east, north, up).","x-unit":"deg"}},"required":["latDeg","lonDeg","heightM"],"additionalProperties":false,"description":"Where a captured place's frame stands on the Earth: its origin (WGS84, the height above the ellipsoid) and the heading of its +y axis."},"CellChemistry":{"type":"string","enum":["alkaline","lithium","nimh","li-ion","li-polymer","lifepo4"],"description":"A cell's chemistry: alkaline 1.5 V, lithium (Li-FeS2) 1.5 V, NiMH 1.2 V, Li-ion and Li-polymer 3.7 V, LiFePO4 3.2 V nominal."},"ChamferFeature":{"type":"object","properties":{"type":{"type":"string","const":"chamfer"},"edges":{"type":"array","items":{"$ref":"#/$defs/TopoTarget"},"description":"The edges to bevel.","x-pick":"edge","minItems":1},"distance":{"type":"number","description":"The bevel's distance from the edge.","x-unit":"mm","exclusiveMinimum":0,"default":2},"distance2":{"type":"number","description":"Second distance for an asymmetric chamfer (measured from the other face).","x-unit":"mm","exclusiveMinimum":0},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","edges","distance","id","name"],"additionalProperties":false},"ChartDistortionSummary":{"type":"object","properties":{"chart":{"type":"string"},"scaleMin":{"type":"number"},"scaleMax":{"type":"number"},"areaScaleMin":{"type":"number"},"areaScaleMax":{"type":"number"},"maxDilatation":{"type":"number"},"isometric":{"type":"boolean"},"tolerance":{"type":"number"}},"required":["chart","scaleMin","scaleMax","areaScaleMin","areaScaleMax","maxDilatation","isometric","tolerance"],"additionalProperties":false,"description":"What a chart's map does to lengths, without the samples. The domain's honest self-description."},"ChartEdge":{"type":"object","properties":{"param":{"type":"string","enum":["u","v"],"description":"The parameter held CONSTANT along the edge."},"at":{"type":"number","description":"Its value."},"from":{"type":"number","description":"The range of the OTHER parameter the edge spans, in its own direction of travel."},"to":{"type":"number"}},"required":["param","at","from","to"],"additionalProperties":false,"description":"WHICH EDGE of a chart — an isoparametric curve, named the way a b-rep names one."},"ChartPlacement":{"type":"object","properties":{"origin":{"$ref":"#/$defs/Vec2","description":"Where the chart's local origin lands, in domain millimetres."},"angle":{"type":"number","description":"Rotation of the chart's local axes, in radians."},"mirror":{"type":"boolean","description":"MIRROR the chart before placing it."}},"required":["origin","angle"],"additionalProperties":false,"description":"A rigid placement of a chart's local frame in the flat domain. Rotation + translation only."},"CheckRegion":{"type":"object","properties":{"min":{"$ref":"#/$defs/Vec3","x-unit":"mm"},"max":{"$ref":"#/$defs/Vec3","x-unit":"mm"}},"required":["min","max"],"additionalProperties":false,"description":"A box in a body's own frame: what an `<accept>` or a `<permitted>` covers."},"CircularPatternFeature":{"type":"object","properties":{"type":{"type":"string","const":"circularPattern"},"seedFeature":{"type":"string","description":"The feature whose bodies are patterned.","x-pick":"feature"},"axis":{"$ref":"#/$defs/AxisRef","description":"The axis the copies turn about.","x-pick":"axis"},"count":{"type":"integer","description":"How many there are, the original included.","minimum":1,"default":6},"angle":{"type":"number","description":"Total sweep angle in radians (default 2π).","x-unit":"rad","exclusiveMinimum":0,"maximum":6.283185307179586,"default":6.283185307179586},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the copies combine with the bodies they act on. Absent: the repeated feature's own operation. A pattern of a cut cuts only the bodies it consumes (`consumes`; absent: the bodies the repeated feature consumes)."},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","seedFeature","axis","count","id","name"],"additionalProperties":false},"CodeFeature":{"type":"object","properties":{"type":{"type":"string","const":"code"},"source":{"type":"string","description":"The file, relative to the document."},"inputs":{"type":"object","properties":{},"additionalProperties":{},"description":"What the file runs with (its declared `params` by name)."},"host":{"$ref":"#/$defs/HostCode","description":"RUN BY THE LOCAL HOST in the folder's own environment (its `.venv` or uv project), not in the sandbox: the file is a program that writes files (docs/code-sandbox.md § a host code part). Its STEP outputs are this part's bodies, its JSON outputs drive fields through `bind`. Absent: the file declares features in the sandbox."},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","source","id","name"],"additionalProperties":false,"description":"A PART AUTHORED AS CODE (docs/wave-h.md §3): a `.ts` / `.tsx` / `.js` / `.jsx` / `.py` file, beside the document, that declares features with the CommandAGI SDK (or JSCAD, replicad or CadQuery through its importers). Opening the part runs the file in the sandbox with `inputs` and puts what it declares in this feature's place: the file's result takes this feature's id, so a feature that `consumes` it follows the code part. It is the one feature of its file that is saved."},"CoilFeature":{"type":"object","properties":{"type":{"type":"string","const":"coil"},"profile":{"$ref":"#/$defs/ProfileRef","description":"Cross-section profile (a sketch region), offset from the axis.","x-pick":"profile"},"axis":{"$ref":"#/$defs/AxisRef","description":"Axis the coil winds around.","x-pick":"axis"},"pitch":{"type":"number","description":"Axial advance per turn (mm).","x-unit":"mm","exclusiveMinimum":0,"default":8},"turns":{"type":"number","description":"Number of revolutions.","exclusiveMinimum":0,"default":5},"rightHanded":{"type":"boolean","description":"Right-handed (default) vs left-handed.","default":true},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the solid combines with the bodies before it.","default":"new"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","profile","axis","pitch","turns","operation","id","name"],"additionalProperties":false},"CombineFeature":{"type":"object","properties":{"type":{"type":"string","const":"combine"},"operation":{"type":"string","enum":["intersect","union","subtract"],"description":"Union fuses all bodies; subtract cuts the rest from the first; intersect keeps the overlap.","default":"union"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","operation","id","name"],"additionalProperties":false},"Compliance":{"type":"object","properties":{"rohs":{"type":"string","enum":["unknown","compliant","exempt","non-compliant"],"description":"\"unknown\": not known yet, and stated so (a warning, never a pass), rather than left out (an error) or invented."},"rohsExemption":{"type":"string","description":"The RoHS annex III exemption it relies on (\"7(c)-I\")."},"reach":{"type":"string","enum":["unknown","compliant","non-compliant","svhc"],"description":"\"unknown\" as for `rohs`."},"conflictMinerals":{"type":"string","enum":["none","unknown","reported"],"description":"\"reported\": the maker's conflict minerals report names the smelters."},"eccn":{"type":"string","description":"The export control classification: \"EAR99\", \"5A992.c\"; \"unknown\" as for `rohs`."},"certifications":{"type":"array","items":{"type":"string"},"description":"Certifications it holds: \"FCC ID 2AJYU-8BAE003\", \"CE\", \"UL 94 V-0\"."}},"additionalProperties":false,"description":"WHAT A PART COMPLIES WITH."},"ComponentFootprint":{"type":"object","properties":{"libId":{"type":"string","description":"Footprint library id, when the part came from one (`Resistor_SMD:R_0805_2012Metric`)."},"pads":{"type":"array","items":{"$ref":"#/$defs/FootprintPad"}},"layers":{"type":"array","items":{"$ref":"#/$defs/CopperLayerRef"},"description":"The copper layer planes the pads are projected onto. Each is a dependency edge."},"part":{"type":"string","description":"WHICH SCHEMATIC PART THIS PLACEMENT REALISES — declared, and never matched by name."}},"required":["pads","layers"],"additionalProperties":false,"description":"A placed component's footprint — the pads it contributes, and the planes they land on."},"ConductorElectrical":{"type":"object","properties":{"conductivitySPerM":{"type":"number","description":"Bulk electrical conductivity, S/m."},"finishedThicknessMm":{"type":"number","description":"Finished conductor thickness, mm — the distance the body's extrusion travelled."},"dielectricEpsR":{"type":"number","description":"Relative permittivity of the dielectric SURROUNDING this conductor. Dimensionless."}},"required":["conductivitySPerM","finishedThicknessMm","dielectricEpsR"],"additionalProperties":false,"description":"THE ELECTRICAL HALF OF A CONDUCTOR, declared on an ORDINARY 3D body."},"ConductorPathRef":{"type":"object","properties":{"sketch":{"type":"string"},"points":{"type":"array","items":{"type":"string"},"description":"Sketch point ids, in the order the run passes through them."},"breakAfter":{"type":"array","items":{"type":"string"},"description":"THE POINTS AFTER WHICH THE DRAWN CURVE ENDS AND THE NEXT BEGINS — a cut in the DOMAIN."}},"required":["sketch","points"],"additionalProperties":false,"description":"THE 0D RUNG, as a reference: an ORDERED run of points inside one sketch."},"ConeFeature":{"type":"object","properties":{"type":{"type":"string","const":"cone"},"center":{"$ref":"#/$defs/Vec3","description":"The centre of its base, not of the solid (a box's `center` is its middle): it runs `height` from here along `axis`.","x-unit":"mm","default":[0,0,0]},"axis":{"$ref":"#/$defs/Vec3","description":"The direction it rises along.","default":[0,0,1]},"radius1":{"type":"number","description":"The radius at the base.","x-unit":"mm","minimum":0,"default":10},"radius2":{"type":"number","description":"The radius at the top (0: a point).","x-unit":"mm","minimum":0,"default":0},"height":{"type":"number","x-unit":"mm","exclusiveMinimum":0,"default":20},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the solid combines with the bodies before it.","default":"new"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","center","axis","radius1","radius2","height","operation","id","name"],"additionalProperties":false},"ConicalSurface":{"type":"object","properties":{"kind":{"type":"string","const":"cone"},"radius":{"type":"number"},"halfAngle":{"type":"number","description":"Half-angle in radians, strictly between 0 and π/2. Zero would be a cylinder; π/2 a plane."},"origin":{"$ref":"#/$defs/Vec3"},"xAxis":{"$ref":"#/$defs/Vec3"},"yAxis":{"$ref":"#/$defs/Vec3"},"axis":{"$ref":"#/$defs/Vec3"}},"required":["kind","radius","halfAngle","origin","xAxis","yAxis","axis"],"additionalProperties":false,"description":"A cone: `S(u,v) = origin + (R + v·sinα)(cos u·x + sin u·y) + v·cosα·axis`, `α` the half-angle. `R` is the radius at `v = 0`. A constant-radius bevel between two planar faces is a portion of exactly this or of a cylinder, which is why the motivating MID case is the EXACT one."},"ConstraintKind":{"type":"string","enum":["coincident","parallel","perpendicular","distance","angle","concentric","tangent","horizontal","vertical","equal","pointOnLine","midpoint","pointOnCircle","symmetric","horizontalDistance","verticalDistance","radius","collinear","diameter","pointLineDistance","arcLength","conicRho","ordinateX","ordinateY","axisAngle","chamferDistance"]},"ContactReport":{"type":"string","enum":["count","normal","slip","point"],"description":"What a run records of a contact pair at each frame: how many points touch, the normal force on `a` (N), how fast `a` slides over `b` there (m/s; 0 while it sticks), and where it is touched (the force-weighted centre of the points)."},"CopperLayerRef":{"type":"object","properties":{"name":{"type":"string","description":"The layer's name as the design's planar geometry refers to it — `F.Cu`, `In1.Cu`, `M1`."},"plane":{"type":"string","description":"The datum plane this layer's sketches are drawn on. A dependency edge."}},"required":["name"],"additionalProperties":false,"description":"WHICH COPPER LAYER a conductor lives on — its name and the datum plane it is drawn in."},"CopperPourFeature":{"type":"object","properties":{"type":{"type":"string","const":"copperPour"},"path":{"$ref":"#/$defs/ConductorPathRef","description":"The closed boundary — band ③'s sketch, the run of points the outline passes through."},"layer":{"$ref":"#/$defs/CopperLayerRef","description":"The copper layer this pour fills."},"rule":{"$ref":"#/$defs/RoutingRule","description":"The angle rule the boundary is routed under — a pour's edge obeys the same rule a trace's does."},"bias":{"$ref":"#/$defs/RouteBias"},"conductor":{"$ref":"#/$defs/ConductorElectrical","description":"The electrical half. σ, finished thickness (which the extrude travels through), surrounding ε_r."},"material":{"$ref":"#/$defs/MaterialDef","description":"Overrides the copper preset. Absent means copper."},"bindings":{"type":"array","items":{"$ref":"#/$defs/TerminalBinding"},"description":"WHICH PADS THIS POUR IS BOUND TO — L3, and the same door a trace uses."},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the copper combines with the bodies before it.","default":"new"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","path","layer","rule","conductor","operation","id","name"],"additionalProperties":false,"description":"A COPPER POUR — A REGION SWEPT ON A PLANE, and the second special case that disappears."},"CopyBodyFeature":{"type":"object","properties":{"type":{"type":"string","const":"copyBody"},"bodyId":{"type":"string","description":"The body to copy: its id, the feature that made it (`base`, `split:2`).","x-pick":"body"},"translate":{"$ref":"#/$defs/Vec3","description":"Translation applied to the copy (mm).","x-unit":"mm"},"rotateAxis":{"$ref":"#/$defs/AxisRef","description":"Optional rotation of the copy.","x-pick":"axis"},"rotateAngle":{"type":"number","description":"How far the copy turns about that axis.","x-unit":"rad"},"count":{"type":"integer","description":"Number of copies to lay out along the translation (default 1).","minimum":1,"default":1},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","bodyId","id","name"],"additionalProperties":false},"CornerRelief":{"type":"string","enum":["none","square","round","tear"],"description":"A corner relief: none, a square, a round hole, or a tear (a narrow round)."},"CriticalDimension":{"type":"object","properties":{"name":{"type":"string","pattern":"\\S"},"nominal":{"type":"number"},"plus":{"type":"number","description":"The upper tolerance (added to nominal).","minimum":0},"minus":{"type":"number","description":"The lower tolerance (taken from nominal).","minimum":0},"unit":{"type":"string","enum":["mm","um","nm","deg"],"description":"The unit of nominal, plus and minus: a length in mm, µm (`um`) or nm (a film's thickness), or an angle.","default":"mm"},"method":{"type":"string","description":"How it is measured: \"caliper\", \"CMM\", \"go/no-go gauge\"."}},"required":["name","nominal","plus","minus"],"additionalProperties":false,"description":"A dimension to inspect, with its tolerance."},"CurveFeature":{"type":"object","properties":{"type":{"type":"string","const":"curve"},"kind":{"type":"string","enum":["spline","polyline","helix"],"description":"What the curve is. \"spline\": a smooth cubic through `points` (C2, interpolated); \"polyline\": straight lines through `points`, each corner rounded to `bendRadius` (sharp without it); \"helix\": `turns` turns of `radius` and `pitch` about `axis`.","default":"spline"},"points":{"type":"array","items":{"$ref":"#/$defs/Vec3"},"description":"The points it passes through, in order.","x-unit":"mm","minItems":2,"x-showIf":{"kind":["spline","polyline"]}},"startTangent":{"$ref":"#/$defs/Vec3","description":"The direction it leaves the first point (only the direction counts).","x-showIf":{"kind":"spline"}},"endTangent":{"$ref":"#/$defs/Vec3","description":"The direction it arrives at the last point (only the direction counts).","x-showIf":{"kind":"spline"}},"tangents":{"type":"array","items":{"$ref":"#/$defs/SplineTangent"},"description":"The directions it passes inner points in (only the direction counts): the spline is cut there into C2 pieces that meet in that direction at one speed (C1). Not for a closed spline.","x-showIf":{"kind":"spline"}},"tangentScale":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"array","items":{"type":"number","exclusiveMinimum":0}}],"description":"How hard a given tangent holds (build123d's tangent scalars): its speed, in lengths of the chord-length parameter. 1 is the natural spline; more holds the direction longer (a looser end), less lets the curve turn sooner (a tighter one). One number for every given tangent, or one per given tangent in order along the spline: the start's, the inner ones' (by point), the end's.","default":1,"x-showIf":{"kind":"spline"}},"closed":{"type":"boolean","description":"Back to the first point: a periodic spline, a closed polyline.","x-showIf":{"kind":["spline","polyline"]}},"bendRadius":{"type":"number","description":"The radius each corner of the polyline is rounded to.","x-unit":"mm","exclusiveMinimum":0,"x-showIf":{"kind":"polyline"}},"origin":{"$ref":"#/$defs/Vec3","description":"Where the helix's axis starts: the helix starts at this height.","x-unit":"mm","default":[0,0,0],"x-showIf":{"kind":"helix"}},"axis":{"$ref":"#/$defs/Vec3","description":"The helix's axis: it rises along it.","default":[0,0,1],"x-showIf":{"kind":"helix"}},"radius":{"type":"number","description":"The helix's radius (from the axis to the curve).","x-unit":"mm","exclusiveMinimum":0,"default":10,"x-showIf":{"kind":"helix"}},"pitch":{"type":"number","description":"How far the helix rises in one turn.","x-unit":"mm","exclusiveMinimum":0,"default":5,"x-showIf":{"kind":"helix"}},"turns":{"type":"number","description":"How many turns.","exclusiveMinimum":0,"default":3,"x-showIf":{"kind":"helix"}},"rightHanded":{"type":"boolean","description":"Right-handed (the default) or left-handed.","default":true,"x-showIf":{"kind":"helix"}},"start":{"$ref":"#/$defs/Vec3","description":"The direction from the axis to where the helix starts.","default":[1,0,0],"x-showIf":{"kind":"helix"}},"xAxis":{"$ref":"#/$defs/Vec3","description":"The x-axis of the curve's start plane (projected onto it): which way a profile drawn there faces. Absent: world z projected onto the plane, or world x where the curve starts along z."},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","kind","id","name"],"additionalProperties":false,"description":"A CURVE IN SPACE: a path that is not drawn on one plane (a hose, a wire lead, a tendon housing, a braid yarn), what a sweep follows (`path={{ curve: <id> }}`) or points its profile at (`guide`). It makes no body. It is also a plane, under its own id: the plane normal to the curve at its start (origin: the start; normal: the curve's direction there; x-axis: `xAxis`), so a profile sketch drawn on it (`plane={{ type: \"datum\", plane: <id> }}`) starts the sweep where the curve starts."},"CurveRef":{"type":"object","properties":{"curve":{"type":"string","description":"The `curve` feature, by id."}},"required":["curve"],"additionalProperties":false,"description":"A sweep's path given by a `curve` feature: a curve in space."},"CylinderFeature":{"type":"object","properties":{"type":{"type":"string","const":"cylinder"},"center":{"$ref":"#/$defs/Vec3","description":"The centre of its base, not of the solid (a box's `center` is its middle): it runs `height` from here along `axis`.","x-unit":"mm","default":[0,0,0]},"axis":{"$ref":"#/$defs/Vec3","description":"The direction it rises along.","default":[0,0,1]},"radius":{"type":"number","x-unit":"mm","exclusiveMinimum":0,"default":10},"height":{"type":"number","x-unit":"mm","exclusiveMinimum":0,"default":20},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the solid combines with the bodies before it.","default":"new"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","center","axis","radius","height","operation","id","name"],"additionalProperties":false},"CylindricalSurface":{"type":"object","properties":{"kind":{"type":"string","const":"cylinder"},"radius":{"type":"number"},"origin":{"$ref":"#/$defs/Vec3"},"xAxis":{"$ref":"#/$defs/Vec3"},"yAxis":{"$ref":"#/$defs/Vec3"},"axis":{"$ref":"#/$defs/Vec3"}},"required":["kind","radius","origin","xAxis","yAxis","axis"],"additionalProperties":false,"description":"A cylinder: `S(u,v) = origin + R(cos u·x + sin u·y) + v·axis`. `u` is an ANGLE, `v` a length — OCC's own convention, and the reason \"we already have uv, sketch in it\" measures wrong: a step in `u` is `R` millimetres, not one."},"DatumAxisFeature":{"type":"object","properties":{"type":{"type":"string","const":"datumAxis"},"method":{"$ref":"#/$defs/DatumAxisMethod","description":"How the axis is placed.","default":"edge"},"face":{"$ref":"#/$defs/TopoRef","description":"The cylinder, cone or torus whose axis it is; the flat face it is at right angles to.","x-pick":"face","x-showIf":{"method":["cylinder","perpendicular"]}},"edge":{"$ref":"#/$defs/TopoRef","description":"The straight edge it lies along.","x-pick":"edge","x-showIf":{"method":"edge"}},"plane":{"$ref":"#/$defs/PlaneRef","description":"The first plane.","x-pick":"plane","x-showIf":{"method":"twoPlanes"}},"plane2":{"$ref":"#/$defs/PlaneRef","description":"The second plane.","x-pick":"plane","x-showIf":{"method":"twoPlanes"}},"point":{"$ref":"#/$defs/PointRef","description":"The point it goes through (perpendicular), the first of two points.","x-pick":"point","x-showIf":{"method":["perpendicular","twoPoints"]}},"point2":{"$ref":"#/$defs/PointRef","description":"The second point.","x-pick":"point","x-showIf":{"method":"twoPoints"}},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","method","id","name"],"additionalProperties":false,"description":"A CONSTRUCTION AXIS: a line a revolve, a pattern or a coil turns about, or a plane goes through (`axis={{ type: \"datum\", axis: <id> }}`). It makes no body."},"DatumAxisMethod":{"type":"string","enum":["edge","cylinder","perpendicular","twoPlanes","twoPoints"],"description":"How a construction axis is placed: cylinder the axis of a cylinder, cone or torus (`face`) perpendicular at right angles to a flat face (`face`), through a point (`point`) twoPlanes where two planes meet (`plane`, `plane2`) twoPoints through two points (`point`, `point2`) edge along a straight edge (`edge`)"},"DatumFeature":{"type":"object","properties":{"type":{"type":"string","const":"datumFeature"},"letter":{"type":"string","description":"The datum letter (A, B, C, …)."},"anchor":{"$ref":"#/$defs/Anchor"},"datumOn":{"$ref":"#/$defs/Anchor","description":"What the datum itself names, when a file puts the faces on the DATUM too (some writers do)."},"id":{"type":"string"},"label":{"type":"string","description":"Optional free-text label override; most types otherwise derive their display text from the geometry."},"textAt":{"$ref":"#/$defs/Vec3","description":"Optional explicit placement (mm) for the text/frame; defaults derive from the anchors."},"visible":{"type":"boolean","description":"Toggle visibility without deleting (parity with decals/bindings). Default true."}},"required":["type","letter","anchor","id"],"additionalProperties":false,"description":"A datum-feature label (the boxed letter A/B/C… with a leader/triangle to the referenced feature)."},"DatumPlaneFeature":{"type":"object","properties":{"type":{"type":"string","const":"datumPlane"},"method":{"$ref":"#/$defs/DatumPlaneMethod","description":"How the plane is placed.","default":"offset"},"base":{"type":"string","description":"The plane it starts from: the plane offset or turned; the first of a midplane's two; the plane a tangent plane's angle and a perpendicular plane's right angle are measured from; else the plane whose x axis it keeps where it can.","x-pick":"datum"},"base2":{"type":"string","description":"The second plane of a midplane.","x-pick":"datum","x-showIf":{"method":"midplane"}},"edge":{"$ref":"#/$defs/TopoRef","description":"The edge it goes through (two edges, perpendicular), or is at right angles to (along a path).","x-pick":"edge","x-showIf":{"method":["twoEdges","alongPath","perpendicular"]}},"edge2":{"$ref":"#/$defs/TopoRef","description":"The second edge it goes through.","x-pick":"edge","x-showIf":{"method":"twoEdges"}},"axis":{"$ref":"#/$defs/AxisRef","description":"The axis it goes through.","x-pick":"axis","x-showIf":{"method":"axisPoint"}},"point":{"$ref":"#/$defs/PointRef","description":"A point it goes through.","x-pick":"point","x-showIf":{"method":["axisPoint","threePoints"]}},"point2":{"$ref":"#/$defs/PointRef","description":"The second point it goes through.","x-pick":"point","x-showIf":{"method":"threePoints"}},"point3":{"$ref":"#/$defs/PointRef","description":"The third point it goes through.","x-pick":"point","x-showIf":{"method":"threePoints"}},"face":{"$ref":"#/$defs/TopoRef","description":"The cylinder, cone or sphere it touches.","x-pick":"face","x-showIf":{"method":"tangent"}},"along":{"type":"number","description":"Where along the edge, as a fraction of its length from its start.","minimum":0,"maximum":1,"default":0.5,"x-step":0.05,"x-showIf":{"method":"alongPath"}},"offset":{"type":"number","description":"How far the plane is moved along its own normal.","x-unit":"mm","default":10},"angle":{"type":"number","description":"Offset: the base turned about its own x axis (through its origin) by this angle, before the offset, which then runs along the turned normal (a plane at an angle). Tangent: where on the face it touches, turned about the face's axis from the base's normal.","x-unit":"rad","minimum":-3.141592653589793,"maximum":3.141592653589793,"x-showIf":{"method":[null,"offset","tangent"]}},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","base","offset","id","name"],"additionalProperties":false},"DatumPlaneMethod":{"type":"string","enum":["offset","perpendicular","midplane","twoEdges","axisPoint","threePoints","tangent","alongPath"],"description":"How a construction plane is placed: offset `base` moved along its normal (and turned about its x axis by `angle`: a plane at an angle) midplane halfway between `base` and `base2` (two parallel planes: between them; two that meet: the plane that halves the angle between them) twoEdges through two straight edges that lie in one plane (`edge`, `edge2`) axisPoint through an axis (`axis`) and a point off it (`point`) threePoints through three points (`point`, `point2`, `point3`) tangent touching a cylinder, cone or sphere (`face`), at `angle` about its axis from `base`'s normal alongPath at right angles to an edge (`edge`), at the fraction `along` of its length perpendicular through a straight edge (`edge`), at right angles to `base` Every method then moves the plane `offset` along its own normal."},"DatumPointFeature":{"type":"object","properties":{"type":{"type":"string","const":"datumPoint"},"method":{"$ref":"#/$defs/DatumPointMethod","description":"How the point is placed.","default":"vertex"},"point":{"$ref":"#/$defs/PointRef","description":"The point it is at.","x-pick":"point","x-showIf":{"method":"vertex"}},"edge":{"$ref":"#/$defs/TopoRef","description":"The edge: the one a plane cuts, or the circle or arc whose centre it is.","x-pick":"edge","x-showIf":{"method":["edgePlane","center"]}},"face":{"$ref":"#/$defs/TopoRef","description":"The sphere whose centre it is (in place of an edge).","x-pick":"face","x-showIf":{"method":"center"}},"plane":{"$ref":"#/$defs/PlaneRef","description":"The (first) plane.","x-pick":"plane","x-showIf":{"method":["edgePlane","threePlanes"]}},"plane2":{"$ref":"#/$defs/PlaneRef","description":"The second plane.","x-pick":"plane","x-showIf":{"method":"threePlanes"}},"plane3":{"$ref":"#/$defs/PlaneRef","description":"The third plane.","x-pick":"plane","x-showIf":{"method":"threePlanes"}},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","method","id","name"],"additionalProperties":false,"description":"A CONSTRUCTION POINT: a point a plane or an axis goes through (`{ type: \"datum\", point: <id> }`). It makes no body."},"DatumPointMethod":{"type":"string","enum":["vertex","edgePlane","threePlanes","center"],"description":"How a construction point is placed: vertex at a point (`point`: a body's corner, another construction point, or coordinates) edgePlane where an edge (`edge`) meets a plane (`plane`); the edge's line where it is straight threePlanes where three planes meet (`plane`, `plane2`, `plane3`) center at the centre of a circle or an arc (`edge`), or of a sphere (`face`)"},"DatumReference":{"type":"object","properties":{"letter":{"type":"string"},"modifier":{"$ref":"#/$defs/MaterialModifier"},"modifiers":{"type":"array","items":{"type":"string"},"description":"AP242's other datum reference modifiers, by their names in the standard (`basic`, `free_state`, `translation`, `orientation`, `distance_variable`, `degree_of_freedom_constraint_x` …)."},"common":{"type":"array","items":{"$ref":"#/$defs/DatumReference"},"description":"The datums of a common datum, each with its own modifiers."}},"required":["letter"],"additionalProperties":false,"description":"A datum reference in a feature-control frame: a letter and its material modifier. A common datum is its letters joined by a hyphen (`A-B`), or `common` when one of its datums carries a modifier of its own."},"DatumTarget":{"type":"object","properties":{"type":{"type":"string","const":"datumTarget"},"letter":{"type":"string"},"target":{"type":"string","description":"Its number: `1` of A1."},"anchor":{"$ref":"#/$defs/Anchor","description":"The faces it is on."},"placed":{"type":"object","properties":{"shape":{"type":"string","description":"AP242's target shape: `point`, `line`, `rectangle`, `circle`, `circular curve`."},"origin":{"$ref":"#/$defs/Vec3"},"axis":{"$ref":"#/$defs/Vec3","description":"Its placement's z and x directions."},"refDirection":{"$ref":"#/$defs/Vec3"},"sizes":{"type":"object","properties":{},"additionalProperties":{"type":"number"},"description":"Its sizes by their AP242 names: `target length`, `target width`, `target diameter`.","x-unit":"mm"}},"required":["shape","origin","axis","refDirection"],"additionalProperties":false},"on":{"$ref":"#/$defs/Anchor","description":"The feature it is on (AP242 FEATURE_FOR_DATUM_TARGET_RELATIONSHIP)."},"datumOn":{"$ref":"#/$defs/Anchor","description":"What the datum itself names, when a file puts geometry on the DATUM too."},"id":{"type":"string"},"label":{"type":"string","description":"Optional free-text label override; most types otherwise derive their display text from the geometry."},"textAt":{"$ref":"#/$defs/Vec3","description":"Optional explicit placement (mm) for the text/frame; defaults derive from the anchors."},"visible":{"type":"boolean","description":"Toggle visibility without deleting (parity with decals/bindings). Default true."}},"required":["type","letter","target","id"],"additionalProperties":false,"description":"A datum target (A1, B2 …): a point, line or area of a feature that establishes datum `letter`. On a face of the model (`anchor`), or placed (`placed`): a shape at a placement, with its size (AP242 PLACED_DATUM_TARGET_FEATURE)."},"DeleteFaceFeature":{"type":"object","properties":{"type":{"type":"string","const":"deleteFace"},"faces":{"type":"array","items":{"$ref":"#/$defs/TopoTarget"},"description":"Faces to remove; the body heals around them.","x-pick":"face","minItems":1},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","faces","id","name"],"additionalProperties":false},"DesignCheck":{"type":"object","properties":{"id":{"type":"string","description":"The name a finding, an `<accept>` and a `<permitted>` give the check by.","pattern":"^[A-Za-z0-9_.-]+$"},"kind":{"type":"string","description":"What is checked: interference, clearance, holes, fasteners, edges, symmetry, tolerances, fit, stackup, or a registered kind.","pattern":"\\S"},"bodies":{"type":"array","items":{"type":"string"},"description":"The bodies checked, by the id the document gives them (a `<body id>`, the feature that made it: `<box id=\"b1\">`), the rebuild's id, the name or the part number (`*` matches any text). Absent: every body. An entry that names no body is a finding (`unknown-body`): a check of nothing never passes."},"against":{"type":"array","items":{"type":"string"},"description":"interference, clearance: the bodies the ones of `bodies` are compared against, named as `bodies` are. With it, only a pair of one of `bodies` (every body when `bodies` is absent) and one of `against` is compared: \"the robot against the shelves\", not the robot's own parts against each other."},"severity":{"type":"string","enum":["error","warning"],"description":"An error of this check is reported as this severity: `warning` for a design still being built.","default":"error"},"min":{"type":"number","description":"clearance: the smallest gap two bodies may have when they do not touch.","x-unit":"mm","minimum":0},"minVolume":{"type":"number","description":"interference: a shared volume (in mm³) below this is not reported; fasteners: a screw's shank or head in less material than this is not in material (two faces that coincide).","minimum":0,"default":0.01},"angle":{"type":"number","description":"edges: an edge between faces whose normals differ by less than this is tangent, not sharp (degrees).","exclusiveMinimum":0,"maximum":90,"default":20},"breakWidth":{"type":"number","description":"edges: a face narrower than this (2·area/perimeter) breaks the edges beside it (a chamfer, a fillet).","x-unit":"mm","exclusiveMinimum":0,"default":2.5},"maxRadius":{"type":"number","description":"holes: a round hole of a radius above this is an opening, not a hole.","x-unit":"mm","exclusiveMinimum":0,"default":15},"plane":{"type":"string","enum":["yz","xz","xy"],"description":"symmetry: the plane of the body's own frame the body is symmetric about, through its box's centre.","default":"yz"},"tolerance":{"type":"number","description":"symmetry: the mean depth of the difference between the body and its mirror image it may have.","x-unit":"mm","exclusiveMinimum":0,"default":0.05},"hole":{"type":"string","description":"fit: the hole's diameter, by a dimension's id, a parameter's name or a hole feature's id.","pattern":"\\S"},"shaft":{"type":"string","description":"fit: the shaft's diameter (a bearing's bore is a hole; its outside a shaft), named as `hole` is.","pattern":"\\S"},"intent":{"type":"string","enum":["clearance","transition","interference"],"description":"fit: the fit the design intends. The check fails when the two tolerances give another."},"pair":{"type":"array","items":{"type":"string"},"description":"fit: the two bodies the fit joins, named as `bodies` are (`[\"Ball\", \"Plate\"]`). When the fit holds as an interference or a transition fit, the interference check's clash of these two is the fit, and is covered by this check's id.","minItems":2,"maxItems":2},"chain":{"type":"array","items":{"type":"string"},"description":"stackup: the chain of sizes whose sum is the closing dimension, each a term `+name`, `-name` or `-0.5*name` (a sensitivity times a dimension's id, a parameter's name or a hole's id). The check refuses a term of another form (`bad-term`); the schema holds no pattern for it, since the Rust SDK reads only its two.","minItems":1},"limit":{"type":"object","properties":{"min":{"type":"number"},"max":{"type":"number"}},"additionalProperties":false,"description":"stackup: the closing dimension's limits; the check fails when the judged ends lie outside them.","x-unit":"mm"},"method":{"type":"string","enum":["worst-case","rss","monte-carlo"],"description":"stackup: the method judged: worst case (every size at its worst end), RSS (bands as ±3σ) or Monte Carlo (sampled).","default":"worst-case"},"samples":{"type":"integer","description":"stackup, monte-carlo: how many assemblies are sampled.","minimum":100,"maximum":1000000,"default":20000},"seed":{"type":"integer","description":"stackup, monte-carlo: the generator's seed, so a run gives the same answer each time.","default":1},"sweep":{"$ref":"#/$defs/JointSweep","description":"interference, clearance: judge the pairs the motion of one or more joints changes, over a grid of their values within their limits, not only as drawn. A joint moves its `a` and every body a joint carries on it; a loop that a swept joint moves (a joint whose `a` another chain already carries) is solved closed at each pose. A finding names the pose it is worst at, the first pose it holds at, and the values it holds over along each joint."},"options":{"type":"object","properties":{},"additionalProperties":{},"description":"The fields of a registered kind's own check (a printer's nozzle, a tool's radius), as that check reads them."}},"required":["id","kind"],"additionalProperties":false,"description":"A CHECK THE DOCUMENT MUST PASS: `<check kind … />`. The kinds built in are `interference`, `clearance`, `holes`, `fasteners`, `edges`, `symmetry`, and the tolerance kinds `tolerances`, `fit` and `stackup` (`./tolerances.ts`); another kind is a check that a registered function runs (a manufacturability check), and where none is registered the check is skipped with that reason, never passed."},"DevelopabilityVerdict":{"type":"object","properties":{"developable":{"type":"boolean"},"totalAbsoluteCurvature":{"type":"number","description":"`∫∫ |K| dA`, in steradians. Exactly 0 for a plane, cylinder or cone."},"tolerance":{"type":"number"},"maxAbsCurvature":{"type":"number","description":"The largest |K| found, in 1/mm² — reported so a refusal can say WHERE the problem is."},"area":{"type":"number","description":"The patch's true surface area, in mm². Reported because a steradian is uninterpretable without it."},"because":{"type":"string","description":"Present only on a refusal: what failed, in the terms a reader goes and fixes."}},"required":["developable","totalAbsoluteCurvature","tolerance","maxAbsCurvature","area"],"additionalProperties":false,"description":"How far a patch is from flattenable, and by how much."},"DimensionTolerance":{"type":"object","properties":{"upper":{"type":"number","description":"The upper deviation from the nominal, signed (`0.1`, or `-0.02` for a size wholly under it).","x-unit":"mm"},"lower":{"type":"number","description":"The lower deviation from the nominal, signed (`-0.1`).","x-unit":"mm"},"class":{"type":"string","description":"A tolerance class by name, its deviations at the nominal size: any ISO 286 class, computed from its fundamental deviation and grade over 0 up to 3150 mm (`H7`, `e8`, `E10`, `H13`, `JS7`, `zc11`: capitals for a hole, small letters for a shaft), a general tolerance of ISO 2768-1 (`ISO 2768-m`) or a radial bearing ring's ISO 492 Normal class (`ISO 492 bore`, `ISO 492 outside`, `ISO 492 width`).","pattern":"\\S"},"basic":{"type":"boolean","description":"A basic dimension: theoretically exact, boxed on a drawing; the geometric tolerances that refer to it tolerance it."}},"additionalProperties":false,"description":"A size's tolerance. Give deviations, or a class, or `basic`: one way, never two."},"DomeFeature":{"type":"object","properties":{"type":{"type":"string","const":"dome"},"face":{"$ref":"#/$defs/TopoTarget","description":"Planar face to bulge.","x-pick":"face"},"height":{"type":"number","description":"Apex height along the face normal (negative = inward dimple).","x-unit":"mm","default":10},"rings":{"type":"integer","description":"Profile-ring count (smoothness).","minimum":2,"maximum":24,"default":6},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","face","height","id","name"],"additionalProperties":false},"DraftFeature":{"type":"object","properties":{"type":{"type":"string","const":"draft"},"faces":{"type":"array","items":{"$ref":"#/$defs/TopoTarget"},"description":"Faces to taper.","x-pick":"face","minItems":1},"angle":{"type":"number","description":"Draft angle in radians.","x-unit":"rad","default":0.08726646259971647},"pullDirection":{"$ref":"#/$defs/Vec3","description":"Pull direction (the neutral/parting direction).","default":[0,0,1]},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","faces","angle","pullDirection","id","name"],"additionalProperties":false},"DrawingDetail":{"type":"object","properties":{"of":{"type":"string","description":"The id of the view it enlarges: a view of the same sheet that is not a detail."},"center":{"$ref":"#/$defs/Vec3","description":"The centre of the circle: a point of the model, projected into that view.","x-unit":"mm"},"radius":{"type":"number","description":"The circle's radius, in model millimetres.","x-unit":"mm","exclusiveMinimum":0},"label":{"type":"string","description":"The letter of the detail (`DETAIL B (2:1)`). Absent: the next letter that no other section or detail of the sheet has."}},"required":["of","center","radius"],"additionalProperties":false,"description":"A detail: everything a view of the sheet draws within a circle, enlarged."},"DrawingSection":{"type":"object","properties":{"point":{"$ref":"#/$defs/Vec3","description":"A point of the cutting plane.","x-unit":"mm"},"normal":{"$ref":"#/$defs/Vec3","description":"The plane's normal, towards the viewer."},"label":{"type":"string","description":"The letter of the section (`SECTION A-A`). Absent: the next letter that no other section or detail of the sheet has."}},"required":["point","normal"],"additionalProperties":false,"description":"A section's cutting plane. The viewer stands on the +normal side; the material on that side is removed. The view shows the cut face, hatched, and the material behind it. Up is +Z; when the normal is within 25° of ±Z, up is as in the top view (for +Z) or the bottom view (for −Z)."},"DrawingSheet":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","description":"The sheet's name in the list of drawings."},"size":{"type":"string","enum":["A4","A3","A2","A1","A0","ANSI A","ANSI B","ANSI C","ANSI D","ANSI E"],"description":"The paper, landscape: ISO 216 (A4 … A0) or ANSI/ASME Y14.1 (ANSI A, 11 × 8.5 in, … ANSI E, 44 × 34 in).","default":"A3"},"scale":{"type":"number","description":"Sheet millimetres per model millimetre: 1 is 1:1, 0.5 is 1:2, 2 is 2:1.","exclusiveMinimum":0,"default":1},"projection":{"type":"string","enum":["first-angle","third-angle"],"description":"Where the views sit around the front view (ISO 128-3): first-angle puts the top view below it and the right view on its left; third-angle puts the top view above it and the right view on its right.","default":"first-angle"},"views":{"type":"array","items":{"$ref":"#/$defs/DrawingViewSpec"},"description":"The views.","minItems":1},"bodies":{"type":"array","items":{"type":"string"},"description":"Draw only these bodies, named as a check names them (a body's id, name or part number; `*` matches any text), or by the id of a feature that made one. The sheet then draws only the annotations that lie on them. Absent: every body."},"hiddenLines":{"type":"boolean","description":"Draw the edges behind the model's faces, dashed.","default":true},"holeCallouts":{"type":"boolean","description":"A hole table: each hole tagged in the view that looks along it, located from that view's lower left corner, and called out from its hole feature (count, diameter, tolerance, depth or THRU, head, FAR SIDE, standard size).","default":true},"overallDimensions":{"type":"boolean","description":"The overall width and height of each view.","default":true},"partsList":{"type":"boolean","description":"A parts list (ISO 7573) on the title block: one row per kind of body shown (item, part number, name, material, quantity), and a balloon with the item's number on a leader to each kind, in the sheet's iso view, else its first view."},"title":{"$ref":"#/$defs/DrawingTitle","description":"What the title block says that the document does not."}},"required":["id","size","scale","projection","views","hiddenLines","holeCallouts","overallDimensions"],"additionalProperties":false,"description":"An engineering drawing sheet of the document: views, dimensions and a title block. `<sheet>` in code."},"DrawingTitle":{"type":"object","properties":{"title":{"type":"string","description":"The drawing's title. Absent: the document's name."},"drawingNumber":{"type":"string","description":"The drawing's number. Absent: the part number."},"revision":{"type":"string"},"drawnBy":{"type":"string"},"checkedBy":{"type":"string"},"date":{"type":"string","description":"The day it was drawn, YYYY-MM-DD."},"company":{"type":"string"},"tolerance":{"type":"string","description":"The general tolerance note (\"ISO 2768-mK\")."},"standard":{"type":"string","description":"The standard the geometric tolerances are read by (\"ISO 1101:2017\", \"ASME Y14.5-2018\"). A sheet that draws a feature control frame and names none warns: a frame means different things under each."}},"additionalProperties":false,"description":"What the title block says that the document does not: who drew it, when, and its number."},"DrawingViewName":{"type":"string","enum":["iso","front","top","right","left","bottom","back","section","detail"],"description":"A view: a standard view, named by the side of the model the viewer stands on; a section, cut by a plane; or a detail, an enlarged part of another view."},"DrawingViewSpec":{"type":"object","properties":{"id":{"type":"string"},"view":{"$ref":"#/$defs/DrawingViewName","description":"The side of the model the viewer stands on, or `section`, or `detail`."},"at":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"The centre of the view on the sheet, from the sheet's lower left. Absent: a standard view is placed by the projection method; an iso, section or detail view goes in a column right of them.","x-unit":"mm"},"scale":{"type":"number","description":"The view's own scale. Absent: the sheet's; a detail's is twice the scale of the view it enlarges.","exclusiveMinimum":0},"hiddenLines":{"type":"boolean","description":"Draw the edges behind the model's faces, dashed. Absent: the sheet's `hiddenLines`; for a section, off."},"dimensions":{"type":"boolean","description":"Show dimensions in this view. Absent: shown."},"section":{"$ref":"#/$defs/DrawingSection","description":"The cutting plane: required on a section view, not read on another."},"detail":{"$ref":"#/$defs/DrawingDetail","description":"The circle it enlarges: required on a detail view, not read on another."}},"required":["id","view"],"additionalProperties":false,"description":"One view on a sheet."},"DynamicsContact":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_.-]+$"},"a":{"type":"string","description":"The bodies of one side: by the id the document gives a body, its name or its part number (`*` matches any text), as a check names a body.","pattern":"\\S"},"b":{"type":"string","description":"The bodies of the other side, named as `a` is. Absent: the ground the simulation stands every body on.","pattern":"\\S"},"collide":{"type":"boolean","description":"false: the two sides never touch (they pass through each other, and nothing is recorded but zeros). Absent: true."},"friction":{"type":"number","description":"The pair's Coulomb friction coefficient, in place of the one the two bodies' own make. Absent: theirs.","minimum":0},"restitution":{"type":"number","description":"The pair's restitution, 0 (no bounce) to 1, in place of the two bodies' own. Absent: theirs.","minimum":0,"maximum":1},"report":{"type":"array","items":{"$ref":"#/$defs/ContactReport"},"description":"What a run records of the pair at each frame. Absent: all four; `[]`: nothing (a pair only for its coefficients)."}},"required":["id","a"],"additionalProperties":false,"description":"A CONTACT PAIR: how two sets of bodies touch in a simulation, and what a run records of it. `<contact>` in code (docs/formats.md § contacts). A pad on a part, a gripper's jaw on what it holds, a wheel on the floor: the pair's friction and restitution are the pair's own, not a mix of the two bodies' (a rubber pad on steel grips, the same pad on ice does not). Without `report` the run records every quantity of ContactReport."},"DynamicsJoint":{"type":"object","properties":{"id":{"type":"string"},"kind":{"$ref":"#/$defs/JointKind","description":"The relative motion the joint leaves between its two bodies."},"a":{"type":"string","description":"The body that moves: by the id the document gives it (its `<body id>`, else the feature that makes it), its name or its part number, as a check names a body. A swept check moves it, and every body jointed to it, relative to `b`."},"b":{"type":"string","description":"The body `a` moves relative to, named as `a` is. Absent: the first body is jointed to the world."},"anchor":{"$ref":"#/$defs/Vec32","description":"A point of the joint's axis, in the document's space. A side with no reference binds this point of its body as drawn; when both sides have one, the assembly solver writes it where the two references meet.","x-unit":"mm"},"axis":{"$ref":"#/$defs/Vec32","description":"The direction of the joint's axis (the normal of a planar joint's plane). Absent: +Z."},"refA":{"$ref":"#/$defs/JointReference","description":"The geometry of the first body the joint binds: the face or edge its anchor and axis were read from."},"refB":{"$ref":"#/$defs/JointReference","description":"The geometry of the second body the joint binds."},"limits":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"The limits of the joint's motion, lower then upper: radians for a joint that turns (revolute, cylindrical, screw, universal, spherical), millimetres for a prismatic joint. A screw's limits bound its turn over any number of turns, and so its slide (`pitch` × turn / 2π). Absent: no limit."},"travel":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"The limits of the slide of a cylindrical joint, lower then upper.","x-unit":"mm"},"pitch":{"type":"number","description":"How far a screw joint advances along its axis in one turn.","x-unit":"mm","exclusiveMinimum":0},"efficiency":{"type":"number","description":"A screw joint's back-drive efficiency: the share of an axial load's work on the nut that reaches the screw's turn. A ball screw is near 0.9 and turns under a load; a self-locking (Acme) screw is 0 or less, tan(λ − φ) / tan(λ) for a lead angle λ at or under the friction angle φ, and holds. The simulation turns the screw under a load at this share and holds it at 0 or less. Absent: the screw holds.","maximum":1},"home":{"type":"number","description":"Where the joint's free motion sits when the design is assembled: radians for a joint that turns (revolute, cylindrical, screw, planar), millimetres for a prismatic joint. The assembly solver places `a` at this value; a screw at it also slides `pitch` × home / 2π. Within `limits` when the joint has them. Absent: 0."},"homeTravel":{"type":"number","description":"Where a cylindrical joint's slide sits when the design is assembled. Within `travel`. Absent: 0.","x-unit":"mm"},"requires":{"type":"object","properties":{},"additionalProperties":{"anyOf":[{"type":"number"},{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2}]},"description":"The poses of other joints this joint moves only in: each joint's id and the value it sits at, or its range `[lower, upper]`, in that joint's own unit (mm, or rad). `requires={{ lid: 100 }}`: a lift that moves only with its lid open. A value lies within that joint's limits. A swept check that moves this joint holds each one there (at its home when the range holds it, else at the range's end nearer it; a sweep's `with` chooses another value in the range), and refuses a sweep that moves one of them too or holds it outside (docs/formats.md § design checks)."},"actuator":{"type":"object","properties":{"mode":{"type":"string","enum":["position","velocity","torque"]},"target":{"type":"number"},"gain":{"type":"number"},"maxForce":{"type":"number"},"name":{"type":"string","description":"The name a POLICY addresses this actuator by — `shoulder`, `wheel_left`, `gripper`."},"role":{"type":"string","description":"What this actuator IS for, as a hint rather than a taxonomy: `wheel` / `arm` / `finger` / `leg` / `rotor`. Free text on purpose — a closed enum here would be a claim about which robots exist."},"ctrlrange":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"The commandable range, in the joint's own unit (rad for a joint that turns, mm for a prismatic joint)."}},"required":["mode"],"additionalProperties":false,"description":"An actuator driving this joint → the mechanism becomes a robot."}},"required":["id","kind","a","anchor"],"additionalProperties":false,"description":"A joint between two bodies: its kind, its axis, its limits and the two references it binds. `<joint>` in code."},"EndCapFeature":{"type":"object","properties":{"type":{"type":"string","const":"endCap"},"face":{"$ref":"#/$defs/TopoTarget","description":"The member's end face; or name the member below.","x-pick":"face"},"member":{"type":"string","description":"The frame member feature whose member's end is capped, in place of a picked face.","x-pick":"feature"},"segment":{"type":"string","description":"Which of its lines (by id); without one, every free end of the frame (an end no other member reaches) is capped."},"end":{"type":"string","enum":["start","end","both"],"description":"Which end of the named line.","default":"end"},"thickness":{"type":"number","description":"The plate's thickness.","x-unit":"mm","exclusiveMinimum":0,"default":3},"inside":{"type":"boolean","description":"Set the plate into the tube's opening, flush with the end, instead of on the end."},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","thickness","id","name"],"additionalProperties":false,"description":"AN END CAP: a plate that closes the open end of a frame member, on its end face."},"ExtendSurfaceFeature":{"type":"object","properties":{"type":{"type":"string","const":"extendSurface"},"edges":{"type":"array","items":{"$ref":"#/$defs/TopoRef"},"description":"The open edges to extend.","x-pick":"edge","minItems":1},"distance":{"type":"number","description":"How far each is extended.","x-unit":"mm","exclusiveMinimum":0,"default":5},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","edges","distance","id","name"],"additionalProperties":false,"description":"EXTEND A SURFACE: grow a surface body past its open edges, each face continued along its own surface (the natural extension: a plane stays the plane, a cylinder goes on round, a B-spline goes on as its last span), joined to the body. An edge is a side of its face's parameter rectangle."},"ExternalPartRef":{"type":"object","properties":{"type":{"type":"string","const":"externalPart"},"fileId":{"type":"string","description":"Host file id of the linked part, when the host has ids (never the reference's locator)."},"path":{"type":"string","description":"The linked part's path relative to this document's folder — what the reference resolves by."},"fileName":{"type":"string","description":"Filename of the linked part (fallback locator when no path, or a human label)."},"importer":{"type":"string","enum":["step","iges","3d","wrl","glb","gltf","obj","stl","ply","3mf","fbx","dae","usd","3dxml","jt","kicad_pcb","pcb.tsx","pcb.jsx","pcb.py","pcb.rs"],"description":"How to interpret the linked file: a 3D document in code (`\"3d\"`, a `.3d.tsx`, `.3d.py` or `.3d.rs` run), a foreign solid imported via the named importer (\"step\"/\"iges\"), or a board converted to a 3D solid on open — a KiCad board (\"kicad_pcb\") or a board in code, in the language it is written in (\"pcb.tsx\", \"pcb.jsx\", \"pcb.py\", \"pcb.rs\"; a LIVE link, so board edits re-mesh here). Mirrors `FileRef.importer`."},"node":{"type":"string","description":"One node of the linked file, where the file holds several things a placement may place: for a 3DXML (`importer: \"3dxml\"`), the ReferenceRep it draws, `<structure file>#<id>` (`Product.3dxml#4`; docs/formats.md § 3DXML); for a JT file (`importer: \"jt\"`), the shape node it draws, by its object id in the file's scene graph (`49`; docs/formats.md § JT). Absent: the whole file."},"unitScaleMm":{"type":"number","description":"Millimetres represented by one source coordinate for unitless/scene formats. Defaults are format-aware (glTF/VRML standard metres → 1000 mm; OBJ/STL → 1 mm). KiCad WRL adapters set 2.54."},"placement":{"$ref":"#/$defs/Placement","description":"Where to place the linked part's bodies in this document's space.","default":{"position":[0,0,0],"quaternion":[0,0,0,1],"scale":1}},"component":{"type":"string","description":"THE COMPONENT THIS BODY BELONGS TO — the placement feature whose footprint owns it."},"localPlacement":{"$ref":"#/$defs/Placement","description":"THIS BODY'S POSE IN ITS COMPONENT'S FRAME. Present exactly when component is."},"footprint":{"$ref":"#/$defs/ComponentFootprint","description":"THE PADS THIS PLACEMENT PRODUCES, when it is a placed electronic component."},"omit":{"type":"array","items":{"type":"string"},"description":"A placed 3D document: what of it is left out here, each by the id, the name or the part number its own file gives it (`*` matches any text): a body it makes, a file it places (its id names everything placed under it), a fastener stack, an `<item>`. What its file says of a body left out (an `<accept>`, a `<permitted>`, the stacks that hold it) goes with it. An entry that names nothing of the file is an error. One frame in every station, each station with its own deck: `omit={[\"deck\"]}`."},"ends":{"type":"object","properties":{},"additionalProperties":{"type":"object","properties":{"from":{"$ref":"#/$defs/RodEnd"},"to":{"$ref":"#/$defs/RodEnd"}},"additionalProperties":false},"description":"A placed 3D document: where its rods' ends are held here, by the rod's id in its file (a resistor's leads in a breadboard's sockets: `ends={{ leg1: { to: { port: \"bb/e12\" } } }}`). Each end stated here is held so, over its file's."},"moves":{"type":"array","items":{"$ref":"#/$defs/PlacedMove"},"description":"A placed 3D document: bodies it makes or files it places, each moved in its file's frame before the placement (a lid opened, a ram lowered), by the id, the name or the part number its own file gives it (a placed file's id moves everything placed under it). What its file says of the body (an `<accept>` or `<permitted>` region, in the body's own frame) moves with it, and so do its spare holes and the fastener stacks that hold only what one move moves. An entry that names nothing of the file is an error."},"inputs":{"type":"object","properties":{},"additionalProperties":{"type":"number"},"description":"A placed 3D document at other values of its `<parameter>`s, each by its name: a library profile at its cut length (`inputs={{ length: 2830 }}`), a screw at its length. The file is built at those values for this placement alone; a name the file does not declare is an error of the placement."},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the linked part's bodies combine with the bodies before it.","default":"new"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","placement","operation","id","name"],"additionalProperties":false,"description":"A LINKED (not embedded) part reference. Unlike ImportFeature — which copies the foreign STEP/IGES bytes into the document — an `ExternalPartRef` only records *where* to find another Drive file (by id or name) and reloads it on open. This keeps a part reusable across assemblies and lets a part edit propagate to every place it's used. The reference system (`cad/references.ts`) turns these into `FileRef`s (`role:\"part\"`); the editor resolves + meshes them. Foreign solids carry an `importer` (\"step\"/\"iges\") so the resolver knows to run the import path rather than run a `.3d.tsx`."},"ExtrudeFeature":{"type":"object","properties":{"type":{"type":"string","const":"extrude"},"profile":{"$ref":"#/$defs/ProfileRef","description":"The sketch regions to extrude.","x-pick":"profile"},"distance":{"type":"number","description":"How far the profile travels from its plane.","x-unit":"mm","exclusiveMinimum":0,"default":10,"x-showIf":{"through":false,"upToFace":null}},"symmetric":{"type":"boolean","description":"Extrude both directions symmetrically about the sketch plane.","x-showIf":{"through":false,"upToFace":null}},"reverse":{"type":"boolean","description":"Reverse the extrude direction."},"distance2":{"type":"number","description":"Second-direction distance (asymmetric two-sided).","x-unit":"mm","minimum":0,"x-showIf":{"through":false,"upToFace":null,"symmetric":false}},"draftAngle":{"type":"number","description":"Draft angle in radians (0 = none).","x-unit":"rad","x-showIf":{"through":false,"upToFace":null}},"through":{"type":"boolean","description":"\"Through all\": extrude far enough to span every existing body (both ways).","x-showIf":{"upToFace":null}},"upToFace":{"$ref":"#/$defs/TopoTarget","description":"\"Up to face\": extrude until the profile reaches this target face's plane.","x-pick":"face","x-showIf":{"through":false}},"surface":{"type":"boolean","description":"A SURFACE, not a solid: the profile's edges (the outer edges of its closed regions, or the sketch's open chain when it has no closed region) are moved along the direction, and the faces they sweep are a body of their own with no inside. A surface is always a new body.","default":false},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the solid combines with the bodies before it.","default":"new","x-showIf":{"surface":[false,null]}},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","profile","distance","operation","id","name"],"additionalProperties":false},"FastenerFit":{"type":"string","enum":["normal","close","loose"],"description":"How a clearance hole fits its screw (ISO 273: close is fine, normal is medium, loose is coarse)."},"FastenerStack":{"type":"object","properties":{"id":{"type":"string","description":"The screw's body id (its washer is `<id>.washer`, its nut `<id>.nut`).","pattern":"^[A-Za-z0-9_.-]+$"},"part":{"type":"string","description":"The screw, by its library part id: iso-4762 (socket head cap), iso-4017 and iso-4014 (hexagon head), iso-7380-1 (button head), iso-10642 (countersunk), then the thread (`iso-4762-m6`; a decimal one `iso-7380-1-m2.5` or `iso-7380-1-m2-5`).","pattern":"\\S"},"length":{"type":"number","description":"The nominal length: under the head, or overall for a countersunk screw.","x-unit":"mm","exclusiveMinimum":0},"at":{"$ref":"#/$defs/Vec3","description":"A point on the screw's axis, on or above the first part it clamps: the top face over a counterbore does. The rebuild seats the stack: it moves it along `axis` from `at` to the first face of that part its washer (else its head) bears on, a counterbore's floor or the face round a clearance hole, and builds every piece there. A countersunk head rests where its cone meets the countersink (proud of the face when the countersink is narrower than the head); `at` is then its top. A stack that finds no such face stays at `at`, and the fasteners check's `head-not-seated` says why.","x-unit":"mm"},"axis":{"$ref":"#/$defs/Vec3","description":"The way the shank runs from the head.","default":[0,0,-1]},"corner":{"$ref":"#/$defs/Vec3","description":"The direction from the axis to a corner of each hexagon of the stack (a hexagon head, a nut), made square to `axis`. Absent: the model's X ([1, 0, 0]), or its Y when the axis is within 26° of X. An assembly that places this file turns it with the placement."},"clamped":{"type":"array","items":{"type":"string"},"description":"The parts the screw clamps, from the head down, by id, name or part number.","minItems":1},"receiver":{"type":"string","description":"The part the screw is screwed into (a tapped hole), by id, name or part number. Absent: the nut is the receiver."},"washer":{"type":"string","description":"A washer under the head, by its library part id (`iso-7089-m6`)."},"nut":{"type":"string","description":"A nut on the far side, by its library part id (`iso-4032-m6`, `iso-4035-m6`)."},"grip":{"type":"number","description":"With a nut: how far along the axis from the seat the nut bears (the thickness of the clamped parts under it).","x-unit":"mm","exclusiveMinimum":0},"fit":{"$ref":"#/$defs/FastenerFit","description":"The clearance hole each clamped part should have.","default":"normal"},"minEngagement":{"type":"number","description":"The thread a tapped receiver must engage, in diameters of the screw.","exclusiveMinimum":0,"default":1},"torque":{"type":"number","description":"The tightening torque.","x-unit":"N·m","exclusiveMinimum":0},"material":{"type":"string","description":"The grade of every piece of the stack (\"A2-70\", \"8.8 zinc plated\"): each piece's engineering material, and part of its part number (\"ISO 7380-1 M5×12 A2-70\"), so one standard in two grades is two parts."},"partNumber":{"type":"string","description":"The screw's part number in the owner's numbering, in place of its designation."}},"required":["id","part","length","at","clamped"],"additionalProperties":false,"description":"A FASTENER STACK: `<fastener part length at axis clamped receiver washer nut grip />`. It places a screw of the fastener library (by its part id, `iso-4762-m6`: the library's `mechanical-fasteners` parts, built from the same tables), its washer and its nut, and it records what the screw does: it clamps these parts into this receiver. The fasteners check reads the record."},"FeatureControlFrame":{"type":"object","properties":{"type":{"type":"string","const":"featureControlFrame"},"characteristic":{"$ref":"#/$defs/GdtCharacteristic"},"tolerance":{"type":"number","description":"Tolerance-zone value (mm)."},"diameterZone":{"type":"boolean","description":"Diameter (Ø) tolerance zone — typical for `position`."},"modifier":{"$ref":"#/$defs/MaterialModifier","description":"Material-condition modifier on the tolerance."},"datums":{"type":"array","items":{"$ref":"#/$defs/DatumReference"},"description":"Ordered datum references (primary, secondary, tertiary)."},"anchor":{"$ref":"#/$defs/Anchor"},"modifiers":{"type":"array","items":{"type":"string"},"description":"AP242's other tolerance modifiers, by their names in the standard: `free_state`, `tangent_plane`, `statistical_tolerance`, `common_zone`, `each_radial_element`, `line_element`, `any_cross_section`, `not_convex`, `reciprocity_requirement`, `separate_requirement`, `major_diameter`, `minor_diameter`, `pitch_diameter`."},"zone":{"type":"string","description":"The zone's form when it is not a Ø zone (AP242 TOLERANCE_ZONE_FORM: `spherical`, `within a circle` …)."},"unequal":{"type":"number","description":"An unequally disposed zone (UZ): its displacement.","x-unit":"mm"},"runoutZone":{"type":"object","properties":{"angle":{"type":"number"}},"additionalProperties":false,"description":"A runout zone definition (RUNOUT_ZONE_DEFINITION): its orientation's angle, when the file gives one.","x-unit":"rad"},"projected":{"type":"object","properties":{"length":{"type":"number"},"from":{"$ref":"#/$defs/Anchor"}},"required":["length"],"additionalProperties":false,"description":"A projected zone (Ⓟ): its length, and the face it projects from."},"perUnit":{"type":"object","properties":{"size":{"type":"number"},"area":{"type":"string","enum":["rectangular","square","circular"]},"second":{"type":"number"}},"required":["size"],"additionalProperties":false,"description":"A tolerance per unit length or area: its size, the area's shape and its second size."},"maximum":{"type":"number","description":"Its maximum when a modifier lets it grow (AP242 GEOMETRIC_TOLERANCE_WITH_MAXIMUM_TOLERANCE).","x-unit":"mm"},"segmentOf":{"type":"object","properties":{"to":{"type":"string"},"relation":{"type":"string"}},"required":["to","relation"],"additionalProperties":false,"description":"This frame is the lower segment of frame `to`: `composite` (a composite frame) or another relation by name."},"datumFrame":{"$ref":"#/$defs/Anchor","description":"The placement (or the geometry) its datum system names: the datum reference frame's axes."},"formats":{"$ref":"#/$defs/ValueFormats"},"id":{"type":"string"},"label":{"type":"string","description":"Optional free-text label override; most types otherwise derive their display text from the geometry."},"textAt":{"$ref":"#/$defs/Vec3","description":"Optional explicit placement (mm) for the text/frame; defaults derive from the anchors."},"visible":{"type":"boolean","description":"Toggle visibility without deleting (parity with decals/bindings). Default true."}},"required":["type","characteristic","tolerance","anchor","id"],"additionalProperties":false,"description":"A GD&T feature-control frame: characteristic ▸ tolerance (+ Ø zone / modifier) ▸ datum references."},"FilletFeature":{"type":"object","properties":{"type":{"type":"string","const":"fillet"},"edges":{"type":"array","items":{"$ref":"#/$defs/TopoTarget"},"description":"The edges to round.","x-pick":"edge","minItems":1},"radius":{"type":"number","description":"The radius of the round.","x-unit":"mm","exclusiveMinimum":0,"default":2},"radius2":{"type":"number","description":"Optional end radius — when set and ≠ radius, the fillet varies along each edge.","x-unit":"mm","exclusiveMinimum":0},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","edges","radius","id","name"],"additionalProperties":false},"FittedChartMap":{"type":"object","properties":{"kind":{"type":"string","const":"fitted"},"degreeU":{"type":"number"},"degreeV":{"type":"number"},"x":{"type":"array","items":{"type":"array","items":{"type":"number"}},"description":"`(degreeU+1) × (degreeV+1)` coefficients for the x output."},"y":{"type":"array","items":{"type":"array","items":{"type":"number"}},"description":"…and for y."},"scaffold":{"type":"number","description":"Cells per side of the scaffold the fit was solved on. AUTHORED."},"residual":{"type":"number","description":"Worst deviation of the fit from the solved flattening, in millimetres. Reported, never hidden."}},"required":["kind","degreeU","degreeV","x","y","scaffold","residual"],"additionalProperties":false,"description":"A FITTED flattening, stored as a tensor-product Bernstein map over the chart's own (u,v) rectangle."},"FlangePosition":{"type":"string","enum":["outside","materialInside","materialOutside"],"description":"Where an edge flange's bend sits against the edge it is built on."},"FootprintPad":{"type":"object","properties":{"terminal":{"type":"string","description":"The pin this pad is, as the part names it: `1`, `A2`, `GND`."},"layer":{"type":"string","description":"Which copper layer the pad is on."},"at":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"Pad centre in the layer plane's (u,v) mm, relative to the placement origin."},"size":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"Pad extent (u,v) in mm. Presentation and clearance; the binding does not read it."}},"required":["terminal","layer","at"],"additionalProperties":false,"description":"ONE PAD of a component's footprint, in the copper-layer plane's own (u,v) millimetres relative to the placement origin."},"FrameCorner":{"type":"string","enum":["none","butt","miter"],"description":"How two frame members meet at a corner of the sketch: cut at the bisector, one butting on the other, or untrimmed."},"FrameJoint":{"type":"string","enum":["none","trim","cope","butt"],"description":"How a member's end meets another member's side."},"FrameMemberFeature":{"type":"object","properties":{"type":{"type":"string","const":"frameMember"},"sketch":{"type":"string","description":"The sketch whose lines the members run along (their centre lines).","x-pick":"sketch"},"segments":{"type":"array","items":{"type":"string"},"description":"The lines, by id; every line of the sketch when omitted."},"section":{"$ref":"#/$defs/FrameProfile","description":"The section.","default":"squareTube"},"size":{"type":"string","description":"The standard size, as the profile library names it (width × height × wall, or diameter × wall).","default":"40x40x3"},"corner":{"$ref":"#/$defs/FrameCorner","description":"How members meet at a shared end.","default":"miter"},"joint":{"$ref":"#/$defs/FrameJoint","description":"How a member's end meets members it does not meet end to end: an end on another member's side (a T), or a corner of three or more members, where the first member and any in line with it run through. `trim`: the end is cut flat at the other's near face; `cope`: the other's outer shape is cut out of the end; `butt`: the end stops at the other's near face without reaching into its corner (square, as cut); `none`: untrimmed.","default":"trim"},"rotate":{"type":"number","description":"The section turned about the member's axis.","x-unit":"rad"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","sketch","section","size","corner","id","name"],"additionalProperties":false,"description":"FRAME MEMBERS: a structural section swept along lines of a sketch, one body per line, trimmed where two meet."},"FrameProfile":{"type":"string","enum":["angle","squareTube","rectTube","channel","roundTube"],"description":"A weldment's structural section (`@commandagi/3d-core/weldment` PROFILES holds the standard sizes)."},"FullRoundFeature":{"type":"object","properties":{"type":{"type":"string","const":"fullRound"},"face":{"$ref":"#/$defs/TopoTarget","description":"Narrow strip face to replace with a rolling-ball blend.","x-pick":"face"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","face","id","name"],"additionalProperties":false},"GaugeTable":{"type":"string","enum":["steel","stainless","aluminium","custom"]},"GaussianSplatFeature":{"type":"object","properties":{"type":{"type":"string","const":"gaussianSplat"},"count":{"type":"number","description":"Number of gaussians N."},"positions":{"type":"array","items":{"type":"number"},"description":"Means, 3N (mm)."},"scales":{"type":"array","items":{"type":"number"},"description":"Per-axis world-space scales, 3N (already exp'd from log-scale on import)."},"rotations":{"type":"array","items":{"type":"number"},"description":"Orientation quaternions, 4N [x,y,z,w] (normalized on import)."},"colors":{"type":"array","items":{"type":"number"},"description":"Per-splat RGBA, 4N, 0..1 (SH DC → base color via `0.5 + C0·f_dc`, sigmoid(opacity) → alpha). Kept as the tier-1 view-independent color; higher SH bands (view-dependent) live in `sh`."},"shDegree":{"type":"number","enum":[0,3,1,2],"description":"Spherical-harmonic degree of the ORIGINAL asset (0..3). 0 = DC only (color is exact); 1..3 = the `f_rest_*` coefficients are preserved in `sh` for a view-dependent renderer. We keep the real 3DGS parameter model rather than collapsing to rgba — see the g-splat fidelity note."},"sh":{"type":"array","items":{"type":"number"},"description":"Higher-band SH coefficients (excluding the DC term already baked into `colors.rgb`). Layout: per splat, `restCount = (shDegree+1)² − 1` coefficients, each an RGB triple, interleaved `[s0_c0_r,s0_c0_g,s0_c0_b, s0_c1_r,…]`. Length = N·restCount·3. Absent for degree-0 assets."},"source":{"type":"object","properties":{"format":{"type":"string"},"fileId":{"type":"string"},"fileName":{"type":"string"},"shDegree":{"type":"number"},"splatCount":{"type":"number"}},"additionalProperties":false,"description":"Provenance + roundtrip metadata: the exact source format so export/interop decisions stay sane."},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","count","positions","scales","rotations","colors","id","name"],"additionalProperties":false,"description":"A **3D Gaussian-Splat volume** — the headline volumetric primitive: a cloud of anisotropic translucent gaussians (position + per-axis scale + orientation + color/opacity), the representation of choice for photoreal capture (video/scan → navigable scene) and volumetric science visualization. Imported from a gaussian PLY (or `.splat`); the DC spherical-harmonic term is baked to an RGB color on import."},"GdtCharacteristic":{"type":"string","enum":["position","straightness","flatness","circularity","cylindricity","profileLine","profileSurface","angularity","perpendicularity","parallelism","concentricity","symmetry","circularRunout","totalRunout"],"description":"The 14 geometric characteristics (ASME Y14.5 / ISO 1101) a feature-control frame can specify."},"GenNodeRecord":{"type":"object","properties":{"operator":{"type":"string","description":"The SEMANTIC operator — `inpaint`, not a vendor's endpoint name."},"implementation":{"type":"string"},"implementationVersion":{"type":"string"},"artifactDigest":{"type":"string","description":"Scheme-prefixed model identity: `replicate:owner/slug:hex`, `fal:owner/slug`."},"artifactImmutable":{"type":"boolean","description":"Whether that identity genuinely pins the artifact, or names something the vendor can change."},"inputDigest":{"type":"string","description":"Digest of the input the model saw, so \"the inputs moved\" is decidable."},"paramsDigest":{"type":"string","description":"Digest of the authored params, seed included."},"producedAt":{"type":"string"},"output":{"type":"object","properties":{"locator":{"type":"string"},"digest":{"type":"string"}},"required":["locator"],"additionalProperties":false}},"required":["output"],"additionalProperties":false,"description":"The record a node holds: the output's locator always, the provenance fields when the run returned them. A run that returned only a file still records where its bytes are, in the same slot."},"GenerateFeature":{"type":"object","properties":{"type":{"type":"string","const":"generate"},"modelId":{"type":"string","description":"The `GEN_MODELS` model id this node runs (e.g. `image-to-splat.trellis`)."},"params":{"type":"object","properties":{},"additionalProperties":{},"description":"Scalar model inputs (prompt/enum/number/seed) — the wireable image/mesh inputs live in `refs`."},"refs":{"type":"object","properties":{},"additionalProperties":{"type":"string"},"description":"Wired inputs: model input key → upstream feature id (its generated output feeds this model)."},"provenance":{"$ref":"#/$defs/GenNodeRecord","description":"The last run's one record: where its output landed (downstream chaining, and what renders) and, when the run supplied them, the model's identity and the input and param digests."},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","modelId","params","id","name"],"additionalProperties":false,"description":"A GENERATE feature — a creative generative model (`@commandagi/core` `GEN_MODELS`) as a re-runnable node in the feature graph. It projects into the op-graph dock as a `gen:<modelId>` GenNode (see ui/model/opgraph-projection): scalar inputs (prompt/enum/…) ride in `params`, wired image/mesh inputs in `refs` (inputKey → upstream featureId), and running it (the dock's async `runNode`) generates an asset that lands as a separate splat/mesh feature (`addSciFeature`) and bakes its `provenance` record here. The generate feature itself produces no geometry — it's the recipe; the landed feature is the result."},"GenerateViaFeature":{"type":"object","properties":{"type":{"type":"string","const":"generateVia"},"at":{"$ref":"#/$defs/ConductorPathRef","description":"The placement points. One via per point."},"layers":{"type":"array","items":{"$ref":"#/$defs/CopperLayerRef"},"description":"Every copper layer the barrel touches, outermost first. Two for a through via, more for a span."},"drillMm":{"type":"number","description":"Finished hole diameter, mm."},"padDiameterMm":{"type":"number","description":"Annular pad diameter on each layer it touches, mm."},"conductor":{"$ref":"#/$defs/ConductorElectrical"},"material":{"$ref":"#/$defs/MaterialDef"},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the copper combines with the bodies before it.","default":"new"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","at","layers","drillMm","padDiameterMm","conductor","operation","id","name"],"additionalProperties":false,"description":"A VIA — sketch points into an op, exactly like a trace, and that sameness is the evidence the decomposition is a real structure rather than a convenient one."},"GraphFeature":{"type":"object","properties":{"type":{"type":"string","const":"graph"},"nodePositions":{"type":"array","items":{"type":"number"},"description":"Node positions, 3N (mm — soma/centroid of each cell)."},"nodeSizes":{"type":"array","items":{"type":"number"},"description":"Optional per-node radius, N."},"nodeColors":{"type":"array","items":{"type":"number"},"description":"Optional per-node RGB color, 3N (0..1) — e.g. by cell type / region / community."},"nodeGroups":{"type":"array","items":{"type":"number"},"description":"Optional per-node group id (small int) for coloring when nodeColors is absent."},"edges":{"type":"array","items":{"type":"number"},"description":"Edges as flat node-index pairs [a0,b0, a1,b1, …]."},"edgeWeights":{"type":"array","items":{"type":"number"},"description":"Optional per-edge weight (synapse count / strength), length = edges.length/2."},"directed":{"type":"boolean","description":"Directed (synaptic in→out) vs undirected."},"source":{"type":"object","properties":{"format":{"type":"string"},"fileId":{"type":"string"},"fileName":{"type":"string"},"title":{"type":"string"},"nodeCount":{"type":"number"},"edgeCount":{"type":"number"}},"additionalProperties":false},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","nodePositions","edges","id","name"],"additionalProperties":false,"description":"A **graph / network** — nodes at 3D positions joined by edges. The substrate for a CONNECTOME (nodes = cells/neurons, edges = synapses/contacts): \"a Drosophila brain with exact cell mappings\", a C. elegans wiring diagram, a protein-interaction net, a pipe/circuit network. Kernel-free; rendered as node spheres + edge lines. Distinct from `skeleton` (a within-cell branching tree) — this is the between-cell wiring."},"HoleFeature":{"type":"object","properties":{"type":{"type":"string","const":"hole"},"face":{"$ref":"#/$defs/TopoTarget","description":"Planar face the hole is placed on; the hole goes inward along -normal.","x-pick":"face"},"positions":{"type":"array","items":{"$ref":"#/$defs/Vec3"},"description":"Where the holes are, in model coordinates: one hole at each point, moved onto the face along its normal. With neither `positions` nor `sketch`, one hole at the face's centre.","x-unit":"mm","minItems":1},"sketch":{"type":"string","description":"Where the holes are, as a sketch of points: one hole at each point of it that no segment uses, moved onto the face along its normal.","x-pick":"sketch"},"diameter":{"type":"number","x-unit":"mm","exclusiveMinimum":0,"default":6},"depth":{"type":"number","x-unit":"mm","exclusiveMinimum":0,"default":10,"x-showIf":{"through":false}},"through":{"type":"boolean","description":"Through-all instead of a fixed depth.","default":true},"style":{"$ref":"#/$defs/HoleStyle","description":"Plain, counterbored, countersunk, or tapped (drilled at the thread's tap drill and threaded).","default":"simple"},"thread":{"type":"string","description":"A tapped hole's thread: an ISO metric coarse thread (\"M6\") or a Unified one (\"1/4-20\", \"#10-24\"), from the shipped tables (`./hole-sizes.ts` tappedHole). It gives `diameter` (the tap drill), the thread's major diameter and its pitch.","x-pick":"thread","x-showIf":{"style":"tapped"}},"threadDepth":{"type":"number","description":"How deep the thread goes from the face (default: the whole hole).","x-unit":"mm","exclusiveMinimum":0,"x-showIf":{"style":"tapped"}},"threadKind":{"type":"string","enum":["cosmetic","modeled"],"description":"The thread is cosmetic (the hole is drilled at the tap drill and the thread is drawn and called out, not cut), or modelled (its helix is cut into the wall).","default":"cosmetic","x-showIf":{"style":"tapped"}},"headDiameter":{"type":"number","description":"Counterbore/countersink head diameter.","x-unit":"mm","exclusiveMinimum":0,"default":12,"x-showIf":{"style":["counterbore","countersink"]}},"headDepth":{"type":"number","description":"Counterbore depth (counterbore only).","x-unit":"mm","exclusiveMinimum":0,"default":4,"x-showIf":{"style":"counterbore"}},"size":{"type":"string","description":"A standard hole by name: a thread and a fit, \"M4 close fit\", \"M4 normal fit\", \"M4 loose fit\", \"M4 tap\" (`./hole-sizes.ts`; the sizes are the shipped tables of ISO 273 and ISO 2306). It gives `diameter`, and for a counterbore or a countersink the head. Clear it to give a diameter that is not in the table."},"tolerance":{"$ref":"#/$defs/DimensionTolerance","description":"The diameter's tolerance: an ISO 286 class (`{ class: \"H7\" }`), deviations (`{ upper: 0.02, lower: 0 }`) or basic (`./tolerances.ts`). The drawing's hole callout writes it; a fit check names the hole by its id."},"spare":{"type":"boolean","description":"Spare holes, left empty on purpose (a breadboard's grid, a bolt pattern for an option): the holes check does not ask what fills them. It reads them by `positions` and `diameter`.","default":false},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","face","diameter","depth","style","id","name"],"additionalProperties":false},"HoleStyle":{"type":"string","enum":["simple","counterbore","countersink","tapped"]},"HostCode":{"type":"object","properties":{"outputs":{"type":"array","items":{"type":"string"},"description":"The files the program writes, relative to the document: `.step` (each one body, the first takes the code part's id) and `.json` (values `bind` reads). At least one `.step`.","minItems":1},"reads":{"type":"array","items":{"type":"string"},"description":"Other files the program reads, relative to the document: their bytes are part of the cache key."},"secrets":{"type":"array","items":{"type":"string"},"description":"Secrets the program is given as environment variables, by name: each must be named by the grant too."},"timeout":{"type":"number","description":"The longest the program may run, in seconds (default 300).","minimum":1,"maximum":3600},"bind":{"type":"array","items":{"$ref":"#/$defs/HostCodeBinding"},"description":"Values of the JSON outputs that drive the document's fields, as a parameter's bindings do."}},"required":["outputs"],"additionalProperties":false,"description":"What a host code part writes and reads (`<code host={…}>`; docs/formats.md § a host code part)."},"HostCodeBinding":{"type":"object","properties":{"output":{"type":"string","description":"The JSON output, as `outputs` names it."},"key":{"type":"string","description":"The value's dot path in that JSON (`boards.front.x`, `poses.0.z`)."},"target":{"type":"string","description":"The feature whose field it drives."},"field":{"type":"string","description":"The field's dot path, as a parameter's binding names it (`placement.position.2`)."}},"required":["output","key","target","field"],"additionalProperties":false,"description":"One value of a host code part's JSON output that drives a field of a feature."},"ImportFeature":{"type":"object","properties":{"type":{"type":"string","const":"import"},"format":{"type":"string","enum":["step","iges","brep"],"description":"Source format of the embedded file content: STEP, IGES, or an OpenCASCADE BRep (a FreeCAD document's shape)."},"data":{"type":"string","description":"Raw STEP/IGES/BRep file content."},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the imported solid combines with the bodies before it.","default":"new"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","format","data","operation","id","name"],"additionalProperties":false},"IncomingLot":{"type":"object","properties":{"quantity":{"type":"integer","minimum":1},"date":{"type":"string","description":"The day the supplier expects it, YYYY-MM-DD.","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["quantity","date"],"additionalProperties":false,"description":"A lot on its way to a supplier."},"Inspection":{"type":"object","properties":{"dimensions":{"type":"array","items":{"$ref":"#/$defs/CriticalDimension"}},"procedure":{"type":"string","description":"The procedure, or the path of the file that holds it."},"acceptance":{"type":"string","description":"What passes."},"sampling":{"type":"string","description":"How many are inspected: \"every part\", \"AQL 1.0 level II\"."},"electrical":{"type":"string","enum":["none","flying-probe","fixture"],"description":"A board's electrical test."},"minutes":{"type":"number","description":"The time to inspect one part.","x-unit":"min","minimum":0},"ratePerHour":{"type":"number","minimum":0},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"additionalProperties":false,"description":"HOW A PART IS INSPECTED OR TESTED, AND WHEN IT IS ACCEPTED."},"JointKind":{"type":"string","enum":["fixed","revolute","prismatic","cylindrical","planar","screw","spherical","universal"],"description":"The kinds of joint, by the relative motion each leaves between its two bodies: `fixed` none; `revolute` a turn about the axis; `prismatic` a slide along it; `cylindrical` a turn about it and a slide along it; `planar` a slide in the plane normal to the axis and a turn about the axis; `screw` a turn that advances `pitch` along the axis; `spherical` any turn about the anchor; `universal` two turns about crossed axes."},"JointReference":{"type":"object","properties":{"kind":{"type":"string","enum":["face","edge","vertex"]},"point":{"$ref":"#/$defs/Vec32","description":"The face's centre, the edge's midpoint or the vertex, in the body's own space.","x-unit":"mm"},"direction":{"$ref":"#/$defs/Vec32","description":"The face's normal or the edge's direction."},"label":{"type":"string","description":"What a person calls it (\"bore of the housing\")."}},"required":["kind","point"],"additionalProperties":false,"description":"The geometry of a body that a joint binds: a face, an edge or a vertex, named by where it is in the body's own space (the body as its features draw it, before the placement the assembly gives it)."},"JointSweep":{"type":"object","properties":{"joints":{"type":"array","items":{"type":"string"},"description":"The joints (their ids; a placed file's joint is `<placement id>/<its id>`, `dock_a/palletLift`, at any depth): prismatic, revolute, screw or cylindrical joints with `limits` (and a cylindrical joint's `travel`).","minItems":1},"samples":{"type":"integer","description":"How many values are judged along each joint, both limits included.","minimum":2,"maximum":1000,"default":11},"step":{"type":"number","description":"The largest distance between two values judged along each joint, in its unit (mm, or rad), in place of `samples`.","exclusiveMinimum":0},"with":{"type":"object","properties":{},"additionalProperties":{"type":"number"},"description":"Other joints held at a value for the whole sweep, in each one's own unit: `with: { lid: 100 }` sweeps a lift with its lid open. Each is a prismatic, revolute or screw joint the sweep does not move, and the value lies within its limits and within what a swept joint `requires` of it. The joints a held joint `requires` are held too."}},"required":["joints"],"additionalProperties":false,"description":"HOW A CHECK MOVES ITS JOINTS: `sweep={{ joints: [\"X\", \"Z\"], step: 5 }}`. Each joint's values are spread evenly over its `limits` (a cylindrical joint's slide over its `travel`, as the axis `<id>:slide`), both ends included, and every combination is a pose. Where a pair starts or stops clashing (or being too near) between two values, the value is found to 0.1 mm or 0.1°; between poses, the kernel proves the pair apart or splits the cell (docs/formats.md § design checks, over the joints' ranges). A value is the joint's own: millimetres along a prismatic joint's axis, radians about a revolute, screw or cylindrical joint's axis through its anchor."},"LibraryData":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_.-]+$"},"match":{"type":"string","description":"A piece's designation and grade, `*` matching any text (\"ISO 4762 M5×*\", \"ISO 4032 *\", \"ISO 4017 * A2-70\").","pattern":"\\S"},"engineering":{"$ref":"#/$defs/PartEngineering"},"sizes":{"type":"array","items":{"$ref":"#/$defs/LibrarySize"},"description":"The sizes it sells, one row each. With `sizes`, the library gives its data only to a piece of a size it lists."}},"required":["id","match","engineering"],"additionalProperties":false,"description":"THE DATA OF LIBRARY FASTENER PIECES, GIVEN ONCE: `<library id match engineering sizes>`. Every screw, washer and nut of the document's `<fastener>` stacks whose designation (with its stack's grade, when the stack states one) matches `match` (`*` matches any text: \"ISO 4762 M5*\", \"ISO 7089 *\", \"ISO 4017 * A2-70\") takes this engineering data (a supplier and its price, compliance, shipping, lifecycle). `sizes` is the table of what differs by size: each row's part number, sku, price and mass. A piece's own `<body id=\"f1\">` (or `f1.washer`, `f1.nut`) says more where it says it; the first `<library>` that matches is read."},"LibrarySize":{"type":"object","properties":{"size":{"type":"string","description":"The size as the designation writes it after the standard: \"M4×25\" (a screw), \"M4\" (a washer, a nut).","pattern":"\\S"},"partNumber":{"type":"string"},"mpn":{"type":"string","description":"The maker's part number of this size."},"sku":{"type":"string","description":"The first supplier's sku of this size."},"priceBreaks":{"type":"array","items":{"$ref":"#/$defs/PriceBreak"},"description":"The first supplier's price breaks of this size."},"mass":{"$ref":"#/$defs/PartMass","description":"A weighed or datasheet mass of one, in place of its envelope's volume × its grade's density."}},"required":["size"],"additionalProperties":false,"description":"ONE SIZE OF A `<library>`: what differs from size to size, over the library's `engineering`."},"Lifecycle":{"type":"object","properties":{"status":{"type":"string","enum":["active","nrnd","eol","obsolete"]},"lastTimeBuy":{"type":"string","description":"The last day it can be ordered, YYYY-MM-DD.","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"onHand":{"type":"integer","description":"Units on hand.","minimum":0},"reorderPoint":{"type":"integer","description":"Order more at or below this many.","minimum":0},"source":{"type":"string","description":"Where the status was read."},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["status"],"additionalProperties":false,"description":"WHERE A BOUGHT PART IS IN ITS LIFE, AND HOW MANY ARE ON THE SHELF."},"LinearDimension":{"type":"object","properties":{"type":{"type":"string","const":"linearDimension"},"a":{"$ref":"#/$defs/Anchor"},"b":{"$ref":"#/$defs/Anchor"},"axis":{"type":"string","enum":["x","y","z"],"description":"Project the distance onto one axis (`x`/`y`/`z`) for an ordinate measure; omit for true 3D distance."},"value":{"type":"number","description":"The distance it states (mm), when it is stated and not measured from the anchors.","x-unit":"mm"},"directed":{"type":"boolean","description":"From `a` to `b` (AP242 DIRECTED_DIMENSIONAL_LOCATION)."},"measure":{"type":"string","description":"AP242's name of the distance when it is not `linear distance` (`curved distance`, `linear distance inner outer` …)."},"id":{"type":"string"},"label":{"type":"string","description":"Optional free-text label override; most types otherwise derive their display text from the geometry."},"textAt":{"$ref":"#/$defs/Vec3","description":"Optional explicit placement (mm) for the text/frame; defaults derive from the anchors."},"visible":{"type":"boolean","description":"Toggle visibility without deleting (parity with decals/bindings). Default true."},"tolerance":{"$ref":"#/$defs/DimensionTolerance","description":"Its tolerance (`./tolerances.ts`): deviations, a class or basic. A stack-up or a fit check names it by its id."},"limits":{"type":"boolean","description":"The tolerance is stated as its limits (`35.2 / 34.8`), not as deviations from the nominal."},"fit":{"type":"object","properties":{"zone":{"type":"string"},"source":{"type":"string"},"form":{"type":"string"},"grade":{"type":"string"}},"required":["zone","source"],"additionalProperties":false,"description":"An ISO 286 class as the file wrote it (LIMITS_AND_FITS), where that is not what the class gives: its zone and source (not `hole`/`shaft` and `ISO 286-1`), and its form and grade when they are not the class's letters and number."},"notes":{"type":"array","items":{"type":"string"},"description":"Its notes (AP242 `dimensional note`s besides `basic`): `auxiliary` (a reference dimension), `theoretical` …"},"modifiers":{"type":"array","items":{"type":"string"},"description":"Its modifiers (AP242's set of `dimensional note`s): `statistical`, `continuous feature`, `controlled radius` …"},"noValue":{"type":"boolean","description":"The file states no value for it: a dimension that only says which features are dimensioned."},"formats":{"$ref":"#/$defs/ValueFormats"}},"required":["type","a","b","id"],"additionalProperties":false,"description":"Distance between two anchors — true 3D, or projected onto a single axis (ordinate/aligned)."},"LinearPatternFeature":{"type":"object","properties":{"type":{"type":"string","const":"linearPattern"},"seedFeature":{"type":"string","description":"Features whose bodies are patterned.","x-pick":"feature"},"direction":{"$ref":"#/$defs/Vec3","description":"The direction of the copies.","default":[1,0,0]},"spacing":{"type":"number","description":"The distance between copies.","x-unit":"mm","default":20},"count":{"type":"integer","description":"How many there are, the original included.","minimum":1,"default":3},"direction2":{"$ref":"#/$defs/Vec3","description":"Optional second direction."},"spacing2":{"type":"number","description":"The distance between copies in the second direction.","x-unit":"mm"},"count2":{"type":"integer","description":"How many there are in the second direction.","minimum":1},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the copies combine with the bodies they act on. Absent: the repeated feature's own operation. A pattern of a cut cuts only the bodies it consumes (`consumes`; absent: the bodies the repeated feature consumes)."},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","seedFeature","direction","spacing","count","id","name"],"additionalProperties":false},"LoftFeature":{"type":"object","properties":{"type":{"type":"string","const":"loft"},"profiles":{"type":"array","items":{"$ref":"#/$defs/ProfileRef"},"description":"The sections the solid passes through, in order.","x-pick":"profile","minItems":2},"ruled":{"type":"boolean","description":"Straight faces between the sections instead of a smooth skin."},"closed":{"type":"boolean","description":"Join the last section back to the first."},"surface":{"type":"boolean","description":"A SURFACE, not a solid: a skin through the sections' outer edges (or each sketch's open chain), with no end caps and no inside, a body of its own. A surface is always a new body.","default":false},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the solid combines with the bodies before it.","default":"new","x-showIf":{"surface":[false,null]}},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","profiles","operation","id","name"],"additionalProperties":false},"MakeHumanFeature":{"type":"object","properties":{"type":{"type":"string","const":"makeHuman"},"subdivision":{"type":"integer","description":"Catmull-Clark refinement levels applied to the body surface. Absent or 0 = the control cage itself.","minimum":0,"maximum":3},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."},"gender":{"type":"number","minimum":0,"maximum":1,"default":0.5,"x-widget":"slider","x-step":0.01},"age":{"type":"number","minimum":0,"maximum":1,"default":0.5,"x-widget":"slider","x-step":0.01},"muscle":{"type":"number","minimum":0,"maximum":1,"default":0.5,"x-widget":"slider","x-step":0.01},"weight":{"type":"number","minimum":0,"maximum":1,"default":0.5,"x-widget":"slider","x-step":0.01},"height":{"type":"number","minimum":0,"maximum":1,"default":0.5,"x-widget":"slider","x-step":0.01},"proportions":{"type":"number","minimum":0,"maximum":1,"default":0.5,"x-widget":"slider","x-step":0.01},"cupsize":{"type":"number","minimum":0,"maximum":1,"default":0.5,"x-widget":"slider","x-step":0.01},"firmness":{"type":"number","minimum":0,"maximum":1,"default":0.5,"x-widget":"slider","x-step":0.01},"african":{"type":"number","description":"One third of the ethnicity simplex (the three sum to 1).","minimum":0,"maximum":1,"default":0.3333333333333333,"x-widget":"slider","x-step":0.01},"asian":{"type":"number","minimum":0,"maximum":1,"default":0.3333333333333333,"x-widget":"slider","x-step":0.01},"caucasian":{"type":"number","minimum":0,"maximum":1,"default":0.3333333333333333,"x-widget":"slider","x-step":0.01}},"required":["type","id","name","gender","age","muscle","weight","height","proportions","cupsize","firmness","african","asian","caucasian"],"additionalProperties":false,"description":"A REAL human body: MakeHuman's hm08 basemesh morphed by its macro targets."},"MakeSpec":{"type":"object","properties":{"device":{"type":"string","description":"The device definition that makes it: a path relative to the document, or an address."},"shop":{"type":"string","description":"The shop that makes it, when it is not one of the fleet's devices."},"flow":{"type":"string","description":"The process flow that makes it (`stage1.flow.tsx`, by its path from this document): its steps, tools and minutes are the part's process and its cost, counted once, so the part states no cycle time of its own."},"parameters":{"type":"object","properties":{},"additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"string"},{"type":"number"}]},"description":"The process parameters (layer height, walls, infill, feed, stepdown …), by name."},"setupMinutes":{"type":"number","description":"The time to set up one batch.","x-unit":"min","minimum":0},"cycleMinutes":{"type":"number","description":"The time to make one part.","x-unit":"min","exclusiveMinimum":0},"ratePerHour":{"type":"number","description":"What an hour of the device or the shop costs; with `ratePerHourHigh`, the low end of an estimate.","minimum":0},"ratePerHourHigh":{"type":"number","description":"The high end of an estimate of the rate (a lump built in house, not quoted yet): the roll-up's `totalHigh` and a cost budget judge it. Not under `ratePerHour`.","minimum":0},"currency":{"type":"string","description":"ISO 4217 currency code of the rate.","pattern":"^[A-Z]{3}$"},"leadTimeDays":{"type":"number","description":"Days from order to a made part.","minimum":0},"setups":{"type":"array","items":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3},"description":"A machined part's setups: the spindle axis of each, in the part's frame, in the order they are cut ([0, 0, 1] cuts from above, [0, 0, -1] after a flip). The mill check judges each face from the first setup that reaches it."},"stock":{"$ref":"#/$defs/StockMaterial","description":"The stock it is made from, bought by its own offer (a filament spool, a plate of 6061): a line of the roll-up of its own. Without it, the material is in the rate."}},"additionalProperties":false,"description":"HOW AND WHERE A MADE PART IS MADE: the device or the shop, the process parameters, the time and its rate."},"ManufacturingProcess":{"type":"string","enum":["other","manual","cnc-milling","cnc-turning","laser-cutting","waterjet-cutting","sheet-metal-bending","extrusion","casting","injection-moulding","fdm-printing","sla-printing","sls-printing","mjf-printing","welding","grinding","glass-working","saw-cutting","purchased","reference"],"description":"How a part is made."},"Mate":{"type":"object","properties":{"id":{"type":"string"},"kind":{"$ref":"#/$defs/MateKind"},"a":{"type":"string","description":"The reference (heavier / typically fixed) component — feature id of an ExternalPartRef."},"b":{"type":"string","description":"The dependent (typically moved) component — feature id of an ExternalPartRef."},"axis":{"type":"string","enum":["X","Y","Z"],"description":"Local axis on component A the mate references."},"axisB":{"type":"string","enum":["X","Y","Z"],"description":"Local axis on component B (defaults to `axis` when omitted)."},"offset":{"type":"number","description":"Signed gap (mm) for an `offset` mate (0 for coincident)."},"distance":{"type":"number","description":"Target separation (mm) for a `distance` mate."},"angle":{"type":"number","description":"Target angle (rad) for an `angle` mate."}},"required":["id","kind","a","b","axis"],"additionalProperties":false,"description":"A constraint between two placed components. References a component by its `ExternalPartRef` feature id and a local axis on that component. The assembly solver relaxes both components' placements (position AND orientation) toward simultaneous satisfaction of every mate with least motion; unsatisfiable mates (missing components) are reported, never silently dropped."},"MateKind":{"type":"string","enum":["coincident","offset","parallel","perpendicular","distance","angle","concentric"],"description":"Mate kinds the assembly solver understands — a real 6-DOF set (translational + rotational)."},"MaterialDef":{"type":"object","properties":{"preset":{"$ref":"#/$defs/MaterialPreset"},"color":{"type":"string","description":"Hex color string, e.g. \"#9aa6b4\": the base colour (a metal's reflectance, a plastic's diffuse colour)."},"metalness":{"type":"number","minimum":0,"maximum":1},"roughness":{"type":"number","description":"The microfacet roughness, 0 a mirror.","minimum":0,"maximum":1},"envIntensity":{"type":"number","description":"environment map intensity"},"opacity":{"type":"number","description":"Surface opacity 0..1 (1 = fully opaque; <1 renders the body translucent). Optional/defaulted."},"ior":{"type":"number","description":"The index of refraction of a dielectric (1.5 for most plastics and glass).","minimum":1,"maximum":3,"default":1.5},"transmission":{"type":"number","description":"The share of light that passes through (glass 1, an opal diffuser between).","minimum":0,"maximum":1,"default":0},"thickness":{"type":"number","description":"The thickness a transmissive body's light passes through.","x-unit":"mm","minimum":0},"clearcoat":{"type":"number","description":"A clear lacquer over the base (a solder mask's gloss, a car's clear coat).","minimum":0,"maximum":1,"default":0},"clearcoatRoughness":{"type":"number","minimum":0,"maximum":1,"default":0},"anisotropy":{"type":"number","description":"Anisotropy of the highlight along the texture's direction (a brushed metal).","minimum":0,"maximum":1,"default":0},"emissive":{"type":"string","description":"Hex colour of the light the surface gives off (an LED, a screen)."},"emissiveIntensity":{"type":"number","minimum":0,"default":0},"texture":{"$ref":"#/$defs/SurfaceTexture","description":"The surface's small relief."},"maps":{"$ref":"#/$defs/SurfaceMaps","description":"The surface's photographed maps: a wood's grain, a carpet's pile, a brick wall."}},"required":["preset","color","metalness","roughness","envIntensity"],"additionalProperties":false},"MaterialModifier":{"type":"string","enum":["M","L","S"],"description":"Material-condition modifier applied to a tolerance value or a datum reference."},"MaterialPreset":{"type":"string","enum":["steel","custom","aluminum","anodized-aluminum","stainless-steel","plastic","abs","pbt","pc","petg","pla","brass","copper","chrome","rubber","glass","pcb"]},"MeshBodyFeature":{"type":"object","properties":{"type":{"type":"string","const":"meshBody"},"polygons":{"type":"array","items":{"type":"array","items":{"type":"number"}},"description":"Original polygon cage. Display indices must be its fan triangulation; modifiers retain it."},"positions":{"type":"array","items":{"type":"number"},"description":"Interleaved xyz vertex positions (object space, mm): [x0,y0,z0, x1,y1,z1, …]."},"indices":{"type":"array","items":{"type":"number"},"description":"Triangle vertex indices into `positions`/3."},"normals":{"type":"array","items":{"type":"number"},"description":"Interleaved xyz vertex normals; recomputed from faces when absent."},"uv":{"type":"array","items":{"type":"number"},"description":"Baked packed 0..1 atlas UVs (parallel to `positions`), when this body was created with a real UV unwrap already computed (e.g. a sculpt commit, which stores its split geometry + UVs here). Absent ⇒ the rebuild unwraps the geometry on load (see model/meshUnwrap). Makes the body paintable."},"sourceUv":{"type":"array","items":{"type":"number"},"description":"Authored texture coordinates from the imported asset. Kept separate from `uv`, which belongs to the document's paint atlas and may introduce a different set of seam splits."},"sourceMaterials":{"type":"array","items":{"$ref":"#/$defs/SourceMaterial"},"description":"Serializable imported materials, including embedded image/raw/compressed texture payloads."},"materialGroups":{"type":"array","items":{"$ref":"#/$defs/SourceMaterialGroup"},"description":"Contiguous index ranges assigning triangles to entries in `sourceMaterials`."},"source":{"type":"object","properties":{"prompt":{"type":"string"},"expert":{"type":"string"},"generationId":{"type":"string"},"fileId":{"type":"string"},"fileName":{"type":"string"}},"additionalProperties":false,"description":"Provenance for a generated body — drives ground-truth outcome capture + shows in the feature tree. `fileName` records the source file for imported bodies (GLB/OBJ/USDA/…)."},"worldCollider":{"$ref":"#/$defs/WorldCollider","description":"How a world collides this body: a heightfield grid or the exact triangle mesh. Only a world body has it."},"worldCenter":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"The world body's rest centre (world mm). A heightfield's heights are taken relative to its z.","x-unit":"mm"},"worldFriction":{"type":"number","description":"The world body's friction coefficient.","minimum":0},"worldRestitution":{"type":"number","description":"The world body's restitution (0: no bounce, 1: a perfect bounce).","minimum":0,"maximum":1},"worldMeta":{"type":"object","properties":{},"additionalProperties":{},"description":"Where the world body came from (the tile, the vertical datum, the ground resolution): open provenance."},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","positions","indices","id","name"],"additionalProperties":false},"MeshModifierFeature":{"type":"object","properties":{"type":{"type":"string","const":"meshModifier"},"input":{"type":"string"},"target":{"type":"string","description":"Required for shrinkwrap; a dependency, never consumed as the modified output."},"modifier":{"$ref":"#/$defs/MeshModifierSpec"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","input","modifier","id","name"],"additionalProperties":false,"description":"One editable operation over another mesh-producing source node. References are graph edges."},"MeshModifierSpec":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"displace"},"distance":{"type":"number"},"normalWeighting":{"type":"string","enum":["angle","area"]}},"required":["kind","distance"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"smooth"},"iterations":{"type":"number"},"factor":{"type":"number"},"preserveBoundary":{"type":"boolean"}},"required":["kind","iterations","factor"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"subdivide"},"levels":{"type":"number"},"limitSurface":{"type":"boolean"}},"required":["kind","levels"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"solidify"},"thickness":{"type":"number"},"normalWeighting":{"type":"string","enum":["angle","area"]}},"required":["kind","thickness"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"shrinkwrap"},"offset":{"type":"number"}},"required":["kind","offset"],"additionalProperties":false}]},"MirrorFeature":{"type":"object","properties":{"type":{"type":"string","const":"mirror"},"seedFeature":{"type":"string","description":"Which feature's TOOL to mirror. Absent mirrors the whole body set instead — the two modes the rebuild has always had, said out loud. It used to be a required id that the one body-mirroring caller filled with `\"\"`, so \"mirror the bodies\" was spelled as \"mirror the feature called nothing\".","x-pick":"feature"},"plane":{"$ref":"#/$defs/PlaneRef","description":"The plane it mirrors about.","x-pick":"plane"},"keepOriginal":{"type":"boolean","description":"Keep original in addition to mirror (default true).","default":true},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","plane","id","name"],"additionalProperties":false},"MoleculeFeature":{"type":"object","properties":{"type":{"type":"string","const":"molecule"},"positions":{"type":"array","items":{"type":"number"},"description":"Interleaved xyz atom positions (Ångström), 3N."},"elements":{"type":"array","items":{"type":"number"},"description":"Per-atom atomic number (1=H, 6=C, 7=N, 8=O, …), N — drives CPK color + covalent radius."},"bonds":{"type":"array","items":{"type":"number"},"description":"Bonds as flat atom-index pairs [a0,b0, a1,b1, …] (may be empty — inferred by distance on render)."},"bondOrders":{"type":"array","items":{"type":"number"},"description":"Optional per-bond order (1/2/3/aromatic=4), length = bonds.length/2."},"chains":{"type":"array","items":{"type":"number"},"description":"Optional per-atom chain id (small int) for multi-chain coloring (proteins/complexes)."},"cell":{"type":"array","items":{"type":"number"},"minItems":6,"maxItems":6,"description":"Optional periodic unit cell [a,b,c (Å), α,β,γ (deg)] for crystals."},"representation":{"$ref":"#/$defs/MoleculeRepresentation","description":"Multi-resolution representation — three INDEPENDENT layers that compose (a molecule can show its bonds, its electron cloud, and its nuclei at once). Each axis defaults to the classic ball-and-stick baseline so an untagged molecule renders exactly as before. See the chemistry app's VISUALIZATION.md for the full view-mode ladder this is the first rung of."},"source":{"type":"object","properties":{"format":{"type":"string"},"fileId":{"type":"string"},"fileName":{"type":"string"},"title":{"type":"string"},"atomCount":{"type":"number"}},"additionalProperties":false},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","positions","elements","bonds","id","name"],"additionalProperties":false,"description":"A **molecular structure** — atoms + bonds (+ optional periodic cell), the substrate for real molecular maps of cells, protein/DNA assemblies, and atomically-precise nano-engineering. Imported from the chemistry/crystallography format zoo (PDB, mmCIF, SDF/MOL, MOL2, XYZ, CIF). Kernel-free; rendered ball-and-stick / space-filling. Positions are in ÅNGSTRÖM (rendered scaled) — molecules live at a different scale than mm 3D, so the viewport scales atoms into view; we keep the true Å coordinates."},"MoleculeRepresentation":{"type":"object","properties":{"bonds":{"type":"string","enum":["none","wire","ball-stick","spacefill"],"description":"The bond/atom layer. \"ball-stick\" (default) = covalent-radius balls + sticks; \"spacefill\" = van der Waals spheres, no sticks; \"wire\" = thin sticks + dot atoms; \"none\" = hide it (for an electron/nucleus layer standing alone)."},"electron":{"type":"string","enum":["none","cloud"],"description":"The electron layer. \"cloud\" = a VOLUMETRIC translucent electron-density field, drawn as gaussian splats (a soft fuzzy cloud, not a hard isosurface shell — total density has no surface). \"none\" (default) draws nothing. (Per-orbital / valence-only clouds are the next rungs — see VISUALIZATION.md.)"},"nucleus":{"type":"string","enum":["none","nuclei"],"description":"The nucleus layer. \"nuclei\" = tiny bright points at each atomic center; \"none\" (default) draws nothing."}},"additionalProperties":false,"description":"The molecular-scale view layers. Composable — the renderer draws every enabled layer."},"MountingHole":{"type":"object","properties":{"at":{"$ref":"#/$defs/Vec3","description":"A point on the hole's axis where it opens, in the body's own frame (its part file's coordinates).","x-unit":"mm"},"axis":{"$ref":"#/$defs/Vec3","description":"The way the hole runs into the part from `at`.","default":[0,0,-1]},"diameter":{"type":"number","description":"A clearance hole's diameter, or a tapped hole's thread (5 for M5) or tap drill.","x-unit":"mm","exclusiveMinimum":0},"depth":{"type":"number","description":"How deep it runs from `at` along `axis`. Absent: through the whole envelope.","x-unit":"mm","exclusiveMinimum":0}},"required":["at","diameter"],"additionalProperties":false,"description":"A HOLE OF A BOUGHT PART DRAWN AS ITS ENVELOPE: where the real part (a valve's flange, a lug's ring, a pump's foot) has a hole that a screw passes through or screws into. The fastener checks read it as they read a modelled round hole."},"NamedView":{"type":"object","properties":{"id":{"type":"string","description":"The view's key in code.","pattern":"^[A-Za-z0-9_.-]+$"},"name":{"type":"string","description":"The view's name in the Views menu."},"camera":{"$ref":"#/$defs/ViewCamera"},"ride":{"$ref":"#/$defs/ViewRide","description":"What the camera rides when the view is applied; absent: it rides nothing."}},"required":["id","name","camera"],"additionalProperties":false,"description":"A camera kept under a name (`ThreeDDocument.views`): `<view>` in code."},"Note":{"type":"object","properties":{"type":{"type":"string","const":"note"},"text":{"type":"string"},"anchor":{"$ref":"#/$defs/Anchor"},"leaderTo":{"$ref":"#/$defs/Vec3","description":"Where the text box sits; the leader runs anchor → here. Omit for no leader (label at the anchor)."},"property":{"type":"string","description":"The name of the property a STEP file holds the note as (`semantic text`; empty for a plain note). A note with a `property` is semantic PMI and goes into a STEP file; one without is a drawing's."},"lineNames":{"type":"array","items":{"type":"string"},"description":"The names of its lines, when the file names them (a line's item in a STEP file); the text's lines in order."},"oneItem":{"type":"boolean","description":"Its text is one item with its line breaks in it, not one item per line."},"id":{"type":"string"},"label":{"type":"string","description":"Optional free-text label override; most types otherwise derive their display text from the geometry."},"textAt":{"$ref":"#/$defs/Vec3","description":"Optional explicit placement (mm) for the text/frame; defaults derive from the anchors."},"visible":{"type":"boolean","description":"Toggle visibility without deleting (parity with decals/bindings). Default true."}},"required":["type","text","anchor","id"],"additionalProperties":false,"description":"A free note with an optional leader line from an anchor to the text box."},"NurbsSpec":{"type":"object","properties":{"degree":{"type":"number","description":"Curve degree. 3 is the usual authoring default; 2 with weights gives exact conics."},"weights":{"type":"array","items":{"type":"number"},"description":"One weight per control point. Omitted, or all equal, means non-rational."},"knots":{"type":"array","items":{"type":"number"},"description":"Distinct knot values, strictly ascending. Omitted with `mults` means clamped uniform."},"mults":{"type":"array","items":{"type":"number"},"description":"Multiplicity per knot."},"periodic":{"type":"boolean","description":"Periodic rather than clamped. A periodic curve closes with full continuity."}},"required":["degree"],"additionalProperties":false,"description":"The NURBS half of a curve — degree, knots, weights. Stored verbatim as a sketch spline's `nurbs`."},"OfferDates":{"type":"object","properties":{"stock":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"preorder":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"priceBreaks":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"leadTimeDays":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"incoming":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"additionalProperties":false,"description":"The day each term of an offer was read, where it is not the offer's `date` (each YYYY-MM-DD)."},"OffsetCap":{"type":"string","enum":["square","round","butt"]},"OffsetFacesFeature":{"type":"object","properties":{"type":{"type":"string","const":"offsetFaces"},"faces":{"type":"array","items":{"$ref":"#/$defs/TopoTarget"},"description":"Faces to push/pull along their normals.","x-pick":"face","minItems":1},"distance":{"type":"number","description":"How far along their normals (negative: inward).","x-unit":"mm","default":1},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","faces","distance","id","name"],"additionalProperties":false},"OffsetJoin":{"type":"string","enum":["round","miter","bevel"]},"OffsetSurfaceFeature":{"type":"object","properties":{"type":{"type":"string","const":"offsetSurface"},"body":{"type":"string","description":"The surface body to offset, by id.","x-pick":"body"},"distance":{"type":"number","description":"How far along its normal (negative: the other way).","x-unit":"mm","default":2},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","body","distance","id","name"],"additionalProperties":false,"description":"OFFSET A SURFACE: a new surface body at a distance from a surface body, along its normal."},"PackagedSize":{"type":"object","properties":{"size":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"x-unit":"mm"},"grams":{"type":"number","x-unit":"g","exclusiveMinimum":0}},"required":["size","grams"],"additionalProperties":false,"description":"A packed part's size and mass."},"ParamRect":{"type":"object","properties":{"uMin":{"type":"number"},"uMax":{"type":"number"},"vMin":{"type":"number"},"vMax":{"type":"number"}},"required":["uMin","uMax","vMin","vMax"],"additionalProperties":false,"description":"The rectangle of parameter space a chart occupies. Half-open in the periodic direction."},"PartCells":{"type":"object","properties":{"count":{"type":"integer","description":"The cells in series.","minimum":1},"chemistry":{"$ref":"#/$defs/CellChemistry","description":"Their chemistry: its nominal cell voltage (IEC 60086, IEC 61951-2, IEC 61960, IEC 62620)."},"size":{"type":"string","description":"Their size, as the standard names it (\"AA\", \"AAA\", \"18650\"); a pouch states none."}},"required":["count","chemistry"],"additionalProperties":false,"description":"THE CELLS OF A BATTERY OR A HOLDER: how many, in series, of which chemistry and size."},"PartEngineering":{"type":"object","properties":{"partNumber":{"type":"string","description":"The part's number in its owner's numbering."},"description":{"type":"string","description":"What the part is, as a bill of materials says it."},"designation":{"type":"string","description":"The standard designation of a bought standard part (\"ISO 4762 M4×16 12.9\")."},"material":{"type":"string","description":"The engineering material: the id of a row of a materials table (\"6061-T6\", \"304\", \"PETG\")."},"process":{"$ref":"#/$defs/ManufacturingProcess","description":"How the part is made; \"purchased\" when it is bought."},"processName":{"type":"string","description":"The process in words, when `process` is \"other\" (\"diamond-wire cutting\")."},"finish":{"type":"string","description":"The finish, as a drawing note says it (\"anodize clear, 10 µm\")."},"mass":{"$ref":"#/$defs/PartMass","description":"A weighed or datasheet mass. Absent: the mass is volume × the material's density."},"manufacturer":{"type":"string","description":"The maker of a bought part."},"mpn":{"type":"string","description":"The maker's part number."},"datasheet":{"type":"string","description":"The maker's datasheet: a URL or a path; \"unknown\" for a placeholder part number (a warning, never a pass)."},"suppliers":{"type":"array","items":{"$ref":"#/$defs/SupplierOffer"},"description":"Who sells it, on what terms."},"alternates":{"type":"array","items":{"$ref":"#/$defs/Alternate"},"description":"Approved second sources."},"need":{"$ref":"#/$defs/PartNeed","description":"What one order needs past `qty × N`: spares, attrition, a panel's multiple. Absent: `qty × N`."},"make":{"$ref":"#/$defs/MakeSpec","description":"How and where a made part is made."},"inspection":{"$ref":"#/$defs/Inspection"},"compliance":{"$ref":"#/$defs/Compliance"},"shipping":{"$ref":"#/$defs/Shipping"},"lifecycle":{"$ref":"#/$defs/Lifecycle"},"chemical":{"$ref":"#/$defs/ProcessChemical","description":"A process chemical: its hazard, quantity, containment and exhaust."},"envelope":{"type":"boolean","description":"The body is the bought part's envelope (a box round a valve, a pump), not its shape: the fastener checks do not read its material as solid. A screw that runs into it must run in one of its `mountingHoles`."},"mountingHoles":{"type":"array","items":{"$ref":"#/$defs/MountingHole"},"description":"The real part's mounting holes, in the body's own frame: read when the body is an `envelope`."},"lead":{"type":"boolean","description":"A reference body (`process: \"reference\"`) where the bought part's cable leaves it (a servo's lead, a battery's lead, a module's plug): the board-fit gate's cables check runs the lead from its connector on the board to here."},"view":{"$ref":"#/$defs/PartView","description":"What a person must see of the part from outside (a display's active area, a lamp's lens, a light sensor's window): the board-fit gate's visible check looks along it, in the body's own frame."},"cells":{"$ref":"#/$defs/PartCells","description":"The cells a battery or a battery holder takes: the board-fit gate's cells check holds them to the board's power record."},"clear":{"type":"boolean","description":"The body passes light (a clear PMMA, PC or PETG window, a light pipe): the board-fit gate's sight lines pass through it."}},"additionalProperties":false,"description":"A part's engineering data: its material grade and finish, how it is made or who sells it, and the logistics a declared check may require (docs/formats.md § logistics)."},"PartMass":{"type":"object","properties":{"grams":{"type":"number","x-unit":"g","exclusiveMinimum":0},"source":{"type":"string","description":"Where the mass came from: a scale reading, a datasheet."}},"required":["grams","source"],"additionalProperties":false,"description":"A mass that was weighed or read from a datasheet. It stands in place of volume × density."},"PartNeed":{"type":"object","properties":{"spares":{"type":"number","description":"A fixed amount per order, in the part's unit: a second set of boards made at any quantity, a setup's first parts.","minimum":0},"attrition":{"type":"number","description":"A rate of what is fitted that is lost at assembly (tape-and-reel loss), on qty × N + spares.","minimum":0,"maximum":0.99},"attritionMin":{"type":"number","description":"At least this much extra for attrition, in the part's unit.","minimum":0},"multiple":{"type":"number","description":"The order rounds up to a multiple of this: the boards a panel holds, the parts on that many boards.","exclusiveMinimum":0}},"additionalProperties":false,"description":"WHAT ONE ORDER NEEDS OF A PART BEYOND `qty × N` (docs/formats.md § logistics, the need): true of the part whatever the order, so the design states it. need(N) = (qty × N + spares) plus attrition, rounded up to `multiple`. A count loses whole parts (its attrition rounds up to one); a measure (a unit other than `each`, or a share) loses its share."},"PartView":{"type":"object","properties":{"at":{"$ref":"#/$defs/Vec3","description":"The middle of the area or the lens, in the body's own frame.","x-unit":"mm"},"facing":{"$ref":"#/$defs/Vec3","description":"The way it looks, in the body's own frame (an axis of that frame)."},"diameter":{"type":"number","description":"A round active area's diameter.","x-unit":"mm","exclusiveMinimum":0},"size":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"A rectangular active area: its sizes along the frame's two axes other than `facing`'s, in their order (x, y, z).","x-unit":"mm"},"coneDeg":{"type":"number","description":"The half angle of the cone a lens or a sensor sees within.","x-unit":"deg","minimum":0,"maximum":90}},"required":["at","facing"],"additionalProperties":false,"description":"WHAT IS SEEN OF A PART: a display's active area (`diameter`, or `size` across its frame's other two axes, for a window at least that large), or a lens or a window that sees within a cone (`coneDeg`, its half angle)."},"PathPatternFeature":{"type":"object","properties":{"type":{"type":"string","const":"pathPattern"},"seedFeature":{"type":"string","description":"The feature whose bodies are patterned.","x-pick":"feature"},"path":{"$ref":"#/$defs/SweepPath","description":"What the copies are placed along, evenly by length from its start: a sketch's open or closed chain (`{ sketch }`), or a curve in space (`{ curve }`, the id of a `curve` feature).","x-pick":"sweepPath"},"count":{"type":"integer","description":"How many copies along the path.","minimum":1,"default":5},"alignToPath":{"type":"boolean","description":"Turn each copy as the path turns from its start: on a sketch, about the sketch's normal; on a curve in space, by the curve's rotation-minimizing frame (no roll about the path)."},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the copies combine with the bodies they act on. Absent: the repeated feature's own operation. A pattern of a cut cuts only the bodies it consumes (`consumes`; absent: the bodies the repeated feature consumes)."},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","seedFeature","path","count","id","name"],"additionalProperties":false},"PcbTraceFeature":{"type":"object","properties":{"type":{"type":"string","const":"pcbTrace"},"centreline":{"type":"string","const":"arc-through-three-points","description":"Analytic circular arc through exactly three ordered path points; requires rule any."},"path":{"$ref":"#/$defs/ConductorPathRef","description":"The authored points — band ③'s sketch."},"layer":{"$ref":"#/$defs/CopperLayerRef","description":"The copper layer this run is on."},"rule":{"$ref":"#/$defs/RoutingRule","description":"45 / 90 / any. A PROPERTY of the op."},"bias":{"$ref":"#/$defs/RouteBias"},"width":{"type":"number","description":"Trace width in mm — the 1D→2D offset, an extrusion WITHIN the plane."},"join":{"$ref":"#/$defs/OffsetJoin"},"cap":{"$ref":"#/$defs/OffsetCap"},"conductor":{"$ref":"#/$defs/ConductorElectrical","description":"The electrical half. σ, finished thickness (which the extrude travels through), surrounding ε_r."},"material":{"$ref":"#/$defs/MaterialDef","description":"Overrides the copper preset. Absent means copper."},"bindings":{"type":"array","items":{"$ref":"#/$defs/TerminalBinding"},"description":"WHICH PADS THIS RUN IS BOUND TO — L3. Written only by `bindTraceEndpoint`, which binds or REFUSES; there is no \"visually coincident but unbound\" state to represent."},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the copper combines with the bodies before it.","default":"new"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","path","layer","rule","width","conductor","operation","id","name"],"additionalProperties":false,"description":"A PCB TRACE — the 2D→3D rung. Points → route → centreline → offset → region → extrude."},"PermittedFinding":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_.-]+$"},"check":{"type":"string","description":"The check (its id) whose findings this permits; one that is no check of the document is an error.","pattern":"\\S"},"body":{"type":"string","description":"The bodies, by id, name or part number (`*` matches any text); one that names no body is an error.","pattern":"\\S"},"process":{"type":"string","description":"Only bodies made by this process (`engineering.process`)."},"edgeDir":{"$ref":"#/$defs/Vec3","description":"Only edges along this direction (within 5°), in the body's own frame."},"region":{"$ref":"#/$defs/CheckRegion","description":"Only findings in this box of the body's own frame."},"diameter":{"type":"number","description":"Only findings of a hole of this diameter (within 0.01 mm): a grid of Ø5 tapped holes left empty.","x-unit":"mm","exclusiveMinimum":0},"reason":{"type":"string","description":"Why the finding is right here.","pattern":"\\S"}},"required":["id","check","body","reason"],"additionalProperties":false,"description":"A FINDING A PROCESS OR A PURPOSE PERMITS: `<permitted check body process edgeDir region diameter reason />`. A square edge of a laser-cut sheet, a hole that is there for a cable. It permits the findings of that check on the bodies it names, made by that process, along that direction and in that region (each given test must hold). A permitted finding stays in the report with the entry that permitted it."},"PlacedCapture":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_.-]+$"},"src":{"type":"string","description":"A ref to the capture: the `capture.json` of a capture folder (tiled `.spz`, georeferenced by its pipeline), or one splat file, a standard 3DGS `.ply` or a `.spz`, in metres with z up. A path from this file's folder, or an address.","pattern":"\\S"},"at":{"$ref":"#/$defs/CaptureGeoPose","description":"Where its frame stands. One file needs it; a capture folder stands at its own origin, and `at` moves it."},"captured":{"type":"string","description":"For one file (a folder's `capture.json` says these itself): the day its photos were taken (ISO, `2017-03-21`)."},"source":{"type":"string","description":"Where it came from: the published scene's or the photos' page."},"licence":{"type":"string","description":"The licence of the capture and of its photos (an SPDX id: `CC-BY-4.0`, `CC-BY-SA-4.0`, `CC0-1.0` …)."},"credit":{"type":"string","description":"The credit its licence asks for."},"terms":{"type":"string","description":"The page of terms that was read."},"devices":{"type":"array","items":{"type":"string"},"description":"The cameras that took its photos."}},"required":["id","src"],"additionalProperties":false,"description":"A captured place drawn in a georeferenced document (the Matrix) as Gaussian splats: `<capture>` in code (docs/worlds-and-runs.md § the Matrix's captured places). It is captured data, never live: the viewer shows its date and source beside it. Geo-core `splats.ts` reads it (`captureSourceOf`, `capturePlacement`, `fileCapture`)."},"PlacedMove":{"type":"object","properties":{"body":{"type":"string","description":"The body or the placed file, by the id, the name or the part number its own file gives it (`*` matches any text).","pattern":"\\S"},"placement":{"$ref":"#/$defs/Placement","description":"Its move, in the placed file's frame."}},"required":["body","placement"],"additionalProperties":false,"description":"One body of a placed 3D document moved in its file's frame (`<externalPart moves>`)."},"PlacedUnit":{"type":"object","properties":{"id":{"type":"string","description":"The unit's id in the design, as every element of a 3D document is keyed: the unit's uid, `<design address>#<id>` (lower case, digits and `-`, at most 48: `readDesign` holds it to a world's uid rule).","pattern":"^[A-Za-z0-9_.-]+$"},"name":{"type":"string","pattern":"\\S"},"device":{"type":"string","description":"A ref to its device definition (`definition.tsx`), relative to this file, or an address.","pattern":"\\S"},"position":{"type":"array","items":{"type":"number"},"description":"Where it stands in the design's frame.","x-unit":"mm","minItems":3,"maxItems":3},"rotation":{"type":"number","description":"Its heading about z.","x-unit":"rad"},"tilt_deg":{"type":"number","description":"How far its front is raised above level, positive up.","minimum":-90,"maximum":90},"size_mm":{"type":"array","items":{"type":"number"},"description":"The box it takes, when its definition's model does not say.","x-unit":"mm","minItems":3,"maxItems":3},"channels":{"type":"array","items":{"type":"object","properties":{},"additionalProperties":{}},"description":"Its own tuning of its definition's channels, by channel id (a unit adds no channel and changes no transport)."},"domain":{"type":"string","description":"What kind of machine it is, as the views group it (mechanical, ee, bio, aerial, shared …).","pattern":"\\S"},"support":{"type":"string","enum":["manual","uncommissioned"],"description":"`manual`: a person works it (its channels bind no driver); `uncommissioned`: no bench has checked its driver yet."},"inputs":{"type":"object","properties":{},"additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"string"},{"type":"number"}]},"description":"The values it runs its definition at, by the definition's `params` (docs/formats.md § factories, a unit's inputs): one machine definition, many units at their own sizes."}},"required":["id","name","device","position","rotation"],"additionalProperties":false,"description":"A device definition placed in a design as a unit: the fields a world's unit has (`packages/domain/world/worlds.js`) less those that name one real machine (serial, revision, release, calibration: a world's). `readDesign` (`packages/domain/world/designs.js`) checks it with the world's own unit rules."},"Placement":{"type":"object","properties":{"position":{"$ref":"#/$defs/Vec3","description":"Translation in mm.","x-unit":"mm","default":[0,0,0]},"quaternion":{"type":"array","items":{"type":"number"},"minItems":4,"maxItems":4,"description":"Orientation as a unit quaternion [x, y, z, w]: it turns the part and never scales it. One within 1e-5 of unit length (written to 6 decimals) is read as the rotation it rounds; one further off is refused.","default":[0,0,0,1]},"scale":{"type":"number","description":"Uniform scale factor (1 = identity).","default":1},"scaleXYZ":{"$ref":"#/$defs/Vec3","description":"Optional per-axis scale applied before scale. This is primarily used by linked interchange assets (KiCad WRL/STEP model records carry an XYZ scale). It is additive: documents that omit it retain the historic uniform-scale placement."}},"required":["position","quaternion","scale"],"additionalProperties":false,"description":"A rigid placement of a part in assembly space: a position, an orientation quaternion, and a uniform scale. Mirrors import but is self-contained (no pivot — the part is placed about its own origin) so the pure model has no kernel dependency."},"PlanarSurface":{"type":"object","properties":{"kind":{"type":"string","const":"plane"},"origin":{"$ref":"#/$defs/Vec3"},"xAxis":{"$ref":"#/$defs/Vec3"},"yAxis":{"$ref":"#/$defs/Vec3"},"axis":{"$ref":"#/$defs/Vec3"}},"required":["kind","origin","xAxis","yAxis","axis"],"additionalProperties":false,"description":"A plane: `S(u,v) = origin + u·xAxis + v·yAxis`. Parameters are LENGTHS. K ≡ 0."},"PlaneRef":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"datum"},"plane":{"type":"string"}},"required":["type","plane"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"face"},"ref":{"$ref":"#/$defs/TopoRef"}},"required":["type","ref"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"unwrap"},"domain":{"$ref":"#/$defs/UnwrapDomain","description":"The atlas `buildUnwrapDomain` made from an `UnwrapDomainSpec` (the unwrap mode builds it; a person or an agent does not write it).","x-derived":true}},"required":["type","domain"],"additionalProperties":false}],"description":"WHERE A SKETCH LIVES. Three kinds, and the third is not a plane at all."},"PlatedHoleFeature":{"type":"object","properties":{"type":{"type":"string","const":"platedHole"},"at":{"$ref":"#/$defs/ConductorPathRef"},"layers":{"type":"array","items":{"$ref":"#/$defs/CopperLayerRef"}},"drillMm":{"type":"number"},"padDiameterMm":{"type":"number"},"conductor":{"$ref":"#/$defs/ConductorElectrical"},"material":{"$ref":"#/$defs/MaterialDef"},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the copper combines with the bodies before it.","default":"new"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","at","layers","drillMm","padDiameterMm","conductor","operation","id","name"],"additionalProperties":false,"description":"A PLATED through-hole — a terminal producer, and a DIFFERENT NODE from the mechanical `hole` it is routinely confused with."},"PointCloudFeature":{"type":"object","properties":{"type":{"type":"string","const":"pointCloud"},"positions":{"type":"array","items":{"type":"number"},"description":"Interleaved xyz positions (mm): [x0,y0,z0, …]."},"colors":{"type":"array","items":{"type":"number"},"description":"Interleaved rgb per-point colors, 0..1 (optional — falls back to a neutral tint)."},"pointSize":{"type":"number","description":"Screen-space point size (px) hint."},"source":{"type":"object","properties":{"format":{"type":"string"},"fileId":{"type":"string"},"fileName":{"type":"string"}},"additionalProperties":false},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","positions","id","name"],"additionalProperties":false,"description":"A raw point cloud — scan points, SWC point sets, or a splat stripped of covariance."},"PointRef":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"vertex"},"ref":{"$ref":"#/$defs/TopoRef"}},"required":["type","ref"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"datum"},"point":{"type":"string"}},"required":["type","point"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"at"},"at":{"$ref":"#/$defs/Vec3"}},"required":["type","at"],"additionalProperties":false}],"description":"A point a construction feature goes through: a corner of a body (a vertex picked), a construction point (a `datumPoint` feature, by id), or a fixed point in model coordinates."},"Port":{"type":"object","properties":{"id":{"type":"string"},"body":{"type":"string","description":"The body it is on: it moves with it. Absent: the document's frame."},"at":{"$ref":"#/$defs/Vec3","description":"Where it is: a pad's centre, a socket's mouth (the first of a row).","x-unit":"mm"},"axis":{"$ref":"#/$defs/Vec3","description":"The direction a rod leaves it (a pad's normal), or, for a socket, into it.","default":[0,0,1]},"hold":{"$ref":"#/$defs/RodHold","description":"How it holds an end."},"depth":{"type":"number","description":"How deep a socket is.","x-unit":"mm","exclusiveMinimum":0},"retention":{"type":"number","description":"The pull a socket holds an end against: a lead pulled harder over 1/240 s slides out. Absent, 1 N, an estimate for a breadboard's contact, not a reading.","x-unit":"N","minimum":0},"retentionSource":{"type":"string","description":"Where the retention was read: a datasheet and its page or table (a ZIF connector's cable holding force), a measurement, or \"estimate\" with its basis."},"count":{"type":"integer","description":"How many ports this row is.","minimum":1,"default":1},"pitch":{"type":"number","description":"The distance between two of the row.","x-unit":"mm","exclusiveMinimum":0},"dir":{"$ref":"#/$defs/Vec3","description":"The direction the row runs.","default":[1,0,0]},"groups":{"type":"integer","description":"A row in groups: one pitch more after each `groups` ports (a breadboard's power rail, in fives).","minimum":1},"first":{"type":"integer","description":"The number its first port is called by.","default":1}},"required":["id","at","hold"],"additionalProperties":false,"description":"A PORT: where a rod's end can be held on a body: a pad, a solder joint, a terminal, a socket, a breadboard's row of sockets (`count` of them, named `<id>1` … `<id><count>` along `dir`). `<port>` in code. A socket holds an end coaxial on its axis, no deeper than `depth`, until it is pulled out with more than `retention`."},"PriceBreak":{"type":"object","properties":{"quantity":{"type":"integer","description":"The order quantity this price holds from. Absent: a single price, read without the quantity it holds at (the offer's one break): it holds at any quantity.","minimum":1},"unitPrice":{"type":"number","description":"The price of one unit; with `unitPriceHigh`, the low end of an estimate.","minimum":0},"unitPriceHigh":{"type":"number","description":"The high end of an estimate range (\"74–189 k\"): the roll-up gives both ends, and a target is judged on this one.","minimum":0}},"required":["unitPrice"],"additionalProperties":false,"description":"The unit price from a quantity up (`@commandagi/core` quantity-terms' PriceBreak)."},"ProcessChemical":{"type":"object","properties":{"substance":{"type":"string","description":"The substance as its safety data sheet names it (\"hydrofluoric acid 49 %\", \"sulfur hexafluoride\").","pattern":"\\S"},"cas":{"type":"string","description":"Its CAS number (\"7664-39-3\")."},"hazard":{"type":"string","description":"\"none\", or its UN number and hazard class as transport names it (\"UN1790 class 8 (6.1)\", \"UN1080 class 2.2\")."},"litres":{"type":"number","description":"The liquid on hand at the station.","x-unit":"L","exclusiveMinimum":0},"kilograms":{"type":"number","description":"The mass on hand (a gas cylinder's fill, a solid).","x-unit":"kg","exclusiveMinimum":0},"containmentLitres":{"type":"number","description":"What holds a spill: the volume of the bund or tray under the liquid.","x-unit":"L","minimum":0},"exhaust":{"type":"string","description":"The exhaust it needs, by class: \"general\", \"acid\", \"solvent\", \"toxic gas\", \"pyrophoric\" …","pattern":"\\S"},"exhaustFlow":{"type":"number","description":"The flow that exhaust class needs at the station: the hood's face velocity times its open face, or the cabinet's rated flow, as its datasheet or a cited standard states it. No class gives a flow by itself.","x-unit":"m3/h","exclusiveMinimum":0},"interlocks":{"type":"array","items":{"type":"string"},"description":"The interlocks that guard it (\"gas detector closes the cylinder valve\", \"exhaust flow switch\")."},"sds":{"type":"string","description":"Its safety data sheet: a URL or a path."},"shutoff":{"type":"string","description":"What closes the cylinder when the gas leaks: the detector and the valve it closes (\"SiH4 detector at the cabinet, 50 % LEL, closes the pneumatic cylinder valve\"). A toxic gas (class 2.3) or a pyrophoric one needs it."}},"required":["substance"],"additionalProperties":false,"description":"A PROCESS CHEMICAL a station holds (an etchant, a process gas, a solvent): what it is, its hazard, how much is on hand and what contains, exhausts and guards it. The `chemicals` check reads it (docs/formats.md § logistics)."},"ProductFacts":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_.-]+$"},"name":{"type":"string","pattern":"\\S"},"partNumber":{"type":"string","description":"Its number in the owner's catalog."},"compliance":{"$ref":"#/$defs/Compliance","description":"RoHS, REACH and ECCN of the product as sold; `certifications`: what it holds (an empty list: none yet)."},"shipping":{"$ref":"#/$defs/Shipping","description":"Its HS code, origin, hazmat, its packed size and mass (`packaged`) and how it is packed (`packaging`)."}},"required":["id","name"],"additionalProperties":false,"description":"THE PRODUCT AS IT IS SOLD: `<product>`. What no part of it says: the product's own certifications (FCC, CE), its export class, its tariff heading, its packed size and mass and how it is packed. The compliance and shipping checks read it as they read a bought part, and also require its certifications and its package."},"ProductItem":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_.-]+$"},"name":{"type":"string","pattern":"\\S"},"qty":{"type":"number","description":"How much one product holds, in `unit`: 2 (each), 530 (g), 0.64 (m). It may be a share of one unit (a third of a strip: 0.3333). An offer's `pack` says what one unit sold holds; an order buys whole ones.","exclusiveMinimum":0,"default":1},"unit":{"$ref":"#/$defs/QuantityUnit","description":"The unit of `qty`, of the need's spares and of the offers' `pack`.","default":"each"},"ref":{"type":"string","description":"Another design this item is (a board's `.pcb.tsx`, a part's `.3d.tsx`), by its path from this document."},"engineering":{"$ref":"#/$defs/PartEngineering"}},"required":["id","name"],"additionalProperties":false,"description":"A PART OF THE PRODUCT WITH NO GEOMETRY HERE: `<item>` (a cable in the box, foam tape, or another design by `ref`)."},"ProfileRef":{"type":"object","properties":{"sketch":{"type":"string"},"regions":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]},"description":"The sketch's closed regions to take: an index into them, or a region's reference (a string built from the ids of its segments, which keeps naming it after an unrelated edit); omit/empty = each outer loop."}},"required":["sketch"],"additionalProperties":false,"description":"A profile drawn from a sketch's solved closed regions."},"QuantityUnit":{"type":"string","enum":["mm","each","g","kg","m","ml"],"description":"What a quantity is counted in: parts (`each`), grams, kilograms, metres, millimetres or millilitres."},"RadialDimension":{"type":"object","properties":{"type":{"type":"string","const":"radialDimension"},"measure":{"type":"string","enum":["radius","diameter"]},"spherical":{"type":"boolean","description":"A sphere's (SØ, SR)."},"of":{"$ref":"#/$defs/Anchor","description":"The feature it sizes (its faces): what a STEP file names. Absent: the cylinder at `center`."},"datum":{"type":"string","description":"This size is also datum feature `datum` (AP242 DIMENSIONAL_SIZE_WITH_DATUM_FEATURE)."},"center":{"$ref":"#/$defs/Anchor"},"rim":{"$ref":"#/$defs/Anchor","description":"A point on the rim; the radius is |rim − center| (doubled for a diameter)."},"value":{"type":"number","description":"Explicit radius (mm) used when no rim anchor is given."},"id":{"type":"string"},"label":{"type":"string","description":"Optional free-text label override; most types otherwise derive their display text from the geometry."},"textAt":{"$ref":"#/$defs/Vec3","description":"Optional explicit placement (mm) for the text/frame; defaults derive from the anchors."},"visible":{"type":"boolean","description":"Toggle visibility without deleting (parity with decals/bindings). Default true."},"tolerance":{"$ref":"#/$defs/DimensionTolerance","description":"Its tolerance (`./tolerances.ts`): deviations, a class or basic. A stack-up or a fit check names it by its id."},"limits":{"type":"boolean","description":"The tolerance is stated as its limits (`35.2 / 34.8`), not as deviations from the nominal."},"fit":{"type":"object","properties":{"zone":{"type":"string"},"source":{"type":"string"},"form":{"type":"string"},"grade":{"type":"string"}},"required":["zone","source"],"additionalProperties":false,"description":"An ISO 286 class as the file wrote it (LIMITS_AND_FITS), where that is not what the class gives: its zone and source (not `hole`/`shaft` and `ISO 286-1`), and its form and grade when they are not the class's letters and number."},"notes":{"type":"array","items":{"type":"string"},"description":"Its notes (AP242 `dimensional note`s besides `basic`): `auxiliary` (a reference dimension), `theoretical` …"},"modifiers":{"type":"array","items":{"type":"string"},"description":"Its modifiers (AP242's set of `dimensional note`s): `statistical`, `continuous feature`, `controlled radius` …"},"noValue":{"type":"boolean","description":"The file states no value for it: a dimension that only says which features are dimensioned."},"formats":{"$ref":"#/$defs/ValueFormats"}},"required":["type","measure","center","id"],"additionalProperties":false,"description":"Diameter (Ø) or radius (R) of a circular feature — center + a rim point, or an explicit value."},"ReplaceFaceFeature":{"type":"object","properties":{"type":{"type":"string","const":"replaceFace"},"face":{"$ref":"#/$defs/TopoTarget","description":"The face replaced.","x-pick":"face"},"surface":{"type":"string","description":"The surface body it is replaced by, by id (it stays a body of its own).","x-pick":"body"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","face","surface","id","name"],"additionalProperties":false,"description":"REPLACE A FACE of a solid by a surface: the faces next to it are continued along their own surfaces to the surface, and the surface closes the body there. The body grows to it or is cut back to it."},"RevolveFeature":{"type":"object","properties":{"type":{"type":"string","const":"revolve"},"profile":{"$ref":"#/$defs/ProfileRef","description":"The sketch regions to revolve.","x-pick":"profile"},"axis":{"$ref":"#/$defs/AxisRef","description":"The axis it turns about.","x-pick":"axis"},"angle":{"type":"number","description":"Angle in radians.","x-unit":"rad","exclusiveMinimum":0,"maximum":6.283185307179586,"default":6.283185307179586},"reverse":{"type":"boolean","description":"Turn the other way."},"surface":{"type":"boolean","description":"A SURFACE, not a solid: the profile's edges (the outer edges of its closed regions, or the sketch's open chain) turned about the axis, a body of their own with no inside. A surface is always a new body.","default":false},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the solid combines with the bodies before it.","default":"new","x-showIf":{"surface":[false,null]}},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","profile","axis","angle","operation","id","name"],"additionalProperties":false},"RibFeature":{"type":"object","properties":{"type":{"type":"string","const":"rib"},"sketch":{"type":"string","description":"Sketch feature whose (open or closed) chain defines the rib path.","x-pick":"sketch"},"thickness":{"type":"number","description":"Wall thickness (mm).","x-unit":"mm","exclusiveMinimum":0,"default":3},"depth":{"type":"number","description":"Extrude distance perpendicular to the sketch plane (mm).","x-unit":"mm","exclusiveMinimum":0,"default":20},"bothSides":{"type":"boolean","description":"Thicken symmetrically about the path (default true).","default":true},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the solid combines with the bodies before it.","default":"add"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","sketch","thickness","depth","operation","id","name"],"additionalProperties":false},"RideView":{"type":"string","enum":["chase","cockpit","orbit"],"description":"How a ridden camera stands to what it rides (docs/worlds-and-runs.md § the Matrix's cameras)."},"RodEnd":{"type":"object","properties":{"port":{"type":"string","description":"A port: one of this document's (`<port>`; a member of a row of them by its id and number, `a12`), a placed file's (`<placement id>/<port>`) or a placed component's pad (`<placement id>/<pad number>`). The port says how it holds."},"body":{"type":"string","description":"Or a body, by id: the end is held on it where it is drawn (a lead in its part's body, a hair in the scalp)."},"hold":{"$ref":"#/$defs/RodHold","description":"How a body holds it.","default":"solder"}},"additionalProperties":false,"description":"Where a rod's end is held."},"RodFeature":{"type":"object","properties":{"type":{"type":"string","const":"rod"},"points":{"type":"array","items":{"$ref":"#/$defs/Vec3"},"description":"Its points at rest, in order (one rod). Absent with `from` and `to`: laid between its two ends with its slack.","x-unit":"mm","minItems":2},"strands":{"type":"array","items":{"type":"array","items":{"$ref":"#/$defs/Vec3"}},"description":"Many rods of one material and section (a head of hair, a brush, a harness's strands), each its points at rest.","x-unit":"mm"},"material":{"type":"string","description":"What it is made of: a row of the rods tables along the search path (`materials/rods.csv`: a wire, its conductor and insulation and their diameters; it gives the section too), or a grade of the engineering tables with `section`."},"section":{"$ref":"#/$defs/RodSection","description":"Its cross-section, where its material's row states none: a circle, a tube or a rectangle (a ribbon).","x-unit":"mm"},"from":{"$ref":"#/$defs/RodEnd","description":"Where its first end (each strand's first point) is held, and how. Absent: free."},"to":{"$ref":"#/$defs/RodEnd","description":"Where its last end (each strand's last point) is held, and how. Absent: free."},"length":{"type":"number","description":"Its length, laid between `from` and `to` with no points.","x-unit":"mm","exclusiveMinimum":0},"slack":{"type":"number","description":"Laid between `from` and `to` with no points or length: how much longer than the straight distance it is (0.2: 20 % longer).","minimum":0,"default":0.15},"up":{"$ref":"#/$defs/Vec3","description":"The section's first axis at its start (a ribbon's width). Absent: across its first edge, toward world z."},"segment":{"type":"number","description":"The distance between its nodes in the simulation. Absent: its length over 24, at least 2 diameters.","x-unit":"mm","exclusiveMinimum":0},"file":{"type":"string","description":"Its strands from a file: an OBJ's polylines (its `l` records), in mm, each from its root (its first point, where `from` holds it) to its tip. A path from this file's folder. A head of hair's guide strands."},"pins":{"type":"array","items":{"$ref":"#/$defs/RodPin"},"description":"Points of it held still where they are (a middle point a force drag let go of with Shift)."},"guides":{"type":"boolean","description":"Its strands are guides, each standing for many (a head of hair): they pass through each other (they still meet bodies, cloths and other rods), and each is stepped once a step, which the direct solve keeps within 0.01 mm of its static answer. 800 guides of 8 points then run in the editor.","default":false},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","id","name"],"additionalProperties":false,"description":"A ROD: a wire, a component's lead, a string, a hair, a cable, a flat flex, a spring: an elastic body much longer than it is wide, with a bend that springs back below its yield and sets beyond it (docs/formats.md § a 3D document's rods). It makes no solid body: it is drawn as its section along its points, and the `rod` family of the dynamics simulates it (live in editing with `activation: { rod: \"always\" }`). Its shape is its rest shape: a permanent bend made in the editor is written back as its points. What it connects (a conductor joining two ports' nets) is read from its ends and its material, not stated on it."},"RodHold":{"type":"string","enum":["solder","crimp","insert","pin"],"description":"How an end is held: soldered to a pad or a joint, crimped, inserted in a socket, or pinned at a point (free to turn)."},"RodPin":{"type":"object","properties":{"strand":{"type":"integer","description":"Which strand (its index).","minimum":0,"default":0},"along":{"type":"number","description":"How far along the strand from its first point.","x-unit":"mm","minimum":0},"at":{"$ref":"#/$defs/Vec3","description":"Where it is held.","x-unit":"mm"}},"required":["along","at"],"additionalProperties":false,"description":"A point of a rod held still: the point `along` its strand from its first point, held at `at`."},"RodRibbon":{"type":"object","properties":{"w":{"type":"number","description":"Its width, along the section's first axis (`up`).","x-unit":"mm","exclusiveMinimum":0},"h":{"type":"number","description":"Its thickness.","x-unit":"mm","exclusiveMinimum":0}},"required":["w","h"],"additionalProperties":false,"description":"A rectangular section: a ribbon, a strip, a flat flex."},"RodRound":{"type":"object","properties":{"d":{"type":"number","description":"Its outer diameter.","x-unit":"mm","exclusiveMinimum":0},"wall":{"type":"number","description":"A tube's wall.","x-unit":"mm","exclusiveMinimum":0}},"required":["d"],"additionalProperties":false,"description":"A round section: a solid circle, or a tube with `wall`."},"RodSection":{"anyOf":[{"$ref":"#/$defs/RodRound"},{"$ref":"#/$defs/RodRibbon"}],"description":"A rod's cross-section."},"RouteBias":{"type":"string","enum":["x-first","y-first"]},"RoutingRule":{"type":"string","enum":["45","90","any"]},"ScaleFeature":{"type":"object","properties":{"type":{"type":"string","const":"scale"},"factor":{"type":"number","description":"Scales EVERY body in the document. It carried a `seedFeature` that the rebuild never read and the only authoring path (`scaleModel`) filled with `\"\"` — a required field naming nothing, which reads as a promise that a scale can be aimed at one feature's body. It cannot.","exclusiveMinimum":0,"default":1},"center":{"$ref":"#/$defs/Vec3","description":"Scale about this point (defaults to the origin).","x-unit":"mm"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","factor","id","name"],"additionalProperties":false},"SheetBaseFeature":{"type":"object","properties":{"type":{"type":"string","const":"sheetBase"},"profile":{"$ref":"#/$defs/ProfileRef","description":"The closed sketch regions the sheet takes.","x-pick":"profile"},"thickness":{"type":"number","description":"The sheet's thickness; the rules' when omitted.","x-unit":"mm","exclusiveMinimum":0},"reverse":{"type":"boolean","description":"Make the sheet on the other side of the sketch plane."},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","profile","id","name"],"additionalProperties":false,"description":"A BASE FLANGE: the first sheet of a sheet-metal part, a closed sketch profile made as thick as the rules' sheet."},"SheetConvertFeature":{"type":"object","properties":{"type":{"type":"string","const":"sheetConvert"},"face":{"$ref":"#/$defs/TopoTarget","description":"A face of the base wall (its inside or outside).","x-pick":"face"},"bendRadius":{"type":"number","description":"The bend radius where a wall meets the base at a sharp edge; the rules' (else the thickness) when omitted. A cylindrical bend keeps its own.","x-unit":"mm","exclusiveMinimum":0},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","face","id","name"],"additionalProperties":false,"description":"CONVERT TO SHEET METAL: a thin-walled part (a shelled box, a bent solid) made a sheet-metal part. From the face picked, its wall is the base; each wall joined to the base along a straight edge, by a sharp edge or a cylindrical bend, becomes an edge flange; where two walls meet at a sharp corner, the corner is ripped. The walls must be planar and of one thickness."},"SheetCornerFeature":{"type":"object","properties":{"type":{"type":"string","const":"sheetCorner"},"flanges":{"type":"array","items":{"type":"string"},"description":"The two flanges whose bends meet at the corner.","x-pick":"feature","minItems":2,"maxItems":2},"relief":{"$ref":"#/$defs/CornerRelief","description":"The relief at this corner.","default":"round"},"size":{"type":"number","description":"Its size; the rules' (or bend radius + thickness) when omitted.","x-unit":"mm","exclusiveMinimum":0},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","flanges","relief","id","name"],"additionalProperties":false,"description":"A CORNER'S RELIEF, set on one corner: where the bends of two flanges (by their features' ids) meet, this relief in place of the rules'. It makes no geometry of its own."},"SheetFlangeFeature":{"type":"object","properties":{"type":{"type":"string","const":"sheetFlange"},"edge":{"$ref":"#/$defs/TopoTarget","description":"Straight boundary edge to flange from.","x-pick":"edge"},"length":{"type":"number","description":"Flange wall length (mm).","x-unit":"mm","exclusiveMinimum":0,"default":15},"angle":{"type":"number","description":"Bend angle in radians (π/2 = perpendicular wall).","x-unit":"rad","exclusiveMinimum":0,"maximum":3.141592653589793,"default":1.5707963267948966},"thickness":{"type":"number","description":"Sheet thickness (mm); auto-derived from the body when omitted.","x-unit":"mm","exclusiveMinimum":0},"bendRadius":{"type":"number","description":"Inner bend radius (mm); the rules' when omitted, else the thickness.","x-unit":"mm","minimum":0},"position":{"$ref":"#/$defs/FlangePosition","description":"Where the bend sits: \"outside\" adds the bend beyond the edge; \"materialInside\" sets the edge back so the wall's outer face is where the edge was; \"materialOutside\" so its inner face is.","default":"outside"},"startOffset":{"type":"number","description":"How far the flange starts in from the edge's first end.","x-unit":"mm","minimum":0},"endOffset":{"type":"number","description":"How far the flange stops short of the edge's other end.","x-unit":"mm","minimum":0},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","edge","length","angle","id","name"],"additionalProperties":false},"SheetFoldFeature":{"type":"object","properties":{"type":{"type":"string","const":"sheetFold"},"sketch":{"type":"string","description":"The sketch whose line the sheet bends along.","x-pick":"sketch"},"line":{"type":"string","description":"The line of the sketch, by its id; the sketch's first line when omitted."},"angle":{"type":"number","description":"The bend angle.","x-unit":"rad","exclusiveMinimum":0,"maximum":3.141592653589793,"default":1.5707963267948966},"bendRadius":{"type":"number","description":"Inner bend radius; the rules' when omitted.","x-unit":"mm","exclusiveMinimum":0},"flip":{"type":"boolean","description":"Move the sheet on the other side of the line."},"reverse":{"type":"boolean","description":"Bend to the other face of the sheet."},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","sketch","angle","id","name"],"additionalProperties":false,"description":"A FOLD: a flat sheet bent along a line of a sketch drawn on it; the bend's middle is on the line."},"SheetGauge":{"type":"object","properties":{"gauge":{"type":"string","description":"Its name (\"16\", \"1/16\")."},"thickness":{"type":"number","x-unit":"mm","exclusiveMinimum":0},"bendRadius":{"type":"number","x-unit":"mm","exclusiveMinimum":0},"kFactor":{"type":"number","minimum":0,"maximum":1}},"required":["gauge","thickness"],"additionalProperties":false,"description":"One gauge of a custom table."},"SheetHemFeature":{"type":"object","properties":{"type":{"type":"string","const":"sheetHem"},"edge":{"$ref":"#/$defs/TopoTarget","description":"The straight edge to hem; the side of the sheet it is on is the side the hem folds to.","x-pick":"edge"},"length":{"type":"number","description":"The length of the folded-back layer.","x-unit":"mm","exclusiveMinimum":0,"default":8},"gap":{"type":"number","description":"The gap between the sheet and its folded-back layer (twice the hem's inner radius).","x-unit":"mm","exclusiveMinimum":0,"default":1},"thickness":{"type":"number","description":"Sheet thickness; the rules' when omitted.","x-unit":"mm","exclusiveMinimum":0},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","edge","length","gap","id","name"],"additionalProperties":false,"description":"A HEM: the sheet's edge bent right back on itself (180°), leaving `gap` between the two layers."},"SheetMetalFeature":{"type":"object","properties":{"type":{"type":"string","const":"sheetMetal"},"thickness":{"type":"number","description":"The sheet's thickness.","x-unit":"mm","exclusiveMinimum":0,"default":2},"bendRadius":{"type":"number","description":"The inner bend radius.","x-unit":"mm","exclusiveMinimum":0,"default":2},"kFactor":{"type":"number","description":"Where the neutral fibre lies through the thickness (0 inside, 1 outside): bend allowance = angle × (radius + K × thickness).","minimum":0,"maximum":1,"default":0.44,"x-step":0.01},"relief":{"$ref":"#/$defs/SheetRelief","description":"The relief cut at each end of a bend that does not run the whole edge: none, a rectangle, or a slot with a round end.","default":"rectangular"},"reliefWidth":{"type":"number","description":"The relief's width along the bend; the thickness when omitted.","x-unit":"mm","exclusiveMinimum":0},"reliefDepth":{"type":"number","description":"How far the relief runs past the bend; the thickness when omitted.","x-unit":"mm","minimum":0},"cornerRelief":{"$ref":"#/$defs/CornerRelief","description":"The relief cut where two flanges' bends meet at a corner of the sheet.","default":"none"},"cornerReliefSize":{"type":"number","description":"The corner relief's size: a square's side, a round's radius, a tear's width; bend radius + thickness when omitted.","x-unit":"mm","exclusiveMinimum":0},"gaugeTable":{"$ref":"#/$defs/GaugeTable","description":"The gauge table the sheet's thickness is read from: a material's built-in table (`@commandagi/3d-core/sheet-metal` GAUGES), or `custom`, the rows of `gauges`. With `gauge`, the gauge's row sets the thickness (and the bend radius and K-factor where the row gives them); without, `thickness` holds."},"gauge":{"type":"string","description":"The gauge, as its table names it (\"16\")."},"gauges":{"type":"array","items":{"$ref":"#/$defs/SheetGauge"},"description":"The rows of a custom gauge table (imported from a CSV: gauge, thickness, bend radius, K-factor)."},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","thickness","bendRadius","kFactor","relief","id","name"],"additionalProperties":false,"description":"SHEET-METAL RULES: the sheet's thickness, bend radius, K-factor and bend relief, one element of the part (`<sheetMetal>`). Every sheet-metal feature of the part reads them where it states no value of its own; a part holds at most one. It makes no geometry."},"SheetRefoldFeature":{"type":"object","properties":{"type":{"type":"string","const":"sheetRefold"},"unfold":{"type":"string","description":"The unfold whose bends are bent again.","x-pick":"feature"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","unfold","id","name"],"additionalProperties":false,"description":"REFOLD: the bends an unfold flattened, bent again, with what was cut across them while they were flat."},"SheetRelief":{"type":"string","enum":["none","rectangular","obround"]},"ShellFeature":{"type":"object","properties":{"type":{"type":"string","const":"shell"},"faces":{"type":"array","items":{"$ref":"#/$defs/TopoTarget"},"description":"The faces to open.","x-pick":"face"},"thickness":{"type":"number","description":"The wall thickness.","x-unit":"mm","exclusiveMinimum":0,"default":2},"outward":{"type":"boolean","description":"Shell outward instead of inward."},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","faces","thickness","id","name"],"additionalProperties":false},"Shipping":{"type":"object","properties":{"hsCode":{"type":"string","description":"The Harmonized System code (\"8517.62\"). \"unknown\": a part not specified yet says so (a warning, never a pass), rather than leaving it out (an error) or inventing one; the same for `origin` and `hazmat`."},"origin":{"type":"string","description":"The country of origin, ISO 3166-1 alpha-2, or \"unknown\".","pattern":"^(?:[A-Z]{2}|unknown)$"},"hazmat":{"type":"string","description":"\"none\", or the UN number and class (\"UN3481 class 9: lithium ion batteries packed with equipment\"), or \"unknown\"."},"packaged":{"$ref":"#/$defs/PackagedSize","description":"Its packed size and mass."},"packaging":{"type":"string","description":"How it is packed: \"tape and reel\", \"tray\", \"bag of 100\"."}},"additionalProperties":false,"description":"WHAT CUSTOMS AND A CARRIER NEED OF A PART."},"SizeDimension":{"type":"object","properties":{"type":{"type":"string","const":"sizeDimension"},"measure":{"type":"string","description":"AP242's name of the size: `thickness`, `curve length`, `angular size`, `toroidal minor diameter` …"},"of":{"$ref":"#/$defs/Anchor"},"value":{"type":"number","description":"The size it states: mm, or rad for an angular size."},"angleSelection":{"type":"string","enum":["equal","large","small"],"description":"An angular size's angle: `equal`, `large` or `small`."},"datum":{"type":"string","description":"This size is also datum feature `datum`."},"id":{"type":"string"},"label":{"type":"string","description":"Optional free-text label override; most types otherwise derive their display text from the geometry."},"textAt":{"$ref":"#/$defs/Vec3","description":"Optional explicit placement (mm) for the text/frame; defaults derive from the anchors."},"visible":{"type":"boolean","description":"Toggle visibility without deleting (parity with decals/bindings). Default true."},"tolerance":{"$ref":"#/$defs/DimensionTolerance","description":"Its tolerance (`./tolerances.ts`): deviations, a class or basic. A stack-up or a fit check names it by its id."},"limits":{"type":"boolean","description":"The tolerance is stated as its limits (`35.2 / 34.8`), not as deviations from the nominal."},"fit":{"type":"object","properties":{"zone":{"type":"string"},"source":{"type":"string"},"form":{"type":"string"},"grade":{"type":"string"}},"required":["zone","source"],"additionalProperties":false,"description":"An ISO 286 class as the file wrote it (LIMITS_AND_FITS), where that is not what the class gives: its zone and source (not `hole`/`shaft` and `ISO 286-1`), and its form and grade when they are not the class's letters and number."},"notes":{"type":"array","items":{"type":"string"},"description":"Its notes (AP242 `dimensional note`s besides `basic`): `auxiliary` (a reference dimension), `theoretical` …"},"modifiers":{"type":"array","items":{"type":"string"},"description":"Its modifiers (AP242's set of `dimensional note`s): `statistical`, `continuous feature`, `controlled radius` …"},"noValue":{"type":"boolean","description":"The file states no value for it: a dimension that only says which features are dimensioned."},"formats":{"$ref":"#/$defs/ValueFormats"}},"required":["type","measure","of","value","id"],"additionalProperties":false,"description":"A size of a feature that is no diameter or radius: a thickness, a curve's length, a cone's angle, a torus's diameters (AP242 DIMENSIONAL_SIZE and ANGULAR_SIZE)."},"SkeletonFeature":{"type":"object","properties":{"type":{"type":"string","const":"skeleton"},"positions":{"type":"array","items":{"type":"number"},"description":"Node positions, 3N (mm)."},"radii":{"type":"array","items":{"type":"number"},"description":"Per-node radius, N (mm)."},"parents":{"type":"array","items":{"type":"number"},"description":"Per-node parent index into nodes (-1 = root), N — the SWC/edge tree."},"nodeTypes":{"type":"array","items":{"type":"number"},"description":"Per-node SWC structure tag (0 undefined, 1 soma, 2 axon, 3 basal dendrite, 4 apical dendrite, …) — drives per-segment coloring."},"source":{"type":"object","properties":{"format":{"type":"string"},"fileId":{"type":"string"},"fileName":{"type":"string"}},"additionalProperties":false},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","positions","parents","id","name"],"additionalProperties":false,"description":"A **skeleton** — a tree/graph of nodes with radii, the native representation for neuronal & vascular morphology (SWC: soma/axon/dendrite trees) and connectome traces. Rendered as radius-varying tubes."},"Sketch":{"type":"object","properties":{"points":{"type":"object","properties":{},"additionalProperties":{"$ref":"#/$defs/SketchPoint"}},"projections":{"type":"object","properties":{},"additionalProperties":{"$ref":"#/$defs/SketchProjection"},"description":"Live projections of model edges. Absent on a sketch that has none."},"projectionOrder":{"type":"array","items":{"type":"string"}},"equations":{"type":"object","properties":{},"additionalProperties":{"$ref":"#/$defs/SketchEquation"},"description":"Equation curves. Absent on a sketch that has none."},"equationOrder":{"type":"array","items":{"type":"string"}},"texts":{"type":"object","properties":{},"additionalProperties":{"$ref":"#/$defs/SketchText"},"description":"Texts. Absent on a sketch that has none."},"textOrder":{"type":"array","items":{"type":"string"}},"segments":{"type":"object","properties":{},"additionalProperties":{"$ref":"#/$defs/SketchSegment"}},"constraints":{"type":"object","properties":{},"additionalProperties":{"$ref":"#/$defs/SketchConstraint"}},"pointOrder":{"type":"array","items":{"type":"string"}},"segmentOrder":{"type":"array","items":{"type":"string"}},"constraintOrder":{"type":"array","items":{"type":"string"}},"solveStatus":{"$ref":"#/$defs/SketchSolveStatus","description":"Last solve result, populated by the solver."},"dof":{"type":"number","description":"Remaining degrees of freedom reported by the last solve."}},"required":["points","segments","constraints","pointOrder","segmentOrder","constraintOrder"],"additionalProperties":false},"SketchConstraint":{"type":"object","properties":{"id":{"type":"string"},"kind":{"$ref":"#/$defs/ConstraintKind"},"entities":{"type":"array","items":{"type":"string"}},"value":{"type":"number"},"reference":{"type":"boolean","description":"A DRIVEN (reference) dimension: measured from the geometry and shown, never solved. Only a dimensional kind can be one. `solveSketch` does not send it to the backend and lists it in the result's `driven`; absent (the default, and every sketch written before 2026-09-11) means driving."}},"required":["id","kind","entities"],"additionalProperties":false,"description":"A constraint references entities by id. `entities` holds point/segment ids in the order the kind's `operands` declare (`../geometry/constraints.ts`); `value` holds the dimension for dimensional kinds (distance in the sketch's length unit, angle in radians, radius in the length unit)."},"SketchEquation":{"type":"object","properties":{"id":{"type":"string"},"x":{"type":"string","description":"The horizontal coordinate as arithmetic of `t`, in millimetres."},"y":{"type":"string","description":"The vertical coordinate as arithmetic of `t`, in millimetres."},"from":{"type":"number","description":"The first value of t."},"to":{"type":"number","description":"The last value of t."},"points":{"type":"integer","description":"How many points the curve passes through, its ends included.","minimum":3,"maximum":500},"construction":{"type":"boolean","description":"Drawn as construction (reference) geometry."}},"required":["id","x","y","from","to","points"],"additionalProperties":false,"description":"AN EQUATION CURVE: x(t) and y(t), arithmetic of `t` in the document's expression grammar (`../expressions.ts`: + - * / ^, sin, cos, sqrt, pi …), drawn as the spline through `points` even steps of t from `from` to `to`. The record is what the file holds; the spline and its points are made from it on every rebuild (their `from` names it), so editing the equation redraws the curve. A curve whose last point meets its first is closed."},"SketchFeature":{"type":"object","properties":{"type":{"type":"string","const":"sketch"},"plane":{"$ref":"#/$defs/PlaneRef"},"sketch":{"$ref":"#/$defs/Sketch"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","plane","sketch","id","name"],"additionalProperties":false},"SketchPin":{"type":"object","properties":{"target":{"$ref":"#/$defs/SketchPinTarget"},"anchor":{"$ref":"#/$defs/SketchPinAnchor"},"offset":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"Sketch-space offset applied AFTER projection, in mm. Lets a pin sit a known gap off a corner."},"label":{"type":"string","description":"Human label for the panel/tooltip, captured when the pin was made (\"Extrude1\", \"Top face\")."}},"required":["target","anchor"],"additionalProperties":false},"SketchPinAnchor":{"type":"string","enum":["vertex","center","centroid","minU","maxU","minV","maxV","minU_minV","maxU_minV","minU_maxV","maxU_maxV"],"description":"WHICH POINT of the target, once it is flattened onto the sketch plane."},"SketchPinTarget":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"body"},"feature":{"type":"string"}},"required":["kind","feature"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"face"},"ref":{"$ref":"#/$defs/TopoRef"}},"required":["kind","ref"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"edge"},"ref":{"$ref":"#/$defs/TopoRef"}},"required":["kind","ref"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"vertex"},"ref":{"$ref":"#/$defs/TopoRef"}},"required":["kind","ref"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"pad"},"pad":{"type":"string"},"producer":{"type":"string"}},"required":["kind","pad","producer"],"additionalProperties":false}],"description":"WHICH b-rep thing a pin follows. Bodies are named by the FEATURE that produced them (lineage is what survives a parametric edit — a signature match would drift the moment the body moves, which is exactly when a pin has to keep holding). Sub-shapes reuse the document's signature-matched TopoRef, the same handle every other feature uses to say \"that face\"."},"SketchPoint":{"type":"object","properties":{"pin":{"$ref":"#/$defs/SketchPin","description":"PINNED TO THE MODEL. When present, this point's (u,v) is not an authored value at all — it is DERIVED, every rebuild, by projecting a b-rep entity onto this sketch's plane (see `resolveSketchPins`). `x`/`y` still hold the last resolved coordinates so the sketch is drawable before a rebuild lands, but they are an echo, not the source."},"id":{"type":"string"},"x":{"type":"number"},"y":{"type":"number"},"construction":{"type":"boolean","description":"Construction point (not part of profile geometry)."},"fixed":{"type":"boolean","description":"Held in place by the solver."},"from":{"type":"string","description":"Set when this point was GENERATED from something outside the sketch (in app-3d-design, a projection of a model edge). How a regenerator finds its own previous output to replace, and how a UI tells \"you drew this\" from \"the model did\". Absent on everything the user authored."}},"required":["id","x","y"],"additionalProperties":false},"SketchProjection":{"type":"object","properties":{"id":{"type":"string"},"ref":{"$ref":"#/$defs/TopoRef","description":"The model edge this follows, signature-matched across rebuilds like every other reference. On a section, the one FACE it cuts (the curves where that face crosses the sketch's plane), or absent: the whole body."},"feature":{"type":"string","description":"The feature that built the body — the timeline dependency, exactly as for a pin."},"section":{"type":"boolean","description":"AN INTERSECTION, not a projection: the curves where the body `feature` built (or the face of it `ref` names) crosses the sketch's plane, cut again on every rebuild. It needs `feature`."},"construction":{"type":"boolean","description":"Generate as construction (reference) geometry rather than profile geometry."},"label":{"type":"string","description":"Human label captured at creation, for the panel (\"Extrude1 edge\")."}},"required":["id"],"additionalProperties":false,"description":"A LIVE PROJECTION of one model edge onto this sketch's plane — \"use that hole's circle here\"."},"SketchSegment":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"line"},"a":{"type":"string"},"b":{"type":"string"},"construction":{"type":"boolean"},"from":{"type":"string"},"of":{"type":"string","description":"The segment this one is a piece of, when a split cut it from that segment: a region's reference keeps naming the source."}},"required":["id","type","a","b"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"circle"},"center":{"type":"string"},"radius":{"type":"number"},"construction":{"type":"boolean"},"from":{"type":"string"},"of":{"type":"string","description":"The segment this one is a piece of, when a split cut it from that segment: a region's reference keeps naming the source."}},"required":["id","type","center","radius"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"arc"},"center":{"type":"string"},"start":{"type":"string"},"end":{"type":"string"},"radius":{"type":"number","description":"radius is a solver variable seeded from the points."},"construction":{"type":"boolean"},"from":{"type":"string"},"of":{"type":"string","description":"The segment this one is a piece of, when a split cut it from that segment: a region's reference keeps naming the source."}},"required":["id","type","center","start","end","radius"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"spline"},"points":{"type":"array","items":{"type":"string"},"description":"The curve's points. WHAT they are depends on `nurbs`: without it they are points the curve passes THROUGH (interpolated with Catmull-Rom, `../geometry/curves/spline.ts`); with it they are the control polygon, and a clamped NURBS touches only the first and the last of them."},"closed":{"type":"boolean"},"construction":{"type":"boolean"},"nurbs":{"$ref":"#/$defs/NurbsSpec","description":"A TRUE NURBS definition. Absent means the historical Catmull-Rom interpolant — which has no degree, no knot vector and no weights, so it can approximate a conic and never be one."},"from":{"type":"string"},"of":{"type":"string","description":"The segment this one is a piece of, when a split cut it from that segment: a region's reference keeps naming the source."}},"required":["id","type","points"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"ellipse"},"center":{"type":"string"},"focus":{"type":"string","description":"The first FOCUS, as a real sketch point."},"minorRadius":{"type":"number","description":"Minor radius — the one scalar degree of freedom, like a circle's radius."},"construction":{"type":"boolean"},"from":{"type":"string"},"of":{"type":"string","description":"The segment this one is a piece of, when a split cut it from that segment: a region's reference keeps naming the source."}},"required":["id","type","center","focus","minorRadius"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"ellipseArc"},"center":{"type":"string"},"focus":{"type":"string","description":"See the `ellipse` member."},"minorRadius":{"type":"number"},"start":{"type":"string","description":"Endpoints, CCW from `start` to `end`, exactly as an `arc` names them."},"end":{"type":"string"},"construction":{"type":"boolean"},"from":{"type":"string"},"of":{"type":"string","description":"The segment this one is a piece of, when a split cut it from that segment: a region's reference keeps naming the source."}},"required":["id","type","center","focus","minorRadius","start","end"],"additionalProperties":false}]},"SketchSolveStatus":{"type":"string","enum":["ok","over","under","inconsistent"]},"SketchText":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string","description":"The words."},"font":{"type":"string","description":"The typeface: a bundled face's id (`liberation-sans`, `noto-serif`, `noto-sans-mono`), or a font file in the design's folder by its path from there (`.ttf`, `.otf` or `.woff`). The outlines are kept in `contours`: the face is read only to make or change the text."},"anchor":{"type":"string","description":"The point the baseline starts at."},"along":{"type":"string","description":"The point one letter height along the baseline from `anchor`."},"contours":{"type":"array","items":{"type":"array","items":{"type":"number"}},"description":"Each closed outline as flat `[x0, y0, x1, y1, …]` at a letter height of 1."}},"required":["id","text","font","anchor","along","contours"],"additionalProperties":false,"description":"A TEXT: the outlines of `text` in the typeface `font`, placed by two of the sketch's own points: `anchor`, the start of its baseline, and `along`, a letter height further along the baseline. The text's place, angle and size are then those points' (a dimension between them is the size; one on the line between them, the angle). `contours` are the outlines at a letter height of 1, baseline from the origin along +x, kept so the outlines are made again from the two points on every rebuild with no font at hand; the outline lines and points are made from them (their `from` names it). Changing the words or the typeface writes new contours."},"SourceCompressedTexture":{"type":"object","properties":{"kind":{"type":"string","const":"compressed"},"width":{"type":"number"},"height":{"type":"number"},"format":{"type":"number"},"type":{"type":"number"},"mipmaps":{"type":"array","items":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"},"data":{"type":"string"}},"required":["width","height","data"],"additionalProperties":false}},"name":{"type":"string"},"colorSpace":{"type":"string"},"channel":{"type":"number"},"wrapS":{"type":"number"},"wrapT":{"type":"number"},"magFilter":{"type":"number"},"minFilter":{"type":"number"},"anisotropy":{"type":"number"},"flipY":{"type":"boolean"},"transform":{"$ref":"#/$defs/SourceTextureTransform"}},"required":["kind","width","height","format","type","mipmaps"],"additionalProperties":false,"description":"GPU-compressed mip payload retained from KTX2 decoding."},"SourceDataTexture":{"type":"object","properties":{"kind":{"type":"string","const":"data"},"width":{"type":"number"},"height":{"type":"number"},"data":{"type":"string"},"format":{"type":"number"},"type":{"type":"number"},"name":{"type":"string"},"colorSpace":{"type":"string"},"channel":{"type":"number"},"wrapS":{"type":"number"},"wrapT":{"type":"number"},"magFilter":{"type":"number"},"minFilter":{"type":"number"},"anisotropy":{"type":"number"},"flipY":{"type":"boolean"},"transform":{"$ref":"#/$defs/SourceTextureTransform"}},"required":["kind","width","height","data","format","type"],"additionalProperties":false,"description":"Universal uncompressed pixel data (for DataTexture and Basis RGBA output)."},"SourceImageTexture":{"type":"object","properties":{"kind":{"type":"string","const":"image"},"data":{"type":"string"},"name":{"type":"string"},"colorSpace":{"type":"string"},"channel":{"type":"number"},"wrapS":{"type":"number"},"wrapT":{"type":"number"},"magFilter":{"type":"number"},"minFilter":{"type":"number"},"anisotropy":{"type":"number"},"flipY":{"type":"boolean"},"transform":{"$ref":"#/$defs/SourceTextureTransform"}},"required":["kind","data"],"additionalProperties":false,"description":"Browser-decodable PNG/JPEG/WebP/etc bytes, kept as a data URL until bundle hoisting."},"SourceMaterial":{"type":"object","properties":{"kind":{"type":"string","enum":["basic","phong","standard","physical"]},"name":{"type":"string"},"color":{"type":"string"},"emissive":{"type":"string"},"metalness":{"type":"number"},"roughness":{"type":"number"},"opacity":{"type":"number"},"transparent":{"type":"boolean"},"alphaTest":{"type":"number"},"side":{"type":"number"},"flatShading":{"type":"boolean"},"depthWrite":{"type":"boolean"},"vertexColors":{"type":"boolean"},"ior":{"type":"number"},"clearcoat":{"type":"number"},"clearcoatRoughness":{"type":"number"},"specularIntensity":{"type":"number"},"shininess":{"type":"number"},"bumpScale":{"type":"number"},"displacementScale":{"type":"number"},"normalScale":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2},"textures":{"type":"object","properties":{"map":{"$ref":"#/$defs/SourceTexture"},"normalMap":{"$ref":"#/$defs/SourceTexture"},"roughnessMap":{"$ref":"#/$defs/SourceTexture"},"metalnessMap":{"$ref":"#/$defs/SourceTexture"},"aoMap":{"$ref":"#/$defs/SourceTexture"},"emissiveMap":{"$ref":"#/$defs/SourceTexture"},"alphaMap":{"$ref":"#/$defs/SourceTexture"},"bumpMap":{"$ref":"#/$defs/SourceTexture"},"displacementMap":{"$ref":"#/$defs/SourceTexture"},"specularMap":{"$ref":"#/$defs/SourceTexture"},"specularColorMap":{"$ref":"#/$defs/SourceTexture"},"clearcoatMap":{"$ref":"#/$defs/SourceTexture"},"clearcoatNormalMap":{"$ref":"#/$defs/SourceTexture"},"clearcoatRoughnessMap":{"$ref":"#/$defs/SourceTexture"}},"additionalProperties":false}},"required":["kind"],"additionalProperties":false},"SourceMaterialGroup":{"type":"object","properties":{"start":{"type":"number"},"count":{"type":"number"},"materialIndex":{"type":"number"}},"required":["start","count","materialIndex"],"additionalProperties":false},"SourceTexture":{"anyOf":[{"$ref":"#/$defs/SourceImageTexture"},{"$ref":"#/$defs/SourceDataTexture"},{"$ref":"#/$defs/SourceCompressedTexture"}]},"SourceTextureTransform":{"type":"object","properties":{"offset":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"default":[0,0]},"repeat":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"default":[1,1]},"center":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"default":[0,0]},"rotation":{"type":"number","x-unit":"rad","default":0},"matrixAutoUpdate":{"type":"boolean","default":true}},"required":["offset","repeat","center","rotation","matrixAutoUpdate"],"additionalProperties":false,"description":"A texture's UV transform, as three.js holds it; a field left out is three.js's own default."},"SphereFeature":{"type":"object","properties":{"type":{"type":"string","const":"sphere"},"center":{"$ref":"#/$defs/Vec3","x-unit":"mm","default":[0,0,0]},"radius":{"type":"number","x-unit":"mm","exclusiveMinimum":0,"default":10},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the solid combines with the bodies before it.","default":"new"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","center","radius","operation","id","name"],"additionalProperties":false},"SphericalSurface":{"type":"object","properties":{"kind":{"type":"string","const":"sphere"},"radius":{"type":"number"},"origin":{"$ref":"#/$defs/Vec3"},"xAxis":{"$ref":"#/$defs/Vec3"},"yAxis":{"$ref":"#/$defs/Vec3"},"axis":{"$ref":"#/$defs/Vec3"}},"required":["kind","radius","origin","xAxis","yAxis","axis"],"additionalProperties":false,"description":"A sphere: `S(u,v) = origin + R(cos v·cos u·x + cos v·sin u·y + sin v·axis)`. K = 1/R²."},"SplineTangent":{"type":"object","properties":{"at":{"type":"integer","description":"Which point, by its index in `points` (not the first or the last: those are `startTangent` and `endTangent`).","minimum":1},"direction":{"$ref":"#/$defs/Vec3","description":"The direction there (only the direction counts)."}},"required":["at","direction"],"additionalProperties":false,"description":"A spline's direction at one of its inner points."},"SplitFeature":{"type":"object","properties":{"type":{"type":"string","const":"split"},"plane":{"$ref":"#/$defs/PlaneRef","description":"Plane that cuts bodies into separate pieces.","x-pick":"plane"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","plane","id","name"],"additionalProperties":false},"StitchFeature":{"type":"object","properties":{"type":{"type":"string","const":"stitch"},"bodies":{"type":"array","items":{"type":"string"},"description":"The surface bodies to join, by id.","x-pick":"body","minItems":1},"tolerance":{"type":"number","description":"How far apart two edges may be and still be joined.","x-unit":"mm","exclusiveMinimum":0,"default":0.01},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","bodies","id","name"],"additionalProperties":false,"description":"STITCH SURFACES: join surface bodies that share their edges into one body. When the joined faces close a volume, the body is a solid."},"StockMaterial":{"type":"object","properties":{"name":{"type":"string","description":"What is bought (\"PETG filament, 1 kg spool\", \"6061-T6 plate 300 x 300 x 10\").","pattern":"\\S"},"partNumber":{"type":"string","description":"Its number in the owner's numbering: parts that use one stock share its line."},"perPart":{"type":"number","description":"How much one part uses, in `unit` (88 g of filament), or with no unit the share of one unit as sold (0.088 of a spool). The part's `need` holds for it too. An offer's `pack` says what one unit as sold holds, and an order buys whole ones.","exclusiveMinimum":0},"unit":{"$ref":"#/$defs/QuantityUnit","description":"The unit of `perPart` and of the offers' `pack`.","default":"each"},"suppliers":{"type":"array","items":{"$ref":"#/$defs/SupplierOffer"},"description":"Who sells it, on what terms."}},"required":["name","perPart"],"additionalProperties":false,"description":"THE STOCK A MADE PART USES, AS ITS SUPPLIER SELLS IT: `make.stock`."},"SubdivBodyFeature":{"type":"object","properties":{"type":{"type":"string","const":"subdivBody"},"controlPoints":{"type":"array","items":{"$ref":"#/$defs/Vec3"},"description":"Control-cage vertices (object space, mm)."},"faces":{"type":"array","items":{"type":"array","items":{"type":"number"}},"description":"Quad (or tri) faces as indices into controlPoints."},"level":{"type":"number","description":"Catmull-Clark subdivision iterations (0 = the raw cage)."},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the resulting solid combines with existing bodies (default \"new\")."},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","controlPoints","faces","level","id","name"],"additionalProperties":false,"description":"A subdivision-surface body (Catmull-Clark). Authored in the **sculpt** mode as an editable control cage — a quad mesh you push/pull/subdivide — and committed into the document as a body. The cage is stored verbatim (control points + quad faces); the surface is computed by subdividing `level` times (pure TS subdivision in `cad/model/subdiv.ts`), then meshed for display. Independent of the OCC kernel (which has no native subdivision), so it works everywhere."},"SupplementalShape":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"point"},"at":{"$ref":"#/$defs/Vec3"}},"required":["kind","at"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"line"},"from":{"$ref":"#/$defs/Vec3"},"to":{"$ref":"#/$defs/Vec3"}},"required":["kind","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"circle"},"center":{"$ref":"#/$defs/Vec3"},"normal":{"$ref":"#/$defs/Vec3"},"radius":{"type":"number"},"from":{"$ref":"#/$defs/Vec3"},"to":{"$ref":"#/$defs/Vec3"}},"required":["kind","center","normal","radius"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"curves"},"of":{"type":"array","items":{"$ref":"#/$defs/SupplementalShape"}}},"required":["kind","of"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"axes"},"origin":{"$ref":"#/$defs/Vec3"},"axis":{"$ref":"#/$defs/Vec3"},"refDirection":{"$ref":"#/$defs/Vec3"}},"required":["kind","origin","axis","refDirection"],"additionalProperties":false}]},"SupplierOffer":{"type":"object","properties":{"name":{"type":"string","description":"The supplier: a distributor, a shop, a fab house (\"LCSC\", \"DigiKey\", \"JLCPCB\").","pattern":"\\S"},"sku":{"type":"string","description":"The supplier's own number for the part (its SKU)."},"url":{"type":"string","description":"The page that sells it."},"currency":{"type":"string","description":"ISO 4217 currency code of the prices.","pattern":"^[A-Z]{3}$"},"priceBreaks":{"type":"array","items":{"$ref":"#/$defs/PriceBreak"},"description":"The unit price from each quantity up; below the smallest there is no price."},"moq":{"type":"integer","description":"The smallest order.","minimum":1},"orderMultiple":{"type":"integer","description":"An order is a multiple of this (a reel, a tray).","minimum":1},"pack":{"type":"number","description":"What one unit sold holds, in the part's unit: a 1 kg spool of a part stated in grams is 1000, a 2 m strip of one in metres is 2, a bag of 100 screws is 100. The offer's price breaks, `moq`, `orderMultiple`, `stock`, `preorder` and `incoming` count these units; the part's quantity and need count its own, and an order buys whole packs. Absent: 1.","exclusiveMinimum":0},"leadTimeDays":{"type":"number","description":"Days from order to shipment (a factory run: from the samples' approval).","minimum":0},"leadTimeDaysHigh":{"type":"number","description":"The high end of a lead-time range (\"9–20 days\"): the order-by dates are reckoned on it.","minimum":0},"stock":{"type":"integer","description":"Units the supplier holds now. The roll-up fills at most this many from the offer, and the rest of the line from the next offer (or names it short). Absent: the offer is not limited by stock.","minimum":0},"preorder":{"type":"integer","description":"How many can still be bought now, when that is not the stock: JLCPCB's \"can pre-order now\" (`canPresaleNumber`), negative when more is promised to other buyers than is held. The roll-up fills at most this many (none at 0 or less)."},"pool":{"type":"string","description":"The stock the offer draws on, when another offer of the part draws on the same: JLCPCB's parts library and LCSC sell from one warehouse (`pool: \"LCSC warehouse\"` on both). The roll-up fills from a pool at most the largest stock any of its offers states, never their sum."},"incoming":{"type":"array","items":{"$ref":"#/$defs/IncomingLot"},"description":"Stock on its way to the supplier (\"3,000 due 2026-11-05\"): a logistics plan counts a lot due by the day the order must be placed. A design's own roll-up has no such day and counts none."},"kind":{"type":"string","enum":["stock","quote","listing","broker"],"description":"What the offer is: \"stock\" (a catalog's stock and price, the default), \"quote\" (a price a supplier gave for this order: a factory run, a back-order), \"listing\" (a price shown on a marketplace page) or \"broker\" (a broker's listed lot)."},"confidence":{"type":"string","enum":["firm","indication"],"description":"Whether a person can buy at it: \"firm\" (the default for stock and a quote) or \"indication\" (the default for a listing and a broker lot). The roll-up fills and prices a line from firm offers only; an indication is named as what could fill a shortage, never as a price. A broker lot its broker confirmed is \"firm\"."},"samplesDays":{"type":"number","description":"A factory run: days from order to approved samples, before `leadTimeDays` of production.","minimum":0},"tooling":{"anyOf":[{"type":"number"},{"type":"string","const":"unknown"}],"description":"A factory run's one-time cost (tooling, NRE) in `currency`, added once to the order; \"unknown\": not quoted yet."},"service":{"type":"string","description":"The `<service id>` the part is bought through (JLCPCB's \"pre-order\", \"global-sourcing\", \"consignment\"), of the `via` supplier's file when the offer names one, else of its own: a logistics plan adds its days and fees."},"via":{"type":"string","description":"The supplier file the part is bought through, when that is not its own supplier: DigiKey's offer (its `supplier`, price, stock and lead) bought by JLCPCB's global sourcing (`via: \"suppliers/jlcpcb.supplier.tsx\"`, `service: \"global-sourcing\"`). The lead is the offer's plus the service's days, the price the offer's plus the service's fees, and the part ships on the `via` supplier's route (with the boards)."},"source":{"type":"string","description":"Where the terms were read: a page, a quote, or \"estimate\" with its basis."},"date":{"type":"string","description":"The day the terms were read, YYYY-MM-DD.","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"dates":{"$ref":"#/$defs/OfferDates","description":"The day a term was read when it is not `date`: the stock on one day, the price breaks on another."},"supplier":{"type":"string","description":"The supplier's file (`suppliers/jlcpcb.supplier.tsx`), by this document's folder: where it ships from, its carriers and contacts. A logistics plan (`<name>.logistics.tsx`) routes the lines whose chosen offer names it."}},"required":["name"],"additionalProperties":false,"description":"WHO SELLS A PART, AND ON WHAT TERMS: one supplier's offer (docs/formats.md § logistics). The quantity terms (`stock`, `moq`, `orderMultiple`, `leadTimeDays`, `priceBreaks`) are the ones a component catalog's offer states. A price or a stock says where and when it was read (`source`, `date`)."},"SurfaceFinish":{"type":"object","properties":{"type":{"type":"string","const":"surfaceFinish"},"roughness":{"type":"number","description":"Arithmetic mean roughness Ra (µm)."},"requirement":{"type":"string","enum":["any","required","prohibited"],"description":"Machining requirement: `any` (basic ✓), material-removal `required`, or `prohibited`."},"process":{"type":"string","description":"Optional process / lay note (e.g. \"milled\", \"⊥\")."},"anchor":{"$ref":"#/$defs/Anchor"},"id":{"type":"string"},"label":{"type":"string","description":"Optional free-text label override; most types otherwise derive their display text from the geometry."},"textAt":{"$ref":"#/$defs/Vec3","description":"Optional explicit placement (mm) for the text/frame; defaults derive from the anchors."},"visible":{"type":"boolean","description":"Toggle visibility without deleting (parity with decals/bindings). Default true."}},"required":["type","anchor","id"],"additionalProperties":false,"description":"A surface-finish (roughness) symbol on a face."},"SurfaceMaps":{"type":"object","properties":{"color":{"type":"string","description":"The base colour (sRGB): Poly Haven's `diff`.","pattern":"\\S"},"normal":{"type":"string","description":"The tangent-space normal, OpenGL's convention (green up): Poly Haven's `nor_gl`.","pattern":"\\S"},"roughness":{"type":"string","description":"The roughness, read from green: Poly Haven's `rough`, or its `arm`.","pattern":"\\S"},"metalness":{"type":"string","description":"The metalness, read from blue: Poly Haven's `metal`, or its `arm`.","pattern":"\\S"},"ao":{"type":"string","description":"The ambient occlusion, read from red: Poly Haven's `ao`, or its `arm`.","pattern":"\\S"},"alpha":{"type":"string","description":"What is there, read from green: white where the surface is, black where it is open (a welded wire mesh's openings, a perforated sheet's holes). The surface is drawn only where the map is over half, on both of its sides.","pattern":"\\S"},"size":{"type":"array","items":{"type":"number","exclusiveMinimum":0},"minItems":2,"maxItems":2,"description":"What one copy of the images covers on the surface, along its two directions.","x-unit":"mm","default":[1000,1000]}},"additionalProperties":false,"description":"A surface's photographed maps: a physically based texture set (Poly Haven's CC0 textures, `cloud://home/user-commandagi/assets/polyhaven/textures/<name>/1k/textures/…`), each image by its ref, a path from the document's folder or an address. The images repeat over the body: each face takes them along the axis it is most nearly normal to, in the body's own millimetres, so a box, a wall or a floor needs no unwrap and one copy of the image covers `size` of it. A map multiplies its field: `color` tints the colour map (white when the material states none), and `roughness` and `metalness` scale their maps (1 when it states none). A grey roughness map and Poly Haven's packed `arm` map (occlusion, roughness, metalness in its red, green and blue) are read alike: roughness from green, metalness from blue, occlusion from red."},"SurfaceTexture":{"type":"object","properties":{"kind":{"type":"string","enum":["grain","bead-blast","brushed","layer-lines"]},"scale":{"type":"number","description":"The relief's period: a grain's cell, a layer's height, a brush stroke's width.","x-unit":"mm","exclusiveMinimum":0},"depth":{"type":"number","description":"The relief's height, peak to valley.","x-unit":"mm","minimum":0},"direction":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"The direction of the brush strokes or the build direction of the layers (a unit vector, the body's frame).","default":[0,0,1]}},"required":["kind","scale","depth"],"additionalProperties":false,"description":"A surface's small relief, drawn as a bump and never built as geometry: moulded grain (a VDI 3400 texture), bead blasting, a brushed finish, a printer's layer lines."},"SweepFeature":{"type":"object","properties":{"type":{"type":"string","const":"sweep"},"profile":{"$ref":"#/$defs/ProfileRef","description":"The cross-section that is swept. A region with holes sweeps a hollow solid (a hose, a tube).","x-pick":"profile"},"path":{"$ref":"#/$defs/SweepPath","description":"What the profile follows: a sketch's open or closed chain on its plane (`{ sketch }`), or a curve in space (`{ curve }`, the id of a `curve` feature). The profile stays where it is drawn and turns with the path: draw it on the curve's own plane (`plane={{ type: \"datum\", plane: <the curve's id> }}`) to start where the curve starts.","x-pick":"sweepPath"},"frame":{"type":"string","enum":["minimal","frenet","up","guide"],"description":"How the profile turns along the path. \"minimal\": only as much as the path turns, with no roll about it (a rotation-minimizing frame); \"frenet\": it keeps its place against the path's principal normal (a flat yarn stays flat on a helix's cylinder; not defined where the path is straight); \"up\": its frame keeps `up` as the binormal (a level path stays level); \"guide\": its frame points at the `guide` curve.","default":"minimal"},"up":{"$ref":"#/$defs/Vec3","description":"The direction the profile's frame keeps as its binormal.","default":[0,0,1],"x-showIf":{"frame":"up"}},"guide":{"type":"string","description":"The `curve` feature the profile's frame points at, by id.","x-pick":"curve","x-showIf":{"frame":"guide"}},"twist":{"type":"number","description":"How far the profile turns about the path from its start to its end, evenly along its length (a twisted bar, a cable's lay), on top of the frame: \"minimal\", \"frenet\" or \"up\". For a path that is an open, smooth curve.","x-unit":"rad"},"surface":{"type":"boolean","description":"A SURFACE, not a solid: the profile's outer edges (or the sketch's open chain) swept along the path, a body of its own with no inside and no end caps. A surface is always a new body.","default":false},"operation":{"$ref":"#/$defs/BooleanMode","description":"How the solid combines with the bodies before it.","default":"new","x-showIf":{"surface":[false,null]}},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","profile","path","operation","id","name"],"additionalProperties":false},"SweepPath":{"anyOf":[{"$ref":"#/$defs/ProfileRef"},{"$ref":"#/$defs/CurveRef"}],"description":"What a sweep follows: a sketch's open or closed chain on its plane, or a curve in space."},"TactileSkin":{"type":"object","properties":{"id":{"type":"string","description":"The skin's id: the channel a definition names it by.","pattern":"^[A-Za-z0-9_.-]+$"},"body":{"type":"string","description":"The body the skin is on, by its id or name.","x-pick":"body","pattern":"\\S"},"face":{"$ref":"#/$defs/TopoTarget","description":"The face the taxels lie on, as the editor picked it. The grid's place is `at`, `normal` and `along`.","x-pick":"face"},"at":{"$ref":"#/$defs/Vec3","description":"The grid's centre, on the face, in the body's frame.","x-unit":"mm"},"normal":{"$ref":"#/$defs/Vec3","description":"The face's outward normal at `at`: the side a contact presses from."},"along":{"$ref":"#/$defs/Vec3","description":"The direction each row runs along the face (square to `normal`); the rows step along normal × along."},"rows":{"type":"integer","description":"Taxels across the rows.","minimum":1,"maximum":64},"cols":{"type":"integer","description":"Taxels along each row.","minimum":1,"maximum":64},"pitch":{"type":"number","description":"The distance between two taxels' centres, in both directions.","x-unit":"mm","exclusiveMinimum":0},"thickness":{"type":"number","description":"The elastomer over the taxels.","x-unit":"mm","exclusiveMinimum":0,"default":1},"saturation":{"type":"number","description":"The most pressure a taxel reads, in kPa; above it the taxel reads this. Absent: no limit.","exclusiveMinimum":0}},"required":["id","body","at","normal","along","rows","cols","pitch"],"additionalProperties":false},"TerminalBinding":{"type":"object","properties":{"point":{"type":"string","description":"WHICH POINT OF THE RUN — by the sketch point's own id, never by its position in ConductorPathRef.points."},"pad":{"type":"string","description":"The pad, by its document-unique import."}},"required":["point","pad"],"additionalProperties":false,"description":"A BINDING: this conductor is electrically joined to that pad. L3, and L2."},"ThickenFeature":{"type":"object","properties":{"type":{"type":"string","const":"thicken"},"bodies":{"type":"array","items":{"type":"string"},"description":"The bodies to thicken, by id (a surface becomes a solid of this thickness). Absent: every body, each grown (or, negative, shrunk) evenly.","x-pick":"body"},"distance":{"type":"number","description":"How thick, along the surface's normal (negative: the other side); for a solid, the uniform offset.","x-unit":"mm","default":1},"symmetric":{"type":"boolean","description":"A surface thickens to both sides of itself, half each way."},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","distance","id","name"],"additionalProperties":false},"ThreadFeature":{"type":"object","properties":{"type":{"type":"string","const":"thread"},"face":{"$ref":"#/$defs/TopoTarget","description":"Cylindrical face to thread.","x-pick":"face"},"pitch":{"type":"number","description":"Distance between thread crests (mm).","x-unit":"mm","exclusiveMinimum":0,"default":1.5},"length":{"type":"number","description":"Threaded length along the axis (mm).","x-unit":"mm","exclusiveMinimum":0,"default":10},"depth":{"type":"number","description":"Radial thread depth (mm).","x-unit":"mm","exclusiveMinimum":0,"default":0.9},"internal":{"type":"boolean","description":"Internal (tapped hole) vs external (bolt)."},"rightHanded":{"type":"boolean","description":"Right-handed (default) vs left-handed.","default":true},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","face","pitch","length","depth","id","name"],"additionalProperties":false},"TopoBox":{"type":"object","properties":{"min":{"$ref":"#/$defs/Vec3","description":"The least corner.","x-unit":"mm"},"max":{"$ref":"#/$defs/Vec3","description":"The greatest corner.","x-unit":"mm"}},"required":["min","max"],"additionalProperties":false,"description":"A box in model coordinates, by two opposite corners."},"TopoQuery":{"type":"object","properties":{"normal":{"$ref":"#/$defs/Vec3","description":"Faces: flat, facing this direction (its outward normal, same sense)."},"parallel":{"$ref":"#/$defs/Vec3","description":"Edges: straight, along this direction (either sense)."},"perpendicular":{"$ref":"#/$defs/Vec3","description":"Edges: straight, at right angles to this direction."},"axis":{"$ref":"#/$defs/Vec3","description":"Faces: a cylinder, cone or torus about an axis in this direction. Edges: a circle or arc about one. Either sense."},"geometry":{"type":"string","enum":["line","circle","arc","ellipse","spline","other","plane","cylinder","cone","sphere","torus"],"description":"The kind of surface (a face) or curve (an edge)."},"length":{"$ref":"#/$defs/TopoRange","description":"Edges: the length.","x-unit":"mm"},"radius":{"$ref":"#/$defs/TopoRange","description":"Faces: the radius of a cylinder or sphere. Edges: the radius of a circle or arc.","x-unit":"mm"},"area":{"$ref":"#/$defs/TopoRange","description":"Faces: the area, in square millimetres."},"ofFace":{"$ref":"#/$defs/TopoQuery","description":"Edges: the edges that bound a face this face query chooses (\"the edges of the top face\")."},"createdBy":{"type":"string","description":"Made by this feature: a face that lies on the bodies after the feature ran and not on the bodies before it, and an edge that bounds such a face. A hole's wall and its rim are made by the hole; the face it was drilled in is not."},"at":{"$ref":"#/$defs/Vec3","description":"Faces: the face passes through this point (within 0.1 % of the diagonal of the bodies it is chosen from): \"the face that contains (x, y, z)\". A point on the face, anywhere on it, not its centre.","x-unit":"mm"},"inBox":{"$ref":"#/$defs/TopoBox","description":"Its centre (a face's centroid, an edge's midpoint) lies in this box, in model coordinates.","x-unit":"mm"},"farthest":{"$ref":"#/$defs/Vec3","description":"Of what passes every other test, only the ones whose centre is farthest along this direction (\"the top\")."},"any":{"type":"array","items":{"$ref":"#/$defs/TopoQuery"},"description":"One of these holds.","minItems":1},"not":{"$ref":"#/$defs/TopoQuery","description":"This does not hold."}},"additionalProperties":false,"description":"WHAT FACES OR EDGES ARE, STATED AS DATA — the tests one face or edge of the bodies must pass to be chosen."},"TopoRange":{"type":"object","properties":{"min":{"type":"number","description":"At least this."},"max":{"type":"number","description":"At most this."}},"additionalProperties":false,"description":"A range of a measured value. An end left out is open."},"TopoRef":{"type":"object","properties":{"feature":{"type":"string","description":"The feature whose result body contains this sub-shape (optional hint)."},"kind":{"type":"string","enum":["face","edge","vertex"]},"signature":{"$ref":"#/$defs/TopoSignature"},"label":{"type":"string","description":"Human label, e.g. \"Top face of Extrude1\"."}},"required":["kind","signature"],"additionalProperties":false},"TopoSelector":{"type":"object","properties":{"kind":{"type":"string","enum":["face","edge"]},"select":{"$ref":"#/$defs/TopoQuery","description":"What they are."},"label":{"type":"string","description":"Human label, e.g. \"Vertical edges\"."}},"required":["kind","select"],"additionalProperties":false,"description":"Faces or edges chosen by a TopoQuery when the feature is built: \"every vertical edge\", \"the edges of the top face\", \"the rims the hole made\". Beside the pick (TopoRef), which names one by where it was."},"TopoSignature":{"type":"object","properties":{"point":{"$ref":"#/$defs/Vec3","description":"Faces: a point on the face (anywhere on it) or its centre; the face nearest to it wins. Edges: the midpoint. Vertices: the position."},"normal":{"$ref":"#/$defs/Vec3","description":"Face normal (faces only): its outward sense, which tells two touching faces apart."},"area":{"type":"number","description":"Face area (faces only)."},"box":{"$ref":"#/$defs/TopoBox","description":"Faces: the box of its boundary, when its surface does not tell it from a neighbour's (a STEP file's freeform face: a fillet's torus, a B-spline). The face whose boundary has this box wins."},"length":{"type":"number","description":"Edge length (edges only)."},"dir":{"$ref":"#/$defs/Vec3","description":"Edge chord direction, normalized (edges only)."}},"required":["point"],"additionalProperties":false},"TopoTarget":{"anyOf":[{"$ref":"#/$defs/TopoRef"},{"$ref":"#/$defs/TopoSelector"}],"description":"What a feature takes where it needs faces or edges: one picked (TopoRef) or the ones a query chooses."},"ToroidalSurface":{"type":"object","properties":{"kind":{"type":"string","const":"torus"},"majorRadius":{"type":"number"},"minorRadius":{"type":"number"},"origin":{"$ref":"#/$defs/Vec3"},"xAxis":{"$ref":"#/$defs/Vec3"},"yAxis":{"$ref":"#/$defs/Vec3"},"axis":{"$ref":"#/$defs/Vec3"}},"required":["kind","majorRadius","minorRadius","origin","xAxis","yAxis","axis"],"additionalProperties":false,"description":"A torus: `S(u,v) = origin + (Rmaj + Rmin·cos v)(cos u·x + sin u·y) + Rmin·sin v·axis`. K = cos v / (Rmin(Rmaj + Rmin·cos v)) — it CHANGES SIGN across the tube, which makes it the sharpest doubly-curved control: no single scalar can describe its distortion."},"TransformFeature":{"type":"object","properties":{"type":{"type":"string","const":"transform"},"seedFeature":{"type":"string","description":"The feature whose bodies move.","x-pick":"feature"},"translate":{"$ref":"#/$defs/Vec3","description":"How far they move.","x-unit":"mm"},"rotateAxis":{"$ref":"#/$defs/AxisRef","description":"The axis they turn about.","x-pick":"axis"},"rotateAngle":{"type":"number","description":"How far they turn about it.","x-unit":"rad"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","seedFeature","id","name"],"additionalProperties":false},"TrimSurfaceFeature":{"type":"object","properties":{"type":{"type":"string","const":"trimSurface"},"body":{"type":"string","description":"The surface body to trim, by id.","x-pick":"body"},"tool":{"$ref":"#/$defs/PlaneRef","description":"What cuts it, when it is a plane: a construction plane, a base plane or a flat face.","x-pick":"plane"},"toolBody":{"type":"string","description":"What cuts it, when it is another surface body (in place of `tool`), by id.","x-pick":"body"},"keepFront":{"type":"boolean","description":"Keep the side the tool's normal points to (the other side is kept when false).","default":true},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","body","id","name"],"additionalProperties":false,"description":"TRIM A SURFACE: cut a surface body by a plane, a flat face or another surface, and keep one side."},"UnfoldFeature":{"type":"object","properties":{"type":{"type":"string","const":"unfold"},"kFactor":{"type":"number","description":"K-factor for bend-allowance (neutral-fibre) computation; the rules' when omitted, else 0.44.","minimum":0,"maximum":1,"x-widget":"slider","x-step":0.01},"bends":{"type":"array","items":{"type":"string"},"description":"Only these bends (flange, hem, fold or convert features, by id) are flattened; the rest stay bent. Every bend when omitted.","x-pick":"feature"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","id","name"],"additionalProperties":false,"description":"THE FLAT PATTERN: every base flange, edge flange, hem and fold of the part developed flat (each bend becomes its bend allowance). Suppressed, the part is folded again."},"UntrimSurfaceFeature":{"type":"object","properties":{"type":{"type":"string","const":"untrimSurface"},"body":{"type":"string","description":"The surface body, by id.","x-pick":"body"},"edges":{"type":"array","items":{"$ref":"#/$defs/TopoRef"},"description":"An open edge of each opening to fill.","x-pick":"edge"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","body","id","name"],"additionalProperties":false,"description":"UNTRIM A SURFACE: fill its openings. With no `edges`, each face's own holes are taken away; with `edges`, each opening whose boundary holds one of them (a loop of open edges, which may run along several faces: a box with no lid) is closed by a face, flat when the loop is, else a filling surface through it."},"UnwrapChart":{"type":"object","properties":{"id":{"type":"string"},"source":{"$ref":"#/$defs/TopoRef","description":"The b-rep face this patch was taken from — a real dependency edge, exactly like every other ref."},"surface":{"$ref":"#/$defs/UnwrapSurface"},"rect":{"$ref":"#/$defs/ParamRect"},"placement":{"$ref":"#/$defs/ChartPlacement","description":"Filled in by `buildUnwrapDomain` from the declared identifications; never authored by hand."},"map":{"$ref":"#/$defs/FittedChartMap","description":"A fitted flattening, replacing the closed form for this chart. Absent ⇒ the analytic map below, which is an ISOMETRY wherever the surface is developable."}},"required":["id","surface","rect"],"additionalProperties":false},"UnwrapDomain":{"type":"object","properties":{"id":{"type":"string"},"charts":{"type":"array","items":{"$ref":"#/$defs/UnwrapChart"},"description":"Charts with their placements resolved."},"anchor":{"type":"string","description":"THE CHART THE ATLAS IS MEASURED FROM — the declared anchor the layout started at."},"stitches":{"type":"array","items":{"$ref":"#/$defs/UnwrapIdentification"},"description":"The identifications that PLACED a chart — adjacent on the part AND adjacent in the flat domain."},"seams":{"type":"array","items":{"$ref":"#/$defs/UnwrapIdentification"},"description":"The identifications the layout could not use: a cut in 2D that is NOT a cut in 3D."},"isometric":{"type":"boolean","description":"Proved, not copied from the spec."},"developability":{"type":"array","items":{"$ref":"#/$defs/DevelopabilityVerdict"}},"distortion":{"type":"array","items":{"$ref":"#/$defs/ChartDistortionSummary"},"description":"The distortion each chart's map applies, as EXTREMES."},"fits":{"type":"array","items":{"type":"object","properties":{"chart":{"type":"string"},"residual":{"type":"number"},"tolerance":{"type":"number"}},"required":["chart","residual","tolerance"],"additionalProperties":false},"description":"Every FITTED chart's residual against the flattening it was fitted to, in millimetres, and the bound it was admitted under. Empty on an atlas whose charts are all closed-form."},"bindTolerance":{"type":"number"},"resolution":{"type":"number"}},"required":["id","charts","anchor","stitches","seams","isometric","developability","distortion","fits","bindTolerance","resolution"],"additionalProperties":false},"UnwrapIdentification":{"type":"object","properties":{"id":{"type":"string"},"a":{"type":"object","properties":{"chart":{"type":"string"},"edge":{"$ref":"#/$defs/ChartEdge"}},"required":["chart","edge"],"additionalProperties":false},"b":{"type":"object","properties":{"chart":{"type":"string"},"edge":{"$ref":"#/$defs/ChartEdge"}},"required":["chart","edge"],"additionalProperties":false},"label":{"type":"string","description":"Human label for the panel — \"top face ↔ fillet\", \"cylinder seam\"."}},"required":["id","a","b"],"additionalProperties":false,"description":"\"These two chart edges are the same curve on the part.\" The atlas's only authored relation."},"UnwrapSurface":{"anyOf":[{"$ref":"#/$defs/PlanarSurface"},{"$ref":"#/$defs/CylindricalSurface"},{"$ref":"#/$defs/ConicalSurface"},{"$ref":"#/$defs/SphericalSurface"},{"$ref":"#/$defs/ToroidalSurface"}]},"ValueFormats":{"type":"object","properties":{},"additionalProperties":{"type":"object","properties":{"format":{"type":"string"},"qualifier":{"type":"string"}},"additionalProperties":false},"description":"How a value is written, as AP242 qualifies a measure: `format` its VALUE_FORMAT_TYPE_QUALIFIER (`NR2 1.3`: decimal places as ISO 6093 counts them), `qualifier` its TYPE_QUALIFIER (`maximum`, `minimum`), keyed by the field the value is (`value`, `tolerance`, `unequal`, `projected`, `perUnit` …)."},"Vec2":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"A point or vector in 2D (sketch space)."},"Vec3":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"A point or vector in 3D."},"Vec32":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"A point or vector in 3D."},"ViewCamera":{"type":"object","properties":{"target":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"The point the camera looks at.","x-unit":"mm"},"radius":{"type":"number","description":"The camera's distance from that point.","x-unit":"mm","exclusiveMinimum":0},"theta":{"type":"number","description":"The angle about the vertical axis.","x-unit":"rad"},"phi":{"type":"number","description":"The angle down from the vertical axis.","x-unit":"rad","minimum":0,"maximum":3.141592653589793}},"required":["target","radius","theta","phi"],"additionalProperties":false,"description":"A camera that orbits a point: where it looks, how far from it, and the two angles of the orbit."},"ViewRide":{"type":"object","properties":{"target":{"type":"string","description":"What the camera rides: a live or recorded track's id as the viewer's `data-tracks` lists it, a run's aircraft `<aircraft id>@<run id>`, or a body or unit of the document by its feature id or name.","pattern":"\\S"},"view":{"$ref":"#/$defs/RideView","description":"chase: behind and above it; cockpit: at it, looking where it points; orbit: circling it at the chase distance."}},"required":["target","view"],"additionalProperties":false,"description":"What a view's camera rides: applying the view starts the ride; the viewer says so when the thing is not drawn then."},"VolumeFeature":{"type":"object","properties":{"type":{"type":"string","const":"volume"},"dims":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Voxel grid dimensions [nx,ny,nz]."},"spacing":{"type":"array","items":{"type":"number"},"minItems":3,"maxItems":3,"description":"Voxel spacing (mm) [sx,sy,sz]."},"origin":{"$ref":"#/$defs/Vec3","description":"World position (mm) of voxel [0,0,0]'s corner.","x-unit":"mm","default":[0,0,0]},"data":{"type":"array","items":{"type":"number"},"description":"Scalar field, length nx·ny·nz, x fastest then y then z, normalized 0..1."},"render":{"type":"string","enum":["slices","iso"],"description":"How to display it."},"iso":{"type":"number","description":"Iso threshold (0..1) for the \"iso\" render."},"colormap":{"type":"string","description":"Named colormap (viridis/gray/hot/…)."},"source":{"type":"object","properties":{"format":{"type":"string"},"fileId":{"type":"string"},"fileName":{"type":"string"},"kind":{"type":"string","enum":["scalar","label"]}},"additionalProperties":false},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","dims","spacing","origin","data","id","name"],"additionalProperties":false,"description":"A **scalar/label voxel volume** — CT/MRI/microscopy/segmentation grids (NIfTI/NRRD/DICOM). The field is normalized 0..1 and downsampled to a display-friendly grid on import (large clinical volumes don't fit a JSON doc verbatim). Rendered as three orthogonal MPR slice planes or a marching-cubes isosurface."},"WorldCollider":{"anyOf":[{"$ref":"#/$defs/WorldHeightfieldCollider"},{"$ref":"#/$defs/WorldTrimeshCollider"}],"description":"The collider of a world body (MeshBodyFeature.worldCollider)."},"WorldHeightfieldCollider":{"type":"object","properties":{"type":{"type":"string","const":"heightfield"},"nx":{"type":"integer","description":"Grid columns (west → east).","minimum":2},"ny":{"type":"integer","description":"Grid rows (south → north).","minimum":2},"sizeX":{"type":"number","description":"The grid's east–west span.","x-unit":"mm","exclusiveMinimum":0},"sizeY":{"type":"number","description":"The grid's south–north span.","x-unit":"mm","exclusiveMinimum":0}},"required":["type","nx","ny","sizeX","sizeY"],"additionalProperties":false,"description":"A regular grid of heights, read from the body's `positions`."},"WorldTrimeshCollider":{"type":"object","properties":{"type":{"type":"string","const":"trimesh"}},"required":["type"],"additionalProperties":false,"description":"The body's exact triangle mesh, as a fixed collider."},"WrapTextFeature":{"type":"object","properties":{"type":{"type":"string","const":"wrapText"},"face":{"$ref":"#/$defs/TopoTarget","description":"Cylindrical face to wrap onto."},"sketch":{"$ref":"#/$defs/Sketch","description":"Baked 2D template (text or any closed regions) in u (circumference) / v."},"depth":{"type":"number","description":"Radial depth (mm).","x-unit":"mm","default":1},"mode":{"type":"string","enum":["emboss","engrave"],"description":"Raise the letters, or cut them into the face.","default":"emboss"},"id":{"type":"string"},"name":{"type":"string"},"suppressed":{"type":"boolean"},"error":{"type":"string","description":"Populated by rebuild when this feature fails."},"consumes":{"type":"array","items":{"type":"string"},"description":"THE BODY-STATE EDGE — the explicit form of what a timeline used to supply implicitly as \"whatever came before\"."},"declaredBy":{"$ref":"#/$defs/CodeFeature","description":"DECLARED BY A CODE PART — set only in memory, on a feature a CodeFeature's file declared when the part was opened (`app-3d-design` `model/code-parts.ts`). It holds the code feature as it is stored; a save writes that back in place of every feature it declared, so nothing a file declares is ever written."}},"required":["type","face","sketch","depth","mode","id","name"],"additionalProperties":false}}}