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:
zoo-github-actions-auth[bot]
2024-06-17 07:50:42 -07:00
committed by GitHub
parent e0209e29d6
commit bfb243c233
5 changed files with 805 additions and 748 deletions

File diff suppressed because it is too large Load Diff

View File

@ -42,6 +42,7 @@ from .camera_settings import CameraSettings
from .card_details import CardDetails from .card_details import CardDetails
from .center_of_mass import CenterOfMass from .center_of_mass import CenterOfMass
from .client_metrics import ClientMetrics from .client_metrics import ClientMetrics
from .close_path import ClosePath
from .cluster import Cluster from .cluster import Cluster
from .code_language import CodeLanguage from .code_language import CodeLanguage
from .code_output import CodeOutput from .code_output import CodeOutput

View 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=())

View File

@ -6,6 +6,7 @@ from typing_extensions import Annotated
from ..models.camera_drag_end import CameraDragEnd from ..models.camera_drag_end import CameraDragEnd
from ..models.camera_drag_move import CameraDragMove from ..models.camera_drag_move import CameraDragMove
from ..models.center_of_mass import CenterOfMass 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_control_points import CurveGetControlPoints
from ..models.curve_get_end_points import CurveGetEndPoints from ..models.curve_get_end_points import CurveGetEndPoints
from ..models.curve_get_type import CurveGetType from ..models.curve_get_type import CurveGetType
@ -132,6 +133,16 @@ class entity_get_all_child_uuids(BaseModel):
model_config = ConfigDict(protected_namespaces=()) 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): class camera_drag_move(BaseModel):
"""The response to the 'CameraDragMove' endpoint""" """The response to the 'CameraDragMove' endpoint"""
@ -565,6 +576,7 @@ OkModelingCmdResponse = RootModel[
entity_get_num_children, entity_get_num_children,
entity_get_parent_id, entity_get_parent_id,
entity_get_all_child_uuids, entity_get_all_child_uuids,
close_path,
camera_drag_move, camera_drag_move,
camera_drag_end, camera_drag_end,
default_camera_get_settings, default_camera_get_settings,

View File

@ -14609,6 +14609,20 @@
"rtc_total_freezes_duration_sec" "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": { "Cluster": {
"description": "Cluster information.", "description": "Cluster information.",
"type": "object", "type": "object",
@ -21778,6 +21792,25 @@
"type" "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", "description": "The response to the 'CameraDragMove' endpoint",
"type": "object", "type": "object",