Update api spec (#228)
* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e0209e29d6
commit
bfb243c233
File diff suppressed because it is too large
Load Diff
@ -42,6 +42,7 @@ from .camera_settings import CameraSettings
|
||||
from .card_details import CardDetails
|
||||
from .center_of_mass import CenterOfMass
|
||||
from .client_metrics import ClientMetrics
|
||||
from .close_path import ClosePath
|
||||
from .cluster import Cluster
|
||||
from .code_language import CodeLanguage
|
||||
from .code_output import CodeOutput
|
||||
|
11
kittycad/models/close_path.py
Normal file
11
kittycad/models/close_path.py
Normal file
@ -0,0 +1,11 @@
|
||||
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
|
||||
|
||||
class ClosePath(BaseModel):
|
||||
"""The response from the `ClosePath` command."""
|
||||
|
||||
face_id: str
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
@ -6,6 +6,7 @@ from typing_extensions import Annotated
|
||||
from ..models.camera_drag_end import CameraDragEnd
|
||||
from ..models.camera_drag_move import CameraDragMove
|
||||
from ..models.center_of_mass import CenterOfMass
|
||||
from ..models.close_path import ClosePath
|
||||
from ..models.curve_get_control_points import CurveGetControlPoints
|
||||
from ..models.curve_get_end_points import CurveGetEndPoints
|
||||
from ..models.curve_get_type import CurveGetType
|
||||
@ -132,6 +133,16 @@ class entity_get_all_child_uuids(BaseModel):
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class close_path(BaseModel):
|
||||
"""The response to the 'ClosePath' endpoint"""
|
||||
|
||||
data: ClosePath
|
||||
|
||||
type: Literal["close_path"] = "close_path"
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class camera_drag_move(BaseModel):
|
||||
"""The response to the 'CameraDragMove' endpoint"""
|
||||
|
||||
@ -565,6 +576,7 @@ OkModelingCmdResponse = RootModel[
|
||||
entity_get_num_children,
|
||||
entity_get_parent_id,
|
||||
entity_get_all_child_uuids,
|
||||
close_path,
|
||||
camera_drag_move,
|
||||
camera_drag_end,
|
||||
default_camera_get_settings,
|
||||
|
33
spec.json
33
spec.json
@ -14609,6 +14609,20 @@
|
||||
"rtc_total_freezes_duration_sec"
|
||||
]
|
||||
},
|
||||
"ClosePath": {
|
||||
"description": "The response from the `ClosePath` command.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"face_id": {
|
||||
"description": "The UUID of the lone face of the resulting solid2D.",
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"face_id"
|
||||
]
|
||||
},
|
||||
"Cluster": {
|
||||
"description": "Cluster information.",
|
||||
"type": "object",
|
||||
@ -21778,6 +21792,25 @@
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "The response to the 'ClosePath' endpoint",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/components/schemas/ClosePath"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"close_path"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "The response to the 'CameraDragMove' endpoint",
|
||||
"type": "object",
|
||||
|
Reference in New Issue
Block a user