Skip to content

Commit bea5138

Browse files
Update api spec (#223)
* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 0727718 commit bea5138

File tree

2 files changed

+562
-376
lines changed

2 files changed

+562
-376
lines changed

spec.json

Lines changed: 148 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21767,6 +21767,25 @@
2176721767
"description": "The response from the `Extrude` endpoint.",
2176821768
"type": "object"
2176921769
},
21770+
"ExtrudeMethod": {
21771+
"description": "Extrusion method determining if the extrusion will be part of the existing object or an entirely new object.",
21772+
"oneOf": [
21773+
{
21774+
"description": "Create a new object that is not connected to the object it is extruded from. This will result in two objects after the operation.",
21775+
"type": "string",
21776+
"enum": [
21777+
"new"
21778+
]
21779+
},
21780+
{
21781+
"description": "This extrusion will be part of object it is extruded from. This will result in one object after the operation.",
21782+
"type": "string",
21783+
"enum": [
21784+
"merge"
21785+
]
21786+
}
21787+
]
21788+
},
2177021789
"ExtrudedFaceInfo": {
2177121790
"description": "IDs for the extruded faces.",
2177221791
"type": "object",
@@ -24574,6 +24593,15 @@
2457424593
}
2457524594
]
2457624595
},
24596+
"extrude_method": {
24597+
"description": "Should the extrusion create a new object or be part of the existing object. If a new object is created, the command id will be the id of the newly created object.",
24598+
"default": "merge",
24599+
"allOf": [
24600+
{
24601+
"$ref": "#/components/schemas/ExtrudeMethod"
24602+
}
24603+
]
24604+
},
2457724605
"faces": {
2457824606
"nullable": true,
2457924607
"description": "Which IDs should the new faces have? If this isn't given, the engine will generate IDs.",
@@ -26688,7 +26716,7 @@
2668826716
]
2668926717
},
2669026718
"uv": {
26691-
"description": "The 2D paramter-space u,v position to evaluate the surface at",
26719+
"description": "The 2D parameter-space u,v position to evaluate the surface at",
2669226720
"allOf": [
2669326721
{
2669426722
"$ref": "#/components/schemas/Point2d"
@@ -26739,7 +26767,7 @@
2673926767
]
2674026768
},
2674126769
"uv": {
26742-
"description": "The 2D paramter-space u,v position to evaluate the surface at",
26770+
"description": "The 2D parameter-space u,v position to evaluate the surface at",
2674326771
"allOf": [
2674426772
{
2674526773
"$ref": "#/components/schemas/Point2d"
@@ -26812,9 +26840,9 @@
2681226840
"properties": {
2681326841
"duration_seconds": {
2681426842
"description": "How many seconds the animation should take.",
26815-
"default": 0.4000000059604645,
26843+
"default": 0.4,
2681626844
"type": "number",
26817-
"format": "float"
26845+
"format": "double"
2681826846
},
2681926847
"entity_id": {
2682026848
"description": "Which entity is being changed.",
@@ -32537,6 +32565,122 @@
3253732565
"start_radius",
3253832566
"type"
3253932567
]
32568+
},
32569+
{
32570+
"description": "Adds an elliptical arc segment.",
32571+
"type": "object",
32572+
"properties": {
32573+
"center": {
32574+
"description": "The center point of the ellipse.",
32575+
"allOf": [
32576+
{
32577+
"$ref": "#/components/schemas/Point2d"
32578+
}
32579+
]
32580+
},
32581+
"end_angle": {
32582+
"description": "End of the path along the perimeter of the ellipse.",
32583+
"allOf": [
32584+
{
32585+
"$ref": "#/components/schemas/Angle"
32586+
}
32587+
]
32588+
},
32589+
"major_radius": {
32590+
"description": "Major radius of the ellipse (along the x axis).",
32591+
"allOf": [
32592+
{
32593+
"$ref": "#/components/schemas/LengthUnit"
32594+
}
32595+
]
32596+
},
32597+
"minor_radius": {
32598+
"description": "Minor radius of the ellipse (along the y axis).",
32599+
"allOf": [
32600+
{
32601+
"$ref": "#/components/schemas/LengthUnit"
32602+
}
32603+
]
32604+
},
32605+
"start_angle": {
32606+
"description": "Start of the path along the perimeter of the ellipse.",
32607+
"allOf": [
32608+
{
32609+
"$ref": "#/components/schemas/Angle"
32610+
}
32611+
]
32612+
},
32613+
"type": {
32614+
"type": "string",
32615+
"enum": [
32616+
"ellipse"
32617+
]
32618+
}
32619+
},
32620+
"required": [
32621+
"center",
32622+
"end_angle",
32623+
"major_radius",
32624+
"minor_radius",
32625+
"start_angle",
32626+
"type"
32627+
]
32628+
},
32629+
{
32630+
"description": "Adds a generic conic section specified by the end point, interior point and tangents at the start and end of the section.",
32631+
"type": "object",
32632+
"properties": {
32633+
"end": {
32634+
"description": "End point of the conic.",
32635+
"allOf": [
32636+
{
32637+
"$ref": "#/components/schemas/Point2d"
32638+
}
32639+
]
32640+
},
32641+
"end_tangent": {
32642+
"description": "Tangent at the end of the conic.",
32643+
"allOf": [
32644+
{
32645+
"$ref": "#/components/schemas/Point2d"
32646+
}
32647+
]
32648+
},
32649+
"interior": {
32650+
"description": "Interior point that lies on the conic.",
32651+
"allOf": [
32652+
{
32653+
"$ref": "#/components/schemas/Point2d"
32654+
}
32655+
]
32656+
},
32657+
"relative": {
32658+
"description": "Whether or not the interior and end points are relative to the previous path position.",
32659+
"type": "boolean"
32660+
},
32661+
"start_tangent": {
32662+
"description": "Tangent at the start of the conic.",
32663+
"allOf": [
32664+
{
32665+
"$ref": "#/components/schemas/Point2d"
32666+
}
32667+
]
32668+
},
32669+
"type": {
32670+
"type": "string",
32671+
"enum": [
32672+
"conic_to"
32673+
]
32674+
}
32675+
},
32676+
"required": [
32677+
"end",
32678+
"end_tangent",
32679+
"interior",
32680+
"relative",
32681+
"start_tangent",
32682+
"type"
32683+
]
3254032684
}
3254132685
]
3254232686
},

0 commit comments

Comments
 (0)