Update api spec (#132)
* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -1,218 +1,26 @@
|
||||
[
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/info/x-python",
|
||||
"path": "/paths/~1user~1api-tokens~1{token}/delete/x-python",
|
||||
"value": {
|
||||
"client": "# Create a client with your token.\nfrom kittycad 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 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"
|
||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import delete_api_token_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_api_token_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_api_token_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: Error = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.delete_api_token_for_user.html"
|
||||
}
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1user~1session~1{token}/get/x-python",
|
||||
"path": "/paths/~1user~1api-tokens~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"
|
||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import get_api_token_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiToken, Error\nfrom kittycad.types import Response\n\n\ndef example_get_api_token_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiToken, Error]] = get_api_token_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: ApiToken = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.get_api_token_for_user.html"
|
||||
}
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1user~1payment~1tax/get/x-python",
|
||||
"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.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/~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/~1ai~1image-to-3d~1{input_format}~1{output_format}/post/x-python",
|
||||
"value": {
|
||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import create_image_to_3d\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Mesh\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.models.image_type import ImageType\nfrom kittycad.types import Response\n\n\ndef example_create_image_to_3d():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Mesh, Error]] = create_image_to_3d.sync(\n client=client,\n input_format=ImageType.PNG,\n output_format=FileExportFormat.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: Mesh = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_image_to_3d.html"
|
||||
}
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1users/get/x-python",
|
||||
"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",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.list_users.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/~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/~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/~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/~1/get/x-python",
|
||||
"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",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_schema.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/~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/~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/~1modeling~1cmd/post/x-python",
|
||||
"value": {
|
||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.modeling import cmd\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import (\n CurveGetControlPoints,\n CurveGetType,\n Empty,\n EntityGetAllChildUuids,\n EntityGetChildUuid,\n EntityGetNumChildren,\n EntityGetParentId,\n Error,\n Export,\n GetEntityType,\n HighlightSetEntity,\n MouseClick,\n PathGetInfo,\n SelectGet,\n SelectWithPoint,\n Solid3dGetAllEdgeFaces,\n Solid3dGetAllOppositeEdges,\n Solid3dGetNextAdjacentEdge,\n Solid3dGetOppositeEdge,\n Solid3dGetPrevAdjacentEdge,\n TakeSnapshot,\n)\nfrom kittycad.models.modeling_cmd import move_path_pen\nfrom kittycad.models.modeling_cmd_id import ModelingCmdId\nfrom kittycad.models.modeling_cmd_req import ModelingCmdReq\nfrom kittycad.models.point3d import Point3d\nfrom kittycad.types import Response\n\n\ndef example_cmd():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[\n Empty,\n Export,\n SelectWithPoint,\n HighlightSetEntity,\n EntityGetChildUuid,\n EntityGetNumChildren,\n EntityGetParentId,\n EntityGetAllChildUuids,\n SelectGet,\n GetEntityType,\n Solid3dGetAllEdgeFaces,\n Solid3dGetAllOppositeEdges,\n Solid3dGetOppositeEdge,\n Solid3dGetPrevAdjacentEdge,\n Solid3dGetNextAdjacentEdge,\n MouseClick,\n CurveGetType,\n CurveGetControlPoints,\n TakeSnapshot,\n PathGetInfo,\n Error,\n ]\n ] = cmd.sync(\n client=client,\n body=ModelingCmdReq(\n cmd=move_path_pen(\n path=ModelingCmdId(\"<uuid>\"),\n to=Point3d(\n x=3.14,\n y=3.14,\n z=3.14,\n ),\n ),\n cmd_id=ModelingCmdId(\"<uuid>\"),\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Union[\n Empty,\n Export,\n SelectWithPoint,\n HighlightSetEntity,\n EntityGetChildUuid,\n EntityGetNumChildren,\n EntityGetParentId,\n EntityGetAllChildUuids,\n SelectGet,\n GetEntityType,\n Solid3dGetAllEdgeFaces,\n Solid3dGetAllOppositeEdges,\n Solid3dGetOppositeEdge,\n Solid3dGetPrevAdjacentEdge,\n Solid3dGetNextAdjacentEdge,\n MouseClick,\n CurveGetType,\n CurveGetControlPoints,\n TakeSnapshot,\n PathGetInfo,\n ] = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.modeling.cmd.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/~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",
|
||||
"path": "/paths/~1ai~1text-to-3d~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_3d\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Mesh\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.types import Response\n\n\ndef example_create_text_to_3d():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Mesh, Error]] = create_text_to_3d.sync(\n client=client,\n output_format=FileExportFormat.FBX,\n prompt=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Mesh = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_text_to_3d.html"
|
||||
}
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1modeling~1cmd-batch/post/x-python",
|
||||
"value": {
|
||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.modeling import cmd_batch\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ModelingOutcomes\nfrom kittycad.models.modeling_cmd import move_path_pen\nfrom kittycad.models.modeling_cmd_id import ModelingCmdId\nfrom kittycad.models.modeling_cmd_req import ModelingCmdReq\nfrom kittycad.models.modeling_cmd_req_batch import ModelingCmdReqBatch\nfrom kittycad.models.point3d import Point3d\nfrom kittycad.types import Response\n\n\ndef example_cmd_batch():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ModelingOutcomes, Error]] = cmd_batch.sync(\n client=client,\n body=ModelingCmdReqBatch(\n cmds={\n \"<string>\": ModelingCmdReq(\n cmd=move_path_pen(\n path=ModelingCmdId(\"<uuid>\"),\n to=Point3d(\n x=3.14,\n y=3.14,\n z=3.14,\n ),\n ),\n cmd_id=ModelingCmdId(\"<uuid>\"),\n )\n },\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ModelingOutcomes = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.modeling.cmd_batch.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/~1file~1mass/post/x-python",
|
||||
"value": {
|
||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_mass\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileMass\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_mass():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileMass, Error]] = create_file_mass.sync(\n client=client,\n material_density=3.14,\n material_density_unit=UnitDensity.LB_FT3,\n output_unit=UnitMass.G,\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: FileMass = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_mass.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/~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/~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/~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/~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/~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"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -225,18 +33,90 @@
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1file~1center-of-mass/post/x-python",
|
||||
"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.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"
|
||||
"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/~1auth~1email/post/x-python",
|
||||
"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.hidden import auth_email\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, VerificationToken\nfrom kittycad.models.email_authentication_form import EmailAuthenticationForm\nfrom kittycad.types import Response\n\n\ndef example_auth_email():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[VerificationToken, Error]] = auth_email.sync(\n client=client,\n body=EmailAuthenticationForm(\n email=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: VerificationToken = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.hidden.auth_email.html"
|
||||
"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/~1modeling~1cmd/post/x-python",
|
||||
"value": {
|
||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.modeling import cmd\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import (\n CurveGetControlPoints,\n CurveGetType,\n Empty,\n EntityGetAllChildUuids,\n EntityGetChildUuid,\n EntityGetNumChildren,\n EntityGetParentId,\n Error,\n Export,\n GetEntityType,\n HighlightSetEntity,\n MouseClick,\n PathGetInfo,\n SelectGet,\n SelectWithPoint,\n Solid3dGetAllEdgeFaces,\n Solid3dGetAllOppositeEdges,\n Solid3dGetNextAdjacentEdge,\n Solid3dGetOppositeEdge,\n Solid3dGetPrevAdjacentEdge,\n TakeSnapshot,\n)\nfrom kittycad.models.modeling_cmd import move_path_pen\nfrom kittycad.models.modeling_cmd_id import ModelingCmdId\nfrom kittycad.models.modeling_cmd_req import ModelingCmdReq\nfrom kittycad.models.point3d import Point3d\nfrom kittycad.types import Response\n\n\ndef example_cmd():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[\n Empty,\n Export,\n SelectWithPoint,\n HighlightSetEntity,\n EntityGetChildUuid,\n EntityGetNumChildren,\n EntityGetParentId,\n EntityGetAllChildUuids,\n SelectGet,\n GetEntityType,\n Solid3dGetAllEdgeFaces,\n Solid3dGetAllOppositeEdges,\n Solid3dGetOppositeEdge,\n Solid3dGetPrevAdjacentEdge,\n Solid3dGetNextAdjacentEdge,\n MouseClick,\n CurveGetType,\n CurveGetControlPoints,\n TakeSnapshot,\n PathGetInfo,\n Error,\n ]\n ] = cmd.sync(\n client=client,\n body=ModelingCmdReq(\n cmd=move_path_pen(\n path=ModelingCmdId(\"<uuid>\"),\n to=Point3d(\n x=3.14,\n y=3.14,\n z=3.14,\n ),\n ),\n cmd_id=ModelingCmdId(\"<uuid>\"),\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Union[\n Empty,\n Export,\n SelectWithPoint,\n HighlightSetEntity,\n EntityGetChildUuid,\n EntityGetNumChildren,\n EntityGetParentId,\n EntityGetAllChildUuids,\n SelectGet,\n GetEntityType,\n Solid3dGetAllEdgeFaces,\n Solid3dGetAllOppositeEdges,\n Solid3dGetOppositeEdge,\n Solid3dGetPrevAdjacentEdge,\n Solid3dGetNextAdjacentEdge,\n MouseClick,\n CurveGetType,\n CurveGetControlPoints,\n TakeSnapshot,\n PathGetInfo,\n ] = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.modeling.cmd.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/~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/~1/get/x-python",
|
||||
"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",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_schema.html"
|
||||
}
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1ai~1text-to-3d~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_3d\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Mesh\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.types import Response\n\n\ndef example_create_text_to_3d():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Mesh, Error]] = create_text_to_3d.sync(\n client=client,\n output_format=FileExportFormat.FBX,\n prompt=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Mesh = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_text_to_3d.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/~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/~1logout/post/x-python",
|
||||
"value": {
|
||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.hidden import logout\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_logout():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = logout.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.hidden.logout.html"
|
||||
}
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1file~1mass/post/x-python",
|
||||
"value": {
|
||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_mass\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileMass\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_mass():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileMass, Error]] = create_file_mass.sync(\n client=client,\n material_density=3.14,\n material_density_unit=UnitDensity.LB_FT3,\n output_unit=UnitMass.G,\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: FileMass = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_mass.html"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -249,18 +129,26 @@
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1user~1payment/put/x-python",
|
||||
"path": "/paths/~1user~1extended/get/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"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1user~1payment/post/x-python",
|
||||
"path": "/paths/~1users~1{id}~1api-calls/get/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"
|
||||
"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/~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"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -281,58 +169,18 @@
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1unit~1conversion~1current~1{input_unit}~1{output_unit}/get/x-python",
|
||||
"path": "/paths/~1user~1payment/put/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"
|
||||
"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/~1apps~1github~1webhook/post/x-python",
|
||||
"path": "/paths/~1user~1payment/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~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/~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/~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/~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"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -343,6 +191,14 @@
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_metadata.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~1payment~1methods~1{id}/delete/x-python",
|
||||
@ -353,18 +209,10 @@
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1user~1extended/get/x-python",
|
||||
"path": "/paths/~1file~1execute~1{lang}/post/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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -377,42 +225,42 @@
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1ping/get/x-python",
|
||||
"path": "/paths/~1file~1surface-area/post/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"
|
||||
"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/~1.well-known~1ai-plugin.json/get/x-python",
|
||||
"path": "/paths/~1file~1center-of-mass/post/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"
|
||||
"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/~1api-calls/get/x-python",
|
||||
"path": "/paths/~1users-extended~1{id}/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"
|
||||
"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/~1auth~1email~1callback/get/x-python",
|
||||
"path": "/paths/~1users~1{id}/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"
|
||||
"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-calls~1{id}/get/x-python",
|
||||
"path": "/paths/~1apps~1github~1callback/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"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -433,34 +281,18 @@
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1user~1onboarding/get/x-python",
|
||||
"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.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"
|
||||
"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/~1ws~1executor~1term/get/x-python",
|
||||
"path": "/paths/~1user~1session~1{token}/get/x-python",
|
||||
"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",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.executor.create_executor_term.html"
|
||||
}
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1unit~1conversion~1force~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_force_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitForceConversion\nfrom kittycad.models.unit_force import UnitForce\nfrom kittycad.types import Response\n\n\ndef example_get_force_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitForceConversion, Error]\n ] = get_force_unit_conversion.sync(\n client=client,\n input_unit=UnitForce.DYNES,\n output_unit=UnitForce.DYNES,\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: UnitForceConversion = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_force_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"
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -473,42 +305,90 @@
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1user~1api-tokens~1{token}/delete/x-python",
|
||||
"path": "/paths/~1user~1api-calls/get/x-python",
|
||||
"value": {
|
||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import delete_api_token_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_api_token_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_api_token_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: Error = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.delete_api_token_for_user.html"
|
||||
"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/~1user~1api-tokens~1{token}/get/x-python",
|
||||
"path": "/paths/~1api-calls~1{id}/get/x-python",
|
||||
"value": {
|
||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.api_tokens import get_api_token_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import ApiToken, Error\nfrom kittycad.types import Response\n\n\ndef example_get_api_token_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ApiToken, Error]] = get_api_token_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: ApiToken = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.get_api_token_for_user.html"
|
||||
"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/~1users-extended~1{id}/get/x-python",
|
||||
"path": "/paths/~1api-calls/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"
|
||||
"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/~1users~1{id}~1api-calls/get/x-python",
|
||||
"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.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"
|
||||
"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/~1logout/post/x-python",
|
||||
"path": "/paths/~1async~1operations/get/x-python",
|
||||
"value": {
|
||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.hidden import logout\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_logout():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = logout.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.hidden.logout.html"
|
||||
"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/~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/~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/~1modeling~1cmd-batch/post/x-python",
|
||||
"value": {
|
||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.modeling import cmd_batch\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ModelingOutcomes\nfrom kittycad.models.modeling_cmd import move_path_pen\nfrom kittycad.models.modeling_cmd_id import ModelingCmdId\nfrom kittycad.models.modeling_cmd_req import ModelingCmdReq\nfrom kittycad.models.modeling_cmd_req_batch import ModelingCmdReqBatch\nfrom kittycad.models.point3d import Point3d\nfrom kittycad.types import Response\n\n\ndef example_cmd_batch():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ModelingOutcomes, Error]] = cmd_batch.sync(\n client=client,\n body=ModelingCmdReqBatch(\n cmds={\n \"<string>\": ModelingCmdReq(\n cmd=move_path_pen(\n path=ModelingCmdId(\"<uuid>\"),\n to=Point3d(\n x=3.14,\n y=3.14,\n z=3.14,\n ),\n ),\n cmd_id=ModelingCmdId(\"<uuid>\"),\n )\n },\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ModelingOutcomes = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.modeling.cmd_batch.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/~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~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"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -537,18 +417,50 @@
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1file~1volume/post/x-python",
|
||||
"path": "/paths/~1user~1payment~1balance/get/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"
|
||||
"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~1payment~1methods/get/x-python",
|
||||
"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_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"
|
||||
"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/~1ai~1image-to-3d~1{input_format}~1{output_format}/post/x-python",
|
||||
"value": {
|
||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.ai import create_image_to_3d\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Mesh\nfrom kittycad.models.file_export_format import FileExportFormat\nfrom kittycad.models.image_type import ImageType\nfrom kittycad.types import Response\n\n\ndef example_create_image_to_3d():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Mesh, Error]] = create_image_to_3d.sync(\n client=client,\n input_format=ImageType.PNG,\n output_format=FileExportFormat.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: Mesh = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_image_to_3d.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/~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-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"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -561,10 +473,98 @@
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1async~1operations/get/x-python",
|
||||
"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.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"
|
||||
"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/~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/get/x-python",
|
||||
"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",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.list_users.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/~1auth~1email/post/x-python",
|
||||
"value": {
|
||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.hidden import auth_email\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, VerificationToken\nfrom kittycad.models.email_authentication_form import EmailAuthenticationForm\nfrom kittycad.types import Response\n\n\ndef example_auth_email():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[VerificationToken, Error]] = auth_email.sync(\n client=client,\n body=EmailAuthenticationForm(\n email=\"<string>\",\n ),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: VerificationToken = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.hidden.auth_email.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/~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/~1unit~1conversion~1force~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_force_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitForceConversion\nfrom kittycad.models.unit_force import UnitForce\nfrom kittycad.types import Response\n\n\ndef example_get_force_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitForceConversion, Error]\n ] = get_force_unit_conversion.sync(\n client=client,\n input_unit=UnitForce.DYNES,\n output_unit=UnitForce.DYNES,\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: UnitForceConversion = result\n print(body)\n",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_force_unit_conversion.html"
|
||||
}
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/paths/~1ws~1executor~1term/get/x-python",
|
||||
"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",
|
||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.executor.create_executor_term.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/~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",
|
||||
"path": "/info/x-python",
|
||||
"value": {
|
||||
"client": "# Create a client with your token.\nfrom kittycad 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 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"
|
||||
}
|
||||
}
|
||||
]
|
@ -12,6 +12,8 @@ class FileImportFormat(str, Enum):
|
||||
OBJ = "obj"
|
||||
"""# The PLY file format. <https://en.wikipedia.org/wiki/PLY_(file_format)> """ # noqa: E501
|
||||
PLY = "ply"
|
||||
"""# SolidWorks part (SLDPRT) format. """ # noqa: E501
|
||||
SLDPRT = "sldprt"
|
||||
"""# The STEP file format. <https://en.wikipedia.org/wiki/ISO_10303-21> """ # noqa: E501
|
||||
STEP = "step"
|
||||
"""# The STL file format. <https://en.wikipedia.org/wiki/STL_(file_format)> """ # noqa: E501
|
||||
|
@ -106,57 +106,7 @@ class gltf:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
EN = TypeVar("EN", bound="step")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class step:
|
||||
"""ISO 10303-21 (STEP) format.""" # noqa: E501
|
||||
|
||||
type: str = "step"
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
type = self.type
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
field_dict["type"] = type
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[EN], src_dict: Dict[str, Any]) -> EN:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
step = cls(
|
||||
type=type,
|
||||
)
|
||||
|
||||
step.additional_properties = d
|
||||
return step
|
||||
|
||||
@property
|
||||
def additional_keys(self) -> List[str]:
|
||||
return list(self.additional_properties.keys())
|
||||
|
||||
def __getitem__(self, key: str) -> Any:
|
||||
return self.additional_properties[key]
|
||||
|
||||
def __setitem__(self, key: str, value: Any) -> None:
|
||||
self.additional_properties[key] = value
|
||||
|
||||
def __delitem__(self, key: str) -> None:
|
||||
del self.additional_properties[key]
|
||||
|
||||
def __contains__(self, key: str) -> bool:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
RS = TypeVar("RS", bound="obj")
|
||||
EN = TypeVar("EN", bound="obj")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -188,7 +138,7 @@ class obj:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[RS], src_dict: Dict[str, Any]) -> RS:
|
||||
def from_dict(cls: Type[EN], src_dict: Dict[str, Any]) -> EN:
|
||||
d = src_dict.copy()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -232,7 +182,7 @@ class obj:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LR = TypeVar("LR", bound="ply")
|
||||
RS = TypeVar("RS", bound="ply")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -264,7 +214,7 @@ class ply:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LR], src_dict: Dict[str, Any]) -> LR:
|
||||
def from_dict(cls: Type[RS], src_dict: Dict[str, Any]) -> RS:
|
||||
d = src_dict.copy()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -308,7 +258,107 @@ class ply:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
MP = TypeVar("MP", bound="stl")
|
||||
LR = TypeVar("LR", bound="sldprt")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class sldprt:
|
||||
"""SolidWorks part (SLDPRT) format.""" # noqa: E501
|
||||
|
||||
type: str = "sldprt"
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
type = self.type
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
field_dict["type"] = type
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LR], src_dict: Dict[str, Any]) -> LR:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
sldprt = cls(
|
||||
type=type,
|
||||
)
|
||||
|
||||
sldprt.additional_properties = d
|
||||
return sldprt
|
||||
|
||||
@property
|
||||
def additional_keys(self) -> List[str]:
|
||||
return list(self.additional_properties.keys())
|
||||
|
||||
def __getitem__(self, key: str) -> Any:
|
||||
return self.additional_properties[key]
|
||||
|
||||
def __setitem__(self, key: str, value: Any) -> None:
|
||||
self.additional_properties[key] = value
|
||||
|
||||
def __delitem__(self, key: str) -> None:
|
||||
del self.additional_properties[key]
|
||||
|
||||
def __contains__(self, key: str) -> bool:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
MP = TypeVar("MP", bound="step")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class step:
|
||||
"""ISO 10303-21 (STEP) format.""" # noqa: E501
|
||||
|
||||
type: str = "step"
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
type = self.type
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
field_dict["type"] = type
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MP], src_dict: Dict[str, Any]) -> MP:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
step = cls(
|
||||
type=type,
|
||||
)
|
||||
|
||||
step.additional_properties = d
|
||||
return step
|
||||
|
||||
@property
|
||||
def additional_keys(self) -> List[str]:
|
||||
return list(self.additional_properties.keys())
|
||||
|
||||
def __getitem__(self, key: str) -> Any:
|
||||
return self.additional_properties[key]
|
||||
|
||||
def __setitem__(self, key: str, value: Any) -> None:
|
||||
self.additional_properties[key] = value
|
||||
|
||||
def __delitem__(self, key: str) -> None:
|
||||
del self.additional_properties[key]
|
||||
|
||||
def __contains__(self, key: str) -> bool:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
WF = TypeVar("WF", bound="stl")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -340,7 +390,7 @@ class stl:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MP], src_dict: Dict[str, Any]) -> MP:
|
||||
def from_dict(cls: Type[WF], src_dict: Dict[str, Any]) -> WF:
|
||||
d = src_dict.copy()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -384,4 +434,4 @@ class stl:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
InputFormat = Union[fbx, gltf, step, obj, ply, stl]
|
||||
InputFormat = Union[fbx, gltf, obj, ply, sldprt, step, stl]
|
||||
|
@ -8,7 +8,7 @@ from ..models.currency import Currency
|
||||
from ..models.invoice_status import InvoiceStatus
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
WF = TypeVar("WF", bound="Invoice")
|
||||
RO = TypeVar("RO", bound="Invoice")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -144,7 +144,7 @@ class Invoice:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WF], src_dict: Dict[str, Any]) -> WF:
|
||||
def from_dict(cls: Type[RO], src_dict: Dict[str, Any]) -> RO:
|
||||
d = src_dict.copy()
|
||||
amount_due = d.pop("amount_due", UNSET)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.currency import Currency
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
RO = TypeVar("RO", bound="InvoiceLineItem")
|
||||
DN = TypeVar("DN", bound="InvoiceLineItem")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -49,7 +49,7 @@ class InvoiceLineItem:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[RO], src_dict: Dict[str, Any]) -> RO:
|
||||
def from_dict(cls: Type[DN], src_dict: Dict[str, Any]) -> DN:
|
||||
d = src_dict.copy()
|
||||
amount = d.pop("amount", UNSET)
|
||||
|
||||
|
@ -7,7 +7,7 @@ from ..models.jetstream_stats import JetstreamStats
|
||||
from ..models.meta_cluster_info import MetaClusterInfo
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
DN = TypeVar("DN", bound="Jetstream")
|
||||
BA = TypeVar("BA", bound="Jetstream")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -41,7 +41,7 @@ class Jetstream:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[DN], src_dict: Dict[str, Any]) -> DN:
|
||||
def from_dict(cls: Type[BA], src_dict: Dict[str, Any]) -> BA:
|
||||
d = src_dict.copy()
|
||||
_config = d.pop("config", UNSET)
|
||||
config: Union[Unset, JetstreamConfig]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
BA = TypeVar("BA", bound="JetstreamApiStats")
|
||||
OR = TypeVar("OR", bound="JetstreamApiStats")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class JetstreamApiStats:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[BA], src_dict: Dict[str, Any]) -> BA:
|
||||
def from_dict(cls: Type[OR], src_dict: Dict[str, Any]) -> OR:
|
||||
d = src_dict.copy()
|
||||
errors = d.pop("errors", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
OR = TypeVar("OR", bound="JetstreamConfig")
|
||||
CB = TypeVar("CB", bound="JetstreamConfig")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -39,7 +39,7 @@ class JetstreamConfig:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[OR], src_dict: Dict[str, Any]) -> OR:
|
||||
def from_dict(cls: Type[CB], src_dict: Dict[str, Any]) -> CB:
|
||||
d = src_dict.copy()
|
||||
domain = d.pop("domain", UNSET)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.jetstream_api_stats import JetstreamApiStats
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
CB = TypeVar("CB", bound="JetstreamStats")
|
||||
LC = TypeVar("LC", bound="JetstreamStats")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -53,7 +53,7 @@ class JetstreamStats:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CB], src_dict: Dict[str, Any]) -> CB:
|
||||
def from_dict(cls: Type[LC], src_dict: Dict[str, Any]) -> LC:
|
||||
d = src_dict.copy()
|
||||
accounts = d.pop("accounts", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
LC = TypeVar("LC", bound="LeafNode")
|
||||
TO = TypeVar("TO", bound="LeafNode")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -39,7 +39,7 @@ class LeafNode:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LC], src_dict: Dict[str, Any]) -> LC:
|
||||
def from_dict(cls: Type[TO], src_dict: Dict[str, Any]) -> TO:
|
||||
d = src_dict.copy()
|
||||
auth_timeout = d.pop("auth_timeout", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
TO = TypeVar("TO", bound="Mesh")
|
||||
ZP = TypeVar("ZP", bound="Mesh")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -25,7 +25,7 @@ class Mesh:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TO], src_dict: Dict[str, Any]) -> TO:
|
||||
def from_dict(cls: Type[ZP], src_dict: Dict[str, Any]) -> ZP:
|
||||
d = src_dict.copy()
|
||||
mesh = d.pop("mesh", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
ZP = TypeVar("ZP", bound="MetaClusterInfo")
|
||||
EO = TypeVar("EO", bound="MetaClusterInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class MetaClusterInfo:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[ZP], src_dict: Dict[str, Any]) -> ZP:
|
||||
def from_dict(cls: Type[EO], src_dict: Dict[str, Any]) -> EO:
|
||||
d = src_dict.copy()
|
||||
cluster_size = d.pop("cluster_size", UNSET)
|
||||
|
||||
|
@ -11,7 +11,7 @@ from ..models.file_system_metadata import FileSystemMetadata
|
||||
from ..models.point_e_metadata import PointEMetadata
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
EO = TypeVar("EO", bound="Metadata")
|
||||
NY = TypeVar("NY", bound="Metadata")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -71,7 +71,7 @@ class Metadata:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[EO], src_dict: Dict[str, Any]) -> EO:
|
||||
def from_dict(cls: Type[NY], src_dict: Dict[str, Any]) -> NY:
|
||||
d = src_dict.copy()
|
||||
_cache = d.pop("cache", UNSET)
|
||||
cache: Union[Unset, CacheMetadata]
|
||||
|
@ -16,7 +16,7 @@ from ..models.scene_selection_type import SceneSelectionType
|
||||
from ..models.scene_tool_type import SceneToolType
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
NY = TypeVar("NY", bound="start_path")
|
||||
QO = TypeVar("QO", bound="start_path")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -38,7 +38,7 @@ class start_path:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[NY], src_dict: Dict[str, Any]) -> NY:
|
||||
def from_dict(cls: Type[QO], src_dict: Dict[str, Any]) -> QO:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -66,7 +66,7 @@ class start_path:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
QO = TypeVar("QO", bound="move_path_pen")
|
||||
KX = TypeVar("KX", bound="move_path_pen")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -98,7 +98,7 @@ class move_path_pen:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[QO], src_dict: Dict[str, Any]) -> QO:
|
||||
def from_dict(cls: Type[KX], src_dict: Dict[str, Any]) -> KX:
|
||||
d = src_dict.copy()
|
||||
_path = d.pop("path", UNSET)
|
||||
path: Union[Unset, ModelingCmdId]
|
||||
@ -142,7 +142,7 @@ class move_path_pen:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
KX = TypeVar("KX", bound="extend_path")
|
||||
IZ = TypeVar("IZ", bound="extend_path")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -174,7 +174,7 @@ class extend_path:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[KX], src_dict: Dict[str, Any]) -> KX:
|
||||
def from_dict(cls: Type[IZ], src_dict: Dict[str, Any]) -> IZ:
|
||||
d = src_dict.copy()
|
||||
_path = d.pop("path", UNSET)
|
||||
path: Union[Unset, ModelingCmdId]
|
||||
@ -218,7 +218,7 @@ class extend_path:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
IZ = TypeVar("IZ", bound="extrude")
|
||||
WO = TypeVar("WO", bound="extrude")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -253,7 +253,7 @@ class extrude:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[IZ], src_dict: Dict[str, Any]) -> IZ:
|
||||
def from_dict(cls: Type[WO], src_dict: Dict[str, Any]) -> WO:
|
||||
d = src_dict.copy()
|
||||
cap = d.pop("cap", UNSET)
|
||||
|
||||
@ -295,7 +295,7 @@ class extrude:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
WO = TypeVar("WO", bound="close_path")
|
||||
NK = TypeVar("NK", bound="close_path")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -321,7 +321,7 @@ class close_path:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WO], src_dict: Dict[str, Any]) -> WO:
|
||||
def from_dict(cls: Type[NK], src_dict: Dict[str, Any]) -> NK:
|
||||
d = src_dict.copy()
|
||||
path_id = d.pop("path_id", UNSET)
|
||||
|
||||
@ -352,7 +352,7 @@ class close_path:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
NK = TypeVar("NK", bound="camera_drag_start")
|
||||
UQ = TypeVar("UQ", bound="camera_drag_start")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -384,7 +384,7 @@ class camera_drag_start:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[NK], src_dict: Dict[str, Any]) -> NK:
|
||||
def from_dict(cls: Type[UQ], src_dict: Dict[str, Any]) -> UQ:
|
||||
d = src_dict.copy()
|
||||
_interaction = d.pop("interaction", UNSET)
|
||||
interaction: Union[Unset, CameraDragInteractionType]
|
||||
@ -428,7 +428,7 @@ class camera_drag_start:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
UQ = TypeVar("UQ", bound="camera_drag_move")
|
||||
QE = TypeVar("QE", bound="camera_drag_move")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -464,7 +464,7 @@ class camera_drag_move:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UQ], src_dict: Dict[str, Any]) -> UQ:
|
||||
def from_dict(cls: Type[QE], src_dict: Dict[str, Any]) -> QE:
|
||||
d = src_dict.copy()
|
||||
_interaction = d.pop("interaction", UNSET)
|
||||
interaction: Union[Unset, CameraDragInteractionType]
|
||||
@ -511,7 +511,7 @@ class camera_drag_move:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
QE = TypeVar("QE", bound="camera_drag_end")
|
||||
XH = TypeVar("XH", bound="camera_drag_end")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -543,7 +543,7 @@ class camera_drag_end:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[QE], src_dict: Dict[str, Any]) -> QE:
|
||||
def from_dict(cls: Type[XH], src_dict: Dict[str, Any]) -> XH:
|
||||
d = src_dict.copy()
|
||||
_interaction = d.pop("interaction", UNSET)
|
||||
interaction: Union[Unset, CameraDragInteractionType]
|
||||
@ -587,7 +587,7 @@ class camera_drag_end:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
XH = TypeVar("XH", bound="default_camera_look_at")
|
||||
KT = TypeVar("KT", bound="default_camera_look_at")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -624,7 +624,7 @@ class default_camera_look_at:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[XH], src_dict: Dict[str, Any]) -> XH:
|
||||
def from_dict(cls: Type[KT], src_dict: Dict[str, Any]) -> KT:
|
||||
d = src_dict.copy()
|
||||
_center = d.pop("center", UNSET)
|
||||
center: Union[Unset, Point3d]
|
||||
@ -676,7 +676,7 @@ class default_camera_look_at:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
KT = TypeVar("KT", bound="default_camera_zoom")
|
||||
BV = TypeVar("BV", bound="default_camera_zoom")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -702,7 +702,7 @@ class default_camera_zoom:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[KT], src_dict: Dict[str, Any]) -> KT:
|
||||
def from_dict(cls: Type[BV], src_dict: Dict[str, Any]) -> BV:
|
||||
d = src_dict.copy()
|
||||
magnitude = d.pop("magnitude", UNSET)
|
||||
|
||||
@ -733,7 +733,7 @@ class default_camera_zoom:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
BV = TypeVar("BV", bound="default_camera_enable_sketch_mode")
|
||||
GU = TypeVar("GU", bound="default_camera_enable_sketch_mode")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -782,7 +782,7 @@ class default_camera_enable_sketch_mode:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[BV], src_dict: Dict[str, Any]) -> BV:
|
||||
def from_dict(cls: Type[GU], src_dict: Dict[str, Any]) -> GU:
|
||||
d = src_dict.copy()
|
||||
animated = d.pop("animated", UNSET)
|
||||
|
||||
@ -843,7 +843,7 @@ class default_camera_enable_sketch_mode:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
GU = TypeVar("GU", bound="default_camera_disable_sketch_mode")
|
||||
SS = TypeVar("SS", bound="default_camera_disable_sketch_mode")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -865,7 +865,7 @@ class default_camera_disable_sketch_mode:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GU], src_dict: Dict[str, Any]) -> GU:
|
||||
def from_dict(cls: Type[SS], src_dict: Dict[str, Any]) -> SS:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -893,7 +893,7 @@ class default_camera_disable_sketch_mode:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
SS = TypeVar("SS", bound="export")
|
||||
UP = TypeVar("UP", bound="export")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -926,7 +926,7 @@ class export:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SS], src_dict: Dict[str, Any]) -> SS:
|
||||
def from_dict(cls: Type[UP], src_dict: Dict[str, Any]) -> UP:
|
||||
d = src_dict.copy()
|
||||
entity_ids = cast(List[str], d.pop("entity_ids", UNSET))
|
||||
|
||||
@ -965,7 +965,7 @@ class export:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
UP = TypeVar("UP", bound="entity_get_parent_id")
|
||||
AZ = TypeVar("AZ", bound="entity_get_parent_id")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -991,7 +991,7 @@ class entity_get_parent_id:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UP], src_dict: Dict[str, Any]) -> UP:
|
||||
def from_dict(cls: Type[AZ], src_dict: Dict[str, Any]) -> AZ:
|
||||
d = src_dict.copy()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -1022,7 +1022,7 @@ class entity_get_parent_id:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
AZ = TypeVar("AZ", bound="entity_get_num_children")
|
||||
DJ = TypeVar("DJ", bound="entity_get_num_children")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1048,7 +1048,7 @@ class entity_get_num_children:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[AZ], src_dict: Dict[str, Any]) -> AZ:
|
||||
def from_dict(cls: Type[DJ], src_dict: Dict[str, Any]) -> DJ:
|
||||
d = src_dict.copy()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -1079,7 +1079,7 @@ class entity_get_num_children:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
DJ = TypeVar("DJ", bound="entity_get_child_uuid")
|
||||
WJ = TypeVar("WJ", bound="entity_get_child_uuid")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1109,7 +1109,7 @@ class entity_get_child_uuid:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[DJ], src_dict: Dict[str, Any]) -> DJ:
|
||||
def from_dict(cls: Type[WJ], src_dict: Dict[str, Any]) -> WJ:
|
||||
d = src_dict.copy()
|
||||
child_index = d.pop("child_index", UNSET)
|
||||
|
||||
@ -1143,7 +1143,7 @@ class entity_get_child_uuid:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
WJ = TypeVar("WJ", bound="entity_get_all_child_uuids")
|
||||
TR = TypeVar("TR", bound="entity_get_all_child_uuids")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1169,7 +1169,7 @@ class entity_get_all_child_uuids:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WJ], src_dict: Dict[str, Any]) -> WJ:
|
||||
def from_dict(cls: Type[TR], src_dict: Dict[str, Any]) -> TR:
|
||||
d = src_dict.copy()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -1200,7 +1200,7 @@ class entity_get_all_child_uuids:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
TR = TypeVar("TR", bound="edit_mode_enter")
|
||||
YD = TypeVar("YD", bound="edit_mode_enter")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1226,7 +1226,7 @@ class edit_mode_enter:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TR], src_dict: Dict[str, Any]) -> TR:
|
||||
def from_dict(cls: Type[YD], src_dict: Dict[str, Any]) -> YD:
|
||||
d = src_dict.copy()
|
||||
target = d.pop("target", UNSET)
|
||||
|
||||
@ -1257,7 +1257,7 @@ class edit_mode_enter:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
YD = TypeVar("YD", bound="edit_mode_exit")
|
||||
JF = TypeVar("JF", bound="edit_mode_exit")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1279,7 +1279,7 @@ class edit_mode_exit:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[YD], src_dict: Dict[str, Any]) -> YD:
|
||||
def from_dict(cls: Type[JF], src_dict: Dict[str, Any]) -> JF:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -1307,7 +1307,7 @@ class edit_mode_exit:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
JF = TypeVar("JF", bound="select_with_point")
|
||||
VP = TypeVar("VP", bound="select_with_point")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1339,7 +1339,7 @@ class select_with_point:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[JF], src_dict: Dict[str, Any]) -> JF:
|
||||
def from_dict(cls: Type[VP], src_dict: Dict[str, Any]) -> VP:
|
||||
d = src_dict.copy()
|
||||
_selected_at_window = d.pop("selected_at_window", UNSET)
|
||||
selected_at_window: Union[Unset, Point2d]
|
||||
@ -1383,7 +1383,7 @@ class select_with_point:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
VP = TypeVar("VP", bound="select_clear")
|
||||
EL = TypeVar("EL", bound="select_clear")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1405,7 +1405,7 @@ class select_clear:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[VP], src_dict: Dict[str, Any]) -> VP:
|
||||
def from_dict(cls: Type[EL], src_dict: Dict[str, Any]) -> EL:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -1433,7 +1433,7 @@ class select_clear:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
EL = TypeVar("EL", bound="select_add")
|
||||
ZG = TypeVar("ZG", bound="select_add")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1461,7 +1461,7 @@ class select_add:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[EL], src_dict: Dict[str, Any]) -> EL:
|
||||
def from_dict(cls: Type[ZG], src_dict: Dict[str, Any]) -> ZG:
|
||||
d = src_dict.copy()
|
||||
entities = cast(List[str], d.pop("entities", UNSET))
|
||||
|
||||
@ -1492,7 +1492,7 @@ class select_add:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
ZG = TypeVar("ZG", bound="select_remove")
|
||||
LF = TypeVar("LF", bound="select_remove")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1520,7 +1520,7 @@ class select_remove:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[ZG], src_dict: Dict[str, Any]) -> ZG:
|
||||
def from_dict(cls: Type[LF], src_dict: Dict[str, Any]) -> LF:
|
||||
d = src_dict.copy()
|
||||
entities = cast(List[str], d.pop("entities", UNSET))
|
||||
|
||||
@ -1551,7 +1551,7 @@ class select_remove:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LF = TypeVar("LF", bound="select_replace")
|
||||
CS = TypeVar("CS", bound="select_replace")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1579,7 +1579,7 @@ class select_replace:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LF], src_dict: Dict[str, Any]) -> LF:
|
||||
def from_dict(cls: Type[CS], src_dict: Dict[str, Any]) -> CS:
|
||||
d = src_dict.copy()
|
||||
entities = cast(List[str], d.pop("entities", UNSET))
|
||||
|
||||
@ -1610,7 +1610,7 @@ class select_replace:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
CS = TypeVar("CS", bound="select_get")
|
||||
GN = TypeVar("GN", bound="select_get")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1632,7 +1632,7 @@ class select_get:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CS], src_dict: Dict[str, Any]) -> CS:
|
||||
def from_dict(cls: Type[GN], src_dict: Dict[str, Any]) -> GN:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -1660,7 +1660,7 @@ class select_get:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
GN = TypeVar("GN", bound="highlight_set_entity")
|
||||
GD = TypeVar("GD", bound="highlight_set_entity")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1691,7 +1691,7 @@ class highlight_set_entity:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GN], src_dict: Dict[str, Any]) -> GN:
|
||||
def from_dict(cls: Type[GD], src_dict: Dict[str, Any]) -> GD:
|
||||
d = src_dict.copy()
|
||||
_selected_at_window = d.pop("selected_at_window", UNSET)
|
||||
selected_at_window: Union[Unset, Point2d]
|
||||
@ -1730,7 +1730,7 @@ class highlight_set_entity:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
GD = TypeVar("GD", bound="highlight_set_entities")
|
||||
VJ = TypeVar("VJ", bound="highlight_set_entities")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1758,7 +1758,7 @@ class highlight_set_entities:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GD], src_dict: Dict[str, Any]) -> GD:
|
||||
def from_dict(cls: Type[VJ], src_dict: Dict[str, Any]) -> VJ:
|
||||
d = src_dict.copy()
|
||||
entities = cast(List[str], d.pop("entities", UNSET))
|
||||
|
||||
@ -1789,7 +1789,7 @@ class highlight_set_entities:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
VJ = TypeVar("VJ", bound="new_annotation")
|
||||
OX = TypeVar("OX", bound="new_annotation")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1825,7 +1825,7 @@ class new_annotation:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[VJ], src_dict: Dict[str, Any]) -> VJ:
|
||||
def from_dict(cls: Type[OX], src_dict: Dict[str, Any]) -> OX:
|
||||
d = src_dict.copy()
|
||||
_annotation_type = d.pop("annotation_type", UNSET)
|
||||
annotation_type: Union[Unset, AnnotationType]
|
||||
@ -1872,7 +1872,7 @@ class new_annotation:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
OX = TypeVar("OX", bound="update_annotation")
|
||||
YW = TypeVar("YW", bound="update_annotation")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1903,7 +1903,7 @@ class update_annotation:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[OX], src_dict: Dict[str, Any]) -> OX:
|
||||
def from_dict(cls: Type[YW], src_dict: Dict[str, Any]) -> YW:
|
||||
d = src_dict.copy()
|
||||
annotation_id = d.pop("annotation_id", UNSET)
|
||||
|
||||
@ -1942,7 +1942,7 @@ class update_annotation:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
YW = TypeVar("YW", bound="object_visible")
|
||||
QX = TypeVar("QX", bound="object_visible")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1972,7 +1972,7 @@ class object_visible:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[YW], src_dict: Dict[str, Any]) -> YW:
|
||||
def from_dict(cls: Type[QX], src_dict: Dict[str, Any]) -> QX:
|
||||
d = src_dict.copy()
|
||||
hidden = d.pop("hidden", UNSET)
|
||||
|
||||
@ -2006,7 +2006,7 @@ class object_visible:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
QX = TypeVar("QX", bound="get_entity_type")
|
||||
NO = TypeVar("NO", bound="get_entity_type")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2032,7 +2032,7 @@ class get_entity_type:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[QX], src_dict: Dict[str, Any]) -> QX:
|
||||
def from_dict(cls: Type[NO], src_dict: Dict[str, Any]) -> NO:
|
||||
d = src_dict.copy()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -2063,7 +2063,7 @@ class get_entity_type:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
NO = TypeVar("NO", bound="solid3d_get_all_edge_faces")
|
||||
VX = TypeVar("VX", bound="solid3d_get_all_edge_faces")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2093,7 +2093,7 @@ class solid3d_get_all_edge_faces:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[NO], src_dict: Dict[str, Any]) -> NO:
|
||||
def from_dict(cls: Type[VX], src_dict: Dict[str, Any]) -> VX:
|
||||
d = src_dict.copy()
|
||||
edge_id = d.pop("edge_id", UNSET)
|
||||
|
||||
@ -2127,7 +2127,7 @@ class solid3d_get_all_edge_faces:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
VX = TypeVar("VX", bound="solid3d_get_all_opposite_edges")
|
||||
RG = TypeVar("RG", bound="solid3d_get_all_opposite_edges")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2162,7 +2162,7 @@ class solid3d_get_all_opposite_edges:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[VX], src_dict: Dict[str, Any]) -> VX:
|
||||
def from_dict(cls: Type[RG], src_dict: Dict[str, Any]) -> RG:
|
||||
d = src_dict.copy()
|
||||
_along_vector = d.pop("along_vector", UNSET)
|
||||
along_vector: Union[Unset, Point3d]
|
||||
@ -2204,7 +2204,7 @@ class solid3d_get_all_opposite_edges:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
RG = TypeVar("RG", bound="solid3d_get_opposite_edge")
|
||||
IT = TypeVar("IT", bound="solid3d_get_opposite_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2238,7 +2238,7 @@ class solid3d_get_opposite_edge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[RG], src_dict: Dict[str, Any]) -> RG:
|
||||
def from_dict(cls: Type[IT], src_dict: Dict[str, Any]) -> IT:
|
||||
d = src_dict.copy()
|
||||
edge_id = d.pop("edge_id", UNSET)
|
||||
|
||||
@ -2275,7 +2275,7 @@ class solid3d_get_opposite_edge:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
IT = TypeVar("IT", bound="solid3d_get_next_adjacent_edge")
|
||||
LD = TypeVar("LD", bound="solid3d_get_next_adjacent_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2309,7 +2309,7 @@ class solid3d_get_next_adjacent_edge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[IT], src_dict: Dict[str, Any]) -> IT:
|
||||
def from_dict(cls: Type[LD], src_dict: Dict[str, Any]) -> LD:
|
||||
d = src_dict.copy()
|
||||
edge_id = d.pop("edge_id", UNSET)
|
||||
|
||||
@ -2346,7 +2346,7 @@ class solid3d_get_next_adjacent_edge:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LD = TypeVar("LD", bound="solid3d_get_prev_adjacent_edge")
|
||||
UA = TypeVar("UA", bound="solid3d_get_prev_adjacent_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2380,7 +2380,7 @@ class solid3d_get_prev_adjacent_edge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LD], src_dict: Dict[str, Any]) -> LD:
|
||||
def from_dict(cls: Type[UA], src_dict: Dict[str, Any]) -> UA:
|
||||
d = src_dict.copy()
|
||||
edge_id = d.pop("edge_id", UNSET)
|
||||
|
||||
@ -2417,7 +2417,7 @@ class solid3d_get_prev_adjacent_edge:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
UA = TypeVar("UA", bound="send_object")
|
||||
TN = TypeVar("TN", bound="send_object")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2447,7 +2447,7 @@ class send_object:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UA], src_dict: Dict[str, Any]) -> UA:
|
||||
def from_dict(cls: Type[TN], src_dict: Dict[str, Any]) -> TN:
|
||||
d = src_dict.copy()
|
||||
front = d.pop("front", UNSET)
|
||||
|
||||
@ -2481,7 +2481,7 @@ class send_object:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
TN = TypeVar("TN", bound="entity_set_opacity")
|
||||
MZ = TypeVar("MZ", bound="entity_set_opacity")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2511,7 +2511,7 @@ class entity_set_opacity:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TN], src_dict: Dict[str, Any]) -> TN:
|
||||
def from_dict(cls: Type[MZ], src_dict: Dict[str, Any]) -> MZ:
|
||||
d = src_dict.copy()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -2545,7 +2545,7 @@ class entity_set_opacity:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
MZ = TypeVar("MZ", bound="entity_fade")
|
||||
UG = TypeVar("UG", bound="entity_fade")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2579,7 +2579,7 @@ class entity_fade:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MZ], src_dict: Dict[str, Any]) -> MZ:
|
||||
def from_dict(cls: Type[UG], src_dict: Dict[str, Any]) -> UG:
|
||||
d = src_dict.copy()
|
||||
duration_seconds = d.pop("duration_seconds", UNSET)
|
||||
|
||||
@ -2616,7 +2616,7 @@ class entity_fade:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
UG = TypeVar("UG", bound="make_plane")
|
||||
CY = TypeVar("CY", bound="make_plane")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2661,7 +2661,7 @@ class make_plane:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UG], src_dict: Dict[str, Any]) -> UG:
|
||||
def from_dict(cls: Type[CY], src_dict: Dict[str, Any]) -> CY:
|
||||
d = src_dict.copy()
|
||||
clobber = d.pop("clobber", UNSET)
|
||||
|
||||
@ -2719,7 +2719,7 @@ class make_plane:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
CY = TypeVar("CY", bound="plane_set_color")
|
||||
NZ = TypeVar("NZ", bound="plane_set_color")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2750,7 +2750,7 @@ class plane_set_color:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CY], src_dict: Dict[str, Any]) -> CY:
|
||||
def from_dict(cls: Type[NZ], src_dict: Dict[str, Any]) -> NZ:
|
||||
d = src_dict.copy()
|
||||
_color = d.pop("color", UNSET)
|
||||
color: Union[Unset, Color]
|
||||
@ -2789,7 +2789,7 @@ class plane_set_color:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
NZ = TypeVar("NZ", bound="set_tool")
|
||||
LI = TypeVar("LI", bound="set_tool")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2816,7 +2816,7 @@ class set_tool:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[NZ], src_dict: Dict[str, Any]) -> NZ:
|
||||
def from_dict(cls: Type[LI], src_dict: Dict[str, Any]) -> LI:
|
||||
d = src_dict.copy()
|
||||
_tool = d.pop("tool", UNSET)
|
||||
tool: Union[Unset, SceneToolType]
|
||||
@ -2852,19 +2852,21 @@ class set_tool:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LI = TypeVar("LI", bound="mouse_move")
|
||||
LO = TypeVar("LO", bound="mouse_move")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class mouse_move:
|
||||
"""Send a mouse move event.""" # noqa: E501
|
||||
|
||||
sequence: Union[Unset, int] = UNSET
|
||||
type: str = "mouse_move"
|
||||
window: Union[Unset, Point2d] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
sequence = self.sequence
|
||||
type = self.type
|
||||
if not isinstance(self.window, Unset):
|
||||
window = self.window
|
||||
@ -2872,6 +2874,8 @@ class mouse_move:
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if sequence is not UNSET:
|
||||
field_dict["sequence"] = sequence
|
||||
field_dict["type"] = type
|
||||
if window is not UNSET:
|
||||
field_dict["window"] = window
|
||||
@ -2879,8 +2883,10 @@ class mouse_move:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LI], src_dict: Dict[str, Any]) -> LI:
|
||||
def from_dict(cls: Type[LO], src_dict: Dict[str, Any]) -> LO:
|
||||
d = src_dict.copy()
|
||||
sequence = d.pop("sequence", UNSET)
|
||||
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
_window = d.pop("window", UNSET)
|
||||
@ -2891,6 +2897,7 @@ class mouse_move:
|
||||
window = _window # type: ignore[arg-type]
|
||||
|
||||
mouse_move = cls(
|
||||
sequence=sequence,
|
||||
type=type,
|
||||
window=window,
|
||||
)
|
||||
@ -2915,7 +2922,7 @@ class mouse_move:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LO = TypeVar("LO", bound="mouse_click")
|
||||
XJ = TypeVar("XJ", bound="mouse_click")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2942,7 +2949,7 @@ class mouse_click:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LO], src_dict: Dict[str, Any]) -> LO:
|
||||
def from_dict(cls: Type[XJ], src_dict: Dict[str, Any]) -> XJ:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -2978,7 +2985,7 @@ class mouse_click:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
XJ = TypeVar("XJ", bound="sketch_mode_enable")
|
||||
OW = TypeVar("OW", bound="sketch_mode_enable")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3012,7 +3019,7 @@ class sketch_mode_enable:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[XJ], src_dict: Dict[str, Any]) -> XJ:
|
||||
def from_dict(cls: Type[OW], src_dict: Dict[str, Any]) -> OW:
|
||||
d = src_dict.copy()
|
||||
animated = d.pop("animated", UNSET)
|
||||
|
||||
@ -3049,7 +3056,7 @@ class sketch_mode_enable:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
OW = TypeVar("OW", bound="sketch_mode_disable")
|
||||
JQ = TypeVar("JQ", bound="sketch_mode_disable")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3071,7 +3078,7 @@ class sketch_mode_disable:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[OW], src_dict: Dict[str, Any]) -> OW:
|
||||
def from_dict(cls: Type[JQ], src_dict: Dict[str, Any]) -> JQ:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -3099,7 +3106,7 @@ class sketch_mode_disable:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
JQ = TypeVar("JQ", bound="curve_get_type")
|
||||
PQ = TypeVar("PQ", bound="curve_get_type")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3125,7 +3132,7 @@ class curve_get_type:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[JQ], src_dict: Dict[str, Any]) -> JQ:
|
||||
def from_dict(cls: Type[PQ], src_dict: Dict[str, Any]) -> PQ:
|
||||
d = src_dict.copy()
|
||||
curve_id = d.pop("curve_id", UNSET)
|
||||
|
||||
@ -3156,7 +3163,7 @@ class curve_get_type:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
PQ = TypeVar("PQ", bound="curve_get_control_points")
|
||||
IM = TypeVar("IM", bound="curve_get_control_points")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3182,7 +3189,7 @@ class curve_get_control_points:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[PQ], src_dict: Dict[str, Any]) -> PQ:
|
||||
def from_dict(cls: Type[IM], src_dict: Dict[str, Any]) -> IM:
|
||||
d = src_dict.copy()
|
||||
curve_id = d.pop("curve_id", UNSET)
|
||||
|
||||
@ -3213,7 +3220,7 @@ class curve_get_control_points:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
IM = TypeVar("IM", bound="take_snapshot")
|
||||
OU = TypeVar("OU", bound="take_snapshot")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3240,7 +3247,7 @@ class take_snapshot:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[IM], src_dict: Dict[str, Any]) -> IM:
|
||||
def from_dict(cls: Type[OU], src_dict: Dict[str, Any]) -> OU:
|
||||
d = src_dict.copy()
|
||||
_format = d.pop("format", UNSET)
|
||||
format: Union[Unset, ImageFormat]
|
||||
@ -3276,7 +3283,7 @@ class take_snapshot:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
OU = TypeVar("OU", bound="make_axes_gizmo")
|
||||
KL = TypeVar("KL", bound="make_axes_gizmo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3306,7 +3313,7 @@ class make_axes_gizmo:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[OU], src_dict: Dict[str, Any]) -> OU:
|
||||
def from_dict(cls: Type[KL], src_dict: Dict[str, Any]) -> KL:
|
||||
d = src_dict.copy()
|
||||
clobber = d.pop("clobber", UNSET)
|
||||
|
||||
@ -3340,7 +3347,7 @@ class make_axes_gizmo:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
KL = TypeVar("KL", bound="path_get_info")
|
||||
XI = TypeVar("XI", bound="path_get_info")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3366,7 +3373,7 @@ class path_get_info:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[KL], src_dict: Dict[str, Any]) -> KL:
|
||||
def from_dict(cls: Type[XI], src_dict: Dict[str, Any]) -> XI:
|
||||
d = src_dict.copy()
|
||||
path_id = d.pop("path_id", UNSET)
|
||||
|
||||
@ -3397,7 +3404,7 @@ class path_get_info:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
XI = TypeVar("XI", bound="handle_mouse_drag_start")
|
||||
PO = TypeVar("PO", bound="handle_mouse_drag_start")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3424,7 +3431,7 @@ class handle_mouse_drag_start:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[XI], src_dict: Dict[str, Any]) -> XI:
|
||||
def from_dict(cls: Type[PO], src_dict: Dict[str, Any]) -> PO:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -3460,19 +3467,21 @@ class handle_mouse_drag_start:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
PO = TypeVar("PO", bound="handle_mouse_drag_move")
|
||||
PS = TypeVar("PS", bound="handle_mouse_drag_move")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class handle_mouse_drag_move:
|
||||
"""Continue dragging mouse.""" # noqa: E501
|
||||
|
||||
sequence: Union[Unset, int] = UNSET
|
||||
type: str = "handle_mouse_drag_move"
|
||||
window: Union[Unset, Point2d] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
sequence = self.sequence
|
||||
type = self.type
|
||||
if not isinstance(self.window, Unset):
|
||||
window = self.window
|
||||
@ -3480,6 +3489,8 @@ class handle_mouse_drag_move:
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if sequence is not UNSET:
|
||||
field_dict["sequence"] = sequence
|
||||
field_dict["type"] = type
|
||||
if window is not UNSET:
|
||||
field_dict["window"] = window
|
||||
@ -3487,8 +3498,10 @@ class handle_mouse_drag_move:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[PO], src_dict: Dict[str, Any]) -> PO:
|
||||
def from_dict(cls: Type[PS], src_dict: Dict[str, Any]) -> PS:
|
||||
d = src_dict.copy()
|
||||
sequence = d.pop("sequence", UNSET)
|
||||
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
_window = d.pop("window", UNSET)
|
||||
@ -3499,6 +3512,7 @@ class handle_mouse_drag_move:
|
||||
window = _window # type: ignore[arg-type]
|
||||
|
||||
handle_mouse_drag_move = cls(
|
||||
sequence=sequence,
|
||||
type=type,
|
||||
window=window,
|
||||
)
|
||||
@ -3523,7 +3537,7 @@ class handle_mouse_drag_move:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
PS = TypeVar("PS", bound="handle_mouse_drag_end")
|
||||
WR = TypeVar("WR", bound="handle_mouse_drag_end")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3550,7 +3564,7 @@ class handle_mouse_drag_end:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[PS], src_dict: Dict[str, Any]) -> PS:
|
||||
def from_dict(cls: Type[WR], src_dict: Dict[str, Any]) -> WR:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
|
@ -6,7 +6,7 @@ from ..models.modeling_cmd import ModelingCmd
|
||||
from ..models.modeling_cmd_id import ModelingCmdId
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
WR = TypeVar("WR", bound="ModelingCmdReq")
|
||||
XL = TypeVar("XL", bound="ModelingCmdReq")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class ModelingCmdReq:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WR], src_dict: Dict[str, Any]) -> WR:
|
||||
def from_dict(cls: Type[XL], src_dict: Dict[str, Any]) -> XL:
|
||||
d = src_dict.copy()
|
||||
_cmd = d.pop("cmd", UNSET)
|
||||
cmd: Union[Unset, ModelingCmd]
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.modeling_cmd_req import ModelingCmdReq
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
XL = TypeVar("XL", bound="ModelingCmdReqBatch")
|
||||
ZX = TypeVar("ZX", bound="ModelingCmdReqBatch")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class ModelingCmdReqBatch:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[XL], src_dict: Dict[str, Any]) -> XL:
|
||||
def from_dict(cls: Type[ZX], src_dict: Dict[str, Any]) -> ZX:
|
||||
d = src_dict.copy()
|
||||
_cmds = d.pop("cmds", UNSET)
|
||||
if isinstance(_cmds, Unset):
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
ZX = TypeVar("ZX", bound="ModelingError")
|
||||
FT = TypeVar("FT", bound="ModelingError")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -39,7 +39,7 @@ class ModelingError:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[ZX], src_dict: Dict[str, Any]) -> ZX:
|
||||
def from_dict(cls: Type[FT], src_dict: Dict[str, Any]) -> FT:
|
||||
d = src_dict.copy()
|
||||
error_code = d.pop("error_code", UNSET)
|
||||
|
||||
|
@ -13,7 +13,7 @@ success = OkModelingCmdResponse
|
||||
error = ModelingError
|
||||
|
||||
|
||||
FT = TypeVar("FT", bound="cancelled")
|
||||
NX = TypeVar("NX", bound="cancelled")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class cancelled:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FT], src_dict: Dict[str, Any]) -> FT:
|
||||
def from_dict(cls: Type[NX], src_dict: Dict[str, Any]) -> NX:
|
||||
d = src_dict.copy()
|
||||
_what_failed = d.pop("what_failed", UNSET)
|
||||
what_failed: Union[Unset, ModelingCmdId]
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.modeling_outcome import ModelingOutcome
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
NX = TypeVar("NX", bound="ModelingOutcomes")
|
||||
SC = TypeVar("SC", bound="ModelingOutcomes")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class ModelingOutcomes:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[NX], src_dict: Dict[str, Any]) -> NX:
|
||||
def from_dict(cls: Type[SC], src_dict: Dict[str, Any]) -> SC:
|
||||
d = src_dict.copy()
|
||||
_outcomes = d.pop("outcomes", UNSET)
|
||||
if isinstance(_outcomes, Unset):
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
SC = TypeVar("SC", bound="MouseClick")
|
||||
TX = TypeVar("TX", bound="MouseClick")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class MouseClick:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SC], src_dict: Dict[str, Any]) -> SC:
|
||||
def from_dict(cls: Type[TX], src_dict: Dict[str, Any]) -> TX:
|
||||
d = src_dict.copy()
|
||||
entities_modified = cast(List[str], d.pop("entities_modified", UNSET))
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.country_code import CountryCode
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
TX = TypeVar("TX", bound="NewAddress")
|
||||
JA = TypeVar("JA", bound="NewAddress")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -53,7 +53,7 @@ class NewAddress:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TX], src_dict: Dict[str, Any]) -> TX:
|
||||
def from_dict(cls: Type[JA], src_dict: Dict[str, Any]) -> JA:
|
||||
d = src_dict.copy()
|
||||
city = d.pop("city", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
JA = TypeVar("JA", bound="OAuth2ClientInfo")
|
||||
SK = TypeVar("SK", bound="OAuth2ClientInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class OAuth2ClientInfo:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[JA], src_dict: Dict[str, Any]) -> JA:
|
||||
def from_dict(cls: Type[SK], src_dict: Dict[str, Any]) -> SK:
|
||||
d = src_dict.copy()
|
||||
csrf_token = d.pop("csrf_token", UNSET)
|
||||
|
||||
|
@ -23,7 +23,7 @@ from ..models.solid3d_get_prev_adjacent_edge import Solid3dGetPrevAdjacentEdge
|
||||
from ..models.take_snapshot import TakeSnapshot
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
SK = TypeVar("SK", bound="empty")
|
||||
UK = TypeVar("UK", bound="empty")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -45,7 +45,7 @@ class empty:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SK], src_dict: Dict[str, Any]) -> SK:
|
||||
def from_dict(cls: Type[UK], src_dict: Dict[str, Any]) -> UK:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -73,7 +73,7 @@ class empty:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
UK = TypeVar("UK", bound="export")
|
||||
CX = TypeVar("CX", bound="export")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -100,7 +100,7 @@ class export:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UK], src_dict: Dict[str, Any]) -> UK:
|
||||
def from_dict(cls: Type[CX], src_dict: Dict[str, Any]) -> CX:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, Export]
|
||||
@ -136,7 +136,7 @@ class export:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
CX = TypeVar("CX", bound="select_with_point")
|
||||
MT = TypeVar("MT", bound="select_with_point")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -163,7 +163,7 @@ class select_with_point:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CX], src_dict: Dict[str, Any]) -> CX:
|
||||
def from_dict(cls: Type[MT], src_dict: Dict[str, Any]) -> MT:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, SelectWithPoint]
|
||||
@ -199,7 +199,7 @@ class select_with_point:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
MT = TypeVar("MT", bound="highlight_set_entity")
|
||||
LJ = TypeVar("LJ", bound="highlight_set_entity")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -226,7 +226,7 @@ class highlight_set_entity:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MT], src_dict: Dict[str, Any]) -> MT:
|
||||
def from_dict(cls: Type[LJ], src_dict: Dict[str, Any]) -> LJ:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, HighlightSetEntity]
|
||||
@ -262,7 +262,7 @@ class highlight_set_entity:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LJ = TypeVar("LJ", bound="entity_get_child_uuid")
|
||||
TF = TypeVar("TF", bound="entity_get_child_uuid")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -289,7 +289,7 @@ class entity_get_child_uuid:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LJ], src_dict: Dict[str, Any]) -> LJ:
|
||||
def from_dict(cls: Type[TF], src_dict: Dict[str, Any]) -> TF:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, EntityGetChildUuid]
|
||||
@ -325,7 +325,7 @@ class entity_get_child_uuid:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
TF = TypeVar("TF", bound="entity_get_num_children")
|
||||
HF = TypeVar("HF", bound="entity_get_num_children")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -352,7 +352,7 @@ class entity_get_num_children:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TF], src_dict: Dict[str, Any]) -> TF:
|
||||
def from_dict(cls: Type[HF], src_dict: Dict[str, Any]) -> HF:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, EntityGetNumChildren]
|
||||
@ -388,7 +388,7 @@ class entity_get_num_children:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
HF = TypeVar("HF", bound="entity_get_parent_id")
|
||||
JD = TypeVar("JD", bound="entity_get_parent_id")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -415,7 +415,7 @@ class entity_get_parent_id:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[HF], src_dict: Dict[str, Any]) -> HF:
|
||||
def from_dict(cls: Type[JD], src_dict: Dict[str, Any]) -> JD:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, EntityGetParentId]
|
||||
@ -451,7 +451,7 @@ class entity_get_parent_id:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
JD = TypeVar("JD", bound="entity_get_all_child_uuids")
|
||||
RZ = TypeVar("RZ", bound="entity_get_all_child_uuids")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -478,7 +478,7 @@ class entity_get_all_child_uuids:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[JD], src_dict: Dict[str, Any]) -> JD:
|
||||
def from_dict(cls: Type[RZ], src_dict: Dict[str, Any]) -> RZ:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, EntityGetAllChildUuids]
|
||||
@ -514,7 +514,7 @@ class entity_get_all_child_uuids:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
RZ = TypeVar("RZ", bound="select_get")
|
||||
BH = TypeVar("BH", bound="select_get")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -541,7 +541,7 @@ class select_get:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[RZ], src_dict: Dict[str, Any]) -> RZ:
|
||||
def from_dict(cls: Type[BH], src_dict: Dict[str, Any]) -> BH:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, SelectGet]
|
||||
@ -577,7 +577,7 @@ class select_get:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
BH = TypeVar("BH", bound="get_entity_type")
|
||||
SX = TypeVar("SX", bound="get_entity_type")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -604,7 +604,7 @@ class get_entity_type:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[BH], src_dict: Dict[str, Any]) -> BH:
|
||||
def from_dict(cls: Type[SX], src_dict: Dict[str, Any]) -> SX:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, GetEntityType]
|
||||
@ -640,7 +640,7 @@ class get_entity_type:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
SX = TypeVar("SX", bound="solid3d_get_all_edge_faces")
|
||||
CN = TypeVar("CN", bound="solid3d_get_all_edge_faces")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -667,7 +667,7 @@ class solid3d_get_all_edge_faces:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SX], src_dict: Dict[str, Any]) -> SX:
|
||||
def from_dict(cls: Type[CN], src_dict: Dict[str, Any]) -> CN:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, Solid3dGetAllEdgeFaces]
|
||||
@ -703,7 +703,7 @@ class solid3d_get_all_edge_faces:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
CN = TypeVar("CN", bound="solid3d_get_all_opposite_edges")
|
||||
GS = TypeVar("GS", bound="solid3d_get_all_opposite_edges")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -730,7 +730,7 @@ class solid3d_get_all_opposite_edges:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CN], src_dict: Dict[str, Any]) -> CN:
|
||||
def from_dict(cls: Type[GS], src_dict: Dict[str, Any]) -> GS:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, Solid3dGetAllOppositeEdges]
|
||||
@ -766,7 +766,7 @@ class solid3d_get_all_opposite_edges:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
GS = TypeVar("GS", bound="solid3d_get_opposite_edge")
|
||||
SO = TypeVar("SO", bound="solid3d_get_opposite_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -793,7 +793,7 @@ class solid3d_get_opposite_edge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GS], src_dict: Dict[str, Any]) -> GS:
|
||||
def from_dict(cls: Type[SO], src_dict: Dict[str, Any]) -> SO:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, Solid3dGetOppositeEdge]
|
||||
@ -829,7 +829,7 @@ class solid3d_get_opposite_edge:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
SO = TypeVar("SO", bound="solid3d_get_prev_adjacent_edge")
|
||||
ZS = TypeVar("ZS", bound="solid3d_get_prev_adjacent_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -856,7 +856,7 @@ class solid3d_get_prev_adjacent_edge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SO], src_dict: Dict[str, Any]) -> SO:
|
||||
def from_dict(cls: Type[ZS], src_dict: Dict[str, Any]) -> ZS:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, Solid3dGetPrevAdjacentEdge]
|
||||
@ -892,7 +892,7 @@ class solid3d_get_prev_adjacent_edge:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
ZS = TypeVar("ZS", bound="solid3d_get_next_adjacent_edge")
|
||||
AM = TypeVar("AM", bound="solid3d_get_next_adjacent_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -919,7 +919,7 @@ class solid3d_get_next_adjacent_edge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[ZS], src_dict: Dict[str, Any]) -> ZS:
|
||||
def from_dict(cls: Type[AM], src_dict: Dict[str, Any]) -> AM:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, Solid3dGetNextAdjacentEdge]
|
||||
@ -955,7 +955,7 @@ class solid3d_get_next_adjacent_edge:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
AM = TypeVar("AM", bound="mouse_click")
|
||||
GK = TypeVar("GK", bound="mouse_click")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -982,7 +982,7 @@ class mouse_click:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[AM], src_dict: Dict[str, Any]) -> AM:
|
||||
def from_dict(cls: Type[GK], src_dict: Dict[str, Any]) -> GK:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, MouseClick]
|
||||
@ -1018,7 +1018,7 @@ class mouse_click:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
GK = TypeVar("GK", bound="curve_get_type")
|
||||
SG = TypeVar("SG", bound="curve_get_type")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1045,7 +1045,7 @@ class curve_get_type:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GK], src_dict: Dict[str, Any]) -> GK:
|
||||
def from_dict(cls: Type[SG], src_dict: Dict[str, Any]) -> SG:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, CurveGetType]
|
||||
@ -1081,7 +1081,7 @@ class curve_get_type:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
SG = TypeVar("SG", bound="curve_get_control_points")
|
||||
QZ = TypeVar("QZ", bound="curve_get_control_points")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1108,7 +1108,7 @@ class curve_get_control_points:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SG], src_dict: Dict[str, Any]) -> SG:
|
||||
def from_dict(cls: Type[QZ], src_dict: Dict[str, Any]) -> QZ:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, CurveGetControlPoints]
|
||||
@ -1144,7 +1144,7 @@ class curve_get_control_points:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
QZ = TypeVar("QZ", bound="take_snapshot")
|
||||
SY = TypeVar("SY", bound="take_snapshot")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1171,7 +1171,7 @@ class take_snapshot:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[QZ], src_dict: Dict[str, Any]) -> QZ:
|
||||
def from_dict(cls: Type[SY], src_dict: Dict[str, Any]) -> SY:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, TakeSnapshot]
|
||||
@ -1207,7 +1207,7 @@ class take_snapshot:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
SY = TypeVar("SY", bound="path_get_info")
|
||||
YK = TypeVar("YK", bound="path_get_info")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1234,7 +1234,7 @@ class path_get_info:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SY], src_dict: Dict[str, Any]) -> SY:
|
||||
def from_dict(cls: Type[YK], src_dict: Dict[str, Any]) -> YK:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, PathGetInfo]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
YK = TypeVar("YK", bound="ice_server_info")
|
||||
WS = TypeVar("WS", bound="ice_server_info")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -30,7 +30,7 @@ class ice_server_info:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[YK], src_dict: Dict[str, Any]) -> YK:
|
||||
def from_dict(cls: Type[WS], src_dict: Dict[str, Any]) -> WS:
|
||||
d = src_dict.copy()
|
||||
data = d.pop("data", UNSET)
|
||||
type = d.pop("type", UNSET)
|
||||
@ -60,7 +60,7 @@ class ice_server_info:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
WS = TypeVar("WS", bound="trickle_ice")
|
||||
SL = TypeVar("SL", bound="trickle_ice")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -86,7 +86,7 @@ class trickle_ice:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WS], src_dict: Dict[str, Any]) -> WS:
|
||||
def from_dict(cls: Type[SL], src_dict: Dict[str, Any]) -> SL:
|
||||
d = src_dict.copy()
|
||||
data = d.pop("data", UNSET)
|
||||
type = d.pop("type", UNSET)
|
||||
@ -116,7 +116,7 @@ class trickle_ice:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
SL = TypeVar("SL", bound="sdp_answer")
|
||||
MK = TypeVar("MK", bound="sdp_answer")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -142,7 +142,7 @@ class sdp_answer:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SL], src_dict: Dict[str, Any]) -> SL:
|
||||
def from_dict(cls: Type[MK], src_dict: Dict[str, Any]) -> MK:
|
||||
d = src_dict.copy()
|
||||
data = d.pop("data", UNSET)
|
||||
type = d.pop("type", UNSET)
|
||||
@ -172,7 +172,7 @@ class sdp_answer:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
MK = TypeVar("MK", bound="modeling")
|
||||
TU = TypeVar("TU", bound="modeling")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -198,7 +198,7 @@ class modeling:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MK], src_dict: Dict[str, Any]) -> MK:
|
||||
def from_dict(cls: Type[TU], src_dict: Dict[str, Any]) -> TU:
|
||||
d = src_dict.copy()
|
||||
data = d.pop("data", UNSET)
|
||||
type = d.pop("type", UNSET)
|
||||
@ -228,7 +228,7 @@ class modeling:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
TU = TypeVar("TU", bound="export")
|
||||
FY = TypeVar("FY", bound="export")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -254,7 +254,7 @@ class export:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TU], src_dict: Dict[str, Any]) -> TU:
|
||||
def from_dict(cls: Type[FY], src_dict: Dict[str, Any]) -> FY:
|
||||
d = src_dict.copy()
|
||||
data = d.pop("data", UNSET)
|
||||
type = d.pop("type", UNSET)
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
FY = TypeVar("FY", bound="Onboarding")
|
||||
FD = TypeVar("FD", bound="Onboarding")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -37,7 +37,7 @@ class Onboarding:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FY], src_dict: Dict[str, Any]) -> FY:
|
||||
def from_dict(cls: Type[FD], src_dict: Dict[str, Any]) -> FD:
|
||||
d = src_dict.copy()
|
||||
first_call_from__their_machine_date = d.pop(
|
||||
"first_call_from_their_machine_date", UNSET
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
FD = TypeVar("FD", bound="OutputFile")
|
||||
TZ = TypeVar("TZ", bound="OutputFile")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -31,7 +31,7 @@ class OutputFile:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FD], src_dict: Dict[str, Any]) -> FD:
|
||||
def from_dict(cls: Type[TZ], src_dict: Dict[str, Any]) -> TZ:
|
||||
d = src_dict.copy()
|
||||
contents = d.pop("contents", UNSET)
|
||||
|
||||
|
@ -10,7 +10,7 @@ from ..models.stl_storage import StlStorage
|
||||
from ..models.system import System
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
TZ = TypeVar("TZ", bound="fbx")
|
||||
AX = TypeVar("AX", bound="fbx")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -37,7 +37,7 @@ class fbx:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TZ], src_dict: Dict[str, Any]) -> TZ:
|
||||
def from_dict(cls: Type[AX], src_dict: Dict[str, Any]) -> AX:
|
||||
d = src_dict.copy()
|
||||
_storage = d.pop("storage", UNSET)
|
||||
storage: Union[Unset, FbxStorage]
|
||||
@ -73,7 +73,7 @@ class fbx:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
AX = TypeVar("AX", bound="gltf")
|
||||
RQ = TypeVar("RQ", bound="gltf")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -105,7 +105,7 @@ class gltf:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[AX], src_dict: Dict[str, Any]) -> AX:
|
||||
def from_dict(cls: Type[RQ], src_dict: Dict[str, Any]) -> RQ:
|
||||
d = src_dict.copy()
|
||||
_presentation = d.pop("presentation", UNSET)
|
||||
presentation: Union[Unset, GltfPresentation]
|
||||
@ -149,7 +149,7 @@ class gltf:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
RQ = TypeVar("RQ", bound="obj")
|
||||
ZL = TypeVar("ZL", bound="obj")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -176,7 +176,7 @@ class obj:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[RQ], src_dict: Dict[str, Any]) -> RQ:
|
||||
def from_dict(cls: Type[ZL], src_dict: Dict[str, Any]) -> ZL:
|
||||
d = src_dict.copy()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -212,7 +212,7 @@ class obj:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
ZL = TypeVar("ZL", bound="ply")
|
||||
CM = TypeVar("CM", bound="ply")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -244,7 +244,7 @@ class ply:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[ZL], src_dict: Dict[str, Any]) -> ZL:
|
||||
def from_dict(cls: Type[CM], src_dict: Dict[str, Any]) -> CM:
|
||||
d = src_dict.copy()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -288,7 +288,7 @@ class ply:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
CM = TypeVar("CM", bound="step")
|
||||
OS = TypeVar("OS", bound="step")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -315,7 +315,7 @@ class step:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CM], src_dict: Dict[str, Any]) -> CM:
|
||||
def from_dict(cls: Type[OS], src_dict: Dict[str, Any]) -> OS:
|
||||
d = src_dict.copy()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -351,7 +351,7 @@ class step:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
OS = TypeVar("OS", bound="stl")
|
||||
WP = TypeVar("WP", bound="stl")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -383,7 +383,7 @@ class stl:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[OS], src_dict: Dict[str, Any]) -> OS:
|
||||
def from_dict(cls: Type[WP], src_dict: Dict[str, Any]) -> WP:
|
||||
d = src_dict.copy()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
WP = TypeVar("WP", bound="PathGetInfo")
|
||||
XO = TypeVar("XO", bound="PathGetInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -33,7 +33,7 @@ class PathGetInfo:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WP], src_dict: Dict[str, Any]) -> WP:
|
||||
def from_dict(cls: Type[XO], src_dict: Dict[str, Any]) -> XO:
|
||||
d = src_dict.copy()
|
||||
from ..models.path_segment_info import PathSegmentInfo
|
||||
|
||||
|
@ -6,7 +6,7 @@ from ..models.point2d import Point2d
|
||||
from ..models.point3d import Point3d
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
XO = TypeVar("XO", bound="line")
|
||||
LN = TypeVar("LN", bound="line")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -33,7 +33,7 @@ class line:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[XO], src_dict: Dict[str, Any]) -> XO:
|
||||
def from_dict(cls: Type[LN], src_dict: Dict[str, Any]) -> LN:
|
||||
d = src_dict.copy()
|
||||
_end = d.pop("end", UNSET)
|
||||
end: Union[Unset, Point3d]
|
||||
@ -69,7 +69,7 @@ class line:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LN = TypeVar("LN", bound="arc")
|
||||
KR = TypeVar("KR", bound="arc")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -108,7 +108,7 @@ class arc:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LN], src_dict: Dict[str, Any]) -> LN:
|
||||
def from_dict(cls: Type[KR], src_dict: Dict[str, Any]) -> KR:
|
||||
d = src_dict.copy()
|
||||
angle_end = d.pop("angle_end", UNSET)
|
||||
|
||||
@ -153,7 +153,7 @@ class arc:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
KR = TypeVar("KR", bound="bezier")
|
||||
MG = TypeVar("MG", bound="bezier")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -190,7 +190,7 @@ class bezier:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[KR], src_dict: Dict[str, Any]) -> KR:
|
||||
def from_dict(cls: Type[MG], src_dict: Dict[str, Any]) -> MG:
|
||||
d = src_dict.copy()
|
||||
_control1 = d.pop("control1", UNSET)
|
||||
control1: Union[Unset, Point3d]
|
||||
|
@ -6,7 +6,7 @@ from ..models.modeling_cmd_id import ModelingCmdId
|
||||
from ..models.path_command import PathCommand
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
MG = TypeVar("MG", bound="PathSegmentInfo")
|
||||
UE = TypeVar("UE", bound="PathSegmentInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class PathSegmentInfo:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MG], src_dict: Dict[str, Any]) -> MG:
|
||||
def from_dict(cls: Type[UE], src_dict: Dict[str, Any]) -> UE:
|
||||
d = src_dict.copy()
|
||||
_command = d.pop("command", UNSET)
|
||||
command: Union[Unset, PathCommand]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
UE = TypeVar("UE", bound="PaymentIntent")
|
||||
BF = TypeVar("BF", bound="PaymentIntent")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class PaymentIntent:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UE], src_dict: Dict[str, Any]) -> UE:
|
||||
def from_dict(cls: Type[BF], src_dict: Dict[str, Any]) -> BF:
|
||||
d = src_dict.copy()
|
||||
client_secret = d.pop("client_secret", UNSET)
|
||||
|
||||
|
@ -9,7 +9,7 @@ from ..models.card_details import CardDetails
|
||||
from ..models.payment_method_type import PaymentMethodType
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
BF = TypeVar("BF", bound="PaymentMethod")
|
||||
UU = TypeVar("UU", bound="PaymentMethod")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -58,7 +58,7 @@ class PaymentMethod:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[BF], src_dict: Dict[str, Any]) -> BF:
|
||||
def from_dict(cls: Type[UU], src_dict: Dict[str, Any]) -> UU:
|
||||
d = src_dict.copy()
|
||||
_billing_info = d.pop("billing_info", UNSET)
|
||||
billing_info: Union[Unset, BillingInfo]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
UU = TypeVar("UU", bound="PaymentMethodCardChecks")
|
||||
MB = TypeVar("MB", bound="PaymentMethodCardChecks")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class PaymentMethodCardChecks:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UU], src_dict: Dict[str, Any]) -> UU:
|
||||
def from_dict(cls: Type[MB], src_dict: Dict[str, Any]) -> MB:
|
||||
d = src_dict.copy()
|
||||
address_line1_check = d.pop("address_line1_check", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
MB = TypeVar("MB", bound="PluginsInfo")
|
||||
TB = TypeVar("TB", bound="PluginsInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -50,7 +50,7 @@ class PluginsInfo:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MB], src_dict: Dict[str, Any]) -> MB:
|
||||
def from_dict(cls: Type[TB], src_dict: Dict[str, Any]) -> TB:
|
||||
d = src_dict.copy()
|
||||
authorization = cast(List[str], d.pop("authorization", UNSET))
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
TB = TypeVar("TB", bound="Point2d")
|
||||
FJ = TypeVar("FJ", bound="Point2d")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -31,7 +31,7 @@ class Point2d:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TB], src_dict: Dict[str, Any]) -> TB:
|
||||
def from_dict(cls: Type[FJ], src_dict: Dict[str, Any]) -> FJ:
|
||||
d = src_dict.copy()
|
||||
x = d.pop("x", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
FJ = TypeVar("FJ", bound="Point3d")
|
||||
HB = TypeVar("HB", bound="Point3d")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class Point3d:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FJ], src_dict: Dict[str, Any]) -> FJ:
|
||||
def from_dict(cls: Type[HB], src_dict: Dict[str, Any]) -> HB:
|
||||
d = src_dict.copy()
|
||||
x = d.pop("x", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
HB = TypeVar("HB", bound="PointEMetadata")
|
||||
SF = TypeVar("SF", bound="PointEMetadata")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -29,7 +29,7 @@ class PointEMetadata:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[HB], src_dict: Dict[str, Any]) -> HB:
|
||||
def from_dict(cls: Type[SF], src_dict: Dict[str, Any]) -> SF:
|
||||
d = src_dict.copy()
|
||||
ok = d.pop("ok", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
SF = TypeVar("SF", bound="Pong")
|
||||
DU = TypeVar("DU", bound="Pong")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class Pong:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SF], src_dict: Dict[str, Any]) -> SF:
|
||||
def from_dict(cls: Type[DU], src_dict: Dict[str, Any]) -> DU:
|
||||
d = src_dict.copy()
|
||||
message = d.pop("message", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
DU = TypeVar("DU", bound="RawFile")
|
||||
BM = TypeVar("BM", bound="RawFile")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -33,7 +33,7 @@ class RawFile:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[DU], src_dict: Dict[str, Any]) -> DU:
|
||||
def from_dict(cls: Type[BM], src_dict: Dict[str, Any]) -> BM:
|
||||
d = src_dict.copy()
|
||||
contents = cast(List[int], d.pop("contents", UNSET))
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.index_info import IndexInfo
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
BM = TypeVar("BM", bound="RegistryServiceConfig")
|
||||
TY = TypeVar("TY", bound="RegistryServiceConfig")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -67,7 +67,7 @@ class RegistryServiceConfig:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[BM], src_dict: Dict[str, Any]) -> BM:
|
||||
def from_dict(cls: Type[TY], src_dict: Dict[str, Any]) -> TY:
|
||||
d = src_dict.copy()
|
||||
allow_nondistributable_artifacts_cid_rs = cast(
|
||||
List[str], d.pop("allow_nondistributable_artifacts_cid_rs", UNSET)
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
TY = TypeVar("TY", bound="RtcIceCandidateInit")
|
||||
NC = TypeVar("NC", bound="RtcIceCandidateInit")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -39,7 +39,7 @@ class RtcIceCandidateInit:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TY], src_dict: Dict[str, Any]) -> TY:
|
||||
def from_dict(cls: Type[NC], src_dict: Dict[str, Any]) -> NC:
|
||||
d = src_dict.copy()
|
||||
candidate = d.pop("candidate", UNSET)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.rtc_sdp_type import RtcSdpType
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
NC = TypeVar("NC", bound="RtcSessionDescription")
|
||||
GP = TypeVar("GP", bound="RtcSessionDescription")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -33,7 +33,7 @@ class RtcSessionDescription:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[NC], src_dict: Dict[str, Any]) -> NC:
|
||||
def from_dict(cls: Type[GP], src_dict: Dict[str, Any]) -> GP:
|
||||
d = src_dict.copy()
|
||||
sdp = d.pop("sdp", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
GP = TypeVar("GP", bound="Runtime")
|
||||
FF = TypeVar("FF", bound="Runtime")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -33,7 +33,7 @@ class Runtime:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GP], src_dict: Dict[str, Any]) -> GP:
|
||||
def from_dict(cls: Type[FF], src_dict: Dict[str, Any]) -> FF:
|
||||
d = src_dict.copy()
|
||||
path = d.pop("path", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
FF = TypeVar("FF", bound="SelectGet")
|
||||
YO = TypeVar("YO", bound="SelectGet")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -29,7 +29,7 @@ class SelectGet:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FF], src_dict: Dict[str, Any]) -> FF:
|
||||
def from_dict(cls: Type[YO], src_dict: Dict[str, Any]) -> YO:
|
||||
d = src_dict.copy()
|
||||
entity_ids = cast(List[str], d.pop("entity_ids", UNSET))
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
YO = TypeVar("YO", bound="SelectWithPoint")
|
||||
FS = TypeVar("FS", bound="SelectWithPoint")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class SelectWithPoint:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[YO], src_dict: Dict[str, Any]) -> YO:
|
||||
def from_dict(cls: Type[FS], src_dict: Dict[str, Any]) -> FS:
|
||||
d = src_dict.copy()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
|
@ -7,7 +7,7 @@ from dateutil.parser import isoparse
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
FS = TypeVar("FS", bound="Session")
|
||||
WN = TypeVar("WN", bound="Session")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -58,7 +58,7 @@ class Session:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FS], src_dict: Dict[str, Any]) -> FS:
|
||||
def from_dict(cls: Type[WN], src_dict: Dict[str, Any]) -> WN:
|
||||
d = src_dict.copy()
|
||||
_created_at = d.pop("created_at", UNSET)
|
||||
created_at: Union[Unset, datetime.datetime]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
WN = TypeVar("WN", bound="Solid3dGetAllEdgeFaces")
|
||||
EQ = TypeVar("EQ", bound="Solid3dGetAllEdgeFaces")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -29,7 +29,7 @@ class Solid3dGetAllEdgeFaces:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WN], src_dict: Dict[str, Any]) -> WN:
|
||||
def from_dict(cls: Type[EQ], src_dict: Dict[str, Any]) -> EQ:
|
||||
d = src_dict.copy()
|
||||
faces = cast(List[str], d.pop("faces", UNSET))
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
EQ = TypeVar("EQ", bound="Solid3dGetAllOppositeEdges")
|
||||
UW = TypeVar("UW", bound="Solid3dGetAllOppositeEdges")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -29,7 +29,7 @@ class Solid3dGetAllOppositeEdges:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[EQ], src_dict: Dict[str, Any]) -> EQ:
|
||||
def from_dict(cls: Type[UW], src_dict: Dict[str, Any]) -> UW:
|
||||
d = src_dict.copy()
|
||||
edges = cast(List[str], d.pop("edges", UNSET))
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
UW = TypeVar("UW", bound="Solid3dGetNextAdjacentEdge")
|
||||
MD = TypeVar("MD", bound="Solid3dGetNextAdjacentEdge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class Solid3dGetNextAdjacentEdge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UW], src_dict: Dict[str, Any]) -> UW:
|
||||
def from_dict(cls: Type[MD], src_dict: Dict[str, Any]) -> MD:
|
||||
d = src_dict.copy()
|
||||
edge = d.pop("edge", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
MD = TypeVar("MD", bound="Solid3dGetOppositeEdge")
|
||||
HD = TypeVar("HD", bound="Solid3dGetOppositeEdge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class Solid3dGetOppositeEdge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MD], src_dict: Dict[str, Any]) -> MD:
|
||||
def from_dict(cls: Type[HD], src_dict: Dict[str, Any]) -> HD:
|
||||
d = src_dict.copy()
|
||||
edge = d.pop("edge", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
HD = TypeVar("HD", bound="Solid3dGetPrevAdjacentEdge")
|
||||
UJ = TypeVar("UJ", bound="Solid3dGetPrevAdjacentEdge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class Solid3dGetPrevAdjacentEdge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[HD], src_dict: Dict[str, Any]) -> HD:
|
||||
def from_dict(cls: Type[UJ], src_dict: Dict[str, Any]) -> UJ:
|
||||
d = src_dict.copy()
|
||||
edge = d.pop("edge", UNSET)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.ok_web_socket_response_data import OkWebSocketResponseData
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
UJ = TypeVar("UJ", bound="SuccessWebSocketResponse")
|
||||
RU = TypeVar("RU", bound="SuccessWebSocketResponse")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -37,7 +37,7 @@ class SuccessWebSocketResponse:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UJ], src_dict: Dict[str, Any]) -> UJ:
|
||||
def from_dict(cls: Type[RU], src_dict: Dict[str, Any]) -> RU:
|
||||
d = src_dict.copy()
|
||||
request_id = d.pop("request_id", UNSET)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.axis_direction_pair import AxisDirectionPair
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
RU = TypeVar("RU", bound="System")
|
||||
DL = TypeVar("DL", bound="System")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -41,7 +41,7 @@ class System:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[RU], src_dict: Dict[str, Any]) -> RU:
|
||||
def from_dict(cls: Type[DL], src_dict: Dict[str, Any]) -> DL:
|
||||
d = src_dict.copy()
|
||||
_forward = d.pop("forward", UNSET)
|
||||
forward: Union[Unset, AxisDirectionPair]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
DL = TypeVar("DL", bound="SystemInfoDefaultAddressPools")
|
||||
QT = TypeVar("QT", bound="SystemInfoDefaultAddressPools")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -29,7 +29,7 @@ class SystemInfoDefaultAddressPools:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[DL], src_dict: Dict[str, Any]) -> DL:
|
||||
def from_dict(cls: Type[QT], src_dict: Dict[str, Any]) -> QT:
|
||||
d = src_dict.copy()
|
||||
base = d.pop("base", UNSET)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.base64data import Base64Data
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
QT = TypeVar("QT", bound="TakeSnapshot")
|
||||
PT = TypeVar("PT", bound="TakeSnapshot")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -30,7 +30,7 @@ class TakeSnapshot:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[QT], src_dict: Dict[str, Any]) -> QT:
|
||||
def from_dict(cls: Type[PT], src_dict: Dict[str, Any]) -> PT:
|
||||
d = src_dict.copy()
|
||||
_contents = d.pop("contents", UNSET)
|
||||
contents: Union[Unset, Base64Data]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_angle import UnitAngle
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
PT = TypeVar("PT", bound="UnitAngleConversion")
|
||||
HR = TypeVar("HR", bound="UnitAngleConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitAngleConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[PT], src_dict: Dict[str, Any]) -> PT:
|
||||
def from_dict(cls: Type[HR], src_dict: Dict[str, Any]) -> HR:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_area import UnitArea
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
HR = TypeVar("HR", bound="UnitAreaConversion")
|
||||
VF = TypeVar("VF", bound="UnitAreaConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitAreaConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[HR], src_dict: Dict[str, Any]) -> HR:
|
||||
def from_dict(cls: Type[VF], src_dict: Dict[str, Any]) -> VF:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_current import UnitCurrent
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
VF = TypeVar("VF", bound="UnitCurrentConversion")
|
||||
VM = TypeVar("VM", bound="UnitCurrentConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitCurrentConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[VF], src_dict: Dict[str, Any]) -> VF:
|
||||
def from_dict(cls: Type[VM], src_dict: Dict[str, Any]) -> VM:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_energy import UnitEnergy
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
VM = TypeVar("VM", bound="UnitEnergyConversion")
|
||||
WH = TypeVar("WH", bound="UnitEnergyConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitEnergyConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[VM], src_dict: Dict[str, Any]) -> VM:
|
||||
def from_dict(cls: Type[WH], src_dict: Dict[str, Any]) -> WH:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_force import UnitForce
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
WH = TypeVar("WH", bound="UnitForceConversion")
|
||||
DQ = TypeVar("DQ", bound="UnitForceConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitForceConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WH], src_dict: Dict[str, Any]) -> WH:
|
||||
def from_dict(cls: Type[DQ], src_dict: Dict[str, Any]) -> DQ:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_frequency import UnitFrequency
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
DQ = TypeVar("DQ", bound="UnitFrequencyConversion")
|
||||
UY = TypeVar("UY", bound="UnitFrequencyConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitFrequencyConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[DQ], src_dict: Dict[str, Any]) -> DQ:
|
||||
def from_dict(cls: Type[UY], src_dict: Dict[str, Any]) -> UY:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_length import UnitLength
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
UY = TypeVar("UY", bound="UnitLengthConversion")
|
||||
PD = TypeVar("PD", bound="UnitLengthConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitLengthConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UY], src_dict: Dict[str, Any]) -> UY:
|
||||
def from_dict(cls: Type[PD], src_dict: Dict[str, Any]) -> PD:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_mass import UnitMass
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
PD = TypeVar("PD", bound="UnitMassConversion")
|
||||
SM = TypeVar("SM", bound="UnitMassConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitMassConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[PD], src_dict: Dict[str, Any]) -> PD:
|
||||
def from_dict(cls: Type[SM], src_dict: Dict[str, Any]) -> SM:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_power import UnitPower
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
SM = TypeVar("SM", bound="UnitPowerConversion")
|
||||
JL = TypeVar("JL", bound="UnitPowerConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitPowerConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SM], src_dict: Dict[str, Any]) -> SM:
|
||||
def from_dict(cls: Type[JL], src_dict: Dict[str, Any]) -> JL:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_pressure import UnitPressure
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
JL = TypeVar("JL", bound="UnitPressureConversion")
|
||||
CG = TypeVar("CG", bound="UnitPressureConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitPressureConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[JL], src_dict: Dict[str, Any]) -> JL:
|
||||
def from_dict(cls: Type[CG], src_dict: Dict[str, Any]) -> CG:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_temperature import UnitTemperature
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
CG = TypeVar("CG", bound="UnitTemperatureConversion")
|
||||
QA = TypeVar("QA", bound="UnitTemperatureConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitTemperatureConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CG], src_dict: Dict[str, Any]) -> CG:
|
||||
def from_dict(cls: Type[QA], src_dict: Dict[str, Any]) -> QA:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_torque import UnitTorque
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
QA = TypeVar("QA", bound="UnitTorqueConversion")
|
||||
ZB = TypeVar("ZB", bound="UnitTorqueConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitTorqueConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[QA], src_dict: Dict[str, Any]) -> QA:
|
||||
def from_dict(cls: Type[ZB], src_dict: Dict[str, Any]) -> ZB:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_volume import UnitVolume
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
ZB = TypeVar("ZB", bound="UnitVolumeConversion")
|
||||
AU = TypeVar("AU", bound="UnitVolumeConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitVolumeConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[ZB], src_dict: Dict[str, Any]) -> ZB:
|
||||
def from_dict(cls: Type[AU], src_dict: Dict[str, Any]) -> AU:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
AU = TypeVar("AU", bound="UpdateUser")
|
||||
FX = TypeVar("FX", bound="UpdateUser")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -47,7 +47,7 @@ class UpdateUser:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[AU], src_dict: Dict[str, Any]) -> AU:
|
||||
def from_dict(cls: Type[FX], src_dict: Dict[str, Any]) -> FX:
|
||||
d = src_dict.copy()
|
||||
company = d.pop("company", UNSET)
|
||||
|
||||
|
@ -6,7 +6,7 @@ from dateutil.parser import isoparse
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
FX = TypeVar("FX", bound="User")
|
||||
BL = TypeVar("BL", bound="User")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -83,7 +83,7 @@ class User:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FX], src_dict: Dict[str, Any]) -> FX:
|
||||
def from_dict(cls: Type[BL], src_dict: Dict[str, Any]) -> BL:
|
||||
d = src_dict.copy()
|
||||
company = d.pop("company", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
BL = TypeVar("BL", bound="UserResultsPage")
|
||||
KU = TypeVar("KU", bound="UserResultsPage")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -37,7 +37,7 @@ class UserResultsPage:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[BL], src_dict: Dict[str, Any]) -> BL:
|
||||
def from_dict(cls: Type[KU], src_dict: Dict[str, Any]) -> KU:
|
||||
d = src_dict.copy()
|
||||
from ..models.user import User
|
||||
|
||||
|
@ -6,7 +6,7 @@ from dateutil.parser import isoparse
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
KU = TypeVar("KU", bound="VerificationToken")
|
||||
PZ = TypeVar("PZ", bound="VerificationToken")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -53,7 +53,7 @@ class VerificationToken:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[KU], src_dict: Dict[str, Any]) -> KU:
|
||||
def from_dict(cls: Type[PZ], src_dict: Dict[str, Any]) -> PZ:
|
||||
d = src_dict.copy()
|
||||
_created_at = d.pop("created_at", UNSET)
|
||||
created_at: Union[Unset, datetime.datetime]
|
||||
|
@ -8,7 +8,7 @@ from ..models.rtc_ice_candidate_init import RtcIceCandidateInit
|
||||
from ..models.rtc_session_description import RtcSessionDescription
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
PZ = TypeVar("PZ", bound="trickle_ice")
|
||||
FA = TypeVar("FA", bound="trickle_ice")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class trickle_ice:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[PZ], src_dict: Dict[str, Any]) -> PZ:
|
||||
def from_dict(cls: Type[FA], src_dict: Dict[str, Any]) -> FA:
|
||||
d = src_dict.copy()
|
||||
_candidate = d.pop("candidate", UNSET)
|
||||
candidate: Union[Unset, RtcIceCandidateInit]
|
||||
@ -71,7 +71,7 @@ class trickle_ice:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
FA = TypeVar("FA", bound="sdp_offer")
|
||||
GE = TypeVar("GE", bound="sdp_offer")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -98,7 +98,7 @@ class sdp_offer:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FA], src_dict: Dict[str, Any]) -> FA:
|
||||
def from_dict(cls: Type[GE], src_dict: Dict[str, Any]) -> GE:
|
||||
d = src_dict.copy()
|
||||
_offer = d.pop("offer", UNSET)
|
||||
offer: Union[Unset, RtcSessionDescription]
|
||||
@ -134,7 +134,7 @@ class sdp_offer:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
GE = TypeVar("GE", bound="modeling_cmd_req")
|
||||
JG = TypeVar("JG", bound="modeling_cmd_req")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -166,7 +166,7 @@ class modeling_cmd_req:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GE], src_dict: Dict[str, Any]) -> GE:
|
||||
def from_dict(cls: Type[JG], src_dict: Dict[str, Any]) -> JG:
|
||||
d = src_dict.copy()
|
||||
_cmd = d.pop("cmd", UNSET)
|
||||
cmd: Union[Unset, ModelingCmd]
|
||||
@ -210,7 +210,7 @@ class modeling_cmd_req:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
JG = TypeVar("JG", bound="ping")
|
||||
HH = TypeVar("HH", bound="ping")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -232,7 +232,7 @@ class ping:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[JG], src_dict: Dict[str, Any]) -> JG:
|
||||
def from_dict(cls: Type[HH], src_dict: Dict[str, Any]) -> HH:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
|
66
spec.json
66
spec.json
@ -6402,6 +6402,13 @@
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "SolidWorks part (SLDPRT) format.",
|
||||
"enum": [
|
||||
"sldprt"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "The STEP file format. <https://en.wikipedia.org/wiki/ISO_10303-21>",
|
||||
"enum": [
|
||||
@ -6936,21 +6943,6 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "ISO 10303-21 (STEP) format.",
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"step"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "Wavefront OBJ format.",
|
||||
"properties": {
|
||||
@ -7017,6 +7009,36 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "SolidWorks part (SLDPRT) format.",
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"sldprt"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "ISO 10303-21 (STEP) format.",
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"step"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "*ST**ereo**L**ithography format.",
|
||||
"properties": {
|
||||
@ -8877,6 +8899,13 @@
|
||||
{
|
||||
"description": "Send a mouse move event.",
|
||||
"properties": {
|
||||
"sequence": {
|
||||
"description": "Logical timestamp. The client should increment this with every event in the current mouse drag. That way, if the events are being sent over an unordered channel, the API can ignore the older events.",
|
||||
"format": "uint32",
|
||||
"minimum": 0,
|
||||
"nullable": true,
|
||||
"type": "integer"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"mouse_move"
|
||||
@ -9107,6 +9136,13 @@
|
||||
{
|
||||
"description": "Continue dragging mouse.",
|
||||
"properties": {
|
||||
"sequence": {
|
||||
"description": "Logical timestamp. The client should increment this with every event in the current mouse drag. That way, if the events are being sent over an unordered channel, the API can ignore the older events.",
|
||||
"format": "uint32",
|
||||
"minimum": 0,
|
||||
"nullable": true,
|
||||
"type": "integer"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"handle_mouse_drag_move"
|
||||
|
Reference in New Issue
Block a user