Skip to content

Commit

Permalink
YOYO NEW API SPEC!
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 12, 2023
1 parent 43cc9d1 commit 925bbc2
Showing 1 changed file with 74 additions and 4 deletions.
78 changes: 74 additions & 4 deletions spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -10334,6 +10334,26 @@
"entity_id"
]
},
"EntityGetDistance": {
"description": "The response from the `EntitiesGetDistance` command.",
"type": "object",
"properties": {
"max_distance": {
"description": "The maximum distance between the input entities.",
"type": "number",
"format": "double"
},
"min_distance": {
"description": "The minimum distance between the input entities.",
"type": "number",
"format": "double"
}
},
"required": [
"max_distance",
"min_distance"
]
},
"EntityGetNumChildren": {
"description": "The response from the `EntityGetNumChildren` command.",
"type": "object",
Expand Down Expand Up @@ -11613,7 +11633,7 @@
]
},
"ImportFile": {
"description": "File to import into the current model",
"description": "File to import into the current model If you are sending binary data for a file, be sure to send the WebSocketRequest as binary/bson, not text/json.",
"type": "object",
"properties": {
"data": {
Expand Down Expand Up @@ -12843,7 +12863,7 @@
]
},
"source_unit": {
"description": "Select the unit interpretation of exported objects.\n\nThis is not the same as the export units. Setting export units is part of the format options.",
"description": "Select the unit interpretation of exported objects.",
"allOf": [
{
"$ref": "#/components/schemas/UnitLength"
Expand Down Expand Up @@ -14492,6 +14512,37 @@
"object_id",
"type"
]
},
{
"description": "Sketch on some entity (e.g. a plane, a face)",
"type": "object",
"properties": {
"animated": {
"description": "Should we animate or snap for the camera transition?",
"type": "boolean"
},
"entity_id": {
"description": "Which entity to sketch on.",
"type": "string",
"format": "uuid"
},
"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": [
"enable_sketch_mode"
]
}
},
"required": [
"animated",
"entity_id",
"ortho",
"type"
]
}
]
},
Expand Down Expand Up @@ -14818,6 +14869,25 @@
"type"
]
},
{
"description": "The response from the `EntityGetDistance` command.",
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/EntityGetDistance"
},
"type": {
"type": "string",
"enum": [
"entity_get_distance"
]
}
},
"required": [
"data",
"type"
]
},
{
"description": "The response from the `Solid3dGetAllEdgeFaces` command.",
"type": "object",
Expand Down Expand Up @@ -15463,7 +15533,7 @@
]
},
{
"description": "glTF 2.0. We refer to this as glTF since that is how our customers refer to it, although by default it will be in binary format and thus technically (glb). If you prefer ascii output, you can set that option for the export.",
"description": "glTF 2.0. We refer to this as glTF since that is how our customers refer to it, although by default it will be in binary format and thus technically (glb). If you prefer ASCII output, you can set that option for the export.",
"type": "object",
"properties": {
"presentation": {
Expand Down Expand Up @@ -16172,7 +16242,7 @@
]
},
"RawFile": {
"description": "A raw file with unencoded contents to be passed over binary websockets.",
"description": "A raw file with unencoded contents to be passed over binary websockets. When raw files come back for exports it is sent as binary/bson, not text/json.",
"type": "object",
"properties": {
"contents": {
Expand Down

0 comments on commit 925bbc2

Please sign in to comment.