Update api spec (#237)

* 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-07-18 12:05:04 -07:00
committed by GitHub
parent 87f9f38d5f
commit 40e278a550
11 changed files with 834 additions and 669 deletions

View File

@ -304,7 +304,7 @@ class entity_get_distance(BaseModel):
class entity_linear_pattern_transform(BaseModel):
"""Create a linear pattern using this entity."""
"""Create a pattern using this entity by specifying the transform for each desired repetition."""
entity_id: str
@ -383,6 +383,18 @@ class entity_mirror(BaseModel):
model_config = ConfigDict(protected_namespaces=())
class entity_mirror_across_edge(BaseModel):
"""Mirror the input entities over the specified edge. (Currently only supports sketches)"""
edge_id: str
ids: List[str]
type: Literal["entity_mirror_across_edge"] = "entity_mirror_across_edge"
model_config = ConfigDict(protected_namespaces=())
class edit_mode_enter(BaseModel):
"""Enter edit mode"""
@ -939,6 +951,18 @@ class path_get_curve_uuids_for_vertices(BaseModel):
model_config = ConfigDict(protected_namespaces=())
class path_get_curve_uuid(BaseModel):
"""Obtain curve id by index"""
index: int
path_id: str
type: Literal["path_get_curve_uuid"] = "path_get_curve_uuid"
model_config = ConfigDict(protected_namespaces=())
class path_get_vertex_uuids(BaseModel):
"""Obtain vertex ids for a path"""
@ -1260,6 +1284,7 @@ ModelingCmd = RootModel[
entity_circular_pattern,
entity_make_helix,
entity_mirror,
entity_mirror_across_edge,
edit_mode_enter,
select_with_point,
select_add,
@ -1307,6 +1332,7 @@ ModelingCmd = RootModel[
make_axes_gizmo,
path_get_info,
path_get_curve_uuids_for_vertices,
path_get_curve_uuid,
path_get_vertex_uuids,
handle_mouse_drag_start,
handle_mouse_drag_move,