Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
5011954847 | |||
2c7445c5a6 | |||
bf5e3e1839 | |||
f80767454a | |||
bfb243c233 | |||
e0209e29d6 | |||
213c4d681c | |||
60c42befdf | |||
d31d9507d2 | |||
ca84069e9a | |||
dd2e3848cc | |||
8c56b88113 | |||
cc0bb86a53 |
@ -20,7 +20,7 @@ poetry run python generate/generate.py
|
||||
|
||||
# Format and lint.
|
||||
poetry run isort .
|
||||
poetry run black . generate/generate.py docs/conf.py kittycad/client_test.py kittycad/examples_test.py
|
||||
poetry run black . generate/generate.py docs/conf.py kittycad/client_test.py kittycad/examples_test.py kittycad/models/*.py kittycad/api/*.py kittycad/api/*/*.py
|
||||
poetry run ruff check --fix .
|
||||
poetry run mypy . || true
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -42,6 +42,7 @@ from .camera_settings import CameraSettings
|
||||
from .card_details import CardDetails
|
||||
from .center_of_mass import CenterOfMass
|
||||
from .client_metrics import ClientMetrics
|
||||
from .close_path import ClosePath
|
||||
from .cluster import Cluster
|
||||
from .code_language import CodeLanguage
|
||||
from .code_output import CodeOutput
|
||||
@ -57,6 +58,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
|
||||
@ -78,6 +80,7 @@ from .entity_get_distance import EntityGetDistance
|
||||
from .entity_get_num_children import EntityGetNumChildren
|
||||
from .entity_get_parent_id import EntityGetParentId
|
||||
from .entity_linear_pattern import EntityLinearPattern
|
||||
from .entity_linear_pattern_transform import EntityLinearPatternTransform
|
||||
from .entity_type import EntityType
|
||||
from .environment import Environment
|
||||
from .error import Error
|
||||
@ -89,6 +92,7 @@ from .extended_user import ExtendedUser
|
||||
from .extended_user_results_page import ExtendedUserResultsPage
|
||||
from .extrusion_face_cap_type import ExtrusionFaceCapType
|
||||
from .extrusion_face_info import ExtrusionFaceInfo
|
||||
from .face_get_center import FaceGetCenter
|
||||
from .face_get_gradient import FaceGetGradient
|
||||
from .face_get_position import FaceGetPosition
|
||||
from .face_is_planar import FaceIsPlanar
|
||||
@ -131,6 +135,7 @@ from .kcl_code_completion_request import KclCodeCompletionRequest
|
||||
from .kcl_code_completion_response import KclCodeCompletionResponse
|
||||
from .leaf_node import LeafNode
|
||||
from .length_unit import LengthUnit
|
||||
from .linear_transform import LinearTransform
|
||||
from .mass import Mass
|
||||
from .meta_cluster_info import MetaClusterInfo
|
||||
from .metadata import Metadata
|
||||
@ -179,6 +184,7 @@ from .plane_intersect_and_project import PlaneIntersectAndProject
|
||||
from .ply_storage import PlyStorage
|
||||
from .point2d import Point2d
|
||||
from .point3d import Point3d
|
||||
from .point4d import Point4d
|
||||
from .pong import Pong
|
||||
from .post_effect_type import PostEffectType
|
||||
from .privacy_settings import PrivacySettings
|
||||
@ -252,6 +258,7 @@ from .user_org_role import UserOrgRole
|
||||
from .user_results_page import UserResultsPage
|
||||
from .uuid import Uuid
|
||||
from .verification_token_response import VerificationTokenResponse
|
||||
from .view_isometric import ViewIsometric
|
||||
from .volume import Volume
|
||||
from .web_socket_request import WebSocketRequest
|
||||
from .web_socket_response import WebSocketResponse
|
||||
@ -260,3 +267,4 @@ from .zoo_product_subscriptions import ZooProductSubscriptions
|
||||
from .zoo_product_subscriptions_org_request import ZooProductSubscriptionsOrgRequest
|
||||
from .zoo_product_subscriptions_user_request import ZooProductSubscriptionsUserRequest
|
||||
from .zoo_tool import ZooTool
|
||||
from .zoom_to_fit import ZoomToFit
|
||||
|
@ -3,6 +3,7 @@ from typing import Optional
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
from ..models.point3d import Point3d
|
||||
from ..models.point4d import Point4d
|
||||
|
||||
|
||||
class CameraSettings(BaseModel):
|
||||
@ -12,6 +13,8 @@ class CameraSettings(BaseModel):
|
||||
|
||||
fov_y: Optional[float] = None
|
||||
|
||||
orientation: Point4d
|
||||
|
||||
ortho: bool
|
||||
|
||||
ortho_scale: Optional[float] = None
|
||||
|
11
kittycad/models/close_path.py
Normal file
11
kittycad/models/close_path.py
Normal 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=())
|
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)
|
12
kittycad/models/entity_linear_pattern_transform.py
Normal file
12
kittycad/models/entity_linear_pattern_transform.py
Normal file
@ -0,0 +1,12 @@
|
||||
from typing import List
|
||||
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
|
||||
|
||||
class EntityLinearPatternTransform(BaseModel):
|
||||
"""The response from the `EntityLinearPatternTransform` command."""
|
||||
|
||||
entity_ids: List[str]
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
@ -10,6 +10,10 @@ class ErrorCode(str, Enum):
|
||||
INTERNAL_API = "internal_api"
|
||||
"""# User requested something geometrically or graphically impossible. Don't retry this request, as it's inherently impossible. Instead, read the error message and change your request. """ # noqa: E501
|
||||
BAD_REQUEST = "bad_request"
|
||||
"""# Auth token is missing from the request """ # noqa: E501
|
||||
AUTH_TOKEN_MISSING = "auth_token_missing"
|
||||
"""# Auth token is invalid in some way (expired, incorrect format, etc) """ # noqa: E501
|
||||
AUTH_TOKEN_INVALID = "auth_token_invalid"
|
||||
"""# Client sent invalid JSON. """ # noqa: E501
|
||||
INVALID_JSON = "invalid_json"
|
||||
"""# Client sent invalid BSON. """ # noqa: E501
|
||||
|
12
kittycad/models/face_get_center.py
Normal file
12
kittycad/models/face_get_center.py
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
from ..models.point3d import Point3d
|
||||
|
||||
|
||||
class FaceGetCenter(BaseModel):
|
||||
"""The 3D center of mass on the surface"""
|
||||
|
||||
pos: Point3d
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
17
kittycad/models/linear_transform.py
Normal file
17
kittycad/models/linear_transform.py
Normal file
@ -0,0 +1,17 @@
|
||||
from typing import Optional
|
||||
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
from ..models.point3d import Point3d
|
||||
|
||||
|
||||
class LinearTransform(BaseModel):
|
||||
"""Ways to transform each solid being replicated in a repeating pattern."""
|
||||
|
||||
replicate: Optional[bool] = None
|
||||
|
||||
scale: Optional[Point3d] = None
|
||||
|
||||
translate: Optional[Point3d] = None
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
@ -8,12 +8,14 @@ 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
|
||||
from ..models.import_file import ImportFile
|
||||
from ..models.input_format import InputFormat
|
||||
from ..models.length_unit import LengthUnit
|
||||
from ..models.linear_transform import LinearTransform
|
||||
from ..models.modeling_cmd_id import ModelingCmdId
|
||||
from ..models.output_format import OutputFormat
|
||||
from ..models.path_component_constraint_bound import PathComponentConstraintBound
|
||||
@ -97,6 +99,20 @@ class revolve(BaseModel):
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class solid3d_shell_face(BaseModel):
|
||||
"""Command for revolving a solid 2d."""
|
||||
|
||||
face_ids: List[str]
|
||||
|
||||
object_id: str
|
||||
|
||||
shell_thickness: LengthUnit
|
||||
|
||||
type: Literal["solid3d_shell_face"] = "solid3d_shell_face"
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class revolve_about_edge(BaseModel):
|
||||
"""Command for revolving a solid 2d about a brep edge"""
|
||||
|
||||
@ -190,7 +206,7 @@ class default_camera_perspective_settings(BaseModel):
|
||||
|
||||
center: Point3d
|
||||
|
||||
fov_y: float
|
||||
fov_y: Optional[float] = None
|
||||
|
||||
sequence: Optional[int] = None
|
||||
|
||||
@ -202,9 +218,9 @@ class default_camera_perspective_settings(BaseModel):
|
||||
|
||||
vantage: Point3d
|
||||
|
||||
z_far: float
|
||||
z_far: Optional[float] = None
|
||||
|
||||
z_near: float
|
||||
z_near: Optional[float] = None
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
@ -219,38 +235,6 @@ class default_camera_zoom(BaseModel):
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class default_camera_enable_sketch_mode(BaseModel):
|
||||
"""Enable sketch mode, where users can sketch 2D geometry. Users choose a plane to sketch on."""
|
||||
|
||||
animated: bool
|
||||
|
||||
distance_to_plane: float
|
||||
|
||||
origin: Point3d
|
||||
|
||||
ortho: bool
|
||||
|
||||
type: Literal["default_camera_enable_sketch_mode"] = (
|
||||
"default_camera_enable_sketch_mode"
|
||||
)
|
||||
|
||||
x_axis: Point3d
|
||||
|
||||
y_axis: Point3d
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class default_camera_disable_sketch_mode(BaseModel):
|
||||
"""Disable sketch mode, from the default camera."""
|
||||
|
||||
type: Literal["default_camera_disable_sketch_mode"] = (
|
||||
"default_camera_disable_sketch_mode"
|
||||
)
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class export(BaseModel):
|
||||
"""Export the scene to a file."""
|
||||
|
||||
@ -319,6 +303,18 @@ class entity_get_distance(BaseModel):
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class entity_linear_pattern_transform(BaseModel):
|
||||
"""Create a linear pattern using this entity."""
|
||||
|
||||
entity_id: str
|
||||
|
||||
transform: List[LinearTransform]
|
||||
|
||||
type: Literal["entity_linear_pattern_transform"] = "entity_linear_pattern_transform"
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class entity_linear_pattern(BaseModel):
|
||||
"""Create a linear pattern using this entity."""
|
||||
|
||||
@ -638,6 +634,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
|
||||
@ -673,6 +671,16 @@ class face_get_position(BaseModel):
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class face_get_center(BaseModel):
|
||||
"""Obtains the surface \"center of mass\" """
|
||||
|
||||
object_id: str
|
||||
|
||||
type: Literal["face_get_center"] = "face_get_center"
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class face_get_gradient(BaseModel):
|
||||
"""Determines the gradient (dFdu, dFdv) + normal vector on a brep face evaluated by parameters u,v"""
|
||||
|
||||
@ -787,22 +795,6 @@ class mouse_click(BaseModel):
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class sketch_mode_enable(BaseModel):
|
||||
"""Enable sketch mode on the given plane. If you want to sketch on a face, use `enable_sketch_mode` instead."""
|
||||
|
||||
animated: bool
|
||||
|
||||
disable_camera_with_plane: Optional[Point3d] = None
|
||||
|
||||
ortho: bool
|
||||
|
||||
plane_id: str
|
||||
|
||||
type: Literal["sketch_mode_enable"] = "sketch_mode_enable"
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class sketch_mode_disable(BaseModel):
|
||||
"""Disable sketch mode. If you are sketching on a face, be sure to not disable sketch mode until you have extruded. Otherwise, your object will not be fused with the face."""
|
||||
|
||||
@ -844,6 +836,8 @@ class enable_sketch_mode(BaseModel):
|
||||
|
||||
ortho: bool
|
||||
|
||||
planar_normal: Optional[Point3d] = None
|
||||
|
||||
type: Literal["enable_sketch_mode"] = "enable_sketch_mode"
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
@ -1183,6 +1177,16 @@ class zoom_to_fit(BaseModel):
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class view_isometric(BaseModel):
|
||||
"""Fit the view to the scene with an isometric view."""
|
||||
|
||||
padding: Optional[float] = None
|
||||
|
||||
type: Literal["view_isometric"] = "view_isometric"
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class solid3d_get_extrusion_face_info(BaseModel):
|
||||
"""Get a concise description of all of an extrusion's faces."""
|
||||
|
||||
@ -1235,6 +1239,7 @@ ModelingCmd = RootModel[
|
||||
extend_path,
|
||||
extrude,
|
||||
revolve,
|
||||
solid3d_shell_face,
|
||||
revolve_about_edge,
|
||||
close_path,
|
||||
camera_drag_start,
|
||||
@ -1244,14 +1249,13 @@ ModelingCmd = RootModel[
|
||||
default_camera_look_at,
|
||||
default_camera_perspective_settings,
|
||||
default_camera_zoom,
|
||||
default_camera_enable_sketch_mode,
|
||||
default_camera_disable_sketch_mode,
|
||||
export,
|
||||
entity_get_parent_id,
|
||||
entity_get_num_children,
|
||||
entity_get_child_uuid,
|
||||
entity_get_all_child_uuids,
|
||||
entity_get_distance,
|
||||
entity_linear_pattern_transform,
|
||||
entity_linear_pattern,
|
||||
entity_circular_pattern,
|
||||
entity_make_helix,
|
||||
@ -1280,6 +1284,7 @@ ModelingCmd = RootModel[
|
||||
solid3d_fillet_edge,
|
||||
face_is_planar,
|
||||
face_get_position,
|
||||
face_get_center,
|
||||
face_get_gradient,
|
||||
send_object,
|
||||
entity_set_opacity,
|
||||
@ -1289,7 +1294,6 @@ ModelingCmd = RootModel[
|
||||
set_tool,
|
||||
mouse_move,
|
||||
mouse_click,
|
||||
sketch_mode_enable,
|
||||
sketch_mode_disable,
|
||||
get_sketch_mode_plane,
|
||||
curve_set_constraint,
|
||||
@ -1324,6 +1328,7 @@ ModelingCmd = RootModel[
|
||||
default_camera_set_orthographic,
|
||||
default_camera_set_perspective,
|
||||
zoom_to_fit,
|
||||
view_isometric,
|
||||
solid3d_get_extrusion_face_info,
|
||||
edit_mode_exit,
|
||||
select_clear,
|
||||
|
@ -6,6 +6,7 @@ from typing_extensions import Annotated
|
||||
from ..models.camera_drag_end import CameraDragEnd
|
||||
from ..models.camera_drag_move import CameraDragMove
|
||||
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_end_points import CurveGetEndPoints
|
||||
from ..models.curve_get_type import CurveGetType
|
||||
@ -20,8 +21,10 @@ from ..models.entity_get_distance import EntityGetDistance
|
||||
from ..models.entity_get_num_children import EntityGetNumChildren
|
||||
from ..models.entity_get_parent_id import EntityGetParentId
|
||||
from ..models.entity_linear_pattern import EntityLinearPattern
|
||||
from ..models.entity_linear_pattern_transform import EntityLinearPatternTransform
|
||||
from ..models.export import Export
|
||||
from ..models.extrusion_face_info import ExtrusionFaceInfo
|
||||
from ..models.face_get_center import FaceGetCenter
|
||||
from ..models.face_get_gradient import FaceGetGradient
|
||||
from ..models.face_get_position import FaceGetPosition
|
||||
from ..models.face_is_planar import FaceIsPlanar
|
||||
@ -48,7 +51,9 @@ from ..models.solid3d_get_opposite_edge import Solid3dGetOppositeEdge
|
||||
from ..models.solid3d_get_prev_adjacent_edge import Solid3dGetPrevAdjacentEdge
|
||||
from ..models.surface_area import SurfaceArea
|
||||
from ..models.take_snapshot import TakeSnapshot
|
||||
from ..models.view_isometric import ViewIsometric
|
||||
from ..models.volume import Volume
|
||||
from ..models.zoom_to_fit import ZoomToFit
|
||||
|
||||
|
||||
class empty(BaseModel):
|
||||
@ -129,6 +134,16 @@ class entity_get_all_child_uuids(BaseModel):
|
||||
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):
|
||||
"""The response to the 'CameraDragMove' endpoint"""
|
||||
|
||||
@ -169,6 +184,26 @@ class default_camera_zoom(BaseModel):
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class zoom_to_fit(BaseModel):
|
||||
"""The response to the 'ZoomToFit' endpoint"""
|
||||
|
||||
data: ZoomToFit
|
||||
|
||||
type: Literal["zoom_to_fit"] = "zoom_to_fit"
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class view_isometric(BaseModel):
|
||||
"""The response to the 'ViewIsometric' endpoint"""
|
||||
|
||||
data: ViewIsometric
|
||||
|
||||
type: Literal["view_isometric"] = "view_isometric"
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class get_num_objects(BaseModel):
|
||||
"""The response to the 'GetNumObjects' endpoint"""
|
||||
|
||||
@ -371,6 +406,16 @@ class face_get_position(BaseModel):
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class face_get_center(BaseModel):
|
||||
"""The response to the 'FaceGetCenter' endpoint"""
|
||||
|
||||
data: FaceGetCenter
|
||||
|
||||
type: Literal["face_get_center"] = "face_get_center"
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class face_get_gradient(BaseModel):
|
||||
"""The response to the 'FaceGetGradient' endpoint"""
|
||||
|
||||
@ -481,6 +526,16 @@ class entity_get_distance(BaseModel):
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class entity_linear_pattern_transform(BaseModel):
|
||||
"""The response to the 'EntityLinearPatternTransform' endpoint"""
|
||||
|
||||
data: EntityLinearPatternTransform
|
||||
|
||||
type: Literal["entity_linear_pattern_transform"] = "entity_linear_pattern_transform"
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
class entity_linear_pattern(BaseModel):
|
||||
"""The response to the 'EntityLinearPattern' endpoint"""
|
||||
|
||||
@ -532,10 +587,13 @@ OkModelingCmdResponse = RootModel[
|
||||
entity_get_num_children,
|
||||
entity_get_parent_id,
|
||||
entity_get_all_child_uuids,
|
||||
close_path,
|
||||
camera_drag_move,
|
||||
camera_drag_end,
|
||||
default_camera_get_settings,
|
||||
default_camera_zoom,
|
||||
zoom_to_fit,
|
||||
view_isometric,
|
||||
get_num_objects,
|
||||
default_camera_focus_on,
|
||||
select_get,
|
||||
@ -556,6 +614,7 @@ OkModelingCmdResponse = RootModel[
|
||||
curve_get_end_points,
|
||||
face_is_planar,
|
||||
face_get_position,
|
||||
face_get_center,
|
||||
face_get_gradient,
|
||||
plane_intersect_and_project,
|
||||
import_files,
|
||||
@ -567,6 +626,7 @@ OkModelingCmdResponse = RootModel[
|
||||
center_of_mass,
|
||||
get_sketch_mode_plane,
|
||||
entity_get_distance,
|
||||
entity_linear_pattern_transform,
|
||||
entity_linear_pattern,
|
||||
entity_circular_pattern,
|
||||
solid3d_get_extrusion_face_info,
|
||||
|
@ -22,7 +22,7 @@ class line(BaseModel):
|
||||
|
||||
|
||||
class arc(BaseModel):
|
||||
"""A circular arc segment."""
|
||||
"""A circular arc segment. Arcs can be drawn clockwise when start > end."""
|
||||
|
||||
center: Point2d
|
||||
|
||||
@ -68,7 +68,7 @@ class tangential_arc(BaseModel):
|
||||
|
||||
|
||||
class tangential_arc_to(BaseModel):
|
||||
"""Adds a tangent arc from current pen position to the new position."""
|
||||
"""Adds a tangent arc from current pen position to the new position. Arcs will choose a clockwise or counter-clockwise direction based on the arc end position."""
|
||||
|
||||
angle_snap_increment: Optional[Angle] = None
|
||||
|
||||
|
17
kittycad/models/point4d.py
Normal file
17
kittycad/models/point4d.py
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
|
||||
|
||||
class Point4d(BaseModel):
|
||||
"""A point in homogeneous (4D) space"""
|
||||
|
||||
w: float
|
||||
|
||||
x: float
|
||||
|
||||
y: float
|
||||
|
||||
z: float
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
12
kittycad/models/view_isometric.py
Normal file
12
kittycad/models/view_isometric.py
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
from ..models.camera_settings import CameraSettings
|
||||
|
||||
|
||||
class ViewIsometric(BaseModel):
|
||||
"""The response from the `ViewIsometric` command."""
|
||||
|
||||
settings: CameraSettings
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
12
kittycad/models/zoom_to_fit.py
Normal file
12
kittycad/models/zoom_to_fit.py
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
from pydantic import BaseModel, ConfigDict
|
||||
|
||||
from ..models.camera_settings import CameraSettings
|
||||
|
||||
|
||||
class ZoomToFit(BaseModel):
|
||||
"""The response from the `ZoomToFit` command."""
|
||||
|
||||
settings: CameraSettings
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "kittycad"
|
||||
version = "0.6.14"
|
||||
version = "0.6.15"
|
||||
description = "A client library for accessing KittyCAD"
|
||||
|
||||
authors = []
|
||||
|
539
spec.json
539
spec.json
@ -14431,6 +14431,14 @@
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
},
|
||||
"orientation": {
|
||||
"description": "The Camera's orientation (in the form of a quaternion)",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Point4d"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ortho": {
|
||||
"description": "Whether or not the camera is in ortho mode",
|
||||
"type": "boolean"
|
||||
@ -14460,6 +14468,7 @@
|
||||
},
|
||||
"required": [
|
||||
"center",
|
||||
"orientation",
|
||||
"ortho",
|
||||
"pos",
|
||||
"up"
|
||||
@ -14600,6 +14609,20 @@
|
||||
"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": {
|
||||
"description": "Cluster information.",
|
||||
"type": "object",
|
||||
@ -15355,6 +15378,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"
|
||||
@ -15740,6 +15782,23 @@
|
||||
"entity_ids"
|
||||
]
|
||||
},
|
||||
"EntityLinearPatternTransform": {
|
||||
"description": "The response from the `EntityLinearPatternTransform` command.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"entity_ids": {
|
||||
"description": "The UUIDs of the entities that were created.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"entity_ids"
|
||||
]
|
||||
},
|
||||
"EntityType": {
|
||||
"description": "The type of entity",
|
||||
"type": "string",
|
||||
@ -15825,6 +15884,20 @@
|
||||
"bad_request"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Auth token is missing from the request",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"auth_token_missing"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Auth token is invalid in some way (expired, incorrect format, etc)",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"auth_token_invalid"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Client sent invalid JSON.",
|
||||
"type": "string",
|
||||
@ -16163,6 +16236,23 @@
|
||||
"cap"
|
||||
]
|
||||
},
|
||||
"FaceGetCenter": {
|
||||
"description": "The 3D center of mass on the surface",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"pos": {
|
||||
"description": "The 3D position on the surface center of mass",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Point3d"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"pos"
|
||||
]
|
||||
},
|
||||
"FaceGetGradient": {
|
||||
"description": "The gradient (dFdu, dFdv) + normal vector on a brep face",
|
||||
"type": "object",
|
||||
@ -18201,6 +18291,43 @@
|
||||
"type": "number",
|
||||
"format": "double"
|
||||
},
|
||||
"LinearTransform": {
|
||||
"description": "Ways to transform each solid being replicated in a repeating pattern.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"replicate": {
|
||||
"description": "Whether to replicate the original solid in this instance.",
|
||||
"default": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"scale": {
|
||||
"description": "Scale the replica's size along each axis. Defaults to (1, 1, 1) (i.e. the same size as the original).",
|
||||
"default": {
|
||||
"x": 1.0,
|
||||
"y": 1.0,
|
||||
"z": 1.0
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Point3d"
|
||||
}
|
||||
]
|
||||
},
|
||||
"translate": {
|
||||
"description": "Translate the replica this far along each dimension. Defaults to zero vector (i.e. same position as the original).",
|
||||
"default": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Point3d"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"Mass": {
|
||||
"description": "The mass response.",
|
||||
"type": "object",
|
||||
@ -18721,6 +18848,45 @@
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Command for revolving a solid 2d.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"face_ids": {
|
||||
"description": "Which faces to remove, leaving only the shell.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
}
|
||||
},
|
||||
"object_id": {
|
||||
"description": "Which Solid3D is being shelled.",
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"shell_thickness": {
|
||||
"description": "How thick the shell should be. Smaller values mean a thinner shell.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/LengthUnit"
|
||||
}
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"solid3d_shell_face"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"face_ids",
|
||||
"object_id",
|
||||
"shell_thickness",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Command for revolving a solid 2d about a brep edge",
|
||||
"type": "object",
|
||||
@ -18973,6 +19139,7 @@
|
||||
]
|
||||
},
|
||||
"fov_y": {
|
||||
"nullable": true,
|
||||
"description": "The field of view angle in the y direction, in degrees.",
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
@ -19007,11 +19174,13 @@
|
||||
]
|
||||
},
|
||||
"z_far": {
|
||||
"nullable": true,
|
||||
"description": "The distance to the far clipping plane.",
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
},
|
||||
"z_near": {
|
||||
"nullable": true,
|
||||
"description": "The distance to the near clipping plane.",
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
@ -19019,12 +19188,9 @@
|
||||
},
|
||||
"required": [
|
||||
"center",
|
||||
"fov_y",
|
||||
"type",
|
||||
"up",
|
||||
"vantage",
|
||||
"z_far",
|
||||
"z_near"
|
||||
"vantage"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -19048,79 +19214,6 @@
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Enable sketch mode, where users can sketch 2D geometry. Users choose a plane to sketch on.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"animated": {
|
||||
"description": "Should we animate or snap for the camera transition?",
|
||||
"type": "boolean"
|
||||
},
|
||||
"distance_to_plane": {
|
||||
"description": "How far to the sketching plane?",
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
},
|
||||
"origin": {
|
||||
"description": "What's the origin of the sketching plane?",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Point3d"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ortho": {
|
||||
"description": "Should the camera use orthographic projection? In other words, should an object's size in the rendered image stay constant regardless of its distance from the camera.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"default_camera_enable_sketch_mode"
|
||||
]
|
||||
},
|
||||
"x_axis": {
|
||||
"description": "Which 3D axis of the scene should be the X axis of the sketching plane?",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Point3d"
|
||||
}
|
||||
]
|
||||
},
|
||||
"y_axis": {
|
||||
"description": "Which 3D axis of the scene should be the Y axis of the sketching plane?",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Point3d"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"animated",
|
||||
"distance_to_plane",
|
||||
"origin",
|
||||
"ortho",
|
||||
"type",
|
||||
"x_axis",
|
||||
"y_axis"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Disable sketch mode, from the default camera.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"default_camera_disable_sketch_mode"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Export the scene to a file.",
|
||||
"type": "object",
|
||||
@ -19281,6 +19374,35 @@
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Create a linear pattern using this entity.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"entity_id": {
|
||||
"description": "ID of the entity being copied.",
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"transform": {
|
||||
"description": "How to transform each repeated solid. The total number of repetitions equals the size of this list.",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/LinearTransform"
|
||||
}
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"entity_linear_pattern_transform"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"entity_id",
|
||||
"transform",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Create a linear pattern using this entity.",
|
||||
"type": "object",
|
||||
@ -20069,6 +20191,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",
|
||||
@ -20161,6 +20292,27 @@
|
||||
"uv"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Obtains the surface \"center of mass\"",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"object_id": {
|
||||
"description": "Which face is being queried.",
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"face_get_center"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"object_id",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Determines the gradient (dFdu, dFdv) + normal vector on a brep face evaluated by parameters u,v",
|
||||
"type": "object",
|
||||
@ -20446,46 +20598,6 @@
|
||||
"window"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Enable sketch mode on the given plane. If you want to sketch on a face, use `enable_sketch_mode` instead.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"animated": {
|
||||
"description": "Animate the transition to sketch mode.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"disable_camera_with_plane": {
|
||||
"nullable": true,
|
||||
"description": "Disable the camera entirely for sketch mode and sketch on a plane (this would be the normal of that plane).",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Point3d"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ortho": {
|
||||
"description": "Use an orthographic camera.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"plane_id": {
|
||||
"description": "Sketch on this plane.",
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"sketch_mode_enable"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"animated",
|
||||
"ortho",
|
||||
"plane_id",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Disable sketch mode. If you are sketching on a face, be sure to not disable sketch mode until you have extruded. Otherwise, your object will not be fused with the face.",
|
||||
"type": "object",
|
||||
@ -20576,6 +20688,15 @@
|
||||
"description": "Should the camera use orthographic projection? In other words, should an object's size in the rendered image stay constant regardless of its distance from the camera.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"planar_normal": {
|
||||
"nullable": true,
|
||||
"description": "If provided, ensures that the normal of the sketch plane must be aligned with this supplied normal (otherwise the camera position will be used to infer the normal to point towards the viewer)",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Point3d"
|
||||
}
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
@ -21405,6 +21526,27 @@
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Fit the view to the scene with an isometric view.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"padding": {
|
||||
"description": "How much to pad the view frame by.",
|
||||
"default": 0.0,
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"view_isometric"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Get a concise description of all of an extrusion's faces.",
|
||||
"type": "object",
|
||||
@ -21733,6 +21875,25 @@
|
||||
"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",
|
||||
"type": "object",
|
||||
@ -21809,6 +21970,44 @@
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "The response to the 'ZoomToFit' endpoint",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/components/schemas/ZoomToFit"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"zoom_to_fit"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "The response to the 'ViewIsometric' endpoint",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/components/schemas/ViewIsometric"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"view_isometric"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "The response to the 'GetNumObjects' endpoint",
|
||||
"type": "object",
|
||||
@ -22189,6 +22388,25 @@
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "The response to the 'FaceGetCenter' endpoint",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/components/schemas/FaceGetCenter"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"face_get_center"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "The response to the 'FaceGetGradient' endpoint",
|
||||
"type": "object",
|
||||
@ -22398,6 +22616,25 @@
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "The response to the 'EntityLinearPatternTransform' endpoint",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"$ref": "#/components/schemas/EntityLinearPatternTransform"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"entity_linear_pattern_transform"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"data",
|
||||
"type"
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "The response to the 'EntityLinearPattern' endpoint",
|
||||
"type": "object",
|
||||
@ -23374,7 +23611,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "A circular arc segment.",
|
||||
"description": "A circular arc segment. Arcs can be drawn clockwise when start > end.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"center": {
|
||||
@ -23481,7 +23718,7 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"offset": {
|
||||
"description": "Offset of the arc.",
|
||||
"description": "Offset of the arc. Negative values will arc clockwise.",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/Angle"
|
||||
@ -23510,7 +23747,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Adds a tangent arc from current pen position to the new position.",
|
||||
"description": "Adds a tangent arc from current pen position to the new position. Arcs will choose a clockwise or counter-clockwise direction based on the arc end position.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"angle_snap_increment": {
|
||||
@ -23810,6 +24047,34 @@
|
||||
"z"
|
||||
]
|
||||
},
|
||||
"Point4d": {
|
||||
"description": "A point in homogeneous (4D) space",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"w": {
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
},
|
||||
"x": {
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
},
|
||||
"y": {
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
},
|
||||
"z": {
|
||||
"type": "number",
|
||||
"format": "float"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"w",
|
||||
"x",
|
||||
"y",
|
||||
"z"
|
||||
]
|
||||
},
|
||||
"Pong": {
|
||||
"description": "The response from the `/ping` endpoint.",
|
||||
"type": "object",
|
||||
@ -27176,6 +27441,23 @@
|
||||
"updated_at"
|
||||
]
|
||||
},
|
||||
"ViewIsometric": {
|
||||
"description": "The response from the `ViewIsometric` command.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"settings": {
|
||||
"description": "Camera settings",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/CameraSettings"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"settings"
|
||||
]
|
||||
},
|
||||
"Volume": {
|
||||
"description": "The volume response.",
|
||||
"type": "object",
|
||||
@ -27563,6 +27845,23 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"ZoomToFit": {
|
||||
"description": "The response from the `ZoomToFit` command.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"settings": {
|
||||
"description": "Camera settings",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/CameraSettings"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"settings"
|
||||
]
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
|
Reference in New Issue
Block a user