Update api spec (#410)
* 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
7f453e7de8
commit
5711856363
File diff suppressed because it is too large
Load Diff
@ -1,7 +1,7 @@
|
||||
from typing import List
|
||||
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
from ..models.point3d import Point3d
|
||||
from ..models.point4d import Point4d
|
||||
from ..models.world_coordinate_system import WorldCoordinateSystem
|
||||
|
||||
|
||||
@ -18,9 +18,9 @@ class CameraViewState(BaseModel):
|
||||
|
||||
ortho_scale_factor: float
|
||||
|
||||
pivot_position: List[float]
|
||||
pivot_position: Point3d
|
||||
|
||||
pivot_rotation: List[float]
|
||||
pivot_rotation: Point4d
|
||||
|
||||
world_coord_system: WorldCoordinateSystem
|
||||
|
||||
|
@ -811,8 +811,6 @@ class OptionSolid3DFilletEdge(BaseModel):
|
||||
|
||||
edge_id: str
|
||||
|
||||
face_id: Optional[str] = None
|
||||
|
||||
object_id: str
|
||||
|
||||
radius: LengthUnit
|
||||
|
@ -93,6 +93,22 @@ class OptionArcTo(BaseModel):
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class OptionCircularInvolute(BaseModel):
|
||||
"""Adds a circular involute from the current position that goes through the given end_radius and is rotated around the current point by angle."""
|
||||
|
||||
angle: Angle
|
||||
|
||||
end_radius: LengthUnit
|
||||
|
||||
reverse: bool
|
||||
|
||||
start_radius: LengthUnit
|
||||
|
||||
type: Literal["circular_involute"] = "circular_involute"
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
PathSegment = RootModel[
|
||||
Annotated[
|
||||
Union[
|
||||
@ -102,6 +118,7 @@ PathSegment = RootModel[
|
||||
OptionTangentialArc,
|
||||
OptionTangentialArcTo,
|
||||
OptionArcTo,
|
||||
OptionCircularInvolute,
|
||||
],
|
||||
Field(discriminator="type"),
|
||||
]
|
||||
|
69
spec.json
69
spec.json
@ -17139,22 +17139,10 @@
|
||||
"format": "float"
|
||||
},
|
||||
"pivot_position": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
},
|
||||
"minItems": 3,
|
||||
"maxItems": 3
|
||||
"$ref": "#/components/schemas/Point3d"
|
||||
},
|
||||
"pivot_rotation": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
},
|
||||
"minItems": 4,
|
||||
"maxItems": 4
|
||||
"$ref": "#/components/schemas/Point4d"
|
||||
},
|
||||
"world_coord_system": {
|
||||
"$ref": "#/components/schemas/WorldCoordinateSystem"
|
||||
@ -24074,12 +24062,6 @@
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"face_id": {
|
||||
"nullable": true,
|
||||
"description": "The ID to use for the newly created fillet face. If not provided, the server will randomly generate one.",
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"object_id": {
|
||||
"description": "Which object is being filletted.",
|
||||
"type": "string",
|
||||
@ -29565,6 +29547,53 @@
|
||||
"relative",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Adds a circular involute from the current position that goes through the given end_radius and is rotated around the current point by angle.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"angle": {
|
||||
"description": "The angle to rotate the involute by. A value of zero will produce a curve with a tangent along the x-axis at the start point of the curve.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Angle"
|
||||
}
|
||||
]
|
||||
},
|
||||
"end_radius": {
|
||||
"description": "The involute is described between two circles, end_radius is the radius of the outer circle.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/LengthUnit"
|
||||
}
|
||||
]
|
||||
},
|
||||
"reverse": {
|
||||
"description": "If reverse is true, the segment will start from the end of the involute, otherwise it will start from that start.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"start_radius": {
|
||||
"description": "The involute is described between two circles, start_radius is the radius of the inner circle.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/LengthUnit"
|
||||
}
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"circular_involute"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"angle",
|
||||
"end_radius",
|
||||
"reverse",
|
||||
"start_radius",
|
||||
"type"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
Reference in New Issue
Block a user