Update api spec (#227)
* 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
213c4d681c
commit
e0209e29d6
File diff suppressed because it is too large
Load Diff
@ -57,6 +57,7 @@ from .curve_get_type import CurveGetType
|
||||
from .curve_type import CurveType
|
||||
from .customer import Customer
|
||||
from .customer_balance import CustomerBalance
|
||||
from .cut_type import CutType
|
||||
from .default_camera_focus_on import DefaultCameraFocusOn
|
||||
from .default_camera_get_settings import DefaultCameraGetSettings
|
||||
from .default_camera_zoom import DefaultCameraZoom
|
||||
|
13
kittycad/models/cut_type.py
Normal file
13
kittycad/models/cut_type.py
Normal file
@ -0,0 +1,13 @@
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class CutType(str, Enum):
|
||||
"""What kind of cut to do""" # noqa: E501
|
||||
|
||||
"""# Round off an edge. """ # noqa: E501
|
||||
FILLET = "fillet"
|
||||
"""# Cut away an edge. """ # noqa: E501
|
||||
CHAMFER = "chamfer"
|
||||
|
||||
def __str__(self) -> str:
|
||||
return str(self.value)
|
@ -8,6 +8,7 @@ from ..models.annotation_options import AnnotationOptions
|
||||
from ..models.annotation_type import AnnotationType
|
||||
from ..models.camera_drag_interaction_type import CameraDragInteractionType
|
||||
from ..models.color import Color
|
||||
from ..models.cut_type import CutType
|
||||
from ..models.distance_type import DistanceType
|
||||
from ..models.entity_type import EntityType
|
||||
from ..models.image_format import ImageFormat
|
||||
@ -620,6 +621,8 @@ class solid3d_get_prev_adjacent_edge(BaseModel):
|
||||
class solid3d_fillet_edge(BaseModel):
|
||||
"""Fillets the given edge with the specified radius."""
|
||||
|
||||
cut_type: Optional[CutType] = None
|
||||
|
||||
edge_id: str
|
||||
|
||||
object_id: str
|
||||
|
28
spec.json
28
spec.json
@ -15364,6 +15364,25 @@
|
||||
"updated_at"
|
||||
]
|
||||
},
|
||||
"CutType": {
|
||||
"description": "What kind of cut to do",
|
||||
"oneOf": [
|
||||
{
|
||||
"description": "Round off an edge.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"fillet"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Cut away an edge.",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"chamfer"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"DefaultCameraFocusOn": {
|
||||
"description": "The response from the `DefaultCameraFocusOn` command.",
|
||||
"type": "object"
|
||||
@ -20075,6 +20094,15 @@
|
||||
"description": "Fillets the given edge with the specified radius.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"cut_type": {
|
||||
"description": "How to apply the cut.",
|
||||
"default": "fillet",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/CutType"
|
||||
}
|
||||
]
|
||||
},
|
||||
"edge_id": {
|
||||
"description": "Which edge you want to fillet.",
|
||||
"type": "string",
|
||||
|
Reference in New Issue
Block a user