Update api spec (#298)

* 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-10-09 11:48:11 -07:00
committed by GitHub
parent 863f97277f
commit 75827098b2
6 changed files with 1023 additions and 924 deletions

File diff suppressed because it is too large Load Diff

View File

@ -270,6 +270,7 @@ from .solid2d_add_hole import Solid2dAddHole
from .solid3d_fillet_edge import Solid3dFilletEdge
from .solid3d_get_all_edge_faces import Solid3dGetAllEdgeFaces
from .solid3d_get_all_opposite_edges import Solid3dGetAllOppositeEdges
from .solid3d_get_common_edge import Solid3dGetCommonEdge
from .solid3d_get_extrusion_face_info import Solid3dGetExtrusionFaceInfo
from .solid3d_get_next_adjacent_edge import Solid3dGetNextAdjacentEdge
from .solid3d_get_opposite_edge import Solid3dGetOppositeEdge

View File

@ -661,6 +661,18 @@ class OptionSolid3DGetPrevAdjacentEdge(BaseModel):
model_config = ConfigDict(protected_namespaces=())
class OptionSolid3DGetCommonEdge(BaseModel):
"""Gets the shared edge between these two faces if it exists"""
face_ids: List[str]
object_id: str
type: Literal["solid3d_get_common_edge"] = "solid3d_get_common_edge"
model_config = ConfigDict(protected_namespaces=())
class OptionSolid3DFilletEdge(BaseModel):
"""Fillets the given edge with the specified radius."""
@ -1357,6 +1369,7 @@ ModelingCmd = RootModel[
OptionSolid3DGetOppositeEdge,
OptionSolid3DGetNextAdjacentEdge,
OptionSolid3DGetPrevAdjacentEdge,
OptionSolid3DGetCommonEdge,
OptionSolid3DFilletEdge,
OptionFaceIsPlanar,
OptionFaceGetPosition,

View File

@ -102,6 +102,7 @@ from ..models.solid2d_add_hole import Solid2dAddHole
from ..models.solid3d_fillet_edge import Solid3dFilletEdge
from ..models.solid3d_get_all_edge_faces import Solid3dGetAllEdgeFaces
from ..models.solid3d_get_all_opposite_edges import Solid3dGetAllOppositeEdges
from ..models.solid3d_get_common_edge import Solid3dGetCommonEdge
from ..models.solid3d_get_extrusion_face_info import Solid3dGetExtrusionFaceInfo
from ..models.solid3d_get_next_adjacent_edge import Solid3dGetNextAdjacentEdge
from ..models.solid3d_get_opposite_edge import Solid3dGetOppositeEdge
@ -908,6 +909,16 @@ class OptionSolid3DGetPrevAdjacentEdge(BaseModel):
model_config = ConfigDict(protected_namespaces=())
class OptionSolid3DGetCommonEdge(BaseModel):
""""""
data: Solid3dGetCommonEdge
type: Literal["solid3d_get_common_edge"] = "solid3d_get_common_edge"
model_config = ConfigDict(protected_namespaces=())
class OptionGetEntityType(BaseModel):
""""""
@ -1302,6 +1313,7 @@ OkModelingCmdResponse = RootModel[
OptionSolid3DGetOppositeEdge,
OptionSolid3DGetNextAdjacentEdge,
OptionSolid3DGetPrevAdjacentEdge,
OptionSolid3DGetCommonEdge,
OptionGetEntityType,
OptionCurveGetControlPoints,
OptionCurveGetType,

View File

@ -0,0 +1,11 @@
from typing import Optional
from pydantic import BaseModel, ConfigDict
class Solid3dGetCommonEdge(BaseModel):
"""The response from the `Solid3DGetCommonEdge` command."""
edge: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())

View File

@ -22848,6 +22848,38 @@
"type"
]
},
{
"description": "Gets the shared edge between these two faces if it exists",
"type": "object",
"properties": {
"face_ids": {
"description": "The faces being queried",
"type": "array",
"items": {
"type": "string",
"format": "uuid"
},
"minItems": 2,
"maxItems": 2
},
"object_id": {
"description": "Which object is being queried.",
"type": "string",
"format": "uuid"
},
"type": {
"type": "string",
"enum": [
"solid3d_get_common_edge"
]
}
},
"required": [
"face_ids",
"object_id",
"type"
]
},
{
"description": "Fillets the given edge with the specified radius.",
"type": "object",
@ -25934,6 +25966,24 @@
"type"
]
},
{
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/Solid3dGetCommonEdge"
},
"type": {
"type": "string",
"enum": [
"solid3d_get_common_edge"
]
}
},
"required": [
"data",
"type"
]
},
{
"type": "object",
"properties": {
@ -28798,6 +28848,18 @@
"edges"
]
},
"Solid3dGetCommonEdge": {
"description": "The response from the `Solid3DGetCommonEdge` command.",
"type": "object",
"properties": {
"edge": {
"nullable": true,
"description": "The UUID of the common edge, if any.",
"type": "string",
"format": "uuid"
}
}
},
"Solid3dGetExtrusionFaceInfo": {
"description": "Extrusion face info struct (useful for maintaining mappings between source path segment ids and extrusion faces)",
"type": "object",