@ -1,4 +1,6 @@
|
|||||||
from typing import Any, Dict, Optional, Union, List
|
from typing import Any, Dict, Optional, Union, List
|
||||||
|
import json
|
||||||
|
import bson
|
||||||
|
|
||||||
from websockets.sync.client import connect as ws_connect
|
from websockets.sync.client import connect as ws_connect
|
||||||
from websockets.client import connect as ws_connect_async
|
from websockets.client import connect as ws_connect_async
|
||||||
@ -16,26 +18,37 @@ from ...types import Response
|
|||||||
|
|
||||||
def _get_kwargs(
|
def _get_kwargs(
|
||||||
{% for arg in args %}
|
{% for arg in args %}
|
||||||
|
{% if arg.in_query %}
|
||||||
{% if arg.is_optional == False %}
|
{% if arg.is_optional == False %}
|
||||||
{{arg.name}}: {{arg.type}},
|
{{arg.name}}: {{arg.type}},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
{% for arg in args %}
|
{% for arg in args %}
|
||||||
|
{% if arg.in_query %}
|
||||||
{% if arg.is_optional %}
|
{% if arg.is_optional %}
|
||||||
{{arg.name}}: {{arg.type}},
|
{{arg.name}}: {{arg.type}},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
) -> Dict[str, Any]:
|
) -> Dict[str, Any]:
|
||||||
url = "{{url_template}}".format(client.base_url{% for arg in args %}{% if arg.in_url %}, {{arg.name}}={{arg.name}}{% endif %}{% endfor %}) # noqa: E501
|
url = "{{url_template}}".format(client.base_url{% for arg in args %}{% if arg.in_url %}, {{arg.name}}={{arg.name}}{% endif %}{% endfor %}) # noqa: E501
|
||||||
{% for arg in args %}
|
{% for arg in args %}
|
||||||
{% if arg.in_query %}
|
{% if arg.in_query %}
|
||||||
if {{arg.name}} is not None:
|
if {{arg.name}} is not None:
|
||||||
|
{% if arg.type == "bool" %}
|
||||||
|
if "?" in url:
|
||||||
|
url = url + "&{{arg.name}}=" + str({{arg.name}}).lower()
|
||||||
|
else:
|
||||||
|
url = url + "?{{arg.name}}=" + str({{arg.name}}).lower()
|
||||||
|
{% else %}
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&{{arg.name}}=" + str({{arg.name}})
|
url = url + "&{{arg.name}}=" + str({{arg.name}})
|
||||||
else:
|
else:
|
||||||
url = url + "?{{arg.name}}=" + str({{arg.name}})
|
url = url + "?{{arg.name}}=" + str({{arg.name}})
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
@ -48,29 +61,34 @@ def _get_kwargs(
|
|||||||
"headers": headers,
|
"headers": headers,
|
||||||
"cookies": cookies,
|
"cookies": cookies,
|
||||||
"timeout": client.get_timeout(),
|
"timeout": client.get_timeout(),
|
||||||
{% if has_request_body %}"content": body,{% endif %}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def sync(
|
def sync(
|
||||||
{% for arg in args %}
|
{% for arg in args %}
|
||||||
|
{% if arg.in_query %}
|
||||||
{% if arg.is_optional == False %}
|
{% if arg.is_optional == False %}
|
||||||
{{arg.name}}: {{arg.type}},
|
{{arg.name}}: {{arg.type}},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
{% for arg in args %}
|
{% for arg in args %}
|
||||||
|
{% if arg.in_query %}
|
||||||
{% if arg.is_optional %}
|
{% if arg.is_optional %}
|
||||||
{{arg.name}}: {{arg.type}},
|
{{arg.name}}: {{arg.type}},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
) -> ClientConnection:
|
) -> ClientConnection:
|
||||||
{%if docs%}"""{{docs}}""" # noqa: E501{% endif %}
|
{%if docs%}"""{{docs}}""" # noqa: E501{% endif %}
|
||||||
|
|
||||||
kwargs = _get_kwargs(
|
kwargs = _get_kwargs(
|
||||||
{% for arg in args %}
|
{% for arg in args %}
|
||||||
|
{% if arg.in_query %}
|
||||||
{{arg.name}}={{arg.name}},
|
{{arg.name}}={{arg.name}},
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
client=client,
|
client=client,
|
||||||
)
|
)
|
||||||
@ -85,23 +103,29 @@ def sync(
|
|||||||
|
|
||||||
async def asyncio(
|
async def asyncio(
|
||||||
{% for arg in args %}
|
{% for arg in args %}
|
||||||
|
{% if arg.in_query %}
|
||||||
{% if arg.is_optional == False %}
|
{% if arg.is_optional == False %}
|
||||||
{{arg.name}}: {{arg.type}},
|
{{arg.name}}: {{arg.type}},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
{% for arg in args %}
|
{% for arg in args %}
|
||||||
|
{% if arg.in_query %}
|
||||||
{% if arg.is_optional %}
|
{% if arg.is_optional %}
|
||||||
{{arg.name}}: {{arg.type}},
|
{{arg.name}}: {{arg.type}},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
) -> WebSocketClientProtocol:
|
) -> WebSocketClientProtocol:
|
||||||
{%if docs%}"""{{docs}}""" # noqa: E501{% endif %}
|
{%if docs%}"""{{docs}}""" # noqa: E501{% endif %}
|
||||||
|
|
||||||
kwargs = _get_kwargs(
|
kwargs = _get_kwargs(
|
||||||
{% for arg in args %}
|
{% for arg in args %}
|
||||||
|
{% if arg.in_query %}
|
||||||
{{arg.name}}={{arg.name}},
|
{{arg.name}}={{arg.name}},
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
client=client,
|
client=client,
|
||||||
)
|
)
|
||||||
@ -111,3 +135,48 @@ async def asyncio(
|
|||||||
|
|
||||||
# Return an error if we got here.
|
# Return an error if we got here.
|
||||||
return Error(message="An error occurred while connecting to the websocket.")
|
return Error(message="An error occurred while connecting to the websocket.")
|
||||||
|
|
||||||
|
{% if has_request_body %}
|
||||||
|
class WebSocket:
|
||||||
|
"""A websocket connection to the API endpoint."""
|
||||||
|
ws: ClientConnection
|
||||||
|
|
||||||
|
def __init__(self,
|
||||||
|
{% for arg in args %}
|
||||||
|
{% if arg.in_query %}
|
||||||
|
{% if arg.is_optional == False %}
|
||||||
|
{{arg.name}}: {{arg.type}},
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
client: Client,
|
||||||
|
{% for arg in args %}
|
||||||
|
{% if arg.in_query %}
|
||||||
|
{% if arg.is_optional %}
|
||||||
|
{{arg.name}}: {{arg.type}},
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
):
|
||||||
|
self.ws = sync(
|
||||||
|
{% for arg in args %}
|
||||||
|
{% if arg.in_query %}
|
||||||
|
{{arg.name}},
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
client=client,
|
||||||
|
)
|
||||||
|
|
||||||
|
def send(self, data:{% for arg in args %}{%if arg.name == "body" %}{{arg.type}}{% endif %}{% endfor %}):
|
||||||
|
"""Send data to the websocket."""
|
||||||
|
self.ws.send(json.dumps(data.to_dict()))
|
||||||
|
|
||||||
|
def send_binary(self, data:{% for arg in args %}{%if arg.name == "body" %}{{arg.type}}{% endif %}{% endfor %}):
|
||||||
|
"""Send data as bson to the websocket."""
|
||||||
|
self.ws.send(bson.BSON.encode(data.to_dict()))
|
||||||
|
|
||||||
|
def recv(self) -> {{response_type}}:
|
||||||
|
"""Receive data from the websocket."""
|
||||||
|
message = self.ws.recv()
|
||||||
|
return {{response_type}}.from_dict(json.loads(message))
|
||||||
|
{%endif%}
|
||||||
|
@ -28,10 +28,17 @@ def _get_kwargs(
|
|||||||
{% for arg in args %}
|
{% for arg in args %}
|
||||||
{% if arg.in_query %}
|
{% if arg.in_query %}
|
||||||
if {{arg.name}} is not None:
|
if {{arg.name}} is not None:
|
||||||
|
{% if arg.type == "bool" %}
|
||||||
|
if "?" in url:
|
||||||
|
url = url + "&{{arg.name}}=" + str({{arg.name}}).lower()
|
||||||
|
else:
|
||||||
|
url = url + "?{{arg.name}}=" + str({{arg.name}}).lower()
|
||||||
|
{% else %}
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&{{arg.name}}=" + str({{arg.name}})
|
url = url + "&{{arg.name}}=" + str({{arg.name}})
|
||||||
else:
|
else:
|
||||||
url = url + "?{{arg.name}}=" + str({{arg.name}})
|
url = url + "?{{arg.name}}=" + str({{arg.name}})
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
@ -433,7 +433,7 @@ from kittycad.types import Response
|
|||||||
for optional_arg in optional_args:
|
for optional_arg in optional_args:
|
||||||
params_str += optional_arg
|
params_str += optional_arg
|
||||||
|
|
||||||
if request_body_type:
|
if request_body_type and "x-dropshot-websocket" not in endpoint:
|
||||||
if request_body_type == "str":
|
if request_body_type == "str":
|
||||||
params_str += "body='<string>',\n"
|
params_str += "body='<string>',\n"
|
||||||
elif request_body_type == "bytes":
|
elif request_body_type == "bytes":
|
||||||
@ -1391,6 +1391,9 @@ def generateObjectTypeCode(
|
|||||||
|
|
||||||
# Iternate over the properties.
|
# Iternate over the properties.
|
||||||
for property_name in schema["properties"]:
|
for property_name in schema["properties"]:
|
||||||
|
property_schema = schema["properties"][property_name]
|
||||||
|
if "allOf" in property_schema and len(property_schema["allOf"]) == 1:
|
||||||
|
property_schema = property_schema["allOf"][0]
|
||||||
if property_name == tag:
|
if property_name == tag:
|
||||||
f.write(
|
f.write(
|
||||||
"\t\tfield_dict['"
|
"\t\tfield_dict['"
|
||||||
@ -1404,13 +1407,41 @@ def generateObjectTypeCode(
|
|||||||
f.write(
|
f.write(
|
||||||
"\t\tif " + clean_parameter_name(property_name) + " is not UNSET:\n"
|
"\t\tif " + clean_parameter_name(property_name) + " is not UNSET:\n"
|
||||||
)
|
)
|
||||||
f.write(
|
# We only want .to_dict on nested objects.
|
||||||
"\t\t\tfield_dict['"
|
if "$ref" in property_schema:
|
||||||
+ property_name
|
actual_schema = data["components"]["schemas"][
|
||||||
+ "'] = "
|
property_schema["$ref"].replace("#/components/schemas/", "")
|
||||||
+ clean_parameter_name(property_name)
|
]
|
||||||
+ "\n"
|
is_enum = isEnumWithDocsOneOf(actual_schema)
|
||||||
)
|
if (
|
||||||
|
"properties" in actual_schema
|
||||||
|
or "oneOf" in actual_schema
|
||||||
|
or "anyOf" in actual_schema
|
||||||
|
or "allOf" in actual_schema
|
||||||
|
) and not is_enum:
|
||||||
|
f.write(
|
||||||
|
"\t\t\tfield_dict['"
|
||||||
|
+ property_name
|
||||||
|
+ "'] = "
|
||||||
|
+ clean_parameter_name(property_name)
|
||||||
|
+ ".to_dict()\n"
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
f.write(
|
||||||
|
"\t\t\tfield_dict['"
|
||||||
|
+ property_name
|
||||||
|
+ "'] = "
|
||||||
|
+ clean_parameter_name(property_name)
|
||||||
|
+ "\n"
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
f.write(
|
||||||
|
"\t\t\tfield_dict['"
|
||||||
|
+ property_name
|
||||||
|
+ "'] = "
|
||||||
|
+ clean_parameter_name(property_name)
|
||||||
|
+ "\n"
|
||||||
|
)
|
||||||
|
|
||||||
f.write("\n")
|
f.write("\n")
|
||||||
f.write("\t\treturn field_dict\n")
|
f.write("\t\treturn field_dict\n")
|
||||||
|
@ -1,74 +1,66 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/info/x-python",
|
"path": "/paths/~1file~1volume/post/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"client": "# Create a client with your token.\nfrom kittycad.client import Client\n\nclient = Client(token=\"$TOKEN\")\n\n# - OR -\n\n# Create a new client with your token parsed from the environment variable:\n# `KITTYCAD_API_TOKEN`.\nfrom kittycad.client import ClientFromEnv\n\nclient = ClientFromEnv()\n\n# NOTE: The python library additionally implements asyncio, however all the code samples we\n# show below use the sync functions for ease of use and understanding.\n# Check out the library docs at:\n# https://python.api.docs.kittycad.io/_autosummary/kittycad.api.html#module-kittycad.api\n# for more details.",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_volume\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileVolume\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_volume import UnitVolume\nfrom kittycad.types import Response\n\n\ndef example_create_file_volume():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileVolume, Error]] = create_file_volume.sync(\n client=client,\n output_unit=UnitVolume.CM3,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileVolume = result\n print(body)\n",
|
||||||
"install": "pip install kittycad"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_volume.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1auth~1email~1callback/get/x-python",
|
"path": "/paths/~1user~1payment~1invoices/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.hidden import auth_email_callback\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_auth_email_callback():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = auth_email_callback.sync(\n client=client,\n email=\"<string>\",\n token=\"<string>\",\n callback_url=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import list_invoices_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Invoice\nfrom kittycad.types import Response\n\n\ndef example_list_invoices_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[List[Invoice], Error]] = list_invoices_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: List[Invoice] = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.hidden.auth_email_callback.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.list_invoices_for_user.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1unit~1conversion~1torque~1{input_unit}~1{output_unit}/get/x-python",
|
"path": "/paths/~1async~1operations~1{id}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_torque_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitTorqueConversion\nfrom kittycad.models.unit_torque import UnitTorque\nfrom kittycad.types import Response\n\n\ndef example_get_torque_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitTorqueConversion, Error]\n ] = get_torque_unit_conversion.sync(\n client=client,\n input_unit=UnitTorque.NEWTON_METRES,\n output_unit=UnitTorque.NEWTON_METRES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitTorqueConversion = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_async_operation\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import (\n Error,\n FileCenterOfMass,\n FileConversion,\n FileDensity,\n FileMass,\n FileSurfaceArea,\n FileVolume,\n TextToCad,\n)\nfrom kittycad.types import Response\n\n\ndef example_get_async_operation():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[\n FileConversion,\n FileCenterOfMass,\n FileMass,\n FileVolume,\n FileDensity,\n FileSurfaceArea,\n TextToCad,\n Error,\n ]\n ] = get_async_operation.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Union[\n FileConversion,\n FileCenterOfMass,\n FileMass,\n FileVolume,\n FileDensity,\n FileSurfaceArea,\n TextToCad,\n ] = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_torque_unit_conversion.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_async_operation.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1openai~1openapi.json/get/x-python",
|
"path": "/paths/~1user~1text-to-cad/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from kittycad.api.meta import get_openai_schema\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_get_openai_schema():\n # Create our client.\n client = ClientFromEnv()\n\n get_openai_schema.sync(\n client=client,\n )\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import list_text_to_cad_models_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, TextToCadResultsPage\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_text_to_cad_models_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[TextToCadResultsPage, Error]\n ] = list_text_to_cad_models_for_user.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: TextToCadResultsPage = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_openai_schema.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.list_text_to_cad_models_for_user.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1apps~1github~1consent/get/x-python",
|
"path": "/paths/~1users/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_consent\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AppClientInfo, Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_consent():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AppClientInfo, Error]] = apps_github_consent.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AppClientInfo = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import list_users\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UserResultsPage\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_users():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[UserResultsPage, Error]] = list_users.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UserResultsPage = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_consent.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.list_users.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1api-calls/get/x-python",
|
"path": "/paths/~1users~1{id}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import user_list_api_calls\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPriceResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_user_list_api_calls():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiCallWithPriceResultsPage, Error]\n ] = user_list_api_calls.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPriceResultsPage = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, User\nfrom kittycad.types import Response\n\n\ndef example_get_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[User, Error]] = get_user.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: User = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.user_list_api_calls.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1_meta~1info/get/x-python",
|
"path": "/paths/~1.well-known~1ai-plugin.json/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import get_metadata\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Metadata\nfrom kittycad.types import Response\n\n\ndef example_get_metadata():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Metadata, Error]] = get_metadata.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Metadata = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import get_ai_plugin_manifest\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AiPluginManifest, Error\nfrom kittycad.types import Response\n\n\ndef example_get_ai_plugin_manifest():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[AiPluginManifest, Error]\n ] = get_ai_plugin_manifest.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AiPluginManifest = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_metadata.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_ai_plugin_manifest.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1/get/x-python",
|
"path": "/paths/~1user~1payment~1methods/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from kittycad.api.meta import get_schema\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_get_schema():\n # Create our client.\n client = ClientFromEnv()\n\n get_schema.sync(\n client=client,\n )\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import list_payment_methods_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, PaymentMethod\nfrom kittycad.types import Response\n\n\ndef example_list_payment_methods_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[List[PaymentMethod], Error]\n ] = list_payment_methods_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: List[PaymentMethod] = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_schema.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.list_payment_methods_for_user.html"
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1area~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_area_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitAreaConversion\nfrom kittycad.models.unit_area import UnitArea\nfrom kittycad.types import Response\n\n\ndef example_get_area_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitAreaConversion, Error]\n ] = get_area_unit_conversion.sync(\n client=client,\n input_unit=UnitArea.CM2,\n output_unit=UnitArea.CM2,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitAreaConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_area_unit_conversion.html"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -97,66 +89,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1api-calls~1{id}/get/x-python",
|
"path": "/paths/~1unit~1conversion~1pressure~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_api_call_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPrice, Error\nfrom kittycad.types import Response\n\n\ndef example_get_api_call_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiCallWithPrice, Error]] = get_api_call_for_user.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPrice = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_pressure_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitPressureConversion\nfrom kittycad.models.unit_pressure import UnitPressure\nfrom kittycad.types import Response\n\n\ndef example_get_pressure_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitPressureConversion, Error]\n ] = get_pressure_unit_conversion.sync(\n client=client,\n input_unit=UnitPressure.ATMOSPHERES,\n output_unit=UnitPressure.ATMOSPHERES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitPressureConversion = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_api_call_for_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_pressure_unit_conversion.html"
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1users-extended/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import list_users_extended\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ExtendedUserResultsPage\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_users_extended():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ExtendedUserResultsPage, Error]\n ] = list_users_extended.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ExtendedUserResultsPage = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.list_users_extended.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1file~1center-of-mass/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_center_of_mass\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileCenterOfMass\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_length import UnitLength\nfrom kittycad.types import Response\n\n\ndef example_create_file_center_of_mass():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[FileCenterOfMass, Error]\n ] = create_file_center_of_mass.sync(\n client=client,\n output_unit=UnitLength.CM,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileCenterOfMass = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_center_of_mass.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1ai-prompts/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import list_ai_prompts\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AiPromptResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_ai_prompts():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AiPromptResultsPage, Error]] = list_ai_prompts.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AiPromptResultsPage = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.list_ai_prompts.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1mass~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_mass_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitMassConversion\nfrom kittycad.models.unit_mass import UnitMass\nfrom kittycad.types import Response\n\n\ndef example_get_mass_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitMassConversion, Error]\n ] = get_mass_unit_conversion.sync(\n client=client,\n input_unit=UnitMass.G,\n output_unit=UnitMass.G,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitMassConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_mass_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1api-calls/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import list_api_calls\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPriceResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_api_calls():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiCallWithPriceResultsPage, Error]\n ] = list_api_calls.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPriceResultsPage = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_api_calls.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1async~1operations~1{id}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_async_operation\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import (\n Error,\n FileCenterOfMass,\n FileConversion,\n FileDensity,\n FileMass,\n FileSurfaceArea,\n FileVolume,\n TextToCad,\n)\nfrom kittycad.types import Response\n\n\ndef example_get_async_operation():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[\n FileConversion,\n FileCenterOfMass,\n FileMass,\n FileVolume,\n FileDensity,\n FileSurfaceArea,\n TextToCad,\n Error,\n ]\n ] = get_async_operation.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Union[\n FileConversion,\n FileCenterOfMass,\n FileMass,\n FileVolume,\n FileDensity,\n FileSurfaceArea,\n TextToCad,\n ] = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_async_operation.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1frequency~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_frequency_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitFrequencyConversion\nfrom kittycad.models.unit_frequency import UnitFrequency\nfrom kittycad.types import Response\n\n\ndef example_get_frequency_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitFrequencyConversion, Error]\n ] = get_frequency_unit_conversion.sync(\n client=client,\n input_unit=UnitFrequency.GIGAHERTZ,\n output_unit=UnitFrequency.GIGAHERTZ,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitFrequencyConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_frequency_unit_conversion.html"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -167,142 +103,6 @@
|
|||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.hidden.logout.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.hidden.logout.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1ping/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import ping\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Pong\nfrom kittycad.types import Response\n\n\ndef example_ping():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Pong, Error]] = ping.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Pong = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.ping.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1payment~1balance/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import get_payment_balance_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import CustomerBalance, Error\nfrom kittycad.types import Response\n\n\ndef example_get_payment_balance_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[CustomerBalance, Error]\n ] = get_payment_balance_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: CustomerBalance = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.get_payment_balance_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1text-to-cad~1{id}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import get_text_to_cad_model_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, TextToCad\nfrom kittycad.types import Response\n\n\ndef example_get_text_to_cad_model_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[TextToCad, Error]\n ] = get_text_to_cad_model_for_user.sync(\n client=client,\n id=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: TextToCad = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.get_text_to_cad_model_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1text-to-cad~1{id}/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import create_text_to_cad_model_feedback\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.models.ai_feedback import AiFeedback\nfrom kittycad.types import Response\n\n\ndef example_create_text_to_cad_model_feedback():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = create_text_to_cad_model_feedback.sync(\n client=client,\n id=\"<uuid>\",\n feedback=AiFeedback.THUMBS_UP,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_text_to_cad_model_feedback.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1ai~1text-to-cad~1{output_format}/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import create_text_to_cad\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, TextToCad\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.models.text_to_cad_create_body import TextToCadCreateBody\nfrom kittycad.types import Response\n\n\ndef example_create_text_to_cad():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[TextToCad, Error]] = create_text_to_cad.sync(\n client=client,\n output_format=FileExportFormat.FBX,\n body=TextToCadCreateBody(\n prompt=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: TextToCad = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_text_to_cad.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1power~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_power_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitPowerConversion\nfrom kittycad.models.unit_power import UnitPower\nfrom kittycad.types import Response\n\n\ndef example_get_power_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitPowerConversion, Error]\n ] = get_power_unit_conversion.sync(\n client=client,\n input_unit=UnitPower.BTU_PER_MINUTE,\n output_unit=UnitPower.BTU_PER_MINUTE,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitPowerConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_power_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1payment~1tax/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import validate_customer_tax_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_validate_customer_tax_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = validate_customer_tax_information_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.validate_customer_tax_information_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1users~1{id}~1api-calls/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import list_api_calls_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPriceResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_api_calls_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiCallWithPriceResultsPage, Error]\n ] = list_api_calls_for_user.sync(\n client=client,\n id=\"<string>\",\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPriceResultsPage = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_api_calls_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1length~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_length_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitLengthConversion\nfrom kittycad.models.unit_length import UnitLength\nfrom kittycad.types import Response\n\n\ndef example_get_length_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitLengthConversion, Error]\n ] = get_length_unit_conversion.sync(\n client=client,\n input_unit=UnitLength.CM,\n output_unit=UnitLength.CM,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitLengthConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_length_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1temperature~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_temperature_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitTemperatureConversion\nfrom kittycad.models.unit_temperature import UnitTemperature\nfrom kittycad.types import Response\n\n\ndef example_get_temperature_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitTemperatureConversion, Error]\n ] = get_temperature_unit_conversion.sync(\n client=client,\n input_unit=UnitTemperature.CELSIUS,\n output_unit=UnitTemperature.CELSIUS,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitTemperatureConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_temperature_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1payment~1intent/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import create_payment_intent_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, PaymentIntent\nfrom kittycad.types import Response\n\n\ndef example_create_payment_intent_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[PaymentIntent, Error]\n ] = create_payment_intent_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: PaymentIntent = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.create_payment_intent_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1payment~1invoices/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import list_invoices_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Invoice\nfrom kittycad.types import Response\n\n\ndef example_list_invoices_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[List[Invoice], Error]] = list_invoices_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: List[Invoice] = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.list_invoices_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1file~1execute~1{lang}/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.executor import create_file_execution\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import CodeOutput, Error\nfrom kittycad.models.code_language import CodeLanguage\nfrom kittycad.types import Response\n\n\ndef example_create_file_execution():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[CodeOutput, Error]] = create_file_execution.sync(\n client=client,\n lang=CodeLanguage.GO,\n output=None, # Optional[str]\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: CodeOutput = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.executor.create_file_execution.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1pressure~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_pressure_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitPressureConversion\nfrom kittycad.models.unit_pressure import UnitPressure\nfrom kittycad.types import Response\n\n\ndef example_get_pressure_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitPressureConversion, Error]\n ] = get_pressure_unit_conversion.sync(\n client=client,\n input_unit=UnitPressure.ATMOSPHERES,\n output_unit=UnitPressure.ATMOSPHERES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitPressureConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_pressure_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1front-hash/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from kittycad.api.users import get_user_front_hash_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_get_user_front_hash_self():\n # Create our client.\n client = ClientFromEnv()\n\n get_user_front_hash_self.sync(\n client=client,\n )\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_front_hash_self.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1volume~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_volume_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitVolumeConversion\nfrom kittycad.models.unit_volume import UnitVolume\nfrom kittycad.types import Response\n\n\ndef example_get_volume_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitVolumeConversion, Error]\n ] = get_volume_unit_conversion.sync(\n client=client,\n input_unit=UnitVolume.CM3,\n output_unit=UnitVolume.CM3,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitVolumeConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_volume_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1file~1density/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_density\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileDensity\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_density import UnitDensity\nfrom kittycad.models.unit_mass import UnitMass\nfrom kittycad.types import Response\n\n\ndef example_create_file_density():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileDensity, Error]] = create_file_density.sync(\n client=client,\n material_mass=3.14,\n material_mass_unit=UnitMass.G,\n output_unit=UnitDensity.LB_FT3,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileDensity = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_density.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1unit~1conversion~1force~1{input_unit}~1{output_unit}/get/x-python",
|
"path": "/paths/~1unit~1conversion~1force~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
@ -311,94 +111,6 @@
|
|||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_force_unit_conversion.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_force_unit_conversion.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1file~1volume/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_volume\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileVolume\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_volume import UnitVolume\nfrom kittycad.types import Response\n\n\ndef example_create_file_volume():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileVolume, Error]] = create_file_volume.sync(\n client=client,\n output_unit=UnitVolume.CM3,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileVolume = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_volume.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1file~1surface-area/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_surface_area\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileSurfaceArea\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_area import UnitArea\nfrom kittycad.types import Response\n\n\ndef example_create_file_surface_area():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[FileSurfaceArea, Error]\n ] = create_file_surface_area.sync(\n client=client,\n output_unit=UnitArea.CM2,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileSurfaceArea = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_surface_area.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1onboarding/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_onboarding_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Onboarding\nfrom kittycad.types import Response\n\n\ndef example_get_user_onboarding_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Onboarding, Error]] = get_user_onboarding_self.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Onboarding = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_onboarding_self.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1internal~1discord~1api-token~1{discord_id}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import internal_get_api_token_for_discord_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiToken, Error\nfrom kittycad.types import Response\n\n\ndef example_internal_get_api_token_for_discord_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiToken, Error]\n ] = internal_get_api_token_for_discord_user.sync(\n client=client,\n discord_id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiToken = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.internal_get_api_token_for_discord_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1api-calls~1{id}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_api_call\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPrice, Error\nfrom kittycad.types import Response\n\n\ndef example_get_api_call():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiCallWithPrice, Error]] = get_api_call.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPrice = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_api_call.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1.well-known~1ai-plugin.json/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import get_ai_plugin_manifest\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AiPluginManifest, Error\nfrom kittycad.types import Response\n\n\ndef example_get_ai_plugin_manifest():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[AiPluginManifest, Error]\n ] = get_ai_plugin_manifest.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AiPluginManifest = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_ai_plugin_manifest.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1api-call-metrics/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_api_call_metrics\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallQueryGroup, Error\nfrom kittycad.models.api_call_query_group_by import ApiCallQueryGroupBy\nfrom kittycad.types import Response\n\n\ndef example_get_api_call_metrics():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[List[ApiCallQueryGroup], Error]\n ] = get_api_call_metrics.sync(\n client=client,\n group_by=ApiCallQueryGroupBy.EMAIL,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: List[ApiCallQueryGroup] = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_api_call_metrics.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1payment/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import get_payment_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Customer, Error\nfrom kittycad.types import Response\n\n\ndef example_get_payment_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[Customer, Error]\n ] = get_payment_information_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Customer = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.get_payment_information_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1payment/delete/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import delete_payment_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_payment_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_payment_information_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.delete_payment_information_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1payment/put/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import update_payment_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Customer, Error\nfrom kittycad.models.billing_info import BillingInfo\nfrom kittycad.types import Response\n\n\ndef example_update_payment_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[Customer, Error]\n ] = update_payment_information_for_user.sync(\n client=client,\n body=BillingInfo(\n name=\"<string>\",\n phone=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Customer = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.update_payment_information_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1payment/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import create_payment_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Customer, Error\nfrom kittycad.models.billing_info import BillingInfo\nfrom kittycad.types import Response\n\n\ndef example_create_payment_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[Customer, Error]\n ] = create_payment_information_for_user.sync(\n client=client,\n body=BillingInfo(\n name=\"<string>\",\n phone=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Customer = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.create_payment_information_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1auth~1email/post/x-python",
|
"path": "/paths/~1auth~1email/post/x-python",
|
||||||
@ -409,74 +121,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1extended/get/x-python",
|
"path": "/paths/~1/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_self_extended\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ExtendedUser\nfrom kittycad.types import Response\n\n\ndef example_get_user_self_extended():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ExtendedUser, Error]] = get_user_self_extended.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ExtendedUser = result\n print(body)\n",
|
"example": "from kittycad.api.meta import get_schema\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_get_schema():\n # Create our client.\n client = ClientFromEnv()\n\n get_schema.sync(\n client=client,\n )\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_self_extended.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_schema.html"
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1payment~1methods/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import list_payment_methods_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, PaymentMethod\nfrom kittycad.types import Response\n\n\ndef example_list_payment_methods_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[List[PaymentMethod], Error]\n ] = list_payment_methods_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: List[PaymentMethod] = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.list_payment_methods_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1users-extended~1{id}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_extended\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ExtendedUser\nfrom kittycad.types import Response\n\n\ndef example_get_user_extended():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ExtendedUser, Error]] = get_user_extended.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ExtendedUser = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_extended.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1apps~1github~1callback/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_callback\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_callback():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = apps_github_callback.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_callback.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1angle~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_angle_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitAngleConversion\nfrom kittycad.models.unit_angle import UnitAngle\nfrom kittycad.types import Response\n\n\ndef example_get_angle_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitAngleConversion, Error]\n ] = get_angle_unit_conversion.sync(\n client=client,\n input_unit=UnitAngle.DEGREES,\n output_unit=UnitAngle.DEGREES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitAngleConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_angle_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1unit~1conversion~1energy~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_energy_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitEnergyConversion\nfrom kittycad.models.unit_energy import UnitEnergy\nfrom kittycad.types import Response\n\n\ndef example_get_energy_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitEnergyConversion, Error]\n ] = get_energy_unit_conversion.sync(\n client=client,\n input_unit=UnitEnergy.BTU,\n output_unit=UnitEnergy.BTU,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitEnergyConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_energy_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1async~1operations/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import list_async_operations\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AsyncApiCallResultsPage, Error\nfrom kittycad.models.api_call_status import ApiCallStatus\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_async_operations():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[AsyncApiCallResultsPage, Error]\n ] = list_async_operations.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n status=ApiCallStatus.QUEUED,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AsyncApiCallResultsPage = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_async_operations.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1file~1conversion~1{src_format}~1{output_format}/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileConversion\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.types import Response\n\n\ndef example_create_file_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileConversion, Error]] = create_file_conversion.sync(\n client=client,\n output_format=FileExportFormat.FBX,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1text-to-cad/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import list_text_to_cad_models_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, TextToCadResultsPage\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_text_to_cad_models_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[TextToCadResultsPage, Error]\n ] = list_text_to_cad_models_for_user.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: TextToCadResultsPage = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.list_text_to_cad_models_for_user.html"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -489,50 +137,18 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1ws~1executor~1term/get/x-python",
|
"path": "/paths/~1unit~1conversion~1length~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from kittycad.api.executor import create_executor_term\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_create_executor_term():\n # Create our client.\n client = ClientFromEnv()\n\n # Connect to the websocket.\n websocket = create_executor_term.sync(\n client=client,\n )\n\n # Send a message.\n websocket.send(\"{}\")\n\n # Get the messages.\n for message in websocket:\n print(message)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_length_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitLengthConversion\nfrom kittycad.models.unit_length import UnitLength\nfrom kittycad.types import Response\n\n\ndef example_get_length_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitLengthConversion, Error]\n ] = get_length_unit_conversion.sync(\n client=client,\n input_unit=UnitLength.CM,\n output_unit=UnitLength.CM,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitLengthConversion = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.executor.create_executor_term.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_length_unit_conversion.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1ws~1modeling~1commands/get/x-python",
|
"path": "/paths/~1file~1density/post/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.modeling import modeling_commands_ws\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, WebSocketResponse\nfrom kittycad.models.rtc_sdp_type import RtcSdpType\nfrom kittycad.models.rtc_session_description import RtcSessionDescription\nfrom kittycad.models.web_socket_request import sdp_offer\nfrom kittycad.types import Response\n\n\ndef example_modeling_commands_ws():\n # Create our client.\n client = ClientFromEnv()\n\n # Connect to the websocket.\n websocket = modeling_commands_ws.sync(\n client=client,\n fps=10,\n unlocked_framerate=False,\n video_res_height=10,\n video_res_width=10,\n webrtc=False,\n body=sdp_offer(\n offer=RtcSessionDescription(\n sdp=\"<string>\",\n type=RtcSdpType.UNSPECIFIED,\n ),\n ),\n )\n\n # Send a message.\n websocket.send(\"{}\")\n\n # Get the messages.\n for message in websocket:\n print(message)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_density\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileDensity\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_density import UnitDensity\nfrom kittycad.models.unit_mass import UnitMass\nfrom kittycad.types import Response\n\n\ndef example_create_file_density():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileDensity, Error]] = create_file_density.sync(\n client=client,\n material_mass=3.14,\n material_mass_unit=UnitMass.G,\n output_unit=UnitDensity.LB_FT3,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileDensity = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.modeling.modeling_commands_ws.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_density.html"
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1apps~1github~1webhook/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_webhook\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_webhook():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = apps_github_webhook.sync(\n client=client,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_webhook.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1users~1{id}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, User\nfrom kittycad.types import Response\n\n\ndef example_get_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[User, Error]] = get_user.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: User = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1api-tokens/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import list_api_tokens_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiTokenResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_api_tokens_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiTokenResultsPage, Error]\n ] = list_api_tokens_for_user.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiTokenResultsPage = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.list_api_tokens_for_user.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~1api-tokens/post/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import create_api_token_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiToken, Error\nfrom kittycad.types import Response\n\n\ndef example_create_api_token_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiToken, Error]] = create_api_token_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiToken = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.create_api_token_for_user.html"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -553,26 +169,106 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1session~1{token}/get/x-python",
|
"path": "/paths/~1apps~1github~1consent/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_session_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Session\nfrom kittycad.types import Response\n\n\ndef example_get_session_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Session, Error]] = get_session_for_user.sync(\n client=client,\n token=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Session = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_consent\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AppClientInfo, Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_consent():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AppClientInfo, Error]] = apps_github_consent.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AppClientInfo = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_session_for_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_consent.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1users/get/x-python",
|
"path": "/paths/~1file~1conversion~1{src_format}~1{output_format}/post/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import list_users\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UserResultsPage\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_users():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[UserResultsPage, Error]] = list_users.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UserResultsPage = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileConversion\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.types import Response\n\n\ndef example_create_file_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileConversion, Error]] = create_file_conversion.sync(\n client=client,\n output_format=FileExportFormat.FBX,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileConversion = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.list_users.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_conversion.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1payment~1methods~1{id}/delete/x-python",
|
"path": "/paths/~1users-extended~1{id}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import delete_payment_method_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_payment_method_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_payment_method_for_user.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_extended\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ExtendedUser\nfrom kittycad.types import Response\n\n\ndef example_get_user_extended():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ExtendedUser, Error]] = get_user_extended.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ExtendedUser = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.delete_payment_method_for_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_extended.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1onboarding/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_onboarding_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Onboarding\nfrom kittycad.types import Response\n\n\ndef example_get_user_onboarding_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Onboarding, Error]] = get_user_onboarding_self.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Onboarding = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_onboarding_self.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1current~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_current_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitCurrentConversion\nfrom kittycad.models.unit_current import UnitCurrent\nfrom kittycad.types import Response\n\n\ndef example_get_current_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitCurrentConversion, Error]\n ] = get_current_unit_conversion.sync(\n client=client,\n input_unit=UnitCurrent.AMPERES,\n output_unit=UnitCurrent.AMPERES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitCurrentConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_current_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1api-calls~1{id}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_api_call\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPrice, Error\nfrom kittycad.types import Response\n\n\ndef example_get_api_call():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiCallWithPrice, Error]] = get_api_call.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPrice = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_api_call.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1payment~1intent/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import create_payment_intent_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, PaymentIntent\nfrom kittycad.types import Response\n\n\ndef example_create_payment_intent_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[PaymentIntent, Error]\n ] = create_payment_intent_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: PaymentIntent = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.create_payment_intent_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1ping/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import ping\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Pong\nfrom kittycad.types import Response\n\n\ndef example_ping():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Pong, Error]] = ping.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Pong = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.ping.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1area~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_area_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitAreaConversion\nfrom kittycad.models.unit_area import UnitArea\nfrom kittycad.types import Response\n\n\ndef example_get_area_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitAreaConversion, Error]\n ] = get_area_unit_conversion.sync(\n client=client,\n input_unit=UnitArea.CM2,\n output_unit=UnitArea.CM2,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitAreaConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_area_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1volume~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_volume_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitVolumeConversion\nfrom kittycad.models.unit_volume import UnitVolume\nfrom kittycad.types import Response\n\n\ndef example_get_volume_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitVolumeConversion, Error]\n ] = get_volume_unit_conversion.sync(\n client=client,\n input_unit=UnitVolume.CM3,\n output_unit=UnitVolume.CM3,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitVolumeConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_volume_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1api-calls/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import user_list_api_calls\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPriceResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_user_list_api_calls():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiCallWithPriceResultsPage, Error]\n ] = user_list_api_calls.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPriceResultsPage = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.user_list_api_calls.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1file~1center-of-mass/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_center_of_mass\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileCenterOfMass\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_length import UnitLength\nfrom kittycad.types import Response\n\n\ndef example_create_file_center_of_mass():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[FileCenterOfMass, Error]\n ] = create_file_center_of_mass.sync(\n client=client,\n output_unit=UnitLength.CM,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileCenterOfMass = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_center_of_mass.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1extended/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_self_extended\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ExtendedUser\nfrom kittycad.types import Response\n\n\ndef example_get_user_self_extended():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ExtendedUser, Error]] = get_user_self_extended.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ExtendedUser = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_self_extended.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -585,10 +281,314 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1unit~1conversion~1current~1{input_unit}~1{output_unit}/get/x-python",
|
"path": "/paths/~1ws~1executor~1term/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_current_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitCurrentConversion\nfrom kittycad.models.unit_current import UnitCurrent\nfrom kittycad.types import Response\n\n\ndef example_get_current_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitCurrentConversion, Error]\n ] = get_current_unit_conversion.sync(\n client=client,\n input_unit=UnitCurrent.AMPERES,\n output_unit=UnitCurrent.AMPERES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitCurrentConversion = result\n print(body)\n",
|
"example": "from kittycad.api.executor import create_executor_term\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_create_executor_term():\n # Create our client.\n client = ClientFromEnv()\n\n # Connect to the websocket.\n websocket = create_executor_term.sync(\n client=client,\n )\n\n # Send a message.\n websocket.send(\"{}\")\n\n # Get the messages.\n for message in websocket:\n print(message)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_current_unit_conversion.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.executor.create_executor_term.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1energy~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_energy_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitEnergyConversion\nfrom kittycad.models.unit_energy import UnitEnergy\nfrom kittycad.types import Response\n\n\ndef example_get_energy_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitEnergyConversion, Error]\n ] = get_energy_unit_conversion.sync(\n client=client,\n input_unit=UnitEnergy.BTU,\n output_unit=UnitEnergy.BTU,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitEnergyConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_energy_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1frequency~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_frequency_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitFrequencyConversion\nfrom kittycad.models.unit_frequency import UnitFrequency\nfrom kittycad.types import Response\n\n\ndef example_get_frequency_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitFrequencyConversion, Error]\n ] = get_frequency_unit_conversion.sync(\n client=client,\n input_unit=UnitFrequency.GIGAHERTZ,\n output_unit=UnitFrequency.GIGAHERTZ,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitFrequencyConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_frequency_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1ai~1text-to-cad~1{output_format}/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import create_text_to_cad\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, TextToCad\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.models.text_to_cad_create_body import TextToCadCreateBody\nfrom kittycad.types import Response\n\n\ndef example_create_text_to_cad():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[TextToCad, Error]] = create_text_to_cad.sync(\n client=client,\n output_format=FileExportFormat.FBX,\n body=TextToCadCreateBody(\n prompt=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: TextToCad = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_text_to_cad.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1torque~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_torque_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitTorqueConversion\nfrom kittycad.models.unit_torque import UnitTorque\nfrom kittycad.types import Response\n\n\ndef example_get_torque_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitTorqueConversion, Error]\n ] = get_torque_unit_conversion.sync(\n client=client,\n input_unit=UnitTorque.NEWTON_METRES,\n output_unit=UnitTorque.NEWTON_METRES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitTorqueConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_torque_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1api-call-metrics/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_api_call_metrics\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallQueryGroup, Error\nfrom kittycad.models.api_call_query_group_by import ApiCallQueryGroupBy\nfrom kittycad.types import Response\n\n\ndef example_get_api_call_metrics():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[List[ApiCallQueryGroup], Error]\n ] = get_api_call_metrics.sync(\n client=client,\n group_by=ApiCallQueryGroupBy.EMAIL,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: List[ApiCallQueryGroup] = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_api_call_metrics.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1api-calls~1{id}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import get_api_call_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPrice, Error\nfrom kittycad.types import Response\n\n\ndef example_get_api_call_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiCallWithPrice, Error]] = get_api_call_for_user.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPrice = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_api_call_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1payment~1methods~1{id}/delete/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import delete_payment_method_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_payment_method_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_payment_method_for_user.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.delete_payment_method_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1payment~1tax/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import validate_customer_tax_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_validate_customer_tax_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = validate_customer_tax_information_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.validate_customer_tax_information_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1api-calls/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import list_api_calls\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPriceResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_api_calls():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiCallWithPriceResultsPage, Error]\n ] = list_api_calls.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPriceResultsPage = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_api_calls.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1file~1execute~1{lang}/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.executor import create_file_execution\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import CodeOutput, Error\nfrom kittycad.models.code_language import CodeLanguage\nfrom kittycad.types import Response\n\n\ndef example_create_file_execution():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[CodeOutput, Error]] = create_file_execution.sync(\n client=client,\n lang=CodeLanguage.GO,\n output=None, # Optional[str]\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: CodeOutput = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.executor.create_file_execution.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1internal~1discord~1api-token~1{discord_id}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import internal_get_api_token_for_discord_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiToken, Error\nfrom kittycad.types import Response\n\n\ndef example_internal_get_api_token_for_discord_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiToken, Error]\n ] = internal_get_api_token_for_discord_user.sync(\n client=client,\n discord_id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiToken = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.internal_get_api_token_for_discord_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1session~1{token}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_session_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Session\nfrom kittycad.types import Response\n\n\ndef example_get_session_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Session, Error]] = get_session_for_user.sync(\n client=client,\n token=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Session = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_session_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1ws~1modeling~1commands/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.modeling import modeling_commands_ws\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, WebSocketResponse\nfrom kittycad.types import Response\n\n\ndef example_modeling_commands_ws():\n # Create our client.\n client = ClientFromEnv()\n\n # Connect to the websocket.\n websocket = modeling_commands_ws.sync(\n client=client,\n fps=10,\n unlocked_framerate=False,\n video_res_height=10,\n video_res_width=10,\n webrtc=False,\n )\n\n # Send a message.\n websocket.send(\"{}\")\n\n # Get the messages.\n for message in websocket:\n print(message)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.modeling.modeling_commands_ws.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1mass~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_mass_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitMassConversion\nfrom kittycad.models.unit_mass import UnitMass\nfrom kittycad.types import Response\n\n\ndef example_get_mass_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitMassConversion, Error]\n ] = get_mass_unit_conversion.sync(\n client=client,\n input_unit=UnitMass.G,\n output_unit=UnitMass.G,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitMassConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_mass_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1file~1surface-area/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_surface_area\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileSurfaceArea\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_area import UnitArea\nfrom kittycad.types import Response\n\n\ndef example_create_file_surface_area():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[FileSurfaceArea, Error]\n ] = create_file_surface_area.sync(\n client=client,\n output_unit=UnitArea.CM2,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileSurfaceArea = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_surface_area.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1angle~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_angle_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitAngleConversion\nfrom kittycad.models.unit_angle import UnitAngle\nfrom kittycad.types import Response\n\n\ndef example_get_angle_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitAngleConversion, Error]\n ] = get_angle_unit_conversion.sync(\n client=client,\n input_unit=UnitAngle.DEGREES,\n output_unit=UnitAngle.DEGREES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitAngleConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_angle_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1users-extended/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import list_users_extended\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ExtendedUserResultsPage\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_users_extended():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ExtendedUserResultsPage, Error]\n ] = list_users_extended.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ExtendedUserResultsPage = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.list_users_extended.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1openai~1openapi.json/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from kittycad.api.meta import get_openai_schema\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_get_openai_schema():\n # Create our client.\n client = ClientFromEnv()\n\n get_openai_schema.sync(\n client=client,\n )\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_openai_schema.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1api-tokens/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import create_api_token_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiToken, Error\nfrom kittycad.types import Response\n\n\ndef example_create_api_token_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiToken, Error]] = create_api_token_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiToken = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.create_api_token_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1api-tokens/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import list_api_tokens_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiTokenResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_api_tokens_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiTokenResultsPage, Error]\n ] = list_api_tokens_for_user.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiTokenResultsPage = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.list_api_tokens_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1payment~1balance/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import get_payment_balance_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import CustomerBalance, Error\nfrom kittycad.types import Response\n\n\ndef example_get_payment_balance_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[CustomerBalance, Error]\n ] = get_payment_balance_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: CustomerBalance = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.get_payment_balance_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1async~1operations/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import list_async_operations\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AsyncApiCallResultsPage, Error\nfrom kittycad.models.api_call_status import ApiCallStatus\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_async_operations():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[AsyncApiCallResultsPage, Error]\n ] = list_async_operations.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n status=ApiCallStatus.QUEUED,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AsyncApiCallResultsPage = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_async_operations.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1temperature~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_temperature_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitTemperatureConversion\nfrom kittycad.models.unit_temperature import UnitTemperature\nfrom kittycad.types import Response\n\n\ndef example_get_temperature_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitTemperatureConversion, Error]\n ] = get_temperature_unit_conversion.sync(\n client=client,\n input_unit=UnitTemperature.CELSIUS,\n output_unit=UnitTemperature.CELSIUS,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitTemperatureConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_temperature_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1apps~1github~1webhook/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_webhook\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_webhook():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = apps_github_webhook.sync(\n client=client,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_webhook.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1front-hash/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from kittycad.api.users import get_user_front_hash_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_get_user_front_hash_self():\n # Create our client.\n client = ClientFromEnv()\n\n get_user_front_hash_self.sync(\n client=client,\n )\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_front_hash_self.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1payment/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import create_payment_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Customer, Error\nfrom kittycad.models.billing_info import BillingInfo\nfrom kittycad.types import Response\n\n\ndef example_create_payment_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[Customer, Error]\n ] = create_payment_information_for_user.sync(\n client=client,\n body=BillingInfo(\n name=\"<string>\",\n phone=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Customer = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.create_payment_information_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1payment/put/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import update_payment_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Customer, Error\nfrom kittycad.models.billing_info import BillingInfo\nfrom kittycad.types import Response\n\n\ndef example_update_payment_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[Customer, Error]\n ] = update_payment_information_for_user.sync(\n client=client,\n body=BillingInfo(\n name=\"<string>\",\n phone=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Customer = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.update_payment_information_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1payment/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import get_payment_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Customer, Error\nfrom kittycad.types import Response\n\n\ndef example_get_payment_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[Customer, Error]\n ] = get_payment_information_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Customer = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.get_payment_information_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1payment/delete/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import delete_payment_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_payment_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_payment_information_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.delete_payment_information_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1_meta~1info/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import get_metadata\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Metadata\nfrom kittycad.types import Response\n\n\ndef example_get_metadata():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Metadata, Error]] = get_metadata.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Metadata = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_metadata.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~1power~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_power_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitPowerConversion\nfrom kittycad.models.unit_power import UnitPower\nfrom kittycad.types import Response\n\n\ndef example_get_power_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitPowerConversion, Error]\n ] = get_power_unit_conversion.sync(\n client=client,\n input_unit=UnitPower.BTU_PER_MINUTE,\n output_unit=UnitPower.BTU_PER_MINUTE,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitPowerConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_power_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1users~1{id}~1api-calls/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_calls import list_api_calls_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiCallWithPriceResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_api_calls_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[ApiCallWithPriceResultsPage, Error]\n ] = list_api_calls_for_user.sync(\n client=client,\n id=\"<string>\",\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ApiCallWithPriceResultsPage = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_api_calls_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1apps~1github~1callback/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_callback\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_callback():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = apps_github_callback.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_callback.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1auth~1email~1callback/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.hidden import auth_email_callback\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_auth_email_callback():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = auth_email_callback.sync(\n client=client,\n email=\"<string>\",\n token=\"<string>\",\n callback_url=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.hidden.auth_email_callback.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1text-to-cad~1{id}/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import create_text_to_cad_model_feedback\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.models.ai_feedback import AiFeedback\nfrom kittycad.types import Response\n\n\ndef example_create_text_to_cad_model_feedback():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = create_text_to_cad_model_feedback.sync(\n client=client,\n id=\"<uuid>\",\n feedback=AiFeedback.THUMBS_UP,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_text_to_cad_model_feedback.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1text-to-cad~1{id}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import get_text_to_cad_model_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, TextToCad\nfrom kittycad.types import Response\n\n\ndef example_get_text_to_cad_model_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[TextToCad, Error]\n ] = get_text_to_cad_model_for_user.sync(\n client=client,\n id=\"<uuid>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: TextToCad = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.get_text_to_cad_model_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1ai-prompts/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import list_ai_prompts\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AiPromptResultsPage, Error\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_ai_prompts():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AiPromptResultsPage, Error]] = list_ai_prompts.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AiPromptResultsPage = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.list_ai_prompts.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/info/x-python",
|
||||||
|
"value": {
|
||||||
|
"client": "# Create a client with your token.\nfrom kittycad.client import Client\n\nclient = Client(token=\"$TOKEN\")\n\n# - OR -\n\n# Create a new client with your token parsed from the environment variable:\n# `KITTYCAD_API_TOKEN`.\nfrom kittycad.client import ClientFromEnv\n\nclient = ClientFromEnv()\n\n# NOTE: The python library additionally implements asyncio, however all the code samples we\n# show below use the sync functions for ease of use and understanding.\n# Check out the library docs at:\n# https://python.api.docs.kittycad.io/_autosummary/kittycad.api.html#module-kittycad.api\n# for more details.",
|
||||||
|
"install": "pip install kittycad"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -1,11 +1,14 @@
|
|||||||
from typing import Any, Dict
|
import json
|
||||||
|
from typing import Any, Dict, Optional
|
||||||
|
|
||||||
|
import bson
|
||||||
from websockets.client import WebSocketClientProtocol, connect as ws_connect_async
|
from websockets.client import WebSocketClientProtocol, connect as ws_connect_async
|
||||||
from websockets.sync.client import ClientConnection, connect as ws_connect
|
from websockets.sync.client import ClientConnection, connect as ws_connect
|
||||||
|
|
||||||
from ...client import Client
|
from ...client import Client
|
||||||
from ...models.error import Error
|
from ...models.error import Error
|
||||||
from ...models.web_socket_request import WebSocketRequest
|
from ...models.web_socket_request import WebSocketRequest
|
||||||
|
from ...models.web_socket_response import WebSocketResponse
|
||||||
|
|
||||||
|
|
||||||
def _get_kwargs(
|
def _get_kwargs(
|
||||||
@ -14,7 +17,6 @@ def _get_kwargs(
|
|||||||
video_res_height: int,
|
video_res_height: int,
|
||||||
video_res_width: int,
|
video_res_width: int,
|
||||||
webrtc: bool,
|
webrtc: bool,
|
||||||
body: WebSocketRequest,
|
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> Dict[str, Any]:
|
) -> Dict[str, Any]:
|
||||||
@ -28,9 +30,9 @@ def _get_kwargs(
|
|||||||
|
|
||||||
if unlocked_framerate is not None:
|
if unlocked_framerate is not None:
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&unlocked_framerate=" + str(unlocked_framerate)
|
url = url + "&unlocked_framerate=" + str(unlocked_framerate).lower()
|
||||||
else:
|
else:
|
||||||
url = url + "?unlocked_framerate=" + str(unlocked_framerate)
|
url = url + "?unlocked_framerate=" + str(unlocked_framerate).lower()
|
||||||
|
|
||||||
if video_res_height is not None:
|
if video_res_height is not None:
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
@ -46,9 +48,9 @@ def _get_kwargs(
|
|||||||
|
|
||||||
if webrtc is not None:
|
if webrtc is not None:
|
||||||
if "?" in url:
|
if "?" in url:
|
||||||
url = url + "&webrtc=" + str(webrtc)
|
url = url + "&webrtc=" + str(webrtc).lower()
|
||||||
else:
|
else:
|
||||||
url = url + "?webrtc=" + str(webrtc)
|
url = url + "?webrtc=" + str(webrtc).lower()
|
||||||
|
|
||||||
headers: Dict[str, Any] = client.get_headers()
|
headers: Dict[str, Any] = client.get_headers()
|
||||||
cookies: Dict[str, Any] = client.get_cookies()
|
cookies: Dict[str, Any] = client.get_cookies()
|
||||||
@ -58,7 +60,6 @@ def _get_kwargs(
|
|||||||
"headers": headers,
|
"headers": headers,
|
||||||
"cookies": cookies,
|
"cookies": cookies,
|
||||||
"timeout": client.get_timeout(),
|
"timeout": client.get_timeout(),
|
||||||
"content": body,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -68,7 +69,6 @@ def sync(
|
|||||||
video_res_height: int,
|
video_res_height: int,
|
||||||
video_res_width: int,
|
video_res_width: int,
|
||||||
webrtc: bool,
|
webrtc: bool,
|
||||||
body: WebSocketRequest,
|
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> ClientConnection:
|
) -> ClientConnection:
|
||||||
@ -80,7 +80,6 @@ def sync(
|
|||||||
video_res_height=video_res_height,
|
video_res_height=video_res_height,
|
||||||
video_res_width=video_res_width,
|
video_res_width=video_res_width,
|
||||||
webrtc=webrtc,
|
webrtc=webrtc,
|
||||||
body=body,
|
|
||||||
client=client,
|
client=client,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -100,7 +99,6 @@ async def asyncio(
|
|||||||
video_res_height: int,
|
video_res_height: int,
|
||||||
video_res_width: int,
|
video_res_width: int,
|
||||||
webrtc: bool,
|
webrtc: bool,
|
||||||
body: WebSocketRequest,
|
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
) -> WebSocketClientProtocol:
|
) -> WebSocketClientProtocol:
|
||||||
@ -112,7 +110,6 @@ async def asyncio(
|
|||||||
video_res_height=video_res_height,
|
video_res_height=video_res_height,
|
||||||
video_res_width=video_res_width,
|
video_res_width=video_res_width,
|
||||||
webrtc=webrtc,
|
webrtc=webrtc,
|
||||||
body=body,
|
|
||||||
client=client,
|
client=client,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -123,3 +120,40 @@ async def asyncio(
|
|||||||
|
|
||||||
# Return an error if we got here.
|
# Return an error if we got here.
|
||||||
return Error(message="An error occurred while connecting to the websocket.")
|
return Error(message="An error occurred while connecting to the websocket.")
|
||||||
|
|
||||||
|
|
||||||
|
class WebSocket:
|
||||||
|
"""A websocket connection to the API endpoint."""
|
||||||
|
|
||||||
|
ws: ClientConnection
|
||||||
|
|
||||||
|
def __init__(
|
||||||
|
self,
|
||||||
|
fps: int,
|
||||||
|
unlocked_framerate: bool,
|
||||||
|
video_res_height: int,
|
||||||
|
video_res_width: int,
|
||||||
|
webrtc: bool,
|
||||||
|
client: Client,
|
||||||
|
):
|
||||||
|
self.ws = sync(
|
||||||
|
fps,
|
||||||
|
unlocked_framerate,
|
||||||
|
video_res_height,
|
||||||
|
video_res_width,
|
||||||
|
webrtc,
|
||||||
|
client=client,
|
||||||
|
)
|
||||||
|
|
||||||
|
def send(self, data: WebSocketRequest):
|
||||||
|
"""Send data to the websocket."""
|
||||||
|
self.ws.send(json.dumps(data.to_dict()))
|
||||||
|
|
||||||
|
def send_binary(self, data: WebSocketRequest):
|
||||||
|
"""Send data as bson to the websocket."""
|
||||||
|
self.ws.send(bson.BSON.encode(data.to_dict()))
|
||||||
|
|
||||||
|
def recv(self) -> Optional[WebSocketResponse]:
|
||||||
|
"""Receive data from the websocket."""
|
||||||
|
message = self.ws.recv()
|
||||||
|
return Optional[WebSocketResponse].from_dict(json.loads(message))
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
|
import json
|
||||||
import os
|
import os
|
||||||
|
import uuid
|
||||||
from typing import Dict, Optional, Union
|
from typing import Dict, Optional, Union
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
@ -6,6 +8,7 @@ import pytest
|
|||||||
from .api.api_tokens import list_api_tokens_for_user
|
from .api.api_tokens import list_api_tokens_for_user
|
||||||
from .api.file import create_file_conversion, create_file_mass, create_file_volume
|
from .api.file import create_file_conversion, create_file_mass, create_file_volume
|
||||||
from .api.meta import ping
|
from .api.meta import ping
|
||||||
|
from .api.modeling import modeling_commands_ws
|
||||||
from .api.users import get_user_self, list_users_extended
|
from .api.users import get_user_self, list_users_extended
|
||||||
from .client import ClientFromEnv
|
from .client import ClientFromEnv
|
||||||
from .models import (
|
from .models import (
|
||||||
@ -20,12 +23,15 @@ from .models import (
|
|||||||
FileImportFormat,
|
FileImportFormat,
|
||||||
FileMass,
|
FileMass,
|
||||||
FileVolume,
|
FileVolume,
|
||||||
|
ModelingCmdId,
|
||||||
Pong,
|
Pong,
|
||||||
UnitDensity,
|
UnitDensity,
|
||||||
UnitMass,
|
UnitMass,
|
||||||
UnitVolume,
|
UnitVolume,
|
||||||
User,
|
User,
|
||||||
)
|
)
|
||||||
|
from .models.modeling_cmd import start_path
|
||||||
|
from .models.web_socket_request import modeling_cmd_req
|
||||||
from .types import Unset
|
from .types import Unset
|
||||||
|
|
||||||
|
|
||||||
@ -283,3 +289,32 @@ def test_list_users():
|
|||||||
assert isinstance(response, ExtendedUserResultsPage)
|
assert isinstance(response, ExtendedUserResultsPage)
|
||||||
|
|
||||||
print(f"ExtendedUserResultsPage: {response}")
|
print(f"ExtendedUserResultsPage: {response}")
|
||||||
|
|
||||||
|
|
||||||
|
def test_ws():
|
||||||
|
# Create our client.
|
||||||
|
client = ClientFromEnv()
|
||||||
|
|
||||||
|
# Connect to the websocket.
|
||||||
|
websocket = modeling_commands_ws.WebSocket(
|
||||||
|
client=client,
|
||||||
|
fps=30,
|
||||||
|
unlocked_framerate=False,
|
||||||
|
video_res_height=480,
|
||||||
|
video_res_width=640,
|
||||||
|
webrtc=False,
|
||||||
|
)
|
||||||
|
|
||||||
|
# Send a message.
|
||||||
|
id = uuid.uuid4()
|
||||||
|
req = modeling_cmd_req(cmd=start_path(), cmd_id=ModelingCmdId(id))
|
||||||
|
j = json.dumps(req.to_dict())
|
||||||
|
print(f"Sending: {j}")
|
||||||
|
websocket.send(req)
|
||||||
|
print("Sent.")
|
||||||
|
|
||||||
|
# Get the messages.
|
||||||
|
while True:
|
||||||
|
message = websocket.recv()
|
||||||
|
print(json.dumps(message))
|
||||||
|
break
|
||||||
|
@ -149,8 +149,6 @@ from kittycad.models.created_at_sort_mode import CreatedAtSortMode
|
|||||||
from kittycad.models.email_authentication_form import EmailAuthenticationForm
|
from kittycad.models.email_authentication_form import EmailAuthenticationForm
|
||||||
from kittycad.models.file_export_format import FileExportFormat
|
from kittycad.models.file_export_format import FileExportFormat
|
||||||
from kittycad.models.file_import_format import FileImportFormat
|
from kittycad.models.file_import_format import FileImportFormat
|
||||||
from kittycad.models.rtc_sdp_type import RtcSdpType
|
|
||||||
from kittycad.models.rtc_session_description import RtcSessionDescription
|
|
||||||
from kittycad.models.text_to_cad_create_body import TextToCadCreateBody
|
from kittycad.models.text_to_cad_create_body import TextToCadCreateBody
|
||||||
from kittycad.models.unit_angle import UnitAngle
|
from kittycad.models.unit_angle import UnitAngle
|
||||||
from kittycad.models.unit_area import UnitArea
|
from kittycad.models.unit_area import UnitArea
|
||||||
@ -167,7 +165,6 @@ from kittycad.models.unit_temperature import UnitTemperature
|
|||||||
from kittycad.models.unit_torque import UnitTorque
|
from kittycad.models.unit_torque import UnitTorque
|
||||||
from kittycad.models.unit_volume import UnitVolume
|
from kittycad.models.unit_volume import UnitVolume
|
||||||
from kittycad.models.update_user import UpdateUser
|
from kittycad.models.update_user import UpdateUser
|
||||||
from kittycad.models.web_socket_request import sdp_offer
|
|
||||||
from kittycad.types import Response
|
from kittycad.types import Response
|
||||||
|
|
||||||
|
|
||||||
@ -3898,12 +3895,6 @@ def test_modeling_commands_ws():
|
|||||||
video_res_height=10,
|
video_res_height=10,
|
||||||
video_res_width=10,
|
video_res_width=10,
|
||||||
webrtc=False,
|
webrtc=False,
|
||||||
body=sdp_offer(
|
|
||||||
offer=RtcSessionDescription(
|
|
||||||
sdp="<string>",
|
|
||||||
type=RtcSdpType.UNSPECIFIED,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Send a message.
|
# Send a message.
|
||||||
@ -3929,12 +3920,6 @@ async def test_modeling_commands_ws_async():
|
|||||||
video_res_height=10,
|
video_res_height=10,
|
||||||
video_res_width=10,
|
video_res_width=10,
|
||||||
webrtc=False,
|
webrtc=False,
|
||||||
body=sdp_offer(
|
|
||||||
offer=RtcSessionDescription(
|
|
||||||
sdp="<string>",
|
|
||||||
type=RtcSdpType.UNSPECIFIED,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Send a message.
|
# Send a message.
|
||||||
|
@ -47,9 +47,9 @@ class AiPluginManifest:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if api is not UNSET:
|
if api is not UNSET:
|
||||||
field_dict["api"] = api
|
field_dict["api"] = api.to_dict()
|
||||||
if auth is not UNSET:
|
if auth is not UNSET:
|
||||||
field_dict["auth"] = auth
|
field_dict["auth"] = auth.to_dict()
|
||||||
if contact_email is not UNSET:
|
if contact_email is not UNSET:
|
||||||
field_dict["contact_email"] = contact_email
|
field_dict["contact_email"] = contact_email
|
||||||
if description_for_human is not UNSET:
|
if description_for_human is not UNSET:
|
||||||
|
@ -38,15 +38,15 @@ class AnnotationOptions:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if color is not UNSET:
|
if color is not UNSET:
|
||||||
field_dict["color"] = color
|
field_dict["color"] = color.to_dict()
|
||||||
if line_ends is not UNSET:
|
if line_ends is not UNSET:
|
||||||
field_dict["line_ends"] = line_ends
|
field_dict["line_ends"] = line_ends.to_dict()
|
||||||
if line_width is not UNSET:
|
if line_width is not UNSET:
|
||||||
field_dict["line_width"] = line_width
|
field_dict["line_width"] = line_width
|
||||||
if position is not UNSET:
|
if position is not UNSET:
|
||||||
field_dict["position"] = position
|
field_dict["position"] = position.to_dict()
|
||||||
if text is not UNSET:
|
if text is not UNSET:
|
||||||
field_dict["text"] = text
|
field_dict["text"] = text.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
|
@ -92,13 +92,13 @@ class file_conversion:
|
|||||||
if output_format is not UNSET:
|
if output_format is not UNSET:
|
||||||
field_dict["output_format"] = output_format
|
field_dict["output_format"] = output_format
|
||||||
if output_format_options is not UNSET:
|
if output_format_options is not UNSET:
|
||||||
field_dict["output_format_options"] = output_format_options
|
field_dict["output_format_options"] = output_format_options.to_dict()
|
||||||
if outputs is not UNSET:
|
if outputs is not UNSET:
|
||||||
field_dict["outputs"] = outputs
|
field_dict["outputs"] = outputs
|
||||||
if src_format is not UNSET:
|
if src_format is not UNSET:
|
||||||
field_dict["src_format"] = src_format
|
field_dict["src_format"] = src_format
|
||||||
if src_format_options is not UNSET:
|
if src_format_options is not UNSET:
|
||||||
field_dict["src_format_options"] = src_format_options
|
field_dict["src_format_options"] = src_format_options.to_dict()
|
||||||
if started_at is not UNSET:
|
if started_at is not UNSET:
|
||||||
field_dict["started_at"] = started_at
|
field_dict["started_at"] = started_at
|
||||||
if status is not UNSET:
|
if status is not UNSET:
|
||||||
@ -293,7 +293,7 @@ class file_center_of_mass:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if center_of_mass is not UNSET:
|
if center_of_mass is not UNSET:
|
||||||
field_dict["center_of_mass"] = center_of_mass
|
field_dict["center_of_mass"] = center_of_mass.to_dict()
|
||||||
if completed_at is not UNSET:
|
if completed_at is not UNSET:
|
||||||
field_dict["completed_at"] = completed_at
|
field_dict["completed_at"] = completed_at
|
||||||
if created_at is not UNSET:
|
if created_at is not UNSET:
|
||||||
|
@ -28,7 +28,7 @@ class BillingInfo:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if address is not UNSET:
|
if address is not UNSET:
|
||||||
field_dict["address"] = address
|
field_dict["address"] = address.to_dict()
|
||||||
if name is not UNSET:
|
if name is not UNSET:
|
||||||
field_dict["name"] = name
|
field_dict["name"] = name
|
||||||
if phone is not UNSET:
|
if phone is not UNSET:
|
||||||
|
@ -40,7 +40,7 @@ class CardDetails:
|
|||||||
if brand is not UNSET:
|
if brand is not UNSET:
|
||||||
field_dict["brand"] = brand
|
field_dict["brand"] = brand
|
||||||
if checks is not UNSET:
|
if checks is not UNSET:
|
||||||
field_dict["checks"] = checks
|
field_dict["checks"] = checks.to_dict()
|
||||||
if country is not UNSET:
|
if country is not UNSET:
|
||||||
field_dict["country"] = country
|
field_dict["country"] = country
|
||||||
if exp_month is not UNSET:
|
if exp_month is not UNSET:
|
||||||
|
@ -28,7 +28,7 @@ class CenterOfMass:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if center_of_mass is not UNSET:
|
if center_of_mass is not UNSET:
|
||||||
field_dict["center_of_mass"] = center_of_mass
|
field_dict["center_of_mass"] = center_of_mass.to_dict()
|
||||||
if output_unit is not UNSET:
|
if output_unit is not UNSET:
|
||||||
field_dict["output_unit"] = output_unit
|
field_dict["output_unit"] = output_unit
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ class Connection:
|
|||||||
if auth_timeout is not UNSET:
|
if auth_timeout is not UNSET:
|
||||||
field_dict["auth_timeout"] = auth_timeout
|
field_dict["auth_timeout"] = auth_timeout
|
||||||
if cluster is not UNSET:
|
if cluster is not UNSET:
|
||||||
field_dict["cluster"] = cluster
|
field_dict["cluster"] = cluster.to_dict()
|
||||||
if config_load_time is not UNSET:
|
if config_load_time is not UNSET:
|
||||||
field_dict["config_load_time"] = config_load_time
|
field_dict["config_load_time"] = config_load_time
|
||||||
if connections is not UNSET:
|
if connections is not UNSET:
|
||||||
@ -143,7 +143,7 @@ class Connection:
|
|||||||
if cpu is not UNSET:
|
if cpu is not UNSET:
|
||||||
field_dict["cpu"] = cpu
|
field_dict["cpu"] = cpu
|
||||||
if gateway is not UNSET:
|
if gateway is not UNSET:
|
||||||
field_dict["gateway"] = gateway
|
field_dict["gateway"] = gateway.to_dict()
|
||||||
if git_commit is not UNSET:
|
if git_commit is not UNSET:
|
||||||
field_dict["git_commit"] = git_commit
|
field_dict["git_commit"] = git_commit
|
||||||
if go is not UNSET:
|
if go is not UNSET:
|
||||||
@ -167,9 +167,9 @@ class Connection:
|
|||||||
if in_msgs is not UNSET:
|
if in_msgs is not UNSET:
|
||||||
field_dict["in_msgs"] = in_msgs
|
field_dict["in_msgs"] = in_msgs
|
||||||
if jetstream is not UNSET:
|
if jetstream is not UNSET:
|
||||||
field_dict["jetstream"] = jetstream
|
field_dict["jetstream"] = jetstream.to_dict()
|
||||||
if leaf is not UNSET:
|
if leaf is not UNSET:
|
||||||
field_dict["leaf"] = leaf
|
field_dict["leaf"] = leaf.to_dict()
|
||||||
if leafnodes is not UNSET:
|
if leafnodes is not UNSET:
|
||||||
field_dict["leafnodes"] = leafnodes
|
field_dict["leafnodes"] = leafnodes
|
||||||
if max_connections is not UNSET:
|
if max_connections is not UNSET:
|
||||||
|
@ -27,9 +27,9 @@ class CurveGetEndPoints:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if end is not UNSET:
|
if end is not UNSET:
|
||||||
field_dict["end"] = end
|
field_dict["end"] = end.to_dict()
|
||||||
if start is not UNSET:
|
if start is not UNSET:
|
||||||
field_dict["start"] = start
|
field_dict["start"] = start.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ class Customer:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if address is not UNSET:
|
if address is not UNSET:
|
||||||
field_dict["address"] = address
|
field_dict["address"] = address.to_dict()
|
||||||
if balance is not UNSET:
|
if balance is not UNSET:
|
||||||
field_dict["balance"] = balance
|
field_dict["balance"] = balance
|
||||||
if created_at is not UNSET:
|
if created_at is not UNSET:
|
||||||
|
@ -24,7 +24,7 @@ class Discount:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if coupon is not UNSET:
|
if coupon is not UNSET:
|
||||||
field_dict["coupon"] = coupon
|
field_dict["coupon"] = coupon.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ class FileCenterOfMass:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if center_of_mass is not UNSET:
|
if center_of_mass is not UNSET:
|
||||||
field_dict["center_of_mass"] = center_of_mass
|
field_dict["center_of_mass"] = center_of_mass.to_dict()
|
||||||
if completed_at is not UNSET:
|
if completed_at is not UNSET:
|
||||||
field_dict["completed_at"] = completed_at
|
field_dict["completed_at"] = completed_at
|
||||||
if created_at is not UNSET:
|
if created_at is not UNSET:
|
||||||
|
@ -83,13 +83,13 @@ class FileConversion:
|
|||||||
if output_format is not UNSET:
|
if output_format is not UNSET:
|
||||||
field_dict["output_format"] = output_format
|
field_dict["output_format"] = output_format
|
||||||
if output_format_options is not UNSET:
|
if output_format_options is not UNSET:
|
||||||
field_dict["output_format_options"] = output_format_options
|
field_dict["output_format_options"] = output_format_options.to_dict()
|
||||||
if outputs is not UNSET:
|
if outputs is not UNSET:
|
||||||
field_dict["outputs"] = outputs
|
field_dict["outputs"] = outputs
|
||||||
if src_format is not UNSET:
|
if src_format is not UNSET:
|
||||||
field_dict["src_format"] = src_format
|
field_dict["src_format"] = src_format
|
||||||
if src_format_options is not UNSET:
|
if src_format_options is not UNSET:
|
||||||
field_dict["src_format_options"] = src_format_options
|
field_dict["src_format_options"] = src_format_options.to_dict()
|
||||||
if started_at is not UNSET:
|
if started_at is not UNSET:
|
||||||
field_dict["started_at"] = started_at
|
field_dict["started_at"] = started_at
|
||||||
if status is not UNSET:
|
if status is not UNSET:
|
||||||
|
@ -30,11 +30,11 @@ class GetSketchModePlane:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if x_axis is not UNSET:
|
if x_axis is not UNSET:
|
||||||
field_dict["x_axis"] = x_axis
|
field_dict["x_axis"] = x_axis.to_dict()
|
||||||
if y_axis is not UNSET:
|
if y_axis is not UNSET:
|
||||||
field_dict["y_axis"] = y_axis
|
field_dict["y_axis"] = y_axis.to_dict()
|
||||||
if z_axis is not UNSET:
|
if z_axis is not UNSET:
|
||||||
field_dict["z_axis"] = z_axis
|
field_dict["z_axis"] = z_axis.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ class obj:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if coords is not UNSET:
|
if coords is not UNSET:
|
||||||
field_dict["coords"] = coords
|
field_dict["coords"] = coords.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
if units is not UNSET:
|
if units is not UNSET:
|
||||||
field_dict["units"] = units
|
field_dict["units"] = units
|
||||||
@ -206,7 +206,7 @@ class ply:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if coords is not UNSET:
|
if coords is not UNSET:
|
||||||
field_dict["coords"] = coords
|
field_dict["coords"] = coords.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
if units is not UNSET:
|
if units is not UNSET:
|
||||||
field_dict["units"] = units
|
field_dict["units"] = units
|
||||||
@ -382,7 +382,7 @@ class stl:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if coords is not UNSET:
|
if coords is not UNSET:
|
||||||
field_dict["coords"] = coords
|
field_dict["coords"] = coords.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
if units is not UNSET:
|
if units is not UNSET:
|
||||||
field_dict["units"] = units
|
field_dict["units"] = units
|
||||||
|
@ -32,11 +32,11 @@ class Jetstream:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if config is not UNSET:
|
if config is not UNSET:
|
||||||
field_dict["config"] = config
|
field_dict["config"] = config.to_dict()
|
||||||
if meta is not UNSET:
|
if meta is not UNSET:
|
||||||
field_dict["meta"] = meta
|
field_dict["meta"] = meta.to_dict()
|
||||||
if stats is not UNSET:
|
if stats is not UNSET:
|
||||||
field_dict["stats"] = stats
|
field_dict["stats"] = stats.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ class JetstreamStats:
|
|||||||
if accounts is not UNSET:
|
if accounts is not UNSET:
|
||||||
field_dict["accounts"] = accounts
|
field_dict["accounts"] = accounts
|
||||||
if api is not UNSET:
|
if api is not UNSET:
|
||||||
field_dict["api"] = api
|
field_dict["api"] = api.to_dict()
|
||||||
if ha_assets is not UNSET:
|
if ha_assets is not UNSET:
|
||||||
field_dict["ha_assets"] = ha_assets
|
field_dict["ha_assets"] = ha_assets
|
||||||
if memory is not UNSET:
|
if memory is not UNSET:
|
||||||
|
@ -40,15 +40,15 @@ class Metadata:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if cache is not UNSET:
|
if cache is not UNSET:
|
||||||
field_dict["cache"] = cache
|
field_dict["cache"] = cache.to_dict()
|
||||||
if environment is not UNSET:
|
if environment is not UNSET:
|
||||||
field_dict["environment"] = environment
|
field_dict["environment"] = environment
|
||||||
if fs is not UNSET:
|
if fs is not UNSET:
|
||||||
field_dict["fs"] = fs
|
field_dict["fs"] = fs.to_dict()
|
||||||
if git_hash is not UNSET:
|
if git_hash is not UNSET:
|
||||||
field_dict["git_hash"] = git_hash
|
field_dict["git_hash"] = git_hash
|
||||||
if pubsub is not UNSET:
|
if pubsub is not UNSET:
|
||||||
field_dict["pubsub"] = pubsub
|
field_dict["pubsub"] = pubsub.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ class move_path_pen:
|
|||||||
if path is not UNSET:
|
if path is not UNSET:
|
||||||
field_dict["path"] = path
|
field_dict["path"] = path
|
||||||
if to is not UNSET:
|
if to is not UNSET:
|
||||||
field_dict["to"] = to
|
field_dict["to"] = to.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -176,7 +176,7 @@ class extend_path:
|
|||||||
if path is not UNSET:
|
if path is not UNSET:
|
||||||
field_dict["path"] = path
|
field_dict["path"] = path
|
||||||
if segment is not UNSET:
|
if segment is not UNSET:
|
||||||
field_dict["segment"] = segment
|
field_dict["segment"] = segment.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -387,7 +387,7 @@ class camera_drag_start:
|
|||||||
field_dict["interaction"] = interaction
|
field_dict["interaction"] = interaction
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
if window is not UNSET:
|
if window is not UNSET:
|
||||||
field_dict["window"] = window
|
field_dict["window"] = window.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@ -467,7 +467,7 @@ class camera_drag_move:
|
|||||||
field_dict["sequence"] = sequence
|
field_dict["sequence"] = sequence
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
if window is not UNSET:
|
if window is not UNSET:
|
||||||
field_dict["window"] = window
|
field_dict["window"] = window.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@ -546,7 +546,7 @@ class camera_drag_end:
|
|||||||
field_dict["interaction"] = interaction
|
field_dict["interaction"] = interaction
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
if window is not UNSET:
|
if window is not UNSET:
|
||||||
field_dict["window"] = window
|
field_dict["window"] = window.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@ -622,12 +622,12 @@ class default_camera_look_at:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if center is not UNSET:
|
if center is not UNSET:
|
||||||
field_dict["center"] = center
|
field_dict["center"] = center.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
if up is not UNSET:
|
if up is not UNSET:
|
||||||
field_dict["up"] = up
|
field_dict["up"] = up.to_dict()
|
||||||
if vantage is not UNSET:
|
if vantage is not UNSET:
|
||||||
field_dict["vantage"] = vantage
|
field_dict["vantage"] = vantage.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@ -778,14 +778,14 @@ class default_camera_enable_sketch_mode:
|
|||||||
if distance_to_plane is not UNSET:
|
if distance_to_plane is not UNSET:
|
||||||
field_dict["distance_to_plane"] = distance_to_plane
|
field_dict["distance_to_plane"] = distance_to_plane
|
||||||
if origin is not UNSET:
|
if origin is not UNSET:
|
||||||
field_dict["origin"] = origin
|
field_dict["origin"] = origin.to_dict()
|
||||||
if ortho is not UNSET:
|
if ortho is not UNSET:
|
||||||
field_dict["ortho"] = ortho
|
field_dict["ortho"] = ortho
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
if x_axis is not UNSET:
|
if x_axis is not UNSET:
|
||||||
field_dict["x_axis"] = x_axis
|
field_dict["x_axis"] = x_axis.to_dict()
|
||||||
if y_axis is not UNSET:
|
if y_axis is not UNSET:
|
||||||
field_dict["y_axis"] = y_axis
|
field_dict["y_axis"] = y_axis.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@ -988,7 +988,7 @@ class export:
|
|||||||
if entity_ids is not UNSET:
|
if entity_ids is not UNSET:
|
||||||
field_dict["entity_ids"] = entity_ids
|
field_dict["entity_ids"] = entity_ids
|
||||||
if format is not UNSET:
|
if format is not UNSET:
|
||||||
field_dict["format"] = format
|
field_dict["format"] = format.to_dict()
|
||||||
if source_unit is not UNSET:
|
if source_unit is not UNSET:
|
||||||
field_dict["source_unit"] = source_unit
|
field_dict["source_unit"] = source_unit
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
@ -1409,7 +1409,7 @@ class select_with_point:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if selected_at_window is not UNSET:
|
if selected_at_window is not UNSET:
|
||||||
field_dict["selected_at_window"] = selected_at_window
|
field_dict["selected_at_window"] = selected_at_window.to_dict()
|
||||||
if selection_type is not UNSET:
|
if selection_type is not UNSET:
|
||||||
field_dict["selection_type"] = selection_type
|
field_dict["selection_type"] = selection_type
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
@ -1761,7 +1761,7 @@ class highlight_set_entity:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if selected_at_window is not UNSET:
|
if selected_at_window is not UNSET:
|
||||||
field_dict["selected_at_window"] = selected_at_window
|
field_dict["selected_at_window"] = selected_at_window.to_dict()
|
||||||
if sequence is not UNSET:
|
if sequence is not UNSET:
|
||||||
field_dict["sequence"] = sequence
|
field_dict["sequence"] = sequence
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
@ -1897,7 +1897,7 @@ class new_annotation:
|
|||||||
if clobber is not UNSET:
|
if clobber is not UNSET:
|
||||||
field_dict["clobber"] = clobber
|
field_dict["clobber"] = clobber
|
||||||
if options is not UNSET:
|
if options is not UNSET:
|
||||||
field_dict["options"] = options
|
field_dict["options"] = options.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -1975,7 +1975,7 @@ class update_annotation:
|
|||||||
if annotation_id is not UNSET:
|
if annotation_id is not UNSET:
|
||||||
field_dict["annotation_id"] = annotation_id
|
field_dict["annotation_id"] = annotation_id
|
||||||
if options is not UNSET:
|
if options is not UNSET:
|
||||||
field_dict["options"] = options
|
field_dict["options"] = options.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -2351,7 +2351,7 @@ class solid3d_get_all_opposite_edges:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if along_vector is not UNSET:
|
if along_vector is not UNSET:
|
||||||
field_dict["along_vector"] = along_vector
|
field_dict["along_vector"] = along_vector.to_dict()
|
||||||
if edge_id is not UNSET:
|
if edge_id is not UNSET:
|
||||||
field_dict["edge_id"] = edge_id
|
field_dict["edge_id"] = edge_id
|
||||||
if object_id is not UNSET:
|
if object_id is not UNSET:
|
||||||
@ -2852,14 +2852,14 @@ class make_plane:
|
|||||||
if hide is not UNSET:
|
if hide is not UNSET:
|
||||||
field_dict["hide"] = hide
|
field_dict["hide"] = hide
|
||||||
if origin is not UNSET:
|
if origin is not UNSET:
|
||||||
field_dict["origin"] = origin
|
field_dict["origin"] = origin.to_dict()
|
||||||
if size is not UNSET:
|
if size is not UNSET:
|
||||||
field_dict["size"] = size
|
field_dict["size"] = size
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
if x_axis is not UNSET:
|
if x_axis is not UNSET:
|
||||||
field_dict["x_axis"] = x_axis
|
field_dict["x_axis"] = x_axis.to_dict()
|
||||||
if y_axis is not UNSET:
|
if y_axis is not UNSET:
|
||||||
field_dict["y_axis"] = y_axis
|
field_dict["y_axis"] = y_axis.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@ -2948,7 +2948,7 @@ class plane_set_color:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if color is not UNSET:
|
if color is not UNSET:
|
||||||
field_dict["color"] = color
|
field_dict["color"] = color.to_dict()
|
||||||
if plane_id is not UNSET:
|
if plane_id is not UNSET:
|
||||||
field_dict["plane_id"] = plane_id
|
field_dict["plane_id"] = plane_id
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
@ -3084,7 +3084,7 @@ class mouse_move:
|
|||||||
field_dict["sequence"] = sequence
|
field_dict["sequence"] = sequence
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
if window is not UNSET:
|
if window is not UNSET:
|
||||||
field_dict["window"] = window
|
field_dict["window"] = window.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@ -3150,7 +3150,7 @@ class mouse_click:
|
|||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
if window is not UNSET:
|
if window is not UNSET:
|
||||||
field_dict["window"] = window
|
field_dict["window"] = window.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@ -3220,7 +3220,9 @@ class sketch_mode_enable:
|
|||||||
if animated is not UNSET:
|
if animated is not UNSET:
|
||||||
field_dict["animated"] = animated
|
field_dict["animated"] = animated
|
||||||
if disable_camera_with_plane is not UNSET:
|
if disable_camera_with_plane is not UNSET:
|
||||||
field_dict["disable_camera_with_plane"] = disable_camera_with_plane
|
field_dict[
|
||||||
|
"disable_camera_with_plane"
|
||||||
|
] = disable_camera_with_plane.to_dict()
|
||||||
if ortho is not UNSET:
|
if ortho is not UNSET:
|
||||||
field_dict["ortho"] = ortho
|
field_dict["ortho"] = ortho
|
||||||
if plane_id is not UNSET:
|
if plane_id is not UNSET:
|
||||||
@ -3768,7 +3770,7 @@ class handle_mouse_drag_start:
|
|||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
if window is not UNSET:
|
if window is not UNSET:
|
||||||
field_dict["window"] = window
|
field_dict["window"] = window.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@ -3835,7 +3837,7 @@ class handle_mouse_drag_move:
|
|||||||
field_dict["sequence"] = sequence
|
field_dict["sequence"] = sequence
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
if window is not UNSET:
|
if window is not UNSET:
|
||||||
field_dict["window"] = window
|
field_dict["window"] = window.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@ -3901,7 +3903,7 @@ class handle_mouse_drag_end:
|
|||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
if window is not UNSET:
|
if window is not UNSET:
|
||||||
field_dict["window"] = window
|
field_dict["window"] = window.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@ -4027,7 +4029,7 @@ class plane_intersect_and_project:
|
|||||||
field_dict["plane_id"] = plane_id
|
field_dict["plane_id"] = plane_id
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
if window is not UNSET:
|
if window is not UNSET:
|
||||||
field_dict["window"] = window
|
field_dict["window"] = window.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@ -4230,7 +4232,7 @@ class import_files:
|
|||||||
if files is not UNSET:
|
if files is not UNSET:
|
||||||
field_dict["files"] = files
|
field_dict["files"] = files
|
||||||
if format is not UNSET:
|
if format is not UNSET:
|
||||||
field_dict["format"] = format
|
field_dict["format"] = format.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
@ -28,7 +28,7 @@ class ModelingCmdReq:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if cmd is not UNSET:
|
if cmd is not UNSET:
|
||||||
field_dict["cmd"] = cmd
|
field_dict["cmd"] = cmd.to_dict()
|
||||||
if cmd_id is not UNSET:
|
if cmd_id is not UNSET:
|
||||||
field_dict["cmd_id"] = cmd_id
|
field_dict["cmd_id"] = cmd_id
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ class export:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -168,7 +168,7 @@ class select_with_point:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -231,7 +231,7 @@ class highlight_set_entity:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -294,7 +294,7 @@ class entity_get_child_uuid:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -357,7 +357,7 @@ class entity_get_num_children:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -420,7 +420,7 @@ class entity_get_parent_id:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -483,7 +483,7 @@ class entity_get_all_child_uuids:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -546,7 +546,7 @@ class select_get:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -609,7 +609,7 @@ class get_entity_type:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -672,7 +672,7 @@ class solid3d_get_all_edge_faces:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -735,7 +735,7 @@ class solid3d_get_all_opposite_edges:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -798,7 +798,7 @@ class solid3d_get_opposite_edge:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -861,7 +861,7 @@ class solid3d_get_prev_adjacent_edge:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -924,7 +924,7 @@ class solid3d_get_next_adjacent_edge:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -987,7 +987,7 @@ class mouse_click:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -1050,7 +1050,7 @@ class curve_get_type:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -1113,7 +1113,7 @@ class curve_get_control_points:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -1176,7 +1176,7 @@ class take_snapshot:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -1239,7 +1239,7 @@ class path_get_info:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -1302,7 +1302,7 @@ class path_get_curve_uuids_for_vertices:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -1365,7 +1365,7 @@ class path_get_vertex_uuids:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -1428,7 +1428,7 @@ class plane_intersect_and_project:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -1491,7 +1491,7 @@ class curve_get_end_points:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -1554,7 +1554,7 @@ class import_files:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -1617,7 +1617,7 @@ class mass:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -1680,7 +1680,7 @@ class volume:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -1743,7 +1743,7 @@ class density:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -1806,7 +1806,7 @@ class surface_area:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -1869,7 +1869,7 @@ class center_of_mass:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -1932,7 +1932,7 @@ class get_sketch_mode_plane:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if data is not UNSET:
|
if data is not UNSET:
|
||||||
field_dict["data"] = data
|
field_dict["data"] = data.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
@ -175,7 +175,7 @@ class obj:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if coords is not UNSET:
|
if coords is not UNSET:
|
||||||
field_dict["coords"] = coords
|
field_dict["coords"] = coords.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
if units is not UNSET:
|
if units is not UNSET:
|
||||||
field_dict["units"] = units
|
field_dict["units"] = units
|
||||||
@ -257,9 +257,9 @@ class ply:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if coords is not UNSET:
|
if coords is not UNSET:
|
||||||
field_dict["coords"] = coords
|
field_dict["coords"] = coords.to_dict()
|
||||||
if selection is not UNSET:
|
if selection is not UNSET:
|
||||||
field_dict["selection"] = selection
|
field_dict["selection"] = selection.to_dict()
|
||||||
if storage is not UNSET:
|
if storage is not UNSET:
|
||||||
field_dict["storage"] = storage
|
field_dict["storage"] = storage
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
@ -350,7 +350,7 @@ class step:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if coords is not UNSET:
|
if coords is not UNSET:
|
||||||
field_dict["coords"] = coords
|
field_dict["coords"] = coords.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -422,9 +422,9 @@ class stl:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if coords is not UNSET:
|
if coords is not UNSET:
|
||||||
field_dict["coords"] = coords
|
field_dict["coords"] = coords.to_dict()
|
||||||
if selection is not UNSET:
|
if selection is not UNSET:
|
||||||
field_dict["selection"] = selection
|
field_dict["selection"] = selection.to_dict()
|
||||||
if storage is not UNSET:
|
if storage is not UNSET:
|
||||||
field_dict["storage"] = storage
|
field_dict["storage"] = storage
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
@ -30,7 +30,7 @@ class line:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if end is not UNSET:
|
if end is not UNSET:
|
||||||
field_dict["end"] = end
|
field_dict["end"] = end.to_dict()
|
||||||
if relative is not UNSET:
|
if relative is not UNSET:
|
||||||
field_dict["relative"] = relative
|
field_dict["relative"] = relative
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
@ -116,15 +116,15 @@ class arc:
|
|||||||
if angle_start is not UNSET:
|
if angle_start is not UNSET:
|
||||||
field_dict["angle_start"] = angle_start
|
field_dict["angle_start"] = angle_start
|
||||||
if center is not UNSET:
|
if center is not UNSET:
|
||||||
field_dict["center"] = center
|
field_dict["center"] = center.to_dict()
|
||||||
if end is not UNSET:
|
if end is not UNSET:
|
||||||
field_dict["end"] = end
|
field_dict["end"] = end.to_dict()
|
||||||
if radius is not UNSET:
|
if radius is not UNSET:
|
||||||
field_dict["radius"] = radius
|
field_dict["radius"] = radius
|
||||||
if relative is not UNSET:
|
if relative is not UNSET:
|
||||||
field_dict["relative"] = relative
|
field_dict["relative"] = relative
|
||||||
if start is not UNSET:
|
if start is not UNSET:
|
||||||
field_dict["start"] = start
|
field_dict["start"] = start.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -223,11 +223,11 @@ class bezier:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if control1 is not UNSET:
|
if control1 is not UNSET:
|
||||||
field_dict["control1"] = control1
|
field_dict["control1"] = control1.to_dict()
|
||||||
if control2 is not UNSET:
|
if control2 is not UNSET:
|
||||||
field_dict["control2"] = control2
|
field_dict["control2"] = control2.to_dict()
|
||||||
if end is not UNSET:
|
if end is not UNSET:
|
||||||
field_dict["end"] = end
|
field_dict["end"] = end.to_dict()
|
||||||
if relative is not UNSET:
|
if relative is not UNSET:
|
||||||
field_dict["relative"] = relative
|
field_dict["relative"] = relative
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
@ -313,7 +313,7 @@ class tangential_arc:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if offset is not UNSET:
|
if offset is not UNSET:
|
||||||
field_dict["offset"] = offset
|
field_dict["offset"] = offset.to_dict()
|
||||||
if radius is not UNSET:
|
if radius is not UNSET:
|
||||||
field_dict["radius"] = radius
|
field_dict["radius"] = radius
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
@ -384,9 +384,9 @@ class tangential_arc_to:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if angle_snap_increment is not UNSET:
|
if angle_snap_increment is not UNSET:
|
||||||
field_dict["angle_snap_increment"] = angle_snap_increment
|
field_dict["angle_snap_increment"] = angle_snap_increment.to_dict()
|
||||||
if to is not UNSET:
|
if to is not UNSET:
|
||||||
field_dict["to"] = to
|
field_dict["to"] = to.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
@ -43,9 +43,9 @@ class PaymentMethod:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if billing_info is not UNSET:
|
if billing_info is not UNSET:
|
||||||
field_dict["billing_info"] = billing_info
|
field_dict["billing_info"] = billing_info.to_dict()
|
||||||
if card is not UNSET:
|
if card is not UNSET:
|
||||||
field_dict["card"] = card
|
field_dict["card"] = card.to_dict()
|
||||||
if created_at is not UNSET:
|
if created_at is not UNSET:
|
||||||
field_dict["created_at"] = created_at
|
field_dict["created_at"] = created_at
|
||||||
if id is not UNSET:
|
if id is not UNSET:
|
||||||
|
@ -24,7 +24,7 @@ class PlaneIntersectAndProject:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if plane_coordinates is not UNSET:
|
if plane_coordinates is not UNSET:
|
||||||
field_dict["plane_coordinates"] = plane_coordinates
|
field_dict["plane_coordinates"] = plane_coordinates.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ class SuccessWebSocketResponse:
|
|||||||
if request_id is not UNSET:
|
if request_id is not UNSET:
|
||||||
field_dict["request_id"] = request_id
|
field_dict["request_id"] = request_id
|
||||||
if resp is not UNSET:
|
if resp is not UNSET:
|
||||||
field_dict["resp"] = resp
|
field_dict["resp"] = resp.to_dict()
|
||||||
if success is not UNSET:
|
if success is not UNSET:
|
||||||
field_dict["success"] = success
|
field_dict["success"] = success
|
||||||
|
|
||||||
|
@ -34,9 +34,9 @@ class System:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if forward is not UNSET:
|
if forward is not UNSET:
|
||||||
field_dict["forward"] = forward
|
field_dict["forward"] = forward.to_dict()
|
||||||
if up is not UNSET:
|
if up is not UNSET:
|
||||||
field_dict["up"] = up
|
field_dict["up"] = up.to_dict()
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ class trickle_ice:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if candidate is not UNSET:
|
if candidate is not UNSET:
|
||||||
field_dict["candidate"] = candidate
|
field_dict["candidate"] = candidate.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -93,7 +93,7 @@ class sdp_offer:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if offer is not UNSET:
|
if offer is not UNSET:
|
||||||
field_dict["offer"] = offer
|
field_dict["offer"] = offer.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
@ -159,7 +159,7 @@ class modeling_cmd_req:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if cmd is not UNSET:
|
if cmd is not UNSET:
|
||||||
field_dict["cmd"] = cmd
|
field_dict["cmd"] = cmd.to_dict()
|
||||||
if cmd_id is not UNSET:
|
if cmd_id is not UNSET:
|
||||||
field_dict["cmd_id"] = cmd_id
|
field_dict["cmd_id"] = cmd_id
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
@ -347,7 +347,7 @@ class metrics_response:
|
|||||||
field_dict.update(self.additional_properties)
|
field_dict.update(self.additional_properties)
|
||||||
field_dict.update({})
|
field_dict.update({})
|
||||||
if metrics is not UNSET:
|
if metrics is not UNSET:
|
||||||
field_dict["metrics"] = metrics
|
field_dict["metrics"] = metrics.to_dict()
|
||||||
field_dict["type"] = type
|
field_dict["type"] = type
|
||||||
|
|
||||||
return field_dict
|
return field_dict
|
||||||
|
18
poetry.lock
generated
18
poetry.lock
generated
@ -1,4 +1,4 @@
|
|||||||
# This file is automatically @generated by Poetry 1.6.1 and should not be changed by hand.
|
# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand.
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "alabaster"
|
name = "alabaster"
|
||||||
@ -159,6 +159,20 @@ d = ["aiohttp (>=3.7.4)"]
|
|||||||
jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"]
|
jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"]
|
||||||
uvloop = ["uvloop (>=0.15.2)"]
|
uvloop = ["uvloop (>=0.15.2)"]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "bson"
|
||||||
|
version = "0.5.10"
|
||||||
|
description = "BSON codec for Python"
|
||||||
|
optional = false
|
||||||
|
python-versions = "*"
|
||||||
|
files = [
|
||||||
|
{file = "bson-0.5.10.tar.gz", hash = "sha256:d6511b2ab051139a9123c184de1a04227262173ad593429d21e443d6462d6590"},
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
python-dateutil = ">=2.4.0"
|
||||||
|
six = ">=1.9.0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "camel-case-switcher"
|
name = "camel-case-switcher"
|
||||||
version = "2.0"
|
version = "2.0"
|
||||||
@ -2405,4 +2419,4 @@ testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more
|
|||||||
[metadata]
|
[metadata]
|
||||||
lock-version = "2.0"
|
lock-version = "2.0"
|
||||||
python-versions = "^3.8"
|
python-versions = "^3.8"
|
||||||
content-hash = "a85c44e70b1c328bc703a65df96f282219adcc99749acddfa5c750ad96270834"
|
content-hash = "899d0a7b29fa63c1cfba0c1ec8a3f05225bdd428026214b043d472df8c995658"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "kittycad"
|
name = "kittycad"
|
||||||
version = "0.5.5"
|
version = "0.5.6"
|
||||||
description = "A client library for accessing KittyCAD"
|
description = "A client library for accessing KittyCAD"
|
||||||
|
|
||||||
authors = []
|
authors = []
|
||||||
@ -17,6 +17,7 @@ httpx = ">=0.15.4,<0.26.0"
|
|||||||
python = "^3.8"
|
python = "^3.8"
|
||||||
python-dateutil = "^2.8.0"
|
python-dateutil = "^2.8.0"
|
||||||
websockets = "^11.0.3"
|
websockets = "^11.0.3"
|
||||||
|
bson = "^0.5.10"
|
||||||
|
|
||||||
[tool.poetry.dev-dependencies]
|
[tool.poetry.dev-dependencies]
|
||||||
autoclasstoc = "^1.6.0"
|
autoclasstoc = "^1.6.0"
|
||||||
|
Reference in New Issue
Block a user