Skip to content

Commit dfabc9c

Browse files
Update api spec (#164)
* 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 5c408d7 commit dfabc9c

File tree

2 files changed

+622
-517
lines changed

2 files changed

+622
-517
lines changed

spec.json

Lines changed: 63 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17982,6 +17982,23 @@
1798217982
"description": "The response from the `EnableSketchMode` endpoint.",
1798317983
"type": "object"
1798417984
},
17985+
"EngineUtilEvaluatePath": {
17986+
"description": "The response of the `EngineUtilEvaluatePath` endpoint",
17987+
"type": "object",
17988+
"properties": {
17989+
"pos": {
17990+
"description": "The evaluated path curve position",
17991+
"allOf": [
17992+
{
17993+
"$ref": "#/components/schemas/Point3d"
17994+
}
17995+
]
17996+
}
17997+
},
17998+
"required": [
17999+
"pos"
18000+
]
18001+
},
1798518002
"EntityCircularPattern": {
1798618003
"description": "The response from the `EntityCircularPattern` command.",
1798718004
"type": "object",
@@ -21288,6 +21305,32 @@
2128821305
"ModelingCmd": {
2128921306
"description": "Commands that the KittyCAD engine can execute.",
2129021307
"oneOf": [
21308+
{
21309+
"description": "Evaluates the position of a path in one shot (engine utility for kcl executor)",
21310+
"type": "object",
21311+
"properties": {
21312+
"path_json": {
21313+
"description": "The path in json form (the serialized result of the kcl Sketch/Path object",
21314+
"type": "string"
21315+
},
21316+
"t": {
21317+
"description": "The evaluation parameter (path curve parameter in the normalized domain [0, 1])",
21318+
"type": "number",
21319+
"format": "double"
21320+
},
21321+
"type": {
21322+
"type": "string",
21323+
"enum": [
21324+
"engine_util_evaluate_path"
21325+
]
21326+
}
21327+
},
21328+
"required": [
21329+
"path_json",
21330+
"t",
21331+
"type"
21332+
]
21333+
},
2129121334
{
2129221335
"description": "Start a new path.",
2129321336
"type": "object",
@@ -24354,6 +24397,7 @@
2435424397
},
2435524398
"padding": {
2435624399
"description": "How much to pad the view frame by, as a fraction of the object(s) bounding box size. Negative padding will crop the view of the object proportionally. e.g. padding = 0.2 means the view will span 120% of the object(s) bounding box, and padding = -0.2 means the view will span 80% of the object(s) bounding box.",
24400+
"default": 0.0,
2435724401
"type": "number",
2435824402
"format": "float"
2435924403
},
@@ -24365,7 +24409,6 @@
2436524409
}
2436624410
},
2436724411
"required": [
24368-
"padding",
2436924412
"type"
2437024413
]
2437124414
},
@@ -24374,7 +24417,7 @@
2437424417
"type": "object",
2437524418
"properties": {
2437624419
"padding": {
24377-
"description": "How much to pad the view frame by.",
24420+
"description": "How much to pad the view frame by, as a fraction of the object(s) bounding box size. Negative padding will crop the view of the object proportionally. e.g. padding = 0.2 means the view will span 120% of the object(s) bounding box, and padding = -0.2 means the view will span 80% of the object(s) bounding box.",
2437824421
"default": 0.0,
2437924422
"type": "number",
2438024423
"format": "float"
@@ -24607,6 +24650,24 @@
2460724650
"type"
2460824651
]
2460924652
},
24653+
{
24654+
"type": "object",
24655+
"properties": {
24656+
"data": {
24657+
"$ref": "#/components/schemas/EngineUtilEvaluatePath"
24658+
},
24659+
"type": {
24660+
"type": "string",
24661+
"enum": [
24662+
"engine_util_evaluate_path"
24663+
]
24664+
}
24665+
},
24666+
"required": [
24667+
"data",
24668+
"type"
24669+
]
24670+
},
2461024671
{
2461124672
"type": "object",
2461224673
"properties": {

0 commit comments

Comments
 (0)