Update api spec (#221)

* 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-05-19 22:16:13 -07:00
committed by GitHub
parent ca84069e9a
commit d31d9507d2
5 changed files with 919 additions and 861 deletions

File diff suppressed because it is too large Load Diff

View File

@ -180,6 +180,7 @@ from .plane_intersect_and_project import PlaneIntersectAndProject
from .ply_storage import PlyStorage from .ply_storage import PlyStorage
from .point2d import Point2d from .point2d import Point2d
from .point3d import Point3d from .point3d import Point3d
from .point4d import Point4d
from .pong import Pong from .pong import Pong
from .post_effect_type import PostEffectType from .post_effect_type import PostEffectType
from .privacy_settings import PrivacySettings from .privacy_settings import PrivacySettings

View File

@ -3,6 +3,7 @@ from typing import Optional
from pydantic import BaseModel, ConfigDict from pydantic import BaseModel, ConfigDict
from ..models.point3d import Point3d from ..models.point3d import Point3d
from ..models.point4d import Point4d
class CameraSettings(BaseModel): class CameraSettings(BaseModel):
@ -12,6 +13,8 @@ class CameraSettings(BaseModel):
fov_y: Optional[float] = None fov_y: Optional[float] = None
orientation: Point4d
ortho: bool ortho: bool
ortho_scale: Optional[float] = None ortho_scale: Optional[float] = None

View 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=())

View File

@ -14431,6 +14431,14 @@
"type": "number", "type": "number",
"format": "float" "format": "float"
}, },
"orientation": {
"description": "The Camera's orientation (in the form of a quaternion)",
"allOf": [
{
"$ref": "#/components/schemas/Point4d"
}
]
},
"ortho": { "ortho": {
"description": "Whether or not the camera is in ortho mode", "description": "Whether or not the camera is in ortho mode",
"type": "boolean" "type": "boolean"
@ -14460,6 +14468,7 @@
}, },
"required": [ "required": [
"center", "center",
"orientation",
"ortho", "ortho",
"pos", "pos",
"up" "up"
@ -23798,6 +23807,34 @@
"z" "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": { "Pong": {
"description": "The response from the `/ping` endpoint.", "description": "The response from the `/ping` endpoint.",
"type": "object", "type": "object",